vdx version .6.1
[dia.git] / ChangeLog
blobcde3f9980b96094c24cfc09f850d448c0f593158
1 2006-11-15  Lars Clausen  <lars@raeder.dk>
3         * plug-ins/vdx/*: Update to version 0.6.1 yields improvements in
4         both export and import.
6 2006-11-13  Lars Clausen  <lars@raeder.dk>
8         * lib/font.c: Internally calculate glyph offsets at *20 font size
9         to avoid rounding problems.
11         * app/layer_dialog.c: Revamped the visibility toggling system to
12         make visibility change a properly undoable operation, making the
13         page borders resize in the process.
15         * objects/standard/line.c (line_load, line_save): 
16         * objects/standard/arc.c (arc_load, arc_save): 
17         * objects/standard/polyline.c (polyline_load, polyline_save): 
18         * objects/standard/bezier.c (bezierline_load, bezierline_save): 
19         * objects/standard/zigzagline.c (zigzagline_load, zigzagline_save):
20         Use generic load/save functions.
22         * lib/libdia.def: 
23         * lib/arrows.[ch]: Generic functions for loading and saving
24         arrows, including sanitizing on load, part of fixing bug #144394.
26         * objects/FS/flow-ortho.c (orthflow_draw): 
27         * objects/FS/flow-poly.c (orthflow_draw): Update to use modern
28         arrow rendering.
30         * app/modify_tool.c (modify_start_text_edit) 
31         (modify_make_text_edit): Don't use dia_font_scaled_* when
32         avoidable. 
34 2006-10-29  Steffen Macke <sdteffen@gmail.com>
36         * app/paginate_psprint.c: Made compile with MSVC again
38 2006-10-26  Lars Clausen  <lars@raeder.dk>
40         * app/interface.[ch]: Patch from jan@uos.de: Write the accelerator
41         keys in tooltips for standard tools.
43         * app/paginate_psprint.c: Patch for better printing: Reasonable
44         file name, check before overwriting, re-popup if file write
45         failed.  Thanks to Leon Stringer <leon.stringer@ntlworld.com> for
46         this patch.
48 2006-10-26  Hans Breuer  <hans@breuer.org>
50         * plug-ins/shape/shape-export.c : the icon export facility dependens
51         on the libart-size-hack; use filter_get_by_name("png-libart") instead
52         of filter_guess_export_filter(). Fixes bug #364491.
54 2006-10-19  Ignacio Casal Quinteiro  <nacho.resa@gmail.com>
56         * configure.in: Added 'gl' to ALL_LINGUAS
58 2006-10-16  Hans Breuer  <hans@breuer.org>
60         * objects/UML/class.c : the comment wrapping was only working for
61         plain ASCII, now it deals with UTF-8 (Vadim Zelenin, bug #349765)
63 2006-10-16  Theppitak Karoonboonyanan  <thep@linux.thai.net>
65         * configure.in : Add 'th' (Thai) to ALL_LINGUAS.
67 2006-10-14  Hans Breuer  <hans@breuer.org>
69         * plug-ins/vdx/vdx-import.c : don't try to print("%s", NULL). It is
70         not generally supported and crashes on win32. Fixes bug #349883
72         * lib/arrows.[hc] : draw hollow arrow heads with linewidth 0.0 
73         correctly. Patch from Michael Duelli fixing bug #358176
75         * objects/standard/arc.c : don't rely on the result of atan2(inf,inf),
76         it is C-runtime dependent. Fixes infinitesimal burning of CPU cycles,
77         bug #360013 and duplicates.
79         * app/load_save.c : protect gstdio.h by GLIB_CHECK_VERSION
80         and use the <glib/ form for installed version
82 2006-10-13  Hans Breuer  <hans@breuer.org>
84         * objects/UML/(actor|large_package|node|note).c : use 
85         element_update_connections_rectangle() instead of about 25 lines 
86         of copy and pasted code
88         * app/load_save.c : make it compile by defining W_OK if it is
89         not there and also use '#if GLIB_CHECK_VERSION(2,8,0)' instead
90         of '#ifdef GLIB_CHECK_VERSION(2,8,0)'. Strange that gcc 
91         apparently compiled this
93         * lib/parent.[ch] : parent_handle_move_in_check() was moving 
94         the checked point about twice as much as needed, bug #342773.
95         
96 2006-10-12  Lars Clausen  <lars@raeder.dk>
98         * app/load_save.c (diagram_data_save): If we have GTK 2.8, check
99         that we are allowed to write to the file in question (if it
100         exists) and to the directory (for backup/temp/newly created file).
102         * lib/dia_dirs.c (dia_get_lib_directory, dia_get_data_directory): 
103         * lib/Makefile.am (AM_CPPFLAGS): 
104         * app/Makefile.am (INCLUDES): Rename DATADIR and LIBDIR to
105         DIA_DATADIR and DIA_LIBDIR to avoid conflicts with libtool and the
106         like.  Thanks to lode leroy <lode_leroy@hotmail.com> for pointing
107         out the solution.
109         * plug-ins/pstricks/render_pstricks.c (export_pstricks) 
110         (draw_string): Use \psscalebox instead of \scalebox, courtesy of
111         Dan Bolser <dmb@mrc-dunn.cam.ac.uk> and the pstricks mailing list.
113         * shapes/Makefile.am (SUBDIRS): 
114         * configure.in: 
115         * shapes/BPMN/*
116         * sheets/BPMN.sheet.in: 
117         * sheets/Makefile.am (sheet_in_files): New shape set BPMN for
118         Business Process Modelling from anthonym@overture.com.
120         * doc/en/dia.dbk: Correctly describing connections.
122         * objects/standard/box.c: Patch from Michael Duelli
123         <m.duelli@web.de>: Set line attributes before drawing anything.
125 2006-10-08  Lars Clausen  <lars@raeder.dk>
127         * configure.in: Allow compiling without freetype on Unix systems.
128         The effect of changes to non-freetype parts of the code can now be
129         tested, and I have no excuse to not fix them anymore:(
131 2006-10-01  Lars Clausen  <lars@raeder.dk>
133         * app/modify_tool.c (modify_motion): Don't use null-ness of
134         connectionpoint to skip snap-to-grid for non-connectable handles.
135         Fixes bug #350246.
137         * shapes/flowchart/predefdproc.shape: Fixed midpoint.
139 2006-09-27  Steffen Macke <sdteffen@gmail.com>
141         * shapes/flowchart/datasource.png:
142         * shapes/flowchart/datasource.shape:
143         * shapes/flowchart/Makefile.am: 
144         * sheets/Flowchart.sheet.in:
145         * installer/win32/dia.nsi: Added new "Data source" shape
147 2006-09-24  Hans Breuer  <hans@breuer.org>
149         * lib/diagdkrenderer.c : I'm going to rip out all the Freetype
150         code the next time the GDK only compile breaks
151         
152 2006-09-23  Hans Breuer  <hans@breuer.org>
154         * app/commands.c app/create_object.c app/disp_callbacks.c : add
155         missing #include "lib/parent.h"
157         * lib/makefile.msc : build textline.obj
158         
159         * objects/makefile.msc : don't build newgroup.obj
160         * objects/misc/libmisc.c : with newgroup gone to app/ newgroup_type can 
161         not be registered from the module any longer - at least not on win32
163         * plug-ins/python/makefile.msc : removed obsolete references to 
164         Python 1.5, also removed misleading link to Python 2.2 debug build
166         * app/diagram.[ch] app/app_procs.c : don't use C++ keyword 'virtual' 
167         as variable name: s/virtual/is_default/
168         
169         * plug-ins/python/*.c : don't mix PyObject_NEW() with PyMem_DEL()
170         Newer versions of Python (2.5) are not tolerant about this anymore.
171         
172 2006-09-11  Lars Clausen  <lars@raeder.dk>
174         * lib/diasvgrenderer.c (draw_text_line): First stab at making svg
175         text line renderer, doesn't work yet.
177         * lib/textline.c (text_line_draw): Removed #define.
179         * lib/diagdkrenderer.c (draw_text_line): Slight cleanups.
181 2006-09-11  Steffen Macke <sdteffen@gmail.com>
183         * plug-ins/vdx/vdx-export.c:
184         * plug-ins/vdx/vdx-import.c:
185         * plug-ins/vdx/vdx-xml.c:
186         * plug-ins/vdx/vdx.h:
187         * plug-ins/vdx/visio-types.h: Update to version 0.5 (from 0.4) of
188         Visio import, thanks to Ian Redfern, who states: 
189         
190         This is the first version to support export to VDX - for now, just 
191         straight lines and text, but I'm working on the more complex bits. 
192         It currently writes Visio 2002 VDX as a lowest common denominator, 
193         but that won't handle Beziers, so when I get round to converting them 
194         to NURBS, only Visio 2003 users will be able to import them.
196         There are also several improvements to import, both to fix the layout 
197         and clean up the code, and it can now import embedded bitmaps - as Dia
198         needs them to be separate files, it puts them in /tmp (or wherever 
199         tempnam() goes to on your system). Alternative suggestions are welcome. 
200         NURBS import still doesn't work, but everything else seems pretty 
201         reliable.
202         
203         In addition, two small adjustments to compile on Windows
205 2006-09-08  Steffen Macke <sdteffen@gmail.com>
207         * app/makefile.msc:
208         * app/Makefile.am:
209         * app/dia-win-remote.c:
210         * installer/win32/dia.nsi: From Windows Explorer, open .dia files in the 
211         running Dia instance (if possible). Fixes bug #70718
213 2006-09-05  Lars Clausen  <lars@raeder.dk>
215         * lib/diatypes.h: 
216         * lib/Makefile.am (libdia_la_SOURCES): 
217         * lib/diarenderer.[ch]: 
218         * lib/font.[ch]: 
219         * lib/diagdkrenderer.c: 
220         * lib/textline.[ch]: TextLine now ready for commit.  Rendering
221         with it is much faster and significantly more precise than
222         without.  All renderers should implement a good definitions for
223         this (though there is a default one that uses draw_string), as it
224         can tell the expected width of a string.
225         
226         * lib/libdia.def: Newly defined functions.      
228 2006-08-29  Lars Clausen  <lars@raeder.dk>
230         * lib/textline.[ch]: New text rendering level: A self-contained
231         single-line text object that allows safer caching and hopefully
232         more accurate rendering at various zooms.  Using a PangoMatrix
233         didn't seem to help. 
235         * lib/font.c: Removing out-deffed layout cache code, it'll never
236         work.  Also a couple support functions for my quest of good zoom.
238 2006-08-20  Hans Breuer  <hans@breuer.org>
240         * plug-ins/cairo/diacairo.c : get rid of c++ coment
241         * app/diagram.h app/diagram.c app/modify_tool.c app/select.c 
242           app/undo.c : reverted 'Shortened diagram_unselect'. It broke
243         plug-ins/python, but more iomportant made one function fromm
244         app/diagram.h asymmetric with all the others. We should not leave
245         the common C OO-pattern of passing an explicit "this pointer" just
246         because that can also be deduced from the other object.
248 2006-08-18  Lars Clausen  <lars@raeder.dk>
250         * lib/render.[ch]: Finally removed unused render files now known
251         as diarenderer.[ch].
253 2006-08-17  Steffen Macke <sdteffen@gmail.com>
255         * installer/win32/dia-diagram.ico:
256         * installer/win32/dia.nsi: Assign icon to *.dia files
258 2006-08-16  Lars Clausen  <lars@raeder.dk>
260         * app/diagram.c (diagram_load): 
261         * lib/object.c (dia_object_is_selectable): Two silly null-pointer
262         errors detected by Michael Duelli <m.duelli@web.de>
264 2006-08-16  Steffen Macke <sdteffen@gmail.com>
266         * app/modify_tool.c:
267         * app/undo.c: Include parent.h
268         * lib/libdia.def: Include dia_object_is_selectable()
270 2006-08-13  Lars Clausen  <lars@raeder.dk>
272         * objects/Misc/libmisc.c:
273         * {app,objects/Misc}/Makefile.am:
274         * objects/Misc/newgroup.c:
275         * app/newgroup.c: Moved newgroup.
276         
277         * app/diagram.[ch]:
278         * app/undo.c: 
279         * app/modify_tool.c: 
280         * app/select.c: Trim diagram_unselect_object() to the one required
281         argument. 
283         * app/app_procs.c:
284         * app/interface.c (dia_dnd_file_drag_data_received): 
285         * app/recent_files.c (open_recent_file_callback): 
286         * app/filedlg.c (file_open_response_callback): 
287         * app/diagram.c (diagram_load): 
288         Make the diagram created at start-up be a virtual diagram that
289         if unchanged is filled in by the first opened diagram, like Gnumeric.
291 2006-08-11  Lars Clausen  <lars@raeder.dk>
293         * app/properties.c (properties_give_focus): Give focus to first
294         thing in a properties dialog.  Still need our own compound widgets
295         to get focus right.
297 2006-08-06  Lars Clausen  <lars@raeder.dk>
299         * objects/Misc/newgroup.c: 
300         * lib/diagramdata.c: 
301         * app/diagram.[ch]: 
302         * app/select.c: 
303         * app/modify_tool.c: 
304         * lib/object.[ch]: Work towards a more reasonable definition of
305         Groups. 
306         
307 2006-08-06  Steffen Macke <sdteffen@gmail.com>
309         * installer/win32/dia.nsi: Save diagrams by default in "My Pictures";
310         fixes bug #344247
312 2006-08-04  Steffen Macke <sdteffen@gmail.com>
314         * installer/win32/dia.nsi: Added vdx.dll, analog_clock.xpm 
315         newgroup.xpm , *ui.xml files
317 2006-08-03  Lars Clausen  <lars@raeder.dk>
319         * sheets/Makefile.am: EML sheet taken out since it's been empty
320         for five years anyway.  Fixes bug #347894.
322         * doc/eu/dia.dbk: 
323         * doc/en/dia.dbk: 
324         * doc/en/usage-layers.xml: Fixed obsolete references to
325         export-to-format.  Fixes bug #346510.
327 2006-08-02  Lars Clausen  <lars@raeder.dk>
329         * plug-ins/vdx/visio-types.h: 
330         * plug-ins/vdx/vdx.h: 
331         * plug-ins/vdx/vdx-xml.c: 
332         * plug-ins/vdx/vdx-import.c: 
333         * plug-ins/vdx/vdx-common.c: Update to version 0.4 (from 0.2) of
334         Visio import, thanks to Ian Redfern, who states: 
336         Version 0.4 does a passable job with curves, and has the first
337         implementation of Masters. It also handles XForm1D, and fixes a
338         potential crash. It gets some layers in the wrong order and still
339         has some major positioning and sizing issues. 
341         Version 0.3 gets object layout correct, and does a better job of
342         text, lines, arrows, layers etc. Some diagrams (that don't contain
343         curves) now render pretty much correctly. 
345 2006-07-16  Hans Breuer  <hans@breuer.org>
347         * app/cut_n_paste.[hc] : maintain a generation counter to count
348         how many times the stored object list is used
349         * app/commands.c : use the generation for paste placement. The
350         first one after cut is not moved at all: a nice way to move objects
351         between layers without changing their lateral position.
352         Also sprinkled some diagram_update_extents()
353         
354         * shapes/Civil/civil_rotor.shape : had inverted fg/bg colors, bug #347080
355         
356         * app/recent_files.c : don't g_return_if_fail() on common use case,
357         here an empty recent file list
358         
359         * lib/dia_image.c(dia_image_draw) : don't try to draw anything if
360         width or height is smaller than 1 pixel
361         
362         * plug-ins/cairo/diacairo.c : allow to export to svg if available 
363         with cairo. Some tweaking of surface sizes.
364         
365 2006-07-12  Lars Clausen  <lars@raeder.dk>
367         * {tests,test/exports,data,plug-ins/vdx}/.cvsignore: Added.
369 2006-06-28  Lars Clausen  <lars@raeder.dk>
371         * plug-ins/vdx/vdx-import.c: Removed create_standard_group which
372         is in create.c.
374 2006-06-25  Hans Breuer  <hans@breuer.org>
376         * app/display.c : avoid to call gettext on parameters for ngettext()
377         Should finally really fix bug #344896
378         
379         * data/ui/display-ui.xml data/ui/popup-ui.xml data/ui/toolbox-ui.xml :
380         removed expand="yes" because otherwise the files can't be read with
381         gtk+-2.6.x which follows Dia can't start. Fixes bug #344895
382         * app/menus.c app/Makefile.am : also find the ui files when run from
383         app/run_dia.sh
385 2006-06-17  Gintautas Miliauskas  <gintas@akl.lt>
387         * configure.in: Added lt to ALL_LINGUAS.
389 2006-06-15  Hans Breuer  <hans@breuer.org>
391         * app/display.c : use ngettext() for possible plural variations.
392         (Bug #344896, tokul@users.sourceforge.net)
394         * objects/UML/class.c : use g_list_append() rather than prepend
395         when copying attributes, operations, formalparams. Fixes bug #342902
396         Also removed some superfluous outcommented code and fixed a warning.
398         * objects/UML/class.c : dont break reading comment_line_length
399         by misguide compatibility code. Fixes bug #341887
401         * plug-ins/vdx/vdx-xml.c : added file missing from 0.3 
402         version commit. Fixes bug #344804
403         
404         * lib/create.h : add create_standard_group() prototype
405         * lib/libdia.def lib/makefile.msc objects/makefile.msc 
406           plug-ins/makefile.msc : added missing (files|exports)
408 2006-06-13  Lars Clausen  <lars@raeder.dk>
410         * plug-ins/vdx/*: Version 0.3 of Visio import filters, thanks
411         again to Ian Redfern.
413 2006-06-12  Elijah Newren  <newren gmail com>
415         * autogen.sh: Run configure by default, allow it to be skipped if
416         NOCONFIGURE is set in the environment.  #344574.
418 2006-06-12  Elijah Newren  <newren gmail com>
420         Pair of build fixes.  #344357
422         * Makefile.am: avoid cp errors when $(srcdir) == .
424         * objects/Misc/newgroup.c: include pixmaps/newgroup.xpm instead of
425         pixmaps/group.xpm as the latter doesn't exist.
427 2006-06-12  Hans Breuer  <hans@breuer.org>
429         * plug-ins/python/codegen.py : applied patch from Thomas D Ahle
430         which adds support for Java and inheritance. Closes bug #344187
431         
432 2006-05-28  Lars Clausen  <lars@raeder.dk>
434         * sheets/Misc.sheet.in: 
435         * objects/Misc/Makefile.am (EXTRA_DIST): 
436         * objects/Misc/pixmaps/newgroup.xpm: 
437         * objects/Misc/newgroup.c: 
438         * objects/Misc/libmisc.c: Start of new group model, with "visible"
439         object to test with.  This object will later become the default
440         group object and thus (mostly) invisible.
442         * lib/parent.c (parent_handle_move_in_check): 
443         * app/create_object.c (create_object_button_press): 
444         * app/diagram.c (diagram_unparent_children_selected): 
445         * app/disp_callbacks.c (ddisplay_drop_object): 
446         * app/load_save.c (write_objects): 
447         * objects/network/radiocell.c (radiocell_create): 
448         * objects/AADL/aadlbox.c (aadlbox_create): 
449         * objects/UML/large_package.c (largepackage_create): 
450         * objects/UML/component.c (component_create): 
451         * lib/object.[ch]: DiaObject API change: DiaObject now has gint
452         flags rather than gboolean can_parent, and utility function
453         object_flags_set.  Uses of can_parent changed to call to function.
455         * doc/en/dia.dbk: Removal of obsolete epsi references.
457 2006-05-27  Hans Breuer  <hans@breuer.org>
459         * app/menus.c : listen to Gtk-WARNING **: Unable to parse accelerator 
460         '<control>+': it wants '<control>plus', same for minus.
462         * tests/exports/cgm/* : cvs admin -kb *.cgm
463           tests/exports/png/* tests/exports/png-libart/* 
464           tests/exports/shape/* : cvs admin -kb *.png
465           tests/exports/wpg/* : cvs admin -kb *.wpg
466         mark binary files as such to not get them broken on platforms which
467         insist on replacing line-ends.
469         * app/app_procs.c app/display.c app/filedlg.c app/interface.c
470           app/load_save.c app/sheets.c lib/dia_image.c lib/message.c
471           plug-ins/python/diamodule.c plug-ins/python/pydia-error.c
472           plug-ins/wmf/wmf.cpp : fixed format string vulnerability on HEAD
473         as well. Patch from Hans de Goede, bug #342111
475 2006-05-27  Rob Staudinger <robert.staudinger@gmail.com>
477         * Makefile.am: 
478         * app/Makefile.am:
479         * app/diagram.c: 
480         * lib/Makefile.am:
481         * objects/standard/Makefile.am:
482         * plug-ins/python/Makefile.am:
483         Fix out of tree build (#340115).        
485 2006-05-25  Hans Breuer  <hans@breuer.org>
487         * app/interface.[hc] app/menus.c : rename ToolButton::menu_item
488         to action_name. Don't mark action names for translation. It is not
489         needed and some languages don't support CamelCase. Fixes bug #342895
490         
491         * app/menus.c : re-added a bunch of accelerators lost in translation
492         to the GtkAction framework. Use GTK_STOCK_FULLSCREEN conditionally
493         it was not available with gtk+-2-6-x.
494         Use dia_get_data_directory() instead of hardcoded UIDATADIR.
495         * app/dia_embedd.c : explain instead of out-comment
496         
497         * app/menu.c lib/autoroute.c lib/color.c lib/diagramdata.c 
498           lib/properties.h dia_xml.c : warningectomy
499           
500         * lib/create.h : create_standard_group()
501         * lib/libdia.def lib/makefile.msc : reflect moved stuff
502         
503 2006-05-25  Lars Clausen  <lars@raeder.dk>
505         * tests/exports/*.dia: A set of test diagrams for export
506         plug-ins.  The intention is to use these for regression tests by
507         ensuring that they don't change when code is altered, or if they
508         change that a manual inspection proves them ok.  The fact that an
509         export plug-in passes these tests doesn't mean it's perfect, just
510         that is hasn't degraded.
511         
512         * plug-ins/xfig/xfig-import.c: 
513         * plug-ins/vdx/vdx-import.c: 
514         * lib/create.[ch]: Functions taken from xfig to create some
515         standard objects easily.  Uses of them updated, no longer need to
516         take DiagramData.
518         * plug-ins/vdx/*: First draft of VDX (Visio XML) plug-in from Ian
519         Redfern <Ian Redfern <Ian.Redfern@LogicaCMG.com>.  Also a bunch of
520         samples for the purpose from the vdxtosvg project.
522 2006-05-21  Hans Breuer  <hans@breuer.org>
524         * app/interface.[hc] app/disp_callbacks.c : removed unused
525         global variable popup_shell
526         
527         * app/pagesetup.c app/diapagelayout.c : restrict every page margin
528         to a little less than half of the page. This guarantees margins
529         leaving some useable page area and thus avoids crashing on negative
530         page sizes. Fixes bug #339562 (also applied to dia-0-95 branch)
531         
532 2006-05-20  Hans Breuer  <hans@breuer.org>
534         Patch from Robert Staudinger to base dia menus on GtkAction framework
535         instead on deprecated GtkItemFactory. Tracked in bug #340352. 
536         En passant fixes bug #171397
537         * configure.in : placementof ui files added data/Makefile to AC_OUTPUT
538         * Makefile.am : added data dir
539         * app/Makefile.am : added $(uidatadir)
540         * app/commands.c app/commands.h app/dia_embedd.c app/diagram.c
541           app/diagram_tree_window.c app/diagram_tree_window.h
542           app/disp_callbacks.c app/display.c app/display.h
543           app/interface.c app/menus.c app/menus.h app/recent_files.c :
544         changed a bunch of callback signatures to take GtkAction
545         * app/pixmaps/Makefile.am 
546         * data/Makefile.am data/display-ui.xml data/toolbox-ui.xml
547           data/popup-ui.xml : new files containing the menu structure
548         * lib/filter.c lib/filter.h lib/plug-ins.h : callback filter
549           registration change to be more appropriate for actions
550         * lib/libdia.def : updated externals
551         * plug-ins/python/debug_objects.py plug-ins/python/diamodule.c
552           plug-ins/python/group_props.py plug-ins/python/gtkcons.py 
553           plug-ins/python/otypes.py plug-ins/python/pydiadoc.py 
554           plug-ins/python/scascale.py plug-ins/python/select_by.py :
555         adapted to API change dia.register_callback to dia.register.action
557         * app/authors.h : added Robert to the authors
558         * app/commands.c : got rid of compiler warnings
560 2006-05-14  Hans Breuer  <hans@breuer.org>
562         * plug-ins/python/python.c : protect the plug-in against 
563         initializing if Python already is initialized. This PyDia extensions
564         is designed for embedding Python.
565         
566         * plug-ins/python/pydia-property.c : LineStyle.dash may be either
567         Float or Integer.
568         
569         * plug-ins/python/diasvg_import.py : remove FontSize debug spew
570         
571         * lib/font.c : GDK_WINDOWING_WIN32: if called with a display already
572         setup use the pango context matching the display. Otherwise fallback
573         to a context from PangoWin32 (matches only for gtk+-2-6, not the one
574         used since gtk+-2-8 using cairo.
575         
576 2006-05-13  Hans Breuer  <hans@breuer.org>
578         [ also applied to branch dia-0-95 ]
579         * objects/UML/umloperationc: add "query" to umloperation_offsets.
580         Patch from Peter Allin, fixes bug #338336
582         [ also applied to branch dia-0-95 ]
583         * app/diagram.c(diagram_ungroup_selected) : operate on a copy
584         of data-Selected cause the original is modified during use.
585         Patch from Victor Stinner, fixes bug #334771
587         * configure.in config.h.win32 : development started again so 095+cvs.
588         Critical bugfixes may go on the dia-0-95 branch (may lead to 0.95.1 
589         if necessary)
590         
591         * app/diagram.c : removed long-time outcommented code
592         
593         * lib/diagramdata.h lib/filter.h lib/geometry.h lib/plug-ins.h
594           lib/properties.h : C++ aware by G_BEGIN_DECLS, G_END_DECLS
595         
596         * objects/UML/class.c : don't dia_assert_true(attr->comment != NULL)
597         it is handled everywhere else just fine.
598         
599 2006-04-19  Lars Clausen  <lars@raeder.dk>
601         * installer/win32/dia.nsi: 
602         * doc/en/dia.xml: 
603         * doc/eu/dia.xml: 
604         * doc/pl/dia.xml: 
605         * config.h.win32: 
606         * configure.in: 
607         * NEWS: Release 0.95
609         * shapes/Gane_and_Sarson/process.shape: Connectionpoint update
610         from Nick Moore <shiny.nickel@gmail.com>.
612 2006-04-17  Kjartan Maraas  <kmaraas@gnome.org>
614         * configure.in: Remove obsolete entry for no_NO
615         * po/no.po: And the translation.
617 2006-04-12  Lars Clausen  <lars@raeder.dk>
619         * installer/win32/dia.nsi: 
620         * doc/en/dia.xml: 
621         * doc/eu/dia.xml: 
622         * doc/pl/dia.xml: 
623         * config.h.win32: 
624         * configure.in: 
625         * NEWS: -pre9
627         * configure.in: Check for xgettext.  Apparently
628         AM_GLIB_GNU_GETTEXT notices it's missing but doesn't abort.
630 2006-04-04  Steffen Macke <sdteffen@gmail.com>
632         * installer/win32/dia.nsi:
633         * installer/win32/langmacros.nsh:
634         * installer/win32/locale/*.nsh: Added check for outdated libgtk dll;
635         closes bug #335477
637 2006-04-03  Lars Clausen  <lars@raeder.dk>
639         * installer/win32/dia.nsi: 
640         * doc/en/dia.xml: 
641         * doc/eu/dia.xml: 
642         * doc/pl/dia.xml: 
643         * config.h.win32: 
644         * configure.in: 
645         * NEWS: -pre8
647         * plug-ins/xfig/xfig-import.c: Initially place text in the right
648         place. 
650 2006-04-03  Steffen Macke <sdteffen@gmail.com>
652         * installer/win32/dia.nsi:
653         * installer/win32/locale/french.nsh: Added french installer
654         locale. Patch from Yannick Le Ny <y.le.ny@ifrance.com>
656 2006-04-02  Hans Breuer  <hans@breuer.org>
658         * doc/pl/dia.xml : "DOCTYPE book" closes bug #142098, Roland Stigge
660 2006-03-29  Daniel Drake  <dsd@gentoo.org>
662         * configure.in: Use standard pkg-config expressions to check for
663         GTK+/Glib, the GTK-supplied macro's conflict with our usage of
664         $GTK_MODULES (#335422)
666 2006-03-28  Lars Clausen  <lars@raeder.dk>
668         * app/Makefile.am (dia_LDADD): Patch from Peter for bug #336377:
669         Include libs and cflags in proper places.
671         * installer/win32/dia.nsi: 
672         * doc/en/dia.xml: 
673         * doc/eu/dia.xml: 
674         * doc/pl/dia.xml: 
675         * config.h.win32: 
676         * configure.in: 
677         * NEWS: -pre7
679         * shapes/network/mobile_phone.{png,xpm,shape}:
680         * shapes/network/telephone.shape:
681         * shapes/network/disc.shape:
682         Updates from W. Borgert <debacle@debian.org> improving looks and
683         positioning.
684         
685 2006-03-26  Lars Clausen  <lars@raeder.dk>
687         * objects/network/radiocell.c: Patch from W. Borgert
688         <debacle@debian.org> for extra midpoint, flicker, extraneous
689         properties.
690         
691         * objects/network/basestation.c: Patch for BB from W. Borgert
692         <debacle@debian.org>. 
694 2006-03-23  Hans Breuer  <hans@breuer.org>
696         * lib/widgets.c : use original fontname and fallback 'sans' to
697         render the font menu. Thus crashing (in Pango) is delayed until
698         the point where one chooses a font, which can't be rendered by
699         Pango. Fixes bug #335096 as far as Dia can.
700         
701 2006-03-21  Lars Clausen  <lars@raeder.dk>
703         * installer/win32/dia.nsi: 
704         * doc/en/dia.xml: 
705         * doc/eu/dia.xml: 
706         * doc/pl/dia.xml: 
707         * config.h.win32: 
708         * configure.in: 
709         * NEWS: -pre6
711         * plug-ins/xfig/xfig-import.c: Last missing stack underflow check.
713 2006-03-19  Hans Breuer  <hans@breuer.org>
715         * app/display.c app/preferences.c : unset transient, still issues
716         with transient handling, see bug #332828
717         
718         * app/makefile.msc lib/makefile.msc objects/makefile.msc
719           plug-ins/makefile.msc : removed stuff supposed to be used from
720         $(TOP)/glib/build/win32/make.msc
721         
722         * plug-ins/xfig/xfig-import.c : make it compile with strict type 
723         checking [these were real errors, freeing stack passed values instead
724         of the intended local variable] :
725         xfig-import.c(580) : error C4047: 'function' : 'struct _GArray *' 
726          differs in levels of indirection from 'struct _Point ** '
727         xfig-import.c(580) : warning C4024: 'g_array_free' : different types 
728          for formal and actual parameter 1
730         * lib/libdia.def : export connection_adjust_for_autogap 
731         
732         * plug-ins/hpgl/hpgl.c : there is one floating point value in the 
733         whole HPGL output - and it was locale dependent.
735 2006-03-12  Lars Clausen  <lars@raeder.dk>
737         * installer/win32/dia.nsi: 
738         * doc/en/dia.xml: 
739         * doc/eu/dia.xml: 
740         * doc/pl/dia.xml: 
741         * config.h.win32: 
742         * configure.in: 
743         * NEWS: -pre5
745         * objects/UML/constraint.c (constraint_update_data): 
746         * objects/UML/message.c (message_update_data): 
747         * objects/UML/implements.c (implements_update_data): 
748         * objects/SADT/annotation.c (annotation_update_data): 
749         * objects/Jackson/phenomenon.c (message_update_data): 
750         * objects/network/wanlink.c (wanlink_update_data): 
751         * objects/FS/flow.c (flow_update_data): Added autogap adjustment.
753         * objects/standard/line.c: 
754         * lib/connection.[ch] (connection_adjust_for_autogap): Moved autogap
755         functionality for connections.
757 2006-03-11  Lars Clausen  <lars@raeder.dk>
759         * lib/diagdkrenderer.c (draw_object): 
760         * lib/dialibartrenderer.c (draw_object): Don't draw highlighting
761         in the non-interactive rendering.
763         * dia.spec:
764         * installer/rpm/dia.spec:
765         * installer/rpm/README:
766         Moving dia.spec to installer directory, where distribution
767         maintainers can keep their own copies.
769         * objects/UML/uml.h: 
770         * objects/UML/class.h: 
771         * objects/UML/umloperation.c: 
772         * objects/UML/class.c: 
773         Preparations to fix bug #334037: Clean away the Lisp-like
774         constructs confusing the issue.
776 2006-03-10  Lars Clausen  <lars@raeder.dk>
778         * lib/object.c: Don't compare floats with ==, even in sanity checks.
780 2006-03-09  Lars Clausen  <lars@raeder.dk>
782         * plug-ins/xfig/xfig-import.c: Fix three buffer overflows in color
783         reading, depth reading, and points reading.  Thanks to 
784         
785         * COPYING: Added copyright info again.
787 2006-03-09  Steffen Macke <sdteffen@gmail.com>
789         * installer/win32/dia.nsi: don't uninstall old version; overwrite
790         existing files
792 2006-03-08  Steffen Macke <sdteffen@gmail.com>
794         * installer/Makefile.am:
795         * installer/win32/Makefile.am:
796         * installer/win32/locale/Makefile.am: Making sure that the installer
797         sources are included in the dia source distribution
798         * installer/win32/dia.nsi: Don't include makefiles in installer;
799         Add uninstaller link to start menu (bug #332650); added commandline 
800         option GTKBIN to specify GTK installation directory (fixes bug #332595)
801         * installer/win32/dia-diagram.ico:
802         * installer/win32/dia-header.bmp:
803         * installer/win32/dia-install.ico:
804         * installer/win32/dia-intro.bmp:
805         * installer/win32/dia-uninstall.ico:
806         * installer/win32/dia.nsi:
807         * installer/win32/langmacros.nsh:
808         * installer/win32/locale/english.nsh:
809         * installer/win32/locale/german.nsh: Added files to build the win32
810         installer using NSIS (http://nsis.sourceforge.net)
811         
812 2006-03-06  Lars Clausen  <larsrc@raeder.dk>
814         * doc/en/dia.xml: 
815         * doc/pl/dia.xml: 
816         * config.h.win32: 
817         * configure.in: 
818         * NEWS: -pre4
820         * samples/TexChars.dia: Added sample of the escaped chars for TeX.
821         
822         * plug-ins/pstricks/render_pstricks.c (tex_escape_string):
823         Changing escape of \, [, and ] to something that works.  $ is
824         fine.  Fixes parts of 333193.
826 2006-03-05  Lars Clausen  <larsrc@raeder.dk>
828         * plug-ins/xfig/xfig-import.c: Fixed locale issues with FIG import.
830         * lib/orth_conn.c (orthconn_update_data): 
831         * app/diagram.c: Removing debug info.
833         * app/object_ops.c (object_find_connectpoint_display): Don't
834         magnet to parents.
836 2006-02-26  Hans Breuer  <hans@breuer.org>
838         * app/Makefile.am : define DIA_PYTHON_PATH in app/run_dia.sh
839         * plug-ins/python/python.c : if set use it to find python-startup.py
840         (bug #332599, Torben H. Nielsen)
842         * app/app_procs.c : removed // from gtk_init() [shouldn't have commited
843         my test code]. Really closes #332177, thanks Mateus César Gröess.
845 2006-02-26  Lars Clausen  <lars@raeder.dk>
847         * doc/en/dia.xml: 
848         * doc/pl/dia.xml: 
849         * config.h.win32: 
850         * configure.in: 
851         * NEWS: -pre3
853         * lib/element.h (ELEMENT_COMMON_PROPERTIES): Turning off setting
854         of element_width and element_height until constraints can be 
855         properly checked.  Bug #328200
857         * dia.spec (Requires): Updated GTK requirements.
859 2006-02-25  Lars Clausen  <lars@raeder.dk>
861         * lib/diaarrowchooser.c (dia_arrow_chooser_new): Also making sure
862         other dynamic menus have proper translation.
864         * lib/widgets.c (dia_dynamic_menu_create_string_item): 
865         * app/interface.c (cmp_names): 
866         * app/sheets.c (sheets_optionmenu_create): 
867         * lib/sheet.c (load_register_sheet): Using C locale for sheet
868         names internally, translating on display instead.  Also sorting
869         by gettext order explicitly.  Bug #328570.
871 2006-02-25  Hans Breuer  <hans@breuer.org>
873         * app/interface.c(get_sheet_by_name) : be more tolerant about 
874         localization of the sheet name. ( Steffen Macke, #332070 )
875         
876         * app/app_procs.c(app_init) : if GDK_WINDOWING_WIN32 call gtk_init()
877         in any case. In contrast to X11/*nix displays are not optional on
878         windoze. And we need some help of gtk to render text to bitmaps.
879         ( Rob McDonald, bug #332177 )
880         
881 2006-02-21  Lars Clausen  <lars@raeder.dk>
883         * NEWS: 
884         * doc/pl/dia.xml: 
885         * doc/en/dia.xml: 
886         * configure.in: 
887         * config.h.win32: Update to -pre2.
889         * lib/beziershape.c (add_handles): Fixing CP pos calculation for
890         adding new CP's.  Fixes bug #331557.
892 2006-02-20  Lars Clausen  <lars@raeder.dk>
894         * lib/diarenderer.c (find_center_point): Better handling of some
895         degenerate cases.
896         (draw_arc_with_arrows): Draw line in all cases.  Doesn't handle
897         the truly degenerate cases well enough yet, but at least doesn't
898         break on common cases.  Probably need to do something special for
899         arcs with start and end point the same.  Improves but does not
900         entirely fix bug #331372.
902 2006-02-20  Hans Breuer  <hans@breuer.org>
904         * plug-ins/python/Makefile.am : dot.py was missing from EXTRA_DIST
905         
906 2006-02-18  Hans Breuer  <hans@breuer.org>
908         * plug-ins/metapost/render_metapost.c : text position gives the
909         baseline neither top nor bottom. ( Rob McDonald, #331491 )
911         * plug-ins/wmf/wmf.cpp : finally respecting the print margins
912         ( Rob McDonald, #331371 )
913         * plug-ins/wmf/wmf_gdi.h : some more constants not useful 
914         without a GDI printer (driver)
915         
916 2006-02-17  Hans Breuer  <hans@breuer.org>
918         * plug-ins/metapost/render_metapost.c(draw_string) : dont query
919         the font for it's height but use the 'height' parameter passed
920         in. Close enough to the desired size - and independent of zoom -
921         to close bug #331489 (Rob McDonald)
922         
923 2006-02-12  Lars Clausen  <lars@raeder.dk>
925         * NEWS: 
926         * dia.spec: 
927         * doc/pl/dia.xml: 
928         * doc/en/dia.xml: 
929         * configure.in: 
930         * config.h.win32: Updates for version 0.95-pre1.
932 2006-02-12  Hans Breuer  <hans@breuer.org>
934         * app/makefile.msc : build three components dia.exe (console
935         application), diaw.exe (windows application) and dia-app.dll
936         containing almost all of Dia's application shared between
937         the two executables
938         * app/main.c app/winmain.c app/app_procs.c app/dia.def : some 
939         refactoring to accomplish the new dependency layout
940         * objects/makefile.msc plug-ins/python/makefile.msc : need to
941         link dia-app.lib now - if at all depending on app/*
942         
943 2006-02-11  Hans Breuer  <hans@breuer.org>
945         * makefile.msc : nmake -f makefile.msc just compiles now
946         * app/makefile.msc lib/makefile.msc : make not using FT2
947         on win32 the default (works around bug #150813 by diabaling it)
948         * objects/makefile.msc plug-ins/makefile.msc : remove -GD from
949         $(CC) command line. It isn't understood by newer versions of cl.
950         
951         * app/authors.h : reflect the recent maintainers change
952         
953         * app/display.c app/load_save.c : removed debug spew
954         
955         * app/winmain.c : improved redirection
956         
957 2006-02-05  Hans Breuer  <hans@breuer.org>
959         * app/menus.[ch] app/diagram.c : the GNOME specific menu code is dead 
960         since 0.94. Fix somne left-overs, also properly disable the duplicate
961         menu entry
963         * po/POTFILES.in : added objects/network/wanlink.c
965 2006-02-05  Hans Breuer  <hans@breuer.org>
967         * lib/dialibartrenderer.c(renderer_finalize) : dont unref 
968         parent_instance.font here. It will be done in DiaRenderer::finalize()
969         Just another reason for crashing at diagram close with libart 
970         renderer involved ...
971         
972 2006-02-04  Hans Breuer  <hans@breuer.org>
974         * objects/standard/image.c : added mainpoint, patch from
975         Torben H. Nielsen fixing bug #329603
977         * app/layer_widget.c : avoid writing to Layer::connectable for a
978         diagram possibly already gone. Fixes bug #329096.
980         * lib/persitence.c(persistence_load) : dont leak filename
981         in case of not existing file
983         Code review via regex "[^_l>p](malloc|free|realloc)\("
984         * objects/fs/function.c : what's g_strdup() must be g_free()'d
985         * plug-ins/dxf/dxf-import.c : use g_realloc()/g_free()
986         * plug-ins/xfig/xfig-import.c : use g_free() instead of plain free()
988         * app/filedlg.c(file_save_as_response_callback) : before destroying 
989         the save as dialog we need to drop the dialogs diagram reference.
990         Fixes behaviour described in bug #123225#c7
992         * app/interface.c(get_sheet_names) : need to sort sheets by their 
993         display name to really fix bug #160101.
994         
995         * objects/UML/association.c : dont leak the role_name calculated
996         with visibility attribute, use g_strdup_printf() instead of strcat().
997         
998         * configure.in : fix typo in error message
1000         * lib/object.c : remove duplicated prototype
1001         * lib/element.c : element_update_connections_rectangle() assumes nine
1002         connection points, i.e. requires 'mainpoint'. g_assert() for this.
1003         
1004 2006-02-03  Hans Breuer  <hans@breuer.org>
1006         * objects/network/bus.c : allow to tint it. Patch from
1007         Torben H. Nielsen, closes bug #328580.
1008         * objects/network/wanlink.c : allow to tint this as well.
1009         
1010 2006-01-29  Hans Breuer  <hans@breuer.org>
1012         * app/render_libart.c(draw_line) : make setting the pixel side-effect
1013         free; account for it in now (less) magic increments. Fixes bug #312147
1015 2006-01-28  Hans Breuer  <hans@breuer.org>
1017         * po/checktrans.py : make it work with recent pyxml (unknown url type)
1018         * po/AADL.sheet.in : remove duplicated _description
1019         => translation report works again
1021         * app/display.c : revert back to "_Discard Changes" to avoid
1022         accelerator clash. Also gtk_button_new_with_mnemonic() to
1023         'expand' the accelerator.
1025         * lib/dia_svg.c(dia_svg_style_init) : need to initialize
1026         linecap, linejoin, linestyle to avoid invalid settings.
1027         (Nguyen Thai Ngoc Duy, bug #328945)
1028         * lib/diagdkrenderer.c : add a place fro breakpoint to 
1029         detect invalid mode
1031         * lib/diarenderer.c(setfont) : if we get passed in the
1032         same font it must be ref'd before unref.
1034         * lib/text.c(set_string) : don't eat the trailing new-line
1035         Fixes bug #165092
1036         
1037         * app/app_procs.c app/display.c app/filedlg.c 
1038         attempt to provide more HIG compliant dialogs. Patch from
1039         Nguyen Thai Ngoc Duy, part of bug #138183
1040         
1041         * app/recent_files.c(recent_file_history_clear_menu) : instead of 
1042         messing with GtkMenuShell::children and gtk_widget_destroy() just 
1043         use gtk_container_remove. Avoids memory corruption causing the
1044         most 'random' crashes recently.
1045         
1046         * objects/UML/message.c : can't use PROP_STD_TEXT_COLOUR_OPTIONAL 
1047         cause it has PROP_FLAG_DONT_SAVE. It is designed to fill the 
1048         TextAttributes - not some subset. Fixes bug #327701
1049         * objects/UML/implements.c objects/UML/generalization.c
1050           objects/UML/constraint.c objects/UML/object.c
1051           objects/UML/large_package.c objects/UML/realizes.c : same here.
1052         * objects/UML/dependency.c : same here. Also draw the "Name" with the
1053         given color, not only the Stereotype.
1054         * objects/UML/class.c : same here. But we also need to restore 
1055         explicit restore "text_color" for the load case.
1056         
1057 2006-01-27  Hans Breuer  <hans@breuer.org>
1059         * configure.in : error out if GLib/GTK+ version is lower than required
1061         * app/filedlg.c lib/widgets.c : more default responses. Patch 
1062         from Nguyen Thai Ngoc Duy, part of bug #138183
1063         
1064         * NEWS : Main point feature correction. The line is supposed to
1065         start at the border of the object not the bounding box.
1066         
1067         * app/commands.c : respect difference between documenters and
1068         translators and show both in about dialog. Closes bug #328711.
1069         
1070         * app/interface.c : instead of g_warning for missing shape icon
1071         but use message_warning and show the 'missing' icon
1072         
1073         * lib/dialibartrenderer.c : with Gtk+ 2.8 gdk_draw_layout() does
1074         not match pango_win32_get_context(). Use gdk_pango_get_context ().
1075         Also removed my special win32-modified-pango code for draw_string()
1076         without the help of gdk.
1078         * Makefile.am : include MAINTAINERS file in tarball
1080         * lib/conectionpoint.h : removed double include of "geometry.h"
1081         
1082 2006-01-22  Hans Breuer  <hans@breuer.org>
1084         * app/splash.c app/commands.c : dont share the logo and finally leak
1085         it. Instead both place load and unref the logo themself. 
1086         Also unbreak GNOME case.
1088         * app/commands.c : use GtkAboutDialog instead of homegrown GTK+
1089         or GNOME specific one. 120 lines less code and more standard.
1090         * configure.in : require GTK+ >= 2.6
1092         * app/diapagelayout.c app/diaunitspinner.c app/layer_dialog.c :
1093         make GtkTypeInfo static const as usual elsewhere
1094         
1095         * app/recent_files.c : it almost certainly is an error to ignore
1096         the return value of g_list_remove_link()
1097         
1098         * lib/arrows.c lib/bezier_conn.[ch] lib/beziershape.h
1099           lib/boundingbox.[ch] lib/color.[ch] lib/connectionpoint.c
1100           lib/create.h lib/dia_svg.c lib/dia_xml.c lib/diaarrowchooser.c
1101           lib/diagramdata.[ch] objects/UML/activity.c objects/UML/class.[ch]
1102           objects/UML/uml.h : documentation fixes
1103         
1104         * lib/object.h lib/diagramdata.h : avoid circular inclusion
1105         * lib/connectionpoint.h lib/focus.h lib/group.h lib/handle.h
1106           lib/properties.h lib/sheet.h lib/diamenu.h
1107         : dont include "object.h", "diatypes.h" is enough. 
1108         Rule of thumb: only headers declaring an inheritant of DiaObject
1109         should include "object.h"
1110         * lib/diarenderer.h : include "font.h" not strictly needed by 
1111         this header, but needed in almost any plug-in/
1112         * app/diagram_tree_menu.c app/dialogs.[hc] app/display.c
1113           app/export_png.c app/interface.c app/load_save.c app/sheets.c
1114           app/sheets_dialog.c app/sheets_dialog_callbacks.c 
1115           lib/diagdkrenderer.c lib/object.c lib/propobject.c
1116           lib/text.c plug-ins/gprint/gnomeprint.c plug-ins/pixbuf/pixbuf.c
1117           plug-ins/svg/render_svg.c
1118           : some .c files now need to include "object.h" or <gtk/gtk.h>
1119         or e.g. "intl.h" direct, formerly dargged in indirectly
1120         * plug-ins/pgf/render_pgf.c : explicit inclusion of "arrows.h"
1121         
1122 2006-01-21  Hans Breuer  <hans@breuer.org>
1124         * lib/connection.c lib/connection.h lib/connectionpoint.h
1125           lib/diagramdata.h lib/diarenderer.h lib/diatypes.h
1126           lib/element.h lib/geometry.h lib/handle.h lib/objchange.h
1127           lib/object.c lib/object.h : documentation tweaking
1129         * objects/UML/class_dialog.c(attributes_create_page,
1130         operations_create_page) : dont connect
1131         to a not exisiting signal. Avoids "GLib-GObject-CRITICAL **:
1132         g_signal_connect_closure_by_id: assertion 'signal_id > 0' failed"
1133         (This was a leftover of introducing the GtkTextView instead of GtkEntry)
1135         * objects/UML/class_dialog.c objects/UML/class.c objects/UML/class.h :
1136         Introduce 'comment_tagging' switch which allows to hide the rendering
1137         {documentation = } Maybe a choice between ugliness and non-standard.
1138         Fixes bug #326214. (Unrelated: started to adapt casing of variables
1139         to Dia's common coding style)
1140                 
1141         * lib/object_defaults.c : pass is_default=TRUE to object_copy_props
1142           lib/proplist.c : fixed pdtpp_default()
1143           lib/propobject.c : correctly reflect is_default 
1144         * object/UML/class.c : correct setting of PROP_FLAG_NO_DEFAULTS and
1145         PROP_FLAG_DONT_MERGE. With the above this fixes bug #320934
1146         
1147         * lib/propdialogs.c : if PROP_NO_DEFAULTS is set dont try to show a
1148         widget in defaults dialog
1150         * app/display.c(initialize_display_widgets) : also append the Input 
1151         Methods menu to the diagram menubar. Now fixes bug #327862.
1153         * config.h.win32 : #undef LOCALEDIR
1154         * app/app_procs.c : runtime calculation of localedir. It now is
1155         $(executable_dir)/../locale. Should help fix bug #309763
1156         
1157         * sheets/AADL.sheet.in : remove left over xml:lang tag. 
1158         ( Nguyen Thai Ngoc Duy, bug #327519)
1160         * lib/dialibartrenderer.c : make text rendering work without
1161         PangoFT2 and PangoWin32
1164 2006-01-18  Lars Clausen  <lars@raeder.dk>
1166         * objects/UML/class.h: Enabling UML class mainpoint after failure
1167         to break it.
1169         * app/grid.c: Fix bug with grid being incorrectly drawn when gap <
1170         1.
1172 2006-01-14  Hans Breuer  <hans@breuer.org>
1174         * app/paginate_psprint.c : ensure we are not producing pages for
1175         epsilon. Floating imprecision is fun. Fixes bug #133856.
1176         * app/paginate_gdiprint.cpp : same here.
1178         * plug-ins/pstricks/render_pstricks.c(draw_string) : now that I've
1179         found the nice samples from bug #156171 it was quite simple to
1180         confirm that the y value need indeed to be inverted. Fixes bug #304974.
1181         Also special case strings starting with \tex - i.e. dont escape them -
1182         to keep the use-case of direct tex input.
1183         
1184         * lib/debug.c : #include <glib/gprintf.h> not just <gprintf.h>
1187 2006-01-14  Hans Breuer  <hans@breuer.org>
1189         * samples/Self/umlclass.dia : (new file) documenting part of the
1190         object relations of UMLClass. Also good for testing connections.
1191         
1192         * lib/debug.c : replace wrong call to vprintf() - missing file
1193         descriptor - with the more appropriate g_vprintf(). Thus 
1194         dia_assert_true() does not smash the stack anymore on win32.
1195         
1196         * objects/UML/class.c objects/UML/class_dialog.c objects/UML/uml.h
1197           objects/UML/umlattribute.c objects/UML/umloperation.c :
1198         reverted the memory managment of UMLAttribute/UMLOperation's 
1199         ConnectionPoint(s) back to how it was up until 0.94. This finally
1200         makes the UMLClass work again including undo/redo support. Fixes
1201         bug #314153 and en passant bug #326453.
1202         
1203 2005-01-12  Lars Clausen  <lars@raeder.dk>
1205         * objects/UML/umlattribute.c: 
1206         * objects/UML/class_dialog.c: Better way of handling
1207         connectionpoints: Don't copy them, just reference them.  Finally
1208         fixes bug #314153 (not quite the pi bug:)
1210         * app/menus.c (display_menu_items): 
1211         * app/filedlg.c (file_open_response_callback): 
1212         * app/display.[ch] (copy_display): 
1213         * app/commands.[ch] (view_clone_view_callback): 
1214         Added functionality to clone display.  Preparation for storing
1215         display info in diagram files (not happening this version, though).
1217         * INSTALL (NOTE FOR WINDOWS USERS): Added note for non-compiling
1218         users pointing at dia-installer.
1220 2006-01-08  Hans Breuer  <hans@breuer.org>
1222         * shapes/Gane_and_Sarson/Makefile.am : correct spelling of filenames.
1223         (Narcelio Filho, #326075)
1225         * objects/AADL/aadl.h : remove #include "app/display.h". It is not needed,
1226         plug-ins should not depend on app/* and it even breaks 'make distcheck'.
1227         * objects/AADL/Makefile.am : added edit_port_declaration.h
1228         * app/Makefile.am : added diaconv.c to EXTRA_DIST
1229         => 'make distcheck' passes again.
1231         * configure.in : use some more of gcc's useful warnings
1233         * lib/geometry.h : removed unused functions just producing warnings
1234         [sometimes it's good to read compiler warnings]
1235         * plug-ins/cairo/diacairo.c : somehow a function call got lost
1236         (left-hand operand of comma expression has no effect)
1237         * plug-ins/metapost/render_metapost.c : dia_message_filename()
1238         wants a char* not a FILE* (passing arg 1 of `dia_message_filename'
1239         from incompatible pointer type)
1242 2006-01-07  Hans Breuer  <hans@breuer.org>
1244         * objects/custom/shape_info.c(parse_path) : handle the case of 
1245         invalid path data more gracefully, i.e. show a warning instead 
1246         of crashing later on.
1247         * plug-ins/svg/svg-import.c(read_path_svg) : ditto.
1248         
1249         * configure.in sheets/Makefile.am shapes/Gane_and_Sarson 
1250           shapes/Makefile.am : added Gane & Sarson shapes 
1251         (Nick Moore, #319544)
1253         * objects/makefile.msc : building AADL on win32
1255 2006-01-06  Hans Breuer  <hans@breuer.org>
1257         * objects/AADL/aadl.h : avoid redefinition warnings by #undef
1258         min, #undef max before local definitions
1259         * objects/AADL/aadl.h : more prototypes
1260         * objects/AADL/aadltext.c : for C89 declarations must be at the
1261         beginning of a block. And Dia *must* be compileable with C89.
1263         * objects/AADL/** objects/Makefile.am sheets/Makefile.am 
1264         configure.in : AADL plug-in from Pierre Duquesne. See
1265         http://mail.gnome.org/archives/dia-list/2006-January/msg00005.html
1266         for more information
1267         * sheets/AADL.sheet.in : from the above patch but modified 
1268         to become translatable like the other sheet files. That is: the
1269         french translation got temporary removed cause it does not belong here.
1271         * plug-ins/pgf/render_pgf.c : no C99/C++ comments please
1273         * app/app_procs.c app/diaconv.c : get rid of run-on sentences
1274         (Adam Weinberger, bug #325567)
1275         
1276         * app/menus.c : removed some keybindings with <control><shift>[0-9A-F]
1277         and change some other to use <control><alt>. They collide with GTK's 
1278         Unicode input feature. Fixes bug #320495. For rationale see: 
1279         http://developer.gnome.org/projects/gup/hig/2.0/input-keyboard.html
1280         
1281         * app/display.c : pay attention to g_warnings() [should always run
1282         with --g-fatalwarnings ;)]. Only create the menubar IM menu if there
1283         actually is a menu bar.
1284         
1285         * lib/diarenderer.c : the righthand calculation accidentially broke
1286         some arcs direction. Should be fixed again.
1287         
1288 2006-01-02  Hans Breuer  <hans@breuer.org>
1290         * app/display.c(new_display) : also append the Input Methods menu to 
1291         the diagram menubar. Fixes bug #308576.
1293         * lib/widgets.c(dia_dynamic_menu_reset) : don't use an already
1294         freed string to dia_dynamic_menu_select_entry(). Fixes bug #323592.
1296         * lib/sheet.c(dia_sheet_sort_callback) : sort sheets according to 
1297         their localized name (with g_utf8_collate). Thus not relying on the 
1298         capabilities of the C libraries strcmp(). Fixes bug #160101.
1300         * lib/diarenderer.c(draw_arc_with_arrows) : don't recalculate center
1301         point and width from the (arrow-)corrected new points. Otherwise a 
1302         whole new wrong arc may emerge. Fixes bug #312641.
1303         
1304 2006-01-01  Hans Breuer  <hans@breuer.org>
1306         * objects/custom/custom_object.c(cutom_update_data) : depending 
1307         on the handle moving let one scale (x or y) take precedence. 
1308         (bug #308515, Eric Deplagne)
1309         
1310         * objects/UML/class.c : only perform the attributes check with
1311         attributes visible to ged rid of false warnings
1312         * objects/UML/class_dialog.c : need to setup Connection::object
1313         after uml_attribute_new() and uml_operation_new(), again less
1314         warnings but bug #314153 still not fixed.
1316         * NEWS : updated
1318         * plug-ins/python/diasvg.py : more correct svg by also writing 
1319         xmlns="http://www.w3.org/200/svg"
1321         * plug-ins/python/dot.py : skip unconnected connection lines
1322         * plug-ins/python/Makefile.am : added dot.py
1324         * plug-ins/python/pydiadoc.py plug-ins/python/codegen.py : fixed
1325         typos in comments
1327 2005-12-31  Hans Breuer  <hans@breuer.org>
1329         * objects/UML/class.[hc] objects/UML/class_dialog.c : removed the 
1330         caching of UMLClass::attributes_strings, operations_strings, 
1331         templates_strings.
1332         It was broken by the recent code restructuring in bug #303744 and
1333         - if necessary at all - nowadays it should be done on the 
1334         UMLAttribute, UMLOperation, UMLFormalParameter level anyway. 
1335         A small, much needed simplification of the code.
1337 2005-12-30  Hans Breuer  <hans@breuer.org>
1339         * objects/UML/class.c : Patch from Dave Klotzbach
1340         fixes crash bug #325151
1342         * app/app_procs.c : add command line parameter --nonew to allow
1343         avoiding the empty start-up diagram
1344         Also give a hint on where the object-libs were missing.
1345         Finally work around a misbehaviour upstreamm :
1346         g_option_context_parse() returning FALSE but not setting error.
1348         * app/commands.c app/app_diagram_tree.c app/interface.c :
1349         Use gdk_pixbuf_render_pixmap_and_mask_for_colormap as suggested by
1350         http://www.gtk.org/api/2.6/gdk/gdk-Pixbufs.html#gdk-pixbuf-render-pixmap-and-mask
1351         
1352         * lib/widgets.c : image file selection finally ported to the new
1353         gtk file chooser. Fixes bug #309383
1355 2005-12-28  Hans Breuer  <hans@breuer.org>
1357         * app/commands.c(file_new_callback) : convert to filename encoding before
1358         passing to new_diagram(), fixes bug #322400
1359         
1360         * app/interface.c(create_display_shell) : don't clip width on screen 
1361         height - now commited. Also lazy creation of tooltips.
1362         
1363         * objects/UML/actor.c : Actor is finally resizable, fixes bug #66915
1364         
1365 2005-12-27  Hans Breuer  <hans@breuer.org>
1367         * app/diapsft2renderer.c(draw_bezier_outline) : only call
1368         FT_Outline_Decompose() when FT_GLYPH_FORMAT_OUTLINE.
1369         Prefers no text output over crashing for bug #144212
1371         * app/interface.c : removed superfluous call to dia_canvas_set_size().
1372         Suggested by Roland Stigge, fixes bug #148149.
1374         * plug-ins/dxf/dxf-import.c : don't complain too loud on Binary
1375         DXF. It is not supported at all. Fixes bug #322101
1377         * lib/geometry.c : removed the ifdefed GLIB_CHECK_VERSION(2,7,0)
1378         define G_IMPLEMENT_INLINES. It breaks again with glib-2-8
1381 2005-12-27  Hans Breuer  <hans@breuer.org>
1383         * app/navigation.c : protect on_da_button_release_event() against being
1384         called twice. Also only popdown the navigation window after the first 
1385         draw (reusing nav->is_first_expose). Fixes bug #151696
1386         
1387         * app/interface.c(create_display_shell): don't clip width on screen height, 
1388         but height
1390         * lib/plug-ins.c : fixed typo in comment
1391         
1392         * lib/libdia.def : updated externals
1393         * lib/makefile.msc : build debug.obj
1395         * plug-ins/makefile.msc : building pgf in the right alphabetical order
1396         * plug-ins/pgf/render_pgf.c : include <glib/gprintf.h>
1397         
1398 2005-12-08  Lars Clausen  <lars@raeder.dk>
1400         * app/authors.h: 
1401         * plug-ins/pgf/pgf.c: 
1402         * plug-ins/pgf/render_pgf.[ch]: 
1403         * plug-ins/pgf/Makefile.am: 
1404         * plug-ins/Makefile.msc: 
1405         * plug-ins/Makefile.am (SUBDIRS): 
1406         * configure.in: Patch from Moritz Kirmse <momomaniac@gmail.com>: Add
1407         support for PGF output for including in (La)TeX documents that
1408         allows PDF generation.
1410         * samples/render-test.dia: Added samples of text in different
1411         sizes, standard fonts and styles with size markers.
1413 2005-12-04  Lars Clausen  <lars@raeder.dk>
1415         * lib/Makefile.am (gen_sources): Mark marshal files as generated.
1416         (BUILT_SOURCES): Added marshal files.
1418 2005-12-03  Lars Clausen  <lars@raeder.dk>
1420         * lib/Makefile.am (diamarshal.c): Fix marshal rules to not talk
1421         about $(srcdir) and confusing everybody.
1423         * app/undo.c:
1424         * lib/diagramdata.c:
1425         * lib/diagramdata.h:
1426         * lib/diamarshal.list:
1427         * plug-ins/python/pydia-diagram.c:
1428         * plug-ins/python/pydia-diagramdata.c:
1429         * plug-ins/python/python-startup.py: Patch from David Johansson
1430         <david.lgj@gmail.com>: Add signals emitted when objects are
1431         inserted or removed.
1433 2005-11-13  Lars Clausen  <lars@raeder.dk>
1435         * app/display.c (update_zoom_status): Fix of bug #321387: Avoid
1436         (small) buffer overflow by using g_strdup_printf instead of sprintf.
1438 2005-11-09  Lars Clausen  <lars@raeder.dk>
1440         * app/app_procs.c: 
1441         * plug-ins/dxf/dxf-import.c (import_dxf): Don't use g_error except
1442         when reaching the statement is a bug.  Using g_critical and exit() for
1443         fatally wrong inputs.
1445         * objects/UML/uml.c: 
1446         * objects/UML/class.c: Patch from dklotzbach@foxvalley.net (dave
1447         Klotzbach): Fixes template rendering and converts home-brew inline
1448         doc format to javadoc.  Doesn't yet fix bug #320934, but turns it
1449         into a dup.
1451 2005-11-07  Lars Clausen  <lars@raeder.dk>
1453         * lib/object.[ch]: Add 'enclosing box' as opposed to 'bounding
1454         box' since several objects have problems of using bounding box in
1455         different ways (see bug #300055).  For now, enclosing box ==
1456         bounding box, but over time objects will learn to expand the
1457         bounding box to include things only rendered interactively.
1459         * app/modify_tool.c (modify_motion): Make sure highlight is reset
1460         when moving between overlapping objects.
1462         * app/interface.c (interface_toggle_mainpoint_magnetism): Redraw
1463         diagram after toggling to make red X's come and go.
1465         * lib/font.c: #ifdef'd out layout cache for bug #307320.  Define
1466         it if you need faster rendering and aren't afraid of crashbugs:)
1468         * lib/objchange.c: Bugfix from dklotzbach@foxvalley.net
1469         (dave Klotzbach):  Fixes null pointer problems in free function.
1471         * objects/UML/class.c
1472         * objects/UML/class.h
1473         * objects/UML/class_dialog.c: Patch from dklotzbach@foxvalley.net
1474         (dave Klotzbach): Make UML comments conform to UML 1.0 standard
1475         and allow multi-line comments. Ugly as hell, but standard.  Time
1476         for a 'Strict UML' option?  Fixes bug #303744.
1477         
1478         * objects/UML/state.c: Patch from Peter Allin <peter@peca.dk>: Add
1479         entry, exit and do descriptions to a state object.  Fixes bug #65434.
1481 2005-11-03  Lars Clausen  <lars@raeder.dk>
1483         * lib/arrows.c:
1484         * lib/attributes.c:
1485         * lib/autoroute.c:
1486         * lib/bezier_conn.c:
1487         * lib/boundingbox.c:
1488         * lib/color.c:
1489         * lib/connection.c:
1490         * lib/connectionpoint.c:
1491         * lib/dia_dirs.c:
1492         * lib/dia_image.c:
1493         * lib/dia_svg.c:
1494         * lib/dia_xml.c:
1495         * lib/diaarrowchooser.c:
1496         * lib/diaerror.c:
1497         * lib/diagdkrenderer.c:
1498         * lib/diagramdata.c:
1499         * lib/element.c:
1500         * lib/object.c:
1501         * lib/object.h:
1502         * lib/parent.c:
1503         Added documentation java-doc style.  Also a few trivial cleanups.
1504         
1505 2005-10-13  Lars Clausen  <lars@raeder.dk>
1507         * lib/connectionpoint.h (DIR_ALL): Parentheses around operations
1508         in macros.
1510         * plug-ins/hpgl/hpgl.c (export_data): Correct error message.
1512         * lib/Makefile.am:
1513         * lib/debug.[ch]:
1514         * lib/object.[ch]: 
1515         * objects/UML/class.[ch]: 
1516         * objects/UML/uml.h: 
1517         * objects/UML/umlattribute.c: 
1518         * objects/UML/umloperation.c: 
1519         * objects/UML/class_dialog.c: 
1520         Rework of the UML class attribute/operation handling.  Now doesn't
1521         copy connection points into the dialog data, but only the "flat"
1522         data.  As part of debugging made sanity check functionality.
1523         Currently still dies when deleting an attribute/operation that has
1524         a connection to it.
1526 2005-10-09  Hans Breuer  <hans@breuer.org>
1528         * lib/properties.h : prefer american spelling of colo(u)r for
1529         user visible strings - i.e. to be translated ones.
1530         * objects/UML/uml.c : it is Implementation. Together fixes bug #313929
1531                                         ^
1532         * po/*.po : updated (by 'make distcheck')
1534 2005-10-09  Hans Breuer  <hans@breuer.org>
1536         * app/display.c : allow !"toolbox on top" without restart.
1537         (Chris Hellberg, bug #310702)
1539 2005-10-09  Hans Breuer  <hans@breuer.org>
1541         * lib/arrows.c : patch from Radek Krahl fixing the blanking
1542         of two arrowheads, bug #310157
1544 2005-10-08  Hans Breuer  <hans@breuer.org>
1546         * plug-ins/python/group_props.py : show a descriptive text instead of an 
1547         empty table if there are no common properties to change. Fixes bug #314432
1549 2005-10-08  Hans Breuer  <hans@breuer.org>
1551         * objects/UML/transition.c : inverted default direction of
1552         the direction. Patch from Peter Allin, fixes bug #318049
1553         [You possibly need to 'rm ~/.dia/defaults.dia' to have an effect]
1555 2005-10-08  Hans Breuer  <hans@breuer.org>
1557         * app/Makefile.am objects/standard/Makefile.am : match the
1558         referenced icons to the needed. Make 'make distcheck' pass
1559         and thus fixes bug #312152
1561         * objects/standard/textobj.c : no C++ comments please!
1563 2005-10-08  Hans Breuer  <hans@breuer.org>
1565         * objects/standard/textobj.c : preserve the position set on create
1566         [makes e.g. text positioning of diasvg_import.py work]
1568         * plug-ins/python/diasvg_import.py : restrict what eval() can do
1569         with strings from svg files. Fixes the arbitrary code execution from 
1570         bug #317637
1571         
1572         * app/pixmaps/mainpoints-(on|off).png : new icons to toggle center point
1573         magnetism. At least they are distinguishable from grid snapping.
1574         * app/makefile.msc app/Makefile.am : use them
1575         
1576         * lib/focus.c(reset_foci) : also remove_focus(). This fixes bug #172851
1577         I also can't reproduce bug #309044 anymore (on win32).
1578         
1579 2005-10-01  Lars Clausen  <lars@raeder.dk>
1581         * lib/connectionpoint.h (DIR_ALL): Parentheses around | expressions.
1583         * plug-ins/hpgl/hpgl.c (export_data): Listen to warnings and don't
1584         pass FILE * as gchar *.
1586         * lib/debug.[ch] (dia_assert_true): Debugging aids.
1588 2005-09-29  Lars Clausen  <lars@raeder.dk>
1590         * objects/UML/class.h: Enabling mainpoints for UML.
1592         * objects/UML/class.c (umlclass_set_props): Make sure to always
1593         realloc connection point list.
1595 2005-09-26  Ahmad Riza H Nst  <rizahnst@id.gnome.org>
1597         * configure.in: Added "id" in ALL_LINGUAS line.
1599 2005-09-14  Lars Clausen  <lars@raeder.dk>
1601         * objects/UML/class.c (umlclass_load): Set mainpoint obj upon
1602         loading.  Fixes bug #315427.
1604 2005-09-11  Hans Breuer  <hans@breuer.org>
1606         * objects/standard/arc.c objects/standard/textobj.c : fix
1607         C99isms, Dia is supposed to compile with C89 like msvc
1609         * app/makefile.msc : use the wrong center-point-magnetism
1610         icons for the win32 build, too.
1612         * plug-ins/python/pydia-error.c : dont crash on C escape
1613         sequences in the error string
1614         * plug-ins/python/pydia-render.c : dont free filename twice
1616         * plug-ins/python/dot.py : start of an exporter to DOT language
1617         which can be processed by www.graphviz.org tools
1619 2005-09-05  Iñaki Larrañaga  <dooteo@euskalgnu.org>
1621         * configure.in: Added "doc/eu/Makefile" for Basque documentation.
1623 2005-09-04  Iñaki Larrañaga  <dooteo@euskalgnu.org>
1625         * configure.in: Added "eu" to ALL_LINGUAS.
1627 2005-09-04  Lars Clausen  <lars@raeder.dk>
1629         * lib/element.h (ELEMENT_COMMON_PROPERTIES): Remove object
1630         dimensions frame to make ext_attributes work again.
1632         * app/grid.c (snap_to_grid): Bugfix from Zhang Lin-bo
1633         <zlb@lsec.cc.ac.cn>: Use dynamic grid setting from diagram, not
1634         global prefs.
1636         * objects/standard/textobj.c: Applied patch from Grégoire Dooms
1637         <dooms info ucl ac be>: Add vertical alignment for standard text
1638         object.  This should really be moved into lib/text.c and apply to
1639         all text objects.
1641 2005-09-03  Lars Clausen  <lars@raeder.dk>
1643         * app/connectionpoint_ops.c (connectionpoint_draw): Only draw
1644         mainpoint when snap-to-objects is not on.
1646         * app/Makefile.am (ICON_PNG_PAIRS): 
1647         Fake icons for snap-to-objects.
1649         * app/commands.[ch]: 
1650         * app/menus.c (menus_get_image_menubar): 
1651         * app/display.[ch]: 
1652         * app/interface.c (create_display_shell): 
1653         * app/create_object.c (create_object_button_release): 
1654         * app/disp_callbacks.c (ddisplay_drop_object): 
1655         * app/object_ops.[ch]: 
1656         * app/connectionpoint_ops.c (ddisplay_connect_selected): 
1657         * app/modify_tool.c (modify_button_release): 
1658         * app/display.[ch]: 
1659         Togglable snap-to-objects, also doesn't snap when moving entire
1660         object.  This should be more reasonable in practical use, and can
1661         be turned off when you want to place your arrows more precisely.
1663 2005-08-06  Hans Breuer  <hans@breuer.org>
1665         * plug-ins/cairo/diacairo.c : increased #ifdef MESS:
1666         With Gtk+-2.7.x cairo must be available so the HAVE_CAIRO case
1667         becomes even more ugly when the user has choosen *not* to build 
1668         the diacairo plug-in. If noone can come up with a very convincing 
1669         reason why it has to be done this way I'll probably go back to 
1670         my original dont-build-at-all approach when this breaks the 
1671         next time.
1673 2005-08-02  Lars Clausen  <lars@raeder.dk>
1675         * objects/standard/arc.c: Patch from Grégoire Dooms
1676         <dooms@info.ucl.ac.be>: An almost perfect arc autogap
1677         implementation.  "There is still a small bug when the non
1678         connected end of the arc is very close to the border of the
1679         connected object. I think this is due to rounding errors in the
1680         code for SHIFT-move handle which is reused to trim the arc in
1681         autogap. Also it is not yet possible to have a startgap and an
1682         endgap from/to the same central CP."
1684 2005-07-31  Hans Breuer  <hans@breuer.org>
1686         * plug-ins/cairo/diacairo.c congigure.in : dont wait any 
1687         longer for distributions official packages - depend 
1688         on cairo 0.6.0 - fixes bug #307144
1690 2005-07-20  Hans Breuer  <hans@breuer.org>
1692         * lib/element.h : remove stray NULL in ELEMENT_COMMON_PROPERTIES
1693         which must match PropDescription, that is make it at least compile.
1695 2005-07-19  Hans Breuer  <hans@breuer.org>
1697         * app/diagram.c(new_diagram) : what comes from g_object_new()
1698         MUST NOT be g_free()'d 
1700         * lib/message.h : added dia_message_filename() here as well.
1701         Mainly to not touch all files using. They *all* where using
1702         lib/message.h already! Maybe the implemantation should be moved
1703         to message.c as well cause the function has *nothing* to do
1704         with dynamic filename resolving. It is a wrapper around
1705         g_display_filename() mostly (only?) used for messages ...
1706         * lib/dia_dirs.c(dia_message_filename) : fix C99ism
1708 2005-07-18  Lars Clausen  <larsrc@raeder.dk>
1710         * objects/EML/instantiation.c (instantiation_load): 
1711         * objects/EML/interaction-ortho.c (interaction_ortho_type) 
1712         * objects/ER/participation.c (participation_type): 
1713         * objects/FS/flow-ortho.c (orthflow_type): 
1714         * objects/GRAFCET/vector.c (arc_load): 
1715         * objects/standard/zigzagline.c (zigzagline_type): 
1716         * objects/UML/transition.c (transition_load): 
1717         * objects/UML/realizes.c (realizes_load): 
1718         * objects/UML/dependency.c (dependency_load): 
1719         * objects/UML/generalization.c (generalization_type): 
1720         * objects/UML/association.c (association_type): 
1721         * objects/UML/component_feature.c (compfeat_load): 
1722         Make autorouting deafult on except for old diagrams.
1724         * plug-ins/cairo/diacairo.c (export_data): 
1725         * plug-ins/cgm/cgm.c (export_cgm): 
1726         * plug-ins/dxf/dxf-export.c (export_dxf): 
1727         * plug-ins/dxf/dxf-import.c: 
1728         * plug-ins/hpgl/hpgl.c (export_data): 
1729         * plug-ins/metapost/render_metapost.c: 
1730         * plug-ins/pixbuf/pixbuf.c: 
1731         * plug-ins/pstricks/render_pstricks.c: 
1732         * plug-ins/python/pydia-render.c: 
1733         * plug-ins/shape/shape-export.c: 
1734         * plug-ins/svg/render_svg.c: 
1735         * plug-ins/svg/svg-import.c: 
1736         * plug-ins/wpg/wpg.c 
1737         * plug-ins/xfig/xfig-export.c: 
1738         * plug-ins/xfig/xfig-import.c: 
1739         * plug-ins/xslt/xslt.c: Use dia_message_filename to ensure legal
1740         UTF-8 in message boxes.
1742 2005-07-18  Lars Clausen  <lars@raeder.dk>
1744         * lib/element.h (ELEMENT_COMMON_PROPERTIES): Allow Element objects
1745         to have their dimensions specified in properties.  Still needs to
1746         have proper update when setting properties cause constraint changes.
1748         * app/preferences.c (update_floating_toolbox): Allow
1749         toolbox_on_top setting to happen at once.
1751         * app/diagram.c
1752         * app/filedlg.c
1753         * app/load_save.c
1754         * app/render_eps.c
1755         * app/sheets_dialog_callbacks.c
1756         * lib/dia_dirs.c
1757         * lib/dia_dirs.h
1758         * lib/dia_xml.c
1759         * lib/diarenderer.c
1760         * lib/element.h
1761         * lib/object_defaults.c:
1762         Patch from lav@altlinux.ru (Vitaly Lipatov): Make filenames safe
1763         for displaying in messages - better than crashing!  Mostly fixes
1764         #310087.
1765         
1766         * objects/UML/class.c:  Save normal_font_height under the same
1767         name it gets loaded as.  Fixes bug #310515.
1769         * doc/en/authors.xml
1770         * doc/en/usage-customization.xml
1771         * doc/en/usage-objects-special.xml
1772         * doc/en/usage-objects.xml: Some documentation fixes.  Fixes bug
1773         #308315.
1775 2005-07-17  Lars Clausen  <lars@raeder.dk>
1777         * doc/en/usage-customization.xml: 
1778         * doc/en/usage-objects.xml: 
1779         * doc/en/authors.xml: 
1780         * doc/en/usage-objects-special.xml: Applied patch from
1781         stigge@antcom.de (Roland Stigge):  Diverse typos and
1782         misencodings.  Fixes bug #308315.
1784         * objects/UML/class.c (umlclass_save): Patch from
1785         i.pilcher@comcast.net: Save normal font height under correct name
1786         to reload it.  Fixes bug #310515.
1788 2005-07-10  Hans Breuer  <hans@breuer.org>
1790         * app/connectionpoint_ops.c app/object_ops.c : make the
1791         'whole object' connection point only center point again. 
1792         That is: it is visible and far less magnetic. Only the
1793         line gap handling make it special. For me this probably
1794         fixes bug #303301
1796         * lib/neworth_conn.c : apply the same as for bug #173031.
1797         This OrthConn fork got broken as well. Fixes bug #309381
1799         * app/makefile.msc objects/makefile.msc : adapt to icon changes
1801         * app/interface.c app/diagram_tree.c : a char** is still not 
1802         a char* and the win32 build is configured to error on 
1803         sloppiness like this
1805         * plug-ins/wmf/wmf.cpp : fix typo in preprocessor condition
1807 2005-07-10  Hans Breuer  <hans@breuer.org>
1809         [
1810           Take part in the toolbox icon redesign context! If you want to 
1811           make them really prettier, please keep the following in mind :
1812           - the size *must* be 22x22 otherwise button reflow will get broken.
1813             Or you need to change about 800 icons at once.
1814           - one important part of Dia are control points, so maybe the icons
1815             should reflect that. (IMO gathering random icons form other 
1816             apps wont work)
1817           - the icons should at least look consistent in their group
1818         ]
1820         * app/Makefile.am : use 22x22 variants mostly lent from The GIMP
1821         * app/pixmaps/*.png : added arrow-22.png scroll-22.png zoom-22.png
1823         * objects/standard/*.c : get rid of xpm includes to avoid mixing icon sets
1824         * objects/standard/pixmap/* : added arc.png beziergon.png 
1825         bezierline.png box.png ellipse.png image.png line.png polygon.png 
1826         polyline.png text.png zigzagline.png
1827         * objects/standard/Makefile.am : use the new icon set including
1828         text and arc ...
1830         * app/interface.c : remove the "will probably crash" debug spew
1832 2005-07-09  Lars Clausen  <lars@raeder.dk>
1834         * objects/standard/pixmaps/*.png:
1835         * objects/standard/Makefile.am:
1836         * objects/standard/*.c:
1837         * app/interface.c: 
1838         * app/diagram_tree.c (create_object_pixmap): Fix icon loading. use
1839         new icons. [Slightly belated entry]
1841 2005-07-03  Hans Breuer  <hans@breuer.org>
1843         * app/diagram_tree.c : dont leak display name
1844         * app/app_procs.c : dont leak GOptionContext
1845         * app/prop_widgets.c(frame_beginprop_get_widget) : 
1846         Gtk api still not eating strings ...
1848         * objects/UML/class.c() : don't load properties once more 
1849         which are already loaded by StdProps. In case of strings 
1850         (data_string) it has even produced leaks.
1852         * app/paginate_psprint.c app/diagram.[hc] : the last
1853         of the related dialogs is gone and with it the 
1854         misconception of destroying widgets from 
1855         diagram::finalize()
1856         * app/display.c : ensure the diagram is still threre
1857         when we remove the display from it's list
1859 2005-07-01  Hans Breuer  <hans@breuer.org>
1861         * lib/widgets.c(dia_color_selector_more_callback): dont 
1862         free old_color twice
1864         * plug-ins/wmf/wmf.cpp : finally added enahnced meta file
1865         option. Thus linestyles can be preserved on export - at 
1866         least on NT based systems.
1868         * NEWS : clarify the wmf outside of windows issue
1870         * app/modify_too.c : fix C99ism
1872         * objects/standard/arc.c : debug spew optional at compile time
1874 2005-06-26  Hans Breuer  <hans@breuer.org>
1876         [ Cyrille would call it: warningectomy :-]
1878         * lib/font.c app/create_object.c : `...' might be used uninitialized
1879         in this function. Yes they were.
1880         * app/modify_tool.c : modify_tool.c:610: warning: `obj' might be used 
1881         uninitialized in this function. Yes it was with textedit_activate_object()
1882         Also some static correctness.
1883         * lib/diarenderer.c:678: warning: no previous prototype for 
1884         `calculate_min_radius'. Made static.
1885         * lib/dia_svg.c : ptr is a gchar *
1886         * dia_xml.c(data_point,data_rectangle) : gchar *str for parsing
1887         * lib/prop_text.c(multistringprop_get_widget) : use G_CALLBACK
1888         * app/app_procs.c : confirm warning and make dump_dependencies() static
1889         * app/autosave.c : #if 0'd old stuff
1890         * app/display.c : GTK_CHECK_MENU_ITEM() for snap_to_grid
1891         * 
1892         * lib/text.c lib/font.c objects/standard/line.c object/UML/class.c
1893           objects/Istar/goal.c objects/standard/bezier.c objects/standard/beziergon.c
1894           plug-ins/cgm/cgm.c plug-ins/cairo/diacairo.c plug-ins/hpgl/hpgl.c
1895           plug-ins/wpg/wpg.c plug-ins/svg/svg-import.c plug-ins/shape/shape-export.c
1896           plug-ins/dxf/dxf-export.c plug-ins/gprint/diagnomeprintrenderer.c
1897           plug-ins/gprint/diagnomeprint.c  plug-ins/xfig/xfig-export.c
1898           app/diagram_tree_menu_callbacks.c app/recent_files.c app/undo.c app/menus.c
1899           app/diapsrenderer.c app/diagram.c app/disp_callback.c : 
1900         removed unused variables and functions
1901         * objects/UML/umlattribute.c objects/UML/umloperation.c 
1902           objects/UML/umlparameter.c objects/UML/umlformalparameter.c : 
1903         neither 'missing braces around initializer' nor 'initialization from 
1904         incompatible pointer type'
1905         * objects/UML/class_dialog.c : more static
1906         * app/interface.c : static and almost const correctness and some
1907         less unitialized variables.
1908         * app/diapsft2renderer.c : use (int) casts like the original 
1909         (http://imagic.weizmann.ac.il/~dov/freesw/paps/ v0.4) does
1910         * app/render_gdk.c: stop assignment from incompatible pointer type,
1911         make member functions match the prototype.
1912         * app/render_libart.c : Dito. Also stop caching the copy_gc in
1913         a static variable. Otherwise it finally leaks and also may cause 
1914         BadMatch with changing windows
1915         => warning count down from about 250 to about 60, one or two hand full 
1916            crash bugs less.
1918 2005-06-26  Hans Breuer  <hans@breuer.org>
1920         * lib/libdia.def : added dia_font_get_description, missing
1921         from my last commit
1923         * app/app_procs.c : use png_get_header_ver(NULL), that is:
1924         prefer function call over exported variable to get the 
1925         runtime version of libpng
1927 2005-06-19  Hans Breuer  <hans@breuer.org>
1929         * plug-ins/python/Makefile.am : added codegen.py to EXTRA_DIST
1930         as suggested by Roland Stigge, bug #308310
1932 2005-06-19  Hans Breuer  <hans@breuer.org>
1934         * app/filedlg.c(file_export_callback) : oops, gtk_widget_show() wasn't 
1935         called anymore
1937 2005-06-18  Hans Breuer  <hans@breuer.org>
1939         * NEWS : mention new file dialog
1941         [plugged remaining leaks from bug #142669]
1942         * lib/prop_attr.c(fontprop_free) : not only unref the font
1943         but free the property itself, too. 
1944         * app/diagram_tree.c(create_diagram_children): remember the
1945         original list start to not only free the last element 
1947         * lib/prop_sdarray.c:64: warning: `arrayprop_free' defined 
1948         but not used. Here it meant a potentially huge leak.
1950 2005-06-18  Hans Breuer  <hans@breuer.org>
1952         * po/POTFILES.in : removed app/diaconv.c which isn't referenced 
1953         by app/Makefile.am anymore either. Should finally fix 'make distcheck' 
1954         for others, too. ( Roland Stigge, bug #144527 )
1956 2005-06-18  Hans Breuer  <hans@breuer.org>
1958         * plug-ins/wmf/Makefile.am : prevent installation. It 
1959         doesn't do anything useful on *NIX and even seems to be
1960         linked wrong by gcc (or me;). Fixes bug #172830 
1962 2005-06-18  Hans Breuer  <hans@breuer.org>
1964         * app/textedit.[hc] lib/arrows.[hc] plug-ins/xslt/xslt.h
1965           plug-ins/xslt/xsltdialog.c plug-ins/xslt/xslt.c : fix for sloppiness
1966         in function declarations. 'f();' for a function without parameters is
1967         a C++ism. Though I can't get any of my compilers to warn about it.
1968         Finally fixes bug #142663.
1970 2005-06-18  Hans Breuer  <hans@breuer.org>
1972         * app/textedit.[hc] lib/arrows.[hc] plug-ins/xslt/xslt.h
1973           plug-ins/xslt/xsltdialog.c plug-ins/xslt/xslt.c : fix for sloppiness
1974         in function declarations. 'f();' for a function without parameters is
1975         a C++ism. Though I can't get any of my compilers to warn about it.
1976         Finally fixes the rest of bug #142663.
1978 2005-06-18  Hans Breuer  <hans@breuer.org>
1980         * lib/font.h lib/font.c : _DiaFont is now private to prepare bigger 
1981         changes but doesn't hurt anyway. See bug #162034 
1982         * app/diapsft2renderer.c app/modify_tool.c 
1983           plug-ins/gprint/diagnomeprintrenderer.c : use dia_font_get_description() 
1984         instead of messing with internals
1985         * app/display.c : give interactive renderers more begin/end render. 
1986         It is guaranteed that the scale wont change between these.
1988 2005-06-18  Hans Breuer  <hans@breuer.org>
1990         * app/app_procs.c : const correctness for stderr_message_internal
1991         * app/dia-props.c : gtk_toggle_*() functions want GTK_TOGGLE_BUTTON 
1992         not GTK_CHECK_BUTTON, also some G_CALLBACK casts
1993         * app/disp_callbacks.c : don't dereference the to the function call
1994         when the function pointer in meant to be checked against 0
1995         * app/interface.c : warning fixes by using correct types
1996         * app/modify_tool.c : describe_props() members returns const pointer
1997         * app/render_libart.c : removed most of the render function again.
1998         They happily live in lib/dialibartrenderer.c since almost 3 years
1999         http://cvs.gnome.org/viewcvs/dia/app/render_libart.c?r1=1.31&r2=1.32
2000         * lib/dia_dirs.c : dia_get_canonical_path() const correctness
2001         * lib/dia_svg.c lib/dia_xml.c : some char to xmlChar changes
2002         * lib/dialibartrenderer.c(set_line_join): actually set the join_style
2003         instead of the cap_style. Don't initialize Art* enums with GDK_* constants.
2004         Both mentioned in bug #159814 and not warned by most other compilers.
2005         * lib/diagtkfontsel.c : at least the watcom compiler did not like the
2006         trailing colon in the GtkTypeInfo initialization
2007         * lib/properties.c : avoid redefinition of LIBDIA_COMPILATION
2008         * lib/dialinechooser.c lib/diagdkrenderer.c : there may be a difference 
2009         between char and gint8
2010         * plug-ins/metapost/render_metapost.c : replace invalid escape \% with %%
2011         * plug-ins/wpg/wpg.c : consitently use guint8
2012         * config.h.win32 : change HAVE_* defines to 1 not empty, avoids 
2013         redefinition warnings for python and xslt plug-ins
2015 2005-06-18  Hans Breuer  <hans@breuer.org>
2017         * lib/diagramdata.c : really get rid of diagram_data_destroy 
2018         and new_diagram_data [ no previous prototype for `...' is either
2019         a sign of missing static or of a function to vanish :-]
2021         * lib/geometry.c : apparently the G_INLINE stuff was working only
2022         with particular GLib version(s), glib-2.6.4 does not. Conditionally
2023         reverting to the old mecanics.
2025 2005-06-17  Hans Breuer  <hans@breuer.org>
2027         * plug-ins/python/pydia-*.c : include order tweaking to 
2028         get rid of redefinition warnings. Ensure to include <Python.h> 
2029         before any 'system' header, some dragged in by glib.h
2030         * plug-ins/python/pydia-diagramdata.c(PyDiaDiagramData_Str)
2031           pydia-properties.c(PyDiaProperties_Str)
2032           plug-ins/python/pydia-property.c(PyDiaProperty_Str) : 
2033         use %p to format pointers
2034         * plug-ins/python/pydia-geometry.c(PyDiaArrow_Str) : 
2035         dont cast to float for %d
2036         * plug-ins/python/pydia-handle.c(PyDiaHandle_Connect) : 
2037         use correct pointer type
2038         * plug-ins/python/pydia-image.c(PyDiaImage_Str) :
2039         dont discard qualifier aka dont free const strings
2040         * plug-ins/python/pydia-properties.c : casts to PyCFunction
2041         * plug-ins/python/pydia-property.c : removed unused function,
2042         make ensure_quarks() static
2043         * plug-ins/python/pydia-render.c : removed unused vars, use
2044         the correct signature for begin_render
2045         (dia_py_renderer_finalize): pluged a leak
2046         => except -fno-strict-aliasing there is no warning left in 
2047            all of PyDia
2049 2005-06-12  Hans Breuer  <hans@breuer.org>
2051         * app/filedlg.c : really fix the file extension mismatch on export dialog
2052         by working around some gtk+-2.6 behaviour (bug #307378). Fixes bug #305850
2054 2005-06-11  Hans Breuer  <hans@breuer.org>
2056         * configure.in config.h.win32.h : mark as +cvs (should have been 
2057         done directly after the 0.94 release)
2058         * NEWS : attempt to summarize 2/3 year of development
2060         [ 
2061           WANT_AUTOMAKE=1.7 ./autogen.sh && ./conifugre  --enable-maintatiner-mode && make distcheck
2062           finally passes again
2063         ]
2064         * app/app_procs.c : force use of POPT for the GNOME case, otherwise
2065         app/run_dia.sh --credits > THANKS => Segmentation fault
2066         * app/pixmaps/Makefile.am : added group.png and ungroup.png
2067         * Makefile.am : work around scrollkeeper bug
2068         * doc/en/Makefile.am : explicit list DISTCLEANFILES = dia.1
2070         * po/*.po : 'noise' produced by make dist
2072 2005-06-10  Hans Breuer  <hans@breuer.org>
2074         * lib/properties.h : define PROP_STD_SHOW_BACKGROUND_OPTIONAL ...
2075         * objects/custom/custom_object.c : ... and use it to avoid 
2076         complains about missing attribute "show_background". It is 
2077         safe to leave this uninitialized. Same for flip_* and "text",
2078         the latter with comment cause it usually is *not* safe to do 
2079         it for the general case. Fixes remaining issues with bug #169006
2080         which where caused by an incompatible change in the shape file.
2082         * app/commands.c : use "gnome-open" instead of "netscape" as
2083         fallback for $BROWSER not set. Still not optimal but better
2084         to try some common desktop tool than an obsolete browser;)
2085         Fixes bug #307142. Also some whitespace changes.
2087         * app/interface.c(toolbox_delete): avoid random return value.
2088         Patch from Stanislav Brabec, fixes bug #307143
2090         * shapes/Cisco/Makefile.am : added a bunch of new shapes/pngs.
2091         Patch from Torben H. Nielsen (bugzilla is still the preferred way)
2092         http://mail.gnome.org/archives/dia-list/2005-June/msg00015.html
2094 2005-06-06  Lars Clausen  <lars@raeder.dk>
2096         * app/diagram.c: 
2097         * app/modify_tool.c:
2098         * app/textedit.[ch]:
2099         Better support for text edit highlight.
2101         * app/connectionpoint_ops.c (connectionpoint_draw): Stop making
2102         the mainpoint extra visible.
2104 2005-06-02  Lars Clausen  <lars@raeder.dk>
2106         * objects/UML/class_dialog.c:
2107         * objects/UML/class.[ch]:
2108         The final fixes for mainpoint on UML Class.
2110         * sheets/cisco*.in, shapes/Cisco/*: New set of Cisco icons from
2111         Ian Redfern, now in color and with mainpoints!  Very pretty!
2113 2005-06-02  Hans Breuer  <hans@breuer.org>
2115         * objects/UML/class_dialog.c : the memory managment with respect to
2116         attribute/operation connections was/is a mess. But it should work again ;)
2118         * samples/UMLPackages.dia samples/Composite-Action.dia : some diagrams
2119         directly from the UML Specification - to show the power of Dia and 
2120         some weakness. Watch the bug reports following ;)
2122 2005-06-01  Hans Breuer  <hans@breuer.org>
2124         * app/dia.def : export diagram_update_connections_object
2125         * plug-ins/python/pydia-diagram.c : wrap diagram_update_connections_object
2126         Patch from Paolo Bernardi, together with the property setting closes bug #300572
2128 2005-06-01  Hans Breuer  <hans@breuer.org>
2130         * plug-ins/python/pydia-property.c : complete refactoring of property 
2131         setting, now also supports setting of property arrays
2132         * plug-ins/python/pydia-*.c plug-ins/python/diamodule.c : adapt to 
2133         Python namespacing conventions
2134         * plug-ins/python/pydiadoc.py : use the stuff above to produce more 
2135         complete UML Classes with attributes and operations
2136         * plug-ins/python/otypes.py : now also show the properties of the objects
2138         * objects/UML/class.c(umlclass_set_props) : need to update object::connections
2139         (pointers), they might be changed with attributes and opertions changing
2141         * plug-ins/python/pydia-property.c : PointArray and BezPointArray property getters
2142         were broken. Apparently noone used them before.
2144         * plug-ins/python/pydia-diagram.c plug-ins/python/pydia-diagramdata.c : moved methods
2145         which only operate on the DiagramData to the latter file. To get on the DiagramData
2146         object of a Diagram use diagram.data. [In C the Diagram is a subclass of DiagramData, 
2147         but I don't know how to reflect that in the bindings. And for backward compatibility 
2148         there also is the 'data' member.]
2150         * objects/UML/uml.c objects/UML/umlattribute.c objects/UML/umloperation.c 
2151           objects/UML/umlparameter.c : describe enums with PropEnumData
2153         * app/commands.c(view_show_all_callback) : if there is something selected show 
2154         that instead of all exisiting objects. If there is noting or all selcted it 
2155         "Show all" shows the old behaviour.
2157         * lib/parent.[hc] lib/object.c app/disp_callbacks.c app/diagram.c : plug some memory 
2158         leaks and use less allocations caused by misguided API. Also some adaption to common 
2159         coding style
2161         * objects/UML/class.h : add some comment about the brokeness of UML_MAINPOINT
2163         * app/makefile.msc : added new icons and build as console app while 
2164         not releaseing to the general public
2166         * objects/custom/shape_info.c : use g_strdup("") for a field to be g_free()'d
2167         and keep a refernce when storing the a font from style="" in s.font. This should
2168         finally allow to have shapes with fully predefined text (and no 'random' crashes)
2170         * plug-ins/gprint/diagnomeprint.c : disable GNOME_SVG until I've found a program
2171         capable to interpret it's output
2173 2005-05-31  Lars Clausen  <lars@raeder.dk>
2175         * sheets/ER.sheet.in: No more xpms referenced in sheets. Fixes bug #151811.
2177 2005-05-30  Pawan Chitrakar  <pawan@nplinux.org>
2179         * configure.in: Added ne in ALL_LINGUAS
2181 2005-05-24  Lars Clausen  <lars@raeder.dk>
2183         * lib/font.c: Change to make DIA_FONT_ITALIC turn into -Oblique PS
2184         fonts for legacy fonts.  They don't have DIA_FONT_OBLIQUE setting
2185         anyway. 
2187 2005-05-23  Lars Clausen  <lars@raeder.dk>
2189         * lib/paper.c: Added Ledger size paper.  Fixes bug #305254.
2191 2005-05-21  Lars Clausen  <lars@raeder.dk>
2193         * lib/diaarrowchooser.c: 
2194         * lib/arrows.[ch]: Patch from Radek Krahl <ptasz3k@o2.pl>: Add
2195         'infinite' line (three dots) arrowhead.  Fix line length in arrow
2196         preview.  And fix typo.  Fixes bug #303904. 
2198 2005-05-20  Hans Breuer  <hans@breuer.org>
2200         * lib/text.c : advice from valgrind and data_string() review:
2201         neither g_free() memory on the stack
2202         * objects/GRAFCET/boolequation.c : ... nor const strings 
2203         * objects/UML/association.c:934 : definitely lost. Even g_strdup("")
2204         wants to be freed
2206         * app/diagram.c : a g_object_ref() following g_object_new() is almost
2207         always wrong. Why would we need two refernces?
2208         * app/app_procs.c : same here.If it crashes later on someone is dropping
2209         refernces he does not own, and *that* needs to be fixed. This is reverting
2210         "Remember to ref g_object_new'd object" (bug #170972) below, which 
2211         causes more harm (leaking, hiding bugs elsewhere) than good.
2213         * app/app_procs.c lib/diagramdata.[ch] lib/libdia.def : get rid of
2214         diagramdata_destroy() which was only a wrapper to g_object_unref()
2216         * app/display.c(selection_changed) : don't g_strdup_printf() without
2217         g_free() later /or/ a C++ comment of me mostly denotes an error
2219         * app/diagram.c : diagram_parent_sort_cb make signature match GCompareFunc
2221         * lib/widget.c : dia_dynamic_menu_select_entry() cleanup. If it takes a
2222         const gchar* entry it must not eat memory, added a lot of g_free() and
2223         some const. Fixed a bunch - i.e. *all* - warnings.
2224         * lib/widget.h : removed unused/deleted functions
2226         * app/layer_dialog.c(dia_layer_widget_connectable_toggled) : trying to
2227         avoid 'Invalid write of size 4', no luck yet
2229 2005-05-19  Lars Clausen  <lars@raeder.dk>
2231         * objects/UML/class.c: 
2232         * objects/UML/class.h: 
2233         * objects/UML/class_dialog.c: Work on getting a proper mainpoint
2234         for uml class object.  #ifdef'd out right now.
2236 2005-05-18  Lars Clausen  <lars@raeder.dk>
2238         * objects/standard/line.c: Make line adjust its actual endpoints
2239         for autogap -- looks and feels better.
2241         * objects/standard/arc.c: 
2242         * lib/geometry.h: 
2243         * app/modify_tool.c: Patch from Grégoire Dooms
2244         <dooms@info.ucl.ac.be>:  First stab at autogap for arcs, and
2245         shifted arc angle movement.
2247 2005-05-16  Hans Breuer  <hans@breuer.org>
2249         * lib/widget.c : variable declarations need to be at the start of a block,
2250         at least as we are not using C++ or C99
2252         * plug-ins/python/pydia-property.c : implment the read part for Property
2253         arrays - aka. umlclass.properties["operations"], umlclass.properties["attributes"]
2254         They are working quite well as can be seen with export-object.py
2256         * plug-ins/python/codegen.py : prove it once more with the generation of C++
2257         or Python code from an UML Diagram. Simply save as .py or .cxx ...
2258         * plug-ins/python/Makefile.am : install it
2260 2005-05-16  Lars Clausen  <lars@raeder.dk>
2262         * app/pixmaps/{un}group.png: 
2263         * app/Makefile.am (ICON_PNG_PAIRS): 
2264         * app/menus.c (display_menu_items): 
2265         New icons for grou/ungroup finally added, closing bug #105519.
2267         * app/Makefile.am: Dependencies for pixmaps.
2269         * app/pixmaps/connectable.png: An icon that actually makes sense
2270         for switching connectability.
2272 2005-05-15  Hans Breuer  <hans@breuer.org>
2274         * lib/group.c object/UML/classicon.c : fixed leftovers of
2275         'Adding connectionpoint to _move_handle
2277         * lib/widgets.c : gtk+ *NEVER* eats strings, so gtk_something(widget, g_strdup())
2278         is *ALWAYS* a memory leak. Plug some more.
2280         [
2281          In preparation to make UML operations/attributes/parameters setable by Python
2282          UML class became more StdProp conformant. A nice experience to be the first 
2283          to use the PROP_TYPE_DARRAY stuff about four years after it was written ;-)  
2284         ]
2285         * objects/UML/umlattribute.c objects/UML/umloperation.c 
2286           objects/UML/umlparameter.c objects/UML/umlformalparameter.c : (new files) 
2287         split from objects/UML/uml.c and made StdProp aware
2288         * objects/UML/class.c : finally make "attributes", "operations", "templates"
2289         <template parameters> first class StdProps citizens.
2290         (umlclass_load) : removed hand-written parsing for the above, it is all done
2291         by object_load_props() now. The old write code is still in place, so be very
2292         careful when changing something - at the moment load/save it is 100% compatible 
2293         as it needs to be.
2294         * objects/UML/uml.c : now just type registration here, as it is supposed to be
2295         * objects/UML/Makefile.am objects/makefile.msc : build the new files
2297         * lib/properties.h(PropDescCommonAreaExtra) : need a place to store the 
2298         in-record offsets
2299         * lib/prop_sdarray.c : made the DARRAY case work, SARRAY still untested
2300         (darray_prop_adjust_object_records) : don't loop forever
2301         (whole file) : use the new (working) way to get on the second level offsets.
2302         Also resolved some abbreviations, it is complicated enough without them ;)
2303         * lib/proplist.c : even complete list contents may be optional
2305 2005-05-15  Hans Breuer  <hans@breuer.org>
2307         * lib/bezier_conn.c(remove_handles) : don't try to remove 
2308         non-exisitng handles (patch from Radek Krahl, bug #302273)
2310 2005-05-15  Hans Breuer  <hans@breuer.org>
2312         * plug-ins/metapost/render_metapost.c : locale independent output
2313         (Radek Krahl, bug #301866)
2315 2005-05-12  Lars Clausen  <lars@raeder.dk>
2317         * shapes/Cisco/*.{shape,png}:
2318         * sheets/cisco*.sheet.in:
2319         Updated with color icons from Ian Redfern, closing bug #303889.
2320         Added automatic midpoints, not attempt at adjusting them.
2322 2005-05-11  Lars Clausen  <lars@raeder.dk>
2324         * many shapes:  Use mid of bounding box for midpoint, better than
2325         mid of connection points generally.
2327 2005-05-10  Lars Clausen  <lars@raeder.dk>
2329         * lib/widgets.c: Decided on one way for the ratio thing in arrow
2330         size selector:  Fixed ratio is on by default and keeps the sizes
2331         at the given ratio, but doesn't clamp them to be the same.  Fixes
2332         bug #302861.
2334         * lib/font.c: Fix for bug #303695: Allow more than one entry of
2335         each legacy name, thereby correctly encoding bold and italic of
2336         the three main fonts.  Also use | rather than || to combine slant
2337         and weight, so matching works.  Had to remove binary search for
2338         new font name, but the list is short enough it's not a problem.
2340 2005-05-09  Lars Clausen  <lars@raeder.dk>
2342         * lib/autoroute.c (autoroute_layout_orthconn): Remove debugging info.
2344 2005-05-08  Hans Breuer  <hans@breuer.org>
2346         * objects/UML/class.c : Reverted to have no center point.
2347         At first it looked as if there was only the bug to not increase
2348         class.h:UMLCLASS_CONNECTIONPOINTS. But the UMLClass has 
2349         potentially much more dynamic connection points (to the left
2350         and right of every attribute/operation). Now simply adding one
2351         between see static and dynamic will screw up any existing diagram
2352         which makes use of the dynamic connection points. The would all
2353         be connected with an off-by-one error. I have no idea how to
2354         code around that. But breaking backward compatibility is no 
2355         option here. Does not completely fix bug #303301 ...
2356         
2357         * lib/widget.c(dia_font_selector_set_font): actually set the options 
2358         menu state. So we are not any longer resetting the font style on Apply.
2359         Use "UML - Class" dialog as stress text example.
2361         * app/command.c : some people insist to close diagrams already
2362         closed using tear-off menus. Maybe we should add a dialog 
2363         "Do you want to call Dr. Watson now?". If there is no diagram
2364         to close anymore just do nothing, fixes bug #303221
2365         * app/display.c(ddisplay_close) : use g_return_if_fail(ddisp != NULL);
2366         Calling this with no display to close is a pathological case.
2368         * app/diagram.[hc] : moved object.h and other DiaObject stuff
2369         to the implementation in preparation of Big Things(tm)
2371         * app/interface.c : less warnings and make it compile. strncmp()
2372         does not take a char**, neither does gdk_pixbuf_new_from_inline().
2374         * objects/makefile.msc plug-ins/makefile.msc : less output
2376 2005-05-08  Lars Clausen  <lars@raeder.dk>
2378         * lib/orth_conn.c (orthconn_init): The right place to set the
2379         default autorouting value.  Fixes bug #303291.
2381         * app/display.c (ddisplay_close): Patch from Radek Krahl
2382         (ptasz3k@o2.pl):  Fix crash when using from detached menu
2383         (#303221)
2384         
2385 2005-05-07  Lars Clausen  <lars@raeder.dk>
2387         * lib/orth_conn.c (orthconn_load): Autorouting should default to
2388         off in diagrams that don't have it explicitly.  All diagrams
2389         should be explicit about it.
2391 2005-05-06  Hans Breuer  <hans@breuer.org>
2393         * app/samples/Self/*.dia : some UML diagrams describing Dia's
2394         inner working (or it's future;)
2396 2005-04-26  Lars Clausen  <lars@raeder.dk>
2398         * app/connectionpoint_ops.c (connectionpoint_draw): Temporary
2399         change to display of mainpoint to be easier to debug autogenerated
2400         ones. 
2402 2005-04-23  Hans Breuer  <hans@breuer.org>
2404         * plug-ins/python/diamodule.c plug-ins/python/pydia-object.h
2405           plug-ins/python/pydia-properties.h : use lib/ prefix for
2406         Dia internal headers with too common names (fixes bug #173061)
2408         * app/display.c : stop special casing the first display of
2409         a diagram. Every display now has it's own refernce. The initial
2410         reference gets dropped when there is no display anymore. See
2411         diagram_remove_ddisplay(). Fixes bug #300744.
2413         * app/diapsft2renderer.c : locale independent output
2414         (Radek Krahl, bug #300847)
2415         * app/paginate_psprint.c :  fixing use of setlocale() calls
2416         (Radek Krahl, bug #300886)
2417         * plug-ins/shape/shape-export.c : fixing use of setlocale() calls
2418         (Radek Krahl, bug #300889)
2420         * objects/UML/class.c : fix another crash with the line 
2421         wrapping code (Gabor Simon, bug #160865)
2423         * plug-ins/cairo/diacairo.c : image rendering had an endianess 
2424         issue (or is this working around a libpixman bug?;)
2426 2005-04-21  Lars Clausen  <lars@raeder.dk>
2428         * lib/polyshape.c (polyshape_update_data): Fixed numpoint off-by-one.
2430         * shapes/**/*.shape: All shapes now have midpoints.
2432 2005-04-20  Lars Clausen  <lars@raeder.dk>
2434         * lib/orth_conn.c (orthconn_update_data): Patch from ptasz3k@o2.pl
2435         (Radek Krahl): Make sure there's enough handles for the line.
2436         Fixes bug #173031.
2438         * objects/UML/node.c (node_draw): Better drawing method avoids
2439         garbage after moving.  Fixes bug #301032.
2441 2005-04-17  Hans Breuer  <hans@breuer.org>
2443         * plug-ins/cairo/diacairo.c : again adapt to Cairo API 
2444         changes (whould compile with current cvs and 0.(3|4).0
2446 2005-04-11  Lars Clausen  <lars@raeder.dk>
2448         * xmldocs.make (all): Fix to put installed docs in right place
2449         under disable-gnome.
2451         * doc/en/Makefile.am: Use xml_files var for xml files, EXTRA_DIST
2452         only for dia.dbk.
2454         * app/commands.c (help_manual_callback): Patch from p@kapcoweb.com
2455         (Leonardo Boshell): Use standard gnome help if called with Gnome.
2457         * app/diapsrenderer.c: Patch from ptasz3k@o2.pl (Radek Krahl): Fix
2458         locale issues for eps output.  Fixes bug #173135.
2460 2005-04-10  Hans Breuer  <hans@breuer.org>
2462         * plug-ins/cairo/diacairo.c : adapt to Cairo PNG API 
2463         changes (somewhat broken)
2464         
2465         * plug-ins/pstricks/render_pstricks.c : still C89 ...
2466         * objects/custom/shape_info.c : ... but with prototypes
2467         
2468 2005-04-07  Lars Clausen  <lars@raeder.dk>
2470         * lib/dia_xml.c: 
2471         * plug-ins/svg/render_svg.c: 
2472         * lib/diasvgrenderer.c: Patches from ptasz3k@o2.pl (Radek Krahl):
2473         Make decimal separators be correct in save file formats
2474         (non-localized).  Fixes bugs #172529 and 172531.
2476 2005-04-06  Lars Clausen  <lars@raeder.dk>
2478         * app/create_object.c (create_object_button_release): 
2479         * app/modify_tool.c (modify_button_release): Correct activations
2480         of text edits.
2482 2005-04-05  Simon KÃ¥gström  <ska@bth.se>
2484         * app/app_procs.c: the --show-layers option can now handle numeric
2485         ranges of layers.
2487 2005-04-05  Lars Clausen  <lars@raeder.dk>
2489         * lib/diagdkrenderer.c (draw_string): Patch from tomkast@yahoo.com
2490         (Tom Kast): Avoid blockiness caused by bad updates.
2492 2005-04-03  Lars Clausen  <lars@raeder.dk>
2494         * lib/polyshape.c: 
2495         * lib/beziershape.c: Main points.  A crude solution, having the
2496         center in the middle of the bb.  Shows a bug in the distance_from
2497         code for polyshape when a side is horizontal.
2499 2005-04-02  Lars Clausen  <lars@raeder.dk>
2501         * plug-ins/pstricks/render_pstricks.c: 
2502         * plug-ins/xfig/xfig-export.c: Patch from Radek
2503         Krahl <ptasz3k@o2.pl>: Fix decimal point problems. Fixes bugs 
2505 2005-04-02  Hans Breuer  <hans@breuer.org>
2507         * lib/dia_image.c(dia_image_filename) : return the path 
2508         again. (bug #172416, Radek Krahl)
2509         
2510 2005-04-01  Steve Murphy  <murf@e-tools.com>
2512         * configure.in: Added "rw" to ALL_LINGUAS.
2514 2005-03-31  Lars Clausen  <lars@raeder.dk>
2516         * lib/neworth_conn.c (neworthconn_update_data): Handle autogap.
2518         * lib/orth_conn.c (orthconn_update_data): Handle autogap while not
2519         autorouting.  
2521         * objects/network/basestation.c: Main points.
2523 2005-03-27  Hans Breuer  <hans@breuer.org>
2525         * app/Makefile.am : removed some pixmap/*.xpm from EXTRA_DIST
2526         * app/pixmaps.h : removed arrow.xpm
2527         * lib/Makefile.am : added diamarshal
2528         * plug-ins/python/Makefile.am : added makefile.msc to EXTRA_DIST
2529         => makes 'make dist' pass and produce a useable package
2531         * po/*.po : 'noise' profuced by make dist
2533 2005-03-24  Lars Clausen  <lars@raeder.dk>
2535         * objects/flowchart/parallelogram.c (pgram_update_data): 
2536         * objects/flowchart/ellipse.c (ellipse_update_data): 
2537         * objects/flowchart/diamond.c (diamond_update_data): 
2538         * objects/flowchart/box.c (box_update_data): Main points.
2540         * objects/custom/custom_object.c (custom_create): 
2541         * objects/custom/shape_info.h: 
2542         * shapes/Assorted/square.shape: 
2543         * objects/custom/shape_info.c (load_shape_info): 
2544         * doc/shape.dtd: Added main point support to shapes, and an
2545         example of how to use it.
2547 2005-03-21  Lars Clausen  <lars@raeder.dk>
2549         * lib/autoroute.c (autoroute_layout_orthconn): Remember to
2550         unnormalize from same point as you normalize, or else!
2552 2005-03-20  Lars Clausen  <lars@raeder.dk>
2554         * app/app_procs.c (do_convert): Patch from crux@gorodmasterov.com:
2555         Remember to ref g_object_new'd object.
2557 2005-03-19  Hans Breuer  <hans@breuer.org>
2559         * plug-ins/xslt/xslt.c : don't crash if both places ($SHARE, $HOME)
2560         have configurations, fixes bug #170962
2562         * objects/UML/state.c : ("UML - State")::type is PROP_FLAG_OPTIONAL,
2563         or better not used any longer. Fixes bug #169142.
2565         * lib/element.c(element_update_connections_rectangle): don't initialize 
2566         the eighth point twice but instead the nineth once
2568         * objects/standard/bezier.c : no C++ comments *please*
2570         * lib/plug-ins.h : increment DIA_PLUGIN_API_VERSION
2572         * lib/dia_image.[ch] : dia_image_filename() returns a string not to be freed ...
2573         * plug-ins/python/pydia-image.c : ... so, don't do it!
2575         * lib/dia_svg.c : refactor color parsing and support the "rgb(127,255,0)" form,
2576         also named colors via pango_color_parse()
2578         * lib/prop_text.c : don't try to g_strdelimit(NULL), fixes bug #169367
2580         * lib/libdia.def : updated externals
2582         * app/object_ops.c : still not C99 everywhere
2584 2005-03-19  Hans Breuer  <hans@breuer.org>
2586         * lib/autoroute.c : at least it should compile ;)
2587         
2588 2005-03-19  Lars Clausen  <lars@raeder.dk>
2590         * lib/autoroute.c: Orthconns now do autogap.
2592 2005-03-17  Lars Clausen  <lars@raeder.dk>
2594         * app/authors.h: Added Gregoire Dooms for gap stuff.
2596         * objects/standard/polyline.c: Patch from Grégoire Dooms
2597         <dooms@info.ucl.ac.be>: Autogap and absolute gap for polyline.
2598         
2599         * objects/standard/bezier.c: Patch from Grégoire Dooms
2600         <dooms@info.ucl.ac.be>: Fixes two bugs.  Also autogap no longer a
2601         property. 
2602         
2604         * objects/UML/state_term.c: 
2605         * objects/UML/large_package.c: 
2606         * objects/UML/node.c: 
2607         * objects/UML/object.c: 
2608         * objects/UML/small_package.c: 
2609         * objects/UML/state.c: 
2610         * objects/UML/usecase.c: 
2611         * objects/UML/note.c: 
2612         * objects/UML/actor.c: 
2613         * objects/UML/classicon.c: 
2614         * objects/UML/component.c: 
2615         * objects/Misc/analog_clock.c: 
2616         * objects/Jackson/requirement.c: 
2617         * objects/Istar/goal.c: 
2618         * objects/Istar/actor.c: 
2619         * objects/FS/function.c: 
2620         * object/standard/box.c:
2621         * objects/ER/entity.c: 
2622         * objects/ER/relationship.c: 
2623         * objects/ER/attribute.c: Main points added.   Distance_from fixed
2624         in attribute, broken in relationship, I* goal, Jackson
2625         requirement, analog_clock, all non-rectangular UML elements, 
2627         * lib/libdia.def: 
2628         * lib/element.[ch]: New method to help update connection points.
2630         * app/menus.c: Change Help/Manual to Help/Contents to follow
2631         standard.
2632         
2633         * objects/standard/line.c:
2634         * lib/geometry.[ch]: 
2635         * objects/standard/bezier.c: Patch from Grégoire Dooms
2636         <dooms@info.ucl.ac.be>: Add absolute gap and autogap for line and
2637         bezier objects.   Autogap nowchanged to be a function of the
2638         connpoints.
2640         * lib/libdia.def: 
2641         * lib/connectionpoint.[ch]: New function to ask if a connpoint has the
2642         autogap flag.
2644         * app/connectionpoint_ops.c (connectionpoint_draw): Don't draw
2645         CP_FLAG_ANYPLACE connpoints.
2647 2005-03-16  Lars Clausen  <lars@raeder.dk>
2649         * app/interface.c (create_tools): Removed debug printf.
2651 2005-03-15  Lars Clausen  <lars@raeder.dk>
2653         * lib/widgets.[ch]: Constification.
2655         * app/interface.c: Work on using gdk-pixbuf-csource'd data, not
2656         working yet.
2658         * objects/standard/ellipse.c: Use CP_FLAG_MAIN for central CP.
2660         * lib/connectionpoint.h: Flags for connection points.
2662         * app/create_object.c (create_object_motion): 
2663         * app/modify_tool.c (modify_motion): Minor refactoring.
2665         * app/object_ops.c (object_find_connectpoint_display): Extend with
2666         finding connpoints that cover entire objects.
2668         * app/layer_dialog.c (dia_layer_widget_init): Get rid of warnings.
2670         * objects/custom/custom_object.c (custom_setup_properties): Avoid
2671         uninitialized use.
2673 2005-03-13  Hans Breuer  <hans@breuer.org>
2675         * plug-ins/svg/svg-import.c : handle the <circle/> tag as well
2677 2005-03-13  Hans Breuer  <hans@breuer.org>
2679         * lib/dia_svg.[hc] objects/custom/shape_info.[hc] plug-ins/svg/svg-import.c :
2680         s/DiaSvgGraphicStyle/DiaSvgStyle/, added and use convenience functions 
2681         dia_svg_style_copy(), dia_svg_style_init()
2683         * objects/custom/shape_info.c : use dia_svg_parse_path() from lib/ (it got
2684         moved out of this)
2686         * lib/dia_svg.c(dia_svg_parse_path) : also handle style properties which are
2687         not wrapped in the style attribute
2689         * plug-ins/svg/svg-import.c : implement nested group handling and style
2690         'style inheritance'. Still no transformations, no <image/>, no <style/> 
2691         <defs/>...
2693         * plug-ins/svg/svg-import.c(import_svg) : use message_warning instead of g_warning,
2694         the latter is for programmers.
2695         Also be more tolerant if the document root namespace is not 'svg'. If the svg 
2696         namespace is defined in the file search for the top node including svg. This
2697         allows us to re-read the svg part of our own shape format.
2699         * lib/libdia.def : there is no give_focus_to_object
2700         * app/textedit.c : still no C99,  aka. error C2275: 'Focus' : illegal use of this 
2701         type as an expression
2703         * lib/geometry. c : use G_IMPLEMENT_INLINES
2704         * lib/libdia.def : export point_get_perp (used by xfig plug-in)
2706         * app/textedit.c(textedit_end_edit) : don't crash if the display is already
2707         gone when trying to remove the focus
2709         * plug-ins/cairo/diacairo.c : CAIRO_HAS_WIN32_SURFACE does not any longer mean
2710         it has *my* Cairo Win32 Backend. [The official one isn't useful for the use
2711         case of this plug-in, i.e. producing output files]
2713 2005-03-13  Lars Clausen  <lars@raeder.dk>
2715         * lib/Makefile.am (BUILT_SOURCES): 
2716         * app/Makefile.am (BUILT_SOURCES): Use the Right Way[tm] to force
2717         the building of the icons header files.
2718         * app/dia-lib-icons.h: Out of CVS now that it's correctly generated.
2720 2005-03-13  Hans Breuer  <hans@breuer.org>
2722         * configure.in : require Cairo 0.3.0
2723           plug-ins/cairo/diacairo.c : changed to match ;-)
2725         * app/app_procs.c() : new function dump_dependencies()
2726         which gets called by: dia --version --verbose
2727         and may help to track version dependent problems in
2728         our dependencies
2730         * lib/font.c : reverted to previous version cause using
2731         not implemented Pango API did not improve the issue.
2732         See: http://bugzilla.gnome.org/show_bug.cgi?id=162034
2733         for more information.
2735         * lib/dialinechooser.c : a little shrinking of the 
2736         initial size (to work around line wrappjing the right 
2737         arrow control)
2739 2005-03-11  Lars Clausen  <lars@raeder.dk>
2741         * app/textedit.c: Concentrate start/end editing in single functions.
2743 2005-03-10  Lars Clausen  <lars@raeder.dk>
2745         * lib/text.h: 
2746         * lib/object.h: Added new object function to allow the object to
2747         be notified when its text is being edited.
2749         * lib/libdia.def: 
2750         * app/modify_tool.c: 
2751         * app/commands.c: 
2752         * app/textedit.c: 
2753         * lib/focus.c: Remove sideeffects from focus objects, add getter
2754         for focus->obj.
2756 2005-03-09  Lars Clausen  <lars@raeder.dk>
2758         * lib/Makefile.am (dia-lib-icons.h): 
2759         * app/Makefile.am: Minor cleanup.
2761 2005-03-06  Hans Breuer  <hans@breuer.org>
2763         * app/app_procs.c : avoid "assignment within conditional expression"
2764         and handle -L for the GOption case as well.
2766         * lib/widget.c : strchr() does not return -1 on not found but NULL;
2767         avoids widgets.c(307) : error C4047: '!=' : 'char *' differs in levels of 
2768         indirection from 'const int '
2770         * lib/diasvgenderer.c(draw_arc|fill_arc) : finally correct sweep and 
2771         large_arc, thus produce correct arc output (like diasvg.py does;),
2772         fixes bug #144401
2774         * lib/dia_svg.[hc](dia_svg_parse_path) : new function copied and adapted 
2775         from objects/custom/shape_info.c to be shared with object/custom and
2776         plug-in/svg -> finally the C based svg-import reads pathes again.
2777         Added arc parsing while I was there, which fixes bug #169191
2778         * objects/custom/shape_info.c(parse_path) : 
2779         * plug-ins/svg/svg-import : reuse above function
2780         Also fix the "root element was 'svg' -- expecting 'svg'" bug #108502.
2781         But in general this does only support a small subset of what is 
2782         possible in SVG.
2784 2005-03-06  Lars Clausen  <lars@raeder.dk>
2786         * objects/UML/association.c: Patch from Dave Klotzbach applied:
2787         Add visibility to association arrow.  Fixes bug #157012.
2789         * app/grid.c: Patch from Lawrence Withers fixes grid messiness,
2790         closing bug #161040.
2792         * app/layer_dialog.c (create_button_box): Use stock icons instead
2793         of homemade onces.  Gets us rid of four more XPMs.
2795 2005-03-05  Sampo Kellomaki <sampo@iki.fi>
2797         * app/app_procs.c: Implemented --show-layers=LAYER,LAYER,... option
2798         This option permits command line control of which layers are visible.
2799         Useful when automatically exporting multiple versions of the same
2800         diagram, e.g. slides with overlays. Added-n switch parsing without POPT.
2801       * app/app_procs.h: moved prototype of do_convert() to app/app_procs.c
2802         and made it static since its only used in that file.
2803         * app/authors.h: added myself
2804         * doc/en/dia.1: documented the switch
2805         * doc/en/usage-layers.xml: ditto
2806         
2807 2005-03-05  Alan Horkan <horkana@tcd.ie>
2809         * app/interface.c Change Horizontal scroll policy to NEVER for sheets
2810         this restores how Dia behaved before the GTK2 port and seems to help 
2811         allow the toolbox to be more easily resized.  Bug #108891.
2813 2005-03-05  Lars Clausen  <lars@raeder.dk>
2815         * Civil/civil_motor.shape:
2816         * Civil/civil_rotor.shape:
2817         * Logic/and.shape:
2818         * Logic/buffer.shape:
2819         * Logic/connector.shape:
2820         * Logic/inverter.shape:
2821         * Logic/nand.shape:
2822         * Logic/nor.shape:
2823         * Logic/not.shape:
2824         * Logic/or.shape:
2825         * Logic/xor.shape:
2826         * shapes/Assorted/arrow-left-up.shape: 
2827         * shapes/Assorted/heptagon.shape: 
2828         * shapes/Assorted/star5.shape: 
2829         * shapes/Assorted/trapezoid.shape: 
2830         * shapes/Assorted/triangle-rightangle.shape: Fixed bad use of
2831         defaults, see bug #169143.
2833         * sheets/Assorted.sheet.in: Fixed typo patch applied, bug #169114.
2835         * configure.in: 
2836         * doc/en/Makefile.am: Finally figured out the right way to ask for
2837         the manpage xslt.  Closes bug #144539.
2839 2005-03-01  Lars Clausen  <lars@raeder.dk>
2841         * lib/Makefile.am (nodist_include_HEADERS): 
2842         * app/Makefile.am: Correctly generate these files from PNGs with
2843         automake.
2845         * lib/widgets.h: 
2846         * lib/libdia.def:
2847         * lib/widgets.c: Refactor toggle button factory to allow inline
2848         data.
2850         * lib/pixmaps/Makefile.am: Unify lib pixmaps.
2852         * app/makefile.msc (ICON_PNG_PAIRS): 
2853         * app/dia-app-icons.h: Updated with more icons.
2855         * lib/Makefile.am: 
2856         * app/Makefile.am: Use gdk_pixbuf_csource to create inline data
2857         from pngs.
2859         * app/interface.c (create_display_shell): 
2860         * app/layer_dialog.c (dia_layer_widget_init): 
2861         * lib/dia_image.c (dia_image_get_broken): Use inlined data
2862         generated from png.
2864         * app/display.c (ddisplay_close): Removed unused includes.
2866 2005-03-01  Lars Clausen  <lars@raeder.dk>
2868         * app/sheets.c (create_object_pixmap): Create a placeholder image
2869         for when the real image is missing.  Better than crashing:)
2870         Closes bug #166786.
2872 2005-02-25  Hans Breuer  <hans@breuer.org>
2874         * app/app_procs.c : don't requets to open a default display with
2875         g_option_context_add_group (crux@gorodmasterov.com, bug #168523)
2877 2005-02-22  Lars Clausen  <lars@raeder.dk>
2879         * plug-ins/gprint/diagnomeprint.c (export_data): GNOME, not Gome.
2880         Fixes bug #168125.
2882 2005-02-19  Lars Clausen  <lars@raeder.dk>
2884         * app/menus.c (display_menu_items): Applied patch from bug #94019:
2885         Menu cleanup and addition of icons.  Also a few additional stock
2886         icons. 
2888         * app/layer_dialog.c (create_layer_dialog): Bug #159598: Clean up
2889         the layers dialog.
2891 2005-02-14  Lars Clausen  <lars@raeder.dk>
2893         * INSTALL (ftp): Fixed Pango release typo (bug #153007)
2895 2005-02-13  Lars Clausen  <lars@raeder.dk>
2897         * lib/font.c: First stab at using Gtk 2.4 functions for fixing
2898         width.  Seems to work.  Once tested some more, needs old code
2899         removed. 
2901         * lib/widgets.c (dia_font_selector_create_string_item): Avoid
2902         warning by escaping & properly.
2904 2005-02-06  Lars Clausen  <lars@raeder.dk>
2906         * app/filedlg.c (file_export_callback): Set correct extension as
2907         soon every time the dialog is shown.  Fixes bug #162535.
2909         * app/display.c (ddisplay_set_origo): Use more standard
2910         transformations.
2912         * app/modify_tool.c (modify_motion): 
2913         * app/create_object.c (create_object_motion): Put coordinates of
2914         handle/object in status bar while moving. Fixes bug #163164.
2916 2005-02-03  Lars Clausen  <lars@raeder.dk>
2918         * lib/.cvsignore: Added generated files diamarshal.[ch]
2920 2005-02-02  Lars Clausen  <lars@raeder.dk>
2922         * configure.in: Add GLIB_GENMARSHAL def as suggested in
2923         http://ignore-your.tv/software/libgtcpsocket/docs/client-subclassing.html.
2924         Now compiles on Linux.
2926 2005-02-01  Lars Clausen  <lars@raeder.dk>
2928         * app/sheets.c (sheet_object_mod_get_type_string): We don't really
2929         need to translate the empty string.  Especially not after
2930         g_assert_not_reached().  Fixes bug #165966.
2932 2005-01-07  Tim Olsen  <tolsen@alum.mit.edu>
2934         * objects/UML/activity.c : add fill- and line-colour properties
2935         [applied by Hans Breuer, fixes bug #163260]
2937 2004-01-28  Hans Breuer  <hans@breuer.org>
2939         * doc/en/*.xml doc/en/dia.dbk app/authors.h : documentation
2940         update provided by Alan Horkan (fixes bug #159592)
2942 2004-01-28  Hans Breuer  <hans@breuer.org>
2944         [Extented version for UML to C++ conversion by Dave Klotzbach, bug #155255]
2945         * plug-ins/xslt/dia-uml2cpp.xsl : (new file) ... handles associataions,
2946         generalization, dependancies, parameterized classes ...
2947         * plug-ins/xslt/styleshetts.xml : refernce it
2948         * plug-ins/xslt/dia-uml.xsl : handle more UML types uesd above
2950 2004-01-28  Hans Breuer  <hans@breuer.org>
2952         * objects/UML/transition.c : fill out the extra_spacing struct 
2953         in the OrtConn member, in order to avoid artifacts when draggin 
2954         the transition. (patch by Peter Allin, bug #144956)
2956 2004-01-15  Hans Breuer  <hans@breuer.org>
2958         * plug-ins/cairo/diacairo.c : initialized the renderers default dash_length
2959         to something differnt than 0. Apparently there are case where Dia misses
2960         to appropriately set it before requesting a dashed line (simple line with
2961         arrow as described in bug #151716)
2963         * lib/dia_dirs.c : special casing for drive letters which I broke with
2964         the previous change
2966 2005-01-13  Hans Breuer  <hans@breuer.org>
2968         * app/interface.c(create_sheet_page) : remved dead long time code
2970         * lib/propdialogs.c : removed pdtpp_is_visible_no_standard() prototype,
2971         it is availbale via header - which is the better style anyway
2973 2004-12-31  Hans Breuer  <hans@breuer.org>
2975         * lib/dia_dirs.c(dia_get_canonical_path) : complete
2976         rewrite to handle something like /mnt/some/where/../else
2977         too. Workaround for bug #162637.
2978         * app/filedlg.c : call gtk_file_chooser_set_current_name()
2979         to workaround gtk_file_chooser_set_filename() not setting
2980         it if the file does not exist
2982         * sheets/Jackson.sheet.in app/menus.c : fixed typos
2983         (Frank Arnold, bug #161676)
2985 2004-12-31  Steffen Macke <sdteffen@gmail.com>
2987         * doc/pl/*.xml: Added XML prolog
2988         * makefile.msc: Added libxslt, fixed libxml, libart
2990 2004-10-29  Alexander Shopov  <ash@contact.bg>
2992         * configure.in (ALL_LINGUAS): Added "bg" (Bulgarian)
2994 2004-12-29  Lars Clausen  <lars@raeder.dk>
2996         * configure.in: Make gnomeprint be truly off by default (typo) and
2997         show optional compilation correctly.
2998         * plug-ins/gprint/Makefile.am: Exclude gnomeprint if not optioned in.
3000 2004-12-22  Hans Breuer  <hans@breuer.org>
3002         * lib/widgets.c : destroy handlers can be called more than once, 
3003         see http://developer.gnome.org/doc/API/2.0/gtk/gtk-changes-2-0.html
3005         * app/app_procs.c : #ifdef GLIB(2.6.0) but GTK(2.4.x)
3006         
3007         * app/display.c : temporary debug code showing the
3008         timing the rendering
3010         * app/dialibartrenderer.c(draw_string) : removed dead
3011         code loading and leaking font and face
3013 2004-12-15  Hans Breuer  <hans@breuer.org>
3015         * app/display.c : actually use the selction-changed signal for something
3016         useful. Show selections representation on statusbar.
3017         * lib/object.h lib/prop_text.c lib/libdia.def : provide objet_get_displayname() 
3018         * app/diagram_tree.c : use new function (as in app/display.c) and only
3019         poke into property internals at one place
3020         * app/diagram.c : use g_signal_handlers_block_by_func to avoid has-no-handler-
3021         complains
3023 2004-12-12  Hans Breuer  <hans@breuer.org>
3025         * lib/libdia.def app/dia.def : updated externals
3027         * objects/custom/custom_object.c : custom_destroy is called per object. 
3028         It _must not_ destroy class stuff (ShapeInfo) cause it does not hold a 
3029         reference to it. Fixes e.g. bug #158288, #160550, ...
3031         * objects/UML/association.c(association_draw) : completed porting to
3032         draw_polyline_with_arrows()
3033         (association_update_data_end) : fixed typo in point compare
3034         (association_update_data) : for name placement take degenerated 
3035         segements into account. Together this fixes bug #143891
3037 2004-12-11  Hans Breuer  <hans@breuer.org>
3039         * lib/widgets.c(set_size_sensitivity) : revert inverted
3040         logic for arrorw size selections, fixes bug #160527
3042 2004-12-11  Hans Breuer  <hans@breuer.org>
3044         * lib/widgets.c(dia_font_selector_set_font) : initialize
3045         the font style widget, too. Gets rid of empty font
3046         style and thus default broken font style, e.g. UML::class_name
3048         * lib/widgets.c(dia_color_selector_more_callback) : fill
3049         the color palette from dynamic menu entries and also
3050         preselect the current color to the last select entry
3051         
3052         * plug-ins/python/pydia-diagramdata.c : hold a reference
3053         to the underlying GObject
3054         
3055         * app/Makefile.am app/diagrid.h : new file containing the 
3056         grid 'class' moved from DiagramData to Diagram. 
3057         Also moved pagebreak_color and guides cause they are only 
3058         used for visual appearance not 'data'.
3059         * lib/diagramdata.[ch] app/diagram.h app/dia-props.c app/grid.c
3060           app/load_save.c plug-ins/python/pydia-diagramdata.c : reflect 
3061         the above change
3063         * lib/diagramdata.[ch] app/app_procs.c app/diagram.c 
3064           lib/libdia.def : get rid of new_diagram_data() 
3065         Diagram _is_ DiagramData (and does not have one any longer,
3066         just a compatibility pointer)
3067         
3068         * lib/diarenderer.h : a small doc improvement
3070 2004-12-11  Hans Breuer  <hans@breuer.org>
3072         * objects/UML/class.c : line wrapping code buffer
3073         overrun fixed by Gabor Simon, bug #160865
3075 2004-12-11  Hans Breuer  <hans@breuer.org>
3077         * plug-ins/python/pydia-diagram.c : hold a reference
3078         to the diagram in PyDiaDiagram, avoids bug #159080
3079         [another way to avoid is to detroy the dialog by
3080         clsoing it. But now there is still a diagram to
3081         apply the changes to, even if it's thrwon away just
3082         afterwards]
3084 2004-12-10  Hans Breuer  <hans@breuer.org>
3086         * **/*.c : fixed a bunch of warnings, not only for -ansi
3087         (still too many of them, but -ansi works)
3088         lib/
3089         prop_geomtypes.h prop_geomtypes.c:306: warning: static 
3090         declaration for `fontsizeprop_reset_widget' follows non-static
3091         dia_dirs.c:196: warning: return discards qualifiers from 
3092         pointer target type
3094         objects/custom/
3095         shape_info.c:121: warning: static declaration for `parse_path' 
3096         follows non-static
3098         objects/SADT/
3099         arrow.c:228: warning: `draw_arrowhead' declared `static' but never defined
3100         arrow.c:244: warning: unused variable `i'
3101         arrow.c:245: warning: unused variable `p'
3102         arrow.c:246: warning: unused variable `zzr'
3103         
3104         object/Istar/*.c object/Jackson/*.c  object/KAOS/*.c : 
3105         finally removed c++ comments
3106         
3107         objects/Istar/goal.c : initialize connections::directions
3108         while I was there - helps autorouting
3110         * objects/KAOS/metaandorrel.c objects/Istar/link.c 
3111           objects/KAOS/metabinrel.c : removed struct _DiaImage hack
3112         (it would be quite simple to add image-from-memory support
3113         to lib/ if needed)
3115         * pydia-*.h : warning: no newline at end of file
3116         
3117         * plug-ins/gprint/diagnomeprint.c : allow to unregister
3118         and follow new unique name naming convention
3119         * plug-ins/gprint/diagnomeprintrenderer.c : no c++ comments
3120         here either
3122 2004-12-07  Hans Breuer  <hans@breuer.org>
3124         * objects/UML/message.c : better default for initial text placement
3125         a suggested in bug #154306, Henning Mersch
3126         * objects/UML/constraint.c : doing the same
3128         * app/filedlg.c : include persistence.h for persistence_get_integer
3129         * lib/libdia.def export it
3131 2004-12-05  Hans Breuer  <hans@breuer.org>
3133         * app/grid.c : respect dynamic grid during snap-to, fixes 
3134         bug #135124, Dmitriy Morozov. Added some additional magic
3135         to make the grid size more useable.
3137 2004-12-05  Hans Breuer  <hans@breuer.org>
3139         * app/app_procs.c : make it compile for the HAVE_POPT and
3140         G_LIB_CHECK_VERSION(2,5,5) case, minor formating
3141         
3142         * lib/plug-ins.c : don't pass non exiting files to xmlDiaParseFile()
3143         * app/app_procs.c : only dia_pluginrc_write() and create_user_dirs()
3144         when interactive. Fixes bug #119329
3145           
3146         * plug-ins/cairo/diacairo.c : adapt to new type naming
3147         scheme (introduced by accident;-) for pixbuf-*
3148         * app/app_procs.c : reflect both type name changes
3150 2004-12-04  Hans Breuer  <hans@breuer.org>
3152         * objects/standard/image.c : fix the correct warning
3153         `image_file_name' might be used uninitialized
3154         
3155         * app/filedlg.c : near complete rewrite
3156         - removed 'related dialog', GtkOptionMenu, most global vars,
3157         also don't hide the dialog but let it go.
3158         - added: filter view by extension, hopefully working diagram
3159         referencing, GtkComboBox usage
3160         
3161         * plug-in/pixbuf/pixbuf.c : switched to dynamic generation
3162         of im/export filter entries. So the user interface reflects
3163         the dynamic nature of pixbuf loaders
3165         * lib/filter.[ch] : implement filter_unregister_*port
3166           lib/libdia.def : added new functions
3167           plug-ins/cgm/cgm.c plug-ins/dxf/dxf.c
3168           plug-ins/hpgl/hpgl.c plug-ins/metapost/metapost.c
3169           plug-ins/pstricks/pstricks.c plug-ins/svg/svg.c
3170           plug-ins/wpg/wpg.c plug-ins/xfig/xfig.c
3171           plug-ins/cairo/cairo.c plug-ins/pixbuf/pixbuf.c :
3172         use them in _plugin_unload () thus all these plug-ins
3173         can be loaded used and unloaded during Dia's runtime
3175 2004-12-04  Lars Clausen  <lars@raeder.dk>
3177         * lib/diagramdata.h: Access methods for units defined per diagram.
3179         * lib/font.c (dia_font_new_from_style): More proper object creation.
3181         * lib/properties.h: Refactored the PROP_STD_* macros to allow
3182         different options.
3184         * app/diagram.c (diagram_init): Force filename to be absolute
3185         path, easing the job for load/save.
3187 2004-12-03  Hans Breuer  <hans@breuer.org>
3189         * lib/libdia.def : removed dia_marshal_*, they are implemented as macros.
3190         added dia_font_set_height, dia_font_copy (note to self: don't try to
3191         maintain these from the *NIX side ;)
3193         * lib/widgets.h : removed DiaColorSelector::col, it is not maintained by
3194         the new color selection anymore
3195         * objects/UML/class_dialog.c : with the above change it would have been more 
3196         easy to fix the color loss bug #156996 which had nothing to do with 'a pointer
3197         problem' but only was an unfinished usage of dia_color_slector(get|set)_color
3199         *  objects/UML/class_dialog.c  objects/UML/class.[ch] : uml_apply_properties
3200         (used in object vtable) and make its prototype match
3202         * lib/widgets.c : made all the GtkTypeInfo 'static const'. I can't directly
3203         correlate any of these strange crashing bug with it, but assume bad things to 
3204         happen when one passes stack allocated stuff to gtk_type_unique()
3206         * lib/widgets.c(dia_font_selector_get_font) : don't access menuitem if it is
3207         not there. Fixes most of the warnings from bug #156996
3209         * lib/makefile.msc : rules to generate diamarshal.[ch]
3211 2004-11-29  Hans Breuer  <hans@breuer.org>
3213         * app/disp_callbacks.c : reenable so-called preedit
3214         as described in bug #158859, Etsushi Kato
3215         Also fixed some compiler warnings while there.
3216         
3217         * objects/standard/image.c(get_directory) : make
3218         the documentation match the implementation.
3219         (image_save) : don't write a leading slash on 
3220         relative filenames 
3222         * plug-ins/gprint/diagnomeprintrenderer.c :
3223         switched to gnome-print-pango usage
3224         
3225         * app/app_procs.c configure.in : although Dia
3226         is not threaded it appears as if we have to
3227         g_thread_init() to avoid crashing in some
3228         libraries which are thread enabled
3230         * lib/diamarshal.list lib/Makefile.am : start of
3231         using GSignal to clean up some object relations
3232         * lib/libdia.def : export marshallers
3233         * app/diagram.[ch] : emit signals when REMOVED,
3234         SELECTION_CHANGED
3235         * app/display.c : added a connection to 
3236         SELECTION_CHANGED to test the new signal stuff
3237         
3238         * app/diagram.c : fixed diagram_finalize while I
3239         was there.
3241 2004-11-28  Hans Breuer  <hans@breuer.org>
3243         * plug-ins/wmf/wmf.cpp(draw_string) : write the widechar version of 
3244         the text if conversion to current locale fails. [This is actually
3245         using code written four years ago;]
3246         * plug-ins/wmf/wmf_gdi.(h|cpp) : added TextOutW (no real implemantation)
3248         * objects/standard/image.c(image_load) : be more robust against 
3249         filenames which seem to be absolute
3251 2004-11-27  Hans Breuer  <hans@breuer.org>
3253         * app/filedlg.c(file_save_callback) : convert to
3254         filename encoding before passing to diagram_save()
3255         Fixes bug #158381, thanks to Robert Ã–gren
3257 2004-11-27  Hans Breuer  <hans@breuer.org>
3259         * lib/dialibartrenderer.c : sometimes its good to read
3260         compiler warnings. Not only define renderer_finalize
3261         but actually *use* it. Should plug a potential huge
3262         memory leak.
3264         * configure.in plug-ins/Makefile.am 
3265           plug-ins/gprint/Makefile.am : build the experimental
3266         gnomeprint plug-in on *NIX, too.
3267         * plug-ins/gprint/diagnomeprint.c : don't include
3268         specific (private) backend headers but instead select
3269         the desired backend via config key setting
3271         * lib/diagdkrenderer.c : add 1 to size of filled arc 
3272         to be rendered by gdk. Fixes bug #150896.
3274         * plug-ins/gprint/diagnomeprint.c 
3275           plug-ins/gprint/diagnomeprintrenderer.c : added magic
3276         to better match page and dash sizes
3278 2004-11-27  Hans Breuer  <hans@breuer.org>
3280         * plug-ins/shape/shape-export.c : it's g_strdup_printf
3282 2004-11-27  Hans Breuer  <hans@breuer.org>
3284         * app/app_procs.c : mention eps-builtin aka. "using
3285         latin1", does not fix the eps-pango issues but #150571
3287 2004-11-27  Hans Breuer  <hans@breuer.org>
3289         * sheets/Cybernetics.sheet.in : changed encoding to 
3290         utf-8, patch from Takeshi AIHANA, fixes #149580
3292 2004-11-27  Hans Breuer  <hans@breuer.org>
3294         * objects/custom/custom_object.c : many existing shapes
3295         rely on a square default size, revert to it although
3296         it originally was by a typo. Fixes bug #148527.
3298 2004-11-27  Hans Breuer  <hans@breuer.org>
3300         * app/load_save.c(dia_cleanup_autosave) 
3301           app/diagram.c : don't use dia->filename if already 
3302         freed and dont use printf at all.
3304         * app/paginate_psprint.c : not only set the renderer::paper
3305         but also renderer::is_portrait. Should fix bug #142524
3307 2004-11-26  Hans Breuer  <hans@breuer.org>
3309         * dia.desktop.in : added Bug Buddy headers (as seen
3310         in planner). Hopefully the automatically filling of
3311         bugs is more meaningful by this.
3312         
3313         * objects/custom/custom_util.c objects/standard/image.c
3314           lib/plug-ins.c : getting rid of deprecated g_dirname,
3315         fixes some more memory bugs : AddrAddress 0x3586C010 is 24 
3316         bytes inside a block of size 44 free'd
3317         
3318         * lib/persistence.c(persistence_load_list) : don't
3319         leak string
3320         
3321         * lib/diaerror.[ch] : (new file) start of better error handling
3322         * lib/Makefile.am lib/makefile.msc lib/libdia.def: 
3323         added new files/funcs
3324         * lib/proplist.c lib/propinternals.h (prop_list_load) : 
3325         allow to propagate error to caller. Also set PXP_NOTSET
3326         to avoid applying unset properties, fixes bug #155255
3327         * lib/propobject.c lib/prop_sdarray.c : still spewing
3328         g_warnings but now with context information
3329         
3330         * app/filedlg.c : more absolute filenames where required
3331         and strip them where we need the filename only
3332         Also explicit DONT choose gnome-vfs backend cause its
3333         threading appears to crash Dia - at least in GNOME build,
3334         see bug #159558
3336 2004-11-26  Hans Breuer  <hans@breuer.org>
3338         * app/filedlg.c : don't use relative filenames for
3339         gtk_file_chooser_set_filename(), GtkFileChooserDialog is very
3340         pedantic about it.
3341         (export_set_extension) : if we don't have a filename don't
3342         use it in strrchr() to avoid crashing
3343         
3344 2004-11-23  Hans Breuer  <hans@breuer.org>
3346         * app/app_procs.c : fixed build for the GNOME case
3347         (let's rip out POPT and depend on glib-2.6, please ;-)
3349 2004-11-23  Hans Breuer  <hans@breuer.org>
3351         * app/app_procs.c : fixed typo which broke the
3352         build for HAVE_POPT case
3353         
3354 2004-11-21  Hans Breuer  <hans@breuer.org>
3356         * app/app_procs.c : some more #if-mess, but one day
3357         we should rely on GLib's 2.6 Option Parser alone
3358         
3359         * plug-ins/wmf/wmf.cpp : use SC() when scaling width
3360         and height for RoundRect() - otherwise size depends on offset,
3361         shorten the unique name
3362         
3363         * plug-ins/python/diamodule.c : provide a unique name
3364         for python filters as well
3366         * lib/dialibartrenderer.c : fix the drawing of Gdk based text
3367         by using the right colors (need black background cause we
3368         are tinitng it with the real color later)
3370         * lib/dia_dirs.c(dia_get_canonical_path) : use G_DIR_SEPARATOR_S
3371         instead of hardcoded slahes, improved portability 
3373         * app/paginate_gdiprint.cpp : use the right filter name to find wmf
3374         plug-in. Also added some more error reporting (e.g. no printer driver)
3376         * plug-ins/gprint/diagnomeprintrenderer.[hc] plug-ins/gprint/diagnomeprint.c
3377           plug-ins/makefile.msc : resurrection of the gnome print renderer. 
3378         Kinda works (alpha quality) for export but does not print yet. 
3379         With bug #158972 resolved this does even work on win32 :-)
3381 2004-11-07  Hans Breuer  <hans@breuer.org>
3383         * doc/diagram.dtd : <composite> can have <composite/>,
3384         <font/> has two 'optional' atributes 'style' and 'family',
3385         these are used to store new (since 0.91) font info.
3386         With this changes non of the issues in bug #147431 remains.
3388         * plug-ins/python/otypes.py : starting to implement an
3389         'create all known object' file as ne stress test source
3390         for the dtd and Dia in general.
3392 2004-11-06  Hans Breuer  <hans@breuer.org>
3394         * app/diapsrenderer.c : don't convert to locale but to 
3395         "LATIN1", fixes bug #146641
3397 2004-11-06  Hans Breuer  <hans@breuer.org>
3399         * app/diagram_tree.c : still no C99 everwhere ...
3400         * lib/libdia.def : update externals
3401         * plug-ins/pstricks/render_pstricks.c : #include <locale.h>
3403         * app/app_procs.[hc] : declare, use ...
3404            app/winmain.c : ... and implement dia_redirect_console().
3405         Even though newer Gtk version don't popup a console window
3406         anymore redirecting the error messages to a file in $TEMP appears
3407         to be much more reasonable than just ignoring it. Fixes bug #150777
3408         based on a patch from Steffen Macke
3410 2004-11-06  Hans Breuer  <hans@breuer.org>
3412         * plug-ins/wmf/wmf.cpp plug-ins/wmf/wmf_gdi.* : added/used
3413         RoundRect() for high level renderer api implementation thus
3414         fixing bug #138744 reported by Lars Clausen
3416 2004-11-06  Hans Breuer  <hans@breuer.org>
3418         * app/prefernces.c : applied patch to make showing the diagram 
3419         menubar the default (advanced users know how to switch it off)
3420         Fixes bug #150706, Steffen Macke
3422 2004-11-06  Hans Breuer  <hans@breuer.org>
3424         * app/commands.c app/commands.h : added view_fullscreen_callback()
3425           view_unfullscreen()
3426           app/menus.c : use it (/View/Fullscreen) thus fixing bug #94090
3427         * app/disp_callbacks.c : use view_unfullscreen() for GDK_Escape
3428         ALso modified to allow handling of unmodified keys again (aren't
3429         there plenty of bug reports for this?
3431 2004-11-06  Hans Breuer  <hans@breuer.org>
3433         * objects/UML/class_dialog.c : fixed casts for usage
3434         of dia_color_selector_set_color()
3435         
3436         * app/filedlg.c : pass a valid filenames to 
3437         gtk_file_chooser_set_filename(), if we don't have a name
3438         don't call it at all. Gets rid of "libgnomevfs-CRITICAL **: 
3439         file gnome-vfs-utils.c: line 749 (gnome_vfs_get_uri_from_local_path): 
3440         assertion `local_full_path[0] == '/'' failed"
3441         
3442 2004-11-06  Lars Clausen  <lars@raeder.dk>
3444         * app/properties.c (create_dialog): 
3445         * app/diagram_tree_window.h: 
3446         * app/diagram_tree.h (HIDDEN_TYPES_NAME): 
3447         * app/diagram_tree_menu_callbacks.c: 
3448         * app/diagram_tree_window.c: 
3449         * app/diagram_tree_menu.c: 
3450         * app/diagram_tree.c: Changed to use persistence instead of
3451         strange hacks in preferences.
3453         * lib/persistence.h:
3454         * lib/persistence.c (persistent_list_get_glist): Don't deref null
3455         pointer.  New function persistent_list_remove_all, and
3456         fixed persistent_list_remove to ... work!
3458 2004-11-05  Lars Clausen  <lars@raeder.dk>
3460         * app/paginate_psprint.c (diagram_print_ps): Call
3461         diagram_print_destroy on destroy rather than delete_event.  That
3462         way the gtk_widget_destroy() calls cleans up properly.  Fixes bug
3463         #154898. 
3465 2004-11-02  Lars Clausen  <lars@raeder.dk>
3467         * objects/UML/class.c (umlclass_load): Actually load the saved
3468         fonts and font sizes. Fixes bug #157016
3470         * configure.in: Require at least GTK+ 2.4.
3472         * app/filedlg.c: Changed to use 2.4 file dialog!  Finally,
3473         finally, finally.  Not quite bulletproof yet, and I need to figure
3474         out a minimum version of Gtk that doesn't spew warnings all over.
3476         * app/diagram.[ch]: diagram_set_filename with const filename.
3478         * app/sheets_dialog_callbacks.c
3479         (on_sheets_dialog_button_apply_clicked): Sheet menu now almost
3480         correctly recreated.  Still something fishy with the sheet menu in
3481         the dialog after adding a new sheet.  Probably the sheet name
3482         being stomped.
3484 2004-11-01  Lars Clausen  <lars@raeder.dk>
3486         * lib/widgets.[ch] (dia_dynamic_menu_reset): Harden against memory
3487         stmping.  Now requires g_free here and there.
3489         * app/preferences.[ch] (prefs_data): Got rid of hidden prefs value
3490         for remembering last sheet, better off as persistent string.  Must
3491         hunt down other things like that.
3493         * app/interface.c (create_sheets): Now remembers last sheet
3494         selected again. Fixes bug #157036.
3496 2004-11-01  Hans Breuer  <hans@breuer.org>
3498         * plug-ins(tex_escape_string) : fixed it [g_utf8_next_char
3499         will never become NULL but only point to the next char
3500         which might indeed be \0]
3501         Use tex_escape_string() to avoid writing invalid tex,
3502         fixes bug #112377
3504         * **/* : a bunch of changes caused by trying 'make distcheck'
3505         which still fails, see Bug #144527
3507 2004-10-31  Lars Clausen  <lars@raeder.dk>
3509         * plug-ins/pstricks/render_pstricks.c (export_pstricks): Avoid
3510         floating point numbers being printed with commas.  Fixes bug
3511         #156148.
3512         
3513         * app/interface.c (create_sheet_dropdown_menu): New function to
3514         create the sheet menu, and also allow recreation.  Still buggy and
3515         slightly prone to magic.
3517         * objects/UML/class_dialog.c
3518         (attributes_list_selection_changed_callback): Don't try to update
3519         the widgets after they're destroyed.  Fixes bug #156706 (I think).
3521         * lib/widgets.c (dia_unit_spinner_new): Avoid crash on NULL
3522         adjustement.  Fixes bug #154637
3524         * sheets/ER/Makefile.am (PIX): 
3525         * sheets/GRAFCET/Makefile.am (PIX): 
3526         * sheets/Jackson/Makefile.am (PIX): 
3527         * sheets/Istar/Makefile.am (PIX): 
3528         * sheets/KAOS/Makefile.am (PIX): Actually install PNG instead of
3529         XPM.  Why these have their pictures in sheets rather than shapes I
3530         don't know.  Fixes bug #152142.
3532 2004-10-31  Hans Breuer  <hans@breuer.org>
3534         * plug-ins/pixbuf/pixbuf.c : when running non interactive
3535         Dia won't call color_init() as it assumes no display. If
3536         we have one as tested ourselve we can as well color_init()
3537         to avoid g_warnings() and produce the right collors.
3538         Fixes bug #155495.
3539     
3540         * app/app-procs.c : try to be a little more helpful
3541         and correct with regard to the command line options.
3542         Renamed --export-to-format to --export-filter and some
3543         other string changes
3545 2004-10-31  Hans Breuer  <hans@breuer.org>
3547         * plug-ins/wmf/wmf_gdi.cpp plug-ins/wmf/wmf_gdi.h :
3548         added GetDeviceCaps() dummy implementation to make 
3549        'wmf' compile on Linux, too.
3551 2004-10-31  Hans Breuer  <hans@breuer.org>
3553         * plug-ins/wmf/wmf.cpp : patch from Robert Ã–gren <gtk@roboros.com>
3554         to finally fix the long lasting clipping issue, bug #85831
3555         Also fixed the line style issue for printing on XP and don't 
3556         miss to ReleaseDC()
3558         * plug-ins/wmf/wmf_gdi.[hc] : added ReleaseDC()
3560         * plug-ins/python/diasvg.py : filter illegal characters from <text/> section
3561         (e.g. &lt; instead of <), fixes bug #155697 (Duncan Palmer)
3563         * plug-ins/python/pydia-error.[hc] : improvede exception handling to transfer 
3564         some info from the console (soon gone on windoze) to message_error()
3565         * plug-ins/python/pydia-render.c plug-ins/python/diamodule.c : use it.
3566         Also some setlocale() hack to let Python behave as expected for LC_NUMERIC
3568         plug-ins/python/diasvg_import.py : re.compile() only once per expression
3569         and some more playing with scaling
3571         * plug-ins/python/makefile.msc : updated
3573 2004-10-30  Hans Breuer  <hans@breuer.org>
3575         * shapes/Civil/civil_arrow_right.shape : removed
3576         <aspectratio type="fixed" /> thus allowing to change
3577         width and height independently, fixes #154897 
3578         (Serge Robinson) by making it consistent with the
3579         up arrow
3581 2004-10-30  Hans Breuer  <hans@breuer.org>
3583         * plug-ins/xfig-xfig-export.c(hasArrow) : don't crash
3584         on arrow being NULL, fixes bug #143063
3586 2004-10-30  Hans Breuer  <hans@breuer.org>
3588         * lib/diagramdata.c app/diagram.c app/disp_callbacks.c
3589           plug-ins/python/pydia-diagram.c plug-ins/python/pydia-diagramdata.c :
3590         removed use of chached variable DiagramData::selected_count
3591         * lib/diagramdata.h : renamed to selected_count_private
3592         (kept for binary compatibility and sanity checks)
3593         * lib/diagramdata.c : more checks on a screwed up selection list
3595         * app/diagram.c(diagram_group_selected) : don't screw up the
3596         DiagramData::selected list, was assignment of parent_list_affected(),
3597         * lib/diagramdata.c (data_select, data_unselect) : protect against
3598         multiple selections of the same object and removement of a not selected
3599         object (apparently caused by the recently added group undo stuff)
3600         together with the above this finally fixes bug #153525
3602         * app/Makefile.am : fix ./autogen.sh ->
3603         app/Makefile.am:171: blank line following trailing backslash
3605         * app/commands.c(objects_group_callback,objects_ungroup_callback) :
3606         ddisplay_do_update_menu_sensitivity() here as well
3608         * configure.in : make the experimental state of the cairo plug-in
3609         more visible
3610         
3611         * app/dia-props.c(diagram_properties_update_sensitivity) : don't
3612         try to update anything if we can't find an active diagram
3613         Additionally set static dialog pointer to NULL by gtk_widget_destroyed
3614         
3615         * configure.in : another attempt to fix bug #156116. If there is
3616         anyone with autotools knowledge reading this - help appreciated ;-)
3618 2004-10-30  Hans Breuer  <hans@breuer.org>
3620         * objects/makefile.msc objects/UML/Makefile.am
3621           objects/UML/uml.c objects/UML/transition.c 
3622           objects/UML/pixmaps/transition.xpm sheets/uml.sheet.in : 
3623         Patch from Peter Allin adds statechart transitions to the UML sheet -
3624         bug #144956 - modified to not print("%s", NULL) which crashes on
3625         newer glib versions. Also added pixmap/transition.xpm to Makefile.am
3627 2004-10-30  Hans Breuer  <hans@breuer.org>
3629         * doc/sheet.dtd doc/diagram.dtd : the namespace does *not* 
3630         match the website anymore, i.e. sould remain unchanged. 
3631         See below and lib/dia_xml.h for the reasoning
3633         * lib/libdia.def : removed dia_color_selector_get_type
3635         * lib/dia_image.c(dia_image_load) : check for pixbuf warnings
3636         (like broken PNG) and g_warning if appropriate
3638         * app/interface.c : #include "message.h"
3640         * app/diaunitspinner.hc : replaced the superfluous #if-0-juggling,
3641         used #error "Moved to lib/widgets.[hc]" instead (IMO it would be
3642         better to just move diaunitspinner to lib/ instead of polluting
3643         widgets.[hc] even more ;)
3644         * app/makefile.msc lib/libdia.def : updated
3646         * app/filedlg.c : patch from gtk@roboros.com, fixes #156224
3647         * app/app_procs.c : patch from gtk@roboros.com, fixes #156088
3649         * config.h.win32 : #define HAVE_CAIRO to let the Cairo plug-in
3650         do something useful when compiled
3652         * plug-ins/cairo/diacairo.c : added 'PNG with alpha' rendering.
3653         Also some more #ifdefed backends usage.
3655 2004-10-10  Lars Clausen  <lars@raeder.dk>
3657         * lib/widgets.c: Better labels for color selector menu.
3659         * app/dia-props.c (diagram_properties_respond): 
3660         * app/preferences.c (prefs_get_value_from_widget): Don't assume
3661         that a dia color selector is of type DiaColorSelector:)
3663         * lib/widgets.[ch]: Color selector changed to dynamic menu.
3665         * lib/prop_attr.c (colorprop_set_from_widget): Don't assume
3666         DiaColorSelector. 
3668 2004-10-09  Lars Clausen  <lars@raeder.dk>
3670         * lib/diaarrowchooser.c (dia_arrow_preview_init): Slightly wider
3671         arrow preview to avoid long arrow heads flipping.
3673         * lib/arrows.[ch]: Support for getting from name to arrow type,
3674         and for listing all arrow names.
3675         
3676         * lib/widgets.[ch]: Changed arrow selector to use dynamic menu.
3678         * lib/libdia.def: Added new global functions.
3680         * lib/persistence.[ch]: Two of the persistent_list functions to
3681         return whether the item was found in the list.
3683         * app/interface.c (create_sheets): Use DiaDynamicMenu to handle
3684         the growing number of sheets.
3686         * lib/widgets.[ch]: Add DiaDynamicMenu as a generalization of the
3687         font menu.
3689 2004-10-05  Lars Clausen  <lars@raeder.dk>
3691         * objects/UML/association.c: Patch from Harvey Thompson
3692         <harveyandsu@yahoo.com>:  Better placement of association texts.
3694 2004-10-03  Lars Clausen  <lars@raeder.dk>
3696         * lib/widgets.c (dia_font_selector_add_menu_item): Make font menu
3697         use the fonts in question.  Can't set tooltips with the name since
3698         lib objects don't know the tool_tips thing, which is rather
3699         app-related.
3701 2004-09-19  Hans Breuer  <hans@breuer.org>
3703         * plug-ins/xslt/*.xsl : s/apply-templates match/apply-templates select/
3704         fixes bug #148278, carlosrp@idea.com.py (Carlos Ra�l Perasso)
3706 2004-09-19  Hans Breuer  <hans@breuer.org>
3708         * dia.desktop.in : string changes as proposed in bug #151822
3709         
3710         * lib/Makefile.am : remove -module from libdia_la_LDFLAGS,
3711         appearts not to be needed on Linux and breaks the build 
3712         on OSX. Fixes bug #152970
3713         
3714 2004-09-18  Lars Clausen  <lars@raeder.dk>
3716         * app/commands.c (view_show_all_callback): Add a bit of border
3717         around Ctrl-E'd diagram, for easier select and better view of edges.
3719 2004-09-19  Hans Breuer  <hans@breuer.org>
3721         * app/Makefile.am : trying to fix the fix from 2004-02-15
3722         Overwriting AM_LDFLAGS still gave a automake warning and it 
3723         also appeard to break linking against gtklibs in a differnt 
3724         prefix. Use dia_LDFLAGS instead.
3726         * plug-ins/svg/svg-import.c : initialize 'end' before usage
3727         patch from dcbw@redhat.com (Dan Williams), fixes bug #150548
3728         
3729         * lib/diarenderer.c : don't try to draw lines which are so much 
3730         degenerated that their point count became negative, fixes bug #148139
3731         
3732         * lib/font.c(layout_cache_equals) : don't crash on nonexisting 
3733         strings (NULL from g_strdup()) 
3735 2004-09-10  Steffen Macke <sdteffen@web.de>
3737         * lib/libdia.def: added color_new_rgb(), focus_previous(),focus_next(),
3738         give_focus(),give_focus_to_object(),remove_focus(),reset_foci()
3739         * app/create_object.c:
3740         * app/diaunitspinner.c:
3741         * app/disp_callbacks.c:
3742         * app/makefile.msc:
3743         * app/modify_tool.c:
3744         * lib/prop_geomtypes.c:
3745         * lib/prop_geomtypes.h: made compile with msvc
3747 2004-09-10  Lars Clausen  <lars@raeder.dk>
3749         * lib/widgets.c: Insulate conversion from outside API by adding
3750         internal function to set value.  Adjustment not appropriate for
3751         units yet.
3753         * lib/prop_geomtypes.c (lengthprop_get_widget): Remove debug info
3755 2004-09-07  Lars Clausen  <lars@raeder.dk>
3757         * app/diapagelayout.c: Include from widgets.c rather than
3758         diaunitspinner.
3760 2004-09-03  Lars Clausen  <lars@raeder.dk>
3762         * objects/standard/box.c: Use PROP_TYPE_LENGTH for corner_radius
3763         as unit-based property testbed.
3765         * lib/prop_geomtypes.c (lengthprop_reset_widget): Implement length
3766         and fontsize widgets. 
3768         * app/Makefile.am (dia_core_files):
3769         * app/diaunitspinner.h: 
3770         * app/diaunitspinner.c: 
3771         * lib/widgets.h: 
3772         * lib/widgets.c (dia_unit_spinner_update): Move diaunitspinner to
3773         lib/widgets.[ch], as it's used in the properties code now.
3775 2004-08-31  Steffen Macke <sdteffen@web.de>
3777         * doc/en/usage-objects-basic.xml: Mentioning supported image formats.
3779 2004-08-30  Lars Clausen  <lars@raeder.dk>
3781         * app/textedit.c: 
3782         * app/diagram.c (diagram_remove_all_selected): Remove debugging
3783         information. 
3785         * lib/color.[ch]: 
3786         * app/undo.c: 
3787         * app/disp_callbacks.c: 
3788         * app/Makefile.am: 
3789         * app/create_object.c: 
3790         * app/textedit.[ch]: 
3791         * app/modify_tool.c: 
3792         * app/diagram.c: 
3793         * lib/text.c: 
3794         * lib/focus.[ch]: Change in focus mechanism to allow highlight of
3795         current input object, multiple inputs per object, and tabbing
3796         between objects.
3798 2004-08-28  Steffen Macke <sdteffen@web.de>
3800         * makefile.msc: added bs to ALL_LINGUAS; adjusted .mo file creation to
3801         allow separate installer component "Translations"
3803 2004-08-27  Akagic Amila  <bono@linux.org.ba>
3805         * configure.in: Added 'bs' to ALL_LINGUAS.
3807 2004-08-26  Steffen Macke <sdteffen@web.de>
3809         * app/makefile.msc: using /subsystem:windows again
3810         * makefile.msc: updated ALL_LINGUAS
3812 2004-08-21  Kjartan Maraas  <kmaraas@gnome.org>
3814         * configure.in: Add Â«nb» to ALL_LINGUAS.
3816 2004-08-21  Steffen Macke <sdteffen@web.de>
3818         * plug-ins/dxf/dxf-export.c: Patch from 
3819         Takeshi Hamasaki <hma@syd.odn.ne.jp>, fixes text alignment
3821 2004-08-17  Lars Clausen  <lars@raeder.dk>
3823         * config.h.win32: 
3824         * dia.spec (Release): 
3825         * doc/pl/dia.xml: 
3826         * doc/en/dia.xml: 
3827         * NEWS: 
3828         * configure.in: 
3830 2004-08-13  Ankit Patel <ankit@redhat.com>
3832         * configure.in: Added "gu" in ALL_LINGUAS.
3834 2004-08-07  Lars Clausen  <lars@raeder.dk>
3836         * configure.in:
3837         * config.h.win32: 
3838         * doc/pl/dia.xml: 
3839         * doc/en/dia.xml: 
3840         * dia.spec (Release): 
3841         * NEWS: New release 0.94-pre6
3843 2004-08-07  Lars Clausen  <lars@raeder.dk>
3845         * app/highlight.c (highlight_reset_objects): Unhighlight inside
3846         groups as well.
3848         * app/load_save.c: 
3849         * plug-ins/shape/shape-export.c: String capitalization fix from
3850         Alan Horkan <horkana@tcd.ie>
3852         * objects/UML/class.c (umlclass_show_comments_callback): Make UML
3853         Class object menu kinda work, rather than blow up.  Doesn't do a
3854         proper undoable change yet.
3856 2004-08-06  Lars Clausen  <lars@raeder.dk>
3858         * app/filedlg.c (file_save_as_callback): Don't remove related
3859         dialogs from the NULL diagram.
3861 2004-08-02  Lars Clausen  <lars@raeder.dk>
3863         * config.h.win32: 
3864         * doc/pl/dia.xml: 
3865         * doc/en/dia.xml: 
3866         * dia.spec (Release): 
3867         * NEWS: Pre5 with leak fix.
3869         * lib/font.c (dia_font_build_layout): Don't try to save an
3870         allocation of LayoutCacheItem if it breaks layout cache hash.
3871         Also make hash function correct, remove explicit height entry
3872         (it's in pfd), and make sure things are correctly unreffed.
3873         Finally fixes #148141.
3875         * lib/text.c (text_set_attributes, text_set_font): Safely unref
3876         when changing font, and actually set the new font in
3877         text_set_font(!).
3878         (text_get_attributes): Ref copied font.
3880 2004-08-01  Lars Clausen  <lars@raeder.dk>
3882         * NEWS: 
3883         * configure.in: 
3884         * dia.spec (Release): 
3885         * config.h.win32: 
3886         * doc/pl/dia.xml: 
3887         * doc/en/dia.xml: Prerelease 4.
3889         * lib/font.c (dia_font_build_layout): Better comparision and
3890         freeing of font cache.
3892 2004-07-31  Lars Clausen  <lars@raeder.dk>
3894         * lib/font.c (dia_font_build_layout): Faster update to avoid
3895         memory leaks.
3897         * app/app_procs.c: Fix from Tom Parker <palfrey@bits.bris.ac.uk>:
3898         Correctly initialize export filter variable.
3900 2004-07-25  Lars Clausen  <lars@raeder.dk>
3902         * dia.spec (Release): 
3903         * configure.in: 
3904         * NEWS: 
3905         * config.h.win32: 
3906         * doc/en/dia.xml: 
3907         * doc/pl/dia.xml: Pre3 coming out.
3909         * lib/diarenderer.c (draw_polygon): 
3910         * plug-ins/dxf/dxf-export.c (export_dxf): Two fixes by Takeshi
3911         Hamasaki <hma@syd.odn.ne.jp>: Correct header to be a 0 (zero)
3912         rather than O (letter), and assert num_points > 1 rather than the
3913         other way around.
3915         * app/recent_files.c: 
3916         * app/filedlg.c: 
3917         * app/diagram.c: 
3918         * app/app_procs.c: Patch from Vitaly Lipatov <lav@altlinux.ru>:
3919         Make filenames conform to filesystem encoding.
3921         * RDP/.cvsignore: Added standard ignore.
3922         
3923         * shapes/network/Makefile.am (SHAPES): Use PNG instead of XPM for
3924         last entry patch-panel, too.
3926         * app/*.png:
3927         * shapes/Circuit/*.png:
3928         * shapes/Civil/*.png:
3929         * shapes/Contact/*.png:
3930         * shapes/Electric/*.png:
3931         * shapes/MSE/*.png:
3932         * shapes/Pneumatic/*.png:
3933         * shapes/SDL/*.png:
3934         * shapes/flowchart/*.png:
3935         * shapes/jigsaw/*.png:
3936         * shapes/network/*.png:
3937         * shapes/sybase/*.png:
3938         * samples/dia*.png:
3939         * dia_gnome_icon_large.png:
3940         * doc/pl/graphics/*.png: Set -kb for PNGs.
3941         
3942         * sheets/{ER,GRAFCET,Istar,Jackson,KAOS}: Added .png files.
3944 2004-07-22  Lars Clausen  <lars@raeder.dk>
3946         * NEWS: 
3947         * config.h.win32: 
3948         * doc/en/dia.xml: 
3949         * doc/pl/dia.xml: 
3950         * dia.spec (Release): 
3951         * configure.in: Update to version 0.94-pre2.
3953         * app/load_save.c (diagram_data_write_doc): Use new namespace
3954         here, too.
3956         * lib/object.h (OBJECT_COMMON_PROPERTIES): Remove 'Dia' from
3957         hidden objects properties.
3959         * objects/standard/line.c: Remove halffinished line gap box from
3960         properties list.
3962         * app/paginate_psprint.c: 
3963         * app/filedlg.c: Patch from kimmidi@novell.com (Kiran Kumar
3964         Immidi): Close export and print dialog with diagram as well.
3965         (#129520)
3966         
3967         * lib/diaarrowchooser.[ch]: Patch from pborelli@katamail.com (paolo
3968         borelli):  Remove deprecated stuff (#137693)
3970         * app/dia-props.c (create_diagram_properties_dialog): Patch from
3971         kimmidi@novell.com (Kiran Kumar Immidi):  Close properties dialog
3972         on destroy.
3974 2004-07-21  Ray Strode  <rstrode@redhat.com>
3976         * dia/dia.desktop.in: Add MimeType line to desktop file
3977         new mime sytem.
3979 2004-07-18  Hans Breuer  <hans@breuer.org>
3981         * shapes/(Circuit|Contatct|MSE|network|Pneumatic|SDL|sybase)/Makefile.am 
3982           sheets/UML/*.png : icons in png format
3983         Partial fixup of stuff broken with the following comment:
3984         "7 days : xpm->png, namespace fix, first rotation bits."
3986         * app/load_save.c(read_objects) : don't add objects to the layer.
3987         This function is called recursively and only the topmost objects
3988         belong in the layers object list. Fixes bug #145417 and is the
3989         the real fix for bug #142480
3990         
3991         * app/app_procs.c : make the --size hack even uglier, but work again
3992         
3993         * lib/dia_dirs.c(dia_get_absolute_filename) : must not free()
3994         but g_free() what is returned by g_build_filename()
3995         
3996         * objects/custom/custom_object.c(custom_destroy) : handle all enum
3997         values in switch to get rid of the warning
3998         
3999         * objects/custom/shape_info.c : use g_ascii_strtod(), get rid 
4000         of setlocale()/strtod()
4001         * lib/dia_svg.c : dito
4002         * lib/dia_xml.c : almost
4004         * plug-ins/python/group_props.py : use the string representation of 
4005         value to ensure "unique values". If the strings would not be different
4006         the user cann't see the difference either
4008 2004-07-17  Lars Clausen  <lars@raeder.dk>
4010         * lib/persistence.h: Have "void" in prototypes (#142663)
4012         * lib/widgets.c (dia_font_selector_init): Better string handling
4013         (#142663) 
4015         * lib/persistence.c (persistence_save_type): Small fixes (#142663)
4017         * objects/standard/image.c (image_load): Use path of diagram
4018         rather than running directory as base for image file place.
4020         * doc/{diagram,sheet}.dtd: Move DTD namespace to new site, and
4021         syntactic fixes. 
4022         
4023         * app/disp_callbacks.c (ddisplay_canvas_events): Patch from
4024         Ambrose Li <a.c.li@ieee.org>:  Better IM context handling.
4026         * Re-added new sample diagrams binarily.
4028 2004-07-17 Sagar Rastogi <rastogi@students.iiit.net>
4030         * app/disp_callbacks.c: Fixed #144962 (also in KNOWN_BUGS),
4031         Disabled keyboard accels when dragging an object.       
4033 2004-07-14  Lars Clausen  <lars@raeder.dk>
4035         * app/grid.c (snap_to_grid): Use diagrams grid setting to
4036         determine hex grid snap.
4038         * doc/pl/Makefile.am: Avoid error based on backslash in comment.
4039         
4040         * app/interface.h: Avoid multiply defined symbols (#147396)
4042 2004-07-10  Lars Clausen  <lars@raeder.dk>
4044         * app/sheets_dialog_callbacks.c (write_user_sheet): 
4045         * lib/sheet.c (load_register_sheet): Don't introduce double
4046         slashes in namespace.
4048         * lib/dia_xml.h (DIA_XML_NAME_SPACE_BASE): Keep consistent with
4049         old diagrams, or XSLT will barf all over.
4050         
4051         * shapes/RDP/place.shape: 
4052         * shapes/RDP/transition.shape: 
4053         * shapes/RDP/Makefile.am: Added .png entries to SHAPES and changed
4054         shapes to use those.
4056 2004-07-07  Lars Clausen <lars@raeder.dk>
4058         * config.h.win32: 
4059         * doc/{en,pl}/dia.xml: 
4060         * dia.spec: 
4061         * configure.in: 
4062         * NEWS: First prerelease of version 0.94.  Now with release
4063         versions in a branch and main devel in the trunk.
4065 2004-07-05  Hans Breuer  <hans@breuer.org>
4067         * */*.[hc] */*/*.c : a bunch of changes to make Dia compile with
4068         -std=c89. Mostly //-comments and M_PI -> G_PI
4069         [Istar, Jackson, KAOS were removed from build cause they
4070         simply have *too* much C++ comments ;]
4071         * object/UML/association.c : use g_strdup() not plain strdup()
4072         * app/paginate_psprint.c : avoid storage size of `pipe_action' 
4073         isn't known with more portable signal code
4074         
4075         * app/app_procs.c : don't call gtk_init() if just --version
4076         is requested (bug #144321, Vladimir Kondratiev)
4077         
4078         * lib/prop_attr.c(fontprop_set_from_offset) : only unref 
4079         DiaFont* if not NULL
4080         * objects/UML/class.c : moved fill_in_fontdata() to 
4081         umlclass_load() to avoid such trouble, though unsure if
4082         this really is an improvement...
4083         
4084         * shapes/network/makefile.am : patch-panel added here too
4086 2004-07-04  Hans Breuer  <hans@breuer.org>
4088         * sheets/network.sheet.in shapes/network/patch-panel.xpm
4089           shapes/network/patch-panel.xpm : added 24-Port-Patch-Panel
4090         fixes bug #136629, James McDonald
4092 2004-07-04  Hans Breuer  <hans@breuer.org>
4094         * lib/persistence.c app/load_save.c app/sheet_dialog_callbacks.c
4095           lib/object_defaults.c : revert changing of Dia's XML namespace
4096         * lib/dia_xml.h : #define DIA_XML_NAME_SPACE_BASE with a comment
4097         about its purpose and relation to real world urls.
4099         * lib/plug-ins.h : increment DIA_PLUGIN_API_VERSION and 
4100         added comment about when to do so
4101         [Should have been long time ago and probably multiple times
4102         to avoid crashing on older plug-ins]
4103         * RELEASE-PROCESS : mention DIA_PLUGIN_API_VERSION
4104         * plug-ins/xslt/xslt.c : use DIA_PLUGIN_CHECK_INIT
4106         * lib/object.c objects/UML/class.c : there are still compilers not 
4107         supporting C99 and other GCCISMs like allocating dynamic sized arrays 
4108         on the stack
4109         * objects/UML/class.h : there is a differnce between a list pointer
4110         and a list pointer pointer. We and GLib want the former.
4112         * plug-ins/pixbuf/pixbuf.c : don't use app_is_interactive () to detect
4113         if Gtk is initialized. Using gdk_display_get_default () avoids the
4114         app/* dependency and is also closer to the requirements of the
4115         plug-ins working.
4117         * plug-ins/cairo/diacairo.c : initialize "unique name" field. Also
4118         some #ifdefed support for Cairo backends not public available yet.
4120         * plug-ins/wmf/wmf.cpp : finally do extended linestyles if the
4121         windoze platform supports them. This should fix bug #109818, at
4122         least for the majority running NT or above ...
4123         * plug-ins/wmf/wmf_gdi.[hc] : portability stuff for the above
4125         * objects/makefile.msc : build Istar, Jackson and Kaos
4127         * objects/UML/class.c(umlclass_load) : don't wrap by default to 
4128         keep old diagrams as they were - instead of this nice new effect ;-)
4129         Also make "wrap_operations" PROP_TYPE_BOOL in PropDescriptions
4131         * objects/UML/class.c : mark for translation _("Wrap ...
4133         * objects/UML/class.c : more correct types, also some default properties
4134         dialog pages adjustment (triggering a bug in lib/prop_widgets.c ?;)
4136         * objects/UML/activity.c : removed a leftover from the 
4137         use-localization-for-font-substitution-hack
4139         * shapes/ChemEng shapes/Cybernetic shapes/Map/Isometric :
4140         'cvs admin -kb *.png' PNG files should already be *added* as binary,
4141         otherwise they are not readable on line-end-converting-platforms
4143         * plug-ins/python/use g_new0(Dia<Im|Ex>portFiler), avoids crashing 
4144         filter_get_by_name()
4146         * plug-ins/python/pydia-property.c : some more g_warnings for
4147         not implemented conversions
4149         * plug-ins/python/group_props.py : ensure unique property values
4150         at the right place. Now something like :
4151         - load an old UML class diagram
4152         - change one of the classes to wrap operations
4153         - select all classes (/Select/Same Type)
4154         - /Dialogs/Group Properties : check wrap_operations, select '1'
4155         - Ok, works like a charm :-)
4157 2004-07-04  Lars Clausen  <lars@raeder.dk>
4159         * lib/diagdkrenderer.c (draw_string): Don't unref NULL
4160         pixbuf. (#145362)
4161         
4162 2004-07-03  Lars Clausen  <lars@raeder.dk>
4164         * app/app_procs.c (do_convert): Two patches from Vitaly Lipatov
4165         <LAV@VL3143.spb.edu>: Fixes console output problems and some
4166         interactiveness problems.
4168 2004-07-02  Lars Clausen  <lars@reader.dk>
4170         * plug-ins/pixbuf/pixbuf.c (dia_plugin_init): Don't load if the
4171         app isn't interactive.
4173 2004-07-01  Lars Clausen  <lars@raeder.dk>
4175         * plug-ins/cairo/diacairo.c: Add init of last field of filter
4176         struct to remove crash.
4178         * sheets/Makefile.am (sheet_in_files): 
4179         * shapes/Makefile.am: 
4180         * sheets/ChemEng.sheet.in: 
4181         * shapes/ChemEng/Makefile.am: 
4182         * configure.in: 
4183         New sheet from "Federico Zenith" <zenith@chemeng.ntnu.no>:
4184         Chemical engineering shapes.
4185         
4186         * app/Makefile.am (run_dia.sh$(EXEEXT)): Changed $* to $@ to allow
4187         multiple arguments when using devel script.
4189         * app/display.c (new_display): 
4190         * app/dia-props.c: 
4191         * lib/diagramdata.c (new_diagram_data): 
4192         * lib/diagramdata.h: 
4193         * app/preferences.h: 
4194         * app/preferences.c: 
4195         * app/grid.c: 
4196         * app/diagram.c: 
4197         * lib/diagramdata.c (new_diagram_data): Patch from Peter Poulsen
4198         <peter_poulsen@stofanet.dk>: Add hexagonal grid!
4200         * HACKING: 
4201         * doc/pl/authors.xml: 
4202         * doc/en/authors.xml: 
4203         * lib/object_defaults.c (dia_object_defaults_save): 
4204         * readme.win32 (BTW): 
4205         * lib/persistence.c (persistence_save): 
4206         * app/load_save.c (diagram_data_write_doc): 
4207         * app/commands.c (help_about_callback): 
4208         * README: Fix links to home page.
4210         * lib/font.c: 
4211         * app/load_save.c (diagram_data_load): 
4212         * lib/prop_text.c (stringprop_load): Avoid NULL strings when
4213         loading, and guard against them when fonting.
4215         * lib/diarenderer.c (draw_rounded_polyline): Patch from
4216         anthonym@overture.com:  Make limited rounding a corner-specific
4217         rendering-only thing.
4219 2004-06-30  Lars Clausen  <lars@raeder.dk>
4221         * lib/font.c (dia_font_build_layout): Return to 0.93.1 font size
4222         adjustment: If you can't fix it, at least don't change it.
4224         * objects/SADT/arrow.c (sadtarrow_draw): Use new rounded arrow
4225         code instead of individual code in here.
4227 2004-06-29  Lars Clausen  <lars@raeder.dk>
4229         * objects/UML/association.c: Patch from Kiran
4230         Kumar Immidi <kimmidi@novell.com>:  Fix bounding box for line end
4231         text. 
4233         * lib/geometry.c: 
4234         * lib/geometry.h: 
4235         * lib/diarenderer.c (draw_rounded_polyline): 
4236         * objects/standard/polyline.c (polyline_draw): 
4237         * objects/standard/zigzagline.c (zigzagline_draw): 
4238         Patch from anthonym@overture.com:  Add rounded polylines.
4240 2004-06-27  Lars Clausen  <lars@raeder.dk>
4242         * lib/font.c (dia_font_new_from_style): Initialize legacy name.
4244         * lib/widgets.c (dia_font_selector_get_family_from_name): Don't
4245         free family list before taking out the pointer we need. Also set
4246         the entry_nr correctly so we get the menu set up right.
4248 2004-06-23  Lars Clausen  <lars@raeder.dk>
4250         * lib/widgets.c (dia_toggle_button_new_with_images): Sink the
4251         images at the right place.
4253         * objects/Istar/actor.c
4254         * objects/Istar/goal.c
4255         * objects/Istar/istar.c
4256         * objects/Istar/istar.h
4257         * objects/Istar/link.c
4258         * objects/Istar/other.c
4259         * objects/Jackson/domain.c
4260         * objects/Jackson/jackson.c
4261         * objects/Jackson/jackson.h
4262         * objects/Jackson/phenomenon.c
4263         * objects/Jackson/requirement.c
4264         * objects/KAOS/goal.c
4265         * objects/KAOS/kaos.c
4266         * objects/KAOS/kaos.h
4267         * objects/KAOS/metaandorrel.c
4268         * objects/KAOS/metabinrel.c
4269         * objects/KAOS/other.c: Patch from Patch from Christophe Ponsard
4270         <cp@cetic.be>: Fix instability issues caused by not returning NULL
4271         in *_move_handle and *_move.  Also improved the headers with
4272         correct (c) information.
4274 2004-06-22  Lars Clausen  <lars@raeder.dk>
4276         * objects/KAOS/goal.c:
4277         * objects/KAOS/other.c:
4278         * objects/Istar/actor.c:
4279         * objects/Istar/goal.c:
4280         * objects/Istar/other.c:
4281         * objects/Jackson/domain.c:
4282         * objects/Jackson/phenomenon.c: Patch from Christophe Ponsard
4283         <cp@cetic.be>: Fix resize issues.
4285         * app/filedlg.c (file_dialog_hide): Patch from Kiran
4286         Kumar Immidi <kimmidi@novell.com>: Check for null when removing
4287         related dialog. #129520.
4289         * app/dia-props.c (diagram_properties_show): Patch from Kiran
4290         Kumar Immidi <kimmidi@novell.com>: Make sure properties dialog is
4291         a child of its diagram. #129520.
4293         * objects/UML/association.c (association_load): Patch from Kiran
4294         Kumar Immidi <kimmidi@novell.com>: Update positions properly for
4295         text placement. #118313.
4297 2004-06-17  Lars Clausen  <lars@raeder.dk>
4299         * objects/KAOS/Makefile.am: Add pixmaps/goal.xpm to EXTRA_DIST
4301         * Makefile.am: Make THANKS only be generated by maintainers.
4303         * doc/pl/Makefile.am: Removed usage+objects+basic.xml from
4304         Makefile, too.
4306         * configure.in: Added three missing Makefiles.
4308         * app/diagram.[ch]: 
4309         * app/filedlg.c:
4310         Patch from shuveb@yahoo.com (Shuveb Hussain): Remove
4311         diagram-related (save) dialog when closing diagram.  To be
4312         extended to other dialogs.
4314         * doc/pl/dia.xml: Removed reference to objects-basic. (#144527)
4316         * samples/Istar.dia:
4317         * samples/Jackson.dia:
4318         * samples/KAOS.dia:
4319         * sheets/Istar.sheet.in:
4320         * sheets/Jackson.sheet.in:
4321         * sheets/KAOS.sheet.in:
4322         * sheets/Istar/*:
4323         * sheets/Jackson/*:
4324         * sheets/KAOS/*:
4325         * objects/Istar/*:
4326         * objects/Jackson/*:
4327         * objects/KAOS/*:
4328         * configure.in: 
4329         * objects/Makefile.am (SUBDIRS): 
4330         * sheets/Makefile.am (SUBDIRS): 
4331         * samples/Makefile.am: Additions from Christophe Ponsard
4332         <cp@cetic.be>: Jackson, I* and KAOS diagram support.  Needs a bit
4333         of hacking still.
4335 2004-06-12  Lars Clausen  <lars@raeder.dk>
4337         * lib/properties.h: 
4338         * lib/prop_geomtypes.[ch]: Preparation for selectable units.
4340         * lib/font.h: Toning down comments a bit:)
4342         * lib/font.c (dia_font_build_layout): Playing around with DPI 
4344         * objects/UML/association.c (association_load): Avoid crashes on
4345         strcmp with NULL.
4347         * objects/UML/association.c: Patch from kimmidi@novell.com:
4348         Improve placement of labels when vertical.  Part fix of #118313
4350         * lib/object.c (dia_object_is_selected): Grouped objects are not
4351         selected, only the group itself.  Thus, don't crash when grouping
4352         beziers. #143681
4354         * objects/UML/association.c: Patch from kimmidi@novell.com:  Agree
4355         on how to represent empty strings.  Fixes #143639.
4357         * lib/object.c (dia_object_is_selected): Added comment answer.
4359 2004-06-12  Hans Breuer  <hans@breuer.org>
4361         * lib/diagramdata.c lib/object.c : deal with grouped objects
4362         not knowing their parent_layer, i.e. avoid crashing in 
4363         dia_object_is_selected() via group_draw() [ Triggered by
4364         playing with the Visio generated svg from bug #143455 ]
4366         * plug-ins/python/diasvg_import.py : started to implement
4367         transformation="translate(...)" and <style/> handling. Also
4368         use some other completely bogus values for em/ex scaling
4369         
4370 2004-06-08  Lars Clausen  <lars@raeder.dk>
4372         * plug-ins/cairo/.cvsignore: CVS-ignore generated makefiles.
4374 2004-06-07  Lars Clausen  <lars@raeder.dk>
4376         * app/layer_dialog.c (layer_dialog_set_diagram): 
4377         * app/display.c: Layer widget crash more properly dealt with in
4378         layer dialog code.
4379         
4380         * app/display.c (ddisplay_flush): Fixed crash when closing:  Layer
4381         widget deselect was called during destroy, but called
4382         ddisplay_flush, leading to a new display timeout after renderer
4383         was dead.
4385         * lib/widgets.c (dia_toggle_button_destroy): 
4386         * app/recent_files.c (recent_file_menuitem_create): 
4387         * lib/persistence.c (persistence_save_list): 
4388         * app/commands.c (edit_delete_callback): 
4389         * lib/object_defaults.c (dia_object_defaults_save): 
4390         * lib/parent.c (parent_list_affected_hierarchy): Killed leaks
4391         (#142669)
4392         
4393         * lib/widgets.c (dia_toggle_button_new_with_images): Remove
4394         debugging info.
4396         * lib/diagramdata.c (new_layer): Initialize connectibility.
4398         * app/display.c (ddisplay_obj_render): 
4399         * app/diagram.c (diagram_find_closest_connectionpoint): Take
4400         connectibility into account.
4402         * app/layer_dialog.h (struct _DiaLayerWidget): 
4403         * app/layer_dialog.c:
4404         Connectible toggle updates, now works fairly well.
4406         * app/select.c (select_transitive_callback): Make sure we're only
4407         selecting in the same layer.
4409 2004-06-04  Lars Clausen  <lars@raeder.dk>
4411         * app/pixmaps/Makefile.am: Also install connectable images.
4412         
4413         * app/layer_dialog.c (dia_layer_update_from_layer): Initially set
4414         layer toggles from layer itself.  Also update diagram correctly
4415         for visibility.  Still need updates for connectivity behaviour.
4417 2004-06-03  Hans Breuer  <hans@breuer.org>
4419         * plug-ins/wpg/wpg.c(draw_image) : take rowstride into account
4421         * lib/diagdkrenderer.c(set_linejoin) : actually set
4422         join_style not cap_style
4423         (set_dashes): with the correct number of dashes
4425 2004-06-03  Lars Clausen  <lars@raeder.dk>
4427         * app/modify_tool.c (click_select_object): 
4428         * lib/text.c (text_set_cursor): 
4429         * app/disp_callbacks.c (ddisplay_canvas_events): Turn off text stuff.
4431 2004-05-31  Hans Breuer  <hans@breuer.org>
4433         * lib/object_defaults.c : don't 'failed to load external 
4434         entity "NULL"' when the defaults file does not exist, 
4435         bug #108764 [again: somehow this got lost]
4437         * app/paginate_gdiprint.cpp : don guess the WMF export 
4438         filter used for printing but find it by unique name.
4439         Also update for export_func renaming
4440         * plug-ins/wmf/wmf.cpp plug-ins/cairo/diacairo.c
4441         provide some unique names
4443         * app/commands.c app/disp_callbacks.c app/paginate_psprint.c 
4444           app/select.c : fix bug #140789 by always checking if there
4445         still is an active diagram before accessing it
4447         * app/defaults.c app/properties.c : user visible string should 
4448         not read DiaObject but stay as "Object defaults/properties"
4450         * app/app_procs.c : reduce the hack to pass --size to the
4451         export via user_data to the only filter supporting it. Other
4452         filters would crash on it or do worse ;(
4454         * plug-ins/wpg/wpg.c : not every 'Object' is a DiaObject ...
4456 2004-05-31  Lars Clausen  <lars@raeder.dk>
4458         * lib/widgets.h: 
4459         * lib/widgets.c: Use GtkType rather than guint for
4460         dia_size_selector_get_type. 
4462 2004-05-29  Lars Clausen  <lars@raeder.dk>
4464         * app/diapsrenderer.c (fill_bezier): Use even-odd winding rule so
4465         that it matches the screen output for selfoverlapping polygons and
4466         beziers. 
4468 2004-05-28  Hans Breuer  <hans@breuer.org>
4470         * app/load_save.c : ignore empty groups on load and don't
4471         write empty groups while saving
4472         * lib/group.h (group_update_data): there is no first object
4473         in empty groups and they probably don't need an update at 
4474         all. Maybe the shold just not exist ?
4476         * plug-ins/cairo/diacairo.c : fixed arc drawing, right aligned
4477         text positioning as well as drawing of images with alpha
4479         * plug-ins/wmf/wmf.cpp : include windows.h if eiher
4480         HAVE_WINDOWS_H or G_OS_WIN32 is defined
4482 2004-05-28  Lars Clausen  <lars@raeder.dk>
4484         * app/pixmaps/Makefile.am (imagedir): 
4485         * app/pixmaps/visible.png:
4486         * app/pixmaps/visible-empty.png: New images for the visibility
4487         button in the layer dialog.
4489         * lib/widgets.c (dia_toggle_button_new_with_images): Remove even
4490         more border around the button.  Still some left when hovering the
4491         mouse or selecting, and the grey background is annoying.
4493         * app/layer_dialog.c (dia_layer_widget_init): Use real buttons for
4494         visibility connector.
4496 2004-05-26  Lars Clausen  <lars@raeder.dk>
4498         * configure.in (DB2MAN): Better check for db2man docbook place.
4499         Need something even better.
4501         * doc/en/Makefile.am (dia.1): Conditional on having DB2MAN.
4503         * lib/widgets.c (dia_toggle_button_new_with_images): Remove
4504         extraeneous borders.
4506         * dia_logo.png:
4507         * dia_gnome_icon.png:
4508         * samples/render-test.dia: Rendering test from Hans.
4510 2004-05-24  Hans Breuer  <hans@breuer.org>
4512         * lib/filter.h : renamed DiaExportFilter::export to
4513         _DiaExportFilter::export_func (should not use c++ 
4514         keywords (g++ specifc ?) in headers. Same for import
4515         out of pure symmetry reasons
4516         * plug-ins/shape/shape-export.c plug-ins/python/diamodule.c
4517           app/diagram.c app/filedlg.c : reflect functions renaming
4519         * plug-ins/wmf/Makefile.am : finally compile the wmf plug-in
4520         under *NIX, too. [If you want something done, do it yourself ;-]
4521         * plug-ins/wmf/wmf_gdi.[hc] : some more stuff to catch up
4522         with wmf.cpp's GDI usage
4523         * plug-ins/wmf/wmf.cpp : compile even without HAVE_WINDOWS_H,
4524         [For the moment it does not much more than compiling, i.e. 
4525         the produced WMF files are invalid, if not created on windoze.]
4527         * configure.in : check for C++ to compile plug-in/wmf
4528         
4529         * objects/GRAFCET/boolequation.c : looks like fixing 
4530         another leak (untested)
4532 2004-05-23  Hans Breuer  <hans@breuer.org>
4534         * acinclude.m4 : another attempt to fix 
4535         bug #142032 (still not sure it's the right one,
4536         but works for me(tm), which the other does not ;)
4537         
4538         * plug-ins/cairo/Makefile.am
4539           plug-ins/Makefile.am 
4540           configure.in : support building the new cairo
4541         plug-in, if given --with-cairo and the cairo
4542         packages are found, see http://cairographics.org
4543         and also http://hans.breuer.org/dia/dia-cairo.htm
4545         * plug-ins/cairo/diacairo.c : make it compile
4546         with DEBUG_CAIRO defined, too.
4548 2004-05-23  Hans Breuer  <hans@breuer.org>
4550         * plug-ins/cairo/Makefile.am : initial attempt
4552         * plug-ins/cairo/diacairo.c : a new exporter based on
4553         Cairo http://cairographics.org rendering api. Currently
4554         it just can export PNG and PS but one day it might get
4555         PDF and more almost for free. [It is not yet included
4556         in the *NIX build system due to lack of auto* magic.]
4558         * plug-ins/pixbuf/pixbuf.c : always register the export
4559         filter part. If the user does not want it it can be 
4560         disabled by File/Plugins or explicit selected the other
4561         one in the Export Formats List
4563 2004-05-23  Hans Breuer  <hans@breuer.org>
4565         * lib/dia_dirs.c : #include "message.h"
4566           lib/widgets.c : #include "persistence.h"
4567           lib/widgets.c(dia_font_selector_init) : still not C99
4568           lib/persitence.h : removed unimplemented prototype
4569           lib/persitence.c(persistence_load_list) : still not C99
4570           app/create_object.c : #include "highlight.h"
4571           app/layer_dialog.c : #include "widgets.h"
4572           app/modify_tool.c : prototype functions before usage
4573           lib/object.c : if there is G_END_DECLS there _must_ be G_BEGIN_DECLS
4574         [otherwise one will have a hard time to make C++ compile ;]
4575           lib/dia_dirs.c : #include "message.h"
4576           lib/font.c : #include <gtk/gtk.h> /* just for gtk_get_default_language() */
4577           lib/
4579         * plug-ins/xfig/xfig-import.c : dont initialize an int with
4580         a string pointer
4582         * lib/dia_image.[hc](dia_image_rgba_data) : make it work
4583         as documented, i.e. _not_ copying. Plugs a memory leak in
4584         lib/dialibartrenderer.c
4586         * lib/diarenderer.c(*_rounded_rect) : renamed parameter rounding
4587         to radius to more of a clue what it is representing
4589         * */makefile.msc lib/libdia.def : updated
4591         ChangeLog : fixed some date copy&paste bug
4593 2004-05-21  Lars Clausen <lars@raeder.dk>
4595         * NEWS: Release tag.
4597         * config.h.win32: Now 0.93+cvs
4599         * RELEASE-PROCESS: Update with new info about release branches.
4600         
4601         * Many files:  Moved devel branch back into main trunk.  Should
4602         have been done in the opposite way, with release in a branch.  
4603         
4604 2004-05-20  Hans Breuer  <hans@breuer.org>
4606         * acinclude.m4 : disable setting of PYTHON_PREFIX
4607         and PYTHON_EXEC_PREFIX from prefix and exec_prefix
4608         as workaround for bug #142032 (the real fix would 
4609         involve some auto* knowledge which I don't have
4610         either;)
4611         
4612         * plug-ins/python/Makefile.am : more python 
4613         plug-ins to be installed (especially svg import,
4614         but also 'simple scale' should be useable 
4615         sometimes)
4616         
4617         * plug-ins/python/scascale.py : update display
4618         after modifying selected objects
4619         
4620         * plug-ins/python/diasvg_import.py : initialize
4621         stroke to none
4622         
4623 2004-05-18  Lars Clausen  <lars@raeder.dk>
4625         * app/diagram_tree.c (select_node): Use
4626         diagram_remove_all_selected to kill selected list.
4628         * lib/font.c: Set language when using a different context.
4630         * plug-ins/svg/svg-import.c: Changed isdigit to g_ascii_isdigit
4631         and removed ctype include (#142661).
4633         * lib/paper.c (get_default_paper): Changed isalnum to
4634         g_ascii_isalnum and removed ctype include. (#142661)
4636         * objects/custom/shape_info.c: 
4637         * lib/dia_svg.c: 
4638         * app/diaunitspinner.c: Removed unrequired ctype.h include. (#142661)
4640 2004-05-17  Hans Breuer  <hans@breuer.org>
4642         * lib/object_defaults.c : don't 'failed to load external 
4643         entity "NULL"' when the defaults file does not exist, 
4644         bug #108764
4646         * lib/widgets.c : fixed possible menu leak
4647         * lib/dialinechooser.c lib/diaarrowchooser.c : finally
4648         avoid finalization of floating references, bug #142307
4650 2004-05-15  Lars Clausen  <lars@raeder.dk>
4652         * plug-ins/xfig/xfig-import.c: Handle default fonts and illegal
4653         fonts better (#138655)
4654         
4655         * doc/pl/Makefile.am (EXTRA_DIST): Also include all xml files here.
4657         * doc/en/Makefile.am (EXTRA_DIST): Including all required files in
4658         dist, xml, dbk and man.  Also the sub-xml files. (#142098)
4660         * Makefile.am (CLEANFILES): 
4661         * sheets/Makefile.am (EXTRA_DIST): Not distributing the
4662         translation-reports, they are generated automagically.  THANKS
4663         file not considered locally generated, so is not locally
4664         cleaned. (#133735) 
4666         * lib/widgets.[ch]: Changing dia_arrow_selector to be a gobject.
4668         * lib/diaarrowchooser.c: 
4669         * lib/prop_attr.c: Fixing naming for arrowselector.
4671         * objects/UML/object.c (objet_type): Oops, little too aggressive
4672         with the DiaObject thing here:)
4674         * objects/custom/shape_info.c (parse_svg_node): Use
4675         g_ascii_isdigit instead of isdigit.
4677         * app/diaunitspinner.c (dia_unit_spinner_update): 
4678         * lib/dia_svg.c (dia_svg_parse_style): Using g_ascii_isspace
4679         instead of isspace avoids char subscript issues (#142467).
4681         * lib/persistence.c (persistence_get_string): Fixed 0/NULL/FALSE
4682         return value conflict.
4684         * app/display.c (ddisplay_update_handler): Fixed 0/FALSE return
4685         value conflict.  Also improved signature. (#142466)
4687         * app/load_save.c (diagram_data_load): Don't overwrite the list in
4688         the layer, but instead free the returned list (#142480)
4690         * app/pixmaps/Makefile.am (IMAGES): Added png's to be installed
4691         for the grid widget.
4693         * doc/en/Makefile.am (dia.1): Make proper rule for making dia.1
4695         * configure.in (DB2MAN): Currently just check for two known
4696         positions for the docbook xsl.  Don't know a generic way to find
4697         this info.  Ought to add an option for it, but then it's really
4698         only required for maintainers, I think.  Maybe.
4700         * app/display.c (update_snap_grid_status): Remove nasty image
4701         toggling code not require for grid toggle button anymore. (#142475)
4703         * app/interface.c (create_display_shell): Use
4704         dia_toggle_button_new_with_images to create grid toggle button.
4705         Much nicer. (#142475)
4707         * app/menus.c (menus_initialize_updatable_items): Free the string
4708         along with the GString. (#142475)
4710         * lib/intl.c (free_alias_table): Free hash table entries in a
4711         proper way, avoiding duplicate frees. (#142475)
4713         * lib/object_defaults.c (_obj_store): Only free layer_name if it's
4714         not put in the hash (avoid reading freed memory). (#142476)
4716         * lib/widgets.c (dia_font_selector_set_styles): Stop leaking
4717         faces. (#142484)
4718         (dia_font_selector_get_family_from_name): Stop leaking
4719         families. (#142482) 
4721 2004-05-14  Lars Clausen  <lars@raeder.dk>
4723         * Transfer of fixes from release branch.  Not the prettiest way to
4724         do it, this should be done during release, not afterwards.
4726         Tomasz KÅ‚oczko <kloczek@pld.org.pl>:
4728         * acinclude.m4: minor fixes (added missing [] quotation).
4730         Lars Clausen  <lars@raeder.dk>:
4732         * app/interface.c (toolbox_delete): 
4733         * app/app_procs.[ch] (app_exit): Stop the delete event if the user
4734         cancels quit due to modified diagrams.
4736         Samúel Jón Gunnarsson  <sammi@techattack.nu>:
4738         * is.po: Added "is" to ALL_LINGUAS.
4740         Lars Clausen  <lars@raeder.dk>:
4742         * dia.spec: Updated as per mail from Zhang Lin-bo <zlb@lsec.cc.ac.cn>
4744         Hans Breuer  <hans@breuer.org>:
4746         * lib/makefile.msc : removed -DGTK_DISABLE_DEPRECATED; the 
4747         burden should be shared and not be win32 only ;) [this time 
4748         build was broken by adding GtkType to widget.h]
4750         * objects/standard/box.c objects/standard/ellipse.c :
4751         for code clarification compare (obj->aspect != FREE_ASPECT)
4752         and not (obj->aspect); no binary effect.
4754         * app/paginate_psprint.c : don't leak printcmd
4756         * objects/standard/box.c objects/standard/ellipse.c : fix gccisms :
4757         standard C requires variables to be declared at the beginning of 
4758         a block, also there is no fabsf() with msvc
4759         
4760         * app/win32print.[ch] : make win32_printer_close() return an
4761         error code, it's used as pclose replacement
4763         Lars Clausen  <lars@raeder.dk>:
4765         * RELEASE-PROCESS: Mention PATCH keyword in release process.
4767 2004-05-06  Lars Clausen  <lars@raeder.dk>
4769         * lib/widgets.[ch]: Utility function to make a widget with two
4770         images (selected and non-selected).
4772         * lib/diagramdata.h: Renamed selectable to connectable.
4773         Selectable will come later.
4775         * configure.in: 
4776         * app/pixmaps/Makefile.am (imagedir): 
4777         * app/pixmaps/connectable.png:
4778         * app/pixmaps/connectable-empty.png: New images for the
4779         selectability widget.  Proper installation, too.
4781         * app/layer_dialog.[ch]: Adding new button showing connectability
4782         status.  Much cleaner way of doing the button, but some problems
4783         with the item getting selected
4785         * lib/widgets.h: Reminder of how to install images for use by
4786         dia_get_image_from_file.
4788 2004-05-05  Lars Clausen  <lars@raeder.dk>
4790         * objects/network/Makefile.am: 
4791         * objects/network/pixmaps/radiocell.xpm: 
4792         * objects/network/pixmaps/basestation.xpm: 
4793         * objects/network/network.c: 
4794         * objects/network/basestation.c: 
4795         * objects/network/radiocell.c: 
4796         Patch from W. Borgert <debacle@debian.org>: Radio cell and base
4797         station objects.
4799         * lib/arrows.[ch]: Patch from Anthony <anthonym@overture.com>:
4800         Backslash arrow head. 
4802         * app/pagesetup.c (pagesetup_respond): Do not free ps twice.
4803         Notify takes care.  Should maybe use that more.
4805         * lib/diagramdata.[ch]: 
4806         * app/filedlg.c (file_export_ok_callback): 
4807         * app/diagram.c (diagram_finalize): DiagramData now a GObject.
4809         * app/dia-props.c (diagram_properties_respond): 
4810         * app/diagram.c (diagram_set_modified): 
4811         * app/undo.c: 
4812         * app/disp_callbacks.c: 
4813         * app/commands.c: 
4814         * app/load_save.c (diagram_save): 
4815         Better handling of undo and modified status -- only diagram
4816         properties and page setup explicitly set modified status, all
4817         other important changes should be done through the undo stack
4818         now.
4820 2004-05-04  Lars Clausen  <lars@raeder.dk>
4822         * app/app_procs.c (app_init): Consistently open a new diagram if
4823         none specified, with standard name Diagram1.dia.
4825         * app/layer_dialog.c: 
4826         * app/diagram.c (diagram_finalize): 
4827         * app/commands.c (dialogs_layers_callback): 
4828         * app/filedlg.c (file_export_ok_callback): 
4829         * app/app_procs.c (app_exit): 
4830         * app/display.c (display_set_active): 
4831         * app/interface.c (dia_dnd_file_drag_data_received): 
4832         * app/recent_files.c: 
4833         Undone attempt at unifying the multi-diagram windows (like
4834         layers).  It broke the layers and didn't make much sense for the
4835         diagram properties dialog anyway.
4837         * lib/group.c: 
4838         * lib/diatypes.h: 
4839         * lib/diagramdata.c: 
4840         * lib/object.h: 
4841         * lib/object.c: Undone attempts at GObject'ifying DiaObject -- too
4842         many subclasses have to be fixed.  Fixed remaining
4843         Object/ObjectType renaming issues.
4845 2004-05-02  Lars Clausen  <lars@raeder.dk>
4847         * lib/object.[ch]: Making DiaObject a GObject.  Now can I avoid
4848           having to make all the children objects conform to
4849           GObject style at once?  Warning!  Does not compile right now.
4851         * many, many files: Rename Object to DiaObject in preparation for
4852           making it a GObject.
4853         
4854         * app/diagram.[ch]: Turn diagram into a real GObject.
4856         * app/pagesetup.c: 
4857         * app/filedlg.c: Correctly ref and unref diagram. 
4859         * lib/diagramdata.h: Starting to turn it into a GObject as well.
4861 2004-05-02  Lars Clausen  <lars@raeder.dk>
4863         * lib/object.[ch]: Starting to convert Object to DiaObject, son of
4864         GObject. 
4866         * app/dia-props.c: Undo the attempt at making it really
4867         multi-diagram, now going for a one-diagram dialog.
4869 2004-04-30  Lars Clausen  <lars@raeder.dk>
4871         * app/undo.c: Undoing broken undo stuff for diagram properties and
4872         page setup.  Shouldn't be mixed into undo at all.
4874         * app/render_gdk.c (draw_pixel_line): Use the dash-setting
4875         function to avoid in particular the grid crawling.
4877         * lib/diagdkrenderer.[ch] (dia_gdk_renderer_set_dashes): Function
4878         to allow aligning dashes, so they don't crawl.
4880 2004-04-28  Lars Clausen  <lars@raeder.dk>
4882         * app/Makefile.am: New files diacanvas.[ch]
4884         * app/interface.c (create_display_shell): Use new diacanvas that
4885         allows placing widgets on canvas, for text edit.
4887         * lib/object.h: 
4888         Early work towards rotation.  No implementation yet.
4890         * app/layer_dialog.c (undo_layer): 
4891         * objects/network/bus.c (bus_create_change): 
4892         * objects/standard/box.c (aspect_create_change): 
4893         * objects/standard/ellipse.c (aspect_create_change): 
4894         Use g_new0 for change struct.
4896         * app/undo.c (diagram_change_apply_or_revert): 
4897         Support for undo of diagram properties and page setup.
4899         * app/disp_callbacks.c (ddisplay_canvas_events): 
4900         * lib/text.h: 
4901         * lib/diagramdata.h: 
4902         * app/modify_tool.c (click_select_object): 
4903         * lib/text.c (text_register_editable): 
4904         Starting work on new text editing model.  Guarded by #ifdef so
4905         far. 
4907 2004-04-07  Lars Clausen  <lars@raeder.dk>
4909         * app/recent_files.c (open_recent_file_callback): 
4910         * app/interface.c (origin_button_press): 
4911         * app/filedlg.c (file_open_ok_callback): 
4912         * app/display.c: 
4913         * app/diagram.[ch]: 
4914         * app/commands.c (dialogs_layers_callback): Using new
4915         diagram_set_current() function to ensure auxilliary windows are
4916         updated. 
4918         * app/layer_dialog.c: Trying to unify with dia-props.  Diagram
4919         menu now borken.  *sniff*
4921         * app/dia-props.c: Diagram properties window attempted
4922         persistentified.  Trying to make more like layer dialog (since it
4923         already changes when the diagram changes), but some things still
4924         borken. 
4926 2004-04-06  Lars Clausen  <lars@raeder.dk>
4928         * lib/dialinechooser.[ch] (dia_line_chooser_set_line_style): 
4929         * lib/attributes.c (attributes_set_default_line_style): 
4930         * app/interface.c (create_lineprops_area): 
4931         Make line style persistent as well.  Added function to directly
4932         set the style and dashlength of a dialinechooser. 
4934 2004-04-03  Lars Clausen  <lars@raeder.dk>
4936         * objects/standard/ellipse.c (ellipse_move_handle, ellipse_copy):
4937         Copy the ellipse extra handle correctly.
4939         * objects/standard/box.c (box_move_handle): Move definitions
4940         according to bug #138925.
4942 2004-04-02  Lars Clausen  <lars@raeder.dk>
4944         * app/recent_files.c: Use absolute name for recent files list.
4946         * lib/attributes.c: Set start and end arrow types, correctly.
4948         * lib/widgets.c (dia_arrow_selector_set_arrow): Use new function
4949         to get arrow index.
4951         * lib/diaarrowchooser.[ch]: Support for setting arrow info.
4953         * app/interface.c (create_lineprops_area): Set persistently stored
4954         arrow info.
4956         * lib/arrows.[ch]: New function to get arrow index (in arrow_types)
4957         from arrow type.
4959         * lib/dia_dirs.c: dia_get_absolute_path now creates a canonical
4960         path (i.e. without '.' or '..').  Not tuned for Win32 yet.
4962         * plug-ins/xfig/xfig-import.c: Redone ordering of import to comply
4963         with what xfig does.  Text now converted from latin-1 to utf-8
4964         (latin-1, since that's what xfig seems to use.  Would like to see
4965         examples of non-latin-1 figs).  String case problems fixed.
4967 2004-04-01  Lars Clausen  <lars@raeder.dk>
4969         * lib/attributes.c: 
4970         * app/interface.c: Default arrows now stored persistently, too.
4972         * lib/arrows.[ch]: New function to get arrow type from name.
4974         * app/color_area.c (color_area_create): 
4975         * lib/attributes.c: 
4976         * app/linewidth_area.c: Also persistent colors and line width.
4977         That was easy.  Arrows and line style will take a bit more work,
4978         but not much.
4980 2004-04-01  Lars Clausen  <lars@raeder.dk>
4982         * app/preferences.c:   All preferences are now
4983         handled by persistence, old prefs load and store code is gone.
4985         * lib/persistence.[ch]: Added string and color persistents.  This is
4986         a different string from the one used in the printer dialog, that
4987         one has a GtkEntry attached -- may want to make that one an
4988         encapsulation of this one or something.
4990 2004-03-31  Lars Clausen  <lars@raeder.dk>
4992         * app/app_procs.c: Do persistence before prefs.  Prefs are to be
4993         phased out anyway.
4994         
4995         * lib/persistence.[ch]: 
4996         * app/preferences.c: Adding persistence for integers, reals,
4997         booleans.  Fixed stupid list bug.  Test persistence for prefs.
4999 2004-03-30  Lars Clausen  <lars@raeder.dk>
5001         * app/recent_files.c: 
5002         Debugging of deallocation.
5003         
5004         * lib/widgets.c: 
5005         Font menu now uses persistence.  Ordering needs fixing, or it must
5006         be sorted.
5008         * lib/libdia.def: 
5009         * lib/Makefile.am (libdia_la_SOURCES): 
5010         * app/Makefile.am (dia_core_files): 
5011         * app/persistence.[ch]: 
5012         * lib/persistence.[ch]: Moved to lib as widgets need it.  Also a
5013         number of fixes, including multiple entries now being read
5014         properly.  Still some oddity about the persistent list having the
5015         role as first entry (which makes the font menu crash after a few
5016         iterations). 
5018 2004-03-26  Lars Clausen  <lars@raeder.dk>
5020         * app/persistence.c:
5021         * app/recent_files.[ch]: Redoing the recent-files list using
5022         persistence, reducing code by about 50%.  Still a problem when
5023         selecting an item from the menu -- possibly it doesn't like the
5024         menu being destroyed while in the callback?
5026 2004-03-25  Lars Clausen  <lars@raeder.dk>
5028         * app/persistence.c (persistence_load_string): Missing semicolon?!?
5030 2004-03-24  Lars Clausen  <lars@raeder.dk>
5032         * RELEASE-PROCESS: 
5034         * app/persistence.[ch]: 
5035         * app/paginate_psprint.c (diagram_print_ps): New type of data can
5036         be stored persistently:  Strings.  Only the printer command/file
5037         go in here now, but things like creator, organization, diagram
5038         comments etc could also be handled this way.
5040         * objects/standard/beziergon.c (beziergon_draw): Avoid control
5041         lines when the object is not selected.
5043 2004-03-23  Lars Clausen  <lars@raeder.dk>
5045         * lib/connectionpoint.h: 
5046         * app/load_save.c: Allow connection points to have names, and
5047         handle that in load/store.
5049         * lib/dialibartrenderer.c: Better highlighting for text.
5051         * lib/diagdkrenderer.h (struct _DiaGdkRenderer): 
5052         * lib/diagdkrenderer.c: Better highlighting for all, using same
5053         principles as libart highlighter.
5055 2004-03-22  Lars Clausen  <lars@raeder.dk>
5057         * lib/dialibartrenderer.[ch]: 
5058         * lib/diagdkrenderer.c: 
5059         * lib/object.h: 
5060         * app/object_ops.c:
5061         * app/diagram.[ch]:
5062         * app/display.[ch]:
5063         * app/Makefile.am: 
5064         * app/modify_tool.c: 
5065         * app/create_object.c: 
5066         * app/highlight.[ch]: 
5067         Added simple object highlighting.  In GDK rendering, highlights
5068         the bbox, in libart highlights the outline of the object (except
5069         for texts).
5071 2004-03-22  Lars Clausen  <lars@raeder.dk>
5073         * RELEASE-PROCESS: Added info on how to do a branch for
5074         development during release process.
5076 2004-03-20  Lars Clausen  <lars@raeder.dk>
5078         * RELEASE-PROCESS: Mention PATCH keyword in release process.
5080 2004-03-19  Lars Clausen  <lars@raeder.dk>
5082         * xmldocs.make: Fixed apparent uninstall error.
5084         * config.h.win32: 
5085         * doc/en/dia-manual.xml: 
5086         * doc/pl/dia-manual.xml: 
5087         * dia.spec: 
5088         * configure.in: 
5089         * NEWS: Version 0.93-pre1.
5091         * lib/dialinechooser.[ch]: Patch from pborelli@katamail.com (paolo
5092         borelli):  Remove some deprecated stuff.
5094 2004-03-18  Lars Clausen  <lars@raeder.dk>
5096         * Makefile.am: Try better uninstall thing for scrollkeeper.
5098         * objects/ER/entity.c: 
5099         * lib/arrows.[ch]: Patch from Georg Lothar Thimm
5100         <MGEORG@ntu.edu.sg>: Adds new ER arrows 1 or many, 0 or many, 0 or
5101         1, 1 exactly, as well as associative ER entities.
5103 2004-03-17  Lars Clausen  <lars@raeder.dk>
5105         * Makefile.am: Make distcheck not complain about scrollkeeper
5106         problems (as per advice from James Henstridge).
5108         * doc/pl/*.{xml,sgml}: Converted SGML manuals to XML to get better
5109         standard installation.
5111         * objects/standard/ellipse.c: Better strings for object menu.
5113         * app/sheets_dialog_callbacks.c: Fixed crashes from broken caching
5114         of dialogs (shame on you, glade!)
5116         * objects/custom/custom_object.c (custom_setup_properties):
5117         Removed debugging output
5119         * app/paginate_psprint.c (diagram_print_ps): Slightly more
5120         readable printer error messages.
5122         * xmldocs.make: 
5123         * omf.make: 
5124         * doc/en/Makefile.am: 
5125         * doc/pl/Makefile.am: 
5126         New more standard way to install the XML-based manuals.  
5128 2004-03-15  Lars Clausen  <lars@raeder.dk>
5130         * objects/standard/box.c (box_move_handle): More intuitive fixed
5131         aspect behaviour.
5133         * objects/standard/ellipse.c: 
5134         * objects/standard/box.c: 
5136         * lib/widgets.[ch]:
5137         * app/layer_dialog.[ch]:
5138         Patch from Steve Langasek <vorlon@debian.org>:
5139         Fixes startup crash on Alpha (bug #137169)
5140         
5141         * objects/standard/box.c: Aspect fixing like ellipses.
5143         * app/Makefile.am (dia_core_files): Include dia-app-icons.h
5145         * lib/pixmaps/Makefile.am (imagedir): Better Makefile.am for
5146         pixmaps, now can uninstall properly.
5148         * objects/standard/ellipse.c: Patch from dooms@info.ucl.ac.be:
5149         Fixed and circle aspect ratios for ellipses.  Bug #137156, #87966,
5150         #93940. 
5151         Added object menu access.
5153 2004-03-07  Hans Breuer  <hans@breuer.org>
5155         * lib/diaarrowchooser.c lib/dialinechooser.c : #undef
5156         GTK_DISABLE_DEPRECATED (I'd rather like if these widgets
5157         would not use deprecated apis, but it's much simpler this way)
5159         * lib/makefile.msc : build the above new widgets and render_pixmap
5160         * lib/libdia.def app/dia.def app/makefile.msc : updated
5162         * app/disp_callbacks.c : fix gccisms (without being able to make much sense of 
5163         what I saw, i.e. how big is an empty array supposed to be ? ;-). 
5164         Previously it gave :
5165         disp_callbacks.c(188) : error C2059: syntax error : '}'
5166         disp_callbacks.c(191) : warning C4034: sizeof returns 0
5168         * app/interface.c : #include "dialinechooser.h"
5170         * lib/diagdkrender.c : make the !HAVE_FREETYPE case compile again
5171         [one more reason not to use it here : it's quite slow compared to
5172          the native win32 font renderer ;]
5174         * app/app_procs.c app/filedlg.c : gtk_widget_destroy does not take
5175         a GtkDialog*, removed unneeded cast
5177         * app/render_eps.c : avoid assignment warning for void* user_data
5178         not being an int 
5180 2004-03-06  Steffen Macke sdteffen@web.de>
5182         * shapes/Map/Isometric/Makefile.am: added Makfile for Isometric
5183         shapes
5185 2004-03-06  Lars Clausen  <lars@raeder.dk>
5187         * lib/arrows.h (DEFAULT_ARROW_SIZE): Downed default arrow size to
5188         0.5, as per poll.
5190         * lib/font.c: Simple cleanup system for layout cache removes any
5191         layout that hasn't been used for 10 minutes, but only during idle
5192         time. 
5194 2004-03-05  Lars Clausen  <lars@raeder.dk>
5196         * sheets/Electric.sheet.in: Added patch from padro@lsi.upc.es
5197         (lluis padro) (#130887): Extended Electric shapes with vertical
5198         versions. 
5200         * sheets/Cybernetics.sheet.in: Normalize shape descriptions (never
5201         start with "Create a" or "A", always capitalize first word).
5203         * objects/standard/ellipse.c: Patch from Grégoire Dooms
5204         <dooms@info.ucl.ac.be>: Add extra connection point in center of
5205         ellipse.  Additionally added a handle in the center, and resize is
5206         now around the center.
5208         * configure.in: 
5209         * sheets/Makefile.am (SUBDIRS): 
5210         * sheets/IsometricMap.sheet.in: 
5211         * shapes/Map/Isometric/*
5212         * shapes/Makefile.am (SUBDIRS): Added Isometric shapes.
5214 2004-03-04  Lars Clausen  <lars@raeder.dk>
5216         * lib/Makefile.am: 
5217         * lib/pixmaps/Makefile.am: 
5218         * configure.in: 
5219         Better installation handling of pixmaps.
5220         
5221         * lib/diagdkrenderer.c: 
5222         * lib/diagtkfontsel.h (struct _DiaGtkFontSelectionClass): 
5223         * lib/diagtkfontsel.c (dia_gtk_font_selection_show_available_fonts): 
5224         Constness fixes.
5226 2004-03-03  Lars Clausen  <lars@raeder.dk>
5228         * lib/diagtkfontsel.h (struct _DiaGtkFontSelection): 
5229         * lib/diagdkrenderer.c: 
5230         * lib/diasvgrenderer.c:
5231         * lib/dialibartrenderer.c:
5232         * lib/diainteractiverenderer.c: 
5233         * lib/prop_text.c (multistringprop_handle_key): 
5234         * lib/dia_dirs.c: 
5235         * lib/dia_image.c (dia_image_rgba_data): 
5236         * lib/widgets.c: 
5237         * lib/diagramdata.c (layer_set_object_list): 
5238         * lib/font.h: 
5239         * lib/font.c: 
5240         Getting rid of compile warnings.
5242         * lib/widgets.c: Handle destroy properly, i.e. unref the two extra
5243         images.  Also remove unused decls.
5245 2004-03-02  Lars Clausen  <lars@raeder.dk>
5247         * lib/widgets.h: 
5248         * lib/widgets.c (dia_size_selector_init): Add images to the size
5249         selector chain widget.  Also new function to load installed images
5250         from files (better than from included XPM, IMHO).
5252 2004-03-02  Lars Clausen  <lars@raeder.dk>
5254         * lib/libdia.def: 
5255         * lib/pixmaps/[un]broken-chain.xpm: Icons stolen from GIMP for the
5256         size selector.
5258         * lib/Makefile.am: 
5259         * lib/widgets.c (dia_size_selector_init): Work
5260         on getting proper icon onto the size selector.  Need simple image
5261         load mechanism in utils.
5263         * lib/text.c: 
5264         * app/display.[ch]:
5265         * app/disp_callbacks.c: Patch from kou@cozmixng.org: Show preedit
5266         strings, handle utf8 strlen properly.  Bug #135930.
5268 2004-03-01  Lars Clausen  <lars@raeder.dk>
5270         * shapes/Cybernetics/*:
5271         * sheets/Cybernetics.sheet.in:
5272         * sheets/Makefile.am:
5273         * shapes/Makefile.am: 
5274         * configure.in: Patch from charly.meyer@t-online.de (Thorsten
5275         Roggendorf): Cybernetic shapes (#95553).
5277 2004-03-01  Lars Clausen  <lars@raeder.dk>
5279         * app/Makefile.am: Fixed $(EXEEXT) warning from automake.
5281         * lib/diatypes.h: New type DiaSizeSelector.
5283         * lib/widgets.[ch]: New size selector widgets that selects two
5284         values (width and height, nominally) optionally linked to keep
5285         aspect ratio.
5287 2004-03-01  Hubert Figuiere  <hfiguiere@teaser.fr>
5289         * plug-ins/svg/render_svg.c (new_svg_renderer): Add DTD declaration
5290         in front of file. Bug #128600.
5292         * app/Makefile.am:
5293         * app/interface.h:
5294         * app/lineprops_area.[ch]:
5295         * lib/Makefile.am:
5296         * lib/dialinechooser.[ch]:
5297         * lib/widgets.c (dia_line_style_selector_init): use line preview 
5298         instead of text labels. This involve moving away line_chooser to lib
5299         from app.
5301         * lib/diaarrowchooser.[ch] (close_and_hide): Make static to avoid
5302         symbol conflicts.
5304         * app/Makefile.am (dia_core_files): 
5305         * app/interface.c (create_lineprops_area):
5306         * app/render_pixmap.[ch]:
5307         * lib/Makefile.am:
5308         * lib/diaarrowchooser.[ch]:
5309         * lib/libdia.def:
5310         * lib/prop_attr.c:
5311         * lib/propdialogs.c:
5312         * lib/render_pixmap.[ch]:
5313         * lib/widgets.c (dia_arrow_fill_menu): Use arrow preview instead
5314         of text labels. This involve moving away arrow_chooser to lib from
5315         app.
5317 2004-02-29  Lars Clausen  <lars@raeder.dk>
5319         * objects/UML/class.[ch]: Puny kludge to avoid GtkList objects
5320         being updated half-way through destruction.  To be removed when
5321         the lists are replaced by something better.
5323         * objects/UML/class_dialog.c: Patch from luc@handhelds.org:
5324         Accelerators for class dialog.  Bug #130995.
5325         Patch from luc@handhelds.org: Better aligning of widgets.  Bug #130994.
5327         * app/dia-props.c:
5328         * app/preferences.c:
5329         * lib/properties.c:
5330         * objects/GRAFCET/step.c:
5331         * objects/Misc/analog_clock.c:
5332         * objects/chronogram/chronoline.c:
5333         * objects/chronogram/chronoref.c:
5334         Change to american spelling (color, not colour) to ease
5335         translators job.  Note that a number of translations may need an
5336         update now.  Bug #120466.
5338 2004-02-29  Lars Clausen  <lars@raeder.dk>
5340         * plug-ins/xfig/xfig-export.c: Patch from solworth@cs.uic.edu:
5341         Better arrow handling for missing arrows.
5343         * plug-ins/metapost/render_metapost.[ch]: Patch from
5344         phred@cs.berkeley.edu (Fred Reiss): Add font faces and font
5345         size. See bug #135363.
5347         * app/app_procs.c (app_init): If non-interactive, or if
5348         --log-to-stderr used, send all messages to stderr.  This should
5349         mean that old diaconv == dia --export-to-format=FOO BAR
5351 2004-02-29  Hubert Figuiere  <hfiguiere@teaser.fr>
5353         * app/menus.c: Get rid of GNOME menus. Deprecated APIs in GNOME 2.
5355 2004-02-28  Lars Clausen  <lars@raeder.dk>
5357         * lib/text.c (text_key_event): Patch from Kouhei Sutou
5358         <kou@cozmixng.org>: Fix wrong utf8 strlen handling.
5360 2004-02-27  Lars Clausen  <lars@raeder.dk>
5362         * KNOWN_BUGS: Added info on most commonly reported bugs, with
5363         BugZilla numbers.
5364         
5365         * app/disp_callbacks.c (popup_object_menu): Unified properties
5366         entry, fixes bug #105080.
5368         * app/diagram.c (diagram_update_menu_sensitivity): 
5369         * app/menus.h (struct _UpdatableMenuItems): 
5370         * app/menus.c (menus_initialize_updatable_items): Menu items
5371         changed around, align menus flattened, properties entry ghosted,
5372         dialogs menu removed, more shortcuts added.  Closing bugs #94018,
5373         #117495, #135125.
5374         Also taking out Gnome menus for now.  They don't allow shortcuts,
5375         so what are they good for?
5377 2004-02-27  Lars Clausen  <lars@raeder.dk>
5379         * app/menus.c (display_menu_items): 
5380         * app/commands.[ch]: Added duplicate menu item from Alan Horkan
5381         (bug #95546).
5383 2004-02-24  Adam Weinberger  <adamw@FreeBSD.org>
5385         * configure.in: Added 'en_CA' (Canadian English) to ALL_LINGUAS.
5387 2004-02-23  Lars Clausen  <lars@raeder.dk>
5389         * app/app_procs.c (app_init): Comments for translators.
5391 2004-02-22  Hubert Figuiere  <hfiguiere@teaser.fr>
5393         * app/preferences.c (prefs_create_dialog): Change packing policy
5394         for widget to expand.
5396         * app/Makefile.am (run_dia.sh): Fixed a typo in wrapper that prevented
5397         running with a debugger.
5399 2004-02-19  Lars Clausen  <lars@raeder.dk>
5401         * app/undo.[ch]: Adding last-saved information to undo to allow a
5402         diagram with all changes since last save undo to be marked as
5403         nonmodified.  Still needs integration with actual undo
5404         apply/revert calls.
5406         * app/diagram.h: 
5407         * app/diagram_tree.c (diagram_tree_update): 
5408         * app/diagram.c: 
5409         * app/display.c (update_modified_status): 
5410         * plug-ins/python/pydia-diagram.c (PyDiaDiagram_GetAttr): 
5411         * app/autosave.c (autosave_check_autosave): Encapsulate modifed
5412         test. 
5414         * app/render_eps.[c]: Restructure to better handle PS vs. EPS
5415         vs. EPSI, comment out EPSI until preview is in there.
5417         * lib/render.c: 
5418         * lib/diarenderer.c: Removing debugging printfs.
5420         * app/diapsrenderer.[ch]: Preparations for proper EPSI rendering
5421         (with preview)
5423         * objects/standard/arc.c (arc_update_handles): Check to avoid
5424         crash when start and end points are the same.
5426 2004-02-19  Lars Clausen  <lars@raeder.dk>
5428         * objects/standard/bezier.c: 
5429         * objects/standard/line.c (line_load): 
5430         * objects/standard/polyline.c (polyline_load): 
5431         * objects/standard/zigzagline.c (zigzagline_load): 
5432         * objects/standard/arc.c (arc_load): 
5433         * lib/widgets.h (DEFAULT_ARROW_WIDTH): Use DEFAULT_ARROW_SIZE
5434         instead of hardcoding.
5436 2004-02-18  Hubert Figuiere  <hfiguiere@teaser.fr>
5438         * app/disp_callbacks.c (popup_object_menu): append a menu item to 
5439         display properties.
5441 2004-02-17  Hubert Figuiere  <hfiguiere@teaser.fr>
5443         * app/app_procs.c: declare rc properly with the proper #ifdef
5445 2004-02-17  Lars Clausen  <lars@raeder.dk>
5447         * plug-ins/xfig/xfig-import.c: Correct ordering of imported FIG
5448         objects (which seemingly FIG itself breaks, or else there is no
5449         ordering).
5451 2004-02-16  Lars Clausen  <lrclause@cs.uiuc.edu>
5453         * plug-ins/xfig/xfig-export.c (figLineWidth): Check for minimum
5454         width renderable in xfig.  Helps on bug #133637, but does not
5455         quite fix it -- something about depth is wrong.
5457         * plug-ins/xslt/xslt.[ch]: Patch #133913 from phenning@lanl.gov:
5458         Extern definitions for Mac compilation.
5460         * app/app_procs.c: Patch #131159 from J. H. M. Dassen
5461         (jdassen@debian.org): Include fix.
5463         * app/interface.c: Patch #130100 from luc@handhelds.org:  Make
5464         sure the initial diagram size is correct.
5466 2004-02-15  Lars Clausen  <lrclause@cs.uiuc.edu>
5468         * lib/Makefile.am (AM_CPPFLAGS): Override AM_CPPFLAGS instead of
5469         CPPFLAGS, as per automake warning.
5470         * app/Makefile.am (AM_LDFLAGS): Override AM_LDFLAGS instead of
5471         LDFLAGS, as per automake warning.
5472         (run_dia.sh): More robust creation, and more easily moved.
5474         * app/undo.c (group_objects_revert): Don't double-free the objects
5475         list.  (#129221) Call object_add_updates on grouped objects.
5476         (ungroup_objects_revert): Call object_add_updates on grouped objects.
5478         * lib/diagramdata.c: Internal
5479         documentation. 
5481         * lib/polyshape.c (polyshape_update_data): Correctly calculate
5482         directions for polyshape corners (thanks, Valgrind!)
5484         * lib/attributes.c: 
5485         * lib/prop_attr.c (arrowprop_load): Use default arrow size.
5487         * lib/arrows.h: Default arrow size defined.  After all are using
5488         this, may lower to 0.4 or so.
5490         * app/lineprops_area.[ch]: New function to set the arrow type for an
5491         arrow chooser.
5493         * app/interface.c (create_lineprops_area): Set default line to
5494         have an arrow (fairly likely to be what's wanted, plus it shows
5495         the user where arrows are set).
5497         * app/app_procs.c: #ifdef HAVE_POPT popt args to process_opt
5499 2004-02-14  Lars Clausen  <lrclause@cs.uiuc.edu>
5501         * plug-ins/metapost/render_metapost.c (draw_with_linestyle):
5502         Dotted lines should use dot_length, not dash_length.
5504 2004-02-06  Hans Breuer  <hans@breuer.org>
5506         * app/interface.c : don't use gtk_drawing_area_size() to avoid
5507         the defaut size being also the minimum size. Instead use
5508         gtk_window_set_default_size() on the display shell. Fixes #130982.
5510         [fixing #131210, but umlauts in the 'main' filename still not really 
5511          supported on systems where filesystem encoding != utf8
5512         (Problems with recent file menu and window title)]
5513         * lib/dia_xml.[hc] : add data_filename() and data_add_filename()
5514         to deal with possible differnces in filename encodings, see
5515         g_filename_<to|from>_utf8()
5516         * objects/standard/image.c : use them.
5518         * lib/widgets.c : handle possible encoding difference here, too.
5519         Also get rid of most warnings by using const and GTK casts where 
5520         appropriate; one wrong cast (probably causing a crash) was found/fixed 
5521         by this - the remaining give a hint on finally leaking FontSelectorEntry.
5523         * lib/widgets.[hc] : hide _DiaFileSelector and *Class in .c. Modified
5524         dia_file_selector_<get|set>_file to behave like the respective Gtk 
5525         functions do : encoding- and const-wise ;-)
5527 2004-02-01  Robert Sedak  <robert.sedak@sk.htnet.hr>
5529         * configure.in: Added "hr" (Croatian) to ALL_LINGUAS.
5531 2004-01-19  Hans Breuer  <hans@breuer.org>
5533         * app/app_procs.c app/diaconv : 
5534         only call bind_textdomain_codeset when available, what's good 
5535         for The Gimp (bug #131215) can't be wrong for Dia : bug #125926
5536         * config.h.win32 : define HAVE_BIND_TEXTDOMAIN_CODESET
5538 2004-01-19  Steffen Macke <sdteffen@web.de>
5540         * makefile.msc: updated for new GAIM-like installer build; sync'ed
5541         ALL_LINGUAS with configure.in
5543 2004-01-18  Hans Breuer  <hans@breuer.org>
5545         * app/app_procs.c (myXmlErrorReporting) : avoid possible crash 
5546         by not passing NULL to g_print()
5548         * app/interface.c (create_toolbox) : actually use
5549         persitence_register_window() to restore toolbox window size
5551         * app/makefile.msc lib/makefile.msc : allow to deselect
5552         building with Freetype by command line to nmake like :
5553                 nmake -f makefile.msc "NOFT2=1"
5555         * plug-ins/python/diasvg_import.py : handle 'stroke-array' as
5556         far as possible with Dia's limited line style
5557         * plug-ins/python/pydia-property.c : allow to get and set
5558         Linestyle, style and dash(length)
5560         * lib/object.h : removed typedef for ObjectId not use anywhere
5562 2004-01-17  Hans Breuer  <hans@breuer.org>
5564         * objects/custom/shape_info.[hc] objects/custom/custom_object.c
5565           doc/shape.dtd doc/custom-shapes : 
5566         support for images in custom shapes, also removed some long-time
5567         dead code
5569         * doc/en/*.xml : fixed crippled line ends which get created
5570         when windoze line ends are checkin from the unix side
5572 2004-01-13  Laurent Dhima  <laurenti@alblinux.net>
5574         * configure.in: Added "sq" to ALL_LINGUAS.
5576 2004-01-11  Hans Breuer  <hans@breuer.org>
5578         [more less leaks ;-]
5579         
5580         * objects/SADT/annotation.c : use text_destroy() not g_free()
5581         
5582         * objects/chronogram/chronoline.c : neither leak chronoline::events
5583         nor chronoline::name
5585         * objects/wpg/wpg.c : don't g_free() but g_object_unref(renderer);
5587 2004-01-11  Hans Breuer  <hans@breuer.org>
5589         * lib/properties.h :
5590         * objects/custom/custom_object.c : more properties optional
5591         to be backward compatible for older diagrams not having them 
5592         set. (Try to load samples/all_objects.dia)
5593         
5594         [less memory leaks thanks valgrind ;-]
5595         
5596         * app/recent_files.c (recent_file_history_write) : 
5597         g_free(history_filename);
5598         (recent_file_menu_item) : use g_path_get_basename() 
5599         which already strdups, free result of g_strescape()
5600         
5601         * app/filedlg.c (create_export_menu) : return of
5602         filter_get_export_filter_label() must be g_free()'d
5603         (create_open_menu) : same for import
5604         
5605         * app/export_png.c (export_png_ok) : destroy info ptr
5606         with png_destroy_write_struct()
5607         
5608         * app/app_procs.c (app_init) : g_free(export_format_string);
5609         
5610         * lib/font.c (dia_font_finalize) : finalize parent_class, too
5611         (dia_font_new_from_style) : stop leaking almost all DiaFont by not
5612         refing it a second time, g_type_create_from_instance() is enough
5613         
5614         * lib/object_defaults.c (_obj_store) : don't mess with names
5615         len 0 (should avoid 'Invalid read of size 1, but doesn't ;)
5616         
5617 2004-01-11  Steffen Macke <sdteffen@web.de>
5619         * app/diapsftrenderer.c: including ftoutln.h
5620         * app/makefile.msc: updated for freetype build
5621         * lib/libdia.def: added dia_font_get_context()
5622         * lib/dialibartrenderer.c (draw_string): added cast
5623         
5624 2004-01-10  Hans Breuer  <hans@breuer.org>
5626         * lib/diagdkrenderer.c (draw_string) : gdk_draw_line with
5627         transformed coordinates, fixes bug 130804
5629 2004-01-10  Hans Breuer  <hans@breuer.org>
5631         * app/filedlg.c app/app_procs.c : don't try to destroy 
5632         'gtk_dialog_run'-dialogs dialogs by connecting to the "response"
5633         signal but simply by gtk_widget_destroy() after gtk_dialog_run()
5634         returns. Fixes 'has no handler' bugs like #121019
5636 2004-01-10  Hans Breuer  <hans@breuer.org>
5638         * objects/UML/class.c objects/UML/class_dialog.c : 
5639         handle umlclass->name being empty to avoid, i.e. fix #127968
5641         [plugging memleaks, thanks valgrind :-]
5642         
5643         * lib/dia_xml.c (data_string) : don't leak return value
5644         of xmlNodeListGetString()
5645         
5646         * lib/dia_xml.c (xml_file_check_encoding) : g_free(buf)
5647         before returning, maybe alloca() would be the better 
5648         choice but anyway ;)
5650         * objects/custom/custom_object.c:306 : adde xmlFree(str) below
5651         
5652         * lib/font.c (dia_font_build_layout) : don't leak result
5653         of g_utf8_strdown()
5654         
5655         * lib/diagdkrenderer.c (draw_string) : don't leak rgba
5656         (this is the one which got me started using valgrind, see #130816)
5657         
5658 2004-01-07  Sanlig Badral  <badral@openmn.org>
5660         * configure.in: Added "mn" to ALL_LINGUAS.
5662 2004-01-04  Hans Breuer  <hans@breuer.org>
5664         * lib/diagdkrenderer.c : replace rendering of really small (height
5665         less than 2 pixels) with a simple dashed line, you wont notice the 
5666         differnce beside it being much faster. This allows ...
5667         * lib/diagdkrenderer.h : ... to remove gboolean rendertext ...
5668         * app/navigation.c : ... and lets you see an read rendered text even 
5669         in the nice navigation popup.
5671         * lib/dialibartrenderer.c : FONT_SCALE defined as 1.0 for G_OS_WIN32, too. 
5672         (draw_string) : don't leak temporary image
5674 2004-01-04  Hans Breuer  <hans@breuer.org>
5676         * app/dia-app-icons.h : TODO : to be removed when autogenerated on *NIX, too.
5677         * app/interface.c : use dia-app-icons.h to give Dia window icons
5679         * lib/dia_image.c lib/color.c : _never_ call functions implemented
5680         in app/ from lib/. It is not portable and broken from design
5681         * app/app_procs.c : call color_init() and dia_image_init() conditional,
5682         i.e. only if running interactive.
5684         * lib/font.h : #include <time.h>
5686         * lib/libdia.def : updated externals
5688         * objects/UML/actor.c 
5689             objects/UML/association.c (todo)
5690           objects/UML/branch.c
5691           objects/UML/class.[hc] objects/UML/class_dialog.c
5692           objects/UML/classicon.c
5693           objects/UML/component.c 
5694           objects/UML/constraint.c
5695           objects/UML/dependency.c
5696           objects/UML/generalization.c
5697           objects/UML/implements.c
5698           objects/UML/large_package.c
5699           objects/UML/lifeline.c
5700           objects/UML/message.c
5701           objects/UML/node.c
5702           objects/UML/object.c
5703           objects/UML/realizes.c
5704           objects/UML/small_package.c
5705           objects/UML/state.c
5706           objects/UML/usecase.c
5707           objects/UML/
5708         : ported coloring of most UML objects (bug #97517, orginal
5709           work Mathias Hasselmann)
5711         * lib/properties.h : add _OPTIONAL variants for 
5712         PROP_STD_(LINE|FILL|TEXT)_COLOUR which allows to load old -
5713         i.e. default colored - UML diagrams without complaining
5714         * lib/proplist.c lib/propoffsets.c : avoid setting _OPTIONAL,
5715         not set properties with the help of PXP_NOTSET. Otherwise 
5716         optional attributes would lead to wrong initialization. 
5718         * lib/widgets.[hc] : moved _DiaFontSelector from .h to .c
5719         to hide details and restict #undef GTK_DISABLE_DEPRECATED to .c
5720         Same for most other selectors which probably should be rewritten
5721         to the combo box with tree model from Gtk+ 2.4
5723 2004-01-04  Lars Clausen  <lrclause@cs.uiuc.edu>
5725         * INSTALL (PLATFORM NOTES): Mention the Gnu gettext and iconv as
5726         being the Right Thing(tm) to use on Solaris.
5728         * objects/standard/bezier.c (bezierline_draw): Don't draw
5729         guidelines if not selected.
5731         * lib/object.[ch] (dia_object_is_selected): Function to check whether
5732         a given object is selected. O(n), where n is # selected objects.
5733         
5735 2004-01-03  Lars Clausen  <lrclause@cs.uiuc.edu>
5737         * lib/widgets.[ch]: Make sure old font is re-chosen when the Other
5738         Fonts dialog is closed without pressing Ok (bug #128646).
5740 2004-01-02  Lars Clausen  <lrclause@cs.uiuc.edu>
5742         * app/Makefile.am: Quote arguments correctly for run_dia.sh (bug
5743         #130099). 
5745 2004-01-01  Lars Clausen  <lrclause@cs.uiuc.edu>
5747         * INSTALL: Updated list of requirements (bug #129653)
5749         * doc/en/dia.dia: Beginning class diagram for Dia from Luc
5750         Pionchon <luc@handhelds.org>.
5752 2003-12-31  Lars Clausen  <lrclause@cs.uiuc.edu>
5754         * lib/diagdkrenderer.c (draw_string): Don't attempt to render
5755         empty or NULL strings (bug #130097).
5757 2003-12-31  Chris Sperandio <sperandi@eng.usf.edu>
5758         
5759         * plug-ins/metapost/render_metapost.c: Fixed string colorization.
5760         Added checks against color_black.
5762 2003-12-31  Lars Clausen  <lrclause@cs.uiuc.edu>
5764         * plug-ins/xfig/xfig-export.c (figArrow): Output nothing for
5765         ARROW_TYPE_NONE.  Thanks to Jon A. Solworth for showing that this
5766         can happen.
5768         * objects/UML/component_feature.c: Patch from W. Borgert
5769         <debacle@debian.org>:  Add handle to component feature text.
5771         * lib/diagdkrenderer.c (draw_string): Remove poorly placed caching.
5773         * lib/font.c: Caching PangoLayout for better rendering speed.
5775 2003-12-30  Lars Clausen  <lars@raeder.dk>
5777         * lib/dia_dirs.[ch] (dia_get_absolute_filename): New function to
5778         get absolute file name from relative.
5779         * app/recent_files.c (recent_file_history_add): Use absolute
5780         filenames for recent files menu so that files can be found when
5781         Dia is invoked from other places.  
5783         * app/app_procs.c (handle_all_diagrams): Fix for 1/3 of 130098:
5784         Actually load different diagrams if such are requested on command
5785         line.  
5787         * objects/UML/class_dialog.c (class_create_page): Fix from Luc
5788         Pionchon <luc@handhelds.org>: Correctly align labels for colors.
5790         * lib/diagdkrenderer.[ch]: From Luc: New option to GdkRenderer to
5791         remove text rendering.  May be turned into greeking at some later
5792         stage.
5794         * app/interface.c: 
5795         * app/Makefile.am (dia_core_files): 
5796         * app/navigation.[ch]: Patch from Luc Pionchon <luc@handhelds.org>:
5797         Adds navigation window a la Gimp, though without text being
5798         rendered at all.
5800 2003-12-27  Luc Pionchon <luc@handhelds.org>
5802         * app/navigation.h: (new file)
5803         * app/navigation.c: (new file) creates a navigation window with a
5804         thumbnail view of the whole diagram.
5805         * app/Makefile.am (dia_core_files): added new files.
5807         * app/interface.c (create_display_shell): added a button between
5808         the scrollbars to popup a navigation window.
5810         * lib/diagdkrenderer.h (struct_DiaGdkRenderer): added rendertext
5811         boolean
5812         * lib/diagdkrenderer.c (renderer_init): set rendertext TRUE by default
5813         * lib/diagdkrenderer.c (draw_string): returns if the renderer do
5814         not want text rendering.        
5816 2003-12-14  Lars Clausen  <lrclause@cs.uiuc.edu>
5818         * shapes/Circuit/hresistor.shape: Uses new extra attribute thing.
5820         * objects/custom/shape_info.[ch]: Cleanup.
5822         * objects/custom/custom_object.[ch]: Changed to use new props
5823         interface.
5825         * lib/properties.h: 
5826         * lib/prop_text.c: 
5827         * lib/prop_inttypes.c: 
5828         * lib/prop_geomtypes.c: Added *prop_get_data_size.
5830         * lib/libdia.def: Added object_load_props.
5832         * configure.in: Better FT2 version test, from bug #129225.
5834         * dia.spec (BuildRequires): Changed to match makefile (bug #129131)
5836         * plug-ins/xslt/dia-uml2python.xsl: Added Python sheet from Holger
5837         Lehmann <holger.lehmann@catworkx.de>.
5839         * plug-ins/xslt/Makefile.am: 
5840         * plug-ins/xslt/stylesheets.xml: Added Python, Component List,
5841         and OWL XSLT sheets.
5843 2003-12-13  Lars Clausen  <lrclause@cs.uiuc.edu>
5845         * lib/diagdkrenderer.c: Add implementation so text is still
5846         rendered.  May be improved later.
5848         * lib/dia_image.c: 
5849         * app/main.c: 
5850         * app/export_png.c: 
5851         * app/diagram.c: 
5852         * app/app_procs.c: Patch from W. Borgert <debacle@debian.org>:
5853         Allow running without a $DISPLAY!
5855         * lib/color.c: Remove warnings for non-interactive run.
5857         * doc/en/dia.dbk: 
5858         * app/export_png.c: 
5859         * app/diaconv.c: 
5860         * app/app_procs.[ch]: 
5861         Patch from W. Borgert <debacle@debian.org>: Allow a --size argument
5862         to specify size for PNG output.
5864         * app/lineprops_area.c (dia_arrow_preview_expose): Make arrows
5865         render a little smaller, so as to fit the big ones.
5867         * lib/arrows.[ch]: New arrow type from W. Borgert
5868         <debacle@debian.org>: Filled Dot and Triangle.
5870 2003-12-02  Lars Clausen  <lrclause@cs.uiuc.edu>
5872         * doc/pl/Makefile.am (install-data-hook): Fixed installation bug
5873         for gif images.
5875         * plug-ins/xslt/dia-uml2owl.xsl: Added OWL XSLT from Dan Connolly.
5877         * acinclude.m4: Better Python configure code patch (can't find
5878         author, author please speak up!)
5880 2003-12-01  Lars Clausen  <lrclause@cs.uiuc.edu>
5882         * lib/diagdkrenderer.c (get_cached_text): Stupid bugs replaced by
5883         smarter ones.
5885 2003-11-30  Hans Breuer  <hans@breuer.org>
5887         * plug-ins/python/diasvg.py : initialize self.dash_length
5888         in constructor to avoid crashing if the renderer user
5889         does not set it before first usage.
5891 2003-11-30  Lars Clausen  <lrclause@cs.uiuc.edu>
5893         * lib/diagdkrenderer.c: Start of cache GDK text renderer -- not
5894         active yet.
5896         * configure.in: 
5897         * config.h.win32: Set version number to 0.92.2+cvs to distinguish
5898         development and stable versions.
5900         * lib/text.c (text_draw): Use new renderer function to draw the
5901         text.
5903         * lib/diarenderer.h: 
5904         * lib/diarenderer.c: New renderer function "draw_text" with
5905         default implementation.  This function should eventually be the
5906         main interface, as it will be able to handle width and caching of
5907         rendering internally.  All users of draw_string should convert to
5908         use Text objects and call either renderer->draw_text or text_draw,
5909         the latter if the text can be edited in-place (as should be the
5910         goal, eventually).
5912 2003-11-29  Lars Clausen  <lrclause@cs.uiuc.edu>
5914         * shapes/Circuit/hresistor.shape: First example of extra
5915         attributes. 
5917 2003-11-28  Lars Clausen  <lrclause@cs.uiuc.edu>
5919         * plug-ins/shape/shape-export.c: 
5920         * lib/diasvgrenderer.h: 
5921         * lib/diasvgrenderer.c: 
5922         * plug-ins/svg/render_svg.c (new_svg_renderer): 
5923         Actually store the font size, using DiaRenderer's font fields.
5925 2003-11-27  Lars Clausen  <lrclause@cs.uiuc.edu>
5927         * objects/custom/shape_info.[ch]: 
5928         * objects/custom/custom_object.[ch]: 
5929         Support for extra attributes in custom objects.
5930         
5931 2003-11-23  Lars Clausen  <lrclause@cs.uiuc.edu>
5933         * app/diagram.c (diagram_update_menu_sensitivity): More
5934         intelligent checks for menu sensitivity.  Might be slow on huge
5935         diagrams, but I think other things outweigh it by a lot.
5937         * app/menus.[ch]: Make "Bring Forwards"
5938         and "Send Backwards" updateable.
5940 2003-11-22  Steffen Macke <sdteffen@web.de>
5942         * shapes/Assorted/arrow-turn-up.shape:
5943         * shapes/Assorted/arrow-turn-up.png:
5944         * sheets/Assorted/Makefile.am:
5945         * sheets/Assorted.sheet.in: Added new arrow
5947 2003-11-17  Lars Clausen  <lrclause@cs.uiuc.edu>
5949         * app/app_procs.c
5950         * app/color_area.c
5951         * app/commands.c
5952         * app/defaults.c
5953         * app/dia_embedd.c
5954         * app/diagram.c
5955         * app/diagram_tree.c
5956         * app/diagram_tree_menu.c
5957         * app/diagram_tree_window.c
5958         * app/diapagelayout.c
5959         * app/diaunitspinner.c
5960         * app/export_png.c
5961         * app/filedlg.c
5962         * app/interface.c
5963         * app/layer_dialog.c
5964         * app/lineprops_area.c
5965         * app/linewidth_area.c
5966         * app/menus.c
5967         * app/pagesetup.c
5968         * app/paginate_psprint.c
5969         * app/persistence.c
5970         * app/plugin-manager.c
5971         * app/preferences.c
5972         * app/properties.c
5973         * app/recent_files.c
5974         * app/sheets.c
5975         * app/sheets_dialog.c
5976         * app/sheets_dialog_callbacks.c
5977         * app/tool.c: Patch from Sebastien Tricaud <toady@gscore.org>:
5978         GTK-2 compatibility update, mostly gtk_foo -> g_foo.
5980         * TODO: Updated, note on EPS transparency.
5982 2003-11-07  Lars Clausen  <lrclause@cs.uiuc.edu>
5984         * objects/UML/class.c (umlclass_draw): Allow classes with no name
5985         without crashing.
5987 2003-11-01  Lars Clausen  <lrclause@cs.uiuc.edu>
5989         * config.h.win32: 
5990         * doc/en/dia-manual.xml: 
5991         * dia.spec: 
5992         * configure.in: 
5993         * NEWS: Another Brown Bag release for parenting problems,
5994         including a crash bug fix.
5996         * app/connectionpoint_ops.c (diagram_update_connections_object):
5997         Also update connections when moving children.  This can cause
5998         move_handle to be called twice, so it must be idempotent.
6000         * app/load_save.c: Loading and saving of children totally redone.
6001         Now doesn't violate assumption that all objects in a layer are
6002         placed in order in XML file.
6004         * objects/UML/branch.c (branch_create): Don't lie about being
6005         resizable. 
6007         * objects/UML/node.c (node_create): 
6008         * objects/UML/large_package.c (largepackage_create): Drag with
6009         lower right-hand handle at creation like all other objects.
6011 2003-10-28  Lars Clausen  <lrclause@cs.uiuc.edu>
6013         * app/disp_callbacks.c (ddisplay_drop_object): Change initial
6014         parenting drop to behave like a move inside, i.e. constrain place
6015         instead of trying to resize.  'Cause, resizing cannot be done for
6016         all objects (e.g. UML Class). Also simplified the algorithm a lot
6017         at the same time.
6019         * app/load_save.c: Saving and loading of connection points for
6020         children added.  Prototypes for static functions added.
6022         * lib/dynamic_obj.c: Removed debugging output.
6024 2003-10-26  Lars Clausen  <lrclause@cs.uiuc.edu>
6026         * doc/en/dia-manual.xml: 
6027         * doc/pl/dia-manual.sgml: 
6028         * dia.spec: 
6029         * config.h.win32: 
6030         * configure.in: 
6031         * NEWS: Brown Bag release 0.92.1
6033         * lib/dynamic_obj.c: Fixed embarassing dynamic object removal bug.
6035 2003-10-25  Lars Clausen  <lrclause@cs.uiuc.edu>
6037         * app/app_procs.c (app_init): Rearrangement for translators.
6039 2003-10-24  Steffen Macke <sdteffen@web.de>
6041         * lib/text.c(text_key_event): enforcing the inserted text length now,
6042         fix for bug #125348
6044 2003-10-22  Lars Clausen  <lrclause@cs.uiuc.edu>
6046         * MAINTAINERS: Change Debian maintainer to be the default address.
6048         * objects/Misc/analog_clock.c (analog_clock_move_handle): Reorder
6049         args to match prototype, thus removing crashbug #125159.
6051         * RELEASE-PROCESS: Note to self.
6053 2003-10-22  Steffen Macke <sdteffen@web.de>
6055         * doc/en/dia-manual.xml: removed superfluous external references
6056         
6057 2003-10-21  Steffen Macke <sdteffen@web.de>
6059         * lib/libdia.def: added filter_get_by_name
6060         * app/render_eps.c: moved extensions definition outside #ifdef
6062 2003-10-19  Lars Clausen  <lrclause@cs.uiuc.edu>
6064         * Makefile.am: 
6065         * dia.1:
6066         Removed old Dia manual, put new one in doc/en/.  Translations
6067         should go in doc/??/.
6069         * doc/en/dia-manual.xml: 
6070         * doc/pl/dia-manual.sgml: 
6071         * dia.spec (Release): 
6072         * config.h.win32: 
6073         * configure.in: 
6074         * NEWS: 0.92 is here!
6076         * doc/en/dia.dbk: 
6077         * doc/en/dia.1: 
6078         * doc/en/Makefile.am (man_MANS): Added man page, thanks to Fredrik
6079         HallenBerg, W. Borgert.  Not currently autogenerated from dia.dbk,
6080         but it shall be.
6082         * doc/en/usage-objects.xml: Fixed lower-case PNG tags.
6084         * doc/en/usage-objects-selecting.xml: Commented out empty note.
6086 2003-10-14  Lars Clausen  <lrclause@cs.uiuc.edu>
6088         * doc/pl/dia-manual.sgml: 
6089         * doc/en/dia-manual.xml: 
6090         * config.h.win32: 
6091         * NEWS: 
6092         * configure.in: 
6093         * dia.spec (Release): Pre7.
6095         * app/diapsrenderer.c (draw_string): Convert string to print based
6096         on current locale.  If conversion fails, fall back to UTF-8 (which
6097         is almost certain to be messy).
6099 2003-10-13  Lars Clausen  <lrclause@cs.uiuc.edu>
6101         * doc/pl/dia-manual.sgml: 
6102         * dia.spec (Release): 
6103         * configure.in: 
6104         * NEWS: 
6105         * config.h.win32: 
6106         * doc/en/dia-manual.xml: Pre6.
6108         * plug-ins/pstricks/render_pstricks.c (draw_string): Don't escape
6109         TeX chars in strings -- must be possible to use TeX text in there.
6110         Also avoids infinite loop bug (#124464) Will get option for this
6111         later.
6113 2003-10-11  Lars Clausen  <lrclause@cs.uiuc.edu>
6115         * shapes/Cisco/Makefile.am: Cisco shapes now install correctly.
6117         * doc/en/dia-manual.xml: 
6118         * doc/pl/dia-manual.sgml: 
6119         * dia.spec (Release): 
6120         * configure.in: 
6121         * config.h.win32: 
6122         * NEWS: pre5.
6124         * app/authors.h: Removed duplicate of M. C. Nelson.
6126         * plug-ins/pixbuf/pixbuf.c: Unique name for pixbuf export: gdkpixbuf.
6128         * app/export_png.c: Unique name for libart PNG export: png-libart.
6130         * app/render_eps.c: Unique names for the two eps export methods:
6131         eps-builtin, eps-pango.
6133         * lib/filter.h: Binary compatibility change: 
6134         Added unique name to export filters.  Can be NULL.
6135         * lib/filter.c (filter_get_by_name): Finding a filter by
6136         non-extension name.
6138         * app/app_procs.h: Changed prototype for do_convert.
6139         * app/app_procs.c (app_init): Support for non-extension file
6140         format selection for export.  Also allow extension to differ from
6141         that specified by the filters.  A bit of refactoring, too.
6143 2003-09-28  Steffen Macke <sdteffen@web.de>
6145         * makefile.msc: added target po to update the translations
6147 2003-09-27  Lars Clausen  <lrclause@cs.uiuc.edu>
6149         * config.h.win32: 
6150         * dia.spec (Release): 
6151         * NEWS: 
6152         * doc/pl/dia-manual.sgml: 
6153         * doc/en/dia-manual.xml: 
6154         Pre4 is given a short try.
6155         
6156         * configure.in: Give all necessary libs to PNG test.
6158         * lib/font.c: Added legacy entries for sans, serif and monospace.
6160         * app/app_procs.c (internal_plugin_init): 
6161         * app/render_eps.h: 
6162         * app/render_eps.c: 
6163         Added PS fonts output for Unix.
6165         * app/diapsrenderer.c (set_font): Adjusted height by the magic .7
6166         factor to make PS fonts stay in boxes.
6167         
6168 2003-08-03  Hans Breuer  <hans@breuer.org>
6170         * config.h.win32 : close the version string
6172         * lib/libdia.def : with color_white, color_black being static
6173         on win32 they can not be exported anymore either
6175         * lib/dialibartrenderer.c : text rendering is back on win32,
6176         only by Gdk though; almost a year seems to be enough to
6177         wait for my patch at bug #94791 to be accepted ...
6179 2003-09-23  Lars Clausen  <lrclause@cs.uiuc.edu>
6181         * shapes/network/{digitizing_board.png,plotter.png,
6182         laptop.png,telephone.png}: 22x22 icons.
6184 2003-09-22  Lars Clausen  <lrclause@cs.uiuc.edu>
6186         * doc/pl/dia-manual.sgml: 
6187         * doc/en/dia-manual.xml: 
6188         * dia.spec (Release): 
6189         * configure.in: 
6190         * config.h.win32: 
6191         * NEWS: 
6192         pre3 improves font rendering speed.
6194         * app/app_procs.c (app_init): Don't do pango init here, it's done
6195         on demand in font.c now.
6197         * lib/font.c: Load pango context on demand rather than during
6198         init/all the time strikes a better balance between working font
6199         size and speed.  Still need to cache width calculations.
6201 2003-09-18  Lars Clausen  <lrclause@cs.uiuc.edu>
6203         * lib/dia_xml.c: Enable pretty printing.  Should have been added
6204         on 8/12. 
6206 2003-09-11  Lars Clausen  <lrclause@cs.uiuc.edu>
6208         * lib/arrows.c (calculate_arrow_point): Adjust arrow line
6209         adjustment a bit for half diamond and open round.
6211         * RELEASE-PROCESS: Added note about notifying translators and
6212         maintainers. 
6214         * doc/pl/dia-manual.sgml: 
6215         * doc/en/dia-manual.xml: 
6216         * dia.spec (Release): 
6217         * configure.in: 
6218         * config.h.win32: 
6219         * NEWS:
6220         Update to 0.92-pre2.
6221         
6222 2003-09-10  Lars Clausen  <lrclause@cs.uiuc.edu>
6224         * lib/arrows.c (calculate_arrow_point): Some fixing-up of arrow
6225         calculation for half diamond and open round.
6227         * lib/arrows.c: 
6228         * objects/UML/component_feature.c: 
6229         * lib/arrows.h: Patch from W. Borgert <debacle@debian.org>: Use
6230         arrows instead of specific little hacks.  Much nicer, but damn
6231         there's a lot of arrows.
6233         * lib/dialibartrenderer.c (begin_render): 
6234         * app/render_libart.c (begin_render): Use correct DPI for screen
6235         (well, actually the default DPI of 75 for now).
6237         * app/display.h: Informative notes on the DDISPLAY_*_ZOOM macros.
6239         * lib/diagdkrenderer.c (draw_string): Some reformatting.
6241         * app/app_procs.c (app_init): Note on what should be done for the
6242         pango context now, only it doesn't work:(
6244         * lib/font.c (dia_font_new): Make sure to load fonts that are
6245         used, using a reasonable pango_context.  Also a comment on the
6246         global_zoom_factor, 
6248 2003-09-09  Lars Clausen  <lrclause@cs.uiuc.edu>
6250         * doc/pl/graphics/*.png:
6251         * doc/pl/Makefile.am: Added graphics to distro, avoiding empty
6252         loop (bug #121817).  PL translator may want to change the
6253         home_network png to be in Polish.  If the docs get translated into
6254         more languages, we'll want to find out how to share these things.
6256 2003-09-08  Lars Clausen  <lrclause@cs.uiuc.edu>
6258         * app/splash.c (app_splash_init): Patch from Sébastien Tricaud
6259         <stricaud@mwsp.net>: Use g_signal_* instead of gtk_signal_* in
6260         splash.
6262         * app/filedlg.c (file_save_as_callback): Put filename setting
6263         together.  (Preparation for allowing default save dir.)
6265         * app/paginate_psprint.c (diagram_print_ps): Use $PRINTER
6266         correctly this time:)
6268         * app/dia-props.c (diagram_properties_show): 
6269         * app/properties.c (properties_show): Make sure the
6270         dialogs are transient for the correct diagram.
6272 2003-09-07  Lars Clausen  <lrclause@cs.uiuc.edu>
6274         * configure.in: Make sure -lz -lm is passed into second png test
6275         as well (stupid AC_LINK_IFELSE can't take it as an argument).
6277         * plug-ins/xfig/xfig-import.c: Skip XFig comments to make certain
6278         comment-filled files readable.  Once we have a 'generic data'
6279         system, we can put comments in there.
6281 2003-09-06  Steffen Macke <sdteffen@web.de>
6283         * plug-ins/pstricks/render_pstricks.c(tex_escape_string): using
6284         g_string_sized_new() instead of g_string_new() to make it compile
6285         * app/Makefile.am: including dia.ico and dia.rc in the tarball
6286         * plug-ins/wmf/wmf.cpp (set_linestyle): In WMF maximum linewidth is 1 
6287         for non-solid linestyles - otherwise custom linestyles have to be used.
6289 2003-09-02  Steffen Macke <sdteffen@web.de>
6291         * app/commands.c(help_manual_callback): using dia-manual.chm instead of 
6292         dia.chm
6294 2003-09-02  Christian Neumair  <chris@gnome-de.org>
6296         * sheets/Pneumatic.sheet.in: Slight unification fix.
6298 2003-09-02  Lars Clausen  <lrclause@cs.uiuc.edu>
6300         * config.h.win32: 
6301         * configure.in: 
6302         * dia.spec (Release): 
6303         * doc/en/dia-manual.xml: 
6304         * doc/pl/dia-manual.sgml: 
6305         * NEWS: Update to 0.92-pre1.
6307         * app/properties.c (properties_key_event): Removing Esc/Enter
6308         handling for now, interferes to much with regular dialog usage.
6310         * plug-ins/pstricks/render_pstricks.c (tex_escape_string):
6311         Function to escape special TeX characters.  Not in use yet, as
6312         PSTricks output by default is TeX strings.  Should get a save-time
6313         selector. 
6315 2008-09-01  Steffen Macke <sdteffen@web.de>
6317         * lib/paper.h: explanatory comment on width and height
6319 2003-08-30  Steffen Macke <sdteffen@web.de>
6321         * lib/color.c:
6322         * lib/color.h: made color_white, color_black static on win32
6324 2003-08-28  Lars Clausen  <lrclause@cs.uiuc.edu>
6326         * configure.in (PNG_LIBS): Something in the png tests added an
6327         extra -lpng to $LIBS.  Saving old $LIBS to avoid that.
6329 2003-08-27  Lars Clausen  <lrclause@cs.uiuc.edu>
6331         * configure.in: Quote correctly for temporarily adding freetype
6332         cflags to CPPFLAGS.
6334         * app/preferences.c (prefs_save): Remove debugging g_print.
6336 2003-08-26  Lars Clausen  <lrclause@cs.uiuc.edu>
6338         * objects/flowchart/parallelogram.c (pgram_update_data):
6339         Directions for connections, better system for placing
6340         connectionpoints. 
6342 2003-08-25  Lars Clausen  <lrclause@cs.uiuc.edu>
6344         * lib/diagramdata.c (layer_find_closest_object_except): Look all
6345         the way through the object list, so the foremost object is selected.
6347         * lib/diagramdata.h: Removing dynamic_obj.h, it should only be
6348         included for diagramdata.c.
6350         * lib/prop_text.c (multistringprop_handle_key): Attempt at making
6351         newline in multistringprop not close the dialog.  Failed so far.
6353 2003-08-25  Steffen Macke <sdteffen@web.de>
6355         * app/commands.c: using CHM instead of HTML on win32 if available
6356         * lib/diagramdata.h: including dynamic_obj.h
6358 2003-08-25  Lars Clausen  <lrclause@cs.uiuc.edu>
6360         * app/properties.c (properties_key_event): Make Enter = Ok for
6361         properties dialogs.  Still some problems with this and Esc for
6362         Cancel, for instances escaping out of a menu closes the dialog.
6364         * objects/UML/association.c (association_get_properties): 
6365         * objects/UML/class_dialog.c (class_create_page): Grab appropriate
6366         focus. 
6368         * app/diapsft2renderer.c (draw_string): Use
6369         dia_font_scaled_build_layout to ensure similarity of text.
6371         * lib/diagramdata.c: Remove obj from dynobj list when removing
6372         from layer to avoid nasty race conditions.
6374         * app/undo.c (group_objects_revert): Make sure to unparent and
6375         remove from dynobj list when changing layers objects.
6377 2003-08-23  Steffen Macke <sdteffen@web.de>
6379         * plug-ins/wmf/wmf.cpp (draw_image): replaced BitBlt() with 
6380         StretchBlt(); fixes #92249
6381         
6382 2003-08-23  Lars Clausen  <lrclause@cs.uiuc.edu>
6384         * app/filedlg.c (file_save_as_callback): 
6385         * app/preferences.h: 
6386         * app/preferences.c (prefs_data): 
6387         * lib/diagramdata.h: 
6388         * lib/diagramdata.c (new_diagram_data): 
6389         * app/load_save.c (diagram_data_load): 
6390         Let the document remember whether it was compressed.  The user can
6391         still override this in the Save As... dialog, and that will still
6392         be remembered as the default for new diagrams.
6394 2003-08-23  Steffen Macke <sdteffen@web.de>
6396         * plug-ins/xslt/Makefile.am: added dia-uml2componentlist.xsl
6398 2003-08-22  Steffen Macke <sdteffen@web.de>
6400         * plug-ins/xslt/dia-uml.xsl:
6401         * plug-ins/xslt/dia-uml2componentlist.xsl: generate a HTML file with a
6402         table containing a list of components grouped by stereotype
6404 2003-08-21  Steffen Macke <sdteffen@web.de>
6406         * lib/makefile.msc: added connectionpoint.obj
6407         * lib/libdia.def: added connpoint_update, find_slope_directions
6408         * app/disp_callbacks.c: including scroll_tool.h
6409         * obj/makefile.msc: added component_feature.obj
6410         * app/paginate_gdiprint.c: fixed loop initialization in 
6411         paginate_gdiprint(); partial fix for bug #85831 - the scaling is still
6412         wrong
6414 2003-08-21  Lars Clausen  <lrclause@cs.uiuc.edu>
6416         * plug-ins/python/pydia-object.c (PyDiaObject_MoveHandle): Fix
6417         move_handle call.
6419         * lib/diagramdata.h: Colors added to prefs.
6420         * lib/diagramdata.c (new_diagram_data): Set diagram colors from prefs.
6421         New field for pagebreak color, which should
6422         behave the same as grid color and be settable for a diagram.
6424         * app/diagram.c (diagram_init): Update diagram pagebreak color
6425         from prefs. 
6427         * app/grid.c (pagebreak_draw): Draw using diagrams pagebreak
6428         colors. 
6430         * app/preferences.[ch]: Default diagram colors now #defines, so
6431         loading can use it.  Also, colors are now in NewDiagramData, so
6432         are passed nicely into new diagrams directly from prefs.  Yum.
6434         * app/load_save.c (diagram_data_write_doc, diagram_data_load): 
6435         Support for loading and saving grid and pagebreak colors with the
6436         diagram.  I'm inclined to make all the three Colors in diagram
6437         Color*s instead, so we can tell if they're specified for the
6438         diagram or merely the default setting.  There'd be no way for the
6439         user to tell if the color of a diagram is default, though, unless
6440         we add a 'reset to default' button to prefs.
6442         * app/dia-props.c: Adding widgets for dynamic grid, grid colour,
6443         pagebreak color.  Unsensitizing grid size when dynamic.
6445         * objects/UML/component.c: Patch from Krzysztof Foltman
6446         <kfoltman@onet.pl>: Add two new connectionpoints and adjust a
6447         third.  Makes the left side connections actually be on the line
6448         (gasp!). 
6450 2003-08-20  Steffen Macke <sdteffen@web.de>
6452         * lib/libdia.def: added layer_find_closest_object_except
6453         * lib/diagramdata.c: added ; after GOTO to make MSVC compile 
6455 2003-08-20  Lars Clausen  <lrclause@cs.uiuc.edu>
6457         * app/tool.h: 
6458         * app/tool.c: 
6459         * app/scroll_tool.c: 
6460         * app/interface.c: 
6461         * app/disp_callbacks.c: 
6462         * app/create_object.h: 
6463         * app/create_object.c: Patch from Krzysztof Foltman
6464         <kfoltman@onet.pl>: Middle button can scroll transiently when
6465         menu-bar-mode is on, and mouse wheels (hopefully) can scroll in
6466         various ways.
6468         * app/authors.h: 
6469         * sheets/UML.sheet.in: 
6470         * sheets/UML/receptacle.xpm: 
6471         * sheets/UML/Makefile.am: 
6472         * sheets/UML/eventsource.xpm: 
6473         * sheets/UML/eventsink.xpm: 
6474         * objects/UML/pixmaps/facet.xpm: 
6475         * objects/UML/uml.c (dia_plugin_init): 
6476         * objects/UML/Makefile.am (libuml_objects_la_SOURCES): 
6477         * objects/UML/component_feature.c: 
6478         Patch from W. Borgert <debacle@debian.org>:  Add event sources and
6479         event sinks.
6480         
6481 2003-08-19  Lars Clausen  <lrclause@cs.uiuc.edu>
6483         * lib/object.h: Turning some comments into doxygen style.
6485         * lib/object_defaults.c (dia_object_defaults_load)
6486         (dia_object_default_get, dia_object_default_create): 
6487         Fixing up existing documentation.
6489         * lib/object.h: Doxygen style documentation begun.
6491         * app/create_object.c: 
6492         * app/undo.c: 
6493         * app/connectionpoint_ops.c: 
6494         * app/disp_callbacks.c: 
6495         * app/modify_tool.c: 
6497         * objects/network/wanlink.c (wanlink_move_handle): 
6498         * objects/network/bus.c (bus_move_handle): 
6500         * objects/flowchart/parallelogram.c (pgram_move_handle): 
6501         * objects/flowchart/ellipse.c (ellipse_move_handle): 
6502         * objects/flowchart/diamond.c (diamond_move_handle): 
6503         * objects/flowchart/box.c (box_move_handle): 
6505         * objects/custom/custom_object.c (custom_move_handle): 
6507         * objects/chronogram/chronoref.c (chronoref_move_handle): 
6508         * objects/chronogram/chronoline.c (chronoline_move_handle): 
6510         * objects/SADT/box.c (sadtbox_move_handle): 
6511         * objects/SADT/arrow.c (sadtarrow_move_handle): 
6512         * objects/SADT/annotation.c (annotation_move_handle): 
6514         * objects/Misc/analog_clock.c (analog_clock_move_handle): 
6516         * objects/GRAFCET/vergent.c (vergent_move_handle): 
6517         * objects/GRAFCET/vector.c (arc_move_handle): 
6518         * objects/GRAFCET/transition.c (transition_move_handle): 
6519         * objects/GRAFCET/step.c (step_move_handle): 
6520         * objects/GRAFCET/condition.c (condition_move_handle): 
6521         * objects/GRAFCET/action.c (action_move_handle): 
6523         * objects/FS/function.c: 
6524         * objects/FS/flow.c: 
6525         * objects/FS/flow-ortho.c (orthflow_move_handle): 
6526         * objects/FS/flow-poly.c (flow_move_handle): 
6528         * objects/UML/usecase.c (usecase_move_handle): 
6529         * objects/UML/state_term.c (state_move_handle): 
6530         * objects/UML/state.c (state_move_handle): 
6531         * objects/UML/small_package.c (smallpackage_move_handle): 
6532         * objects/UML/realizes.c (realizes_move_handle): 
6533         * objects/UML/object.c (objet_move_handle): 
6534         * objects/UML/note.c (note_move_handle): 
6535         * objects/UML/node.c (node_move_handle): 
6536         * objects/UML/message.c (message_move_handle): 
6537         * objects/UML/lifeline.c (lifeline_move_handle): 
6538         * objects/UML/large_package.c (largepackage_move_handle): 
6539         * objects/UML/implements.c (implements_move_handle): 
6540         * objects/UML/generalization.c (generalization_move_handle): 
6541         * objects/UML/fork.c (fork_move_handle): 
6542         * objects/UML/dependency.c (dependency_move_handle): 
6543         * objects/UML/constraint.c (constraint_move_handle): 
6544         * objects/UML/compprop.c (compprop_move_handle): 
6545         * objects/UML/component.c (component_move_handle): 
6546         * objects/UML/branch.c (branch_move_handle): 
6547         * objects/UML/association.c (association_move_handle): 
6548         * objects/UML/actor.c (actor_move_handle): 
6549         * objects/UML/activity.c (state_move_handle): 
6550         * objects/UML/class.c (umlclass_move_handle): 
6552         * objects/standard/ellipse.c (ellipse_move_handle): 
6553         * objects/standard/zigzagline.c (zigzagline_move_handle): 
6554         * objects/standard/textobj.c (textobj_move_handle): 
6555         * objects/standard/polyline.c (polyline_move_handle): 
6556         * objects/standard/polygon.c (polygon_move_handle): 
6557         * objects/standard/line.c (line_move_handle): 
6558         * objects/standard/image.c (image_move_handle): 
6559         * objects/standard/bezier.c (bezierline_move_handle): 
6560         * objects/standard/arc.c (arc_move_handle): 
6561         * objects/standard/beziergon.c (beziergon_move_handle): 
6562         * objects/standard/box.c (box_move_handle): 
6563         
6564         * objects/ER/relationship.c (relationship_move_handle): 
6565         * objects/ER/participation.c (participation_move_handle): 
6566         * objects/ER/entity.c (entity_move_handle): 
6567         * objects/ER/attribute.c (attribute_move_handle): 
6568         
6569         * lib/polyshape.c (polyshape_move_handle): 
6570         * lib/polyshape.h: 
6571         * lib/orth_conn.c (orthconn_move_handle): 
6572         * lib/orth_conn.h: 
6573         * lib/neworth_conn.c (neworthconn_move_handle): 
6574         * lib/neworth_conn.h: 
6575         * lib/element.c (element_move_handle): 
6576         * lib/element.h: 
6577         * lib/connection.c (connection_move_handle): 
6578         * lib/connection.h: 
6579         * lib/beziershape.c (beziershape_move_handle): 
6580         * lib/beziershape.h: 
6581         * lib/bezier_conn.c (bezierconn_move_handle): 
6582         * lib/bezier_conn.h: 
6583         *BINARY COMPATIBILITY CHANGE*
6584         Update prototype for *_move_handle() to include connectionpoint,
6585         and also pass on modifiers.  Pass in connectionpoint where
6586         applicable. 
6587         
6588         * lib/dummy_dep.h (dummy_dep): Adding dummy dependencies for new
6589         file connectionpoint.c.
6591 2003-08-17  Danilo Å egan  <dsegan@gmx.net>
6593         * configure.in: Added "sr" and "sr@Latn" to ALL_LINGUAS.
6595 2003-08-15  Lars Clausen  <lrclause@cs.uiuc.edu>
6597         * lib/object.c (object_copy): Use g_malloc0 instead of g_malloc.
6599         * lib/beziershape.c (beziershape_update_data): Autoroute
6600         directions for beziershapes!
6602         * lib/connectionpoint.c (find_slope_directions): 
6603         * lib/connectionpoint.h: Function for finding the available
6604         directions on a slope.
6606         * lib/polyshape.c: Reasonable directions for
6607         connectionpoints.       
6609 2003-08-14  Lars Clausen  <lrclause@cs.uiuc.edu>
6611         * objects/Misc/analog_clock.c (analog_clock_update_arrow_tips): 
6612         * objects/GRAFCET/vergent.c (vergent_update_data): 
6613         * objects/GRAFCET/transition.c (transition_update_data): 
6614         * objects/GRAFCET/action.c (action_update_data): 
6615         * objects/GRAFCET/step.c (step_update_data): 
6616         * objects/FS/function.c (function_update_data): 
6617         * lib/connpoint_line.c (connpointline_putonaline): 
6618         * objects/ER/attribute.c (attribute_update_data): 
6619         * objects/ER/entity.c (entity_update_data): 
6620         * objects/ER/relationship.c (relationship_update_data): 
6621         * objects/chronogram/chronoline.c (chronoline_update_data): Set
6622         directions for connection points.
6624         * objects/UML/component.c (component_create): Set to allow
6625         parenting. 
6627         * app/create_object.c (create_object_button_press): 
6628         * app/diagram.[ch] (diagram_find_clicked_object_except): 
6629         * lib/diagramdata.[ch] (layer_find_closest_object_except): 
6630         Avoid parenting to objects you're connecting to (otherwise you
6631         couldn't make a connection out of a parenting object).  To do
6632         this, added functions to find the nearest object except a given
6633         list of objects.
6634         
6635         * app/render_libart.c: Rearrange libart include to avoid multiple
6636         include program (and put libart includes inside #ifdef!)
6638 2003-08-13  Lars Clausen  <lrclause@cs.uiuc.edu>
6640         * lib/dialibartrenderer.c: Don't include art_config.h if others
6641         also do, as it isn't #ifdef'd.
6643         * objects/flowchart/ellipse.c (ellipse_update_data): Add
6644         directions for connection points.
6646 2003-08-12  Lars Clausen  <lrclause@cs.uiuc.edu>
6648         * objects/flowchart/box.c (box_update_data): Add directions, use
6649         connpoint_update. 
6650         (box_load): Use g_malloc0.
6652         * lib/Makefile.am (libdia_la_SOURCES):
6653         * lib/connectionpoint.c (connpoint_update): 
6654         Function to call to update a connection point info in _update_data().
6655         
6656         * lib/connectionpoint.h: Convenience DIR_ macros.
6658         * app/preferences.c (prefs_data): Make pretty formatted XML the
6659         default.
6661         * lib/dialibartrenderer.c: 
6662         * app/render_libart.c: Make sure art_config.h is included, cause
6663         some libart headers are broken.
6665         * configure.in (HAVE_FREETYPE): Restore CPPFLAGS to old value
6666         after test.  Add freetype-config cflags to cflags variable.
6668 2003-08-11  Lars Clausen  <lrclause@cs.uiuc.edu>
6670         * app/authors.h: Credits for Krzysztof.
6672         * sheets/Flowchart.sheet.in: Updated descriptions from Krzysztof
6673         Foltman <kfoltman@onet.pl>.  It occurs to me that the name (rather
6674         than the description) is visible in the title of the properties
6675         dialog.  That ought to be a short description (translatable),
6676         though we still want long descriptions for the tooltips.  Hmmm...
6678         * configure.in: Updated to use AC_LINK_IFELSE instead of
6679         AC_TRY_COMPILE, also force to link to check libs on Solaris.
6681         * objects/ER/entity.c (entity_load): 
6682         * objects/ER/attribute.c (attribute_load): 
6683         * lib/attributes.c (attributes_set_default_font): 
6684         Check if font is non-null before unreffing.
6685         
6686 2003-08-08  Lars Clausen  <lrclause@cs.uiuc.edu>
6688         * app/diagram.c (diagram_ungroup_selected) 
6689         (diagram_group_selected): Use the undo apply to make sure grouping
6690         and ungrouping is done in consistent manners.  This removes a fair
6691         amount of duplicated code from diagram.c.
6693         * app/undo.c (ungroup_objects_revert, ungroup_objects_apply) 
6694         (group_objects_revert, group_objects_apply): Working undo/redo for
6695         diagram tree updates.  The initial actions still don't quite work.
6697 2003-08-07  Lars Clausen  <lrclause@cs.uiuc.edu>
6699         * app/create_object.c (create_object_button_press): 
6700         * app/undo.[ch]: 
6701         * app/diagram.c: Undo support for parenting.  Uses apply/revert in
6702         undo only for manipulating the parent/child relationships.  Things
6703         like removing an object doesn't use the undo functions for
6704         parenting, so any updates to come (like to diagramtree) should be
6705         done in those, too.
6707 2003-08-03  Hans Breuer  <hans@breuer.org>
6709         * app/create_object.c : minor formating and g_new0 for
6710         tool creation
6712         * lib/bezier_conn.[hc] lib/beziershape.[hc]
6713           lib/prop_geomtypes.c (prop_geomtypes_register)
6714           objects/standard/bezier.c objects/standard/beziergon.c :
6715         ability to set bezpoints via StdProp api
6717         * plug-ins/python/pydia-property.c : convert list of tuples
6718         to BEZPOINTARRAY
6720         *  plug-ins/python/diasvg_import.py : use it to
6721         implement part of path parsing. Also minor improvements
6722         like inheritance of group attributes to members,
6723         whitespace, title and style:text/css ignoring ;-)
6725 2003-08-02  Hans Breuer  <hans@breuer.org>
6727         * lib/connections.c (connection_move_handle): return
6728         something to make it compile
6729         * lib/object.c(190) : error C4033: 'object_list_move_delta_r' 
6730         must return a value -> dito
6731         [Is there a warnings-as-errors switch we could use with gcc 
6732          to avoid such in future ?]
6734         * plug-ins/python/pydia-object.h : define *_Check macros
6735         * plug-ins/python/diamodule.c : provide dia.group_create()
6736         * plug-ins/python/pydia-diagramdata.c : add 
6737         DiaDiagramData.add_layer()
6738         * plug-ins/python/pydia-property.c : allow to set color by
6739         tuple of doubles
6741         *  plug-ins/python/diasvg_import.py : based on the above
6742         implement a) group support, b) rgb(1,2,3) color handling,
6743         and somewhat fishy data:image/png;base64 support (create
6744         temporary files from inline image data)
6745         d) dump the import errors as text into an 'Error' layer
6747         *  plug-ins/python/diasvg.py : add xmlns:xlink, removed a
6748         stray " in draw_rect and corrected error message formating 
6750         * plug-ins/pydia/pydia-geometry.c : removed ## to make it
6751         compile with gcc 3.3, fixes bug #117204. Thanks to Daniel 
6752         Jacobowitz.
6753         
6754 2003-08-01  Hubert Figuiere  <hfiguiere@teaser.fr>
6756         * app/magnify.c (create_magnify_tool): allocate with g_new0()
6758         * app/preferences.c (prefs_create_dialog): use checkboxes for boolean 
6759         preferences values (see bug 118570). Also group items into a GtkFrame.
6761 2003-07-31  Lars Clausen  <lrclause@cs.uiuc.edu>
6763         * app/menus.c:
6764         * app/menus.h:
6765         * app/commands.h: 
6766         * app/commands.c (objects_unparent_children_callback): 
6767         * app/diagram.h: 
6768         * app/diagram.c (diagram_unparent_selected,
6769         (diagram_update_menu_sensitivity): 
6770         Added unparenting of single children.
6772         * lib/bezier_conn.c:
6773         * lib/bezier_conn.h:
6774         * lib/beziershape.c:
6775         * lib/beziershape.h:
6776         * lib/connection.c:
6777         * lib/connection.h:
6778         * lib/element.c:
6779         * lib/element.h:
6780         * lib/group.c:
6781         * lib/neworth_conn.c:
6782         * lib/neworth_conn.h:
6783         * lib/object.h:
6784         * lib/orth_conn.h:
6785         * lib/poly_conn.c:
6786         * lib/poly_conn.h:
6787         * lib/polyshape.c:
6788         * lib/polyshape.h:
6789         * objects/EML/instantiation.c:
6790         * objects/EML/interaction-ortho.c:
6791         * objects/EML/interaction.c:
6792         * objects/EML/process.c:
6793         * objects/ER/attribute.c:
6794         * objects/ER/entity.c:
6795         * objects/ER/participation.c:
6796         * objects/ER/relationship.c:
6797         * objects/FS/flow-ortho.c:
6798         * objects/FS/flow-poly.c:
6799         * objects/FS/flow.c:
6800         * objects/FS/function.c:
6801         * objects/GRAFCET/action.c:
6802         * objects/GRAFCET/condition.c:
6803         * objects/GRAFCET/step.c:
6804         * objects/GRAFCET/transition.c:
6805         * objects/GRAFCET/vector.c:
6806         * objects/GRAFCET/vergent.c:
6807         * objects/Misc/analog_clock.c:
6808         * objects/SADT/annotation.c:
6809         * objects/SADT/arrow.c:
6810         * objects/SADT/box.c:
6811         * objects/UML/activity.c:
6812         * objects/UML/actor.c:
6813         * objects/UML/association.c:
6814         * objects/UML/branch.c:
6815         * objects/UML/class.c:
6816         * objects/UML/classicon.c:
6817         * objects/UML/component.c:
6818         * objects/UML/constraint.c:
6819         * objects/UML/dependency.c:
6820         * objects/UML/fork.c:
6821         * objects/UML/generalization.c:
6822         * objects/UML/implements.c:
6823         * objects/UML/large_package.c:
6824         * objects/UML/lifeline.c:
6825         * objects/UML/message.c:
6826         * objects/UML/node.c:
6827         * objects/UML/note.c:
6828         * objects/UML/object.c:
6829         * objects/UML/realizes.c:
6830         * objects/UML/small_package.c:
6831         * objects/UML/state.c:
6832         * objects/UML/state_term.c:
6833         * objects/UML/usecase.c:
6834         * objects/chronogram/chronoline.c:
6835         * objects/chronogram/chronoref.c:
6836         * objects/custom/custom_object.c:
6837         * objects/flowchart/box.c:
6838         * objects/flowchart/diamond.c:
6839         * objects/flowchart/ellipse.c:
6840         * objects/flowchart/parallelogram.c:
6841         * objects/network/bus.c:
6842         * objects/network/wanlink.c:
6843         * objects/standard/arc.c:
6844         * objects/standard/bezier.c:
6845         * objects/standard/beziergon.c:
6846         * objects/standard/box.c:
6847         * objects/standard/ellipse.c:
6848         * objects/standard/image.c:
6849         * objects/standard/line.c:
6850         * objects/standard/polygon.c:
6851         * objects/standard/polyline.c:
6852         * objects/standard/textobj.c:
6853         * objects/standard/zigzagline.c:
6854         Binary compatibility update:  Added return value for foo_move() and
6855         foo_move_handle().  Orthconn derivatives also returns change from
6856         orthconn_move_handle().
6857         
6858         * lib/orth_conn.c: Undo support for autorouting.  Neworthconn
6859         doesn't support it yet.
6861         * lib/object.c (object_list_move_delta_r, object_list_move_delta):
6862         Add returning ObjectChange from object moves.  Needs to handle
6863         multiple object moves.
6865         * app/modify_tool.c (modify_motion, modify_release): Add
6866         ObjectChange from move & move_handle to undo stack.
6868         * objects/EML/instantiation.c (instantiation_move): Removing
6869         duplicate move & update.
6871 2003-07-30  Lars Clausen  <lrclause@cs.uiuc.edu>
6873         * plug-ins/xfig/xfig-export.c: Added support for arrow head
6874         export.  Many arrow types not supported by XFig, replacing those
6875         with standard arrows.  Not sure whether it'd be better to render
6876         them as a group of lines instead.  You'd lose the arrow-ness for
6877         further editing, but preserve the actual shape of it.  Also added
6878         support for dash length.
6880         * plug-ins/xfig/xfig-import.c: Added support for dash length settings.
6882         * plug-ins/xfig/fig-format-3.2: Added copy of Fig format
6883         description for version 3.2, for reference.
6885         * plug-ins/xfig/xfig-import.c: Added import of arrows.
6887         * app/menus.c: Removed prefs item from Gnome diagram menu.  Made
6888         Align Vertical Adjacent call _v rather than _h.
6890 2003-07-29  Hubert Figuiere  <hfiguiere@teaser.fr>
6892         * app/scroll_tool.c (create_scroll_tool): 
6893         * app/modify_tool.c (create_modify_tool): use g_new0() to
6894         initialize the tool
6896 2003-07-29  Lars Clausen  <lrclause@cs.uiuc.edu>
6898         * configure.in: Added proper settings for XSLT_LIBS and XSLT_CFLAGS.
6900 2003-07-24  Pablo Saratxaga  <pablo@mandrakesoft.com>
6902         * configure.in: Added Macedonian (mk) to ALL_LINGUAS
6904 2003-07-23  Dmitry G. Mastrukov  <dmitry@taurussoft.org>
6906         * configure.in: Added Belarusian to ALL_LINGUAS.
6908 2003-07-19  Hans Breuer  <hans@breuer.org>
6910         [
6911          Make the xslt plug-in work on win32, too. It appears
6912          to require a quite recent version of libxml and libxslt,
6913          otherwise windoze pathes aren't translated correctly
6914          during file processing
6915         ]
6917         * plug-ins/xslt/xslt.h : #include <glib.h> before 
6918         using G_OS_WIN32
6920         * plug-ins/xslt/xslt.c : plugged some memory leaks and do
6921         the 'script' file finding similar to how it is done
6922         with the python scripts (no need for hardcoded pathes,
6923         removed the 'plugin' part from the path)
6925         * plug-ins/xslt/stylesheets.xml : added again. It does
6926         not have any path but only the pure filename again
6928         * plug-ins/xslt/stylesheets.xml.in : removed
6930         * plug-ins/xslt/Makefile.am : removed 'plugin' and the
6931         rule to process stylesheets.xml.in
6933         * plug-ins/makefile.msc : added xslt
6935 2003-07-19  Hans Breuer  <hans@breuer.org>
6937         Finally Dia learned to remember the recent selected sheet
6939         * app/preferences.[hc] : added prefs.recent_sheet
6940         * app/interface.c : restore and remember the sheet-option-menu
6941         history, but only if the respective number is stiil available.
6942         This additional adds robustness against running Dia without
6943         any sheet (e.g. installation problems)
6944         * app/app_procs.c : call prefs_safe() in app_exit() to remember
6945         changes which are not done by the prefernces dialog
6947         * app/diagram_tree_menu.c app/diagram_tree_menu_callbacks.c :
6948         removed every call (especially the conditional ones) to prefs_safe().
6949         Before prefs_safe() was called _many_ times during Dia startup
6951 2003-07-18  Hans Breuer  <hans@breuer.org>
6953         * app/makefile.msc lib/makefile.msc lib/libdia.def :
6954         updated win32 build
6956         * lib/color.c : use gtk_widget_get_default_visual();
6957         as suggested in #114536
6959         * app/interface.c app/disp_callbacks.c :
6960         moved round_up () to the latter file where it is used
6962         * app/linewidth_area.c : #include "interface.h" for
6963         interface_get_toolbox_shell()
6965 2003-07-18  Hubert Figuiere  <hfiguiere@teaser.fr>
6967         * plug-ins/pixbuf/.cvsignore
6968         * shapes/Cisco/.cvsignore: 
6969         added cvsignore
6971 2003-07-17  Lars Clausen  <lrclause@cs.uiuc.edu>
6973         * app/dia-props.c (diagram_properties_retrieve): Use
6974         diagram_get_name() to add the diagram name to the diagram
6975         properties dialog.
6977         * app/diagram.h: 
6978         * app/diagram.c (diagram_get_name): New function to get a
6979         reasonable diagram name.
6981         * lib/diagramdata.h: Added major_lines, dynamic and colour to grid
6982         info.  Still need to be able to set dynamic grid.  Also ought to
6983         follow Gnome style and have instant apply.
6985         * app/preferences.h: 
6986         * app/preferences.c (prefs_data): Remove option to use stippled
6987         grid, add option for major line offset.  Default to 5 minor lines
6988         per major line.
6989         Add option for dynamically sized grid.
6991         * app/display.c (ddisplay_render_pixmap): Call pagebreak_draw as well.
6993         * app/grid.c: Pagebreak drawing separated out.  Grid drawing using
6994         stippled/solid to display minor/major grid lines.  Line drawing in
6995         separate functions away from calculating line distance.
6997         * app/grid.h: Split page break drawing out of grid_draw.
6999         * app/layer_dialog.c (layer_dialog_show): Patch from Hubert
7000         Figuiere <hfiguiere@teaser.fr>:  Layer dialog show go to front
7001         when menu item is selected.
7003 2003-07-15  Lars Clausen  <lrclause@cs.uiuc.edu>
7005         * configure.in: Removed -Winline flag to make way for important
7006         warnings. 
7008         * samples/UML-demo.dia: Adjusted for 0.91 font size, saved as
7009         non-compressed.  Should fix bug #117381, also look prettier.
7010         
7011         * Makefile.am: 
7012         * dia.desktop.in: Patch from Mark McLoughlin <mark@skynet.ie>:
7013         Set up desktop info more properly.
7015 2003-07-13  Lars Clausen  <lrclause@cs.uiuc.edu>
7017         * activity.c:
7018         * actor.c:
7019         * branch.c:
7020         * class.c:
7021         * classicon.c:
7022         * component.c:
7023         * large_package.c:
7024         * lifeline.c:
7025         * node.c:
7026         * note.c:
7027         * object.c:
7028         * small_package.c:
7029         * state.c:
7030         * state_term.c:
7031         * usecase.c: 
7032         Autorouting directions patch from Krzysztof Foltman
7033         <kfoltman@onet.pl>.
7035         * app/menus.c: Wrong GNOME paren fixed.  Correct callbacks for
7036         GNOME parent menu items.
7037         
7038         * app/authors.h: Added Vadim to contributors list.
7040 2003-07-12  Lars Clausen  <lrclause@cs.uiuc.edu>
7042         * app/commands.[ch]: 
7043         * app/create_object.c: 
7044         * app/disp_callbacks.[ch]: 
7045         * app/diagram.[ch]: 
7046         * app/interface.c: 
7047         * app/load_save.c: 
7048         * app/menus.[ch]:
7049         * app/modify_tool.c
7050         * app/undo.[ch]:
7051         * lib/Makefile.am:
7052         * lib/group.c: 
7053         * lib/object.[ch]: 
7054         * lib/parent.[ch]:
7055         * objects/UML/large_package.c: Patch from Vadim Berezniker
7056         <vadim@berezniker.com>: 
7057         Objects may "parent" other objects, i.e. contain them within
7058         themselves, restrain them and move them along.  Some more stuff is
7059         needed, such as selection and individual unparenting.  This adds
7060         parenting to UML - Large Package rather than Box.
7062 2003-07-11  Lars Clausen  <lrclause@cs.uiuc.edu>
7064         * app/linewidth_area.c: Patch from Krzysztof Foltman
7065         <kfoltman@onet.pl>: Make linewidth dialog conform to HIG (well,
7066         conform more, at least:).
7068         * plug-ins/metapost/render_metapost.[ch] : Applied patch from
7069         Chris Sperandio <sperandi@eng.usf.edu>:  Fixed linewidths and
7070         arcs.  Implemented images (though there is some pixelization and
7071         banding in the output).  Changed output file format to be a little
7072         more readable.  
7074         * app/app_procs.c (app_exit): Added message for double exit, which
7075         shouldn't happen any more.  Also preventing strange g_object_unref
7076         messages by having a printf after gtk_main_quit.  This is really
7077         weird.
7079         * app/interface.c (toolbox_delete): Avoid double app_exit call by
7080         removing handler for destroy when delete is called.
7082 2003-07-07  Lars Clausen  <lrclause@cs.uiuc.edu>
7084         * app/display.h: 
7085         * app/display.c (ddisplay_scroll_to_object,
7086         ddisplay_scroll_center_point):  New function for easy scrolling to
7087         object or point.
7089 2003-07-06  Lars Clausen  <lrclause@cs.uiuc.edu>
7091         * plug-ins/xslt/Makefile.am: Patch from Hubert Figuiere:  Add
7092         $(srcdir) on stylesheets.xml.
7094         * app/menus.c: Patch from Hubert Figuiere: Adds help menu to
7095         diagram menus (since they're at the top by default now).  Also
7096         move the Properties... menu item from Dialogs to Objects.  Dialogs
7097         menu should disappear at some point.
7099         * autogen.sh: Patch from Hubert Figuiere: Don't automatically call
7100         ./configure from ./autogen.sh, as configure may need to be run
7101         from a different directory.  (Also more standard this way.)
7103         * app/app_procs.c (app_init): 
7104         * app/Makefile.am (INCLUDES): Gnome standardization patch from
7105         Alex. 
7107 2003-07-03  Lars Clausen  <lrclause@cs.uiuc.edu>
7109         * objects/flowchart/parallelogram.c (pgram_update_data):
7110         Left/right alignment for parallelograms.  Doesn't use all
7111         available space, but then pgrams also ignore their shear value.
7112         This thing needs a loving hand.
7114 2003-07-01  Hans Breuer  <hans@breuer.org>
7116         * lib/properties.h : introduce PROP_FLAG_OPTIONAL
7117         * lib/proplist.c : don't complain if optional attr is missing
7118         * lib/orth_conn.h : make "orth_autoroute" optional to
7119         stop complaining with older files.
7121 2003-06-13  Guntupalli Karunakar  <karunakar@freedomink.org>
7123         * configure.in: Added "ml" for Malayalam in ALL_LINGUAS.
7125 2003-06-05  Andrew Halper  <ashalper@cox.net>
7127         * app/diagram_tree.c : add scrolling of drawing area
7128         to desired object on "Locate".  Patch modified to use new ddisplay
7129         function ddisplay_scroll_to_object().
7131 2003-06-11  Lars Clausen  <lars@raeder.dk>
7133         * lib/diagramdata.h: Added major_lines, dynamic and colour to grid
7134         info.  Before next version, the grid dialog (view dialog, really)
7135         must be redone to allow a) instant apply, b) apply to all
7136         diagrams, and c) setting colour, dynamic, major lines.
7138         * app/preferences.h: 
7139         * app/preferences.c (prefs_data): Remove option to use stippled
7140         grid, add option for major line offset.  Default to 5 minor lines
7141         per major line.
7142         Add option for dynamically sized grid.
7144         * app/display.c (ddisplay_render_pixmap): Call pagebreak_draw as well.
7146         * app/grid.c: Pagebreak drawing separated out.  Grid drawing using
7147         stippled/solid to display minor/major grid lines.  Line drawing in
7148         separate function away from calculating line distance.
7150         * app/grid.h: Split page break drawing out of grid_draw.
7152 2003-05-15  Hans Breuer  <hans@breuer.org>
7154         * plug-ins/python/diasvg.py : add xlink definition,
7155         also avoid to put spaces into attribute values. At least
7156         Sodipodi doesn't like them in width/height attributes
7158         * plug-ins/python/diasvg_import.py : add simple scaling.
7159         Some (more) handling for <svg>, <desc>, <circle>        
7161         * plug-ins/python/scascale.py : (new file) which does
7162         some experimental scaling via StdProp api
7164         * plug-ins/python/pydia-cpoint.c 
7165           plug-ins/python/pydia-handle.c : return PyDiaPoint for
7166         obj.pos not simple tuples. PyDiaPoint has a tuple interface
7167         so this may even be api compatible ...
7169 2003-05-11  Hans Breuer  <hans@breuer.org>
7171         * app/line_area.c : add window position persitence
7173         * lib/poly_conn.[hc] lib/polyshape.[hc] : allow to set 
7174         'poly_points' via StdProp api
7175         * lib/neworth_conn.h : don't rely on OrthConn and 
7176         NewOrtConn having the same struct offsets
7178         * lib/properties.h : introduce PROP_FLAG_WIDGET_ONLY
7179         to help separating 'useful' properies - in terms of
7180         the PyDia access
7182         * objects/custom/custom_object.c
7183           objects/UML/*.c
7184         add the missing prop_desc_list_calculate_quarks to
7185         all the *_describe_props()
7187         * objects/standard/beziergon.c objects/standard/bezier.c :
7188         explicit initializtion of default_user_data
7189         * objects/standard/polygon.c objects/standard/polyline.c :
7190         Same here. Also use POLY<CONN|SHAPE>_COMMON_PROPERTIES
7192         * plug-ins/python/diamodule.c : implement dia.register_import
7194         * plug-ins/python/makefile.msc : need to link with Pango
7195         for pango_color_parse()
7197         * plug-ins/python/pydia-property.c : add a bunch of type
7198         conversions to PyDiaProperty_ApllyToObject()
7200         * plug-ins/python/diasvg_import.py : (new file) which currently
7201         is mainly a stress test for PyDia but for some files already
7202         produces better results than svg-import.c
7204 2003-05-06  Lars Clausen  <lrclause@cs.uiuc.edu>
7206         * objects/UML/uml.c (uml_get_operation_string): Avoid ':' on
7207         type-less operations.
7209 003-05-03  Hasbullah Bin Pit  <sebol@ikhlas.com>
7211         * configure.in(ALL_LINGUAS): Added "ms".
7213 2003-05-01  Lars Clausen  <lrclause@cs.uiuc.edu>
7215         * plug-ins/xslt/xslt.c (xslt_ok): 
7216         * plug-ins/shape/shape-export.c (new_shape_renderer): 
7217         * plug-ins/svg/render_svg.c (new_svg_renderer): 
7218         * plug-ins/hpgl/hpgl.c (export_data): 
7219         * plug-ins/dxf/dxf-export.c (export_dxf): 
7220         * plug-ins/metapost/render_metapost.c (export_metapost): 
7221         * plug-ins/pstricks/render_pstricks.c (export_pstricks): 
7222         * plug-ins/xfig/xfig-export.c (export_fig): 
7223         * plug-ins/wpg/wpg.c (export_data): 
7224         * plug-ins/cgm/cgm.c (export_cgm): 
7225         * app/render_eps.c (export_eps): 
7226         * app/export_png.c (export_png_ok): 
7227         * app/load_save.c (diagram_data_save): Adding and standardizing
7228         output file error messages to include fopen error message.
7230 2003-05-01  Steffen Macke <sdteffen@web.de>
7232         * app/persistence.c: do not use unistd.h for MSVC build
7234 2003-04-30  Lars Clausen  <lrclause@cs.uiuc.edu>
7236         * sheets/Assorted.sheet.in
7237         * sheets/Circuit.sheet.in
7238         * sheets/Contact.sheet.in
7239         * sheets/EML.sheet.in
7240         * sheets/ER.sheet.in
7241         * sheets/Electric.sheet.in
7242         * sheets/FS.sheet.in
7243         * sheets/Flowchart.sheet.in
7244         * sheets/GRAFCET.sheet.in
7245         * sheets/Logic.sheet.in
7246         * sheets/MSE.sheet.in
7247         * sheets/Misc.sheet.in
7248         * sheets/Pneumatic.sheet.in
7249         * sheets/SADT.sheet.in
7250         * sheets/SDL.sheet.in
7251         * sheets/UML.sheet.in
7252         * sheets/chronogram.sheet.in
7253         * sheets/ciscohub.sheet.in
7254         * sheets/ciscomisc.sheet.in
7255         * sheets/cisconetwork.sheet.in
7256         * sheets/ciscorouter.sheet.in
7257         * sheets/civil.sheet.in
7258         * sheets/network.sheet.in
7259         * sheets/sybase.sheet.in:
7260         Patch from Jan-Willem Harmanny <jwharmanny@zeelandnet.nl>
7261         standardizes shape descriptions to use no articles, no 'create
7262         ...'.
7263         
7264         * app/interface.c (tool_data): Standard objects follow same
7265         standard as sheets.
7267 2003-04-29  Lars Clausen  <lrclause@cs.uiuc.edu>
7269         * app/color_area.c (color_area_edit): More informative title on
7270         color selection dialog.
7272         * app/disp_callbacks.c (ddisplay_drop_object): Update menu
7273         sensitivity when dropping object in.  Also reset tool to pointer.
7275         * objects/flowchart/diamond.c (diamond_update_data): 
7276         * objects/flowchart/parallelogram.c (pgram_update_data): Added
7277         left and right alignment options.
7279 2003-04-28  Lars Clausen  <lrclause@cs.uiuc.edu>
7281         * objects/flowchart/box.c: Added left and right alignment options.
7283 2003-04-26  Lars Clausen  <lrclause@cs.uiuc.edu>
7285         * app/persistence.c (persistence_load): Test existence of
7286         persistence file before trying to open it.
7288 2003-04-25  Lars Clausen  <lrclause@cs.uiuc.edu>
7290         * app/properties.c: Escape now closes properties dialogs.
7292 2003-04-25  Hans Breuer  <hans@breuer.org>
7294         * app/config.h.win32 : bump version to 0.91+cvs
7296         * app/makefile.msc lib/makefile.msc lib/libdia.def : updated
7298         * lib/dia_dirs.c : G_OS_WIN32: #define mkdir(s,a) _mkdir(s)
7300         * app/commands.c : don't leak "netscape" if getenv("BROWSER")
7301         returns NULL
7303         * app/presistence.c : need to #include "dia_xml_libxml.h"
7304         for xmlDiaParseFile
7306         * app/layer_dialog.c : make delayed creation work by protecting
7307         all non static layer_dialog_*() with :
7308            if (layer_dialog == NULL || layer_dialog->dialog == NULL)
7309              create_layer_dialog();
7310         * app/app_procs.c : removed /* create_layer_dialog(); */
7312         * objects/uml/association.c : give it a minimal StdProp
7313         implementation to fix bug #108896
7314         * lib/object_defaults.c : don't try to copy props if there
7315         is no obj->ops->describe_props
7317 2003-04-24  Lars Clausen  <lrclause@cs.uiuc.edu>
7319         * objects/standard/image.c (image_create): 
7320         * objects/standard/ellipse.c (ellipse_create): 
7321         * objects/standard/box.c (box_create): 
7322         * objects/flowchart/ellipse.c (ellipse_create): 
7323         * objects/flowchart/diamond.c (diamond_create): 
7324         * objects/flowchart/box.c (box_create): 
7325         * objects/custom/custom_object.c (custom_create): 
7326         * objects/ER/relationship.c (relationship_create): 
7327         * objects/ER/entity.c (entity_create): 
7328         * objects/ER/attribute.c (attribute_create): Initialize
7329         elem->height to DEFAULT_HEIGHT instead of DEFAULT_WIDTH.
7331         * lib/dia_svg.c (dia_svg_parse_style): Added case to set center
7332         alignment. 
7334         * configure.in: 
7335         * plug-ins/Makefile.am: 
7336         * plug-ins/xslt/Makefile.am: 
7337         * plug-ins/xslt/xslt.c (dia_plugin_init): 
7338         Patch from Götz Waschk <waschk@informatik.uni-rostock.de> uses
7339         automake-style if to only include xslt dir when needed.  Works
7340         with automake 1.4 and up, at least.
7342 2003-04-22  Lars Clausen  <lrclause@cs.uiuc.edu>
7344         * lib/diasvgrenderer.c (draw_string): 
7345         * lib/dia_svg.c (dia_svg_parse_style): Use
7346         text-anchor:(start|middle|end).
7348         * lib/diasvgrenderer.c (draw_polygon, fill_polygon): Use svg
7349         polygon rather than polyline & avoid missing line pieces.
7350         (get_draw_style): Set fill-opacity to 0 on draw_style to avoid
7351         black-filled things.
7353 2003-04-21  Lars Clausen  <lrclause@cs.uiuc.edu>
7355         * app/persistence.c (persistence_load): Check that persistence
7356         file exists before trying to read it.
7357         (persistence_update_window): Removed printf.
7359         * objects/GRAFCET/step.c: Don't copy defaults for name and id.
7361         * lib/autoroute.c: Take badness into the layouters again, as some
7362         of them know they can do things that are pretty but would be
7363         counted as ugly by the default calculation.
7365         * objects/UML/large_package.c: Shrink package name box when no
7366         stereotype is present.
7368         * lib/orth_conn.h (ORTHCONN_COMMON_MENUS): 
7369         * lib/orth_conn.c: Added object menu item for autorouting.
7371         * objects/FS/flow-ortho.c (orthflow_get_object_menu): 
7372         Autorouting, plus set initial dragging handle to be the end, not
7373         the middle.
7374         (orthflow_draw): Flipped arrow place to be at the end, as
7375         originally intended (got lost in arrow update).
7377         * objects/standard/zigzagline.c (zigzagline_get_object_menu): 
7378         * objects/UML/dependency.c (dependency_get_object_menu): 
7379         * objects/UML/association.c (association_get_object_menu): 
7380         * objects/UML/realizes.c (realizes_get_object_menu): 
7381         * objects/SADT/arrow.c (sadtarrow_get_object_menu): 
7382         * objects/GRAFCET/vector.c (arc_get_object_menu): 
7383         * objects/ER/participation.c (participation_get_object_menu): 
7384         * objects/EML/instantiation.c (instantiation_get_object_menu): 
7385         * objects/UML/generalization.c (generalization_get_object_menu): 
7386         * objects/EML/interaction-ortho.c (interaction_ortho_get_object_menu): 
7387         Autorouting setup (currently disabled for SADT/arrow).
7388         
7389 2003-04-19  Lars Clausen  <lrclause@cs.uiuc.edu>
7391         * lib/autoroute.c: Removed printfs.
7393         * lib/orth_conn.c: 
7394         * lib/autoroute.[ch] (autoroute_layout_orthconn): Handle
7395         non-connected orthconns too.
7397 2003-04-18  Lars Clausen  <lrclause@cs.uiuc.edu>
7399         * lib/orth_conn.h: 
7400         * lib/orth_conn.c: Function to set autorouting on/off, use
7401         autorouting in move_handle (turns off when a middle handle is
7402         moved), added to standard orthconn props. 
7404         * app/disp_callbacks.c (create_object_menu, popup_object_menu):
7405         Stopped signal emission for check menu items being set to on/off.
7407         * objects/standard/zigzagline.c: Added autorouting object menu item.
7409         * lib/autoroute.c: Added last cases of autoroute layout, fixed
7410         floating point comparison bug, cleaned up layouters, tweaked
7411         badness to allow kinks. 
7413 2003-04-17  Lars Clausen  <lrclause@cs.uiuc.edu>
7415         * lib/connectionpoint.h: Changed DIR_* macros to go around the
7416         clock. 
7418         * lib/orth_conn.[ch] (orthconn_set_points): New function to set all
7419         points at once.
7420         * objects/standard/zigzagline.c (zigzagline_move_handle): Removed
7421         old cruft, added call to autoroute (currently cannot be turned
7422         off).  Need to check what undo thinks about this.
7423         * lib/autoroute.[ch]: Fairly working simple layout.
7425         * lib/Makefile.am (libdia_la_SOURCES): Added autoroute files.
7426         * lib/autoroute.[ch]: Start of proper autorouting functionality.
7428 2003-04-10  Lars Clausen  <lrclause@cs.uiuc.edu>
7430         * lib/prop_widgets.c: Show labels on ListProp.
7432 2003-04-11  Steffen Macke <sdteffen@web.de>
7434         * doc/en/dia-manual.xml: removed reference of non-existing authors 
7435         note.
7436         * doc/en/usage-objects-selecting: commented out misleading section
7437         references.
7439 2003-04-10  Lars Clausen  <lrclause@cs.uiuc.edu>
7441         * app/app_procs.c (app_init): Layer window now opened at startup
7442         only if needed.
7444         * lib/prop_widgets.c: Show labels on ListProp.
7446 2003-04-09  Steffen Macke <sdteffen@web.de>
7448         * doc/en/*.sgml: removed files
7449         * doc/en/*.xml: added files
7450         * doc/en/Makefile.am: switched to XML DocBook
7452 2003-04-09  Lars Clausen  <lrclause@cs.uiuc.edu>
7454         * plug-ins/xslt/xslt.c (dia_plugin_init): 
7455         * configure.in: Added --with-xslt-prefix to allow other XSLT
7456         placements than /usr/lib.
7458 2003-04-09  Steffen Macke <sdteffen@web.de>
7460         * lib/makefile.mingw: updated to include latest files, including 
7461         and linking libintl
7462         * lib/geometry.h: don't define isinf and finite for mingw gcc build
7464 2003-04-08  Lars Clausen  <lrclause@cs.uiuc.edu>
7466         * app/persistence.h:
7467         * app/persistence.c (persistence_register_window_create): 
7468         * app/app_procs.c (app_init): 
7469         Register window function that doesn't create the window unless it
7470         should be open.  Other windows should move to this, so startup
7471         speed can be reduced.
7472         
7473         * app/persistence.h: Removed call prototype for update_window, now
7474         done internally.
7475         * app/persistence.c (persistence_register_window): A number of
7476         fixes.  Doesn't forget position when window is closed.  Now
7477         actually loads prefs.
7479         * app/layer_dialog.c (create_layer_dialog): Removed extraneous
7480         event connect.
7482         * app/preferences.c (prefs_data): 
7483         * app/diagram_tree_window.h: 
7484         * app/diagram_tree_window.c: Added persistence registering.
7485         Removed prefs items storing size and openness. 
7487         * app/sheets_dialog.c (create_sheets_main_dialog): Added
7488         persistence registering.  
7490         * app/Makefile.am (dia_core_files): Added persistence files.
7492         * lib/dia_dirs.h: 
7493         * lib/dia_dirs.c (dia_config_ensure_dir): New function to ensure
7494         that dirs are present.
7496         * app/app_procs.c (app_init): Loads persistent values on startup.
7497         (app_exit): Saves persistent values on exit.
7499         * app/layer_dialog.c (create_layer_dialog): Registers the layer
7500         window for persistence.
7502         * app/persistence.[ch]: New files handling various kinds of
7503         persistence.
7505 2003-04-04  Lars Clausen  <lrclause@cs.uiuc.edu>
7507         * lib/arrows.c: Adjusted arrow head spacing, more systematic arrow
7508         head spacing calculations.  Added half-circle arrow from Matthieu
7509         Sozeau <mattam@netcourrier.com> 
7511 2003-04-03  Lars Clausen  <lrclause@cs.uiuc.edu>
7513         * app/app_procs.c (app_init): Moved layer dialog init to allow
7514         tooltips to be initialized.
7516         * app/interface.c (create_display_shell): More tooltips.
7518         * app/linewidth_area.c (linewidth_area_create) 
7519         (linewidth_area_events): 
7520         * app/color_area.c (color_area_events, color_area_create): 
7521         Made tooltips work by embedding drawing_area in event_box.
7523         * app/interface.c (create_display_shell,
7524         (create_lineprops_area, create_color_area): Added a few tooltips.
7526 2003-04-01  Lars Clausen  <lrclause@cs.uiuc.edu>
7528         * app/pixmaps/off-grid.xpm: 
7529         * app/pixmaps/on-grid.xpm: 
7530         * app/Makefile.am (EXTRA_DIST): Added snap to grid icons.
7532         * app/display.h: 
7533         * app/commands.c (view_snap_to_grid_callback): 
7534         * app/display.c (ddisplay_set_snap_to_grid) 
7535         (update_snap_grid_status): 
7536         * app/interface.c (create_display_shell, grid_toggle_snap): 
7537         Added snap-to-grid status button.
7539 2003-03-31  Lars Clausen  <lrclause@cs.uiuc.edu>
7541         * app/app_procs.c (app_init): Create a new diagram if a file on
7542         the command line isn't found.
7544 2003-03-17  Lars Clausen  <lrclause@cs.uiuc.edu>
7546         * lib/dialibartrenderer.c (draw_string): Correct color handling
7547         for AA.
7549 2003-03-14  Lars Clausen  <lrclause@cs.uiuc.edu>
7551         * NEWS: 
7552         * doc/en/dia-manual.sgml: 
7553         * doc/pl/dia-manual.sgml: 
7554         * configure.in: 
7555         * dia.spec (Release): 
7556         Version 0.91 is here!
7558 2003-02-10  Steffen Macke <sdteffen@web.de>
7560         * plug-ins/wmf/wmf.cpp: patch from Ken Tsukahara 
7561         <ken.tsukahara@tmt-d.co.jp>, fixes windows printing and WMF export of
7562         non-ANSI characters, closes #107980
7564 2003-03-04  Lars Clausen  <lrclause@cs.uiuc.edu>
7566         * configure.in: 
7567         * NEWS: 
7568         * dia.spec (Release): 
7569         * doc/en/dia-manual.sgml: Upping to pre6.
7571         * configure.in: Missing comma broke HAVE_IEEEFP_H test.
7573         * app/lineprops_area.c (dia_arrow_chooser_new): Fixing bug
7574         #107511:  Make arrow selector for correct arrow type.
7576 2003-03-03  Lars Clausen  <lrclause@cs.uiuc.edu>
7578         * shapes/Circuit/Makefile.am (SHAPES): Added hjumper.png to
7579         EXTRA_DIST.
7581 2003-03-02  Lars Clausen  <lrclause@cs.uiuc.edu>
7583         * doc/en/dia-manual.sgml: 
7584         * configure.in: 
7585         * NEWS: 
7586         * dia.spec (Release): Upping to pre5.
7588         * configure.in: Add freetype-config derived libs to the
7589         AC_CHECK_LIB statement for freetype.
7591 2003-02-28  Hans Breuer  <hans@breuer.org>
7593         [fix for bug #107203]
7595         * lib/diarenderer.c : add warning 'implementation'
7596         for fill_rect to avoid crashing with a renderer
7597         which does not implement this required function.
7599         * plug-ins/dxf/dxf-export.c : provide - still empty -
7600         'implementations' for fill_rect and fill_polygon 
7601         to suppress the above warnings. Now it works like
7602         in version 0.90 
7604 2003-02-28  Steffen Macke <sdteffen@web.de>
7606         * samples/all_objects.dia: New sheet containing all dia shapes
7607         and objects; one layer per sheet
7608         
7609 2003-02-28  Lars Clausen  <lrclause@cs.uiuc.edu>
7611         * lib/prop_text.c (multistringprop_get_widget,
7612         multistringprop_reset_widget, multistringprop_set_from_widget): 
7613         Now uses GtkTextView instead of deprecated stuff, and also works:)
7615         * configure.in: Slightly more informative error message for isinf.
7617         * dia.spec (Requires): Require libxml2 rather than libxml.
7619 2003-02-28  Steffen Macke <sdteffen@web.de>
7621         * shapes/Circuit/hjumper.png:
7622         * shapes/Circuit/hjumper.shape: added missing icon for horizontal
7623         jumper shape
7624         
7625 2003-02-26  Lars Clausen  <lrclause@cs.uiuc.edu>
7627         * doc/en/dia-manual.sgml: 
7628         * configure.in: 
7629         * dia.spec (Release):
7630         * NEWS: New prerelease 0.91pre4, two important fixes.
7632 2003-02-25  Lars Clausen  <lrclause@cs.uiuc.edu>
7634         * plug-ins/xslt/Makefile.am (EXTRA_DIST): Also dist
7635         stylesheets.xml.in 
7637         * app/commands.c (help_manual_callback): More correct URL for help
7638         page (include file://, was broken on Dillo without it).
7640 2003-02-24  Lars Clausen  <lrclause@cs.uiuc.edu>
7642         * app/disp_callbacks.c: Set modifed when text is changed.
7644         * app/modify_tool.c (modify_button_release): Allow undo for moving
7645         objects.
7647 2003-02-16  Lars Clausen  <lrclause@cs.uiuc.edu>
7649         * dia.spec: 
7650         * doc/en/dia-manual.sgml: 
7651         * NEWS: 
7652         * configure.in: New prerelease with important bugfix.
7653         * shapes/network/digitizing_board.png:
7654         * shapes/network/plotter.png: Re-adding with -kb.
7655         
7656 2003-02-17  Abel Cheung  <maddog@linux.org.hk>
7658         * app/app_procs.c (app_init): Add comment for translators.
7660 2003-02-16  Lars Clausen  <lrclause@cs.uiuc.edu>
7662         * lib/filter.c (filter_register_import, filter_register_export):
7663         Don't accept filters with NULL description.
7665         * lib/plug-ins.c (dia_plugin_load): Fail if there's no description
7666         (as we assume the description is available in other places).
7668 2003-02-15  Lars Clausen  <lrclause@cs.uiuc.edu>
7669         
7670         * app/disp_callbacks.c (ddisplay_vsb_update, ddisplay_hsb_update): 
7671         * app/display.c (ddisplay_resize_canvas): Use
7672         ddisplay_add_update_all().
7673         (ddisplay_add_update_all): Free display and update lists when
7674         doing update_all, as they'll be regenerated immediately to cover
7675         all visible area.  Fixes bug #106165, crash when resizing.  This
7676         appears to be the original AA crash bug, believed long extinct.
7678 2003-02-13  Lars Clausen  <lrclause@cs.uiuc.edu>
7680         * app/commands.c (help_manual_callback): Use file: protocol for
7681         help. 
7683         * plug-ins/xslt/.cvsignore: Ignore .o files, please.
7685         * plug-ins/xslt/stylesheets: Removed old-style config file.
7686         
7687         * plug-ins/xslt/stylesheets.xml.in: New XML-based config file.
7689         * plug-ins/xslt/Makefile.am: 
7690         * plug-ins/xslt/xslt.c: Applied patch from Matthieu, improved path
7691         handling (no more DIA_PLUGIN_PATH).
7693 2003-02-11  Lars Clausen  <lrclause@cs.uiuc.edu>
7695         * plug-ins/svg/render_svg.c: 
7696         * lib/diasvgrenderer.c: Fixed numeric localized output issues.
7698 2003-02-10  Lars Clausen  <lrclause@cs.uiuc.edu>
7700         * objects/SADT/arrow.c (sadtarrow_draw): Clamp cosa, cosb to 
7701         [-1.0, 1.0].  Shouldn't be necessary, but in some cases the
7702         side of the triangle is longer than the hypotenuse.  Rounding
7703         error suspected.
7705 2003-02-09  Lars Clausen  <lrclause@cs.uiuc.edu>
7707         * NEWS: 
7708         * configure.in: 
7709         * doc/en/dia-manual.sgml: Update for pre2.
7711         * app/menus.c (display_menu_items): Fixed wrongly place separators.
7713         * objects/flowchart/box.c (box_update_data): Applied patch from
7714         Eivind Tagseth <eivind-gnome@multinet.no> to allow resize (with
7715         comment). 
7717         * app/paginate_psprint.c (print_page): Set paper name, so it
7718         convinces ps printers to use to right size.
7720 2003-02-07  Lars Clausen  <lrclause@cs.uiuc.edu>
7722         * app/properties.c (properties_show): Hide the dialog if the
7723         object is NULL (get rid of 'no properties' randomly popping up).
7725 2003-02-06  Lars Clausen  <lrclause@cs.uiuc.edu>
7727         * plug-ins/pixbuf/pixbuf.c (export_data): Adjust width and height
7728         for diagrams not starting at origo.
7730 2003-02-05  Lars Clausen  <lrclause@cs.uiuc.edu>
7732         * dia.spec (BuildRequires): Use libxml2-devel.
7734         * plug-ins/pixbuf/Makefile.am: Added to CVS.
7736         * RELEASE-PROCESS: Note on RPM version numbers.
7738         * app/interface.c (create_display_shell): Don't set as toolbar
7739         under Unix, either.  Especially not the diagram shell.  It removes
7740         it from the taskbar and makes it unresizable, always-on-top with
7741         OpenBox.  TOOLBAR != TOOLBOX.  Setting toolbox to the only
7742         appropriate thing, UTILITY, is not good either, you lose resizing
7743         and minimizing/maximizing under OpenBox.
7745         * app/menus.c (display_menu_items): Set delete item to use Delete.
7747 2003-02-04  Lars Clausen  <lrclause@cs.uiuc.edu>
7749         * dia.spec (BuildRequires, Requires): Updated for Gtk2
7750         requirements.
7752         * app/disp_callbacks.c (ddisplay_canvas_events): Only add a
7753         display flush when getting focus in, or we may get an update after
7754         the diagram has been destroyed in some cases.  Fixes bug #105221.
7756         * plug-ins/xfig/xfig-import.c: Notes on the splines used by XFig.
7758         * lib/diarenderer.c: Notes on the basis matrix for our beziers.
7760         * app/app_procs.c (app_init): Fixed missing popt context for Gnome
7761         - gnome-compiled Dia will now read files specified on the command line.
7763 2003-02-03  Lars Clausen  <lrclause@cs.uiuc.edu>
7765         * INSTALL (REQUIREMENTS): Updated requirements section.
7767         * configure.in: Better finite() check from MÃ¥rten Svantesson
7768         <f95-msv@nada.kth.se>.  Doesn't seem to generate strange dangly
7769         if's. 
7770         
7771 2003-02-03  Lars Clausen  <lrclause@cs.uiuc.edu>
7773         * plug-ins/xfig/xfig-import.c: Notes on spline conversions.
7775         * app/app_procs.c (debug_break): Added some code to avoid
7776         over-eager optimizations removing the call.  Surely there's a
7777         nicer way, but I'm not sure how.
7779         * app/diapsft2renderer.c (draw_bezier_outline): Removed paps relic
7780         that set text to black.
7782 2003-02-02  Lars Clausen  <lrclause@cs.uiuc.edu>
7784         * NEWS: Mention of Twiki as doc source for Python.
7786         * plug-ins/pixbuf/pixbuf.c: Export with pixbuf if
7787         libart/libpng is not available.  Later when we have a way of
7788         letting the user pick options in the file select dialog we shall
7789         allow the choice when applicable.
7791 2003-02-02  Steffen Macke <sdteffen@web.de>
7793         * doc/en/usage-loadsave.sgml:
7794         * doc/en/usage-objects.sgml: patch from
7795         James K. Lowden <jklowden@schemamania.org> to fix
7796         some docbook errors
7797         
7798 2003-02-01  Lars Clausen  <lrclause@cs.uiuc.edu>
7800         * plug-ins/Makefile.am (SUBDIRS): 
7801         * plug-ins/pixbuf/pixbuf.c: 
7802         * plug-ins/pixbuf/Makefile.am: 
7803         * configure.in: 
7804         Added pixbuf plugin to Makefile.am, but for import only.  PNG
7805         export handled by libart, which is better. JPG export is
7806         discouraged.  BMP is not much used on Unix.  Next release will
7807         integrate libart to allow all outputs.
7809 2003-02-01  Hans Breuer  <hans@breuer.org>
7811         * app/preferences.c :
7812         * app/pagesetup.c :
7813         the last two dialogs with 'old' button order finally
7814         are converted to gtk2, no GnomeDialog in all of Dia 
7815         anymore :-) 
7817 2003-02-01  Hans Breuer  <hans@breuer.org>
7819         * app/filedlg.c : don't try to use a button as
7820         'overwrite-file-dialog'-parent, use the FileSelDialog
7821         instead
7823         * plug-ins/pixbuf/pixbuf.c : make it work with 
7824         system-visual-depth < 24. Remove 'bmp' from output
7825         format extensions, it just was wishful thinking.
7827         * plug-ins/python/Makefile.am : added the four new python 
7828         plug-ins mentioned below to pyplugin_DATA and EXTRA_DIST
7830 2003-02-01  Hans Breuer  <hans@breuer.org>
7832         * NEWS : updated content beside dependencies
7834 2003-02-01  Hans Breuer  <hans@breuer.org>
7836         * lib/arrow.h : arrow_types needs to be declared as DIAVAR
7837         to make it useable across DLL boundaries
7838         * app/lineprops_area.c : same code to access arrow_types
7839         on all platforms
7841         * objects/UML/class.c : the non empty string is e.g.
7842         comment != NULL && comment[0] != '\0'
7843         * objects/UML/uml.c : same here, don't bother with
7844         empty operation stereotypes
7846 2003-02-01  Steffen Macke <sdteffen@web.de>
7848         * app/lineprops_area.c: latest changes do not work on
7849         windows, using old code without tooltips
7850         * makefile.msc: fixed copying of wmf.dll
7851         * plug-ins/makefile.msc: 
7852         * app/makefile.msc:
7853         * lib/makefile.msc: now linking libintl
7854         * config.h.win32: enabling native language support
7856 2003-01-31  Lars Clausen  <lrclause@cs.uiuc.edu>
7858         * plug-ins/xslt/Makefile.am (libxslt_filter_la_LDFLAGS): Removed
7859         -ldl and -lglib.  May or may not work on windows...awaiting verdict.
7861 2003-01-31  Daniel Yacob  <locales@geez.org>
7863         * configure.in: Added am (Amharic) to ALL_LINGUAS.
7865 2003-01-31  Steffen Macke <sdteffen@web.de>
7867         * objects/UML/class.c (umlclass_calculate_data): fixed crash
7868         when comments were visible, no class comment available and
7869         a attribute comment
7870          
7871 2003-01-31  Lars Clausen  <lrclause@cs.uiuc.edu>
7873         * RELEASE-PROCESS: Updated to fit new install-module syntax.
7874         * Prerelease 0.91-pre1 released on a suspecting public.  Tagging
7875         with DIA_0_91_PRE1.
7877 2003-01-30  Lars Clausen  <lrclause@cs.uiuc.edu>
7879         * config.h.win32: 
7880         * NEWS: 
7881         * configure.in:
7882         * dia.spec:
7883         Prerelease version changes, version 0.91-pre1.
7885         * app/sheets_dialog_callbacks.h: 
7886         * app/sheets_dialog_callbacks.c: 
7887         * app/sheets_dialog.c (create_sheets_main_dialog): 
7888         * app/sheets.c (sheets_dialog_create): More destroy stuff.  Trying
7889         to handle destruction of main dialog cleanly, but it's a mess.
7891         * configure.in: Downgraded ieeefp test to make it not produce
7892         illegal shell code.
7894         * lib/widgets.c (dia_arrow_selector_set_arrow): 
7895         (dia_line_style_selector_set_linestyle): Select menu dot
7896         correctly set.
7898         * lib/arrows.c (calculate_arrow_point): Fix of wrong arrow
7899         adjustment for diamondheads.
7901         * lib/plug-ins.c (dia_plugin_load): Fixed typo.
7903         * app/properties.c (create_dialog): Destroy properties dialog and
7904         box correctly.
7906         * app/sheets_dialog_callbacks.c
7907         (on_sheets_dialog_button_edit_clicked): Only create a new dialog
7908         if the old one is destroyed.
7910 2003-01-29  Lars Clausen  <lrclause@cs.uiuc.edu>
7912         * app/export_png.c (export_png_ok): Added info on resolution.
7913         Should (next release) improve export dialog to allow setting
7914         resolution instead of pixels.
7916         * app/lineprops_area.c (dia_arrow_chooser_new): Use menudesc list
7917         to generate arrowheads as well as tooltips.
7919         * lib/arrows.c: Added hollow diamond to menudesc list.
7921         * lib/arrows.[ch]: 
7922         * lib/widgets.[ch]: Moved arrow name list into arrows.[ch] to
7923         unify with rendered menu.
7925         * lib/diarenderer.c (draw_line_with_arrows)
7926         (draw_polyline_with_arrows, draw_arc_with_arrows)
7927         (draw_bezier_with_arrows): Fixed linestyle change bug (#104488)
7928         without changing renderer API.  Thanks to David Scherba for
7929         providing inspiration.
7931 2003-01-28  Lars Clausen  <lrclause@cs.uiuc.edu>
7933         * app/interface.c (create_display_shell):
7934         * app/display.h: Patching from Hubert Figuiere
7935         <hfiguiere@teaser.fr>:  Better types for menu bar widgets, and
7936         correct menu items.
7938 2003-01-26  Lars Clausen  <lrclause@cs.uiuc.edu>
7940         * app/defaults.c (defaults_show): Fixed defaults closing bug.
7941         Thanks to Hans for pointing it out.
7943 2003-01-25  Hans Breuer  <hans@breuer.org>
7945         * app/commands.c : don't warn about crashing libart renderer
7946         on win32. It simply doesn't render text anymore :-(
7948         * app/filedlg.c : use GtkMessageDialog for 'file overwrite'
7950         * objects/UML/class.c : don't access umlclass->properties_dialog
7951         after calling gtk_widget_destroy(umlclass->properties_dialog->dialog)
7952         which sets the former to NULL by destroy_properties_dialog() callback.
7954         * plug-ins/wmf/wmf.cpp : use dia_image_rowstride()
7956         * plug-ins/python/pydia-font.c : fix PyDiaFont_GetAttr()
7958         * plug-ins/python/pydia-image.c : add image.uri member
7959         not only useful for SVG rendering
7961         * plug-ins/python/diasvg.py : (new file) a more advanced
7962         example. A full blown SVG Renderer, currently only
7963         registered for .svgz
7965         * plug-ins/python/export-object.py : write text props
7967         * plug-ins/python/debug_objects.py : write prop.type and
7968         prop.visible 
7970 2003-01-25  Lars Clausen  <lrclause@cs.uiuc.edu>
7972         * objects/UML/association.c (association_update_data): Better
7973         bounding box for assoc with arrows.
7975         * lib/properties.h: New flag for properties with multiple values
7976         in groups.
7978         * app/lineprops_area.c (dia_arrow_chooser_dialog_show): Correct
7979         arrow updating in dialog.  Was broken due to changes from destroy
7980         fix:(
7982         * app/commands.c (view_aa_callback): AA warning only for Windows
7983         -- I trust the Unix side well enough.
7985         * app/render_libart.c (get_text_width): 
7986         * lib/dialibartrenderer.h (struct _DiaLibartRenderer): Font and
7987         font height can be taken from parent instance.
7989         * lib/dialibartrenderer.c (dia_libart_renderer_class_init) 
7990         (get_text_width): Proper cursor positioning for libart renderer.
7991         Ought to have a DiaInteractiveRenderer that these two can inherit
7992         from, that knows about transform.
7994 2003-01-25  Steffen Macke <sdteffen@web.de>
7996         * plug-ins/xslt/xslt.h: don't use dlfcn.h on win32. XSLT
7997         plug-in still not working on win32
7998         
7999 2003-01-24  Lars Clausen  <lrclause@cs.uiuc.edu>
8001         * app/disp_callbacks.c (ddisplay_canvas_events): Moved
8002         gdk_window_get_pointer to avoid destroy crash.  Simpler than I
8003         thought.
8005 2003-01-23  Lars Clausen  <lrclause@cs.uiuc.edu>
8007         * app/app_procs.c (app_init): Run gtk_init before popt so we don't
8008         bail out on gtk options.
8010         * lib/message.c (gtk_message_internal): Better handling of destroy
8011         event.
8013 2003-01-22  Lars Clausen  <lrclause@cs.uiuc.edu>
8015         * app/color_area.c (color_area_edit): 
8016         * lib/widgets.c (dia_file_selector_browse_pressed) 
8017         (dia_color_selector_pressed): 
8018         * app/plugin-manager.c (get_plugin_manager): 
8019         * app/filedlg.c (file_open_callback, file_save_as_callback) 
8020         (file_export_callback):
8021         * app/diagram_tree_window.c (diagram_tree_window_new): Correct
8022         handling of destroy event.
8024 2003-01-22  Alan Horkan <horkana@tcd.ie>
8026         * app/commands.c (file_new_callback): Changed Untitled to Diagram
8027         for default name.
8029 2003-01-21  Lars Clausen  <lrclause@cs.uiuc.edu>
8031         * app/preferences.c (prefs_create_dialog): 
8032         * app/linewidth_area.c (linewidth_create_dialog): 
8033         * app/lineprops_area.c (dia_arrow_chooser_dialog_show): 
8034         * app/layer_dialog.c (create_layer_dialog)
8035         (layer_dialog_edit_layer): Correct handling of destroy signal. 
8037         * app/diapsft2renderer.c (set_font): Adjust silly random factor
8038         for change in font.c
8040         * lib/widgets.c: Avoid warning when font menu file doesn't exist.
8042         * lib/font.c (dia_font_build_layout): Let's all use the same weird
8043         factor here.
8045         * app/lineprops_area.c (dia_arrow_chooser_dialog_show): 
8046         * app/layer_dialog.c (create_layer_dialog) 
8047         (layer_dialog_edit_layer): 
8048         * app/filedlg.c (file_open_callback, file_save_as_callback) 
8049         (file_export_callback): 
8050         * app/dia-props.c (create_diagram_properties_dialog): 
8051         * app/defaults.c (defaults_dialog_destroyed): 
8052         * app/color_area.c (color_area_edit): Dialog destroy event handling.
8054 2003-01-19  Lars Clausen  <lrclause@cs.uiuc.edu>
8056         * app/defaults.c (defaults_dialog_destroyed): Reset cache when
8057         defaults dialog destroyed.
8059 2003-01-19  Steffen Macke <sdteffen@web.de>
8061         * objects/makefile.msc: added bondgraph
8062         * plug-ins/makefile.msc: added GDK_PIXBUF_LIBS in order
8063         to compile pixbuf.dll
8064         * makefile.msc: copying all objects and dlls now
8065         
8066 2003-01-19  Hans Breuer  <hans@breuer.org>
8068         * app/diagram.[hc] : provide dia_open_diagrams(), make
8069         open_diagrams variable static
8070         * app/dia.def : export it (to be used by PyDia)
8071         * app/app_procs.c app/autosave.c app/diagram_tree_window.c
8072           app/display.c app/dynamic_refresh.c app/layer_dialog.c
8073           app/load_save.c : make use of dia_open_diagrams()
8075         * app/interface.c : don't set GDK_WINDOW_TYPE_HINT_TOOLBAR
8076         on win32. It removes the diagram window from the taskbar and
8077         shrinks it's window title to toolbar style (newest gtk2.2 cvs)
8079         * app/menus.c : add '...' to menu entries where a dialog 
8080         gets invoked
8081         * app/recent_files.c app/dia_embedd.c : reflect the above in 
8082         menus_get_item_from_path() calls
8084         * lib/libdia.def : add dia_image_rgba_data
8086         * lib/properties.h lib/prop_text.[hc] : add new property
8087         type StringList
8088         * objects/UML/class.[hc] object/UML/class_dialog.c : use
8089         StringList for attributes_strings and operations_strings to
8090         make this calculated data accessible via the Property API
8092         * plug-ins/python/diamodule.c : use dia_open_diagrams() and
8093         provide dia.new() to create a new diagram, dia.registered_types()
8094         to get on Dia's type registry, dia.message() for simple dialogs
8096         * plug-ins/python/pydia-diagram.c : implement DiaDiagram.display()
8097         to create a new display from a diagram. Let diagram.extents and
8098         diagram.bg_color return the same types as in diagramdata.*
8100         * plug-ins/python/pydia-geometry.c : add a read-only 
8101         'sequence interface' to DiaPoint and DiaRectangle
8103         * plug-ins/python/pydia-property.c : allow to get on StringList
8104         from Python
8106         * plug-ins/python/pydia-render.c : fix typo to make it compile
8108         * plug-ins/python/python-startup.py : removed 'import pygtk'
8109         again. This file does not need any gtk UI, and some python
8110         plug-ins don't do either
8112         * plug-ins/python/gtkcons.py : ported to GTK2 interface, now
8113         it should actually work as intended again
8115         * plug-ins/python/group_props.py : (new file) a prototype for
8116         one the most requested features: Change properties of selected
8117         objects in one step. Requires pygtk.
8119         * plug-ins/python/select_by.py : (new file) select objects by 
8120         common properties. Requires pygtk.
8122         [Start of 'PyDia Self Documentation Series']
8124         * plug-ins/python/pydiadoc.py : (new file) generates a new 
8125         diagram which contains all objects of dir(dia)
8126         
8127         * plug-ins/python/otypes.py : (new file) generates a new diagram 
8128         which contains all the currently registered object types sorted 
8129         by their containing package
8131 2003-01-18  Lars Clausen  <lrclause@cs.uiuc.edu>
8133         * configure.in: Added check for Pango >= 1.1.5, which appears to
8134         be enough to have text work.
8135         (INTLOBJS): Added dummy subst cause gettext doesn't always seem to
8136         do it.  AC_SUBST should be idempotent, though.
8138 2003-01-17  Lars Clausen  <lrclause@cs.uiuc.edu>
8140         * configure.in (HAVE_FREETYPE): Better test for freetype version
8141         using neat macro.
8142         Now actually sets HAVE_IEEEFP_H, needed for Solaris.
8144         * lib/font.c: Renamed global_size_one to global_zoom_factor to
8145         avoid confusion, and added comment.  Set scale factor in
8146         dia_font_build_layout to 1.0 for Unix side.  This fixes at least
8147         my weird scaling problems.  Fonts are now of the expectable size,
8148         i.e. the space between lines at size 1.0 is 1.0.  If we want a
8149         compatibility fix, we should scale fonts by about 1/0.75 from 0.90
8150         diagrams, though there will always be differences.
8152 2003-01-15  Lars Clausen  <lrclause@cs.uiuc.edu>
8154         * plug-ins/python/python-startup.py: 
8155         * plug-ins/python/gtkcons.py: Require gtk 2.0 for pygtk
8157         * plug-ins/python/python.c (dia_plugin_init): Added warning
8158         message for missing startup file.
8160         * lib/dialibartrenderer.c (draw_image): Alpha rendering!  Yay!
8161         
8162         * lib/dia_image.c (dia_image_rgb_data): 
8163         * app/diapsrenderer.c (draw_image): Fixed rowstride problems
8164         involving EPS.  Can't do transparency in EPS yet.
8166         * lib/dia_image.h: 
8167         * lib/dia_image.c (dia_image_rgba_data): New function to get RGBA
8168         data as one chunk.  Documentation for the RGB data getting funcs.
8169         (dia_image_rgb_data): Added comment.
8171         * lib/dialibartrenderer.c (draw_image): Correct rowstride handling
8172         (bug #103565)
8174 2003-01-13  Steffen Macke <sdteffen@web.de>
8176         * lib/dia_image.c: dia_image_rgb_data() is working for
8177         non-alpha images now. Fixes #93762
8178         * Makefile.am: added makefile.msc to EXTRA_DIST
8179         
8180 2003-01-10  Steffen Macke <sdteffen@web.de>
8182         * app/paginate_psprint.c: Closing print dialog when file
8183         could not be written. Fixes #84746
8184         
8185 2003-01-04  Steffen Macke <sdteffen@web.de>
8187         * doc/custom-shapes: incomplete description of <svg:text>
8189 2003-01-03  Steffen Macke <sdteffen@web.de>
8191         * makefile.msc(new): new makefile to create file
8192         structure suitable for running dia win32 under
8193         $(TOP)/dia/build/win32
8194         
8195 2003-01-02  Steffen Macke <sdteffen@web.de>
8196         
8197         * lib/dia_svg.c: including stdlib.h
8198         * lib/makefile.msc: added gdk_pixbuf libs to linker
8199         * app/makefile.msc: added gdk_pixbuf libs, made libart
8200         libs compatible with gnuwin32 package
8201         
8202 2003-01-01  Hans Breuer  <hans@breuer.org>
8204         * lib/font.c : more comment about global_size_one
8206         * app/menus.c : <control>[<shift>]A for plain gtk build too.
8208         * plug-ins/wmf/wmf.cpp : some type juggling to make 
8209         msvc7 happy
8211 2002-12-31  Steffen Macke <sdteffen@web.de>
8213         * app/makefile.msc: added hint on how to enable console output
8214         
8215 2002-12-17  Lars Clausen  <lrclause@cs.uiuc.edu>
8217         * objects/standard/textobj.c (textobj_load): Get the handle type
8218         right, at least to be the same as when created.
8220 2002-12-12  Lars Clausen  <lrclause@cs.uiuc.edu>
8222         * lib/dialibartrenderer.c (draw_string): Removed extra 'is'.
8224 2002-12-08  Hans Breuer  <hans@breuer.org>
8226         * app/commands.c : fixed bug #85315 'give diagram properties, 
8227         instead of no object selected error' almost a one-liner
8229         * app/splash.c : don't make having the logo pixmap
8230         mandatory. Fixes bug #96068. 
8232         * app/defaults.c : avoid crashing from open-dialog,esc,open-dialog
8233         sequence by connecting to the "delete_event"
8234         * app/objects/uml/class_dialog.c : handle "destroy" for 
8235         the same reason.
8237         * lib/libdia.def : remove diaXmlNewChild again
8239         * app/paginate_gdiprint.cpp : reflect Dia's page setting
8240         portrait/landscape in the windoze print dialog
8242         * objects/makefile.msc : only UML needs to link against
8243         $(GTK2_LIBS) and only custom against $(LIBXML2_LIBS)
8245 2002-12-08  Lars Clausen  <lrclause@cs.uiuc.edu>
8247         * objects/standard/ellipse.c (ellipse_distance_from): 
8248         * lib/geometry.c (distance_ellipse_point): Ellipse now uses the
8249         correct distance function.  Could be faster, but it's not really
8250         essential. 
8252 2002-12-07  Lars Clausen <lrclause@cs.uiuc.edu>
8254         * lib/font.c: Changed global_size_one to more correct 28.35.
8255         Looks better, too.
8257         * app/load_save.c:
8258         * lib/dia_xml.h: 
8259         * lib/dia_xml.c: Removed pretty print hack, the libxml thing works
8260         after all.
8262 2002-12-07  Hans Breuer  <hans@breuer.org>
8264         * lib/widgets.c : g_file_get_contents() silently assumes
8265         a binary file. Reflect when creating the font_menu file
8266         to get rid of junk in font menus
8268 2002-12-06  Hans Breuer  <hans@breuer.org>
8270         * app/diapsrenderer.[hc] app/diapsft2renderer.[hc] :
8271         removed 0xD 0xD 0xA line ends which get created by
8272         cvs if windoze line ends 0xD 0xA are checked in from
8273         *nix and checked out on win32.
8275         * app/preferences.c : changed toolbox_on_top default to
8276         false. It is currently not possible to change the behaviour
8277         at runtime, at least not on win32.
8279         * lib/dialibartrenderer.c : bug #94791 'rendering to 
8280         bitmap without PangoFt2' got delayed to milestone future 
8281         so wrap libart text rendering into PANGO_WIN32_FUTURE. 
8282         It is not available without my Pango patch in bugzilla.
8284         * lib/font.c : added comment to global_size_one and adapt
8285         the arbitrary size scaling in dia_font_build_layout() for
8286         win32, too. This is needed to get an acceptable font size 
8287         approximation for Dia 0.90 and earlier files.
8288         Also #include "message.h".
8290         * app/makfile.msc app/dia.def lib/makefile.msc lib/libdia.def :
8291         reflect movement of group.[hc]
8292         * lib/group.h : export group_type which gets used by app/*
8294         * lib/diagtkfontsel.c : added #undef GTK_DISABLE_DEPRECATED
8295         to get the GtkTypeInfo definition
8297         * plug-ins/makefile.msc : dxf and xfig don't need to link
8298         against app/ anymore now that group is moved to lib/
8300         * plug-ins/python/pydia-render.c : remove massive leaking
8301         of self, i.e. PyDiaRenderer
8303         *  plug-ins/python/makefile.msc : remove linking against
8304         GTK libs
8306 2002-12-06  Lars Clausen  <lrclause@cs.uiuc.edu>
8308         * objects/standard/line.c: Removed properties options for gaps,
8309         until release is done.
8311         * configure.in: Check for freetype version.
8313         * lib/text.c (text_insert_char): Fixed small buffer overflow for
8314         length = 0.
8316         * lib/dialibartrenderer.c (draw_string): Removed debugging printf.
8318         * app/diapsft2renderer.h: 
8319         * app/diapsft2renderer.c: 
8320         * app/diapsrenderer.h: 
8321         * app/diapsrenderer.c: Split ps rendering into standard and freetype.
8323         * app/render_eps.c (export_eps, new_psprint_renderer): Using
8324         PS_FT2 renderer when available.  Old render stuff killed.  Yay!
8326         * lib/properties.h: Fixed bad frame end def.
8328         * app/Makefile.am (dia_core_files): Added diapsft2renderer.[ch].
8330         * lib/dia_xml.c (data_add_string): Avoid #-less strings.
8331         
8332         * objects/bondgraph/Makefile.am: Removed unneeded EXTRA_DIST.
8334 2002-12-05  Lars Clausen  <lrclause@cs.uiuc.edu>
8336         * lib/font.c: Now checking for the proper dia-style standard fonts.
8338         * lib/Makefile.am: 
8339         * app/Makefile.am: Moving group.[ch]
8341         * plug-ins/dxf/dxf-import.c: 
8342         * plug-ins/xfig/xfig-import.c: 
8343         * plug-ins/xfig/xfig-export.c: Now can refer directly to group.h.
8345         * app/object_ops.c: 
8346         * app/object_ops.h: 
8347         * lib/object.c (object_list_move_delta, object_copy_list): 
8348         * lib/object.h: Moved some object-related functions from
8349         object_ops to object to assist moving group.c.
8351         * lib/diatypes.h: Added Group typedef.
8353         * lib/group.h: 
8354         * lib/group.c: Moved from app to lib to a) resolve plug-ins
8355         references, and b) make groups more "real" objects.
8357         * lib/Makefile.am (libdia_la_SOURCES): Added diatyps.h
8359 2002-12-03  Lars Clausen <lrclause@cs.uiuc.edu>
8361         * lib/font.c (dia_font_init): Added check that the three standard
8362         fonts exist.
8364 2002-12-02  Lars Clausen  <lrclause@cs.uiuc.edu>
8366         * lib/dia_xml.[ch]:
8367         * app/load_save.c: Linebreaks in dia files, no indentation.
8368         Should help text tools.  xmlNewChild wrapped in diaXmlNewChild for
8369         this. 
8370         
8371         * objects/standard/line.c: Small but important fixes to the line
8372         gap code.
8374         * lib/dia_xml.h: 
8375         * lib/dia_xml.c (diaXmlNewChild): 
8376         * app/load_save.c (diagram_data_write_doc, write_objects): Simple
8377         XML prettyprinting wrapper.
8379 2002-12-03  Steffen Macke <sdteffen@web.de>
8381         * shapes/Cisco/Makefile.am:
8382         * shapes/Cisco/*.shape: finished conversion of Cisco icons
8383         to *.png
8384         
8385 2002-12-02  Steffen Macke <sdteffen@web.de>
8387         * doc/en/Makefile.am:
8388         * doc/en/usage-objects.sgml:
8389         * doc/en/graphics/line_icon.png: (new) added line icon
8390         
8391 2002-12-02  Lars Clausen  <lrclause@cs.uiuc.edu>
8393         * objects/standard/line.c: Binary search object edge line gap.
8395 2002-12-01  Lars Clausen  <lrclause@cs.uiuc.edu>
8397         * configure.in: Added Cisco makefile, sorted Makefiles list.
8399         * shapes/Makefile.am (SUBDIRS): Added Cisco dir
8401         * configure.in: Now checks for availability of PangoFT2 and
8402         FreeType, raising an error if not found.
8404         * app/Makefile.am (dia_core_files): Adding diapsft2renderer from
8405         Hans.
8407 2002-12-01  Steffen Macke <sdteffen@web.de>
8408         
8409         * doc/en/usage-loadsave.sgml: updated information on import
8410         and export formats
8411         
8412 2002-11-28  Lars Clausen  <lrclause@cs.uiuc.edu>
8414         * app/commands.c (edit_copy_callback): Freeing copy_list.
8416 2002-11-28  Steffen Macke <sdteffen@web.de>
8417         
8418         * app/render_libart.c: art_config.h was included twice
8420 2002-11-27  Lars Clausen  <lrclause@cs.uiuc.edu>
8422         * sheets/.cvsignore: More ignorance.
8424         * lib/diagdkrenderer.c (draw_string): Removed silly #ifdef 1.
8426         * lib/prop_widgets.h: Two (currently unused) settings for frame
8427         foldability.
8429         * lib/prop_widgets.c (frame_beginprop_get_widget): Frames are now
8430         (by default) foldable. 
8432         * lib/propinternals.h: 
8433         * lib/propdialogs.c (prop_dialog_add_raw_with_flags): Way to add
8434         widgets in a more controlled manner.
8436         * objects/standard/line.c (line_update_data): Line gap things
8437         inserted.  Can do xeyes now:)
8439 2002-11-26  Christian Neumair  <chris@gnome-de.org>
8441         * .cvsignore: Changed.
8442         * objects/bondgraph/.cvsignore, plug-ins/metapost/.cvsignore,
8443         plug-ins/xslt/.cvsignore, shapes/Assorted/.cvsignore, shapes/Misc/.cvsignore:
8444         Added.
8446 2002-11-26  Lars Clausen  <lrclause@cs.uiuc.edu>
8448         * app/pixmaps/delete.xpm: Trashcan stolen from Gimp.
8450         * lib/widgets.c (dia_font_selector_get_font): Fixed wrong name
8451         passing to font hash.
8453         * app/filedlg.c (file_save_as_ok_callback): Check that filename is
8454         utf-8 or locale-convertible before adding to dialog text.  This
8455         probably needs done in a number of places where we get text from
8456         the environment and send it to GTK to display.
8458         * lib/widgets.c: Fixed case problems for font menu entries.
8460         * objects/SADT/annotation.c: Don't run the event test (but leave
8461         it here for inspiration).
8463         * lib/widgets.c: 
8464         * lib/widgets.h: Allowing setting preview text for fonts.
8466 2002-11-26  Lars Clausen  <lrclause@cs.uiuc.edu>
8468         * objects/bondgraph/Makefile.am: 
8469         * objects/bondgraph/bondgraph.c: 
8470         * configure.in: 
8471         * objects/Makefile.am: Added bond graph dir.
8473 2002-11-26  Lars Clausen  <lrclause@cs.uiuc.edu>
8475         * lib/text.c (text_calc_boundingbox, text_draw): Better cursor size.
8477 2002-11-25  Lars Clausen  <lrclause@cs.uiuc.edu>
8479         * lib/text.c (text_calc_boundingbox, text_draw): Better cursor
8480         positioning. 
8482         * app/diapsrenderer.c: Freetype rendering is back in force.
8484         * app/disp_callbacks.c: Added missing updates for pre-text-change.
8486 2002-11-25  David Hoover <jazzdaq@yahoo.com>
8488         * app/render_libart.c: Added missing #include line for libart.
8490         * lib/geometry.h:
8491         * lib/geometry.c: Added point_convex function.  This computes
8492         points inside a line segment (0 <= alpha <= 1) or outside the
8493         line segment (alpha < 0 | alpha > 1).
8495         * objects/standard/line.c: Line now has additional code/attributes
8496         which permit the line to extend past the line anchors (gap < 0) or
8497         leave a gap without reaching the anchor (gap > 0).  If no gap is
8498         specified, the default gap of 0 will result in identical line
8499         behavior as before.  If the 'fractional' attributes are TRUE, the
8500         gap length is not fixed, but a percentage of the line length.  I
8501         did not know how create the GTK widgets so the gap code currently
8502         cannot be used without adding XML attributes by hand.
8504 2002-11-25  Lars Clausen  <lrclause@cs.uiuc.edu>
8506         * lib/diagdkrenderer.c (draw_string): Removed timing bits.
8508         * lib/Makefile.am (libdia_la_SOURCES): Added fontsel files to SOURCES.
8510 2002-11-24  Lars Clausen  <lrclause@cs.uiuc.edu>
8512         * lib/font.c: Debugging functionality in separate functions.
8514         * lib/widgets.c: Using fontsel with context.
8516         * lib/diagtkfontsel.[ch]: Context-aware copy of the GTK fontsel.
8518         * objects/custom/custom_object.c: Orientation handling for shapes,
8519         patch thanks to Martin Hans <opfinder@gmx.net>.
8521         * objects/standard/zigzagline.c (zigzagline_move_handle): Starting
8522         work on even better orientation handling.
8524         * app/menus.c (menus_get_item_from_path): Fixed sily warnings from
8525         casting NULL pointers.  Should be unnecessary in an upcoming GTK
8526         release. 
8528 2002-11-18  Lars Clausen  <lrclause@cs.uiuc.edu>
8530         * lib/font.h:
8531         * lib/font.c:
8532         * lib/widgets.c: Now uses correct context to get font families.
8534         * lib/diagdkrenderer.c (get_text_width, draw_string): 
8535         * lib/dialibartrenderer.c (draw_string): 
8536         * lib/font.h: 
8537         * lib/font.c (dia_font_init): Removed old kludgy font name compare.
8538         (dia_font_build_layout): Unified the twiddle factors into a use of
8539         global_size_one.  But I deeply distrust Pango for seeming to
8540         change size of fonts every time I turn my back.
8542         * app/display.c: 
8543         * app/diagram.c: 
8544         * app/menus.c:
8545         * app/menus.h: Updated some more methods to also be more specific
8546         on the types.
8548         * app/menus.h:
8549         * app/recent_files.c: 
8550         Changed to return most specific type, to avoid run-time type errors.
8552         * app/menus.c (menus_get_item_from_path): Non-gnome version now
8553         gets menu_item rather than widget, which works better.
8555 2002-11-17  Cyrille Chépélov  <cyrille@chepelov.org>
8557         * app/display.c: (new_display):
8558         * app/menus.c: (menus_get_item_from_path):
8559         Relying on the tearoff to locate the input methods menu wasn't a
8560         good idea: tearoffs seem to be an endangered species nowadays.
8561         Anyway, the IM menu seems to be working now.
8563         * app/interface.c: hinted the window manager that the toolbox window
8564         is a toolbox window. Not that my (fairly default configuration)
8565         sawfish cares, but other NETWM compliant WMs may.
8567         * app/commands.c: 
8568         * app/defaults.c: 
8569         * app/dia-props.c:
8570         * app/filedlg.c: 
8571         * app/interface.c: 
8572         * app/layer_dialog.c: 
8573         * app/linewidth_area.c: 
8574         * app/properties.c: 
8575         * app/sheets_dialog.c: 
8576         * app/splash.c: 
8578         The GTK doc says to avoir gtk_window_set_wmclass() and 
8579         gtk_window_set_policy(), and use gtk_window_set_role() and
8580         gtk_window_set_resizable(), respectively.
8581         
8582         * app/preferences.c: (prefs_create_dialog):
8583         * app/preferences.h:
8584         * app/display.c: (display_set_active):
8585         Added a preference to have the toolbox hover over diagram windows.
8586                 
8587 2002-11-12  Lars Clausen  <lrclause@cs.uiuc.edu>
8589         * lib/diagdkrenderer.c (get_text_width, draw_string):
8590         Freetype-based string drawing now works.  Not very fast, though.
8591         I wish I could use the graphics card for this:(  I'm doing three
8592         bitmap loops where I should be doing one.  The size is not correct
8593         either, despite having get_text_width give the right thing.
8595 2002-10-21  Lars Clausen  <lrclause@cs.uiuc.edu>
8597         * app/connectionpoint_ops.c (diagram_update_connections_object):
8598         Allows more than one connectionpoint on an object to be moved at a
8599         time (bug #96306).
8601 2002-10-18  Stanislav Brabec  <sbrabec@suse.cz>
8603         * configure.in: Added cs to ALL_LINGUAS.
8605 2002-10-17  Lars Clausen  <lrclause@cs.uiuc.edu>
8607         * app/paginate_psprint.c: Removed unnecessary decl of autosave
8608         stuff.
8610         * app/display.c (ddisplay_set_renderer): Calls to begin/end render.
8612         * app/export_png.c (export_png_ok): Saving more variables from the
8613         evil setjmp.
8615 2002-10-16  Lars Clausen  <lrclause@cs.uiuc.edu>
8617         * lib/dialibartrenderer.c (begin_render):
8618         (end_render): Correct pushing and popping of font contexts.
8619         (draw_string): Double zooming eliminated, strange twiddle factor
8620         introduced (grumble).  Close to working now, but there are still
8621         strange differences from font to font.  In particular, some fonts
8622         really mess with the cursor and extents.
8624         * app/render_eps.c (export_eps): 
8625         * app/diapsrenderer.c (dia_ps_renderer_finalize): 
8626         Fixed file closing confusion, no longer dependent on PS/EPS.
8628         * app/diagram.c (diagram_place_down_selected) 
8629         (diagram_place_up_selected): Now implemented.
8631         * lib/font.c (dia_font_init): 
8632         * lib/font.h: 
8633         Redesigned the font init/context pushing code.  Start of fix for
8634         font name differences.
8635         
8636 2002-10-15  Kjartan Maraas  <kmaraas@gnome.org>
8638         * app/sheets_dialog_callbacks.c: Fix a typo.
8639         
8640 2002-10-15  Hans Breuer  <hans@breuer.org>
8642         * app/diapsrenderer.[hc] : (new files, old content :-)
8643         simple base class for post script rendering. Does neither 
8644         use Pango/FT2 nor does it handle non latin1 characters. 
8645         The fancy stuff which nowadays appears to be needed should 
8646         probably be done in derived class(es)
8648         * app/makefile.msc app/Makefile.am : added new files
8650         * app/paginate_psrint.c : re-enabled and used as test
8651         for the simple ps renderer above.
8653         * app/render_eps.[hc] : ripped out common ps code and
8654         moved to DiaPsRenderer. The rest of the file is mostly
8655         disabled. And I don't understand enough of it to 
8656         change port it.
8658         * app/diaepsrenderer.h : short lived, removed.
8660 2002-10-15  Lars Clausen  <lrclause@cs.uiuc.edu>
8662         * lib/plug-ins.c (dia_register_plugin): Don't try to load libdia
8663         as a plugin (thanks to Torben Nielsen).
8665 2002-10-14  Lars Clausen  <lrclause@cs.uiuc.edu>
8667         * app/diaepsrenderer.h: 
8668         * app/render_eps.h: 
8669         * app/paginate_psprint.c: 
8670         #ifdef'd out enough ps stuff to allow compile.  Now we just need
8671         to convert it.
8672         
8673 2002-10-12  Hans Breuer  <hans@breuer.org>
8675         [last plug-in ported]
8677         * plug-ins/xfig/xfig-export.c : ported to new renderer api
8679         * plug-ins/xfig/xfig-import.c(fig_create_object) : need to
8680         scale color values to [0..1.0] to properly reconstruct
8681         user colors
8683         * plug-ins/xfig/xfig-common.c : some cleaning
8685 2002-10-12  Hans Breuer  <hans@breuer.org>
8687         [decrease inter-plug-in-dependencies]
8689         * objects/custom/shape_info.[hc] : move parse_style()
8690         to lib/dia_svg.[hc] as dia_svg_parse_style(); Namespace
8691         the related structs and constants.
8692         * objects/custom/custom_object.c : reflect namespace
8693         changes
8695         * lib/dia_svg.[hc] : new files
8696         * lib/makefile.msc lib/Makefile.am : add new files
8697         * lib/libdia.def : updated externals
8699         * plug-ins/svg/svg-import.c : use dia_svg_parse_style()
8701         * plug-ins/svg/svg.c : enable svg import for win32 (and
8702         probably for other non ELF builds)
8704         * plug-ins/makefile.msc : enable svg import
8706 2002-10-11  Hans Breuer  <hans@breuer.org>
8708         * plug-ins/metapost/render_metapost.[hc] : ported
8710         * plug-ins/pstricks/render_pstricks.[hc] : dito
8712 2002-10-11  Hans Breuer  <hans@breuer.org>
8714         * plug-ins/cgm/cgm.c : ported, appears to work as before,
8715         but graphic apps available to me can't import the generated 
8716         files (the could not with Dia-0.90 cgm as well) ...
8718         * plug-ins/dxf/dxf-export.c : Ported to new renderer api.
8719         Removed all those function which did emulate 'complex' 
8720         drawing ops with basic ones (e.g. rect by line) cause this
8721         stuff is already provided by the base class
8722         * plug-ins/dxf/dxf-import.c : removed render.h include
8724         * plug-ins/python/pydia-font.[hc]
8725           plug-ins/python/pydia-text.c : finally ported to new font api
8727         * plug-ins/python/pydia-layer.c : add extra parameter
8728         to layer_find_closest_connectionpoint()
8730         * plug-ins/python/pydia-render.c : ported to DiaRenderer api
8732         * plug-ins/python/python.c : added missing copyright notice
8734         * plug-ins/hpg/hpgl.c plug-ins/wpg/wpg.c plug-ins/wmf/wmf.cpp : 
8735         actually use the renderers set_font implementation
8737         * plug-ins/renderer.inc : unused now, removed
8738         * plug-ins/Makefile.am : reflect it
8740 2002-10-08  Hans Breuer  <hans@breuer.org>
8742         * app/render_gdk.c : don't add the InteractiveRenderer
8743         interface multiple times (it's added to the type, not
8744         the object)
8745         * app/render_libart.c : dito. It's currently added
8746         unconditional cause eport_png uses it, but claims
8747         to be non-interactive. Probably set_size should be moved
8748         to the DiaRenderer interface.
8750         * lib/dialibartrenderer.c : add implementations for
8751         get_<width|height>_pixels. Libart rendering works again.
8752         DiaLibartRenderer::draw_image : use dia_image_rowstride()
8753         instead of width*3
8755         * lib/diatransform.c(dia_transform_coords_double) :
8756         don't ROUND() the returned values
8758         * plug-ins/pixbuf/pixbuf.c : added import function. It
8759         simply creates a wrapping "Standard - Image" object.
8761         * plug-ins/shape/shape-export.c : use the more direct
8762         method to call base class methods
8764 2002-10-07  Lars Clausen  <lrclause@cs.uiuc.edu>
8766         * lib/font.c (dia_font_init): Changed dia_font_init to return old
8767         pango context, to allow stacked contexts (for printing while
8768         antialiased).
8769         
8770         * lib/arrows.h
8771         * lib/bezier_conn.h
8772         * lib/beziershape.h
8773         * lib/boundingbox.h
8774         * lib/color.h
8775         * lib/connection.h
8776         * lib/connectionpoint.h
8777         * lib/create.h
8778         * lib/dia_image.h
8779         * lib/diagdkrenderer.h
8780         * lib/diagramdata.h
8781         * lib/dialibartrenderer.h
8782         * lib/diamenu.h
8783         * lib/diarenderer.h
8784         * lib/diasvgrenderer.h
8785         * lib/diatransform.h
8786         * lib/element.h
8787         * lib/filter.h
8788         * lib/focus.h
8789         * lib/font.h
8790         * lib/geometry.h
8791         * lib/handle.h
8792         * lib/neworth_conn.h
8793         * lib/objchange.h
8794         * lib/object.h
8795         * lib/orth_conn.h
8796         * lib/paper.h
8797         * lib/plug-ins.h
8798         * lib/poly_conn.h
8799         * lib/polyshape.h
8800         * lib/properties.h
8801         * lib/ps-utf8.h
8802         * lib/sheet.h
8803         * lib/text.h
8804         * lib/textattr.h
8805         * lib/widgets.h
8806         * lib/diatypes.h
8807         Moved all externally visible struct typedefs into diatypes.h, as
8808         per Hans' suggestions.
8810 2002-10-07  Steffen Macke <sdteffen@web.de>
8812         * lib/Makefile.am: removed a '\' causing problems
8814 2002-10-07  Hans Breuer  <hans@breuer.org>
8816         [Libart Renderer resurrected; almost it's compiling but
8817          almost instantly crashing :-]
8819         * lib/dialibartrenderer.[hc] : new files, ported to DiaRenderer
8820         * app/render_libart.[hc] : ported to DiaInteractiveRenderer
8821         * lib/diatransform.[hc] : added dia_transform_coords_double()
8823         * app/display.c : the right parameters for new_renderer_libart()
8824         * app/export_png.c : ported, removed the blind Display hack
8826         * app/makefile.msc lib/makefile.msc 
8827           lib/Makefile.am : updated
8829         * lib/dia<|gdk|interactive>renderer.c : properly copyrighted
8831 2002-10-06  Hans Breuer  <hans@breuer.org>
8833         * plug-ins/pixbuf/pixbuf.c : (new file)
8834         there is a new export plug-in called 'Pixbuf' which uses 
8835         DiaGdkRenderer to export to gdk-pixbuf supported bitmap
8836         formats (currently only PNG and JPEG).
8838 2002-10-06  Hans Breuer  <hans@breuer.org>
8840         See also: 
8841         http://mail.gnome.org/archives/dia-list/2002-October/msg00027.html
8843         * lib/dia-enums.h lib/diatransform.[hc]
8844           lib/diarenderer.[hc] lib/diainteractiverenderer.c
8845           lib/diagdkrenderer.[hc] lib/diasvgrenderer.[hc]
8846         : new files 
8848         * lib/makefile.msc lib/makefile.am : added new files
8850         * lib/plug-ins.c : g_module_error() returns a locale
8851         string, convert to utf8 before further usage 
8853         * lib/render.h : #error out. Everything including this
8854         needs porting
8855         * lib/*.[hc] : ported to new renderer api
8857         * app/diaepsrenderer.h : unfinished DiaEpsRenderer interface
8858         just to make the rest compile
8859         * app/render_eps.c : temporary disabled all of this
8860         * app/render_eps.h : removed RendererEPS
8862         * app/render_gdk.[hc] : a small wrapper around the new
8863         DiaGdkRenderer form lib/*
8865         * app/render_libart.h : removed RenderLibart definition
8866         * app/render_libart.c : not yet ported to new DiaRenderer
8867         but having an implementation to untie form FT2 dependency
8868         at least on win32. It is using new Pango api form bug #94791
8870         * app/render_pixmap.[hc] : a small wrapper around the new
8871         DiaGdkRenderer form lib/*
8873         * app/display.h : removed render_*.h includes
8874         * app/display.c : the only place where specific 
8875         renderers need to be known
8877         * app/connectionpoint_ops.c app/grid.c app/handle_ops.c
8878         use new DiaInteractiveRenderer interface
8880         * app/*.c : ported to new renderer api
8881         * object/*/*.c : ported to new renderer api
8882         s/render.h/diarenderer.h/
8883         s/Renderer/DiaRenderer/
8884         s/renderer->ops/renderer_ops/
8885         add in every draw method:
8886         DiaRendererClass *renderer_ops = DIA_RENDERER_GET_CLASS (renderer);
8888         * plug-ins/hpgl/hpgl.c : 
8889           plug-ins/wmf/wmf.cpp 
8890           plug-ins/wpg/wpg.c : ported to be DiaRenderer based
8891         * plug-ins/shape/shape-export.c
8892           plug-ins/svg/render_svg.c : ported to be DiaSvgRenderer based
8893           (nice how small these files became :-)
8895 2002-09-28  Hans Breuer  <hans@breuer.org>
8897         * */makefile.msc : updated
8899         * app/defaults.c : don't gdk_invalidate_rect(NULL)
8900         * app/disp_callbacks.c : 
8901         can't cast GtkWindow to GdkWindow, use shell->window
8902         (ddisplay_unrealize) don't use already unrefed im_context
8903         * app/display.c :
8904         can't cast from GtkMenu to GtkMenuItem
8905         (ddisp_destroy) : mark im_context as unrefed
8907         * lib/dia_xml (data_font) : prefer new font format over old one
8908         (data_add_font) : write the legacy name to allow file exchange
8909         with pre Pango versions of Dia, which would otherwise crash 
8910         on missing font 'name' attribute.
8911         * lib/font.c (dia_font_get_legacy_name) : improved implementation
8912         to get a better match.
8914         * lib/libdia.def : updated
8916         * lib/messages.c : don't gdk_widget_show(NULL)
8918         * lib/prop_text.c : don't gtk_entry_set_text() with NULL string 
8920         [make Dia compile, link _and_ work with mingw/gcc3.2]
8922         * config.h.win32 : #define LIBXML, this gets defined from libxml
8923         header but only for _MSC_VER. The mingw build did access an 
8924         unitialized function pointer for xmlFree.
8926         * */makefile.mingw : updated (some plug-ins have build issues)
8927         
8928         * lib/handle.h lib/object.h :   there appears to be no 
8929         forward declaration of the form 
8930                 typedef enum _HandleId HandleId 
8931         (at least not with GCC 3.2 for C++) ../lib/handle.h:22: 
8932         use of enum `_HandleId' without previous declaration
8934         * app/paginate_gdiprint.cpp : added a hack to avoid g++
8935         naming conflict on 'export'
8937         * app/paginate_gdiprint.h : forward declare Diagram
8939         * objects/SADT/annotaion.c : use g_random_double()
8941 2002-09-26  Lars Clausen  <lrclause@cs.uiuc.edu>
8943         * app/modify_tool.c: Made motion not happen until sufficiently
8944         large or past double-click interval, to avoid accidental moving
8945         when doubleclicking.  Got the double-click time right, and fixed
8946         some issues with release.  There are some corner cases that may
8947         exhibit strange behaviour, will look at those later.  Nah, let's
8948         not care about those, they are rare and not dangerous.
8950 2002-09-26  Cyrille Chépélov  <cyrille@chepelov.org>
8952         * app/layer_dialog.c: 
8953         * app/load_save.c: 
8954         * plug-ins/dxf/dxf-import.c: 
8955         * plug-ins/python/pydia-diagram.c: 
8956         * lib/diagramdata.c:
8957         * lib/diagramdata.h:
8958         Improved the consistency of the obj->parent_layer backlinks (esp.
8959         during reloads)
8961         * lib/Makefile.am:
8962         * lib/dummy_dep.h:
8963         * lib/dynamic_obj.[ch] (NEW):
8964         * app/Makefile.am:
8965         * app/app_procs.c: 
8966         * app/dynamic_refresh.[ch] (NEW):
8967         * objects/Misc/analog_clock.c: 
8968         Added support for dynamic refresh (animated objects).
8969                 
8970 2002-09-25  Cyrille Chépélov  <cyrille@chepelov.org>
8972         Patch from Owen Taylor <otaylor@redhat.com>:    
8973         * doc/en/Makefile.am:
8974         * doc/en/dia-manual.sgml:
8975         * doc/en/usage-objects.sgml:
8976         * doc/en/usage-quickstart.sgml:
8977         * doc/pl/Makefile.am:
8978         * doc/pl/dia-manual.sgml:
8979         * doc/pl/usage-objects.sgml:
8980         * doc/pl/usage-quickstart.sgml:
8982         - Change the DTD declration from an outdated GNOME one to a
8983         standard DTD.
8984         
8985         - Remove close tags for <graphics> which aren't allowed for
8986         docbook SGML
8987         
8988         - A hacky fix for a problem where some versions of db2html don't
8989         create *.css files. (If *.css doesn't match anything, then you get
8990         the global explicitely.)
8992         (Closes: #92061)
8993         
8994 2002-09-24  Cyrille Chépélov  <cyrille@chepelov.org>
8996         * objects/custom/custom_object.c: 
8997         * objects/custom/shape_info.[ch]: GE_TEXT display lists elements 
8998         were never properly prepared for use when reloading a shape with
8999         <svg:text> elements. Thanks to Scott Frazer <frazer@nc.rr.com> for
9000         reporting the problem and coming up with a fix! (Closes: #93974)
9002         * app/menus.c: patch from Alan Horkan <horkana@tcd.ie>: review
9003         the menu shortcuts towards better GNOME HIG compliance (Closes: #87157)
9005         * app/menus.c:
9006         * app/display.c: updated menu item paths Alan's patch had moved.
9007         
9008         * app/interface.c: Fixed a crash when gdk-pixbuf doesn't want to
9009         load the sheet-provided icon (libpng versions mismatch, grrr.).
9010         
9011         * configure.in:
9012         * objects/Makefile.am:
9013         * objects/Misc/Makefile.am (NEW):
9014         * objects/Misc/libmisc.c (NEW):
9015         * objects/Misc/analog_clock.c (NEW):
9016         * objects/Misc/pixmaps/analog_clock.xpm (NEW):
9017         * sheets/Misc.sheet.in: just a little experiment...
9019 2002-09-23  Cyrille Chepelov  <cyrille@chepelov.org>
9021         * plug-ins/xlst/Makefile.am: found a way to silence automake while
9022         not forcing everyone to build using libxslt.
9024         * lib/font.c: 
9025         * lib/message.c:
9026         * lib/object_defaults.c:
9027         * lib/intl.[ch]:
9028         * lib/render.c:
9029         * lib/properties.[ch]:
9030         * lib/propobject.c:
9031         * objects/standard/box.c: 
9032         * objects/UML/state_term.c:
9033         * objects/FS/box.c:
9034         * objects/FS/flow-ortho.c:
9035         * app/app_procs.c:
9036         * app/autosave.c:       
9037         * app/commands.c:
9038         * app/diagram_tree.c:
9039         * app/display.c:
9040         * app/disp_callbacks.c:
9041         * app/export_png.c:
9042         * app/filedlg.c:
9043         * app/lineprops_area.c:
9044         * app/menus.c:  
9045         * app/preferences.c:
9046         * app/render_eps.c:     
9047         * app/sheets.c:
9048         * app/sheets_dialog_callbacks.c:
9049         * plug-ins/xslt/xslt.c:
9050         * plug-ins/metapost/render_metapost.c:
9051         * plug-ins/xfig/xfig-export.c:
9052         * plug-ins/shape/shape-export.c:
9053         
9054         Killed most gcc-3.2 warnings (const-correctness and derived warnings, 
9055         unused variables, mostly)
9057         * app/display.c:
9058         * app/menus.c: enabled GTK Input Methods (thanks Lars!)
9060         * app/Makefile.am: modified run_dia.sh so that we recover the
9061         ability to run a debugger despite libtool's hacks.
9063         * plug-ins/dxf/Makefile.am: 
9064         * app/Makefile.am
9065         "make distcheck" fixes.
9066         
9067 2002-09-19  Lars Clausen  <lrclause@cs.uiuc.edu>
9069         * objects/UML/uml.c (uml_get_operation_string): Patch from Mauf
9070         <mfranzoni@madd.it>:  Check for the type being NULL.
9072 2002-09-16  Lars Clausen  <lrclause@cs.uiuc.edu>
9074         * app/render_eps.c (set_font): Re-tweaked font size for printing.
9076 2002-09-12  Cyrille Chepelov  <cyrille@chepelov.org>
9078         Patch from Angus Ainslie <angusa@deltatee.com>:
9079         * plug-ins/dxf/dxf-import.c:
9080         * plug-ins/dxf/autocad_pal.h: Import from visio 2002 improvements.
9082         (plus a couple extra fixes by me, such as the removal of printf's,
9083         adapting for recent changes, and killed a couple warnings) 
9085         * app/authors.h: a 60K patch isn't insignificant, is it?
9086         
9087 2002-09-09  Tor Lillqvist  <tml@iki.fi>
9089         * configure.in: Check for both pangoft2 (using PKG_CHECK_MODULES,
9090         as before) and -lfreetype (using AC_CHECK_LIB). At least on
9091         Solaris with Sun's compiler (Forte C), you need to link also the
9092         dia application with -lfreetype, even if it is implicitly linked
9093         to by -lpangoft2. Rename FREETYPE_CFLAGS and _LIBS to PANGOFT2_*,
9094         which is what they actually mean. Use FREETYPE_LIBS for
9095         -lfreetype.
9097         Don't look for libsunmath if isinf() is not found in math.h (as on
9098         Solaris). The sunmath library is part of Forte C and not present
9099         on all machines. Besides, even if isinf was found in libsunmath,
9100         we didn't use it in the Makefile.am.
9101         
9102         Fix a couple of bashisms.
9104         AC_SUBST also Z_LIBS, need to link the dia application to -lz,
9105         too, on Solaris with Forte C.
9107         Don't try to use the gcc flags with other compilers.
9108         DIA_CHECK_CFLAG gives a false indication that Forte C understands
9109         the gcc -f switches, but in fact they get interpreted meaning
9110         something completely different.
9112         Define the automake conditional HAVE_CGC.
9113         
9114         * app/Makefile.am (dia_LDADD): Add Z_LIBS and FREETYPE_LIBS.
9116         Use -export-dynamic only with gcc.
9118         * */Makefile.am
9119         * */*/Makefile.am: Modify according to the FREETYPE_CFLAGS -> 
9120         PANGOFT2_CFLAGS rename.
9122         * lib/geometry.h: Drop HAVE_SUNMATH_H and <sunmath.h> per above.
9123         
9124         * lib/dia_xml.c: Include geometry.h for the isinf() stuff on
9125         Solaris.
9127         * lib/paper.c: Workaround for gccism: Can't use inline this way with
9128         Forte C, either.
9130 2002-09-08  Cyrille Chepelov  <cyrille@chepelov.org>
9132         * lib/text.c(set_string): fixed a memory leak (char* ain't no
9133         std::auto_ptr<char> !).
9135         * app/display.[ch]:
9136         * app/interface.[ch]:
9137         * app/ddisp_callbacks.[ch]: Added some basic support for input 
9138         methods (GtkIMContext-based)
9140         * lib/Makefile.am:
9141         * app/Makefile.am: made libdia a shared object (per Tor
9142         Lillqvist's suggestion/request), to cope for platforms with a less
9143         than par dynamic library loader.
9145         * app/display.c: disabled the input method menu (I really don't
9146         see where and how to put them. Blame Frozen Bubble )
9147         
9148 2002-09-06  Lars Clausen  <lrclause@cs.uiuc.edu>
9150         * objects/flowchart/box.c (box_update_data): Made resizing
9151         possible again (only set width & height when resized too small).
9153         Patch from Soeren Sandmann <sandmann@daimi.au.dk>:
9155         * app/disp_callbacks.c (ddisplay_canvas_events): Handle
9156         GdkScrollEvents.
9157         
9158 2002-09-05  Cyrille Chepelov  <cyrille@chepelov.org>
9160         * app/authors.h: now showing Akira TAGOH's name in the native script.
9162 2002-09-01  Lars Clausen  <lrclause@cs.uiuc.edu>
9164         * plug-ins/xslt/xslt.c: Removed glib warning for unset
9165         DIA_PLUGIN_PATH.
9167 2002-09-01  Cyrille Chepelov  <cyrille@chepelov.org>
9169         * plug-ins/svg/render_svg.c: Applied (reversed...) patch from
9170         Mike Sowka <msowka@rogers.com>. This fixes a problem with the
9171         sweep flag in arcs.
9173 2002-08-31  Lars Clausen  <lrclause@cs.uiuc.edu>
9175         * objects/UML/class.c: Fixed showing of empty stereotypes and got
9176         the string placed correctly.
9178 2002-08-30  Hans Breuer  <hans@breuer.org>
9180         * lib/font.c (dia_font_get_style) : don't shift already
9181         shifted DIA_FONT values.
9183         * lib/libdia.def : updated externals
9185         * app/disp_callbacks.c : on win32 GdkEventKey::string already
9186         is in UTF-8. (Longterm this probably should be handled on the
9187         gtk api level)
9189         * app/command.[hc] app/display.[hc] app/menus.c : add code to 
9190         switch display renderers again. The libart renderer is very 
9191         useful for win9x with it's limited GDI.
9193         * app/render_gdk.c : use g_warning instead of printf which gets
9194         nowhere on win32 (non console apps)
9196         * app/render_libart.c : make it compile without FREETYPE
9198         * objects/makefile.msc plug-ins/makefile.msc : added clean target
9200 2002-08-29  Lars Clausen  <lrclause@cs.uiuc.edu>
9202         * app/render_eps.c (postscript_draw_contour): Debugging statement
9203         that allowed me to figure out font problems.
9205         * lib/widgets.c (dia_font_selector_set_styles): Use radio menu
9206         items for font styles.
9208         * objects/FS/flow-poly.c: 
9209         * objects/FS/flow-ortho.c: 
9210         * objects/FS/flow.c: Further conversion away from GTK dialogs.
9211         Can't set a default label right now:(
9213         * app/interface.c (fill_sheet_wbox): Added initialization for mask.
9215 2002-08-27  Cyrille Chepelov  <cyrille@chepelov.org>
9216         Patch from Andrew Ferrier  <andrew@new-destiny.co.uk>:
9218         * Makefile.am: rules relating to AUTHORS and THANKS
9219         altered.
9220         * AUTHORS: file content changed to more accurately
9221         reflect guideline requirements.
9222         * TODO: warning added about Gnome BTS.
9223         * KNOWN_BUGS: warning added about Gnome BTS.
9225         ---
9227         * AUTHORS: added full copyright info.
9228         * mkauthors-placeholder: (removed) 
9229         
9230 2002-08-27  Lars Clausen  <lrclause@cs.uiuc.edu>
9232         * app/paginate_psprint.c (print_page): Fixed text printing after
9233         tip from Dov Grobgeld.
9235 2002-08-26  Lars Clausen  <lrclause@cs.uiuc.edu>
9237         * app/paginate_psprint.c (print_page): Fixed color of clip
9238         region.
9240 2002-08-26  Cyrille Chepelov  <cyrille@chepelov.org>
9242         * sheets/Makefile.am: enabled intltool-merge translation cache for
9243         sheets.
9245         * Makefile.am:
9246         * mkauthors-placeholder:
9247         * AUTHORS: revived that file (in a placeholder form) so that
9248         automake stops yelling.
9249         (derived from a patch by Andrew Ferrier <andrew@new-destiny.co.uk>) 
9250         (Closes: #91144)
9252         Heh, by the way, thanks Christophe. I feel better now.
9253         
9254 2002-08-25  Christophe Merlet  <christophe@merlet.net>
9256         * app/command.c: Removed invalid multibyte sequence in Chepelov.
9258 2002-08-24  Lars Clausen  <lrclause@cs.uiuc.edu>
9260         * lib/dia_image.c (dia_image_rgb_data): 
9261         Bugfixes in image data retrieval.
9262         
9263         * app/render_eps.c: Refactoring of new_*_renderer.
9265 2002-08-23  Lars Clausen  <lrclause@cs.uiuc.edu>
9267         * app/render_eps.c: 
9268         * lib/dia_image.h: 
9269         * lib/dia_image.c: Support for rowstride != width (odd width images)
9271 2002-08-20  Lars Clausen  <lrclause@cs.uiuc.edu>
9273         * lib/paper.c (get_paper_info): Fixed NULL prefs problem.
9274         * plug-ins/xfig/xfig-import.c: Removed assertion.
9276 2002-08-18  Lars Clausen  <lrclause@cs.uiuc.edu>
9278         * lib/paper.c: Removed app/preferences.h reference.
9280 2002-08-14  Lars Clausen  <lrclause@cs.uiuc.edu>
9282         * plug-ins/svg/svg-import.c: 
9283         * plug-ins/xfig/xfig-import.c: 
9284         * lib/Makefile.am (libdia_a_SOURCES): 
9285         * objects/standard/Makefile.am (libstandard_objects_la_SOURCES): 
9286         * lib/create.h:
9287         * objects/standard/create.h:
9288         * objects/standard/polygon.c (polygon_create): 
9289         * objects/standard/polyline.c (polyline_create): 
9290         * objects/standard/beziergon.c (beziergon_create): 
9291         * objects/standard/bezier.c (bezierline_create): 
9292         Moving create.h into lib.
9294 2002-08-13  Lars Clausen  <lrclause@cs.uiuc.edu>
9296         * app/render_libart.[ch]: Work on PNG font export.  Something's
9297         still fishy with the scaling, I don't get it.
9299         * app/display.c: 
9300         * app/interface.c: Replaced broken zoom combo with entry+menu.
9301         Now works beautifully.  Removed WITHOUT_ZOOM_COMBO stuff.
9303         * app/render_gdk.c (get_text_width): Checks for validity of text.
9304         Temporary help while debugging input -- should only activate on
9305         invalid input.
9307         * objects/SADT/annotation.c: 
9308         * objects/GRAFCET/transition.c: 
9309         * objects/FS/function.c: Removal of gtk.h include.
9311         * objects/UML/state.c (state_load): Warnings about using State
9312         object for initial/final states.
9314         * plug-ins/cgm/cgm.c (init_fonts): Proper Pango interfacing.
9316 2002-08-12  Lars Clausen  <lrclause@cs.uiuc.edu>
9318         * app/render_eps.c: Text rendering that scales correctly.  Too bad
9319         the standard fonts don't get selected right.
9321 2002-08-09  Lars Clausen  <lrclause@cs.uiuc.edu>
9323         * lib/diagramdata.h: 
9324         * lib/paper.c (get_paper_info): 
9325         * lib/paper.h: 
9326         * plug-ins/xfig/xfig-import.c: 
9327         Committed before testing.  I am so embarrased.  This compiles, now
9328         that the includes are in the right order.
9329         
9330         * app/diagram.c (diagram_init): 
9331         * app/app_procs.c (do_convert): 
9332         * app/preferences.h: 
9333         * lib/diagramdata.h: 
9334         * lib/diagramdata.c (new_diagram_data): 
9335         * lib/paper.h: 
9336         * lib/paper.c (get_paper_info): 
9337         Moved new_diagram part of prefs into lib/diagramdata.h.  More
9338         could be done in new_diagram_data() now.
9340 2002-08-08  Lars Clausen  <lrclause@cs.uiuc.edu>
9342         * app/render_eps.c: Better scaling of fonts at non-normal zoom.
9344 2002-08-07  Cyrille Chepelov <cyrille@chepelov.org>
9346         * configure.in: removed silly user-visible comment
9348         (actually, this is a dummy entry before I manually run nemo; for
9349         some dist-upgrade related reason, this morning's run aborted before
9350         the snapshots were created)
9351         
9352 2002-08-06  Lars Clausen  <lrclause@cs.uiuc.edu>
9354         * objects/network/wanlink.c: 
9355         * objects/network/bus.c: 
9356         stdprop compliance!
9358         * objects/custom/custom_object.c: 
9359         * objects/network/wanlink.c: 
9360         * objects/flowchart/parallelogram.c: 
9361         * objects/flowchart/ellipse.c: 
9362         * objects/flowchart/diamond.c: 
9363         * objects/flowchart/box.c: 
9364         Removed GTK defaults stuff.
9365         
9366         * objects/UML/fork.c: 
9367         * objects/UML/object.c: 
9368         * objects/UML/lifeline.c: 
9369         * objects/UML/branch.c: 
9370         * objects/GRAFCET/transition.c: 
9371         * objects/FS/function.c: Removed GTK include.
9373         * objects/FS/flow-ortho.c: 
9374         * objects/FS/flow.c: Made the label behave again.
9375         Also removed GTK defaults stuff.
9377 2002-08-06  Hans Breuer  <hans@breuer.org>
9379         * app/autosave.c : ported to GDir which is the improved
9380         cross platform replacement for <dirent.h>
9382         * app/makefile.msc : build autosave.obj
9384         * app/font.c : some (bad?) code calls 
9385         dia_font_scaled_decent() not only with empty string but 
9386         with NULL. Handle it gracefully.
9388         * lib/paper.c : don't depend on ../app. Although IMO
9389         this shouldn't be allowed on any platform it is only
9390         disabled for win32, where it simply doesn't work
9391         this way
9393         * lib/widget.c (strcase_equal) : pass char* to g_strcasecmp()
9395         * objects/fs/flow.c : conditionalize debug spew, disabled
9396         and 'ported' to use g_print. Simple printf won't work with
9397         standard win32 gui apps, may even crash them.
9399         * plug-ins/makefile.msc : DISABLED svg-import cause it
9400         depends on ../objects/custom. This not only break the
9401         build for all non ELF systems but IMO also isn't acceptable
9402         from a design point of view. See dia-list mail on subject.
9404         * plug-ins/python/makefile.msc :
9405           plug-ins/python/python.c : remove all references to dirent    
9407 2002-08-05  Cyrille Chepelov  <cyrille@chepelov.org>
9409         * configure.in: added ro to ALL_LINGUAS
9411         * po-checktrans:
9412         * po-checktrans.py:
9413         * ../translation-graphs/transgraph.py: added support for fuzzy
9414         translations. Enlarged the graphs.
9416 2002-08-05  Lars Clausen  <lrclause@cs.uiuc.edu>
9418         * app/disp_callbacks.c (ddisplay_canvas_events): Now translates
9419         key events according to locale.  No clue if this works for
9420         advanced stuff.
9422 2002-08-04  Lars Clausen  <lrclause@cs.uiuc.edu>
9424         * lib/text.c: Various UTF8 related fixes, in particular in
9425         deleting.  Text_insert_char is fine, far as I can tell.
9427         * app/interface.c (create_display_shell): 
9428         * app/commands.c: Now uses gtk_clipboard functions, for they are
9429         much simpler.  Also handles Win32 clipboard.  Non-ascii chars
9430         don't seem to get handled correctly by text_insert_char in
9431         lib/text.c.
9432         
9433         * app/commands.c (received_selection_handler): Got utf8 handling
9434         on paste, and individual char handling out of commands.c.  Pasting
9435         non-ASCII is still broken, somehow.  It's all lib/text.c's fault.
9437         * lib/message.c (gtk_message_internal): Message dialog re-shown
9438         when new message appears.  Maybe it should even move to top?
9440         * lib/font.c: 
9441         * lib/widgets.c: 
9442         * app/render_eps.c (create_eps_renderer): Fonts now lowercase
9443         (again) and case-insensitive.
9445         * objects/GRAFCET/condition.c (CONDITION_FONT): Changed to
9446         BASIC_SANS_FONT. 
9448 2002-08-02  Lars Clausen  <lrclause@cs.uiuc.edu>
9450         * app/commands.c (edit_cut_text_callback): 
9451         * lib/text.c (text_delete_all): Now functioning undo for text cut.
9452         
9453         * app/commands.c (edit_cut_text_callback): Now removes text.
9454         Undo is broken, though.
9456 2002-08-01  Lars Clausen  <lrclause@cs.uiuc.edu>
9458         * app/diagram.c (diagram_update_menu_sensitivity): 
9459         Making cut_text active.
9460         
9461         * app/commands.h: 
9462         * app/commands.c: Using PROP_TYPE_TEXT to find text to copy to
9463         clipboard.  Also removed AA callback.   
9465 2002-08-01  Lars Clausen  <lrclause@cs.uiuc.edu>
9467         * objects/chronogram/chronoref.c: 
9468         * objects/chronogram/chronoline.c: 
9469         * objects/SADT/annotation.c: 
9470         * objects/SADT/arrow.c: 
9471         * objects/SADT/box.c: 
9472         * objects/GRAFCET/vergent.c: 
9473         * objects/GRAFCET/vector.c: 
9474         * objects/GRAFCET/step.c: 
9475         * objects/GRAFCET/condition.c: 
9476         * objects/GRAFCET/action.c: 
9477         * objects/ER/participation.c: 
9478         * objects/ER/relationship.c: 
9479         * objects/ER/entity.c: 
9480         * objects/ER/attribute.c: 
9481         Removing unnecessary GTK references.
9483 2002-07-31  Lars Clausen  <lrclause@cs.uiuc.edu>
9485         * objects/standard/image.c: 
9486         * objects/standard/textobj.c: 
9487         * objects/standard/ellipse.c: 
9488         * objects/standard/polygon.c: 
9489         * objects/standard/beziergon.c:
9490         * objects/standard/box.c: 
9491         Making default default properties.
9492         
9493         * objects/standard/image.c: 
9494         * objects/standard/arc.c: 
9495         * objects/standard/box.c: 
9496         * objects/standard/zigzagline.c: 
9497         * objects/standard/polyline.c: 
9498         * objects/standard/line.c: 
9499         * objects/standard/ellipse.c: 
9500         * objects/standard/polygon.c: 
9501         * objects/standard/beziergon.c: Removing vestigal GTK stuff.
9503         * lib/object_defaults.c (dia_object_default_create): 
9504         * lib/proplist.c: 
9505         * lib/properties.h: 
9506         * lib/object.c (object_copy_using_properties): 
9507         * lib/propdialogs.c: 
9508         * lib/propinternals.h: 
9509         * lib/propobject.c (object_create_props_dialog)
9510         (object_copy_props): 
9511         Removing the standard (toolbox) properties from defaults dialogs.
9513 2002-07-30  Lars Clausen  <lrclause@cs.uiuc.edu>
9515         * lib/font.c (dia_font_scaled_string_width) 
9516         (dia_font_scaled_ascent, dia_font_scaled_descent): Account for
9517         zoom factor.
9518         * lib/text.c (text_calc_boundingbox): Take descent into account.
9520         * objects/standard/bezier.c (bezierline_draw): 
9521         * lib/render.c (draw_bezier_with_arrows): 
9522         Better arrow drawing for beziers.  Doesn't change the mouse-click
9523         area either.
9525         * lib/arrows.h: Some const-ness.
9527         * lib/arrows.c (calculate_arrow_point): Initialize zero-length moves.
9529         * lib/render.c (draw_arc_with_arrows): 
9530         * objects/standard/arc.c (arc_draw): Better arrow drawing for
9531         arcs.  Doesn't change the mouse-click area yet.
9533         * app/menus.c: Forgotten fix:  Redraw menu item for non-Gnome.
9535         * lib/render.h: 
9536         * lib/render.c: 
9537         Arc arrow prework.
9539 2002-07-29  Lars Clausen  <lrclause@cs.uiuc.edu>
9541         * app/group.c (group_draw): Forgotten commit: Groups to draw as
9542         objects (using default routines).
9544         * app/object_ops.h: 
9545         * app/diagram.h: 
9546         * lib/diagramdata.h: 
9547         * lib/diagramdata.c (layer_find_closest_connectionpoint): 
9548         * objects/standard/zigzagline.c (zigzagline_move_handle): 
9549         * app/diagram.c (diagram_find_closest_connectionpoint): 
9550         * plug-ins/python/pydia-diagram.c
9551         (PyDiaDiagram_FindClosestConnectionPoint):
9552         * app/object_ops.c (object_connect_display) 
9553         (object_find_connectpoint_display) 
9554         * app/create_object.c (create_object_button_press) 
9555         (create_object_motion): 
9556         * app/modify_tool.c (modify_motion): 
9557         Adding object param to allow connectionpoint and handle coinciding.
9559         * objects/standard/zigzagline.c (zigzagline_check_orientation): 
9560         Fixing minor problems.
9562         * objects/standard/ellipse.c (ellipse_update_data): 
9563         Added direction hints.
9565         * lib/diagramdata.c: 
9566         * lib/object.c: 
9567         * lib/object.h: 
9568         * lib/diagramdata.h: 
9569         * objects/standard/zigzagline.c: 
9570         First working example of zigzagline hints, currently only between
9571         Box and Zigzagline.
9573 2002-07-27  Steffen Macke <sdteffen@web.de>
9575         * plug-ins/svg/render_svg.c: added support for rounded
9576         rectangles (fixes #69053 if compile with
9577         -DNEW_RENDER_OPS)
9578         * object/custom/shape_info.[c|h]: made parse_style and
9579         parse_path accessible for svg plug-in
9580         * plug-ins/svg/Makefile.am:
9581         * plug-ins/svg/svg.c:
9582         * plug-ins/svg/svg-import.c(new): added SVG import filter
9584 2002-07-27  Lars Clausen  <lrclause@cs.uiuc.edu>
9586         * objects/standard/box.c: 
9587         * objects/standard/zigzagline.c (zigzagline_move): 
9588         More work on zigzagline hints.
9590 2002-07-26  Lars Clausen  <lrclause@cs.uiuc.edu>
9591         * lib/connectionpoint.h: 
9592         Hints for zigzaglines.
9594         * app/properties.c (properties_show): 
9595         * app/defaults.c (defaults_show): 
9596         * lib/properties.h: 
9597         * lib/propobject.c (object_create_props_dialog): 
9598         * lib/object.h: 
9599         * objects/FS/flow-poly.c: 
9600         * objects/network/wanlink.c: 
9601         * objects/network/bus.c: 
9602         * objects/UML/class.h: 
9603         * objects/UML/class_dialog.c: 
9604         * objects/UML/association.c: 
9605         Start of removing toolbox props from props dialogs.
9606         
9607         * lib/widgets.c: 
9608         * lib/arrows.h: 
9609         * app/lineprops_area.c (dia_arrow_chooser_new): 
9610         * lib/arrows.c: Two new arrows: Concave, filled and blanked.
9612         * app/create_object.c: 
9613         * app/modify_tool.c: 
9614         * app/cursor.h: 
9615         * app/cursor.c: 
9616         More cursor change.
9618 2002-07-25  Lars Clausen  <lrclause@cs.uiuc.edu>
9620         * app/preferences.c: 
9621         * lib/paper.c: 
9622         * app/diapagelayout.c: 
9623         New prefs selector kind PREF_CHOICE chooses between a list of
9624         strings.  Used for picking default paper.
9625         
9626         * app/preferences.c (prefs_data): 
9627         * lib/paper.c (get_paper_info): Added prefs setting for
9628         is_portrait.
9630         * lib/render.c (draw_polyline_with_arrows): Handles degenerate
9631         line segments at the ends (bug #86603).
9633 2002-07-25  Lars Clausen  <lrclause@cs.uiuc.edu>
9635         * objects/standard/zigzagline.c (zigzagline_copy): Fix for bug
9636         #60324: Now calls update_data after copy.
9638         * app/interface.c (fill_sheet_wbox): Better fix for bug #88601:
9639         Now doesn't steal selection from non-object tools.
9641 2002-07-24  Lars Clausen  <lrclause@cs.uiuc.edu>
9643         * app/commands.c (help_manual_callback): Uses BROWSER environment
9644         variable when available.
9646 2002-07-23  Lars Clausen  <lrclause@cs.uiuc.edu>
9648         * app/interface.c (fill_sheet_wbox): Fix for bug #88601: Select an
9649         object from the new sheet when changing.
9651         * app/app_procs.c (app_init): Uses more standard size icon, from
9652         patch #56433.  Keeping old icon as dia_gnome_icon_large.png.
9654 2002-07-22  Lars Clausen  <lrclause@cs.uiuc.edu>
9656         * objects/UML/implements.c (implements_update_data): 
9657         * objects/UML/realizes.c (realizes_update_data): 
9658         * objects/UML/dependency.c (dependency_update_data): 
9659         Test for null strings before calling on ascent.
9661         * objects/UML/realizes.c (realizes_draw): 
9662         * objects/UML/message.c (message_draw): 
9663         * objects/UML/generalization.c (generalization_draw): 
9664         * objects/UML/dependency.c (dependency_draw) 
9665         * objects/UML/constraint.c (constraint_draw): 
9666         * objects/GRAFCET/condition.c (condition_draw): 
9667         * objects/UML/association.c (association_draw): 
9668         * objects/FS/flow-ortho.c (orthflow_draw): 
9669         * objects/FS/flow.c (flow_draw): Change to use
9670         draw_foo_with_arrows.  Pretty pretty arrows.  Yay me!
9672         * lib/render.h: 
9673         * lib/arrows.c (calculate_arrow_point): 
9674         * lib/arrows.h: 
9675         * lib/render.c: 
9676         * objects/standard/zigzagline.c:
9677         * objects/standard/polyline.c:
9678         * objects/standard/line.c: Work towards better arrow drawing.
9680 2002-07-21  Lars Clausen  <lrclause@cs.uiuc.edu>
9682         * objects/UML/state.c: Starting phase-out of State object as
9683         initial/final state (which never worked right).
9685         * app/app_procs.c (app_init): --version command line option for
9686         non-Gnome.
9688         * configure.in: Slight improvement in GETTEXT_PACKAGE handling.
9690 2002-07-19  Lars Clausen  <lrclause@cs.uiuc.edu>
9692         * app/render_eps.c: Removed debugging info.
9694         * lib/font.c (dia_font_scaled_ascent, dia_font_scaled_descent):
9695         Kludge to make ascent and descent work for empty strings.  Won't
9696         work when using non-ASCII fonts.  Better would be to get a
9697         PangoFont and ask directly.
9699         * configure.in: Simple define of GETTEXT_PACKAGE, and some updates
9700         of the init stuff.
9702         * app/render_gdk.c (get_text_width): Fixed use of wrong string.
9703         Cursor now better.
9705 2002-07-18  Lars Clausen  <lrclause@cs.uiuc.edu>
9707         * plug-ins/xfig/xfig-export.c: First use of draw_object render
9708         function: All shapes are now groups in XFig export.
9710         * lib/diagramdata.c (normal_render): 
9711         * lib/render.c: 
9712         * lib/render.h: 
9713         * app/display.c (ddisplay_obj_render): 
9714         New render function for drawing objects, allows renderers to group
9715         or otherwise specially handle objects.  We may want to reconsider
9716         calling it in app/display.c, as we 'know' the object draw function
9717         is the default one there.
9719         * lib/Makefile.am: Removed extra \ that broke stuff.
9721         * plug-ins/xfig/xfig-import.c: 
9722         Spline import for xfig.  Not perfect.
9724         * objects/standard/create.h: 
9725         * objects/standard/bezier.c (bezierline_create): 
9726         * lib/bezier_conn.c: 
9727         * lib/beziershape.c (beziershape_set_points): 
9728         * lib/bezier_conn.h: 
9729         * lib/beziershape.h: 
9730         Support for creating beziers non-interactively.
9732 2002-07-17  Lars Clausen  <lrclause@cs.uiuc.edu>
9734         * plug-ins/xfig/xfig-import.c: Support for polygons and
9735         polylines.  Special warning handling system removed.
9737         * lib/message.c (gtk_message_internal): Fixed bug involving
9738         closing message window and then getting repeated message.
9740         * Makefile.am: 
9741         * autogen.sh: 
9742         * configure.in (GETTEXT_PACKAGE): 
9743         Update based on bug #88199.  Hopefully this doesn't break too much
9744         intl stuff.
9746         * dia.desktop.in (_Comment): Changed after suggestion from
9747         calum.benson@ireland.sun.com (bug 88345)
9749         * app/sheets_dialog_callbacks.c: Fix from Dolores Alia de Saravia
9750         <loli@unsa.edu.ar> that makes user/system distinction better.
9752 2002-07-16  Lars Clausen  <lrclause@cs.uiuc.edu>
9754         * app/render_libart.c: Got the context right, removed crashes.
9756         * app/commands.c: 
9757         * app/commands.h: 
9758         Redraw menu item.
9760         * app/display.c: 
9761         * app/display.h: 
9762         * app/interface.c: 
9763         * app/menus.c: 
9764         Remove libart #defines from most places (still around for png export).
9766         * app/render_libart.h: 
9767         * app/render_libart.c: 
9768         * configure.in (HAVE_LIBART): 
9769         Starting on update of libart stuff for png export (without X).
9771         * app/autosave.h (autosave_check_autosave): 
9772         * app/load_save.h: 
9773         * app/diagram.h: 
9774         * app/Makefile.am (dia_core_files): 
9775         * app/load_save.c: 
9776         * app/diagram.c (diagram_set_modified): 
9777         * app/autosave.c: 
9778         * app/app_procs.c (app_init): 
9779         Autosave support.  No automatic restore yet.
9781 2002-07-16  Lars Clausen  <lrclause@cs.uiuc.edu>
9783         * app/render_eps.c (create_eps_renderer): #ifdef'd a scale
9784         assignment. 
9785         
9786 2002-07-15  Lars Clausen  <lrclause@cs.uiuc.edu>
9788         * app/interface.c (fill_sheet_menu): Tear-off for sheets menu.
9790 2002-07-15  Andrew Ferrier  <andrew@new-destiny.co.uk>
9792         * Fix for 'make dist' etc. --- problem caused by
9793         previous AUTHORS patch.
9795 2002-07-14  Lars Clausen  <lrclause@cs.uiuc.edu>
9797         * plug-ins/cgm/cgm.c (init_fonts): Changed pango_font_map to
9798         pango_context. 
9799         (set_font): NULL check.
9800         
9801 2002-07-12  Lars Clausen  <lrclause@cs.uiuc.edu>
9803         * app/disp_callbacks.c: 
9804         * lib/diamenu.h: 
9805         Addition to the object menus allows check menu items.
9807 2002-07-11  Andrew Ferrier  <andrew@new-destiny.co.uk>
9809         * HACKING: completely changed to bring up-to-date.
9810         * AUTHORS: file needs REMOVING from CVS as now
9811           dynamically generated.
9812         * app/authors.h: split into subcategories for original
9813           authors, maintainers, etc.
9814         * app/app_procs.c: --credits rewritten to support new
9815           app/authors.h
9816         * app/commands.c: no changes to about box code, comment
9817           added though.
9818         * Makefile.am: added rule for AUTHORS. I'm still
9819           inexperienced with automake, it seems to work, but
9820           for AUTHORS-related bugs, look at this change first.
9822 2002-07-10  Lars Clausen  <lrclause@cs.uiuc.edu>
9824         * plug-ins/Makefile.am (SUBDIRS): Just realized why my hack didn't
9825         work.  Back to including xslt dir always.
9827         * objects/UML/uml.c: 
9828         * objects/UML/class.h: 
9829         * objects/UML/class_dialog.c: 
9830         * objects/UML/class.c: Patch from
9831         <mattam@netcourrier.com>:  Adds comment visibility switch, also
9832         fixes various bugs.
9834         Big patch from Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
9835         for state/fork/activity stuff.
9836         * objects/UML/state.c: Removed old draw_rounded_rectangle code.
9837         * objects/UML/Makefile.am:
9838         * objects/UML/uml.c:
9839         * sheets/UML.sheet.in: Added new objects activity, fork,
9840           state_term.
9841         * objects/UML/pixmaps/state_term.xpm:
9842         * objects/UML/state_term.c: New, only initial/final states.
9843         * objects/UML/pixmaps/activity.xpm:
9844         * objects/UML/activity.c: New, activity state.
9845         * objects/UML/pixmaps/fork.xpm:
9846         * objects/UML/fork.c: New, fork/join bar.
9847         * objects/UML/pixmaps/state.xpm: state icon.
9849         
9850         * doc/diagram.dtd: 
9851         * doc/shape.dtd: Patch from "Dolores Alia de Saravia"
9852         <loli@unsa.edu.ar> to add dia: to diagram.dtd elements and add
9853         svg:text to shape.
9855 2002-07-07  Lars Clausen  <lrclause@cs.uiuc.edu>
9857         * plug-ins/Makefile.am (SUBDIRS): Made the XSLT dir depend on
9858         detecting XSLT
9860         * app/Makefile.am: Commented out the diaconv parts while it's not
9861         used anyway.  To come back later.
9863         * configure.in (HAVE_FREETYPE): 
9864         * app/app_procs.c: 
9865         * app/render_eps.h: 
9866         * app/render_eps.c: Support for printing with freetype, better
9867         encapsulated now.  Renders the text nicely, but ignores font
9868         setting.  Requires pangoft2 to get the font outline, but non-text
9869         objects can still be rendered without it.
9871         * app/commands.h: 
9872         * app/commands.c (objects_place_up_callback) 
9873         (objects_place_down_callback): 
9874         * app/diagram.h: 
9875         * app/diagram.c (diagram_place_down_selected) 
9876         (diagram_place_up_selected): Starting support for moving objects
9877         one level up/down.
9879         * app/menus.c: Removed character/numeral shortcuts.
9881 2002-07-06  Hans Breuer  <hans@breuer.org>
9883         * makefile.am app/makefile.am lib/makefile.am
9884           objects/makefile.am plug-ins/makefile.am 
9885           plug-ins/python/makefile.am :
9886         added required files for win32 build to EXTRA_DIST
9888         * app/paginate_psprint.c app/render_eps.c 
9889           app/app_procs.c :
9890         wrap (E)PS Renderer into HAVE_FREETYPE, no FreeType
9891         on Pango as currently is on win32 => no PostScript 
9892         anymore.
9894         * lib/widgets.c : undef GTK_DISABLE_DEPRECATED;
9895         use '/* noop */;' for empty case labels; replace
9896         debug spew printf with g_print which is guaranteed 
9897         to work on win32, too.
9899         * lib/font.c (dia_pfd_set_weight) : set 'intermediate' values 
9900         for DIA_FONT_MEDIUM and DIA_FONT_DEMIBOLD as explicit allowed 
9901         in the pango_font_description_set_weight() api documentation
9902         Take care for them in dia_font_get_style() too.
9904         * lib/font.[hc] lib/widget.c objects/custom/shape_info.c
9905           plug-ins/shape/shape-export.c plug-ins/svg/render_svg.c :
9906         rename Obliquity to Slant which appears to be the usual name,
9907         also rename dia_font_get_style_string -> dia_font_get_slant_string
9909         * plug-ins/wmf/wmf.cpp : finally ported to new font api
9911         * lib/prop_attr.c app/render_gdk.c : dont *_unref if NULL
9913         * objects/uml/association.c class.c large_package.c message.c
9914         if g_free() is used g_strdup needs to be used.
9915         * objects/custom/shape_info.c
9916           objects/ER/attribute.c entity.c
9917           objects/standard/image.c 
9918           app/sheets_dialog_callbacks.c : more strdup cleaning
9920 2002-07-05  Lars Clausen  <lrclause@cs.uiuc.edu>
9922         * app/render_eps.c: Non-crashing printing (made the right
9923         context).  Font output still fscked up.
9925 2002-07-05  Andrew Ferrier  <andrew@new-destiny.co.uk>
9927         * app/authors.h: Added file --- now master
9928         location for contributors data.
9929         * app/app_procs.c: Added --credits option.
9930         * app/commands.c: Modified about box to use
9931         app/authors.h.
9933 2002-07-05  Lars Clausen  <lrclause@cs.uiuc.edu>
9935         * app/render_eps.c: First stab at EPS rendering using the contour
9936         code from PAPS.  Crashes.
9938 2002-06-30  Lars Clausen  <lrclause@cs.uiuc.edu>
9940         * app/recent_files.c (recent_file_history_remove): 
9941         Fixed call to g_list_delete_link discarding return value.
9942         
9943         * lib/widgets.c (dia_font_selector_set_styles): 
9944         * lib/font.h (DiaFontWeight): 
9945         * lib/font.c (dia_font_get_style): Revert to DIA_FONT_NORMAL==0
9947 2002-06-30  Cyrille Chepelov  <cyrille@chepelov.org>
9949         Contribution from Alan Horkan <horkana@tcd.ie>: 
9950         
9951         * shapes/Assorted/*
9952         * sheets/Assorted.sheet:
9953         A set of 40 assorted geometric shapes.
9955         * sheets/Assorted.sheet.in:
9956         * sheets/Makefile.am
9957         * shapes/Assorted/Makefile.am:
9958         * shapes/Makefile.am:
9959         * po/POTFILES.in:
9960         * configure.in:
9961         Done the integration job of Alan's shapes. (Translators: have fun!)
9963         * po/dia.pot: refreshed the main potfile.
9964         
9965 2002-06-28  Cyrille Chepelov  <cyrille@chepelov.org>
9967         Patch from Tim Ellis <Tim.Ellis@gamet.com>:
9968         
9969         * objects/UML/class.[ch]:
9970         * objects/UML/class_dialog.c:
9971         changed the number of connection points from a hardcoded value of
9972         8 to a #defined constant
9974         (I changed the constant back from 20 to 8, until we better know
9975         how we'll handle more connection points on the UML class in the
9976         future -- but Tim's patch is a welcome clean-up).
9978 2002-06-26  Cyrille Chepelov  <cyrille@chepelov.org>
9980         * shapes/MSE/demultiplexer.xpm:
9981         * shapes/MSE/node_center.xpm:
9982         * shapes/MSE/multiplexer.xpm:
9983         * shapes/MSE/tacsat.xpm: updated MSE icons (transparency) by Alan
9984         Horkan <horkana@tcd.ie>
9986 2002-06-25  Lars Clausen  <lrclause@cs.uiuc.edu>
9988         * lib/widgets.c: Total rehash of font selector, with font dialog
9989         option, expanding list (not LRU yet), and stuff.
9991 2002-06-25  Cyrille Chépélov  <cyrille@chepelov.org>
9993         * lib/font.h:
9994         * lib/font.c: 
9995         Added a set of new setter/getters, some of them more specially for
9996         the SVG-ish I/O.
9997         
9998         * plug-ins/shape/shape-export.c: (new_shape_renderer),
9999         (destroy_shape_renderer), (set_font), (draw_string):
10000         * plug-ins/svg/render_svg.c: (new_svg_renderer),
10001         (destroy_svg_renderer), (set_font), (draw_string):
10003         Actually exported the font face, style, weight and size (sodipodi
10004         agrees with dia on how a small sample should look like (a sample
10005         0.90 would not even display anyways). Yay !)
10007         Patch from Matthieu Sozeau <mattam@netcourrier.com>:
10009         * plug-ins/xslt/Makefile.am: repaired the mess Cyrille put there.
10011         (end of ChangeLog-less patch)
10013         * objects/custom/shape_info.c (parse_style): now understands the
10014         font-style and font-weight attributes as well. Does not use
10015         anymore dia_font_new_from_legacy_name().
10016         
10017 2002-06-24  Lars Clausen  <lrclause@cs.uiuc.edu>
10019         * objects/standard/textobj.c: Now uses stdprops for defaults.
10021         * lib/font.h: Changed order of DiaFontWeight entries.  Sorry.
10022         * lib/font.c (dia_font_get_style): Style now linear and conversion
10023         simple. 
10025         * lib/widgets.c (dia_font_selector_set_styles): Fixed the style
10026         selector. 
10028 2002-06-24  Cyrille Chepelov  <cyrille@chepelov.org>
10030         * plug-ins/dxf/dxf-import.c:
10031         using dia_font_new_from_style()
10033         Patch from Matthieu Sozeau  <mattam@netcourrier.com>:
10035         * objects/UML/class.[ch]: Added a comment field to class
10036         * objects/UML/uml.[ch]: Added a comment field to attributes,
10037         operations and parameters.
10038         * objects/UML/class_dialog.c: Added code for the new comment
10039         fields.
10040         * plug-ins/xslt/*.xsl: Added some code to handle comments.
10041         * plug-ins/xslt/xslt*.c: Clean up based on Cyrille comments.
10042         Added a $directory parameter for stylesheets so the output is 
10043         in the good place (not in the $PWD).
10045         (end of Patch)
10047         * AUTHORS: added contributors, updated maintainers. Removed the
10048         specific areas of action.
10050         * Patch from Andrew Ferrier <andrew@new-destiny.co.uk>, derived
10051         from a patch by Xing Wang <quixon@gnuchina.org>:
10053         * app/commands.c: help_about_callback now supports
10054         new-style GNOME about box as well as old GTK style. 
10055         code also tidied (Closes: #85726)
10057         (end of Patch)
10059         * app/commands.c: fixed the copyright (it's not all FSF), and
10060         maintainers. Synced contributors list with AUTHORS.
10061                 
10062 2002-06-24  Lars Clausen  <lrclause@cs.uiuc.edu>
10064         * lib/message.c: More work on repeating messages, now with
10065         togglable view.
10067 2002-06-24  Hans Breuer  <hans@breuer.org>
10069         * lib/widget.c : some more bits in place, at least
10070         it does something useful instead of crashing. Much
10071         better - but not all ok :-)
10073 2002-06-23  Lars Clausen  <lrclause@cs.uiuc.edu>
10075         * lib/message.c (gtk_message_internal): First stab at repeating
10076         message dialog.
10078 2002-06-23  Cyrille Chepelov  <cyrille@chepelov.org>
10080         * objects/FS/*.c:
10081         * objects/GRAFCET/*.c:
10082         * objects/SADT/*.c:
10083         * objects/UML/association.c: (one instance forgotten)
10084         * objects/UML/large_package.c: 
10085         * objects/standard/textobj.c:
10086         * lib/attributes.c:
10087         * lib/text.c:
10088         using dia_font_new_from_style()
10090 2002-06-23  Hans Breuer  <hans@breuer.org>
10092         * lib/font.c : giving some love to
10093         dia_font_new_from_legacy_name() that is making
10094         import of old files as painless as possible and
10095         provide an almost exact match where possible.
10096         It does not yet fully work because it interfers
10097         with the Style to DiaStyle conversion which comes
10098         next ...
10100         [Changing these files is only allowed with Dia-0.90]
10101         * broken-files/fonts-0.90.dia : including the
10102         common hard-coded fonts from Dia-0.90. It also
10103         has drawn bounding-boxes for win32 as they were calculated
10104         from the former version (they were all too big).
10105         * broken-files/fonts-0.90-full.dia : all hardcoded
10106         fonts including the asian versions. On my machine
10107         this gives _a lot_ complaining about missing fonts
10108         and a finally a broken file display. Anyone having
10109         all these fonts ?
10110         
10111 2002-06-23  Cyrille Chepelov  <cyrille@chepelov.org>
10113         * objects/chronogram/*.c: 
10114         * objects/custom/custom_object.c:
10115         * objects/ER/*.c:
10116         using dia_font_new_from_style()
10118 2002-06-23  Lars Clausen  <lrclause@cs.uiuc.edu>
10120         * lib/widgets.c (dia_font_selector_set_styles): Improvements to
10121         font selector (stability, insensitivity).
10123         * lib/font.c (dia_font_scaled_build_layout): Removed unworkable
10124         stretching scheme for tweaking, and made scaling scheme faster
10125         (but less precise).
10126         (dia_font_dia_style_to_pango): Oops, % != /.
10128 2002-06-23  Cyrille Chepelov  <cyrille@chepelov.org>
10130         
10131         * patch from Matthieu Sozeau  <mattam@netcourrier.com>:
10133         * plug-ins/xslt : Added an XSLT plugin to export dia files using
10134         XML Stylesheets. The plug-in requires DIA_PLUGIN_PATH to be set.
10135         It includes a small config file to tell it what stylesheets to use.
10137         (end of patch)
10138         
10139         * plug-ins/xslt/xsltdialog.c: modified the dialog to be more 
10140         GTK2.0/HIG compliant (the labels could be slightly more verbose,
10141         perhaps). Added back a couple forgotten _(). Removed //-style
10142         comments.
10143         
10144 2002-06-23  Hans Breuer  <hans@breuer.org>
10146         * lib/plug-ins.c
10147         (dia_plugin_get_name) : don't crash plugin_manager
10148         on name being NULL 
10149         (dia_plugin_load) : reuse the description field to
10150         store the error string if loading fails.
10152         * lib/font.[hc] : starting to beautify the new
10153         font api: proper namespacing, adding convenience
10154         functions like dia_font_new_from_style(), ...
10156         * objects/uml/*.c : use the new convenience functions.
10158         [Next thing I plan to do is changing the other font
10159          functions to take DiaStyle and make Style and 
10160          BASIC_*_FONT vanish. As well as giving some love to
10161          dia_font_new_from_legacy_name().
10162          If anyone want's to help on converting the other
10163          objects to the new api during that, I would highly 
10164          appreciate it.]
10166 2002-06-23  Hans Breuer  <hans@breuer.org>
10168         * lib/font.c : made it compile and small indent fixes.
10169         Is there a code-has-no-effect-so-needs-not-be-valid
10170         with GCC?       
10172         * lib/widgets.c : use g_strcasecmp
10174 2002-06-22  Lars Clausen  <lrclause@cs.uiuc.edu>
10176         * lib/font.c: 
10177         * lib/font.h: 
10178         * lib/widgets.c: Font names sorted, style selector widget
10179         reappeared.  Doesn't select the old style yet.
10181 2002-06-22  Cyrille Chepelov  <cyrille@chepelov.org>
10183         * lib/font.c: one who expects a text's font to be changed shall 
10184         actually request the attributes to apply to the whole range of the
10185         said text... D'oh! 
10187         * lib/font.c: extents computation was wrong.
10189         * lib/font.c: dia_font_get_legacy_name(); g_strconcat works better
10190         if a last NULL parameter is added...
10192         * lib/font.c: extents computation was completely wrong. This looks
10193         much better this time.
10195         * objects/UML/class.c: fixed the various strings positions.
10197         * lib/font.h, and **/*.[ch] (all callers of dia_font_new): used
10198         macros to get the hardcoded base fonts.
10200         * objects/ER/relationship.c: wasn't converted to DiaFont*
10201         
10202 2002-06-22  Hans Breuer  <hans@breuer.org>
10204         * lib/widget.c : dont use backend specific functions
10205         to get on the font_families. Including it would mean
10206         including <windows.h> which breaks due to namespace
10207         pollutions ...
10209         * lib/libdia.def : updated externals
10211         * app/makefile.msc : temporary disabled: -DHAVE_LIBART
10213         * lib/font.c : added empty dia_font_init_instance function,
10214         reformatting of dia_fon_unref to allow to set breakpoint,
10215         dia_fon_build_layout() : dont crash on string==NULL
10217         * lib/text.c (text_set_attributes) : don't unref the wrong font
10219         * lib/widgets.c (dia_fon_selector_set_font) : our hashtable
10220         stores lowercased font names, but dia_font_get_family()
10221         returns mixed case      
10223 2002-06-22  Lars Clausen  <lrclause@cs.uiuc.edu>
10225         * lib/widgets.c: 
10226         * app/render_gdk.c: Patch from Hans Breuer.
10228         * app/Makefile.am (dia_core_files): diaconv commented out for now.
10229         
10230 2002-06-22  Cyrille Chepelov  <cyrille@chepelov.org>
10232         * lib/all files touched yesterday: took into account some of Hans
10233         Breuer's remarks in
10234         http://mail.gnome.org/archives/dia-list/2002-June/msg00257.html
10236         * objects/chronogram/*: 
10237         * objects/custom/*:
10238         * objects/ER/*:
10239         * objects/flowchart/*:
10240         * objects/FS/*:
10241         * objects/GRAFCET/*:
10242         * objects/SADT/*:
10243         * objects/standard/textobj.?:
10244         * objects/UML/*:
10245         converted to the new DiaFonts.
10247         * plug-ins/cgm/*:
10248         * plug-ins/pstricks/*:
10249         * plug-ins/wpg/*:
10250         * plug-ins/dxf/*:
10251         * plug-ins/xfig/*:
10252         Made minimalistic conversions so that they'd at least compile.
10254         * app/render_gdk.c:
10255         * app/render_pixmap.c:
10256         Converted to the new DiaFonts.
10258         * app/app_procs.c
10259         * app/diaconv.c:
10260         * app/render_eps.c:
10261         made the minimal changes so that it would at least build.       
10263         *** At this point, the thing builds on my machine, but segfaults
10264         right away. ***
10265         
10266 2002-06-21  Cyrille Chepelov  <cyrille@chepelov.org>
10268         * configure.in: removed the backend-specific pango pkg_modules
10269         (trivial to add back if needed, when actually needed)
10271         * app/Makefile.am:
10272         * app/*gnomeprint.[ch]: (removed): removed the GNOME-print
10273         renderer. The APIs will have completely changed when we get around
10274         to redo a renderer for it, anyways.
10276         * font.[ch]: rewrote everything from scratch, with a Pango
10277         implementation. Normally, only backend-neutral things should go in
10278         there.
10280         **WARNING**: new rules for managing DiaFont* pointers: these are
10281         reference-counted GObjects. One >must< diafont_ref() and
10282         diafont_unref() as appropriate. I wish I could overload operator=()...
10284         lib/plug-ins.h: bumped up the plug-in API.
10285         
10286         lib/attributes.c: 
10287         lib/dia_xml.c: 
10288         lib/dummy_dep.h
10289         lib/object_defaults:
10290         lib/prop_attr.c: Adapted to the new DiaFont API. This'll change
10291         again tomorrow with GObject.
10292         
10293         lib/widgets.c: Adapted to the new DiaFont API and to Pango.
10295         **** The rest of the tree should be updated as well ****
10296         
10297 2002-06-21  Lars Clausen  <lrclause@cs.uiuc.edu>
10299         * app/render_gdk.h: 
10300         * app/render_gdk.c: 
10301         * app/render_pixmap.c: 
10302         * app/render_pixmap.h: 
10303         * app/render_libart.h: 
10304         * app/render_libart.c: 
10305         * lib/font.h: 
10306         * lib/font.c: Removed freetype stuff (still around in
10307         lib/widgets.c 'cause we might want the font selector widget).
10309 2002-06-20  Cyrille Chepelov  <cyrille@chepelov.org>
10311         * shapes/network/laptop.(xml|shape):
10312         * sheets/network.sheet.in: added Laptop (notebook) PC shape,
10313         contributed by Alan Horkan <horkana@tcd.ie>. (Closes: #82643)
10315 2002-06-17  Hans Breuer  <hans@breuer.org>
10317         * lib/object_defaults.c : #include <libxml/tree.h> not
10318         <tree.h> pointed out by Xing Wang
10320 2002-06-17  Lars Clausen  <lrclause@cs.uiuc.edu>
10322         * lib/color.h (GDK_COLOR_TO_DIA, DIA_COLOR_TO_GDK): 
10323         * lib/widgets.c: 
10324         * app/color_area.c: Update to
10325         gtk_color_selection_*_current_color() fixed bad crash issues, plus
10326         updated color conversions.
10328         * sheets/ER/weakentity.xpm: Accepted patch from
10329         quixon@gnuchina.org to make icon match actual appearance.
10331         * app/recent_files.c: Fixed GNOME recent file problem, thanks to
10332         quixon@gnuchina.org.
10334 2002-06-16  Hans Breuer  <hans@breuer.org>
10336         * lib/plug-in.[hc] : make PlugInInfo opaque again in the 
10337         good tradition of information hiding. Add new function
10338         dia_plugin_get_symbol()
10339         * app/sheets.c app/sheets_dialog_callbacks.c : use it
10341         * app/sheets.c : stop complaining about object_get_type() 
10342         returning NULL. This is a consequence of e.g. disabling 
10343         plug-ins at runtime _and_ it was and is gracefully handled. 
10344         Spitting out g_warning for it isn't appropriate. 
10346         * lib/object.[ch] : removed dead code
10348         * app/plugin-mangager.c : almost complete rewrite for gtk2
10349         using GtkListStore/GtkTreeView
10351         * lib/libdia.def : updated externals
10353         * todo.gtk2 : updated, that is removed already done steps
10355 2002-06-15  Hans Breuer  <hans@breuer.org>
10357         * objects/uml/class_dialog.c : clean some left-over
10358         utf8-mess, return 0 from "focus_out_event" handlers
10359         to avoid asserting in gtk (#78305). Reconstruct 
10360         stereotype/NULL behaviour to avoid rendering empty
10361         stereotypes on classes and member functions
10363         [#56109 - Provide object defaults for StdProp objects,
10364          some remaining issues are discussed in bugzilla]
10366         * lib/object_defaults.c : (new file) manage default properties 
10367         of dia objects. The serialization is done with standard
10368         object methods in a diagram compatible format.
10370         * lib/object.c : add object_registry_foreach() which allows
10371         to iterate over all registered object types
10373         * lib/object.h : added prototypes object_default*() and
10374         object_registry_foreach()
10376         * lib/makefile.am lib/makefile.msc : add new file to build
10378         * lib/libdia.def : export new functions
10380         * app/defaults.c : provide StdProp based defaults if the
10381         ObjectType doesn't implement it's own default functions
10383         * app/create_object.c : through dia_object_default_create()
10384         * app/disp_callbacks.c : same here
10386 2002-06-12  Lars Clausen  <lrclause@cs.uiuc.edu>
10388         * objects/FS/flow-ortho.c (orthflow_get_object_menu): Menu
10389         sensitivity for deleting segments.
10391 2002-06-12  Cyrille Chépélov  <cyrille@chepelov.org>
10393         * app/color_area.c: (color_area_events):
10394         * app/diagram.c: (diagram_destroy):
10395         * app/interface.c: (zoom_activate_callback), (fill_sheet_wbox),
10396         (fill_sheet_menu):
10397         * app/load_save.c: (diagram_data_load):
10398         * app/menus.c: (menus_get_item_from_path):
10399         * app/preferences.c: (prefs_load):
10400         * app/render_gdk.c: (get_text_width):
10401         * lib/arrows.h:
10402         * lib/color.c: (color_convert):
10403         * lib/dia_dirs.c: (dia_config_filename):
10404         * lib/dia_xml.c: (xmlDiaParseFile), (data_type):
10405         * lib/intl.c: (intl_get_language_list):
10406         * lib/message.c: (message):
10407         * lib/message.h:
10408         * lib/paper.c: (get_default_paper):
10409         * lib/plug-ins.c: (this_is_a_plugin), (dia_register_plugins):
10410         * lib/widgets.c: (dia_file_selector_get_file):
10411         * lib/widgets.h:
10412         * objects/standard/image.c: (get_directory):
10414         warningectomy.
10415         
10416 2002-06-12  Lars Clausen  <lrclause@cs.uiuc.edu>
10418         * ChangeLog: Fixed bad UTF-8 mess.  Apologies.
10420 2002-06-11  Lars Clausen  <lrclause@cs.uiuc.edu>
10422         * app/interface.c: sscanf now returns EOF on empty string, so
10423         handle no match for zoom factor better => correct zoom at start.
10425         * app/sheets.c (create_object_pixmap): Tried to display empty error.
10426         (sheets_optionmenu_create): Died when not finding specified
10427         sheet.  Don't think it should.
10429         * objects/UML/association.c: Added patch from osamyn@ulb.ac.be
10430         (bug #84367) to place the text better.
10432 2002-06-11  Cyrille Chepelov  <cyrille@chepelov.org>
10434         * configure.in: Added forgotten libgnomeui-2.0 when --enable-gnome
10435                         
10436         * app/commands.c: Removed unnecessary gnome include. Removed
10437         GNOME-Print support.
10439         * app/menus.h: Removed now unnecessary gnome include.
10440         
10441         * app/sheets_dialog.c: Used Gtk 2.0 stock buttons instead of
10442         GNOME-specific stock buttons
10443         
10444 2002-06-09  Hans Breuer  <hans@breuer.org>
10446         * app/app_procs.c : convert 'Modified diagrams exits'
10447         dialog to use GtkMessageDialog. That gives us:
10448         - icons without Gnome dependency
10449         - much less code, also cross platform
10450         - improved useability ?
10452         * app/color_area.c : the Color Selection Widget looked
10453         quite wrong (alpha problems). Fix it by merging in required
10454         changes stolen from The Gimp cvs
10455         * app/color_area.h : to get the right appearance the maskes
10456         needed to be taken into account
10457         * app/interface.c : adapt to color_area_create changes.
10458         Also remove some dead code and finally remove cvs autexpansion, 
10459         I was bothered enough by irrelevant differences :-)
10461         * app/defaults.c app/properties.c app/dia-props.c : use improved GtkDialog
10462         api, i.e stocks and response to make the GnomeDialog usage
10463         obsolete. Also fixed the issue with closing the 'parent'
10464         before closing the dialog
10466         * app/display.[ch] : removed some dead code and conversion
10467         to new GtkDialog api. Also trying to conform to new HIG
10468         standard http://developer.gnome.org/projects/gup/hig/
10470 2002-06-09  Hans Breuer  <hans@breuer.org>
10472         * lib/makefile.msc : define GTK_DISABLE_DEPRECATED,
10473         build ps-utf8.c
10475         * lib/dia_image.c : gtk_widget_set_default_visual()
10476         remove. It does nothing with Gtk2.
10478         * lib/libdia.def : added ps_unicoder exports
10480         * lib/message.c : remove #GNOME use GtkMessageDialog.
10481         Yeah, Dia gets dialogs wit icons cross-platform.
10483         * lib/prop_geomtypes.c : gtk_spin_button_get_value_as_float()
10484         to gtk_spin_button_get_value()
10486         * lib/prop_inttypes.c : gtk_label_set() -> gtk_label_set_text()
10488         add #undef GTK_DISABLE_DEPRECATED to still use ...
10489         * lib/prop_text.c :  ... GtkText
10490         * lib/prop_widgets.c : ... GtkList
10491         * lib/prop_dialogs.c : ... gtk_signal_connect and more
10492         * lib/widgets.c : ... (too much to list here)
10494         * lib/ps-utf8.c : #include <string.h>
10496 2002-06-08  Cyrille Chepelov  <cyrille@chepelov.org>
10498         * configure.in:
10499         * Makefile.am:  Adapted for gtk2.
10500         Removed dependencies on libunicode, on iconv(), on langinfo().
10502         * acconfig.h: removed (now obsolete)
10504         * lib/charconv.[ch]: removed (superceded by glib)
10505         * lib/ps-utf8.[ch]: removed dependency on charconv.[ch]
10507         * **/*.[ch]: removed (utfchar *), (unichar) and other charconv or
10508         libunicode types for their glib counterparts. Fixed the include
10509         paths for libxml2. Removed all traces of libxml1 or non-UTF8
10510         support (there were remains in objects/uml).
10512         
10513 2002-06-08  Hans Breuer  <hans@breuer.org>
10515         */*.c */*/*.c : remove all the #ifdef *_UTF8_* hell,
10516         only keep the utf-8 clean code cause Dia+Gtk2 now talk it.
10517         Also use g_strdup()'s handling of NULL by returning NULL
10518         again at all places I found (remove unnecessary if's)
10520         * todo.gtk2 : new file to keep notes about gtk2 porting,
10521         further issues and thoughts and some status information.
10522         Also sent to dia-list ('Dia goes Gtk2 ...').
10523         
10524         [make it compile with GTK+ 2.0]
10526         * config.h.win32 : #undef GTK_TALKS_UTF8_WE_DONT,
10527         removed definition of S_ISDIR, S_ISREG and getlogin
10529         * */makefile.msc : Use GTK2 and libxml2
10530         BEWARE: makefile.am, configure.in not yet ported !
10532         * app/app_procs.c app/diagram.c : remove 
10533         gtk_item_factory_dump_rc code, (it wasn't read in again anyway) 
10534         but set use gtk_menu_set_accel_path() on menu creation
10536         * app/color_area.c lib/widgets.c : 
10537         make use of gtk_color_selection_set_has_palette ()
10539         * app/commands.c : gdk_pixbuf_new_from_file wants an 
10540         extra argument. Convert from DIR to GDir usage.
10542         * app/diagram_tree.c(button_press_callback) : need to return 
10543         FALSE in the signal handler to let gtk process it further.
10544         (get_object_name) : don't leak 'prop'
10545         
10546         * app/diapagelayout.c : adapt to GtkTypeInfo changes and handle 
10547         dia_page_layout_destroy() getting called more than once
10549         * app/diaunitspinner.c : GtkEditable -> GtkEntry, 
10550         GtkTypeInfo changes
10552         * app/disp_callbacks.c : gtk_menu_append() -> gtk_menu_shell_append()
10554         * app/display.h : wrap input contexts declarations into #ifdef USE_XIM.
10555         IIRC this code will not compile unchanged when USE_XIM is defined ...
10557         * app/gtk[hv]wrapbox.[hc] : use already ported version from The GIMP 1.3.x
10559         * app/interface.c : there is no widget->klass anymore in Gtk, 
10560         use GTK_WIDGET_GET_CLASS instead. gdk_pixbuf_new_from_file() extra
10561         parameter. Some tweaking of GtkWrapBox usage to get four tools in
10562         a row again.
10563         switch off GTK's double buffering on Dia's canvas. Otherwise we would 
10564         get triple buffering and flicker.
10565         Replace call to GTK private function _gtk_accel_group_attach()
10566         with public gtk_window_add_accel_group()
10568         * app/layer_dialog.c : adapt to GtkTypeInfo changes
10570         * app/load_save.c lib/plug-ins.c lib/sheet.c 
10571           objects/custom/custom.c : 
10572         simplified by using g_file_test()
10574         * app/menus.c : convert from gtk_item_factory_<dump|parse>_rc 
10575         to gtk_accel_map_<save|load>. Also added common stock-icons
10576         to the menu.
10577         
10578         * app/preferences.c : use gtk_button_set_label() instead
10579         of button->child which is gone. Also removed GLIB_CHECK_VERSION.
10581         * app/preferences.c lib/dia_xml.c lib/plug-ins.c :
10582         #ifdef G_OS_WIN32 #include <io.h>, this was formerly done
10583         in config.h.win32
10585         * app/recent_files.c : removed GLIB_CHECK_VERSION
10587         * app/render_eps.c 
10588           plug-ins/metapost/render_metapost.c
10589           plug-ins/pstricks/render_pstricks.c
10590           plug-ins/svg/render_svg.c :
10591         replace getlogin() with g_get_user_name() which always
10592         returns non NULL
10594         * app/render_gdk.c : gdk_region_union_with_rect() modifies
10595         inplace now and returns nothing, also less #hell
10597         * app/render_libart.c : some initial #hell cleaning, SuckFont
10598         still needs to vanish
10600         * app/splash.c : gdk_pixbuf_new_from_file() second arg and
10601         GTK_WINDOW_DIALOG -> GTK_WINDOW_TOPLEVEL
10603         * app/render_pixbuf.c app/sheets.c : plain #hell cleaning
10604         * app/sheets_dialog_callbacks.c : some #hell and adaptions
10605         needed to GtkWrapBox api changes
10608         * lib/charconv.[hc] : removed from build
10609         [changed appropriate]
10610         * lib/prop_inttypes.c lib/prop_text.c : 
10611         all utf-8 cleaning 
10612         * lib/text.c : ported from HEAD but keep original indent
10613         intact. Original was done by Akira TAGOH.
10615         * lib/color.c : GdkColorContext is gone, use GdkColormap instead.
10617         * lib/dia_image.c : gdk_pixbuf_new_from_file() second arg
10619         * lib/dia_xml.c : remove #ifdef GLIB_CHECK_VERSION, it's the
10620         same on all platforms now!
10622         * lib/font.c : still using SuckFont which was an IMPERATIVE FIXME!
10624         * lib/message.c : remove "charconv.h"
10626         * lib/prop_text.c : #define GTK_ENABLE_BROKEN to use GtkText
10628         * lib/plug-in.c :
10629         * lib/sheet.c : convert from DIR to GDir usage
10631         * lib/widgets.c : gtk_menu_(shell_)append and GtkTypeInfo
10633         * lib/widgets.h : include gtk<label|colorseldialog>.h
10636         * objects/fs/flow.c :
10637         * objects/fs/flow-ortho.c : GTK_ENABLE_BROKEN to use GtkText
10639         * objects/custom/custom.c : convert from DIR to GDir usage
10642         * plug-ins/python/makefile.msc : updated for GTK2/Python2.2
10645 2002-05-03  Hans Breuer  <hans@breuer.org>
10647         * lib/dia_xml.c : make the well formed utf8 check
10648         actually work for &#251; (non 7-bit ascii encoding)
10649         and fixed the file re-writing if the check fails.
10650         Thanks to Vitaly Lipatov for noticing the misbehaviour.
10652         * lib/font.c : synchronize #ifdef G_OS_WIN32 with
10653         comment on last ressort font. Thanks to Maxim Sobolev.
10655 2002-06-03  Cyrille Chepelov  <cyrille@chepelov.org>
10657         * sheets/network.sheet.in: corrected a typo in plotter invocation.
10659 2002-06-03  Steffen Macke  <sdteffen@web.de>
10661         * shapes/network/digitizing_board.png:
10662         * shapes/network/digitizing_board.shape:
10663         * shapes/network/plotter.png:
10664         * shapes/network/plotter.shape:
10665         * shapes/network/Makefile.am
10666         * sheets/network.sheet.in: added new plotter and digitizing
10667         board shapes
10668         
10669 2002-06-02  Cyrille Chepelov  <cyrille@chepelov.org>
10671         * lib/font.c: made a symptomatic fix to a segfault reported by 
10672         Jan Keirse <jan.keirse@pandora.be> on a SuSE 7.3 system. This
10673         won't prevent dia from terminating, but should give more
10674         user-friendly information about why did it terminate.
10676         Two patches from <robert.young@dsto.defence.gov.au>:
10677         
10678         * app/display.c: fix the size of the canvas area which gets
10679         redrawn. There was an off-by one error (Closes #83659)
10681         * app/display.c: make sure we redraw all screen only when we
10682         really have to (some update_areas were mistakenly ignored) (Closes
10683         #83496). 
10685         * NEWS: added a new entry for the future. Put there a reminder to
10686         update the dependencies.
10688         * configure.in: put in notes about what will change shortly.
10689         upped the version to 0.90+cvs (did also in config.h.win32)
10690         upped the minimum version for intltools (now 0.21)
10691         
10692 2002-06-01  Cyrille Chepelov  <cyrille@chepelov.org>
10694         * dia.spec:
10695         * configure.in:
10696         * NEWS:
10697         * config.h.win32:
10698         bumped up version number to 0.90. Yay!
10700 2002-05-30  Cyrille Chepelov  <cyrille@chepelov.org>
10702         * doc/pl/Makefile.am:
10703         * doc/en/Makefile.am: fixed a "make install" problem when db2html
10704         is not present (Reported by Andrew Ferrier
10705         <andrew.junk@new-destiny.co.uk>). Fixed another "make distclean"
10706         problem which prevented me from ever seeing the problem in doc/en...
10707         
10708         * Makefile.am: added autogen.sh to the EXTRA_DIST clause.
10709         
10710         * lib/font.c: patch from <robert.young@dsto.defence.gov.au>; add a
10711         way to read the font path from the XFS configuration files in
10712         order to enable FreeType (fixes #83098).
10714         * POTFILES.(in,skip): now skips objects/sybase/sybase.c, which is not
10715         shipped nowadays.
10716                 
10717         * dia.spec:
10718         * configure.in:
10719         * NEWS:
10720         * config.h.win32:
10721         bumped up version number to 0.90.RC3
10723 2002-05-29  Zbigniew Chyla  <cyba@gnome.pl>
10725         * configure.in, doc/Makefile.am, doc/pl/Makefile.am,
10726         doc/pl/authors.sgml, doc/pl/dia-manual.sgml, doc/pl/dia-pl.omf,
10727         doc/pl/intro.sgml, doc/pl/license.sgml, doc/pl/topic.dat
10728         doc/pl/usage-canvas.sgml, doc/pl/usage-customization.sgml,
10729         doc/pl/usage-layers.sgml, doc/pl/usage-loadsave.sgml
10730         doc/pl/usage-objects-selecting.sgml, doc/pl/usage-objects-special.sgml,
10731         doc/pl/usage-objects.sgml, doc/pl/usage-quickstart.sgml:
10732         Added Polish documentation.
10734 2002-05-27  Cyrille Cheeplov  <cyrille@chepelov.org>
10736         * objects/UML/state.c: there was a (gratuitous?) change of on-XML
10737         format for the UML State object. Now there's a hack to reload
10738         older files, and get them converted on the fly. 
10739         Justyna BiaÃ…?a <nell@poczta.gazeta.pl> reported this. Thanks!
10741         * lib/properties.h:
10742         * lib/propobject.c:
10743         * lib/proplist.c: Added a new property flag, PROP_FLAG_LOAD_ONLY,
10744         and adapter the proplist predicates. A LOAD_ONLY property is for
10745         when you have legacy to support but can't resist moving your
10746         fields around... (was needed to support the above state.c fix).
10748         If the in-core of your object changes and you need a LOAD_ONLY
10749         property for the old format, you must keep some spare room in your
10750         object's struct to accomodate for the potential old-style
10751         attributes. Then in foo_load(), after having called
10752         object_load_using_properties(), you must inspect the old-style
10753         fields and act accordingly. Don't ever change the on-disk formats...
10755         * objects/UML/object.c:
10756         * objects/UML/small_package.c: added a check against empty
10757         stereotypes still consuming space. Reported by Dolores Alia de
10758         Saravia <loli@unsa.edu.ar>. Thanks!     
10759         
10760 2002-05-26  Cyrille Chepelov  <cyrille@chepelov.org>
10762         * INSTALL: added platform notes from MÃ¥rten Svantesson, for when
10763         using libtool on an AFS partition.
10765         * po/update_potfiles_in.sh: now simply calls the recent intltools 
10766         features; they work better than hand-crafted half-ignorant
10767         scripts. Thanks to Kenneth Rohde Christiansen <kenneth@gnu.org>
10768         for the tip.
10770         * po/POTFILES.in: added back two files update_potfiles_in.sh
10771         didn't take into account. Now this file is not automatically
10772         generated anymore!      
10773         * po/POTFILES.skip: told `intltool-update -m` what files to ignore
10774         (the usual suspects, in fact).
10776         * configure.in: improved the isinf() / isfinite() detection on
10777         Solaris (MÃ¥rten Svantesson)
10778         
10779 2002-05-25  Cyrille Chepelov  <cyrille@chepelov.org>
10781         * configure.in: one expression was replacing $CFLAGS, removing
10782         whatever was previously in.
10783         Added more checks for isinf() and finite() on Solaris.
10785         * lib/geometry.h: added a macro defintion for isinf() if not
10786         HAVE_ISINF. (Hans, you may want to #define HAVE_ISINF if relevant
10787         on Win32)
10789         * app/commands.c: "cut" did not set the 'modified' bit (paste has
10790         been for a little while). Fixes #82994.
10792         * Makefile.am: added more stuff to distclean-local. This should make
10793         "make distcheck" pass! Thanks to the author of
10794         http://mail.gnome.org/archives/gnome-2-0-list/2001-August/msg00212.html
10795         ... I wonder who this Henstridge guy is ... ;-)
10796         Darn. Still doesn't pass. I give up for tonight.
10797         
10798         * po/update_potfiles_in.sh: updated to take care of sheet files,
10799         and to filter out the EML plug-in.
10800         * po/POTFILES.in: updated with all .c and all .sheet.in files 
10802         * po/dia.pot, po/*.po: again updated all .po files with all
10803         strings (with the updated POTFILES). Now with the up-to-date
10804         POTFILES, just all languages have some fuzzy or untranslated
10805         strings (not that the 100% team was that large beforehand...)
10807         * po-checktrans: removed the comment about .po files not holding
10808         all translatable stuff, since now they do.
10809         
10810 2002-05-24  Cyrille Chepelov  <cyrille@chepelov.org>
10812         * dia.spec:
10813         * configure.in:
10814         * NEWS:
10815         * config.h.win32:
10816         bumped up version number to 0.90.RC2
10818 2002-05-20  Hans Breuer  <hans@breuer.org>
10820         * app/load_save.c : starting to increase
10821         Dias tolerance on incomplete/broken files. The 
10822         corresponding bug is #56233. But the patch there does
10823         neither apply anymore nor does it really fix the problem
10824         but only delays it, e.g. even if it would be allowed
10825         to read a file without any layers, the later code can't
10826         handle it.
10827         * lib/dia_xml.c : attribute_<num|first>_data(), data_type()
10828         handle passing in NULL for the node gracefully.
10830         * shapes/network/printer.shape : added two more connection
10831         points - one at each side - to fix bug #60359
10833         * app/commands.c (edit_copy_callback) : 
10834         add ddisplay_do_update_menu_sensitivity() to make 
10835         sequence select-copy-paste work.
10837 2002-05-20  Hans Breuer  <hans@breuer.org>
10839         * app/create_object.c (create_object_button_press) :
10840         added a call to ddisplay_do_update_menu_sensitivity()
10841         to make Ctrl^D etc work after object creation. 
10842         Fixes #80983.
10844 2002-05-18  Lars Clausen  <lrclause@cs.uiuc.edu>
10846         * objects/ER/entity.c: 
10847         * objects/ER/attribute.c: 
10848         * objects/ER/relationship.c: Patch to allow text size change from
10849         Celso Tetsuo Nagase Suzuki.
10851 2002-05-18  Steffen Macke <sdteffen@web.de>
10853         * app/app_procs.c: #ifdef'd xmlerror.h (comes with 
10854         libxml2)
10855         * doc/en/graphics/greendots.png:
10856         * doc/en/home_network.png:
10857         * doc/en/line_props.png: 
10858         * dia-diagram.png:
10859         * dia_gnome_icon.png:
10860         * dia_gnome_menu_icon.png:
10861         * dia_logo.png:
10862         * shapes/network/telephone.png:
10863         * shapes/Logic/and.png:
10864         * shapes/Logic/buffer.png:
10865         * shapes/Logic/connector.png:
10866         * shapes/Logic/inverter.png:
10867         * shapes/Logic/nand.png:
10868         * shapes/Logic/nor.png:
10869         * shapes/Logic/not.png:
10870         * shapes/Logic/or.png:
10871         * shapes/logic/xor.png:
10872         * samples/ER-demo.dia:
10873         * samples/SADT.dia:
10874         * samples/UML-demo.dia:
10875         * samples/chronograms.dia:
10876         * samples/grafcet.dia: re-added as binary files
10878 2002-05-17  Hans Breuer  <hans@breuer.org>
10880         * lib/libdia.def : reflect removing of render_store.[ch]
10882         * */makefile.mingw : remove VERSION definition it's
10883         done in config.h.win32. Dia still doesn't work if
10884         build with mingw ...
10886         * RELEASE-PROCESS : removed */makefile.mingw
10888         * app/sheets_dialog_callbacks.c : if we use those
10889         ugly charconv_gtk_* functions lib/charconv.h needs to
10890         be #included ...
10891         * lib/charconv.h : ... and needs to contain the 
10892         necesseray prototypes _and_ #defines
10894         * plug-ins/shape/shape-export.c : with libxml2 xmlNewGlobalNs
10895         is deprecated and does nothing but spit a warning. This broke
10896         the shape format writing. Fixed.
10897         Also with libxml2 pretty formatted xml isn't the default
10898         anymore, but needs to be enabled explicit: It is done now 
10899         for shape files, which almost always needed to be edited by
10900         hand ... 
10902         * app/app_procs.c : #if G_OS_WIN32 redirect xmlErrorReporting
10903         from stderr - which is invalid on Dia/win32 - to g_print -
10904         which opens up a console window if necessary. This way
10905         a xml-deprecation-error shouldn't stay unnoticed next time
10907 2002-05-17  Steffen Macke <sdteffen@web.de>
10909         * shapes/Misc/folder.png:
10910         * shapes/Misc/file.png: re-added as binary files
10911         
10912 2002-05-16  Lars Clausen  <lrclause@cs.uiuc.edu>
10914         * lib/font.c: Fixed segfault for fonts without family_name.
10916 2002-05-17  Cyrille Chepelov  <cyrille@chepelov.org>
10918         * po/POTFILES.in: added app/sheets_dialog_callbacks.c
10920         * app/sheets_dialog_callbacks.c: While reviewing UTF-8isation upon
10921         Lars' request, minor cosmetic stuff (mostly _() of human-readable
10922         XML comments in .sheet files; one translator booby-trap disarmed).
10924         * lib/charconv.c: moved #hell inside the body of the new
10925         charconv_*gtk* functions (otherwise the Win32 or gtk2.0 linker
10926         will yell)
10927         
10928 2002-05-16  Lars Clausen  <lrclause@cs.uiuc.edu>
10930         * plug-ins/wpg/Makefile.am (INCLUDES): 
10931         * plug-ins/shape/Makefile.am (INCLUDES): 
10932         * plug-ins/svg/Makefile.am (INCLUDES): 
10933         * plug-ins/pstricks/Makefile.am (INCLUDES): 
10934         * plug-ins/metapost/Makefile.am (INCLUDES): Added UNICODE_CFLAGS
10935         and DEBUG_CFLAGS in some missing places.
10937         * MAINTAINERS: New file containing list of known package
10938         maintainers. 
10940         * lib/charconv.h: 
10941         * lib/charconv.c: Charconv versions of some common gtk calls.
10943         * app/sheets_dialog_callbacks.c
10944         (on_sheets_new_dialog_button_ok_clicked),
10945         (on_sheets_dialog_button_edit_clicked),
10946         (on_sheets_dialog_button_remove_clicked),
10947         (on_sheets_edit_dialog_button_ok_clicked):
10948         * app/sheets.c (sheets_optionmenu_create),
10949         (sheets_optionmenu_create): Added utf8 translations.
10951         * app/sheets_dialog.c: 
10952         * app/sheets.c: 
10953         * app/sheets_dialog_callbacks.c: Added some missing _()'s.
10955 2002-05-16  Cyrille Chepelov  <cyrille@chepelov.org>
10957         * po/POTFILES.in: added app/sheets_dialog.c
10959 2002-05-15  Cyrille Chépélov  <cyrille@chepelov.org>
10961         * lib/charconv.c: (charconv_local8_to_utf8),
10962         (charconv_utf8_to_local8): tweaked the warnings to get more 
10963         informations
10964         * lib/font.c: (font_get_suckfont): handled a potential case of
10965         uninitialised data being used (just paranoid)
10966         
10967         * objects/GRAFCET/boolequation.c: (opstring),
10968         (opblock_get_boundingbox), (opblock_draw),
10969         (boolequation_calc_boundingbox): some extra hoops needed now dia
10970         talks UTF8 (but gtk doesn't). More #hell. Beeek. Basically, the
10971         symbols can't yet be used with their proper Unicode cells, since
10972         gtk will demand them in the Symbol font, expressed in the local
10973         8-bit encoding.
10974         
10975         * samples/grafcet.dia: re-saved, now with a fixed bounding box (by
10976         the fix just above).
10978 2002-05-14  Lars Clausen  <lrclause@cs.uiuc.edu>
10980         * app/diagram_tree.c (get_object_name): Check that name property
10981         doesn't have null string.
10983 2002-05-13  Lars Clausen  <lrclause@cs.uiuc.edu>
10985         * autogen.sh (DIE): Added conditional --force to gettextize.
10987         * app/pagesetup.c (pagesetup_ok): Commented out missing Gnome
10988         function call.
10990 2002-05-13  Cyrille Chepelov  <cyrille@chepelov.org>
10992         * RELEASE-PROCESS: added James' notes on how to properly make the
10993         tarball.
10995         * configure.in: removed macro nesting related to libpng.h, which
10996         was causing some problems on some systems (like mine, which made
10997         the snapshots bad).
10999         Made --enable-unicode, previously an option, the mandatory case.
11001         * app/Makefile.am: updated EXTRA_DIST
11002         
11003         * NEWS:
11004         * app/makefile.mingw:
11005         * dia.spec:
11006         * doc/en/dia-manual.sgml:
11007         * plug-ins/makefile.mingw:
11008         * configure.in: bumped up the version number to 0.90.RC1
11010         * lib/render_objects.[ch]:
11011         * po/POTFILES.in: removed render_objects from the build.
11013         * plug-ins/Makefile.am:
11014         * plug-ins/wmf/Makefile.am (new): EXTRA_DIST'ed the WMF plug-in,
11015         so we keep its source in the tarball.
11017         * objects/network/*.c, Makefile.am:
11018         * objects/sybase/*.c, Makefile.am:
11019         * po/POTFILES.in: cleaned up the non-existent files from the po
11020         build process.
11022         * plug-ins/Makefile.am: re-enabled metapost plug-in.
11023         
11024 2002-05-13  Steffen Macke <sdteffen@web.de>
11026         * AUTHORS:
11027         * app/command.c: added M. C. Nelson to the Authors
11028         * sheets/Circuit/Makefile.am: added firewall shape to build
11029         * sheets/network/Makefile.am: added telephone and microphone
11030           shapes to build
11032 2002-05-13  Lars Clausen  <lrclause@cs.uiuc.edu>
11034         * RELEASE-PROCESS: Added list of files that contain the release
11035         number or should otherwise be changed at each release.
11037 2002-05-12  Lars Clausen  <lrclause@cs.uiuc.edu>
11039         * objects/UML/uml.c (uml_operation_read): Forgot to commit this
11040         (reported fixed) bug: POLYMORPHIC -> LEAF for default.
11042 2002-05-12  Hans Breuer  <hans@breuer.org>
11044         * config.h.win32 : changed VERSION to 0.90.RC1
11046         * app/makefile.msc lib/makefile.msc : use renamed
11047         gdk-pixbuf version (same content but renamed because
11048         all the other gtk+ dlls are renamed) to avoid trouble
11049         mixing gtk versions (of which one would not 
11050         be initialized ...
11052         * app/app_procs.c : removed recently unneeded
11053         inclusion of "sheets.h"
11055         * app/render_gdk.c : removed my own debug spew
11056         which should never made it to cvs
11058         * lib/render_object.[hc] : added
11059         #error "File not used anymore."
11061         * lib/libdia.def : updated externals
11063         * app/interface.c : dropped filenames need to be
11064         converted from uri with Gtk+2.0
11066 2002-05-12  Cyrille Chepelov  <cyrille@chepelov.org>
11068         * RELEASE-PROCESS (new): a draft document about how to release. To
11069         be discussed. (already with some input from Hans Breuer)
11071 2002-05-12  Steffen Macke <sdteffen@web.de>
11073         * sheets/Makefile.am: re-added Misc sheet to make process
11074         
11075 2002-05-12  Lars Clausen  <lrclause@cs.uiuc.edu>
11077         * objects/FS/function.c: Added comments to humungous list of menu
11078         items, to aid translators.
11080 2002-05-11  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
11082         * app/menus.c (display_menu_items): Added a few shortcuts for zooms.
11084         * app/menus.c (display_menu_items): Added a few shortcuts for zooms.
11086         * app/interface.c (create_toolbox): Disallow shrinking beyond
11087         requested size.  Fixes bug #59439, and confirms to GTK guidelines
11088         (see gtk_window_set_policy).
11089         (create_sheets): Removed now unnecessary set_usize call.
11091 2002-05-10  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
11093         * lib/beziershape.c (remove_handles): Fixing removal of last
11094         segment.  Undo of removal still hokey.
11096 2002-05-10  Lars Clausen  <lrclause@cs.uiuc.edu>
11098         * lib/bezier_conn.c (remove_handles): Proper offset for fixing
11099         handles. 
11100         * lib/beziershape.c (beziershape_init): Removed early call to
11101         beziershape_update_data where points aren't set yet.
11102         (beziershape_add_segment): Use segment 0 instead of overflowing
11103         points array with segment+1.
11104         (beziershape_remove_segment): Proper offset for fixing
11105         connectionpoints. 
11106         (remove_handles): Proper offset.
11108 2002-05-08  Lars Clausen  <lrclause@cs.uiuc.edu>
11110         * objects/GRAFCET/action.c (action_update_data): Init x value of
11111         click point for call to connpointlist_adjust_count.
11113         * app/modify_tool.c (create_modify_tool): Init tool->auto_scrolled
11115         * app/render_pixmap.c (new_pixmap_renderer): Moved first linestyle
11116         setting to where values are inited.
11118         * lib/polyshape.c (polyshape_init): Removed call to
11119         polyshape_update_data that tried to use uninitialized data.
11121 2002-05-06  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
11123         * app/sheets_dialog.c: Mass removal of //-style comments.  The
11124         Irix compiler doesn't like them:(  I do...
11126 2002-05-06  Lars Clausen  <lrclause@cs.uiuc.edu>
11128         * app/render_libart.c (draw_string): Bail out when no GDK font is
11129         found.
11130         (set_font): Give error when font not found.
11131         (set_fillstyle): Intlized error msg.
11133         * app/pagesetup.c (pagesetup_ok, pagesetup_apply): Sets diagram
11134         modified when applied (and ok only does apply if apply is set
11135         sensitive).  Fixes bug #75623.
11137 2002-05-06  Pablo Saratxaga  <pablo@mandrakesoft.com>
11139         * configure.in: Added Vietnamese (vi) to ALL_LINGUAS
11141 2002-05-05  Steffen Macke <sdteffen@web.de>
11143         * app/Makefile.am: added $(UNICODE_CFLAGS)
11144         
11145 2002-05-02  Lars Clausen  <lrclause@cs.uiuc.edu>
11147         * app/commands.c (help_manual_callback): Check return value of
11148         opendir.
11150         * plug-ins/xfig/Makefile.am (INCLUDES): Added DEBUG_FLAGS
11152         * plug-ins/xfig/xfig-import.c: Fixed misspelled Poly_L_ine, added
11153         checks for errors.
11155 2002-04-30  Lars Clausen  <lrclause@cs.uiuc.edu>
11157         * app/render_gdk.c (draw_string): Extra free killed.  Thanks valgrind!
11159         * objects/UML/uml.c (uml_operation_read): Fix of UML default
11160         inheritance. 
11162 2002-04-30  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
11164         * app/filedlg.c (file_save_as_callback, file_save_as_ok_callback):
11165         Added button to toggle diagram compression.
11167 2002-04-29  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
11169         * lib/font.c: Support for loading extra kerning files, plus got
11170         rid of rounding errors.  Bounding box mostly perfect for freetype
11171         fonts.
11172         (font_string_width): Fudge factor to get around nonlinearity of
11173         font scaling.
11175 2002-04-29  Lars Clausen  <lrclause@cs.uiuc.edu>
11177         * lib/font.c (font_string_width): YA font calculation scheme, with
11178         comments.
11180         * objects/UML/class.c (umlclass_calculate_data): Uses the same
11181         font for drawing and calculating now.
11183         * configure.in: Added utime.h check.
11185         * app/render_gdk.c (draw_string): Uses gdk_draw_text_wc when in
11186         GTK_DOESNT_TALK_UTF8_WE_DO.  Thus it matches the string width calc.
11188 2002-04-26  Hans Breuer  <hans@breuer.org>
11190         [ Instead of fixing about 70 occurances in 20 files
11191           where GTK_TALKS_UTF8_WE_DONT needed to be handled
11192           Dia on win32 from now on uses glib-2.0 and not 
11193           only talks utf-8 with gtk-1.3 but also internally.
11194           GTK_TALKS_UTF8_WE_DONT isn't supported/needed
11195           anymore. ]
11197         * config.h.win32 : #define UNICODE_WORK_IN_PROGRESS
11198         #undef GTK_TALKS_UTF8_WE_DONT
11200         * */makefile.msc : changes to use glib-2.0 (still
11201         using gtk+1.3(win32-production)
11203         * app/disp_callbacks.c : remove GTK_TALKS_UTF8_WE_DONT,
11204         adapt kevent->string handling, add <string.h>
11205         * app/render_gdk.c (get_text_width) : the length given
11206         is in chars, gdk_text_width() needs bytes
11208         * app/render_libart.c : 
11209         * app/render_pixmap.c : remove GTK_TALKS_UTF8_WE_DONT
11210         (could simplify the same way as done in render_gdk.c)
11212         * app/diagram_tree.c app/paginate_gdiprint.cpp
11213           app/sheets.c :
11214         * lib/prop_basic.c lib/prop_geomtypes.c 
11215           lib/propdialgs.c lib/propobject.c :
11216         added <string.h> which is now removed from charconv.h
11218         * lib/charconv.h : optional use infrastructure from
11219         glib-2.0 -> only five direct function mapping left
11221         * lib/charconv.c : avoid to build this with glib-2.0
11223         * lib/font.c : no string conversion needed anymore      
11224         when Dia and Gtk talk utf-8, also code adaptions
11225         for GLIB_CHECK_VERSION(2,0,0)
11227         * lib/libdia.def : removed charconv functions
11229         * lib/prop_inttypes.c : removed GTK_TALKS_UTF8_WE_DONT,
11230         replace charconv_unichar_to_utf8() with g_unichar_to_utf8()
11232         * lib/prop_text.c lib/prop_widgets.c lib/font.c : 
11233         removed GTK_TALKS_UTF8_WE_DONT
11235         * lib/text.c : finally(?) fixed cursor <place|move>ment 
11236         for Umlauts. Also fixed char insertion, still wondering
11237         how this could ever work. Does realloc on Linux 
11238         initialize the memory with zeros ?
11240         * objects/chronogram/chronoline_event.c
11241           objects/grafcet/boolequation.c :
11242         there is no uni_get_utf8 when building for glib-2.0.
11243         Replace with g_utf8_get_char() and g_utf8_next_char().
11245         * objects/uml/stereotype.c (bracketted_to_string) : 
11246         simplify while adding code for glib-2.0 build
11248 2002-04-27  Lars Clausen  <lrclause@cs.uiuc.edu>
11250         * app/diagram.h: Autosave field
11251         * app/diagram.c (diagram_set_modified): Sets autosave field.
11252         
11253         * objects/UML/usecase.c (usecase_update_data): 
11254         * objects/flowchart/ellipse.c (ellipse_update_data): 
11255         * objects/flowchart/parallelogram.c (pgram_update_data): 
11256         * objects/flowchart/diamond.c (diamond_update_data): 
11257         * objects/custom/custom_object.c (custom_update_data): 
11258         * objects/UML/state.c (state_update_data): 
11259         * objects/UML/small_package.c (smallpackage_update_data): 
11260         * objects/UML/object.c (objet_update_data): 
11261         * objects/UML/note.c (note_update_data): 
11262         * objects/UML/node.c (node_update_data): 
11263         * objects/UML/component.c (component_update_data): 
11264         * objects/UML/classicon.c (classicon_update_data): 
11265         * objects/UML/actor.c (actor_update_data): 
11266         * objects/SADT/box.c (sadtbox_update_data): 
11267         * objects/FS/function.c (function_update_data): 
11268         All now update text boundaries from update_data.
11269         
11270         * lib/widgets.c (dia_font_selector_set_styles): Made the style set
11271         correctly. 
11273 2002-04-26  Hans Breuer  <hans@breuer.org>
11275         * config.h.win32 : added VERSION definition here
11276         (and removed from makefile.msc's)
11278         * app/makefile.msc : added new files
11280         * app/app_procs.c (app_init): remove sheets_dialog_create()
11281         from start-up and ... 
11283         * app/sheet.c (sheets_dialog_show_callback) : ... lazy create
11284         sheet_dialog here when it is really needed.
11285         #include "../lib/message.h", make sheets_dialog_create() 
11286         return it's success or failing on (!custom_type_symbol). 
11287         Although editing shapes is nice IMHO it isn't crucial enough 
11288         to abort() Dia if       it isn't possible.
11290         * app/sheet.h : adapt create_sheet_dialog() prototype
11292         * app/sheets_dialog.c : add #ifdef HAVE_UNISTD_H
11294         * app/sheets_dialog_callbacks.c : #ifdef HAVE_UNISTD_H and
11295         #ifdef HAVE_UTIME_H. Otherwise #include <sys/utime.h> and
11296         name space corrections for utime() and utim_buf #ifdef
11297         G_OS_WIN32
11299         * lib/libdia.def : export new sheet functions
11301         * lib/makefile.msc : added new files
11303         * lib/render.c : don't put draw_bezier_with_arrows() in
11304         the DrawLineWithArrowsFunc slot
11306         * objects/custom/custom_object.c : #include <gmodule.h>
11307         and export 'custom_type' via G_MODULE_EXPORT
11309         * objects/uml/class_dialog.c : removed 'incompatible 
11310         types' warnings. Some refactoring while making it fit
11311         on screen with 800x600 again.
11313         * plug-ins/python/pydia-cpoint.h : add PyDiaConnectionPoint_Check
11315         * plug-ins/python/pydia-handle.h : extra parameter to
11316         PyDiaHandle_New to store the owner of the handle
11317         * plug-ins/python/pydia-handle.c : store handle owner
11318         on construction and use it in new method .connect()
11319         * plug-ins/python/pydia-object.c plug-ins/python/pydia-diagram.c : 
11320         adapt to changed prototype
11322 2002-04-24  Lars Clausen  <lrclause@cs.uiuc.edu>
11324         * lib/text.c (text_calc_boundingbox): Will now return early if box
11325         passed is NULL.
11327         * objects/flowchart/box.c (box_update_data): Now updates text
11328         width info from update_data.
11330 2002-04-23  Steffen Macke <sdteffen@web.de>
11332         * plug-ins/xfig/xfig-import.c: fixed text import
11333         
11334 2002-04-22  Lars Clausen  <lrclause@cs.uiuc.edu>
11336         * app/export_png.c: Moved dialog functions to their own file.
11337         * app/dialogs.[ch]: New files with standard functions for creating
11338         small, transient dialogs (e.g. export options).
11339         * app/Makefile.am: Added dialogs.[ch]
11341 2002-04-19  Steffen Macke <sdteffen@web.de>
11343         * shapes/Misc/folder.*:
11344         * shapes/Misc/file.*:
11345         * shapes/Misc/Makefile.am:
11346         * shapes/Makefile.am:
11347         * sheets/Misc.sheet.in:
11348         * sheets/Makefile.am:
11349         * configure.in: added new Misc sheet containing filesystem shapes
11350         
11351 2002-04-18  Lars Clausen  <lrclause@cs.uiuc.edu>
11353         * app/lineprops_area.c: Arrow selector in toolbox changed to use
11354         standard arrowdraw code.  Line is thinner to make some arrowheads
11355         distinguishable. 
11357 2002-04-18  Steffen Macke <sdteffen@web.de>
11359         * sheets/network.sheet.in:
11360         * shapes/network/telephone.shape:
11361         * shapes/network/Makefile.am: added telephone shape
11362         
11363 2002-04-16  Steffen Macke <sdteffen@web.de>
11365         * sheets/EML.sheet.in: commented out unavailable shapes
11366         
11367 2002-04-15  M.C. Nelson <mcn@kobayashimaru.org>
11369         * app/sheets_dialog_callbacks.c:  Fixed segfault caused by mis-ordered
11370           variable assignment.
11371         
11372 2002-04-15  Steffen Macke <sdteffen@web.de>
11374         * plug-ins/dxf/dxf-import.c: text import works again
11375         * shapes/Pneumatic/Makefile.am: added compush shape
11376         * sheets/Pneumatic.sheet.in: commented out unavailable shapes dist33
11377         and dist53
11378         
11379 2002-04-11  M.C. Nelson <mcn@kobayashimaru.org>
11381         * All these modifications are for the 'Sheets and Objects' dialog
11382           (new feature):
11384         * app/pixmaps/line_break.xpm: new icon representing a line break.
11385         
11386         * app/pixmaps/n_a.xpm: new empty icon representing not available.
11388         * app/Makefile.am: added sheets_*.[ch] files to compile list.
11389         
11390         * app/menus.c: added GNOME and gtk menu items for 'Sheets and Objects'
11391         
11392         * app/sheets_dialog.c: [new file] definition of 'Sheets & Objects' dlgs
11394         * app/sheets_dialog.h: [new file] support for Sheets & Objects dlgs 
11395         
11396         * app/app_procs.c: added call to sheets_dialog_create() in app_init()
11397         
11398         * app/sheets_dialog_callbacks.c: [new file] callbacks for S & O dialogs
11400         * app/sheets_dialog_callbacks.h: [new file] support for " " "
11402         * app/interface.c: added 'interface_current_sheet_name' global to 
11403           fill_sheet_wbox(); made fill_sheet_menu() non-static
11405         * app/interface.h: added extern declaration for aboves.
11407         * app/sheets.c: [new file] instantiation and other funcs for S & O dlgs
11409         * app/sheets.h: [new file] declarations for backing store structures
11411         * lib/sheet.c: modification of new_sheet() parameters; introduction
11412           of USER and SYSTEM scope for sheets; procedure for sorting sheets;
11413           changes to load_register_sheet().
11415         * lib/sheet.h: added 'user_data_type' field to SheetObject structure;
11416           added 'has_icon_on_sheet' flag to SheetObject structure; added 
11417           'filename', 'scope', 'shadowing' fields to Sheet structure.
11419         * lib/plug-ins.c: moved _PluginInfo declaration to header file where
11420           it belongs.
11422         * lib/plug-isn.h: see above.
11424         * lib/object.c: added 'sheet.h' to include list; added several 
11425           functions
11426           to detect objects which are not found on any sheet (for future use)
11427           object_type_detect_nosheet_callback(), object_types_detect_nosheet(),
11428           object_type_get_sheet_name(), object_type_strip_sheet_from_name().
11430         * lib/object.h: added public declarations for above functions where
11431           necessary.
11433         * objects/custom/custom.c: made custom_object_load() non-static so we
11434           can load and interpret .shape files from the Sheets & Objects dialog
11436         * objects/custom/custom_object.c: made 'custom_type' non-static so 
11437           we can differentiate between SVG shapes and other types.a
11439 2002-04-07  Hans Breuer  <hans@breuer.org>
11441         * app/object_ops.c (object_list_align_v): Fix the 'Leak fix'
11442         from 2002-01-22 to not destroy diagram->data->selected. 
11443         Avoids to crash on Objects/Align/Vertical/Top
11445         * app/render_eps.c (draw_string) : un-const buffer
11446         It isn't at all const (g_malloc(), assignment, g_free()).
11447         Doesn't gcc catch such ?
11449         * lib/arrows.h : prototype calculate_arrow_point()
11451         * lib/font.c (font_get_suckfont) : no need to
11452         special case gdk_draw_string() with GTK_TALKS_UTF8,
11453         cause all the parameter differences are handled above
11455         * lib/libdia.def : updated externals
11457         * lib/makefile.msc : removed string_prerenderer, added render
11459         * lib/render.c (draw_rect) : don't pass a Point** if a Point*
11460         is expected. [Sometimes it's good to read compiler warnings.]
11462         * objects/standard/image.c : simplified by use of g_strconcat()
11464         * plug-ins/python/makefile.msc : updated for Python 2.2
11466 2002-04-03  Lars Clausen  <lrclause@cs.uiuc.edu>
11468         * objects/standard/zigzagline.c (zigzagline_draw): Fixed
11469         directionality problem for zero-length line segments.
11471 2002-03-28  Lars Clausen  <lrclause@cs.uiuc.edu>
11473         * app/diagram.c (diagram_ungroup_selected) 
11474         (diagram_update_menu_sensitivity): Now allows ungrouping of
11475         several groups at once.
11477 2002-03-15  Lars Clausen  <lrclause@cs.uiuc.edu>
11479         * lib/render.c, all renderers: Binary incompatibility, change to
11480         expandable renderops structure.
11482 2002-03-15  Steffen Macke <sdteffen@yahoo.com>
11484         * objects/standard/Makefile.am:
11485         * objects/network/Makefile.am:
11486         * objects/UML/Makefile.am:
11487         * objects/ER/Makefile.am:
11488         * objects/FS/Makefile.am:
11489         * objects/flowchart/Makefile.am:
11490         * objects/custom/Makefile.am:
11491         * objects/GRAFCET/Makefile.am:
11492         * objects/chronogram/Makefile.am:
11493         * objects/SADT/Makefile.am:
11494         * plug-ins/cgm/Makefile.am:
11495         * plug-ins/pstricks/Makefile.am:
11496         * plug-ins/hpgl/Makefile.am:
11497         * plug-ins/wpg/Makefile.am:
11498         * plug-ins/svg/Makefile.am:
11499         * plug-ins/shape/Makefile.am: added $(UNICODE_CFLAGS)
11500         
11501 2002-03-13  Lars Clausen  <lrclause@cs.uiuc.edu>
11503         * app/render_eps.c: Support for dumping TrueType fonts (taken from
11504         ttfps).
11506 2002-03-12  Lars Clausen  <lrclause@cs.uiuc.edu>
11508         * lib/render.c: New abstract super class for renderers.
11510 2002-03-07  Akira TAGOH  <tagoh@redhat.com>
11512         * objects/ER/attribute.c (attribute_save): save a font property.
11513         (attribute_load): load a font property, and if can't load it, it's
11514         initialized.
11516         * objects/ER/entity.c (entity_save): save a font property.
11517         (entity_load): load a font property, and if can't load it, it's
11518         initialized.
11520         * objects/ER/relationship.c (relationship_save): save a font property.
11521         (relationship_load): load a font property, and if can't load it, it's
11522         initialized.
11524         * objects/UML/class.c (fill_in_fontdata): don't replace if it already
11525         has a vaule.
11526         (umlclass_save): save the font and the font size properties.
11527         (umlclass_load): load the font and the font size properties.
11529 2002-03-05  Cyrille Chepelov  <cyrille@chepelov.org>
11531         * lib/string_prerenderer.[ch] (REMOVED):
11532         * lib/render.h:
11533         * lib/diagramdata.c:
11534         * lib/Makefile.am:
11535         * app/render_eps.c: got rid of the string-specific string
11536         prerenderer, transitioned its functionality towards Lars'
11537         two-phase rendering
11539 2002-03-05  Lars Clausen  <lrclause@cs.uiuc.edu>
11541         * configure.in: Using Freetypes own check for ver >= 1.0.5.  You
11542         may need to rerun aclocal.
11544 2002-03-04  Lars Clausen  <lrclause@cs.uiuc.edu>
11546         * lib/font.c: First attempt at Unicodeness for Freetype.
11548 2002-03-02  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
11550         * lib/font.c (font_string_width): Fixed font_string_width for
11551         freetype.  BB is now almost right.
11553 2002-03-01  Lars Clausen  <lrclause@cs.uiuc.edu>
11555         * app/render_eps.h: 
11556         * app/paginate_psprint.c (paginate_psprint): 
11557         * lib/font.c: 
11558         * app/render_eps.c: Support for dumping postscript fonts into
11559         postscript files with freetype.  Fairly primitive, but works.
11560         Unicode version may have problems.
11562 2002-02-28  Akira TAGOH  <tagoh@redhat.com>
11564         * objects/UML/class_dialog.c (class_read_from_dialog)
11565         (class_fill_in_dialog), (class_create_page): add the font selector and
11566         the font size selector.
11568         * objects/UML/class.c (umlclass_draw): uses each font_height.
11569         (umlclass_calculate_data): ditto.
11570         (fill_in_fontdata): add initial value of new font_height.
11571         (umlclass_copy): add new font_height.
11573 2002-02-27  Cyrille Chepelov  <chepelov@calixo.net>
11575         Patch from Geoff Gerrietts <ggerrietts@yahoo.com>:
11576         
11577         * lib/font.c: calculate font metrics properly and stop guessing at
11578         string widths.
11580 2002-02-28  Akira TAGOH  <tagoh@redhat.com>
11582         * configure.in: changed gtk_advancement value to dia_talks_utf8.
11583         right now Dia is working with UTF-8 internally. it means Dia probably
11584         support most languages also including the languages which heretofore
11585         didn't work correctly.
11587 2002-02-26  Akira TAGOH  <tagoh@redhat.com>
11589         * objects/FS/function.c: add related text properties.
11590         (function_get_props), (function_set_props): add handling attribute.
11592         * objects/FS/flow.c: add related text properties.
11593         (flow_get_props), (flow_set_props): add handling attribute.
11595         * objects/FS/flow-ortho.c: add related text properties.
11596         (orthflow_set_props), (orthflow_get_props): add handling attribute.
11598         * objects/ER/relationship.c: add PROP_STD_TEXT_FONT to property.
11600         * objects/ER/entity.c: ditto.
11602         * objects/ER/attribute.c: ditto.
11604 2002-02-26  Cyrille Chepelov  <cyrille@chepelov.org>
11606         Patch contributed by Geoff Gerrietts <ggerrietts@yahoo.com>:
11607         
11608         * autogen.sh: add a check for missing intltoolize.
11610 2002-02-20  Akira TAGOH  <tagoh@redhat.com>
11612         * lib/ps-utf8.c (unicode_to_ps_name): if this function calls with same
11613         charcode, it was registered the duplicate item to HashTable. fix.
11615         * app/render_gnomeprint.c (get_width_string): add new function.
11616         (draw_string): fix non-multibyte specific code.
11618 2002-02-19  Cyrille Chepelov  <cyrille@chepelov.org>
11620         Patch contributed by Matthieu Sozeau <mattam@netcourrier.com>:
11621         
11622         * lib/font.c: do not try to search paths that do not begin with
11623         '/', like X Font Server addresses.
11624         
11625         * objects/UML/message.c (message_draw): free mname when not 
11626         message->text but CREATE or DESTROY.
11627         
11628         * objects/UML/uml.h:
11629         * objects/UML/uml.c:
11630         * objects/UML/class_dialog.c: added code to handle a stereotype 
11631         attribute for operations.
11633 2002-02-19  Akira TAGOH  <tagoh@redhat.com>
11635         * lib/Makefile.am: add LIBART_CFLAGS.
11637 2002-02-15  Hans Breuer  <hans@breuer.org>
11639         * lib/font.c (font_get_suck_font): the black and white pixel values 
11640         need to be taken from a 1 bit colormap rather than the default colormap.
11641         (fixed again, last time was 2000-05-26)
11643         Also handle the case where GTK_TALKS_UTF8 and expects all strings
11644         passed in to be in this encoding.
11646         * lib/libdia.def : export suck_font_free()
11648         * lib/text.c (text_draw) : avoid circular dependency to ../app
11649         at least for the !USE_XIM case, where it is unnecessary.
11651 2002-02-15  Cyrille Chepelov  <cyrille@chepelov.org>
11653         Changes contributed by Matts Kivik <kivik@firstlinux.net>:
11654         
11655         * shapes/Circuit/microphone_de.(shape|xpm) (NEW):
11656         * sheets/Circuit.sheet.in: added new shape microphone
11657         * shapes/Circuit/speaker_de.shape: Added a connection point.
11658         
11659 2002-02-13  Akira TAGOH  <tagoh@redhat.com>
11661         * app/render_libart.c (draw_string): fixed build issue for Win32.
11663         * lib/font.c (font_get_suckfont): fixed typo. it could't build under
11664         Win32.
11666         * configure.in: fixed testing gtk_advancement.
11668         * app/render_gnomeprint.c (draw_string): uses utfchar instead of char.
11670 2002-02-12  Akira TAGOH  <tagoh@redhat.com>
11672         * lib/text.c (text_draw): fixed XIM position, when menubar is shown for
11673         diagram window.
11675 2002-02-11  Lars Clausen  <lrclause@cs.uiuc.edu>
11677         * app/group.c (group_copy): Made new object properly initialized
11678         before copy.
11680 2002-02-11  Steffen Macke <sdteffen@yahoo.com>
11682         * app/Makefile.am: added plug-ins to DIA_LIB_PATH in run_dia.sh
11683         
11684 2002-02-10  Akira TAGOH  <tagoh@redhat.com>
11686         * lib/text.c (text_draw): fixed XIM transaction.
11688         * app/interface.c (create_display_shell): add signal for
11689         size_allocate.
11691         * app/disp_callbacks.c (ddisplay_size_allocate): add new function for
11692         XIM transaction.
11693         (set_input_dialog): remove.
11694         (ddisplay_canvas_events): remove XIM transaction. it can't transact
11695         correctly on this function.
11697 2002-02-10  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
11699         * app/app_procs.c:
11700         * app/export_png.c: Added checks for interactivity (maybe this
11701         should be a hook after all?).
11703         * app/filedlg.c (file_export_callback): Made export dialog add
11704         suffix when reopened.
11706         * app/export_png.c: Added dialog asking for export size.
11708 2002-02-09  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
11710         * lib/widgets.c: Fixed font reselection problem and first font
11711         bogus warning.
11713         * objects/UML/actor.c (actor_update_data): Changed to have
11714         connection points below text.
11716 2002-02-08  Akira TAGOH  <tagoh@redhat.com>
11718         * lib/text.c (text_split_line): use g_strndup() instead of g_malloc()
11719         and memcpy().
11721 2002-02-07  Akira TAGOH  <tagoh@redhat.com>
11723         * lib/font.c (font_get_suckfont): rewrited. generating suckfont from
11724         strings which is given.
11725         (suck_font): remove. it's any longer needed.
11727         * app/render_libart.c (set_font): don't get suckfont.
11728         (draw_string): get suckfont only which is needed for now.
11730 2002-02-05  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
11732         * lib/text.c: Fixes for misunderstood width functions.
11734 2002-02-05  Hans Breuer  <hans@breuer.org>
11736         * lib/dia_xml.c : use g_strconcat() instead of 
11737         malloc, strcpy, strcat dance
11738         * app/properties.c : same here and plug memory leak
11739         (gtk functions don't eat strings)
11741         * objects/UML/message.c : there is no g_sprintf()
11742         use g_strdup_printf() instead ...
11744 2002-02-05  Akira TAGOH  <tagoh@redhat.com>
11746         * lib/message.c (gtk_message_internal): doesn't need to convert to
11747         UTF-8.
11749         * app/render_libart.c (draw_string): fixed transaction for UTF-8
11750         support.
11751         (get_text_width): ditto.
11753         * app/Makefile.am (EXTRA_DIST):
11754         s/paginate_gdiprint.c/paginate_gdiprint.cpp/
11756         * app/render_gdk.c (gdk_freetype_copy_glyph): fixed build issue.
11757         This function needs ifdef HAVE_FREETYPE because don't use it for
11758         --disable-freetype
11760 2002-02-04  Cyrille Chepelov  <cyrille@chepelov.org>
11762         * NEWS: updated with the new dependencies.
11763         
11764         Patch from Matthieu Sozeau <mattam@netcourrier.com>:
11766         * objects/UML/class.h:
11767         * objects/UML/class.c:  
11768         * objects/UML/class_dialog.c: added code to handle the UMLParameterKind
11769         property using a GtkMenu. Options are Undefined, In, Out, In & Out
11771 2002-02-04  Lars Clausen  <lrclause@cs.uiuc.edu>
11773         * app/render_libart.c: Slow but working libart freetype renderer,
11774         with color!
11776 2002-02-03  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
11778         * app/render_gdk.c (draw_string): Fixed gc_function bug.
11780         * lib/widgets.c (dia_font_selector_init): Sorts the font list.
11782         * lib/font.c (freetype_render_string): 
11783         * lib/font.h:
11784         * app/render_gdk.c:
11785         * app/render_gdk.h: Changed freetype_render_string to use
11786         callback.  Rendering is broken.
11788 2002-02-03  Cyrille Chepelov  <cyrille@chepelov.org>
11790         Patch from Matthieu Sozeau <mattam@netcourrier.com>:
11792         * objects/UML/uml.h:    
11793         * objects/UML/uml.c: added UMLInheritanceType and isQuery
11794         (constant) UML Operation attributes. UMLInheritanceType is either
11795         UML_ABSTRACT or UML_POLYMORPHIC  or UML_LEAF.
11797         * objects/UML/class.h:
11798         * objects/UML/class.c:  
11799         * objetcs/UML/class_dialog.c: added code to handle new
11800         UMLOperation attributes via a GtkMenu and a checkbox.
11802 2002-02-03  Akira TAGOH  <tagoh@redhat.com>
11804         * app/disp_callbacks.c (ddisplay_realize): fixed XIM issue.
11805         several client doesn't work with previous codes.
11807 2002-02-01  Lars Clausen  <lrclause@cs.uiuc.edu>
11809         * lib/font.c (freetype_render_string): Kerning.  Very few fonts
11810         seem to use it.
11812 2002-02-02  Akira TAGOH  <tagoh@redhat.com>
11814         * app/disp_callbacks.c (ddisplay_canvas_events): fixed crashes,
11815         when doing the operation like invert the objects after active view is
11816         destroyed. when changes focus, it needs to set active_display.
11818         * app/layer_dialog.c (dia_layer_update_from_layer):
11819         (layer_dialog_edit_layer): need to convert to locale encoding
11820         if GTK_DOESNT_TALK_UTF8_WE_DO is defined.
11821         (edit_layer_ok_callback):
11822         need to convert to UTF8 if GTK_DOESNT_TALK_UTF8_WE_DO is defined.
11824         * lib/diagramdata.c (new_diagram_data): ditto.
11826         * app/layer_dialog.c (layer_dialog_new_callback): ditto.
11828         * lib/diagramdata.c (new_layer): use utfchar instead of char for
11829         argument.
11831         * lib/widgets.c: if HAVE_FREETYPE isn't defined, it can't build. fixed.
11832         (dia_font_selector_set_styles): when HAVE_FREETYPE is defined only,
11833         it's needed for now. also this function needs prototype declaration.
11835 2002-01-31  Lars Clausen  <lrclause@cs.uiuc.edu>
11837         * lib/widgets.c: Style now functional on font selector.  Some leak
11838         possible, but doesn't show up under stress test.
11840 2002-01-31  Akira TAGOH  <tagoh@redhat.com>
11842         * app/plugin-manager.c (clist_select_row): name and description needs to
11843         convert to locale encoding, when GTK_DOESNT_TALK_UTF8_WE_DO is defined.
11844         (get_plugin_manager): ditto.
11846         * lib/plug-ins.c (dia_plugin_info_init): name needs to convert to UTF-8.
11848         * app/diagram_tree.c (get_object_name): fixed transaction for UTF-8
11849         support.
11851         * lib/prop_text.c (stringprop_reset_widget): fixed crashes,
11852         when prop->string_data is NULL.
11854 2002-01-30  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
11856         * lib/widgets.c: 
11857         * lib/widgets.h: New font selector separating font and style.
11858         Style not functional yet.
11860 2002-01-30  Lars Clausen  <lrclause@cs.uiuc.edu>
11862         * lib/text.c: 
11863         * app/render_gdk.c (draw_string): More freetype support, now
11864         renders text.  Still broken is font selection and exporting.
11866 2002-01-30  Akira TAGOH  <tagoh@redhat.com>
11868         * objects/chronogram/chronoref.c (chronoref_create): missing gettextize
11869         for font.
11871         * objects/chronogram/chronoline.c (chronoline_create): ditto.
11873         * objects/UML/usecase.c (usecase_create): ditto.
11875         * objects/UML/state.c (state_create): ditto.
11877         * objects/UML/object.c (objet_create): ditto.
11879         * objects/UML/node.c (node_create): ditto.
11881         * objects/UML/message.c (message_create): ditto.
11883         * objects/UML/component.c (component_create): ditto.
11885         * objects/UML/classicon.c (classicon_create): ditto.
11887         * objects/UML/actor.c (actor_create): ditto.
11889         * objects/SADT/box.c (sadtbox_create): ditto.
11891         * objects/SADT/annotation.c (annotation_create): ditto.
11893         * objects/GRAFCET/transition.c (TRANSITION_FONT): ditto.
11895         * objects/GRAFCET/step.c (STEP_FONT):
11896         * (step_create): ditto.
11898         * objects/GRAFCET/condition.c (CONDITION_FONT): ditto.
11900         * objects/GRAFCET/action.c (ACTION_FONT):
11901         (action_create): ditto.
11903         * objects/FS/function.c (function_create): ditto.
11905         * objects/FS/flow.c (flow_create):
11906         (flow_load): 
11907         (flow_apply_defaults): ditto.
11909         * objects/FS/flow-poly.c (flow_create):
11910         (flow_load):
11911         (flow_apply_defaults): ditto.
11913         * objects/FS/flow-ortho.c (orthflow_create):
11914         (orthflow_load):
11915         (orthflow_apply_defaults): ditto.
11917         * objects/ER/relationship.c: use utfchar instead of char for structure.
11918         (relationship_create): name needs to convert to UTF-8.
11920         * objects/ER/attribute.c: use utfchar instead of char for structure.
11921         (attribute_create): name needs to convert to UTF-8.
11923         * objects/ER/entity.c: use utfchar instead of char for structure.
11924         (entity_create): name needs to convert to UTF-8.
11926         * app/interface.c (fill_sheet_wbox): needs to convert UTF-8 to locale
11927         encoding for tooltips, if GTK_TALKS_UTF8 isn't defined.
11928         (fill_sheet_menu): needs to convert UTF-8 to locale encoding for menu
11929         items. if GTK_TALKS_UTF8 isn't defined.
11931 2002-01-29  Akira TAGOH  <tagoh@redhat.com>
11933         * objects/UML/class.c (umlclass_calculate_data): fixed malloc size.
11934         it was my careless mistake...
11936         * lib/attributes.c (attributes_set_default_font): temporarily gettextize
11937         a font name, because there are strings which isn't shown by "Courier".
11938         We need to consider a way to feel free to choose a font at runtime.
11940         * lib/render_object.c (render_object_load): ditto.
11942         * lib/text.c (data_text): ditto.
11944         * objects/EML/instantiation.c (instantiation_create): ditto.
11946         * objects/EML/interaction-ortho.c (interaction_ortho_create):
11947         (interaction_ortho_load): ditto.
11949         * objects/EML/interaction.c (interaction_create):
11950         (interaction_load): ditto.
11952         * objects/EML/process.c (fill_in_fontdata): ditto.
11954         * objects/ER/attribute.c (attribute_create): 
11955         (attribute_load): ditto.
11957         * objects/ER/entity.c (entity_create): 
11958         (entity_load): ditto.
11960         * objects/ER/relationship.c (relationship_create): 
11961         (relationship_load): ditto.
11963         * objects/UML/association.c (association_create): 
11964         (association_load): ditto.
11966         * objects/UML/class.c (fill_in_fontdata): ditto.
11968         * objects/UML/constraint.c (constraint_create): ditto.
11970         * objects/UML/dependency.c (dependency_create): ditto.
11972         * objects/UML/generalization.c (generalization_create): ditto.
11974         * objects/UML/implements.c (implements_create): ditto.
11976         * objects/UML/large_package.c (largepackage_create): ditto.
11978         * objects/UML/note.c (note_create): ditto.
11980         * objects/UML/realizes.c (realizes_create): ditto.
11982         * objects/UML/small_package.c (smallpackage_create): ditto.
11984         * objects/custom/shape_info.h (FONT_DEFAULT): ditto.
11986         * objects/custom/custom_object.c (custom_create): ditto.
11988         * objects/network/antenna.c (render_to_store): ditto.
11990         * objects/network/computer.c (render_to_store): ditto.
11992         * objects/network/disc.c (render_to_store): ditto.
11994         * objects/network/flash.c (render_to_store): ditto.
11996         * objects/network/hub.c (render_to_store): ditto.
11998         * objects/network/modem.c (render_to_store): ditto.
12000         * objects/network/modularswitch.c (render_to_store): ditto.
12002         * objects/network/monitor.c (render_to_store): ditto.
12004         * objects/network/printer.c (render_to_store): ditto.
12006         * objects/network/rj45plug.c (render_to_store): ditto.
12008         * objects/network/scead-plug.c (render_to_store): ditto.
12010         * objects/standard/textobj.c (textobj_load): ditto.
12012         * objects/sybase/client.c (render_to_store): ditto.
12014         * objects/sybase/dataserver.c (render_to_store): ditto.
12016         * objects/sybase/ltm.c (render_to_store): ditto.
12018         * objects/sybase/repserver.c (render_to_store): ditto.
12020         * objects/sybase/rsm.c (render_to_store): ditto.
12022         * objects/sybase/stableq.c (render_to_store): ditto.
12024         * plug-ins/dxf/dxf-import.c (read_entity_text_dxf): ditto.
12026         * objects/UML/uml.h (UML_STEREOTYPE_START):
12027         (UML_STEREOTYPE_END): changes default strings.
12029 2002-01-28  Akira TAGOH  <tagoh@redhat.com>
12031         * objects/UML/stereotype.c (string_to_bracketted): fixed transaction
12032         for UTF-8 support. if GTK+ and Dia don't handle UTF-8, all of characters
12033         which is given to arguments isn't UTF-8. so don't need to convert it.
12034         if GTK+ handle UTF-8, also don't need to convert it.
12035         (strend): remove.
12036         (bracketted_to_string): fixed transaction for UTF-8 support.
12037         also start/end bracket is not necessarily 1 character. so that when use
12038         strend(), it doesn't work correctly.
12039         (string_to_stereotype): use utfchar instead of char.
12040         (remove_stereotype_from_string): ditto.
12041         (stereotype_to_string): ditto.
12043         * objects/UML/stereotype.h: ditto.
12045         * objects/UML/message.c: use utfchar instead of char for structure.
12046         (MESSAGE_CREATE_LABEL, MESSAGE_DESTROY_LABEL): remove.
12048         * objects/UML/small_package.c: use utfchar instead of char for structure.
12050         * objects/UML/realizes.c: ditto.
12052         * objects/UML/object.c: ditto.
12054         * objects/UML/large_package.c: ditto.
12056         * objects/UML/implements.c: ditto.
12058         * objects/UML/generalization.c: ditto.
12060         * objects/UML/dependency.c: ditto.
12062         * objects/UML/constraint.c: ditto.
12064         * objects/UML/component.c: ditto.
12066         * objects/UML/class_dialog.c (attributes_get_current_values):
12067         (attributes_list_new_callback, attributes_fill_in_dialog):
12068         (parameters_set_values, parameters_get_values):
12069         (parameters_get_current_values, parameters_list_new_callback):
12070         (operations_set_values, operations_get_values):
12071         (operations_get_current_values, operations_list_new_callback):
12072         (operations_fill_in_dialog, templates_set_values):
12073         (templates_get_values, templates_get_current_values):
12074         (templates_list_new_callback, templates_fill_in_dialog):
12075         fixed transaction for UTF-8 support.
12077 2002-01-27  Akira TAGOH  <tagoh@redhat.com>
12079         * objects/UML/message.c (message_draw): fixed transaction for UTF-8 support.
12081         * objects/UML/class_dialog.c (class_read_from_dialog):
12082         (class_fill_in_dialog):
12083         (attributes_get_values): ditto.
12085         * objects/UML/actor.c (actor_create): ditto.
12087         * objects/UML/class.c (umlclass_calculate_data): ditto.
12089         * objects/UML/association.c (association_apply_properties):
12090         (fill_in_dialog): ditto.
12092         * objects/UML/uml.c (uml_get_attribute_string):
12093         (uml_get_operation_string):
12094         (uml_get_parameter_string):
12095         (uml_get_formalparameter_string): use utfchar instead of char.
12097         * objects/UML/uml.h: gettextize UML_STEREOTYPE_START and
12098         UML_STEREOTYPE_END.
12100         * objects/UML/class.h: use utfchar instead of char.
12102         * lib/dia_xml.c (data_add_string): ditto.
12104         * lib/text.c (text_insert_char): fixed characters# calculation
12105         when includes multibytes character in strings.
12107 2002-01-26  Steffen Macke  <sdteffen@yahoo.com>
12109         Patch from Richard Rowell <rwrowell@bellsouth.net>:
12111         * app/lineprops_area.c:
12112         * lib/arrows.h:
12113         * lib/arrows.c: 
12114         * lib/widgets.c: added crow foot arrow and cross arrow
12115         
12116         Patch from Frank Gevaerts <frank.gevaerts@fks.be>:
12117         
12118         * plug-ins/svg/render_svg.c: fixed arcs, fill and text alignment
12120 2002-01-26  Cyrille Chepelov  <cyrille@chepelov.org>
12122         * po/update.pl (REMOVED):
12123         * po/update.sh (REMOVED):
12124         * xml-i18n-merge.in.kg (REMOVED):
12125         * xml-i18n-update.in.kg (REMOVED):
12126         * sheets/Makefile.am:
12127         * Makefile.am:
12128         * autogen.sh:
12129         * configure.in: converted from xml-i18n-tools to intltools
12131         This looks like it fixes the build bugs of the snapshot tarballs, 
12132         and it supersedes #69611.       
12134 2002-01-25  Akira TAGOH  <tagoh@redhat.com>
12136         * lib/text.c (text_insert_char): fixed characters# calculation.
12137         it's not string length.
12139         * lib/plug-ins.c (dia_plugin_info_init): when GTK_DOESNT_TALK_UTF8_WE_DO
12140         is defined, needs to convert a description to UTF-8.
12142         * app/render_gdk.c (get_text_width): fixed transaction for
12143         UTF-8 support. also should uses gdk_text_width_wc() instead
12144         of gdk_text_width().
12146         * app/render_gdk.c (draw_string): when GTK_DOESNT_TALK_UTF8_WE_DO
12147         is defined, needs to convert to locale encoding for display.
12148         Also use utfchar instead of char for argument.
12150 2002-01-24  Hans Breuer  <hans@breuer.org>
12152         * app/commands.c(edit_paste_callback and more) : 
12153         call diagram_modified(ddisp->diagram) to fix #68083
12154         (help_menu_callback) : plug a DIR leak
12156         * app/disp_callbacks.c(ddisplay_canvas_events) : handle 
12157         GTK_TALKS_UTF8_WE_DONT
12159         * app/render_gdk.c(get_text_with) : it's a bad idea to use
12160         gdk_string_with() when GTK_TALKS_UTF8_WE_DONT instead of
12161         gdk_text_width(). The length value is still questionable ...
12163         * lib/charconv.c : use functions already available in early
12164         GLIB-1.3 days whiches API hasn't changed since, to avoid
12165         version problems with the win32 build
12167         * lib/font.c : finally fix #58045 and #68208
12169         * lib/dia_xml.c (xmlDiaSaveFile) : gzdopen in binary mode
12171 2002-01-24  Akira TAGOH  <tagoh@redhat.com>
12173         * app/disp_callbacks.c (ddisplay_canvas_events): when event returned
12174         no strings, fixed transaction.
12176         * lib/charconv.h: fixed typo.
12178         * app/menus.c: fixed typo.
12180         * lib/charconv.c (charconv_utf8_strchr): remove. use uni_strchr instead.
12182         * objects/UML/object.c: attrib's type uses utfchar instead of char.
12184         * app/disp_callbacks.c (ddisplay_canvas_events): forget g_free()
12186         * lib/text.c (text_create_change): use unichar instead of char.
12188         * lib/text.c (data_add_text, data_text, apply_textstr_properties):
12189         use utfchar instead of char.
12191         * lib/text.c (text_insert_char, text_key_event): fixed transaction for
12192         UTF-8 support.
12194         * lib/charconv.c (charconv_utf8_get_char): add new function.
12196 2002-01-23  Akira TAGOH  <tagoh@redhat.com>
12198         * lib/text.c (text_delete_forward, text_delete_backward,
12199         text_split_line): fixed transaction for UTF-8 support.
12201         * lib/text.c (text_copy): when UNICODE_WORK_IN_PROGRESS is defined,
12202         strlen[] has string length for UTF-8, so has to use alloclen[].
12204         * dia.pot: remove.
12206         * .cvsignore: add dia.pot.
12208 2002-01-24  Stanislav Visnovsky  <visnovsky@nenya.ms.mff.cuni.cz>
12210         * configure.in: Added "sk" to ALL_LINGUAS.
12212 2002-01-22  Akira TAGOH  <tagoh@redhat.com>
12214         * lib/text.c (text_set_string, new_text, text_copy,
12215         text_get_string_copy, text_join_lines): use utfchar instead of gchar
12216         for strings.
12218         * lib/text.c (set_string): use charconv_utf8_strchr() instead of
12219         strchr().
12221         * lib/charconv.c (charconv_utf8_strchr): add new function.
12223         * lib/charconv.c (charconv_keyval_to_unicode): ditto.
12225         * lib/charconv.c (charconv_utf8_from_gtk_event_key): ditto.
12227         * app/disp_callbacks.c (ddisplay_canvas_events): needs to convert
12228         strings to the appropriate encoding.
12230 2002-01-22  Lars Clausen  <lrclause@cs.uiuc.edu>
12232         * app/object_ops.c (object_list_align_[hv]): Leak fix.
12234         * lib/Makefile.am (INCLUDES): Added debug flags.
12236         * app/object_ops.c: Fixed ordering problem of align equi-distant &
12237         adjacent. 
12239 2002-01-21  Akira TAGOH  <tagoh@redhat.com>
12241         * lib/font.c (font_string_width): use gdk_text_width_wc() instead of
12242         gdk_string_width().
12244         * objects/GRAFCET/boolequation.c: fixed invalid comment.
12246         * objects/UML/stereotype.c (string_to_bracketted): fixed build problem
12247         when defined UNICODE_WORK_IN_PROGRESS.
12249         * lib/dia_xml.c (data_add_string): fixed typo.
12251 2002-01-20  Akira TAGOH  <tagoh@redhat.com>
12253         * configure.in: fixed test gtk_advancement.
12255 2002-01-019  Steffen Macke  <sdteffen@yahoo.com>
12257         * plug-ins/svg/render_svg.c: fix for #69053, alignment of text
12258         exported to SVG
12260         Patch from M.C. Nelson <mcn@mani.kobayashimaru.org>: 
12262         * app/recent_files.[ch]: reworked to support GNOME, accelerators,
12263         tool tips, preferences, and arbitrarily long ~/.dia/history
12265         * app/menus.c: made 'Plugins' consistantly spelled and accelerated;
12266         removed 'Open Recent'; added new separators for recent documents on
12267         File menu.
12269         * app/interface.[ch] (interface_get_toolbox_shell): new function
12271         * app/diagram.c: added new parameter to recent_file_history_add() call
12273         * app/preferences.[ch]: added new 'Recent documents list size'
12274         preferences item
12275         
12276 2002-01-18  Akira TAGOH  <tagoh@redhat.com>
12278         * lib/font.c (font_get_gdkfont_helper): use gdk_fontset_load ().
12279         if it failed, should be used gdk_font_load ().
12281         * lib/font.c (font_data): added the font entries for CJK.
12283 2002-01-17  Steffen Macke  <sdteffen@yahoo.com>
12285         Patch from M.C. Nelson <mcn@mani.kobayashimaru.org>:
12287         * app/menus.c: replaced GDK_F1 with "F1" to fix segfault on startup
12288         
12289 2002-01-04  Cyrille Chepelov  <cyrille@chepelov.org>
12291         Patch from Martin Cracauer <cracauer@cons.org>:
12292         
12293         * app/menus.c: add missing #include <gdk/gdkkeysyms.h> (useful in the
12294         non-GNOME case ?)
12296 2002-01-01  Hans Breuer  <hans@breuer.org>
12298         * app/command.c : optional use GDI printing on windoze
12300         * app/preferences.[hc] : add option 'prefer_psprint' to 
12301         select the print engine to use (could be used for Dia/Gnome
12302         as well)
12304         * app/paginate_gdiprint.(h|cpp) : new files, which interlink the
12305         wmf plug-in with the common win32 print api. Now printing
12306         should work almost as expected from a windows program :-)
12308         * app/diagram.c app/menus.[hc] : rename _UpdatableMenuItems.delete
12309         to .edit_delete to avoid clashes with C++
12311         * app/makefile.msc : updated for GDI printing
12313         * plug-ins/wmf/wmf.cpp : some small modifications to support
12314         GDI printing. Also swap R and B channel in draw_image()
12316         * app/makefile.am : added windows only files to EXTRA_DIST
12318         * objects/uml/class.c(umlclass_set_props) : force recalculation
12319         when applying properties
12321         * lib/charconv.c lib/dia_xml.c : temporary back-ported to
12322         glib-1.3.2 (for win32) IMHO causes recent cvs introduces too
12323         many incompatible changes (and would force a gtk update)
12325         * objects/makefile.msc : don't build C-Objects which are
12326         already available as 'pure shape'
12328         * plug-ins/makefile.msc : remove diaimport from build. It was
12329         only available via mailing-list and is broken since the
12330         StdProp overhaul.
12333         Patch from Jose A Ortega Ruiz  <jaortega@acm.org>
12335         * app/preferences.[hc] : tweaked preferences.c to make 
12336         PREF_STRING work. Use it for 'diagram_tree_hidden'. Also
12337         added some more DiagramTree prefererences and their own
12338         notebook page.
12340         * app/diagram_tree.[hc] : allow to sort by object type or name
12341         and hide by type ...
12342         * app/diagram_tree_menu.[hc] : ... add respective menu entries ...
12343         * app/diagram_tree_menu_callbacks.[hc] : ... and callbacks.
12345         * app/diagram_tree_window.c : handle hidden types and window
12346         size restoring.
12348 2001-12-20  Hans Breuer  <hans@breuer.org>
12350         * plug-ins/python/Makefile.am : patch from Peter Moulder 
12351         <pmoulder@csse.monash.edu.au> to make the python plug-in
12352         compile on *nix too.
12354 2001-12-03  Cyrille Chepelov  <chepelov@calixo.net>
12356         Patch from Alan <horkana@tcd.ie>:
12358         * app/menus.c: bind the F1 shortcut to the Help/_Manual function.
12360 2001-11-20  Hans Breuer  <hans@breuer.org>
12362         * app/makefile.msc : add new diagram_tree_menu(_callbacks).obj
12364 2001-11-18  Jose A Ortega Ruiz  <jaortega@acm.org>
12366         * app/diagram_tree.[hc] : Added new functions and types for
12367         sorting diagram and objects, and attaching the popup menus.
12369         * app/preferences.h: Added more diagram tree preferences, using a
12370         DiagramTreeConfig struct in DiaPreferences. The new prefs are the
12371         height and width of the diagram tree window and the default sort
12372         orders for diagrams and objects.
12374         * app/preferences.c (prefs_data): Added new entries for the new
12375         diagram tree preferences.
12377         * app/preferences.c (prefs_tabs): New tab for diagram tree
12378         preferences.
12380         * app/diagram_tree_window.[hc] (create_diagram_tree_window): 
12381         * app/diagram_tree_window.c (diagram_tree_window_new): 
12382         * app/interface.c (create_tree_window): The diagram tree window is
12383         initialised using the DiagramTreeConfig part of prefs.
12386 2001-11-14  Jose A Ortega Ruiz  <jaortega@acm.org>
12388         * app/diagram_tree_menu.[hc]: New files. Functions to create the
12389         diagram tree popup menus.
12391         * app/diagram_tree_menu_callbacks.[hc]: New files. Callbacks for
12392         the diagram tree popup menus.
12394         * app/Makefile.am (dia_core_files): diagram_tree_menu* files
12395         added.
12397 2001-11-13  Jose A Ortega Ruiz  <jaortega@acm.org>
12399         * app/diagram_tree.c (double_click_callback, diagram_tree_new):
12400         double-clicking a diagram tree node raises the diagram window
12401         to the foreground (and, if a object node was clicked, selects the
12402         object in the diagram).
12404         * app/diagram_tree.c (select_tree_widget): selecting an object
12405         node with single click simply updates it (no raise).
12407 2001-11-08  Jose A Ortega Ruiz  <jaortega@acm.org>
12408         These changes make the diagram tree lazy: it is not created unless
12409         the diagram tree window is requested.
12410         
12411         * app/diagram_tree_window.[hc] (create_diagram_tree_window): new
12412         function for creating the tree window.
12414         * app/interface.c (create_tree_window): call
12415         create_diagram_tree_window() instead of diagram_window().
12417         * app/diagram_tree.c (diagram_tree_add, diagram_tree_remove) 
12418         (diagram_tree_update, diagram_tree_update_name) 
12419         (diagram_tree_add_object, diagram_tree_add_objects) 
12420         (diagram_tree_remove_object, diagram_tree_remove_objects) 
12421         (diagram_tree_update_object): accept a NULL tree as a nominal
12422         argument (and do nothing in this case!), so that the diagram tree
12423         is not initialised if not used.
12425         * app/diagram_tree_window.c (diagram_tree): do not create the
12426         diagram tree until diagram_window() or diagtree_show_callback()
12427         are invoked.
12429 2001-10-31  Jose A Ortega Ruiz  <jaortega@acm.org>
12430         [slightly modified and applied from Hans Breuer <hans@breuer.org>]
12432         * app/diagram_tree_window.[hc] : (new files) implementation of 
12433         the diagram tree window, a container for a diagram tree. [Removed
12434         the horizontal scroll bar glitch by disableing it]
12436         * app/diagram_tree.[hc] : (new files) implementation of the 
12437         diagram tree widget. [Don't rely on the layers GPtrArray to be
12438         NULL terminated, but use its ->len field] 
12440         * app/Makefile.am (dia_core_files): added new files
12441         diagram_tree.[hc] and diagram_tree_window.[hc]
12443         * app/interface.[hc] : (create_tree_window): this function 
12444         creates the new diagram tree window widget
12446         * app/undo.c (delete_objects_apply) (delete_objects_revert) 
12447         (insert_objects_apply) (insert_objects_revert) (group_objects_apply) 
12448         (ungroup_objects_apply) (ungroup_objects_revert): 
12449         every time that an undoable command modifies a diagram 
12450         adding/removing/(un)grouping objects, a diagram_tree_something() is 
12451         invoked to keep the diagram tree window in sync
12453         * app/properties.c (properties_apply): call to
12454         diagram_object_modified(), which updates the diagram tree window
12455         when the properties of an object are modified
12457         * app/preferences.[hc] : new "show_diagram_tree" configuration option 
12458         (whether the diagram tree window should be shown on dia startup)
12460         * app/menus.c : added '<Toolbox>/File/Diagram Tree' entry
12462         * app/diagram.h (diagram_object_modified): callback notifying of a
12463         diagram object modification
12465         * app/diagram.c (diagram_load_into): added call to
12466         diagram_tree_add() to add newly loaded diagrams to the diagram
12467         tree window
12468         (diagram_destroy): call to diagram_tree_remove() to remove a
12469         destroyed diagram from the diagram tree window
12470         (diagram_add_object): call to diagram_tree_add_object() to add an
12471         object to the diagram tree window
12472         (diagram_add_object_list): as above, but with an object list
12473         (diagram_selected_break_external): deletion of objects from the
12474         diagram is detected here, and diagram_tree_remove_object() is
12475         invoked to remove the object from the diagram tree window (it
12476         would be nice to have a diagram_remove_object() in the Diagram
12477         interface)
12478         (diagram_set_filename): update the diagram tree window when a
12479         diagram's filename changes
12481         * app/commands.c (file_new_callback): added call to
12482         diagram_tree_add() to add newly created diagrams to the diagram
12483         tree window
12485         * app/app_procs.c (app_init): added call to create_tree_window()
12487         * app/makefile.msc : updated
12489 2001-10-28  Hans Breuer  <hans@breuer.org>
12491         * app/preferences.h (DiaPreferences): 
12492         * app/preferences.c (prefs_data): new "show_diagram_tree"
12493         configuration option (whether the diagram tree window should be
12494         shown on dia startup)
12496         * app/menus.c: added the new "<Toolbox>/View/Diagram tree" menu
12497         entry (both for GNOME and gtk)
12499         * app/diagram.h (diagram_object_modified): callback notifying of a
12500         diagram object modification
12502         * app/diagram.c (diagram_load_into): added call to
12503         diagram_tree_add() to add newly loaded diagrams to the diagram
12504         tree window
12505         (diagram_destroy): call to diagram_tree_remove() to remove a
12506         destroyed diagram from the diagram tree window
12507         (diagram_add_object): call to diagram_tree_add_object() to add an
12508         object to the diagram tree window
12509         (diagram_add_object_list): as above, but with an object list
12510         (diagram_selected_break_external): deletion of objects from the
12511         diagram is detected here, and diagram_tree_remove_object() is
12512         invoked to remove the object from the diagram tree window (it
12513         would be nice to have a diagram_remove_object() in the Diagram
12514         interface)
12515         (diagram_set_filename): update the diagram tree window when a
12516         diagram's filename changes
12518         * app/commands.c (file_new_callback): added call to
12519         diagram_tree_add() to add newly created diagrams to the diagram
12520         tree window
12522         * app/app_procs.c (app_init): added call to create_tree_window()
12524 2001-10-28  Hans Breuer  <hans@breuer.org>
12526         * plug-ins/python/pydia-property.c : apparently I missed
12527         to commit this last time. Now it has some more SetAttr
12528         support (apply from property)
12530         * plug-ins/python/pydia-properties.h : added PyDiaProperty_Check
12532         * plug-ins/python/pydia-text.[ch] : new files
12534 2001-10-14  Hans Breuer  <hans@breuer.org>
12536         * lib/charconv.c : g_locale_to_utf8() does not handle NULL
12537         strings. Use g_strdup() for these.
12539         libxml2 does not produce 'any extra indentation when saving a tree'
12540         [libxml2-2.4.2/doc/upgrade.html] anymore, which was the default with
12541         libxml(1). To get human readable XML some extra tweaking is required.
12542         It is enabled by setting 'pretty_formated_xml' to 'true' in 'diarc'.
12543         * lib/dia_xml.[hc] : provide and use 'DIAVAR pretty_formated_xml'
12544         * app/preferences.[ch] : initialize 'pretty_formated_xml'
12546         * lib/libdia.def : updated externals
12548         * lib/properties.h : add prototype for prop_list_from_single ()
12550         * plug-ins/makefile.msc : build metapost plug-in
12552         * plug-ins/metapost/render_metapost.c : msvc does not like
12553         switch labels without operation 'default: }'. Added a noop.
12555         * plug-ins/python/pydia-text.[hc] : (new files) wrap DiaText
12556         * plug-ins/python/diamodule.c : added PyDiaText 
12557         * plug-ins/python/makefile.msc : dito. Also added LIBXML_CFLAGS.
12558         Although the python plug-in does not use libxml at all, the
12559         headers are required to use the lib/prop*.h headers
12561         * plug-ins/python/pydia-diagramdata.c : added wrappers for
12562         update_extents and get_sorted_selected (should I duplicate
12563         more functions from PyDiaDiagram or should they be moved?)
12565         * plug-ins/python/pydia-properties.c : allow to set (some) properties
12566         through the dictionary api
12567         * plug-ins/python/pydia-property.h : declare PyDiaProperty_ApplyToObject
12568         * plug-ins/python/pydia-property.c : implement it (currently only
12569         string properties can be set)
12571         Reimplement PyDiaProperty_GetAttr by means of the new StdProp api.
12572         Quoting myself: 'Still not convinced that this is better than an 
12573          integral property->type and some casting ...
12574          It is trading a straightforward 40 lines switch statement to
12575          this nice 'type safe' function mapping (about 125 lines)'
12576         (But now it works again, better than changing the News file :)
12577         
12578 2001-10-14  Cyrille Chepelov  <chepelov@calixo.net>
12580         patch from <robert.young@dsto.defence.gov.au>: 
12581         * objects/UML/component.c: remember to set font in UML component
12582         object (fixes #62132)   
12584 2001-10-02  Lars Clausen  <lrclause@cs.uiuc.edu>
12586         * plug-ins/metapost/metapost.c: 
12587         * plug-ins/metapost/Makefile.am:
12588         * plug-ins/metapost/render_metapost.c:
12589         * plug-ins/metapost/render_metapost.h:
12590         Metapost renderer from Chris Sperandio
12592 2001-09-14  Hans Breuer  <hans@breuer.org>
12594         * app/render_gdk.c : reflect the fact, that GTK already talks
12595         UTF8 on win32, fixes #59982, #56100, (#55992 ?) ...
12597         * lib/font.c : 
12598         * app/render_libart.c : trying to fix #58045 but it appears
12599         to be an Gdk/win32, too. 
12601         * lib/charconv.c : handle utf8 conversion with the help of
12602         glib-1.3 even in the !HAVE_UNICODE case.
12604         * lib/dia_xml.c : reduce complaing about missing encoding, by
12605         detecting if the default (utf8) would break the file.
12607 2001-09-13  Cyrille Chepelov  <chepelov@calixo.net>
12609         * lib/charconv.c: (get_local_charset): at least please try to not 
12610         silently change the logic, while avoiding crashes. 
12612         * lib/font.c: (suck_font): put a #error, we have a nasty something
12613         to fix there before we switch to Gtk 2.0.
12614         
12615 2001-09-09  Hans Breuer  <hans@breuer.org>
12617         * **/makefile.mingw : Approach to compile Dia with mingw.
12618         Compiling mostly works but running does not (yet) ... 
12620         * lib/geometry.h : 
12621         - use G_OS_WIN32 instead of _MSC_VER to drag in isinf, etc. definitions. 
12622           Apparently mingw needs it too.
12623         - enable 'normalization' of a null verctor. Otherwise the beziergon
12624           bounding box calculation would be broken at least with msvc. What's
12625           the mathematical correct result of 0.0/0.0 ?
12627         * lib/dia_xml.c : isinf() for mingw too.
12629         * lib/dia_dirs.c : use MAX_PATH instead of _MAX_PATH (works for mingw 
12630         and msvc)
12632         * lib/charconv.c : still crashes if strcmp(NULL, "UTF-8"). 
12633         Please don't do it.
12635         * lib/font.c : Trying to reflect that GTK_TALKS_UTF8_WE_DONT
12637         * lib/libdia.def : updated externals. Apparently mingw needs
12638         them to produce the right mangling.
12640         * plug-ins/shape/shape-exports.c : get prototypes for xmlStrdup
12641         and xmlDiaSaveFile
12643 2001-09-08  Wang Jian  <lark@linux.net.cn>
12645         * configure.in(ALL_LINGUAS): Renamed zh_CN.GB2312 to zh_CN
12647 2001-09-07  Cyrille Chepelov  <chepelov@calixo.net>
12649         * lib/dia_xml_libxml.h:
12650         * lib/dia_xml.c: (data_add_string), (xmlDiaSaveFile): Duplicated
12651         libxml1's code, to rework the output file before it gets committed
12652         to disk. This is rubbish, and will be removed when libxml2
12653         switches from discouraged to mandatory. 
12654         All in all, this fixes #60152. 
12655         
12656         * lib/charconv.h: 
12657         * lib/charconv.c: (charconv_unichar_to_utf8):
12658         made the type of the input parameter explicitly an unsigned long.
12660         * configure.in: Added a check for libz (we must now include it
12661         explicitly, for xmlDiaSaveFile).
12662         
12663         * app/load_save.c: (diagram_data_save):
12664         * lib/plug-ins.c: (ensure_pluginrc), (info_fill_from_pluginrc),
12665         (dia_pluginrc_write):
12666         * plug-ins/shape/shape-export.c: (new_shape_renderer),
12667         (end_render), (draw_string):
12668         * plug-ins/svg/render_svg.c: (new_svg_renderer), (end_render),
12669         (draw_string):
12671         Made sure we always write UTF-8 XML files, and through
12672         xmlDiaSaveFile().
12674         * NEWS: documented that fact.
12675         
12676 2001-09-07  James Henstridge  <james@daa.com.au>
12678         * configure.in (found_libxml): refactor the check for libxml a
12679         little so that it handles finding both libxml1 and 2 better.
12681 2001-09-03  Cyrille Chepelov  <chepelov@calixo.net>
12683         * app/app_procs.c: removed a spurious } which caused a compilation
12684         error in the (!HAVE_GNOME && HAVE_POPT_H) case
12686         * lib/charconv.c: (get_local_charset): some versions of iconv(1)
12687         don't know what ANSI X3.4-1968 is. I didn't know until this day,
12688         but it's just plain old ASCII. Added a check to shield the poor
12689         XML library.
12691         Patches from <robert.young@dsto.defence.gov.au>:
12693         * lib/text.c: (text_calc_boundingbox) Bounding box now calculates the
12694         width and height of text before calculating bounds. Fixes #59928
12696         * app/preferences.c: Moved grid related items into Grid Tab.
12697         
12698 2001-09-02  Cyrille Chepelov  <chepelov@calixo.net>
12700         * app/interface.c: (create_zoom_widget): connected one more signal
12701         to the Zoom selector combo's list. Fixes #59879.
12703         * app/app_procs.[ch]: (app_init) (do_convert)
12704         (build_output_file_name): brought back into the main executable
12705         the rare useful bits of the ill-fated diaconv. This means we have
12706         one new feature : --export-to-format (-t), which should make
12707         writing conversion scripts easier, and a crude implementation of
12708         -t and -e for the poptless argument parsing, which means the Win32
12709         port should be able to take advantage of it (that should make
12710         resolving #58197 possible).
12712         * app/diaconv.c: kept the poor duck compiling (but that's about
12713         it).
12715         * plug-ins/svg/render_svg.c: updated the SVG DTD header (I hope
12716         I've got it right).
12718         * NEWS: updated about the new feature above, and documented the 
12719         "missing encoding specification" complaint. 
12720         
12721 2001-09-01  Abel Cheung  <maddog@linux.org.hk>
12723         * configure.in: Rename zh_TW.Big5 -> zh_TW in ALL_LINGUAS.
12725 2001-09-01  Cyrille Chepelov  <chepelov@calixo.net>
12727         * objects/standard/bezier.c: used g_new0 instead of g_new, to take
12728         care of #59837.
12730 2001-09-01  James Henstridge  <james@daa.com.au>
12732         * */Makefile.am: various changes to include missing files, and fix
12733         sheets dir to handle building with builddir != srcdir.
12735         * autogen.sh: unconditionally pass the --enable-maintainer-mode
12736         and --enable-db2html flags so that builds from CVS work correctly.
12738         * configure.in: increment version number.  Also add an
12739         --enable-db2html flag.  Without the flag, db2html won't be run (if
12740         the flag is passed and db2html is not present, do nothing).
12742 2001-08-30  Cyrille Chepelov  <chepelov@calixo.net>
12744         * lib/poly_conn.c: (polyconn_copy): it's a wonder this routine
12745         even compiled. It's really too bad there is no lint tool easily
12746         available (or a more cautious, pedandic, paranoid and verbose
12747         compiler). Anyway, this fixes #59662. (this didn't affect 0.88.x)
12749 2001-08-27  Cyrille Chepelov  <chepelov@calixo.net>
12751         * app/load_save.c:
12752         * dia/lib/plug-ins.c: use g_strdup() instead of strdup(). Patch
12753         from <robert.young@dsto.defence.gov.au>. Fixes #59591.
12755         * app/menu.c: added ellipsis(...) to diagram properties menu item.
12756         * app/dia-props.c: diagram properties dialog contents did not
12757         represent current diagram settings.
12758         * app/dia-props.[ch]:
12759         * app/display.c: diagram properties contents now follows currently
12760         selected diagram.
12761         Patch also from <robert.young@dsto.defence.gov.au>, fixes #59409.
12763         * AUTHORS: added Robert Young.
12764         
12765 2001-08-27  Cyrille Chepelov  <chepelov@calixo.net>
12767         * app/modify_tool.c: (modify_button_release): Patch from
12768         <robert.young@dsto.defence.gov.au>. Fixes the remaining bit from
12769         #59090: if selection dragging was released outside of the window, 
12770         artifacts of the selection box remained.
12772 2001-08-25  Cyrille Chepelov  <chepelov@calixo.net>
12774         * Objects/custom/shape_info.c: added missing #include <xmlmemory.h>
12776 2001-08-19  Cyrille Chepelov  <chepelov@calixo.net>
12778         * configure.in:
12779         * sheets/Makefile.am: prepared the terrain for the Version of
12780         xml-i18n-tools Which Comes After 0.9 (and which will feature at
12781         last a sane behaviour with XML files). Some reasonible delay
12782         before enforcing that version *will* be given.
12784         * xml-i18n-merge.in.kg: included the current CVS xml-i18n-merge.in
12785         
12786         * lib/plug-ins.c: <xmlmemory.h> defines xmlFree(), otherwise it
12787         becomes a nonexistent symbol.
12788         
12789 2001-08-18  Hans Breuer  <hans@breuer.org>
12791         * app/app_procs.c : made it compile without ENABLE_NLS
12793         * app/diap_callbacks.c : strcmp isn't guaranteed to work
12794         with NULL pointers
12796         * app/load_save.c :
12797         * lib/plug-ins.c : 
12798         * objects/custom/shape_info.c : avoid mixing allocators and dealocators. 
12799         It has to be :
12800                 xmlGetProp, ... -> xmlFree
12801                 malloc, strdup -> free
12802                 g_new, g_malloc, g_strdup - > g_free
12804         * app/win32print.c : some more error checking, still not
12805         working on Win9x
12807         * lib/charconv.c : get_local_charset is used even with !HAVE_UNICODE
12809         * lib/dia_xml.c : msvc still has no unistd.h
12811         * lib/dia_xml.c :
12812         * lib/sheets.c : temporary resolved libxml include brokeness
12814         * plug-ins/python/pydia-*.c : reflect Font and StdProp api
12815         changes. Compiles again, but doesn't do anything useful anymore.
12816         (see THE_PROP_TYPE_IS_INTEGRAL)
12818         * **/makefile.msc : updated to use LIBXML2
12820         * lib/libdia.def : reflect api changes
12822 2001-08-17  Cyrille Chepelov  <chepelov@calixo.net>
12824         * config.h.win32: added defines telling that gtk speaks UTF8.
12825         Hans, I believe this reflects what GTK on Win32 does.
12827         * app/app_procs.c: if GTK talks UTF8, we'll feed it UTF8 localised
12828         strings.        
12829         * lib/prop_inttypes.c: 
12830         * lib/prop_text.c:
12831         * lib/prop_widgets.c: fixed typos in the GTK_TALKS_UTF8_WE_DONT
12832         code path.
12833         
12834         * lib/plug-ins.c: (dia_register_plugins_in_dir): If there is a
12835         trailing // (or whatever (G_DIR_SEPARATOR * 2) is), a recursive
12836         search for plug-ins is done.
12837         * app/Makefile.am: made app/run_dia.sh use the // capability. No
12838         need to update this anymore if we get a new plug-in library (or
12839         remove one).
12841         * lib/dia_xml.c: #include <unistd.h> was missing.
12842         
12843         * lib/properties.h: 
12844         * lib/proplist.c: (pdtpp_defaults): Added a new flag,
12845         PROP_FLAG_NO_DEFAULTS. Will be used in the "automatic defaults"
12846         support.        
12848 2001-08-16  Cyrille Chepelov  <chepelov@calixo.net>
12850         * sheets/civil.sheet: removed duplicate "Danish" entries.
12852         * autogen.sh:
12853         * configure.in: 
12854         * .cvsignore:
12855         * sheets/Makefile.am: 
12856         * po/POTFILES.in:
12857         * Makefile.am: applied the xml-i18n-tools README's instructions.
12859         * po/(da de fr hu nl nn no sl).po: merged the translations from
12860         the sheet files into the .po files. I hope I haven't mixed
12861         languages...
12862         * sheets/*.sheet (REMOVED):
12863         * sheets/*.sheet.in (NEW): moved the sheet files sans
12864         translations into .sheet.in files. 
12865         
12866         * sheets/xml-i18n-unicodify: (NEW) included from xml-i18n-tools,
12867         because we don't yet want to force all translators to work using
12868         UTF-8 editors. We'll want to do that sometime (sooner rather than
12869         later). Okay, I sing a slightly different tune in po/ChangeLog...
12871         * dia.desktop (REMOVED):
12872         * dia.desktop.in (NEW): used also the x18t infrastructure for
12873         this too.
12875         * xml-i18n-update.in.kg (NEW): This one will stay in CVS until an
12876         "official" version of x18t with support for .sheet files is available.
12877         * xml-i18n-merge.in.kg (NEW): This one will stay in CVS until an
12878         "official" version of x18t which doesn't corrupt UTF-8 data in XML
12879         is available.
12880         
12881         ** yes, we are now using xml-i18n-tools to manage the sheet
12882         translations. For the Win32 build, Nemo stores snapshots of
12883         translated strings next to the CVS snapshots. **
12885         * sheets/checktrans.py: suddenly, some sheets have lots of
12886         translations (objects which existed before sheets, mostly).
12887         Adapted the formatting.
12889         * po/README (REMOVED): this is obsolete ! It was ignored, anyway.
12891         * app/display.[ch]: (ddisplay_autoscroll), (ddisplay_scroll):
12892         * app/modify_tool.[ch]: (modify_motion): A (modified) patch from
12893         <robert.young@dsto.defence.gov.au>, to fix #59090.
12895         * app/display.c: (ddisplay_scroll): While at it, added some
12896         margin, so that autoscrolling can happen within a margin outside
12897         the diagram's extents.
12899         * app/tool.[ch]: 
12900         * app/interface.c:
12901         * app/disp_callbacks.c: Robert "forced" me to go when I usually
12902         don't, namely the app/ directory. So while I was there, I
12903         scratched a long-time itch. If no object has focus, pressing the
12904         space bar will select back the tool which was selected before the 
12905         current one (I find this especially useful with "reset after create" !)
12906         
12907         * lib/proplist.c: (prop_list_from_single): Renamed
12908         prop_list_singleton() to avoid confusion with the Singleton
12909         pattern (which it definitely is not).
12910         
12911         * lib/propobject.c: (object_prop_by_name_type),
12912         (object_prop_by_name): The "flags" parameter was not necessary.
12913         These don't return synthetic properties, but properties built from
12914         a real property description list; therefore, we don't call
12915         make_new_prop() but use the existing property descriptor, which
12916         has perfectly valid (and meaningful) flags.
12918         * lib/proplist.c: (pdtpp_synthetic), (pdtpp_from_object): These
12919         new predicates better reflect the reason why properties exist when
12920         they're created by make_new_prop() or object_prop_by_name().    
12922         * lib/propobject.c: (object_prop_by_name_type), (object_prop_by_name):
12923         * lib/prop_basic.c: (make_new_prop): used the new reasons instead
12924         of pdtpp_true().
12926         * lib/properties.h: reflects all the above changes.
12928         * objects/SADT/arrow.c:
12929         * objects/SADT/annotation.c:
12930         * sheets/SADT.sheet: minor renamings to better match FIPS 183's
12931         IDEF0 terminology.
12932         
12933 2001-08-15  Cyrille Chepelov  <chepelov@calixo.net>
12935         * lib/properties.h:
12936         * lib/proplist.c: (prop_list_singleton):
12937         * lib/propobject.c: (object_prop_by_name_type), (object_prop_by_name):
12938         Added these, to simplify interactions of plug-ins with the StdProp
12939         core.
12941         * lib/Makefile.am:
12942         * lib/dia_xml.h:
12943         * lib/dia_xml_libxml.h (NEW): 
12944         * app/load_save.c:
12945         * lib/dia_xml.c:
12946         * lib/plug-ins.c:
12947         * lib/sheet.c:
12948         * objects/custom/shape_info.c: A few prototypes were causing
12949         #include hell, because we generally attempt to not pull the whole
12950         libxml header set when we include dia_xml.h. Moved those
12951         prototypes away for the rare cases they're necessary.
12952         
12953 2001-08-15  Hans Breuer  <hans@breuer.org>
12955         * lib/font.c : made LARS_TRACE_MESSAGES Standard C conform
12957         * lib/libdia.def : 
12958         * lib/makefile.msc : updated
12960         * lib/prop_basic.c : __FUNCTION__ is a gcc extension. Please
12961         use G_GNUC_FUNCTION instead.
12963         * lib/prop_inttypes.c : include <stdlib.h> for strtol()
12965         * objects/sadt/annotation.c : disable TEMPORARY_EVENT_TEST for
12966         msvc instead of cleaning missing includes
12968         * plug-ins/wmf/wmf.cpp :
12969         * plug-ins/wmf/wmf_gdi.h : fixed for Font to DiaFont renaming
12971 2001-08-15  Cyrille Chepelov <chepelov@calixo.net>
12973         * app/app_procs.c:
12974         * app/load_save.c:
12975         * lib/dia_xml.c:
12976         * lib/plug-ins.c:
12977         * lib/sheet.c:
12978         * objects/custom/shape_info.c:
12979         * plug-ins/shape/shape-export.c:
12980         * plug-ins/svg/render_svg.c: used the libxml1/libxml2
12981         compatibility macros as taught by http://xmlsoft.org/upgrade.html;
12982         removed xmlKeepBlanksDefault(0) in favour for proper
12983         xmlIsBlankNode() testing. Lots of other fixups to use the
12984         "libxml1.5" (libxml2 parser embedded in recent libxml1), and to
12985         make libxml1 output correct files.
12987         * configure.in: use libxml2 (>= 2.3.9) if it's found, or
12988         libxml1 (>= 1.8.14). Exactly one of these must be installed (devel
12989         packages). If both devel packages are found, the build will stop 
12990         (Fredrik: please add a Build-Conflicts: on libxml2-dev for the moment) 
12992         * lib/bezier_conn.c: (bezierconn_init): Lars, you forgot to
12993         allocate the first handle :-)
12994         
12995         * lib/object.c: (object_init): <gratuitous>g_new() used instead of
12996         a cast and a sizeof.</gratuitous>
12998         * objects/custom/custom_object.c: (custom_copy): don't call
12999         text_get_attrbutes if the shape has no text...
13000         (custom_update_data): The info->resize_with_text code was a bit
13001         directive; basically, the shape's bounding box was forced to be 
13002         proportional to the text's bounding box.... This fixes #57187.
13003         
13004         * objects/custom/shape_info.c: (load_shape_info): Set an obvious
13005         default for info->aspect_ratio; unobfuscated a line about
13006         info->resize_with_text;
13007         
13008 2001-08-15  Cyrille Chepelov <chepelov@calixo.net>
13010         * lib/properties.h: added comments next to the PROP_TYPEs to tell
13011         which C Property subclass to use.
13012         
13013         * plug-ins/dxf/dxf-import.c: (read_entity_line_dxf): Removed the
13014         cast-ridden form of setting properties in a list, in favour for
13015         the "local pointers" form. I'll take any better offer...
13017 2001-08-14  Cyrille Chepelov <chepelov@calixo.net>
13018         
13019         * lib/font.c: fprintf(...) --> fprintf(format...)
13021         * configure.in: added a disabled versioned test for glib.
13022         * lib/prop_geomtypes.c: (bezpointprop_load), (bezpointprop_save),
13023         (bezpointarrayprop_load), (bezpointarrayprop_save): replaced
13024         g_critical() with a simple g_error(). Proper fix is to implement
13025         that stuff. 
13027         * lib/properties.h: PROP_STD_TEXT is a PROP_TYPE_TEXT, not a
13028         PROP_TYPE_STRING.
13029         
13030         * lib/properties.h:     
13031         * lib/propdesc.c: (prop_desc_list_calculate_quarks):
13032         * lib/proplist.c: (find_prop_by_name_and_type):
13033         * lib/prop_basic.c: (make_new_prop), (initialize_property):
13034         * lib/propoffsets.c: (do_set_props_from_offsets),
13035         (do_get_props_from_offsets), (prop_offset_list_calculate_quarks):
13036         Added a type_quark member to PropDescription, Property and
13037         PropOffset. Used it to implement a safety in
13038         do_[sg]et_props_from_offsets().
13039                 
13040         * objects/flowchart/diamond.c: the diamond's text was not saved,
13041         and thus not even copied (c&p).
13042         * objects/standard/textobj.c: ditto.
13044         Most of the above changes thanks to Robert Young's testing. Thanks !
13045         
13046 2001-08-14  Kjartan Maraas  <kmaraas@gnome.org>
13048         * sheets/*.sheet: Added some Norwegian translations (both nynorsk
13049         and bokmÃ¥l).
13050         
13051 2001-08-13  Cyrille Chepelov  <chepelov@calixo.net>
13053         * lib/proplist.c (prop_list_from_descs): added a call to
13054         prop_desc_list_calculate_quarks(). (find_prop_by_name_and_type):
13055         too embarrassing to tell.
13056         
13057         * lib/propdesc.c (prop_desc_list_calculate_quarks): converted the
13058         while loop to a for loop, for symmetry with
13059         prop_offset_list_calculate_quarks().
13061         * lib/geometry.h: new inline function, rectangle_equals.
13063         * lib/diagramdata.[ch]: refactored a bit the diagram extents
13064         computation logic, and changed it to always be the union of the
13065         visible layers' extents. This should close #58882 (Debian
13066         #107167), and fixes #55498.
13068         * app/display.c: made the initial visible box more coherent with
13069         the diagram being loaded's extents.
13071         * app/prop_attr.c: don't set the font (from offset) if font_data
13072         is NULL. Two brainos in colorprop_load() and fontprop_load().
13073         
13074 2001-08-13  Cyrille Chepelov  <chepelov@calixo.net>
13076         * lib/properties.[ch]: split in a lot of pieces: 
13078         * lib/prop_*.[ch] (NEW): all property types are now first-class
13079         objects, inheriting from the original abstract Property type.
13080         * lib/propdesc.c (NEW): property description handling routines
13081         * lib/propoffsets.c (NEW): property offset handling routines
13082         * lib/proplist.c (NEW): property list handling routines
13083         * lib/propobject.c (NEW): property list <-> object routines
13084         * lib/propregistry.c (NEW): holds the PropertyType-->PropertyOps
13085         relations.
13086         * lib/propinternals.h: prototypes for stuff not usually needed by 
13087         the outside of StdProps.
13088         * lib/Makefile.am: a lot of new files have been added...
13090         THE ABOVE CHANGES ARE MAJOR CHANGES AND AFFECT THE WHOLE TREE, IN
13091         BOTH INTERFACES AND RUN-TIME STABILITY.
13093         * lib/plug-ins.h: bumped up DIA_PLUGIN_API_VERSION
13094         
13095         * lib/object.h: removed the incestuous relationship with
13096         properties.h' contents. Now a Property list is a GPtrArray -->
13097         object interface change !
13099         * app/app_procs.c/app_init(): removed a disabled call to a
13100         non-existent routine. Added a call to stdprops_init().
13101         
13102         * objects/Makefile.am: disabled the construction of EML. I'm not
13103         touching these until a certain issue is solved (or this module
13104         removed).
13105         * app/group.c:  
13106         * objects/**/*.c except objects/EML/*: adapted all stdprop-using 
13107         objects to the interface changes.
13108         
13109         * app/disp_callbacks.c: killed a warning.
13110         * lib/dia_xml.[ch]: sprinkled "const" modifiers. 
13112         * app/commands.c: 
13113         The macros PROP_VALUE_* have disappeared. Adapted to using the new 
13114         interface.
13116         * plug-ins/dxf/dxf-import.c: 
13117         * plug-ins/xfig/xfig-import.c: 
13118         PROP_VALUE_* macros have been removed. Converted to the new API.
13120         * plug-ins/python/**/*: I gave up converting this; I can't
13121         compile --with-python (problems with object.h defined both by us
13122         and by Python). I'll gladly help whomever cares to fix it !
13123         (or, fix it myself if someone tells me how to compile it).
13124         
13125         * configure.in: added the UNICODE-related progress defines.
13126                 
13127         * configure.in:
13128         * lib/geometry.h: On Solaris and perhaps other systems, finite()
13129         is defined in ieeefp.h rather than in math.h. Patch from Andrew
13130         Halper <ashalper@acm.org> with further modifications, isinf() is
13131         provided by -lsunmath (sunmath.h).
13132         
13133         * lib/font.c: conditionally disabled Lars' debugging messages.
13134         Bracketed the definition of DiaFontFamily with #ifdef HAVE_FREETYPE.
13135         
13136 2001-08-11  Lars Clausen  <lrclause@cs.uiuc.edu>
13138         * lib/bezier_conn.h: 
13139         * objects/standard/bezier.c (bezierline_create): 
13140         * lib/bezier_conn.c (bezierconn_init): 
13141         Preparations for use of userdata for bezier lines.
13142         
13143         * objects/standard/polygon.c: 
13144         * objects/standard/create.h:
13145         * lib/polyshape.c:
13146         * lib/polyshape.h:
13147         * plug-ins/xfig/xfig-import.c:
13148         Use of user_data for polygon as well, including adding
13149         polyshape_set_points.  Include file for non-interactive 
13150         creation of standard objects, objects/standard/create.h
13152 2001-08-10  Lars Clausen  <lrclause@cs.uiuc.edu>
13154         * app/render_gdk.c: 
13155         * app/render_gdk.h: 
13156         * lib/font.c:
13157         * lib/font.h:
13158         * lib/widgets.c:
13159         More preliminary freetype support.  Not at all functional, crashes
13160         when rendering.
13162         * lib/poly_conn.h: 
13163         * lib/poly_conn.c: 
13164         * objects/standard/polyline.c: 
13165         Support for creating polyline objects with more than two points.
13166         This includes an extra function and a prototype change in the
13167         poly_conn lib object.
13169         * lib/object.c (object_copy): Fixed memory leak of handles and
13170         connections.
13172 2001-08-08  Abel Cheung  <maddog@linux.org.hk>
13174         * dia.desktop: added traditional Chinese strings
13176 2001-08-04  Cyrille Chepelov  <chepelov@calixo.net>
13178         * NEWS: updated to reflect build-time dependencies.
13180         * lib/properties.[ch]: wrote get_prop_descriptions() as a wrapper
13181         around obj->ops->describe_props(obj). Quarks are none of an
13182         object's business in the general case... 
13183         * lib/text.c: Added an apply_textattr_properties() function to
13184         factor out some common code related to applying a dialog's text
13185         attribute properties to a (Text *) which wasn't edited there. 
13186         Ditto for textstr, for the string part of an objet.
13188         * objects/GRAFCET/action.c:
13189         * objects/SADT/annotation.c:
13190         * objects/SADT/box.c: used apply_textattr_properties().
13191         
13192         * objects/UML/actor.c: 
13193         * objects/UML/branch.c:
13194         * objects/UML/component.c:
13195         * objects/UML/constraint.c:
13196         * objects/UML/small_package.c:
13197         * objects/UML/state.c:
13198         * objects/UML/usecase.c:
13199         * objects/UML/large_package.c:
13200         * objects/UML/note.c:
13201         * objects/UML/node.c:
13202         * objects/UML/message.c:
13203         * objects/UML/classicon.c:
13204         * objects/UML/object.c:
13205         * objects/UML/realizes.c:
13206         * objects/UML/dependency.c:
13207         * objects/UML/implements.c:
13208         slim-fast(tm) cure using more StdProps, and UTF-8 audit.
13209         (most objects were already using StdProps to some extent ; this
13210         systematises usage and removes some dead wood). 
13211         
13212         * objects/UML/stereotype.[ch]: use UTF-8 internally. const police work.
13213         * objects/UML/uml.[ch]: audited for UTF-8.
13215         * objects/UML/class.c: the UML_STEREOTYPE_* strings defined by
13216         uml.h can be in UTF-8... this code isn't yet ready. Duplicating a
13217         private (ISO-8859-1) definition.
13218         
13219         * lib/charconv.c: Added a warning if we didn't run
13220         nl_langinfo(CODESET) but rely instead on a hardcoded default.
13221         
13222 2001-08-02  Cyrille Chepelov  <chepelov@calixo.net>
13224         * lib/diamenu.h:
13225         * app/disp_callbacks.c: added a way for an object to cause an
13226         already realised menu to be destroyed (for instance if it changes
13227         too much).
13229         * objects/custom/custom_object.c: used the above to fix #55073.
13231 2001-08-01  Lars Clausen  <lrclause@cs.uiuc.edu>
13233         * configure.in: Remove 2.50 prereq.
13235 2001-07-30  Cyrille Chepelov  <chepelov@calixo.net>
13237         * po-checktrans.py: under some circumstances, there was one column 
13238         more than what was supposed to be, thus breaking the formatting.
13239         
13240 2001-07-29  Cyrille Chepelov  <chepelov@calixo.net>
13241         
13242         * objects/SADT/annotation.c: forgot to add a #include <stdlib.h>
13244         * NEWS: updated with new stuff since 0.88
13246         * shapes/network/antenna.shape: the text was misplaced ; fixed.
13248         * shapes/network/firewall.(shape|xpm) (NEW): a brick-wall looking
13249         firewall router (upon request from Cyril Lacoux
13250         <clacoux@easter-eggs.com>)
13252         * configure.in (didn't rename to configure.ac): autoconf 2.50
13253         constructs were used ; added an AC_PREREQ call to guard against
13254         older autoconfs.
13255         
13256 2001-07-27  Cyrille Chepelov  <chepelov@calixo.net>
13258         * lib/properties.c: minor clean-ups with the event delivery code.
13260         * EML/instantiation.c: brought this object back from stone and ice
13261         age.    
13263         * app/diaconv.c(NEW): added a command-line conversion tool. Still
13264         lacks a man page and correctness. In fact, it doesn't work. Please
13265         see #58196 if you want to finish it.
13266         
13267         * lib/message.[ch]: redefined things a little so that a different
13268         message_internal routine could be passed.
13269         applications can use that to fit themselves to the display model.
13271 2001-07-26  Cyrille Chepelov  <chepelov@calixo.net>
13273         * objects/SADT/box.c: 
13274         * objects/GRAFCET/action.c: spelling in property descriptors (name
13275         field...)
13276         * objects/SADT/annotation.c: ditto, plus a temporary test of the
13277         event delivery code (try to click on the "click me !" button !).
13279         * app/group.c: 
13280         * lib/properties.[ch]: improved (fixed) support for group event 
13281         handlers. Fixed various things from yesterday's code to make it
13282         not too obviously crash.
13284 2001-07-26  Cyrille Chepelov  <chepelov@calixo.net>
13286         * app/group.c: added delivery of events to the first member of the
13287         group which is able to process it.
13289         * lib/properties.c(prop_desc_lists_intersection): properties
13290         don't match if they don't have identical event handler.
13291         * lib/properties.h: simplified the PropEventHandler signature.
13293         Event delivery code is still untested so far, but should be
13294         lurking harmless.
13295         
13296 2001-07-25  Cyrille Chepelov  <chepelov@calixo.net>
13298         * lib/properties.[ch]: Added (untested !) property event handler
13299         capability. Added a new PROP_TYPE_BUTTON, for the purpose of
13300         generating such events. This stuff compiles, and should lurk
13301         around silently as long as you don't declare property descriptors
13302         with events (AFAICT).
13303         In object_create_props_dialog() and friends:
13304         attached a single structure with lots of data instead of lots of
13305         little attachments of data to the dialog widget.
13306         
13307         * lib/object.h: fixed mild typedef breakage introduced by the above.
13309 2001-07-17  Lars Clausen  <lrclause@cs.uiuc.edu>
13311         * lots of files: Changed Font to DiaFont
13312         * */Makefile.am: Added FREETYPE_LIBS
13313         * plug-ins/xfig/xfig-export.c: Improved (working:) color handling
13315 2001-07-13  Kjartan Maraas  <kmaraas@gnome.org>
13317         * configure.in: Added "nn" to ALL_LINGUAS.
13318         
13319 2001-07-09  Alex Larsson  <alexl@redhat.com>
13321         * app/disp_callbacks.c:
13322         Add gdk_im_ready() calls to XIM code.
13324 2001-07-04  Cyrille Chepelov  <chepelov@calixo.net>
13326         * lib/properties.[ch]: splitted prop_get_widget() into
13327         prop_get_widget() (gives a widget but doesn't fill it) and 
13328         prop_reset_widget() (fills an existing widget with a property's value).
13330         * lib/widgets.[ch]: const enforcement police work.
13332         * shapes/network/antenna.shape: added a connection point at top,
13333         upon request from <Emmanuel.Quemener@cri.ens-cachan.fr>.
13334         
13335 2001-06-25  Cyrille Chepelov  <chepelov@calixo.net>
13337         * intl/*: tested with gettext-0.10.38
13338         * configure.in: moved a macro call around (AM_PROG_CC) to keep
13339         some of autogen.sh from complaining.
13340         * INSTALL: added a warning against gettext older than at least 0.10.36
13341         
13342 2001-06-19  Cyrille Chepelov  <chepelov@calixo.net>
13344         * configure.in: added explicit calls to AM_LANGINFO_CODESET and
13345         AM_ICONV (both provided by gettext)
13347 2001-06-14  Cyrille Chepelov  <chepelov@calixo.net>
13349         * lib/charconv.c: corrected the degraded mode for when
13350         !HAVE_UNICODE. Thanks to Ben A. Hetland for reporting this.     
13352         * objects/chronoline/chronoline_events.c: UTF8 compliance.
13353         
13354 2001-06-13  Cyrille Chepelov  <chepelov@calixo.net>
13356         * lib/properties.[ch]: convenience macros around PROP_NOTEBOOKS ;
13357         new "eye candy" properties: PROP_MULTICOL_(BEGIN|PAGE|END) to lay 
13358         widgets on several columns, PROP_FRAME_(BEGIN|END) to put widgets
13359         into a frame box.
13361         * objects/chronogram/chronoline.c:
13362         * objects/chronogram/chronoref.c: took advantage of the above to
13363         make nicer looking dialogs.
13365         * lib/charconv.[ch]: added charconv_unichar_to_utf8 ("inspired"
13366         from libunicode's internals).
13367         * lib/message.c: convert strings to local encoding prior to
13368         display (UNICODE_WORK_IN_PROGRESS)
13369         * lib/properties.[ch]: convert strings to local encoding prior to
13370         display, and back to UTF8 (UNICODE_WORK_IN_PROGRESS).
13371         * lib/render.h: tagged strings as (utfchar *) instead of (char *)
13372         * lib/stringprerenderer.[ch]: ditto
13374         (lib/text.c has been audited for UTF8, but the size of the changes
13375         make them inappropriate for commit before 0.89)
13376         
13377 2001-06-12  Cyrille Chepelov  <chepelov@calixo.net>
13379         * objects/boolequation.h (<save|load>_boolequation): made the 
13380         prototypes for match the .c file.
13381         
13382         * samples/grafcet.dia: minor non-conformance with IEC-848
13383         fixed (in the transition from step 100 to step 101).
13385         * lib/properties.[ch]: added a flag (PROP_FLAG_DONT_MERGE) to
13386         disallow editing of properties if the object is part of a group.
13388         * objects/chronogram/chronoline.c: 
13389         * objects/SADT/annotation.c:
13390         * objects/SADT/box.c:
13391         * objects/GRAFCET/step.c:
13392         * objects/GRAFCET/transition.c:
13393         * objects/GRAFCET/condition.c: took advantage of PROP_FLAG_DONT_MERGE.
13394         
13395 2001-06-12  Hans Breuer  <hans@breuer.org>
13397         * lib/libdia.def : removed lazyprop exports
13398         * lib/makefile.msc : removed lazyprop.obj
13400         * objects/custom/custom_objects.c : use HAVE_UNISTD_H
13401         and avoid crashes by always creating a custom->text,
13402         when (custom->info->has_text) 
13404         * objects/makefile.msc : removed sybase from build
13406         * objects/GRAFCET/boolequation.c (<save|load>_boolequation) :
13407         ObjectNode is a pointer already, which is what we want
13408         instead of a pointer pointer.
13410         * plug-ins/wmf/wmf.cpp : fixed problem with arc scaling
13411         and implemented working export for images
13413         * shapes/network/zip-disk.shape : added connection points 
13415 2001-06-12  Cyrille Chepelov  <chepelov@calixo.net>
13417         * objects/SADT/box.c: removed lazyprops for standard props.
13418         * objects/chronograms/chronoline.c: removed lazyprops (phew !)
13419         * objects/chronograms/chronoref.c: ditto 
13421         * lib/Makefile.am:
13422         * lib/dummy_dep.h:
13423         * lib/connpoint_line.c:
13424         * lib/lazyprops.[ch] (DELETED): good riddance (closes #55895)
13425         * lib/properties.[ch]: new property types:
13426             - PROP_TYPE_STATIC: static text to be displayed in the dialog.
13427             - PROP_TYPE_MULTISTRING: same as string, but renders as a
13428             multi-line entry box.
13429             - PROP_TYPE_NOTEBOOK_BEGIN,_PAGE,_END: stuff to make dialogs
13430             in a tabbed-notebook style (this is a bit complicated to use; 
13431             see objects/chronograms/chronoline.c for an example).
13432                
13433 2001-06-11  Cyrille Chepelov  <chepelov@calixo.net>
13435         * objects/GRAFCET/boolequation.[ch]: zap lazyprops. Add standard props.
13436         * objects/GRAFCET/step.c: ditto.
13437         * objects/GRAFCET/vector.c: ditto.
13438         * objects/SADT/annotation.c: ditto.
13439         * objects/SADT/arrow.c: ditto (plus bounding box fixes).
13440         
13441         * lib/properties.[ch]: two more non-visible types
13442         (PROP_TYPE_ENUMARRAY and PROP_TYPE_INTARRAY).
13444         * lib/neworthconn.[ch]:
13445         * lib/orthconn.[ch]: added support for manipulation through
13446         standard properties.
13448         * configure.in: removed -fomit-frame-pointer, this seems to
13449         confuse recent gcc/gdb's, maybe we'll get better stack dumps in 
13450         bugzilla.
13452         * charconv.[ch]: more functions from unicode.h.
13453         get_local_charset() wasn't working properly, fixed now.
13454         A subtle crashbug in charconv_utf8_to_local8() nailed (thanks to 
13455         ElectricFence !)
13456         
13457         * objects/EML/process.h: pulled the bits of lazyprops.h it uses.
13458         * lib/lazyprops.[ch]: put a big fat warning in.
13460         * app/render_eps.c: one line mysteriously went away, causing a
13461         variable to be used uninitialised....
13463 2001-06-10  Cyrille Chepelov  <chepelov@calixo.net>
13465         * app/app_procs.c: commented out the call to
13466         bind_textdomain_codeset(): it's premature.
13467         
13468         * lib/connpoint_line.c: a NULL point can be given to
13469         connpointline_adjust_count(), in case there's not really a clicked
13470         point.
13472         * lib/textattr.h(NEW): moved the definition of TextAttributes to sort
13473         #include order troubles. #included by lib/text.h, so there is no 
13474         impact outside lib/.
13475         * lib/properties.[ch]: added support for CONNPOINT_LINE and
13476         (nonvisible) TEXT properties.
13478         * objects/GRAFCET/action.c:
13479         * objects/GRAFCET/vergent.c: dropped lazyprops for standard
13480         properties.
13481         
13482         * objects/UML/lifeline.c: pruned some legacy stuff (now pure
13483         standard properties code). Grafted a dynamic number of connection
13484         points (heavily inspired from what Vergent does). This is the real
13485         fix for #55863.
13487         * objects/GRAFCET/boolequation.[ch]: audited for UTF-8
13489         * lib/fonts.c: some hardening (mostly g_assert())
13490 2001-06-09  Cyrille Chepelov  <chepelov@calixo.net>
13492         * app/app_procs.c (app_init): added a call to
13493         bind_textdomain_codeset() so that gettext gives us UTF-8 strings
13494         (UNICODE_WORK_IN_PROGRESS).
13495         
13496 2001-06-08  Cyrille Chepelov  <chepelov@calixo.net>
13498         * plug-ins/xfig/xfig-import.c: corrected a typo (fixes #55910)
13500         * objects/UML/lifeline.c: patch from Marc <mrw@siemens.ch> 
13501         (fixes #55863) : some clean-ups in the handling of connection
13502         points. Now the total number of connection points is just a
13503         #define (the proper solution is to retrofit the GRAFCET Vergent's
13504         dynamic behaviour wrt connection points).
13505         
13506 2001-06-07  Cyrille Chepelov  <chepelov@calixo.net>
13508         * app/app_procs.c (app_init): added a call to unicode_init() (only
13509         if HAVE_UNICODE, of course).
13511         * lib/charconv.c: simplified the code which detects the local
13512         charset. No need to use <langinfo.h>, libunicode already takes the
13513         burden of figuring that out. Also, if local charset is utf8, no
13514         conversion will take place.
13515         Exposed a way to get the current charset (similar to
13516         unicode_get_charset() but actually working, hopefully).
13518         * lib/charconv.h: Added a partial non-UTF8 implementation of
13519         unicode.h if !HAVE_UNICODE (actually, all the time for the
13520         moment). The UTF8 implementation is just macros on libunicode (use
13521         the functions prefixed by uni_, as defined by charconv.h, not
13522         unicode_, unless that code is to be compiled only if HAVE_UNICODE).
13523         From now on, all strings which don't *need* to be ASCII should be
13524         utfchar *, not gchar *. Just include charconv.h, let it sort out
13525         the details (such as: "is libunicode available and enabled?") 
13527         * lib/ps-utf8.c: fixed a few name clashes. Used the charconv.h
13528         "API" instead of directly libunicode. Removed the now unnecessary
13529         speculative clustering of characters in encoding pages.
13531         * app/render_eps.c: made the local8->utf8 conversions dependent of
13532         !UNICODE_WORK_IN_PROGRESS (this is not where the local8/utf8
13533         boundary will be when this WIP is done).
13535         * lib/dia_xml.c (data_point): fixed a format string typo.
13537         * po/POTFILES.in: added all C files from lib/ 
13538         
13539 2001-06-06  Cyrille Chepelov  <chepelov@calixo.net>
13541         * app/disp_callbacks.c: make sure the objects' connected objects
13542         are updated when the objects' size changes after a keypress event
13543         (fixes #51222)
13545         * configure.in: added a big warning about the possible future
13546         non-optionality of --enable-unicode. 
13548         * TODO: removed entries which look like done ; added a few ones
13549         (Bugzilla "enhancement" bugs may be a better way to keep track of
13550         this)
13551         
13552 2001-06-05  Cyrille Chepelov  <chepelov@calixo.net>
13554         * objects/UML/message.c: got rid of #55564 and of message_copy()
13555         by using more standard properties (are the message_state_*()
13556         functions still necessary ?)
13558 2001-06-04  Fredrik Hallenberg  <hallon@lysator.liu.se>
13560         * lib/plug-ins.c: 
13561         * objecs/custom/shape_info.c:
13562         * plug-ins/shape/shape-export.c:
13563         * plug-ins/svg/render_svg.c: patch from obecian <obecian@openbsd.org>
13564         use xmlChar instead of obsolete CHAR.
13566 2001-06-03  Hans Breuer  <hans@breuer.org>
13568         * app/diagram.h : added prototype for diagram_update_menu_sensitivity()
13569         * app/commands.c : give the right number of parameters
13570         to diagram_update_menu_sensitivity ()
13572         * app/preferences.c : do proper initialization for DiaPrefsData:
13573         render_bounding_boxes. It would be a real surprise if 'hidden'
13574         properties would have ever worked before.
13575         Don't try to access the widgets of hidden property, it does not
13576         have one.
13578         * lib/diagramdata.h : make render_bounding_boxes a DIAVAR, cause
13579         it is defined in libdia, but initialized from dia app, which 
13580         otherwise gave nice start-up crashes.
13582         * lib/diagramdata.c : initialize the color for rendering bounding 
13583         boxes in the Dia range (0 .. 1.0)
13585         * lib/libdia.def : added *_bbox functions for export
13587         * lib/makefile.msc : added new sources
13589         * objects/custom/custom_object.c : use HAVE_UNISTD_H
13591 2001-05-30  Cyrille Chepelov  <chepelov@calixo.net>
13593         * app/interface.c:
13594         * app/menus.c: patch from Hubert Figuiere <hfiguiere@teaser.fr> ;
13595         removes a translation of menus (in a place where there shouldn't
13596         have been), which gets rid of a waterfall of warnings if LANG!=C,
13597         and a fix to #55047.
13599 2001-05-29  Steffen Macke     <sdteffen@yahoo.com>
13601         * lib/charconv.c : added #include <errno.h>
13603         * app/dia_embedd.c : updated menus_get_item_from_path usage
13604         
13605 2001-05-27  Cyrille Chepelov  <chepelov@calixo.net>
13607         * lib/ps-utf8.c: Strings in Symbol fonts were incorrectly rendered.
13608         Added a special case for Symbol strings, so that they're not
13609         re-encoded using the LN encoding (we use the bare Adobe encoding
13610         instead).
13612         * objects/custom/custom_object.c: Now that #52912 is fixed,
13613         I could remove the ugly hack I wrote to squash the shape bounding box
13614         problem shown by Ben A. Hetland a few months ago, and fix it
13615         properly this time.
13616         
13617         * lib/text.c: enlarged a little the bounding box to account for
13618         the cursor in rightmost position.
13619         
13620         * lib/diagramdata.c: draw bounding boxes only if the relevant
13621         variable is set (as before), but also only if the rendere is
13622         interactive (ie, don't bother rendering bounding boxes on 
13623         Postscript...)
13624         Made the bounding box's line width a fixed value, 0.01
13625         
13626         * lib/boundingbox.c: fixed the "pointy corners" code for polylines
13627         and assymmetric control beziers. Implemented ellipse_bbox().
13628         
13629         * Makefile.am: incantations to get po/dia.pot build, as suggested
13630         by Hubert in #55075.
13631         
13632         * shapes/network/computer.shape: typo fixed.
13633         * shapes/network/antenna.shape: fixed #55074 (antenna is now
13634         properly translucent, except for its base where it makes sense. It
13635         doesn't look that ugly anymore if transparent mode is on).
13637         * configure.in: --enable-unicode is now the default. This
13638         still currently affects only printing.
13639         
13640 2001-05-26  Cyrille Chepelov  <chepelov@calixo.net>
13642         * lib/boundingbox.c: fixed a minor logic error wrt closed shapes. 
13643         The overshoot code is buggy, and the bounding boxes for polyshapes
13644         looks a bit cheezy. To be done ASAP.
13646 2001-05-26  James Henstridge  <james@daa.com.au>
13648         * configure.in: call AM_PATH_PYTHON rather than AM_PATH_PYTHON_JH.
13649         This should clear up some of the build problems people have been
13650         having.
13652         * acinclude.m4: call AM_PATH_PYTHON_JH AM_PATH_PYTHON
13654 2001-05-26  Cyrille Chepelov  <chepelov@calixo.net>
13656         * lib/Makefile.am:
13657         * lib/boundingbox.[ch] (NEW): (some) refactoring of the bounding
13658         box code (beginning with lines, polylines and polybeziers), into a
13659         more generic facility. While at it, a better shot at correctly
13660         computing the bounding box of a Bezieroid (should take care of
13661         #53424, #51233 and of course is part 1 of #52912).
13663         * lib/diagramdata.c: turned the RENDER_BOUNDING_BOXES conditional
13664         into a hidden preference (set render_bounding_boxes in diarc).
13665         * app/preferences.[ch]: Added support for hidden preferences.
13667         * lib/geometry.[ch]: sprinkled with "const" modifiers.
13668         
13669         * lib/bezier_conn.[ch]:
13670         * lib/beziershape.[ch]:
13671         * lib/connection.[ch]:
13672         * lib/element.[ch]:
13673         * lib/poly_conn.[ch]:
13674         * lib/orth_conn.[ch]:
13675         * lib/neworth_conn.[ch]:
13676         * lib/polyshape.[ch]: adapted to take advantage of
13677         boundingbox.[ch] instead of relying on private (duplicate) code.
13679         * object/FS/flow.c:
13680         * object/GRAFCET/action.c:
13681         * objects/GRAFCET/condition.c:
13682         * objects/GRAFCET/vergent.c:
13683         * objects/GRAFCET/vector.c:
13684         * objects/SADT/annotation.c:
13685         * objects/SADT/arrow.c:
13686         * objects/ER/participation.c:
13687         * objects/UML/constraint.c:
13688         * objects/UML/implements.c:
13689         * objects/UML/lifeline.c:
13690         * objects/UML/message.c:
13691         * objects/UML/realizes.c:
13692         * objects/UML/generalization.c:
13693         * objects/UML/association.c:
13694         * objects/UML/dependency.c:
13695         * objects/FS/flow-ortho.c:
13696         * objects/network/bus.c:
13697         * objects/standard/arc.c:
13698         * objects/standard/bezier.c:
13699         * objects/standard/beziergon.c:
13700         * objects/standard/line.c:
13701         * objects/standard/polygon.c:
13702         * objects/standard/zigzagline.c:
13703         
13704         * objects/standard/polyline.c: Some *BBExtras structures changed
13705         names while moving to boundingbox.[ch]. A trivial mass-renaming.
13706         
13707 2001-05-20  Cyrille Chepelov  <chepelov@calixo.net>
13709         * app/disp_callbacks.c (ddisplay_canvas_events): Take into account
13710         wheel mouses for scrolling (from Patrick Sung <phsung@ualberta.ca>)
13712         * app/display.c (ddisplay_update_scrollbars): from Patrick's
13713         suggestion, remove the extra scrollable area (it was only visible
13714         to the scrollbars). This is experimental.
13715         
13716         * objects/custom/custom_object.c: If a shape's icon file doesn't 
13717         exist, warn and substitute a default icon, instead of crashing.
13718         (fixes #52913)
13719         
13720         * objects/network/network.c:
13721         * shapes/network/modularswitch.(shape|xpm) (NEW):
13722         * shapes/network/printer.(shape|xpm) (NEW):
13723         * shapes/network/genmonitor.(shape|xpm) (NEW):
13724         * shapes/network/computer.(shape|xpm) (NEW):
13725         * shapes/network/Makefile.am: four less objects, four more shapes.
13726         These were the last known RenderObjects. (phew !)
13728         * lib/Makefile.am:
13729         * lib/dummy_dep.h:
13730         * objects/sybase/Makefile.am: 
13731         * objects/network/Makefile.am: Removed the older Renderobjects
13732         from the build, and their infrastructure (not yet deleted,
13733         though).
13735         * shapes/network/sceadplug.shape:
13736         * shapes/network/antenna.shape:
13737         * shapes/network/modem.shape:
13738         * shapes/network/hub.shape:
13739         * shapes/network/rj45plug.shape:
13740         * shapes/sybase/client.shape:
13741         * shapes/sybase/dataserver.shape:
13742         * shapes/sybase/ltm.shape:
13743         * shapes/sybase/repserver.shape:
13744         * shapes/sybase/rsm.shape:
13745         * shapes/sybase/stableq.shape: Minor corrections (line widths were
13746         ten times too narrow).
13747         
13748 2001-05-19  Cyrille Chepelov  <chepelov@calixo.net>
13750         * objects/network/network.c:
13751         * shapes/network/sceadplug.(shape|xpm) (NEW):
13752         * shapes/network/antenna.(shape|xpm) (NEW):
13753         * shapes/network/modem.(shape|xpm) (NEW):
13754         * shapes/network/Makefile.am: four less objects, four more shapes.
13755         
13756         * lib/Makefile.am:
13757         * lib/diagramdata.c:
13758         * lib/render.h:
13759         * lib/string_prerenderer.[ch] (NEW):
13760         Add a new renderer primitive, predraw_string() (does nothing, to be
13761         used as a hook to optimise the character encodings if needed). 
13762         Added a string pre-renderer, which can be viewed as a filter
13763         renderer (to route draw_string() to predraw_string() and ignore
13764         the rest, in a first rendering pass)
13765         
13766         * app/render_eps.c: Took advantage of the above to make wholly
13767         optimised Postscript encoding page(s), even (especially) with 
13768         non-latin1 code (HAVE_UNICODE must be true).
13770         (#53512 in fact is wholly resolved).
13771         
13772 2001-05-18  Cyrille Chepelov  <chepelov@calixo.net>
13774         * lib/charconv.c: steps towards resolution of #53512 (inspired by
13775         Alexey Novodvorsky <aen@logic.ru>'s patch).
13777         * app/menus.c (dia_menu_signal_proxy): checked that the signal
13778         handler is not NULL before transferring control to it... (fixes #52836)
13780         * app/app_procs.c (app_init): removed non-constant initialiser
13781         (fixes #52950)
13783         * objects/custom/custom_object.c:
13784         * objects/custom/shape_info.[ch]:
13785         * objects/custom/test.xml: merged patch #53476 from Steven Hawkins 
13786         <skh@mathstar.com>. This add support for a <svg:text> shape
13787         element, and some related style properties (font, font height, 
13788         alignment)
13790         * doc/custom_shapes: a precision about the meaning of case in a
13791         SVG path (closes #52364)
13793         * lib/dummy_dep.h: fix for SGI IRIX 6.2 (#53053, reported and
13794         fixed by <drk@sgi.com>)
13795         
13796 2001-05-17  Cyrille Chepelov  <chepelov@calixo.net>
13798         * objects/network/network.c:
13799         * shapes/network/Makefile.am:
13800         * shapes/network/hub.(shape|xpm) (NEW):
13801         * shapes/network/flash.(shape|xpm) (NEW):
13802         * shapes/network/rj45plug.(shape|xpm) (NEW):
13803         More shapes, less renderobjects.
13805 2001-05-16  Cyrille Chepelov  <chepelov@calixo.net>
13806         
13807         * plug-ins/svg/render_svg.c: typo made exported ellipses
13808         corrupted (zero Y pseudo-radius).
13810         * objects/network/network.c:
13811         * objects/network/disc.c:
13812         * shapes/network/disc.(shape|xpm): Converted the first
13813         Renderobject into a shape. Normally, old diagrams should reload
13814         without problems (please check this against your diagrams). More
13815         flexibility should be gained that way. I intend to hunt and
13816         eradicate all renderobjects as I can commit cycles to that. 
13818         * objects/Makefile.am:
13819         * configure.in:
13820         * app/Makefile.am:
13821         * objects/sybase/sybase.c:
13822         * shapes/sybase/Makefile.am(NEW):
13823         * shapes/sybase/client.(xpm|shape) (NEW):
13824         * shapes/sybase/dataserver.(xpm|shape) (NEW):
13825         * shapes/sybase/ltm.(xpm|shape) (NEW):
13826         * shapes/sybase/repserver.(xpm|shape) (NEW):
13827         * shapes/sybase/rsm.(xpm|shape) (NEW):
13828         * shapes/sybase/stableq.(xpm|shape) (NEW): converted Sybase
13829         renderobjects into shapes. The Sybase objects are now not compiled
13830         anymore, and ready to be nuked if nobody objects in the next few weeks.
13831         
13832         * app/commands.c:
13833         * app/diagram.[ch]:
13834         * app/disp_callbacks.c:
13835         * app/display.[ch]:
13836         * app/interface.[ch]:
13837         * app/menus.[ch]:
13838         * app/modify_tool.c:
13839         * app/preferences.[ch]:
13840         * app/recent_files.c:
13841         * app/select.c: Added patch #52364 from Hubert Figuiere. This adds
13842         a menu bar reflecting the popup menu, to each display window. This
13843         is optional (changing the preference currently doesn't affect
13844         already opened windows; a few other rough edges to cut).
13846         * plug-ins/wpg/wpg.c:
13847         * plug-ins/xfig/xfig-import.c:
13848         * plug-ins/python/pydia-property.c:
13849         * plug-ins/python/pydia-properties.c:
13850         * plug-ins/python/pydia-geometry.c:
13851         * plug-ins/pstricks/render_pstricks.c:
13852         * lib/arrows.c:
13853         * objects/EML/dbox.c:
13854         * lib/ps-utf8.c: paleolithic C compilers choke on //. Should fix 
13855         #53054.
13857         * lib/ps-utf8.c: improved the clustering of alphabetic character
13858         definitions in custom encodings pages.
13859         
13860 2001-05-02  Hans Breuer  <hans@breuer.org>
13862         * lib/object.h : OBJECT_COMMON_PROPERTIES_OFFSETS correct type 
13863         of 'obj_bb' to PROP_TYPE_RECT
13865         * objects/custom/custom_object.c : take all quarks into account, 
13866         not only 4 as copy&paste suggests
13868         * objects/uml/objects.c : completed the implementation of the
13869         property api to avoid reading of totally bogus data. Removed
13870         the PROBABLY_DEAD_CODE. It actually was dead code, but not because
13871         there was too much but too less ...
13872   
13873         The above changes removed all known crashes (mentioned below) 
13874         from the Property API. Property access is still incomplete though.
13876         * objects/flowchart/box.c :
13877         * objects/flowchart/diamond.c :
13878         * objects/flowchart/ellipse.c :
13879         * objects/flowchart/parallelogram.c :
13880         * objects/uml/classicon.c :
13881         * objects/uml/state.c : calculate number of quarks from quark array 
13882         size instead of using hardcoded values for consistence and to avoid 
13883         future bugs like the above
13884         
13885         * objects/eml/nlist.c : include <string.h> for strcmp()
13887         * lib/dia_xml.c : relax g_warning for values, which
13888         appear to be too small. There is nothing which prevents
13889         them while saving
13891         * plug-ins/python/pydia-geometry.c : changed stringifying of
13892         geometry objects accept BezPoint back to %f, which does not
13893         crash anymore, because all the data is intialized now and it
13894         simply is more readable than %e ...
13896         * plug-ins/python/python-startup.py : removed dependency
13897         to PyGtk, because it isn't required here and probably won't
13898         in i.e.: export filters.
13900         * plug-ins/python/gtkcons.py : create the gtkoutfile even
13901         if sys.stderr.fileno() isn't supported
13903         * app/makefile.msc : make version 0.88
13904         * plug-ins/makefile.msc : make version 0.88 an added new
13905         xfig files to build
13907 2001-05-11  James Henstridge  <james@daa.com.au>
13909         * NEWS: remember to add news items this time.
13911         * dia.spec: update spec file for 0.88 release.
13913         * configure.in: up version number to 0.88
13915         * plug-ins/python/Makefile.am (EXTRA_DIST): fix up typo that was
13916         preventing any of the useful python scripts from being
13917         distributed.
13919         * sheets/Makefile.am (sheet-translation-report): fix bustage I
13920         introduced in my fixups for the 0.87 release :(
13922 2001-05-10  Lars Clausen  <lrclause@cs.uiuc.edu>
13924         * plug-ins/xfig/xfig-import.c: Finally got groups working.
13926 2001-05-09  Lars Clausen  <lrclause@cs.uiuc.edu>
13928         * plug-ins/xfig/xfig-import.c: Improvements to error handling and
13929         group manipulation.
13931 2001-05-09  Cyrille Chepelov  <chepelov@calixo.net>
13933         * lib/ps-utf8.[ch]:
13934         * lib/Makefile.am: fix makefile breakage which led to not
13935         including ps-utf8.[ch] in the released tarballs. 
13937 2001-05-09  James Henstridge  <james@daa.com.au>
13939         * Makefile.am (core-translation-report): dist scripts needed for
13940         this target, and change to $(srcdir) before running.
13942         * sheets/Makefile.am (EXTRA_DIST): actually dist the sheets.  DATA
13943         files aren't automatically included in the tarball by automake
13944         because they could be generated files.
13946         * objects/EML/Makefile.am (EXTRA_DIST): fix directory names.
13948         * doc/en/Makefile.am (install-data-hook): fix up where graphics
13949         are installed.
13951         * configure.in: up version number to 0.87
13953         * plug-ins/python/*.py: no longer necessary to explicitly set
13954         sys.argv, as python.c does it for us now (like it should).
13956         * plug-ins/python/gtkcons.py: fix up so it plays nicely as a dia
13957         python plugin.
13959         * plug-ins/python/python-startup.py: startup script that imports
13960         all modules in $(datadir)/dia/python and ~/.dia/python.
13962         * plug-ins/python/python.c (dia_plugin_init): change so that it
13963         only runs the $(datadir)/dia/python-startup.py script.  Make sure
13964         that sys.argv and __main__.__file__ are set when calling the
13965         startup script.
13967         * plug-ins/python/Makefile.am: update makefile.  Make it install
13968         gtkcons.py plugin.  I haven't set any other plugins to install, as
13969         they look like they are mainly for debugging purposes.
13971         * configure.in: add tests to detect if python is available, so we
13972         can build the python plugin.  Only run if --with-python passed to
13973         configure.
13975 2001-05-08  James Henstridge  <james@daa.com.au>
13977         * acinclude.m4: add macros for detecting python.
13979         * app/menus.c (dia_gnome_menu_get_widget): handle paths that point
13980         at GNOME_APP_UI_SUBTREE entries.
13981         (menus_add_path): function to add a menu item to the menubars.
13982         Uses a hash table to keep track of extra menu items it adds.  Also
13983         notifies the item factory about the entries so that accels can be
13984         saved for them.
13985         (menus_add_path): implement gtk only version.
13986         (menus_init): use menus_add_path() to add the menu.
13987         (plugin_callback): simplify.
13989 2001-05-08  Steffen Macke <sdteffen@yahoo.com>
13991         * app/menu.c: removed #ifndef GNOME; GNOME build was broken
13992         
13993 2001-05-08  Lars Clausen  <lrclause@cs.uiuc.edu>
13995         * plug-ins/xfig/xfig-export.c: 
13996         * plug-ins/xfig/xfig-common.c: 
13997         * plug-ins/xfig/xfig-import.c: 
13998         * plug-ins/xfig/xfig.c: 
13999         * plug-ins/xfig/xfig.h: 
14000         * app/Makefile.am: Added support for exporting to Fig format
14001         (except splits, which are less powerful in Fig).  Some refactoring
14002         along the way.
14004 2001-05-02  Hans Breuer  <hans@breuer.org>
14006         * plug-ins/python/debug_objects.py : added another
14007         test to get massive crashes from the Property API due
14008         to unintialized data.
14010         * app/menu.c : the callback_action wasn't incremented
14011         (should have checked my last optimization). Now more
14012         than one plug-in callback is supported again.
14014         * plug-ins/python/pydia-geometry.c : avoid crashes from
14015         glib, when trying to g_strdup_printf unintialized floats.
14017         * plug-ins/python/pydia-property.c : avoid crashes from
14018         because of string_data == NULL (PROP_TYPE_FILE, PROP_TYPE_STRING)
14020 2001-05-01  Hans Breuer  <hans@breuer.org>
14022         * objects/makefile.msc : added eml
14023         * objects/eml/instantiation.c : initialize 'inst' pointer
14024         before using, zero initialization for objects
14025         * objects/eml/interaction-ortho.c :
14026         * objects/eml/interaction.c : zero initialization for objects
14028         * app/menus.c : removed Gimp mru stuff which slipped in at
14029         2000-08-15, was never activated and will never be needed, 
14030         because of Steffens recent file list patch added at 2001-01-05.
14032         * objects/eml/*.c : some more zero initialization of objects
14033         to avoid infinite (uninitialized) bounding boxes
14035         Implemented a callback api which allows plug-ins to register
14036         menu call backs. Dia for Gnome should compile, but will need 
14037         some extra tweaking to make it work because I can't test it.
14039         * plug-ins/python/pydia-error.h :
14040         * plug-ins/python/pydia-render.c : moved Pxthon function return 
14041         value handling from pydia-render.c to pydia-error.h, to make it
14042         usable for
14043         * plug-ins/python/diamodule.c : implement callback function
14044         registration from and relaying to Python code
14046         * app/menus.c : register and use plug-in menu callbacks
14048         * lib/filter.[hc] : implement filter_register_callback() and
14049         filter_get_callbacks() for the above
14050         * lib/libdia.def : export them
14052         * plug-ins/python/debug_objects.py (new file): 
14053         sample using the above
14055 2001-04-27  Lars Clausen  <lrclause@cs.uiuc.edu>
14057         * plug-ins/shape/shape-export.c (new_shape_renderer): 
14058         The name of a shape is now taken from the dir, to conform with
14059         standard naming.
14061 2001-04-25  Lars Clausen  <lrclause@cs.uiuc.edu>
14063         * app/properties.c (properties_show): Added title containing
14064         object type, plus (hopefully) fix of the ghost properties dialog.
14066 2001-04-16  Cyrille Chepelov  <chepelov@calixo.net>
14068         * app/display.c: remove the display idle handler in case we
14069         destroy the ddisplay (caused crashes in ddd, probably random
14070         crashes elsewhere).
14072         * autogen.sh: 
14073         * configure.in:
14074         * Makefile.am: hack around gettext-0.10.36's new "features".
14075         
14076         * lib/properties.[ch]: added new function object_copy_props().
14077         Added new property type PROP_TYPE_ENDPOINTS
14079         * lib/connection.h: added support for load/saving through the
14080         properties interface.
14082         * lib/object.[ch]: object_load/save/copy_using_properties()
14083         support functions (code factorisations).
14084         
14085         * objects/GRAFCET/boolequation.c: check against null values in
14086         boolequation_set_value() and boolequation_destroy().
14088         * objects/GRAFCET/transition.c: Converted from lazyprops to
14089         standard properties. 31% less (x86) code !
14091         * objects/GRAFCET/condition.c: also converted from lazyprops to
14092         standard properties. Also killed lots of code.
14093         
14094 2001-04-13  Hans Breuer  <hans@breuer.org>
14096         * plug-ins/wmf/wmf.cpp : changed text conversion from
14097         g_utf8_utf16 to g_convert usage. The latter function is already
14098         available in tml's last "official" Gtk+ version (2000-12-26).
14099         This change allows to use recent Dia with either the official
14100         version or the latest cvs "gtk-1-3-win32-production"-branch.
14102 2001-04-14  Lars Clausen  <lrclause@cs.uiuc.edu>
14104         * Patch from David S. Thompson <dcthomp@mail.utexas.edu>:
14105         * app/disp_callbacks.c:
14106         - Allow submenus in DiaMenus.
14107         - Don't require DiaMenu.title to be non-null (so that
14108           submenus aren't required to have titles)
14110         * objects/FS/function.c:
14111         - object menu now has submenus, an almost complete list of
14112           standard-basis verbs, and a start on nouns.
14113         - box padding, dash length, and other visual attributes are
14114           scaled by the font size... eventually font height will be
14115           a function property.
14116         - draw functions with smaller font to make initial view hold
14117           a reasonable number of functions.
14118         
14119 2001-04-13  Cyrille Chepelov  <chepelov@calixo.net>
14121         * sheets/ER.sheet:
14122         * sheets/chronogram.sheet:
14123         * sheets/jigsaw.sheet:
14124         * sheets/sybase.sheet: Updated Dutch sheet translations from Dag
14125         Wieers <dag@wieers.com>
14127 2001-04-13  Hans Breuer  <hans@breuer.org>
14129         * app/app_procs.c (app_exit) : added g_return_if_fail (!app_exit_once)
14130         to ensure that all the deinitialization is only done once. Fixes
14131         recent app exit crash on win32
14133         * lib/dia_xml.c : provide isinf() replacement for msc which does only
14134         have _finite()
14136         * lib/libdia.def : updated
14138         * objects/makefile.msc : added wanlink.c 
14140         * objects/network/wanlink.c : added M_PI_2 definition for poor
14141         platforms which don't have one
14143         * objects/standard/arc.c :
14144         * objects/standard/zigzagline. c: part of ConectionBBExtras wasn't
14145         initialized which led to rather huge bounding boxes (try Ctrl^A on
14146         diagrams with Arcs or ZigZagLines).
14147         * objects/*/*.c : to avoid further bugs like the above changed all
14148         object initializations to g_malloc0 or g_new0
14151 2001-04-09  Cyrille Chepelov  <chepelov@calixo.net>
14153         * lib/paper.[ch]: get rid of "no previous prototype fo `foo'" by
14154         doing a s/T foo()/T foo(void)/ for all possible values of T and foo.
14156         * objects/UML/class.c: 
14157         * objects/UML/usecase.c:
14158         * objects/UML/large_package.c:
14159         * objects/UML/message.c:
14160         * objects/UML/object.c:
14161         * objects/UML/lifeline.c:
14162         * objects/FS/flow.c:
14163         * objects/FS/flow-ortho.c:
14164         * objects/FS/function.c:
14165         * objects/custom/custom_object.c:
14166         * objects/GRAFCET/vergent.c:
14167         * objects/chronogram/chronoref.c:
14168         * objects/SADT/box.c:
14169         * objects/SADT/annotation.c:
14170         * plug-ins/dxf/dxf-import.c:
14171         * plug-ins/xfig/xfig-import.c:
14172         * plug-ins/wpg/wpg.c:
14173         * app/command.c:
14174         * app/app_procs.c:
14175         * app/display.c: /* certainly more WIP than dead code there */
14176         Unused variables, unused static function definitions, forgotten or
14177         incomplete prototypes added or fixed, lack of const or unwanted const,
14178         etc. (mostly clean-ups of leftovers of the pre-properties era).
14179         Non-obvious cases bracketed by #define THIS_IS_PROBABLY_DEAD_CODE,
14180         please check these.
14182         * app/lineprops_area.c: More of the same. Missing prototypes
14183         added, and functions unused outside made static.
14185         * app/recent_files.c:
14186         * app/properties.c:
14187         * app/defaults.c: some variables are used only when doing a GNOME
14188         build.
14189         
14190         * app/magnify.c: missing #include <stdlib.h>.
14192         * app/paginate_gnomeprint.c: Unused variable; missing "message.h".
14194         These are a lot of clean-ups (by the way, this compiles and runs
14195         cleanly with "gcc-3.0 -O2 -Wall --std=gnu99" too !); please grep
14196         for DEAD_CODE, and if it's yours, judge it.
14197         
14198 2001-04-07  Cyrille Chepelov  <chepelov@calixo.net>
14200         * plug-ins/dxf-import.c: some progress with the arcs; still some
14201         clean-ups to do and line width scaling issues to figure out.
14203         * objects/standard/arc.c: start_point and end_point properties
14204         (duplicated from standard/line.c)
14206         * plug-ins/xfig/xfig-import.c: zip ! zap ! no more dead DXF import
14207         code there.
14208         
14209 2001-04-06  Cyrille Chepelov  <chepelov@calixo.net>
14211         * plug-ins/dxf-import.c: setlocale-related clean-ups and fixes ;
14212         preliminary support for arcs (doesn't work). Circles and ellipses are
14213         now transparent. Coordinate and width scaling are now a common 
14214         static constant (probably before morphing into a preference).
14215         
14216         * sheet/checktrans.py: improved error reporting. Made checktrans
14217         count lack of <name xml:lang="code"> as a lack of translation for
14218         language "code" (no, it's not a plot to bring down other
14219         language's scores !)
14220         
14221         * sheet/*.sheet: Ensured all sheets have an encoding="iso-8859-1"
14222         in the header, and have <name xml:lang="fr"> components.
14223         
14224 2001-04-05  Cyrille Chepelov  <chepelov@calixo.net>
14226         * objects/custom/custom_object.c: temporary hack to fix the shape
14227         bounding box reported by Ben A. Hetland. Proper fix isn't .87
14228         material, see bugzilla #52912.
14230 2001-04-05  Lars Clausen  <lrclause@cs.uiuc.edu>
14232         * objects/standard/image.c (get_directory): Now uses
14233         G_SEPARATOR_CHAR_S instead of "/"
14235         * sheets/network.sheet: 
14236         * sheets/Logic.sheet:
14237         * sheets/Flowchart.sheet:
14238         * sheets/Electric.sheet:
14239         * sheets/Circuit.sheet:
14240         * sheets/ER.sheet:
14241         * sheets/Pneumatic.sheet:
14242         * sheets/SDL.sheet:
14243         * sheets/UML.sheet:
14244         * sheets/GRAFCET.sheet:
14245         * sheets/MSE.sheet:
14246         * sheets/chronogram.sheet:
14247         * sheets/civil.sheet:
14248         * sheets/network.sheet:
14249         Danish translations.
14250         
14251         * objects/standard/image.c (get_directory): Changed get_directory
14252         to use g_dirname to find the directory part.
14254 2001-04-05  Cyrille Chepelov  <chepelov@calixo.net>
14256         * sheets/ER.sheet:
14257         * sheets/Electric.sheet:
14258         * sheets/Flowchart.sheet:
14259         * sheets/Logic.sheet:
14260         * sheets/network.sheet: More Dutch translations from Dag Wieers.
14262 2001-04-04  Cyrille Chepelov  <chepelov@calixo.net>
14264         * sheets/checktrans.py: now emits a warning when two descriptions
14265         for a single language code are found.
14267         * Makefile.am:
14268         * sheets/Makefile.am: -translation-reports now also depend on their
14269         checktrans.py
14270         
14271 2001-04-04  Cyrille Chepelov  <chepelov@calixo.net>
14273         * sheets/Circuit.sheet:
14274         * sheets/Contact.sheet:
14275         * sheets/Logic.sheet:
14276         * sheets/chronogram.sheet:
14277         * sheets/sybase.sheet: 
14278         Dutch translations from Dag Wieers <dag@wieers.com>
14280 2001-04-04  Cyrille Chepelov  <chepelov@calixo.net>
14282         * po-checktrans.py: Now shows the detailed counts alongside the
14283         percentage of translations.
14284         
14285 2001-04-03  Cyrille Chepelov  <chepelov@calixo.net>
14287         * Makefile.am:
14288         * po-checktrans (NEW):
14289         * po-checktrans.py (NEW): builds core-translation-report:
14290         percentages of core (gettext) translations done [Not placed into
14291         po/ where that should belong, because of integration fear^Wissues
14292         with gettextize]. 
14294         TO THE KIND ATTENTION OF PACKAGERS: core-translation-report and 
14295         sheets/sheet-translation-report probably ought to be copied on the 
14296         user's /usr/share/doc/dia (or equivalent) directory.
14298         * sheets/Makefile.am: sheet-translation-report now a simple
14299         EXTRA_DIST; make install won't install it by default. 
14300         
14301 2001-04-03  Cyrille Chepelov  <chepelov@calixo.net>
14303         * app/preferences.c: changed the default grid colour to something
14304         less intrusive. 
14306         * shapes/SDL/*.shape:
14307         * sheets/SDL.sheet: renamed all SDL shapes to conform to the
14308         "$LIBRARY - $NAME" convention. THIS REQUIRES FIXING THE EXISTING
14309         DIA FILES (well, for files using SDL), see the mailing list
14310         archive "SDL (ab)using the global shape namespace" for a script to
14311         do this conversion.
14313         * sheets/SDL.sheet: translated into French
14314         * sheets/network.sheet: fixed XML typos. Yay ! 100% :-)
14315         
14316 2001-04-02  Cyrille Chepelov  <chepelov@calixo.net>
14318         * lib/dia_xml.c: made data_point() more paranoid
14320         * sheets/Makefile.am:
14321         * sheets/checktrans (NEW):
14322         * sheets/checktrans.py: Made checktrans handle more gracefully the
14323         absence of python and python-xml packages, and made the error
14324         message more helpful.
14325         
14326 2001-04-01  Lars Clausen  <lrclause@cs.uiuc.edu>
14328         * lib/render_object.c (new_render_object): Made initial handles
14329         behave like on most other objects.
14331         * app/load_save.c (read_objects): Fixed premature free'ing ofr
14332         typestr causing garbage.
14334 2001-04-01  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
14336         * objects/FS/flow-ortho.c: Fixed a crashbug causes by not
14337         accouting for handle ordering through copy and save. (#51479)
14339 2001-03-31  Cyrille Chepelov  <chepelov@calixo.net>
14341         * sheets/Circuit.sheet: Norwegian translation mistagged to German.
14343 2001-03-31  Steffen Macke  <sdteffen@yahoo.com>
14345         * sheets/Circuit.sheet
14346         * sheets/UML.sheet
14347         * sheets/network.sheet: Updated German translations
14348         
14349 2001-03-30  Cyrille Chepelov  <chepelov@calixo.net>
14350         * lib/arrows.[ch]:
14351         * lib/widgets.c:
14352         * app/lineprops_area.c: The return of the revenge of the arrow
14353         heads. Now all types covered by ISO 10303-201 should be covered.
14354         
14355 2001-03-30  Cyrille Chepelov  <chepelov@calixo.net>
14357         * sheets/Flowchart.sheet: translations in probably Hungarian were
14358         a victim of cut-n-paste from the German one. Fixed (hopefully).
14359         * sheet/UML.sheet: translation in probably Norwegian was a victim
14360         of cut-n-paste from the French one. Fixed (hopefully).
14361         * sheets/Logic.sheet: French translation not tagged with
14362         xml:lang="fr".
14363         
14364         * sheets/checktrans.py:
14365         * sheets/Makefile.am: new file, sheet-translation-report, to be
14366         installed along the sheets, show how much of them has been
14367         translated into which language (I wish the result was prettier...)
14369         * po/README: most translators don't read this file, but anyway...
14371         * sheets/.cvsignore:
14372         * objects/network/.cvsignore: the usual negotiation with CVS.
14374 2001-03-30  Cyrille Chepelov  <chepelov@calixo.net>
14376         * sheets/*.sheet: French translations
14378 2001-03-28  Cyrille Chepelov  <chepelov@calixo.net>
14380         Added patch #52363 from Hubert Figuiere <hfiguiere@teaser.fr>:
14382         ** objects/network/network.c:
14383         ** objects/network/wanlink.c:
14384         ** objects/network/pixmaps/wanlink.c:
14385         ** sheets/network.sheet:
14386         ** objects/network/Makefile.am: a better object to use instead of
14387         the older WAN Connection.
14388         
14389         ** lib/geometry.[ch]: rotation matrix functions in geometry.c (derived from gimp)
14391         ** objects/GRAFCET/vector.c: renamed Vector to GRAFCETVector to avoid a
14392         name clash 
14394         * objects/GRAFCET/vector.c: Re-renamed GRAFCETVector into
14395         Arc; kept the C file name (because CVS wouldn't like it), and
14396         still registering the older object name (but advertising the newer
14397         one in sheets/GRAFCET.sheet).   
14399 2001-03-24  Hans Breuer  <hans@breuer.org>
14401         * app/dia.def : some plug-ins (currently only python, xfig) are using 
14402         functions from the dia executable. To get them working these functions 
14403         need to be explicit exported on win32. IMO the much cleaner way would
14404         be to move these functions to libdia, but that would require some
14405         long term restructuring ...
14407         * lib/libdia.def : updated
14409         * plug-ins/makefile.msc : build xfig plug-in
14411 2001-03-24  Hans Breuer  <hans@breuer.org>
14413         * app/diagram.c : g_strdup (dia->filename) because it will be
14414         g_free ()d
14416         * app/display.c : set ddisp->renderer to NULL after destruction.
14417         This may solve or help to identify erroneous access to it after
14418         destruction.
14420         * plug-ins/wmf/wmf.cpp : convert string from utf8 to wchar to
14421         get 'umlauts' working
14423 2001-03-22  Cyrille Chepelov  <chepelov@calixo.net>
14425         * object/chronogram/chronoline_event.c: stupid bug ; rises and falls
14426         were reversed... (look for the patch, and drink a beer to my
14427         stupidity)      
14428         
14429 2001-03-23  Hans Breuer  <hans@breuer.org>
14431         * app/app_procs.c : don't g_error () if the config directory
14432         can't be created (at least not on windoze) because it's quite
14433         common that the user don't read or understand the FAQ ...
14435         * app/cursor.c : use ddisplay_active () instead of active_display
14436         from app/display.c
14438         * app/display.[hc] : made active_display var static and provide
14439         an accessor funtion ddisplay_active_diagram ()
14441         * app/dia-props.c : don't store the active_diagram, but ask
14442         for it everytime it needed.
14444         * lib/properties.h : #include "intl.h"
14446         * lib/makefile.msc : need to take care of inclusion order to
14447         avoid clashes with gtk+2.0's gdk-pixbuf
14449         * objects/makefile.msc : added uml/stereotype.c to build
14451 2001-03-23  Lars Clausen  <lrclause@cs.uiuc.edu>
14453         * **/*.c: Added config.h to the remaining .c files, and changed
14454         all to be <config.h>.
14456 2001-03-22  Steffen Macke <sdteffen@yahoo.com>
14458         * lib/arrows.c
14459         * lib/arrows.h
14460         * lib/widgets.c
14461         * app/lineprops_area.c: added new arrow types with double
14462         heads
14463         
14464 2001-03-20  Steffen Macke <sdteffen@yahoo.com>
14466         * shapes/Civil/civil_gas_bottle.xpm
14467         * shapes/Civil/civil_gas_bottle.shape
14468         * sheets/civil.sheet
14469         * shapes/Civil/Makefile.am: Added gas bottle shape by Arne
14470         Battermann
14471         
14472 2001-03-20  Lars Clausen  <lrclause@cs.uiuc.edu>
14474         * objects/custom/shape_info.c (load_shape_info): 
14475         * objects/custom/shape_info.h: 
14476         * objects/custom/custom_object.c (custom_update_data): 
14477         Better support for text outside the box -- new attributes 'resize'
14478         and 'align' for text entity.  Align not fully supported yet.
14480         * lib/text.c (text_calc_boundingbox): Adding BB for cursor width.
14482 2001-03-20  James Henstridge  <james@daa.com.au>
14484         * app/interface.c (display_data_received_callback): comment out
14485         status message.
14487 2001-03-19  James Henstridge  <james@daa.com.au>
14489         * app/GNOME_Dia.oaf: rename from GNOME_Dia.oafinfo.
14491         * objects/UML/realizes.c: similar here.
14493         * objects/UML/implements.c: similar here.
14495         * objects/UML/component.c: similar here.
14497         * objects/UML/generalization.c: same here.
14499         * objects/UML/dependency.c: allow NULL for ->name and
14500         ->stereotype.  This fixes a number of problems in loading saved
14501         files.
14503         * lib/properties.c: various changes so that NULL string properties
14504         should work.
14506         * objects/standard/line.c (line_update_data):
14507         line->extra.start_long and line->extra.end_long were not being
14508         initialised.  This fixes potential problems with the bounding box
14509         of "Standard - Line" objects.
14511 2001-03-19  Hans Breuer  <hans@breuer.org>
14513         * app/commands.c : added win32 specific code to display a html
14514         file. #include "text.h" for text_delete_all prototype.
14516         * app/dia.ico :
14517         * app/dia.rc : (new) to give Dia win32 an icon
14519         * app/win32print.[ch] : new files to support direct postscript
14520         file printing on win32. Beware: it *requires* a ps-printer!
14522         * app/paginate_psprint.c : disable the signal code for win32 build
14523         and added small specific changes to support win32print.
14525         * app/makefile.msc : added win32print and linking shell32.lib
14527         * lib/libdia.def : updated
14529 2001-03-18  Kevin Breit <battery841@mediaone.net>
14531         * doc/en/dia-C.omf: Added file.  Dia should now list in the Nautilus
14532           Help tabs.
14534 2001-03-17  James Henstridge  <james@daa.com.au>
14536         * app/paginate_psprint.c (diagram_print_ps): add code that traps
14537         SIGPIPEs during printing.  This gets rid of a number of crashes
14538         caused by printing (eg. typing an incorrect print command).
14540         * dia.spec (%install): gzip the manpage.
14542         * lib/beziershape.c (beziershape_save): fix off by one error in
14543         beziershape save code, which was adding an extra segment to the
14544         object on save.
14546         * app/menus.c: add a separator in the gnome version of the help
14547         menu.
14549         * app/app_procs.c (app_init): add a --nosplash argument which
14550         disables the splash screen.
14552         * app/dia_embedd.c (main): don't leave the splash screen open for
14553         embeddable component.
14555         * app/splash.c (app_splash_init): the gtk_widget_show_now() call
14556         didn't seem to be showing the splash screen like expected, so I
14557         have replaced it with some code that calls gtk_main() until the
14558         first exposure of the window.
14560 2001-03-16  James Henstridge  <james@daa.com.au>
14562         * app/Makefile.am (EXTRA_DIST): add extra pixmaps.
14564         * objects/UML/Makefile.am (libuml_objects_la_SOURCES): add
14565         stereotype.h
14567         * lib/Makefile.am (libdia_a_SOURCES): add diavar.h here.
14569         * app/Makefile.am (dia_core_files): remove splash.h from file
14570         list, as it doesn't exist.
14572         * doc/en/Makefile.am (uninstall-local): remove the docdir on
14573         uninstall.
14575         * doc/Makefile.am (uninstall-local): target to remove the C
14576         symlink.
14578         * dia.spec (%files): include the documentation in the package.
14580         * app/menus.c (toolbox_menu_items): add menu item for manual,
14581         which calls help_manual_callback.
14583         * app/commands.c (help_manual_callback): find help file and load
14584         netscape to view it.
14586         * app/commands.h: add prototype for help_manual_callback()
14588         * doc/Makefile.am (helpdir): similar here.
14590         * doc/en/Makefile.am (helpdir): make the helpdir
14591         $(pkgdatadir)/help/en in the non gnome case.
14593         * configure.in (HAVE_GNOME): add conditional.
14595         * doc/en/Makefile.am: handle the graphics in a more general way,
14596         so it is easier for Kevin to add them to the build (just add them
14597         to the GRAPHICS var).
14599         * app/Makefile.am (embed_extra_print_files): make the case of
14600         building without gnome-print support but with bonobo support work.
14601         dia-embedd needs to be include the gnome-print
14603 2001-03-09  Cyrille Chepelov  <chepelov@calixo.net>
14605         * samples/Makefile.am: included all samples in the distribution....
14606         
14607 2001-03-09  Cyrille Chepelov  <chepelov@calixo.net>
14609         * configure.in: removed premature test for DPS. Added -*- m4 -*-
14610         at the beginning. Made HAVE_UNICODE non-default. po/es_ES.po has
14611         vanished, removed it from ALL_LINGUAS.
14613         * lib/charconv.[ch] (NEW): a very small wrapper around
14614         unicode_iconv to convert strings between utf8 and local charset
14615         (actually, ISO-8859-1, though one can do
14616         CFLAGS="-DEFAULT_8BIT_CHARSET=\"ISO-8859-2\"" and the like).
14618         * lib/ps-utf8.[ch] (NEW): A PostScript Unicoder ; a smallish
14619         library to help build Postscript streams which use as many custom
14620         font encodings as necessary to correctly represent all characters
14621         used (testing from users with non-latin1 and/or more than 256
14622         characters in routine use *very* welcome).
14624         * app/Makefile.am, lib/Makefile.am: integrated these into the
14625         build process.
14627         * shapes/Logic/.cvsignore (NEW): .cvsignore
14628         
14629         * app/render_eps.h: forwarded some changes Lars forgot to include.
14630         * app/render_eps.c: turned off ASCII85 and FILTERS, as this
14631         doesn't yet build.
14633 2001-03-08  Kevin Breit <battery841@mediaone.net>
14635         * doc/en/home_network.png: Added file.
14636         * doc/en/line_props.png: Added file.
14637         * doc/en/usage-objects.sgml: Added two graphics to file.
14638         * doc/en/usage-quickstart.sgml: Added one graphic to file.
14640 2001-03-06  Kjartan Maraas  <kmaraas@gnome.org>
14642         * app/grid.h: Place comment around text after #endif.
14643         * lib/bezier_conn.c: #include <string.h>.
14644         * lib/beziershape.c: #include <string.h>.
14645         * lib/connpoint_line.h: Comment after #endif.
14646         * lib/dia_dirs.c: #include <string.h>.
14647         * lib/element.c: Same.
14648         * lib/lazyprops.c: #include <config.h> and "intl.h".
14649         * lib/lazyprops.h: Comment out text after #endif.
14650         * lib/neworth_conn.c: #include <string.h>
14651         * lib/orth_conn.c: Same here.
14652         * lib/poly_conn.c: Here too.
14653         * lib/polyshape.c: And here.
14654         * lib/properties.c: Remove #include "intl.h" from here and add
14655         an array of static strings to work around bug in gettext that
14656         makes it miss strings in a #define body.
14657         * objects/GRAFCET/action_text_draw.h: Comment out text after #endif.
14658         * objects/GRAFCET/boolequation.h: Same here.
14659         * objects/chronogram/chronoline_event.h: Add prototype for
14660         destroy_cle().
14661         
14662 2001-03-05  Lars Clausen  <Lars R. Clausen <lrclause@cs.uiuc.edu>
14664         * objects/FS/function.c: 
14665         * objects/FS/flow.c: 
14666         * objects/FS/flow-ortho.c: 
14667         Updated to use properties.
14669 2001-03-03  James Henstridge  <james@daa.com.au>
14671         * lib/lazyprops.c (__propdlg_build_enum): translate the radio
14672         button labels when creating them.
14674 2001-02-28  Lars Clausen  <Lars R. Clausen <lrclause@cs.uiuc.edu>
14676         * objects/UML/actor.c
14677         * objects/UML/realizes.c 
14678         * objects/UML/implements.c 
14679         * objects/UML/generalization.c 
14680         * objects/UML/dependency.c 
14681         * objects/UML/constraint.c
14682         Updated to use properties.
14683         
14684         * objects/UML/stereotype.c 
14685         * objects/UML/stereotype.h
14686         Generalized to any kind of bracketting.
14687         
14688 2001-02-28  James Henstridge  <james@daa.com.au>
14690         * app/menus.c: add help entry to the help menu.  Need to get this
14691         working for the non GNOME case as well (maybe put help under
14692         $(datadir)/dia/help for non GNOME?)
14694         * doc/en/topic.dat: add a topic.dat file for GNOME menus.
14696         * doc/en/dia-manual.sgml (legalnotice): add an id attribute to
14697         this element so that we get a meaningful filename in the html
14698         translation.
14700         * doc/Makefile.am, doc/en/Makefile.am: new makefiles to handle the
14701         documentation.
14703         * configure.in (DB2HTML): add a check for the db2html program, and
14704         set an automake conditional if it is found.
14706         * Makefile.am: remove EXTRA_DIST rules that cover doc/ directory,
14707         and descend into doc/ directory while building.
14709         * configure.in (AC_OUTPUT): add doc/ makefiles to output list, now
14710         we need more complex rules for building the docs.
14712 2001-02-25  Hans Breuer  <hans@breuer.org>
14714         * config.h.win32 : some cleanup
14716         * app/prefererences.c : g_scanner_(freeze|thaw)_symbol_table
14717         are deprecated since glib-1.3.2. Sorry needing to use them
14718         contionally, but there is no glib-1.2 for win32
14720         * app/recent_files.c : use g_strescape (params) conditionally
14722         * lib/connection.c : include string.h for memcpy
14724         * lib/geometry.h : added some stuff for compatibility with
14725         msvc, which previously came from included config.h
14727         * lib/libdia.def : updated
14729         * objects/makefile.msc : updated
14731         * objects/GRAFCET/action.c(490) : fixed warning C4700: local variable 
14732         'extra' used without having been initialized
14734         * objects/network/bus.c(658) : initialize 'extra'
14736         * plug-ins/makefile.msc : updated
14738         * plug-ins/cgm/cgm.c :
14739         * plug-ins/pstricks/render_pstricks.c : 
14740         g_free() memory allocated by dia_image_rgb_data(). Plugs possibly 
14741         huge memory leaks.
14743         * plug-ins/python/python.c : use HAVE_DIRENT_H
14745 2001-02-23  Lars Clausen  <Lars R. Clausen <lrclause@cs.uiuc.edu>
14747         * lib/connection.c (connection_update_boundingbox): 
14748         Made the BB shrink on right and lower sides, too.
14750 2001-02-23  Kjartan Maraas  <kmaraas@gnome.org>
14752         * */*.c: #incude <config.h> at the top.
14753         * */*.h: Remove include of "config.h" since it should only
14754         be included in .c files and at the very top for things to
14755         work.
14756         * sheets/*.sheet: Updated Norwegian translations.
14757         
14758 2001-02-22  Lars Clausen  <Lars R. Clausen <lrclause@cs.uiuc.edu>
14760         * objects/UML/small_package.c: 
14761         * objects/UML/class.c: 
14762         * objects/UML/node.c: 
14763         * objects/UML/usecase.c:
14764         * objects/UML/lifeline.c: 
14765         * objects/UML/message.c:
14766         Various cleanup of properties in particular.  Now much more use of
14767         standard properties.
14769         * lib/diagramdata.c (layer_render): Visualization of bounding
14770         boxes, for debugging purpoises.
14772 2001-02-22  Cyrille Chepelov  <chepelov@calixo.net>
14774         * lib/geometry.h:
14775         * lib/connection.[ch]:
14776         * lib/poly_conn.[ch]:
14777         * lib/polyshape.[ch]:
14778         * lib/bezier_conn.[ch]:
14779         * lib/beziershape.[ch]:
14780         * lib/orth_conn.[ch]:
14781         * lib/neworth_conn.[ch]:
14782         * lib/element.[ch]: Changed a bit the _update_boundingbox()
14783         interface. Now the parent elements have an extra_spacing
14784         structure, which child objects just need to fill, to take care of
14785         most arrow & line width extra space needs.
14787         * objects/**/*.c: updated all objects to the new interface.
14788         While at it, killed all instances of (Object *) downcasts (phew !)
14790         * objects/GRAFCET/condition.c: removed the arrowhead, which IEC848
14791         doesn't speak about.
14792         
14793 2001-02-21  Lars Clausen  <Lars R. Clausen <lrclause@cs.uiuc.edu>
14795         * sheets/Logic.sheet: New sheet for Logic symbols.
14797 2001-02-21  James Henstridge  <james@daa.com.au>
14799         * app/menus.c (dia_gnome_menu_get_widget): new function to find a
14800         widget by its path name.  Walks the GnomeUIInfo heirachy rather
14801         than widget tree, compares untranslated label names and ignores
14802         underscores in the labels.
14803         (menus_get_item_from_path): use dia_gnome_menu_get_widget so that
14804         lookups are not dependent on the current locale, as with
14805         gnome_app_find_menu_pos.
14807         * acconfig.h: guard against multiple inclusion of config.h.
14809         * app/select.c (select_style_callback): simply set the selection
14810         style to the value of action.
14812         * app/menus.c (menus_init): simplify the item factory based menu
14813         code a bit.  It looks like it was using some code cut and pasted
14814         from the gimp, which looked a bit unnecessary.  Things work fine
14815         without it.
14816         (selectmenu): set the action to the type of selection mode
14817         requested.
14818         (display_menu_items): use the symbolic enumeration values for the
14819         action field.
14821         * app/plugin-manager.c: 
14822         * app/plugin-manager.h: 
14823         * app/filedlg.c:
14824         * app/filedlg.h: 
14825         * app/select.c:
14826         * app/select.h: change prototypes.
14828         * app/commands.c: update all callback prototypes, and get rid of
14829         some #ifdef GNOME's.
14831         * app/commands.h: change function prototypes.
14833         * app/dia_embedd.c (save_fn):
14834         s/ex_Bonobo_IOError/ex_BonoboStorage_IOError/
14836         * app/menus.c (menus_init): for gnome menus, use
14837         gnome_app_fill_menu_custom and pass in a GnomeUIBuilderData
14838         structure that proxies the callbacks to have the same signature as
14839         GtkItemFactory type 1 callbacks.
14840         (menus_init): for GTK menus, change from callback type 2 to type
14841         1.
14842         (display_menu_items): add back tearoffs.  I don't know who removed
14843         these for the gtk menu case.
14845 2001-02-20  Kevin Breit <battery841@mediaone.net>
14847         * doc/en/usage-objects-special.sgml: Fixed a few of the special
14848         object descriptions.  More to come in the next few days.
14850 2001-02-20  Lars Clausen  <lrclause@cs.uiuc.edu>
14852         * app/render_eps.c: Fixed for internationalized floating point
14853         output. 
14855         * objects/UML/note.c: Fixed properties -- was missing
14856         Get/ApplyPropertiesFunc.  Also improved update to recalculate text
14857         position. 
14859 2001-02-19  Lars Clausen  <lrclause@cs.uiuc.edu>
14861         * plug-ins/xfig/xfig-import.c: 
14862         File added importing xfig files.  Still very rough, but good
14863         enough to let others hack on it.
14865 2001-02-07  Cyrille Chepelov  <chepelov@calixo.net>
14867         * app/interface.c:
14868         * app/linewidth_area.c:
14869         * lib/lazyprops.c:
14870         * lib/properties.c:
14871         * lib/widgets.c:
14872         * objects/ER/attribute.c:
14873         * objects/ER/entity.c:
14874         * objects/ER/relationship.c:
14875         * objects/custom/custom_object.c:
14876         * objects/flowchart/box.c:
14877         * objects/flowchart/diamond.c:
14878         * objects/flowchart/ellipse.c:
14879         * objects/flowchart/parallelogram.c:
14880         * objects/standard/box.c:
14881         * objects/standard/textobj.c: per Vlad Harchev's request, made
14882         page sizes of gtk_adjustments different than their step sizes.
14883         When sensible values of page size weren't found (overwhelming
14884         majority of cases), page sizes were set to 10.0 * respective step
14885         size.   
14887 2001-02-07  Lars Clausen  <lrclause@cs.uiuc.edu>
14889         * objects/network/hub.c: 
14890         Patch from Hubert Figuiere applied, adding connection points.
14892 2001-02-02  James Henstridge  <james@daa.com.au>
14894         * app/display.c (new_display): set update id to 0 here.
14895         (ddisplay_update_handler): rename from ddisplay_flush, and set
14896         update_id to 0 at end of processing.
14897         (ddisplay_flush): new implementation that simply sets an idle
14898         handler to perform the actual drawing.
14900         * app/display.h: add structure member to hold the redraw idle
14901         handler id.
14903 2001-01-31  Lars Clausen  <lrclause@cs.uiuc.edu>
14905         * objects/standard/ellipse.c (ellipse_copy): 
14906         * objects/standard/zigzagline.c (zigzagline_copy): 
14907         Fix of copying provided by Martin Hawlisch.
14909 2001-01-23  Kevin Breit <battery841@mediaone.net>
14911         * doc/en/graphics/: added directory
14913         * doc/en/graphics/greendots.png: added file
14915         * doc/en/*sgml: made minor and some major changes to prepare for 1.4
14916         release.
14918 2001-01-23  Kevin Breit <battery841@mediaone.net>
14920         * doc/en/*sgml: made some grammar changes and fixed a few markup bugs.
14921                         thanks to John Fleck!
14923 2001-01-21  Kevin Breit <battery841@mediaone.net>
14925         * doc/en/*sgml: made just minor changes to a few lines; nothing major.
14927 2001-01-12  Michael Meeks  <michael@helixcode.com>
14929         * app/dia_embedd.c (init_server_factory): do a bonobo_activate
14930         so our POA gets setup properly.
14932         * app/paginate_gnomeprint.c (paginate_gnomeprint): g_free
14933         things we g_malloc.
14935         * configure.in: Use bonobox_print.
14937         * app/dia_embedd.c (embeddable_factory): add print interface.
14938         (object_print): impl.
14940 2001-01-11  Michael Meeks  <michael@helixcode.com>
14942         * app/dia_embedd.c (embeddable_factory): aggregate PersistFile.
14943         (load_fn, save_fn): impl.
14944         (view_factory): hide modified status bar, & use activate fn.
14945         (refresh_view): force redraws of the views.
14946         (view_show_hide): split from
14947         (dia_view_activate): here.
14949         * app/diagram.c (diagram_load_into): split from diagram_load.
14950         (new_diagram): simplify bu splittin stuff into
14951         (diagram_init): here.
14953 2001-01-10  Steffen Macke <sdteffen@yahoo.com>
14955         * shapes/jigsaw/*.shape: replaced #000000 with foreground
14956         and #ffffff with background
14957         
14958 2001-01-08  Steffen Macke <sdteffen@yahoo.com>
14960         *configure.in: GTK+-build was broken due to missing
14961         have_bonobo=no
14962         
14963 2001-01-06  Michael Meeks  <michael@helixcode.com>
14965         * app/dia_embedd.c (main): add running context support.
14966         (dia_embeddable_destroy): remove old running object counting.
14967         (embeddable_factory): ditto.
14968         (view_factory): comment out menu path hiding.
14970         * lib/sheet.c (load_register_sheet): use free to free
14971         stuff from libxml not g_free.
14973         * acconfig.h: kill cover for USE_BONOBOX and USE_OAF
14975         * configure.in: remove USE_OAF checks, check for a precice
14976         Bonobo version >= 0.31, revamp bits.
14978         * app/dia_embedd.c (init_server_factory): upd.
14979         (init_dia_factory): remove OAF conditionals, everything uses
14980         oaf now.
14982         * app/GNOME_Dia.oafinfo: rename OAFIIDs
14984         * app/Makefile.am: remove ancient gnorba code.
14985         rename dia.oafinfo to GNOME_Dia.oafinfo
14987 2001-01-07  Hans Breuer <Hans@Breuer.Org>
14989         * config.h.win32
14990         * install.win32
14991         * readme.win32 : some more files required or useful to build 
14992         Dia on win32
14994         * plug-ins/wmf/wmf.cpp : fixed open issues like fill_arc and
14995         fill_bezier implementation, boundary drawing in fill mode, etc.
14996         Next one complaining gets the source, uncommented ...
14998         * shapes/network/router-symbol.xpm 
14999         * shapes/network/switch-atm-symbol.xpm 
15000         * shapes/network/switch-symbol.xpm : removed "-*- picture -*- "
15001         from /* XPM */ header, cause it stopped Dia/gdk_pixbuf to detect 
15002         the files as XPMs. Maybe the X versions of these functions are more
15003         tolerant ...
15005 2001-01-06  Steffen Macke <sdteffen@yahoo.com>
15007         * plug-ins/python/Makefile.am: added libart path
15009         * plug-ins/python/python.c: added dirent.h
15011         * configure.in: added es_ES and pt_BR to ALL_LINGUAS
15012         
15013 2001-01-06  Hans Breuer <Hans@Breuer.Org>
15015         * objects/uml/actor.c
15016         * objects/uml/branch.c
15017         * objects/uml/class.c
15018         * objects/uml/classicon.c
15019         * objects/uml/component.c
15020         * objects/uml/large_package.c
15021         * objects/uml/node.c
15022         * objects/uml/note.c
15023         * objects/uml/object.c
15024         * objects/uml/small_package.c
15025         * objects/uml/state.c
15026         * objects/uml/usecase.c : started to implement the generic property
15027         interface for the uml objects. Would appreciate some help on how
15028         to implement properties which are list of properties themselves,
15029         e.g. member functions and their parameters of UMLClass.
15031 2001-01-06  Hans Breuer <Hans@Breuer.Org>
15033         * plug-ins/python/diamodule.c : finally ported to win32.
15034         Added new objects and implemented register_export function.
15036         * plug-ins/python/pydia-object.h
15037         * plug-ins/python/pydia-display.c
15038         * plug-ins/python/pydia-handle.c
15039         PyObject_HEAD_INIT needs some tweakink on win32. Done in
15040         pydia-object.h; others files simply using it.
15042         * plug-ins/python/pydia-layer.c : reflect 
15043         layer_find_closest_connection(_)point renaming
15045         * plug-ins/python/pydia-object.c : add property properties.
15046         Also change bounding_box to DiaRectangle.
15048         * plug-ins/python/python.c : extended error reporting; use
15049         all *.py files from Dia's plug-in dir instead of hardcoded
15050         test.py. This sollution should be fine with Win32, but on
15051         Unix it may need some tweaking (dunno) ...
15053         * plug-ins/python/export-object.py
15054         * plug-ins/python/export-render.py : test and documentation 
15055         implementations for export filter implementations in Python
15057         * plug-ins/python/pydia-color.[hc]
15058         * plug-ins/python/pydia-diagramdata.[hc]
15059         * plug-ins/python/pydia-error.[hc]
15060         * plug-ins/python/pydia-export.[hc]
15061         * plug-ins/python/pydia-font.[hc]
15062         * plug-ins/python/pydia-geometry.[hc]
15063         * plug-ins/python/pydia-image.[hc]
15064         * plug-ins/python/pydia-properties.[hc]
15065         * plug-ins/python/pydia-property.c
15066         * plug-ins/python/pydia-render.c : new objects in new files 
15068         * plug-ins/python/makefile.am : added new files but can't test it
15070         * plug-ins/python/pydia.def
15071         * plug-ins/python/makefile.msc : for win32 build
15073         * plug-ins/cgm/cgm.c
15074         * plug-ins/dxf/dxf-import.c
15075         * plug-ins/dxf/dxf-export.c
15076         * plug-ins/hpgl/hpgl.c : reflect export API change
15078         * plug-ins/shape/shape-export.c : reflect export API change
15079         and check for libart (better the availibility of a png exporter) 
15080         at run-time instead of compile-time. 
15082 2001-01-06  Steffen Macke <sdteffen@yahoo.com>
15084         * app/recent_files.h was missing from Hans's commit
15086         * plug-ins/shape/shape_export.c: shape export was broken
15087         due to interface changes
15088         
15089 2001-01-05  Hans Breuer <Hans@Breuer.Org>
15091         Applied Steffen's recent file list patch :
15092         * app/Makefile.am : added recent_files.[hc]
15093         * app/diagram.c : add files to recent file list
15094         * app/menus.c : add recent file menu
15095         * app/app_procs.c : changed initialization order to
15096         make recent file list work with command line processing.
15098         The Filter export()/import() functions have got an additional 
15099         parameter to allow multiple filters via one C callback (required
15100         for Python bindings)
15102         * app/commands.[hc] : corrected the signature for gtk menu callback
15103         functions, which actually use the second or third parameter. This
15104         is the absolute minimum change to make these functions/menu entries
15105         work again. Using the other possible gtk menu callback signature
15106         would have required one more function to change. (see mailing list
15107         thread "Objects/Align/Equal Distance" for more information.
15109         * app/disp_callbacks.c : applied Gustavo J.A.M. Carneiro's
15110         zoom-combo focus patch
15112         * app/display.c
15113         * app/interface.c : wrapped the Zoom Combo code into 
15114         #ifndef WITHOUT_ZOOM_COMBO because IHMO it isn't an useabilty
15115         improvement but cluttering the user interface. Also it wasn't
15116         compiling on Win32 anyway. The win32 version does define 
15117         WITHOUT_ZOOM_COMBO to keep the old look. 
15118         There are plans to use the statusbar to display size and placement
15119         of selected objects, whereas the Zoom Combo would need to get out
15120         of the way as well.
15122         Added "Save Changes?" to diagram close dialog. Hopefuly the
15123         Yes/No/Cancel option isn't too much windoze like. IHMO this is
15124         an useability improvement.
15126         * app/export_png.c
15127         * app/filedlg.c
15128         * app/load_save.c
15129         * app/layer_dialog.c
15130         * app/paginate_psprint.c
15131         * app/render_eps.c
15132         - reflect signature changing of filter->export function
15133         - replaced '/' with G_DIR_SEPARARTOR where appropriate
15135         * app/diaunitspinner.c
15136         * app/render_libart.c
15137         added misssing headers like <string.h>
15139         * app/object_ops.c : fixed copy&paste bug in dialog string
15141         * app/splash.c : gdk_widget_show_now () does not ensure actual
15142         drawing of the splash screen, at least not on win32. Reuse the
15143         previous implementation with gtk_main_iteration() again.
15145         * */makefile.msc : make use of the build module (available in
15146         gnome-cvs/build. Updated for other source changes
15148         * lib/filter.h : added an user_data pointer to <ex/im>port()
15149         function signature and Dia<Im/Ex>portFilter to allow different
15150         filters to reuse the same callback function
15152         * lib/font.c : #include <string.h>
15154         * lib/orth_conn.c 
15155         * lib/poly_conn.c 
15156         * lib/poly_shape.c 
15157         * lib/neworth_conn.c
15158         * lib/text.c : don't mix allocator functions (g_)realloc, free, ...
15160         * */*.def : export function definition files required by win32 build
15162         * objects/custom/custom.c : #include <string.h>
15164         * plug-ins/pstricks/render_pstricks.c
15165         * plug-ins/shape/shape_export.c
15166         * plug-ins/svg/render_svg.c
15167         reflect changes to filter export function signature
15169         * plug-ins/wmf/wmf.cpp : fixed indent and scaling. It now should
15170         mostly work as expected
15171         * plug-ins/wmf/wmf_gdi.[hc] : Updated comment. Still not used
15172         to build the wmf plug-in because on the one hand the GDI emulation 
15173         isn't finished and on the other hand it isn't required when building
15174         for win32. Is there anybody out there, who wants to save WMF on non
15175         windoze platforms ?
15177         * plug-ins/wpg/wpg.cpp : fixed scaling to take axis dependent
15178         offset into account.
15180 2001-01-02  Steffen Macke <sdteffen@yahoo.com>
15182         * app/Makefile.am: added missing plug-ins to run_dia.sh
15184         * lib/paper.c: added paper sizes A0, A1, A2
15186         * objects/UML/class.c
15187         objects/UML/class.h
15188         objects/UML/class_dialog.c: added support for colored UML
15189         classes
15190         
15191 2000-12-30  Kevin Breit <battery841@mediaone.net>
15193         * doc/en/usage-customization.sgml: added more content
15195 2000-12-24  Kevin Breit <battery841@mediaone.net>
15197         * doc/en/usage-layers.sgml: added file, contributed by Remypsb
15198         <remy.viard@laposte.net>
15200 2000-12-24  Steffen Macke <sdteffen@yahoo.com>
15202         * added limiting lines to Civil Engineering sheet,
15203         fixed vertical pump icon
15204         
15205 2000-12-20  Steffen Macke <sdteffen@yahoo.com>
15207         * updated/additional Civil Engineering shapes: better icons,
15208         shapes use foreground/background colors now and are filled
15209         
15210 2000-12-03  Kevin Breit  <battery841@mediaone.net>
15212         * doc/en/dia-manual.sgml Integrated a few diffs.  New section should be
15213         the selection <sect1>
15215 2000-11-29  Fredrik Hallenberg  <hallon@lysator.liu.se>
15217         * app/load_save.c (diagram_data_save): avoid using obsoleted
15218         libxml calls (only matters when compiling with libxml2)
15220 2000-11-25  James Henstridge  <james@daa.com.au>
15222         * app/disp_callbacks.c (ddisplay_drop_object): add a function to
15223         handle the tool drops on the canvas.
15225         * app/interface.c (display_data_received_callback): do the check
15226         to make sure that the drag is from a local toolbox here as well.
15228         * app/interface.c (create_tools): unref the pixmap/mask after
15229         creating the GtkPixmap.
15230         (tool_setup_drag_source): function to set up a drag source for
15231         create object tool buttons.
15232         (create_tools): setup drag source for CREATE_OBJECT_TOOL's.
15233         (fill_sheet_wbox): same here.
15234         (create_display_shell): set up the display canvas as a drag
15235         destination.
15236         (display_drop_callback, display_data_received_callback): functions
15237         to handle drops of tool buttons.
15239         * app/menus.c (menus_init): don't use gnome_popup_menu_new().  It
15240         does weird shit to the user_data pointer for a menu item.  Object
15241         alignment should work again now.
15243         * app/splash.c (get_logo_pixmap): don't unref the bitmap if it is
15244         NULL, and mark this function static.
15245         (app_splash_init): use gtk_widget_show_now() instead of the
15246         gtk_main_iteration loop.
15247         (app_splash_init): connecting gtk_widget_destroy to the destroy
15248         signal of a widget seems pretty useless.
15250 2000-11-23  Kevin Breit <battery841@users.sourceforge.net>
15252         * doc/en/dia-manual.sgml:
15253                 Added sect1 for advanced object types.  Starting development
15254                 on that part.
15256 2000-11-18  Kevin Breit <battery841@mediaone.net>
15258         * doc/en/dia-manual.sgml:
15259                 Stupid spelling fixes.
15261 2000-11-18  Kevin Breit <battery841@mediaone.net>
15263         * doc/en/dia-manual.sgml:
15264                 Just some small changes I made.  Props to Greg LeBlanc on the
15265                 recommendations.
15267 2000-11-17  Alexander Larsson  <alla@lysator.liu.se>
15269         * app/display.c:
15270         (ddisplay_add_display_area): Clip input rectangle to
15271         the visible part of the display.
15272         (ddisplay_scroll): Optimization, don't scroll and
15273         redraw if moving to the same position as before.
15275         * app/render_libart.c (renderer_libart_copy_to_window):
15276         Removed sanity check. Now moved to ddisplay_add_display_area().
15278         * lib/diavar.h:
15279         Added return at end of file.
15280         
15281 2000-11-13 Kevin Breit <battery841@mypad.com>
15282         * doc/en/dia-manual.sgml
15283                 Commited manual changes from Henry House <hajhouse@houseag.com>
15285 2000-10-21 Hans Breuer <Hans@Breuer.Org>
15286         * lib/beziershape.c :
15287                 The previous code was accessing unowned memory due to IHMO
15288                 wrong index calculation. Now it appears to be fixed.
15289                 *Please Review!*
15291         * lib/makefile.msc
15292         * plug-ins/makefile.msc
15293         * objects/makefile.msc
15294         * app/makefile.msc: (new files)
15295                 Makefiles for Dia on Win32, Micro$oft VC only.
15297         * plug-ins/pstricks/render_pstricks.c
15298         * plug-ins/dxf/dxf-import.c
15299         * plug-ins/shape/shape-export.c
15300         * plug-ins/svg/render_svg.c
15301         * app/commands.c
15302         * app/filedlg.c
15303         * app/preferences.c
15304         * app/render_eps.c
15305         * lib/sheet.c
15306         * lib/plug-ins.c
15307         * objects/custom/custom.c
15308         * objects/standard/image.c
15309                 portability (not only win32): use HAVE_UNISTD_H, HAVE_DIRENT_H 
15310                 where   appropriate, add missing prototypes like <string.h>
15312         * plug-ins/wmf/wmf_gdi.cpp
15313         * plug-ins/wmf/wmf_gdi.h:
15314                 start of wmf write functions for non Win32 platform. Not 
15315                 finished yet. The other way to get it working maybe to
15316                 link the plug-in against wine libs.
15317                 
15318         * plug-ins/wpg/wpg.c : add missing brace
15320         * app/load_save.c :
15321                 Handling for unknown objects at load time. Previously Dia
15322                 was crashing, if you try to load a file referencing objects
15323                 whiches plug-ins aren't installed/available. Now it spits out 
15324                 a warning and ignores the unknown objects.
15326         * app/interface.c
15327                 toolbox DND support for files like The Gimp does it.
15329         * app/main.c
15330         * app/app_procs.h
15331                 Simple splash screen support and usage.
15333         * app/app_procs.c
15334                 Splash screen, portability fixes, dont' g_error if there is
15335                 g_get_homedir return NULL. This may remove the one and only
15336                 FAQ for Win32.
15338         * app/menus.c :
15339                 Make it compile without ENABLE_NLS
15341         * app/render_libart.c :
15342                 Sanity check to avoid calling libart with wrong window coordinates.
15343                 They come from the update handler. Direct Gdk is dealing nicely
15344                 with coordinates out of range, libart does access un-owned memory
15345                 in this case, mostly causing crashes.
15347         * app/winmain.c: (new file) Export the Win32 Gui version of the
15348                 main function. This file is only required for Windoze.
15350         * app/splash.c: (new file) splash screen implementation
15352         * lib/color.h
15353         * lib/font.h
15354         * lib/diavar.h: (new file)
15355                 moved special variable export code to diavar.h, because it is
15356                 needed in color.h and font.h
15358         * lib/paper.c :
15359                 M$VC cann't export inlined functions. Quick hack to let it
15360                 link again. Probably the glib mechanics should be used here?
15362         * objects/UML/lifeline.c : initialize var before usage
15364         * objects/GRAFCET/step.c : removed unused var
15366 2000-10-14  James Henstridge  <james@daa.com.au>
15368         * app/render_gnomeprint.c (draw_image): change code so images
15369         don't get flipped when printing.
15371         * app/paginate_gnomeprint.c (diagram_print_gnome): check to make
15372         sure that the return value of
15373         gnome_print_context_new_with_paper_size is not NULL.
15375         * app/render_gnomeprint.c (draw_arc): add code to convert arcs
15376         into a series of bezier segments.
15377         (fill_arc): similar code to handle filled arc segments.
15379 2000-10-12  Fredrik Hallenberg  <hallon@lysator.liu.se>
15381         * app/app_procs.c
15382         * app/commands.c
15383         * app/dia-props.c
15384         * app/diagram.c
15385         * app/diagram.h
15386         * app/disp_callbacks.c
15387         * app/display.c
15388         * app/linewidth_area.c
15389         * app/paginate_psprint.c
15390         * app/preferences.c
15391         * app/undo.c
15392         * app/font.c
15393         * app/message.c
15394         * app/neworth_conn.c
15395         * app/orth_conn.c
15396         * objects/standard/box.c: various small changes to get rid of 
15397         annoying warnings (eg faulty prototypes and unused variables)
15399         * app/disp_callbacks.c
15400         * app/cursor.h
15401         * app/magnify.c
15402         * app/magnify.h: update magnify tool icon when pressing/releasing
15403         shift. I will try to make something more general so that similar
15404         things can be used by other tools.
15406         * shapes/SDL/inout.shape
15407         * shapes/SDL/return.shape: fixed some typos
15409 2000-10-09  James Henstridge  <james@daa.com.au>
15411         * objects/custom/shape_info.c (parse_path): apply patch from
15412         Robert Young <robertdotyoung@dsto.defence.gov.au> to fix bug
15413         #25221
15415 2000-10-08  James Henstridge  <james@daa.com.au>
15417         * objects/standard/image.c (image_set_props): if the file could not
15418         be loaded, show the broken image icon.
15420         * plug-ins/Makefile.am (SUBDIRS): add shape to the subdirs list.
15422         * plug-ins/shape/*: the shape export plugin by Steffen Macke.
15424         * app/interface.c (fill_sheet_wbox): use gdk-pixbuf to load the
15425         object icon when loading from a file.  This allows you to have PNG
15426         icon files for shapes.
15428 2000-10-07  James Henstridge  <james@daa.com.au>
15430         * app/Makefile.am (dia_LDADD): remove GDK_IMLIB_LIBS reference.
15432         * lib/Makefile.am, app/Makefile.am (INCLUDES): remove
15433         GDK_IMLIB_CFLAGS reference.
15435         * app/commands.c (help_about_callback): remove imlib code.
15437         * lib/dia_image.c: only include the pixbuf version of the image
15438         routines.
15440         * acconfig.h: remove the HAVE_GDK_PIXBUF flag from here.
15442         * configure.in (CPPFLAGS): remove the check for imlib, as we now
15443         require gdk-pixbuf.
15445         * plug-ins/pstricks/render_pstricks.c (new_pstricks_renderer):
15446         conditionally define \setfont as well.
15448 2000-10-05  James Henstridge  <james@daa.com.au>
15450         * plug-ins/pstricks/render_pstricks.c (new_pstricks_renderer): fix
15451         preamble so that we define \setlinejoinmode and \setlinecaps
15452         commands conditionally on them being undefined.  This way, the
15453         pstricks output files should work without modification, and will
15454         support the commands when they are implemented in pstricks.
15456 2000-10-05  Szabolcs Ban  <shooby@gnome.hu>
15458         * dia.desktop: added hungarian translations to dia.desktop
15460 2000-10-04  James Henstridge  <james@daa.com.au>
15462         * sheets/UML.sheet: fix typo.
15464         * objects/custom/shape_info.c: use strtod instead of g_strtod.
15465         (parse_path): actually call setlocale around strtod calls.
15467         * lib/dia_xml.c: use strtod rather than g_strtod.  We wrap each
15468         call in setlocale(LC_NUMERIC, "C"), so there is no reason to call
15469         the g_strtod wrapper.
15471         * shapes/SDL/: add SDL shapes from Rubens Ramos
15472         <rubens_ramos@yahoo.com>
15474         * acinclude.m4 (DIA_CHECK_CFLAG): fix up macro.
15476         * sheets/Makefile.am (SHEETS): add SDL.sheet to list.
15478         * shapes/MSE/: add Mobile Subscriber Equipment shapes from
15479         W. Michael Petullo <mike@flyn.org>.
15481         * sheets/Makefile.am (SHEETS): add civil.sheet (which got missed
15482         from the 0.86 tarball) and jigsaw.sheet.
15484         * configure.in: add shapes/jigsaw/Makefile to list of generated files.
15486         * shapes/jigsaw/: jigsaw shapes from Martin Hawlisch.
15488         * shapes/network/: add network-additional shapes here.
15490         * sheets/network.sheet: add the network-additional shapes from
15491         Martin Hawlisch <Martin.Hawlisch@bflow.com> to the main network
15492         sheet.
15494 2000-09-30  Fredrik Hallenberg  <hallon@lysator.liu.se>
15496         * configure.in: Updated ALL_LINGUAS
15498         * po/nl.po: Removed newline from translation
15500 2000-09-17  Asbjorn Pettersen  <asbjornP@dualog.no>
15502         * app/commands.c (help_about_callback): Use G_DIR_SEPARATOR_S in 
15503         logo filename generation. 
15505         * lib/dia_dirs.c (dia_get_data_directory): Handle empty subdir better.
15506         Avoiding "//dia_logo.png".
15508 2000-09-16  Asbjorn Pettersen  <asbjornP@dualog.no>
15510         * app/filedlg.c: add include <sys/types.h> to
15511         remove warning. (OS/2)
15513 2000-09-13  Cyrille Chepelov <chepelov@calixo.net>
15515         * objects/chronogram/chronoline_event.c (reparse_clevent):
15516         the __checksum routine was simply bogus. Redone it in a slightly
15517         saner way (reported by Michael Farr <mfarr@cs.latrobe.edu.au>).
15519 2000-09-10  Asbjorn Pettersen  <asbjornP@dualog.no>
15521         * app/create_object.c (create_object_button_press): 
15522         * app/modify_tool.c (click_select_object): 
15523         * lib/object.h: select renamed to selectf to prevent
15524         compiler problems with function select().  OS/2 version.
15526 2000-09-08  Karsten Weiss  <knweiss@gmx.de>
15528         * po/de.po: Updated.
15530 2000-09-07  Karsten Weiss  <knweiss@gmx.de>
15532         * dia.desktop: Added German translation
15533         * app/menus.c: "Diagram Propeties..." -> "Diagram Properties..."
15535 2000-08-29  Manuel de Vega Barreiro <barreiro@arrakis.es>
15537         * configure.in (ALL_LINGUAS): added "es"
15539 2000-08-28  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
15541         * app/magnify.c:
15542         * app/cursor.h:
15543         * app/cursor.c:
15544         * app/scroll_tool.c:
15545         Standardized cursor function get_cursor().  Magnify now has
15546         looking-glass cursor with + and -.
15548         * app/create_object.c (create_object_button_press): 
15549         Newly created connections now snap to connection points even when
15550         off the grid. 
15552 2000-08-17  Daniel Egger  <egger@suse.de>
15554         * app/menus.c: #ifdef'ed some code for the none GNOME
15555         case.
15556         * app/dia_embedd.c: Changed obvious hackery. Can anyone
15557         please have a look at the GNOME UI menu creation? The
15558         gnome-app-helper code is ages old and plainly broken!
15560 2000-08-15  Daniel Egger  <egger@suse.de>
15562         * app/commands.c:
15563         * app/commands.h:
15564         * app/diagram.c:
15565         * app/display.c:
15566         * app/menus.c:
15567         * app/select.c: First big patch to get the menus
15568         working again in the international version. Copied
15569         some code written by Sven and me from GIMP and
15570         thus implemented automatic tearoffmenu creation and
15571         proper translation. I also removed that pseudo
15572         radiomenu hack and cleaned up several translation
15573         hacks which have never really worked. All in all
15574         this is part I of the big menu patch. Enjoy and tell
15575         me if you detect any problems.
15577 2000-08-14  Daniel Egger  <egger@suse.de>
15579         * sheets/UML.sheet: Changed one German translation as
15580         suggested by Heribert Schuetz <hs@heribert-schuetz.de>.
15582 2000-08-10  Fredrik Hallenberg  <hallon@lysator.liu.se>
15584         * app/diapagelayout.c:
15585         * lib/diagramdata.c:
15586         * lib/diagramdata.h:
15587         * lib/Makefile.am:
15588         * lib/paper.c:
15589         * lib/paper.h: honour PAPERCONF env variable and /etc/papersize when
15590         selecting paper size for a new diagram. TODO: Use libpaper if 
15591         available and use gnome_paper-stuff if using GNOME.
15593         * sheets/Electric.sheet: fixed typo.
15594         
15595 2000-08-08  James Henstridge  <james@daa.com.au>
15597         * po/README: added a readme file to tell translators to translate
15598         the .sheet files as well.
15600         * app/commands.c (help_about_callback): fix small bug where we tried
15601         to gdk_bitmap_unref() the mask for the about box image, even though
15602         it was NULL.  Now check for a NULL mask.
15604 2000-08-07  Daniel Egger  <egger@suse.de>
15606         * sheets/*.sheet: Added translations for the name
15607         in the toolbar tab. Brushed up some descriptions 
15608         and some translations a bit.
15610 2000-08-06  James Henstridge  <james@daa.com.au>
15612         * plug-ins/svg/render_svg.c (new_svg_renderer): update public
15613         identifier and dtd url for SVG output.
15614         (new_svg_renderer): fix the output of the viewBox output.  The
15615         second two numbers are the width and height -- not the right
15616         and bottom sides of the box.
15618         * shapes/*/*.shape: update svg namespace URI.
15620         * objects/custom/shape_info.c (load_shape_info): change the
15621         namespace URI for custom shapes yet again to match the Candidate
15622         Recommedation.  It looks like this one will probably be the final
15623         one.
15625         * app/display.c (new_display): remove the code that sets ic and
15626         ic_attr members to NULL, as one of the previous function calls
15627         causes the display to be realised.  This means that the ic gets
15628         lost.  Thanks to Yukihiro Nakai <ynakai@redhat.com> for finding
15629         this one.
15631 2000-08-06  James Henstridge  <james@daa.com.au>
15633         * shapes/Makefile.am (SUBDIRS): add Civil back to list.
15635         * NEWS: fixed date in NEWS file, as I will release today.
15637         * README: updated the README a little.  Added note that Dia is now
15638         a GNU program.
15640         * dia.spec: fix up spec file.
15642         * plug-ins/wpg/wpg.c: changed DIAG_NOTE stuff here as well.
15644         * plug-ins/hpgl/hpgl.c: change Hans's DIAG_NOTE stuff so that we don't
15645         get heaps of warnings when you turn off debugging.
15646         Also made a few other warning fixes.
15648 2000-08-02  James Henstridge  <james@daa.com.au>
15650         * plug-ins/svg/Makefile.am (INCLUDES): add XML_CFLAGS to INCLUDES.
15652         * configure.in: update version number.
15654 2000-08-01  James Henstridge  <james@daa.com.au>
15656         * app/commands.c (help_about_callback): add Hans to about dialog.
15658         * doc/shape.dtd: dtd for shape file format.
15660         * doc/custom-shapes: update doc file about creating custom shapes.
15662         * shapes/*/*.shape: change namespace URI for the SVG portion to the
15663         one for the latest draft.
15665         * shapes/*/*.shape: fix up rect definitions.
15667         * objects/custom/shape_info.c (load_shape_info): recognise newer
15668         namespace tag for SVG.
15669         (parse_svg_node): the rect element should take attributes x, y, width
15670         and height -- not x1,y1,x2,y2.
15672         * plug-ins/svg/render_svg.c (new_svg_renderer): updated doctype
15673         output to use the newest draft DTD.
15675         * plug-ins/svg/svg.c: initialisation code for plugin.
15677         * plug-ins/svg/render_svg.c: move svg export code to a plugin.
15679         * plug-ins/svg/Makefile.am: makefile for svg plugin.
15681         * app/app_procs.c (internal_plugin_init): don't register the svg
15682         export filter here.
15684         * app/Makefile.am (dia_core_files): don't compile in render_svg.[ch]
15686 2000-07-31  James Henstridge  <james@daa.com.au>
15688         * objects/standard/textobj.c (textobj_get_defaults): 
15689         * objects/standard/polygon.c (polygon_get_defaults): 
15690         * objects/standard/image.c (image_get_defaults): 
15691         * objects/standard/ellipse.c (ellipse_get_defaults): 
15692         * objects/standard/box.c (box_get_defaults): 
15693         * objects/standard/beziergon.c (beziergon_get_defaults): 
15694         * objects/flowchart/parallelogram.c (pgram_get_defaults): 
15695         * objects/flowchart/ellipse.c (ellipse_get_defaults): 
15696         * objects/flowchart/diamond.c (diamond_get_defaults): 
15697         * objects/flowchart/box.c (box_get_defaults): 
15698         * objects/custom/custom_object.c (custom_get_defaults): 
15699         * objects/FS/flow.c (flow_get_defaults): 
15700         * objects/FS/flow-poly.c (flow_get_defaults): 
15701         * objects/FS/flow-ortho.c (orthflow_get_defaults): ref and sink the
15702         defaults widget.
15704         * app/defaults.c (defaults_show): don't keep on ref'ing the defaults
15705         widgets for various object types.
15706         (create_dialog): ref and sink the no_defaults_dialog.
15708         * app/preferences.c (prefs_create_dialog): change
15709         gtk_container_border_width call to gtk_container_set_border_width.
15711 2000-07-29  James Henstridge  <james@daa.com.au>
15713         * app/commands.c (view_aa_callback): show a warning dialog if
15714         you start AA mode.
15716         * app/interface.c (fill_sheet_menu): don't add a menu item for
15717         empty sheets.
15719 2000-07-26  James Henstridge  <james@daa.com.au>
15721         * plug-ins/dxf/dxf-export.c: updates from Steffen to fix bug #18677
15723         * app/menus.c: remove edit grid menu item.
15725         * app/commands.[ch] (view_edit_grid_callback): removed.
15727         * app/display.c (new_display): don't initialise removed Grid members.
15729         * app/grid.c: remove unused functions.
15731         * app/grid.h: remove dialog related stuff from Grid structure.
15732         Remove prototypes for dialog functions.
15734         * app/menus.c: add to menus
15735         
15736         * app/commands.[ch] (view_diagram_properties_callback): new command
15737         for showing the diagram properties dialog.
15739         * app/dia-props.[ch]: a new diagram properties dialog.  To replace
15740         the edit grid dialog.
15742 2000-07-25  James Henstridge  <james@daa.com.au>
15744         * app/grid.c (grid_x_update): 
15745         (grid_y_update): as the grid setting is stored with the diagram,
15746         update all displays when a change is made.
15748         * app/modify_tool.c (modify_motion): use new snap_to_grid sig.
15750         * app/create_object.c (create_object_button_press): 
15751         (create_object_motion): use new snap_to_grid signature.
15753         * app/grid.c (grid_draw): use the grid settings in the DiagramData,
15754         and handle invisible grid lines.
15755         (snap_to_grid): use new grid settings.  Also changed signature to
15756         take a DDisplay rather than Grid pointer.
15757         (grid_show_dialog): get the defaults from the correct place.
15759         * app/display.c (new_display): do not set ddisp->grid.width_[xy].
15761         * app/diagram.c (new_diagram): set the grid size defaults from the
15762         user preferences.
15764         * app/load_save.c (diagram_data_save): save grid and guide info to
15765         diagram file.
15766         (diagram_data_load): add guide and grid load support.
15768         * lib/diagramdata.c (new_diagram_data): set the new DiagramData
15769         members.
15771         * lib/diagramdata.h: add members to DiagramData for grid and guide
15772         settings.
15774         * configure.in (BONOBO_LIBS): update configure scripts
15776         * app/dia.oafinfo: oafinfo file for dia embeddables.
15778         * app/dia_embedd.c: add OAF support.
15780 2000-07-24  James Henstridge  <james@daa.com.au>
15782         * plug-ins/wpg/Makefile.am: 
15783         * plug-ins/pstricks/Makefile.am: 
15784         * plug-ins/hpgl/Makefile.am: 
15785         * plug-ins/dxf/Makefile.am: same here.
15787         * plug-ins/cgm/Makefile.am: remove LIBADD.  Dia already links with
15788         the required libraries, and the link line was causing libtool not
15789         to build a shared library on some systems :(
15791         * plug-ins/cgm/cgm.c (write_real): the initial if statement should
15792         be checking x, not n.
15794 2000-07-23  James Henstridge  <james@daa.com.au>
15796         * app/preferences.c (prefs_data): set the "reset tools after
15797         create" preference to true by default.  That seems to be what most
15798         people expect.
15800         * app/interface.c (create_sheets): instead of a notebook, use an
15801         option menu that updates the sheet tools.  The notebook tabs were
15802         getting a bit unwieldly, so the option menu should fix that.  This
15803         also reduces the number of widgets in the tools radio button
15804         group, which should make the UI a little more responsive.
15806 2000-07-19  Fatih Demir <kabalak@gmx.net>
15807         
15808         * configure.in: Added tr to ALL_LINGUAS.
15809                 [ Yeah, we're now having a Turkish translation,
15810                    too. ]
15811         
15812         * dia.desktop: Added the Turkish entries.
15814 2000-07-02  Fredrik Hallenberg  <hallon@lysator.liu.se>
15816         * doc/diagram.dtd: changed string-element so it conforms to the
15817         output from dia.
15819 2000-06-30  Fredrik Hallenberg  <hallon@lysator.liu.se>
15821         * configure.in: added chinese. 
15822         Use AM_PROG_LIBTOOL instead of AC_PROG_LIBTOOL.
15824         * app/app_procs.c:
15825           app/load_save.c:
15826           app/render_svg.c:
15827           lib/dia_xml.c:
15828           lib/plug-ins.c:
15829           lib/sheet.c:
15830           objects/custom/shape_info.c: 
15831           shapes/Circuit/npn.shape:
15832           shapes/Circuit/pnp.shape:
15833           sheets/*.sheet: dia now works with libxml2.
15834         Libxml2 is a bit more picky when parsing xml and reported errors on all 
15835         sheet files because they use non ascii characters (added 
15836         encoding="iso-8859-1"). Also "xml:lang=en@layman" is not proper xml so 
15837         I commented out these.
15839 2000-06-30  Christopher R. Gabriel  <cgabriel@linux.it>
15841         * configure.in (ALL_LINGUAS): added Italian
15843 2000-06-27  Sung-Hyun Nam  <namsh@lgic.co.kr>
15845         * configure.in (ALL_LINGUAS): added Korean
15847 2000-06-25  James Henstridge  <james@daa.com.au>
15849         * objects/flowchart/parallelogram.c (pgram_create): use default font
15850         and add properties interface support.
15852         * objects/flowchart/ellipse.c (ellipse_create): use default font and
15853         add properties interface support.
15855         * objects/flowchart/diamond.c (diamond_create): use default font and
15856         add properties interface code.
15858         * objects/flowchart/box.c (box_create): use default font.
15860         * objects/custom/custom_object.c (custom_create): use default font
15861         here too.
15863         * objects/standard/textobj.c (textobj_create): update to use default
15864         font.
15866         * lib/attributes.c: add implementations.
15868         * lib/attributes.h (attributes_[gs]et_default_font): add function
15869         prototypes for setting/getting a default font.
15871 2000-06-24  James Henstridge  <james@daa.com.au>
15873         * app/paginate_gnomeprint.h: updated prototype.
15875         * app/paginate_gnomeprint.c (paginate_gnomeprint): update to use
15876         diagram page settings.
15878         * objects/standard/beziergon.c (beziergon_copy): same here.
15880         * objects/standard/polygon.c (polygon_copy): copy the fill colour
15881         as well.
15883         * app/undo.h: 
15884         * app/tool.h (tool_options_dialog_show): 
15885         * app/scroll_tool.h (free_scroll_tool): 
15886         * app/render_svg.h: 
15887         * app/render_libart.h (renderer_libart_copy_to_window): 
15888         * app/render_gdk.h (renderer_gdk_copy_to_window): 
15889         * app/properties.h (properties_hide_if_shown): 
15890         * app/preferences.h (prefs_load): 
15891         * app/object_ops.h: 
15892         * app/modify_tool.h (free_modify_tool): 
15893         * app/magnify.h (free_magnify_tool): 
15894         * app/linewidth_area.h (linewidth_area_create): 
15895         * app/layer_dialog.h: 
15896         * app/handle_ops.h (handle_is_clicked): 
15897         * app/group.h: 
15898         * app/grid.h (grid_destroy_dialog): 
15899         * app/defaults.h (defaults_show): 
15900         * app/cut_n_paste.h (cnp_exist_stored_objects): 
15901         * app/create_object.h (free_create_object_tool): 
15902         * app/connectionpoint_ops.h (diagram_unconnect_selected): 
15903         * app/commands.h: 
15904         * app/color_area.h (color_area_create): 
15905         * app/app_procs.h (app_is_embedded): remove extern keyword from
15906         function prototypes.
15908         * lib/text.h: 
15909         * lib/sheet.h (load_all_sheets): 
15910         * lib/render_store.h: 
15911         * lib/render_object.h (render_object_load): 
15912         * lib/polyshape.h (polyshape_closest_segment): 
15913         * lib/poly_conn.h (polyconn_closest_segment): 
15914         * lib/orth_conn.h: 
15915         * lib/object.h: 
15916         * lib/objchange.h (new_object_state_change): 
15917         * lib/neworth_conn.h (neworthconn_add_segment): 
15918         * lib/message.h (message_error): 
15919         * lib/lazyprops.h: 
15920         * lib/geometry.h: 
15921         * lib/font.h (font_descent): 
15922         * lib/focus.h (remove_focus): 
15923         * lib/element.h: 
15924         * lib/diagramdata.h: 
15925         * lib/dia_xml.h (data_add_composite): 
15926         * lib/dia_image.h: 
15927         * lib/connpoint_line.h: 
15928         * lib/connection.h (connection_move_handle): 
15929         * lib/color.h: 
15930         * lib/attributes.h (attributes_set_default_line_style): 
15931         * lib/arrows.h (arrow_draw): remove extern keyword from function
15932         definitions.  It is not required for functions.
15934         * plug-ins/dxf/Makefile.am (INCLUDES): 
15935         * plug-ins/pstricks/Makefile.am (INCLUDES): 
15936         * plug-ins/cgm/Makefile.am (INCLUDES): 
15937         * objects/SADT/Makefile.am (INCLUDES): 
15938         * objects/chronogram/Makefile.am (INCLUDES): 
15939         * objects/GRAFCET/Makefile.am (INCLUDES): 
15940         * objects/flowchart/Makefile.am (INCLUDES): 
15941         * objects/sybase/Makefile.am (INCLUDES): 
15942         * objects/FS/Makefile.am (INCLUDES): 
15943         * objects/standard/Makefile.am (INCLUDES): 
15944         * objects/network/Makefile.am (INCLUDES):
15945         * objects/UML/Makefile.am (INCLUDES): same here.
15947         * objects/ER/Makefile.am: changed inclusion of some macros to
15948         variables.
15950         * lib/plug-ins.c (dia_register_plugins_in_dir): use a few defines to
15951         handle the plug in extension, rather than have all the #ifdef's in
15952         the code.
15954         * plug-ins/Makefile.am: add renderer.inc to dist.
15956         * plug-ins/dxf/dxf-import.c: Updates from Steffen Macke.
15958 2000-06-11  Asbjorn Pettersen  <asbjornP@dualog.no>
15960         * lib/plug-ins.c: Handle OS/2 dll's too.
15962 2000-06-07  James Henstridge  <james@daa.com.au>
15964         * app/plugin-manager.c (get_plugin_manager): set some table
15965         packing options to make it look a little nicer.
15967         * plug-ins/hpgl/Makefile.am, plug-ins/wpg/Makefile.am: added
15968         makefiles for these plug-ins.
15970         * plug-ins/{hpgl,wmf,wpg}/*: removed dos style cariage returns.
15972         * configure.in: added hpgl and wpg directories to build.  Added
15973         note about whether gnome-print support was enabled, and noted that
15974         it is not recommended.
15976 2000-06-06  James Henstridge  <james@daa.com.au>
15978         * plug-ins/{hpgl,wmf,wpg}/*: Hans Breuer's plug-ins.  They still need
15979         a little work, but I am checking them in so I don't lose them.
15981 2000-06-01  James Henstridge  <james@daa.com.au>
15983         * objects/standard/arc.c: added extra properties.
15985         * lib/beziershape.c (beziershape_closest_handle): fix a bug where I
15986         was using the wrong index into the handles array.  This gets corner
15987         type changing working correctly.
15989         * lib/properties.[ch]: add support for BezPoint's and BezPoint arrays
15990         to properties code (no editing or loading yet though).  Also added
15991         support for point array manipulation through the offsets interfaces.
15993         * lib/Makefile.am (INCLUDES): added include of gdk-pixbuf 
15995         * app/interface.c (origin_button_press): changes so the origin
15996         button doesn't grab the pointer when we pop up the menu.
15998         * app/commands.c (help_about_callback): fix small memory leak in
15999         about box code.
16001         * app/menus.c (menus_init): fixed breakage I introduced in the non
16002         gnome menus when I was doing the menu changes.  The tearoffs work
16003         really nicely in plain gtk mode as well.
16005         * objects/standard/beziergon.c (beziergon_create): changed the
16006         returned handles to match the handle numbering changes.  Now
16007         segment addition and removal works correctly with undo!
16009         * lib/beziershape.c: various changes to the code.  Changed the
16010         numbering of handles, and fixed the segment removal code.
16012 2000-05-31  James Henstridge  <james@daa.com.au>
16014         * objects/standard/beziergon.c: remove connection point handling.
16015         There is still a bit of work to be done to get adding and removing
16016         of segments working correctly.
16018         * lib/beziershape.c: add connection point handling to beziershape.
16019         I set it for two connection points per segment.
16021 2000-05-30  James Henstridge  <james@daa.com.au>
16023         * objects/standard/polygon.c: don't do connectionpoint handling.
16025         * lib/polyshape.c: changed to handle connection points internally.
16026         Also, don't worry about connections to handles on polyshape, as
16027         all handles are non connectable.
16029 2000-05-30 Ville Hautamaki <villeh@cs.joensuu.fi>
16031         * configure.in: Added finnish
16032         
16033 2000-05-30  James Henstridge  <james@daa.com.au>
16035         * sheets/*.sheet: translation updates to the .sheet files.
16037         * po/fr.po: updated po file from Christophe Merlet.
16039         * menus.h: removed prototypes for functions which have been removed.
16041 2000-05-29  James Henstridge  <james@daa.com.au>
16043         * app/layer_dialog.c (layer_dialog_set_diagram): set the selected
16044         item in the option menu when changing selected diagram.
16046         * app/dia_embedd.c (view_factory): fix up function to work with new
16047         menus API.
16049         * app/disp_callbacks.c (ddisplay_realize): remove call to
16050         display_set_active from here.
16051         (ddisplay_canvas_events): move call here.  This gets rid of all the
16052         warnings, as the renderer has been fully set up correctly at this
16053         point.
16055         * app/menus.c (menus_init): add the tearoff item to the start of the
16056         right click menu.
16058         * app/app_procs.c (create_user_dirs): we don't need to create the
16059         menus directory anymore.
16061         * app/disp_callbacks.c (ddisplay_popup_menu): it should not be
16062         necessary to update the menu state here, as it was done when the
16063         active display was set.
16065         * app/display.c (display_set_active): update the menu state when
16066         changing active displays.
16068         * app/interface.c (origin_button_press): set the display as active
16069         when a click is made on the menu button.
16071         * app/menus.c (menus_init): set up a quit function to save the accels
16072         at exit.
16073         Add tearoff items for the non GNOME menus, add accelerators for
16074         several GNOME menus.
16076         * app/disp_callbacks.c (ddisplay_popup_menu): get the menu with
16077         menus_get_image_menu().
16079         * app/menus.c (menus_get_item_from_path): use display_menus here
16080         rather than ddisp->popup.
16082         * app/display.h: remove the popup member in the DDisplay structure.
16084         * app/interface.c: remove option of not using wrap box.
16085         (create_toolbox): change to always use menus_get_toolbox_menubar
16086         even when using gnome menus.
16087         (create_display_shell): use menus_get_image_menu to load accelerators
16088         only -- not the actual popup menu.
16090         * app/menus.c (menus_init): new function to create the menus.
16091         (menus_get_toolbox_menubar): use this function whether gnome is
16092         in use or not.  Changed to use menus_init.
16093         (menus_get_image_menu): same here.  Also, now this function always
16094         returns the same menu, rather than a new one each time.
16095         (menus_init): read a menurc file to load accelerators here.
16097 2000-05-28  James Henstridge  <james@daa.com.au>
16099         * app/display.c (ddisplay_really_destroy): unset active display if
16100         active display is destroyed.
16101         (ddisplay_active): simplify function to return active_display as set
16102         by display_set_active.  This allows using a pinned menu with any
16103         display -- not just the one it was popped up from.
16104         (display_set_active): notify the layer dialog of change of diagrams
16105         when active diagram changes.
16107         * app/disp_callbacks.c (ddisplay_canvas_events): set active display
16108         on button and key presses.
16109         (ddisplay_realize): set active display on realize.
16111         * app/display.c (display_set_active): simple implementation of this
16112         function.
16114         * app/display.h (display_set_active): add prototype for setting
16115         the active display.
16117         * app/interface.c (create_display_shell): don't give focus to the
16118         menu button.
16120         * app/menus.c: fix up menus for Beziergon.
16122         * app/interface.c (create_display_shell): make the widget in the
16123         top left corner a button that can be used to pop up the right click
16124         menu, like in gimp and sketch.
16126         * app/disp_callbacks.c (ddisplay_popup_menu): new function to popup
16127         the display menu.
16129         * objects/standard/beziergon.c (beziergon_set_corner_type_callback):
16130         add code to set corner types for beziergon.
16132         * lib/beziershape.c (beziershape_set_corner_type): fix up corner type
16133         setting code.
16134         (beziershape_move_handle): use the previous corner type for right
16135         controls.
16137         * app/interface.c (tool_data): add beziergon to toolbox.
16139         * objects/standard/standard.c (dia_plugin_init): initialise the new
16140         Beziergon object type.
16142         * objects/standard/beziergon.c: an object based on BezierShape.
16144         * lib/dummy_dep.h (dummy_dep): added to dummy_dep.
16146         * lib/beziershape.[ch]: new files implementing a bezier shape.
16148 2000-05-26  James Henstridge  <james@daa.com.au>
16150         * lib/text.c (text_key_event): handle multibyte inserts.
16151         (text_key_event): also add home and end keybindings.
16153         * app/interface.c (create_display_shell): connect handlers for
16154         focus_in_event, focus_out_event, realize and unrealize signals.
16156         * app/display.[ch] (new_display): initialise input context members.
16158         * app/disp_callbacks.[ch]: added XIM support here.
16160         * lib/font.c (suck_font): the black and white pixel values should be
16161         taken from a 1 bit colormap rather than the default colormap.
16163         Hans Breuer's Windows patches ...
16165         * lib/font.c: use Courier New for fixed width font on windows
16166         machines.
16168         * lib/dia_image.h: change to "struct _DiaImage".
16170         * lib/dia_image.c: change "struct DiaImage" to "struct _DiaImage"
16172         * app/disp_callbacks.c (ddisplay_canvas_events): allow ctrl+right
16173         mouse button for object menu.  This will make two button mouse owners
16174         happier.
16176 2000-05-25  James Henstridge  <james@daa.com.au>
16178         * app/filedlg.c (file_open_ok_callback): use diagram_load here.
16180         * app/app_procs.c (app_init): add extra NULL argument to call of
16181         diagram_load.
16183         * app/load_save.h: remove prototype.
16185         * app/load_save.c: remove diagram_data function here.
16187         * app/diagram.h: added prototype.
16189         * app/diagram.c (diagram_load): new function here, which uses import
16190         filters.
16192         * plug-ins/dxf/dxf.c: register the import filter as well.
16194         * plug-ins/dxf/dxf-import.c: added (unfinished) DXF import filter from
16195         Steffen Macke <macke@heini.fbbwu.fh-lueneburg.de>
16197         * objects/standard/line.c: add start_point and end_point properties
16198         to standard line object.
16200 2000-05-21  James Henstridge  <james@daa.com.au>
16202         * app/paginate_psprint.c: added missing include of locale.h.
16204         * objects/custom/custom_object.c (custom_draw): use fabs rather than
16205         abs for scaling factors.
16206         (custom_distance_from): same here.
16208         * dia.spec: make sure rpm doesn't bomb out when LINGUAS isn't set.
16210 2000-05-18  James Henstridge  <james@daa.com.au>
16212         * po/POTFILES.in: updated POTFILES.in.
16214         * dia.spec: incremented version number in spec file.
16216         * NEWS: added (lots of) news items for the 0.85 release.
16218         * app/preferences.c (prefs_save): set LC_NUMERIC to C while writing
16219         the config file.
16221         * configure.in: updated version number here.
16223         * app/Makefile.am (run_dia.sh): include plug-ins in the lib path.
16225 2000-05-17  James Henstridge  <james@daa.com.au>
16227         * app/app_procs.c (internal_plugin_init): register the native import
16228         filter.
16230         * app/load_save.c (diagram_data_load, diagram_load): split this
16231         function into two -- one that does all the work on the DiagramData
16232         structure, and the other that provides compatibility with the old
16233         function.
16234         (dia_import_filter): use diagram_data_load to define an import
16235         filter.
16237         * app/diagram.h (new_diagram): added const to prototype.
16239         * app/filedlg.c (file_open_callback): change to use new import filter
16240         code.
16242         * lib/filter.c: added import filter management functions.
16244         * lib/filter.h: added prototypes for import filter interface.
16246         * app/commands.c (help_about_callback): updated about dialog to
16247         contain a few more names.
16249 2000-05-16  James Henstridge  <james@daa.com.au>
16251         * configure.in (Configuration): added a status message to the end of
16252         the configure script to give the user some idea of what was
16253         configured.
16255         * plug-ins/dxf/Makefile.am: Makefile for new plugin.
16257         * plug-ins/dxf/dxf.c (dia_plugin_init): added file to initialise the
16258         plugin.
16260         * plug-ins/dxf/dxf-export.c: new file -- Steffen Macke's DXF export
16261         filter for dia.
16263         * configure.in (AM_PATH_LIBART): use the check function provided
16264         with libart rather than our own code.  It is more reliable, and
16265         it only requires that people who build out of CVS have libart.m4
16266         installed (not necessarily all of libart).
16267         (AM_PATH_GDK_PIXBUF): same here for gdk-pixbuf.
16269 2000-05-12  Andreas Hyden  <a.hyden@cyberpoint.se>
16271         * dia.desktop: Added Swedish translation.
16273 2000-05-09  James Henstridge  <james@daa.com.au>
16275         * lib/dia_xml.c: you can't free a const pointer, so remove const
16276         from variable definitions.
16278         Explicitely set LC_NUMERIC where needed, as sometimes it isn't
16279         initialised correctly.
16281         * app/render_svg.c (export_svg): set locale to C.
16283         * app/paginate_psprint.c (paginate_psprint): set locale to C.
16285         * app/render_eps.c (export_eps): set locale to C for EPS export.
16287         * lib/dia_xml.c (data_add_real): change to C locale for snprintf call.
16288         (data_add_point): same here.
16289         (data_add_rectangle): same here.
16290         (data_real): use g_strtod to convert strings to real numbers, so that
16291         locales are taken into account.
16292         (data_point): same here.
16293         (data_rectangle): same here.
16295         * AUTHORS: added Henk and Jacek to authors file.
16297         Daniel Egger's code cleanups.
16299         * app/select.c (select_invert_callback): remove unused variable.
16301         * app/plugin-manager.c (get_plugin_manager): fix typo.
16303         * app/load_save.c (read_connections, write_objects): 
16304         (write_connections): made some functions static.
16306         * app/interface.c (toolbox_delete, toolbox_destroy): made some
16307         functions static.
16309         * app/filedlg.c (file_export_callback): remove unused variable.
16311         * app/app_procs.c: various warning fixes.
16313         Integrating Jacek Pliszka's pstricks export filter.
16315         * plug-ins/pstricks/pstricks.c: code to initialise the plugin.
16317         * plug-ins/pstricks/render_pstricks.[ch]: Jacek Pliszka's pstricks
16318         renderer (with a few small modifications by me).
16320         * plug-ins/pstricks/Makefile.am: new makefile for pstricks plug-in.
16322         * plug-ins/Makefile.am (SUBDIRS): add pstricks subdirectory.
16324 2000-05-07  Alexander Larsson  <alla@lysator.liu.se>
16326         * configure.in:
16327         * sheets/Makefile.am:
16328         * shapes/Makefile.am:
16329         * shapes/Civil/Makefile.am:
16330         * sheets/civil.sheet:
16331         * shapes/Civil/*:
16332         Added civil/hydraulic/structural engineering objects from
16333         sdteffen <macke@heini.fbbwu.fh-lueneburg.de>.
16334         
16335 2000-05-07  Alexander Larsson  <alla@lysator.liu.se>
16337         * objects/FS/flow-poly.c:
16338         * objects/FS/flow.c:
16339         Fix division by zero in point_normalize().
16340         Patch by David Thompson <dcthomp@mail.utexas.edu>
16342 2000-04-27  Lars Clausen  <lrclause@cs.uiuc.edu>
16344         * lib/arrows.c:
16345         * lib/bezier_conn.c:
16346         * lib/connpoint_line.c:
16347         Added checks for zero-length lines before calls to point_normalize.
16349 2000-04-24  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
16351         * app/preferences.c (prefs_data): Changed
16352         reversed_dragging_intersects to not make the dialog ridiculously
16353         wide.
16354         
16355 2000-04-22  James Henstridge  <james@daa.com.au>
16357         Hans's win32 patches:
16359         * app/export_png.c: include message.h
16360         * app/interface.c: include dia_dirs.h
16361         * app/linewidth_area.c: check for rint
16362         * app/main.c: include interface.h
16363         * app/paginate_psprint.c: remove unused variable.
16364         * app/preferences.c: include message.h
16365         * app/render_svg.c: include stdlib.h
16366         * app/select.c: include object_ops.h
16367         * lib/dia_dirs.c: miscelaneous fixes for win32.
16368         * lib/dia_image.c: include string.h
16369         * lib/plug-ins.c: look for .dll files rather than .la files on win32.
16370         * lib/properties.c: include stdlib.h
16371         * lib/properties.h: define extra data for standard properties as
16372         static variables on win32 (to get around dynamic linker problems).
16373         * objects/standard/polygon.c: polygon_create_change missing return
16374         statement.
16376 2000-04-18  Pablo Saratxaga <pablo@mandrakesoft.com>
16378         * configure.in (ALL_LINGUAS): added Catalan
16380 2000-04-18  James Henstridge  <james@daa.com.au>
16382         * objects/standard/bezier.c (bezierline_get_object_menu): add a
16383         separator to the object menu between the add/remove segment items
16384         and the corner type items.
16385         (bezierline_get_object_menu): add code to disable the menu item for
16386         the current corner type.  Really just a cosmetic change.
16388         * app/disp_callbacks.c (create_object_menu): handle DiaMenuItems with
16389         a NULL for the label or with no associated callback.
16391         * objects/standard/bezier.c (bezierline_menu_items): use the
16392         enumeration values rather than numeric values for the corner types.
16394         * lib/bezier_conn.[ch]: added a corner_types member to the BezierConn
16395         structure, and add code to handle it.  Also, don't save the corner
16396         types inline in the bez_points node.  The way it is conditionally
16397         including the element just feels like it will break.
16399         * lib/geometry.h (BezPoint): removed the corner_type stuff from
16400         BezPoint.  The corner type stuff is a user interface level idea rather
16401         than something required by the renderer, so should be taken care of
16402         at the object level.
16404 2000-04-17  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
16406         * configure.in: Fixed some problems with the gdk-pixbuf/imlib
16407         checks.  Weren't able to reproduce original bug, tough.
16409 2000-04-16  Cyrille Chepelov  <chepelov@calixo.net>
16411         * sheets/Electric.sheet:
16412         * sheets/Contact.sheet:
16413         * sheets/Pneumatic.sheet:
16414         * sheets/Circuit.sheet: sprayed some <br/>'s around.
16415         (added a few French translations in the last file)
16416         
16417 2000-04-16  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
16419         * lib/geometry.h: 
16420         * lib/bezier_conn.h: 
16421         * objects/standard/bezier.c: 
16422         * lib/bezier_conn.c: Support for cuspy, smooth and symmetric
16423         bezier points.  Only one minor problem known:  Menus are active
16424         for endpoints minor handles.
16425         11:28: Save and load now works, too.
16426         (bezierconn_closest_major_handle): 12:03: New function to get the
16427         non-control point handle associated with the nearest control
16428         point.  
16429         Also fixed the menu activation problem, and made remove_segment
16430         not remove the endpoint.
16432 2000-04-15  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
16434         * configure.in: Added check for gdk-pixbuf being >= 0.7.0 since
16435         new API is in use.
16437 2000-04-15  Asbjorn Pettersen  <asbjornP@dualog.no>
16439         * lib/plug-ins.c: Added <sys/types.h> and moved <fcntl.h> below
16440         <sys/stat.h>.   OS/2 patch.
16442 2000-04-15  James Henstridge  <james@daa.com.au>
16444         * objects/FS/flow-ortho.c, objects/FS/function.c: Applied David
16445         Thompson's patch that adds undo support to the function structure
16446         diagram objects.
16448 2000-04-14  James Henstridge  <james@daa.com.au>
16450         * objects/custom/custom_object.c (custom_distance_from): new
16451         implementation of distance algorithm that actually takes the
16452         display list into account when calculating the distance.  Much nicer
16453         than a simple bounding box.
16455 2000-04-13  Lars Clausen  <lrclause@cs.uiuc.edu>>
16457         * lib/geometry.c (line_crosses_ray): Fixed division by zero bug
16459 2000-04-12  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
16461         * objects/standard/polygon.c: Start of polygons own changes (for
16462         connectionpoints).  Need to do seperate changes in polyshape, too,
16463         rather than reuse the bezier changes.
16465 2000-04-13  James Henstridge  <james@daa.com.au>
16467         * lib/dia_image.c (dia_image_draw): use the new enumeration values
16468         from after the gdk-pixbuf cleanup.
16470         * lib/geometry.c (bez_point_distance_and_ray_crosses): fix up limit
16471         on for loop.  Last set of coefficients were not beeing calculated,
16472         which caused a bit of breakage.
16474         * lib/bezier_conn.c (bezierconn_closest_segment): use the new
16475         functions in geometry.c for calculating the closest segment.
16476         (bezierconn_distance_from): use distance_bez_line_point to calculate
16477         the distance.
16479         * lib/geometry.c (distance_bez_line_point): new function to calculate
16480         the distance from an open bezier line to a point.
16481         (distance_bez_shape_point): new function to calculate the distance
16482         from a closed bezier shape.
16483         (distance_ellipse_point): new function to calculate the distance from
16484         a filled ellipse to a point.
16486         * lib/geometry.h (BezPoint): moved this structure here from render.h
16488 2000-04-12  James Henstridge  <james@daa.com.au>
16490         * lib/geometry.c (distance_bez_seg_point): new function to calculate
16491         the distance from a bezier segment.
16493         * lib/polyshape.c (polyshape_distance_from): use distance_polygon_point
16494         to calculate the distance from the object.
16496         * lib/geometry.c (distance_polygon_point): function for calculating
16497         the distance from a polygon to a point.
16499 2000-04-12  Cyrille Chepelov  <chepelov@calixo.net>
16501         * app/interface.c:
16502         * lib/sheet.[ch]: added a <br/> tag in sheet files, so that line 
16503         breaks can be inserted in the tool box. 
16505         * doc/sheet.dtd: updated the DTD
16506         * sheets/GRAFCET.sheet: tried <br/> on that sheet (more to come).
16507         
16508 2000-04-12  James Henstridge  <james@daa.com.au>
16510         * app/plugin-manager.c (get_plugin_manager): use the GTK_DIALOG
16511         macro if the dialog is a GtkDialog :(
16513 2000-04-11  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
16515         * objects/standard/polygon.c: Connectionpoints now properly
16516         managed in a GList.  As far as I can tell, this will not dieturb
16517         the order (but I have the nagging doubt...)
16519         * lib/polyshape.c: No longer knows about connectionpoints.
16521 2000-04-11  James Henstridge  <james@daa.com.au>
16523         * app/Makefile.am: fix makefile for bonobo build.
16525         * configure.in: fix checks for bonobo.
16527         * app/menus.c: added entries for the plugin manager.
16529         * app/Makefile.am (dia_core_files): added plugin manager to files
16530         list.
16532         * app/plugin-manager.[ch]: the plugin manager dialog.
16534         * app/display.c (display_update_menu_state): set the antialiased
16535         menu entry to the correct value.
16537 2000-04-11  Cyrille Chepelov  <chepelov@calixo.net>
16539         * objects/custom/custom_object.c: not all renderers like ellipses with
16540         negative dimensions. This could cause ellipses to disappear when using
16541         the flip_h and flip_v functions.
16543         * samples/grafcet.dia: fixed speling and correctness.
16544         
16545 2000-04-11  James Henstridge  <james@daa.com.au>
16547         * lib/plug-ins.[ch]: added more accessors for use by a plugins dialog.
16548         exposed the dia_plugin_load and dia_plugin_unload functions.
16550         * lib/plug-ins.c (plugin_load): change plugin_load to work on an
16551         already created PluginInfo structure.
16553         * app/app_procs.c (app_exit): call dia_pluginrc_write() to write
16554         the pluginrc file.
16556         * lib/sheet.c: fix up call to dia_config_filename.
16558         * lib/plug-ins.[ch]: started writing code for handling a pluginrc
16559         file.  This would save information such as which plugins not to
16560         load during startup.
16562 2000-04-09  James Henstridge  <james@daa.com.au>
16564         * lib/sheet.c: use dia_config_filename to resolve file in ~/.dia.
16566 2000-04-10  Alexander Larsson  <alla@lysator.liu.se>
16568         * lib/plug-ins.c (dia_register_plugins):
16569         Don't free the value returned from g_getenv.
16571 2000-04-09  Anders Carlsson  <andersca@gnu.org>
16573         * app/preferences.h: Add reverse_rubberbanding_intersects preference variable.
16575         * app/preferences.c (prefs_data): Add reverse_rubberbanding_intersects preference data.
16577         * app/modify_tool.c (modify_button_release): If rubberbanding is done from 
16578         right to left, select objects that intersect the rubberbanding rectangle
16579         instead of selecting objects that are in the rectangle.
16581         * lib/diagramdata.c (layer_find_objects_intersecting_rectangle): Add function.
16583         * lib/diagramdata.h: Likewise.
16586 2000-04-09  James Henstridge  <james@daa.com.au>
16588         * lib/plug-ins.[ch]: add copyright messages to files.
16590         * plug-ins/cgm/cgm.c (dia_plugin_init): convert plugin over to new
16591         plugin interface.
16593         * objects/sybase/sybase.c (dia_plugin_init): 
16594         * objects/network/network.c (dia_plugin_init): 
16595         * objects/flowchart/flowchart.c (dia_plugin_init): 
16596         * objects/custom/custom.c (dia_plugin_init): 
16597         * objects/chronogram/chronogram.c (dia_plugin_init): 
16598         * objects/UML/uml.c (dia_plugin_init): 
16599         * objects/SADT/sadt.c (dia_plugin_init): 
16600         * objects/GRAFCET/grafcet.c (dia_plugin_init): 
16601         * objects/FS/fs.c (dia_plugin_init): 
16602         * objects/ER/er.c (dia_plugin_init): updated plugin load code for
16603         object libraries.
16605         * objects/standard/standard.c (dia_plugin_init): change over to new
16606         plugin interface.
16608         * lib/plug-ins.h (DIA_PLUGIN_CHECK_INIT): added a macro to define
16609         the version checker for plugins.
16611         * app/app_procs.c: remove plugin loading code from here, and use
16612         code from plug-ins.[ch].  Also move registration of internal
16613         objects/filters to a `builtin' plugin.
16615         * lib/Makefile.am (libdia_a_SOURCES): added plug-ins.[ch] to library.
16617         * configure.in: use AC_PROG_LIBTOOL rather than AM_PROG_LIBTOOL.
16619         * app/Makefile.am (EXTRA_DIST): you can't include a conditionally
16620         defined variable in EXTRA_DIST.
16622         * app/preferences.h: removed dia_config_filename from header.
16624         * app/preferences.c: removed dia_config_filename function.
16626         * lib/dia_dirs.c (dia_config_filename): moved function over to this
16627         file.  Also changed implementation slightly so that it should work
16628         on the win32 port correctly (and use NT home directories).
16630         * lib/dia_dirs.h (dia_config_filename): move dia_config_filename where
16631         it should have been.
16633         * lib/plug-ins.[ch]: new plugin loading code.
16635 2000-04-08  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
16637         * objects/standard/polygon.c: Fixed startup crash bug (do'h!).
16639         * lib/polyshape.c: Fix closest segment finding, exposes deeper
16640         bugs in adding corners to 'wraparound' segment.
16642         * objects/standard/polygon.c: Added connection points (fixed so
16643         far), set menu sensitivity.
16645         * lib/polyshape.c: Changed to box-style handles, fixed for start
16646         and ends not being special, added initial connections,
16648         * lib/dummy_dep.h: Added polyshape (gotcha!)
16650         * objects/standard/pixmaps/ellipse.xpm: 
16651         * objects/standard/pixmaps/box.xpm: 
16652         Filled element pixmaps with white.
16654         * lib/polyshape.c: 
16655         * objects/standard/polygon.c: 
16656         * lib/polyshape.h: 
16657         * objects/standard/standard.c: 
16658         * objects/standard/Makefile.am (libstandard_objects_la_SOURCES): 
16659         * lib/Makefile.am (libdia_a_SOURCES): 
16660         * app/menus.c: 
16661         * app/interface.c (tool_data): 
16662         Added Standard/Polygon object and PolyShape lib object.  Still
16663         needs inside grab and connection points.
16665         * app/commands.c (help_about_callback): Now uses gdk-pixbuf if
16666         available. 
16668         * configure.in: Made imlib a fallback if gdk-pixbuf is absent or
16669         not wanted.
16671         * app/app_procs.c (app_init): Moved gtk_init outside #ifdef, moved
16672         if (argv) outside ifdefs.
16674 2000-04-04  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
16676         * objects/standard/image.c (image_set_props): 
16677         Aspect ratio is back in town.
16679         * app/Makefile.am (dia_LDADD): 
16680         * acconfig.h: 
16681         * configure.in: 
16682         Check for gdk_pixbuf (by default disabled, for now)
16684         * app/render_eps.c (draw_image): 
16685         * app/render_libart.c (draw_image): 
16686         * app/render_gnomeprint.c (draw_image): 
16687         Support for alpha mask in rendering.  Color postscript, too.
16689         * lib/dia_image.c: 
16690         * lib/dia_image.h: 
16691         Support for gdk_pixbuf and proper masking for exports.
16693 2000-04-01  Kjartan Maraas  <kmaraas@online.no>
16695         * sheets/*.sheets: Updated Norwegian translations.
16696         
16697 2000-03-30  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
16699         * lib/text.c (text_insert_char): 
16700         * lib/render_store.c (add_data): 
16701         Made realloc double the alloced space rather than add
16702         a fixed amount, to reduce memory stress.
16704         * app/select.c: Added new select method 'Transitive'
16705         that select every reachable (by connections) object.
16707 2000-03-27  Kjartan Maraas  <kmaraas@online.no>
16709         * dia.desktop: Added Norwegian translation.
16710         
16711 2000-03-26  Alexander Larsson  <alla@lysator.liu.se>
16713         * app/render_eps.c:
16714         * app/render_svg.c:
16715         Don't dereference NULL pointer if the renderer
16716         couldn't open the file. Fix by Lars Clausen.
16717         Bug reported by Martin Chisholm <b1mt@unb.ca>
16718         
16719 2000-03-26  Alexander Larsson  <alla@lysator.liu.se>
16721         * dia.desktop:
16722         * po/pt.po:
16723         Updated pt translation from Pedro Morais <pmmm@rnl.ist.utl.pt>
16725 2000-03-25  Alexander Larsson  <alla@lysator.liu.se>
16727         * app/dia.gnorba (location_info):
16728         Changed to correct executable name.
16730 2000-03-25  Alexander Larsson  <alla@lysator.liu.se>
16732         * app/app_procs.c:
16733         Don't do any argument parsing or initialization
16734         if argv==NULL.
16736         * app/dia_embedd.c:
16737         Call init_server_factroy before app_init.
16738         Call app_init with argv==NULL
16739         Now we don't get any critical error on startup.
16741         * configure.in:
16742         Add Electric and Pneumatic to makefile list.
16743         
16744 2000-03-24  Cyrille Chepelov <chepelov@calixo.net>
16746         * shapes/Electric/*:
16747         * sheets/Electric.sheet:
16748         Add some Electric circuit shapes.
16750         * shapes/Pneumatic/*:
16751         * sheets/Pneumatic.sheet:
16752         Add some Pneumatic & Hydraulic circuit shapes
16753         (both sheets are still incomplete, though feature enough 
16754         things for basic circuits).
16756         * shapes/Contact/l_*.(xpm|shape):
16757         * sheets/Contact.sheet
16758         * shapes/Contact/Makefile.am
16759         made the older electric circuit shapes in Contact obsolete (disabled
16760         them in the sheet, made that sheet Ladder only). Fixed the makefile
16761         for forgotten items.
16762         
16763 2000-03-24  Alexander Larsson  <alla@lysator.liu.se>
16765         * app/Makefile.am:
16766         Add support for Dia bonobo component.
16767         Currently a bit raw, so it's commented out.
16768         
16769         * app/dia_embedd.c:
16770         * app/dia.gnorba:
16771         New files for embedding dia.
16772         The menu disabling hack is a bit gross. Esp. for GNOME.
16774         * app/app_procs.h:
16775         Add new function app_is_embedded();
16777         * app/diagram.c:
16778         Don't destroy diagram when last display is destroyed if embedded.
16779         
16780         * app/display.c:
16781         Change initialization of display so it works with embedding.
16783         * app/display.h:
16784         Clarify comment about display destruction.
16786         * app/interface.[ch]:
16787         Added top_level_window argument to create_display_shell.
16788         Don't open a top-level window if embedding.
16789         Don't quit app if trying to close toolbox window when embedding.
16790         Add toolbox_show() and toolbox_hide().
16792         * app/main.c:
16793         Added app_is_embedded() function (just returns false).
16794         Added toolbox_show() call in main().
16796         * app/menus.c:
16797         Added code for getting toolbox menus. This is used to
16798         hide some menu items when running embedded.
16799         
16800         * app/app_procs.c:
16801         Include sheet.h to remove warning.
16803         * objects/UML/association.c:
16804         Clarify association direction text.
16805         
16806 2000-03-16  Fredrik Hallenberg  <hallon@lysator.liu.se>
16808         * dia.1
16809         Fixed man page so whatis parsing works.
16811 2000-03-12  Alexander Larsson  <alla@lysator.liu.se>
16813         * app/render_libart.c (new_libart_renderer):
16814         Fix from segg <segg@infonet.ca> to compile without libart.
16815         I forgot to change the stub for new_libart_renderer when doing
16816         the interactive renderer stuff for libart.
16818 2000-03-11  Alastair McKinstry  <mckinstry@computer.org>
16820         * dia.desktop: Added Irish translation.
16821         
16822         * configure.in (ALL_LINGUAS): Added Irish (ga) translation.
16824 2000-03-07  Asbjorn Pettersen  <asbjornP@dualog.no>
16826         * app/load_save.c (fchmod): OS/2 defines only.
16828 2000-03-07  James Henstridge  <james@daa.com.au>
16830         * lib/properties.c (prop_get_widget): set the position in the option
16831         menu correctly.
16833 2000-03-06  Alexander Larsson  <alla@lysator.liu.se>
16835         * app/display.c:
16836         * app/export_png.c:
16837         * app/render_libart.[ch]:
16838         Don't export png:s with an interactive libart renderer.
16840 2000-03-03  Asbjorn Pettersen  <asbjornP@dualog.no>
16842         * lib/arrows.c (finite): define finite(d) isfinite(d)  for OS/2
16844 2000-03-02  James Henstridge  <james@daa.com.au>
16846         * dia.spec (%build): unset LINGUAS before running configure.  This
16847         ensures that all translations get included in the RPM.
16849         * lib/properties.c (object_create_props_dialog): put in a check for
16850         a NULL return from the describe_props() object method.
16851         (prop_desc_lists_union): make sure that the returned array is not
16852         NULL.
16853         (prop_desc_lists_intersection): same here.
16855 2000-02-29  Alexander Larsson  <alla@lysator.liu.se>
16857         * objects/ER/Makefile.am:
16858         * objects/FS/Makefile.am:
16859         * objects/UML/Makefile.am:
16860         Don't link object libs with gtk.
16862 2000-02-29  James Henstridge  <james@daa.com.au>
16864         * app/preferences.c (prefs_save): check to see if the file could
16865         be opened before writing the prefs.
16867         * app/disp_callbacks.c (popup_object_menu): pass the button event
16868         to gtk_menu_popup.  This allows you to click and release to open
16869         the object menu.
16870         (ddisplay_canvas_events): same here.
16871         (create_object_menu): set the object type menu item in the object
16872         menu to be insensitive.
16874         * app/render_svg.c (draw_string): call xmlEncodeEntitiesReentrant,
16875         as we are now requiring a new version of libxml.
16877         * dia.spec: updated version number.  Added requirement for
16878         libxml >= 1.8.5
16880         * configure.in: incremented version number to 0.84.
16881         Added check for libxml >= 1.8.5.  This will prevent some of the
16882         problems people have had with broken libxml versions.
16884         * NEWS: added news items.
16886         * app/interface.c (create_color_area): removed call to realize parent
16887         widget.  Segg <segg@infonet.ca> reported that it caused a warning,
16888         but I haven't seen it on my copy of dia.
16890 2000-02-28  James Henstridge  <james@daa.com.au>
16892         * app/export_png.c: added copyright notice, and made the band height
16893         a constant.
16895 2000-02-27  Alexander Larsson  <alla@lysator.liu.se>
16897         * lib/font.c (suck_font):
16898         Fixed off-by one bug in font pixmap height.
16899         Fixes the problem with garbage at the bottom of some text in aa mode
16900         and in png exported files.
16902 2000-02-27  James Henstridge  <james@daa.com.au>
16904         * app/app_procs.c: add the png export filter if it was compiled in.
16906         * app/export_png.c (export_png): new PNG export filter.  This requires
16907         the libart renderer to work as it needs a renderer that renders to a
16908         pixel buffer.
16910         * configure.in: add check for libpng.
16912         * lib/message.c (message_internal): use a GNOME dialog here as well.
16914         * app/display.c (ddisplay_close): use a GNOME dialog here.
16916         * app/render_eps.c (create_eps_renderer): use diagram scaling factor
16917         when exporting to EPS.  This is because some people said the EPS
16918         output was too large
16920 2000-02-26  James Henstridge  <james@daa.com.au>
16922         * app/defaults.c (create_dialog): use a GNOME dialog for the defaults
16923         window.
16925         * app/app_procs.c (app_exit): use a GNOME dialog here.
16927         * app/preferences.c (prefs_create_dialog): if GNOME support is
16928         enabled, show a GNOME dialog.
16930         * app/grid.c (grid_draw): use preferences when drawing page break
16931         lines.
16933         * app/preferences.c: add page break preferences to dialog.
16935         * app/preferences.h: added page break preferences.
16937 2000-02-25  James Henstridge  <james@daa.com.au>
16939         * sheets/UML.sheet: added new objects.
16941         * objects/UML/uml.c: link in the two new objects.
16943         * objects/UML/node.c: 
16944         * objects/UML/branch.c: new UML objects from Stfan Seefeld
16945         <seefelds@magellan.umontreal.ca>.
16947 2000-02-24  James Henstridge  <james@daa.com.au>
16949         * objects/custom/custom_object.c: converted to use the properties
16950         interface.  In the future, it would be nice to add support for
16951         defining custom properties for custom objects, but that can wait.
16953 2000-02-22  James Henstridge  <james@daa.com.au>
16955         * sheets/Circuit.sheet: added new circuit shapes to sheet.
16957         * plug-ins/cgm/cgm.c: cgm plugin updates from Henk Jan Priester
16958         <hj@justcroft.com>.  Fixes number encoding, colour encoding, fonts
16959         and adds a few new features.
16961 2000-02-21  Daniel Egger  <egger@suse.de>
16963         * sheets/*.sheets: Added German translations and made some
16964         corrections to the others.
16965         
16966 2000-02-21  James Henstridge  <james@daa.com.au>
16968         * shapes/Circuit/Makefile.am (SHAPES): added new shapes to list.
16970         * shapes/Circuit/...: added new shapes from Erik Janssens.
16972 2000-02-20  James Henstridge  <james@daa.com.au>
16974         * app/interface.c (create_color_area): realize the parent window
16975         first.
16977         * objects/standard/image.c: properties patch for standard image
16978         object, from Lars Clausen.
16980         * lib/properties.c: support for PROP_TYPE_FILE from Lars Clausen.
16982         * lib/properties.h (PropType): added file property type.
16984         * shapes/Circuit/speaker_de.xpm: changed size of pixmap to match
16985         other shapes.
16987         * app/interface.c: use wrap box for toolbox.
16989         * app/Makefile.am: added new files.
16991         * app/gtk*wrapbox.[ch]: added wrap box widget.
16993 2000-02-19  James Henstridge  <james@daa.com.au>
16995         * sheets/network.sheet: added extra shapes to networks sheet.
16997         * configure.in (AC_OUTPUT): added shapes/network/Makefile
16999         * shapes/network/*: added shapes that were posted to the list a while
17000         back.
17001         
17002         * shapes/Makefile.am (SUBDIRS): added network subdirectory
17004         * app/menus.c (toolbox_menu_items): don't right justify help menu for
17005         gtk+ version of menus.
17007         * app/properties.c (create_dialog): use a GnomeDialog if we happen
17008         to be using gnome.
17010 2000-02-18  James Henstridge  <james@daa.com.au>
17012         * objects/flowchart/box.c: set extra data for corner radius and text
17013         padding properties.
17015         * objects/standard/box.c: set extra data for corner radius property.
17017         * lib/properties.h: set extra data in some standard properties.
17019         * lib/properties.c (prop_get_widget): look at the extra data for
17020         int, real and enum property types.  They now use GtkSpinButton and
17021         GtkOptionMenu respectively.
17023         * lib/properties.h: extra data members for creating property setting
17024         widgets.
17026 2000-02-17  James Henstridge  <james@daa.com.au>
17028         * objects/flowchart/box.c: reverted load/save functions back to
17029         previous implementations.  Made box use standard property names.
17031         * plug-ins/cgm/cgm.c (set_linestyle): was missing a */
17033         * app/grid.c: add more digits to the grid edit dialog.  This patch
17034         was also from Lars Clausen.
17036         * objects/standard/zigzagline.c: 
17037         * objects/standard/textobj.c:
17038         * objects/standard/polyline.c:
17039         * objects/standard/line.c:
17040         * objects/standard/ellipse.c:
17041         * objects/standard/box.c: 
17042         * objects/standard/bezier.c: 
17043         * objects/standard/arc.c: patches to add properties code to standard
17044         objects.  Based on patches from Lars Clausen.  I have also removed
17045         some dead code from the files.
17047         * lib/properties.h (PROP_STD_*): define a number of standard
17048         properties.  Where appropriate, objects should include these
17049         properties in their PropDescription list.  This way, the intersection
17050         of properties of two different shapes will be greater.
17052 2000-02-14  James Henstridge  <james@daa.com.au>
17054         * objects/flowchart/box.c (box_load, box_save): use property save
17055         routines.  Make sure that any props not handled by object_load_props
17056         are loaded before calling object_load_props, or we get errors because
17057         update_data is called.
17059         * lib/properties.c (object_get_props_from_offsets): fixed an indexing
17060         error that could cause properties to be loaded incorrectly.
17061         (object_set_props_from_offsets): similar here.
17063         * lib/properties.[ch] (prop_{load,save}): functions for loading
17064         or saving a property in Dia's XML file format.
17065         (object_{load,save}_props): load or save some properties of an
17066         object.  These functions should help simplify the load/save methods
17067         of objects that implement the properties interface.
17069 2000-02-13  James Henstridge  <james@daa.com.au>
17071         * objects/flowchart/box.c: use offset code to simplify property
17072         get/set routines.
17074         * lib/element.h (ELEMENT_COMMON_PROPERTIES): standard element
17075         properties.
17076         (ELEMENT_COMMON_PROPERTIES_OFFSETS): offsets.
17078         * lib/object.h (OBJECT_COMMON_PROPERTIES): list of standard object
17079         properties.
17080         (OBJECT_COMMON_PROPERTIES_OFFSETS): the offsets of the properties.
17082         * lib/properties.[ch] (object_{get,set}_props_from_offsets): new
17083         functions 
17085 2000-02-12  Alexander Larsson  <alla@lysator.liu.se>
17087         * app/Makefile.am:
17088         Add the custom object to DIA_LIB_PATH in run_dia.sh
17090 2000-02-10  Cyrille Chepelov  <chepelov@calixo.net>
17092         * sheets/Circuit.sheet:
17093         * shapes/l_sout* (NEW):
17094         * shapes/l_outj.* (NEW): added new outputs : jump, and the power-saved
17095         variants of simple, inverted, set and reset outputs.
17096         Still to do: all Schneider/Telemecanique TSX *7 function blocks ; 
17097         probably a split of Contact and Ladder sheets. And then a major 
17098         revamping of the Contact sheet.
17100 2000-02-10  James Henstridge  <james@daa.com.au>
17102         * app/Makefile.am (dia_LDADD): don't link with libcustom_objects.
17104         * app/app_procs.c (register_all_objects): don't explicitely
17105         register the custom objects library -- let it be loaded by the
17106         normal plugin loading methods.
17108         * lib/Makefile.am (libdia_a_SOURCES): don't include custom.h here.
17110         * objects/custom/Makefile.am: build libcustom_objects as a shared
17111         library again.
17113         * objects/custom/shape_info.[ch]: don't read the description field
17114         of custom shapes.  It makes more sense to have these in the sheet
17115         file to localise the parts of dia that translators have to deal
17116         with.
17118         * objects/custom/custom_object.c (custom_object_new): do not
17119         create the sheet object for the new custom shape -- this is
17120         handled by the custom sheet code.
17122         * objects/custom/custom.c: change over to being a normal plug-in
17123         rather than being linked with the main dia executable.
17125 2000-02-09  James Henstridge  <james@daa.com.au>
17127         * sheets/Circuit.sheet: 
17128         * sheets/Flowchart.sheet: 
17129         * sheets/Contact.sheet: fixed up sheets.
17131         * objects/custom/custom_object.c (custom_object_new): set the
17132         extra ObjectType fields.
17134         * lib/sheet.c: use extra ObjectType fields when creating sheet
17135         objects.  Give a warning if <shape> tags are found in a sheet
17136         file.  Now the custom sheet code does not know about custom
17137         shapes -- they look like any other object type.
17139         * lib/object.h (ObjectType): added extra members
17141 2000-02-08  Alexander Larsson  <alla@lysator.liu.se>
17143         * app/linewidth_area.c:
17144         Added code to set arbitrary line width.
17145         Patch by Lars Clausen <lrclause@cs.uiuc.edu>
17147 2000-02-08  Alexander Larsson  <alla@lysator.liu.se>
17149         * app/linewidth_area.c: 
17150         * lib/font.[ch]:
17151         Add support for font-sucking.
17152         Implementation borrowed from gnome-canvas.
17153         
17154         * app/render_libart.[ch]:
17155         Implement text rendering.
17157 2000-02-07  Alexander Larsson  <alla@lysator.liu.se>
17159         * app/properties.c (create_dialog):
17160         ref and sink no_properties_dialog.
17162 2000-02-07  James Henstridge  <james@daa.com.au>
17164         * app/group.c (group_describe_props): new function.  Return the
17165         intersection of the properties of the contained objects that
17166         implement the describe_props interface.
17167         (group_get_props): implement by iterating through contained objects
17168         and calling their get_props method until all properties have been
17169         set.  Maybe this should go through all objects all the time??
17170         (group_set_props): implement by calling set_props method on all
17171         contained objects.
17172         (group_ops): use standard props dialog creation routines.
17174         * lib/properties.c (prop_desc_lists_intersection): fix implementation
17175         of intersection -- I was using i++ instead of i-- in a for loop :(
17177         * objects/custom/custom.c (custom_register_objects): fix usage
17178         of dia_get_data_directory again.
17180         * lib/sheet.c: fix up use of dia_get_data_directory, so that we
17181         actually read the sheets.
17183 2000-02-06  Alexander Larsson  <alla@lysator.liu.se>
17185         Win32 port by Hans Breuer <Hans@Breuer.org>
17187         * app/Makefile.am:
17188         Remove DATADIR and LIBDIR defines.
17190         * lib/Makefile.am:
17191         Add dia_dirs.c and dia_dirs.h
17192         Added DATADIR and LIBDIR defines.
17194         * lib/dia_dirs.[ch]:
17195         New files for handling special directories.
17197         * app/app_procs.c:
17198         * app/commands.c:
17199         * lib/sheet.c:
17200         * objects/custom/custom.c:
17201         Fix warnings.  Use directory functions.
17203         * app/diagram.h:
17204         Add prototype for diagram_redraw_all.
17206         * app/diaunitspinner.c:
17207         * app/filedlg.c:
17208         * app/interface.c:
17209         * app/preferences.c:
17210         Fix warning.
17212         * app/load_save.c:
17213         Win32 doesn't have mkstemp and fchmod.
17215         * app/paginate_psprint.c:
17216         Win32 calls popen _popen and pclose _pclose.
17217         
17218         * app/arrow.c:
17219         Win32 calls finite _finite.
17221         * lib/color.h:
17222         Win32 needs to dllexport the color vars.
17224         * objects/GRAFCET/step.c:
17225         * objects/chronogram/chronoref.c:
17226         snprintf -> g_snprintf
17228 2000-02-05  James Henstridge  <james@daa.com.au>
17230         * lib/properties.c: more fixes so that it doesn't crash when using
17231         properties.  The undo/redo stuff also works!!
17233         * objects/flowchart/box.c (box_{describe, get, set}_props): test
17234         object where I have implemented the new properties interface
17235         complete with automatic properties dialog generation.
17237         * lib/properties.c (object_apply_props): fixed stupid error when
17238         creating the old_props array.  Also, it no longer frees the props
17239         array -- you will have to do that yourself.
17241 2000-02-04  James Henstridge  <james@daa.com.au>
17243         * app/properties.c (properties_apply): pass object_part to
17244         apply_properties.
17246         * lib/object.h (ApplyPropertiesFunc): added widget argument.
17248         * lib/lazyprops.h (PROPDLG_CREATE): ref and sink properties dialogs
17249         created this way as well.
17251         * objects/*/*.c: ref and sink the properties dialog window for each
17252         widget.  It can't rely on ref count being incremented by
17253         properties_show anymore.
17255         * app/properties.c (properties_show): don't ref the widget before
17256         removing it, or its ref count will increase each time you open the
17257         properties dialog.  Don't unparent the widget, as container_remove
17258         does that for us.
17260         * lib/object.h: fixed up prototypes for new object methods.
17262         * lib/properties.[ch]: added functions for automatically creating
17263         a properties dialog from the output of describe_props, get_props and
17264         set_props.
17265         (object_apply_props): apply properties and return an ObjectChange
17266         structure that can be used for undo.
17268 2000-02-03  Cyrille Chepelov  <chepelov@calixo.net>
17270         * objects/GRAFCET/transition.c: minor leak plugged.
17272         * sheets/GRAFCET.sheet:
17273         * objects/GRAFCET/pixmaps/condition.xpm: (NEW)
17274         * objects/GRAFCET/condition.c: (NEW) added a new object type, action 
17275         conditions.
17276         * objects/GRAFCET/Makefile.am: fixed incorrect dependencies, added
17277         new ones (for condition.c).
17278         * objects/GRAFCET/action.c: added connection points for the conditions.
17279         * samples/grafcet.dia: updated the sample to improve conformance to
17280         IEC 848 and take advantage of dia's new features.
17281         
17282         * lib/geometry.h: (point_get_normed) fixed a typo.
17284 2000-02-02  James Henstridge  <james@daa.com.au>
17286         * lib/object.h: added object functions describe_props, get_props and
17287         set_props.  Do type definitions so that object.h doesn't need to
17288         include properties.h, since properties.h includes object.h.
17290         * lib/properties.[ch]: more hacking.
17292         * po/de.po: updated po file.
17294 2000-01-30  James Henstridge  <james@daa.com.au>
17296         * configure.in: don't add flags to CFLAGS unconditionally.  Instead,
17297         check to see if the C compiler accepts the flag beforehand.
17299         * lib/properties.[ch]: start of properties code.
17301         * shapes/Contact/Makefile.am (SHAPES): fix up makefile.
17303 2000-01-30  Cyrille Chepelov  <chepelov@calixo.net>
17304         
17305         * sheets/GRAFCET.sheet:
17306         * sheets/GRAFCET/etapemc.xpm: (NEW)
17307         * sheets/GRAFCET/etapesp.xpm: (NEW)
17308         * objects/GRAFCET/step.c: Added the macro and
17309         sub-program call step types.
17311         * objects/GRAFCET/receptivity.[ch]: renamed to 
17312         objects/GRAFCET/boolequation.[ch]. 
17313         * objects/GRAFCET/transition.c: changed (Receptivity *) to 
17314         (BoolEquation *)
17316         * lib/connpoint_line.[ch]: 
17317         * objects/chronogram/chronoline.c:
17318         * objects/chronogram/chronoref.c:
17319         * objects/GRAFCET/vergent.c:
17320         * objects/standard/line.c:
17321         * objects/SADT/box.c: Minor CPL interface changes, factored out the
17322         point count adjustment code into the CPL object.
17323         
17324 2000-01-29  Alexander Larsson  <alla@lysator.liu.se>
17326         * app/render_libart.c:
17327         Added support for images and bezier curves.
17328         Only text/fonts missing now.
17330         * app/render_gdk.c:
17331         Removed old erronous comment.
17333 2000-01-29  Cyrille Chepelov <chepelov@calixo.net>
17335         * objects/chronogram/chronoline_event.c: removed references to
17336         lround(). Please don't insist, I'm already red of shame.
17337         
17338 2000-01-29  Alexander Larsson  <alla@lysator.liu.se>
17340         * app/render_libart.[ch]:
17341         * app/Makefile.am:
17342         Non-finished libart renderer.
17344         * acconfig.h:
17345         Added HAVE_LIBART flag
17347         * configure.in:
17348         Added libart probe
17350         * app/app_procs.c:
17351         Call gdk_rbg_init().
17353         * app/connectionpoint_ops.c:
17354         * app/disp_callbacks.c:
17355         * app/grid.c:
17356         * app/handle_ops.c:
17357         * app/magnify.c:
17358         * app/modify_tool.c:
17359         Change ddisp->renderer type from RendererGdk * to Renderer *
17360         Draw zoom and select rects in ddisp->canvas->window instead
17361         of ddisp->renderer->renderer->pixmap.
17363         * app/display.[ch]:
17364         Add aa_renderer to DDisplay, and  support for it.
17365         New function ddisplay_set_renderer() for changing renderer.
17366         Add ddisplay_transform_coords_double() function, used by aa renderer.
17367         Change ddisp->renderer type from RendererGdk * to Renderer *
17369         * app/menus.c:
17370         Add antialias to menu.
17371         
17372         * app/commands.[ch]:
17373         add view_aa_callback function
17374         Change ddisp->renderer type from RendererGdk * to Renderer *
17376         * lib/geometry.[ch]:
17377         Added IntRectangle and int_rectangle_union.
17379 2000-01-28  James Henstridge  <james@daa.com.au>
17381         * app/commands.h: removed prototypes.
17383         * app/commands.c: removed the functions that have been moved to
17384         filedlg.c.
17386         * app/filedlg.h: added new prototypes.
17388         * app/filedlg.c (file_open_callback): move open dialog to this
17389         file.  This implementation should remember the current directory
17390         between file loads.
17391         (file_save_as_callback): moved this dialog as well.
17392         (file_save_callback): moved this function here.
17394         * app/paginate_psprint.c (paginate_psprint): if not in fit to mode,
17395         align page boundaries to the origin.
17397         * app/diagram.c (diagram_update_extents): redraw the diagram if the
17398         scaling factor changes while updating the extents.  This is so the
17399         page breaks get redrawn correctly.
17401         * app/pagesetup.c (pagesetup_apply): added diagram_flush call when
17402         applying changes.
17404         * app/grid.c (grid_draw): draw page breaks as well as grid lines.
17405         For normal mode, use (0,0) as the origin.  For `fit to' mode, use
17406         the corner of the bounding box.
17408         * app/pagesetup.c (create_page_setup_dlg): load new paper attributes
17409         into page setup dialog.
17410         (pagesetup_apply): apply new `fit to' attributes to the diagram.
17412         * app/load_save.c (diagram_load): load new paper `fit to' attributes.
17413         (diagram_data_save): save `fit to' data.
17415         * lib/diagramdata.c (new_diagram_data): initialise `fit to' members.
17416         (data_update_extents): when in `fit to' mode, update scale factor
17417         when we update the extents.
17419         * lib/diagramdata.h (PaperInfo): added `fit to' members to PaperInfo
17420         structure.
17422         * .../.cvsignore: added some cvsignore files to quieten cvs.
17423         
17424         * app/pagesetup.c (pagesetup_changed): added code to change the
17425         scaling/fit to values as you change the options in the page setup
17426         dialog.  I haven't added code so that the fit to options are saved
17427         though.
17429         * app/diapagelayout.[ch]: changed the scaling portion of the widget
17430         to make it easier to set a `fit to' style scaling factor.
17432 2000-01-27 Cyrille Chepelov <chepelov@calixo.net>
17433         * lib/neworth_conn.[ch]: (NEW) Temporary (hopefully) fork of orth_conn,
17434         but connpoint_line-based, so that there's a connection point at the 
17435         middle of each segment. Currently only the SADT arrow uses this.
17437         * objects/SADT/* (NEW): SADT (both idf0 and idf1) support.
17438         
17439 2000-01-26 Cyrille Chepelov <chepelov@calixo.net>
17440         * lib/lazyprops.[ch]:(NEW) Added a bunch of macros for loading, 
17441         saving and editing of properties (and default properties). 
17442         See the new objects (GRAFCET, SADT, chonograms) for examples.
17443         For already too hairy stuff, see objects/chronogram/chronoline.c.
17445         * lib/connpoint_line.[ch] (NEW): This subobject manages a line of 
17446         evenly spaced connection points, which the user can add or remove at
17447         will. An object can own several connection point lines. See the SADT
17448         Box, or the GRAFCET vergents for examples.
17450         * lib/dummy_dep.h: added dependencies to new files. Told gcc to keep 
17451         quiet about unused stuff.
17453         * objects/GRAFCET (NEW):
17454         * samples/grafcet.dia (NEW):
17455         Added support for GRAFCET charts. 
17457         * objects/chronogram (NEW):
17458         * samples/chronograms.dia (NEW):
17459         Added support for chronograms (feature requested by Ronald L. Chichest;
17460         I found I'd use it often, too).
17462         * objects/standard/line.c: Replace the middle connectionpoint by 
17463         a whole connection point line, which defaults to one point (hint, 
17464         hint). New Line object menu to take advantage of this. 
17465         "Bothwards" compatibility is preserved (although you may loose 
17466         connections if you load a newer file in a older dia).
17468         * app/lineprops_area.c:
17469         * lib/arrows.[ch]:
17470         * lib/widgets.c: Added hollow and filled ellipse arrow head type. 
17471         (feature requested by Benjamin Kahn).
17472         Merged in Steffen Macke's slashed arrow head type.
17474         * app/Makefile.am (app/run_dia.sh actually):
17475         Added $DEBUGGER in front of dia's invocation, so that
17476         you can call "DEBUGGER=ddd app/run_dia.sh" (maybe naive, but useful).
17477         Added $(EFENCE) to app/dia's LDFLAGS, so that you can do 
17478         "EFENCE=-lefence" to link with Electric Fence.
17480         * configure.in: Made gcc do more aggressive optimisations on i386, and
17481         enabled warnings.
17482         
17483 2000-01-24  James Henstridge  <james@daa.com.au>
17485         * lib/geometry.[ch]: added inline versions of functions.  Used
17486         glib's G_INLINE_FUNC stuff, so it should still work on systems
17487         without inline funcs.
17489         * plug-ins/cgm/cgm.c (draw_ellipse, fill_ellipse): fixed up so that
17490         it outputs the correct element id for the ellipse objects.
17492 2000-01-24 Cyrille Chepelov <chepelov@calixo.net>
17494         * lib/object.[ch]: added object_add_connectionpoint_at, similar to
17495         object_add_handle_at. Message typo fixed.
17496         
17497         * lib/sheet.c (load_register_sheet):
17498         potential bug fixed (warning hunt).
17500         * objects/custom/custom.c (custom_object_load): disabled an assertion
17501         which made dia abort upon failure to load a shape file. Fixed a
17502         subsequent crash. 
17504         * objects/custom/shape_info.c (load_shape_info): Made the custom 
17505         shape load code ignore XML comments between <?xml ...?> and the 
17506         root object (mostly useful to put the emacs magic comments).
17507         
17508         * app/load_save.c: Made dia do backup copies of files when saving,
17509         and complain in case of failure.
17511 2000-01-24  Cyrille Chepelov  <chepelov@calixo.net>
17513         * AUTHORS: fixed my address (ISP thought it was a great idea to change
17514         the domain name)
17515         
17516         * configure.in:
17517         * shapes/Contact:
17518         * shapes/Contact/*:
17519         * sheets/Contact.sheet:
17520         * sheets/Makefile.am:
17521         Added support for Contact and LADDER charts.
17523         * dia.desktop: Added a French translation.
17524         
17525 2000-01-23  James Henstridge  <james@daa.com.au>
17527         * app/commands.c (help_about_callback): don't die if can't load
17528         logo image.
17530         * app/render_gdk.c (bezier_add_lines): sanity check to try to weed
17531         out NaN's when performing bezier curve subdivision.
17533         * objects/custom/custom_object.c: initialise memory of Custom structs
17534         to zero.
17536         * app/render_svg.c (draw_image): added image support to the XML
17537         output filter.  The image is just referenced, rather than being
17538         included inline, so if you copy the SVG file somewhere else, you
17539         may need to move the images or fix up the links.
17541         * plug-ins/cgm/cgm.c (draw_string): output a text colour element,
17542         so the text is not just displayed in black all the time.
17544 2000-01-15  Fredrik Hallenberg  <hallon@lysator.liu.se>
17546         * configure.in: fixed libpopt test so we wont try to build with
17547         too old libpopt.
17549 1999-12-18  Yuri Syrota  <rasta@renome.rovno.ua>
17551         * configure.in: Added "uk" to ALL_LINGUAS.
17553 1999-12-24  James Henstridge  <james@daa.com.au>
17555         * po/ru.po: updated russian translation from Valek Filippov.
17556         
17557         * app/render_svg.c (new_svg_renderer): make output use 19991203
17558         version of SVG DTD.  Use viewBox to set the extents of the view.
17560         * INSTALL (FONTS): updated locations of gnome-xml and imlib.  List
17561         ftp.gnome.org as the download.
17563         * TODO (TODO): weeded out completed todo items and added a few extra.
17565         * Makefile.am (EXTRA_DIST): added documentation to EXTRA_DIST.
17567         * doc/sheet.dtd: first stab at a DTD for the sheet files.  It would
17568         be good to get rid of the object/shape distinction and separate
17569         the custom shape code out from the main application.
17571         * objects/custom/README, diagram.dtd: moved to new doc directory.
17572         Renamed the custom shapes README to custom-shapes.  Also updated
17573         custom shape docs a bit and removed the section on sheet files, as
17574         that has changed a bit.
17576         * plug-ins/cgm/cgm.c (draw_image): give an error if the row length
17577         of the image data is larger than the maximum cell array.  I should
17578         add code to break scan lines down further in this case, but for now
17579         an error message is better than an infinite loop.
17581         * app/filedlg.c (file_export_ok_callback): show a dialog if we
17582         couldn't determine the export filter to use.
17584         * app/commands.c (help_about_callback): fixed up about box logo
17585         expose bug.  Now just use a GtkPixmap widget rather than a
17586         GtkDrawingArea and calling gdk_imlib_paste_image.
17588         * app/Makefile.am (EXTRA_DIST): added print stuff to extra dist,
17589         because automake does not always get things right.
17591         * configure.in: updated version number to 0.83.
17593         * app/preferences.c (prefs_save): 
17594         * app/render_svg.c (new_svg_renderer): "wt" is not a valid flag string
17595         for fopen.  Text is the default file mode anyway.
17597         * app/commands.c (file_save_as_dialog_ok_callback, file_new_callback): 
17598         * app/grid.c (grid_x_update, grid_y_update, grid_show_dialog): 
17599         * app/load_save.c (write_objects, write_connections): 
17600         * app/filedlg.c (file_export_ok_callback): 
17601         * lib/dia_xml.c (data_add_int, data_add_enum, data_add_real): 
17602         * lib/dia_xml.c (data_add_point, data_add_rectangle): 
17603         * lib/font.c (init_x11_font, font_get_gdkfont): changed calls to
17604         snprintf to calls to g_snprintf.
17606         * plug-ins/cgm/cgm.c (export_cgm): write the original dia file name
17607         as the picture name.
17609 1999-12-23  James Henstridge  <james@daa.com.au>
17611         * plug-ins/cgm/cgm.c (write_int32, write_int16): fixed up output of
17612         negative numbers.  This fixes the upside down text problem I was
17613         having previously.
17614         (draw_image): implemented the image code.  It will try to split the
17615         image data up into bands if it is too big to fit into a single
17616         cgm cell array element.  It will have problems if you try to insert
17617         an image wider than about 10,000 pixels though.
17619         * Makefile.am: use gnomedatadir for the files that need to be
17620         installed in gnome's datadir.  This is mainly to help people doing
17621         packages for weird setups.
17623 1999-12-22  James Henstridge  <james@daa.com.au>
17625         * plug-ins/cgm/cgm.c: added support for text.  Now only images and
17626         beziers are left to do.  The text seems to be the wrong way up
17627         still.  This is probably a problem with character orientation
17628         element, but I have used what the settings given in the standard.
17629         Other than this, the CGMs dia produces are readable (and displayable)
17630         by ralcgm and corel draw.
17631         (draw_string): subtract from the X coord rather than the Y coord for
17632         center and right aligned text.
17634         * plug-ins/cgm/cgm.c: a few fixups for the output.  Use REALSIZE as
17635         the size of a real number, and changed name of write_double to
17636         write_real.  Consider changing to fixed real encoding.  Also, now
17637         all element headers are correct.  Once the real number encoding is
17638         fixed, only text, beziers and images are left to do.
17640 1999-12-21  James Henstridge  <james@daa.com.au>
17642         * Makefile.am (SUBDIRS): recurse into plug-ins.
17644         * configure.in: add plug-ins directory makefiles to list.
17646         * plug-ins/cgm/cgm.c: start of cgm export filter.  Beziers and text
17647         not done yet.  Also, the output files are not quite correct.
17649         * app/render_eps.c (print_reencode_font): don't reencode the Symbol
17650         font.  It doesn't work if you do.
17652 1999-12-20  James Henstridge  <james@daa.com.au>
17654         * app/app_procs.c (app_init): don't use diagram_export_to_eps to
17655         export the files.  Instead, use filter_guess_export_filter to
17656         guess the correct format to save in and use the appropriate filter.
17657         It defaults to postscript for compatibility.
17659         * app/diagram.[ch] (diagram_export_to_eps): removed export to eps
17660         function.
17662         * app/commands.[ch]: removed export to eps functions.
17664         * app/menus.c: removed export to eps menu items.
17666         * app/app_procs.c: register new export filters.
17668         * app/load_save.[ch]: define dia native export filter.
17670         * app/render_eps.[ch]: define eps export filter.
17672         * lib/filter.h: added diafilename argument to the DiaExportFunc
17673         prototype.  This is useful for putting the source of the diagram
17674         into the output file for instance.
17676         * app/app_procs.c (app_init): register the SVG export filter.  Have
17677         to get EPS code converted to this API, and maybe also allow saving in
17678         DIA's native format from the export dialog.  In fact, it is now
17679         possible to load an export filter from a shared library and it will
17680         integrate into the interface correctly.
17682         * app/menus.c: removed references to the SVG renderer.
17684         * app/commands.[ch]: removed svg stuff.
17686         * app/diagram.[ch]: removed diagram_export_to_svg function.
17688         * app/render_svg.[ch]: added a DiaExportFilter structure for this
17689         renderer.
17691         * app/filedlg.[ch]: code for the new export diagram dialog.  Will
17692         probably move the open/save dialogs to this file as well.
17694 1999-12-19  James Henstridge  <james@daa.com.au>
17696         * lib/filter.[ch]: start of interface for generalised handling of
17697         filters.  I have only done code for export filters so far.  I still
17698         need to do the gui for this, and convert the current SVG and EPS
17699         filters to the new API.
17701         * lib/bezier_conn.c (bezierconn_copy): fix up copy operation.  We
17702         weren't setting the last handle correctly.  It was actually assigning
17703         to the wrong position in the handles array, so the last handle was
17704         left as NULL, which caused the segfault.
17706         * objects/standard/image.c (image_copy): modified routine so that
17707         it just adds a reference to the DiaImage structure in the new image
17708         object.  This seems to have cleared up the problems with copying
17709         image objects.
17711         * dia.spec: spec file additions from John Gotts.
17713 1999-12-12  James Henstridge  <james@daa.com.au>
17715         * configure.in (GNOME_LIBS): updated version number to 0.82.  0.82
17716         has not been released yet though.
17718         * Makefile.am (EXTRA_DIST): distribute diagram.dtd.
17720         
17721         The following based on a patch from Lars Clausen:
17722         
17723         * objects/standard/bezier.c (bezierline_move_handle): when performing
17724         the initial drag of the bezierline, move the control points to keep
17725         the line straight.
17727         * lib/bezier_conn.c (bezierconn_add_segment): when adding a segment,
17728         make the new control points a bit closer to the major point.
17730         * app/create_object.c (create_object_motion): use HANDLE_MOVE_CREATE
17731         as the reason for the move.
17732         (create_object_button_release): use HANDLE_MOVE_CREATE_FINAL as the
17733         move reason.
17735         * lib/handle.h: new handle move reasons.
17737 1999-12-09  James Henstridge  <james@daa.com.au>
17739         * dia.spec: include the new files in RPMs.
17741         * Makefile.am: install these new files.
17743         * dia.keys.in: file describing actions and icon for dia diagrams for
17744         use in the gnome file manager.
17745         
17746         * dia.mime: a file defining the application/x-dia-diagram mime type.
17747         
17748         * dia-diagram.png: an icon for dia diagrams.
17750 1999-12-08  James Henstridge  <james@daa.com.au>
17752         * plug-ins/python/pydia-diagram.c: added heaps of new methods.
17754         * plug-ins/python/pydia-display.[ch]: wrapper for display.
17756         * objects/standard/ellipse.c: applied Lars's patch to optionally not
17757         draw the background of the ellipse.
17759         * app/load_save.c (read_connections): do some sanity checking on the
17760         handle and connection point numbers before performing the object
17761         connection.
17763         * lib/bezier_conn.c (bezierconn_load): give the correct number of
17764         handles when loading a BezierConn.
17766 1999-12-07  Kjartan Maraas  <kmaraas@online.no>
17768         * sheets/*.sheet: Finished Norwegian translations.
17769         
17770 1999-12-07  James Henstridge  <james@daa.com.au>
17772         * plug-ins/python/diamodule.c (PyDia_Load): load diagram function.
17773         (PyDia_GetObjectType): find object type function.
17775         * plug-ins/python/pydia-diagram.c (PyDiaDiagram_Save): added a save
17776         method for diagrams.
17778         * plug-ins/python/pydia-object.c: added methods for DiaObject and
17779         DiaObjectType.
17781         * AUTHORS: added Lars and Cyrille to the authors file.
17783         * objects/standard/bezier.c (bezierline_add_segment_callback): place
17784         new point correctly.
17786         * lib/bezier_conn.h (bezierconn_closest_segment): fixed prototype.
17788         * lib/bezier_conn.c: applied Lars's patch for placement of the new
17789         point when adding a segment to a BezierConn.
17791 1999-12-06  James Henstridge  <james@daa.com.au>
17793         * plug-ins/python/test.py: test script for the python plug-in.
17795         * plug-ins/python/python.c: this file contains the plug-in startup
17796         code for the python plugin.  Right now, it just initialises the
17797         dia module and executes a script.
17799         * objects/standard/polyline.c (polyline_draw): fix start arrow size.
17801         * objects/standard/bezier.c (bezierline_draw): draw control lines for
17802         bezier curve if we are using an interactive renderer (ie. only if
17803         displaying to the screen).
17805         * lib/bezier_conn.[ch] (bezierconn_draw_control_lines): function
17806         to draw control lines on to a bezier curve.  Based on implementation
17807         from Lars.
17809         * objects/standard/bezier.c (bezierline_delete_segment_callback):
17810         calculate segment number using closest_segment rather than
17811         closest_handle.  Sometimes the closest handle is part of a different
17812         segment.
17813         (bezierline_draw): use correct size for start arrow.
17815         The next few entries are from Peter Moulder <reiter@netspace.net.au>:
17816         * lib/geometry.c (distance_line_point): added notes to documentation
17817         in comment.
17818         * app/object_ops.c (object_list_align_v): 
17819         (object_list_align_h): fix of by one error when calculating free space
17820         for equal distance alignment.
17821         * app/menus.c (objects_align_h, objects_align_v): include align
17822         adjacent menu items in the gnome version of the menus.
17823         * app/diagram.c (diagram_update_menu_sensitivity): set sensitivity on
17824         align adjacent menu items correctly.
17827         * lib/dummy_dep.h (dummy_dep): added bezierconn to dummy dependency
17828         table.
17830         * objects/standard/bezier.c: converted bezierline to use BezierConn.
17831         Still a few bugs.  It crashes on deleting line segments.
17833         * lib/Makefile.am (libdia_a_SOURCES): added BezierConn to libdia.
17835 1999-12-05  James Henstridge  <james@daa.com.au>
17837         * lib/bezier_conn.[ch]: start of BezierConn object
17839         * app/interface.c: add bezierline to toolbox.
17841         * objects/standard/standard.c: initialise bezierline.
17843         * objects/standard/bezier.c: new object from Lars R. Clausen.  I have
17844         made a few modifications to get it working nicely.  It still needs
17845         a bit of work though.  Maybe create a BezierConn object in lib.
17847 1999-12-02  James Henstridge  <james@daa.com.au>
17849         * plug-ins/python/pydia-*.c: fixed compile errors in these files.
17850         
17851         * plug-ins/python/Makefile.am: tried building everything.  It is
17852         building as a library at the moment.  I will have to convert it
17853         to a libtool library and add some initialisation code.
17854         
17855         * plug-ins/python/diamodule.c: start of the dia module, using the
17856         other object wrappers.  Not complete.
17858 1999-12-01  James Henstridge  <james@daa.com.au>
17860         * plug-ins/python/pydia-object.c (PyDiaObject_GetAttr): implement
17861         the handles and connections attributes.
17863         * plug-ins/python/pydia-layer.c: added functions that use
17864         ConnectionPoint's.
17866         * plug-ins/python/pydia-handle.[ch]: wrapper for Handle's.
17868         * plug-ins/python/pydia-cpoint.[ch]: wrapper for ConnectionPoint's.
17870         * plug-ins/python/pydia-*.[ch]: starts of python scripting plug-in.
17871         I am currently wrapping the basic elements in the diagram in python
17872         objects -- nothing to see or play with yet.
17874 1999-11-30  Alexander Larsson  <alla@lysator.liu.se>
17876         * AUTHORS:
17877         * HACKING:
17878         James Henstridge <james@daa.com.au> is now the maintainer of Dia.
17880 1999-11-29  Alexander Larsson  <alla@lysator.liu.se>
17882         * configure.in:
17883         * po/ru.po:
17884         Added russian translation from Valek Filippov <frob@df.ru>
17886 1999-11-24  James Henstridge  <james@daa.com.au>
17888         * sheets/UML/*: 
17889         * sheet/ER/*: moved extra sheet pixmaps back to separate dirs as
17890         discussed with Alex.  Also added extra makefiles so that make install
17891         works correctly.
17893 1999-11-23  Alexander Larsson  <alla@lysator.liu.se>
17895         * app/preferences.[ch]:
17896         * app/display.c:
17897         Added snap to grid preference.
17898         Patch from Michael Leslie <mles@springboardwireless.com>
17900 1999-11-21  Alexander Larsson  <alla@lysator.liu.se>
17902         * app/load_save.c:
17903         * lib/dia_xml.c:
17904         * lib/sheet.c:
17905         * lib/text.c:
17906         * objects/custom/shape_info.c:
17907         All strings returned by libxml must be freed with free, not
17908         g_free, or there will be problems if you use memory debugging
17909         in glib.
17910         
17911 1999-11-21  Alexander Larsson  <alla@lysator.liu.se>
17913         * app/create_object.[ch]:
17914         * app/menus.c:
17915         * app/tool.[ch]:
17916         * app/commands.[ch]:
17917         * app/pixmaps.h:
17918         * app/interface.[ch]:
17919         Reverted the tool menu patch. It has some 'issues'.
17920         I liked it though, so it'll probably return.
17922 1999-11-21  Alexander Larsson  <alla@lysator.liu.se>
17924         Fixed a lot of memory leaks. Thanks to Bruce Mitchener
17925         <bruce@cybersight.com> for some purify runs and analysis.
17926         Also a great thank you to Owen Taylor for creating MemProf, a
17927         free memory leak detector that was used to find and verify a
17928         lot of these fixes.
17929         
17930         * app/diagram.c:
17931         * app/paginate_psprint.c:
17932         * app/render_eps.[ch]:
17933         * app/render_svg.[ch]:
17934         Free renderers.
17936         * app/interface.c:
17937         Don't add a reference to ddisp->shell. Why was this done in
17938         the first place?
17940         * app/load_save.c:
17941         * lib/dia_xml.c:
17942         * lib/sheet.c:
17943         * lib/text.c:
17944         Free all strings returned from xmlGetProp
17946         * app/modify_tool.c:
17947         Plug leak.
17949         * objects/custom/custom.c:
17950         Use closedir() after opendir().
17952         * objects/custom/shape_info.c:
17953         User g_free() instead of "if (tmp) free(tmp)".
17955         * sheets/ER.sheet:
17956         Add newline at end of file.
17957         
17959 1999-11-20  Alexander Larsson  <alla@lysator.liu.se>
17961         Based on patch from Patrick Reynolds <reynolds@cs.duke.edu>
17962         Adds tool menu and keyboard shortcuts.
17964         * app/create_object.[ch]:
17965         Use tool_set() instead of tool_reset().
17966         create_create_object_tool() takes extra type argument
17968         * menus.c:
17969         Add tools menu.
17970         
17971         * tool.[ch]:
17972         Moved tool_data here, export it.
17973         Add separate tool type for all create objects tools.
17974         new functions tool_set().
17976         * commands.[ch]:
17977         New callback tool_set_callback.
17979         * pixmaps.h:
17980         Moved some pixmaps to interface.c.
17981         
17982         * interface.[ch]:
17983         Remove tool_data array (moved to tool.c).
17984         Use the tool_data from tool.c.
17985         Remove modify_tool_button global var.
17986         
17987 1999-11-20  Alexander Larsson  <alla@lysator.liu.se>
17989         Patch from Patrick Reynolds <reynolds@cs.duke.edu>
17990         
17991         * app/app_procs.c:
17992         Interprets command-line arguments as files to open even when
17993         HAVE_POPT is not defined.
17995         * app/magnify.c:        
17996         Shift-clicking when zooming zooms out, like the Gimp.
17998         * app/menus.c:
17999         Has hotkeys for zoom-100% and snap-to-grid.
18001 1999-11-17  James Henstridge  <james@daa.com.au>
18003         * app/scroll_tool.c (scroll_motion): fixed shift style scrolling so
18004         that it is not jumpy.
18006         * app/Makefile.am (EXTRA_DIST): added extra files to extra dist list.
18008         * app/scroll_tool.c (scroll_motion): added `grabbing hand' type
18009         scrolling by pressing the shift key when using the scroll tool.
18011         * sheets/Makefile.am: fixed makefile so that install actually works
18012         if the directories $(pkgdatadir)/sheets/UML and $(pkgdatadir)/sheets/ER
18013         don't exist.
18014         (SHEETS): install Circuit.sheet
18016 1999-11-15  Alexander Larsson  <alla@lysator.liu.se>
18017         Patch from Cyrille Chepelov <chepelov@rmcnet.fr>
18019         * sheets/Circuit.sheet:
18020         * sheets/ER.sheet:
18021         * sheets/FS.sheet:
18022         * sheets/Flowchart.sheet:
18023         * sheets/UML.sheet:
18024         * sheets/network.sheet:
18025         * sheets/sybase.sheet:
18026         Changed name space
18028         * sheets/Circuit.sheet:
18029         added some missing French translations
18031         * lib/sheet.c:
18032         killed the temporary sheet namespace
18034         * objects/custom/custom.c:
18035         obsolete comment cleaned up
18037 1999-11-12  Alexander Larsson  <alla@lysator.liu.se>
18039         * configure.in:
18040         * po/pt.po:
18041         Added portugese translation from Pedro Morais
18042         <pmmm@rnl.ist.utl.pt>
18044 1999-11-11  Alexander Larsson  <alla@lysator.liu.se>
18046         Changed all sheets to be specified in xml.
18047         All sheet objects removed from the C code.
18048         Patch from Cyrille Chepelov <chepelov@rmcnet.fr>
18049         
18050         * Makefile.am:
18051         * configure.in:
18052         Adding shapes dir.
18053         Updated version to 0.81cvs.
18054         
18055         * app/Makefile.am:
18056         Update run_dia.sh with sheet-dir.
18057         
18058         * app/app_procs.c:
18059         Load all sheets on startup.
18060         Create sheet directory first time.
18061         Don't call custom_register_sheets().
18063         * lib/Makefile.am:
18064         Add sheetdir define
18066         * lib/custom.h:
18067         Remove custom_register_sheets().
18069         * lib/sheet.[ch]:
18070         Add sheet loading code.
18072         * sheet/Circuit.sheet:
18073         * sheet/ER.sheet:
18074         * sheet/FS.sheet:
18075         * sheet/Flowchart.sheet:
18076         * sheet/UML.sheet:
18077         * sheet/network.sheet:
18078         * sheet/sybase.sheet:
18079         Added sheet files.
18081         * sheet/ER/weakentity.xpm:
18082         * sheet/UML/aggregation.xpm
18083         * sheet/UML/umlclass_template.xpm
18084         Added sheet pixmaps.
18085         These are moved from their old places.
18087         * sheet/.cvsignore:
18088         Shut up cvs.
18090         * objects/*/*.c:
18091         Removed sheet objects and sheet registration.
18092         
18093         * objects/ER/Makefile.am:
18094         * objects/ER/pixmaps/weakentity.xpm:
18095         * objects/UML/Makefile.am:
18096         * objects/UML/pixmaps/aggregation.xpm:
18097         * objects/UML/pixmaps/umlclass_template.xpm:
18098         Removed alternative pixmaps. (Moved to sheet).
18100         * objects/custom/Makefile.am:
18101         * objects/custom/load_sheet.[ch]:
18102         Removed old sheet loading code.
18103         
18104         * objects/custom/custom.c:
18105         Load all shapes instead of sheets.
18106         Removed custom_register_sheets().
18108         * objects/custom/custom_object.c:
18109         Added debug code.
18111         * objects/custom/shape_info.[ch]:
18112         Added shape_info_getbyname().
18114         * objects/flowchart/Makefile.am:
18115         * objects/flowchart/collate.shape            
18116         * objects/flowchart/delay.shape              
18117         * objects/flowchart/display.shape            
18118         * objects/flowchart/document.shape           
18119         * objects/flowchart/extract.shape            
18120         * objects/flowchart/flowchart.c              
18121         * objects/flowchart/intstorage.shape         
18122         * objects/flowchart/magdisk.shape            
18123         * objects/flowchart/magdrum.shape            
18124         * objects/flowchart/magtape.shape            
18125         * objects/flowchart/manualinput.shape        
18126         * objects/flowchart/manualop.shape           
18127         * objects/flowchart/merge.shape              
18128         * objects/flowchart/offlinestore.shape       
18129         * objects/flowchart/offpageconn.shape        
18130         * objects/flowchart/or.shape                 
18131         * objects/flowchart/predefdproc.shape        
18132         * objects/flowchart/preparation.shape        
18133         * objects/flowchart/punchedcard.shape        
18134         * objects/flowchart/punchedtape.shape        
18135         * objects/flowchart/sort.shape               
18136         * objects/flowchart/sumjunction.shape        
18137         * objects/flowchart/terminal.shape           
18138         * objects/flowchart/transaction.shape        
18139         * objects/flowchart/transmittape.shape       
18140         * objects/flowchart/pixmaps/collate.xpm      
18141         * objects/flowchart/pixmaps/delay.xpm        
18142         * objects/flowchart/pixmaps/display.xpm      
18143         * objects/flowchart/pixmaps/document.xpm     
18144         * objects/flowchart/pixmaps/extract.xpm      
18145         * objects/flowchart/pixmaps/intstorage.xpm   
18146         * objects/flowchart/pixmaps/magdisk.xpm      
18147         * objects/flowchart/pixmaps/magdrum.xpm      
18148         * objects/flowchart/pixmaps/magtape.xpm      
18149         * objects/flowchart/pixmaps/manualinput.xpm  
18150         * objects/flowchart/pixmaps/manualop.xpm     
18151         * objects/flowchart/pixmaps/merge.xpm        
18152         * objects/flowchart/pixmaps/offlinestore.xpm 
18153         * objects/flowchart/pixmaps/offpageconn.xpm  
18154         * objects/flowchart/pixmaps/or.xpm           
18155         * objects/flowchart/pixmaps/predefdproc.xpm  
18156         * objects/flowchart/pixmaps/preparation.xpm  
18157         * objects/flowchart/pixmaps/punchedcard.xpm  
18158         * objects/flowchart/pixmaps/punchedtape.xpm  
18159         * objects/flowchart/pixmaps/sort.xpm         
18160         * objects/flowchart/pixmaps/sumjunction.xpm  
18161         * objects/flowchart/pixmaps/terminal.xpm     
18162         * objects/flowchart/pixmaps/transaction.xpm  
18163         * objects/flowchart/pixmaps/transmittape.xpm 
18164         Moved shapes and their pixmaps to shapes/flowchart
18166         * shapes/Circuit/Makefile.am:
18167         * shapes/Circuit/index.sheet:
18168         Removed index.sheet.
18169         
18170         * shapes/Makefile.am:
18171         * shapes/flowchart/Makefile.am:
18172         * shapes/flowchart/*.shape:
18173         * shapes/flowchart/*.xpm:
18174         Added flowchart shapes. (Moved from objects/flowchart)
18175         
18177 1999-11-07  Fredrik Hallenberg  <hallon@lysator.liu.se>
18179         * app/app_procs.c: Fixed popt stuff.
18181 1999-11-01  James Henstridge  <james@daa.com.au>
18183         * shapes/Circuit/[hv]led_de.{shape,xpm}: new circuit shapes from
18184         Andreas Scherf.
18186 1999-10-31  Alexander Larsson  <alla@lysator.liu.se>
18188         * dia.spec:
18189         * configure.in:
18190         Update version to 0.81.
18191         
18192         * NEWS:
18193         Update with news for 0.81.
18194         
18195         * shapes/Circuit/*:
18196         * shapes/Circuit_eu/*:
18197         Moved european circuit objects to Circuit sheet.
18199 1999-10-31  Alexander Larsson  <alla@lysator.liu.se>
18200         
18201         * lib/diagramdata.[ch]:
18202         Added layer_set_object_list() function.
18204         * app/undo.[ch]:
18205         Added support for undo of reordered objects.
18206         Fix the undo of delete to keep the right order on undo.
18207         
18208         * app/diagram.c:
18209         changed loop to object_add_updates_list() calls.
18210         Added undo support to bring to front/back.
18212         * app/disp_callbacks.c:
18213         * app/paginate_psprint.c:
18214         Remove warnings.
18216 1999-10-30  Alexander Larsson  <alla@lysator.liu.se>
18218         This plugs some leaks. Thanks to
18219         Bruce Mitchener <bruce@cybersight.com> for running
18220         Dia through purify for me.
18221         
18222         * app/app_procs.c:
18223         Free displays and diagrams on exit.
18225         * app/modify_tool.c:
18226         Free gc when freeing tool.
18228         * lib/diagramdata.c:
18229         Free layer name.
18230         
18231         * app/display.c:
18232         Free update and display lists when destroying display.
18233         
18234         * lib/diagramdata.c:
18235         Don't leak layer name.
18237         * objects/custom/load_sheet.c: 
18238         * objects/custom/shape_info.c:
18239         Free loaded xml documents.
18241 1999-10-28  Alexander Larsson  <alla@lysator.liu.se>
18243         * app/commands.c:
18244         * app/object_ops.[ch]:
18245         Add undo handling to alignment ops.
18246         Based partially on patch by Dan Cohn <dan@internap.com>.
18248         * objects/standard/image.c (image_move_handle):
18249         Don't divide by zero for small images.
18250         Patch by Dan Cohn <dan@internap.com>.
18252         * objects/UML/class.c (umlclass_destroy): 
18253         * objects/custom/custom_object.c (custom_destroy):
18254         Don't free connectionpoints before calling element_destroy
18255         which unconnects them.
18257 1999-10-26  Alexander Larsson  <alla@lysator.liu.se>
18259         * objects/custom/custom_object.c: 
18260         Load and save padding too. Fixes strange load crashes.
18262         * app/group.c (group_destroy):
18263         Don't unconnect already freed connectionpoints when
18264         destroying group. Probably fixes bug reported by
18265         Elliot Lee <sopwith@redhat.com>.
18267         * app/render_gdk.c:
18268         Don't crash on zero-size (broken) bezier curves.
18269         Different sort of fix. This should work on closed bezier curves
18270         too.
18272         * objects/standard/textobj.c:
18273         Activate default properties dialog for Text objects.
18275         * app/render_eps.c: 
18276         * app/load_save.c:
18277         * app/preferences.c:
18278         * app/render_svg.c:
18279         fopen files in binary or text mode.
18281 1999-10-26  Alexander Larsson  <alex@cendio.se>
18283         * app/render_gdk.c (bezier_add_lines):
18284         Don't crash on zero-size (broken) bezier curves.
18285         Fixes a crashing bug.
18287 1999-10-25  James Henstridge  <james@daa.com.au>
18289         * app/Makefile.am (run_dia.sh): allow dia to find internal shape files
18290         before it is installed.
18292         * objects/flowchart/flowchart.c: use relative paths to find shapes.
18294         * objects/custom/custom.c (custom_object_load): take file names
18295         relative to $(pkgdatadir)/shape-internal, and check an environment
18296         variable for an alternative directory.
18298         * app/...: added copyright messages to the top of my new code.
18300         * app/paginate_psprint.c: some general clean ups.  Also, give an error
18301         dialog if we can't open the command or output file for writing.
18303         * app/diapagelayout.c (dia_page_layout_set_orientation): fixed
18304         function so it would set orientation to landscape correctly.
18306         * app/paginate_psprint.c: use the paper settings that come with
18307         the diagram.  Also implemented landscape printing.
18309         * app/render_eps.c (new_psprint_renderer): use diagram paper metrics
18310         in PS header.
18312         * app/commands.[ch] (file_pagesetup_callback): added callback for
18313         the page setup dialog.
18315         * app/menus.c: added page setup menu item.
18317         * app/pagesetup.[ch]: implementation of the page setup dialog.
18319         * app/diapagelayout.[ch]: added accessors for the scaling factor.
18320         
18321         * app/load_save.c (diagram_load): load paper information from save
18322         file.
18323         (diagram_save): save the paper info.
18325         * lib/diagramdata.c (new_diagram_data): initialise paper info section
18326         of DiagramData structure.
18327         (diagram_data_destroy): free the paper name.
18329         * lib/diagramdata.h: added a paper member to the DiagramData structure
18330         that holds the page layout info for a diagram.
18332 1999-10-21  Alexander Larsson  <alla@lysator.liu.se>
18334         * objects/flowchart/box.c:
18335         * objects/flowchart/ellipse.c:
18336         * objects/flowchart/diamond.c:
18337         * objects/flowchart/parallelogram.c:
18338         Load and save padding too. Fixes strange load crashes.
18340 1999-10-21  Alexander Larsson  <alla@lysator.liu.se>
18342         * app/app_procs.c (name_is_lib):
18343         .dll, .sl and .so.0.0.0 are also libraries.
18345 1999-10-20  James Henstridge  <james@daa.com.au>
18347         * configure.in: added extra makefile.
18348         
18349         * shapes/Circuit_eu/*: a new set of european circuit shapes from
18350         Andreas Scherf <scherfa@fh-trier.de>.  Made a few small modifications
18351         (added fuses to makefile, fill the area of some of the components).
18353 1999-10-19  Alexander Larsson  <alla@lysator.liu.se>
18355         * lib/Makefile.am:
18356         * app/Makefile.am: 
18357         Add GDK_IMLIB_CFLAGS to includes.
18358         Changed --export-dynamic to -export-dynamic
18360         * lib/widgets.c:
18361         * objects/UML/message.c:
18362         Removed c++ comment.
18364         * lib/render_store.[ch]:
18365         Don't use empty structure. That is not Ansi C.
18367 1999-10-19  James Henstridge  <james@daa.com.au>
18369         * app/diapagelayout.c (dia_page_layout_init): use DiaUnitSpinner's for
18370         the margin entries, as they allow interpretation of units.
18371         (paper_size_change): display the current page dimensions.
18373         * app/diaunitspinner.[ch]: a widget derived from the standard
18374         GtkSpinButton that tries to take units into account.  So if you enter
18375         "1in" into the entry, it will convert it to 2.54cm.
18377 1999-10-18  Alexander Larsson  <alla@lysator.liu.se>
18379         * app/app_procs.c:
18380         Removed include of dlfcn.h
18382 1999-10-18  James Henstridge  <james@daa.com.au>
18384         * app/diapagelayout.c (paper_size_change, orient_changed): set upper
18385         bound on margin widths.  It is set to the paper width/height.
18387         * objects/flowchart/diamond.c (diamond_distance_from): fixed distance
18388         routine for the diamond.  This bug was found and fixed by Daniel Wang
18389         <danwang@CS.Princeton.EDU>
18391 Sun Oct 17 19:46:36 1999  ape@gandalf.spacetec.no  (Asbjorn Pettersen)
18393         * app/commands.c: Add <sys/types.h> before <sys/stat.h> to
18394         remove warning (OS/2 version).
18396 1999-10-17  Alexander Larsson  <alla@lysator.liu.se>
18398         * README:
18399         Put a pointer to objects/custom/README.
18400         
18401 1999-10-17  Alexander Larsson  <alla@lysator.liu.se>
18403         * dia.spec:
18404         Updated version to 0.80
18406         * configure.in:
18407         Updated version to 0.80cvs
18409 1999-04-08  Alexander Larsson  <alla@lysator.liu.se>
18411         * Released Dia 0.80
18412         Tag called DIA_0_80
18413         
18414 1999-10-17  Fredrik Hallenberg  <hallon@lysator.liu.se>
18416         * app/Makefile.am
18417         * lib/Makefile.am
18418         * objects/UML/Makefile.am
18419         * objects/ER/Makefile.am
18420         * objects/network/Makefile.am
18421         * objects/standard/Makefile.am
18422         * objects/FS/Makefile.am
18423         * objects/sybase/Makefile.am
18424         * objects/flowchart/Makefile.am
18425         * objects/custom/Makefile.am
18426         Added -I$(top_srcdir)/intl which is needed for
18427         --with-included-gettext.
18429         * POTFILES.in
18430         Updated.
18431         
18432         * po/sv.po
18433         Updated swedish translation.
18435 1999-10-16  Alexander Larsson  <alla@lysator.liu.se>
18437         * configure.in:
18438         Updated version number to 0.80.
18440         * KNOWN_BUGS:
18441         New file.
18443         * TODO:
18444         Updated. Moved bugs to KNOWN_BUGS.
18446         * NEWS:
18447         Updated with 0.80 release notes.
18448         
18449 1999-10-16  Alexander Larsson  <alla@lysator.liu.se>
18450         
18451         * lib/orth_conn.c:
18452         For backwards compatibility, make sure handle 0 and 1 are the
18453         first and last handle. Fixes compatibility with 0.41, breaks
18454         compatibility with cvs version.
18455         Fixed bug in undo/redo of adding deleting endpoint segments
18456         when the endpoint was connected.
18457         Start OrthConn objects with three segments.
18459 1999-10-16  James Henstridge  <james@daa.com.au>
18461         * objects/custom/custom_object.c (custom_update_data): changed
18462         resizing behaviour a bit so that shapes don't grow huge when you try
18463         to resize them to smaller than the size required by the text box.
18464         Also, now shapes will not grow with fixed aspect ratio when you enter
18465         text into them unless the shape has the fixed aspect ratio flag set.
18467 1999-10-15  James Henstridge  <james@daa.com.au>
18469         * objects/flowchart/flowchart.c: add new shapes to flowchart sheet.
18471         * object/flowchart/pixmaps/...: corresponding pixmaps for new shapes.
18473         * objects/flowchart/magdrum.shape: 
18474         * objects/flowchart/offlinestore.shape: 
18475         * objects/flowchart/punchedtape.shape: 
18476         * objects/flowchart/transmittape.shape: 
18477         * objects/flowchart/punchedcard.shape: new shapes.
18479         * objects/flowchart/flowchart.c: add new shapes to flowchart sheet.
18481         * object/flowchart/pixmaps/...: corresponding pixmaps for new shapes.
18483         * objects/flowchart/collate.shape:
18484         * objects/flowchart/delay.shape:
18485         * objects/flowchart/extract.shape:
18486         * objects/flowchart/intstorage.shape:
18487         * objects/flowchart/magdisk.shape:
18488         * objects/flowchart/magtape.shape:
18489         * objects/flowchart/merge.shape:
18490         * objects/flowchart/or.shape:
18491         * objects/flowchart/sort.shape:
18492         * objects/flowchart/sumjunction.shape: new shapes.
18494 1999-10-15  Alexander Larsson  <alla@lysator.liu.se>
18496         * TODO (BUGS):
18497         Added bug:
18498         Entering an erronous command as print command
18499         crashes dia.
18501         * app/paginate_psprint.c:
18502         Save all print dialog values for next time.
18503         
18504         * app/Makefile.am:
18505         Remove custom lib from DIA_LIB_PATH.
18507 1999-10-14  James Henstridge  <james@daa.com.au>
18509         * objects/flowchart/flowchart.c: add new shapes to flowchart sheet.
18511         * object/flowchart/pixmaps/...: corresponding pixmaps for new shapes.
18512         
18513         * objects/flowchart/offpageconn.shape: 
18514         * objects/flowchart/manualop.shape: 
18515         * objects/flowchart/preparation.shape: 
18516         * objects/flowchart/manualinput.shape: 
18517         * objects/flowchart/predefdproc.shape: 
18518         * objects/flowchart/terminal.shape: new shapes in the flowchart sheet.
18520 1999-10-13  James Henstridge  <james@daa.com.au>
18522         * app/diapagelayout.[ch]: added accessors to paper information.  The
18523         widget should be just about complete now.
18525         * app/diapagelayout.[ch]: fleshed out the page setup widget a bit more.
18526         It actually does something now.
18528 1999-10-12  James Henstridge  <james@daa.com.au>
18530         * app/pixmaps/portrait.xpm, app/pixmaps/landscape.xpm: support pixmaps
18531         for the page layout widget.
18533         * app/diapagelayout.[ch]: start of page layout widget.  Not actually
18534         built yet as it is not complete.
18536         * objects/flowchart/flowchart.c: added new shapes to sheet.
18538         * objects/flowchart/display.shape:
18539         * objects/flowchart/transaction.shape: new shapes.
18541         * AUTHORS: added my name to the spec file.
18543         * dia.spec: include the dia desktop entry to the spec file.
18545         * Makefile.am: install the dia.desktop file.
18547         * dia.desktop: added a gnome desktop entry so you can start dia
18548         from the gnome panel menu.
18550 1999-10-11  James Henstridge  <james@daa.com.au>
18552         * objects/custom/custom_object.c:
18553         * objects/custom/shape_info.c: warning fixes.
18555         * objects/flowchart/document.shape: a shape file for the `document'
18556         flowchart shape.
18558         * lib/custom.h: new header with the custom shape prototypes.
18560         * app/app_procs.c: register custom objects as well.
18561         (register_objects_in): close shared libraries if they don't load
18562         correctly, and call g_module_make_resident on libraries that load
18563         correctly.
18565         * app/Makefile.am (dia_LDADD): added libcustom_objects.a to link list.
18567         * objects/custom/custom.c: removed get_version, added custom_ prefix
18568         to register_objects and register_sheets.
18570         * objects/custom/Makefile.am: converted to a normal library.
18572 1999-10-10  Alexander Larsson  <alla@lysator.liu.se>
18574         * app/lineprops_area.c:
18575         * app/render_svg.c:
18576         * lib/objchange.c:
18577         * objects/custom/shape_info.c:
18578         * objects/flowchart/box.c:
18579         * objects/flowchart/diamond.c:
18580         * objects/flowchart/ellipse.c:
18581         * objects/flowchart/parallelogram.c:
18582         * objects/network/flash.c:
18583         * objects/network/scead-plug.c:
18584         * objects/sybase/client.c:
18585         Removed -Wall warnings.
18586         
18587         * objects/network/bus.c:
18588         Removed unused functions.
18590         * objects/FS/flow-ortho.c:
18591         * objects/FS/flow-poly.c:
18592         * objects/FS/flow.c:
18593         * objects/FS/function.c:
18594         
18595         Implemented "non-implemented" undo for FS objects.
18596         Now at least it won't crash.
18597         
18598 1999-10-10  Alexander Larsson  <alla@lysator.liu.se>
18600         * objects/network/bus.c:
18601         Implemented undo.
18602         Handles are now added and removed using the object menu.
18603         Default to 6 handles instead of 10.
18604         Changed name from "Standard - Bus" to "Network - Bus". Kept old
18605         name for backwards compatibility.
18607         * objects/network/network.c:
18608         Changed name from "Standard - Bus" to "Network - Bus". Kept old
18609         name for backwards compatibility.
18611         * app/properties.[ch]:
18612         * app/undo.c:
18613         Update properties in properties dialog if the shown object
18614         is part of and ObjectChange (undo or redo).
18616         * lib/poly_conn.c:
18617         Remove old known bugs list.
18619         * objects/UML/class_dialog.c:
18620         Removed debug printf's.
18622 1999-10-10  James Henstridge  <james@daa.com.au>
18624         * objects/custom/custom.c (custom_object_load): new function that
18625         provides a nice entry point to the custom shape code for when it
18626         gets used by other libraries.
18628         * configure.in: removed 11 makefiles from AC_OUTPUT list.  This
18629         speeds builds up a bit.
18631         * */Makefile.am (EXTRA_DIST): include pixmaps in distribution.
18632         (SUBDIRS): do not descend into pixmaps subdirs.
18634         * */pixmaps/Makefile.am: removed -- incorporate into parent makefiles.
18635         This speeds up build process.
18637         * objects/custom/custom.c (sheets): made variable static.
18639         * objects/custom/custom_util.[ch] (custom_get_relative_filename):
18640         renamed function.
18642         * objects/custom/load_sheet.[ch] (custom_sheet_load): renamed function.
18644         * objects/custom/custom.c: look in ~/.shapes instead of
18645         ~/.dia_shapes as the per-user shapes directory.
18647         * app/preferences.c (prefs_save): save config to ~/.diarc.
18648         (prefs_load): load configuration from ~/.diarc.  If the file
18649         does not exist, fallback on the old ~/.diarc location.
18651         * app/app_procs.c (create_user_dirs): create the ~/.dia directory
18652         on startup.
18653         (register_all_objects): look for user specific objects in
18654         ~/.objects rather than ~/.dia_libs.
18656 1999-10-10  Fredrik Hallenberg  <hallon@lysator.liu.se>
18658         * configure.in:
18659         * app_procs.c:
18660         * objects/flowchart/box.c
18661         * objects/flowchart/ellipse.c
18662         * objects/flowchart/flowchart.c 
18663         Use gmodule for dynamic linking. As gmodule is using
18664         RTLD_GLOBAL i had to change flowchart box and ellipse
18665         so the typenames doesn't conflict with the standard
18666         box and ellipse.
18668         * message.c
18669         * commands.c
18670         Use button box to make dialogs look better.
18672 1999-10-09  Alexander Larsson  <alla@lysator.liu.se>
18674         * objects/UML/class_dialog.c:
18675         * objects/UML/class.h:
18676         Implemented undo for "UML - Class" objects.
18677         Not 100% tested yet.
18679         * objects/UML/classicon.c:
18680         * objects/UML/constraint.c:
18681         * objects/UML/dependency.c:
18682         * objects/UML/generalization.c:
18683         * objects/UML/implements.c:
18684         * objects/UML/large_package.c:
18685         * objects/UML/lifeline.c:
18686         * objects/UML/message.c:
18687         * objects/UML/object.c:
18688         * objects/UML/realizes.c:
18689         * objects/UML/state.c:
18690         * objects/UML/usecase.c:
18691         Removed warnings.
18692         
18693         * lib/connectionpoint.h:
18694         Fixed typo.
18695         
18696 1999-10-09  James Henstridge  <james@daa.com.au>
18698         * objects/custom/*.[ch]: added copyright notices to custom object
18699         files.
18701         * shapes/Circuit/hdiode.shape:
18702         * shapes/Circuit/hzener.shape: 
18703         * shapes/Circuit/opamp.shape:
18704         * shapes/Circuit/vdiode.shape:
18705         * shapes/Circuit/vzener.shape: made adjustments to make the circuit
18706         shapes look nice after the custom shape code changes.
18708         * objects/custom/README: updated docs to cover changes to drawing
18709         code.
18711         * objects/custom/custom_object.c (custom_draw): honour the line
18712         properties when drawing the shape.
18714         * objects/custom/shape_info.[ch]: added support for setting line
18715         properties for individual drawing elements in a custom shape.  You
18716         can set the dash style, dash length, cap style and join style.
18718 1999-10-07  James Henstridge  <james@daa.com.au>
18720         * objects/custom/shape_info.c (parse_style): added a few extra synonyms
18721         for foreground and background.
18723         * objects/custom/custom_object.c (custom_draw): use the new style
18724         information when drawing the object.
18726         * objects/custom/shape_info.[ch]: store all shape style info in the
18727         GraphicStyle structure.  This makes adding support for extra CSS
18728         attributes easier -- we don't have to keep adding extra arguments to
18729         a lot of functions.
18731 1999-10-05  James Henstridge  <james@daa.com.au>
18733         * lib/intl.c (unalias_lang): merged in changes from the i18n code
18734         swiped from gnome-libs.
18736 1999-10-03  Alexander Larsson  <alla@lysator.liu.se>
18738         * objects/standard/image.c (get_directory):
18739         Fix memleak. Found by Kjartan Maraas <kmaraas@online.no>
18741 1999-09-28  Alexander Larsson  <alla@lysator.liu.se>
18743         * lib/poly_conn.c (polyconn_destroy):
18744         Fix bug. Access of freed memory.
18745         Rememeber, you can't free the handles of an object
18746         before calling object_destroy(), as it unconnects the handles
18747         therefore referencing them.
18749 1999-09-28  Alexander Larsson  <alla@lysator.liu.se>
18751         * app/undo.c:
18752         undo_clear() didn't set stack->depth to zero.
18753         This made other undo functions crash after this had been called
18754         on a "full" stack.
18755         
18756         * dia.xpm:
18757         Slightly modified by Chris Love <clove@exactis.com>
18759 1999-09-19  Alexander Larsson  <alla@lysator.liu.se>
18761         * objects/UML/class.h: 
18762         * objects/UML/class_dialog.c:
18763         Retrun NULL ObjectChange on class property change.
18764         This means no crashes, but "UML - Class" doesn't support undo yet.
18765         
18766 1999-09-19  Alexander Larsson  <alla@lysator.liu.se>
18767         
18768         * lib/text.c:
18769         Indentation fix.
18771         * objects/UML/classicon.c:
18772         * objects/UML/dependency.c:
18773         * objects/UML/generalization.c:
18774         * objects/UML/implements.c:
18775         * objects/UML/large_package.c:
18776         * objects/UML/lifeline.c:
18777         * objects/UML/message.c:
18778         * objects/UML/object.c:
18779         * objects/UML/realizes.c:
18780         * objects/UML/state.c:
18781         * objects/UML/usecase.c:
18782         Update to new undo (w. get/set_state).
18783         Add object menu to add/delete segments.
18785 1999-09-17  Alexander Larsson  <alla@lysator.liu.se>
18787         * app/menus.c:
18788         Add equal distance alignment.
18790         * app/object_ops.c:
18791         Add equal distance alignment.
18792         Fix bug in adjacent alignment.
18794 1999-09-16  Alexander Larsson  <alla@lysator.liu.se>
18796         * objects/UML/constraint.c: 
18797         Update to new undo (w. get/set_state).
18799 1999-09-15  Alexander Larsson  <alla@lysator.liu.se>
18801         * app/paginate_psprint.c:
18802         Save (parts, more todo) of the info in the print dialog to the
18803         next time it's opened.
18804         Patch from Yo Ric Dude <ricdude@toad.net>
18806 1999-09-14  Alexander Larsson  <alla@lysator.liu.se>
18808         * configure.in:
18809         Updated version string to 0.41cvs.
18811         * objects/UML/assocition.c:
18812         Update to new undo (w. get/set_state).
18813         Add object menu to add/delete segments.
18815         * app/app_procs.c:
18816         Added function debug_break() and called it after all
18817         objects and sheets are loaded. Place a breakpoint here if you
18818         want to debug objects. All symbols should be loaded.
18820 1999-09-12  James Henstridge  <james@daa.com.au>
18822         * app/menus.c (display_menu_items): added print menu item.
18823         (filemenu): always add print menu item -- even if gnome-print is
18824         not installed.
18826         * app/commands.h, app/commands.c (file_print_callback): the print
18827         menu item is now available for both gnome-print and non gnome-print
18828         setups.
18830         * app/paginate_psprint.c (diagram_print_ps): show a dialog to let you
18831         print with the non gnome-print driver.
18833 1999-09-11  James Henstridge  <james@daa.com.au>
18835         * app/paginate_gnomeprint.c (diagram_print_gnome): moved the gnome
18836         printer dialog code out of commands.c.
18838         * app/paginate_psprint.c: new file containing the pagination code for
18839         psprint.
18841         * app/render_eps.c: made a few modifications so as well as producing
18842         EPS files, this renderer can be set up to do postscript printing.
18843         This basically entailed adding an extra function to create a RenderEPS
18844         renderer which did not bother setting the viewport for the document.
18845         That was left for the pagination code.
18847 1999-09-10  James Henstridge  <james@daa.com.au>
18849         * app/render_gnomeprint.c (draw_ellipse, fill_ellipse): since
18850         gnome-print does not support elliptic arcs at the moment, approximate
18851         the ellipse with eight bezier curves.  This gives a pretty good
18852         match to a true ellipse.
18854 1999-09-09  James Henstridge  <james@daa.com.au>
18856         * app/commands.c (file_gnome_print_callback): added support for
18857         scaling the diagram.  Also fixed a few other bugs.
18859         * app/paginate_gnomeprint.c (print_page): added ability to scale
18860         document.  Fixed up test to see if the page has no objects on it.
18861         This should prevent some blank pages being printed.  Non square
18862         objects such as lines could still cause problems.
18864 1999-09-08  James Henstridge  <james@daa.com.au>
18866         * app/commands.c (file_gnome_print_callback): changed from using the
18867         standard printer selection dialog to one that also has a paper size
18868         selector as well.
18870         * commands.[ch]: added callbacks for the print menu item.  Currently
18871         it only does A4 output.  I will make it configurable soon.
18872         
18873         * app/menus.c: add a print diagram menu item if gnome-print support
18874         is enabled.
18875         
18876         * app/paginate_gnomeprint.c, app/paginate_gnomeprint.h: this is a
18877         bit higher level than the gnome-print renderer.  It splits the
18878         diagram into page size chunks and then renders them.  For each
18879         page, it only renders the objects whose bounding box intersects
18880         the page, and it sets the clip mask so that the diagram does not
18881         overlap the margins.
18882         
18883         * app/render_gnomeprint.c, app/render_gnomeprint.h: added a renderer
18884         that uses gnome-print as its back end.
18885         
18886         * configure.in: added a check for gnome-print.  It is disabled by
18887         default because the code is not really working correctly yet.
18889         * app/menus.c: the delete object menu item was missing from the
18890         GnomeUIInfo style menus.
18892 1999-09-07  Fredrik Hallenberg  <hallon@lysator.liu.se>
18894         * configure.in
18895         Added japanese to ALL_LINGUAS.
18896         Fix for Linux on Alpha.
18898 1999-09-07  Alexander Larsson  <alla@lysator.liu.se>
18900         * app/create_object.c (create_object_button_press):
18901         Always initialize tool->obj. Otherwise we store a null
18902         in the undo Change.
18904         * lib/text.c:
18905         Set linestyle before drawing cursor.
18906         Fix undo of backwards delete.
18908 1999-09-05  James Henstridge  <james@daa.com.au>
18910         * dia.spec: updated spec file to distribute $(prefix)/share/dia.
18912         * app/render_svg.c (draw_image): some fixes so that the appropriate
18913         style attributes are set.  Before it was setting line styles on
18914         fill_* functions.  Now it only does this for the draw_* variants.
18916         * app/Makefile.am (run_dia.sh): set the DIA_SHAPE_PATH environment
18917         variable so that custom shapes can be loaded.
18919         * shapes/: new directory for custom shapes.  The Circuit sheet has
18920         been moved here.
18922 1999-09-02  James Henstridge  <james@daa.com.au>
18924         * TODO: removed a few todo items that have been implemented.
18926         * app/interface.c (create_sheets): enabled the popup page menu to the
18927         notebook.  This can make it easier to select different sheets.
18929         * object/custom/Circuit/: added diode, zener diode, ground point and
18930         operational amplifier shapes.
18931         
18932         * objects/custom/Makefile.am: added a note about adding DEBUG_CUSTOM
18933         if you want the output.
18935         * objects/custom/shape_info.c (parse_path): same here.
18937         * objects/custom/load_sheet.c (load_with_readdir): don't print so
18938         much debugging output.  To get the previous level of output, define
18939         DEBUG_CUSTOM.
18941         * objects/custom/shape_info.c (parse_svg_node): polygons were being
18942         recorded as polylines in the ShapeInfo structure.
18944         * objects/custom/README: some notes on writing new custom shapes.
18945         
18946 1999-09-01  James Henstridge  <james@daa.com.au>
18948         * objects/custom/Circuit/hinductor.*:
18949         * objects/custom/Circuit/vinductor.*: added inductor shapes that
18950         also test out the bezier curve and SVG path support.
18951         
18952         * objects/custom/custom_object.c (custom_draw): added support for
18953         drawing bezier paths and filled shapes.
18955         * objects/custom/shape_info.c (parse_path): new function to parse
18956         SVG path elements.  It does not do quadratic beziers or elliptic
18957         arcs though.  Only moves, lines and cubic beziers.
18958         (*): added support for paths.
18960 1999-08-31  James Henstridge  <james@daa.com.au>
18962         * objects/sybase/ltm.c (render_to_store): use the newer bezier API.
18964         * app/render_svg.c (draw_bezier, fill_bezier): updated renderer
18965         interface
18967         * app/render_eps.c (draw_bezier, fill_bezier): updated renderer
18968         interface
18970         * app/render_gdk.c (draw_bezier, fill_bezier): updated renderer
18971         interface.
18973         * lib/render_store.[ch]: use newer bezier functions.
18975         * lib/render.h: changed the bezier drawing functions to use an array
18976         of BezPoint structures instead of normal Point structures to allow
18977         lineto's mixed in with the curveto's.
18978         
18979         * objects/custom/Circuit/pnp.*: added pnp transistor shape.
18980         
18981         * objects/custom/Circuit/Makefile.am (SHAPES): added index.sheet and
18982         xpm images for different shapes to Makefile.
18984         * objects/custom/custom_object.c (custom_object_new): set the icon
18985         for the sheet button if there is one.  Otherwise fall back on the
18986         default custom object icon.
18988         * objects/custom/shape_info.c (load_shape_info): read the sheet
18989         icon name from the shape file.
18991         * app/interface.c (create_sheet_page): if sheet_obj->pixmap == NULL,
18992         check the pixmap_file field for the name of a pixmap file to load
18993         for the tool.
18995         * lib/sheet.h (SheetObj): added pixmap_file field to structure.  It is
18996         at the end of the structure, and it isn't used if the pixmap field
18997         is non NULL, so it should not break binary compatibility.
18999         * objects/custom/load_sheet.[ch]: moved sheet loading code here.  Also
19000         added support for the use of an index.sheet file so you can specify
19001         the ordering of the shapes in the sheet, and also internationalise
19002         the sheet name and actually be able to give a description.  The old
19003         readdir based sheet loading code acts as a fallback if an index.sheet
19004         file can not be found.
19006         * objects/custom/custom_util.[ch]: new file containing useful routines
19007         needed by the custom object code.  Currently only contains a simple
19008         routine for resolving relative paths.
19010         * objects/custom/custom_object.c (custom_draw): fixed problem with
19011         drawing rectangles if the shape has been flipped.
19013 1999-08-30  James Henstridge  <james@daa.com.au>
19015         * objects/custom/custom_object.c (custom_get_object_menu): allow
19016         flipping of custom shapes.  This uses the miggle click object
19017         menu.
19019         * objects/custom/Circuit/npn.shape: fix aspect ratio.
19021         * objects/custom/custom_object.c (custom_update_data): honour the
19022         aspect ratio constraints.
19024         * objects/custom/shape_info.c (load_shape_info): updated aspect ratio
19025         tag parsing, so you can specify a free, fixed or a range for aspect
19026         ratios for the shape.
19028 1999-08-29  James Henstridge  <james@daa.com.au>
19030         * objects/custom/test.xml, objects/custom/Circuit/*.shape: fixed
19031         up shape namespace tag.
19033         * objects/custom/shape_info.c (load_shape_info): check xml:lang
19034         attribute on <description> elements to support i18n for custom
19035         shape descriptions.
19036         Also changed the shape namespace for custom shapes to something
19037         a little more sensible.
19039         * lib/dummy_dep.h (dummy_dep): added extra dummy dependency.
19041         * lib/intl.c: new file containing some functions for i18n stuff.
19043         * app/layer_dialog.c (create_button_box): fixed a warning.
19045         * objects/custom/custom_object.c: use current line style.  Save dash
19046         length.
19048         * objects/flowchart/diamond.c: use current line style.  Save dash
19049         length.
19051         * objects/flowchart/parallelogram.c: use current line style.  Save
19052         dash length.
19054         * objects/flowchart/ellipse.c: use current line style.  Save dash
19055         length.
19057         * objects/flowchart/box.c: use current line style.  Save dash length.
19059         * objects/standard/ellipse.c: make ellipse use current line style.
19061         * objects/standard/box.c: use the line style set in the toolbox for
19062         new boxes, and remember the dash length.
19064         * app/commands.c (view_toggle_rulers_callback): fix reshowing of
19065         rulers.
19067 1999-08-24  James Henstridge  <james@daa.com.au>
19069         * objects/flowchart/ellipse.c (ellipse_update_data): made some changes
19070         to try to stop ellipse to get infinite width/height when we resize,
19071         while trying to keep the text inside the ellipse.
19073         * objects/flowchart/box.c, objects/flowchart/parallelogram.c,
19074         * objects/flowchart/diamond.c, objects/flowchart/ellipse.c: fixed
19075         resizing behaviour, so that you can't push objects round the screen
19076         with the resize handles.
19078         * app/lineprops_area.c (dia_arrow_chooser_init, dia_line_chooser_init):
19079         get the OK buttons in the dialogs to take default clicks.
19081         * objects/custom/custom_object.c: added code so that resizing the
19082         shape does not end up pushing it round the screen.
19084 1999-08-23  Alexander Larsson  <alla@lysator.liu.se>
19086         * app/display.[ch]:
19087         Generate rectangle with the union of the damaged regions.
19088         This is used to optimize the grid paint and the object rendering.
19089         display_render_pixmap passes this info to grid_draw() and data_render().
19091         * app/grid.[ch]:
19092         grid_draw doesn't draw grid lines outside of damaged rectangle.
19093         Sets dashlength when drawing non-solid grid.
19094         
19095         * lib/diagramdata.[ch]:
19096         data_render() and layer_render() takes an optional damaged rectangle
19097         argument. No objects not intersecting this are drawn.
19099         * app/diagram.c:
19100         Fix warning.
19101         Call data_render with NULL update rectangle.
19102         
19103 1999-08-23  James Henstridge  <james@daa.com.au>
19105         * objects/custom/custom_object.c (custom_update_data): if the aspect
19106         ratio is fixed, make sure the shape is not distorted.
19108         * object/custom/shape_info.h, objects/custom/shape_info.c: notice if
19109         a <fixaspectratio/> tag is given in the shape file.
19111         * objects/custom/shape_info.[ch], objects/custom/custom_object.c:
19112         added support for stroke-width, stroke and fill CSS attributes
19113         specified in style attributes of the SVG elements.  The line width
19114         is relative to the user specified line width.  The stroke and fill
19115         attributes can only be used to swap the foreground/background
19116         colours.
19118         * lib/widgets.c (dia_line_style_selector_set_linestyle): set the
19119         sensitivity on the dash length selector when this function is called.
19121         * objects/standard/arc.c: same.  Also handle dash length.
19122         * objects/standard/zigzagline.c: same.
19123         * objects/standard/polyline.c: same.  Also handle dash length.
19124         * objects/standard/line.c: use default arrow/line styles.
19126         * app/interface.c: added callbacks to set the default attributes.
19128         * lib/attributes.c: added implementations of these functions.
19130         * lib/attributes.h: added extra prototypes for the new line properties
19131         area in the toolbox.
19133         * app/interface.c (create_lineprops_area): added line properties
19134         area to bottom of toolbox.
19136         * app/lineprops_area.h: a header exporting a few routines of the
19137         line properties area widgets.
19139         * app/lineprops_area.c: new file containing a selector for arrows
19140         and line styles to go in the main toolbox.
19142 1999-08-22  Alexander Larsson  <alla@lysator.liu.se>
19144         * HACKING:
19145         Update Gtk+ 1.0.5 comment to 1.2.0.
19147         * INSTALL:
19148         Demand libtool 1.3
19150         * acconfig.h:
19151         Add HAVE_LIBPOPT
19153         * configure.in:
19154         Make sure we don't propagate -ldl and -lpopt to all LIBS
19155         by adding new var APP_LIBS that only app/dia links with.
19156                 
19157         * app/Makefile.am:
19158         Update run_dia.sh to load custom and flowchart objects.
19160         * objects/ER/Makefile.am:
19161         * objects/FS/Makefile.am:
19162         * objects/UML/Makefile.am:
19163         * objects/network/Makefile.am:
19164         * objects/standard/Makefile.am:
19165         * objects/sybase/Makefile.am:
19166         Don't build versioned libs.     
19167         
19168 1999-08-22  James Henstridge  <james@daa.com.au>
19170         * configure.in: added objects/custom/Circuit/Makefile to AC_OUTPUT
19171         list.
19173         * objects/Makefile.am (SUBDIRS): added custom to subdir list -- it
19174         should actually work a bit now.
19176         * objects/custom/Circuit/*: a test sheet for the custom shape code.
19177         It is a small collection of circuit elements.
19179         * objects/custom/shape_info.c: fixed up loading of polylines and
19180         polygons.  Before it was removing negative signs :(
19182         * objects/custom/pixmaps/custom.xpm: drew the custom shape icon.  A
19183         placeholder was here before.  I still need to work out how to set
19184         icons for individual custom shapes.
19185         
19186         * objects/custom/custom.c: added code to load the shapes into sheets
19187         properly.  The shape files should be arranged into directories, and
19188         each directory represents a different sheet in the toolbox.  This
19189         will make it very easy to distribute a collection of dia shapes as
19190         a tarball.  I still need to work out internationalisation, and maybe
19191         also shape ordering in the sheet.
19193         * objects/custom/custom_object.c: fixed up dialogs for these objects.
19194         (custom_create): fix for objects without text areas.
19196         * objects/custom/shape_info.h, objects/custom/custom_object.c: loading
19197         and saving of custom object works correctly now.
19199 1999-08-21  James Henstridge  <james@daa.com.au>
19201         * objects/flowchart/ellipse.c: 
19202         * objects/flowchart/diamond.c: 
19203         * objects/flowchart/parallelogram.c: 
19204         * objects/flowchart/box.c: Fixed up a few bugs in these objects when
19205         copying or loading these object types.  Not all the connection
19206         points would be initialised correctly.
19208         * objects/flowchart/Makefile.am (libflowchart_objects_la_LDFLAGS):
19209         similar here.
19211         * objects/custom/Makefile.am (libcustom_objects_la_LDFLAGS): do not
19212         build a versioned library.  It will only ever be dlopen'd, so this
19213         is not a problem.
19215         * objects/custom/custom_object.c (custom_distance_from): allow
19216         selecting the object by clicking on the text.  This fixes problems
19217         where the text box is outside the graphic.
19219         * objects/custom/shape_info.c (load_shape_info): fixed up reading
19220         of connections points.  It should be possible to add connections
19221         to custom objects now.
19223         * objects/custom/custom_object.c (custom_update_data): fixed resizing
19224         due to changes to text.
19226         * configure.in: added extra makefiles.
19227         
19228         * objects/custom/shape_info.[ch]:
19229         * objects/custom/custom_object.c:
19230         * objects/custom/custom.c: the starts of custom shape support in dia.
19231         This is not built by default at the moment, since it is not quite
19232         complete.  When it is, it will let you create more shapes for dia
19233         without writing a line of C.  Its implementation includes buzzwords
19234         such as XML and SVG, so it must be good :)
19236 1999-08-19  Karsten Weiss  <karsten@addx.au.s.shuttle.de>
19238         * app/app_procs.c (app_exit): Use button labels "Quit" and
19239         "Cancel" instead of "Yes" and "No".
19240         Set default action to "Cancel" instead of "Quit".
19242 1999-08-19  James Henstridge  <james@daa.com.au>
19244         * objects/flowchart/flowchart.c: added ellipse object.
19245         
19246         * objects/flowchart/ellipse.c: a new shape for the flowchart toolbox.
19248 1999-08-18  James Henstridge  <james@daa.com.au>d
19250         * app/color_area.c (color_area_edit): small fix to prevent dia from
19251         segfaulting when you try to change the default foreground/background.
19253 1999-08-17  Alexander Larsson  <alla@lysator.liu.se>
19255         * app/diagram.[ch] (diagram_redraw_all):
19256         Added function that redraws all diagrams.
19258         * app/preferences.c (prefs_apply):
19259         Call diagram_redraw_all when prefs are changed.
19261         * app/render_svg.c:
19262         Don't use xmlEncodeEntitiesReentrant(). It doesn't exist on
19263         older libxml's, and the old version works good enought here.
19264         
19265 1999-08-17  James Henstridge  <james@daa.com.au>
19267         * lib/widgets.c: changed handlers that were connected to the GtkButton
19268         "pressed" signal to connect to the "clicked" signal.  This removes the
19269         problem where dialogs are inactive until you click a mouse button
19270         after using a colour selector.
19272         * configure.in: added extra makefiles to AC_OUTPUT list.
19273         
19274         * objects/Makefile.am (SUBDIRS): added flowchart module
19276         * objects/flowchart/*: a collection of shapes for use in flowcharts.
19278         * app/color_area.c (color_area_events): similar here.
19280         * app/linewidth_area.c (linewidth_area_events): sometimes a configure
19281         event is recieved with event->width == 0, which causes a warning if we
19282         try to create a pixmap of that width.
19284         * app/preferences.c, app/preferences.h, app/grid.c: added code to
19285         allow you to configure the colour of the grid, and also lets you
19286         set the grid to use dotted lines instead of solid ones.
19287         
19288         * app/commands.c, app/commands.h, app/diagram.c, app/diagram.h,
19289         app/menus.c, app/Makefile.am: added menu entry for exporting SVG files.
19290         
19291         * app/render_svg.h, app/render_svg.c: an SVG (Scalable Vector Graphics)
19292         export filter.  It is not quite complete, but for most shapes it
19293         works as expected.  Fonts still need a bit of work.
19295 1999-08-11  Robert Brady  <rwb197@ecs.soton.ac.uk>
19297         * configure.in: Added "en_GB" to ALL_LINGUAS.
19299 1999-08-04  Fredrik Hallenberg  <hallon@lysator.liu.se>
19301         * menus.c
19302         Added Undo and Redo to GNOME menus.
19303         
19304         * objects/ER/attribute.c:
19305         * objects/ER/entity.c:
19306         * objects/ER/participation.c:
19307         * objects/ER/relationship.c:
19308         Added get/set_state functions.
19310         * objects/ER/participation.c:
19311         Added add/delete segment.
19313         * po/sv.po
19314         Updated Swedish translation.
19316 1999-07-25  Alexander Larsson  <alla@lysator.liu.se>
19318         * app/preferences.[hc]:
19319         Added undo_depth pref.
19320         
19321         * app/undo.[ch]:
19322         Never grow stack larger than pref.undo_depth.
19323         undo_depth == 0 means unlimited.
19324         Converted printfs to conditionally compiled DEBUG_PRINTFs.
19325         
19326 1999-07-25  Alexander Larsson  <alla@lysator.liu.se>
19328         * app/diagram.c:
19329         * app/group.c:
19330         * lib/object.h:
19331         * lib/render_object.c:
19332         * objects/ER/attribute.c:
19333         * objects/ER/entity.c:
19334         * objects/ER/participation.c:
19335         * objects/ER/relationship.c:
19336         * objects/FS/flow-ortho.c:
19337         * objects/FS/flow-poly.c:
19338         * objects/FS/flow.c:
19339         * objects/FS/function.c:
19340         * objects/UML/actor.c:
19341         * objects/UML/association.c:
19342         * objects/UML/class.c:
19343         * objects/UML/classicon.c:
19344         * objects/UML/component.c:
19345         * objects/UML/constraint.c:
19346         * objects/UML/dependency.c:
19347         * objects/UML/generalization.c:
19348         * objects/UML/implements.c:
19349         * objects/UML/large_package.c:
19350         * objects/UML/lifeline.c:
19351         * objects/UML/message.c:
19352         * objects/UML/note.c:
19353         * objects/UML/object.c:
19354         * objects/UML/realizes.c:
19355         * objects/UML/small_package.c:
19356         * objects/UML/state.c:
19357         * objects/UML/usecase.c:
19358         * objects/network/bus.c:
19359         * objects/standard/arc.c:
19360         * objects/standard/box.c:
19361         * objects/standard/ellipse.c:
19362         * objects/standard/image.c:
19363         * objects/standard/line.c:
19364         * objects/standard/polyline.c:
19365         * objects/standard/textobj.c:
19366         * objects/standard/zigzagline.c:
19367         Removed all traces of is_empty(). It doesn't work in an
19368         Undo/Redo world.
19370 1999-07-25  Alexander Larsson  <alla@lysator.liu.se>
19372         * app/diagram.c:
19373         * app/group.[ch]:
19374         * app/undo.[ch]:
19375         Undoable grouping and ungrouping.
19377         * app/layer_dialog.c:
19378         * lib/diagramdata.[ch]:
19379         Undoable layer ops.
19381         * app/modify_tool.c:
19382         Undoable unconnect on handle move.
19384         * lib/orth_conn.[ch]:
19385         Working undoable add/remove segment.
19386         Removed endpoint_handles from OrthConn, renamed
19387         midpoint_handles to handles and put the endpoint
19388         handles there.
19390         * objects/standard/zigzagline.c:
19391         * objects/ER/participation.c:
19392         * objects/UML/association.c:
19393         * objects/UML/dependency.c:
19394         * objects/UML/generalization.c:
19395         * objects/UML/realizes.c:
19396         Update for the changes in OrthConn
19397         
19398 1999-07-23  Karsten Weiss  <karsten@addx.au.s.shuttle.de>
19400         * configure.in: Added "de" to ALL_LINGUAS.
19402 1999-07-17  Alexander Larsson  <alla@lysator.liu.se>
19404         * dia.1:
19405         Fixed typo.
19407         * app/display.c:
19408         * po/da.po:
19409         * po/fr.po:
19410         * po/hu.po:
19411         * po/no.po:
19412         * po/pl.po:
19413         * po/sv.po:
19414         Don't have the <Display> etc part of the menu strings
19415         i18n:ed. Patch from Fabrice.Bellet@imag.fr.
19417         * app/diagram.c:
19418         Don't have the <Display> etc part of the menu strings
19419         i18n:ed. Patch from Fabrice.Bellet@imag.fr.
19420         Don't remove is_empty() objects, that don't work with undo.
19422         * lib/objchange.[ch]:
19423         New files.
19424         Definition of ObjectChange. This is essentially an Change
19425         exported to the object libs. It encapsulates a change made
19426         to an objects internals. It can be applied, reverted and freed.
19427         There are also utility functions for doing ObjectChanges that
19428         only get/set the whole state of an object to store the change.
19429         This cannot be used when the object change deletes or adds a
19430         object which has references from other objects, eg. Handles which
19431         might be connected.
19433         * lib/Makefile.am:
19434         Added objchange.c and objchange.h.
19436         * lib/dia_image.c:
19437         Return NULL when loading fails.
19439         * lib/diamenu.h:
19440         Menu callbacks return an ObjectChange.
19442         * lib/dummy_dep.h:
19443         Reference objchange.o
19445         * lib/focus.h:
19446         Key events return ObjectChange if they modify the object.
19448         
19449         * lib/object.h:
19450         Added object_add_handle_at() function.
19451         Apply properties returns an ObjectChange.
19452         Remove ObjectState and the get/set state functions, these
19453         don't always work. Use the new ObjectChange instead.
19454         
19455         * lib/object.c:
19456         Added object_add_handle_at() function implementation.
19457         
19458         * lib/orth_conn.[ch]:
19459         Use ObjectChange. Not finished yet.
19460         Removed get/set/free state functions
19462         * lib/poly_conn.[ch]:
19463         Use ObjectChange.
19464         Don't remove segments that are small.
19465         Removed get/set/free state functions
19467         * lib/text.[ch]:
19468         Use ObjectChange.
19469         Added functions to get/set all text attributes.
19471         * objects/standard/arc.c:
19472         * objects/standard/box.c:
19473         * objects/standard/ellipse.c:
19474         * objects/standard/image.c:
19475         * objects/standard/line.c:
19476         * objects/standard/polyline.c:
19477         * objects/standard/textobj.c:
19478         * objects/standard/zigzagline.c:
19479         Use ObjectChange.
19480         fixed bug in image_set_state.
19481         zigzagline.c not finished yet.
19483         * app/disp_callbacks.c:
19484         Use ObjectChange that are returned from menu callbacks and
19485         key_events for undo.
19487         * app/properties.c:
19488         Use ObjectChange that are returned from properties apply
19489         for undo.
19491         * app/undo.c:
19492         * app/undo.h:
19493         New undo type: ObjectChangeChange. This wraps a change to the
19494         internals of an object (and ObjectChange) in code that does
19495         app specific stuff (object_add_updates etc.)
19497 1999-07-11  Alexander Larsson  <alla@lysator.liu.se>
19499         * lib/orth_conn.[ch]:
19500         Added code for add/delete segment.
19502         * objects/standard/zigzagline.c:
19503         Use the new orth_conn code.
19504         
19506 1999-07-08  Fredrik Hallenberg  <hallon@lysator.liu.se>
19508         * objects/FS/Makefile.am
19509         Removed fs.h from sources.
19511         * Makefile.am
19512         * dia.1
19513         Added man page.
19515 1999-07-07  Alexander Larsson  <alla@lysator.liu.se>
19517         * app/disp_callbacks.c (ddisplay_canvas_events):
19518         Fix for bug. Every other arrow-key press got lost.
19519         patch from Mr. Data Esq. <data@r47h102.res.gatech.edu>
19521         * INSTALL:
19522         change automake.sh to autogen.sh
19523         
19524 1999-06-24  Alexander Larsson  <alla@lysator.liu.se>
19526         * app/diagram.c:
19527         Don't remove 'empty' objects.
19528         This violent destruction of objects won't work
19529         with the new undo framework.
19531         * app/disp_callbacks.c:
19532         Save undo info for object menu calls and key_events.
19534         * app/properties.c:
19535         Save undo info on properties apply.
19537         * lib/dia_image.[ch]:
19538         Add refcounting for images.
19540         * app/render_eps.c:
19541         * app/render_gdk.c:
19542         * lib/render.h:
19543         DiaImage * -> DiaImage
19545         * app/undo.[ch]:
19546         Add undo functions for object state changes.
19548         * lib/focus.h:
19549         * lib/text.c:
19550         change of semntics for focus->key_event.
19551         Now returns TRUE if the object recieving the event
19552         was changed.
19554         * lib/object.h:
19555         Comment changes.
19557         * lib/orth_conn.[ch]:
19558         Don't automatically create and delete segments when
19559         handles are moved. This is incompatible with undo.
19560         Added state get, set and free functions.
19562         * lib/orth_conn.[ch]:
19563         Added state get, set and free functions.
19565         * objects/UML/object.c:
19566         * objects/UML/uml.c:
19567         Fixed typo "UML - Objet" -> "UML - Object".
19568         Saved old for backwards compatibility.
19570         * objects/standard/arc.c:
19571         * objects/standard/box.c:
19572         * objects/standard/ellipse.c:
19573         * objects/standard/image.c:
19574         * objects/standard/line.c:
19575         * objects/standard/polyline.c:
19576         * objects/standard/textobj.c:
19577         * objects/standard/zigzagline.c:
19578         Added get/set state functions.
19579         Textobj has a redo crash-bug.
19580         Zigzagline needs object menus to add segments.
19581         
19583 1999-06-20  Alexander Larsson  <alla@lysator.liu.se>
19585         * app/render_eps.c (set_dashlength):
19586         Don't generate eps files with zero dash-length.
19588 1999-06-16  Alexander Larsson  <alla@lysator.liu.se>
19590         * app/commands.c:
19591         * app/create_object.c:
19592         * app/undo.[ch]:
19593         Finished undo for create and paste.
19594         
19595         * lib/object.h:
19596         Started properties undo.
19598 1999-06-14  Alexander Larsson  <alla@lysator.liu.se>
19600         * TODO:
19601         Added resizeable groups.
19603         * app/app_procs.c:
19604         Removed unused variable.
19606         * app/commands.c:
19607         * app/undo.[ch]:
19608         Undo/redo for cut/delete done.
19610         * app/create_object.c:
19611         * app/modify_tool.c:
19612         * lib/diagramdata.[ch]:
19613         * app/diagram.[ch]:
19614         renamed diagram_add_selected -> diagram_select
19615         renamed diagram_remove_selected -> diagram_unselect
19616         
19617         * app/properties.[ch]:
19618         Added properties_hide_if_shown() function.
19620 1999-06-13  Alexander Larsson  <alla@lysator.liu.se>
19622         * app/undo.[ch]:
19623         * app/Makefile.am:
19624         Undo functions.
19625         
19626         * app/commands.[ch]
19627         * app/modify_tool.[ch]
19628         * app/object_ops.[ch]
19629         * app/connectionpoint_ops.c
19630         * app/menus.c
19631         Use undo functions.
19632         WARNING: Not finished. Will break.
19633         Finished: move object, move handle.
19635         * app/diagram.[ch]
19636         Added diagram_selected_break_external() function.
19637         It removes all connections between selected objects
19638         and non-selected.
19639         Add undo stack to Diagram.
19640         
19641         * lib/diagramdata.[ch]
19642         Added layer_remove_objects() function
19643         
19644 1999-06-11  Fredrik Hallenberg  <hallon@lysator.liu.se>
19646         * objects/FS/Makefile.am
19647         * objects/sybase/Makefile.am
19648         Now uses GNOME_CFLAGS.
19650         * app/app_procs.c
19651         Now compiles with GNOME even if popt.h isn't available.
19653 1999-06-10  Alexander Larsson  <alla@lysator.liu.se>
19655         * configure.in
19656         * objects/Makefile.am
19657         * objects/sybase/*
19658         First version of sybase objects from
19659         Brian Bruns <camber@umcc.ais.org>
19661 1999-06-10  Fredrik Hallenberg  <hallon@lysator.liu.se>
19663         * configure.in
19664         Added fr to ALL_LINGUAS
19666 1999-06-09  Fredrik Hallenberg  <hallon@lysator.liu.se>
19668         * configure.in
19669         * app/app_procs.c
19670         Popt-code is activated if popt is available.
19672 1999-06-08  Alexander Larsson  <alla@lysator.liu.se>
19674         This is a patch from David Thompson <dcthomp@mail.utexas.edu>
19675         
19676         * lib/orth_conn.[ch]:
19677         Added orthconn_get_middle_handle()
19679         * lib/text.[ch]:
19680         Added text_set_cursor_at_end()
19681         
19682         * objects/FS/*
19683         Added first version of functions structure diagrams.
19684         
19685 1999-05-24  Alexander Larsson  <alla@lysator.liu.se>
19687         * app/modify_tool.c:
19688         Include math.h to remove warning.
19690         * app/commands.c (dialogs_properties_callback):
19691         Bring up correct properties dialog when selected
19692         from menu.
19693         From Dan Cohn <dan@internap.com>
19695 1999-05-20  Alexander Larsson  <alla@lysator.liu.se>
19697         Patch from Lars R. Clausen 
19698         
19699         * app/modify_tool.c:
19700         Changed abs to fabs.
19702 1999-05-19  Alexander Larsson  <alla@lysator.liu.se>
19704         * INSTALL: 
19705         * configure.in:
19706         Require Gtk+ 1.2.0
19708 1999-05-18  Alexander Larsson  <alla@lysator.liu.se>
19710         Patches from Dan Cohn <dan@internap.com>
19711         
19712         * app/commands.[ch]: 
19713         * app/display.[ch]: 
19714         * app/menus.c:
19715         * app/preferences.[ch]:
19716         Implements ability to turn on/off connection points in
19717         current drawing and in global prefs.
19719 1999-05-18  Alexander Larsson  <alla@lysator.liu.se>
19721         * lib/widgets.c (dia_line_style_selector_init): 
19722         Fixed warnings.
19723         
19724         * lib/diagramdata.c (layer_update_extents):
19725         Fixed uninitialized variable error.
19727 1999-05-17  Alexander Larsson  <alla@lysator.liu.se>
19729         * lib/dia_image.c:
19730         Made some changes to the gdk_imlib visual+colormap setup.
19732 1999-05-17  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
19734         * objects/UML/usecase.c: 
19735        * objects/UML/lifeline.c
19736         Fine tunning.
19738         * objects/UML/object.c: 
19739         * objects/UML/message.c: 
19740         Changed font from Courier to Helvetica.
19742         * lib/widgets.c: 
19743         * lib/widgets.h:
19744         Added dash lenth to the LineStyle widget.
19745         
19746         * objects/standard/ellipse.c :
19747         * objects/standard/zigzagline.c: 
19748         * objects/standard/line.c: 
19749         Added dash lenght property.
19751 1999-05-16  Alexander Larsson  <alla@lysator.liu.se>
19753         * app/render_eps.c:
19754         First shot at latin1 encoded eps files.
19755         Works, but the eps files get a bit large.
19756         
19757 1999-05-16  Alexander Larsson  <alla@lysator.liu.se>
19759         * objects/UML/class.[ch]: 
19760         * objects/UML/uml.[ch]:
19761         Reverted the line wrap changes.
19762         Some day this might return, but it has to be selectable and
19763         default to off for loaded objects, otherwise it breaks file
19764         format compatibility.
19765         There was also some complains about how it looked, so a making it
19766         selectable is good for this too.
19768 1999-05-15  Alexander Larsson  <alla@lysator.liu.se>
19770         * objects/UML/class.[ch]:
19771         Some indentation cleanup.
19772         Added wrap_lines variable to class.
19773         I'll fix the line break stuff tomorrow.
19775 1999-05-13  Alexander Larsson  <alla@lysator.liu.se>
19777         * lib/dummy_dep.h:
19778         Added ref to poly_conn.o.
19780         * objects/standard/polyline.c (polyline_draw): 
19781         * objects/standard/zigzagline.c (zigzagline_draw): 
19782         * objects/standard/arc.c (arc_draw): 
19783         * objects/standard/line.c (line_draw):
19784         Draw lines before arrows. This makes hollow arrows not
19785         show the line.
19787 1999-05-13  Alexander Larsson  <alla@lysator.liu.se>
19789         Changes from Kim Peasley <kpeasley@ior.com> 
19790                 
19791         * objects/UML/class.c:
19792         Break lines with long operations so classes won't be
19793         so wide.
19795         * objects/UML/uml.[ch]:
19796         Helperfunctions for the above.
19797         
19798         * objects/UML/objects.c:
19799         Fix bug that duplicated the text in the attributes
19800         textwidget each time the object was selected.
19801         
19802 1999-05-12  Alexander Larsson  <alla@lysator.liu.se>
19804         Changes from Lars R. Clausen <lrclause@cs.uiuc.edu>
19805         
19806         * app/modify_tool.c:
19807         * app/modify_tool.h:
19808         Control-drag is restricted to vertical/horizontal movement
19809         
19810         * lib/object.h:
19811         ModifierKeys argument added to object_move_handle
19813         * app/connectionpoint_ops.c:
19814         * app/create_object.c:
19815         * app/object_ops.c:
19816         * objects/ER/attribute.c:
19817         * objects/ER/entity.c:
19818         * objects/ER/participation.c:
19819         * objects/ER/relationship.c:
19820         * objects/UML/actor.c:
19821         * objects/UML/association.c:
19822         * objects/UML/class.c:
19823         * objects/UML/classicon.c:
19824         * objects/UML/component.c:
19825         * objects/UML/constraint.c:
19826         * objects/UML/dependency.c:
19827         * objects/UML/generalization.c:
19828         * objects/UML/implements.c:
19829         * objects/UML/large_package.c:
19830         * objects/UML/lifeline.c:
19831         * objects/UML/message.c:
19832         * objects/UML/note.c:
19833         * objects/UML/object.c:
19834         * objects/UML/realizes.c:
19835         * objects/UML/small_package.c:
19836         * objects/UML/state.c:
19837         * objects/UML/usecase.c:
19838         * objects/network/bus.c:
19839         * objects/standard/arc.c:
19840         * objects/standard/box.c:
19841         * objects/standard/ellipse.c:
19842         * objects/standard/image.c:
19843         * objects/standard/line.c:
19844         * objects/standard/polyline.c:
19845         * objects/standard/textobj.c:
19846         * objects/standard/zigzagline.c:
19847         Changed calls to move_handle to pass the new argument.
19848         
19849         * lib/widgets.c:
19850         * lib/widgets.h:
19851         Default line width, color etc #define'd
19852         
19853         * po/da.po:
19854         Updates of danish menus
19856 1999-05-08  Fredrik Hallenberg  <hallon@lysator.liu.se>
19858         * dia.xpm
19859         * dia_gnome_icon.png
19860         * dia_gnome_menu_icon.png
19861         * dia_logo.png
19862         Graphics by Toussaint Frédéric <ftoussin@club-internet.fr>.
19864         * app/commands.c
19865         About dialog shows dia_logo.png. Removed the GNOME about dialog.
19867         * Makefile.am
19868         Distribute the icons and install logo in pkgdatadir.
19869         
19870         * app/Makefile.am
19871         Added DATADIR-define.
19872         
19873 1999-04-28  Alexander Larsson  <alla@lysator.liu.se>
19874         Patches from Enrico Scholz <enrico.scholz@wirtschaft.tu-chemnitz.de>
19876         * dia.spec:
19877         Updated version number, made setup quiet, can build from cvs,
19878         --enable-gnome, now using automake 1.4 DESTDIR feature, install-strip
19880         * lib/Makefile.am
19881         * objects/ER/Makefile.am
19882         * objects/UML/Makefile.am
19883         * objects/network/Makefile.am
19884         * objects/standard/Makefile.am
19885         now builds better with gnome
19887         * objects/UML/class_dialog.c
19888         Fixed typo -> po files must be updated too!!
19889         
19890 1999-04-28  Alexander Larsson  <alla@lysator.liu.se>
19892         * lib/dummy_dep.h:
19893         Added reference so that widgets.o gets linked to the app.
19895 1999-04-23  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
19897         * objects/UML/classicon.c: 
19898         Added object mode.
19900         * objects/UML/actor.c: 
19901         Changed position of 'snap-to-grid' so connection points are
19902         in the grid.
19904 1999-04-22  Alexander Larsson  <alla@lysator.liu.se>
19906         * objects/UML/classicon.c:
19907         Changed position of 'snap-to-grid'.
19908         By Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
19909         
19910 1999-04-22  Alexander Larsson  <alla@lysator.liu.se>
19912         * objects/network/antenna.c
19913         * objects/network/flash.c
19914         * objects/network/hub.c
19915         * objects/network/modem.c
19916         * objects/network/modularswitch.c
19917         * objects/network/rj45plug.c
19918         * objects/network/scead-plug.c
19919         * objects/network/network.c
19920         * objects/network/Makefile.am
19921         * objects/network/pixmaps/antenna.xpm
19922         * objects/network/pixmaps/flash.xpm
19923         * objects/network/pixmaps/hub.xpm
19924         * objects/network/pixmaps/modem.xpm
19925         * objects/network/pixmaps/modularswitch.xpm
19926         * objects/network/pixmaps/rj45plug.xpm
19927         * objects/network/pixmaps/sceadplug.xpm
19928         * objects/network/pixmaps/Makefile.am
19929         Lots of new network objects from
19930         Roland Steinbach <roland@support-system.com>.
19932 1999-04-15  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
19934         * objects/UML/classicon.c: 
19935         Fixed connection positions, saved type as int (it has 3 states),
19936         and other small fixes.
19937         
19938 1999-04-14  Alexander Larsson  <alla@lysator.liu.se>
19940         * app/preferences.c:
19941         * app/load_save.c:
19942         Added preference compress_save. It lets dia save uncompressed
19943         xml files.
19945         * objects/UML/class.c:
19946         Fixed bug with size calculation on methods that had class scope.
19947         
19948 1999-04-13  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
19950         * objects/UML/usecase.c: 
19951         Added collaboration mode
19952         Fixed connection points with text > ellipse bug and other 
19953         small things
19955         * objects/UML/state.c:
19956         Fixed bug of bad position of text after being either end
19957         or begin, moved and returned to text
19959 1999-04-12  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
19961         * app/preferences.c: Add prototype declaration for prefs_apply.
19963 1999-04-11  Alexander Larsson  <alla@lysator.liu.se>
19965         * app/preferences.c:
19966         Added 'ok' button.
19967         Apply don't hide window.
19969         * app/properties.c:
19970         Add 'ok' button.
19972         * objects/UML/object.c:
19973         * objdcts/UML/state.c:
19974         Some data was not copied on copy.
19976         This patch is from
19977         Ben Hochstedler <benh@eeyore.moneng.mei.com>
19979 1999-04-09  Alexander Larsson  <alla@lysator.liu.se>
19981         * app/Makefile.am:
19982         Changed link order between X and libxml.
19983         Some people had problems with an old libz in their
19984         x11 directory.  
19986 1999-04-09  Kjartan Maraas  <kmaraas@online.no>
19988         * po/no.po: updated translation.
19989         
19990 1999-04-08  Lars R. Clausen <lrclause@cs.uiuc.edu>
19992         * lib/message.c (message_error):
19993         Fixed small error.
19995         * app/commands.[ch]:
19996         * app/diagram.[ch]:
19997         Added begining of xfig importing
19999 1999-04-08  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
20001         * objects/UML/pixmaps/state.xpm: 
20002         * objects/UML/state.c: 
20003         New UML object state machine.
20005         * objects/UML/uml.c:
20006         * objects/UML/Makefile.am:
20007         * objects/UML/pixmaps/Makefile.am:
20008         Added the state object.
20009         
20010 1999-04-08  Alejandro Aguilar Sierra  <ale@bucefalo>
20012         * objects/UML/usecase.c: 
20013         Added dialog to allow move text outside the ellipse.
20015 1999-04-08  Alexander Larsson  <alla@lysator.liu.se>
20017         * Released Dia 0.41
20018         Tag called DIA_0_41
20020         * NEWS:
20021         Updates for 0.41.
20022         
20023 1999-04-08  Alexander Larsson  <alla@lysator.liu.se>
20025         * configure.in:
20026         Updated version number to 0.41
20028         * po/*.po:
20029         Update po-files
20031 1999-04-04  Fredrik Hallenberg  <hallon@lysator.liu.se>
20033         * app/app_procs.c
20034         Changed errormessage for --export-to-ps. Removed call to 
20035         g_log_set_always_fatal().
20037         * app/diagram.c
20038         * app/disp_callbacks.c
20039         * app/load_save.c
20040         (i18n) Removed gettext from some debugmessages.
20042         * app/menus.c
20043         Small fix in GNOME-menus. Added warning that will help track
20044         problems with translations.
20046         * po/sv.po
20047         (i18n) Updated swedish translation.
20049 1999-04-02  Alexander Larsson  <alla@lysator.liu.se>
20051         * po/da.po:
20052         New updates
20054 1999-04-01  Alexander Larsson  <alla@lysator.liu.se>
20056         * po/da.po:
20057         * po/no.po:
20058         Some fixes.
20059         
20060 1999-04-01  Alexander Larsson  <alla@lysator.liu.se>
20062         * po/da.po:
20063         (i18n) Updated the danish translation.
20064         From Lars R. Clausen.
20066 1999-04-01  Fredrik Hallenberg  <hallon@lysator.liu.se>
20068         * app/menus.c
20069         (i18n) The popup menu is translated now.
20071         * po/sv.po
20072         (i18n) Updated swedish translation.
20074 1999-03-29  Alexander Larsson  <alla@lysator.liu.se>
20076         * Released Dia 0.40
20077         Tag called DIA_0_40
20079         * NEWS:
20080         Updated for new release
20081         
20082 1999-03-29  Alexander Larsson  <alla@lysator.liu.se>
20084         * objects/network/bus.c:
20085         Added initialization of properties dialog to NULL.
20087         * app/commands.c (edit_cut_callback):
20088         Update menu sensitivity when cut object.
20090         * app/modify_tool.c (click_select_object):
20091         * app/modify_tool.c (modify_button_release): 
20092         Call diagram_update_menu_sensitivity() when
20093         selecting objects to update stuff that depends
20094         on selected/not selected.
20096 1999-03-29  Alexander Larsson  <alla@lysator.liu.se>
20098         * Makefile.am:
20099         Change order of subdir so that libintl.a builds.
20100         Now passed make distcheck.
20102 1999-03-28  Alexander Larsson  <alla@lysator.liu.se>
20104         * lib/font.c (init_x11_font):
20105         Stupid bug fixed.
20107 1999-03-28  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
20109         * objects/UML/pixmaps/classicon.xpm: 
20110         * objects/UML/classicon.c:
20111         * objects/UML/uml.c:
20112         Added the class stereotype icon objects.
20114         * app/commands.c:
20115         Changed default ps extension from .ps to .eps.
20116         
20117 1999-03-28  Alexander Larsson  <alla@lysator.liu.se>
20119         * lib/Makefile.am:
20120         Added diamenu.h and intl.h
20122         * lib/font.c:
20123         Stupid typo fix.
20124         
20125         * objects/UML/pixmaps/Makefile.am:
20126         Added message.xpm
20128         * objects/standard/pixmaps/Makefile.am:
20129         Added image.xpm
20131 1999-03-28  Alexander Larsson  <alla@lysator.liu.se>
20133         * lib/font.c:
20134         Use a scalable font before fixed when real font not found.
20136         * app/commands.c:
20137         Removed warning.
20139         * objects/standard/image.c:
20140         Better handling of loading/saving of images.
20142         * INSTALL:
20143         Added some text about cvs, fonts and rewrote some parts.
20145         * TODO:
20146         Updated with new stuff.
20147         
20148         * configure.in:
20149         Bump up version number to 0.40.
20150         
20151 1999-03-28  Alexander Larsson  <alla@lysator.liu.se>
20153         * app/display.c:
20154         Moved diagram_add_ddisplay() call into new_display().
20155         Fixed new_display to not use uninitialized variables
20156         causing loaded files to show up as black (or garbage).
20157         
20158         * app/commands.c:
20159         * app/app_procs.c:
20160         Removed unneeded calls to diagram_add_ddisplay().
20161         
20162 1999-03-28  Alexander Larsson  <alla@lysator.liu.se>
20164         * objects/UML/lifeline.c:
20165         Fixed bug in copy.
20166         Patch from Andreas Jaeger <aj@arthur.rhein-neckar.de>.
20168         * objects/UML/message.c:
20169         Fixed bug loading messages with null-text.
20170         Patch from Andreas Jaeger <aj@arthur.rhein-neckar.de>.
20172 1999-03-27  Fredrik Hallenberg  <hallon@lysator.liu.se>
20174         * po/sv.po
20175         Updated swedish translation.
20177         * app/menus.c
20178         (GNOME) Removed help-browser from help menu. Fixed typo.
20180         * app/interface.c
20181         (GNOME) Accelerators in diagrams should work now. 
20183 1999-03-25  Fredrik Hallenberg  <hallon@lysator.liu.se>
20185         * app/app_procs.c
20186         * app/commands.c
20187         * app/defaults.c
20188         * app/disp_callbacks.c
20189         * app/display.c
20190         * app/interface.c
20191         * app/menus.c
20192         * app/preferences.c
20193         * app/render_eps.c
20194         * lib/diagramdata.c
20195         * lib/font.c
20196         * lib/message.c
20197         * lib/widgets.c
20198         * objects/ER/*.c
20199         * objects/UML/*.c
20200         * objects/network/*.c
20201         * objects/standard/*.c
20202         * po/update_pofiles_in.sh
20203         * po/POFILES.in
20204         More i18n. All strings (expect rare debug messages) can be
20205         translated now. Moved intl.h from app to lib. Updated
20206         update_pofiles_in.sh to check all .c-files.
20208 1999-03-23  Alexander Larsson  <alla@lysator.liu.se>
20210         * app/disp_callbacks.c (ddisplay_canvas_events):
20211         Don't drop keys while num-lock, scroll-lock etc is on.
20213 1999-03-22  Alexander Larsson  <alla@lysator.liu.se>
20215         * app/render_eps.c (draw_image):
20216         Fixed exporting of images.
20217         Still not perfect, but not outright buggy.
20218         
20219 1999-03-22  Alexander Larsson  <alla@lysator.liu.se>
20221         * configure.in:
20222         * po/hu.po:
20223         Added hungarian translation. By Shooby Ban <bansz@szif.hu>.
20225         * app/Makefile.am:
20226         Added $* to the dia call in run_dia.sh
20228 1999-03-22  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
20229         
20230         * lib/color.[ch]:
20231         Added color_equals() call.
20233         * objects/standard/arc.c:
20234         * objects/standard/line.c:
20235         Don't save unneccesary data.
20236         
20237         * objects/standard/box.c:
20238         * objects/standard/ellipse.c:
20239         * objects/standard/image.c:
20240         * objects/standard/polyline.c:
20241         * objects/standard/zigzagline.c:
20242         Share properties dialog.
20243         Don't save unneccesary data.
20244         
20245 1999-03-22  Seth Alves  <alves@hungry.com>
20247         * app/menus.c:
20248         * app/diagram.c:
20249         * app/display.c:
20250         small changes so that gnome menus aren't broken
20251         
20252 1999-03-22  Alexander Larsson  <alla@lysator.liu.se>
20254         * po/da.po:
20255         Added danish translation from lrclause@cs.uiuc.edu.
20257         * po/POFILES.in:
20258         Updated file.
20260         * po/update_pofiles_in.sh:
20261         Added script that updates POFILES.in.
20262         This should probably be run automatically from somewhere.
20264 1999-03-19  Alexander Larsson  <alla@lysator.liu.se>
20266         * app/diagram.[ch]:
20267         Added function diagram_update_menu_sensitivity() which
20268         sets the sensitivity of some menu items. This function
20269         is called at each diagram state change (from diagram_modified()).
20270         This is needed  because otherwise the keyboard accelerators
20271         don't work correctly.
20273         * app/display.[ch]:
20274         Changed display_set_menu_sensitivity() to display_update_menu_state().
20275         Moved lots of code to diagram_update_menu_sensitivity() in
20276         diagram.c. Optimized to only look up menu-items from path:s once.
20277         
20278         * app/disp_callbacks.c:
20279         * app/interface.c:
20280         When we get a GDK_FOCUS_CHANGE, update menu sensitivity.
20281         Need to set GDK_FOCUS_CHANGE_MASK.
20282         
20283         * app/create_object.c:
20284         Call diagram_modified when an object has been created and
20285         selected so that the menu sensitivity is updated. 
20287         * app/menus.[ch]:
20288         removed menus_set_sensitive() and menus_set_state(). Exported
20289         renamed function menus_get_item_from_path().
20291 1999-03-15  Alexander Larsson  <alla@lysator.liu.se>
20293         * app/disp_callbacks.c:
20294         Show (empty) object menus on object that has none.
20295         Show title on object menus.
20297         * app/display.c:
20298         Set zoom factor correctly when opening new displays.
20299         Better setting of scrollbars.
20301         * app/grid.c:
20302         * app/menus.h:
20303         Some reformating cleanup.
20305         * lib/diamenu.h:
20306         Added title to object menus.
20308         * objects/*/*.c:
20309         Added object menu method (NULL-valued) to all objects.
20311         * objects/standard/polyline.c:
20312         Added title to object menu.
20314 1999-03-14  Alexander Larsson  <alla@lysator.liu.se>
20316         * app/preferences.[ch]:
20317         New files. Implements the preferences dialog and
20318         loading/saving of ~/.diarc.
20320         * app/Makefile.am:
20321         Added preferences.[ch].
20323         * app/app_procs.c:
20324         Load preferences on startup.
20326         * app/commands.[ch]:
20327         Added file_preferences_callback to show the preferences dialog.
20329         * app/create_object.c:
20330         Update extents when creating object.
20331         Use the reset_tools_after_create preferences setting.
20333         * app/display.c:
20334         Use preferences when creating new display.
20336         * app/menus.c:
20337         Add preferences to menu.
20339         * app/defaults.c:
20340         * app/layer_dialog.c:
20341         * app/properties.c:
20342         Don't allow shrinking of dialog.
20343         Add i18n of some strings.
20345 1999-03-11  Kjartan Maraas  <kmaraas@fib.hl.no>
20346         * po/no.po:
20347         Norwegian translation added.
20348         
20349 1999-03-11  Alexander Larsson  <alla@lysator.liu.se>
20351         * objects/standard/line.c: 
20352         * objects/standard/arc.c: 
20353         * objects/standard/polyline.c: 
20354         * objects/standard/zigzagline.c:
20355         Loading of arrow data fixed.
20357 1999-03-09  Alexander Larsson  <alla@lysator.liu.se>
20359         * app/commands.c:
20360         Update extents when saving and exporting to postscript.
20361         Fixes a bug with postscript bounding-box being wrong.
20363         * app/defaults.c:
20364         Changed border width from 5 to 2.
20366         * app/group.c:
20367         Move grouped objects by the move-point of the first object.
20368         Fixes bug that made all objects in the group be off-grid
20369         when moving the group, even though all objects was on-grid.
20371         * app/layer_dialog.c:
20372         Update extents when changing layer.
20374 1999-03-08  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
20376        * objects/UML/uml.c: 
20377        * objects/UML/component.c: 
20378        * objects/UML/pixmaps/component.xpm: 
20379        Added the UML component object
20380         
20381 1999-03-04  Seth Alves  <alves@hungry.com>
20383         * objects/UML/generalization.c (generalization_create): avoid
20384         math on uninitialized genlz->text_width (NaN causes sigfpe)
20385         
20386         * objects/UML/realizes.c (realizes_create): same
20388         * objects/UML/dependency.c (dependency_create): same
20390 1999-03-01  Seth Alves  <alves@hungry.com>
20392         * app/display.c (ddisplay_active): don't fly a warning panel
20393         if ddisplay_active is called when no views are open.
20395         * app/commands.c (set_default_file_selection_directory): set
20396         file selector's default directory if there is already
20397         a document open.
20399 1999-02-28  Alexander Larsson  <alla@lysator.liu.se>
20401         * INSTALL:
20402         New info about imlib requirements.
20404         * Configure.in:
20405         Added lib/pixmaps/Makefile to created makefiles.
20407         * app/app_procs.c:
20408         * app/commands.c:
20409         Change from obsoleted to newer gtk calls.
20410         
20411         * load_save.c:
20412         Pass filename of the diagram when loading and saving.
20413         This creates better oportunities to handle filename saving.
20415         * lib/object.h:
20416         Pass filenames to load and save methods.
20417         
20418         * lib/dia_image.[ch]:
20419         Added dia_image_get_broken() call that returns a image which
20420         is used for 'broken' images.
20421         
20422         * lib/pixmaps/.cvsignore:
20423         * lib/pixmaps/Makefile.am:
20424         * lib/pixmaps/broken.xpm:
20425         New files for the broken image bitmap.
20427         * lib/widgets.c:
20428         Fixed bug with double destroyed filedialog.
20430         * objects/*/*.c:
20431         Updated load and save prototypes to use the new filename argument.
20433         * objects/image.c:
20434         Render broken image instead of line when got no image.
20435         Use the new filename in load and save to save (if possible)
20436         relative pathnames and to better try to find loaded images.
20438 1999-02-28  Alexander Larsson  <alla@lysator.liu.se>
20440         * TODO:
20441         Some updates to the todo file.
20442         
20443         * app/menus.c:
20444         * app/display.c:
20445         Place over/place over => sent to back/bring to front.
20446         Added some keyboard shortcuts to menus.
20447         
20448 1999-02-28  Alexander Larsson  <alla@lysator.liu.se>
20450         * lib/dia_xml.c:
20451         Changed string saving/loading to a new method. This should
20452         be much better att handling &,<,> and whitespaces.
20453         Loading strings of the old kind is still supported for backwards
20454         compatibility.
20456         * samples/ER-demo.dia:
20457         * samples/UML-demo.dia:
20458         Updated to use the new strings.
20459         
20460         * app/load_save.c:
20461         statusbar modified update fix.
20463 1999-02-27  Seth Alves  <alves@hungry.com>
20465         * app/app_procs.c (app_init): added a --export-to-ps option
20466         which will cause dia to load a dia file and save it as ps
20467         and then exit.  this is a little bogus, because it still
20468         pops up a window.  this option only shows up if --enable-gnome
20469         is used
20471         * app/display.c (display_set_menu_sensitivity): no Edit/Delete
20472         menu when built with --enable-gnome
20474         * app/interface.c (create_display_shell): build status bar
20475         even if --enable-gnome is used
20477         * app/menus.c: menu fixes for --enable-gnome
20479         * app/commands.c (file_open_dialog_ok_callback): fixed up
20480         menus when --enable-gnome is used
20481         (file_export_to_eps_callback): set a default file name
20482         when dialog is created
20484 1999-02-27  Alexander Larsson  <alex@c125.ryd.student.liu.se>
20486         * objects/UML/association.c (association_create):
20487         Fixed usage of not initialized variable.
20488         Pointed out by Seth Alves <alves@hungry.com>.
20490 1999-02-24  Alexander Larsson  <alex@c125.ryd.student.liu.se>
20492         * configure.in:
20493         Fixed detection of gnome-xml.
20494         From Valtteri Vuorikoski <vuori@k.notcom.org>.
20495         
20496         * app/app_procs.c:
20497         Fixed error detection on dlsym calls. 
20498         From Valtteri Vuorikoski <vuori@k.notcom.org>.
20500 1999-02-23  Alexander Larsson  <alla@lysator.liu.se>
20502         * objects/UML/message.c (fill_in_dialog):
20503         Fixed warnings.
20505 1999-02-22  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
20507         * objects/standard/zigzagline.c:
20508         * objects/standard/polyline.c:
20509         * objects/standard/line.c:
20510         * objects/standard/arc.c:
20511         * lib/widgets.h:
20512         * lib/arrows.h:
20513         * lib/widgets.c:
20514         Support for sizeable arrows. 
20516         * objects/standard/box.c:
20517         * objects/standard/ellipse.c:
20518         * objects/standard/image.c:
20519         Changed creation handle to lower-right.
20520         Transparent box/ellipse.
20521         
20522         * objects/standard/image.c:
20523         Better layout of properties boxes.
20525 1999-02-20  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
20527         * objects/UML/message.c (fill_in_dialog): 
20528         Fixed dialog fill in. Common dialog for all messages.
20530         * objects/UML/object.c: 
20531         Added multiple instance. Dialog related bugs fixed.
20532         Common dialog for all instances. Completed copy and destroy.
20534         * objects/UML/lifeline.c (lifeline_load): 
20535         Conn initialization bug fixed and few bad loading prevention flags.
20536         Common dialog for all lifeline objects.
20537         
20538 1999-02-15  Alexander Larsson  <alla@lysator.liu.se>
20540         * lib/dia_image.[ch]:
20541         More work on the DiaImage abstraction.
20542         
20543         * app/app_procs.c:
20544         * app/render_eps.c:
20545         * app/render_gdk.c:
20546         * objects/standard/image.c:
20547         Use the new DiaImage calls.
20549 1999-02-15  Alexander Larsson  <alla@lysator.liu.se>
20551         * app/menus.c:
20552         * app/display.c:
20553         Reversed the meaning of align horizontal/vertical.
20555 1999-02-15  Alexander Larsson  <alla@lysator.liu.se>
20557         * app/load_save.c (diagram_load):
20558         Statusbar update fix.
20560 1999-02-15  Alexander Larsson  <alla@lysator.liu.se>
20562         * app/interface.c (create_display_shell):
20563         Fixed status bar size.
20564         
20565 1999-02-15  Alexander Larsson  <alla@lysator.liu.se>
20567         * lib/dia_image.[ch]:
20568         Added extern declaration for dia_image_release.
20569         Removed dia_image_draw, as it's not neseccary.
20571 1999-02-14  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
20572         
20573         * app/object_ops.c: 
20574         * app/menus.c: 
20575         Added equal distance alignment both vertical and horizontal.
20576         
20577         * objects/UML/object.c: 
20578         Added a couple of attributes to load/read that were missing.
20580         * objects/UML/lifeline.c: 
20581         Better handling of handles. Fixed another bug I forgot to add
20582         to my last patch.
20583         
20584 1999-02-13  Alexander Larsson  <alla@lysator.liu.se>
20586         Patch from Lars Clausen <lrclause@shasta.cs.uiuc.edu>
20587         
20588         * lib/dia_image.[ch]:
20589         * lib/Makefile.am:
20590         New files. DiaImage wraps the GdkImlibImage.
20592         * lib/render.h:
20593         * app/render_eps.c:
20594         * app/render_gdk.c:
20595         * lib/render_store.[ch]:
20596         * objects/standard/image.c:
20597         Use the new DiaImagetype.
20599         * lib/widgets.c:
20600         Removed unused variable to eliminate  warning.
20602 1999-02-11  Alexander Larsson  <alla@lysator.liu.se>
20604         * objects/standard/box.c:
20605         Added rounded corners on the box object.
20607         * lib/widgets.[ch]:
20608         Updated the DiaFileSelector widget.
20609         
20610 1999-02-09  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
20612         * objects/UML/object.c (objet_draw): 
20613         Completed underlining of all object name lines. 
20615         * objects/UML/message.c (fill_in_dialog): 
20616         Fixed a bug that filled incorrectly the message's dialog.
20618         * objects/UML/lifeline.c (lifeline_load): 
20619         Some cleanning and fixed a couple of bugs that caused
20620         crashes after reading diagrams with lifelines.
20622         * lib/text.c: 
20623         Added flags to prevent crash with void strings
20625 1999-02-07  Matthias Köster <Matthias.Koester@Informatik.Uni-Oldenburg.DE>
20626         * app/display.[ch]:
20627         Added statusbar to the display widget. Currently shows the zoom
20628         factor and modified flag of the viewed diagram. The statusbar is
20629         updated upon calls to ddisplay_zoom and ddisplay_update_statusbar.
20630         This caused the following additions:
20631         
20632         * app/diagram.[ch]:
20633         Added function diagram_set_modified. Calls
20634         ddisplay_update_statusbar for all displays showing the modified diagram.
20635         Changed diagram_modified to call diagram_set_modified.
20636         
20637         * app/interface.c:
20638         Added the creation of the statusbar.
20639         
20640         * app/load_save.c:
20641         diagram_save now calls diagram_set_modified instead of setting
20642         dia->modified. Needed to force call to display_update_statusbar
20643         
20644         * app/commands.c:
20645         Changed the way view_show_all works. Now calls ddisplay_zoom
20646         instead of directly setting the zoom_factor, so the zoom factor is
20647         correctly shown in the statusbar.
20649         * app/magnify.c:
20650         Fixed rubberband zoom to use ddisplay_zoom().
20651         
20652 1999-02-07  Fredrik Hallenberg  <hallon@lysator.liu.se>
20654         * app/app_procs.c
20655         Rudimentary GNOME session management.
20656         
20657         * app/disp_callbacks.c
20658         * app/interface.c
20659         * app/menus.c
20660         * app/menus.h
20661         GNOME menus. Problems: 
20662         Callbacks doesn't get user_data.
20663         Weird warnings when creating popup menus.
20664         menus_set_sensitive(), menus_set_state() doesn't work.
20666 1999-02-05  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
20668         * configure.in:
20669         Add AM_PATH_GDK_IMLIB() call.
20671         * app/Makefile.am:
20672         Add gdk_imlib to linking flags.
20674         * app/app_procs.c:
20675         Init gdk_imlib.
20676         Print library-loading error messages on stdout too.
20678         * app/interface.c:
20679         Add standard image to toolbox.
20680         
20681         * app/render_eps.c: 
20682         Set a more reasonable dot length.  Fixed
20683         missing initialization of dot length.
20684         Added draw_image methods.
20686         * app/render_gdk.c (new_gdk_renderer): 
20687         Dot a bit wider.  Looks good in normal mode now.
20689         * objects/standard/image.c:
20690         * objects/standard/pixmaps/image.xpm:
20691         New files. Standard object for images.
20692         
20693         * app/render_eps.c (set_linestyle):
20694         * app/render_gdk.c (set_linestyle):
20695         * lib/widgets.c (dia_line_style_selector_init): 
20696         * lib/render.h: 
20697         New line style DOTTED.
20699         * lib/render.h:
20700         * lib/render_store.c:
20701         Change DrawImage call to use gdk_imlib.
20703         * lib/widgets.[ch]:
20704         Added widgets for selecting files.
20705         Added dotted to the linestyle selector.
20707 1999-02-06  Alexander Larsson  <alla@lysator.liu.se>
20709         * objects/network/printer.c:
20710         * objects/network/network.c:
20711         * objects/network/pixmaps/printer.xpm:
20712         * objects/network/.cvsignore:
20713         * objects/network/Makefile.am:
20714         * objects/network/pixmaps/Makefile.am:
20715         New printer object in network.
20716         From Martin Hawlisch <hawlisch@roxi.rz.fh-mannheim.de>
20718         * TODO:
20719         Added known XML bug.
20720         
20721 1999-02-06  Alexander Larsson  <alla@lysator.liu.se>
20723         * app/load_save.c:
20724         * lib/dia_xml.c:
20725         Reverted back from #include <gnome-xml/tree.h> to
20726         #include <tree.h> as this is fixed by the xml-config program.
20727         The former way broke for some people.
20728         Reported by blizzard@redhat.com.
20730         * objects/UML/lifeline.c:
20731         * objects/UML/message.c:
20732         * objects/UML/object.c:
20733         Removed some warnings.
20734         
20735 1999-02-04  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
20737         * objects/UML/lifeline.c: 
20738         Fixed connection points over the life line when the focus of
20739         control is not drawn.
20741         * objects/UML/message.c: 
20742         Now a recursive message can be freely resized using the handles.
20744 1999-02-02  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
20746         * objects/UML/lifeline.c:
20747         Added connection points.
20748         Added properties dialog with the option to draw/hide focus of control
20749         box and destruction mark.
20751         * objects/UML/object.c: 
20752         Added properties dialog and stereotype, explicit state and attributes. 
20753         It's also possible to mark the object as active.
20755         * objects/UML/pixmaps/object.xpm: 
20756         Cosmetic change.
20758         * objects/UML/message.c:
20759         Added "recursive" message type (was not necessary to use OrthConn).
20761 1999-02-02  Alexander Larsson  <alla@lysator.liu.se>
20763         * objects/standard/arc.c:
20764         Removed old debug code. Fixes a visual bug. From lrclause@cs.uiuc.edu.
20766 1999-02-01  Alexander Larsson  <alla@lysator.liu.se>
20768         Patch from Lars R. Clausen <lrclause@cs.uiuc.edu>
20769         
20770         * app/load_save.c:
20771         * lib/dia_xml.c:
20772         Update xml includes to gnome-xml/*.h.
20774         * objects/standard/arc.c:
20775         Only one property dialog per type.
20776         Fix arrows directions.
20778         * objects/standard/box.c:
20779         * objects/standard/ellipse.c:
20780         * objects/standard/textobj.c
20781         Added default properties dialog.
20782         
20784 1999-01-31  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
20786         * objects/UML/Makefile.am: 
20787         * objects/UML/uml.c:
20788         * objects/UML/lifeline.c: 
20789         * objects/UML/object.c: 
20790         * objects/UML/message.c:
20791         * objects/UML/pixmaps/lifeline.xpm: 
20792         * objects/UML/pixmaps/object.xpm: 
20793         * objects/UML/pixmaps/message.xpm:
20794         Added 3 new UML objects for dynamic modeling. To avoid internal 
20795         conflicts, the name "objet" is used for object "object".        
20797         * lib/arrows.[ch]: 
20798         Added ARROW_HALF_HEAD arrow type to allow drawing asynchronous
20799         UML messages.
20800         
20801 1999-01-30  Alexander Larsson  <alla@lysator.liu.se>
20803         * app/display.[ch]:
20804         * app/modify_tool.c:
20805         Added autoscrolling while doing rubber-band select.
20806         This patch from Matthias Köster
20807         (Matthias.Koester@Informatik.Uni-Oldenburg.DE)
20808         
20810 1999-01-28  Alexander Larsson  <alla@lysator.liu.se>
20812         * app/defaults.[ch]:
20813         New files, deals with default properties dialog.
20815         * lib/diamenu.h:
20816         New file. Contains definitions for the new object menu.
20818         * lib/poly_conn.[ch]:
20819         New file. Base class for poly-line like objects.
20821         * objects/standard/polyline.c:
20822         * objects/standard/pixmaps/polyline.xpm:
20823         New files. Polyline object.
20825         * app/app_procs.c:
20826         Fixed bug with infinite loop when registering sheets.
20827         
20828         * app/commands.c:
20829         Removed unneccesary stuff.
20831         * app/disp_callbacks.c:
20832         Support for object menus.
20834         * app/interface.c:
20835         Added polyline to toolbox.
20836         Added call to tool_options_dialog_show() when double clicking on
20837         tool.
20839         * app/tool.[ch]:
20840         New function tool_options_dialog_show() for tool properties.
20842         * lib/arrows.[ch]:
20843         Added ARROW_NONE.
20845         * lib/object.h:
20846         Added ObjectType methods for handling object default dialogs.
20847         Added Object method for handling object_menu.
20848         Added unused methods to ObjectTypeOps for future binary
20849         compatibility.
20851         * lib/widgets.[ch]:
20852         Added DiaArrowTypeSelector widget.
20854         * objects/standard/arc.c:
20855         * objects/standard/zigzagline.c:
20856         Added support for default properties.
20858         * objects/standard/line.c:
20859         Added support for default properties.
20860         Just use one properties dialog for all line objects. NOTE: This
20861         seems to have a bug. We're working on it.
20863         * standard/standard.c:
20864         Add the polyline object.
20866 1999-01-27  Alexander Larsson  <alla@lysator.liu.se>
20868         * app/modify_tool.c:
20869         Commented out buggy transitive select function. It wasn't really
20870         meant to go into cvs.
20871         
20873 1999-01-25  Fredrik Hallenberg  <hallon@lysator.liu.se>
20875         * autogen.sh:
20876         * acconfig.h:
20877         * configure.in:
20878         * Makefile.am:
20879         * app/Makefile.am:
20880         * po/POTFILES.in:
20881         * app/intl.h
20882         i18n-support.
20884         * po/sv.po:
20885         Swedish translation. Not completed.
20886         
20887         * configure.in:
20888         * acconfig.h:
20889         Added possibility to enable GNOME specific code with configure.
20891         * configure.in:
20892         Added possibility to set debug level with configure.
20894         * commands.[hc]:
20895         Added about dialog.
20897         * app_procs.c
20898         * commands.c
20899         * interface.c
20900         * menus.c
20901         Added some GNOME specific code. Not ready for use.
20903 1999-01-24  Alexander Larsson  <alla@lysator.liu.se>
20905         * INSTALL:
20906         Added text about needing gtk 1.1.13 and gnome-xml.
20907         
20908         * NEWS:
20909         Described changes since last version (0.20).
20911         Released version 0.30, tagged DIA_0_30.
20913 1999-01-22  Alexander Larsson  <alla@lysator.liu.se>
20915         * app/magnify.c (magnify_button_release):
20916         Fixed a problem when zooming in on a very small box would
20917         not release the grabbed pointer-focus.
20919 1999-01-21  Alexander Larsson  <alla@lysator.liu.se>
20921         * app/load_save.c (diagram_load):
20922         Be somewhat more robust when loading files that
20923         are not diagrams.
20924         
20925 1999-01-21  Alexander Larsson  <alla@lysator.liu.se>
20927         * app/app_procs.c:
20928         * objects/ER/er.c:
20929         * objects/UML/uml.c:
20930         * objects/network/network.c:
20931         * objects/standard/standard.c:
20932         Added versioning of object libraries.
20934         * app/create_object.c:
20935         Don't change tool when an object is created.
20936         
20937         * objects/network/network.c:
20939         * TODO:
20940         Update
20942 1999-01-19  Alexander Larsson  <alla@lysator.liu.se>
20944         * configure.in:
20945         Updated gtk requirement to Gtk+ 1.1.13.
20947         * app/display.c:
20948         Always add one screenful of scrolling space on
20949         each side of a diagram window.
20951 1999-01-19  Jeff Garzik  <jgarzik@pobox.com>
20953         * autogen.sh:
20954         Tell automake to auto-install missing files.
20956         * app/menus.c:
20957         Renamed deprecated Gtk+ function.
20959 1999-01-16  Alexander Larsson  <alla@lysator.liu.se>
20961         * Makefile.am:
20962         * configure.in:
20963         * samples/Makefile.am:
20964         * samples/ER-demo.dia:
20965         * samples/UML-demo.dia:
20966         Added samples directory.
20967         Added samples for ER and UML.
20968         
20969         * app/commands.c:
20970         * app/disp_callbacks.c:
20971         * app/menus.c:
20972         Zoom is done by sqrt(2) instead of 2.
20973         Lots of more zoom options in the menu.
20975         * objects/ER/relationship.c:
20976         Relationships have 8 connectionpoints instead of 4.
20978         * objects/UML/class.c:
20979         UML class name font a bit smaller.
20980         Fixed stupid bug in the copy operation.
20981         
20982         * app/display.c:
20983         Displays are opened at 500x400 instead of 256x256.
20985         * app/load_save.c:
20986         Fixup of internal error message.
20988         * app/color_area.c:
20989         * app/diagram.c:
20990         * app/modify_tool.c:
20991         * lib/object.c:
20992         Removed debug printf's.
20993         
20994         * TODO (BUGS):
20995         Added new known bug.
20997 1999-01-16  Alexander Larsson  <alla@lysator.liu.se>
20999         * app/interface.c:
21000         * app/menus.c:
21001         Fixed so accelerator groups work in all windows.
21002         Updated to new gtk function names.
21004         * TODO (BUGS):
21005         Removed fixed bug.
21007         * app/display.c:
21008         Updated to new gtk function names.
21009         Set sensitivity of the align menu items.        
21011         * objects/ER/pixmaps/Makefile.am:
21012         * objects/UML/pixmaps/Makefile.am:
21013         * objects/network/pixmaps/Makefile.am:
21014         Fix so that make dist works.
21016         * app/app_procs.c:
21017         * app/color_area.c:
21018         * app/commands.c:
21019         * app/diagram.c:
21020         * app/grid.c:
21021         * app/layer_dialog.c:
21022         * app/load_save.c:
21023         * app/object_ops.c:
21024         * app/properties.c:
21025         * lib/diagramdata.[ch]: 
21026         * lib/message.c:
21027         * lib/objects/ER/attribute.c:
21028         * lib/objects/ER/entity.c:
21029         * lib/objects/ER/participation.c:
21030         * lib/objects/ER/relationship.c:
21031         * lib/objects/ER/.c:
21032         * objects/UML/actor.c:
21033         * objects/UML/association.c:
21034         * objects/UML/class_dialog.c:
21035         * objects/UML/dependency.c:
21036         * objects/UML/generalization.c:
21037         * objects/UML/large_package.c:
21038         * objects/UML/realizes.c:
21039         * objects/UML/.c:
21040         * objects/UML/.c:
21041         Updated to new gtk function names.
21042         Removed warnings.
21044 1999-01-15  Alexander Larsson  <alla@lysator.liu.se>
21046         * TODO:
21047         Update TODO.
21049         * app/app_procs.c:
21050         Fixed loading of diagrams specified as arguments.
21052         * objects/ER/attribute.c:
21053         * objects/ER/entity.c:
21054         * objects/ER/er.c:
21055         * objects/ER/participation.c:
21056         * objects/ER/relationship.c:
21057         Updated the ER objects.
21058         
21060 1999-01-14  Alexander Larsson  <alla@lysator.liu.se>
21062         * configure.in:
21063         * app/Makefile.am:
21064         * objects/Makefile.am:
21065         * objects/ER/attribute.c:
21066         * objects/ER/entity.c:
21067         * objects/ER/er.c:
21068         * objects/ER/participation.c:
21069         * objects/ER/relationship.c:
21070         * objects/ER/pixmaps/Makefile.am:
21071         * objects/ER/pixmaps/attribute.xpm:
21072         * objects/ER/pixmaps/entity.xpm:
21073         * objects/ER/pixmaps/participation.xpm:
21074         * objects/ER/pixmaps/relationship.xpm:
21075         * objects/ER/pixmaps/weakentity.xpm:
21076         First commit of entity relationship objects.
21077         These were done by hallon@lysator.liu.se.
21078         There are still stuff to do on these.
21079         
21080 1999-01-14  Alexander Larsson  <alla@lysator.liu.se>
21082         * TODO:
21083         Updates.
21085         * app/diagram.[ch]:
21086         Change diagram_remove_all_selected to take new argument
21087         delete_empty. Empty objects are deleted only if it is TRUE.
21088         Removed call to close_eps_renderer. This is now done in end_render
21089         in the eps renderer.
21091         * app/create_object.c:
21092         * app/layer_dialog.c:
21093         Update calls to diagram_remove_all_selected.
21095         * app/commands.c:
21096         Update calls to diagram_remove_all_selected.
21097         Some code reformating.
21098         Changed order of adding updates i align_h and align_v.
21100         * app/modify_tool.c:
21101         Update calls to diagram_remove_all_selected.
21102         Added pointer grab when doing rubber-band selection, this fixes
21103         the bug when draging the box over to another window.
21105         * app/connectionpoint_ops.[ch]:
21106         diagram_update_connections_object changed to take an argument
21107         update_nonmoved. This lets connections that has not moved, but
21108         the stuff they're connected to has been moved work.
21109         Update calls to the new diagram_update_connections_object.
21111         * app/properties.c:
21112         Update calls to the new diagram_update_connections_object.
21113         Update extents when properties are applied.
21114         
21115         * app/disp_callbacks.c:
21116         Added support for zooming with the '+' and '-' keys.
21118         * app/menus.c:
21119         Removed old keyboard shortcuts for zoom.
21121         * lib/render.h:
21122         Added calls begin_render and end_render to renderer.
21123         These can be used for setup and cleanup.
21125         * lib/diagramdata.c:
21126         Added calls to begin_render and end_render in data_render.
21128         * app/render_gdk.c:
21129         Added begin_render and end_render.
21131         * app/render_eps.[ch]:
21132         Added begin_render and end_render.
21133         Moved close_eps_renderer code to end_render.
21134         Various fixes to the generated eps code. This fixes importing
21135         generated eps into LYX.
21136         
21137 1999-01-12  Alexander Larsson  <alla@lysator.liu.se>
21139         * TODO:
21140         Update of todo.
21141         
21142         * app/menus.c:
21143         Menus for alignment updated.
21145         * app/object_ops.[ch]:
21146         Functions for object alignment updated.
21148         * app/commands.[ch]:
21149         Object alignment callbacks updated.
21150         New diagrams are called Untitled-<nr>.
21152         * app/layer_dialog.c:
21153         Active layer selected when showing layers from new
21154         diagram.
21156         * app/load_save.c:
21157         Compress xml files when saving.
21158         Use xml namespace 'dia'.
21160         * lib/object.h:
21161         Minor comment update.
21163         * objects/UML/class_dialog.c:
21164         Cleanup of the gkt_list_item moving code.
21165         Fixed bug with update of operation when moving parameters.
21167 1999-01-10  Alexander Larsson  <alla@lysator.liu.se>
21169         * app/layer_dialog.[ch]:
21170         Fixed the rest of the layers dialog.
21172         * app/dialog.c:
21173         Added call to redo layer dialogs diagram list when changing
21174         diagram name.
21176         * lib/diagramdata.[ch]:
21177         Added data_raise_layer and data_lower_layer functions for
21178         raising/lowering layers. Added data_add_layer_at for adding a
21179         layer at a specified index.
21181 1999-01-05  Alexander Larsson  <alla@lysator.liu.se>
21183         This is the asierra-990105 patch done by asierra@servidor.unam.mx.
21184                 
21185         * app/app_procs.c:
21186         Added support for reading diagrams from the command line.
21188 1998-12-21  Alexander Larsson  <alla@lysator.liu.se>
21190         This is the asierra-981220 patch done by asierra@servidor.unam.mx.
21191                 
21192         * app/commands.[ch]:
21193         Added objects_align_callback().
21195         * app/menus.c:
21196         Added align objects to menu.
21198         * app/object_ops.[ch]:
21199         Add object_list_align().
21200         
21201 1998-12-17  Alexander Larsson  <alla@lysator.liu.se>
21202         * app/layer_dialog.[ch]:
21203         New files. Handles the layers dialog. Needs a bugfix for glib to
21204         work. Sent patch to gtk-list.
21205         
21206         * app/pixmaps/new.xpm:
21207         * app/pixmaps/eye.xbm:
21208         * app/pixmaps/lower.xpm:
21209         * app/pixmaps/raise.xpm:
21210         * app/pixmaps/delete.xpm:
21211         New files. Images for the layer dialog buttons.
21212         
21213         * lib/diagramdata.h
21214         * lib/diagramdata.c
21215         New files for the DiagramData and Layer structures and functions.
21216         
21217         * app/app_procs.c:
21218         Added call to create_layer_dialog() on startup.
21219         
21220         * app/commands.[ch]:
21221         New callbacks for showing the properties and layout dialog.
21222         Changes for the new DiagramData structure.
21224         * app/connectionpoint_ops.c:
21225         * app/cut_n_paste.c:
21226         * app/diagram.[ch]:
21227         * app/display.[ch]:
21228         * app/group.c:
21229         * app/modify_tool.c:
21230         * app/object_ops.[ch]:
21231         * app/render_eps.c:
21232         * lib/object.[ch]:
21233         Changes for the new DiagramData structure.
21235         * app/interface.c:
21236         * app/properties.c:
21237         Set correct wmclasses.
21239         * app/load_save.c:
21240         Fix load and save of layers.
21242         * diagram.dtd:
21243         Update DTD for layers.
21244         
21245         * app/menus.c:
21246         New menus for dialogs.
21248         
21249         * TODO:
21250         Some updates.
21251         
21252 1998-12-06  Alexander Larsson  <alla@lysator.liu.se>
21254         * TODO:
21255         Removed the gtk 1.1.5 stuff.
21257         * configure.in:
21258         Updated gtk check to version 1.1.5.
21259         Updated version from 0.20 to 0.30
21261         * app/commands.[ch]:
21262         Updated some callbacks to be of type GtkItemFactoryCallback1.
21263         Not all are done yet, but it works anyway.
21265         * app/display.h:
21266         Removed Gtk 1.0.0 GtkAcceleratorTable references.
21267         
21268         * app/interface.c:
21269         * app/menus.[ch]:
21270         Update to Gtk 1.1.x functions.
21271         Use ItemFactory instead of MenuFactory.
21272         
21273         * app/render_gdk.c:
21274         Removed Gtk 1.0.0 references.
21276         * objects/UML/class_dialog.c:
21277         Scrolled window updates for Gtk 1.1.5.
21278         
21279         * lib/dia_xml.c:
21280         Removed ugly fix for gnome-xml bug. Make sure you get the
21281         newest version of gnome-xml from CVS.
21282         
21283 1998-12-05  Alexander Larsson  <alla@lysator.liu.se>
21285         * TODO:
21286         Removed the xml load/save line.
21288         * lib/files.[ch]:
21289         Removed files.
21290         
21291         * lib/Makefile.am:
21292         Removed building of files.c
21294         * app/load_save.c:
21295         * lib/connection.c:
21296         * lib/element.c:
21297         * lib/object.c:
21298         * lib/orth_conn.c:
21299         * lib/render_object.c:
21300         * objects/UML/actor.c:
21301         * objects/UML/association.c:
21302         * objects/UML/class.c:
21303         * objects/UML/constraint.c:
21304         * objects/UML/dependency.c:
21305         * objects/UML/generalization.c:
21306         * objects/UML/implements.c:
21307         * objects/UML/large_package.c:
21308         * objects/UML/note.c:
21309         * objects/UML/realizes.c:
21310         * objects/UML/small_package.c:
21311         * objects/UML/uml.c:
21312         * objects/UML/usecase.c:
21313         * objects/network/bus.c:
21314         * objects/standard/arc.c:
21315         * objects/standard/box.c:
21316         * objects/standard/ellipse.c:
21317         * objects/standard/line.c:
21318         * objects/standard/textobj.c:
21319         * objects/standard/zigzagline.c:
21320         Removed all includes of files.h
21322         
21323 1998-12-05  Alexander Larsson  <alla@lysator.liu.se>
21325         * dialog.dtd:
21326         Made the val property of string be implied.
21327         This makes it possible to save strings that
21328         are NULL. Just leave out val.
21330         * objects/lib/dia_xml.c:
21331         Fixed string so that it is possible to save strings
21332         that are NULL. Also made an ugly workaround of a
21333         bug in gnome-xml which removes empty properties.
21334         
21335         * objects/lib/orth_conn.c:
21336         Fixed a bug in saving. Forgot to step through the
21337         directions.
21338         
21339         * objects/UML/association.c: 
21340         * objects/UML/class.c: 
21341         * objects/UML/constraint.c: 
21342         * objects/UML/dependency.c: 
21343         * objects/UML/generalization.c: 
21344         * objects/UML/implements.c: 
21345         * objects/UML/large_package.c: 
21346         * objects/UML/note.c: 
21347         * objects/UML/small_package.c:
21348         * objects/UML/realizes.c:
21349         * objects/UML/usecase.c: 
21350         * objects/UML/actor.c: 
21351         Fixed UML objects to save as xml.
21352         The last two were done by asierra@servidor.unam.mx (asierra-981204)
21353         
21354         * objects/UML/uml.[ch]:
21355         Updated *_write() and *_read() functions to use xml.
21357         * objects/network/bus.c: 
21358         * objects/network/computer.c: 
21359         * objects/network/disc.c: 
21360         * objects/network/monitor.c:
21361         Updated network diagrams to use xml.
21363 1998-12-02  Alexander Larsson  <alla@lysator.liu.se>
21365         * dialog.dtd:
21366         New file. DTD that describes the xml file format
21367         dia uses.
21369         * lib/dia_xml.[ch]:
21370         New files. Support for saving object to xml files.
21372         * configure.in:
21373         * app/Makefile.am:
21374         * lib/Makefile.am:
21375         Added check for and usage of gnome-xml library.
21377         * app/load_save.c:
21378         Major chages. Now saves/loads diagrams as xml.
21380         * lib/object.[ch]:
21381         * lib/element.[ch]:
21382         * lib/connection.[ch]:
21383         * lib/orth_conn.[ch]:
21384         * lib/render_object.[ch]:
21385         * lib/text.[ch]:
21386         Updated object support load/save functions for xml:
21388         * object/standard/arc.c:
21389         * object/standard/box.c:
21390         * object/standard/ellipse.c:
21391         * object/standard/line.c:
21392         * object/standard/textobj.c:
21393         * object/standard/zigzagline.c:
21394         Updated all standard objects to use xml.
21395         
21396         NOTE NOTE NOTE
21397         Only the standard objects are converted right now, don't
21398         save or load uml or network diagrams yet. Also, since this
21399         is new code it is deemed a bit unstable.
21400         
21401         * TODO
21402         Added a know bug.
21404 1998-12-01  Alexander Larsson  <alla@lysator.liu.se>
21406         * objects/UML/class.c:
21407         Changed classname font to Helvetica.
21408         Added more space above the classname
21410         * objects/UML/usecase.c:
21411         Correct placements of connectionpoints on ellipse.
21412         Better algorithm for deciding aspect ration on
21413         ellipse.
21415         These changes were made by Alejandro Aguilar Sierra
21416         <asierra@servidor.unam.mx>. (asierra-981201)
21418 1998-11-30  Alexander Larsson  <alla@lysator.liu.se>
21420         * objects/UML/actor.c:
21421         Changed the extents and alignment of the element
21422         and the text.
21424         * objects/UML/.cvsignore:
21425         Added usecase.lo and actor.lo.
21427 1998-11-30  Alexander Larsson  <alla@lysator.liu.se>
21429         * objects/UML/actor.c:
21430         * objects/UML/usecase.c:
21431         * objects/UML/pixmaps/actor.xpm:
21432         * objects/UML/pixmaps/case.xpm:
21433         New files. Implements usecase and actor UML objects.
21434         These objects are done by Alejandro Aguilar Sierra
21435         <asierra@servidor.unam.mx>.
21436         
21437         * objects/UML/Makefile.am:
21438         * objects/UML/pixmaps/Makefile.am:
21439         Added usecase and actor to makefile.
21440         
21441         * AUTHORS:
21442         Added Alejandro and Jerome to autors list.
21443         
21444 1998-11-25  Alexander Larsson  <alla@lysator.liu.se>
21446         * objects/UML/class.c (umlclass_load):
21447         Fixed typo. Reported by Jerome.Abela@solsoft.fr
21449 1998-11-24  Alexander Larsson  <alla@lysator.liu.se>
21451         * app/properties.c:
21452         Update connections when doing apply in the properties window.
21454         * objects/UML/uml.[ch]:
21455         * objects/UML/class.[ch]:
21456         * objects/UML/class_dialog.c:
21457         Added connection points on both sides of attributes and
21458         operations in UML classes.
21459         Based on idea from Jerome.Abela@solsoft.fr
21460         
21461 1998-11-24  Alexander Larsson  <alla@lysator.liu.se>
21463         * README:
21464         Some new documentation about handles and connectionpoints.
21465         
21466         * lib/object.[ch]:
21467         Added functions object_add_connectionpoint and
21468         object_remove_connectionpoint for handling a dynamic
21469         number of connectionpoints.
21471         * objects/UML/class.c:
21472         Only reserve space for stereotype when it is shown.
21474         These changes are from Jerome Abela <Jerome.Abela@solsoft.fr>
21476 1998-11-08  Alexander Larsson  <alla@lysator.liu.se>
21478         * app/connectionpoint_ops.c:
21479         * app/commands.c:
21480         * app/disp_callbacks.c:
21481         * app/display.[ch]:
21482         * app/grid.c:
21483         * app/handle_ops.c:
21484         * app/magnify.c:
21485         * app/modify_tool.c:
21486         * app/render_gdk.[ch]:
21487         * lib/render.h:
21488         Huge cleanup of internal rendering system.
21489         Moved a lot of data (pixmap, width, height & gc) into the GdkRenderer.
21490         This gives a few new methods for Interactive Renderers for setting
21491         clipping regions and drawing pixel based lines and rects.
21492         Updated the rest of the code to use the new stuff.
21493         
21494         * app/render_eps.c:
21495         Fixed warning.
21497         * lib/widgets.c:
21498         * objects/standard/zigzagline.c
21499         Fixed unused variable warnings.
21501         * lib/font.c:
21502         Fixedbug with stringwidth where width==0.
21504         * TODO:
21505         Added known bug.
21507 1998-11-02  Alexander Larsson  <alla@lysator.liu.se>
21509         * lib/widgets.[ch]:
21510         Added suppot for setting the font of a
21511         DiaFontSelector widget.
21512         Also fixed some typos in the header.
21514         * lib/object.h: 
21515         Added a comment about the GetPRoperties method call.
21516         You have to make sure to update widget state when
21517         this method is called. (Not all objects do this yet,
21518         to be fixed.)
21520         * TODO:
21521         Some small updates
21523 1998-11-01  Alexander Larsson  <alla@lysator.liu.se>
21525         * lib/font.c
21526         Fixed problem with height of ascent and descent for fonts.
21527         It didn't use the whole height (==ascent+descent) when calculatine
21528         ascent_ratio and descent_ratio.
21530         * objects/standard/textobj.c:
21531         * objects/standard/box.c:
21532         * objects/standard/ellipse.c:
21533         * objects/standard/line.c:
21534         * objects/standard/arc.c:
21535         Updated and added property dialogs for these objects.
21536         Also added line width/color/style to those objects
21537         that didn't have it.
21538         This change breaks fileformat compatibility for these objects.
21539         
21540         * objects/standard/zigzagline.c:
21541         Changed zigzagline to be based on OrthConn, much nicer.
21542         Also added line style and color to properties.
21543         This change breaks fileformat compatibility for zigzagline.
21545         * lib/message.c:
21546         Fixed bug in message(). Forgot a pair of '&'.
21548 1998-10-29  Alexander Larsson  <alla@lysator.liu.se>
21550         * lib/widgets.[ch]:
21551         Added DiaColorSelector widget.
21552         This is a colored button that pops up a color selection
21553         dialog when pressed.
21555 1998-10-28  Alexander Larsson  <alla@lysator.liu.se>
21557         * lib/widgets.[ch]:
21558         * lib/Makefile.am:
21559         New files, added widgets for selecting fonts, alignment
21560         and line-style. Will be used later.
21562 1998-10-12  Alexander Larsson  <alla@lysator.liu.se>
21564         * app/Makefile.am:
21565         * lib/Makefile.am:
21566         * objects/UML/Makefile.am:
21567         * objects/network/Makefile.am:
21568         * objects/standard/Makefile.am:
21569         Changed "CFLAGS = -Wall -g" to "CFLAGS = @CFLAGS@"
21570         in all Makefile.am.
21572 1998-10-03  Alexander Larsson  <alla@lysator.liu.se>
21574         * app/handle_ops.c (handle_draw):
21575         connected HANDLE_MINOR_CONTROL also becomes red.
21577 1998-10-02  Alexander Larsson  <alla@lysator.liu.se>
21579         * Makefile.am:
21580         removed -ldl from linking. This is added if needed by configure.
21582         * app/app_procs.c:
21583         Open dlls with RTLD_LAZY if it is defined.
21584         Some cleanups: char *error -> const char *error
21585         Added fprintf()'s to where we exited because of errors.
21587         * lib/files.c:
21588         Include <sys/types.h>
21590 1998-10-01  Alexander Larsson  <alla@lysator.liu.se>
21592         * acconfig.h:
21593         * configure.in:
21594         * app/app_procs.c:
21595         Detect dlopen better.
21596         Detect wether dlopen needs an underscore in the identifier.
21597         This code was mostly borrowed from guile.
21599         * lib/sheet.[ch]:
21600         * app/app_procs.c:
21601         * objects/standard/standard.c:
21602         * objects/network/network.c:
21603         * objects/UML/uml.c:
21604         * most objects:
21605         Changed the way sheets reference objects to use just the
21606         name. Changed module loading to a two stage model:
21607         First register_objects() is called for all modules.
21608         Then register_sheets() is called. This means that
21609         sheets can safely include objects from other modules.
21610         
21612 1998-09-30  Alexander Larsson  <alla@lysator.liu.se>
21614         * objects/network/bus.c:
21615         * objects/network/network.c:
21616         * objects/network/Makefile.am:
21617         New file bus.c. Added new object: Ethernet bus.
21619         * objects/standard/box.c:
21620         Added call to gtk_spin_button_set_numeric for linewidth spinner
21621         in property dialog.
21623 1998-09-30  Alexander Larsson  <alla@lysator.liu.se>
21625         * app/connectionpoint_ops.c:
21626         * app/create_object.c:
21627         * app/group.c:
21628         * app/handle_ops.c:
21629         * app/modify_tool.c:
21630         * lib/connection.c:
21631         * lib/element.c:
21632         * lib/handle.h:
21633         * lib/object.c:
21634         * lib/orth_conn.c:
21635         * loads of objects:
21636         Changed handle->connectable to handle->connect_type.
21637         Now handles can be HANDLE_CONNECTABLE_NOBREAK, which means
21638         that their connections don't break when moving objects.
21640         * app/diagram.c:
21641         Always select the last handle in an object that has
21642         the closest distance.
21643         
21644         * lib/geometry.[ch]:
21645         Added rectangle_add_point function.
21646         
21648 1998-09-27  Alexander Larsson  <alla@lysator.liu.se>
21650         * app/properties.[ch]: New files. Handles the new properties
21651         dialog.
21653         * app/modify_tool.c: Changed to use new properties dialog.
21655         * app/object_ops.[ch]: Removed object_changed_callback, as it's
21656         not needed anymore. This is now handled differently in
21657         properties.c
21659         * lib/object.[ch]:
21660         Changed the properties ops for objects. Removed typedefs
21661         ChangedObjectTime and ObjectChangedFunc needed for the old way.
21662         Added object_return_null function.
21663         
21664         * app/group.c:
21665         * lib/render_object.c:
21666         * objects/*/*.c:
21667         Changed objects to use the new properties dialog.
21668         
21670 1998-09-14  Nuno Ferreira  <nmrf@rnl.ist.utl.pt>
21672         * */Makefile.am (INCLUDES): Changes to work with srcdir !=
21673         builddir.
21675         * autogen.sh: New file. Copied from gtk and added a call to
21676         libtoolize. Anyone knows why this isn't done in gtk?
21678         * Removed autogenerated files.
21680 1998-09-12  Alexander Larsson  <alla@lysator.liu.se>
21682         * Added call setlocale(LC_NUMERIC, "C") so that formating of
21683           floating-point numbers in postscript output will be correct.
21684         * Did some cleanup of generated postscript files.