Fix of bug #350246: Broken snap-to-grid inside objects.
[dia.git] / ChangeLog
blob9017d6709225836b0602dc2dfbe3ef2f089a3ec6
1 2006-10-01  Lars Clausen  <lars@raeder.dk>
3         * app/modify_tool.c (modify_motion): Don't use null-ness of
4         connectionpoint to skip snap-to-grid for non-connectable handles.
5         Fixes bug #350246.
7         * shapes/flowchart/predefdproc.shape: Fixed midpoint.
9 2006-09-27  Steffen Macke <sdteffen@gmail.com>
11         * shapes/flowchart/datasource.png:
12         * shapes/flowchart/datasource.shape:
13         * shapes/flowchart/Makefile.am: 
14         * sheets/Flowchart.sheet.in:
15         * installer/win32/dia.nsi: Added new "Data source" shape
17 2006-09-24  Hans Breuer  <hans@breuer.org>
19         * lib/diagdkrenderer.c : I'm going to rip out all the Freetype
20         code the next time the GDK only compile breaks
21         
22 2006-09-23  Hans Breuer  <hans@breuer.org>
24         * app/commands.c app/create_object.c app/disp_callbacks.c : add
25         missing #include "lib/parent.h"
27         * lib/makefile.msc : build textline.obj
28         
29         * objects/makefile.msc : don't build newgroup.obj
30         * objects/misc/libmisc.c : with newgroup gone to app/ newgroup_type can 
31         not be registered from the module any longer - at least not on win32
33         * plug-ins/python/makefile.msc : removed obsolete references to 
34         Python 1.5, also removed misleading link to Python 2.2 debug build
36         * app/diagram.[ch] app/app_procs.c : don't use C++ keyword 'virtual' 
37         as variable name: s/virtual/is_default/
38         
39         * plug-ins/python/*.c : don't mix PyObject_NEW() with PyMem_DEL()
40         Newer versions of Python (2.5) are not tolerant about this anymore.
41         
42 2006-09-11  Lars Clausen  <lars@raeder.dk>
44         * lib/diasvgrenderer.c (draw_text_line): First stab at making svg
45         text line renderer, doesn't work yet.
47         * lib/textline.c (text_line_draw): Removed #define.
49         * lib/diagdkrenderer.c (draw_text_line): Slight cleanups.
51 2006-09-11  Steffen Macke <sdteffen@gmail.com>
53         * plug-ins/vdx/vdx-export.c:
54         * plug-ins/vdx/vdx-import.c:
55         * plug-ins/vdx/vdx-xml.c:
56         * plug-ins/vdx/vdx.h:
57         * plug-ins/vdx/visio-types.h: Update to version 0.5 (from 0.4) of
58         Visio import, thanks to Ian Redfern, who states: 
59         
60         This is the first version to support export to VDX - for now, just 
61         straight lines and text, but I'm working on the more complex bits. 
62         It currently writes Visio 2002 VDX as a lowest common denominator, 
63         but that won't handle Beziers, so when I get round to converting them 
64         to NURBS, only Visio 2003 users will be able to import them.
66         There are also several improvements to import, both to fix the layout 
67         and clean up the code, and it can now import embedded bitmaps - as Dia
68         needs them to be separate files, it puts them in /tmp (or wherever 
69         tempnam() goes to on your system). Alternative suggestions are welcome. 
70         NURBS import still doesn't work, but everything else seems pretty 
71         reliable.
72         
73         In addition, two small adjustments to compile on Windows
75 2006-09-08  Steffen Macke <sdteffen@gmail.com>
77         * app/makefile.msc:
78         * app/Makefile.am:
79         * app/dia-win-remote.c:
80         * installer/win32/dia.nsi: From Windows Explorer, open .dia files in the 
81         running Dia instance (if possible). Fixes bug #70718
83 2006-09-05  Lars Clausen  <lars@raeder.dk>
85         * lib/diatypes.h: 
86         * lib/Makefile.am (libdia_la_SOURCES): 
87         * lib/diarenderer.[ch]: 
88         * lib/font.[ch]: 
89         * lib/diagdkrenderer.c: 
90         * lib/textline.[ch]: TextLine now ready for commit.  Rendering
91         with it is much faster and significantly more precise than
92         without.  All renderers should implement a good definitions for
93         this (though there is a default one that uses draw_string), as it
94         can tell the expected width of a string.
95         
96         * lib/libdia.def: Newly defined functions.      
98 2006-08-29  Lars Clausen  <lars@raeder.dk>
100         * lib/textline.[ch]: New text rendering level: A self-contained
101         single-line text object that allows safer caching and hopefully
102         more accurate rendering at various zooms.  Using a PangoMatrix
103         didn't seem to help. 
105         * lib/font.c: Removing out-deffed layout cache code, it'll never
106         work.  Also a couple support functions for my quest of good zoom.
108 2006-08-20  Hans Breuer  <hans@breuer.org>
110         * plug-ins/cairo/diacairo.c : get rid of c++ coment
111         * app/diagram.h app/diagram.c app/modify_tool.c app/select.c 
112           app/undo.c : reverted 'Shortened diagram_unselect'. It broke
113         plug-ins/python, but more iomportant made one function fromm
114         app/diagram.h asymmetric with all the others. We should not leave
115         the common C OO-pattern of passing an explicit "this pointer" just
116         because that can also be deduced from the other object.
118 2006-08-18  Lars Clausen  <lars@raeder.dk>
120         * lib/render.[ch]: Finally removed unused render files now known
121         as diarenderer.[ch].
123 2006-08-17  Steffen Macke <sdteffen@gmail.com>
125         * installer/win32/dia-diagram.ico:
126         * installer/win32/dia.nsi: Assign icon to *.dia files
128 2006-08-16  Lars Clausen  <lars@raeder.dk>
130         * app/diagram.c (diagram_load): 
131         * lib/object.c (dia_object_is_selectable): Two silly null-pointer
132         errors detected by Michael Duelli <m.duelli@web.de>
134 2006-08-16  Steffen Macke <sdteffen@gmail.com>
136         * app/modify_tool.c:
137         * app/undo.c: Include parent.h
138         * lib/libdia.def: Include dia_object_is_selectable()
140 2006-08-13  Lars Clausen  <lars@raeder.dk>
142         * objects/Misc/libmisc.c:
143         * {app,objects/Misc}/Makefile.am:
144         * objects/Misc/newgroup.c:
145         * app/newgroup.c: Moved newgroup.
146         
147         * app/diagram.[ch]:
148         * app/undo.c: 
149         * app/modify_tool.c: 
150         * app/select.c: Trim diagram_unselect_object() to the one required
151         argument. 
153         * app/app_procs.c:
154         * app/interface.c (dia_dnd_file_drag_data_received): 
155         * app/recent_files.c (open_recent_file_callback): 
156         * app/filedlg.c (file_open_response_callback): 
157         * app/diagram.c (diagram_load): 
158         Make the diagram created at start-up be a virtual diagram that
159         if unchanged is filled in by the first opened diagram, like Gnumeric.
161 2006-08-11  Lars Clausen  <lars@raeder.dk>
163         * app/properties.c (properties_give_focus): Give focus to first
164         thing in a properties dialog.  Still need our own compound widgets
165         to get focus right.
167 2006-08-06  Lars Clausen  <lars@raeder.dk>
169         * objects/Misc/newgroup.c: 
170         * lib/diagramdata.c: 
171         * app/diagram.[ch]: 
172         * app/select.c: 
173         * app/modify_tool.c: 
174         * lib/object.[ch]: Work towards a more reasonable definition of
175         Groups. 
176         
177 2006-08-06  Steffen Macke <sdteffen@gmail.com>
179         * installer/win32/dia.nsi: Save diagrams by default in "My Pictures";
180         fixes bug #344247
182 2006-08-04  Steffen Macke <sdteffen@gmail.com>
184         * installer/win32/dia.nsi: Added vdx.dll, analog_clock.xpm 
185         newgroup.xpm , *ui.xml files
187 2006-08-03  Lars Clausen  <lars@raeder.dk>
189         * sheets/Makefile.am: EML sheet taken out since it's been empty
190         for five years anyway.  Fixes bug #347894.
192         * doc/eu/dia.dbk: 
193         * doc/en/dia.dbk: 
194         * doc/en/usage-layers.xml: Fixed obsolete references to
195         export-to-format.  Fixes bug #346510.
197 2006-08-02  Lars Clausen  <lars@raeder.dk>
199         * plug-ins/vdx/visio-types.h: 
200         * plug-ins/vdx/vdx.h: 
201         * plug-ins/vdx/vdx-xml.c: 
202         * plug-ins/vdx/vdx-import.c: 
203         * plug-ins/vdx/vdx-common.c: Update to version 0.4 (from 0.2) of
204         Visio import, thanks to Ian Redfern, who states: 
206         Version 0.4 does a passable job with curves, and has the first
207         implementation of Masters. It also handles XForm1D, and fixes a
208         potential crash. It gets some layers in the wrong order and still
209         has some major positioning and sizing issues. 
211         Version 0.3 gets object layout correct, and does a better job of
212         text, lines, arrows, layers etc. Some diagrams (that don't contain
213         curves) now render pretty much correctly. 
215 2006-07-16  Hans Breuer  <hans@breuer.org>
217         * app/cut_n_paste.[hc] : maintain a generation counter to count
218         how many times the stored object list is used
219         * app/commands.c : use the generation for paste placement. The
220         first one after cut is not moved at all: a nice way to move objects
221         between layers without changing their lateral position.
222         Also sprinkled some diagram_update_extents()
223         
224         * shapes/Civil/civil_rotor.shape : had inverted fg/bg colors, bug #347080
225         
226         * app/recent_files.c : don't g_return_if_fail() on common use case,
227         here an empty recent file list
228         
229         * lib/dia_image.c(dia_image_draw) : don't try to draw anything if
230         width or height is smaller than 1 pixel
231         
232         * plug-ins/cairo/diacairo.c : allow to export to svg if available 
233         with cairo. Some tweaking of surface sizes.
234         
235 2006-07-12  Lars Clausen  <lars@raeder.dk>
237         * {tests,test/exports,data,plug-ins/vdx}/.cvsignore: Added.
239 2006-06-28  Lars Clausen  <lars@raeder.dk>
241         * plug-ins/vdx/vdx-import.c: Removed create_standard_group which
242         is in create.c.
244 2006-06-25  Hans Breuer  <hans@breuer.org>
246         * app/display.c : avoid to call gettext on parameters for ngettext()
247         Should finally really fix bug #344896
248         
249         * data/ui/display-ui.xml data/ui/popup-ui.xml data/ui/toolbox-ui.xml :
250         removed expand="yes" because otherwise the files can't be read with
251         gtk+-2.6.x which follows Dia can't start. Fixes bug #344895
252         * app/menus.c app/Makefile.am : also find the ui files when run from
253         app/run_dia.sh
255 2006-06-17  Gintautas Miliauskas  <gintas@akl.lt>
257         * configure.in: Added lt to ALL_LINGUAS.
259 2006-06-15  Hans Breuer  <hans@breuer.org>
261         * app/display.c : use ngettext() for possible plural variations.
262         (Bug #344896, tokul@users.sourceforge.net)
264         * objects/UML/class.c : use g_list_append() rather than prepend
265         when copying attributes, operations, formalparams. Fixes bug #342902
266         Also removed some superfluous outcommented code and fixed a warning.
268         * objects/UML/class.c : dont break reading comment_line_length
269         by misguide compatibility code. Fixes bug #341887
271         * plug-ins/vdx/vdx-xml.c : added file missing from 0.3 
272         version commit. Fixes bug #344804
273         
274         * lib/create.h : add create_standard_group() prototype
275         * lib/libdia.def lib/makefile.msc objects/makefile.msc 
276           plug-ins/makefile.msc : added missing (files|exports)
278 2006-06-13  Lars Clausen  <lars@raeder.dk>
280         * plug-ins/vdx/*: Version 0.3 of Visio import filters, thanks
281         again to Ian Redfern.
283 2006-06-12  Elijah Newren  <newren gmail com>
285         * autogen.sh: Run configure by default, allow it to be skipped if
286         NOCONFIGURE is set in the environment.  #344574.
288 2006-06-12  Elijah Newren  <newren gmail com>
290         Pair of build fixes.  #344357
292         * Makefile.am: avoid cp errors when $(srcdir) == .
294         * objects/Misc/newgroup.c: include pixmaps/newgroup.xpm instead of
295         pixmaps/group.xpm as the latter doesn't exist.
297 2006-06-12  Hans Breuer  <hans@breuer.org>
299         * plug-ins/python/codegen.py : applied patch from Thomas D Ahle
300         which adds support for Java and inheritance. Closes bug #344187
301         
302 2006-05-28  Lars Clausen  <lars@raeder.dk>
304         * sheets/Misc.sheet.in: 
305         * objects/Misc/Makefile.am (EXTRA_DIST): 
306         * objects/Misc/pixmaps/newgroup.xpm: 
307         * objects/Misc/newgroup.c: 
308         * objects/Misc/libmisc.c: Start of new group model, with "visible"
309         object to test with.  This object will later become the default
310         group object and thus (mostly) invisible.
312         * lib/parent.c (parent_handle_move_in_check): 
313         * app/create_object.c (create_object_button_press): 
314         * app/diagram.c (diagram_unparent_children_selected): 
315         * app/disp_callbacks.c (ddisplay_drop_object): 
316         * app/load_save.c (write_objects): 
317         * objects/network/radiocell.c (radiocell_create): 
318         * objects/AADL/aadlbox.c (aadlbox_create): 
319         * objects/UML/large_package.c (largepackage_create): 
320         * objects/UML/component.c (component_create): 
321         * lib/object.[ch]: DiaObject API change: DiaObject now has gint
322         flags rather than gboolean can_parent, and utility function
323         object_flags_set.  Uses of can_parent changed to call to function.
325         * doc/en/dia.dbk: Removal of obsolete epsi references.
327 2006-05-27  Hans Breuer  <hans@breuer.org>
329         * app/menus.c : listen to Gtk-WARNING **: Unable to parse accelerator 
330         '<control>+': it wants '<control>plus', same for minus.
332         * tests/exports/cgm/* : cvs admin -kb *.cgm
333           tests/exports/png/* tests/exports/png-libart/* 
334           tests/exports/shape/* : cvs admin -kb *.png
335           tests/exports/wpg/* : cvs admin -kb *.wpg
336         mark binary files as such to not get them broken on platforms which
337         insist on replacing line-ends.
339         * app/app_procs.c app/display.c app/filedlg.c app/interface.c
340           app/load_save.c app/sheets.c lib/dia_image.c lib/message.c
341           plug-ins/python/diamodule.c plug-ins/python/pydia-error.c
342           plug-ins/wmf/wmf.cpp : fixed format string vulnerability on HEAD
343         as well. Patch from Hans de Goede, bug #342111
345 2006-05-27  Rob Staudinger <robert.staudinger@gmail.com>
347         * Makefile.am: 
348         * app/Makefile.am:
349         * app/diagram.c: 
350         * lib/Makefile.am:
351         * objects/standard/Makefile.am:
352         * plug-ins/python/Makefile.am:
353         Fix out of tree build (#340115).        
355 2006-05-25  Hans Breuer  <hans@breuer.org>
357         * app/interface.[hc] app/menus.c : rename ToolButton::menu_item
358         to action_name. Don't mark action names for translation. It is not
359         needed and some languages don't support CamelCase. Fixes bug #342895
360         
361         * app/menus.c : re-added a bunch of accelerators lost in translation
362         to the GtkAction framework. Use GTK_STOCK_FULLSCREEN conditionally
363         it was not available with gtk+-2-6-x.
364         Use dia_get_data_directory() instead of hardcoded UIDATADIR.
365         * app/dia_embedd.c : explain instead of out-comment
366         
367         * app/menu.c lib/autoroute.c lib/color.c lib/diagramdata.c 
368           lib/properties.h dia_xml.c : warningectomy
369           
370         * lib/create.h : create_standard_group()
371         * lib/libdia.def lib/makefile.msc : reflect moved stuff
372         
373 2006-05-25  Lars Clausen  <lars@raeder.dk>
375         * tests/exports/*.dia: A set of test diagrams for export
376         plug-ins.  The intention is to use these for regression tests by
377         ensuring that they don't change when code is altered, or if they
378         change that a manual inspection proves them ok.  The fact that an
379         export plug-in passes these tests doesn't mean it's perfect, just
380         that is hasn't degraded.
381         
382         * plug-ins/xfig/xfig-import.c: 
383         * plug-ins/vdx/vdx-import.c: 
384         * lib/create.[ch]: Functions taken from xfig to create some
385         standard objects easily.  Uses of them updated, no longer need to
386         take DiagramData.
388         * plug-ins/vdx/*: First draft of VDX (Visio XML) plug-in from Ian
389         Redfern <Ian Redfern <Ian.Redfern@LogicaCMG.com>.  Also a bunch of
390         samples for the purpose from the vdxtosvg project.
392 2006-05-21  Hans Breuer  <hans@breuer.org>
394         * app/interface.[hc] app/disp_callbacks.c : removed unused
395         global variable popup_shell
396         
397         * app/pagesetup.c app/diapagelayout.c : restrict every page margin
398         to a little less than half of the page. This guarantees margins
399         leaving some useable page area and thus avoids crashing on negative
400         page sizes. Fixes bug #339562 (also applied to dia-0-95 branch)
401         
402 2006-05-20  Hans Breuer  <hans@breuer.org>
404         Patch from Robert Staudinger to base dia menus on GtkAction framework
405         instead on deprecated GtkItemFactory. Tracked in bug #340352. 
406         En passant fixes bug #171397
407         * configure.in : placementof ui files added data/Makefile to AC_OUTPUT
408         * Makefile.am : added data dir
409         * app/Makefile.am : added $(uidatadir)
410         * app/commands.c app/commands.h app/dia_embedd.c app/diagram.c
411           app/diagram_tree_window.c app/diagram_tree_window.h
412           app/disp_callbacks.c app/display.c app/display.h
413           app/interface.c app/menus.c app/menus.h app/recent_files.c :
414         changed a bunch of callback signatures to take GtkAction
415         * app/pixmaps/Makefile.am 
416         * data/Makefile.am data/display-ui.xml data/toolbox-ui.xml
417           data/popup-ui.xml : new files containing the menu structure
418         * lib/filter.c lib/filter.h lib/plug-ins.h : callback filter
419           registration change to be more appropriate for actions
420         * lib/libdia.def : updated externals
421         * plug-ins/python/debug_objects.py plug-ins/python/diamodule.c
422           plug-ins/python/group_props.py plug-ins/python/gtkcons.py 
423           plug-ins/python/otypes.py plug-ins/python/pydiadoc.py 
424           plug-ins/python/scascale.py plug-ins/python/select_by.py :
425         adapted to API change dia.register_callback to dia.register.action
427         * app/authors.h : added Robert to the authors
428         * app/commands.c : got rid of compiler warnings
430 2006-05-14  Hans Breuer  <hans@breuer.org>
432         * plug-ins/python/python.c : protect the plug-in against 
433         initializing if Python already is initialized. This PyDia extensions
434         is designed for embedding Python.
435         
436         * plug-ins/python/pydia-property.c : LineStyle.dash may be either
437         Float or Integer.
438         
439         * plug-ins/python/diasvg_import.py : remove FontSize debug spew
440         
441         * lib/font.c : GDK_WINDOWING_WIN32: if called with a display already
442         setup use the pango context matching the display. Otherwise fallback
443         to a context from PangoWin32 (matches only for gtk+-2-6, not the one
444         used since gtk+-2-8 using cairo.
445         
446 2006-05-13  Hans Breuer  <hans@breuer.org>
448         [ also applied to branch dia-0-95 ]
449         * objects/UML/umloperationc: add "query" to umloperation_offsets.
450         Patch from Peter Allin, fixes bug #338336
452         [ also applied to branch dia-0-95 ]
453         * app/diagram.c(diagram_ungroup_selected) : operate on a copy
454         of data-Selected cause the original is modified during use.
455         Patch from Victor Stinner, fixes bug #334771
457         * configure.in config.h.win32 : development started again so 095+cvs.
458         Critical bugfixes may go on the dia-0-95 branch (may lead to 0.95.1 
459         if necessary)
460         
461         * app/diagram.c : removed long-time outcommented code
462         
463         * lib/diagramdata.h lib/filter.h lib/geometry.h lib/plug-ins.h
464           lib/properties.h : C++ aware by G_BEGIN_DECLS, G_END_DECLS
465         
466         * objects/UML/class.c : don't dia_assert_true(attr->comment != NULL)
467         it is handled everywhere else just fine.
468         
469 2006-04-19  Lars Clausen  <lars@raeder.dk>
471         * installer/win32/dia.nsi: 
472         * doc/en/dia.xml: 
473         * doc/eu/dia.xml: 
474         * doc/pl/dia.xml: 
475         * config.h.win32: 
476         * configure.in: 
477         * NEWS: Release 0.95
479         * shapes/Gane_and_Sarson/process.shape: Connectionpoint update
480         from Nick Moore <shiny.nickel@gmail.com>.
482 2006-04-17  Kjartan Maraas  <kmaraas@gnome.org>
484         * configure.in: Remove obsolete entry for no_NO
485         * po/no.po: And the translation.
487 2006-04-12  Lars Clausen  <lars@raeder.dk>
489         * installer/win32/dia.nsi: 
490         * doc/en/dia.xml: 
491         * doc/eu/dia.xml: 
492         * doc/pl/dia.xml: 
493         * config.h.win32: 
494         * configure.in: 
495         * NEWS: -pre9
497         * configure.in: Check for xgettext.  Apparently
498         AM_GLIB_GNU_GETTEXT notices it's missing but doesn't abort.
500 2006-04-04  Steffen Macke <sdteffen@gmail.com>
502         * installer/win32/dia.nsi:
503         * installer/win32/langmacros.nsh:
504         * installer/win32/locale/*.nsh: Added check for outdated libgtk dll;
505         closes bug #335477
507 2006-04-03  Lars Clausen  <lars@raeder.dk>
509         * installer/win32/dia.nsi: 
510         * doc/en/dia.xml: 
511         * doc/eu/dia.xml: 
512         * doc/pl/dia.xml: 
513         * config.h.win32: 
514         * configure.in: 
515         * NEWS: -pre8
517         * plug-ins/xfig/xfig-import.c: Initially place text in the right
518         place. 
520 2006-04-03  Steffen Macke <sdteffen@gmail.com>
522         * installer/win32/dia.nsi:
523         * installer/win32/locale/french.nsh: Added french installer
524         locale. Patch from Yannick Le Ny <y.le.ny@ifrance.com>
526 2006-04-02  Hans Breuer  <hans@breuer.org>
528         * doc/pl/dia.xml : "DOCTYPE book" closes bug #142098, Roland Stigge
530 2006-03-29  Daniel Drake  <dsd@gentoo.org>
532         * configure.in: Use standard pkg-config expressions to check for
533         GTK+/Glib, the GTK-supplied macro's conflict with our usage of
534         $GTK_MODULES (#335422)
536 2006-03-28  Lars Clausen  <lars@raeder.dk>
538         * app/Makefile.am (dia_LDADD): Patch from Peter for bug #336377:
539         Include libs and cflags in proper places.
541         * installer/win32/dia.nsi: 
542         * doc/en/dia.xml: 
543         * doc/eu/dia.xml: 
544         * doc/pl/dia.xml: 
545         * config.h.win32: 
546         * configure.in: 
547         * NEWS: -pre7
549         * shapes/network/mobile_phone.{png,xpm,shape}:
550         * shapes/network/telephone.shape:
551         * shapes/network/disc.shape:
552         Updates from W. Borgert <debacle@debian.org> improving looks and
553         positioning.
554         
555 2006-03-26  Lars Clausen  <lars@raeder.dk>
557         * objects/network/radiocell.c: Patch from W. Borgert
558         <debacle@debian.org> for extra midpoint, flicker, extraneous
559         properties.
560         
561         * objects/network/basestation.c: Patch for BB from W. Borgert
562         <debacle@debian.org>. 
564 2006-03-23  Hans Breuer  <hans@breuer.org>
566         * lib/widgets.c : use original fontname and fallback 'sans' to
567         render the font menu. Thus crashing (in Pango) is delayed until
568         the point where one chooses a font, which can't be rendered by
569         Pango. Fixes bug #335096 as far as Dia can.
570         
571 2006-03-21  Lars Clausen  <lars@raeder.dk>
573         * installer/win32/dia.nsi: 
574         * doc/en/dia.xml: 
575         * doc/eu/dia.xml: 
576         * doc/pl/dia.xml: 
577         * config.h.win32: 
578         * configure.in: 
579         * NEWS: -pre6
581         * plug-ins/xfig/xfig-import.c: Last missing stack underflow check.
583 2006-03-19  Hans Breuer  <hans@breuer.org>
585         * app/display.c app/preferences.c : unset transient, still issues
586         with transient handling, see bug #332828
587         
588         * app/makefile.msc lib/makefile.msc objects/makefile.msc
589           plug-ins/makefile.msc : removed stuff supposed to be used from
590         $(TOP)/glib/build/win32/make.msc
591         
592         * plug-ins/xfig/xfig-import.c : make it compile with strict type 
593         checking [these were real errors, freeing stack passed values instead
594         of the intended local variable] :
595         xfig-import.c(580) : error C4047: 'function' : 'struct _GArray *' 
596          differs in levels of indirection from 'struct _Point ** '
597         xfig-import.c(580) : warning C4024: 'g_array_free' : different types 
598          for formal and actual parameter 1
600         * lib/libdia.def : export connection_adjust_for_autogap 
601         
602         * plug-ins/hpgl/hpgl.c : there is one floating point value in the 
603         whole HPGL output - and it was locale dependent.
605 2006-03-12  Lars Clausen  <lars@raeder.dk>
607         * installer/win32/dia.nsi: 
608         * doc/en/dia.xml: 
609         * doc/eu/dia.xml: 
610         * doc/pl/dia.xml: 
611         * config.h.win32: 
612         * configure.in: 
613         * NEWS: -pre5
615         * objects/UML/constraint.c (constraint_update_data): 
616         * objects/UML/message.c (message_update_data): 
617         * objects/UML/implements.c (implements_update_data): 
618         * objects/SADT/annotation.c (annotation_update_data): 
619         * objects/Jackson/phenomenon.c (message_update_data): 
620         * objects/network/wanlink.c (wanlink_update_data): 
621         * objects/FS/flow.c (flow_update_data): Added autogap adjustment.
623         * objects/standard/line.c: 
624         * lib/connection.[ch] (connection_adjust_for_autogap): Moved autogap
625         functionality for connections.
627 2006-03-11  Lars Clausen  <lars@raeder.dk>
629         * lib/diagdkrenderer.c (draw_object): 
630         * lib/dialibartrenderer.c (draw_object): Don't draw highlighting
631         in the non-interactive rendering.
633         * dia.spec:
634         * installer/rpm/dia.spec:
635         * installer/rpm/README:
636         Moving dia.spec to installer directory, where distribution
637         maintainers can keep their own copies.
639         * objects/UML/uml.h: 
640         * objects/UML/class.h: 
641         * objects/UML/umloperation.c: 
642         * objects/UML/class.c: 
643         Preparations to fix bug #334037: Clean away the Lisp-like
644         constructs confusing the issue.
646 2006-03-10  Lars Clausen  <lars@raeder.dk>
648         * lib/object.c: Don't compare floats with ==, even in sanity checks.
650 2006-03-09  Lars Clausen  <lars@raeder.dk>
652         * plug-ins/xfig/xfig-import.c: Fix three buffer overflows in color
653         reading, depth reading, and points reading.  Thanks to 
654         
655         * COPYING: Added copyright info again.
657 2006-03-09  Steffen Macke <sdteffen@gmail.com>
659         * installer/win32/dia.nsi: don't uninstall old version; overwrite
660         existing files
662 2006-03-08  Steffen Macke <sdteffen@gmail.com>
664         * installer/Makefile.am:
665         * installer/win32/Makefile.am:
666         * installer/win32/locale/Makefile.am: Making sure that the installer
667         sources are included in the dia source distribution
668         * installer/win32/dia.nsi: Don't include makefiles in installer;
669         Add uninstaller link to start menu (bug #332650); added commandline 
670         option GTKBIN to specify GTK installation directory (fixes bug #332595)
671         * installer/win32/dia-diagram.ico:
672         * installer/win32/dia-header.bmp:
673         * installer/win32/dia-install.ico:
674         * installer/win32/dia-intro.bmp:
675         * installer/win32/dia-uninstall.ico:
676         * installer/win32/dia.nsi:
677         * installer/win32/langmacros.nsh:
678         * installer/win32/locale/english.nsh:
679         * installer/win32/locale/german.nsh: Added files to build the win32
680         installer using NSIS (http://nsis.sourceforge.net)
681         
682 2006-03-06  Lars Clausen  <larsrc@raeder.dk>
684         * doc/en/dia.xml: 
685         * doc/pl/dia.xml: 
686         * config.h.win32: 
687         * configure.in: 
688         * NEWS: -pre4
690         * samples/TexChars.dia: Added sample of the escaped chars for TeX.
691         
692         * plug-ins/pstricks/render_pstricks.c (tex_escape_string):
693         Changing escape of \, [, and ] to something that works.  $ is
694         fine.  Fixes parts of 333193.
696 2006-03-05  Lars Clausen  <larsrc@raeder.dk>
698         * plug-ins/xfig/xfig-import.c: Fixed locale issues with FIG import.
700         * lib/orth_conn.c (orthconn_update_data): 
701         * app/diagram.c: Removing debug info.
703         * app/object_ops.c (object_find_connectpoint_display): Don't
704         magnet to parents.
706 2006-02-26  Hans Breuer  <hans@breuer.org>
708         * app/Makefile.am : define DIA_PYTHON_PATH in app/run_dia.sh
709         * plug-ins/python/python.c : if set use it to find python-startup.py
710         (bug #332599, Torben H. Nielsen)
712         * app/app_procs.c : removed // from gtk_init() [shouldn't have commited
713         my test code]. Really closes #332177, thanks Mateus César Gröess.
715 2006-02-26  Lars Clausen  <lars@raeder.dk>
717         * doc/en/dia.xml: 
718         * doc/pl/dia.xml: 
719         * config.h.win32: 
720         * configure.in: 
721         * NEWS: -pre3
723         * lib/element.h (ELEMENT_COMMON_PROPERTIES): Turning off setting
724         of element_width and element_height until constraints can be 
725         properly checked.  Bug #328200
727         * dia.spec (Requires): Updated GTK requirements.
729 2006-02-25  Lars Clausen  <lars@raeder.dk>
731         * lib/diaarrowchooser.c (dia_arrow_chooser_new): Also making sure
732         other dynamic menus have proper translation.
734         * lib/widgets.c (dia_dynamic_menu_create_string_item): 
735         * app/interface.c (cmp_names): 
736         * app/sheets.c (sheets_optionmenu_create): 
737         * lib/sheet.c (load_register_sheet): Using C locale for sheet
738         names internally, translating on display instead.  Also sorting
739         by gettext order explicitly.  Bug #328570.
741 2006-02-25  Hans Breuer  <hans@breuer.org>
743         * app/interface.c(get_sheet_by_name) : be more tolerant about 
744         localization of the sheet name. ( Steffen Macke, #332070 )
745         
746         * app/app_procs.c(app_init) : if GDK_WINDOWING_WIN32 call gtk_init()
747         in any case. In contrast to X11/*nix displays are not optional on
748         windoze. And we need some help of gtk to render text to bitmaps.
749         ( Rob McDonald, bug #332177 )
750         
751 2006-02-21  Lars Clausen  <lars@raeder.dk>
753         * NEWS: 
754         * doc/pl/dia.xml: 
755         * doc/en/dia.xml: 
756         * configure.in: 
757         * config.h.win32: Update to -pre2.
759         * lib/beziershape.c (add_handles): Fixing CP pos calculation for
760         adding new CP's.  Fixes bug #331557.
762 2006-02-20  Lars Clausen  <lars@raeder.dk>
764         * lib/diarenderer.c (find_center_point): Better handling of some
765         degenerate cases.
766         (draw_arc_with_arrows): Draw line in all cases.  Doesn't handle
767         the truly degenerate cases well enough yet, but at least doesn't
768         break on common cases.  Probably need to do something special for
769         arcs with start and end point the same.  Improves but does not
770         entirely fix bug #331372.
772 2006-02-20  Hans Breuer  <hans@breuer.org>
774         * plug-ins/python/Makefile.am : dot.py was missing from EXTRA_DIST
775         
776 2006-02-18  Hans Breuer  <hans@breuer.org>
778         * plug-ins/metapost/render_metapost.c : text position gives the
779         baseline neither top nor bottom. ( Rob McDonald, #331491 )
781         * plug-ins/wmf/wmf.cpp : finally respecting the print margins
782         ( Rob McDonald, #331371 )
783         * plug-ins/wmf/wmf_gdi.h : some more constants not useful 
784         without a GDI printer (driver)
785         
786 2006-02-17  Hans Breuer  <hans@breuer.org>
788         * plug-ins/metapost/render_metapost.c(draw_string) : dont query
789         the font for it's height but use the 'height' parameter passed
790         in. Close enough to the desired size - and independent of zoom -
791         to close bug #331489 (Rob McDonald)
792         
793 2006-02-12  Lars Clausen  <lars@raeder.dk>
795         * NEWS: 
796         * dia.spec: 
797         * doc/pl/dia.xml: 
798         * doc/en/dia.xml: 
799         * configure.in: 
800         * config.h.win32: Updates for version 0.95-pre1.
802 2006-02-12  Hans Breuer  <hans@breuer.org>
804         * app/makefile.msc : build three components dia.exe (console
805         application), diaw.exe (windows application) and dia-app.dll
806         containing almost all of Dia's application shared between
807         the two executables
808         * app/main.c app/winmain.c app/app_procs.c app/dia.def : some 
809         refactoring to accomplish the new dependency layout
810         * objects/makefile.msc plug-ins/python/makefile.msc : need to
811         link dia-app.lib now - if at all depending on app/*
812         
813 2006-02-11  Hans Breuer  <hans@breuer.org>
815         * makefile.msc : nmake -f makefile.msc just compiles now
816         * app/makefile.msc lib/makefile.msc : make not using FT2
817         on win32 the default (works around bug #150813 by diabaling it)
818         * objects/makefile.msc plug-ins/makefile.msc : remove -GD from
819         $(CC) command line. It isn't understood by newer versions of cl.
820         
821         * app/authors.h : reflect the recent maintainers change
822         
823         * app/display.c app/load_save.c : removed debug spew
824         
825         * app/winmain.c : improved redirection
826         
827 2006-02-05  Hans Breuer  <hans@breuer.org>
829         * app/menus.[ch] app/diagram.c : the GNOME specific menu code is dead 
830         since 0.94. Fix somne left-overs, also properly disable the duplicate
831         menu entry
833         * po/POTFILES.in : added objects/network/wanlink.c
835 2006-02-05  Hans Breuer  <hans@breuer.org>
837         * lib/dialibartrenderer.c(renderer_finalize) : dont unref 
838         parent_instance.font here. It will be done in DiaRenderer::finalize()
839         Just another reason for crashing at diagram close with libart 
840         renderer involved ...
841         
842 2006-02-04  Hans Breuer  <hans@breuer.org>
844         * objects/standard/image.c : added mainpoint, patch from
845         Torben H. Nielsen fixing bug #329603
847         * app/layer_widget.c : avoid writing to Layer::connectable for a
848         diagram possibly already gone. Fixes bug #329096.
850         * lib/persitence.c(persistence_load) : dont leak filename
851         in case of not existing file
853         Code review via regex "[^_l>p](malloc|free|realloc)\("
854         * objects/fs/function.c : what's g_strdup() must be g_free()'d
855         * plug-ins/dxf/dxf-import.c : use g_realloc()/g_free()
856         * plug-ins/xfig/xfig-import.c : use g_free() instead of plain free()
858         * app/filedlg.c(file_save_as_response_callback) : before destroying 
859         the save as dialog we need to drop the dialogs diagram reference.
860         Fixes behaviour described in bug #123225#c7
862         * app/interface.c(get_sheet_names) : need to sort sheets by their 
863         display name to really fix bug #160101.
864         
865         * objects/UML/association.c : dont leak the role_name calculated
866         with visibility attribute, use g_strdup_printf() instead of strcat().
867         
868         * configure.in : fix typo in error message
870         * lib/object.c : remove duplicated prototype
871         * lib/element.c : element_update_connections_rectangle() assumes nine
872         connection points, i.e. requires 'mainpoint'. g_assert() for this.
873         
874 2006-02-03  Hans Breuer  <hans@breuer.org>
876         * objects/network/bus.c : allow to tint it. Patch from
877         Torben H. Nielsen, closes bug #328580.
878         * objects/network/wanlink.c : allow to tint this as well.
879         
880 2006-01-29  Hans Breuer  <hans@breuer.org>
882         * app/render_libart.c(draw_line) : make setting the pixel side-effect
883         free; account for it in now (less) magic increments. Fixes bug #312147
885 2006-01-28  Hans Breuer  <hans@breuer.org>
887         * po/checktrans.py : make it work with recent pyxml (unknown url type)
888         * po/AADL.sheet.in : remove duplicated _description
889         => translation report works again
891         * app/display.c : revert back to "_Discard Changes" to avoid
892         accelerator clash. Also gtk_button_new_with_mnemonic() to
893         'expand' the accelerator.
895         * lib/dia_svg.c(dia_svg_style_init) : need to initialize
896         linecap, linejoin, linestyle to avoid invalid settings.
897         (Nguyen Thai Ngoc Duy, bug #328945)
898         * lib/diagdkrenderer.c : add a place fro breakpoint to 
899         detect invalid mode
901         * lib/diarenderer.c(setfont) : if we get passed in the
902         same font it must be ref'd before unref.
904         * lib/text.c(set_string) : don't eat the trailing new-line
905         Fixes bug #165092
906         
907         * app/app_procs.c app/display.c app/filedlg.c 
908         attempt to provide more HIG compliant dialogs. Patch from
909         Nguyen Thai Ngoc Duy, part of bug #138183
910         
911         * app/recent_files.c(recent_file_history_clear_menu) : instead of 
912         messing with GtkMenuShell::children and gtk_widget_destroy() just 
913         use gtk_container_remove. Avoids memory corruption causing the
914         most 'random' crashes recently.
915         
916         * objects/UML/message.c : can't use PROP_STD_TEXT_COLOUR_OPTIONAL 
917         cause it has PROP_FLAG_DONT_SAVE. It is designed to fill the 
918         TextAttributes - not some subset. Fixes bug #327701
919         * objects/UML/implements.c objects/UML/generalization.c
920           objects/UML/constraint.c objects/UML/object.c
921           objects/UML/large_package.c objects/UML/realizes.c : same here.
922         * objects/UML/dependency.c : same here. Also draw the "Name" with the
923         given color, not only the Stereotype.
924         * objects/UML/class.c : same here. But we also need to restore 
925         explicit restore "text_color" for the load case.
926         
927 2006-01-27  Hans Breuer  <hans@breuer.org>
929         * configure.in : error out if GLib/GTK+ version is lower than required
931         * app/filedlg.c lib/widgets.c : more default responses. Patch 
932         from Nguyen Thai Ngoc Duy, part of bug #138183
933         
934         * NEWS : Main point feature correction. The line is supposed to
935         start at the border of the object not the bounding box.
936         
937         * app/commands.c : respect difference between documenters and
938         translators and show both in about dialog. Closes bug #328711.
939         
940         * app/interface.c : instead of g_warning for missing shape icon
941         but use message_warning and show the 'missing' icon
942         
943         * lib/dialibartrenderer.c : with Gtk+ 2.8 gdk_draw_layout() does
944         not match pango_win32_get_context(). Use gdk_pango_get_context ().
945         Also removed my special win32-modified-pango code for draw_string()
946         without the help of gdk.
948         * Makefile.am : include MAINTAINERS file in tarball
950         * lib/conectionpoint.h : removed double include of "geometry.h"
951         
952 2006-01-22  Hans Breuer  <hans@breuer.org>
954         * app/splash.c app/commands.c : dont share the logo and finally leak
955         it. Instead both place load and unref the logo themself. 
956         Also unbreak GNOME case.
958         * app/commands.c : use GtkAboutDialog instead of homegrown GTK+
959         or GNOME specific one. 120 lines less code and more standard.
960         * configure.in : require GTK+ >= 2.6
962         * app/diapagelayout.c app/diaunitspinner.c app/layer_dialog.c :
963         make GtkTypeInfo static const as usual elsewhere
964         
965         * app/recent_files.c : it almost certainly is an error to ignore
966         the return value of g_list_remove_link()
967         
968         * lib/arrows.c lib/bezier_conn.[ch] lib/beziershape.h
969           lib/boundingbox.[ch] lib/color.[ch] lib/connectionpoint.c
970           lib/create.h lib/dia_svg.c lib/dia_xml.c lib/diaarrowchooser.c
971           lib/diagramdata.[ch] objects/UML/activity.c objects/UML/class.[ch]
972           objects/UML/uml.h : documentation fixes
973         
974         * lib/object.h lib/diagramdata.h : avoid circular inclusion
975         * lib/connectionpoint.h lib/focus.h lib/group.h lib/handle.h
976           lib/properties.h lib/sheet.h lib/diamenu.h
977         : dont include "object.h", "diatypes.h" is enough. 
978         Rule of thumb: only headers declaring an inheritant of DiaObject
979         should include "object.h"
980         * lib/diarenderer.h : include "font.h" not strictly needed by 
981         this header, but needed in almost any plug-in/
982         * app/diagram_tree_menu.c app/dialogs.[hc] app/display.c
983           app/export_png.c app/interface.c app/load_save.c app/sheets.c
984           app/sheets_dialog.c app/sheets_dialog_callbacks.c 
985           lib/diagdkrenderer.c lib/object.c lib/propobject.c
986           lib/text.c plug-ins/gprint/gnomeprint.c plug-ins/pixbuf/pixbuf.c
987           plug-ins/svg/render_svg.c
988           : some .c files now need to include "object.h" or <gtk/gtk.h>
989         or e.g. "intl.h" direct, formerly dargged in indirectly
990         * plug-ins/pgf/render_pgf.c : explicit inclusion of "arrows.h"
991         
992 2006-01-21  Hans Breuer  <hans@breuer.org>
994         * lib/connection.c lib/connection.h lib/connectionpoint.h
995           lib/diagramdata.h lib/diarenderer.h lib/diatypes.h
996           lib/element.h lib/geometry.h lib/handle.h lib/objchange.h
997           lib/object.c lib/object.h : documentation tweaking
999         * objects/UML/class_dialog.c(attributes_create_page,
1000         operations_create_page) : dont connect
1001         to a not exisiting signal. Avoids "GLib-GObject-CRITICAL **:
1002         g_signal_connect_closure_by_id: assertion 'signal_id > 0' failed"
1003         (This was a leftover of introducing the GtkTextView instead of GtkEntry)
1005         * objects/UML/class_dialog.c objects/UML/class.c objects/UML/class.h :
1006         Introduce 'comment_tagging' switch which allows to hide the rendering
1007         {documentation = } Maybe a choice between ugliness and non-standard.
1008         Fixes bug #326214. (Unrelated: started to adapt casing of variables
1009         to Dia's common coding style)
1010                 
1011         * lib/object_defaults.c : pass is_default=TRUE to object_copy_props
1012           lib/proplist.c : fixed pdtpp_default()
1013           lib/propobject.c : correctly reflect is_default 
1014         * object/UML/class.c : correct setting of PROP_FLAG_NO_DEFAULTS and
1015         PROP_FLAG_DONT_MERGE. With the above this fixes bug #320934
1016         
1017         * lib/propdialogs.c : if PROP_NO_DEFAULTS is set dont try to show a
1018         widget in defaults dialog
1020         * app/display.c(initialize_display_widgets) : also append the Input 
1021         Methods menu to the diagram menubar. Now fixes bug #327862.
1023         * config.h.win32 : #undef LOCALEDIR
1024         * app/app_procs.c : runtime calculation of localedir. It now is
1025         $(executable_dir)/../locale. Should help fix bug #309763
1026         
1027         * sheets/AADL.sheet.in : remove left over xml:lang tag. 
1028         ( Nguyen Thai Ngoc Duy, bug #327519)
1030         * lib/dialibartrenderer.c : make text rendering work without
1031         PangoFT2 and PangoWin32
1034 2006-01-18  Lars Clausen  <lars@raeder.dk>
1036         * objects/UML/class.h: Enabling UML class mainpoint after failure
1037         to break it.
1039         * app/grid.c: Fix bug with grid being incorrectly drawn when gap <
1040         1.
1042 2006-01-14  Hans Breuer  <hans@breuer.org>
1044         * app/paginate_psprint.c : ensure we are not producing pages for
1045         epsilon. Floating imprecision is fun. Fixes bug #133856.
1046         * app/paginate_gdiprint.cpp : same here.
1048         * plug-ins/pstricks/render_pstricks.c(draw_string) : now that I've
1049         found the nice samples from bug #156171 it was quite simple to
1050         confirm that the y value need indeed to be inverted. Fixes bug #304974.
1051         Also special case strings starting with \tex - i.e. dont escape them -
1052         to keep the use-case of direct tex input.
1053         
1054         * lib/debug.c : #include <glib/gprintf.h> not just <gprintf.h>
1057 2006-01-14  Hans Breuer  <hans@breuer.org>
1059         * samples/Self/umlclass.dia : (new file) documenting part of the
1060         object relations of UMLClass. Also good for testing connections.
1061         
1062         * lib/debug.c : replace wrong call to vprintf() - missing file
1063         descriptor - with the more appropriate g_vprintf(). Thus 
1064         dia_assert_true() does not smash the stack anymore on win32.
1065         
1066         * objects/UML/class.c objects/UML/class_dialog.c objects/UML/uml.h
1067           objects/UML/umlattribute.c objects/UML/umloperation.c :
1068         reverted the memory managment of UMLAttribute/UMLOperation's 
1069         ConnectionPoint(s) back to how it was up until 0.94. This finally
1070         makes the UMLClass work again including undo/redo support. Fixes
1071         bug #314153 and en passant bug #326453.
1072         
1073 2005-01-12  Lars Clausen  <lars@raeder.dk>
1075         * objects/UML/umlattribute.c: 
1076         * objects/UML/class_dialog.c: Better way of handling
1077         connectionpoints: Don't copy them, just reference them.  Finally
1078         fixes bug #314153 (not quite the pi bug:)
1080         * app/menus.c (display_menu_items): 
1081         * app/filedlg.c (file_open_response_callback): 
1082         * app/display.[ch] (copy_display): 
1083         * app/commands.[ch] (view_clone_view_callback): 
1084         Added functionality to clone display.  Preparation for storing
1085         display info in diagram files (not happening this version, though).
1087         * INSTALL (NOTE FOR WINDOWS USERS): Added note for non-compiling
1088         users pointing at dia-installer.
1090 2006-01-08  Hans Breuer  <hans@breuer.org>
1092         * shapes/Gane_and_Sarson/Makefile.am : correct spelling of filenames.
1093         (Narcelio Filho, #326075)
1095         * objects/AADL/aadl.h : remove #include "app/display.h". It is not needed,
1096         plug-ins should not depend on app/* and it even breaks 'make distcheck'.
1097         * objects/AADL/Makefile.am : added edit_port_declaration.h
1098         * app/Makefile.am : added diaconv.c to EXTRA_DIST
1099         => 'make distcheck' passes again.
1101         * configure.in : use some more of gcc's useful warnings
1103         * lib/geometry.h : removed unused functions just producing warnings
1104         [sometimes it's good to read compiler warnings]
1105         * plug-ins/cairo/diacairo.c : somehow a function call got lost
1106         (left-hand operand of comma expression has no effect)
1107         * plug-ins/metapost/render_metapost.c : dia_message_filename()
1108         wants a char* not a FILE* (passing arg 1 of `dia_message_filename'
1109         from incompatible pointer type)
1112 2006-01-07  Hans Breuer  <hans@breuer.org>
1114         * objects/custom/shape_info.c(parse_path) : handle the case of 
1115         invalid path data more gracefully, i.e. show a warning instead 
1116         of crashing later on.
1117         * plug-ins/svg/svg-import.c(read_path_svg) : ditto.
1118         
1119         * configure.in sheets/Makefile.am shapes/Gane_and_Sarson 
1120           shapes/Makefile.am : added Gane & Sarson shapes 
1121         (Nick Moore, #319544)
1123         * objects/makefile.msc : building AADL on win32
1125 2006-01-06  Hans Breuer  <hans@breuer.org>
1127         * objects/AADL/aadl.h : avoid redefinition warnings by #undef
1128         min, #undef max before local definitions
1129         * objects/AADL/aadl.h : more prototypes
1130         * objects/AADL/aadltext.c : for C89 declarations must be at the
1131         beginning of a block. And Dia *must* be compileable with C89.
1133         * objects/AADL/** objects/Makefile.am sheets/Makefile.am 
1134         configure.in : AADL plug-in from Pierre Duquesne. See
1135         http://mail.gnome.org/archives/dia-list/2006-January/msg00005.html
1136         for more information
1137         * sheets/AADL.sheet.in : from the above patch but modified 
1138         to become translatable like the other sheet files. That is: the
1139         french translation got temporary removed cause it does not belong here.
1141         * plug-ins/pgf/render_pgf.c : no C99/C++ comments please
1143         * app/app_procs.c app/diaconv.c : get rid of run-on sentences
1144         (Adam Weinberger, bug #325567)
1145         
1146         * app/menus.c : removed some keybindings with <control><shift>[0-9A-F]
1147         and change some other to use <control><alt>. They collide with GTK's 
1148         Unicode input feature. Fixes bug #320495. For rationale see: 
1149         http://developer.gnome.org/projects/gup/hig/2.0/input-keyboard.html
1150         
1151         * app/display.c : pay attention to g_warnings() [should always run
1152         with --g-fatalwarnings ;)]. Only create the menubar IM menu if there
1153         actually is a menu bar.
1154         
1155         * lib/diarenderer.c : the righthand calculation accidentially broke
1156         some arcs direction. Should be fixed again.
1157         
1158 2006-01-02  Hans Breuer  <hans@breuer.org>
1160         * app/display.c(new_display) : also append the Input Methods menu to 
1161         the diagram menubar. Fixes bug #308576.
1163         * lib/widgets.c(dia_dynamic_menu_reset) : don't use an already
1164         freed string to dia_dynamic_menu_select_entry(). Fixes bug #323592.
1166         * lib/sheet.c(dia_sheet_sort_callback) : sort sheets according to 
1167         their localized name (with g_utf8_collate). Thus not relying on the 
1168         capabilities of the C libraries strcmp(). Fixes bug #160101.
1170         * lib/diarenderer.c(draw_arc_with_arrows) : don't recalculate center
1171         point and width from the (arrow-)corrected new points. Otherwise a 
1172         whole new wrong arc may emerge. Fixes bug #312641.
1173         
1174 2006-01-01  Hans Breuer  <hans@breuer.org>
1176         * objects/custom/custom_object.c(cutom_update_data) : depending 
1177         on the handle moving let one scale (x or y) take precedence. 
1178         (bug #308515, Eric Deplagne)
1179         
1180         * objects/UML/class.c : only perform the attributes check with
1181         attributes visible to ged rid of false warnings
1182         * objects/UML/class_dialog.c : need to setup Connection::object
1183         after uml_attribute_new() and uml_operation_new(), again less
1184         warnings but bug #314153 still not fixed.
1186         * NEWS : updated
1188         * plug-ins/python/diasvg.py : more correct svg by also writing 
1189         xmlns="http://www.w3.org/200/svg"
1191         * plug-ins/python/dot.py : skip unconnected connection lines
1192         * plug-ins/python/Makefile.am : added dot.py
1194         * plug-ins/python/pydiadoc.py plug-ins/python/codegen.py : fixed
1195         typos in comments
1197 2005-12-31  Hans Breuer  <hans@breuer.org>
1199         * objects/UML/class.[hc] objects/UML/class_dialog.c : removed the 
1200         caching of UMLClass::attributes_strings, operations_strings, 
1201         templates_strings.
1202         It was broken by the recent code restructuring in bug #303744 and
1203         - if necessary at all - nowadays it should be done on the 
1204         UMLAttribute, UMLOperation, UMLFormalParameter level anyway. 
1205         A small, much needed simplification of the code.
1207 2005-12-30  Hans Breuer  <hans@breuer.org>
1209         * objects/UML/class.c : Patch from Dave Klotzbach
1210         fixes crash bug #325151
1212         * app/app_procs.c : add command line parameter --nonew to allow
1213         avoiding the empty start-up diagram
1214         Also give a hint on where the object-libs were missing.
1215         Finally work around a misbehaviour upstreamm :
1216         g_option_context_parse() returning FALSE but not setting error.
1218         * app/commands.c app/app_diagram_tree.c app/interface.c :
1219         Use gdk_pixbuf_render_pixmap_and_mask_for_colormap as suggested by
1220         http://www.gtk.org/api/2.6/gdk/gdk-Pixbufs.html#gdk-pixbuf-render-pixmap-and-mask
1221         
1222         * lib/widgets.c : image file selection finally ported to the new
1223         gtk file chooser. Fixes bug #309383
1225 2005-12-28  Hans Breuer  <hans@breuer.org>
1227         * app/commands.c(file_new_callback) : convert to filename encoding before
1228         passing to new_diagram(), fixes bug #322400
1229         
1230         * app/interface.c(create_display_shell) : don't clip width on screen 
1231         height - now commited. Also lazy creation of tooltips.
1232         
1233         * objects/UML/actor.c : Actor is finally resizable, fixes bug #66915
1234         
1235 2005-12-27  Hans Breuer  <hans@breuer.org>
1237         * app/diapsft2renderer.c(draw_bezier_outline) : only call
1238         FT_Outline_Decompose() when FT_GLYPH_FORMAT_OUTLINE.
1239         Prefers no text output over crashing for bug #144212
1241         * app/interface.c : removed superfluous call to dia_canvas_set_size().
1242         Suggested by Roland Stigge, fixes bug #148149.
1244         * plug-ins/dxf/dxf-import.c : don't complain too loud on Binary
1245         DXF. It is not supported at all. Fixes bug #322101
1247         * lib/geometry.c : removed the ifdefed GLIB_CHECK_VERSION(2,7,0)
1248         define G_IMPLEMENT_INLINES. It breaks again with glib-2-8
1251 2005-12-27  Hans Breuer  <hans@breuer.org>
1253         * app/navigation.c : protect on_da_button_release_event() against being
1254         called twice. Also only popdown the navigation window after the first 
1255         draw (reusing nav->is_first_expose). Fixes bug #151696
1256         
1257         * app/interface.c(create_display_shell): don't clip width on screen height, 
1258         but height
1260         * lib/plug-ins.c : fixed typo in comment
1261         
1262         * lib/libdia.def : updated externals
1263         * lib/makefile.msc : build debug.obj
1265         * plug-ins/makefile.msc : building pgf in the right alphabetical order
1266         * plug-ins/pgf/render_pgf.c : include <glib/gprintf.h>
1267         
1268 2005-12-08  Lars Clausen  <lars@raeder.dk>
1270         * app/authors.h: 
1271         * plug-ins/pgf/pgf.c: 
1272         * plug-ins/pgf/render_pgf.[ch]: 
1273         * plug-ins/pgf/Makefile.am: 
1274         * plug-ins/Makefile.msc: 
1275         * plug-ins/Makefile.am (SUBDIRS): 
1276         * configure.in: Patch from Moritz Kirmse <momomaniac@gmail.com>: Add
1277         support for PGF output for including in (La)TeX documents that
1278         allows PDF generation.
1280         * samples/render-test.dia: Added samples of text in different
1281         sizes, standard fonts and styles with size markers.
1283 2005-12-04  Lars Clausen  <lars@raeder.dk>
1285         * lib/Makefile.am (gen_sources): Mark marshal files as generated.
1286         (BUILT_SOURCES): Added marshal files.
1288 2005-12-03  Lars Clausen  <lars@raeder.dk>
1290         * lib/Makefile.am (diamarshal.c): Fix marshal rules to not talk
1291         about $(srcdir) and confusing everybody.
1293         * app/undo.c:
1294         * lib/diagramdata.c:
1295         * lib/diagramdata.h:
1296         * lib/diamarshal.list:
1297         * plug-ins/python/pydia-diagram.c:
1298         * plug-ins/python/pydia-diagramdata.c:
1299         * plug-ins/python/python-startup.py: Patch from David Johansson
1300         <david.lgj@gmail.com>: Add signals emitted when objects are
1301         inserted or removed.
1303 2005-11-13  Lars Clausen  <lars@raeder.dk>
1305         * app/display.c (update_zoom_status): Fix of bug #321387: Avoid
1306         (small) buffer overflow by using g_strdup_printf instead of sprintf.
1308 2005-11-09  Lars Clausen  <lars@raeder.dk>
1310         * app/app_procs.c: 
1311         * plug-ins/dxf/dxf-import.c (import_dxf): Don't use g_error except
1312         when reaching the statement is a bug.  Using g_critical and exit() for
1313         fatally wrong inputs.
1315         * objects/UML/uml.c: 
1316         * objects/UML/class.c: Patch from dklotzbach@foxvalley.net (dave
1317         Klotzbach): Fixes template rendering and converts home-brew inline
1318         doc format to javadoc.  Doesn't yet fix bug #320934, but turns it
1319         into a dup.
1321 2005-11-07  Lars Clausen  <lars@raeder.dk>
1323         * lib/object.[ch]: Add 'enclosing box' as opposed to 'bounding
1324         box' since several objects have problems of using bounding box in
1325         different ways (see bug #300055).  For now, enclosing box ==
1326         bounding box, but over time objects will learn to expand the
1327         bounding box to include things only rendered interactively.
1329         * app/modify_tool.c (modify_motion): Make sure highlight is reset
1330         when moving between overlapping objects.
1332         * app/interface.c (interface_toggle_mainpoint_magnetism): Redraw
1333         diagram after toggling to make red X's come and go.
1335         * lib/font.c: #ifdef'd out layout cache for bug #307320.  Define
1336         it if you need faster rendering and aren't afraid of crashbugs:)
1338         * lib/objchange.c: Bugfix from dklotzbach@foxvalley.net
1339         (dave Klotzbach):  Fixes null pointer problems in free function.
1341         * objects/UML/class.c
1342         * objects/UML/class.h
1343         * objects/UML/class_dialog.c: Patch from dklotzbach@foxvalley.net
1344         (dave Klotzbach): Make UML comments conform to UML 1.0 standard
1345         and allow multi-line comments. Ugly as hell, but standard.  Time
1346         for a 'Strict UML' option?  Fixes bug #303744.
1347         
1348         * objects/UML/state.c: Patch from Peter Allin <peter@peca.dk>: Add
1349         entry, exit and do descriptions to a state object.  Fixes bug #65434.
1351 2005-11-03  Lars Clausen  <lars@raeder.dk>
1353         * lib/arrows.c:
1354         * lib/attributes.c:
1355         * lib/autoroute.c:
1356         * lib/bezier_conn.c:
1357         * lib/boundingbox.c:
1358         * lib/color.c:
1359         * lib/connection.c:
1360         * lib/connectionpoint.c:
1361         * lib/dia_dirs.c:
1362         * lib/dia_image.c:
1363         * lib/dia_svg.c:
1364         * lib/dia_xml.c:
1365         * lib/diaarrowchooser.c:
1366         * lib/diaerror.c:
1367         * lib/diagdkrenderer.c:
1368         * lib/diagramdata.c:
1369         * lib/element.c:
1370         * lib/object.c:
1371         * lib/object.h:
1372         * lib/parent.c:
1373         Added documentation java-doc style.  Also a few trivial cleanups.
1374         
1375 2005-10-13  Lars Clausen  <lars@raeder.dk>
1377         * lib/connectionpoint.h (DIR_ALL): Parentheses around operations
1378         in macros.
1380         * plug-ins/hpgl/hpgl.c (export_data): Correct error message.
1382         * lib/Makefile.am:
1383         * lib/debug.[ch]:
1384         * lib/object.[ch]: 
1385         * objects/UML/class.[ch]: 
1386         * objects/UML/uml.h: 
1387         * objects/UML/umlattribute.c: 
1388         * objects/UML/umloperation.c: 
1389         * objects/UML/class_dialog.c: 
1390         Rework of the UML class attribute/operation handling.  Now doesn't
1391         copy connection points into the dialog data, but only the "flat"
1392         data.  As part of debugging made sanity check functionality.
1393         Currently still dies when deleting an attribute/operation that has
1394         a connection to it.
1396 2005-10-09  Hans Breuer  <hans@breuer.org>
1398         * lib/properties.h : prefer american spelling of colo(u)r for
1399         user visible strings - i.e. to be translated ones.
1400         * objects/UML/uml.c : it is Implementation. Together fixes bug #313929
1401                                         ^
1402         * po/*.po : updated (by 'make distcheck')
1404 2005-10-09  Hans Breuer  <hans@breuer.org>
1406         * app/display.c : allow !"toolbox on top" without restart.
1407         (Chris Hellberg, bug #310702)
1409 2005-10-09  Hans Breuer  <hans@breuer.org>
1411         * lib/arrows.c : patch from Radek Krahl fixing the blanking
1412         of two arrowheads, bug #310157
1414 2005-10-08  Hans Breuer  <hans@breuer.org>
1416         * plug-ins/python/group_props.py : show a descriptive text instead of an 
1417         empty table if there are no common properties to change. Fixes bug #314432
1419 2005-10-08  Hans Breuer  <hans@breuer.org>
1421         * objects/UML/transition.c : inverted default direction of
1422         the direction. Patch from Peter Allin, fixes bug #318049
1423         [You possibly need to 'rm ~/.dia/defaults.dia' to have an effect]
1425 2005-10-08  Hans Breuer  <hans@breuer.org>
1427         * app/Makefile.am objects/standard/Makefile.am : match the
1428         referenced icons to the needed. Make 'make distcheck' pass
1429         and thus fixes bug #312152
1431         * objects/standard/textobj.c : no C++ comments please!
1433 2005-10-08  Hans Breuer  <hans@breuer.org>
1435         * objects/standard/textobj.c : preserve the position set on create
1436         [makes e.g. text positioning of diasvg_import.py work]
1438         * plug-ins/python/diasvg_import.py : restrict what eval() can do
1439         with strings from svg files. Fixes the arbitrary code execution from 
1440         bug #317637
1441         
1442         * app/pixmaps/mainpoints-(on|off).png : new icons to toggle center point
1443         magnetism. At least they are distinguishable from grid snapping.
1444         * app/makefile.msc app/Makefile.am : use them
1445         
1446         * lib/focus.c(reset_foci) : also remove_focus(). This fixes bug #172851
1447         I also can't reproduce bug #309044 anymore (on win32).
1448         
1449 2005-10-01  Lars Clausen  <lars@raeder.dk>
1451         * lib/connectionpoint.h (DIR_ALL): Parentheses around | expressions.
1453         * plug-ins/hpgl/hpgl.c (export_data): Listen to warnings and don't
1454         pass FILE * as gchar *.
1456         * lib/debug.[ch] (dia_assert_true): Debugging aids.
1458 2005-09-29  Lars Clausen  <lars@raeder.dk>
1460         * objects/UML/class.h: Enabling mainpoints for UML.
1462         * objects/UML/class.c (umlclass_set_props): Make sure to always
1463         realloc connection point list.
1465 2005-09-26  Ahmad Riza H Nst  <rizahnst@id.gnome.org>
1467         * configure.in: Added "id" in ALL_LINGUAS line.
1469 2005-09-14  Lars Clausen  <lars@raeder.dk>
1471         * objects/UML/class.c (umlclass_load): Set mainpoint obj upon
1472         loading.  Fixes bug #315427.
1474 2005-09-11  Hans Breuer  <hans@breuer.org>
1476         * objects/standard/arc.c objects/standard/textobj.c : fix
1477         C99isms, Dia is supposed to compile with C89 like msvc
1479         * app/makefile.msc : use the wrong center-point-magnetism
1480         icons for the win32 build, too.
1482         * plug-ins/python/pydia-error.c : dont crash on C escape
1483         sequences in the error string
1484         * plug-ins/python/pydia-render.c : dont free filename twice
1486         * plug-ins/python/dot.py : start of an exporter to DOT language
1487         which can be processed by www.graphviz.org tools
1489 2005-09-05  Iñaki Larrañaga  <dooteo@euskalgnu.org>
1491         * configure.in: Added "doc/eu/Makefile" for Basque documentation.
1493 2005-09-04  Iñaki Larrañaga  <dooteo@euskalgnu.org>
1495         * configure.in: Added "eu" to ALL_LINGUAS.
1497 2005-09-04  Lars Clausen  <lars@raeder.dk>
1499         * lib/element.h (ELEMENT_COMMON_PROPERTIES): Remove object
1500         dimensions frame to make ext_attributes work again.
1502         * app/grid.c (snap_to_grid): Bugfix from Zhang Lin-bo
1503         <zlb@lsec.cc.ac.cn>: Use dynamic grid setting from diagram, not
1504         global prefs.
1506         * objects/standard/textobj.c: Applied patch from Grégoire Dooms
1507         <dooms info ucl ac be>: Add vertical alignment for standard text
1508         object.  This should really be moved into lib/text.c and apply to
1509         all text objects.
1511 2005-09-03  Lars Clausen  <lars@raeder.dk>
1513         * app/connectionpoint_ops.c (connectionpoint_draw): Only draw
1514         mainpoint when snap-to-objects is not on.
1516         * app/Makefile.am (ICON_PNG_PAIRS): 
1517         Fake icons for snap-to-objects.
1519         * app/commands.[ch]: 
1520         * app/menus.c (menus_get_image_menubar): 
1521         * app/display.[ch]: 
1522         * app/interface.c (create_display_shell): 
1523         * app/create_object.c (create_object_button_release): 
1524         * app/disp_callbacks.c (ddisplay_drop_object): 
1525         * app/object_ops.[ch]: 
1526         * app/connectionpoint_ops.c (ddisplay_connect_selected): 
1527         * app/modify_tool.c (modify_button_release): 
1528         * app/display.[ch]: 
1529         Togglable snap-to-objects, also doesn't snap when moving entire
1530         object.  This should be more reasonable in practical use, and can
1531         be turned off when you want to place your arrows more precisely.
1533 2005-08-06  Hans Breuer  <hans@breuer.org>
1535         * plug-ins/cairo/diacairo.c : increased #ifdef MESS:
1536         With Gtk+-2.7.x cairo must be available so the HAVE_CAIRO case
1537         becomes even more ugly when the user has choosen *not* to build 
1538         the diacairo plug-in. If noone can come up with a very convincing 
1539         reason why it has to be done this way I'll probably go back to 
1540         my original dont-build-at-all approach when this breaks the 
1541         next time.
1543 2005-08-02  Lars Clausen  <lars@raeder.dk>
1545         * objects/standard/arc.c: Patch from Grégoire Dooms
1546         <dooms@info.ucl.ac.be>: An almost perfect arc autogap
1547         implementation.  "There is still a small bug when the non
1548         connected end of the arc is very close to the border of the
1549         connected object. I think this is due to rounding errors in the
1550         code for SHIFT-move handle which is reused to trim the arc in
1551         autogap. Also it is not yet possible to have a startgap and an
1552         endgap from/to the same central CP."
1554 2005-07-31  Hans Breuer  <hans@breuer.org>
1556         * plug-ins/cairo/diacairo.c congigure.in : dont wait any 
1557         longer for distributions official packages - depend 
1558         on cairo 0.6.0 - fixes bug #307144
1560 2005-07-20  Hans Breuer  <hans@breuer.org>
1562         * lib/element.h : remove stray NULL in ELEMENT_COMMON_PROPERTIES
1563         which must match PropDescription, that is make it at least compile.
1565 2005-07-19  Hans Breuer  <hans@breuer.org>
1567         * app/diagram.c(new_diagram) : what comes from g_object_new()
1568         MUST NOT be g_free()'d 
1570         * lib/message.h : added dia_message_filename() here as well.
1571         Mainly to not touch all files using. They *all* where using
1572         lib/message.h already! Maybe the implemantation should be moved
1573         to message.c as well cause the function has *nothing* to do
1574         with dynamic filename resolving. It is a wrapper around
1575         g_display_filename() mostly (only?) used for messages ...
1576         * lib/dia_dirs.c(dia_message_filename) : fix C99ism
1578 2005-07-18  Lars Clausen  <larsrc@raeder.dk>
1580         * objects/EML/instantiation.c (instantiation_load): 
1581         * objects/EML/interaction-ortho.c (interaction_ortho_type) 
1582         * objects/ER/participation.c (participation_type): 
1583         * objects/FS/flow-ortho.c (orthflow_type): 
1584         * objects/GRAFCET/vector.c (arc_load): 
1585         * objects/standard/zigzagline.c (zigzagline_type): 
1586         * objects/UML/transition.c (transition_load): 
1587         * objects/UML/realizes.c (realizes_load): 
1588         * objects/UML/dependency.c (dependency_load): 
1589         * objects/UML/generalization.c (generalization_type): 
1590         * objects/UML/association.c (association_type): 
1591         * objects/UML/component_feature.c (compfeat_load): 
1592         Make autorouting deafult on except for old diagrams.
1594         * plug-ins/cairo/diacairo.c (export_data): 
1595         * plug-ins/cgm/cgm.c (export_cgm): 
1596         * plug-ins/dxf/dxf-export.c (export_dxf): 
1597         * plug-ins/dxf/dxf-import.c: 
1598         * plug-ins/hpgl/hpgl.c (export_data): 
1599         * plug-ins/metapost/render_metapost.c: 
1600         * plug-ins/pixbuf/pixbuf.c: 
1601         * plug-ins/pstricks/render_pstricks.c: 
1602         * plug-ins/python/pydia-render.c: 
1603         * plug-ins/shape/shape-export.c: 
1604         * plug-ins/svg/render_svg.c: 
1605         * plug-ins/svg/svg-import.c: 
1606         * plug-ins/wpg/wpg.c 
1607         * plug-ins/xfig/xfig-export.c: 
1608         * plug-ins/xfig/xfig-import.c: 
1609         * plug-ins/xslt/xslt.c: Use dia_message_filename to ensure legal
1610         UTF-8 in message boxes.
1612 2005-07-18  Lars Clausen  <lars@raeder.dk>
1614         * lib/element.h (ELEMENT_COMMON_PROPERTIES): Allow Element objects
1615         to have their dimensions specified in properties.  Still needs to
1616         have proper update when setting properties cause constraint changes.
1618         * app/preferences.c (update_floating_toolbox): Allow
1619         toolbox_on_top setting to happen at once.
1621         * app/diagram.c
1622         * app/filedlg.c
1623         * app/load_save.c
1624         * app/render_eps.c
1625         * app/sheets_dialog_callbacks.c
1626         * lib/dia_dirs.c
1627         * lib/dia_dirs.h
1628         * lib/dia_xml.c
1629         * lib/diarenderer.c
1630         * lib/element.h
1631         * lib/object_defaults.c:
1632         Patch from lav@altlinux.ru (Vitaly Lipatov): Make filenames safe
1633         for displaying in messages - better than crashing!  Mostly fixes
1634         #310087.
1635         
1636         * objects/UML/class.c:  Save normal_font_height under the same
1637         name it gets loaded as.  Fixes bug #310515.
1639         * doc/en/authors.xml
1640         * doc/en/usage-customization.xml
1641         * doc/en/usage-objects-special.xml
1642         * doc/en/usage-objects.xml: Some documentation fixes.  Fixes bug
1643         #308315.
1645 2005-07-17  Lars Clausen  <lars@raeder.dk>
1647         * doc/en/usage-customization.xml: 
1648         * doc/en/usage-objects.xml: 
1649         * doc/en/authors.xml: 
1650         * doc/en/usage-objects-special.xml: Applied patch from
1651         stigge@antcom.de (Roland Stigge):  Diverse typos and
1652         misencodings.  Fixes bug #308315.
1654         * objects/UML/class.c (umlclass_save): Patch from
1655         i.pilcher@comcast.net: Save normal font height under correct name
1656         to reload it.  Fixes bug #310515.
1658 2005-07-10  Hans Breuer  <hans@breuer.org>
1660         * app/connectionpoint_ops.c app/object_ops.c : make the
1661         'whole object' connection point only center point again. 
1662         That is: it is visible and far less magnetic. Only the
1663         line gap handling make it special. For me this probably
1664         fixes bug #303301
1666         * lib/neworth_conn.c : apply the same as for bug #173031.
1667         This OrthConn fork got broken as well. Fixes bug #309381
1669         * app/makefile.msc objects/makefile.msc : adapt to icon changes
1671         * app/interface.c app/diagram_tree.c : a char** is still not 
1672         a char* and the win32 build is configured to error on 
1673         sloppiness like this
1675         * plug-ins/wmf/wmf.cpp : fix typo in preprocessor condition
1677 2005-07-10  Hans Breuer  <hans@breuer.org>
1679         [
1680           Take part in the toolbox icon redesign context! If you want to 
1681           make them really prettier, please keep the following in mind :
1682           - the size *must* be 22x22 otherwise button reflow will get broken.
1683             Or you need to change about 800 icons at once.
1684           - one important part of Dia are control points, so maybe the icons
1685             should reflect that. (IMO gathering random icons form other 
1686             apps wont work)
1687           - the icons should at least look consistent in their group
1688         ]
1690         * app/Makefile.am : use 22x22 variants mostly lent from The GIMP
1691         * app/pixmaps/*.png : added arrow-22.png scroll-22.png zoom-22.png
1693         * objects/standard/*.c : get rid of xpm includes to avoid mixing icon sets
1694         * objects/standard/pixmap/* : added arc.png beziergon.png 
1695         bezierline.png box.png ellipse.png image.png line.png polygon.png 
1696         polyline.png text.png zigzagline.png
1697         * objects/standard/Makefile.am : use the new icon set including
1698         text and arc ...
1700         * app/interface.c : remove the "will probably crash" debug spew
1702 2005-07-09  Lars Clausen  <lars@raeder.dk>
1704         * objects/standard/pixmaps/*.png:
1705         * objects/standard/Makefile.am:
1706         * objects/standard/*.c:
1707         * app/interface.c: 
1708         * app/diagram_tree.c (create_object_pixmap): Fix icon loading. use
1709         new icons. [Slightly belated entry]
1711 2005-07-03  Hans Breuer  <hans@breuer.org>
1713         * app/diagram_tree.c : dont leak display name
1714         * app/app_procs.c : dont leak GOptionContext
1715         * app/prop_widgets.c(frame_beginprop_get_widget) : 
1716         Gtk api still not eating strings ...
1718         * objects/UML/class.c() : don't load properties once more 
1719         which are already loaded by StdProps. In case of strings 
1720         (data_string) it has even produced leaks.
1722         * app/paginate_psprint.c app/diagram.[hc] : the last
1723         of the related dialogs is gone and with it the 
1724         misconception of destroying widgets from 
1725         diagram::finalize()
1726         * app/display.c : ensure the diagram is still threre
1727         when we remove the display from it's list
1729 2005-07-01  Hans Breuer  <hans@breuer.org>
1731         * lib/widgets.c(dia_color_selector_more_callback): dont 
1732         free old_color twice
1734         * plug-ins/wmf/wmf.cpp : finally added enahnced meta file
1735         option. Thus linestyles can be preserved on export - at 
1736         least on NT based systems.
1738         * NEWS : clarify the wmf outside of windows issue
1740         * app/modify_too.c : fix C99ism
1742         * objects/standard/arc.c : debug spew optional at compile time
1744 2005-06-26  Hans Breuer  <hans@breuer.org>
1746         [ Cyrille would call it: warningectomy :-]
1748         * lib/font.c app/create_object.c : `...' might be used uninitialized
1749         in this function. Yes they were.
1750         * app/modify_tool.c : modify_tool.c:610: warning: `obj' might be used 
1751         uninitialized in this function. Yes it was with textedit_activate_object()
1752         Also some static correctness.
1753         * lib/diarenderer.c:678: warning: no previous prototype for 
1754         `calculate_min_radius'. Made static.
1755         * lib/dia_svg.c : ptr is a gchar *
1756         * dia_xml.c(data_point,data_rectangle) : gchar *str for parsing
1757         * lib/prop_text.c(multistringprop_get_widget) : use G_CALLBACK
1758         * app/app_procs.c : confirm warning and make dump_dependencies() static
1759         * app/autosave.c : #if 0'd old stuff
1760         * app/display.c : GTK_CHECK_MENU_ITEM() for snap_to_grid
1761         * 
1762         * lib/text.c lib/font.c objects/standard/line.c object/UML/class.c
1763           objects/Istar/goal.c objects/standard/bezier.c objects/standard/beziergon.c
1764           plug-ins/cgm/cgm.c plug-ins/cairo/diacairo.c plug-ins/hpgl/hpgl.c
1765           plug-ins/wpg/wpg.c plug-ins/svg/svg-import.c plug-ins/shape/shape-export.c
1766           plug-ins/dxf/dxf-export.c plug-ins/gprint/diagnomeprintrenderer.c
1767           plug-ins/gprint/diagnomeprint.c  plug-ins/xfig/xfig-export.c
1768           app/diagram_tree_menu_callbacks.c app/recent_files.c app/undo.c app/menus.c
1769           app/diapsrenderer.c app/diagram.c app/disp_callback.c : 
1770         removed unused variables and functions
1771         * objects/UML/umlattribute.c objects/UML/umloperation.c 
1772           objects/UML/umlparameter.c objects/UML/umlformalparameter.c : 
1773         neither 'missing braces around initializer' nor 'initialization from 
1774         incompatible pointer type'
1775         * objects/UML/class_dialog.c : more static
1776         * app/interface.c : static and almost const correctness and some
1777         less unitialized variables.
1778         * app/diapsft2renderer.c : use (int) casts like the original 
1779         (http://imagic.weizmann.ac.il/~dov/freesw/paps/ v0.4) does
1780         * app/render_gdk.c: stop assignment from incompatible pointer type,
1781         make member functions match the prototype.
1782         * app/render_libart.c : Dito. Also stop caching the copy_gc in
1783         a static variable. Otherwise it finally leaks and also may cause 
1784         BadMatch with changing windows
1785         => warning count down from about 250 to about 60, one or two hand full 
1786            crash bugs less.
1788 2005-06-26  Hans Breuer  <hans@breuer.org>
1790         * lib/libdia.def : added dia_font_get_description, missing
1791         from my last commit
1793         * app/app_procs.c : use png_get_header_ver(NULL), that is:
1794         prefer function call over exported variable to get the 
1795         runtime version of libpng
1797 2005-06-19  Hans Breuer  <hans@breuer.org>
1799         * plug-ins/python/Makefile.am : added codegen.py to EXTRA_DIST
1800         as suggested by Roland Stigge, bug #308310
1802 2005-06-19  Hans Breuer  <hans@breuer.org>
1804         * app/filedlg.c(file_export_callback) : oops, gtk_widget_show() wasn't 
1805         called anymore
1807 2005-06-18  Hans Breuer  <hans@breuer.org>
1809         * NEWS : mention new file dialog
1811         [plugged remaining leaks from bug #142669]
1812         * lib/prop_attr.c(fontprop_free) : not only unref the font
1813         but free the property itself, too. 
1814         * app/diagram_tree.c(create_diagram_children): remember the
1815         original list start to not only free the last element 
1817         * lib/prop_sdarray.c:64: warning: `arrayprop_free' defined 
1818         but not used. Here it meant a potentially huge leak.
1820 2005-06-18  Hans Breuer  <hans@breuer.org>
1822         * po/POTFILES.in : removed app/diaconv.c which isn't referenced 
1823         by app/Makefile.am anymore either. Should finally fix 'make distcheck' 
1824         for others, too. ( Roland Stigge, bug #144527 )
1826 2005-06-18  Hans Breuer  <hans@breuer.org>
1828         * plug-ins/wmf/Makefile.am : prevent installation. It 
1829         doesn't do anything useful on *NIX and even seems to be
1830         linked wrong by gcc (or me;). Fixes bug #172830 
1832 2005-06-18  Hans Breuer  <hans@breuer.org>
1834         * app/textedit.[hc] lib/arrows.[hc] plug-ins/xslt/xslt.h
1835           plug-ins/xslt/xsltdialog.c plug-ins/xslt/xslt.c : fix for sloppiness
1836         in function declarations. 'f();' for a function without parameters is
1837         a C++ism. Though I can't get any of my compilers to warn about it.
1838         Finally fixes bug #142663.
1840 2005-06-18  Hans Breuer  <hans@breuer.org>
1842         * app/textedit.[hc] lib/arrows.[hc] plug-ins/xslt/xslt.h
1843           plug-ins/xslt/xsltdialog.c plug-ins/xslt/xslt.c : fix for sloppiness
1844         in function declarations. 'f();' for a function without parameters is
1845         a C++ism. Though I can't get any of my compilers to warn about it.
1846         Finally fixes the rest of bug #142663.
1848 2005-06-18  Hans Breuer  <hans@breuer.org>
1850         * lib/font.h lib/font.c : _DiaFont is now private to prepare bigger 
1851         changes but doesn't hurt anyway. See bug #162034 
1852         * app/diapsft2renderer.c app/modify_tool.c 
1853           plug-ins/gprint/diagnomeprintrenderer.c : use dia_font_get_description() 
1854         instead of messing with internals
1855         * app/display.c : give interactive renderers more begin/end render. 
1856         It is guaranteed that the scale wont change between these.
1858 2005-06-18  Hans Breuer  <hans@breuer.org>
1860         * app/app_procs.c : const correctness for stderr_message_internal
1861         * app/dia-props.c : gtk_toggle_*() functions want GTK_TOGGLE_BUTTON 
1862         not GTK_CHECK_BUTTON, also some G_CALLBACK casts
1863         * app/disp_callbacks.c : don't dereference the to the function call
1864         when the function pointer in meant to be checked against 0
1865         * app/interface.c : warning fixes by using correct types
1866         * app/modify_tool.c : describe_props() members returns const pointer
1867         * app/render_libart.c : removed most of the render function again.
1868         They happily live in lib/dialibartrenderer.c since almost 3 years
1869         http://cvs.gnome.org/viewcvs/dia/app/render_libart.c?r1=1.31&r2=1.32
1870         * lib/dia_dirs.c : dia_get_canonical_path() const correctness
1871         * lib/dia_svg.c lib/dia_xml.c : some char to xmlChar changes
1872         * lib/dialibartrenderer.c(set_line_join): actually set the join_style
1873         instead of the cap_style. Don't initialize Art* enums with GDK_* constants.
1874         Both mentioned in bug #159814 and not warned by most other compilers.
1875         * lib/diagtkfontsel.c : at least the watcom compiler did not like the
1876         trailing colon in the GtkTypeInfo initialization
1877         * lib/properties.c : avoid redefinition of LIBDIA_COMPILATION
1878         * lib/dialinechooser.c lib/diagdkrenderer.c : there may be a difference 
1879         between char and gint8
1880         * plug-ins/metapost/render_metapost.c : replace invalid escape \% with %%
1881         * plug-ins/wpg/wpg.c : consitently use guint8
1882         * config.h.win32 : change HAVE_* defines to 1 not empty, avoids 
1883         redefinition warnings for python and xslt plug-ins
1885 2005-06-18  Hans Breuer  <hans@breuer.org>
1887         * lib/diagramdata.c : really get rid of diagram_data_destroy 
1888         and new_diagram_data [ no previous prototype for `...' is either
1889         a sign of missing static or of a function to vanish :-]
1891         * lib/geometry.c : apparently the G_INLINE stuff was working only
1892         with particular GLib version(s), glib-2.6.4 does not. Conditionally
1893         reverting to the old mecanics.
1895 2005-06-17  Hans Breuer  <hans@breuer.org>
1897         * plug-ins/python/pydia-*.c : include order tweaking to 
1898         get rid of redefinition warnings. Ensure to include <Python.h> 
1899         before any 'system' header, some dragged in by glib.h
1900         * plug-ins/python/pydia-diagramdata.c(PyDiaDiagramData_Str)
1901           pydia-properties.c(PyDiaProperties_Str)
1902           plug-ins/python/pydia-property.c(PyDiaProperty_Str) : 
1903         use %p to format pointers
1904         * plug-ins/python/pydia-geometry.c(PyDiaArrow_Str) : 
1905         dont cast to float for %d
1906         * plug-ins/python/pydia-handle.c(PyDiaHandle_Connect) : 
1907         use correct pointer type
1908         * plug-ins/python/pydia-image.c(PyDiaImage_Str) :
1909         dont discard qualifier aka dont free const strings
1910         * plug-ins/python/pydia-properties.c : casts to PyCFunction
1911         * plug-ins/python/pydia-property.c : removed unused function,
1912         make ensure_quarks() static
1913         * plug-ins/python/pydia-render.c : removed unused vars, use
1914         the correct signature for begin_render
1915         (dia_py_renderer_finalize): pluged a leak
1916         => except -fno-strict-aliasing there is no warning left in 
1917            all of PyDia
1919 2005-06-12  Hans Breuer  <hans@breuer.org>
1921         * app/filedlg.c : really fix the file extension mismatch on export dialog
1922         by working around some gtk+-2.6 behaviour (bug #307378). Fixes bug #305850
1924 2005-06-11  Hans Breuer  <hans@breuer.org>
1926         * configure.in config.h.win32.h : mark as +cvs (should have been 
1927         done directly after the 0.94 release)
1928         * NEWS : attempt to summarize 2/3 year of development
1930         [ 
1931           WANT_AUTOMAKE=1.7 ./autogen.sh && ./conifugre  --enable-maintatiner-mode && make distcheck
1932           finally passes again
1933         ]
1934         * app/app_procs.c : force use of POPT for the GNOME case, otherwise
1935         app/run_dia.sh --credits > THANKS => Segmentation fault
1936         * app/pixmaps/Makefile.am : added group.png and ungroup.png
1937         * Makefile.am : work around scrollkeeper bug
1938         * doc/en/Makefile.am : explicit list DISTCLEANFILES = dia.1
1940         * po/*.po : 'noise' produced by make dist
1942 2005-06-10  Hans Breuer  <hans@breuer.org>
1944         * lib/properties.h : define PROP_STD_SHOW_BACKGROUND_OPTIONAL ...
1945         * objects/custom/custom_object.c : ... and use it to avoid 
1946         complains about missing attribute "show_background". It is 
1947         safe to leave this uninitialized. Same for flip_* and "text",
1948         the latter with comment cause it usually is *not* safe to do 
1949         it for the general case. Fixes remaining issues with bug #169006
1950         which where caused by an incompatible change in the shape file.
1952         * app/commands.c : use "gnome-open" instead of "netscape" as
1953         fallback for $BROWSER not set. Still not optimal but better
1954         to try some common desktop tool than an obsolete browser;)
1955         Fixes bug #307142. Also some whitespace changes.
1957         * app/interface.c(toolbox_delete): avoid random return value.
1958         Patch from Stanislav Brabec, fixes bug #307143
1960         * shapes/Cisco/Makefile.am : added a bunch of new shapes/pngs.
1961         Patch from Torben H. Nielsen (bugzilla is still the preferred way)
1962         http://mail.gnome.org/archives/dia-list/2005-June/msg00015.html
1964 2005-06-06  Lars Clausen  <lars@raeder.dk>
1966         * app/diagram.c: 
1967         * app/modify_tool.c:
1968         * app/textedit.[ch]:
1969         Better support for text edit highlight.
1971         * app/connectionpoint_ops.c (connectionpoint_draw): Stop making
1972         the mainpoint extra visible.
1974 2005-06-02  Lars Clausen  <lars@raeder.dk>
1976         * objects/UML/class_dialog.c:
1977         * objects/UML/class.[ch]:
1978         The final fixes for mainpoint on UML Class.
1980         * sheets/cisco*.in, shapes/Cisco/*: New set of Cisco icons from
1981         Ian Redfern, now in color and with mainpoints!  Very pretty!
1983 2005-06-02  Hans Breuer  <hans@breuer.org>
1985         * objects/UML/class_dialog.c : the memory managment with respect to
1986         attribute/operation connections was/is a mess. But it should work again ;)
1988         * samples/UMLPackages.dia samples/Composite-Action.dia : some diagrams
1989         directly from the UML Specification - to show the power of Dia and 
1990         some weakness. Watch the bug reports following ;)
1992 2005-06-01  Hans Breuer  <hans@breuer.org>
1994         * app/dia.def : export diagram_update_connections_object
1995         * plug-ins/python/pydia-diagram.c : wrap diagram_update_connections_object
1996         Patch from Paolo Bernardi, together with the property setting closes bug #300572
1998 2005-06-01  Hans Breuer  <hans@breuer.org>
2000         * plug-ins/python/pydia-property.c : complete refactoring of property 
2001         setting, now also supports setting of property arrays
2002         * plug-ins/python/pydia-*.c plug-ins/python/diamodule.c : adapt to 
2003         Python namespacing conventions
2004         * plug-ins/python/pydiadoc.py : use the stuff above to produce more 
2005         complete UML Classes with attributes and operations
2006         * plug-ins/python/otypes.py : now also show the properties of the objects
2008         * objects/UML/class.c(umlclass_set_props) : need to update object::connections
2009         (pointers), they might be changed with attributes and opertions changing
2011         * plug-ins/python/pydia-property.c : PointArray and BezPointArray property getters
2012         were broken. Apparently noone used them before.
2014         * plug-ins/python/pydia-diagram.c plug-ins/python/pydia-diagramdata.c : moved methods
2015         which only operate on the DiagramData to the latter file. To get on the DiagramData
2016         object of a Diagram use diagram.data. [In C the Diagram is a subclass of DiagramData, 
2017         but I don't know how to reflect that in the bindings. And for backward compatibility 
2018         there also is the 'data' member.]
2020         * objects/UML/uml.c objects/UML/umlattribute.c objects/UML/umloperation.c 
2021           objects/UML/umlparameter.c : describe enums with PropEnumData
2023         * app/commands.c(view_show_all_callback) : if there is something selected show 
2024         that instead of all exisiting objects. If there is noting or all selcted it 
2025         "Show all" shows the old behaviour.
2027         * lib/parent.[hc] lib/object.c app/disp_callbacks.c app/diagram.c : plug some memory 
2028         leaks and use less allocations caused by misguided API. Also some adaption to common 
2029         coding style
2031         * objects/UML/class.h : add some comment about the brokeness of UML_MAINPOINT
2033         * app/makefile.msc : added new icons and build as console app while 
2034         not releaseing to the general public
2036         * objects/custom/shape_info.c : use g_strdup("") for a field to be g_free()'d
2037         and keep a refernce when storing the a font from style="" in s.font. This should
2038         finally allow to have shapes with fully predefined text (and no 'random' crashes)
2040         * plug-ins/gprint/diagnomeprint.c : disable GNOME_SVG until I've found a program
2041         capable to interpret it's output
2043 2005-05-31  Lars Clausen  <lars@raeder.dk>
2045         * sheets/ER.sheet.in: No more xpms referenced in sheets. Fixes bug #151811.
2047 2005-05-30  Pawan Chitrakar  <pawan@nplinux.org>
2049         * configure.in: Added ne in ALL_LINGUAS
2051 2005-05-24  Lars Clausen  <lars@raeder.dk>
2053         * lib/font.c: Change to make DIA_FONT_ITALIC turn into -Oblique PS
2054         fonts for legacy fonts.  They don't have DIA_FONT_OBLIQUE setting
2055         anyway. 
2057 2005-05-23  Lars Clausen  <lars@raeder.dk>
2059         * lib/paper.c: Added Ledger size paper.  Fixes bug #305254.
2061 2005-05-21  Lars Clausen  <lars@raeder.dk>
2063         * lib/diaarrowchooser.c: 
2064         * lib/arrows.[ch]: Patch from Radek Krahl <ptasz3k@o2.pl>: Add
2065         'infinite' line (three dots) arrowhead.  Fix line length in arrow
2066         preview.  And fix typo.  Fixes bug #303904. 
2068 2005-05-20  Hans Breuer  <hans@breuer.org>
2070         * lib/text.c : advice from valgrind and data_string() review:
2071         neither g_free() memory on the stack
2072         * objects/GRAFCET/boolequation.c : ... nor const strings 
2073         * objects/UML/association.c:934 : definitely lost. Even g_strdup("")
2074         wants to be freed
2076         * app/diagram.c : a g_object_ref() following g_object_new() is almost
2077         always wrong. Why would we need two refernces?
2078         * app/app_procs.c : same here.If it crashes later on someone is dropping
2079         refernces he does not own, and *that* needs to be fixed. This is reverting
2080         "Remember to ref g_object_new'd object" (bug #170972) below, which 
2081         causes more harm (leaking, hiding bugs elsewhere) than good.
2083         * app/app_procs.c lib/diagramdata.[ch] lib/libdia.def : get rid of
2084         diagramdata_destroy() which was only a wrapper to g_object_unref()
2086         * app/display.c(selection_changed) : don't g_strdup_printf() without
2087         g_free() later /or/ a C++ comment of me mostly denotes an error
2089         * app/diagram.c : diagram_parent_sort_cb make signature match GCompareFunc
2091         * lib/widget.c : dia_dynamic_menu_select_entry() cleanup. If it takes a
2092         const gchar* entry it must not eat memory, added a lot of g_free() and
2093         some const. Fixed a bunch - i.e. *all* - warnings.
2094         * lib/widget.h : removed unused/deleted functions
2096         * app/layer_dialog.c(dia_layer_widget_connectable_toggled) : trying to
2097         avoid 'Invalid write of size 4', no luck yet
2099 2005-05-19  Lars Clausen  <lars@raeder.dk>
2101         * objects/UML/class.c: 
2102         * objects/UML/class.h: 
2103         * objects/UML/class_dialog.c: Work on getting a proper mainpoint
2104         for uml class object.  #ifdef'd out right now.
2106 2005-05-18  Lars Clausen  <lars@raeder.dk>
2108         * objects/standard/line.c: Make line adjust its actual endpoints
2109         for autogap -- looks and feels better.
2111         * objects/standard/arc.c: 
2112         * lib/geometry.h: 
2113         * app/modify_tool.c: Patch from Grégoire Dooms
2114         <dooms@info.ucl.ac.be>:  First stab at autogap for arcs, and
2115         shifted arc angle movement.
2117 2005-05-16  Hans Breuer  <hans@breuer.org>
2119         * lib/widget.c : variable declarations need to be at the start of a block,
2120         at least as we are not using C++ or C99
2122         * plug-ins/python/pydia-property.c : implment the read part for Property
2123         arrays - aka. umlclass.properties["operations"], umlclass.properties["attributes"]
2124         They are working quite well as can be seen with export-object.py
2126         * plug-ins/python/codegen.py : prove it once more with the generation of C++
2127         or Python code from an UML Diagram. Simply save as .py or .cxx ...
2128         * plug-ins/python/Makefile.am : install it
2130 2005-05-16  Lars Clausen  <lars@raeder.dk>
2132         * app/pixmaps/{un}group.png: 
2133         * app/Makefile.am (ICON_PNG_PAIRS): 
2134         * app/menus.c (display_menu_items): 
2135         New icons for grou/ungroup finally added, closing bug #105519.
2137         * app/Makefile.am: Dependencies for pixmaps.
2139         * app/pixmaps/connectable.png: An icon that actually makes sense
2140         for switching connectability.
2142 2005-05-15  Hans Breuer  <hans@breuer.org>
2144         * lib/group.c object/UML/classicon.c : fixed leftovers of
2145         'Adding connectionpoint to _move_handle
2147         * lib/widgets.c : gtk+ *NEVER* eats strings, so gtk_something(widget, g_strdup())
2148         is *ALWAYS* a memory leak. Plug some more.
2150         [
2151          In preparation to make UML operations/attributes/parameters setable by Python
2152          UML class became more StdProp conformant. A nice experience to be the first 
2153          to use the PROP_TYPE_DARRAY stuff about four years after it was written ;-)  
2154         ]
2155         * objects/UML/umlattribute.c objects/UML/umloperation.c 
2156           objects/UML/umlparameter.c objects/UML/umlformalparameter.c : (new files) 
2157         split from objects/UML/uml.c and made StdProp aware
2158         * objects/UML/class.c : finally make "attributes", "operations", "templates"
2159         <template parameters> first class StdProps citizens.
2160         (umlclass_load) : removed hand-written parsing for the above, it is all done
2161         by object_load_props() now. The old write code is still in place, so be very
2162         careful when changing something - at the moment load/save it is 100% compatible 
2163         as it needs to be.
2164         * objects/UML/uml.c : now just type registration here, as it is supposed to be
2165         * objects/UML/Makefile.am objects/makefile.msc : build the new files
2167         * lib/properties.h(PropDescCommonAreaExtra) : need a place to store the 
2168         in-record offsets
2169         * lib/prop_sdarray.c : made the DARRAY case work, SARRAY still untested
2170         (darray_prop_adjust_object_records) : don't loop forever
2171         (whole file) : use the new (working) way to get on the second level offsets.
2172         Also resolved some abbreviations, it is complicated enough without them ;)
2173         * lib/proplist.c : even complete list contents may be optional
2175 2005-05-15  Hans Breuer  <hans@breuer.org>
2177         * lib/bezier_conn.c(remove_handles) : don't try to remove 
2178         non-exisitng handles (patch from Radek Krahl, bug #302273)
2180 2005-05-15  Hans Breuer  <hans@breuer.org>
2182         * plug-ins/metapost/render_metapost.c : locale independent output
2183         (Radek Krahl, bug #301866)
2185 2005-05-12  Lars Clausen  <lars@raeder.dk>
2187         * shapes/Cisco/*.{shape,png}:
2188         * sheets/cisco*.sheet.in:
2189         Updated with color icons from Ian Redfern, closing bug #303889.
2190         Added automatic midpoints, not attempt at adjusting them.
2192 2005-05-11  Lars Clausen  <lars@raeder.dk>
2194         * many shapes:  Use mid of bounding box for midpoint, better than
2195         mid of connection points generally.
2197 2005-05-10  Lars Clausen  <lars@raeder.dk>
2199         * lib/widgets.c: Decided on one way for the ratio thing in arrow
2200         size selector:  Fixed ratio is on by default and keeps the sizes
2201         at the given ratio, but doesn't clamp them to be the same.  Fixes
2202         bug #302861.
2204         * lib/font.c: Fix for bug #303695: Allow more than one entry of
2205         each legacy name, thereby correctly encoding bold and italic of
2206         the three main fonts.  Also use | rather than || to combine slant
2207         and weight, so matching works.  Had to remove binary search for
2208         new font name, but the list is short enough it's not a problem.
2210 2005-05-09  Lars Clausen  <lars@raeder.dk>
2212         * lib/autoroute.c (autoroute_layout_orthconn): Remove debugging info.
2214 2005-05-08  Hans Breuer  <hans@breuer.org>
2216         * objects/UML/class.c : Reverted to have no center point.
2217         At first it looked as if there was only the bug to not increase
2218         class.h:UMLCLASS_CONNECTIONPOINTS. But the UMLClass has 
2219         potentially much more dynamic connection points (to the left
2220         and right of every attribute/operation). Now simply adding one
2221         between see static and dynamic will screw up any existing diagram
2222         which makes use of the dynamic connection points. The would all
2223         be connected with an off-by-one error. I have no idea how to
2224         code around that. But breaking backward compatibility is no 
2225         option here. Does not completely fix bug #303301 ...
2226         
2227         * lib/widget.c(dia_font_selector_set_font): actually set the options 
2228         menu state. So we are not any longer resetting the font style on Apply.
2229         Use "UML - Class" dialog as stress text example.
2231         * app/command.c : some people insist to close diagrams already
2232         closed using tear-off menus. Maybe we should add a dialog 
2233         "Do you want to call Dr. Watson now?". If there is no diagram
2234         to close anymore just do nothing, fixes bug #303221
2235         * app/display.c(ddisplay_close) : use g_return_if_fail(ddisp != NULL);
2236         Calling this with no display to close is a pathological case.
2238         * app/diagram.[hc] : moved object.h and other DiaObject stuff
2239         to the implementation in preparation of Big Things(tm)
2241         * app/interface.c : less warnings and make it compile. strncmp()
2242         does not take a char**, neither does gdk_pixbuf_new_from_inline().
2244         * objects/makefile.msc plug-ins/makefile.msc : less output
2246 2005-05-08  Lars Clausen  <lars@raeder.dk>
2248         * lib/orth_conn.c (orthconn_init): The right place to set the
2249         default autorouting value.  Fixes bug #303291.
2251         * app/display.c (ddisplay_close): Patch from Radek Krahl
2252         (ptasz3k@o2.pl):  Fix crash when using from detached menu
2253         (#303221)
2254         
2255 2005-05-07  Lars Clausen  <lars@raeder.dk>
2257         * lib/orth_conn.c (orthconn_load): Autorouting should default to
2258         off in diagrams that don't have it explicitly.  All diagrams
2259         should be explicit about it.
2261 2005-05-06  Hans Breuer  <hans@breuer.org>
2263         * app/samples/Self/*.dia : some UML diagrams describing Dia's
2264         inner working (or it's future;)
2266 2005-04-26  Lars Clausen  <lars@raeder.dk>
2268         * app/connectionpoint_ops.c (connectionpoint_draw): Temporary
2269         change to display of mainpoint to be easier to debug autogenerated
2270         ones. 
2272 2005-04-23  Hans Breuer  <hans@breuer.org>
2274         * plug-ins/python/diamodule.c plug-ins/python/pydia-object.h
2275           plug-ins/python/pydia-properties.h : use lib/ prefix for
2276         Dia internal headers with too common names (fixes bug #173061)
2278         * app/display.c : stop special casing the first display of
2279         a diagram. Every display now has it's own refernce. The initial
2280         reference gets dropped when there is no display anymore. See
2281         diagram_remove_ddisplay(). Fixes bug #300744.
2283         * app/diapsft2renderer.c : locale independent output
2284         (Radek Krahl, bug #300847)
2285         * app/paginate_psprint.c :  fixing use of setlocale() calls
2286         (Radek Krahl, bug #300886)
2287         * plug-ins/shape/shape-export.c : fixing use of setlocale() calls
2288         (Radek Krahl, bug #300889)
2290         * objects/UML/class.c : fix another crash with the line 
2291         wrapping code (Gabor Simon, bug #160865)
2293         * plug-ins/cairo/diacairo.c : image rendering had an endianess 
2294         issue (or is this working around a libpixman bug?;)
2296 2005-04-21  Lars Clausen  <lars@raeder.dk>
2298         * lib/polyshape.c (polyshape_update_data): Fixed numpoint off-by-one.
2300         * shapes/**/*.shape: All shapes now have midpoints.
2302 2005-04-20  Lars Clausen  <lars@raeder.dk>
2304         * lib/orth_conn.c (orthconn_update_data): Patch from ptasz3k@o2.pl
2305         (Radek Krahl): Make sure there's enough handles for the line.
2306         Fixes bug #173031.
2308         * objects/UML/node.c (node_draw): Better drawing method avoids
2309         garbage after moving.  Fixes bug #301032.
2311 2005-04-17  Hans Breuer  <hans@breuer.org>
2313         * plug-ins/cairo/diacairo.c : again adapt to Cairo API 
2314         changes (whould compile with current cvs and 0.(3|4).0
2316 2005-04-11  Lars Clausen  <lars@raeder.dk>
2318         * xmldocs.make (all): Fix to put installed docs in right place
2319         under disable-gnome.
2321         * doc/en/Makefile.am: Use xml_files var for xml files, EXTRA_DIST
2322         only for dia.dbk.
2324         * app/commands.c (help_manual_callback): Patch from p@kapcoweb.com
2325         (Leonardo Boshell): Use standard gnome help if called with Gnome.
2327         * app/diapsrenderer.c: Patch from ptasz3k@o2.pl (Radek Krahl): Fix
2328         locale issues for eps output.  Fixes bug #173135.
2330 2005-04-10  Hans Breuer  <hans@breuer.org>
2332         * plug-ins/cairo/diacairo.c : adapt to Cairo PNG API 
2333         changes (somewhat broken)
2334         
2335         * plug-ins/pstricks/render_pstricks.c : still C89 ...
2336         * objects/custom/shape_info.c : ... but with prototypes
2337         
2338 2005-04-07  Lars Clausen  <lars@raeder.dk>
2340         * lib/dia_xml.c: 
2341         * plug-ins/svg/render_svg.c: 
2342         * lib/diasvgrenderer.c: Patches from ptasz3k@o2.pl (Radek Krahl):
2343         Make decimal separators be correct in save file formats
2344         (non-localized).  Fixes bugs #172529 and 172531.
2346 2005-04-06  Lars Clausen  <lars@raeder.dk>
2348         * app/create_object.c (create_object_button_release): 
2349         * app/modify_tool.c (modify_button_release): Correct activations
2350         of text edits.
2352 2005-04-05  Simon KÃ¥gström  <ska@bth.se>
2354         * app/app_procs.c: the --show-layers option can now handle numeric
2355         ranges of layers.
2357 2005-04-05  Lars Clausen  <lars@raeder.dk>
2359         * lib/diagdkrenderer.c (draw_string): Patch from tomkast@yahoo.com
2360         (Tom Kast): Avoid blockiness caused by bad updates.
2362 2005-04-03  Lars Clausen  <lars@raeder.dk>
2364         * lib/polyshape.c: 
2365         * lib/beziershape.c: Main points.  A crude solution, having the
2366         center in the middle of the bb.  Shows a bug in the distance_from
2367         code for polyshape when a side is horizontal.
2369 2005-04-02  Lars Clausen  <lars@raeder.dk>
2371         * plug-ins/pstricks/render_pstricks.c: 
2372         * plug-ins/xfig/xfig-export.c: Patch from Radek
2373         Krahl <ptasz3k@o2.pl>: Fix decimal point problems. Fixes bugs 
2375 2005-04-02  Hans Breuer  <hans@breuer.org>
2377         * lib/dia_image.c(dia_image_filename) : return the path 
2378         again. (bug #172416, Radek Krahl)
2379         
2380 2005-04-01  Steve Murphy  <murf@e-tools.com>
2382         * configure.in: Added "rw" to ALL_LINGUAS.
2384 2005-03-31  Lars Clausen  <lars@raeder.dk>
2386         * lib/neworth_conn.c (neworthconn_update_data): Handle autogap.
2388         * lib/orth_conn.c (orthconn_update_data): Handle autogap while not
2389         autorouting.  
2391         * objects/network/basestation.c: Main points.
2393 2005-03-27  Hans Breuer  <hans@breuer.org>
2395         * app/Makefile.am : removed some pixmap/*.xpm from EXTRA_DIST
2396         * app/pixmaps.h : removed arrow.xpm
2397         * lib/Makefile.am : added diamarshal
2398         * plug-ins/python/Makefile.am : added makefile.msc to EXTRA_DIST
2399         => makes 'make dist' pass and produce a useable package
2401         * po/*.po : 'noise' profuced by make dist
2403 2005-03-24  Lars Clausen  <lars@raeder.dk>
2405         * objects/flowchart/parallelogram.c (pgram_update_data): 
2406         * objects/flowchart/ellipse.c (ellipse_update_data): 
2407         * objects/flowchart/diamond.c (diamond_update_data): 
2408         * objects/flowchart/box.c (box_update_data): Main points.
2410         * objects/custom/custom_object.c (custom_create): 
2411         * objects/custom/shape_info.h: 
2412         * shapes/Assorted/square.shape: 
2413         * objects/custom/shape_info.c (load_shape_info): 
2414         * doc/shape.dtd: Added main point support to shapes, and an
2415         example of how to use it.
2417 2005-03-21  Lars Clausen  <lars@raeder.dk>
2419         * lib/autoroute.c (autoroute_layout_orthconn): Remember to
2420         unnormalize from same point as you normalize, or else!
2422 2005-03-20  Lars Clausen  <lars@raeder.dk>
2424         * app/app_procs.c (do_convert): Patch from crux@gorodmasterov.com:
2425         Remember to ref g_object_new'd object.
2427 2005-03-19  Hans Breuer  <hans@breuer.org>
2429         * plug-ins/xslt/xslt.c : don't crash if both places ($SHARE, $HOME)
2430         have configurations, fixes bug #170962
2432         * objects/UML/state.c : ("UML - State")::type is PROP_FLAG_OPTIONAL,
2433         or better not used any longer. Fixes bug #169142.
2435         * lib/element.c(element_update_connections_rectangle): don't initialize 
2436         the eighth point twice but instead the nineth once
2438         * objects/standard/bezier.c : no C++ comments *please*
2440         * lib/plug-ins.h : increment DIA_PLUGIN_API_VERSION
2442         * lib/dia_image.[ch] : dia_image_filename() returns a string not to be freed ...
2443         * plug-ins/python/pydia-image.c : ... so, don't do it!
2445         * lib/dia_svg.c : refactor color parsing and support the "rgb(127,255,0)" form,
2446         also named colors via pango_color_parse()
2448         * lib/prop_text.c : don't try to g_strdelimit(NULL), fixes bug #169367
2450         * lib/libdia.def : updated externals
2452         * app/object_ops.c : still not C99 everywhere
2454 2005-03-19  Hans Breuer  <hans@breuer.org>
2456         * lib/autoroute.c : at least it should compile ;)
2457         
2458 2005-03-19  Lars Clausen  <lars@raeder.dk>
2460         * lib/autoroute.c: Orthconns now do autogap.
2462 2005-03-17  Lars Clausen  <lars@raeder.dk>
2464         * app/authors.h: Added Gregoire Dooms for gap stuff.
2466         * objects/standard/polyline.c: Patch from Grégoire Dooms
2467         <dooms@info.ucl.ac.be>: Autogap and absolute gap for polyline.
2468         
2469         * objects/standard/bezier.c: Patch from Grégoire Dooms
2470         <dooms@info.ucl.ac.be>: Fixes two bugs.  Also autogap no longer a
2471         property. 
2472         
2474         * objects/UML/state_term.c: 
2475         * objects/UML/large_package.c: 
2476         * objects/UML/node.c: 
2477         * objects/UML/object.c: 
2478         * objects/UML/small_package.c: 
2479         * objects/UML/state.c: 
2480         * objects/UML/usecase.c: 
2481         * objects/UML/note.c: 
2482         * objects/UML/actor.c: 
2483         * objects/UML/classicon.c: 
2484         * objects/UML/component.c: 
2485         * objects/Misc/analog_clock.c: 
2486         * objects/Jackson/requirement.c: 
2487         * objects/Istar/goal.c: 
2488         * objects/Istar/actor.c: 
2489         * objects/FS/function.c: 
2490         * object/standard/box.c:
2491         * objects/ER/entity.c: 
2492         * objects/ER/relationship.c: 
2493         * objects/ER/attribute.c: Main points added.   Distance_from fixed
2494         in attribute, broken in relationship, I* goal, Jackson
2495         requirement, analog_clock, all non-rectangular UML elements, 
2497         * lib/libdia.def: 
2498         * lib/element.[ch]: New method to help update connection points.
2500         * app/menus.c: Change Help/Manual to Help/Contents to follow
2501         standard.
2502         
2503         * objects/standard/line.c:
2504         * lib/geometry.[ch]: 
2505         * objects/standard/bezier.c: Patch from Grégoire Dooms
2506         <dooms@info.ucl.ac.be>: Add absolute gap and autogap for line and
2507         bezier objects.   Autogap nowchanged to be a function of the
2508         connpoints.
2510         * lib/libdia.def: 
2511         * lib/connectionpoint.[ch]: New function to ask if a connpoint has the
2512         autogap flag.
2514         * app/connectionpoint_ops.c (connectionpoint_draw): Don't draw
2515         CP_FLAG_ANYPLACE connpoints.
2517 2005-03-16  Lars Clausen  <lars@raeder.dk>
2519         * app/interface.c (create_tools): Removed debug printf.
2521 2005-03-15  Lars Clausen  <lars@raeder.dk>
2523         * lib/widgets.[ch]: Constification.
2525         * app/interface.c: Work on using gdk-pixbuf-csource'd data, not
2526         working yet.
2528         * objects/standard/ellipse.c: Use CP_FLAG_MAIN for central CP.
2530         * lib/connectionpoint.h: Flags for connection points.
2532         * app/create_object.c (create_object_motion): 
2533         * app/modify_tool.c (modify_motion): Minor refactoring.
2535         * app/object_ops.c (object_find_connectpoint_display): Extend with
2536         finding connpoints that cover entire objects.
2538         * app/layer_dialog.c (dia_layer_widget_init): Get rid of warnings.
2540         * objects/custom/custom_object.c (custom_setup_properties): Avoid
2541         uninitialized use.
2543 2005-03-13  Hans Breuer  <hans@breuer.org>
2545         * plug-ins/svg/svg-import.c : handle the <circle/> tag as well
2547 2005-03-13  Hans Breuer  <hans@breuer.org>
2549         * lib/dia_svg.[hc] objects/custom/shape_info.[hc] plug-ins/svg/svg-import.c :
2550         s/DiaSvgGraphicStyle/DiaSvgStyle/, added and use convenience functions 
2551         dia_svg_style_copy(), dia_svg_style_init()
2553         * objects/custom/shape_info.c : use dia_svg_parse_path() from lib/ (it got
2554         moved out of this)
2556         * lib/dia_svg.c(dia_svg_parse_path) : also handle style properties which are
2557         not wrapped in the style attribute
2559         * plug-ins/svg/svg-import.c : implement nested group handling and style
2560         'style inheritance'. Still no transformations, no <image/>, no <style/> 
2561         <defs/>...
2563         * plug-ins/svg/svg-import.c(import_svg) : use message_warning instead of g_warning,
2564         the latter is for programmers.
2565         Also be more tolerant if the document root namespace is not 'svg'. If the svg 
2566         namespace is defined in the file search for the top node including svg. This
2567         allows us to re-read the svg part of our own shape format.
2569         * lib/libdia.def : there is no give_focus_to_object
2570         * app/textedit.c : still no C99,  aka. error C2275: 'Focus' : illegal use of this 
2571         type as an expression
2573         * lib/geometry. c : use G_IMPLEMENT_INLINES
2574         * lib/libdia.def : export point_get_perp (used by xfig plug-in)
2576         * app/textedit.c(textedit_end_edit) : don't crash if the display is already
2577         gone when trying to remove the focus
2579         * plug-ins/cairo/diacairo.c : CAIRO_HAS_WIN32_SURFACE does not any longer mean
2580         it has *my* Cairo Win32 Backend. [The official one isn't useful for the use
2581         case of this plug-in, i.e. producing output files]
2583 2005-03-13  Lars Clausen  <lars@raeder.dk>
2585         * lib/Makefile.am (BUILT_SOURCES): 
2586         * app/Makefile.am (BUILT_SOURCES): Use the Right Way[tm] to force
2587         the building of the icons header files.
2588         * app/dia-lib-icons.h: Out of CVS now that it's correctly generated.
2590 2005-03-13  Hans Breuer  <hans@breuer.org>
2592         * configure.in : require Cairo 0.3.0
2593           plug-ins/cairo/diacairo.c : changed to match ;-)
2595         * app/app_procs.c() : new function dump_dependencies()
2596         which gets called by: dia --version --verbose
2597         and may help to track version dependent problems in
2598         our dependencies
2600         * lib/font.c : reverted to previous version cause using
2601         not implemented Pango API did not improve the issue.
2602         See: http://bugzilla.gnome.org/show_bug.cgi?id=162034
2603         for more information.
2605         * lib/dialinechooser.c : a little shrinking of the 
2606         initial size (to work around line wrappjing the right 
2607         arrow control)
2609 2005-03-11  Lars Clausen  <lars@raeder.dk>
2611         * app/textedit.c: Concentrate start/end editing in single functions.
2613 2005-03-10  Lars Clausen  <lars@raeder.dk>
2615         * lib/text.h: 
2616         * lib/object.h: Added new object function to allow the object to
2617         be notified when its text is being edited.
2619         * lib/libdia.def: 
2620         * app/modify_tool.c: 
2621         * app/commands.c: 
2622         * app/textedit.c: 
2623         * lib/focus.c: Remove sideeffects from focus objects, add getter
2624         for focus->obj.
2626 2005-03-09  Lars Clausen  <lars@raeder.dk>
2628         * lib/Makefile.am (dia-lib-icons.h): 
2629         * app/Makefile.am: Minor cleanup.
2631 2005-03-06  Hans Breuer  <hans@breuer.org>
2633         * app/app_procs.c : avoid "assignment within conditional expression"
2634         and handle -L for the GOption case as well.
2636         * lib/widget.c : strchr() does not return -1 on not found but NULL;
2637         avoids widgets.c(307) : error C4047: '!=' : 'char *' differs in levels of 
2638         indirection from 'const int '
2640         * lib/diasvgenderer.c(draw_arc|fill_arc) : finally correct sweep and 
2641         large_arc, thus produce correct arc output (like diasvg.py does;),
2642         fixes bug #144401
2644         * lib/dia_svg.[hc](dia_svg_parse_path) : new function copied and adapted 
2645         from objects/custom/shape_info.c to be shared with object/custom and
2646         plug-in/svg -> finally the C based svg-import reads pathes again.
2647         Added arc parsing while I was there, which fixes bug #169191
2648         * objects/custom/shape_info.c(parse_path) : 
2649         * plug-ins/svg/svg-import : reuse above function
2650         Also fix the "root element was 'svg' -- expecting 'svg'" bug #108502.
2651         But in general this does only support a small subset of what is 
2652         possible in SVG.
2654 2005-03-06  Lars Clausen  <lars@raeder.dk>
2656         * objects/UML/association.c: Patch from Dave Klotzbach applied:
2657         Add visibility to association arrow.  Fixes bug #157012.
2659         * app/grid.c: Patch from Lawrence Withers fixes grid messiness,
2660         closing bug #161040.
2662         * app/layer_dialog.c (create_button_box): Use stock icons instead
2663         of homemade onces.  Gets us rid of four more XPMs.
2665 2005-03-05  Sampo Kellomaki <sampo@iki.fi>
2667         * app/app_procs.c: Implemented --show-layers=LAYER,LAYER,... option
2668         This option permits command line control of which layers are visible.
2669         Useful when automatically exporting multiple versions of the same
2670         diagram, e.g. slides with overlays. Added-n switch parsing without POPT.
2671       * app/app_procs.h: moved prototype of do_convert() to app/app_procs.c
2672         and made it static since its only used in that file.
2673         * app/authors.h: added myself
2674         * doc/en/dia.1: documented the switch
2675         * doc/en/usage-layers.xml: ditto
2676         
2677 2005-03-05  Alan Horkan <horkana@tcd.ie>
2679         * app/interface.c Change Horizontal scroll policy to NEVER for sheets
2680         this restores how Dia behaved before the GTK2 port and seems to help 
2681         allow the toolbox to be more easily resized.  Bug #108891.
2683 2005-03-05  Lars Clausen  <lars@raeder.dk>
2685         * Civil/civil_motor.shape:
2686         * Civil/civil_rotor.shape:
2687         * Logic/and.shape:
2688         * Logic/buffer.shape:
2689         * Logic/connector.shape:
2690         * Logic/inverter.shape:
2691         * Logic/nand.shape:
2692         * Logic/nor.shape:
2693         * Logic/not.shape:
2694         * Logic/or.shape:
2695         * Logic/xor.shape:
2696         * shapes/Assorted/arrow-left-up.shape: 
2697         * shapes/Assorted/heptagon.shape: 
2698         * shapes/Assorted/star5.shape: 
2699         * shapes/Assorted/trapezoid.shape: 
2700         * shapes/Assorted/triangle-rightangle.shape: Fixed bad use of
2701         defaults, see bug #169143.
2703         * sheets/Assorted.sheet.in: Fixed typo patch applied, bug #169114.
2705         * configure.in: 
2706         * doc/en/Makefile.am: Finally figured out the right way to ask for
2707         the manpage xslt.  Closes bug #144539.
2709 2005-03-01  Lars Clausen  <lars@raeder.dk>
2711         * lib/Makefile.am (nodist_include_HEADERS): 
2712         * app/Makefile.am: Correctly generate these files from PNGs with
2713         automake.
2715         * lib/widgets.h: 
2716         * lib/libdia.def:
2717         * lib/widgets.c: Refactor toggle button factory to allow inline
2718         data.
2720         * lib/pixmaps/Makefile.am: Unify lib pixmaps.
2722         * app/makefile.msc (ICON_PNG_PAIRS): 
2723         * app/dia-app-icons.h: Updated with more icons.
2725         * lib/Makefile.am: 
2726         * app/Makefile.am: Use gdk_pixbuf_csource to create inline data
2727         from pngs.
2729         * app/interface.c (create_display_shell): 
2730         * app/layer_dialog.c (dia_layer_widget_init): 
2731         * lib/dia_image.c (dia_image_get_broken): Use inlined data
2732         generated from png.
2734         * app/display.c (ddisplay_close): Removed unused includes.
2736 2005-03-01  Lars Clausen  <lars@raeder.dk>
2738         * app/sheets.c (create_object_pixmap): Create a placeholder image
2739         for when the real image is missing.  Better than crashing:)
2740         Closes bug #166786.
2742 2005-02-25  Hans Breuer  <hans@breuer.org>
2744         * app/app_procs.c : don't requets to open a default display with
2745         g_option_context_add_group (crux@gorodmasterov.com, bug #168523)
2747 2005-02-22  Lars Clausen  <lars@raeder.dk>
2749         * plug-ins/gprint/diagnomeprint.c (export_data): GNOME, not Gome.
2750         Fixes bug #168125.
2752 2005-02-19  Lars Clausen  <lars@raeder.dk>
2754         * app/menus.c (display_menu_items): Applied patch from bug #94019:
2755         Menu cleanup and addition of icons.  Also a few additional stock
2756         icons. 
2758         * app/layer_dialog.c (create_layer_dialog): Bug #159598: Clean up
2759         the layers dialog.
2761 2005-02-14  Lars Clausen  <lars@raeder.dk>
2763         * INSTALL (ftp): Fixed Pango release typo (bug #153007)
2765 2005-02-13  Lars Clausen  <lars@raeder.dk>
2767         * lib/font.c: First stab at using Gtk 2.4 functions for fixing
2768         width.  Seems to work.  Once tested some more, needs old code
2769         removed. 
2771         * lib/widgets.c (dia_font_selector_create_string_item): Avoid
2772         warning by escaping & properly.
2774 2005-02-06  Lars Clausen  <lars@raeder.dk>
2776         * app/filedlg.c (file_export_callback): Set correct extension as
2777         soon every time the dialog is shown.  Fixes bug #162535.
2779         * app/display.c (ddisplay_set_origo): Use more standard
2780         transformations.
2782         * app/modify_tool.c (modify_motion): 
2783         * app/create_object.c (create_object_motion): Put coordinates of
2784         handle/object in status bar while moving. Fixes bug #163164.
2786 2005-02-03  Lars Clausen  <lars@raeder.dk>
2788         * lib/.cvsignore: Added generated files diamarshal.[ch]
2790 2005-02-02  Lars Clausen  <lars@raeder.dk>
2792         * configure.in: Add GLIB_GENMARSHAL def as suggested in
2793         http://ignore-your.tv/software/libgtcpsocket/docs/client-subclassing.html.
2794         Now compiles on Linux.
2796 2005-02-01  Lars Clausen  <lars@raeder.dk>
2798         * app/sheets.c (sheet_object_mod_get_type_string): We don't really
2799         need to translate the empty string.  Especially not after
2800         g_assert_not_reached().  Fixes bug #165966.
2802 2005-01-07  Tim Olsen  <tolsen@alum.mit.edu>
2804         * objects/UML/activity.c : add fill- and line-colour properties
2805         [applied by Hans Breuer, fixes bug #163260]
2807 2004-01-28  Hans Breuer  <hans@breuer.org>
2809         * doc/en/*.xml doc/en/dia.dbk app/authors.h : documentation
2810         update provided by Alan Horkan (fixes bug #159592)
2812 2004-01-28  Hans Breuer  <hans@breuer.org>
2814         [Extented version for UML to C++ conversion by Dave Klotzbach, bug #155255]
2815         * plug-ins/xslt/dia-uml2cpp.xsl : (new file) ... handles associataions,
2816         generalization, dependancies, parameterized classes ...
2817         * plug-ins/xslt/styleshetts.xml : refernce it
2818         * plug-ins/xslt/dia-uml.xsl : handle more UML types uesd above
2820 2004-01-28  Hans Breuer  <hans@breuer.org>
2822         * objects/UML/transition.c : fill out the extra_spacing struct 
2823         in the OrtConn member, in order to avoid artifacts when draggin 
2824         the transition. (patch by Peter Allin, bug #144956)
2826 2004-01-15  Hans Breuer  <hans@breuer.org>
2828         * plug-ins/cairo/diacairo.c : initialized the renderers default dash_length
2829         to something differnt than 0. Apparently there are case where Dia misses
2830         to appropriately set it before requesting a dashed line (simple line with
2831         arrow as described in bug #151716)
2833         * lib/dia_dirs.c : special casing for drive letters which I broke with
2834         the previous change
2836 2005-01-13  Hans Breuer  <hans@breuer.org>
2838         * app/interface.c(create_sheet_page) : remved dead long time code
2840         * lib/propdialogs.c : removed pdtpp_is_visible_no_standard() prototype,
2841         it is availbale via header - which is the better style anyway
2843 2004-12-31  Hans Breuer  <hans@breuer.org>
2845         * lib/dia_dirs.c(dia_get_canonical_path) : complete
2846         rewrite to handle something like /mnt/some/where/../else
2847         too. Workaround for bug #162637.
2848         * app/filedlg.c : call gtk_file_chooser_set_current_name()
2849         to workaround gtk_file_chooser_set_filename() not setting
2850         it if the file does not exist
2852         * sheets/Jackson.sheet.in app/menus.c : fixed typos
2853         (Frank Arnold, bug #161676)
2855 2004-12-31  Steffen Macke <sdteffen@gmail.com>
2857         * doc/pl/*.xml: Added XML prolog
2858         * makefile.msc: Added libxslt, fixed libxml, libart
2860 2004-10-29  Alexander Shopov  <ash@contact.bg>
2862         * configure.in (ALL_LINGUAS): Added "bg" (Bulgarian)
2864 2004-12-29  Lars Clausen  <lars@raeder.dk>
2866         * configure.in: Make gnomeprint be truly off by default (typo) and
2867         show optional compilation correctly.
2868         * plug-ins/gprint/Makefile.am: Exclude gnomeprint if not optioned in.
2870 2004-12-22  Hans Breuer  <hans@breuer.org>
2872         * lib/widgets.c : destroy handlers can be called more than once, 
2873         see http://developer.gnome.org/doc/API/2.0/gtk/gtk-changes-2-0.html
2875         * app/app_procs.c : #ifdef GLIB(2.6.0) but GTK(2.4.x)
2876         
2877         * app/display.c : temporary debug code showing the
2878         timing the rendering
2880         * app/dialibartrenderer.c(draw_string) : removed dead
2881         code loading and leaking font and face
2883 2004-12-15  Hans Breuer  <hans@breuer.org>
2885         * app/display.c : actually use the selction-changed signal for something
2886         useful. Show selections representation on statusbar.
2887         * lib/object.h lib/prop_text.c lib/libdia.def : provide objet_get_displayname() 
2888         * app/diagram_tree.c : use new function (as in app/display.c) and only
2889         poke into property internals at one place
2890         * app/diagram.c : use g_signal_handlers_block_by_func to avoid has-no-handler-
2891         complains
2893 2004-12-12  Hans Breuer  <hans@breuer.org>
2895         * lib/libdia.def app/dia.def : updated externals
2897         * objects/custom/custom_object.c : custom_destroy is called per object. 
2898         It _must not_ destroy class stuff (ShapeInfo) cause it does not hold a 
2899         reference to it. Fixes e.g. bug #158288, #160550, ...
2901         * objects/UML/association.c(association_draw) : completed porting to
2902         draw_polyline_with_arrows()
2903         (association_update_data_end) : fixed typo in point compare
2904         (association_update_data) : for name placement take degenerated 
2905         segements into account. Together this fixes bug #143891
2907 2004-12-11  Hans Breuer  <hans@breuer.org>
2909         * lib/widgets.c(set_size_sensitivity) : revert inverted
2910         logic for arrorw size selections, fixes bug #160527
2912 2004-12-11  Hans Breuer  <hans@breuer.org>
2914         * lib/widgets.c(dia_font_selector_set_font) : initialize
2915         the font style widget, too. Gets rid of empty font
2916         style and thus default broken font style, e.g. UML::class_name
2918         * lib/widgets.c(dia_color_selector_more_callback) : fill
2919         the color palette from dynamic menu entries and also
2920         preselect the current color to the last select entry
2921         
2922         * plug-ins/python/pydia-diagramdata.c : hold a reference
2923         to the underlying GObject
2924         
2925         * app/Makefile.am app/diagrid.h : new file containing the 
2926         grid 'class' moved from DiagramData to Diagram. 
2927         Also moved pagebreak_color and guides cause they are only 
2928         used for visual appearance not 'data'.
2929         * lib/diagramdata.[ch] app/diagram.h app/dia-props.c app/grid.c
2930           app/load_save.c plug-ins/python/pydia-diagramdata.c : reflect 
2931         the above change
2933         * lib/diagramdata.[ch] app/app_procs.c app/diagram.c 
2934           lib/libdia.def : get rid of new_diagram_data() 
2935         Diagram _is_ DiagramData (and does not have one any longer,
2936         just a compatibility pointer)
2937         
2938         * lib/diarenderer.h : a small doc improvement
2940 2004-12-11  Hans Breuer  <hans@breuer.org>
2942         * objects/UML/class.c : line wrapping code buffer
2943         overrun fixed by Gabor Simon, bug #160865
2945 2004-12-11  Hans Breuer  <hans@breuer.org>
2947         * plug-ins/python/pydia-diagram.c : hold a reference
2948         to the diagram in PyDiaDiagram, avoids bug #159080
2949         [another way to avoid is to detroy the dialog by
2950         clsoing it. But now there is still a diagram to
2951         apply the changes to, even if it's thrwon away just
2952         afterwards]
2954 2004-12-10  Hans Breuer  <hans@breuer.org>
2956         * **/*.c : fixed a bunch of warnings, not only for -ansi
2957         (still too many of them, but -ansi works)
2958         lib/
2959         prop_geomtypes.h prop_geomtypes.c:306: warning: static 
2960         declaration for `fontsizeprop_reset_widget' follows non-static
2961         dia_dirs.c:196: warning: return discards qualifiers from 
2962         pointer target type
2964         objects/custom/
2965         shape_info.c:121: warning: static declaration for `parse_path' 
2966         follows non-static
2968         objects/SADT/
2969         arrow.c:228: warning: `draw_arrowhead' declared `static' but never defined
2970         arrow.c:244: warning: unused variable `i'
2971         arrow.c:245: warning: unused variable `p'
2972         arrow.c:246: warning: unused variable `zzr'
2973         
2974         object/Istar/*.c object/Jackson/*.c  object/KAOS/*.c : 
2975         finally removed c++ comments
2976         
2977         objects/Istar/goal.c : initialize connections::directions
2978         while I was there - helps autorouting
2980         * objects/KAOS/metaandorrel.c objects/Istar/link.c 
2981           objects/KAOS/metabinrel.c : removed struct _DiaImage hack
2982         (it would be quite simple to add image-from-memory support
2983         to lib/ if needed)
2985         * pydia-*.h : warning: no newline at end of file
2986         
2987         * plug-ins/gprint/diagnomeprint.c : allow to unregister
2988         and follow new unique name naming convention
2989         * plug-ins/gprint/diagnomeprintrenderer.c : no c++ comments
2990         here either
2992 2004-12-07  Hans Breuer  <hans@breuer.org>
2994         * objects/UML/message.c : better default for initial text placement
2995         a suggested in bug #154306, Henning Mersch
2996         * objects/UML/constraint.c : doing the same
2998         * app/filedlg.c : include persistence.h for persistence_get_integer
2999         * lib/libdia.def export it
3001 2004-12-05  Hans Breuer  <hans@breuer.org>
3003         * app/grid.c : respect dynamic grid during snap-to, fixes 
3004         bug #135124, Dmitriy Morozov. Added some additional magic
3005         to make the grid size more useable.
3007 2004-12-05  Hans Breuer  <hans@breuer.org>
3009         * app/app_procs.c : make it compile for the HAVE_POPT and
3010         G_LIB_CHECK_VERSION(2,5,5) case, minor formating
3011         
3012         * lib/plug-ins.c : don't pass non exiting files to xmlDiaParseFile()
3013         * app/app_procs.c : only dia_pluginrc_write() and create_user_dirs()
3014         when interactive. Fixes bug #119329
3015           
3016         * plug-ins/cairo/diacairo.c : adapt to new type naming
3017         scheme (introduced by accident;-) for pixbuf-*
3018         * app/app_procs.c : reflect both type name changes
3020 2004-12-04  Hans Breuer  <hans@breuer.org>
3022         * objects/standard/image.c : fix the correct warning
3023         `image_file_name' might be used uninitialized
3024         
3025         * app/filedlg.c : near complete rewrite
3026         - removed 'related dialog', GtkOptionMenu, most global vars,
3027         also don't hide the dialog but let it go.
3028         - added: filter view by extension, hopefully working diagram
3029         referencing, GtkComboBox usage
3030         
3031         * plug-in/pixbuf/pixbuf.c : switched to dynamic generation
3032         of im/export filter entries. So the user interface reflects
3033         the dynamic nature of pixbuf loaders
3035         * lib/filter.[ch] : implement filter_unregister_*port
3036           lib/libdia.def : added new functions
3037           plug-ins/cgm/cgm.c plug-ins/dxf/dxf.c
3038           plug-ins/hpgl/hpgl.c plug-ins/metapost/metapost.c
3039           plug-ins/pstricks/pstricks.c plug-ins/svg/svg.c
3040           plug-ins/wpg/wpg.c plug-ins/xfig/xfig.c
3041           plug-ins/cairo/cairo.c plug-ins/pixbuf/pixbuf.c :
3042         use them in _plugin_unload () thus all these plug-ins
3043         can be loaded used and unloaded during Dia's runtime
3045 2004-12-04  Lars Clausen  <lars@raeder.dk>
3047         * lib/diagramdata.h: Access methods for units defined per diagram.
3049         * lib/font.c (dia_font_new_from_style): More proper object creation.
3051         * lib/properties.h: Refactored the PROP_STD_* macros to allow
3052         different options.
3054         * app/diagram.c (diagram_init): Force filename to be absolute
3055         path, easing the job for load/save.
3057 2004-12-03  Hans Breuer  <hans@breuer.org>
3059         * lib/libdia.def : removed dia_marshal_*, they are implemented as macros.
3060         added dia_font_set_height, dia_font_copy (note to self: don't try to
3061         maintain these from the *NIX side ;)
3063         * lib/widgets.h : removed DiaColorSelector::col, it is not maintained by
3064         the new color selection anymore
3065         * objects/UML/class_dialog.c : with the above change it would have been more 
3066         easy to fix the color loss bug #156996 which had nothing to do with 'a pointer
3067         problem' but only was an unfinished usage of dia_color_slector(get|set)_color
3069         *  objects/UML/class_dialog.c  objects/UML/class.[ch] : uml_apply_properties
3070         (used in object vtable) and make its prototype match
3072         * lib/widgets.c : made all the GtkTypeInfo 'static const'. I can't directly
3073         correlate any of these strange crashing bug with it, but assume bad things to 
3074         happen when one passes stack allocated stuff to gtk_type_unique()
3076         * lib/widgets.c(dia_font_selector_get_font) : don't access menuitem if it is
3077         not there. Fixes most of the warnings from bug #156996
3079         * lib/makefile.msc : rules to generate diamarshal.[ch]
3081 2004-11-29  Hans Breuer  <hans@breuer.org>
3083         * app/disp_callbacks.c : reenable so-called preedit
3084         as described in bug #158859, Etsushi Kato
3085         Also fixed some compiler warnings while there.
3086         
3087         * objects/standard/image.c(get_directory) : make
3088         the documentation match the implementation.
3089         (image_save) : don't write a leading slash on 
3090         relative filenames 
3092         * plug-ins/gprint/diagnomeprintrenderer.c :
3093         switched to gnome-print-pango usage
3094         
3095         * app/app_procs.c configure.in : although Dia
3096         is not threaded it appears as if we have to
3097         g_thread_init() to avoid crashing in some
3098         libraries which are thread enabled
3100         * lib/diamarshal.list lib/Makefile.am : start of
3101         using GSignal to clean up some object relations
3102         * lib/libdia.def : export marshallers
3103         * app/diagram.[ch] : emit signals when REMOVED,
3104         SELECTION_CHANGED
3105         * app/display.c : added a connection to 
3106         SELECTION_CHANGED to test the new signal stuff
3107         
3108         * app/diagram.c : fixed diagram_finalize while I
3109         was there.
3111 2004-11-28  Hans Breuer  <hans@breuer.org>
3113         * plug-ins/wmf/wmf.cpp(draw_string) : write the widechar version of 
3114         the text if conversion to current locale fails. [This is actually
3115         using code written four years ago;]
3116         * plug-ins/wmf/wmf_gdi.(h|cpp) : added TextOutW (no real implemantation)
3118         * objects/standard/image.c(image_load) : be more robust against 
3119         filenames which seem to be absolute
3121 2004-11-27  Hans Breuer  <hans@breuer.org>
3123         * app/filedlg.c(file_save_callback) : convert to
3124         filename encoding before passing to diagram_save()
3125         Fixes bug #158381, thanks to Robert Ã–gren
3127 2004-11-27  Hans Breuer  <hans@breuer.org>
3129         * lib/dialibartrenderer.c : sometimes its good to read
3130         compiler warnings. Not only define renderer_finalize
3131         but actually *use* it. Should plug a potential huge
3132         memory leak.
3134         * configure.in plug-ins/Makefile.am 
3135           plug-ins/gprint/Makefile.am : build the experimental
3136         gnomeprint plug-in on *NIX, too.
3137         * plug-ins/gprint/diagnomeprint.c : don't include
3138         specific (private) backend headers but instead select
3139         the desired backend via config key setting
3141         * lib/diagdkrenderer.c : add 1 to size of filled arc 
3142         to be rendered by gdk. Fixes bug #150896.
3144         * plug-ins/gprint/diagnomeprint.c 
3145           plug-ins/gprint/diagnomeprintrenderer.c : added magic
3146         to better match page and dash sizes
3148 2004-11-27  Hans Breuer  <hans@breuer.org>
3150         * plug-ins/shape/shape-export.c : it's g_strdup_printf
3152 2004-11-27  Hans Breuer  <hans@breuer.org>
3154         * app/app_procs.c : mention eps-builtin aka. "using
3155         latin1", does not fix the eps-pango issues but #150571
3157 2004-11-27  Hans Breuer  <hans@breuer.org>
3159         * sheets/Cybernetics.sheet.in : changed encoding to 
3160         utf-8, patch from Takeshi AIHANA, fixes #149580
3162 2004-11-27  Hans Breuer  <hans@breuer.org>
3164         * objects/custom/custom_object.c : many existing shapes
3165         rely on a square default size, revert to it although
3166         it originally was by a typo. Fixes bug #148527.
3168 2004-11-27  Hans Breuer  <hans@breuer.org>
3170         * app/load_save.c(dia_cleanup_autosave) 
3171           app/diagram.c : don't use dia->filename if already 
3172         freed and dont use printf at all.
3174         * app/paginate_psprint.c : not only set the renderer::paper
3175         but also renderer::is_portrait. Should fix bug #142524
3177 2004-11-26  Hans Breuer  <hans@breuer.org>
3179         * dia.desktop.in : added Bug Buddy headers (as seen
3180         in planner). Hopefully the automatically filling of
3181         bugs is more meaningful by this.
3182         
3183         * objects/custom/custom_util.c objects/standard/image.c
3184           lib/plug-ins.c : getting rid of deprecated g_dirname,
3185         fixes some more memory bugs : AddrAddress 0x3586C010 is 24 
3186         bytes inside a block of size 44 free'd
3187         
3188         * lib/persistence.c(persistence_load_list) : don't
3189         leak string
3190         
3191         * lib/diaerror.[ch] : (new file) start of better error handling
3192         * lib/Makefile.am lib/makefile.msc lib/libdia.def: 
3193         added new files/funcs
3194         * lib/proplist.c lib/propinternals.h (prop_list_load) : 
3195         allow to propagate error to caller. Also set PXP_NOTSET
3196         to avoid applying unset properties, fixes bug #155255
3197         * lib/propobject.c lib/prop_sdarray.c : still spewing
3198         g_warnings but now with context information
3199         
3200         * app/filedlg.c : more absolute filenames where required
3201         and strip them where we need the filename only
3202         Also explicit DONT choose gnome-vfs backend cause its
3203         threading appears to crash Dia - at least in GNOME build,
3204         see bug #159558
3206 2004-11-26  Hans Breuer  <hans@breuer.org>
3208         * app/filedlg.c : don't use relative filenames for
3209         gtk_file_chooser_set_filename(), GtkFileChooserDialog is very
3210         pedantic about it.
3211         (export_set_extension) : if we don't have a filename don't
3212         use it in strrchr() to avoid crashing
3213         
3214 2004-11-23  Hans Breuer  <hans@breuer.org>
3216         * app/app_procs.c : fixed build for the GNOME case
3217         (let's rip out POPT and depend on glib-2.6, please ;-)
3219 2004-11-23  Hans Breuer  <hans@breuer.org>
3221         * app/app_procs.c : fixed typo which broke the
3222         build for HAVE_POPT case
3223         
3224 2004-11-21  Hans Breuer  <hans@breuer.org>
3226         * app/app_procs.c : some more #if-mess, but one day
3227         we should rely on GLib's 2.6 Option Parser alone
3228         
3229         * plug-ins/wmf/wmf.cpp : use SC() when scaling width
3230         and height for RoundRect() - otherwise size depends on offset,
3231         shorten the unique name
3232         
3233         * plug-ins/python/diamodule.c : provide a unique name
3234         for python filters as well
3236         * lib/dialibartrenderer.c : fix the drawing of Gdk based text
3237         by using the right colors (need black background cause we
3238         are tinitng it with the real color later)
3240         * lib/dia_dirs.c(dia_get_canonical_path) : use G_DIR_SEPARATOR_S
3241         instead of hardcoded slahes, improved portability 
3243         * app/paginate_gdiprint.cpp : use the right filter name to find wmf
3244         plug-in. Also added some more error reporting (e.g. no printer driver)
3246         * plug-ins/gprint/diagnomeprintrenderer.[hc] plug-ins/gprint/diagnomeprint.c
3247           plug-ins/makefile.msc : resurrection of the gnome print renderer. 
3248         Kinda works (alpha quality) for export but does not print yet. 
3249         With bug #158972 resolved this does even work on win32 :-)
3251 2004-11-07  Hans Breuer  <hans@breuer.org>
3253         * doc/diagram.dtd : <composite> can have <composite/>,
3254         <font/> has two 'optional' atributes 'style' and 'family',
3255         these are used to store new (since 0.91) font info.
3256         With this changes non of the issues in bug #147431 remains.
3258         * plug-ins/python/otypes.py : starting to implement an
3259         'create all known object' file as ne stress test source
3260         for the dtd and Dia in general.
3262 2004-11-06  Hans Breuer  <hans@breuer.org>
3264         * app/diapsrenderer.c : don't convert to locale but to 
3265         "LATIN1", fixes bug #146641
3267 2004-11-06  Hans Breuer  <hans@breuer.org>
3269         * app/diagram_tree.c : still no C99 everwhere ...
3270         * lib/libdia.def : update externals
3271         * plug-ins/pstricks/render_pstricks.c : #include <locale.h>
3273         * app/app_procs.[hc] : declare, use ...
3274            app/winmain.c : ... and implement dia_redirect_console().
3275         Even though newer Gtk version don't popup a console window
3276         anymore redirecting the error messages to a file in $TEMP appears
3277         to be much more reasonable than just ignoring it. Fixes bug #150777
3278         based on a patch from Steffen Macke
3280 2004-11-06  Hans Breuer  <hans@breuer.org>
3282         * plug-ins/wmf/wmf.cpp plug-ins/wmf/wmf_gdi.* : added/used
3283         RoundRect() for high level renderer api implementation thus
3284         fixing bug #138744 reported by Lars Clausen
3286 2004-11-06  Hans Breuer  <hans@breuer.org>
3288         * app/prefernces.c : applied patch to make showing the diagram 
3289         menubar the default (advanced users know how to switch it off)
3290         Fixes bug #150706, Steffen Macke
3292 2004-11-06  Hans Breuer  <hans@breuer.org>
3294         * app/commands.c app/commands.h : added view_fullscreen_callback()
3295           view_unfullscreen()
3296           app/menus.c : use it (/View/Fullscreen) thus fixing bug #94090
3297         * app/disp_callbacks.c : use view_unfullscreen() for GDK_Escape
3298         ALso modified to allow handling of unmodified keys again (aren't
3299         there plenty of bug reports for this?
3301 2004-11-06  Hans Breuer  <hans@breuer.org>
3303         * objects/UML/class_dialog.c : fixed casts for usage
3304         of dia_color_selector_set_color()
3305         
3306         * app/filedlg.c : pass a valid filenames to 
3307         gtk_file_chooser_set_filename(), if we don't have a name
3308         don't call it at all. Gets rid of "libgnomevfs-CRITICAL **: 
3309         file gnome-vfs-utils.c: line 749 (gnome_vfs_get_uri_from_local_path): 
3310         assertion `local_full_path[0] == '/'' failed"
3311         
3312 2004-11-06  Lars Clausen  <lars@raeder.dk>
3314         * app/properties.c (create_dialog): 
3315         * app/diagram_tree_window.h: 
3316         * app/diagram_tree.h (HIDDEN_TYPES_NAME): 
3317         * app/diagram_tree_menu_callbacks.c: 
3318         * app/diagram_tree_window.c: 
3319         * app/diagram_tree_menu.c: 
3320         * app/diagram_tree.c: Changed to use persistence instead of
3321         strange hacks in preferences.
3323         * lib/persistence.h:
3324         * lib/persistence.c (persistent_list_get_glist): Don't deref null
3325         pointer.  New function persistent_list_remove_all, and
3326         fixed persistent_list_remove to ... work!
3328 2004-11-05  Lars Clausen  <lars@raeder.dk>
3330         * app/paginate_psprint.c (diagram_print_ps): Call
3331         diagram_print_destroy on destroy rather than delete_event.  That
3332         way the gtk_widget_destroy() calls cleans up properly.  Fixes bug
3333         #154898. 
3335 2004-11-02  Lars Clausen  <lars@raeder.dk>
3337         * objects/UML/class.c (umlclass_load): Actually load the saved
3338         fonts and font sizes. Fixes bug #157016
3340         * configure.in: Require at least GTK+ 2.4.
3342         * app/filedlg.c: Changed to use 2.4 file dialog!  Finally,
3343         finally, finally.  Not quite bulletproof yet, and I need to figure
3344         out a minimum version of Gtk that doesn't spew warnings all over.
3346         * app/diagram.[ch]: diagram_set_filename with const filename.
3348         * app/sheets_dialog_callbacks.c
3349         (on_sheets_dialog_button_apply_clicked): Sheet menu now almost
3350         correctly recreated.  Still something fishy with the sheet menu in
3351         the dialog after adding a new sheet.  Probably the sheet name
3352         being stomped.
3354 2004-11-01  Lars Clausen  <lars@raeder.dk>
3356         * lib/widgets.[ch] (dia_dynamic_menu_reset): Harden against memory
3357         stmping.  Now requires g_free here and there.
3359         * app/preferences.[ch] (prefs_data): Got rid of hidden prefs value
3360         for remembering last sheet, better off as persistent string.  Must
3361         hunt down other things like that.
3363         * app/interface.c (create_sheets): Now remembers last sheet
3364         selected again. Fixes bug #157036.
3366 2004-11-01  Hans Breuer  <hans@breuer.org>
3368         * plug-ins(tex_escape_string) : fixed it [g_utf8_next_char
3369         will never become NULL but only point to the next char
3370         which might indeed be \0]
3371         Use tex_escape_string() to avoid writing invalid tex,
3372         fixes bug #112377
3374         * **/* : a bunch of changes caused by trying 'make distcheck'
3375         which still fails, see Bug #144527
3377 2004-10-31  Lars Clausen  <lars@raeder.dk>
3379         * plug-ins/pstricks/render_pstricks.c (export_pstricks): Avoid
3380         floating point numbers being printed with commas.  Fixes bug
3381         #156148.
3382         
3383         * app/interface.c (create_sheet_dropdown_menu): New function to
3384         create the sheet menu, and also allow recreation.  Still buggy and
3385         slightly prone to magic.
3387         * objects/UML/class_dialog.c
3388         (attributes_list_selection_changed_callback): Don't try to update
3389         the widgets after they're destroyed.  Fixes bug #156706 (I think).
3391         * lib/widgets.c (dia_unit_spinner_new): Avoid crash on NULL
3392         adjustement.  Fixes bug #154637
3394         * sheets/ER/Makefile.am (PIX): 
3395         * sheets/GRAFCET/Makefile.am (PIX): 
3396         * sheets/Jackson/Makefile.am (PIX): 
3397         * sheets/Istar/Makefile.am (PIX): 
3398         * sheets/KAOS/Makefile.am (PIX): Actually install PNG instead of
3399         XPM.  Why these have their pictures in sheets rather than shapes I
3400         don't know.  Fixes bug #152142.
3402 2004-10-31  Hans Breuer  <hans@breuer.org>
3404         * plug-ins/pixbuf/pixbuf.c : when running non interactive
3405         Dia won't call color_init() as it assumes no display. If
3406         we have one as tested ourselve we can as well color_init()
3407         to avoid g_warnings() and produce the right collors.
3408         Fixes bug #155495.
3409     
3410         * app/app-procs.c : try to be a little more helpful
3411         and correct with regard to the command line options.
3412         Renamed --export-to-format to --export-filter and some
3413         other string changes
3415 2004-10-31  Hans Breuer  <hans@breuer.org>
3417         * plug-ins/wmf/wmf_gdi.cpp plug-ins/wmf/wmf_gdi.h :
3418         added GetDeviceCaps() dummy implementation to make 
3419        'wmf' compile on Linux, too.
3421 2004-10-31  Hans Breuer  <hans@breuer.org>
3423         * plug-ins/wmf/wmf.cpp : patch from Robert Ã–gren <gtk@roboros.com>
3424         to finally fix the long lasting clipping issue, bug #85831
3425         Also fixed the line style issue for printing on XP and don't 
3426         miss to ReleaseDC()
3428         * plug-ins/wmf/wmf_gdi.[hc] : added ReleaseDC()
3430         * plug-ins/python/diasvg.py : filter illegal characters from <text/> section
3431         (e.g. &lt; instead of <), fixes bug #155697 (Duncan Palmer)
3433         * plug-ins/python/pydia-error.[hc] : improvede exception handling to transfer 
3434         some info from the console (soon gone on windoze) to message_error()
3435         * plug-ins/python/pydia-render.c plug-ins/python/diamodule.c : use it.
3436         Also some setlocale() hack to let Python behave as expected for LC_NUMERIC
3438         plug-ins/python/diasvg_import.py : re.compile() only once per expression
3439         and some more playing with scaling
3441         * plug-ins/python/makefile.msc : updated
3443 2004-10-30  Hans Breuer  <hans@breuer.org>
3445         * shapes/Civil/civil_arrow_right.shape : removed
3446         <aspectratio type="fixed" /> thus allowing to change
3447         width and height independently, fixes #154897 
3448         (Serge Robinson) by making it consistent with the
3449         up arrow
3451 2004-10-30  Hans Breuer  <hans@breuer.org>
3453         * plug-ins/xfig-xfig-export.c(hasArrow) : don't crash
3454         on arrow being NULL, fixes bug #143063
3456 2004-10-30  Hans Breuer  <hans@breuer.org>
3458         * lib/diagramdata.c app/diagram.c app/disp_callbacks.c
3459           plug-ins/python/pydia-diagram.c plug-ins/python/pydia-diagramdata.c :
3460         removed use of chached variable DiagramData::selected_count
3461         * lib/diagramdata.h : renamed to selected_count_private
3462         (kept for binary compatibility and sanity checks)
3463         * lib/diagramdata.c : more checks on a screwed up selection list
3465         * app/diagram.c(diagram_group_selected) : don't screw up the
3466         DiagramData::selected list, was assignment of parent_list_affected(),
3467         * lib/diagramdata.c (data_select, data_unselect) : protect against
3468         multiple selections of the same object and removement of a not selected
3469         object (apparently caused by the recently added group undo stuff)
3470         together with the above this finally fixes bug #153525
3472         * app/Makefile.am : fix ./autogen.sh ->
3473         app/Makefile.am:171: blank line following trailing backslash
3475         * app/commands.c(objects_group_callback,objects_ungroup_callback) :
3476         ddisplay_do_update_menu_sensitivity() here as well
3478         * configure.in : make the experimental state of the cairo plug-in
3479         more visible
3480         
3481         * app/dia-props.c(diagram_properties_update_sensitivity) : don't
3482         try to update anything if we can't find an active diagram
3483         Additionally set static dialog pointer to NULL by gtk_widget_destroyed
3484         
3485         * configure.in : another attempt to fix bug #156116. If there is
3486         anyone with autotools knowledge reading this - help appreciated ;-)
3488 2004-10-30  Hans Breuer  <hans@breuer.org>
3490         * objects/makefile.msc objects/UML/Makefile.am
3491           objects/UML/uml.c objects/UML/transition.c 
3492           objects/UML/pixmaps/transition.xpm sheets/uml.sheet.in : 
3493         Patch from Peter Allin adds statechart transitions to the UML sheet -
3494         bug #144956 - modified to not print("%s", NULL) which crashes on
3495         newer glib versions. Also added pixmap/transition.xpm to Makefile.am
3497 2004-10-30  Hans Breuer  <hans@breuer.org>
3499         * doc/sheet.dtd doc/diagram.dtd : the namespace does *not* 
3500         match the website anymore, i.e. sould remain unchanged. 
3501         See below and lib/dia_xml.h for the reasoning
3503         * lib/libdia.def : removed dia_color_selector_get_type
3505         * lib/dia_image.c(dia_image_load) : check for pixbuf warnings
3506         (like broken PNG) and g_warning if appropriate
3508         * app/interface.c : #include "message.h"
3510         * app/diaunitspinner.hc : replaced the superfluous #if-0-juggling,
3511         used #error "Moved to lib/widgets.[hc]" instead (IMO it would be
3512         better to just move diaunitspinner to lib/ instead of polluting
3513         widgets.[hc] even more ;)
3514         * app/makefile.msc lib/libdia.def : updated
3516         * app/filedlg.c : patch from gtk@roboros.com, fixes #156224
3517         * app/app_procs.c : patch from gtk@roboros.com, fixes #156088
3519         * config.h.win32 : #define HAVE_CAIRO to let the Cairo plug-in
3520         do something useful when compiled
3522         * plug-ins/cairo/diacairo.c : added 'PNG with alpha' rendering.
3523         Also some more #ifdefed backends usage.
3525 2004-10-10  Lars Clausen  <lars@raeder.dk>
3527         * lib/widgets.c: Better labels for color selector menu.
3529         * app/dia-props.c (diagram_properties_respond): 
3530         * app/preferences.c (prefs_get_value_from_widget): Don't assume
3531         that a dia color selector is of type DiaColorSelector:)
3533         * lib/widgets.[ch]: Color selector changed to dynamic menu.
3535         * lib/prop_attr.c (colorprop_set_from_widget): Don't assume
3536         DiaColorSelector. 
3538 2004-10-09  Lars Clausen  <lars@raeder.dk>
3540         * lib/diaarrowchooser.c (dia_arrow_preview_init): Slightly wider
3541         arrow preview to avoid long arrow heads flipping.
3543         * lib/arrows.[ch]: Support for getting from name to arrow type,
3544         and for listing all arrow names.
3545         
3546         * lib/widgets.[ch]: Changed arrow selector to use dynamic menu.
3548         * lib/libdia.def: Added new global functions.
3550         * lib/persistence.[ch]: Two of the persistent_list functions to
3551         return whether the item was found in the list.
3553         * app/interface.c (create_sheets): Use DiaDynamicMenu to handle
3554         the growing number of sheets.
3556         * lib/widgets.[ch]: Add DiaDynamicMenu as a generalization of the
3557         font menu.
3559 2004-10-05  Lars Clausen  <lars@raeder.dk>
3561         * objects/UML/association.c: Patch from Harvey Thompson
3562         <harveyandsu@yahoo.com>:  Better placement of association texts.
3564 2004-10-03  Lars Clausen  <lars@raeder.dk>
3566         * lib/widgets.c (dia_font_selector_add_menu_item): Make font menu
3567         use the fonts in question.  Can't set tooltips with the name since
3568         lib objects don't know the tool_tips thing, which is rather
3569         app-related.
3571 2004-09-19  Hans Breuer  <hans@breuer.org>
3573         * plug-ins/xslt/*.xsl : s/apply-templates match/apply-templates select/
3574         fixes bug #148278, carlosrp@idea.com.py (Carlos Ra�l Perasso)
3576 2004-09-19  Hans Breuer  <hans@breuer.org>
3578         * dia.desktop.in : string changes as proposed in bug #151822
3579         
3580         * lib/Makefile.am : remove -module from libdia_la_LDFLAGS,
3581         appearts not to be needed on Linux and breaks the build 
3582         on OSX. Fixes bug #152970
3583         
3584 2004-09-18  Lars Clausen  <lars@raeder.dk>
3586         * app/commands.c (view_show_all_callback): Add a bit of border
3587         around Ctrl-E'd diagram, for easier select and better view of edges.
3589 2004-09-19  Hans Breuer  <hans@breuer.org>
3591         * app/Makefile.am : trying to fix the fix from 2004-02-15
3592         Overwriting AM_LDFLAGS still gave a automake warning and it 
3593         also appeard to break linking against gtklibs in a differnt 
3594         prefix. Use dia_LDFLAGS instead.
3596         * plug-ins/svg/svg-import.c : initialize 'end' before usage
3597         patch from dcbw@redhat.com (Dan Williams), fixes bug #150548
3598         
3599         * lib/diarenderer.c : don't try to draw lines which are so much 
3600         degenerated that their point count became negative, fixes bug #148139
3601         
3602         * lib/font.c(layout_cache_equals) : don't crash on nonexisting 
3603         strings (NULL from g_strdup()) 
3605 2004-09-10  Steffen Macke <sdteffen@web.de>
3607         * lib/libdia.def: added color_new_rgb(), focus_previous(),focus_next(),
3608         give_focus(),give_focus_to_object(),remove_focus(),reset_foci()
3609         * app/create_object.c:
3610         * app/diaunitspinner.c:
3611         * app/disp_callbacks.c:
3612         * app/makefile.msc:
3613         * app/modify_tool.c:
3614         * lib/prop_geomtypes.c:
3615         * lib/prop_geomtypes.h: made compile with msvc
3617 2004-09-10  Lars Clausen  <lars@raeder.dk>
3619         * lib/widgets.c: Insulate conversion from outside API by adding
3620         internal function to set value.  Adjustment not appropriate for
3621         units yet.
3623         * lib/prop_geomtypes.c (lengthprop_get_widget): Remove debug info
3625 2004-09-07  Lars Clausen  <lars@raeder.dk>
3627         * app/diapagelayout.c: Include from widgets.c rather than
3628         diaunitspinner.
3630 2004-09-03  Lars Clausen  <lars@raeder.dk>
3632         * objects/standard/box.c: Use PROP_TYPE_LENGTH for corner_radius
3633         as unit-based property testbed.
3635         * lib/prop_geomtypes.c (lengthprop_reset_widget): Implement length
3636         and fontsize widgets. 
3638         * app/Makefile.am (dia_core_files):
3639         * app/diaunitspinner.h: 
3640         * app/diaunitspinner.c: 
3641         * lib/widgets.h: 
3642         * lib/widgets.c (dia_unit_spinner_update): Move diaunitspinner to
3643         lib/widgets.[ch], as it's used in the properties code now.
3645 2004-08-31  Steffen Macke <sdteffen@web.de>
3647         * doc/en/usage-objects-basic.xml: Mentioning supported image formats.
3649 2004-08-30  Lars Clausen  <lars@raeder.dk>
3651         * app/textedit.c: 
3652         * app/diagram.c (diagram_remove_all_selected): Remove debugging
3653         information. 
3655         * lib/color.[ch]: 
3656         * app/undo.c: 
3657         * app/disp_callbacks.c: 
3658         * app/Makefile.am: 
3659         * app/create_object.c: 
3660         * app/textedit.[ch]: 
3661         * app/modify_tool.c: 
3662         * app/diagram.c: 
3663         * lib/text.c: 
3664         * lib/focus.[ch]: Change in focus mechanism to allow highlight of
3665         current input object, multiple inputs per object, and tabbing
3666         between objects.
3668 2004-08-28  Steffen Macke <sdteffen@web.de>
3670         * makefile.msc: added bs to ALL_LINGUAS; adjusted .mo file creation to
3671         allow separate installer component "Translations"
3673 2004-08-27  Akagic Amila  <bono@linux.org.ba>
3675         * configure.in: Added 'bs' to ALL_LINGUAS.
3677 2004-08-26  Steffen Macke <sdteffen@web.de>
3679         * app/makefile.msc: using /subsystem:windows again
3680         * makefile.msc: updated ALL_LINGUAS
3682 2004-08-21  Kjartan Maraas  <kmaraas@gnome.org>
3684         * configure.in: Add Â«nb» to ALL_LINGUAS.
3686 2004-08-21  Steffen Macke <sdteffen@web.de>
3688         * plug-ins/dxf/dxf-export.c: Patch from 
3689         Takeshi Hamasaki <hma@syd.odn.ne.jp>, fixes text alignment
3691 2004-08-17  Lars Clausen  <lars@raeder.dk>
3693         * config.h.win32: 
3694         * dia.spec (Release): 
3695         * doc/pl/dia.xml: 
3696         * doc/en/dia.xml: 
3697         * NEWS: 
3698         * configure.in: 
3700 2004-08-13  Ankit Patel <ankit@redhat.com>
3702         * configure.in: Added "gu" in ALL_LINGUAS.
3704 2004-08-07  Lars Clausen  <lars@raeder.dk>
3706         * configure.in:
3707         * config.h.win32: 
3708         * doc/pl/dia.xml: 
3709         * doc/en/dia.xml: 
3710         * dia.spec (Release): 
3711         * NEWS: New release 0.94-pre6
3713 2004-08-07  Lars Clausen  <lars@raeder.dk>
3715         * app/highlight.c (highlight_reset_objects): Unhighlight inside
3716         groups as well.
3718         * app/load_save.c: 
3719         * plug-ins/shape/shape-export.c: String capitalization fix from
3720         Alan Horkan <horkana@tcd.ie>
3722         * objects/UML/class.c (umlclass_show_comments_callback): Make UML
3723         Class object menu kinda work, rather than blow up.  Doesn't do a
3724         proper undoable change yet.
3726 2004-08-06  Lars Clausen  <lars@raeder.dk>
3728         * app/filedlg.c (file_save_as_callback): Don't remove related
3729         dialogs from the NULL diagram.
3731 2004-08-02  Lars Clausen  <lars@raeder.dk>
3733         * config.h.win32: 
3734         * doc/pl/dia.xml: 
3735         * doc/en/dia.xml: 
3736         * dia.spec (Release): 
3737         * NEWS: Pre5 with leak fix.
3739         * lib/font.c (dia_font_build_layout): Don't try to save an
3740         allocation of LayoutCacheItem if it breaks layout cache hash.
3741         Also make hash function correct, remove explicit height entry
3742         (it's in pfd), and make sure things are correctly unreffed.
3743         Finally fixes #148141.
3745         * lib/text.c (text_set_attributes, text_set_font): Safely unref
3746         when changing font, and actually set the new font in
3747         text_set_font(!).
3748         (text_get_attributes): Ref copied font.
3750 2004-08-01  Lars Clausen  <lars@raeder.dk>
3752         * NEWS: 
3753         * configure.in: 
3754         * dia.spec (Release): 
3755         * config.h.win32: 
3756         * doc/pl/dia.xml: 
3757         * doc/en/dia.xml: Prerelease 4.
3759         * lib/font.c (dia_font_build_layout): Better comparision and
3760         freeing of font cache.
3762 2004-07-31  Lars Clausen  <lars@raeder.dk>
3764         * lib/font.c (dia_font_build_layout): Faster update to avoid
3765         memory leaks.
3767         * app/app_procs.c: Fix from Tom Parker <palfrey@bits.bris.ac.uk>:
3768         Correctly initialize export filter variable.
3770 2004-07-25  Lars Clausen  <lars@raeder.dk>
3772         * dia.spec (Release): 
3773         * configure.in: 
3774         * NEWS: 
3775         * config.h.win32: 
3776         * doc/en/dia.xml: 
3777         * doc/pl/dia.xml: Pre3 coming out.
3779         * lib/diarenderer.c (draw_polygon): 
3780         * plug-ins/dxf/dxf-export.c (export_dxf): Two fixes by Takeshi
3781         Hamasaki <hma@syd.odn.ne.jp>: Correct header to be a 0 (zero)
3782         rather than O (letter), and assert num_points > 1 rather than the
3783         other way around.
3785         * app/recent_files.c: 
3786         * app/filedlg.c: 
3787         * app/diagram.c: 
3788         * app/app_procs.c: Patch from Vitaly Lipatov <lav@altlinux.ru>:
3789         Make filenames conform to filesystem encoding.
3791         * RDP/.cvsignore: Added standard ignore.
3792         
3793         * shapes/network/Makefile.am (SHAPES): Use PNG instead of XPM for
3794         last entry patch-panel, too.
3796         * app/*.png:
3797         * shapes/Circuit/*.png:
3798         * shapes/Civil/*.png:
3799         * shapes/Contact/*.png:
3800         * shapes/Electric/*.png:
3801         * shapes/MSE/*.png:
3802         * shapes/Pneumatic/*.png:
3803         * shapes/SDL/*.png:
3804         * shapes/flowchart/*.png:
3805         * shapes/jigsaw/*.png:
3806         * shapes/network/*.png:
3807         * shapes/sybase/*.png:
3808         * samples/dia*.png:
3809         * dia_gnome_icon_large.png:
3810         * doc/pl/graphics/*.png: Set -kb for PNGs.
3811         
3812         * sheets/{ER,GRAFCET,Istar,Jackson,KAOS}: Added .png files.
3814 2004-07-22  Lars Clausen  <lars@raeder.dk>
3816         * NEWS: 
3817         * config.h.win32: 
3818         * doc/en/dia.xml: 
3819         * doc/pl/dia.xml: 
3820         * dia.spec (Release): 
3821         * configure.in: Update to version 0.94-pre2.
3823         * app/load_save.c (diagram_data_write_doc): Use new namespace
3824         here, too.
3826         * lib/object.h (OBJECT_COMMON_PROPERTIES): Remove 'Dia' from
3827         hidden objects properties.
3829         * objects/standard/line.c: Remove halffinished line gap box from
3830         properties list.
3832         * app/paginate_psprint.c: 
3833         * app/filedlg.c: Patch from kimmidi@novell.com (Kiran Kumar
3834         Immidi): Close export and print dialog with diagram as well.
3835         (#129520)
3836         
3837         * lib/diaarrowchooser.[ch]: Patch from pborelli@katamail.com (paolo
3838         borelli):  Remove deprecated stuff (#137693)
3840         * app/dia-props.c (create_diagram_properties_dialog): Patch from
3841         kimmidi@novell.com (Kiran Kumar Immidi):  Close properties dialog
3842         on destroy.
3844 2004-07-21  Ray Strode  <rstrode@redhat.com>
3846         * dia/dia.desktop.in: Add MimeType line to desktop file
3847         new mime sytem.
3849 2004-07-18  Hans Breuer  <hans@breuer.org>
3851         * shapes/(Circuit|Contatct|MSE|network|Pneumatic|SDL|sybase)/Makefile.am 
3852           sheets/UML/*.png : icons in png format
3853         Partial fixup of stuff broken with the following comment:
3854         "7 days : xpm->png, namespace fix, first rotation bits."
3856         * app/load_save.c(read_objects) : don't add objects to the layer.
3857         This function is called recursively and only the topmost objects
3858         belong in the layers object list. Fixes bug #145417 and is the
3859         the real fix for bug #142480
3860         
3861         * app/app_procs.c : make the --size hack even uglier, but work again
3862         
3863         * lib/dia_dirs.c(dia_get_absolute_filename) : must not free()
3864         but g_free() what is returned by g_build_filename()
3865         
3866         * objects/custom/custom_object.c(custom_destroy) : handle all enum
3867         values in switch to get rid of the warning
3868         
3869         * objects/custom/shape_info.c : use g_ascii_strtod(), get rid 
3870         of setlocale()/strtod()
3871         * lib/dia_svg.c : dito
3872         * lib/dia_xml.c : almost
3874         * plug-ins/python/group_props.py : use the string representation of 
3875         value to ensure "unique values". If the strings would not be different
3876         the user cann't see the difference either
3878 2004-07-17  Lars Clausen  <lars@raeder.dk>
3880         * lib/persistence.h: Have "void" in prototypes (#142663)
3882         * lib/widgets.c (dia_font_selector_init): Better string handling
3883         (#142663) 
3885         * lib/persistence.c (persistence_save_type): Small fixes (#142663)
3887         * objects/standard/image.c (image_load): Use path of diagram
3888         rather than running directory as base for image file place.
3890         * doc/{diagram,sheet}.dtd: Move DTD namespace to new site, and
3891         syntactic fixes. 
3892         
3893         * app/disp_callbacks.c (ddisplay_canvas_events): Patch from
3894         Ambrose Li <a.c.li@ieee.org>:  Better IM context handling.
3896         * Re-added new sample diagrams binarily.
3898 2004-07-17 Sagar Rastogi <rastogi@students.iiit.net>
3900         * app/disp_callbacks.c: Fixed #144962 (also in KNOWN_BUGS),
3901         Disabled keyboard accels when dragging an object.       
3903 2004-07-14  Lars Clausen  <lars@raeder.dk>
3905         * app/grid.c (snap_to_grid): Use diagrams grid setting to
3906         determine hex grid snap.
3908         * doc/pl/Makefile.am: Avoid error based on backslash in comment.
3909         
3910         * app/interface.h: Avoid multiply defined symbols (#147396)
3912 2004-07-10  Lars Clausen  <lars@raeder.dk>
3914         * app/sheets_dialog_callbacks.c (write_user_sheet): 
3915         * lib/sheet.c (load_register_sheet): Don't introduce double
3916         slashes in namespace.
3918         * lib/dia_xml.h (DIA_XML_NAME_SPACE_BASE): Keep consistent with
3919         old diagrams, or XSLT will barf all over.
3920         
3921         * shapes/RDP/place.shape: 
3922         * shapes/RDP/transition.shape: 
3923         * shapes/RDP/Makefile.am: Added .png entries to SHAPES and changed
3924         shapes to use those.
3926 2004-07-07  Lars Clausen <lars@raeder.dk>
3928         * config.h.win32: 
3929         * doc/{en,pl}/dia.xml: 
3930         * dia.spec: 
3931         * configure.in: 
3932         * NEWS: First prerelease of version 0.94.  Now with release
3933         versions in a branch and main devel in the trunk.
3935 2004-07-05  Hans Breuer  <hans@breuer.org>
3937         * */*.[hc] */*/*.c : a bunch of changes to make Dia compile with
3938         -std=c89. Mostly //-comments and M_PI -> G_PI
3939         [Istar, Jackson, KAOS were removed from build cause they
3940         simply have *too* much C++ comments ;]
3941         * object/UML/association.c : use g_strdup() not plain strdup()
3942         * app/paginate_psprint.c : avoid storage size of `pipe_action' 
3943         isn't known with more portable signal code
3944         
3945         * app/app_procs.c : don't call gtk_init() if just --version
3946         is requested (bug #144321, Vladimir Kondratiev)
3947         
3948         * lib/prop_attr.c(fontprop_set_from_offset) : only unref 
3949         DiaFont* if not NULL
3950         * objects/UML/class.c : moved fill_in_fontdata() to 
3951         umlclass_load() to avoid such trouble, though unsure if
3952         this really is an improvement...
3953         
3954         * shapes/network/makefile.am : patch-panel added here too
3956 2004-07-04  Hans Breuer  <hans@breuer.org>
3958         * sheets/network.sheet.in shapes/network/patch-panel.xpm
3959           shapes/network/patch-panel.xpm : added 24-Port-Patch-Panel
3960         fixes bug #136629, James McDonald
3962 2004-07-04  Hans Breuer  <hans@breuer.org>
3964         * lib/persistence.c app/load_save.c app/sheet_dialog_callbacks.c
3965           lib/object_defaults.c : revert changing of Dia's XML namespace
3966         * lib/dia_xml.h : #define DIA_XML_NAME_SPACE_BASE with a comment
3967         about its purpose and relation to real world urls.
3969         * lib/plug-ins.h : increment DIA_PLUGIN_API_VERSION and 
3970         added comment about when to do so
3971         [Should have been long time ago and probably multiple times
3972         to avoid crashing on older plug-ins]
3973         * RELEASE-PROCESS : mention DIA_PLUGIN_API_VERSION
3974         * plug-ins/xslt/xslt.c : use DIA_PLUGIN_CHECK_INIT
3976         * lib/object.c objects/UML/class.c : there are still compilers not 
3977         supporting C99 and other GCCISMs like allocating dynamic sized arrays 
3978         on the stack
3979         * objects/UML/class.h : there is a differnce between a list pointer
3980         and a list pointer pointer. We and GLib want the former.
3982         * plug-ins/pixbuf/pixbuf.c : don't use app_is_interactive () to detect
3983         if Gtk is initialized. Using gdk_display_get_default () avoids the
3984         app/* dependency and is also closer to the requirements of the
3985         plug-ins working.
3987         * plug-ins/cairo/diacairo.c : initialize "unique name" field. Also
3988         some #ifdefed support for Cairo backends not public available yet.
3990         * plug-ins/wmf/wmf.cpp : finally do extended linestyles if the
3991         windoze platform supports them. This should fix bug #109818, at
3992         least for the majority running NT or above ...
3993         * plug-ins/wmf/wmf_gdi.[hc] : portability stuff for the above
3995         * objects/makefile.msc : build Istar, Jackson and Kaos
3997         * objects/UML/class.c(umlclass_load) : don't wrap by default to 
3998         keep old diagrams as they were - instead of this nice new effect ;-)
3999         Also make "wrap_operations" PROP_TYPE_BOOL in PropDescriptions
4001         * objects/UML/class.c : mark for translation _("Wrap ...
4003         * objects/UML/class.c : more correct types, also some default properties
4004         dialog pages adjustment (triggering a bug in lib/prop_widgets.c ?;)
4006         * objects/UML/activity.c : removed a leftover from the 
4007         use-localization-for-font-substitution-hack
4009         * shapes/ChemEng shapes/Cybernetic shapes/Map/Isometric :
4010         'cvs admin -kb *.png' PNG files should already be *added* as binary,
4011         otherwise they are not readable on line-end-converting-platforms
4013         * plug-ins/python/use g_new0(Dia<Im|Ex>portFiler), avoids crashing 
4014         filter_get_by_name()
4016         * plug-ins/python/pydia-property.c : some more g_warnings for
4017         not implemented conversions
4019         * plug-ins/python/group_props.py : ensure unique property values
4020         at the right place. Now something like :
4021         - load an old UML class diagram
4022         - change one of the classes to wrap operations
4023         - select all classes (/Select/Same Type)
4024         - /Dialogs/Group Properties : check wrap_operations, select '1'
4025         - Ok, works like a charm :-)
4027 2004-07-04  Lars Clausen  <lars@raeder.dk>
4029         * lib/diagdkrenderer.c (draw_string): Don't unref NULL
4030         pixbuf. (#145362)
4031         
4032 2004-07-03  Lars Clausen  <lars@raeder.dk>
4034         * app/app_procs.c (do_convert): Two patches from Vitaly Lipatov
4035         <LAV@VL3143.spb.edu>: Fixes console output problems and some
4036         interactiveness problems.
4038 2004-07-02  Lars Clausen  <lars@reader.dk>
4040         * plug-ins/pixbuf/pixbuf.c (dia_plugin_init): Don't load if the
4041         app isn't interactive.
4043 2004-07-01  Lars Clausen  <lars@raeder.dk>
4045         * plug-ins/cairo/diacairo.c: Add init of last field of filter
4046         struct to remove crash.
4048         * sheets/Makefile.am (sheet_in_files): 
4049         * shapes/Makefile.am: 
4050         * sheets/ChemEng.sheet.in: 
4051         * shapes/ChemEng/Makefile.am: 
4052         * configure.in: 
4053         New sheet from "Federico Zenith" <zenith@chemeng.ntnu.no>:
4054         Chemical engineering shapes.
4055         
4056         * app/Makefile.am (run_dia.sh$(EXEEXT)): Changed $* to $@ to allow
4057         multiple arguments when using devel script.
4059         * app/display.c (new_display): 
4060         * app/dia-props.c: 
4061         * lib/diagramdata.c (new_diagram_data): 
4062         * lib/diagramdata.h: 
4063         * app/preferences.h: 
4064         * app/preferences.c: 
4065         * app/grid.c: 
4066         * app/diagram.c: 
4067         * lib/diagramdata.c (new_diagram_data): Patch from Peter Poulsen
4068         <peter_poulsen@stofanet.dk>: Add hexagonal grid!
4070         * HACKING: 
4071         * doc/pl/authors.xml: 
4072         * doc/en/authors.xml: 
4073         * lib/object_defaults.c (dia_object_defaults_save): 
4074         * readme.win32 (BTW): 
4075         * lib/persistence.c (persistence_save): 
4076         * app/load_save.c (diagram_data_write_doc): 
4077         * app/commands.c (help_about_callback): 
4078         * README: Fix links to home page.
4080         * lib/font.c: 
4081         * app/load_save.c (diagram_data_load): 
4082         * lib/prop_text.c (stringprop_load): Avoid NULL strings when
4083         loading, and guard against them when fonting.
4085         * lib/diarenderer.c (draw_rounded_polyline): Patch from
4086         anthonym@overture.com:  Make limited rounding a corner-specific
4087         rendering-only thing.
4089 2004-06-30  Lars Clausen  <lars@raeder.dk>
4091         * lib/font.c (dia_font_build_layout): Return to 0.93.1 font size
4092         adjustment: If you can't fix it, at least don't change it.
4094         * objects/SADT/arrow.c (sadtarrow_draw): Use new rounded arrow
4095         code instead of individual code in here.
4097 2004-06-29  Lars Clausen  <lars@raeder.dk>
4099         * objects/UML/association.c: Patch from Kiran
4100         Kumar Immidi <kimmidi@novell.com>:  Fix bounding box for line end
4101         text. 
4103         * lib/geometry.c: 
4104         * lib/geometry.h: 
4105         * lib/diarenderer.c (draw_rounded_polyline): 
4106         * objects/standard/polyline.c (polyline_draw): 
4107         * objects/standard/zigzagline.c (zigzagline_draw): 
4108         Patch from anthonym@overture.com:  Add rounded polylines.
4110 2004-06-27  Lars Clausen  <lars@raeder.dk>
4112         * lib/font.c (dia_font_new_from_style): Initialize legacy name.
4114         * lib/widgets.c (dia_font_selector_get_family_from_name): Don't
4115         free family list before taking out the pointer we need. Also set
4116         the entry_nr correctly so we get the menu set up right.
4118 2004-06-23  Lars Clausen  <lars@raeder.dk>
4120         * lib/widgets.c (dia_toggle_button_new_with_images): Sink the
4121         images at the right place.
4123         * objects/Istar/actor.c
4124         * objects/Istar/goal.c
4125         * objects/Istar/istar.c
4126         * objects/Istar/istar.h
4127         * objects/Istar/link.c
4128         * objects/Istar/other.c
4129         * objects/Jackson/domain.c
4130         * objects/Jackson/jackson.c
4131         * objects/Jackson/jackson.h
4132         * objects/Jackson/phenomenon.c
4133         * objects/Jackson/requirement.c
4134         * objects/KAOS/goal.c
4135         * objects/KAOS/kaos.c
4136         * objects/KAOS/kaos.h
4137         * objects/KAOS/metaandorrel.c
4138         * objects/KAOS/metabinrel.c
4139         * objects/KAOS/other.c: Patch from Patch from Christophe Ponsard
4140         <cp@cetic.be>: Fix instability issues caused by not returning NULL
4141         in *_move_handle and *_move.  Also improved the headers with
4142         correct (c) information.
4144 2004-06-22  Lars Clausen  <lars@raeder.dk>
4146         * objects/KAOS/goal.c:
4147         * objects/KAOS/other.c:
4148         * objects/Istar/actor.c:
4149         * objects/Istar/goal.c:
4150         * objects/Istar/other.c:
4151         * objects/Jackson/domain.c:
4152         * objects/Jackson/phenomenon.c: Patch from Christophe Ponsard
4153         <cp@cetic.be>: Fix resize issues.
4155         * app/filedlg.c (file_dialog_hide): Patch from Kiran
4156         Kumar Immidi <kimmidi@novell.com>: Check for null when removing
4157         related dialog. #129520.
4159         * app/dia-props.c (diagram_properties_show): Patch from Kiran
4160         Kumar Immidi <kimmidi@novell.com>: Make sure properties dialog is
4161         a child of its diagram. #129520.
4163         * objects/UML/association.c (association_load): Patch from Kiran
4164         Kumar Immidi <kimmidi@novell.com>: Update positions properly for
4165         text placement. #118313.
4167 2004-06-17  Lars Clausen  <lars@raeder.dk>
4169         * objects/KAOS/Makefile.am: Add pixmaps/goal.xpm to EXTRA_DIST
4171         * Makefile.am: Make THANKS only be generated by maintainers.
4173         * doc/pl/Makefile.am: Removed usage+objects+basic.xml from
4174         Makefile, too.
4176         * configure.in: Added three missing Makefiles.
4178         * app/diagram.[ch]: 
4179         * app/filedlg.c:
4180         Patch from shuveb@yahoo.com (Shuveb Hussain): Remove
4181         diagram-related (save) dialog when closing diagram.  To be
4182         extended to other dialogs.
4184         * doc/pl/dia.xml: Removed reference to objects-basic. (#144527)
4186         * samples/Istar.dia:
4187         * samples/Jackson.dia:
4188         * samples/KAOS.dia:
4189         * sheets/Istar.sheet.in:
4190         * sheets/Jackson.sheet.in:
4191         * sheets/KAOS.sheet.in:
4192         * sheets/Istar/*:
4193         * sheets/Jackson/*:
4194         * sheets/KAOS/*:
4195         * objects/Istar/*:
4196         * objects/Jackson/*:
4197         * objects/KAOS/*:
4198         * configure.in: 
4199         * objects/Makefile.am (SUBDIRS): 
4200         * sheets/Makefile.am (SUBDIRS): 
4201         * samples/Makefile.am: Additions from Christophe Ponsard
4202         <cp@cetic.be>: Jackson, I* and KAOS diagram support.  Needs a bit
4203         of hacking still.
4205 2004-06-12  Lars Clausen  <lars@raeder.dk>
4207         * lib/properties.h: 
4208         * lib/prop_geomtypes.[ch]: Preparation for selectable units.
4210         * lib/font.h: Toning down comments a bit:)
4212         * lib/font.c (dia_font_build_layout): Playing around with DPI 
4214         * objects/UML/association.c (association_load): Avoid crashes on
4215         strcmp with NULL.
4217         * objects/UML/association.c: Patch from kimmidi@novell.com:
4218         Improve placement of labels when vertical.  Part fix of #118313
4220         * lib/object.c (dia_object_is_selected): Grouped objects are not
4221         selected, only the group itself.  Thus, don't crash when grouping
4222         beziers. #143681
4224         * objects/UML/association.c: Patch from kimmidi@novell.com:  Agree
4225         on how to represent empty strings.  Fixes #143639.
4227         * lib/object.c (dia_object_is_selected): Added comment answer.
4229 2004-06-12  Hans Breuer  <hans@breuer.org>
4231         * lib/diagramdata.c lib/object.c : deal with grouped objects
4232         not knowing their parent_layer, i.e. avoid crashing in 
4233         dia_object_is_selected() via group_draw() [ Triggered by
4234         playing with the Visio generated svg from bug #143455 ]
4236         * plug-ins/python/diasvg_import.py : started to implement
4237         transformation="translate(...)" and <style/> handling. Also
4238         use some other completely bogus values for em/ex scaling
4239         
4240 2004-06-08  Lars Clausen  <lars@raeder.dk>
4242         * plug-ins/cairo/.cvsignore: CVS-ignore generated makefiles.
4244 2004-06-07  Lars Clausen  <lars@raeder.dk>
4246         * app/layer_dialog.c (layer_dialog_set_diagram): 
4247         * app/display.c: Layer widget crash more properly dealt with in
4248         layer dialog code.
4249         
4250         * app/display.c (ddisplay_flush): Fixed crash when closing:  Layer
4251         widget deselect was called during destroy, but called
4252         ddisplay_flush, leading to a new display timeout after renderer
4253         was dead.
4255         * lib/widgets.c (dia_toggle_button_destroy): 
4256         * app/recent_files.c (recent_file_menuitem_create): 
4257         * lib/persistence.c (persistence_save_list): 
4258         * app/commands.c (edit_delete_callback): 
4259         * lib/object_defaults.c (dia_object_defaults_save): 
4260         * lib/parent.c (parent_list_affected_hierarchy): Killed leaks
4261         (#142669)
4262         
4263         * lib/widgets.c (dia_toggle_button_new_with_images): Remove
4264         debugging info.
4266         * lib/diagramdata.c (new_layer): Initialize connectibility.
4268         * app/display.c (ddisplay_obj_render): 
4269         * app/diagram.c (diagram_find_closest_connectionpoint): Take
4270         connectibility into account.
4272         * app/layer_dialog.h (struct _DiaLayerWidget): 
4273         * app/layer_dialog.c:
4274         Connectible toggle updates, now works fairly well.
4276         * app/select.c (select_transitive_callback): Make sure we're only
4277         selecting in the same layer.
4279 2004-06-04  Lars Clausen  <lars@raeder.dk>
4281         * app/pixmaps/Makefile.am: Also install connectable images.
4282         
4283         * app/layer_dialog.c (dia_layer_update_from_layer): Initially set
4284         layer toggles from layer itself.  Also update diagram correctly
4285         for visibility.  Still need updates for connectivity behaviour.
4287 2004-06-03  Hans Breuer  <hans@breuer.org>
4289         * plug-ins/wpg/wpg.c(draw_image) : take rowstride into account
4291         * lib/diagdkrenderer.c(set_linejoin) : actually set
4292         join_style not cap_style
4293         (set_dashes): with the correct number of dashes
4295 2004-06-03  Lars Clausen  <lars@raeder.dk>
4297         * app/modify_tool.c (click_select_object): 
4298         * lib/text.c (text_set_cursor): 
4299         * app/disp_callbacks.c (ddisplay_canvas_events): Turn off text stuff.
4301 2004-05-31  Hans Breuer  <hans@breuer.org>
4303         * lib/object_defaults.c : don't 'failed to load external 
4304         entity "NULL"' when the defaults file does not exist, 
4305         bug #108764 [again: somehow this got lost]
4307         * app/paginate_gdiprint.cpp : don guess the WMF export 
4308         filter used for printing but find it by unique name.
4309         Also update for export_func renaming
4310         * plug-ins/wmf/wmf.cpp plug-ins/cairo/diacairo.c
4311         provide some unique names
4313         * app/commands.c app/disp_callbacks.c app/paginate_psprint.c 
4314           app/select.c : fix bug #140789 by always checking if there
4315         still is an active diagram before accessing it
4317         * app/defaults.c app/properties.c : user visible string should 
4318         not read DiaObject but stay as "Object defaults/properties"
4320         * app/app_procs.c : reduce the hack to pass --size to the
4321         export via user_data to the only filter supporting it. Other
4322         filters would crash on it or do worse ;(
4324         * plug-ins/wpg/wpg.c : not every 'Object' is a DiaObject ...
4326 2004-05-31  Lars Clausen  <lars@raeder.dk>
4328         * lib/widgets.h: 
4329         * lib/widgets.c: Use GtkType rather than guint for
4330         dia_size_selector_get_type. 
4332 2004-05-29  Lars Clausen  <lars@raeder.dk>
4334         * app/diapsrenderer.c (fill_bezier): Use even-odd winding rule so
4335         that it matches the screen output for selfoverlapping polygons and
4336         beziers. 
4338 2004-05-28  Hans Breuer  <hans@breuer.org>
4340         * app/load_save.c : ignore empty groups on load and don't
4341         write empty groups while saving
4342         * lib/group.h (group_update_data): there is no first object
4343         in empty groups and they probably don't need an update at 
4344         all. Maybe the shold just not exist ?
4346         * plug-ins/cairo/diacairo.c : fixed arc drawing, right aligned
4347         text positioning as well as drawing of images with alpha
4349         * plug-ins/wmf/wmf.cpp : include windows.h if eiher
4350         HAVE_WINDOWS_H or G_OS_WIN32 is defined
4352 2004-05-28  Lars Clausen  <lars@raeder.dk>
4354         * app/pixmaps/Makefile.am (imagedir): 
4355         * app/pixmaps/visible.png:
4356         * app/pixmaps/visible-empty.png: New images for the visibility
4357         button in the layer dialog.
4359         * lib/widgets.c (dia_toggle_button_new_with_images): Remove even
4360         more border around the button.  Still some left when hovering the
4361         mouse or selecting, and the grey background is annoying.
4363         * app/layer_dialog.c (dia_layer_widget_init): Use real buttons for
4364         visibility connector.
4366 2004-05-26  Lars Clausen  <lars@raeder.dk>
4368         * configure.in (DB2MAN): Better check for db2man docbook place.
4369         Need something even better.
4371         * doc/en/Makefile.am (dia.1): Conditional on having DB2MAN.
4373         * lib/widgets.c (dia_toggle_button_new_with_images): Remove
4374         extraeneous borders.
4376         * dia_logo.png:
4377         * dia_gnome_icon.png:
4378         * samples/render-test.dia: Rendering test from Hans.
4380 2004-05-24  Hans Breuer  <hans@breuer.org>
4382         * lib/filter.h : renamed DiaExportFilter::export to
4383         _DiaExportFilter::export_func (should not use c++ 
4384         keywords (g++ specifc ?) in headers. Same for import
4385         out of pure symmetry reasons
4386         * plug-ins/shape/shape-export.c plug-ins/python/diamodule.c
4387           app/diagram.c app/filedlg.c : reflect functions renaming
4389         * plug-ins/wmf/Makefile.am : finally compile the wmf plug-in
4390         under *NIX, too. [If you want something done, do it yourself ;-]
4391         * plug-ins/wmf/wmf_gdi.[hc] : some more stuff to catch up
4392         with wmf.cpp's GDI usage
4393         * plug-ins/wmf/wmf.cpp : compile even without HAVE_WINDOWS_H,
4394         [For the moment it does not much more than compiling, i.e. 
4395         the produced WMF files are invalid, if not created on windoze.]
4397         * configure.in : check for C++ to compile plug-in/wmf
4398         
4399         * objects/GRAFCET/boolequation.c : looks like fixing 
4400         another leak (untested)
4402 2004-05-23  Hans Breuer  <hans@breuer.org>
4404         * acinclude.m4 : another attempt to fix 
4405         bug #142032 (still not sure it's the right one,
4406         but works for me(tm), which the other does not ;)
4407         
4408         * plug-ins/cairo/Makefile.am
4409           plug-ins/Makefile.am 
4410           configure.in : support building the new cairo
4411         plug-in, if given --with-cairo and the cairo
4412         packages are found, see http://cairographics.org
4413         and also http://hans.breuer.org/dia/dia-cairo.htm
4415         * plug-ins/cairo/diacairo.c : make it compile
4416         with DEBUG_CAIRO defined, too.
4418 2004-05-23  Hans Breuer  <hans@breuer.org>
4420         * plug-ins/cairo/Makefile.am : initial attempt
4422         * plug-ins/cairo/diacairo.c : a new exporter based on
4423         Cairo http://cairographics.org rendering api. Currently
4424         it just can export PNG and PS but one day it might get
4425         PDF and more almost for free. [It is not yet included
4426         in the *NIX build system due to lack of auto* magic.]
4428         * plug-ins/pixbuf/pixbuf.c : always register the export
4429         filter part. If the user does not want it it can be 
4430         disabled by File/Plugins or explicit selected the other
4431         one in the Export Formats List
4433 2004-05-23  Hans Breuer  <hans@breuer.org>
4435         * lib/dia_dirs.c : #include "message.h"
4436           lib/widgets.c : #include "persistence.h"
4437           lib/widgets.c(dia_font_selector_init) : still not C99
4438           lib/persitence.h : removed unimplemented prototype
4439           lib/persitence.c(persistence_load_list) : still not C99
4440           app/create_object.c : #include "highlight.h"
4441           app/layer_dialog.c : #include "widgets.h"
4442           app/modify_tool.c : prototype functions before usage
4443           lib/object.c : if there is G_END_DECLS there _must_ be G_BEGIN_DECLS
4444         [otherwise one will have a hard time to make C++ compile ;]
4445           lib/dia_dirs.c : #include "message.h"
4446           lib/font.c : #include <gtk/gtk.h> /* just for gtk_get_default_language() */
4447           lib/
4449         * plug-ins/xfig/xfig-import.c : dont initialize an int with
4450         a string pointer
4452         * lib/dia_image.[hc](dia_image_rgba_data) : make it work
4453         as documented, i.e. _not_ copying. Plugs a memory leak in
4454         lib/dialibartrenderer.c
4456         * lib/diarenderer.c(*_rounded_rect) : renamed parameter rounding
4457         to radius to more of a clue what it is representing
4459         * */makefile.msc lib/libdia.def : updated
4461         ChangeLog : fixed some date copy&paste bug
4463 2004-05-21  Lars Clausen <lars@raeder.dk>
4465         * NEWS: Release tag.
4467         * config.h.win32: Now 0.93+cvs
4469         * RELEASE-PROCESS: Update with new info about release branches.
4470         
4471         * Many files:  Moved devel branch back into main trunk.  Should
4472         have been done in the opposite way, with release in a branch.  
4473         
4474 2004-05-20  Hans Breuer  <hans@breuer.org>
4476         * acinclude.m4 : disable setting of PYTHON_PREFIX
4477         and PYTHON_EXEC_PREFIX from prefix and exec_prefix
4478         as workaround for bug #142032 (the real fix would 
4479         involve some auto* knowledge which I don't have
4480         either;)
4481         
4482         * plug-ins/python/Makefile.am : more python 
4483         plug-ins to be installed (especially svg import,
4484         but also 'simple scale' should be useable 
4485         sometimes)
4486         
4487         * plug-ins/python/scascale.py : update display
4488         after modifying selected objects
4489         
4490         * plug-ins/python/diasvg_import.py : initialize
4491         stroke to none
4492         
4493 2004-05-18  Lars Clausen  <lars@raeder.dk>
4495         * app/diagram_tree.c (select_node): Use
4496         diagram_remove_all_selected to kill selected list.
4498         * lib/font.c: Set language when using a different context.
4500         * plug-ins/svg/svg-import.c: Changed isdigit to g_ascii_isdigit
4501         and removed ctype include (#142661).
4503         * lib/paper.c (get_default_paper): Changed isalnum to
4504         g_ascii_isalnum and removed ctype include. (#142661)
4506         * objects/custom/shape_info.c: 
4507         * lib/dia_svg.c: 
4508         * app/diaunitspinner.c: Removed unrequired ctype.h include. (#142661)
4510 2004-05-17  Hans Breuer  <hans@breuer.org>
4512         * lib/object_defaults.c : don't 'failed to load external 
4513         entity "NULL"' when the defaults file does not exist, 
4514         bug #108764
4516         * lib/widgets.c : fixed possible menu leak
4517         * lib/dialinechooser.c lib/diaarrowchooser.c : finally
4518         avoid finalization of floating references, bug #142307
4520 2004-05-15  Lars Clausen  <lars@raeder.dk>
4522         * plug-ins/xfig/xfig-import.c: Handle default fonts and illegal
4523         fonts better (#138655)
4524         
4525         * doc/pl/Makefile.am (EXTRA_DIST): Also include all xml files here.
4527         * doc/en/Makefile.am (EXTRA_DIST): Including all required files in
4528         dist, xml, dbk and man.  Also the sub-xml files. (#142098)
4530         * Makefile.am (CLEANFILES): 
4531         * sheets/Makefile.am (EXTRA_DIST): Not distributing the
4532         translation-reports, they are generated automagically.  THANKS
4533         file not considered locally generated, so is not locally
4534         cleaned. (#133735) 
4536         * lib/widgets.[ch]: Changing dia_arrow_selector to be a gobject.
4538         * lib/diaarrowchooser.c: 
4539         * lib/prop_attr.c: Fixing naming for arrowselector.
4541         * objects/UML/object.c (objet_type): Oops, little too aggressive
4542         with the DiaObject thing here:)
4544         * objects/custom/shape_info.c (parse_svg_node): Use
4545         g_ascii_isdigit instead of isdigit.
4547         * app/diaunitspinner.c (dia_unit_spinner_update): 
4548         * lib/dia_svg.c (dia_svg_parse_style): Using g_ascii_isspace
4549         instead of isspace avoids char subscript issues (#142467).
4551         * lib/persistence.c (persistence_get_string): Fixed 0/NULL/FALSE
4552         return value conflict.
4554         * app/display.c (ddisplay_update_handler): Fixed 0/FALSE return
4555         value conflict.  Also improved signature. (#142466)
4557         * app/load_save.c (diagram_data_load): Don't overwrite the list in
4558         the layer, but instead free the returned list (#142480)
4560         * app/pixmaps/Makefile.am (IMAGES): Added png's to be installed
4561         for the grid widget.
4563         * doc/en/Makefile.am (dia.1): Make proper rule for making dia.1
4565         * configure.in (DB2MAN): Currently just check for two known
4566         positions for the docbook xsl.  Don't know a generic way to find
4567         this info.  Ought to add an option for it, but then it's really
4568         only required for maintainers, I think.  Maybe.
4570         * app/display.c (update_snap_grid_status): Remove nasty image
4571         toggling code not require for grid toggle button anymore. (#142475)
4573         * app/interface.c (create_display_shell): Use
4574         dia_toggle_button_new_with_images to create grid toggle button.
4575         Much nicer. (#142475)
4577         * app/menus.c (menus_initialize_updatable_items): Free the string
4578         along with the GString. (#142475)
4580         * lib/intl.c (free_alias_table): Free hash table entries in a
4581         proper way, avoiding duplicate frees. (#142475)
4583         * lib/object_defaults.c (_obj_store): Only free layer_name if it's
4584         not put in the hash (avoid reading freed memory). (#142476)
4586         * lib/widgets.c (dia_font_selector_set_styles): Stop leaking
4587         faces. (#142484)
4588         (dia_font_selector_get_family_from_name): Stop leaking
4589         families. (#142482) 
4591 2004-05-14  Lars Clausen  <lars@raeder.dk>
4593         * Transfer of fixes from release branch.  Not the prettiest way to
4594         do it, this should be done during release, not afterwards.
4596         Tomasz KÅ‚oczko <kloczek@pld.org.pl>:
4598         * acinclude.m4: minor fixes (added missing [] quotation).
4600         Lars Clausen  <lars@raeder.dk>:
4602         * app/interface.c (toolbox_delete): 
4603         * app/app_procs.[ch] (app_exit): Stop the delete event if the user
4604         cancels quit due to modified diagrams.
4606         Samúel Jón Gunnarsson  <sammi@techattack.nu>:
4608         * is.po: Added "is" to ALL_LINGUAS.
4610         Lars Clausen  <lars@raeder.dk>:
4612         * dia.spec: Updated as per mail from Zhang Lin-bo <zlb@lsec.cc.ac.cn>
4614         Hans Breuer  <hans@breuer.org>:
4616         * lib/makefile.msc : removed -DGTK_DISABLE_DEPRECATED; the 
4617         burden should be shared and not be win32 only ;) [this time 
4618         build was broken by adding GtkType to widget.h]
4620         * objects/standard/box.c objects/standard/ellipse.c :
4621         for code clarification compare (obj->aspect != FREE_ASPECT)
4622         and not (obj->aspect); no binary effect.
4624         * app/paginate_psprint.c : don't leak printcmd
4626         * objects/standard/box.c objects/standard/ellipse.c : fix gccisms :
4627         standard C requires variables to be declared at the beginning of 
4628         a block, also there is no fabsf() with msvc
4629         
4630         * app/win32print.[ch] : make win32_printer_close() return an
4631         error code, it's used as pclose replacement
4633         Lars Clausen  <lars@raeder.dk>:
4635         * RELEASE-PROCESS: Mention PATCH keyword in release process.
4637 2004-05-06  Lars Clausen  <lars@raeder.dk>
4639         * lib/widgets.[ch]: Utility function to make a widget with two
4640         images (selected and non-selected).
4642         * lib/diagramdata.h: Renamed selectable to connectable.
4643         Selectable will come later.
4645         * configure.in: 
4646         * app/pixmaps/Makefile.am (imagedir): 
4647         * app/pixmaps/connectable.png:
4648         * app/pixmaps/connectable-empty.png: New images for the
4649         selectability widget.  Proper installation, too.
4651         * app/layer_dialog.[ch]: Adding new button showing connectability
4652         status.  Much cleaner way of doing the button, but some problems
4653         with the item getting selected
4655         * lib/widgets.h: Reminder of how to install images for use by
4656         dia_get_image_from_file.
4658 2004-05-05  Lars Clausen  <lars@raeder.dk>
4660         * objects/network/Makefile.am: 
4661         * objects/network/pixmaps/radiocell.xpm: 
4662         * objects/network/pixmaps/basestation.xpm: 
4663         * objects/network/network.c: 
4664         * objects/network/basestation.c: 
4665         * objects/network/radiocell.c: 
4666         Patch from W. Borgert <debacle@debian.org>: Radio cell and base
4667         station objects.
4669         * lib/arrows.[ch]: Patch from Anthony <anthonym@overture.com>:
4670         Backslash arrow head. 
4672         * app/pagesetup.c (pagesetup_respond): Do not free ps twice.
4673         Notify takes care.  Should maybe use that more.
4675         * lib/diagramdata.[ch]: 
4676         * app/filedlg.c (file_export_ok_callback): 
4677         * app/diagram.c (diagram_finalize): DiagramData now a GObject.
4679         * app/dia-props.c (diagram_properties_respond): 
4680         * app/diagram.c (diagram_set_modified): 
4681         * app/undo.c: 
4682         * app/disp_callbacks.c: 
4683         * app/commands.c: 
4684         * app/load_save.c (diagram_save): 
4685         Better handling of undo and modified status -- only diagram
4686         properties and page setup explicitly set modified status, all
4687         other important changes should be done through the undo stack
4688         now.
4690 2004-05-04  Lars Clausen  <lars@raeder.dk>
4692         * app/app_procs.c (app_init): Consistently open a new diagram if
4693         none specified, with standard name Diagram1.dia.
4695         * app/layer_dialog.c: 
4696         * app/diagram.c (diagram_finalize): 
4697         * app/commands.c (dialogs_layers_callback): 
4698         * app/filedlg.c (file_export_ok_callback): 
4699         * app/app_procs.c (app_exit): 
4700         * app/display.c (display_set_active): 
4701         * app/interface.c (dia_dnd_file_drag_data_received): 
4702         * app/recent_files.c: 
4703         Undone attempt at unifying the multi-diagram windows (like
4704         layers).  It broke the layers and didn't make much sense for the
4705         diagram properties dialog anyway.
4707         * lib/group.c: 
4708         * lib/diatypes.h: 
4709         * lib/diagramdata.c: 
4710         * lib/object.h: 
4711         * lib/object.c: Undone attempts at GObject'ifying DiaObject -- too
4712         many subclasses have to be fixed.  Fixed remaining
4713         Object/ObjectType renaming issues.
4715 2004-05-02  Lars Clausen  <lars@raeder.dk>
4717         * lib/object.[ch]: Making DiaObject a GObject.  Now can I avoid
4718           having to make all the children objects conform to
4719           GObject style at once?  Warning!  Does not compile right now.
4721         * many, many files: Rename Object to DiaObject in preparation for
4722           making it a GObject.
4723         
4724         * app/diagram.[ch]: Turn diagram into a real GObject.
4726         * app/pagesetup.c: 
4727         * app/filedlg.c: Correctly ref and unref diagram. 
4729         * lib/diagramdata.h: Starting to turn it into a GObject as well.
4731 2004-05-02  Lars Clausen  <lars@raeder.dk>
4733         * lib/object.[ch]: Starting to convert Object to DiaObject, son of
4734         GObject. 
4736         * app/dia-props.c: Undo the attempt at making it really
4737         multi-diagram, now going for a one-diagram dialog.
4739 2004-04-30  Lars Clausen  <lars@raeder.dk>
4741         * app/undo.c: Undoing broken undo stuff for diagram properties and
4742         page setup.  Shouldn't be mixed into undo at all.
4744         * app/render_gdk.c (draw_pixel_line): Use the dash-setting
4745         function to avoid in particular the grid crawling.
4747         * lib/diagdkrenderer.[ch] (dia_gdk_renderer_set_dashes): Function
4748         to allow aligning dashes, so they don't crawl.
4750 2004-04-28  Lars Clausen  <lars@raeder.dk>
4752         * app/Makefile.am: New files diacanvas.[ch]
4754         * app/interface.c (create_display_shell): Use new diacanvas that
4755         allows placing widgets on canvas, for text edit.
4757         * lib/object.h: 
4758         Early work towards rotation.  No implementation yet.
4760         * app/layer_dialog.c (undo_layer): 
4761         * objects/network/bus.c (bus_create_change): 
4762         * objects/standard/box.c (aspect_create_change): 
4763         * objects/standard/ellipse.c (aspect_create_change): 
4764         Use g_new0 for change struct.
4766         * app/undo.c (diagram_change_apply_or_revert): 
4767         Support for undo of diagram properties and page setup.
4769         * app/disp_callbacks.c (ddisplay_canvas_events): 
4770         * lib/text.h: 
4771         * lib/diagramdata.h: 
4772         * app/modify_tool.c (click_select_object): 
4773         * lib/text.c (text_register_editable): 
4774         Starting work on new text editing model.  Guarded by #ifdef so
4775         far. 
4777 2004-04-07  Lars Clausen  <lars@raeder.dk>
4779         * app/recent_files.c (open_recent_file_callback): 
4780         * app/interface.c (origin_button_press): 
4781         * app/filedlg.c (file_open_ok_callback): 
4782         * app/display.c: 
4783         * app/diagram.[ch]: 
4784         * app/commands.c (dialogs_layers_callback): Using new
4785         diagram_set_current() function to ensure auxilliary windows are
4786         updated. 
4788         * app/layer_dialog.c: Trying to unify with dia-props.  Diagram
4789         menu now borken.  *sniff*
4791         * app/dia-props.c: Diagram properties window attempted
4792         persistentified.  Trying to make more like layer dialog (since it
4793         already changes when the diagram changes), but some things still
4794         borken. 
4796 2004-04-06  Lars Clausen  <lars@raeder.dk>
4798         * lib/dialinechooser.[ch] (dia_line_chooser_set_line_style): 
4799         * lib/attributes.c (attributes_set_default_line_style): 
4800         * app/interface.c (create_lineprops_area): 
4801         Make line style persistent as well.  Added function to directly
4802         set the style and dashlength of a dialinechooser. 
4804 2004-04-03  Lars Clausen  <lars@raeder.dk>
4806         * objects/standard/ellipse.c (ellipse_move_handle, ellipse_copy):
4807         Copy the ellipse extra handle correctly.
4809         * objects/standard/box.c (box_move_handle): Move definitions
4810         according to bug #138925.
4812 2004-04-02  Lars Clausen  <lars@raeder.dk>
4814         * app/recent_files.c: Use absolute name for recent files list.
4816         * lib/attributes.c: Set start and end arrow types, correctly.
4818         * lib/widgets.c (dia_arrow_selector_set_arrow): Use new function
4819         to get arrow index.
4821         * lib/diaarrowchooser.[ch]: Support for setting arrow info.
4823         * app/interface.c (create_lineprops_area): Set persistently stored
4824         arrow info.
4826         * lib/arrows.[ch]: New function to get arrow index (in arrow_types)
4827         from arrow type.
4829         * lib/dia_dirs.c: dia_get_absolute_path now creates a canonical
4830         path (i.e. without '.' or '..').  Not tuned for Win32 yet.
4832         * plug-ins/xfig/xfig-import.c: Redone ordering of import to comply
4833         with what xfig does.  Text now converted from latin-1 to utf-8
4834         (latin-1, since that's what xfig seems to use.  Would like to see
4835         examples of non-latin-1 figs).  String case problems fixed.
4837 2004-04-01  Lars Clausen  <lars@raeder.dk>
4839         * lib/attributes.c: 
4840         * app/interface.c: Default arrows now stored persistently, too.
4842         * lib/arrows.[ch]: New function to get arrow type from name.
4844         * app/color_area.c (color_area_create): 
4845         * lib/attributes.c: 
4846         * app/linewidth_area.c: Also persistent colors and line width.
4847         That was easy.  Arrows and line style will take a bit more work,
4848         but not much.
4850 2004-04-01  Lars Clausen  <lars@raeder.dk>
4852         * app/preferences.c:   All preferences are now
4853         handled by persistence, old prefs load and store code is gone.
4855         * lib/persistence.[ch]: Added string and color persistents.  This is
4856         a different string from the one used in the printer dialog, that
4857         one has a GtkEntry attached -- may want to make that one an
4858         encapsulation of this one or something.
4860 2004-03-31  Lars Clausen  <lars@raeder.dk>
4862         * app/app_procs.c: Do persistence before prefs.  Prefs are to be
4863         phased out anyway.
4864         
4865         * lib/persistence.[ch]: 
4866         * app/preferences.c: Adding persistence for integers, reals,
4867         booleans.  Fixed stupid list bug.  Test persistence for prefs.
4869 2004-03-30  Lars Clausen  <lars@raeder.dk>
4871         * app/recent_files.c: 
4872         Debugging of deallocation.
4873         
4874         * lib/widgets.c: 
4875         Font menu now uses persistence.  Ordering needs fixing, or it must
4876         be sorted.
4878         * lib/libdia.def: 
4879         * lib/Makefile.am (libdia_la_SOURCES): 
4880         * app/Makefile.am (dia_core_files): 
4881         * app/persistence.[ch]: 
4882         * lib/persistence.[ch]: Moved to lib as widgets need it.  Also a
4883         number of fixes, including multiple entries now being read
4884         properly.  Still some oddity about the persistent list having the
4885         role as first entry (which makes the font menu crash after a few
4886         iterations). 
4888 2004-03-26  Lars Clausen  <lars@raeder.dk>
4890         * app/persistence.c:
4891         * app/recent_files.[ch]: Redoing the recent-files list using
4892         persistence, reducing code by about 50%.  Still a problem when
4893         selecting an item from the menu -- possibly it doesn't like the
4894         menu being destroyed while in the callback?
4896 2004-03-25  Lars Clausen  <lars@raeder.dk>
4898         * app/persistence.c (persistence_load_string): Missing semicolon?!?
4900 2004-03-24  Lars Clausen  <lars@raeder.dk>
4902         * RELEASE-PROCESS: 
4904         * app/persistence.[ch]: 
4905         * app/paginate_psprint.c (diagram_print_ps): New type of data can
4906         be stored persistently:  Strings.  Only the printer command/file
4907         go in here now, but things like creator, organization, diagram
4908         comments etc could also be handled this way.
4910         * objects/standard/beziergon.c (beziergon_draw): Avoid control
4911         lines when the object is not selected.
4913 2004-03-23  Lars Clausen  <lars@raeder.dk>
4915         * lib/connectionpoint.h: 
4916         * app/load_save.c: Allow connection points to have names, and
4917         handle that in load/store.
4919         * lib/dialibartrenderer.c: Better highlighting for text.
4921         * lib/diagdkrenderer.h (struct _DiaGdkRenderer): 
4922         * lib/diagdkrenderer.c: Better highlighting for all, using same
4923         principles as libart highlighter.
4925 2004-03-22  Lars Clausen  <lars@raeder.dk>
4927         * lib/dialibartrenderer.[ch]: 
4928         * lib/diagdkrenderer.c: 
4929         * lib/object.h: 
4930         * app/object_ops.c:
4931         * app/diagram.[ch]:
4932         * app/display.[ch]:
4933         * app/Makefile.am: 
4934         * app/modify_tool.c: 
4935         * app/create_object.c: 
4936         * app/highlight.[ch]: 
4937         Added simple object highlighting.  In GDK rendering, highlights
4938         the bbox, in libart highlights the outline of the object (except
4939         for texts).
4941 2004-03-22  Lars Clausen  <lars@raeder.dk>
4943         * RELEASE-PROCESS: Added info on how to do a branch for
4944         development during release process.
4946 2004-03-20  Lars Clausen  <lars@raeder.dk>
4948         * RELEASE-PROCESS: Mention PATCH keyword in release process.
4950 2004-03-19  Lars Clausen  <lars@raeder.dk>
4952         * xmldocs.make: Fixed apparent uninstall error.
4954         * config.h.win32: 
4955         * doc/en/dia-manual.xml: 
4956         * doc/pl/dia-manual.xml: 
4957         * dia.spec: 
4958         * configure.in: 
4959         * NEWS: Version 0.93-pre1.
4961         * lib/dialinechooser.[ch]: Patch from pborelli@katamail.com (paolo
4962         borelli):  Remove some deprecated stuff.
4964 2004-03-18  Lars Clausen  <lars@raeder.dk>
4966         * Makefile.am: Try better uninstall thing for scrollkeeper.
4968         * objects/ER/entity.c: 
4969         * lib/arrows.[ch]: Patch from Georg Lothar Thimm
4970         <MGEORG@ntu.edu.sg>: Adds new ER arrows 1 or many, 0 or many, 0 or
4971         1, 1 exactly, as well as associative ER entities.
4973 2004-03-17  Lars Clausen  <lars@raeder.dk>
4975         * Makefile.am: Make distcheck not complain about scrollkeeper
4976         problems (as per advice from James Henstridge).
4978         * doc/pl/*.{xml,sgml}: Converted SGML manuals to XML to get better
4979         standard installation.
4981         * objects/standard/ellipse.c: Better strings for object menu.
4983         * app/sheets_dialog_callbacks.c: Fixed crashes from broken caching
4984         of dialogs (shame on you, glade!)
4986         * objects/custom/custom_object.c (custom_setup_properties):
4987         Removed debugging output
4989         * app/paginate_psprint.c (diagram_print_ps): Slightly more
4990         readable printer error messages.
4992         * xmldocs.make: 
4993         * omf.make: 
4994         * doc/en/Makefile.am: 
4995         * doc/pl/Makefile.am: 
4996         New more standard way to install the XML-based manuals.  
4998 2004-03-15  Lars Clausen  <lars@raeder.dk>
5000         * objects/standard/box.c (box_move_handle): More intuitive fixed
5001         aspect behaviour.
5003         * objects/standard/ellipse.c: 
5004         * objects/standard/box.c: 
5006         * lib/widgets.[ch]:
5007         * app/layer_dialog.[ch]:
5008         Patch from Steve Langasek <vorlon@debian.org>:
5009         Fixes startup crash on Alpha (bug #137169)
5010         
5011         * objects/standard/box.c: Aspect fixing like ellipses.
5013         * app/Makefile.am (dia_core_files): Include dia-app-icons.h
5015         * lib/pixmaps/Makefile.am (imagedir): Better Makefile.am for
5016         pixmaps, now can uninstall properly.
5018         * objects/standard/ellipse.c: Patch from dooms@info.ucl.ac.be:
5019         Fixed and circle aspect ratios for ellipses.  Bug #137156, #87966,
5020         #93940. 
5021         Added object menu access.
5023 2004-03-07  Hans Breuer  <hans@breuer.org>
5025         * lib/diaarrowchooser.c lib/dialinechooser.c : #undef
5026         GTK_DISABLE_DEPRECATED (I'd rather like if these widgets
5027         would not use deprecated apis, but it's much simpler this way)
5029         * lib/makefile.msc : build the above new widgets and render_pixmap
5030         * lib/libdia.def app/dia.def app/makefile.msc : updated
5032         * app/disp_callbacks.c : fix gccisms (without being able to make much sense of 
5033         what I saw, i.e. how big is an empty array supposed to be ? ;-). 
5034         Previously it gave :
5035         disp_callbacks.c(188) : error C2059: syntax error : '}'
5036         disp_callbacks.c(191) : warning C4034: sizeof returns 0
5038         * app/interface.c : #include "dialinechooser.h"
5040         * lib/diagdkrender.c : make the !HAVE_FREETYPE case compile again
5041         [one more reason not to use it here : it's quite slow compared to
5042          the native win32 font renderer ;]
5044         * app/app_procs.c app/filedlg.c : gtk_widget_destroy does not take
5045         a GtkDialog*, removed unneeded cast
5047         * app/render_eps.c : avoid assignment warning for void* user_data
5048         not being an int 
5050 2004-03-06  Steffen Macke sdteffen@web.de>
5052         * shapes/Map/Isometric/Makefile.am: added Makfile for Isometric
5053         shapes
5055 2004-03-06  Lars Clausen  <lars@raeder.dk>
5057         * lib/arrows.h (DEFAULT_ARROW_SIZE): Downed default arrow size to
5058         0.5, as per poll.
5060         * lib/font.c: Simple cleanup system for layout cache removes any
5061         layout that hasn't been used for 10 minutes, but only during idle
5062         time. 
5064 2004-03-05  Lars Clausen  <lars@raeder.dk>
5066         * sheets/Electric.sheet.in: Added patch from padro@lsi.upc.es
5067         (lluis padro) (#130887): Extended Electric shapes with vertical
5068         versions. 
5070         * sheets/Cybernetics.sheet.in: Normalize shape descriptions (never
5071         start with "Create a" or "A", always capitalize first word).
5073         * objects/standard/ellipse.c: Patch from Grégoire Dooms
5074         <dooms@info.ucl.ac.be>: Add extra connection point in center of
5075         ellipse.  Additionally added a handle in the center, and resize is
5076         now around the center.
5078         * configure.in: 
5079         * sheets/Makefile.am (SUBDIRS): 
5080         * sheets/IsometricMap.sheet.in: 
5081         * shapes/Map/Isometric/*
5082         * shapes/Makefile.am (SUBDIRS): Added Isometric shapes.
5084 2004-03-04  Lars Clausen  <lars@raeder.dk>
5086         * lib/Makefile.am: 
5087         * lib/pixmaps/Makefile.am: 
5088         * configure.in: 
5089         Better installation handling of pixmaps.
5090         
5091         * lib/diagdkrenderer.c: 
5092         * lib/diagtkfontsel.h (struct _DiaGtkFontSelectionClass): 
5093         * lib/diagtkfontsel.c (dia_gtk_font_selection_show_available_fonts): 
5094         Constness fixes.
5096 2004-03-03  Lars Clausen  <lars@raeder.dk>
5098         * lib/diagtkfontsel.h (struct _DiaGtkFontSelection): 
5099         * lib/diagdkrenderer.c: 
5100         * lib/diasvgrenderer.c:
5101         * lib/dialibartrenderer.c:
5102         * lib/diainteractiverenderer.c: 
5103         * lib/prop_text.c (multistringprop_handle_key): 
5104         * lib/dia_dirs.c: 
5105         * lib/dia_image.c (dia_image_rgba_data): 
5106         * lib/widgets.c: 
5107         * lib/diagramdata.c (layer_set_object_list): 
5108         * lib/font.h: 
5109         * lib/font.c: 
5110         Getting rid of compile warnings.
5112         * lib/widgets.c: Handle destroy properly, i.e. unref the two extra
5113         images.  Also remove unused decls.
5115 2004-03-02  Lars Clausen  <lars@raeder.dk>
5117         * lib/widgets.h: 
5118         * lib/widgets.c (dia_size_selector_init): Add images to the size
5119         selector chain widget.  Also new function to load installed images
5120         from files (better than from included XPM, IMHO).
5122 2004-03-02  Lars Clausen  <lars@raeder.dk>
5124         * lib/libdia.def: 
5125         * lib/pixmaps/[un]broken-chain.xpm: Icons stolen from GIMP for the
5126         size selector.
5128         * lib/Makefile.am: 
5129         * lib/widgets.c (dia_size_selector_init): Work
5130         on getting proper icon onto the size selector.  Need simple image
5131         load mechanism in utils.
5133         * lib/text.c: 
5134         * app/display.[ch]:
5135         * app/disp_callbacks.c: Patch from kou@cozmixng.org: Show preedit
5136         strings, handle utf8 strlen properly.  Bug #135930.
5138 2004-03-01  Lars Clausen  <lars@raeder.dk>
5140         * shapes/Cybernetics/*:
5141         * sheets/Cybernetics.sheet.in:
5142         * sheets/Makefile.am:
5143         * shapes/Makefile.am: 
5144         * configure.in: Patch from charly.meyer@t-online.de (Thorsten
5145         Roggendorf): Cybernetic shapes (#95553).
5147 2004-03-01  Lars Clausen  <lars@raeder.dk>
5149         * app/Makefile.am: Fixed $(EXEEXT) warning from automake.
5151         * lib/diatypes.h: New type DiaSizeSelector.
5153         * lib/widgets.[ch]: New size selector widgets that selects two
5154         values (width and height, nominally) optionally linked to keep
5155         aspect ratio.
5157 2004-03-01  Hubert Figuiere  <hfiguiere@teaser.fr>
5159         * plug-ins/svg/render_svg.c (new_svg_renderer): Add DTD declaration
5160         in front of file. Bug #128600.
5162         * app/Makefile.am:
5163         * app/interface.h:
5164         * app/lineprops_area.[ch]:
5165         * lib/Makefile.am:
5166         * lib/dialinechooser.[ch]:
5167         * lib/widgets.c (dia_line_style_selector_init): use line preview 
5168         instead of text labels. This involve moving away line_chooser to lib
5169         from app.
5171         * lib/diaarrowchooser.[ch] (close_and_hide): Make static to avoid
5172         symbol conflicts.
5174         * app/Makefile.am (dia_core_files): 
5175         * app/interface.c (create_lineprops_area):
5176         * app/render_pixmap.[ch]:
5177         * lib/Makefile.am:
5178         * lib/diaarrowchooser.[ch]:
5179         * lib/libdia.def:
5180         * lib/prop_attr.c:
5181         * lib/propdialogs.c:
5182         * lib/render_pixmap.[ch]:
5183         * lib/widgets.c (dia_arrow_fill_menu): Use arrow preview instead
5184         of text labels. This involve moving away arrow_chooser to lib from
5185         app.
5187 2004-02-29  Lars Clausen  <lars@raeder.dk>
5189         * objects/UML/class.[ch]: Puny kludge to avoid GtkList objects
5190         being updated half-way through destruction.  To be removed when
5191         the lists are replaced by something better.
5193         * objects/UML/class_dialog.c: Patch from luc@handhelds.org:
5194         Accelerators for class dialog.  Bug #130995.
5195         Patch from luc@handhelds.org: Better aligning of widgets.  Bug #130994.
5197         * app/dia-props.c:
5198         * app/preferences.c:
5199         * lib/properties.c:
5200         * objects/GRAFCET/step.c:
5201         * objects/Misc/analog_clock.c:
5202         * objects/chronogram/chronoline.c:
5203         * objects/chronogram/chronoref.c:
5204         Change to american spelling (color, not colour) to ease
5205         translators job.  Note that a number of translations may need an
5206         update now.  Bug #120466.
5208 2004-02-29  Lars Clausen  <lars@raeder.dk>
5210         * plug-ins/xfig/xfig-export.c: Patch from solworth@cs.uic.edu:
5211         Better arrow handling for missing arrows.
5213         * plug-ins/metapost/render_metapost.[ch]: Patch from
5214         phred@cs.berkeley.edu (Fred Reiss): Add font faces and font
5215         size. See bug #135363.
5217         * app/app_procs.c (app_init): If non-interactive, or if
5218         --log-to-stderr used, send all messages to stderr.  This should
5219         mean that old diaconv == dia --export-to-format=FOO BAR
5221 2004-02-29  Hubert Figuiere  <hfiguiere@teaser.fr>
5223         * app/menus.c: Get rid of GNOME menus. Deprecated APIs in GNOME 2.
5225 2004-02-28  Lars Clausen  <lars@raeder.dk>
5227         * lib/text.c (text_key_event): Patch from Kouhei Sutou
5228         <kou@cozmixng.org>: Fix wrong utf8 strlen handling.
5230 2004-02-27  Lars Clausen  <lars@raeder.dk>
5232         * KNOWN_BUGS: Added info on most commonly reported bugs, with
5233         BugZilla numbers.
5234         
5235         * app/disp_callbacks.c (popup_object_menu): Unified properties
5236         entry, fixes bug #105080.
5238         * app/diagram.c (diagram_update_menu_sensitivity): 
5239         * app/menus.h (struct _UpdatableMenuItems): 
5240         * app/menus.c (menus_initialize_updatable_items): Menu items
5241         changed around, align menus flattened, properties entry ghosted,
5242         dialogs menu removed, more shortcuts added.  Closing bugs #94018,
5243         #117495, #135125.
5244         Also taking out Gnome menus for now.  They don't allow shortcuts,
5245         so what are they good for?
5247 2004-02-27  Lars Clausen  <lars@raeder.dk>
5249         * app/menus.c (display_menu_items): 
5250         * app/commands.[ch]: Added duplicate menu item from Alan Horkan
5251         (bug #95546).
5253 2004-02-24  Adam Weinberger  <adamw@FreeBSD.org>
5255         * configure.in: Added 'en_CA' (Canadian English) to ALL_LINGUAS.
5257 2004-02-23  Lars Clausen  <lars@raeder.dk>
5259         * app/app_procs.c (app_init): Comments for translators.
5261 2004-02-22  Hubert Figuiere  <hfiguiere@teaser.fr>
5263         * app/preferences.c (prefs_create_dialog): Change packing policy
5264         for widget to expand.
5266         * app/Makefile.am (run_dia.sh): Fixed a typo in wrapper that prevented
5267         running with a debugger.
5269 2004-02-19  Lars Clausen  <lars@raeder.dk>
5271         * app/undo.[ch]: Adding last-saved information to undo to allow a
5272         diagram with all changes since last save undo to be marked as
5273         nonmodified.  Still needs integration with actual undo
5274         apply/revert calls.
5276         * app/diagram.h: 
5277         * app/diagram_tree.c (diagram_tree_update): 
5278         * app/diagram.c: 
5279         * app/display.c (update_modified_status): 
5280         * plug-ins/python/pydia-diagram.c (PyDiaDiagram_GetAttr): 
5281         * app/autosave.c (autosave_check_autosave): Encapsulate modifed
5282         test. 
5284         * app/render_eps.[c]: Restructure to better handle PS vs. EPS
5285         vs. EPSI, comment out EPSI until preview is in there.
5287         * lib/render.c: 
5288         * lib/diarenderer.c: Removing debugging printfs.
5290         * app/diapsrenderer.[ch]: Preparations for proper EPSI rendering
5291         (with preview)
5293         * objects/standard/arc.c (arc_update_handles): Check to avoid
5294         crash when start and end points are the same.
5296 2004-02-19  Lars Clausen  <lars@raeder.dk>
5298         * objects/standard/bezier.c: 
5299         * objects/standard/line.c (line_load): 
5300         * objects/standard/polyline.c (polyline_load): 
5301         * objects/standard/zigzagline.c (zigzagline_load): 
5302         * objects/standard/arc.c (arc_load): 
5303         * lib/widgets.h (DEFAULT_ARROW_WIDTH): Use DEFAULT_ARROW_SIZE
5304         instead of hardcoding.
5306 2004-02-18  Hubert Figuiere  <hfiguiere@teaser.fr>
5308         * app/disp_callbacks.c (popup_object_menu): append a menu item to 
5309         display properties.
5311 2004-02-17  Hubert Figuiere  <hfiguiere@teaser.fr>
5313         * app/app_procs.c: declare rc properly with the proper #ifdef
5315 2004-02-17  Lars Clausen  <lars@raeder.dk>
5317         * plug-ins/xfig/xfig-import.c: Correct ordering of imported FIG
5318         objects (which seemingly FIG itself breaks, or else there is no
5319         ordering).
5321 2004-02-16  Lars Clausen  <lrclause@cs.uiuc.edu>
5323         * plug-ins/xfig/xfig-export.c (figLineWidth): Check for minimum
5324         width renderable in xfig.  Helps on bug #133637, but does not
5325         quite fix it -- something about depth is wrong.
5327         * plug-ins/xslt/xslt.[ch]: Patch #133913 from phenning@lanl.gov:
5328         Extern definitions for Mac compilation.
5330         * app/app_procs.c: Patch #131159 from J. H. M. Dassen
5331         (jdassen@debian.org): Include fix.
5333         * app/interface.c: Patch #130100 from luc@handhelds.org:  Make
5334         sure the initial diagram size is correct.
5336 2004-02-15  Lars Clausen  <lrclause@cs.uiuc.edu>
5338         * lib/Makefile.am (AM_CPPFLAGS): Override AM_CPPFLAGS instead of
5339         CPPFLAGS, as per automake warning.
5340         * app/Makefile.am (AM_LDFLAGS): Override AM_LDFLAGS instead of
5341         LDFLAGS, as per automake warning.
5342         (run_dia.sh): More robust creation, and more easily moved.
5344         * app/undo.c (group_objects_revert): Don't double-free the objects
5345         list.  (#129221) Call object_add_updates on grouped objects.
5346         (ungroup_objects_revert): Call object_add_updates on grouped objects.
5348         * lib/diagramdata.c: Internal
5349         documentation. 
5351         * lib/polyshape.c (polyshape_update_data): Correctly calculate
5352         directions for polyshape corners (thanks, Valgrind!)
5354         * lib/attributes.c: 
5355         * lib/prop_attr.c (arrowprop_load): Use default arrow size.
5357         * lib/arrows.h: Default arrow size defined.  After all are using
5358         this, may lower to 0.4 or so.
5360         * app/lineprops_area.[ch]: New function to set the arrow type for an
5361         arrow chooser.
5363         * app/interface.c (create_lineprops_area): Set default line to
5364         have an arrow (fairly likely to be what's wanted, plus it shows
5365         the user where arrows are set).
5367         * app/app_procs.c: #ifdef HAVE_POPT popt args to process_opt
5369 2004-02-14  Lars Clausen  <lrclause@cs.uiuc.edu>
5371         * plug-ins/metapost/render_metapost.c (draw_with_linestyle):
5372         Dotted lines should use dot_length, not dash_length.
5374 2004-02-06  Hans Breuer  <hans@breuer.org>
5376         * app/interface.c : don't use gtk_drawing_area_size() to avoid
5377         the defaut size being also the minimum size. Instead use
5378         gtk_window_set_default_size() on the display shell. Fixes #130982.
5380         [fixing #131210, but umlauts in the 'main' filename still not really 
5381          supported on systems where filesystem encoding != utf8
5382         (Problems with recent file menu and window title)]
5383         * lib/dia_xml.[hc] : add data_filename() and data_add_filename()
5384         to deal with possible differnces in filename encodings, see
5385         g_filename_<to|from>_utf8()
5386         * objects/standard/image.c : use them.
5388         * lib/widgets.c : handle possible encoding difference here, too.
5389         Also get rid of most warnings by using const and GTK casts where 
5390         appropriate; one wrong cast (probably causing a crash) was found/fixed 
5391         by this - the remaining give a hint on finally leaking FontSelectorEntry.
5393         * lib/widgets.[hc] : hide _DiaFileSelector and *Class in .c. Modified
5394         dia_file_selector_<get|set>_file to behave like the respective Gtk 
5395         functions do : encoding- and const-wise ;-)
5397 2004-02-01  Robert Sedak  <robert.sedak@sk.htnet.hr>
5399         * configure.in: Added "hr" (Croatian) to ALL_LINGUAS.
5401 2004-01-19  Hans Breuer  <hans@breuer.org>
5403         * app/app_procs.c app/diaconv : 
5404         only call bind_textdomain_codeset when available, what's good 
5405         for The Gimp (bug #131215) can't be wrong for Dia : bug #125926
5406         * config.h.win32 : define HAVE_BIND_TEXTDOMAIN_CODESET
5408 2004-01-19  Steffen Macke <sdteffen@web.de>
5410         * makefile.msc: updated for new GAIM-like installer build; sync'ed
5411         ALL_LINGUAS with configure.in
5413 2004-01-18  Hans Breuer  <hans@breuer.org>
5415         * app/app_procs.c (myXmlErrorReporting) : avoid possible crash 
5416         by not passing NULL to g_print()
5418         * app/interface.c (create_toolbox) : actually use
5419         persitence_register_window() to restore toolbox window size
5421         * app/makefile.msc lib/makefile.msc : allow to deselect
5422         building with Freetype by command line to nmake like :
5423                 nmake -f makefile.msc "NOFT2=1"
5425         * plug-ins/python/diasvg_import.py : handle 'stroke-array' as
5426         far as possible with Dia's limited line style
5427         * plug-ins/python/pydia-property.c : allow to get and set
5428         Linestyle, style and dash(length)
5430         * lib/object.h : removed typedef for ObjectId not use anywhere
5432 2004-01-17  Hans Breuer  <hans@breuer.org>
5434         * objects/custom/shape_info.[hc] objects/custom/custom_object.c
5435           doc/shape.dtd doc/custom-shapes : 
5436         support for images in custom shapes, also removed some long-time
5437         dead code
5439         * doc/en/*.xml : fixed crippled line ends which get created
5440         when windoze line ends are checkin from the unix side
5442 2004-01-13  Laurent Dhima  <laurenti@alblinux.net>
5444         * configure.in: Added "sq" to ALL_LINGUAS.
5446 2004-01-11  Hans Breuer  <hans@breuer.org>
5448         [more less leaks ;-]
5449         
5450         * objects/SADT/annotation.c : use text_destroy() not g_free()
5451         
5452         * objects/chronogram/chronoline.c : neither leak chronoline::events
5453         nor chronoline::name
5455         * objects/wpg/wpg.c : don't g_free() but g_object_unref(renderer);
5457 2004-01-11  Hans Breuer  <hans@breuer.org>
5459         * lib/properties.h :
5460         * objects/custom/custom_object.c : more properties optional
5461         to be backward compatible for older diagrams not having them 
5462         set. (Try to load samples/all_objects.dia)
5463         
5464         [less memory leaks thanks valgrind ;-]
5465         
5466         * app/recent_files.c (recent_file_history_write) : 
5467         g_free(history_filename);
5468         (recent_file_menu_item) : use g_path_get_basename() 
5469         which already strdups, free result of g_strescape()
5470         
5471         * app/filedlg.c (create_export_menu) : return of
5472         filter_get_export_filter_label() must be g_free()'d
5473         (create_open_menu) : same for import
5474         
5475         * app/export_png.c (export_png_ok) : destroy info ptr
5476         with png_destroy_write_struct()
5477         
5478         * app/app_procs.c (app_init) : g_free(export_format_string);
5479         
5480         * lib/font.c (dia_font_finalize) : finalize parent_class, too
5481         (dia_font_new_from_style) : stop leaking almost all DiaFont by not
5482         refing it a second time, g_type_create_from_instance() is enough
5483         
5484         * lib/object_defaults.c (_obj_store) : don't mess with names
5485         len 0 (should avoid 'Invalid read of size 1, but doesn't ;)
5486         
5487 2004-01-11  Steffen Macke <sdteffen@web.de>
5489         * app/diapsftrenderer.c: including ftoutln.h
5490         * app/makefile.msc: updated for freetype build
5491         * lib/libdia.def: added dia_font_get_context()
5492         * lib/dialibartrenderer.c (draw_string): added cast
5493         
5494 2004-01-10  Hans Breuer  <hans@breuer.org>
5496         * lib/diagdkrenderer.c (draw_string) : gdk_draw_line with
5497         transformed coordinates, fixes bug 130804
5499 2004-01-10  Hans Breuer  <hans@breuer.org>
5501         * app/filedlg.c app/app_procs.c : don't try to destroy 
5502         'gtk_dialog_run'-dialogs dialogs by connecting to the "response"
5503         signal but simply by gtk_widget_destroy() after gtk_dialog_run()
5504         returns. Fixes 'has no handler' bugs like #121019
5506 2004-01-10  Hans Breuer  <hans@breuer.org>
5508         * objects/UML/class.c objects/UML/class_dialog.c : 
5509         handle umlclass->name being empty to avoid, i.e. fix #127968
5511         [plugging memleaks, thanks valgrind :-]
5512         
5513         * lib/dia_xml.c (data_string) : don't leak return value
5514         of xmlNodeListGetString()
5515         
5516         * lib/dia_xml.c (xml_file_check_encoding) : g_free(buf)
5517         before returning, maybe alloca() would be the better 
5518         choice but anyway ;)
5520         * objects/custom/custom_object.c:306 : adde xmlFree(str) below
5521         
5522         * lib/font.c (dia_font_build_layout) : don't leak result
5523         of g_utf8_strdown()
5524         
5525         * lib/diagdkrenderer.c (draw_string) : don't leak rgba
5526         (this is the one which got me started using valgrind, see #130816)
5527         
5528 2004-01-07  Sanlig Badral  <badral@openmn.org>
5530         * configure.in: Added "mn" to ALL_LINGUAS.
5532 2004-01-04  Hans Breuer  <hans@breuer.org>
5534         * lib/diagdkrenderer.c : replace rendering of really small (height
5535         less than 2 pixels) with a simple dashed line, you wont notice the 
5536         differnce beside it being much faster. This allows ...
5537         * lib/diagdkrenderer.h : ... to remove gboolean rendertext ...
5538         * app/navigation.c : ... and lets you see an read rendered text even 
5539         in the nice navigation popup.
5541         * lib/dialibartrenderer.c : FONT_SCALE defined as 1.0 for G_OS_WIN32, too. 
5542         (draw_string) : don't leak temporary image
5544 2004-01-04  Hans Breuer  <hans@breuer.org>
5546         * app/dia-app-icons.h : TODO : to be removed when autogenerated on *NIX, too.
5547         * app/interface.c : use dia-app-icons.h to give Dia window icons
5549         * lib/dia_image.c lib/color.c : _never_ call functions implemented
5550         in app/ from lib/. It is not portable and broken from design
5551         * app/app_procs.c : call color_init() and dia_image_init() conditional,
5552         i.e. only if running interactive.
5554         * lib/font.h : #include <time.h>
5556         * lib/libdia.def : updated externals
5558         * objects/UML/actor.c 
5559             objects/UML/association.c (todo)
5560           objects/UML/branch.c
5561           objects/UML/class.[hc] objects/UML/class_dialog.c
5562           objects/UML/classicon.c
5563           objects/UML/component.c 
5564           objects/UML/constraint.c
5565           objects/UML/dependency.c
5566           objects/UML/generalization.c
5567           objects/UML/implements.c
5568           objects/UML/large_package.c
5569           objects/UML/lifeline.c
5570           objects/UML/message.c
5571           objects/UML/node.c
5572           objects/UML/object.c
5573           objects/UML/realizes.c
5574           objects/UML/small_package.c
5575           objects/UML/state.c
5576           objects/UML/usecase.c
5577           objects/UML/
5578         : ported coloring of most UML objects (bug #97517, orginal
5579           work Mathias Hasselmann)
5581         * lib/properties.h : add _OPTIONAL variants for 
5582         PROP_STD_(LINE|FILL|TEXT)_COLOUR which allows to load old -
5583         i.e. default colored - UML diagrams without complaining
5584         * lib/proplist.c lib/propoffsets.c : avoid setting _OPTIONAL,
5585         not set properties with the help of PXP_NOTSET. Otherwise 
5586         optional attributes would lead to wrong initialization. 
5588         * lib/widgets.[hc] : moved _DiaFontSelector from .h to .c
5589         to hide details and restict #undef GTK_DISABLE_DEPRECATED to .c
5590         Same for most other selectors which probably should be rewritten
5591         to the combo box with tree model from Gtk+ 2.4
5593 2004-01-04  Lars Clausen  <lrclause@cs.uiuc.edu>
5595         * INSTALL (PLATFORM NOTES): Mention the Gnu gettext and iconv as
5596         being the Right Thing(tm) to use on Solaris.
5598         * objects/standard/bezier.c (bezierline_draw): Don't draw
5599         guidelines if not selected.
5601         * lib/object.[ch] (dia_object_is_selected): Function to check whether
5602         a given object is selected. O(n), where n is # selected objects.
5603         
5605 2004-01-03  Lars Clausen  <lrclause@cs.uiuc.edu>
5607         * lib/widgets.[ch]: Make sure old font is re-chosen when the Other
5608         Fonts dialog is closed without pressing Ok (bug #128646).
5610 2004-01-02  Lars Clausen  <lrclause@cs.uiuc.edu>
5612         * app/Makefile.am: Quote arguments correctly for run_dia.sh (bug
5613         #130099). 
5615 2004-01-01  Lars Clausen  <lrclause@cs.uiuc.edu>
5617         * INSTALL: Updated list of requirements (bug #129653)
5619         * doc/en/dia.dia: Beginning class diagram for Dia from Luc
5620         Pionchon <luc@handhelds.org>.
5622 2003-12-31  Lars Clausen  <lrclause@cs.uiuc.edu>
5624         * lib/diagdkrenderer.c (draw_string): Don't attempt to render
5625         empty or NULL strings (bug #130097).
5627 2003-12-31  Chris Sperandio <sperandi@eng.usf.edu>
5628         
5629         * plug-ins/metapost/render_metapost.c: Fixed string colorization.
5630         Added checks against color_black.
5632 2003-12-31  Lars Clausen  <lrclause@cs.uiuc.edu>
5634         * plug-ins/xfig/xfig-export.c (figArrow): Output nothing for
5635         ARROW_TYPE_NONE.  Thanks to Jon A. Solworth for showing that this
5636         can happen.
5638         * objects/UML/component_feature.c: Patch from W. Borgert
5639         <debacle@debian.org>:  Add handle to component feature text.
5641         * lib/diagdkrenderer.c (draw_string): Remove poorly placed caching.
5643         * lib/font.c: Caching PangoLayout for better rendering speed.
5645 2003-12-30  Lars Clausen  <lars@raeder.dk>
5647         * lib/dia_dirs.[ch] (dia_get_absolute_filename): New function to
5648         get absolute file name from relative.
5649         * app/recent_files.c (recent_file_history_add): Use absolute
5650         filenames for recent files menu so that files can be found when
5651         Dia is invoked from other places.  
5653         * app/app_procs.c (handle_all_diagrams): Fix for 1/3 of 130098:
5654         Actually load different diagrams if such are requested on command
5655         line.  
5657         * objects/UML/class_dialog.c (class_create_page): Fix from Luc
5658         Pionchon <luc@handhelds.org>: Correctly align labels for colors.
5660         * lib/diagdkrenderer.[ch]: From Luc: New option to GdkRenderer to
5661         remove text rendering.  May be turned into greeking at some later
5662         stage.
5664         * app/interface.c: 
5665         * app/Makefile.am (dia_core_files): 
5666         * app/navigation.[ch]: Patch from Luc Pionchon <luc@handhelds.org>:
5667         Adds navigation window a la Gimp, though without text being
5668         rendered at all.
5670 2003-12-27  Luc Pionchon <luc@handhelds.org>
5672         * app/navigation.h: (new file)
5673         * app/navigation.c: (new file) creates a navigation window with a
5674         thumbnail view of the whole diagram.
5675         * app/Makefile.am (dia_core_files): added new files.
5677         * app/interface.c (create_display_shell): added a button between
5678         the scrollbars to popup a navigation window.
5680         * lib/diagdkrenderer.h (struct_DiaGdkRenderer): added rendertext
5681         boolean
5682         * lib/diagdkrenderer.c (renderer_init): set rendertext TRUE by default
5683         * lib/diagdkrenderer.c (draw_string): returns if the renderer do
5684         not want text rendering.        
5686 2003-12-14  Lars Clausen  <lrclause@cs.uiuc.edu>
5688         * shapes/Circuit/hresistor.shape: Uses new extra attribute thing.
5690         * objects/custom/shape_info.[ch]: Cleanup.
5692         * objects/custom/custom_object.[ch]: Changed to use new props
5693         interface.
5695         * lib/properties.h: 
5696         * lib/prop_text.c: 
5697         * lib/prop_inttypes.c: 
5698         * lib/prop_geomtypes.c: Added *prop_get_data_size.
5700         * lib/libdia.def: Added object_load_props.
5702         * configure.in: Better FT2 version test, from bug #129225.
5704         * dia.spec (BuildRequires): Changed to match makefile (bug #129131)
5706         * plug-ins/xslt/dia-uml2python.xsl: Added Python sheet from Holger
5707         Lehmann <holger.lehmann@catworkx.de>.
5709         * plug-ins/xslt/Makefile.am: 
5710         * plug-ins/xslt/stylesheets.xml: Added Python, Component List,
5711         and OWL XSLT sheets.
5713 2003-12-13  Lars Clausen  <lrclause@cs.uiuc.edu>
5715         * lib/diagdkrenderer.c: Add implementation so text is still
5716         rendered.  May be improved later.
5718         * lib/dia_image.c: 
5719         * app/main.c: 
5720         * app/export_png.c: 
5721         * app/diagram.c: 
5722         * app/app_procs.c: Patch from W. Borgert <debacle@debian.org>:
5723         Allow running without a $DISPLAY!
5725         * lib/color.c: Remove warnings for non-interactive run.
5727         * doc/en/dia.dbk: 
5728         * app/export_png.c: 
5729         * app/diaconv.c: 
5730         * app/app_procs.[ch]: 
5731         Patch from W. Borgert <debacle@debian.org>: Allow a --size argument
5732         to specify size for PNG output.
5734         * app/lineprops_area.c (dia_arrow_preview_expose): Make arrows
5735         render a little smaller, so as to fit the big ones.
5737         * lib/arrows.[ch]: New arrow type from W. Borgert
5738         <debacle@debian.org>: Filled Dot and Triangle.
5740 2003-12-02  Lars Clausen  <lrclause@cs.uiuc.edu>
5742         * doc/pl/Makefile.am (install-data-hook): Fixed installation bug
5743         for gif images.
5745         * plug-ins/xslt/dia-uml2owl.xsl: Added OWL XSLT from Dan Connolly.
5747         * acinclude.m4: Better Python configure code patch (can't find
5748         author, author please speak up!)
5750 2003-12-01  Lars Clausen  <lrclause@cs.uiuc.edu>
5752         * lib/diagdkrenderer.c (get_cached_text): Stupid bugs replaced by
5753         smarter ones.
5755 2003-11-30  Hans Breuer  <hans@breuer.org>
5757         * plug-ins/python/diasvg.py : initialize self.dash_length
5758         in constructor to avoid crashing if the renderer user
5759         does not set it before first usage.
5761 2003-11-30  Lars Clausen  <lrclause@cs.uiuc.edu>
5763         * lib/diagdkrenderer.c: Start of cache GDK text renderer -- not
5764         active yet.
5766         * configure.in: 
5767         * config.h.win32: Set version number to 0.92.2+cvs to distinguish
5768         development and stable versions.
5770         * lib/text.c (text_draw): Use new renderer function to draw the
5771         text.
5773         * lib/diarenderer.h: 
5774         * lib/diarenderer.c: New renderer function "draw_text" with
5775         default implementation.  This function should eventually be the
5776         main interface, as it will be able to handle width and caching of
5777         rendering internally.  All users of draw_string should convert to
5778         use Text objects and call either renderer->draw_text or text_draw,
5779         the latter if the text can be edited in-place (as should be the
5780         goal, eventually).
5782 2003-11-29  Lars Clausen  <lrclause@cs.uiuc.edu>
5784         * shapes/Circuit/hresistor.shape: First example of extra
5785         attributes. 
5787 2003-11-28  Lars Clausen  <lrclause@cs.uiuc.edu>
5789         * plug-ins/shape/shape-export.c: 
5790         * lib/diasvgrenderer.h: 
5791         * lib/diasvgrenderer.c: 
5792         * plug-ins/svg/render_svg.c (new_svg_renderer): 
5793         Actually store the font size, using DiaRenderer's font fields.
5795 2003-11-27  Lars Clausen  <lrclause@cs.uiuc.edu>
5797         * objects/custom/shape_info.[ch]: 
5798         * objects/custom/custom_object.[ch]: 
5799         Support for extra attributes in custom objects.
5800         
5801 2003-11-23  Lars Clausen  <lrclause@cs.uiuc.edu>
5803         * app/diagram.c (diagram_update_menu_sensitivity): More
5804         intelligent checks for menu sensitivity.  Might be slow on huge
5805         diagrams, but I think other things outweigh it by a lot.
5807         * app/menus.[ch]: Make "Bring Forwards"
5808         and "Send Backwards" updateable.
5810 2003-11-22  Steffen Macke <sdteffen@web.de>
5812         * shapes/Assorted/arrow-turn-up.shape:
5813         * shapes/Assorted/arrow-turn-up.png:
5814         * sheets/Assorted/Makefile.am:
5815         * sheets/Assorted.sheet.in: Added new arrow
5817 2003-11-17  Lars Clausen  <lrclause@cs.uiuc.edu>
5819         * app/app_procs.c
5820         * app/color_area.c
5821         * app/commands.c
5822         * app/defaults.c
5823         * app/dia_embedd.c
5824         * app/diagram.c
5825         * app/diagram_tree.c
5826         * app/diagram_tree_menu.c
5827         * app/diagram_tree_window.c
5828         * app/diapagelayout.c
5829         * app/diaunitspinner.c
5830         * app/export_png.c
5831         * app/filedlg.c
5832         * app/interface.c
5833         * app/layer_dialog.c
5834         * app/lineprops_area.c
5835         * app/linewidth_area.c
5836         * app/menus.c
5837         * app/pagesetup.c
5838         * app/paginate_psprint.c
5839         * app/persistence.c
5840         * app/plugin-manager.c
5841         * app/preferences.c
5842         * app/properties.c
5843         * app/recent_files.c
5844         * app/sheets.c
5845         * app/sheets_dialog.c
5846         * app/sheets_dialog_callbacks.c
5847         * app/tool.c: Patch from Sebastien Tricaud <toady@gscore.org>:
5848         GTK-2 compatibility update, mostly gtk_foo -> g_foo.
5850         * TODO: Updated, note on EPS transparency.
5852 2003-11-07  Lars Clausen  <lrclause@cs.uiuc.edu>
5854         * objects/UML/class.c (umlclass_draw): Allow classes with no name
5855         without crashing.
5857 2003-11-01  Lars Clausen  <lrclause@cs.uiuc.edu>
5859         * config.h.win32: 
5860         * doc/en/dia-manual.xml: 
5861         * dia.spec: 
5862         * configure.in: 
5863         * NEWS: Another Brown Bag release for parenting problems,
5864         including a crash bug fix.
5866         * app/connectionpoint_ops.c (diagram_update_connections_object):
5867         Also update connections when moving children.  This can cause
5868         move_handle to be called twice, so it must be idempotent.
5870         * app/load_save.c: Loading and saving of children totally redone.
5871         Now doesn't violate assumption that all objects in a layer are
5872         placed in order in XML file.
5874         * objects/UML/branch.c (branch_create): Don't lie about being
5875         resizable. 
5877         * objects/UML/node.c (node_create): 
5878         * objects/UML/large_package.c (largepackage_create): Drag with
5879         lower right-hand handle at creation like all other objects.
5881 2003-10-28  Lars Clausen  <lrclause@cs.uiuc.edu>
5883         * app/disp_callbacks.c (ddisplay_drop_object): Change initial
5884         parenting drop to behave like a move inside, i.e. constrain place
5885         instead of trying to resize.  'Cause, resizing cannot be done for
5886         all objects (e.g. UML Class). Also simplified the algorithm a lot
5887         at the same time.
5889         * app/load_save.c: Saving and loading of connection points for
5890         children added.  Prototypes for static functions added.
5892         * lib/dynamic_obj.c: Removed debugging output.
5894 2003-10-26  Lars Clausen  <lrclause@cs.uiuc.edu>
5896         * doc/en/dia-manual.xml: 
5897         * doc/pl/dia-manual.sgml: 
5898         * dia.spec: 
5899         * config.h.win32: 
5900         * configure.in: 
5901         * NEWS: Brown Bag release 0.92.1
5903         * lib/dynamic_obj.c: Fixed embarassing dynamic object removal bug.
5905 2003-10-25  Lars Clausen  <lrclause@cs.uiuc.edu>
5907         * app/app_procs.c (app_init): Rearrangement for translators.
5909 2003-10-24  Steffen Macke <sdteffen@web.de>
5911         * lib/text.c(text_key_event): enforcing the inserted text length now,
5912         fix for bug #125348
5914 2003-10-22  Lars Clausen  <lrclause@cs.uiuc.edu>
5916         * MAINTAINERS: Change Debian maintainer to be the default address.
5918         * objects/Misc/analog_clock.c (analog_clock_move_handle): Reorder
5919         args to match prototype, thus removing crashbug #125159.
5921         * RELEASE-PROCESS: Note to self.
5923 2003-10-22  Steffen Macke <sdteffen@web.de>
5925         * doc/en/dia-manual.xml: removed superfluous external references
5926         
5927 2003-10-21  Steffen Macke <sdteffen@web.de>
5929         * lib/libdia.def: added filter_get_by_name
5930         * app/render_eps.c: moved extensions definition outside #ifdef
5932 2003-10-19  Lars Clausen  <lrclause@cs.uiuc.edu>
5934         * Makefile.am: 
5935         * dia.1:
5936         Removed old Dia manual, put new one in doc/en/.  Translations
5937         should go in doc/??/.
5939         * doc/en/dia-manual.xml: 
5940         * doc/pl/dia-manual.sgml: 
5941         * dia.spec (Release): 
5942         * config.h.win32: 
5943         * configure.in: 
5944         * NEWS: 0.92 is here!
5946         * doc/en/dia.dbk: 
5947         * doc/en/dia.1: 
5948         * doc/en/Makefile.am (man_MANS): Added man page, thanks to Fredrik
5949         HallenBerg, W. Borgert.  Not currently autogenerated from dia.dbk,
5950         but it shall be.
5952         * doc/en/usage-objects.xml: Fixed lower-case PNG tags.
5954         * doc/en/usage-objects-selecting.xml: Commented out empty note.
5956 2003-10-14  Lars Clausen  <lrclause@cs.uiuc.edu>
5958         * doc/pl/dia-manual.sgml: 
5959         * doc/en/dia-manual.xml: 
5960         * config.h.win32: 
5961         * NEWS: 
5962         * configure.in: 
5963         * dia.spec (Release): Pre7.
5965         * app/diapsrenderer.c (draw_string): Convert string to print based
5966         on current locale.  If conversion fails, fall back to UTF-8 (which
5967         is almost certain to be messy).
5969 2003-10-13  Lars Clausen  <lrclause@cs.uiuc.edu>
5971         * doc/pl/dia-manual.sgml: 
5972         * dia.spec (Release): 
5973         * configure.in: 
5974         * NEWS: 
5975         * config.h.win32: 
5976         * doc/en/dia-manual.xml: Pre6.
5978         * plug-ins/pstricks/render_pstricks.c (draw_string): Don't escape
5979         TeX chars in strings -- must be possible to use TeX text in there.
5980         Also avoids infinite loop bug (#124464) Will get option for this
5981         later.
5983 2003-10-11  Lars Clausen  <lrclause@cs.uiuc.edu>
5985         * shapes/Cisco/Makefile.am: Cisco shapes now install correctly.
5987         * doc/en/dia-manual.xml: 
5988         * doc/pl/dia-manual.sgml: 
5989         * dia.spec (Release): 
5990         * configure.in: 
5991         * config.h.win32: 
5992         * NEWS: pre5.
5994         * app/authors.h: Removed duplicate of M. C. Nelson.
5996         * plug-ins/pixbuf/pixbuf.c: Unique name for pixbuf export: gdkpixbuf.
5998         * app/export_png.c: Unique name for libart PNG export: png-libart.
6000         * app/render_eps.c: Unique names for the two eps export methods:
6001         eps-builtin, eps-pango.
6003         * lib/filter.h: Binary compatibility change: 
6004         Added unique name to export filters.  Can be NULL.
6005         * lib/filter.c (filter_get_by_name): Finding a filter by
6006         non-extension name.
6008         * app/app_procs.h: Changed prototype for do_convert.
6009         * app/app_procs.c (app_init): Support for non-extension file
6010         format selection for export.  Also allow extension to differ from
6011         that specified by the filters.  A bit of refactoring, too.
6013 2003-09-28  Steffen Macke <sdteffen@web.de>
6015         * makefile.msc: added target po to update the translations
6017 2003-09-27  Lars Clausen  <lrclause@cs.uiuc.edu>
6019         * config.h.win32: 
6020         * dia.spec (Release): 
6021         * NEWS: 
6022         * doc/pl/dia-manual.sgml: 
6023         * doc/en/dia-manual.xml: 
6024         Pre4 is given a short try.
6025         
6026         * configure.in: Give all necessary libs to PNG test.
6028         * lib/font.c: Added legacy entries for sans, serif and monospace.
6030         * app/app_procs.c (internal_plugin_init): 
6031         * app/render_eps.h: 
6032         * app/render_eps.c: 
6033         Added PS fonts output for Unix.
6035         * app/diapsrenderer.c (set_font): Adjusted height by the magic .7
6036         factor to make PS fonts stay in boxes.
6037         
6038 2003-08-03  Hans Breuer  <hans@breuer.org>
6040         * config.h.win32 : close the version string
6042         * lib/libdia.def : with color_white, color_black being static
6043         on win32 they can not be exported anymore either
6045         * lib/dialibartrenderer.c : text rendering is back on win32,
6046         only by Gdk though; almost a year seems to be enough to
6047         wait for my patch at bug #94791 to be accepted ...
6049 2003-09-23  Lars Clausen  <lrclause@cs.uiuc.edu>
6051         * shapes/network/{digitizing_board.png,plotter.png,
6052         laptop.png,telephone.png}: 22x22 icons.
6054 2003-09-22  Lars Clausen  <lrclause@cs.uiuc.edu>
6056         * doc/pl/dia-manual.sgml: 
6057         * doc/en/dia-manual.xml: 
6058         * dia.spec (Release): 
6059         * configure.in: 
6060         * config.h.win32: 
6061         * NEWS: 
6062         pre3 improves font rendering speed.
6064         * app/app_procs.c (app_init): Don't do pango init here, it's done
6065         on demand in font.c now.
6067         * lib/font.c: Load pango context on demand rather than during
6068         init/all the time strikes a better balance between working font
6069         size and speed.  Still need to cache width calculations.
6071 2003-09-18  Lars Clausen  <lrclause@cs.uiuc.edu>
6073         * lib/dia_xml.c: Enable pretty printing.  Should have been added
6074         on 8/12. 
6076 2003-09-11  Lars Clausen  <lrclause@cs.uiuc.edu>
6078         * lib/arrows.c (calculate_arrow_point): Adjust arrow line
6079         adjustment a bit for half diamond and open round.
6081         * RELEASE-PROCESS: Added note about notifying translators and
6082         maintainers. 
6084         * doc/pl/dia-manual.sgml: 
6085         * doc/en/dia-manual.xml: 
6086         * dia.spec (Release): 
6087         * configure.in: 
6088         * config.h.win32: 
6089         * NEWS:
6090         Update to 0.92-pre2.
6091         
6092 2003-09-10  Lars Clausen  <lrclause@cs.uiuc.edu>
6094         * lib/arrows.c (calculate_arrow_point): Some fixing-up of arrow
6095         calculation for half diamond and open round.
6097         * lib/arrows.c: 
6098         * objects/UML/component_feature.c: 
6099         * lib/arrows.h: Patch from W. Borgert <debacle@debian.org>: Use
6100         arrows instead of specific little hacks.  Much nicer, but damn
6101         there's a lot of arrows.
6103         * lib/dialibartrenderer.c (begin_render): 
6104         * app/render_libart.c (begin_render): Use correct DPI for screen
6105         (well, actually the default DPI of 75 for now).
6107         * app/display.h: Informative notes on the DDISPLAY_*_ZOOM macros.
6109         * lib/diagdkrenderer.c (draw_string): Some reformatting.
6111         * app/app_procs.c (app_init): Note on what should be done for the
6112         pango context now, only it doesn't work:(
6114         * lib/font.c (dia_font_new): Make sure to load fonts that are
6115         used, using a reasonable pango_context.  Also a comment on the
6116         global_zoom_factor, 
6118 2003-09-09  Lars Clausen  <lrclause@cs.uiuc.edu>
6120         * doc/pl/graphics/*.png:
6121         * doc/pl/Makefile.am: Added graphics to distro, avoiding empty
6122         loop (bug #121817).  PL translator may want to change the
6123         home_network png to be in Polish.  If the docs get translated into
6124         more languages, we'll want to find out how to share these things.
6126 2003-09-08  Lars Clausen  <lrclause@cs.uiuc.edu>
6128         * app/splash.c (app_splash_init): Patch from Sébastien Tricaud
6129         <stricaud@mwsp.net>: Use g_signal_* instead of gtk_signal_* in
6130         splash.
6132         * app/filedlg.c (file_save_as_callback): Put filename setting
6133         together.  (Preparation for allowing default save dir.)
6135         * app/paginate_psprint.c (diagram_print_ps): Use $PRINTER
6136         correctly this time:)
6138         * app/dia-props.c (diagram_properties_show): 
6139         * app/properties.c (properties_show): Make sure the
6140         dialogs are transient for the correct diagram.
6142 2003-09-07  Lars Clausen  <lrclause@cs.uiuc.edu>
6144         * configure.in: Make sure -lz -lm is passed into second png test
6145         as well (stupid AC_LINK_IFELSE can't take it as an argument).
6147         * plug-ins/xfig/xfig-import.c: Skip XFig comments to make certain
6148         comment-filled files readable.  Once we have a 'generic data'
6149         system, we can put comments in there.
6151 2003-09-06  Steffen Macke <sdteffen@web.de>
6153         * plug-ins/pstricks/render_pstricks.c(tex_escape_string): using
6154         g_string_sized_new() instead of g_string_new() to make it compile
6155         * app/Makefile.am: including dia.ico and dia.rc in the tarball
6156         * plug-ins/wmf/wmf.cpp (set_linestyle): In WMF maximum linewidth is 1 
6157         for non-solid linestyles - otherwise custom linestyles have to be used.
6159 2003-09-02  Steffen Macke <sdteffen@web.de>
6161         * app/commands.c(help_manual_callback): using dia-manual.chm instead of 
6162         dia.chm
6164 2003-09-02  Christian Neumair  <chris@gnome-de.org>
6166         * sheets/Pneumatic.sheet.in: Slight unification fix.
6168 2003-09-02  Lars Clausen  <lrclause@cs.uiuc.edu>
6170         * config.h.win32: 
6171         * configure.in: 
6172         * dia.spec (Release): 
6173         * doc/en/dia-manual.xml: 
6174         * doc/pl/dia-manual.sgml: 
6175         * NEWS: Update to 0.92-pre1.
6177         * app/properties.c (properties_key_event): Removing Esc/Enter
6178         handling for now, interferes to much with regular dialog usage.
6180         * plug-ins/pstricks/render_pstricks.c (tex_escape_string):
6181         Function to escape special TeX characters.  Not in use yet, as
6182         PSTricks output by default is TeX strings.  Should get a save-time
6183         selector. 
6185 2008-09-01  Steffen Macke <sdteffen@web.de>
6187         * lib/paper.h: explanatory comment on width and height
6189 2003-08-30  Steffen Macke <sdteffen@web.de>
6191         * lib/color.c:
6192         * lib/color.h: made color_white, color_black static on win32
6194 2003-08-28  Lars Clausen  <lrclause@cs.uiuc.edu>
6196         * configure.in (PNG_LIBS): Something in the png tests added an
6197         extra -lpng to $LIBS.  Saving old $LIBS to avoid that.
6199 2003-08-27  Lars Clausen  <lrclause@cs.uiuc.edu>
6201         * configure.in: Quote correctly for temporarily adding freetype
6202         cflags to CPPFLAGS.
6204         * app/preferences.c (prefs_save): Remove debugging g_print.
6206 2003-08-26  Lars Clausen  <lrclause@cs.uiuc.edu>
6208         * objects/flowchart/parallelogram.c (pgram_update_data):
6209         Directions for connections, better system for placing
6210         connectionpoints. 
6212 2003-08-25  Lars Clausen  <lrclause@cs.uiuc.edu>
6214         * lib/diagramdata.c (layer_find_closest_object_except): Look all
6215         the way through the object list, so the foremost object is selected.
6217         * lib/diagramdata.h: Removing dynamic_obj.h, it should only be
6218         included for diagramdata.c.
6220         * lib/prop_text.c (multistringprop_handle_key): Attempt at making
6221         newline in multistringprop not close the dialog.  Failed so far.
6223 2003-08-25  Steffen Macke <sdteffen@web.de>
6225         * app/commands.c: using CHM instead of HTML on win32 if available
6226         * lib/diagramdata.h: including dynamic_obj.h
6228 2003-08-25  Lars Clausen  <lrclause@cs.uiuc.edu>
6230         * app/properties.c (properties_key_event): Make Enter = Ok for
6231         properties dialogs.  Still some problems with this and Esc for
6232         Cancel, for instances escaping out of a menu closes the dialog.
6234         * objects/UML/association.c (association_get_properties): 
6235         * objects/UML/class_dialog.c (class_create_page): Grab appropriate
6236         focus. 
6238         * app/diapsft2renderer.c (draw_string): Use
6239         dia_font_scaled_build_layout to ensure similarity of text.
6241         * lib/diagramdata.c: Remove obj from dynobj list when removing
6242         from layer to avoid nasty race conditions.
6244         * app/undo.c (group_objects_revert): Make sure to unparent and
6245         remove from dynobj list when changing layers objects.
6247 2003-08-23  Steffen Macke <sdteffen@web.de>
6249         * plug-ins/wmf/wmf.cpp (draw_image): replaced BitBlt() with 
6250         StretchBlt(); fixes #92249
6251         
6252 2003-08-23  Lars Clausen  <lrclause@cs.uiuc.edu>
6254         * app/filedlg.c (file_save_as_callback): 
6255         * app/preferences.h: 
6256         * app/preferences.c (prefs_data): 
6257         * lib/diagramdata.h: 
6258         * lib/diagramdata.c (new_diagram_data): 
6259         * app/load_save.c (diagram_data_load): 
6260         Let the document remember whether it was compressed.  The user can
6261         still override this in the Save As... dialog, and that will still
6262         be remembered as the default for new diagrams.
6264 2003-08-23  Steffen Macke <sdteffen@web.de>
6266         * plug-ins/xslt/Makefile.am: added dia-uml2componentlist.xsl
6268 2003-08-22  Steffen Macke <sdteffen@web.de>
6270         * plug-ins/xslt/dia-uml.xsl:
6271         * plug-ins/xslt/dia-uml2componentlist.xsl: generate a HTML file with a
6272         table containing a list of components grouped by stereotype
6274 2003-08-21  Steffen Macke <sdteffen@web.de>
6276         * lib/makefile.msc: added connectionpoint.obj
6277         * lib/libdia.def: added connpoint_update, find_slope_directions
6278         * app/disp_callbacks.c: including scroll_tool.h
6279         * obj/makefile.msc: added component_feature.obj
6280         * app/paginate_gdiprint.c: fixed loop initialization in 
6281         paginate_gdiprint(); partial fix for bug #85831 - the scaling is still
6282         wrong
6284 2003-08-21  Lars Clausen  <lrclause@cs.uiuc.edu>
6286         * plug-ins/python/pydia-object.c (PyDiaObject_MoveHandle): Fix
6287         move_handle call.
6289         * lib/diagramdata.h: Colors added to prefs.
6290         * lib/diagramdata.c (new_diagram_data): Set diagram colors from prefs.
6291         New field for pagebreak color, which should
6292         behave the same as grid color and be settable for a diagram.
6294         * app/diagram.c (diagram_init): Update diagram pagebreak color
6295         from prefs. 
6297         * app/grid.c (pagebreak_draw): Draw using diagrams pagebreak
6298         colors. 
6300         * app/preferences.[ch]: Default diagram colors now #defines, so
6301         loading can use it.  Also, colors are now in NewDiagramData, so
6302         are passed nicely into new diagrams directly from prefs.  Yum.
6304         * app/load_save.c (diagram_data_write_doc, diagram_data_load): 
6305         Support for loading and saving grid and pagebreak colors with the
6306         diagram.  I'm inclined to make all the three Colors in diagram
6307         Color*s instead, so we can tell if they're specified for the
6308         diagram or merely the default setting.  There'd be no way for the
6309         user to tell if the color of a diagram is default, though, unless
6310         we add a 'reset to default' button to prefs.
6312         * app/dia-props.c: Adding widgets for dynamic grid, grid colour,
6313         pagebreak color.  Unsensitizing grid size when dynamic.
6315         * objects/UML/component.c: Patch from Krzysztof Foltman
6316         <kfoltman@onet.pl>: Add two new connectionpoints and adjust a
6317         third.  Makes the left side connections actually be on the line
6318         (gasp!). 
6320 2003-08-20  Steffen Macke <sdteffen@web.de>
6322         * lib/libdia.def: added layer_find_closest_object_except
6323         * lib/diagramdata.c: added ; after GOTO to make MSVC compile 
6325 2003-08-20  Lars Clausen  <lrclause@cs.uiuc.edu>
6327         * app/tool.h: 
6328         * app/tool.c: 
6329         * app/scroll_tool.c: 
6330         * app/interface.c: 
6331         * app/disp_callbacks.c: 
6332         * app/create_object.h: 
6333         * app/create_object.c: Patch from Krzysztof Foltman
6334         <kfoltman@onet.pl>: Middle button can scroll transiently when
6335         menu-bar-mode is on, and mouse wheels (hopefully) can scroll in
6336         various ways.
6338         * app/authors.h: 
6339         * sheets/UML.sheet.in: 
6340         * sheets/UML/receptacle.xpm: 
6341         * sheets/UML/Makefile.am: 
6342         * sheets/UML/eventsource.xpm: 
6343         * sheets/UML/eventsink.xpm: 
6344         * objects/UML/pixmaps/facet.xpm: 
6345         * objects/UML/uml.c (dia_plugin_init): 
6346         * objects/UML/Makefile.am (libuml_objects_la_SOURCES): 
6347         * objects/UML/component_feature.c: 
6348         Patch from W. Borgert <debacle@debian.org>:  Add event sources and
6349         event sinks.
6350         
6351 2003-08-19  Lars Clausen  <lrclause@cs.uiuc.edu>
6353         * lib/object.h: Turning some comments into doxygen style.
6355         * lib/object_defaults.c (dia_object_defaults_load)
6356         (dia_object_default_get, dia_object_default_create): 
6357         Fixing up existing documentation.
6359         * lib/object.h: Doxygen style documentation begun.
6361         * app/create_object.c: 
6362         * app/undo.c: 
6363         * app/connectionpoint_ops.c: 
6364         * app/disp_callbacks.c: 
6365         * app/modify_tool.c: 
6367         * objects/network/wanlink.c (wanlink_move_handle): 
6368         * objects/network/bus.c (bus_move_handle): 
6370         * objects/flowchart/parallelogram.c (pgram_move_handle): 
6371         * objects/flowchart/ellipse.c (ellipse_move_handle): 
6372         * objects/flowchart/diamond.c (diamond_move_handle): 
6373         * objects/flowchart/box.c (box_move_handle): 
6375         * objects/custom/custom_object.c (custom_move_handle): 
6377         * objects/chronogram/chronoref.c (chronoref_move_handle): 
6378         * objects/chronogram/chronoline.c (chronoline_move_handle): 
6380         * objects/SADT/box.c (sadtbox_move_handle): 
6381         * objects/SADT/arrow.c (sadtarrow_move_handle): 
6382         * objects/SADT/annotation.c (annotation_move_handle): 
6384         * objects/Misc/analog_clock.c (analog_clock_move_handle): 
6386         * objects/GRAFCET/vergent.c (vergent_move_handle): 
6387         * objects/GRAFCET/vector.c (arc_move_handle): 
6388         * objects/GRAFCET/transition.c (transition_move_handle): 
6389         * objects/GRAFCET/step.c (step_move_handle): 
6390         * objects/GRAFCET/condition.c (condition_move_handle): 
6391         * objects/GRAFCET/action.c (action_move_handle): 
6393         * objects/FS/function.c: 
6394         * objects/FS/flow.c: 
6395         * objects/FS/flow-ortho.c (orthflow_move_handle): 
6396         * objects/FS/flow-poly.c (flow_move_handle): 
6398         * objects/UML/usecase.c (usecase_move_handle): 
6399         * objects/UML/state_term.c (state_move_handle): 
6400         * objects/UML/state.c (state_move_handle): 
6401         * objects/UML/small_package.c (smallpackage_move_handle): 
6402         * objects/UML/realizes.c (realizes_move_handle): 
6403         * objects/UML/object.c (objet_move_handle): 
6404         * objects/UML/note.c (note_move_handle): 
6405         * objects/UML/node.c (node_move_handle): 
6406         * objects/UML/message.c (message_move_handle): 
6407         * objects/UML/lifeline.c (lifeline_move_handle): 
6408         * objects/UML/large_package.c (largepackage_move_handle): 
6409         * objects/UML/implements.c (implements_move_handle): 
6410         * objects/UML/generalization.c (generalization_move_handle): 
6411         * objects/UML/fork.c (fork_move_handle): 
6412         * objects/UML/dependency.c (dependency_move_handle): 
6413         * objects/UML/constraint.c (constraint_move_handle): 
6414         * objects/UML/compprop.c (compprop_move_handle): 
6415         * objects/UML/component.c (component_move_handle): 
6416         * objects/UML/branch.c (branch_move_handle): 
6417         * objects/UML/association.c (association_move_handle): 
6418         * objects/UML/actor.c (actor_move_handle): 
6419         * objects/UML/activity.c (state_move_handle): 
6420         * objects/UML/class.c (umlclass_move_handle): 
6422         * objects/standard/ellipse.c (ellipse_move_handle): 
6423         * objects/standard/zigzagline.c (zigzagline_move_handle): 
6424         * objects/standard/textobj.c (textobj_move_handle): 
6425         * objects/standard/polyline.c (polyline_move_handle): 
6426         * objects/standard/polygon.c (polygon_move_handle): 
6427         * objects/standard/line.c (line_move_handle): 
6428         * objects/standard/image.c (image_move_handle): 
6429         * objects/standard/bezier.c (bezierline_move_handle): 
6430         * objects/standard/arc.c (arc_move_handle): 
6431         * objects/standard/beziergon.c (beziergon_move_handle): 
6432         * objects/standard/box.c (box_move_handle): 
6433         
6434         * objects/ER/relationship.c (relationship_move_handle): 
6435         * objects/ER/participation.c (participation_move_handle): 
6436         * objects/ER/entity.c (entity_move_handle): 
6437         * objects/ER/attribute.c (attribute_move_handle): 
6438         
6439         * lib/polyshape.c (polyshape_move_handle): 
6440         * lib/polyshape.h: 
6441         * lib/orth_conn.c (orthconn_move_handle): 
6442         * lib/orth_conn.h: 
6443         * lib/neworth_conn.c (neworthconn_move_handle): 
6444         * lib/neworth_conn.h: 
6445         * lib/element.c (element_move_handle): 
6446         * lib/element.h: 
6447         * lib/connection.c (connection_move_handle): 
6448         * lib/connection.h: 
6449         * lib/beziershape.c (beziershape_move_handle): 
6450         * lib/beziershape.h: 
6451         * lib/bezier_conn.c (bezierconn_move_handle): 
6452         * lib/bezier_conn.h: 
6453         *BINARY COMPATIBILITY CHANGE*
6454         Update prototype for *_move_handle() to include connectionpoint,
6455         and also pass on modifiers.  Pass in connectionpoint where
6456         applicable. 
6457         
6458         * lib/dummy_dep.h (dummy_dep): Adding dummy dependencies for new
6459         file connectionpoint.c.
6461 2003-08-17  Danilo Å egan  <dsegan@gmx.net>
6463         * configure.in: Added "sr" and "sr@Latn" to ALL_LINGUAS.
6465 2003-08-15  Lars Clausen  <lrclause@cs.uiuc.edu>
6467         * lib/object.c (object_copy): Use g_malloc0 instead of g_malloc.
6469         * lib/beziershape.c (beziershape_update_data): Autoroute
6470         directions for beziershapes!
6472         * lib/connectionpoint.c (find_slope_directions): 
6473         * lib/connectionpoint.h: Function for finding the available
6474         directions on a slope.
6476         * lib/polyshape.c: Reasonable directions for
6477         connectionpoints.       
6479 2003-08-14  Lars Clausen  <lrclause@cs.uiuc.edu>
6481         * objects/Misc/analog_clock.c (analog_clock_update_arrow_tips): 
6482         * objects/GRAFCET/vergent.c (vergent_update_data): 
6483         * objects/GRAFCET/transition.c (transition_update_data): 
6484         * objects/GRAFCET/action.c (action_update_data): 
6485         * objects/GRAFCET/step.c (step_update_data): 
6486         * objects/FS/function.c (function_update_data): 
6487         * lib/connpoint_line.c (connpointline_putonaline): 
6488         * objects/ER/attribute.c (attribute_update_data): 
6489         * objects/ER/entity.c (entity_update_data): 
6490         * objects/ER/relationship.c (relationship_update_data): 
6491         * objects/chronogram/chronoline.c (chronoline_update_data): Set
6492         directions for connection points.
6494         * objects/UML/component.c (component_create): Set to allow
6495         parenting. 
6497         * app/create_object.c (create_object_button_press): 
6498         * app/diagram.[ch] (diagram_find_clicked_object_except): 
6499         * lib/diagramdata.[ch] (layer_find_closest_object_except): 
6500         Avoid parenting to objects you're connecting to (otherwise you
6501         couldn't make a connection out of a parenting object).  To do
6502         this, added functions to find the nearest object except a given
6503         list of objects.
6504         
6505         * app/render_libart.c: Rearrange libart include to avoid multiple
6506         include program (and put libart includes inside #ifdef!)
6508 2003-08-13  Lars Clausen  <lrclause@cs.uiuc.edu>
6510         * lib/dialibartrenderer.c: Don't include art_config.h if others
6511         also do, as it isn't #ifdef'd.
6513         * objects/flowchart/ellipse.c (ellipse_update_data): Add
6514         directions for connection points.
6516 2003-08-12  Lars Clausen  <lrclause@cs.uiuc.edu>
6518         * objects/flowchart/box.c (box_update_data): Add directions, use
6519         connpoint_update. 
6520         (box_load): Use g_malloc0.
6522         * lib/Makefile.am (libdia_la_SOURCES):
6523         * lib/connectionpoint.c (connpoint_update): 
6524         Function to call to update a connection point info in _update_data().
6525         
6526         * lib/connectionpoint.h: Convenience DIR_ macros.
6528         * app/preferences.c (prefs_data): Make pretty formatted XML the
6529         default.
6531         * lib/dialibartrenderer.c: 
6532         * app/render_libart.c: Make sure art_config.h is included, cause
6533         some libart headers are broken.
6535         * configure.in (HAVE_FREETYPE): Restore CPPFLAGS to old value
6536         after test.  Add freetype-config cflags to cflags variable.
6538 2003-08-11  Lars Clausen  <lrclause@cs.uiuc.edu>
6540         * app/authors.h: Credits for Krzysztof.
6542         * sheets/Flowchart.sheet.in: Updated descriptions from Krzysztof
6543         Foltman <kfoltman@onet.pl>.  It occurs to me that the name (rather
6544         than the description) is visible in the title of the properties
6545         dialog.  That ought to be a short description (translatable),
6546         though we still want long descriptions for the tooltips.  Hmmm...
6548         * configure.in: Updated to use AC_LINK_IFELSE instead of
6549         AC_TRY_COMPILE, also force to link to check libs on Solaris.
6551         * objects/ER/entity.c (entity_load): 
6552         * objects/ER/attribute.c (attribute_load): 
6553         * lib/attributes.c (attributes_set_default_font): 
6554         Check if font is non-null before unreffing.
6555         
6556 2003-08-08  Lars Clausen  <lrclause@cs.uiuc.edu>
6558         * app/diagram.c (diagram_ungroup_selected) 
6559         (diagram_group_selected): Use the undo apply to make sure grouping
6560         and ungrouping is done in consistent manners.  This removes a fair
6561         amount of duplicated code from diagram.c.
6563         * app/undo.c (ungroup_objects_revert, ungroup_objects_apply) 
6564         (group_objects_revert, group_objects_apply): Working undo/redo for
6565         diagram tree updates.  The initial actions still don't quite work.
6567 2003-08-07  Lars Clausen  <lrclause@cs.uiuc.edu>
6569         * app/create_object.c (create_object_button_press): 
6570         * app/undo.[ch]: 
6571         * app/diagram.c: Undo support for parenting.  Uses apply/revert in
6572         undo only for manipulating the parent/child relationships.  Things
6573         like removing an object doesn't use the undo functions for
6574         parenting, so any updates to come (like to diagramtree) should be
6575         done in those, too.
6577 2003-08-03  Hans Breuer  <hans@breuer.org>
6579         * app/create_object.c : minor formating and g_new0 for
6580         tool creation
6582         * lib/bezier_conn.[hc] lib/beziershape.[hc]
6583           lib/prop_geomtypes.c (prop_geomtypes_register)
6584           objects/standard/bezier.c objects/standard/beziergon.c :
6585         ability to set bezpoints via StdProp api
6587         * plug-ins/python/pydia-property.c : convert list of tuples
6588         to BEZPOINTARRAY
6590         *  plug-ins/python/diasvg_import.py : use it to
6591         implement part of path parsing. Also minor improvements
6592         like inheritance of group attributes to members,
6593         whitespace, title and style:text/css ignoring ;-)
6595 2003-08-02  Hans Breuer  <hans@breuer.org>
6597         * lib/connections.c (connection_move_handle): return
6598         something to make it compile
6599         * lib/object.c(190) : error C4033: 'object_list_move_delta_r' 
6600         must return a value -> dito
6601         [Is there a warnings-as-errors switch we could use with gcc 
6602          to avoid such in future ?]
6604         * plug-ins/python/pydia-object.h : define *_Check macros
6605         * plug-ins/python/diamodule.c : provide dia.group_create()
6606         * plug-ins/python/pydia-diagramdata.c : add 
6607         DiaDiagramData.add_layer()
6608         * plug-ins/python/pydia-property.c : allow to set color by
6609         tuple of doubles
6611         *  plug-ins/python/diasvg_import.py : based on the above
6612         implement a) group support, b) rgb(1,2,3) color handling,
6613         and somewhat fishy data:image/png;base64 support (create
6614         temporary files from inline image data)
6615         d) dump the import errors as text into an 'Error' layer
6617         *  plug-ins/python/diasvg.py : add xmlns:xlink, removed a
6618         stray " in draw_rect and corrected error message formating 
6620         * plug-ins/pydia/pydia-geometry.c : removed ## to make it
6621         compile with gcc 3.3, fixes bug #117204. Thanks to Daniel 
6622         Jacobowitz.
6623         
6624 2003-08-01  Hubert Figuiere  <hfiguiere@teaser.fr>
6626         * app/magnify.c (create_magnify_tool): allocate with g_new0()
6628         * app/preferences.c (prefs_create_dialog): use checkboxes for boolean 
6629         preferences values (see bug 118570). Also group items into a GtkFrame.
6631 2003-07-31  Lars Clausen  <lrclause@cs.uiuc.edu>
6633         * app/menus.c:
6634         * app/menus.h:
6635         * app/commands.h: 
6636         * app/commands.c (objects_unparent_children_callback): 
6637         * app/diagram.h: 
6638         * app/diagram.c (diagram_unparent_selected,
6639         (diagram_update_menu_sensitivity): 
6640         Added unparenting of single children.
6642         * lib/bezier_conn.c:
6643         * lib/bezier_conn.h:
6644         * lib/beziershape.c:
6645         * lib/beziershape.h:
6646         * lib/connection.c:
6647         * lib/connection.h:
6648         * lib/element.c:
6649         * lib/element.h:
6650         * lib/group.c:
6651         * lib/neworth_conn.c:
6652         * lib/neworth_conn.h:
6653         * lib/object.h:
6654         * lib/orth_conn.h:
6655         * lib/poly_conn.c:
6656         * lib/poly_conn.h:
6657         * lib/polyshape.c:
6658         * lib/polyshape.h:
6659         * objects/EML/instantiation.c:
6660         * objects/EML/interaction-ortho.c:
6661         * objects/EML/interaction.c:
6662         * objects/EML/process.c:
6663         * objects/ER/attribute.c:
6664         * objects/ER/entity.c:
6665         * objects/ER/participation.c:
6666         * objects/ER/relationship.c:
6667         * objects/FS/flow-ortho.c:
6668         * objects/FS/flow-poly.c:
6669         * objects/FS/flow.c:
6670         * objects/FS/function.c:
6671         * objects/GRAFCET/action.c:
6672         * objects/GRAFCET/condition.c:
6673         * objects/GRAFCET/step.c:
6674         * objects/GRAFCET/transition.c:
6675         * objects/GRAFCET/vector.c:
6676         * objects/GRAFCET/vergent.c:
6677         * objects/Misc/analog_clock.c:
6678         * objects/SADT/annotation.c:
6679         * objects/SADT/arrow.c:
6680         * objects/SADT/box.c:
6681         * objects/UML/activity.c:
6682         * objects/UML/actor.c:
6683         * objects/UML/association.c:
6684         * objects/UML/branch.c:
6685         * objects/UML/class.c:
6686         * objects/UML/classicon.c:
6687         * objects/UML/component.c:
6688         * objects/UML/constraint.c:
6689         * objects/UML/dependency.c:
6690         * objects/UML/fork.c:
6691         * objects/UML/generalization.c:
6692         * objects/UML/implements.c:
6693         * objects/UML/large_package.c:
6694         * objects/UML/lifeline.c:
6695         * objects/UML/message.c:
6696         * objects/UML/node.c:
6697         * objects/UML/note.c:
6698         * objects/UML/object.c:
6699         * objects/UML/realizes.c:
6700         * objects/UML/small_package.c:
6701         * objects/UML/state.c:
6702         * objects/UML/state_term.c:
6703         * objects/UML/usecase.c:
6704         * objects/chronogram/chronoline.c:
6705         * objects/chronogram/chronoref.c:
6706         * objects/custom/custom_object.c:
6707         * objects/flowchart/box.c:
6708         * objects/flowchart/diamond.c:
6709         * objects/flowchart/ellipse.c:
6710         * objects/flowchart/parallelogram.c:
6711         * objects/network/bus.c:
6712         * objects/network/wanlink.c:
6713         * objects/standard/arc.c:
6714         * objects/standard/bezier.c:
6715         * objects/standard/beziergon.c:
6716         * objects/standard/box.c:
6717         * objects/standard/ellipse.c:
6718         * objects/standard/image.c:
6719         * objects/standard/line.c:
6720         * objects/standard/polygon.c:
6721         * objects/standard/polyline.c:
6722         * objects/standard/textobj.c:
6723         * objects/standard/zigzagline.c:
6724         Binary compatibility update:  Added return value for foo_move() and
6725         foo_move_handle().  Orthconn derivatives also returns change from
6726         orthconn_move_handle().
6727         
6728         * lib/orth_conn.c: Undo support for autorouting.  Neworthconn
6729         doesn't support it yet.
6731         * lib/object.c (object_list_move_delta_r, object_list_move_delta):
6732         Add returning ObjectChange from object moves.  Needs to handle
6733         multiple object moves.
6735         * app/modify_tool.c (modify_motion, modify_release): Add
6736         ObjectChange from move & move_handle to undo stack.
6738         * objects/EML/instantiation.c (instantiation_move): Removing
6739         duplicate move & update.
6741 2003-07-30  Lars Clausen  <lrclause@cs.uiuc.edu>
6743         * plug-ins/xfig/xfig-export.c: Added support for arrow head
6744         export.  Many arrow types not supported by XFig, replacing those
6745         with standard arrows.  Not sure whether it'd be better to render
6746         them as a group of lines instead.  You'd lose the arrow-ness for
6747         further editing, but preserve the actual shape of it.  Also added
6748         support for dash length.
6750         * plug-ins/xfig/xfig-import.c: Added support for dash length settings.
6752         * plug-ins/xfig/fig-format-3.2: Added copy of Fig format
6753         description for version 3.2, for reference.
6755         * plug-ins/xfig/xfig-import.c: Added import of arrows.
6757         * app/menus.c: Removed prefs item from Gnome diagram menu.  Made
6758         Align Vertical Adjacent call _v rather than _h.
6760 2003-07-29  Hubert Figuiere  <hfiguiere@teaser.fr>
6762         * app/scroll_tool.c (create_scroll_tool): 
6763         * app/modify_tool.c (create_modify_tool): use g_new0() to
6764         initialize the tool
6766 2003-07-29  Lars Clausen  <lrclause@cs.uiuc.edu>
6768         * configure.in: Added proper settings for XSLT_LIBS and XSLT_CFLAGS.
6770 2003-07-24  Pablo Saratxaga  <pablo@mandrakesoft.com>
6772         * configure.in: Added Macedonian (mk) to ALL_LINGUAS
6774 2003-07-23  Dmitry G. Mastrukov  <dmitry@taurussoft.org>
6776         * configure.in: Added Belarusian to ALL_LINGUAS.
6778 2003-07-19  Hans Breuer  <hans@breuer.org>
6780         [
6781          Make the xslt plug-in work on win32, too. It appears
6782          to require a quite recent version of libxml and libxslt,
6783          otherwise windoze pathes aren't translated correctly
6784          during file processing
6785         ]
6787         * plug-ins/xslt/xslt.h : #include <glib.h> before 
6788         using G_OS_WIN32
6790         * plug-ins/xslt/xslt.c : plugged some memory leaks and do
6791         the 'script' file finding similar to how it is done
6792         with the python scripts (no need for hardcoded pathes,
6793         removed the 'plugin' part from the path)
6795         * plug-ins/xslt/stylesheets.xml : added again. It does
6796         not have any path but only the pure filename again
6798         * plug-ins/xslt/stylesheets.xml.in : removed
6800         * plug-ins/xslt/Makefile.am : removed 'plugin' and the
6801         rule to process stylesheets.xml.in
6803         * plug-ins/makefile.msc : added xslt
6805 2003-07-19  Hans Breuer  <hans@breuer.org>
6807         Finally Dia learned to remember the recent selected sheet
6809         * app/preferences.[hc] : added prefs.recent_sheet
6810         * app/interface.c : restore and remember the sheet-option-menu
6811         history, but only if the respective number is stiil available.
6812         This additional adds robustness against running Dia without
6813         any sheet (e.g. installation problems)
6814         * app/app_procs.c : call prefs_safe() in app_exit() to remember
6815         changes which are not done by the prefernces dialog
6817         * app/diagram_tree_menu.c app/diagram_tree_menu_callbacks.c :
6818         removed every call (especially the conditional ones) to prefs_safe().
6819         Before prefs_safe() was called _many_ times during Dia startup
6821 2003-07-18  Hans Breuer  <hans@breuer.org>
6823         * app/makefile.msc lib/makefile.msc lib/libdia.def :
6824         updated win32 build
6826         * lib/color.c : use gtk_widget_get_default_visual();
6827         as suggested in #114536
6829         * app/interface.c app/disp_callbacks.c :
6830         moved round_up () to the latter file where it is used
6832         * app/linewidth_area.c : #include "interface.h" for
6833         interface_get_toolbox_shell()
6835 2003-07-18  Hubert Figuiere  <hfiguiere@teaser.fr>
6837         * plug-ins/pixbuf/.cvsignore
6838         * shapes/Cisco/.cvsignore: 
6839         added cvsignore
6841 2003-07-17  Lars Clausen  <lrclause@cs.uiuc.edu>
6843         * app/dia-props.c (diagram_properties_retrieve): Use
6844         diagram_get_name() to add the diagram name to the diagram
6845         properties dialog.
6847         * app/diagram.h: 
6848         * app/diagram.c (diagram_get_name): New function to get a
6849         reasonable diagram name.
6851         * lib/diagramdata.h: Added major_lines, dynamic and colour to grid
6852         info.  Still need to be able to set dynamic grid.  Also ought to
6853         follow Gnome style and have instant apply.
6855         * app/preferences.h: 
6856         * app/preferences.c (prefs_data): Remove option to use stippled
6857         grid, add option for major line offset.  Default to 5 minor lines
6858         per major line.
6859         Add option for dynamically sized grid.
6861         * app/display.c (ddisplay_render_pixmap): Call pagebreak_draw as well.
6863         * app/grid.c: Pagebreak drawing separated out.  Grid drawing using
6864         stippled/solid to display minor/major grid lines.  Line drawing in
6865         separate functions away from calculating line distance.
6867         * app/grid.h: Split page break drawing out of grid_draw.
6869         * app/layer_dialog.c (layer_dialog_show): Patch from Hubert
6870         Figuiere <hfiguiere@teaser.fr>:  Layer dialog show go to front
6871         when menu item is selected.
6873 2003-07-15  Lars Clausen  <lrclause@cs.uiuc.edu>
6875         * configure.in: Removed -Winline flag to make way for important
6876         warnings. 
6878         * samples/UML-demo.dia: Adjusted for 0.91 font size, saved as
6879         non-compressed.  Should fix bug #117381, also look prettier.
6880         
6881         * Makefile.am: 
6882         * dia.desktop.in: Patch from Mark McLoughlin <mark@skynet.ie>:
6883         Set up desktop info more properly.
6885 2003-07-13  Lars Clausen  <lrclause@cs.uiuc.edu>
6887         * activity.c:
6888         * actor.c:
6889         * branch.c:
6890         * class.c:
6891         * classicon.c:
6892         * component.c:
6893         * large_package.c:
6894         * lifeline.c:
6895         * node.c:
6896         * note.c:
6897         * object.c:
6898         * small_package.c:
6899         * state.c:
6900         * state_term.c:
6901         * usecase.c: 
6902         Autorouting directions patch from Krzysztof Foltman
6903         <kfoltman@onet.pl>.
6905         * app/menus.c: Wrong GNOME paren fixed.  Correct callbacks for
6906         GNOME parent menu items.
6907         
6908         * app/authors.h: Added Vadim to contributors list.
6910 2003-07-12  Lars Clausen  <lrclause@cs.uiuc.edu>
6912         * app/commands.[ch]: 
6913         * app/create_object.c: 
6914         * app/disp_callbacks.[ch]: 
6915         * app/diagram.[ch]: 
6916         * app/interface.c: 
6917         * app/load_save.c: 
6918         * app/menus.[ch]:
6919         * app/modify_tool.c
6920         * app/undo.[ch]:
6921         * lib/Makefile.am:
6922         * lib/group.c: 
6923         * lib/object.[ch]: 
6924         * lib/parent.[ch]:
6925         * objects/UML/large_package.c: Patch from Vadim Berezniker
6926         <vadim@berezniker.com>: 
6927         Objects may "parent" other objects, i.e. contain them within
6928         themselves, restrain them and move them along.  Some more stuff is
6929         needed, such as selection and individual unparenting.  This adds
6930         parenting to UML - Large Package rather than Box.
6932 2003-07-11  Lars Clausen  <lrclause@cs.uiuc.edu>
6934         * app/linewidth_area.c: Patch from Krzysztof Foltman
6935         <kfoltman@onet.pl>: Make linewidth dialog conform to HIG (well,
6936         conform more, at least:).
6938         * plug-ins/metapost/render_metapost.[ch] : Applied patch from
6939         Chris Sperandio <sperandi@eng.usf.edu>:  Fixed linewidths and
6940         arcs.  Implemented images (though there is some pixelization and
6941         banding in the output).  Changed output file format to be a little
6942         more readable.  
6944         * app/app_procs.c (app_exit): Added message for double exit, which
6945         shouldn't happen any more.  Also preventing strange g_object_unref
6946         messages by having a printf after gtk_main_quit.  This is really
6947         weird.
6949         * app/interface.c (toolbox_delete): Avoid double app_exit call by
6950         removing handler for destroy when delete is called.
6952 2003-07-07  Lars Clausen  <lrclause@cs.uiuc.edu>
6954         * app/display.h: 
6955         * app/display.c (ddisplay_scroll_to_object,
6956         ddisplay_scroll_center_point):  New function for easy scrolling to
6957         object or point.
6959 2003-07-06  Lars Clausen  <lrclause@cs.uiuc.edu>
6961         * plug-ins/xslt/Makefile.am: Patch from Hubert Figuiere:  Add
6962         $(srcdir) on stylesheets.xml.
6964         * app/menus.c: Patch from Hubert Figuiere: Adds help menu to
6965         diagram menus (since they're at the top by default now).  Also
6966         move the Properties... menu item from Dialogs to Objects.  Dialogs
6967         menu should disappear at some point.
6969         * autogen.sh: Patch from Hubert Figuiere: Don't automatically call
6970         ./configure from ./autogen.sh, as configure may need to be run
6971         from a different directory.  (Also more standard this way.)
6973         * app/app_procs.c (app_init): 
6974         * app/Makefile.am (INCLUDES): Gnome standardization patch from
6975         Alex. 
6977 2003-07-03  Lars Clausen  <lrclause@cs.uiuc.edu>
6979         * objects/flowchart/parallelogram.c (pgram_update_data):
6980         Left/right alignment for parallelograms.  Doesn't use all
6981         available space, but then pgrams also ignore their shear value.
6982         This thing needs a loving hand.
6984 2003-07-01  Hans Breuer  <hans@breuer.org>
6986         * lib/properties.h : introduce PROP_FLAG_OPTIONAL
6987         * lib/proplist.c : don't complain if optional attr is missing
6988         * lib/orth_conn.h : make "orth_autoroute" optional to
6989         stop complaining with older files.
6991 2003-06-13  Guntupalli Karunakar  <karunakar@freedomink.org>
6993         * configure.in: Added "ml" for Malayalam in ALL_LINGUAS.
6995 2003-06-05  Andrew Halper  <ashalper@cox.net>
6997         * app/diagram_tree.c : add scrolling of drawing area
6998         to desired object on "Locate".  Patch modified to use new ddisplay
6999         function ddisplay_scroll_to_object().
7001 2003-06-11  Lars Clausen  <lars@raeder.dk>
7003         * lib/diagramdata.h: Added major_lines, dynamic and colour to grid
7004         info.  Before next version, the grid dialog (view dialog, really)
7005         must be redone to allow a) instant apply, b) apply to all
7006         diagrams, and c) setting colour, dynamic, major lines.
7008         * app/preferences.h: 
7009         * app/preferences.c (prefs_data): Remove option to use stippled
7010         grid, add option for major line offset.  Default to 5 minor lines
7011         per major line.
7012         Add option for dynamically sized grid.
7014         * app/display.c (ddisplay_render_pixmap): Call pagebreak_draw as well.
7016         * app/grid.c: Pagebreak drawing separated out.  Grid drawing using
7017         stippled/solid to display minor/major grid lines.  Line drawing in
7018         separate function away from calculating line distance.
7020         * app/grid.h: Split page break drawing out of grid_draw.
7022 2003-05-15  Hans Breuer  <hans@breuer.org>
7024         * plug-ins/python/diasvg.py : add xlink definition,
7025         also avoid to put spaces into attribute values. At least
7026         Sodipodi doesn't like them in width/height attributes
7028         * plug-ins/python/diasvg_import.py : add simple scaling.
7029         Some (more) handling for <svg>, <desc>, <circle>        
7031         * plug-ins/python/scascale.py : (new file) which does
7032         some experimental scaling via StdProp api
7034         * plug-ins/python/pydia-cpoint.c 
7035           plug-ins/python/pydia-handle.c : return PyDiaPoint for
7036         obj.pos not simple tuples. PyDiaPoint has a tuple interface
7037         so this may even be api compatible ...
7039 2003-05-11  Hans Breuer  <hans@breuer.org>
7041         * app/line_area.c : add window position persitence
7043         * lib/poly_conn.[hc] lib/polyshape.[hc] : allow to set 
7044         'poly_points' via StdProp api
7045         * lib/neworth_conn.h : don't rely on OrthConn and 
7046         NewOrtConn having the same struct offsets
7048         * lib/properties.h : introduce PROP_FLAG_WIDGET_ONLY
7049         to help separating 'useful' properies - in terms of
7050         the PyDia access
7052         * objects/custom/custom_object.c
7053           objects/UML/*.c
7054         add the missing prop_desc_list_calculate_quarks to
7055         all the *_describe_props()
7057         * objects/standard/beziergon.c objects/standard/bezier.c :
7058         explicit initializtion of default_user_data
7059         * objects/standard/polygon.c objects/standard/polyline.c :
7060         Same here. Also use POLY<CONN|SHAPE>_COMMON_PROPERTIES
7062         * plug-ins/python/diamodule.c : implement dia.register_import
7064         * plug-ins/python/makefile.msc : need to link with Pango
7065         for pango_color_parse()
7067         * plug-ins/python/pydia-property.c : add a bunch of type
7068         conversions to PyDiaProperty_ApllyToObject()
7070         * plug-ins/python/diasvg_import.py : (new file) which currently
7071         is mainly a stress test for PyDia but for some files already
7072         produces better results than svg-import.c
7074 2003-05-06  Lars Clausen  <lrclause@cs.uiuc.edu>
7076         * objects/UML/uml.c (uml_get_operation_string): Avoid ':' on
7077         type-less operations.
7079 003-05-03  Hasbullah Bin Pit  <sebol@ikhlas.com>
7081         * configure.in(ALL_LINGUAS): Added "ms".
7083 2003-05-01  Lars Clausen  <lrclause@cs.uiuc.edu>
7085         * plug-ins/xslt/xslt.c (xslt_ok): 
7086         * plug-ins/shape/shape-export.c (new_shape_renderer): 
7087         * plug-ins/svg/render_svg.c (new_svg_renderer): 
7088         * plug-ins/hpgl/hpgl.c (export_data): 
7089         * plug-ins/dxf/dxf-export.c (export_dxf): 
7090         * plug-ins/metapost/render_metapost.c (export_metapost): 
7091         * plug-ins/pstricks/render_pstricks.c (export_pstricks): 
7092         * plug-ins/xfig/xfig-export.c (export_fig): 
7093         * plug-ins/wpg/wpg.c (export_data): 
7094         * plug-ins/cgm/cgm.c (export_cgm): 
7095         * app/render_eps.c (export_eps): 
7096         * app/export_png.c (export_png_ok): 
7097         * app/load_save.c (diagram_data_save): Adding and standardizing
7098         output file error messages to include fopen error message.
7100 2003-05-01  Steffen Macke <sdteffen@web.de>
7102         * app/persistence.c: do not use unistd.h for MSVC build
7104 2003-04-30  Lars Clausen  <lrclause@cs.uiuc.edu>
7106         * sheets/Assorted.sheet.in
7107         * sheets/Circuit.sheet.in
7108         * sheets/Contact.sheet.in
7109         * sheets/EML.sheet.in
7110         * sheets/ER.sheet.in
7111         * sheets/Electric.sheet.in
7112         * sheets/FS.sheet.in
7113         * sheets/Flowchart.sheet.in
7114         * sheets/GRAFCET.sheet.in
7115         * sheets/Logic.sheet.in
7116         * sheets/MSE.sheet.in
7117         * sheets/Misc.sheet.in
7118         * sheets/Pneumatic.sheet.in
7119         * sheets/SADT.sheet.in
7120         * sheets/SDL.sheet.in
7121         * sheets/UML.sheet.in
7122         * sheets/chronogram.sheet.in
7123         * sheets/ciscohub.sheet.in
7124         * sheets/ciscomisc.sheet.in
7125         * sheets/cisconetwork.sheet.in
7126         * sheets/ciscorouter.sheet.in
7127         * sheets/civil.sheet.in
7128         * sheets/network.sheet.in
7129         * sheets/sybase.sheet.in:
7130         Patch from Jan-Willem Harmanny <jwharmanny@zeelandnet.nl>
7131         standardizes shape descriptions to use no articles, no 'create
7132         ...'.
7133         
7134         * app/interface.c (tool_data): Standard objects follow same
7135         standard as sheets.
7137 2003-04-29  Lars Clausen  <lrclause@cs.uiuc.edu>
7139         * app/color_area.c (color_area_edit): More informative title on
7140         color selection dialog.
7142         * app/disp_callbacks.c (ddisplay_drop_object): Update menu
7143         sensitivity when dropping object in.  Also reset tool to pointer.
7145         * objects/flowchart/diamond.c (diamond_update_data): 
7146         * objects/flowchart/parallelogram.c (pgram_update_data): Added
7147         left and right alignment options.
7149 2003-04-28  Lars Clausen  <lrclause@cs.uiuc.edu>
7151         * objects/flowchart/box.c: Added left and right alignment options.
7153 2003-04-26  Lars Clausen  <lrclause@cs.uiuc.edu>
7155         * app/persistence.c (persistence_load): Test existence of
7156         persistence file before trying to open it.
7158 2003-04-25  Lars Clausen  <lrclause@cs.uiuc.edu>
7160         * app/properties.c: Escape now closes properties dialogs.
7162 2003-04-25  Hans Breuer  <hans@breuer.org>
7164         * app/config.h.win32 : bump version to 0.91+cvs
7166         * app/makefile.msc lib/makefile.msc lib/libdia.def : updated
7168         * lib/dia_dirs.c : G_OS_WIN32: #define mkdir(s,a) _mkdir(s)
7170         * app/commands.c : don't leak "netscape" if getenv("BROWSER")
7171         returns NULL
7173         * app/presistence.c : need to #include "dia_xml_libxml.h"
7174         for xmlDiaParseFile
7176         * app/layer_dialog.c : make delayed creation work by protecting
7177         all non static layer_dialog_*() with :
7178            if (layer_dialog == NULL || layer_dialog->dialog == NULL)
7179              create_layer_dialog();
7180         * app/app_procs.c : removed /* create_layer_dialog(); */
7182         * objects/uml/association.c : give it a minimal StdProp
7183         implementation to fix bug #108896
7184         * lib/object_defaults.c : don't try to copy props if there
7185         is no obj->ops->describe_props
7187 2003-04-24  Lars Clausen  <lrclause@cs.uiuc.edu>
7189         * objects/standard/image.c (image_create): 
7190         * objects/standard/ellipse.c (ellipse_create): 
7191         * objects/standard/box.c (box_create): 
7192         * objects/flowchart/ellipse.c (ellipse_create): 
7193         * objects/flowchart/diamond.c (diamond_create): 
7194         * objects/flowchart/box.c (box_create): 
7195         * objects/custom/custom_object.c (custom_create): 
7196         * objects/ER/relationship.c (relationship_create): 
7197         * objects/ER/entity.c (entity_create): 
7198         * objects/ER/attribute.c (attribute_create): Initialize
7199         elem->height to DEFAULT_HEIGHT instead of DEFAULT_WIDTH.
7201         * lib/dia_svg.c (dia_svg_parse_style): Added case to set center
7202         alignment. 
7204         * configure.in: 
7205         * plug-ins/Makefile.am: 
7206         * plug-ins/xslt/Makefile.am: 
7207         * plug-ins/xslt/xslt.c (dia_plugin_init): 
7208         Patch from Götz Waschk <waschk@informatik.uni-rostock.de> uses
7209         automake-style if to only include xslt dir when needed.  Works
7210         with automake 1.4 and up, at least.
7212 2003-04-22  Lars Clausen  <lrclause@cs.uiuc.edu>
7214         * lib/diasvgrenderer.c (draw_string): 
7215         * lib/dia_svg.c (dia_svg_parse_style): Use
7216         text-anchor:(start|middle|end).
7218         * lib/diasvgrenderer.c (draw_polygon, fill_polygon): Use svg
7219         polygon rather than polyline & avoid missing line pieces.
7220         (get_draw_style): Set fill-opacity to 0 on draw_style to avoid
7221         black-filled things.
7223 2003-04-21  Lars Clausen  <lrclause@cs.uiuc.edu>
7225         * app/persistence.c (persistence_load): Check that persistence
7226         file exists before trying to read it.
7227         (persistence_update_window): Removed printf.
7229         * objects/GRAFCET/step.c: Don't copy defaults for name and id.
7231         * lib/autoroute.c: Take badness into the layouters again, as some
7232         of them know they can do things that are pretty but would be
7233         counted as ugly by the default calculation.
7235         * objects/UML/large_package.c: Shrink package name box when no
7236         stereotype is present.
7238         * lib/orth_conn.h (ORTHCONN_COMMON_MENUS): 
7239         * lib/orth_conn.c: Added object menu item for autorouting.
7241         * objects/FS/flow-ortho.c (orthflow_get_object_menu): 
7242         Autorouting, plus set initial dragging handle to be the end, not
7243         the middle.
7244         (orthflow_draw): Flipped arrow place to be at the end, as
7245         originally intended (got lost in arrow update).
7247         * objects/standard/zigzagline.c (zigzagline_get_object_menu): 
7248         * objects/UML/dependency.c (dependency_get_object_menu): 
7249         * objects/UML/association.c (association_get_object_menu): 
7250         * objects/UML/realizes.c (realizes_get_object_menu): 
7251         * objects/SADT/arrow.c (sadtarrow_get_object_menu): 
7252         * objects/GRAFCET/vector.c (arc_get_object_menu): 
7253         * objects/ER/participation.c (participation_get_object_menu): 
7254         * objects/EML/instantiation.c (instantiation_get_object_menu): 
7255         * objects/UML/generalization.c (generalization_get_object_menu): 
7256         * objects/EML/interaction-ortho.c (interaction_ortho_get_object_menu): 
7257         Autorouting setup (currently disabled for SADT/arrow).
7258         
7259 2003-04-19  Lars Clausen  <lrclause@cs.uiuc.edu>
7261         * lib/autoroute.c: Removed printfs.
7263         * lib/orth_conn.c: 
7264         * lib/autoroute.[ch] (autoroute_layout_orthconn): Handle
7265         non-connected orthconns too.
7267 2003-04-18  Lars Clausen  <lrclause@cs.uiuc.edu>
7269         * lib/orth_conn.h: 
7270         * lib/orth_conn.c: Function to set autorouting on/off, use
7271         autorouting in move_handle (turns off when a middle handle is
7272         moved), added to standard orthconn props. 
7274         * app/disp_callbacks.c (create_object_menu, popup_object_menu):
7275         Stopped signal emission for check menu items being set to on/off.
7277         * objects/standard/zigzagline.c: Added autorouting object menu item.
7279         * lib/autoroute.c: Added last cases of autoroute layout, fixed
7280         floating point comparison bug, cleaned up layouters, tweaked
7281         badness to allow kinks. 
7283 2003-04-17  Lars Clausen  <lrclause@cs.uiuc.edu>
7285         * lib/connectionpoint.h: Changed DIR_* macros to go around the
7286         clock. 
7288         * lib/orth_conn.[ch] (orthconn_set_points): New function to set all
7289         points at once.
7290         * objects/standard/zigzagline.c (zigzagline_move_handle): Removed
7291         old cruft, added call to autoroute (currently cannot be turned
7292         off).  Need to check what undo thinks about this.
7293         * lib/autoroute.[ch]: Fairly working simple layout.
7295         * lib/Makefile.am (libdia_la_SOURCES): Added autoroute files.
7296         * lib/autoroute.[ch]: Start of proper autorouting functionality.
7298 2003-04-10  Lars Clausen  <lrclause@cs.uiuc.edu>
7300         * lib/prop_widgets.c: Show labels on ListProp.
7302 2003-04-11  Steffen Macke <sdteffen@web.de>
7304         * doc/en/dia-manual.xml: removed reference of non-existing authors 
7305         note.
7306         * doc/en/usage-objects-selecting: commented out misleading section
7307         references.
7309 2003-04-10  Lars Clausen  <lrclause@cs.uiuc.edu>
7311         * app/app_procs.c (app_init): Layer window now opened at startup
7312         only if needed.
7314         * lib/prop_widgets.c: Show labels on ListProp.
7316 2003-04-09  Steffen Macke <sdteffen@web.de>
7318         * doc/en/*.sgml: removed files
7319         * doc/en/*.xml: added files
7320         * doc/en/Makefile.am: switched to XML DocBook
7322 2003-04-09  Lars Clausen  <lrclause@cs.uiuc.edu>
7324         * plug-ins/xslt/xslt.c (dia_plugin_init): 
7325         * configure.in: Added --with-xslt-prefix to allow other XSLT
7326         placements than /usr/lib.
7328 2003-04-09  Steffen Macke <sdteffen@web.de>
7330         * lib/makefile.mingw: updated to include latest files, including 
7331         and linking libintl
7332         * lib/geometry.h: don't define isinf and finite for mingw gcc build
7334 2003-04-08  Lars Clausen  <lrclause@cs.uiuc.edu>
7336         * app/persistence.h:
7337         * app/persistence.c (persistence_register_window_create): 
7338         * app/app_procs.c (app_init): 
7339         Register window function that doesn't create the window unless it
7340         should be open.  Other windows should move to this, so startup
7341         speed can be reduced.
7342         
7343         * app/persistence.h: Removed call prototype for update_window, now
7344         done internally.
7345         * app/persistence.c (persistence_register_window): A number of
7346         fixes.  Doesn't forget position when window is closed.  Now
7347         actually loads prefs.
7349         * app/layer_dialog.c (create_layer_dialog): Removed extraneous
7350         event connect.
7352         * app/preferences.c (prefs_data): 
7353         * app/diagram_tree_window.h: 
7354         * app/diagram_tree_window.c: Added persistence registering.
7355         Removed prefs items storing size and openness. 
7357         * app/sheets_dialog.c (create_sheets_main_dialog): Added
7358         persistence registering.  
7360         * app/Makefile.am (dia_core_files): Added persistence files.
7362         * lib/dia_dirs.h: 
7363         * lib/dia_dirs.c (dia_config_ensure_dir): New function to ensure
7364         that dirs are present.
7366         * app/app_procs.c (app_init): Loads persistent values on startup.
7367         (app_exit): Saves persistent values on exit.
7369         * app/layer_dialog.c (create_layer_dialog): Registers the layer
7370         window for persistence.
7372         * app/persistence.[ch]: New files handling various kinds of
7373         persistence.
7375 2003-04-04  Lars Clausen  <lrclause@cs.uiuc.edu>
7377         * lib/arrows.c: Adjusted arrow head spacing, more systematic arrow
7378         head spacing calculations.  Added half-circle arrow from Matthieu
7379         Sozeau <mattam@netcourrier.com> 
7381 2003-04-03  Lars Clausen  <lrclause@cs.uiuc.edu>
7383         * app/app_procs.c (app_init): Moved layer dialog init to allow
7384         tooltips to be initialized.
7386         * app/interface.c (create_display_shell): More tooltips.
7388         * app/linewidth_area.c (linewidth_area_create) 
7389         (linewidth_area_events): 
7390         * app/color_area.c (color_area_events, color_area_create): 
7391         Made tooltips work by embedding drawing_area in event_box.
7393         * app/interface.c (create_display_shell,
7394         (create_lineprops_area, create_color_area): Added a few tooltips.
7396 2003-04-01  Lars Clausen  <lrclause@cs.uiuc.edu>
7398         * app/pixmaps/off-grid.xpm: 
7399         * app/pixmaps/on-grid.xpm: 
7400         * app/Makefile.am (EXTRA_DIST): Added snap to grid icons.
7402         * app/display.h: 
7403         * app/commands.c (view_snap_to_grid_callback): 
7404         * app/display.c (ddisplay_set_snap_to_grid) 
7405         (update_snap_grid_status): 
7406         * app/interface.c (create_display_shell, grid_toggle_snap): 
7407         Added snap-to-grid status button.
7409 2003-03-31  Lars Clausen  <lrclause@cs.uiuc.edu>
7411         * app/app_procs.c (app_init): Create a new diagram if a file on
7412         the command line isn't found.
7414 2003-03-17  Lars Clausen  <lrclause@cs.uiuc.edu>
7416         * lib/dialibartrenderer.c (draw_string): Correct color handling
7417         for AA.
7419 2003-03-14  Lars Clausen  <lrclause@cs.uiuc.edu>
7421         * NEWS: 
7422         * doc/en/dia-manual.sgml: 
7423         * doc/pl/dia-manual.sgml: 
7424         * configure.in: 
7425         * dia.spec (Release): 
7426         Version 0.91 is here!
7428 2003-02-10  Steffen Macke <sdteffen@web.de>
7430         * plug-ins/wmf/wmf.cpp: patch from Ken Tsukahara 
7431         <ken.tsukahara@tmt-d.co.jp>, fixes windows printing and WMF export of
7432         non-ANSI characters, closes #107980
7434 2003-03-04  Lars Clausen  <lrclause@cs.uiuc.edu>
7436         * configure.in: 
7437         * NEWS: 
7438         * dia.spec (Release): 
7439         * doc/en/dia-manual.sgml: Upping to pre6.
7441         * configure.in: Missing comma broke HAVE_IEEEFP_H test.
7443         * app/lineprops_area.c (dia_arrow_chooser_new): Fixing bug
7444         #107511:  Make arrow selector for correct arrow type.
7446 2003-03-03  Lars Clausen  <lrclause@cs.uiuc.edu>
7448         * shapes/Circuit/Makefile.am (SHAPES): Added hjumper.png to
7449         EXTRA_DIST.
7451 2003-03-02  Lars Clausen  <lrclause@cs.uiuc.edu>
7453         * doc/en/dia-manual.sgml: 
7454         * configure.in: 
7455         * NEWS: 
7456         * dia.spec (Release): Upping to pre5.
7458         * configure.in: Add freetype-config derived libs to the
7459         AC_CHECK_LIB statement for freetype.
7461 2003-02-28  Hans Breuer  <hans@breuer.org>
7463         [fix for bug #107203]
7465         * lib/diarenderer.c : add warning 'implementation'
7466         for fill_rect to avoid crashing with a renderer
7467         which does not implement this required function.
7469         * plug-ins/dxf/dxf-export.c : provide - still empty -
7470         'implementations' for fill_rect and fill_polygon 
7471         to suppress the above warnings. Now it works like
7472         in version 0.90 
7474 2003-02-28  Steffen Macke <sdteffen@web.de>
7476         * samples/all_objects.dia: New sheet containing all dia shapes
7477         and objects; one layer per sheet
7478         
7479 2003-02-28  Lars Clausen  <lrclause@cs.uiuc.edu>
7481         * lib/prop_text.c (multistringprop_get_widget,
7482         multistringprop_reset_widget, multistringprop_set_from_widget): 
7483         Now uses GtkTextView instead of deprecated stuff, and also works:)
7485         * configure.in: Slightly more informative error message for isinf.
7487         * dia.spec (Requires): Require libxml2 rather than libxml.
7489 2003-02-28  Steffen Macke <sdteffen@web.de>
7491         * shapes/Circuit/hjumper.png:
7492         * shapes/Circuit/hjumper.shape: added missing icon for horizontal
7493         jumper shape
7494         
7495 2003-02-26  Lars Clausen  <lrclause@cs.uiuc.edu>
7497         * doc/en/dia-manual.sgml: 
7498         * configure.in: 
7499         * dia.spec (Release):
7500         * NEWS: New prerelease 0.91pre4, two important fixes.
7502 2003-02-25  Lars Clausen  <lrclause@cs.uiuc.edu>
7504         * plug-ins/xslt/Makefile.am (EXTRA_DIST): Also dist
7505         stylesheets.xml.in 
7507         * app/commands.c (help_manual_callback): More correct URL for help
7508         page (include file://, was broken on Dillo without it).
7510 2003-02-24  Lars Clausen  <lrclause@cs.uiuc.edu>
7512         * app/disp_callbacks.c: Set modifed when text is changed.
7514         * app/modify_tool.c (modify_button_release): Allow undo for moving
7515         objects.
7517 2003-02-16  Lars Clausen  <lrclause@cs.uiuc.edu>
7519         * dia.spec: 
7520         * doc/en/dia-manual.sgml: 
7521         * NEWS: 
7522         * configure.in: New prerelease with important bugfix.
7523         * shapes/network/digitizing_board.png:
7524         * shapes/network/plotter.png: Re-adding with -kb.
7525         
7526 2003-02-17  Abel Cheung  <maddog@linux.org.hk>
7528         * app/app_procs.c (app_init): Add comment for translators.
7530 2003-02-16  Lars Clausen  <lrclause@cs.uiuc.edu>
7532         * lib/filter.c (filter_register_import, filter_register_export):
7533         Don't accept filters with NULL description.
7535         * lib/plug-ins.c (dia_plugin_load): Fail if there's no description
7536         (as we assume the description is available in other places).
7538 2003-02-15  Lars Clausen  <lrclause@cs.uiuc.edu>
7539         
7540         * app/disp_callbacks.c (ddisplay_vsb_update, ddisplay_hsb_update): 
7541         * app/display.c (ddisplay_resize_canvas): Use
7542         ddisplay_add_update_all().
7543         (ddisplay_add_update_all): Free display and update lists when
7544         doing update_all, as they'll be regenerated immediately to cover
7545         all visible area.  Fixes bug #106165, crash when resizing.  This
7546         appears to be the original AA crash bug, believed long extinct.
7548 2003-02-13  Lars Clausen  <lrclause@cs.uiuc.edu>
7550         * app/commands.c (help_manual_callback): Use file: protocol for
7551         help. 
7553         * plug-ins/xslt/.cvsignore: Ignore .o files, please.
7555         * plug-ins/xslt/stylesheets: Removed old-style config file.
7556         
7557         * plug-ins/xslt/stylesheets.xml.in: New XML-based config file.
7559         * plug-ins/xslt/Makefile.am: 
7560         * plug-ins/xslt/xslt.c: Applied patch from Matthieu, improved path
7561         handling (no more DIA_PLUGIN_PATH).
7563 2003-02-11  Lars Clausen  <lrclause@cs.uiuc.edu>
7565         * plug-ins/svg/render_svg.c: 
7566         * lib/diasvgrenderer.c: Fixed numeric localized output issues.
7568 2003-02-10  Lars Clausen  <lrclause@cs.uiuc.edu>
7570         * objects/SADT/arrow.c (sadtarrow_draw): Clamp cosa, cosb to 
7571         [-1.0, 1.0].  Shouldn't be necessary, but in some cases the
7572         side of the triangle is longer than the hypotenuse.  Rounding
7573         error suspected.
7575 2003-02-09  Lars Clausen  <lrclause@cs.uiuc.edu>
7577         * NEWS: 
7578         * configure.in: 
7579         * doc/en/dia-manual.sgml: Update for pre2.
7581         * app/menus.c (display_menu_items): Fixed wrongly place separators.
7583         * objects/flowchart/box.c (box_update_data): Applied patch from
7584         Eivind Tagseth <eivind-gnome@multinet.no> to allow resize (with
7585         comment). 
7587         * app/paginate_psprint.c (print_page): Set paper name, so it
7588         convinces ps printers to use to right size.
7590 2003-02-07  Lars Clausen  <lrclause@cs.uiuc.edu>
7592         * app/properties.c (properties_show): Hide the dialog if the
7593         object is NULL (get rid of 'no properties' randomly popping up).
7595 2003-02-06  Lars Clausen  <lrclause@cs.uiuc.edu>
7597         * plug-ins/pixbuf/pixbuf.c (export_data): Adjust width and height
7598         for diagrams not starting at origo.
7600 2003-02-05  Lars Clausen  <lrclause@cs.uiuc.edu>
7602         * dia.spec (BuildRequires): Use libxml2-devel.
7604         * plug-ins/pixbuf/Makefile.am: Added to CVS.
7606         * RELEASE-PROCESS: Note on RPM version numbers.
7608         * app/interface.c (create_display_shell): Don't set as toolbar
7609         under Unix, either.  Especially not the diagram shell.  It removes
7610         it from the taskbar and makes it unresizable, always-on-top with
7611         OpenBox.  TOOLBAR != TOOLBOX.  Setting toolbox to the only
7612         appropriate thing, UTILITY, is not good either, you lose resizing
7613         and minimizing/maximizing under OpenBox.
7615         * app/menus.c (display_menu_items): Set delete item to use Delete.
7617 2003-02-04  Lars Clausen  <lrclause@cs.uiuc.edu>
7619         * dia.spec (BuildRequires, Requires): Updated for Gtk2
7620         requirements.
7622         * app/disp_callbacks.c (ddisplay_canvas_events): Only add a
7623         display flush when getting focus in, or we may get an update after
7624         the diagram has been destroyed in some cases.  Fixes bug #105221.
7626         * plug-ins/xfig/xfig-import.c: Notes on the splines used by XFig.
7628         * lib/diarenderer.c: Notes on the basis matrix for our beziers.
7630         * app/app_procs.c (app_init): Fixed missing popt context for Gnome
7631         - gnome-compiled Dia will now read files specified on the command line.
7633 2003-02-03  Lars Clausen  <lrclause@cs.uiuc.edu>
7635         * INSTALL (REQUIREMENTS): Updated requirements section.
7637         * configure.in: Better finite() check from MÃ¥rten Svantesson
7638         <f95-msv@nada.kth.se>.  Doesn't seem to generate strange dangly
7639         if's. 
7640         
7641 2003-02-03  Lars Clausen  <lrclause@cs.uiuc.edu>
7643         * plug-ins/xfig/xfig-import.c: Notes on spline conversions.
7645         * app/app_procs.c (debug_break): Added some code to avoid
7646         over-eager optimizations removing the call.  Surely there's a
7647         nicer way, but I'm not sure how.
7649         * app/diapsft2renderer.c (draw_bezier_outline): Removed paps relic
7650         that set text to black.
7652 2003-02-02  Lars Clausen  <lrclause@cs.uiuc.edu>
7654         * NEWS: Mention of Twiki as doc source for Python.
7656         * plug-ins/pixbuf/pixbuf.c: Export with pixbuf if
7657         libart/libpng is not available.  Later when we have a way of
7658         letting the user pick options in the file select dialog we shall
7659         allow the choice when applicable.
7661 2003-02-02  Steffen Macke <sdteffen@web.de>
7663         * doc/en/usage-loadsave.sgml:
7664         * doc/en/usage-objects.sgml: patch from
7665         James K. Lowden <jklowden@schemamania.org> to fix
7666         some docbook errors
7667         
7668 2003-02-01  Lars Clausen  <lrclause@cs.uiuc.edu>
7670         * plug-ins/Makefile.am (SUBDIRS): 
7671         * plug-ins/pixbuf/pixbuf.c: 
7672         * plug-ins/pixbuf/Makefile.am: 
7673         * configure.in: 
7674         Added pixbuf plugin to Makefile.am, but for import only.  PNG
7675         export handled by libart, which is better. JPG export is
7676         discouraged.  BMP is not much used on Unix.  Next release will
7677         integrate libart to allow all outputs.
7679 2003-02-01  Hans Breuer  <hans@breuer.org>
7681         * app/preferences.c :
7682         * app/pagesetup.c :
7683         the last two dialogs with 'old' button order finally
7684         are converted to gtk2, no GnomeDialog in all of Dia 
7685         anymore :-) 
7687 2003-02-01  Hans Breuer  <hans@breuer.org>
7689         * app/filedlg.c : don't try to use a button as
7690         'overwrite-file-dialog'-parent, use the FileSelDialog
7691         instead
7693         * plug-ins/pixbuf/pixbuf.c : make it work with 
7694         system-visual-depth < 24. Remove 'bmp' from output
7695         format extensions, it just was wishful thinking.
7697         * plug-ins/python/Makefile.am : added the four new python 
7698         plug-ins mentioned below to pyplugin_DATA and EXTRA_DIST
7700 2003-02-01  Hans Breuer  <hans@breuer.org>
7702         * NEWS : updated content beside dependencies
7704 2003-02-01  Hans Breuer  <hans@breuer.org>
7706         * lib/arrow.h : arrow_types needs to be declared as DIAVAR
7707         to make it useable across DLL boundaries
7708         * app/lineprops_area.c : same code to access arrow_types
7709         on all platforms
7711         * objects/UML/class.c : the non empty string is e.g.
7712         comment != NULL && comment[0] != '\0'
7713         * objects/UML/uml.c : same here, don't bother with
7714         empty operation stereotypes
7716 2003-02-01  Steffen Macke <sdteffen@web.de>
7718         * app/lineprops_area.c: latest changes do not work on
7719         windows, using old code without tooltips
7720         * makefile.msc: fixed copying of wmf.dll
7721         * plug-ins/makefile.msc: 
7722         * app/makefile.msc:
7723         * lib/makefile.msc: now linking libintl
7724         * config.h.win32: enabling native language support
7726 2003-01-31  Lars Clausen  <lrclause@cs.uiuc.edu>
7728         * plug-ins/xslt/Makefile.am (libxslt_filter_la_LDFLAGS): Removed
7729         -ldl and -lglib.  May or may not work on windows...awaiting verdict.
7731 2003-01-31  Daniel Yacob  <locales@geez.org>
7733         * configure.in: Added am (Amharic) to ALL_LINGUAS.
7735 2003-01-31  Steffen Macke <sdteffen@web.de>
7737         * objects/UML/class.c (umlclass_calculate_data): fixed crash
7738         when comments were visible, no class comment available and
7739         a attribute comment
7740          
7741 2003-01-31  Lars Clausen  <lrclause@cs.uiuc.edu>
7743         * RELEASE-PROCESS: Updated to fit new install-module syntax.
7744         * Prerelease 0.91-pre1 released on a suspecting public.  Tagging
7745         with DIA_0_91_PRE1.
7747 2003-01-30  Lars Clausen  <lrclause@cs.uiuc.edu>
7749         * config.h.win32: 
7750         * NEWS: 
7751         * configure.in:
7752         * dia.spec:
7753         Prerelease version changes, version 0.91-pre1.
7755         * app/sheets_dialog_callbacks.h: 
7756         * app/sheets_dialog_callbacks.c: 
7757         * app/sheets_dialog.c (create_sheets_main_dialog): 
7758         * app/sheets.c (sheets_dialog_create): More destroy stuff.  Trying
7759         to handle destruction of main dialog cleanly, but it's a mess.
7761         * configure.in: Downgraded ieeefp test to make it not produce
7762         illegal shell code.
7764         * lib/widgets.c (dia_arrow_selector_set_arrow): 
7765         (dia_line_style_selector_set_linestyle): Select menu dot
7766         correctly set.
7768         * lib/arrows.c (calculate_arrow_point): Fix of wrong arrow
7769         adjustment for diamondheads.
7771         * lib/plug-ins.c (dia_plugin_load): Fixed typo.
7773         * app/properties.c (create_dialog): Destroy properties dialog and
7774         box correctly.
7776         * app/sheets_dialog_callbacks.c
7777         (on_sheets_dialog_button_edit_clicked): Only create a new dialog
7778         if the old one is destroyed.
7780 2003-01-29  Lars Clausen  <lrclause@cs.uiuc.edu>
7782         * app/export_png.c (export_png_ok): Added info on resolution.
7783         Should (next release) improve export dialog to allow setting
7784         resolution instead of pixels.
7786         * app/lineprops_area.c (dia_arrow_chooser_new): Use menudesc list
7787         to generate arrowheads as well as tooltips.
7789         * lib/arrows.c: Added hollow diamond to menudesc list.
7791         * lib/arrows.[ch]: 
7792         * lib/widgets.[ch]: Moved arrow name list into arrows.[ch] to
7793         unify with rendered menu.
7795         * lib/diarenderer.c (draw_line_with_arrows)
7796         (draw_polyline_with_arrows, draw_arc_with_arrows)
7797         (draw_bezier_with_arrows): Fixed linestyle change bug (#104488)
7798         without changing renderer API.  Thanks to David Scherba for
7799         providing inspiration.
7801 2003-01-28  Lars Clausen  <lrclause@cs.uiuc.edu>
7803         * app/interface.c (create_display_shell):
7804         * app/display.h: Patching from Hubert Figuiere
7805         <hfiguiere@teaser.fr>:  Better types for menu bar widgets, and
7806         correct menu items.
7808 2003-01-26  Lars Clausen  <lrclause@cs.uiuc.edu>
7810         * app/defaults.c (defaults_show): Fixed defaults closing bug.
7811         Thanks to Hans for pointing it out.
7813 2003-01-25  Hans Breuer  <hans@breuer.org>
7815         * app/commands.c : don't warn about crashing libart renderer
7816         on win32. It simply doesn't render text anymore :-(
7818         * app/filedlg.c : use GtkMessageDialog for 'file overwrite'
7820         * objects/UML/class.c : don't access umlclass->properties_dialog
7821         after calling gtk_widget_destroy(umlclass->properties_dialog->dialog)
7822         which sets the former to NULL by destroy_properties_dialog() callback.
7824         * plug-ins/wmf/wmf.cpp : use dia_image_rowstride()
7826         * plug-ins/python/pydia-font.c : fix PyDiaFont_GetAttr()
7828         * plug-ins/python/pydia-image.c : add image.uri member
7829         not only useful for SVG rendering
7831         * plug-ins/python/diasvg.py : (new file) a more advanced
7832         example. A full blown SVG Renderer, currently only
7833         registered for .svgz
7835         * plug-ins/python/export-object.py : write text props
7837         * plug-ins/python/debug_objects.py : write prop.type and
7838         prop.visible 
7840 2003-01-25  Lars Clausen  <lrclause@cs.uiuc.edu>
7842         * objects/UML/association.c (association_update_data): Better
7843         bounding box for assoc with arrows.
7845         * lib/properties.h: New flag for properties with multiple values
7846         in groups.
7848         * app/lineprops_area.c (dia_arrow_chooser_dialog_show): Correct
7849         arrow updating in dialog.  Was broken due to changes from destroy
7850         fix:(
7852         * app/commands.c (view_aa_callback): AA warning only for Windows
7853         -- I trust the Unix side well enough.
7855         * app/render_libart.c (get_text_width): 
7856         * lib/dialibartrenderer.h (struct _DiaLibartRenderer): Font and
7857         font height can be taken from parent instance.
7859         * lib/dialibartrenderer.c (dia_libart_renderer_class_init) 
7860         (get_text_width): Proper cursor positioning for libart renderer.
7861         Ought to have a DiaInteractiveRenderer that these two can inherit
7862         from, that knows about transform.
7864 2003-01-25  Steffen Macke <sdteffen@web.de>
7866         * plug-ins/xslt/xslt.h: don't use dlfcn.h on win32. XSLT
7867         plug-in still not working on win32
7868         
7869 2003-01-24  Lars Clausen  <lrclause@cs.uiuc.edu>
7871         * app/disp_callbacks.c (ddisplay_canvas_events): Moved
7872         gdk_window_get_pointer to avoid destroy crash.  Simpler than I
7873         thought.
7875 2003-01-23  Lars Clausen  <lrclause@cs.uiuc.edu>
7877         * app/app_procs.c (app_init): Run gtk_init before popt so we don't
7878         bail out on gtk options.
7880         * lib/message.c (gtk_message_internal): Better handling of destroy
7881         event.
7883 2003-01-22  Lars Clausen  <lrclause@cs.uiuc.edu>
7885         * app/color_area.c (color_area_edit): 
7886         * lib/widgets.c (dia_file_selector_browse_pressed) 
7887         (dia_color_selector_pressed): 
7888         * app/plugin-manager.c (get_plugin_manager): 
7889         * app/filedlg.c (file_open_callback, file_save_as_callback) 
7890         (file_export_callback):
7891         * app/diagram_tree_window.c (diagram_tree_window_new): Correct
7892         handling of destroy event.
7894 2003-01-22  Alan Horkan <horkana@tcd.ie>
7896         * app/commands.c (file_new_callback): Changed Untitled to Diagram
7897         for default name.
7899 2003-01-21  Lars Clausen  <lrclause@cs.uiuc.edu>
7901         * app/preferences.c (prefs_create_dialog): 
7902         * app/linewidth_area.c (linewidth_create_dialog): 
7903         * app/lineprops_area.c (dia_arrow_chooser_dialog_show): 
7904         * app/layer_dialog.c (create_layer_dialog)
7905         (layer_dialog_edit_layer): Correct handling of destroy signal. 
7907         * app/diapsft2renderer.c (set_font): Adjust silly random factor
7908         for change in font.c
7910         * lib/widgets.c: Avoid warning when font menu file doesn't exist.
7912         * lib/font.c (dia_font_build_layout): Let's all use the same weird
7913         factor here.
7915         * app/lineprops_area.c (dia_arrow_chooser_dialog_show): 
7916         * app/layer_dialog.c (create_layer_dialog) 
7917         (layer_dialog_edit_layer): 
7918         * app/filedlg.c (file_open_callback, file_save_as_callback) 
7919         (file_export_callback): 
7920         * app/dia-props.c (create_diagram_properties_dialog): 
7921         * app/defaults.c (defaults_dialog_destroyed): 
7922         * app/color_area.c (color_area_edit): Dialog destroy event handling.
7924 2003-01-19  Lars Clausen  <lrclause@cs.uiuc.edu>
7926         * app/defaults.c (defaults_dialog_destroyed): Reset cache when
7927         defaults dialog destroyed.
7929 2003-01-19  Steffen Macke <sdteffen@web.de>
7931         * objects/makefile.msc: added bondgraph
7932         * plug-ins/makefile.msc: added GDK_PIXBUF_LIBS in order
7933         to compile pixbuf.dll
7934         * makefile.msc: copying all objects and dlls now
7935         
7936 2003-01-19  Hans Breuer  <hans@breuer.org>
7938         * app/diagram.[hc] : provide dia_open_diagrams(), make
7939         open_diagrams variable static
7940         * app/dia.def : export it (to be used by PyDia)
7941         * app/app_procs.c app/autosave.c app/diagram_tree_window.c
7942           app/display.c app/dynamic_refresh.c app/layer_dialog.c
7943           app/load_save.c : make use of dia_open_diagrams()
7945         * app/interface.c : don't set GDK_WINDOW_TYPE_HINT_TOOLBAR
7946         on win32. It removes the diagram window from the taskbar and
7947         shrinks it's window title to toolbar style (newest gtk2.2 cvs)
7949         * app/menus.c : add '...' to menu entries where a dialog 
7950         gets invoked
7951         * app/recent_files.c app/dia_embedd.c : reflect the above in 
7952         menus_get_item_from_path() calls
7954         * lib/libdia.def : add dia_image_rgba_data
7956         * lib/properties.h lib/prop_text.[hc] : add new property
7957         type StringList
7958         * objects/UML/class.[hc] object/UML/class_dialog.c : use
7959         StringList for attributes_strings and operations_strings to
7960         make this calculated data accessible via the Property API
7962         * plug-ins/python/diamodule.c : use dia_open_diagrams() and
7963         provide dia.new() to create a new diagram, dia.registered_types()
7964         to get on Dia's type registry, dia.message() for simple dialogs
7966         * plug-ins/python/pydia-diagram.c : implement DiaDiagram.display()
7967         to create a new display from a diagram. Let diagram.extents and
7968         diagram.bg_color return the same types as in diagramdata.*
7970         * plug-ins/python/pydia-geometry.c : add a read-only 
7971         'sequence interface' to DiaPoint and DiaRectangle
7973         * plug-ins/python/pydia-property.c : allow to get on StringList
7974         from Python
7976         * plug-ins/python/pydia-render.c : fix typo to make it compile
7978         * plug-ins/python/python-startup.py : removed 'import pygtk'
7979         again. This file does not need any gtk UI, and some python
7980         plug-ins don't do either
7982         * plug-ins/python/gtkcons.py : ported to GTK2 interface, now
7983         it should actually work as intended again
7985         * plug-ins/python/group_props.py : (new file) a prototype for
7986         one the most requested features: Change properties of selected
7987         objects in one step. Requires pygtk.
7989         * plug-ins/python/select_by.py : (new file) select objects by 
7990         common properties. Requires pygtk.
7992         [Start of 'PyDia Self Documentation Series']
7994         * plug-ins/python/pydiadoc.py : (new file) generates a new 
7995         diagram which contains all objects of dir(dia)
7996         
7997         * plug-ins/python/otypes.py : (new file) generates a new diagram 
7998         which contains all the currently registered object types sorted 
7999         by their containing package
8001 2003-01-18  Lars Clausen  <lrclause@cs.uiuc.edu>
8003         * configure.in: Added check for Pango >= 1.1.5, which appears to
8004         be enough to have text work.
8005         (INTLOBJS): Added dummy subst cause gettext doesn't always seem to
8006         do it.  AC_SUBST should be idempotent, though.
8008 2003-01-17  Lars Clausen  <lrclause@cs.uiuc.edu>
8010         * configure.in (HAVE_FREETYPE): Better test for freetype version
8011         using neat macro.
8012         Now actually sets HAVE_IEEEFP_H, needed for Solaris.
8014         * lib/font.c: Renamed global_size_one to global_zoom_factor to
8015         avoid confusion, and added comment.  Set scale factor in
8016         dia_font_build_layout to 1.0 for Unix side.  This fixes at least
8017         my weird scaling problems.  Fonts are now of the expectable size,
8018         i.e. the space between lines at size 1.0 is 1.0.  If we want a
8019         compatibility fix, we should scale fonts by about 1/0.75 from 0.90
8020         diagrams, though there will always be differences.
8022 2003-01-15  Lars Clausen  <lrclause@cs.uiuc.edu>
8024         * plug-ins/python/python-startup.py: 
8025         * plug-ins/python/gtkcons.py: Require gtk 2.0 for pygtk
8027         * plug-ins/python/python.c (dia_plugin_init): Added warning
8028         message for missing startup file.
8030         * lib/dialibartrenderer.c (draw_image): Alpha rendering!  Yay!
8031         
8032         * lib/dia_image.c (dia_image_rgb_data): 
8033         * app/diapsrenderer.c (draw_image): Fixed rowstride problems
8034         involving EPS.  Can't do transparency in EPS yet.
8036         * lib/dia_image.h: 
8037         * lib/dia_image.c (dia_image_rgba_data): New function to get RGBA
8038         data as one chunk.  Documentation for the RGB data getting funcs.
8039         (dia_image_rgb_data): Added comment.
8041         * lib/dialibartrenderer.c (draw_image): Correct rowstride handling
8042         (bug #103565)
8044 2003-01-13  Steffen Macke <sdteffen@web.de>
8046         * lib/dia_image.c: dia_image_rgb_data() is working for
8047         non-alpha images now. Fixes #93762
8048         * Makefile.am: added makefile.msc to EXTRA_DIST
8049         
8050 2003-01-10  Steffen Macke <sdteffen@web.de>
8052         * app/paginate_psprint.c: Closing print dialog when file
8053         could not be written. Fixes #84746
8054         
8055 2003-01-04  Steffen Macke <sdteffen@web.de>
8057         * doc/custom-shapes: incomplete description of <svg:text>
8059 2003-01-03  Steffen Macke <sdteffen@web.de>
8061         * makefile.msc(new): new makefile to create file
8062         structure suitable for running dia win32 under
8063         $(TOP)/dia/build/win32
8064         
8065 2003-01-02  Steffen Macke <sdteffen@web.de>
8066         
8067         * lib/dia_svg.c: including stdlib.h
8068         * lib/makefile.msc: added gdk_pixbuf libs to linker
8069         * app/makefile.msc: added gdk_pixbuf libs, made libart
8070         libs compatible with gnuwin32 package
8071         
8072 2003-01-01  Hans Breuer  <hans@breuer.org>
8074         * lib/font.c : more comment about global_size_one
8076         * app/menus.c : <control>[<shift>]A for plain gtk build too.
8078         * plug-ins/wmf/wmf.cpp : some type juggling to make 
8079         msvc7 happy
8081 2002-12-31  Steffen Macke <sdteffen@web.de>
8083         * app/makefile.msc: added hint on how to enable console output
8084         
8085 2002-12-17  Lars Clausen  <lrclause@cs.uiuc.edu>
8087         * objects/standard/textobj.c (textobj_load): Get the handle type
8088         right, at least to be the same as when created.
8090 2002-12-12  Lars Clausen  <lrclause@cs.uiuc.edu>
8092         * lib/dialibartrenderer.c (draw_string): Removed extra 'is'.
8094 2002-12-08  Hans Breuer  <hans@breuer.org>
8096         * app/commands.c : fixed bug #85315 'give diagram properties, 
8097         instead of no object selected error' almost a one-liner
8099         * app/splash.c : don't make having the logo pixmap
8100         mandatory. Fixes bug #96068. 
8102         * app/defaults.c : avoid crashing from open-dialog,esc,open-dialog
8103         sequence by connecting to the "delete_event"
8104         * app/objects/uml/class_dialog.c : handle "destroy" for 
8105         the same reason.
8107         * lib/libdia.def : remove diaXmlNewChild again
8109         * app/paginate_gdiprint.cpp : reflect Dia's page setting
8110         portrait/landscape in the windoze print dialog
8112         * objects/makefile.msc : only UML needs to link against
8113         $(GTK2_LIBS) and only custom against $(LIBXML2_LIBS)
8115 2002-12-08  Lars Clausen  <lrclause@cs.uiuc.edu>
8117         * objects/standard/ellipse.c (ellipse_distance_from): 
8118         * lib/geometry.c (distance_ellipse_point): Ellipse now uses the
8119         correct distance function.  Could be faster, but it's not really
8120         essential. 
8122 2002-12-07  Lars Clausen <lrclause@cs.uiuc.edu>
8124         * lib/font.c: Changed global_size_one to more correct 28.35.
8125         Looks better, too.
8127         * app/load_save.c:
8128         * lib/dia_xml.h: 
8129         * lib/dia_xml.c: Removed pretty print hack, the libxml thing works
8130         after all.
8132 2002-12-07  Hans Breuer  <hans@breuer.org>
8134         * lib/widgets.c : g_file_get_contents() silently assumes
8135         a binary file. Reflect when creating the font_menu file
8136         to get rid of junk in font menus
8138 2002-12-06  Hans Breuer  <hans@breuer.org>
8140         * app/diapsrenderer.[hc] app/diapsft2renderer.[hc] :
8141         removed 0xD 0xD 0xA line ends which get created by
8142         cvs if windoze line ends 0xD 0xA are checked in from
8143         *nix and checked out on win32.
8145         * app/preferences.c : changed toolbox_on_top default to
8146         false. It is currently not possible to change the behaviour
8147         at runtime, at least not on win32.
8149         * lib/dialibartrenderer.c : bug #94791 'rendering to 
8150         bitmap without PangoFt2' got delayed to milestone future 
8151         so wrap libart text rendering into PANGO_WIN32_FUTURE. 
8152         It is not available without my Pango patch in bugzilla.
8154         * lib/font.c : added comment to global_size_one and adapt
8155         the arbitrary size scaling in dia_font_build_layout() for
8156         win32, too. This is needed to get an acceptable font size 
8157         approximation for Dia 0.90 and earlier files.
8158         Also #include "message.h".
8160         * app/makfile.msc app/dia.def lib/makefile.msc lib/libdia.def :
8161         reflect movement of group.[hc]
8162         * lib/group.h : export group_type which gets used by app/*
8164         * lib/diagtkfontsel.c : added #undef GTK_DISABLE_DEPRECATED
8165         to get the GtkTypeInfo definition
8167         * plug-ins/makefile.msc : dxf and xfig don't need to link
8168         against app/ anymore now that group is moved to lib/
8170         * plug-ins/python/pydia-render.c : remove massive leaking
8171         of self, i.e. PyDiaRenderer
8173         *  plug-ins/python/makefile.msc : remove linking against
8174         GTK libs
8176 2002-12-06  Lars Clausen  <lrclause@cs.uiuc.edu>
8178         * objects/standard/line.c: Removed properties options for gaps,
8179         until release is done.
8181         * configure.in: Check for freetype version.
8183         * lib/text.c (text_insert_char): Fixed small buffer overflow for
8184         length = 0.
8186         * lib/dialibartrenderer.c (draw_string): Removed debugging printf.
8188         * app/diapsft2renderer.h: 
8189         * app/diapsft2renderer.c: 
8190         * app/diapsrenderer.h: 
8191         * app/diapsrenderer.c: Split ps rendering into standard and freetype.
8193         * app/render_eps.c (export_eps, new_psprint_renderer): Using
8194         PS_FT2 renderer when available.  Old render stuff killed.  Yay!
8196         * lib/properties.h: Fixed bad frame end def.
8198         * app/Makefile.am (dia_core_files): Added diapsft2renderer.[ch].
8200         * lib/dia_xml.c (data_add_string): Avoid #-less strings.
8201         
8202         * objects/bondgraph/Makefile.am: Removed unneeded EXTRA_DIST.
8204 2002-12-05  Lars Clausen  <lrclause@cs.uiuc.edu>
8206         * lib/font.c: Now checking for the proper dia-style standard fonts.
8208         * lib/Makefile.am: 
8209         * app/Makefile.am: Moving group.[ch]
8211         * plug-ins/dxf/dxf-import.c: 
8212         * plug-ins/xfig/xfig-import.c: 
8213         * plug-ins/xfig/xfig-export.c: Now can refer directly to group.h.
8215         * app/object_ops.c: 
8216         * app/object_ops.h: 
8217         * lib/object.c (object_list_move_delta, object_copy_list): 
8218         * lib/object.h: Moved some object-related functions from
8219         object_ops to object to assist moving group.c.
8221         * lib/diatypes.h: Added Group typedef.
8223         * lib/group.h: 
8224         * lib/group.c: Moved from app to lib to a) resolve plug-ins
8225         references, and b) make groups more "real" objects.
8227         * lib/Makefile.am (libdia_la_SOURCES): Added diatyps.h
8229 2002-12-03  Lars Clausen <lrclause@cs.uiuc.edu>
8231         * lib/font.c (dia_font_init): Added check that the three standard
8232         fonts exist.
8234 2002-12-02  Lars Clausen  <lrclause@cs.uiuc.edu>
8236         * lib/dia_xml.[ch]:
8237         * app/load_save.c: Linebreaks in dia files, no indentation.
8238         Should help text tools.  xmlNewChild wrapped in diaXmlNewChild for
8239         this. 
8240         
8241         * objects/standard/line.c: Small but important fixes to the line
8242         gap code.
8244         * lib/dia_xml.h: 
8245         * lib/dia_xml.c (diaXmlNewChild): 
8246         * app/load_save.c (diagram_data_write_doc, write_objects): Simple
8247         XML prettyprinting wrapper.
8249 2002-12-03  Steffen Macke <sdteffen@web.de>
8251         * shapes/Cisco/Makefile.am:
8252         * shapes/Cisco/*.shape: finished conversion of Cisco icons
8253         to *.png
8254         
8255 2002-12-02  Steffen Macke <sdteffen@web.de>
8257         * doc/en/Makefile.am:
8258         * doc/en/usage-objects.sgml:
8259         * doc/en/graphics/line_icon.png: (new) added line icon
8260         
8261 2002-12-02  Lars Clausen  <lrclause@cs.uiuc.edu>
8263         * objects/standard/line.c: Binary search object edge line gap.
8265 2002-12-01  Lars Clausen  <lrclause@cs.uiuc.edu>
8267         * configure.in: Added Cisco makefile, sorted Makefiles list.
8269         * shapes/Makefile.am (SUBDIRS): Added Cisco dir
8271         * configure.in: Now checks for availability of PangoFT2 and
8272         FreeType, raising an error if not found.
8274         * app/Makefile.am (dia_core_files): Adding diapsft2renderer from
8275         Hans.
8277 2002-12-01  Steffen Macke <sdteffen@web.de>
8278         
8279         * doc/en/usage-loadsave.sgml: updated information on import
8280         and export formats
8281         
8282 2002-11-28  Lars Clausen  <lrclause@cs.uiuc.edu>
8284         * app/commands.c (edit_copy_callback): Freeing copy_list.
8286 2002-11-28  Steffen Macke <sdteffen@web.de>
8287         
8288         * app/render_libart.c: art_config.h was included twice
8290 2002-11-27  Lars Clausen  <lrclause@cs.uiuc.edu>
8292         * sheets/.cvsignore: More ignorance.
8294         * lib/diagdkrenderer.c (draw_string): Removed silly #ifdef 1.
8296         * lib/prop_widgets.h: Two (currently unused) settings for frame
8297         foldability.
8299         * lib/prop_widgets.c (frame_beginprop_get_widget): Frames are now
8300         (by default) foldable. 
8302         * lib/propinternals.h: 
8303         * lib/propdialogs.c (prop_dialog_add_raw_with_flags): Way to add
8304         widgets in a more controlled manner.
8306         * objects/standard/line.c (line_update_data): Line gap things
8307         inserted.  Can do xeyes now:)
8309 2002-11-26  Christian Neumair  <chris@gnome-de.org>
8311         * .cvsignore: Changed.
8312         * objects/bondgraph/.cvsignore, plug-ins/metapost/.cvsignore,
8313         plug-ins/xslt/.cvsignore, shapes/Assorted/.cvsignore, shapes/Misc/.cvsignore:
8314         Added.
8316 2002-11-26  Lars Clausen  <lrclause@cs.uiuc.edu>
8318         * app/pixmaps/delete.xpm: Trashcan stolen from Gimp.
8320         * lib/widgets.c (dia_font_selector_get_font): Fixed wrong name
8321         passing to font hash.
8323         * app/filedlg.c (file_save_as_ok_callback): Check that filename is
8324         utf-8 or locale-convertible before adding to dialog text.  This
8325         probably needs done in a number of places where we get text from
8326         the environment and send it to GTK to display.
8328         * lib/widgets.c: Fixed case problems for font menu entries.
8330         * objects/SADT/annotation.c: Don't run the event test (but leave
8331         it here for inspiration).
8333         * lib/widgets.c: 
8334         * lib/widgets.h: Allowing setting preview text for fonts.
8336 2002-11-26  Lars Clausen  <lrclause@cs.uiuc.edu>
8338         * objects/bondgraph/Makefile.am: 
8339         * objects/bondgraph/bondgraph.c: 
8340         * configure.in: 
8341         * objects/Makefile.am: Added bond graph dir.
8343 2002-11-26  Lars Clausen  <lrclause@cs.uiuc.edu>
8345         * lib/text.c (text_calc_boundingbox, text_draw): Better cursor size.
8347 2002-11-25  Lars Clausen  <lrclause@cs.uiuc.edu>
8349         * lib/text.c (text_calc_boundingbox, text_draw): Better cursor
8350         positioning. 
8352         * app/diapsrenderer.c: Freetype rendering is back in force.
8354         * app/disp_callbacks.c: Added missing updates for pre-text-change.
8356 2002-11-25  David Hoover <jazzdaq@yahoo.com>
8358         * app/render_libart.c: Added missing #include line for libart.
8360         * lib/geometry.h:
8361         * lib/geometry.c: Added point_convex function.  This computes
8362         points inside a line segment (0 <= alpha <= 1) or outside the
8363         line segment (alpha < 0 | alpha > 1).
8365         * objects/standard/line.c: Line now has additional code/attributes
8366         which permit the line to extend past the line anchors (gap < 0) or
8367         leave a gap without reaching the anchor (gap > 0).  If no gap is
8368         specified, the default gap of 0 will result in identical line
8369         behavior as before.  If the 'fractional' attributes are TRUE, the
8370         gap length is not fixed, but a percentage of the line length.  I
8371         did not know how create the GTK widgets so the gap code currently
8372         cannot be used without adding XML attributes by hand.
8374 2002-11-25  Lars Clausen  <lrclause@cs.uiuc.edu>
8376         * lib/diagdkrenderer.c (draw_string): Removed timing bits.
8378         * lib/Makefile.am (libdia_la_SOURCES): Added fontsel files to SOURCES.
8380 2002-11-24  Lars Clausen  <lrclause@cs.uiuc.edu>
8382         * lib/font.c: Debugging functionality in separate functions.
8384         * lib/widgets.c: Using fontsel with context.
8386         * lib/diagtkfontsel.[ch]: Context-aware copy of the GTK fontsel.
8388         * objects/custom/custom_object.c: Orientation handling for shapes,
8389         patch thanks to Martin Hans <opfinder@gmx.net>.
8391         * objects/standard/zigzagline.c (zigzagline_move_handle): Starting
8392         work on even better orientation handling.
8394         * app/menus.c (menus_get_item_from_path): Fixed sily warnings from
8395         casting NULL pointers.  Should be unnecessary in an upcoming GTK
8396         release. 
8398 2002-11-18  Lars Clausen  <lrclause@cs.uiuc.edu>
8400         * lib/font.h:
8401         * lib/font.c:
8402         * lib/widgets.c: Now uses correct context to get font families.
8404         * lib/diagdkrenderer.c (get_text_width, draw_string): 
8405         * lib/dialibartrenderer.c (draw_string): 
8406         * lib/font.h: 
8407         * lib/font.c (dia_font_init): Removed old kludgy font name compare.
8408         (dia_font_build_layout): Unified the twiddle factors into a use of
8409         global_size_one.  But I deeply distrust Pango for seeming to
8410         change size of fonts every time I turn my back.
8412         * app/display.c: 
8413         * app/diagram.c: 
8414         * app/menus.c:
8415         * app/menus.h: Updated some more methods to also be more specific
8416         on the types.
8418         * app/menus.h:
8419         * app/recent_files.c: 
8420         Changed to return most specific type, to avoid run-time type errors.
8422         * app/menus.c (menus_get_item_from_path): Non-gnome version now
8423         gets menu_item rather than widget, which works better.
8425 2002-11-17  Cyrille Chépélov  <cyrille@chepelov.org>
8427         * app/display.c: (new_display):
8428         * app/menus.c: (menus_get_item_from_path):
8429         Relying on the tearoff to locate the input methods menu wasn't a
8430         good idea: tearoffs seem to be an endangered species nowadays.
8431         Anyway, the IM menu seems to be working now.
8433         * app/interface.c: hinted the window manager that the toolbox window
8434         is a toolbox window. Not that my (fairly default configuration)
8435         sawfish cares, but other NETWM compliant WMs may.
8437         * app/commands.c: 
8438         * app/defaults.c: 
8439         * app/dia-props.c:
8440         * app/filedlg.c: 
8441         * app/interface.c: 
8442         * app/layer_dialog.c: 
8443         * app/linewidth_area.c: 
8444         * app/properties.c: 
8445         * app/sheets_dialog.c: 
8446         * app/splash.c: 
8448         The GTK doc says to avoir gtk_window_set_wmclass() and 
8449         gtk_window_set_policy(), and use gtk_window_set_role() and
8450         gtk_window_set_resizable(), respectively.
8451         
8452         * app/preferences.c: (prefs_create_dialog):
8453         * app/preferences.h:
8454         * app/display.c: (display_set_active):
8455         Added a preference to have the toolbox hover over diagram windows.
8456                 
8457 2002-11-12  Lars Clausen  <lrclause@cs.uiuc.edu>
8459         * lib/diagdkrenderer.c (get_text_width, draw_string):
8460         Freetype-based string drawing now works.  Not very fast, though.
8461         I wish I could use the graphics card for this:(  I'm doing three
8462         bitmap loops where I should be doing one.  The size is not correct
8463         either, despite having get_text_width give the right thing.
8465 2002-10-21  Lars Clausen  <lrclause@cs.uiuc.edu>
8467         * app/connectionpoint_ops.c (diagram_update_connections_object):
8468         Allows more than one connectionpoint on an object to be moved at a
8469         time (bug #96306).
8471 2002-10-18  Stanislav Brabec  <sbrabec@suse.cz>
8473         * configure.in: Added cs to ALL_LINGUAS.
8475 2002-10-17  Lars Clausen  <lrclause@cs.uiuc.edu>
8477         * app/paginate_psprint.c: Removed unnecessary decl of autosave
8478         stuff.
8480         * app/display.c (ddisplay_set_renderer): Calls to begin/end render.
8482         * app/export_png.c (export_png_ok): Saving more variables from the
8483         evil setjmp.
8485 2002-10-16  Lars Clausen  <lrclause@cs.uiuc.edu>
8487         * lib/dialibartrenderer.c (begin_render):
8488         (end_render): Correct pushing and popping of font contexts.
8489         (draw_string): Double zooming eliminated, strange twiddle factor
8490         introduced (grumble).  Close to working now, but there are still
8491         strange differences from font to font.  In particular, some fonts
8492         really mess with the cursor and extents.
8494         * app/render_eps.c (export_eps): 
8495         * app/diapsrenderer.c (dia_ps_renderer_finalize): 
8496         Fixed file closing confusion, no longer dependent on PS/EPS.
8498         * app/diagram.c (diagram_place_down_selected) 
8499         (diagram_place_up_selected): Now implemented.
8501         * lib/font.c (dia_font_init): 
8502         * lib/font.h: 
8503         Redesigned the font init/context pushing code.  Start of fix for
8504         font name differences.
8505         
8506 2002-10-15  Kjartan Maraas  <kmaraas@gnome.org>
8508         * app/sheets_dialog_callbacks.c: Fix a typo.
8509         
8510 2002-10-15  Hans Breuer  <hans@breuer.org>
8512         * app/diapsrenderer.[hc] : (new files, old content :-)
8513         simple base class for post script rendering. Does neither 
8514         use Pango/FT2 nor does it handle non latin1 characters. 
8515         The fancy stuff which nowadays appears to be needed should 
8516         probably be done in derived class(es)
8518         * app/makefile.msc app/Makefile.am : added new files
8520         * app/paginate_psrint.c : re-enabled and used as test
8521         for the simple ps renderer above.
8523         * app/render_eps.[hc] : ripped out common ps code and
8524         moved to DiaPsRenderer. The rest of the file is mostly
8525         disabled. And I don't understand enough of it to 
8526         change port it.
8528         * app/diaepsrenderer.h : short lived, removed.
8530 2002-10-15  Lars Clausen  <lrclause@cs.uiuc.edu>
8532         * lib/plug-ins.c (dia_register_plugin): Don't try to load libdia
8533         as a plugin (thanks to Torben Nielsen).
8535 2002-10-14  Lars Clausen  <lrclause@cs.uiuc.edu>
8537         * app/diaepsrenderer.h: 
8538         * app/render_eps.h: 
8539         * app/paginate_psprint.c: 
8540         #ifdef'd out enough ps stuff to allow compile.  Now we just need
8541         to convert it.
8542         
8543 2002-10-12  Hans Breuer  <hans@breuer.org>
8545         [last plug-in ported]
8547         * plug-ins/xfig/xfig-export.c : ported to new renderer api
8549         * plug-ins/xfig/xfig-import.c(fig_create_object) : need to
8550         scale color values to [0..1.0] to properly reconstruct
8551         user colors
8553         * plug-ins/xfig/xfig-common.c : some cleaning
8555 2002-10-12  Hans Breuer  <hans@breuer.org>
8557         [decrease inter-plug-in-dependencies]
8559         * objects/custom/shape_info.[hc] : move parse_style()
8560         to lib/dia_svg.[hc] as dia_svg_parse_style(); Namespace
8561         the related structs and constants.
8562         * objects/custom/custom_object.c : reflect namespace
8563         changes
8565         * lib/dia_svg.[hc] : new files
8566         * lib/makefile.msc lib/Makefile.am : add new files
8567         * lib/libdia.def : updated externals
8569         * plug-ins/svg/svg-import.c : use dia_svg_parse_style()
8571         * plug-ins/svg/svg.c : enable svg import for win32 (and
8572         probably for other non ELF builds)
8574         * plug-ins/makefile.msc : enable svg import
8576 2002-10-11  Hans Breuer  <hans@breuer.org>
8578         * plug-ins/metapost/render_metapost.[hc] : ported
8580         * plug-ins/pstricks/render_pstricks.[hc] : dito
8582 2002-10-11  Hans Breuer  <hans@breuer.org>
8584         * plug-ins/cgm/cgm.c : ported, appears to work as before,
8585         but graphic apps available to me can't import the generated 
8586         files (the could not with Dia-0.90 cgm as well) ...
8588         * plug-ins/dxf/dxf-export.c : Ported to new renderer api.
8589         Removed all those function which did emulate 'complex' 
8590         drawing ops with basic ones (e.g. rect by line) cause this
8591         stuff is already provided by the base class
8592         * plug-ins/dxf/dxf-import.c : removed render.h include
8594         * plug-ins/python/pydia-font.[hc]
8595           plug-ins/python/pydia-text.c : finally ported to new font api
8597         * plug-ins/python/pydia-layer.c : add extra parameter
8598         to layer_find_closest_connectionpoint()
8600         * plug-ins/python/pydia-render.c : ported to DiaRenderer api
8602         * plug-ins/python/python.c : added missing copyright notice
8604         * plug-ins/hpg/hpgl.c plug-ins/wpg/wpg.c plug-ins/wmf/wmf.cpp : 
8605         actually use the renderers set_font implementation
8607         * plug-ins/renderer.inc : unused now, removed
8608         * plug-ins/Makefile.am : reflect it
8610 2002-10-08  Hans Breuer  <hans@breuer.org>
8612         * app/render_gdk.c : don't add the InteractiveRenderer
8613         interface multiple times (it's added to the type, not
8614         the object)
8615         * app/render_libart.c : dito. It's currently added
8616         unconditional cause eport_png uses it, but claims
8617         to be non-interactive. Probably set_size should be moved
8618         to the DiaRenderer interface.
8620         * lib/dialibartrenderer.c : add implementations for
8621         get_<width|height>_pixels. Libart rendering works again.
8622         DiaLibartRenderer::draw_image : use dia_image_rowstride()
8623         instead of width*3
8625         * lib/diatransform.c(dia_transform_coords_double) :
8626         don't ROUND() the returned values
8628         * plug-ins/pixbuf/pixbuf.c : added import function. It
8629         simply creates a wrapping "Standard - Image" object.
8631         * plug-ins/shape/shape-export.c : use the more direct
8632         method to call base class methods
8634 2002-10-07  Lars Clausen  <lrclause@cs.uiuc.edu>
8636         * lib/font.c (dia_font_init): Changed dia_font_init to return old
8637         pango context, to allow stacked contexts (for printing while
8638         antialiased).
8639         
8640         * lib/arrows.h
8641         * lib/bezier_conn.h
8642         * lib/beziershape.h
8643         * lib/boundingbox.h
8644         * lib/color.h
8645         * lib/connection.h
8646         * lib/connectionpoint.h
8647         * lib/create.h
8648         * lib/dia_image.h
8649         * lib/diagdkrenderer.h
8650         * lib/diagramdata.h
8651         * lib/dialibartrenderer.h
8652         * lib/diamenu.h
8653         * lib/diarenderer.h
8654         * lib/diasvgrenderer.h
8655         * lib/diatransform.h
8656         * lib/element.h
8657         * lib/filter.h
8658         * lib/focus.h
8659         * lib/font.h
8660         * lib/geometry.h
8661         * lib/handle.h
8662         * lib/neworth_conn.h
8663         * lib/objchange.h
8664         * lib/object.h
8665         * lib/orth_conn.h
8666         * lib/paper.h
8667         * lib/plug-ins.h
8668         * lib/poly_conn.h
8669         * lib/polyshape.h
8670         * lib/properties.h
8671         * lib/ps-utf8.h
8672         * lib/sheet.h
8673         * lib/text.h
8674         * lib/textattr.h
8675         * lib/widgets.h
8676         * lib/diatypes.h
8677         Moved all externally visible struct typedefs into diatypes.h, as
8678         per Hans' suggestions.
8680 2002-10-07  Steffen Macke <sdteffen@web.de>
8682         * lib/Makefile.am: removed a '\' causing problems
8684 2002-10-07  Hans Breuer  <hans@breuer.org>
8686         [Libart Renderer resurrected; almost it's compiling but
8687          almost instantly crashing :-]
8689         * lib/dialibartrenderer.[hc] : new files, ported to DiaRenderer
8690         * app/render_libart.[hc] : ported to DiaInteractiveRenderer
8691         * lib/diatransform.[hc] : added dia_transform_coords_double()
8693         * app/display.c : the right parameters for new_renderer_libart()
8694         * app/export_png.c : ported, removed the blind Display hack
8696         * app/makefile.msc lib/makefile.msc 
8697           lib/Makefile.am : updated
8699         * lib/dia<|gdk|interactive>renderer.c : properly copyrighted
8701 2002-10-06  Hans Breuer  <hans@breuer.org>
8703         * plug-ins/pixbuf/pixbuf.c : (new file)
8704         there is a new export plug-in called 'Pixbuf' which uses 
8705         DiaGdkRenderer to export to gdk-pixbuf supported bitmap
8706         formats (currently only PNG and JPEG).
8708 2002-10-06  Hans Breuer  <hans@breuer.org>
8710         See also: 
8711         http://mail.gnome.org/archives/dia-list/2002-October/msg00027.html
8713         * lib/dia-enums.h lib/diatransform.[hc]
8714           lib/diarenderer.[hc] lib/diainteractiverenderer.c
8715           lib/diagdkrenderer.[hc] lib/diasvgrenderer.[hc]
8716         : new files 
8718         * lib/makefile.msc lib/makefile.am : added new files
8720         * lib/plug-ins.c : g_module_error() returns a locale
8721         string, convert to utf8 before further usage 
8723         * lib/render.h : #error out. Everything including this
8724         needs porting
8725         * lib/*.[hc] : ported to new renderer api
8727         * app/diaepsrenderer.h : unfinished DiaEpsRenderer interface
8728         just to make the rest compile
8729         * app/render_eps.c : temporary disabled all of this
8730         * app/render_eps.h : removed RendererEPS
8732         * app/render_gdk.[hc] : a small wrapper around the new
8733         DiaGdkRenderer form lib/*
8735         * app/render_libart.h : removed RenderLibart definition
8736         * app/render_libart.c : not yet ported to new DiaRenderer
8737         but having an implementation to untie form FT2 dependency
8738         at least on win32. It is using new Pango api form bug #94791
8740         * app/render_pixmap.[hc] : a small wrapper around the new
8741         DiaGdkRenderer form lib/*
8743         * app/display.h : removed render_*.h includes
8744         * app/display.c : the only place where specific 
8745         renderers need to be known
8747         * app/connectionpoint_ops.c app/grid.c app/handle_ops.c
8748         use new DiaInteractiveRenderer interface
8750         * app/*.c : ported to new renderer api
8751         * object/*/*.c : ported to new renderer api
8752         s/render.h/diarenderer.h/
8753         s/Renderer/DiaRenderer/
8754         s/renderer->ops/renderer_ops/
8755         add in every draw method:
8756         DiaRendererClass *renderer_ops = DIA_RENDERER_GET_CLASS (renderer);
8758         * plug-ins/hpgl/hpgl.c : 
8759           plug-ins/wmf/wmf.cpp 
8760           plug-ins/wpg/wpg.c : ported to be DiaRenderer based
8761         * plug-ins/shape/shape-export.c
8762           plug-ins/svg/render_svg.c : ported to be DiaSvgRenderer based
8763           (nice how small these files became :-)
8765 2002-09-28  Hans Breuer  <hans@breuer.org>
8767         * */makefile.msc : updated
8769         * app/defaults.c : don't gdk_invalidate_rect(NULL)
8770         * app/disp_callbacks.c : 
8771         can't cast GtkWindow to GdkWindow, use shell->window
8772         (ddisplay_unrealize) don't use already unrefed im_context
8773         * app/display.c :
8774         can't cast from GtkMenu to GtkMenuItem
8775         (ddisp_destroy) : mark im_context as unrefed
8777         * lib/dia_xml (data_font) : prefer new font format over old one
8778         (data_add_font) : write the legacy name to allow file exchange
8779         with pre Pango versions of Dia, which would otherwise crash 
8780         on missing font 'name' attribute.
8781         * lib/font.c (dia_font_get_legacy_name) : improved implementation
8782         to get a better match.
8784         * lib/libdia.def : updated
8786         * lib/messages.c : don't gdk_widget_show(NULL)
8788         * lib/prop_text.c : don't gtk_entry_set_text() with NULL string 
8790         [make Dia compile, link _and_ work with mingw/gcc3.2]
8792         * config.h.win32 : #define LIBXML, this gets defined from libxml
8793         header but only for _MSC_VER. The mingw build did access an 
8794         unitialized function pointer for xmlFree.
8796         * */makefile.mingw : updated (some plug-ins have build issues)
8797         
8798         * lib/handle.h lib/object.h :   there appears to be no 
8799         forward declaration of the form 
8800                 typedef enum _HandleId HandleId 
8801         (at least not with GCC 3.2 for C++) ../lib/handle.h:22: 
8802         use of enum `_HandleId' without previous declaration
8804         * app/paginate_gdiprint.cpp : added a hack to avoid g++
8805         naming conflict on 'export'
8807         * app/paginate_gdiprint.h : forward declare Diagram
8809         * objects/SADT/annotaion.c : use g_random_double()
8811 2002-09-26  Lars Clausen  <lrclause@cs.uiuc.edu>
8813         * app/modify_tool.c: Made motion not happen until sufficiently
8814         large or past double-click interval, to avoid accidental moving
8815         when doubleclicking.  Got the double-click time right, and fixed
8816         some issues with release.  There are some corner cases that may
8817         exhibit strange behaviour, will look at those later.  Nah, let's
8818         not care about those, they are rare and not dangerous.
8820 2002-09-26  Cyrille Chépélov  <cyrille@chepelov.org>
8822         * app/layer_dialog.c: 
8823         * app/load_save.c: 
8824         * plug-ins/dxf/dxf-import.c: 
8825         * plug-ins/python/pydia-diagram.c: 
8826         * lib/diagramdata.c:
8827         * lib/diagramdata.h:
8828         Improved the consistency of the obj->parent_layer backlinks (esp.
8829         during reloads)
8831         * lib/Makefile.am:
8832         * lib/dummy_dep.h:
8833         * lib/dynamic_obj.[ch] (NEW):
8834         * app/Makefile.am:
8835         * app/app_procs.c: 
8836         * app/dynamic_refresh.[ch] (NEW):
8837         * objects/Misc/analog_clock.c: 
8838         Added support for dynamic refresh (animated objects).
8839                 
8840 2002-09-25  Cyrille Chépélov  <cyrille@chepelov.org>
8842         Patch from Owen Taylor <otaylor@redhat.com>:    
8843         * doc/en/Makefile.am:
8844         * doc/en/dia-manual.sgml:
8845         * doc/en/usage-objects.sgml:
8846         * doc/en/usage-quickstart.sgml:
8847         * doc/pl/Makefile.am:
8848         * doc/pl/dia-manual.sgml:
8849         * doc/pl/usage-objects.sgml:
8850         * doc/pl/usage-quickstart.sgml:
8852         - Change the DTD declration from an outdated GNOME one to a
8853         standard DTD.
8854         
8855         - Remove close tags for <graphics> which aren't allowed for
8856         docbook SGML
8857         
8858         - A hacky fix for a problem where some versions of db2html don't
8859         create *.css files. (If *.css doesn't match anything, then you get
8860         the global explicitely.)
8862         (Closes: #92061)
8863         
8864 2002-09-24  Cyrille Chépélov  <cyrille@chepelov.org>
8866         * objects/custom/custom_object.c: 
8867         * objects/custom/shape_info.[ch]: GE_TEXT display lists elements 
8868         were never properly prepared for use when reloading a shape with
8869         <svg:text> elements. Thanks to Scott Frazer <frazer@nc.rr.com> for
8870         reporting the problem and coming up with a fix! (Closes: #93974)
8872         * app/menus.c: patch from Alan Horkan <horkana@tcd.ie>: review
8873         the menu shortcuts towards better GNOME HIG compliance (Closes: #87157)
8875         * app/menus.c:
8876         * app/display.c: updated menu item paths Alan's patch had moved.
8877         
8878         * app/interface.c: Fixed a crash when gdk-pixbuf doesn't want to
8879         load the sheet-provided icon (libpng versions mismatch, grrr.).
8880         
8881         * configure.in:
8882         * objects/Makefile.am:
8883         * objects/Misc/Makefile.am (NEW):
8884         * objects/Misc/libmisc.c (NEW):
8885         * objects/Misc/analog_clock.c (NEW):
8886         * objects/Misc/pixmaps/analog_clock.xpm (NEW):
8887         * sheets/Misc.sheet.in: just a little experiment...
8889 2002-09-23  Cyrille Chepelov  <cyrille@chepelov.org>
8891         * plug-ins/xlst/Makefile.am: found a way to silence automake while
8892         not forcing everyone to build using libxslt.
8894         * lib/font.c: 
8895         * lib/message.c:
8896         * lib/object_defaults.c:
8897         * lib/intl.[ch]:
8898         * lib/render.c:
8899         * lib/properties.[ch]:
8900         * lib/propobject.c:
8901         * objects/standard/box.c: 
8902         * objects/UML/state_term.c:
8903         * objects/FS/box.c:
8904         * objects/FS/flow-ortho.c:
8905         * app/app_procs.c:
8906         * app/autosave.c:       
8907         * app/commands.c:
8908         * app/diagram_tree.c:
8909         * app/display.c:
8910         * app/disp_callbacks.c:
8911         * app/export_png.c:
8912         * app/filedlg.c:
8913         * app/lineprops_area.c:
8914         * app/menus.c:  
8915         * app/preferences.c:
8916         * app/render_eps.c:     
8917         * app/sheets.c:
8918         * app/sheets_dialog_callbacks.c:
8919         * plug-ins/xslt/xslt.c:
8920         * plug-ins/metapost/render_metapost.c:
8921         * plug-ins/xfig/xfig-export.c:
8922         * plug-ins/shape/shape-export.c:
8923         
8924         Killed most gcc-3.2 warnings (const-correctness and derived warnings, 
8925         unused variables, mostly)
8927         * app/display.c:
8928         * app/menus.c: enabled GTK Input Methods (thanks Lars!)
8930         * app/Makefile.am: modified run_dia.sh so that we recover the
8931         ability to run a debugger despite libtool's hacks.
8933         * plug-ins/dxf/Makefile.am: 
8934         * app/Makefile.am
8935         "make distcheck" fixes.
8936         
8937 2002-09-19  Lars Clausen  <lrclause@cs.uiuc.edu>
8939         * objects/UML/uml.c (uml_get_operation_string): Patch from Mauf
8940         <mfranzoni@madd.it>:  Check for the type being NULL.
8942 2002-09-16  Lars Clausen  <lrclause@cs.uiuc.edu>
8944         * app/render_eps.c (set_font): Re-tweaked font size for printing.
8946 2002-09-12  Cyrille Chepelov  <cyrille@chepelov.org>
8948         Patch from Angus Ainslie <angusa@deltatee.com>:
8949         * plug-ins/dxf/dxf-import.c:
8950         * plug-ins/dxf/autocad_pal.h: Import from visio 2002 improvements.
8952         (plus a couple extra fixes by me, such as the removal of printf's,
8953         adapting for recent changes, and killed a couple warnings) 
8955         * app/authors.h: a 60K patch isn't insignificant, is it?
8956         
8957 2002-09-09  Tor Lillqvist  <tml@iki.fi>
8959         * configure.in: Check for both pangoft2 (using PKG_CHECK_MODULES,
8960         as before) and -lfreetype (using AC_CHECK_LIB). At least on
8961         Solaris with Sun's compiler (Forte C), you need to link also the
8962         dia application with -lfreetype, even if it is implicitly linked
8963         to by -lpangoft2. Rename FREETYPE_CFLAGS and _LIBS to PANGOFT2_*,
8964         which is what they actually mean. Use FREETYPE_LIBS for
8965         -lfreetype.
8967         Don't look for libsunmath if isinf() is not found in math.h (as on
8968         Solaris). The sunmath library is part of Forte C and not present
8969         on all machines. Besides, even if isinf was found in libsunmath,
8970         we didn't use it in the Makefile.am.
8971         
8972         Fix a couple of bashisms.
8974         AC_SUBST also Z_LIBS, need to link the dia application to -lz,
8975         too, on Solaris with Forte C.
8977         Don't try to use the gcc flags with other compilers.
8978         DIA_CHECK_CFLAG gives a false indication that Forte C understands
8979         the gcc -f switches, but in fact they get interpreted meaning
8980         something completely different.
8982         Define the automake conditional HAVE_CGC.
8983         
8984         * app/Makefile.am (dia_LDADD): Add Z_LIBS and FREETYPE_LIBS.
8986         Use -export-dynamic only with gcc.
8988         * */Makefile.am
8989         * */*/Makefile.am: Modify according to the FREETYPE_CFLAGS -> 
8990         PANGOFT2_CFLAGS rename.
8992         * lib/geometry.h: Drop HAVE_SUNMATH_H and <sunmath.h> per above.
8993         
8994         * lib/dia_xml.c: Include geometry.h for the isinf() stuff on
8995         Solaris.
8997         * lib/paper.c: Workaround for gccism: Can't use inline this way with
8998         Forte C, either.
9000 2002-09-08  Cyrille Chepelov  <cyrille@chepelov.org>
9002         * lib/text.c(set_string): fixed a memory leak (char* ain't no
9003         std::auto_ptr<char> !).
9005         * app/display.[ch]:
9006         * app/interface.[ch]:
9007         * app/ddisp_callbacks.[ch]: Added some basic support for input 
9008         methods (GtkIMContext-based)
9010         * lib/Makefile.am:
9011         * app/Makefile.am: made libdia a shared object (per Tor
9012         Lillqvist's suggestion/request), to cope for platforms with a less
9013         than par dynamic library loader.
9015         * app/display.c: disabled the input method menu (I really don't
9016         see where and how to put them. Blame Frozen Bubble )
9017         
9018 2002-09-06  Lars Clausen  <lrclause@cs.uiuc.edu>
9020         * objects/flowchart/box.c (box_update_data): Made resizing
9021         possible again (only set width & height when resized too small).
9023         Patch from Soeren Sandmann <sandmann@daimi.au.dk>:
9025         * app/disp_callbacks.c (ddisplay_canvas_events): Handle
9026         GdkScrollEvents.
9027         
9028 2002-09-05  Cyrille Chepelov  <cyrille@chepelov.org>
9030         * app/authors.h: now showing Akira TAGOH's name in the native script.
9032 2002-09-01  Lars Clausen  <lrclause@cs.uiuc.edu>
9034         * plug-ins/xslt/xslt.c: Removed glib warning for unset
9035         DIA_PLUGIN_PATH.
9037 2002-09-01  Cyrille Chepelov  <cyrille@chepelov.org>
9039         * plug-ins/svg/render_svg.c: Applied (reversed...) patch from
9040         Mike Sowka <msowka@rogers.com>. This fixes a problem with the
9041         sweep flag in arcs.
9043 2002-08-31  Lars Clausen  <lrclause@cs.uiuc.edu>
9045         * objects/UML/class.c: Fixed showing of empty stereotypes and got
9046         the string placed correctly.
9048 2002-08-30  Hans Breuer  <hans@breuer.org>
9050         * lib/font.c (dia_font_get_style) : don't shift already
9051         shifted DIA_FONT values.
9053         * lib/libdia.def : updated externals
9055         * app/disp_callbacks.c : on win32 GdkEventKey::string already
9056         is in UTF-8. (Longterm this probably should be handled on the
9057         gtk api level)
9059         * app/command.[hc] app/display.[hc] app/menus.c : add code to 
9060         switch display renderers again. The libart renderer is very 
9061         useful for win9x with it's limited GDI.
9063         * app/render_gdk.c : use g_warning instead of printf which gets
9064         nowhere on win32 (non console apps)
9066         * app/render_libart.c : make it compile without FREETYPE
9068         * objects/makefile.msc plug-ins/makefile.msc : added clean target
9070 2002-08-29  Lars Clausen  <lrclause@cs.uiuc.edu>
9072         * app/render_eps.c (postscript_draw_contour): Debugging statement
9073         that allowed me to figure out font problems.
9075         * lib/widgets.c (dia_font_selector_set_styles): Use radio menu
9076         items for font styles.
9078         * objects/FS/flow-poly.c: 
9079         * objects/FS/flow-ortho.c: 
9080         * objects/FS/flow.c: Further conversion away from GTK dialogs.
9081         Can't set a default label right now:(
9083         * app/interface.c (fill_sheet_wbox): Added initialization for mask.
9085 2002-08-27  Cyrille Chepelov  <cyrille@chepelov.org>
9086         Patch from Andrew Ferrier  <andrew@new-destiny.co.uk>:
9088         * Makefile.am: rules relating to AUTHORS and THANKS
9089         altered.
9090         * AUTHORS: file content changed to more accurately
9091         reflect guideline requirements.
9092         * TODO: warning added about Gnome BTS.
9093         * KNOWN_BUGS: warning added about Gnome BTS.
9095         ---
9097         * AUTHORS: added full copyright info.
9098         * mkauthors-placeholder: (removed) 
9099         
9100 2002-08-27  Lars Clausen  <lrclause@cs.uiuc.edu>
9102         * app/paginate_psprint.c (print_page): Fixed text printing after
9103         tip from Dov Grobgeld.
9105 2002-08-26  Lars Clausen  <lrclause@cs.uiuc.edu>
9107         * app/paginate_psprint.c (print_page): Fixed color of clip
9108         region.
9110 2002-08-26  Cyrille Chepelov  <cyrille@chepelov.org>
9112         * sheets/Makefile.am: enabled intltool-merge translation cache for
9113         sheets.
9115         * Makefile.am:
9116         * mkauthors-placeholder:
9117         * AUTHORS: revived that file (in a placeholder form) so that
9118         automake stops yelling.
9119         (derived from a patch by Andrew Ferrier <andrew@new-destiny.co.uk>) 
9120         (Closes: #91144)
9122         Heh, by the way, thanks Christophe. I feel better now.
9123         
9124 2002-08-25  Christophe Merlet  <christophe@merlet.net>
9126         * app/command.c: Removed invalid multibyte sequence in Chepelov.
9128 2002-08-24  Lars Clausen  <lrclause@cs.uiuc.edu>
9130         * lib/dia_image.c (dia_image_rgb_data): 
9131         Bugfixes in image data retrieval.
9132         
9133         * app/render_eps.c: Refactoring of new_*_renderer.
9135 2002-08-23  Lars Clausen  <lrclause@cs.uiuc.edu>
9137         * app/render_eps.c: 
9138         * lib/dia_image.h: 
9139         * lib/dia_image.c: Support for rowstride != width (odd width images)
9141 2002-08-20  Lars Clausen  <lrclause@cs.uiuc.edu>
9143         * lib/paper.c (get_paper_info): Fixed NULL prefs problem.
9144         * plug-ins/xfig/xfig-import.c: Removed assertion.
9146 2002-08-18  Lars Clausen  <lrclause@cs.uiuc.edu>
9148         * lib/paper.c: Removed app/preferences.h reference.
9150 2002-08-14  Lars Clausen  <lrclause@cs.uiuc.edu>
9152         * plug-ins/svg/svg-import.c: 
9153         * plug-ins/xfig/xfig-import.c: 
9154         * lib/Makefile.am (libdia_a_SOURCES): 
9155         * objects/standard/Makefile.am (libstandard_objects_la_SOURCES): 
9156         * lib/create.h:
9157         * objects/standard/create.h:
9158         * objects/standard/polygon.c (polygon_create): 
9159         * objects/standard/polyline.c (polyline_create): 
9160         * objects/standard/beziergon.c (beziergon_create): 
9161         * objects/standard/bezier.c (bezierline_create): 
9162         Moving create.h into lib.
9164 2002-08-13  Lars Clausen  <lrclause@cs.uiuc.edu>
9166         * app/render_libart.[ch]: Work on PNG font export.  Something's
9167         still fishy with the scaling, I don't get it.
9169         * app/display.c: 
9170         * app/interface.c: Replaced broken zoom combo with entry+menu.
9171         Now works beautifully.  Removed WITHOUT_ZOOM_COMBO stuff.
9173         * app/render_gdk.c (get_text_width): Checks for validity of text.
9174         Temporary help while debugging input -- should only activate on
9175         invalid input.
9177         * objects/SADT/annotation.c: 
9178         * objects/GRAFCET/transition.c: 
9179         * objects/FS/function.c: Removal of gtk.h include.
9181         * objects/UML/state.c (state_load): Warnings about using State
9182         object for initial/final states.
9184         * plug-ins/cgm/cgm.c (init_fonts): Proper Pango interfacing.
9186 2002-08-12  Lars Clausen  <lrclause@cs.uiuc.edu>
9188         * app/render_eps.c: Text rendering that scales correctly.  Too bad
9189         the standard fonts don't get selected right.
9191 2002-08-09  Lars Clausen  <lrclause@cs.uiuc.edu>
9193         * lib/diagramdata.h: 
9194         * lib/paper.c (get_paper_info): 
9195         * lib/paper.h: 
9196         * plug-ins/xfig/xfig-import.c: 
9197         Committed before testing.  I am so embarrased.  This compiles, now
9198         that the includes are in the right order.
9199         
9200         * app/diagram.c (diagram_init): 
9201         * app/app_procs.c (do_convert): 
9202         * app/preferences.h: 
9203         * lib/diagramdata.h: 
9204         * lib/diagramdata.c (new_diagram_data): 
9205         * lib/paper.h: 
9206         * lib/paper.c (get_paper_info): 
9207         Moved new_diagram part of prefs into lib/diagramdata.h.  More
9208         could be done in new_diagram_data() now.
9210 2002-08-08  Lars Clausen  <lrclause@cs.uiuc.edu>
9212         * app/render_eps.c: Better scaling of fonts at non-normal zoom.
9214 2002-08-07  Cyrille Chepelov <cyrille@chepelov.org>
9216         * configure.in: removed silly user-visible comment
9218         (actually, this is a dummy entry before I manually run nemo; for
9219         some dist-upgrade related reason, this morning's run aborted before
9220         the snapshots were created)
9221         
9222 2002-08-06  Lars Clausen  <lrclause@cs.uiuc.edu>
9224         * objects/network/wanlink.c: 
9225         * objects/network/bus.c: 
9226         stdprop compliance!
9228         * objects/custom/custom_object.c: 
9229         * objects/network/wanlink.c: 
9230         * objects/flowchart/parallelogram.c: 
9231         * objects/flowchart/ellipse.c: 
9232         * objects/flowchart/diamond.c: 
9233         * objects/flowchart/box.c: 
9234         Removed GTK defaults stuff.
9235         
9236         * objects/UML/fork.c: 
9237         * objects/UML/object.c: 
9238         * objects/UML/lifeline.c: 
9239         * objects/UML/branch.c: 
9240         * objects/GRAFCET/transition.c: 
9241         * objects/FS/function.c: Removed GTK include.
9243         * objects/FS/flow-ortho.c: 
9244         * objects/FS/flow.c: Made the label behave again.
9245         Also removed GTK defaults stuff.
9247 2002-08-06  Hans Breuer  <hans@breuer.org>
9249         * app/autosave.c : ported to GDir which is the improved
9250         cross platform replacement for <dirent.h>
9252         * app/makefile.msc : build autosave.obj
9254         * app/font.c : some (bad?) code calls 
9255         dia_font_scaled_decent() not only with empty string but 
9256         with NULL. Handle it gracefully.
9258         * lib/paper.c : don't depend on ../app. Although IMO
9259         this shouldn't be allowed on any platform it is only
9260         disabled for win32, where it simply doesn't work
9261         this way
9263         * lib/widget.c (strcase_equal) : pass char* to g_strcasecmp()
9265         * objects/fs/flow.c : conditionalize debug spew, disabled
9266         and 'ported' to use g_print. Simple printf won't work with
9267         standard win32 gui apps, may even crash them.
9269         * plug-ins/makefile.msc : DISABLED svg-import cause it
9270         depends on ../objects/custom. This not only break the
9271         build for all non ELF systems but IMO also isn't acceptable
9272         from a design point of view. See dia-list mail on subject.
9274         * plug-ins/python/makefile.msc :
9275           plug-ins/python/python.c : remove all references to dirent    
9277 2002-08-05  Cyrille Chepelov  <cyrille@chepelov.org>
9279         * configure.in: added ro to ALL_LINGUAS
9281         * po-checktrans:
9282         * po-checktrans.py:
9283         * ../translation-graphs/transgraph.py: added support for fuzzy
9284         translations. Enlarged the graphs.
9286 2002-08-05  Lars Clausen  <lrclause@cs.uiuc.edu>
9288         * app/disp_callbacks.c (ddisplay_canvas_events): Now translates
9289         key events according to locale.  No clue if this works for
9290         advanced stuff.
9292 2002-08-04  Lars Clausen  <lrclause@cs.uiuc.edu>
9294         * lib/text.c: Various UTF8 related fixes, in particular in
9295         deleting.  Text_insert_char is fine, far as I can tell.
9297         * app/interface.c (create_display_shell): 
9298         * app/commands.c: Now uses gtk_clipboard functions, for they are
9299         much simpler.  Also handles Win32 clipboard.  Non-ascii chars
9300         don't seem to get handled correctly by text_insert_char in
9301         lib/text.c.
9302         
9303         * app/commands.c (received_selection_handler): Got utf8 handling
9304         on paste, and individual char handling out of commands.c.  Pasting
9305         non-ASCII is still broken, somehow.  It's all lib/text.c's fault.
9307         * lib/message.c (gtk_message_internal): Message dialog re-shown
9308         when new message appears.  Maybe it should even move to top?
9310         * lib/font.c: 
9311         * lib/widgets.c: 
9312         * app/render_eps.c (create_eps_renderer): Fonts now lowercase
9313         (again) and case-insensitive.
9315         * objects/GRAFCET/condition.c (CONDITION_FONT): Changed to
9316         BASIC_SANS_FONT. 
9318 2002-08-02  Lars Clausen  <lrclause@cs.uiuc.edu>
9320         * app/commands.c (edit_cut_text_callback): 
9321         * lib/text.c (text_delete_all): Now functioning undo for text cut.
9322         
9323         * app/commands.c (edit_cut_text_callback): Now removes text.
9324         Undo is broken, though.
9326 2002-08-01  Lars Clausen  <lrclause@cs.uiuc.edu>
9328         * app/diagram.c (diagram_update_menu_sensitivity): 
9329         Making cut_text active.
9330         
9331         * app/commands.h: 
9332         * app/commands.c: Using PROP_TYPE_TEXT to find text to copy to
9333         clipboard.  Also removed AA callback.   
9335 2002-08-01  Lars Clausen  <lrclause@cs.uiuc.edu>
9337         * objects/chronogram/chronoref.c: 
9338         * objects/chronogram/chronoline.c: 
9339         * objects/SADT/annotation.c: 
9340         * objects/SADT/arrow.c: 
9341         * objects/SADT/box.c: 
9342         * objects/GRAFCET/vergent.c: 
9343         * objects/GRAFCET/vector.c: 
9344         * objects/GRAFCET/step.c: 
9345         * objects/GRAFCET/condition.c: 
9346         * objects/GRAFCET/action.c: 
9347         * objects/ER/participation.c: 
9348         * objects/ER/relationship.c: 
9349         * objects/ER/entity.c: 
9350         * objects/ER/attribute.c: 
9351         Removing unnecessary GTK references.
9353 2002-07-31  Lars Clausen  <lrclause@cs.uiuc.edu>
9355         * objects/standard/image.c: 
9356         * objects/standard/textobj.c: 
9357         * objects/standard/ellipse.c: 
9358         * objects/standard/polygon.c: 
9359         * objects/standard/beziergon.c:
9360         * objects/standard/box.c: 
9361         Making default default properties.
9362         
9363         * objects/standard/image.c: 
9364         * objects/standard/arc.c: 
9365         * objects/standard/box.c: 
9366         * objects/standard/zigzagline.c: 
9367         * objects/standard/polyline.c: 
9368         * objects/standard/line.c: 
9369         * objects/standard/ellipse.c: 
9370         * objects/standard/polygon.c: 
9371         * objects/standard/beziergon.c: Removing vestigal GTK stuff.
9373         * lib/object_defaults.c (dia_object_default_create): 
9374         * lib/proplist.c: 
9375         * lib/properties.h: 
9376         * lib/object.c (object_copy_using_properties): 
9377         * lib/propdialogs.c: 
9378         * lib/propinternals.h: 
9379         * lib/propobject.c (object_create_props_dialog)
9380         (object_copy_props): 
9381         Removing the standard (toolbox) properties from defaults dialogs.
9383 2002-07-30  Lars Clausen  <lrclause@cs.uiuc.edu>
9385         * lib/font.c (dia_font_scaled_string_width) 
9386         (dia_font_scaled_ascent, dia_font_scaled_descent): Account for
9387         zoom factor.
9388         * lib/text.c (text_calc_boundingbox): Take descent into account.
9390         * objects/standard/bezier.c (bezierline_draw): 
9391         * lib/render.c (draw_bezier_with_arrows): 
9392         Better arrow drawing for beziers.  Doesn't change the mouse-click
9393         area either.
9395         * lib/arrows.h: Some const-ness.
9397         * lib/arrows.c (calculate_arrow_point): Initialize zero-length moves.
9399         * lib/render.c (draw_arc_with_arrows): 
9400         * objects/standard/arc.c (arc_draw): Better arrow drawing for
9401         arcs.  Doesn't change the mouse-click area yet.
9403         * app/menus.c: Forgotten fix:  Redraw menu item for non-Gnome.
9405         * lib/render.h: 
9406         * lib/render.c: 
9407         Arc arrow prework.
9409 2002-07-29  Lars Clausen  <lrclause@cs.uiuc.edu>
9411         * app/group.c (group_draw): Forgotten commit: Groups to draw as
9412         objects (using default routines).
9414         * app/object_ops.h: 
9415         * app/diagram.h: 
9416         * lib/diagramdata.h: 
9417         * lib/diagramdata.c (layer_find_closest_connectionpoint): 
9418         * objects/standard/zigzagline.c (zigzagline_move_handle): 
9419         * app/diagram.c (diagram_find_closest_connectionpoint): 
9420         * plug-ins/python/pydia-diagram.c
9421         (PyDiaDiagram_FindClosestConnectionPoint):
9422         * app/object_ops.c (object_connect_display) 
9423         (object_find_connectpoint_display) 
9424         * app/create_object.c (create_object_button_press) 
9425         (create_object_motion): 
9426         * app/modify_tool.c (modify_motion): 
9427         Adding object param to allow connectionpoint and handle coinciding.
9429         * objects/standard/zigzagline.c (zigzagline_check_orientation): 
9430         Fixing minor problems.
9432         * objects/standard/ellipse.c (ellipse_update_data): 
9433         Added direction hints.
9435         * lib/diagramdata.c: 
9436         * lib/object.c: 
9437         * lib/object.h: 
9438         * lib/diagramdata.h: 
9439         * objects/standard/zigzagline.c: 
9440         First working example of zigzagline hints, currently only between
9441         Box and Zigzagline.
9443 2002-07-27  Steffen Macke <sdteffen@web.de>
9445         * plug-ins/svg/render_svg.c: added support for rounded
9446         rectangles (fixes #69053 if compile with
9447         -DNEW_RENDER_OPS)
9448         * object/custom/shape_info.[c|h]: made parse_style and
9449         parse_path accessible for svg plug-in
9450         * plug-ins/svg/Makefile.am:
9451         * plug-ins/svg/svg.c:
9452         * plug-ins/svg/svg-import.c(new): added SVG import filter
9454 2002-07-27  Lars Clausen  <lrclause@cs.uiuc.edu>
9456         * objects/standard/box.c: 
9457         * objects/standard/zigzagline.c (zigzagline_move): 
9458         More work on zigzagline hints.
9460 2002-07-26  Lars Clausen  <lrclause@cs.uiuc.edu>
9461         * lib/connectionpoint.h: 
9462         Hints for zigzaglines.
9464         * app/properties.c (properties_show): 
9465         * app/defaults.c (defaults_show): 
9466         * lib/properties.h: 
9467         * lib/propobject.c (object_create_props_dialog): 
9468         * lib/object.h: 
9469         * objects/FS/flow-poly.c: 
9470         * objects/network/wanlink.c: 
9471         * objects/network/bus.c: 
9472         * objects/UML/class.h: 
9473         * objects/UML/class_dialog.c: 
9474         * objects/UML/association.c: 
9475         Start of removing toolbox props from props dialogs.
9476         
9477         * lib/widgets.c: 
9478         * lib/arrows.h: 
9479         * app/lineprops_area.c (dia_arrow_chooser_new): 
9480         * lib/arrows.c: Two new arrows: Concave, filled and blanked.
9482         * app/create_object.c: 
9483         * app/modify_tool.c: 
9484         * app/cursor.h: 
9485         * app/cursor.c: 
9486         More cursor change.
9488 2002-07-25  Lars Clausen  <lrclause@cs.uiuc.edu>
9490         * app/preferences.c: 
9491         * lib/paper.c: 
9492         * app/diapagelayout.c: 
9493         New prefs selector kind PREF_CHOICE chooses between a list of
9494         strings.  Used for picking default paper.
9495         
9496         * app/preferences.c (prefs_data): 
9497         * lib/paper.c (get_paper_info): Added prefs setting for
9498         is_portrait.
9500         * lib/render.c (draw_polyline_with_arrows): Handles degenerate
9501         line segments at the ends (bug #86603).
9503 2002-07-25  Lars Clausen  <lrclause@cs.uiuc.edu>
9505         * objects/standard/zigzagline.c (zigzagline_copy): Fix for bug
9506         #60324: Now calls update_data after copy.
9508         * app/interface.c (fill_sheet_wbox): Better fix for bug #88601:
9509         Now doesn't steal selection from non-object tools.
9511 2002-07-24  Lars Clausen  <lrclause@cs.uiuc.edu>
9513         * app/commands.c (help_manual_callback): Uses BROWSER environment
9514         variable when available.
9516 2002-07-23  Lars Clausen  <lrclause@cs.uiuc.edu>
9518         * app/interface.c (fill_sheet_wbox): Fix for bug #88601: Select an
9519         object from the new sheet when changing.
9521         * app/app_procs.c (app_init): Uses more standard size icon, from
9522         patch #56433.  Keeping old icon as dia_gnome_icon_large.png.
9524 2002-07-22  Lars Clausen  <lrclause@cs.uiuc.edu>
9526         * objects/UML/implements.c (implements_update_data): 
9527         * objects/UML/realizes.c (realizes_update_data): 
9528         * objects/UML/dependency.c (dependency_update_data): 
9529         Test for null strings before calling on ascent.
9531         * objects/UML/realizes.c (realizes_draw): 
9532         * objects/UML/message.c (message_draw): 
9533         * objects/UML/generalization.c (generalization_draw): 
9534         * objects/UML/dependency.c (dependency_draw) 
9535         * objects/UML/constraint.c (constraint_draw): 
9536         * objects/GRAFCET/condition.c (condition_draw): 
9537         * objects/UML/association.c (association_draw): 
9538         * objects/FS/flow-ortho.c (orthflow_draw): 
9539         * objects/FS/flow.c (flow_draw): Change to use
9540         draw_foo_with_arrows.  Pretty pretty arrows.  Yay me!
9542         * lib/render.h: 
9543         * lib/arrows.c (calculate_arrow_point): 
9544         * lib/arrows.h: 
9545         * lib/render.c: 
9546         * objects/standard/zigzagline.c:
9547         * objects/standard/polyline.c:
9548         * objects/standard/line.c: Work towards better arrow drawing.
9550 2002-07-21  Lars Clausen  <lrclause@cs.uiuc.edu>
9552         * objects/UML/state.c: Starting phase-out of State object as
9553         initial/final state (which never worked right).
9555         * app/app_procs.c (app_init): --version command line option for
9556         non-Gnome.
9558         * configure.in: Slight improvement in GETTEXT_PACKAGE handling.
9560 2002-07-19  Lars Clausen  <lrclause@cs.uiuc.edu>
9562         * app/render_eps.c: Removed debugging info.
9564         * lib/font.c (dia_font_scaled_ascent, dia_font_scaled_descent):
9565         Kludge to make ascent and descent work for empty strings.  Won't
9566         work when using non-ASCII fonts.  Better would be to get a
9567         PangoFont and ask directly.
9569         * configure.in: Simple define of GETTEXT_PACKAGE, and some updates
9570         of the init stuff.
9572         * app/render_gdk.c (get_text_width): Fixed use of wrong string.
9573         Cursor now better.
9575 2002-07-18  Lars Clausen  <lrclause@cs.uiuc.edu>
9577         * plug-ins/xfig/xfig-export.c: First use of draw_object render
9578         function: All shapes are now groups in XFig export.
9580         * lib/diagramdata.c (normal_render): 
9581         * lib/render.c: 
9582         * lib/render.h: 
9583         * app/display.c (ddisplay_obj_render): 
9584         New render function for drawing objects, allows renderers to group
9585         or otherwise specially handle objects.  We may want to reconsider
9586         calling it in app/display.c, as we 'know' the object draw function
9587         is the default one there.
9589         * lib/Makefile.am: Removed extra \ that broke stuff.
9591         * plug-ins/xfig/xfig-import.c: 
9592         Spline import for xfig.  Not perfect.
9594         * objects/standard/create.h: 
9595         * objects/standard/bezier.c (bezierline_create): 
9596         * lib/bezier_conn.c: 
9597         * lib/beziershape.c (beziershape_set_points): 
9598         * lib/bezier_conn.h: 
9599         * lib/beziershape.h: 
9600         Support for creating beziers non-interactively.
9602 2002-07-17  Lars Clausen  <lrclause@cs.uiuc.edu>
9604         * plug-ins/xfig/xfig-import.c: Support for polygons and
9605         polylines.  Special warning handling system removed.
9607         * lib/message.c (gtk_message_internal): Fixed bug involving
9608         closing message window and then getting repeated message.
9610         * Makefile.am: 
9611         * autogen.sh: 
9612         * configure.in (GETTEXT_PACKAGE): 
9613         Update based on bug #88199.  Hopefully this doesn't break too much
9614         intl stuff.
9616         * dia.desktop.in (_Comment): Changed after suggestion from
9617         calum.benson@ireland.sun.com (bug 88345)
9619         * app/sheets_dialog_callbacks.c: Fix from Dolores Alia de Saravia
9620         <loli@unsa.edu.ar> that makes user/system distinction better.
9622 2002-07-16  Lars Clausen  <lrclause@cs.uiuc.edu>
9624         * app/render_libart.c: Got the context right, removed crashes.
9626         * app/commands.c: 
9627         * app/commands.h: 
9628         Redraw menu item.
9630         * app/display.c: 
9631         * app/display.h: 
9632         * app/interface.c: 
9633         * app/menus.c: 
9634         Remove libart #defines from most places (still around for png export).
9636         * app/render_libart.h: 
9637         * app/render_libart.c: 
9638         * configure.in (HAVE_LIBART): 
9639         Starting on update of libart stuff for png export (without X).
9641         * app/autosave.h (autosave_check_autosave): 
9642         * app/load_save.h: 
9643         * app/diagram.h: 
9644         * app/Makefile.am (dia_core_files): 
9645         * app/load_save.c: 
9646         * app/diagram.c (diagram_set_modified): 
9647         * app/autosave.c: 
9648         * app/app_procs.c (app_init): 
9649         Autosave support.  No automatic restore yet.
9651 2002-07-16  Lars Clausen  <lrclause@cs.uiuc.edu>
9653         * app/render_eps.c (create_eps_renderer): #ifdef'd a scale
9654         assignment. 
9655         
9656 2002-07-15  Lars Clausen  <lrclause@cs.uiuc.edu>
9658         * app/interface.c (fill_sheet_menu): Tear-off for sheets menu.
9660 2002-07-15  Andrew Ferrier  <andrew@new-destiny.co.uk>
9662         * Fix for 'make dist' etc. --- problem caused by
9663         previous AUTHORS patch.
9665 2002-07-14  Lars Clausen  <lrclause@cs.uiuc.edu>
9667         * plug-ins/cgm/cgm.c (init_fonts): Changed pango_font_map to
9668         pango_context. 
9669         (set_font): NULL check.
9670         
9671 2002-07-12  Lars Clausen  <lrclause@cs.uiuc.edu>
9673         * app/disp_callbacks.c: 
9674         * lib/diamenu.h: 
9675         Addition to the object menus allows check menu items.
9677 2002-07-11  Andrew Ferrier  <andrew@new-destiny.co.uk>
9679         * HACKING: completely changed to bring up-to-date.
9680         * AUTHORS: file needs REMOVING from CVS as now
9681           dynamically generated.
9682         * app/authors.h: split into subcategories for original
9683           authors, maintainers, etc.
9684         * app/app_procs.c: --credits rewritten to support new
9685           app/authors.h
9686         * app/commands.c: no changes to about box code, comment
9687           added though.
9688         * Makefile.am: added rule for AUTHORS. I'm still
9689           inexperienced with automake, it seems to work, but
9690           for AUTHORS-related bugs, look at this change first.
9692 2002-07-10  Lars Clausen  <lrclause@cs.uiuc.edu>
9694         * plug-ins/Makefile.am (SUBDIRS): Just realized why my hack didn't
9695         work.  Back to including xslt dir always.
9697         * objects/UML/uml.c: 
9698         * objects/UML/class.h: 
9699         * objects/UML/class_dialog.c: 
9700         * objects/UML/class.c: Patch from
9701         <mattam@netcourrier.com>:  Adds comment visibility switch, also
9702         fixes various bugs.
9704         Big patch from Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
9705         for state/fork/activity stuff.
9706         * objects/UML/state.c: Removed old draw_rounded_rectangle code.
9707         * objects/UML/Makefile.am:
9708         * objects/UML/uml.c:
9709         * sheets/UML.sheet.in: Added new objects activity, fork,
9710           state_term.
9711         * objects/UML/pixmaps/state_term.xpm:
9712         * objects/UML/state_term.c: New, only initial/final states.
9713         * objects/UML/pixmaps/activity.xpm:
9714         * objects/UML/activity.c: New, activity state.
9715         * objects/UML/pixmaps/fork.xpm:
9716         * objects/UML/fork.c: New, fork/join bar.
9717         * objects/UML/pixmaps/state.xpm: state icon.
9719         
9720         * doc/diagram.dtd: 
9721         * doc/shape.dtd: Patch from "Dolores Alia de Saravia"
9722         <loli@unsa.edu.ar> to add dia: to diagram.dtd elements and add
9723         svg:text to shape.
9725 2002-07-07  Lars Clausen  <lrclause@cs.uiuc.edu>
9727         * plug-ins/Makefile.am (SUBDIRS): Made the XSLT dir depend on
9728         detecting XSLT
9730         * app/Makefile.am: Commented out the diaconv parts while it's not
9731         used anyway.  To come back later.
9733         * configure.in (HAVE_FREETYPE): 
9734         * app/app_procs.c: 
9735         * app/render_eps.h: 
9736         * app/render_eps.c: Support for printing with freetype, better
9737         encapsulated now.  Renders the text nicely, but ignores font
9738         setting.  Requires pangoft2 to get the font outline, but non-text
9739         objects can still be rendered without it.
9741         * app/commands.h: 
9742         * app/commands.c (objects_place_up_callback) 
9743         (objects_place_down_callback): 
9744         * app/diagram.h: 
9745         * app/diagram.c (diagram_place_down_selected) 
9746         (diagram_place_up_selected): Starting support for moving objects
9747         one level up/down.
9749         * app/menus.c: Removed character/numeral shortcuts.
9751 2002-07-06  Hans Breuer  <hans@breuer.org>
9753         * makefile.am app/makefile.am lib/makefile.am
9754           objects/makefile.am plug-ins/makefile.am 
9755           plug-ins/python/makefile.am :
9756         added required files for win32 build to EXTRA_DIST
9758         * app/paginate_psprint.c app/render_eps.c 
9759           app/app_procs.c :
9760         wrap (E)PS Renderer into HAVE_FREETYPE, no FreeType
9761         on Pango as currently is on win32 => no PostScript 
9762         anymore.
9764         * lib/widgets.c : undef GTK_DISABLE_DEPRECATED;
9765         use '/* noop */;' for empty case labels; replace
9766         debug spew printf with g_print which is guaranteed 
9767         to work on win32, too.
9769         * lib/font.c (dia_pfd_set_weight) : set 'intermediate' values 
9770         for DIA_FONT_MEDIUM and DIA_FONT_DEMIBOLD as explicit allowed 
9771         in the pango_font_description_set_weight() api documentation
9772         Take care for them in dia_font_get_style() too.
9774         * lib/font.[hc] lib/widget.c objects/custom/shape_info.c
9775           plug-ins/shape/shape-export.c plug-ins/svg/render_svg.c :
9776         rename Obliquity to Slant which appears to be the usual name,
9777         also rename dia_font_get_style_string -> dia_font_get_slant_string
9779         * plug-ins/wmf/wmf.cpp : finally ported to new font api
9781         * lib/prop_attr.c app/render_gdk.c : dont *_unref if NULL
9783         * objects/uml/association.c class.c large_package.c message.c
9784         if g_free() is used g_strdup needs to be used.
9785         * objects/custom/shape_info.c
9786           objects/ER/attribute.c entity.c
9787           objects/standard/image.c 
9788           app/sheets_dialog_callbacks.c : more strdup cleaning
9790 2002-07-05  Lars Clausen  <lrclause@cs.uiuc.edu>
9792         * app/render_eps.c: Non-crashing printing (made the right
9793         context).  Font output still fscked up.
9795 2002-07-05  Andrew Ferrier  <andrew@new-destiny.co.uk>
9797         * app/authors.h: Added file --- now master
9798         location for contributors data.
9799         * app/app_procs.c: Added --credits option.
9800         * app/commands.c: Modified about box to use
9801         app/authors.h.
9803 2002-07-05  Lars Clausen  <lrclause@cs.uiuc.edu>
9805         * app/render_eps.c: First stab at EPS rendering using the contour
9806         code from PAPS.  Crashes.
9808 2002-06-30  Lars Clausen  <lrclause@cs.uiuc.edu>
9810         * app/recent_files.c (recent_file_history_remove): 
9811         Fixed call to g_list_delete_link discarding return value.
9812         
9813         * lib/widgets.c (dia_font_selector_set_styles): 
9814         * lib/font.h (DiaFontWeight): 
9815         * lib/font.c (dia_font_get_style): Revert to DIA_FONT_NORMAL==0
9817 2002-06-30  Cyrille Chepelov  <cyrille@chepelov.org>
9819         Contribution from Alan Horkan <horkana@tcd.ie>: 
9820         
9821         * shapes/Assorted/*
9822         * sheets/Assorted.sheet:
9823         A set of 40 assorted geometric shapes.
9825         * sheets/Assorted.sheet.in:
9826         * sheets/Makefile.am
9827         * shapes/Assorted/Makefile.am:
9828         * shapes/Makefile.am:
9829         * po/POTFILES.in:
9830         * configure.in:
9831         Done the integration job of Alan's shapes. (Translators: have fun!)
9833         * po/dia.pot: refreshed the main potfile.
9834         
9835 2002-06-28  Cyrille Chepelov  <cyrille@chepelov.org>
9837         Patch from Tim Ellis <Tim.Ellis@gamet.com>:
9838         
9839         * objects/UML/class.[ch]:
9840         * objects/UML/class_dialog.c:
9841         changed the number of connection points from a hardcoded value of
9842         8 to a #defined constant
9844         (I changed the constant back from 20 to 8, until we better know
9845         how we'll handle more connection points on the UML class in the
9846         future -- but Tim's patch is a welcome clean-up).
9848 2002-06-26  Cyrille Chepelov  <cyrille@chepelov.org>
9850         * shapes/MSE/demultiplexer.xpm:
9851         * shapes/MSE/node_center.xpm:
9852         * shapes/MSE/multiplexer.xpm:
9853         * shapes/MSE/tacsat.xpm: updated MSE icons (transparency) by Alan
9854         Horkan <horkana@tcd.ie>
9856 2002-06-25  Lars Clausen  <lrclause@cs.uiuc.edu>
9858         * lib/widgets.c: Total rehash of font selector, with font dialog
9859         option, expanding list (not LRU yet), and stuff.
9861 2002-06-25  Cyrille Chépélov  <cyrille@chepelov.org>
9863         * lib/font.h:
9864         * lib/font.c: 
9865         Added a set of new setter/getters, some of them more specially for
9866         the SVG-ish I/O.
9867         
9868         * plug-ins/shape/shape-export.c: (new_shape_renderer),
9869         (destroy_shape_renderer), (set_font), (draw_string):
9870         * plug-ins/svg/render_svg.c: (new_svg_renderer),
9871         (destroy_svg_renderer), (set_font), (draw_string):
9873         Actually exported the font face, style, weight and size (sodipodi
9874         agrees with dia on how a small sample should look like (a sample
9875         0.90 would not even display anyways). Yay !)
9877         Patch from Matthieu Sozeau <mattam@netcourrier.com>:
9879         * plug-ins/xslt/Makefile.am: repaired the mess Cyrille put there.
9881         (end of ChangeLog-less patch)
9883         * objects/custom/shape_info.c (parse_style): now understands the
9884         font-style and font-weight attributes as well. Does not use
9885         anymore dia_font_new_from_legacy_name().
9886         
9887 2002-06-24  Lars Clausen  <lrclause@cs.uiuc.edu>
9889         * objects/standard/textobj.c: Now uses stdprops for defaults.
9891         * lib/font.h: Changed order of DiaFontWeight entries.  Sorry.
9892         * lib/font.c (dia_font_get_style): Style now linear and conversion
9893         simple. 
9895         * lib/widgets.c (dia_font_selector_set_styles): Fixed the style
9896         selector. 
9898 2002-06-24  Cyrille Chepelov  <cyrille@chepelov.org>
9900         * plug-ins/dxf/dxf-import.c:
9901         using dia_font_new_from_style()
9903         Patch from Matthieu Sozeau  <mattam@netcourrier.com>:
9905         * objects/UML/class.[ch]: Added a comment field to class
9906         * objects/UML/uml.[ch]: Added a comment field to attributes,
9907         operations and parameters.
9908         * objects/UML/class_dialog.c: Added code for the new comment
9909         fields.
9910         * plug-ins/xslt/*.xsl: Added some code to handle comments.
9911         * plug-ins/xslt/xslt*.c: Clean up based on Cyrille comments.
9912         Added a $directory parameter for stylesheets so the output is 
9913         in the good place (not in the $PWD).
9915         (end of Patch)
9917         * AUTHORS: added contributors, updated maintainers. Removed the
9918         specific areas of action.
9920         * Patch from Andrew Ferrier <andrew@new-destiny.co.uk>, derived
9921         from a patch by Xing Wang <quixon@gnuchina.org>:
9923         * app/commands.c: help_about_callback now supports
9924         new-style GNOME about box as well as old GTK style. 
9925         code also tidied (Closes: #85726)
9927         (end of Patch)
9929         * app/commands.c: fixed the copyright (it's not all FSF), and
9930         maintainers. Synced contributors list with AUTHORS.
9931                 
9932 2002-06-24  Lars Clausen  <lrclause@cs.uiuc.edu>
9934         * lib/message.c: More work on repeating messages, now with
9935         togglable view.
9937 2002-06-24  Hans Breuer  <hans@breuer.org>
9939         * lib/widget.c : some more bits in place, at least
9940         it does something useful instead of crashing. Much
9941         better - but not all ok :-)
9943 2002-06-23  Lars Clausen  <lrclause@cs.uiuc.edu>
9945         * lib/message.c (gtk_message_internal): First stab at repeating
9946         message dialog.
9948 2002-06-23  Cyrille Chepelov  <cyrille@chepelov.org>
9950         * objects/FS/*.c:
9951         * objects/GRAFCET/*.c:
9952         * objects/SADT/*.c:
9953         * objects/UML/association.c: (one instance forgotten)
9954         * objects/UML/large_package.c: 
9955         * objects/standard/textobj.c:
9956         * lib/attributes.c:
9957         * lib/text.c:
9958         using dia_font_new_from_style()
9960 2002-06-23  Hans Breuer  <hans@breuer.org>
9962         * lib/font.c : giving some love to
9963         dia_font_new_from_legacy_name() that is making
9964         import of old files as painless as possible and
9965         provide an almost exact match where possible.
9966         It does not yet fully work because it interfers
9967         with the Style to DiaStyle conversion which comes
9968         next ...
9970         [Changing these files is only allowed with Dia-0.90]
9971         * broken-files/fonts-0.90.dia : including the
9972         common hard-coded fonts from Dia-0.90. It also
9973         has drawn bounding-boxes for win32 as they were calculated
9974         from the former version (they were all too big).
9975         * broken-files/fonts-0.90-full.dia : all hardcoded
9976         fonts including the asian versions. On my machine
9977         this gives _a lot_ complaining about missing fonts
9978         and a finally a broken file display. Anyone having
9979         all these fonts ?
9980         
9981 2002-06-23  Cyrille Chepelov  <cyrille@chepelov.org>
9983         * objects/chronogram/*.c: 
9984         * objects/custom/custom_object.c:
9985         * objects/ER/*.c:
9986         using dia_font_new_from_style()
9988 2002-06-23  Lars Clausen  <lrclause@cs.uiuc.edu>
9990         * lib/widgets.c (dia_font_selector_set_styles): Improvements to
9991         font selector (stability, insensitivity).
9993         * lib/font.c (dia_font_scaled_build_layout): Removed unworkable
9994         stretching scheme for tweaking, and made scaling scheme faster
9995         (but less precise).
9996         (dia_font_dia_style_to_pango): Oops, % != /.
9998 2002-06-23  Cyrille Chepelov  <cyrille@chepelov.org>
10000         
10001         * patch from Matthieu Sozeau  <mattam@netcourrier.com>:
10003         * plug-ins/xslt : Added an XSLT plugin to export dia files using
10004         XML Stylesheets. The plug-in requires DIA_PLUGIN_PATH to be set.
10005         It includes a small config file to tell it what stylesheets to use.
10007         (end of patch)
10008         
10009         * plug-ins/xslt/xsltdialog.c: modified the dialog to be more 
10010         GTK2.0/HIG compliant (the labels could be slightly more verbose,
10011         perhaps). Added back a couple forgotten _(). Removed //-style
10012         comments.
10013         
10014 2002-06-23  Hans Breuer  <hans@breuer.org>
10016         * lib/plug-ins.c
10017         (dia_plugin_get_name) : don't crash plugin_manager
10018         on name being NULL 
10019         (dia_plugin_load) : reuse the description field to
10020         store the error string if loading fails.
10022         * lib/font.[hc] : starting to beautify the new
10023         font api: proper namespacing, adding convenience
10024         functions like dia_font_new_from_style(), ...
10026         * objects/uml/*.c : use the new convenience functions.
10028         [Next thing I plan to do is changing the other font
10029          functions to take DiaStyle and make Style and 
10030          BASIC_*_FONT vanish. As well as giving some love to
10031          dia_font_new_from_legacy_name().
10032          If anyone want's to help on converting the other
10033          objects to the new api during that, I would highly 
10034          appreciate it.]
10036 2002-06-23  Hans Breuer  <hans@breuer.org>
10038         * lib/font.c : made it compile and small indent fixes.
10039         Is there a code-has-no-effect-so-needs-not-be-valid
10040         with GCC?       
10042         * lib/widgets.c : use g_strcasecmp
10044 2002-06-22  Lars Clausen  <lrclause@cs.uiuc.edu>
10046         * lib/font.c: 
10047         * lib/font.h: 
10048         * lib/widgets.c: Font names sorted, style selector widget
10049         reappeared.  Doesn't select the old style yet.
10051 2002-06-22  Cyrille Chepelov  <cyrille@chepelov.org>
10053         * lib/font.c: one who expects a text's font to be changed shall 
10054         actually request the attributes to apply to the whole range of the
10055         said text... D'oh! 
10057         * lib/font.c: extents computation was wrong.
10059         * lib/font.c: dia_font_get_legacy_name(); g_strconcat works better
10060         if a last NULL parameter is added...
10062         * lib/font.c: extents computation was completely wrong. This looks
10063         much better this time.
10065         * objects/UML/class.c: fixed the various strings positions.
10067         * lib/font.h, and **/*.[ch] (all callers of dia_font_new): used
10068         macros to get the hardcoded base fonts.
10070         * objects/ER/relationship.c: wasn't converted to DiaFont*
10071         
10072 2002-06-22  Hans Breuer  <hans@breuer.org>
10074         * lib/widget.c : dont use backend specific functions
10075         to get on the font_families. Including it would mean
10076         including <windows.h> which breaks due to namespace
10077         pollutions ...
10079         * lib/libdia.def : updated externals
10081         * app/makefile.msc : temporary disabled: -DHAVE_LIBART
10083         * lib/font.c : added empty dia_font_init_instance function,
10084         reformatting of dia_fon_unref to allow to set breakpoint,
10085         dia_fon_build_layout() : dont crash on string==NULL
10087         * lib/text.c (text_set_attributes) : don't unref the wrong font
10089         * lib/widgets.c (dia_fon_selector_set_font) : our hashtable
10090         stores lowercased font names, but dia_font_get_family()
10091         returns mixed case      
10093 2002-06-22  Lars Clausen  <lrclause@cs.uiuc.edu>
10095         * lib/widgets.c: 
10096         * app/render_gdk.c: Patch from Hans Breuer.
10098         * app/Makefile.am (dia_core_files): diaconv commented out for now.
10099         
10100 2002-06-22  Cyrille Chepelov  <cyrille@chepelov.org>
10102         * lib/all files touched yesterday: took into account some of Hans
10103         Breuer's remarks in
10104         http://mail.gnome.org/archives/dia-list/2002-June/msg00257.html
10106         * objects/chronogram/*: 
10107         * objects/custom/*:
10108         * objects/ER/*:
10109         * objects/flowchart/*:
10110         * objects/FS/*:
10111         * objects/GRAFCET/*:
10112         * objects/SADT/*:
10113         * objects/standard/textobj.?:
10114         * objects/UML/*:
10115         converted to the new DiaFonts.
10117         * plug-ins/cgm/*:
10118         * plug-ins/pstricks/*:
10119         * plug-ins/wpg/*:
10120         * plug-ins/dxf/*:
10121         * plug-ins/xfig/*:
10122         Made minimalistic conversions so that they'd at least compile.
10124         * app/render_gdk.c:
10125         * app/render_pixmap.c:
10126         Converted to the new DiaFonts.
10128         * app/app_procs.c
10129         * app/diaconv.c:
10130         * app/render_eps.c:
10131         made the minimal changes so that it would at least build.       
10133         *** At this point, the thing builds on my machine, but segfaults
10134         right away. ***
10135         
10136 2002-06-21  Cyrille Chepelov  <cyrille@chepelov.org>
10138         * configure.in: removed the backend-specific pango pkg_modules
10139         (trivial to add back if needed, when actually needed)
10141         * app/Makefile.am:
10142         * app/*gnomeprint.[ch]: (removed): removed the GNOME-print
10143         renderer. The APIs will have completely changed when we get around
10144         to redo a renderer for it, anyways.
10146         * font.[ch]: rewrote everything from scratch, with a Pango
10147         implementation. Normally, only backend-neutral things should go in
10148         there.
10150         **WARNING**: new rules for managing DiaFont* pointers: these are
10151         reference-counted GObjects. One >must< diafont_ref() and
10152         diafont_unref() as appropriate. I wish I could overload operator=()...
10154         lib/plug-ins.h: bumped up the plug-in API.
10155         
10156         lib/attributes.c: 
10157         lib/dia_xml.c: 
10158         lib/dummy_dep.h
10159         lib/object_defaults:
10160         lib/prop_attr.c: Adapted to the new DiaFont API. This'll change
10161         again tomorrow with GObject.
10162         
10163         lib/widgets.c: Adapted to the new DiaFont API and to Pango.
10165         **** The rest of the tree should be updated as well ****
10166         
10167 2002-06-21  Lars Clausen  <lrclause@cs.uiuc.edu>
10169         * app/render_gdk.h: 
10170         * app/render_gdk.c: 
10171         * app/render_pixmap.c: 
10172         * app/render_pixmap.h: 
10173         * app/render_libart.h: 
10174         * app/render_libart.c: 
10175         * lib/font.h: 
10176         * lib/font.c: Removed freetype stuff (still around in
10177         lib/widgets.c 'cause we might want the font selector widget).
10179 2002-06-20  Cyrille Chepelov  <cyrille@chepelov.org>
10181         * shapes/network/laptop.(xml|shape):
10182         * sheets/network.sheet.in: added Laptop (notebook) PC shape,
10183         contributed by Alan Horkan <horkana@tcd.ie>. (Closes: #82643)
10185 2002-06-17  Hans Breuer  <hans@breuer.org>
10187         * lib/object_defaults.c : #include <libxml/tree.h> not
10188         <tree.h> pointed out by Xing Wang
10190 2002-06-17  Lars Clausen  <lrclause@cs.uiuc.edu>
10192         * lib/color.h (GDK_COLOR_TO_DIA, DIA_COLOR_TO_GDK): 
10193         * lib/widgets.c: 
10194         * app/color_area.c: Update to
10195         gtk_color_selection_*_current_color() fixed bad crash issues, plus
10196         updated color conversions.
10198         * sheets/ER/weakentity.xpm: Accepted patch from
10199         quixon@gnuchina.org to make icon match actual appearance.
10201         * app/recent_files.c: Fixed GNOME recent file problem, thanks to
10202         quixon@gnuchina.org.
10204 2002-06-16  Hans Breuer  <hans@breuer.org>
10206         * lib/plug-in.[hc] : make PlugInInfo opaque again in the 
10207         good tradition of information hiding. Add new function
10208         dia_plugin_get_symbol()
10209         * app/sheets.c app/sheets_dialog_callbacks.c : use it
10211         * app/sheets.c : stop complaining about object_get_type() 
10212         returning NULL. This is a consequence of e.g. disabling 
10213         plug-ins at runtime _and_ it was and is gracefully handled. 
10214         Spitting out g_warning for it isn't appropriate. 
10216         * lib/object.[ch] : removed dead code
10218         * app/plugin-mangager.c : almost complete rewrite for gtk2
10219         using GtkListStore/GtkTreeView
10221         * lib/libdia.def : updated externals
10223         * todo.gtk2 : updated, that is removed already done steps
10225 2002-06-15  Hans Breuer  <hans@breuer.org>
10227         * objects/uml/class_dialog.c : clean some left-over
10228         utf8-mess, return 0 from "focus_out_event" handlers
10229         to avoid asserting in gtk (#78305). Reconstruct 
10230         stereotype/NULL behaviour to avoid rendering empty
10231         stereotypes on classes and member functions
10233         [#56109 - Provide object defaults for StdProp objects,
10234          some remaining issues are discussed in bugzilla]
10236         * lib/object_defaults.c : (new file) manage default properties 
10237         of dia objects. The serialization is done with standard
10238         object methods in a diagram compatible format.
10240         * lib/object.c : add object_registry_foreach() which allows
10241         to iterate over all registered object types
10243         * lib/object.h : added prototypes object_default*() and
10244         object_registry_foreach()
10246         * lib/makefile.am lib/makefile.msc : add new file to build
10248         * lib/libdia.def : export new functions
10250         * app/defaults.c : provide StdProp based defaults if the
10251         ObjectType doesn't implement it's own default functions
10253         * app/create_object.c : through dia_object_default_create()
10254         * app/disp_callbacks.c : same here
10256 2002-06-12  Lars Clausen  <lrclause@cs.uiuc.edu>
10258         * objects/FS/flow-ortho.c (orthflow_get_object_menu): Menu
10259         sensitivity for deleting segments.
10261 2002-06-12  Cyrille Chépélov  <cyrille@chepelov.org>
10263         * app/color_area.c: (color_area_events):
10264         * app/diagram.c: (diagram_destroy):
10265         * app/interface.c: (zoom_activate_callback), (fill_sheet_wbox),
10266         (fill_sheet_menu):
10267         * app/load_save.c: (diagram_data_load):
10268         * app/menus.c: (menus_get_item_from_path):
10269         * app/preferences.c: (prefs_load):
10270         * app/render_gdk.c: (get_text_width):
10271         * lib/arrows.h:
10272         * lib/color.c: (color_convert):
10273         * lib/dia_dirs.c: (dia_config_filename):
10274         * lib/dia_xml.c: (xmlDiaParseFile), (data_type):
10275         * lib/intl.c: (intl_get_language_list):
10276         * lib/message.c: (message):
10277         * lib/message.h:
10278         * lib/paper.c: (get_default_paper):
10279         * lib/plug-ins.c: (this_is_a_plugin), (dia_register_plugins):
10280         * lib/widgets.c: (dia_file_selector_get_file):
10281         * lib/widgets.h:
10282         * objects/standard/image.c: (get_directory):
10284         warningectomy.
10285         
10286 2002-06-12  Lars Clausen  <lrclause@cs.uiuc.edu>
10288         * ChangeLog: Fixed bad UTF-8 mess.  Apologies.
10290 2002-06-11  Lars Clausen  <lrclause@cs.uiuc.edu>
10292         * app/interface.c: sscanf now returns EOF on empty string, so
10293         handle no match for zoom factor better => correct zoom at start.
10295         * app/sheets.c (create_object_pixmap): Tried to display empty error.
10296         (sheets_optionmenu_create): Died when not finding specified
10297         sheet.  Don't think it should.
10299         * objects/UML/association.c: Added patch from osamyn@ulb.ac.be
10300         (bug #84367) to place the text better.
10302 2002-06-11  Cyrille Chepelov  <cyrille@chepelov.org>
10304         * configure.in: Added forgotten libgnomeui-2.0 when --enable-gnome
10305                         
10306         * app/commands.c: Removed unnecessary gnome include. Removed
10307         GNOME-Print support.
10309         * app/menus.h: Removed now unnecessary gnome include.
10310         
10311         * app/sheets_dialog.c: Used Gtk 2.0 stock buttons instead of
10312         GNOME-specific stock buttons
10313         
10314 2002-06-09  Hans Breuer  <hans@breuer.org>
10316         * app/app_procs.c : convert 'Modified diagrams exits'
10317         dialog to use GtkMessageDialog. That gives us:
10318         - icons without Gnome dependency
10319         - much less code, also cross platform
10320         - improved useability ?
10322         * app/color_area.c : the Color Selection Widget looked
10323         quite wrong (alpha problems). Fix it by merging in required
10324         changes stolen from The Gimp cvs
10325         * app/color_area.h : to get the right appearance the maskes
10326         needed to be taken into account
10327         * app/interface.c : adapt to color_area_create changes.
10328         Also remove some dead code and finally remove cvs autexpansion, 
10329         I was bothered enough by irrelevant differences :-)
10331         * app/defaults.c app/properties.c app/dia-props.c : use improved GtkDialog
10332         api, i.e stocks and response to make the GnomeDialog usage
10333         obsolete. Also fixed the issue with closing the 'parent'
10334         before closing the dialog
10336         * app/display.[ch] : removed some dead code and conversion
10337         to new GtkDialog api. Also trying to conform to new HIG
10338         standard http://developer.gnome.org/projects/gup/hig/
10340 2002-06-09  Hans Breuer  <hans@breuer.org>
10342         * lib/makefile.msc : define GTK_DISABLE_DEPRECATED,
10343         build ps-utf8.c
10345         * lib/dia_image.c : gtk_widget_set_default_visual()
10346         remove. It does nothing with Gtk2.
10348         * lib/libdia.def : added ps_unicoder exports
10350         * lib/message.c : remove #GNOME use GtkMessageDialog.
10351         Yeah, Dia gets dialogs wit icons cross-platform.
10353         * lib/prop_geomtypes.c : gtk_spin_button_get_value_as_float()
10354         to gtk_spin_button_get_value()
10356         * lib/prop_inttypes.c : gtk_label_set() -> gtk_label_set_text()
10358         add #undef GTK_DISABLE_DEPRECATED to still use ...
10359         * lib/prop_text.c :  ... GtkText
10360         * lib/prop_widgets.c : ... GtkList
10361         * lib/prop_dialogs.c : ... gtk_signal_connect and more
10362         * lib/widgets.c : ... (too much to list here)
10364         * lib/ps-utf8.c : #include <string.h>
10366 2002-06-08  Cyrille Chepelov  <cyrille@chepelov.org>
10368         * configure.in:
10369         * Makefile.am:  Adapted for gtk2.
10370         Removed dependencies on libunicode, on iconv(), on langinfo().
10372         * acconfig.h: removed (now obsolete)
10374         * lib/charconv.[ch]: removed (superceded by glib)
10375         * lib/ps-utf8.[ch]: removed dependency on charconv.[ch]
10377         * **/*.[ch]: removed (utfchar *), (unichar) and other charconv or
10378         libunicode types for their glib counterparts. Fixed the include
10379         paths for libxml2. Removed all traces of libxml1 or non-UTF8
10380         support (there were remains in objects/uml).
10382         
10383 2002-06-08  Hans Breuer  <hans@breuer.org>
10385         */*.c */*/*.c : remove all the #ifdef *_UTF8_* hell,
10386         only keep the utf-8 clean code cause Dia+Gtk2 now talk it.
10387         Also use g_strdup()'s handling of NULL by returning NULL
10388         again at all places I found (remove unnecessary if's)
10390         * todo.gtk2 : new file to keep notes about gtk2 porting,
10391         further issues and thoughts and some status information.
10392         Also sent to dia-list ('Dia goes Gtk2 ...').
10393         
10394         [make it compile with GTK+ 2.0]
10396         * config.h.win32 : #undef GTK_TALKS_UTF8_WE_DONT,
10397         removed definition of S_ISDIR, S_ISREG and getlogin
10399         * */makefile.msc : Use GTK2 and libxml2
10400         BEWARE: makefile.am, configure.in not yet ported !
10402         * app/app_procs.c app/diagram.c : remove 
10403         gtk_item_factory_dump_rc code, (it wasn't read in again anyway) 
10404         but set use gtk_menu_set_accel_path() on menu creation
10406         * app/color_area.c lib/widgets.c : 
10407         make use of gtk_color_selection_set_has_palette ()
10409         * app/commands.c : gdk_pixbuf_new_from_file wants an 
10410         extra argument. Convert from DIR to GDir usage.
10412         * app/diagram_tree.c(button_press_callback) : need to return 
10413         FALSE in the signal handler to let gtk process it further.
10414         (get_object_name) : don't leak 'prop'
10415         
10416         * app/diapagelayout.c : adapt to GtkTypeInfo changes and handle 
10417         dia_page_layout_destroy() getting called more than once
10419         * app/diaunitspinner.c : GtkEditable -> GtkEntry, 
10420         GtkTypeInfo changes
10422         * app/disp_callbacks.c : gtk_menu_append() -> gtk_menu_shell_append()
10424         * app/display.h : wrap input contexts declarations into #ifdef USE_XIM.
10425         IIRC this code will not compile unchanged when USE_XIM is defined ...
10427         * app/gtk[hv]wrapbox.[hc] : use already ported version from The GIMP 1.3.x
10429         * app/interface.c : there is no widget->klass anymore in Gtk, 
10430         use GTK_WIDGET_GET_CLASS instead. gdk_pixbuf_new_from_file() extra
10431         parameter. Some tweaking of GtkWrapBox usage to get four tools in
10432         a row again.
10433         switch off GTK's double buffering on Dia's canvas. Otherwise we would 
10434         get triple buffering and flicker.
10435         Replace call to GTK private function _gtk_accel_group_attach()
10436         with public gtk_window_add_accel_group()
10438         * app/layer_dialog.c : adapt to GtkTypeInfo changes
10440         * app/load_save.c lib/plug-ins.c lib/sheet.c 
10441           objects/custom/custom.c : 
10442         simplified by using g_file_test()
10444         * app/menus.c : convert from gtk_item_factory_<dump|parse>_rc 
10445         to gtk_accel_map_<save|load>. Also added common stock-icons
10446         to the menu.
10447         
10448         * app/preferences.c : use gtk_button_set_label() instead
10449         of button->child which is gone. Also removed GLIB_CHECK_VERSION.
10451         * app/preferences.c lib/dia_xml.c lib/plug-ins.c :
10452         #ifdef G_OS_WIN32 #include <io.h>, this was formerly done
10453         in config.h.win32
10455         * app/recent_files.c : removed GLIB_CHECK_VERSION
10457         * app/render_eps.c 
10458           plug-ins/metapost/render_metapost.c
10459           plug-ins/pstricks/render_pstricks.c
10460           plug-ins/svg/render_svg.c :
10461         replace getlogin() with g_get_user_name() which always
10462         returns non NULL
10464         * app/render_gdk.c : gdk_region_union_with_rect() modifies
10465         inplace now and returns nothing, also less #hell
10467         * app/render_libart.c : some initial #hell cleaning, SuckFont
10468         still needs to vanish
10470         * app/splash.c : gdk_pixbuf_new_from_file() second arg and
10471         GTK_WINDOW_DIALOG -> GTK_WINDOW_TOPLEVEL
10473         * app/render_pixbuf.c app/sheets.c : plain #hell cleaning
10474         * app/sheets_dialog_callbacks.c : some #hell and adaptions
10475         needed to GtkWrapBox api changes
10478         * lib/charconv.[hc] : removed from build
10479         [changed appropriate]
10480         * lib/prop_inttypes.c lib/prop_text.c : 
10481         all utf-8 cleaning 
10482         * lib/text.c : ported from HEAD but keep original indent
10483         intact. Original was done by Akira TAGOH.
10485         * lib/color.c : GdkColorContext is gone, use GdkColormap instead.
10487         * lib/dia_image.c : gdk_pixbuf_new_from_file() second arg
10489         * lib/dia_xml.c : remove #ifdef GLIB_CHECK_VERSION, it's the
10490         same on all platforms now!
10492         * lib/font.c : still using SuckFont which was an IMPERATIVE FIXME!
10494         * lib/message.c : remove "charconv.h"
10496         * lib/prop_text.c : #define GTK_ENABLE_BROKEN to use GtkText
10498         * lib/plug-in.c :
10499         * lib/sheet.c : convert from DIR to GDir usage
10501         * lib/widgets.c : gtk_menu_(shell_)append and GtkTypeInfo
10503         * lib/widgets.h : include gtk<label|colorseldialog>.h
10506         * objects/fs/flow.c :
10507         * objects/fs/flow-ortho.c : GTK_ENABLE_BROKEN to use GtkText
10509         * objects/custom/custom.c : convert from DIR to GDir usage
10512         * plug-ins/python/makefile.msc : updated for GTK2/Python2.2
10515 2002-05-03  Hans Breuer  <hans@breuer.org>
10517         * lib/dia_xml.c : make the well formed utf8 check
10518         actually work for &#251; (non 7-bit ascii encoding)
10519         and fixed the file re-writing if the check fails.
10520         Thanks to Vitaly Lipatov for noticing the misbehaviour.
10522         * lib/font.c : synchronize #ifdef G_OS_WIN32 with
10523         comment on last ressort font. Thanks to Maxim Sobolev.
10525 2002-06-03  Cyrille Chepelov  <cyrille@chepelov.org>
10527         * sheets/network.sheet.in: corrected a typo in plotter invocation.
10529 2002-06-03  Steffen Macke  <sdteffen@web.de>
10531         * shapes/network/digitizing_board.png:
10532         * shapes/network/digitizing_board.shape:
10533         * shapes/network/plotter.png:
10534         * shapes/network/plotter.shape:
10535         * shapes/network/Makefile.am
10536         * sheets/network.sheet.in: added new plotter and digitizing
10537         board shapes
10538         
10539 2002-06-02  Cyrille Chepelov  <cyrille@chepelov.org>
10541         * lib/font.c: made a symptomatic fix to a segfault reported by 
10542         Jan Keirse <jan.keirse@pandora.be> on a SuSE 7.3 system. This
10543         won't prevent dia from terminating, but should give more
10544         user-friendly information about why did it terminate.
10546         Two patches from <robert.young@dsto.defence.gov.au>:
10547         
10548         * app/display.c: fix the size of the canvas area which gets
10549         redrawn. There was an off-by one error (Closes #83659)
10551         * app/display.c: make sure we redraw all screen only when we
10552         really have to (some update_areas were mistakenly ignored) (Closes
10553         #83496). 
10555         * NEWS: added a new entry for the future. Put there a reminder to
10556         update the dependencies.
10558         * configure.in: put in notes about what will change shortly.
10559         upped the version to 0.90+cvs (did also in config.h.win32)
10560         upped the minimum version for intltools (now 0.21)
10561         
10562 2002-06-01  Cyrille Chepelov  <cyrille@chepelov.org>
10564         * dia.spec:
10565         * configure.in:
10566         * NEWS:
10567         * config.h.win32:
10568         bumped up version number to 0.90. Yay!
10570 2002-05-30  Cyrille Chepelov  <cyrille@chepelov.org>
10572         * doc/pl/Makefile.am:
10573         * doc/en/Makefile.am: fixed a "make install" problem when db2html
10574         is not present (Reported by Andrew Ferrier
10575         <andrew.junk@new-destiny.co.uk>). Fixed another "make distclean"
10576         problem which prevented me from ever seeing the problem in doc/en...
10577         
10578         * Makefile.am: added autogen.sh to the EXTRA_DIST clause.
10579         
10580         * lib/font.c: patch from <robert.young@dsto.defence.gov.au>; add a
10581         way to read the font path from the XFS configuration files in
10582         order to enable FreeType (fixes #83098).
10584         * POTFILES.(in,skip): now skips objects/sybase/sybase.c, which is not
10585         shipped nowadays.
10586                 
10587         * dia.spec:
10588         * configure.in:
10589         * NEWS:
10590         * config.h.win32:
10591         bumped up version number to 0.90.RC3
10593 2002-05-29  Zbigniew Chyla  <cyba@gnome.pl>
10595         * configure.in, doc/Makefile.am, doc/pl/Makefile.am,
10596         doc/pl/authors.sgml, doc/pl/dia-manual.sgml, doc/pl/dia-pl.omf,
10597         doc/pl/intro.sgml, doc/pl/license.sgml, doc/pl/topic.dat
10598         doc/pl/usage-canvas.sgml, doc/pl/usage-customization.sgml,
10599         doc/pl/usage-layers.sgml, doc/pl/usage-loadsave.sgml
10600         doc/pl/usage-objects-selecting.sgml, doc/pl/usage-objects-special.sgml,
10601         doc/pl/usage-objects.sgml, doc/pl/usage-quickstart.sgml:
10602         Added Polish documentation.
10604 2002-05-27  Cyrille Cheeplov  <cyrille@chepelov.org>
10606         * objects/UML/state.c: there was a (gratuitous?) change of on-XML
10607         format for the UML State object. Now there's a hack to reload
10608         older files, and get them converted on the fly. 
10609         Justyna BiaÃ…?a <nell@poczta.gazeta.pl> reported this. Thanks!
10611         * lib/properties.h:
10612         * lib/propobject.c:
10613         * lib/proplist.c: Added a new property flag, PROP_FLAG_LOAD_ONLY,
10614         and adapter the proplist predicates. A LOAD_ONLY property is for
10615         when you have legacy to support but can't resist moving your
10616         fields around... (was needed to support the above state.c fix).
10618         If the in-core of your object changes and you need a LOAD_ONLY
10619         property for the old format, you must keep some spare room in your
10620         object's struct to accomodate for the potential old-style
10621         attributes. Then in foo_load(), after having called
10622         object_load_using_properties(), you must inspect the old-style
10623         fields and act accordingly. Don't ever change the on-disk formats...
10625         * objects/UML/object.c:
10626         * objects/UML/small_package.c: added a check against empty
10627         stereotypes still consuming space. Reported by Dolores Alia de
10628         Saravia <loli@unsa.edu.ar>. Thanks!     
10629         
10630 2002-05-26  Cyrille Chepelov  <cyrille@chepelov.org>
10632         * INSTALL: added platform notes from MÃ¥rten Svantesson, for when
10633         using libtool on an AFS partition.
10635         * po/update_potfiles_in.sh: now simply calls the recent intltools 
10636         features; they work better than hand-crafted half-ignorant
10637         scripts. Thanks to Kenneth Rohde Christiansen <kenneth@gnu.org>
10638         for the tip.
10640         * po/POTFILES.in: added back two files update_potfiles_in.sh
10641         didn't take into account. Now this file is not automatically
10642         generated anymore!      
10643         * po/POTFILES.skip: told `intltool-update -m` what files to ignore
10644         (the usual suspects, in fact).
10646         * configure.in: improved the isinf() / isfinite() detection on
10647         Solaris (MÃ¥rten Svantesson)
10648         
10649 2002-05-25  Cyrille Chepelov  <cyrille@chepelov.org>
10651         * configure.in: one expression was replacing $CFLAGS, removing
10652         whatever was previously in.
10653         Added more checks for isinf() and finite() on Solaris.
10655         * lib/geometry.h: added a macro defintion for isinf() if not
10656         HAVE_ISINF. (Hans, you may want to #define HAVE_ISINF if relevant
10657         on Win32)
10659         * app/commands.c: "cut" did not set the 'modified' bit (paste has
10660         been for a little while). Fixes #82994.
10662         * Makefile.am: added more stuff to distclean-local. This should make
10663         "make distcheck" pass! Thanks to the author of
10664         http://mail.gnome.org/archives/gnome-2-0-list/2001-August/msg00212.html
10665         ... I wonder who this Henstridge guy is ... ;-)
10666         Darn. Still doesn't pass. I give up for tonight.
10667         
10668         * po/update_potfiles_in.sh: updated to take care of sheet files,
10669         and to filter out the EML plug-in.
10670         * po/POTFILES.in: updated with all .c and all .sheet.in files 
10672         * po/dia.pot, po/*.po: again updated all .po files with all
10673         strings (with the updated POTFILES). Now with the up-to-date
10674         POTFILES, just all languages have some fuzzy or untranslated
10675         strings (not that the 100% team was that large beforehand...)
10677         * po-checktrans: removed the comment about .po files not holding
10678         all translatable stuff, since now they do.
10679         
10680 2002-05-24  Cyrille Chepelov  <cyrille@chepelov.org>
10682         * dia.spec:
10683         * configure.in:
10684         * NEWS:
10685         * config.h.win32:
10686         bumped up version number to 0.90.RC2
10688 2002-05-20  Hans Breuer  <hans@breuer.org>
10690         * app/load_save.c : starting to increase
10691         Dias tolerance on incomplete/broken files. The 
10692         corresponding bug is #56233. But the patch there does
10693         neither apply anymore nor does it really fix the problem
10694         but only delays it, e.g. even if it would be allowed
10695         to read a file without any layers, the later code can't
10696         handle it.
10697         * lib/dia_xml.c : attribute_<num|first>_data(), data_type()
10698         handle passing in NULL for the node gracefully.
10700         * shapes/network/printer.shape : added two more connection
10701         points - one at each side - to fix bug #60359
10703         * app/commands.c (edit_copy_callback) : 
10704         add ddisplay_do_update_menu_sensitivity() to make 
10705         sequence select-copy-paste work.
10707 2002-05-20  Hans Breuer  <hans@breuer.org>
10709         * app/create_object.c (create_object_button_press) :
10710         added a call to ddisplay_do_update_menu_sensitivity()
10711         to make Ctrl^D etc work after object creation. 
10712         Fixes #80983.
10714 2002-05-18  Lars Clausen  <lrclause@cs.uiuc.edu>
10716         * objects/ER/entity.c: 
10717         * objects/ER/attribute.c: 
10718         * objects/ER/relationship.c: Patch to allow text size change from
10719         Celso Tetsuo Nagase Suzuki.
10721 2002-05-18  Steffen Macke <sdteffen@web.de>
10723         * app/app_procs.c: #ifdef'd xmlerror.h (comes with 
10724         libxml2)
10725         * doc/en/graphics/greendots.png:
10726         * doc/en/home_network.png:
10727         * doc/en/line_props.png: 
10728         * dia-diagram.png:
10729         * dia_gnome_icon.png:
10730         * dia_gnome_menu_icon.png:
10731         * dia_logo.png:
10732         * shapes/network/telephone.png:
10733         * shapes/Logic/and.png:
10734         * shapes/Logic/buffer.png:
10735         * shapes/Logic/connector.png:
10736         * shapes/Logic/inverter.png:
10737         * shapes/Logic/nand.png:
10738         * shapes/Logic/nor.png:
10739         * shapes/Logic/not.png:
10740         * shapes/Logic/or.png:
10741         * shapes/logic/xor.png:
10742         * samples/ER-demo.dia:
10743         * samples/SADT.dia:
10744         * samples/UML-demo.dia:
10745         * samples/chronograms.dia:
10746         * samples/grafcet.dia: re-added as binary files
10748 2002-05-17  Hans Breuer  <hans@breuer.org>
10750         * lib/libdia.def : reflect removing of render_store.[ch]
10752         * */makefile.mingw : remove VERSION definition it's
10753         done in config.h.win32. Dia still doesn't work if
10754         build with mingw ...
10756         * RELEASE-PROCESS : removed */makefile.mingw
10758         * app/sheets_dialog_callbacks.c : if we use those
10759         ugly charconv_gtk_* functions lib/charconv.h needs to
10760         be #included ...
10761         * lib/charconv.h : ... and needs to contain the 
10762         necesseray prototypes _and_ #defines
10764         * plug-ins/shape/shape-export.c : with libxml2 xmlNewGlobalNs
10765         is deprecated and does nothing but spit a warning. This broke
10766         the shape format writing. Fixed.
10767         Also with libxml2 pretty formatted xml isn't the default
10768         anymore, but needs to be enabled explicit: It is done now 
10769         for shape files, which almost always needed to be edited by
10770         hand ... 
10772         * app/app_procs.c : #if G_OS_WIN32 redirect xmlErrorReporting
10773         from stderr - which is invalid on Dia/win32 - to g_print -
10774         which opens up a console window if necessary. This way
10775         a xml-deprecation-error shouldn't stay unnoticed next time
10777 2002-05-17  Steffen Macke <sdteffen@web.de>
10779         * shapes/Misc/folder.png:
10780         * shapes/Misc/file.png: re-added as binary files
10781         
10782 2002-05-16  Lars Clausen  <lrclause@cs.uiuc.edu>
10784         * lib/font.c: Fixed segfault for fonts without family_name.
10786 2002-05-17  Cyrille Chepelov  <cyrille@chepelov.org>
10788         * po/POTFILES.in: added app/sheets_dialog_callbacks.c
10790         * app/sheets_dialog_callbacks.c: While reviewing UTF-8isation upon
10791         Lars' request, minor cosmetic stuff (mostly _() of human-readable
10792         XML comments in .sheet files; one translator booby-trap disarmed).
10794         * lib/charconv.c: moved #hell inside the body of the new
10795         charconv_*gtk* functions (otherwise the Win32 or gtk2.0 linker
10796         will yell)
10797         
10798 2002-05-16  Lars Clausen  <lrclause@cs.uiuc.edu>
10800         * plug-ins/wpg/Makefile.am (INCLUDES): 
10801         * plug-ins/shape/Makefile.am (INCLUDES): 
10802         * plug-ins/svg/Makefile.am (INCLUDES): 
10803         * plug-ins/pstricks/Makefile.am (INCLUDES): 
10804         * plug-ins/metapost/Makefile.am (INCLUDES): Added UNICODE_CFLAGS
10805         and DEBUG_CFLAGS in some missing places.
10807         * MAINTAINERS: New file containing list of known package
10808         maintainers. 
10810         * lib/charconv.h: 
10811         * lib/charconv.c: Charconv versions of some common gtk calls.
10813         * app/sheets_dialog_callbacks.c
10814         (on_sheets_new_dialog_button_ok_clicked),
10815         (on_sheets_dialog_button_edit_clicked),
10816         (on_sheets_dialog_button_remove_clicked),
10817         (on_sheets_edit_dialog_button_ok_clicked):
10818         * app/sheets.c (sheets_optionmenu_create),
10819         (sheets_optionmenu_create): Added utf8 translations.
10821         * app/sheets_dialog.c: 
10822         * app/sheets.c: 
10823         * app/sheets_dialog_callbacks.c: Added some missing _()'s.
10825 2002-05-16  Cyrille Chepelov  <cyrille@chepelov.org>
10827         * po/POTFILES.in: added app/sheets_dialog.c
10829 2002-05-15  Cyrille Chépélov  <cyrille@chepelov.org>
10831         * lib/charconv.c: (charconv_local8_to_utf8),
10832         (charconv_utf8_to_local8): tweaked the warnings to get more 
10833         informations
10834         * lib/font.c: (font_get_suckfont): handled a potential case of
10835         uninitialised data being used (just paranoid)
10836         
10837         * objects/GRAFCET/boolequation.c: (opstring),
10838         (opblock_get_boundingbox), (opblock_draw),
10839         (boolequation_calc_boundingbox): some extra hoops needed now dia
10840         talks UTF8 (but gtk doesn't). More #hell. Beeek. Basically, the
10841         symbols can't yet be used with their proper Unicode cells, since
10842         gtk will demand them in the Symbol font, expressed in the local
10843         8-bit encoding.
10844         
10845         * samples/grafcet.dia: re-saved, now with a fixed bounding box (by
10846         the fix just above).
10848 2002-05-14  Lars Clausen  <lrclause@cs.uiuc.edu>
10850         * app/diagram_tree.c (get_object_name): Check that name property
10851         doesn't have null string.
10853 2002-05-13  Lars Clausen  <lrclause@cs.uiuc.edu>
10855         * autogen.sh (DIE): Added conditional --force to gettextize.
10857         * app/pagesetup.c (pagesetup_ok): Commented out missing Gnome
10858         function call.
10860 2002-05-13  Cyrille Chepelov  <cyrille@chepelov.org>
10862         * RELEASE-PROCESS: added James' notes on how to properly make the
10863         tarball.
10865         * configure.in: removed macro nesting related to libpng.h, which
10866         was causing some problems on some systems (like mine, which made
10867         the snapshots bad).
10869         Made --enable-unicode, previously an option, the mandatory case.
10871         * app/Makefile.am: updated EXTRA_DIST
10872         
10873         * NEWS:
10874         * app/makefile.mingw:
10875         * dia.spec:
10876         * doc/en/dia-manual.sgml:
10877         * plug-ins/makefile.mingw:
10878         * configure.in: bumped up the version number to 0.90.RC1
10880         * lib/render_objects.[ch]:
10881         * po/POTFILES.in: removed render_objects from the build.
10883         * plug-ins/Makefile.am:
10884         * plug-ins/wmf/Makefile.am (new): EXTRA_DIST'ed the WMF plug-in,
10885         so we keep its source in the tarball.
10887         * objects/network/*.c, Makefile.am:
10888         * objects/sybase/*.c, Makefile.am:
10889         * po/POTFILES.in: cleaned up the non-existent files from the po
10890         build process.
10892         * plug-ins/Makefile.am: re-enabled metapost plug-in.
10893         
10894 2002-05-13  Steffen Macke <sdteffen@web.de>
10896         * AUTHORS:
10897         * app/command.c: added M. C. Nelson to the Authors
10898         * sheets/Circuit/Makefile.am: added firewall shape to build
10899         * sheets/network/Makefile.am: added telephone and microphone
10900           shapes to build
10902 2002-05-13  Lars Clausen  <lrclause@cs.uiuc.edu>
10904         * RELEASE-PROCESS: Added list of files that contain the release
10905         number or should otherwise be changed at each release.
10907 2002-05-12  Lars Clausen  <lrclause@cs.uiuc.edu>
10909         * objects/UML/uml.c (uml_operation_read): Forgot to commit this
10910         (reported fixed) bug: POLYMORPHIC -> LEAF for default.
10912 2002-05-12  Hans Breuer  <hans@breuer.org>
10914         * config.h.win32 : changed VERSION to 0.90.RC1
10916         * app/makefile.msc lib/makefile.msc : use renamed
10917         gdk-pixbuf version (same content but renamed because
10918         all the other gtk+ dlls are renamed) to avoid trouble
10919         mixing gtk versions (of which one would not 
10920         be initialized ...
10922         * app/app_procs.c : removed recently unneeded
10923         inclusion of "sheets.h"
10925         * app/render_gdk.c : removed my own debug spew
10926         which should never made it to cvs
10928         * lib/render_object.[hc] : added
10929         #error "File not used anymore."
10931         * lib/libdia.def : updated externals
10933         * app/interface.c : dropped filenames need to be
10934         converted from uri with Gtk+2.0
10936 2002-05-12  Cyrille Chepelov  <cyrille@chepelov.org>
10938         * RELEASE-PROCESS (new): a draft document about how to release. To
10939         be discussed. (already with some input from Hans Breuer)
10941 2002-05-12  Steffen Macke <sdteffen@web.de>
10943         * sheets/Makefile.am: re-added Misc sheet to make process
10944         
10945 2002-05-12  Lars Clausen  <lrclause@cs.uiuc.edu>
10947         * objects/FS/function.c: Added comments to humungous list of menu
10948         items, to aid translators.
10950 2002-05-11  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
10952         * app/menus.c (display_menu_items): Added a few shortcuts for zooms.
10954         * app/menus.c (display_menu_items): Added a few shortcuts for zooms.
10956         * app/interface.c (create_toolbox): Disallow shrinking beyond
10957         requested size.  Fixes bug #59439, and confirms to GTK guidelines
10958         (see gtk_window_set_policy).
10959         (create_sheets): Removed now unnecessary set_usize call.
10961 2002-05-10  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
10963         * lib/beziershape.c (remove_handles): Fixing removal of last
10964         segment.  Undo of removal still hokey.
10966 2002-05-10  Lars Clausen  <lrclause@cs.uiuc.edu>
10968         * lib/bezier_conn.c (remove_handles): Proper offset for fixing
10969         handles. 
10970         * lib/beziershape.c (beziershape_init): Removed early call to
10971         beziershape_update_data where points aren't set yet.
10972         (beziershape_add_segment): Use segment 0 instead of overflowing
10973         points array with segment+1.
10974         (beziershape_remove_segment): Proper offset for fixing
10975         connectionpoints. 
10976         (remove_handles): Proper offset.
10978 2002-05-08  Lars Clausen  <lrclause@cs.uiuc.edu>
10980         * objects/GRAFCET/action.c (action_update_data): Init x value of
10981         click point for call to connpointlist_adjust_count.
10983         * app/modify_tool.c (create_modify_tool): Init tool->auto_scrolled
10985         * app/render_pixmap.c (new_pixmap_renderer): Moved first linestyle
10986         setting to where values are inited.
10988         * lib/polyshape.c (polyshape_init): Removed call to
10989         polyshape_update_data that tried to use uninitialized data.
10991 2002-05-06  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
10993         * app/sheets_dialog.c: Mass removal of //-style comments.  The
10994         Irix compiler doesn't like them:(  I do...
10996 2002-05-06  Lars Clausen  <lrclause@cs.uiuc.edu>
10998         * app/render_libart.c (draw_string): Bail out when no GDK font is
10999         found.
11000         (set_font): Give error when font not found.
11001         (set_fillstyle): Intlized error msg.
11003         * app/pagesetup.c (pagesetup_ok, pagesetup_apply): Sets diagram
11004         modified when applied (and ok only does apply if apply is set
11005         sensitive).  Fixes bug #75623.
11007 2002-05-06  Pablo Saratxaga  <pablo@mandrakesoft.com>
11009         * configure.in: Added Vietnamese (vi) to ALL_LINGUAS
11011 2002-05-05  Steffen Macke <sdteffen@web.de>
11013         * app/Makefile.am: added $(UNICODE_CFLAGS)
11014         
11015 2002-05-02  Lars Clausen  <lrclause@cs.uiuc.edu>
11017         * app/commands.c (help_manual_callback): Check return value of
11018         opendir.
11020         * plug-ins/xfig/Makefile.am (INCLUDES): Added DEBUG_FLAGS
11022         * plug-ins/xfig/xfig-import.c: Fixed misspelled Poly_L_ine, added
11023         checks for errors.
11025 2002-04-30  Lars Clausen  <lrclause@cs.uiuc.edu>
11027         * app/render_gdk.c (draw_string): Extra free killed.  Thanks valgrind!
11029         * objects/UML/uml.c (uml_operation_read): Fix of UML default
11030         inheritance. 
11032 2002-04-30  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
11034         * app/filedlg.c (file_save_as_callback, file_save_as_ok_callback):
11035         Added button to toggle diagram compression.
11037 2002-04-29  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
11039         * lib/font.c: Support for loading extra kerning files, plus got
11040         rid of rounding errors.  Bounding box mostly perfect for freetype
11041         fonts.
11042         (font_string_width): Fudge factor to get around nonlinearity of
11043         font scaling.
11045 2002-04-29  Lars Clausen  <lrclause@cs.uiuc.edu>
11047         * lib/font.c (font_string_width): YA font calculation scheme, with
11048         comments.
11050         * objects/UML/class.c (umlclass_calculate_data): Uses the same
11051         font for drawing and calculating now.
11053         * configure.in: Added utime.h check.
11055         * app/render_gdk.c (draw_string): Uses gdk_draw_text_wc when in
11056         GTK_DOESNT_TALK_UTF8_WE_DO.  Thus it matches the string width calc.
11058 2002-04-26  Hans Breuer  <hans@breuer.org>
11060         [ Instead of fixing about 70 occurances in 20 files
11061           where GTK_TALKS_UTF8_WE_DONT needed to be handled
11062           Dia on win32 from now on uses glib-2.0 and not 
11063           only talks utf-8 with gtk-1.3 but also internally.
11064           GTK_TALKS_UTF8_WE_DONT isn't supported/needed
11065           anymore. ]
11067         * config.h.win32 : #define UNICODE_WORK_IN_PROGRESS
11068         #undef GTK_TALKS_UTF8_WE_DONT
11070         * */makefile.msc : changes to use glib-2.0 (still
11071         using gtk+1.3(win32-production)
11073         * app/disp_callbacks.c : remove GTK_TALKS_UTF8_WE_DONT,
11074         adapt kevent->string handling, add <string.h>
11075         * app/render_gdk.c (get_text_width) : the length given
11076         is in chars, gdk_text_width() needs bytes
11078         * app/render_libart.c : 
11079         * app/render_pixmap.c : remove GTK_TALKS_UTF8_WE_DONT
11080         (could simplify the same way as done in render_gdk.c)
11082         * app/diagram_tree.c app/paginate_gdiprint.cpp
11083           app/sheets.c :
11084         * lib/prop_basic.c lib/prop_geomtypes.c 
11085           lib/propdialgs.c lib/propobject.c :
11086         added <string.h> which is now removed from charconv.h
11088         * lib/charconv.h : optional use infrastructure from
11089         glib-2.0 -> only five direct function mapping left
11091         * lib/charconv.c : avoid to build this with glib-2.0
11093         * lib/font.c : no string conversion needed anymore      
11094         when Dia and Gtk talk utf-8, also code adaptions
11095         for GLIB_CHECK_VERSION(2,0,0)
11097         * lib/libdia.def : removed charconv functions
11099         * lib/prop_inttypes.c : removed GTK_TALKS_UTF8_WE_DONT,
11100         replace charconv_unichar_to_utf8() with g_unichar_to_utf8()
11102         * lib/prop_text.c lib/prop_widgets.c lib/font.c : 
11103         removed GTK_TALKS_UTF8_WE_DONT
11105         * lib/text.c : finally(?) fixed cursor <place|move>ment 
11106         for Umlauts. Also fixed char insertion, still wondering
11107         how this could ever work. Does realloc on Linux 
11108         initialize the memory with zeros ?
11110         * objects/chronogram/chronoline_event.c
11111           objects/grafcet/boolequation.c :
11112         there is no uni_get_utf8 when building for glib-2.0.
11113         Replace with g_utf8_get_char() and g_utf8_next_char().
11115         * objects/uml/stereotype.c (bracketted_to_string) : 
11116         simplify while adding code for glib-2.0 build
11118 2002-04-27  Lars Clausen  <lrclause@cs.uiuc.edu>
11120         * app/diagram.h: Autosave field
11121         * app/diagram.c (diagram_set_modified): Sets autosave field.
11122         
11123         * objects/UML/usecase.c (usecase_update_data): 
11124         * objects/flowchart/ellipse.c (ellipse_update_data): 
11125         * objects/flowchart/parallelogram.c (pgram_update_data): 
11126         * objects/flowchart/diamond.c (diamond_update_data): 
11127         * objects/custom/custom_object.c (custom_update_data): 
11128         * objects/UML/state.c (state_update_data): 
11129         * objects/UML/small_package.c (smallpackage_update_data): 
11130         * objects/UML/object.c (objet_update_data): 
11131         * objects/UML/note.c (note_update_data): 
11132         * objects/UML/node.c (node_update_data): 
11133         * objects/UML/component.c (component_update_data): 
11134         * objects/UML/classicon.c (classicon_update_data): 
11135         * objects/UML/actor.c (actor_update_data): 
11136         * objects/SADT/box.c (sadtbox_update_data): 
11137         * objects/FS/function.c (function_update_data): 
11138         All now update text boundaries from update_data.
11139         
11140         * lib/widgets.c (dia_font_selector_set_styles): Made the style set
11141         correctly. 
11143 2002-04-26  Hans Breuer  <hans@breuer.org>
11145         * config.h.win32 : added VERSION definition here
11146         (and removed from makefile.msc's)
11148         * app/makefile.msc : added new files
11150         * app/app_procs.c (app_init): remove sheets_dialog_create()
11151         from start-up and ... 
11153         * app/sheet.c (sheets_dialog_show_callback) : ... lazy create
11154         sheet_dialog here when it is really needed.
11155         #include "../lib/message.h", make sheets_dialog_create() 
11156         return it's success or failing on (!custom_type_symbol). 
11157         Although editing shapes is nice IMHO it isn't crucial enough 
11158         to abort() Dia if       it isn't possible.
11160         * app/sheet.h : adapt create_sheet_dialog() prototype
11162         * app/sheets_dialog.c : add #ifdef HAVE_UNISTD_H
11164         * app/sheets_dialog_callbacks.c : #ifdef HAVE_UNISTD_H and
11165         #ifdef HAVE_UTIME_H. Otherwise #include <sys/utime.h> and
11166         name space corrections for utime() and utim_buf #ifdef
11167         G_OS_WIN32
11169         * lib/libdia.def : export new sheet functions
11171         * lib/makefile.msc : added new files
11173         * lib/render.c : don't put draw_bezier_with_arrows() in
11174         the DrawLineWithArrowsFunc slot
11176         * objects/custom/custom_object.c : #include <gmodule.h>
11177         and export 'custom_type' via G_MODULE_EXPORT
11179         * objects/uml/class_dialog.c : removed 'incompatible 
11180         types' warnings. Some refactoring while making it fit
11181         on screen with 800x600 again.
11183         * plug-ins/python/pydia-cpoint.h : add PyDiaConnectionPoint_Check
11185         * plug-ins/python/pydia-handle.h : extra parameter to
11186         PyDiaHandle_New to store the owner of the handle
11187         * plug-ins/python/pydia-handle.c : store handle owner
11188         on construction and use it in new method .connect()
11189         * plug-ins/python/pydia-object.c plug-ins/python/pydia-diagram.c : 
11190         adapt to changed prototype
11192 2002-04-24  Lars Clausen  <lrclause@cs.uiuc.edu>
11194         * lib/text.c (text_calc_boundingbox): Will now return early if box
11195         passed is NULL.
11197         * objects/flowchart/box.c (box_update_data): Now updates text
11198         width info from update_data.
11200 2002-04-23  Steffen Macke <sdteffen@web.de>
11202         * plug-ins/xfig/xfig-import.c: fixed text import
11203         
11204 2002-04-22  Lars Clausen  <lrclause@cs.uiuc.edu>
11206         * app/export_png.c: Moved dialog functions to their own file.
11207         * app/dialogs.[ch]: New files with standard functions for creating
11208         small, transient dialogs (e.g. export options).
11209         * app/Makefile.am: Added dialogs.[ch]
11211 2002-04-19  Steffen Macke <sdteffen@web.de>
11213         * shapes/Misc/folder.*:
11214         * shapes/Misc/file.*:
11215         * shapes/Misc/Makefile.am:
11216         * shapes/Makefile.am:
11217         * sheets/Misc.sheet.in:
11218         * sheets/Makefile.am:
11219         * configure.in: added new Misc sheet containing filesystem shapes
11220         
11221 2002-04-18  Lars Clausen  <lrclause@cs.uiuc.edu>
11223         * app/lineprops_area.c: Arrow selector in toolbox changed to use
11224         standard arrowdraw code.  Line is thinner to make some arrowheads
11225         distinguishable. 
11227 2002-04-18  Steffen Macke <sdteffen@web.de>
11229         * sheets/network.sheet.in:
11230         * shapes/network/telephone.shape:
11231         * shapes/network/Makefile.am: added telephone shape
11232         
11233 2002-04-16  Steffen Macke <sdteffen@web.de>
11235         * sheets/EML.sheet.in: commented out unavailable shapes
11236         
11237 2002-04-15  M.C. Nelson <mcn@kobayashimaru.org>
11239         * app/sheets_dialog_callbacks.c:  Fixed segfault caused by mis-ordered
11240           variable assignment.
11241         
11242 2002-04-15  Steffen Macke <sdteffen@web.de>
11244         * plug-ins/dxf/dxf-import.c: text import works again
11245         * shapes/Pneumatic/Makefile.am: added compush shape
11246         * sheets/Pneumatic.sheet.in: commented out unavailable shapes dist33
11247         and dist53
11248         
11249 2002-04-11  M.C. Nelson <mcn@kobayashimaru.org>
11251         * All these modifications are for the 'Sheets and Objects' dialog
11252           (new feature):
11254         * app/pixmaps/line_break.xpm: new icon representing a line break.
11255         
11256         * app/pixmaps/n_a.xpm: new empty icon representing not available.
11258         * app/Makefile.am: added sheets_*.[ch] files to compile list.
11259         
11260         * app/menus.c: added GNOME and gtk menu items for 'Sheets and Objects'
11261         
11262         * app/sheets_dialog.c: [new file] definition of 'Sheets & Objects' dlgs
11264         * app/sheets_dialog.h: [new file] support for Sheets & Objects dlgs 
11265         
11266         * app/app_procs.c: added call to sheets_dialog_create() in app_init()
11267         
11268         * app/sheets_dialog_callbacks.c: [new file] callbacks for S & O dialogs
11270         * app/sheets_dialog_callbacks.h: [new file] support for " " "
11272         * app/interface.c: added 'interface_current_sheet_name' global to 
11273           fill_sheet_wbox(); made fill_sheet_menu() non-static
11275         * app/interface.h: added extern declaration for aboves.
11277         * app/sheets.c: [new file] instantiation and other funcs for S & O dlgs
11279         * app/sheets.h: [new file] declarations for backing store structures
11281         * lib/sheet.c: modification of new_sheet() parameters; introduction
11282           of USER and SYSTEM scope for sheets; procedure for sorting sheets;
11283           changes to load_register_sheet().
11285         * lib/sheet.h: added 'user_data_type' field to SheetObject structure;
11286           added 'has_icon_on_sheet' flag to SheetObject structure; added 
11287           'filename', 'scope', 'shadowing' fields to Sheet structure.
11289         * lib/plug-ins.c: moved _PluginInfo declaration to header file where
11290           it belongs.
11292         * lib/plug-isn.h: see above.
11294         * lib/object.c: added 'sheet.h' to include list; added several 
11295           functions
11296           to detect objects which are not found on any sheet (for future use)
11297           object_type_detect_nosheet_callback(), object_types_detect_nosheet(),
11298           object_type_get_sheet_name(), object_type_strip_sheet_from_name().
11300         * lib/object.h: added public declarations for above functions where
11301           necessary.
11303         * objects/custom/custom.c: made custom_object_load() non-static so we
11304           can load and interpret .shape files from the Sheets & Objects dialog
11306         * objects/custom/custom_object.c: made 'custom_type' non-static so 
11307           we can differentiate between SVG shapes and other types.a
11309 2002-04-07  Hans Breuer  <hans@breuer.org>
11311         * app/object_ops.c (object_list_align_v): Fix the 'Leak fix'
11312         from 2002-01-22 to not destroy diagram->data->selected. 
11313         Avoids to crash on Objects/Align/Vertical/Top
11315         * app/render_eps.c (draw_string) : un-const buffer
11316         It isn't at all const (g_malloc(), assignment, g_free()).
11317         Doesn't gcc catch such ?
11319         * lib/arrows.h : prototype calculate_arrow_point()
11321         * lib/font.c (font_get_suckfont) : no need to
11322         special case gdk_draw_string() with GTK_TALKS_UTF8,
11323         cause all the parameter differences are handled above
11325         * lib/libdia.def : updated externals
11327         * lib/makefile.msc : removed string_prerenderer, added render
11329         * lib/render.c (draw_rect) : don't pass a Point** if a Point*
11330         is expected. [Sometimes it's good to read compiler warnings.]
11332         * objects/standard/image.c : simplified by use of g_strconcat()
11334         * plug-ins/python/makefile.msc : updated for Python 2.2
11336 2002-04-03  Lars Clausen  <lrclause@cs.uiuc.edu>
11338         * objects/standard/zigzagline.c (zigzagline_draw): Fixed
11339         directionality problem for zero-length line segments.
11341 2002-03-28  Lars Clausen  <lrclause@cs.uiuc.edu>
11343         * app/diagram.c (diagram_ungroup_selected) 
11344         (diagram_update_menu_sensitivity): Now allows ungrouping of
11345         several groups at once.
11347 2002-03-15  Lars Clausen  <lrclause@cs.uiuc.edu>
11349         * lib/render.c, all renderers: Binary incompatibility, change to
11350         expandable renderops structure.
11352 2002-03-15  Steffen Macke <sdteffen@yahoo.com>
11354         * objects/standard/Makefile.am:
11355         * objects/network/Makefile.am:
11356         * objects/UML/Makefile.am:
11357         * objects/ER/Makefile.am:
11358         * objects/FS/Makefile.am:
11359         * objects/flowchart/Makefile.am:
11360         * objects/custom/Makefile.am:
11361         * objects/GRAFCET/Makefile.am:
11362         * objects/chronogram/Makefile.am:
11363         * objects/SADT/Makefile.am:
11364         * plug-ins/cgm/Makefile.am:
11365         * plug-ins/pstricks/Makefile.am:
11366         * plug-ins/hpgl/Makefile.am:
11367         * plug-ins/wpg/Makefile.am:
11368         * plug-ins/svg/Makefile.am:
11369         * plug-ins/shape/Makefile.am: added $(UNICODE_CFLAGS)
11370         
11371 2002-03-13  Lars Clausen  <lrclause@cs.uiuc.edu>
11373         * app/render_eps.c: Support for dumping TrueType fonts (taken from
11374         ttfps).
11376 2002-03-12  Lars Clausen  <lrclause@cs.uiuc.edu>
11378         * lib/render.c: New abstract super class for renderers.
11380 2002-03-07  Akira TAGOH  <tagoh@redhat.com>
11382         * objects/ER/attribute.c (attribute_save): save a font property.
11383         (attribute_load): load a font property, and if can't load it, it's
11384         initialized.
11386         * objects/ER/entity.c (entity_save): save a font property.
11387         (entity_load): load a font property, and if can't load it, it's
11388         initialized.
11390         * objects/ER/relationship.c (relationship_save): save a font property.
11391         (relationship_load): load a font property, and if can't load it, it's
11392         initialized.
11394         * objects/UML/class.c (fill_in_fontdata): don't replace if it already
11395         has a vaule.
11396         (umlclass_save): save the font and the font size properties.
11397         (umlclass_load): load the font and the font size properties.
11399 2002-03-05  Cyrille Chepelov  <cyrille@chepelov.org>
11401         * lib/string_prerenderer.[ch] (REMOVED):
11402         * lib/render.h:
11403         * lib/diagramdata.c:
11404         * lib/Makefile.am:
11405         * app/render_eps.c: got rid of the string-specific string
11406         prerenderer, transitioned its functionality towards Lars'
11407         two-phase rendering
11409 2002-03-05  Lars Clausen  <lrclause@cs.uiuc.edu>
11411         * configure.in: Using Freetypes own check for ver >= 1.0.5.  You
11412         may need to rerun aclocal.
11414 2002-03-04  Lars Clausen  <lrclause@cs.uiuc.edu>
11416         * lib/font.c: First attempt at Unicodeness for Freetype.
11418 2002-03-02  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
11420         * lib/font.c (font_string_width): Fixed font_string_width for
11421         freetype.  BB is now almost right.
11423 2002-03-01  Lars Clausen  <lrclause@cs.uiuc.edu>
11425         * app/render_eps.h: 
11426         * app/paginate_psprint.c (paginate_psprint): 
11427         * lib/font.c: 
11428         * app/render_eps.c: Support for dumping postscript fonts into
11429         postscript files with freetype.  Fairly primitive, but works.
11430         Unicode version may have problems.
11432 2002-02-28  Akira TAGOH  <tagoh@redhat.com>
11434         * objects/UML/class_dialog.c (class_read_from_dialog)
11435         (class_fill_in_dialog), (class_create_page): add the font selector and
11436         the font size selector.
11438         * objects/UML/class.c (umlclass_draw): uses each font_height.
11439         (umlclass_calculate_data): ditto.
11440         (fill_in_fontdata): add initial value of new font_height.
11441         (umlclass_copy): add new font_height.
11443 2002-02-27  Cyrille Chepelov  <chepelov@calixo.net>
11445         Patch from Geoff Gerrietts <ggerrietts@yahoo.com>:
11446         
11447         * lib/font.c: calculate font metrics properly and stop guessing at
11448         string widths.
11450 2002-02-28  Akira TAGOH  <tagoh@redhat.com>
11452         * configure.in: changed gtk_advancement value to dia_talks_utf8.
11453         right now Dia is working with UTF-8 internally. it means Dia probably
11454         support most languages also including the languages which heretofore
11455         didn't work correctly.
11457 2002-02-26  Akira TAGOH  <tagoh@redhat.com>
11459         * objects/FS/function.c: add related text properties.
11460         (function_get_props), (function_set_props): add handling attribute.
11462         * objects/FS/flow.c: add related text properties.
11463         (flow_get_props), (flow_set_props): add handling attribute.
11465         * objects/FS/flow-ortho.c: add related text properties.
11466         (orthflow_set_props), (orthflow_get_props): add handling attribute.
11468         * objects/ER/relationship.c: add PROP_STD_TEXT_FONT to property.
11470         * objects/ER/entity.c: ditto.
11472         * objects/ER/attribute.c: ditto.
11474 2002-02-26  Cyrille Chepelov  <cyrille@chepelov.org>
11476         Patch contributed by Geoff Gerrietts <ggerrietts@yahoo.com>:
11477         
11478         * autogen.sh: add a check for missing intltoolize.
11480 2002-02-20  Akira TAGOH  <tagoh@redhat.com>
11482         * lib/ps-utf8.c (unicode_to_ps_name): if this function calls with same
11483         charcode, it was registered the duplicate item to HashTable. fix.
11485         * app/render_gnomeprint.c (get_width_string): add new function.
11486         (draw_string): fix non-multibyte specific code.
11488 2002-02-19  Cyrille Chepelov  <cyrille@chepelov.org>
11490         Patch contributed by Matthieu Sozeau <mattam@netcourrier.com>:
11491         
11492         * lib/font.c: do not try to search paths that do not begin with
11493         '/', like X Font Server addresses.
11494         
11495         * objects/UML/message.c (message_draw): free mname when not 
11496         message->text but CREATE or DESTROY.
11497         
11498         * objects/UML/uml.h:
11499         * objects/UML/uml.c:
11500         * objects/UML/class_dialog.c: added code to handle a stereotype 
11501         attribute for operations.
11503 2002-02-19  Akira TAGOH  <tagoh@redhat.com>
11505         * lib/Makefile.am: add LIBART_CFLAGS.
11507 2002-02-15  Hans Breuer  <hans@breuer.org>
11509         * lib/font.c (font_get_suck_font): the black and white pixel values 
11510         need to be taken from a 1 bit colormap rather than the default colormap.
11511         (fixed again, last time was 2000-05-26)
11513         Also handle the case where GTK_TALKS_UTF8 and expects all strings
11514         passed in to be in this encoding.
11516         * lib/libdia.def : export suck_font_free()
11518         * lib/text.c (text_draw) : avoid circular dependency to ../app
11519         at least for the !USE_XIM case, where it is unnecessary.
11521 2002-02-15  Cyrille Chepelov  <cyrille@chepelov.org>
11523         Changes contributed by Matts Kivik <kivik@firstlinux.net>:
11524         
11525         * shapes/Circuit/microphone_de.(shape|xpm) (NEW):
11526         * sheets/Circuit.sheet.in: added new shape microphone
11527         * shapes/Circuit/speaker_de.shape: Added a connection point.
11528         
11529 2002-02-13  Akira TAGOH  <tagoh@redhat.com>
11531         * app/render_libart.c (draw_string): fixed build issue for Win32.
11533         * lib/font.c (font_get_suckfont): fixed typo. it could't build under
11534         Win32.
11536         * configure.in: fixed testing gtk_advancement.
11538         * app/render_gnomeprint.c (draw_string): uses utfchar instead of char.
11540 2002-02-12  Akira TAGOH  <tagoh@redhat.com>
11542         * lib/text.c (text_draw): fixed XIM position, when menubar is shown for
11543         diagram window.
11545 2002-02-11  Lars Clausen  <lrclause@cs.uiuc.edu>
11547         * app/group.c (group_copy): Made new object properly initialized
11548         before copy.
11550 2002-02-11  Steffen Macke <sdteffen@yahoo.com>
11552         * app/Makefile.am: added plug-ins to DIA_LIB_PATH in run_dia.sh
11553         
11554 2002-02-10  Akira TAGOH  <tagoh@redhat.com>
11556         * lib/text.c (text_draw): fixed XIM transaction.
11558         * app/interface.c (create_display_shell): add signal for
11559         size_allocate.
11561         * app/disp_callbacks.c (ddisplay_size_allocate): add new function for
11562         XIM transaction.
11563         (set_input_dialog): remove.
11564         (ddisplay_canvas_events): remove XIM transaction. it can't transact
11565         correctly on this function.
11567 2002-02-10  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
11569         * app/app_procs.c:
11570         * app/export_png.c: Added checks for interactivity (maybe this
11571         should be a hook after all?).
11573         * app/filedlg.c (file_export_callback): Made export dialog add
11574         suffix when reopened.
11576         * app/export_png.c: Added dialog asking for export size.
11578 2002-02-09  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
11580         * lib/widgets.c: Fixed font reselection problem and first font
11581         bogus warning.
11583         * objects/UML/actor.c (actor_update_data): Changed to have
11584         connection points below text.
11586 2002-02-08  Akira TAGOH  <tagoh@redhat.com>
11588         * lib/text.c (text_split_line): use g_strndup() instead of g_malloc()
11589         and memcpy().
11591 2002-02-07  Akira TAGOH  <tagoh@redhat.com>
11593         * lib/font.c (font_get_suckfont): rewrited. generating suckfont from
11594         strings which is given.
11595         (suck_font): remove. it's any longer needed.
11597         * app/render_libart.c (set_font): don't get suckfont.
11598         (draw_string): get suckfont only which is needed for now.
11600 2002-02-05  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
11602         * lib/text.c: Fixes for misunderstood width functions.
11604 2002-02-05  Hans Breuer  <hans@breuer.org>
11606         * lib/dia_xml.c : use g_strconcat() instead of 
11607         malloc, strcpy, strcat dance
11608         * app/properties.c : same here and plug memory leak
11609         (gtk functions don't eat strings)
11611         * objects/UML/message.c : there is no g_sprintf()
11612         use g_strdup_printf() instead ...
11614 2002-02-05  Akira TAGOH  <tagoh@redhat.com>
11616         * lib/message.c (gtk_message_internal): doesn't need to convert to
11617         UTF-8.
11619         * app/render_libart.c (draw_string): fixed transaction for UTF-8
11620         support.
11621         (get_text_width): ditto.
11623         * app/Makefile.am (EXTRA_DIST):
11624         s/paginate_gdiprint.c/paginate_gdiprint.cpp/
11626         * app/render_gdk.c (gdk_freetype_copy_glyph): fixed build issue.
11627         This function needs ifdef HAVE_FREETYPE because don't use it for
11628         --disable-freetype
11630 2002-02-04  Cyrille Chepelov  <cyrille@chepelov.org>
11632         * NEWS: updated with the new dependencies.
11633         
11634         Patch from Matthieu Sozeau <mattam@netcourrier.com>:
11636         * objects/UML/class.h:
11637         * objects/UML/class.c:  
11638         * objects/UML/class_dialog.c: added code to handle the UMLParameterKind
11639         property using a GtkMenu. Options are Undefined, In, Out, In & Out
11641 2002-02-04  Lars Clausen  <lrclause@cs.uiuc.edu>
11643         * app/render_libart.c: Slow but working libart freetype renderer,
11644         with color!
11646 2002-02-03  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
11648         * app/render_gdk.c (draw_string): Fixed gc_function bug.
11650         * lib/widgets.c (dia_font_selector_init): Sorts the font list.
11652         * lib/font.c (freetype_render_string): 
11653         * lib/font.h:
11654         * app/render_gdk.c:
11655         * app/render_gdk.h: Changed freetype_render_string to use
11656         callback.  Rendering is broken.
11658 2002-02-03  Cyrille Chepelov  <cyrille@chepelov.org>
11660         Patch from Matthieu Sozeau <mattam@netcourrier.com>:
11662         * objects/UML/uml.h:    
11663         * objects/UML/uml.c: added UMLInheritanceType and isQuery
11664         (constant) UML Operation attributes. UMLInheritanceType is either
11665         UML_ABSTRACT or UML_POLYMORPHIC  or UML_LEAF.
11667         * objects/UML/class.h:
11668         * objects/UML/class.c:  
11669         * objetcs/UML/class_dialog.c: added code to handle new
11670         UMLOperation attributes via a GtkMenu and a checkbox.
11672 2002-02-03  Akira TAGOH  <tagoh@redhat.com>
11674         * app/disp_callbacks.c (ddisplay_realize): fixed XIM issue.
11675         several client doesn't work with previous codes.
11677 2002-02-01  Lars Clausen  <lrclause@cs.uiuc.edu>
11679         * lib/font.c (freetype_render_string): Kerning.  Very few fonts
11680         seem to use it.
11682 2002-02-02  Akira TAGOH  <tagoh@redhat.com>
11684         * app/disp_callbacks.c (ddisplay_canvas_events): fixed crashes,
11685         when doing the operation like invert the objects after active view is
11686         destroyed. when changes focus, it needs to set active_display.
11688         * app/layer_dialog.c (dia_layer_update_from_layer):
11689         (layer_dialog_edit_layer): need to convert to locale encoding
11690         if GTK_DOESNT_TALK_UTF8_WE_DO is defined.
11691         (edit_layer_ok_callback):
11692         need to convert to UTF8 if GTK_DOESNT_TALK_UTF8_WE_DO is defined.
11694         * lib/diagramdata.c (new_diagram_data): ditto.
11696         * app/layer_dialog.c (layer_dialog_new_callback): ditto.
11698         * lib/diagramdata.c (new_layer): use utfchar instead of char for
11699         argument.
11701         * lib/widgets.c: if HAVE_FREETYPE isn't defined, it can't build. fixed.
11702         (dia_font_selector_set_styles): when HAVE_FREETYPE is defined only,
11703         it's needed for now. also this function needs prototype declaration.
11705 2002-01-31  Lars Clausen  <lrclause@cs.uiuc.edu>
11707         * lib/widgets.c: Style now functional on font selector.  Some leak
11708         possible, but doesn't show up under stress test.
11710 2002-01-31  Akira TAGOH  <tagoh@redhat.com>
11712         * app/plugin-manager.c (clist_select_row): name and description needs to
11713         convert to locale encoding, when GTK_DOESNT_TALK_UTF8_WE_DO is defined.
11714         (get_plugin_manager): ditto.
11716         * lib/plug-ins.c (dia_plugin_info_init): name needs to convert to UTF-8.
11718         * app/diagram_tree.c (get_object_name): fixed transaction for UTF-8
11719         support.
11721         * lib/prop_text.c (stringprop_reset_widget): fixed crashes,
11722         when prop->string_data is NULL.
11724 2002-01-30  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
11726         * lib/widgets.c: 
11727         * lib/widgets.h: New font selector separating font and style.
11728         Style not functional yet.
11730 2002-01-30  Lars Clausen  <lrclause@cs.uiuc.edu>
11732         * lib/text.c: 
11733         * app/render_gdk.c (draw_string): More freetype support, now
11734         renders text.  Still broken is font selection and exporting.
11736 2002-01-30  Akira TAGOH  <tagoh@redhat.com>
11738         * objects/chronogram/chronoref.c (chronoref_create): missing gettextize
11739         for font.
11741         * objects/chronogram/chronoline.c (chronoline_create): ditto.
11743         * objects/UML/usecase.c (usecase_create): ditto.
11745         * objects/UML/state.c (state_create): ditto.
11747         * objects/UML/object.c (objet_create): ditto.
11749         * objects/UML/node.c (node_create): ditto.
11751         * objects/UML/message.c (message_create): ditto.
11753         * objects/UML/component.c (component_create): ditto.
11755         * objects/UML/classicon.c (classicon_create): ditto.
11757         * objects/UML/actor.c (actor_create): ditto.
11759         * objects/SADT/box.c (sadtbox_create): ditto.
11761         * objects/SADT/annotation.c (annotation_create): ditto.
11763         * objects/GRAFCET/transition.c (TRANSITION_FONT): ditto.
11765         * objects/GRAFCET/step.c (STEP_FONT):
11766         * (step_create): ditto.
11768         * objects/GRAFCET/condition.c (CONDITION_FONT): ditto.
11770         * objects/GRAFCET/action.c (ACTION_FONT):
11771         (action_create): ditto.
11773         * objects/FS/function.c (function_create): ditto.
11775         * objects/FS/flow.c (flow_create):
11776         (flow_load): 
11777         (flow_apply_defaults): ditto.
11779         * objects/FS/flow-poly.c (flow_create):
11780         (flow_load):
11781         (flow_apply_defaults): ditto.
11783         * objects/FS/flow-ortho.c (orthflow_create):
11784         (orthflow_load):
11785         (orthflow_apply_defaults): ditto.
11787         * objects/ER/relationship.c: use utfchar instead of char for structure.
11788         (relationship_create): name needs to convert to UTF-8.
11790         * objects/ER/attribute.c: use utfchar instead of char for structure.
11791         (attribute_create): name needs to convert to UTF-8.
11793         * objects/ER/entity.c: use utfchar instead of char for structure.
11794         (entity_create): name needs to convert to UTF-8.
11796         * app/interface.c (fill_sheet_wbox): needs to convert UTF-8 to locale
11797         encoding for tooltips, if GTK_TALKS_UTF8 isn't defined.
11798         (fill_sheet_menu): needs to convert UTF-8 to locale encoding for menu
11799         items. if GTK_TALKS_UTF8 isn't defined.
11801 2002-01-29  Akira TAGOH  <tagoh@redhat.com>
11803         * objects/UML/class.c (umlclass_calculate_data): fixed malloc size.
11804         it was my careless mistake...
11806         * lib/attributes.c (attributes_set_default_font): temporarily gettextize
11807         a font name, because there are strings which isn't shown by "Courier".
11808         We need to consider a way to feel free to choose a font at runtime.
11810         * lib/render_object.c (render_object_load): ditto.
11812         * lib/text.c (data_text): ditto.
11814         * objects/EML/instantiation.c (instantiation_create): ditto.
11816         * objects/EML/interaction-ortho.c (interaction_ortho_create):
11817         (interaction_ortho_load): ditto.
11819         * objects/EML/interaction.c (interaction_create):
11820         (interaction_load): ditto.
11822         * objects/EML/process.c (fill_in_fontdata): ditto.
11824         * objects/ER/attribute.c (attribute_create): 
11825         (attribute_load): ditto.
11827         * objects/ER/entity.c (entity_create): 
11828         (entity_load): ditto.
11830         * objects/ER/relationship.c (relationship_create): 
11831         (relationship_load): ditto.
11833         * objects/UML/association.c (association_create): 
11834         (association_load): ditto.
11836         * objects/UML/class.c (fill_in_fontdata): ditto.
11838         * objects/UML/constraint.c (constraint_create): ditto.
11840         * objects/UML/dependency.c (dependency_create): ditto.
11842         * objects/UML/generalization.c (generalization_create): ditto.
11844         * objects/UML/implements.c (implements_create): ditto.
11846         * objects/UML/large_package.c (largepackage_create): ditto.
11848         * objects/UML/note.c (note_create): ditto.
11850         * objects/UML/realizes.c (realizes_create): ditto.
11852         * objects/UML/small_package.c (smallpackage_create): ditto.
11854         * objects/custom/shape_info.h (FONT_DEFAULT): ditto.
11856         * objects/custom/custom_object.c (custom_create): ditto.
11858         * objects/network/antenna.c (render_to_store): ditto.
11860         * objects/network/computer.c (render_to_store): ditto.
11862         * objects/network/disc.c (render_to_store): ditto.
11864         * objects/network/flash.c (render_to_store): ditto.
11866         * objects/network/hub.c (render_to_store): ditto.
11868         * objects/network/modem.c (render_to_store): ditto.
11870         * objects/network/modularswitch.c (render_to_store): ditto.
11872         * objects/network/monitor.c (render_to_store): ditto.
11874         * objects/network/printer.c (render_to_store): ditto.
11876         * objects/network/rj45plug.c (render_to_store): ditto.
11878         * objects/network/scead-plug.c (render_to_store): ditto.
11880         * objects/standard/textobj.c (textobj_load): ditto.
11882         * objects/sybase/client.c (render_to_store): ditto.
11884         * objects/sybase/dataserver.c (render_to_store): ditto.
11886         * objects/sybase/ltm.c (render_to_store): ditto.
11888         * objects/sybase/repserver.c (render_to_store): ditto.
11890         * objects/sybase/rsm.c (render_to_store): ditto.
11892         * objects/sybase/stableq.c (render_to_store): ditto.
11894         * plug-ins/dxf/dxf-import.c (read_entity_text_dxf): ditto.
11896         * objects/UML/uml.h (UML_STEREOTYPE_START):
11897         (UML_STEREOTYPE_END): changes default strings.
11899 2002-01-28  Akira TAGOH  <tagoh@redhat.com>
11901         * objects/UML/stereotype.c (string_to_bracketted): fixed transaction
11902         for UTF-8 support. if GTK+ and Dia don't handle UTF-8, all of characters
11903         which is given to arguments isn't UTF-8. so don't need to convert it.
11904         if GTK+ handle UTF-8, also don't need to convert it.
11905         (strend): remove.
11906         (bracketted_to_string): fixed transaction for UTF-8 support.
11907         also start/end bracket is not necessarily 1 character. so that when use
11908         strend(), it doesn't work correctly.
11909         (string_to_stereotype): use utfchar instead of char.
11910         (remove_stereotype_from_string): ditto.
11911         (stereotype_to_string): ditto.
11913         * objects/UML/stereotype.h: ditto.
11915         * objects/UML/message.c: use utfchar instead of char for structure.
11916         (MESSAGE_CREATE_LABEL, MESSAGE_DESTROY_LABEL): remove.
11918         * objects/UML/small_package.c: use utfchar instead of char for structure.
11920         * objects/UML/realizes.c: ditto.
11922         * objects/UML/object.c: ditto.
11924         * objects/UML/large_package.c: ditto.
11926         * objects/UML/implements.c: ditto.
11928         * objects/UML/generalization.c: ditto.
11930         * objects/UML/dependency.c: ditto.
11932         * objects/UML/constraint.c: ditto.
11934         * objects/UML/component.c: ditto.
11936         * objects/UML/class_dialog.c (attributes_get_current_values):
11937         (attributes_list_new_callback, attributes_fill_in_dialog):
11938         (parameters_set_values, parameters_get_values):
11939         (parameters_get_current_values, parameters_list_new_callback):
11940         (operations_set_values, operations_get_values):
11941         (operations_get_current_values, operations_list_new_callback):
11942         (operations_fill_in_dialog, templates_set_values):
11943         (templates_get_values, templates_get_current_values):
11944         (templates_list_new_callback, templates_fill_in_dialog):
11945         fixed transaction for UTF-8 support.
11947 2002-01-27  Akira TAGOH  <tagoh@redhat.com>
11949         * objects/UML/message.c (message_draw): fixed transaction for UTF-8 support.
11951         * objects/UML/class_dialog.c (class_read_from_dialog):
11952         (class_fill_in_dialog):
11953         (attributes_get_values): ditto.
11955         * objects/UML/actor.c (actor_create): ditto.
11957         * objects/UML/class.c (umlclass_calculate_data): ditto.
11959         * objects/UML/association.c (association_apply_properties):
11960         (fill_in_dialog): ditto.
11962         * objects/UML/uml.c (uml_get_attribute_string):
11963         (uml_get_operation_string):
11964         (uml_get_parameter_string):
11965         (uml_get_formalparameter_string): use utfchar instead of char.
11967         * objects/UML/uml.h: gettextize UML_STEREOTYPE_START and
11968         UML_STEREOTYPE_END.
11970         * objects/UML/class.h: use utfchar instead of char.
11972         * lib/dia_xml.c (data_add_string): ditto.
11974         * lib/text.c (text_insert_char): fixed characters# calculation
11975         when includes multibytes character in strings.
11977 2002-01-26  Steffen Macke  <sdteffen@yahoo.com>
11979         Patch from Richard Rowell <rwrowell@bellsouth.net>:
11981         * app/lineprops_area.c:
11982         * lib/arrows.h:
11983         * lib/arrows.c: 
11984         * lib/widgets.c: added crow foot arrow and cross arrow
11985         
11986         Patch from Frank Gevaerts <frank.gevaerts@fks.be>:
11987         
11988         * plug-ins/svg/render_svg.c: fixed arcs, fill and text alignment
11990 2002-01-26  Cyrille Chepelov  <cyrille@chepelov.org>
11992         * po/update.pl (REMOVED):
11993         * po/update.sh (REMOVED):
11994         * xml-i18n-merge.in.kg (REMOVED):
11995         * xml-i18n-update.in.kg (REMOVED):
11996         * sheets/Makefile.am:
11997         * Makefile.am:
11998         * autogen.sh:
11999         * configure.in: converted from xml-i18n-tools to intltools
12001         This looks like it fixes the build bugs of the snapshot tarballs, 
12002         and it supersedes #69611.       
12004 2002-01-25  Akira TAGOH  <tagoh@redhat.com>
12006         * lib/text.c (text_insert_char): fixed characters# calculation.
12007         it's not string length.
12009         * lib/plug-ins.c (dia_plugin_info_init): when GTK_DOESNT_TALK_UTF8_WE_DO
12010         is defined, needs to convert a description to UTF-8.
12012         * app/render_gdk.c (get_text_width): fixed transaction for
12013         UTF-8 support. also should uses gdk_text_width_wc() instead
12014         of gdk_text_width().
12016         * app/render_gdk.c (draw_string): when GTK_DOESNT_TALK_UTF8_WE_DO
12017         is defined, needs to convert to locale encoding for display.
12018         Also use utfchar instead of char for argument.
12020 2002-01-24  Hans Breuer  <hans@breuer.org>
12022         * app/commands.c(edit_paste_callback and more) : 
12023         call diagram_modified(ddisp->diagram) to fix #68083
12024         (help_menu_callback) : plug a DIR leak
12026         * app/disp_callbacks.c(ddisplay_canvas_events) : handle 
12027         GTK_TALKS_UTF8_WE_DONT
12029         * app/render_gdk.c(get_text_with) : it's a bad idea to use
12030         gdk_string_with() when GTK_TALKS_UTF8_WE_DONT instead of
12031         gdk_text_width(). The length value is still questionable ...
12033         * lib/charconv.c : use functions already available in early
12034         GLIB-1.3 days whiches API hasn't changed since, to avoid
12035         version problems with the win32 build
12037         * lib/font.c : finally fix #58045 and #68208
12039         * lib/dia_xml.c (xmlDiaSaveFile) : gzdopen in binary mode
12041 2002-01-24  Akira TAGOH  <tagoh@redhat.com>
12043         * app/disp_callbacks.c (ddisplay_canvas_events): when event returned
12044         no strings, fixed transaction.
12046         * lib/charconv.h: fixed typo.
12048         * app/menus.c: fixed typo.
12050         * lib/charconv.c (charconv_utf8_strchr): remove. use uni_strchr instead.
12052         * objects/UML/object.c: attrib's type uses utfchar instead of char.
12054         * app/disp_callbacks.c (ddisplay_canvas_events): forget g_free()
12056         * lib/text.c (text_create_change): use unichar instead of char.
12058         * lib/text.c (data_add_text, data_text, apply_textstr_properties):
12059         use utfchar instead of char.
12061         * lib/text.c (text_insert_char, text_key_event): fixed transaction for
12062         UTF-8 support.
12064         * lib/charconv.c (charconv_utf8_get_char): add new function.
12066 2002-01-23  Akira TAGOH  <tagoh@redhat.com>
12068         * lib/text.c (text_delete_forward, text_delete_backward,
12069         text_split_line): fixed transaction for UTF-8 support.
12071         * lib/text.c (text_copy): when UNICODE_WORK_IN_PROGRESS is defined,
12072         strlen[] has string length for UTF-8, so has to use alloclen[].
12074         * dia.pot: remove.
12076         * .cvsignore: add dia.pot.
12078 2002-01-24  Stanislav Visnovsky  <visnovsky@nenya.ms.mff.cuni.cz>
12080         * configure.in: Added "sk" to ALL_LINGUAS.
12082 2002-01-22  Akira TAGOH  <tagoh@redhat.com>
12084         * lib/text.c (text_set_string, new_text, text_copy,
12085         text_get_string_copy, text_join_lines): use utfchar instead of gchar
12086         for strings.
12088         * lib/text.c (set_string): use charconv_utf8_strchr() instead of
12089         strchr().
12091         * lib/charconv.c (charconv_utf8_strchr): add new function.
12093         * lib/charconv.c (charconv_keyval_to_unicode): ditto.
12095         * lib/charconv.c (charconv_utf8_from_gtk_event_key): ditto.
12097         * app/disp_callbacks.c (ddisplay_canvas_events): needs to convert
12098         strings to the appropriate encoding.
12100 2002-01-22  Lars Clausen  <lrclause@cs.uiuc.edu>
12102         * app/object_ops.c (object_list_align_[hv]): Leak fix.
12104         * lib/Makefile.am (INCLUDES): Added debug flags.
12106         * app/object_ops.c: Fixed ordering problem of align equi-distant &
12107         adjacent. 
12109 2002-01-21  Akira TAGOH  <tagoh@redhat.com>
12111         * lib/font.c (font_string_width): use gdk_text_width_wc() instead of
12112         gdk_string_width().
12114         * objects/GRAFCET/boolequation.c: fixed invalid comment.
12116         * objects/UML/stereotype.c (string_to_bracketted): fixed build problem
12117         when defined UNICODE_WORK_IN_PROGRESS.
12119         * lib/dia_xml.c (data_add_string): fixed typo.
12121 2002-01-20  Akira TAGOH  <tagoh@redhat.com>
12123         * configure.in: fixed test gtk_advancement.
12125 2002-01-019  Steffen Macke  <sdteffen@yahoo.com>
12127         * plug-ins/svg/render_svg.c: fix for #69053, alignment of text
12128         exported to SVG
12130         Patch from M.C. Nelson <mcn@mani.kobayashimaru.org>: 
12132         * app/recent_files.[ch]: reworked to support GNOME, accelerators,
12133         tool tips, preferences, and arbitrarily long ~/.dia/history
12135         * app/menus.c: made 'Plugins' consistantly spelled and accelerated;
12136         removed 'Open Recent'; added new separators for recent documents on
12137         File menu.
12139         * app/interface.[ch] (interface_get_toolbox_shell): new function
12141         * app/diagram.c: added new parameter to recent_file_history_add() call
12143         * app/preferences.[ch]: added new 'Recent documents list size'
12144         preferences item
12145         
12146 2002-01-18  Akira TAGOH  <tagoh@redhat.com>
12148         * lib/font.c (font_get_gdkfont_helper): use gdk_fontset_load ().
12149         if it failed, should be used gdk_font_load ().
12151         * lib/font.c (font_data): added the font entries for CJK.
12153 2002-01-17  Steffen Macke  <sdteffen@yahoo.com>
12155         Patch from M.C. Nelson <mcn@mani.kobayashimaru.org>:
12157         * app/menus.c: replaced GDK_F1 with "F1" to fix segfault on startup
12158         
12159 2002-01-04  Cyrille Chepelov  <cyrille@chepelov.org>
12161         Patch from Martin Cracauer <cracauer@cons.org>:
12162         
12163         * app/menus.c: add missing #include <gdk/gdkkeysyms.h> (useful in the
12164         non-GNOME case ?)
12166 2002-01-01  Hans Breuer  <hans@breuer.org>
12168         * app/command.c : optional use GDI printing on windoze
12170         * app/preferences.[hc] : add option 'prefer_psprint' to 
12171         select the print engine to use (could be used for Dia/Gnome
12172         as well)
12174         * app/paginate_gdiprint.(h|cpp) : new files, which interlink the
12175         wmf plug-in with the common win32 print api. Now printing
12176         should work almost as expected from a windows program :-)
12178         * app/diagram.c app/menus.[hc] : rename _UpdatableMenuItems.delete
12179         to .edit_delete to avoid clashes with C++
12181         * app/makefile.msc : updated for GDI printing
12183         * plug-ins/wmf/wmf.cpp : some small modifications to support
12184         GDI printing. Also swap R and B channel in draw_image()
12186         * app/makefile.am : added windows only files to EXTRA_DIST
12188         * objects/uml/class.c(umlclass_set_props) : force recalculation
12189         when applying properties
12191         * lib/charconv.c lib/dia_xml.c : temporary back-ported to
12192         glib-1.3.2 (for win32) IMHO causes recent cvs introduces too
12193         many incompatible changes (and would force a gtk update)
12195         * objects/makefile.msc : don't build C-Objects which are
12196         already available as 'pure shape'
12198         * plug-ins/makefile.msc : remove diaimport from build. It was
12199         only available via mailing-list and is broken since the
12200         StdProp overhaul.
12203         Patch from Jose A Ortega Ruiz  <jaortega@acm.org>
12205         * app/preferences.[hc] : tweaked preferences.c to make 
12206         PREF_STRING work. Use it for 'diagram_tree_hidden'. Also
12207         added some more DiagramTree prefererences and their own
12208         notebook page.
12210         * app/diagram_tree.[hc] : allow to sort by object type or name
12211         and hide by type ...
12212         * app/diagram_tree_menu.[hc] : ... add respective menu entries ...
12213         * app/diagram_tree_menu_callbacks.[hc] : ... and callbacks.
12215         * app/diagram_tree_window.c : handle hidden types and window
12216         size restoring.
12218 2001-12-20  Hans Breuer  <hans@breuer.org>
12220         * plug-ins/python/Makefile.am : patch from Peter Moulder 
12221         <pmoulder@csse.monash.edu.au> to make the python plug-in
12222         compile on *nix too.
12224 2001-12-03  Cyrille Chepelov  <chepelov@calixo.net>
12226         Patch from Alan <horkana@tcd.ie>:
12228         * app/menus.c: bind the F1 shortcut to the Help/_Manual function.
12230 2001-11-20  Hans Breuer  <hans@breuer.org>
12232         * app/makefile.msc : add new diagram_tree_menu(_callbacks).obj
12234 2001-11-18  Jose A Ortega Ruiz  <jaortega@acm.org>
12236         * app/diagram_tree.[hc] : Added new functions and types for
12237         sorting diagram and objects, and attaching the popup menus.
12239         * app/preferences.h: Added more diagram tree preferences, using a
12240         DiagramTreeConfig struct in DiaPreferences. The new prefs are the
12241         height and width of the diagram tree window and the default sort
12242         orders for diagrams and objects.
12244         * app/preferences.c (prefs_data): Added new entries for the new
12245         diagram tree preferences.
12247         * app/preferences.c (prefs_tabs): New tab for diagram tree
12248         preferences.
12250         * app/diagram_tree_window.[hc] (create_diagram_tree_window): 
12251         * app/diagram_tree_window.c (diagram_tree_window_new): 
12252         * app/interface.c (create_tree_window): The diagram tree window is
12253         initialised using the DiagramTreeConfig part of prefs.
12256 2001-11-14  Jose A Ortega Ruiz  <jaortega@acm.org>
12258         * app/diagram_tree_menu.[hc]: New files. Functions to create the
12259         diagram tree popup menus.
12261         * app/diagram_tree_menu_callbacks.[hc]: New files. Callbacks for
12262         the diagram tree popup menus.
12264         * app/Makefile.am (dia_core_files): diagram_tree_menu* files
12265         added.
12267 2001-11-13  Jose A Ortega Ruiz  <jaortega@acm.org>
12269         * app/diagram_tree.c (double_click_callback, diagram_tree_new):
12270         double-clicking a diagram tree node raises the diagram window
12271         to the foreground (and, if a object node was clicked, selects the
12272         object in the diagram).
12274         * app/diagram_tree.c (select_tree_widget): selecting an object
12275         node with single click simply updates it (no raise).
12277 2001-11-08  Jose A Ortega Ruiz  <jaortega@acm.org>
12278         These changes make the diagram tree lazy: it is not created unless
12279         the diagram tree window is requested.
12280         
12281         * app/diagram_tree_window.[hc] (create_diagram_tree_window): new
12282         function for creating the tree window.
12284         * app/interface.c (create_tree_window): call
12285         create_diagram_tree_window() instead of diagram_window().
12287         * app/diagram_tree.c (diagram_tree_add, diagram_tree_remove) 
12288         (diagram_tree_update, diagram_tree_update_name) 
12289         (diagram_tree_add_object, diagram_tree_add_objects) 
12290         (diagram_tree_remove_object, diagram_tree_remove_objects) 
12291         (diagram_tree_update_object): accept a NULL tree as a nominal
12292         argument (and do nothing in this case!), so that the diagram tree
12293         is not initialised if not used.
12295         * app/diagram_tree_window.c (diagram_tree): do not create the
12296         diagram tree until diagram_window() or diagtree_show_callback()
12297         are invoked.
12299 2001-10-31  Jose A Ortega Ruiz  <jaortega@acm.org>
12300         [slightly modified and applied from Hans Breuer <hans@breuer.org>]
12302         * app/diagram_tree_window.[hc] : (new files) implementation of 
12303         the diagram tree window, a container for a diagram tree. [Removed
12304         the horizontal scroll bar glitch by disableing it]
12306         * app/diagram_tree.[hc] : (new files) implementation of the 
12307         diagram tree widget. [Don't rely on the layers GPtrArray to be
12308         NULL terminated, but use its ->len field] 
12310         * app/Makefile.am (dia_core_files): added new files
12311         diagram_tree.[hc] and diagram_tree_window.[hc]
12313         * app/interface.[hc] : (create_tree_window): this function 
12314         creates the new diagram tree window widget
12316         * app/undo.c (delete_objects_apply) (delete_objects_revert) 
12317         (insert_objects_apply) (insert_objects_revert) (group_objects_apply) 
12318         (ungroup_objects_apply) (ungroup_objects_revert): 
12319         every time that an undoable command modifies a diagram 
12320         adding/removing/(un)grouping objects, a diagram_tree_something() is 
12321         invoked to keep the diagram tree window in sync
12323         * app/properties.c (properties_apply): call to
12324         diagram_object_modified(), which updates the diagram tree window
12325         when the properties of an object are modified
12327         * app/preferences.[hc] : new "show_diagram_tree" configuration option 
12328         (whether the diagram tree window should be shown on dia startup)
12330         * app/menus.c : added '<Toolbox>/File/Diagram Tree' entry
12332         * app/diagram.h (diagram_object_modified): callback notifying of a
12333         diagram object modification
12335         * app/diagram.c (diagram_load_into): added call to
12336         diagram_tree_add() to add newly loaded diagrams to the diagram
12337         tree window
12338         (diagram_destroy): call to diagram_tree_remove() to remove a
12339         destroyed diagram from the diagram tree window
12340         (diagram_add_object): call to diagram_tree_add_object() to add an
12341         object to the diagram tree window
12342         (diagram_add_object_list): as above, but with an object list
12343         (diagram_selected_break_external): deletion of objects from the
12344         diagram is detected here, and diagram_tree_remove_object() is
12345         invoked to remove the object from the diagram tree window (it
12346         would be nice to have a diagram_remove_object() in the Diagram
12347         interface)
12348         (diagram_set_filename): update the diagram tree window when a
12349         diagram's filename changes
12351         * app/commands.c (file_new_callback): added call to
12352         diagram_tree_add() to add newly created diagrams to the diagram
12353         tree window
12355         * app/app_procs.c (app_init): added call to create_tree_window()
12357         * app/makefile.msc : updated
12359 2001-10-28  Hans Breuer  <hans@breuer.org>
12361         * app/preferences.h (DiaPreferences): 
12362         * app/preferences.c (prefs_data): new "show_diagram_tree"
12363         configuration option (whether the diagram tree window should be
12364         shown on dia startup)
12366         * app/menus.c: added the new "<Toolbox>/View/Diagram tree" menu
12367         entry (both for GNOME and gtk)
12369         * app/diagram.h (diagram_object_modified): callback notifying of a
12370         diagram object modification
12372         * app/diagram.c (diagram_load_into): added call to
12373         diagram_tree_add() to add newly loaded diagrams to the diagram
12374         tree window
12375         (diagram_destroy): call to diagram_tree_remove() to remove a
12376         destroyed diagram from the diagram tree window
12377         (diagram_add_object): call to diagram_tree_add_object() to add an
12378         object to the diagram tree window
12379         (diagram_add_object_list): as above, but with an object list
12380         (diagram_selected_break_external): deletion of objects from the
12381         diagram is detected here, and diagram_tree_remove_object() is
12382         invoked to remove the object from the diagram tree window (it
12383         would be nice to have a diagram_remove_object() in the Diagram
12384         interface)
12385         (diagram_set_filename): update the diagram tree window when a
12386         diagram's filename changes
12388         * app/commands.c (file_new_callback): added call to
12389         diagram_tree_add() to add newly created diagrams to the diagram
12390         tree window
12392         * app/app_procs.c (app_init): added call to create_tree_window()
12394 2001-10-28  Hans Breuer  <hans@breuer.org>
12396         * plug-ins/python/pydia-property.c : apparently I missed
12397         to commit this last time. Now it has some more SetAttr
12398         support (apply from property)
12400         * plug-ins/python/pydia-properties.h : added PyDiaProperty_Check
12402         * plug-ins/python/pydia-text.[ch] : new files
12404 2001-10-14  Hans Breuer  <hans@breuer.org>
12406         * lib/charconv.c : g_locale_to_utf8() does not handle NULL
12407         strings. Use g_strdup() for these.
12409         libxml2 does not produce 'any extra indentation when saving a tree'
12410         [libxml2-2.4.2/doc/upgrade.html] anymore, which was the default with
12411         libxml(1). To get human readable XML some extra tweaking is required.
12412         It is enabled by setting 'pretty_formated_xml' to 'true' in 'diarc'.
12413         * lib/dia_xml.[hc] : provide and use 'DIAVAR pretty_formated_xml'
12414         * app/preferences.[ch] : initialize 'pretty_formated_xml'
12416         * lib/libdia.def : updated externals
12418         * lib/properties.h : add prototype for prop_list_from_single ()
12420         * plug-ins/makefile.msc : build metapost plug-in
12422         * plug-ins/metapost/render_metapost.c : msvc does not like
12423         switch labels without operation 'default: }'. Added a noop.
12425         * plug-ins/python/pydia-text.[hc] : (new files) wrap DiaText
12426         * plug-ins/python/diamodule.c : added PyDiaText 
12427         * plug-ins/python/makefile.msc : dito. Also added LIBXML_CFLAGS.
12428         Although the python plug-in does not use libxml at all, the
12429         headers are required to use the lib/prop*.h headers
12431         * plug-ins/python/pydia-diagramdata.c : added wrappers for
12432         update_extents and get_sorted_selected (should I duplicate
12433         more functions from PyDiaDiagram or should they be moved?)
12435         * plug-ins/python/pydia-properties.c : allow to set (some) properties
12436         through the dictionary api
12437         * plug-ins/python/pydia-property.h : declare PyDiaProperty_ApplyToObject
12438         * plug-ins/python/pydia-property.c : implement it (currently only
12439         string properties can be set)
12441         Reimplement PyDiaProperty_GetAttr by means of the new StdProp api.
12442         Quoting myself: 'Still not convinced that this is better than an 
12443          integral property->type and some casting ...
12444          It is trading a straightforward 40 lines switch statement to
12445          this nice 'type safe' function mapping (about 125 lines)'
12446         (But now it works again, better than changing the News file :)
12447         
12448 2001-10-14  Cyrille Chepelov  <chepelov@calixo.net>
12450         patch from <robert.young@dsto.defence.gov.au>: 
12451         * objects/UML/component.c: remember to set font in UML component
12452         object (fixes #62132)   
12454 2001-10-02  Lars Clausen  <lrclause@cs.uiuc.edu>
12456         * plug-ins/metapost/metapost.c: 
12457         * plug-ins/metapost/Makefile.am:
12458         * plug-ins/metapost/render_metapost.c:
12459         * plug-ins/metapost/render_metapost.h:
12460         Metapost renderer from Chris Sperandio
12462 2001-09-14  Hans Breuer  <hans@breuer.org>
12464         * app/render_gdk.c : reflect the fact, that GTK already talks
12465         UTF8 on win32, fixes #59982, #56100, (#55992 ?) ...
12467         * lib/font.c : 
12468         * app/render_libart.c : trying to fix #58045 but it appears
12469         to be an Gdk/win32, too. 
12471         * lib/charconv.c : handle utf8 conversion with the help of
12472         glib-1.3 even in the !HAVE_UNICODE case.
12474         * lib/dia_xml.c : reduce complaing about missing encoding, by
12475         detecting if the default (utf8) would break the file.
12477 2001-09-13  Cyrille Chepelov  <chepelov@calixo.net>
12479         * lib/charconv.c: (get_local_charset): at least please try to not 
12480         silently change the logic, while avoiding crashes. 
12482         * lib/font.c: (suck_font): put a #error, we have a nasty something
12483         to fix there before we switch to Gtk 2.0.
12484         
12485 2001-09-09  Hans Breuer  <hans@breuer.org>
12487         * **/makefile.mingw : Approach to compile Dia with mingw.
12488         Compiling mostly works but running does not (yet) ... 
12490         * lib/geometry.h : 
12491         - use G_OS_WIN32 instead of _MSC_VER to drag in isinf, etc. definitions. 
12492           Apparently mingw needs it too.
12493         - enable 'normalization' of a null verctor. Otherwise the beziergon
12494           bounding box calculation would be broken at least with msvc. What's
12495           the mathematical correct result of 0.0/0.0 ?
12497         * lib/dia_xml.c : isinf() for mingw too.
12499         * lib/dia_dirs.c : use MAX_PATH instead of _MAX_PATH (works for mingw 
12500         and msvc)
12502         * lib/charconv.c : still crashes if strcmp(NULL, "UTF-8"). 
12503         Please don't do it.
12505         * lib/font.c : Trying to reflect that GTK_TALKS_UTF8_WE_DONT
12507         * lib/libdia.def : updated externals. Apparently mingw needs
12508         them to produce the right mangling.
12510         * plug-ins/shape/shape-exports.c : get prototypes for xmlStrdup
12511         and xmlDiaSaveFile
12513 2001-09-08  Wang Jian  <lark@linux.net.cn>
12515         * configure.in(ALL_LINGUAS): Renamed zh_CN.GB2312 to zh_CN
12517 2001-09-07  Cyrille Chepelov  <chepelov@calixo.net>
12519         * lib/dia_xml_libxml.h:
12520         * lib/dia_xml.c: (data_add_string), (xmlDiaSaveFile): Duplicated
12521         libxml1's code, to rework the output file before it gets committed
12522         to disk. This is rubbish, and will be removed when libxml2
12523         switches from discouraged to mandatory. 
12524         All in all, this fixes #60152. 
12525         
12526         * lib/charconv.h: 
12527         * lib/charconv.c: (charconv_unichar_to_utf8):
12528         made the type of the input parameter explicitly an unsigned long.
12530         * configure.in: Added a check for libz (we must now include it
12531         explicitly, for xmlDiaSaveFile).
12532         
12533         * app/load_save.c: (diagram_data_save):
12534         * lib/plug-ins.c: (ensure_pluginrc), (info_fill_from_pluginrc),
12535         (dia_pluginrc_write):
12536         * plug-ins/shape/shape-export.c: (new_shape_renderer),
12537         (end_render), (draw_string):
12538         * plug-ins/svg/render_svg.c: (new_svg_renderer), (end_render),
12539         (draw_string):
12541         Made sure we always write UTF-8 XML files, and through
12542         xmlDiaSaveFile().
12544         * NEWS: documented that fact.
12545         
12546 2001-09-07  James Henstridge  <james@daa.com.au>
12548         * configure.in (found_libxml): refactor the check for libxml a
12549         little so that it handles finding both libxml1 and 2 better.
12551 2001-09-03  Cyrille Chepelov  <chepelov@calixo.net>
12553         * app/app_procs.c: removed a spurious } which caused a compilation
12554         error in the (!HAVE_GNOME && HAVE_POPT_H) case
12556         * lib/charconv.c: (get_local_charset): some versions of iconv(1)
12557         don't know what ANSI X3.4-1968 is. I didn't know until this day,
12558         but it's just plain old ASCII. Added a check to shield the poor
12559         XML library.
12561         Patches from <robert.young@dsto.defence.gov.au>:
12563         * lib/text.c: (text_calc_boundingbox) Bounding box now calculates the
12564         width and height of text before calculating bounds. Fixes #59928
12566         * app/preferences.c: Moved grid related items into Grid Tab.
12567         
12568 2001-09-02  Cyrille Chepelov  <chepelov@calixo.net>
12570         * app/interface.c: (create_zoom_widget): connected one more signal
12571         to the Zoom selector combo's list. Fixes #59879.
12573         * app/app_procs.[ch]: (app_init) (do_convert)
12574         (build_output_file_name): brought back into the main executable
12575         the rare useful bits of the ill-fated diaconv. This means we have
12576         one new feature : --export-to-format (-t), which should make
12577         writing conversion scripts easier, and a crude implementation of
12578         -t and -e for the poptless argument parsing, which means the Win32
12579         port should be able to take advantage of it (that should make
12580         resolving #58197 possible).
12582         * app/diaconv.c: kept the poor duck compiling (but that's about
12583         it).
12585         * plug-ins/svg/render_svg.c: updated the SVG DTD header (I hope
12586         I've got it right).
12588         * NEWS: updated about the new feature above, and documented the 
12589         "missing encoding specification" complaint. 
12590         
12591 2001-09-01  Abel Cheung  <maddog@linux.org.hk>
12593         * configure.in: Rename zh_TW.Big5 -> zh_TW in ALL_LINGUAS.
12595 2001-09-01  Cyrille Chepelov  <chepelov@calixo.net>
12597         * objects/standard/bezier.c: used g_new0 instead of g_new, to take
12598         care of #59837.
12600 2001-09-01  James Henstridge  <james@daa.com.au>
12602         * */Makefile.am: various changes to include missing files, and fix
12603         sheets dir to handle building with builddir != srcdir.
12605         * autogen.sh: unconditionally pass the --enable-maintainer-mode
12606         and --enable-db2html flags so that builds from CVS work correctly.
12608         * configure.in: increment version number.  Also add an
12609         --enable-db2html flag.  Without the flag, db2html won't be run (if
12610         the flag is passed and db2html is not present, do nothing).
12612 2001-08-30  Cyrille Chepelov  <chepelov@calixo.net>
12614         * lib/poly_conn.c: (polyconn_copy): it's a wonder this routine
12615         even compiled. It's really too bad there is no lint tool easily
12616         available (or a more cautious, pedandic, paranoid and verbose
12617         compiler). Anyway, this fixes #59662. (this didn't affect 0.88.x)
12619 2001-08-27  Cyrille Chepelov  <chepelov@calixo.net>
12621         * app/load_save.c:
12622         * dia/lib/plug-ins.c: use g_strdup() instead of strdup(). Patch
12623         from <robert.young@dsto.defence.gov.au>. Fixes #59591.
12625         * app/menu.c: added ellipsis(...) to diagram properties menu item.
12626         * app/dia-props.c: diagram properties dialog contents did not
12627         represent current diagram settings.
12628         * app/dia-props.[ch]:
12629         * app/display.c: diagram properties contents now follows currently
12630         selected diagram.
12631         Patch also from <robert.young@dsto.defence.gov.au>, fixes #59409.
12633         * AUTHORS: added Robert Young.
12634         
12635 2001-08-27  Cyrille Chepelov  <chepelov@calixo.net>
12637         * app/modify_tool.c: (modify_button_release): Patch from
12638         <robert.young@dsto.defence.gov.au>. Fixes the remaining bit from
12639         #59090: if selection dragging was released outside of the window, 
12640         artifacts of the selection box remained.
12642 2001-08-25  Cyrille Chepelov  <chepelov@calixo.net>
12644         * Objects/custom/shape_info.c: added missing #include <xmlmemory.h>
12646 2001-08-19  Cyrille Chepelov  <chepelov@calixo.net>
12648         * configure.in:
12649         * sheets/Makefile.am: prepared the terrain for the Version of
12650         xml-i18n-tools Which Comes After 0.9 (and which will feature at
12651         last a sane behaviour with XML files). Some reasonible delay
12652         before enforcing that version *will* be given.
12654         * xml-i18n-merge.in.kg: included the current CVS xml-i18n-merge.in
12655         
12656         * lib/plug-ins.c: <xmlmemory.h> defines xmlFree(), otherwise it
12657         becomes a nonexistent symbol.
12658         
12659 2001-08-18  Hans Breuer  <hans@breuer.org>
12661         * app/app_procs.c : made it compile without ENABLE_NLS
12663         * app/diap_callbacks.c : strcmp isn't guaranteed to work
12664         with NULL pointers
12666         * app/load_save.c :
12667         * lib/plug-ins.c : 
12668         * objects/custom/shape_info.c : avoid mixing allocators and dealocators. 
12669         It has to be :
12670                 xmlGetProp, ... -> xmlFree
12671                 malloc, strdup -> free
12672                 g_new, g_malloc, g_strdup - > g_free
12674         * app/win32print.c : some more error checking, still not
12675         working on Win9x
12677         * lib/charconv.c : get_local_charset is used even with !HAVE_UNICODE
12679         * lib/dia_xml.c : msvc still has no unistd.h
12681         * lib/dia_xml.c :
12682         * lib/sheets.c : temporary resolved libxml include brokeness
12684         * plug-ins/python/pydia-*.c : reflect Font and StdProp api
12685         changes. Compiles again, but doesn't do anything useful anymore.
12686         (see THE_PROP_TYPE_IS_INTEGRAL)
12688         * **/makefile.msc : updated to use LIBXML2
12690         * lib/libdia.def : reflect api changes
12692 2001-08-17  Cyrille Chepelov  <chepelov@calixo.net>
12694         * config.h.win32: added defines telling that gtk speaks UTF8.
12695         Hans, I believe this reflects what GTK on Win32 does.
12697         * app/app_procs.c: if GTK talks UTF8, we'll feed it UTF8 localised
12698         strings.        
12699         * lib/prop_inttypes.c: 
12700         * lib/prop_text.c:
12701         * lib/prop_widgets.c: fixed typos in the GTK_TALKS_UTF8_WE_DONT
12702         code path.
12703         
12704         * lib/plug-ins.c: (dia_register_plugins_in_dir): If there is a
12705         trailing // (or whatever (G_DIR_SEPARATOR * 2) is), a recursive
12706         search for plug-ins is done.
12707         * app/Makefile.am: made app/run_dia.sh use the // capability. No
12708         need to update this anymore if we get a new plug-in library (or
12709         remove one).
12711         * lib/dia_xml.c: #include <unistd.h> was missing.
12712         
12713         * lib/properties.h: 
12714         * lib/proplist.c: (pdtpp_defaults): Added a new flag,
12715         PROP_FLAG_NO_DEFAULTS. Will be used in the "automatic defaults"
12716         support.        
12718 2001-08-16  Cyrille Chepelov  <chepelov@calixo.net>
12720         * sheets/civil.sheet: removed duplicate "Danish" entries.
12722         * autogen.sh:
12723         * configure.in: 
12724         * .cvsignore:
12725         * sheets/Makefile.am: 
12726         * po/POTFILES.in:
12727         * Makefile.am: applied the xml-i18n-tools README's instructions.
12729         * po/(da de fr hu nl nn no sl).po: merged the translations from
12730         the sheet files into the .po files. I hope I haven't mixed
12731         languages...
12732         * sheets/*.sheet (REMOVED):
12733         * sheets/*.sheet.in (NEW): moved the sheet files sans
12734         translations into .sheet.in files. 
12735         
12736         * sheets/xml-i18n-unicodify: (NEW) included from xml-i18n-tools,
12737         because we don't yet want to force all translators to work using
12738         UTF-8 editors. We'll want to do that sometime (sooner rather than
12739         later). Okay, I sing a slightly different tune in po/ChangeLog...
12741         * dia.desktop (REMOVED):
12742         * dia.desktop.in (NEW): used also the x18t infrastructure for
12743         this too.
12745         * xml-i18n-update.in.kg (NEW): This one will stay in CVS until an
12746         "official" version of x18t with support for .sheet files is available.
12747         * xml-i18n-merge.in.kg (NEW): This one will stay in CVS until an
12748         "official" version of x18t which doesn't corrupt UTF-8 data in XML
12749         is available.
12750         
12751         ** yes, we are now using xml-i18n-tools to manage the sheet
12752         translations. For the Win32 build, Nemo stores snapshots of
12753         translated strings next to the CVS snapshots. **
12755         * sheets/checktrans.py: suddenly, some sheets have lots of
12756         translations (objects which existed before sheets, mostly).
12757         Adapted the formatting.
12759         * po/README (REMOVED): this is obsolete ! It was ignored, anyway.
12761         * app/display.[ch]: (ddisplay_autoscroll), (ddisplay_scroll):
12762         * app/modify_tool.[ch]: (modify_motion): A (modified) patch from
12763         <robert.young@dsto.defence.gov.au>, to fix #59090.
12765         * app/display.c: (ddisplay_scroll): While at it, added some
12766         margin, so that autoscrolling can happen within a margin outside
12767         the diagram's extents.
12769         * app/tool.[ch]: 
12770         * app/interface.c:
12771         * app/disp_callbacks.c: Robert "forced" me to go when I usually
12772         don't, namely the app/ directory. So while I was there, I
12773         scratched a long-time itch. If no object has focus, pressing the
12774         space bar will select back the tool which was selected before the 
12775         current one (I find this especially useful with "reset after create" !)
12776         
12777         * lib/proplist.c: (prop_list_from_single): Renamed
12778         prop_list_singleton() to avoid confusion with the Singleton
12779         pattern (which it definitely is not).
12780         
12781         * lib/propobject.c: (object_prop_by_name_type),
12782         (object_prop_by_name): The "flags" parameter was not necessary.
12783         These don't return synthetic properties, but properties built from
12784         a real property description list; therefore, we don't call
12785         make_new_prop() but use the existing property descriptor, which
12786         has perfectly valid (and meaningful) flags.
12788         * lib/proplist.c: (pdtpp_synthetic), (pdtpp_from_object): These
12789         new predicates better reflect the reason why properties exist when
12790         they're created by make_new_prop() or object_prop_by_name().    
12792         * lib/propobject.c: (object_prop_by_name_type), (object_prop_by_name):
12793         * lib/prop_basic.c: (make_new_prop): used the new reasons instead
12794         of pdtpp_true().
12796         * lib/properties.h: reflects all the above changes.
12798         * objects/SADT/arrow.c:
12799         * objects/SADT/annotation.c:
12800         * sheets/SADT.sheet: minor renamings to better match FIPS 183's
12801         IDEF0 terminology.
12802         
12803 2001-08-15  Cyrille Chepelov  <chepelov@calixo.net>
12805         * lib/properties.h:
12806         * lib/proplist.c: (prop_list_singleton):
12807         * lib/propobject.c: (object_prop_by_name_type), (object_prop_by_name):
12808         Added these, to simplify interactions of plug-ins with the StdProp
12809         core.
12811         * lib/Makefile.am:
12812         * lib/dia_xml.h:
12813         * lib/dia_xml_libxml.h (NEW): 
12814         * app/load_save.c:
12815         * lib/dia_xml.c:
12816         * lib/plug-ins.c:
12817         * lib/sheet.c:
12818         * objects/custom/shape_info.c: A few prototypes were causing
12819         #include hell, because we generally attempt to not pull the whole
12820         libxml header set when we include dia_xml.h. Moved those
12821         prototypes away for the rare cases they're necessary.
12822         
12823 2001-08-15  Hans Breuer  <hans@breuer.org>
12825         * lib/font.c : made LARS_TRACE_MESSAGES Standard C conform
12827         * lib/libdia.def : 
12828         * lib/makefile.msc : updated
12830         * lib/prop_basic.c : __FUNCTION__ is a gcc extension. Please
12831         use G_GNUC_FUNCTION instead.
12833         * lib/prop_inttypes.c : include <stdlib.h> for strtol()
12835         * objects/sadt/annotation.c : disable TEMPORARY_EVENT_TEST for
12836         msvc instead of cleaning missing includes
12838         * plug-ins/wmf/wmf.cpp :
12839         * plug-ins/wmf/wmf_gdi.h : fixed for Font to DiaFont renaming
12841 2001-08-15  Cyrille Chepelov <chepelov@calixo.net>
12843         * app/app_procs.c:
12844         * app/load_save.c:
12845         * lib/dia_xml.c:
12846         * lib/plug-ins.c:
12847         * lib/sheet.c:
12848         * objects/custom/shape_info.c:
12849         * plug-ins/shape/shape-export.c:
12850         * plug-ins/svg/render_svg.c: used the libxml1/libxml2
12851         compatibility macros as taught by http://xmlsoft.org/upgrade.html;
12852         removed xmlKeepBlanksDefault(0) in favour for proper
12853         xmlIsBlankNode() testing. Lots of other fixups to use the
12854         "libxml1.5" (libxml2 parser embedded in recent libxml1), and to
12855         make libxml1 output correct files.
12857         * configure.in: use libxml2 (>= 2.3.9) if it's found, or
12858         libxml1 (>= 1.8.14). Exactly one of these must be installed (devel
12859         packages). If both devel packages are found, the build will stop 
12860         (Fredrik: please add a Build-Conflicts: on libxml2-dev for the moment) 
12862         * lib/bezier_conn.c: (bezierconn_init): Lars, you forgot to
12863         allocate the first handle :-)
12864         
12865         * lib/object.c: (object_init): <gratuitous>g_new() used instead of
12866         a cast and a sizeof.</gratuitous>
12868         * objects/custom/custom_object.c: (custom_copy): don't call
12869         text_get_attrbutes if the shape has no text...
12870         (custom_update_data): The info->resize_with_text code was a bit
12871         directive; basically, the shape's bounding box was forced to be 
12872         proportional to the text's bounding box.... This fixes #57187.
12873         
12874         * objects/custom/shape_info.c: (load_shape_info): Set an obvious
12875         default for info->aspect_ratio; unobfuscated a line about
12876         info->resize_with_text;
12877         
12878 2001-08-15  Cyrille Chepelov <chepelov@calixo.net>
12880         * lib/properties.h: added comments next to the PROP_TYPEs to tell
12881         which C Property subclass to use.
12882         
12883         * plug-ins/dxf/dxf-import.c: (read_entity_line_dxf): Removed the
12884         cast-ridden form of setting properties in a list, in favour for
12885         the "local pointers" form. I'll take any better offer...
12887 2001-08-14  Cyrille Chepelov <chepelov@calixo.net>
12888         
12889         * lib/font.c: fprintf(...) --> fprintf(format...)
12891         * configure.in: added a disabled versioned test for glib.
12892         * lib/prop_geomtypes.c: (bezpointprop_load), (bezpointprop_save),
12893         (bezpointarrayprop_load), (bezpointarrayprop_save): replaced
12894         g_critical() with a simple g_error(). Proper fix is to implement
12895         that stuff. 
12897         * lib/properties.h: PROP_STD_TEXT is a PROP_TYPE_TEXT, not a
12898         PROP_TYPE_STRING.
12899         
12900         * lib/properties.h:     
12901         * lib/propdesc.c: (prop_desc_list_calculate_quarks):
12902         * lib/proplist.c: (find_prop_by_name_and_type):
12903         * lib/prop_basic.c: (make_new_prop), (initialize_property):
12904         * lib/propoffsets.c: (do_set_props_from_offsets),
12905         (do_get_props_from_offsets), (prop_offset_list_calculate_quarks):
12906         Added a type_quark member to PropDescription, Property and
12907         PropOffset. Used it to implement a safety in
12908         do_[sg]et_props_from_offsets().
12909                 
12910         * objects/flowchart/diamond.c: the diamond's text was not saved,
12911         and thus not even copied (c&p).
12912         * objects/standard/textobj.c: ditto.
12914         Most of the above changes thanks to Robert Young's testing. Thanks !
12915         
12916 2001-08-14  Kjartan Maraas  <kmaraas@gnome.org>
12918         * sheets/*.sheet: Added some Norwegian translations (both nynorsk
12919         and bokmÃ¥l).
12920         
12921 2001-08-13  Cyrille Chepelov  <chepelov@calixo.net>
12923         * lib/proplist.c (prop_list_from_descs): added a call to
12924         prop_desc_list_calculate_quarks(). (find_prop_by_name_and_type):
12925         too embarrassing to tell.
12926         
12927         * lib/propdesc.c (prop_desc_list_calculate_quarks): converted the
12928         while loop to a for loop, for symmetry with
12929         prop_offset_list_calculate_quarks().
12931         * lib/geometry.h: new inline function, rectangle_equals.
12933         * lib/diagramdata.[ch]: refactored a bit the diagram extents
12934         computation logic, and changed it to always be the union of the
12935         visible layers' extents. This should close #58882 (Debian
12936         #107167), and fixes #55498.
12938         * app/display.c: made the initial visible box more coherent with
12939         the diagram being loaded's extents.
12941         * app/prop_attr.c: don't set the font (from offset) if font_data
12942         is NULL. Two brainos in colorprop_load() and fontprop_load().
12943         
12944 2001-08-13  Cyrille Chepelov  <chepelov@calixo.net>
12946         * lib/properties.[ch]: split in a lot of pieces: 
12948         * lib/prop_*.[ch] (NEW): all property types are now first-class
12949         objects, inheriting from the original abstract Property type.
12950         * lib/propdesc.c (NEW): property description handling routines
12951         * lib/propoffsets.c (NEW): property offset handling routines
12952         * lib/proplist.c (NEW): property list handling routines
12953         * lib/propobject.c (NEW): property list <-> object routines
12954         * lib/propregistry.c (NEW): holds the PropertyType-->PropertyOps
12955         relations.
12956         * lib/propinternals.h: prototypes for stuff not usually needed by 
12957         the outside of StdProps.
12958         * lib/Makefile.am: a lot of new files have been added...
12960         THE ABOVE CHANGES ARE MAJOR CHANGES AND AFFECT THE WHOLE TREE, IN
12961         BOTH INTERFACES AND RUN-TIME STABILITY.
12963         * lib/plug-ins.h: bumped up DIA_PLUGIN_API_VERSION
12964         
12965         * lib/object.h: removed the incestuous relationship with
12966         properties.h' contents. Now a Property list is a GPtrArray -->
12967         object interface change !
12969         * app/app_procs.c/app_init(): removed a disabled call to a
12970         non-existent routine. Added a call to stdprops_init().
12971         
12972         * objects/Makefile.am: disabled the construction of EML. I'm not
12973         touching these until a certain issue is solved (or this module
12974         removed).
12975         * app/group.c:  
12976         * objects/**/*.c except objects/EML/*: adapted all stdprop-using 
12977         objects to the interface changes.
12978         
12979         * app/disp_callbacks.c: killed a warning.
12980         * lib/dia_xml.[ch]: sprinkled "const" modifiers. 
12982         * app/commands.c: 
12983         The macros PROP_VALUE_* have disappeared. Adapted to using the new 
12984         interface.
12986         * plug-ins/dxf/dxf-import.c: 
12987         * plug-ins/xfig/xfig-import.c: 
12988         PROP_VALUE_* macros have been removed. Converted to the new API.
12990         * plug-ins/python/**/*: I gave up converting this; I can't
12991         compile --with-python (problems with object.h defined both by us
12992         and by Python). I'll gladly help whomever cares to fix it !
12993         (or, fix it myself if someone tells me how to compile it).
12994         
12995         * configure.in: added the UNICODE-related progress defines.
12996                 
12997         * configure.in:
12998         * lib/geometry.h: On Solaris and perhaps other systems, finite()
12999         is defined in ieeefp.h rather than in math.h. Patch from Andrew
13000         Halper <ashalper@acm.org> with further modifications, isinf() is
13001         provided by -lsunmath (sunmath.h).
13002         
13003         * lib/font.c: conditionally disabled Lars' debugging messages.
13004         Bracketed the definition of DiaFontFamily with #ifdef HAVE_FREETYPE.
13005         
13006 2001-08-11  Lars Clausen  <lrclause@cs.uiuc.edu>
13008         * lib/bezier_conn.h: 
13009         * objects/standard/bezier.c (bezierline_create): 
13010         * lib/bezier_conn.c (bezierconn_init): 
13011         Preparations for use of userdata for bezier lines.
13012         
13013         * objects/standard/polygon.c: 
13014         * objects/standard/create.h:
13015         * lib/polyshape.c:
13016         * lib/polyshape.h:
13017         * plug-ins/xfig/xfig-import.c:
13018         Use of user_data for polygon as well, including adding
13019         polyshape_set_points.  Include file for non-interactive 
13020         creation of standard objects, objects/standard/create.h
13022 2001-08-10  Lars Clausen  <lrclause@cs.uiuc.edu>
13024         * app/render_gdk.c: 
13025         * app/render_gdk.h: 
13026         * lib/font.c:
13027         * lib/font.h:
13028         * lib/widgets.c:
13029         More preliminary freetype support.  Not at all functional, crashes
13030         when rendering.
13032         * lib/poly_conn.h: 
13033         * lib/poly_conn.c: 
13034         * objects/standard/polyline.c: 
13035         Support for creating polyline objects with more than two points.
13036         This includes an extra function and a prototype change in the
13037         poly_conn lib object.
13039         * lib/object.c (object_copy): Fixed memory leak of handles and
13040         connections.
13042 2001-08-08  Abel Cheung  <maddog@linux.org.hk>
13044         * dia.desktop: added traditional Chinese strings
13046 2001-08-04  Cyrille Chepelov  <chepelov@calixo.net>
13048         * NEWS: updated to reflect build-time dependencies.
13050         * lib/properties.[ch]: wrote get_prop_descriptions() as a wrapper
13051         around obj->ops->describe_props(obj). Quarks are none of an
13052         object's business in the general case... 
13053         * lib/text.c: Added an apply_textattr_properties() function to
13054         factor out some common code related to applying a dialog's text
13055         attribute properties to a (Text *) which wasn't edited there. 
13056         Ditto for textstr, for the string part of an objet.
13058         * objects/GRAFCET/action.c:
13059         * objects/SADT/annotation.c:
13060         * objects/SADT/box.c: used apply_textattr_properties().
13061         
13062         * objects/UML/actor.c: 
13063         * objects/UML/branch.c:
13064         * objects/UML/component.c:
13065         * objects/UML/constraint.c:
13066         * objects/UML/small_package.c:
13067         * objects/UML/state.c:
13068         * objects/UML/usecase.c:
13069         * objects/UML/large_package.c:
13070         * objects/UML/note.c:
13071         * objects/UML/node.c:
13072         * objects/UML/message.c:
13073         * objects/UML/classicon.c:
13074         * objects/UML/object.c:
13075         * objects/UML/realizes.c:
13076         * objects/UML/dependency.c:
13077         * objects/UML/implements.c:
13078         slim-fast(tm) cure using more StdProps, and UTF-8 audit.
13079         (most objects were already using StdProps to some extent ; this
13080         systematises usage and removes some dead wood). 
13081         
13082         * objects/UML/stereotype.[ch]: use UTF-8 internally. const police work.
13083         * objects/UML/uml.[ch]: audited for UTF-8.
13085         * objects/UML/class.c: the UML_STEREOTYPE_* strings defined by
13086         uml.h can be in UTF-8... this code isn't yet ready. Duplicating a
13087         private (ISO-8859-1) definition.
13088         
13089         * lib/charconv.c: Added a warning if we didn't run
13090         nl_langinfo(CODESET) but rely instead on a hardcoded default.
13091         
13092 2001-08-02  Cyrille Chepelov  <chepelov@calixo.net>
13094         * lib/diamenu.h:
13095         * app/disp_callbacks.c: added a way for an object to cause an
13096         already realised menu to be destroyed (for instance if it changes
13097         too much).
13099         * objects/custom/custom_object.c: used the above to fix #55073.
13101 2001-08-01  Lars Clausen  <lrclause@cs.uiuc.edu>
13103         * configure.in: Remove 2.50 prereq.
13105 2001-07-30  Cyrille Chepelov  <chepelov@calixo.net>
13107         * po-checktrans.py: under some circumstances, there was one column 
13108         more than what was supposed to be, thus breaking the formatting.
13109         
13110 2001-07-29  Cyrille Chepelov  <chepelov@calixo.net>
13111         
13112         * objects/SADT/annotation.c: forgot to add a #include <stdlib.h>
13114         * NEWS: updated with new stuff since 0.88
13116         * shapes/network/antenna.shape: the text was misplaced ; fixed.
13118         * shapes/network/firewall.(shape|xpm) (NEW): a brick-wall looking
13119         firewall router (upon request from Cyril Lacoux
13120         <clacoux@easter-eggs.com>)
13122         * configure.in (didn't rename to configure.ac): autoconf 2.50
13123         constructs were used ; added an AC_PREREQ call to guard against
13124         older autoconfs.
13125         
13126 2001-07-27  Cyrille Chepelov  <chepelov@calixo.net>
13128         * lib/properties.c: minor clean-ups with the event delivery code.
13130         * EML/instantiation.c: brought this object back from stone and ice
13131         age.    
13133         * app/diaconv.c(NEW): added a command-line conversion tool. Still
13134         lacks a man page and correctness. In fact, it doesn't work. Please
13135         see #58196 if you want to finish it.
13136         
13137         * lib/message.[ch]: redefined things a little so that a different
13138         message_internal routine could be passed.
13139         applications can use that to fit themselves to the display model.
13141 2001-07-26  Cyrille Chepelov  <chepelov@calixo.net>
13143         * objects/SADT/box.c: 
13144         * objects/GRAFCET/action.c: spelling in property descriptors (name
13145         field...)
13146         * objects/SADT/annotation.c: ditto, plus a temporary test of the
13147         event delivery code (try to click on the "click me !" button !).
13149         * app/group.c: 
13150         * lib/properties.[ch]: improved (fixed) support for group event 
13151         handlers. Fixed various things from yesterday's code to make it
13152         not too obviously crash.
13154 2001-07-26  Cyrille Chepelov  <chepelov@calixo.net>
13156         * app/group.c: added delivery of events to the first member of the
13157         group which is able to process it.
13159         * lib/properties.c(prop_desc_lists_intersection): properties
13160         don't match if they don't have identical event handler.
13161         * lib/properties.h: simplified the PropEventHandler signature.
13163         Event delivery code is still untested so far, but should be
13164         lurking harmless.
13165         
13166 2001-07-25  Cyrille Chepelov  <chepelov@calixo.net>
13168         * lib/properties.[ch]: Added (untested !) property event handler
13169         capability. Added a new PROP_TYPE_BUTTON, for the purpose of
13170         generating such events. This stuff compiles, and should lurk
13171         around silently as long as you don't declare property descriptors
13172         with events (AFAICT).
13173         In object_create_props_dialog() and friends:
13174         attached a single structure with lots of data instead of lots of
13175         little attachments of data to the dialog widget.
13176         
13177         * lib/object.h: fixed mild typedef breakage introduced by the above.
13179 2001-07-17  Lars Clausen  <lrclause@cs.uiuc.edu>
13181         * lots of files: Changed Font to DiaFont
13182         * */Makefile.am: Added FREETYPE_LIBS
13183         * plug-ins/xfig/xfig-export.c: Improved (working:) color handling
13185 2001-07-13  Kjartan Maraas  <kmaraas@gnome.org>
13187         * configure.in: Added "nn" to ALL_LINGUAS.
13188         
13189 2001-07-09  Alex Larsson  <alexl@redhat.com>
13191         * app/disp_callbacks.c:
13192         Add gdk_im_ready() calls to XIM code.
13194 2001-07-04  Cyrille Chepelov  <chepelov@calixo.net>
13196         * lib/properties.[ch]: splitted prop_get_widget() into
13197         prop_get_widget() (gives a widget but doesn't fill it) and 
13198         prop_reset_widget() (fills an existing widget with a property's value).
13200         * lib/widgets.[ch]: const enforcement police work.
13202         * shapes/network/antenna.shape: added a connection point at top,
13203         upon request from <Emmanuel.Quemener@cri.ens-cachan.fr>.
13204         
13205 2001-06-25  Cyrille Chepelov  <chepelov@calixo.net>
13207         * intl/*: tested with gettext-0.10.38
13208         * configure.in: moved a macro call around (AM_PROG_CC) to keep
13209         some of autogen.sh from complaining.
13210         * INSTALL: added a warning against gettext older than at least 0.10.36
13211         
13212 2001-06-19  Cyrille Chepelov  <chepelov@calixo.net>
13214         * configure.in: added explicit calls to AM_LANGINFO_CODESET and
13215         AM_ICONV (both provided by gettext)
13217 2001-06-14  Cyrille Chepelov  <chepelov@calixo.net>
13219         * lib/charconv.c: corrected the degraded mode for when
13220         !HAVE_UNICODE. Thanks to Ben A. Hetland for reporting this.     
13222         * objects/chronoline/chronoline_events.c: UTF8 compliance.
13223         
13224 2001-06-13  Cyrille Chepelov  <chepelov@calixo.net>
13226         * lib/properties.[ch]: convenience macros around PROP_NOTEBOOKS ;
13227         new "eye candy" properties: PROP_MULTICOL_(BEGIN|PAGE|END) to lay 
13228         widgets on several columns, PROP_FRAME_(BEGIN|END) to put widgets
13229         into a frame box.
13231         * objects/chronogram/chronoline.c:
13232         * objects/chronogram/chronoref.c: took advantage of the above to
13233         make nicer looking dialogs.
13235         * lib/charconv.[ch]: added charconv_unichar_to_utf8 ("inspired"
13236         from libunicode's internals).
13237         * lib/message.c: convert strings to local encoding prior to
13238         display (UNICODE_WORK_IN_PROGRESS)
13239         * lib/properties.[ch]: convert strings to local encoding prior to
13240         display, and back to UTF8 (UNICODE_WORK_IN_PROGRESS).
13241         * lib/render.h: tagged strings as (utfchar *) instead of (char *)
13242         * lib/stringprerenderer.[ch]: ditto
13244         (lib/text.c has been audited for UTF8, but the size of the changes
13245         make them inappropriate for commit before 0.89)
13246         
13247 2001-06-12  Cyrille Chepelov  <chepelov@calixo.net>
13249         * objects/boolequation.h (<save|load>_boolequation): made the 
13250         prototypes for match the .c file.
13251         
13252         * samples/grafcet.dia: minor non-conformance with IEC-848
13253         fixed (in the transition from step 100 to step 101).
13255         * lib/properties.[ch]: added a flag (PROP_FLAG_DONT_MERGE) to
13256         disallow editing of properties if the object is part of a group.
13258         * objects/chronogram/chronoline.c: 
13259         * objects/SADT/annotation.c:
13260         * objects/SADT/box.c:
13261         * objects/GRAFCET/step.c:
13262         * objects/GRAFCET/transition.c:
13263         * objects/GRAFCET/condition.c: took advantage of PROP_FLAG_DONT_MERGE.
13264         
13265 2001-06-12  Hans Breuer  <hans@breuer.org>
13267         * lib/libdia.def : removed lazyprop exports
13268         * lib/makefile.msc : removed lazyprop.obj
13270         * objects/custom/custom_objects.c : use HAVE_UNISTD_H
13271         and avoid crashes by always creating a custom->text,
13272         when (custom->info->has_text) 
13274         * objects/makefile.msc : removed sybase from build
13276         * objects/GRAFCET/boolequation.c (<save|load>_boolequation) :
13277         ObjectNode is a pointer already, which is what we want
13278         instead of a pointer pointer.
13280         * plug-ins/wmf/wmf.cpp : fixed problem with arc scaling
13281         and implemented working export for images
13283         * shapes/network/zip-disk.shape : added connection points 
13285 2001-06-12  Cyrille Chepelov  <chepelov@calixo.net>
13287         * objects/SADT/box.c: removed lazyprops for standard props.
13288         * objects/chronograms/chronoline.c: removed lazyprops (phew !)
13289         * objects/chronograms/chronoref.c: ditto 
13291         * lib/Makefile.am:
13292         * lib/dummy_dep.h:
13293         * lib/connpoint_line.c:
13294         * lib/lazyprops.[ch] (DELETED): good riddance (closes #55895)
13295         * lib/properties.[ch]: new property types:
13296             - PROP_TYPE_STATIC: static text to be displayed in the dialog.
13297             - PROP_TYPE_MULTISTRING: same as string, but renders as a
13298             multi-line entry box.
13299             - PROP_TYPE_NOTEBOOK_BEGIN,_PAGE,_END: stuff to make dialogs
13300             in a tabbed-notebook style (this is a bit complicated to use; 
13301             see objects/chronograms/chronoline.c for an example).
13302                
13303 2001-06-11  Cyrille Chepelov  <chepelov@calixo.net>
13305         * objects/GRAFCET/boolequation.[ch]: zap lazyprops. Add standard props.
13306         * objects/GRAFCET/step.c: ditto.
13307         * objects/GRAFCET/vector.c: ditto.
13308         * objects/SADT/annotation.c: ditto.
13309         * objects/SADT/arrow.c: ditto (plus bounding box fixes).
13310         
13311         * lib/properties.[ch]: two more non-visible types
13312         (PROP_TYPE_ENUMARRAY and PROP_TYPE_INTARRAY).
13314         * lib/neworthconn.[ch]:
13315         * lib/orthconn.[ch]: added support for manipulation through
13316         standard properties.
13318         * configure.in: removed -fomit-frame-pointer, this seems to
13319         confuse recent gcc/gdb's, maybe we'll get better stack dumps in 
13320         bugzilla.
13322         * charconv.[ch]: more functions from unicode.h.
13323         get_local_charset() wasn't working properly, fixed now.
13324         A subtle crashbug in charconv_utf8_to_local8() nailed (thanks to 
13325         ElectricFence !)
13326         
13327         * objects/EML/process.h: pulled the bits of lazyprops.h it uses.
13328         * lib/lazyprops.[ch]: put a big fat warning in.
13330         * app/render_eps.c: one line mysteriously went away, causing a
13331         variable to be used uninitialised....
13333 2001-06-10  Cyrille Chepelov  <chepelov@calixo.net>
13335         * app/app_procs.c: commented out the call to
13336         bind_textdomain_codeset(): it's premature.
13337         
13338         * lib/connpoint_line.c: a NULL point can be given to
13339         connpointline_adjust_count(), in case there's not really a clicked
13340         point.
13342         * lib/textattr.h(NEW): moved the definition of TextAttributes to sort
13343         #include order troubles. #included by lib/text.h, so there is no 
13344         impact outside lib/.
13345         * lib/properties.[ch]: added support for CONNPOINT_LINE and
13346         (nonvisible) TEXT properties.
13348         * objects/GRAFCET/action.c:
13349         * objects/GRAFCET/vergent.c: dropped lazyprops for standard
13350         properties.
13351         
13352         * objects/UML/lifeline.c: pruned some legacy stuff (now pure
13353         standard properties code). Grafted a dynamic number of connection
13354         points (heavily inspired from what Vergent does). This is the real
13355         fix for #55863.
13357         * objects/GRAFCET/boolequation.[ch]: audited for UTF-8
13359         * lib/fonts.c: some hardening (mostly g_assert())
13360 2001-06-09  Cyrille Chepelov  <chepelov@calixo.net>
13362         * app/app_procs.c (app_init): added a call to
13363         bind_textdomain_codeset() so that gettext gives us UTF-8 strings
13364         (UNICODE_WORK_IN_PROGRESS).
13365         
13366 2001-06-08  Cyrille Chepelov  <chepelov@calixo.net>
13368         * plug-ins/xfig/xfig-import.c: corrected a typo (fixes #55910)
13370         * objects/UML/lifeline.c: patch from Marc <mrw@siemens.ch> 
13371         (fixes #55863) : some clean-ups in the handling of connection
13372         points. Now the total number of connection points is just a
13373         #define (the proper solution is to retrofit the GRAFCET Vergent's
13374         dynamic behaviour wrt connection points).
13375         
13376 2001-06-07  Cyrille Chepelov  <chepelov@calixo.net>
13378         * app/app_procs.c (app_init): added a call to unicode_init() (only
13379         if HAVE_UNICODE, of course).
13381         * lib/charconv.c: simplified the code which detects the local
13382         charset. No need to use <langinfo.h>, libunicode already takes the
13383         burden of figuring that out. Also, if local charset is utf8, no
13384         conversion will take place.
13385         Exposed a way to get the current charset (similar to
13386         unicode_get_charset() but actually working, hopefully).
13388         * lib/charconv.h: Added a partial non-UTF8 implementation of
13389         unicode.h if !HAVE_UNICODE (actually, all the time for the
13390         moment). The UTF8 implementation is just macros on libunicode (use
13391         the functions prefixed by uni_, as defined by charconv.h, not
13392         unicode_, unless that code is to be compiled only if HAVE_UNICODE).
13393         From now on, all strings which don't *need* to be ASCII should be
13394         utfchar *, not gchar *. Just include charconv.h, let it sort out
13395         the details (such as: "is libunicode available and enabled?") 
13397         * lib/ps-utf8.c: fixed a few name clashes. Used the charconv.h
13398         "API" instead of directly libunicode. Removed the now unnecessary
13399         speculative clustering of characters in encoding pages.
13401         * app/render_eps.c: made the local8->utf8 conversions dependent of
13402         !UNICODE_WORK_IN_PROGRESS (this is not where the local8/utf8
13403         boundary will be when this WIP is done).
13405         * lib/dia_xml.c (data_point): fixed a format string typo.
13407         * po/POTFILES.in: added all C files from lib/ 
13408         
13409 2001-06-06  Cyrille Chepelov  <chepelov@calixo.net>
13411         * app/disp_callbacks.c: make sure the objects' connected objects
13412         are updated when the objects' size changes after a keypress event
13413         (fixes #51222)
13415         * configure.in: added a big warning about the possible future
13416         non-optionality of --enable-unicode. 
13418         * TODO: removed entries which look like done ; added a few ones
13419         (Bugzilla "enhancement" bugs may be a better way to keep track of
13420         this)
13421         
13422 2001-06-05  Cyrille Chepelov  <chepelov@calixo.net>
13424         * objects/UML/message.c: got rid of #55564 and of message_copy()
13425         by using more standard properties (are the message_state_*()
13426         functions still necessary ?)
13428 2001-06-04  Fredrik Hallenberg  <hallon@lysator.liu.se>
13430         * lib/plug-ins.c: 
13431         * objecs/custom/shape_info.c:
13432         * plug-ins/shape/shape-export.c:
13433         * plug-ins/svg/render_svg.c: patch from obecian <obecian@openbsd.org>
13434         use xmlChar instead of obsolete CHAR.
13436 2001-06-03  Hans Breuer  <hans@breuer.org>
13438         * app/diagram.h : added prototype for diagram_update_menu_sensitivity()
13439         * app/commands.c : give the right number of parameters
13440         to diagram_update_menu_sensitivity ()
13442         * app/preferences.c : do proper initialization for DiaPrefsData:
13443         render_bounding_boxes. It would be a real surprise if 'hidden'
13444         properties would have ever worked before.
13445         Don't try to access the widgets of hidden property, it does not
13446         have one.
13448         * lib/diagramdata.h : make render_bounding_boxes a DIAVAR, cause
13449         it is defined in libdia, but initialized from dia app, which 
13450         otherwise gave nice start-up crashes.
13452         * lib/diagramdata.c : initialize the color for rendering bounding 
13453         boxes in the Dia range (0 .. 1.0)
13455         * lib/libdia.def : added *_bbox functions for export
13457         * lib/makefile.msc : added new sources
13459         * objects/custom/custom_object.c : use HAVE_UNISTD_H
13461 2001-05-30  Cyrille Chepelov  <chepelov@calixo.net>
13463         * app/interface.c:
13464         * app/menus.c: patch from Hubert Figuiere <hfiguiere@teaser.fr> ;
13465         removes a translation of menus (in a place where there shouldn't
13466         have been), which gets rid of a waterfall of warnings if LANG!=C,
13467         and a fix to #55047.
13469 2001-05-29  Steffen Macke     <sdteffen@yahoo.com>
13471         * lib/charconv.c : added #include <errno.h>
13473         * app/dia_embedd.c : updated menus_get_item_from_path usage
13474         
13475 2001-05-27  Cyrille Chepelov  <chepelov@calixo.net>
13477         * lib/ps-utf8.c: Strings in Symbol fonts were incorrectly rendered.
13478         Added a special case for Symbol strings, so that they're not
13479         re-encoded using the LN encoding (we use the bare Adobe encoding
13480         instead).
13482         * objects/custom/custom_object.c: Now that #52912 is fixed,
13483         I could remove the ugly hack I wrote to squash the shape bounding box
13484         problem shown by Ben A. Hetland a few months ago, and fix it
13485         properly this time.
13486         
13487         * lib/text.c: enlarged a little the bounding box to account for
13488         the cursor in rightmost position.
13489         
13490         * lib/diagramdata.c: draw bounding boxes only if the relevant
13491         variable is set (as before), but also only if the rendere is
13492         interactive (ie, don't bother rendering bounding boxes on 
13493         Postscript...)
13494         Made the bounding box's line width a fixed value, 0.01
13495         
13496         * lib/boundingbox.c: fixed the "pointy corners" code for polylines
13497         and assymmetric control beziers. Implemented ellipse_bbox().
13498         
13499         * Makefile.am: incantations to get po/dia.pot build, as suggested
13500         by Hubert in #55075.
13501         
13502         * shapes/network/computer.shape: typo fixed.
13503         * shapes/network/antenna.shape: fixed #55074 (antenna is now
13504         properly translucent, except for its base where it makes sense. It
13505         doesn't look that ugly anymore if transparent mode is on).
13507         * configure.in: --enable-unicode is now the default. This
13508         still currently affects only printing.
13509         
13510 2001-05-26  Cyrille Chepelov  <chepelov@calixo.net>
13512         * lib/boundingbox.c: fixed a minor logic error wrt closed shapes. 
13513         The overshoot code is buggy, and the bounding boxes for polyshapes
13514         looks a bit cheezy. To be done ASAP.
13516 2001-05-26  James Henstridge  <james@daa.com.au>
13518         * configure.in: call AM_PATH_PYTHON rather than AM_PATH_PYTHON_JH.
13519         This should clear up some of the build problems people have been
13520         having.
13522         * acinclude.m4: call AM_PATH_PYTHON_JH AM_PATH_PYTHON
13524 2001-05-26  Cyrille Chepelov  <chepelov@calixo.net>
13526         * lib/Makefile.am:
13527         * lib/boundingbox.[ch] (NEW): (some) refactoring of the bounding
13528         box code (beginning with lines, polylines and polybeziers), into a
13529         more generic facility. While at it, a better shot at correctly
13530         computing the bounding box of a Bezieroid (should take care of
13531         #53424, #51233 and of course is part 1 of #52912).
13533         * lib/diagramdata.c: turned the RENDER_BOUNDING_BOXES conditional
13534         into a hidden preference (set render_bounding_boxes in diarc).
13535         * app/preferences.[ch]: Added support for hidden preferences.
13537         * lib/geometry.[ch]: sprinkled with "const" modifiers.
13538         
13539         * lib/bezier_conn.[ch]:
13540         * lib/beziershape.[ch]:
13541         * lib/connection.[ch]:
13542         * lib/element.[ch]:
13543         * lib/poly_conn.[ch]:
13544         * lib/orth_conn.[ch]:
13545         * lib/neworth_conn.[ch]:
13546         * lib/polyshape.[ch]: adapted to take advantage of
13547         boundingbox.[ch] instead of relying on private (duplicate) code.
13549         * object/FS/flow.c:
13550         * object/GRAFCET/action.c:
13551         * objects/GRAFCET/condition.c:
13552         * objects/GRAFCET/vergent.c:
13553         * objects/GRAFCET/vector.c:
13554         * objects/SADT/annotation.c:
13555         * objects/SADT/arrow.c:
13556         * objects/ER/participation.c:
13557         * objects/UML/constraint.c:
13558         * objects/UML/implements.c:
13559         * objects/UML/lifeline.c:
13560         * objects/UML/message.c:
13561         * objects/UML/realizes.c:
13562         * objects/UML/generalization.c:
13563         * objects/UML/association.c:
13564         * objects/UML/dependency.c:
13565         * objects/FS/flow-ortho.c:
13566         * objects/network/bus.c:
13567         * objects/standard/arc.c:
13568         * objects/standard/bezier.c:
13569         * objects/standard/beziergon.c:
13570         * objects/standard/line.c:
13571         * objects/standard/polygon.c:
13572         * objects/standard/zigzagline.c:
13573         
13574         * objects/standard/polyline.c: Some *BBExtras structures changed
13575         names while moving to boundingbox.[ch]. A trivial mass-renaming.
13576         
13577 2001-05-20  Cyrille Chepelov  <chepelov@calixo.net>
13579         * app/disp_callbacks.c (ddisplay_canvas_events): Take into account
13580         wheel mouses for scrolling (from Patrick Sung <phsung@ualberta.ca>)
13582         * app/display.c (ddisplay_update_scrollbars): from Patrick's
13583         suggestion, remove the extra scrollable area (it was only visible
13584         to the scrollbars). This is experimental.
13585         
13586         * objects/custom/custom_object.c: If a shape's icon file doesn't 
13587         exist, warn and substitute a default icon, instead of crashing.
13588         (fixes #52913)
13589         
13590         * objects/network/network.c:
13591         * shapes/network/modularswitch.(shape|xpm) (NEW):
13592         * shapes/network/printer.(shape|xpm) (NEW):
13593         * shapes/network/genmonitor.(shape|xpm) (NEW):
13594         * shapes/network/computer.(shape|xpm) (NEW):
13595         * shapes/network/Makefile.am: four less objects, four more shapes.
13596         These were the last known RenderObjects. (phew !)
13598         * lib/Makefile.am:
13599         * lib/dummy_dep.h:
13600         * objects/sybase/Makefile.am: 
13601         * objects/network/Makefile.am: Removed the older Renderobjects
13602         from the build, and their infrastructure (not yet deleted,
13603         though).
13605         * shapes/network/sceadplug.shape:
13606         * shapes/network/antenna.shape:
13607         * shapes/network/modem.shape:
13608         * shapes/network/hub.shape:
13609         * shapes/network/rj45plug.shape:
13610         * shapes/sybase/client.shape:
13611         * shapes/sybase/dataserver.shape:
13612         * shapes/sybase/ltm.shape:
13613         * shapes/sybase/repserver.shape:
13614         * shapes/sybase/rsm.shape:
13615         * shapes/sybase/stableq.shape: Minor corrections (line widths were
13616         ten times too narrow).
13617         
13618 2001-05-19  Cyrille Chepelov  <chepelov@calixo.net>
13620         * objects/network/network.c:
13621         * shapes/network/sceadplug.(shape|xpm) (NEW):
13622         * shapes/network/antenna.(shape|xpm) (NEW):
13623         * shapes/network/modem.(shape|xpm) (NEW):
13624         * shapes/network/Makefile.am: four less objects, four more shapes.
13625         
13626         * lib/Makefile.am:
13627         * lib/diagramdata.c:
13628         * lib/render.h:
13629         * lib/string_prerenderer.[ch] (NEW):
13630         Add a new renderer primitive, predraw_string() (does nothing, to be
13631         used as a hook to optimise the character encodings if needed). 
13632         Added a string pre-renderer, which can be viewed as a filter
13633         renderer (to route draw_string() to predraw_string() and ignore
13634         the rest, in a first rendering pass)
13635         
13636         * app/render_eps.c: Took advantage of the above to make wholly
13637         optimised Postscript encoding page(s), even (especially) with 
13638         non-latin1 code (HAVE_UNICODE must be true).
13640         (#53512 in fact is wholly resolved).
13641         
13642 2001-05-18  Cyrille Chepelov  <chepelov@calixo.net>
13644         * lib/charconv.c: steps towards resolution of #53512 (inspired by
13645         Alexey Novodvorsky <aen@logic.ru>'s patch).
13647         * app/menus.c (dia_menu_signal_proxy): checked that the signal
13648         handler is not NULL before transferring control to it... (fixes #52836)
13650         * app/app_procs.c (app_init): removed non-constant initialiser
13651         (fixes #52950)
13653         * objects/custom/custom_object.c:
13654         * objects/custom/shape_info.[ch]:
13655         * objects/custom/test.xml: merged patch #53476 from Steven Hawkins 
13656         <skh@mathstar.com>. This add support for a <svg:text> shape
13657         element, and some related style properties (font, font height, 
13658         alignment)
13660         * doc/custom_shapes: a precision about the meaning of case in a
13661         SVG path (closes #52364)
13663         * lib/dummy_dep.h: fix for SGI IRIX 6.2 (#53053, reported and
13664         fixed by <drk@sgi.com>)
13665         
13666 2001-05-17  Cyrille Chepelov  <chepelov@calixo.net>
13668         * objects/network/network.c:
13669         * shapes/network/Makefile.am:
13670         * shapes/network/hub.(shape|xpm) (NEW):
13671         * shapes/network/flash.(shape|xpm) (NEW):
13672         * shapes/network/rj45plug.(shape|xpm) (NEW):
13673         More shapes, less renderobjects.
13675 2001-05-16  Cyrille Chepelov  <chepelov@calixo.net>
13676         
13677         * plug-ins/svg/render_svg.c: typo made exported ellipses
13678         corrupted (zero Y pseudo-radius).
13680         * objects/network/network.c:
13681         * objects/network/disc.c:
13682         * shapes/network/disc.(shape|xpm): Converted the first
13683         Renderobject into a shape. Normally, old diagrams should reload
13684         without problems (please check this against your diagrams). More
13685         flexibility should be gained that way. I intend to hunt and
13686         eradicate all renderobjects as I can commit cycles to that. 
13688         * objects/Makefile.am:
13689         * configure.in:
13690         * app/Makefile.am:
13691         * objects/sybase/sybase.c:
13692         * shapes/sybase/Makefile.am(NEW):
13693         * shapes/sybase/client.(xpm|shape) (NEW):
13694         * shapes/sybase/dataserver.(xpm|shape) (NEW):
13695         * shapes/sybase/ltm.(xpm|shape) (NEW):
13696         * shapes/sybase/repserver.(xpm|shape) (NEW):
13697         * shapes/sybase/rsm.(xpm|shape) (NEW):
13698         * shapes/sybase/stableq.(xpm|shape) (NEW): converted Sybase
13699         renderobjects into shapes. The Sybase objects are now not compiled
13700         anymore, and ready to be nuked if nobody objects in the next few weeks.
13701         
13702         * app/commands.c:
13703         * app/diagram.[ch]:
13704         * app/disp_callbacks.c:
13705         * app/display.[ch]:
13706         * app/interface.[ch]:
13707         * app/menus.[ch]:
13708         * app/modify_tool.c:
13709         * app/preferences.[ch]:
13710         * app/recent_files.c:
13711         * app/select.c: Added patch #52364 from Hubert Figuiere. This adds
13712         a menu bar reflecting the popup menu, to each display window. This
13713         is optional (changing the preference currently doesn't affect
13714         already opened windows; a few other rough edges to cut).
13716         * plug-ins/wpg/wpg.c:
13717         * plug-ins/xfig/xfig-import.c:
13718         * plug-ins/python/pydia-property.c:
13719         * plug-ins/python/pydia-properties.c:
13720         * plug-ins/python/pydia-geometry.c:
13721         * plug-ins/pstricks/render_pstricks.c:
13722         * lib/arrows.c:
13723         * objects/EML/dbox.c:
13724         * lib/ps-utf8.c: paleolithic C compilers choke on //. Should fix 
13725         #53054.
13727         * lib/ps-utf8.c: improved the clustering of alphabetic character
13728         definitions in custom encodings pages.
13729         
13730 2001-05-02  Hans Breuer  <hans@breuer.org>
13732         * lib/object.h : OBJECT_COMMON_PROPERTIES_OFFSETS correct type 
13733         of 'obj_bb' to PROP_TYPE_RECT
13735         * objects/custom/custom_object.c : take all quarks into account, 
13736         not only 4 as copy&paste suggests
13738         * objects/uml/objects.c : completed the implementation of the
13739         property api to avoid reading of totally bogus data. Removed
13740         the PROBABLY_DEAD_CODE. It actually was dead code, but not because
13741         there was too much but too less ...
13742   
13743         The above changes removed all known crashes (mentioned below) 
13744         from the Property API. Property access is still incomplete though.
13746         * objects/flowchart/box.c :
13747         * objects/flowchart/diamond.c :
13748         * objects/flowchart/ellipse.c :
13749         * objects/flowchart/parallelogram.c :
13750         * objects/uml/classicon.c :
13751         * objects/uml/state.c : calculate number of quarks from quark array 
13752         size instead of using hardcoded values for consistence and to avoid 
13753         future bugs like the above
13754         
13755         * objects/eml/nlist.c : include <string.h> for strcmp()
13757         * lib/dia_xml.c : relax g_warning for values, which
13758         appear to be too small. There is nothing which prevents
13759         them while saving
13761         * plug-ins/python/pydia-geometry.c : changed stringifying of
13762         geometry objects accept BezPoint back to %f, which does not
13763         crash anymore, because all the data is intialized now and it
13764         simply is more readable than %e ...
13766         * plug-ins/python/python-startup.py : removed dependency
13767         to PyGtk, because it isn't required here and probably won't
13768         in i.e.: export filters.
13770         * plug-ins/python/gtkcons.py : create the gtkoutfile even
13771         if sys.stderr.fileno() isn't supported
13773         * app/makefile.msc : make version 0.88
13774         * plug-ins/makefile.msc : make version 0.88 an added new
13775         xfig files to build
13777 2001-05-11  James Henstridge  <james@daa.com.au>
13779         * NEWS: remember to add news items this time.
13781         * dia.spec: update spec file for 0.88 release.
13783         * configure.in: up version number to 0.88
13785         * plug-ins/python/Makefile.am (EXTRA_DIST): fix up typo that was
13786         preventing any of the useful python scripts from being
13787         distributed.
13789         * sheets/Makefile.am (sheet-translation-report): fix bustage I
13790         introduced in my fixups for the 0.87 release :(
13792 2001-05-10  Lars Clausen  <lrclause@cs.uiuc.edu>
13794         * plug-ins/xfig/xfig-import.c: Finally got groups working.
13796 2001-05-09  Lars Clausen  <lrclause@cs.uiuc.edu>
13798         * plug-ins/xfig/xfig-import.c: Improvements to error handling and
13799         group manipulation.
13801 2001-05-09  Cyrille Chepelov  <chepelov@calixo.net>
13803         * lib/ps-utf8.[ch]:
13804         * lib/Makefile.am: fix makefile breakage which led to not
13805         including ps-utf8.[ch] in the released tarballs. 
13807 2001-05-09  James Henstridge  <james@daa.com.au>
13809         * Makefile.am (core-translation-report): dist scripts needed for
13810         this target, and change to $(srcdir) before running.
13812         * sheets/Makefile.am (EXTRA_DIST): actually dist the sheets.  DATA
13813         files aren't automatically included in the tarball by automake
13814         because they could be generated files.
13816         * objects/EML/Makefile.am (EXTRA_DIST): fix directory names.
13818         * doc/en/Makefile.am (install-data-hook): fix up where graphics
13819         are installed.
13821         * configure.in: up version number to 0.87
13823         * plug-ins/python/*.py: no longer necessary to explicitly set
13824         sys.argv, as python.c does it for us now (like it should).
13826         * plug-ins/python/gtkcons.py: fix up so it plays nicely as a dia
13827         python plugin.
13829         * plug-ins/python/python-startup.py: startup script that imports
13830         all modules in $(datadir)/dia/python and ~/.dia/python.
13832         * plug-ins/python/python.c (dia_plugin_init): change so that it
13833         only runs the $(datadir)/dia/python-startup.py script.  Make sure
13834         that sys.argv and __main__.__file__ are set when calling the
13835         startup script.
13837         * plug-ins/python/Makefile.am: update makefile.  Make it install
13838         gtkcons.py plugin.  I haven't set any other plugins to install, as
13839         they look like they are mainly for debugging purposes.
13841         * configure.in: add tests to detect if python is available, so we
13842         can build the python plugin.  Only run if --with-python passed to
13843         configure.
13845 2001-05-08  James Henstridge  <james@daa.com.au>
13847         * acinclude.m4: add macros for detecting python.
13849         * app/menus.c (dia_gnome_menu_get_widget): handle paths that point
13850         at GNOME_APP_UI_SUBTREE entries.
13851         (menus_add_path): function to add a menu item to the menubars.
13852         Uses a hash table to keep track of extra menu items it adds.  Also
13853         notifies the item factory about the entries so that accels can be
13854         saved for them.
13855         (menus_add_path): implement gtk only version.
13856         (menus_init): use menus_add_path() to add the menu.
13857         (plugin_callback): simplify.
13859 2001-05-08  Steffen Macke <sdteffen@yahoo.com>
13861         * app/menu.c: removed #ifndef GNOME; GNOME build was broken
13862         
13863 2001-05-08  Lars Clausen  <lrclause@cs.uiuc.edu>
13865         * plug-ins/xfig/xfig-export.c: 
13866         * plug-ins/xfig/xfig-common.c: 
13867         * plug-ins/xfig/xfig-import.c: 
13868         * plug-ins/xfig/xfig.c: 
13869         * plug-ins/xfig/xfig.h: 
13870         * app/Makefile.am: Added support for exporting to Fig format
13871         (except splits, which are less powerful in Fig).  Some refactoring
13872         along the way.
13874 2001-05-02  Hans Breuer  <hans@breuer.org>
13876         * plug-ins/python/debug_objects.py : added another
13877         test to get massive crashes from the Property API due
13878         to unintialized data.
13880         * app/menu.c : the callback_action wasn't incremented
13881         (should have checked my last optimization). Now more
13882         than one plug-in callback is supported again.
13884         * plug-ins/python/pydia-geometry.c : avoid crashes from
13885         glib, when trying to g_strdup_printf unintialized floats.
13887         * plug-ins/python/pydia-property.c : avoid crashes from
13888         because of string_data == NULL (PROP_TYPE_FILE, PROP_TYPE_STRING)
13890 2001-05-01  Hans Breuer  <hans@breuer.org>
13892         * objects/makefile.msc : added eml
13893         * objects/eml/instantiation.c : initialize 'inst' pointer
13894         before using, zero initialization for objects
13895         * objects/eml/interaction-ortho.c :
13896         * objects/eml/interaction.c : zero initialization for objects
13898         * app/menus.c : removed Gimp mru stuff which slipped in at
13899         2000-08-15, was never activated and will never be needed, 
13900         because of Steffens recent file list patch added at 2001-01-05.
13902         * objects/eml/*.c : some more zero initialization of objects
13903         to avoid infinite (uninitialized) bounding boxes
13905         Implemented a callback api which allows plug-ins to register
13906         menu call backs. Dia for Gnome should compile, but will need 
13907         some extra tweaking to make it work because I can't test it.
13909         * plug-ins/python/pydia-error.h :
13910         * plug-ins/python/pydia-render.c : moved Pxthon function return 
13911         value handling from pydia-render.c to pydia-error.h, to make it
13912         usable for
13913         * plug-ins/python/diamodule.c : implement callback function
13914         registration from and relaying to Python code
13916         * app/menus.c : register and use plug-in menu callbacks
13918         * lib/filter.[hc] : implement filter_register_callback() and
13919         filter_get_callbacks() for the above
13920         * lib/libdia.def : export them
13922         * plug-ins/python/debug_objects.py (new file): 
13923         sample using the above
13925 2001-04-27  Lars Clausen  <lrclause@cs.uiuc.edu>
13927         * plug-ins/shape/shape-export.c (new_shape_renderer): 
13928         The name of a shape is now taken from the dir, to conform with
13929         standard naming.
13931 2001-04-25  Lars Clausen  <lrclause@cs.uiuc.edu>
13933         * app/properties.c (properties_show): Added title containing
13934         object type, plus (hopefully) fix of the ghost properties dialog.
13936 2001-04-16  Cyrille Chepelov  <chepelov@calixo.net>
13938         * app/display.c: remove the display idle handler in case we
13939         destroy the ddisplay (caused crashes in ddd, probably random
13940         crashes elsewhere).
13942         * autogen.sh: 
13943         * configure.in:
13944         * Makefile.am: hack around gettext-0.10.36's new "features".
13945         
13946         * lib/properties.[ch]: added new function object_copy_props().
13947         Added new property type PROP_TYPE_ENDPOINTS
13949         * lib/connection.h: added support for load/saving through the
13950         properties interface.
13952         * lib/object.[ch]: object_load/save/copy_using_properties()
13953         support functions (code factorisations).
13954         
13955         * objects/GRAFCET/boolequation.c: check against null values in
13956         boolequation_set_value() and boolequation_destroy().
13958         * objects/GRAFCET/transition.c: Converted from lazyprops to
13959         standard properties. 31% less (x86) code !
13961         * objects/GRAFCET/condition.c: also converted from lazyprops to
13962         standard properties. Also killed lots of code.
13963         
13964 2001-04-13  Hans Breuer  <hans@breuer.org>
13966         * plug-ins/wmf/wmf.cpp : changed text conversion from
13967         g_utf8_utf16 to g_convert usage. The latter function is already
13968         available in tml's last "official" Gtk+ version (2000-12-26).
13969         This change allows to use recent Dia with either the official
13970         version or the latest cvs "gtk-1-3-win32-production"-branch.
13972 2001-04-14  Lars Clausen  <lrclause@cs.uiuc.edu>
13974         * Patch from David S. Thompson <dcthomp@mail.utexas.edu>:
13975         * app/disp_callbacks.c:
13976         - Allow submenus in DiaMenus.
13977         - Don't require DiaMenu.title to be non-null (so that
13978           submenus aren't required to have titles)
13980         * objects/FS/function.c:
13981         - object menu now has submenus, an almost complete list of
13982           standard-basis verbs, and a start on nouns.
13983         - box padding, dash length, and other visual attributes are
13984           scaled by the font size... eventually font height will be
13985           a function property.
13986         - draw functions with smaller font to make initial view hold
13987           a reasonable number of functions.
13988         
13989 2001-04-13  Cyrille Chepelov  <chepelov@calixo.net>
13991         * sheets/ER.sheet:
13992         * sheets/chronogram.sheet:
13993         * sheets/jigsaw.sheet:
13994         * sheets/sybase.sheet: Updated Dutch sheet translations from Dag
13995         Wieers <dag@wieers.com>
13997 2001-04-13  Hans Breuer  <hans@breuer.org>
13999         * app/app_procs.c (app_exit) : added g_return_if_fail (!app_exit_once)
14000         to ensure that all the deinitialization is only done once. Fixes
14001         recent app exit crash on win32
14003         * lib/dia_xml.c : provide isinf() replacement for msc which does only
14004         have _finite()
14006         * lib/libdia.def : updated
14008         * objects/makefile.msc : added wanlink.c 
14010         * objects/network/wanlink.c : added M_PI_2 definition for poor
14011         platforms which don't have one
14013         * objects/standard/arc.c :
14014         * objects/standard/zigzagline. c: part of ConectionBBExtras wasn't
14015         initialized which led to rather huge bounding boxes (try Ctrl^A on
14016         diagrams with Arcs or ZigZagLines).
14017         * objects/*/*.c : to avoid further bugs like the above changed all
14018         object initializations to g_malloc0 or g_new0
14021 2001-04-09  Cyrille Chepelov  <chepelov@calixo.net>
14023         * lib/paper.[ch]: get rid of "no previous prototype fo `foo'" by
14024         doing a s/T foo()/T foo(void)/ for all possible values of T and foo.
14026         * objects/UML/class.c: 
14027         * objects/UML/usecase.c:
14028         * objects/UML/large_package.c:
14029         * objects/UML/message.c:
14030         * objects/UML/object.c:
14031         * objects/UML/lifeline.c:
14032         * objects/FS/flow.c:
14033         * objects/FS/flow-ortho.c:
14034         * objects/FS/function.c:
14035         * objects/custom/custom_object.c:
14036         * objects/GRAFCET/vergent.c:
14037         * objects/chronogram/chronoref.c:
14038         * objects/SADT/box.c:
14039         * objects/SADT/annotation.c:
14040         * plug-ins/dxf/dxf-import.c:
14041         * plug-ins/xfig/xfig-import.c:
14042         * plug-ins/wpg/wpg.c:
14043         * app/command.c:
14044         * app/app_procs.c:
14045         * app/display.c: /* certainly more WIP than dead code there */
14046         Unused variables, unused static function definitions, forgotten or
14047         incomplete prototypes added or fixed, lack of const or unwanted const,
14048         etc. (mostly clean-ups of leftovers of the pre-properties era).
14049         Non-obvious cases bracketed by #define THIS_IS_PROBABLY_DEAD_CODE,
14050         please check these.
14052         * app/lineprops_area.c: More of the same. Missing prototypes
14053         added, and functions unused outside made static.
14055         * app/recent_files.c:
14056         * app/properties.c:
14057         * app/defaults.c: some variables are used only when doing a GNOME
14058         build.
14059         
14060         * app/magnify.c: missing #include <stdlib.h>.
14062         * app/paginate_gnomeprint.c: Unused variable; missing "message.h".
14064         These are a lot of clean-ups (by the way, this compiles and runs
14065         cleanly with "gcc-3.0 -O2 -Wall --std=gnu99" too !); please grep
14066         for DEAD_CODE, and if it's yours, judge it.
14067         
14068 2001-04-07  Cyrille Chepelov  <chepelov@calixo.net>
14070         * plug-ins/dxf-import.c: some progress with the arcs; still some
14071         clean-ups to do and line width scaling issues to figure out.
14073         * objects/standard/arc.c: start_point and end_point properties
14074         (duplicated from standard/line.c)
14076         * plug-ins/xfig/xfig-import.c: zip ! zap ! no more dead DXF import
14077         code there.
14078         
14079 2001-04-06  Cyrille Chepelov  <chepelov@calixo.net>
14081         * plug-ins/dxf-import.c: setlocale-related clean-ups and fixes ;
14082         preliminary support for arcs (doesn't work). Circles and ellipses are
14083         now transparent. Coordinate and width scaling are now a common 
14084         static constant (probably before morphing into a preference).
14085         
14086         * sheet/checktrans.py: improved error reporting. Made checktrans
14087         count lack of <name xml:lang="code"> as a lack of translation for
14088         language "code" (no, it's not a plot to bring down other
14089         language's scores !)
14090         
14091         * sheet/*.sheet: Ensured all sheets have an encoding="iso-8859-1"
14092         in the header, and have <name xml:lang="fr"> components.
14093         
14094 2001-04-05  Cyrille Chepelov  <chepelov@calixo.net>
14096         * objects/custom/custom_object.c: temporary hack to fix the shape
14097         bounding box reported by Ben A. Hetland. Proper fix isn't .87
14098         material, see bugzilla #52912.
14100 2001-04-05  Lars Clausen  <lrclause@cs.uiuc.edu>
14102         * objects/standard/image.c (get_directory): Now uses
14103         G_SEPARATOR_CHAR_S instead of "/"
14105         * sheets/network.sheet: 
14106         * sheets/Logic.sheet:
14107         * sheets/Flowchart.sheet:
14108         * sheets/Electric.sheet:
14109         * sheets/Circuit.sheet:
14110         * sheets/ER.sheet:
14111         * sheets/Pneumatic.sheet:
14112         * sheets/SDL.sheet:
14113         * sheets/UML.sheet:
14114         * sheets/GRAFCET.sheet:
14115         * sheets/MSE.sheet:
14116         * sheets/chronogram.sheet:
14117         * sheets/civil.sheet:
14118         * sheets/network.sheet:
14119         Danish translations.
14120         
14121         * objects/standard/image.c (get_directory): Changed get_directory
14122         to use g_dirname to find the directory part.
14124 2001-04-05  Cyrille Chepelov  <chepelov@calixo.net>
14126         * sheets/ER.sheet:
14127         * sheets/Electric.sheet:
14128         * sheets/Flowchart.sheet:
14129         * sheets/Logic.sheet:
14130         * sheets/network.sheet: More Dutch translations from Dag Wieers.
14132 2001-04-04  Cyrille Chepelov  <chepelov@calixo.net>
14134         * sheets/checktrans.py: now emits a warning when two descriptions
14135         for a single language code are found.
14137         * Makefile.am:
14138         * sheets/Makefile.am: -translation-reports now also depend on their
14139         checktrans.py
14140         
14141 2001-04-04  Cyrille Chepelov  <chepelov@calixo.net>
14143         * sheets/Circuit.sheet:
14144         * sheets/Contact.sheet:
14145         * sheets/Logic.sheet:
14146         * sheets/chronogram.sheet:
14147         * sheets/sybase.sheet: 
14148         Dutch translations from Dag Wieers <dag@wieers.com>
14150 2001-04-04  Cyrille Chepelov  <chepelov@calixo.net>
14152         * po-checktrans.py: Now shows the detailed counts alongside the
14153         percentage of translations.
14154         
14155 2001-04-03  Cyrille Chepelov  <chepelov@calixo.net>
14157         * Makefile.am:
14158         * po-checktrans (NEW):
14159         * po-checktrans.py (NEW): builds core-translation-report:
14160         percentages of core (gettext) translations done [Not placed into
14161         po/ where that should belong, because of integration fear^Wissues
14162         with gettextize]. 
14164         TO THE KIND ATTENTION OF PACKAGERS: core-translation-report and 
14165         sheets/sheet-translation-report probably ought to be copied on the 
14166         user's /usr/share/doc/dia (or equivalent) directory.
14168         * sheets/Makefile.am: sheet-translation-report now a simple
14169         EXTRA_DIST; make install won't install it by default. 
14170         
14171 2001-04-03  Cyrille Chepelov  <chepelov@calixo.net>
14173         * app/preferences.c: changed the default grid colour to something
14174         less intrusive. 
14176         * shapes/SDL/*.shape:
14177         * sheets/SDL.sheet: renamed all SDL shapes to conform to the
14178         "$LIBRARY - $NAME" convention. THIS REQUIRES FIXING THE EXISTING
14179         DIA FILES (well, for files using SDL), see the mailing list
14180         archive "SDL (ab)using the global shape namespace" for a script to
14181         do this conversion.
14183         * sheets/SDL.sheet: translated into French
14184         * sheets/network.sheet: fixed XML typos. Yay ! 100% :-)
14185         
14186 2001-04-02  Cyrille Chepelov  <chepelov@calixo.net>
14188         * lib/dia_xml.c: made data_point() more paranoid
14190         * sheets/Makefile.am:
14191         * sheets/checktrans (NEW):
14192         * sheets/checktrans.py: Made checktrans handle more gracefully the
14193         absence of python and python-xml packages, and made the error
14194         message more helpful.
14195         
14196 2001-04-01  Lars Clausen  <lrclause@cs.uiuc.edu>
14198         * lib/render_object.c (new_render_object): Made initial handles
14199         behave like on most other objects.
14201         * app/load_save.c (read_objects): Fixed premature free'ing ofr
14202         typestr causing garbage.
14204 2001-04-01  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
14206         * objects/FS/flow-ortho.c: Fixed a crashbug causes by not
14207         accouting for handle ordering through copy and save. (#51479)
14209 2001-03-31  Cyrille Chepelov  <chepelov@calixo.net>
14211         * sheets/Circuit.sheet: Norwegian translation mistagged to German.
14213 2001-03-31  Steffen Macke  <sdteffen@yahoo.com>
14215         * sheets/Circuit.sheet
14216         * sheets/UML.sheet
14217         * sheets/network.sheet: Updated German translations
14218         
14219 2001-03-30  Cyrille Chepelov  <chepelov@calixo.net>
14220         * lib/arrows.[ch]:
14221         * lib/widgets.c:
14222         * app/lineprops_area.c: The return of the revenge of the arrow
14223         heads. Now all types covered by ISO 10303-201 should be covered.
14224         
14225 2001-03-30  Cyrille Chepelov  <chepelov@calixo.net>
14227         * sheets/Flowchart.sheet: translations in probably Hungarian were
14228         a victim of cut-n-paste from the German one. Fixed (hopefully).
14229         * sheet/UML.sheet: translation in probably Norwegian was a victim
14230         of cut-n-paste from the French one. Fixed (hopefully).
14231         * sheets/Logic.sheet: French translation not tagged with
14232         xml:lang="fr".
14233         
14234         * sheets/checktrans.py:
14235         * sheets/Makefile.am: new file, sheet-translation-report, to be
14236         installed along the sheets, show how much of them has been
14237         translated into which language (I wish the result was prettier...)
14239         * po/README: most translators don't read this file, but anyway...
14241         * sheets/.cvsignore:
14242         * objects/network/.cvsignore: the usual negotiation with CVS.
14244 2001-03-30  Cyrille Chepelov  <chepelov@calixo.net>
14246         * sheets/*.sheet: French translations
14248 2001-03-28  Cyrille Chepelov  <chepelov@calixo.net>
14250         Added patch #52363 from Hubert Figuiere <hfiguiere@teaser.fr>:
14252         ** objects/network/network.c:
14253         ** objects/network/wanlink.c:
14254         ** objects/network/pixmaps/wanlink.c:
14255         ** sheets/network.sheet:
14256         ** objects/network/Makefile.am: a better object to use instead of
14257         the older WAN Connection.
14258         
14259         ** lib/geometry.[ch]: rotation matrix functions in geometry.c (derived from gimp)
14261         ** objects/GRAFCET/vector.c: renamed Vector to GRAFCETVector to avoid a
14262         name clash 
14264         * objects/GRAFCET/vector.c: Re-renamed GRAFCETVector into
14265         Arc; kept the C file name (because CVS wouldn't like it), and
14266         still registering the older object name (but advertising the newer
14267         one in sheets/GRAFCET.sheet).   
14269 2001-03-24  Hans Breuer  <hans@breuer.org>
14271         * app/dia.def : some plug-ins (currently only python, xfig) are using 
14272         functions from the dia executable. To get them working these functions 
14273         need to be explicit exported on win32. IMO the much cleaner way would
14274         be to move these functions to libdia, but that would require some
14275         long term restructuring ...
14277         * lib/libdia.def : updated
14279         * plug-ins/makefile.msc : build xfig plug-in
14281 2001-03-24  Hans Breuer  <hans@breuer.org>
14283         * app/diagram.c : g_strdup (dia->filename) because it will be
14284         g_free ()d
14286         * app/display.c : set ddisp->renderer to NULL after destruction.
14287         This may solve or help to identify erroneous access to it after
14288         destruction.
14290         * plug-ins/wmf/wmf.cpp : convert string from utf8 to wchar to
14291         get 'umlauts' working
14293 2001-03-22  Cyrille Chepelov  <chepelov@calixo.net>
14295         * object/chronogram/chronoline_event.c: stupid bug ; rises and falls
14296         were reversed... (look for the patch, and drink a beer to my
14297         stupidity)      
14298         
14299 2001-03-23  Hans Breuer  <hans@breuer.org>
14301         * app/app_procs.c : don't g_error () if the config directory
14302         can't be created (at least not on windoze) because it's quite
14303         common that the user don't read or understand the FAQ ...
14305         * app/cursor.c : use ddisplay_active () instead of active_display
14306         from app/display.c
14308         * app/display.[hc] : made active_display var static and provide
14309         an accessor funtion ddisplay_active_diagram ()
14311         * app/dia-props.c : don't store the active_diagram, but ask
14312         for it everytime it needed.
14314         * lib/properties.h : #include "intl.h"
14316         * lib/makefile.msc : need to take care of inclusion order to
14317         avoid clashes with gtk+2.0's gdk-pixbuf
14319         * objects/makefile.msc : added uml/stereotype.c to build
14321 2001-03-23  Lars Clausen  <lrclause@cs.uiuc.edu>
14323         * **/*.c: Added config.h to the remaining .c files, and changed
14324         all to be <config.h>.
14326 2001-03-22  Steffen Macke <sdteffen@yahoo.com>
14328         * lib/arrows.c
14329         * lib/arrows.h
14330         * lib/widgets.c
14331         * app/lineprops_area.c: added new arrow types with double
14332         heads
14333         
14334 2001-03-20  Steffen Macke <sdteffen@yahoo.com>
14336         * shapes/Civil/civil_gas_bottle.xpm
14337         * shapes/Civil/civil_gas_bottle.shape
14338         * sheets/civil.sheet
14339         * shapes/Civil/Makefile.am: Added gas bottle shape by Arne
14340         Battermann
14341         
14342 2001-03-20  Lars Clausen  <lrclause@cs.uiuc.edu>
14344         * objects/custom/shape_info.c (load_shape_info): 
14345         * objects/custom/shape_info.h: 
14346         * objects/custom/custom_object.c (custom_update_data): 
14347         Better support for text outside the box -- new attributes 'resize'
14348         and 'align' for text entity.  Align not fully supported yet.
14350         * lib/text.c (text_calc_boundingbox): Adding BB for cursor width.
14352 2001-03-20  James Henstridge  <james@daa.com.au>
14354         * app/interface.c (display_data_received_callback): comment out
14355         status message.
14357 2001-03-19  James Henstridge  <james@daa.com.au>
14359         * app/GNOME_Dia.oaf: rename from GNOME_Dia.oafinfo.
14361         * objects/UML/realizes.c: similar here.
14363         * objects/UML/implements.c: similar here.
14365         * objects/UML/component.c: similar here.
14367         * objects/UML/generalization.c: same here.
14369         * objects/UML/dependency.c: allow NULL for ->name and
14370         ->stereotype.  This fixes a number of problems in loading saved
14371         files.
14373         * lib/properties.c: various changes so that NULL string properties
14374         should work.
14376         * objects/standard/line.c (line_update_data):
14377         line->extra.start_long and line->extra.end_long were not being
14378         initialised.  This fixes potential problems with the bounding box
14379         of "Standard - Line" objects.
14381 2001-03-19  Hans Breuer  <hans@breuer.org>
14383         * app/commands.c : added win32 specific code to display a html
14384         file. #include "text.h" for text_delete_all prototype.
14386         * app/dia.ico :
14387         * app/dia.rc : (new) to give Dia win32 an icon
14389         * app/win32print.[ch] : new files to support direct postscript
14390         file printing on win32. Beware: it *requires* a ps-printer!
14392         * app/paginate_psprint.c : disable the signal code for win32 build
14393         and added small specific changes to support win32print.
14395         * app/makefile.msc : added win32print and linking shell32.lib
14397         * lib/libdia.def : updated
14399 2001-03-18  Kevin Breit <battery841@mediaone.net>
14401         * doc/en/dia-C.omf: Added file.  Dia should now list in the Nautilus
14402           Help tabs.
14404 2001-03-17  James Henstridge  <james@daa.com.au>
14406         * app/paginate_psprint.c (diagram_print_ps): add code that traps
14407         SIGPIPEs during printing.  This gets rid of a number of crashes
14408         caused by printing (eg. typing an incorrect print command).
14410         * dia.spec (%install): gzip the manpage.
14412         * lib/beziershape.c (beziershape_save): fix off by one error in
14413         beziershape save code, which was adding an extra segment to the
14414         object on save.
14416         * app/menus.c: add a separator in the gnome version of the help
14417         menu.
14419         * app/app_procs.c (app_init): add a --nosplash argument which
14420         disables the splash screen.
14422         * app/dia_embedd.c (main): don't leave the splash screen open for
14423         embeddable component.
14425         * app/splash.c (app_splash_init): the gtk_widget_show_now() call
14426         didn't seem to be showing the splash screen like expected, so I
14427         have replaced it with some code that calls gtk_main() until the
14428         first exposure of the window.
14430 2001-03-16  James Henstridge  <james@daa.com.au>
14432         * app/Makefile.am (EXTRA_DIST): add extra pixmaps.
14434         * objects/UML/Makefile.am (libuml_objects_la_SOURCES): add
14435         stereotype.h
14437         * lib/Makefile.am (libdia_a_SOURCES): add diavar.h here.
14439         * app/Makefile.am (dia_core_files): remove splash.h from file
14440         list, as it doesn't exist.
14442         * doc/en/Makefile.am (uninstall-local): remove the docdir on
14443         uninstall.
14445         * doc/Makefile.am (uninstall-local): target to remove the C
14446         symlink.
14448         * dia.spec (%files): include the documentation in the package.
14450         * app/menus.c (toolbox_menu_items): add menu item for manual,
14451         which calls help_manual_callback.
14453         * app/commands.c (help_manual_callback): find help file and load
14454         netscape to view it.
14456         * app/commands.h: add prototype for help_manual_callback()
14458         * doc/Makefile.am (helpdir): similar here.
14460         * doc/en/Makefile.am (helpdir): make the helpdir
14461         $(pkgdatadir)/help/en in the non gnome case.
14463         * configure.in (HAVE_GNOME): add conditional.
14465         * doc/en/Makefile.am: handle the graphics in a more general way,
14466         so it is easier for Kevin to add them to the build (just add them
14467         to the GRAPHICS var).
14469         * app/Makefile.am (embed_extra_print_files): make the case of
14470         building without gnome-print support but with bonobo support work.
14471         dia-embedd needs to be include the gnome-print
14473 2001-03-09  Cyrille Chepelov  <chepelov@calixo.net>
14475         * samples/Makefile.am: included all samples in the distribution....
14476         
14477 2001-03-09  Cyrille Chepelov  <chepelov@calixo.net>
14479         * configure.in: removed premature test for DPS. Added -*- m4 -*-
14480         at the beginning. Made HAVE_UNICODE non-default. po/es_ES.po has
14481         vanished, removed it from ALL_LINGUAS.
14483         * lib/charconv.[ch] (NEW): a very small wrapper around
14484         unicode_iconv to convert strings between utf8 and local charset
14485         (actually, ISO-8859-1, though one can do
14486         CFLAGS="-DEFAULT_8BIT_CHARSET=\"ISO-8859-2\"" and the like).
14488         * lib/ps-utf8.[ch] (NEW): A PostScript Unicoder ; a smallish
14489         library to help build Postscript streams which use as many custom
14490         font encodings as necessary to correctly represent all characters
14491         used (testing from users with non-latin1 and/or more than 256
14492         characters in routine use *very* welcome).
14494         * app/Makefile.am, lib/Makefile.am: integrated these into the
14495         build process.
14497         * shapes/Logic/.cvsignore (NEW): .cvsignore
14498         
14499         * app/render_eps.h: forwarded some changes Lars forgot to include.
14500         * app/render_eps.c: turned off ASCII85 and FILTERS, as this
14501         doesn't yet build.
14503 2001-03-08  Kevin Breit <battery841@mediaone.net>
14505         * doc/en/home_network.png: Added file.
14506         * doc/en/line_props.png: Added file.
14507         * doc/en/usage-objects.sgml: Added two graphics to file.
14508         * doc/en/usage-quickstart.sgml: Added one graphic to file.
14510 2001-03-06  Kjartan Maraas  <kmaraas@gnome.org>
14512         * app/grid.h: Place comment around text after #endif.
14513         * lib/bezier_conn.c: #include <string.h>.
14514         * lib/beziershape.c: #include <string.h>.
14515         * lib/connpoint_line.h: Comment after #endif.
14516         * lib/dia_dirs.c: #include <string.h>.
14517         * lib/element.c: Same.
14518         * lib/lazyprops.c: #include <config.h> and "intl.h".
14519         * lib/lazyprops.h: Comment out text after #endif.
14520         * lib/neworth_conn.c: #include <string.h>
14521         * lib/orth_conn.c: Same here.
14522         * lib/poly_conn.c: Here too.
14523         * lib/polyshape.c: And here.
14524         * lib/properties.c: Remove #include "intl.h" from here and add
14525         an array of static strings to work around bug in gettext that
14526         makes it miss strings in a #define body.
14527         * objects/GRAFCET/action_text_draw.h: Comment out text after #endif.
14528         * objects/GRAFCET/boolequation.h: Same here.
14529         * objects/chronogram/chronoline_event.h: Add prototype for
14530         destroy_cle().
14531         
14532 2001-03-05  Lars Clausen  <Lars R. Clausen <lrclause@cs.uiuc.edu>
14534         * objects/FS/function.c: 
14535         * objects/FS/flow.c: 
14536         * objects/FS/flow-ortho.c: 
14537         Updated to use properties.
14539 2001-03-03  James Henstridge  <james@daa.com.au>
14541         * lib/lazyprops.c (__propdlg_build_enum): translate the radio
14542         button labels when creating them.
14544 2001-02-28  Lars Clausen  <Lars R. Clausen <lrclause@cs.uiuc.edu>
14546         * objects/UML/actor.c
14547         * objects/UML/realizes.c 
14548         * objects/UML/implements.c 
14549         * objects/UML/generalization.c 
14550         * objects/UML/dependency.c 
14551         * objects/UML/constraint.c
14552         Updated to use properties.
14553         
14554         * objects/UML/stereotype.c 
14555         * objects/UML/stereotype.h
14556         Generalized to any kind of bracketting.
14557         
14558 2001-02-28  James Henstridge  <james@daa.com.au>
14560         * app/menus.c: add help entry to the help menu.  Need to get this
14561         working for the non GNOME case as well (maybe put help under
14562         $(datadir)/dia/help for non GNOME?)
14564         * doc/en/topic.dat: add a topic.dat file for GNOME menus.
14566         * doc/en/dia-manual.sgml (legalnotice): add an id attribute to
14567         this element so that we get a meaningful filename in the html
14568         translation.
14570         * doc/Makefile.am, doc/en/Makefile.am: new makefiles to handle the
14571         documentation.
14573         * configure.in (DB2HTML): add a check for the db2html program, and
14574         set an automake conditional if it is found.
14576         * Makefile.am: remove EXTRA_DIST rules that cover doc/ directory,
14577         and descend into doc/ directory while building.
14579         * configure.in (AC_OUTPUT): add doc/ makefiles to output list, now
14580         we need more complex rules for building the docs.
14582 2001-02-25  Hans Breuer  <hans@breuer.org>
14584         * config.h.win32 : some cleanup
14586         * app/prefererences.c : g_scanner_(freeze|thaw)_symbol_table
14587         are deprecated since glib-1.3.2. Sorry needing to use them
14588         contionally, but there is no glib-1.2 for win32
14590         * app/recent_files.c : use g_strescape (params) conditionally
14592         * lib/connection.c : include string.h for memcpy
14594         * lib/geometry.h : added some stuff for compatibility with
14595         msvc, which previously came from included config.h
14597         * lib/libdia.def : updated
14599         * objects/makefile.msc : updated
14601         * objects/GRAFCET/action.c(490) : fixed warning C4700: local variable 
14602         'extra' used without having been initialized
14604         * objects/network/bus.c(658) : initialize 'extra'
14606         * plug-ins/makefile.msc : updated
14608         * plug-ins/cgm/cgm.c :
14609         * plug-ins/pstricks/render_pstricks.c : 
14610         g_free() memory allocated by dia_image_rgb_data(). Plugs possibly 
14611         huge memory leaks.
14613         * plug-ins/python/python.c : use HAVE_DIRENT_H
14615 2001-02-23  Lars Clausen  <Lars R. Clausen <lrclause@cs.uiuc.edu>
14617         * lib/connection.c (connection_update_boundingbox): 
14618         Made the BB shrink on right and lower sides, too.
14620 2001-02-23  Kjartan Maraas  <kmaraas@gnome.org>
14622         * */*.c: #incude <config.h> at the top.
14623         * */*.h: Remove include of "config.h" since it should only
14624         be included in .c files and at the very top for things to
14625         work.
14626         * sheets/*.sheet: Updated Norwegian translations.
14627         
14628 2001-02-22  Lars Clausen  <Lars R. Clausen <lrclause@cs.uiuc.edu>
14630         * objects/UML/small_package.c: 
14631         * objects/UML/class.c: 
14632         * objects/UML/node.c: 
14633         * objects/UML/usecase.c:
14634         * objects/UML/lifeline.c: 
14635         * objects/UML/message.c:
14636         Various cleanup of properties in particular.  Now much more use of
14637         standard properties.
14639         * lib/diagramdata.c (layer_render): Visualization of bounding
14640         boxes, for debugging purpoises.
14642 2001-02-22  Cyrille Chepelov  <chepelov@calixo.net>
14644         * lib/geometry.h:
14645         * lib/connection.[ch]:
14646         * lib/poly_conn.[ch]:
14647         * lib/polyshape.[ch]:
14648         * lib/bezier_conn.[ch]:
14649         * lib/beziershape.[ch]:
14650         * lib/orth_conn.[ch]:
14651         * lib/neworth_conn.[ch]:
14652         * lib/element.[ch]: Changed a bit the _update_boundingbox()
14653         interface. Now the parent elements have an extra_spacing
14654         structure, which child objects just need to fill, to take care of
14655         most arrow & line width extra space needs.
14657         * objects/**/*.c: updated all objects to the new interface.
14658         While at it, killed all instances of (Object *) downcasts (phew !)
14660         * objects/GRAFCET/condition.c: removed the arrowhead, which IEC848
14661         doesn't speak about.
14662         
14663 2001-02-21  Lars Clausen  <Lars R. Clausen <lrclause@cs.uiuc.edu>
14665         * sheets/Logic.sheet: New sheet for Logic symbols.
14667 2001-02-21  James Henstridge  <james@daa.com.au>
14669         * app/menus.c (dia_gnome_menu_get_widget): new function to find a
14670         widget by its path name.  Walks the GnomeUIInfo heirachy rather
14671         than widget tree, compares untranslated label names and ignores
14672         underscores in the labels.
14673         (menus_get_item_from_path): use dia_gnome_menu_get_widget so that
14674         lookups are not dependent on the current locale, as with
14675         gnome_app_find_menu_pos.
14677         * acconfig.h: guard against multiple inclusion of config.h.
14679         * app/select.c (select_style_callback): simply set the selection
14680         style to the value of action.
14682         * app/menus.c (menus_init): simplify the item factory based menu
14683         code a bit.  It looks like it was using some code cut and pasted
14684         from the gimp, which looked a bit unnecessary.  Things work fine
14685         without it.
14686         (selectmenu): set the action to the type of selection mode
14687         requested.
14688         (display_menu_items): use the symbolic enumeration values for the
14689         action field.
14691         * app/plugin-manager.c: 
14692         * app/plugin-manager.h: 
14693         * app/filedlg.c:
14694         * app/filedlg.h: 
14695         * app/select.c:
14696         * app/select.h: change prototypes.
14698         * app/commands.c: update all callback prototypes, and get rid of
14699         some #ifdef GNOME's.
14701         * app/commands.h: change function prototypes.
14703         * app/dia_embedd.c (save_fn):
14704         s/ex_Bonobo_IOError/ex_BonoboStorage_IOError/
14706         * app/menus.c (menus_init): for gnome menus, use
14707         gnome_app_fill_menu_custom and pass in a GnomeUIBuilderData
14708         structure that proxies the callbacks to have the same signature as
14709         GtkItemFactory type 1 callbacks.
14710         (menus_init): for GTK menus, change from callback type 2 to type
14711         1.
14712         (display_menu_items): add back tearoffs.  I don't know who removed
14713         these for the gtk menu case.
14715 2001-02-20  Kevin Breit <battery841@mediaone.net>
14717         * doc/en/usage-objects-special.sgml: Fixed a few of the special
14718         object descriptions.  More to come in the next few days.
14720 2001-02-20  Lars Clausen  <lrclause@cs.uiuc.edu>
14722         * app/render_eps.c: Fixed for internationalized floating point
14723         output. 
14725         * objects/UML/note.c: Fixed properties -- was missing
14726         Get/ApplyPropertiesFunc.  Also improved update to recalculate text
14727         position. 
14729 2001-02-19  Lars Clausen  <lrclause@cs.uiuc.edu>
14731         * plug-ins/xfig/xfig-import.c: 
14732         File added importing xfig files.  Still very rough, but good
14733         enough to let others hack on it.
14735 2001-02-07  Cyrille Chepelov  <chepelov@calixo.net>
14737         * app/interface.c:
14738         * app/linewidth_area.c:
14739         * lib/lazyprops.c:
14740         * lib/properties.c:
14741         * lib/widgets.c:
14742         * objects/ER/attribute.c:
14743         * objects/ER/entity.c:
14744         * objects/ER/relationship.c:
14745         * objects/custom/custom_object.c:
14746         * objects/flowchart/box.c:
14747         * objects/flowchart/diamond.c:
14748         * objects/flowchart/ellipse.c:
14749         * objects/flowchart/parallelogram.c:
14750         * objects/standard/box.c:
14751         * objects/standard/textobj.c: per Vlad Harchev's request, made
14752         page sizes of gtk_adjustments different than their step sizes.
14753         When sensible values of page size weren't found (overwhelming
14754         majority of cases), page sizes were set to 10.0 * respective step
14755         size.   
14757 2001-02-07  Lars Clausen  <lrclause@cs.uiuc.edu>
14759         * objects/network/hub.c: 
14760         Patch from Hubert Figuiere applied, adding connection points.
14762 2001-02-02  James Henstridge  <james@daa.com.au>
14764         * app/display.c (new_display): set update id to 0 here.
14765         (ddisplay_update_handler): rename from ddisplay_flush, and set
14766         update_id to 0 at end of processing.
14767         (ddisplay_flush): new implementation that simply sets an idle
14768         handler to perform the actual drawing.
14770         * app/display.h: add structure member to hold the redraw idle
14771         handler id.
14773 2001-01-31  Lars Clausen  <lrclause@cs.uiuc.edu>
14775         * objects/standard/ellipse.c (ellipse_copy): 
14776         * objects/standard/zigzagline.c (zigzagline_copy): 
14777         Fix of copying provided by Martin Hawlisch.
14779 2001-01-23  Kevin Breit <battery841@mediaone.net>
14781         * doc/en/graphics/: added directory
14783         * doc/en/graphics/greendots.png: added file
14785         * doc/en/*sgml: made minor and some major changes to prepare for 1.4
14786         release.
14788 2001-01-23  Kevin Breit <battery841@mediaone.net>
14790         * doc/en/*sgml: made some grammar changes and fixed a few markup bugs.
14791                         thanks to John Fleck!
14793 2001-01-21  Kevin Breit <battery841@mediaone.net>
14795         * doc/en/*sgml: made just minor changes to a few lines; nothing major.
14797 2001-01-12  Michael Meeks  <michael@helixcode.com>
14799         * app/dia_embedd.c (init_server_factory): do a bonobo_activate
14800         so our POA gets setup properly.
14802         * app/paginate_gnomeprint.c (paginate_gnomeprint): g_free
14803         things we g_malloc.
14805         * configure.in: Use bonobox_print.
14807         * app/dia_embedd.c (embeddable_factory): add print interface.
14808         (object_print): impl.
14810 2001-01-11  Michael Meeks  <michael@helixcode.com>
14812         * app/dia_embedd.c (embeddable_factory): aggregate PersistFile.
14813         (load_fn, save_fn): impl.
14814         (view_factory): hide modified status bar, & use activate fn.
14815         (refresh_view): force redraws of the views.
14816         (view_show_hide): split from
14817         (dia_view_activate): here.
14819         * app/diagram.c (diagram_load_into): split from diagram_load.
14820         (new_diagram): simplify bu splittin stuff into
14821         (diagram_init): here.
14823 2001-01-10  Steffen Macke <sdteffen@yahoo.com>
14825         * shapes/jigsaw/*.shape: replaced #000000 with foreground
14826         and #ffffff with background
14827         
14828 2001-01-08  Steffen Macke <sdteffen@yahoo.com>
14830         *configure.in: GTK+-build was broken due to missing
14831         have_bonobo=no
14832         
14833 2001-01-06  Michael Meeks  <michael@helixcode.com>
14835         * app/dia_embedd.c (main): add running context support.
14836         (dia_embeddable_destroy): remove old running object counting.
14837         (embeddable_factory): ditto.
14838         (view_factory): comment out menu path hiding.
14840         * lib/sheet.c (load_register_sheet): use free to free
14841         stuff from libxml not g_free.
14843         * acconfig.h: kill cover for USE_BONOBOX and USE_OAF
14845         * configure.in: remove USE_OAF checks, check for a precice
14846         Bonobo version >= 0.31, revamp bits.
14848         * app/dia_embedd.c (init_server_factory): upd.
14849         (init_dia_factory): remove OAF conditionals, everything uses
14850         oaf now.
14852         * app/GNOME_Dia.oafinfo: rename OAFIIDs
14854         * app/Makefile.am: remove ancient gnorba code.
14855         rename dia.oafinfo to GNOME_Dia.oafinfo
14857 2001-01-07  Hans Breuer <Hans@Breuer.Org>
14859         * config.h.win32
14860         * install.win32
14861         * readme.win32 : some more files required or useful to build 
14862         Dia on win32
14864         * plug-ins/wmf/wmf.cpp : fixed open issues like fill_arc and
14865         fill_bezier implementation, boundary drawing in fill mode, etc.
14866         Next one complaining gets the source, uncommented ...
14868         * shapes/network/router-symbol.xpm 
14869         * shapes/network/switch-atm-symbol.xpm 
14870         * shapes/network/switch-symbol.xpm : removed "-*- picture -*- "
14871         from /* XPM */ header, cause it stopped Dia/gdk_pixbuf to detect 
14872         the files as XPMs. Maybe the X versions of these functions are more
14873         tolerant ...
14875 2001-01-06  Steffen Macke <sdteffen@yahoo.com>
14877         * plug-ins/python/Makefile.am: added libart path
14879         * plug-ins/python/python.c: added dirent.h
14881         * configure.in: added es_ES and pt_BR to ALL_LINGUAS
14882         
14883 2001-01-06  Hans Breuer <Hans@Breuer.Org>
14885         * objects/uml/actor.c
14886         * objects/uml/branch.c
14887         * objects/uml/class.c
14888         * objects/uml/classicon.c
14889         * objects/uml/component.c
14890         * objects/uml/large_package.c
14891         * objects/uml/node.c
14892         * objects/uml/note.c
14893         * objects/uml/object.c
14894         * objects/uml/small_package.c
14895         * objects/uml/state.c
14896         * objects/uml/usecase.c : started to implement the generic property
14897         interface for the uml objects. Would appreciate some help on how
14898         to implement properties which are list of properties themselves,
14899         e.g. member functions and their parameters of UMLClass.
14901 2001-01-06  Hans Breuer <Hans@Breuer.Org>
14903         * plug-ins/python/diamodule.c : finally ported to win32.
14904         Added new objects and implemented register_export function.
14906         * plug-ins/python/pydia-object.h
14907         * plug-ins/python/pydia-display.c
14908         * plug-ins/python/pydia-handle.c
14909         PyObject_HEAD_INIT needs some tweakink on win32. Done in
14910         pydia-object.h; others files simply using it.
14912         * plug-ins/python/pydia-layer.c : reflect 
14913         layer_find_closest_connection(_)point renaming
14915         * plug-ins/python/pydia-object.c : add property properties.
14916         Also change bounding_box to DiaRectangle.
14918         * plug-ins/python/python.c : extended error reporting; use
14919         all *.py files from Dia's plug-in dir instead of hardcoded
14920         test.py. This sollution should be fine with Win32, but on
14921         Unix it may need some tweaking (dunno) ...
14923         * plug-ins/python/export-object.py
14924         * plug-ins/python/export-render.py : test and documentation 
14925         implementations for export filter implementations in Python
14927         * plug-ins/python/pydia-color.[hc]
14928         * plug-ins/python/pydia-diagramdata.[hc]
14929         * plug-ins/python/pydia-error.[hc]
14930         * plug-ins/python/pydia-export.[hc]
14931         * plug-ins/python/pydia-font.[hc]
14932         * plug-ins/python/pydia-geometry.[hc]
14933         * plug-ins/python/pydia-image.[hc]
14934         * plug-ins/python/pydia-properties.[hc]
14935         * plug-ins/python/pydia-property.c
14936         * plug-ins/python/pydia-render.c : new objects in new files 
14938         * plug-ins/python/makefile.am : added new files but can't test it
14940         * plug-ins/python/pydia.def
14941         * plug-ins/python/makefile.msc : for win32 build
14943         * plug-ins/cgm/cgm.c
14944         * plug-ins/dxf/dxf-import.c
14945         * plug-ins/dxf/dxf-export.c
14946         * plug-ins/hpgl/hpgl.c : reflect export API change
14948         * plug-ins/shape/shape-export.c : reflect export API change
14949         and check for libart (better the availibility of a png exporter) 
14950         at run-time instead of compile-time. 
14952 2001-01-06  Steffen Macke <sdteffen@yahoo.com>
14954         * app/recent_files.h was missing from Hans's commit
14956         * plug-ins/shape/shape_export.c: shape export was broken
14957         due to interface changes
14958         
14959 2001-01-05  Hans Breuer <Hans@Breuer.Org>
14961         Applied Steffen's recent file list patch :
14962         * app/Makefile.am : added recent_files.[hc]
14963         * app/diagram.c : add files to recent file list
14964         * app/menus.c : add recent file menu
14965         * app/app_procs.c : changed initialization order to
14966         make recent file list work with command line processing.
14968         The Filter export()/import() functions have got an additional 
14969         parameter to allow multiple filters via one C callback (required
14970         for Python bindings)
14972         * app/commands.[hc] : corrected the signature for gtk menu callback
14973         functions, which actually use the second or third parameter. This
14974         is the absolute minimum change to make these functions/menu entries
14975         work again. Using the other possible gtk menu callback signature
14976         would have required one more function to change. (see mailing list
14977         thread "Objects/Align/Equal Distance" for more information.
14979         * app/disp_callbacks.c : applied Gustavo J.A.M. Carneiro's
14980         zoom-combo focus patch
14982         * app/display.c
14983         * app/interface.c : wrapped the Zoom Combo code into 
14984         #ifndef WITHOUT_ZOOM_COMBO because IHMO it isn't an useabilty
14985         improvement but cluttering the user interface. Also it wasn't
14986         compiling on Win32 anyway. The win32 version does define 
14987         WITHOUT_ZOOM_COMBO to keep the old look. 
14988         There are plans to use the statusbar to display size and placement
14989         of selected objects, whereas the Zoom Combo would need to get out
14990         of the way as well.
14992         Added "Save Changes?" to diagram close dialog. Hopefuly the
14993         Yes/No/Cancel option isn't too much windoze like. IHMO this is
14994         an useability improvement.
14996         * app/export_png.c
14997         * app/filedlg.c
14998         * app/load_save.c
14999         * app/layer_dialog.c
15000         * app/paginate_psprint.c
15001         * app/render_eps.c
15002         - reflect signature changing of filter->export function
15003         - replaced '/' with G_DIR_SEPARARTOR where appropriate
15005         * app/diaunitspinner.c
15006         * app/render_libart.c
15007         added misssing headers like <string.h>
15009         * app/object_ops.c : fixed copy&paste bug in dialog string
15011         * app/splash.c : gdk_widget_show_now () does not ensure actual
15012         drawing of the splash screen, at least not on win32. Reuse the
15013         previous implementation with gtk_main_iteration() again.
15015         * */makefile.msc : make use of the build module (available in
15016         gnome-cvs/build. Updated for other source changes
15018         * lib/filter.h : added an user_data pointer to <ex/im>port()
15019         function signature and Dia<Im/Ex>portFilter to allow different
15020         filters to reuse the same callback function
15022         * lib/font.c : #include <string.h>
15024         * lib/orth_conn.c 
15025         * lib/poly_conn.c 
15026         * lib/poly_shape.c 
15027         * lib/neworth_conn.c
15028         * lib/text.c : don't mix allocator functions (g_)realloc, free, ...
15030         * */*.def : export function definition files required by win32 build
15032         * objects/custom/custom.c : #include <string.h>
15034         * plug-ins/pstricks/render_pstricks.c
15035         * plug-ins/shape/shape_export.c
15036         * plug-ins/svg/render_svg.c
15037         reflect changes to filter export function signature
15039         * plug-ins/wmf/wmf.cpp : fixed indent and scaling. It now should
15040         mostly work as expected
15041         * plug-ins/wmf/wmf_gdi.[hc] : Updated comment. Still not used
15042         to build the wmf plug-in because on the one hand the GDI emulation 
15043         isn't finished and on the other hand it isn't required when building
15044         for win32. Is there anybody out there, who wants to save WMF on non
15045         windoze platforms ?
15047         * plug-ins/wpg/wpg.cpp : fixed scaling to take axis dependent
15048         offset into account.
15050 2001-01-02  Steffen Macke <sdteffen@yahoo.com>
15052         * app/Makefile.am: added missing plug-ins to run_dia.sh
15054         * lib/paper.c: added paper sizes A0, A1, A2
15056         * objects/UML/class.c
15057         objects/UML/class.h
15058         objects/UML/class_dialog.c: added support for colored UML
15059         classes
15060         
15061 2000-12-30  Kevin Breit <battery841@mediaone.net>
15063         * doc/en/usage-customization.sgml: added more content
15065 2000-12-24  Kevin Breit <battery841@mediaone.net>
15067         * doc/en/usage-layers.sgml: added file, contributed by Remypsb
15068         <remy.viard@laposte.net>
15070 2000-12-24  Steffen Macke <sdteffen@yahoo.com>
15072         * added limiting lines to Civil Engineering sheet,
15073         fixed vertical pump icon
15074         
15075 2000-12-20  Steffen Macke <sdteffen@yahoo.com>
15077         * updated/additional Civil Engineering shapes: better icons,
15078         shapes use foreground/background colors now and are filled
15079         
15080 2000-12-03  Kevin Breit  <battery841@mediaone.net>
15082         * doc/en/dia-manual.sgml Integrated a few diffs.  New section should be
15083         the selection <sect1>
15085 2000-11-29  Fredrik Hallenberg  <hallon@lysator.liu.se>
15087         * app/load_save.c (diagram_data_save): avoid using obsoleted
15088         libxml calls (only matters when compiling with libxml2)
15090 2000-11-25  James Henstridge  <james@daa.com.au>
15092         * app/disp_callbacks.c (ddisplay_drop_object): add a function to
15093         handle the tool drops on the canvas.
15095         * app/interface.c (display_data_received_callback): do the check
15096         to make sure that the drag is from a local toolbox here as well.
15098         * app/interface.c (create_tools): unref the pixmap/mask after
15099         creating the GtkPixmap.
15100         (tool_setup_drag_source): function to set up a drag source for
15101         create object tool buttons.
15102         (create_tools): setup drag source for CREATE_OBJECT_TOOL's.
15103         (fill_sheet_wbox): same here.
15104         (create_display_shell): set up the display canvas as a drag
15105         destination.
15106         (display_drop_callback, display_data_received_callback): functions
15107         to handle drops of tool buttons.
15109         * app/menus.c (menus_init): don't use gnome_popup_menu_new().  It
15110         does weird shit to the user_data pointer for a menu item.  Object
15111         alignment should work again now.
15113         * app/splash.c (get_logo_pixmap): don't unref the bitmap if it is
15114         NULL, and mark this function static.
15115         (app_splash_init): use gtk_widget_show_now() instead of the
15116         gtk_main_iteration loop.
15117         (app_splash_init): connecting gtk_widget_destroy to the destroy
15118         signal of a widget seems pretty useless.
15120 2000-11-23  Kevin Breit <battery841@users.sourceforge.net>
15122         * doc/en/dia-manual.sgml:
15123                 Added sect1 for advanced object types.  Starting development
15124                 on that part.
15126 2000-11-18  Kevin Breit <battery841@mediaone.net>
15128         * doc/en/dia-manual.sgml:
15129                 Stupid spelling fixes.
15131 2000-11-18  Kevin Breit <battery841@mediaone.net>
15133         * doc/en/dia-manual.sgml:
15134                 Just some small changes I made.  Props to Greg LeBlanc on the
15135                 recommendations.
15137 2000-11-17  Alexander Larsson  <alla@lysator.liu.se>
15139         * app/display.c:
15140         (ddisplay_add_display_area): Clip input rectangle to
15141         the visible part of the display.
15142         (ddisplay_scroll): Optimization, don't scroll and
15143         redraw if moving to the same position as before.
15145         * app/render_libart.c (renderer_libart_copy_to_window):
15146         Removed sanity check. Now moved to ddisplay_add_display_area().
15148         * lib/diavar.h:
15149         Added return at end of file.
15150         
15151 2000-11-13 Kevin Breit <battery841@mypad.com>
15152         * doc/en/dia-manual.sgml
15153                 Commited manual changes from Henry House <hajhouse@houseag.com>
15155 2000-10-21 Hans Breuer <Hans@Breuer.Org>
15156         * lib/beziershape.c :
15157                 The previous code was accessing unowned memory due to IHMO
15158                 wrong index calculation. Now it appears to be fixed.
15159                 *Please Review!*
15161         * lib/makefile.msc
15162         * plug-ins/makefile.msc
15163         * objects/makefile.msc
15164         * app/makefile.msc: (new files)
15165                 Makefiles for Dia on Win32, Micro$oft VC only.
15167         * plug-ins/pstricks/render_pstricks.c
15168         * plug-ins/dxf/dxf-import.c
15169         * plug-ins/shape/shape-export.c
15170         * plug-ins/svg/render_svg.c
15171         * app/commands.c
15172         * app/filedlg.c
15173         * app/preferences.c
15174         * app/render_eps.c
15175         * lib/sheet.c
15176         * lib/plug-ins.c
15177         * objects/custom/custom.c
15178         * objects/standard/image.c
15179                 portability (not only win32): use HAVE_UNISTD_H, HAVE_DIRENT_H 
15180                 where   appropriate, add missing prototypes like <string.h>
15182         * plug-ins/wmf/wmf_gdi.cpp
15183         * plug-ins/wmf/wmf_gdi.h:
15184                 start of wmf write functions for non Win32 platform. Not 
15185                 finished yet. The other way to get it working maybe to
15186                 link the plug-in against wine libs.
15187                 
15188         * plug-ins/wpg/wpg.c : add missing brace
15190         * app/load_save.c :
15191                 Handling for unknown objects at load time. Previously Dia
15192                 was crashing, if you try to load a file referencing objects
15193                 whiches plug-ins aren't installed/available. Now it spits out 
15194                 a warning and ignores the unknown objects.
15196         * app/interface.c
15197                 toolbox DND support for files like The Gimp does it.
15199         * app/main.c
15200         * app/app_procs.h
15201                 Simple splash screen support and usage.
15203         * app/app_procs.c
15204                 Splash screen, portability fixes, dont' g_error if there is
15205                 g_get_homedir return NULL. This may remove the one and only
15206                 FAQ for Win32.
15208         * app/menus.c :
15209                 Make it compile without ENABLE_NLS
15211         * app/render_libart.c :
15212                 Sanity check to avoid calling libart with wrong window coordinates.
15213                 They come from the update handler. Direct Gdk is dealing nicely
15214                 with coordinates out of range, libart does access un-owned memory
15215                 in this case, mostly causing crashes.
15217         * app/winmain.c: (new file) Export the Win32 Gui version of the
15218                 main function. This file is only required for Windoze.
15220         * app/splash.c: (new file) splash screen implementation
15222         * lib/color.h
15223         * lib/font.h
15224         * lib/diavar.h: (new file)
15225                 moved special variable export code to diavar.h, because it is
15226                 needed in color.h and font.h
15228         * lib/paper.c :
15229                 M$VC cann't export inlined functions. Quick hack to let it
15230                 link again. Probably the glib mechanics should be used here?
15232         * objects/UML/lifeline.c : initialize var before usage
15234         * objects/GRAFCET/step.c : removed unused var
15236 2000-10-14  James Henstridge  <james@daa.com.au>
15238         * app/render_gnomeprint.c (draw_image): change code so images
15239         don't get flipped when printing.
15241         * app/paginate_gnomeprint.c (diagram_print_gnome): check to make
15242         sure that the return value of
15243         gnome_print_context_new_with_paper_size is not NULL.
15245         * app/render_gnomeprint.c (draw_arc): add code to convert arcs
15246         into a series of bezier segments.
15247         (fill_arc): similar code to handle filled arc segments.
15249 2000-10-12  Fredrik Hallenberg  <hallon@lysator.liu.se>
15251         * app/app_procs.c
15252         * app/commands.c
15253         * app/dia-props.c
15254         * app/diagram.c
15255         * app/diagram.h
15256         * app/disp_callbacks.c
15257         * app/display.c
15258         * app/linewidth_area.c
15259         * app/paginate_psprint.c
15260         * app/preferences.c
15261         * app/undo.c
15262         * app/font.c
15263         * app/message.c
15264         * app/neworth_conn.c
15265         * app/orth_conn.c
15266         * objects/standard/box.c: various small changes to get rid of 
15267         annoying warnings (eg faulty prototypes and unused variables)
15269         * app/disp_callbacks.c
15270         * app/cursor.h
15271         * app/magnify.c
15272         * app/magnify.h: update magnify tool icon when pressing/releasing
15273         shift. I will try to make something more general so that similar
15274         things can be used by other tools.
15276         * shapes/SDL/inout.shape
15277         * shapes/SDL/return.shape: fixed some typos
15279 2000-10-09  James Henstridge  <james@daa.com.au>
15281         * objects/custom/shape_info.c (parse_path): apply patch from
15282         Robert Young <robertdotyoung@dsto.defence.gov.au> to fix bug
15283         #25221
15285 2000-10-08  James Henstridge  <james@daa.com.au>
15287         * objects/standard/image.c (image_set_props): if the file could not
15288         be loaded, show the broken image icon.
15290         * plug-ins/Makefile.am (SUBDIRS): add shape to the subdirs list.
15292         * plug-ins/shape/*: the shape export plugin by Steffen Macke.
15294         * app/interface.c (fill_sheet_wbox): use gdk-pixbuf to load the
15295         object icon when loading from a file.  This allows you to have PNG
15296         icon files for shapes.
15298 2000-10-07  James Henstridge  <james@daa.com.au>
15300         * app/Makefile.am (dia_LDADD): remove GDK_IMLIB_LIBS reference.
15302         * lib/Makefile.am, app/Makefile.am (INCLUDES): remove
15303         GDK_IMLIB_CFLAGS reference.
15305         * app/commands.c (help_about_callback): remove imlib code.
15307         * lib/dia_image.c: only include the pixbuf version of the image
15308         routines.
15310         * acconfig.h: remove the HAVE_GDK_PIXBUF flag from here.
15312         * configure.in (CPPFLAGS): remove the check for imlib, as we now
15313         require gdk-pixbuf.
15315         * plug-ins/pstricks/render_pstricks.c (new_pstricks_renderer):
15316         conditionally define \setfont as well.
15318 2000-10-05  James Henstridge  <james@daa.com.au>
15320         * plug-ins/pstricks/render_pstricks.c (new_pstricks_renderer): fix
15321         preamble so that we define \setlinejoinmode and \setlinecaps
15322         commands conditionally on them being undefined.  This way, the
15323         pstricks output files should work without modification, and will
15324         support the commands when they are implemented in pstricks.
15326 2000-10-05  Szabolcs Ban  <shooby@gnome.hu>
15328         * dia.desktop: added hungarian translations to dia.desktop
15330 2000-10-04  James Henstridge  <james@daa.com.au>
15332         * sheets/UML.sheet: fix typo.
15334         * objects/custom/shape_info.c: use strtod instead of g_strtod.
15335         (parse_path): actually call setlocale around strtod calls.
15337         * lib/dia_xml.c: use strtod rather than g_strtod.  We wrap each
15338         call in setlocale(LC_NUMERIC, "C"), so there is no reason to call
15339         the g_strtod wrapper.
15341         * shapes/SDL/: add SDL shapes from Rubens Ramos
15342         <rubens_ramos@yahoo.com>
15344         * acinclude.m4 (DIA_CHECK_CFLAG): fix up macro.
15346         * sheets/Makefile.am (SHEETS): add SDL.sheet to list.
15348         * shapes/MSE/: add Mobile Subscriber Equipment shapes from
15349         W. Michael Petullo <mike@flyn.org>.
15351         * sheets/Makefile.am (SHEETS): add civil.sheet (which got missed
15352         from the 0.86 tarball) and jigsaw.sheet.
15354         * configure.in: add shapes/jigsaw/Makefile to list of generated files.
15356         * shapes/jigsaw/: jigsaw shapes from Martin Hawlisch.
15358         * shapes/network/: add network-additional shapes here.
15360         * sheets/network.sheet: add the network-additional shapes from
15361         Martin Hawlisch <Martin.Hawlisch@bflow.com> to the main network
15362         sheet.
15364 2000-09-30  Fredrik Hallenberg  <hallon@lysator.liu.se>
15366         * configure.in: Updated ALL_LINGUAS
15368         * po/nl.po: Removed newline from translation
15370 2000-09-17  Asbjorn Pettersen  <asbjornP@dualog.no>
15372         * app/commands.c (help_about_callback): Use G_DIR_SEPARATOR_S in 
15373         logo filename generation. 
15375         * lib/dia_dirs.c (dia_get_data_directory): Handle empty subdir better.
15376         Avoiding "//dia_logo.png".
15378 2000-09-16  Asbjorn Pettersen  <asbjornP@dualog.no>
15380         * app/filedlg.c: add include <sys/types.h> to
15381         remove warning. (OS/2)
15383 2000-09-13  Cyrille Chepelov <chepelov@calixo.net>
15385         * objects/chronogram/chronoline_event.c (reparse_clevent):
15386         the __checksum routine was simply bogus. Redone it in a slightly
15387         saner way (reported by Michael Farr <mfarr@cs.latrobe.edu.au>).
15389 2000-09-10  Asbjorn Pettersen  <asbjornP@dualog.no>
15391         * app/create_object.c (create_object_button_press): 
15392         * app/modify_tool.c (click_select_object): 
15393         * lib/object.h: select renamed to selectf to prevent
15394         compiler problems with function select().  OS/2 version.
15396 2000-09-08  Karsten Weiss  <knweiss@gmx.de>
15398         * po/de.po: Updated.
15400 2000-09-07  Karsten Weiss  <knweiss@gmx.de>
15402         * dia.desktop: Added German translation
15403         * app/menus.c: "Diagram Propeties..." -> "Diagram Properties..."
15405 2000-08-29  Manuel de Vega Barreiro <barreiro@arrakis.es>
15407         * configure.in (ALL_LINGUAS): added "es"
15409 2000-08-28  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
15411         * app/magnify.c:
15412         * app/cursor.h:
15413         * app/cursor.c:
15414         * app/scroll_tool.c:
15415         Standardized cursor function get_cursor().  Magnify now has
15416         looking-glass cursor with + and -.
15418         * app/create_object.c (create_object_button_press): 
15419         Newly created connections now snap to connection points even when
15420         off the grid. 
15422 2000-08-17  Daniel Egger  <egger@suse.de>
15424         * app/menus.c: #ifdef'ed some code for the none GNOME
15425         case.
15426         * app/dia_embedd.c: Changed obvious hackery. Can anyone
15427         please have a look at the GNOME UI menu creation? The
15428         gnome-app-helper code is ages old and plainly broken!
15430 2000-08-15  Daniel Egger  <egger@suse.de>
15432         * app/commands.c:
15433         * app/commands.h:
15434         * app/diagram.c:
15435         * app/display.c:
15436         * app/menus.c:
15437         * app/select.c: First big patch to get the menus
15438         working again in the international version. Copied
15439         some code written by Sven and me from GIMP and
15440         thus implemented automatic tearoffmenu creation and
15441         proper translation. I also removed that pseudo
15442         radiomenu hack and cleaned up several translation
15443         hacks which have never really worked. All in all
15444         this is part I of the big menu patch. Enjoy and tell
15445         me if you detect any problems.
15447 2000-08-14  Daniel Egger  <egger@suse.de>
15449         * sheets/UML.sheet: Changed one German translation as
15450         suggested by Heribert Schuetz <hs@heribert-schuetz.de>.
15452 2000-08-10  Fredrik Hallenberg  <hallon@lysator.liu.se>
15454         * app/diapagelayout.c:
15455         * lib/diagramdata.c:
15456         * lib/diagramdata.h:
15457         * lib/Makefile.am:
15458         * lib/paper.c:
15459         * lib/paper.h: honour PAPERCONF env variable and /etc/papersize when
15460         selecting paper size for a new diagram. TODO: Use libpaper if 
15461         available and use gnome_paper-stuff if using GNOME.
15463         * sheets/Electric.sheet: fixed typo.
15464         
15465 2000-08-08  James Henstridge  <james@daa.com.au>
15467         * po/README: added a readme file to tell translators to translate
15468         the .sheet files as well.
15470         * app/commands.c (help_about_callback): fix small bug where we tried
15471         to gdk_bitmap_unref() the mask for the about box image, even though
15472         it was NULL.  Now check for a NULL mask.
15474 2000-08-07  Daniel Egger  <egger@suse.de>
15476         * sheets/*.sheet: Added translations for the name
15477         in the toolbar tab. Brushed up some descriptions 
15478         and some translations a bit.
15480 2000-08-06  James Henstridge  <james@daa.com.au>
15482         * plug-ins/svg/render_svg.c (new_svg_renderer): update public
15483         identifier and dtd url for SVG output.
15484         (new_svg_renderer): fix the output of the viewBox output.  The
15485         second two numbers are the width and height -- not the right
15486         and bottom sides of the box.
15488         * shapes/*/*.shape: update svg namespace URI.
15490         * objects/custom/shape_info.c (load_shape_info): change the
15491         namespace URI for custom shapes yet again to match the Candidate
15492         Recommedation.  It looks like this one will probably be the final
15493         one.
15495         * app/display.c (new_display): remove the code that sets ic and
15496         ic_attr members to NULL, as one of the previous function calls
15497         causes the display to be realised.  This means that the ic gets
15498         lost.  Thanks to Yukihiro Nakai <ynakai@redhat.com> for finding
15499         this one.
15501 2000-08-06  James Henstridge  <james@daa.com.au>
15503         * shapes/Makefile.am (SUBDIRS): add Civil back to list.
15505         * NEWS: fixed date in NEWS file, as I will release today.
15507         * README: updated the README a little.  Added note that Dia is now
15508         a GNU program.
15510         * dia.spec: fix up spec file.
15512         * plug-ins/wpg/wpg.c: changed DIAG_NOTE stuff here as well.
15514         * plug-ins/hpgl/hpgl.c: change Hans's DIAG_NOTE stuff so that we don't
15515         get heaps of warnings when you turn off debugging.
15516         Also made a few other warning fixes.
15518 2000-08-02  James Henstridge  <james@daa.com.au>
15520         * plug-ins/svg/Makefile.am (INCLUDES): add XML_CFLAGS to INCLUDES.
15522         * configure.in: update version number.
15524 2000-08-01  James Henstridge  <james@daa.com.au>
15526         * app/commands.c (help_about_callback): add Hans to about dialog.
15528         * doc/shape.dtd: dtd for shape file format.
15530         * doc/custom-shapes: update doc file about creating custom shapes.
15532         * shapes/*/*.shape: change namespace URI for the SVG portion to the
15533         one for the latest draft.
15535         * shapes/*/*.shape: fix up rect definitions.
15537         * objects/custom/shape_info.c (load_shape_info): recognise newer
15538         namespace tag for SVG.
15539         (parse_svg_node): the rect element should take attributes x, y, width
15540         and height -- not x1,y1,x2,y2.
15542         * plug-ins/svg/render_svg.c (new_svg_renderer): updated doctype
15543         output to use the newest draft DTD.
15545         * plug-ins/svg/svg.c: initialisation code for plugin.
15547         * plug-ins/svg/render_svg.c: move svg export code to a plugin.
15549         * plug-ins/svg/Makefile.am: makefile for svg plugin.
15551         * app/app_procs.c (internal_plugin_init): don't register the svg
15552         export filter here.
15554         * app/Makefile.am (dia_core_files): don't compile in render_svg.[ch]
15556 2000-07-31  James Henstridge  <james@daa.com.au>
15558         * objects/standard/textobj.c (textobj_get_defaults): 
15559         * objects/standard/polygon.c (polygon_get_defaults): 
15560         * objects/standard/image.c (image_get_defaults): 
15561         * objects/standard/ellipse.c (ellipse_get_defaults): 
15562         * objects/standard/box.c (box_get_defaults): 
15563         * objects/standard/beziergon.c (beziergon_get_defaults): 
15564         * objects/flowchart/parallelogram.c (pgram_get_defaults): 
15565         * objects/flowchart/ellipse.c (ellipse_get_defaults): 
15566         * objects/flowchart/diamond.c (diamond_get_defaults): 
15567         * objects/flowchart/box.c (box_get_defaults): 
15568         * objects/custom/custom_object.c (custom_get_defaults): 
15569         * objects/FS/flow.c (flow_get_defaults): 
15570         * objects/FS/flow-poly.c (flow_get_defaults): 
15571         * objects/FS/flow-ortho.c (orthflow_get_defaults): ref and sink the
15572         defaults widget.
15574         * app/defaults.c (defaults_show): don't keep on ref'ing the defaults
15575         widgets for various object types.
15576         (create_dialog): ref and sink the no_defaults_dialog.
15578         * app/preferences.c (prefs_create_dialog): change
15579         gtk_container_border_width call to gtk_container_set_border_width.
15581 2000-07-29  James Henstridge  <james@daa.com.au>
15583         * app/commands.c (view_aa_callback): show a warning dialog if
15584         you start AA mode.
15586         * app/interface.c (fill_sheet_menu): don't add a menu item for
15587         empty sheets.
15589 2000-07-26  James Henstridge  <james@daa.com.au>
15591         * plug-ins/dxf/dxf-export.c: updates from Steffen to fix bug #18677
15593         * app/menus.c: remove edit grid menu item.
15595         * app/commands.[ch] (view_edit_grid_callback): removed.
15597         * app/display.c (new_display): don't initialise removed Grid members.
15599         * app/grid.c: remove unused functions.
15601         * app/grid.h: remove dialog related stuff from Grid structure.
15602         Remove prototypes for dialog functions.
15604         * app/menus.c: add to menus
15605         
15606         * app/commands.[ch] (view_diagram_properties_callback): new command
15607         for showing the diagram properties dialog.
15609         * app/dia-props.[ch]: a new diagram properties dialog.  To replace
15610         the edit grid dialog.
15612 2000-07-25  James Henstridge  <james@daa.com.au>
15614         * app/grid.c (grid_x_update): 
15615         (grid_y_update): as the grid setting is stored with the diagram,
15616         update all displays when a change is made.
15618         * app/modify_tool.c (modify_motion): use new snap_to_grid sig.
15620         * app/create_object.c (create_object_button_press): 
15621         (create_object_motion): use new snap_to_grid signature.
15623         * app/grid.c (grid_draw): use the grid settings in the DiagramData,
15624         and handle invisible grid lines.
15625         (snap_to_grid): use new grid settings.  Also changed signature to
15626         take a DDisplay rather than Grid pointer.
15627         (grid_show_dialog): get the defaults from the correct place.
15629         * app/display.c (new_display): do not set ddisp->grid.width_[xy].
15631         * app/diagram.c (new_diagram): set the grid size defaults from the
15632         user preferences.
15634         * app/load_save.c (diagram_data_save): save grid and guide info to
15635         diagram file.
15636         (diagram_data_load): add guide and grid load support.
15638         * lib/diagramdata.c (new_diagram_data): set the new DiagramData
15639         members.
15641         * lib/diagramdata.h: add members to DiagramData for grid and guide
15642         settings.
15644         * configure.in (BONOBO_LIBS): update configure scripts
15646         * app/dia.oafinfo: oafinfo file for dia embeddables.
15648         * app/dia_embedd.c: add OAF support.
15650 2000-07-24  James Henstridge  <james@daa.com.au>
15652         * plug-ins/wpg/Makefile.am: 
15653         * plug-ins/pstricks/Makefile.am: 
15654         * plug-ins/hpgl/Makefile.am: 
15655         * plug-ins/dxf/Makefile.am: same here.
15657         * plug-ins/cgm/Makefile.am: remove LIBADD.  Dia already links with
15658         the required libraries, and the link line was causing libtool not
15659         to build a shared library on some systems :(
15661         * plug-ins/cgm/cgm.c (write_real): the initial if statement should
15662         be checking x, not n.
15664 2000-07-23  James Henstridge  <james@daa.com.au>
15666         * app/preferences.c (prefs_data): set the "reset tools after
15667         create" preference to true by default.  That seems to be what most
15668         people expect.
15670         * app/interface.c (create_sheets): instead of a notebook, use an
15671         option menu that updates the sheet tools.  The notebook tabs were
15672         getting a bit unwieldly, so the option menu should fix that.  This
15673         also reduces the number of widgets in the tools radio button
15674         group, which should make the UI a little more responsive.
15676 2000-07-19  Fatih Demir <kabalak@gmx.net>
15677         
15678         * configure.in: Added tr to ALL_LINGUAS.
15679                 [ Yeah, we're now having a Turkish translation,
15680                    too. ]
15681         
15682         * dia.desktop: Added the Turkish entries.
15684 2000-07-02  Fredrik Hallenberg  <hallon@lysator.liu.se>
15686         * doc/diagram.dtd: changed string-element so it conforms to the
15687         output from dia.
15689 2000-06-30  Fredrik Hallenberg  <hallon@lysator.liu.se>
15691         * configure.in: added chinese. 
15692         Use AM_PROG_LIBTOOL instead of AC_PROG_LIBTOOL.
15694         * app/app_procs.c:
15695           app/load_save.c:
15696           app/render_svg.c:
15697           lib/dia_xml.c:
15698           lib/plug-ins.c:
15699           lib/sheet.c:
15700           objects/custom/shape_info.c: 
15701           shapes/Circuit/npn.shape:
15702           shapes/Circuit/pnp.shape:
15703           sheets/*.sheet: dia now works with libxml2.
15704         Libxml2 is a bit more picky when parsing xml and reported errors on all 
15705         sheet files because they use non ascii characters (added 
15706         encoding="iso-8859-1"). Also "xml:lang=en@layman" is not proper xml so 
15707         I commented out these.
15709 2000-06-30  Christopher R. Gabriel  <cgabriel@linux.it>
15711         * configure.in (ALL_LINGUAS): added Italian
15713 2000-06-27  Sung-Hyun Nam  <namsh@lgic.co.kr>
15715         * configure.in (ALL_LINGUAS): added Korean
15717 2000-06-25  James Henstridge  <james@daa.com.au>
15719         * objects/flowchart/parallelogram.c (pgram_create): use default font
15720         and add properties interface support.
15722         * objects/flowchart/ellipse.c (ellipse_create): use default font and
15723         add properties interface support.
15725         * objects/flowchart/diamond.c (diamond_create): use default font and
15726         add properties interface code.
15728         * objects/flowchart/box.c (box_create): use default font.
15730         * objects/custom/custom_object.c (custom_create): use default font
15731         here too.
15733         * objects/standard/textobj.c (textobj_create): update to use default
15734         font.
15736         * lib/attributes.c: add implementations.
15738         * lib/attributes.h (attributes_[gs]et_default_font): add function
15739         prototypes for setting/getting a default font.
15741 2000-06-24  James Henstridge  <james@daa.com.au>
15743         * app/paginate_gnomeprint.h: updated prototype.
15745         * app/paginate_gnomeprint.c (paginate_gnomeprint): update to use
15746         diagram page settings.
15748         * objects/standard/beziergon.c (beziergon_copy): same here.
15750         * objects/standard/polygon.c (polygon_copy): copy the fill colour
15751         as well.
15753         * app/undo.h: 
15754         * app/tool.h (tool_options_dialog_show): 
15755         * app/scroll_tool.h (free_scroll_tool): 
15756         * app/render_svg.h: 
15757         * app/render_libart.h (renderer_libart_copy_to_window): 
15758         * app/render_gdk.h (renderer_gdk_copy_to_window): 
15759         * app/properties.h (properties_hide_if_shown): 
15760         * app/preferences.h (prefs_load): 
15761         * app/object_ops.h: 
15762         * app/modify_tool.h (free_modify_tool): 
15763         * app/magnify.h (free_magnify_tool): 
15764         * app/linewidth_area.h (linewidth_area_create): 
15765         * app/layer_dialog.h: 
15766         * app/handle_ops.h (handle_is_clicked): 
15767         * app/group.h: 
15768         * app/grid.h (grid_destroy_dialog): 
15769         * app/defaults.h (defaults_show): 
15770         * app/cut_n_paste.h (cnp_exist_stored_objects): 
15771         * app/create_object.h (free_create_object_tool): 
15772         * app/connectionpoint_ops.h (diagram_unconnect_selected): 
15773         * app/commands.h: 
15774         * app/color_area.h (color_area_create): 
15775         * app/app_procs.h (app_is_embedded): remove extern keyword from
15776         function prototypes.
15778         * lib/text.h: 
15779         * lib/sheet.h (load_all_sheets): 
15780         * lib/render_store.h: 
15781         * lib/render_object.h (render_object_load): 
15782         * lib/polyshape.h (polyshape_closest_segment): 
15783         * lib/poly_conn.h (polyconn_closest_segment): 
15784         * lib/orth_conn.h: 
15785         * lib/object.h: 
15786         * lib/objchange.h (new_object_state_change): 
15787         * lib/neworth_conn.h (neworthconn_add_segment): 
15788         * lib/message.h (message_error): 
15789         * lib/lazyprops.h: 
15790         * lib/geometry.h: 
15791         * lib/font.h (font_descent): 
15792         * lib/focus.h (remove_focus): 
15793         * lib/element.h: 
15794         * lib/diagramdata.h: 
15795         * lib/dia_xml.h (data_add_composite): 
15796         * lib/dia_image.h: 
15797         * lib/connpoint_line.h: 
15798         * lib/connection.h (connection_move_handle): 
15799         * lib/color.h: 
15800         * lib/attributes.h (attributes_set_default_line_style): 
15801         * lib/arrows.h (arrow_draw): remove extern keyword from function
15802         definitions.  It is not required for functions.
15804         * plug-ins/dxf/Makefile.am (INCLUDES): 
15805         * plug-ins/pstricks/Makefile.am (INCLUDES): 
15806         * plug-ins/cgm/Makefile.am (INCLUDES): 
15807         * objects/SADT/Makefile.am (INCLUDES): 
15808         * objects/chronogram/Makefile.am (INCLUDES): 
15809         * objects/GRAFCET/Makefile.am (INCLUDES): 
15810         * objects/flowchart/Makefile.am (INCLUDES): 
15811         * objects/sybase/Makefile.am (INCLUDES): 
15812         * objects/FS/Makefile.am (INCLUDES): 
15813         * objects/standard/Makefile.am (INCLUDES): 
15814         * objects/network/Makefile.am (INCLUDES):
15815         * objects/UML/Makefile.am (INCLUDES): same here.
15817         * objects/ER/Makefile.am: changed inclusion of some macros to
15818         variables.
15820         * lib/plug-ins.c (dia_register_plugins_in_dir): use a few defines to
15821         handle the plug in extension, rather than have all the #ifdef's in
15822         the code.
15824         * plug-ins/Makefile.am: add renderer.inc to dist.
15826         * plug-ins/dxf/dxf-import.c: Updates from Steffen Macke.
15828 2000-06-11  Asbjorn Pettersen  <asbjornP@dualog.no>
15830         * lib/plug-ins.c: Handle OS/2 dll's too.
15832 2000-06-07  James Henstridge  <james@daa.com.au>
15834         * app/plugin-manager.c (get_plugin_manager): set some table
15835         packing options to make it look a little nicer.
15837         * plug-ins/hpgl/Makefile.am, plug-ins/wpg/Makefile.am: added
15838         makefiles for these plug-ins.
15840         * plug-ins/{hpgl,wmf,wpg}/*: removed dos style cariage returns.
15842         * configure.in: added hpgl and wpg directories to build.  Added
15843         note about whether gnome-print support was enabled, and noted that
15844         it is not recommended.
15846 2000-06-06  James Henstridge  <james@daa.com.au>
15848         * plug-ins/{hpgl,wmf,wpg}/*: Hans Breuer's plug-ins.  They still need
15849         a little work, but I am checking them in so I don't lose them.
15851 2000-06-01  James Henstridge  <james@daa.com.au>
15853         * objects/standard/arc.c: added extra properties.
15855         * lib/beziershape.c (beziershape_closest_handle): fix a bug where I
15856         was using the wrong index into the handles array.  This gets corner
15857         type changing working correctly.
15859         * lib/properties.[ch]: add support for BezPoint's and BezPoint arrays
15860         to properties code (no editing or loading yet though).  Also added
15861         support for point array manipulation through the offsets interfaces.
15863         * lib/Makefile.am (INCLUDES): added include of gdk-pixbuf 
15865         * app/interface.c (origin_button_press): changes so the origin
15866         button doesn't grab the pointer when we pop up the menu.
15868         * app/commands.c (help_about_callback): fix small memory leak in
15869         about box code.
15871         * app/menus.c (menus_init): fixed breakage I introduced in the non
15872         gnome menus when I was doing the menu changes.  The tearoffs work
15873         really nicely in plain gtk mode as well.
15875         * objects/standard/beziergon.c (beziergon_create): changed the
15876         returned handles to match the handle numbering changes.  Now
15877         segment addition and removal works correctly with undo!
15879         * lib/beziershape.c: various changes to the code.  Changed the
15880         numbering of handles, and fixed the segment removal code.
15882 2000-05-31  James Henstridge  <james@daa.com.au>
15884         * objects/standard/beziergon.c: remove connection point handling.
15885         There is still a bit of work to be done to get adding and removing
15886         of segments working correctly.
15888         * lib/beziershape.c: add connection point handling to beziershape.
15889         I set it for two connection points per segment.
15891 2000-05-30  James Henstridge  <james@daa.com.au>
15893         * objects/standard/polygon.c: don't do connectionpoint handling.
15895         * lib/polyshape.c: changed to handle connection points internally.
15896         Also, don't worry about connections to handles on polyshape, as
15897         all handles are non connectable.
15899 2000-05-30 Ville Hautamaki <villeh@cs.joensuu.fi>
15901         * configure.in: Added finnish
15902         
15903 2000-05-30  James Henstridge  <james@daa.com.au>
15905         * sheets/*.sheet: translation updates to the .sheet files.
15907         * po/fr.po: updated po file from Christophe Merlet.
15909         * menus.h: removed prototypes for functions which have been removed.
15911 2000-05-29  James Henstridge  <james@daa.com.au>
15913         * app/layer_dialog.c (layer_dialog_set_diagram): set the selected
15914         item in the option menu when changing selected diagram.
15916         * app/dia_embedd.c (view_factory): fix up function to work with new
15917         menus API.
15919         * app/disp_callbacks.c (ddisplay_realize): remove call to
15920         display_set_active from here.
15921         (ddisplay_canvas_events): move call here.  This gets rid of all the
15922         warnings, as the renderer has been fully set up correctly at this
15923         point.
15925         * app/menus.c (menus_init): add the tearoff item to the start of the
15926         right click menu.
15928         * app/app_procs.c (create_user_dirs): we don't need to create the
15929         menus directory anymore.
15931         * app/disp_callbacks.c (ddisplay_popup_menu): it should not be
15932         necessary to update the menu state here, as it was done when the
15933         active display was set.
15935         * app/display.c (display_set_active): update the menu state when
15936         changing active displays.
15938         * app/interface.c (origin_button_press): set the display as active
15939         when a click is made on the menu button.
15941         * app/menus.c (menus_init): set up a quit function to save the accels
15942         at exit.
15943         Add tearoff items for the non GNOME menus, add accelerators for
15944         several GNOME menus.
15946         * app/disp_callbacks.c (ddisplay_popup_menu): get the menu with
15947         menus_get_image_menu().
15949         * app/menus.c (menus_get_item_from_path): use display_menus here
15950         rather than ddisp->popup.
15952         * app/display.h: remove the popup member in the DDisplay structure.
15954         * app/interface.c: remove option of not using wrap box.
15955         (create_toolbox): change to always use menus_get_toolbox_menubar
15956         even when using gnome menus.
15957         (create_display_shell): use menus_get_image_menu to load accelerators
15958         only -- not the actual popup menu.
15960         * app/menus.c (menus_init): new function to create the menus.
15961         (menus_get_toolbox_menubar): use this function whether gnome is
15962         in use or not.  Changed to use menus_init.
15963         (menus_get_image_menu): same here.  Also, now this function always
15964         returns the same menu, rather than a new one each time.
15965         (menus_init): read a menurc file to load accelerators here.
15967 2000-05-28  James Henstridge  <james@daa.com.au>
15969         * app/display.c (ddisplay_really_destroy): unset active display if
15970         active display is destroyed.
15971         (ddisplay_active): simplify function to return active_display as set
15972         by display_set_active.  This allows using a pinned menu with any
15973         display -- not just the one it was popped up from.
15974         (display_set_active): notify the layer dialog of change of diagrams
15975         when active diagram changes.
15977         * app/disp_callbacks.c (ddisplay_canvas_events): set active display
15978         on button and key presses.
15979         (ddisplay_realize): set active display on realize.
15981         * app/display.c (display_set_active): simple implementation of this
15982         function.
15984         * app/display.h (display_set_active): add prototype for setting
15985         the active display.
15987         * app/interface.c (create_display_shell): don't give focus to the
15988         menu button.
15990         * app/menus.c: fix up menus for Beziergon.
15992         * app/interface.c (create_display_shell): make the widget in the
15993         top left corner a button that can be used to pop up the right click
15994         menu, like in gimp and sketch.
15996         * app/disp_callbacks.c (ddisplay_popup_menu): new function to popup
15997         the display menu.
15999         * objects/standard/beziergon.c (beziergon_set_corner_type_callback):
16000         add code to set corner types for beziergon.
16002         * lib/beziershape.c (beziershape_set_corner_type): fix up corner type
16003         setting code.
16004         (beziershape_move_handle): use the previous corner type for right
16005         controls.
16007         * app/interface.c (tool_data): add beziergon to toolbox.
16009         * objects/standard/standard.c (dia_plugin_init): initialise the new
16010         Beziergon object type.
16012         * objects/standard/beziergon.c: an object based on BezierShape.
16014         * lib/dummy_dep.h (dummy_dep): added to dummy_dep.
16016         * lib/beziershape.[ch]: new files implementing a bezier shape.
16018 2000-05-26  James Henstridge  <james@daa.com.au>
16020         * lib/text.c (text_key_event): handle multibyte inserts.
16021         (text_key_event): also add home and end keybindings.
16023         * app/interface.c (create_display_shell): connect handlers for
16024         focus_in_event, focus_out_event, realize and unrealize signals.
16026         * app/display.[ch] (new_display): initialise input context members.
16028         * app/disp_callbacks.[ch]: added XIM support here.
16030         * lib/font.c (suck_font): the black and white pixel values should be
16031         taken from a 1 bit colormap rather than the default colormap.
16033         Hans Breuer's Windows patches ...
16035         * lib/font.c: use Courier New for fixed width font on windows
16036         machines.
16038         * lib/dia_image.h: change to "struct _DiaImage".
16040         * lib/dia_image.c: change "struct DiaImage" to "struct _DiaImage"
16042         * app/disp_callbacks.c (ddisplay_canvas_events): allow ctrl+right
16043         mouse button for object menu.  This will make two button mouse owners
16044         happier.
16046 2000-05-25  James Henstridge  <james@daa.com.au>
16048         * app/filedlg.c (file_open_ok_callback): use diagram_load here.
16050         * app/app_procs.c (app_init): add extra NULL argument to call of
16051         diagram_load.
16053         * app/load_save.h: remove prototype.
16055         * app/load_save.c: remove diagram_data function here.
16057         * app/diagram.h: added prototype.
16059         * app/diagram.c (diagram_load): new function here, which uses import
16060         filters.
16062         * plug-ins/dxf/dxf.c: register the import filter as well.
16064         * plug-ins/dxf/dxf-import.c: added (unfinished) DXF import filter from
16065         Steffen Macke <macke@heini.fbbwu.fh-lueneburg.de>
16067         * objects/standard/line.c: add start_point and end_point properties
16068         to standard line object.
16070 2000-05-21  James Henstridge  <james@daa.com.au>
16072         * app/paginate_psprint.c: added missing include of locale.h.
16074         * objects/custom/custom_object.c (custom_draw): use fabs rather than
16075         abs for scaling factors.
16076         (custom_distance_from): same here.
16078         * dia.spec: make sure rpm doesn't bomb out when LINGUAS isn't set.
16080 2000-05-18  James Henstridge  <james@daa.com.au>
16082         * po/POTFILES.in: updated POTFILES.in.
16084         * dia.spec: incremented version number in spec file.
16086         * NEWS: added (lots of) news items for the 0.85 release.
16088         * app/preferences.c (prefs_save): set LC_NUMERIC to C while writing
16089         the config file.
16091         * configure.in: updated version number here.
16093         * app/Makefile.am (run_dia.sh): include plug-ins in the lib path.
16095 2000-05-17  James Henstridge  <james@daa.com.au>
16097         * app/app_procs.c (internal_plugin_init): register the native import
16098         filter.
16100         * app/load_save.c (diagram_data_load, diagram_load): split this
16101         function into two -- one that does all the work on the DiagramData
16102         structure, and the other that provides compatibility with the old
16103         function.
16104         (dia_import_filter): use diagram_data_load to define an import
16105         filter.
16107         * app/diagram.h (new_diagram): added const to prototype.
16109         * app/filedlg.c (file_open_callback): change to use new import filter
16110         code.
16112         * lib/filter.c: added import filter management functions.
16114         * lib/filter.h: added prototypes for import filter interface.
16116         * app/commands.c (help_about_callback): updated about dialog to
16117         contain a few more names.
16119 2000-05-16  James Henstridge  <james@daa.com.au>
16121         * configure.in (Configuration): added a status message to the end of
16122         the configure script to give the user some idea of what was
16123         configured.
16125         * plug-ins/dxf/Makefile.am: Makefile for new plugin.
16127         * plug-ins/dxf/dxf.c (dia_plugin_init): added file to initialise the
16128         plugin.
16130         * plug-ins/dxf/dxf-export.c: new file -- Steffen Macke's DXF export
16131         filter for dia.
16133         * configure.in (AM_PATH_LIBART): use the check function provided
16134         with libart rather than our own code.  It is more reliable, and
16135         it only requires that people who build out of CVS have libart.m4
16136         installed (not necessarily all of libart).
16137         (AM_PATH_GDK_PIXBUF): same here for gdk-pixbuf.
16139 2000-05-12  Andreas Hyden  <a.hyden@cyberpoint.se>
16141         * dia.desktop: Added Swedish translation.
16143 2000-05-09  James Henstridge  <james@daa.com.au>
16145         * lib/dia_xml.c: you can't free a const pointer, so remove const
16146         from variable definitions.
16148         Explicitely set LC_NUMERIC where needed, as sometimes it isn't
16149         initialised correctly.
16151         * app/render_svg.c (export_svg): set locale to C.
16153         * app/paginate_psprint.c (paginate_psprint): set locale to C.
16155         * app/render_eps.c (export_eps): set locale to C for EPS export.
16157         * lib/dia_xml.c (data_add_real): change to C locale for snprintf call.
16158         (data_add_point): same here.
16159         (data_add_rectangle): same here.
16160         (data_real): use g_strtod to convert strings to real numbers, so that
16161         locales are taken into account.
16162         (data_point): same here.
16163         (data_rectangle): same here.
16165         * AUTHORS: added Henk and Jacek to authors file.
16167         Daniel Egger's code cleanups.
16169         * app/select.c (select_invert_callback): remove unused variable.
16171         * app/plugin-manager.c (get_plugin_manager): fix typo.
16173         * app/load_save.c (read_connections, write_objects): 
16174         (write_connections): made some functions static.
16176         * app/interface.c (toolbox_delete, toolbox_destroy): made some
16177         functions static.
16179         * app/filedlg.c (file_export_callback): remove unused variable.
16181         * app/app_procs.c: various warning fixes.
16183         Integrating Jacek Pliszka's pstricks export filter.
16185         * plug-ins/pstricks/pstricks.c: code to initialise the plugin.
16187         * plug-ins/pstricks/render_pstricks.[ch]: Jacek Pliszka's pstricks
16188         renderer (with a few small modifications by me).
16190         * plug-ins/pstricks/Makefile.am: new makefile for pstricks plug-in.
16192         * plug-ins/Makefile.am (SUBDIRS): add pstricks subdirectory.
16194 2000-05-07  Alexander Larsson  <alla@lysator.liu.se>
16196         * configure.in:
16197         * sheets/Makefile.am:
16198         * shapes/Makefile.am:
16199         * shapes/Civil/Makefile.am:
16200         * sheets/civil.sheet:
16201         * shapes/Civil/*:
16202         Added civil/hydraulic/structural engineering objects from
16203         sdteffen <macke@heini.fbbwu.fh-lueneburg.de>.
16204         
16205 2000-05-07  Alexander Larsson  <alla@lysator.liu.se>
16207         * objects/FS/flow-poly.c:
16208         * objects/FS/flow.c:
16209         Fix division by zero in point_normalize().
16210         Patch by David Thompson <dcthomp@mail.utexas.edu>
16212 2000-04-27  Lars Clausen  <lrclause@cs.uiuc.edu>
16214         * lib/arrows.c:
16215         * lib/bezier_conn.c:
16216         * lib/connpoint_line.c:
16217         Added checks for zero-length lines before calls to point_normalize.
16219 2000-04-24  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
16221         * app/preferences.c (prefs_data): Changed
16222         reversed_dragging_intersects to not make the dialog ridiculously
16223         wide.
16224         
16225 2000-04-22  James Henstridge  <james@daa.com.au>
16227         Hans's win32 patches:
16229         * app/export_png.c: include message.h
16230         * app/interface.c: include dia_dirs.h
16231         * app/linewidth_area.c: check for rint
16232         * app/main.c: include interface.h
16233         * app/paginate_psprint.c: remove unused variable.
16234         * app/preferences.c: include message.h
16235         * app/render_svg.c: include stdlib.h
16236         * app/select.c: include object_ops.h
16237         * lib/dia_dirs.c: miscelaneous fixes for win32.
16238         * lib/dia_image.c: include string.h
16239         * lib/plug-ins.c: look for .dll files rather than .la files on win32.
16240         * lib/properties.c: include stdlib.h
16241         * lib/properties.h: define extra data for standard properties as
16242         static variables on win32 (to get around dynamic linker problems).
16243         * objects/standard/polygon.c: polygon_create_change missing return
16244         statement.
16246 2000-04-18  Pablo Saratxaga <pablo@mandrakesoft.com>
16248         * configure.in (ALL_LINGUAS): added Catalan
16250 2000-04-18  James Henstridge  <james@daa.com.au>
16252         * objects/standard/bezier.c (bezierline_get_object_menu): add a
16253         separator to the object menu between the add/remove segment items
16254         and the corner type items.
16255         (bezierline_get_object_menu): add code to disable the menu item for
16256         the current corner type.  Really just a cosmetic change.
16258         * app/disp_callbacks.c (create_object_menu): handle DiaMenuItems with
16259         a NULL for the label or with no associated callback.
16261         * objects/standard/bezier.c (bezierline_menu_items): use the
16262         enumeration values rather than numeric values for the corner types.
16264         * lib/bezier_conn.[ch]: added a corner_types member to the BezierConn
16265         structure, and add code to handle it.  Also, don't save the corner
16266         types inline in the bez_points node.  The way it is conditionally
16267         including the element just feels like it will break.
16269         * lib/geometry.h (BezPoint): removed the corner_type stuff from
16270         BezPoint.  The corner type stuff is a user interface level idea rather
16271         than something required by the renderer, so should be taken care of
16272         at the object level.
16274 2000-04-17  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
16276         * configure.in: Fixed some problems with the gdk-pixbuf/imlib
16277         checks.  Weren't able to reproduce original bug, tough.
16279 2000-04-16  Cyrille Chepelov  <chepelov@calixo.net>
16281         * sheets/Electric.sheet:
16282         * sheets/Contact.sheet:
16283         * sheets/Pneumatic.sheet:
16284         * sheets/Circuit.sheet: sprayed some <br/>'s around.
16285         (added a few French translations in the last file)
16286         
16287 2000-04-16  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
16289         * lib/geometry.h: 
16290         * lib/bezier_conn.h: 
16291         * objects/standard/bezier.c: 
16292         * lib/bezier_conn.c: Support for cuspy, smooth and symmetric
16293         bezier points.  Only one minor problem known:  Menus are active
16294         for endpoints minor handles.
16295         11:28: Save and load now works, too.
16296         (bezierconn_closest_major_handle): 12:03: New function to get the
16297         non-control point handle associated with the nearest control
16298         point.  
16299         Also fixed the menu activation problem, and made remove_segment
16300         not remove the endpoint.
16302 2000-04-15  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
16304         * configure.in: Added check for gdk-pixbuf being >= 0.7.0 since
16305         new API is in use.
16307 2000-04-15  Asbjorn Pettersen  <asbjornP@dualog.no>
16309         * lib/plug-ins.c: Added <sys/types.h> and moved <fcntl.h> below
16310         <sys/stat.h>.   OS/2 patch.
16312 2000-04-15  James Henstridge  <james@daa.com.au>
16314         * objects/FS/flow-ortho.c, objects/FS/function.c: Applied David
16315         Thompson's patch that adds undo support to the function structure
16316         diagram objects.
16318 2000-04-14  James Henstridge  <james@daa.com.au>
16320         * objects/custom/custom_object.c (custom_distance_from): new
16321         implementation of distance algorithm that actually takes the
16322         display list into account when calculating the distance.  Much nicer
16323         than a simple bounding box.
16325 2000-04-13  Lars Clausen  <lrclause@cs.uiuc.edu>>
16327         * lib/geometry.c (line_crosses_ray): Fixed division by zero bug
16329 2000-04-12  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
16331         * objects/standard/polygon.c: Start of polygons own changes (for
16332         connectionpoints).  Need to do seperate changes in polyshape, too,
16333         rather than reuse the bezier changes.
16335 2000-04-13  James Henstridge  <james@daa.com.au>
16337         * lib/dia_image.c (dia_image_draw): use the new enumeration values
16338         from after the gdk-pixbuf cleanup.
16340         * lib/geometry.c (bez_point_distance_and_ray_crosses): fix up limit
16341         on for loop.  Last set of coefficients were not beeing calculated,
16342         which caused a bit of breakage.
16344         * lib/bezier_conn.c (bezierconn_closest_segment): use the new
16345         functions in geometry.c for calculating the closest segment.
16346         (bezierconn_distance_from): use distance_bez_line_point to calculate
16347         the distance.
16349         * lib/geometry.c (distance_bez_line_point): new function to calculate
16350         the distance from an open bezier line to a point.
16351         (distance_bez_shape_point): new function to calculate the distance
16352         from a closed bezier shape.
16353         (distance_ellipse_point): new function to calculate the distance from
16354         a filled ellipse to a point.
16356         * lib/geometry.h (BezPoint): moved this structure here from render.h
16358 2000-04-12  James Henstridge  <james@daa.com.au>
16360         * lib/geometry.c (distance_bez_seg_point): new function to calculate
16361         the distance from a bezier segment.
16363         * lib/polyshape.c (polyshape_distance_from): use distance_polygon_point
16364         to calculate the distance from the object.
16366         * lib/geometry.c (distance_polygon_point): function for calculating
16367         the distance from a polygon to a point.
16369 2000-04-12  Cyrille Chepelov  <chepelov@calixo.net>
16371         * app/interface.c:
16372         * lib/sheet.[ch]: added a <br/> tag in sheet files, so that line 
16373         breaks can be inserted in the tool box. 
16375         * doc/sheet.dtd: updated the DTD
16376         * sheets/GRAFCET.sheet: tried <br/> on that sheet (more to come).
16377         
16378 2000-04-12  James Henstridge  <james@daa.com.au>
16380         * app/plugin-manager.c (get_plugin_manager): use the GTK_DIALOG
16381         macro if the dialog is a GtkDialog :(
16383 2000-04-11  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
16385         * objects/standard/polygon.c: Connectionpoints now properly
16386         managed in a GList.  As far as I can tell, this will not dieturb
16387         the order (but I have the nagging doubt...)
16389         * lib/polyshape.c: No longer knows about connectionpoints.
16391 2000-04-11  James Henstridge  <james@daa.com.au>
16393         * app/Makefile.am: fix makefile for bonobo build.
16395         * configure.in: fix checks for bonobo.
16397         * app/menus.c: added entries for the plugin manager.
16399         * app/Makefile.am (dia_core_files): added plugin manager to files
16400         list.
16402         * app/plugin-manager.[ch]: the plugin manager dialog.
16404         * app/display.c (display_update_menu_state): set the antialiased
16405         menu entry to the correct value.
16407 2000-04-11  Cyrille Chepelov  <chepelov@calixo.net>
16409         * objects/custom/custom_object.c: not all renderers like ellipses with
16410         negative dimensions. This could cause ellipses to disappear when using
16411         the flip_h and flip_v functions.
16413         * samples/grafcet.dia: fixed speling and correctness.
16414         
16415 2000-04-11  James Henstridge  <james@daa.com.au>
16417         * lib/plug-ins.[ch]: added more accessors for use by a plugins dialog.
16418         exposed the dia_plugin_load and dia_plugin_unload functions.
16420         * lib/plug-ins.c (plugin_load): change plugin_load to work on an
16421         already created PluginInfo structure.
16423         * app/app_procs.c (app_exit): call dia_pluginrc_write() to write
16424         the pluginrc file.
16426         * lib/sheet.c: fix up call to dia_config_filename.
16428         * lib/plug-ins.[ch]: started writing code for handling a pluginrc
16429         file.  This would save information such as which plugins not to
16430         load during startup.
16432 2000-04-09  James Henstridge  <james@daa.com.au>
16434         * lib/sheet.c: use dia_config_filename to resolve file in ~/.dia.
16436 2000-04-10  Alexander Larsson  <alla@lysator.liu.se>
16438         * lib/plug-ins.c (dia_register_plugins):
16439         Don't free the value returned from g_getenv.
16441 2000-04-09  Anders Carlsson  <andersca@gnu.org>
16443         * app/preferences.h: Add reverse_rubberbanding_intersects preference variable.
16445         * app/preferences.c (prefs_data): Add reverse_rubberbanding_intersects preference data.
16447         * app/modify_tool.c (modify_button_release): If rubberbanding is done from 
16448         right to left, select objects that intersect the rubberbanding rectangle
16449         instead of selecting objects that are in the rectangle.
16451         * lib/diagramdata.c (layer_find_objects_intersecting_rectangle): Add function.
16453         * lib/diagramdata.h: Likewise.
16456 2000-04-09  James Henstridge  <james@daa.com.au>
16458         * lib/plug-ins.[ch]: add copyright messages to files.
16460         * plug-ins/cgm/cgm.c (dia_plugin_init): convert plugin over to new
16461         plugin interface.
16463         * objects/sybase/sybase.c (dia_plugin_init): 
16464         * objects/network/network.c (dia_plugin_init): 
16465         * objects/flowchart/flowchart.c (dia_plugin_init): 
16466         * objects/custom/custom.c (dia_plugin_init): 
16467         * objects/chronogram/chronogram.c (dia_plugin_init): 
16468         * objects/UML/uml.c (dia_plugin_init): 
16469         * objects/SADT/sadt.c (dia_plugin_init): 
16470         * objects/GRAFCET/grafcet.c (dia_plugin_init): 
16471         * objects/FS/fs.c (dia_plugin_init): 
16472         * objects/ER/er.c (dia_plugin_init): updated plugin load code for
16473         object libraries.
16475         * objects/standard/standard.c (dia_plugin_init): change over to new
16476         plugin interface.
16478         * lib/plug-ins.h (DIA_PLUGIN_CHECK_INIT): added a macro to define
16479         the version checker for plugins.
16481         * app/app_procs.c: remove plugin loading code from here, and use
16482         code from plug-ins.[ch].  Also move registration of internal
16483         objects/filters to a `builtin' plugin.
16485         * lib/Makefile.am (libdia_a_SOURCES): added plug-ins.[ch] to library.
16487         * configure.in: use AC_PROG_LIBTOOL rather than AM_PROG_LIBTOOL.
16489         * app/Makefile.am (EXTRA_DIST): you can't include a conditionally
16490         defined variable in EXTRA_DIST.
16492         * app/preferences.h: removed dia_config_filename from header.
16494         * app/preferences.c: removed dia_config_filename function.
16496         * lib/dia_dirs.c (dia_config_filename): moved function over to this
16497         file.  Also changed implementation slightly so that it should work
16498         on the win32 port correctly (and use NT home directories).
16500         * lib/dia_dirs.h (dia_config_filename): move dia_config_filename where
16501         it should have been.
16503         * lib/plug-ins.[ch]: new plugin loading code.
16505 2000-04-08  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
16507         * objects/standard/polygon.c: Fixed startup crash bug (do'h!).
16509         * lib/polyshape.c: Fix closest segment finding, exposes deeper
16510         bugs in adding corners to 'wraparound' segment.
16512         * objects/standard/polygon.c: Added connection points (fixed so
16513         far), set menu sensitivity.
16515         * lib/polyshape.c: Changed to box-style handles, fixed for start
16516         and ends not being special, added initial connections,
16518         * lib/dummy_dep.h: Added polyshape (gotcha!)
16520         * objects/standard/pixmaps/ellipse.xpm: 
16521         * objects/standard/pixmaps/box.xpm: 
16522         Filled element pixmaps with white.
16524         * lib/polyshape.c: 
16525         * objects/standard/polygon.c: 
16526         * lib/polyshape.h: 
16527         * objects/standard/standard.c: 
16528         * objects/standard/Makefile.am (libstandard_objects_la_SOURCES): 
16529         * lib/Makefile.am (libdia_a_SOURCES): 
16530         * app/menus.c: 
16531         * app/interface.c (tool_data): 
16532         Added Standard/Polygon object and PolyShape lib object.  Still
16533         needs inside grab and connection points.
16535         * app/commands.c (help_about_callback): Now uses gdk-pixbuf if
16536         available. 
16538         * configure.in: Made imlib a fallback if gdk-pixbuf is absent or
16539         not wanted.
16541         * app/app_procs.c (app_init): Moved gtk_init outside #ifdef, moved
16542         if (argv) outside ifdefs.
16544 2000-04-04  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
16546         * objects/standard/image.c (image_set_props): 
16547         Aspect ratio is back in town.
16549         * app/Makefile.am (dia_LDADD): 
16550         * acconfig.h: 
16551         * configure.in: 
16552         Check for gdk_pixbuf (by default disabled, for now)
16554         * app/render_eps.c (draw_image): 
16555         * app/render_libart.c (draw_image): 
16556         * app/render_gnomeprint.c (draw_image): 
16557         Support for alpha mask in rendering.  Color postscript, too.
16559         * lib/dia_image.c: 
16560         * lib/dia_image.h: 
16561         Support for gdk_pixbuf and proper masking for exports.
16563 2000-04-01  Kjartan Maraas  <kmaraas@online.no>
16565         * sheets/*.sheets: Updated Norwegian translations.
16566         
16567 2000-03-30  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
16569         * lib/text.c (text_insert_char): 
16570         * lib/render_store.c (add_data): 
16571         Made realloc double the alloced space rather than add
16572         a fixed amount, to reduce memory stress.
16574         * app/select.c: Added new select method 'Transitive'
16575         that select every reachable (by connections) object.
16577 2000-03-27  Kjartan Maraas  <kmaraas@online.no>
16579         * dia.desktop: Added Norwegian translation.
16580         
16581 2000-03-26  Alexander Larsson  <alla@lysator.liu.se>
16583         * app/render_eps.c:
16584         * app/render_svg.c:
16585         Don't dereference NULL pointer if the renderer
16586         couldn't open the file. Fix by Lars Clausen.
16587         Bug reported by Martin Chisholm <b1mt@unb.ca>
16588         
16589 2000-03-26  Alexander Larsson  <alla@lysator.liu.se>
16591         * dia.desktop:
16592         * po/pt.po:
16593         Updated pt translation from Pedro Morais <pmmm@rnl.ist.utl.pt>
16595 2000-03-25  Alexander Larsson  <alla@lysator.liu.se>
16597         * app/dia.gnorba (location_info):
16598         Changed to correct executable name.
16600 2000-03-25  Alexander Larsson  <alla@lysator.liu.se>
16602         * app/app_procs.c:
16603         Don't do any argument parsing or initialization
16604         if argv==NULL.
16606         * app/dia_embedd.c:
16607         Call init_server_factroy before app_init.
16608         Call app_init with argv==NULL
16609         Now we don't get any critical error on startup.
16611         * configure.in:
16612         Add Electric and Pneumatic to makefile list.
16613         
16614 2000-03-24  Cyrille Chepelov <chepelov@calixo.net>
16616         * shapes/Electric/*:
16617         * sheets/Electric.sheet:
16618         Add some Electric circuit shapes.
16620         * shapes/Pneumatic/*:
16621         * sheets/Pneumatic.sheet:
16622         Add some Pneumatic & Hydraulic circuit shapes
16623         (both sheets are still incomplete, though feature enough 
16624         things for basic circuits).
16626         * shapes/Contact/l_*.(xpm|shape):
16627         * sheets/Contact.sheet
16628         * shapes/Contact/Makefile.am
16629         made the older electric circuit shapes in Contact obsolete (disabled
16630         them in the sheet, made that sheet Ladder only). Fixed the makefile
16631         for forgotten items.
16632         
16633 2000-03-24  Alexander Larsson  <alla@lysator.liu.se>
16635         * app/Makefile.am:
16636         Add support for Dia bonobo component.
16637         Currently a bit raw, so it's commented out.
16638         
16639         * app/dia_embedd.c:
16640         * app/dia.gnorba:
16641         New files for embedding dia.
16642         The menu disabling hack is a bit gross. Esp. for GNOME.
16644         * app/app_procs.h:
16645         Add new function app_is_embedded();
16647         * app/diagram.c:
16648         Don't destroy diagram when last display is destroyed if embedded.
16649         
16650         * app/display.c:
16651         Change initialization of display so it works with embedding.
16653         * app/display.h:
16654         Clarify comment about display destruction.
16656         * app/interface.[ch]:
16657         Added top_level_window argument to create_display_shell.
16658         Don't open a top-level window if embedding.
16659         Don't quit app if trying to close toolbox window when embedding.
16660         Add toolbox_show() and toolbox_hide().
16662         * app/main.c:
16663         Added app_is_embedded() function (just returns false).
16664         Added toolbox_show() call in main().
16666         * app/menus.c:
16667         Added code for getting toolbox menus. This is used to
16668         hide some menu items when running embedded.
16669         
16670         * app/app_procs.c:
16671         Include sheet.h to remove warning.
16673         * objects/UML/association.c:
16674         Clarify association direction text.
16675         
16676 2000-03-16  Fredrik Hallenberg  <hallon@lysator.liu.se>
16678         * dia.1
16679         Fixed man page so whatis parsing works.
16681 2000-03-12  Alexander Larsson  <alla@lysator.liu.se>
16683         * app/render_libart.c (new_libart_renderer):
16684         Fix from segg <segg@infonet.ca> to compile without libart.
16685         I forgot to change the stub for new_libart_renderer when doing
16686         the interactive renderer stuff for libart.
16688 2000-03-11  Alastair McKinstry  <mckinstry@computer.org>
16690         * dia.desktop: Added Irish translation.
16691         
16692         * configure.in (ALL_LINGUAS): Added Irish (ga) translation.
16694 2000-03-07  Asbjorn Pettersen  <asbjornP@dualog.no>
16696         * app/load_save.c (fchmod): OS/2 defines only.
16698 2000-03-07  James Henstridge  <james@daa.com.au>
16700         * lib/properties.c (prop_get_widget): set the position in the option
16701         menu correctly.
16703 2000-03-06  Alexander Larsson  <alla@lysator.liu.se>
16705         * app/display.c:
16706         * app/export_png.c:
16707         * app/render_libart.[ch]:
16708         Don't export png:s with an interactive libart renderer.
16710 2000-03-03  Asbjorn Pettersen  <asbjornP@dualog.no>
16712         * lib/arrows.c (finite): define finite(d) isfinite(d)  for OS/2
16714 2000-03-02  James Henstridge  <james@daa.com.au>
16716         * dia.spec (%build): unset LINGUAS before running configure.  This
16717         ensures that all translations get included in the RPM.
16719         * lib/properties.c (object_create_props_dialog): put in a check for
16720         a NULL return from the describe_props() object method.
16721         (prop_desc_lists_union): make sure that the returned array is not
16722         NULL.
16723         (prop_desc_lists_intersection): same here.
16725 2000-02-29  Alexander Larsson  <alla@lysator.liu.se>
16727         * objects/ER/Makefile.am:
16728         * objects/FS/Makefile.am:
16729         * objects/UML/Makefile.am:
16730         Don't link object libs with gtk.
16732 2000-02-29  James Henstridge  <james@daa.com.au>
16734         * app/preferences.c (prefs_save): check to see if the file could
16735         be opened before writing the prefs.
16737         * app/disp_callbacks.c (popup_object_menu): pass the button event
16738         to gtk_menu_popup.  This allows you to click and release to open
16739         the object menu.
16740         (ddisplay_canvas_events): same here.
16741         (create_object_menu): set the object type menu item in the object
16742         menu to be insensitive.
16744         * app/render_svg.c (draw_string): call xmlEncodeEntitiesReentrant,
16745         as we are now requiring a new version of libxml.
16747         * dia.spec: updated version number.  Added requirement for
16748         libxml >= 1.8.5
16750         * configure.in: incremented version number to 0.84.
16751         Added check for libxml >= 1.8.5.  This will prevent some of the
16752         problems people have had with broken libxml versions.
16754         * NEWS: added news items.
16756         * app/interface.c (create_color_area): removed call to realize parent
16757         widget.  Segg <segg@infonet.ca> reported that it caused a warning,
16758         but I haven't seen it on my copy of dia.
16760 2000-02-28  James Henstridge  <james@daa.com.au>
16762         * app/export_png.c: added copyright notice, and made the band height
16763         a constant.
16765 2000-02-27  Alexander Larsson  <alla@lysator.liu.se>
16767         * lib/font.c (suck_font):
16768         Fixed off-by one bug in font pixmap height.
16769         Fixes the problem with garbage at the bottom of some text in aa mode
16770         and in png exported files.
16772 2000-02-27  James Henstridge  <james@daa.com.au>
16774         * app/app_procs.c: add the png export filter if it was compiled in.
16776         * app/export_png.c (export_png): new PNG export filter.  This requires
16777         the libart renderer to work as it needs a renderer that renders to a
16778         pixel buffer.
16780         * configure.in: add check for libpng.
16782         * lib/message.c (message_internal): use a GNOME dialog here as well.
16784         * app/display.c (ddisplay_close): use a GNOME dialog here.
16786         * app/render_eps.c (create_eps_renderer): use diagram scaling factor
16787         when exporting to EPS.  This is because some people said the EPS
16788         output was too large
16790 2000-02-26  James Henstridge  <james@daa.com.au>
16792         * app/defaults.c (create_dialog): use a GNOME dialog for the defaults
16793         window.
16795         * app/app_procs.c (app_exit): use a GNOME dialog here.
16797         * app/preferences.c (prefs_create_dialog): if GNOME support is
16798         enabled, show a GNOME dialog.
16800         * app/grid.c (grid_draw): use preferences when drawing page break
16801         lines.
16803         * app/preferences.c: add page break preferences to dialog.
16805         * app/preferences.h: added page break preferences.
16807 2000-02-25  James Henstridge  <james@daa.com.au>
16809         * sheets/UML.sheet: added new objects.
16811         * objects/UML/uml.c: link in the two new objects.
16813         * objects/UML/node.c: 
16814         * objects/UML/branch.c: new UML objects from Stfan Seefeld
16815         <seefelds@magellan.umontreal.ca>.
16817 2000-02-24  James Henstridge  <james@daa.com.au>
16819         * objects/custom/custom_object.c: converted to use the properties
16820         interface.  In the future, it would be nice to add support for
16821         defining custom properties for custom objects, but that can wait.
16823 2000-02-22  James Henstridge  <james@daa.com.au>
16825         * sheets/Circuit.sheet: added new circuit shapes to sheet.
16827         * plug-ins/cgm/cgm.c: cgm plugin updates from Henk Jan Priester
16828         <hj@justcroft.com>.  Fixes number encoding, colour encoding, fonts
16829         and adds a few new features.
16831 2000-02-21  Daniel Egger  <egger@suse.de>
16833         * sheets/*.sheets: Added German translations and made some
16834         corrections to the others.
16835         
16836 2000-02-21  James Henstridge  <james@daa.com.au>
16838         * shapes/Circuit/Makefile.am (SHAPES): added new shapes to list.
16840         * shapes/Circuit/...: added new shapes from Erik Janssens.
16842 2000-02-20  James Henstridge  <james@daa.com.au>
16844         * app/interface.c (create_color_area): realize the parent window
16845         first.
16847         * objects/standard/image.c: properties patch for standard image
16848         object, from Lars Clausen.
16850         * lib/properties.c: support for PROP_TYPE_FILE from Lars Clausen.
16852         * lib/properties.h (PropType): added file property type.
16854         * shapes/Circuit/speaker_de.xpm: changed size of pixmap to match
16855         other shapes.
16857         * app/interface.c: use wrap box for toolbox.
16859         * app/Makefile.am: added new files.
16861         * app/gtk*wrapbox.[ch]: added wrap box widget.
16863 2000-02-19  James Henstridge  <james@daa.com.au>
16865         * sheets/network.sheet: added extra shapes to networks sheet.
16867         * configure.in (AC_OUTPUT): added shapes/network/Makefile
16869         * shapes/network/*: added shapes that were posted to the list a while
16870         back.
16871         
16872         * shapes/Makefile.am (SUBDIRS): added network subdirectory
16874         * app/menus.c (toolbox_menu_items): don't right justify help menu for
16875         gtk+ version of menus.
16877         * app/properties.c (create_dialog): use a GnomeDialog if we happen
16878         to be using gnome.
16880 2000-02-18  James Henstridge  <james@daa.com.au>
16882         * objects/flowchart/box.c: set extra data for corner radius and text
16883         padding properties.
16885         * objects/standard/box.c: set extra data for corner radius property.
16887         * lib/properties.h: set extra data in some standard properties.
16889         * lib/properties.c (prop_get_widget): look at the extra data for
16890         int, real and enum property types.  They now use GtkSpinButton and
16891         GtkOptionMenu respectively.
16893         * lib/properties.h: extra data members for creating property setting
16894         widgets.
16896 2000-02-17  James Henstridge  <james@daa.com.au>
16898         * objects/flowchart/box.c: reverted load/save functions back to
16899         previous implementations.  Made box use standard property names.
16901         * plug-ins/cgm/cgm.c (set_linestyle): was missing a */
16903         * app/grid.c: add more digits to the grid edit dialog.  This patch
16904         was also from Lars Clausen.
16906         * objects/standard/zigzagline.c: 
16907         * objects/standard/textobj.c:
16908         * objects/standard/polyline.c:
16909         * objects/standard/line.c:
16910         * objects/standard/ellipse.c:
16911         * objects/standard/box.c: 
16912         * objects/standard/bezier.c: 
16913         * objects/standard/arc.c: patches to add properties code to standard
16914         objects.  Based on patches from Lars Clausen.  I have also removed
16915         some dead code from the files.
16917         * lib/properties.h (PROP_STD_*): define a number of standard
16918         properties.  Where appropriate, objects should include these
16919         properties in their PropDescription list.  This way, the intersection
16920         of properties of two different shapes will be greater.
16922 2000-02-14  James Henstridge  <james@daa.com.au>
16924         * objects/flowchart/box.c (box_load, box_save): use property save
16925         routines.  Make sure that any props not handled by object_load_props
16926         are loaded before calling object_load_props, or we get errors because
16927         update_data is called.
16929         * lib/properties.c (object_get_props_from_offsets): fixed an indexing
16930         error that could cause properties to be loaded incorrectly.
16931         (object_set_props_from_offsets): similar here.
16933         * lib/properties.[ch] (prop_{load,save}): functions for loading
16934         or saving a property in Dia's XML file format.
16935         (object_{load,save}_props): load or save some properties of an
16936         object.  These functions should help simplify the load/save methods
16937         of objects that implement the properties interface.
16939 2000-02-13  James Henstridge  <james@daa.com.au>
16941         * objects/flowchart/box.c: use offset code to simplify property
16942         get/set routines.
16944         * lib/element.h (ELEMENT_COMMON_PROPERTIES): standard element
16945         properties.
16946         (ELEMENT_COMMON_PROPERTIES_OFFSETS): offsets.
16948         * lib/object.h (OBJECT_COMMON_PROPERTIES): list of standard object
16949         properties.
16950         (OBJECT_COMMON_PROPERTIES_OFFSETS): the offsets of the properties.
16952         * lib/properties.[ch] (object_{get,set}_props_from_offsets): new
16953         functions 
16955 2000-02-12  Alexander Larsson  <alla@lysator.liu.se>
16957         * app/Makefile.am:
16958         Add the custom object to DIA_LIB_PATH in run_dia.sh
16960 2000-02-10  Cyrille Chepelov  <chepelov@calixo.net>
16962         * sheets/Circuit.sheet:
16963         * shapes/l_sout* (NEW):
16964         * shapes/l_outj.* (NEW): added new outputs : jump, and the power-saved
16965         variants of simple, inverted, set and reset outputs.
16966         Still to do: all Schneider/Telemecanique TSX *7 function blocks ; 
16967         probably a split of Contact and Ladder sheets. And then a major 
16968         revamping of the Contact sheet.
16970 2000-02-10  James Henstridge  <james@daa.com.au>
16972         * app/Makefile.am (dia_LDADD): don't link with libcustom_objects.
16974         * app/app_procs.c (register_all_objects): don't explicitely
16975         register the custom objects library -- let it be loaded by the
16976         normal plugin loading methods.
16978         * lib/Makefile.am (libdia_a_SOURCES): don't include custom.h here.
16980         * objects/custom/Makefile.am: build libcustom_objects as a shared
16981         library again.
16983         * objects/custom/shape_info.[ch]: don't read the description field
16984         of custom shapes.  It makes more sense to have these in the sheet
16985         file to localise the parts of dia that translators have to deal
16986         with.
16988         * objects/custom/custom_object.c (custom_object_new): do not
16989         create the sheet object for the new custom shape -- this is
16990         handled by the custom sheet code.
16992         * objects/custom/custom.c: change over to being a normal plug-in
16993         rather than being linked with the main dia executable.
16995 2000-02-09  James Henstridge  <james@daa.com.au>
16997         * sheets/Circuit.sheet: 
16998         * sheets/Flowchart.sheet: 
16999         * sheets/Contact.sheet: fixed up sheets.
17001         * objects/custom/custom_object.c (custom_object_new): set the
17002         extra ObjectType fields.
17004         * lib/sheet.c: use extra ObjectType fields when creating sheet
17005         objects.  Give a warning if <shape> tags are found in a sheet
17006         file.  Now the custom sheet code does not know about custom
17007         shapes -- they look like any other object type.
17009         * lib/object.h (ObjectType): added extra members
17011 2000-02-08  Alexander Larsson  <alla@lysator.liu.se>
17013         * app/linewidth_area.c:
17014         Added code to set arbitrary line width.
17015         Patch by Lars Clausen <lrclause@cs.uiuc.edu>
17017 2000-02-08  Alexander Larsson  <alla@lysator.liu.se>
17019         * app/linewidth_area.c: 
17020         * lib/font.[ch]:
17021         Add support for font-sucking.
17022         Implementation borrowed from gnome-canvas.
17023         
17024         * app/render_libart.[ch]:
17025         Implement text rendering.
17027 2000-02-07  Alexander Larsson  <alla@lysator.liu.se>
17029         * app/properties.c (create_dialog):
17030         ref and sink no_properties_dialog.
17032 2000-02-07  James Henstridge  <james@daa.com.au>
17034         * app/group.c (group_describe_props): new function.  Return the
17035         intersection of the properties of the contained objects that
17036         implement the describe_props interface.
17037         (group_get_props): implement by iterating through contained objects
17038         and calling their get_props method until all properties have been
17039         set.  Maybe this should go through all objects all the time??
17040         (group_set_props): implement by calling set_props method on all
17041         contained objects.
17042         (group_ops): use standard props dialog creation routines.
17044         * lib/properties.c (prop_desc_lists_intersection): fix implementation
17045         of intersection -- I was using i++ instead of i-- in a for loop :(
17047         * objects/custom/custom.c (custom_register_objects): fix usage
17048         of dia_get_data_directory again.
17050         * lib/sheet.c: fix up use of dia_get_data_directory, so that we
17051         actually read the sheets.
17053 2000-02-06  Alexander Larsson  <alla@lysator.liu.se>
17055         Win32 port by Hans Breuer <Hans@Breuer.org>
17057         * app/Makefile.am:
17058         Remove DATADIR and LIBDIR defines.
17060         * lib/Makefile.am:
17061         Add dia_dirs.c and dia_dirs.h
17062         Added DATADIR and LIBDIR defines.
17064         * lib/dia_dirs.[ch]:
17065         New files for handling special directories.
17067         * app/app_procs.c:
17068         * app/commands.c:
17069         * lib/sheet.c:
17070         * objects/custom/custom.c:
17071         Fix warnings.  Use directory functions.
17073         * app/diagram.h:
17074         Add prototype for diagram_redraw_all.
17076         * app/diaunitspinner.c:
17077         * app/filedlg.c:
17078         * app/interface.c:
17079         * app/preferences.c:
17080         Fix warning.
17082         * app/load_save.c:
17083         Win32 doesn't have mkstemp and fchmod.
17085         * app/paginate_psprint.c:
17086         Win32 calls popen _popen and pclose _pclose.
17087         
17088         * app/arrow.c:
17089         Win32 calls finite _finite.
17091         * lib/color.h:
17092         Win32 needs to dllexport the color vars.
17094         * objects/GRAFCET/step.c:
17095         * objects/chronogram/chronoref.c:
17096         snprintf -> g_snprintf
17098 2000-02-05  James Henstridge  <james@daa.com.au>
17100         * lib/properties.c: more fixes so that it doesn't crash when using
17101         properties.  The undo/redo stuff also works!!
17103         * objects/flowchart/box.c (box_{describe, get, set}_props): test
17104         object where I have implemented the new properties interface
17105         complete with automatic properties dialog generation.
17107         * lib/properties.c (object_apply_props): fixed stupid error when
17108         creating the old_props array.  Also, it no longer frees the props
17109         array -- you will have to do that yourself.
17111 2000-02-04  James Henstridge  <james@daa.com.au>
17113         * app/properties.c (properties_apply): pass object_part to
17114         apply_properties.
17116         * lib/object.h (ApplyPropertiesFunc): added widget argument.
17118         * lib/lazyprops.h (PROPDLG_CREATE): ref and sink properties dialogs
17119         created this way as well.
17121         * objects/*/*.c: ref and sink the properties dialog window for each
17122         widget.  It can't rely on ref count being incremented by
17123         properties_show anymore.
17125         * app/properties.c (properties_show): don't ref the widget before
17126         removing it, or its ref count will increase each time you open the
17127         properties dialog.  Don't unparent the widget, as container_remove
17128         does that for us.
17130         * lib/object.h: fixed up prototypes for new object methods.
17132         * lib/properties.[ch]: added functions for automatically creating
17133         a properties dialog from the output of describe_props, get_props and
17134         set_props.
17135         (object_apply_props): apply properties and return an ObjectChange
17136         structure that can be used for undo.
17138 2000-02-03  Cyrille Chepelov  <chepelov@calixo.net>
17140         * objects/GRAFCET/transition.c: minor leak plugged.
17142         * sheets/GRAFCET.sheet:
17143         * objects/GRAFCET/pixmaps/condition.xpm: (NEW)
17144         * objects/GRAFCET/condition.c: (NEW) added a new object type, action 
17145         conditions.
17146         * objects/GRAFCET/Makefile.am: fixed incorrect dependencies, added
17147         new ones (for condition.c).
17148         * objects/GRAFCET/action.c: added connection points for the conditions.
17149         * samples/grafcet.dia: updated the sample to improve conformance to
17150         IEC 848 and take advantage of dia's new features.
17151         
17152         * lib/geometry.h: (point_get_normed) fixed a typo.
17154 2000-02-02  James Henstridge  <james@daa.com.au>
17156         * lib/object.h: added object functions describe_props, get_props and
17157         set_props.  Do type definitions so that object.h doesn't need to
17158         include properties.h, since properties.h includes object.h.
17160         * lib/properties.[ch]: more hacking.
17162         * po/de.po: updated po file.
17164 2000-01-30  James Henstridge  <james@daa.com.au>
17166         * configure.in: don't add flags to CFLAGS unconditionally.  Instead,
17167         check to see if the C compiler accepts the flag beforehand.
17169         * lib/properties.[ch]: start of properties code.
17171         * shapes/Contact/Makefile.am (SHAPES): fix up makefile.
17173 2000-01-30  Cyrille Chepelov  <chepelov@calixo.net>
17174         
17175         * sheets/GRAFCET.sheet:
17176         * sheets/GRAFCET/etapemc.xpm: (NEW)
17177         * sheets/GRAFCET/etapesp.xpm: (NEW)
17178         * objects/GRAFCET/step.c: Added the macro and
17179         sub-program call step types.
17181         * objects/GRAFCET/receptivity.[ch]: renamed to 
17182         objects/GRAFCET/boolequation.[ch]. 
17183         * objects/GRAFCET/transition.c: changed (Receptivity *) to 
17184         (BoolEquation *)
17186         * lib/connpoint_line.[ch]: 
17187         * objects/chronogram/chronoline.c:
17188         * objects/chronogram/chronoref.c:
17189         * objects/GRAFCET/vergent.c:
17190         * objects/standard/line.c:
17191         * objects/SADT/box.c: Minor CPL interface changes, factored out the
17192         point count adjustment code into the CPL object.
17193         
17194 2000-01-29  Alexander Larsson  <alla@lysator.liu.se>
17196         * app/render_libart.c:
17197         Added support for images and bezier curves.
17198         Only text/fonts missing now.
17200         * app/render_gdk.c:
17201         Removed old erronous comment.
17203 2000-01-29  Cyrille Chepelov <chepelov@calixo.net>
17205         * objects/chronogram/chronoline_event.c: removed references to
17206         lround(). Please don't insist, I'm already red of shame.
17207         
17208 2000-01-29  Alexander Larsson  <alla@lysator.liu.se>
17210         * app/render_libart.[ch]:
17211         * app/Makefile.am:
17212         Non-finished libart renderer.
17214         * acconfig.h:
17215         Added HAVE_LIBART flag
17217         * configure.in:
17218         Added libart probe
17220         * app/app_procs.c:
17221         Call gdk_rbg_init().
17223         * app/connectionpoint_ops.c:
17224         * app/disp_callbacks.c:
17225         * app/grid.c:
17226         * app/handle_ops.c:
17227         * app/magnify.c:
17228         * app/modify_tool.c:
17229         Change ddisp->renderer type from RendererGdk * to Renderer *
17230         Draw zoom and select rects in ddisp->canvas->window instead
17231         of ddisp->renderer->renderer->pixmap.
17233         * app/display.[ch]:
17234         Add aa_renderer to DDisplay, and  support for it.
17235         New function ddisplay_set_renderer() for changing renderer.
17236         Add ddisplay_transform_coords_double() function, used by aa renderer.
17237         Change ddisp->renderer type from RendererGdk * to Renderer *
17239         * app/menus.c:
17240         Add antialias to menu.
17241         
17242         * app/commands.[ch]:
17243         add view_aa_callback function
17244         Change ddisp->renderer type from RendererGdk * to Renderer *
17246         * lib/geometry.[ch]:
17247         Added IntRectangle and int_rectangle_union.
17249 2000-01-28  James Henstridge  <james@daa.com.au>
17251         * app/commands.h: removed prototypes.
17253         * app/commands.c: removed the functions that have been moved to
17254         filedlg.c.
17256         * app/filedlg.h: added new prototypes.
17258         * app/filedlg.c (file_open_callback): move open dialog to this
17259         file.  This implementation should remember the current directory
17260         between file loads.
17261         (file_save_as_callback): moved this dialog as well.
17262         (file_save_callback): moved this function here.
17264         * app/paginate_psprint.c (paginate_psprint): if not in fit to mode,
17265         align page boundaries to the origin.
17267         * app/diagram.c (diagram_update_extents): redraw the diagram if the
17268         scaling factor changes while updating the extents.  This is so the
17269         page breaks get redrawn correctly.
17271         * app/pagesetup.c (pagesetup_apply): added diagram_flush call when
17272         applying changes.
17274         * app/grid.c (grid_draw): draw page breaks as well as grid lines.
17275         For normal mode, use (0,0) as the origin.  For `fit to' mode, use
17276         the corner of the bounding box.
17278         * app/pagesetup.c (create_page_setup_dlg): load new paper attributes
17279         into page setup dialog.
17280         (pagesetup_apply): apply new `fit to' attributes to the diagram.
17282         * app/load_save.c (diagram_load): load new paper `fit to' attributes.
17283         (diagram_data_save): save `fit to' data.
17285         * lib/diagramdata.c (new_diagram_data): initialise `fit to' members.
17286         (data_update_extents): when in `fit to' mode, update scale factor
17287         when we update the extents.
17289         * lib/diagramdata.h (PaperInfo): added `fit to' members to PaperInfo
17290         structure.
17292         * .../.cvsignore: added some cvsignore files to quieten cvs.
17293         
17294         * app/pagesetup.c (pagesetup_changed): added code to change the
17295         scaling/fit to values as you change the options in the page setup
17296         dialog.  I haven't added code so that the fit to options are saved
17297         though.
17299         * app/diapagelayout.[ch]: changed the scaling portion of the widget
17300         to make it easier to set a `fit to' style scaling factor.
17302 2000-01-27 Cyrille Chepelov <chepelov@calixo.net>
17303         * lib/neworth_conn.[ch]: (NEW) Temporary (hopefully) fork of orth_conn,
17304         but connpoint_line-based, so that there's a connection point at the 
17305         middle of each segment. Currently only the SADT arrow uses this.
17307         * objects/SADT/* (NEW): SADT (both idf0 and idf1) support.
17308         
17309 2000-01-26 Cyrille Chepelov <chepelov@calixo.net>
17310         * lib/lazyprops.[ch]:(NEW) Added a bunch of macros for loading, 
17311         saving and editing of properties (and default properties). 
17312         See the new objects (GRAFCET, SADT, chonograms) for examples.
17313         For already too hairy stuff, see objects/chronogram/chronoline.c.
17315         * lib/connpoint_line.[ch] (NEW): This subobject manages a line of 
17316         evenly spaced connection points, which the user can add or remove at
17317         will. An object can own several connection point lines. See the SADT
17318         Box, or the GRAFCET vergents for examples.
17320         * lib/dummy_dep.h: added dependencies to new files. Told gcc to keep 
17321         quiet about unused stuff.
17323         * objects/GRAFCET (NEW):
17324         * samples/grafcet.dia (NEW):
17325         Added support for GRAFCET charts. 
17327         * objects/chronogram (NEW):
17328         * samples/chronograms.dia (NEW):
17329         Added support for chronograms (feature requested by Ronald L. Chichest;
17330         I found I'd use it often, too).
17332         * objects/standard/line.c: Replace the middle connectionpoint by 
17333         a whole connection point line, which defaults to one point (hint, 
17334         hint). New Line object menu to take advantage of this. 
17335         "Bothwards" compatibility is preserved (although you may loose 
17336         connections if you load a newer file in a older dia).
17338         * app/lineprops_area.c:
17339         * lib/arrows.[ch]:
17340         * lib/widgets.c: Added hollow and filled ellipse arrow head type. 
17341         (feature requested by Benjamin Kahn).
17342         Merged in Steffen Macke's slashed arrow head type.
17344         * app/Makefile.am (app/run_dia.sh actually):
17345         Added $DEBUGGER in front of dia's invocation, so that
17346         you can call "DEBUGGER=ddd app/run_dia.sh" (maybe naive, but useful).
17347         Added $(EFENCE) to app/dia's LDFLAGS, so that you can do 
17348         "EFENCE=-lefence" to link with Electric Fence.
17350         * configure.in: Made gcc do more aggressive optimisations on i386, and
17351         enabled warnings.
17352         
17353 2000-01-24  James Henstridge  <james@daa.com.au>
17355         * lib/geometry.[ch]: added inline versions of functions.  Used
17356         glib's G_INLINE_FUNC stuff, so it should still work on systems
17357         without inline funcs.
17359         * plug-ins/cgm/cgm.c (draw_ellipse, fill_ellipse): fixed up so that
17360         it outputs the correct element id for the ellipse objects.
17362 2000-01-24 Cyrille Chepelov <chepelov@calixo.net>
17364         * lib/object.[ch]: added object_add_connectionpoint_at, similar to
17365         object_add_handle_at. Message typo fixed.
17366         
17367         * lib/sheet.c (load_register_sheet):
17368         potential bug fixed (warning hunt).
17370         * objects/custom/custom.c (custom_object_load): disabled an assertion
17371         which made dia abort upon failure to load a shape file. Fixed a
17372         subsequent crash. 
17374         * objects/custom/shape_info.c (load_shape_info): Made the custom 
17375         shape load code ignore XML comments between <?xml ...?> and the 
17376         root object (mostly useful to put the emacs magic comments).
17377         
17378         * app/load_save.c: Made dia do backup copies of files when saving,
17379         and complain in case of failure.
17381 2000-01-24  Cyrille Chepelov  <chepelov@calixo.net>
17383         * AUTHORS: fixed my address (ISP thought it was a great idea to change
17384         the domain name)
17385         
17386         * configure.in:
17387         * shapes/Contact:
17388         * shapes/Contact/*:
17389         * sheets/Contact.sheet:
17390         * sheets/Makefile.am:
17391         Added support for Contact and LADDER charts.
17393         * dia.desktop: Added a French translation.
17394         
17395 2000-01-23  James Henstridge  <james@daa.com.au>
17397         * app/commands.c (help_about_callback): don't die if can't load
17398         logo image.
17400         * app/render_gdk.c (bezier_add_lines): sanity check to try to weed
17401         out NaN's when performing bezier curve subdivision.
17403         * objects/custom/custom_object.c: initialise memory of Custom structs
17404         to zero.
17406         * app/render_svg.c (draw_image): added image support to the XML
17407         output filter.  The image is just referenced, rather than being
17408         included inline, so if you copy the SVG file somewhere else, you
17409         may need to move the images or fix up the links.
17411         * plug-ins/cgm/cgm.c (draw_string): output a text colour element,
17412         so the text is not just displayed in black all the time.
17414 2000-01-15  Fredrik Hallenberg  <hallon@lysator.liu.se>
17416         * configure.in: fixed libpopt test so we wont try to build with
17417         too old libpopt.
17419 1999-12-18  Yuri Syrota  <rasta@renome.rovno.ua>
17421         * configure.in: Added "uk" to ALL_LINGUAS.
17423 1999-12-24  James Henstridge  <james@daa.com.au>
17425         * po/ru.po: updated russian translation from Valek Filippov.
17426         
17427         * app/render_svg.c (new_svg_renderer): make output use 19991203
17428         version of SVG DTD.  Use viewBox to set the extents of the view.
17430         * INSTALL (FONTS): updated locations of gnome-xml and imlib.  List
17431         ftp.gnome.org as the download.
17433         * TODO (TODO): weeded out completed todo items and added a few extra.
17435         * Makefile.am (EXTRA_DIST): added documentation to EXTRA_DIST.
17437         * doc/sheet.dtd: first stab at a DTD for the sheet files.  It would
17438         be good to get rid of the object/shape distinction and separate
17439         the custom shape code out from the main application.
17441         * objects/custom/README, diagram.dtd: moved to new doc directory.
17442         Renamed the custom shapes README to custom-shapes.  Also updated
17443         custom shape docs a bit and removed the section on sheet files, as
17444         that has changed a bit.
17446         * plug-ins/cgm/cgm.c (draw_image): give an error if the row length
17447         of the image data is larger than the maximum cell array.  I should
17448         add code to break scan lines down further in this case, but for now
17449         an error message is better than an infinite loop.
17451         * app/filedlg.c (file_export_ok_callback): show a dialog if we
17452         couldn't determine the export filter to use.
17454         * app/commands.c (help_about_callback): fixed up about box logo
17455         expose bug.  Now just use a GtkPixmap widget rather than a
17456         GtkDrawingArea and calling gdk_imlib_paste_image.
17458         * app/Makefile.am (EXTRA_DIST): added print stuff to extra dist,
17459         because automake does not always get things right.
17461         * configure.in: updated version number to 0.83.
17463         * app/preferences.c (prefs_save): 
17464         * app/render_svg.c (new_svg_renderer): "wt" is not a valid flag string
17465         for fopen.  Text is the default file mode anyway.
17467         * app/commands.c (file_save_as_dialog_ok_callback, file_new_callback): 
17468         * app/grid.c (grid_x_update, grid_y_update, grid_show_dialog): 
17469         * app/load_save.c (write_objects, write_connections): 
17470         * app/filedlg.c (file_export_ok_callback): 
17471         * lib/dia_xml.c (data_add_int, data_add_enum, data_add_real): 
17472         * lib/dia_xml.c (data_add_point, data_add_rectangle): 
17473         * lib/font.c (init_x11_font, font_get_gdkfont): changed calls to
17474         snprintf to calls to g_snprintf.
17476         * plug-ins/cgm/cgm.c (export_cgm): write the original dia file name
17477         as the picture name.
17479 1999-12-23  James Henstridge  <james@daa.com.au>
17481         * plug-ins/cgm/cgm.c (write_int32, write_int16): fixed up output of
17482         negative numbers.  This fixes the upside down text problem I was
17483         having previously.
17484         (draw_image): implemented the image code.  It will try to split the
17485         image data up into bands if it is too big to fit into a single
17486         cgm cell array element.  It will have problems if you try to insert
17487         an image wider than about 10,000 pixels though.
17489         * Makefile.am: use gnomedatadir for the files that need to be
17490         installed in gnome's datadir.  This is mainly to help people doing
17491         packages for weird setups.
17493 1999-12-22  James Henstridge  <james@daa.com.au>
17495         * plug-ins/cgm/cgm.c: added support for text.  Now only images and
17496         beziers are left to do.  The text seems to be the wrong way up
17497         still.  This is probably a problem with character orientation
17498         element, but I have used what the settings given in the standard.
17499         Other than this, the CGMs dia produces are readable (and displayable)
17500         by ralcgm and corel draw.
17501         (draw_string): subtract from the X coord rather than the Y coord for
17502         center and right aligned text.
17504         * plug-ins/cgm/cgm.c: a few fixups for the output.  Use REALSIZE as
17505         the size of a real number, and changed name of write_double to
17506         write_real.  Consider changing to fixed real encoding.  Also, now
17507         all element headers are correct.  Once the real number encoding is
17508         fixed, only text, beziers and images are left to do.
17510 1999-12-21  James Henstridge  <james@daa.com.au>
17512         * Makefile.am (SUBDIRS): recurse into plug-ins.
17514         * configure.in: add plug-ins directory makefiles to list.
17516         * plug-ins/cgm/cgm.c: start of cgm export filter.  Beziers and text
17517         not done yet.  Also, the output files are not quite correct.
17519         * app/render_eps.c (print_reencode_font): don't reencode the Symbol
17520         font.  It doesn't work if you do.
17522 1999-12-20  James Henstridge  <james@daa.com.au>
17524         * app/app_procs.c (app_init): don't use diagram_export_to_eps to
17525         export the files.  Instead, use filter_guess_export_filter to
17526         guess the correct format to save in and use the appropriate filter.
17527         It defaults to postscript for compatibility.
17529         * app/diagram.[ch] (diagram_export_to_eps): removed export to eps
17530         function.
17532         * app/commands.[ch]: removed export to eps functions.
17534         * app/menus.c: removed export to eps menu items.
17536         * app/app_procs.c: register new export filters.
17538         * app/load_save.[ch]: define dia native export filter.
17540         * app/render_eps.[ch]: define eps export filter.
17542         * lib/filter.h: added diafilename argument to the DiaExportFunc
17543         prototype.  This is useful for putting the source of the diagram
17544         into the output file for instance.
17546         * app/app_procs.c (app_init): register the SVG export filter.  Have
17547         to get EPS code converted to this API, and maybe also allow saving in
17548         DIA's native format from the export dialog.  In fact, it is now
17549         possible to load an export filter from a shared library and it will
17550         integrate into the interface correctly.
17552         * app/menus.c: removed references to the SVG renderer.
17554         * app/commands.[ch]: removed svg stuff.
17556         * app/diagram.[ch]: removed diagram_export_to_svg function.
17558         * app/render_svg.[ch]: added a DiaExportFilter structure for this
17559         renderer.
17561         * app/filedlg.[ch]: code for the new export diagram dialog.  Will
17562         probably move the open/save dialogs to this file as well.
17564 1999-12-19  James Henstridge  <james@daa.com.au>
17566         * lib/filter.[ch]: start of interface for generalised handling of
17567         filters.  I have only done code for export filters so far.  I still
17568         need to do the gui for this, and convert the current SVG and EPS
17569         filters to the new API.
17571         * lib/bezier_conn.c (bezierconn_copy): fix up copy operation.  We
17572         weren't setting the last handle correctly.  It was actually assigning
17573         to the wrong position in the handles array, so the last handle was
17574         left as NULL, which caused the segfault.
17576         * objects/standard/image.c (image_copy): modified routine so that
17577         it just adds a reference to the DiaImage structure in the new image
17578         object.  This seems to have cleared up the problems with copying
17579         image objects.
17581         * dia.spec: spec file additions from John Gotts.
17583 1999-12-12  James Henstridge  <james@daa.com.au>
17585         * configure.in (GNOME_LIBS): updated version number to 0.82.  0.82
17586         has not been released yet though.
17588         * Makefile.am (EXTRA_DIST): distribute diagram.dtd.
17590         
17591         The following based on a patch from Lars Clausen:
17592         
17593         * objects/standard/bezier.c (bezierline_move_handle): when performing
17594         the initial drag of the bezierline, move the control points to keep
17595         the line straight.
17597         * lib/bezier_conn.c (bezierconn_add_segment): when adding a segment,
17598         make the new control points a bit closer to the major point.
17600         * app/create_object.c (create_object_motion): use HANDLE_MOVE_CREATE
17601         as the reason for the move.
17602         (create_object_button_release): use HANDLE_MOVE_CREATE_FINAL as the
17603         move reason.
17605         * lib/handle.h: new handle move reasons.
17607 1999-12-09  James Henstridge  <james@daa.com.au>
17609         * dia.spec: include the new files in RPMs.
17611         * Makefile.am: install these new files.
17613         * dia.keys.in: file describing actions and icon for dia diagrams for
17614         use in the gnome file manager.
17615         
17616         * dia.mime: a file defining the application/x-dia-diagram mime type.
17617         
17618         * dia-diagram.png: an icon for dia diagrams.
17620 1999-12-08  James Henstridge  <james@daa.com.au>
17622         * plug-ins/python/pydia-diagram.c: added heaps of new methods.
17624         * plug-ins/python/pydia-display.[ch]: wrapper for display.
17626         * objects/standard/ellipse.c: applied Lars's patch to optionally not
17627         draw the background of the ellipse.
17629         * app/load_save.c (read_connections): do some sanity checking on the
17630         handle and connection point numbers before performing the object
17631         connection.
17633         * lib/bezier_conn.c (bezierconn_load): give the correct number of
17634         handles when loading a BezierConn.
17636 1999-12-07  Kjartan Maraas  <kmaraas@online.no>
17638         * sheets/*.sheet: Finished Norwegian translations.
17639         
17640 1999-12-07  James Henstridge  <james@daa.com.au>
17642         * plug-ins/python/diamodule.c (PyDia_Load): load diagram function.
17643         (PyDia_GetObjectType): find object type function.
17645         * plug-ins/python/pydia-diagram.c (PyDiaDiagram_Save): added a save
17646         method for diagrams.
17648         * plug-ins/python/pydia-object.c: added methods for DiaObject and
17649         DiaObjectType.
17651         * AUTHORS: added Lars and Cyrille to the authors file.
17653         * objects/standard/bezier.c (bezierline_add_segment_callback): place
17654         new point correctly.
17656         * lib/bezier_conn.h (bezierconn_closest_segment): fixed prototype.
17658         * lib/bezier_conn.c: applied Lars's patch for placement of the new
17659         point when adding a segment to a BezierConn.
17661 1999-12-06  James Henstridge  <james@daa.com.au>
17663         * plug-ins/python/test.py: test script for the python plug-in.
17665         * plug-ins/python/python.c: this file contains the plug-in startup
17666         code for the python plugin.  Right now, it just initialises the
17667         dia module and executes a script.
17669         * objects/standard/polyline.c (polyline_draw): fix start arrow size.
17671         * objects/standard/bezier.c (bezierline_draw): draw control lines for
17672         bezier curve if we are using an interactive renderer (ie. only if
17673         displaying to the screen).
17675         * lib/bezier_conn.[ch] (bezierconn_draw_control_lines): function
17676         to draw control lines on to a bezier curve.  Based on implementation
17677         from Lars.
17679         * objects/standard/bezier.c (bezierline_delete_segment_callback):
17680         calculate segment number using closest_segment rather than
17681         closest_handle.  Sometimes the closest handle is part of a different
17682         segment.
17683         (bezierline_draw): use correct size for start arrow.
17685         The next few entries are from Peter Moulder <reiter@netspace.net.au>:
17686         * lib/geometry.c (distance_line_point): added notes to documentation
17687         in comment.
17688         * app/object_ops.c (object_list_align_v): 
17689         (object_list_align_h): fix of by one error when calculating free space
17690         for equal distance alignment.
17691         * app/menus.c (objects_align_h, objects_align_v): include align
17692         adjacent menu items in the gnome version of the menus.
17693         * app/diagram.c (diagram_update_menu_sensitivity): set sensitivity on
17694         align adjacent menu items correctly.
17697         * lib/dummy_dep.h (dummy_dep): added bezierconn to dummy dependency
17698         table.
17700         * objects/standard/bezier.c: converted bezierline to use BezierConn.
17701         Still a few bugs.  It crashes on deleting line segments.
17703         * lib/Makefile.am (libdia_a_SOURCES): added BezierConn to libdia.
17705 1999-12-05  James Henstridge  <james@daa.com.au>
17707         * lib/bezier_conn.[ch]: start of BezierConn object
17709         * app/interface.c: add bezierline to toolbox.
17711         * objects/standard/standard.c: initialise bezierline.
17713         * objects/standard/bezier.c: new object from Lars R. Clausen.  I have
17714         made a few modifications to get it working nicely.  It still needs
17715         a bit of work though.  Maybe create a BezierConn object in lib.
17717 1999-12-02  James Henstridge  <james@daa.com.au>
17719         * plug-ins/python/pydia-*.c: fixed compile errors in these files.
17720         
17721         * plug-ins/python/Makefile.am: tried building everything.  It is
17722         building as a library at the moment.  I will have to convert it
17723         to a libtool library and add some initialisation code.
17724         
17725         * plug-ins/python/diamodule.c: start of the dia module, using the
17726         other object wrappers.  Not complete.
17728 1999-12-01  James Henstridge  <james@daa.com.au>
17730         * plug-ins/python/pydia-object.c (PyDiaObject_GetAttr): implement
17731         the handles and connections attributes.
17733         * plug-ins/python/pydia-layer.c: added functions that use
17734         ConnectionPoint's.
17736         * plug-ins/python/pydia-handle.[ch]: wrapper for Handle's.
17738         * plug-ins/python/pydia-cpoint.[ch]: wrapper for ConnectionPoint's.
17740         * plug-ins/python/pydia-*.[ch]: starts of python scripting plug-in.
17741         I am currently wrapping the basic elements in the diagram in python
17742         objects -- nothing to see or play with yet.
17744 1999-11-30  Alexander Larsson  <alla@lysator.liu.se>
17746         * AUTHORS:
17747         * HACKING:
17748         James Henstridge <james@daa.com.au> is now the maintainer of Dia.
17750 1999-11-29  Alexander Larsson  <alla@lysator.liu.se>
17752         * configure.in:
17753         * po/ru.po:
17754         Added russian translation from Valek Filippov <frob@df.ru>
17756 1999-11-24  James Henstridge  <james@daa.com.au>
17758         * sheets/UML/*: 
17759         * sheet/ER/*: moved extra sheet pixmaps back to separate dirs as
17760         discussed with Alex.  Also added extra makefiles so that make install
17761         works correctly.
17763 1999-11-23  Alexander Larsson  <alla@lysator.liu.se>
17765         * app/preferences.[ch]:
17766         * app/display.c:
17767         Added snap to grid preference.
17768         Patch from Michael Leslie <mles@springboardwireless.com>
17770 1999-11-21  Alexander Larsson  <alla@lysator.liu.se>
17772         * app/load_save.c:
17773         * lib/dia_xml.c:
17774         * lib/sheet.c:
17775         * lib/text.c:
17776         * objects/custom/shape_info.c:
17777         All strings returned by libxml must be freed with free, not
17778         g_free, or there will be problems if you use memory debugging
17779         in glib.
17780         
17781 1999-11-21  Alexander Larsson  <alla@lysator.liu.se>
17783         * app/create_object.[ch]:
17784         * app/menus.c:
17785         * app/tool.[ch]:
17786         * app/commands.[ch]:
17787         * app/pixmaps.h:
17788         * app/interface.[ch]:
17789         Reverted the tool menu patch. It has some 'issues'.
17790         I liked it though, so it'll probably return.
17792 1999-11-21  Alexander Larsson  <alla@lysator.liu.se>
17794         Fixed a lot of memory leaks. Thanks to Bruce Mitchener
17795         <bruce@cybersight.com> for some purify runs and analysis.
17796         Also a great thank you to Owen Taylor for creating MemProf, a
17797         free memory leak detector that was used to find and verify a
17798         lot of these fixes.
17799         
17800         * app/diagram.c:
17801         * app/paginate_psprint.c:
17802         * app/render_eps.[ch]:
17803         * app/render_svg.[ch]:
17804         Free renderers.
17806         * app/interface.c:
17807         Don't add a reference to ddisp->shell. Why was this done in
17808         the first place?
17810         * app/load_save.c:
17811         * lib/dia_xml.c:
17812         * lib/sheet.c:
17813         * lib/text.c:
17814         Free all strings returned from xmlGetProp
17816         * app/modify_tool.c:
17817         Plug leak.
17819         * objects/custom/custom.c:
17820         Use closedir() after opendir().
17822         * objects/custom/shape_info.c:
17823         User g_free() instead of "if (tmp) free(tmp)".
17825         * sheets/ER.sheet:
17826         Add newline at end of file.
17827         
17829 1999-11-20  Alexander Larsson  <alla@lysator.liu.se>
17831         Based on patch from Patrick Reynolds <reynolds@cs.duke.edu>
17832         Adds tool menu and keyboard shortcuts.
17834         * app/create_object.[ch]:
17835         Use tool_set() instead of tool_reset().
17836         create_create_object_tool() takes extra type argument
17838         * menus.c:
17839         Add tools menu.
17840         
17841         * tool.[ch]:
17842         Moved tool_data here, export it.
17843         Add separate tool type for all create objects tools.
17844         new functions tool_set().
17846         * commands.[ch]:
17847         New callback tool_set_callback.
17849         * pixmaps.h:
17850         Moved some pixmaps to interface.c.
17851         
17852         * interface.[ch]:
17853         Remove tool_data array (moved to tool.c).
17854         Use the tool_data from tool.c.
17855         Remove modify_tool_button global var.
17856         
17857 1999-11-20  Alexander Larsson  <alla@lysator.liu.se>
17859         Patch from Patrick Reynolds <reynolds@cs.duke.edu>
17860         
17861         * app/app_procs.c:
17862         Interprets command-line arguments as files to open even when
17863         HAVE_POPT is not defined.
17865         * app/magnify.c:        
17866         Shift-clicking when zooming zooms out, like the Gimp.
17868         * app/menus.c:
17869         Has hotkeys for zoom-100% and snap-to-grid.
17871 1999-11-17  James Henstridge  <james@daa.com.au>
17873         * app/scroll_tool.c (scroll_motion): fixed shift style scrolling so
17874         that it is not jumpy.
17876         * app/Makefile.am (EXTRA_DIST): added extra files to extra dist list.
17878         * app/scroll_tool.c (scroll_motion): added `grabbing hand' type
17879         scrolling by pressing the shift key when using the scroll tool.
17881         * sheets/Makefile.am: fixed makefile so that install actually works
17882         if the directories $(pkgdatadir)/sheets/UML and $(pkgdatadir)/sheets/ER
17883         don't exist.
17884         (SHEETS): install Circuit.sheet
17886 1999-11-15  Alexander Larsson  <alla@lysator.liu.se>
17887         Patch from Cyrille Chepelov <chepelov@rmcnet.fr>
17889         * sheets/Circuit.sheet:
17890         * sheets/ER.sheet:
17891         * sheets/FS.sheet:
17892         * sheets/Flowchart.sheet:
17893         * sheets/UML.sheet:
17894         * sheets/network.sheet:
17895         * sheets/sybase.sheet:
17896         Changed name space
17898         * sheets/Circuit.sheet:
17899         added some missing French translations
17901         * lib/sheet.c:
17902         killed the temporary sheet namespace
17904         * objects/custom/custom.c:
17905         obsolete comment cleaned up
17907 1999-11-12  Alexander Larsson  <alla@lysator.liu.se>
17909         * configure.in:
17910         * po/pt.po:
17911         Added portugese translation from Pedro Morais
17912         <pmmm@rnl.ist.utl.pt>
17914 1999-11-11  Alexander Larsson  <alla@lysator.liu.se>
17916         Changed all sheets to be specified in xml.
17917         All sheet objects removed from the C code.
17918         Patch from Cyrille Chepelov <chepelov@rmcnet.fr>
17919         
17920         * Makefile.am:
17921         * configure.in:
17922         Adding shapes dir.
17923         Updated version to 0.81cvs.
17924         
17925         * app/Makefile.am:
17926         Update run_dia.sh with sheet-dir.
17927         
17928         * app/app_procs.c:
17929         Load all sheets on startup.
17930         Create sheet directory first time.
17931         Don't call custom_register_sheets().
17933         * lib/Makefile.am:
17934         Add sheetdir define
17936         * lib/custom.h:
17937         Remove custom_register_sheets().
17939         * lib/sheet.[ch]:
17940         Add sheet loading code.
17942         * sheet/Circuit.sheet:
17943         * sheet/ER.sheet:
17944         * sheet/FS.sheet:
17945         * sheet/Flowchart.sheet:
17946         * sheet/UML.sheet:
17947         * sheet/network.sheet:
17948         * sheet/sybase.sheet:
17949         Added sheet files.
17951         * sheet/ER/weakentity.xpm:
17952         * sheet/UML/aggregation.xpm
17953         * sheet/UML/umlclass_template.xpm
17954         Added sheet pixmaps.
17955         These are moved from their old places.
17957         * sheet/.cvsignore:
17958         Shut up cvs.
17960         * objects/*/*.c:
17961         Removed sheet objects and sheet registration.
17962         
17963         * objects/ER/Makefile.am:
17964         * objects/ER/pixmaps/weakentity.xpm:
17965         * objects/UML/Makefile.am:
17966         * objects/UML/pixmaps/aggregation.xpm:
17967         * objects/UML/pixmaps/umlclass_template.xpm:
17968         Removed alternative pixmaps. (Moved to sheet).
17970         * objects/custom/Makefile.am:
17971         * objects/custom/load_sheet.[ch]:
17972         Removed old sheet loading code.
17973         
17974         * objects/custom/custom.c:
17975         Load all shapes instead of sheets.
17976         Removed custom_register_sheets().
17978         * objects/custom/custom_object.c:
17979         Added debug code.
17981         * objects/custom/shape_info.[ch]:
17982         Added shape_info_getbyname().
17984         * objects/flowchart/Makefile.am:
17985         * objects/flowchart/collate.shape            
17986         * objects/flowchart/delay.shape              
17987         * objects/flowchart/display.shape            
17988         * objects/flowchart/document.shape           
17989         * objects/flowchart/extract.shape            
17990         * objects/flowchart/flowchart.c              
17991         * objects/flowchart/intstorage.shape         
17992         * objects/flowchart/magdisk.shape            
17993         * objects/flowchart/magdrum.shape            
17994         * objects/flowchart/magtape.shape            
17995         * objects/flowchart/manualinput.shape        
17996         * objects/flowchart/manualop.shape           
17997         * objects/flowchart/merge.shape              
17998         * objects/flowchart/offlinestore.shape       
17999         * objects/flowchart/offpageconn.shape        
18000         * objects/flowchart/or.shape                 
18001         * objects/flowchart/predefdproc.shape        
18002         * objects/flowchart/preparation.shape        
18003         * objects/flowchart/punchedcard.shape        
18004         * objects/flowchart/punchedtape.shape        
18005         * objects/flowchart/sort.shape               
18006         * objects/flowchart/sumjunction.shape        
18007         * objects/flowchart/terminal.shape           
18008         * objects/flowchart/transaction.shape        
18009         * objects/flowchart/transmittape.shape       
18010         * objects/flowchart/pixmaps/collate.xpm      
18011         * objects/flowchart/pixmaps/delay.xpm        
18012         * objects/flowchart/pixmaps/display.xpm      
18013         * objects/flowchart/pixmaps/document.xpm     
18014         * objects/flowchart/pixmaps/extract.xpm      
18015         * objects/flowchart/pixmaps/intstorage.xpm   
18016         * objects/flowchart/pixmaps/magdisk.xpm      
18017         * objects/flowchart/pixmaps/magdrum.xpm      
18018         * objects/flowchart/pixmaps/magtape.xpm      
18019         * objects/flowchart/pixmaps/manualinput.xpm  
18020         * objects/flowchart/pixmaps/manualop.xpm     
18021         * objects/flowchart/pixmaps/merge.xpm        
18022         * objects/flowchart/pixmaps/offlinestore.xpm 
18023         * objects/flowchart/pixmaps/offpageconn.xpm  
18024         * objects/flowchart/pixmaps/or.xpm           
18025         * objects/flowchart/pixmaps/predefdproc.xpm  
18026         * objects/flowchart/pixmaps/preparation.xpm  
18027         * objects/flowchart/pixmaps/punchedcard.xpm  
18028         * objects/flowchart/pixmaps/punchedtape.xpm  
18029         * objects/flowchart/pixmaps/sort.xpm         
18030         * objects/flowchart/pixmaps/sumjunction.xpm  
18031         * objects/flowchart/pixmaps/terminal.xpm     
18032         * objects/flowchart/pixmaps/transaction.xpm  
18033         * objects/flowchart/pixmaps/transmittape.xpm 
18034         Moved shapes and their pixmaps to shapes/flowchart
18036         * shapes/Circuit/Makefile.am:
18037         * shapes/Circuit/index.sheet:
18038         Removed index.sheet.
18039         
18040         * shapes/Makefile.am:
18041         * shapes/flowchart/Makefile.am:
18042         * shapes/flowchart/*.shape:
18043         * shapes/flowchart/*.xpm:
18044         Added flowchart shapes. (Moved from objects/flowchart)
18045         
18047 1999-11-07  Fredrik Hallenberg  <hallon@lysator.liu.se>
18049         * app/app_procs.c: Fixed popt stuff.
18051 1999-11-01  James Henstridge  <james@daa.com.au>
18053         * shapes/Circuit/[hv]led_de.{shape,xpm}: new circuit shapes from
18054         Andreas Scherf.
18056 1999-10-31  Alexander Larsson  <alla@lysator.liu.se>
18058         * dia.spec:
18059         * configure.in:
18060         Update version to 0.81.
18061         
18062         * NEWS:
18063         Update with news for 0.81.
18064         
18065         * shapes/Circuit/*:
18066         * shapes/Circuit_eu/*:
18067         Moved european circuit objects to Circuit sheet.
18069 1999-10-31  Alexander Larsson  <alla@lysator.liu.se>
18070         
18071         * lib/diagramdata.[ch]:
18072         Added layer_set_object_list() function.
18074         * app/undo.[ch]:
18075         Added support for undo of reordered objects.
18076         Fix the undo of delete to keep the right order on undo.
18077         
18078         * app/diagram.c:
18079         changed loop to object_add_updates_list() calls.
18080         Added undo support to bring to front/back.
18082         * app/disp_callbacks.c:
18083         * app/paginate_psprint.c:
18084         Remove warnings.
18086 1999-10-30  Alexander Larsson  <alla@lysator.liu.se>
18088         This plugs some leaks. Thanks to
18089         Bruce Mitchener <bruce@cybersight.com> for running
18090         Dia through purify for me.
18091         
18092         * app/app_procs.c:
18093         Free displays and diagrams on exit.
18095         * app/modify_tool.c:
18096         Free gc when freeing tool.
18098         * lib/diagramdata.c:
18099         Free layer name.
18100         
18101         * app/display.c:
18102         Free update and display lists when destroying display.
18103         
18104         * lib/diagramdata.c:
18105         Don't leak layer name.
18107         * objects/custom/load_sheet.c: 
18108         * objects/custom/shape_info.c:
18109         Free loaded xml documents.
18111 1999-10-28  Alexander Larsson  <alla@lysator.liu.se>
18113         * app/commands.c:
18114         * app/object_ops.[ch]:
18115         Add undo handling to alignment ops.
18116         Based partially on patch by Dan Cohn <dan@internap.com>.
18118         * objects/standard/image.c (image_move_handle):
18119         Don't divide by zero for small images.
18120         Patch by Dan Cohn <dan@internap.com>.
18122         * objects/UML/class.c (umlclass_destroy): 
18123         * objects/custom/custom_object.c (custom_destroy):
18124         Don't free connectionpoints before calling element_destroy
18125         which unconnects them.
18127 1999-10-26  Alexander Larsson  <alla@lysator.liu.se>
18129         * objects/custom/custom_object.c: 
18130         Load and save padding too. Fixes strange load crashes.
18132         * app/group.c (group_destroy):
18133         Don't unconnect already freed connectionpoints when
18134         destroying group. Probably fixes bug reported by
18135         Elliot Lee <sopwith@redhat.com>.
18137         * app/render_gdk.c:
18138         Don't crash on zero-size (broken) bezier curves.
18139         Different sort of fix. This should work on closed bezier curves
18140         too.
18142         * objects/standard/textobj.c:
18143         Activate default properties dialog for Text objects.
18145         * app/render_eps.c: 
18146         * app/load_save.c:
18147         * app/preferences.c:
18148         * app/render_svg.c:
18149         fopen files in binary or text mode.
18151 1999-10-26  Alexander Larsson  <alex@cendio.se>
18153         * app/render_gdk.c (bezier_add_lines):
18154         Don't crash on zero-size (broken) bezier curves.
18155         Fixes a crashing bug.
18157 1999-10-25  James Henstridge  <james@daa.com.au>
18159         * app/Makefile.am (run_dia.sh): allow dia to find internal shape files
18160         before it is installed.
18162         * objects/flowchart/flowchart.c: use relative paths to find shapes.
18164         * objects/custom/custom.c (custom_object_load): take file names
18165         relative to $(pkgdatadir)/shape-internal, and check an environment
18166         variable for an alternative directory.
18168         * app/...: added copyright messages to the top of my new code.
18170         * app/paginate_psprint.c: some general clean ups.  Also, give an error
18171         dialog if we can't open the command or output file for writing.
18173         * app/diapagelayout.c (dia_page_layout_set_orientation): fixed
18174         function so it would set orientation to landscape correctly.
18176         * app/paginate_psprint.c: use the paper settings that come with
18177         the diagram.  Also implemented landscape printing.
18179         * app/render_eps.c (new_psprint_renderer): use diagram paper metrics
18180         in PS header.
18182         * app/commands.[ch] (file_pagesetup_callback): added callback for
18183         the page setup dialog.
18185         * app/menus.c: added page setup menu item.
18187         * app/pagesetup.[ch]: implementation of the page setup dialog.
18189         * app/diapagelayout.[ch]: added accessors for the scaling factor.
18190         
18191         * app/load_save.c (diagram_load): load paper information from save
18192         file.
18193         (diagram_save): save the paper info.
18195         * lib/diagramdata.c (new_diagram_data): initialise paper info section
18196         of DiagramData structure.
18197         (diagram_data_destroy): free the paper name.
18199         * lib/diagramdata.h: added a paper member to the DiagramData structure
18200         that holds the page layout info for a diagram.
18202 1999-10-21  Alexander Larsson  <alla@lysator.liu.se>
18204         * objects/flowchart/box.c:
18205         * objects/flowchart/ellipse.c:
18206         * objects/flowchart/diamond.c:
18207         * objects/flowchart/parallelogram.c:
18208         Load and save padding too. Fixes strange load crashes.
18210 1999-10-21  Alexander Larsson  <alla@lysator.liu.se>
18212         * app/app_procs.c (name_is_lib):
18213         .dll, .sl and .so.0.0.0 are also libraries.
18215 1999-10-20  James Henstridge  <james@daa.com.au>
18217         * configure.in: added extra makefile.
18218         
18219         * shapes/Circuit_eu/*: a new set of european circuit shapes from
18220         Andreas Scherf <scherfa@fh-trier.de>.  Made a few small modifications
18221         (added fuses to makefile, fill the area of some of the components).
18223 1999-10-19  Alexander Larsson  <alla@lysator.liu.se>
18225         * lib/Makefile.am:
18226         * app/Makefile.am: 
18227         Add GDK_IMLIB_CFLAGS to includes.
18228         Changed --export-dynamic to -export-dynamic
18230         * lib/widgets.c:
18231         * objects/UML/message.c:
18232         Removed c++ comment.
18234         * lib/render_store.[ch]:
18235         Don't use empty structure. That is not Ansi C.
18237 1999-10-19  James Henstridge  <james@daa.com.au>
18239         * app/diapagelayout.c (dia_page_layout_init): use DiaUnitSpinner's for
18240         the margin entries, as they allow interpretation of units.
18241         (paper_size_change): display the current page dimensions.
18243         * app/diaunitspinner.[ch]: a widget derived from the standard
18244         GtkSpinButton that tries to take units into account.  So if you enter
18245         "1in" into the entry, it will convert it to 2.54cm.
18247 1999-10-18  Alexander Larsson  <alla@lysator.liu.se>
18249         * app/app_procs.c:
18250         Removed include of dlfcn.h
18252 1999-10-18  James Henstridge  <james@daa.com.au>
18254         * app/diapagelayout.c (paper_size_change, orient_changed): set upper
18255         bound on margin widths.  It is set to the paper width/height.
18257         * objects/flowchart/diamond.c (diamond_distance_from): fixed distance
18258         routine for the diamond.  This bug was found and fixed by Daniel Wang
18259         <danwang@CS.Princeton.EDU>
18261 Sun Oct 17 19:46:36 1999  ape@gandalf.spacetec.no  (Asbjorn Pettersen)
18263         * app/commands.c: Add <sys/types.h> before <sys/stat.h> to
18264         remove warning (OS/2 version).
18266 1999-10-17  Alexander Larsson  <alla@lysator.liu.se>
18268         * README:
18269         Put a pointer to objects/custom/README.
18270         
18271 1999-10-17  Alexander Larsson  <alla@lysator.liu.se>
18273         * dia.spec:
18274         Updated version to 0.80
18276         * configure.in:
18277         Updated version to 0.80cvs
18279 1999-04-08  Alexander Larsson  <alla@lysator.liu.se>
18281         * Released Dia 0.80
18282         Tag called DIA_0_80
18283         
18284 1999-10-17  Fredrik Hallenberg  <hallon@lysator.liu.se>
18286         * app/Makefile.am
18287         * lib/Makefile.am
18288         * objects/UML/Makefile.am
18289         * objects/ER/Makefile.am
18290         * objects/network/Makefile.am
18291         * objects/standard/Makefile.am
18292         * objects/FS/Makefile.am
18293         * objects/sybase/Makefile.am
18294         * objects/flowchart/Makefile.am
18295         * objects/custom/Makefile.am
18296         Added -I$(top_srcdir)/intl which is needed for
18297         --with-included-gettext.
18299         * POTFILES.in
18300         Updated.
18301         
18302         * po/sv.po
18303         Updated swedish translation.
18305 1999-10-16  Alexander Larsson  <alla@lysator.liu.se>
18307         * configure.in:
18308         Updated version number to 0.80.
18310         * KNOWN_BUGS:
18311         New file.
18313         * TODO:
18314         Updated. Moved bugs to KNOWN_BUGS.
18316         * NEWS:
18317         Updated with 0.80 release notes.
18318         
18319 1999-10-16  Alexander Larsson  <alla@lysator.liu.se>
18320         
18321         * lib/orth_conn.c:
18322         For backwards compatibility, make sure handle 0 and 1 are the
18323         first and last handle. Fixes compatibility with 0.41, breaks
18324         compatibility with cvs version.
18325         Fixed bug in undo/redo of adding deleting endpoint segments
18326         when the endpoint was connected.
18327         Start OrthConn objects with three segments.
18329 1999-10-16  James Henstridge  <james@daa.com.au>
18331         * objects/custom/custom_object.c (custom_update_data): changed
18332         resizing behaviour a bit so that shapes don't grow huge when you try
18333         to resize them to smaller than the size required by the text box.
18334         Also, now shapes will not grow with fixed aspect ratio when you enter
18335         text into them unless the shape has the fixed aspect ratio flag set.
18337 1999-10-15  James Henstridge  <james@daa.com.au>
18339         * objects/flowchart/flowchart.c: add new shapes to flowchart sheet.
18341         * object/flowchart/pixmaps/...: corresponding pixmaps for new shapes.
18343         * objects/flowchart/magdrum.shape: 
18344         * objects/flowchart/offlinestore.shape: 
18345         * objects/flowchart/punchedtape.shape: 
18346         * objects/flowchart/transmittape.shape: 
18347         * objects/flowchart/punchedcard.shape: new shapes.
18349         * objects/flowchart/flowchart.c: add new shapes to flowchart sheet.
18351         * object/flowchart/pixmaps/...: corresponding pixmaps for new shapes.
18353         * objects/flowchart/collate.shape:
18354         * objects/flowchart/delay.shape:
18355         * objects/flowchart/extract.shape:
18356         * objects/flowchart/intstorage.shape:
18357         * objects/flowchart/magdisk.shape:
18358         * objects/flowchart/magtape.shape:
18359         * objects/flowchart/merge.shape:
18360         * objects/flowchart/or.shape:
18361         * objects/flowchart/sort.shape:
18362         * objects/flowchart/sumjunction.shape: new shapes.
18364 1999-10-15  Alexander Larsson  <alla@lysator.liu.se>
18366         * TODO (BUGS):
18367         Added bug:
18368         Entering an erronous command as print command
18369         crashes dia.
18371         * app/paginate_psprint.c:
18372         Save all print dialog values for next time.
18373         
18374         * app/Makefile.am:
18375         Remove custom lib from DIA_LIB_PATH.
18377 1999-10-14  James Henstridge  <james@daa.com.au>
18379         * objects/flowchart/flowchart.c: add new shapes to flowchart sheet.
18381         * object/flowchart/pixmaps/...: corresponding pixmaps for new shapes.
18382         
18383         * objects/flowchart/offpageconn.shape: 
18384         * objects/flowchart/manualop.shape: 
18385         * objects/flowchart/preparation.shape: 
18386         * objects/flowchart/manualinput.shape: 
18387         * objects/flowchart/predefdproc.shape: 
18388         * objects/flowchart/terminal.shape: new shapes in the flowchart sheet.
18390 1999-10-13  James Henstridge  <james@daa.com.au>
18392         * app/diapagelayout.[ch]: added accessors to paper information.  The
18393         widget should be just about complete now.
18395         * app/diapagelayout.[ch]: fleshed out the page setup widget a bit more.
18396         It actually does something now.
18398 1999-10-12  James Henstridge  <james@daa.com.au>
18400         * app/pixmaps/portrait.xpm, app/pixmaps/landscape.xpm: support pixmaps
18401         for the page layout widget.
18403         * app/diapagelayout.[ch]: start of page layout widget.  Not actually
18404         built yet as it is not complete.
18406         * objects/flowchart/flowchart.c: added new shapes to sheet.
18408         * objects/flowchart/display.shape:
18409         * objects/flowchart/transaction.shape: new shapes.
18411         * AUTHORS: added my name to the spec file.
18413         * dia.spec: include the dia desktop entry to the spec file.
18415         * Makefile.am: install the dia.desktop file.
18417         * dia.desktop: added a gnome desktop entry so you can start dia
18418         from the gnome panel menu.
18420 1999-10-11  James Henstridge  <james@daa.com.au>
18422         * objects/custom/custom_object.c:
18423         * objects/custom/shape_info.c: warning fixes.
18425         * objects/flowchart/document.shape: a shape file for the `document'
18426         flowchart shape.
18428         * lib/custom.h: new header with the custom shape prototypes.
18430         * app/app_procs.c: register custom objects as well.
18431         (register_objects_in): close shared libraries if they don't load
18432         correctly, and call g_module_make_resident on libraries that load
18433         correctly.
18435         * app/Makefile.am (dia_LDADD): added libcustom_objects.a to link list.
18437         * objects/custom/custom.c: removed get_version, added custom_ prefix
18438         to register_objects and register_sheets.
18440         * objects/custom/Makefile.am: converted to a normal library.
18442 1999-10-10  Alexander Larsson  <alla@lysator.liu.se>
18444         * app/lineprops_area.c:
18445         * app/render_svg.c:
18446         * lib/objchange.c:
18447         * objects/custom/shape_info.c:
18448         * objects/flowchart/box.c:
18449         * objects/flowchart/diamond.c:
18450         * objects/flowchart/ellipse.c:
18451         * objects/flowchart/parallelogram.c:
18452         * objects/network/flash.c:
18453         * objects/network/scead-plug.c:
18454         * objects/sybase/client.c:
18455         Removed -Wall warnings.
18456         
18457         * objects/network/bus.c:
18458         Removed unused functions.
18460         * objects/FS/flow-ortho.c:
18461         * objects/FS/flow-poly.c:
18462         * objects/FS/flow.c:
18463         * objects/FS/function.c:
18464         
18465         Implemented "non-implemented" undo for FS objects.
18466         Now at least it won't crash.
18467         
18468 1999-10-10  Alexander Larsson  <alla@lysator.liu.se>
18470         * objects/network/bus.c:
18471         Implemented undo.
18472         Handles are now added and removed using the object menu.
18473         Default to 6 handles instead of 10.
18474         Changed name from "Standard - Bus" to "Network - Bus". Kept old
18475         name for backwards compatibility.
18477         * objects/network/network.c:
18478         Changed name from "Standard - Bus" to "Network - Bus". Kept old
18479         name for backwards compatibility.
18481         * app/properties.[ch]:
18482         * app/undo.c:
18483         Update properties in properties dialog if the shown object
18484         is part of and ObjectChange (undo or redo).
18486         * lib/poly_conn.c:
18487         Remove old known bugs list.
18489         * objects/UML/class_dialog.c:
18490         Removed debug printf's.
18492 1999-10-10  James Henstridge  <james@daa.com.au>
18494         * objects/custom/custom.c (custom_object_load): new function that
18495         provides a nice entry point to the custom shape code for when it
18496         gets used by other libraries.
18498         * configure.in: removed 11 makefiles from AC_OUTPUT list.  This
18499         speeds builds up a bit.
18501         * */Makefile.am (EXTRA_DIST): include pixmaps in distribution.
18502         (SUBDIRS): do not descend into pixmaps subdirs.
18504         * */pixmaps/Makefile.am: removed -- incorporate into parent makefiles.
18505         This speeds up build process.
18507         * objects/custom/custom.c (sheets): made variable static.
18509         * objects/custom/custom_util.[ch] (custom_get_relative_filename):
18510         renamed function.
18512         * objects/custom/load_sheet.[ch] (custom_sheet_load): renamed function.
18514         * objects/custom/custom.c: look in ~/.shapes instead of
18515         ~/.dia_shapes as the per-user shapes directory.
18517         * app/preferences.c (prefs_save): save config to ~/.diarc.
18518         (prefs_load): load configuration from ~/.diarc.  If the file
18519         does not exist, fallback on the old ~/.diarc location.
18521         * app/app_procs.c (create_user_dirs): create the ~/.dia directory
18522         on startup.
18523         (register_all_objects): look for user specific objects in
18524         ~/.objects rather than ~/.dia_libs.
18526 1999-10-10  Fredrik Hallenberg  <hallon@lysator.liu.se>
18528         * configure.in:
18529         * app_procs.c:
18530         * objects/flowchart/box.c
18531         * objects/flowchart/ellipse.c
18532         * objects/flowchart/flowchart.c 
18533         Use gmodule for dynamic linking. As gmodule is using
18534         RTLD_GLOBAL i had to change flowchart box and ellipse
18535         so the typenames doesn't conflict with the standard
18536         box and ellipse.
18538         * message.c
18539         * commands.c
18540         Use button box to make dialogs look better.
18542 1999-10-09  Alexander Larsson  <alla@lysator.liu.se>
18544         * objects/UML/class_dialog.c:
18545         * objects/UML/class.h:
18546         Implemented undo for "UML - Class" objects.
18547         Not 100% tested yet.
18549         * objects/UML/classicon.c:
18550         * objects/UML/constraint.c:
18551         * objects/UML/dependency.c:
18552         * objects/UML/generalization.c:
18553         * objects/UML/implements.c:
18554         * objects/UML/large_package.c:
18555         * objects/UML/lifeline.c:
18556         * objects/UML/message.c:
18557         * objects/UML/object.c:
18558         * objects/UML/realizes.c:
18559         * objects/UML/state.c:
18560         * objects/UML/usecase.c:
18561         Removed warnings.
18562         
18563         * lib/connectionpoint.h:
18564         Fixed typo.
18565         
18566 1999-10-09  James Henstridge  <james@daa.com.au>
18568         * objects/custom/*.[ch]: added copyright notices to custom object
18569         files.
18571         * shapes/Circuit/hdiode.shape:
18572         * shapes/Circuit/hzener.shape: 
18573         * shapes/Circuit/opamp.shape:
18574         * shapes/Circuit/vdiode.shape:
18575         * shapes/Circuit/vzener.shape: made adjustments to make the circuit
18576         shapes look nice after the custom shape code changes.
18578         * objects/custom/README: updated docs to cover changes to drawing
18579         code.
18581         * objects/custom/custom_object.c (custom_draw): honour the line
18582         properties when drawing the shape.
18584         * objects/custom/shape_info.[ch]: added support for setting line
18585         properties for individual drawing elements in a custom shape.  You
18586         can set the dash style, dash length, cap style and join style.
18588 1999-10-07  James Henstridge  <james@daa.com.au>
18590         * objects/custom/shape_info.c (parse_style): added a few extra synonyms
18591         for foreground and background.
18593         * objects/custom/custom_object.c (custom_draw): use the new style
18594         information when drawing the object.
18596         * objects/custom/shape_info.[ch]: store all shape style info in the
18597         GraphicStyle structure.  This makes adding support for extra CSS
18598         attributes easier -- we don't have to keep adding extra arguments to
18599         a lot of functions.
18601 1999-10-05  James Henstridge  <james@daa.com.au>
18603         * lib/intl.c (unalias_lang): merged in changes from the i18n code
18604         swiped from gnome-libs.
18606 1999-10-03  Alexander Larsson  <alla@lysator.liu.se>
18608         * objects/standard/image.c (get_directory):
18609         Fix memleak. Found by Kjartan Maraas <kmaraas@online.no>
18611 1999-09-28  Alexander Larsson  <alla@lysator.liu.se>
18613         * lib/poly_conn.c (polyconn_destroy):
18614         Fix bug. Access of freed memory.
18615         Rememeber, you can't free the handles of an object
18616         before calling object_destroy(), as it unconnects the handles
18617         therefore referencing them.
18619 1999-09-28  Alexander Larsson  <alla@lysator.liu.se>
18621         * app/undo.c:
18622         undo_clear() didn't set stack->depth to zero.
18623         This made other undo functions crash after this had been called
18624         on a "full" stack.
18625         
18626         * dia.xpm:
18627         Slightly modified by Chris Love <clove@exactis.com>
18629 1999-09-19  Alexander Larsson  <alla@lysator.liu.se>
18631         * objects/UML/class.h: 
18632         * objects/UML/class_dialog.c:
18633         Retrun NULL ObjectChange on class property change.
18634         This means no crashes, but "UML - Class" doesn't support undo yet.
18635         
18636 1999-09-19  Alexander Larsson  <alla@lysator.liu.se>
18637         
18638         * lib/text.c:
18639         Indentation fix.
18641         * objects/UML/classicon.c:
18642         * objects/UML/dependency.c:
18643         * objects/UML/generalization.c:
18644         * objects/UML/implements.c:
18645         * objects/UML/large_package.c:
18646         * objects/UML/lifeline.c:
18647         * objects/UML/message.c:
18648         * objects/UML/object.c:
18649         * objects/UML/realizes.c:
18650         * objects/UML/state.c:
18651         * objects/UML/usecase.c:
18652         Update to new undo (w. get/set_state).
18653         Add object menu to add/delete segments.
18655 1999-09-17  Alexander Larsson  <alla@lysator.liu.se>
18657         * app/menus.c:
18658         Add equal distance alignment.
18660         * app/object_ops.c:
18661         Add equal distance alignment.
18662         Fix bug in adjacent alignment.
18664 1999-09-16  Alexander Larsson  <alla@lysator.liu.se>
18666         * objects/UML/constraint.c: 
18667         Update to new undo (w. get/set_state).
18669 1999-09-15  Alexander Larsson  <alla@lysator.liu.se>
18671         * app/paginate_psprint.c:
18672         Save (parts, more todo) of the info in the print dialog to the
18673         next time it's opened.
18674         Patch from Yo Ric Dude <ricdude@toad.net>
18676 1999-09-14  Alexander Larsson  <alla@lysator.liu.se>
18678         * configure.in:
18679         Updated version string to 0.41cvs.
18681         * objects/UML/assocition.c:
18682         Update to new undo (w. get/set_state).
18683         Add object menu to add/delete segments.
18685         * app/app_procs.c:
18686         Added function debug_break() and called it after all
18687         objects and sheets are loaded. Place a breakpoint here if you
18688         want to debug objects. All symbols should be loaded.
18690 1999-09-12  James Henstridge  <james@daa.com.au>
18692         * app/menus.c (display_menu_items): added print menu item.
18693         (filemenu): always add print menu item -- even if gnome-print is
18694         not installed.
18696         * app/commands.h, app/commands.c (file_print_callback): the print
18697         menu item is now available for both gnome-print and non gnome-print
18698         setups.
18700         * app/paginate_psprint.c (diagram_print_ps): show a dialog to let you
18701         print with the non gnome-print driver.
18703 1999-09-11  James Henstridge  <james@daa.com.au>
18705         * app/paginate_gnomeprint.c (diagram_print_gnome): moved the gnome
18706         printer dialog code out of commands.c.
18708         * app/paginate_psprint.c: new file containing the pagination code for
18709         psprint.
18711         * app/render_eps.c: made a few modifications so as well as producing
18712         EPS files, this renderer can be set up to do postscript printing.
18713         This basically entailed adding an extra function to create a RenderEPS
18714         renderer which did not bother setting the viewport for the document.
18715         That was left for the pagination code.
18717 1999-09-10  James Henstridge  <james@daa.com.au>
18719         * app/render_gnomeprint.c (draw_ellipse, fill_ellipse): since
18720         gnome-print does not support elliptic arcs at the moment, approximate
18721         the ellipse with eight bezier curves.  This gives a pretty good
18722         match to a true ellipse.
18724 1999-09-09  James Henstridge  <james@daa.com.au>
18726         * app/commands.c (file_gnome_print_callback): added support for
18727         scaling the diagram.  Also fixed a few other bugs.
18729         * app/paginate_gnomeprint.c (print_page): added ability to scale
18730         document.  Fixed up test to see if the page has no objects on it.
18731         This should prevent some blank pages being printed.  Non square
18732         objects such as lines could still cause problems.
18734 1999-09-08  James Henstridge  <james@daa.com.au>
18736         * app/commands.c (file_gnome_print_callback): changed from using the
18737         standard printer selection dialog to one that also has a paper size
18738         selector as well.
18740         * commands.[ch]: added callbacks for the print menu item.  Currently
18741         it only does A4 output.  I will make it configurable soon.
18742         
18743         * app/menus.c: add a print diagram menu item if gnome-print support
18744         is enabled.
18745         
18746         * app/paginate_gnomeprint.c, app/paginate_gnomeprint.h: this is a
18747         bit higher level than the gnome-print renderer.  It splits the
18748         diagram into page size chunks and then renders them.  For each
18749         page, it only renders the objects whose bounding box intersects
18750         the page, and it sets the clip mask so that the diagram does not
18751         overlap the margins.
18752         
18753         * app/render_gnomeprint.c, app/render_gnomeprint.h: added a renderer
18754         that uses gnome-print as its back end.
18755         
18756         * configure.in: added a check for gnome-print.  It is disabled by
18757         default because the code is not really working correctly yet.
18759         * app/menus.c: the delete object menu item was missing from the
18760         GnomeUIInfo style menus.
18762 1999-09-07  Fredrik Hallenberg  <hallon@lysator.liu.se>
18764         * configure.in
18765         Added japanese to ALL_LINGUAS.
18766         Fix for Linux on Alpha.
18768 1999-09-07  Alexander Larsson  <alla@lysator.liu.se>
18770         * app/create_object.c (create_object_button_press):
18771         Always initialize tool->obj. Otherwise we store a null
18772         in the undo Change.
18774         * lib/text.c:
18775         Set linestyle before drawing cursor.
18776         Fix undo of backwards delete.
18778 1999-09-05  James Henstridge  <james@daa.com.au>
18780         * dia.spec: updated spec file to distribute $(prefix)/share/dia.
18782         * app/render_svg.c (draw_image): some fixes so that the appropriate
18783         style attributes are set.  Before it was setting line styles on
18784         fill_* functions.  Now it only does this for the draw_* variants.
18786         * app/Makefile.am (run_dia.sh): set the DIA_SHAPE_PATH environment
18787         variable so that custom shapes can be loaded.
18789         * shapes/: new directory for custom shapes.  The Circuit sheet has
18790         been moved here.
18792 1999-09-02  James Henstridge  <james@daa.com.au>
18794         * TODO: removed a few todo items that have been implemented.
18796         * app/interface.c (create_sheets): enabled the popup page menu to the
18797         notebook.  This can make it easier to select different sheets.
18799         * object/custom/Circuit/: added diode, zener diode, ground point and
18800         operational amplifier shapes.
18801         
18802         * objects/custom/Makefile.am: added a note about adding DEBUG_CUSTOM
18803         if you want the output.
18805         * objects/custom/shape_info.c (parse_path): same here.
18807         * objects/custom/load_sheet.c (load_with_readdir): don't print so
18808         much debugging output.  To get the previous level of output, define
18809         DEBUG_CUSTOM.
18811         * objects/custom/shape_info.c (parse_svg_node): polygons were being
18812         recorded as polylines in the ShapeInfo structure.
18814         * objects/custom/README: some notes on writing new custom shapes.
18815         
18816 1999-09-01  James Henstridge  <james@daa.com.au>
18818         * objects/custom/Circuit/hinductor.*:
18819         * objects/custom/Circuit/vinductor.*: added inductor shapes that
18820         also test out the bezier curve and SVG path support.
18821         
18822         * objects/custom/custom_object.c (custom_draw): added support for
18823         drawing bezier paths and filled shapes.
18825         * objects/custom/shape_info.c (parse_path): new function to parse
18826         SVG path elements.  It does not do quadratic beziers or elliptic
18827         arcs though.  Only moves, lines and cubic beziers.
18828         (*): added support for paths.
18830 1999-08-31  James Henstridge  <james@daa.com.au>
18832         * objects/sybase/ltm.c (render_to_store): use the newer bezier API.
18834         * app/render_svg.c (draw_bezier, fill_bezier): updated renderer
18835         interface
18837         * app/render_eps.c (draw_bezier, fill_bezier): updated renderer
18838         interface
18840         * app/render_gdk.c (draw_bezier, fill_bezier): updated renderer
18841         interface.
18843         * lib/render_store.[ch]: use newer bezier functions.
18845         * lib/render.h: changed the bezier drawing functions to use an array
18846         of BezPoint structures instead of normal Point structures to allow
18847         lineto's mixed in with the curveto's.
18848         
18849         * objects/custom/Circuit/pnp.*: added pnp transistor shape.
18850         
18851         * objects/custom/Circuit/Makefile.am (SHAPES): added index.sheet and
18852         xpm images for different shapes to Makefile.
18854         * objects/custom/custom_object.c (custom_object_new): set the icon
18855         for the sheet button if there is one.  Otherwise fall back on the
18856         default custom object icon.
18858         * objects/custom/shape_info.c (load_shape_info): read the sheet
18859         icon name from the shape file.
18861         * app/interface.c (create_sheet_page): if sheet_obj->pixmap == NULL,
18862         check the pixmap_file field for the name of a pixmap file to load
18863         for the tool.
18865         * lib/sheet.h (SheetObj): added pixmap_file field to structure.  It is
18866         at the end of the structure, and it isn't used if the pixmap field
18867         is non NULL, so it should not break binary compatibility.
18869         * objects/custom/load_sheet.[ch]: moved sheet loading code here.  Also
18870         added support for the use of an index.sheet file so you can specify
18871         the ordering of the shapes in the sheet, and also internationalise
18872         the sheet name and actually be able to give a description.  The old
18873         readdir based sheet loading code acts as a fallback if an index.sheet
18874         file can not be found.
18876         * objects/custom/custom_util.[ch]: new file containing useful routines
18877         needed by the custom object code.  Currently only contains a simple
18878         routine for resolving relative paths.
18880         * objects/custom/custom_object.c (custom_draw): fixed problem with
18881         drawing rectangles if the shape has been flipped.
18883 1999-08-30  James Henstridge  <james@daa.com.au>
18885         * objects/custom/custom_object.c (custom_get_object_menu): allow
18886         flipping of custom shapes.  This uses the miggle click object
18887         menu.
18889         * objects/custom/Circuit/npn.shape: fix aspect ratio.
18891         * objects/custom/custom_object.c (custom_update_data): honour the
18892         aspect ratio constraints.
18894         * objects/custom/shape_info.c (load_shape_info): updated aspect ratio
18895         tag parsing, so you can specify a free, fixed or a range for aspect
18896         ratios for the shape.
18898 1999-08-29  James Henstridge  <james@daa.com.au>
18900         * objects/custom/test.xml, objects/custom/Circuit/*.shape: fixed
18901         up shape namespace tag.
18903         * objects/custom/shape_info.c (load_shape_info): check xml:lang
18904         attribute on <description> elements to support i18n for custom
18905         shape descriptions.
18906         Also changed the shape namespace for custom shapes to something
18907         a little more sensible.
18909         * lib/dummy_dep.h (dummy_dep): added extra dummy dependency.
18911         * lib/intl.c: new file containing some functions for i18n stuff.
18913         * app/layer_dialog.c (create_button_box): fixed a warning.
18915         * objects/custom/custom_object.c: use current line style.  Save dash
18916         length.
18918         * objects/flowchart/diamond.c: use current line style.  Save dash
18919         length.
18921         * objects/flowchart/parallelogram.c: use current line style.  Save
18922         dash length.
18924         * objects/flowchart/ellipse.c: use current line style.  Save dash
18925         length.
18927         * objects/flowchart/box.c: use current line style.  Save dash length.
18929         * objects/standard/ellipse.c: make ellipse use current line style.
18931         * objects/standard/box.c: use the line style set in the toolbox for
18932         new boxes, and remember the dash length.
18934         * app/commands.c (view_toggle_rulers_callback): fix reshowing of
18935         rulers.
18937 1999-08-24  James Henstridge  <james@daa.com.au>
18939         * objects/flowchart/ellipse.c (ellipse_update_data): made some changes
18940         to try to stop ellipse to get infinite width/height when we resize,
18941         while trying to keep the text inside the ellipse.
18943         * objects/flowchart/box.c, objects/flowchart/parallelogram.c,
18944         * objects/flowchart/diamond.c, objects/flowchart/ellipse.c: fixed
18945         resizing behaviour, so that you can't push objects round the screen
18946         with the resize handles.
18948         * app/lineprops_area.c (dia_arrow_chooser_init, dia_line_chooser_init):
18949         get the OK buttons in the dialogs to take default clicks.
18951         * objects/custom/custom_object.c: added code so that resizing the
18952         shape does not end up pushing it round the screen.
18954 1999-08-23  Alexander Larsson  <alla@lysator.liu.se>
18956         * app/display.[ch]:
18957         Generate rectangle with the union of the damaged regions.
18958         This is used to optimize the grid paint and the object rendering.
18959         display_render_pixmap passes this info to grid_draw() and data_render().
18961         * app/grid.[ch]:
18962         grid_draw doesn't draw grid lines outside of damaged rectangle.
18963         Sets dashlength when drawing non-solid grid.
18964         
18965         * lib/diagramdata.[ch]:
18966         data_render() and layer_render() takes an optional damaged rectangle
18967         argument. No objects not intersecting this are drawn.
18969         * app/diagram.c:
18970         Fix warning.
18971         Call data_render with NULL update rectangle.
18972         
18973 1999-08-23  James Henstridge  <james@daa.com.au>
18975         * objects/custom/custom_object.c (custom_update_data): if the aspect
18976         ratio is fixed, make sure the shape is not distorted.
18978         * object/custom/shape_info.h, objects/custom/shape_info.c: notice if
18979         a <fixaspectratio/> tag is given in the shape file.
18981         * objects/custom/shape_info.[ch], objects/custom/custom_object.c:
18982         added support for stroke-width, stroke and fill CSS attributes
18983         specified in style attributes of the SVG elements.  The line width
18984         is relative to the user specified line width.  The stroke and fill
18985         attributes can only be used to swap the foreground/background
18986         colours.
18988         * lib/widgets.c (dia_line_style_selector_set_linestyle): set the
18989         sensitivity on the dash length selector when this function is called.
18991         * objects/standard/arc.c: same.  Also handle dash length.
18992         * objects/standard/zigzagline.c: same.
18993         * objects/standard/polyline.c: same.  Also handle dash length.
18994         * objects/standard/line.c: use default arrow/line styles.
18996         * app/interface.c: added callbacks to set the default attributes.
18998         * lib/attributes.c: added implementations of these functions.
19000         * lib/attributes.h: added extra prototypes for the new line properties
19001         area in the toolbox.
19003         * app/interface.c (create_lineprops_area): added line properties
19004         area to bottom of toolbox.
19006         * app/lineprops_area.h: a header exporting a few routines of the
19007         line properties area widgets.
19009         * app/lineprops_area.c: new file containing a selector for arrows
19010         and line styles to go in the main toolbox.
19012 1999-08-22  Alexander Larsson  <alla@lysator.liu.se>
19014         * HACKING:
19015         Update Gtk+ 1.0.5 comment to 1.2.0.
19017         * INSTALL:
19018         Demand libtool 1.3
19020         * acconfig.h:
19021         Add HAVE_LIBPOPT
19023         * configure.in:
19024         Make sure we don't propagate -ldl and -lpopt to all LIBS
19025         by adding new var APP_LIBS that only app/dia links with.
19026                 
19027         * app/Makefile.am:
19028         Update run_dia.sh to load custom and flowchart objects.
19030         * objects/ER/Makefile.am:
19031         * objects/FS/Makefile.am:
19032         * objects/UML/Makefile.am:
19033         * objects/network/Makefile.am:
19034         * objects/standard/Makefile.am:
19035         * objects/sybase/Makefile.am:
19036         Don't build versioned libs.     
19037         
19038 1999-08-22  James Henstridge  <james@daa.com.au>
19040         * configure.in: added objects/custom/Circuit/Makefile to AC_OUTPUT
19041         list.
19043         * objects/Makefile.am (SUBDIRS): added custom to subdir list -- it
19044         should actually work a bit now.
19046         * objects/custom/Circuit/*: a test sheet for the custom shape code.
19047         It is a small collection of circuit elements.
19049         * objects/custom/shape_info.c: fixed up loading of polylines and
19050         polygons.  Before it was removing negative signs :(
19052         * objects/custom/pixmaps/custom.xpm: drew the custom shape icon.  A
19053         placeholder was here before.  I still need to work out how to set
19054         icons for individual custom shapes.
19055         
19056         * objects/custom/custom.c: added code to load the shapes into sheets
19057         properly.  The shape files should be arranged into directories, and
19058         each directory represents a different sheet in the toolbox.  This
19059         will make it very easy to distribute a collection of dia shapes as
19060         a tarball.  I still need to work out internationalisation, and maybe
19061         also shape ordering in the sheet.
19063         * objects/custom/custom_object.c: fixed up dialogs for these objects.
19064         (custom_create): fix for objects without text areas.
19066         * objects/custom/shape_info.h, objects/custom/custom_object.c: loading
19067         and saving of custom object works correctly now.
19069 1999-08-21  James Henstridge  <james@daa.com.au>
19071         * objects/flowchart/ellipse.c: 
19072         * objects/flowchart/diamond.c: 
19073         * objects/flowchart/parallelogram.c: 
19074         * objects/flowchart/box.c: Fixed up a few bugs in these objects when
19075         copying or loading these object types.  Not all the connection
19076         points would be initialised correctly.
19078         * objects/flowchart/Makefile.am (libflowchart_objects_la_LDFLAGS):
19079         similar here.
19081         * objects/custom/Makefile.am (libcustom_objects_la_LDFLAGS): do not
19082         build a versioned library.  It will only ever be dlopen'd, so this
19083         is not a problem.
19085         * objects/custom/custom_object.c (custom_distance_from): allow
19086         selecting the object by clicking on the text.  This fixes problems
19087         where the text box is outside the graphic.
19089         * objects/custom/shape_info.c (load_shape_info): fixed up reading
19090         of connections points.  It should be possible to add connections
19091         to custom objects now.
19093         * objects/custom/custom_object.c (custom_update_data): fixed resizing
19094         due to changes to text.
19096         * configure.in: added extra makefiles.
19097         
19098         * objects/custom/shape_info.[ch]:
19099         * objects/custom/custom_object.c:
19100         * objects/custom/custom.c: the starts of custom shape support in dia.
19101         This is not built by default at the moment, since it is not quite
19102         complete.  When it is, it will let you create more shapes for dia
19103         without writing a line of C.  Its implementation includes buzzwords
19104         such as XML and SVG, so it must be good :)
19106 1999-08-19  Karsten Weiss  <karsten@addx.au.s.shuttle.de>
19108         * app/app_procs.c (app_exit): Use button labels "Quit" and
19109         "Cancel" instead of "Yes" and "No".
19110         Set default action to "Cancel" instead of "Quit".
19112 1999-08-19  James Henstridge  <james@daa.com.au>
19114         * objects/flowchart/flowchart.c: added ellipse object.
19115         
19116         * objects/flowchart/ellipse.c: a new shape for the flowchart toolbox.
19118 1999-08-18  James Henstridge  <james@daa.com.au>d
19120         * app/color_area.c (color_area_edit): small fix to prevent dia from
19121         segfaulting when you try to change the default foreground/background.
19123 1999-08-17  Alexander Larsson  <alla@lysator.liu.se>
19125         * app/diagram.[ch] (diagram_redraw_all):
19126         Added function that redraws all diagrams.
19128         * app/preferences.c (prefs_apply):
19129         Call diagram_redraw_all when prefs are changed.
19131         * app/render_svg.c:
19132         Don't use xmlEncodeEntitiesReentrant(). It doesn't exist on
19133         older libxml's, and the old version works good enought here.
19134         
19135 1999-08-17  James Henstridge  <james@daa.com.au>
19137         * lib/widgets.c: changed handlers that were connected to the GtkButton
19138         "pressed" signal to connect to the "clicked" signal.  This removes the
19139         problem where dialogs are inactive until you click a mouse button
19140         after using a colour selector.
19142         * configure.in: added extra makefiles to AC_OUTPUT list.
19143         
19144         * objects/Makefile.am (SUBDIRS): added flowchart module
19146         * objects/flowchart/*: a collection of shapes for use in flowcharts.
19148         * app/color_area.c (color_area_events): similar here.
19150         * app/linewidth_area.c (linewidth_area_events): sometimes a configure
19151         event is recieved with event->width == 0, which causes a warning if we
19152         try to create a pixmap of that width.
19154         * app/preferences.c, app/preferences.h, app/grid.c: added code to
19155         allow you to configure the colour of the grid, and also lets you
19156         set the grid to use dotted lines instead of solid ones.
19157         
19158         * app/commands.c, app/commands.h, app/diagram.c, app/diagram.h,
19159         app/menus.c, app/Makefile.am: added menu entry for exporting SVG files.
19160         
19161         * app/render_svg.h, app/render_svg.c: an SVG (Scalable Vector Graphics)
19162         export filter.  It is not quite complete, but for most shapes it
19163         works as expected.  Fonts still need a bit of work.
19165 1999-08-11  Robert Brady  <rwb197@ecs.soton.ac.uk>
19167         * configure.in: Added "en_GB" to ALL_LINGUAS.
19169 1999-08-04  Fredrik Hallenberg  <hallon@lysator.liu.se>
19171         * menus.c
19172         Added Undo and Redo to GNOME menus.
19173         
19174         * objects/ER/attribute.c:
19175         * objects/ER/entity.c:
19176         * objects/ER/participation.c:
19177         * objects/ER/relationship.c:
19178         Added get/set_state functions.
19180         * objects/ER/participation.c:
19181         Added add/delete segment.
19183         * po/sv.po
19184         Updated Swedish translation.
19186 1999-07-25  Alexander Larsson  <alla@lysator.liu.se>
19188         * app/preferences.[hc]:
19189         Added undo_depth pref.
19190         
19191         * app/undo.[ch]:
19192         Never grow stack larger than pref.undo_depth.
19193         undo_depth == 0 means unlimited.
19194         Converted printfs to conditionally compiled DEBUG_PRINTFs.
19195         
19196 1999-07-25  Alexander Larsson  <alla@lysator.liu.se>
19198         * app/diagram.c:
19199         * app/group.c:
19200         * lib/object.h:
19201         * lib/render_object.c:
19202         * objects/ER/attribute.c:
19203         * objects/ER/entity.c:
19204         * objects/ER/participation.c:
19205         * objects/ER/relationship.c:
19206         * objects/FS/flow-ortho.c:
19207         * objects/FS/flow-poly.c:
19208         * objects/FS/flow.c:
19209         * objects/FS/function.c:
19210         * objects/UML/actor.c:
19211         * objects/UML/association.c:
19212         * objects/UML/class.c:
19213         * objects/UML/classicon.c:
19214         * objects/UML/component.c:
19215         * objects/UML/constraint.c:
19216         * objects/UML/dependency.c:
19217         * objects/UML/generalization.c:
19218         * objects/UML/implements.c:
19219         * objects/UML/large_package.c:
19220         * objects/UML/lifeline.c:
19221         * objects/UML/message.c:
19222         * objects/UML/note.c:
19223         * objects/UML/object.c:
19224         * objects/UML/realizes.c:
19225         * objects/UML/small_package.c:
19226         * objects/UML/state.c:
19227         * objects/UML/usecase.c:
19228         * objects/network/bus.c:
19229         * objects/standard/arc.c:
19230         * objects/standard/box.c:
19231         * objects/standard/ellipse.c:
19232         * objects/standard/image.c:
19233         * objects/standard/line.c:
19234         * objects/standard/polyline.c:
19235         * objects/standard/textobj.c:
19236         * objects/standard/zigzagline.c:
19237         Removed all traces of is_empty(). It doesn't work in an
19238         Undo/Redo world.
19240 1999-07-25  Alexander Larsson  <alla@lysator.liu.se>
19242         * app/diagram.c:
19243         * app/group.[ch]:
19244         * app/undo.[ch]:
19245         Undoable grouping and ungrouping.
19247         * app/layer_dialog.c:
19248         * lib/diagramdata.[ch]:
19249         Undoable layer ops.
19251         * app/modify_tool.c:
19252         Undoable unconnect on handle move.
19254         * lib/orth_conn.[ch]:
19255         Working undoable add/remove segment.
19256         Removed endpoint_handles from OrthConn, renamed
19257         midpoint_handles to handles and put the endpoint
19258         handles there.
19260         * objects/standard/zigzagline.c:
19261         * objects/ER/participation.c:
19262         * objects/UML/association.c:
19263         * objects/UML/dependency.c:
19264         * objects/UML/generalization.c:
19265         * objects/UML/realizes.c:
19266         Update for the changes in OrthConn
19267         
19268 1999-07-23  Karsten Weiss  <karsten@addx.au.s.shuttle.de>
19270         * configure.in: Added "de" to ALL_LINGUAS.
19272 1999-07-17  Alexander Larsson  <alla@lysator.liu.se>
19274         * dia.1:
19275         Fixed typo.
19277         * app/display.c:
19278         * po/da.po:
19279         * po/fr.po:
19280         * po/hu.po:
19281         * po/no.po:
19282         * po/pl.po:
19283         * po/sv.po:
19284         Don't have the <Display> etc part of the menu strings
19285         i18n:ed. Patch from Fabrice.Bellet@imag.fr.
19287         * app/diagram.c:
19288         Don't have the <Display> etc part of the menu strings
19289         i18n:ed. Patch from Fabrice.Bellet@imag.fr.
19290         Don't remove is_empty() objects, that don't work with undo.
19292         * lib/objchange.[ch]:
19293         New files.
19294         Definition of ObjectChange. This is essentially an Change
19295         exported to the object libs. It encapsulates a change made
19296         to an objects internals. It can be applied, reverted and freed.
19297         There are also utility functions for doing ObjectChanges that
19298         only get/set the whole state of an object to store the change.
19299         This cannot be used when the object change deletes or adds a
19300         object which has references from other objects, eg. Handles which
19301         might be connected.
19303         * lib/Makefile.am:
19304         Added objchange.c and objchange.h.
19306         * lib/dia_image.c:
19307         Return NULL when loading fails.
19309         * lib/diamenu.h:
19310         Menu callbacks return an ObjectChange.
19312         * lib/dummy_dep.h:
19313         Reference objchange.o
19315         * lib/focus.h:
19316         Key events return ObjectChange if they modify the object.
19318         
19319         * lib/object.h:
19320         Added object_add_handle_at() function.
19321         Apply properties returns an ObjectChange.
19322         Remove ObjectState and the get/set state functions, these
19323         don't always work. Use the new ObjectChange instead.
19324         
19325         * lib/object.c:
19326         Added object_add_handle_at() function implementation.
19327         
19328         * lib/orth_conn.[ch]:
19329         Use ObjectChange. Not finished yet.
19330         Removed get/set/free state functions
19332         * lib/poly_conn.[ch]:
19333         Use ObjectChange.
19334         Don't remove segments that are small.
19335         Removed get/set/free state functions
19337         * lib/text.[ch]:
19338         Use ObjectChange.
19339         Added functions to get/set all text attributes.
19341         * objects/standard/arc.c:
19342         * objects/standard/box.c:
19343         * objects/standard/ellipse.c:
19344         * objects/standard/image.c:
19345         * objects/standard/line.c:
19346         * objects/standard/polyline.c:
19347         * objects/standard/textobj.c:
19348         * objects/standard/zigzagline.c:
19349         Use ObjectChange.
19350         fixed bug in image_set_state.
19351         zigzagline.c not finished yet.
19353         * app/disp_callbacks.c:
19354         Use ObjectChange that are returned from menu callbacks and
19355         key_events for undo.
19357         * app/properties.c:
19358         Use ObjectChange that are returned from properties apply
19359         for undo.
19361         * app/undo.c:
19362         * app/undo.h:
19363         New undo type: ObjectChangeChange. This wraps a change to the
19364         internals of an object (and ObjectChange) in code that does
19365         app specific stuff (object_add_updates etc.)
19367 1999-07-11  Alexander Larsson  <alla@lysator.liu.se>
19369         * lib/orth_conn.[ch]:
19370         Added code for add/delete segment.
19372         * objects/standard/zigzagline.c:
19373         Use the new orth_conn code.
19374         
19376 1999-07-08  Fredrik Hallenberg  <hallon@lysator.liu.se>
19378         * objects/FS/Makefile.am
19379         Removed fs.h from sources.
19381         * Makefile.am
19382         * dia.1
19383         Added man page.
19385 1999-07-07  Alexander Larsson  <alla@lysator.liu.se>
19387         * app/disp_callbacks.c (ddisplay_canvas_events):
19388         Fix for bug. Every other arrow-key press got lost.
19389         patch from Mr. Data Esq. <data@r47h102.res.gatech.edu>
19391         * INSTALL:
19392         change automake.sh to autogen.sh
19393         
19394 1999-06-24  Alexander Larsson  <alla@lysator.liu.se>
19396         * app/diagram.c:
19397         Don't remove 'empty' objects.
19398         This violent destruction of objects won't work
19399         with the new undo framework.
19401         * app/disp_callbacks.c:
19402         Save undo info for object menu calls and key_events.
19404         * app/properties.c:
19405         Save undo info on properties apply.
19407         * lib/dia_image.[ch]:
19408         Add refcounting for images.
19410         * app/render_eps.c:
19411         * app/render_gdk.c:
19412         * lib/render.h:
19413         DiaImage * -> DiaImage
19415         * app/undo.[ch]:
19416         Add undo functions for object state changes.
19418         * lib/focus.h:
19419         * lib/text.c:
19420         change of semntics for focus->key_event.
19421         Now returns TRUE if the object recieving the event
19422         was changed.
19424         * lib/object.h:
19425         Comment changes.
19427         * lib/orth_conn.[ch]:
19428         Don't automatically create and delete segments when
19429         handles are moved. This is incompatible with undo.
19430         Added state get, set and free functions.
19432         * lib/orth_conn.[ch]:
19433         Added state get, set and free functions.
19435         * objects/UML/object.c:
19436         * objects/UML/uml.c:
19437         Fixed typo "UML - Objet" -> "UML - Object".
19438         Saved old for backwards compatibility.
19440         * objects/standard/arc.c:
19441         * objects/standard/box.c:
19442         * objects/standard/ellipse.c:
19443         * objects/standard/image.c:
19444         * objects/standard/line.c:
19445         * objects/standard/polyline.c:
19446         * objects/standard/textobj.c:
19447         * objects/standard/zigzagline.c:
19448         Added get/set state functions.
19449         Textobj has a redo crash-bug.
19450         Zigzagline needs object menus to add segments.
19451         
19453 1999-06-20  Alexander Larsson  <alla@lysator.liu.se>
19455         * app/render_eps.c (set_dashlength):
19456         Don't generate eps files with zero dash-length.
19458 1999-06-16  Alexander Larsson  <alla@lysator.liu.se>
19460         * app/commands.c:
19461         * app/create_object.c:
19462         * app/undo.[ch]:
19463         Finished undo for create and paste.
19464         
19465         * lib/object.h:
19466         Started properties undo.
19468 1999-06-14  Alexander Larsson  <alla@lysator.liu.se>
19470         * TODO:
19471         Added resizeable groups.
19473         * app/app_procs.c:
19474         Removed unused variable.
19476         * app/commands.c:
19477         * app/undo.[ch]:
19478         Undo/redo for cut/delete done.
19480         * app/create_object.c:
19481         * app/modify_tool.c:
19482         * lib/diagramdata.[ch]:
19483         * app/diagram.[ch]:
19484         renamed diagram_add_selected -> diagram_select
19485         renamed diagram_remove_selected -> diagram_unselect
19486         
19487         * app/properties.[ch]:
19488         Added properties_hide_if_shown() function.
19490 1999-06-13  Alexander Larsson  <alla@lysator.liu.se>
19492         * app/undo.[ch]:
19493         * app/Makefile.am:
19494         Undo functions.
19495         
19496         * app/commands.[ch]
19497         * app/modify_tool.[ch]
19498         * app/object_ops.[ch]
19499         * app/connectionpoint_ops.c
19500         * app/menus.c
19501         Use undo functions.
19502         WARNING: Not finished. Will break.
19503         Finished: move object, move handle.
19505         * app/diagram.[ch]
19506         Added diagram_selected_break_external() function.
19507         It removes all connections between selected objects
19508         and non-selected.
19509         Add undo stack to Diagram.
19510         
19511         * lib/diagramdata.[ch]
19512         Added layer_remove_objects() function
19513         
19514 1999-06-11  Fredrik Hallenberg  <hallon@lysator.liu.se>
19516         * objects/FS/Makefile.am
19517         * objects/sybase/Makefile.am
19518         Now uses GNOME_CFLAGS.
19520         * app/app_procs.c
19521         Now compiles with GNOME even if popt.h isn't available.
19523 1999-06-10  Alexander Larsson  <alla@lysator.liu.se>
19525         * configure.in
19526         * objects/Makefile.am
19527         * objects/sybase/*
19528         First version of sybase objects from
19529         Brian Bruns <camber@umcc.ais.org>
19531 1999-06-10  Fredrik Hallenberg  <hallon@lysator.liu.se>
19533         * configure.in
19534         Added fr to ALL_LINGUAS
19536 1999-06-09  Fredrik Hallenberg  <hallon@lysator.liu.se>
19538         * configure.in
19539         * app/app_procs.c
19540         Popt-code is activated if popt is available.
19542 1999-06-08  Alexander Larsson  <alla@lysator.liu.se>
19544         This is a patch from David Thompson <dcthomp@mail.utexas.edu>
19545         
19546         * lib/orth_conn.[ch]:
19547         Added orthconn_get_middle_handle()
19549         * lib/text.[ch]:
19550         Added text_set_cursor_at_end()
19551         
19552         * objects/FS/*
19553         Added first version of functions structure diagrams.
19554         
19555 1999-05-24  Alexander Larsson  <alla@lysator.liu.se>
19557         * app/modify_tool.c:
19558         Include math.h to remove warning.
19560         * app/commands.c (dialogs_properties_callback):
19561         Bring up correct properties dialog when selected
19562         from menu.
19563         From Dan Cohn <dan@internap.com>
19565 1999-05-20  Alexander Larsson  <alla@lysator.liu.se>
19567         Patch from Lars R. Clausen 
19568         
19569         * app/modify_tool.c:
19570         Changed abs to fabs.
19572 1999-05-19  Alexander Larsson  <alla@lysator.liu.se>
19574         * INSTALL: 
19575         * configure.in:
19576         Require Gtk+ 1.2.0
19578 1999-05-18  Alexander Larsson  <alla@lysator.liu.se>
19580         Patches from Dan Cohn <dan@internap.com>
19581         
19582         * app/commands.[ch]: 
19583         * app/display.[ch]: 
19584         * app/menus.c:
19585         * app/preferences.[ch]:
19586         Implements ability to turn on/off connection points in
19587         current drawing and in global prefs.
19589 1999-05-18  Alexander Larsson  <alla@lysator.liu.se>
19591         * lib/widgets.c (dia_line_style_selector_init): 
19592         Fixed warnings.
19593         
19594         * lib/diagramdata.c (layer_update_extents):
19595         Fixed uninitialized variable error.
19597 1999-05-17  Alexander Larsson  <alla@lysator.liu.se>
19599         * lib/dia_image.c:
19600         Made some changes to the gdk_imlib visual+colormap setup.
19602 1999-05-17  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
19604         * objects/UML/usecase.c: 
19605        * objects/UML/lifeline.c
19606         Fine tunning.
19608         * objects/UML/object.c: 
19609         * objects/UML/message.c: 
19610         Changed font from Courier to Helvetica.
19612         * lib/widgets.c: 
19613         * lib/widgets.h:
19614         Added dash lenth to the LineStyle widget.
19615         
19616         * objects/standard/ellipse.c :
19617         * objects/standard/zigzagline.c: 
19618         * objects/standard/line.c: 
19619         Added dash lenght property.
19621 1999-05-16  Alexander Larsson  <alla@lysator.liu.se>
19623         * app/render_eps.c:
19624         First shot at latin1 encoded eps files.
19625         Works, but the eps files get a bit large.
19626         
19627 1999-05-16  Alexander Larsson  <alla@lysator.liu.se>
19629         * objects/UML/class.[ch]: 
19630         * objects/UML/uml.[ch]:
19631         Reverted the line wrap changes.
19632         Some day this might return, but it has to be selectable and
19633         default to off for loaded objects, otherwise it breaks file
19634         format compatibility.
19635         There was also some complains about how it looked, so a making it
19636         selectable is good for this too.
19638 1999-05-15  Alexander Larsson  <alla@lysator.liu.se>
19640         * objects/UML/class.[ch]:
19641         Some indentation cleanup.
19642         Added wrap_lines variable to class.
19643         I'll fix the line break stuff tomorrow.
19645 1999-05-13  Alexander Larsson  <alla@lysator.liu.se>
19647         * lib/dummy_dep.h:
19648         Added ref to poly_conn.o.
19650         * objects/standard/polyline.c (polyline_draw): 
19651         * objects/standard/zigzagline.c (zigzagline_draw): 
19652         * objects/standard/arc.c (arc_draw): 
19653         * objects/standard/line.c (line_draw):
19654         Draw lines before arrows. This makes hollow arrows not
19655         show the line.
19657 1999-05-13  Alexander Larsson  <alla@lysator.liu.se>
19659         Changes from Kim Peasley <kpeasley@ior.com> 
19660                 
19661         * objects/UML/class.c:
19662         Break lines with long operations so classes won't be
19663         so wide.
19665         * objects/UML/uml.[ch]:
19666         Helperfunctions for the above.
19667         
19668         * objects/UML/objects.c:
19669         Fix bug that duplicated the text in the attributes
19670         textwidget each time the object was selected.
19671         
19672 1999-05-12  Alexander Larsson  <alla@lysator.liu.se>
19674         Changes from Lars R. Clausen <lrclause@cs.uiuc.edu>
19675         
19676         * app/modify_tool.c:
19677         * app/modify_tool.h:
19678         Control-drag is restricted to vertical/horizontal movement
19679         
19680         * lib/object.h:
19681         ModifierKeys argument added to object_move_handle
19683         * app/connectionpoint_ops.c:
19684         * app/create_object.c:
19685         * app/object_ops.c:
19686         * objects/ER/attribute.c:
19687         * objects/ER/entity.c:
19688         * objects/ER/participation.c:
19689         * objects/ER/relationship.c:
19690         * objects/UML/actor.c:
19691         * objects/UML/association.c:
19692         * objects/UML/class.c:
19693         * objects/UML/classicon.c:
19694         * objects/UML/component.c:
19695         * objects/UML/constraint.c:
19696         * objects/UML/dependency.c:
19697         * objects/UML/generalization.c:
19698         * objects/UML/implements.c:
19699         * objects/UML/large_package.c:
19700         * objects/UML/lifeline.c:
19701         * objects/UML/message.c:
19702         * objects/UML/note.c:
19703         * objects/UML/object.c:
19704         * objects/UML/realizes.c:
19705         * objects/UML/small_package.c:
19706         * objects/UML/state.c:
19707         * objects/UML/usecase.c:
19708         * objects/network/bus.c:
19709         * objects/standard/arc.c:
19710         * objects/standard/box.c:
19711         * objects/standard/ellipse.c:
19712         * objects/standard/image.c:
19713         * objects/standard/line.c:
19714         * objects/standard/polyline.c:
19715         * objects/standard/textobj.c:
19716         * objects/standard/zigzagline.c:
19717         Changed calls to move_handle to pass the new argument.
19718         
19719         * lib/widgets.c:
19720         * lib/widgets.h:
19721         Default line width, color etc #define'd
19722         
19723         * po/da.po:
19724         Updates of danish menus
19726 1999-05-08  Fredrik Hallenberg  <hallon@lysator.liu.se>
19728         * dia.xpm
19729         * dia_gnome_icon.png
19730         * dia_gnome_menu_icon.png
19731         * dia_logo.png
19732         Graphics by Toussaint Frédéric <ftoussin@club-internet.fr>.
19734         * app/commands.c
19735         About dialog shows dia_logo.png. Removed the GNOME about dialog.
19737         * Makefile.am
19738         Distribute the icons and install logo in pkgdatadir.
19739         
19740         * app/Makefile.am
19741         Added DATADIR-define.
19742         
19743 1999-04-28  Alexander Larsson  <alla@lysator.liu.se>
19744         Patches from Enrico Scholz <enrico.scholz@wirtschaft.tu-chemnitz.de>
19746         * dia.spec:
19747         Updated version number, made setup quiet, can build from cvs,
19748         --enable-gnome, now using automake 1.4 DESTDIR feature, install-strip
19750         * lib/Makefile.am
19751         * objects/ER/Makefile.am
19752         * objects/UML/Makefile.am
19753         * objects/network/Makefile.am
19754         * objects/standard/Makefile.am
19755         now builds better with gnome
19757         * objects/UML/class_dialog.c
19758         Fixed typo -> po files must be updated too!!
19759         
19760 1999-04-28  Alexander Larsson  <alla@lysator.liu.se>
19762         * lib/dummy_dep.h:
19763         Added reference so that widgets.o gets linked to the app.
19765 1999-04-23  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
19767         * objects/UML/classicon.c: 
19768         Added object mode.
19770         * objects/UML/actor.c: 
19771         Changed position of 'snap-to-grid' so connection points are
19772         in the grid.
19774 1999-04-22  Alexander Larsson  <alla@lysator.liu.se>
19776         * objects/UML/classicon.c:
19777         Changed position of 'snap-to-grid'.
19778         By Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
19779         
19780 1999-04-22  Alexander Larsson  <alla@lysator.liu.se>
19782         * objects/network/antenna.c
19783         * objects/network/flash.c
19784         * objects/network/hub.c
19785         * objects/network/modem.c
19786         * objects/network/modularswitch.c
19787         * objects/network/rj45plug.c
19788         * objects/network/scead-plug.c
19789         * objects/network/network.c
19790         * objects/network/Makefile.am
19791         * objects/network/pixmaps/antenna.xpm
19792         * objects/network/pixmaps/flash.xpm
19793         * objects/network/pixmaps/hub.xpm
19794         * objects/network/pixmaps/modem.xpm
19795         * objects/network/pixmaps/modularswitch.xpm
19796         * objects/network/pixmaps/rj45plug.xpm
19797         * objects/network/pixmaps/sceadplug.xpm
19798         * objects/network/pixmaps/Makefile.am
19799         Lots of new network objects from
19800         Roland Steinbach <roland@support-system.com>.
19802 1999-04-15  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
19804         * objects/UML/classicon.c: 
19805         Fixed connection positions, saved type as int (it has 3 states),
19806         and other small fixes.
19807         
19808 1999-04-14  Alexander Larsson  <alla@lysator.liu.se>
19810         * app/preferences.c:
19811         * app/load_save.c:
19812         Added preference compress_save. It lets dia save uncompressed
19813         xml files.
19815         * objects/UML/class.c:
19816         Fixed bug with size calculation on methods that had class scope.
19817         
19818 1999-04-13  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
19820         * objects/UML/usecase.c: 
19821         Added collaboration mode
19822         Fixed connection points with text > ellipse bug and other 
19823         small things
19825         * objects/UML/state.c:
19826         Fixed bug of bad position of text after being either end
19827         or begin, moved and returned to text
19829 1999-04-12  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
19831         * app/preferences.c: Add prototype declaration for prefs_apply.
19833 1999-04-11  Alexander Larsson  <alla@lysator.liu.se>
19835         * app/preferences.c:
19836         Added 'ok' button.
19837         Apply don't hide window.
19839         * app/properties.c:
19840         Add 'ok' button.
19842         * objects/UML/object.c:
19843         * objdcts/UML/state.c:
19844         Some data was not copied on copy.
19846         This patch is from
19847         Ben Hochstedler <benh@eeyore.moneng.mei.com>
19849 1999-04-09  Alexander Larsson  <alla@lysator.liu.se>
19851         * app/Makefile.am:
19852         Changed link order between X and libxml.
19853         Some people had problems with an old libz in their
19854         x11 directory.  
19856 1999-04-09  Kjartan Maraas  <kmaraas@online.no>
19858         * po/no.po: updated translation.
19859         
19860 1999-04-08  Lars R. Clausen <lrclause@cs.uiuc.edu>
19862         * lib/message.c (message_error):
19863         Fixed small error.
19865         * app/commands.[ch]:
19866         * app/diagram.[ch]:
19867         Added begining of xfig importing
19869 1999-04-08  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
19871         * objects/UML/pixmaps/state.xpm: 
19872         * objects/UML/state.c: 
19873         New UML object state machine.
19875         * objects/UML/uml.c:
19876         * objects/UML/Makefile.am:
19877         * objects/UML/pixmaps/Makefile.am:
19878         Added the state object.
19879         
19880 1999-04-08  Alejandro Aguilar Sierra  <ale@bucefalo>
19882         * objects/UML/usecase.c: 
19883         Added dialog to allow move text outside the ellipse.
19885 1999-04-08  Alexander Larsson  <alla@lysator.liu.se>
19887         * Released Dia 0.41
19888         Tag called DIA_0_41
19890         * NEWS:
19891         Updates for 0.41.
19892         
19893 1999-04-08  Alexander Larsson  <alla@lysator.liu.se>
19895         * configure.in:
19896         Updated version number to 0.41
19898         * po/*.po:
19899         Update po-files
19901 1999-04-04  Fredrik Hallenberg  <hallon@lysator.liu.se>
19903         * app/app_procs.c
19904         Changed errormessage for --export-to-ps. Removed call to 
19905         g_log_set_always_fatal().
19907         * app/diagram.c
19908         * app/disp_callbacks.c
19909         * app/load_save.c
19910         (i18n) Removed gettext from some debugmessages.
19912         * app/menus.c
19913         Small fix in GNOME-menus. Added warning that will help track
19914         problems with translations.
19916         * po/sv.po
19917         (i18n) Updated swedish translation.
19919 1999-04-02  Alexander Larsson  <alla@lysator.liu.se>
19921         * po/da.po:
19922         New updates
19924 1999-04-01  Alexander Larsson  <alla@lysator.liu.se>
19926         * po/da.po:
19927         * po/no.po:
19928         Some fixes.
19929         
19930 1999-04-01  Alexander Larsson  <alla@lysator.liu.se>
19932         * po/da.po:
19933         (i18n) Updated the danish translation.
19934         From Lars R. Clausen.
19936 1999-04-01  Fredrik Hallenberg  <hallon@lysator.liu.se>
19938         * app/menus.c
19939         (i18n) The popup menu is translated now.
19941         * po/sv.po
19942         (i18n) Updated swedish translation.
19944 1999-03-29  Alexander Larsson  <alla@lysator.liu.se>
19946         * Released Dia 0.40
19947         Tag called DIA_0_40
19949         * NEWS:
19950         Updated for new release
19951         
19952 1999-03-29  Alexander Larsson  <alla@lysator.liu.se>
19954         * objects/network/bus.c:
19955         Added initialization of properties dialog to NULL.
19957         * app/commands.c (edit_cut_callback):
19958         Update menu sensitivity when cut object.
19960         * app/modify_tool.c (click_select_object):
19961         * app/modify_tool.c (modify_button_release): 
19962         Call diagram_update_menu_sensitivity() when
19963         selecting objects to update stuff that depends
19964         on selected/not selected.
19966 1999-03-29  Alexander Larsson  <alla@lysator.liu.se>
19968         * Makefile.am:
19969         Change order of subdir so that libintl.a builds.
19970         Now passed make distcheck.
19972 1999-03-28  Alexander Larsson  <alla@lysator.liu.se>
19974         * lib/font.c (init_x11_font):
19975         Stupid bug fixed.
19977 1999-03-28  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
19979         * objects/UML/pixmaps/classicon.xpm: 
19980         * objects/UML/classicon.c:
19981         * objects/UML/uml.c:
19982         Added the class stereotype icon objects.
19984         * app/commands.c:
19985         Changed default ps extension from .ps to .eps.
19986         
19987 1999-03-28  Alexander Larsson  <alla@lysator.liu.se>
19989         * lib/Makefile.am:
19990         Added diamenu.h and intl.h
19992         * lib/font.c:
19993         Stupid typo fix.
19994         
19995         * objects/UML/pixmaps/Makefile.am:
19996         Added message.xpm
19998         * objects/standard/pixmaps/Makefile.am:
19999         Added image.xpm
20001 1999-03-28  Alexander Larsson  <alla@lysator.liu.se>
20003         * lib/font.c:
20004         Use a scalable font before fixed when real font not found.
20006         * app/commands.c:
20007         Removed warning.
20009         * objects/standard/image.c:
20010         Better handling of loading/saving of images.
20012         * INSTALL:
20013         Added some text about cvs, fonts and rewrote some parts.
20015         * TODO:
20016         Updated with new stuff.
20017         
20018         * configure.in:
20019         Bump up version number to 0.40.
20020         
20021 1999-03-28  Alexander Larsson  <alla@lysator.liu.se>
20023         * app/display.c:
20024         Moved diagram_add_ddisplay() call into new_display().
20025         Fixed new_display to not use uninitialized variables
20026         causing loaded files to show up as black (or garbage).
20027         
20028         * app/commands.c:
20029         * app/app_procs.c:
20030         Removed unneeded calls to diagram_add_ddisplay().
20031         
20032 1999-03-28  Alexander Larsson  <alla@lysator.liu.se>
20034         * objects/UML/lifeline.c:
20035         Fixed bug in copy.
20036         Patch from Andreas Jaeger <aj@arthur.rhein-neckar.de>.
20038         * objects/UML/message.c:
20039         Fixed bug loading messages with null-text.
20040         Patch from Andreas Jaeger <aj@arthur.rhein-neckar.de>.
20042 1999-03-27  Fredrik Hallenberg  <hallon@lysator.liu.se>
20044         * po/sv.po
20045         Updated swedish translation.
20047         * app/menus.c
20048         (GNOME) Removed help-browser from help menu. Fixed typo.
20050         * app/interface.c
20051         (GNOME) Accelerators in diagrams should work now. 
20053 1999-03-25  Fredrik Hallenberg  <hallon@lysator.liu.se>
20055         * app/app_procs.c
20056         * app/commands.c
20057         * app/defaults.c
20058         * app/disp_callbacks.c
20059         * app/display.c
20060         * app/interface.c
20061         * app/menus.c
20062         * app/preferences.c
20063         * app/render_eps.c
20064         * lib/diagramdata.c
20065         * lib/font.c
20066         * lib/message.c
20067         * lib/widgets.c
20068         * objects/ER/*.c
20069         * objects/UML/*.c
20070         * objects/network/*.c
20071         * objects/standard/*.c
20072         * po/update_pofiles_in.sh
20073         * po/POFILES.in
20074         More i18n. All strings (expect rare debug messages) can be
20075         translated now. Moved intl.h from app to lib. Updated
20076         update_pofiles_in.sh to check all .c-files.
20078 1999-03-23  Alexander Larsson  <alla@lysator.liu.se>
20080         * app/disp_callbacks.c (ddisplay_canvas_events):
20081         Don't drop keys while num-lock, scroll-lock etc is on.
20083 1999-03-22  Alexander Larsson  <alla@lysator.liu.se>
20085         * app/render_eps.c (draw_image):
20086         Fixed exporting of images.
20087         Still not perfect, but not outright buggy.
20088         
20089 1999-03-22  Alexander Larsson  <alla@lysator.liu.se>
20091         * configure.in:
20092         * po/hu.po:
20093         Added hungarian translation. By Shooby Ban <bansz@szif.hu>.
20095         * app/Makefile.am:
20096         Added $* to the dia call in run_dia.sh
20098 1999-03-22  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
20099         
20100         * lib/color.[ch]:
20101         Added color_equals() call.
20103         * objects/standard/arc.c:
20104         * objects/standard/line.c:
20105         Don't save unneccesary data.
20106         
20107         * objects/standard/box.c:
20108         * objects/standard/ellipse.c:
20109         * objects/standard/image.c:
20110         * objects/standard/polyline.c:
20111         * objects/standard/zigzagline.c:
20112         Share properties dialog.
20113         Don't save unneccesary data.
20114         
20115 1999-03-22  Seth Alves  <alves@hungry.com>
20117         * app/menus.c:
20118         * app/diagram.c:
20119         * app/display.c:
20120         small changes so that gnome menus aren't broken
20121         
20122 1999-03-22  Alexander Larsson  <alla@lysator.liu.se>
20124         * po/da.po:
20125         Added danish translation from lrclause@cs.uiuc.edu.
20127         * po/POFILES.in:
20128         Updated file.
20130         * po/update_pofiles_in.sh:
20131         Added script that updates POFILES.in.
20132         This should probably be run automatically from somewhere.
20134 1999-03-19  Alexander Larsson  <alla@lysator.liu.se>
20136         * app/diagram.[ch]:
20137         Added function diagram_update_menu_sensitivity() which
20138         sets the sensitivity of some menu items. This function
20139         is called at each diagram state change (from diagram_modified()).
20140         This is needed  because otherwise the keyboard accelerators
20141         don't work correctly.
20143         * app/display.[ch]:
20144         Changed display_set_menu_sensitivity() to display_update_menu_state().
20145         Moved lots of code to diagram_update_menu_sensitivity() in
20146         diagram.c. Optimized to only look up menu-items from path:s once.
20147         
20148         * app/disp_callbacks.c:
20149         * app/interface.c:
20150         When we get a GDK_FOCUS_CHANGE, update menu sensitivity.
20151         Need to set GDK_FOCUS_CHANGE_MASK.
20152         
20153         * app/create_object.c:
20154         Call diagram_modified when an object has been created and
20155         selected so that the menu sensitivity is updated. 
20157         * app/menus.[ch]:
20158         removed menus_set_sensitive() and menus_set_state(). Exported
20159         renamed function menus_get_item_from_path().
20161 1999-03-15  Alexander Larsson  <alla@lysator.liu.se>
20163         * app/disp_callbacks.c:
20164         Show (empty) object menus on object that has none.
20165         Show title on object menus.
20167         * app/display.c:
20168         Set zoom factor correctly when opening new displays.
20169         Better setting of scrollbars.
20171         * app/grid.c:
20172         * app/menus.h:
20173         Some reformating cleanup.
20175         * lib/diamenu.h:
20176         Added title to object menus.
20178         * objects/*/*.c:
20179         Added object menu method (NULL-valued) to all objects.
20181         * objects/standard/polyline.c:
20182         Added title to object menu.
20184 1999-03-14  Alexander Larsson  <alla@lysator.liu.se>
20186         * app/preferences.[ch]:
20187         New files. Implements the preferences dialog and
20188         loading/saving of ~/.diarc.
20190         * app/Makefile.am:
20191         Added preferences.[ch].
20193         * app/app_procs.c:
20194         Load preferences on startup.
20196         * app/commands.[ch]:
20197         Added file_preferences_callback to show the preferences dialog.
20199         * app/create_object.c:
20200         Update extents when creating object.
20201         Use the reset_tools_after_create preferences setting.
20203         * app/display.c:
20204         Use preferences when creating new display.
20206         * app/menus.c:
20207         Add preferences to menu.
20209         * app/defaults.c:
20210         * app/layer_dialog.c:
20211         * app/properties.c:
20212         Don't allow shrinking of dialog.
20213         Add i18n of some strings.
20215 1999-03-11  Kjartan Maraas  <kmaraas@fib.hl.no>
20216         * po/no.po:
20217         Norwegian translation added.
20218         
20219 1999-03-11  Alexander Larsson  <alla@lysator.liu.se>
20221         * objects/standard/line.c: 
20222         * objects/standard/arc.c: 
20223         * objects/standard/polyline.c: 
20224         * objects/standard/zigzagline.c:
20225         Loading of arrow data fixed.
20227 1999-03-09  Alexander Larsson  <alla@lysator.liu.se>
20229         * app/commands.c:
20230         Update extents when saving and exporting to postscript.
20231         Fixes a bug with postscript bounding-box being wrong.
20233         * app/defaults.c:
20234         Changed border width from 5 to 2.
20236         * app/group.c:
20237         Move grouped objects by the move-point of the first object.
20238         Fixes bug that made all objects in the group be off-grid
20239         when moving the group, even though all objects was on-grid.
20241         * app/layer_dialog.c:
20242         Update extents when changing layer.
20244 1999-03-08  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
20246        * objects/UML/uml.c: 
20247        * objects/UML/component.c: 
20248        * objects/UML/pixmaps/component.xpm: 
20249        Added the UML component object
20250         
20251 1999-03-04  Seth Alves  <alves@hungry.com>
20253         * objects/UML/generalization.c (generalization_create): avoid
20254         math on uninitialized genlz->text_width (NaN causes sigfpe)
20255         
20256         * objects/UML/realizes.c (realizes_create): same
20258         * objects/UML/dependency.c (dependency_create): same
20260 1999-03-01  Seth Alves  <alves@hungry.com>
20262         * app/display.c (ddisplay_active): don't fly a warning panel
20263         if ddisplay_active is called when no views are open.
20265         * app/commands.c (set_default_file_selection_directory): set
20266         file selector's default directory if there is already
20267         a document open.
20269 1999-02-28  Alexander Larsson  <alla@lysator.liu.se>
20271         * INSTALL:
20272         New info about imlib requirements.
20274         * Configure.in:
20275         Added lib/pixmaps/Makefile to created makefiles.
20277         * app/app_procs.c:
20278         * app/commands.c:
20279         Change from obsoleted to newer gtk calls.
20280         
20281         * load_save.c:
20282         Pass filename of the diagram when loading and saving.
20283         This creates better oportunities to handle filename saving.
20285         * lib/object.h:
20286         Pass filenames to load and save methods.
20287         
20288         * lib/dia_image.[ch]:
20289         Added dia_image_get_broken() call that returns a image which
20290         is used for 'broken' images.
20291         
20292         * lib/pixmaps/.cvsignore:
20293         * lib/pixmaps/Makefile.am:
20294         * lib/pixmaps/broken.xpm:
20295         New files for the broken image bitmap.
20297         * lib/widgets.c:
20298         Fixed bug with double destroyed filedialog.
20300         * objects/*/*.c:
20301         Updated load and save prototypes to use the new filename argument.
20303         * objects/image.c:
20304         Render broken image instead of line when got no image.
20305         Use the new filename in load and save to save (if possible)
20306         relative pathnames and to better try to find loaded images.
20308 1999-02-28  Alexander Larsson  <alla@lysator.liu.se>
20310         * TODO:
20311         Some updates to the todo file.
20312         
20313         * app/menus.c:
20314         * app/display.c:
20315         Place over/place over => sent to back/bring to front.
20316         Added some keyboard shortcuts to menus.
20317         
20318 1999-02-28  Alexander Larsson  <alla@lysator.liu.se>
20320         * lib/dia_xml.c:
20321         Changed string saving/loading to a new method. This should
20322         be much better att handling &,<,> and whitespaces.
20323         Loading strings of the old kind is still supported for backwards
20324         compatibility.
20326         * samples/ER-demo.dia:
20327         * samples/UML-demo.dia:
20328         Updated to use the new strings.
20329         
20330         * app/load_save.c:
20331         statusbar modified update fix.
20333 1999-02-27  Seth Alves  <alves@hungry.com>
20335         * app/app_procs.c (app_init): added a --export-to-ps option
20336         which will cause dia to load a dia file and save it as ps
20337         and then exit.  this is a little bogus, because it still
20338         pops up a window.  this option only shows up if --enable-gnome
20339         is used
20341         * app/display.c (display_set_menu_sensitivity): no Edit/Delete
20342         menu when built with --enable-gnome
20344         * app/interface.c (create_display_shell): build status bar
20345         even if --enable-gnome is used
20347         * app/menus.c: menu fixes for --enable-gnome
20349         * app/commands.c (file_open_dialog_ok_callback): fixed up
20350         menus when --enable-gnome is used
20351         (file_export_to_eps_callback): set a default file name
20352         when dialog is created
20354 1999-02-27  Alexander Larsson  <alex@c125.ryd.student.liu.se>
20356         * objects/UML/association.c (association_create):
20357         Fixed usage of not initialized variable.
20358         Pointed out by Seth Alves <alves@hungry.com>.
20360 1999-02-24  Alexander Larsson  <alex@c125.ryd.student.liu.se>
20362         * configure.in:
20363         Fixed detection of gnome-xml.
20364         From Valtteri Vuorikoski <vuori@k.notcom.org>.
20365         
20366         * app/app_procs.c:
20367         Fixed error detection on dlsym calls. 
20368         From Valtteri Vuorikoski <vuori@k.notcom.org>.
20370 1999-02-23  Alexander Larsson  <alla@lysator.liu.se>
20372         * objects/UML/message.c (fill_in_dialog):
20373         Fixed warnings.
20375 1999-02-22  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
20377         * objects/standard/zigzagline.c:
20378         * objects/standard/polyline.c:
20379         * objects/standard/line.c:
20380         * objects/standard/arc.c:
20381         * lib/widgets.h:
20382         * lib/arrows.h:
20383         * lib/widgets.c:
20384         Support for sizeable arrows. 
20386         * objects/standard/box.c:
20387         * objects/standard/ellipse.c:
20388         * objects/standard/image.c:
20389         Changed creation handle to lower-right.
20390         Transparent box/ellipse.
20391         
20392         * objects/standard/image.c:
20393         Better layout of properties boxes.
20395 1999-02-20  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
20397         * objects/UML/message.c (fill_in_dialog): 
20398         Fixed dialog fill in. Common dialog for all messages.
20400         * objects/UML/object.c: 
20401         Added multiple instance. Dialog related bugs fixed.
20402         Common dialog for all instances. Completed copy and destroy.
20404         * objects/UML/lifeline.c (lifeline_load): 
20405         Conn initialization bug fixed and few bad loading prevention flags.
20406         Common dialog for all lifeline objects.
20407         
20408 1999-02-15  Alexander Larsson  <alla@lysator.liu.se>
20410         * lib/dia_image.[ch]:
20411         More work on the DiaImage abstraction.
20412         
20413         * app/app_procs.c:
20414         * app/render_eps.c:
20415         * app/render_gdk.c:
20416         * objects/standard/image.c:
20417         Use the new DiaImage calls.
20419 1999-02-15  Alexander Larsson  <alla@lysator.liu.se>
20421         * app/menus.c:
20422         * app/display.c:
20423         Reversed the meaning of align horizontal/vertical.
20425 1999-02-15  Alexander Larsson  <alla@lysator.liu.se>
20427         * app/load_save.c (diagram_load):
20428         Statusbar update fix.
20430 1999-02-15  Alexander Larsson  <alla@lysator.liu.se>
20432         * app/interface.c (create_display_shell):
20433         Fixed status bar size.
20434         
20435 1999-02-15  Alexander Larsson  <alla@lysator.liu.se>
20437         * lib/dia_image.[ch]:
20438         Added extern declaration for dia_image_release.
20439         Removed dia_image_draw, as it's not neseccary.
20441 1999-02-14  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
20442         
20443         * app/object_ops.c: 
20444         * app/menus.c: 
20445         Added equal distance alignment both vertical and horizontal.
20446         
20447         * objects/UML/object.c: 
20448         Added a couple of attributes to load/read that were missing.
20450         * objects/UML/lifeline.c: 
20451         Better handling of handles. Fixed another bug I forgot to add
20452         to my last patch.
20453         
20454 1999-02-13  Alexander Larsson  <alla@lysator.liu.se>
20456         Patch from Lars Clausen <lrclause@shasta.cs.uiuc.edu>
20457         
20458         * lib/dia_image.[ch]:
20459         * lib/Makefile.am:
20460         New files. DiaImage wraps the GdkImlibImage.
20462         * lib/render.h:
20463         * app/render_eps.c:
20464         * app/render_gdk.c:
20465         * lib/render_store.[ch]:
20466         * objects/standard/image.c:
20467         Use the new DiaImagetype.
20469         * lib/widgets.c:
20470         Removed unused variable to eliminate  warning.
20472 1999-02-11  Alexander Larsson  <alla@lysator.liu.se>
20474         * objects/standard/box.c:
20475         Added rounded corners on the box object.
20477         * lib/widgets.[ch]:
20478         Updated the DiaFileSelector widget.
20479         
20480 1999-02-09  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
20482         * objects/UML/object.c (objet_draw): 
20483         Completed underlining of all object name lines. 
20485         * objects/UML/message.c (fill_in_dialog): 
20486         Fixed a bug that filled incorrectly the message's dialog.
20488         * objects/UML/lifeline.c (lifeline_load): 
20489         Some cleanning and fixed a couple of bugs that caused
20490         crashes after reading diagrams with lifelines.
20492         * lib/text.c: 
20493         Added flags to prevent crash with void strings
20495 1999-02-07  Matthias Köster <Matthias.Koester@Informatik.Uni-Oldenburg.DE>
20496         * app/display.[ch]:
20497         Added statusbar to the display widget. Currently shows the zoom
20498         factor and modified flag of the viewed diagram. The statusbar is
20499         updated upon calls to ddisplay_zoom and ddisplay_update_statusbar.
20500         This caused the following additions:
20501         
20502         * app/diagram.[ch]:
20503         Added function diagram_set_modified. Calls
20504         ddisplay_update_statusbar for all displays showing the modified diagram.
20505         Changed diagram_modified to call diagram_set_modified.
20506         
20507         * app/interface.c:
20508         Added the creation of the statusbar.
20509         
20510         * app/load_save.c:
20511         diagram_save now calls diagram_set_modified instead of setting
20512         dia->modified. Needed to force call to display_update_statusbar
20513         
20514         * app/commands.c:
20515         Changed the way view_show_all works. Now calls ddisplay_zoom
20516         instead of directly setting the zoom_factor, so the zoom factor is
20517         correctly shown in the statusbar.
20519         * app/magnify.c:
20520         Fixed rubberband zoom to use ddisplay_zoom().
20521         
20522 1999-02-07  Fredrik Hallenberg  <hallon@lysator.liu.se>
20524         * app/app_procs.c
20525         Rudimentary GNOME session management.
20526         
20527         * app/disp_callbacks.c
20528         * app/interface.c
20529         * app/menus.c
20530         * app/menus.h
20531         GNOME menus. Problems: 
20532         Callbacks doesn't get user_data.
20533         Weird warnings when creating popup menus.
20534         menus_set_sensitive(), menus_set_state() doesn't work.
20536 1999-02-05  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
20538         * configure.in:
20539         Add AM_PATH_GDK_IMLIB() call.
20541         * app/Makefile.am:
20542         Add gdk_imlib to linking flags.
20544         * app/app_procs.c:
20545         Init gdk_imlib.
20546         Print library-loading error messages on stdout too.
20548         * app/interface.c:
20549         Add standard image to toolbox.
20550         
20551         * app/render_eps.c: 
20552         Set a more reasonable dot length.  Fixed
20553         missing initialization of dot length.
20554         Added draw_image methods.
20556         * app/render_gdk.c (new_gdk_renderer): 
20557         Dot a bit wider.  Looks good in normal mode now.
20559         * objects/standard/image.c:
20560         * objects/standard/pixmaps/image.xpm:
20561         New files. Standard object for images.
20562         
20563         * app/render_eps.c (set_linestyle):
20564         * app/render_gdk.c (set_linestyle):
20565         * lib/widgets.c (dia_line_style_selector_init): 
20566         * lib/render.h: 
20567         New line style DOTTED.
20569         * lib/render.h:
20570         * lib/render_store.c:
20571         Change DrawImage call to use gdk_imlib.
20573         * lib/widgets.[ch]:
20574         Added widgets for selecting files.
20575         Added dotted to the linestyle selector.
20577 1999-02-06  Alexander Larsson  <alla@lysator.liu.se>
20579         * objects/network/printer.c:
20580         * objects/network/network.c:
20581         * objects/network/pixmaps/printer.xpm:
20582         * objects/network/.cvsignore:
20583         * objects/network/Makefile.am:
20584         * objects/network/pixmaps/Makefile.am:
20585         New printer object in network.
20586         From Martin Hawlisch <hawlisch@roxi.rz.fh-mannheim.de>
20588         * TODO:
20589         Added known XML bug.
20590         
20591 1999-02-06  Alexander Larsson  <alla@lysator.liu.se>
20593         * app/load_save.c:
20594         * lib/dia_xml.c:
20595         Reverted back from #include <gnome-xml/tree.h> to
20596         #include <tree.h> as this is fixed by the xml-config program.
20597         The former way broke for some people.
20598         Reported by blizzard@redhat.com.
20600         * objects/UML/lifeline.c:
20601         * objects/UML/message.c:
20602         * objects/UML/object.c:
20603         Removed some warnings.
20604         
20605 1999-02-04  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
20607         * objects/UML/lifeline.c: 
20608         Fixed connection points over the life line when the focus of
20609         control is not drawn.
20611         * objects/UML/message.c: 
20612         Now a recursive message can be freely resized using the handles.
20614 1999-02-02  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
20616         * objects/UML/lifeline.c:
20617         Added connection points.
20618         Added properties dialog with the option to draw/hide focus of control
20619         box and destruction mark.
20621         * objects/UML/object.c: 
20622         Added properties dialog and stereotype, explicit state and attributes. 
20623         It's also possible to mark the object as active.
20625         * objects/UML/pixmaps/object.xpm: 
20626         Cosmetic change.
20628         * objects/UML/message.c:
20629         Added "recursive" message type (was not necessary to use OrthConn).
20631 1999-02-02  Alexander Larsson  <alla@lysator.liu.se>
20633         * objects/standard/arc.c:
20634         Removed old debug code. Fixes a visual bug. From lrclause@cs.uiuc.edu.
20636 1999-02-01  Alexander Larsson  <alla@lysator.liu.se>
20638         Patch from Lars R. Clausen <lrclause@cs.uiuc.edu>
20639         
20640         * app/load_save.c:
20641         * lib/dia_xml.c:
20642         Update xml includes to gnome-xml/*.h.
20644         * objects/standard/arc.c:
20645         Only one property dialog per type.
20646         Fix arrows directions.
20648         * objects/standard/box.c:
20649         * objects/standard/ellipse.c:
20650         * objects/standard/textobj.c
20651         Added default properties dialog.
20652         
20654 1999-01-31  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
20656         * objects/UML/Makefile.am: 
20657         * objects/UML/uml.c:
20658         * objects/UML/lifeline.c: 
20659         * objects/UML/object.c: 
20660         * objects/UML/message.c:
20661         * objects/UML/pixmaps/lifeline.xpm: 
20662         * objects/UML/pixmaps/object.xpm: 
20663         * objects/UML/pixmaps/message.xpm:
20664         Added 3 new UML objects for dynamic modeling. To avoid internal 
20665         conflicts, the name "objet" is used for object "object".        
20667         * lib/arrows.[ch]: 
20668         Added ARROW_HALF_HEAD arrow type to allow drawing asynchronous
20669         UML messages.
20670         
20671 1999-01-30  Alexander Larsson  <alla@lysator.liu.se>
20673         * app/display.[ch]:
20674         * app/modify_tool.c:
20675         Added autoscrolling while doing rubber-band select.
20676         This patch from Matthias Köster
20677         (Matthias.Koester@Informatik.Uni-Oldenburg.DE)
20678         
20680 1999-01-28  Alexander Larsson  <alla@lysator.liu.se>
20682         * app/defaults.[ch]:
20683         New files, deals with default properties dialog.
20685         * lib/diamenu.h:
20686         New file. Contains definitions for the new object menu.
20688         * lib/poly_conn.[ch]:
20689         New file. Base class for poly-line like objects.
20691         * objects/standard/polyline.c:
20692         * objects/standard/pixmaps/polyline.xpm:
20693         New files. Polyline object.
20695         * app/app_procs.c:
20696         Fixed bug with infinite loop when registering sheets.
20697         
20698         * app/commands.c:
20699         Removed unneccesary stuff.
20701         * app/disp_callbacks.c:
20702         Support for object menus.
20704         * app/interface.c:
20705         Added polyline to toolbox.
20706         Added call to tool_options_dialog_show() when double clicking on
20707         tool.
20709         * app/tool.[ch]:
20710         New function tool_options_dialog_show() for tool properties.
20712         * lib/arrows.[ch]:
20713         Added ARROW_NONE.
20715         * lib/object.h:
20716         Added ObjectType methods for handling object default dialogs.
20717         Added Object method for handling object_menu.
20718         Added unused methods to ObjectTypeOps for future binary
20719         compatibility.
20721         * lib/widgets.[ch]:
20722         Added DiaArrowTypeSelector widget.
20724         * objects/standard/arc.c:
20725         * objects/standard/zigzagline.c:
20726         Added support for default properties.
20728         * objects/standard/line.c:
20729         Added support for default properties.
20730         Just use one properties dialog for all line objects. NOTE: This
20731         seems to have a bug. We're working on it.
20733         * standard/standard.c:
20734         Add the polyline object.
20736 1999-01-27  Alexander Larsson  <alla@lysator.liu.se>
20738         * app/modify_tool.c:
20739         Commented out buggy transitive select function. It wasn't really
20740         meant to go into cvs.
20741         
20743 1999-01-25  Fredrik Hallenberg  <hallon@lysator.liu.se>
20745         * autogen.sh:
20746         * acconfig.h:
20747         * configure.in:
20748         * Makefile.am:
20749         * app/Makefile.am:
20750         * po/POTFILES.in:
20751         * app/intl.h
20752         i18n-support.
20754         * po/sv.po:
20755         Swedish translation. Not completed.
20756         
20757         * configure.in:
20758         * acconfig.h:
20759         Added possibility to enable GNOME specific code with configure.
20761         * configure.in:
20762         Added possibility to set debug level with configure.
20764         * commands.[hc]:
20765         Added about dialog.
20767         * app_procs.c
20768         * commands.c
20769         * interface.c
20770         * menus.c
20771         Added some GNOME specific code. Not ready for use.
20773 1999-01-24  Alexander Larsson  <alla@lysator.liu.se>
20775         * INSTALL:
20776         Added text about needing gtk 1.1.13 and gnome-xml.
20777         
20778         * NEWS:
20779         Described changes since last version (0.20).
20781         Released version 0.30, tagged DIA_0_30.
20783 1999-01-22  Alexander Larsson  <alla@lysator.liu.se>
20785         * app/magnify.c (magnify_button_release):
20786         Fixed a problem when zooming in on a very small box would
20787         not release the grabbed pointer-focus.
20789 1999-01-21  Alexander Larsson  <alla@lysator.liu.se>
20791         * app/load_save.c (diagram_load):
20792         Be somewhat more robust when loading files that
20793         are not diagrams.
20794         
20795 1999-01-21  Alexander Larsson  <alla@lysator.liu.se>
20797         * app/app_procs.c:
20798         * objects/ER/er.c:
20799         * objects/UML/uml.c:
20800         * objects/network/network.c:
20801         * objects/standard/standard.c:
20802         Added versioning of object libraries.
20804         * app/create_object.c:
20805         Don't change tool when an object is created.
20806         
20807         * objects/network/network.c:
20809         * TODO:
20810         Update
20812 1999-01-19  Alexander Larsson  <alla@lysator.liu.se>
20814         * configure.in:
20815         Updated gtk requirement to Gtk+ 1.1.13.
20817         * app/display.c:
20818         Always add one screenful of scrolling space on
20819         each side of a diagram window.
20821 1999-01-19  Jeff Garzik  <jgarzik@pobox.com>
20823         * autogen.sh:
20824         Tell automake to auto-install missing files.
20826         * app/menus.c:
20827         Renamed deprecated Gtk+ function.
20829 1999-01-16  Alexander Larsson  <alla@lysator.liu.se>
20831         * Makefile.am:
20832         * configure.in:
20833         * samples/Makefile.am:
20834         * samples/ER-demo.dia:
20835         * samples/UML-demo.dia:
20836         Added samples directory.
20837         Added samples for ER and UML.
20838         
20839         * app/commands.c:
20840         * app/disp_callbacks.c:
20841         * app/menus.c:
20842         Zoom is done by sqrt(2) instead of 2.
20843         Lots of more zoom options in the menu.
20845         * objects/ER/relationship.c:
20846         Relationships have 8 connectionpoints instead of 4.
20848         * objects/UML/class.c:
20849         UML class name font a bit smaller.
20850         Fixed stupid bug in the copy operation.
20851         
20852         * app/display.c:
20853         Displays are opened at 500x400 instead of 256x256.
20855         * app/load_save.c:
20856         Fixup of internal error message.
20858         * app/color_area.c:
20859         * app/diagram.c:
20860         * app/modify_tool.c:
20861         * lib/object.c:
20862         Removed debug printf's.
20863         
20864         * TODO (BUGS):
20865         Added new known bug.
20867 1999-01-16  Alexander Larsson  <alla@lysator.liu.se>
20869         * app/interface.c:
20870         * app/menus.c:
20871         Fixed so accelerator groups work in all windows.
20872         Updated to new gtk function names.
20874         * TODO (BUGS):
20875         Removed fixed bug.
20877         * app/display.c:
20878         Updated to new gtk function names.
20879         Set sensitivity of the align menu items.        
20881         * objects/ER/pixmaps/Makefile.am:
20882         * objects/UML/pixmaps/Makefile.am:
20883         * objects/network/pixmaps/Makefile.am:
20884         Fix so that make dist works.
20886         * app/app_procs.c:
20887         * app/color_area.c:
20888         * app/commands.c:
20889         * app/diagram.c:
20890         * app/grid.c:
20891         * app/layer_dialog.c:
20892         * app/load_save.c:
20893         * app/object_ops.c:
20894         * app/properties.c:
20895         * lib/diagramdata.[ch]: 
20896         * lib/message.c:
20897         * lib/objects/ER/attribute.c:
20898         * lib/objects/ER/entity.c:
20899         * lib/objects/ER/participation.c:
20900         * lib/objects/ER/relationship.c:
20901         * lib/objects/ER/.c:
20902         * objects/UML/actor.c:
20903         * objects/UML/association.c:
20904         * objects/UML/class_dialog.c:
20905         * objects/UML/dependency.c:
20906         * objects/UML/generalization.c:
20907         * objects/UML/large_package.c:
20908         * objects/UML/realizes.c:
20909         * objects/UML/.c:
20910         * objects/UML/.c:
20911         Updated to new gtk function names.
20912         Removed warnings.
20914 1999-01-15  Alexander Larsson  <alla@lysator.liu.se>
20916         * TODO:
20917         Update TODO.
20919         * app/app_procs.c:
20920         Fixed loading of diagrams specified as arguments.
20922         * objects/ER/attribute.c:
20923         * objects/ER/entity.c:
20924         * objects/ER/er.c:
20925         * objects/ER/participation.c:
20926         * objects/ER/relationship.c:
20927         Updated the ER objects.
20928         
20930 1999-01-14  Alexander Larsson  <alla@lysator.liu.se>
20932         * configure.in:
20933         * app/Makefile.am:
20934         * objects/Makefile.am:
20935         * objects/ER/attribute.c:
20936         * objects/ER/entity.c:
20937         * objects/ER/er.c:
20938         * objects/ER/participation.c:
20939         * objects/ER/relationship.c:
20940         * objects/ER/pixmaps/Makefile.am:
20941         * objects/ER/pixmaps/attribute.xpm:
20942         * objects/ER/pixmaps/entity.xpm:
20943         * objects/ER/pixmaps/participation.xpm:
20944         * objects/ER/pixmaps/relationship.xpm:
20945         * objects/ER/pixmaps/weakentity.xpm:
20946         First commit of entity relationship objects.
20947         These were done by hallon@lysator.liu.se.
20948         There are still stuff to do on these.
20949         
20950 1999-01-14  Alexander Larsson  <alla@lysator.liu.se>
20952         * TODO:
20953         Updates.
20955         * app/diagram.[ch]:
20956         Change diagram_remove_all_selected to take new argument
20957         delete_empty. Empty objects are deleted only if it is TRUE.
20958         Removed call to close_eps_renderer. This is now done in end_render
20959         in the eps renderer.
20961         * app/create_object.c:
20962         * app/layer_dialog.c:
20963         Update calls to diagram_remove_all_selected.
20965         * app/commands.c:
20966         Update calls to diagram_remove_all_selected.
20967         Some code reformating.
20968         Changed order of adding updates i align_h and align_v.
20970         * app/modify_tool.c:
20971         Update calls to diagram_remove_all_selected.
20972         Added pointer grab when doing rubber-band selection, this fixes
20973         the bug when draging the box over to another window.
20975         * app/connectionpoint_ops.[ch]:
20976         diagram_update_connections_object changed to take an argument
20977         update_nonmoved. This lets connections that has not moved, but
20978         the stuff they're connected to has been moved work.
20979         Update calls to the new diagram_update_connections_object.
20981         * app/properties.c:
20982         Update calls to the new diagram_update_connections_object.
20983         Update extents when properties are applied.
20984         
20985         * app/disp_callbacks.c:
20986         Added support for zooming with the '+' and '-' keys.
20988         * app/menus.c:
20989         Removed old keyboard shortcuts for zoom.
20991         * lib/render.h:
20992         Added calls begin_render and end_render to renderer.
20993         These can be used for setup and cleanup.
20995         * lib/diagramdata.c:
20996         Added calls to begin_render and end_render in data_render.
20998         * app/render_gdk.c:
20999         Added begin_render and end_render.
21001         * app/render_eps.[ch]:
21002         Added begin_render and end_render.
21003         Moved close_eps_renderer code to end_render.
21004         Various fixes to the generated eps code. This fixes importing
21005         generated eps into LYX.
21006         
21007 1999-01-12  Alexander Larsson  <alla@lysator.liu.se>
21009         * TODO:
21010         Update of todo.
21011         
21012         * app/menus.c:
21013         Menus for alignment updated.
21015         * app/object_ops.[ch]:
21016         Functions for object alignment updated.
21018         * app/commands.[ch]:
21019         Object alignment callbacks updated.
21020         New diagrams are called Untitled-<nr>.
21022         * app/layer_dialog.c:
21023         Active layer selected when showing layers from new
21024         diagram.
21026         * app/load_save.c:
21027         Compress xml files when saving.
21028         Use xml namespace 'dia'.
21030         * lib/object.h:
21031         Minor comment update.
21033         * objects/UML/class_dialog.c:
21034         Cleanup of the gkt_list_item moving code.
21035         Fixed bug with update of operation when moving parameters.
21037 1999-01-10  Alexander Larsson  <alla@lysator.liu.se>
21039         * app/layer_dialog.[ch]:
21040         Fixed the rest of the layers dialog.
21042         * app/dialog.c:
21043         Added call to redo layer dialogs diagram list when changing
21044         diagram name.
21046         * lib/diagramdata.[ch]:
21047         Added data_raise_layer and data_lower_layer functions for
21048         raising/lowering layers. Added data_add_layer_at for adding a
21049         layer at a specified index.
21051 1999-01-05  Alexander Larsson  <alla@lysator.liu.se>
21053         This is the asierra-990105 patch done by asierra@servidor.unam.mx.
21054                 
21055         * app/app_procs.c:
21056         Added support for reading diagrams from the command line.
21058 1998-12-21  Alexander Larsson  <alla@lysator.liu.se>
21060         This is the asierra-981220 patch done by asierra@servidor.unam.mx.
21061                 
21062         * app/commands.[ch]:
21063         Added objects_align_callback().
21065         * app/menus.c:
21066         Added align objects to menu.
21068         * app/object_ops.[ch]:
21069         Add object_list_align().
21070         
21071 1998-12-17  Alexander Larsson  <alla@lysator.liu.se>
21072         * app/layer_dialog.[ch]:
21073         New files. Handles the layers dialog. Needs a bugfix for glib to
21074         work. Sent patch to gtk-list.
21075         
21076         * app/pixmaps/new.xpm:
21077         * app/pixmaps/eye.xbm:
21078         * app/pixmaps/lower.xpm:
21079         * app/pixmaps/raise.xpm:
21080         * app/pixmaps/delete.xpm:
21081         New files. Images for the layer dialog buttons.
21082         
21083         * lib/diagramdata.h
21084         * lib/diagramdata.c
21085         New files for the DiagramData and Layer structures and functions.
21086         
21087         * app/app_procs.c:
21088         Added call to create_layer_dialog() on startup.
21089         
21090         * app/commands.[ch]:
21091         New callbacks for showing the properties and layout dialog.
21092         Changes for the new DiagramData structure.
21094         * app/connectionpoint_ops.c:
21095         * app/cut_n_paste.c:
21096         * app/diagram.[ch]:
21097         * app/display.[ch]:
21098         * app/group.c:
21099         * app/modify_tool.c:
21100         * app/object_ops.[ch]:
21101         * app/render_eps.c:
21102         * lib/object.[ch]:
21103         Changes for the new DiagramData structure.
21105         * app/interface.c:
21106         * app/properties.c:
21107         Set correct wmclasses.
21109         * app/load_save.c:
21110         Fix load and save of layers.
21112         * diagram.dtd:
21113         Update DTD for layers.
21114         
21115         * app/menus.c:
21116         New menus for dialogs.
21118         
21119         * TODO:
21120         Some updates.
21121         
21122 1998-12-06  Alexander Larsson  <alla@lysator.liu.se>
21124         * TODO:
21125         Removed the gtk 1.1.5 stuff.
21127         * configure.in:
21128         Updated gtk check to version 1.1.5.
21129         Updated version from 0.20 to 0.30
21131         * app/commands.[ch]:
21132         Updated some callbacks to be of type GtkItemFactoryCallback1.
21133         Not all are done yet, but it works anyway.
21135         * app/display.h:
21136         Removed Gtk 1.0.0 GtkAcceleratorTable references.
21137         
21138         * app/interface.c:
21139         * app/menus.[ch]:
21140         Update to Gtk 1.1.x functions.
21141         Use ItemFactory instead of MenuFactory.
21142         
21143         * app/render_gdk.c:
21144         Removed Gtk 1.0.0 references.
21146         * objects/UML/class_dialog.c:
21147         Scrolled window updates for Gtk 1.1.5.
21148         
21149         * lib/dia_xml.c:
21150         Removed ugly fix for gnome-xml bug. Make sure you get the
21151         newest version of gnome-xml from CVS.
21152         
21153 1998-12-05  Alexander Larsson  <alla@lysator.liu.se>
21155         * TODO:
21156         Removed the xml load/save line.
21158         * lib/files.[ch]:
21159         Removed files.
21160         
21161         * lib/Makefile.am:
21162         Removed building of files.c
21164         * app/load_save.c:
21165         * lib/connection.c:
21166         * lib/element.c:
21167         * lib/object.c:
21168         * lib/orth_conn.c:
21169         * lib/render_object.c:
21170         * objects/UML/actor.c:
21171         * objects/UML/association.c:
21172         * objects/UML/class.c:
21173         * objects/UML/constraint.c:
21174         * objects/UML/dependency.c:
21175         * objects/UML/generalization.c:
21176         * objects/UML/implements.c:
21177         * objects/UML/large_package.c:
21178         * objects/UML/note.c:
21179         * objects/UML/realizes.c:
21180         * objects/UML/small_package.c:
21181         * objects/UML/uml.c:
21182         * objects/UML/usecase.c:
21183         * objects/network/bus.c:
21184         * objects/standard/arc.c:
21185         * objects/standard/box.c:
21186         * objects/standard/ellipse.c:
21187         * objects/standard/line.c:
21188         * objects/standard/textobj.c:
21189         * objects/standard/zigzagline.c:
21190         Removed all includes of files.h
21192         
21193 1998-12-05  Alexander Larsson  <alla@lysator.liu.se>
21195         * dialog.dtd:
21196         Made the val property of string be implied.
21197         This makes it possible to save strings that
21198         are NULL. Just leave out val.
21200         * objects/lib/dia_xml.c:
21201         Fixed string so that it is possible to save strings
21202         that are NULL. Also made an ugly workaround of a
21203         bug in gnome-xml which removes empty properties.
21204         
21205         * objects/lib/orth_conn.c:
21206         Fixed a bug in saving. Forgot to step through the
21207         directions.
21208         
21209         * objects/UML/association.c: 
21210         * objects/UML/class.c: 
21211         * objects/UML/constraint.c: 
21212         * objects/UML/dependency.c: 
21213         * objects/UML/generalization.c: 
21214         * objects/UML/implements.c: 
21215         * objects/UML/large_package.c: 
21216         * objects/UML/note.c: 
21217         * objects/UML/small_package.c:
21218         * objects/UML/realizes.c:
21219         * objects/UML/usecase.c: 
21220         * objects/UML/actor.c: 
21221         Fixed UML objects to save as xml.
21222         The last two were done by asierra@servidor.unam.mx (asierra-981204)
21223         
21224         * objects/UML/uml.[ch]:
21225         Updated *_write() and *_read() functions to use xml.
21227         * objects/network/bus.c: 
21228         * objects/network/computer.c: 
21229         * objects/network/disc.c: 
21230         * objects/network/monitor.c:
21231         Updated network diagrams to use xml.
21233 1998-12-02  Alexander Larsson  <alla@lysator.liu.se>
21235         * dialog.dtd:
21236         New file. DTD that describes the xml file format
21237         dia uses.
21239         * lib/dia_xml.[ch]:
21240         New files. Support for saving object to xml files.
21242         * configure.in:
21243         * app/Makefile.am:
21244         * lib/Makefile.am:
21245         Added check for and usage of gnome-xml library.
21247         * app/load_save.c:
21248         Major chages. Now saves/loads diagrams as xml.
21250         * lib/object.[ch]:
21251         * lib/element.[ch]:
21252         * lib/connection.[ch]:
21253         * lib/orth_conn.[ch]:
21254         * lib/render_object.[ch]:
21255         * lib/text.[ch]:
21256         Updated object support load/save functions for xml:
21258         * object/standard/arc.c:
21259         * object/standard/box.c:
21260         * object/standard/ellipse.c:
21261         * object/standard/line.c:
21262         * object/standard/textobj.c:
21263         * object/standard/zigzagline.c:
21264         Updated all standard objects to use xml.
21265         
21266         NOTE NOTE NOTE
21267         Only the standard objects are converted right now, don't
21268         save or load uml or network diagrams yet. Also, since this
21269         is new code it is deemed a bit unstable.
21270         
21271         * TODO
21272         Added a know bug.
21274 1998-12-01  Alexander Larsson  <alla@lysator.liu.se>
21276         * objects/UML/class.c:
21277         Changed classname font to Helvetica.
21278         Added more space above the classname
21280         * objects/UML/usecase.c:
21281         Correct placements of connectionpoints on ellipse.
21282         Better algorithm for deciding aspect ration on
21283         ellipse.
21285         These changes were made by Alejandro Aguilar Sierra
21286         <asierra@servidor.unam.mx>. (asierra-981201)
21288 1998-11-30  Alexander Larsson  <alla@lysator.liu.se>
21290         * objects/UML/actor.c:
21291         Changed the extents and alignment of the element
21292         and the text.
21294         * objects/UML/.cvsignore:
21295         Added usecase.lo and actor.lo.
21297 1998-11-30  Alexander Larsson  <alla@lysator.liu.se>
21299         * objects/UML/actor.c:
21300         * objects/UML/usecase.c:
21301         * objects/UML/pixmaps/actor.xpm:
21302         * objects/UML/pixmaps/case.xpm:
21303         New files. Implements usecase and actor UML objects.
21304         These objects are done by Alejandro Aguilar Sierra
21305         <asierra@servidor.unam.mx>.
21306         
21307         * objects/UML/Makefile.am:
21308         * objects/UML/pixmaps/Makefile.am:
21309         Added usecase and actor to makefile.
21310         
21311         * AUTHORS:
21312         Added Alejandro and Jerome to autors list.
21313         
21314 1998-11-25  Alexander Larsson  <alla@lysator.liu.se>
21316         * objects/UML/class.c (umlclass_load):
21317         Fixed typo. Reported by Jerome.Abela@solsoft.fr
21319 1998-11-24  Alexander Larsson  <alla@lysator.liu.se>
21321         * app/properties.c:
21322         Update connections when doing apply in the properties window.
21324         * objects/UML/uml.[ch]:
21325         * objects/UML/class.[ch]:
21326         * objects/UML/class_dialog.c:
21327         Added connection points on both sides of attributes and
21328         operations in UML classes.
21329         Based on idea from Jerome.Abela@solsoft.fr
21330         
21331 1998-11-24  Alexander Larsson  <alla@lysator.liu.se>
21333         * README:
21334         Some new documentation about handles and connectionpoints.
21335         
21336         * lib/object.[ch]:
21337         Added functions object_add_connectionpoint and
21338         object_remove_connectionpoint for handling a dynamic
21339         number of connectionpoints.
21341         * objects/UML/class.c:
21342         Only reserve space for stereotype when it is shown.
21344         These changes are from Jerome Abela <Jerome.Abela@solsoft.fr>
21346 1998-11-08  Alexander Larsson  <alla@lysator.liu.se>
21348         * app/connectionpoint_ops.c:
21349         * app/commands.c:
21350         * app/disp_callbacks.c:
21351         * app/display.[ch]:
21352         * app/grid.c:
21353         * app/handle_ops.c:
21354         * app/magnify.c:
21355         * app/modify_tool.c:
21356         * app/render_gdk.[ch]:
21357         * lib/render.h:
21358         Huge cleanup of internal rendering system.
21359         Moved a lot of data (pixmap, width, height & gc) into the GdkRenderer.
21360         This gives a few new methods for Interactive Renderers for setting
21361         clipping regions and drawing pixel based lines and rects.
21362         Updated the rest of the code to use the new stuff.
21363         
21364         * app/render_eps.c:
21365         Fixed warning.
21367         * lib/widgets.c:
21368         * objects/standard/zigzagline.c
21369         Fixed unused variable warnings.
21371         * lib/font.c:
21372         Fixedbug with stringwidth where width==0.
21374         * TODO:
21375         Added known bug.
21377 1998-11-02  Alexander Larsson  <alla@lysator.liu.se>
21379         * lib/widgets.[ch]:
21380         Added suppot for setting the font of a
21381         DiaFontSelector widget.
21382         Also fixed some typos in the header.
21384         * lib/object.h: 
21385         Added a comment about the GetPRoperties method call.
21386         You have to make sure to update widget state when
21387         this method is called. (Not all objects do this yet,
21388         to be fixed.)
21390         * TODO:
21391         Some small updates
21393 1998-11-01  Alexander Larsson  <alla@lysator.liu.se>
21395         * lib/font.c
21396         Fixed problem with height of ascent and descent for fonts.
21397         It didn't use the whole height (==ascent+descent) when calculatine
21398         ascent_ratio and descent_ratio.
21400         * objects/standard/textobj.c:
21401         * objects/standard/box.c:
21402         * objects/standard/ellipse.c:
21403         * objects/standard/line.c:
21404         * objects/standard/arc.c:
21405         Updated and added property dialogs for these objects.
21406         Also added line width/color/style to those objects
21407         that didn't have it.
21408         This change breaks fileformat compatibility for these objects.
21409         
21410         * objects/standard/zigzagline.c:
21411         Changed zigzagline to be based on OrthConn, much nicer.
21412         Also added line style and color to properties.
21413         This change breaks fileformat compatibility for zigzagline.
21415         * lib/message.c:
21416         Fixed bug in message(). Forgot a pair of '&'.
21418 1998-10-29  Alexander Larsson  <alla@lysator.liu.se>
21420         * lib/widgets.[ch]:
21421         Added DiaColorSelector widget.
21422         This is a colored button that pops up a color selection
21423         dialog when pressed.
21425 1998-10-28  Alexander Larsson  <alla@lysator.liu.se>
21427         * lib/widgets.[ch]:
21428         * lib/Makefile.am:
21429         New files, added widgets for selecting fonts, alignment
21430         and line-style. Will be used later.
21432 1998-10-12  Alexander Larsson  <alla@lysator.liu.se>
21434         * app/Makefile.am:
21435         * lib/Makefile.am:
21436         * objects/UML/Makefile.am:
21437         * objects/network/Makefile.am:
21438         * objects/standard/Makefile.am:
21439         Changed "CFLAGS = -Wall -g" to "CFLAGS = @CFLAGS@"
21440         in all Makefile.am.
21442 1998-10-03  Alexander Larsson  <alla@lysator.liu.se>
21444         * app/handle_ops.c (handle_draw):
21445         connected HANDLE_MINOR_CONTROL also becomes red.
21447 1998-10-02  Alexander Larsson  <alla@lysator.liu.se>
21449         * Makefile.am:
21450         removed -ldl from linking. This is added if needed by configure.
21452         * app/app_procs.c:
21453         Open dlls with RTLD_LAZY if it is defined.
21454         Some cleanups: char *error -> const char *error
21455         Added fprintf()'s to where we exited because of errors.
21457         * lib/files.c:
21458         Include <sys/types.h>
21460 1998-10-01  Alexander Larsson  <alla@lysator.liu.se>
21462         * acconfig.h:
21463         * configure.in:
21464         * app/app_procs.c:
21465         Detect dlopen better.
21466         Detect wether dlopen needs an underscore in the identifier.
21467         This code was mostly borrowed from guile.
21469         * lib/sheet.[ch]:
21470         * app/app_procs.c:
21471         * objects/standard/standard.c:
21472         * objects/network/network.c:
21473         * objects/UML/uml.c:
21474         * most objects:
21475         Changed the way sheets reference objects to use just the
21476         name. Changed module loading to a two stage model:
21477         First register_objects() is called for all modules.
21478         Then register_sheets() is called. This means that
21479         sheets can safely include objects from other modules.
21480         
21482 1998-09-30  Alexander Larsson  <alla@lysator.liu.se>
21484         * objects/network/bus.c:
21485         * objects/network/network.c:
21486         * objects/network/Makefile.am:
21487         New file bus.c. Added new object: Ethernet bus.
21489         * objects/standard/box.c:
21490         Added call to gtk_spin_button_set_numeric for linewidth spinner
21491         in property dialog.
21493 1998-09-30  Alexander Larsson  <alla@lysator.liu.se>
21495         * app/connectionpoint_ops.c:
21496         * app/create_object.c:
21497         * app/group.c:
21498         * app/handle_ops.c:
21499         * app/modify_tool.c:
21500         * lib/connection.c:
21501         * lib/element.c:
21502         * lib/handle.h:
21503         * lib/object.c:
21504         * lib/orth_conn.c:
21505         * loads of objects:
21506         Changed handle->connectable to handle->connect_type.
21507         Now handles can be HANDLE_CONNECTABLE_NOBREAK, which means
21508         that their connections don't break when moving objects.
21510         * app/diagram.c:
21511         Always select the last handle in an object that has
21512         the closest distance.
21513         
21514         * lib/geometry.[ch]:
21515         Added rectangle_add_point function.
21516         
21518 1998-09-27  Alexander Larsson  <alla@lysator.liu.se>
21520         * app/properties.[ch]: New files. Handles the new properties
21521         dialog.
21523         * app/modify_tool.c: Changed to use new properties dialog.
21525         * app/object_ops.[ch]: Removed object_changed_callback, as it's
21526         not needed anymore. This is now handled differently in
21527         properties.c
21529         * lib/object.[ch]:
21530         Changed the properties ops for objects. Removed typedefs
21531         ChangedObjectTime and ObjectChangedFunc needed for the old way.
21532         Added object_return_null function.
21533         
21534         * app/group.c:
21535         * lib/render_object.c:
21536         * objects/*/*.c:
21537         Changed objects to use the new properties dialog.
21538         
21540 1998-09-14  Nuno Ferreira  <nmrf@rnl.ist.utl.pt>
21542         * */Makefile.am (INCLUDES): Changes to work with srcdir !=
21543         builddir.
21545         * autogen.sh: New file. Copied from gtk and added a call to
21546         libtoolize. Anyone knows why this isn't done in gtk?
21548         * Removed autogenerated files.
21550 1998-09-12  Alexander Larsson  <alla@lysator.liu.se>
21552         * Added call setlocale(LC_NUMERIC, "C") so that formating of
21553           floating-point numbers in postscript output will be correct.
21554         * Did some cleanup of generated postscript files.