More text_line happiness
[dia.git] / ChangeLog
blobd40bb5db58bc0d21577b76c49e1c5ee49f4c607c
1 2006-11-25  Lars Clausen  <lars@raeder.dk>
3         * lib/diagdkrenderer.c: Make highlighted area match text area, and
4         use text_line in get_text_width.  These should later be
5         superfluous due to increased use of text_line at higher levels.
7         * lib/dialibartrenderer.c: Implement text_line based rendering of
8         text.  Works.  Also get_text_width uses a text_line.  Text
9         bounding box is still a little off, but that will help once
10         text_line is used in the text system.
12         * lib/arrows.c (arrow_get_name_from_type): Function to get arrow
13         names, and proper error messages when a loaded diagram has bad
14         arrows.  Finally fixes bug #144394, thanks to both Pontus Pihlgren
15         <pontus.pihlgren@farmbio.uu.se> and Vadim Zelenin
16         <green@visoft.spb.ru> 
18 2006-11-24  Lars Clausen  <lars@raeder.dk>
20         * samples/Metapost-Testcase.dia: A nice test case for MetaPost,
21         including most basic rendering things.
23         * lib/textline.[ch]: Little cache fix, and adding a function to
24         get alignment widths for a TextLine.
26         * lib/diagdkrenderer.c (draw_text_line): Make caching of renderer
27         data for textline work, get rid of last use of _scaled_ stuff.
28         
29 2006-11-23  Lars Clausen  <lars@raeder.dk>
31         * lib/diagdkrenderer.c (draw_text_line): 
32         * lib/textline.[ch]: Underlying implementation and first
33         (currently commented out) attempt at use of textline renderer data
34         cache.  Not debugged, but thennobody holds textline objects long
35         enough to make a difference yet. 
37 2006-11-22  Lars Clausen  <lars@raeder.dk>
39         * app/menus.c: Patch adding shortcuts for align functions, thanks
40         be to jan@uos.de.
42 2006-11-18  Djihed Afifi  <djihed@gmail.com>
43         
44         * configure.in: Added Arabic Language (ar).
46 2006-11-16  Lars Clausen  <lars@raeder.dk>
48         * lib/font.[ch] (get_layout_offsets): Start of function to adjust
49         all offsets in a layout line.  Not used yet, and not debugged.
50         Kept around for when we have more runs in a line.
52         * lib/textline.c (text_line_adjust_layout_line): Adjusts the glyph
53         sizes within a PangoLayoutLine to overcome the rounding problems
54         and ensure linear scaling of fonts.  Currently only fixes the
55         first run, since AFAIK that's all we can do with current text
56         input anyway.
58         * lib/diagdkrenderer.c (draw_text_line): Now uses
59         text_line_adjust_layout_line to avoid repeating Pango digging for
60         Freetype and GDK code both. Ready to merge freetype and GDK
61         duplicate code.
63 2006-11-15  Lars Clausen  <lars@raeder.dk>
65         * plug-ins/vdx/*: Update to version 0.6.1 yields improvements in
66         both export and import.
68 2006-11-13  Lars Clausen  <lars@raeder.dk>
70         * lib/font.c: Internally calculate glyph offsets at *20 font size
71         to avoid rounding problems.
73         * app/layer_dialog.c: Revamped the visibility toggling system to
74         make visibility change a properly undoable operation, making the
75         page borders resize in the process.
77         * objects/standard/line.c (line_load, line_save): 
78         * objects/standard/arc.c (arc_load, arc_save): 
79         * objects/standard/polyline.c (polyline_load, polyline_save): 
80         * objects/standard/bezier.c (bezierline_load, bezierline_save): 
81         * objects/standard/zigzagline.c (zigzagline_load, zigzagline_save):
82         Use generic load/save functions.
84         * lib/libdia.def: 
85         * lib/arrows.[ch]: Generic functions for loading and saving
86         arrows, including sanitizing on load, part of fixing bug #144394.
88         * objects/FS/flow-ortho.c (orthflow_draw): 
89         * objects/FS/flow-poly.c (orthflow_draw): Update to use modern
90         arrow rendering.
92         * app/modify_tool.c (modify_start_text_edit) 
93         (modify_make_text_edit): Don't use dia_font_scaled_* when
94         avoidable. 
96 2006-10-29  Steffen Macke <sdteffen@gmail.com>
98         * app/paginate_psprint.c: Made compile with MSVC again
100 2006-10-26  Lars Clausen  <lars@raeder.dk>
102         * app/interface.[ch]: Patch from jan@uos.de: Write the accelerator
103         keys in tooltips for standard tools.
105         * app/paginate_psprint.c: Patch for better printing: Reasonable
106         file name, check before overwriting, re-popup if file write
107         failed.  Thanks to Leon Stringer <leon.stringer@ntlworld.com> for
108         this patch.
110 2006-10-26  Hans Breuer  <hans@breuer.org>
112         * plug-ins/shape/shape-export.c : the icon export facility dependens
113         on the libart-size-hack; use filter_get_by_name("png-libart") instead
114         of filter_guess_export_filter(). Fixes bug #364491.
116 2006-10-19  Ignacio Casal Quinteiro  <nacho.resa@gmail.com>
118         * configure.in: Added 'gl' to ALL_LINGUAS
120 2006-10-16  Hans Breuer  <hans@breuer.org>
122         * objects/UML/class.c : the comment wrapping was only working for
123         plain ASCII, now it deals with UTF-8 (Vadim Zelenin, bug #349765)
125 2006-10-16  Theppitak Karoonboonyanan  <thep@linux.thai.net>
127         * configure.in : Add 'th' (Thai) to ALL_LINGUAS.
129 2006-10-14  Hans Breuer  <hans@breuer.org>
131         * plug-ins/vdx/vdx-import.c : don't try to print("%s", NULL). It is
132         not generally supported and crashes on win32. Fixes bug #349883
134         * lib/arrows.[hc] : draw hollow arrow heads with linewidth 0.0 
135         correctly. Patch from Michael Duelli fixing bug #358176
137         * objects/standard/arc.c : don't rely on the result of atan2(inf,inf),
138         it is C-runtime dependent. Fixes infinitesimal burning of CPU cycles,
139         bug #360013 and duplicates.
141         * app/load_save.c : protect gstdio.h by GLIB_CHECK_VERSION
142         and use the <glib/ form for installed version
144 2006-10-13  Hans Breuer  <hans@breuer.org>
146         * objects/UML/(actor|large_package|node|note).c : use 
147         element_update_connections_rectangle() instead of about 25 lines 
148         of copy and pasted code
150         * app/load_save.c : make it compile by defining W_OK if it is
151         not there and also use '#if GLIB_CHECK_VERSION(2,8,0)' instead
152         of '#ifdef GLIB_CHECK_VERSION(2,8,0)'. Strange that gcc 
153         apparently compiled this
155         * lib/parent.[ch] : parent_handle_move_in_check() was moving 
156         the checked point about twice as much as needed, bug #342773.
157         
158 2006-10-12  Lars Clausen  <lars@raeder.dk>
160         * app/load_save.c (diagram_data_save): If we have GTK 2.8, check
161         that we are allowed to write to the file in question (if it
162         exists) and to the directory (for backup/temp/newly created file).
164         * lib/dia_dirs.c (dia_get_lib_directory, dia_get_data_directory): 
165         * lib/Makefile.am (AM_CPPFLAGS): 
166         * app/Makefile.am (INCLUDES): Rename DATADIR and LIBDIR to
167         DIA_DATADIR and DIA_LIBDIR to avoid conflicts with libtool and the
168         like.  Thanks to lode leroy <lode_leroy@hotmail.com> for pointing
169         out the solution.
171         * plug-ins/pstricks/render_pstricks.c (export_pstricks) 
172         (draw_string): Use \psscalebox instead of \scalebox, courtesy of
173         Dan Bolser <dmb@mrc-dunn.cam.ac.uk> and the pstricks mailing list.
175         * shapes/Makefile.am (SUBDIRS): 
176         * configure.in: 
177         * shapes/BPMN/*
178         * sheets/BPMN.sheet.in: 
179         * sheets/Makefile.am (sheet_in_files): New shape set BPMN for
180         Business Process Modelling from anthonym@overture.com.
182         * doc/en/dia.dbk: Correctly describing connections.
184         * objects/standard/box.c: Patch from Michael Duelli
185         <m.duelli@web.de>: Set line attributes before drawing anything.
187 2006-10-08  Lars Clausen  <lars@raeder.dk>
189         * configure.in: Allow compiling without freetype on Unix systems.
190         The effect of changes to non-freetype parts of the code can now be
191         tested, and I have no excuse to not fix them anymore:(
193 2006-10-01  Lars Clausen  <lars@raeder.dk>
195         * app/modify_tool.c (modify_motion): Don't use null-ness of
196         connectionpoint to skip snap-to-grid for non-connectable handles.
197         Fixes bug #350246.
199         * shapes/flowchart/predefdproc.shape: Fixed midpoint.
201 2006-09-27  Steffen Macke <sdteffen@gmail.com>
203         * shapes/flowchart/datasource.png:
204         * shapes/flowchart/datasource.shape:
205         * shapes/flowchart/Makefile.am: 
206         * sheets/Flowchart.sheet.in:
207         * installer/win32/dia.nsi: Added new "Data source" shape
209 2006-09-24  Hans Breuer  <hans@breuer.org>
211         * lib/diagdkrenderer.c : I'm going to rip out all the Freetype
212         code the next time the GDK only compile breaks
213         
214 2006-09-23  Hans Breuer  <hans@breuer.org>
216         * app/commands.c app/create_object.c app/disp_callbacks.c : add
217         missing #include "lib/parent.h"
219         * lib/makefile.msc : build textline.obj
220         
221         * objects/makefile.msc : don't build newgroup.obj
222         * objects/misc/libmisc.c : with newgroup gone to app/ newgroup_type can 
223         not be registered from the module any longer - at least not on win32
225         * plug-ins/python/makefile.msc : removed obsolete references to 
226         Python 1.5, also removed misleading link to Python 2.2 debug build
228         * app/diagram.[ch] app/app_procs.c : don't use C++ keyword 'virtual' 
229         as variable name: s/virtual/is_default/
230         
231         * plug-ins/python/*.c : don't mix PyObject_NEW() with PyMem_DEL()
232         Newer versions of Python (2.5) are not tolerant about this anymore.
233         
234 2006-09-11  Lars Clausen  <lars@raeder.dk>
236         * lib/diasvgrenderer.c (draw_text_line): First stab at making svg
237         text line renderer, doesn't work yet.
239         * lib/textline.c (text_line_draw): Removed #define.
241         * lib/diagdkrenderer.c (draw_text_line): Slight cleanups.
243 2006-09-11  Steffen Macke <sdteffen@gmail.com>
245         * plug-ins/vdx/vdx-export.c:
246         * plug-ins/vdx/vdx-import.c:
247         * plug-ins/vdx/vdx-xml.c:
248         * plug-ins/vdx/vdx.h:
249         * plug-ins/vdx/visio-types.h: Update to version 0.5 (from 0.4) of
250         Visio import, thanks to Ian Redfern, who states: 
251         
252         This is the first version to support export to VDX - for now, just 
253         straight lines and text, but I'm working on the more complex bits. 
254         It currently writes Visio 2002 VDX as a lowest common denominator, 
255         but that won't handle Beziers, so when I get round to converting them 
256         to NURBS, only Visio 2003 users will be able to import them.
258         There are also several improvements to import, both to fix the layout 
259         and clean up the code, and it can now import embedded bitmaps - as Dia
260         needs them to be separate files, it puts them in /tmp (or wherever 
261         tempnam() goes to on your system). Alternative suggestions are welcome. 
262         NURBS import still doesn't work, but everything else seems pretty 
263         reliable.
264         
265         In addition, two small adjustments to compile on Windows
267 2006-09-08  Steffen Macke <sdteffen@gmail.com>
269         * app/makefile.msc:
270         * app/Makefile.am:
271         * app/dia-win-remote.c:
272         * installer/win32/dia.nsi: From Windows Explorer, open .dia files in the 
273         running Dia instance (if possible). Fixes bug #70718
275 2006-09-05  Lars Clausen  <lars@raeder.dk>
277         * lib/diatypes.h: 
278         * lib/Makefile.am (libdia_la_SOURCES): 
279         * lib/diarenderer.[ch]: 
280         * lib/font.[ch]: 
281         * lib/diagdkrenderer.c: 
282         * lib/textline.[ch]: TextLine now ready for commit.  Rendering
283         with it is much faster and significantly more precise than
284         without.  All renderers should implement a good definitions for
285         this (though there is a default one that uses draw_string), as it
286         can tell the expected width of a string.
287         
288         * lib/libdia.def: Newly defined functions.      
290 2006-08-29  Lars Clausen  <lars@raeder.dk>
292         * lib/textline.[ch]: New text rendering level: A self-contained
293         single-line text object that allows safer caching and hopefully
294         more accurate rendering at various zooms.  Using a PangoMatrix
295         didn't seem to help. 
297         * lib/font.c: Removing out-deffed layout cache code, it'll never
298         work.  Also a couple support functions for my quest of good zoom.
300 2006-08-20  Hans Breuer  <hans@breuer.org>
302         * plug-ins/cairo/diacairo.c : get rid of c++ coment
303         * app/diagram.h app/diagram.c app/modify_tool.c app/select.c 
304           app/undo.c : reverted 'Shortened diagram_unselect'. It broke
305         plug-ins/python, but more iomportant made one function fromm
306         app/diagram.h asymmetric with all the others. We should not leave
307         the common C OO-pattern of passing an explicit "this pointer" just
308         because that can also be deduced from the other object.
310 2006-08-18  Lars Clausen  <lars@raeder.dk>
312         * lib/render.[ch]: Finally removed unused render files now known
313         as diarenderer.[ch].
315 2006-08-17  Steffen Macke <sdteffen@gmail.com>
317         * installer/win32/dia-diagram.ico:
318         * installer/win32/dia.nsi: Assign icon to *.dia files
320 2006-08-16  Lars Clausen  <lars@raeder.dk>
322         * app/diagram.c (diagram_load): 
323         * lib/object.c (dia_object_is_selectable): Two silly null-pointer
324         errors detected by Michael Duelli <m.duelli@web.de>
326 2006-08-16  Steffen Macke <sdteffen@gmail.com>
328         * app/modify_tool.c:
329         * app/undo.c: Include parent.h
330         * lib/libdia.def: Include dia_object_is_selectable()
332 2006-08-13  Lars Clausen  <lars@raeder.dk>
334         * objects/Misc/libmisc.c:
335         * {app,objects/Misc}/Makefile.am:
336         * objects/Misc/newgroup.c:
337         * app/newgroup.c: Moved newgroup.
338         
339         * app/diagram.[ch]:
340         * app/undo.c: 
341         * app/modify_tool.c: 
342         * app/select.c: Trim diagram_unselect_object() to the one required
343         argument. 
345         * app/app_procs.c:
346         * app/interface.c (dia_dnd_file_drag_data_received): 
347         * app/recent_files.c (open_recent_file_callback): 
348         * app/filedlg.c (file_open_response_callback): 
349         * app/diagram.c (diagram_load): 
350         Make the diagram created at start-up be a virtual diagram that
351         if unchanged is filled in by the first opened diagram, like Gnumeric.
353 2006-08-11  Lars Clausen  <lars@raeder.dk>
355         * app/properties.c (properties_give_focus): Give focus to first
356         thing in a properties dialog.  Still need our own compound widgets
357         to get focus right.
359 2006-08-06  Lars Clausen  <lars@raeder.dk>
361         * objects/Misc/newgroup.c: 
362         * lib/diagramdata.c: 
363         * app/diagram.[ch]: 
364         * app/select.c: 
365         * app/modify_tool.c: 
366         * lib/object.[ch]: Work towards a more reasonable definition of
367         Groups. 
368         
369 2006-08-06  Steffen Macke <sdteffen@gmail.com>
371         * installer/win32/dia.nsi: Save diagrams by default in "My Pictures";
372         fixes bug #344247
374 2006-08-04  Steffen Macke <sdteffen@gmail.com>
376         * installer/win32/dia.nsi: Added vdx.dll, analog_clock.xpm 
377         newgroup.xpm , *ui.xml files
379 2006-08-03  Lars Clausen  <lars@raeder.dk>
381         * sheets/Makefile.am: EML sheet taken out since it's been empty
382         for five years anyway.  Fixes bug #347894.
384         * doc/eu/dia.dbk: 
385         * doc/en/dia.dbk: 
386         * doc/en/usage-layers.xml: Fixed obsolete references to
387         export-to-format.  Fixes bug #346510.
389 2006-08-02  Lars Clausen  <lars@raeder.dk>
391         * plug-ins/vdx/visio-types.h: 
392         * plug-ins/vdx/vdx.h: 
393         * plug-ins/vdx/vdx-xml.c: 
394         * plug-ins/vdx/vdx-import.c: 
395         * plug-ins/vdx/vdx-common.c: Update to version 0.4 (from 0.2) of
396         Visio import, thanks to Ian Redfern, who states: 
398         Version 0.4 does a passable job with curves, and has the first
399         implementation of Masters. It also handles XForm1D, and fixes a
400         potential crash. It gets some layers in the wrong order and still
401         has some major positioning and sizing issues. 
403         Version 0.3 gets object layout correct, and does a better job of
404         text, lines, arrows, layers etc. Some diagrams (that don't contain
405         curves) now render pretty much correctly. 
407 2006-07-16  Hans Breuer  <hans@breuer.org>
409         * app/cut_n_paste.[hc] : maintain a generation counter to count
410         how many times the stored object list is used
411         * app/commands.c : use the generation for paste placement. The
412         first one after cut is not moved at all: a nice way to move objects
413         between layers without changing their lateral position.
414         Also sprinkled some diagram_update_extents()
415         
416         * shapes/Civil/civil_rotor.shape : had inverted fg/bg colors, bug #347080
417         
418         * app/recent_files.c : don't g_return_if_fail() on common use case,
419         here an empty recent file list
420         
421         * lib/dia_image.c(dia_image_draw) : don't try to draw anything if
422         width or height is smaller than 1 pixel
423         
424         * plug-ins/cairo/diacairo.c : allow to export to svg if available 
425         with cairo. Some tweaking of surface sizes.
426         
427 2006-07-12  Lars Clausen  <lars@raeder.dk>
429         * {tests,test/exports,data,plug-ins/vdx}/.cvsignore: Added.
431 2006-06-28  Lars Clausen  <lars@raeder.dk>
433         * plug-ins/vdx/vdx-import.c: Removed create_standard_group which
434         is in create.c.
436 2006-06-25  Hans Breuer  <hans@breuer.org>
438         * app/display.c : avoid to call gettext on parameters for ngettext()
439         Should finally really fix bug #344896
440         
441         * data/ui/display-ui.xml data/ui/popup-ui.xml data/ui/toolbox-ui.xml :
442         removed expand="yes" because otherwise the files can't be read with
443         gtk+-2.6.x which follows Dia can't start. Fixes bug #344895
444         * app/menus.c app/Makefile.am : also find the ui files when run from
445         app/run_dia.sh
447 2006-06-17  Gintautas Miliauskas  <gintas@akl.lt>
449         * configure.in: Added lt to ALL_LINGUAS.
451 2006-06-15  Hans Breuer  <hans@breuer.org>
453         * app/display.c : use ngettext() for possible plural variations.
454         (Bug #344896, tokul@users.sourceforge.net)
456         * objects/UML/class.c : use g_list_append() rather than prepend
457         when copying attributes, operations, formalparams. Fixes bug #342902
458         Also removed some superfluous outcommented code and fixed a warning.
460         * objects/UML/class.c : dont break reading comment_line_length
461         by misguide compatibility code. Fixes bug #341887
463         * plug-ins/vdx/vdx-xml.c : added file missing from 0.3 
464         version commit. Fixes bug #344804
465         
466         * lib/create.h : add create_standard_group() prototype
467         * lib/libdia.def lib/makefile.msc objects/makefile.msc 
468           plug-ins/makefile.msc : added missing (files|exports)
470 2006-06-13  Lars Clausen  <lars@raeder.dk>
472         * plug-ins/vdx/*: Version 0.3 of Visio import filters, thanks
473         again to Ian Redfern.
475 2006-06-12  Elijah Newren  <newren gmail com>
477         * autogen.sh: Run configure by default, allow it to be skipped if
478         NOCONFIGURE is set in the environment.  #344574.
480 2006-06-12  Elijah Newren  <newren gmail com>
482         Pair of build fixes.  #344357
484         * Makefile.am: avoid cp errors when $(srcdir) == .
486         * objects/Misc/newgroup.c: include pixmaps/newgroup.xpm instead of
487         pixmaps/group.xpm as the latter doesn't exist.
489 2006-06-12  Hans Breuer  <hans@breuer.org>
491         * plug-ins/python/codegen.py : applied patch from Thomas D Ahle
492         which adds support for Java and inheritance. Closes bug #344187
493         
494 2006-05-28  Lars Clausen  <lars@raeder.dk>
496         * sheets/Misc.sheet.in: 
497         * objects/Misc/Makefile.am (EXTRA_DIST): 
498         * objects/Misc/pixmaps/newgroup.xpm: 
499         * objects/Misc/newgroup.c: 
500         * objects/Misc/libmisc.c: Start of new group model, with "visible"
501         object to test with.  This object will later become the default
502         group object and thus (mostly) invisible.
504         * lib/parent.c (parent_handle_move_in_check): 
505         * app/create_object.c (create_object_button_press): 
506         * app/diagram.c (diagram_unparent_children_selected): 
507         * app/disp_callbacks.c (ddisplay_drop_object): 
508         * app/load_save.c (write_objects): 
509         * objects/network/radiocell.c (radiocell_create): 
510         * objects/AADL/aadlbox.c (aadlbox_create): 
511         * objects/UML/large_package.c (largepackage_create): 
512         * objects/UML/component.c (component_create): 
513         * lib/object.[ch]: DiaObject API change: DiaObject now has gint
514         flags rather than gboolean can_parent, and utility function
515         object_flags_set.  Uses of can_parent changed to call to function.
517         * doc/en/dia.dbk: Removal of obsolete epsi references.
519 2006-05-27  Hans Breuer  <hans@breuer.org>
521         * app/menus.c : listen to Gtk-WARNING **: Unable to parse accelerator 
522         '<control>+': it wants '<control>plus', same for minus.
524         * tests/exports/cgm/* : cvs admin -kb *.cgm
525           tests/exports/png/* tests/exports/png-libart/* 
526           tests/exports/shape/* : cvs admin -kb *.png
527           tests/exports/wpg/* : cvs admin -kb *.wpg
528         mark binary files as such to not get them broken on platforms which
529         insist on replacing line-ends.
531         * app/app_procs.c app/display.c app/filedlg.c app/interface.c
532           app/load_save.c app/sheets.c lib/dia_image.c lib/message.c
533           plug-ins/python/diamodule.c plug-ins/python/pydia-error.c
534           plug-ins/wmf/wmf.cpp : fixed format string vulnerability on HEAD
535         as well. Patch from Hans de Goede, bug #342111
537 2006-05-27  Rob Staudinger <robert.staudinger@gmail.com>
539         * Makefile.am: 
540         * app/Makefile.am:
541         * app/diagram.c: 
542         * lib/Makefile.am:
543         * objects/standard/Makefile.am:
544         * plug-ins/python/Makefile.am:
545         Fix out of tree build (#340115).        
547 2006-05-25  Hans Breuer  <hans@breuer.org>
549         * app/interface.[hc] app/menus.c : rename ToolButton::menu_item
550         to action_name. Don't mark action names for translation. It is not
551         needed and some languages don't support CamelCase. Fixes bug #342895
552         
553         * app/menus.c : re-added a bunch of accelerators lost in translation
554         to the GtkAction framework. Use GTK_STOCK_FULLSCREEN conditionally
555         it was not available with gtk+-2-6-x.
556         Use dia_get_data_directory() instead of hardcoded UIDATADIR.
557         * app/dia_embedd.c : explain instead of out-comment
558         
559         * app/menu.c lib/autoroute.c lib/color.c lib/diagramdata.c 
560           lib/properties.h dia_xml.c : warningectomy
561           
562         * lib/create.h : create_standard_group()
563         * lib/libdia.def lib/makefile.msc : reflect moved stuff
564         
565 2006-05-25  Lars Clausen  <lars@raeder.dk>
567         * tests/exports/*.dia: A set of test diagrams for export
568         plug-ins.  The intention is to use these for regression tests by
569         ensuring that they don't change when code is altered, or if they
570         change that a manual inspection proves them ok.  The fact that an
571         export plug-in passes these tests doesn't mean it's perfect, just
572         that is hasn't degraded.
573         
574         * plug-ins/xfig/xfig-import.c: 
575         * plug-ins/vdx/vdx-import.c: 
576         * lib/create.[ch]: Functions taken from xfig to create some
577         standard objects easily.  Uses of them updated, no longer need to
578         take DiagramData.
580         * plug-ins/vdx/*: First draft of VDX (Visio XML) plug-in from Ian
581         Redfern <Ian Redfern <Ian.Redfern@LogicaCMG.com>.  Also a bunch of
582         samples for the purpose from the vdxtosvg project.
584 2006-05-21  Hans Breuer  <hans@breuer.org>
586         * app/interface.[hc] app/disp_callbacks.c : removed unused
587         global variable popup_shell
588         
589         * app/pagesetup.c app/diapagelayout.c : restrict every page margin
590         to a little less than half of the page. This guarantees margins
591         leaving some useable page area and thus avoids crashing on negative
592         page sizes. Fixes bug #339562 (also applied to dia-0-95 branch)
593         
594 2006-05-20  Hans Breuer  <hans@breuer.org>
596         Patch from Robert Staudinger to base dia menus on GtkAction framework
597         instead on deprecated GtkItemFactory. Tracked in bug #340352. 
598         En passant fixes bug #171397
599         * configure.in : placementof ui files added data/Makefile to AC_OUTPUT
600         * Makefile.am : added data dir
601         * app/Makefile.am : added $(uidatadir)
602         * app/commands.c app/commands.h app/dia_embedd.c app/diagram.c
603           app/diagram_tree_window.c app/diagram_tree_window.h
604           app/disp_callbacks.c app/display.c app/display.h
605           app/interface.c app/menus.c app/menus.h app/recent_files.c :
606         changed a bunch of callback signatures to take GtkAction
607         * app/pixmaps/Makefile.am 
608         * data/Makefile.am data/display-ui.xml data/toolbox-ui.xml
609           data/popup-ui.xml : new files containing the menu structure
610         * lib/filter.c lib/filter.h lib/plug-ins.h : callback filter
611           registration change to be more appropriate for actions
612         * lib/libdia.def : updated externals
613         * plug-ins/python/debug_objects.py plug-ins/python/diamodule.c
614           plug-ins/python/group_props.py plug-ins/python/gtkcons.py 
615           plug-ins/python/otypes.py plug-ins/python/pydiadoc.py 
616           plug-ins/python/scascale.py plug-ins/python/select_by.py :
617         adapted to API change dia.register_callback to dia.register.action
619         * app/authors.h : added Robert to the authors
620         * app/commands.c : got rid of compiler warnings
622 2006-05-14  Hans Breuer  <hans@breuer.org>
624         * plug-ins/python/python.c : protect the plug-in against 
625         initializing if Python already is initialized. This PyDia extensions
626         is designed for embedding Python.
627         
628         * plug-ins/python/pydia-property.c : LineStyle.dash may be either
629         Float or Integer.
630         
631         * plug-ins/python/diasvg_import.py : remove FontSize debug spew
632         
633         * lib/font.c : GDK_WINDOWING_WIN32: if called with a display already
634         setup use the pango context matching the display. Otherwise fallback
635         to a context from PangoWin32 (matches only for gtk+-2-6, not the one
636         used since gtk+-2-8 using cairo.
637         
638 2006-05-13  Hans Breuer  <hans@breuer.org>
640         [ also applied to branch dia-0-95 ]
641         * objects/UML/umloperationc: add "query" to umloperation_offsets.
642         Patch from Peter Allin, fixes bug #338336
644         [ also applied to branch dia-0-95 ]
645         * app/diagram.c(diagram_ungroup_selected) : operate on a copy
646         of data-Selected cause the original is modified during use.
647         Patch from Victor Stinner, fixes bug #334771
649         * configure.in config.h.win32 : development started again so 095+cvs.
650         Critical bugfixes may go on the dia-0-95 branch (may lead to 0.95.1 
651         if necessary)
652         
653         * app/diagram.c : removed long-time outcommented code
654         
655         * lib/diagramdata.h lib/filter.h lib/geometry.h lib/plug-ins.h
656           lib/properties.h : C++ aware by G_BEGIN_DECLS, G_END_DECLS
657         
658         * objects/UML/class.c : don't dia_assert_true(attr->comment != NULL)
659         it is handled everywhere else just fine.
660         
661 2006-04-19  Lars Clausen  <lars@raeder.dk>
663         * installer/win32/dia.nsi: 
664         * doc/en/dia.xml: 
665         * doc/eu/dia.xml: 
666         * doc/pl/dia.xml: 
667         * config.h.win32: 
668         * configure.in: 
669         * NEWS: Release 0.95
671         * shapes/Gane_and_Sarson/process.shape: Connectionpoint update
672         from Nick Moore <shiny.nickel@gmail.com>.
674 2006-04-17  Kjartan Maraas  <kmaraas@gnome.org>
676         * configure.in: Remove obsolete entry for no_NO
677         * po/no.po: And the translation.
679 2006-04-12  Lars Clausen  <lars@raeder.dk>
681         * installer/win32/dia.nsi: 
682         * doc/en/dia.xml: 
683         * doc/eu/dia.xml: 
684         * doc/pl/dia.xml: 
685         * config.h.win32: 
686         * configure.in: 
687         * NEWS: -pre9
689         * configure.in: Check for xgettext.  Apparently
690         AM_GLIB_GNU_GETTEXT notices it's missing but doesn't abort.
692 2006-04-04  Steffen Macke <sdteffen@gmail.com>
694         * installer/win32/dia.nsi:
695         * installer/win32/langmacros.nsh:
696         * installer/win32/locale/*.nsh: Added check for outdated libgtk dll;
697         closes bug #335477
699 2006-04-03  Lars Clausen  <lars@raeder.dk>
701         * installer/win32/dia.nsi: 
702         * doc/en/dia.xml: 
703         * doc/eu/dia.xml: 
704         * doc/pl/dia.xml: 
705         * config.h.win32: 
706         * configure.in: 
707         * NEWS: -pre8
709         * plug-ins/xfig/xfig-import.c: Initially place text in the right
710         place. 
712 2006-04-03  Steffen Macke <sdteffen@gmail.com>
714         * installer/win32/dia.nsi:
715         * installer/win32/locale/french.nsh: Added french installer
716         locale. Patch from Yannick Le Ny <y.le.ny@ifrance.com>
718 2006-04-02  Hans Breuer  <hans@breuer.org>
720         * doc/pl/dia.xml : "DOCTYPE book" closes bug #142098, Roland Stigge
722 2006-03-29  Daniel Drake  <dsd@gentoo.org>
724         * configure.in: Use standard pkg-config expressions to check for
725         GTK+/Glib, the GTK-supplied macro's conflict with our usage of
726         $GTK_MODULES (#335422)
728 2006-03-28  Lars Clausen  <lars@raeder.dk>
730         * app/Makefile.am (dia_LDADD): Patch from Peter for bug #336377:
731         Include libs and cflags in proper places.
733         * installer/win32/dia.nsi: 
734         * doc/en/dia.xml: 
735         * doc/eu/dia.xml: 
736         * doc/pl/dia.xml: 
737         * config.h.win32: 
738         * configure.in: 
739         * NEWS: -pre7
741         * shapes/network/mobile_phone.{png,xpm,shape}:
742         * shapes/network/telephone.shape:
743         * shapes/network/disc.shape:
744         Updates from W. Borgert <debacle@debian.org> improving looks and
745         positioning.
746         
747 2006-03-26  Lars Clausen  <lars@raeder.dk>
749         * objects/network/radiocell.c: Patch from W. Borgert
750         <debacle@debian.org> for extra midpoint, flicker, extraneous
751         properties.
752         
753         * objects/network/basestation.c: Patch for BB from W. Borgert
754         <debacle@debian.org>. 
756 2006-03-23  Hans Breuer  <hans@breuer.org>
758         * lib/widgets.c : use original fontname and fallback 'sans' to
759         render the font menu. Thus crashing (in Pango) is delayed until
760         the point where one chooses a font, which can't be rendered by
761         Pango. Fixes bug #335096 as far as Dia can.
762         
763 2006-03-21  Lars Clausen  <lars@raeder.dk>
765         * installer/win32/dia.nsi: 
766         * doc/en/dia.xml: 
767         * doc/eu/dia.xml: 
768         * doc/pl/dia.xml: 
769         * config.h.win32: 
770         * configure.in: 
771         * NEWS: -pre6
773         * plug-ins/xfig/xfig-import.c: Last missing stack underflow check.
775 2006-03-19  Hans Breuer  <hans@breuer.org>
777         * app/display.c app/preferences.c : unset transient, still issues
778         with transient handling, see bug #332828
779         
780         * app/makefile.msc lib/makefile.msc objects/makefile.msc
781           plug-ins/makefile.msc : removed stuff supposed to be used from
782         $(TOP)/glib/build/win32/make.msc
783         
784         * plug-ins/xfig/xfig-import.c : make it compile with strict type 
785         checking [these were real errors, freeing stack passed values instead
786         of the intended local variable] :
787         xfig-import.c(580) : error C4047: 'function' : 'struct _GArray *' 
788          differs in levels of indirection from 'struct _Point ** '
789         xfig-import.c(580) : warning C4024: 'g_array_free' : different types 
790          for formal and actual parameter 1
792         * lib/libdia.def : export connection_adjust_for_autogap 
793         
794         * plug-ins/hpgl/hpgl.c : there is one floating point value in the 
795         whole HPGL output - and it was locale dependent.
797 2006-03-12  Lars Clausen  <lars@raeder.dk>
799         * installer/win32/dia.nsi: 
800         * doc/en/dia.xml: 
801         * doc/eu/dia.xml: 
802         * doc/pl/dia.xml: 
803         * config.h.win32: 
804         * configure.in: 
805         * NEWS: -pre5
807         * objects/UML/constraint.c (constraint_update_data): 
808         * objects/UML/message.c (message_update_data): 
809         * objects/UML/implements.c (implements_update_data): 
810         * objects/SADT/annotation.c (annotation_update_data): 
811         * objects/Jackson/phenomenon.c (message_update_data): 
812         * objects/network/wanlink.c (wanlink_update_data): 
813         * objects/FS/flow.c (flow_update_data): Added autogap adjustment.
815         * objects/standard/line.c: 
816         * lib/connection.[ch] (connection_adjust_for_autogap): Moved autogap
817         functionality for connections.
819 2006-03-11  Lars Clausen  <lars@raeder.dk>
821         * lib/diagdkrenderer.c (draw_object): 
822         * lib/dialibartrenderer.c (draw_object): Don't draw highlighting
823         in the non-interactive rendering.
825         * dia.spec:
826         * installer/rpm/dia.spec:
827         * installer/rpm/README:
828         Moving dia.spec to installer directory, where distribution
829         maintainers can keep their own copies.
831         * objects/UML/uml.h: 
832         * objects/UML/class.h: 
833         * objects/UML/umloperation.c: 
834         * objects/UML/class.c: 
835         Preparations to fix bug #334037: Clean away the Lisp-like
836         constructs confusing the issue.
838 2006-03-10  Lars Clausen  <lars@raeder.dk>
840         * lib/object.c: Don't compare floats with ==, even in sanity checks.
842 2006-03-09  Lars Clausen  <lars@raeder.dk>
844         * plug-ins/xfig/xfig-import.c: Fix three buffer overflows in color
845         reading, depth reading, and points reading.  Thanks to 
846         
847         * COPYING: Added copyright info again.
849 2006-03-09  Steffen Macke <sdteffen@gmail.com>
851         * installer/win32/dia.nsi: don't uninstall old version; overwrite
852         existing files
854 2006-03-08  Steffen Macke <sdteffen@gmail.com>
856         * installer/Makefile.am:
857         * installer/win32/Makefile.am:
858         * installer/win32/locale/Makefile.am: Making sure that the installer
859         sources are included in the dia source distribution
860         * installer/win32/dia.nsi: Don't include makefiles in installer;
861         Add uninstaller link to start menu (bug #332650); added commandline 
862         option GTKBIN to specify GTK installation directory (fixes bug #332595)
863         * installer/win32/dia-diagram.ico:
864         * installer/win32/dia-header.bmp:
865         * installer/win32/dia-install.ico:
866         * installer/win32/dia-intro.bmp:
867         * installer/win32/dia-uninstall.ico:
868         * installer/win32/dia.nsi:
869         * installer/win32/langmacros.nsh:
870         * installer/win32/locale/english.nsh:
871         * installer/win32/locale/german.nsh: Added files to build the win32
872         installer using NSIS (http://nsis.sourceforge.net)
873         
874 2006-03-06  Lars Clausen  <larsrc@raeder.dk>
876         * doc/en/dia.xml: 
877         * doc/pl/dia.xml: 
878         * config.h.win32: 
879         * configure.in: 
880         * NEWS: -pre4
882         * samples/TexChars.dia: Added sample of the escaped chars for TeX.
883         
884         * plug-ins/pstricks/render_pstricks.c (tex_escape_string):
885         Changing escape of \, [, and ] to something that works.  $ is
886         fine.  Fixes parts of 333193.
888 2006-03-05  Lars Clausen  <larsrc@raeder.dk>
890         * plug-ins/xfig/xfig-import.c: Fixed locale issues with FIG import.
892         * lib/orth_conn.c (orthconn_update_data): 
893         * app/diagram.c: Removing debug info.
895         * app/object_ops.c (object_find_connectpoint_display): Don't
896         magnet to parents.
898 2006-02-26  Hans Breuer  <hans@breuer.org>
900         * app/Makefile.am : define DIA_PYTHON_PATH in app/run_dia.sh
901         * plug-ins/python/python.c : if set use it to find python-startup.py
902         (bug #332599, Torben H. Nielsen)
904         * app/app_procs.c : removed // from gtk_init() [shouldn't have commited
905         my test code]. Really closes #332177, thanks Mateus César Gröess.
907 2006-02-26  Lars Clausen  <lars@raeder.dk>
909         * doc/en/dia.xml: 
910         * doc/pl/dia.xml: 
911         * config.h.win32: 
912         * configure.in: 
913         * NEWS: -pre3
915         * lib/element.h (ELEMENT_COMMON_PROPERTIES): Turning off setting
916         of element_width and element_height until constraints can be 
917         properly checked.  Bug #328200
919         * dia.spec (Requires): Updated GTK requirements.
921 2006-02-25  Lars Clausen  <lars@raeder.dk>
923         * lib/diaarrowchooser.c (dia_arrow_chooser_new): Also making sure
924         other dynamic menus have proper translation.
926         * lib/widgets.c (dia_dynamic_menu_create_string_item): 
927         * app/interface.c (cmp_names): 
928         * app/sheets.c (sheets_optionmenu_create): 
929         * lib/sheet.c (load_register_sheet): Using C locale for sheet
930         names internally, translating on display instead.  Also sorting
931         by gettext order explicitly.  Bug #328570.
933 2006-02-25  Hans Breuer  <hans@breuer.org>
935         * app/interface.c(get_sheet_by_name) : be more tolerant about 
936         localization of the sheet name. ( Steffen Macke, #332070 )
937         
938         * app/app_procs.c(app_init) : if GDK_WINDOWING_WIN32 call gtk_init()
939         in any case. In contrast to X11/*nix displays are not optional on
940         windoze. And we need some help of gtk to render text to bitmaps.
941         ( Rob McDonald, bug #332177 )
942         
943 2006-02-21  Lars Clausen  <lars@raeder.dk>
945         * NEWS: 
946         * doc/pl/dia.xml: 
947         * doc/en/dia.xml: 
948         * configure.in: 
949         * config.h.win32: Update to -pre2.
951         * lib/beziershape.c (add_handles): Fixing CP pos calculation for
952         adding new CP's.  Fixes bug #331557.
954 2006-02-20  Lars Clausen  <lars@raeder.dk>
956         * lib/diarenderer.c (find_center_point): Better handling of some
957         degenerate cases.
958         (draw_arc_with_arrows): Draw line in all cases.  Doesn't handle
959         the truly degenerate cases well enough yet, but at least doesn't
960         break on common cases.  Probably need to do something special for
961         arcs with start and end point the same.  Improves but does not
962         entirely fix bug #331372.
964 2006-02-20  Hans Breuer  <hans@breuer.org>
966         * plug-ins/python/Makefile.am : dot.py was missing from EXTRA_DIST
967         
968 2006-02-18  Hans Breuer  <hans@breuer.org>
970         * plug-ins/metapost/render_metapost.c : text position gives the
971         baseline neither top nor bottom. ( Rob McDonald, #331491 )
973         * plug-ins/wmf/wmf.cpp : finally respecting the print margins
974         ( Rob McDonald, #331371 )
975         * plug-ins/wmf/wmf_gdi.h : some more constants not useful 
976         without a GDI printer (driver)
977         
978 2006-02-17  Hans Breuer  <hans@breuer.org>
980         * plug-ins/metapost/render_metapost.c(draw_string) : dont query
981         the font for it's height but use the 'height' parameter passed
982         in. Close enough to the desired size - and independent of zoom -
983         to close bug #331489 (Rob McDonald)
984         
985 2006-02-12  Lars Clausen  <lars@raeder.dk>
987         * NEWS: 
988         * dia.spec: 
989         * doc/pl/dia.xml: 
990         * doc/en/dia.xml: 
991         * configure.in: 
992         * config.h.win32: Updates for version 0.95-pre1.
994 2006-02-12  Hans Breuer  <hans@breuer.org>
996         * app/makefile.msc : build three components dia.exe (console
997         application), diaw.exe (windows application) and dia-app.dll
998         containing almost all of Dia's application shared between
999         the two executables
1000         * app/main.c app/winmain.c app/app_procs.c app/dia.def : some 
1001         refactoring to accomplish the new dependency layout
1002         * objects/makefile.msc plug-ins/python/makefile.msc : need to
1003         link dia-app.lib now - if at all depending on app/*
1004         
1005 2006-02-11  Hans Breuer  <hans@breuer.org>
1007         * makefile.msc : nmake -f makefile.msc just compiles now
1008         * app/makefile.msc lib/makefile.msc : make not using FT2
1009         on win32 the default (works around bug #150813 by diabaling it)
1010         * objects/makefile.msc plug-ins/makefile.msc : remove -GD from
1011         $(CC) command line. It isn't understood by newer versions of cl.
1012         
1013         * app/authors.h : reflect the recent maintainers change
1014         
1015         * app/display.c app/load_save.c : removed debug spew
1016         
1017         * app/winmain.c : improved redirection
1018         
1019 2006-02-05  Hans Breuer  <hans@breuer.org>
1021         * app/menus.[ch] app/diagram.c : the GNOME specific menu code is dead 
1022         since 0.94. Fix somne left-overs, also properly disable the duplicate
1023         menu entry
1025         * po/POTFILES.in : added objects/network/wanlink.c
1027 2006-02-05  Hans Breuer  <hans@breuer.org>
1029         * lib/dialibartrenderer.c(renderer_finalize) : dont unref 
1030         parent_instance.font here. It will be done in DiaRenderer::finalize()
1031         Just another reason for crashing at diagram close with libart 
1032         renderer involved ...
1033         
1034 2006-02-04  Hans Breuer  <hans@breuer.org>
1036         * objects/standard/image.c : added mainpoint, patch from
1037         Torben H. Nielsen fixing bug #329603
1039         * app/layer_widget.c : avoid writing to Layer::connectable for a
1040         diagram possibly already gone. Fixes bug #329096.
1042         * lib/persitence.c(persistence_load) : dont leak filename
1043         in case of not existing file
1045         Code review via regex "[^_l>p](malloc|free|realloc)\("
1046         * objects/fs/function.c : what's g_strdup() must be g_free()'d
1047         * plug-ins/dxf/dxf-import.c : use g_realloc()/g_free()
1048         * plug-ins/xfig/xfig-import.c : use g_free() instead of plain free()
1050         * app/filedlg.c(file_save_as_response_callback) : before destroying 
1051         the save as dialog we need to drop the dialogs diagram reference.
1052         Fixes behaviour described in bug #123225#c7
1054         * app/interface.c(get_sheet_names) : need to sort sheets by their 
1055         display name to really fix bug #160101.
1056         
1057         * objects/UML/association.c : dont leak the role_name calculated
1058         with visibility attribute, use g_strdup_printf() instead of strcat().
1059         
1060         * configure.in : fix typo in error message
1062         * lib/object.c : remove duplicated prototype
1063         * lib/element.c : element_update_connections_rectangle() assumes nine
1064         connection points, i.e. requires 'mainpoint'. g_assert() for this.
1065         
1066 2006-02-03  Hans Breuer  <hans@breuer.org>
1068         * objects/network/bus.c : allow to tint it. Patch from
1069         Torben H. Nielsen, closes bug #328580.
1070         * objects/network/wanlink.c : allow to tint this as well.
1071         
1072 2006-01-29  Hans Breuer  <hans@breuer.org>
1074         * app/render_libart.c(draw_line) : make setting the pixel side-effect
1075         free; account for it in now (less) magic increments. Fixes bug #312147
1077 2006-01-28  Hans Breuer  <hans@breuer.org>
1079         * po/checktrans.py : make it work with recent pyxml (unknown url type)
1080         * po/AADL.sheet.in : remove duplicated _description
1081         => translation report works again
1083         * app/display.c : revert back to "_Discard Changes" to avoid
1084         accelerator clash. Also gtk_button_new_with_mnemonic() to
1085         'expand' the accelerator.
1087         * lib/dia_svg.c(dia_svg_style_init) : need to initialize
1088         linecap, linejoin, linestyle to avoid invalid settings.
1089         (Nguyen Thai Ngoc Duy, bug #328945)
1090         * lib/diagdkrenderer.c : add a place fro breakpoint to 
1091         detect invalid mode
1093         * lib/diarenderer.c(setfont) : if we get passed in the
1094         same font it must be ref'd before unref.
1096         * lib/text.c(set_string) : don't eat the trailing new-line
1097         Fixes bug #165092
1098         
1099         * app/app_procs.c app/display.c app/filedlg.c 
1100         attempt to provide more HIG compliant dialogs. Patch from
1101         Nguyen Thai Ngoc Duy, part of bug #138183
1102         
1103         * app/recent_files.c(recent_file_history_clear_menu) : instead of 
1104         messing with GtkMenuShell::children and gtk_widget_destroy() just 
1105         use gtk_container_remove. Avoids memory corruption causing the
1106         most 'random' crashes recently.
1107         
1108         * objects/UML/message.c : can't use PROP_STD_TEXT_COLOUR_OPTIONAL 
1109         cause it has PROP_FLAG_DONT_SAVE. It is designed to fill the 
1110         TextAttributes - not some subset. Fixes bug #327701
1111         * objects/UML/implements.c objects/UML/generalization.c
1112           objects/UML/constraint.c objects/UML/object.c
1113           objects/UML/large_package.c objects/UML/realizes.c : same here.
1114         * objects/UML/dependency.c : same here. Also draw the "Name" with the
1115         given color, not only the Stereotype.
1116         * objects/UML/class.c : same here. But we also need to restore 
1117         explicit restore "text_color" for the load case.
1118         
1119 2006-01-27  Hans Breuer  <hans@breuer.org>
1121         * configure.in : error out if GLib/GTK+ version is lower than required
1123         * app/filedlg.c lib/widgets.c : more default responses. Patch 
1124         from Nguyen Thai Ngoc Duy, part of bug #138183
1125         
1126         * NEWS : Main point feature correction. The line is supposed to
1127         start at the border of the object not the bounding box.
1128         
1129         * app/commands.c : respect difference between documenters and
1130         translators and show both in about dialog. Closes bug #328711.
1131         
1132         * app/interface.c : instead of g_warning for missing shape icon
1133         but use message_warning and show the 'missing' icon
1134         
1135         * lib/dialibartrenderer.c : with Gtk+ 2.8 gdk_draw_layout() does
1136         not match pango_win32_get_context(). Use gdk_pango_get_context ().
1137         Also removed my special win32-modified-pango code for draw_string()
1138         without the help of gdk.
1140         * Makefile.am : include MAINTAINERS file in tarball
1142         * lib/conectionpoint.h : removed double include of "geometry.h"
1143         
1144 2006-01-22  Hans Breuer  <hans@breuer.org>
1146         * app/splash.c app/commands.c : dont share the logo and finally leak
1147         it. Instead both place load and unref the logo themself. 
1148         Also unbreak GNOME case.
1150         * app/commands.c : use GtkAboutDialog instead of homegrown GTK+
1151         or GNOME specific one. 120 lines less code and more standard.
1152         * configure.in : require GTK+ >= 2.6
1154         * app/diapagelayout.c app/diaunitspinner.c app/layer_dialog.c :
1155         make GtkTypeInfo static const as usual elsewhere
1156         
1157         * app/recent_files.c : it almost certainly is an error to ignore
1158         the return value of g_list_remove_link()
1159         
1160         * lib/arrows.c lib/bezier_conn.[ch] lib/beziershape.h
1161           lib/boundingbox.[ch] lib/color.[ch] lib/connectionpoint.c
1162           lib/create.h lib/dia_svg.c lib/dia_xml.c lib/diaarrowchooser.c
1163           lib/diagramdata.[ch] objects/UML/activity.c objects/UML/class.[ch]
1164           objects/UML/uml.h : documentation fixes
1165         
1166         * lib/object.h lib/diagramdata.h : avoid circular inclusion
1167         * lib/connectionpoint.h lib/focus.h lib/group.h lib/handle.h
1168           lib/properties.h lib/sheet.h lib/diamenu.h
1169         : dont include "object.h", "diatypes.h" is enough. 
1170         Rule of thumb: only headers declaring an inheritant of DiaObject
1171         should include "object.h"
1172         * lib/diarenderer.h : include "font.h" not strictly needed by 
1173         this header, but needed in almost any plug-in/
1174         * app/diagram_tree_menu.c app/dialogs.[hc] app/display.c
1175           app/export_png.c app/interface.c app/load_save.c app/sheets.c
1176           app/sheets_dialog.c app/sheets_dialog_callbacks.c 
1177           lib/diagdkrenderer.c lib/object.c lib/propobject.c
1178           lib/text.c plug-ins/gprint/gnomeprint.c plug-ins/pixbuf/pixbuf.c
1179           plug-ins/svg/render_svg.c
1180           : some .c files now need to include "object.h" or <gtk/gtk.h>
1181         or e.g. "intl.h" direct, formerly dargged in indirectly
1182         * plug-ins/pgf/render_pgf.c : explicit inclusion of "arrows.h"
1183         
1184 2006-01-21  Hans Breuer  <hans@breuer.org>
1186         * lib/connection.c lib/connection.h lib/connectionpoint.h
1187           lib/diagramdata.h lib/diarenderer.h lib/diatypes.h
1188           lib/element.h lib/geometry.h lib/handle.h lib/objchange.h
1189           lib/object.c lib/object.h : documentation tweaking
1191         * objects/UML/class_dialog.c(attributes_create_page,
1192         operations_create_page) : dont connect
1193         to a not exisiting signal. Avoids "GLib-GObject-CRITICAL **:
1194         g_signal_connect_closure_by_id: assertion 'signal_id > 0' failed"
1195         (This was a leftover of introducing the GtkTextView instead of GtkEntry)
1197         * objects/UML/class_dialog.c objects/UML/class.c objects/UML/class.h :
1198         Introduce 'comment_tagging' switch which allows to hide the rendering
1199         {documentation = } Maybe a choice between ugliness and non-standard.
1200         Fixes bug #326214. (Unrelated: started to adapt casing of variables
1201         to Dia's common coding style)
1202                 
1203         * lib/object_defaults.c : pass is_default=TRUE to object_copy_props
1204           lib/proplist.c : fixed pdtpp_default()
1205           lib/propobject.c : correctly reflect is_default 
1206         * object/UML/class.c : correct setting of PROP_FLAG_NO_DEFAULTS and
1207         PROP_FLAG_DONT_MERGE. With the above this fixes bug #320934
1208         
1209         * lib/propdialogs.c : if PROP_NO_DEFAULTS is set dont try to show a
1210         widget in defaults dialog
1212         * app/display.c(initialize_display_widgets) : also append the Input 
1213         Methods menu to the diagram menubar. Now fixes bug #327862.
1215         * config.h.win32 : #undef LOCALEDIR
1216         * app/app_procs.c : runtime calculation of localedir. It now is
1217         $(executable_dir)/../locale. Should help fix bug #309763
1218         
1219         * sheets/AADL.sheet.in : remove left over xml:lang tag. 
1220         ( Nguyen Thai Ngoc Duy, bug #327519)
1222         * lib/dialibartrenderer.c : make text rendering work without
1223         PangoFT2 and PangoWin32
1226 2006-01-18  Lars Clausen  <lars@raeder.dk>
1228         * objects/UML/class.h: Enabling UML class mainpoint after failure
1229         to break it.
1231         * app/grid.c: Fix bug with grid being incorrectly drawn when gap <
1232         1.
1234 2006-01-14  Hans Breuer  <hans@breuer.org>
1236         * app/paginate_psprint.c : ensure we are not producing pages for
1237         epsilon. Floating imprecision is fun. Fixes bug #133856.
1238         * app/paginate_gdiprint.cpp : same here.
1240         * plug-ins/pstricks/render_pstricks.c(draw_string) : now that I've
1241         found the nice samples from bug #156171 it was quite simple to
1242         confirm that the y value need indeed to be inverted. Fixes bug #304974.
1243         Also special case strings starting with \tex - i.e. dont escape them -
1244         to keep the use-case of direct tex input.
1245         
1246         * lib/debug.c : #include <glib/gprintf.h> not just <gprintf.h>
1249 2006-01-14  Hans Breuer  <hans@breuer.org>
1251         * samples/Self/umlclass.dia : (new file) documenting part of the
1252         object relations of UMLClass. Also good for testing connections.
1253         
1254         * lib/debug.c : replace wrong call to vprintf() - missing file
1255         descriptor - with the more appropriate g_vprintf(). Thus 
1256         dia_assert_true() does not smash the stack anymore on win32.
1257         
1258         * objects/UML/class.c objects/UML/class_dialog.c objects/UML/uml.h
1259           objects/UML/umlattribute.c objects/UML/umloperation.c :
1260         reverted the memory managment of UMLAttribute/UMLOperation's 
1261         ConnectionPoint(s) back to how it was up until 0.94. This finally
1262         makes the UMLClass work again including undo/redo support. Fixes
1263         bug #314153 and en passant bug #326453.
1264         
1265 2005-01-12  Lars Clausen  <lars@raeder.dk>
1267         * objects/UML/umlattribute.c: 
1268         * objects/UML/class_dialog.c: Better way of handling
1269         connectionpoints: Don't copy them, just reference them.  Finally
1270         fixes bug #314153 (not quite the pi bug:)
1272         * app/menus.c (display_menu_items): 
1273         * app/filedlg.c (file_open_response_callback): 
1274         * app/display.[ch] (copy_display): 
1275         * app/commands.[ch] (view_clone_view_callback): 
1276         Added functionality to clone display.  Preparation for storing
1277         display info in diagram files (not happening this version, though).
1279         * INSTALL (NOTE FOR WINDOWS USERS): Added note for non-compiling
1280         users pointing at dia-installer.
1282 2006-01-08  Hans Breuer  <hans@breuer.org>
1284         * shapes/Gane_and_Sarson/Makefile.am : correct spelling of filenames.
1285         (Narcelio Filho, #326075)
1287         * objects/AADL/aadl.h : remove #include "app/display.h". It is not needed,
1288         plug-ins should not depend on app/* and it even breaks 'make distcheck'.
1289         * objects/AADL/Makefile.am : added edit_port_declaration.h
1290         * app/Makefile.am : added diaconv.c to EXTRA_DIST
1291         => 'make distcheck' passes again.
1293         * configure.in : use some more of gcc's useful warnings
1295         * lib/geometry.h : removed unused functions just producing warnings
1296         [sometimes it's good to read compiler warnings]
1297         * plug-ins/cairo/diacairo.c : somehow a function call got lost
1298         (left-hand operand of comma expression has no effect)
1299         * plug-ins/metapost/render_metapost.c : dia_message_filename()
1300         wants a char* not a FILE* (passing arg 1 of `dia_message_filename'
1301         from incompatible pointer type)
1304 2006-01-07  Hans Breuer  <hans@breuer.org>
1306         * objects/custom/shape_info.c(parse_path) : handle the case of 
1307         invalid path data more gracefully, i.e. show a warning instead 
1308         of crashing later on.
1309         * plug-ins/svg/svg-import.c(read_path_svg) : ditto.
1310         
1311         * configure.in sheets/Makefile.am shapes/Gane_and_Sarson 
1312           shapes/Makefile.am : added Gane & Sarson shapes 
1313         (Nick Moore, #319544)
1315         * objects/makefile.msc : building AADL on win32
1317 2006-01-06  Hans Breuer  <hans@breuer.org>
1319         * objects/AADL/aadl.h : avoid redefinition warnings by #undef
1320         min, #undef max before local definitions
1321         * objects/AADL/aadl.h : more prototypes
1322         * objects/AADL/aadltext.c : for C89 declarations must be at the
1323         beginning of a block. And Dia *must* be compileable with C89.
1325         * objects/AADL/** objects/Makefile.am sheets/Makefile.am 
1326         configure.in : AADL plug-in from Pierre Duquesne. See
1327         http://mail.gnome.org/archives/dia-list/2006-January/msg00005.html
1328         for more information
1329         * sheets/AADL.sheet.in : from the above patch but modified 
1330         to become translatable like the other sheet files. That is: the
1331         french translation got temporary removed cause it does not belong here.
1333         * plug-ins/pgf/render_pgf.c : no C99/C++ comments please
1335         * app/app_procs.c app/diaconv.c : get rid of run-on sentences
1336         (Adam Weinberger, bug #325567)
1337         
1338         * app/menus.c : removed some keybindings with <control><shift>[0-9A-F]
1339         and change some other to use <control><alt>. They collide with GTK's 
1340         Unicode input feature. Fixes bug #320495. For rationale see: 
1341         http://developer.gnome.org/projects/gup/hig/2.0/input-keyboard.html
1342         
1343         * app/display.c : pay attention to g_warnings() [should always run
1344         with --g-fatalwarnings ;)]. Only create the menubar IM menu if there
1345         actually is a menu bar.
1346         
1347         * lib/diarenderer.c : the righthand calculation accidentially broke
1348         some arcs direction. Should be fixed again.
1349         
1350 2006-01-02  Hans Breuer  <hans@breuer.org>
1352         * app/display.c(new_display) : also append the Input Methods menu to 
1353         the diagram menubar. Fixes bug #308576.
1355         * lib/widgets.c(dia_dynamic_menu_reset) : don't use an already
1356         freed string to dia_dynamic_menu_select_entry(). Fixes bug #323592.
1358         * lib/sheet.c(dia_sheet_sort_callback) : sort sheets according to 
1359         their localized name (with g_utf8_collate). Thus not relying on the 
1360         capabilities of the C libraries strcmp(). Fixes bug #160101.
1362         * lib/diarenderer.c(draw_arc_with_arrows) : don't recalculate center
1363         point and width from the (arrow-)corrected new points. Otherwise a 
1364         whole new wrong arc may emerge. Fixes bug #312641.
1365         
1366 2006-01-01  Hans Breuer  <hans@breuer.org>
1368         * objects/custom/custom_object.c(cutom_update_data) : depending 
1369         on the handle moving let one scale (x or y) take precedence. 
1370         (bug #308515, Eric Deplagne)
1371         
1372         * objects/UML/class.c : only perform the attributes check with
1373         attributes visible to ged rid of false warnings
1374         * objects/UML/class_dialog.c : need to setup Connection::object
1375         after uml_attribute_new() and uml_operation_new(), again less
1376         warnings but bug #314153 still not fixed.
1378         * NEWS : updated
1380         * plug-ins/python/diasvg.py : more correct svg by also writing 
1381         xmlns="http://www.w3.org/200/svg"
1383         * plug-ins/python/dot.py : skip unconnected connection lines
1384         * plug-ins/python/Makefile.am : added dot.py
1386         * plug-ins/python/pydiadoc.py plug-ins/python/codegen.py : fixed
1387         typos in comments
1389 2005-12-31  Hans Breuer  <hans@breuer.org>
1391         * objects/UML/class.[hc] objects/UML/class_dialog.c : removed the 
1392         caching of UMLClass::attributes_strings, operations_strings, 
1393         templates_strings.
1394         It was broken by the recent code restructuring in bug #303744 and
1395         - if necessary at all - nowadays it should be done on the 
1396         UMLAttribute, UMLOperation, UMLFormalParameter level anyway. 
1397         A small, much needed simplification of the code.
1399 2005-12-30  Hans Breuer  <hans@breuer.org>
1401         * objects/UML/class.c : Patch from Dave Klotzbach
1402         fixes crash bug #325151
1404         * app/app_procs.c : add command line parameter --nonew to allow
1405         avoiding the empty start-up diagram
1406         Also give a hint on where the object-libs were missing.
1407         Finally work around a misbehaviour upstreamm :
1408         g_option_context_parse() returning FALSE but not setting error.
1410         * app/commands.c app/app_diagram_tree.c app/interface.c :
1411         Use gdk_pixbuf_render_pixmap_and_mask_for_colormap as suggested by
1412         http://www.gtk.org/api/2.6/gdk/gdk-Pixbufs.html#gdk-pixbuf-render-pixmap-and-mask
1413         
1414         * lib/widgets.c : image file selection finally ported to the new
1415         gtk file chooser. Fixes bug #309383
1417 2005-12-28  Hans Breuer  <hans@breuer.org>
1419         * app/commands.c(file_new_callback) : convert to filename encoding before
1420         passing to new_diagram(), fixes bug #322400
1421         
1422         * app/interface.c(create_display_shell) : don't clip width on screen 
1423         height - now commited. Also lazy creation of tooltips.
1424         
1425         * objects/UML/actor.c : Actor is finally resizable, fixes bug #66915
1426         
1427 2005-12-27  Hans Breuer  <hans@breuer.org>
1429         * app/diapsft2renderer.c(draw_bezier_outline) : only call
1430         FT_Outline_Decompose() when FT_GLYPH_FORMAT_OUTLINE.
1431         Prefers no text output over crashing for bug #144212
1433         * app/interface.c : removed superfluous call to dia_canvas_set_size().
1434         Suggested by Roland Stigge, fixes bug #148149.
1436         * plug-ins/dxf/dxf-import.c : don't complain too loud on Binary
1437         DXF. It is not supported at all. Fixes bug #322101
1439         * lib/geometry.c : removed the ifdefed GLIB_CHECK_VERSION(2,7,0)
1440         define G_IMPLEMENT_INLINES. It breaks again with glib-2-8
1443 2005-12-27  Hans Breuer  <hans@breuer.org>
1445         * app/navigation.c : protect on_da_button_release_event() against being
1446         called twice. Also only popdown the navigation window after the first 
1447         draw (reusing nav->is_first_expose). Fixes bug #151696
1448         
1449         * app/interface.c(create_display_shell): don't clip width on screen height, 
1450         but height
1452         * lib/plug-ins.c : fixed typo in comment
1453         
1454         * lib/libdia.def : updated externals
1455         * lib/makefile.msc : build debug.obj
1457         * plug-ins/makefile.msc : building pgf in the right alphabetical order
1458         * plug-ins/pgf/render_pgf.c : include <glib/gprintf.h>
1459         
1460 2005-12-08  Lars Clausen  <lars@raeder.dk>
1462         * app/authors.h: 
1463         * plug-ins/pgf/pgf.c: 
1464         * plug-ins/pgf/render_pgf.[ch]: 
1465         * plug-ins/pgf/Makefile.am: 
1466         * plug-ins/Makefile.msc: 
1467         * plug-ins/Makefile.am (SUBDIRS): 
1468         * configure.in: Patch from Moritz Kirmse <momomaniac@gmail.com>: Add
1469         support for PGF output for including in (La)TeX documents that
1470         allows PDF generation.
1472         * samples/render-test.dia: Added samples of text in different
1473         sizes, standard fonts and styles with size markers.
1475 2005-12-04  Lars Clausen  <lars@raeder.dk>
1477         * lib/Makefile.am (gen_sources): Mark marshal files as generated.
1478         (BUILT_SOURCES): Added marshal files.
1480 2005-12-03  Lars Clausen  <lars@raeder.dk>
1482         * lib/Makefile.am (diamarshal.c): Fix marshal rules to not talk
1483         about $(srcdir) and confusing everybody.
1485         * app/undo.c:
1486         * lib/diagramdata.c:
1487         * lib/diagramdata.h:
1488         * lib/diamarshal.list:
1489         * plug-ins/python/pydia-diagram.c:
1490         * plug-ins/python/pydia-diagramdata.c:
1491         * plug-ins/python/python-startup.py: Patch from David Johansson
1492         <david.lgj@gmail.com>: Add signals emitted when objects are
1493         inserted or removed.
1495 2005-11-13  Lars Clausen  <lars@raeder.dk>
1497         * app/display.c (update_zoom_status): Fix of bug #321387: Avoid
1498         (small) buffer overflow by using g_strdup_printf instead of sprintf.
1500 2005-11-09  Lars Clausen  <lars@raeder.dk>
1502         * app/app_procs.c: 
1503         * plug-ins/dxf/dxf-import.c (import_dxf): Don't use g_error except
1504         when reaching the statement is a bug.  Using g_critical and exit() for
1505         fatally wrong inputs.
1507         * objects/UML/uml.c: 
1508         * objects/UML/class.c: Patch from dklotzbach@foxvalley.net (dave
1509         Klotzbach): Fixes template rendering and converts home-brew inline
1510         doc format to javadoc.  Doesn't yet fix bug #320934, but turns it
1511         into a dup.
1513 2005-11-07  Lars Clausen  <lars@raeder.dk>
1515         * lib/object.[ch]: Add 'enclosing box' as opposed to 'bounding
1516         box' since several objects have problems of using bounding box in
1517         different ways (see bug #300055).  For now, enclosing box ==
1518         bounding box, but over time objects will learn to expand the
1519         bounding box to include things only rendered interactively.
1521         * app/modify_tool.c (modify_motion): Make sure highlight is reset
1522         when moving between overlapping objects.
1524         * app/interface.c (interface_toggle_mainpoint_magnetism): Redraw
1525         diagram after toggling to make red X's come and go.
1527         * lib/font.c: #ifdef'd out layout cache for bug #307320.  Define
1528         it if you need faster rendering and aren't afraid of crashbugs:)
1530         * lib/objchange.c: Bugfix from dklotzbach@foxvalley.net
1531         (dave Klotzbach):  Fixes null pointer problems in free function.
1533         * objects/UML/class.c
1534         * objects/UML/class.h
1535         * objects/UML/class_dialog.c: Patch from dklotzbach@foxvalley.net
1536         (dave Klotzbach): Make UML comments conform to UML 1.0 standard
1537         and allow multi-line comments. Ugly as hell, but standard.  Time
1538         for a 'Strict UML' option?  Fixes bug #303744.
1539         
1540         * objects/UML/state.c: Patch from Peter Allin <peter@peca.dk>: Add
1541         entry, exit and do descriptions to a state object.  Fixes bug #65434.
1543 2005-11-03  Lars Clausen  <lars@raeder.dk>
1545         * lib/arrows.c:
1546         * lib/attributes.c:
1547         * lib/autoroute.c:
1548         * lib/bezier_conn.c:
1549         * lib/boundingbox.c:
1550         * lib/color.c:
1551         * lib/connection.c:
1552         * lib/connectionpoint.c:
1553         * lib/dia_dirs.c:
1554         * lib/dia_image.c:
1555         * lib/dia_svg.c:
1556         * lib/dia_xml.c:
1557         * lib/diaarrowchooser.c:
1558         * lib/diaerror.c:
1559         * lib/diagdkrenderer.c:
1560         * lib/diagramdata.c:
1561         * lib/element.c:
1562         * lib/object.c:
1563         * lib/object.h:
1564         * lib/parent.c:
1565         Added documentation java-doc style.  Also a few trivial cleanups.
1566         
1567 2005-10-13  Lars Clausen  <lars@raeder.dk>
1569         * lib/connectionpoint.h (DIR_ALL): Parentheses around operations
1570         in macros.
1572         * plug-ins/hpgl/hpgl.c (export_data): Correct error message.
1574         * lib/Makefile.am:
1575         * lib/debug.[ch]:
1576         * lib/object.[ch]: 
1577         * objects/UML/class.[ch]: 
1578         * objects/UML/uml.h: 
1579         * objects/UML/umlattribute.c: 
1580         * objects/UML/umloperation.c: 
1581         * objects/UML/class_dialog.c: 
1582         Rework of the UML class attribute/operation handling.  Now doesn't
1583         copy connection points into the dialog data, but only the "flat"
1584         data.  As part of debugging made sanity check functionality.
1585         Currently still dies when deleting an attribute/operation that has
1586         a connection to it.
1588 2005-10-09  Hans Breuer  <hans@breuer.org>
1590         * lib/properties.h : prefer american spelling of colo(u)r for
1591         user visible strings - i.e. to be translated ones.
1592         * objects/UML/uml.c : it is Implementation. Together fixes bug #313929
1593                                         ^
1594         * po/*.po : updated (by 'make distcheck')
1596 2005-10-09  Hans Breuer  <hans@breuer.org>
1598         * app/display.c : allow !"toolbox on top" without restart.
1599         (Chris Hellberg, bug #310702)
1601 2005-10-09  Hans Breuer  <hans@breuer.org>
1603         * lib/arrows.c : patch from Radek Krahl fixing the blanking
1604         of two arrowheads, bug #310157
1606 2005-10-08  Hans Breuer  <hans@breuer.org>
1608         * plug-ins/python/group_props.py : show a descriptive text instead of an 
1609         empty table if there are no common properties to change. Fixes bug #314432
1611 2005-10-08  Hans Breuer  <hans@breuer.org>
1613         * objects/UML/transition.c : inverted default direction of
1614         the direction. Patch from Peter Allin, fixes bug #318049
1615         [You possibly need to 'rm ~/.dia/defaults.dia' to have an effect]
1617 2005-10-08  Hans Breuer  <hans@breuer.org>
1619         * app/Makefile.am objects/standard/Makefile.am : match the
1620         referenced icons to the needed. Make 'make distcheck' pass
1621         and thus fixes bug #312152
1623         * objects/standard/textobj.c : no C++ comments please!
1625 2005-10-08  Hans Breuer  <hans@breuer.org>
1627         * objects/standard/textobj.c : preserve the position set on create
1628         [makes e.g. text positioning of diasvg_import.py work]
1630         * plug-ins/python/diasvg_import.py : restrict what eval() can do
1631         with strings from svg files. Fixes the arbitrary code execution from 
1632         bug #317637
1633         
1634         * app/pixmaps/mainpoints-(on|off).png : new icons to toggle center point
1635         magnetism. At least they are distinguishable from grid snapping.
1636         * app/makefile.msc app/Makefile.am : use them
1637         
1638         * lib/focus.c(reset_foci) : also remove_focus(). This fixes bug #172851
1639         I also can't reproduce bug #309044 anymore (on win32).
1640         
1641 2005-10-01  Lars Clausen  <lars@raeder.dk>
1643         * lib/connectionpoint.h (DIR_ALL): Parentheses around | expressions.
1645         * plug-ins/hpgl/hpgl.c (export_data): Listen to warnings and don't
1646         pass FILE * as gchar *.
1648         * lib/debug.[ch] (dia_assert_true): Debugging aids.
1650 2005-09-29  Lars Clausen  <lars@raeder.dk>
1652         * objects/UML/class.h: Enabling mainpoints for UML.
1654         * objects/UML/class.c (umlclass_set_props): Make sure to always
1655         realloc connection point list.
1657 2005-09-26  Ahmad Riza H Nst  <rizahnst@id.gnome.org>
1659         * configure.in: Added "id" in ALL_LINGUAS line.
1661 2005-09-14  Lars Clausen  <lars@raeder.dk>
1663         * objects/UML/class.c (umlclass_load): Set mainpoint obj upon
1664         loading.  Fixes bug #315427.
1666 2005-09-11  Hans Breuer  <hans@breuer.org>
1668         * objects/standard/arc.c objects/standard/textobj.c : fix
1669         C99isms, Dia is supposed to compile with C89 like msvc
1671         * app/makefile.msc : use the wrong center-point-magnetism
1672         icons for the win32 build, too.
1674         * plug-ins/python/pydia-error.c : dont crash on C escape
1675         sequences in the error string
1676         * plug-ins/python/pydia-render.c : dont free filename twice
1678         * plug-ins/python/dot.py : start of an exporter to DOT language
1679         which can be processed by www.graphviz.org tools
1681 2005-09-05  Iñaki Larrañaga  <dooteo@euskalgnu.org>
1683         * configure.in: Added "doc/eu/Makefile" for Basque documentation.
1685 2005-09-04  Iñaki Larrañaga  <dooteo@euskalgnu.org>
1687         * configure.in: Added "eu" to ALL_LINGUAS.
1689 2005-09-04  Lars Clausen  <lars@raeder.dk>
1691         * lib/element.h (ELEMENT_COMMON_PROPERTIES): Remove object
1692         dimensions frame to make ext_attributes work again.
1694         * app/grid.c (snap_to_grid): Bugfix from Zhang Lin-bo
1695         <zlb@lsec.cc.ac.cn>: Use dynamic grid setting from diagram, not
1696         global prefs.
1698         * objects/standard/textobj.c: Applied patch from Grégoire Dooms
1699         <dooms info ucl ac be>: Add vertical alignment for standard text
1700         object.  This should really be moved into lib/text.c and apply to
1701         all text objects.
1703 2005-09-03  Lars Clausen  <lars@raeder.dk>
1705         * app/connectionpoint_ops.c (connectionpoint_draw): Only draw
1706         mainpoint when snap-to-objects is not on.
1708         * app/Makefile.am (ICON_PNG_PAIRS): 
1709         Fake icons for snap-to-objects.
1711         * app/commands.[ch]: 
1712         * app/menus.c (menus_get_image_menubar): 
1713         * app/display.[ch]: 
1714         * app/interface.c (create_display_shell): 
1715         * app/create_object.c (create_object_button_release): 
1716         * app/disp_callbacks.c (ddisplay_drop_object): 
1717         * app/object_ops.[ch]: 
1718         * app/connectionpoint_ops.c (ddisplay_connect_selected): 
1719         * app/modify_tool.c (modify_button_release): 
1720         * app/display.[ch]: 
1721         Togglable snap-to-objects, also doesn't snap when moving entire
1722         object.  This should be more reasonable in practical use, and can
1723         be turned off when you want to place your arrows more precisely.
1725 2005-08-06  Hans Breuer  <hans@breuer.org>
1727         * plug-ins/cairo/diacairo.c : increased #ifdef MESS:
1728         With Gtk+-2.7.x cairo must be available so the HAVE_CAIRO case
1729         becomes even more ugly when the user has choosen *not* to build 
1730         the diacairo plug-in. If noone can come up with a very convincing 
1731         reason why it has to be done this way I'll probably go back to 
1732         my original dont-build-at-all approach when this breaks the 
1733         next time.
1735 2005-08-02  Lars Clausen  <lars@raeder.dk>
1737         * objects/standard/arc.c: Patch from Grégoire Dooms
1738         <dooms@info.ucl.ac.be>: An almost perfect arc autogap
1739         implementation.  "There is still a small bug when the non
1740         connected end of the arc is very close to the border of the
1741         connected object. I think this is due to rounding errors in the
1742         code for SHIFT-move handle which is reused to trim the arc in
1743         autogap. Also it is not yet possible to have a startgap and an
1744         endgap from/to the same central CP."
1746 2005-07-31  Hans Breuer  <hans@breuer.org>
1748         * plug-ins/cairo/diacairo.c congigure.in : dont wait any 
1749         longer for distributions official packages - depend 
1750         on cairo 0.6.0 - fixes bug #307144
1752 2005-07-20  Hans Breuer  <hans@breuer.org>
1754         * lib/element.h : remove stray NULL in ELEMENT_COMMON_PROPERTIES
1755         which must match PropDescription, that is make it at least compile.
1757 2005-07-19  Hans Breuer  <hans@breuer.org>
1759         * app/diagram.c(new_diagram) : what comes from g_object_new()
1760         MUST NOT be g_free()'d 
1762         * lib/message.h : added dia_message_filename() here as well.
1763         Mainly to not touch all files using. They *all* where using
1764         lib/message.h already! Maybe the implemantation should be moved
1765         to message.c as well cause the function has *nothing* to do
1766         with dynamic filename resolving. It is a wrapper around
1767         g_display_filename() mostly (only?) used for messages ...
1768         * lib/dia_dirs.c(dia_message_filename) : fix C99ism
1770 2005-07-18  Lars Clausen  <larsrc@raeder.dk>
1772         * objects/EML/instantiation.c (instantiation_load): 
1773         * objects/EML/interaction-ortho.c (interaction_ortho_type) 
1774         * objects/ER/participation.c (participation_type): 
1775         * objects/FS/flow-ortho.c (orthflow_type): 
1776         * objects/GRAFCET/vector.c (arc_load): 
1777         * objects/standard/zigzagline.c (zigzagline_type): 
1778         * objects/UML/transition.c (transition_load): 
1779         * objects/UML/realizes.c (realizes_load): 
1780         * objects/UML/dependency.c (dependency_load): 
1781         * objects/UML/generalization.c (generalization_type): 
1782         * objects/UML/association.c (association_type): 
1783         * objects/UML/component_feature.c (compfeat_load): 
1784         Make autorouting deafult on except for old diagrams.
1786         * plug-ins/cairo/diacairo.c (export_data): 
1787         * plug-ins/cgm/cgm.c (export_cgm): 
1788         * plug-ins/dxf/dxf-export.c (export_dxf): 
1789         * plug-ins/dxf/dxf-import.c: 
1790         * plug-ins/hpgl/hpgl.c (export_data): 
1791         * plug-ins/metapost/render_metapost.c: 
1792         * plug-ins/pixbuf/pixbuf.c: 
1793         * plug-ins/pstricks/render_pstricks.c: 
1794         * plug-ins/python/pydia-render.c: 
1795         * plug-ins/shape/shape-export.c: 
1796         * plug-ins/svg/render_svg.c: 
1797         * plug-ins/svg/svg-import.c: 
1798         * plug-ins/wpg/wpg.c 
1799         * plug-ins/xfig/xfig-export.c: 
1800         * plug-ins/xfig/xfig-import.c: 
1801         * plug-ins/xslt/xslt.c: Use dia_message_filename to ensure legal
1802         UTF-8 in message boxes.
1804 2005-07-18  Lars Clausen  <lars@raeder.dk>
1806         * lib/element.h (ELEMENT_COMMON_PROPERTIES): Allow Element objects
1807         to have their dimensions specified in properties.  Still needs to
1808         have proper update when setting properties cause constraint changes.
1810         * app/preferences.c (update_floating_toolbox): Allow
1811         toolbox_on_top setting to happen at once.
1813         * app/diagram.c
1814         * app/filedlg.c
1815         * app/load_save.c
1816         * app/render_eps.c
1817         * app/sheets_dialog_callbacks.c
1818         * lib/dia_dirs.c
1819         * lib/dia_dirs.h
1820         * lib/dia_xml.c
1821         * lib/diarenderer.c
1822         * lib/element.h
1823         * lib/object_defaults.c:
1824         Patch from lav@altlinux.ru (Vitaly Lipatov): Make filenames safe
1825         for displaying in messages - better than crashing!  Mostly fixes
1826         #310087.
1827         
1828         * objects/UML/class.c:  Save normal_font_height under the same
1829         name it gets loaded as.  Fixes bug #310515.
1831         * doc/en/authors.xml
1832         * doc/en/usage-customization.xml
1833         * doc/en/usage-objects-special.xml
1834         * doc/en/usage-objects.xml: Some documentation fixes.  Fixes bug
1835         #308315.
1837 2005-07-17  Lars Clausen  <lars@raeder.dk>
1839         * doc/en/usage-customization.xml: 
1840         * doc/en/usage-objects.xml: 
1841         * doc/en/authors.xml: 
1842         * doc/en/usage-objects-special.xml: Applied patch from
1843         stigge@antcom.de (Roland Stigge):  Diverse typos and
1844         misencodings.  Fixes bug #308315.
1846         * objects/UML/class.c (umlclass_save): Patch from
1847         i.pilcher@comcast.net: Save normal font height under correct name
1848         to reload it.  Fixes bug #310515.
1850 2005-07-10  Hans Breuer  <hans@breuer.org>
1852         * app/connectionpoint_ops.c app/object_ops.c : make the
1853         'whole object' connection point only center point again. 
1854         That is: it is visible and far less magnetic. Only the
1855         line gap handling make it special. For me this probably
1856         fixes bug #303301
1858         * lib/neworth_conn.c : apply the same as for bug #173031.
1859         This OrthConn fork got broken as well. Fixes bug #309381
1861         * app/makefile.msc objects/makefile.msc : adapt to icon changes
1863         * app/interface.c app/diagram_tree.c : a char** is still not 
1864         a char* and the win32 build is configured to error on 
1865         sloppiness like this
1867         * plug-ins/wmf/wmf.cpp : fix typo in preprocessor condition
1869 2005-07-10  Hans Breuer  <hans@breuer.org>
1871         [
1872           Take part in the toolbox icon redesign context! If you want to 
1873           make them really prettier, please keep the following in mind :
1874           - the size *must* be 22x22 otherwise button reflow will get broken.
1875             Or you need to change about 800 icons at once.
1876           - one important part of Dia are control points, so maybe the icons
1877             should reflect that. (IMO gathering random icons form other 
1878             apps wont work)
1879           - the icons should at least look consistent in their group
1880         ]
1882         * app/Makefile.am : use 22x22 variants mostly lent from The GIMP
1883         * app/pixmaps/*.png : added arrow-22.png scroll-22.png zoom-22.png
1885         * objects/standard/*.c : get rid of xpm includes to avoid mixing icon sets
1886         * objects/standard/pixmap/* : added arc.png beziergon.png 
1887         bezierline.png box.png ellipse.png image.png line.png polygon.png 
1888         polyline.png text.png zigzagline.png
1889         * objects/standard/Makefile.am : use the new icon set including
1890         text and arc ...
1892         * app/interface.c : remove the "will probably crash" debug spew
1894 2005-07-09  Lars Clausen  <lars@raeder.dk>
1896         * objects/standard/pixmaps/*.png:
1897         * objects/standard/Makefile.am:
1898         * objects/standard/*.c:
1899         * app/interface.c: 
1900         * app/diagram_tree.c (create_object_pixmap): Fix icon loading. use
1901         new icons. [Slightly belated entry]
1903 2005-07-03  Hans Breuer  <hans@breuer.org>
1905         * app/diagram_tree.c : dont leak display name
1906         * app/app_procs.c : dont leak GOptionContext
1907         * app/prop_widgets.c(frame_beginprop_get_widget) : 
1908         Gtk api still not eating strings ...
1910         * objects/UML/class.c() : don't load properties once more 
1911         which are already loaded by StdProps. In case of strings 
1912         (data_string) it has even produced leaks.
1914         * app/paginate_psprint.c app/diagram.[hc] : the last
1915         of the related dialogs is gone and with it the 
1916         misconception of destroying widgets from 
1917         diagram::finalize()
1918         * app/display.c : ensure the diagram is still threre
1919         when we remove the display from it's list
1921 2005-07-01  Hans Breuer  <hans@breuer.org>
1923         * lib/widgets.c(dia_color_selector_more_callback): dont 
1924         free old_color twice
1926         * plug-ins/wmf/wmf.cpp : finally added enahnced meta file
1927         option. Thus linestyles can be preserved on export - at 
1928         least on NT based systems.
1930         * NEWS : clarify the wmf outside of windows issue
1932         * app/modify_too.c : fix C99ism
1934         * objects/standard/arc.c : debug spew optional at compile time
1936 2005-06-26  Hans Breuer  <hans@breuer.org>
1938         [ Cyrille would call it: warningectomy :-]
1940         * lib/font.c app/create_object.c : `...' might be used uninitialized
1941         in this function. Yes they were.
1942         * app/modify_tool.c : modify_tool.c:610: warning: `obj' might be used 
1943         uninitialized in this function. Yes it was with textedit_activate_object()
1944         Also some static correctness.
1945         * lib/diarenderer.c:678: warning: no previous prototype for 
1946         `calculate_min_radius'. Made static.
1947         * lib/dia_svg.c : ptr is a gchar *
1948         * dia_xml.c(data_point,data_rectangle) : gchar *str for parsing
1949         * lib/prop_text.c(multistringprop_get_widget) : use G_CALLBACK
1950         * app/app_procs.c : confirm warning and make dump_dependencies() static
1951         * app/autosave.c : #if 0'd old stuff
1952         * app/display.c : GTK_CHECK_MENU_ITEM() for snap_to_grid
1953         * 
1954         * lib/text.c lib/font.c objects/standard/line.c object/UML/class.c
1955           objects/Istar/goal.c objects/standard/bezier.c objects/standard/beziergon.c
1956           plug-ins/cgm/cgm.c plug-ins/cairo/diacairo.c plug-ins/hpgl/hpgl.c
1957           plug-ins/wpg/wpg.c plug-ins/svg/svg-import.c plug-ins/shape/shape-export.c
1958           plug-ins/dxf/dxf-export.c plug-ins/gprint/diagnomeprintrenderer.c
1959           plug-ins/gprint/diagnomeprint.c  plug-ins/xfig/xfig-export.c
1960           app/diagram_tree_menu_callbacks.c app/recent_files.c app/undo.c app/menus.c
1961           app/diapsrenderer.c app/diagram.c app/disp_callback.c : 
1962         removed unused variables and functions
1963         * objects/UML/umlattribute.c objects/UML/umloperation.c 
1964           objects/UML/umlparameter.c objects/UML/umlformalparameter.c : 
1965         neither 'missing braces around initializer' nor 'initialization from 
1966         incompatible pointer type'
1967         * objects/UML/class_dialog.c : more static
1968         * app/interface.c : static and almost const correctness and some
1969         less unitialized variables.
1970         * app/diapsft2renderer.c : use (int) casts like the original 
1971         (http://imagic.weizmann.ac.il/~dov/freesw/paps/ v0.4) does
1972         * app/render_gdk.c: stop assignment from incompatible pointer type,
1973         make member functions match the prototype.
1974         * app/render_libart.c : Dito. Also stop caching the copy_gc in
1975         a static variable. Otherwise it finally leaks and also may cause 
1976         BadMatch with changing windows
1977         => warning count down from about 250 to about 60, one or two hand full 
1978            crash bugs less.
1980 2005-06-26  Hans Breuer  <hans@breuer.org>
1982         * lib/libdia.def : added dia_font_get_description, missing
1983         from my last commit
1985         * app/app_procs.c : use png_get_header_ver(NULL), that is:
1986         prefer function call over exported variable to get the 
1987         runtime version of libpng
1989 2005-06-19  Hans Breuer  <hans@breuer.org>
1991         * plug-ins/python/Makefile.am : added codegen.py to EXTRA_DIST
1992         as suggested by Roland Stigge, bug #308310
1994 2005-06-19  Hans Breuer  <hans@breuer.org>
1996         * app/filedlg.c(file_export_callback) : oops, gtk_widget_show() wasn't 
1997         called anymore
1999 2005-06-18  Hans Breuer  <hans@breuer.org>
2001         * NEWS : mention new file dialog
2003         [plugged remaining leaks from bug #142669]
2004         * lib/prop_attr.c(fontprop_free) : not only unref the font
2005         but free the property itself, too. 
2006         * app/diagram_tree.c(create_diagram_children): remember the
2007         original list start to not only free the last element 
2009         * lib/prop_sdarray.c:64: warning: `arrayprop_free' defined 
2010         but not used. Here it meant a potentially huge leak.
2012 2005-06-18  Hans Breuer  <hans@breuer.org>
2014         * po/POTFILES.in : removed app/diaconv.c which isn't referenced 
2015         by app/Makefile.am anymore either. Should finally fix 'make distcheck' 
2016         for others, too. ( Roland Stigge, bug #144527 )
2018 2005-06-18  Hans Breuer  <hans@breuer.org>
2020         * plug-ins/wmf/Makefile.am : prevent installation. It 
2021         doesn't do anything useful on *NIX and even seems to be
2022         linked wrong by gcc (or me;). Fixes bug #172830 
2024 2005-06-18  Hans Breuer  <hans@breuer.org>
2026         * app/textedit.[hc] lib/arrows.[hc] plug-ins/xslt/xslt.h
2027           plug-ins/xslt/xsltdialog.c plug-ins/xslt/xslt.c : fix for sloppiness
2028         in function declarations. 'f();' for a function without parameters is
2029         a C++ism. Though I can't get any of my compilers to warn about it.
2030         Finally fixes bug #142663.
2032 2005-06-18  Hans Breuer  <hans@breuer.org>
2034         * app/textedit.[hc] lib/arrows.[hc] plug-ins/xslt/xslt.h
2035           plug-ins/xslt/xsltdialog.c plug-ins/xslt/xslt.c : fix for sloppiness
2036         in function declarations. 'f();' for a function without parameters is
2037         a C++ism. Though I can't get any of my compilers to warn about it.
2038         Finally fixes the rest of bug #142663.
2040 2005-06-18  Hans Breuer  <hans@breuer.org>
2042         * lib/font.h lib/font.c : _DiaFont is now private to prepare bigger 
2043         changes but doesn't hurt anyway. See bug #162034 
2044         * app/diapsft2renderer.c app/modify_tool.c 
2045           plug-ins/gprint/diagnomeprintrenderer.c : use dia_font_get_description() 
2046         instead of messing with internals
2047         * app/display.c : give interactive renderers more begin/end render. 
2048         It is guaranteed that the scale wont change between these.
2050 2005-06-18  Hans Breuer  <hans@breuer.org>
2052         * app/app_procs.c : const correctness for stderr_message_internal
2053         * app/dia-props.c : gtk_toggle_*() functions want GTK_TOGGLE_BUTTON 
2054         not GTK_CHECK_BUTTON, also some G_CALLBACK casts
2055         * app/disp_callbacks.c : don't dereference the to the function call
2056         when the function pointer in meant to be checked against 0
2057         * app/interface.c : warning fixes by using correct types
2058         * app/modify_tool.c : describe_props() members returns const pointer
2059         * app/render_libart.c : removed most of the render function again.
2060         They happily live in lib/dialibartrenderer.c since almost 3 years
2061         http://cvs.gnome.org/viewcvs/dia/app/render_libart.c?r1=1.31&r2=1.32
2062         * lib/dia_dirs.c : dia_get_canonical_path() const correctness
2063         * lib/dia_svg.c lib/dia_xml.c : some char to xmlChar changes
2064         * lib/dialibartrenderer.c(set_line_join): actually set the join_style
2065         instead of the cap_style. Don't initialize Art* enums with GDK_* constants.
2066         Both mentioned in bug #159814 and not warned by most other compilers.
2067         * lib/diagtkfontsel.c : at least the watcom compiler did not like the
2068         trailing colon in the GtkTypeInfo initialization
2069         * lib/properties.c : avoid redefinition of LIBDIA_COMPILATION
2070         * lib/dialinechooser.c lib/diagdkrenderer.c : there may be a difference 
2071         between char and gint8
2072         * plug-ins/metapost/render_metapost.c : replace invalid escape \% with %%
2073         * plug-ins/wpg/wpg.c : consitently use guint8
2074         * config.h.win32 : change HAVE_* defines to 1 not empty, avoids 
2075         redefinition warnings for python and xslt plug-ins
2077 2005-06-18  Hans Breuer  <hans@breuer.org>
2079         * lib/diagramdata.c : really get rid of diagram_data_destroy 
2080         and new_diagram_data [ no previous prototype for `...' is either
2081         a sign of missing static or of a function to vanish :-]
2083         * lib/geometry.c : apparently the G_INLINE stuff was working only
2084         with particular GLib version(s), glib-2.6.4 does not. Conditionally
2085         reverting to the old mecanics.
2087 2005-06-17  Hans Breuer  <hans@breuer.org>
2089         * plug-ins/python/pydia-*.c : include order tweaking to 
2090         get rid of redefinition warnings. Ensure to include <Python.h> 
2091         before any 'system' header, some dragged in by glib.h
2092         * plug-ins/python/pydia-diagramdata.c(PyDiaDiagramData_Str)
2093           pydia-properties.c(PyDiaProperties_Str)
2094           plug-ins/python/pydia-property.c(PyDiaProperty_Str) : 
2095         use %p to format pointers
2096         * plug-ins/python/pydia-geometry.c(PyDiaArrow_Str) : 
2097         dont cast to float for %d
2098         * plug-ins/python/pydia-handle.c(PyDiaHandle_Connect) : 
2099         use correct pointer type
2100         * plug-ins/python/pydia-image.c(PyDiaImage_Str) :
2101         dont discard qualifier aka dont free const strings
2102         * plug-ins/python/pydia-properties.c : casts to PyCFunction
2103         * plug-ins/python/pydia-property.c : removed unused function,
2104         make ensure_quarks() static
2105         * plug-ins/python/pydia-render.c : removed unused vars, use
2106         the correct signature for begin_render
2107         (dia_py_renderer_finalize): pluged a leak
2108         => except -fno-strict-aliasing there is no warning left in 
2109            all of PyDia
2111 2005-06-12  Hans Breuer  <hans@breuer.org>
2113         * app/filedlg.c : really fix the file extension mismatch on export dialog
2114         by working around some gtk+-2.6 behaviour (bug #307378). Fixes bug #305850
2116 2005-06-11  Hans Breuer  <hans@breuer.org>
2118         * configure.in config.h.win32.h : mark as +cvs (should have been 
2119         done directly after the 0.94 release)
2120         * NEWS : attempt to summarize 2/3 year of development
2122         [ 
2123           WANT_AUTOMAKE=1.7 ./autogen.sh && ./conifugre  --enable-maintatiner-mode && make distcheck
2124           finally passes again
2125         ]
2126         * app/app_procs.c : force use of POPT for the GNOME case, otherwise
2127         app/run_dia.sh --credits > THANKS => Segmentation fault
2128         * app/pixmaps/Makefile.am : added group.png and ungroup.png
2129         * Makefile.am : work around scrollkeeper bug
2130         * doc/en/Makefile.am : explicit list DISTCLEANFILES = dia.1
2132         * po/*.po : 'noise' produced by make dist
2134 2005-06-10  Hans Breuer  <hans@breuer.org>
2136         * lib/properties.h : define PROP_STD_SHOW_BACKGROUND_OPTIONAL ...
2137         * objects/custom/custom_object.c : ... and use it to avoid 
2138         complains about missing attribute "show_background". It is 
2139         safe to leave this uninitialized. Same for flip_* and "text",
2140         the latter with comment cause it usually is *not* safe to do 
2141         it for the general case. Fixes remaining issues with bug #169006
2142         which where caused by an incompatible change in the shape file.
2144         * app/commands.c : use "gnome-open" instead of "netscape" as
2145         fallback for $BROWSER not set. Still not optimal but better
2146         to try some common desktop tool than an obsolete browser;)
2147         Fixes bug #307142. Also some whitespace changes.
2149         * app/interface.c(toolbox_delete): avoid random return value.
2150         Patch from Stanislav Brabec, fixes bug #307143
2152         * shapes/Cisco/Makefile.am : added a bunch of new shapes/pngs.
2153         Patch from Torben H. Nielsen (bugzilla is still the preferred way)
2154         http://mail.gnome.org/archives/dia-list/2005-June/msg00015.html
2156 2005-06-06  Lars Clausen  <lars@raeder.dk>
2158         * app/diagram.c: 
2159         * app/modify_tool.c:
2160         * app/textedit.[ch]:
2161         Better support for text edit highlight.
2163         * app/connectionpoint_ops.c (connectionpoint_draw): Stop making
2164         the mainpoint extra visible.
2166 2005-06-02  Lars Clausen  <lars@raeder.dk>
2168         * objects/UML/class_dialog.c:
2169         * objects/UML/class.[ch]:
2170         The final fixes for mainpoint on UML Class.
2172         * sheets/cisco*.in, shapes/Cisco/*: New set of Cisco icons from
2173         Ian Redfern, now in color and with mainpoints!  Very pretty!
2175 2005-06-02  Hans Breuer  <hans@breuer.org>
2177         * objects/UML/class_dialog.c : the memory managment with respect to
2178         attribute/operation connections was/is a mess. But it should work again ;)
2180         * samples/UMLPackages.dia samples/Composite-Action.dia : some diagrams
2181         directly from the UML Specification - to show the power of Dia and 
2182         some weakness. Watch the bug reports following ;)
2184 2005-06-01  Hans Breuer  <hans@breuer.org>
2186         * app/dia.def : export diagram_update_connections_object
2187         * plug-ins/python/pydia-diagram.c : wrap diagram_update_connections_object
2188         Patch from Paolo Bernardi, together with the property setting closes bug #300572
2190 2005-06-01  Hans Breuer  <hans@breuer.org>
2192         * plug-ins/python/pydia-property.c : complete refactoring of property 
2193         setting, now also supports setting of property arrays
2194         * plug-ins/python/pydia-*.c plug-ins/python/diamodule.c : adapt to 
2195         Python namespacing conventions
2196         * plug-ins/python/pydiadoc.py : use the stuff above to produce more 
2197         complete UML Classes with attributes and operations
2198         * plug-ins/python/otypes.py : now also show the properties of the objects
2200         * objects/UML/class.c(umlclass_set_props) : need to update object::connections
2201         (pointers), they might be changed with attributes and opertions changing
2203         * plug-ins/python/pydia-property.c : PointArray and BezPointArray property getters
2204         were broken. Apparently noone used them before.
2206         * plug-ins/python/pydia-diagram.c plug-ins/python/pydia-diagramdata.c : moved methods
2207         which only operate on the DiagramData to the latter file. To get on the DiagramData
2208         object of a Diagram use diagram.data. [In C the Diagram is a subclass of DiagramData, 
2209         but I don't know how to reflect that in the bindings. And for backward compatibility 
2210         there also is the 'data' member.]
2212         * objects/UML/uml.c objects/UML/umlattribute.c objects/UML/umloperation.c 
2213           objects/UML/umlparameter.c : describe enums with PropEnumData
2215         * app/commands.c(view_show_all_callback) : if there is something selected show 
2216         that instead of all exisiting objects. If there is noting or all selcted it 
2217         "Show all" shows the old behaviour.
2219         * lib/parent.[hc] lib/object.c app/disp_callbacks.c app/diagram.c : plug some memory 
2220         leaks and use less allocations caused by misguided API. Also some adaption to common 
2221         coding style
2223         * objects/UML/class.h : add some comment about the brokeness of UML_MAINPOINT
2225         * app/makefile.msc : added new icons and build as console app while 
2226         not releaseing to the general public
2228         * objects/custom/shape_info.c : use g_strdup("") for a field to be g_free()'d
2229         and keep a refernce when storing the a font from style="" in s.font. This should
2230         finally allow to have shapes with fully predefined text (and no 'random' crashes)
2232         * plug-ins/gprint/diagnomeprint.c : disable GNOME_SVG until I've found a program
2233         capable to interpret it's output
2235 2005-05-31  Lars Clausen  <lars@raeder.dk>
2237         * sheets/ER.sheet.in: No more xpms referenced in sheets. Fixes bug #151811.
2239 2005-05-30  Pawan Chitrakar  <pawan@nplinux.org>
2241         * configure.in: Added ne in ALL_LINGUAS
2243 2005-05-24  Lars Clausen  <lars@raeder.dk>
2245         * lib/font.c: Change to make DIA_FONT_ITALIC turn into -Oblique PS
2246         fonts for legacy fonts.  They don't have DIA_FONT_OBLIQUE setting
2247         anyway. 
2249 2005-05-23  Lars Clausen  <lars@raeder.dk>
2251         * lib/paper.c: Added Ledger size paper.  Fixes bug #305254.
2253 2005-05-21  Lars Clausen  <lars@raeder.dk>
2255         * lib/diaarrowchooser.c: 
2256         * lib/arrows.[ch]: Patch from Radek Krahl <ptasz3k@o2.pl>: Add
2257         'infinite' line (three dots) arrowhead.  Fix line length in arrow
2258         preview.  And fix typo.  Fixes bug #303904. 
2260 2005-05-20  Hans Breuer  <hans@breuer.org>
2262         * lib/text.c : advice from valgrind and data_string() review:
2263         neither g_free() memory on the stack
2264         * objects/GRAFCET/boolequation.c : ... nor const strings 
2265         * objects/UML/association.c:934 : definitely lost. Even g_strdup("")
2266         wants to be freed
2268         * app/diagram.c : a g_object_ref() following g_object_new() is almost
2269         always wrong. Why would we need two refernces?
2270         * app/app_procs.c : same here.If it crashes later on someone is dropping
2271         refernces he does not own, and *that* needs to be fixed. This is reverting
2272         "Remember to ref g_object_new'd object" (bug #170972) below, which 
2273         causes more harm (leaking, hiding bugs elsewhere) than good.
2275         * app/app_procs.c lib/diagramdata.[ch] lib/libdia.def : get rid of
2276         diagramdata_destroy() which was only a wrapper to g_object_unref()
2278         * app/display.c(selection_changed) : don't g_strdup_printf() without
2279         g_free() later /or/ a C++ comment of me mostly denotes an error
2281         * app/diagram.c : diagram_parent_sort_cb make signature match GCompareFunc
2283         * lib/widget.c : dia_dynamic_menu_select_entry() cleanup. If it takes a
2284         const gchar* entry it must not eat memory, added a lot of g_free() and
2285         some const. Fixed a bunch - i.e. *all* - warnings.
2286         * lib/widget.h : removed unused/deleted functions
2288         * app/layer_dialog.c(dia_layer_widget_connectable_toggled) : trying to
2289         avoid 'Invalid write of size 4', no luck yet
2291 2005-05-19  Lars Clausen  <lars@raeder.dk>
2293         * objects/UML/class.c: 
2294         * objects/UML/class.h: 
2295         * objects/UML/class_dialog.c: Work on getting a proper mainpoint
2296         for uml class object.  #ifdef'd out right now.
2298 2005-05-18  Lars Clausen  <lars@raeder.dk>
2300         * objects/standard/line.c: Make line adjust its actual endpoints
2301         for autogap -- looks and feels better.
2303         * objects/standard/arc.c: 
2304         * lib/geometry.h: 
2305         * app/modify_tool.c: Patch from Grégoire Dooms
2306         <dooms@info.ucl.ac.be>:  First stab at autogap for arcs, and
2307         shifted arc angle movement.
2309 2005-05-16  Hans Breuer  <hans@breuer.org>
2311         * lib/widget.c : variable declarations need to be at the start of a block,
2312         at least as we are not using C++ or C99
2314         * plug-ins/python/pydia-property.c : implment the read part for Property
2315         arrays - aka. umlclass.properties["operations"], umlclass.properties["attributes"]
2316         They are working quite well as can be seen with export-object.py
2318         * plug-ins/python/codegen.py : prove it once more with the generation of C++
2319         or Python code from an UML Diagram. Simply save as .py or .cxx ...
2320         * plug-ins/python/Makefile.am : install it
2322 2005-05-16  Lars Clausen  <lars@raeder.dk>
2324         * app/pixmaps/{un}group.png: 
2325         * app/Makefile.am (ICON_PNG_PAIRS): 
2326         * app/menus.c (display_menu_items): 
2327         New icons for grou/ungroup finally added, closing bug #105519.
2329         * app/Makefile.am: Dependencies for pixmaps.
2331         * app/pixmaps/connectable.png: An icon that actually makes sense
2332         for switching connectability.
2334 2005-05-15  Hans Breuer  <hans@breuer.org>
2336         * lib/group.c object/UML/classicon.c : fixed leftovers of
2337         'Adding connectionpoint to _move_handle
2339         * lib/widgets.c : gtk+ *NEVER* eats strings, so gtk_something(widget, g_strdup())
2340         is *ALWAYS* a memory leak. Plug some more.
2342         [
2343          In preparation to make UML operations/attributes/parameters setable by Python
2344          UML class became more StdProp conformant. A nice experience to be the first 
2345          to use the PROP_TYPE_DARRAY stuff about four years after it was written ;-)  
2346         ]
2347         * objects/UML/umlattribute.c objects/UML/umloperation.c 
2348           objects/UML/umlparameter.c objects/UML/umlformalparameter.c : (new files) 
2349         split from objects/UML/uml.c and made StdProp aware
2350         * objects/UML/class.c : finally make "attributes", "operations", "templates"
2351         <template parameters> first class StdProps citizens.
2352         (umlclass_load) : removed hand-written parsing for the above, it is all done
2353         by object_load_props() now. The old write code is still in place, so be very
2354         careful when changing something - at the moment load/save it is 100% compatible 
2355         as it needs to be.
2356         * objects/UML/uml.c : now just type registration here, as it is supposed to be
2357         * objects/UML/Makefile.am objects/makefile.msc : build the new files
2359         * lib/properties.h(PropDescCommonAreaExtra) : need a place to store the 
2360         in-record offsets
2361         * lib/prop_sdarray.c : made the DARRAY case work, SARRAY still untested
2362         (darray_prop_adjust_object_records) : don't loop forever
2363         (whole file) : use the new (working) way to get on the second level offsets.
2364         Also resolved some abbreviations, it is complicated enough without them ;)
2365         * lib/proplist.c : even complete list contents may be optional
2367 2005-05-15  Hans Breuer  <hans@breuer.org>
2369         * lib/bezier_conn.c(remove_handles) : don't try to remove 
2370         non-exisitng handles (patch from Radek Krahl, bug #302273)
2372 2005-05-15  Hans Breuer  <hans@breuer.org>
2374         * plug-ins/metapost/render_metapost.c : locale independent output
2375         (Radek Krahl, bug #301866)
2377 2005-05-12  Lars Clausen  <lars@raeder.dk>
2379         * shapes/Cisco/*.{shape,png}:
2380         * sheets/cisco*.sheet.in:
2381         Updated with color icons from Ian Redfern, closing bug #303889.
2382         Added automatic midpoints, not attempt at adjusting them.
2384 2005-05-11  Lars Clausen  <lars@raeder.dk>
2386         * many shapes:  Use mid of bounding box for midpoint, better than
2387         mid of connection points generally.
2389 2005-05-10  Lars Clausen  <lars@raeder.dk>
2391         * lib/widgets.c: Decided on one way for the ratio thing in arrow
2392         size selector:  Fixed ratio is on by default and keeps the sizes
2393         at the given ratio, but doesn't clamp them to be the same.  Fixes
2394         bug #302861.
2396         * lib/font.c: Fix for bug #303695: Allow more than one entry of
2397         each legacy name, thereby correctly encoding bold and italic of
2398         the three main fonts.  Also use | rather than || to combine slant
2399         and weight, so matching works.  Had to remove binary search for
2400         new font name, but the list is short enough it's not a problem.
2402 2005-05-09  Lars Clausen  <lars@raeder.dk>
2404         * lib/autoroute.c (autoroute_layout_orthconn): Remove debugging info.
2406 2005-05-08  Hans Breuer  <hans@breuer.org>
2408         * objects/UML/class.c : Reverted to have no center point.
2409         At first it looked as if there was only the bug to not increase
2410         class.h:UMLCLASS_CONNECTIONPOINTS. But the UMLClass has 
2411         potentially much more dynamic connection points (to the left
2412         and right of every attribute/operation). Now simply adding one
2413         between see static and dynamic will screw up any existing diagram
2414         which makes use of the dynamic connection points. The would all
2415         be connected with an off-by-one error. I have no idea how to
2416         code around that. But breaking backward compatibility is no 
2417         option here. Does not completely fix bug #303301 ...
2418         
2419         * lib/widget.c(dia_font_selector_set_font): actually set the options 
2420         menu state. So we are not any longer resetting the font style on Apply.
2421         Use "UML - Class" dialog as stress text example.
2423         * app/command.c : some people insist to close diagrams already
2424         closed using tear-off menus. Maybe we should add a dialog 
2425         "Do you want to call Dr. Watson now?". If there is no diagram
2426         to close anymore just do nothing, fixes bug #303221
2427         * app/display.c(ddisplay_close) : use g_return_if_fail(ddisp != NULL);
2428         Calling this with no display to close is a pathological case.
2430         * app/diagram.[hc] : moved object.h and other DiaObject stuff
2431         to the implementation in preparation of Big Things(tm)
2433         * app/interface.c : less warnings and make it compile. strncmp()
2434         does not take a char**, neither does gdk_pixbuf_new_from_inline().
2436         * objects/makefile.msc plug-ins/makefile.msc : less output
2438 2005-05-08  Lars Clausen  <lars@raeder.dk>
2440         * lib/orth_conn.c (orthconn_init): The right place to set the
2441         default autorouting value.  Fixes bug #303291.
2443         * app/display.c (ddisplay_close): Patch from Radek Krahl
2444         (ptasz3k@o2.pl):  Fix crash when using from detached menu
2445         (#303221)
2446         
2447 2005-05-07  Lars Clausen  <lars@raeder.dk>
2449         * lib/orth_conn.c (orthconn_load): Autorouting should default to
2450         off in diagrams that don't have it explicitly.  All diagrams
2451         should be explicit about it.
2453 2005-05-06  Hans Breuer  <hans@breuer.org>
2455         * app/samples/Self/*.dia : some UML diagrams describing Dia's
2456         inner working (or it's future;)
2458 2005-04-26  Lars Clausen  <lars@raeder.dk>
2460         * app/connectionpoint_ops.c (connectionpoint_draw): Temporary
2461         change to display of mainpoint to be easier to debug autogenerated
2462         ones. 
2464 2005-04-23  Hans Breuer  <hans@breuer.org>
2466         * plug-ins/python/diamodule.c plug-ins/python/pydia-object.h
2467           plug-ins/python/pydia-properties.h : use lib/ prefix for
2468         Dia internal headers with too common names (fixes bug #173061)
2470         * app/display.c : stop special casing the first display of
2471         a diagram. Every display now has it's own refernce. The initial
2472         reference gets dropped when there is no display anymore. See
2473         diagram_remove_ddisplay(). Fixes bug #300744.
2475         * app/diapsft2renderer.c : locale independent output
2476         (Radek Krahl, bug #300847)
2477         * app/paginate_psprint.c :  fixing use of setlocale() calls
2478         (Radek Krahl, bug #300886)
2479         * plug-ins/shape/shape-export.c : fixing use of setlocale() calls
2480         (Radek Krahl, bug #300889)
2482         * objects/UML/class.c : fix another crash with the line 
2483         wrapping code (Gabor Simon, bug #160865)
2485         * plug-ins/cairo/diacairo.c : image rendering had an endianess 
2486         issue (or is this working around a libpixman bug?;)
2488 2005-04-21  Lars Clausen  <lars@raeder.dk>
2490         * lib/polyshape.c (polyshape_update_data): Fixed numpoint off-by-one.
2492         * shapes/**/*.shape: All shapes now have midpoints.
2494 2005-04-20  Lars Clausen  <lars@raeder.dk>
2496         * lib/orth_conn.c (orthconn_update_data): Patch from ptasz3k@o2.pl
2497         (Radek Krahl): Make sure there's enough handles for the line.
2498         Fixes bug #173031.
2500         * objects/UML/node.c (node_draw): Better drawing method avoids
2501         garbage after moving.  Fixes bug #301032.
2503 2005-04-17  Hans Breuer  <hans@breuer.org>
2505         * plug-ins/cairo/diacairo.c : again adapt to Cairo API 
2506         changes (whould compile with current cvs and 0.(3|4).0
2508 2005-04-11  Lars Clausen  <lars@raeder.dk>
2510         * xmldocs.make (all): Fix to put installed docs in right place
2511         under disable-gnome.
2513         * doc/en/Makefile.am: Use xml_files var for xml files, EXTRA_DIST
2514         only for dia.dbk.
2516         * app/commands.c (help_manual_callback): Patch from p@kapcoweb.com
2517         (Leonardo Boshell): Use standard gnome help if called with Gnome.
2519         * app/diapsrenderer.c: Patch from ptasz3k@o2.pl (Radek Krahl): Fix
2520         locale issues for eps output.  Fixes bug #173135.
2522 2005-04-10  Hans Breuer  <hans@breuer.org>
2524         * plug-ins/cairo/diacairo.c : adapt to Cairo PNG API 
2525         changes (somewhat broken)
2526         
2527         * plug-ins/pstricks/render_pstricks.c : still C89 ...
2528         * objects/custom/shape_info.c : ... but with prototypes
2529         
2530 2005-04-07  Lars Clausen  <lars@raeder.dk>
2532         * lib/dia_xml.c: 
2533         * plug-ins/svg/render_svg.c: 
2534         * lib/diasvgrenderer.c: Patches from ptasz3k@o2.pl (Radek Krahl):
2535         Make decimal separators be correct in save file formats
2536         (non-localized).  Fixes bugs #172529 and 172531.
2538 2005-04-06  Lars Clausen  <lars@raeder.dk>
2540         * app/create_object.c (create_object_button_release): 
2541         * app/modify_tool.c (modify_button_release): Correct activations
2542         of text edits.
2544 2005-04-05  Simon KÃ¥gström  <ska@bth.se>
2546         * app/app_procs.c: the --show-layers option can now handle numeric
2547         ranges of layers.
2549 2005-04-05  Lars Clausen  <lars@raeder.dk>
2551         * lib/diagdkrenderer.c (draw_string): Patch from tomkast@yahoo.com
2552         (Tom Kast): Avoid blockiness caused by bad updates.
2554 2005-04-03  Lars Clausen  <lars@raeder.dk>
2556         * lib/polyshape.c: 
2557         * lib/beziershape.c: Main points.  A crude solution, having the
2558         center in the middle of the bb.  Shows a bug in the distance_from
2559         code for polyshape when a side is horizontal.
2561 2005-04-02  Lars Clausen  <lars@raeder.dk>
2563         * plug-ins/pstricks/render_pstricks.c: 
2564         * plug-ins/xfig/xfig-export.c: Patch from Radek
2565         Krahl <ptasz3k@o2.pl>: Fix decimal point problems. Fixes bugs 
2567 2005-04-02  Hans Breuer  <hans@breuer.org>
2569         * lib/dia_image.c(dia_image_filename) : return the path 
2570         again. (bug #172416, Radek Krahl)
2571         
2572 2005-04-01  Steve Murphy  <murf@e-tools.com>
2574         * configure.in: Added "rw" to ALL_LINGUAS.
2576 2005-03-31  Lars Clausen  <lars@raeder.dk>
2578         * lib/neworth_conn.c (neworthconn_update_data): Handle autogap.
2580         * lib/orth_conn.c (orthconn_update_data): Handle autogap while not
2581         autorouting.  
2583         * objects/network/basestation.c: Main points.
2585 2005-03-27  Hans Breuer  <hans@breuer.org>
2587         * app/Makefile.am : removed some pixmap/*.xpm from EXTRA_DIST
2588         * app/pixmaps.h : removed arrow.xpm
2589         * lib/Makefile.am : added diamarshal
2590         * plug-ins/python/Makefile.am : added makefile.msc to EXTRA_DIST
2591         => makes 'make dist' pass and produce a useable package
2593         * po/*.po : 'noise' profuced by make dist
2595 2005-03-24  Lars Clausen  <lars@raeder.dk>
2597         * objects/flowchart/parallelogram.c (pgram_update_data): 
2598         * objects/flowchart/ellipse.c (ellipse_update_data): 
2599         * objects/flowchart/diamond.c (diamond_update_data): 
2600         * objects/flowchart/box.c (box_update_data): Main points.
2602         * objects/custom/custom_object.c (custom_create): 
2603         * objects/custom/shape_info.h: 
2604         * shapes/Assorted/square.shape: 
2605         * objects/custom/shape_info.c (load_shape_info): 
2606         * doc/shape.dtd: Added main point support to shapes, and an
2607         example of how to use it.
2609 2005-03-21  Lars Clausen  <lars@raeder.dk>
2611         * lib/autoroute.c (autoroute_layout_orthconn): Remember to
2612         unnormalize from same point as you normalize, or else!
2614 2005-03-20  Lars Clausen  <lars@raeder.dk>
2616         * app/app_procs.c (do_convert): Patch from crux@gorodmasterov.com:
2617         Remember to ref g_object_new'd object.
2619 2005-03-19  Hans Breuer  <hans@breuer.org>
2621         * plug-ins/xslt/xslt.c : don't crash if both places ($SHARE, $HOME)
2622         have configurations, fixes bug #170962
2624         * objects/UML/state.c : ("UML - State")::type is PROP_FLAG_OPTIONAL,
2625         or better not used any longer. Fixes bug #169142.
2627         * lib/element.c(element_update_connections_rectangle): don't initialize 
2628         the eighth point twice but instead the nineth once
2630         * objects/standard/bezier.c : no C++ comments *please*
2632         * lib/plug-ins.h : increment DIA_PLUGIN_API_VERSION
2634         * lib/dia_image.[ch] : dia_image_filename() returns a string not to be freed ...
2635         * plug-ins/python/pydia-image.c : ... so, don't do it!
2637         * lib/dia_svg.c : refactor color parsing and support the "rgb(127,255,0)" form,
2638         also named colors via pango_color_parse()
2640         * lib/prop_text.c : don't try to g_strdelimit(NULL), fixes bug #169367
2642         * lib/libdia.def : updated externals
2644         * app/object_ops.c : still not C99 everywhere
2646 2005-03-19  Hans Breuer  <hans@breuer.org>
2648         * lib/autoroute.c : at least it should compile ;)
2649         
2650 2005-03-19  Lars Clausen  <lars@raeder.dk>
2652         * lib/autoroute.c: Orthconns now do autogap.
2654 2005-03-17  Lars Clausen  <lars@raeder.dk>
2656         * app/authors.h: Added Gregoire Dooms for gap stuff.
2658         * objects/standard/polyline.c: Patch from Grégoire Dooms
2659         <dooms@info.ucl.ac.be>: Autogap and absolute gap for polyline.
2660         
2661         * objects/standard/bezier.c: Patch from Grégoire Dooms
2662         <dooms@info.ucl.ac.be>: Fixes two bugs.  Also autogap no longer a
2663         property. 
2664         
2666         * objects/UML/state_term.c: 
2667         * objects/UML/large_package.c: 
2668         * objects/UML/node.c: 
2669         * objects/UML/object.c: 
2670         * objects/UML/small_package.c: 
2671         * objects/UML/state.c: 
2672         * objects/UML/usecase.c: 
2673         * objects/UML/note.c: 
2674         * objects/UML/actor.c: 
2675         * objects/UML/classicon.c: 
2676         * objects/UML/component.c: 
2677         * objects/Misc/analog_clock.c: 
2678         * objects/Jackson/requirement.c: 
2679         * objects/Istar/goal.c: 
2680         * objects/Istar/actor.c: 
2681         * objects/FS/function.c: 
2682         * object/standard/box.c:
2683         * objects/ER/entity.c: 
2684         * objects/ER/relationship.c: 
2685         * objects/ER/attribute.c: Main points added.   Distance_from fixed
2686         in attribute, broken in relationship, I* goal, Jackson
2687         requirement, analog_clock, all non-rectangular UML elements, 
2689         * lib/libdia.def: 
2690         * lib/element.[ch]: New method to help update connection points.
2692         * app/menus.c: Change Help/Manual to Help/Contents to follow
2693         standard.
2694         
2695         * objects/standard/line.c:
2696         * lib/geometry.[ch]: 
2697         * objects/standard/bezier.c: Patch from Grégoire Dooms
2698         <dooms@info.ucl.ac.be>: Add absolute gap and autogap for line and
2699         bezier objects.   Autogap nowchanged to be a function of the
2700         connpoints.
2702         * lib/libdia.def: 
2703         * lib/connectionpoint.[ch]: New function to ask if a connpoint has the
2704         autogap flag.
2706         * app/connectionpoint_ops.c (connectionpoint_draw): Don't draw
2707         CP_FLAG_ANYPLACE connpoints.
2709 2005-03-16  Lars Clausen  <lars@raeder.dk>
2711         * app/interface.c (create_tools): Removed debug printf.
2713 2005-03-15  Lars Clausen  <lars@raeder.dk>
2715         * lib/widgets.[ch]: Constification.
2717         * app/interface.c: Work on using gdk-pixbuf-csource'd data, not
2718         working yet.
2720         * objects/standard/ellipse.c: Use CP_FLAG_MAIN for central CP.
2722         * lib/connectionpoint.h: Flags for connection points.
2724         * app/create_object.c (create_object_motion): 
2725         * app/modify_tool.c (modify_motion): Minor refactoring.
2727         * app/object_ops.c (object_find_connectpoint_display): Extend with
2728         finding connpoints that cover entire objects.
2730         * app/layer_dialog.c (dia_layer_widget_init): Get rid of warnings.
2732         * objects/custom/custom_object.c (custom_setup_properties): Avoid
2733         uninitialized use.
2735 2005-03-13  Hans Breuer  <hans@breuer.org>
2737         * plug-ins/svg/svg-import.c : handle the <circle/> tag as well
2739 2005-03-13  Hans Breuer  <hans@breuer.org>
2741         * lib/dia_svg.[hc] objects/custom/shape_info.[hc] plug-ins/svg/svg-import.c :
2742         s/DiaSvgGraphicStyle/DiaSvgStyle/, added and use convenience functions 
2743         dia_svg_style_copy(), dia_svg_style_init()
2745         * objects/custom/shape_info.c : use dia_svg_parse_path() from lib/ (it got
2746         moved out of this)
2748         * lib/dia_svg.c(dia_svg_parse_path) : also handle style properties which are
2749         not wrapped in the style attribute
2751         * plug-ins/svg/svg-import.c : implement nested group handling and style
2752         'style inheritance'. Still no transformations, no <image/>, no <style/> 
2753         <defs/>...
2755         * plug-ins/svg/svg-import.c(import_svg) : use message_warning instead of g_warning,
2756         the latter is for programmers.
2757         Also be more tolerant if the document root namespace is not 'svg'. If the svg 
2758         namespace is defined in the file search for the top node including svg. This
2759         allows us to re-read the svg part of our own shape format.
2761         * lib/libdia.def : there is no give_focus_to_object
2762         * app/textedit.c : still no C99,  aka. error C2275: 'Focus' : illegal use of this 
2763         type as an expression
2765         * lib/geometry. c : use G_IMPLEMENT_INLINES
2766         * lib/libdia.def : export point_get_perp (used by xfig plug-in)
2768         * app/textedit.c(textedit_end_edit) : don't crash if the display is already
2769         gone when trying to remove the focus
2771         * plug-ins/cairo/diacairo.c : CAIRO_HAS_WIN32_SURFACE does not any longer mean
2772         it has *my* Cairo Win32 Backend. [The official one isn't useful for the use
2773         case of this plug-in, i.e. producing output files]
2775 2005-03-13  Lars Clausen  <lars@raeder.dk>
2777         * lib/Makefile.am (BUILT_SOURCES): 
2778         * app/Makefile.am (BUILT_SOURCES): Use the Right Way[tm] to force
2779         the building of the icons header files.
2780         * app/dia-lib-icons.h: Out of CVS now that it's correctly generated.
2782 2005-03-13  Hans Breuer  <hans@breuer.org>
2784         * configure.in : require Cairo 0.3.0
2785           plug-ins/cairo/diacairo.c : changed to match ;-)
2787         * app/app_procs.c() : new function dump_dependencies()
2788         which gets called by: dia --version --verbose
2789         and may help to track version dependent problems in
2790         our dependencies
2792         * lib/font.c : reverted to previous version cause using
2793         not implemented Pango API did not improve the issue.
2794         See: http://bugzilla.gnome.org/show_bug.cgi?id=162034
2795         for more information.
2797         * lib/dialinechooser.c : a little shrinking of the 
2798         initial size (to work around line wrappjing the right 
2799         arrow control)
2801 2005-03-11  Lars Clausen  <lars@raeder.dk>
2803         * app/textedit.c: Concentrate start/end editing in single functions.
2805 2005-03-10  Lars Clausen  <lars@raeder.dk>
2807         * lib/text.h: 
2808         * lib/object.h: Added new object function to allow the object to
2809         be notified when its text is being edited.
2811         * lib/libdia.def: 
2812         * app/modify_tool.c: 
2813         * app/commands.c: 
2814         * app/textedit.c: 
2815         * lib/focus.c: Remove sideeffects from focus objects, add getter
2816         for focus->obj.
2818 2005-03-09  Lars Clausen  <lars@raeder.dk>
2820         * lib/Makefile.am (dia-lib-icons.h): 
2821         * app/Makefile.am: Minor cleanup.
2823 2005-03-06  Hans Breuer  <hans@breuer.org>
2825         * app/app_procs.c : avoid "assignment within conditional expression"
2826         and handle -L for the GOption case as well.
2828         * lib/widget.c : strchr() does not return -1 on not found but NULL;
2829         avoids widgets.c(307) : error C4047: '!=' : 'char *' differs in levels of 
2830         indirection from 'const int '
2832         * lib/diasvgenderer.c(draw_arc|fill_arc) : finally correct sweep and 
2833         large_arc, thus produce correct arc output (like diasvg.py does;),
2834         fixes bug #144401
2836         * lib/dia_svg.[hc](dia_svg_parse_path) : new function copied and adapted 
2837         from objects/custom/shape_info.c to be shared with object/custom and
2838         plug-in/svg -> finally the C based svg-import reads pathes again.
2839         Added arc parsing while I was there, which fixes bug #169191
2840         * objects/custom/shape_info.c(parse_path) : 
2841         * plug-ins/svg/svg-import : reuse above function
2842         Also fix the "root element was 'svg' -- expecting 'svg'" bug #108502.
2843         But in general this does only support a small subset of what is 
2844         possible in SVG.
2846 2005-03-06  Lars Clausen  <lars@raeder.dk>
2848         * objects/UML/association.c: Patch from Dave Klotzbach applied:
2849         Add visibility to association arrow.  Fixes bug #157012.
2851         * app/grid.c: Patch from Lawrence Withers fixes grid messiness,
2852         closing bug #161040.
2854         * app/layer_dialog.c (create_button_box): Use stock icons instead
2855         of homemade onces.  Gets us rid of four more XPMs.
2857 2005-03-05  Sampo Kellomaki <sampo@iki.fi>
2859         * app/app_procs.c: Implemented --show-layers=LAYER,LAYER,... option
2860         This option permits command line control of which layers are visible.
2861         Useful when automatically exporting multiple versions of the same
2862         diagram, e.g. slides with overlays. Added-n switch parsing without POPT.
2863       * app/app_procs.h: moved prototype of do_convert() to app/app_procs.c
2864         and made it static since its only used in that file.
2865         * app/authors.h: added myself
2866         * doc/en/dia.1: documented the switch
2867         * doc/en/usage-layers.xml: ditto
2868         
2869 2005-03-05  Alan Horkan <horkana@tcd.ie>
2871         * app/interface.c Change Horizontal scroll policy to NEVER for sheets
2872         this restores how Dia behaved before the GTK2 port and seems to help 
2873         allow the toolbox to be more easily resized.  Bug #108891.
2875 2005-03-05  Lars Clausen  <lars@raeder.dk>
2877         * Civil/civil_motor.shape:
2878         * Civil/civil_rotor.shape:
2879         * Logic/and.shape:
2880         * Logic/buffer.shape:
2881         * Logic/connector.shape:
2882         * Logic/inverter.shape:
2883         * Logic/nand.shape:
2884         * Logic/nor.shape:
2885         * Logic/not.shape:
2886         * Logic/or.shape:
2887         * Logic/xor.shape:
2888         * shapes/Assorted/arrow-left-up.shape: 
2889         * shapes/Assorted/heptagon.shape: 
2890         * shapes/Assorted/star5.shape: 
2891         * shapes/Assorted/trapezoid.shape: 
2892         * shapes/Assorted/triangle-rightangle.shape: Fixed bad use of
2893         defaults, see bug #169143.
2895         * sheets/Assorted.sheet.in: Fixed typo patch applied, bug #169114.
2897         * configure.in: 
2898         * doc/en/Makefile.am: Finally figured out the right way to ask for
2899         the manpage xslt.  Closes bug #144539.
2901 2005-03-01  Lars Clausen  <lars@raeder.dk>
2903         * lib/Makefile.am (nodist_include_HEADERS): 
2904         * app/Makefile.am: Correctly generate these files from PNGs with
2905         automake.
2907         * lib/widgets.h: 
2908         * lib/libdia.def:
2909         * lib/widgets.c: Refactor toggle button factory to allow inline
2910         data.
2912         * lib/pixmaps/Makefile.am: Unify lib pixmaps.
2914         * app/makefile.msc (ICON_PNG_PAIRS): 
2915         * app/dia-app-icons.h: Updated with more icons.
2917         * lib/Makefile.am: 
2918         * app/Makefile.am: Use gdk_pixbuf_csource to create inline data
2919         from pngs.
2921         * app/interface.c (create_display_shell): 
2922         * app/layer_dialog.c (dia_layer_widget_init): 
2923         * lib/dia_image.c (dia_image_get_broken): Use inlined data
2924         generated from png.
2926         * app/display.c (ddisplay_close): Removed unused includes.
2928 2005-03-01  Lars Clausen  <lars@raeder.dk>
2930         * app/sheets.c (create_object_pixmap): Create a placeholder image
2931         for when the real image is missing.  Better than crashing:)
2932         Closes bug #166786.
2934 2005-02-25  Hans Breuer  <hans@breuer.org>
2936         * app/app_procs.c : don't requets to open a default display with
2937         g_option_context_add_group (crux@gorodmasterov.com, bug #168523)
2939 2005-02-22  Lars Clausen  <lars@raeder.dk>
2941         * plug-ins/gprint/diagnomeprint.c (export_data): GNOME, not Gome.
2942         Fixes bug #168125.
2944 2005-02-19  Lars Clausen  <lars@raeder.dk>
2946         * app/menus.c (display_menu_items): Applied patch from bug #94019:
2947         Menu cleanup and addition of icons.  Also a few additional stock
2948         icons. 
2950         * app/layer_dialog.c (create_layer_dialog): Bug #159598: Clean up
2951         the layers dialog.
2953 2005-02-14  Lars Clausen  <lars@raeder.dk>
2955         * INSTALL (ftp): Fixed Pango release typo (bug #153007)
2957 2005-02-13  Lars Clausen  <lars@raeder.dk>
2959         * lib/font.c: First stab at using Gtk 2.4 functions for fixing
2960         width.  Seems to work.  Once tested some more, needs old code
2961         removed. 
2963         * lib/widgets.c (dia_font_selector_create_string_item): Avoid
2964         warning by escaping & properly.
2966 2005-02-06  Lars Clausen  <lars@raeder.dk>
2968         * app/filedlg.c (file_export_callback): Set correct extension as
2969         soon every time the dialog is shown.  Fixes bug #162535.
2971         * app/display.c (ddisplay_set_origo): Use more standard
2972         transformations.
2974         * app/modify_tool.c (modify_motion): 
2975         * app/create_object.c (create_object_motion): Put coordinates of
2976         handle/object in status bar while moving. Fixes bug #163164.
2978 2005-02-03  Lars Clausen  <lars@raeder.dk>
2980         * lib/.cvsignore: Added generated files diamarshal.[ch]
2982 2005-02-02  Lars Clausen  <lars@raeder.dk>
2984         * configure.in: Add GLIB_GENMARSHAL def as suggested in
2985         http://ignore-your.tv/software/libgtcpsocket/docs/client-subclassing.html.
2986         Now compiles on Linux.
2988 2005-02-01  Lars Clausen  <lars@raeder.dk>
2990         * app/sheets.c (sheet_object_mod_get_type_string): We don't really
2991         need to translate the empty string.  Especially not after
2992         g_assert_not_reached().  Fixes bug #165966.
2994 2005-01-07  Tim Olsen  <tolsen@alum.mit.edu>
2996         * objects/UML/activity.c : add fill- and line-colour properties
2997         [applied by Hans Breuer, fixes bug #163260]
2999 2004-01-28  Hans Breuer  <hans@breuer.org>
3001         * doc/en/*.xml doc/en/dia.dbk app/authors.h : documentation
3002         update provided by Alan Horkan (fixes bug #159592)
3004 2004-01-28  Hans Breuer  <hans@breuer.org>
3006         [Extented version for UML to C++ conversion by Dave Klotzbach, bug #155255]
3007         * plug-ins/xslt/dia-uml2cpp.xsl : (new file) ... handles associataions,
3008         generalization, dependancies, parameterized classes ...
3009         * plug-ins/xslt/styleshetts.xml : refernce it
3010         * plug-ins/xslt/dia-uml.xsl : handle more UML types uesd above
3012 2004-01-28  Hans Breuer  <hans@breuer.org>
3014         * objects/UML/transition.c : fill out the extra_spacing struct 
3015         in the OrtConn member, in order to avoid artifacts when draggin 
3016         the transition. (patch by Peter Allin, bug #144956)
3018 2004-01-15  Hans Breuer  <hans@breuer.org>
3020         * plug-ins/cairo/diacairo.c : initialized the renderers default dash_length
3021         to something differnt than 0. Apparently there are case where Dia misses
3022         to appropriately set it before requesting a dashed line (simple line with
3023         arrow as described in bug #151716)
3025         * lib/dia_dirs.c : special casing for drive letters which I broke with
3026         the previous change
3028 2005-01-13  Hans Breuer  <hans@breuer.org>
3030         * app/interface.c(create_sheet_page) : remved dead long time code
3032         * lib/propdialogs.c : removed pdtpp_is_visible_no_standard() prototype,
3033         it is availbale via header - which is the better style anyway
3035 2004-12-31  Hans Breuer  <hans@breuer.org>
3037         * lib/dia_dirs.c(dia_get_canonical_path) : complete
3038         rewrite to handle something like /mnt/some/where/../else
3039         too. Workaround for bug #162637.
3040         * app/filedlg.c : call gtk_file_chooser_set_current_name()
3041         to workaround gtk_file_chooser_set_filename() not setting
3042         it if the file does not exist
3044         * sheets/Jackson.sheet.in app/menus.c : fixed typos
3045         (Frank Arnold, bug #161676)
3047 2004-12-31  Steffen Macke <sdteffen@gmail.com>
3049         * doc/pl/*.xml: Added XML prolog
3050         * makefile.msc: Added libxslt, fixed libxml, libart
3052 2004-10-29  Alexander Shopov  <ash@contact.bg>
3054         * configure.in (ALL_LINGUAS): Added "bg" (Bulgarian)
3056 2004-12-29  Lars Clausen  <lars@raeder.dk>
3058         * configure.in: Make gnomeprint be truly off by default (typo) and
3059         show optional compilation correctly.
3060         * plug-ins/gprint/Makefile.am: Exclude gnomeprint if not optioned in.
3062 2004-12-22  Hans Breuer  <hans@breuer.org>
3064         * lib/widgets.c : destroy handlers can be called more than once, 
3065         see http://developer.gnome.org/doc/API/2.0/gtk/gtk-changes-2-0.html
3067         * app/app_procs.c : #ifdef GLIB(2.6.0) but GTK(2.4.x)
3068         
3069         * app/display.c : temporary debug code showing the
3070         timing the rendering
3072         * app/dialibartrenderer.c(draw_string) : removed dead
3073         code loading and leaking font and face
3075 2004-12-15  Hans Breuer  <hans@breuer.org>
3077         * app/display.c : actually use the selction-changed signal for something
3078         useful. Show selections representation on statusbar.
3079         * lib/object.h lib/prop_text.c lib/libdia.def : provide objet_get_displayname() 
3080         * app/diagram_tree.c : use new function (as in app/display.c) and only
3081         poke into property internals at one place
3082         * app/diagram.c : use g_signal_handlers_block_by_func to avoid has-no-handler-
3083         complains
3085 2004-12-12  Hans Breuer  <hans@breuer.org>
3087         * lib/libdia.def app/dia.def : updated externals
3089         * objects/custom/custom_object.c : custom_destroy is called per object. 
3090         It _must not_ destroy class stuff (ShapeInfo) cause it does not hold a 
3091         reference to it. Fixes e.g. bug #158288, #160550, ...
3093         * objects/UML/association.c(association_draw) : completed porting to
3094         draw_polyline_with_arrows()
3095         (association_update_data_end) : fixed typo in point compare
3096         (association_update_data) : for name placement take degenerated 
3097         segements into account. Together this fixes bug #143891
3099 2004-12-11  Hans Breuer  <hans@breuer.org>
3101         * lib/widgets.c(set_size_sensitivity) : revert inverted
3102         logic for arrorw size selections, fixes bug #160527
3104 2004-12-11  Hans Breuer  <hans@breuer.org>
3106         * lib/widgets.c(dia_font_selector_set_font) : initialize
3107         the font style widget, too. Gets rid of empty font
3108         style and thus default broken font style, e.g. UML::class_name
3110         * lib/widgets.c(dia_color_selector_more_callback) : fill
3111         the color palette from dynamic menu entries and also
3112         preselect the current color to the last select entry
3113         
3114         * plug-ins/python/pydia-diagramdata.c : hold a reference
3115         to the underlying GObject
3116         
3117         * app/Makefile.am app/diagrid.h : new file containing the 
3118         grid 'class' moved from DiagramData to Diagram. 
3119         Also moved pagebreak_color and guides cause they are only 
3120         used for visual appearance not 'data'.
3121         * lib/diagramdata.[ch] app/diagram.h app/dia-props.c app/grid.c
3122           app/load_save.c plug-ins/python/pydia-diagramdata.c : reflect 
3123         the above change
3125         * lib/diagramdata.[ch] app/app_procs.c app/diagram.c 
3126           lib/libdia.def : get rid of new_diagram_data() 
3127         Diagram _is_ DiagramData (and does not have one any longer,
3128         just a compatibility pointer)
3129         
3130         * lib/diarenderer.h : a small doc improvement
3132 2004-12-11  Hans Breuer  <hans@breuer.org>
3134         * objects/UML/class.c : line wrapping code buffer
3135         overrun fixed by Gabor Simon, bug #160865
3137 2004-12-11  Hans Breuer  <hans@breuer.org>
3139         * plug-ins/python/pydia-diagram.c : hold a reference
3140         to the diagram in PyDiaDiagram, avoids bug #159080
3141         [another way to avoid is to detroy the dialog by
3142         clsoing it. But now there is still a diagram to
3143         apply the changes to, even if it's thrwon away just
3144         afterwards]
3146 2004-12-10  Hans Breuer  <hans@breuer.org>
3148         * **/*.c : fixed a bunch of warnings, not only for -ansi
3149         (still too many of them, but -ansi works)
3150         lib/
3151         prop_geomtypes.h prop_geomtypes.c:306: warning: static 
3152         declaration for `fontsizeprop_reset_widget' follows non-static
3153         dia_dirs.c:196: warning: return discards qualifiers from 
3154         pointer target type
3156         objects/custom/
3157         shape_info.c:121: warning: static declaration for `parse_path' 
3158         follows non-static
3160         objects/SADT/
3161         arrow.c:228: warning: `draw_arrowhead' declared `static' but never defined
3162         arrow.c:244: warning: unused variable `i'
3163         arrow.c:245: warning: unused variable `p'
3164         arrow.c:246: warning: unused variable `zzr'
3165         
3166         object/Istar/*.c object/Jackson/*.c  object/KAOS/*.c : 
3167         finally removed c++ comments
3168         
3169         objects/Istar/goal.c : initialize connections::directions
3170         while I was there - helps autorouting
3172         * objects/KAOS/metaandorrel.c objects/Istar/link.c 
3173           objects/KAOS/metabinrel.c : removed struct _DiaImage hack
3174         (it would be quite simple to add image-from-memory support
3175         to lib/ if needed)
3177         * pydia-*.h : warning: no newline at end of file
3178         
3179         * plug-ins/gprint/diagnomeprint.c : allow to unregister
3180         and follow new unique name naming convention
3181         * plug-ins/gprint/diagnomeprintrenderer.c : no c++ comments
3182         here either
3184 2004-12-07  Hans Breuer  <hans@breuer.org>
3186         * objects/UML/message.c : better default for initial text placement
3187         a suggested in bug #154306, Henning Mersch
3188         * objects/UML/constraint.c : doing the same
3190         * app/filedlg.c : include persistence.h for persistence_get_integer
3191         * lib/libdia.def export it
3193 2004-12-05  Hans Breuer  <hans@breuer.org>
3195         * app/grid.c : respect dynamic grid during snap-to, fixes 
3196         bug #135124, Dmitriy Morozov. Added some additional magic
3197         to make the grid size more useable.
3199 2004-12-05  Hans Breuer  <hans@breuer.org>
3201         * app/app_procs.c : make it compile for the HAVE_POPT and
3202         G_LIB_CHECK_VERSION(2,5,5) case, minor formating
3203         
3204         * lib/plug-ins.c : don't pass non exiting files to xmlDiaParseFile()
3205         * app/app_procs.c : only dia_pluginrc_write() and create_user_dirs()
3206         when interactive. Fixes bug #119329
3207           
3208         * plug-ins/cairo/diacairo.c : adapt to new type naming
3209         scheme (introduced by accident;-) for pixbuf-*
3210         * app/app_procs.c : reflect both type name changes
3212 2004-12-04  Hans Breuer  <hans@breuer.org>
3214         * objects/standard/image.c : fix the correct warning
3215         `image_file_name' might be used uninitialized
3216         
3217         * app/filedlg.c : near complete rewrite
3218         - removed 'related dialog', GtkOptionMenu, most global vars,
3219         also don't hide the dialog but let it go.
3220         - added: filter view by extension, hopefully working diagram
3221         referencing, GtkComboBox usage
3222         
3223         * plug-in/pixbuf/pixbuf.c : switched to dynamic generation
3224         of im/export filter entries. So the user interface reflects
3225         the dynamic nature of pixbuf loaders
3227         * lib/filter.[ch] : implement filter_unregister_*port
3228           lib/libdia.def : added new functions
3229           plug-ins/cgm/cgm.c plug-ins/dxf/dxf.c
3230           plug-ins/hpgl/hpgl.c plug-ins/metapost/metapost.c
3231           plug-ins/pstricks/pstricks.c plug-ins/svg/svg.c
3232           plug-ins/wpg/wpg.c plug-ins/xfig/xfig.c
3233           plug-ins/cairo/cairo.c plug-ins/pixbuf/pixbuf.c :
3234         use them in _plugin_unload () thus all these plug-ins
3235         can be loaded used and unloaded during Dia's runtime
3237 2004-12-04  Lars Clausen  <lars@raeder.dk>
3239         * lib/diagramdata.h: Access methods for units defined per diagram.
3241         * lib/font.c (dia_font_new_from_style): More proper object creation.
3243         * lib/properties.h: Refactored the PROP_STD_* macros to allow
3244         different options.
3246         * app/diagram.c (diagram_init): Force filename to be absolute
3247         path, easing the job for load/save.
3249 2004-12-03  Hans Breuer  <hans@breuer.org>
3251         * lib/libdia.def : removed dia_marshal_*, they are implemented as macros.
3252         added dia_font_set_height, dia_font_copy (note to self: don't try to
3253         maintain these from the *NIX side ;)
3255         * lib/widgets.h : removed DiaColorSelector::col, it is not maintained by
3256         the new color selection anymore
3257         * objects/UML/class_dialog.c : with the above change it would have been more 
3258         easy to fix the color loss bug #156996 which had nothing to do with 'a pointer
3259         problem' but only was an unfinished usage of dia_color_slector(get|set)_color
3261         *  objects/UML/class_dialog.c  objects/UML/class.[ch] : uml_apply_properties
3262         (used in object vtable) and make its prototype match
3264         * lib/widgets.c : made all the GtkTypeInfo 'static const'. I can't directly
3265         correlate any of these strange crashing bug with it, but assume bad things to 
3266         happen when one passes stack allocated stuff to gtk_type_unique()
3268         * lib/widgets.c(dia_font_selector_get_font) : don't access menuitem if it is
3269         not there. Fixes most of the warnings from bug #156996
3271         * lib/makefile.msc : rules to generate diamarshal.[ch]
3273 2004-11-29  Hans Breuer  <hans@breuer.org>
3275         * app/disp_callbacks.c : reenable so-called preedit
3276         as described in bug #158859, Etsushi Kato
3277         Also fixed some compiler warnings while there.
3278         
3279         * objects/standard/image.c(get_directory) : make
3280         the documentation match the implementation.
3281         (image_save) : don't write a leading slash on 
3282         relative filenames 
3284         * plug-ins/gprint/diagnomeprintrenderer.c :
3285         switched to gnome-print-pango usage
3286         
3287         * app/app_procs.c configure.in : although Dia
3288         is not threaded it appears as if we have to
3289         g_thread_init() to avoid crashing in some
3290         libraries which are thread enabled
3292         * lib/diamarshal.list lib/Makefile.am : start of
3293         using GSignal to clean up some object relations
3294         * lib/libdia.def : export marshallers
3295         * app/diagram.[ch] : emit signals when REMOVED,
3296         SELECTION_CHANGED
3297         * app/display.c : added a connection to 
3298         SELECTION_CHANGED to test the new signal stuff
3299         
3300         * app/diagram.c : fixed diagram_finalize while I
3301         was there.
3303 2004-11-28  Hans Breuer  <hans@breuer.org>
3305         * plug-ins/wmf/wmf.cpp(draw_string) : write the widechar version of 
3306         the text if conversion to current locale fails. [This is actually
3307         using code written four years ago;]
3308         * plug-ins/wmf/wmf_gdi.(h|cpp) : added TextOutW (no real implemantation)
3310         * objects/standard/image.c(image_load) : be more robust against 
3311         filenames which seem to be absolute
3313 2004-11-27  Hans Breuer  <hans@breuer.org>
3315         * app/filedlg.c(file_save_callback) : convert to
3316         filename encoding before passing to diagram_save()
3317         Fixes bug #158381, thanks to Robert Ã–gren
3319 2004-11-27  Hans Breuer  <hans@breuer.org>
3321         * lib/dialibartrenderer.c : sometimes its good to read
3322         compiler warnings. Not only define renderer_finalize
3323         but actually *use* it. Should plug a potential huge
3324         memory leak.
3326         * configure.in plug-ins/Makefile.am 
3327           plug-ins/gprint/Makefile.am : build the experimental
3328         gnomeprint plug-in on *NIX, too.
3329         * plug-ins/gprint/diagnomeprint.c : don't include
3330         specific (private) backend headers but instead select
3331         the desired backend via config key setting
3333         * lib/diagdkrenderer.c : add 1 to size of filled arc 
3334         to be rendered by gdk. Fixes bug #150896.
3336         * plug-ins/gprint/diagnomeprint.c 
3337           plug-ins/gprint/diagnomeprintrenderer.c : added magic
3338         to better match page and dash sizes
3340 2004-11-27  Hans Breuer  <hans@breuer.org>
3342         * plug-ins/shape/shape-export.c : it's g_strdup_printf
3344 2004-11-27  Hans Breuer  <hans@breuer.org>
3346         * app/app_procs.c : mention eps-builtin aka. "using
3347         latin1", does not fix the eps-pango issues but #150571
3349 2004-11-27  Hans Breuer  <hans@breuer.org>
3351         * sheets/Cybernetics.sheet.in : changed encoding to 
3352         utf-8, patch from Takeshi AIHANA, fixes #149580
3354 2004-11-27  Hans Breuer  <hans@breuer.org>
3356         * objects/custom/custom_object.c : many existing shapes
3357         rely on a square default size, revert to it although
3358         it originally was by a typo. Fixes bug #148527.
3360 2004-11-27  Hans Breuer  <hans@breuer.org>
3362         * app/load_save.c(dia_cleanup_autosave) 
3363           app/diagram.c : don't use dia->filename if already 
3364         freed and dont use printf at all.
3366         * app/paginate_psprint.c : not only set the renderer::paper
3367         but also renderer::is_portrait. Should fix bug #142524
3369 2004-11-26  Hans Breuer  <hans@breuer.org>
3371         * dia.desktop.in : added Bug Buddy headers (as seen
3372         in planner). Hopefully the automatically filling of
3373         bugs is more meaningful by this.
3374         
3375         * objects/custom/custom_util.c objects/standard/image.c
3376           lib/plug-ins.c : getting rid of deprecated g_dirname,
3377         fixes some more memory bugs : AddrAddress 0x3586C010 is 24 
3378         bytes inside a block of size 44 free'd
3379         
3380         * lib/persistence.c(persistence_load_list) : don't
3381         leak string
3382         
3383         * lib/diaerror.[ch] : (new file) start of better error handling
3384         * lib/Makefile.am lib/makefile.msc lib/libdia.def: 
3385         added new files/funcs
3386         * lib/proplist.c lib/propinternals.h (prop_list_load) : 
3387         allow to propagate error to caller. Also set PXP_NOTSET
3388         to avoid applying unset properties, fixes bug #155255
3389         * lib/propobject.c lib/prop_sdarray.c : still spewing
3390         g_warnings but now with context information
3391         
3392         * app/filedlg.c : more absolute filenames where required
3393         and strip them where we need the filename only
3394         Also explicit DONT choose gnome-vfs backend cause its
3395         threading appears to crash Dia - at least in GNOME build,
3396         see bug #159558
3398 2004-11-26  Hans Breuer  <hans@breuer.org>
3400         * app/filedlg.c : don't use relative filenames for
3401         gtk_file_chooser_set_filename(), GtkFileChooserDialog is very
3402         pedantic about it.
3403         (export_set_extension) : if we don't have a filename don't
3404         use it in strrchr() to avoid crashing
3405         
3406 2004-11-23  Hans Breuer  <hans@breuer.org>
3408         * app/app_procs.c : fixed build for the GNOME case
3409         (let's rip out POPT and depend on glib-2.6, please ;-)
3411 2004-11-23  Hans Breuer  <hans@breuer.org>
3413         * app/app_procs.c : fixed typo which broke the
3414         build for HAVE_POPT case
3415         
3416 2004-11-21  Hans Breuer  <hans@breuer.org>
3418         * app/app_procs.c : some more #if-mess, but one day
3419         we should rely on GLib's 2.6 Option Parser alone
3420         
3421         * plug-ins/wmf/wmf.cpp : use SC() when scaling width
3422         and height for RoundRect() - otherwise size depends on offset,
3423         shorten the unique name
3424         
3425         * plug-ins/python/diamodule.c : provide a unique name
3426         for python filters as well
3428         * lib/dialibartrenderer.c : fix the drawing of Gdk based text
3429         by using the right colors (need black background cause we
3430         are tinitng it with the real color later)
3432         * lib/dia_dirs.c(dia_get_canonical_path) : use G_DIR_SEPARATOR_S
3433         instead of hardcoded slahes, improved portability 
3435         * app/paginate_gdiprint.cpp : use the right filter name to find wmf
3436         plug-in. Also added some more error reporting (e.g. no printer driver)
3438         * plug-ins/gprint/diagnomeprintrenderer.[hc] plug-ins/gprint/diagnomeprint.c
3439           plug-ins/makefile.msc : resurrection of the gnome print renderer. 
3440         Kinda works (alpha quality) for export but does not print yet. 
3441         With bug #158972 resolved this does even work on win32 :-)
3443 2004-11-07  Hans Breuer  <hans@breuer.org>
3445         * doc/diagram.dtd : <composite> can have <composite/>,
3446         <font/> has two 'optional' atributes 'style' and 'family',
3447         these are used to store new (since 0.91) font info.
3448         With this changes non of the issues in bug #147431 remains.
3450         * plug-ins/python/otypes.py : starting to implement an
3451         'create all known object' file as ne stress test source
3452         for the dtd and Dia in general.
3454 2004-11-06  Hans Breuer  <hans@breuer.org>
3456         * app/diapsrenderer.c : don't convert to locale but to 
3457         "LATIN1", fixes bug #146641
3459 2004-11-06  Hans Breuer  <hans@breuer.org>
3461         * app/diagram_tree.c : still no C99 everwhere ...
3462         * lib/libdia.def : update externals
3463         * plug-ins/pstricks/render_pstricks.c : #include <locale.h>
3465         * app/app_procs.[hc] : declare, use ...
3466            app/winmain.c : ... and implement dia_redirect_console().
3467         Even though newer Gtk version don't popup a console window
3468         anymore redirecting the error messages to a file in $TEMP appears
3469         to be much more reasonable than just ignoring it. Fixes bug #150777
3470         based on a patch from Steffen Macke
3472 2004-11-06  Hans Breuer  <hans@breuer.org>
3474         * plug-ins/wmf/wmf.cpp plug-ins/wmf/wmf_gdi.* : added/used
3475         RoundRect() for high level renderer api implementation thus
3476         fixing bug #138744 reported by Lars Clausen
3478 2004-11-06  Hans Breuer  <hans@breuer.org>
3480         * app/prefernces.c : applied patch to make showing the diagram 
3481         menubar the default (advanced users know how to switch it off)
3482         Fixes bug #150706, Steffen Macke
3484 2004-11-06  Hans Breuer  <hans@breuer.org>
3486         * app/commands.c app/commands.h : added view_fullscreen_callback()
3487           view_unfullscreen()
3488           app/menus.c : use it (/View/Fullscreen) thus fixing bug #94090
3489         * app/disp_callbacks.c : use view_unfullscreen() for GDK_Escape
3490         ALso modified to allow handling of unmodified keys again (aren't
3491         there plenty of bug reports for this?
3493 2004-11-06  Hans Breuer  <hans@breuer.org>
3495         * objects/UML/class_dialog.c : fixed casts for usage
3496         of dia_color_selector_set_color()
3497         
3498         * app/filedlg.c : pass a valid filenames to 
3499         gtk_file_chooser_set_filename(), if we don't have a name
3500         don't call it at all. Gets rid of "libgnomevfs-CRITICAL **: 
3501         file gnome-vfs-utils.c: line 749 (gnome_vfs_get_uri_from_local_path): 
3502         assertion `local_full_path[0] == '/'' failed"
3503         
3504 2004-11-06  Lars Clausen  <lars@raeder.dk>
3506         * app/properties.c (create_dialog): 
3507         * app/diagram_tree_window.h: 
3508         * app/diagram_tree.h (HIDDEN_TYPES_NAME): 
3509         * app/diagram_tree_menu_callbacks.c: 
3510         * app/diagram_tree_window.c: 
3511         * app/diagram_tree_menu.c: 
3512         * app/diagram_tree.c: Changed to use persistence instead of
3513         strange hacks in preferences.
3515         * lib/persistence.h:
3516         * lib/persistence.c (persistent_list_get_glist): Don't deref null
3517         pointer.  New function persistent_list_remove_all, and
3518         fixed persistent_list_remove to ... work!
3520 2004-11-05  Lars Clausen  <lars@raeder.dk>
3522         * app/paginate_psprint.c (diagram_print_ps): Call
3523         diagram_print_destroy on destroy rather than delete_event.  That
3524         way the gtk_widget_destroy() calls cleans up properly.  Fixes bug
3525         #154898. 
3527 2004-11-02  Lars Clausen  <lars@raeder.dk>
3529         * objects/UML/class.c (umlclass_load): Actually load the saved
3530         fonts and font sizes. Fixes bug #157016
3532         * configure.in: Require at least GTK+ 2.4.
3534         * app/filedlg.c: Changed to use 2.4 file dialog!  Finally,
3535         finally, finally.  Not quite bulletproof yet, and I need to figure
3536         out a minimum version of Gtk that doesn't spew warnings all over.
3538         * app/diagram.[ch]: diagram_set_filename with const filename.
3540         * app/sheets_dialog_callbacks.c
3541         (on_sheets_dialog_button_apply_clicked): Sheet menu now almost
3542         correctly recreated.  Still something fishy with the sheet menu in
3543         the dialog after adding a new sheet.  Probably the sheet name
3544         being stomped.
3546 2004-11-01  Lars Clausen  <lars@raeder.dk>
3548         * lib/widgets.[ch] (dia_dynamic_menu_reset): Harden against memory
3549         stmping.  Now requires g_free here and there.
3551         * app/preferences.[ch] (prefs_data): Got rid of hidden prefs value
3552         for remembering last sheet, better off as persistent string.  Must
3553         hunt down other things like that.
3555         * app/interface.c (create_sheets): Now remembers last sheet
3556         selected again. Fixes bug #157036.
3558 2004-11-01  Hans Breuer  <hans@breuer.org>
3560         * plug-ins(tex_escape_string) : fixed it [g_utf8_next_char
3561         will never become NULL but only point to the next char
3562         which might indeed be \0]
3563         Use tex_escape_string() to avoid writing invalid tex,
3564         fixes bug #112377
3566         * **/* : a bunch of changes caused by trying 'make distcheck'
3567         which still fails, see Bug #144527
3569 2004-10-31  Lars Clausen  <lars@raeder.dk>
3571         * plug-ins/pstricks/render_pstricks.c (export_pstricks): Avoid
3572         floating point numbers being printed with commas.  Fixes bug
3573         #156148.
3574         
3575         * app/interface.c (create_sheet_dropdown_menu): New function to
3576         create the sheet menu, and also allow recreation.  Still buggy and
3577         slightly prone to magic.
3579         * objects/UML/class_dialog.c
3580         (attributes_list_selection_changed_callback): Don't try to update
3581         the widgets after they're destroyed.  Fixes bug #156706 (I think).
3583         * lib/widgets.c (dia_unit_spinner_new): Avoid crash on NULL
3584         adjustement.  Fixes bug #154637
3586         * sheets/ER/Makefile.am (PIX): 
3587         * sheets/GRAFCET/Makefile.am (PIX): 
3588         * sheets/Jackson/Makefile.am (PIX): 
3589         * sheets/Istar/Makefile.am (PIX): 
3590         * sheets/KAOS/Makefile.am (PIX): Actually install PNG instead of
3591         XPM.  Why these have their pictures in sheets rather than shapes I
3592         don't know.  Fixes bug #152142.
3594 2004-10-31  Hans Breuer  <hans@breuer.org>
3596         * plug-ins/pixbuf/pixbuf.c : when running non interactive
3597         Dia won't call color_init() as it assumes no display. If
3598         we have one as tested ourselve we can as well color_init()
3599         to avoid g_warnings() and produce the right collors.
3600         Fixes bug #155495.
3601     
3602         * app/app-procs.c : try to be a little more helpful
3603         and correct with regard to the command line options.
3604         Renamed --export-to-format to --export-filter and some
3605         other string changes
3607 2004-10-31  Hans Breuer  <hans@breuer.org>
3609         * plug-ins/wmf/wmf_gdi.cpp plug-ins/wmf/wmf_gdi.h :
3610         added GetDeviceCaps() dummy implementation to make 
3611        'wmf' compile on Linux, too.
3613 2004-10-31  Hans Breuer  <hans@breuer.org>
3615         * plug-ins/wmf/wmf.cpp : patch from Robert Ã–gren <gtk@roboros.com>
3616         to finally fix the long lasting clipping issue, bug #85831
3617         Also fixed the line style issue for printing on XP and don't 
3618         miss to ReleaseDC()
3620         * plug-ins/wmf/wmf_gdi.[hc] : added ReleaseDC()
3622         * plug-ins/python/diasvg.py : filter illegal characters from <text/> section
3623         (e.g. &lt; instead of <), fixes bug #155697 (Duncan Palmer)
3625         * plug-ins/python/pydia-error.[hc] : improvede exception handling to transfer 
3626         some info from the console (soon gone on windoze) to message_error()
3627         * plug-ins/python/pydia-render.c plug-ins/python/diamodule.c : use it.
3628         Also some setlocale() hack to let Python behave as expected for LC_NUMERIC
3630         plug-ins/python/diasvg_import.py : re.compile() only once per expression
3631         and some more playing with scaling
3633         * plug-ins/python/makefile.msc : updated
3635 2004-10-30  Hans Breuer  <hans@breuer.org>
3637         * shapes/Civil/civil_arrow_right.shape : removed
3638         <aspectratio type="fixed" /> thus allowing to change
3639         width and height independently, fixes #154897 
3640         (Serge Robinson) by making it consistent with the
3641         up arrow
3643 2004-10-30  Hans Breuer  <hans@breuer.org>
3645         * plug-ins/xfig-xfig-export.c(hasArrow) : don't crash
3646         on arrow being NULL, fixes bug #143063
3648 2004-10-30  Hans Breuer  <hans@breuer.org>
3650         * lib/diagramdata.c app/diagram.c app/disp_callbacks.c
3651           plug-ins/python/pydia-diagram.c plug-ins/python/pydia-diagramdata.c :
3652         removed use of chached variable DiagramData::selected_count
3653         * lib/diagramdata.h : renamed to selected_count_private
3654         (kept for binary compatibility and sanity checks)
3655         * lib/diagramdata.c : more checks on a screwed up selection list
3657         * app/diagram.c(diagram_group_selected) : don't screw up the
3658         DiagramData::selected list, was assignment of parent_list_affected(),
3659         * lib/diagramdata.c (data_select, data_unselect) : protect against
3660         multiple selections of the same object and removement of a not selected
3661         object (apparently caused by the recently added group undo stuff)
3662         together with the above this finally fixes bug #153525
3664         * app/Makefile.am : fix ./autogen.sh ->
3665         app/Makefile.am:171: blank line following trailing backslash
3667         * app/commands.c(objects_group_callback,objects_ungroup_callback) :
3668         ddisplay_do_update_menu_sensitivity() here as well
3670         * configure.in : make the experimental state of the cairo plug-in
3671         more visible
3672         
3673         * app/dia-props.c(diagram_properties_update_sensitivity) : don't
3674         try to update anything if we can't find an active diagram
3675         Additionally set static dialog pointer to NULL by gtk_widget_destroyed
3676         
3677         * configure.in : another attempt to fix bug #156116. If there is
3678         anyone with autotools knowledge reading this - help appreciated ;-)
3680 2004-10-30  Hans Breuer  <hans@breuer.org>
3682         * objects/makefile.msc objects/UML/Makefile.am
3683           objects/UML/uml.c objects/UML/transition.c 
3684           objects/UML/pixmaps/transition.xpm sheets/uml.sheet.in : 
3685         Patch from Peter Allin adds statechart transitions to the UML sheet -
3686         bug #144956 - modified to not print("%s", NULL) which crashes on
3687         newer glib versions. Also added pixmap/transition.xpm to Makefile.am
3689 2004-10-30  Hans Breuer  <hans@breuer.org>
3691         * doc/sheet.dtd doc/diagram.dtd : the namespace does *not* 
3692         match the website anymore, i.e. sould remain unchanged. 
3693         See below and lib/dia_xml.h for the reasoning
3695         * lib/libdia.def : removed dia_color_selector_get_type
3697         * lib/dia_image.c(dia_image_load) : check for pixbuf warnings
3698         (like broken PNG) and g_warning if appropriate
3700         * app/interface.c : #include "message.h"
3702         * app/diaunitspinner.hc : replaced the superfluous #if-0-juggling,
3703         used #error "Moved to lib/widgets.[hc]" instead (IMO it would be
3704         better to just move diaunitspinner to lib/ instead of polluting
3705         widgets.[hc] even more ;)
3706         * app/makefile.msc lib/libdia.def : updated
3708         * app/filedlg.c : patch from gtk@roboros.com, fixes #156224
3709         * app/app_procs.c : patch from gtk@roboros.com, fixes #156088
3711         * config.h.win32 : #define HAVE_CAIRO to let the Cairo plug-in
3712         do something useful when compiled
3714         * plug-ins/cairo/diacairo.c : added 'PNG with alpha' rendering.
3715         Also some more #ifdefed backends usage.
3717 2004-10-10  Lars Clausen  <lars@raeder.dk>
3719         * lib/widgets.c: Better labels for color selector menu.
3721         * app/dia-props.c (diagram_properties_respond): 
3722         * app/preferences.c (prefs_get_value_from_widget): Don't assume
3723         that a dia color selector is of type DiaColorSelector:)
3725         * lib/widgets.[ch]: Color selector changed to dynamic menu.
3727         * lib/prop_attr.c (colorprop_set_from_widget): Don't assume
3728         DiaColorSelector. 
3730 2004-10-09  Lars Clausen  <lars@raeder.dk>
3732         * lib/diaarrowchooser.c (dia_arrow_preview_init): Slightly wider
3733         arrow preview to avoid long arrow heads flipping.
3735         * lib/arrows.[ch]: Support for getting from name to arrow type,
3736         and for listing all arrow names.
3737         
3738         * lib/widgets.[ch]: Changed arrow selector to use dynamic menu.
3740         * lib/libdia.def: Added new global functions.
3742         * lib/persistence.[ch]: Two of the persistent_list functions to
3743         return whether the item was found in the list.
3745         * app/interface.c (create_sheets): Use DiaDynamicMenu to handle
3746         the growing number of sheets.
3748         * lib/widgets.[ch]: Add DiaDynamicMenu as a generalization of the
3749         font menu.
3751 2004-10-05  Lars Clausen  <lars@raeder.dk>
3753         * objects/UML/association.c: Patch from Harvey Thompson
3754         <harveyandsu@yahoo.com>:  Better placement of association texts.
3756 2004-10-03  Lars Clausen  <lars@raeder.dk>
3758         * lib/widgets.c (dia_font_selector_add_menu_item): Make font menu
3759         use the fonts in question.  Can't set tooltips with the name since
3760         lib objects don't know the tool_tips thing, which is rather
3761         app-related.
3763 2004-09-19  Hans Breuer  <hans@breuer.org>
3765         * plug-ins/xslt/*.xsl : s/apply-templates match/apply-templates select/
3766         fixes bug #148278, carlosrp@idea.com.py (Carlos Ra�l Perasso)
3768 2004-09-19  Hans Breuer  <hans@breuer.org>
3770         * dia.desktop.in : string changes as proposed in bug #151822
3771         
3772         * lib/Makefile.am : remove -module from libdia_la_LDFLAGS,
3773         appearts not to be needed on Linux and breaks the build 
3774         on OSX. Fixes bug #152970
3775         
3776 2004-09-18  Lars Clausen  <lars@raeder.dk>
3778         * app/commands.c (view_show_all_callback): Add a bit of border
3779         around Ctrl-E'd diagram, for easier select and better view of edges.
3781 2004-09-19  Hans Breuer  <hans@breuer.org>
3783         * app/Makefile.am : trying to fix the fix from 2004-02-15
3784         Overwriting AM_LDFLAGS still gave a automake warning and it 
3785         also appeard to break linking against gtklibs in a differnt 
3786         prefix. Use dia_LDFLAGS instead.
3788         * plug-ins/svg/svg-import.c : initialize 'end' before usage
3789         patch from dcbw@redhat.com (Dan Williams), fixes bug #150548
3790         
3791         * lib/diarenderer.c : don't try to draw lines which are so much 
3792         degenerated that their point count became negative, fixes bug #148139
3793         
3794         * lib/font.c(layout_cache_equals) : don't crash on nonexisting 
3795         strings (NULL from g_strdup()) 
3797 2004-09-10  Steffen Macke <sdteffen@web.de>
3799         * lib/libdia.def: added color_new_rgb(), focus_previous(),focus_next(),
3800         give_focus(),give_focus_to_object(),remove_focus(),reset_foci()
3801         * app/create_object.c:
3802         * app/diaunitspinner.c:
3803         * app/disp_callbacks.c:
3804         * app/makefile.msc:
3805         * app/modify_tool.c:
3806         * lib/prop_geomtypes.c:
3807         * lib/prop_geomtypes.h: made compile with msvc
3809 2004-09-10  Lars Clausen  <lars@raeder.dk>
3811         * lib/widgets.c: Insulate conversion from outside API by adding
3812         internal function to set value.  Adjustment not appropriate for
3813         units yet.
3815         * lib/prop_geomtypes.c (lengthprop_get_widget): Remove debug info
3817 2004-09-07  Lars Clausen  <lars@raeder.dk>
3819         * app/diapagelayout.c: Include from widgets.c rather than
3820         diaunitspinner.
3822 2004-09-03  Lars Clausen  <lars@raeder.dk>
3824         * objects/standard/box.c: Use PROP_TYPE_LENGTH for corner_radius
3825         as unit-based property testbed.
3827         * lib/prop_geomtypes.c (lengthprop_reset_widget): Implement length
3828         and fontsize widgets. 
3830         * app/Makefile.am (dia_core_files):
3831         * app/diaunitspinner.h: 
3832         * app/diaunitspinner.c: 
3833         * lib/widgets.h: 
3834         * lib/widgets.c (dia_unit_spinner_update): Move diaunitspinner to
3835         lib/widgets.[ch], as it's used in the properties code now.
3837 2004-08-31  Steffen Macke <sdteffen@web.de>
3839         * doc/en/usage-objects-basic.xml: Mentioning supported image formats.
3841 2004-08-30  Lars Clausen  <lars@raeder.dk>
3843         * app/textedit.c: 
3844         * app/diagram.c (diagram_remove_all_selected): Remove debugging
3845         information. 
3847         * lib/color.[ch]: 
3848         * app/undo.c: 
3849         * app/disp_callbacks.c: 
3850         * app/Makefile.am: 
3851         * app/create_object.c: 
3852         * app/textedit.[ch]: 
3853         * app/modify_tool.c: 
3854         * app/diagram.c: 
3855         * lib/text.c: 
3856         * lib/focus.[ch]: Change in focus mechanism to allow highlight of
3857         current input object, multiple inputs per object, and tabbing
3858         between objects.
3860 2004-08-28  Steffen Macke <sdteffen@web.de>
3862         * makefile.msc: added bs to ALL_LINGUAS; adjusted .mo file creation to
3863         allow separate installer component "Translations"
3865 2004-08-27  Akagic Amila  <bono@linux.org.ba>
3867         * configure.in: Added 'bs' to ALL_LINGUAS.
3869 2004-08-26  Steffen Macke <sdteffen@web.de>
3871         * app/makefile.msc: using /subsystem:windows again
3872         * makefile.msc: updated ALL_LINGUAS
3874 2004-08-21  Kjartan Maraas  <kmaraas@gnome.org>
3876         * configure.in: Add Â«nb» to ALL_LINGUAS.
3878 2004-08-21  Steffen Macke <sdteffen@web.de>
3880         * plug-ins/dxf/dxf-export.c: Patch from 
3881         Takeshi Hamasaki <hma@syd.odn.ne.jp>, fixes text alignment
3883 2004-08-17  Lars Clausen  <lars@raeder.dk>
3885         * config.h.win32: 
3886         * dia.spec (Release): 
3887         * doc/pl/dia.xml: 
3888         * doc/en/dia.xml: 
3889         * NEWS: 
3890         * configure.in: 
3892 2004-08-13  Ankit Patel <ankit@redhat.com>
3894         * configure.in: Added "gu" in ALL_LINGUAS.
3896 2004-08-07  Lars Clausen  <lars@raeder.dk>
3898         * configure.in:
3899         * config.h.win32: 
3900         * doc/pl/dia.xml: 
3901         * doc/en/dia.xml: 
3902         * dia.spec (Release): 
3903         * NEWS: New release 0.94-pre6
3905 2004-08-07  Lars Clausen  <lars@raeder.dk>
3907         * app/highlight.c (highlight_reset_objects): Unhighlight inside
3908         groups as well.
3910         * app/load_save.c: 
3911         * plug-ins/shape/shape-export.c: String capitalization fix from
3912         Alan Horkan <horkana@tcd.ie>
3914         * objects/UML/class.c (umlclass_show_comments_callback): Make UML
3915         Class object menu kinda work, rather than blow up.  Doesn't do a
3916         proper undoable change yet.
3918 2004-08-06  Lars Clausen  <lars@raeder.dk>
3920         * app/filedlg.c (file_save_as_callback): Don't remove related
3921         dialogs from the NULL diagram.
3923 2004-08-02  Lars Clausen  <lars@raeder.dk>
3925         * config.h.win32: 
3926         * doc/pl/dia.xml: 
3927         * doc/en/dia.xml: 
3928         * dia.spec (Release): 
3929         * NEWS: Pre5 with leak fix.
3931         * lib/font.c (dia_font_build_layout): Don't try to save an
3932         allocation of LayoutCacheItem if it breaks layout cache hash.
3933         Also make hash function correct, remove explicit height entry
3934         (it's in pfd), and make sure things are correctly unreffed.
3935         Finally fixes #148141.
3937         * lib/text.c (text_set_attributes, text_set_font): Safely unref
3938         when changing font, and actually set the new font in
3939         text_set_font(!).
3940         (text_get_attributes): Ref copied font.
3942 2004-08-01  Lars Clausen  <lars@raeder.dk>
3944         * NEWS: 
3945         * configure.in: 
3946         * dia.spec (Release): 
3947         * config.h.win32: 
3948         * doc/pl/dia.xml: 
3949         * doc/en/dia.xml: Prerelease 4.
3951         * lib/font.c (dia_font_build_layout): Better comparision and
3952         freeing of font cache.
3954 2004-07-31  Lars Clausen  <lars@raeder.dk>
3956         * lib/font.c (dia_font_build_layout): Faster update to avoid
3957         memory leaks.
3959         * app/app_procs.c: Fix from Tom Parker <palfrey@bits.bris.ac.uk>:
3960         Correctly initialize export filter variable.
3962 2004-07-25  Lars Clausen  <lars@raeder.dk>
3964         * dia.spec (Release): 
3965         * configure.in: 
3966         * NEWS: 
3967         * config.h.win32: 
3968         * doc/en/dia.xml: 
3969         * doc/pl/dia.xml: Pre3 coming out.
3971         * lib/diarenderer.c (draw_polygon): 
3972         * plug-ins/dxf/dxf-export.c (export_dxf): Two fixes by Takeshi
3973         Hamasaki <hma@syd.odn.ne.jp>: Correct header to be a 0 (zero)
3974         rather than O (letter), and assert num_points > 1 rather than the
3975         other way around.
3977         * app/recent_files.c: 
3978         * app/filedlg.c: 
3979         * app/diagram.c: 
3980         * app/app_procs.c: Patch from Vitaly Lipatov <lav@altlinux.ru>:
3981         Make filenames conform to filesystem encoding.
3983         * RDP/.cvsignore: Added standard ignore.
3984         
3985         * shapes/network/Makefile.am (SHAPES): Use PNG instead of XPM for
3986         last entry patch-panel, too.
3988         * app/*.png:
3989         * shapes/Circuit/*.png:
3990         * shapes/Civil/*.png:
3991         * shapes/Contact/*.png:
3992         * shapes/Electric/*.png:
3993         * shapes/MSE/*.png:
3994         * shapes/Pneumatic/*.png:
3995         * shapes/SDL/*.png:
3996         * shapes/flowchart/*.png:
3997         * shapes/jigsaw/*.png:
3998         * shapes/network/*.png:
3999         * shapes/sybase/*.png:
4000         * samples/dia*.png:
4001         * dia_gnome_icon_large.png:
4002         * doc/pl/graphics/*.png: Set -kb for PNGs.
4003         
4004         * sheets/{ER,GRAFCET,Istar,Jackson,KAOS}: Added .png files.
4006 2004-07-22  Lars Clausen  <lars@raeder.dk>
4008         * NEWS: 
4009         * config.h.win32: 
4010         * doc/en/dia.xml: 
4011         * doc/pl/dia.xml: 
4012         * dia.spec (Release): 
4013         * configure.in: Update to version 0.94-pre2.
4015         * app/load_save.c (diagram_data_write_doc): Use new namespace
4016         here, too.
4018         * lib/object.h (OBJECT_COMMON_PROPERTIES): Remove 'Dia' from
4019         hidden objects properties.
4021         * objects/standard/line.c: Remove halffinished line gap box from
4022         properties list.
4024         * app/paginate_psprint.c: 
4025         * app/filedlg.c: Patch from kimmidi@novell.com (Kiran Kumar
4026         Immidi): Close export and print dialog with diagram as well.
4027         (#129520)
4028         
4029         * lib/diaarrowchooser.[ch]: Patch from pborelli@katamail.com (paolo
4030         borelli):  Remove deprecated stuff (#137693)
4032         * app/dia-props.c (create_diagram_properties_dialog): Patch from
4033         kimmidi@novell.com (Kiran Kumar Immidi):  Close properties dialog
4034         on destroy.
4036 2004-07-21  Ray Strode  <rstrode@redhat.com>
4038         * dia/dia.desktop.in: Add MimeType line to desktop file
4039         new mime sytem.
4041 2004-07-18  Hans Breuer  <hans@breuer.org>
4043         * shapes/(Circuit|Contatct|MSE|network|Pneumatic|SDL|sybase)/Makefile.am 
4044           sheets/UML/*.png : icons in png format
4045         Partial fixup of stuff broken with the following comment:
4046         "7 days : xpm->png, namespace fix, first rotation bits."
4048         * app/load_save.c(read_objects) : don't add objects to the layer.
4049         This function is called recursively and only the topmost objects
4050         belong in the layers object list. Fixes bug #145417 and is the
4051         the real fix for bug #142480
4052         
4053         * app/app_procs.c : make the --size hack even uglier, but work again
4054         
4055         * lib/dia_dirs.c(dia_get_absolute_filename) : must not free()
4056         but g_free() what is returned by g_build_filename()
4057         
4058         * objects/custom/custom_object.c(custom_destroy) : handle all enum
4059         values in switch to get rid of the warning
4060         
4061         * objects/custom/shape_info.c : use g_ascii_strtod(), get rid 
4062         of setlocale()/strtod()
4063         * lib/dia_svg.c : dito
4064         * lib/dia_xml.c : almost
4066         * plug-ins/python/group_props.py : use the string representation of 
4067         value to ensure "unique values". If the strings would not be different
4068         the user cann't see the difference either
4070 2004-07-17  Lars Clausen  <lars@raeder.dk>
4072         * lib/persistence.h: Have "void" in prototypes (#142663)
4074         * lib/widgets.c (dia_font_selector_init): Better string handling
4075         (#142663) 
4077         * lib/persistence.c (persistence_save_type): Small fixes (#142663)
4079         * objects/standard/image.c (image_load): Use path of diagram
4080         rather than running directory as base for image file place.
4082         * doc/{diagram,sheet}.dtd: Move DTD namespace to new site, and
4083         syntactic fixes. 
4084         
4085         * app/disp_callbacks.c (ddisplay_canvas_events): Patch from
4086         Ambrose Li <a.c.li@ieee.org>:  Better IM context handling.
4088         * Re-added new sample diagrams binarily.
4090 2004-07-17 Sagar Rastogi <rastogi@students.iiit.net>
4092         * app/disp_callbacks.c: Fixed #144962 (also in KNOWN_BUGS),
4093         Disabled keyboard accels when dragging an object.       
4095 2004-07-14  Lars Clausen  <lars@raeder.dk>
4097         * app/grid.c (snap_to_grid): Use diagrams grid setting to
4098         determine hex grid snap.
4100         * doc/pl/Makefile.am: Avoid error based on backslash in comment.
4101         
4102         * app/interface.h: Avoid multiply defined symbols (#147396)
4104 2004-07-10  Lars Clausen  <lars@raeder.dk>
4106         * app/sheets_dialog_callbacks.c (write_user_sheet): 
4107         * lib/sheet.c (load_register_sheet): Don't introduce double
4108         slashes in namespace.
4110         * lib/dia_xml.h (DIA_XML_NAME_SPACE_BASE): Keep consistent with
4111         old diagrams, or XSLT will barf all over.
4112         
4113         * shapes/RDP/place.shape: 
4114         * shapes/RDP/transition.shape: 
4115         * shapes/RDP/Makefile.am: Added .png entries to SHAPES and changed
4116         shapes to use those.
4118 2004-07-07  Lars Clausen <lars@raeder.dk>
4120         * config.h.win32: 
4121         * doc/{en,pl}/dia.xml: 
4122         * dia.spec: 
4123         * configure.in: 
4124         * NEWS: First prerelease of version 0.94.  Now with release
4125         versions in a branch and main devel in the trunk.
4127 2004-07-05  Hans Breuer  <hans@breuer.org>
4129         * */*.[hc] */*/*.c : a bunch of changes to make Dia compile with
4130         -std=c89. Mostly //-comments and M_PI -> G_PI
4131         [Istar, Jackson, KAOS were removed from build cause they
4132         simply have *too* much C++ comments ;]
4133         * object/UML/association.c : use g_strdup() not plain strdup()
4134         * app/paginate_psprint.c : avoid storage size of `pipe_action' 
4135         isn't known with more portable signal code
4136         
4137         * app/app_procs.c : don't call gtk_init() if just --version
4138         is requested (bug #144321, Vladimir Kondratiev)
4139         
4140         * lib/prop_attr.c(fontprop_set_from_offset) : only unref 
4141         DiaFont* if not NULL
4142         * objects/UML/class.c : moved fill_in_fontdata() to 
4143         umlclass_load() to avoid such trouble, though unsure if
4144         this really is an improvement...
4145         
4146         * shapes/network/makefile.am : patch-panel added here too
4148 2004-07-04  Hans Breuer  <hans@breuer.org>
4150         * sheets/network.sheet.in shapes/network/patch-panel.xpm
4151           shapes/network/patch-panel.xpm : added 24-Port-Patch-Panel
4152         fixes bug #136629, James McDonald
4154 2004-07-04  Hans Breuer  <hans@breuer.org>
4156         * lib/persistence.c app/load_save.c app/sheet_dialog_callbacks.c
4157           lib/object_defaults.c : revert changing of Dia's XML namespace
4158         * lib/dia_xml.h : #define DIA_XML_NAME_SPACE_BASE with a comment
4159         about its purpose and relation to real world urls.
4161         * lib/plug-ins.h : increment DIA_PLUGIN_API_VERSION and 
4162         added comment about when to do so
4163         [Should have been long time ago and probably multiple times
4164         to avoid crashing on older plug-ins]
4165         * RELEASE-PROCESS : mention DIA_PLUGIN_API_VERSION
4166         * plug-ins/xslt/xslt.c : use DIA_PLUGIN_CHECK_INIT
4168         * lib/object.c objects/UML/class.c : there are still compilers not 
4169         supporting C99 and other GCCISMs like allocating dynamic sized arrays 
4170         on the stack
4171         * objects/UML/class.h : there is a differnce between a list pointer
4172         and a list pointer pointer. We and GLib want the former.
4174         * plug-ins/pixbuf/pixbuf.c : don't use app_is_interactive () to detect
4175         if Gtk is initialized. Using gdk_display_get_default () avoids the
4176         app/* dependency and is also closer to the requirements of the
4177         plug-ins working.
4179         * plug-ins/cairo/diacairo.c : initialize "unique name" field. Also
4180         some #ifdefed support for Cairo backends not public available yet.
4182         * plug-ins/wmf/wmf.cpp : finally do extended linestyles if the
4183         windoze platform supports them. This should fix bug #109818, at
4184         least for the majority running NT or above ...
4185         * plug-ins/wmf/wmf_gdi.[hc] : portability stuff for the above
4187         * objects/makefile.msc : build Istar, Jackson and Kaos
4189         * objects/UML/class.c(umlclass_load) : don't wrap by default to 
4190         keep old diagrams as they were - instead of this nice new effect ;-)
4191         Also make "wrap_operations" PROP_TYPE_BOOL in PropDescriptions
4193         * objects/UML/class.c : mark for translation _("Wrap ...
4195         * objects/UML/class.c : more correct types, also some default properties
4196         dialog pages adjustment (triggering a bug in lib/prop_widgets.c ?;)
4198         * objects/UML/activity.c : removed a leftover from the 
4199         use-localization-for-font-substitution-hack
4201         * shapes/ChemEng shapes/Cybernetic shapes/Map/Isometric :
4202         'cvs admin -kb *.png' PNG files should already be *added* as binary,
4203         otherwise they are not readable on line-end-converting-platforms
4205         * plug-ins/python/use g_new0(Dia<Im|Ex>portFiler), avoids crashing 
4206         filter_get_by_name()
4208         * plug-ins/python/pydia-property.c : some more g_warnings for
4209         not implemented conversions
4211         * plug-ins/python/group_props.py : ensure unique property values
4212         at the right place. Now something like :
4213         - load an old UML class diagram
4214         - change one of the classes to wrap operations
4215         - select all classes (/Select/Same Type)
4216         - /Dialogs/Group Properties : check wrap_operations, select '1'
4217         - Ok, works like a charm :-)
4219 2004-07-04  Lars Clausen  <lars@raeder.dk>
4221         * lib/diagdkrenderer.c (draw_string): Don't unref NULL
4222         pixbuf. (#145362)
4223         
4224 2004-07-03  Lars Clausen  <lars@raeder.dk>
4226         * app/app_procs.c (do_convert): Two patches from Vitaly Lipatov
4227         <LAV@VL3143.spb.edu>: Fixes console output problems and some
4228         interactiveness problems.
4230 2004-07-02  Lars Clausen  <lars@reader.dk>
4232         * plug-ins/pixbuf/pixbuf.c (dia_plugin_init): Don't load if the
4233         app isn't interactive.
4235 2004-07-01  Lars Clausen  <lars@raeder.dk>
4237         * plug-ins/cairo/diacairo.c: Add init of last field of filter
4238         struct to remove crash.
4240         * sheets/Makefile.am (sheet_in_files): 
4241         * shapes/Makefile.am: 
4242         * sheets/ChemEng.sheet.in: 
4243         * shapes/ChemEng/Makefile.am: 
4244         * configure.in: 
4245         New sheet from "Federico Zenith" <zenith@chemeng.ntnu.no>:
4246         Chemical engineering shapes.
4247         
4248         * app/Makefile.am (run_dia.sh$(EXEEXT)): Changed $* to $@ to allow
4249         multiple arguments when using devel script.
4251         * app/display.c (new_display): 
4252         * app/dia-props.c: 
4253         * lib/diagramdata.c (new_diagram_data): 
4254         * lib/diagramdata.h: 
4255         * app/preferences.h: 
4256         * app/preferences.c: 
4257         * app/grid.c: 
4258         * app/diagram.c: 
4259         * lib/diagramdata.c (new_diagram_data): Patch from Peter Poulsen
4260         <peter_poulsen@stofanet.dk>: Add hexagonal grid!
4262         * HACKING: 
4263         * doc/pl/authors.xml: 
4264         * doc/en/authors.xml: 
4265         * lib/object_defaults.c (dia_object_defaults_save): 
4266         * readme.win32 (BTW): 
4267         * lib/persistence.c (persistence_save): 
4268         * app/load_save.c (diagram_data_write_doc): 
4269         * app/commands.c (help_about_callback): 
4270         * README: Fix links to home page.
4272         * lib/font.c: 
4273         * app/load_save.c (diagram_data_load): 
4274         * lib/prop_text.c (stringprop_load): Avoid NULL strings when
4275         loading, and guard against them when fonting.
4277         * lib/diarenderer.c (draw_rounded_polyline): Patch from
4278         anthonym@overture.com:  Make limited rounding a corner-specific
4279         rendering-only thing.
4281 2004-06-30  Lars Clausen  <lars@raeder.dk>
4283         * lib/font.c (dia_font_build_layout): Return to 0.93.1 font size
4284         adjustment: If you can't fix it, at least don't change it.
4286         * objects/SADT/arrow.c (sadtarrow_draw): Use new rounded arrow
4287         code instead of individual code in here.
4289 2004-06-29  Lars Clausen  <lars@raeder.dk>
4291         * objects/UML/association.c: Patch from Kiran
4292         Kumar Immidi <kimmidi@novell.com>:  Fix bounding box for line end
4293         text. 
4295         * lib/geometry.c: 
4296         * lib/geometry.h: 
4297         * lib/diarenderer.c (draw_rounded_polyline): 
4298         * objects/standard/polyline.c (polyline_draw): 
4299         * objects/standard/zigzagline.c (zigzagline_draw): 
4300         Patch from anthonym@overture.com:  Add rounded polylines.
4302 2004-06-27  Lars Clausen  <lars@raeder.dk>
4304         * lib/font.c (dia_font_new_from_style): Initialize legacy name.
4306         * lib/widgets.c (dia_font_selector_get_family_from_name): Don't
4307         free family list before taking out the pointer we need. Also set
4308         the entry_nr correctly so we get the menu set up right.
4310 2004-06-23  Lars Clausen  <lars@raeder.dk>
4312         * lib/widgets.c (dia_toggle_button_new_with_images): Sink the
4313         images at the right place.
4315         * objects/Istar/actor.c
4316         * objects/Istar/goal.c
4317         * objects/Istar/istar.c
4318         * objects/Istar/istar.h
4319         * objects/Istar/link.c
4320         * objects/Istar/other.c
4321         * objects/Jackson/domain.c
4322         * objects/Jackson/jackson.c
4323         * objects/Jackson/jackson.h
4324         * objects/Jackson/phenomenon.c
4325         * objects/Jackson/requirement.c
4326         * objects/KAOS/goal.c
4327         * objects/KAOS/kaos.c
4328         * objects/KAOS/kaos.h
4329         * objects/KAOS/metaandorrel.c
4330         * objects/KAOS/metabinrel.c
4331         * objects/KAOS/other.c: Patch from Patch from Christophe Ponsard
4332         <cp@cetic.be>: Fix instability issues caused by not returning NULL
4333         in *_move_handle and *_move.  Also improved the headers with
4334         correct (c) information.
4336 2004-06-22  Lars Clausen  <lars@raeder.dk>
4338         * objects/KAOS/goal.c:
4339         * objects/KAOS/other.c:
4340         * objects/Istar/actor.c:
4341         * objects/Istar/goal.c:
4342         * objects/Istar/other.c:
4343         * objects/Jackson/domain.c:
4344         * objects/Jackson/phenomenon.c: Patch from Christophe Ponsard
4345         <cp@cetic.be>: Fix resize issues.
4347         * app/filedlg.c (file_dialog_hide): Patch from Kiran
4348         Kumar Immidi <kimmidi@novell.com>: Check for null when removing
4349         related dialog. #129520.
4351         * app/dia-props.c (diagram_properties_show): Patch from Kiran
4352         Kumar Immidi <kimmidi@novell.com>: Make sure properties dialog is
4353         a child of its diagram. #129520.
4355         * objects/UML/association.c (association_load): Patch from Kiran
4356         Kumar Immidi <kimmidi@novell.com>: Update positions properly for
4357         text placement. #118313.
4359 2004-06-17  Lars Clausen  <lars@raeder.dk>
4361         * objects/KAOS/Makefile.am: Add pixmaps/goal.xpm to EXTRA_DIST
4363         * Makefile.am: Make THANKS only be generated by maintainers.
4365         * doc/pl/Makefile.am: Removed usage+objects+basic.xml from
4366         Makefile, too.
4368         * configure.in: Added three missing Makefiles.
4370         * app/diagram.[ch]: 
4371         * app/filedlg.c:
4372         Patch from shuveb@yahoo.com (Shuveb Hussain): Remove
4373         diagram-related (save) dialog when closing diagram.  To be
4374         extended to other dialogs.
4376         * doc/pl/dia.xml: Removed reference to objects-basic. (#144527)
4378         * samples/Istar.dia:
4379         * samples/Jackson.dia:
4380         * samples/KAOS.dia:
4381         * sheets/Istar.sheet.in:
4382         * sheets/Jackson.sheet.in:
4383         * sheets/KAOS.sheet.in:
4384         * sheets/Istar/*:
4385         * sheets/Jackson/*:
4386         * sheets/KAOS/*:
4387         * objects/Istar/*:
4388         * objects/Jackson/*:
4389         * objects/KAOS/*:
4390         * configure.in: 
4391         * objects/Makefile.am (SUBDIRS): 
4392         * sheets/Makefile.am (SUBDIRS): 
4393         * samples/Makefile.am: Additions from Christophe Ponsard
4394         <cp@cetic.be>: Jackson, I* and KAOS diagram support.  Needs a bit
4395         of hacking still.
4397 2004-06-12  Lars Clausen  <lars@raeder.dk>
4399         * lib/properties.h: 
4400         * lib/prop_geomtypes.[ch]: Preparation for selectable units.
4402         * lib/font.h: Toning down comments a bit:)
4404         * lib/font.c (dia_font_build_layout): Playing around with DPI 
4406         * objects/UML/association.c (association_load): Avoid crashes on
4407         strcmp with NULL.
4409         * objects/UML/association.c: Patch from kimmidi@novell.com:
4410         Improve placement of labels when vertical.  Part fix of #118313
4412         * lib/object.c (dia_object_is_selected): Grouped objects are not
4413         selected, only the group itself.  Thus, don't crash when grouping
4414         beziers. #143681
4416         * objects/UML/association.c: Patch from kimmidi@novell.com:  Agree
4417         on how to represent empty strings.  Fixes #143639.
4419         * lib/object.c (dia_object_is_selected): Added comment answer.
4421 2004-06-12  Hans Breuer  <hans@breuer.org>
4423         * lib/diagramdata.c lib/object.c : deal with grouped objects
4424         not knowing their parent_layer, i.e. avoid crashing in 
4425         dia_object_is_selected() via group_draw() [ Triggered by
4426         playing with the Visio generated svg from bug #143455 ]
4428         * plug-ins/python/diasvg_import.py : started to implement
4429         transformation="translate(...)" and <style/> handling. Also
4430         use some other completely bogus values for em/ex scaling
4431         
4432 2004-06-08  Lars Clausen  <lars@raeder.dk>
4434         * plug-ins/cairo/.cvsignore: CVS-ignore generated makefiles.
4436 2004-06-07  Lars Clausen  <lars@raeder.dk>
4438         * app/layer_dialog.c (layer_dialog_set_diagram): 
4439         * app/display.c: Layer widget crash more properly dealt with in
4440         layer dialog code.
4441         
4442         * app/display.c (ddisplay_flush): Fixed crash when closing:  Layer
4443         widget deselect was called during destroy, but called
4444         ddisplay_flush, leading to a new display timeout after renderer
4445         was dead.
4447         * lib/widgets.c (dia_toggle_button_destroy): 
4448         * app/recent_files.c (recent_file_menuitem_create): 
4449         * lib/persistence.c (persistence_save_list): 
4450         * app/commands.c (edit_delete_callback): 
4451         * lib/object_defaults.c (dia_object_defaults_save): 
4452         * lib/parent.c (parent_list_affected_hierarchy): Killed leaks
4453         (#142669)
4454         
4455         * lib/widgets.c (dia_toggle_button_new_with_images): Remove
4456         debugging info.
4458         * lib/diagramdata.c (new_layer): Initialize connectibility.
4460         * app/display.c (ddisplay_obj_render): 
4461         * app/diagram.c (diagram_find_closest_connectionpoint): Take
4462         connectibility into account.
4464         * app/layer_dialog.h (struct _DiaLayerWidget): 
4465         * app/layer_dialog.c:
4466         Connectible toggle updates, now works fairly well.
4468         * app/select.c (select_transitive_callback): Make sure we're only
4469         selecting in the same layer.
4471 2004-06-04  Lars Clausen  <lars@raeder.dk>
4473         * app/pixmaps/Makefile.am: Also install connectable images.
4474         
4475         * app/layer_dialog.c (dia_layer_update_from_layer): Initially set
4476         layer toggles from layer itself.  Also update diagram correctly
4477         for visibility.  Still need updates for connectivity behaviour.
4479 2004-06-03  Hans Breuer  <hans@breuer.org>
4481         * plug-ins/wpg/wpg.c(draw_image) : take rowstride into account
4483         * lib/diagdkrenderer.c(set_linejoin) : actually set
4484         join_style not cap_style
4485         (set_dashes): with the correct number of dashes
4487 2004-06-03  Lars Clausen  <lars@raeder.dk>
4489         * app/modify_tool.c (click_select_object): 
4490         * lib/text.c (text_set_cursor): 
4491         * app/disp_callbacks.c (ddisplay_canvas_events): Turn off text stuff.
4493 2004-05-31  Hans Breuer  <hans@breuer.org>
4495         * lib/object_defaults.c : don't 'failed to load external 
4496         entity "NULL"' when the defaults file does not exist, 
4497         bug #108764 [again: somehow this got lost]
4499         * app/paginate_gdiprint.cpp : don guess the WMF export 
4500         filter used for printing but find it by unique name.
4501         Also update for export_func renaming
4502         * plug-ins/wmf/wmf.cpp plug-ins/cairo/diacairo.c
4503         provide some unique names
4505         * app/commands.c app/disp_callbacks.c app/paginate_psprint.c 
4506           app/select.c : fix bug #140789 by always checking if there
4507         still is an active diagram before accessing it
4509         * app/defaults.c app/properties.c : user visible string should 
4510         not read DiaObject but stay as "Object defaults/properties"
4512         * app/app_procs.c : reduce the hack to pass --size to the
4513         export via user_data to the only filter supporting it. Other
4514         filters would crash on it or do worse ;(
4516         * plug-ins/wpg/wpg.c : not every 'Object' is a DiaObject ...
4518 2004-05-31  Lars Clausen  <lars@raeder.dk>
4520         * lib/widgets.h: 
4521         * lib/widgets.c: Use GtkType rather than guint for
4522         dia_size_selector_get_type. 
4524 2004-05-29  Lars Clausen  <lars@raeder.dk>
4526         * app/diapsrenderer.c (fill_bezier): Use even-odd winding rule so
4527         that it matches the screen output for selfoverlapping polygons and
4528         beziers. 
4530 2004-05-28  Hans Breuer  <hans@breuer.org>
4532         * app/load_save.c : ignore empty groups on load and don't
4533         write empty groups while saving
4534         * lib/group.h (group_update_data): there is no first object
4535         in empty groups and they probably don't need an update at 
4536         all. Maybe the shold just not exist ?
4538         * plug-ins/cairo/diacairo.c : fixed arc drawing, right aligned
4539         text positioning as well as drawing of images with alpha
4541         * plug-ins/wmf/wmf.cpp : include windows.h if eiher
4542         HAVE_WINDOWS_H or G_OS_WIN32 is defined
4544 2004-05-28  Lars Clausen  <lars@raeder.dk>
4546         * app/pixmaps/Makefile.am (imagedir): 
4547         * app/pixmaps/visible.png:
4548         * app/pixmaps/visible-empty.png: New images for the visibility
4549         button in the layer dialog.
4551         * lib/widgets.c (dia_toggle_button_new_with_images): Remove even
4552         more border around the button.  Still some left when hovering the
4553         mouse or selecting, and the grey background is annoying.
4555         * app/layer_dialog.c (dia_layer_widget_init): Use real buttons for
4556         visibility connector.
4558 2004-05-26  Lars Clausen  <lars@raeder.dk>
4560         * configure.in (DB2MAN): Better check for db2man docbook place.
4561         Need something even better.
4563         * doc/en/Makefile.am (dia.1): Conditional on having DB2MAN.
4565         * lib/widgets.c (dia_toggle_button_new_with_images): Remove
4566         extraeneous borders.
4568         * dia_logo.png:
4569         * dia_gnome_icon.png:
4570         * samples/render-test.dia: Rendering test from Hans.
4572 2004-05-24  Hans Breuer  <hans@breuer.org>
4574         * lib/filter.h : renamed DiaExportFilter::export to
4575         _DiaExportFilter::export_func (should not use c++ 
4576         keywords (g++ specifc ?) in headers. Same for import
4577         out of pure symmetry reasons
4578         * plug-ins/shape/shape-export.c plug-ins/python/diamodule.c
4579           app/diagram.c app/filedlg.c : reflect functions renaming
4581         * plug-ins/wmf/Makefile.am : finally compile the wmf plug-in
4582         under *NIX, too. [If you want something done, do it yourself ;-]
4583         * plug-ins/wmf/wmf_gdi.[hc] : some more stuff to catch up
4584         with wmf.cpp's GDI usage
4585         * plug-ins/wmf/wmf.cpp : compile even without HAVE_WINDOWS_H,
4586         [For the moment it does not much more than compiling, i.e. 
4587         the produced WMF files are invalid, if not created on windoze.]
4589         * configure.in : check for C++ to compile plug-in/wmf
4590         
4591         * objects/GRAFCET/boolequation.c : looks like fixing 
4592         another leak (untested)
4594 2004-05-23  Hans Breuer  <hans@breuer.org>
4596         * acinclude.m4 : another attempt to fix 
4597         bug #142032 (still not sure it's the right one,
4598         but works for me(tm), which the other does not ;)
4599         
4600         * plug-ins/cairo/Makefile.am
4601           plug-ins/Makefile.am 
4602           configure.in : support building the new cairo
4603         plug-in, if given --with-cairo and the cairo
4604         packages are found, see http://cairographics.org
4605         and also http://hans.breuer.org/dia/dia-cairo.htm
4607         * plug-ins/cairo/diacairo.c : make it compile
4608         with DEBUG_CAIRO defined, too.
4610 2004-05-23  Hans Breuer  <hans@breuer.org>
4612         * plug-ins/cairo/Makefile.am : initial attempt
4614         * plug-ins/cairo/diacairo.c : a new exporter based on
4615         Cairo http://cairographics.org rendering api. Currently
4616         it just can export PNG and PS but one day it might get
4617         PDF and more almost for free. [It is not yet included
4618         in the *NIX build system due to lack of auto* magic.]
4620         * plug-ins/pixbuf/pixbuf.c : always register the export
4621         filter part. If the user does not want it it can be 
4622         disabled by File/Plugins or explicit selected the other
4623         one in the Export Formats List
4625 2004-05-23  Hans Breuer  <hans@breuer.org>
4627         * lib/dia_dirs.c : #include "message.h"
4628           lib/widgets.c : #include "persistence.h"
4629           lib/widgets.c(dia_font_selector_init) : still not C99
4630           lib/persitence.h : removed unimplemented prototype
4631           lib/persitence.c(persistence_load_list) : still not C99
4632           app/create_object.c : #include "highlight.h"
4633           app/layer_dialog.c : #include "widgets.h"
4634           app/modify_tool.c : prototype functions before usage
4635           lib/object.c : if there is G_END_DECLS there _must_ be G_BEGIN_DECLS
4636         [otherwise one will have a hard time to make C++ compile ;]
4637           lib/dia_dirs.c : #include "message.h"
4638           lib/font.c : #include <gtk/gtk.h> /* just for gtk_get_default_language() */
4639           lib/
4641         * plug-ins/xfig/xfig-import.c : dont initialize an int with
4642         a string pointer
4644         * lib/dia_image.[hc](dia_image_rgba_data) : make it work
4645         as documented, i.e. _not_ copying. Plugs a memory leak in
4646         lib/dialibartrenderer.c
4648         * lib/diarenderer.c(*_rounded_rect) : renamed parameter rounding
4649         to radius to more of a clue what it is representing
4651         * */makefile.msc lib/libdia.def : updated
4653         ChangeLog : fixed some date copy&paste bug
4655 2004-05-21  Lars Clausen <lars@raeder.dk>
4657         * NEWS: Release tag.
4659         * config.h.win32: Now 0.93+cvs
4661         * RELEASE-PROCESS: Update with new info about release branches.
4662         
4663         * Many files:  Moved devel branch back into main trunk.  Should
4664         have been done in the opposite way, with release in a branch.  
4665         
4666 2004-05-20  Hans Breuer  <hans@breuer.org>
4668         * acinclude.m4 : disable setting of PYTHON_PREFIX
4669         and PYTHON_EXEC_PREFIX from prefix and exec_prefix
4670         as workaround for bug #142032 (the real fix would 
4671         involve some auto* knowledge which I don't have
4672         either;)
4673         
4674         * plug-ins/python/Makefile.am : more python 
4675         plug-ins to be installed (especially svg import,
4676         but also 'simple scale' should be useable 
4677         sometimes)
4678         
4679         * plug-ins/python/scascale.py : update display
4680         after modifying selected objects
4681         
4682         * plug-ins/python/diasvg_import.py : initialize
4683         stroke to none
4684         
4685 2004-05-18  Lars Clausen  <lars@raeder.dk>
4687         * app/diagram_tree.c (select_node): Use
4688         diagram_remove_all_selected to kill selected list.
4690         * lib/font.c: Set language when using a different context.
4692         * plug-ins/svg/svg-import.c: Changed isdigit to g_ascii_isdigit
4693         and removed ctype include (#142661).
4695         * lib/paper.c (get_default_paper): Changed isalnum to
4696         g_ascii_isalnum and removed ctype include. (#142661)
4698         * objects/custom/shape_info.c: 
4699         * lib/dia_svg.c: 
4700         * app/diaunitspinner.c: Removed unrequired ctype.h include. (#142661)
4702 2004-05-17  Hans Breuer  <hans@breuer.org>
4704         * lib/object_defaults.c : don't 'failed to load external 
4705         entity "NULL"' when the defaults file does not exist, 
4706         bug #108764
4708         * lib/widgets.c : fixed possible menu leak
4709         * lib/dialinechooser.c lib/diaarrowchooser.c : finally
4710         avoid finalization of floating references, bug #142307
4712 2004-05-15  Lars Clausen  <lars@raeder.dk>
4714         * plug-ins/xfig/xfig-import.c: Handle default fonts and illegal
4715         fonts better (#138655)
4716         
4717         * doc/pl/Makefile.am (EXTRA_DIST): Also include all xml files here.
4719         * doc/en/Makefile.am (EXTRA_DIST): Including all required files in
4720         dist, xml, dbk and man.  Also the sub-xml files. (#142098)
4722         * Makefile.am (CLEANFILES): 
4723         * sheets/Makefile.am (EXTRA_DIST): Not distributing the
4724         translation-reports, they are generated automagically.  THANKS
4725         file not considered locally generated, so is not locally
4726         cleaned. (#133735) 
4728         * lib/widgets.[ch]: Changing dia_arrow_selector to be a gobject.
4730         * lib/diaarrowchooser.c: 
4731         * lib/prop_attr.c: Fixing naming for arrowselector.
4733         * objects/UML/object.c (objet_type): Oops, little too aggressive
4734         with the DiaObject thing here:)
4736         * objects/custom/shape_info.c (parse_svg_node): Use
4737         g_ascii_isdigit instead of isdigit.
4739         * app/diaunitspinner.c (dia_unit_spinner_update): 
4740         * lib/dia_svg.c (dia_svg_parse_style): Using g_ascii_isspace
4741         instead of isspace avoids char subscript issues (#142467).
4743         * lib/persistence.c (persistence_get_string): Fixed 0/NULL/FALSE
4744         return value conflict.
4746         * app/display.c (ddisplay_update_handler): Fixed 0/FALSE return
4747         value conflict.  Also improved signature. (#142466)
4749         * app/load_save.c (diagram_data_load): Don't overwrite the list in
4750         the layer, but instead free the returned list (#142480)
4752         * app/pixmaps/Makefile.am (IMAGES): Added png's to be installed
4753         for the grid widget.
4755         * doc/en/Makefile.am (dia.1): Make proper rule for making dia.1
4757         * configure.in (DB2MAN): Currently just check for two known
4758         positions for the docbook xsl.  Don't know a generic way to find
4759         this info.  Ought to add an option for it, but then it's really
4760         only required for maintainers, I think.  Maybe.
4762         * app/display.c (update_snap_grid_status): Remove nasty image
4763         toggling code not require for grid toggle button anymore. (#142475)
4765         * app/interface.c (create_display_shell): Use
4766         dia_toggle_button_new_with_images to create grid toggle button.
4767         Much nicer. (#142475)
4769         * app/menus.c (menus_initialize_updatable_items): Free the string
4770         along with the GString. (#142475)
4772         * lib/intl.c (free_alias_table): Free hash table entries in a
4773         proper way, avoiding duplicate frees. (#142475)
4775         * lib/object_defaults.c (_obj_store): Only free layer_name if it's
4776         not put in the hash (avoid reading freed memory). (#142476)
4778         * lib/widgets.c (dia_font_selector_set_styles): Stop leaking
4779         faces. (#142484)
4780         (dia_font_selector_get_family_from_name): Stop leaking
4781         families. (#142482) 
4783 2004-05-14  Lars Clausen  <lars@raeder.dk>
4785         * Transfer of fixes from release branch.  Not the prettiest way to
4786         do it, this should be done during release, not afterwards.
4788         Tomasz KÅ‚oczko <kloczek@pld.org.pl>:
4790         * acinclude.m4: minor fixes (added missing [] quotation).
4792         Lars Clausen  <lars@raeder.dk>:
4794         * app/interface.c (toolbox_delete): 
4795         * app/app_procs.[ch] (app_exit): Stop the delete event if the user
4796         cancels quit due to modified diagrams.
4798         Samúel Jón Gunnarsson  <sammi@techattack.nu>:
4800         * is.po: Added "is" to ALL_LINGUAS.
4802         Lars Clausen  <lars@raeder.dk>:
4804         * dia.spec: Updated as per mail from Zhang Lin-bo <zlb@lsec.cc.ac.cn>
4806         Hans Breuer  <hans@breuer.org>:
4808         * lib/makefile.msc : removed -DGTK_DISABLE_DEPRECATED; the 
4809         burden should be shared and not be win32 only ;) [this time 
4810         build was broken by adding GtkType to widget.h]
4812         * objects/standard/box.c objects/standard/ellipse.c :
4813         for code clarification compare (obj->aspect != FREE_ASPECT)
4814         and not (obj->aspect); no binary effect.
4816         * app/paginate_psprint.c : don't leak printcmd
4818         * objects/standard/box.c objects/standard/ellipse.c : fix gccisms :
4819         standard C requires variables to be declared at the beginning of 
4820         a block, also there is no fabsf() with msvc
4821         
4822         * app/win32print.[ch] : make win32_printer_close() return an
4823         error code, it's used as pclose replacement
4825         Lars Clausen  <lars@raeder.dk>:
4827         * RELEASE-PROCESS: Mention PATCH keyword in release process.
4829 2004-05-06  Lars Clausen  <lars@raeder.dk>
4831         * lib/widgets.[ch]: Utility function to make a widget with two
4832         images (selected and non-selected).
4834         * lib/diagramdata.h: Renamed selectable to connectable.
4835         Selectable will come later.
4837         * configure.in: 
4838         * app/pixmaps/Makefile.am (imagedir): 
4839         * app/pixmaps/connectable.png:
4840         * app/pixmaps/connectable-empty.png: New images for the
4841         selectability widget.  Proper installation, too.
4843         * app/layer_dialog.[ch]: Adding new button showing connectability
4844         status.  Much cleaner way of doing the button, but some problems
4845         with the item getting selected
4847         * lib/widgets.h: Reminder of how to install images for use by
4848         dia_get_image_from_file.
4850 2004-05-05  Lars Clausen  <lars@raeder.dk>
4852         * objects/network/Makefile.am: 
4853         * objects/network/pixmaps/radiocell.xpm: 
4854         * objects/network/pixmaps/basestation.xpm: 
4855         * objects/network/network.c: 
4856         * objects/network/basestation.c: 
4857         * objects/network/radiocell.c: 
4858         Patch from W. Borgert <debacle@debian.org>: Radio cell and base
4859         station objects.
4861         * lib/arrows.[ch]: Patch from Anthony <anthonym@overture.com>:
4862         Backslash arrow head. 
4864         * app/pagesetup.c (pagesetup_respond): Do not free ps twice.
4865         Notify takes care.  Should maybe use that more.
4867         * lib/diagramdata.[ch]: 
4868         * app/filedlg.c (file_export_ok_callback): 
4869         * app/diagram.c (diagram_finalize): DiagramData now a GObject.
4871         * app/dia-props.c (diagram_properties_respond): 
4872         * app/diagram.c (diagram_set_modified): 
4873         * app/undo.c: 
4874         * app/disp_callbacks.c: 
4875         * app/commands.c: 
4876         * app/load_save.c (diagram_save): 
4877         Better handling of undo and modified status -- only diagram
4878         properties and page setup explicitly set modified status, all
4879         other important changes should be done through the undo stack
4880         now.
4882 2004-05-04  Lars Clausen  <lars@raeder.dk>
4884         * app/app_procs.c (app_init): Consistently open a new diagram if
4885         none specified, with standard name Diagram1.dia.
4887         * app/layer_dialog.c: 
4888         * app/diagram.c (diagram_finalize): 
4889         * app/commands.c (dialogs_layers_callback): 
4890         * app/filedlg.c (file_export_ok_callback): 
4891         * app/app_procs.c (app_exit): 
4892         * app/display.c (display_set_active): 
4893         * app/interface.c (dia_dnd_file_drag_data_received): 
4894         * app/recent_files.c: 
4895         Undone attempt at unifying the multi-diagram windows (like
4896         layers).  It broke the layers and didn't make much sense for the
4897         diagram properties dialog anyway.
4899         * lib/group.c: 
4900         * lib/diatypes.h: 
4901         * lib/diagramdata.c: 
4902         * lib/object.h: 
4903         * lib/object.c: Undone attempts at GObject'ifying DiaObject -- too
4904         many subclasses have to be fixed.  Fixed remaining
4905         Object/ObjectType renaming issues.
4907 2004-05-02  Lars Clausen  <lars@raeder.dk>
4909         * lib/object.[ch]: Making DiaObject a GObject.  Now can I avoid
4910           having to make all the children objects conform to
4911           GObject style at once?  Warning!  Does not compile right now.
4913         * many, many files: Rename Object to DiaObject in preparation for
4914           making it a GObject.
4915         
4916         * app/diagram.[ch]: Turn diagram into a real GObject.
4918         * app/pagesetup.c: 
4919         * app/filedlg.c: Correctly ref and unref diagram. 
4921         * lib/diagramdata.h: Starting to turn it into a GObject as well.
4923 2004-05-02  Lars Clausen  <lars@raeder.dk>
4925         * lib/object.[ch]: Starting to convert Object to DiaObject, son of
4926         GObject. 
4928         * app/dia-props.c: Undo the attempt at making it really
4929         multi-diagram, now going for a one-diagram dialog.
4931 2004-04-30  Lars Clausen  <lars@raeder.dk>
4933         * app/undo.c: Undoing broken undo stuff for diagram properties and
4934         page setup.  Shouldn't be mixed into undo at all.
4936         * app/render_gdk.c (draw_pixel_line): Use the dash-setting
4937         function to avoid in particular the grid crawling.
4939         * lib/diagdkrenderer.[ch] (dia_gdk_renderer_set_dashes): Function
4940         to allow aligning dashes, so they don't crawl.
4942 2004-04-28  Lars Clausen  <lars@raeder.dk>
4944         * app/Makefile.am: New files diacanvas.[ch]
4946         * app/interface.c (create_display_shell): Use new diacanvas that
4947         allows placing widgets on canvas, for text edit.
4949         * lib/object.h: 
4950         Early work towards rotation.  No implementation yet.
4952         * app/layer_dialog.c (undo_layer): 
4953         * objects/network/bus.c (bus_create_change): 
4954         * objects/standard/box.c (aspect_create_change): 
4955         * objects/standard/ellipse.c (aspect_create_change): 
4956         Use g_new0 for change struct.
4958         * app/undo.c (diagram_change_apply_or_revert): 
4959         Support for undo of diagram properties and page setup.
4961         * app/disp_callbacks.c (ddisplay_canvas_events): 
4962         * lib/text.h: 
4963         * lib/diagramdata.h: 
4964         * app/modify_tool.c (click_select_object): 
4965         * lib/text.c (text_register_editable): 
4966         Starting work on new text editing model.  Guarded by #ifdef so
4967         far. 
4969 2004-04-07  Lars Clausen  <lars@raeder.dk>
4971         * app/recent_files.c (open_recent_file_callback): 
4972         * app/interface.c (origin_button_press): 
4973         * app/filedlg.c (file_open_ok_callback): 
4974         * app/display.c: 
4975         * app/diagram.[ch]: 
4976         * app/commands.c (dialogs_layers_callback): Using new
4977         diagram_set_current() function to ensure auxilliary windows are
4978         updated. 
4980         * app/layer_dialog.c: Trying to unify with dia-props.  Diagram
4981         menu now borken.  *sniff*
4983         * app/dia-props.c: Diagram properties window attempted
4984         persistentified.  Trying to make more like layer dialog (since it
4985         already changes when the diagram changes), but some things still
4986         borken. 
4988 2004-04-06  Lars Clausen  <lars@raeder.dk>
4990         * lib/dialinechooser.[ch] (dia_line_chooser_set_line_style): 
4991         * lib/attributes.c (attributes_set_default_line_style): 
4992         * app/interface.c (create_lineprops_area): 
4993         Make line style persistent as well.  Added function to directly
4994         set the style and dashlength of a dialinechooser. 
4996 2004-04-03  Lars Clausen  <lars@raeder.dk>
4998         * objects/standard/ellipse.c (ellipse_move_handle, ellipse_copy):
4999         Copy the ellipse extra handle correctly.
5001         * objects/standard/box.c (box_move_handle): Move definitions
5002         according to bug #138925.
5004 2004-04-02  Lars Clausen  <lars@raeder.dk>
5006         * app/recent_files.c: Use absolute name for recent files list.
5008         * lib/attributes.c: Set start and end arrow types, correctly.
5010         * lib/widgets.c (dia_arrow_selector_set_arrow): Use new function
5011         to get arrow index.
5013         * lib/diaarrowchooser.[ch]: Support for setting arrow info.
5015         * app/interface.c (create_lineprops_area): Set persistently stored
5016         arrow info.
5018         * lib/arrows.[ch]: New function to get arrow index (in arrow_types)
5019         from arrow type.
5021         * lib/dia_dirs.c: dia_get_absolute_path now creates a canonical
5022         path (i.e. without '.' or '..').  Not tuned for Win32 yet.
5024         * plug-ins/xfig/xfig-import.c: Redone ordering of import to comply
5025         with what xfig does.  Text now converted from latin-1 to utf-8
5026         (latin-1, since that's what xfig seems to use.  Would like to see
5027         examples of non-latin-1 figs).  String case problems fixed.
5029 2004-04-01  Lars Clausen  <lars@raeder.dk>
5031         * lib/attributes.c: 
5032         * app/interface.c: Default arrows now stored persistently, too.
5034         * lib/arrows.[ch]: New function to get arrow type from name.
5036         * app/color_area.c (color_area_create): 
5037         * lib/attributes.c: 
5038         * app/linewidth_area.c: Also persistent colors and line width.
5039         That was easy.  Arrows and line style will take a bit more work,
5040         but not much.
5042 2004-04-01  Lars Clausen  <lars@raeder.dk>
5044         * app/preferences.c:   All preferences are now
5045         handled by persistence, old prefs load and store code is gone.
5047         * lib/persistence.[ch]: Added string and color persistents.  This is
5048         a different string from the one used in the printer dialog, that
5049         one has a GtkEntry attached -- may want to make that one an
5050         encapsulation of this one or something.
5052 2004-03-31  Lars Clausen  <lars@raeder.dk>
5054         * app/app_procs.c: Do persistence before prefs.  Prefs are to be
5055         phased out anyway.
5056         
5057         * lib/persistence.[ch]: 
5058         * app/preferences.c: Adding persistence for integers, reals,
5059         booleans.  Fixed stupid list bug.  Test persistence for prefs.
5061 2004-03-30  Lars Clausen  <lars@raeder.dk>
5063         * app/recent_files.c: 
5064         Debugging of deallocation.
5065         
5066         * lib/widgets.c: 
5067         Font menu now uses persistence.  Ordering needs fixing, or it must
5068         be sorted.
5070         * lib/libdia.def: 
5071         * lib/Makefile.am (libdia_la_SOURCES): 
5072         * app/Makefile.am (dia_core_files): 
5073         * app/persistence.[ch]: 
5074         * lib/persistence.[ch]: Moved to lib as widgets need it.  Also a
5075         number of fixes, including multiple entries now being read
5076         properly.  Still some oddity about the persistent list having the
5077         role as first entry (which makes the font menu crash after a few
5078         iterations). 
5080 2004-03-26  Lars Clausen  <lars@raeder.dk>
5082         * app/persistence.c:
5083         * app/recent_files.[ch]: Redoing the recent-files list using
5084         persistence, reducing code by about 50%.  Still a problem when
5085         selecting an item from the menu -- possibly it doesn't like the
5086         menu being destroyed while in the callback?
5088 2004-03-25  Lars Clausen  <lars@raeder.dk>
5090         * app/persistence.c (persistence_load_string): Missing semicolon?!?
5092 2004-03-24  Lars Clausen  <lars@raeder.dk>
5094         * RELEASE-PROCESS: 
5096         * app/persistence.[ch]: 
5097         * app/paginate_psprint.c (diagram_print_ps): New type of data can
5098         be stored persistently:  Strings.  Only the printer command/file
5099         go in here now, but things like creator, organization, diagram
5100         comments etc could also be handled this way.
5102         * objects/standard/beziergon.c (beziergon_draw): Avoid control
5103         lines when the object is not selected.
5105 2004-03-23  Lars Clausen  <lars@raeder.dk>
5107         * lib/connectionpoint.h: 
5108         * app/load_save.c: Allow connection points to have names, and
5109         handle that in load/store.
5111         * lib/dialibartrenderer.c: Better highlighting for text.
5113         * lib/diagdkrenderer.h (struct _DiaGdkRenderer): 
5114         * lib/diagdkrenderer.c: Better highlighting for all, using same
5115         principles as libart highlighter.
5117 2004-03-22  Lars Clausen  <lars@raeder.dk>
5119         * lib/dialibartrenderer.[ch]: 
5120         * lib/diagdkrenderer.c: 
5121         * lib/object.h: 
5122         * app/object_ops.c:
5123         * app/diagram.[ch]:
5124         * app/display.[ch]:
5125         * app/Makefile.am: 
5126         * app/modify_tool.c: 
5127         * app/create_object.c: 
5128         * app/highlight.[ch]: 
5129         Added simple object highlighting.  In GDK rendering, highlights
5130         the bbox, in libart highlights the outline of the object (except
5131         for texts).
5133 2004-03-22  Lars Clausen  <lars@raeder.dk>
5135         * RELEASE-PROCESS: Added info on how to do a branch for
5136         development during release process.
5138 2004-03-20  Lars Clausen  <lars@raeder.dk>
5140         * RELEASE-PROCESS: Mention PATCH keyword in release process.
5142 2004-03-19  Lars Clausen  <lars@raeder.dk>
5144         * xmldocs.make: Fixed apparent uninstall error.
5146         * config.h.win32: 
5147         * doc/en/dia-manual.xml: 
5148         * doc/pl/dia-manual.xml: 
5149         * dia.spec: 
5150         * configure.in: 
5151         * NEWS: Version 0.93-pre1.
5153         * lib/dialinechooser.[ch]: Patch from pborelli@katamail.com (paolo
5154         borelli):  Remove some deprecated stuff.
5156 2004-03-18  Lars Clausen  <lars@raeder.dk>
5158         * Makefile.am: Try better uninstall thing for scrollkeeper.
5160         * objects/ER/entity.c: 
5161         * lib/arrows.[ch]: Patch from Georg Lothar Thimm
5162         <MGEORG@ntu.edu.sg>: Adds new ER arrows 1 or many, 0 or many, 0 or
5163         1, 1 exactly, as well as associative ER entities.
5165 2004-03-17  Lars Clausen  <lars@raeder.dk>
5167         * Makefile.am: Make distcheck not complain about scrollkeeper
5168         problems (as per advice from James Henstridge).
5170         * doc/pl/*.{xml,sgml}: Converted SGML manuals to XML to get better
5171         standard installation.
5173         * objects/standard/ellipse.c: Better strings for object menu.
5175         * app/sheets_dialog_callbacks.c: Fixed crashes from broken caching
5176         of dialogs (shame on you, glade!)
5178         * objects/custom/custom_object.c (custom_setup_properties):
5179         Removed debugging output
5181         * app/paginate_psprint.c (diagram_print_ps): Slightly more
5182         readable printer error messages.
5184         * xmldocs.make: 
5185         * omf.make: 
5186         * doc/en/Makefile.am: 
5187         * doc/pl/Makefile.am: 
5188         New more standard way to install the XML-based manuals.  
5190 2004-03-15  Lars Clausen  <lars@raeder.dk>
5192         * objects/standard/box.c (box_move_handle): More intuitive fixed
5193         aspect behaviour.
5195         * objects/standard/ellipse.c: 
5196         * objects/standard/box.c: 
5198         * lib/widgets.[ch]:
5199         * app/layer_dialog.[ch]:
5200         Patch from Steve Langasek <vorlon@debian.org>:
5201         Fixes startup crash on Alpha (bug #137169)
5202         
5203         * objects/standard/box.c: Aspect fixing like ellipses.
5205         * app/Makefile.am (dia_core_files): Include dia-app-icons.h
5207         * lib/pixmaps/Makefile.am (imagedir): Better Makefile.am for
5208         pixmaps, now can uninstall properly.
5210         * objects/standard/ellipse.c: Patch from dooms@info.ucl.ac.be:
5211         Fixed and circle aspect ratios for ellipses.  Bug #137156, #87966,
5212         #93940. 
5213         Added object menu access.
5215 2004-03-07  Hans Breuer  <hans@breuer.org>
5217         * lib/diaarrowchooser.c lib/dialinechooser.c : #undef
5218         GTK_DISABLE_DEPRECATED (I'd rather like if these widgets
5219         would not use deprecated apis, but it's much simpler this way)
5221         * lib/makefile.msc : build the above new widgets and render_pixmap
5222         * lib/libdia.def app/dia.def app/makefile.msc : updated
5224         * app/disp_callbacks.c : fix gccisms (without being able to make much sense of 
5225         what I saw, i.e. how big is an empty array supposed to be ? ;-). 
5226         Previously it gave :
5227         disp_callbacks.c(188) : error C2059: syntax error : '}'
5228         disp_callbacks.c(191) : warning C4034: sizeof returns 0
5230         * app/interface.c : #include "dialinechooser.h"
5232         * lib/diagdkrender.c : make the !HAVE_FREETYPE case compile again
5233         [one more reason not to use it here : it's quite slow compared to
5234          the native win32 font renderer ;]
5236         * app/app_procs.c app/filedlg.c : gtk_widget_destroy does not take
5237         a GtkDialog*, removed unneeded cast
5239         * app/render_eps.c : avoid assignment warning for void* user_data
5240         not being an int 
5242 2004-03-06  Steffen Macke sdteffen@web.de>
5244         * shapes/Map/Isometric/Makefile.am: added Makfile for Isometric
5245         shapes
5247 2004-03-06  Lars Clausen  <lars@raeder.dk>
5249         * lib/arrows.h (DEFAULT_ARROW_SIZE): Downed default arrow size to
5250         0.5, as per poll.
5252         * lib/font.c: Simple cleanup system for layout cache removes any
5253         layout that hasn't been used for 10 minutes, but only during idle
5254         time. 
5256 2004-03-05  Lars Clausen  <lars@raeder.dk>
5258         * sheets/Electric.sheet.in: Added patch from padro@lsi.upc.es
5259         (lluis padro) (#130887): Extended Electric shapes with vertical
5260         versions. 
5262         * sheets/Cybernetics.sheet.in: Normalize shape descriptions (never
5263         start with "Create a" or "A", always capitalize first word).
5265         * objects/standard/ellipse.c: Patch from Grégoire Dooms
5266         <dooms@info.ucl.ac.be>: Add extra connection point in center of
5267         ellipse.  Additionally added a handle in the center, and resize is
5268         now around the center.
5270         * configure.in: 
5271         * sheets/Makefile.am (SUBDIRS): 
5272         * sheets/IsometricMap.sheet.in: 
5273         * shapes/Map/Isometric/*
5274         * shapes/Makefile.am (SUBDIRS): Added Isometric shapes.
5276 2004-03-04  Lars Clausen  <lars@raeder.dk>
5278         * lib/Makefile.am: 
5279         * lib/pixmaps/Makefile.am: 
5280         * configure.in: 
5281         Better installation handling of pixmaps.
5282         
5283         * lib/diagdkrenderer.c: 
5284         * lib/diagtkfontsel.h (struct _DiaGtkFontSelectionClass): 
5285         * lib/diagtkfontsel.c (dia_gtk_font_selection_show_available_fonts): 
5286         Constness fixes.
5288 2004-03-03  Lars Clausen  <lars@raeder.dk>
5290         * lib/diagtkfontsel.h (struct _DiaGtkFontSelection): 
5291         * lib/diagdkrenderer.c: 
5292         * lib/diasvgrenderer.c:
5293         * lib/dialibartrenderer.c:
5294         * lib/diainteractiverenderer.c: 
5295         * lib/prop_text.c (multistringprop_handle_key): 
5296         * lib/dia_dirs.c: 
5297         * lib/dia_image.c (dia_image_rgba_data): 
5298         * lib/widgets.c: 
5299         * lib/diagramdata.c (layer_set_object_list): 
5300         * lib/font.h: 
5301         * lib/font.c: 
5302         Getting rid of compile warnings.
5304         * lib/widgets.c: Handle destroy properly, i.e. unref the two extra
5305         images.  Also remove unused decls.
5307 2004-03-02  Lars Clausen  <lars@raeder.dk>
5309         * lib/widgets.h: 
5310         * lib/widgets.c (dia_size_selector_init): Add images to the size
5311         selector chain widget.  Also new function to load installed images
5312         from files (better than from included XPM, IMHO).
5314 2004-03-02  Lars Clausen  <lars@raeder.dk>
5316         * lib/libdia.def: 
5317         * lib/pixmaps/[un]broken-chain.xpm: Icons stolen from GIMP for the
5318         size selector.
5320         * lib/Makefile.am: 
5321         * lib/widgets.c (dia_size_selector_init): Work
5322         on getting proper icon onto the size selector.  Need simple image
5323         load mechanism in utils.
5325         * lib/text.c: 
5326         * app/display.[ch]:
5327         * app/disp_callbacks.c: Patch from kou@cozmixng.org: Show preedit
5328         strings, handle utf8 strlen properly.  Bug #135930.
5330 2004-03-01  Lars Clausen  <lars@raeder.dk>
5332         * shapes/Cybernetics/*:
5333         * sheets/Cybernetics.sheet.in:
5334         * sheets/Makefile.am:
5335         * shapes/Makefile.am: 
5336         * configure.in: Patch from charly.meyer@t-online.de (Thorsten
5337         Roggendorf): Cybernetic shapes (#95553).
5339 2004-03-01  Lars Clausen  <lars@raeder.dk>
5341         * app/Makefile.am: Fixed $(EXEEXT) warning from automake.
5343         * lib/diatypes.h: New type DiaSizeSelector.
5345         * lib/widgets.[ch]: New size selector widgets that selects two
5346         values (width and height, nominally) optionally linked to keep
5347         aspect ratio.
5349 2004-03-01  Hubert Figuiere  <hfiguiere@teaser.fr>
5351         * plug-ins/svg/render_svg.c (new_svg_renderer): Add DTD declaration
5352         in front of file. Bug #128600.
5354         * app/Makefile.am:
5355         * app/interface.h:
5356         * app/lineprops_area.[ch]:
5357         * lib/Makefile.am:
5358         * lib/dialinechooser.[ch]:
5359         * lib/widgets.c (dia_line_style_selector_init): use line preview 
5360         instead of text labels. This involve moving away line_chooser to lib
5361         from app.
5363         * lib/diaarrowchooser.[ch] (close_and_hide): Make static to avoid
5364         symbol conflicts.
5366         * app/Makefile.am (dia_core_files): 
5367         * app/interface.c (create_lineprops_area):
5368         * app/render_pixmap.[ch]:
5369         * lib/Makefile.am:
5370         * lib/diaarrowchooser.[ch]:
5371         * lib/libdia.def:
5372         * lib/prop_attr.c:
5373         * lib/propdialogs.c:
5374         * lib/render_pixmap.[ch]:
5375         * lib/widgets.c (dia_arrow_fill_menu): Use arrow preview instead
5376         of text labels. This involve moving away arrow_chooser to lib from
5377         app.
5379 2004-02-29  Lars Clausen  <lars@raeder.dk>
5381         * objects/UML/class.[ch]: Puny kludge to avoid GtkList objects
5382         being updated half-way through destruction.  To be removed when
5383         the lists are replaced by something better.
5385         * objects/UML/class_dialog.c: Patch from luc@handhelds.org:
5386         Accelerators for class dialog.  Bug #130995.
5387         Patch from luc@handhelds.org: Better aligning of widgets.  Bug #130994.
5389         * app/dia-props.c:
5390         * app/preferences.c:
5391         * lib/properties.c:
5392         * objects/GRAFCET/step.c:
5393         * objects/Misc/analog_clock.c:
5394         * objects/chronogram/chronoline.c:
5395         * objects/chronogram/chronoref.c:
5396         Change to american spelling (color, not colour) to ease
5397         translators job.  Note that a number of translations may need an
5398         update now.  Bug #120466.
5400 2004-02-29  Lars Clausen  <lars@raeder.dk>
5402         * plug-ins/xfig/xfig-export.c: Patch from solworth@cs.uic.edu:
5403         Better arrow handling for missing arrows.
5405         * plug-ins/metapost/render_metapost.[ch]: Patch from
5406         phred@cs.berkeley.edu (Fred Reiss): Add font faces and font
5407         size. See bug #135363.
5409         * app/app_procs.c (app_init): If non-interactive, or if
5410         --log-to-stderr used, send all messages to stderr.  This should
5411         mean that old diaconv == dia --export-to-format=FOO BAR
5413 2004-02-29  Hubert Figuiere  <hfiguiere@teaser.fr>
5415         * app/menus.c: Get rid of GNOME menus. Deprecated APIs in GNOME 2.
5417 2004-02-28  Lars Clausen  <lars@raeder.dk>
5419         * lib/text.c (text_key_event): Patch from Kouhei Sutou
5420         <kou@cozmixng.org>: Fix wrong utf8 strlen handling.
5422 2004-02-27  Lars Clausen  <lars@raeder.dk>
5424         * KNOWN_BUGS: Added info on most commonly reported bugs, with
5425         BugZilla numbers.
5426         
5427         * app/disp_callbacks.c (popup_object_menu): Unified properties
5428         entry, fixes bug #105080.
5430         * app/diagram.c (diagram_update_menu_sensitivity): 
5431         * app/menus.h (struct _UpdatableMenuItems): 
5432         * app/menus.c (menus_initialize_updatable_items): Menu items
5433         changed around, align menus flattened, properties entry ghosted,
5434         dialogs menu removed, more shortcuts added.  Closing bugs #94018,
5435         #117495, #135125.
5436         Also taking out Gnome menus for now.  They don't allow shortcuts,
5437         so what are they good for?
5439 2004-02-27  Lars Clausen  <lars@raeder.dk>
5441         * app/menus.c (display_menu_items): 
5442         * app/commands.[ch]: Added duplicate menu item from Alan Horkan
5443         (bug #95546).
5445 2004-02-24  Adam Weinberger  <adamw@FreeBSD.org>
5447         * configure.in: Added 'en_CA' (Canadian English) to ALL_LINGUAS.
5449 2004-02-23  Lars Clausen  <lars@raeder.dk>
5451         * app/app_procs.c (app_init): Comments for translators.
5453 2004-02-22  Hubert Figuiere  <hfiguiere@teaser.fr>
5455         * app/preferences.c (prefs_create_dialog): Change packing policy
5456         for widget to expand.
5458         * app/Makefile.am (run_dia.sh): Fixed a typo in wrapper that prevented
5459         running with a debugger.
5461 2004-02-19  Lars Clausen  <lars@raeder.dk>
5463         * app/undo.[ch]: Adding last-saved information to undo to allow a
5464         diagram with all changes since last save undo to be marked as
5465         nonmodified.  Still needs integration with actual undo
5466         apply/revert calls.
5468         * app/diagram.h: 
5469         * app/diagram_tree.c (diagram_tree_update): 
5470         * app/diagram.c: 
5471         * app/display.c (update_modified_status): 
5472         * plug-ins/python/pydia-diagram.c (PyDiaDiagram_GetAttr): 
5473         * app/autosave.c (autosave_check_autosave): Encapsulate modifed
5474         test. 
5476         * app/render_eps.[c]: Restructure to better handle PS vs. EPS
5477         vs. EPSI, comment out EPSI until preview is in there.
5479         * lib/render.c: 
5480         * lib/diarenderer.c: Removing debugging printfs.
5482         * app/diapsrenderer.[ch]: Preparations for proper EPSI rendering
5483         (with preview)
5485         * objects/standard/arc.c (arc_update_handles): Check to avoid
5486         crash when start and end points are the same.
5488 2004-02-19  Lars Clausen  <lars@raeder.dk>
5490         * objects/standard/bezier.c: 
5491         * objects/standard/line.c (line_load): 
5492         * objects/standard/polyline.c (polyline_load): 
5493         * objects/standard/zigzagline.c (zigzagline_load): 
5494         * objects/standard/arc.c (arc_load): 
5495         * lib/widgets.h (DEFAULT_ARROW_WIDTH): Use DEFAULT_ARROW_SIZE
5496         instead of hardcoding.
5498 2004-02-18  Hubert Figuiere  <hfiguiere@teaser.fr>
5500         * app/disp_callbacks.c (popup_object_menu): append a menu item to 
5501         display properties.
5503 2004-02-17  Hubert Figuiere  <hfiguiere@teaser.fr>
5505         * app/app_procs.c: declare rc properly with the proper #ifdef
5507 2004-02-17  Lars Clausen  <lars@raeder.dk>
5509         * plug-ins/xfig/xfig-import.c: Correct ordering of imported FIG
5510         objects (which seemingly FIG itself breaks, or else there is no
5511         ordering).
5513 2004-02-16  Lars Clausen  <lrclause@cs.uiuc.edu>
5515         * plug-ins/xfig/xfig-export.c (figLineWidth): Check for minimum
5516         width renderable in xfig.  Helps on bug #133637, but does not
5517         quite fix it -- something about depth is wrong.
5519         * plug-ins/xslt/xslt.[ch]: Patch #133913 from phenning@lanl.gov:
5520         Extern definitions for Mac compilation.
5522         * app/app_procs.c: Patch #131159 from J. H. M. Dassen
5523         (jdassen@debian.org): Include fix.
5525         * app/interface.c: Patch #130100 from luc@handhelds.org:  Make
5526         sure the initial diagram size is correct.
5528 2004-02-15  Lars Clausen  <lrclause@cs.uiuc.edu>
5530         * lib/Makefile.am (AM_CPPFLAGS): Override AM_CPPFLAGS instead of
5531         CPPFLAGS, as per automake warning.
5532         * app/Makefile.am (AM_LDFLAGS): Override AM_LDFLAGS instead of
5533         LDFLAGS, as per automake warning.
5534         (run_dia.sh): More robust creation, and more easily moved.
5536         * app/undo.c (group_objects_revert): Don't double-free the objects
5537         list.  (#129221) Call object_add_updates on grouped objects.
5538         (ungroup_objects_revert): Call object_add_updates on grouped objects.
5540         * lib/diagramdata.c: Internal
5541         documentation. 
5543         * lib/polyshape.c (polyshape_update_data): Correctly calculate
5544         directions for polyshape corners (thanks, Valgrind!)
5546         * lib/attributes.c: 
5547         * lib/prop_attr.c (arrowprop_load): Use default arrow size.
5549         * lib/arrows.h: Default arrow size defined.  After all are using
5550         this, may lower to 0.4 or so.
5552         * app/lineprops_area.[ch]: New function to set the arrow type for an
5553         arrow chooser.
5555         * app/interface.c (create_lineprops_area): Set default line to
5556         have an arrow (fairly likely to be what's wanted, plus it shows
5557         the user where arrows are set).
5559         * app/app_procs.c: #ifdef HAVE_POPT popt args to process_opt
5561 2004-02-14  Lars Clausen  <lrclause@cs.uiuc.edu>
5563         * plug-ins/metapost/render_metapost.c (draw_with_linestyle):
5564         Dotted lines should use dot_length, not dash_length.
5566 2004-02-06  Hans Breuer  <hans@breuer.org>
5568         * app/interface.c : don't use gtk_drawing_area_size() to avoid
5569         the defaut size being also the minimum size. Instead use
5570         gtk_window_set_default_size() on the display shell. Fixes #130982.
5572         [fixing #131210, but umlauts in the 'main' filename still not really 
5573          supported on systems where filesystem encoding != utf8
5574         (Problems with recent file menu and window title)]
5575         * lib/dia_xml.[hc] : add data_filename() and data_add_filename()
5576         to deal with possible differnces in filename encodings, see
5577         g_filename_<to|from>_utf8()
5578         * objects/standard/image.c : use them.
5580         * lib/widgets.c : handle possible encoding difference here, too.
5581         Also get rid of most warnings by using const and GTK casts where 
5582         appropriate; one wrong cast (probably causing a crash) was found/fixed 
5583         by this - the remaining give a hint on finally leaking FontSelectorEntry.
5585         * lib/widgets.[hc] : hide _DiaFileSelector and *Class in .c. Modified
5586         dia_file_selector_<get|set>_file to behave like the respective Gtk 
5587         functions do : encoding- and const-wise ;-)
5589 2004-02-01  Robert Sedak  <robert.sedak@sk.htnet.hr>
5591         * configure.in: Added "hr" (Croatian) to ALL_LINGUAS.
5593 2004-01-19  Hans Breuer  <hans@breuer.org>
5595         * app/app_procs.c app/diaconv : 
5596         only call bind_textdomain_codeset when available, what's good 
5597         for The Gimp (bug #131215) can't be wrong for Dia : bug #125926
5598         * config.h.win32 : define HAVE_BIND_TEXTDOMAIN_CODESET
5600 2004-01-19  Steffen Macke <sdteffen@web.de>
5602         * makefile.msc: updated for new GAIM-like installer build; sync'ed
5603         ALL_LINGUAS with configure.in
5605 2004-01-18  Hans Breuer  <hans@breuer.org>
5607         * app/app_procs.c (myXmlErrorReporting) : avoid possible crash 
5608         by not passing NULL to g_print()
5610         * app/interface.c (create_toolbox) : actually use
5611         persitence_register_window() to restore toolbox window size
5613         * app/makefile.msc lib/makefile.msc : allow to deselect
5614         building with Freetype by command line to nmake like :
5615                 nmake -f makefile.msc "NOFT2=1"
5617         * plug-ins/python/diasvg_import.py : handle 'stroke-array' as
5618         far as possible with Dia's limited line style
5619         * plug-ins/python/pydia-property.c : allow to get and set
5620         Linestyle, style and dash(length)
5622         * lib/object.h : removed typedef for ObjectId not use anywhere
5624 2004-01-17  Hans Breuer  <hans@breuer.org>
5626         * objects/custom/shape_info.[hc] objects/custom/custom_object.c
5627           doc/shape.dtd doc/custom-shapes : 
5628         support for images in custom shapes, also removed some long-time
5629         dead code
5631         * doc/en/*.xml : fixed crippled line ends which get created
5632         when windoze line ends are checkin from the unix side
5634 2004-01-13  Laurent Dhima  <laurenti@alblinux.net>
5636         * configure.in: Added "sq" to ALL_LINGUAS.
5638 2004-01-11  Hans Breuer  <hans@breuer.org>
5640         [more less leaks ;-]
5641         
5642         * objects/SADT/annotation.c : use text_destroy() not g_free()
5643         
5644         * objects/chronogram/chronoline.c : neither leak chronoline::events
5645         nor chronoline::name
5647         * objects/wpg/wpg.c : don't g_free() but g_object_unref(renderer);
5649 2004-01-11  Hans Breuer  <hans@breuer.org>
5651         * lib/properties.h :
5652         * objects/custom/custom_object.c : more properties optional
5653         to be backward compatible for older diagrams not having them 
5654         set. (Try to load samples/all_objects.dia)
5655         
5656         [less memory leaks thanks valgrind ;-]
5657         
5658         * app/recent_files.c (recent_file_history_write) : 
5659         g_free(history_filename);
5660         (recent_file_menu_item) : use g_path_get_basename() 
5661         which already strdups, free result of g_strescape()
5662         
5663         * app/filedlg.c (create_export_menu) : return of
5664         filter_get_export_filter_label() must be g_free()'d
5665         (create_open_menu) : same for import
5666         
5667         * app/export_png.c (export_png_ok) : destroy info ptr
5668         with png_destroy_write_struct()
5669         
5670         * app/app_procs.c (app_init) : g_free(export_format_string);
5671         
5672         * lib/font.c (dia_font_finalize) : finalize parent_class, too
5673         (dia_font_new_from_style) : stop leaking almost all DiaFont by not
5674         refing it a second time, g_type_create_from_instance() is enough
5675         
5676         * lib/object_defaults.c (_obj_store) : don't mess with names
5677         len 0 (should avoid 'Invalid read of size 1, but doesn't ;)
5678         
5679 2004-01-11  Steffen Macke <sdteffen@web.de>
5681         * app/diapsftrenderer.c: including ftoutln.h
5682         * app/makefile.msc: updated for freetype build
5683         * lib/libdia.def: added dia_font_get_context()
5684         * lib/dialibartrenderer.c (draw_string): added cast
5685         
5686 2004-01-10  Hans Breuer  <hans@breuer.org>
5688         * lib/diagdkrenderer.c (draw_string) : gdk_draw_line with
5689         transformed coordinates, fixes bug 130804
5691 2004-01-10  Hans Breuer  <hans@breuer.org>
5693         * app/filedlg.c app/app_procs.c : don't try to destroy 
5694         'gtk_dialog_run'-dialogs dialogs by connecting to the "response"
5695         signal but simply by gtk_widget_destroy() after gtk_dialog_run()
5696         returns. Fixes 'has no handler' bugs like #121019
5698 2004-01-10  Hans Breuer  <hans@breuer.org>
5700         * objects/UML/class.c objects/UML/class_dialog.c : 
5701         handle umlclass->name being empty to avoid, i.e. fix #127968
5703         [plugging memleaks, thanks valgrind :-]
5704         
5705         * lib/dia_xml.c (data_string) : don't leak return value
5706         of xmlNodeListGetString()
5707         
5708         * lib/dia_xml.c (xml_file_check_encoding) : g_free(buf)
5709         before returning, maybe alloca() would be the better 
5710         choice but anyway ;)
5712         * objects/custom/custom_object.c:306 : adde xmlFree(str) below
5713         
5714         * lib/font.c (dia_font_build_layout) : don't leak result
5715         of g_utf8_strdown()
5716         
5717         * lib/diagdkrenderer.c (draw_string) : don't leak rgba
5718         (this is the one which got me started using valgrind, see #130816)
5719         
5720 2004-01-07  Sanlig Badral  <badral@openmn.org>
5722         * configure.in: Added "mn" to ALL_LINGUAS.
5724 2004-01-04  Hans Breuer  <hans@breuer.org>
5726         * lib/diagdkrenderer.c : replace rendering of really small (height
5727         less than 2 pixels) with a simple dashed line, you wont notice the 
5728         differnce beside it being much faster. This allows ...
5729         * lib/diagdkrenderer.h : ... to remove gboolean rendertext ...
5730         * app/navigation.c : ... and lets you see an read rendered text even 
5731         in the nice navigation popup.
5733         * lib/dialibartrenderer.c : FONT_SCALE defined as 1.0 for G_OS_WIN32, too. 
5734         (draw_string) : don't leak temporary image
5736 2004-01-04  Hans Breuer  <hans@breuer.org>
5738         * app/dia-app-icons.h : TODO : to be removed when autogenerated on *NIX, too.
5739         * app/interface.c : use dia-app-icons.h to give Dia window icons
5741         * lib/dia_image.c lib/color.c : _never_ call functions implemented
5742         in app/ from lib/. It is not portable and broken from design
5743         * app/app_procs.c : call color_init() and dia_image_init() conditional,
5744         i.e. only if running interactive.
5746         * lib/font.h : #include <time.h>
5748         * lib/libdia.def : updated externals
5750         * objects/UML/actor.c 
5751             objects/UML/association.c (todo)
5752           objects/UML/branch.c
5753           objects/UML/class.[hc] objects/UML/class_dialog.c
5754           objects/UML/classicon.c
5755           objects/UML/component.c 
5756           objects/UML/constraint.c
5757           objects/UML/dependency.c
5758           objects/UML/generalization.c
5759           objects/UML/implements.c
5760           objects/UML/large_package.c
5761           objects/UML/lifeline.c
5762           objects/UML/message.c
5763           objects/UML/node.c
5764           objects/UML/object.c
5765           objects/UML/realizes.c
5766           objects/UML/small_package.c
5767           objects/UML/state.c
5768           objects/UML/usecase.c
5769           objects/UML/
5770         : ported coloring of most UML objects (bug #97517, orginal
5771           work Mathias Hasselmann)
5773         * lib/properties.h : add _OPTIONAL variants for 
5774         PROP_STD_(LINE|FILL|TEXT)_COLOUR which allows to load old -
5775         i.e. default colored - UML diagrams without complaining
5776         * lib/proplist.c lib/propoffsets.c : avoid setting _OPTIONAL,
5777         not set properties with the help of PXP_NOTSET. Otherwise 
5778         optional attributes would lead to wrong initialization. 
5780         * lib/widgets.[hc] : moved _DiaFontSelector from .h to .c
5781         to hide details and restict #undef GTK_DISABLE_DEPRECATED to .c
5782         Same for most other selectors which probably should be rewritten
5783         to the combo box with tree model from Gtk+ 2.4
5785 2004-01-04  Lars Clausen  <lrclause@cs.uiuc.edu>
5787         * INSTALL (PLATFORM NOTES): Mention the Gnu gettext and iconv as
5788         being the Right Thing(tm) to use on Solaris.
5790         * objects/standard/bezier.c (bezierline_draw): Don't draw
5791         guidelines if not selected.
5793         * lib/object.[ch] (dia_object_is_selected): Function to check whether
5794         a given object is selected. O(n), where n is # selected objects.
5795         
5797 2004-01-03  Lars Clausen  <lrclause@cs.uiuc.edu>
5799         * lib/widgets.[ch]: Make sure old font is re-chosen when the Other
5800         Fonts dialog is closed without pressing Ok (bug #128646).
5802 2004-01-02  Lars Clausen  <lrclause@cs.uiuc.edu>
5804         * app/Makefile.am: Quote arguments correctly for run_dia.sh (bug
5805         #130099). 
5807 2004-01-01  Lars Clausen  <lrclause@cs.uiuc.edu>
5809         * INSTALL: Updated list of requirements (bug #129653)
5811         * doc/en/dia.dia: Beginning class diagram for Dia from Luc
5812         Pionchon <luc@handhelds.org>.
5814 2003-12-31  Lars Clausen  <lrclause@cs.uiuc.edu>
5816         * lib/diagdkrenderer.c (draw_string): Don't attempt to render
5817         empty or NULL strings (bug #130097).
5819 2003-12-31  Chris Sperandio <sperandi@eng.usf.edu>
5820         
5821         * plug-ins/metapost/render_metapost.c: Fixed string colorization.
5822         Added checks against color_black.
5824 2003-12-31  Lars Clausen  <lrclause@cs.uiuc.edu>
5826         * plug-ins/xfig/xfig-export.c (figArrow): Output nothing for
5827         ARROW_TYPE_NONE.  Thanks to Jon A. Solworth for showing that this
5828         can happen.
5830         * objects/UML/component_feature.c: Patch from W. Borgert
5831         <debacle@debian.org>:  Add handle to component feature text.
5833         * lib/diagdkrenderer.c (draw_string): Remove poorly placed caching.
5835         * lib/font.c: Caching PangoLayout for better rendering speed.
5837 2003-12-30  Lars Clausen  <lars@raeder.dk>
5839         * lib/dia_dirs.[ch] (dia_get_absolute_filename): New function to
5840         get absolute file name from relative.
5841         * app/recent_files.c (recent_file_history_add): Use absolute
5842         filenames for recent files menu so that files can be found when
5843         Dia is invoked from other places.  
5845         * app/app_procs.c (handle_all_diagrams): Fix for 1/3 of 130098:
5846         Actually load different diagrams if such are requested on command
5847         line.  
5849         * objects/UML/class_dialog.c (class_create_page): Fix from Luc
5850         Pionchon <luc@handhelds.org>: Correctly align labels for colors.
5852         * lib/diagdkrenderer.[ch]: From Luc: New option to GdkRenderer to
5853         remove text rendering.  May be turned into greeking at some later
5854         stage.
5856         * app/interface.c: 
5857         * app/Makefile.am (dia_core_files): 
5858         * app/navigation.[ch]: Patch from Luc Pionchon <luc@handhelds.org>:
5859         Adds navigation window a la Gimp, though without text being
5860         rendered at all.
5862 2003-12-27  Luc Pionchon <luc@handhelds.org>
5864         * app/navigation.h: (new file)
5865         * app/navigation.c: (new file) creates a navigation window with a
5866         thumbnail view of the whole diagram.
5867         * app/Makefile.am (dia_core_files): added new files.
5869         * app/interface.c (create_display_shell): added a button between
5870         the scrollbars to popup a navigation window.
5872         * lib/diagdkrenderer.h (struct_DiaGdkRenderer): added rendertext
5873         boolean
5874         * lib/diagdkrenderer.c (renderer_init): set rendertext TRUE by default
5875         * lib/diagdkrenderer.c (draw_string): returns if the renderer do
5876         not want text rendering.        
5878 2003-12-14  Lars Clausen  <lrclause@cs.uiuc.edu>
5880         * shapes/Circuit/hresistor.shape: Uses new extra attribute thing.
5882         * objects/custom/shape_info.[ch]: Cleanup.
5884         * objects/custom/custom_object.[ch]: Changed to use new props
5885         interface.
5887         * lib/properties.h: 
5888         * lib/prop_text.c: 
5889         * lib/prop_inttypes.c: 
5890         * lib/prop_geomtypes.c: Added *prop_get_data_size.
5892         * lib/libdia.def: Added object_load_props.
5894         * configure.in: Better FT2 version test, from bug #129225.
5896         * dia.spec (BuildRequires): Changed to match makefile (bug #129131)
5898         * plug-ins/xslt/dia-uml2python.xsl: Added Python sheet from Holger
5899         Lehmann <holger.lehmann@catworkx.de>.
5901         * plug-ins/xslt/Makefile.am: 
5902         * plug-ins/xslt/stylesheets.xml: Added Python, Component List,
5903         and OWL XSLT sheets.
5905 2003-12-13  Lars Clausen  <lrclause@cs.uiuc.edu>
5907         * lib/diagdkrenderer.c: Add implementation so text is still
5908         rendered.  May be improved later.
5910         * lib/dia_image.c: 
5911         * app/main.c: 
5912         * app/export_png.c: 
5913         * app/diagram.c: 
5914         * app/app_procs.c: Patch from W. Borgert <debacle@debian.org>:
5915         Allow running without a $DISPLAY!
5917         * lib/color.c: Remove warnings for non-interactive run.
5919         * doc/en/dia.dbk: 
5920         * app/export_png.c: 
5921         * app/diaconv.c: 
5922         * app/app_procs.[ch]: 
5923         Patch from W. Borgert <debacle@debian.org>: Allow a --size argument
5924         to specify size for PNG output.
5926         * app/lineprops_area.c (dia_arrow_preview_expose): Make arrows
5927         render a little smaller, so as to fit the big ones.
5929         * lib/arrows.[ch]: New arrow type from W. Borgert
5930         <debacle@debian.org>: Filled Dot and Triangle.
5932 2003-12-02  Lars Clausen  <lrclause@cs.uiuc.edu>
5934         * doc/pl/Makefile.am (install-data-hook): Fixed installation bug
5935         for gif images.
5937         * plug-ins/xslt/dia-uml2owl.xsl: Added OWL XSLT from Dan Connolly.
5939         * acinclude.m4: Better Python configure code patch (can't find
5940         author, author please speak up!)
5942 2003-12-01  Lars Clausen  <lrclause@cs.uiuc.edu>
5944         * lib/diagdkrenderer.c (get_cached_text): Stupid bugs replaced by
5945         smarter ones.
5947 2003-11-30  Hans Breuer  <hans@breuer.org>
5949         * plug-ins/python/diasvg.py : initialize self.dash_length
5950         in constructor to avoid crashing if the renderer user
5951         does not set it before first usage.
5953 2003-11-30  Lars Clausen  <lrclause@cs.uiuc.edu>
5955         * lib/diagdkrenderer.c: Start of cache GDK text renderer -- not
5956         active yet.
5958         * configure.in: 
5959         * config.h.win32: Set version number to 0.92.2+cvs to distinguish
5960         development and stable versions.
5962         * lib/text.c (text_draw): Use new renderer function to draw the
5963         text.
5965         * lib/diarenderer.h: 
5966         * lib/diarenderer.c: New renderer function "draw_text" with
5967         default implementation.  This function should eventually be the
5968         main interface, as it will be able to handle width and caching of
5969         rendering internally.  All users of draw_string should convert to
5970         use Text objects and call either renderer->draw_text or text_draw,
5971         the latter if the text can be edited in-place (as should be the
5972         goal, eventually).
5974 2003-11-29  Lars Clausen  <lrclause@cs.uiuc.edu>
5976         * shapes/Circuit/hresistor.shape: First example of extra
5977         attributes. 
5979 2003-11-28  Lars Clausen  <lrclause@cs.uiuc.edu>
5981         * plug-ins/shape/shape-export.c: 
5982         * lib/diasvgrenderer.h: 
5983         * lib/diasvgrenderer.c: 
5984         * plug-ins/svg/render_svg.c (new_svg_renderer): 
5985         Actually store the font size, using DiaRenderer's font fields.
5987 2003-11-27  Lars Clausen  <lrclause@cs.uiuc.edu>
5989         * objects/custom/shape_info.[ch]: 
5990         * objects/custom/custom_object.[ch]: 
5991         Support for extra attributes in custom objects.
5992         
5993 2003-11-23  Lars Clausen  <lrclause@cs.uiuc.edu>
5995         * app/diagram.c (diagram_update_menu_sensitivity): More
5996         intelligent checks for menu sensitivity.  Might be slow on huge
5997         diagrams, but I think other things outweigh it by a lot.
5999         * app/menus.[ch]: Make "Bring Forwards"
6000         and "Send Backwards" updateable.
6002 2003-11-22  Steffen Macke <sdteffen@web.de>
6004         * shapes/Assorted/arrow-turn-up.shape:
6005         * shapes/Assorted/arrow-turn-up.png:
6006         * sheets/Assorted/Makefile.am:
6007         * sheets/Assorted.sheet.in: Added new arrow
6009 2003-11-17  Lars Clausen  <lrclause@cs.uiuc.edu>
6011         * app/app_procs.c
6012         * app/color_area.c
6013         * app/commands.c
6014         * app/defaults.c
6015         * app/dia_embedd.c
6016         * app/diagram.c
6017         * app/diagram_tree.c
6018         * app/diagram_tree_menu.c
6019         * app/diagram_tree_window.c
6020         * app/diapagelayout.c
6021         * app/diaunitspinner.c
6022         * app/export_png.c
6023         * app/filedlg.c
6024         * app/interface.c
6025         * app/layer_dialog.c
6026         * app/lineprops_area.c
6027         * app/linewidth_area.c
6028         * app/menus.c
6029         * app/pagesetup.c
6030         * app/paginate_psprint.c
6031         * app/persistence.c
6032         * app/plugin-manager.c
6033         * app/preferences.c
6034         * app/properties.c
6035         * app/recent_files.c
6036         * app/sheets.c
6037         * app/sheets_dialog.c
6038         * app/sheets_dialog_callbacks.c
6039         * app/tool.c: Patch from Sebastien Tricaud <toady@gscore.org>:
6040         GTK-2 compatibility update, mostly gtk_foo -> g_foo.
6042         * TODO: Updated, note on EPS transparency.
6044 2003-11-07  Lars Clausen  <lrclause@cs.uiuc.edu>
6046         * objects/UML/class.c (umlclass_draw): Allow classes with no name
6047         without crashing.
6049 2003-11-01  Lars Clausen  <lrclause@cs.uiuc.edu>
6051         * config.h.win32: 
6052         * doc/en/dia-manual.xml: 
6053         * dia.spec: 
6054         * configure.in: 
6055         * NEWS: Another Brown Bag release for parenting problems,
6056         including a crash bug fix.
6058         * app/connectionpoint_ops.c (diagram_update_connections_object):
6059         Also update connections when moving children.  This can cause
6060         move_handle to be called twice, so it must be idempotent.
6062         * app/load_save.c: Loading and saving of children totally redone.
6063         Now doesn't violate assumption that all objects in a layer are
6064         placed in order in XML file.
6066         * objects/UML/branch.c (branch_create): Don't lie about being
6067         resizable. 
6069         * objects/UML/node.c (node_create): 
6070         * objects/UML/large_package.c (largepackage_create): Drag with
6071         lower right-hand handle at creation like all other objects.
6073 2003-10-28  Lars Clausen  <lrclause@cs.uiuc.edu>
6075         * app/disp_callbacks.c (ddisplay_drop_object): Change initial
6076         parenting drop to behave like a move inside, i.e. constrain place
6077         instead of trying to resize.  'Cause, resizing cannot be done for
6078         all objects (e.g. UML Class). Also simplified the algorithm a lot
6079         at the same time.
6081         * app/load_save.c: Saving and loading of connection points for
6082         children added.  Prototypes for static functions added.
6084         * lib/dynamic_obj.c: Removed debugging output.
6086 2003-10-26  Lars Clausen  <lrclause@cs.uiuc.edu>
6088         * doc/en/dia-manual.xml: 
6089         * doc/pl/dia-manual.sgml: 
6090         * dia.spec: 
6091         * config.h.win32: 
6092         * configure.in: 
6093         * NEWS: Brown Bag release 0.92.1
6095         * lib/dynamic_obj.c: Fixed embarassing dynamic object removal bug.
6097 2003-10-25  Lars Clausen  <lrclause@cs.uiuc.edu>
6099         * app/app_procs.c (app_init): Rearrangement for translators.
6101 2003-10-24  Steffen Macke <sdteffen@web.de>
6103         * lib/text.c(text_key_event): enforcing the inserted text length now,
6104         fix for bug #125348
6106 2003-10-22  Lars Clausen  <lrclause@cs.uiuc.edu>
6108         * MAINTAINERS: Change Debian maintainer to be the default address.
6110         * objects/Misc/analog_clock.c (analog_clock_move_handle): Reorder
6111         args to match prototype, thus removing crashbug #125159.
6113         * RELEASE-PROCESS: Note to self.
6115 2003-10-22  Steffen Macke <sdteffen@web.de>
6117         * doc/en/dia-manual.xml: removed superfluous external references
6118         
6119 2003-10-21  Steffen Macke <sdteffen@web.de>
6121         * lib/libdia.def: added filter_get_by_name
6122         * app/render_eps.c: moved extensions definition outside #ifdef
6124 2003-10-19  Lars Clausen  <lrclause@cs.uiuc.edu>
6126         * Makefile.am: 
6127         * dia.1:
6128         Removed old Dia manual, put new one in doc/en/.  Translations
6129         should go in doc/??/.
6131         * doc/en/dia-manual.xml: 
6132         * doc/pl/dia-manual.sgml: 
6133         * dia.spec (Release): 
6134         * config.h.win32: 
6135         * configure.in: 
6136         * NEWS: 0.92 is here!
6138         * doc/en/dia.dbk: 
6139         * doc/en/dia.1: 
6140         * doc/en/Makefile.am (man_MANS): Added man page, thanks to Fredrik
6141         HallenBerg, W. Borgert.  Not currently autogenerated from dia.dbk,
6142         but it shall be.
6144         * doc/en/usage-objects.xml: Fixed lower-case PNG tags.
6146         * doc/en/usage-objects-selecting.xml: Commented out empty note.
6148 2003-10-14  Lars Clausen  <lrclause@cs.uiuc.edu>
6150         * doc/pl/dia-manual.sgml: 
6151         * doc/en/dia-manual.xml: 
6152         * config.h.win32: 
6153         * NEWS: 
6154         * configure.in: 
6155         * dia.spec (Release): Pre7.
6157         * app/diapsrenderer.c (draw_string): Convert string to print based
6158         on current locale.  If conversion fails, fall back to UTF-8 (which
6159         is almost certain to be messy).
6161 2003-10-13  Lars Clausen  <lrclause@cs.uiuc.edu>
6163         * doc/pl/dia-manual.sgml: 
6164         * dia.spec (Release): 
6165         * configure.in: 
6166         * NEWS: 
6167         * config.h.win32: 
6168         * doc/en/dia-manual.xml: Pre6.
6170         * plug-ins/pstricks/render_pstricks.c (draw_string): Don't escape
6171         TeX chars in strings -- must be possible to use TeX text in there.
6172         Also avoids infinite loop bug (#124464) Will get option for this
6173         later.
6175 2003-10-11  Lars Clausen  <lrclause@cs.uiuc.edu>
6177         * shapes/Cisco/Makefile.am: Cisco shapes now install correctly.
6179         * doc/en/dia-manual.xml: 
6180         * doc/pl/dia-manual.sgml: 
6181         * dia.spec (Release): 
6182         * configure.in: 
6183         * config.h.win32: 
6184         * NEWS: pre5.
6186         * app/authors.h: Removed duplicate of M. C. Nelson.
6188         * plug-ins/pixbuf/pixbuf.c: Unique name for pixbuf export: gdkpixbuf.
6190         * app/export_png.c: Unique name for libart PNG export: png-libart.
6192         * app/render_eps.c: Unique names for the two eps export methods:
6193         eps-builtin, eps-pango.
6195         * lib/filter.h: Binary compatibility change: 
6196         Added unique name to export filters.  Can be NULL.
6197         * lib/filter.c (filter_get_by_name): Finding a filter by
6198         non-extension name.
6200         * app/app_procs.h: Changed prototype for do_convert.
6201         * app/app_procs.c (app_init): Support for non-extension file
6202         format selection for export.  Also allow extension to differ from
6203         that specified by the filters.  A bit of refactoring, too.
6205 2003-09-28  Steffen Macke <sdteffen@web.de>
6207         * makefile.msc: added target po to update the translations
6209 2003-09-27  Lars Clausen  <lrclause@cs.uiuc.edu>
6211         * config.h.win32: 
6212         * dia.spec (Release): 
6213         * NEWS: 
6214         * doc/pl/dia-manual.sgml: 
6215         * doc/en/dia-manual.xml: 
6216         Pre4 is given a short try.
6217         
6218         * configure.in: Give all necessary libs to PNG test.
6220         * lib/font.c: Added legacy entries for sans, serif and monospace.
6222         * app/app_procs.c (internal_plugin_init): 
6223         * app/render_eps.h: 
6224         * app/render_eps.c: 
6225         Added PS fonts output for Unix.
6227         * app/diapsrenderer.c (set_font): Adjusted height by the magic .7
6228         factor to make PS fonts stay in boxes.
6229         
6230 2003-08-03  Hans Breuer  <hans@breuer.org>
6232         * config.h.win32 : close the version string
6234         * lib/libdia.def : with color_white, color_black being static
6235         on win32 they can not be exported anymore either
6237         * lib/dialibartrenderer.c : text rendering is back on win32,
6238         only by Gdk though; almost a year seems to be enough to
6239         wait for my patch at bug #94791 to be accepted ...
6241 2003-09-23  Lars Clausen  <lrclause@cs.uiuc.edu>
6243         * shapes/network/{digitizing_board.png,plotter.png,
6244         laptop.png,telephone.png}: 22x22 icons.
6246 2003-09-22  Lars Clausen  <lrclause@cs.uiuc.edu>
6248         * doc/pl/dia-manual.sgml: 
6249         * doc/en/dia-manual.xml: 
6250         * dia.spec (Release): 
6251         * configure.in: 
6252         * config.h.win32: 
6253         * NEWS: 
6254         pre3 improves font rendering speed.
6256         * app/app_procs.c (app_init): Don't do pango init here, it's done
6257         on demand in font.c now.
6259         * lib/font.c: Load pango context on demand rather than during
6260         init/all the time strikes a better balance between working font
6261         size and speed.  Still need to cache width calculations.
6263 2003-09-18  Lars Clausen  <lrclause@cs.uiuc.edu>
6265         * lib/dia_xml.c: Enable pretty printing.  Should have been added
6266         on 8/12. 
6268 2003-09-11  Lars Clausen  <lrclause@cs.uiuc.edu>
6270         * lib/arrows.c (calculate_arrow_point): Adjust arrow line
6271         adjustment a bit for half diamond and open round.
6273         * RELEASE-PROCESS: Added note about notifying translators and
6274         maintainers. 
6276         * doc/pl/dia-manual.sgml: 
6277         * doc/en/dia-manual.xml: 
6278         * dia.spec (Release): 
6279         * configure.in: 
6280         * config.h.win32: 
6281         * NEWS:
6282         Update to 0.92-pre2.
6283         
6284 2003-09-10  Lars Clausen  <lrclause@cs.uiuc.edu>
6286         * lib/arrows.c (calculate_arrow_point): Some fixing-up of arrow
6287         calculation for half diamond and open round.
6289         * lib/arrows.c: 
6290         * objects/UML/component_feature.c: 
6291         * lib/arrows.h: Patch from W. Borgert <debacle@debian.org>: Use
6292         arrows instead of specific little hacks.  Much nicer, but damn
6293         there's a lot of arrows.
6295         * lib/dialibartrenderer.c (begin_render): 
6296         * app/render_libart.c (begin_render): Use correct DPI for screen
6297         (well, actually the default DPI of 75 for now).
6299         * app/display.h: Informative notes on the DDISPLAY_*_ZOOM macros.
6301         * lib/diagdkrenderer.c (draw_string): Some reformatting.
6303         * app/app_procs.c (app_init): Note on what should be done for the
6304         pango context now, only it doesn't work:(
6306         * lib/font.c (dia_font_new): Make sure to load fonts that are
6307         used, using a reasonable pango_context.  Also a comment on the
6308         global_zoom_factor, 
6310 2003-09-09  Lars Clausen  <lrclause@cs.uiuc.edu>
6312         * doc/pl/graphics/*.png:
6313         * doc/pl/Makefile.am: Added graphics to distro, avoiding empty
6314         loop (bug #121817).  PL translator may want to change the
6315         home_network png to be in Polish.  If the docs get translated into
6316         more languages, we'll want to find out how to share these things.
6318 2003-09-08  Lars Clausen  <lrclause@cs.uiuc.edu>
6320         * app/splash.c (app_splash_init): Patch from Sébastien Tricaud
6321         <stricaud@mwsp.net>: Use g_signal_* instead of gtk_signal_* in
6322         splash.
6324         * app/filedlg.c (file_save_as_callback): Put filename setting
6325         together.  (Preparation for allowing default save dir.)
6327         * app/paginate_psprint.c (diagram_print_ps): Use $PRINTER
6328         correctly this time:)
6330         * app/dia-props.c (diagram_properties_show): 
6331         * app/properties.c (properties_show): Make sure the
6332         dialogs are transient for the correct diagram.
6334 2003-09-07  Lars Clausen  <lrclause@cs.uiuc.edu>
6336         * configure.in: Make sure -lz -lm is passed into second png test
6337         as well (stupid AC_LINK_IFELSE can't take it as an argument).
6339         * plug-ins/xfig/xfig-import.c: Skip XFig comments to make certain
6340         comment-filled files readable.  Once we have a 'generic data'
6341         system, we can put comments in there.
6343 2003-09-06  Steffen Macke <sdteffen@web.de>
6345         * plug-ins/pstricks/render_pstricks.c(tex_escape_string): using
6346         g_string_sized_new() instead of g_string_new() to make it compile
6347         * app/Makefile.am: including dia.ico and dia.rc in the tarball
6348         * plug-ins/wmf/wmf.cpp (set_linestyle): In WMF maximum linewidth is 1 
6349         for non-solid linestyles - otherwise custom linestyles have to be used.
6351 2003-09-02  Steffen Macke <sdteffen@web.de>
6353         * app/commands.c(help_manual_callback): using dia-manual.chm instead of 
6354         dia.chm
6356 2003-09-02  Christian Neumair  <chris@gnome-de.org>
6358         * sheets/Pneumatic.sheet.in: Slight unification fix.
6360 2003-09-02  Lars Clausen  <lrclause@cs.uiuc.edu>
6362         * config.h.win32: 
6363         * configure.in: 
6364         * dia.spec (Release): 
6365         * doc/en/dia-manual.xml: 
6366         * doc/pl/dia-manual.sgml: 
6367         * NEWS: Update to 0.92-pre1.
6369         * app/properties.c (properties_key_event): Removing Esc/Enter
6370         handling for now, interferes to much with regular dialog usage.
6372         * plug-ins/pstricks/render_pstricks.c (tex_escape_string):
6373         Function to escape special TeX characters.  Not in use yet, as
6374         PSTricks output by default is TeX strings.  Should get a save-time
6375         selector. 
6377 2008-09-01  Steffen Macke <sdteffen@web.de>
6379         * lib/paper.h: explanatory comment on width and height
6381 2003-08-30  Steffen Macke <sdteffen@web.de>
6383         * lib/color.c:
6384         * lib/color.h: made color_white, color_black static on win32
6386 2003-08-28  Lars Clausen  <lrclause@cs.uiuc.edu>
6388         * configure.in (PNG_LIBS): Something in the png tests added an
6389         extra -lpng to $LIBS.  Saving old $LIBS to avoid that.
6391 2003-08-27  Lars Clausen  <lrclause@cs.uiuc.edu>
6393         * configure.in: Quote correctly for temporarily adding freetype
6394         cflags to CPPFLAGS.
6396         * app/preferences.c (prefs_save): Remove debugging g_print.
6398 2003-08-26  Lars Clausen  <lrclause@cs.uiuc.edu>
6400         * objects/flowchart/parallelogram.c (pgram_update_data):
6401         Directions for connections, better system for placing
6402         connectionpoints. 
6404 2003-08-25  Lars Clausen  <lrclause@cs.uiuc.edu>
6406         * lib/diagramdata.c (layer_find_closest_object_except): Look all
6407         the way through the object list, so the foremost object is selected.
6409         * lib/diagramdata.h: Removing dynamic_obj.h, it should only be
6410         included for diagramdata.c.
6412         * lib/prop_text.c (multistringprop_handle_key): Attempt at making
6413         newline in multistringprop not close the dialog.  Failed so far.
6415 2003-08-25  Steffen Macke <sdteffen@web.de>
6417         * app/commands.c: using CHM instead of HTML on win32 if available
6418         * lib/diagramdata.h: including dynamic_obj.h
6420 2003-08-25  Lars Clausen  <lrclause@cs.uiuc.edu>
6422         * app/properties.c (properties_key_event): Make Enter = Ok for
6423         properties dialogs.  Still some problems with this and Esc for
6424         Cancel, for instances escaping out of a menu closes the dialog.
6426         * objects/UML/association.c (association_get_properties): 
6427         * objects/UML/class_dialog.c (class_create_page): Grab appropriate
6428         focus. 
6430         * app/diapsft2renderer.c (draw_string): Use
6431         dia_font_scaled_build_layout to ensure similarity of text.
6433         * lib/diagramdata.c: Remove obj from dynobj list when removing
6434         from layer to avoid nasty race conditions.
6436         * app/undo.c (group_objects_revert): Make sure to unparent and
6437         remove from dynobj list when changing layers objects.
6439 2003-08-23  Steffen Macke <sdteffen@web.de>
6441         * plug-ins/wmf/wmf.cpp (draw_image): replaced BitBlt() with 
6442         StretchBlt(); fixes #92249
6443         
6444 2003-08-23  Lars Clausen  <lrclause@cs.uiuc.edu>
6446         * app/filedlg.c (file_save_as_callback): 
6447         * app/preferences.h: 
6448         * app/preferences.c (prefs_data): 
6449         * lib/diagramdata.h: 
6450         * lib/diagramdata.c (new_diagram_data): 
6451         * app/load_save.c (diagram_data_load): 
6452         Let the document remember whether it was compressed.  The user can
6453         still override this in the Save As... dialog, and that will still
6454         be remembered as the default for new diagrams.
6456 2003-08-23  Steffen Macke <sdteffen@web.de>
6458         * plug-ins/xslt/Makefile.am: added dia-uml2componentlist.xsl
6460 2003-08-22  Steffen Macke <sdteffen@web.de>
6462         * plug-ins/xslt/dia-uml.xsl:
6463         * plug-ins/xslt/dia-uml2componentlist.xsl: generate a HTML file with a
6464         table containing a list of components grouped by stereotype
6466 2003-08-21  Steffen Macke <sdteffen@web.de>
6468         * lib/makefile.msc: added connectionpoint.obj
6469         * lib/libdia.def: added connpoint_update, find_slope_directions
6470         * app/disp_callbacks.c: including scroll_tool.h
6471         * obj/makefile.msc: added component_feature.obj
6472         * app/paginate_gdiprint.c: fixed loop initialization in 
6473         paginate_gdiprint(); partial fix for bug #85831 - the scaling is still
6474         wrong
6476 2003-08-21  Lars Clausen  <lrclause@cs.uiuc.edu>
6478         * plug-ins/python/pydia-object.c (PyDiaObject_MoveHandle): Fix
6479         move_handle call.
6481         * lib/diagramdata.h: Colors added to prefs.
6482         * lib/diagramdata.c (new_diagram_data): Set diagram colors from prefs.
6483         New field for pagebreak color, which should
6484         behave the same as grid color and be settable for a diagram.
6486         * app/diagram.c (diagram_init): Update diagram pagebreak color
6487         from prefs. 
6489         * app/grid.c (pagebreak_draw): Draw using diagrams pagebreak
6490         colors. 
6492         * app/preferences.[ch]: Default diagram colors now #defines, so
6493         loading can use it.  Also, colors are now in NewDiagramData, so
6494         are passed nicely into new diagrams directly from prefs.  Yum.
6496         * app/load_save.c (diagram_data_write_doc, diagram_data_load): 
6497         Support for loading and saving grid and pagebreak colors with the
6498         diagram.  I'm inclined to make all the three Colors in diagram
6499         Color*s instead, so we can tell if they're specified for the
6500         diagram or merely the default setting.  There'd be no way for the
6501         user to tell if the color of a diagram is default, though, unless
6502         we add a 'reset to default' button to prefs.
6504         * app/dia-props.c: Adding widgets for dynamic grid, grid colour,
6505         pagebreak color.  Unsensitizing grid size when dynamic.
6507         * objects/UML/component.c: Patch from Krzysztof Foltman
6508         <kfoltman@onet.pl>: Add two new connectionpoints and adjust a
6509         third.  Makes the left side connections actually be on the line
6510         (gasp!). 
6512 2003-08-20  Steffen Macke <sdteffen@web.de>
6514         * lib/libdia.def: added layer_find_closest_object_except
6515         * lib/diagramdata.c: added ; after GOTO to make MSVC compile 
6517 2003-08-20  Lars Clausen  <lrclause@cs.uiuc.edu>
6519         * app/tool.h: 
6520         * app/tool.c: 
6521         * app/scroll_tool.c: 
6522         * app/interface.c: 
6523         * app/disp_callbacks.c: 
6524         * app/create_object.h: 
6525         * app/create_object.c: Patch from Krzysztof Foltman
6526         <kfoltman@onet.pl>: Middle button can scroll transiently when
6527         menu-bar-mode is on, and mouse wheels (hopefully) can scroll in
6528         various ways.
6530         * app/authors.h: 
6531         * sheets/UML.sheet.in: 
6532         * sheets/UML/receptacle.xpm: 
6533         * sheets/UML/Makefile.am: 
6534         * sheets/UML/eventsource.xpm: 
6535         * sheets/UML/eventsink.xpm: 
6536         * objects/UML/pixmaps/facet.xpm: 
6537         * objects/UML/uml.c (dia_plugin_init): 
6538         * objects/UML/Makefile.am (libuml_objects_la_SOURCES): 
6539         * objects/UML/component_feature.c: 
6540         Patch from W. Borgert <debacle@debian.org>:  Add event sources and
6541         event sinks.
6542         
6543 2003-08-19  Lars Clausen  <lrclause@cs.uiuc.edu>
6545         * lib/object.h: Turning some comments into doxygen style.
6547         * lib/object_defaults.c (dia_object_defaults_load)
6548         (dia_object_default_get, dia_object_default_create): 
6549         Fixing up existing documentation.
6551         * lib/object.h: Doxygen style documentation begun.
6553         * app/create_object.c: 
6554         * app/undo.c: 
6555         * app/connectionpoint_ops.c: 
6556         * app/disp_callbacks.c: 
6557         * app/modify_tool.c: 
6559         * objects/network/wanlink.c (wanlink_move_handle): 
6560         * objects/network/bus.c (bus_move_handle): 
6562         * objects/flowchart/parallelogram.c (pgram_move_handle): 
6563         * objects/flowchart/ellipse.c (ellipse_move_handle): 
6564         * objects/flowchart/diamond.c (diamond_move_handle): 
6565         * objects/flowchart/box.c (box_move_handle): 
6567         * objects/custom/custom_object.c (custom_move_handle): 
6569         * objects/chronogram/chronoref.c (chronoref_move_handle): 
6570         * objects/chronogram/chronoline.c (chronoline_move_handle): 
6572         * objects/SADT/box.c (sadtbox_move_handle): 
6573         * objects/SADT/arrow.c (sadtarrow_move_handle): 
6574         * objects/SADT/annotation.c (annotation_move_handle): 
6576         * objects/Misc/analog_clock.c (analog_clock_move_handle): 
6578         * objects/GRAFCET/vergent.c (vergent_move_handle): 
6579         * objects/GRAFCET/vector.c (arc_move_handle): 
6580         * objects/GRAFCET/transition.c (transition_move_handle): 
6581         * objects/GRAFCET/step.c (step_move_handle): 
6582         * objects/GRAFCET/condition.c (condition_move_handle): 
6583         * objects/GRAFCET/action.c (action_move_handle): 
6585         * objects/FS/function.c: 
6586         * objects/FS/flow.c: 
6587         * objects/FS/flow-ortho.c (orthflow_move_handle): 
6588         * objects/FS/flow-poly.c (flow_move_handle): 
6590         * objects/UML/usecase.c (usecase_move_handle): 
6591         * objects/UML/state_term.c (state_move_handle): 
6592         * objects/UML/state.c (state_move_handle): 
6593         * objects/UML/small_package.c (smallpackage_move_handle): 
6594         * objects/UML/realizes.c (realizes_move_handle): 
6595         * objects/UML/object.c (objet_move_handle): 
6596         * objects/UML/note.c (note_move_handle): 
6597         * objects/UML/node.c (node_move_handle): 
6598         * objects/UML/message.c (message_move_handle): 
6599         * objects/UML/lifeline.c (lifeline_move_handle): 
6600         * objects/UML/large_package.c (largepackage_move_handle): 
6601         * objects/UML/implements.c (implements_move_handle): 
6602         * objects/UML/generalization.c (generalization_move_handle): 
6603         * objects/UML/fork.c (fork_move_handle): 
6604         * objects/UML/dependency.c (dependency_move_handle): 
6605         * objects/UML/constraint.c (constraint_move_handle): 
6606         * objects/UML/compprop.c (compprop_move_handle): 
6607         * objects/UML/component.c (component_move_handle): 
6608         * objects/UML/branch.c (branch_move_handle): 
6609         * objects/UML/association.c (association_move_handle): 
6610         * objects/UML/actor.c (actor_move_handle): 
6611         * objects/UML/activity.c (state_move_handle): 
6612         * objects/UML/class.c (umlclass_move_handle): 
6614         * objects/standard/ellipse.c (ellipse_move_handle): 
6615         * objects/standard/zigzagline.c (zigzagline_move_handle): 
6616         * objects/standard/textobj.c (textobj_move_handle): 
6617         * objects/standard/polyline.c (polyline_move_handle): 
6618         * objects/standard/polygon.c (polygon_move_handle): 
6619         * objects/standard/line.c (line_move_handle): 
6620         * objects/standard/image.c (image_move_handle): 
6621         * objects/standard/bezier.c (bezierline_move_handle): 
6622         * objects/standard/arc.c (arc_move_handle): 
6623         * objects/standard/beziergon.c (beziergon_move_handle): 
6624         * objects/standard/box.c (box_move_handle): 
6625         
6626         * objects/ER/relationship.c (relationship_move_handle): 
6627         * objects/ER/participation.c (participation_move_handle): 
6628         * objects/ER/entity.c (entity_move_handle): 
6629         * objects/ER/attribute.c (attribute_move_handle): 
6630         
6631         * lib/polyshape.c (polyshape_move_handle): 
6632         * lib/polyshape.h: 
6633         * lib/orth_conn.c (orthconn_move_handle): 
6634         * lib/orth_conn.h: 
6635         * lib/neworth_conn.c (neworthconn_move_handle): 
6636         * lib/neworth_conn.h: 
6637         * lib/element.c (element_move_handle): 
6638         * lib/element.h: 
6639         * lib/connection.c (connection_move_handle): 
6640         * lib/connection.h: 
6641         * lib/beziershape.c (beziershape_move_handle): 
6642         * lib/beziershape.h: 
6643         * lib/bezier_conn.c (bezierconn_move_handle): 
6644         * lib/bezier_conn.h: 
6645         *BINARY COMPATIBILITY CHANGE*
6646         Update prototype for *_move_handle() to include connectionpoint,
6647         and also pass on modifiers.  Pass in connectionpoint where
6648         applicable. 
6649         
6650         * lib/dummy_dep.h (dummy_dep): Adding dummy dependencies for new
6651         file connectionpoint.c.
6653 2003-08-17  Danilo Å egan  <dsegan@gmx.net>
6655         * configure.in: Added "sr" and "sr@Latn" to ALL_LINGUAS.
6657 2003-08-15  Lars Clausen  <lrclause@cs.uiuc.edu>
6659         * lib/object.c (object_copy): Use g_malloc0 instead of g_malloc.
6661         * lib/beziershape.c (beziershape_update_data): Autoroute
6662         directions for beziershapes!
6664         * lib/connectionpoint.c (find_slope_directions): 
6665         * lib/connectionpoint.h: Function for finding the available
6666         directions on a slope.
6668         * lib/polyshape.c: Reasonable directions for
6669         connectionpoints.       
6671 2003-08-14  Lars Clausen  <lrclause@cs.uiuc.edu>
6673         * objects/Misc/analog_clock.c (analog_clock_update_arrow_tips): 
6674         * objects/GRAFCET/vergent.c (vergent_update_data): 
6675         * objects/GRAFCET/transition.c (transition_update_data): 
6676         * objects/GRAFCET/action.c (action_update_data): 
6677         * objects/GRAFCET/step.c (step_update_data): 
6678         * objects/FS/function.c (function_update_data): 
6679         * lib/connpoint_line.c (connpointline_putonaline): 
6680         * objects/ER/attribute.c (attribute_update_data): 
6681         * objects/ER/entity.c (entity_update_data): 
6682         * objects/ER/relationship.c (relationship_update_data): 
6683         * objects/chronogram/chronoline.c (chronoline_update_data): Set
6684         directions for connection points.
6686         * objects/UML/component.c (component_create): Set to allow
6687         parenting. 
6689         * app/create_object.c (create_object_button_press): 
6690         * app/diagram.[ch] (diagram_find_clicked_object_except): 
6691         * lib/diagramdata.[ch] (layer_find_closest_object_except): 
6692         Avoid parenting to objects you're connecting to (otherwise you
6693         couldn't make a connection out of a parenting object).  To do
6694         this, added functions to find the nearest object except a given
6695         list of objects.
6696         
6697         * app/render_libart.c: Rearrange libart include to avoid multiple
6698         include program (and put libart includes inside #ifdef!)
6700 2003-08-13  Lars Clausen  <lrclause@cs.uiuc.edu>
6702         * lib/dialibartrenderer.c: Don't include art_config.h if others
6703         also do, as it isn't #ifdef'd.
6705         * objects/flowchart/ellipse.c (ellipse_update_data): Add
6706         directions for connection points.
6708 2003-08-12  Lars Clausen  <lrclause@cs.uiuc.edu>
6710         * objects/flowchart/box.c (box_update_data): Add directions, use
6711         connpoint_update. 
6712         (box_load): Use g_malloc0.
6714         * lib/Makefile.am (libdia_la_SOURCES):
6715         * lib/connectionpoint.c (connpoint_update): 
6716         Function to call to update a connection point info in _update_data().
6717         
6718         * lib/connectionpoint.h: Convenience DIR_ macros.
6720         * app/preferences.c (prefs_data): Make pretty formatted XML the
6721         default.
6723         * lib/dialibartrenderer.c: 
6724         * app/render_libart.c: Make sure art_config.h is included, cause
6725         some libart headers are broken.
6727         * configure.in (HAVE_FREETYPE): Restore CPPFLAGS to old value
6728         after test.  Add freetype-config cflags to cflags variable.
6730 2003-08-11  Lars Clausen  <lrclause@cs.uiuc.edu>
6732         * app/authors.h: Credits for Krzysztof.
6734         * sheets/Flowchart.sheet.in: Updated descriptions from Krzysztof
6735         Foltman <kfoltman@onet.pl>.  It occurs to me that the name (rather
6736         than the description) is visible in the title of the properties
6737         dialog.  That ought to be a short description (translatable),
6738         though we still want long descriptions for the tooltips.  Hmmm...
6740         * configure.in: Updated to use AC_LINK_IFELSE instead of
6741         AC_TRY_COMPILE, also force to link to check libs on Solaris.
6743         * objects/ER/entity.c (entity_load): 
6744         * objects/ER/attribute.c (attribute_load): 
6745         * lib/attributes.c (attributes_set_default_font): 
6746         Check if font is non-null before unreffing.
6747         
6748 2003-08-08  Lars Clausen  <lrclause@cs.uiuc.edu>
6750         * app/diagram.c (diagram_ungroup_selected) 
6751         (diagram_group_selected): Use the undo apply to make sure grouping
6752         and ungrouping is done in consistent manners.  This removes a fair
6753         amount of duplicated code from diagram.c.
6755         * app/undo.c (ungroup_objects_revert, ungroup_objects_apply) 
6756         (group_objects_revert, group_objects_apply): Working undo/redo for
6757         diagram tree updates.  The initial actions still don't quite work.
6759 2003-08-07  Lars Clausen  <lrclause@cs.uiuc.edu>
6761         * app/create_object.c (create_object_button_press): 
6762         * app/undo.[ch]: 
6763         * app/diagram.c: Undo support for parenting.  Uses apply/revert in
6764         undo only for manipulating the parent/child relationships.  Things
6765         like removing an object doesn't use the undo functions for
6766         parenting, so any updates to come (like to diagramtree) should be
6767         done in those, too.
6769 2003-08-03  Hans Breuer  <hans@breuer.org>
6771         * app/create_object.c : minor formating and g_new0 for
6772         tool creation
6774         * lib/bezier_conn.[hc] lib/beziershape.[hc]
6775           lib/prop_geomtypes.c (prop_geomtypes_register)
6776           objects/standard/bezier.c objects/standard/beziergon.c :
6777         ability to set bezpoints via StdProp api
6779         * plug-ins/python/pydia-property.c : convert list of tuples
6780         to BEZPOINTARRAY
6782         *  plug-ins/python/diasvg_import.py : use it to
6783         implement part of path parsing. Also minor improvements
6784         like inheritance of group attributes to members,
6785         whitespace, title and style:text/css ignoring ;-)
6787 2003-08-02  Hans Breuer  <hans@breuer.org>
6789         * lib/connections.c (connection_move_handle): return
6790         something to make it compile
6791         * lib/object.c(190) : error C4033: 'object_list_move_delta_r' 
6792         must return a value -> dito
6793         [Is there a warnings-as-errors switch we could use with gcc 
6794          to avoid such in future ?]
6796         * plug-ins/python/pydia-object.h : define *_Check macros
6797         * plug-ins/python/diamodule.c : provide dia.group_create()
6798         * plug-ins/python/pydia-diagramdata.c : add 
6799         DiaDiagramData.add_layer()
6800         * plug-ins/python/pydia-property.c : allow to set color by
6801         tuple of doubles
6803         *  plug-ins/python/diasvg_import.py : based on the above
6804         implement a) group support, b) rgb(1,2,3) color handling,
6805         and somewhat fishy data:image/png;base64 support (create
6806         temporary files from inline image data)
6807         d) dump the import errors as text into an 'Error' layer
6809         *  plug-ins/python/diasvg.py : add xmlns:xlink, removed a
6810         stray " in draw_rect and corrected error message formating 
6812         * plug-ins/pydia/pydia-geometry.c : removed ## to make it
6813         compile with gcc 3.3, fixes bug #117204. Thanks to Daniel 
6814         Jacobowitz.
6815         
6816 2003-08-01  Hubert Figuiere  <hfiguiere@teaser.fr>
6818         * app/magnify.c (create_magnify_tool): allocate with g_new0()
6820         * app/preferences.c (prefs_create_dialog): use checkboxes for boolean 
6821         preferences values (see bug 118570). Also group items into a GtkFrame.
6823 2003-07-31  Lars Clausen  <lrclause@cs.uiuc.edu>
6825         * app/menus.c:
6826         * app/menus.h:
6827         * app/commands.h: 
6828         * app/commands.c (objects_unparent_children_callback): 
6829         * app/diagram.h: 
6830         * app/diagram.c (diagram_unparent_selected,
6831         (diagram_update_menu_sensitivity): 
6832         Added unparenting of single children.
6834         * lib/bezier_conn.c:
6835         * lib/bezier_conn.h:
6836         * lib/beziershape.c:
6837         * lib/beziershape.h:
6838         * lib/connection.c:
6839         * lib/connection.h:
6840         * lib/element.c:
6841         * lib/element.h:
6842         * lib/group.c:
6843         * lib/neworth_conn.c:
6844         * lib/neworth_conn.h:
6845         * lib/object.h:
6846         * lib/orth_conn.h:
6847         * lib/poly_conn.c:
6848         * lib/poly_conn.h:
6849         * lib/polyshape.c:
6850         * lib/polyshape.h:
6851         * objects/EML/instantiation.c:
6852         * objects/EML/interaction-ortho.c:
6853         * objects/EML/interaction.c:
6854         * objects/EML/process.c:
6855         * objects/ER/attribute.c:
6856         * objects/ER/entity.c:
6857         * objects/ER/participation.c:
6858         * objects/ER/relationship.c:
6859         * objects/FS/flow-ortho.c:
6860         * objects/FS/flow-poly.c:
6861         * objects/FS/flow.c:
6862         * objects/FS/function.c:
6863         * objects/GRAFCET/action.c:
6864         * objects/GRAFCET/condition.c:
6865         * objects/GRAFCET/step.c:
6866         * objects/GRAFCET/transition.c:
6867         * objects/GRAFCET/vector.c:
6868         * objects/GRAFCET/vergent.c:
6869         * objects/Misc/analog_clock.c:
6870         * objects/SADT/annotation.c:
6871         * objects/SADT/arrow.c:
6872         * objects/SADT/box.c:
6873         * objects/UML/activity.c:
6874         * objects/UML/actor.c:
6875         * objects/UML/association.c:
6876         * objects/UML/branch.c:
6877         * objects/UML/class.c:
6878         * objects/UML/classicon.c:
6879         * objects/UML/component.c:
6880         * objects/UML/constraint.c:
6881         * objects/UML/dependency.c:
6882         * objects/UML/fork.c:
6883         * objects/UML/generalization.c:
6884         * objects/UML/implements.c:
6885         * objects/UML/large_package.c:
6886         * objects/UML/lifeline.c:
6887         * objects/UML/message.c:
6888         * objects/UML/node.c:
6889         * objects/UML/note.c:
6890         * objects/UML/object.c:
6891         * objects/UML/realizes.c:
6892         * objects/UML/small_package.c:
6893         * objects/UML/state.c:
6894         * objects/UML/state_term.c:
6895         * objects/UML/usecase.c:
6896         * objects/chronogram/chronoline.c:
6897         * objects/chronogram/chronoref.c:
6898         * objects/custom/custom_object.c:
6899         * objects/flowchart/box.c:
6900         * objects/flowchart/diamond.c:
6901         * objects/flowchart/ellipse.c:
6902         * objects/flowchart/parallelogram.c:
6903         * objects/network/bus.c:
6904         * objects/network/wanlink.c:
6905         * objects/standard/arc.c:
6906         * objects/standard/bezier.c:
6907         * objects/standard/beziergon.c:
6908         * objects/standard/box.c:
6909         * objects/standard/ellipse.c:
6910         * objects/standard/image.c:
6911         * objects/standard/line.c:
6912         * objects/standard/polygon.c:
6913         * objects/standard/polyline.c:
6914         * objects/standard/textobj.c:
6915         * objects/standard/zigzagline.c:
6916         Binary compatibility update:  Added return value for foo_move() and
6917         foo_move_handle().  Orthconn derivatives also returns change from
6918         orthconn_move_handle().
6919         
6920         * lib/orth_conn.c: Undo support for autorouting.  Neworthconn
6921         doesn't support it yet.
6923         * lib/object.c (object_list_move_delta_r, object_list_move_delta):
6924         Add returning ObjectChange from object moves.  Needs to handle
6925         multiple object moves.
6927         * app/modify_tool.c (modify_motion, modify_release): Add
6928         ObjectChange from move & move_handle to undo stack.
6930         * objects/EML/instantiation.c (instantiation_move): Removing
6931         duplicate move & update.
6933 2003-07-30  Lars Clausen  <lrclause@cs.uiuc.edu>
6935         * plug-ins/xfig/xfig-export.c: Added support for arrow head
6936         export.  Many arrow types not supported by XFig, replacing those
6937         with standard arrows.  Not sure whether it'd be better to render
6938         them as a group of lines instead.  You'd lose the arrow-ness for
6939         further editing, but preserve the actual shape of it.  Also added
6940         support for dash length.
6942         * plug-ins/xfig/xfig-import.c: Added support for dash length settings.
6944         * plug-ins/xfig/fig-format-3.2: Added copy of Fig format
6945         description for version 3.2, for reference.
6947         * plug-ins/xfig/xfig-import.c: Added import of arrows.
6949         * app/menus.c: Removed prefs item from Gnome diagram menu.  Made
6950         Align Vertical Adjacent call _v rather than _h.
6952 2003-07-29  Hubert Figuiere  <hfiguiere@teaser.fr>
6954         * app/scroll_tool.c (create_scroll_tool): 
6955         * app/modify_tool.c (create_modify_tool): use g_new0() to
6956         initialize the tool
6958 2003-07-29  Lars Clausen  <lrclause@cs.uiuc.edu>
6960         * configure.in: Added proper settings for XSLT_LIBS and XSLT_CFLAGS.
6962 2003-07-24  Pablo Saratxaga  <pablo@mandrakesoft.com>
6964         * configure.in: Added Macedonian (mk) to ALL_LINGUAS
6966 2003-07-23  Dmitry G. Mastrukov  <dmitry@taurussoft.org>
6968         * configure.in: Added Belarusian to ALL_LINGUAS.
6970 2003-07-19  Hans Breuer  <hans@breuer.org>
6972         [
6973          Make the xslt plug-in work on win32, too. It appears
6974          to require a quite recent version of libxml and libxslt,
6975          otherwise windoze pathes aren't translated correctly
6976          during file processing
6977         ]
6979         * plug-ins/xslt/xslt.h : #include <glib.h> before 
6980         using G_OS_WIN32
6982         * plug-ins/xslt/xslt.c : plugged some memory leaks and do
6983         the 'script' file finding similar to how it is done
6984         with the python scripts (no need for hardcoded pathes,
6985         removed the 'plugin' part from the path)
6987         * plug-ins/xslt/stylesheets.xml : added again. It does
6988         not have any path but only the pure filename again
6990         * plug-ins/xslt/stylesheets.xml.in : removed
6992         * plug-ins/xslt/Makefile.am : removed 'plugin' and the
6993         rule to process stylesheets.xml.in
6995         * plug-ins/makefile.msc : added xslt
6997 2003-07-19  Hans Breuer  <hans@breuer.org>
6999         Finally Dia learned to remember the recent selected sheet
7001         * app/preferences.[hc] : added prefs.recent_sheet
7002         * app/interface.c : restore and remember the sheet-option-menu
7003         history, but only if the respective number is stiil available.
7004         This additional adds robustness against running Dia without
7005         any sheet (e.g. installation problems)
7006         * app/app_procs.c : call prefs_safe() in app_exit() to remember
7007         changes which are not done by the prefernces dialog
7009         * app/diagram_tree_menu.c app/diagram_tree_menu_callbacks.c :
7010         removed every call (especially the conditional ones) to prefs_safe().
7011         Before prefs_safe() was called _many_ times during Dia startup
7013 2003-07-18  Hans Breuer  <hans@breuer.org>
7015         * app/makefile.msc lib/makefile.msc lib/libdia.def :
7016         updated win32 build
7018         * lib/color.c : use gtk_widget_get_default_visual();
7019         as suggested in #114536
7021         * app/interface.c app/disp_callbacks.c :
7022         moved round_up () to the latter file where it is used
7024         * app/linewidth_area.c : #include "interface.h" for
7025         interface_get_toolbox_shell()
7027 2003-07-18  Hubert Figuiere  <hfiguiere@teaser.fr>
7029         * plug-ins/pixbuf/.cvsignore
7030         * shapes/Cisco/.cvsignore: 
7031         added cvsignore
7033 2003-07-17  Lars Clausen  <lrclause@cs.uiuc.edu>
7035         * app/dia-props.c (diagram_properties_retrieve): Use
7036         diagram_get_name() to add the diagram name to the diagram
7037         properties dialog.
7039         * app/diagram.h: 
7040         * app/diagram.c (diagram_get_name): New function to get a
7041         reasonable diagram name.
7043         * lib/diagramdata.h: Added major_lines, dynamic and colour to grid
7044         info.  Still need to be able to set dynamic grid.  Also ought to
7045         follow Gnome style and have instant apply.
7047         * app/preferences.h: 
7048         * app/preferences.c (prefs_data): Remove option to use stippled
7049         grid, add option for major line offset.  Default to 5 minor lines
7050         per major line.
7051         Add option for dynamically sized grid.
7053         * app/display.c (ddisplay_render_pixmap): Call pagebreak_draw as well.
7055         * app/grid.c: Pagebreak drawing separated out.  Grid drawing using
7056         stippled/solid to display minor/major grid lines.  Line drawing in
7057         separate functions away from calculating line distance.
7059         * app/grid.h: Split page break drawing out of grid_draw.
7061         * app/layer_dialog.c (layer_dialog_show): Patch from Hubert
7062         Figuiere <hfiguiere@teaser.fr>:  Layer dialog show go to front
7063         when menu item is selected.
7065 2003-07-15  Lars Clausen  <lrclause@cs.uiuc.edu>
7067         * configure.in: Removed -Winline flag to make way for important
7068         warnings. 
7070         * samples/UML-demo.dia: Adjusted for 0.91 font size, saved as
7071         non-compressed.  Should fix bug #117381, also look prettier.
7072         
7073         * Makefile.am: 
7074         * dia.desktop.in: Patch from Mark McLoughlin <mark@skynet.ie>:
7075         Set up desktop info more properly.
7077 2003-07-13  Lars Clausen  <lrclause@cs.uiuc.edu>
7079         * activity.c:
7080         * actor.c:
7081         * branch.c:
7082         * class.c:
7083         * classicon.c:
7084         * component.c:
7085         * large_package.c:
7086         * lifeline.c:
7087         * node.c:
7088         * note.c:
7089         * object.c:
7090         * small_package.c:
7091         * state.c:
7092         * state_term.c:
7093         * usecase.c: 
7094         Autorouting directions patch from Krzysztof Foltman
7095         <kfoltman@onet.pl>.
7097         * app/menus.c: Wrong GNOME paren fixed.  Correct callbacks for
7098         GNOME parent menu items.
7099         
7100         * app/authors.h: Added Vadim to contributors list.
7102 2003-07-12  Lars Clausen  <lrclause@cs.uiuc.edu>
7104         * app/commands.[ch]: 
7105         * app/create_object.c: 
7106         * app/disp_callbacks.[ch]: 
7107         * app/diagram.[ch]: 
7108         * app/interface.c: 
7109         * app/load_save.c: 
7110         * app/menus.[ch]:
7111         * app/modify_tool.c
7112         * app/undo.[ch]:
7113         * lib/Makefile.am:
7114         * lib/group.c: 
7115         * lib/object.[ch]: 
7116         * lib/parent.[ch]:
7117         * objects/UML/large_package.c: Patch from Vadim Berezniker
7118         <vadim@berezniker.com>: 
7119         Objects may "parent" other objects, i.e. contain them within
7120         themselves, restrain them and move them along.  Some more stuff is
7121         needed, such as selection and individual unparenting.  This adds
7122         parenting to UML - Large Package rather than Box.
7124 2003-07-11  Lars Clausen  <lrclause@cs.uiuc.edu>
7126         * app/linewidth_area.c: Patch from Krzysztof Foltman
7127         <kfoltman@onet.pl>: Make linewidth dialog conform to HIG (well,
7128         conform more, at least:).
7130         * plug-ins/metapost/render_metapost.[ch] : Applied patch from
7131         Chris Sperandio <sperandi@eng.usf.edu>:  Fixed linewidths and
7132         arcs.  Implemented images (though there is some pixelization and
7133         banding in the output).  Changed output file format to be a little
7134         more readable.  
7136         * app/app_procs.c (app_exit): Added message for double exit, which
7137         shouldn't happen any more.  Also preventing strange g_object_unref
7138         messages by having a printf after gtk_main_quit.  This is really
7139         weird.
7141         * app/interface.c (toolbox_delete): Avoid double app_exit call by
7142         removing handler for destroy when delete is called.
7144 2003-07-07  Lars Clausen  <lrclause@cs.uiuc.edu>
7146         * app/display.h: 
7147         * app/display.c (ddisplay_scroll_to_object,
7148         ddisplay_scroll_center_point):  New function for easy scrolling to
7149         object or point.
7151 2003-07-06  Lars Clausen  <lrclause@cs.uiuc.edu>
7153         * plug-ins/xslt/Makefile.am: Patch from Hubert Figuiere:  Add
7154         $(srcdir) on stylesheets.xml.
7156         * app/menus.c: Patch from Hubert Figuiere: Adds help menu to
7157         diagram menus (since they're at the top by default now).  Also
7158         move the Properties... menu item from Dialogs to Objects.  Dialogs
7159         menu should disappear at some point.
7161         * autogen.sh: Patch from Hubert Figuiere: Don't automatically call
7162         ./configure from ./autogen.sh, as configure may need to be run
7163         from a different directory.  (Also more standard this way.)
7165         * app/app_procs.c (app_init): 
7166         * app/Makefile.am (INCLUDES): Gnome standardization patch from
7167         Alex. 
7169 2003-07-03  Lars Clausen  <lrclause@cs.uiuc.edu>
7171         * objects/flowchart/parallelogram.c (pgram_update_data):
7172         Left/right alignment for parallelograms.  Doesn't use all
7173         available space, but then pgrams also ignore their shear value.
7174         This thing needs a loving hand.
7176 2003-07-01  Hans Breuer  <hans@breuer.org>
7178         * lib/properties.h : introduce PROP_FLAG_OPTIONAL
7179         * lib/proplist.c : don't complain if optional attr is missing
7180         * lib/orth_conn.h : make "orth_autoroute" optional to
7181         stop complaining with older files.
7183 2003-06-13  Guntupalli Karunakar  <karunakar@freedomink.org>
7185         * configure.in: Added "ml" for Malayalam in ALL_LINGUAS.
7187 2003-06-05  Andrew Halper  <ashalper@cox.net>
7189         * app/diagram_tree.c : add scrolling of drawing area
7190         to desired object on "Locate".  Patch modified to use new ddisplay
7191         function ddisplay_scroll_to_object().
7193 2003-06-11  Lars Clausen  <lars@raeder.dk>
7195         * lib/diagramdata.h: Added major_lines, dynamic and colour to grid
7196         info.  Before next version, the grid dialog (view dialog, really)
7197         must be redone to allow a) instant apply, b) apply to all
7198         diagrams, and c) setting colour, dynamic, major lines.
7200         * app/preferences.h: 
7201         * app/preferences.c (prefs_data): Remove option to use stippled
7202         grid, add option for major line offset.  Default to 5 minor lines
7203         per major line.
7204         Add option for dynamically sized grid.
7206         * app/display.c (ddisplay_render_pixmap): Call pagebreak_draw as well.
7208         * app/grid.c: Pagebreak drawing separated out.  Grid drawing using
7209         stippled/solid to display minor/major grid lines.  Line drawing in
7210         separate function away from calculating line distance.
7212         * app/grid.h: Split page break drawing out of grid_draw.
7214 2003-05-15  Hans Breuer  <hans@breuer.org>
7216         * plug-ins/python/diasvg.py : add xlink definition,
7217         also avoid to put spaces into attribute values. At least
7218         Sodipodi doesn't like them in width/height attributes
7220         * plug-ins/python/diasvg_import.py : add simple scaling.
7221         Some (more) handling for <svg>, <desc>, <circle>        
7223         * plug-ins/python/scascale.py : (new file) which does
7224         some experimental scaling via StdProp api
7226         * plug-ins/python/pydia-cpoint.c 
7227           plug-ins/python/pydia-handle.c : return PyDiaPoint for
7228         obj.pos not simple tuples. PyDiaPoint has a tuple interface
7229         so this may even be api compatible ...
7231 2003-05-11  Hans Breuer  <hans@breuer.org>
7233         * app/line_area.c : add window position persitence
7235         * lib/poly_conn.[hc] lib/polyshape.[hc] : allow to set 
7236         'poly_points' via StdProp api
7237         * lib/neworth_conn.h : don't rely on OrthConn and 
7238         NewOrtConn having the same struct offsets
7240         * lib/properties.h : introduce PROP_FLAG_WIDGET_ONLY
7241         to help separating 'useful' properies - in terms of
7242         the PyDia access
7244         * objects/custom/custom_object.c
7245           objects/UML/*.c
7246         add the missing prop_desc_list_calculate_quarks to
7247         all the *_describe_props()
7249         * objects/standard/beziergon.c objects/standard/bezier.c :
7250         explicit initializtion of default_user_data
7251         * objects/standard/polygon.c objects/standard/polyline.c :
7252         Same here. Also use POLY<CONN|SHAPE>_COMMON_PROPERTIES
7254         * plug-ins/python/diamodule.c : implement dia.register_import
7256         * plug-ins/python/makefile.msc : need to link with Pango
7257         for pango_color_parse()
7259         * plug-ins/python/pydia-property.c : add a bunch of type
7260         conversions to PyDiaProperty_ApllyToObject()
7262         * plug-ins/python/diasvg_import.py : (new file) which currently
7263         is mainly a stress test for PyDia but for some files already
7264         produces better results than svg-import.c
7266 2003-05-06  Lars Clausen  <lrclause@cs.uiuc.edu>
7268         * objects/UML/uml.c (uml_get_operation_string): Avoid ':' on
7269         type-less operations.
7271 003-05-03  Hasbullah Bin Pit  <sebol@ikhlas.com>
7273         * configure.in(ALL_LINGUAS): Added "ms".
7275 2003-05-01  Lars Clausen  <lrclause@cs.uiuc.edu>
7277         * plug-ins/xslt/xslt.c (xslt_ok): 
7278         * plug-ins/shape/shape-export.c (new_shape_renderer): 
7279         * plug-ins/svg/render_svg.c (new_svg_renderer): 
7280         * plug-ins/hpgl/hpgl.c (export_data): 
7281         * plug-ins/dxf/dxf-export.c (export_dxf): 
7282         * plug-ins/metapost/render_metapost.c (export_metapost): 
7283         * plug-ins/pstricks/render_pstricks.c (export_pstricks): 
7284         * plug-ins/xfig/xfig-export.c (export_fig): 
7285         * plug-ins/wpg/wpg.c (export_data): 
7286         * plug-ins/cgm/cgm.c (export_cgm): 
7287         * app/render_eps.c (export_eps): 
7288         * app/export_png.c (export_png_ok): 
7289         * app/load_save.c (diagram_data_save): Adding and standardizing
7290         output file error messages to include fopen error message.
7292 2003-05-01  Steffen Macke <sdteffen@web.de>
7294         * app/persistence.c: do not use unistd.h for MSVC build
7296 2003-04-30  Lars Clausen  <lrclause@cs.uiuc.edu>
7298         * sheets/Assorted.sheet.in
7299         * sheets/Circuit.sheet.in
7300         * sheets/Contact.sheet.in
7301         * sheets/EML.sheet.in
7302         * sheets/ER.sheet.in
7303         * sheets/Electric.sheet.in
7304         * sheets/FS.sheet.in
7305         * sheets/Flowchart.sheet.in
7306         * sheets/GRAFCET.sheet.in
7307         * sheets/Logic.sheet.in
7308         * sheets/MSE.sheet.in
7309         * sheets/Misc.sheet.in
7310         * sheets/Pneumatic.sheet.in
7311         * sheets/SADT.sheet.in
7312         * sheets/SDL.sheet.in
7313         * sheets/UML.sheet.in
7314         * sheets/chronogram.sheet.in
7315         * sheets/ciscohub.sheet.in
7316         * sheets/ciscomisc.sheet.in
7317         * sheets/cisconetwork.sheet.in
7318         * sheets/ciscorouter.sheet.in
7319         * sheets/civil.sheet.in
7320         * sheets/network.sheet.in
7321         * sheets/sybase.sheet.in:
7322         Patch from Jan-Willem Harmanny <jwharmanny@zeelandnet.nl>
7323         standardizes shape descriptions to use no articles, no 'create
7324         ...'.
7325         
7326         * app/interface.c (tool_data): Standard objects follow same
7327         standard as sheets.
7329 2003-04-29  Lars Clausen  <lrclause@cs.uiuc.edu>
7331         * app/color_area.c (color_area_edit): More informative title on
7332         color selection dialog.
7334         * app/disp_callbacks.c (ddisplay_drop_object): Update menu
7335         sensitivity when dropping object in.  Also reset tool to pointer.
7337         * objects/flowchart/diamond.c (diamond_update_data): 
7338         * objects/flowchart/parallelogram.c (pgram_update_data): Added
7339         left and right alignment options.
7341 2003-04-28  Lars Clausen  <lrclause@cs.uiuc.edu>
7343         * objects/flowchart/box.c: Added left and right alignment options.
7345 2003-04-26  Lars Clausen  <lrclause@cs.uiuc.edu>
7347         * app/persistence.c (persistence_load): Test existence of
7348         persistence file before trying to open it.
7350 2003-04-25  Lars Clausen  <lrclause@cs.uiuc.edu>
7352         * app/properties.c: Escape now closes properties dialogs.
7354 2003-04-25  Hans Breuer  <hans@breuer.org>
7356         * app/config.h.win32 : bump version to 0.91+cvs
7358         * app/makefile.msc lib/makefile.msc lib/libdia.def : updated
7360         * lib/dia_dirs.c : G_OS_WIN32: #define mkdir(s,a) _mkdir(s)
7362         * app/commands.c : don't leak "netscape" if getenv("BROWSER")
7363         returns NULL
7365         * app/presistence.c : need to #include "dia_xml_libxml.h"
7366         for xmlDiaParseFile
7368         * app/layer_dialog.c : make delayed creation work by protecting
7369         all non static layer_dialog_*() with :
7370            if (layer_dialog == NULL || layer_dialog->dialog == NULL)
7371              create_layer_dialog();
7372         * app/app_procs.c : removed /* create_layer_dialog(); */
7374         * objects/uml/association.c : give it a minimal StdProp
7375         implementation to fix bug #108896
7376         * lib/object_defaults.c : don't try to copy props if there
7377         is no obj->ops->describe_props
7379 2003-04-24  Lars Clausen  <lrclause@cs.uiuc.edu>
7381         * objects/standard/image.c (image_create): 
7382         * objects/standard/ellipse.c (ellipse_create): 
7383         * objects/standard/box.c (box_create): 
7384         * objects/flowchart/ellipse.c (ellipse_create): 
7385         * objects/flowchart/diamond.c (diamond_create): 
7386         * objects/flowchart/box.c (box_create): 
7387         * objects/custom/custom_object.c (custom_create): 
7388         * objects/ER/relationship.c (relationship_create): 
7389         * objects/ER/entity.c (entity_create): 
7390         * objects/ER/attribute.c (attribute_create): Initialize
7391         elem->height to DEFAULT_HEIGHT instead of DEFAULT_WIDTH.
7393         * lib/dia_svg.c (dia_svg_parse_style): Added case to set center
7394         alignment. 
7396         * configure.in: 
7397         * plug-ins/Makefile.am: 
7398         * plug-ins/xslt/Makefile.am: 
7399         * plug-ins/xslt/xslt.c (dia_plugin_init): 
7400         Patch from Götz Waschk <waschk@informatik.uni-rostock.de> uses
7401         automake-style if to only include xslt dir when needed.  Works
7402         with automake 1.4 and up, at least.
7404 2003-04-22  Lars Clausen  <lrclause@cs.uiuc.edu>
7406         * lib/diasvgrenderer.c (draw_string): 
7407         * lib/dia_svg.c (dia_svg_parse_style): Use
7408         text-anchor:(start|middle|end).
7410         * lib/diasvgrenderer.c (draw_polygon, fill_polygon): Use svg
7411         polygon rather than polyline & avoid missing line pieces.
7412         (get_draw_style): Set fill-opacity to 0 on draw_style to avoid
7413         black-filled things.
7415 2003-04-21  Lars Clausen  <lrclause@cs.uiuc.edu>
7417         * app/persistence.c (persistence_load): Check that persistence
7418         file exists before trying to read it.
7419         (persistence_update_window): Removed printf.
7421         * objects/GRAFCET/step.c: Don't copy defaults for name and id.
7423         * lib/autoroute.c: Take badness into the layouters again, as some
7424         of them know they can do things that are pretty but would be
7425         counted as ugly by the default calculation.
7427         * objects/UML/large_package.c: Shrink package name box when no
7428         stereotype is present.
7430         * lib/orth_conn.h (ORTHCONN_COMMON_MENUS): 
7431         * lib/orth_conn.c: Added object menu item for autorouting.
7433         * objects/FS/flow-ortho.c (orthflow_get_object_menu): 
7434         Autorouting, plus set initial dragging handle to be the end, not
7435         the middle.
7436         (orthflow_draw): Flipped arrow place to be at the end, as
7437         originally intended (got lost in arrow update).
7439         * objects/standard/zigzagline.c (zigzagline_get_object_menu): 
7440         * objects/UML/dependency.c (dependency_get_object_menu): 
7441         * objects/UML/association.c (association_get_object_menu): 
7442         * objects/UML/realizes.c (realizes_get_object_menu): 
7443         * objects/SADT/arrow.c (sadtarrow_get_object_menu): 
7444         * objects/GRAFCET/vector.c (arc_get_object_menu): 
7445         * objects/ER/participation.c (participation_get_object_menu): 
7446         * objects/EML/instantiation.c (instantiation_get_object_menu): 
7447         * objects/UML/generalization.c (generalization_get_object_menu): 
7448         * objects/EML/interaction-ortho.c (interaction_ortho_get_object_menu): 
7449         Autorouting setup (currently disabled for SADT/arrow).
7450         
7451 2003-04-19  Lars Clausen  <lrclause@cs.uiuc.edu>
7453         * lib/autoroute.c: Removed printfs.
7455         * lib/orth_conn.c: 
7456         * lib/autoroute.[ch] (autoroute_layout_orthconn): Handle
7457         non-connected orthconns too.
7459 2003-04-18  Lars Clausen  <lrclause@cs.uiuc.edu>
7461         * lib/orth_conn.h: 
7462         * lib/orth_conn.c: Function to set autorouting on/off, use
7463         autorouting in move_handle (turns off when a middle handle is
7464         moved), added to standard orthconn props. 
7466         * app/disp_callbacks.c (create_object_menu, popup_object_menu):
7467         Stopped signal emission for check menu items being set to on/off.
7469         * objects/standard/zigzagline.c: Added autorouting object menu item.
7471         * lib/autoroute.c: Added last cases of autoroute layout, fixed
7472         floating point comparison bug, cleaned up layouters, tweaked
7473         badness to allow kinks. 
7475 2003-04-17  Lars Clausen  <lrclause@cs.uiuc.edu>
7477         * lib/connectionpoint.h: Changed DIR_* macros to go around the
7478         clock. 
7480         * lib/orth_conn.[ch] (orthconn_set_points): New function to set all
7481         points at once.
7482         * objects/standard/zigzagline.c (zigzagline_move_handle): Removed
7483         old cruft, added call to autoroute (currently cannot be turned
7484         off).  Need to check what undo thinks about this.
7485         * lib/autoroute.[ch]: Fairly working simple layout.
7487         * lib/Makefile.am (libdia_la_SOURCES): Added autoroute files.
7488         * lib/autoroute.[ch]: Start of proper autorouting functionality.
7490 2003-04-10  Lars Clausen  <lrclause@cs.uiuc.edu>
7492         * lib/prop_widgets.c: Show labels on ListProp.
7494 2003-04-11  Steffen Macke <sdteffen@web.de>
7496         * doc/en/dia-manual.xml: removed reference of non-existing authors 
7497         note.
7498         * doc/en/usage-objects-selecting: commented out misleading section
7499         references.
7501 2003-04-10  Lars Clausen  <lrclause@cs.uiuc.edu>
7503         * app/app_procs.c (app_init): Layer window now opened at startup
7504         only if needed.
7506         * lib/prop_widgets.c: Show labels on ListProp.
7508 2003-04-09  Steffen Macke <sdteffen@web.de>
7510         * doc/en/*.sgml: removed files
7511         * doc/en/*.xml: added files
7512         * doc/en/Makefile.am: switched to XML DocBook
7514 2003-04-09  Lars Clausen  <lrclause@cs.uiuc.edu>
7516         * plug-ins/xslt/xslt.c (dia_plugin_init): 
7517         * configure.in: Added --with-xslt-prefix to allow other XSLT
7518         placements than /usr/lib.
7520 2003-04-09  Steffen Macke <sdteffen@web.de>
7522         * lib/makefile.mingw: updated to include latest files, including 
7523         and linking libintl
7524         * lib/geometry.h: don't define isinf and finite for mingw gcc build
7526 2003-04-08  Lars Clausen  <lrclause@cs.uiuc.edu>
7528         * app/persistence.h:
7529         * app/persistence.c (persistence_register_window_create): 
7530         * app/app_procs.c (app_init): 
7531         Register window function that doesn't create the window unless it
7532         should be open.  Other windows should move to this, so startup
7533         speed can be reduced.
7534         
7535         * app/persistence.h: Removed call prototype for update_window, now
7536         done internally.
7537         * app/persistence.c (persistence_register_window): A number of
7538         fixes.  Doesn't forget position when window is closed.  Now
7539         actually loads prefs.
7541         * app/layer_dialog.c (create_layer_dialog): Removed extraneous
7542         event connect.
7544         * app/preferences.c (prefs_data): 
7545         * app/diagram_tree_window.h: 
7546         * app/diagram_tree_window.c: Added persistence registering.
7547         Removed prefs items storing size and openness. 
7549         * app/sheets_dialog.c (create_sheets_main_dialog): Added
7550         persistence registering.  
7552         * app/Makefile.am (dia_core_files): Added persistence files.
7554         * lib/dia_dirs.h: 
7555         * lib/dia_dirs.c (dia_config_ensure_dir): New function to ensure
7556         that dirs are present.
7558         * app/app_procs.c (app_init): Loads persistent values on startup.
7559         (app_exit): Saves persistent values on exit.
7561         * app/layer_dialog.c (create_layer_dialog): Registers the layer
7562         window for persistence.
7564         * app/persistence.[ch]: New files handling various kinds of
7565         persistence.
7567 2003-04-04  Lars Clausen  <lrclause@cs.uiuc.edu>
7569         * lib/arrows.c: Adjusted arrow head spacing, more systematic arrow
7570         head spacing calculations.  Added half-circle arrow from Matthieu
7571         Sozeau <mattam@netcourrier.com> 
7573 2003-04-03  Lars Clausen  <lrclause@cs.uiuc.edu>
7575         * app/app_procs.c (app_init): Moved layer dialog init to allow
7576         tooltips to be initialized.
7578         * app/interface.c (create_display_shell): More tooltips.
7580         * app/linewidth_area.c (linewidth_area_create) 
7581         (linewidth_area_events): 
7582         * app/color_area.c (color_area_events, color_area_create): 
7583         Made tooltips work by embedding drawing_area in event_box.
7585         * app/interface.c (create_display_shell,
7586         (create_lineprops_area, create_color_area): Added a few tooltips.
7588 2003-04-01  Lars Clausen  <lrclause@cs.uiuc.edu>
7590         * app/pixmaps/off-grid.xpm: 
7591         * app/pixmaps/on-grid.xpm: 
7592         * app/Makefile.am (EXTRA_DIST): Added snap to grid icons.
7594         * app/display.h: 
7595         * app/commands.c (view_snap_to_grid_callback): 
7596         * app/display.c (ddisplay_set_snap_to_grid) 
7597         (update_snap_grid_status): 
7598         * app/interface.c (create_display_shell, grid_toggle_snap): 
7599         Added snap-to-grid status button.
7601 2003-03-31  Lars Clausen  <lrclause@cs.uiuc.edu>
7603         * app/app_procs.c (app_init): Create a new diagram if a file on
7604         the command line isn't found.
7606 2003-03-17  Lars Clausen  <lrclause@cs.uiuc.edu>
7608         * lib/dialibartrenderer.c (draw_string): Correct color handling
7609         for AA.
7611 2003-03-14  Lars Clausen  <lrclause@cs.uiuc.edu>
7613         * NEWS: 
7614         * doc/en/dia-manual.sgml: 
7615         * doc/pl/dia-manual.sgml: 
7616         * configure.in: 
7617         * dia.spec (Release): 
7618         Version 0.91 is here!
7620 2003-02-10  Steffen Macke <sdteffen@web.de>
7622         * plug-ins/wmf/wmf.cpp: patch from Ken Tsukahara 
7623         <ken.tsukahara@tmt-d.co.jp>, fixes windows printing and WMF export of
7624         non-ANSI characters, closes #107980
7626 2003-03-04  Lars Clausen  <lrclause@cs.uiuc.edu>
7628         * configure.in: 
7629         * NEWS: 
7630         * dia.spec (Release): 
7631         * doc/en/dia-manual.sgml: Upping to pre6.
7633         * configure.in: Missing comma broke HAVE_IEEEFP_H test.
7635         * app/lineprops_area.c (dia_arrow_chooser_new): Fixing bug
7636         #107511:  Make arrow selector for correct arrow type.
7638 2003-03-03  Lars Clausen  <lrclause@cs.uiuc.edu>
7640         * shapes/Circuit/Makefile.am (SHAPES): Added hjumper.png to
7641         EXTRA_DIST.
7643 2003-03-02  Lars Clausen  <lrclause@cs.uiuc.edu>
7645         * doc/en/dia-manual.sgml: 
7646         * configure.in: 
7647         * NEWS: 
7648         * dia.spec (Release): Upping to pre5.
7650         * configure.in: Add freetype-config derived libs to the
7651         AC_CHECK_LIB statement for freetype.
7653 2003-02-28  Hans Breuer  <hans@breuer.org>
7655         [fix for bug #107203]
7657         * lib/diarenderer.c : add warning 'implementation'
7658         for fill_rect to avoid crashing with a renderer
7659         which does not implement this required function.
7661         * plug-ins/dxf/dxf-export.c : provide - still empty -
7662         'implementations' for fill_rect and fill_polygon 
7663         to suppress the above warnings. Now it works like
7664         in version 0.90 
7666 2003-02-28  Steffen Macke <sdteffen@web.de>
7668         * samples/all_objects.dia: New sheet containing all dia shapes
7669         and objects; one layer per sheet
7670         
7671 2003-02-28  Lars Clausen  <lrclause@cs.uiuc.edu>
7673         * lib/prop_text.c (multistringprop_get_widget,
7674         multistringprop_reset_widget, multistringprop_set_from_widget): 
7675         Now uses GtkTextView instead of deprecated stuff, and also works:)
7677         * configure.in: Slightly more informative error message for isinf.
7679         * dia.spec (Requires): Require libxml2 rather than libxml.
7681 2003-02-28  Steffen Macke <sdteffen@web.de>
7683         * shapes/Circuit/hjumper.png:
7684         * shapes/Circuit/hjumper.shape: added missing icon for horizontal
7685         jumper shape
7686         
7687 2003-02-26  Lars Clausen  <lrclause@cs.uiuc.edu>
7689         * doc/en/dia-manual.sgml: 
7690         * configure.in: 
7691         * dia.spec (Release):
7692         * NEWS: New prerelease 0.91pre4, two important fixes.
7694 2003-02-25  Lars Clausen  <lrclause@cs.uiuc.edu>
7696         * plug-ins/xslt/Makefile.am (EXTRA_DIST): Also dist
7697         stylesheets.xml.in 
7699         * app/commands.c (help_manual_callback): More correct URL for help
7700         page (include file://, was broken on Dillo without it).
7702 2003-02-24  Lars Clausen  <lrclause@cs.uiuc.edu>
7704         * app/disp_callbacks.c: Set modifed when text is changed.
7706         * app/modify_tool.c (modify_button_release): Allow undo for moving
7707         objects.
7709 2003-02-16  Lars Clausen  <lrclause@cs.uiuc.edu>
7711         * dia.spec: 
7712         * doc/en/dia-manual.sgml: 
7713         * NEWS: 
7714         * configure.in: New prerelease with important bugfix.
7715         * shapes/network/digitizing_board.png:
7716         * shapes/network/plotter.png: Re-adding with -kb.
7717         
7718 2003-02-17  Abel Cheung  <maddog@linux.org.hk>
7720         * app/app_procs.c (app_init): Add comment for translators.
7722 2003-02-16  Lars Clausen  <lrclause@cs.uiuc.edu>
7724         * lib/filter.c (filter_register_import, filter_register_export):
7725         Don't accept filters with NULL description.
7727         * lib/plug-ins.c (dia_plugin_load): Fail if there's no description
7728         (as we assume the description is available in other places).
7730 2003-02-15  Lars Clausen  <lrclause@cs.uiuc.edu>
7731         
7732         * app/disp_callbacks.c (ddisplay_vsb_update, ddisplay_hsb_update): 
7733         * app/display.c (ddisplay_resize_canvas): Use
7734         ddisplay_add_update_all().
7735         (ddisplay_add_update_all): Free display and update lists when
7736         doing update_all, as they'll be regenerated immediately to cover
7737         all visible area.  Fixes bug #106165, crash when resizing.  This
7738         appears to be the original AA crash bug, believed long extinct.
7740 2003-02-13  Lars Clausen  <lrclause@cs.uiuc.edu>
7742         * app/commands.c (help_manual_callback): Use file: protocol for
7743         help. 
7745         * plug-ins/xslt/.cvsignore: Ignore .o files, please.
7747         * plug-ins/xslt/stylesheets: Removed old-style config file.
7748         
7749         * plug-ins/xslt/stylesheets.xml.in: New XML-based config file.
7751         * plug-ins/xslt/Makefile.am: 
7752         * plug-ins/xslt/xslt.c: Applied patch from Matthieu, improved path
7753         handling (no more DIA_PLUGIN_PATH).
7755 2003-02-11  Lars Clausen  <lrclause@cs.uiuc.edu>
7757         * plug-ins/svg/render_svg.c: 
7758         * lib/diasvgrenderer.c: Fixed numeric localized output issues.
7760 2003-02-10  Lars Clausen  <lrclause@cs.uiuc.edu>
7762         * objects/SADT/arrow.c (sadtarrow_draw): Clamp cosa, cosb to 
7763         [-1.0, 1.0].  Shouldn't be necessary, but in some cases the
7764         side of the triangle is longer than the hypotenuse.  Rounding
7765         error suspected.
7767 2003-02-09  Lars Clausen  <lrclause@cs.uiuc.edu>
7769         * NEWS: 
7770         * configure.in: 
7771         * doc/en/dia-manual.sgml: Update for pre2.
7773         * app/menus.c (display_menu_items): Fixed wrongly place separators.
7775         * objects/flowchart/box.c (box_update_data): Applied patch from
7776         Eivind Tagseth <eivind-gnome@multinet.no> to allow resize (with
7777         comment). 
7779         * app/paginate_psprint.c (print_page): Set paper name, so it
7780         convinces ps printers to use to right size.
7782 2003-02-07  Lars Clausen  <lrclause@cs.uiuc.edu>
7784         * app/properties.c (properties_show): Hide the dialog if the
7785         object is NULL (get rid of 'no properties' randomly popping up).
7787 2003-02-06  Lars Clausen  <lrclause@cs.uiuc.edu>
7789         * plug-ins/pixbuf/pixbuf.c (export_data): Adjust width and height
7790         for diagrams not starting at origo.
7792 2003-02-05  Lars Clausen  <lrclause@cs.uiuc.edu>
7794         * dia.spec (BuildRequires): Use libxml2-devel.
7796         * plug-ins/pixbuf/Makefile.am: Added to CVS.
7798         * RELEASE-PROCESS: Note on RPM version numbers.
7800         * app/interface.c (create_display_shell): Don't set as toolbar
7801         under Unix, either.  Especially not the diagram shell.  It removes
7802         it from the taskbar and makes it unresizable, always-on-top with
7803         OpenBox.  TOOLBAR != TOOLBOX.  Setting toolbox to the only
7804         appropriate thing, UTILITY, is not good either, you lose resizing
7805         and minimizing/maximizing under OpenBox.
7807         * app/menus.c (display_menu_items): Set delete item to use Delete.
7809 2003-02-04  Lars Clausen  <lrclause@cs.uiuc.edu>
7811         * dia.spec (BuildRequires, Requires): Updated for Gtk2
7812         requirements.
7814         * app/disp_callbacks.c (ddisplay_canvas_events): Only add a
7815         display flush when getting focus in, or we may get an update after
7816         the diagram has been destroyed in some cases.  Fixes bug #105221.
7818         * plug-ins/xfig/xfig-import.c: Notes on the splines used by XFig.
7820         * lib/diarenderer.c: Notes on the basis matrix for our beziers.
7822         * app/app_procs.c (app_init): Fixed missing popt context for Gnome
7823         - gnome-compiled Dia will now read files specified on the command line.
7825 2003-02-03  Lars Clausen  <lrclause@cs.uiuc.edu>
7827         * INSTALL (REQUIREMENTS): Updated requirements section.
7829         * configure.in: Better finite() check from MÃ¥rten Svantesson
7830         <f95-msv@nada.kth.se>.  Doesn't seem to generate strange dangly
7831         if's. 
7832         
7833 2003-02-03  Lars Clausen  <lrclause@cs.uiuc.edu>
7835         * plug-ins/xfig/xfig-import.c: Notes on spline conversions.
7837         * app/app_procs.c (debug_break): Added some code to avoid
7838         over-eager optimizations removing the call.  Surely there's a
7839         nicer way, but I'm not sure how.
7841         * app/diapsft2renderer.c (draw_bezier_outline): Removed paps relic
7842         that set text to black.
7844 2003-02-02  Lars Clausen  <lrclause@cs.uiuc.edu>
7846         * NEWS: Mention of Twiki as doc source for Python.
7848         * plug-ins/pixbuf/pixbuf.c: Export with pixbuf if
7849         libart/libpng is not available.  Later when we have a way of
7850         letting the user pick options in the file select dialog we shall
7851         allow the choice when applicable.
7853 2003-02-02  Steffen Macke <sdteffen@web.de>
7855         * doc/en/usage-loadsave.sgml:
7856         * doc/en/usage-objects.sgml: patch from
7857         James K. Lowden <jklowden@schemamania.org> to fix
7858         some docbook errors
7859         
7860 2003-02-01  Lars Clausen  <lrclause@cs.uiuc.edu>
7862         * plug-ins/Makefile.am (SUBDIRS): 
7863         * plug-ins/pixbuf/pixbuf.c: 
7864         * plug-ins/pixbuf/Makefile.am: 
7865         * configure.in: 
7866         Added pixbuf plugin to Makefile.am, but for import only.  PNG
7867         export handled by libart, which is better. JPG export is
7868         discouraged.  BMP is not much used on Unix.  Next release will
7869         integrate libart to allow all outputs.
7871 2003-02-01  Hans Breuer  <hans@breuer.org>
7873         * app/preferences.c :
7874         * app/pagesetup.c :
7875         the last two dialogs with 'old' button order finally
7876         are converted to gtk2, no GnomeDialog in all of Dia 
7877         anymore :-) 
7879 2003-02-01  Hans Breuer  <hans@breuer.org>
7881         * app/filedlg.c : don't try to use a button as
7882         'overwrite-file-dialog'-parent, use the FileSelDialog
7883         instead
7885         * plug-ins/pixbuf/pixbuf.c : make it work with 
7886         system-visual-depth < 24. Remove 'bmp' from output
7887         format extensions, it just was wishful thinking.
7889         * plug-ins/python/Makefile.am : added the four new python 
7890         plug-ins mentioned below to pyplugin_DATA and EXTRA_DIST
7892 2003-02-01  Hans Breuer  <hans@breuer.org>
7894         * NEWS : updated content beside dependencies
7896 2003-02-01  Hans Breuer  <hans@breuer.org>
7898         * lib/arrow.h : arrow_types needs to be declared as DIAVAR
7899         to make it useable across DLL boundaries
7900         * app/lineprops_area.c : same code to access arrow_types
7901         on all platforms
7903         * objects/UML/class.c : the non empty string is e.g.
7904         comment != NULL && comment[0] != '\0'
7905         * objects/UML/uml.c : same here, don't bother with
7906         empty operation stereotypes
7908 2003-02-01  Steffen Macke <sdteffen@web.de>
7910         * app/lineprops_area.c: latest changes do not work on
7911         windows, using old code without tooltips
7912         * makefile.msc: fixed copying of wmf.dll
7913         * plug-ins/makefile.msc: 
7914         * app/makefile.msc:
7915         * lib/makefile.msc: now linking libintl
7916         * config.h.win32: enabling native language support
7918 2003-01-31  Lars Clausen  <lrclause@cs.uiuc.edu>
7920         * plug-ins/xslt/Makefile.am (libxslt_filter_la_LDFLAGS): Removed
7921         -ldl and -lglib.  May or may not work on windows...awaiting verdict.
7923 2003-01-31  Daniel Yacob  <locales@geez.org>
7925         * configure.in: Added am (Amharic) to ALL_LINGUAS.
7927 2003-01-31  Steffen Macke <sdteffen@web.de>
7929         * objects/UML/class.c (umlclass_calculate_data): fixed crash
7930         when comments were visible, no class comment available and
7931         a attribute comment
7932          
7933 2003-01-31  Lars Clausen  <lrclause@cs.uiuc.edu>
7935         * RELEASE-PROCESS: Updated to fit new install-module syntax.
7936         * Prerelease 0.91-pre1 released on a suspecting public.  Tagging
7937         with DIA_0_91_PRE1.
7939 2003-01-30  Lars Clausen  <lrclause@cs.uiuc.edu>
7941         * config.h.win32: 
7942         * NEWS: 
7943         * configure.in:
7944         * dia.spec:
7945         Prerelease version changes, version 0.91-pre1.
7947         * app/sheets_dialog_callbacks.h: 
7948         * app/sheets_dialog_callbacks.c: 
7949         * app/sheets_dialog.c (create_sheets_main_dialog): 
7950         * app/sheets.c (sheets_dialog_create): More destroy stuff.  Trying
7951         to handle destruction of main dialog cleanly, but it's a mess.
7953         * configure.in: Downgraded ieeefp test to make it not produce
7954         illegal shell code.
7956         * lib/widgets.c (dia_arrow_selector_set_arrow): 
7957         (dia_line_style_selector_set_linestyle): Select menu dot
7958         correctly set.
7960         * lib/arrows.c (calculate_arrow_point): Fix of wrong arrow
7961         adjustment for diamondheads.
7963         * lib/plug-ins.c (dia_plugin_load): Fixed typo.
7965         * app/properties.c (create_dialog): Destroy properties dialog and
7966         box correctly.
7968         * app/sheets_dialog_callbacks.c
7969         (on_sheets_dialog_button_edit_clicked): Only create a new dialog
7970         if the old one is destroyed.
7972 2003-01-29  Lars Clausen  <lrclause@cs.uiuc.edu>
7974         * app/export_png.c (export_png_ok): Added info on resolution.
7975         Should (next release) improve export dialog to allow setting
7976         resolution instead of pixels.
7978         * app/lineprops_area.c (dia_arrow_chooser_new): Use menudesc list
7979         to generate arrowheads as well as tooltips.
7981         * lib/arrows.c: Added hollow diamond to menudesc list.
7983         * lib/arrows.[ch]: 
7984         * lib/widgets.[ch]: Moved arrow name list into arrows.[ch] to
7985         unify with rendered menu.
7987         * lib/diarenderer.c (draw_line_with_arrows)
7988         (draw_polyline_with_arrows, draw_arc_with_arrows)
7989         (draw_bezier_with_arrows): Fixed linestyle change bug (#104488)
7990         without changing renderer API.  Thanks to David Scherba for
7991         providing inspiration.
7993 2003-01-28  Lars Clausen  <lrclause@cs.uiuc.edu>
7995         * app/interface.c (create_display_shell):
7996         * app/display.h: Patching from Hubert Figuiere
7997         <hfiguiere@teaser.fr>:  Better types for menu bar widgets, and
7998         correct menu items.
8000 2003-01-26  Lars Clausen  <lrclause@cs.uiuc.edu>
8002         * app/defaults.c (defaults_show): Fixed defaults closing bug.
8003         Thanks to Hans for pointing it out.
8005 2003-01-25  Hans Breuer  <hans@breuer.org>
8007         * app/commands.c : don't warn about crashing libart renderer
8008         on win32. It simply doesn't render text anymore :-(
8010         * app/filedlg.c : use GtkMessageDialog for 'file overwrite'
8012         * objects/UML/class.c : don't access umlclass->properties_dialog
8013         after calling gtk_widget_destroy(umlclass->properties_dialog->dialog)
8014         which sets the former to NULL by destroy_properties_dialog() callback.
8016         * plug-ins/wmf/wmf.cpp : use dia_image_rowstride()
8018         * plug-ins/python/pydia-font.c : fix PyDiaFont_GetAttr()
8020         * plug-ins/python/pydia-image.c : add image.uri member
8021         not only useful for SVG rendering
8023         * plug-ins/python/diasvg.py : (new file) a more advanced
8024         example. A full blown SVG Renderer, currently only
8025         registered for .svgz
8027         * plug-ins/python/export-object.py : write text props
8029         * plug-ins/python/debug_objects.py : write prop.type and
8030         prop.visible 
8032 2003-01-25  Lars Clausen  <lrclause@cs.uiuc.edu>
8034         * objects/UML/association.c (association_update_data): Better
8035         bounding box for assoc with arrows.
8037         * lib/properties.h: New flag for properties with multiple values
8038         in groups.
8040         * app/lineprops_area.c (dia_arrow_chooser_dialog_show): Correct
8041         arrow updating in dialog.  Was broken due to changes from destroy
8042         fix:(
8044         * app/commands.c (view_aa_callback): AA warning only for Windows
8045         -- I trust the Unix side well enough.
8047         * app/render_libart.c (get_text_width): 
8048         * lib/dialibartrenderer.h (struct _DiaLibartRenderer): Font and
8049         font height can be taken from parent instance.
8051         * lib/dialibartrenderer.c (dia_libart_renderer_class_init) 
8052         (get_text_width): Proper cursor positioning for libart renderer.
8053         Ought to have a DiaInteractiveRenderer that these two can inherit
8054         from, that knows about transform.
8056 2003-01-25  Steffen Macke <sdteffen@web.de>
8058         * plug-ins/xslt/xslt.h: don't use dlfcn.h on win32. XSLT
8059         plug-in still not working on win32
8060         
8061 2003-01-24  Lars Clausen  <lrclause@cs.uiuc.edu>
8063         * app/disp_callbacks.c (ddisplay_canvas_events): Moved
8064         gdk_window_get_pointer to avoid destroy crash.  Simpler than I
8065         thought.
8067 2003-01-23  Lars Clausen  <lrclause@cs.uiuc.edu>
8069         * app/app_procs.c (app_init): Run gtk_init before popt so we don't
8070         bail out on gtk options.
8072         * lib/message.c (gtk_message_internal): Better handling of destroy
8073         event.
8075 2003-01-22  Lars Clausen  <lrclause@cs.uiuc.edu>
8077         * app/color_area.c (color_area_edit): 
8078         * lib/widgets.c (dia_file_selector_browse_pressed) 
8079         (dia_color_selector_pressed): 
8080         * app/plugin-manager.c (get_plugin_manager): 
8081         * app/filedlg.c (file_open_callback, file_save_as_callback) 
8082         (file_export_callback):
8083         * app/diagram_tree_window.c (diagram_tree_window_new): Correct
8084         handling of destroy event.
8086 2003-01-22  Alan Horkan <horkana@tcd.ie>
8088         * app/commands.c (file_new_callback): Changed Untitled to Diagram
8089         for default name.
8091 2003-01-21  Lars Clausen  <lrclause@cs.uiuc.edu>
8093         * app/preferences.c (prefs_create_dialog): 
8094         * app/linewidth_area.c (linewidth_create_dialog): 
8095         * app/lineprops_area.c (dia_arrow_chooser_dialog_show): 
8096         * app/layer_dialog.c (create_layer_dialog)
8097         (layer_dialog_edit_layer): Correct handling of destroy signal. 
8099         * app/diapsft2renderer.c (set_font): Adjust silly random factor
8100         for change in font.c
8102         * lib/widgets.c: Avoid warning when font menu file doesn't exist.
8104         * lib/font.c (dia_font_build_layout): Let's all use the same weird
8105         factor here.
8107         * app/lineprops_area.c (dia_arrow_chooser_dialog_show): 
8108         * app/layer_dialog.c (create_layer_dialog) 
8109         (layer_dialog_edit_layer): 
8110         * app/filedlg.c (file_open_callback, file_save_as_callback) 
8111         (file_export_callback): 
8112         * app/dia-props.c (create_diagram_properties_dialog): 
8113         * app/defaults.c (defaults_dialog_destroyed): 
8114         * app/color_area.c (color_area_edit): Dialog destroy event handling.
8116 2003-01-19  Lars Clausen  <lrclause@cs.uiuc.edu>
8118         * app/defaults.c (defaults_dialog_destroyed): Reset cache when
8119         defaults dialog destroyed.
8121 2003-01-19  Steffen Macke <sdteffen@web.de>
8123         * objects/makefile.msc: added bondgraph
8124         * plug-ins/makefile.msc: added GDK_PIXBUF_LIBS in order
8125         to compile pixbuf.dll
8126         * makefile.msc: copying all objects and dlls now
8127         
8128 2003-01-19  Hans Breuer  <hans@breuer.org>
8130         * app/diagram.[hc] : provide dia_open_diagrams(), make
8131         open_diagrams variable static
8132         * app/dia.def : export it (to be used by PyDia)
8133         * app/app_procs.c app/autosave.c app/diagram_tree_window.c
8134           app/display.c app/dynamic_refresh.c app/layer_dialog.c
8135           app/load_save.c : make use of dia_open_diagrams()
8137         * app/interface.c : don't set GDK_WINDOW_TYPE_HINT_TOOLBAR
8138         on win32. It removes the diagram window from the taskbar and
8139         shrinks it's window title to toolbar style (newest gtk2.2 cvs)
8141         * app/menus.c : add '...' to menu entries where a dialog 
8142         gets invoked
8143         * app/recent_files.c app/dia_embedd.c : reflect the above in 
8144         menus_get_item_from_path() calls
8146         * lib/libdia.def : add dia_image_rgba_data
8148         * lib/properties.h lib/prop_text.[hc] : add new property
8149         type StringList
8150         * objects/UML/class.[hc] object/UML/class_dialog.c : use
8151         StringList for attributes_strings and operations_strings to
8152         make this calculated data accessible via the Property API
8154         * plug-ins/python/diamodule.c : use dia_open_diagrams() and
8155         provide dia.new() to create a new diagram, dia.registered_types()
8156         to get on Dia's type registry, dia.message() for simple dialogs
8158         * plug-ins/python/pydia-diagram.c : implement DiaDiagram.display()
8159         to create a new display from a diagram. Let diagram.extents and
8160         diagram.bg_color return the same types as in diagramdata.*
8162         * plug-ins/python/pydia-geometry.c : add a read-only 
8163         'sequence interface' to DiaPoint and DiaRectangle
8165         * plug-ins/python/pydia-property.c : allow to get on StringList
8166         from Python
8168         * plug-ins/python/pydia-render.c : fix typo to make it compile
8170         * plug-ins/python/python-startup.py : removed 'import pygtk'
8171         again. This file does not need any gtk UI, and some python
8172         plug-ins don't do either
8174         * plug-ins/python/gtkcons.py : ported to GTK2 interface, now
8175         it should actually work as intended again
8177         * plug-ins/python/group_props.py : (new file) a prototype for
8178         one the most requested features: Change properties of selected
8179         objects in one step. Requires pygtk.
8181         * plug-ins/python/select_by.py : (new file) select objects by 
8182         common properties. Requires pygtk.
8184         [Start of 'PyDia Self Documentation Series']
8186         * plug-ins/python/pydiadoc.py : (new file) generates a new 
8187         diagram which contains all objects of dir(dia)
8188         
8189         * plug-ins/python/otypes.py : (new file) generates a new diagram 
8190         which contains all the currently registered object types sorted 
8191         by their containing package
8193 2003-01-18  Lars Clausen  <lrclause@cs.uiuc.edu>
8195         * configure.in: Added check for Pango >= 1.1.5, which appears to
8196         be enough to have text work.
8197         (INTLOBJS): Added dummy subst cause gettext doesn't always seem to
8198         do it.  AC_SUBST should be idempotent, though.
8200 2003-01-17  Lars Clausen  <lrclause@cs.uiuc.edu>
8202         * configure.in (HAVE_FREETYPE): Better test for freetype version
8203         using neat macro.
8204         Now actually sets HAVE_IEEEFP_H, needed for Solaris.
8206         * lib/font.c: Renamed global_size_one to global_zoom_factor to
8207         avoid confusion, and added comment.  Set scale factor in
8208         dia_font_build_layout to 1.0 for Unix side.  This fixes at least
8209         my weird scaling problems.  Fonts are now of the expectable size,
8210         i.e. the space between lines at size 1.0 is 1.0.  If we want a
8211         compatibility fix, we should scale fonts by about 1/0.75 from 0.90
8212         diagrams, though there will always be differences.
8214 2003-01-15  Lars Clausen  <lrclause@cs.uiuc.edu>
8216         * plug-ins/python/python-startup.py: 
8217         * plug-ins/python/gtkcons.py: Require gtk 2.0 for pygtk
8219         * plug-ins/python/python.c (dia_plugin_init): Added warning
8220         message for missing startup file.
8222         * lib/dialibartrenderer.c (draw_image): Alpha rendering!  Yay!
8223         
8224         * lib/dia_image.c (dia_image_rgb_data): 
8225         * app/diapsrenderer.c (draw_image): Fixed rowstride problems
8226         involving EPS.  Can't do transparency in EPS yet.
8228         * lib/dia_image.h: 
8229         * lib/dia_image.c (dia_image_rgba_data): New function to get RGBA
8230         data as one chunk.  Documentation for the RGB data getting funcs.
8231         (dia_image_rgb_data): Added comment.
8233         * lib/dialibartrenderer.c (draw_image): Correct rowstride handling
8234         (bug #103565)
8236 2003-01-13  Steffen Macke <sdteffen@web.de>
8238         * lib/dia_image.c: dia_image_rgb_data() is working for
8239         non-alpha images now. Fixes #93762
8240         * Makefile.am: added makefile.msc to EXTRA_DIST
8241         
8242 2003-01-10  Steffen Macke <sdteffen@web.de>
8244         * app/paginate_psprint.c: Closing print dialog when file
8245         could not be written. Fixes #84746
8246         
8247 2003-01-04  Steffen Macke <sdteffen@web.de>
8249         * doc/custom-shapes: incomplete description of <svg:text>
8251 2003-01-03  Steffen Macke <sdteffen@web.de>
8253         * makefile.msc(new): new makefile to create file
8254         structure suitable for running dia win32 under
8255         $(TOP)/dia/build/win32
8256         
8257 2003-01-02  Steffen Macke <sdteffen@web.de>
8258         
8259         * lib/dia_svg.c: including stdlib.h
8260         * lib/makefile.msc: added gdk_pixbuf libs to linker
8261         * app/makefile.msc: added gdk_pixbuf libs, made libart
8262         libs compatible with gnuwin32 package
8263         
8264 2003-01-01  Hans Breuer  <hans@breuer.org>
8266         * lib/font.c : more comment about global_size_one
8268         * app/menus.c : <control>[<shift>]A for plain gtk build too.
8270         * plug-ins/wmf/wmf.cpp : some type juggling to make 
8271         msvc7 happy
8273 2002-12-31  Steffen Macke <sdteffen@web.de>
8275         * app/makefile.msc: added hint on how to enable console output
8276         
8277 2002-12-17  Lars Clausen  <lrclause@cs.uiuc.edu>
8279         * objects/standard/textobj.c (textobj_load): Get the handle type
8280         right, at least to be the same as when created.
8282 2002-12-12  Lars Clausen  <lrclause@cs.uiuc.edu>
8284         * lib/dialibartrenderer.c (draw_string): Removed extra 'is'.
8286 2002-12-08  Hans Breuer  <hans@breuer.org>
8288         * app/commands.c : fixed bug #85315 'give diagram properties, 
8289         instead of no object selected error' almost a one-liner
8291         * app/splash.c : don't make having the logo pixmap
8292         mandatory. Fixes bug #96068. 
8294         * app/defaults.c : avoid crashing from open-dialog,esc,open-dialog
8295         sequence by connecting to the "delete_event"
8296         * app/objects/uml/class_dialog.c : handle "destroy" for 
8297         the same reason.
8299         * lib/libdia.def : remove diaXmlNewChild again
8301         * app/paginate_gdiprint.cpp : reflect Dia's page setting
8302         portrait/landscape in the windoze print dialog
8304         * objects/makefile.msc : only UML needs to link against
8305         $(GTK2_LIBS) and only custom against $(LIBXML2_LIBS)
8307 2002-12-08  Lars Clausen  <lrclause@cs.uiuc.edu>
8309         * objects/standard/ellipse.c (ellipse_distance_from): 
8310         * lib/geometry.c (distance_ellipse_point): Ellipse now uses the
8311         correct distance function.  Could be faster, but it's not really
8312         essential. 
8314 2002-12-07  Lars Clausen <lrclause@cs.uiuc.edu>
8316         * lib/font.c: Changed global_size_one to more correct 28.35.
8317         Looks better, too.
8319         * app/load_save.c:
8320         * lib/dia_xml.h: 
8321         * lib/dia_xml.c: Removed pretty print hack, the libxml thing works
8322         after all.
8324 2002-12-07  Hans Breuer  <hans@breuer.org>
8326         * lib/widgets.c : g_file_get_contents() silently assumes
8327         a binary file. Reflect when creating the font_menu file
8328         to get rid of junk in font menus
8330 2002-12-06  Hans Breuer  <hans@breuer.org>
8332         * app/diapsrenderer.[hc] app/diapsft2renderer.[hc] :
8333         removed 0xD 0xD 0xA line ends which get created by
8334         cvs if windoze line ends 0xD 0xA are checked in from
8335         *nix and checked out on win32.
8337         * app/preferences.c : changed toolbox_on_top default to
8338         false. It is currently not possible to change the behaviour
8339         at runtime, at least not on win32.
8341         * lib/dialibartrenderer.c : bug #94791 'rendering to 
8342         bitmap without PangoFt2' got delayed to milestone future 
8343         so wrap libart text rendering into PANGO_WIN32_FUTURE. 
8344         It is not available without my Pango patch in bugzilla.
8346         * lib/font.c : added comment to global_size_one and adapt
8347         the arbitrary size scaling in dia_font_build_layout() for
8348         win32, too. This is needed to get an acceptable font size 
8349         approximation for Dia 0.90 and earlier files.
8350         Also #include "message.h".
8352         * app/makfile.msc app/dia.def lib/makefile.msc lib/libdia.def :
8353         reflect movement of group.[hc]
8354         * lib/group.h : export group_type which gets used by app/*
8356         * lib/diagtkfontsel.c : added #undef GTK_DISABLE_DEPRECATED
8357         to get the GtkTypeInfo definition
8359         * plug-ins/makefile.msc : dxf and xfig don't need to link
8360         against app/ anymore now that group is moved to lib/
8362         * plug-ins/python/pydia-render.c : remove massive leaking
8363         of self, i.e. PyDiaRenderer
8365         *  plug-ins/python/makefile.msc : remove linking against
8366         GTK libs
8368 2002-12-06  Lars Clausen  <lrclause@cs.uiuc.edu>
8370         * objects/standard/line.c: Removed properties options for gaps,
8371         until release is done.
8373         * configure.in: Check for freetype version.
8375         * lib/text.c (text_insert_char): Fixed small buffer overflow for
8376         length = 0.
8378         * lib/dialibartrenderer.c (draw_string): Removed debugging printf.
8380         * app/diapsft2renderer.h: 
8381         * app/diapsft2renderer.c: 
8382         * app/diapsrenderer.h: 
8383         * app/diapsrenderer.c: Split ps rendering into standard and freetype.
8385         * app/render_eps.c (export_eps, new_psprint_renderer): Using
8386         PS_FT2 renderer when available.  Old render stuff killed.  Yay!
8388         * lib/properties.h: Fixed bad frame end def.
8390         * app/Makefile.am (dia_core_files): Added diapsft2renderer.[ch].
8392         * lib/dia_xml.c (data_add_string): Avoid #-less strings.
8393         
8394         * objects/bondgraph/Makefile.am: Removed unneeded EXTRA_DIST.
8396 2002-12-05  Lars Clausen  <lrclause@cs.uiuc.edu>
8398         * lib/font.c: Now checking for the proper dia-style standard fonts.
8400         * lib/Makefile.am: 
8401         * app/Makefile.am: Moving group.[ch]
8403         * plug-ins/dxf/dxf-import.c: 
8404         * plug-ins/xfig/xfig-import.c: 
8405         * plug-ins/xfig/xfig-export.c: Now can refer directly to group.h.
8407         * app/object_ops.c: 
8408         * app/object_ops.h: 
8409         * lib/object.c (object_list_move_delta, object_copy_list): 
8410         * lib/object.h: Moved some object-related functions from
8411         object_ops to object to assist moving group.c.
8413         * lib/diatypes.h: Added Group typedef.
8415         * lib/group.h: 
8416         * lib/group.c: Moved from app to lib to a) resolve plug-ins
8417         references, and b) make groups more "real" objects.
8419         * lib/Makefile.am (libdia_la_SOURCES): Added diatyps.h
8421 2002-12-03  Lars Clausen <lrclause@cs.uiuc.edu>
8423         * lib/font.c (dia_font_init): Added check that the three standard
8424         fonts exist.
8426 2002-12-02  Lars Clausen  <lrclause@cs.uiuc.edu>
8428         * lib/dia_xml.[ch]:
8429         * app/load_save.c: Linebreaks in dia files, no indentation.
8430         Should help text tools.  xmlNewChild wrapped in diaXmlNewChild for
8431         this. 
8432         
8433         * objects/standard/line.c: Small but important fixes to the line
8434         gap code.
8436         * lib/dia_xml.h: 
8437         * lib/dia_xml.c (diaXmlNewChild): 
8438         * app/load_save.c (diagram_data_write_doc, write_objects): Simple
8439         XML prettyprinting wrapper.
8441 2002-12-03  Steffen Macke <sdteffen@web.de>
8443         * shapes/Cisco/Makefile.am:
8444         * shapes/Cisco/*.shape: finished conversion of Cisco icons
8445         to *.png
8446         
8447 2002-12-02  Steffen Macke <sdteffen@web.de>
8449         * doc/en/Makefile.am:
8450         * doc/en/usage-objects.sgml:
8451         * doc/en/graphics/line_icon.png: (new) added line icon
8452         
8453 2002-12-02  Lars Clausen  <lrclause@cs.uiuc.edu>
8455         * objects/standard/line.c: Binary search object edge line gap.
8457 2002-12-01  Lars Clausen  <lrclause@cs.uiuc.edu>
8459         * configure.in: Added Cisco makefile, sorted Makefiles list.
8461         * shapes/Makefile.am (SUBDIRS): Added Cisco dir
8463         * configure.in: Now checks for availability of PangoFT2 and
8464         FreeType, raising an error if not found.
8466         * app/Makefile.am (dia_core_files): Adding diapsft2renderer from
8467         Hans.
8469 2002-12-01  Steffen Macke <sdteffen@web.de>
8470         
8471         * doc/en/usage-loadsave.sgml: updated information on import
8472         and export formats
8473         
8474 2002-11-28  Lars Clausen  <lrclause@cs.uiuc.edu>
8476         * app/commands.c (edit_copy_callback): Freeing copy_list.
8478 2002-11-28  Steffen Macke <sdteffen@web.de>
8479         
8480         * app/render_libart.c: art_config.h was included twice
8482 2002-11-27  Lars Clausen  <lrclause@cs.uiuc.edu>
8484         * sheets/.cvsignore: More ignorance.
8486         * lib/diagdkrenderer.c (draw_string): Removed silly #ifdef 1.
8488         * lib/prop_widgets.h: Two (currently unused) settings for frame
8489         foldability.
8491         * lib/prop_widgets.c (frame_beginprop_get_widget): Frames are now
8492         (by default) foldable. 
8494         * lib/propinternals.h: 
8495         * lib/propdialogs.c (prop_dialog_add_raw_with_flags): Way to add
8496         widgets in a more controlled manner.
8498         * objects/standard/line.c (line_update_data): Line gap things
8499         inserted.  Can do xeyes now:)
8501 2002-11-26  Christian Neumair  <chris@gnome-de.org>
8503         * .cvsignore: Changed.
8504         * objects/bondgraph/.cvsignore, plug-ins/metapost/.cvsignore,
8505         plug-ins/xslt/.cvsignore, shapes/Assorted/.cvsignore, shapes/Misc/.cvsignore:
8506         Added.
8508 2002-11-26  Lars Clausen  <lrclause@cs.uiuc.edu>
8510         * app/pixmaps/delete.xpm: Trashcan stolen from Gimp.
8512         * lib/widgets.c (dia_font_selector_get_font): Fixed wrong name
8513         passing to font hash.
8515         * app/filedlg.c (file_save_as_ok_callback): Check that filename is
8516         utf-8 or locale-convertible before adding to dialog text.  This
8517         probably needs done in a number of places where we get text from
8518         the environment and send it to GTK to display.
8520         * lib/widgets.c: Fixed case problems for font menu entries.
8522         * objects/SADT/annotation.c: Don't run the event test (but leave
8523         it here for inspiration).
8525         * lib/widgets.c: 
8526         * lib/widgets.h: Allowing setting preview text for fonts.
8528 2002-11-26  Lars Clausen  <lrclause@cs.uiuc.edu>
8530         * objects/bondgraph/Makefile.am: 
8531         * objects/bondgraph/bondgraph.c: 
8532         * configure.in: 
8533         * objects/Makefile.am: Added bond graph dir.
8535 2002-11-26  Lars Clausen  <lrclause@cs.uiuc.edu>
8537         * lib/text.c (text_calc_boundingbox, text_draw): Better cursor size.
8539 2002-11-25  Lars Clausen  <lrclause@cs.uiuc.edu>
8541         * lib/text.c (text_calc_boundingbox, text_draw): Better cursor
8542         positioning. 
8544         * app/diapsrenderer.c: Freetype rendering is back in force.
8546         * app/disp_callbacks.c: Added missing updates for pre-text-change.
8548 2002-11-25  David Hoover <jazzdaq@yahoo.com>
8550         * app/render_libart.c: Added missing #include line for libart.
8552         * lib/geometry.h:
8553         * lib/geometry.c: Added point_convex function.  This computes
8554         points inside a line segment (0 <= alpha <= 1) or outside the
8555         line segment (alpha < 0 | alpha > 1).
8557         * objects/standard/line.c: Line now has additional code/attributes
8558         which permit the line to extend past the line anchors (gap < 0) or
8559         leave a gap without reaching the anchor (gap > 0).  If no gap is
8560         specified, the default gap of 0 will result in identical line
8561         behavior as before.  If the 'fractional' attributes are TRUE, the
8562         gap length is not fixed, but a percentage of the line length.  I
8563         did not know how create the GTK widgets so the gap code currently
8564         cannot be used without adding XML attributes by hand.
8566 2002-11-25  Lars Clausen  <lrclause@cs.uiuc.edu>
8568         * lib/diagdkrenderer.c (draw_string): Removed timing bits.
8570         * lib/Makefile.am (libdia_la_SOURCES): Added fontsel files to SOURCES.
8572 2002-11-24  Lars Clausen  <lrclause@cs.uiuc.edu>
8574         * lib/font.c: Debugging functionality in separate functions.
8576         * lib/widgets.c: Using fontsel with context.
8578         * lib/diagtkfontsel.[ch]: Context-aware copy of the GTK fontsel.
8580         * objects/custom/custom_object.c: Orientation handling for shapes,
8581         patch thanks to Martin Hans <opfinder@gmx.net>.
8583         * objects/standard/zigzagline.c (zigzagline_move_handle): Starting
8584         work on even better orientation handling.
8586         * app/menus.c (menus_get_item_from_path): Fixed sily warnings from
8587         casting NULL pointers.  Should be unnecessary in an upcoming GTK
8588         release. 
8590 2002-11-18  Lars Clausen  <lrclause@cs.uiuc.edu>
8592         * lib/font.h:
8593         * lib/font.c:
8594         * lib/widgets.c: Now uses correct context to get font families.
8596         * lib/diagdkrenderer.c (get_text_width, draw_string): 
8597         * lib/dialibartrenderer.c (draw_string): 
8598         * lib/font.h: 
8599         * lib/font.c (dia_font_init): Removed old kludgy font name compare.
8600         (dia_font_build_layout): Unified the twiddle factors into a use of
8601         global_size_one.  But I deeply distrust Pango for seeming to
8602         change size of fonts every time I turn my back.
8604         * app/display.c: 
8605         * app/diagram.c: 
8606         * app/menus.c:
8607         * app/menus.h: Updated some more methods to also be more specific
8608         on the types.
8610         * app/menus.h:
8611         * app/recent_files.c: 
8612         Changed to return most specific type, to avoid run-time type errors.
8614         * app/menus.c (menus_get_item_from_path): Non-gnome version now
8615         gets menu_item rather than widget, which works better.
8617 2002-11-17  Cyrille Chépélov  <cyrille@chepelov.org>
8619         * app/display.c: (new_display):
8620         * app/menus.c: (menus_get_item_from_path):
8621         Relying on the tearoff to locate the input methods menu wasn't a
8622         good idea: tearoffs seem to be an endangered species nowadays.
8623         Anyway, the IM menu seems to be working now.
8625         * app/interface.c: hinted the window manager that the toolbox window
8626         is a toolbox window. Not that my (fairly default configuration)
8627         sawfish cares, but other NETWM compliant WMs may.
8629         * app/commands.c: 
8630         * app/defaults.c: 
8631         * app/dia-props.c:
8632         * app/filedlg.c: 
8633         * app/interface.c: 
8634         * app/layer_dialog.c: 
8635         * app/linewidth_area.c: 
8636         * app/properties.c: 
8637         * app/sheets_dialog.c: 
8638         * app/splash.c: 
8640         The GTK doc says to avoir gtk_window_set_wmclass() and 
8641         gtk_window_set_policy(), and use gtk_window_set_role() and
8642         gtk_window_set_resizable(), respectively.
8643         
8644         * app/preferences.c: (prefs_create_dialog):
8645         * app/preferences.h:
8646         * app/display.c: (display_set_active):
8647         Added a preference to have the toolbox hover over diagram windows.
8648                 
8649 2002-11-12  Lars Clausen  <lrclause@cs.uiuc.edu>
8651         * lib/diagdkrenderer.c (get_text_width, draw_string):
8652         Freetype-based string drawing now works.  Not very fast, though.
8653         I wish I could use the graphics card for this:(  I'm doing three
8654         bitmap loops where I should be doing one.  The size is not correct
8655         either, despite having get_text_width give the right thing.
8657 2002-10-21  Lars Clausen  <lrclause@cs.uiuc.edu>
8659         * app/connectionpoint_ops.c (diagram_update_connections_object):
8660         Allows more than one connectionpoint on an object to be moved at a
8661         time (bug #96306).
8663 2002-10-18  Stanislav Brabec  <sbrabec@suse.cz>
8665         * configure.in: Added cs to ALL_LINGUAS.
8667 2002-10-17  Lars Clausen  <lrclause@cs.uiuc.edu>
8669         * app/paginate_psprint.c: Removed unnecessary decl of autosave
8670         stuff.
8672         * app/display.c (ddisplay_set_renderer): Calls to begin/end render.
8674         * app/export_png.c (export_png_ok): Saving more variables from the
8675         evil setjmp.
8677 2002-10-16  Lars Clausen  <lrclause@cs.uiuc.edu>
8679         * lib/dialibartrenderer.c (begin_render):
8680         (end_render): Correct pushing and popping of font contexts.
8681         (draw_string): Double zooming eliminated, strange twiddle factor
8682         introduced (grumble).  Close to working now, but there are still
8683         strange differences from font to font.  In particular, some fonts
8684         really mess with the cursor and extents.
8686         * app/render_eps.c (export_eps): 
8687         * app/diapsrenderer.c (dia_ps_renderer_finalize): 
8688         Fixed file closing confusion, no longer dependent on PS/EPS.
8690         * app/diagram.c (diagram_place_down_selected) 
8691         (diagram_place_up_selected): Now implemented.
8693         * lib/font.c (dia_font_init): 
8694         * lib/font.h: 
8695         Redesigned the font init/context pushing code.  Start of fix for
8696         font name differences.
8697         
8698 2002-10-15  Kjartan Maraas  <kmaraas@gnome.org>
8700         * app/sheets_dialog_callbacks.c: Fix a typo.
8701         
8702 2002-10-15  Hans Breuer  <hans@breuer.org>
8704         * app/diapsrenderer.[hc] : (new files, old content :-)
8705         simple base class for post script rendering. Does neither 
8706         use Pango/FT2 nor does it handle non latin1 characters. 
8707         The fancy stuff which nowadays appears to be needed should 
8708         probably be done in derived class(es)
8710         * app/makefile.msc app/Makefile.am : added new files
8712         * app/paginate_psrint.c : re-enabled and used as test
8713         for the simple ps renderer above.
8715         * app/render_eps.[hc] : ripped out common ps code and
8716         moved to DiaPsRenderer. The rest of the file is mostly
8717         disabled. And I don't understand enough of it to 
8718         change port it.
8720         * app/diaepsrenderer.h : short lived, removed.
8722 2002-10-15  Lars Clausen  <lrclause@cs.uiuc.edu>
8724         * lib/plug-ins.c (dia_register_plugin): Don't try to load libdia
8725         as a plugin (thanks to Torben Nielsen).
8727 2002-10-14  Lars Clausen  <lrclause@cs.uiuc.edu>
8729         * app/diaepsrenderer.h: 
8730         * app/render_eps.h: 
8731         * app/paginate_psprint.c: 
8732         #ifdef'd out enough ps stuff to allow compile.  Now we just need
8733         to convert it.
8734         
8735 2002-10-12  Hans Breuer  <hans@breuer.org>
8737         [last plug-in ported]
8739         * plug-ins/xfig/xfig-export.c : ported to new renderer api
8741         * plug-ins/xfig/xfig-import.c(fig_create_object) : need to
8742         scale color values to [0..1.0] to properly reconstruct
8743         user colors
8745         * plug-ins/xfig/xfig-common.c : some cleaning
8747 2002-10-12  Hans Breuer  <hans@breuer.org>
8749         [decrease inter-plug-in-dependencies]
8751         * objects/custom/shape_info.[hc] : move parse_style()
8752         to lib/dia_svg.[hc] as dia_svg_parse_style(); Namespace
8753         the related structs and constants.
8754         * objects/custom/custom_object.c : reflect namespace
8755         changes
8757         * lib/dia_svg.[hc] : new files
8758         * lib/makefile.msc lib/Makefile.am : add new files
8759         * lib/libdia.def : updated externals
8761         * plug-ins/svg/svg-import.c : use dia_svg_parse_style()
8763         * plug-ins/svg/svg.c : enable svg import for win32 (and
8764         probably for other non ELF builds)
8766         * plug-ins/makefile.msc : enable svg import
8768 2002-10-11  Hans Breuer  <hans@breuer.org>
8770         * plug-ins/metapost/render_metapost.[hc] : ported
8772         * plug-ins/pstricks/render_pstricks.[hc] : dito
8774 2002-10-11  Hans Breuer  <hans@breuer.org>
8776         * plug-ins/cgm/cgm.c : ported, appears to work as before,
8777         but graphic apps available to me can't import the generated 
8778         files (the could not with Dia-0.90 cgm as well) ...
8780         * plug-ins/dxf/dxf-export.c : Ported to new renderer api.
8781         Removed all those function which did emulate 'complex' 
8782         drawing ops with basic ones (e.g. rect by line) cause this
8783         stuff is already provided by the base class
8784         * plug-ins/dxf/dxf-import.c : removed render.h include
8786         * plug-ins/python/pydia-font.[hc]
8787           plug-ins/python/pydia-text.c : finally ported to new font api
8789         * plug-ins/python/pydia-layer.c : add extra parameter
8790         to layer_find_closest_connectionpoint()
8792         * plug-ins/python/pydia-render.c : ported to DiaRenderer api
8794         * plug-ins/python/python.c : added missing copyright notice
8796         * plug-ins/hpg/hpgl.c plug-ins/wpg/wpg.c plug-ins/wmf/wmf.cpp : 
8797         actually use the renderers set_font implementation
8799         * plug-ins/renderer.inc : unused now, removed
8800         * plug-ins/Makefile.am : reflect it
8802 2002-10-08  Hans Breuer  <hans@breuer.org>
8804         * app/render_gdk.c : don't add the InteractiveRenderer
8805         interface multiple times (it's added to the type, not
8806         the object)
8807         * app/render_libart.c : dito. It's currently added
8808         unconditional cause eport_png uses it, but claims
8809         to be non-interactive. Probably set_size should be moved
8810         to the DiaRenderer interface.
8812         * lib/dialibartrenderer.c : add implementations for
8813         get_<width|height>_pixels. Libart rendering works again.
8814         DiaLibartRenderer::draw_image : use dia_image_rowstride()
8815         instead of width*3
8817         * lib/diatransform.c(dia_transform_coords_double) :
8818         don't ROUND() the returned values
8820         * plug-ins/pixbuf/pixbuf.c : added import function. It
8821         simply creates a wrapping "Standard - Image" object.
8823         * plug-ins/shape/shape-export.c : use the more direct
8824         method to call base class methods
8826 2002-10-07  Lars Clausen  <lrclause@cs.uiuc.edu>
8828         * lib/font.c (dia_font_init): Changed dia_font_init to return old
8829         pango context, to allow stacked contexts (for printing while
8830         antialiased).
8831         
8832         * lib/arrows.h
8833         * lib/bezier_conn.h
8834         * lib/beziershape.h
8835         * lib/boundingbox.h
8836         * lib/color.h
8837         * lib/connection.h
8838         * lib/connectionpoint.h
8839         * lib/create.h
8840         * lib/dia_image.h
8841         * lib/diagdkrenderer.h
8842         * lib/diagramdata.h
8843         * lib/dialibartrenderer.h
8844         * lib/diamenu.h
8845         * lib/diarenderer.h
8846         * lib/diasvgrenderer.h
8847         * lib/diatransform.h
8848         * lib/element.h
8849         * lib/filter.h
8850         * lib/focus.h
8851         * lib/font.h
8852         * lib/geometry.h
8853         * lib/handle.h
8854         * lib/neworth_conn.h
8855         * lib/objchange.h
8856         * lib/object.h
8857         * lib/orth_conn.h
8858         * lib/paper.h
8859         * lib/plug-ins.h
8860         * lib/poly_conn.h
8861         * lib/polyshape.h
8862         * lib/properties.h
8863         * lib/ps-utf8.h
8864         * lib/sheet.h
8865         * lib/text.h
8866         * lib/textattr.h
8867         * lib/widgets.h
8868         * lib/diatypes.h
8869         Moved all externally visible struct typedefs into diatypes.h, as
8870         per Hans' suggestions.
8872 2002-10-07  Steffen Macke <sdteffen@web.de>
8874         * lib/Makefile.am: removed a '\' causing problems
8876 2002-10-07  Hans Breuer  <hans@breuer.org>
8878         [Libart Renderer resurrected; almost it's compiling but
8879          almost instantly crashing :-]
8881         * lib/dialibartrenderer.[hc] : new files, ported to DiaRenderer
8882         * app/render_libart.[hc] : ported to DiaInteractiveRenderer
8883         * lib/diatransform.[hc] : added dia_transform_coords_double()
8885         * app/display.c : the right parameters for new_renderer_libart()
8886         * app/export_png.c : ported, removed the blind Display hack
8888         * app/makefile.msc lib/makefile.msc 
8889           lib/Makefile.am : updated
8891         * lib/dia<|gdk|interactive>renderer.c : properly copyrighted
8893 2002-10-06  Hans Breuer  <hans@breuer.org>
8895         * plug-ins/pixbuf/pixbuf.c : (new file)
8896         there is a new export plug-in called 'Pixbuf' which uses 
8897         DiaGdkRenderer to export to gdk-pixbuf supported bitmap
8898         formats (currently only PNG and JPEG).
8900 2002-10-06  Hans Breuer  <hans@breuer.org>
8902         See also: 
8903         http://mail.gnome.org/archives/dia-list/2002-October/msg00027.html
8905         * lib/dia-enums.h lib/diatransform.[hc]
8906           lib/diarenderer.[hc] lib/diainteractiverenderer.c
8907           lib/diagdkrenderer.[hc] lib/diasvgrenderer.[hc]
8908         : new files 
8910         * lib/makefile.msc lib/makefile.am : added new files
8912         * lib/plug-ins.c : g_module_error() returns a locale
8913         string, convert to utf8 before further usage 
8915         * lib/render.h : #error out. Everything including this
8916         needs porting
8917         * lib/*.[hc] : ported to new renderer api
8919         * app/diaepsrenderer.h : unfinished DiaEpsRenderer interface
8920         just to make the rest compile
8921         * app/render_eps.c : temporary disabled all of this
8922         * app/render_eps.h : removed RendererEPS
8924         * app/render_gdk.[hc] : a small wrapper around the new
8925         DiaGdkRenderer form lib/*
8927         * app/render_libart.h : removed RenderLibart definition
8928         * app/render_libart.c : not yet ported to new DiaRenderer
8929         but having an implementation to untie form FT2 dependency
8930         at least on win32. It is using new Pango api form bug #94791
8932         * app/render_pixmap.[hc] : a small wrapper around the new
8933         DiaGdkRenderer form lib/*
8935         * app/display.h : removed render_*.h includes
8936         * app/display.c : the only place where specific 
8937         renderers need to be known
8939         * app/connectionpoint_ops.c app/grid.c app/handle_ops.c
8940         use new DiaInteractiveRenderer interface
8942         * app/*.c : ported to new renderer api
8943         * object/*/*.c : ported to new renderer api
8944         s/render.h/diarenderer.h/
8945         s/Renderer/DiaRenderer/
8946         s/renderer->ops/renderer_ops/
8947         add in every draw method:
8948         DiaRendererClass *renderer_ops = DIA_RENDERER_GET_CLASS (renderer);
8950         * plug-ins/hpgl/hpgl.c : 
8951           plug-ins/wmf/wmf.cpp 
8952           plug-ins/wpg/wpg.c : ported to be DiaRenderer based
8953         * plug-ins/shape/shape-export.c
8954           plug-ins/svg/render_svg.c : ported to be DiaSvgRenderer based
8955           (nice how small these files became :-)
8957 2002-09-28  Hans Breuer  <hans@breuer.org>
8959         * */makefile.msc : updated
8961         * app/defaults.c : don't gdk_invalidate_rect(NULL)
8962         * app/disp_callbacks.c : 
8963         can't cast GtkWindow to GdkWindow, use shell->window
8964         (ddisplay_unrealize) don't use already unrefed im_context
8965         * app/display.c :
8966         can't cast from GtkMenu to GtkMenuItem
8967         (ddisp_destroy) : mark im_context as unrefed
8969         * lib/dia_xml (data_font) : prefer new font format over old one
8970         (data_add_font) : write the legacy name to allow file exchange
8971         with pre Pango versions of Dia, which would otherwise crash 
8972         on missing font 'name' attribute.
8973         * lib/font.c (dia_font_get_legacy_name) : improved implementation
8974         to get a better match.
8976         * lib/libdia.def : updated
8978         * lib/messages.c : don't gdk_widget_show(NULL)
8980         * lib/prop_text.c : don't gtk_entry_set_text() with NULL string 
8982         [make Dia compile, link _and_ work with mingw/gcc3.2]
8984         * config.h.win32 : #define LIBXML, this gets defined from libxml
8985         header but only for _MSC_VER. The mingw build did access an 
8986         unitialized function pointer for xmlFree.
8988         * */makefile.mingw : updated (some plug-ins have build issues)
8989         
8990         * lib/handle.h lib/object.h :   there appears to be no 
8991         forward declaration of the form 
8992                 typedef enum _HandleId HandleId 
8993         (at least not with GCC 3.2 for C++) ../lib/handle.h:22: 
8994         use of enum `_HandleId' without previous declaration
8996         * app/paginate_gdiprint.cpp : added a hack to avoid g++
8997         naming conflict on 'export'
8999         * app/paginate_gdiprint.h : forward declare Diagram
9001         * objects/SADT/annotaion.c : use g_random_double()
9003 2002-09-26  Lars Clausen  <lrclause@cs.uiuc.edu>
9005         * app/modify_tool.c: Made motion not happen until sufficiently
9006         large or past double-click interval, to avoid accidental moving
9007         when doubleclicking.  Got the double-click time right, and fixed
9008         some issues with release.  There are some corner cases that may
9009         exhibit strange behaviour, will look at those later.  Nah, let's
9010         not care about those, they are rare and not dangerous.
9012 2002-09-26  Cyrille Chépélov  <cyrille@chepelov.org>
9014         * app/layer_dialog.c: 
9015         * app/load_save.c: 
9016         * plug-ins/dxf/dxf-import.c: 
9017         * plug-ins/python/pydia-diagram.c: 
9018         * lib/diagramdata.c:
9019         * lib/diagramdata.h:
9020         Improved the consistency of the obj->parent_layer backlinks (esp.
9021         during reloads)
9023         * lib/Makefile.am:
9024         * lib/dummy_dep.h:
9025         * lib/dynamic_obj.[ch] (NEW):
9026         * app/Makefile.am:
9027         * app/app_procs.c: 
9028         * app/dynamic_refresh.[ch] (NEW):
9029         * objects/Misc/analog_clock.c: 
9030         Added support for dynamic refresh (animated objects).
9031                 
9032 2002-09-25  Cyrille Chépélov  <cyrille@chepelov.org>
9034         Patch from Owen Taylor <otaylor@redhat.com>:    
9035         * doc/en/Makefile.am:
9036         * doc/en/dia-manual.sgml:
9037         * doc/en/usage-objects.sgml:
9038         * doc/en/usage-quickstart.sgml:
9039         * doc/pl/Makefile.am:
9040         * doc/pl/dia-manual.sgml:
9041         * doc/pl/usage-objects.sgml:
9042         * doc/pl/usage-quickstart.sgml:
9044         - Change the DTD declration from an outdated GNOME one to a
9045         standard DTD.
9046         
9047         - Remove close tags for <graphics> which aren't allowed for
9048         docbook SGML
9049         
9050         - A hacky fix for a problem where some versions of db2html don't
9051         create *.css files. (If *.css doesn't match anything, then you get
9052         the global explicitely.)
9054         (Closes: #92061)
9055         
9056 2002-09-24  Cyrille Chépélov  <cyrille@chepelov.org>
9058         * objects/custom/custom_object.c: 
9059         * objects/custom/shape_info.[ch]: GE_TEXT display lists elements 
9060         were never properly prepared for use when reloading a shape with
9061         <svg:text> elements. Thanks to Scott Frazer <frazer@nc.rr.com> for
9062         reporting the problem and coming up with a fix! (Closes: #93974)
9064         * app/menus.c: patch from Alan Horkan <horkana@tcd.ie>: review
9065         the menu shortcuts towards better GNOME HIG compliance (Closes: #87157)
9067         * app/menus.c:
9068         * app/display.c: updated menu item paths Alan's patch had moved.
9069         
9070         * app/interface.c: Fixed a crash when gdk-pixbuf doesn't want to
9071         load the sheet-provided icon (libpng versions mismatch, grrr.).
9072         
9073         * configure.in:
9074         * objects/Makefile.am:
9075         * objects/Misc/Makefile.am (NEW):
9076         * objects/Misc/libmisc.c (NEW):
9077         * objects/Misc/analog_clock.c (NEW):
9078         * objects/Misc/pixmaps/analog_clock.xpm (NEW):
9079         * sheets/Misc.sheet.in: just a little experiment...
9081 2002-09-23  Cyrille Chepelov  <cyrille@chepelov.org>
9083         * plug-ins/xlst/Makefile.am: found a way to silence automake while
9084         not forcing everyone to build using libxslt.
9086         * lib/font.c: 
9087         * lib/message.c:
9088         * lib/object_defaults.c:
9089         * lib/intl.[ch]:
9090         * lib/render.c:
9091         * lib/properties.[ch]:
9092         * lib/propobject.c:
9093         * objects/standard/box.c: 
9094         * objects/UML/state_term.c:
9095         * objects/FS/box.c:
9096         * objects/FS/flow-ortho.c:
9097         * app/app_procs.c:
9098         * app/autosave.c:       
9099         * app/commands.c:
9100         * app/diagram_tree.c:
9101         * app/display.c:
9102         * app/disp_callbacks.c:
9103         * app/export_png.c:
9104         * app/filedlg.c:
9105         * app/lineprops_area.c:
9106         * app/menus.c:  
9107         * app/preferences.c:
9108         * app/render_eps.c:     
9109         * app/sheets.c:
9110         * app/sheets_dialog_callbacks.c:
9111         * plug-ins/xslt/xslt.c:
9112         * plug-ins/metapost/render_metapost.c:
9113         * plug-ins/xfig/xfig-export.c:
9114         * plug-ins/shape/shape-export.c:
9115         
9116         Killed most gcc-3.2 warnings (const-correctness and derived warnings, 
9117         unused variables, mostly)
9119         * app/display.c:
9120         * app/menus.c: enabled GTK Input Methods (thanks Lars!)
9122         * app/Makefile.am: modified run_dia.sh so that we recover the
9123         ability to run a debugger despite libtool's hacks.
9125         * plug-ins/dxf/Makefile.am: 
9126         * app/Makefile.am
9127         "make distcheck" fixes.
9128         
9129 2002-09-19  Lars Clausen  <lrclause@cs.uiuc.edu>
9131         * objects/UML/uml.c (uml_get_operation_string): Patch from Mauf
9132         <mfranzoni@madd.it>:  Check for the type being NULL.
9134 2002-09-16  Lars Clausen  <lrclause@cs.uiuc.edu>
9136         * app/render_eps.c (set_font): Re-tweaked font size for printing.
9138 2002-09-12  Cyrille Chepelov  <cyrille@chepelov.org>
9140         Patch from Angus Ainslie <angusa@deltatee.com>:
9141         * plug-ins/dxf/dxf-import.c:
9142         * plug-ins/dxf/autocad_pal.h: Import from visio 2002 improvements.
9144         (plus a couple extra fixes by me, such as the removal of printf's,
9145         adapting for recent changes, and killed a couple warnings) 
9147         * app/authors.h: a 60K patch isn't insignificant, is it?
9148         
9149 2002-09-09  Tor Lillqvist  <tml@iki.fi>
9151         * configure.in: Check for both pangoft2 (using PKG_CHECK_MODULES,
9152         as before) and -lfreetype (using AC_CHECK_LIB). At least on
9153         Solaris with Sun's compiler (Forte C), you need to link also the
9154         dia application with -lfreetype, even if it is implicitly linked
9155         to by -lpangoft2. Rename FREETYPE_CFLAGS and _LIBS to PANGOFT2_*,
9156         which is what they actually mean. Use FREETYPE_LIBS for
9157         -lfreetype.
9159         Don't look for libsunmath if isinf() is not found in math.h (as on
9160         Solaris). The sunmath library is part of Forte C and not present
9161         on all machines. Besides, even if isinf was found in libsunmath,
9162         we didn't use it in the Makefile.am.
9163         
9164         Fix a couple of bashisms.
9166         AC_SUBST also Z_LIBS, need to link the dia application to -lz,
9167         too, on Solaris with Forte C.
9169         Don't try to use the gcc flags with other compilers.
9170         DIA_CHECK_CFLAG gives a false indication that Forte C understands
9171         the gcc -f switches, but in fact they get interpreted meaning
9172         something completely different.
9174         Define the automake conditional HAVE_CGC.
9175         
9176         * app/Makefile.am (dia_LDADD): Add Z_LIBS and FREETYPE_LIBS.
9178         Use -export-dynamic only with gcc.
9180         * */Makefile.am
9181         * */*/Makefile.am: Modify according to the FREETYPE_CFLAGS -> 
9182         PANGOFT2_CFLAGS rename.
9184         * lib/geometry.h: Drop HAVE_SUNMATH_H and <sunmath.h> per above.
9185         
9186         * lib/dia_xml.c: Include geometry.h for the isinf() stuff on
9187         Solaris.
9189         * lib/paper.c: Workaround for gccism: Can't use inline this way with
9190         Forte C, either.
9192 2002-09-08  Cyrille Chepelov  <cyrille@chepelov.org>
9194         * lib/text.c(set_string): fixed a memory leak (char* ain't no
9195         std::auto_ptr<char> !).
9197         * app/display.[ch]:
9198         * app/interface.[ch]:
9199         * app/ddisp_callbacks.[ch]: Added some basic support for input 
9200         methods (GtkIMContext-based)
9202         * lib/Makefile.am:
9203         * app/Makefile.am: made libdia a shared object (per Tor
9204         Lillqvist's suggestion/request), to cope for platforms with a less
9205         than par dynamic library loader.
9207         * app/display.c: disabled the input method menu (I really don't
9208         see where and how to put them. Blame Frozen Bubble )
9209         
9210 2002-09-06  Lars Clausen  <lrclause@cs.uiuc.edu>
9212         * objects/flowchart/box.c (box_update_data): Made resizing
9213         possible again (only set width & height when resized too small).
9215         Patch from Soeren Sandmann <sandmann@daimi.au.dk>:
9217         * app/disp_callbacks.c (ddisplay_canvas_events): Handle
9218         GdkScrollEvents.
9219         
9220 2002-09-05  Cyrille Chepelov  <cyrille@chepelov.org>
9222         * app/authors.h: now showing Akira TAGOH's name in the native script.
9224 2002-09-01  Lars Clausen  <lrclause@cs.uiuc.edu>
9226         * plug-ins/xslt/xslt.c: Removed glib warning for unset
9227         DIA_PLUGIN_PATH.
9229 2002-09-01  Cyrille Chepelov  <cyrille@chepelov.org>
9231         * plug-ins/svg/render_svg.c: Applied (reversed...) patch from
9232         Mike Sowka <msowka@rogers.com>. This fixes a problem with the
9233         sweep flag in arcs.
9235 2002-08-31  Lars Clausen  <lrclause@cs.uiuc.edu>
9237         * objects/UML/class.c: Fixed showing of empty stereotypes and got
9238         the string placed correctly.
9240 2002-08-30  Hans Breuer  <hans@breuer.org>
9242         * lib/font.c (dia_font_get_style) : don't shift already
9243         shifted DIA_FONT values.
9245         * lib/libdia.def : updated externals
9247         * app/disp_callbacks.c : on win32 GdkEventKey::string already
9248         is in UTF-8. (Longterm this probably should be handled on the
9249         gtk api level)
9251         * app/command.[hc] app/display.[hc] app/menus.c : add code to 
9252         switch display renderers again. The libart renderer is very 
9253         useful for win9x with it's limited GDI.
9255         * app/render_gdk.c : use g_warning instead of printf which gets
9256         nowhere on win32 (non console apps)
9258         * app/render_libart.c : make it compile without FREETYPE
9260         * objects/makefile.msc plug-ins/makefile.msc : added clean target
9262 2002-08-29  Lars Clausen  <lrclause@cs.uiuc.edu>
9264         * app/render_eps.c (postscript_draw_contour): Debugging statement
9265         that allowed me to figure out font problems.
9267         * lib/widgets.c (dia_font_selector_set_styles): Use radio menu
9268         items for font styles.
9270         * objects/FS/flow-poly.c: 
9271         * objects/FS/flow-ortho.c: 
9272         * objects/FS/flow.c: Further conversion away from GTK dialogs.
9273         Can't set a default label right now:(
9275         * app/interface.c (fill_sheet_wbox): Added initialization for mask.
9277 2002-08-27  Cyrille Chepelov  <cyrille@chepelov.org>
9278         Patch from Andrew Ferrier  <andrew@new-destiny.co.uk>:
9280         * Makefile.am: rules relating to AUTHORS and THANKS
9281         altered.
9282         * AUTHORS: file content changed to more accurately
9283         reflect guideline requirements.
9284         * TODO: warning added about Gnome BTS.
9285         * KNOWN_BUGS: warning added about Gnome BTS.
9287         ---
9289         * AUTHORS: added full copyright info.
9290         * mkauthors-placeholder: (removed) 
9291         
9292 2002-08-27  Lars Clausen  <lrclause@cs.uiuc.edu>
9294         * app/paginate_psprint.c (print_page): Fixed text printing after
9295         tip from Dov Grobgeld.
9297 2002-08-26  Lars Clausen  <lrclause@cs.uiuc.edu>
9299         * app/paginate_psprint.c (print_page): Fixed color of clip
9300         region.
9302 2002-08-26  Cyrille Chepelov  <cyrille@chepelov.org>
9304         * sheets/Makefile.am: enabled intltool-merge translation cache for
9305         sheets.
9307         * Makefile.am:
9308         * mkauthors-placeholder:
9309         * AUTHORS: revived that file (in a placeholder form) so that
9310         automake stops yelling.
9311         (derived from a patch by Andrew Ferrier <andrew@new-destiny.co.uk>) 
9312         (Closes: #91144)
9314         Heh, by the way, thanks Christophe. I feel better now.
9315         
9316 2002-08-25  Christophe Merlet  <christophe@merlet.net>
9318         * app/command.c: Removed invalid multibyte sequence in Chepelov.
9320 2002-08-24  Lars Clausen  <lrclause@cs.uiuc.edu>
9322         * lib/dia_image.c (dia_image_rgb_data): 
9323         Bugfixes in image data retrieval.
9324         
9325         * app/render_eps.c: Refactoring of new_*_renderer.
9327 2002-08-23  Lars Clausen  <lrclause@cs.uiuc.edu>
9329         * app/render_eps.c: 
9330         * lib/dia_image.h: 
9331         * lib/dia_image.c: Support for rowstride != width (odd width images)
9333 2002-08-20  Lars Clausen  <lrclause@cs.uiuc.edu>
9335         * lib/paper.c (get_paper_info): Fixed NULL prefs problem.
9336         * plug-ins/xfig/xfig-import.c: Removed assertion.
9338 2002-08-18  Lars Clausen  <lrclause@cs.uiuc.edu>
9340         * lib/paper.c: Removed app/preferences.h reference.
9342 2002-08-14  Lars Clausen  <lrclause@cs.uiuc.edu>
9344         * plug-ins/svg/svg-import.c: 
9345         * plug-ins/xfig/xfig-import.c: 
9346         * lib/Makefile.am (libdia_a_SOURCES): 
9347         * objects/standard/Makefile.am (libstandard_objects_la_SOURCES): 
9348         * lib/create.h:
9349         * objects/standard/create.h:
9350         * objects/standard/polygon.c (polygon_create): 
9351         * objects/standard/polyline.c (polyline_create): 
9352         * objects/standard/beziergon.c (beziergon_create): 
9353         * objects/standard/bezier.c (bezierline_create): 
9354         Moving create.h into lib.
9356 2002-08-13  Lars Clausen  <lrclause@cs.uiuc.edu>
9358         * app/render_libart.[ch]: Work on PNG font export.  Something's
9359         still fishy with the scaling, I don't get it.
9361         * app/display.c: 
9362         * app/interface.c: Replaced broken zoom combo with entry+menu.
9363         Now works beautifully.  Removed WITHOUT_ZOOM_COMBO stuff.
9365         * app/render_gdk.c (get_text_width): Checks for validity of text.
9366         Temporary help while debugging input -- should only activate on
9367         invalid input.
9369         * objects/SADT/annotation.c: 
9370         * objects/GRAFCET/transition.c: 
9371         * objects/FS/function.c: Removal of gtk.h include.
9373         * objects/UML/state.c (state_load): Warnings about using State
9374         object for initial/final states.
9376         * plug-ins/cgm/cgm.c (init_fonts): Proper Pango interfacing.
9378 2002-08-12  Lars Clausen  <lrclause@cs.uiuc.edu>
9380         * app/render_eps.c: Text rendering that scales correctly.  Too bad
9381         the standard fonts don't get selected right.
9383 2002-08-09  Lars Clausen  <lrclause@cs.uiuc.edu>
9385         * lib/diagramdata.h: 
9386         * lib/paper.c (get_paper_info): 
9387         * lib/paper.h: 
9388         * plug-ins/xfig/xfig-import.c: 
9389         Committed before testing.  I am so embarrased.  This compiles, now
9390         that the includes are in the right order.
9391         
9392         * app/diagram.c (diagram_init): 
9393         * app/app_procs.c (do_convert): 
9394         * app/preferences.h: 
9395         * lib/diagramdata.h: 
9396         * lib/diagramdata.c (new_diagram_data): 
9397         * lib/paper.h: 
9398         * lib/paper.c (get_paper_info): 
9399         Moved new_diagram part of prefs into lib/diagramdata.h.  More
9400         could be done in new_diagram_data() now.
9402 2002-08-08  Lars Clausen  <lrclause@cs.uiuc.edu>
9404         * app/render_eps.c: Better scaling of fonts at non-normal zoom.
9406 2002-08-07  Cyrille Chepelov <cyrille@chepelov.org>
9408         * configure.in: removed silly user-visible comment
9410         (actually, this is a dummy entry before I manually run nemo; for
9411         some dist-upgrade related reason, this morning's run aborted before
9412         the snapshots were created)
9413         
9414 2002-08-06  Lars Clausen  <lrclause@cs.uiuc.edu>
9416         * objects/network/wanlink.c: 
9417         * objects/network/bus.c: 
9418         stdprop compliance!
9420         * objects/custom/custom_object.c: 
9421         * objects/network/wanlink.c: 
9422         * objects/flowchart/parallelogram.c: 
9423         * objects/flowchart/ellipse.c: 
9424         * objects/flowchart/diamond.c: 
9425         * objects/flowchart/box.c: 
9426         Removed GTK defaults stuff.
9427         
9428         * objects/UML/fork.c: 
9429         * objects/UML/object.c: 
9430         * objects/UML/lifeline.c: 
9431         * objects/UML/branch.c: 
9432         * objects/GRAFCET/transition.c: 
9433         * objects/FS/function.c: Removed GTK include.
9435         * objects/FS/flow-ortho.c: 
9436         * objects/FS/flow.c: Made the label behave again.
9437         Also removed GTK defaults stuff.
9439 2002-08-06  Hans Breuer  <hans@breuer.org>
9441         * app/autosave.c : ported to GDir which is the improved
9442         cross platform replacement for <dirent.h>
9444         * app/makefile.msc : build autosave.obj
9446         * app/font.c : some (bad?) code calls 
9447         dia_font_scaled_decent() not only with empty string but 
9448         with NULL. Handle it gracefully.
9450         * lib/paper.c : don't depend on ../app. Although IMO
9451         this shouldn't be allowed on any platform it is only
9452         disabled for win32, where it simply doesn't work
9453         this way
9455         * lib/widget.c (strcase_equal) : pass char* to g_strcasecmp()
9457         * objects/fs/flow.c : conditionalize debug spew, disabled
9458         and 'ported' to use g_print. Simple printf won't work with
9459         standard win32 gui apps, may even crash them.
9461         * plug-ins/makefile.msc : DISABLED svg-import cause it
9462         depends on ../objects/custom. This not only break the
9463         build for all non ELF systems but IMO also isn't acceptable
9464         from a design point of view. See dia-list mail on subject.
9466         * plug-ins/python/makefile.msc :
9467           plug-ins/python/python.c : remove all references to dirent    
9469 2002-08-05  Cyrille Chepelov  <cyrille@chepelov.org>
9471         * configure.in: added ro to ALL_LINGUAS
9473         * po-checktrans:
9474         * po-checktrans.py:
9475         * ../translation-graphs/transgraph.py: added support for fuzzy
9476         translations. Enlarged the graphs.
9478 2002-08-05  Lars Clausen  <lrclause@cs.uiuc.edu>
9480         * app/disp_callbacks.c (ddisplay_canvas_events): Now translates
9481         key events according to locale.  No clue if this works for
9482         advanced stuff.
9484 2002-08-04  Lars Clausen  <lrclause@cs.uiuc.edu>
9486         * lib/text.c: Various UTF8 related fixes, in particular in
9487         deleting.  Text_insert_char is fine, far as I can tell.
9489         * app/interface.c (create_display_shell): 
9490         * app/commands.c: Now uses gtk_clipboard functions, for they are
9491         much simpler.  Also handles Win32 clipboard.  Non-ascii chars
9492         don't seem to get handled correctly by text_insert_char in
9493         lib/text.c.
9494         
9495         * app/commands.c (received_selection_handler): Got utf8 handling
9496         on paste, and individual char handling out of commands.c.  Pasting
9497         non-ASCII is still broken, somehow.  It's all lib/text.c's fault.
9499         * lib/message.c (gtk_message_internal): Message dialog re-shown
9500         when new message appears.  Maybe it should even move to top?
9502         * lib/font.c: 
9503         * lib/widgets.c: 
9504         * app/render_eps.c (create_eps_renderer): Fonts now lowercase
9505         (again) and case-insensitive.
9507         * objects/GRAFCET/condition.c (CONDITION_FONT): Changed to
9508         BASIC_SANS_FONT. 
9510 2002-08-02  Lars Clausen  <lrclause@cs.uiuc.edu>
9512         * app/commands.c (edit_cut_text_callback): 
9513         * lib/text.c (text_delete_all): Now functioning undo for text cut.
9514         
9515         * app/commands.c (edit_cut_text_callback): Now removes text.
9516         Undo is broken, though.
9518 2002-08-01  Lars Clausen  <lrclause@cs.uiuc.edu>
9520         * app/diagram.c (diagram_update_menu_sensitivity): 
9521         Making cut_text active.
9522         
9523         * app/commands.h: 
9524         * app/commands.c: Using PROP_TYPE_TEXT to find text to copy to
9525         clipboard.  Also removed AA callback.   
9527 2002-08-01  Lars Clausen  <lrclause@cs.uiuc.edu>
9529         * objects/chronogram/chronoref.c: 
9530         * objects/chronogram/chronoline.c: 
9531         * objects/SADT/annotation.c: 
9532         * objects/SADT/arrow.c: 
9533         * objects/SADT/box.c: 
9534         * objects/GRAFCET/vergent.c: 
9535         * objects/GRAFCET/vector.c: 
9536         * objects/GRAFCET/step.c: 
9537         * objects/GRAFCET/condition.c: 
9538         * objects/GRAFCET/action.c: 
9539         * objects/ER/participation.c: 
9540         * objects/ER/relationship.c: 
9541         * objects/ER/entity.c: 
9542         * objects/ER/attribute.c: 
9543         Removing unnecessary GTK references.
9545 2002-07-31  Lars Clausen  <lrclause@cs.uiuc.edu>
9547         * objects/standard/image.c: 
9548         * objects/standard/textobj.c: 
9549         * objects/standard/ellipse.c: 
9550         * objects/standard/polygon.c: 
9551         * objects/standard/beziergon.c:
9552         * objects/standard/box.c: 
9553         Making default default properties.
9554         
9555         * objects/standard/image.c: 
9556         * objects/standard/arc.c: 
9557         * objects/standard/box.c: 
9558         * objects/standard/zigzagline.c: 
9559         * objects/standard/polyline.c: 
9560         * objects/standard/line.c: 
9561         * objects/standard/ellipse.c: 
9562         * objects/standard/polygon.c: 
9563         * objects/standard/beziergon.c: Removing vestigal GTK stuff.
9565         * lib/object_defaults.c (dia_object_default_create): 
9566         * lib/proplist.c: 
9567         * lib/properties.h: 
9568         * lib/object.c (object_copy_using_properties): 
9569         * lib/propdialogs.c: 
9570         * lib/propinternals.h: 
9571         * lib/propobject.c (object_create_props_dialog)
9572         (object_copy_props): 
9573         Removing the standard (toolbox) properties from defaults dialogs.
9575 2002-07-30  Lars Clausen  <lrclause@cs.uiuc.edu>
9577         * lib/font.c (dia_font_scaled_string_width) 
9578         (dia_font_scaled_ascent, dia_font_scaled_descent): Account for
9579         zoom factor.
9580         * lib/text.c (text_calc_boundingbox): Take descent into account.
9582         * objects/standard/bezier.c (bezierline_draw): 
9583         * lib/render.c (draw_bezier_with_arrows): 
9584         Better arrow drawing for beziers.  Doesn't change the mouse-click
9585         area either.
9587         * lib/arrows.h: Some const-ness.
9589         * lib/arrows.c (calculate_arrow_point): Initialize zero-length moves.
9591         * lib/render.c (draw_arc_with_arrows): 
9592         * objects/standard/arc.c (arc_draw): Better arrow drawing for
9593         arcs.  Doesn't change the mouse-click area yet.
9595         * app/menus.c: Forgotten fix:  Redraw menu item for non-Gnome.
9597         * lib/render.h: 
9598         * lib/render.c: 
9599         Arc arrow prework.
9601 2002-07-29  Lars Clausen  <lrclause@cs.uiuc.edu>
9603         * app/group.c (group_draw): Forgotten commit: Groups to draw as
9604         objects (using default routines).
9606         * app/object_ops.h: 
9607         * app/diagram.h: 
9608         * lib/diagramdata.h: 
9609         * lib/diagramdata.c (layer_find_closest_connectionpoint): 
9610         * objects/standard/zigzagline.c (zigzagline_move_handle): 
9611         * app/diagram.c (diagram_find_closest_connectionpoint): 
9612         * plug-ins/python/pydia-diagram.c
9613         (PyDiaDiagram_FindClosestConnectionPoint):
9614         * app/object_ops.c (object_connect_display) 
9615         (object_find_connectpoint_display) 
9616         * app/create_object.c (create_object_button_press) 
9617         (create_object_motion): 
9618         * app/modify_tool.c (modify_motion): 
9619         Adding object param to allow connectionpoint and handle coinciding.
9621         * objects/standard/zigzagline.c (zigzagline_check_orientation): 
9622         Fixing minor problems.
9624         * objects/standard/ellipse.c (ellipse_update_data): 
9625         Added direction hints.
9627         * lib/diagramdata.c: 
9628         * lib/object.c: 
9629         * lib/object.h: 
9630         * lib/diagramdata.h: 
9631         * objects/standard/zigzagline.c: 
9632         First working example of zigzagline hints, currently only between
9633         Box and Zigzagline.
9635 2002-07-27  Steffen Macke <sdteffen@web.de>
9637         * plug-ins/svg/render_svg.c: added support for rounded
9638         rectangles (fixes #69053 if compile with
9639         -DNEW_RENDER_OPS)
9640         * object/custom/shape_info.[c|h]: made parse_style and
9641         parse_path accessible for svg plug-in
9642         * plug-ins/svg/Makefile.am:
9643         * plug-ins/svg/svg.c:
9644         * plug-ins/svg/svg-import.c(new): added SVG import filter
9646 2002-07-27  Lars Clausen  <lrclause@cs.uiuc.edu>
9648         * objects/standard/box.c: 
9649         * objects/standard/zigzagline.c (zigzagline_move): 
9650         More work on zigzagline hints.
9652 2002-07-26  Lars Clausen  <lrclause@cs.uiuc.edu>
9653         * lib/connectionpoint.h: 
9654         Hints for zigzaglines.
9656         * app/properties.c (properties_show): 
9657         * app/defaults.c (defaults_show): 
9658         * lib/properties.h: 
9659         * lib/propobject.c (object_create_props_dialog): 
9660         * lib/object.h: 
9661         * objects/FS/flow-poly.c: 
9662         * objects/network/wanlink.c: 
9663         * objects/network/bus.c: 
9664         * objects/UML/class.h: 
9665         * objects/UML/class_dialog.c: 
9666         * objects/UML/association.c: 
9667         Start of removing toolbox props from props dialogs.
9668         
9669         * lib/widgets.c: 
9670         * lib/arrows.h: 
9671         * app/lineprops_area.c (dia_arrow_chooser_new): 
9672         * lib/arrows.c: Two new arrows: Concave, filled and blanked.
9674         * app/create_object.c: 
9675         * app/modify_tool.c: 
9676         * app/cursor.h: 
9677         * app/cursor.c: 
9678         More cursor change.
9680 2002-07-25  Lars Clausen  <lrclause@cs.uiuc.edu>
9682         * app/preferences.c: 
9683         * lib/paper.c: 
9684         * app/diapagelayout.c: 
9685         New prefs selector kind PREF_CHOICE chooses between a list of
9686         strings.  Used for picking default paper.
9687         
9688         * app/preferences.c (prefs_data): 
9689         * lib/paper.c (get_paper_info): Added prefs setting for
9690         is_portrait.
9692         * lib/render.c (draw_polyline_with_arrows): Handles degenerate
9693         line segments at the ends (bug #86603).
9695 2002-07-25  Lars Clausen  <lrclause@cs.uiuc.edu>
9697         * objects/standard/zigzagline.c (zigzagline_copy): Fix for bug
9698         #60324: Now calls update_data after copy.
9700         * app/interface.c (fill_sheet_wbox): Better fix for bug #88601:
9701         Now doesn't steal selection from non-object tools.
9703 2002-07-24  Lars Clausen  <lrclause@cs.uiuc.edu>
9705         * app/commands.c (help_manual_callback): Uses BROWSER environment
9706         variable when available.
9708 2002-07-23  Lars Clausen  <lrclause@cs.uiuc.edu>
9710         * app/interface.c (fill_sheet_wbox): Fix for bug #88601: Select an
9711         object from the new sheet when changing.
9713         * app/app_procs.c (app_init): Uses more standard size icon, from
9714         patch #56433.  Keeping old icon as dia_gnome_icon_large.png.
9716 2002-07-22  Lars Clausen  <lrclause@cs.uiuc.edu>
9718         * objects/UML/implements.c (implements_update_data): 
9719         * objects/UML/realizes.c (realizes_update_data): 
9720         * objects/UML/dependency.c (dependency_update_data): 
9721         Test for null strings before calling on ascent.
9723         * objects/UML/realizes.c (realizes_draw): 
9724         * objects/UML/message.c (message_draw): 
9725         * objects/UML/generalization.c (generalization_draw): 
9726         * objects/UML/dependency.c (dependency_draw) 
9727         * objects/UML/constraint.c (constraint_draw): 
9728         * objects/GRAFCET/condition.c (condition_draw): 
9729         * objects/UML/association.c (association_draw): 
9730         * objects/FS/flow-ortho.c (orthflow_draw): 
9731         * objects/FS/flow.c (flow_draw): Change to use
9732         draw_foo_with_arrows.  Pretty pretty arrows.  Yay me!
9734         * lib/render.h: 
9735         * lib/arrows.c (calculate_arrow_point): 
9736         * lib/arrows.h: 
9737         * lib/render.c: 
9738         * objects/standard/zigzagline.c:
9739         * objects/standard/polyline.c:
9740         * objects/standard/line.c: Work towards better arrow drawing.
9742 2002-07-21  Lars Clausen  <lrclause@cs.uiuc.edu>
9744         * objects/UML/state.c: Starting phase-out of State object as
9745         initial/final state (which never worked right).
9747         * app/app_procs.c (app_init): --version command line option for
9748         non-Gnome.
9750         * configure.in: Slight improvement in GETTEXT_PACKAGE handling.
9752 2002-07-19  Lars Clausen  <lrclause@cs.uiuc.edu>
9754         * app/render_eps.c: Removed debugging info.
9756         * lib/font.c (dia_font_scaled_ascent, dia_font_scaled_descent):
9757         Kludge to make ascent and descent work for empty strings.  Won't
9758         work when using non-ASCII fonts.  Better would be to get a
9759         PangoFont and ask directly.
9761         * configure.in: Simple define of GETTEXT_PACKAGE, and some updates
9762         of the init stuff.
9764         * app/render_gdk.c (get_text_width): Fixed use of wrong string.
9765         Cursor now better.
9767 2002-07-18  Lars Clausen  <lrclause@cs.uiuc.edu>
9769         * plug-ins/xfig/xfig-export.c: First use of draw_object render
9770         function: All shapes are now groups in XFig export.
9772         * lib/diagramdata.c (normal_render): 
9773         * lib/render.c: 
9774         * lib/render.h: 
9775         * app/display.c (ddisplay_obj_render): 
9776         New render function for drawing objects, allows renderers to group
9777         or otherwise specially handle objects.  We may want to reconsider
9778         calling it in app/display.c, as we 'know' the object draw function
9779         is the default one there.
9781         * lib/Makefile.am: Removed extra \ that broke stuff.
9783         * plug-ins/xfig/xfig-import.c: 
9784         Spline import for xfig.  Not perfect.
9786         * objects/standard/create.h: 
9787         * objects/standard/bezier.c (bezierline_create): 
9788         * lib/bezier_conn.c: 
9789         * lib/beziershape.c (beziershape_set_points): 
9790         * lib/bezier_conn.h: 
9791         * lib/beziershape.h: 
9792         Support for creating beziers non-interactively.
9794 2002-07-17  Lars Clausen  <lrclause@cs.uiuc.edu>
9796         * plug-ins/xfig/xfig-import.c: Support for polygons and
9797         polylines.  Special warning handling system removed.
9799         * lib/message.c (gtk_message_internal): Fixed bug involving
9800         closing message window and then getting repeated message.
9802         * Makefile.am: 
9803         * autogen.sh: 
9804         * configure.in (GETTEXT_PACKAGE): 
9805         Update based on bug #88199.  Hopefully this doesn't break too much
9806         intl stuff.
9808         * dia.desktop.in (_Comment): Changed after suggestion from
9809         calum.benson@ireland.sun.com (bug 88345)
9811         * app/sheets_dialog_callbacks.c: Fix from Dolores Alia de Saravia
9812         <loli@unsa.edu.ar> that makes user/system distinction better.
9814 2002-07-16  Lars Clausen  <lrclause@cs.uiuc.edu>
9816         * app/render_libart.c: Got the context right, removed crashes.
9818         * app/commands.c: 
9819         * app/commands.h: 
9820         Redraw menu item.
9822         * app/display.c: 
9823         * app/display.h: 
9824         * app/interface.c: 
9825         * app/menus.c: 
9826         Remove libart #defines from most places (still around for png export).
9828         * app/render_libart.h: 
9829         * app/render_libart.c: 
9830         * configure.in (HAVE_LIBART): 
9831         Starting on update of libart stuff for png export (without X).
9833         * app/autosave.h (autosave_check_autosave): 
9834         * app/load_save.h: 
9835         * app/diagram.h: 
9836         * app/Makefile.am (dia_core_files): 
9837         * app/load_save.c: 
9838         * app/diagram.c (diagram_set_modified): 
9839         * app/autosave.c: 
9840         * app/app_procs.c (app_init): 
9841         Autosave support.  No automatic restore yet.
9843 2002-07-16  Lars Clausen  <lrclause@cs.uiuc.edu>
9845         * app/render_eps.c (create_eps_renderer): #ifdef'd a scale
9846         assignment. 
9847         
9848 2002-07-15  Lars Clausen  <lrclause@cs.uiuc.edu>
9850         * app/interface.c (fill_sheet_menu): Tear-off for sheets menu.
9852 2002-07-15  Andrew Ferrier  <andrew@new-destiny.co.uk>
9854         * Fix for 'make dist' etc. --- problem caused by
9855         previous AUTHORS patch.
9857 2002-07-14  Lars Clausen  <lrclause@cs.uiuc.edu>
9859         * plug-ins/cgm/cgm.c (init_fonts): Changed pango_font_map to
9860         pango_context. 
9861         (set_font): NULL check.
9862         
9863 2002-07-12  Lars Clausen  <lrclause@cs.uiuc.edu>
9865         * app/disp_callbacks.c: 
9866         * lib/diamenu.h: 
9867         Addition to the object menus allows check menu items.
9869 2002-07-11  Andrew Ferrier  <andrew@new-destiny.co.uk>
9871         * HACKING: completely changed to bring up-to-date.
9872         * AUTHORS: file needs REMOVING from CVS as now
9873           dynamically generated.
9874         * app/authors.h: split into subcategories for original
9875           authors, maintainers, etc.
9876         * app/app_procs.c: --credits rewritten to support new
9877           app/authors.h
9878         * app/commands.c: no changes to about box code, comment
9879           added though.
9880         * Makefile.am: added rule for AUTHORS. I'm still
9881           inexperienced with automake, it seems to work, but
9882           for AUTHORS-related bugs, look at this change first.
9884 2002-07-10  Lars Clausen  <lrclause@cs.uiuc.edu>
9886         * plug-ins/Makefile.am (SUBDIRS): Just realized why my hack didn't
9887         work.  Back to including xslt dir always.
9889         * objects/UML/uml.c: 
9890         * objects/UML/class.h: 
9891         * objects/UML/class_dialog.c: 
9892         * objects/UML/class.c: Patch from
9893         <mattam@netcourrier.com>:  Adds comment visibility switch, also
9894         fixes various bugs.
9896         Big patch from Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
9897         for state/fork/activity stuff.
9898         * objects/UML/state.c: Removed old draw_rounded_rectangle code.
9899         * objects/UML/Makefile.am:
9900         * objects/UML/uml.c:
9901         * sheets/UML.sheet.in: Added new objects activity, fork,
9902           state_term.
9903         * objects/UML/pixmaps/state_term.xpm:
9904         * objects/UML/state_term.c: New, only initial/final states.
9905         * objects/UML/pixmaps/activity.xpm:
9906         * objects/UML/activity.c: New, activity state.
9907         * objects/UML/pixmaps/fork.xpm:
9908         * objects/UML/fork.c: New, fork/join bar.
9909         * objects/UML/pixmaps/state.xpm: state icon.
9911         
9912         * doc/diagram.dtd: 
9913         * doc/shape.dtd: Patch from "Dolores Alia de Saravia"
9914         <loli@unsa.edu.ar> to add dia: to diagram.dtd elements and add
9915         svg:text to shape.
9917 2002-07-07  Lars Clausen  <lrclause@cs.uiuc.edu>
9919         * plug-ins/Makefile.am (SUBDIRS): Made the XSLT dir depend on
9920         detecting XSLT
9922         * app/Makefile.am: Commented out the diaconv parts while it's not
9923         used anyway.  To come back later.
9925         * configure.in (HAVE_FREETYPE): 
9926         * app/app_procs.c: 
9927         * app/render_eps.h: 
9928         * app/render_eps.c: Support for printing with freetype, better
9929         encapsulated now.  Renders the text nicely, but ignores font
9930         setting.  Requires pangoft2 to get the font outline, but non-text
9931         objects can still be rendered without it.
9933         * app/commands.h: 
9934         * app/commands.c (objects_place_up_callback) 
9935         (objects_place_down_callback): 
9936         * app/diagram.h: 
9937         * app/diagram.c (diagram_place_down_selected) 
9938         (diagram_place_up_selected): Starting support for moving objects
9939         one level up/down.
9941         * app/menus.c: Removed character/numeral shortcuts.
9943 2002-07-06  Hans Breuer  <hans@breuer.org>
9945         * makefile.am app/makefile.am lib/makefile.am
9946           objects/makefile.am plug-ins/makefile.am 
9947           plug-ins/python/makefile.am :
9948         added required files for win32 build to EXTRA_DIST
9950         * app/paginate_psprint.c app/render_eps.c 
9951           app/app_procs.c :
9952         wrap (E)PS Renderer into HAVE_FREETYPE, no FreeType
9953         on Pango as currently is on win32 => no PostScript 
9954         anymore.
9956         * lib/widgets.c : undef GTK_DISABLE_DEPRECATED;
9957         use '/* noop */;' for empty case labels; replace
9958         debug spew printf with g_print which is guaranteed 
9959         to work on win32, too.
9961         * lib/font.c (dia_pfd_set_weight) : set 'intermediate' values 
9962         for DIA_FONT_MEDIUM and DIA_FONT_DEMIBOLD as explicit allowed 
9963         in the pango_font_description_set_weight() api documentation
9964         Take care for them in dia_font_get_style() too.
9966         * lib/font.[hc] lib/widget.c objects/custom/shape_info.c
9967           plug-ins/shape/shape-export.c plug-ins/svg/render_svg.c :
9968         rename Obliquity to Slant which appears to be the usual name,
9969         also rename dia_font_get_style_string -> dia_font_get_slant_string
9971         * plug-ins/wmf/wmf.cpp : finally ported to new font api
9973         * lib/prop_attr.c app/render_gdk.c : dont *_unref if NULL
9975         * objects/uml/association.c class.c large_package.c message.c
9976         if g_free() is used g_strdup needs to be used.
9977         * objects/custom/shape_info.c
9978           objects/ER/attribute.c entity.c
9979           objects/standard/image.c 
9980           app/sheets_dialog_callbacks.c : more strdup cleaning
9982 2002-07-05  Lars Clausen  <lrclause@cs.uiuc.edu>
9984         * app/render_eps.c: Non-crashing printing (made the right
9985         context).  Font output still fscked up.
9987 2002-07-05  Andrew Ferrier  <andrew@new-destiny.co.uk>
9989         * app/authors.h: Added file --- now master
9990         location for contributors data.
9991         * app/app_procs.c: Added --credits option.
9992         * app/commands.c: Modified about box to use
9993         app/authors.h.
9995 2002-07-05  Lars Clausen  <lrclause@cs.uiuc.edu>
9997         * app/render_eps.c: First stab at EPS rendering using the contour
9998         code from PAPS.  Crashes.
10000 2002-06-30  Lars Clausen  <lrclause@cs.uiuc.edu>
10002         * app/recent_files.c (recent_file_history_remove): 
10003         Fixed call to g_list_delete_link discarding return value.
10004         
10005         * lib/widgets.c (dia_font_selector_set_styles): 
10006         * lib/font.h (DiaFontWeight): 
10007         * lib/font.c (dia_font_get_style): Revert to DIA_FONT_NORMAL==0
10009 2002-06-30  Cyrille Chepelov  <cyrille@chepelov.org>
10011         Contribution from Alan Horkan <horkana@tcd.ie>: 
10012         
10013         * shapes/Assorted/*
10014         * sheets/Assorted.sheet:
10015         A set of 40 assorted geometric shapes.
10017         * sheets/Assorted.sheet.in:
10018         * sheets/Makefile.am
10019         * shapes/Assorted/Makefile.am:
10020         * shapes/Makefile.am:
10021         * po/POTFILES.in:
10022         * configure.in:
10023         Done the integration job of Alan's shapes. (Translators: have fun!)
10025         * po/dia.pot: refreshed the main potfile.
10026         
10027 2002-06-28  Cyrille Chepelov  <cyrille@chepelov.org>
10029         Patch from Tim Ellis <Tim.Ellis@gamet.com>:
10030         
10031         * objects/UML/class.[ch]:
10032         * objects/UML/class_dialog.c:
10033         changed the number of connection points from a hardcoded value of
10034         8 to a #defined constant
10036         (I changed the constant back from 20 to 8, until we better know
10037         how we'll handle more connection points on the UML class in the
10038         future -- but Tim's patch is a welcome clean-up).
10040 2002-06-26  Cyrille Chepelov  <cyrille@chepelov.org>
10042         * shapes/MSE/demultiplexer.xpm:
10043         * shapes/MSE/node_center.xpm:
10044         * shapes/MSE/multiplexer.xpm:
10045         * shapes/MSE/tacsat.xpm: updated MSE icons (transparency) by Alan
10046         Horkan <horkana@tcd.ie>
10048 2002-06-25  Lars Clausen  <lrclause@cs.uiuc.edu>
10050         * lib/widgets.c: Total rehash of font selector, with font dialog
10051         option, expanding list (not LRU yet), and stuff.
10053 2002-06-25  Cyrille Chépélov  <cyrille@chepelov.org>
10055         * lib/font.h:
10056         * lib/font.c: 
10057         Added a set of new setter/getters, some of them more specially for
10058         the SVG-ish I/O.
10059         
10060         * plug-ins/shape/shape-export.c: (new_shape_renderer),
10061         (destroy_shape_renderer), (set_font), (draw_string):
10062         * plug-ins/svg/render_svg.c: (new_svg_renderer),
10063         (destroy_svg_renderer), (set_font), (draw_string):
10065         Actually exported the font face, style, weight and size (sodipodi
10066         agrees with dia on how a small sample should look like (a sample
10067         0.90 would not even display anyways). Yay !)
10069         Patch from Matthieu Sozeau <mattam@netcourrier.com>:
10071         * plug-ins/xslt/Makefile.am: repaired the mess Cyrille put there.
10073         (end of ChangeLog-less patch)
10075         * objects/custom/shape_info.c (parse_style): now understands the
10076         font-style and font-weight attributes as well. Does not use
10077         anymore dia_font_new_from_legacy_name().
10078         
10079 2002-06-24  Lars Clausen  <lrclause@cs.uiuc.edu>
10081         * objects/standard/textobj.c: Now uses stdprops for defaults.
10083         * lib/font.h: Changed order of DiaFontWeight entries.  Sorry.
10084         * lib/font.c (dia_font_get_style): Style now linear and conversion
10085         simple. 
10087         * lib/widgets.c (dia_font_selector_set_styles): Fixed the style
10088         selector. 
10090 2002-06-24  Cyrille Chepelov  <cyrille@chepelov.org>
10092         * plug-ins/dxf/dxf-import.c:
10093         using dia_font_new_from_style()
10095         Patch from Matthieu Sozeau  <mattam@netcourrier.com>:
10097         * objects/UML/class.[ch]: Added a comment field to class
10098         * objects/UML/uml.[ch]: Added a comment field to attributes,
10099         operations and parameters.
10100         * objects/UML/class_dialog.c: Added code for the new comment
10101         fields.
10102         * plug-ins/xslt/*.xsl: Added some code to handle comments.
10103         * plug-ins/xslt/xslt*.c: Clean up based on Cyrille comments.
10104         Added a $directory parameter for stylesheets so the output is 
10105         in the good place (not in the $PWD).
10107         (end of Patch)
10109         * AUTHORS: added contributors, updated maintainers. Removed the
10110         specific areas of action.
10112         * Patch from Andrew Ferrier <andrew@new-destiny.co.uk>, derived
10113         from a patch by Xing Wang <quixon@gnuchina.org>:
10115         * app/commands.c: help_about_callback now supports
10116         new-style GNOME about box as well as old GTK style. 
10117         code also tidied (Closes: #85726)
10119         (end of Patch)
10121         * app/commands.c: fixed the copyright (it's not all FSF), and
10122         maintainers. Synced contributors list with AUTHORS.
10123                 
10124 2002-06-24  Lars Clausen  <lrclause@cs.uiuc.edu>
10126         * lib/message.c: More work on repeating messages, now with
10127         togglable view.
10129 2002-06-24  Hans Breuer  <hans@breuer.org>
10131         * lib/widget.c : some more bits in place, at least
10132         it does something useful instead of crashing. Much
10133         better - but not all ok :-)
10135 2002-06-23  Lars Clausen  <lrclause@cs.uiuc.edu>
10137         * lib/message.c (gtk_message_internal): First stab at repeating
10138         message dialog.
10140 2002-06-23  Cyrille Chepelov  <cyrille@chepelov.org>
10142         * objects/FS/*.c:
10143         * objects/GRAFCET/*.c:
10144         * objects/SADT/*.c:
10145         * objects/UML/association.c: (one instance forgotten)
10146         * objects/UML/large_package.c: 
10147         * objects/standard/textobj.c:
10148         * lib/attributes.c:
10149         * lib/text.c:
10150         using dia_font_new_from_style()
10152 2002-06-23  Hans Breuer  <hans@breuer.org>
10154         * lib/font.c : giving some love to
10155         dia_font_new_from_legacy_name() that is making
10156         import of old files as painless as possible and
10157         provide an almost exact match where possible.
10158         It does not yet fully work because it interfers
10159         with the Style to DiaStyle conversion which comes
10160         next ...
10162         [Changing these files is only allowed with Dia-0.90]
10163         * broken-files/fonts-0.90.dia : including the
10164         common hard-coded fonts from Dia-0.90. It also
10165         has drawn bounding-boxes for win32 as they were calculated
10166         from the former version (they were all too big).
10167         * broken-files/fonts-0.90-full.dia : all hardcoded
10168         fonts including the asian versions. On my machine
10169         this gives _a lot_ complaining about missing fonts
10170         and a finally a broken file display. Anyone having
10171         all these fonts ?
10172         
10173 2002-06-23  Cyrille Chepelov  <cyrille@chepelov.org>
10175         * objects/chronogram/*.c: 
10176         * objects/custom/custom_object.c:
10177         * objects/ER/*.c:
10178         using dia_font_new_from_style()
10180 2002-06-23  Lars Clausen  <lrclause@cs.uiuc.edu>
10182         * lib/widgets.c (dia_font_selector_set_styles): Improvements to
10183         font selector (stability, insensitivity).
10185         * lib/font.c (dia_font_scaled_build_layout): Removed unworkable
10186         stretching scheme for tweaking, and made scaling scheme faster
10187         (but less precise).
10188         (dia_font_dia_style_to_pango): Oops, % != /.
10190 2002-06-23  Cyrille Chepelov  <cyrille@chepelov.org>
10192         
10193         * patch from Matthieu Sozeau  <mattam@netcourrier.com>:
10195         * plug-ins/xslt : Added an XSLT plugin to export dia files using
10196         XML Stylesheets. The plug-in requires DIA_PLUGIN_PATH to be set.
10197         It includes a small config file to tell it what stylesheets to use.
10199         (end of patch)
10200         
10201         * plug-ins/xslt/xsltdialog.c: modified the dialog to be more 
10202         GTK2.0/HIG compliant (the labels could be slightly more verbose,
10203         perhaps). Added back a couple forgotten _(). Removed //-style
10204         comments.
10205         
10206 2002-06-23  Hans Breuer  <hans@breuer.org>
10208         * lib/plug-ins.c
10209         (dia_plugin_get_name) : don't crash plugin_manager
10210         on name being NULL 
10211         (dia_plugin_load) : reuse the description field to
10212         store the error string if loading fails.
10214         * lib/font.[hc] : starting to beautify the new
10215         font api: proper namespacing, adding convenience
10216         functions like dia_font_new_from_style(), ...
10218         * objects/uml/*.c : use the new convenience functions.
10220         [Next thing I plan to do is changing the other font
10221          functions to take DiaStyle and make Style and 
10222          BASIC_*_FONT vanish. As well as giving some love to
10223          dia_font_new_from_legacy_name().
10224          If anyone want's to help on converting the other
10225          objects to the new api during that, I would highly 
10226          appreciate it.]
10228 2002-06-23  Hans Breuer  <hans@breuer.org>
10230         * lib/font.c : made it compile and small indent fixes.
10231         Is there a code-has-no-effect-so-needs-not-be-valid
10232         with GCC?       
10234         * lib/widgets.c : use g_strcasecmp
10236 2002-06-22  Lars Clausen  <lrclause@cs.uiuc.edu>
10238         * lib/font.c: 
10239         * lib/font.h: 
10240         * lib/widgets.c: Font names sorted, style selector widget
10241         reappeared.  Doesn't select the old style yet.
10243 2002-06-22  Cyrille Chepelov  <cyrille@chepelov.org>
10245         * lib/font.c: one who expects a text's font to be changed shall 
10246         actually request the attributes to apply to the whole range of the
10247         said text... D'oh! 
10249         * lib/font.c: extents computation was wrong.
10251         * lib/font.c: dia_font_get_legacy_name(); g_strconcat works better
10252         if a last NULL parameter is added...
10254         * lib/font.c: extents computation was completely wrong. This looks
10255         much better this time.
10257         * objects/UML/class.c: fixed the various strings positions.
10259         * lib/font.h, and **/*.[ch] (all callers of dia_font_new): used
10260         macros to get the hardcoded base fonts.
10262         * objects/ER/relationship.c: wasn't converted to DiaFont*
10263         
10264 2002-06-22  Hans Breuer  <hans@breuer.org>
10266         * lib/widget.c : dont use backend specific functions
10267         to get on the font_families. Including it would mean
10268         including <windows.h> which breaks due to namespace
10269         pollutions ...
10271         * lib/libdia.def : updated externals
10273         * app/makefile.msc : temporary disabled: -DHAVE_LIBART
10275         * lib/font.c : added empty dia_font_init_instance function,
10276         reformatting of dia_fon_unref to allow to set breakpoint,
10277         dia_fon_build_layout() : dont crash on string==NULL
10279         * lib/text.c (text_set_attributes) : don't unref the wrong font
10281         * lib/widgets.c (dia_fon_selector_set_font) : our hashtable
10282         stores lowercased font names, but dia_font_get_family()
10283         returns mixed case      
10285 2002-06-22  Lars Clausen  <lrclause@cs.uiuc.edu>
10287         * lib/widgets.c: 
10288         * app/render_gdk.c: Patch from Hans Breuer.
10290         * app/Makefile.am (dia_core_files): diaconv commented out for now.
10291         
10292 2002-06-22  Cyrille Chepelov  <cyrille@chepelov.org>
10294         * lib/all files touched yesterday: took into account some of Hans
10295         Breuer's remarks in
10296         http://mail.gnome.org/archives/dia-list/2002-June/msg00257.html
10298         * objects/chronogram/*: 
10299         * objects/custom/*:
10300         * objects/ER/*:
10301         * objects/flowchart/*:
10302         * objects/FS/*:
10303         * objects/GRAFCET/*:
10304         * objects/SADT/*:
10305         * objects/standard/textobj.?:
10306         * objects/UML/*:
10307         converted to the new DiaFonts.
10309         * plug-ins/cgm/*:
10310         * plug-ins/pstricks/*:
10311         * plug-ins/wpg/*:
10312         * plug-ins/dxf/*:
10313         * plug-ins/xfig/*:
10314         Made minimalistic conversions so that they'd at least compile.
10316         * app/render_gdk.c:
10317         * app/render_pixmap.c:
10318         Converted to the new DiaFonts.
10320         * app/app_procs.c
10321         * app/diaconv.c:
10322         * app/render_eps.c:
10323         made the minimal changes so that it would at least build.       
10325         *** At this point, the thing builds on my machine, but segfaults
10326         right away. ***
10327         
10328 2002-06-21  Cyrille Chepelov  <cyrille@chepelov.org>
10330         * configure.in: removed the backend-specific pango pkg_modules
10331         (trivial to add back if needed, when actually needed)
10333         * app/Makefile.am:
10334         * app/*gnomeprint.[ch]: (removed): removed the GNOME-print
10335         renderer. The APIs will have completely changed when we get around
10336         to redo a renderer for it, anyways.
10338         * font.[ch]: rewrote everything from scratch, with a Pango
10339         implementation. Normally, only backend-neutral things should go in
10340         there.
10342         **WARNING**: new rules for managing DiaFont* pointers: these are
10343         reference-counted GObjects. One >must< diafont_ref() and
10344         diafont_unref() as appropriate. I wish I could overload operator=()...
10346         lib/plug-ins.h: bumped up the plug-in API.
10347         
10348         lib/attributes.c: 
10349         lib/dia_xml.c: 
10350         lib/dummy_dep.h
10351         lib/object_defaults:
10352         lib/prop_attr.c: Adapted to the new DiaFont API. This'll change
10353         again tomorrow with GObject.
10354         
10355         lib/widgets.c: Adapted to the new DiaFont API and to Pango.
10357         **** The rest of the tree should be updated as well ****
10358         
10359 2002-06-21  Lars Clausen  <lrclause@cs.uiuc.edu>
10361         * app/render_gdk.h: 
10362         * app/render_gdk.c: 
10363         * app/render_pixmap.c: 
10364         * app/render_pixmap.h: 
10365         * app/render_libart.h: 
10366         * app/render_libart.c: 
10367         * lib/font.h: 
10368         * lib/font.c: Removed freetype stuff (still around in
10369         lib/widgets.c 'cause we might want the font selector widget).
10371 2002-06-20  Cyrille Chepelov  <cyrille@chepelov.org>
10373         * shapes/network/laptop.(xml|shape):
10374         * sheets/network.sheet.in: added Laptop (notebook) PC shape,
10375         contributed by Alan Horkan <horkana@tcd.ie>. (Closes: #82643)
10377 2002-06-17  Hans Breuer  <hans@breuer.org>
10379         * lib/object_defaults.c : #include <libxml/tree.h> not
10380         <tree.h> pointed out by Xing Wang
10382 2002-06-17  Lars Clausen  <lrclause@cs.uiuc.edu>
10384         * lib/color.h (GDK_COLOR_TO_DIA, DIA_COLOR_TO_GDK): 
10385         * lib/widgets.c: 
10386         * app/color_area.c: Update to
10387         gtk_color_selection_*_current_color() fixed bad crash issues, plus
10388         updated color conversions.
10390         * sheets/ER/weakentity.xpm: Accepted patch from
10391         quixon@gnuchina.org to make icon match actual appearance.
10393         * app/recent_files.c: Fixed GNOME recent file problem, thanks to
10394         quixon@gnuchina.org.
10396 2002-06-16  Hans Breuer  <hans@breuer.org>
10398         * lib/plug-in.[hc] : make PlugInInfo opaque again in the 
10399         good tradition of information hiding. Add new function
10400         dia_plugin_get_symbol()
10401         * app/sheets.c app/sheets_dialog_callbacks.c : use it
10403         * app/sheets.c : stop complaining about object_get_type() 
10404         returning NULL. This is a consequence of e.g. disabling 
10405         plug-ins at runtime _and_ it was and is gracefully handled. 
10406         Spitting out g_warning for it isn't appropriate. 
10408         * lib/object.[ch] : removed dead code
10410         * app/plugin-mangager.c : almost complete rewrite for gtk2
10411         using GtkListStore/GtkTreeView
10413         * lib/libdia.def : updated externals
10415         * todo.gtk2 : updated, that is removed already done steps
10417 2002-06-15  Hans Breuer  <hans@breuer.org>
10419         * objects/uml/class_dialog.c : clean some left-over
10420         utf8-mess, return 0 from "focus_out_event" handlers
10421         to avoid asserting in gtk (#78305). Reconstruct 
10422         stereotype/NULL behaviour to avoid rendering empty
10423         stereotypes on classes and member functions
10425         [#56109 - Provide object defaults for StdProp objects,
10426          some remaining issues are discussed in bugzilla]
10428         * lib/object_defaults.c : (new file) manage default properties 
10429         of dia objects. The serialization is done with standard
10430         object methods in a diagram compatible format.
10432         * lib/object.c : add object_registry_foreach() which allows
10433         to iterate over all registered object types
10435         * lib/object.h : added prototypes object_default*() and
10436         object_registry_foreach()
10438         * lib/makefile.am lib/makefile.msc : add new file to build
10440         * lib/libdia.def : export new functions
10442         * app/defaults.c : provide StdProp based defaults if the
10443         ObjectType doesn't implement it's own default functions
10445         * app/create_object.c : through dia_object_default_create()
10446         * app/disp_callbacks.c : same here
10448 2002-06-12  Lars Clausen  <lrclause@cs.uiuc.edu>
10450         * objects/FS/flow-ortho.c (orthflow_get_object_menu): Menu
10451         sensitivity for deleting segments.
10453 2002-06-12  Cyrille Chépélov  <cyrille@chepelov.org>
10455         * app/color_area.c: (color_area_events):
10456         * app/diagram.c: (diagram_destroy):
10457         * app/interface.c: (zoom_activate_callback), (fill_sheet_wbox),
10458         (fill_sheet_menu):
10459         * app/load_save.c: (diagram_data_load):
10460         * app/menus.c: (menus_get_item_from_path):
10461         * app/preferences.c: (prefs_load):
10462         * app/render_gdk.c: (get_text_width):
10463         * lib/arrows.h:
10464         * lib/color.c: (color_convert):
10465         * lib/dia_dirs.c: (dia_config_filename):
10466         * lib/dia_xml.c: (xmlDiaParseFile), (data_type):
10467         * lib/intl.c: (intl_get_language_list):
10468         * lib/message.c: (message):
10469         * lib/message.h:
10470         * lib/paper.c: (get_default_paper):
10471         * lib/plug-ins.c: (this_is_a_plugin), (dia_register_plugins):
10472         * lib/widgets.c: (dia_file_selector_get_file):
10473         * lib/widgets.h:
10474         * objects/standard/image.c: (get_directory):
10476         warningectomy.
10477         
10478 2002-06-12  Lars Clausen  <lrclause@cs.uiuc.edu>
10480         * ChangeLog: Fixed bad UTF-8 mess.  Apologies.
10482 2002-06-11  Lars Clausen  <lrclause@cs.uiuc.edu>
10484         * app/interface.c: sscanf now returns EOF on empty string, so
10485         handle no match for zoom factor better => correct zoom at start.
10487         * app/sheets.c (create_object_pixmap): Tried to display empty error.
10488         (sheets_optionmenu_create): Died when not finding specified
10489         sheet.  Don't think it should.
10491         * objects/UML/association.c: Added patch from osamyn@ulb.ac.be
10492         (bug #84367) to place the text better.
10494 2002-06-11  Cyrille Chepelov  <cyrille@chepelov.org>
10496         * configure.in: Added forgotten libgnomeui-2.0 when --enable-gnome
10497                         
10498         * app/commands.c: Removed unnecessary gnome include. Removed
10499         GNOME-Print support.
10501         * app/menus.h: Removed now unnecessary gnome include.
10502         
10503         * app/sheets_dialog.c: Used Gtk 2.0 stock buttons instead of
10504         GNOME-specific stock buttons
10505         
10506 2002-06-09  Hans Breuer  <hans@breuer.org>
10508         * app/app_procs.c : convert 'Modified diagrams exits'
10509         dialog to use GtkMessageDialog. That gives us:
10510         - icons without Gnome dependency
10511         - much less code, also cross platform
10512         - improved useability ?
10514         * app/color_area.c : the Color Selection Widget looked
10515         quite wrong (alpha problems). Fix it by merging in required
10516         changes stolen from The Gimp cvs
10517         * app/color_area.h : to get the right appearance the maskes
10518         needed to be taken into account
10519         * app/interface.c : adapt to color_area_create changes.
10520         Also remove some dead code and finally remove cvs autexpansion, 
10521         I was bothered enough by irrelevant differences :-)
10523         * app/defaults.c app/properties.c app/dia-props.c : use improved GtkDialog
10524         api, i.e stocks and response to make the GnomeDialog usage
10525         obsolete. Also fixed the issue with closing the 'parent'
10526         before closing the dialog
10528         * app/display.[ch] : removed some dead code and conversion
10529         to new GtkDialog api. Also trying to conform to new HIG
10530         standard http://developer.gnome.org/projects/gup/hig/
10532 2002-06-09  Hans Breuer  <hans@breuer.org>
10534         * lib/makefile.msc : define GTK_DISABLE_DEPRECATED,
10535         build ps-utf8.c
10537         * lib/dia_image.c : gtk_widget_set_default_visual()
10538         remove. It does nothing with Gtk2.
10540         * lib/libdia.def : added ps_unicoder exports
10542         * lib/message.c : remove #GNOME use GtkMessageDialog.
10543         Yeah, Dia gets dialogs wit icons cross-platform.
10545         * lib/prop_geomtypes.c : gtk_spin_button_get_value_as_float()
10546         to gtk_spin_button_get_value()
10548         * lib/prop_inttypes.c : gtk_label_set() -> gtk_label_set_text()
10550         add #undef GTK_DISABLE_DEPRECATED to still use ...
10551         * lib/prop_text.c :  ... GtkText
10552         * lib/prop_widgets.c : ... GtkList
10553         * lib/prop_dialogs.c : ... gtk_signal_connect and more
10554         * lib/widgets.c : ... (too much to list here)
10556         * lib/ps-utf8.c : #include <string.h>
10558 2002-06-08  Cyrille Chepelov  <cyrille@chepelov.org>
10560         * configure.in:
10561         * Makefile.am:  Adapted for gtk2.
10562         Removed dependencies on libunicode, on iconv(), on langinfo().
10564         * acconfig.h: removed (now obsolete)
10566         * lib/charconv.[ch]: removed (superceded by glib)
10567         * lib/ps-utf8.[ch]: removed dependency on charconv.[ch]
10569         * **/*.[ch]: removed (utfchar *), (unichar) and other charconv or
10570         libunicode types for their glib counterparts. Fixed the include
10571         paths for libxml2. Removed all traces of libxml1 or non-UTF8
10572         support (there were remains in objects/uml).
10574         
10575 2002-06-08  Hans Breuer  <hans@breuer.org>
10577         */*.c */*/*.c : remove all the #ifdef *_UTF8_* hell,
10578         only keep the utf-8 clean code cause Dia+Gtk2 now talk it.
10579         Also use g_strdup()'s handling of NULL by returning NULL
10580         again at all places I found (remove unnecessary if's)
10582         * todo.gtk2 : new file to keep notes about gtk2 porting,
10583         further issues and thoughts and some status information.
10584         Also sent to dia-list ('Dia goes Gtk2 ...').
10585         
10586         [make it compile with GTK+ 2.0]
10588         * config.h.win32 : #undef GTK_TALKS_UTF8_WE_DONT,
10589         removed definition of S_ISDIR, S_ISREG and getlogin
10591         * */makefile.msc : Use GTK2 and libxml2
10592         BEWARE: makefile.am, configure.in not yet ported !
10594         * app/app_procs.c app/diagram.c : remove 
10595         gtk_item_factory_dump_rc code, (it wasn't read in again anyway) 
10596         but set use gtk_menu_set_accel_path() on menu creation
10598         * app/color_area.c lib/widgets.c : 
10599         make use of gtk_color_selection_set_has_palette ()
10601         * app/commands.c : gdk_pixbuf_new_from_file wants an 
10602         extra argument. Convert from DIR to GDir usage.
10604         * app/diagram_tree.c(button_press_callback) : need to return 
10605         FALSE in the signal handler to let gtk process it further.
10606         (get_object_name) : don't leak 'prop'
10607         
10608         * app/diapagelayout.c : adapt to GtkTypeInfo changes and handle 
10609         dia_page_layout_destroy() getting called more than once
10611         * app/diaunitspinner.c : GtkEditable -> GtkEntry, 
10612         GtkTypeInfo changes
10614         * app/disp_callbacks.c : gtk_menu_append() -> gtk_menu_shell_append()
10616         * app/display.h : wrap input contexts declarations into #ifdef USE_XIM.
10617         IIRC this code will not compile unchanged when USE_XIM is defined ...
10619         * app/gtk[hv]wrapbox.[hc] : use already ported version from The GIMP 1.3.x
10621         * app/interface.c : there is no widget->klass anymore in Gtk, 
10622         use GTK_WIDGET_GET_CLASS instead. gdk_pixbuf_new_from_file() extra
10623         parameter. Some tweaking of GtkWrapBox usage to get four tools in
10624         a row again.
10625         switch off GTK's double buffering on Dia's canvas. Otherwise we would 
10626         get triple buffering and flicker.
10627         Replace call to GTK private function _gtk_accel_group_attach()
10628         with public gtk_window_add_accel_group()
10630         * app/layer_dialog.c : adapt to GtkTypeInfo changes
10632         * app/load_save.c lib/plug-ins.c lib/sheet.c 
10633           objects/custom/custom.c : 
10634         simplified by using g_file_test()
10636         * app/menus.c : convert from gtk_item_factory_<dump|parse>_rc 
10637         to gtk_accel_map_<save|load>. Also added common stock-icons
10638         to the menu.
10639         
10640         * app/preferences.c : use gtk_button_set_label() instead
10641         of button->child which is gone. Also removed GLIB_CHECK_VERSION.
10643         * app/preferences.c lib/dia_xml.c lib/plug-ins.c :
10644         #ifdef G_OS_WIN32 #include <io.h>, this was formerly done
10645         in config.h.win32
10647         * app/recent_files.c : removed GLIB_CHECK_VERSION
10649         * app/render_eps.c 
10650           plug-ins/metapost/render_metapost.c
10651           plug-ins/pstricks/render_pstricks.c
10652           plug-ins/svg/render_svg.c :
10653         replace getlogin() with g_get_user_name() which always
10654         returns non NULL
10656         * app/render_gdk.c : gdk_region_union_with_rect() modifies
10657         inplace now and returns nothing, also less #hell
10659         * app/render_libart.c : some initial #hell cleaning, SuckFont
10660         still needs to vanish
10662         * app/splash.c : gdk_pixbuf_new_from_file() second arg and
10663         GTK_WINDOW_DIALOG -> GTK_WINDOW_TOPLEVEL
10665         * app/render_pixbuf.c app/sheets.c : plain #hell cleaning
10666         * app/sheets_dialog_callbacks.c : some #hell and adaptions
10667         needed to GtkWrapBox api changes
10670         * lib/charconv.[hc] : removed from build
10671         [changed appropriate]
10672         * lib/prop_inttypes.c lib/prop_text.c : 
10673         all utf-8 cleaning 
10674         * lib/text.c : ported from HEAD but keep original indent
10675         intact. Original was done by Akira TAGOH.
10677         * lib/color.c : GdkColorContext is gone, use GdkColormap instead.
10679         * lib/dia_image.c : gdk_pixbuf_new_from_file() second arg
10681         * lib/dia_xml.c : remove #ifdef GLIB_CHECK_VERSION, it's the
10682         same on all platforms now!
10684         * lib/font.c : still using SuckFont which was an IMPERATIVE FIXME!
10686         * lib/message.c : remove "charconv.h"
10688         * lib/prop_text.c : #define GTK_ENABLE_BROKEN to use GtkText
10690         * lib/plug-in.c :
10691         * lib/sheet.c : convert from DIR to GDir usage
10693         * lib/widgets.c : gtk_menu_(shell_)append and GtkTypeInfo
10695         * lib/widgets.h : include gtk<label|colorseldialog>.h
10698         * objects/fs/flow.c :
10699         * objects/fs/flow-ortho.c : GTK_ENABLE_BROKEN to use GtkText
10701         * objects/custom/custom.c : convert from DIR to GDir usage
10704         * plug-ins/python/makefile.msc : updated for GTK2/Python2.2
10707 2002-05-03  Hans Breuer  <hans@breuer.org>
10709         * lib/dia_xml.c : make the well formed utf8 check
10710         actually work for &#251; (non 7-bit ascii encoding)
10711         and fixed the file re-writing if the check fails.
10712         Thanks to Vitaly Lipatov for noticing the misbehaviour.
10714         * lib/font.c : synchronize #ifdef G_OS_WIN32 with
10715         comment on last ressort font. Thanks to Maxim Sobolev.
10717 2002-06-03  Cyrille Chepelov  <cyrille@chepelov.org>
10719         * sheets/network.sheet.in: corrected a typo in plotter invocation.
10721 2002-06-03  Steffen Macke  <sdteffen@web.de>
10723         * shapes/network/digitizing_board.png:
10724         * shapes/network/digitizing_board.shape:
10725         * shapes/network/plotter.png:
10726         * shapes/network/plotter.shape:
10727         * shapes/network/Makefile.am
10728         * sheets/network.sheet.in: added new plotter and digitizing
10729         board shapes
10730         
10731 2002-06-02  Cyrille Chepelov  <cyrille@chepelov.org>
10733         * lib/font.c: made a symptomatic fix to a segfault reported by 
10734         Jan Keirse <jan.keirse@pandora.be> on a SuSE 7.3 system. This
10735         won't prevent dia from terminating, but should give more
10736         user-friendly information about why did it terminate.
10738         Two patches from <robert.young@dsto.defence.gov.au>:
10739         
10740         * app/display.c: fix the size of the canvas area which gets
10741         redrawn. There was an off-by one error (Closes #83659)
10743         * app/display.c: make sure we redraw all screen only when we
10744         really have to (some update_areas were mistakenly ignored) (Closes
10745         #83496). 
10747         * NEWS: added a new entry for the future. Put there a reminder to
10748         update the dependencies.
10750         * configure.in: put in notes about what will change shortly.
10751         upped the version to 0.90+cvs (did also in config.h.win32)
10752         upped the minimum version for intltools (now 0.21)
10753         
10754 2002-06-01  Cyrille Chepelov  <cyrille@chepelov.org>
10756         * dia.spec:
10757         * configure.in:
10758         * NEWS:
10759         * config.h.win32:
10760         bumped up version number to 0.90. Yay!
10762 2002-05-30  Cyrille Chepelov  <cyrille@chepelov.org>
10764         * doc/pl/Makefile.am:
10765         * doc/en/Makefile.am: fixed a "make install" problem when db2html
10766         is not present (Reported by Andrew Ferrier
10767         <andrew.junk@new-destiny.co.uk>). Fixed another "make distclean"
10768         problem which prevented me from ever seeing the problem in doc/en...
10769         
10770         * Makefile.am: added autogen.sh to the EXTRA_DIST clause.
10771         
10772         * lib/font.c: patch from <robert.young@dsto.defence.gov.au>; add a
10773         way to read the font path from the XFS configuration files in
10774         order to enable FreeType (fixes #83098).
10776         * POTFILES.(in,skip): now skips objects/sybase/sybase.c, which is not
10777         shipped nowadays.
10778                 
10779         * dia.spec:
10780         * configure.in:
10781         * NEWS:
10782         * config.h.win32:
10783         bumped up version number to 0.90.RC3
10785 2002-05-29  Zbigniew Chyla  <cyba@gnome.pl>
10787         * configure.in, doc/Makefile.am, doc/pl/Makefile.am,
10788         doc/pl/authors.sgml, doc/pl/dia-manual.sgml, doc/pl/dia-pl.omf,
10789         doc/pl/intro.sgml, doc/pl/license.sgml, doc/pl/topic.dat
10790         doc/pl/usage-canvas.sgml, doc/pl/usage-customization.sgml,
10791         doc/pl/usage-layers.sgml, doc/pl/usage-loadsave.sgml
10792         doc/pl/usage-objects-selecting.sgml, doc/pl/usage-objects-special.sgml,
10793         doc/pl/usage-objects.sgml, doc/pl/usage-quickstart.sgml:
10794         Added Polish documentation.
10796 2002-05-27  Cyrille Cheeplov  <cyrille@chepelov.org>
10798         * objects/UML/state.c: there was a (gratuitous?) change of on-XML
10799         format for the UML State object. Now there's a hack to reload
10800         older files, and get them converted on the fly. 
10801         Justyna BiaÃ…?a <nell@poczta.gazeta.pl> reported this. Thanks!
10803         * lib/properties.h:
10804         * lib/propobject.c:
10805         * lib/proplist.c: Added a new property flag, PROP_FLAG_LOAD_ONLY,
10806         and adapter the proplist predicates. A LOAD_ONLY property is for
10807         when you have legacy to support but can't resist moving your
10808         fields around... (was needed to support the above state.c fix).
10810         If the in-core of your object changes and you need a LOAD_ONLY
10811         property for the old format, you must keep some spare room in your
10812         object's struct to accomodate for the potential old-style
10813         attributes. Then in foo_load(), after having called
10814         object_load_using_properties(), you must inspect the old-style
10815         fields and act accordingly. Don't ever change the on-disk formats...
10817         * objects/UML/object.c:
10818         * objects/UML/small_package.c: added a check against empty
10819         stereotypes still consuming space. Reported by Dolores Alia de
10820         Saravia <loli@unsa.edu.ar>. Thanks!     
10821         
10822 2002-05-26  Cyrille Chepelov  <cyrille@chepelov.org>
10824         * INSTALL: added platform notes from MÃ¥rten Svantesson, for when
10825         using libtool on an AFS partition.
10827         * po/update_potfiles_in.sh: now simply calls the recent intltools 
10828         features; they work better than hand-crafted half-ignorant
10829         scripts. Thanks to Kenneth Rohde Christiansen <kenneth@gnu.org>
10830         for the tip.
10832         * po/POTFILES.in: added back two files update_potfiles_in.sh
10833         didn't take into account. Now this file is not automatically
10834         generated anymore!      
10835         * po/POTFILES.skip: told `intltool-update -m` what files to ignore
10836         (the usual suspects, in fact).
10838         * configure.in: improved the isinf() / isfinite() detection on
10839         Solaris (MÃ¥rten Svantesson)
10840         
10841 2002-05-25  Cyrille Chepelov  <cyrille@chepelov.org>
10843         * configure.in: one expression was replacing $CFLAGS, removing
10844         whatever was previously in.
10845         Added more checks for isinf() and finite() on Solaris.
10847         * lib/geometry.h: added a macro defintion for isinf() if not
10848         HAVE_ISINF. (Hans, you may want to #define HAVE_ISINF if relevant
10849         on Win32)
10851         * app/commands.c: "cut" did not set the 'modified' bit (paste has
10852         been for a little while). Fixes #82994.
10854         * Makefile.am: added more stuff to distclean-local. This should make
10855         "make distcheck" pass! Thanks to the author of
10856         http://mail.gnome.org/archives/gnome-2-0-list/2001-August/msg00212.html
10857         ... I wonder who this Henstridge guy is ... ;-)
10858         Darn. Still doesn't pass. I give up for tonight.
10859         
10860         * po/update_potfiles_in.sh: updated to take care of sheet files,
10861         and to filter out the EML plug-in.
10862         * po/POTFILES.in: updated with all .c and all .sheet.in files 
10864         * po/dia.pot, po/*.po: again updated all .po files with all
10865         strings (with the updated POTFILES). Now with the up-to-date
10866         POTFILES, just all languages have some fuzzy or untranslated
10867         strings (not that the 100% team was that large beforehand...)
10869         * po-checktrans: removed the comment about .po files not holding
10870         all translatable stuff, since now they do.
10871         
10872 2002-05-24  Cyrille Chepelov  <cyrille@chepelov.org>
10874         * dia.spec:
10875         * configure.in:
10876         * NEWS:
10877         * config.h.win32:
10878         bumped up version number to 0.90.RC2
10880 2002-05-20  Hans Breuer  <hans@breuer.org>
10882         * app/load_save.c : starting to increase
10883         Dias tolerance on incomplete/broken files. The 
10884         corresponding bug is #56233. But the patch there does
10885         neither apply anymore nor does it really fix the problem
10886         but only delays it, e.g. even if it would be allowed
10887         to read a file without any layers, the later code can't
10888         handle it.
10889         * lib/dia_xml.c : attribute_<num|first>_data(), data_type()
10890         handle passing in NULL for the node gracefully.
10892         * shapes/network/printer.shape : added two more connection
10893         points - one at each side - to fix bug #60359
10895         * app/commands.c (edit_copy_callback) : 
10896         add ddisplay_do_update_menu_sensitivity() to make 
10897         sequence select-copy-paste work.
10899 2002-05-20  Hans Breuer  <hans@breuer.org>
10901         * app/create_object.c (create_object_button_press) :
10902         added a call to ddisplay_do_update_menu_sensitivity()
10903         to make Ctrl^D etc work after object creation. 
10904         Fixes #80983.
10906 2002-05-18  Lars Clausen  <lrclause@cs.uiuc.edu>
10908         * objects/ER/entity.c: 
10909         * objects/ER/attribute.c: 
10910         * objects/ER/relationship.c: Patch to allow text size change from
10911         Celso Tetsuo Nagase Suzuki.
10913 2002-05-18  Steffen Macke <sdteffen@web.de>
10915         * app/app_procs.c: #ifdef'd xmlerror.h (comes with 
10916         libxml2)
10917         * doc/en/graphics/greendots.png:
10918         * doc/en/home_network.png:
10919         * doc/en/line_props.png: 
10920         * dia-diagram.png:
10921         * dia_gnome_icon.png:
10922         * dia_gnome_menu_icon.png:
10923         * dia_logo.png:
10924         * shapes/network/telephone.png:
10925         * shapes/Logic/and.png:
10926         * shapes/Logic/buffer.png:
10927         * shapes/Logic/connector.png:
10928         * shapes/Logic/inverter.png:
10929         * shapes/Logic/nand.png:
10930         * shapes/Logic/nor.png:
10931         * shapes/Logic/not.png:
10932         * shapes/Logic/or.png:
10933         * shapes/logic/xor.png:
10934         * samples/ER-demo.dia:
10935         * samples/SADT.dia:
10936         * samples/UML-demo.dia:
10937         * samples/chronograms.dia:
10938         * samples/grafcet.dia: re-added as binary files
10940 2002-05-17  Hans Breuer  <hans@breuer.org>
10942         * lib/libdia.def : reflect removing of render_store.[ch]
10944         * */makefile.mingw : remove VERSION definition it's
10945         done in config.h.win32. Dia still doesn't work if
10946         build with mingw ...
10948         * RELEASE-PROCESS : removed */makefile.mingw
10950         * app/sheets_dialog_callbacks.c : if we use those
10951         ugly charconv_gtk_* functions lib/charconv.h needs to
10952         be #included ...
10953         * lib/charconv.h : ... and needs to contain the 
10954         necesseray prototypes _and_ #defines
10956         * plug-ins/shape/shape-export.c : with libxml2 xmlNewGlobalNs
10957         is deprecated and does nothing but spit a warning. This broke
10958         the shape format writing. Fixed.
10959         Also with libxml2 pretty formatted xml isn't the default
10960         anymore, but needs to be enabled explicit: It is done now 
10961         for shape files, which almost always needed to be edited by
10962         hand ... 
10964         * app/app_procs.c : #if G_OS_WIN32 redirect xmlErrorReporting
10965         from stderr - which is invalid on Dia/win32 - to g_print -
10966         which opens up a console window if necessary. This way
10967         a xml-deprecation-error shouldn't stay unnoticed next time
10969 2002-05-17  Steffen Macke <sdteffen@web.de>
10971         * shapes/Misc/folder.png:
10972         * shapes/Misc/file.png: re-added as binary files
10973         
10974 2002-05-16  Lars Clausen  <lrclause@cs.uiuc.edu>
10976         * lib/font.c: Fixed segfault for fonts without family_name.
10978 2002-05-17  Cyrille Chepelov  <cyrille@chepelov.org>
10980         * po/POTFILES.in: added app/sheets_dialog_callbacks.c
10982         * app/sheets_dialog_callbacks.c: While reviewing UTF-8isation upon
10983         Lars' request, minor cosmetic stuff (mostly _() of human-readable
10984         XML comments in .sheet files; one translator booby-trap disarmed).
10986         * lib/charconv.c: moved #hell inside the body of the new
10987         charconv_*gtk* functions (otherwise the Win32 or gtk2.0 linker
10988         will yell)
10989         
10990 2002-05-16  Lars Clausen  <lrclause@cs.uiuc.edu>
10992         * plug-ins/wpg/Makefile.am (INCLUDES): 
10993         * plug-ins/shape/Makefile.am (INCLUDES): 
10994         * plug-ins/svg/Makefile.am (INCLUDES): 
10995         * plug-ins/pstricks/Makefile.am (INCLUDES): 
10996         * plug-ins/metapost/Makefile.am (INCLUDES): Added UNICODE_CFLAGS
10997         and DEBUG_CFLAGS in some missing places.
10999         * MAINTAINERS: New file containing list of known package
11000         maintainers. 
11002         * lib/charconv.h: 
11003         * lib/charconv.c: Charconv versions of some common gtk calls.
11005         * app/sheets_dialog_callbacks.c
11006         (on_sheets_new_dialog_button_ok_clicked),
11007         (on_sheets_dialog_button_edit_clicked),
11008         (on_sheets_dialog_button_remove_clicked),
11009         (on_sheets_edit_dialog_button_ok_clicked):
11010         * app/sheets.c (sheets_optionmenu_create),
11011         (sheets_optionmenu_create): Added utf8 translations.
11013         * app/sheets_dialog.c: 
11014         * app/sheets.c: 
11015         * app/sheets_dialog_callbacks.c: Added some missing _()'s.
11017 2002-05-16  Cyrille Chepelov  <cyrille@chepelov.org>
11019         * po/POTFILES.in: added app/sheets_dialog.c
11021 2002-05-15  Cyrille Chépélov  <cyrille@chepelov.org>
11023         * lib/charconv.c: (charconv_local8_to_utf8),
11024         (charconv_utf8_to_local8): tweaked the warnings to get more 
11025         informations
11026         * lib/font.c: (font_get_suckfont): handled a potential case of
11027         uninitialised data being used (just paranoid)
11028         
11029         * objects/GRAFCET/boolequation.c: (opstring),
11030         (opblock_get_boundingbox), (opblock_draw),
11031         (boolequation_calc_boundingbox): some extra hoops needed now dia
11032         talks UTF8 (but gtk doesn't). More #hell. Beeek. Basically, the
11033         symbols can't yet be used with their proper Unicode cells, since
11034         gtk will demand them in the Symbol font, expressed in the local
11035         8-bit encoding.
11036         
11037         * samples/grafcet.dia: re-saved, now with a fixed bounding box (by
11038         the fix just above).
11040 2002-05-14  Lars Clausen  <lrclause@cs.uiuc.edu>
11042         * app/diagram_tree.c (get_object_name): Check that name property
11043         doesn't have null string.
11045 2002-05-13  Lars Clausen  <lrclause@cs.uiuc.edu>
11047         * autogen.sh (DIE): Added conditional --force to gettextize.
11049         * app/pagesetup.c (pagesetup_ok): Commented out missing Gnome
11050         function call.
11052 2002-05-13  Cyrille Chepelov  <cyrille@chepelov.org>
11054         * RELEASE-PROCESS: added James' notes on how to properly make the
11055         tarball.
11057         * configure.in: removed macro nesting related to libpng.h, which
11058         was causing some problems on some systems (like mine, which made
11059         the snapshots bad).
11061         Made --enable-unicode, previously an option, the mandatory case.
11063         * app/Makefile.am: updated EXTRA_DIST
11064         
11065         * NEWS:
11066         * app/makefile.mingw:
11067         * dia.spec:
11068         * doc/en/dia-manual.sgml:
11069         * plug-ins/makefile.mingw:
11070         * configure.in: bumped up the version number to 0.90.RC1
11072         * lib/render_objects.[ch]:
11073         * po/POTFILES.in: removed render_objects from the build.
11075         * plug-ins/Makefile.am:
11076         * plug-ins/wmf/Makefile.am (new): EXTRA_DIST'ed the WMF plug-in,
11077         so we keep its source in the tarball.
11079         * objects/network/*.c, Makefile.am:
11080         * objects/sybase/*.c, Makefile.am:
11081         * po/POTFILES.in: cleaned up the non-existent files from the po
11082         build process.
11084         * plug-ins/Makefile.am: re-enabled metapost plug-in.
11085         
11086 2002-05-13  Steffen Macke <sdteffen@web.de>
11088         * AUTHORS:
11089         * app/command.c: added M. C. Nelson to the Authors
11090         * sheets/Circuit/Makefile.am: added firewall shape to build
11091         * sheets/network/Makefile.am: added telephone and microphone
11092           shapes to build
11094 2002-05-13  Lars Clausen  <lrclause@cs.uiuc.edu>
11096         * RELEASE-PROCESS: Added list of files that contain the release
11097         number or should otherwise be changed at each release.
11099 2002-05-12  Lars Clausen  <lrclause@cs.uiuc.edu>
11101         * objects/UML/uml.c (uml_operation_read): Forgot to commit this
11102         (reported fixed) bug: POLYMORPHIC -> LEAF for default.
11104 2002-05-12  Hans Breuer  <hans@breuer.org>
11106         * config.h.win32 : changed VERSION to 0.90.RC1
11108         * app/makefile.msc lib/makefile.msc : use renamed
11109         gdk-pixbuf version (same content but renamed because
11110         all the other gtk+ dlls are renamed) to avoid trouble
11111         mixing gtk versions (of which one would not 
11112         be initialized ...
11114         * app/app_procs.c : removed recently unneeded
11115         inclusion of "sheets.h"
11117         * app/render_gdk.c : removed my own debug spew
11118         which should never made it to cvs
11120         * lib/render_object.[hc] : added
11121         #error "File not used anymore."
11123         * lib/libdia.def : updated externals
11125         * app/interface.c : dropped filenames need to be
11126         converted from uri with Gtk+2.0
11128 2002-05-12  Cyrille Chepelov  <cyrille@chepelov.org>
11130         * RELEASE-PROCESS (new): a draft document about how to release. To
11131         be discussed. (already with some input from Hans Breuer)
11133 2002-05-12  Steffen Macke <sdteffen@web.de>
11135         * sheets/Makefile.am: re-added Misc sheet to make process
11136         
11137 2002-05-12  Lars Clausen  <lrclause@cs.uiuc.edu>
11139         * objects/FS/function.c: Added comments to humungous list of menu
11140         items, to aid translators.
11142 2002-05-11  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
11144         * app/menus.c (display_menu_items): Added a few shortcuts for zooms.
11146         * app/menus.c (display_menu_items): Added a few shortcuts for zooms.
11148         * app/interface.c (create_toolbox): Disallow shrinking beyond
11149         requested size.  Fixes bug #59439, and confirms to GTK guidelines
11150         (see gtk_window_set_policy).
11151         (create_sheets): Removed now unnecessary set_usize call.
11153 2002-05-10  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
11155         * lib/beziershape.c (remove_handles): Fixing removal of last
11156         segment.  Undo of removal still hokey.
11158 2002-05-10  Lars Clausen  <lrclause@cs.uiuc.edu>
11160         * lib/bezier_conn.c (remove_handles): Proper offset for fixing
11161         handles. 
11162         * lib/beziershape.c (beziershape_init): Removed early call to
11163         beziershape_update_data where points aren't set yet.
11164         (beziershape_add_segment): Use segment 0 instead of overflowing
11165         points array with segment+1.
11166         (beziershape_remove_segment): Proper offset for fixing
11167         connectionpoints. 
11168         (remove_handles): Proper offset.
11170 2002-05-08  Lars Clausen  <lrclause@cs.uiuc.edu>
11172         * objects/GRAFCET/action.c (action_update_data): Init x value of
11173         click point for call to connpointlist_adjust_count.
11175         * app/modify_tool.c (create_modify_tool): Init tool->auto_scrolled
11177         * app/render_pixmap.c (new_pixmap_renderer): Moved first linestyle
11178         setting to where values are inited.
11180         * lib/polyshape.c (polyshape_init): Removed call to
11181         polyshape_update_data that tried to use uninitialized data.
11183 2002-05-06  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
11185         * app/sheets_dialog.c: Mass removal of //-style comments.  The
11186         Irix compiler doesn't like them:(  I do...
11188 2002-05-06  Lars Clausen  <lrclause@cs.uiuc.edu>
11190         * app/render_libart.c (draw_string): Bail out when no GDK font is
11191         found.
11192         (set_font): Give error when font not found.
11193         (set_fillstyle): Intlized error msg.
11195         * app/pagesetup.c (pagesetup_ok, pagesetup_apply): Sets diagram
11196         modified when applied (and ok only does apply if apply is set
11197         sensitive).  Fixes bug #75623.
11199 2002-05-06  Pablo Saratxaga  <pablo@mandrakesoft.com>
11201         * configure.in: Added Vietnamese (vi) to ALL_LINGUAS
11203 2002-05-05  Steffen Macke <sdteffen@web.de>
11205         * app/Makefile.am: added $(UNICODE_CFLAGS)
11206         
11207 2002-05-02  Lars Clausen  <lrclause@cs.uiuc.edu>
11209         * app/commands.c (help_manual_callback): Check return value of
11210         opendir.
11212         * plug-ins/xfig/Makefile.am (INCLUDES): Added DEBUG_FLAGS
11214         * plug-ins/xfig/xfig-import.c: Fixed misspelled Poly_L_ine, added
11215         checks for errors.
11217 2002-04-30  Lars Clausen  <lrclause@cs.uiuc.edu>
11219         * app/render_gdk.c (draw_string): Extra free killed.  Thanks valgrind!
11221         * objects/UML/uml.c (uml_operation_read): Fix of UML default
11222         inheritance. 
11224 2002-04-30  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
11226         * app/filedlg.c (file_save_as_callback, file_save_as_ok_callback):
11227         Added button to toggle diagram compression.
11229 2002-04-29  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
11231         * lib/font.c: Support for loading extra kerning files, plus got
11232         rid of rounding errors.  Bounding box mostly perfect for freetype
11233         fonts.
11234         (font_string_width): Fudge factor to get around nonlinearity of
11235         font scaling.
11237 2002-04-29  Lars Clausen  <lrclause@cs.uiuc.edu>
11239         * lib/font.c (font_string_width): YA font calculation scheme, with
11240         comments.
11242         * objects/UML/class.c (umlclass_calculate_data): Uses the same
11243         font for drawing and calculating now.
11245         * configure.in: Added utime.h check.
11247         * app/render_gdk.c (draw_string): Uses gdk_draw_text_wc when in
11248         GTK_DOESNT_TALK_UTF8_WE_DO.  Thus it matches the string width calc.
11250 2002-04-26  Hans Breuer  <hans@breuer.org>
11252         [ Instead of fixing about 70 occurances in 20 files
11253           where GTK_TALKS_UTF8_WE_DONT needed to be handled
11254           Dia on win32 from now on uses glib-2.0 and not 
11255           only talks utf-8 with gtk-1.3 but also internally.
11256           GTK_TALKS_UTF8_WE_DONT isn't supported/needed
11257           anymore. ]
11259         * config.h.win32 : #define UNICODE_WORK_IN_PROGRESS
11260         #undef GTK_TALKS_UTF8_WE_DONT
11262         * */makefile.msc : changes to use glib-2.0 (still
11263         using gtk+1.3(win32-production)
11265         * app/disp_callbacks.c : remove GTK_TALKS_UTF8_WE_DONT,
11266         adapt kevent->string handling, add <string.h>
11267         * app/render_gdk.c (get_text_width) : the length given
11268         is in chars, gdk_text_width() needs bytes
11270         * app/render_libart.c : 
11271         * app/render_pixmap.c : remove GTK_TALKS_UTF8_WE_DONT
11272         (could simplify the same way as done in render_gdk.c)
11274         * app/diagram_tree.c app/paginate_gdiprint.cpp
11275           app/sheets.c :
11276         * lib/prop_basic.c lib/prop_geomtypes.c 
11277           lib/propdialgs.c lib/propobject.c :
11278         added <string.h> which is now removed from charconv.h
11280         * lib/charconv.h : optional use infrastructure from
11281         glib-2.0 -> only five direct function mapping left
11283         * lib/charconv.c : avoid to build this with glib-2.0
11285         * lib/font.c : no string conversion needed anymore      
11286         when Dia and Gtk talk utf-8, also code adaptions
11287         for GLIB_CHECK_VERSION(2,0,0)
11289         * lib/libdia.def : removed charconv functions
11291         * lib/prop_inttypes.c : removed GTK_TALKS_UTF8_WE_DONT,
11292         replace charconv_unichar_to_utf8() with g_unichar_to_utf8()
11294         * lib/prop_text.c lib/prop_widgets.c lib/font.c : 
11295         removed GTK_TALKS_UTF8_WE_DONT
11297         * lib/text.c : finally(?) fixed cursor <place|move>ment 
11298         for Umlauts. Also fixed char insertion, still wondering
11299         how this could ever work. Does realloc on Linux 
11300         initialize the memory with zeros ?
11302         * objects/chronogram/chronoline_event.c
11303           objects/grafcet/boolequation.c :
11304         there is no uni_get_utf8 when building for glib-2.0.
11305         Replace with g_utf8_get_char() and g_utf8_next_char().
11307         * objects/uml/stereotype.c (bracketted_to_string) : 
11308         simplify while adding code for glib-2.0 build
11310 2002-04-27  Lars Clausen  <lrclause@cs.uiuc.edu>
11312         * app/diagram.h: Autosave field
11313         * app/diagram.c (diagram_set_modified): Sets autosave field.
11314         
11315         * objects/UML/usecase.c (usecase_update_data): 
11316         * objects/flowchart/ellipse.c (ellipse_update_data): 
11317         * objects/flowchart/parallelogram.c (pgram_update_data): 
11318         * objects/flowchart/diamond.c (diamond_update_data): 
11319         * objects/custom/custom_object.c (custom_update_data): 
11320         * objects/UML/state.c (state_update_data): 
11321         * objects/UML/small_package.c (smallpackage_update_data): 
11322         * objects/UML/object.c (objet_update_data): 
11323         * objects/UML/note.c (note_update_data): 
11324         * objects/UML/node.c (node_update_data): 
11325         * objects/UML/component.c (component_update_data): 
11326         * objects/UML/classicon.c (classicon_update_data): 
11327         * objects/UML/actor.c (actor_update_data): 
11328         * objects/SADT/box.c (sadtbox_update_data): 
11329         * objects/FS/function.c (function_update_data): 
11330         All now update text boundaries from update_data.
11331         
11332         * lib/widgets.c (dia_font_selector_set_styles): Made the style set
11333         correctly. 
11335 2002-04-26  Hans Breuer  <hans@breuer.org>
11337         * config.h.win32 : added VERSION definition here
11338         (and removed from makefile.msc's)
11340         * app/makefile.msc : added new files
11342         * app/app_procs.c (app_init): remove sheets_dialog_create()
11343         from start-up and ... 
11345         * app/sheet.c (sheets_dialog_show_callback) : ... lazy create
11346         sheet_dialog here when it is really needed.
11347         #include "../lib/message.h", make sheets_dialog_create() 
11348         return it's success or failing on (!custom_type_symbol). 
11349         Although editing shapes is nice IMHO it isn't crucial enough 
11350         to abort() Dia if       it isn't possible.
11352         * app/sheet.h : adapt create_sheet_dialog() prototype
11354         * app/sheets_dialog.c : add #ifdef HAVE_UNISTD_H
11356         * app/sheets_dialog_callbacks.c : #ifdef HAVE_UNISTD_H and
11357         #ifdef HAVE_UTIME_H. Otherwise #include <sys/utime.h> and
11358         name space corrections for utime() and utim_buf #ifdef
11359         G_OS_WIN32
11361         * lib/libdia.def : export new sheet functions
11363         * lib/makefile.msc : added new files
11365         * lib/render.c : don't put draw_bezier_with_arrows() in
11366         the DrawLineWithArrowsFunc slot
11368         * objects/custom/custom_object.c : #include <gmodule.h>
11369         and export 'custom_type' via G_MODULE_EXPORT
11371         * objects/uml/class_dialog.c : removed 'incompatible 
11372         types' warnings. Some refactoring while making it fit
11373         on screen with 800x600 again.
11375         * plug-ins/python/pydia-cpoint.h : add PyDiaConnectionPoint_Check
11377         * plug-ins/python/pydia-handle.h : extra parameter to
11378         PyDiaHandle_New to store the owner of the handle
11379         * plug-ins/python/pydia-handle.c : store handle owner
11380         on construction and use it in new method .connect()
11381         * plug-ins/python/pydia-object.c plug-ins/python/pydia-diagram.c : 
11382         adapt to changed prototype
11384 2002-04-24  Lars Clausen  <lrclause@cs.uiuc.edu>
11386         * lib/text.c (text_calc_boundingbox): Will now return early if box
11387         passed is NULL.
11389         * objects/flowchart/box.c (box_update_data): Now updates text
11390         width info from update_data.
11392 2002-04-23  Steffen Macke <sdteffen@web.de>
11394         * plug-ins/xfig/xfig-import.c: fixed text import
11395         
11396 2002-04-22  Lars Clausen  <lrclause@cs.uiuc.edu>
11398         * app/export_png.c: Moved dialog functions to their own file.
11399         * app/dialogs.[ch]: New files with standard functions for creating
11400         small, transient dialogs (e.g. export options).
11401         * app/Makefile.am: Added dialogs.[ch]
11403 2002-04-19  Steffen Macke <sdteffen@web.de>
11405         * shapes/Misc/folder.*:
11406         * shapes/Misc/file.*:
11407         * shapes/Misc/Makefile.am:
11408         * shapes/Makefile.am:
11409         * sheets/Misc.sheet.in:
11410         * sheets/Makefile.am:
11411         * configure.in: added new Misc sheet containing filesystem shapes
11412         
11413 2002-04-18  Lars Clausen  <lrclause@cs.uiuc.edu>
11415         * app/lineprops_area.c: Arrow selector in toolbox changed to use
11416         standard arrowdraw code.  Line is thinner to make some arrowheads
11417         distinguishable. 
11419 2002-04-18  Steffen Macke <sdteffen@web.de>
11421         * sheets/network.sheet.in:
11422         * shapes/network/telephone.shape:
11423         * shapes/network/Makefile.am: added telephone shape
11424         
11425 2002-04-16  Steffen Macke <sdteffen@web.de>
11427         * sheets/EML.sheet.in: commented out unavailable shapes
11428         
11429 2002-04-15  M.C. Nelson <mcn@kobayashimaru.org>
11431         * app/sheets_dialog_callbacks.c:  Fixed segfault caused by mis-ordered
11432           variable assignment.
11433         
11434 2002-04-15  Steffen Macke <sdteffen@web.de>
11436         * plug-ins/dxf/dxf-import.c: text import works again
11437         * shapes/Pneumatic/Makefile.am: added compush shape
11438         * sheets/Pneumatic.sheet.in: commented out unavailable shapes dist33
11439         and dist53
11440         
11441 2002-04-11  M.C. Nelson <mcn@kobayashimaru.org>
11443         * All these modifications are for the 'Sheets and Objects' dialog
11444           (new feature):
11446         * app/pixmaps/line_break.xpm: new icon representing a line break.
11447         
11448         * app/pixmaps/n_a.xpm: new empty icon representing not available.
11450         * app/Makefile.am: added sheets_*.[ch] files to compile list.
11451         
11452         * app/menus.c: added GNOME and gtk menu items for 'Sheets and Objects'
11453         
11454         * app/sheets_dialog.c: [new file] definition of 'Sheets & Objects' dlgs
11456         * app/sheets_dialog.h: [new file] support for Sheets & Objects dlgs 
11457         
11458         * app/app_procs.c: added call to sheets_dialog_create() in app_init()
11459         
11460         * app/sheets_dialog_callbacks.c: [new file] callbacks for S & O dialogs
11462         * app/sheets_dialog_callbacks.h: [new file] support for " " "
11464         * app/interface.c: added 'interface_current_sheet_name' global to 
11465           fill_sheet_wbox(); made fill_sheet_menu() non-static
11467         * app/interface.h: added extern declaration for aboves.
11469         * app/sheets.c: [new file] instantiation and other funcs for S & O dlgs
11471         * app/sheets.h: [new file] declarations for backing store structures
11473         * lib/sheet.c: modification of new_sheet() parameters; introduction
11474           of USER and SYSTEM scope for sheets; procedure for sorting sheets;
11475           changes to load_register_sheet().
11477         * lib/sheet.h: added 'user_data_type' field to SheetObject structure;
11478           added 'has_icon_on_sheet' flag to SheetObject structure; added 
11479           'filename', 'scope', 'shadowing' fields to Sheet structure.
11481         * lib/plug-ins.c: moved _PluginInfo declaration to header file where
11482           it belongs.
11484         * lib/plug-isn.h: see above.
11486         * lib/object.c: added 'sheet.h' to include list; added several 
11487           functions
11488           to detect objects which are not found on any sheet (for future use)
11489           object_type_detect_nosheet_callback(), object_types_detect_nosheet(),
11490           object_type_get_sheet_name(), object_type_strip_sheet_from_name().
11492         * lib/object.h: added public declarations for above functions where
11493           necessary.
11495         * objects/custom/custom.c: made custom_object_load() non-static so we
11496           can load and interpret .shape files from the Sheets & Objects dialog
11498         * objects/custom/custom_object.c: made 'custom_type' non-static so 
11499           we can differentiate between SVG shapes and other types.a
11501 2002-04-07  Hans Breuer  <hans@breuer.org>
11503         * app/object_ops.c (object_list_align_v): Fix the 'Leak fix'
11504         from 2002-01-22 to not destroy diagram->data->selected. 
11505         Avoids to crash on Objects/Align/Vertical/Top
11507         * app/render_eps.c (draw_string) : un-const buffer
11508         It isn't at all const (g_malloc(), assignment, g_free()).
11509         Doesn't gcc catch such ?
11511         * lib/arrows.h : prototype calculate_arrow_point()
11513         * lib/font.c (font_get_suckfont) : no need to
11514         special case gdk_draw_string() with GTK_TALKS_UTF8,
11515         cause all the parameter differences are handled above
11517         * lib/libdia.def : updated externals
11519         * lib/makefile.msc : removed string_prerenderer, added render
11521         * lib/render.c (draw_rect) : don't pass a Point** if a Point*
11522         is expected. [Sometimes it's good to read compiler warnings.]
11524         * objects/standard/image.c : simplified by use of g_strconcat()
11526         * plug-ins/python/makefile.msc : updated for Python 2.2
11528 2002-04-03  Lars Clausen  <lrclause@cs.uiuc.edu>
11530         * objects/standard/zigzagline.c (zigzagline_draw): Fixed
11531         directionality problem for zero-length line segments.
11533 2002-03-28  Lars Clausen  <lrclause@cs.uiuc.edu>
11535         * app/diagram.c (diagram_ungroup_selected) 
11536         (diagram_update_menu_sensitivity): Now allows ungrouping of
11537         several groups at once.
11539 2002-03-15  Lars Clausen  <lrclause@cs.uiuc.edu>
11541         * lib/render.c, all renderers: Binary incompatibility, change to
11542         expandable renderops structure.
11544 2002-03-15  Steffen Macke <sdteffen@yahoo.com>
11546         * objects/standard/Makefile.am:
11547         * objects/network/Makefile.am:
11548         * objects/UML/Makefile.am:
11549         * objects/ER/Makefile.am:
11550         * objects/FS/Makefile.am:
11551         * objects/flowchart/Makefile.am:
11552         * objects/custom/Makefile.am:
11553         * objects/GRAFCET/Makefile.am:
11554         * objects/chronogram/Makefile.am:
11555         * objects/SADT/Makefile.am:
11556         * plug-ins/cgm/Makefile.am:
11557         * plug-ins/pstricks/Makefile.am:
11558         * plug-ins/hpgl/Makefile.am:
11559         * plug-ins/wpg/Makefile.am:
11560         * plug-ins/svg/Makefile.am:
11561         * plug-ins/shape/Makefile.am: added $(UNICODE_CFLAGS)
11562         
11563 2002-03-13  Lars Clausen  <lrclause@cs.uiuc.edu>
11565         * app/render_eps.c: Support for dumping TrueType fonts (taken from
11566         ttfps).
11568 2002-03-12  Lars Clausen  <lrclause@cs.uiuc.edu>
11570         * lib/render.c: New abstract super class for renderers.
11572 2002-03-07  Akira TAGOH  <tagoh@redhat.com>
11574         * objects/ER/attribute.c (attribute_save): save a font property.
11575         (attribute_load): load a font property, and if can't load it, it's
11576         initialized.
11578         * objects/ER/entity.c (entity_save): save a font property.
11579         (entity_load): load a font property, and if can't load it, it's
11580         initialized.
11582         * objects/ER/relationship.c (relationship_save): save a font property.
11583         (relationship_load): load a font property, and if can't load it, it's
11584         initialized.
11586         * objects/UML/class.c (fill_in_fontdata): don't replace if it already
11587         has a vaule.
11588         (umlclass_save): save the font and the font size properties.
11589         (umlclass_load): load the font and the font size properties.
11591 2002-03-05  Cyrille Chepelov  <cyrille@chepelov.org>
11593         * lib/string_prerenderer.[ch] (REMOVED):
11594         * lib/render.h:
11595         * lib/diagramdata.c:
11596         * lib/Makefile.am:
11597         * app/render_eps.c: got rid of the string-specific string
11598         prerenderer, transitioned its functionality towards Lars'
11599         two-phase rendering
11601 2002-03-05  Lars Clausen  <lrclause@cs.uiuc.edu>
11603         * configure.in: Using Freetypes own check for ver >= 1.0.5.  You
11604         may need to rerun aclocal.
11606 2002-03-04  Lars Clausen  <lrclause@cs.uiuc.edu>
11608         * lib/font.c: First attempt at Unicodeness for Freetype.
11610 2002-03-02  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
11612         * lib/font.c (font_string_width): Fixed font_string_width for
11613         freetype.  BB is now almost right.
11615 2002-03-01  Lars Clausen  <lrclause@cs.uiuc.edu>
11617         * app/render_eps.h: 
11618         * app/paginate_psprint.c (paginate_psprint): 
11619         * lib/font.c: 
11620         * app/render_eps.c: Support for dumping postscript fonts into
11621         postscript files with freetype.  Fairly primitive, but works.
11622         Unicode version may have problems.
11624 2002-02-28  Akira TAGOH  <tagoh@redhat.com>
11626         * objects/UML/class_dialog.c (class_read_from_dialog)
11627         (class_fill_in_dialog), (class_create_page): add the font selector and
11628         the font size selector.
11630         * objects/UML/class.c (umlclass_draw): uses each font_height.
11631         (umlclass_calculate_data): ditto.
11632         (fill_in_fontdata): add initial value of new font_height.
11633         (umlclass_copy): add new font_height.
11635 2002-02-27  Cyrille Chepelov  <chepelov@calixo.net>
11637         Patch from Geoff Gerrietts <ggerrietts@yahoo.com>:
11638         
11639         * lib/font.c: calculate font metrics properly and stop guessing at
11640         string widths.
11642 2002-02-28  Akira TAGOH  <tagoh@redhat.com>
11644         * configure.in: changed gtk_advancement value to dia_talks_utf8.
11645         right now Dia is working with UTF-8 internally. it means Dia probably
11646         support most languages also including the languages which heretofore
11647         didn't work correctly.
11649 2002-02-26  Akira TAGOH  <tagoh@redhat.com>
11651         * objects/FS/function.c: add related text properties.
11652         (function_get_props), (function_set_props): add handling attribute.
11654         * objects/FS/flow.c: add related text properties.
11655         (flow_get_props), (flow_set_props): add handling attribute.
11657         * objects/FS/flow-ortho.c: add related text properties.
11658         (orthflow_set_props), (orthflow_get_props): add handling attribute.
11660         * objects/ER/relationship.c: add PROP_STD_TEXT_FONT to property.
11662         * objects/ER/entity.c: ditto.
11664         * objects/ER/attribute.c: ditto.
11666 2002-02-26  Cyrille Chepelov  <cyrille@chepelov.org>
11668         Patch contributed by Geoff Gerrietts <ggerrietts@yahoo.com>:
11669         
11670         * autogen.sh: add a check for missing intltoolize.
11672 2002-02-20  Akira TAGOH  <tagoh@redhat.com>
11674         * lib/ps-utf8.c (unicode_to_ps_name): if this function calls with same
11675         charcode, it was registered the duplicate item to HashTable. fix.
11677         * app/render_gnomeprint.c (get_width_string): add new function.
11678         (draw_string): fix non-multibyte specific code.
11680 2002-02-19  Cyrille Chepelov  <cyrille@chepelov.org>
11682         Patch contributed by Matthieu Sozeau <mattam@netcourrier.com>:
11683         
11684         * lib/font.c: do not try to search paths that do not begin with
11685         '/', like X Font Server addresses.
11686         
11687         * objects/UML/message.c (message_draw): free mname when not 
11688         message->text but CREATE or DESTROY.
11689         
11690         * objects/UML/uml.h:
11691         * objects/UML/uml.c:
11692         * objects/UML/class_dialog.c: added code to handle a stereotype 
11693         attribute for operations.
11695 2002-02-19  Akira TAGOH  <tagoh@redhat.com>
11697         * lib/Makefile.am: add LIBART_CFLAGS.
11699 2002-02-15  Hans Breuer  <hans@breuer.org>
11701         * lib/font.c (font_get_suck_font): the black and white pixel values 
11702         need to be taken from a 1 bit colormap rather than the default colormap.
11703         (fixed again, last time was 2000-05-26)
11705         Also handle the case where GTK_TALKS_UTF8 and expects all strings
11706         passed in to be in this encoding.
11708         * lib/libdia.def : export suck_font_free()
11710         * lib/text.c (text_draw) : avoid circular dependency to ../app
11711         at least for the !USE_XIM case, where it is unnecessary.
11713 2002-02-15  Cyrille Chepelov  <cyrille@chepelov.org>
11715         Changes contributed by Matts Kivik <kivik@firstlinux.net>:
11716         
11717         * shapes/Circuit/microphone_de.(shape|xpm) (NEW):
11718         * sheets/Circuit.sheet.in: added new shape microphone
11719         * shapes/Circuit/speaker_de.shape: Added a connection point.
11720         
11721 2002-02-13  Akira TAGOH  <tagoh@redhat.com>
11723         * app/render_libart.c (draw_string): fixed build issue for Win32.
11725         * lib/font.c (font_get_suckfont): fixed typo. it could't build under
11726         Win32.
11728         * configure.in: fixed testing gtk_advancement.
11730         * app/render_gnomeprint.c (draw_string): uses utfchar instead of char.
11732 2002-02-12  Akira TAGOH  <tagoh@redhat.com>
11734         * lib/text.c (text_draw): fixed XIM position, when menubar is shown for
11735         diagram window.
11737 2002-02-11  Lars Clausen  <lrclause@cs.uiuc.edu>
11739         * app/group.c (group_copy): Made new object properly initialized
11740         before copy.
11742 2002-02-11  Steffen Macke <sdteffen@yahoo.com>
11744         * app/Makefile.am: added plug-ins to DIA_LIB_PATH in run_dia.sh
11745         
11746 2002-02-10  Akira TAGOH  <tagoh@redhat.com>
11748         * lib/text.c (text_draw): fixed XIM transaction.
11750         * app/interface.c (create_display_shell): add signal for
11751         size_allocate.
11753         * app/disp_callbacks.c (ddisplay_size_allocate): add new function for
11754         XIM transaction.
11755         (set_input_dialog): remove.
11756         (ddisplay_canvas_events): remove XIM transaction. it can't transact
11757         correctly on this function.
11759 2002-02-10  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
11761         * app/app_procs.c:
11762         * app/export_png.c: Added checks for interactivity (maybe this
11763         should be a hook after all?).
11765         * app/filedlg.c (file_export_callback): Made export dialog add
11766         suffix when reopened.
11768         * app/export_png.c: Added dialog asking for export size.
11770 2002-02-09  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
11772         * lib/widgets.c: Fixed font reselection problem and first font
11773         bogus warning.
11775         * objects/UML/actor.c (actor_update_data): Changed to have
11776         connection points below text.
11778 2002-02-08  Akira TAGOH  <tagoh@redhat.com>
11780         * lib/text.c (text_split_line): use g_strndup() instead of g_malloc()
11781         and memcpy().
11783 2002-02-07  Akira TAGOH  <tagoh@redhat.com>
11785         * lib/font.c (font_get_suckfont): rewrited. generating suckfont from
11786         strings which is given.
11787         (suck_font): remove. it's any longer needed.
11789         * app/render_libart.c (set_font): don't get suckfont.
11790         (draw_string): get suckfont only which is needed for now.
11792 2002-02-05  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
11794         * lib/text.c: Fixes for misunderstood width functions.
11796 2002-02-05  Hans Breuer  <hans@breuer.org>
11798         * lib/dia_xml.c : use g_strconcat() instead of 
11799         malloc, strcpy, strcat dance
11800         * app/properties.c : same here and plug memory leak
11801         (gtk functions don't eat strings)
11803         * objects/UML/message.c : there is no g_sprintf()
11804         use g_strdup_printf() instead ...
11806 2002-02-05  Akira TAGOH  <tagoh@redhat.com>
11808         * lib/message.c (gtk_message_internal): doesn't need to convert to
11809         UTF-8.
11811         * app/render_libart.c (draw_string): fixed transaction for UTF-8
11812         support.
11813         (get_text_width): ditto.
11815         * app/Makefile.am (EXTRA_DIST):
11816         s/paginate_gdiprint.c/paginate_gdiprint.cpp/
11818         * app/render_gdk.c (gdk_freetype_copy_glyph): fixed build issue.
11819         This function needs ifdef HAVE_FREETYPE because don't use it for
11820         --disable-freetype
11822 2002-02-04  Cyrille Chepelov  <cyrille@chepelov.org>
11824         * NEWS: updated with the new dependencies.
11825         
11826         Patch from Matthieu Sozeau <mattam@netcourrier.com>:
11828         * objects/UML/class.h:
11829         * objects/UML/class.c:  
11830         * objects/UML/class_dialog.c: added code to handle the UMLParameterKind
11831         property using a GtkMenu. Options are Undefined, In, Out, In & Out
11833 2002-02-04  Lars Clausen  <lrclause@cs.uiuc.edu>
11835         * app/render_libart.c: Slow but working libart freetype renderer,
11836         with color!
11838 2002-02-03  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
11840         * app/render_gdk.c (draw_string): Fixed gc_function bug.
11842         * lib/widgets.c (dia_font_selector_init): Sorts the font list.
11844         * lib/font.c (freetype_render_string): 
11845         * lib/font.h:
11846         * app/render_gdk.c:
11847         * app/render_gdk.h: Changed freetype_render_string to use
11848         callback.  Rendering is broken.
11850 2002-02-03  Cyrille Chepelov  <cyrille@chepelov.org>
11852         Patch from Matthieu Sozeau <mattam@netcourrier.com>:
11854         * objects/UML/uml.h:    
11855         * objects/UML/uml.c: added UMLInheritanceType and isQuery
11856         (constant) UML Operation attributes. UMLInheritanceType is either
11857         UML_ABSTRACT or UML_POLYMORPHIC  or UML_LEAF.
11859         * objects/UML/class.h:
11860         * objects/UML/class.c:  
11861         * objetcs/UML/class_dialog.c: added code to handle new
11862         UMLOperation attributes via a GtkMenu and a checkbox.
11864 2002-02-03  Akira TAGOH  <tagoh@redhat.com>
11866         * app/disp_callbacks.c (ddisplay_realize): fixed XIM issue.
11867         several client doesn't work with previous codes.
11869 2002-02-01  Lars Clausen  <lrclause@cs.uiuc.edu>
11871         * lib/font.c (freetype_render_string): Kerning.  Very few fonts
11872         seem to use it.
11874 2002-02-02  Akira TAGOH  <tagoh@redhat.com>
11876         * app/disp_callbacks.c (ddisplay_canvas_events): fixed crashes,
11877         when doing the operation like invert the objects after active view is
11878         destroyed. when changes focus, it needs to set active_display.
11880         * app/layer_dialog.c (dia_layer_update_from_layer):
11881         (layer_dialog_edit_layer): need to convert to locale encoding
11882         if GTK_DOESNT_TALK_UTF8_WE_DO is defined.
11883         (edit_layer_ok_callback):
11884         need to convert to UTF8 if GTK_DOESNT_TALK_UTF8_WE_DO is defined.
11886         * lib/diagramdata.c (new_diagram_data): ditto.
11888         * app/layer_dialog.c (layer_dialog_new_callback): ditto.
11890         * lib/diagramdata.c (new_layer): use utfchar instead of char for
11891         argument.
11893         * lib/widgets.c: if HAVE_FREETYPE isn't defined, it can't build. fixed.
11894         (dia_font_selector_set_styles): when HAVE_FREETYPE is defined only,
11895         it's needed for now. also this function needs prototype declaration.
11897 2002-01-31  Lars Clausen  <lrclause@cs.uiuc.edu>
11899         * lib/widgets.c: Style now functional on font selector.  Some leak
11900         possible, but doesn't show up under stress test.
11902 2002-01-31  Akira TAGOH  <tagoh@redhat.com>
11904         * app/plugin-manager.c (clist_select_row): name and description needs to
11905         convert to locale encoding, when GTK_DOESNT_TALK_UTF8_WE_DO is defined.
11906         (get_plugin_manager): ditto.
11908         * lib/plug-ins.c (dia_plugin_info_init): name needs to convert to UTF-8.
11910         * app/diagram_tree.c (get_object_name): fixed transaction for UTF-8
11911         support.
11913         * lib/prop_text.c (stringprop_reset_widget): fixed crashes,
11914         when prop->string_data is NULL.
11916 2002-01-30  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
11918         * lib/widgets.c: 
11919         * lib/widgets.h: New font selector separating font and style.
11920         Style not functional yet.
11922 2002-01-30  Lars Clausen  <lrclause@cs.uiuc.edu>
11924         * lib/text.c: 
11925         * app/render_gdk.c (draw_string): More freetype support, now
11926         renders text.  Still broken is font selection and exporting.
11928 2002-01-30  Akira TAGOH  <tagoh@redhat.com>
11930         * objects/chronogram/chronoref.c (chronoref_create): missing gettextize
11931         for font.
11933         * objects/chronogram/chronoline.c (chronoline_create): ditto.
11935         * objects/UML/usecase.c (usecase_create): ditto.
11937         * objects/UML/state.c (state_create): ditto.
11939         * objects/UML/object.c (objet_create): ditto.
11941         * objects/UML/node.c (node_create): ditto.
11943         * objects/UML/message.c (message_create): ditto.
11945         * objects/UML/component.c (component_create): ditto.
11947         * objects/UML/classicon.c (classicon_create): ditto.
11949         * objects/UML/actor.c (actor_create): ditto.
11951         * objects/SADT/box.c (sadtbox_create): ditto.
11953         * objects/SADT/annotation.c (annotation_create): ditto.
11955         * objects/GRAFCET/transition.c (TRANSITION_FONT): ditto.
11957         * objects/GRAFCET/step.c (STEP_FONT):
11958         * (step_create): ditto.
11960         * objects/GRAFCET/condition.c (CONDITION_FONT): ditto.
11962         * objects/GRAFCET/action.c (ACTION_FONT):
11963         (action_create): ditto.
11965         * objects/FS/function.c (function_create): ditto.
11967         * objects/FS/flow.c (flow_create):
11968         (flow_load): 
11969         (flow_apply_defaults): ditto.
11971         * objects/FS/flow-poly.c (flow_create):
11972         (flow_load):
11973         (flow_apply_defaults): ditto.
11975         * objects/FS/flow-ortho.c (orthflow_create):
11976         (orthflow_load):
11977         (orthflow_apply_defaults): ditto.
11979         * objects/ER/relationship.c: use utfchar instead of char for structure.
11980         (relationship_create): name needs to convert to UTF-8.
11982         * objects/ER/attribute.c: use utfchar instead of char for structure.
11983         (attribute_create): name needs to convert to UTF-8.
11985         * objects/ER/entity.c: use utfchar instead of char for structure.
11986         (entity_create): name needs to convert to UTF-8.
11988         * app/interface.c (fill_sheet_wbox): needs to convert UTF-8 to locale
11989         encoding for tooltips, if GTK_TALKS_UTF8 isn't defined.
11990         (fill_sheet_menu): needs to convert UTF-8 to locale encoding for menu
11991         items. if GTK_TALKS_UTF8 isn't defined.
11993 2002-01-29  Akira TAGOH  <tagoh@redhat.com>
11995         * objects/UML/class.c (umlclass_calculate_data): fixed malloc size.
11996         it was my careless mistake...
11998         * lib/attributes.c (attributes_set_default_font): temporarily gettextize
11999         a font name, because there are strings which isn't shown by "Courier".
12000         We need to consider a way to feel free to choose a font at runtime.
12002         * lib/render_object.c (render_object_load): ditto.
12004         * lib/text.c (data_text): ditto.
12006         * objects/EML/instantiation.c (instantiation_create): ditto.
12008         * objects/EML/interaction-ortho.c (interaction_ortho_create):
12009         (interaction_ortho_load): ditto.
12011         * objects/EML/interaction.c (interaction_create):
12012         (interaction_load): ditto.
12014         * objects/EML/process.c (fill_in_fontdata): ditto.
12016         * objects/ER/attribute.c (attribute_create): 
12017         (attribute_load): ditto.
12019         * objects/ER/entity.c (entity_create): 
12020         (entity_load): ditto.
12022         * objects/ER/relationship.c (relationship_create): 
12023         (relationship_load): ditto.
12025         * objects/UML/association.c (association_create): 
12026         (association_load): ditto.
12028         * objects/UML/class.c (fill_in_fontdata): ditto.
12030         * objects/UML/constraint.c (constraint_create): ditto.
12032         * objects/UML/dependency.c (dependency_create): ditto.
12034         * objects/UML/generalization.c (generalization_create): ditto.
12036         * objects/UML/implements.c (implements_create): ditto.
12038         * objects/UML/large_package.c (largepackage_create): ditto.
12040         * objects/UML/note.c (note_create): ditto.
12042         * objects/UML/realizes.c (realizes_create): ditto.
12044         * objects/UML/small_package.c (smallpackage_create): ditto.
12046         * objects/custom/shape_info.h (FONT_DEFAULT): ditto.
12048         * objects/custom/custom_object.c (custom_create): ditto.
12050         * objects/network/antenna.c (render_to_store): ditto.
12052         * objects/network/computer.c (render_to_store): ditto.
12054         * objects/network/disc.c (render_to_store): ditto.
12056         * objects/network/flash.c (render_to_store): ditto.
12058         * objects/network/hub.c (render_to_store): ditto.
12060         * objects/network/modem.c (render_to_store): ditto.
12062         * objects/network/modularswitch.c (render_to_store): ditto.
12064         * objects/network/monitor.c (render_to_store): ditto.
12066         * objects/network/printer.c (render_to_store): ditto.
12068         * objects/network/rj45plug.c (render_to_store): ditto.
12070         * objects/network/scead-plug.c (render_to_store): ditto.
12072         * objects/standard/textobj.c (textobj_load): ditto.
12074         * objects/sybase/client.c (render_to_store): ditto.
12076         * objects/sybase/dataserver.c (render_to_store): ditto.
12078         * objects/sybase/ltm.c (render_to_store): ditto.
12080         * objects/sybase/repserver.c (render_to_store): ditto.
12082         * objects/sybase/rsm.c (render_to_store): ditto.
12084         * objects/sybase/stableq.c (render_to_store): ditto.
12086         * plug-ins/dxf/dxf-import.c (read_entity_text_dxf): ditto.
12088         * objects/UML/uml.h (UML_STEREOTYPE_START):
12089         (UML_STEREOTYPE_END): changes default strings.
12091 2002-01-28  Akira TAGOH  <tagoh@redhat.com>
12093         * objects/UML/stereotype.c (string_to_bracketted): fixed transaction
12094         for UTF-8 support. if GTK+ and Dia don't handle UTF-8, all of characters
12095         which is given to arguments isn't UTF-8. so don't need to convert it.
12096         if GTK+ handle UTF-8, also don't need to convert it.
12097         (strend): remove.
12098         (bracketted_to_string): fixed transaction for UTF-8 support.
12099         also start/end bracket is not necessarily 1 character. so that when use
12100         strend(), it doesn't work correctly.
12101         (string_to_stereotype): use utfchar instead of char.
12102         (remove_stereotype_from_string): ditto.
12103         (stereotype_to_string): ditto.
12105         * objects/UML/stereotype.h: ditto.
12107         * objects/UML/message.c: use utfchar instead of char for structure.
12108         (MESSAGE_CREATE_LABEL, MESSAGE_DESTROY_LABEL): remove.
12110         * objects/UML/small_package.c: use utfchar instead of char for structure.
12112         * objects/UML/realizes.c: ditto.
12114         * objects/UML/object.c: ditto.
12116         * objects/UML/large_package.c: ditto.
12118         * objects/UML/implements.c: ditto.
12120         * objects/UML/generalization.c: ditto.
12122         * objects/UML/dependency.c: ditto.
12124         * objects/UML/constraint.c: ditto.
12126         * objects/UML/component.c: ditto.
12128         * objects/UML/class_dialog.c (attributes_get_current_values):
12129         (attributes_list_new_callback, attributes_fill_in_dialog):
12130         (parameters_set_values, parameters_get_values):
12131         (parameters_get_current_values, parameters_list_new_callback):
12132         (operations_set_values, operations_get_values):
12133         (operations_get_current_values, operations_list_new_callback):
12134         (operations_fill_in_dialog, templates_set_values):
12135         (templates_get_values, templates_get_current_values):
12136         (templates_list_new_callback, templates_fill_in_dialog):
12137         fixed transaction for UTF-8 support.
12139 2002-01-27  Akira TAGOH  <tagoh@redhat.com>
12141         * objects/UML/message.c (message_draw): fixed transaction for UTF-8 support.
12143         * objects/UML/class_dialog.c (class_read_from_dialog):
12144         (class_fill_in_dialog):
12145         (attributes_get_values): ditto.
12147         * objects/UML/actor.c (actor_create): ditto.
12149         * objects/UML/class.c (umlclass_calculate_data): ditto.
12151         * objects/UML/association.c (association_apply_properties):
12152         (fill_in_dialog): ditto.
12154         * objects/UML/uml.c (uml_get_attribute_string):
12155         (uml_get_operation_string):
12156         (uml_get_parameter_string):
12157         (uml_get_formalparameter_string): use utfchar instead of char.
12159         * objects/UML/uml.h: gettextize UML_STEREOTYPE_START and
12160         UML_STEREOTYPE_END.
12162         * objects/UML/class.h: use utfchar instead of char.
12164         * lib/dia_xml.c (data_add_string): ditto.
12166         * lib/text.c (text_insert_char): fixed characters# calculation
12167         when includes multibytes character in strings.
12169 2002-01-26  Steffen Macke  <sdteffen@yahoo.com>
12171         Patch from Richard Rowell <rwrowell@bellsouth.net>:
12173         * app/lineprops_area.c:
12174         * lib/arrows.h:
12175         * lib/arrows.c: 
12176         * lib/widgets.c: added crow foot arrow and cross arrow
12177         
12178         Patch from Frank Gevaerts <frank.gevaerts@fks.be>:
12179         
12180         * plug-ins/svg/render_svg.c: fixed arcs, fill and text alignment
12182 2002-01-26  Cyrille Chepelov  <cyrille@chepelov.org>
12184         * po/update.pl (REMOVED):
12185         * po/update.sh (REMOVED):
12186         * xml-i18n-merge.in.kg (REMOVED):
12187         * xml-i18n-update.in.kg (REMOVED):
12188         * sheets/Makefile.am:
12189         * Makefile.am:
12190         * autogen.sh:
12191         * configure.in: converted from xml-i18n-tools to intltools
12193         This looks like it fixes the build bugs of the snapshot tarballs, 
12194         and it supersedes #69611.       
12196 2002-01-25  Akira TAGOH  <tagoh@redhat.com>
12198         * lib/text.c (text_insert_char): fixed characters# calculation.
12199         it's not string length.
12201         * lib/plug-ins.c (dia_plugin_info_init): when GTK_DOESNT_TALK_UTF8_WE_DO
12202         is defined, needs to convert a description to UTF-8.
12204         * app/render_gdk.c (get_text_width): fixed transaction for
12205         UTF-8 support. also should uses gdk_text_width_wc() instead
12206         of gdk_text_width().
12208         * app/render_gdk.c (draw_string): when GTK_DOESNT_TALK_UTF8_WE_DO
12209         is defined, needs to convert to locale encoding for display.
12210         Also use utfchar instead of char for argument.
12212 2002-01-24  Hans Breuer  <hans@breuer.org>
12214         * app/commands.c(edit_paste_callback and more) : 
12215         call diagram_modified(ddisp->diagram) to fix #68083
12216         (help_menu_callback) : plug a DIR leak
12218         * app/disp_callbacks.c(ddisplay_canvas_events) : handle 
12219         GTK_TALKS_UTF8_WE_DONT
12221         * app/render_gdk.c(get_text_with) : it's a bad idea to use
12222         gdk_string_with() when GTK_TALKS_UTF8_WE_DONT instead of
12223         gdk_text_width(). The length value is still questionable ...
12225         * lib/charconv.c : use functions already available in early
12226         GLIB-1.3 days whiches API hasn't changed since, to avoid
12227         version problems with the win32 build
12229         * lib/font.c : finally fix #58045 and #68208
12231         * lib/dia_xml.c (xmlDiaSaveFile) : gzdopen in binary mode
12233 2002-01-24  Akira TAGOH  <tagoh@redhat.com>
12235         * app/disp_callbacks.c (ddisplay_canvas_events): when event returned
12236         no strings, fixed transaction.
12238         * lib/charconv.h: fixed typo.
12240         * app/menus.c: fixed typo.
12242         * lib/charconv.c (charconv_utf8_strchr): remove. use uni_strchr instead.
12244         * objects/UML/object.c: attrib's type uses utfchar instead of char.
12246         * app/disp_callbacks.c (ddisplay_canvas_events): forget g_free()
12248         * lib/text.c (text_create_change): use unichar instead of char.
12250         * lib/text.c (data_add_text, data_text, apply_textstr_properties):
12251         use utfchar instead of char.
12253         * lib/text.c (text_insert_char, text_key_event): fixed transaction for
12254         UTF-8 support.
12256         * lib/charconv.c (charconv_utf8_get_char): add new function.
12258 2002-01-23  Akira TAGOH  <tagoh@redhat.com>
12260         * lib/text.c (text_delete_forward, text_delete_backward,
12261         text_split_line): fixed transaction for UTF-8 support.
12263         * lib/text.c (text_copy): when UNICODE_WORK_IN_PROGRESS is defined,
12264         strlen[] has string length for UTF-8, so has to use alloclen[].
12266         * dia.pot: remove.
12268         * .cvsignore: add dia.pot.
12270 2002-01-24  Stanislav Visnovsky  <visnovsky@nenya.ms.mff.cuni.cz>
12272         * configure.in: Added "sk" to ALL_LINGUAS.
12274 2002-01-22  Akira TAGOH  <tagoh@redhat.com>
12276         * lib/text.c (text_set_string, new_text, text_copy,
12277         text_get_string_copy, text_join_lines): use utfchar instead of gchar
12278         for strings.
12280         * lib/text.c (set_string): use charconv_utf8_strchr() instead of
12281         strchr().
12283         * lib/charconv.c (charconv_utf8_strchr): add new function.
12285         * lib/charconv.c (charconv_keyval_to_unicode): ditto.
12287         * lib/charconv.c (charconv_utf8_from_gtk_event_key): ditto.
12289         * app/disp_callbacks.c (ddisplay_canvas_events): needs to convert
12290         strings to the appropriate encoding.
12292 2002-01-22  Lars Clausen  <lrclause@cs.uiuc.edu>
12294         * app/object_ops.c (object_list_align_[hv]): Leak fix.
12296         * lib/Makefile.am (INCLUDES): Added debug flags.
12298         * app/object_ops.c: Fixed ordering problem of align equi-distant &
12299         adjacent. 
12301 2002-01-21  Akira TAGOH  <tagoh@redhat.com>
12303         * lib/font.c (font_string_width): use gdk_text_width_wc() instead of
12304         gdk_string_width().
12306         * objects/GRAFCET/boolequation.c: fixed invalid comment.
12308         * objects/UML/stereotype.c (string_to_bracketted): fixed build problem
12309         when defined UNICODE_WORK_IN_PROGRESS.
12311         * lib/dia_xml.c (data_add_string): fixed typo.
12313 2002-01-20  Akira TAGOH  <tagoh@redhat.com>
12315         * configure.in: fixed test gtk_advancement.
12317 2002-01-019  Steffen Macke  <sdteffen@yahoo.com>
12319         * plug-ins/svg/render_svg.c: fix for #69053, alignment of text
12320         exported to SVG
12322         Patch from M.C. Nelson <mcn@mani.kobayashimaru.org>: 
12324         * app/recent_files.[ch]: reworked to support GNOME, accelerators,
12325         tool tips, preferences, and arbitrarily long ~/.dia/history
12327         * app/menus.c: made 'Plugins' consistantly spelled and accelerated;
12328         removed 'Open Recent'; added new separators for recent documents on
12329         File menu.
12331         * app/interface.[ch] (interface_get_toolbox_shell): new function
12333         * app/diagram.c: added new parameter to recent_file_history_add() call
12335         * app/preferences.[ch]: added new 'Recent documents list size'
12336         preferences item
12337         
12338 2002-01-18  Akira TAGOH  <tagoh@redhat.com>
12340         * lib/font.c (font_get_gdkfont_helper): use gdk_fontset_load ().
12341         if it failed, should be used gdk_font_load ().
12343         * lib/font.c (font_data): added the font entries for CJK.
12345 2002-01-17  Steffen Macke  <sdteffen@yahoo.com>
12347         Patch from M.C. Nelson <mcn@mani.kobayashimaru.org>:
12349         * app/menus.c: replaced GDK_F1 with "F1" to fix segfault on startup
12350         
12351 2002-01-04  Cyrille Chepelov  <cyrille@chepelov.org>
12353         Patch from Martin Cracauer <cracauer@cons.org>:
12354         
12355         * app/menus.c: add missing #include <gdk/gdkkeysyms.h> (useful in the
12356         non-GNOME case ?)
12358 2002-01-01  Hans Breuer  <hans@breuer.org>
12360         * app/command.c : optional use GDI printing on windoze
12362         * app/preferences.[hc] : add option 'prefer_psprint' to 
12363         select the print engine to use (could be used for Dia/Gnome
12364         as well)
12366         * app/paginate_gdiprint.(h|cpp) : new files, which interlink the
12367         wmf plug-in with the common win32 print api. Now printing
12368         should work almost as expected from a windows program :-)
12370         * app/diagram.c app/menus.[hc] : rename _UpdatableMenuItems.delete
12371         to .edit_delete to avoid clashes with C++
12373         * app/makefile.msc : updated for GDI printing
12375         * plug-ins/wmf/wmf.cpp : some small modifications to support
12376         GDI printing. Also swap R and B channel in draw_image()
12378         * app/makefile.am : added windows only files to EXTRA_DIST
12380         * objects/uml/class.c(umlclass_set_props) : force recalculation
12381         when applying properties
12383         * lib/charconv.c lib/dia_xml.c : temporary back-ported to
12384         glib-1.3.2 (for win32) IMHO causes recent cvs introduces too
12385         many incompatible changes (and would force a gtk update)
12387         * objects/makefile.msc : don't build C-Objects which are
12388         already available as 'pure shape'
12390         * plug-ins/makefile.msc : remove diaimport from build. It was
12391         only available via mailing-list and is broken since the
12392         StdProp overhaul.
12395         Patch from Jose A Ortega Ruiz  <jaortega@acm.org>
12397         * app/preferences.[hc] : tweaked preferences.c to make 
12398         PREF_STRING work. Use it for 'diagram_tree_hidden'. Also
12399         added some more DiagramTree prefererences and their own
12400         notebook page.
12402         * app/diagram_tree.[hc] : allow to sort by object type or name
12403         and hide by type ...
12404         * app/diagram_tree_menu.[hc] : ... add respective menu entries ...
12405         * app/diagram_tree_menu_callbacks.[hc] : ... and callbacks.
12407         * app/diagram_tree_window.c : handle hidden types and window
12408         size restoring.
12410 2001-12-20  Hans Breuer  <hans@breuer.org>
12412         * plug-ins/python/Makefile.am : patch from Peter Moulder 
12413         <pmoulder@csse.monash.edu.au> to make the python plug-in
12414         compile on *nix too.
12416 2001-12-03  Cyrille Chepelov  <chepelov@calixo.net>
12418         Patch from Alan <horkana@tcd.ie>:
12420         * app/menus.c: bind the F1 shortcut to the Help/_Manual function.
12422 2001-11-20  Hans Breuer  <hans@breuer.org>
12424         * app/makefile.msc : add new diagram_tree_menu(_callbacks).obj
12426 2001-11-18  Jose A Ortega Ruiz  <jaortega@acm.org>
12428         * app/diagram_tree.[hc] : Added new functions and types for
12429         sorting diagram and objects, and attaching the popup menus.
12431         * app/preferences.h: Added more diagram tree preferences, using a
12432         DiagramTreeConfig struct in DiaPreferences. The new prefs are the
12433         height and width of the diagram tree window and the default sort
12434         orders for diagrams and objects.
12436         * app/preferences.c (prefs_data): Added new entries for the new
12437         diagram tree preferences.
12439         * app/preferences.c (prefs_tabs): New tab for diagram tree
12440         preferences.
12442         * app/diagram_tree_window.[hc] (create_diagram_tree_window): 
12443         * app/diagram_tree_window.c (diagram_tree_window_new): 
12444         * app/interface.c (create_tree_window): The diagram tree window is
12445         initialised using the DiagramTreeConfig part of prefs.
12448 2001-11-14  Jose A Ortega Ruiz  <jaortega@acm.org>
12450         * app/diagram_tree_menu.[hc]: New files. Functions to create the
12451         diagram tree popup menus.
12453         * app/diagram_tree_menu_callbacks.[hc]: New files. Callbacks for
12454         the diagram tree popup menus.
12456         * app/Makefile.am (dia_core_files): diagram_tree_menu* files
12457         added.
12459 2001-11-13  Jose A Ortega Ruiz  <jaortega@acm.org>
12461         * app/diagram_tree.c (double_click_callback, diagram_tree_new):
12462         double-clicking a diagram tree node raises the diagram window
12463         to the foreground (and, if a object node was clicked, selects the
12464         object in the diagram).
12466         * app/diagram_tree.c (select_tree_widget): selecting an object
12467         node with single click simply updates it (no raise).
12469 2001-11-08  Jose A Ortega Ruiz  <jaortega@acm.org>
12470         These changes make the diagram tree lazy: it is not created unless
12471         the diagram tree window is requested.
12472         
12473         * app/diagram_tree_window.[hc] (create_diagram_tree_window): new
12474         function for creating the tree window.
12476         * app/interface.c (create_tree_window): call
12477         create_diagram_tree_window() instead of diagram_window().
12479         * app/diagram_tree.c (diagram_tree_add, diagram_tree_remove) 
12480         (diagram_tree_update, diagram_tree_update_name) 
12481         (diagram_tree_add_object, diagram_tree_add_objects) 
12482         (diagram_tree_remove_object, diagram_tree_remove_objects) 
12483         (diagram_tree_update_object): accept a NULL tree as a nominal
12484         argument (and do nothing in this case!), so that the diagram tree
12485         is not initialised if not used.
12487         * app/diagram_tree_window.c (diagram_tree): do not create the
12488         diagram tree until diagram_window() or diagtree_show_callback()
12489         are invoked.
12491 2001-10-31  Jose A Ortega Ruiz  <jaortega@acm.org>
12492         [slightly modified and applied from Hans Breuer <hans@breuer.org>]
12494         * app/diagram_tree_window.[hc] : (new files) implementation of 
12495         the diagram tree window, a container for a diagram tree. [Removed
12496         the horizontal scroll bar glitch by disableing it]
12498         * app/diagram_tree.[hc] : (new files) implementation of the 
12499         diagram tree widget. [Don't rely on the layers GPtrArray to be
12500         NULL terminated, but use its ->len field] 
12502         * app/Makefile.am (dia_core_files): added new files
12503         diagram_tree.[hc] and diagram_tree_window.[hc]
12505         * app/interface.[hc] : (create_tree_window): this function 
12506         creates the new diagram tree window widget
12508         * app/undo.c (delete_objects_apply) (delete_objects_revert) 
12509         (insert_objects_apply) (insert_objects_revert) (group_objects_apply) 
12510         (ungroup_objects_apply) (ungroup_objects_revert): 
12511         every time that an undoable command modifies a diagram 
12512         adding/removing/(un)grouping objects, a diagram_tree_something() is 
12513         invoked to keep the diagram tree window in sync
12515         * app/properties.c (properties_apply): call to
12516         diagram_object_modified(), which updates the diagram tree window
12517         when the properties of an object are modified
12519         * app/preferences.[hc] : new "show_diagram_tree" configuration option 
12520         (whether the diagram tree window should be shown on dia startup)
12522         * app/menus.c : added '<Toolbox>/File/Diagram Tree' entry
12524         * app/diagram.h (diagram_object_modified): callback notifying of a
12525         diagram object modification
12527         * app/diagram.c (diagram_load_into): added call to
12528         diagram_tree_add() to add newly loaded diagrams to the diagram
12529         tree window
12530         (diagram_destroy): call to diagram_tree_remove() to remove a
12531         destroyed diagram from the diagram tree window
12532         (diagram_add_object): call to diagram_tree_add_object() to add an
12533         object to the diagram tree window
12534         (diagram_add_object_list): as above, but with an object list
12535         (diagram_selected_break_external): deletion of objects from the
12536         diagram is detected here, and diagram_tree_remove_object() is
12537         invoked to remove the object from the diagram tree window (it
12538         would be nice to have a diagram_remove_object() in the Diagram
12539         interface)
12540         (diagram_set_filename): update the diagram tree window when a
12541         diagram's filename changes
12543         * app/commands.c (file_new_callback): added call to
12544         diagram_tree_add() to add newly created diagrams to the diagram
12545         tree window
12547         * app/app_procs.c (app_init): added call to create_tree_window()
12549         * app/makefile.msc : updated
12551 2001-10-28  Hans Breuer  <hans@breuer.org>
12553         * app/preferences.h (DiaPreferences): 
12554         * app/preferences.c (prefs_data): new "show_diagram_tree"
12555         configuration option (whether the diagram tree window should be
12556         shown on dia startup)
12558         * app/menus.c: added the new "<Toolbox>/View/Diagram tree" menu
12559         entry (both for GNOME and gtk)
12561         * app/diagram.h (diagram_object_modified): callback notifying of a
12562         diagram object modification
12564         * app/diagram.c (diagram_load_into): added call to
12565         diagram_tree_add() to add newly loaded diagrams to the diagram
12566         tree window
12567         (diagram_destroy): call to diagram_tree_remove() to remove a
12568         destroyed diagram from the diagram tree window
12569         (diagram_add_object): call to diagram_tree_add_object() to add an
12570         object to the diagram tree window
12571         (diagram_add_object_list): as above, but with an object list
12572         (diagram_selected_break_external): deletion of objects from the
12573         diagram is detected here, and diagram_tree_remove_object() is
12574         invoked to remove the object from the diagram tree window (it
12575         would be nice to have a diagram_remove_object() in the Diagram
12576         interface)
12577         (diagram_set_filename): update the diagram tree window when a
12578         diagram's filename changes
12580         * app/commands.c (file_new_callback): added call to
12581         diagram_tree_add() to add newly created diagrams to the diagram
12582         tree window
12584         * app/app_procs.c (app_init): added call to create_tree_window()
12586 2001-10-28  Hans Breuer  <hans@breuer.org>
12588         * plug-ins/python/pydia-property.c : apparently I missed
12589         to commit this last time. Now it has some more SetAttr
12590         support (apply from property)
12592         * plug-ins/python/pydia-properties.h : added PyDiaProperty_Check
12594         * plug-ins/python/pydia-text.[ch] : new files
12596 2001-10-14  Hans Breuer  <hans@breuer.org>
12598         * lib/charconv.c : g_locale_to_utf8() does not handle NULL
12599         strings. Use g_strdup() for these.
12601         libxml2 does not produce 'any extra indentation when saving a tree'
12602         [libxml2-2.4.2/doc/upgrade.html] anymore, which was the default with
12603         libxml(1). To get human readable XML some extra tweaking is required.
12604         It is enabled by setting 'pretty_formated_xml' to 'true' in 'diarc'.
12605         * lib/dia_xml.[hc] : provide and use 'DIAVAR pretty_formated_xml'
12606         * app/preferences.[ch] : initialize 'pretty_formated_xml'
12608         * lib/libdia.def : updated externals
12610         * lib/properties.h : add prototype for prop_list_from_single ()
12612         * plug-ins/makefile.msc : build metapost plug-in
12614         * plug-ins/metapost/render_metapost.c : msvc does not like
12615         switch labels without operation 'default: }'. Added a noop.
12617         * plug-ins/python/pydia-text.[hc] : (new files) wrap DiaText
12618         * plug-ins/python/diamodule.c : added PyDiaText 
12619         * plug-ins/python/makefile.msc : dito. Also added LIBXML_CFLAGS.
12620         Although the python plug-in does not use libxml at all, the
12621         headers are required to use the lib/prop*.h headers
12623         * plug-ins/python/pydia-diagramdata.c : added wrappers for
12624         update_extents and get_sorted_selected (should I duplicate
12625         more functions from PyDiaDiagram or should they be moved?)
12627         * plug-ins/python/pydia-properties.c : allow to set (some) properties
12628         through the dictionary api
12629         * plug-ins/python/pydia-property.h : declare PyDiaProperty_ApplyToObject
12630         * plug-ins/python/pydia-property.c : implement it (currently only
12631         string properties can be set)
12633         Reimplement PyDiaProperty_GetAttr by means of the new StdProp api.
12634         Quoting myself: 'Still not convinced that this is better than an 
12635          integral property->type and some casting ...
12636          It is trading a straightforward 40 lines switch statement to
12637          this nice 'type safe' function mapping (about 125 lines)'
12638         (But now it works again, better than changing the News file :)
12639         
12640 2001-10-14  Cyrille Chepelov  <chepelov@calixo.net>
12642         patch from <robert.young@dsto.defence.gov.au>: 
12643         * objects/UML/component.c: remember to set font in UML component
12644         object (fixes #62132)   
12646 2001-10-02  Lars Clausen  <lrclause@cs.uiuc.edu>
12648         * plug-ins/metapost/metapost.c: 
12649         * plug-ins/metapost/Makefile.am:
12650         * plug-ins/metapost/render_metapost.c:
12651         * plug-ins/metapost/render_metapost.h:
12652         Metapost renderer from Chris Sperandio
12654 2001-09-14  Hans Breuer  <hans@breuer.org>
12656         * app/render_gdk.c : reflect the fact, that GTK already talks
12657         UTF8 on win32, fixes #59982, #56100, (#55992 ?) ...
12659         * lib/font.c : 
12660         * app/render_libart.c : trying to fix #58045 but it appears
12661         to be an Gdk/win32, too. 
12663         * lib/charconv.c : handle utf8 conversion with the help of
12664         glib-1.3 even in the !HAVE_UNICODE case.
12666         * lib/dia_xml.c : reduce complaing about missing encoding, by
12667         detecting if the default (utf8) would break the file.
12669 2001-09-13  Cyrille Chepelov  <chepelov@calixo.net>
12671         * lib/charconv.c: (get_local_charset): at least please try to not 
12672         silently change the logic, while avoiding crashes. 
12674         * lib/font.c: (suck_font): put a #error, we have a nasty something
12675         to fix there before we switch to Gtk 2.0.
12676         
12677 2001-09-09  Hans Breuer  <hans@breuer.org>
12679         * **/makefile.mingw : Approach to compile Dia with mingw.
12680         Compiling mostly works but running does not (yet) ... 
12682         * lib/geometry.h : 
12683         - use G_OS_WIN32 instead of _MSC_VER to drag in isinf, etc. definitions. 
12684           Apparently mingw needs it too.
12685         - enable 'normalization' of a null verctor. Otherwise the beziergon
12686           bounding box calculation would be broken at least with msvc. What's
12687           the mathematical correct result of 0.0/0.0 ?
12689         * lib/dia_xml.c : isinf() for mingw too.
12691         * lib/dia_dirs.c : use MAX_PATH instead of _MAX_PATH (works for mingw 
12692         and msvc)
12694         * lib/charconv.c : still crashes if strcmp(NULL, "UTF-8"). 
12695         Please don't do it.
12697         * lib/font.c : Trying to reflect that GTK_TALKS_UTF8_WE_DONT
12699         * lib/libdia.def : updated externals. Apparently mingw needs
12700         them to produce the right mangling.
12702         * plug-ins/shape/shape-exports.c : get prototypes for xmlStrdup
12703         and xmlDiaSaveFile
12705 2001-09-08  Wang Jian  <lark@linux.net.cn>
12707         * configure.in(ALL_LINGUAS): Renamed zh_CN.GB2312 to zh_CN
12709 2001-09-07  Cyrille Chepelov  <chepelov@calixo.net>
12711         * lib/dia_xml_libxml.h:
12712         * lib/dia_xml.c: (data_add_string), (xmlDiaSaveFile): Duplicated
12713         libxml1's code, to rework the output file before it gets committed
12714         to disk. This is rubbish, and will be removed when libxml2
12715         switches from discouraged to mandatory. 
12716         All in all, this fixes #60152. 
12717         
12718         * lib/charconv.h: 
12719         * lib/charconv.c: (charconv_unichar_to_utf8):
12720         made the type of the input parameter explicitly an unsigned long.
12722         * configure.in: Added a check for libz (we must now include it
12723         explicitly, for xmlDiaSaveFile).
12724         
12725         * app/load_save.c: (diagram_data_save):
12726         * lib/plug-ins.c: (ensure_pluginrc), (info_fill_from_pluginrc),
12727         (dia_pluginrc_write):
12728         * plug-ins/shape/shape-export.c: (new_shape_renderer),
12729         (end_render), (draw_string):
12730         * plug-ins/svg/render_svg.c: (new_svg_renderer), (end_render),
12731         (draw_string):
12733         Made sure we always write UTF-8 XML files, and through
12734         xmlDiaSaveFile().
12736         * NEWS: documented that fact.
12737         
12738 2001-09-07  James Henstridge  <james@daa.com.au>
12740         * configure.in (found_libxml): refactor the check for libxml a
12741         little so that it handles finding both libxml1 and 2 better.
12743 2001-09-03  Cyrille Chepelov  <chepelov@calixo.net>
12745         * app/app_procs.c: removed a spurious } which caused a compilation
12746         error in the (!HAVE_GNOME && HAVE_POPT_H) case
12748         * lib/charconv.c: (get_local_charset): some versions of iconv(1)
12749         don't know what ANSI X3.4-1968 is. I didn't know until this day,
12750         but it's just plain old ASCII. Added a check to shield the poor
12751         XML library.
12753         Patches from <robert.young@dsto.defence.gov.au>:
12755         * lib/text.c: (text_calc_boundingbox) Bounding box now calculates the
12756         width and height of text before calculating bounds. Fixes #59928
12758         * app/preferences.c: Moved grid related items into Grid Tab.
12759         
12760 2001-09-02  Cyrille Chepelov  <chepelov@calixo.net>
12762         * app/interface.c: (create_zoom_widget): connected one more signal
12763         to the Zoom selector combo's list. Fixes #59879.
12765         * app/app_procs.[ch]: (app_init) (do_convert)
12766         (build_output_file_name): brought back into the main executable
12767         the rare useful bits of the ill-fated diaconv. This means we have
12768         one new feature : --export-to-format (-t), which should make
12769         writing conversion scripts easier, and a crude implementation of
12770         -t and -e for the poptless argument parsing, which means the Win32
12771         port should be able to take advantage of it (that should make
12772         resolving #58197 possible).
12774         * app/diaconv.c: kept the poor duck compiling (but that's about
12775         it).
12777         * plug-ins/svg/render_svg.c: updated the SVG DTD header (I hope
12778         I've got it right).
12780         * NEWS: updated about the new feature above, and documented the 
12781         "missing encoding specification" complaint. 
12782         
12783 2001-09-01  Abel Cheung  <maddog@linux.org.hk>
12785         * configure.in: Rename zh_TW.Big5 -> zh_TW in ALL_LINGUAS.
12787 2001-09-01  Cyrille Chepelov  <chepelov@calixo.net>
12789         * objects/standard/bezier.c: used g_new0 instead of g_new, to take
12790         care of #59837.
12792 2001-09-01  James Henstridge  <james@daa.com.au>
12794         * */Makefile.am: various changes to include missing files, and fix
12795         sheets dir to handle building with builddir != srcdir.
12797         * autogen.sh: unconditionally pass the --enable-maintainer-mode
12798         and --enable-db2html flags so that builds from CVS work correctly.
12800         * configure.in: increment version number.  Also add an
12801         --enable-db2html flag.  Without the flag, db2html won't be run (if
12802         the flag is passed and db2html is not present, do nothing).
12804 2001-08-30  Cyrille Chepelov  <chepelov@calixo.net>
12806         * lib/poly_conn.c: (polyconn_copy): it's a wonder this routine
12807         even compiled. It's really too bad there is no lint tool easily
12808         available (or a more cautious, pedandic, paranoid and verbose
12809         compiler). Anyway, this fixes #59662. (this didn't affect 0.88.x)
12811 2001-08-27  Cyrille Chepelov  <chepelov@calixo.net>
12813         * app/load_save.c:
12814         * dia/lib/plug-ins.c: use g_strdup() instead of strdup(). Patch
12815         from <robert.young@dsto.defence.gov.au>. Fixes #59591.
12817         * app/menu.c: added ellipsis(...) to diagram properties menu item.
12818         * app/dia-props.c: diagram properties dialog contents did not
12819         represent current diagram settings.
12820         * app/dia-props.[ch]:
12821         * app/display.c: diagram properties contents now follows currently
12822         selected diagram.
12823         Patch also from <robert.young@dsto.defence.gov.au>, fixes #59409.
12825         * AUTHORS: added Robert Young.
12826         
12827 2001-08-27  Cyrille Chepelov  <chepelov@calixo.net>
12829         * app/modify_tool.c: (modify_button_release): Patch from
12830         <robert.young@dsto.defence.gov.au>. Fixes the remaining bit from
12831         #59090: if selection dragging was released outside of the window, 
12832         artifacts of the selection box remained.
12834 2001-08-25  Cyrille Chepelov  <chepelov@calixo.net>
12836         * Objects/custom/shape_info.c: added missing #include <xmlmemory.h>
12838 2001-08-19  Cyrille Chepelov  <chepelov@calixo.net>
12840         * configure.in:
12841         * sheets/Makefile.am: prepared the terrain for the Version of
12842         xml-i18n-tools Which Comes After 0.9 (and which will feature at
12843         last a sane behaviour with XML files). Some reasonible delay
12844         before enforcing that version *will* be given.
12846         * xml-i18n-merge.in.kg: included the current CVS xml-i18n-merge.in
12847         
12848         * lib/plug-ins.c: <xmlmemory.h> defines xmlFree(), otherwise it
12849         becomes a nonexistent symbol.
12850         
12851 2001-08-18  Hans Breuer  <hans@breuer.org>
12853         * app/app_procs.c : made it compile without ENABLE_NLS
12855         * app/diap_callbacks.c : strcmp isn't guaranteed to work
12856         with NULL pointers
12858         * app/load_save.c :
12859         * lib/plug-ins.c : 
12860         * objects/custom/shape_info.c : avoid mixing allocators and dealocators. 
12861         It has to be :
12862                 xmlGetProp, ... -> xmlFree
12863                 malloc, strdup -> free
12864                 g_new, g_malloc, g_strdup - > g_free
12866         * app/win32print.c : some more error checking, still not
12867         working on Win9x
12869         * lib/charconv.c : get_local_charset is used even with !HAVE_UNICODE
12871         * lib/dia_xml.c : msvc still has no unistd.h
12873         * lib/dia_xml.c :
12874         * lib/sheets.c : temporary resolved libxml include brokeness
12876         * plug-ins/python/pydia-*.c : reflect Font and StdProp api
12877         changes. Compiles again, but doesn't do anything useful anymore.
12878         (see THE_PROP_TYPE_IS_INTEGRAL)
12880         * **/makefile.msc : updated to use LIBXML2
12882         * lib/libdia.def : reflect api changes
12884 2001-08-17  Cyrille Chepelov  <chepelov@calixo.net>
12886         * config.h.win32: added defines telling that gtk speaks UTF8.
12887         Hans, I believe this reflects what GTK on Win32 does.
12889         * app/app_procs.c: if GTK talks UTF8, we'll feed it UTF8 localised
12890         strings.        
12891         * lib/prop_inttypes.c: 
12892         * lib/prop_text.c:
12893         * lib/prop_widgets.c: fixed typos in the GTK_TALKS_UTF8_WE_DONT
12894         code path.
12895         
12896         * lib/plug-ins.c: (dia_register_plugins_in_dir): If there is a
12897         trailing // (or whatever (G_DIR_SEPARATOR * 2) is), a recursive
12898         search for plug-ins is done.
12899         * app/Makefile.am: made app/run_dia.sh use the // capability. No
12900         need to update this anymore if we get a new plug-in library (or
12901         remove one).
12903         * lib/dia_xml.c: #include <unistd.h> was missing.
12904         
12905         * lib/properties.h: 
12906         * lib/proplist.c: (pdtpp_defaults): Added a new flag,
12907         PROP_FLAG_NO_DEFAULTS. Will be used in the "automatic defaults"
12908         support.        
12910 2001-08-16  Cyrille Chepelov  <chepelov@calixo.net>
12912         * sheets/civil.sheet: removed duplicate "Danish" entries.
12914         * autogen.sh:
12915         * configure.in: 
12916         * .cvsignore:
12917         * sheets/Makefile.am: 
12918         * po/POTFILES.in:
12919         * Makefile.am: applied the xml-i18n-tools README's instructions.
12921         * po/(da de fr hu nl nn no sl).po: merged the translations from
12922         the sheet files into the .po files. I hope I haven't mixed
12923         languages...
12924         * sheets/*.sheet (REMOVED):
12925         * sheets/*.sheet.in (NEW): moved the sheet files sans
12926         translations into .sheet.in files. 
12927         
12928         * sheets/xml-i18n-unicodify: (NEW) included from xml-i18n-tools,
12929         because we don't yet want to force all translators to work using
12930         UTF-8 editors. We'll want to do that sometime (sooner rather than
12931         later). Okay, I sing a slightly different tune in po/ChangeLog...
12933         * dia.desktop (REMOVED):
12934         * dia.desktop.in (NEW): used also the x18t infrastructure for
12935         this too.
12937         * xml-i18n-update.in.kg (NEW): This one will stay in CVS until an
12938         "official" version of x18t with support for .sheet files is available.
12939         * xml-i18n-merge.in.kg (NEW): This one will stay in CVS until an
12940         "official" version of x18t which doesn't corrupt UTF-8 data in XML
12941         is available.
12942         
12943         ** yes, we are now using xml-i18n-tools to manage the sheet
12944         translations. For the Win32 build, Nemo stores snapshots of
12945         translated strings next to the CVS snapshots. **
12947         * sheets/checktrans.py: suddenly, some sheets have lots of
12948         translations (objects which existed before sheets, mostly).
12949         Adapted the formatting.
12951         * po/README (REMOVED): this is obsolete ! It was ignored, anyway.
12953         * app/display.[ch]: (ddisplay_autoscroll), (ddisplay_scroll):
12954         * app/modify_tool.[ch]: (modify_motion): A (modified) patch from
12955         <robert.young@dsto.defence.gov.au>, to fix #59090.
12957         * app/display.c: (ddisplay_scroll): While at it, added some
12958         margin, so that autoscrolling can happen within a margin outside
12959         the diagram's extents.
12961         * app/tool.[ch]: 
12962         * app/interface.c:
12963         * app/disp_callbacks.c: Robert "forced" me to go when I usually
12964         don't, namely the app/ directory. So while I was there, I
12965         scratched a long-time itch. If no object has focus, pressing the
12966         space bar will select back the tool which was selected before the 
12967         current one (I find this especially useful with "reset after create" !)
12968         
12969         * lib/proplist.c: (prop_list_from_single): Renamed
12970         prop_list_singleton() to avoid confusion with the Singleton
12971         pattern (which it definitely is not).
12972         
12973         * lib/propobject.c: (object_prop_by_name_type),
12974         (object_prop_by_name): The "flags" parameter was not necessary.
12975         These don't return synthetic properties, but properties built from
12976         a real property description list; therefore, we don't call
12977         make_new_prop() but use the existing property descriptor, which
12978         has perfectly valid (and meaningful) flags.
12980         * lib/proplist.c: (pdtpp_synthetic), (pdtpp_from_object): These
12981         new predicates better reflect the reason why properties exist when
12982         they're created by make_new_prop() or object_prop_by_name().    
12984         * lib/propobject.c: (object_prop_by_name_type), (object_prop_by_name):
12985         * lib/prop_basic.c: (make_new_prop): used the new reasons instead
12986         of pdtpp_true().
12988         * lib/properties.h: reflects all the above changes.
12990         * objects/SADT/arrow.c:
12991         * objects/SADT/annotation.c:
12992         * sheets/SADT.sheet: minor renamings to better match FIPS 183's
12993         IDEF0 terminology.
12994         
12995 2001-08-15  Cyrille Chepelov  <chepelov@calixo.net>
12997         * lib/properties.h:
12998         * lib/proplist.c: (prop_list_singleton):
12999         * lib/propobject.c: (object_prop_by_name_type), (object_prop_by_name):
13000         Added these, to simplify interactions of plug-ins with the StdProp
13001         core.
13003         * lib/Makefile.am:
13004         * lib/dia_xml.h:
13005         * lib/dia_xml_libxml.h (NEW): 
13006         * app/load_save.c:
13007         * lib/dia_xml.c:
13008         * lib/plug-ins.c:
13009         * lib/sheet.c:
13010         * objects/custom/shape_info.c: A few prototypes were causing
13011         #include hell, because we generally attempt to not pull the whole
13012         libxml header set when we include dia_xml.h. Moved those
13013         prototypes away for the rare cases they're necessary.
13014         
13015 2001-08-15  Hans Breuer  <hans@breuer.org>
13017         * lib/font.c : made LARS_TRACE_MESSAGES Standard C conform
13019         * lib/libdia.def : 
13020         * lib/makefile.msc : updated
13022         * lib/prop_basic.c : __FUNCTION__ is a gcc extension. Please
13023         use G_GNUC_FUNCTION instead.
13025         * lib/prop_inttypes.c : include <stdlib.h> for strtol()
13027         * objects/sadt/annotation.c : disable TEMPORARY_EVENT_TEST for
13028         msvc instead of cleaning missing includes
13030         * plug-ins/wmf/wmf.cpp :
13031         * plug-ins/wmf/wmf_gdi.h : fixed for Font to DiaFont renaming
13033 2001-08-15  Cyrille Chepelov <chepelov@calixo.net>
13035         * app/app_procs.c:
13036         * app/load_save.c:
13037         * lib/dia_xml.c:
13038         * lib/plug-ins.c:
13039         * lib/sheet.c:
13040         * objects/custom/shape_info.c:
13041         * plug-ins/shape/shape-export.c:
13042         * plug-ins/svg/render_svg.c: used the libxml1/libxml2
13043         compatibility macros as taught by http://xmlsoft.org/upgrade.html;
13044         removed xmlKeepBlanksDefault(0) in favour for proper
13045         xmlIsBlankNode() testing. Lots of other fixups to use the
13046         "libxml1.5" (libxml2 parser embedded in recent libxml1), and to
13047         make libxml1 output correct files.
13049         * configure.in: use libxml2 (>= 2.3.9) if it's found, or
13050         libxml1 (>= 1.8.14). Exactly one of these must be installed (devel
13051         packages). If both devel packages are found, the build will stop 
13052         (Fredrik: please add a Build-Conflicts: on libxml2-dev for the moment) 
13054         * lib/bezier_conn.c: (bezierconn_init): Lars, you forgot to
13055         allocate the first handle :-)
13056         
13057         * lib/object.c: (object_init): <gratuitous>g_new() used instead of
13058         a cast and a sizeof.</gratuitous>
13060         * objects/custom/custom_object.c: (custom_copy): don't call
13061         text_get_attrbutes if the shape has no text...
13062         (custom_update_data): The info->resize_with_text code was a bit
13063         directive; basically, the shape's bounding box was forced to be 
13064         proportional to the text's bounding box.... This fixes #57187.
13065         
13066         * objects/custom/shape_info.c: (load_shape_info): Set an obvious
13067         default for info->aspect_ratio; unobfuscated a line about
13068         info->resize_with_text;
13069         
13070 2001-08-15  Cyrille Chepelov <chepelov@calixo.net>
13072         * lib/properties.h: added comments next to the PROP_TYPEs to tell
13073         which C Property subclass to use.
13074         
13075         * plug-ins/dxf/dxf-import.c: (read_entity_line_dxf): Removed the
13076         cast-ridden form of setting properties in a list, in favour for
13077         the "local pointers" form. I'll take any better offer...
13079 2001-08-14  Cyrille Chepelov <chepelov@calixo.net>
13080         
13081         * lib/font.c: fprintf(...) --> fprintf(format...)
13083         * configure.in: added a disabled versioned test for glib.
13084         * lib/prop_geomtypes.c: (bezpointprop_load), (bezpointprop_save),
13085         (bezpointarrayprop_load), (bezpointarrayprop_save): replaced
13086         g_critical() with a simple g_error(). Proper fix is to implement
13087         that stuff. 
13089         * lib/properties.h: PROP_STD_TEXT is a PROP_TYPE_TEXT, not a
13090         PROP_TYPE_STRING.
13091         
13092         * lib/properties.h:     
13093         * lib/propdesc.c: (prop_desc_list_calculate_quarks):
13094         * lib/proplist.c: (find_prop_by_name_and_type):
13095         * lib/prop_basic.c: (make_new_prop), (initialize_property):
13096         * lib/propoffsets.c: (do_set_props_from_offsets),
13097         (do_get_props_from_offsets), (prop_offset_list_calculate_quarks):
13098         Added a type_quark member to PropDescription, Property and
13099         PropOffset. Used it to implement a safety in
13100         do_[sg]et_props_from_offsets().
13101                 
13102         * objects/flowchart/diamond.c: the diamond's text was not saved,
13103         and thus not even copied (c&p).
13104         * objects/standard/textobj.c: ditto.
13106         Most of the above changes thanks to Robert Young's testing. Thanks !
13107         
13108 2001-08-14  Kjartan Maraas  <kmaraas@gnome.org>
13110         * sheets/*.sheet: Added some Norwegian translations (both nynorsk
13111         and bokmÃ¥l).
13112         
13113 2001-08-13  Cyrille Chepelov  <chepelov@calixo.net>
13115         * lib/proplist.c (prop_list_from_descs): added a call to
13116         prop_desc_list_calculate_quarks(). (find_prop_by_name_and_type):
13117         too embarrassing to tell.
13118         
13119         * lib/propdesc.c (prop_desc_list_calculate_quarks): converted the
13120         while loop to a for loop, for symmetry with
13121         prop_offset_list_calculate_quarks().
13123         * lib/geometry.h: new inline function, rectangle_equals.
13125         * lib/diagramdata.[ch]: refactored a bit the diagram extents
13126         computation logic, and changed it to always be the union of the
13127         visible layers' extents. This should close #58882 (Debian
13128         #107167), and fixes #55498.
13130         * app/display.c: made the initial visible box more coherent with
13131         the diagram being loaded's extents.
13133         * app/prop_attr.c: don't set the font (from offset) if font_data
13134         is NULL. Two brainos in colorprop_load() and fontprop_load().
13135         
13136 2001-08-13  Cyrille Chepelov  <chepelov@calixo.net>
13138         * lib/properties.[ch]: split in a lot of pieces: 
13140         * lib/prop_*.[ch] (NEW): all property types are now first-class
13141         objects, inheriting from the original abstract Property type.
13142         * lib/propdesc.c (NEW): property description handling routines
13143         * lib/propoffsets.c (NEW): property offset handling routines
13144         * lib/proplist.c (NEW): property list handling routines
13145         * lib/propobject.c (NEW): property list <-> object routines
13146         * lib/propregistry.c (NEW): holds the PropertyType-->PropertyOps
13147         relations.
13148         * lib/propinternals.h: prototypes for stuff not usually needed by 
13149         the outside of StdProps.
13150         * lib/Makefile.am: a lot of new files have been added...
13152         THE ABOVE CHANGES ARE MAJOR CHANGES AND AFFECT THE WHOLE TREE, IN
13153         BOTH INTERFACES AND RUN-TIME STABILITY.
13155         * lib/plug-ins.h: bumped up DIA_PLUGIN_API_VERSION
13156         
13157         * lib/object.h: removed the incestuous relationship with
13158         properties.h' contents. Now a Property list is a GPtrArray -->
13159         object interface change !
13161         * app/app_procs.c/app_init(): removed a disabled call to a
13162         non-existent routine. Added a call to stdprops_init().
13163         
13164         * objects/Makefile.am: disabled the construction of EML. I'm not
13165         touching these until a certain issue is solved (or this module
13166         removed).
13167         * app/group.c:  
13168         * objects/**/*.c except objects/EML/*: adapted all stdprop-using 
13169         objects to the interface changes.
13170         
13171         * app/disp_callbacks.c: killed a warning.
13172         * lib/dia_xml.[ch]: sprinkled "const" modifiers. 
13174         * app/commands.c: 
13175         The macros PROP_VALUE_* have disappeared. Adapted to using the new 
13176         interface.
13178         * plug-ins/dxf/dxf-import.c: 
13179         * plug-ins/xfig/xfig-import.c: 
13180         PROP_VALUE_* macros have been removed. Converted to the new API.
13182         * plug-ins/python/**/*: I gave up converting this; I can't
13183         compile --with-python (problems with object.h defined both by us
13184         and by Python). I'll gladly help whomever cares to fix it !
13185         (or, fix it myself if someone tells me how to compile it).
13186         
13187         * configure.in: added the UNICODE-related progress defines.
13188                 
13189         * configure.in:
13190         * lib/geometry.h: On Solaris and perhaps other systems, finite()
13191         is defined in ieeefp.h rather than in math.h. Patch from Andrew
13192         Halper <ashalper@acm.org> with further modifications, isinf() is
13193         provided by -lsunmath (sunmath.h).
13194         
13195         * lib/font.c: conditionally disabled Lars' debugging messages.
13196         Bracketed the definition of DiaFontFamily with #ifdef HAVE_FREETYPE.
13197         
13198 2001-08-11  Lars Clausen  <lrclause@cs.uiuc.edu>
13200         * lib/bezier_conn.h: 
13201         * objects/standard/bezier.c (bezierline_create): 
13202         * lib/bezier_conn.c (bezierconn_init): 
13203         Preparations for use of userdata for bezier lines.
13204         
13205         * objects/standard/polygon.c: 
13206         * objects/standard/create.h:
13207         * lib/polyshape.c:
13208         * lib/polyshape.h:
13209         * plug-ins/xfig/xfig-import.c:
13210         Use of user_data for polygon as well, including adding
13211         polyshape_set_points.  Include file for non-interactive 
13212         creation of standard objects, objects/standard/create.h
13214 2001-08-10  Lars Clausen  <lrclause@cs.uiuc.edu>
13216         * app/render_gdk.c: 
13217         * app/render_gdk.h: 
13218         * lib/font.c:
13219         * lib/font.h:
13220         * lib/widgets.c:
13221         More preliminary freetype support.  Not at all functional, crashes
13222         when rendering.
13224         * lib/poly_conn.h: 
13225         * lib/poly_conn.c: 
13226         * objects/standard/polyline.c: 
13227         Support for creating polyline objects with more than two points.
13228         This includes an extra function and a prototype change in the
13229         poly_conn lib object.
13231         * lib/object.c (object_copy): Fixed memory leak of handles and
13232         connections.
13234 2001-08-08  Abel Cheung  <maddog@linux.org.hk>
13236         * dia.desktop: added traditional Chinese strings
13238 2001-08-04  Cyrille Chepelov  <chepelov@calixo.net>
13240         * NEWS: updated to reflect build-time dependencies.
13242         * lib/properties.[ch]: wrote get_prop_descriptions() as a wrapper
13243         around obj->ops->describe_props(obj). Quarks are none of an
13244         object's business in the general case... 
13245         * lib/text.c: Added an apply_textattr_properties() function to
13246         factor out some common code related to applying a dialog's text
13247         attribute properties to a (Text *) which wasn't edited there. 
13248         Ditto for textstr, for the string part of an objet.
13250         * objects/GRAFCET/action.c:
13251         * objects/SADT/annotation.c:
13252         * objects/SADT/box.c: used apply_textattr_properties().
13253         
13254         * objects/UML/actor.c: 
13255         * objects/UML/branch.c:
13256         * objects/UML/component.c:
13257         * objects/UML/constraint.c:
13258         * objects/UML/small_package.c:
13259         * objects/UML/state.c:
13260         * objects/UML/usecase.c:
13261         * objects/UML/large_package.c:
13262         * objects/UML/note.c:
13263         * objects/UML/node.c:
13264         * objects/UML/message.c:
13265         * objects/UML/classicon.c:
13266         * objects/UML/object.c:
13267         * objects/UML/realizes.c:
13268         * objects/UML/dependency.c:
13269         * objects/UML/implements.c:
13270         slim-fast(tm) cure using more StdProps, and UTF-8 audit.
13271         (most objects were already using StdProps to some extent ; this
13272         systematises usage and removes some dead wood). 
13273         
13274         * objects/UML/stereotype.[ch]: use UTF-8 internally. const police work.
13275         * objects/UML/uml.[ch]: audited for UTF-8.
13277         * objects/UML/class.c: the UML_STEREOTYPE_* strings defined by
13278         uml.h can be in UTF-8... this code isn't yet ready. Duplicating a
13279         private (ISO-8859-1) definition.
13280         
13281         * lib/charconv.c: Added a warning if we didn't run
13282         nl_langinfo(CODESET) but rely instead on a hardcoded default.
13283         
13284 2001-08-02  Cyrille Chepelov  <chepelov@calixo.net>
13286         * lib/diamenu.h:
13287         * app/disp_callbacks.c: added a way for an object to cause an
13288         already realised menu to be destroyed (for instance if it changes
13289         too much).
13291         * objects/custom/custom_object.c: used the above to fix #55073.
13293 2001-08-01  Lars Clausen  <lrclause@cs.uiuc.edu>
13295         * configure.in: Remove 2.50 prereq.
13297 2001-07-30  Cyrille Chepelov  <chepelov@calixo.net>
13299         * po-checktrans.py: under some circumstances, there was one column 
13300         more than what was supposed to be, thus breaking the formatting.
13301         
13302 2001-07-29  Cyrille Chepelov  <chepelov@calixo.net>
13303         
13304         * objects/SADT/annotation.c: forgot to add a #include <stdlib.h>
13306         * NEWS: updated with new stuff since 0.88
13308         * shapes/network/antenna.shape: the text was misplaced ; fixed.
13310         * shapes/network/firewall.(shape|xpm) (NEW): a brick-wall looking
13311         firewall router (upon request from Cyril Lacoux
13312         <clacoux@easter-eggs.com>)
13314         * configure.in (didn't rename to configure.ac): autoconf 2.50
13315         constructs were used ; added an AC_PREREQ call to guard against
13316         older autoconfs.
13317         
13318 2001-07-27  Cyrille Chepelov  <chepelov@calixo.net>
13320         * lib/properties.c: minor clean-ups with the event delivery code.
13322         * EML/instantiation.c: brought this object back from stone and ice
13323         age.    
13325         * app/diaconv.c(NEW): added a command-line conversion tool. Still
13326         lacks a man page and correctness. In fact, it doesn't work. Please
13327         see #58196 if you want to finish it.
13328         
13329         * lib/message.[ch]: redefined things a little so that a different
13330         message_internal routine could be passed.
13331         applications can use that to fit themselves to the display model.
13333 2001-07-26  Cyrille Chepelov  <chepelov@calixo.net>
13335         * objects/SADT/box.c: 
13336         * objects/GRAFCET/action.c: spelling in property descriptors (name
13337         field...)
13338         * objects/SADT/annotation.c: ditto, plus a temporary test of the
13339         event delivery code (try to click on the "click me !" button !).
13341         * app/group.c: 
13342         * lib/properties.[ch]: improved (fixed) support for group event 
13343         handlers. Fixed various things from yesterday's code to make it
13344         not too obviously crash.
13346 2001-07-26  Cyrille Chepelov  <chepelov@calixo.net>
13348         * app/group.c: added delivery of events to the first member of the
13349         group which is able to process it.
13351         * lib/properties.c(prop_desc_lists_intersection): properties
13352         don't match if they don't have identical event handler.
13353         * lib/properties.h: simplified the PropEventHandler signature.
13355         Event delivery code is still untested so far, but should be
13356         lurking harmless.
13357         
13358 2001-07-25  Cyrille Chepelov  <chepelov@calixo.net>
13360         * lib/properties.[ch]: Added (untested !) property event handler
13361         capability. Added a new PROP_TYPE_BUTTON, for the purpose of
13362         generating such events. This stuff compiles, and should lurk
13363         around silently as long as you don't declare property descriptors
13364         with events (AFAICT).
13365         In object_create_props_dialog() and friends:
13366         attached a single structure with lots of data instead of lots of
13367         little attachments of data to the dialog widget.
13368         
13369         * lib/object.h: fixed mild typedef breakage introduced by the above.
13371 2001-07-17  Lars Clausen  <lrclause@cs.uiuc.edu>
13373         * lots of files: Changed Font to DiaFont
13374         * */Makefile.am: Added FREETYPE_LIBS
13375         * plug-ins/xfig/xfig-export.c: Improved (working:) color handling
13377 2001-07-13  Kjartan Maraas  <kmaraas@gnome.org>
13379         * configure.in: Added "nn" to ALL_LINGUAS.
13380         
13381 2001-07-09  Alex Larsson  <alexl@redhat.com>
13383         * app/disp_callbacks.c:
13384         Add gdk_im_ready() calls to XIM code.
13386 2001-07-04  Cyrille Chepelov  <chepelov@calixo.net>
13388         * lib/properties.[ch]: splitted prop_get_widget() into
13389         prop_get_widget() (gives a widget but doesn't fill it) and 
13390         prop_reset_widget() (fills an existing widget with a property's value).
13392         * lib/widgets.[ch]: const enforcement police work.
13394         * shapes/network/antenna.shape: added a connection point at top,
13395         upon request from <Emmanuel.Quemener@cri.ens-cachan.fr>.
13396         
13397 2001-06-25  Cyrille Chepelov  <chepelov@calixo.net>
13399         * intl/*: tested with gettext-0.10.38
13400         * configure.in: moved a macro call around (AM_PROG_CC) to keep
13401         some of autogen.sh from complaining.
13402         * INSTALL: added a warning against gettext older than at least 0.10.36
13403         
13404 2001-06-19  Cyrille Chepelov  <chepelov@calixo.net>
13406         * configure.in: added explicit calls to AM_LANGINFO_CODESET and
13407         AM_ICONV (both provided by gettext)
13409 2001-06-14  Cyrille Chepelov  <chepelov@calixo.net>
13411         * lib/charconv.c: corrected the degraded mode for when
13412         !HAVE_UNICODE. Thanks to Ben A. Hetland for reporting this.     
13414         * objects/chronoline/chronoline_events.c: UTF8 compliance.
13415         
13416 2001-06-13  Cyrille Chepelov  <chepelov@calixo.net>
13418         * lib/properties.[ch]: convenience macros around PROP_NOTEBOOKS ;
13419         new "eye candy" properties: PROP_MULTICOL_(BEGIN|PAGE|END) to lay 
13420         widgets on several columns, PROP_FRAME_(BEGIN|END) to put widgets
13421         into a frame box.
13423         * objects/chronogram/chronoline.c:
13424         * objects/chronogram/chronoref.c: took advantage of the above to
13425         make nicer looking dialogs.
13427         * lib/charconv.[ch]: added charconv_unichar_to_utf8 ("inspired"
13428         from libunicode's internals).
13429         * lib/message.c: convert strings to local encoding prior to
13430         display (UNICODE_WORK_IN_PROGRESS)
13431         * lib/properties.[ch]: convert strings to local encoding prior to
13432         display, and back to UTF8 (UNICODE_WORK_IN_PROGRESS).
13433         * lib/render.h: tagged strings as (utfchar *) instead of (char *)
13434         * lib/stringprerenderer.[ch]: ditto
13436         (lib/text.c has been audited for UTF8, but the size of the changes
13437         make them inappropriate for commit before 0.89)
13438         
13439 2001-06-12  Cyrille Chepelov  <chepelov@calixo.net>
13441         * objects/boolequation.h (<save|load>_boolequation): made the 
13442         prototypes for match the .c file.
13443         
13444         * samples/grafcet.dia: minor non-conformance with IEC-848
13445         fixed (in the transition from step 100 to step 101).
13447         * lib/properties.[ch]: added a flag (PROP_FLAG_DONT_MERGE) to
13448         disallow editing of properties if the object is part of a group.
13450         * objects/chronogram/chronoline.c: 
13451         * objects/SADT/annotation.c:
13452         * objects/SADT/box.c:
13453         * objects/GRAFCET/step.c:
13454         * objects/GRAFCET/transition.c:
13455         * objects/GRAFCET/condition.c: took advantage of PROP_FLAG_DONT_MERGE.
13456         
13457 2001-06-12  Hans Breuer  <hans@breuer.org>
13459         * lib/libdia.def : removed lazyprop exports
13460         * lib/makefile.msc : removed lazyprop.obj
13462         * objects/custom/custom_objects.c : use HAVE_UNISTD_H
13463         and avoid crashes by always creating a custom->text,
13464         when (custom->info->has_text) 
13466         * objects/makefile.msc : removed sybase from build
13468         * objects/GRAFCET/boolequation.c (<save|load>_boolequation) :
13469         ObjectNode is a pointer already, which is what we want
13470         instead of a pointer pointer.
13472         * plug-ins/wmf/wmf.cpp : fixed problem with arc scaling
13473         and implemented working export for images
13475         * shapes/network/zip-disk.shape : added connection points 
13477 2001-06-12  Cyrille Chepelov  <chepelov@calixo.net>
13479         * objects/SADT/box.c: removed lazyprops for standard props.
13480         * objects/chronograms/chronoline.c: removed lazyprops (phew !)
13481         * objects/chronograms/chronoref.c: ditto 
13483         * lib/Makefile.am:
13484         * lib/dummy_dep.h:
13485         * lib/connpoint_line.c:
13486         * lib/lazyprops.[ch] (DELETED): good riddance (closes #55895)
13487         * lib/properties.[ch]: new property types:
13488             - PROP_TYPE_STATIC: static text to be displayed in the dialog.
13489             - PROP_TYPE_MULTISTRING: same as string, but renders as a
13490             multi-line entry box.
13491             - PROP_TYPE_NOTEBOOK_BEGIN,_PAGE,_END: stuff to make dialogs
13492             in a tabbed-notebook style (this is a bit complicated to use; 
13493             see objects/chronograms/chronoline.c for an example).
13494                
13495 2001-06-11  Cyrille Chepelov  <chepelov@calixo.net>
13497         * objects/GRAFCET/boolequation.[ch]: zap lazyprops. Add standard props.
13498         * objects/GRAFCET/step.c: ditto.
13499         * objects/GRAFCET/vector.c: ditto.
13500         * objects/SADT/annotation.c: ditto.
13501         * objects/SADT/arrow.c: ditto (plus bounding box fixes).
13502         
13503         * lib/properties.[ch]: two more non-visible types
13504         (PROP_TYPE_ENUMARRAY and PROP_TYPE_INTARRAY).
13506         * lib/neworthconn.[ch]:
13507         * lib/orthconn.[ch]: added support for manipulation through
13508         standard properties.
13510         * configure.in: removed -fomit-frame-pointer, this seems to
13511         confuse recent gcc/gdb's, maybe we'll get better stack dumps in 
13512         bugzilla.
13514         * charconv.[ch]: more functions from unicode.h.
13515         get_local_charset() wasn't working properly, fixed now.
13516         A subtle crashbug in charconv_utf8_to_local8() nailed (thanks to 
13517         ElectricFence !)
13518         
13519         * objects/EML/process.h: pulled the bits of lazyprops.h it uses.
13520         * lib/lazyprops.[ch]: put a big fat warning in.
13522         * app/render_eps.c: one line mysteriously went away, causing a
13523         variable to be used uninitialised....
13525 2001-06-10  Cyrille Chepelov  <chepelov@calixo.net>
13527         * app/app_procs.c: commented out the call to
13528         bind_textdomain_codeset(): it's premature.
13529         
13530         * lib/connpoint_line.c: a NULL point can be given to
13531         connpointline_adjust_count(), in case there's not really a clicked
13532         point.
13534         * lib/textattr.h(NEW): moved the definition of TextAttributes to sort
13535         #include order troubles. #included by lib/text.h, so there is no 
13536         impact outside lib/.
13537         * lib/properties.[ch]: added support for CONNPOINT_LINE and
13538         (nonvisible) TEXT properties.
13540         * objects/GRAFCET/action.c:
13541         * objects/GRAFCET/vergent.c: dropped lazyprops for standard
13542         properties.
13543         
13544         * objects/UML/lifeline.c: pruned some legacy stuff (now pure
13545         standard properties code). Grafted a dynamic number of connection
13546         points (heavily inspired from what Vergent does). This is the real
13547         fix for #55863.
13549         * objects/GRAFCET/boolequation.[ch]: audited for UTF-8
13551         * lib/fonts.c: some hardening (mostly g_assert())
13552 2001-06-09  Cyrille Chepelov  <chepelov@calixo.net>
13554         * app/app_procs.c (app_init): added a call to
13555         bind_textdomain_codeset() so that gettext gives us UTF-8 strings
13556         (UNICODE_WORK_IN_PROGRESS).
13557         
13558 2001-06-08  Cyrille Chepelov  <chepelov@calixo.net>
13560         * plug-ins/xfig/xfig-import.c: corrected a typo (fixes #55910)
13562         * objects/UML/lifeline.c: patch from Marc <mrw@siemens.ch> 
13563         (fixes #55863) : some clean-ups in the handling of connection
13564         points. Now the total number of connection points is just a
13565         #define (the proper solution is to retrofit the GRAFCET Vergent's
13566         dynamic behaviour wrt connection points).
13567         
13568 2001-06-07  Cyrille Chepelov  <chepelov@calixo.net>
13570         * app/app_procs.c (app_init): added a call to unicode_init() (only
13571         if HAVE_UNICODE, of course).
13573         * lib/charconv.c: simplified the code which detects the local
13574         charset. No need to use <langinfo.h>, libunicode already takes the
13575         burden of figuring that out. Also, if local charset is utf8, no
13576         conversion will take place.
13577         Exposed a way to get the current charset (similar to
13578         unicode_get_charset() but actually working, hopefully).
13580         * lib/charconv.h: Added a partial non-UTF8 implementation of
13581         unicode.h if !HAVE_UNICODE (actually, all the time for the
13582         moment). The UTF8 implementation is just macros on libunicode (use
13583         the functions prefixed by uni_, as defined by charconv.h, not
13584         unicode_, unless that code is to be compiled only if HAVE_UNICODE).
13585         From now on, all strings which don't *need* to be ASCII should be
13586         utfchar *, not gchar *. Just include charconv.h, let it sort out
13587         the details (such as: "is libunicode available and enabled?") 
13589         * lib/ps-utf8.c: fixed a few name clashes. Used the charconv.h
13590         "API" instead of directly libunicode. Removed the now unnecessary
13591         speculative clustering of characters in encoding pages.
13593         * app/render_eps.c: made the local8->utf8 conversions dependent of
13594         !UNICODE_WORK_IN_PROGRESS (this is not where the local8/utf8
13595         boundary will be when this WIP is done).
13597         * lib/dia_xml.c (data_point): fixed a format string typo.
13599         * po/POTFILES.in: added all C files from lib/ 
13600         
13601 2001-06-06  Cyrille Chepelov  <chepelov@calixo.net>
13603         * app/disp_callbacks.c: make sure the objects' connected objects
13604         are updated when the objects' size changes after a keypress event
13605         (fixes #51222)
13607         * configure.in: added a big warning about the possible future
13608         non-optionality of --enable-unicode. 
13610         * TODO: removed entries which look like done ; added a few ones
13611         (Bugzilla "enhancement" bugs may be a better way to keep track of
13612         this)
13613         
13614 2001-06-05  Cyrille Chepelov  <chepelov@calixo.net>
13616         * objects/UML/message.c: got rid of #55564 and of message_copy()
13617         by using more standard properties (are the message_state_*()
13618         functions still necessary ?)
13620 2001-06-04  Fredrik Hallenberg  <hallon@lysator.liu.se>
13622         * lib/plug-ins.c: 
13623         * objecs/custom/shape_info.c:
13624         * plug-ins/shape/shape-export.c:
13625         * plug-ins/svg/render_svg.c: patch from obecian <obecian@openbsd.org>
13626         use xmlChar instead of obsolete CHAR.
13628 2001-06-03  Hans Breuer  <hans@breuer.org>
13630         * app/diagram.h : added prototype for diagram_update_menu_sensitivity()
13631         * app/commands.c : give the right number of parameters
13632         to diagram_update_menu_sensitivity ()
13634         * app/preferences.c : do proper initialization for DiaPrefsData:
13635         render_bounding_boxes. It would be a real surprise if 'hidden'
13636         properties would have ever worked before.
13637         Don't try to access the widgets of hidden property, it does not
13638         have one.
13640         * lib/diagramdata.h : make render_bounding_boxes a DIAVAR, cause
13641         it is defined in libdia, but initialized from dia app, which 
13642         otherwise gave nice start-up crashes.
13644         * lib/diagramdata.c : initialize the color for rendering bounding 
13645         boxes in the Dia range (0 .. 1.0)
13647         * lib/libdia.def : added *_bbox functions for export
13649         * lib/makefile.msc : added new sources
13651         * objects/custom/custom_object.c : use HAVE_UNISTD_H
13653 2001-05-30  Cyrille Chepelov  <chepelov@calixo.net>
13655         * app/interface.c:
13656         * app/menus.c: patch from Hubert Figuiere <hfiguiere@teaser.fr> ;
13657         removes a translation of menus (in a place where there shouldn't
13658         have been), which gets rid of a waterfall of warnings if LANG!=C,
13659         and a fix to #55047.
13661 2001-05-29  Steffen Macke     <sdteffen@yahoo.com>
13663         * lib/charconv.c : added #include <errno.h>
13665         * app/dia_embedd.c : updated menus_get_item_from_path usage
13666         
13667 2001-05-27  Cyrille Chepelov  <chepelov@calixo.net>
13669         * lib/ps-utf8.c: Strings in Symbol fonts were incorrectly rendered.
13670         Added a special case for Symbol strings, so that they're not
13671         re-encoded using the LN encoding (we use the bare Adobe encoding
13672         instead).
13674         * objects/custom/custom_object.c: Now that #52912 is fixed,
13675         I could remove the ugly hack I wrote to squash the shape bounding box
13676         problem shown by Ben A. Hetland a few months ago, and fix it
13677         properly this time.
13678         
13679         * lib/text.c: enlarged a little the bounding box to account for
13680         the cursor in rightmost position.
13681         
13682         * lib/diagramdata.c: draw bounding boxes only if the relevant
13683         variable is set (as before), but also only if the rendere is
13684         interactive (ie, don't bother rendering bounding boxes on 
13685         Postscript...)
13686         Made the bounding box's line width a fixed value, 0.01
13687         
13688         * lib/boundingbox.c: fixed the "pointy corners" code for polylines
13689         and assymmetric control beziers. Implemented ellipse_bbox().
13690         
13691         * Makefile.am: incantations to get po/dia.pot build, as suggested
13692         by Hubert in #55075.
13693         
13694         * shapes/network/computer.shape: typo fixed.
13695         * shapes/network/antenna.shape: fixed #55074 (antenna is now
13696         properly translucent, except for its base where it makes sense. It
13697         doesn't look that ugly anymore if transparent mode is on).
13699         * configure.in: --enable-unicode is now the default. This
13700         still currently affects only printing.
13701         
13702 2001-05-26  Cyrille Chepelov  <chepelov@calixo.net>
13704         * lib/boundingbox.c: fixed a minor logic error wrt closed shapes. 
13705         The overshoot code is buggy, and the bounding boxes for polyshapes
13706         looks a bit cheezy. To be done ASAP.
13708 2001-05-26  James Henstridge  <james@daa.com.au>
13710         * configure.in: call AM_PATH_PYTHON rather than AM_PATH_PYTHON_JH.
13711         This should clear up some of the build problems people have been
13712         having.
13714         * acinclude.m4: call AM_PATH_PYTHON_JH AM_PATH_PYTHON
13716 2001-05-26  Cyrille Chepelov  <chepelov@calixo.net>
13718         * lib/Makefile.am:
13719         * lib/boundingbox.[ch] (NEW): (some) refactoring of the bounding
13720         box code (beginning with lines, polylines and polybeziers), into a
13721         more generic facility. While at it, a better shot at correctly
13722         computing the bounding box of a Bezieroid (should take care of
13723         #53424, #51233 and of course is part 1 of #52912).
13725         * lib/diagramdata.c: turned the RENDER_BOUNDING_BOXES conditional
13726         into a hidden preference (set render_bounding_boxes in diarc).
13727         * app/preferences.[ch]: Added support for hidden preferences.
13729         * lib/geometry.[ch]: sprinkled with "const" modifiers.
13730         
13731         * lib/bezier_conn.[ch]:
13732         * lib/beziershape.[ch]:
13733         * lib/connection.[ch]:
13734         * lib/element.[ch]:
13735         * lib/poly_conn.[ch]:
13736         * lib/orth_conn.[ch]:
13737         * lib/neworth_conn.[ch]:
13738         * lib/polyshape.[ch]: adapted to take advantage of
13739         boundingbox.[ch] instead of relying on private (duplicate) code.
13741         * object/FS/flow.c:
13742         * object/GRAFCET/action.c:
13743         * objects/GRAFCET/condition.c:
13744         * objects/GRAFCET/vergent.c:
13745         * objects/GRAFCET/vector.c:
13746         * objects/SADT/annotation.c:
13747         * objects/SADT/arrow.c:
13748         * objects/ER/participation.c:
13749         * objects/UML/constraint.c:
13750         * objects/UML/implements.c:
13751         * objects/UML/lifeline.c:
13752         * objects/UML/message.c:
13753         * objects/UML/realizes.c:
13754         * objects/UML/generalization.c:
13755         * objects/UML/association.c:
13756         * objects/UML/dependency.c:
13757         * objects/FS/flow-ortho.c:
13758         * objects/network/bus.c:
13759         * objects/standard/arc.c:
13760         * objects/standard/bezier.c:
13761         * objects/standard/beziergon.c:
13762         * objects/standard/line.c:
13763         * objects/standard/polygon.c:
13764         * objects/standard/zigzagline.c:
13765         
13766         * objects/standard/polyline.c: Some *BBExtras structures changed
13767         names while moving to boundingbox.[ch]. A trivial mass-renaming.
13768         
13769 2001-05-20  Cyrille Chepelov  <chepelov@calixo.net>
13771         * app/disp_callbacks.c (ddisplay_canvas_events): Take into account
13772         wheel mouses for scrolling (from Patrick Sung <phsung@ualberta.ca>)
13774         * app/display.c (ddisplay_update_scrollbars): from Patrick's
13775         suggestion, remove the extra scrollable area (it was only visible
13776         to the scrollbars). This is experimental.
13777         
13778         * objects/custom/custom_object.c: If a shape's icon file doesn't 
13779         exist, warn and substitute a default icon, instead of crashing.
13780         (fixes #52913)
13781         
13782         * objects/network/network.c:
13783         * shapes/network/modularswitch.(shape|xpm) (NEW):
13784         * shapes/network/printer.(shape|xpm) (NEW):
13785         * shapes/network/genmonitor.(shape|xpm) (NEW):
13786         * shapes/network/computer.(shape|xpm) (NEW):
13787         * shapes/network/Makefile.am: four less objects, four more shapes.
13788         These were the last known RenderObjects. (phew !)
13790         * lib/Makefile.am:
13791         * lib/dummy_dep.h:
13792         * objects/sybase/Makefile.am: 
13793         * objects/network/Makefile.am: Removed the older Renderobjects
13794         from the build, and their infrastructure (not yet deleted,
13795         though).
13797         * shapes/network/sceadplug.shape:
13798         * shapes/network/antenna.shape:
13799         * shapes/network/modem.shape:
13800         * shapes/network/hub.shape:
13801         * shapes/network/rj45plug.shape:
13802         * shapes/sybase/client.shape:
13803         * shapes/sybase/dataserver.shape:
13804         * shapes/sybase/ltm.shape:
13805         * shapes/sybase/repserver.shape:
13806         * shapes/sybase/rsm.shape:
13807         * shapes/sybase/stableq.shape: Minor corrections (line widths were
13808         ten times too narrow).
13809         
13810 2001-05-19  Cyrille Chepelov  <chepelov@calixo.net>
13812         * objects/network/network.c:
13813         * shapes/network/sceadplug.(shape|xpm) (NEW):
13814         * shapes/network/antenna.(shape|xpm) (NEW):
13815         * shapes/network/modem.(shape|xpm) (NEW):
13816         * shapes/network/Makefile.am: four less objects, four more shapes.
13817         
13818         * lib/Makefile.am:
13819         * lib/diagramdata.c:
13820         * lib/render.h:
13821         * lib/string_prerenderer.[ch] (NEW):
13822         Add a new renderer primitive, predraw_string() (does nothing, to be
13823         used as a hook to optimise the character encodings if needed). 
13824         Added a string pre-renderer, which can be viewed as a filter
13825         renderer (to route draw_string() to predraw_string() and ignore
13826         the rest, in a first rendering pass)
13827         
13828         * app/render_eps.c: Took advantage of the above to make wholly
13829         optimised Postscript encoding page(s), even (especially) with 
13830         non-latin1 code (HAVE_UNICODE must be true).
13832         (#53512 in fact is wholly resolved).
13833         
13834 2001-05-18  Cyrille Chepelov  <chepelov@calixo.net>
13836         * lib/charconv.c: steps towards resolution of #53512 (inspired by
13837         Alexey Novodvorsky <aen@logic.ru>'s patch).
13839         * app/menus.c (dia_menu_signal_proxy): checked that the signal
13840         handler is not NULL before transferring control to it... (fixes #52836)
13842         * app/app_procs.c (app_init): removed non-constant initialiser
13843         (fixes #52950)
13845         * objects/custom/custom_object.c:
13846         * objects/custom/shape_info.[ch]:
13847         * objects/custom/test.xml: merged patch #53476 from Steven Hawkins 
13848         <skh@mathstar.com>. This add support for a <svg:text> shape
13849         element, and some related style properties (font, font height, 
13850         alignment)
13852         * doc/custom_shapes: a precision about the meaning of case in a
13853         SVG path (closes #52364)
13855         * lib/dummy_dep.h: fix for SGI IRIX 6.2 (#53053, reported and
13856         fixed by <drk@sgi.com>)
13857         
13858 2001-05-17  Cyrille Chepelov  <chepelov@calixo.net>
13860         * objects/network/network.c:
13861         * shapes/network/Makefile.am:
13862         * shapes/network/hub.(shape|xpm) (NEW):
13863         * shapes/network/flash.(shape|xpm) (NEW):
13864         * shapes/network/rj45plug.(shape|xpm) (NEW):
13865         More shapes, less renderobjects.
13867 2001-05-16  Cyrille Chepelov  <chepelov@calixo.net>
13868         
13869         * plug-ins/svg/render_svg.c: typo made exported ellipses
13870         corrupted (zero Y pseudo-radius).
13872         * objects/network/network.c:
13873         * objects/network/disc.c:
13874         * shapes/network/disc.(shape|xpm): Converted the first
13875         Renderobject into a shape. Normally, old diagrams should reload
13876         without problems (please check this against your diagrams). More
13877         flexibility should be gained that way. I intend to hunt and
13878         eradicate all renderobjects as I can commit cycles to that. 
13880         * objects/Makefile.am:
13881         * configure.in:
13882         * app/Makefile.am:
13883         * objects/sybase/sybase.c:
13884         * shapes/sybase/Makefile.am(NEW):
13885         * shapes/sybase/client.(xpm|shape) (NEW):
13886         * shapes/sybase/dataserver.(xpm|shape) (NEW):
13887         * shapes/sybase/ltm.(xpm|shape) (NEW):
13888         * shapes/sybase/repserver.(xpm|shape) (NEW):
13889         * shapes/sybase/rsm.(xpm|shape) (NEW):
13890         * shapes/sybase/stableq.(xpm|shape) (NEW): converted Sybase
13891         renderobjects into shapes. The Sybase objects are now not compiled
13892         anymore, and ready to be nuked if nobody objects in the next few weeks.
13893         
13894         * app/commands.c:
13895         * app/diagram.[ch]:
13896         * app/disp_callbacks.c:
13897         * app/display.[ch]:
13898         * app/interface.[ch]:
13899         * app/menus.[ch]:
13900         * app/modify_tool.c:
13901         * app/preferences.[ch]:
13902         * app/recent_files.c:
13903         * app/select.c: Added patch #52364 from Hubert Figuiere. This adds
13904         a menu bar reflecting the popup menu, to each display window. This
13905         is optional (changing the preference currently doesn't affect
13906         already opened windows; a few other rough edges to cut).
13908         * plug-ins/wpg/wpg.c:
13909         * plug-ins/xfig/xfig-import.c:
13910         * plug-ins/python/pydia-property.c:
13911         * plug-ins/python/pydia-properties.c:
13912         * plug-ins/python/pydia-geometry.c:
13913         * plug-ins/pstricks/render_pstricks.c:
13914         * lib/arrows.c:
13915         * objects/EML/dbox.c:
13916         * lib/ps-utf8.c: paleolithic C compilers choke on //. Should fix 
13917         #53054.
13919         * lib/ps-utf8.c: improved the clustering of alphabetic character
13920         definitions in custom encodings pages.
13921         
13922 2001-05-02  Hans Breuer  <hans@breuer.org>
13924         * lib/object.h : OBJECT_COMMON_PROPERTIES_OFFSETS correct type 
13925         of 'obj_bb' to PROP_TYPE_RECT
13927         * objects/custom/custom_object.c : take all quarks into account, 
13928         not only 4 as copy&paste suggests
13930         * objects/uml/objects.c : completed the implementation of the
13931         property api to avoid reading of totally bogus data. Removed
13932         the PROBABLY_DEAD_CODE. It actually was dead code, but not because
13933         there was too much but too less ...
13934   
13935         The above changes removed all known crashes (mentioned below) 
13936         from the Property API. Property access is still incomplete though.
13938         * objects/flowchart/box.c :
13939         * objects/flowchart/diamond.c :
13940         * objects/flowchart/ellipse.c :
13941         * objects/flowchart/parallelogram.c :
13942         * objects/uml/classicon.c :
13943         * objects/uml/state.c : calculate number of quarks from quark array 
13944         size instead of using hardcoded values for consistence and to avoid 
13945         future bugs like the above
13946         
13947         * objects/eml/nlist.c : include <string.h> for strcmp()
13949         * lib/dia_xml.c : relax g_warning for values, which
13950         appear to be too small. There is nothing which prevents
13951         them while saving
13953         * plug-ins/python/pydia-geometry.c : changed stringifying of
13954         geometry objects accept BezPoint back to %f, which does not
13955         crash anymore, because all the data is intialized now and it
13956         simply is more readable than %e ...
13958         * plug-ins/python/python-startup.py : removed dependency
13959         to PyGtk, because it isn't required here and probably won't
13960         in i.e.: export filters.
13962         * plug-ins/python/gtkcons.py : create the gtkoutfile even
13963         if sys.stderr.fileno() isn't supported
13965         * app/makefile.msc : make version 0.88
13966         * plug-ins/makefile.msc : make version 0.88 an added new
13967         xfig files to build
13969 2001-05-11  James Henstridge  <james@daa.com.au>
13971         * NEWS: remember to add news items this time.
13973         * dia.spec: update spec file for 0.88 release.
13975         * configure.in: up version number to 0.88
13977         * plug-ins/python/Makefile.am (EXTRA_DIST): fix up typo that was
13978         preventing any of the useful python scripts from being
13979         distributed.
13981         * sheets/Makefile.am (sheet-translation-report): fix bustage I
13982         introduced in my fixups for the 0.87 release :(
13984 2001-05-10  Lars Clausen  <lrclause@cs.uiuc.edu>
13986         * plug-ins/xfig/xfig-import.c: Finally got groups working.
13988 2001-05-09  Lars Clausen  <lrclause@cs.uiuc.edu>
13990         * plug-ins/xfig/xfig-import.c: Improvements to error handling and
13991         group manipulation.
13993 2001-05-09  Cyrille Chepelov  <chepelov@calixo.net>
13995         * lib/ps-utf8.[ch]:
13996         * lib/Makefile.am: fix makefile breakage which led to not
13997         including ps-utf8.[ch] in the released tarballs. 
13999 2001-05-09  James Henstridge  <james@daa.com.au>
14001         * Makefile.am (core-translation-report): dist scripts needed for
14002         this target, and change to $(srcdir) before running.
14004         * sheets/Makefile.am (EXTRA_DIST): actually dist the sheets.  DATA
14005         files aren't automatically included in the tarball by automake
14006         because they could be generated files.
14008         * objects/EML/Makefile.am (EXTRA_DIST): fix directory names.
14010         * doc/en/Makefile.am (install-data-hook): fix up where graphics
14011         are installed.
14013         * configure.in: up version number to 0.87
14015         * plug-ins/python/*.py: no longer necessary to explicitly set
14016         sys.argv, as python.c does it for us now (like it should).
14018         * plug-ins/python/gtkcons.py: fix up so it plays nicely as a dia
14019         python plugin.
14021         * plug-ins/python/python-startup.py: startup script that imports
14022         all modules in $(datadir)/dia/python and ~/.dia/python.
14024         * plug-ins/python/python.c (dia_plugin_init): change so that it
14025         only runs the $(datadir)/dia/python-startup.py script.  Make sure
14026         that sys.argv and __main__.__file__ are set when calling the
14027         startup script.
14029         * plug-ins/python/Makefile.am: update makefile.  Make it install
14030         gtkcons.py plugin.  I haven't set any other plugins to install, as
14031         they look like they are mainly for debugging purposes.
14033         * configure.in: add tests to detect if python is available, so we
14034         can build the python plugin.  Only run if --with-python passed to
14035         configure.
14037 2001-05-08  James Henstridge  <james@daa.com.au>
14039         * acinclude.m4: add macros for detecting python.
14041         * app/menus.c (dia_gnome_menu_get_widget): handle paths that point
14042         at GNOME_APP_UI_SUBTREE entries.
14043         (menus_add_path): function to add a menu item to the menubars.
14044         Uses a hash table to keep track of extra menu items it adds.  Also
14045         notifies the item factory about the entries so that accels can be
14046         saved for them.
14047         (menus_add_path): implement gtk only version.
14048         (menus_init): use menus_add_path() to add the menu.
14049         (plugin_callback): simplify.
14051 2001-05-08  Steffen Macke <sdteffen@yahoo.com>
14053         * app/menu.c: removed #ifndef GNOME; GNOME build was broken
14054         
14055 2001-05-08  Lars Clausen  <lrclause@cs.uiuc.edu>
14057         * plug-ins/xfig/xfig-export.c: 
14058         * plug-ins/xfig/xfig-common.c: 
14059         * plug-ins/xfig/xfig-import.c: 
14060         * plug-ins/xfig/xfig.c: 
14061         * plug-ins/xfig/xfig.h: 
14062         * app/Makefile.am: Added support for exporting to Fig format
14063         (except splits, which are less powerful in Fig).  Some refactoring
14064         along the way.
14066 2001-05-02  Hans Breuer  <hans@breuer.org>
14068         * plug-ins/python/debug_objects.py : added another
14069         test to get massive crashes from the Property API due
14070         to unintialized data.
14072         * app/menu.c : the callback_action wasn't incremented
14073         (should have checked my last optimization). Now more
14074         than one plug-in callback is supported again.
14076         * plug-ins/python/pydia-geometry.c : avoid crashes from
14077         glib, when trying to g_strdup_printf unintialized floats.
14079         * plug-ins/python/pydia-property.c : avoid crashes from
14080         because of string_data == NULL (PROP_TYPE_FILE, PROP_TYPE_STRING)
14082 2001-05-01  Hans Breuer  <hans@breuer.org>
14084         * objects/makefile.msc : added eml
14085         * objects/eml/instantiation.c : initialize 'inst' pointer
14086         before using, zero initialization for objects
14087         * objects/eml/interaction-ortho.c :
14088         * objects/eml/interaction.c : zero initialization for objects
14090         * app/menus.c : removed Gimp mru stuff which slipped in at
14091         2000-08-15, was never activated and will never be needed, 
14092         because of Steffens recent file list patch added at 2001-01-05.
14094         * objects/eml/*.c : some more zero initialization of objects
14095         to avoid infinite (uninitialized) bounding boxes
14097         Implemented a callback api which allows plug-ins to register
14098         menu call backs. Dia for Gnome should compile, but will need 
14099         some extra tweaking to make it work because I can't test it.
14101         * plug-ins/python/pydia-error.h :
14102         * plug-ins/python/pydia-render.c : moved Pxthon function return 
14103         value handling from pydia-render.c to pydia-error.h, to make it
14104         usable for
14105         * plug-ins/python/diamodule.c : implement callback function
14106         registration from and relaying to Python code
14108         * app/menus.c : register and use plug-in menu callbacks
14110         * lib/filter.[hc] : implement filter_register_callback() and
14111         filter_get_callbacks() for the above
14112         * lib/libdia.def : export them
14114         * plug-ins/python/debug_objects.py (new file): 
14115         sample using the above
14117 2001-04-27  Lars Clausen  <lrclause@cs.uiuc.edu>
14119         * plug-ins/shape/shape-export.c (new_shape_renderer): 
14120         The name of a shape is now taken from the dir, to conform with
14121         standard naming.
14123 2001-04-25  Lars Clausen  <lrclause@cs.uiuc.edu>
14125         * app/properties.c (properties_show): Added title containing
14126         object type, plus (hopefully) fix of the ghost properties dialog.
14128 2001-04-16  Cyrille Chepelov  <chepelov@calixo.net>
14130         * app/display.c: remove the display idle handler in case we
14131         destroy the ddisplay (caused crashes in ddd, probably random
14132         crashes elsewhere).
14134         * autogen.sh: 
14135         * configure.in:
14136         * Makefile.am: hack around gettext-0.10.36's new "features".
14137         
14138         * lib/properties.[ch]: added new function object_copy_props().
14139         Added new property type PROP_TYPE_ENDPOINTS
14141         * lib/connection.h: added support for load/saving through the
14142         properties interface.
14144         * lib/object.[ch]: object_load/save/copy_using_properties()
14145         support functions (code factorisations).
14146         
14147         * objects/GRAFCET/boolequation.c: check against null values in
14148         boolequation_set_value() and boolequation_destroy().
14150         * objects/GRAFCET/transition.c: Converted from lazyprops to
14151         standard properties. 31% less (x86) code !
14153         * objects/GRAFCET/condition.c: also converted from lazyprops to
14154         standard properties. Also killed lots of code.
14155         
14156 2001-04-13  Hans Breuer  <hans@breuer.org>
14158         * plug-ins/wmf/wmf.cpp : changed text conversion from
14159         g_utf8_utf16 to g_convert usage. The latter function is already
14160         available in tml's last "official" Gtk+ version (2000-12-26).
14161         This change allows to use recent Dia with either the official
14162         version or the latest cvs "gtk-1-3-win32-production"-branch.
14164 2001-04-14  Lars Clausen  <lrclause@cs.uiuc.edu>
14166         * Patch from David S. Thompson <dcthomp@mail.utexas.edu>:
14167         * app/disp_callbacks.c:
14168         - Allow submenus in DiaMenus.
14169         - Don't require DiaMenu.title to be non-null (so that
14170           submenus aren't required to have titles)
14172         * objects/FS/function.c:
14173         - object menu now has submenus, an almost complete list of
14174           standard-basis verbs, and a start on nouns.
14175         - box padding, dash length, and other visual attributes are
14176           scaled by the font size... eventually font height will be
14177           a function property.
14178         - draw functions with smaller font to make initial view hold
14179           a reasonable number of functions.
14180         
14181 2001-04-13  Cyrille Chepelov  <chepelov@calixo.net>
14183         * sheets/ER.sheet:
14184         * sheets/chronogram.sheet:
14185         * sheets/jigsaw.sheet:
14186         * sheets/sybase.sheet: Updated Dutch sheet translations from Dag
14187         Wieers <dag@wieers.com>
14189 2001-04-13  Hans Breuer  <hans@breuer.org>
14191         * app/app_procs.c (app_exit) : added g_return_if_fail (!app_exit_once)
14192         to ensure that all the deinitialization is only done once. Fixes
14193         recent app exit crash on win32
14195         * lib/dia_xml.c : provide isinf() replacement for msc which does only
14196         have _finite()
14198         * lib/libdia.def : updated
14200         * objects/makefile.msc : added wanlink.c 
14202         * objects/network/wanlink.c : added M_PI_2 definition for poor
14203         platforms which don't have one
14205         * objects/standard/arc.c :
14206         * objects/standard/zigzagline. c: part of ConectionBBExtras wasn't
14207         initialized which led to rather huge bounding boxes (try Ctrl^A on
14208         diagrams with Arcs or ZigZagLines).
14209         * objects/*/*.c : to avoid further bugs like the above changed all
14210         object initializations to g_malloc0 or g_new0
14213 2001-04-09  Cyrille Chepelov  <chepelov@calixo.net>
14215         * lib/paper.[ch]: get rid of "no previous prototype fo `foo'" by
14216         doing a s/T foo()/T foo(void)/ for all possible values of T and foo.
14218         * objects/UML/class.c: 
14219         * objects/UML/usecase.c:
14220         * objects/UML/large_package.c:
14221         * objects/UML/message.c:
14222         * objects/UML/object.c:
14223         * objects/UML/lifeline.c:
14224         * objects/FS/flow.c:
14225         * objects/FS/flow-ortho.c:
14226         * objects/FS/function.c:
14227         * objects/custom/custom_object.c:
14228         * objects/GRAFCET/vergent.c:
14229         * objects/chronogram/chronoref.c:
14230         * objects/SADT/box.c:
14231         * objects/SADT/annotation.c:
14232         * plug-ins/dxf/dxf-import.c:
14233         * plug-ins/xfig/xfig-import.c:
14234         * plug-ins/wpg/wpg.c:
14235         * app/command.c:
14236         * app/app_procs.c:
14237         * app/display.c: /* certainly more WIP than dead code there */
14238         Unused variables, unused static function definitions, forgotten or
14239         incomplete prototypes added or fixed, lack of const or unwanted const,
14240         etc. (mostly clean-ups of leftovers of the pre-properties era).
14241         Non-obvious cases bracketed by #define THIS_IS_PROBABLY_DEAD_CODE,
14242         please check these.
14244         * app/lineprops_area.c: More of the same. Missing prototypes
14245         added, and functions unused outside made static.
14247         * app/recent_files.c:
14248         * app/properties.c:
14249         * app/defaults.c: some variables are used only when doing a GNOME
14250         build.
14251         
14252         * app/magnify.c: missing #include <stdlib.h>.
14254         * app/paginate_gnomeprint.c: Unused variable; missing "message.h".
14256         These are a lot of clean-ups (by the way, this compiles and runs
14257         cleanly with "gcc-3.0 -O2 -Wall --std=gnu99" too !); please grep
14258         for DEAD_CODE, and if it's yours, judge it.
14259         
14260 2001-04-07  Cyrille Chepelov  <chepelov@calixo.net>
14262         * plug-ins/dxf-import.c: some progress with the arcs; still some
14263         clean-ups to do and line width scaling issues to figure out.
14265         * objects/standard/arc.c: start_point and end_point properties
14266         (duplicated from standard/line.c)
14268         * plug-ins/xfig/xfig-import.c: zip ! zap ! no more dead DXF import
14269         code there.
14270         
14271 2001-04-06  Cyrille Chepelov  <chepelov@calixo.net>
14273         * plug-ins/dxf-import.c: setlocale-related clean-ups and fixes ;
14274         preliminary support for arcs (doesn't work). Circles and ellipses are
14275         now transparent. Coordinate and width scaling are now a common 
14276         static constant (probably before morphing into a preference).
14277         
14278         * sheet/checktrans.py: improved error reporting. Made checktrans
14279         count lack of <name xml:lang="code"> as a lack of translation for
14280         language "code" (no, it's not a plot to bring down other
14281         language's scores !)
14282         
14283         * sheet/*.sheet: Ensured all sheets have an encoding="iso-8859-1"
14284         in the header, and have <name xml:lang="fr"> components.
14285         
14286 2001-04-05  Cyrille Chepelov  <chepelov@calixo.net>
14288         * objects/custom/custom_object.c: temporary hack to fix the shape
14289         bounding box reported by Ben A. Hetland. Proper fix isn't .87
14290         material, see bugzilla #52912.
14292 2001-04-05  Lars Clausen  <lrclause@cs.uiuc.edu>
14294         * objects/standard/image.c (get_directory): Now uses
14295         G_SEPARATOR_CHAR_S instead of "/"
14297         * sheets/network.sheet: 
14298         * sheets/Logic.sheet:
14299         * sheets/Flowchart.sheet:
14300         * sheets/Electric.sheet:
14301         * sheets/Circuit.sheet:
14302         * sheets/ER.sheet:
14303         * sheets/Pneumatic.sheet:
14304         * sheets/SDL.sheet:
14305         * sheets/UML.sheet:
14306         * sheets/GRAFCET.sheet:
14307         * sheets/MSE.sheet:
14308         * sheets/chronogram.sheet:
14309         * sheets/civil.sheet:
14310         * sheets/network.sheet:
14311         Danish translations.
14312         
14313         * objects/standard/image.c (get_directory): Changed get_directory
14314         to use g_dirname to find the directory part.
14316 2001-04-05  Cyrille Chepelov  <chepelov@calixo.net>
14318         * sheets/ER.sheet:
14319         * sheets/Electric.sheet:
14320         * sheets/Flowchart.sheet:
14321         * sheets/Logic.sheet:
14322         * sheets/network.sheet: More Dutch translations from Dag Wieers.
14324 2001-04-04  Cyrille Chepelov  <chepelov@calixo.net>
14326         * sheets/checktrans.py: now emits a warning when two descriptions
14327         for a single language code are found.
14329         * Makefile.am:
14330         * sheets/Makefile.am: -translation-reports now also depend on their
14331         checktrans.py
14332         
14333 2001-04-04  Cyrille Chepelov  <chepelov@calixo.net>
14335         * sheets/Circuit.sheet:
14336         * sheets/Contact.sheet:
14337         * sheets/Logic.sheet:
14338         * sheets/chronogram.sheet:
14339         * sheets/sybase.sheet: 
14340         Dutch translations from Dag Wieers <dag@wieers.com>
14342 2001-04-04  Cyrille Chepelov  <chepelov@calixo.net>
14344         * po-checktrans.py: Now shows the detailed counts alongside the
14345         percentage of translations.
14346         
14347 2001-04-03  Cyrille Chepelov  <chepelov@calixo.net>
14349         * Makefile.am:
14350         * po-checktrans (NEW):
14351         * po-checktrans.py (NEW): builds core-translation-report:
14352         percentages of core (gettext) translations done [Not placed into
14353         po/ where that should belong, because of integration fear^Wissues
14354         with gettextize]. 
14356         TO THE KIND ATTENTION OF PACKAGERS: core-translation-report and 
14357         sheets/sheet-translation-report probably ought to be copied on the 
14358         user's /usr/share/doc/dia (or equivalent) directory.
14360         * sheets/Makefile.am: sheet-translation-report now a simple
14361         EXTRA_DIST; make install won't install it by default. 
14362         
14363 2001-04-03  Cyrille Chepelov  <chepelov@calixo.net>
14365         * app/preferences.c: changed the default grid colour to something
14366         less intrusive. 
14368         * shapes/SDL/*.shape:
14369         * sheets/SDL.sheet: renamed all SDL shapes to conform to the
14370         "$LIBRARY - $NAME" convention. THIS REQUIRES FIXING THE EXISTING
14371         DIA FILES (well, for files using SDL), see the mailing list
14372         archive "SDL (ab)using the global shape namespace" for a script to
14373         do this conversion.
14375         * sheets/SDL.sheet: translated into French
14376         * sheets/network.sheet: fixed XML typos. Yay ! 100% :-)
14377         
14378 2001-04-02  Cyrille Chepelov  <chepelov@calixo.net>
14380         * lib/dia_xml.c: made data_point() more paranoid
14382         * sheets/Makefile.am:
14383         * sheets/checktrans (NEW):
14384         * sheets/checktrans.py: Made checktrans handle more gracefully the
14385         absence of python and python-xml packages, and made the error
14386         message more helpful.
14387         
14388 2001-04-01  Lars Clausen  <lrclause@cs.uiuc.edu>
14390         * lib/render_object.c (new_render_object): Made initial handles
14391         behave like on most other objects.
14393         * app/load_save.c (read_objects): Fixed premature free'ing ofr
14394         typestr causing garbage.
14396 2001-04-01  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
14398         * objects/FS/flow-ortho.c: Fixed a crashbug causes by not
14399         accouting for handle ordering through copy and save. (#51479)
14401 2001-03-31  Cyrille Chepelov  <chepelov@calixo.net>
14403         * sheets/Circuit.sheet: Norwegian translation mistagged to German.
14405 2001-03-31  Steffen Macke  <sdteffen@yahoo.com>
14407         * sheets/Circuit.sheet
14408         * sheets/UML.sheet
14409         * sheets/network.sheet: Updated German translations
14410         
14411 2001-03-30  Cyrille Chepelov  <chepelov@calixo.net>
14412         * lib/arrows.[ch]:
14413         * lib/widgets.c:
14414         * app/lineprops_area.c: The return of the revenge of the arrow
14415         heads. Now all types covered by ISO 10303-201 should be covered.
14416         
14417 2001-03-30  Cyrille Chepelov  <chepelov@calixo.net>
14419         * sheets/Flowchart.sheet: translations in probably Hungarian were
14420         a victim of cut-n-paste from the German one. Fixed (hopefully).
14421         * sheet/UML.sheet: translation in probably Norwegian was a victim
14422         of cut-n-paste from the French one. Fixed (hopefully).
14423         * sheets/Logic.sheet: French translation not tagged with
14424         xml:lang="fr".
14425         
14426         * sheets/checktrans.py:
14427         * sheets/Makefile.am: new file, sheet-translation-report, to be
14428         installed along the sheets, show how much of them has been
14429         translated into which language (I wish the result was prettier...)
14431         * po/README: most translators don't read this file, but anyway...
14433         * sheets/.cvsignore:
14434         * objects/network/.cvsignore: the usual negotiation with CVS.
14436 2001-03-30  Cyrille Chepelov  <chepelov@calixo.net>
14438         * sheets/*.sheet: French translations
14440 2001-03-28  Cyrille Chepelov  <chepelov@calixo.net>
14442         Added patch #52363 from Hubert Figuiere <hfiguiere@teaser.fr>:
14444         ** objects/network/network.c:
14445         ** objects/network/wanlink.c:
14446         ** objects/network/pixmaps/wanlink.c:
14447         ** sheets/network.sheet:
14448         ** objects/network/Makefile.am: a better object to use instead of
14449         the older WAN Connection.
14450         
14451         ** lib/geometry.[ch]: rotation matrix functions in geometry.c (derived from gimp)
14453         ** objects/GRAFCET/vector.c: renamed Vector to GRAFCETVector to avoid a
14454         name clash 
14456         * objects/GRAFCET/vector.c: Re-renamed GRAFCETVector into
14457         Arc; kept the C file name (because CVS wouldn't like it), and
14458         still registering the older object name (but advertising the newer
14459         one in sheets/GRAFCET.sheet).   
14461 2001-03-24  Hans Breuer  <hans@breuer.org>
14463         * app/dia.def : some plug-ins (currently only python, xfig) are using 
14464         functions from the dia executable. To get them working these functions 
14465         need to be explicit exported on win32. IMO the much cleaner way would
14466         be to move these functions to libdia, but that would require some
14467         long term restructuring ...
14469         * lib/libdia.def : updated
14471         * plug-ins/makefile.msc : build xfig plug-in
14473 2001-03-24  Hans Breuer  <hans@breuer.org>
14475         * app/diagram.c : g_strdup (dia->filename) because it will be
14476         g_free ()d
14478         * app/display.c : set ddisp->renderer to NULL after destruction.
14479         This may solve or help to identify erroneous access to it after
14480         destruction.
14482         * plug-ins/wmf/wmf.cpp : convert string from utf8 to wchar to
14483         get 'umlauts' working
14485 2001-03-22  Cyrille Chepelov  <chepelov@calixo.net>
14487         * object/chronogram/chronoline_event.c: stupid bug ; rises and falls
14488         were reversed... (look for the patch, and drink a beer to my
14489         stupidity)      
14490         
14491 2001-03-23  Hans Breuer  <hans@breuer.org>
14493         * app/app_procs.c : don't g_error () if the config directory
14494         can't be created (at least not on windoze) because it's quite
14495         common that the user don't read or understand the FAQ ...
14497         * app/cursor.c : use ddisplay_active () instead of active_display
14498         from app/display.c
14500         * app/display.[hc] : made active_display var static and provide
14501         an accessor funtion ddisplay_active_diagram ()
14503         * app/dia-props.c : don't store the active_diagram, but ask
14504         for it everytime it needed.
14506         * lib/properties.h : #include "intl.h"
14508         * lib/makefile.msc : need to take care of inclusion order to
14509         avoid clashes with gtk+2.0's gdk-pixbuf
14511         * objects/makefile.msc : added uml/stereotype.c to build
14513 2001-03-23  Lars Clausen  <lrclause@cs.uiuc.edu>
14515         * **/*.c: Added config.h to the remaining .c files, and changed
14516         all to be <config.h>.
14518 2001-03-22  Steffen Macke <sdteffen@yahoo.com>
14520         * lib/arrows.c
14521         * lib/arrows.h
14522         * lib/widgets.c
14523         * app/lineprops_area.c: added new arrow types with double
14524         heads
14525         
14526 2001-03-20  Steffen Macke <sdteffen@yahoo.com>
14528         * shapes/Civil/civil_gas_bottle.xpm
14529         * shapes/Civil/civil_gas_bottle.shape
14530         * sheets/civil.sheet
14531         * shapes/Civil/Makefile.am: Added gas bottle shape by Arne
14532         Battermann
14533         
14534 2001-03-20  Lars Clausen  <lrclause@cs.uiuc.edu>
14536         * objects/custom/shape_info.c (load_shape_info): 
14537         * objects/custom/shape_info.h: 
14538         * objects/custom/custom_object.c (custom_update_data): 
14539         Better support for text outside the box -- new attributes 'resize'
14540         and 'align' for text entity.  Align not fully supported yet.
14542         * lib/text.c (text_calc_boundingbox): Adding BB for cursor width.
14544 2001-03-20  James Henstridge  <james@daa.com.au>
14546         * app/interface.c (display_data_received_callback): comment out
14547         status message.
14549 2001-03-19  James Henstridge  <james@daa.com.au>
14551         * app/GNOME_Dia.oaf: rename from GNOME_Dia.oafinfo.
14553         * objects/UML/realizes.c: similar here.
14555         * objects/UML/implements.c: similar here.
14557         * objects/UML/component.c: similar here.
14559         * objects/UML/generalization.c: same here.
14561         * objects/UML/dependency.c: allow NULL for ->name and
14562         ->stereotype.  This fixes a number of problems in loading saved
14563         files.
14565         * lib/properties.c: various changes so that NULL string properties
14566         should work.
14568         * objects/standard/line.c (line_update_data):
14569         line->extra.start_long and line->extra.end_long were not being
14570         initialised.  This fixes potential problems with the bounding box
14571         of "Standard - Line" objects.
14573 2001-03-19  Hans Breuer  <hans@breuer.org>
14575         * app/commands.c : added win32 specific code to display a html
14576         file. #include "text.h" for text_delete_all prototype.
14578         * app/dia.ico :
14579         * app/dia.rc : (new) to give Dia win32 an icon
14581         * app/win32print.[ch] : new files to support direct postscript
14582         file printing on win32. Beware: it *requires* a ps-printer!
14584         * app/paginate_psprint.c : disable the signal code for win32 build
14585         and added small specific changes to support win32print.
14587         * app/makefile.msc : added win32print and linking shell32.lib
14589         * lib/libdia.def : updated
14591 2001-03-18  Kevin Breit <battery841@mediaone.net>
14593         * doc/en/dia-C.omf: Added file.  Dia should now list in the Nautilus
14594           Help tabs.
14596 2001-03-17  James Henstridge  <james@daa.com.au>
14598         * app/paginate_psprint.c (diagram_print_ps): add code that traps
14599         SIGPIPEs during printing.  This gets rid of a number of crashes
14600         caused by printing (eg. typing an incorrect print command).
14602         * dia.spec (%install): gzip the manpage.
14604         * lib/beziershape.c (beziershape_save): fix off by one error in
14605         beziershape save code, which was adding an extra segment to the
14606         object on save.
14608         * app/menus.c: add a separator in the gnome version of the help
14609         menu.
14611         * app/app_procs.c (app_init): add a --nosplash argument which
14612         disables the splash screen.
14614         * app/dia_embedd.c (main): don't leave the splash screen open for
14615         embeddable component.
14617         * app/splash.c (app_splash_init): the gtk_widget_show_now() call
14618         didn't seem to be showing the splash screen like expected, so I
14619         have replaced it with some code that calls gtk_main() until the
14620         first exposure of the window.
14622 2001-03-16  James Henstridge  <james@daa.com.au>
14624         * app/Makefile.am (EXTRA_DIST): add extra pixmaps.
14626         * objects/UML/Makefile.am (libuml_objects_la_SOURCES): add
14627         stereotype.h
14629         * lib/Makefile.am (libdia_a_SOURCES): add diavar.h here.
14631         * app/Makefile.am (dia_core_files): remove splash.h from file
14632         list, as it doesn't exist.
14634         * doc/en/Makefile.am (uninstall-local): remove the docdir on
14635         uninstall.
14637         * doc/Makefile.am (uninstall-local): target to remove the C
14638         symlink.
14640         * dia.spec (%files): include the documentation in the package.
14642         * app/menus.c (toolbox_menu_items): add menu item for manual,
14643         which calls help_manual_callback.
14645         * app/commands.c (help_manual_callback): find help file and load
14646         netscape to view it.
14648         * app/commands.h: add prototype for help_manual_callback()
14650         * doc/Makefile.am (helpdir): similar here.
14652         * doc/en/Makefile.am (helpdir): make the helpdir
14653         $(pkgdatadir)/help/en in the non gnome case.
14655         * configure.in (HAVE_GNOME): add conditional.
14657         * doc/en/Makefile.am: handle the graphics in a more general way,
14658         so it is easier for Kevin to add them to the build (just add them
14659         to the GRAPHICS var).
14661         * app/Makefile.am (embed_extra_print_files): make the case of
14662         building without gnome-print support but with bonobo support work.
14663         dia-embedd needs to be include the gnome-print
14665 2001-03-09  Cyrille Chepelov  <chepelov@calixo.net>
14667         * samples/Makefile.am: included all samples in the distribution....
14668         
14669 2001-03-09  Cyrille Chepelov  <chepelov@calixo.net>
14671         * configure.in: removed premature test for DPS. Added -*- m4 -*-
14672         at the beginning. Made HAVE_UNICODE non-default. po/es_ES.po has
14673         vanished, removed it from ALL_LINGUAS.
14675         * lib/charconv.[ch] (NEW): a very small wrapper around
14676         unicode_iconv to convert strings between utf8 and local charset
14677         (actually, ISO-8859-1, though one can do
14678         CFLAGS="-DEFAULT_8BIT_CHARSET=\"ISO-8859-2\"" and the like).
14680         * lib/ps-utf8.[ch] (NEW): A PostScript Unicoder ; a smallish
14681         library to help build Postscript streams which use as many custom
14682         font encodings as necessary to correctly represent all characters
14683         used (testing from users with non-latin1 and/or more than 256
14684         characters in routine use *very* welcome).
14686         * app/Makefile.am, lib/Makefile.am: integrated these into the
14687         build process.
14689         * shapes/Logic/.cvsignore (NEW): .cvsignore
14690         
14691         * app/render_eps.h: forwarded some changes Lars forgot to include.
14692         * app/render_eps.c: turned off ASCII85 and FILTERS, as this
14693         doesn't yet build.
14695 2001-03-08  Kevin Breit <battery841@mediaone.net>
14697         * doc/en/home_network.png: Added file.
14698         * doc/en/line_props.png: Added file.
14699         * doc/en/usage-objects.sgml: Added two graphics to file.
14700         * doc/en/usage-quickstart.sgml: Added one graphic to file.
14702 2001-03-06  Kjartan Maraas  <kmaraas@gnome.org>
14704         * app/grid.h: Place comment around text after #endif.
14705         * lib/bezier_conn.c: #include <string.h>.
14706         * lib/beziershape.c: #include <string.h>.
14707         * lib/connpoint_line.h: Comment after #endif.
14708         * lib/dia_dirs.c: #include <string.h>.
14709         * lib/element.c: Same.
14710         * lib/lazyprops.c: #include <config.h> and "intl.h".
14711         * lib/lazyprops.h: Comment out text after #endif.
14712         * lib/neworth_conn.c: #include <string.h>
14713         * lib/orth_conn.c: Same here.
14714         * lib/poly_conn.c: Here too.
14715         * lib/polyshape.c: And here.
14716         * lib/properties.c: Remove #include "intl.h" from here and add
14717         an array of static strings to work around bug in gettext that
14718         makes it miss strings in a #define body.
14719         * objects/GRAFCET/action_text_draw.h: Comment out text after #endif.
14720         * objects/GRAFCET/boolequation.h: Same here.
14721         * objects/chronogram/chronoline_event.h: Add prototype for
14722         destroy_cle().
14723         
14724 2001-03-05  Lars Clausen  <Lars R. Clausen <lrclause@cs.uiuc.edu>
14726         * objects/FS/function.c: 
14727         * objects/FS/flow.c: 
14728         * objects/FS/flow-ortho.c: 
14729         Updated to use properties.
14731 2001-03-03  James Henstridge  <james@daa.com.au>
14733         * lib/lazyprops.c (__propdlg_build_enum): translate the radio
14734         button labels when creating them.
14736 2001-02-28  Lars Clausen  <Lars R. Clausen <lrclause@cs.uiuc.edu>
14738         * objects/UML/actor.c
14739         * objects/UML/realizes.c 
14740         * objects/UML/implements.c 
14741         * objects/UML/generalization.c 
14742         * objects/UML/dependency.c 
14743         * objects/UML/constraint.c
14744         Updated to use properties.
14745         
14746         * objects/UML/stereotype.c 
14747         * objects/UML/stereotype.h
14748         Generalized to any kind of bracketting.
14749         
14750 2001-02-28  James Henstridge  <james@daa.com.au>
14752         * app/menus.c: add help entry to the help menu.  Need to get this
14753         working for the non GNOME case as well (maybe put help under
14754         $(datadir)/dia/help for non GNOME?)
14756         * doc/en/topic.dat: add a topic.dat file for GNOME menus.
14758         * doc/en/dia-manual.sgml (legalnotice): add an id attribute to
14759         this element so that we get a meaningful filename in the html
14760         translation.
14762         * doc/Makefile.am, doc/en/Makefile.am: new makefiles to handle the
14763         documentation.
14765         * configure.in (DB2HTML): add a check for the db2html program, and
14766         set an automake conditional if it is found.
14768         * Makefile.am: remove EXTRA_DIST rules that cover doc/ directory,
14769         and descend into doc/ directory while building.
14771         * configure.in (AC_OUTPUT): add doc/ makefiles to output list, now
14772         we need more complex rules for building the docs.
14774 2001-02-25  Hans Breuer  <hans@breuer.org>
14776         * config.h.win32 : some cleanup
14778         * app/prefererences.c : g_scanner_(freeze|thaw)_symbol_table
14779         are deprecated since glib-1.3.2. Sorry needing to use them
14780         contionally, but there is no glib-1.2 for win32
14782         * app/recent_files.c : use g_strescape (params) conditionally
14784         * lib/connection.c : include string.h for memcpy
14786         * lib/geometry.h : added some stuff for compatibility with
14787         msvc, which previously came from included config.h
14789         * lib/libdia.def : updated
14791         * objects/makefile.msc : updated
14793         * objects/GRAFCET/action.c(490) : fixed warning C4700: local variable 
14794         'extra' used without having been initialized
14796         * objects/network/bus.c(658) : initialize 'extra'
14798         * plug-ins/makefile.msc : updated
14800         * plug-ins/cgm/cgm.c :
14801         * plug-ins/pstricks/render_pstricks.c : 
14802         g_free() memory allocated by dia_image_rgb_data(). Plugs possibly 
14803         huge memory leaks.
14805         * plug-ins/python/python.c : use HAVE_DIRENT_H
14807 2001-02-23  Lars Clausen  <Lars R. Clausen <lrclause@cs.uiuc.edu>
14809         * lib/connection.c (connection_update_boundingbox): 
14810         Made the BB shrink on right and lower sides, too.
14812 2001-02-23  Kjartan Maraas  <kmaraas@gnome.org>
14814         * */*.c: #incude <config.h> at the top.
14815         * */*.h: Remove include of "config.h" since it should only
14816         be included in .c files and at the very top for things to
14817         work.
14818         * sheets/*.sheet: Updated Norwegian translations.
14819         
14820 2001-02-22  Lars Clausen  <Lars R. Clausen <lrclause@cs.uiuc.edu>
14822         * objects/UML/small_package.c: 
14823         * objects/UML/class.c: 
14824         * objects/UML/node.c: 
14825         * objects/UML/usecase.c:
14826         * objects/UML/lifeline.c: 
14827         * objects/UML/message.c:
14828         Various cleanup of properties in particular.  Now much more use of
14829         standard properties.
14831         * lib/diagramdata.c (layer_render): Visualization of bounding
14832         boxes, for debugging purpoises.
14834 2001-02-22  Cyrille Chepelov  <chepelov@calixo.net>
14836         * lib/geometry.h:
14837         * lib/connection.[ch]:
14838         * lib/poly_conn.[ch]:
14839         * lib/polyshape.[ch]:
14840         * lib/bezier_conn.[ch]:
14841         * lib/beziershape.[ch]:
14842         * lib/orth_conn.[ch]:
14843         * lib/neworth_conn.[ch]:
14844         * lib/element.[ch]: Changed a bit the _update_boundingbox()
14845         interface. Now the parent elements have an extra_spacing
14846         structure, which child objects just need to fill, to take care of
14847         most arrow & line width extra space needs.
14849         * objects/**/*.c: updated all objects to the new interface.
14850         While at it, killed all instances of (Object *) downcasts (phew !)
14852         * objects/GRAFCET/condition.c: removed the arrowhead, which IEC848
14853         doesn't speak about.
14854         
14855 2001-02-21  Lars Clausen  <Lars R. Clausen <lrclause@cs.uiuc.edu>
14857         * sheets/Logic.sheet: New sheet for Logic symbols.
14859 2001-02-21  James Henstridge  <james@daa.com.au>
14861         * app/menus.c (dia_gnome_menu_get_widget): new function to find a
14862         widget by its path name.  Walks the GnomeUIInfo heirachy rather
14863         than widget tree, compares untranslated label names and ignores
14864         underscores in the labels.
14865         (menus_get_item_from_path): use dia_gnome_menu_get_widget so that
14866         lookups are not dependent on the current locale, as with
14867         gnome_app_find_menu_pos.
14869         * acconfig.h: guard against multiple inclusion of config.h.
14871         * app/select.c (select_style_callback): simply set the selection
14872         style to the value of action.
14874         * app/menus.c (menus_init): simplify the item factory based menu
14875         code a bit.  It looks like it was using some code cut and pasted
14876         from the gimp, which looked a bit unnecessary.  Things work fine
14877         without it.
14878         (selectmenu): set the action to the type of selection mode
14879         requested.
14880         (display_menu_items): use the symbolic enumeration values for the
14881         action field.
14883         * app/plugin-manager.c: 
14884         * app/plugin-manager.h: 
14885         * app/filedlg.c:
14886         * app/filedlg.h: 
14887         * app/select.c:
14888         * app/select.h: change prototypes.
14890         * app/commands.c: update all callback prototypes, and get rid of
14891         some #ifdef GNOME's.
14893         * app/commands.h: change function prototypes.
14895         * app/dia_embedd.c (save_fn):
14896         s/ex_Bonobo_IOError/ex_BonoboStorage_IOError/
14898         * app/menus.c (menus_init): for gnome menus, use
14899         gnome_app_fill_menu_custom and pass in a GnomeUIBuilderData
14900         structure that proxies the callbacks to have the same signature as
14901         GtkItemFactory type 1 callbacks.
14902         (menus_init): for GTK menus, change from callback type 2 to type
14903         1.
14904         (display_menu_items): add back tearoffs.  I don't know who removed
14905         these for the gtk menu case.
14907 2001-02-20  Kevin Breit <battery841@mediaone.net>
14909         * doc/en/usage-objects-special.sgml: Fixed a few of the special
14910         object descriptions.  More to come in the next few days.
14912 2001-02-20  Lars Clausen  <lrclause@cs.uiuc.edu>
14914         * app/render_eps.c: Fixed for internationalized floating point
14915         output. 
14917         * objects/UML/note.c: Fixed properties -- was missing
14918         Get/ApplyPropertiesFunc.  Also improved update to recalculate text
14919         position. 
14921 2001-02-19  Lars Clausen  <lrclause@cs.uiuc.edu>
14923         * plug-ins/xfig/xfig-import.c: 
14924         File added importing xfig files.  Still very rough, but good
14925         enough to let others hack on it.
14927 2001-02-07  Cyrille Chepelov  <chepelov@calixo.net>
14929         * app/interface.c:
14930         * app/linewidth_area.c:
14931         * lib/lazyprops.c:
14932         * lib/properties.c:
14933         * lib/widgets.c:
14934         * objects/ER/attribute.c:
14935         * objects/ER/entity.c:
14936         * objects/ER/relationship.c:
14937         * objects/custom/custom_object.c:
14938         * objects/flowchart/box.c:
14939         * objects/flowchart/diamond.c:
14940         * objects/flowchart/ellipse.c:
14941         * objects/flowchart/parallelogram.c:
14942         * objects/standard/box.c:
14943         * objects/standard/textobj.c: per Vlad Harchev's request, made
14944         page sizes of gtk_adjustments different than their step sizes.
14945         When sensible values of page size weren't found (overwhelming
14946         majority of cases), page sizes were set to 10.0 * respective step
14947         size.   
14949 2001-02-07  Lars Clausen  <lrclause@cs.uiuc.edu>
14951         * objects/network/hub.c: 
14952         Patch from Hubert Figuiere applied, adding connection points.
14954 2001-02-02  James Henstridge  <james@daa.com.au>
14956         * app/display.c (new_display): set update id to 0 here.
14957         (ddisplay_update_handler): rename from ddisplay_flush, and set
14958         update_id to 0 at end of processing.
14959         (ddisplay_flush): new implementation that simply sets an idle
14960         handler to perform the actual drawing.
14962         * app/display.h: add structure member to hold the redraw idle
14963         handler id.
14965 2001-01-31  Lars Clausen  <lrclause@cs.uiuc.edu>
14967         * objects/standard/ellipse.c (ellipse_copy): 
14968         * objects/standard/zigzagline.c (zigzagline_copy): 
14969         Fix of copying provided by Martin Hawlisch.
14971 2001-01-23  Kevin Breit <battery841@mediaone.net>
14973         * doc/en/graphics/: added directory
14975         * doc/en/graphics/greendots.png: added file
14977         * doc/en/*sgml: made minor and some major changes to prepare for 1.4
14978         release.
14980 2001-01-23  Kevin Breit <battery841@mediaone.net>
14982         * doc/en/*sgml: made some grammar changes and fixed a few markup bugs.
14983                         thanks to John Fleck!
14985 2001-01-21  Kevin Breit <battery841@mediaone.net>
14987         * doc/en/*sgml: made just minor changes to a few lines; nothing major.
14989 2001-01-12  Michael Meeks  <michael@helixcode.com>
14991         * app/dia_embedd.c (init_server_factory): do a bonobo_activate
14992         so our POA gets setup properly.
14994         * app/paginate_gnomeprint.c (paginate_gnomeprint): g_free
14995         things we g_malloc.
14997         * configure.in: Use bonobox_print.
14999         * app/dia_embedd.c (embeddable_factory): add print interface.
15000         (object_print): impl.
15002 2001-01-11  Michael Meeks  <michael@helixcode.com>
15004         * app/dia_embedd.c (embeddable_factory): aggregate PersistFile.
15005         (load_fn, save_fn): impl.
15006         (view_factory): hide modified status bar, & use activate fn.
15007         (refresh_view): force redraws of the views.
15008         (view_show_hide): split from
15009         (dia_view_activate): here.
15011         * app/diagram.c (diagram_load_into): split from diagram_load.
15012         (new_diagram): simplify bu splittin stuff into
15013         (diagram_init): here.
15015 2001-01-10  Steffen Macke <sdteffen@yahoo.com>
15017         * shapes/jigsaw/*.shape: replaced #000000 with foreground
15018         and #ffffff with background
15019         
15020 2001-01-08  Steffen Macke <sdteffen@yahoo.com>
15022         *configure.in: GTK+-build was broken due to missing
15023         have_bonobo=no
15024         
15025 2001-01-06  Michael Meeks  <michael@helixcode.com>
15027         * app/dia_embedd.c (main): add running context support.
15028         (dia_embeddable_destroy): remove old running object counting.
15029         (embeddable_factory): ditto.
15030         (view_factory): comment out menu path hiding.
15032         * lib/sheet.c (load_register_sheet): use free to free
15033         stuff from libxml not g_free.
15035         * acconfig.h: kill cover for USE_BONOBOX and USE_OAF
15037         * configure.in: remove USE_OAF checks, check for a precice
15038         Bonobo version >= 0.31, revamp bits.
15040         * app/dia_embedd.c (init_server_factory): upd.
15041         (init_dia_factory): remove OAF conditionals, everything uses
15042         oaf now.
15044         * app/GNOME_Dia.oafinfo: rename OAFIIDs
15046         * app/Makefile.am: remove ancient gnorba code.
15047         rename dia.oafinfo to GNOME_Dia.oafinfo
15049 2001-01-07  Hans Breuer <Hans@Breuer.Org>
15051         * config.h.win32
15052         * install.win32
15053         * readme.win32 : some more files required or useful to build 
15054         Dia on win32
15056         * plug-ins/wmf/wmf.cpp : fixed open issues like fill_arc and
15057         fill_bezier implementation, boundary drawing in fill mode, etc.
15058         Next one complaining gets the source, uncommented ...
15060         * shapes/network/router-symbol.xpm 
15061         * shapes/network/switch-atm-symbol.xpm 
15062         * shapes/network/switch-symbol.xpm : removed "-*- picture -*- "
15063         from /* XPM */ header, cause it stopped Dia/gdk_pixbuf to detect 
15064         the files as XPMs. Maybe the X versions of these functions are more
15065         tolerant ...
15067 2001-01-06  Steffen Macke <sdteffen@yahoo.com>
15069         * plug-ins/python/Makefile.am: added libart path
15071         * plug-ins/python/python.c: added dirent.h
15073         * configure.in: added es_ES and pt_BR to ALL_LINGUAS
15074         
15075 2001-01-06  Hans Breuer <Hans@Breuer.Org>
15077         * objects/uml/actor.c
15078         * objects/uml/branch.c
15079         * objects/uml/class.c
15080         * objects/uml/classicon.c
15081         * objects/uml/component.c
15082         * objects/uml/large_package.c
15083         * objects/uml/node.c
15084         * objects/uml/note.c
15085         * objects/uml/object.c
15086         * objects/uml/small_package.c
15087         * objects/uml/state.c
15088         * objects/uml/usecase.c : started to implement the generic property
15089         interface for the uml objects. Would appreciate some help on how
15090         to implement properties which are list of properties themselves,
15091         e.g. member functions and their parameters of UMLClass.
15093 2001-01-06  Hans Breuer <Hans@Breuer.Org>
15095         * plug-ins/python/diamodule.c : finally ported to win32.
15096         Added new objects and implemented register_export function.
15098         * plug-ins/python/pydia-object.h
15099         * plug-ins/python/pydia-display.c
15100         * plug-ins/python/pydia-handle.c
15101         PyObject_HEAD_INIT needs some tweakink on win32. Done in
15102         pydia-object.h; others files simply using it.
15104         * plug-ins/python/pydia-layer.c : reflect 
15105         layer_find_closest_connection(_)point renaming
15107         * plug-ins/python/pydia-object.c : add property properties.
15108         Also change bounding_box to DiaRectangle.
15110         * plug-ins/python/python.c : extended error reporting; use
15111         all *.py files from Dia's plug-in dir instead of hardcoded
15112         test.py. This sollution should be fine with Win32, but on
15113         Unix it may need some tweaking (dunno) ...
15115         * plug-ins/python/export-object.py
15116         * plug-ins/python/export-render.py : test and documentation 
15117         implementations for export filter implementations in Python
15119         * plug-ins/python/pydia-color.[hc]
15120         * plug-ins/python/pydia-diagramdata.[hc]
15121         * plug-ins/python/pydia-error.[hc]
15122         * plug-ins/python/pydia-export.[hc]
15123         * plug-ins/python/pydia-font.[hc]
15124         * plug-ins/python/pydia-geometry.[hc]
15125         * plug-ins/python/pydia-image.[hc]
15126         * plug-ins/python/pydia-properties.[hc]
15127         * plug-ins/python/pydia-property.c
15128         * plug-ins/python/pydia-render.c : new objects in new files 
15130         * plug-ins/python/makefile.am : added new files but can't test it
15132         * plug-ins/python/pydia.def
15133         * plug-ins/python/makefile.msc : for win32 build
15135         * plug-ins/cgm/cgm.c
15136         * plug-ins/dxf/dxf-import.c
15137         * plug-ins/dxf/dxf-export.c
15138         * plug-ins/hpgl/hpgl.c : reflect export API change
15140         * plug-ins/shape/shape-export.c : reflect export API change
15141         and check for libart (better the availibility of a png exporter) 
15142         at run-time instead of compile-time. 
15144 2001-01-06  Steffen Macke <sdteffen@yahoo.com>
15146         * app/recent_files.h was missing from Hans's commit
15148         * plug-ins/shape/shape_export.c: shape export was broken
15149         due to interface changes
15150         
15151 2001-01-05  Hans Breuer <Hans@Breuer.Org>
15153         Applied Steffen's recent file list patch :
15154         * app/Makefile.am : added recent_files.[hc]
15155         * app/diagram.c : add files to recent file list
15156         * app/menus.c : add recent file menu
15157         * app/app_procs.c : changed initialization order to
15158         make recent file list work with command line processing.
15160         The Filter export()/import() functions have got an additional 
15161         parameter to allow multiple filters via one C callback (required
15162         for Python bindings)
15164         * app/commands.[hc] : corrected the signature for gtk menu callback
15165         functions, which actually use the second or third parameter. This
15166         is the absolute minimum change to make these functions/menu entries
15167         work again. Using the other possible gtk menu callback signature
15168         would have required one more function to change. (see mailing list
15169         thread "Objects/Align/Equal Distance" for more information.
15171         * app/disp_callbacks.c : applied Gustavo J.A.M. Carneiro's
15172         zoom-combo focus patch
15174         * app/display.c
15175         * app/interface.c : wrapped the Zoom Combo code into 
15176         #ifndef WITHOUT_ZOOM_COMBO because IHMO it isn't an useabilty
15177         improvement but cluttering the user interface. Also it wasn't
15178         compiling on Win32 anyway. The win32 version does define 
15179         WITHOUT_ZOOM_COMBO to keep the old look. 
15180         There are plans to use the statusbar to display size and placement
15181         of selected objects, whereas the Zoom Combo would need to get out
15182         of the way as well.
15184         Added "Save Changes?" to diagram close dialog. Hopefuly the
15185         Yes/No/Cancel option isn't too much windoze like. IHMO this is
15186         an useability improvement.
15188         * app/export_png.c
15189         * app/filedlg.c
15190         * app/load_save.c
15191         * app/layer_dialog.c
15192         * app/paginate_psprint.c
15193         * app/render_eps.c
15194         - reflect signature changing of filter->export function
15195         - replaced '/' with G_DIR_SEPARARTOR where appropriate
15197         * app/diaunitspinner.c
15198         * app/render_libart.c
15199         added misssing headers like <string.h>
15201         * app/object_ops.c : fixed copy&paste bug in dialog string
15203         * app/splash.c : gdk_widget_show_now () does not ensure actual
15204         drawing of the splash screen, at least not on win32. Reuse the
15205         previous implementation with gtk_main_iteration() again.
15207         * */makefile.msc : make use of the build module (available in
15208         gnome-cvs/build. Updated for other source changes
15210         * lib/filter.h : added an user_data pointer to <ex/im>port()
15211         function signature and Dia<Im/Ex>portFilter to allow different
15212         filters to reuse the same callback function
15214         * lib/font.c : #include <string.h>
15216         * lib/orth_conn.c 
15217         * lib/poly_conn.c 
15218         * lib/poly_shape.c 
15219         * lib/neworth_conn.c
15220         * lib/text.c : don't mix allocator functions (g_)realloc, free, ...
15222         * */*.def : export function definition files required by win32 build
15224         * objects/custom/custom.c : #include <string.h>
15226         * plug-ins/pstricks/render_pstricks.c
15227         * plug-ins/shape/shape_export.c
15228         * plug-ins/svg/render_svg.c
15229         reflect changes to filter export function signature
15231         * plug-ins/wmf/wmf.cpp : fixed indent and scaling. It now should
15232         mostly work as expected
15233         * plug-ins/wmf/wmf_gdi.[hc] : Updated comment. Still not used
15234         to build the wmf plug-in because on the one hand the GDI emulation 
15235         isn't finished and on the other hand it isn't required when building
15236         for win32. Is there anybody out there, who wants to save WMF on non
15237         windoze platforms ?
15239         * plug-ins/wpg/wpg.cpp : fixed scaling to take axis dependent
15240         offset into account.
15242 2001-01-02  Steffen Macke <sdteffen@yahoo.com>
15244         * app/Makefile.am: added missing plug-ins to run_dia.sh
15246         * lib/paper.c: added paper sizes A0, A1, A2
15248         * objects/UML/class.c
15249         objects/UML/class.h
15250         objects/UML/class_dialog.c: added support for colored UML
15251         classes
15252         
15253 2000-12-30  Kevin Breit <battery841@mediaone.net>
15255         * doc/en/usage-customization.sgml: added more content
15257 2000-12-24  Kevin Breit <battery841@mediaone.net>
15259         * doc/en/usage-layers.sgml: added file, contributed by Remypsb
15260         <remy.viard@laposte.net>
15262 2000-12-24  Steffen Macke <sdteffen@yahoo.com>
15264         * added limiting lines to Civil Engineering sheet,
15265         fixed vertical pump icon
15266         
15267 2000-12-20  Steffen Macke <sdteffen@yahoo.com>
15269         * updated/additional Civil Engineering shapes: better icons,
15270         shapes use foreground/background colors now and are filled
15271         
15272 2000-12-03  Kevin Breit  <battery841@mediaone.net>
15274         * doc/en/dia-manual.sgml Integrated a few diffs.  New section should be
15275         the selection <sect1>
15277 2000-11-29  Fredrik Hallenberg  <hallon@lysator.liu.se>
15279         * app/load_save.c (diagram_data_save): avoid using obsoleted
15280         libxml calls (only matters when compiling with libxml2)
15282 2000-11-25  James Henstridge  <james@daa.com.au>
15284         * app/disp_callbacks.c (ddisplay_drop_object): add a function to
15285         handle the tool drops on the canvas.
15287         * app/interface.c (display_data_received_callback): do the check
15288         to make sure that the drag is from a local toolbox here as well.
15290         * app/interface.c (create_tools): unref the pixmap/mask after
15291         creating the GtkPixmap.
15292         (tool_setup_drag_source): function to set up a drag source for
15293         create object tool buttons.
15294         (create_tools): setup drag source for CREATE_OBJECT_TOOL's.
15295         (fill_sheet_wbox): same here.
15296         (create_display_shell): set up the display canvas as a drag
15297         destination.
15298         (display_drop_callback, display_data_received_callback): functions
15299         to handle drops of tool buttons.
15301         * app/menus.c (menus_init): don't use gnome_popup_menu_new().  It
15302         does weird shit to the user_data pointer for a menu item.  Object
15303         alignment should work again now.
15305         * app/splash.c (get_logo_pixmap): don't unref the bitmap if it is
15306         NULL, and mark this function static.
15307         (app_splash_init): use gtk_widget_show_now() instead of the
15308         gtk_main_iteration loop.
15309         (app_splash_init): connecting gtk_widget_destroy to the destroy
15310         signal of a widget seems pretty useless.
15312 2000-11-23  Kevin Breit <battery841@users.sourceforge.net>
15314         * doc/en/dia-manual.sgml:
15315                 Added sect1 for advanced object types.  Starting development
15316                 on that part.
15318 2000-11-18  Kevin Breit <battery841@mediaone.net>
15320         * doc/en/dia-manual.sgml:
15321                 Stupid spelling fixes.
15323 2000-11-18  Kevin Breit <battery841@mediaone.net>
15325         * doc/en/dia-manual.sgml:
15326                 Just some small changes I made.  Props to Greg LeBlanc on the
15327                 recommendations.
15329 2000-11-17  Alexander Larsson  <alla@lysator.liu.se>
15331         * app/display.c:
15332         (ddisplay_add_display_area): Clip input rectangle to
15333         the visible part of the display.
15334         (ddisplay_scroll): Optimization, don't scroll and
15335         redraw if moving to the same position as before.
15337         * app/render_libart.c (renderer_libart_copy_to_window):
15338         Removed sanity check. Now moved to ddisplay_add_display_area().
15340         * lib/diavar.h:
15341         Added return at end of file.
15342         
15343 2000-11-13 Kevin Breit <battery841@mypad.com>
15344         * doc/en/dia-manual.sgml
15345                 Commited manual changes from Henry House <hajhouse@houseag.com>
15347 2000-10-21 Hans Breuer <Hans@Breuer.Org>
15348         * lib/beziershape.c :
15349                 The previous code was accessing unowned memory due to IHMO
15350                 wrong index calculation. Now it appears to be fixed.
15351                 *Please Review!*
15353         * lib/makefile.msc
15354         * plug-ins/makefile.msc
15355         * objects/makefile.msc
15356         * app/makefile.msc: (new files)
15357                 Makefiles for Dia on Win32, Micro$oft VC only.
15359         * plug-ins/pstricks/render_pstricks.c
15360         * plug-ins/dxf/dxf-import.c
15361         * plug-ins/shape/shape-export.c
15362         * plug-ins/svg/render_svg.c
15363         * app/commands.c
15364         * app/filedlg.c
15365         * app/preferences.c
15366         * app/render_eps.c
15367         * lib/sheet.c
15368         * lib/plug-ins.c
15369         * objects/custom/custom.c
15370         * objects/standard/image.c
15371                 portability (not only win32): use HAVE_UNISTD_H, HAVE_DIRENT_H 
15372                 where   appropriate, add missing prototypes like <string.h>
15374         * plug-ins/wmf/wmf_gdi.cpp
15375         * plug-ins/wmf/wmf_gdi.h:
15376                 start of wmf write functions for non Win32 platform. Not 
15377                 finished yet. The other way to get it working maybe to
15378                 link the plug-in against wine libs.
15379                 
15380         * plug-ins/wpg/wpg.c : add missing brace
15382         * app/load_save.c :
15383                 Handling for unknown objects at load time. Previously Dia
15384                 was crashing, if you try to load a file referencing objects
15385                 whiches plug-ins aren't installed/available. Now it spits out 
15386                 a warning and ignores the unknown objects.
15388         * app/interface.c
15389                 toolbox DND support for files like The Gimp does it.
15391         * app/main.c
15392         * app/app_procs.h
15393                 Simple splash screen support and usage.
15395         * app/app_procs.c
15396                 Splash screen, portability fixes, dont' g_error if there is
15397                 g_get_homedir return NULL. This may remove the one and only
15398                 FAQ for Win32.
15400         * app/menus.c :
15401                 Make it compile without ENABLE_NLS
15403         * app/render_libart.c :
15404                 Sanity check to avoid calling libart with wrong window coordinates.
15405                 They come from the update handler. Direct Gdk is dealing nicely
15406                 with coordinates out of range, libart does access un-owned memory
15407                 in this case, mostly causing crashes.
15409         * app/winmain.c: (new file) Export the Win32 Gui version of the
15410                 main function. This file is only required for Windoze.
15412         * app/splash.c: (new file) splash screen implementation
15414         * lib/color.h
15415         * lib/font.h
15416         * lib/diavar.h: (new file)
15417                 moved special variable export code to diavar.h, because it is
15418                 needed in color.h and font.h
15420         * lib/paper.c :
15421                 M$VC cann't export inlined functions. Quick hack to let it
15422                 link again. Probably the glib mechanics should be used here?
15424         * objects/UML/lifeline.c : initialize var before usage
15426         * objects/GRAFCET/step.c : removed unused var
15428 2000-10-14  James Henstridge  <james@daa.com.au>
15430         * app/render_gnomeprint.c (draw_image): change code so images
15431         don't get flipped when printing.
15433         * app/paginate_gnomeprint.c (diagram_print_gnome): check to make
15434         sure that the return value of
15435         gnome_print_context_new_with_paper_size is not NULL.
15437         * app/render_gnomeprint.c (draw_arc): add code to convert arcs
15438         into a series of bezier segments.
15439         (fill_arc): similar code to handle filled arc segments.
15441 2000-10-12  Fredrik Hallenberg  <hallon@lysator.liu.se>
15443         * app/app_procs.c
15444         * app/commands.c
15445         * app/dia-props.c
15446         * app/diagram.c
15447         * app/diagram.h
15448         * app/disp_callbacks.c
15449         * app/display.c
15450         * app/linewidth_area.c
15451         * app/paginate_psprint.c
15452         * app/preferences.c
15453         * app/undo.c
15454         * app/font.c
15455         * app/message.c
15456         * app/neworth_conn.c
15457         * app/orth_conn.c
15458         * objects/standard/box.c: various small changes to get rid of 
15459         annoying warnings (eg faulty prototypes and unused variables)
15461         * app/disp_callbacks.c
15462         * app/cursor.h
15463         * app/magnify.c
15464         * app/magnify.h: update magnify tool icon when pressing/releasing
15465         shift. I will try to make something more general so that similar
15466         things can be used by other tools.
15468         * shapes/SDL/inout.shape
15469         * shapes/SDL/return.shape: fixed some typos
15471 2000-10-09  James Henstridge  <james@daa.com.au>
15473         * objects/custom/shape_info.c (parse_path): apply patch from
15474         Robert Young <robertdotyoung@dsto.defence.gov.au> to fix bug
15475         #25221
15477 2000-10-08  James Henstridge  <james@daa.com.au>
15479         * objects/standard/image.c (image_set_props): if the file could not
15480         be loaded, show the broken image icon.
15482         * plug-ins/Makefile.am (SUBDIRS): add shape to the subdirs list.
15484         * plug-ins/shape/*: the shape export plugin by Steffen Macke.
15486         * app/interface.c (fill_sheet_wbox): use gdk-pixbuf to load the
15487         object icon when loading from a file.  This allows you to have PNG
15488         icon files for shapes.
15490 2000-10-07  James Henstridge  <james@daa.com.au>
15492         * app/Makefile.am (dia_LDADD): remove GDK_IMLIB_LIBS reference.
15494         * lib/Makefile.am, app/Makefile.am (INCLUDES): remove
15495         GDK_IMLIB_CFLAGS reference.
15497         * app/commands.c (help_about_callback): remove imlib code.
15499         * lib/dia_image.c: only include the pixbuf version of the image
15500         routines.
15502         * acconfig.h: remove the HAVE_GDK_PIXBUF flag from here.
15504         * configure.in (CPPFLAGS): remove the check for imlib, as we now
15505         require gdk-pixbuf.
15507         * plug-ins/pstricks/render_pstricks.c (new_pstricks_renderer):
15508         conditionally define \setfont as well.
15510 2000-10-05  James Henstridge  <james@daa.com.au>
15512         * plug-ins/pstricks/render_pstricks.c (new_pstricks_renderer): fix
15513         preamble so that we define \setlinejoinmode and \setlinecaps
15514         commands conditionally on them being undefined.  This way, the
15515         pstricks output files should work without modification, and will
15516         support the commands when they are implemented in pstricks.
15518 2000-10-05  Szabolcs Ban  <shooby@gnome.hu>
15520         * dia.desktop: added hungarian translations to dia.desktop
15522 2000-10-04  James Henstridge  <james@daa.com.au>
15524         * sheets/UML.sheet: fix typo.
15526         * objects/custom/shape_info.c: use strtod instead of g_strtod.
15527         (parse_path): actually call setlocale around strtod calls.
15529         * lib/dia_xml.c: use strtod rather than g_strtod.  We wrap each
15530         call in setlocale(LC_NUMERIC, "C"), so there is no reason to call
15531         the g_strtod wrapper.
15533         * shapes/SDL/: add SDL shapes from Rubens Ramos
15534         <rubens_ramos@yahoo.com>
15536         * acinclude.m4 (DIA_CHECK_CFLAG): fix up macro.
15538         * sheets/Makefile.am (SHEETS): add SDL.sheet to list.
15540         * shapes/MSE/: add Mobile Subscriber Equipment shapes from
15541         W. Michael Petullo <mike@flyn.org>.
15543         * sheets/Makefile.am (SHEETS): add civil.sheet (which got missed
15544         from the 0.86 tarball) and jigsaw.sheet.
15546         * configure.in: add shapes/jigsaw/Makefile to list of generated files.
15548         * shapes/jigsaw/: jigsaw shapes from Martin Hawlisch.
15550         * shapes/network/: add network-additional shapes here.
15552         * sheets/network.sheet: add the network-additional shapes from
15553         Martin Hawlisch <Martin.Hawlisch@bflow.com> to the main network
15554         sheet.
15556 2000-09-30  Fredrik Hallenberg  <hallon@lysator.liu.se>
15558         * configure.in: Updated ALL_LINGUAS
15560         * po/nl.po: Removed newline from translation
15562 2000-09-17  Asbjorn Pettersen  <asbjornP@dualog.no>
15564         * app/commands.c (help_about_callback): Use G_DIR_SEPARATOR_S in 
15565         logo filename generation. 
15567         * lib/dia_dirs.c (dia_get_data_directory): Handle empty subdir better.
15568         Avoiding "//dia_logo.png".
15570 2000-09-16  Asbjorn Pettersen  <asbjornP@dualog.no>
15572         * app/filedlg.c: add include <sys/types.h> to
15573         remove warning. (OS/2)
15575 2000-09-13  Cyrille Chepelov <chepelov@calixo.net>
15577         * objects/chronogram/chronoline_event.c (reparse_clevent):
15578         the __checksum routine was simply bogus. Redone it in a slightly
15579         saner way (reported by Michael Farr <mfarr@cs.latrobe.edu.au>).
15581 2000-09-10  Asbjorn Pettersen  <asbjornP@dualog.no>
15583         * app/create_object.c (create_object_button_press): 
15584         * app/modify_tool.c (click_select_object): 
15585         * lib/object.h: select renamed to selectf to prevent
15586         compiler problems with function select().  OS/2 version.
15588 2000-09-08  Karsten Weiss  <knweiss@gmx.de>
15590         * po/de.po: Updated.
15592 2000-09-07  Karsten Weiss  <knweiss@gmx.de>
15594         * dia.desktop: Added German translation
15595         * app/menus.c: "Diagram Propeties..." -> "Diagram Properties..."
15597 2000-08-29  Manuel de Vega Barreiro <barreiro@arrakis.es>
15599         * configure.in (ALL_LINGUAS): added "es"
15601 2000-08-28  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
15603         * app/magnify.c:
15604         * app/cursor.h:
15605         * app/cursor.c:
15606         * app/scroll_tool.c:
15607         Standardized cursor function get_cursor().  Magnify now has
15608         looking-glass cursor with + and -.
15610         * app/create_object.c (create_object_button_press): 
15611         Newly created connections now snap to connection points even when
15612         off the grid. 
15614 2000-08-17  Daniel Egger  <egger@suse.de>
15616         * app/menus.c: #ifdef'ed some code for the none GNOME
15617         case.
15618         * app/dia_embedd.c: Changed obvious hackery. Can anyone
15619         please have a look at the GNOME UI menu creation? The
15620         gnome-app-helper code is ages old and plainly broken!
15622 2000-08-15  Daniel Egger  <egger@suse.de>
15624         * app/commands.c:
15625         * app/commands.h:
15626         * app/diagram.c:
15627         * app/display.c:
15628         * app/menus.c:
15629         * app/select.c: First big patch to get the menus
15630         working again in the international version. Copied
15631         some code written by Sven and me from GIMP and
15632         thus implemented automatic tearoffmenu creation and
15633         proper translation. I also removed that pseudo
15634         radiomenu hack and cleaned up several translation
15635         hacks which have never really worked. All in all
15636         this is part I of the big menu patch. Enjoy and tell
15637         me if you detect any problems.
15639 2000-08-14  Daniel Egger  <egger@suse.de>
15641         * sheets/UML.sheet: Changed one German translation as
15642         suggested by Heribert Schuetz <hs@heribert-schuetz.de>.
15644 2000-08-10  Fredrik Hallenberg  <hallon@lysator.liu.se>
15646         * app/diapagelayout.c:
15647         * lib/diagramdata.c:
15648         * lib/diagramdata.h:
15649         * lib/Makefile.am:
15650         * lib/paper.c:
15651         * lib/paper.h: honour PAPERCONF env variable and /etc/papersize when
15652         selecting paper size for a new diagram. TODO: Use libpaper if 
15653         available and use gnome_paper-stuff if using GNOME.
15655         * sheets/Electric.sheet: fixed typo.
15656         
15657 2000-08-08  James Henstridge  <james@daa.com.au>
15659         * po/README: added a readme file to tell translators to translate
15660         the .sheet files as well.
15662         * app/commands.c (help_about_callback): fix small bug where we tried
15663         to gdk_bitmap_unref() the mask for the about box image, even though
15664         it was NULL.  Now check for a NULL mask.
15666 2000-08-07  Daniel Egger  <egger@suse.de>
15668         * sheets/*.sheet: Added translations for the name
15669         in the toolbar tab. Brushed up some descriptions 
15670         and some translations a bit.
15672 2000-08-06  James Henstridge  <james@daa.com.au>
15674         * plug-ins/svg/render_svg.c (new_svg_renderer): update public
15675         identifier and dtd url for SVG output.
15676         (new_svg_renderer): fix the output of the viewBox output.  The
15677         second two numbers are the width and height -- not the right
15678         and bottom sides of the box.
15680         * shapes/*/*.shape: update svg namespace URI.
15682         * objects/custom/shape_info.c (load_shape_info): change the
15683         namespace URI for custom shapes yet again to match the Candidate
15684         Recommedation.  It looks like this one will probably be the final
15685         one.
15687         * app/display.c (new_display): remove the code that sets ic and
15688         ic_attr members to NULL, as one of the previous function calls
15689         causes the display to be realised.  This means that the ic gets
15690         lost.  Thanks to Yukihiro Nakai <ynakai@redhat.com> for finding
15691         this one.
15693 2000-08-06  James Henstridge  <james@daa.com.au>
15695         * shapes/Makefile.am (SUBDIRS): add Civil back to list.
15697         * NEWS: fixed date in NEWS file, as I will release today.
15699         * README: updated the README a little.  Added note that Dia is now
15700         a GNU program.
15702         * dia.spec: fix up spec file.
15704         * plug-ins/wpg/wpg.c: changed DIAG_NOTE stuff here as well.
15706         * plug-ins/hpgl/hpgl.c: change Hans's DIAG_NOTE stuff so that we don't
15707         get heaps of warnings when you turn off debugging.
15708         Also made a few other warning fixes.
15710 2000-08-02  James Henstridge  <james@daa.com.au>
15712         * plug-ins/svg/Makefile.am (INCLUDES): add XML_CFLAGS to INCLUDES.
15714         * configure.in: update version number.
15716 2000-08-01  James Henstridge  <james@daa.com.au>
15718         * app/commands.c (help_about_callback): add Hans to about dialog.
15720         * doc/shape.dtd: dtd for shape file format.
15722         * doc/custom-shapes: update doc file about creating custom shapes.
15724         * shapes/*/*.shape: change namespace URI for the SVG portion to the
15725         one for the latest draft.
15727         * shapes/*/*.shape: fix up rect definitions.
15729         * objects/custom/shape_info.c (load_shape_info): recognise newer
15730         namespace tag for SVG.
15731         (parse_svg_node): the rect element should take attributes x, y, width
15732         and height -- not x1,y1,x2,y2.
15734         * plug-ins/svg/render_svg.c (new_svg_renderer): updated doctype
15735         output to use the newest draft DTD.
15737         * plug-ins/svg/svg.c: initialisation code for plugin.
15739         * plug-ins/svg/render_svg.c: move svg export code to a plugin.
15741         * plug-ins/svg/Makefile.am: makefile for svg plugin.
15743         * app/app_procs.c (internal_plugin_init): don't register the svg
15744         export filter here.
15746         * app/Makefile.am (dia_core_files): don't compile in render_svg.[ch]
15748 2000-07-31  James Henstridge  <james@daa.com.au>
15750         * objects/standard/textobj.c (textobj_get_defaults): 
15751         * objects/standard/polygon.c (polygon_get_defaults): 
15752         * objects/standard/image.c (image_get_defaults): 
15753         * objects/standard/ellipse.c (ellipse_get_defaults): 
15754         * objects/standard/box.c (box_get_defaults): 
15755         * objects/standard/beziergon.c (beziergon_get_defaults): 
15756         * objects/flowchart/parallelogram.c (pgram_get_defaults): 
15757         * objects/flowchart/ellipse.c (ellipse_get_defaults): 
15758         * objects/flowchart/diamond.c (diamond_get_defaults): 
15759         * objects/flowchart/box.c (box_get_defaults): 
15760         * objects/custom/custom_object.c (custom_get_defaults): 
15761         * objects/FS/flow.c (flow_get_defaults): 
15762         * objects/FS/flow-poly.c (flow_get_defaults): 
15763         * objects/FS/flow-ortho.c (orthflow_get_defaults): ref and sink the
15764         defaults widget.
15766         * app/defaults.c (defaults_show): don't keep on ref'ing the defaults
15767         widgets for various object types.
15768         (create_dialog): ref and sink the no_defaults_dialog.
15770         * app/preferences.c (prefs_create_dialog): change
15771         gtk_container_border_width call to gtk_container_set_border_width.
15773 2000-07-29  James Henstridge  <james@daa.com.au>
15775         * app/commands.c (view_aa_callback): show a warning dialog if
15776         you start AA mode.
15778         * app/interface.c (fill_sheet_menu): don't add a menu item for
15779         empty sheets.
15781 2000-07-26  James Henstridge  <james@daa.com.au>
15783         * plug-ins/dxf/dxf-export.c: updates from Steffen to fix bug #18677
15785         * app/menus.c: remove edit grid menu item.
15787         * app/commands.[ch] (view_edit_grid_callback): removed.
15789         * app/display.c (new_display): don't initialise removed Grid members.
15791         * app/grid.c: remove unused functions.
15793         * app/grid.h: remove dialog related stuff from Grid structure.
15794         Remove prototypes for dialog functions.
15796         * app/menus.c: add to menus
15797         
15798         * app/commands.[ch] (view_diagram_properties_callback): new command
15799         for showing the diagram properties dialog.
15801         * app/dia-props.[ch]: a new diagram properties dialog.  To replace
15802         the edit grid dialog.
15804 2000-07-25  James Henstridge  <james@daa.com.au>
15806         * app/grid.c (grid_x_update): 
15807         (grid_y_update): as the grid setting is stored with the diagram,
15808         update all displays when a change is made.
15810         * app/modify_tool.c (modify_motion): use new snap_to_grid sig.
15812         * app/create_object.c (create_object_button_press): 
15813         (create_object_motion): use new snap_to_grid signature.
15815         * app/grid.c (grid_draw): use the grid settings in the DiagramData,
15816         and handle invisible grid lines.
15817         (snap_to_grid): use new grid settings.  Also changed signature to
15818         take a DDisplay rather than Grid pointer.
15819         (grid_show_dialog): get the defaults from the correct place.
15821         * app/display.c (new_display): do not set ddisp->grid.width_[xy].
15823         * app/diagram.c (new_diagram): set the grid size defaults from the
15824         user preferences.
15826         * app/load_save.c (diagram_data_save): save grid and guide info to
15827         diagram file.
15828         (diagram_data_load): add guide and grid load support.
15830         * lib/diagramdata.c (new_diagram_data): set the new DiagramData
15831         members.
15833         * lib/diagramdata.h: add members to DiagramData for grid and guide
15834         settings.
15836         * configure.in (BONOBO_LIBS): update configure scripts
15838         * app/dia.oafinfo: oafinfo file for dia embeddables.
15840         * app/dia_embedd.c: add OAF support.
15842 2000-07-24  James Henstridge  <james@daa.com.au>
15844         * plug-ins/wpg/Makefile.am: 
15845         * plug-ins/pstricks/Makefile.am: 
15846         * plug-ins/hpgl/Makefile.am: 
15847         * plug-ins/dxf/Makefile.am: same here.
15849         * plug-ins/cgm/Makefile.am: remove LIBADD.  Dia already links with
15850         the required libraries, and the link line was causing libtool not
15851         to build a shared library on some systems :(
15853         * plug-ins/cgm/cgm.c (write_real): the initial if statement should
15854         be checking x, not n.
15856 2000-07-23  James Henstridge  <james@daa.com.au>
15858         * app/preferences.c (prefs_data): set the "reset tools after
15859         create" preference to true by default.  That seems to be what most
15860         people expect.
15862         * app/interface.c (create_sheets): instead of a notebook, use an
15863         option menu that updates the sheet tools.  The notebook tabs were
15864         getting a bit unwieldly, so the option menu should fix that.  This
15865         also reduces the number of widgets in the tools radio button
15866         group, which should make the UI a little more responsive.
15868 2000-07-19  Fatih Demir <kabalak@gmx.net>
15869         
15870         * configure.in: Added tr to ALL_LINGUAS.
15871                 [ Yeah, we're now having a Turkish translation,
15872                    too. ]
15873         
15874         * dia.desktop: Added the Turkish entries.
15876 2000-07-02  Fredrik Hallenberg  <hallon@lysator.liu.se>
15878         * doc/diagram.dtd: changed string-element so it conforms to the
15879         output from dia.
15881 2000-06-30  Fredrik Hallenberg  <hallon@lysator.liu.se>
15883         * configure.in: added chinese. 
15884         Use AM_PROG_LIBTOOL instead of AC_PROG_LIBTOOL.
15886         * app/app_procs.c:
15887           app/load_save.c:
15888           app/render_svg.c:
15889           lib/dia_xml.c:
15890           lib/plug-ins.c:
15891           lib/sheet.c:
15892           objects/custom/shape_info.c: 
15893           shapes/Circuit/npn.shape:
15894           shapes/Circuit/pnp.shape:
15895           sheets/*.sheet: dia now works with libxml2.
15896         Libxml2 is a bit more picky when parsing xml and reported errors on all 
15897         sheet files because they use non ascii characters (added 
15898         encoding="iso-8859-1"). Also "xml:lang=en@layman" is not proper xml so 
15899         I commented out these.
15901 2000-06-30  Christopher R. Gabriel  <cgabriel@linux.it>
15903         * configure.in (ALL_LINGUAS): added Italian
15905 2000-06-27  Sung-Hyun Nam  <namsh@lgic.co.kr>
15907         * configure.in (ALL_LINGUAS): added Korean
15909 2000-06-25  James Henstridge  <james@daa.com.au>
15911         * objects/flowchart/parallelogram.c (pgram_create): use default font
15912         and add properties interface support.
15914         * objects/flowchart/ellipse.c (ellipse_create): use default font and
15915         add properties interface support.
15917         * objects/flowchart/diamond.c (diamond_create): use default font and
15918         add properties interface code.
15920         * objects/flowchart/box.c (box_create): use default font.
15922         * objects/custom/custom_object.c (custom_create): use default font
15923         here too.
15925         * objects/standard/textobj.c (textobj_create): update to use default
15926         font.
15928         * lib/attributes.c: add implementations.
15930         * lib/attributes.h (attributes_[gs]et_default_font): add function
15931         prototypes for setting/getting a default font.
15933 2000-06-24  James Henstridge  <james@daa.com.au>
15935         * app/paginate_gnomeprint.h: updated prototype.
15937         * app/paginate_gnomeprint.c (paginate_gnomeprint): update to use
15938         diagram page settings.
15940         * objects/standard/beziergon.c (beziergon_copy): same here.
15942         * objects/standard/polygon.c (polygon_copy): copy the fill colour
15943         as well.
15945         * app/undo.h: 
15946         * app/tool.h (tool_options_dialog_show): 
15947         * app/scroll_tool.h (free_scroll_tool): 
15948         * app/render_svg.h: 
15949         * app/render_libart.h (renderer_libart_copy_to_window): 
15950         * app/render_gdk.h (renderer_gdk_copy_to_window): 
15951         * app/properties.h (properties_hide_if_shown): 
15952         * app/preferences.h (prefs_load): 
15953         * app/object_ops.h: 
15954         * app/modify_tool.h (free_modify_tool): 
15955         * app/magnify.h (free_magnify_tool): 
15956         * app/linewidth_area.h (linewidth_area_create): 
15957         * app/layer_dialog.h: 
15958         * app/handle_ops.h (handle_is_clicked): 
15959         * app/group.h: 
15960         * app/grid.h (grid_destroy_dialog): 
15961         * app/defaults.h (defaults_show): 
15962         * app/cut_n_paste.h (cnp_exist_stored_objects): 
15963         * app/create_object.h (free_create_object_tool): 
15964         * app/connectionpoint_ops.h (diagram_unconnect_selected): 
15965         * app/commands.h: 
15966         * app/color_area.h (color_area_create): 
15967         * app/app_procs.h (app_is_embedded): remove extern keyword from
15968         function prototypes.
15970         * lib/text.h: 
15971         * lib/sheet.h (load_all_sheets): 
15972         * lib/render_store.h: 
15973         * lib/render_object.h (render_object_load): 
15974         * lib/polyshape.h (polyshape_closest_segment): 
15975         * lib/poly_conn.h (polyconn_closest_segment): 
15976         * lib/orth_conn.h: 
15977         * lib/object.h: 
15978         * lib/objchange.h (new_object_state_change): 
15979         * lib/neworth_conn.h (neworthconn_add_segment): 
15980         * lib/message.h (message_error): 
15981         * lib/lazyprops.h: 
15982         * lib/geometry.h: 
15983         * lib/font.h (font_descent): 
15984         * lib/focus.h (remove_focus): 
15985         * lib/element.h: 
15986         * lib/diagramdata.h: 
15987         * lib/dia_xml.h (data_add_composite): 
15988         * lib/dia_image.h: 
15989         * lib/connpoint_line.h: 
15990         * lib/connection.h (connection_move_handle): 
15991         * lib/color.h: 
15992         * lib/attributes.h (attributes_set_default_line_style): 
15993         * lib/arrows.h (arrow_draw): remove extern keyword from function
15994         definitions.  It is not required for functions.
15996         * plug-ins/dxf/Makefile.am (INCLUDES): 
15997         * plug-ins/pstricks/Makefile.am (INCLUDES): 
15998         * plug-ins/cgm/Makefile.am (INCLUDES): 
15999         * objects/SADT/Makefile.am (INCLUDES): 
16000         * objects/chronogram/Makefile.am (INCLUDES): 
16001         * objects/GRAFCET/Makefile.am (INCLUDES): 
16002         * objects/flowchart/Makefile.am (INCLUDES): 
16003         * objects/sybase/Makefile.am (INCLUDES): 
16004         * objects/FS/Makefile.am (INCLUDES): 
16005         * objects/standard/Makefile.am (INCLUDES): 
16006         * objects/network/Makefile.am (INCLUDES):
16007         * objects/UML/Makefile.am (INCLUDES): same here.
16009         * objects/ER/Makefile.am: changed inclusion of some macros to
16010         variables.
16012         * lib/plug-ins.c (dia_register_plugins_in_dir): use a few defines to
16013         handle the plug in extension, rather than have all the #ifdef's in
16014         the code.
16016         * plug-ins/Makefile.am: add renderer.inc to dist.
16018         * plug-ins/dxf/dxf-import.c: Updates from Steffen Macke.
16020 2000-06-11  Asbjorn Pettersen  <asbjornP@dualog.no>
16022         * lib/plug-ins.c: Handle OS/2 dll's too.
16024 2000-06-07  James Henstridge  <james@daa.com.au>
16026         * app/plugin-manager.c (get_plugin_manager): set some table
16027         packing options to make it look a little nicer.
16029         * plug-ins/hpgl/Makefile.am, plug-ins/wpg/Makefile.am: added
16030         makefiles for these plug-ins.
16032         * plug-ins/{hpgl,wmf,wpg}/*: removed dos style cariage returns.
16034         * configure.in: added hpgl and wpg directories to build.  Added
16035         note about whether gnome-print support was enabled, and noted that
16036         it is not recommended.
16038 2000-06-06  James Henstridge  <james@daa.com.au>
16040         * plug-ins/{hpgl,wmf,wpg}/*: Hans Breuer's plug-ins.  They still need
16041         a little work, but I am checking them in so I don't lose them.
16043 2000-06-01  James Henstridge  <james@daa.com.au>
16045         * objects/standard/arc.c: added extra properties.
16047         * lib/beziershape.c (beziershape_closest_handle): fix a bug where I
16048         was using the wrong index into the handles array.  This gets corner
16049         type changing working correctly.
16051         * lib/properties.[ch]: add support for BezPoint's and BezPoint arrays
16052         to properties code (no editing or loading yet though).  Also added
16053         support for point array manipulation through the offsets interfaces.
16055         * lib/Makefile.am (INCLUDES): added include of gdk-pixbuf 
16057         * app/interface.c (origin_button_press): changes so the origin
16058         button doesn't grab the pointer when we pop up the menu.
16060         * app/commands.c (help_about_callback): fix small memory leak in
16061         about box code.
16063         * app/menus.c (menus_init): fixed breakage I introduced in the non
16064         gnome menus when I was doing the menu changes.  The tearoffs work
16065         really nicely in plain gtk mode as well.
16067         * objects/standard/beziergon.c (beziergon_create): changed the
16068         returned handles to match the handle numbering changes.  Now
16069         segment addition and removal works correctly with undo!
16071         * lib/beziershape.c: various changes to the code.  Changed the
16072         numbering of handles, and fixed the segment removal code.
16074 2000-05-31  James Henstridge  <james@daa.com.au>
16076         * objects/standard/beziergon.c: remove connection point handling.
16077         There is still a bit of work to be done to get adding and removing
16078         of segments working correctly.
16080         * lib/beziershape.c: add connection point handling to beziershape.
16081         I set it for two connection points per segment.
16083 2000-05-30  James Henstridge  <james@daa.com.au>
16085         * objects/standard/polygon.c: don't do connectionpoint handling.
16087         * lib/polyshape.c: changed to handle connection points internally.
16088         Also, don't worry about connections to handles on polyshape, as
16089         all handles are non connectable.
16091 2000-05-30 Ville Hautamaki <villeh@cs.joensuu.fi>
16093         * configure.in: Added finnish
16094         
16095 2000-05-30  James Henstridge  <james@daa.com.au>
16097         * sheets/*.sheet: translation updates to the .sheet files.
16099         * po/fr.po: updated po file from Christophe Merlet.
16101         * menus.h: removed prototypes for functions which have been removed.
16103 2000-05-29  James Henstridge  <james@daa.com.au>
16105         * app/layer_dialog.c (layer_dialog_set_diagram): set the selected
16106         item in the option menu when changing selected diagram.
16108         * app/dia_embedd.c (view_factory): fix up function to work with new
16109         menus API.
16111         * app/disp_callbacks.c (ddisplay_realize): remove call to
16112         display_set_active from here.
16113         (ddisplay_canvas_events): move call here.  This gets rid of all the
16114         warnings, as the renderer has been fully set up correctly at this
16115         point.
16117         * app/menus.c (menus_init): add the tearoff item to the start of the
16118         right click menu.
16120         * app/app_procs.c (create_user_dirs): we don't need to create the
16121         menus directory anymore.
16123         * app/disp_callbacks.c (ddisplay_popup_menu): it should not be
16124         necessary to update the menu state here, as it was done when the
16125         active display was set.
16127         * app/display.c (display_set_active): update the menu state when
16128         changing active displays.
16130         * app/interface.c (origin_button_press): set the display as active
16131         when a click is made on the menu button.
16133         * app/menus.c (menus_init): set up a quit function to save the accels
16134         at exit.
16135         Add tearoff items for the non GNOME menus, add accelerators for
16136         several GNOME menus.
16138         * app/disp_callbacks.c (ddisplay_popup_menu): get the menu with
16139         menus_get_image_menu().
16141         * app/menus.c (menus_get_item_from_path): use display_menus here
16142         rather than ddisp->popup.
16144         * app/display.h: remove the popup member in the DDisplay structure.
16146         * app/interface.c: remove option of not using wrap box.
16147         (create_toolbox): change to always use menus_get_toolbox_menubar
16148         even when using gnome menus.
16149         (create_display_shell): use menus_get_image_menu to load accelerators
16150         only -- not the actual popup menu.
16152         * app/menus.c (menus_init): new function to create the menus.
16153         (menus_get_toolbox_menubar): use this function whether gnome is
16154         in use or not.  Changed to use menus_init.
16155         (menus_get_image_menu): same here.  Also, now this function always
16156         returns the same menu, rather than a new one each time.
16157         (menus_init): read a menurc file to load accelerators here.
16159 2000-05-28  James Henstridge  <james@daa.com.au>
16161         * app/display.c (ddisplay_really_destroy): unset active display if
16162         active display is destroyed.
16163         (ddisplay_active): simplify function to return active_display as set
16164         by display_set_active.  This allows using a pinned menu with any
16165         display -- not just the one it was popped up from.
16166         (display_set_active): notify the layer dialog of change of diagrams
16167         when active diagram changes.
16169         * app/disp_callbacks.c (ddisplay_canvas_events): set active display
16170         on button and key presses.
16171         (ddisplay_realize): set active display on realize.
16173         * app/display.c (display_set_active): simple implementation of this
16174         function.
16176         * app/display.h (display_set_active): add prototype for setting
16177         the active display.
16179         * app/interface.c (create_display_shell): don't give focus to the
16180         menu button.
16182         * app/menus.c: fix up menus for Beziergon.
16184         * app/interface.c (create_display_shell): make the widget in the
16185         top left corner a button that can be used to pop up the right click
16186         menu, like in gimp and sketch.
16188         * app/disp_callbacks.c (ddisplay_popup_menu): new function to popup
16189         the display menu.
16191         * objects/standard/beziergon.c (beziergon_set_corner_type_callback):
16192         add code to set corner types for beziergon.
16194         * lib/beziershape.c (beziershape_set_corner_type): fix up corner type
16195         setting code.
16196         (beziershape_move_handle): use the previous corner type for right
16197         controls.
16199         * app/interface.c (tool_data): add beziergon to toolbox.
16201         * objects/standard/standard.c (dia_plugin_init): initialise the new
16202         Beziergon object type.
16204         * objects/standard/beziergon.c: an object based on BezierShape.
16206         * lib/dummy_dep.h (dummy_dep): added to dummy_dep.
16208         * lib/beziershape.[ch]: new files implementing a bezier shape.
16210 2000-05-26  James Henstridge  <james@daa.com.au>
16212         * lib/text.c (text_key_event): handle multibyte inserts.
16213         (text_key_event): also add home and end keybindings.
16215         * app/interface.c (create_display_shell): connect handlers for
16216         focus_in_event, focus_out_event, realize and unrealize signals.
16218         * app/display.[ch] (new_display): initialise input context members.
16220         * app/disp_callbacks.[ch]: added XIM support here.
16222         * lib/font.c (suck_font): the black and white pixel values should be
16223         taken from a 1 bit colormap rather than the default colormap.
16225         Hans Breuer's Windows patches ...
16227         * lib/font.c: use Courier New for fixed width font on windows
16228         machines.
16230         * lib/dia_image.h: change to "struct _DiaImage".
16232         * lib/dia_image.c: change "struct DiaImage" to "struct _DiaImage"
16234         * app/disp_callbacks.c (ddisplay_canvas_events): allow ctrl+right
16235         mouse button for object menu.  This will make two button mouse owners
16236         happier.
16238 2000-05-25  James Henstridge  <james@daa.com.au>
16240         * app/filedlg.c (file_open_ok_callback): use diagram_load here.
16242         * app/app_procs.c (app_init): add extra NULL argument to call of
16243         diagram_load.
16245         * app/load_save.h: remove prototype.
16247         * app/load_save.c: remove diagram_data function here.
16249         * app/diagram.h: added prototype.
16251         * app/diagram.c (diagram_load): new function here, which uses import
16252         filters.
16254         * plug-ins/dxf/dxf.c: register the import filter as well.
16256         * plug-ins/dxf/dxf-import.c: added (unfinished) DXF import filter from
16257         Steffen Macke <macke@heini.fbbwu.fh-lueneburg.de>
16259         * objects/standard/line.c: add start_point and end_point properties
16260         to standard line object.
16262 2000-05-21  James Henstridge  <james@daa.com.au>
16264         * app/paginate_psprint.c: added missing include of locale.h.
16266         * objects/custom/custom_object.c (custom_draw): use fabs rather than
16267         abs for scaling factors.
16268         (custom_distance_from): same here.
16270         * dia.spec: make sure rpm doesn't bomb out when LINGUAS isn't set.
16272 2000-05-18  James Henstridge  <james@daa.com.au>
16274         * po/POTFILES.in: updated POTFILES.in.
16276         * dia.spec: incremented version number in spec file.
16278         * NEWS: added (lots of) news items for the 0.85 release.
16280         * app/preferences.c (prefs_save): set LC_NUMERIC to C while writing
16281         the config file.
16283         * configure.in: updated version number here.
16285         * app/Makefile.am (run_dia.sh): include plug-ins in the lib path.
16287 2000-05-17  James Henstridge  <james@daa.com.au>
16289         * app/app_procs.c (internal_plugin_init): register the native import
16290         filter.
16292         * app/load_save.c (diagram_data_load, diagram_load): split this
16293         function into two -- one that does all the work on the DiagramData
16294         structure, and the other that provides compatibility with the old
16295         function.
16296         (dia_import_filter): use diagram_data_load to define an import
16297         filter.
16299         * app/diagram.h (new_diagram): added const to prototype.
16301         * app/filedlg.c (file_open_callback): change to use new import filter
16302         code.
16304         * lib/filter.c: added import filter management functions.
16306         * lib/filter.h: added prototypes for import filter interface.
16308         * app/commands.c (help_about_callback): updated about dialog to
16309         contain a few more names.
16311 2000-05-16  James Henstridge  <james@daa.com.au>
16313         * configure.in (Configuration): added a status message to the end of
16314         the configure script to give the user some idea of what was
16315         configured.
16317         * plug-ins/dxf/Makefile.am: Makefile for new plugin.
16319         * plug-ins/dxf/dxf.c (dia_plugin_init): added file to initialise the
16320         plugin.
16322         * plug-ins/dxf/dxf-export.c: new file -- Steffen Macke's DXF export
16323         filter for dia.
16325         * configure.in (AM_PATH_LIBART): use the check function provided
16326         with libart rather than our own code.  It is more reliable, and
16327         it only requires that people who build out of CVS have libart.m4
16328         installed (not necessarily all of libart).
16329         (AM_PATH_GDK_PIXBUF): same here for gdk-pixbuf.
16331 2000-05-12  Andreas Hyden  <a.hyden@cyberpoint.se>
16333         * dia.desktop: Added Swedish translation.
16335 2000-05-09  James Henstridge  <james@daa.com.au>
16337         * lib/dia_xml.c: you can't free a const pointer, so remove const
16338         from variable definitions.
16340         Explicitely set LC_NUMERIC where needed, as sometimes it isn't
16341         initialised correctly.
16343         * app/render_svg.c (export_svg): set locale to C.
16345         * app/paginate_psprint.c (paginate_psprint): set locale to C.
16347         * app/render_eps.c (export_eps): set locale to C for EPS export.
16349         * lib/dia_xml.c (data_add_real): change to C locale for snprintf call.
16350         (data_add_point): same here.
16351         (data_add_rectangle): same here.
16352         (data_real): use g_strtod to convert strings to real numbers, so that
16353         locales are taken into account.
16354         (data_point): same here.
16355         (data_rectangle): same here.
16357         * AUTHORS: added Henk and Jacek to authors file.
16359         Daniel Egger's code cleanups.
16361         * app/select.c (select_invert_callback): remove unused variable.
16363         * app/plugin-manager.c (get_plugin_manager): fix typo.
16365         * app/load_save.c (read_connections, write_objects): 
16366         (write_connections): made some functions static.
16368         * app/interface.c (toolbox_delete, toolbox_destroy): made some
16369         functions static.
16371         * app/filedlg.c (file_export_callback): remove unused variable.
16373         * app/app_procs.c: various warning fixes.
16375         Integrating Jacek Pliszka's pstricks export filter.
16377         * plug-ins/pstricks/pstricks.c: code to initialise the plugin.
16379         * plug-ins/pstricks/render_pstricks.[ch]: Jacek Pliszka's pstricks
16380         renderer (with a few small modifications by me).
16382         * plug-ins/pstricks/Makefile.am: new makefile for pstricks plug-in.
16384         * plug-ins/Makefile.am (SUBDIRS): add pstricks subdirectory.
16386 2000-05-07  Alexander Larsson  <alla@lysator.liu.se>
16388         * configure.in:
16389         * sheets/Makefile.am:
16390         * shapes/Makefile.am:
16391         * shapes/Civil/Makefile.am:
16392         * sheets/civil.sheet:
16393         * shapes/Civil/*:
16394         Added civil/hydraulic/structural engineering objects from
16395         sdteffen <macke@heini.fbbwu.fh-lueneburg.de>.
16396         
16397 2000-05-07  Alexander Larsson  <alla@lysator.liu.se>
16399         * objects/FS/flow-poly.c:
16400         * objects/FS/flow.c:
16401         Fix division by zero in point_normalize().
16402         Patch by David Thompson <dcthomp@mail.utexas.edu>
16404 2000-04-27  Lars Clausen  <lrclause@cs.uiuc.edu>
16406         * lib/arrows.c:
16407         * lib/bezier_conn.c:
16408         * lib/connpoint_line.c:
16409         Added checks for zero-length lines before calls to point_normalize.
16411 2000-04-24  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
16413         * app/preferences.c (prefs_data): Changed
16414         reversed_dragging_intersects to not make the dialog ridiculously
16415         wide.
16416         
16417 2000-04-22  James Henstridge  <james@daa.com.au>
16419         Hans's win32 patches:
16421         * app/export_png.c: include message.h
16422         * app/interface.c: include dia_dirs.h
16423         * app/linewidth_area.c: check for rint
16424         * app/main.c: include interface.h
16425         * app/paginate_psprint.c: remove unused variable.
16426         * app/preferences.c: include message.h
16427         * app/render_svg.c: include stdlib.h
16428         * app/select.c: include object_ops.h
16429         * lib/dia_dirs.c: miscelaneous fixes for win32.
16430         * lib/dia_image.c: include string.h
16431         * lib/plug-ins.c: look for .dll files rather than .la files on win32.
16432         * lib/properties.c: include stdlib.h
16433         * lib/properties.h: define extra data for standard properties as
16434         static variables on win32 (to get around dynamic linker problems).
16435         * objects/standard/polygon.c: polygon_create_change missing return
16436         statement.
16438 2000-04-18  Pablo Saratxaga <pablo@mandrakesoft.com>
16440         * configure.in (ALL_LINGUAS): added Catalan
16442 2000-04-18  James Henstridge  <james@daa.com.au>
16444         * objects/standard/bezier.c (bezierline_get_object_menu): add a
16445         separator to the object menu between the add/remove segment items
16446         and the corner type items.
16447         (bezierline_get_object_menu): add code to disable the menu item for
16448         the current corner type.  Really just a cosmetic change.
16450         * app/disp_callbacks.c (create_object_menu): handle DiaMenuItems with
16451         a NULL for the label or with no associated callback.
16453         * objects/standard/bezier.c (bezierline_menu_items): use the
16454         enumeration values rather than numeric values for the corner types.
16456         * lib/bezier_conn.[ch]: added a corner_types member to the BezierConn
16457         structure, and add code to handle it.  Also, don't save the corner
16458         types inline in the bez_points node.  The way it is conditionally
16459         including the element just feels like it will break.
16461         * lib/geometry.h (BezPoint): removed the corner_type stuff from
16462         BezPoint.  The corner type stuff is a user interface level idea rather
16463         than something required by the renderer, so should be taken care of
16464         at the object level.
16466 2000-04-17  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
16468         * configure.in: Fixed some problems with the gdk-pixbuf/imlib
16469         checks.  Weren't able to reproduce original bug, tough.
16471 2000-04-16  Cyrille Chepelov  <chepelov@calixo.net>
16473         * sheets/Electric.sheet:
16474         * sheets/Contact.sheet:
16475         * sheets/Pneumatic.sheet:
16476         * sheets/Circuit.sheet: sprayed some <br/>'s around.
16477         (added a few French translations in the last file)
16478         
16479 2000-04-16  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
16481         * lib/geometry.h: 
16482         * lib/bezier_conn.h: 
16483         * objects/standard/bezier.c: 
16484         * lib/bezier_conn.c: Support for cuspy, smooth and symmetric
16485         bezier points.  Only one minor problem known:  Menus are active
16486         for endpoints minor handles.
16487         11:28: Save and load now works, too.
16488         (bezierconn_closest_major_handle): 12:03: New function to get the
16489         non-control point handle associated with the nearest control
16490         point.  
16491         Also fixed the menu activation problem, and made remove_segment
16492         not remove the endpoint.
16494 2000-04-15  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
16496         * configure.in: Added check for gdk-pixbuf being >= 0.7.0 since
16497         new API is in use.
16499 2000-04-15  Asbjorn Pettersen  <asbjornP@dualog.no>
16501         * lib/plug-ins.c: Added <sys/types.h> and moved <fcntl.h> below
16502         <sys/stat.h>.   OS/2 patch.
16504 2000-04-15  James Henstridge  <james@daa.com.au>
16506         * objects/FS/flow-ortho.c, objects/FS/function.c: Applied David
16507         Thompson's patch that adds undo support to the function structure
16508         diagram objects.
16510 2000-04-14  James Henstridge  <james@daa.com.au>
16512         * objects/custom/custom_object.c (custom_distance_from): new
16513         implementation of distance algorithm that actually takes the
16514         display list into account when calculating the distance.  Much nicer
16515         than a simple bounding box.
16517 2000-04-13  Lars Clausen  <lrclause@cs.uiuc.edu>>
16519         * lib/geometry.c (line_crosses_ray): Fixed division by zero bug
16521 2000-04-12  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
16523         * objects/standard/polygon.c: Start of polygons own changes (for
16524         connectionpoints).  Need to do seperate changes in polyshape, too,
16525         rather than reuse the bezier changes.
16527 2000-04-13  James Henstridge  <james@daa.com.au>
16529         * lib/dia_image.c (dia_image_draw): use the new enumeration values
16530         from after the gdk-pixbuf cleanup.
16532         * lib/geometry.c (bez_point_distance_and_ray_crosses): fix up limit
16533         on for loop.  Last set of coefficients were not beeing calculated,
16534         which caused a bit of breakage.
16536         * lib/bezier_conn.c (bezierconn_closest_segment): use the new
16537         functions in geometry.c for calculating the closest segment.
16538         (bezierconn_distance_from): use distance_bez_line_point to calculate
16539         the distance.
16541         * lib/geometry.c (distance_bez_line_point): new function to calculate
16542         the distance from an open bezier line to a point.
16543         (distance_bez_shape_point): new function to calculate the distance
16544         from a closed bezier shape.
16545         (distance_ellipse_point): new function to calculate the distance from
16546         a filled ellipse to a point.
16548         * lib/geometry.h (BezPoint): moved this structure here from render.h
16550 2000-04-12  James Henstridge  <james@daa.com.au>
16552         * lib/geometry.c (distance_bez_seg_point): new function to calculate
16553         the distance from a bezier segment.
16555         * lib/polyshape.c (polyshape_distance_from): use distance_polygon_point
16556         to calculate the distance from the object.
16558         * lib/geometry.c (distance_polygon_point): function for calculating
16559         the distance from a polygon to a point.
16561 2000-04-12  Cyrille Chepelov  <chepelov@calixo.net>
16563         * app/interface.c:
16564         * lib/sheet.[ch]: added a <br/> tag in sheet files, so that line 
16565         breaks can be inserted in the tool box. 
16567         * doc/sheet.dtd: updated the DTD
16568         * sheets/GRAFCET.sheet: tried <br/> on that sheet (more to come).
16569         
16570 2000-04-12  James Henstridge  <james@daa.com.au>
16572         * app/plugin-manager.c (get_plugin_manager): use the GTK_DIALOG
16573         macro if the dialog is a GtkDialog :(
16575 2000-04-11  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
16577         * objects/standard/polygon.c: Connectionpoints now properly
16578         managed in a GList.  As far as I can tell, this will not dieturb
16579         the order (but I have the nagging doubt...)
16581         * lib/polyshape.c: No longer knows about connectionpoints.
16583 2000-04-11  James Henstridge  <james@daa.com.au>
16585         * app/Makefile.am: fix makefile for bonobo build.
16587         * configure.in: fix checks for bonobo.
16589         * app/menus.c: added entries for the plugin manager.
16591         * app/Makefile.am (dia_core_files): added plugin manager to files
16592         list.
16594         * app/plugin-manager.[ch]: the plugin manager dialog.
16596         * app/display.c (display_update_menu_state): set the antialiased
16597         menu entry to the correct value.
16599 2000-04-11  Cyrille Chepelov  <chepelov@calixo.net>
16601         * objects/custom/custom_object.c: not all renderers like ellipses with
16602         negative dimensions. This could cause ellipses to disappear when using
16603         the flip_h and flip_v functions.
16605         * samples/grafcet.dia: fixed speling and correctness.
16606         
16607 2000-04-11  James Henstridge  <james@daa.com.au>
16609         * lib/plug-ins.[ch]: added more accessors for use by a plugins dialog.
16610         exposed the dia_plugin_load and dia_plugin_unload functions.
16612         * lib/plug-ins.c (plugin_load): change plugin_load to work on an
16613         already created PluginInfo structure.
16615         * app/app_procs.c (app_exit): call dia_pluginrc_write() to write
16616         the pluginrc file.
16618         * lib/sheet.c: fix up call to dia_config_filename.
16620         * lib/plug-ins.[ch]: started writing code for handling a pluginrc
16621         file.  This would save information such as which plugins not to
16622         load during startup.
16624 2000-04-09  James Henstridge  <james@daa.com.au>
16626         * lib/sheet.c: use dia_config_filename to resolve file in ~/.dia.
16628 2000-04-10  Alexander Larsson  <alla@lysator.liu.se>
16630         * lib/plug-ins.c (dia_register_plugins):
16631         Don't free the value returned from g_getenv.
16633 2000-04-09  Anders Carlsson  <andersca@gnu.org>
16635         * app/preferences.h: Add reverse_rubberbanding_intersects preference variable.
16637         * app/preferences.c (prefs_data): Add reverse_rubberbanding_intersects preference data.
16639         * app/modify_tool.c (modify_button_release): If rubberbanding is done from 
16640         right to left, select objects that intersect the rubberbanding rectangle
16641         instead of selecting objects that are in the rectangle.
16643         * lib/diagramdata.c (layer_find_objects_intersecting_rectangle): Add function.
16645         * lib/diagramdata.h: Likewise.
16648 2000-04-09  James Henstridge  <james@daa.com.au>
16650         * lib/plug-ins.[ch]: add copyright messages to files.
16652         * plug-ins/cgm/cgm.c (dia_plugin_init): convert plugin over to new
16653         plugin interface.
16655         * objects/sybase/sybase.c (dia_plugin_init): 
16656         * objects/network/network.c (dia_plugin_init): 
16657         * objects/flowchart/flowchart.c (dia_plugin_init): 
16658         * objects/custom/custom.c (dia_plugin_init): 
16659         * objects/chronogram/chronogram.c (dia_plugin_init): 
16660         * objects/UML/uml.c (dia_plugin_init): 
16661         * objects/SADT/sadt.c (dia_plugin_init): 
16662         * objects/GRAFCET/grafcet.c (dia_plugin_init): 
16663         * objects/FS/fs.c (dia_plugin_init): 
16664         * objects/ER/er.c (dia_plugin_init): updated plugin load code for
16665         object libraries.
16667         * objects/standard/standard.c (dia_plugin_init): change over to new
16668         plugin interface.
16670         * lib/plug-ins.h (DIA_PLUGIN_CHECK_INIT): added a macro to define
16671         the version checker for plugins.
16673         * app/app_procs.c: remove plugin loading code from here, and use
16674         code from plug-ins.[ch].  Also move registration of internal
16675         objects/filters to a `builtin' plugin.
16677         * lib/Makefile.am (libdia_a_SOURCES): added plug-ins.[ch] to library.
16679         * configure.in: use AC_PROG_LIBTOOL rather than AM_PROG_LIBTOOL.
16681         * app/Makefile.am (EXTRA_DIST): you can't include a conditionally
16682         defined variable in EXTRA_DIST.
16684         * app/preferences.h: removed dia_config_filename from header.
16686         * app/preferences.c: removed dia_config_filename function.
16688         * lib/dia_dirs.c (dia_config_filename): moved function over to this
16689         file.  Also changed implementation slightly so that it should work
16690         on the win32 port correctly (and use NT home directories).
16692         * lib/dia_dirs.h (dia_config_filename): move dia_config_filename where
16693         it should have been.
16695         * lib/plug-ins.[ch]: new plugin loading code.
16697 2000-04-08  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
16699         * objects/standard/polygon.c: Fixed startup crash bug (do'h!).
16701         * lib/polyshape.c: Fix closest segment finding, exposes deeper
16702         bugs in adding corners to 'wraparound' segment.
16704         * objects/standard/polygon.c: Added connection points (fixed so
16705         far), set menu sensitivity.
16707         * lib/polyshape.c: Changed to box-style handles, fixed for start
16708         and ends not being special, added initial connections,
16710         * lib/dummy_dep.h: Added polyshape (gotcha!)
16712         * objects/standard/pixmaps/ellipse.xpm: 
16713         * objects/standard/pixmaps/box.xpm: 
16714         Filled element pixmaps with white.
16716         * lib/polyshape.c: 
16717         * objects/standard/polygon.c: 
16718         * lib/polyshape.h: 
16719         * objects/standard/standard.c: 
16720         * objects/standard/Makefile.am (libstandard_objects_la_SOURCES): 
16721         * lib/Makefile.am (libdia_a_SOURCES): 
16722         * app/menus.c: 
16723         * app/interface.c (tool_data): 
16724         Added Standard/Polygon object and PolyShape lib object.  Still
16725         needs inside grab and connection points.
16727         * app/commands.c (help_about_callback): Now uses gdk-pixbuf if
16728         available. 
16730         * configure.in: Made imlib a fallback if gdk-pixbuf is absent or
16731         not wanted.
16733         * app/app_procs.c (app_init): Moved gtk_init outside #ifdef, moved
16734         if (argv) outside ifdefs.
16736 2000-04-04  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
16738         * objects/standard/image.c (image_set_props): 
16739         Aspect ratio is back in town.
16741         * app/Makefile.am (dia_LDADD): 
16742         * acconfig.h: 
16743         * configure.in: 
16744         Check for gdk_pixbuf (by default disabled, for now)
16746         * app/render_eps.c (draw_image): 
16747         * app/render_libart.c (draw_image): 
16748         * app/render_gnomeprint.c (draw_image): 
16749         Support for alpha mask in rendering.  Color postscript, too.
16751         * lib/dia_image.c: 
16752         * lib/dia_image.h: 
16753         Support for gdk_pixbuf and proper masking for exports.
16755 2000-04-01  Kjartan Maraas  <kmaraas@online.no>
16757         * sheets/*.sheets: Updated Norwegian translations.
16758         
16759 2000-03-30  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
16761         * lib/text.c (text_insert_char): 
16762         * lib/render_store.c (add_data): 
16763         Made realloc double the alloced space rather than add
16764         a fixed amount, to reduce memory stress.
16766         * app/select.c: Added new select method 'Transitive'
16767         that select every reachable (by connections) object.
16769 2000-03-27  Kjartan Maraas  <kmaraas@online.no>
16771         * dia.desktop: Added Norwegian translation.
16772         
16773 2000-03-26  Alexander Larsson  <alla@lysator.liu.se>
16775         * app/render_eps.c:
16776         * app/render_svg.c:
16777         Don't dereference NULL pointer if the renderer
16778         couldn't open the file. Fix by Lars Clausen.
16779         Bug reported by Martin Chisholm <b1mt@unb.ca>
16780         
16781 2000-03-26  Alexander Larsson  <alla@lysator.liu.se>
16783         * dia.desktop:
16784         * po/pt.po:
16785         Updated pt translation from Pedro Morais <pmmm@rnl.ist.utl.pt>
16787 2000-03-25  Alexander Larsson  <alla@lysator.liu.se>
16789         * app/dia.gnorba (location_info):
16790         Changed to correct executable name.
16792 2000-03-25  Alexander Larsson  <alla@lysator.liu.se>
16794         * app/app_procs.c:
16795         Don't do any argument parsing or initialization
16796         if argv==NULL.
16798         * app/dia_embedd.c:
16799         Call init_server_factroy before app_init.
16800         Call app_init with argv==NULL
16801         Now we don't get any critical error on startup.
16803         * configure.in:
16804         Add Electric and Pneumatic to makefile list.
16805         
16806 2000-03-24  Cyrille Chepelov <chepelov@calixo.net>
16808         * shapes/Electric/*:
16809         * sheets/Electric.sheet:
16810         Add some Electric circuit shapes.
16812         * shapes/Pneumatic/*:
16813         * sheets/Pneumatic.sheet:
16814         Add some Pneumatic & Hydraulic circuit shapes
16815         (both sheets are still incomplete, though feature enough 
16816         things for basic circuits).
16818         * shapes/Contact/l_*.(xpm|shape):
16819         * sheets/Contact.sheet
16820         * shapes/Contact/Makefile.am
16821         made the older electric circuit shapes in Contact obsolete (disabled
16822         them in the sheet, made that sheet Ladder only). Fixed the makefile
16823         for forgotten items.
16824         
16825 2000-03-24  Alexander Larsson  <alla@lysator.liu.se>
16827         * app/Makefile.am:
16828         Add support for Dia bonobo component.
16829         Currently a bit raw, so it's commented out.
16830         
16831         * app/dia_embedd.c:
16832         * app/dia.gnorba:
16833         New files for embedding dia.
16834         The menu disabling hack is a bit gross. Esp. for GNOME.
16836         * app/app_procs.h:
16837         Add new function app_is_embedded();
16839         * app/diagram.c:
16840         Don't destroy diagram when last display is destroyed if embedded.
16841         
16842         * app/display.c:
16843         Change initialization of display so it works with embedding.
16845         * app/display.h:
16846         Clarify comment about display destruction.
16848         * app/interface.[ch]:
16849         Added top_level_window argument to create_display_shell.
16850         Don't open a top-level window if embedding.
16851         Don't quit app if trying to close toolbox window when embedding.
16852         Add toolbox_show() and toolbox_hide().
16854         * app/main.c:
16855         Added app_is_embedded() function (just returns false).
16856         Added toolbox_show() call in main().
16858         * app/menus.c:
16859         Added code for getting toolbox menus. This is used to
16860         hide some menu items when running embedded.
16861         
16862         * app/app_procs.c:
16863         Include sheet.h to remove warning.
16865         * objects/UML/association.c:
16866         Clarify association direction text.
16867         
16868 2000-03-16  Fredrik Hallenberg  <hallon@lysator.liu.se>
16870         * dia.1
16871         Fixed man page so whatis parsing works.
16873 2000-03-12  Alexander Larsson  <alla@lysator.liu.se>
16875         * app/render_libart.c (new_libart_renderer):
16876         Fix from segg <segg@infonet.ca> to compile without libart.
16877         I forgot to change the stub for new_libart_renderer when doing
16878         the interactive renderer stuff for libart.
16880 2000-03-11  Alastair McKinstry  <mckinstry@computer.org>
16882         * dia.desktop: Added Irish translation.
16883         
16884         * configure.in (ALL_LINGUAS): Added Irish (ga) translation.
16886 2000-03-07  Asbjorn Pettersen  <asbjornP@dualog.no>
16888         * app/load_save.c (fchmod): OS/2 defines only.
16890 2000-03-07  James Henstridge  <james@daa.com.au>
16892         * lib/properties.c (prop_get_widget): set the position in the option
16893         menu correctly.
16895 2000-03-06  Alexander Larsson  <alla@lysator.liu.se>
16897         * app/display.c:
16898         * app/export_png.c:
16899         * app/render_libart.[ch]:
16900         Don't export png:s with an interactive libart renderer.
16902 2000-03-03  Asbjorn Pettersen  <asbjornP@dualog.no>
16904         * lib/arrows.c (finite): define finite(d) isfinite(d)  for OS/2
16906 2000-03-02  James Henstridge  <james@daa.com.au>
16908         * dia.spec (%build): unset LINGUAS before running configure.  This
16909         ensures that all translations get included in the RPM.
16911         * lib/properties.c (object_create_props_dialog): put in a check for
16912         a NULL return from the describe_props() object method.
16913         (prop_desc_lists_union): make sure that the returned array is not
16914         NULL.
16915         (prop_desc_lists_intersection): same here.
16917 2000-02-29  Alexander Larsson  <alla@lysator.liu.se>
16919         * objects/ER/Makefile.am:
16920         * objects/FS/Makefile.am:
16921         * objects/UML/Makefile.am:
16922         Don't link object libs with gtk.
16924 2000-02-29  James Henstridge  <james@daa.com.au>
16926         * app/preferences.c (prefs_save): check to see if the file could
16927         be opened before writing the prefs.
16929         * app/disp_callbacks.c (popup_object_menu): pass the button event
16930         to gtk_menu_popup.  This allows you to click and release to open
16931         the object menu.
16932         (ddisplay_canvas_events): same here.
16933         (create_object_menu): set the object type menu item in the object
16934         menu to be insensitive.
16936         * app/render_svg.c (draw_string): call xmlEncodeEntitiesReentrant,
16937         as we are now requiring a new version of libxml.
16939         * dia.spec: updated version number.  Added requirement for
16940         libxml >= 1.8.5
16942         * configure.in: incremented version number to 0.84.
16943         Added check for libxml >= 1.8.5.  This will prevent some of the
16944         problems people have had with broken libxml versions.
16946         * NEWS: added news items.
16948         * app/interface.c (create_color_area): removed call to realize parent
16949         widget.  Segg <segg@infonet.ca> reported that it caused a warning,
16950         but I haven't seen it on my copy of dia.
16952 2000-02-28  James Henstridge  <james@daa.com.au>
16954         * app/export_png.c: added copyright notice, and made the band height
16955         a constant.
16957 2000-02-27  Alexander Larsson  <alla@lysator.liu.se>
16959         * lib/font.c (suck_font):
16960         Fixed off-by one bug in font pixmap height.
16961         Fixes the problem with garbage at the bottom of some text in aa mode
16962         and in png exported files.
16964 2000-02-27  James Henstridge  <james@daa.com.au>
16966         * app/app_procs.c: add the png export filter if it was compiled in.
16968         * app/export_png.c (export_png): new PNG export filter.  This requires
16969         the libart renderer to work as it needs a renderer that renders to a
16970         pixel buffer.
16972         * configure.in: add check for libpng.
16974         * lib/message.c (message_internal): use a GNOME dialog here as well.
16976         * app/display.c (ddisplay_close): use a GNOME dialog here.
16978         * app/render_eps.c (create_eps_renderer): use diagram scaling factor
16979         when exporting to EPS.  This is because some people said the EPS
16980         output was too large
16982 2000-02-26  James Henstridge  <james@daa.com.au>
16984         * app/defaults.c (create_dialog): use a GNOME dialog for the defaults
16985         window.
16987         * app/app_procs.c (app_exit): use a GNOME dialog here.
16989         * app/preferences.c (prefs_create_dialog): if GNOME support is
16990         enabled, show a GNOME dialog.
16992         * app/grid.c (grid_draw): use preferences when drawing page break
16993         lines.
16995         * app/preferences.c: add page break preferences to dialog.
16997         * app/preferences.h: added page break preferences.
16999 2000-02-25  James Henstridge  <james@daa.com.au>
17001         * sheets/UML.sheet: added new objects.
17003         * objects/UML/uml.c: link in the two new objects.
17005         * objects/UML/node.c: 
17006         * objects/UML/branch.c: new UML objects from Stfan Seefeld
17007         <seefelds@magellan.umontreal.ca>.
17009 2000-02-24  James Henstridge  <james@daa.com.au>
17011         * objects/custom/custom_object.c: converted to use the properties
17012         interface.  In the future, it would be nice to add support for
17013         defining custom properties for custom objects, but that can wait.
17015 2000-02-22  James Henstridge  <james@daa.com.au>
17017         * sheets/Circuit.sheet: added new circuit shapes to sheet.
17019         * plug-ins/cgm/cgm.c: cgm plugin updates from Henk Jan Priester
17020         <hj@justcroft.com>.  Fixes number encoding, colour encoding, fonts
17021         and adds a few new features.
17023 2000-02-21  Daniel Egger  <egger@suse.de>
17025         * sheets/*.sheets: Added German translations and made some
17026         corrections to the others.
17027         
17028 2000-02-21  James Henstridge  <james@daa.com.au>
17030         * shapes/Circuit/Makefile.am (SHAPES): added new shapes to list.
17032         * shapes/Circuit/...: added new shapes from Erik Janssens.
17034 2000-02-20  James Henstridge  <james@daa.com.au>
17036         * app/interface.c (create_color_area): realize the parent window
17037         first.
17039         * objects/standard/image.c: properties patch for standard image
17040         object, from Lars Clausen.
17042         * lib/properties.c: support for PROP_TYPE_FILE from Lars Clausen.
17044         * lib/properties.h (PropType): added file property type.
17046         * shapes/Circuit/speaker_de.xpm: changed size of pixmap to match
17047         other shapes.
17049         * app/interface.c: use wrap box for toolbox.
17051         * app/Makefile.am: added new files.
17053         * app/gtk*wrapbox.[ch]: added wrap box widget.
17055 2000-02-19  James Henstridge  <james@daa.com.au>
17057         * sheets/network.sheet: added extra shapes to networks sheet.
17059         * configure.in (AC_OUTPUT): added shapes/network/Makefile
17061         * shapes/network/*: added shapes that were posted to the list a while
17062         back.
17063         
17064         * shapes/Makefile.am (SUBDIRS): added network subdirectory
17066         * app/menus.c (toolbox_menu_items): don't right justify help menu for
17067         gtk+ version of menus.
17069         * app/properties.c (create_dialog): use a GnomeDialog if we happen
17070         to be using gnome.
17072 2000-02-18  James Henstridge  <james@daa.com.au>
17074         * objects/flowchart/box.c: set extra data for corner radius and text
17075         padding properties.
17077         * objects/standard/box.c: set extra data for corner radius property.
17079         * lib/properties.h: set extra data in some standard properties.
17081         * lib/properties.c (prop_get_widget): look at the extra data for
17082         int, real and enum property types.  They now use GtkSpinButton and
17083         GtkOptionMenu respectively.
17085         * lib/properties.h: extra data members for creating property setting
17086         widgets.
17088 2000-02-17  James Henstridge  <james@daa.com.au>
17090         * objects/flowchart/box.c: reverted load/save functions back to
17091         previous implementations.  Made box use standard property names.
17093         * plug-ins/cgm/cgm.c (set_linestyle): was missing a */
17095         * app/grid.c: add more digits to the grid edit dialog.  This patch
17096         was also from Lars Clausen.
17098         * objects/standard/zigzagline.c: 
17099         * objects/standard/textobj.c:
17100         * objects/standard/polyline.c:
17101         * objects/standard/line.c:
17102         * objects/standard/ellipse.c:
17103         * objects/standard/box.c: 
17104         * objects/standard/bezier.c: 
17105         * objects/standard/arc.c: patches to add properties code to standard
17106         objects.  Based on patches from Lars Clausen.  I have also removed
17107         some dead code from the files.
17109         * lib/properties.h (PROP_STD_*): define a number of standard
17110         properties.  Where appropriate, objects should include these
17111         properties in their PropDescription list.  This way, the intersection
17112         of properties of two different shapes will be greater.
17114 2000-02-14  James Henstridge  <james@daa.com.au>
17116         * objects/flowchart/box.c (box_load, box_save): use property save
17117         routines.  Make sure that any props not handled by object_load_props
17118         are loaded before calling object_load_props, or we get errors because
17119         update_data is called.
17121         * lib/properties.c (object_get_props_from_offsets): fixed an indexing
17122         error that could cause properties to be loaded incorrectly.
17123         (object_set_props_from_offsets): similar here.
17125         * lib/properties.[ch] (prop_{load,save}): functions for loading
17126         or saving a property in Dia's XML file format.
17127         (object_{load,save}_props): load or save some properties of an
17128         object.  These functions should help simplify the load/save methods
17129         of objects that implement the properties interface.
17131 2000-02-13  James Henstridge  <james@daa.com.au>
17133         * objects/flowchart/box.c: use offset code to simplify property
17134         get/set routines.
17136         * lib/element.h (ELEMENT_COMMON_PROPERTIES): standard element
17137         properties.
17138         (ELEMENT_COMMON_PROPERTIES_OFFSETS): offsets.
17140         * lib/object.h (OBJECT_COMMON_PROPERTIES): list of standard object
17141         properties.
17142         (OBJECT_COMMON_PROPERTIES_OFFSETS): the offsets of the properties.
17144         * lib/properties.[ch] (object_{get,set}_props_from_offsets): new
17145         functions 
17147 2000-02-12  Alexander Larsson  <alla@lysator.liu.se>
17149         * app/Makefile.am:
17150         Add the custom object to DIA_LIB_PATH in run_dia.sh
17152 2000-02-10  Cyrille Chepelov  <chepelov@calixo.net>
17154         * sheets/Circuit.sheet:
17155         * shapes/l_sout* (NEW):
17156         * shapes/l_outj.* (NEW): added new outputs : jump, and the power-saved
17157         variants of simple, inverted, set and reset outputs.
17158         Still to do: all Schneider/Telemecanique TSX *7 function blocks ; 
17159         probably a split of Contact and Ladder sheets. And then a major 
17160         revamping of the Contact sheet.
17162 2000-02-10  James Henstridge  <james@daa.com.au>
17164         * app/Makefile.am (dia_LDADD): don't link with libcustom_objects.
17166         * app/app_procs.c (register_all_objects): don't explicitely
17167         register the custom objects library -- let it be loaded by the
17168         normal plugin loading methods.
17170         * lib/Makefile.am (libdia_a_SOURCES): don't include custom.h here.
17172         * objects/custom/Makefile.am: build libcustom_objects as a shared
17173         library again.
17175         * objects/custom/shape_info.[ch]: don't read the description field
17176         of custom shapes.  It makes more sense to have these in the sheet
17177         file to localise the parts of dia that translators have to deal
17178         with.
17180         * objects/custom/custom_object.c (custom_object_new): do not
17181         create the sheet object for the new custom shape -- this is
17182         handled by the custom sheet code.
17184         * objects/custom/custom.c: change over to being a normal plug-in
17185         rather than being linked with the main dia executable.
17187 2000-02-09  James Henstridge  <james@daa.com.au>
17189         * sheets/Circuit.sheet: 
17190         * sheets/Flowchart.sheet: 
17191         * sheets/Contact.sheet: fixed up sheets.
17193         * objects/custom/custom_object.c (custom_object_new): set the
17194         extra ObjectType fields.
17196         * lib/sheet.c: use extra ObjectType fields when creating sheet
17197         objects.  Give a warning if <shape> tags are found in a sheet
17198         file.  Now the custom sheet code does not know about custom
17199         shapes -- they look like any other object type.
17201         * lib/object.h (ObjectType): added extra members
17203 2000-02-08  Alexander Larsson  <alla@lysator.liu.se>
17205         * app/linewidth_area.c:
17206         Added code to set arbitrary line width.
17207         Patch by Lars Clausen <lrclause@cs.uiuc.edu>
17209 2000-02-08  Alexander Larsson  <alla@lysator.liu.se>
17211         * app/linewidth_area.c: 
17212         * lib/font.[ch]:
17213         Add support for font-sucking.
17214         Implementation borrowed from gnome-canvas.
17215         
17216         * app/render_libart.[ch]:
17217         Implement text rendering.
17219 2000-02-07  Alexander Larsson  <alla@lysator.liu.se>
17221         * app/properties.c (create_dialog):
17222         ref and sink no_properties_dialog.
17224 2000-02-07  James Henstridge  <james@daa.com.au>
17226         * app/group.c (group_describe_props): new function.  Return the
17227         intersection of the properties of the contained objects that
17228         implement the describe_props interface.
17229         (group_get_props): implement by iterating through contained objects
17230         and calling their get_props method until all properties have been
17231         set.  Maybe this should go through all objects all the time??
17232         (group_set_props): implement by calling set_props method on all
17233         contained objects.
17234         (group_ops): use standard props dialog creation routines.
17236         * lib/properties.c (prop_desc_lists_intersection): fix implementation
17237         of intersection -- I was using i++ instead of i-- in a for loop :(
17239         * objects/custom/custom.c (custom_register_objects): fix usage
17240         of dia_get_data_directory again.
17242         * lib/sheet.c: fix up use of dia_get_data_directory, so that we
17243         actually read the sheets.
17245 2000-02-06  Alexander Larsson  <alla@lysator.liu.se>
17247         Win32 port by Hans Breuer <Hans@Breuer.org>
17249         * app/Makefile.am:
17250         Remove DATADIR and LIBDIR defines.
17252         * lib/Makefile.am:
17253         Add dia_dirs.c and dia_dirs.h
17254         Added DATADIR and LIBDIR defines.
17256         * lib/dia_dirs.[ch]:
17257         New files for handling special directories.
17259         * app/app_procs.c:
17260         * app/commands.c:
17261         * lib/sheet.c:
17262         * objects/custom/custom.c:
17263         Fix warnings.  Use directory functions.
17265         * app/diagram.h:
17266         Add prototype for diagram_redraw_all.
17268         * app/diaunitspinner.c:
17269         * app/filedlg.c:
17270         * app/interface.c:
17271         * app/preferences.c:
17272         Fix warning.
17274         * app/load_save.c:
17275         Win32 doesn't have mkstemp and fchmod.
17277         * app/paginate_psprint.c:
17278         Win32 calls popen _popen and pclose _pclose.
17279         
17280         * app/arrow.c:
17281         Win32 calls finite _finite.
17283         * lib/color.h:
17284         Win32 needs to dllexport the color vars.
17286         * objects/GRAFCET/step.c:
17287         * objects/chronogram/chronoref.c:
17288         snprintf -> g_snprintf
17290 2000-02-05  James Henstridge  <james@daa.com.au>
17292         * lib/properties.c: more fixes so that it doesn't crash when using
17293         properties.  The undo/redo stuff also works!!
17295         * objects/flowchart/box.c (box_{describe, get, set}_props): test
17296         object where I have implemented the new properties interface
17297         complete with automatic properties dialog generation.
17299         * lib/properties.c (object_apply_props): fixed stupid error when
17300         creating the old_props array.  Also, it no longer frees the props
17301         array -- you will have to do that yourself.
17303 2000-02-04  James Henstridge  <james@daa.com.au>
17305         * app/properties.c (properties_apply): pass object_part to
17306         apply_properties.
17308         * lib/object.h (ApplyPropertiesFunc): added widget argument.
17310         * lib/lazyprops.h (PROPDLG_CREATE): ref and sink properties dialogs
17311         created this way as well.
17313         * objects/*/*.c: ref and sink the properties dialog window for each
17314         widget.  It can't rely on ref count being incremented by
17315         properties_show anymore.
17317         * app/properties.c (properties_show): don't ref the widget before
17318         removing it, or its ref count will increase each time you open the
17319         properties dialog.  Don't unparent the widget, as container_remove
17320         does that for us.
17322         * lib/object.h: fixed up prototypes for new object methods.
17324         * lib/properties.[ch]: added functions for automatically creating
17325         a properties dialog from the output of describe_props, get_props and
17326         set_props.
17327         (object_apply_props): apply properties and return an ObjectChange
17328         structure that can be used for undo.
17330 2000-02-03  Cyrille Chepelov  <chepelov@calixo.net>
17332         * objects/GRAFCET/transition.c: minor leak plugged.
17334         * sheets/GRAFCET.sheet:
17335         * objects/GRAFCET/pixmaps/condition.xpm: (NEW)
17336         * objects/GRAFCET/condition.c: (NEW) added a new object type, action 
17337         conditions.
17338         * objects/GRAFCET/Makefile.am: fixed incorrect dependencies, added
17339         new ones (for condition.c).
17340         * objects/GRAFCET/action.c: added connection points for the conditions.
17341         * samples/grafcet.dia: updated the sample to improve conformance to
17342         IEC 848 and take advantage of dia's new features.
17343         
17344         * lib/geometry.h: (point_get_normed) fixed a typo.
17346 2000-02-02  James Henstridge  <james@daa.com.au>
17348         * lib/object.h: added object functions describe_props, get_props and
17349         set_props.  Do type definitions so that object.h doesn't need to
17350         include properties.h, since properties.h includes object.h.
17352         * lib/properties.[ch]: more hacking.
17354         * po/de.po: updated po file.
17356 2000-01-30  James Henstridge  <james@daa.com.au>
17358         * configure.in: don't add flags to CFLAGS unconditionally.  Instead,
17359         check to see if the C compiler accepts the flag beforehand.
17361         * lib/properties.[ch]: start of properties code.
17363         * shapes/Contact/Makefile.am (SHAPES): fix up makefile.
17365 2000-01-30  Cyrille Chepelov  <chepelov@calixo.net>
17366         
17367         * sheets/GRAFCET.sheet:
17368         * sheets/GRAFCET/etapemc.xpm: (NEW)
17369         * sheets/GRAFCET/etapesp.xpm: (NEW)
17370         * objects/GRAFCET/step.c: Added the macro and
17371         sub-program call step types.
17373         * objects/GRAFCET/receptivity.[ch]: renamed to 
17374         objects/GRAFCET/boolequation.[ch]. 
17375         * objects/GRAFCET/transition.c: changed (Receptivity *) to 
17376         (BoolEquation *)
17378         * lib/connpoint_line.[ch]: 
17379         * objects/chronogram/chronoline.c:
17380         * objects/chronogram/chronoref.c:
17381         * objects/GRAFCET/vergent.c:
17382         * objects/standard/line.c:
17383         * objects/SADT/box.c: Minor CPL interface changes, factored out the
17384         point count adjustment code into the CPL object.
17385         
17386 2000-01-29  Alexander Larsson  <alla@lysator.liu.se>
17388         * app/render_libart.c:
17389         Added support for images and bezier curves.
17390         Only text/fonts missing now.
17392         * app/render_gdk.c:
17393         Removed old erronous comment.
17395 2000-01-29  Cyrille Chepelov <chepelov@calixo.net>
17397         * objects/chronogram/chronoline_event.c: removed references to
17398         lround(). Please don't insist, I'm already red of shame.
17399         
17400 2000-01-29  Alexander Larsson  <alla@lysator.liu.se>
17402         * app/render_libart.[ch]:
17403         * app/Makefile.am:
17404         Non-finished libart renderer.
17406         * acconfig.h:
17407         Added HAVE_LIBART flag
17409         * configure.in:
17410         Added libart probe
17412         * app/app_procs.c:
17413         Call gdk_rbg_init().
17415         * app/connectionpoint_ops.c:
17416         * app/disp_callbacks.c:
17417         * app/grid.c:
17418         * app/handle_ops.c:
17419         * app/magnify.c:
17420         * app/modify_tool.c:
17421         Change ddisp->renderer type from RendererGdk * to Renderer *
17422         Draw zoom and select rects in ddisp->canvas->window instead
17423         of ddisp->renderer->renderer->pixmap.
17425         * app/display.[ch]:
17426         Add aa_renderer to DDisplay, and  support for it.
17427         New function ddisplay_set_renderer() for changing renderer.
17428         Add ddisplay_transform_coords_double() function, used by aa renderer.
17429         Change ddisp->renderer type from RendererGdk * to Renderer *
17431         * app/menus.c:
17432         Add antialias to menu.
17433         
17434         * app/commands.[ch]:
17435         add view_aa_callback function
17436         Change ddisp->renderer type from RendererGdk * to Renderer *
17438         * lib/geometry.[ch]:
17439         Added IntRectangle and int_rectangle_union.
17441 2000-01-28  James Henstridge  <james@daa.com.au>
17443         * app/commands.h: removed prototypes.
17445         * app/commands.c: removed the functions that have been moved to
17446         filedlg.c.
17448         * app/filedlg.h: added new prototypes.
17450         * app/filedlg.c (file_open_callback): move open dialog to this
17451         file.  This implementation should remember the current directory
17452         between file loads.
17453         (file_save_as_callback): moved this dialog as well.
17454         (file_save_callback): moved this function here.
17456         * app/paginate_psprint.c (paginate_psprint): if not in fit to mode,
17457         align page boundaries to the origin.
17459         * app/diagram.c (diagram_update_extents): redraw the diagram if the
17460         scaling factor changes while updating the extents.  This is so the
17461         page breaks get redrawn correctly.
17463         * app/pagesetup.c (pagesetup_apply): added diagram_flush call when
17464         applying changes.
17466         * app/grid.c (grid_draw): draw page breaks as well as grid lines.
17467         For normal mode, use (0,0) as the origin.  For `fit to' mode, use
17468         the corner of the bounding box.
17470         * app/pagesetup.c (create_page_setup_dlg): load new paper attributes
17471         into page setup dialog.
17472         (pagesetup_apply): apply new `fit to' attributes to the diagram.
17474         * app/load_save.c (diagram_load): load new paper `fit to' attributes.
17475         (diagram_data_save): save `fit to' data.
17477         * lib/diagramdata.c (new_diagram_data): initialise `fit to' members.
17478         (data_update_extents): when in `fit to' mode, update scale factor
17479         when we update the extents.
17481         * lib/diagramdata.h (PaperInfo): added `fit to' members to PaperInfo
17482         structure.
17484         * .../.cvsignore: added some cvsignore files to quieten cvs.
17485         
17486         * app/pagesetup.c (pagesetup_changed): added code to change the
17487         scaling/fit to values as you change the options in the page setup
17488         dialog.  I haven't added code so that the fit to options are saved
17489         though.
17491         * app/diapagelayout.[ch]: changed the scaling portion of the widget
17492         to make it easier to set a `fit to' style scaling factor.
17494 2000-01-27 Cyrille Chepelov <chepelov@calixo.net>
17495         * lib/neworth_conn.[ch]: (NEW) Temporary (hopefully) fork of orth_conn,
17496         but connpoint_line-based, so that there's a connection point at the 
17497         middle of each segment. Currently only the SADT arrow uses this.
17499         * objects/SADT/* (NEW): SADT (both idf0 and idf1) support.
17500         
17501 2000-01-26 Cyrille Chepelov <chepelov@calixo.net>
17502         * lib/lazyprops.[ch]:(NEW) Added a bunch of macros for loading, 
17503         saving and editing of properties (and default properties). 
17504         See the new objects (GRAFCET, SADT, chonograms) for examples.
17505         For already too hairy stuff, see objects/chronogram/chronoline.c.
17507         * lib/connpoint_line.[ch] (NEW): This subobject manages a line of 
17508         evenly spaced connection points, which the user can add or remove at
17509         will. An object can own several connection point lines. See the SADT
17510         Box, or the GRAFCET vergents for examples.
17512         * lib/dummy_dep.h: added dependencies to new files. Told gcc to keep 
17513         quiet about unused stuff.
17515         * objects/GRAFCET (NEW):
17516         * samples/grafcet.dia (NEW):
17517         Added support for GRAFCET charts. 
17519         * objects/chronogram (NEW):
17520         * samples/chronograms.dia (NEW):
17521         Added support for chronograms (feature requested by Ronald L. Chichest;
17522         I found I'd use it often, too).
17524         * objects/standard/line.c: Replace the middle connectionpoint by 
17525         a whole connection point line, which defaults to one point (hint, 
17526         hint). New Line object menu to take advantage of this. 
17527         "Bothwards" compatibility is preserved (although you may loose 
17528         connections if you load a newer file in a older dia).
17530         * app/lineprops_area.c:
17531         * lib/arrows.[ch]:
17532         * lib/widgets.c: Added hollow and filled ellipse arrow head type. 
17533         (feature requested by Benjamin Kahn).
17534         Merged in Steffen Macke's slashed arrow head type.
17536         * app/Makefile.am (app/run_dia.sh actually):
17537         Added $DEBUGGER in front of dia's invocation, so that
17538         you can call "DEBUGGER=ddd app/run_dia.sh" (maybe naive, but useful).
17539         Added $(EFENCE) to app/dia's LDFLAGS, so that you can do 
17540         "EFENCE=-lefence" to link with Electric Fence.
17542         * configure.in: Made gcc do more aggressive optimisations on i386, and
17543         enabled warnings.
17544         
17545 2000-01-24  James Henstridge  <james@daa.com.au>
17547         * lib/geometry.[ch]: added inline versions of functions.  Used
17548         glib's G_INLINE_FUNC stuff, so it should still work on systems
17549         without inline funcs.
17551         * plug-ins/cgm/cgm.c (draw_ellipse, fill_ellipse): fixed up so that
17552         it outputs the correct element id for the ellipse objects.
17554 2000-01-24 Cyrille Chepelov <chepelov@calixo.net>
17556         * lib/object.[ch]: added object_add_connectionpoint_at, similar to
17557         object_add_handle_at. Message typo fixed.
17558         
17559         * lib/sheet.c (load_register_sheet):
17560         potential bug fixed (warning hunt).
17562         * objects/custom/custom.c (custom_object_load): disabled an assertion
17563         which made dia abort upon failure to load a shape file. Fixed a
17564         subsequent crash. 
17566         * objects/custom/shape_info.c (load_shape_info): Made the custom 
17567         shape load code ignore XML comments between <?xml ...?> and the 
17568         root object (mostly useful to put the emacs magic comments).
17569         
17570         * app/load_save.c: Made dia do backup copies of files when saving,
17571         and complain in case of failure.
17573 2000-01-24  Cyrille Chepelov  <chepelov@calixo.net>
17575         * AUTHORS: fixed my address (ISP thought it was a great idea to change
17576         the domain name)
17577         
17578         * configure.in:
17579         * shapes/Contact:
17580         * shapes/Contact/*:
17581         * sheets/Contact.sheet:
17582         * sheets/Makefile.am:
17583         Added support for Contact and LADDER charts.
17585         * dia.desktop: Added a French translation.
17586         
17587 2000-01-23  James Henstridge  <james@daa.com.au>
17589         * app/commands.c (help_about_callback): don't die if can't load
17590         logo image.
17592         * app/render_gdk.c (bezier_add_lines): sanity check to try to weed
17593         out NaN's when performing bezier curve subdivision.
17595         * objects/custom/custom_object.c: initialise memory of Custom structs
17596         to zero.
17598         * app/render_svg.c (draw_image): added image support to the XML
17599         output filter.  The image is just referenced, rather than being
17600         included inline, so if you copy the SVG file somewhere else, you
17601         may need to move the images or fix up the links.
17603         * plug-ins/cgm/cgm.c (draw_string): output a text colour element,
17604         so the text is not just displayed in black all the time.
17606 2000-01-15  Fredrik Hallenberg  <hallon@lysator.liu.se>
17608         * configure.in: fixed libpopt test so we wont try to build with
17609         too old libpopt.
17611 1999-12-18  Yuri Syrota  <rasta@renome.rovno.ua>
17613         * configure.in: Added "uk" to ALL_LINGUAS.
17615 1999-12-24  James Henstridge  <james@daa.com.au>
17617         * po/ru.po: updated russian translation from Valek Filippov.
17618         
17619         * app/render_svg.c (new_svg_renderer): make output use 19991203
17620         version of SVG DTD.  Use viewBox to set the extents of the view.
17622         * INSTALL (FONTS): updated locations of gnome-xml and imlib.  List
17623         ftp.gnome.org as the download.
17625         * TODO (TODO): weeded out completed todo items and added a few extra.
17627         * Makefile.am (EXTRA_DIST): added documentation to EXTRA_DIST.
17629         * doc/sheet.dtd: first stab at a DTD for the sheet files.  It would
17630         be good to get rid of the object/shape distinction and separate
17631         the custom shape code out from the main application.
17633         * objects/custom/README, diagram.dtd: moved to new doc directory.
17634         Renamed the custom shapes README to custom-shapes.  Also updated
17635         custom shape docs a bit and removed the section on sheet files, as
17636         that has changed a bit.
17638         * plug-ins/cgm/cgm.c (draw_image): give an error if the row length
17639         of the image data is larger than the maximum cell array.  I should
17640         add code to break scan lines down further in this case, but for now
17641         an error message is better than an infinite loop.
17643         * app/filedlg.c (file_export_ok_callback): show a dialog if we
17644         couldn't determine the export filter to use.
17646         * app/commands.c (help_about_callback): fixed up about box logo
17647         expose bug.  Now just use a GtkPixmap widget rather than a
17648         GtkDrawingArea and calling gdk_imlib_paste_image.
17650         * app/Makefile.am (EXTRA_DIST): added print stuff to extra dist,
17651         because automake does not always get things right.
17653         * configure.in: updated version number to 0.83.
17655         * app/preferences.c (prefs_save): 
17656         * app/render_svg.c (new_svg_renderer): "wt" is not a valid flag string
17657         for fopen.  Text is the default file mode anyway.
17659         * app/commands.c (file_save_as_dialog_ok_callback, file_new_callback): 
17660         * app/grid.c (grid_x_update, grid_y_update, grid_show_dialog): 
17661         * app/load_save.c (write_objects, write_connections): 
17662         * app/filedlg.c (file_export_ok_callback): 
17663         * lib/dia_xml.c (data_add_int, data_add_enum, data_add_real): 
17664         * lib/dia_xml.c (data_add_point, data_add_rectangle): 
17665         * lib/font.c (init_x11_font, font_get_gdkfont): changed calls to
17666         snprintf to calls to g_snprintf.
17668         * plug-ins/cgm/cgm.c (export_cgm): write the original dia file name
17669         as the picture name.
17671 1999-12-23  James Henstridge  <james@daa.com.au>
17673         * plug-ins/cgm/cgm.c (write_int32, write_int16): fixed up output of
17674         negative numbers.  This fixes the upside down text problem I was
17675         having previously.
17676         (draw_image): implemented the image code.  It will try to split the
17677         image data up into bands if it is too big to fit into a single
17678         cgm cell array element.  It will have problems if you try to insert
17679         an image wider than about 10,000 pixels though.
17681         * Makefile.am: use gnomedatadir for the files that need to be
17682         installed in gnome's datadir.  This is mainly to help people doing
17683         packages for weird setups.
17685 1999-12-22  James Henstridge  <james@daa.com.au>
17687         * plug-ins/cgm/cgm.c: added support for text.  Now only images and
17688         beziers are left to do.  The text seems to be the wrong way up
17689         still.  This is probably a problem with character orientation
17690         element, but I have used what the settings given in the standard.
17691         Other than this, the CGMs dia produces are readable (and displayable)
17692         by ralcgm and corel draw.
17693         (draw_string): subtract from the X coord rather than the Y coord for
17694         center and right aligned text.
17696         * plug-ins/cgm/cgm.c: a few fixups for the output.  Use REALSIZE as
17697         the size of a real number, and changed name of write_double to
17698         write_real.  Consider changing to fixed real encoding.  Also, now
17699         all element headers are correct.  Once the real number encoding is
17700         fixed, only text, beziers and images are left to do.
17702 1999-12-21  James Henstridge  <james@daa.com.au>
17704         * Makefile.am (SUBDIRS): recurse into plug-ins.
17706         * configure.in: add plug-ins directory makefiles to list.
17708         * plug-ins/cgm/cgm.c: start of cgm export filter.  Beziers and text
17709         not done yet.  Also, the output files are not quite correct.
17711         * app/render_eps.c (print_reencode_font): don't reencode the Symbol
17712         font.  It doesn't work if you do.
17714 1999-12-20  James Henstridge  <james@daa.com.au>
17716         * app/app_procs.c (app_init): don't use diagram_export_to_eps to
17717         export the files.  Instead, use filter_guess_export_filter to
17718         guess the correct format to save in and use the appropriate filter.
17719         It defaults to postscript for compatibility.
17721         * app/diagram.[ch] (diagram_export_to_eps): removed export to eps
17722         function.
17724         * app/commands.[ch]: removed export to eps functions.
17726         * app/menus.c: removed export to eps menu items.
17728         * app/app_procs.c: register new export filters.
17730         * app/load_save.[ch]: define dia native export filter.
17732         * app/render_eps.[ch]: define eps export filter.
17734         * lib/filter.h: added diafilename argument to the DiaExportFunc
17735         prototype.  This is useful for putting the source of the diagram
17736         into the output file for instance.
17738         * app/app_procs.c (app_init): register the SVG export filter.  Have
17739         to get EPS code converted to this API, and maybe also allow saving in
17740         DIA's native format from the export dialog.  In fact, it is now
17741         possible to load an export filter from a shared library and it will
17742         integrate into the interface correctly.
17744         * app/menus.c: removed references to the SVG renderer.
17746         * app/commands.[ch]: removed svg stuff.
17748         * app/diagram.[ch]: removed diagram_export_to_svg function.
17750         * app/render_svg.[ch]: added a DiaExportFilter structure for this
17751         renderer.
17753         * app/filedlg.[ch]: code for the new export diagram dialog.  Will
17754         probably move the open/save dialogs to this file as well.
17756 1999-12-19  James Henstridge  <james@daa.com.au>
17758         * lib/filter.[ch]: start of interface for generalised handling of
17759         filters.  I have only done code for export filters so far.  I still
17760         need to do the gui for this, and convert the current SVG and EPS
17761         filters to the new API.
17763         * lib/bezier_conn.c (bezierconn_copy): fix up copy operation.  We
17764         weren't setting the last handle correctly.  It was actually assigning
17765         to the wrong position in the handles array, so the last handle was
17766         left as NULL, which caused the segfault.
17768         * objects/standard/image.c (image_copy): modified routine so that
17769         it just adds a reference to the DiaImage structure in the new image
17770         object.  This seems to have cleared up the problems with copying
17771         image objects.
17773         * dia.spec: spec file additions from John Gotts.
17775 1999-12-12  James Henstridge  <james@daa.com.au>
17777         * configure.in (GNOME_LIBS): updated version number to 0.82.  0.82
17778         has not been released yet though.
17780         * Makefile.am (EXTRA_DIST): distribute diagram.dtd.
17782         
17783         The following based on a patch from Lars Clausen:
17784         
17785         * objects/standard/bezier.c (bezierline_move_handle): when performing
17786         the initial drag of the bezierline, move the control points to keep
17787         the line straight.
17789         * lib/bezier_conn.c (bezierconn_add_segment): when adding a segment,
17790         make the new control points a bit closer to the major point.
17792         * app/create_object.c (create_object_motion): use HANDLE_MOVE_CREATE
17793         as the reason for the move.
17794         (create_object_button_release): use HANDLE_MOVE_CREATE_FINAL as the
17795         move reason.
17797         * lib/handle.h: new handle move reasons.
17799 1999-12-09  James Henstridge  <james@daa.com.au>
17801         * dia.spec: include the new files in RPMs.
17803         * Makefile.am: install these new files.
17805         * dia.keys.in: file describing actions and icon for dia diagrams for
17806         use in the gnome file manager.
17807         
17808         * dia.mime: a file defining the application/x-dia-diagram mime type.
17809         
17810         * dia-diagram.png: an icon for dia diagrams.
17812 1999-12-08  James Henstridge  <james@daa.com.au>
17814         * plug-ins/python/pydia-diagram.c: added heaps of new methods.
17816         * plug-ins/python/pydia-display.[ch]: wrapper for display.
17818         * objects/standard/ellipse.c: applied Lars's patch to optionally not
17819         draw the background of the ellipse.
17821         * app/load_save.c (read_connections): do some sanity checking on the
17822         handle and connection point numbers before performing the object
17823         connection.
17825         * lib/bezier_conn.c (bezierconn_load): give the correct number of
17826         handles when loading a BezierConn.
17828 1999-12-07  Kjartan Maraas  <kmaraas@online.no>
17830         * sheets/*.sheet: Finished Norwegian translations.
17831         
17832 1999-12-07  James Henstridge  <james@daa.com.au>
17834         * plug-ins/python/diamodule.c (PyDia_Load): load diagram function.
17835         (PyDia_GetObjectType): find object type function.
17837         * plug-ins/python/pydia-diagram.c (PyDiaDiagram_Save): added a save
17838         method for diagrams.
17840         * plug-ins/python/pydia-object.c: added methods for DiaObject and
17841         DiaObjectType.
17843         * AUTHORS: added Lars and Cyrille to the authors file.
17845         * objects/standard/bezier.c (bezierline_add_segment_callback): place
17846         new point correctly.
17848         * lib/bezier_conn.h (bezierconn_closest_segment): fixed prototype.
17850         * lib/bezier_conn.c: applied Lars's patch for placement of the new
17851         point when adding a segment to a BezierConn.
17853 1999-12-06  James Henstridge  <james@daa.com.au>
17855         * plug-ins/python/test.py: test script for the python plug-in.
17857         * plug-ins/python/python.c: this file contains the plug-in startup
17858         code for the python plugin.  Right now, it just initialises the
17859         dia module and executes a script.
17861         * objects/standard/polyline.c (polyline_draw): fix start arrow size.
17863         * objects/standard/bezier.c (bezierline_draw): draw control lines for
17864         bezier curve if we are using an interactive renderer (ie. only if
17865         displaying to the screen).
17867         * lib/bezier_conn.[ch] (bezierconn_draw_control_lines): function
17868         to draw control lines on to a bezier curve.  Based on implementation
17869         from Lars.
17871         * objects/standard/bezier.c (bezierline_delete_segment_callback):
17872         calculate segment number using closest_segment rather than
17873         closest_handle.  Sometimes the closest handle is part of a different
17874         segment.
17875         (bezierline_draw): use correct size for start arrow.
17877         The next few entries are from Peter Moulder <reiter@netspace.net.au>:
17878         * lib/geometry.c (distance_line_point): added notes to documentation
17879         in comment.
17880         * app/object_ops.c (object_list_align_v): 
17881         (object_list_align_h): fix of by one error when calculating free space
17882         for equal distance alignment.
17883         * app/menus.c (objects_align_h, objects_align_v): include align
17884         adjacent menu items in the gnome version of the menus.
17885         * app/diagram.c (diagram_update_menu_sensitivity): set sensitivity on
17886         align adjacent menu items correctly.
17889         * lib/dummy_dep.h (dummy_dep): added bezierconn to dummy dependency
17890         table.
17892         * objects/standard/bezier.c: converted bezierline to use BezierConn.
17893         Still a few bugs.  It crashes on deleting line segments.
17895         * lib/Makefile.am (libdia_a_SOURCES): added BezierConn to libdia.
17897 1999-12-05  James Henstridge  <james@daa.com.au>
17899         * lib/bezier_conn.[ch]: start of BezierConn object
17901         * app/interface.c: add bezierline to toolbox.
17903         * objects/standard/standard.c: initialise bezierline.
17905         * objects/standard/bezier.c: new object from Lars R. Clausen.  I have
17906         made a few modifications to get it working nicely.  It still needs
17907         a bit of work though.  Maybe create a BezierConn object in lib.
17909 1999-12-02  James Henstridge  <james@daa.com.au>
17911         * plug-ins/python/pydia-*.c: fixed compile errors in these files.
17912         
17913         * plug-ins/python/Makefile.am: tried building everything.  It is
17914         building as a library at the moment.  I will have to convert it
17915         to a libtool library and add some initialisation code.
17916         
17917         * plug-ins/python/diamodule.c: start of the dia module, using the
17918         other object wrappers.  Not complete.
17920 1999-12-01  James Henstridge  <james@daa.com.au>
17922         * plug-ins/python/pydia-object.c (PyDiaObject_GetAttr): implement
17923         the handles and connections attributes.
17925         * plug-ins/python/pydia-layer.c: added functions that use
17926         ConnectionPoint's.
17928         * plug-ins/python/pydia-handle.[ch]: wrapper for Handle's.
17930         * plug-ins/python/pydia-cpoint.[ch]: wrapper for ConnectionPoint's.
17932         * plug-ins/python/pydia-*.[ch]: starts of python scripting plug-in.
17933         I am currently wrapping the basic elements in the diagram in python
17934         objects -- nothing to see or play with yet.
17936 1999-11-30  Alexander Larsson  <alla@lysator.liu.se>
17938         * AUTHORS:
17939         * HACKING:
17940         James Henstridge <james@daa.com.au> is now the maintainer of Dia.
17942 1999-11-29  Alexander Larsson  <alla@lysator.liu.se>
17944         * configure.in:
17945         * po/ru.po:
17946         Added russian translation from Valek Filippov <frob@df.ru>
17948 1999-11-24  James Henstridge  <james@daa.com.au>
17950         * sheets/UML/*: 
17951         * sheet/ER/*: moved extra sheet pixmaps back to separate dirs as
17952         discussed with Alex.  Also added extra makefiles so that make install
17953         works correctly.
17955 1999-11-23  Alexander Larsson  <alla@lysator.liu.se>
17957         * app/preferences.[ch]:
17958         * app/display.c:
17959         Added snap to grid preference.
17960         Patch from Michael Leslie <mles@springboardwireless.com>
17962 1999-11-21  Alexander Larsson  <alla@lysator.liu.se>
17964         * app/load_save.c:
17965         * lib/dia_xml.c:
17966         * lib/sheet.c:
17967         * lib/text.c:
17968         * objects/custom/shape_info.c:
17969         All strings returned by libxml must be freed with free, not
17970         g_free, or there will be problems if you use memory debugging
17971         in glib.
17972         
17973 1999-11-21  Alexander Larsson  <alla@lysator.liu.se>
17975         * app/create_object.[ch]:
17976         * app/menus.c:
17977         * app/tool.[ch]:
17978         * app/commands.[ch]:
17979         * app/pixmaps.h:
17980         * app/interface.[ch]:
17981         Reverted the tool menu patch. It has some 'issues'.
17982         I liked it though, so it'll probably return.
17984 1999-11-21  Alexander Larsson  <alla@lysator.liu.se>
17986         Fixed a lot of memory leaks. Thanks to Bruce Mitchener
17987         <bruce@cybersight.com> for some purify runs and analysis.
17988         Also a great thank you to Owen Taylor for creating MemProf, a
17989         free memory leak detector that was used to find and verify a
17990         lot of these fixes.
17991         
17992         * app/diagram.c:
17993         * app/paginate_psprint.c:
17994         * app/render_eps.[ch]:
17995         * app/render_svg.[ch]:
17996         Free renderers.
17998         * app/interface.c:
17999         Don't add a reference to ddisp->shell. Why was this done in
18000         the first place?
18002         * app/load_save.c:
18003         * lib/dia_xml.c:
18004         * lib/sheet.c:
18005         * lib/text.c:
18006         Free all strings returned from xmlGetProp
18008         * app/modify_tool.c:
18009         Plug leak.
18011         * objects/custom/custom.c:
18012         Use closedir() after opendir().
18014         * objects/custom/shape_info.c:
18015         User g_free() instead of "if (tmp) free(tmp)".
18017         * sheets/ER.sheet:
18018         Add newline at end of file.
18019         
18021 1999-11-20  Alexander Larsson  <alla@lysator.liu.se>
18023         Based on patch from Patrick Reynolds <reynolds@cs.duke.edu>
18024         Adds tool menu and keyboard shortcuts.
18026         * app/create_object.[ch]:
18027         Use tool_set() instead of tool_reset().
18028         create_create_object_tool() takes extra type argument
18030         * menus.c:
18031         Add tools menu.
18032         
18033         * tool.[ch]:
18034         Moved tool_data here, export it.
18035         Add separate tool type for all create objects tools.
18036         new functions tool_set().
18038         * commands.[ch]:
18039         New callback tool_set_callback.
18041         * pixmaps.h:
18042         Moved some pixmaps to interface.c.
18043         
18044         * interface.[ch]:
18045         Remove tool_data array (moved to tool.c).
18046         Use the tool_data from tool.c.
18047         Remove modify_tool_button global var.
18048         
18049 1999-11-20  Alexander Larsson  <alla@lysator.liu.se>
18051         Patch from Patrick Reynolds <reynolds@cs.duke.edu>
18052         
18053         * app/app_procs.c:
18054         Interprets command-line arguments as files to open even when
18055         HAVE_POPT is not defined.
18057         * app/magnify.c:        
18058         Shift-clicking when zooming zooms out, like the Gimp.
18060         * app/menus.c:
18061         Has hotkeys for zoom-100% and snap-to-grid.
18063 1999-11-17  James Henstridge  <james@daa.com.au>
18065         * app/scroll_tool.c (scroll_motion): fixed shift style scrolling so
18066         that it is not jumpy.
18068         * app/Makefile.am (EXTRA_DIST): added extra files to extra dist list.
18070         * app/scroll_tool.c (scroll_motion): added `grabbing hand' type
18071         scrolling by pressing the shift key when using the scroll tool.
18073         * sheets/Makefile.am: fixed makefile so that install actually works
18074         if the directories $(pkgdatadir)/sheets/UML and $(pkgdatadir)/sheets/ER
18075         don't exist.
18076         (SHEETS): install Circuit.sheet
18078 1999-11-15  Alexander Larsson  <alla@lysator.liu.se>
18079         Patch from Cyrille Chepelov <chepelov@rmcnet.fr>
18081         * sheets/Circuit.sheet:
18082         * sheets/ER.sheet:
18083         * sheets/FS.sheet:
18084         * sheets/Flowchart.sheet:
18085         * sheets/UML.sheet:
18086         * sheets/network.sheet:
18087         * sheets/sybase.sheet:
18088         Changed name space
18090         * sheets/Circuit.sheet:
18091         added some missing French translations
18093         * lib/sheet.c:
18094         killed the temporary sheet namespace
18096         * objects/custom/custom.c:
18097         obsolete comment cleaned up
18099 1999-11-12  Alexander Larsson  <alla@lysator.liu.se>
18101         * configure.in:
18102         * po/pt.po:
18103         Added portugese translation from Pedro Morais
18104         <pmmm@rnl.ist.utl.pt>
18106 1999-11-11  Alexander Larsson  <alla@lysator.liu.se>
18108         Changed all sheets to be specified in xml.
18109         All sheet objects removed from the C code.
18110         Patch from Cyrille Chepelov <chepelov@rmcnet.fr>
18111         
18112         * Makefile.am:
18113         * configure.in:
18114         Adding shapes dir.
18115         Updated version to 0.81cvs.
18116         
18117         * app/Makefile.am:
18118         Update run_dia.sh with sheet-dir.
18119         
18120         * app/app_procs.c:
18121         Load all sheets on startup.
18122         Create sheet directory first time.
18123         Don't call custom_register_sheets().
18125         * lib/Makefile.am:
18126         Add sheetdir define
18128         * lib/custom.h:
18129         Remove custom_register_sheets().
18131         * lib/sheet.[ch]:
18132         Add sheet loading code.
18134         * sheet/Circuit.sheet:
18135         * sheet/ER.sheet:
18136         * sheet/FS.sheet:
18137         * sheet/Flowchart.sheet:
18138         * sheet/UML.sheet:
18139         * sheet/network.sheet:
18140         * sheet/sybase.sheet:
18141         Added sheet files.
18143         * sheet/ER/weakentity.xpm:
18144         * sheet/UML/aggregation.xpm
18145         * sheet/UML/umlclass_template.xpm
18146         Added sheet pixmaps.
18147         These are moved from their old places.
18149         * sheet/.cvsignore:
18150         Shut up cvs.
18152         * objects/*/*.c:
18153         Removed sheet objects and sheet registration.
18154         
18155         * objects/ER/Makefile.am:
18156         * objects/ER/pixmaps/weakentity.xpm:
18157         * objects/UML/Makefile.am:
18158         * objects/UML/pixmaps/aggregation.xpm:
18159         * objects/UML/pixmaps/umlclass_template.xpm:
18160         Removed alternative pixmaps. (Moved to sheet).
18162         * objects/custom/Makefile.am:
18163         * objects/custom/load_sheet.[ch]:
18164         Removed old sheet loading code.
18165         
18166         * objects/custom/custom.c:
18167         Load all shapes instead of sheets.
18168         Removed custom_register_sheets().
18170         * objects/custom/custom_object.c:
18171         Added debug code.
18173         * objects/custom/shape_info.[ch]:
18174         Added shape_info_getbyname().
18176         * objects/flowchart/Makefile.am:
18177         * objects/flowchart/collate.shape            
18178         * objects/flowchart/delay.shape              
18179         * objects/flowchart/display.shape            
18180         * objects/flowchart/document.shape           
18181         * objects/flowchart/extract.shape            
18182         * objects/flowchart/flowchart.c              
18183         * objects/flowchart/intstorage.shape         
18184         * objects/flowchart/magdisk.shape            
18185         * objects/flowchart/magdrum.shape            
18186         * objects/flowchart/magtape.shape            
18187         * objects/flowchart/manualinput.shape        
18188         * objects/flowchart/manualop.shape           
18189         * objects/flowchart/merge.shape              
18190         * objects/flowchart/offlinestore.shape       
18191         * objects/flowchart/offpageconn.shape        
18192         * objects/flowchart/or.shape                 
18193         * objects/flowchart/predefdproc.shape        
18194         * objects/flowchart/preparation.shape        
18195         * objects/flowchart/punchedcard.shape        
18196         * objects/flowchart/punchedtape.shape        
18197         * objects/flowchart/sort.shape               
18198         * objects/flowchart/sumjunction.shape        
18199         * objects/flowchart/terminal.shape           
18200         * objects/flowchart/transaction.shape        
18201         * objects/flowchart/transmittape.shape       
18202         * objects/flowchart/pixmaps/collate.xpm      
18203         * objects/flowchart/pixmaps/delay.xpm        
18204         * objects/flowchart/pixmaps/display.xpm      
18205         * objects/flowchart/pixmaps/document.xpm     
18206         * objects/flowchart/pixmaps/extract.xpm      
18207         * objects/flowchart/pixmaps/intstorage.xpm   
18208         * objects/flowchart/pixmaps/magdisk.xpm      
18209         * objects/flowchart/pixmaps/magdrum.xpm      
18210         * objects/flowchart/pixmaps/magtape.xpm      
18211         * objects/flowchart/pixmaps/manualinput.xpm  
18212         * objects/flowchart/pixmaps/manualop.xpm     
18213         * objects/flowchart/pixmaps/merge.xpm        
18214         * objects/flowchart/pixmaps/offlinestore.xpm 
18215         * objects/flowchart/pixmaps/offpageconn.xpm  
18216         * objects/flowchart/pixmaps/or.xpm           
18217         * objects/flowchart/pixmaps/predefdproc.xpm  
18218         * objects/flowchart/pixmaps/preparation.xpm  
18219         * objects/flowchart/pixmaps/punchedcard.xpm  
18220         * objects/flowchart/pixmaps/punchedtape.xpm  
18221         * objects/flowchart/pixmaps/sort.xpm         
18222         * objects/flowchart/pixmaps/sumjunction.xpm  
18223         * objects/flowchart/pixmaps/terminal.xpm     
18224         * objects/flowchart/pixmaps/transaction.xpm  
18225         * objects/flowchart/pixmaps/transmittape.xpm 
18226         Moved shapes and their pixmaps to shapes/flowchart
18228         * shapes/Circuit/Makefile.am:
18229         * shapes/Circuit/index.sheet:
18230         Removed index.sheet.
18231         
18232         * shapes/Makefile.am:
18233         * shapes/flowchart/Makefile.am:
18234         * shapes/flowchart/*.shape:
18235         * shapes/flowchart/*.xpm:
18236         Added flowchart shapes. (Moved from objects/flowchart)
18237         
18239 1999-11-07  Fredrik Hallenberg  <hallon@lysator.liu.se>
18241         * app/app_procs.c: Fixed popt stuff.
18243 1999-11-01  James Henstridge  <james@daa.com.au>
18245         * shapes/Circuit/[hv]led_de.{shape,xpm}: new circuit shapes from
18246         Andreas Scherf.
18248 1999-10-31  Alexander Larsson  <alla@lysator.liu.se>
18250         * dia.spec:
18251         * configure.in:
18252         Update version to 0.81.
18253         
18254         * NEWS:
18255         Update with news for 0.81.
18256         
18257         * shapes/Circuit/*:
18258         * shapes/Circuit_eu/*:
18259         Moved european circuit objects to Circuit sheet.
18261 1999-10-31  Alexander Larsson  <alla@lysator.liu.se>
18262         
18263         * lib/diagramdata.[ch]:
18264         Added layer_set_object_list() function.
18266         * app/undo.[ch]:
18267         Added support for undo of reordered objects.
18268         Fix the undo of delete to keep the right order on undo.
18269         
18270         * app/diagram.c:
18271         changed loop to object_add_updates_list() calls.
18272         Added undo support to bring to front/back.
18274         * app/disp_callbacks.c:
18275         * app/paginate_psprint.c:
18276         Remove warnings.
18278 1999-10-30  Alexander Larsson  <alla@lysator.liu.se>
18280         This plugs some leaks. Thanks to
18281         Bruce Mitchener <bruce@cybersight.com> for running
18282         Dia through purify for me.
18283         
18284         * app/app_procs.c:
18285         Free displays and diagrams on exit.
18287         * app/modify_tool.c:
18288         Free gc when freeing tool.
18290         * lib/diagramdata.c:
18291         Free layer name.
18292         
18293         * app/display.c:
18294         Free update and display lists when destroying display.
18295         
18296         * lib/diagramdata.c:
18297         Don't leak layer name.
18299         * objects/custom/load_sheet.c: 
18300         * objects/custom/shape_info.c:
18301         Free loaded xml documents.
18303 1999-10-28  Alexander Larsson  <alla@lysator.liu.se>
18305         * app/commands.c:
18306         * app/object_ops.[ch]:
18307         Add undo handling to alignment ops.
18308         Based partially on patch by Dan Cohn <dan@internap.com>.
18310         * objects/standard/image.c (image_move_handle):
18311         Don't divide by zero for small images.
18312         Patch by Dan Cohn <dan@internap.com>.
18314         * objects/UML/class.c (umlclass_destroy): 
18315         * objects/custom/custom_object.c (custom_destroy):
18316         Don't free connectionpoints before calling element_destroy
18317         which unconnects them.
18319 1999-10-26  Alexander Larsson  <alla@lysator.liu.se>
18321         * objects/custom/custom_object.c: 
18322         Load and save padding too. Fixes strange load crashes.
18324         * app/group.c (group_destroy):
18325         Don't unconnect already freed connectionpoints when
18326         destroying group. Probably fixes bug reported by
18327         Elliot Lee <sopwith@redhat.com>.
18329         * app/render_gdk.c:
18330         Don't crash on zero-size (broken) bezier curves.
18331         Different sort of fix. This should work on closed bezier curves
18332         too.
18334         * objects/standard/textobj.c:
18335         Activate default properties dialog for Text objects.
18337         * app/render_eps.c: 
18338         * app/load_save.c:
18339         * app/preferences.c:
18340         * app/render_svg.c:
18341         fopen files in binary or text mode.
18343 1999-10-26  Alexander Larsson  <alex@cendio.se>
18345         * app/render_gdk.c (bezier_add_lines):
18346         Don't crash on zero-size (broken) bezier curves.
18347         Fixes a crashing bug.
18349 1999-10-25  James Henstridge  <james@daa.com.au>
18351         * app/Makefile.am (run_dia.sh): allow dia to find internal shape files
18352         before it is installed.
18354         * objects/flowchart/flowchart.c: use relative paths to find shapes.
18356         * objects/custom/custom.c (custom_object_load): take file names
18357         relative to $(pkgdatadir)/shape-internal, and check an environment
18358         variable for an alternative directory.
18360         * app/...: added copyright messages to the top of my new code.
18362         * app/paginate_psprint.c: some general clean ups.  Also, give an error
18363         dialog if we can't open the command or output file for writing.
18365         * app/diapagelayout.c (dia_page_layout_set_orientation): fixed
18366         function so it would set orientation to landscape correctly.
18368         * app/paginate_psprint.c: use the paper settings that come with
18369         the diagram.  Also implemented landscape printing.
18371         * app/render_eps.c (new_psprint_renderer): use diagram paper metrics
18372         in PS header.
18374         * app/commands.[ch] (file_pagesetup_callback): added callback for
18375         the page setup dialog.
18377         * app/menus.c: added page setup menu item.
18379         * app/pagesetup.[ch]: implementation of the page setup dialog.
18381         * app/diapagelayout.[ch]: added accessors for the scaling factor.
18382         
18383         * app/load_save.c (diagram_load): load paper information from save
18384         file.
18385         (diagram_save): save the paper info.
18387         * lib/diagramdata.c (new_diagram_data): initialise paper info section
18388         of DiagramData structure.
18389         (diagram_data_destroy): free the paper name.
18391         * lib/diagramdata.h: added a paper member to the DiagramData structure
18392         that holds the page layout info for a diagram.
18394 1999-10-21  Alexander Larsson  <alla@lysator.liu.se>
18396         * objects/flowchart/box.c:
18397         * objects/flowchart/ellipse.c:
18398         * objects/flowchart/diamond.c:
18399         * objects/flowchart/parallelogram.c:
18400         Load and save padding too. Fixes strange load crashes.
18402 1999-10-21  Alexander Larsson  <alla@lysator.liu.se>
18404         * app/app_procs.c (name_is_lib):
18405         .dll, .sl and .so.0.0.0 are also libraries.
18407 1999-10-20  James Henstridge  <james@daa.com.au>
18409         * configure.in: added extra makefile.
18410         
18411         * shapes/Circuit_eu/*: a new set of european circuit shapes from
18412         Andreas Scherf <scherfa@fh-trier.de>.  Made a few small modifications
18413         (added fuses to makefile, fill the area of some of the components).
18415 1999-10-19  Alexander Larsson  <alla@lysator.liu.se>
18417         * lib/Makefile.am:
18418         * app/Makefile.am: 
18419         Add GDK_IMLIB_CFLAGS to includes.
18420         Changed --export-dynamic to -export-dynamic
18422         * lib/widgets.c:
18423         * objects/UML/message.c:
18424         Removed c++ comment.
18426         * lib/render_store.[ch]:
18427         Don't use empty structure. That is not Ansi C.
18429 1999-10-19  James Henstridge  <james@daa.com.au>
18431         * app/diapagelayout.c (dia_page_layout_init): use DiaUnitSpinner's for
18432         the margin entries, as they allow interpretation of units.
18433         (paper_size_change): display the current page dimensions.
18435         * app/diaunitspinner.[ch]: a widget derived from the standard
18436         GtkSpinButton that tries to take units into account.  So if you enter
18437         "1in" into the entry, it will convert it to 2.54cm.
18439 1999-10-18  Alexander Larsson  <alla@lysator.liu.se>
18441         * app/app_procs.c:
18442         Removed include of dlfcn.h
18444 1999-10-18  James Henstridge  <james@daa.com.au>
18446         * app/diapagelayout.c (paper_size_change, orient_changed): set upper
18447         bound on margin widths.  It is set to the paper width/height.
18449         * objects/flowchart/diamond.c (diamond_distance_from): fixed distance
18450         routine for the diamond.  This bug was found and fixed by Daniel Wang
18451         <danwang@CS.Princeton.EDU>
18453 Sun Oct 17 19:46:36 1999  ape@gandalf.spacetec.no  (Asbjorn Pettersen)
18455         * app/commands.c: Add <sys/types.h> before <sys/stat.h> to
18456         remove warning (OS/2 version).
18458 1999-10-17  Alexander Larsson  <alla@lysator.liu.se>
18460         * README:
18461         Put a pointer to objects/custom/README.
18462         
18463 1999-10-17  Alexander Larsson  <alla@lysator.liu.se>
18465         * dia.spec:
18466         Updated version to 0.80
18468         * configure.in:
18469         Updated version to 0.80cvs
18471 1999-04-08  Alexander Larsson  <alla@lysator.liu.se>
18473         * Released Dia 0.80
18474         Tag called DIA_0_80
18475         
18476 1999-10-17  Fredrik Hallenberg  <hallon@lysator.liu.se>
18478         * app/Makefile.am
18479         * lib/Makefile.am
18480         * objects/UML/Makefile.am
18481         * objects/ER/Makefile.am
18482         * objects/network/Makefile.am
18483         * objects/standard/Makefile.am
18484         * objects/FS/Makefile.am
18485         * objects/sybase/Makefile.am
18486         * objects/flowchart/Makefile.am
18487         * objects/custom/Makefile.am
18488         Added -I$(top_srcdir)/intl which is needed for
18489         --with-included-gettext.
18491         * POTFILES.in
18492         Updated.
18493         
18494         * po/sv.po
18495         Updated swedish translation.
18497 1999-10-16  Alexander Larsson  <alla@lysator.liu.se>
18499         * configure.in:
18500         Updated version number to 0.80.
18502         * KNOWN_BUGS:
18503         New file.
18505         * TODO:
18506         Updated. Moved bugs to KNOWN_BUGS.
18508         * NEWS:
18509         Updated with 0.80 release notes.
18510         
18511 1999-10-16  Alexander Larsson  <alla@lysator.liu.se>
18512         
18513         * lib/orth_conn.c:
18514         For backwards compatibility, make sure handle 0 and 1 are the
18515         first and last handle. Fixes compatibility with 0.41, breaks
18516         compatibility with cvs version.
18517         Fixed bug in undo/redo of adding deleting endpoint segments
18518         when the endpoint was connected.
18519         Start OrthConn objects with three segments.
18521 1999-10-16  James Henstridge  <james@daa.com.au>
18523         * objects/custom/custom_object.c (custom_update_data): changed
18524         resizing behaviour a bit so that shapes don't grow huge when you try
18525         to resize them to smaller than the size required by the text box.
18526         Also, now shapes will not grow with fixed aspect ratio when you enter
18527         text into them unless the shape has the fixed aspect ratio flag set.
18529 1999-10-15  James Henstridge  <james@daa.com.au>
18531         * objects/flowchart/flowchart.c: add new shapes to flowchart sheet.
18533         * object/flowchart/pixmaps/...: corresponding pixmaps for new shapes.
18535         * objects/flowchart/magdrum.shape: 
18536         * objects/flowchart/offlinestore.shape: 
18537         * objects/flowchart/punchedtape.shape: 
18538         * objects/flowchart/transmittape.shape: 
18539         * objects/flowchart/punchedcard.shape: new shapes.
18541         * objects/flowchart/flowchart.c: add new shapes to flowchart sheet.
18543         * object/flowchart/pixmaps/...: corresponding pixmaps for new shapes.
18545         * objects/flowchart/collate.shape:
18546         * objects/flowchart/delay.shape:
18547         * objects/flowchart/extract.shape:
18548         * objects/flowchart/intstorage.shape:
18549         * objects/flowchart/magdisk.shape:
18550         * objects/flowchart/magtape.shape:
18551         * objects/flowchart/merge.shape:
18552         * objects/flowchart/or.shape:
18553         * objects/flowchart/sort.shape:
18554         * objects/flowchart/sumjunction.shape: new shapes.
18556 1999-10-15  Alexander Larsson  <alla@lysator.liu.se>
18558         * TODO (BUGS):
18559         Added bug:
18560         Entering an erronous command as print command
18561         crashes dia.
18563         * app/paginate_psprint.c:
18564         Save all print dialog values for next time.
18565         
18566         * app/Makefile.am:
18567         Remove custom lib from DIA_LIB_PATH.
18569 1999-10-14  James Henstridge  <james@daa.com.au>
18571         * objects/flowchart/flowchart.c: add new shapes to flowchart sheet.
18573         * object/flowchart/pixmaps/...: corresponding pixmaps for new shapes.
18574         
18575         * objects/flowchart/offpageconn.shape: 
18576         * objects/flowchart/manualop.shape: 
18577         * objects/flowchart/preparation.shape: 
18578         * objects/flowchart/manualinput.shape: 
18579         * objects/flowchart/predefdproc.shape: 
18580         * objects/flowchart/terminal.shape: new shapes in the flowchart sheet.
18582 1999-10-13  James Henstridge  <james@daa.com.au>
18584         * app/diapagelayout.[ch]: added accessors to paper information.  The
18585         widget should be just about complete now.
18587         * app/diapagelayout.[ch]: fleshed out the page setup widget a bit more.
18588         It actually does something now.
18590 1999-10-12  James Henstridge  <james@daa.com.au>
18592         * app/pixmaps/portrait.xpm, app/pixmaps/landscape.xpm: support pixmaps
18593         for the page layout widget.
18595         * app/diapagelayout.[ch]: start of page layout widget.  Not actually
18596         built yet as it is not complete.
18598         * objects/flowchart/flowchart.c: added new shapes to sheet.
18600         * objects/flowchart/display.shape:
18601         * objects/flowchart/transaction.shape: new shapes.
18603         * AUTHORS: added my name to the spec file.
18605         * dia.spec: include the dia desktop entry to the spec file.
18607         * Makefile.am: install the dia.desktop file.
18609         * dia.desktop: added a gnome desktop entry so you can start dia
18610         from the gnome panel menu.
18612 1999-10-11  James Henstridge  <james@daa.com.au>
18614         * objects/custom/custom_object.c:
18615         * objects/custom/shape_info.c: warning fixes.
18617         * objects/flowchart/document.shape: a shape file for the `document'
18618         flowchart shape.
18620         * lib/custom.h: new header with the custom shape prototypes.
18622         * app/app_procs.c: register custom objects as well.
18623         (register_objects_in): close shared libraries if they don't load
18624         correctly, and call g_module_make_resident on libraries that load
18625         correctly.
18627         * app/Makefile.am (dia_LDADD): added libcustom_objects.a to link list.
18629         * objects/custom/custom.c: removed get_version, added custom_ prefix
18630         to register_objects and register_sheets.
18632         * objects/custom/Makefile.am: converted to a normal library.
18634 1999-10-10  Alexander Larsson  <alla@lysator.liu.se>
18636         * app/lineprops_area.c:
18637         * app/render_svg.c:
18638         * lib/objchange.c:
18639         * objects/custom/shape_info.c:
18640         * objects/flowchart/box.c:
18641         * objects/flowchart/diamond.c:
18642         * objects/flowchart/ellipse.c:
18643         * objects/flowchart/parallelogram.c:
18644         * objects/network/flash.c:
18645         * objects/network/scead-plug.c:
18646         * objects/sybase/client.c:
18647         Removed -Wall warnings.
18648         
18649         * objects/network/bus.c:
18650         Removed unused functions.
18652         * objects/FS/flow-ortho.c:
18653         * objects/FS/flow-poly.c:
18654         * objects/FS/flow.c:
18655         * objects/FS/function.c:
18656         
18657         Implemented "non-implemented" undo for FS objects.
18658         Now at least it won't crash.
18659         
18660 1999-10-10  Alexander Larsson  <alla@lysator.liu.se>
18662         * objects/network/bus.c:
18663         Implemented undo.
18664         Handles are now added and removed using the object menu.
18665         Default to 6 handles instead of 10.
18666         Changed name from "Standard - Bus" to "Network - Bus". Kept old
18667         name for backwards compatibility.
18669         * objects/network/network.c:
18670         Changed name from "Standard - Bus" to "Network - Bus". Kept old
18671         name for backwards compatibility.
18673         * app/properties.[ch]:
18674         * app/undo.c:
18675         Update properties in properties dialog if the shown object
18676         is part of and ObjectChange (undo or redo).
18678         * lib/poly_conn.c:
18679         Remove old known bugs list.
18681         * objects/UML/class_dialog.c:
18682         Removed debug printf's.
18684 1999-10-10  James Henstridge  <james@daa.com.au>
18686         * objects/custom/custom.c (custom_object_load): new function that
18687         provides a nice entry point to the custom shape code for when it
18688         gets used by other libraries.
18690         * configure.in: removed 11 makefiles from AC_OUTPUT list.  This
18691         speeds builds up a bit.
18693         * */Makefile.am (EXTRA_DIST): include pixmaps in distribution.
18694         (SUBDIRS): do not descend into pixmaps subdirs.
18696         * */pixmaps/Makefile.am: removed -- incorporate into parent makefiles.
18697         This speeds up build process.
18699         * objects/custom/custom.c (sheets): made variable static.
18701         * objects/custom/custom_util.[ch] (custom_get_relative_filename):
18702         renamed function.
18704         * objects/custom/load_sheet.[ch] (custom_sheet_load): renamed function.
18706         * objects/custom/custom.c: look in ~/.shapes instead of
18707         ~/.dia_shapes as the per-user shapes directory.
18709         * app/preferences.c (prefs_save): save config to ~/.diarc.
18710         (prefs_load): load configuration from ~/.diarc.  If the file
18711         does not exist, fallback on the old ~/.diarc location.
18713         * app/app_procs.c (create_user_dirs): create the ~/.dia directory
18714         on startup.
18715         (register_all_objects): look for user specific objects in
18716         ~/.objects rather than ~/.dia_libs.
18718 1999-10-10  Fredrik Hallenberg  <hallon@lysator.liu.se>
18720         * configure.in:
18721         * app_procs.c:
18722         * objects/flowchart/box.c
18723         * objects/flowchart/ellipse.c
18724         * objects/flowchart/flowchart.c 
18725         Use gmodule for dynamic linking. As gmodule is using
18726         RTLD_GLOBAL i had to change flowchart box and ellipse
18727         so the typenames doesn't conflict with the standard
18728         box and ellipse.
18730         * message.c
18731         * commands.c
18732         Use button box to make dialogs look better.
18734 1999-10-09  Alexander Larsson  <alla@lysator.liu.se>
18736         * objects/UML/class_dialog.c:
18737         * objects/UML/class.h:
18738         Implemented undo for "UML - Class" objects.
18739         Not 100% tested yet.
18741         * objects/UML/classicon.c:
18742         * objects/UML/constraint.c:
18743         * objects/UML/dependency.c:
18744         * objects/UML/generalization.c:
18745         * objects/UML/implements.c:
18746         * objects/UML/large_package.c:
18747         * objects/UML/lifeline.c:
18748         * objects/UML/message.c:
18749         * objects/UML/object.c:
18750         * objects/UML/realizes.c:
18751         * objects/UML/state.c:
18752         * objects/UML/usecase.c:
18753         Removed warnings.
18754         
18755         * lib/connectionpoint.h:
18756         Fixed typo.
18757         
18758 1999-10-09  James Henstridge  <james@daa.com.au>
18760         * objects/custom/*.[ch]: added copyright notices to custom object
18761         files.
18763         * shapes/Circuit/hdiode.shape:
18764         * shapes/Circuit/hzener.shape: 
18765         * shapes/Circuit/opamp.shape:
18766         * shapes/Circuit/vdiode.shape:
18767         * shapes/Circuit/vzener.shape: made adjustments to make the circuit
18768         shapes look nice after the custom shape code changes.
18770         * objects/custom/README: updated docs to cover changes to drawing
18771         code.
18773         * objects/custom/custom_object.c (custom_draw): honour the line
18774         properties when drawing the shape.
18776         * objects/custom/shape_info.[ch]: added support for setting line
18777         properties for individual drawing elements in a custom shape.  You
18778         can set the dash style, dash length, cap style and join style.
18780 1999-10-07  James Henstridge  <james@daa.com.au>
18782         * objects/custom/shape_info.c (parse_style): added a few extra synonyms
18783         for foreground and background.
18785         * objects/custom/custom_object.c (custom_draw): use the new style
18786         information when drawing the object.
18788         * objects/custom/shape_info.[ch]: store all shape style info in the
18789         GraphicStyle structure.  This makes adding support for extra CSS
18790         attributes easier -- we don't have to keep adding extra arguments to
18791         a lot of functions.
18793 1999-10-05  James Henstridge  <james@daa.com.au>
18795         * lib/intl.c (unalias_lang): merged in changes from the i18n code
18796         swiped from gnome-libs.
18798 1999-10-03  Alexander Larsson  <alla@lysator.liu.se>
18800         * objects/standard/image.c (get_directory):
18801         Fix memleak. Found by Kjartan Maraas <kmaraas@online.no>
18803 1999-09-28  Alexander Larsson  <alla@lysator.liu.se>
18805         * lib/poly_conn.c (polyconn_destroy):
18806         Fix bug. Access of freed memory.
18807         Rememeber, you can't free the handles of an object
18808         before calling object_destroy(), as it unconnects the handles
18809         therefore referencing them.
18811 1999-09-28  Alexander Larsson  <alla@lysator.liu.se>
18813         * app/undo.c:
18814         undo_clear() didn't set stack->depth to zero.
18815         This made other undo functions crash after this had been called
18816         on a "full" stack.
18817         
18818         * dia.xpm:
18819         Slightly modified by Chris Love <clove@exactis.com>
18821 1999-09-19  Alexander Larsson  <alla@lysator.liu.se>
18823         * objects/UML/class.h: 
18824         * objects/UML/class_dialog.c:
18825         Retrun NULL ObjectChange on class property change.
18826         This means no crashes, but "UML - Class" doesn't support undo yet.
18827         
18828 1999-09-19  Alexander Larsson  <alla@lysator.liu.se>
18829         
18830         * lib/text.c:
18831         Indentation fix.
18833         * objects/UML/classicon.c:
18834         * objects/UML/dependency.c:
18835         * objects/UML/generalization.c:
18836         * objects/UML/implements.c:
18837         * objects/UML/large_package.c:
18838         * objects/UML/lifeline.c:
18839         * objects/UML/message.c:
18840         * objects/UML/object.c:
18841         * objects/UML/realizes.c:
18842         * objects/UML/state.c:
18843         * objects/UML/usecase.c:
18844         Update to new undo (w. get/set_state).
18845         Add object menu to add/delete segments.
18847 1999-09-17  Alexander Larsson  <alla@lysator.liu.se>
18849         * app/menus.c:
18850         Add equal distance alignment.
18852         * app/object_ops.c:
18853         Add equal distance alignment.
18854         Fix bug in adjacent alignment.
18856 1999-09-16  Alexander Larsson  <alla@lysator.liu.se>
18858         * objects/UML/constraint.c: 
18859         Update to new undo (w. get/set_state).
18861 1999-09-15  Alexander Larsson  <alla@lysator.liu.se>
18863         * app/paginate_psprint.c:
18864         Save (parts, more todo) of the info in the print dialog to the
18865         next time it's opened.
18866         Patch from Yo Ric Dude <ricdude@toad.net>
18868 1999-09-14  Alexander Larsson  <alla@lysator.liu.se>
18870         * configure.in:
18871         Updated version string to 0.41cvs.
18873         * objects/UML/assocition.c:
18874         Update to new undo (w. get/set_state).
18875         Add object menu to add/delete segments.
18877         * app/app_procs.c:
18878         Added function debug_break() and called it after all
18879         objects and sheets are loaded. Place a breakpoint here if you
18880         want to debug objects. All symbols should be loaded.
18882 1999-09-12  James Henstridge  <james@daa.com.au>
18884         * app/menus.c (display_menu_items): added print menu item.
18885         (filemenu): always add print menu item -- even if gnome-print is
18886         not installed.
18888         * app/commands.h, app/commands.c (file_print_callback): the print
18889         menu item is now available for both gnome-print and non gnome-print
18890         setups.
18892         * app/paginate_psprint.c (diagram_print_ps): show a dialog to let you
18893         print with the non gnome-print driver.
18895 1999-09-11  James Henstridge  <james@daa.com.au>
18897         * app/paginate_gnomeprint.c (diagram_print_gnome): moved the gnome
18898         printer dialog code out of commands.c.
18900         * app/paginate_psprint.c: new file containing the pagination code for
18901         psprint.
18903         * app/render_eps.c: made a few modifications so as well as producing
18904         EPS files, this renderer can be set up to do postscript printing.
18905         This basically entailed adding an extra function to create a RenderEPS
18906         renderer which did not bother setting the viewport for the document.
18907         That was left for the pagination code.
18909 1999-09-10  James Henstridge  <james@daa.com.au>
18911         * app/render_gnomeprint.c (draw_ellipse, fill_ellipse): since
18912         gnome-print does not support elliptic arcs at the moment, approximate
18913         the ellipse with eight bezier curves.  This gives a pretty good
18914         match to a true ellipse.
18916 1999-09-09  James Henstridge  <james@daa.com.au>
18918         * app/commands.c (file_gnome_print_callback): added support for
18919         scaling the diagram.  Also fixed a few other bugs.
18921         * app/paginate_gnomeprint.c (print_page): added ability to scale
18922         document.  Fixed up test to see if the page has no objects on it.
18923         This should prevent some blank pages being printed.  Non square
18924         objects such as lines could still cause problems.
18926 1999-09-08  James Henstridge  <james@daa.com.au>
18928         * app/commands.c (file_gnome_print_callback): changed from using the
18929         standard printer selection dialog to one that also has a paper size
18930         selector as well.
18932         * commands.[ch]: added callbacks for the print menu item.  Currently
18933         it only does A4 output.  I will make it configurable soon.
18934         
18935         * app/menus.c: add a print diagram menu item if gnome-print support
18936         is enabled.
18937         
18938         * app/paginate_gnomeprint.c, app/paginate_gnomeprint.h: this is a
18939         bit higher level than the gnome-print renderer.  It splits the
18940         diagram into page size chunks and then renders them.  For each
18941         page, it only renders the objects whose bounding box intersects
18942         the page, and it sets the clip mask so that the diagram does not
18943         overlap the margins.
18944         
18945         * app/render_gnomeprint.c, app/render_gnomeprint.h: added a renderer
18946         that uses gnome-print as its back end.
18947         
18948         * configure.in: added a check for gnome-print.  It is disabled by
18949         default because the code is not really working correctly yet.
18951         * app/menus.c: the delete object menu item was missing from the
18952         GnomeUIInfo style menus.
18954 1999-09-07  Fredrik Hallenberg  <hallon@lysator.liu.se>
18956         * configure.in
18957         Added japanese to ALL_LINGUAS.
18958         Fix for Linux on Alpha.
18960 1999-09-07  Alexander Larsson  <alla@lysator.liu.se>
18962         * app/create_object.c (create_object_button_press):
18963         Always initialize tool->obj. Otherwise we store a null
18964         in the undo Change.
18966         * lib/text.c:
18967         Set linestyle before drawing cursor.
18968         Fix undo of backwards delete.
18970 1999-09-05  James Henstridge  <james@daa.com.au>
18972         * dia.spec: updated spec file to distribute $(prefix)/share/dia.
18974         * app/render_svg.c (draw_image): some fixes so that the appropriate
18975         style attributes are set.  Before it was setting line styles on
18976         fill_* functions.  Now it only does this for the draw_* variants.
18978         * app/Makefile.am (run_dia.sh): set the DIA_SHAPE_PATH environment
18979         variable so that custom shapes can be loaded.
18981         * shapes/: new directory for custom shapes.  The Circuit sheet has
18982         been moved here.
18984 1999-09-02  James Henstridge  <james@daa.com.au>
18986         * TODO: removed a few todo items that have been implemented.
18988         * app/interface.c (create_sheets): enabled the popup page menu to the
18989         notebook.  This can make it easier to select different sheets.
18991         * object/custom/Circuit/: added diode, zener diode, ground point and
18992         operational amplifier shapes.
18993         
18994         * objects/custom/Makefile.am: added a note about adding DEBUG_CUSTOM
18995         if you want the output.
18997         * objects/custom/shape_info.c (parse_path): same here.
18999         * objects/custom/load_sheet.c (load_with_readdir): don't print so
19000         much debugging output.  To get the previous level of output, define
19001         DEBUG_CUSTOM.
19003         * objects/custom/shape_info.c (parse_svg_node): polygons were being
19004         recorded as polylines in the ShapeInfo structure.
19006         * objects/custom/README: some notes on writing new custom shapes.
19007         
19008 1999-09-01  James Henstridge  <james@daa.com.au>
19010         * objects/custom/Circuit/hinductor.*:
19011         * objects/custom/Circuit/vinductor.*: added inductor shapes that
19012         also test out the bezier curve and SVG path support.
19013         
19014         * objects/custom/custom_object.c (custom_draw): added support for
19015         drawing bezier paths and filled shapes.
19017         * objects/custom/shape_info.c (parse_path): new function to parse
19018         SVG path elements.  It does not do quadratic beziers or elliptic
19019         arcs though.  Only moves, lines and cubic beziers.
19020         (*): added support for paths.
19022 1999-08-31  James Henstridge  <james@daa.com.au>
19024         * objects/sybase/ltm.c (render_to_store): use the newer bezier API.
19026         * app/render_svg.c (draw_bezier, fill_bezier): updated renderer
19027         interface
19029         * app/render_eps.c (draw_bezier, fill_bezier): updated renderer
19030         interface
19032         * app/render_gdk.c (draw_bezier, fill_bezier): updated renderer
19033         interface.
19035         * lib/render_store.[ch]: use newer bezier functions.
19037         * lib/render.h: changed the bezier drawing functions to use an array
19038         of BezPoint structures instead of normal Point structures to allow
19039         lineto's mixed in with the curveto's.
19040         
19041         * objects/custom/Circuit/pnp.*: added pnp transistor shape.
19042         
19043         * objects/custom/Circuit/Makefile.am (SHAPES): added index.sheet and
19044         xpm images for different shapes to Makefile.
19046         * objects/custom/custom_object.c (custom_object_new): set the icon
19047         for the sheet button if there is one.  Otherwise fall back on the
19048         default custom object icon.
19050         * objects/custom/shape_info.c (load_shape_info): read the sheet
19051         icon name from the shape file.
19053         * app/interface.c (create_sheet_page): if sheet_obj->pixmap == NULL,
19054         check the pixmap_file field for the name of a pixmap file to load
19055         for the tool.
19057         * lib/sheet.h (SheetObj): added pixmap_file field to structure.  It is
19058         at the end of the structure, and it isn't used if the pixmap field
19059         is non NULL, so it should not break binary compatibility.
19061         * objects/custom/load_sheet.[ch]: moved sheet loading code here.  Also
19062         added support for the use of an index.sheet file so you can specify
19063         the ordering of the shapes in the sheet, and also internationalise
19064         the sheet name and actually be able to give a description.  The old
19065         readdir based sheet loading code acts as a fallback if an index.sheet
19066         file can not be found.
19068         * objects/custom/custom_util.[ch]: new file containing useful routines
19069         needed by the custom object code.  Currently only contains a simple
19070         routine for resolving relative paths.
19072         * objects/custom/custom_object.c (custom_draw): fixed problem with
19073         drawing rectangles if the shape has been flipped.
19075 1999-08-30  James Henstridge  <james@daa.com.au>
19077         * objects/custom/custom_object.c (custom_get_object_menu): allow
19078         flipping of custom shapes.  This uses the miggle click object
19079         menu.
19081         * objects/custom/Circuit/npn.shape: fix aspect ratio.
19083         * objects/custom/custom_object.c (custom_update_data): honour the
19084         aspect ratio constraints.
19086         * objects/custom/shape_info.c (load_shape_info): updated aspect ratio
19087         tag parsing, so you can specify a free, fixed or a range for aspect
19088         ratios for the shape.
19090 1999-08-29  James Henstridge  <james@daa.com.au>
19092         * objects/custom/test.xml, objects/custom/Circuit/*.shape: fixed
19093         up shape namespace tag.
19095         * objects/custom/shape_info.c (load_shape_info): check xml:lang
19096         attribute on <description> elements to support i18n for custom
19097         shape descriptions.
19098         Also changed the shape namespace for custom shapes to something
19099         a little more sensible.
19101         * lib/dummy_dep.h (dummy_dep): added extra dummy dependency.
19103         * lib/intl.c: new file containing some functions for i18n stuff.
19105         * app/layer_dialog.c (create_button_box): fixed a warning.
19107         * objects/custom/custom_object.c: use current line style.  Save dash
19108         length.
19110         * objects/flowchart/diamond.c: use current line style.  Save dash
19111         length.
19113         * objects/flowchart/parallelogram.c: use current line style.  Save
19114         dash length.
19116         * objects/flowchart/ellipse.c: use current line style.  Save dash
19117         length.
19119         * objects/flowchart/box.c: use current line style.  Save dash length.
19121         * objects/standard/ellipse.c: make ellipse use current line style.
19123         * objects/standard/box.c: use the line style set in the toolbox for
19124         new boxes, and remember the dash length.
19126         * app/commands.c (view_toggle_rulers_callback): fix reshowing of
19127         rulers.
19129 1999-08-24  James Henstridge  <james@daa.com.au>
19131         * objects/flowchart/ellipse.c (ellipse_update_data): made some changes
19132         to try to stop ellipse to get infinite width/height when we resize,
19133         while trying to keep the text inside the ellipse.
19135         * objects/flowchart/box.c, objects/flowchart/parallelogram.c,
19136         * objects/flowchart/diamond.c, objects/flowchart/ellipse.c: fixed
19137         resizing behaviour, so that you can't push objects round the screen
19138         with the resize handles.
19140         * app/lineprops_area.c (dia_arrow_chooser_init, dia_line_chooser_init):
19141         get the OK buttons in the dialogs to take default clicks.
19143         * objects/custom/custom_object.c: added code so that resizing the
19144         shape does not end up pushing it round the screen.
19146 1999-08-23  Alexander Larsson  <alla@lysator.liu.se>
19148         * app/display.[ch]:
19149         Generate rectangle with the union of the damaged regions.
19150         This is used to optimize the grid paint and the object rendering.
19151         display_render_pixmap passes this info to grid_draw() and data_render().
19153         * app/grid.[ch]:
19154         grid_draw doesn't draw grid lines outside of damaged rectangle.
19155         Sets dashlength when drawing non-solid grid.
19156         
19157         * lib/diagramdata.[ch]:
19158         data_render() and layer_render() takes an optional damaged rectangle
19159         argument. No objects not intersecting this are drawn.
19161         * app/diagram.c:
19162         Fix warning.
19163         Call data_render with NULL update rectangle.
19164         
19165 1999-08-23  James Henstridge  <james@daa.com.au>
19167         * objects/custom/custom_object.c (custom_update_data): if the aspect
19168         ratio is fixed, make sure the shape is not distorted.
19170         * object/custom/shape_info.h, objects/custom/shape_info.c: notice if
19171         a <fixaspectratio/> tag is given in the shape file.
19173         * objects/custom/shape_info.[ch], objects/custom/custom_object.c:
19174         added support for stroke-width, stroke and fill CSS attributes
19175         specified in style attributes of the SVG elements.  The line width
19176         is relative to the user specified line width.  The stroke and fill
19177         attributes can only be used to swap the foreground/background
19178         colours.
19180         * lib/widgets.c (dia_line_style_selector_set_linestyle): set the
19181         sensitivity on the dash length selector when this function is called.
19183         * objects/standard/arc.c: same.  Also handle dash length.
19184         * objects/standard/zigzagline.c: same.
19185         * objects/standard/polyline.c: same.  Also handle dash length.
19186         * objects/standard/line.c: use default arrow/line styles.
19188         * app/interface.c: added callbacks to set the default attributes.
19190         * lib/attributes.c: added implementations of these functions.
19192         * lib/attributes.h: added extra prototypes for the new line properties
19193         area in the toolbox.
19195         * app/interface.c (create_lineprops_area): added line properties
19196         area to bottom of toolbox.
19198         * app/lineprops_area.h: a header exporting a few routines of the
19199         line properties area widgets.
19201         * app/lineprops_area.c: new file containing a selector for arrows
19202         and line styles to go in the main toolbox.
19204 1999-08-22  Alexander Larsson  <alla@lysator.liu.se>
19206         * HACKING:
19207         Update Gtk+ 1.0.5 comment to 1.2.0.
19209         * INSTALL:
19210         Demand libtool 1.3
19212         * acconfig.h:
19213         Add HAVE_LIBPOPT
19215         * configure.in:
19216         Make sure we don't propagate -ldl and -lpopt to all LIBS
19217         by adding new var APP_LIBS that only app/dia links with.
19218                 
19219         * app/Makefile.am:
19220         Update run_dia.sh to load custom and flowchart objects.
19222         * objects/ER/Makefile.am:
19223         * objects/FS/Makefile.am:
19224         * objects/UML/Makefile.am:
19225         * objects/network/Makefile.am:
19226         * objects/standard/Makefile.am:
19227         * objects/sybase/Makefile.am:
19228         Don't build versioned libs.     
19229         
19230 1999-08-22  James Henstridge  <james@daa.com.au>
19232         * configure.in: added objects/custom/Circuit/Makefile to AC_OUTPUT
19233         list.
19235         * objects/Makefile.am (SUBDIRS): added custom to subdir list -- it
19236         should actually work a bit now.
19238         * objects/custom/Circuit/*: a test sheet for the custom shape code.
19239         It is a small collection of circuit elements.
19241         * objects/custom/shape_info.c: fixed up loading of polylines and
19242         polygons.  Before it was removing negative signs :(
19244         * objects/custom/pixmaps/custom.xpm: drew the custom shape icon.  A
19245         placeholder was here before.  I still need to work out how to set
19246         icons for individual custom shapes.
19247         
19248         * objects/custom/custom.c: added code to load the shapes into sheets
19249         properly.  The shape files should be arranged into directories, and
19250         each directory represents a different sheet in the toolbox.  This
19251         will make it very easy to distribute a collection of dia shapes as
19252         a tarball.  I still need to work out internationalisation, and maybe
19253         also shape ordering in the sheet.
19255         * objects/custom/custom_object.c: fixed up dialogs for these objects.
19256         (custom_create): fix for objects without text areas.
19258         * objects/custom/shape_info.h, objects/custom/custom_object.c: loading
19259         and saving of custom object works correctly now.
19261 1999-08-21  James Henstridge  <james@daa.com.au>
19263         * objects/flowchart/ellipse.c: 
19264         * objects/flowchart/diamond.c: 
19265         * objects/flowchart/parallelogram.c: 
19266         * objects/flowchart/box.c: Fixed up a few bugs in these objects when
19267         copying or loading these object types.  Not all the connection
19268         points would be initialised correctly.
19270         * objects/flowchart/Makefile.am (libflowchart_objects_la_LDFLAGS):
19271         similar here.
19273         * objects/custom/Makefile.am (libcustom_objects_la_LDFLAGS): do not
19274         build a versioned library.  It will only ever be dlopen'd, so this
19275         is not a problem.
19277         * objects/custom/custom_object.c (custom_distance_from): allow
19278         selecting the object by clicking on the text.  This fixes problems
19279         where the text box is outside the graphic.
19281         * objects/custom/shape_info.c (load_shape_info): fixed up reading
19282         of connections points.  It should be possible to add connections
19283         to custom objects now.
19285         * objects/custom/custom_object.c (custom_update_data): fixed resizing
19286         due to changes to text.
19288         * configure.in: added extra makefiles.
19289         
19290         * objects/custom/shape_info.[ch]:
19291         * objects/custom/custom_object.c:
19292         * objects/custom/custom.c: the starts of custom shape support in dia.
19293         This is not built by default at the moment, since it is not quite
19294         complete.  When it is, it will let you create more shapes for dia
19295         without writing a line of C.  Its implementation includes buzzwords
19296         such as XML and SVG, so it must be good :)
19298 1999-08-19  Karsten Weiss  <karsten@addx.au.s.shuttle.de>
19300         * app/app_procs.c (app_exit): Use button labels "Quit" and
19301         "Cancel" instead of "Yes" and "No".
19302         Set default action to "Cancel" instead of "Quit".
19304 1999-08-19  James Henstridge  <james@daa.com.au>
19306         * objects/flowchart/flowchart.c: added ellipse object.
19307         
19308         * objects/flowchart/ellipse.c: a new shape for the flowchart toolbox.
19310 1999-08-18  James Henstridge  <james@daa.com.au>d
19312         * app/color_area.c (color_area_edit): small fix to prevent dia from
19313         segfaulting when you try to change the default foreground/background.
19315 1999-08-17  Alexander Larsson  <alla@lysator.liu.se>
19317         * app/diagram.[ch] (diagram_redraw_all):
19318         Added function that redraws all diagrams.
19320         * app/preferences.c (prefs_apply):
19321         Call diagram_redraw_all when prefs are changed.
19323         * app/render_svg.c:
19324         Don't use xmlEncodeEntitiesReentrant(). It doesn't exist on
19325         older libxml's, and the old version works good enought here.
19326         
19327 1999-08-17  James Henstridge  <james@daa.com.au>
19329         * lib/widgets.c: changed handlers that were connected to the GtkButton
19330         "pressed" signal to connect to the "clicked" signal.  This removes the
19331         problem where dialogs are inactive until you click a mouse button
19332         after using a colour selector.
19334         * configure.in: added extra makefiles to AC_OUTPUT list.
19335         
19336         * objects/Makefile.am (SUBDIRS): added flowchart module
19338         * objects/flowchart/*: a collection of shapes for use in flowcharts.
19340         * app/color_area.c (color_area_events): similar here.
19342         * app/linewidth_area.c (linewidth_area_events): sometimes a configure
19343         event is recieved with event->width == 0, which causes a warning if we
19344         try to create a pixmap of that width.
19346         * app/preferences.c, app/preferences.h, app/grid.c: added code to
19347         allow you to configure the colour of the grid, and also lets you
19348         set the grid to use dotted lines instead of solid ones.
19349         
19350         * app/commands.c, app/commands.h, app/diagram.c, app/diagram.h,
19351         app/menus.c, app/Makefile.am: added menu entry for exporting SVG files.
19352         
19353         * app/render_svg.h, app/render_svg.c: an SVG (Scalable Vector Graphics)
19354         export filter.  It is not quite complete, but for most shapes it
19355         works as expected.  Fonts still need a bit of work.
19357 1999-08-11  Robert Brady  <rwb197@ecs.soton.ac.uk>
19359         * configure.in: Added "en_GB" to ALL_LINGUAS.
19361 1999-08-04  Fredrik Hallenberg  <hallon@lysator.liu.se>
19363         * menus.c
19364         Added Undo and Redo to GNOME menus.
19365         
19366         * objects/ER/attribute.c:
19367         * objects/ER/entity.c:
19368         * objects/ER/participation.c:
19369         * objects/ER/relationship.c:
19370         Added get/set_state functions.
19372         * objects/ER/participation.c:
19373         Added add/delete segment.
19375         * po/sv.po
19376         Updated Swedish translation.
19378 1999-07-25  Alexander Larsson  <alla@lysator.liu.se>
19380         * app/preferences.[hc]:
19381         Added undo_depth pref.
19382         
19383         * app/undo.[ch]:
19384         Never grow stack larger than pref.undo_depth.
19385         undo_depth == 0 means unlimited.
19386         Converted printfs to conditionally compiled DEBUG_PRINTFs.
19387         
19388 1999-07-25  Alexander Larsson  <alla@lysator.liu.se>
19390         * app/diagram.c:
19391         * app/group.c:
19392         * lib/object.h:
19393         * lib/render_object.c:
19394         * objects/ER/attribute.c:
19395         * objects/ER/entity.c:
19396         * objects/ER/participation.c:
19397         * objects/ER/relationship.c:
19398         * objects/FS/flow-ortho.c:
19399         * objects/FS/flow-poly.c:
19400         * objects/FS/flow.c:
19401         * objects/FS/function.c:
19402         * objects/UML/actor.c:
19403         * objects/UML/association.c:
19404         * objects/UML/class.c:
19405         * objects/UML/classicon.c:
19406         * objects/UML/component.c:
19407         * objects/UML/constraint.c:
19408         * objects/UML/dependency.c:
19409         * objects/UML/generalization.c:
19410         * objects/UML/implements.c:
19411         * objects/UML/large_package.c:
19412         * objects/UML/lifeline.c:
19413         * objects/UML/message.c:
19414         * objects/UML/note.c:
19415         * objects/UML/object.c:
19416         * objects/UML/realizes.c:
19417         * objects/UML/small_package.c:
19418         * objects/UML/state.c:
19419         * objects/UML/usecase.c:
19420         * objects/network/bus.c:
19421         * objects/standard/arc.c:
19422         * objects/standard/box.c:
19423         * objects/standard/ellipse.c:
19424         * objects/standard/image.c:
19425         * objects/standard/line.c:
19426         * objects/standard/polyline.c:
19427         * objects/standard/textobj.c:
19428         * objects/standard/zigzagline.c:
19429         Removed all traces of is_empty(). It doesn't work in an
19430         Undo/Redo world.
19432 1999-07-25  Alexander Larsson  <alla@lysator.liu.se>
19434         * app/diagram.c:
19435         * app/group.[ch]:
19436         * app/undo.[ch]:
19437         Undoable grouping and ungrouping.
19439         * app/layer_dialog.c:
19440         * lib/diagramdata.[ch]:
19441         Undoable layer ops.
19443         * app/modify_tool.c:
19444         Undoable unconnect on handle move.
19446         * lib/orth_conn.[ch]:
19447         Working undoable add/remove segment.
19448         Removed endpoint_handles from OrthConn, renamed
19449         midpoint_handles to handles and put the endpoint
19450         handles there.
19452         * objects/standard/zigzagline.c:
19453         * objects/ER/participation.c:
19454         * objects/UML/association.c:
19455         * objects/UML/dependency.c:
19456         * objects/UML/generalization.c:
19457         * objects/UML/realizes.c:
19458         Update for the changes in OrthConn
19459         
19460 1999-07-23  Karsten Weiss  <karsten@addx.au.s.shuttle.de>
19462         * configure.in: Added "de" to ALL_LINGUAS.
19464 1999-07-17  Alexander Larsson  <alla@lysator.liu.se>
19466         * dia.1:
19467         Fixed typo.
19469         * app/display.c:
19470         * po/da.po:
19471         * po/fr.po:
19472         * po/hu.po:
19473         * po/no.po:
19474         * po/pl.po:
19475         * po/sv.po:
19476         Don't have the <Display> etc part of the menu strings
19477         i18n:ed. Patch from Fabrice.Bellet@imag.fr.
19479         * app/diagram.c:
19480         Don't have the <Display> etc part of the menu strings
19481         i18n:ed. Patch from Fabrice.Bellet@imag.fr.
19482         Don't remove is_empty() objects, that don't work with undo.
19484         * lib/objchange.[ch]:
19485         New files.
19486         Definition of ObjectChange. This is essentially an Change
19487         exported to the object libs. It encapsulates a change made
19488         to an objects internals. It can be applied, reverted and freed.
19489         There are also utility functions for doing ObjectChanges that
19490         only get/set the whole state of an object to store the change.
19491         This cannot be used when the object change deletes or adds a
19492         object which has references from other objects, eg. Handles which
19493         might be connected.
19495         * lib/Makefile.am:
19496         Added objchange.c and objchange.h.
19498         * lib/dia_image.c:
19499         Return NULL when loading fails.
19501         * lib/diamenu.h:
19502         Menu callbacks return an ObjectChange.
19504         * lib/dummy_dep.h:
19505         Reference objchange.o
19507         * lib/focus.h:
19508         Key events return ObjectChange if they modify the object.
19510         
19511         * lib/object.h:
19512         Added object_add_handle_at() function.
19513         Apply properties returns an ObjectChange.
19514         Remove ObjectState and the get/set state functions, these
19515         don't always work. Use the new ObjectChange instead.
19516         
19517         * lib/object.c:
19518         Added object_add_handle_at() function implementation.
19519         
19520         * lib/orth_conn.[ch]:
19521         Use ObjectChange. Not finished yet.
19522         Removed get/set/free state functions
19524         * lib/poly_conn.[ch]:
19525         Use ObjectChange.
19526         Don't remove segments that are small.
19527         Removed get/set/free state functions
19529         * lib/text.[ch]:
19530         Use ObjectChange.
19531         Added functions to get/set all text attributes.
19533         * objects/standard/arc.c:
19534         * objects/standard/box.c:
19535         * objects/standard/ellipse.c:
19536         * objects/standard/image.c:
19537         * objects/standard/line.c:
19538         * objects/standard/polyline.c:
19539         * objects/standard/textobj.c:
19540         * objects/standard/zigzagline.c:
19541         Use ObjectChange.
19542         fixed bug in image_set_state.
19543         zigzagline.c not finished yet.
19545         * app/disp_callbacks.c:
19546         Use ObjectChange that are returned from menu callbacks and
19547         key_events for undo.
19549         * app/properties.c:
19550         Use ObjectChange that are returned from properties apply
19551         for undo.
19553         * app/undo.c:
19554         * app/undo.h:
19555         New undo type: ObjectChangeChange. This wraps a change to the
19556         internals of an object (and ObjectChange) in code that does
19557         app specific stuff (object_add_updates etc.)
19559 1999-07-11  Alexander Larsson  <alla@lysator.liu.se>
19561         * lib/orth_conn.[ch]:
19562         Added code for add/delete segment.
19564         * objects/standard/zigzagline.c:
19565         Use the new orth_conn code.
19566         
19568 1999-07-08  Fredrik Hallenberg  <hallon@lysator.liu.se>
19570         * objects/FS/Makefile.am
19571         Removed fs.h from sources.
19573         * Makefile.am
19574         * dia.1
19575         Added man page.
19577 1999-07-07  Alexander Larsson  <alla@lysator.liu.se>
19579         * app/disp_callbacks.c (ddisplay_canvas_events):
19580         Fix for bug. Every other arrow-key press got lost.
19581         patch from Mr. Data Esq. <data@r47h102.res.gatech.edu>
19583         * INSTALL:
19584         change automake.sh to autogen.sh
19585         
19586 1999-06-24  Alexander Larsson  <alla@lysator.liu.se>
19588         * app/diagram.c:
19589         Don't remove 'empty' objects.
19590         This violent destruction of objects won't work
19591         with the new undo framework.
19593         * app/disp_callbacks.c:
19594         Save undo info for object menu calls and key_events.
19596         * app/properties.c:
19597         Save undo info on properties apply.
19599         * lib/dia_image.[ch]:
19600         Add refcounting for images.
19602         * app/render_eps.c:
19603         * app/render_gdk.c:
19604         * lib/render.h:
19605         DiaImage * -> DiaImage
19607         * app/undo.[ch]:
19608         Add undo functions for object state changes.
19610         * lib/focus.h:
19611         * lib/text.c:
19612         change of semntics for focus->key_event.
19613         Now returns TRUE if the object recieving the event
19614         was changed.
19616         * lib/object.h:
19617         Comment changes.
19619         * lib/orth_conn.[ch]:
19620         Don't automatically create and delete segments when
19621         handles are moved. This is incompatible with undo.
19622         Added state get, set and free functions.
19624         * lib/orth_conn.[ch]:
19625         Added state get, set and free functions.
19627         * objects/UML/object.c:
19628         * objects/UML/uml.c:
19629         Fixed typo "UML - Objet" -> "UML - Object".
19630         Saved old for backwards compatibility.
19632         * objects/standard/arc.c:
19633         * objects/standard/box.c:
19634         * objects/standard/ellipse.c:
19635         * objects/standard/image.c:
19636         * objects/standard/line.c:
19637         * objects/standard/polyline.c:
19638         * objects/standard/textobj.c:
19639         * objects/standard/zigzagline.c:
19640         Added get/set state functions.
19641         Textobj has a redo crash-bug.
19642         Zigzagline needs object menus to add segments.
19643         
19645 1999-06-20  Alexander Larsson  <alla@lysator.liu.se>
19647         * app/render_eps.c (set_dashlength):
19648         Don't generate eps files with zero dash-length.
19650 1999-06-16  Alexander Larsson  <alla@lysator.liu.se>
19652         * app/commands.c:
19653         * app/create_object.c:
19654         * app/undo.[ch]:
19655         Finished undo for create and paste.
19656         
19657         * lib/object.h:
19658         Started properties undo.
19660 1999-06-14  Alexander Larsson  <alla@lysator.liu.se>
19662         * TODO:
19663         Added resizeable groups.
19665         * app/app_procs.c:
19666         Removed unused variable.
19668         * app/commands.c:
19669         * app/undo.[ch]:
19670         Undo/redo for cut/delete done.
19672         * app/create_object.c:
19673         * app/modify_tool.c:
19674         * lib/diagramdata.[ch]:
19675         * app/diagram.[ch]:
19676         renamed diagram_add_selected -> diagram_select
19677         renamed diagram_remove_selected -> diagram_unselect
19678         
19679         * app/properties.[ch]:
19680         Added properties_hide_if_shown() function.
19682 1999-06-13  Alexander Larsson  <alla@lysator.liu.se>
19684         * app/undo.[ch]:
19685         * app/Makefile.am:
19686         Undo functions.
19687         
19688         * app/commands.[ch]
19689         * app/modify_tool.[ch]
19690         * app/object_ops.[ch]
19691         * app/connectionpoint_ops.c
19692         * app/menus.c
19693         Use undo functions.
19694         WARNING: Not finished. Will break.
19695         Finished: move object, move handle.
19697         * app/diagram.[ch]
19698         Added diagram_selected_break_external() function.
19699         It removes all connections between selected objects
19700         and non-selected.
19701         Add undo stack to Diagram.
19702         
19703         * lib/diagramdata.[ch]
19704         Added layer_remove_objects() function
19705         
19706 1999-06-11  Fredrik Hallenberg  <hallon@lysator.liu.se>
19708         * objects/FS/Makefile.am
19709         * objects/sybase/Makefile.am
19710         Now uses GNOME_CFLAGS.
19712         * app/app_procs.c
19713         Now compiles with GNOME even if popt.h isn't available.
19715 1999-06-10  Alexander Larsson  <alla@lysator.liu.se>
19717         * configure.in
19718         * objects/Makefile.am
19719         * objects/sybase/*
19720         First version of sybase objects from
19721         Brian Bruns <camber@umcc.ais.org>
19723 1999-06-10  Fredrik Hallenberg  <hallon@lysator.liu.se>
19725         * configure.in
19726         Added fr to ALL_LINGUAS
19728 1999-06-09  Fredrik Hallenberg  <hallon@lysator.liu.se>
19730         * configure.in
19731         * app/app_procs.c
19732         Popt-code is activated if popt is available.
19734 1999-06-08  Alexander Larsson  <alla@lysator.liu.se>
19736         This is a patch from David Thompson <dcthomp@mail.utexas.edu>
19737         
19738         * lib/orth_conn.[ch]:
19739         Added orthconn_get_middle_handle()
19741         * lib/text.[ch]:
19742         Added text_set_cursor_at_end()
19743         
19744         * objects/FS/*
19745         Added first version of functions structure diagrams.
19746         
19747 1999-05-24  Alexander Larsson  <alla@lysator.liu.se>
19749         * app/modify_tool.c:
19750         Include math.h to remove warning.
19752         * app/commands.c (dialogs_properties_callback):
19753         Bring up correct properties dialog when selected
19754         from menu.
19755         From Dan Cohn <dan@internap.com>
19757 1999-05-20  Alexander Larsson  <alla@lysator.liu.se>
19759         Patch from Lars R. Clausen 
19760         
19761         * app/modify_tool.c:
19762         Changed abs to fabs.
19764 1999-05-19  Alexander Larsson  <alla@lysator.liu.se>
19766         * INSTALL: 
19767         * configure.in:
19768         Require Gtk+ 1.2.0
19770 1999-05-18  Alexander Larsson  <alla@lysator.liu.se>
19772         Patches from Dan Cohn <dan@internap.com>
19773         
19774         * app/commands.[ch]: 
19775         * app/display.[ch]: 
19776         * app/menus.c:
19777         * app/preferences.[ch]:
19778         Implements ability to turn on/off connection points in
19779         current drawing and in global prefs.
19781 1999-05-18  Alexander Larsson  <alla@lysator.liu.se>
19783         * lib/widgets.c (dia_line_style_selector_init): 
19784         Fixed warnings.
19785         
19786         * lib/diagramdata.c (layer_update_extents):
19787         Fixed uninitialized variable error.
19789 1999-05-17  Alexander Larsson  <alla@lysator.liu.se>
19791         * lib/dia_image.c:
19792         Made some changes to the gdk_imlib visual+colormap setup.
19794 1999-05-17  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
19796         * objects/UML/usecase.c: 
19797        * objects/UML/lifeline.c
19798         Fine tunning.
19800         * objects/UML/object.c: 
19801         * objects/UML/message.c: 
19802         Changed font from Courier to Helvetica.
19804         * lib/widgets.c: 
19805         * lib/widgets.h:
19806         Added dash lenth to the LineStyle widget.
19807         
19808         * objects/standard/ellipse.c :
19809         * objects/standard/zigzagline.c: 
19810         * objects/standard/line.c: 
19811         Added dash lenght property.
19813 1999-05-16  Alexander Larsson  <alla@lysator.liu.se>
19815         * app/render_eps.c:
19816         First shot at latin1 encoded eps files.
19817         Works, but the eps files get a bit large.
19818         
19819 1999-05-16  Alexander Larsson  <alla@lysator.liu.se>
19821         * objects/UML/class.[ch]: 
19822         * objects/UML/uml.[ch]:
19823         Reverted the line wrap changes.
19824         Some day this might return, but it has to be selectable and
19825         default to off for loaded objects, otherwise it breaks file
19826         format compatibility.
19827         There was also some complains about how it looked, so a making it
19828         selectable is good for this too.
19830 1999-05-15  Alexander Larsson  <alla@lysator.liu.se>
19832         * objects/UML/class.[ch]:
19833         Some indentation cleanup.
19834         Added wrap_lines variable to class.
19835         I'll fix the line break stuff tomorrow.
19837 1999-05-13  Alexander Larsson  <alla@lysator.liu.se>
19839         * lib/dummy_dep.h:
19840         Added ref to poly_conn.o.
19842         * objects/standard/polyline.c (polyline_draw): 
19843         * objects/standard/zigzagline.c (zigzagline_draw): 
19844         * objects/standard/arc.c (arc_draw): 
19845         * objects/standard/line.c (line_draw):
19846         Draw lines before arrows. This makes hollow arrows not
19847         show the line.
19849 1999-05-13  Alexander Larsson  <alla@lysator.liu.se>
19851         Changes from Kim Peasley <kpeasley@ior.com> 
19852                 
19853         * objects/UML/class.c:
19854         Break lines with long operations so classes won't be
19855         so wide.
19857         * objects/UML/uml.[ch]:
19858         Helperfunctions for the above.
19859         
19860         * objects/UML/objects.c:
19861         Fix bug that duplicated the text in the attributes
19862         textwidget each time the object was selected.
19863         
19864 1999-05-12  Alexander Larsson  <alla@lysator.liu.se>
19866         Changes from Lars R. Clausen <lrclause@cs.uiuc.edu>
19867         
19868         * app/modify_tool.c:
19869         * app/modify_tool.h:
19870         Control-drag is restricted to vertical/horizontal movement
19871         
19872         * lib/object.h:
19873         ModifierKeys argument added to object_move_handle
19875         * app/connectionpoint_ops.c:
19876         * app/create_object.c:
19877         * app/object_ops.c:
19878         * objects/ER/attribute.c:
19879         * objects/ER/entity.c:
19880         * objects/ER/participation.c:
19881         * objects/ER/relationship.c:
19882         * objects/UML/actor.c:
19883         * objects/UML/association.c:
19884         * objects/UML/class.c:
19885         * objects/UML/classicon.c:
19886         * objects/UML/component.c:
19887         * objects/UML/constraint.c:
19888         * objects/UML/dependency.c:
19889         * objects/UML/generalization.c:
19890         * objects/UML/implements.c:
19891         * objects/UML/large_package.c:
19892         * objects/UML/lifeline.c:
19893         * objects/UML/message.c:
19894         * objects/UML/note.c:
19895         * objects/UML/object.c:
19896         * objects/UML/realizes.c:
19897         * objects/UML/small_package.c:
19898         * objects/UML/state.c:
19899         * objects/UML/usecase.c:
19900         * objects/network/bus.c:
19901         * objects/standard/arc.c:
19902         * objects/standard/box.c:
19903         * objects/standard/ellipse.c:
19904         * objects/standard/image.c:
19905         * objects/standard/line.c:
19906         * objects/standard/polyline.c:
19907         * objects/standard/textobj.c:
19908         * objects/standard/zigzagline.c:
19909         Changed calls to move_handle to pass the new argument.
19910         
19911         * lib/widgets.c:
19912         * lib/widgets.h:
19913         Default line width, color etc #define'd
19914         
19915         * po/da.po:
19916         Updates of danish menus
19918 1999-05-08  Fredrik Hallenberg  <hallon@lysator.liu.se>
19920         * dia.xpm
19921         * dia_gnome_icon.png
19922         * dia_gnome_menu_icon.png
19923         * dia_logo.png
19924         Graphics by Toussaint Frédéric <ftoussin@club-internet.fr>.
19926         * app/commands.c
19927         About dialog shows dia_logo.png. Removed the GNOME about dialog.
19929         * Makefile.am
19930         Distribute the icons and install logo in pkgdatadir.
19931         
19932         * app/Makefile.am
19933         Added DATADIR-define.
19934         
19935 1999-04-28  Alexander Larsson  <alla@lysator.liu.se>
19936         Patches from Enrico Scholz <enrico.scholz@wirtschaft.tu-chemnitz.de>
19938         * dia.spec:
19939         Updated version number, made setup quiet, can build from cvs,
19940         --enable-gnome, now using automake 1.4 DESTDIR feature, install-strip
19942         * lib/Makefile.am
19943         * objects/ER/Makefile.am
19944         * objects/UML/Makefile.am
19945         * objects/network/Makefile.am
19946         * objects/standard/Makefile.am
19947         now builds better with gnome
19949         * objects/UML/class_dialog.c
19950         Fixed typo -> po files must be updated too!!
19951         
19952 1999-04-28  Alexander Larsson  <alla@lysator.liu.se>
19954         * lib/dummy_dep.h:
19955         Added reference so that widgets.o gets linked to the app.
19957 1999-04-23  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
19959         * objects/UML/classicon.c: 
19960         Added object mode.
19962         * objects/UML/actor.c: 
19963         Changed position of 'snap-to-grid' so connection points are
19964         in the grid.
19966 1999-04-22  Alexander Larsson  <alla@lysator.liu.se>
19968         * objects/UML/classicon.c:
19969         Changed position of 'snap-to-grid'.
19970         By Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
19971         
19972 1999-04-22  Alexander Larsson  <alla@lysator.liu.se>
19974         * objects/network/antenna.c
19975         * objects/network/flash.c
19976         * objects/network/hub.c
19977         * objects/network/modem.c
19978         * objects/network/modularswitch.c
19979         * objects/network/rj45plug.c
19980         * objects/network/scead-plug.c
19981         * objects/network/network.c
19982         * objects/network/Makefile.am
19983         * objects/network/pixmaps/antenna.xpm
19984         * objects/network/pixmaps/flash.xpm
19985         * objects/network/pixmaps/hub.xpm
19986         * objects/network/pixmaps/modem.xpm
19987         * objects/network/pixmaps/modularswitch.xpm
19988         * objects/network/pixmaps/rj45plug.xpm
19989         * objects/network/pixmaps/sceadplug.xpm
19990         * objects/network/pixmaps/Makefile.am
19991         Lots of new network objects from
19992         Roland Steinbach <roland@support-system.com>.
19994 1999-04-15  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
19996         * objects/UML/classicon.c: 
19997         Fixed connection positions, saved type as int (it has 3 states),
19998         and other small fixes.
19999         
20000 1999-04-14  Alexander Larsson  <alla@lysator.liu.se>
20002         * app/preferences.c:
20003         * app/load_save.c:
20004         Added preference compress_save. It lets dia save uncompressed
20005         xml files.
20007         * objects/UML/class.c:
20008         Fixed bug with size calculation on methods that had class scope.
20009         
20010 1999-04-13  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
20012         * objects/UML/usecase.c: 
20013         Added collaboration mode
20014         Fixed connection points with text > ellipse bug and other 
20015         small things
20017         * objects/UML/state.c:
20018         Fixed bug of bad position of text after being either end
20019         or begin, moved and returned to text
20021 1999-04-12  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
20023         * app/preferences.c: Add prototype declaration for prefs_apply.
20025 1999-04-11  Alexander Larsson  <alla@lysator.liu.se>
20027         * app/preferences.c:
20028         Added 'ok' button.
20029         Apply don't hide window.
20031         * app/properties.c:
20032         Add 'ok' button.
20034         * objects/UML/object.c:
20035         * objdcts/UML/state.c:
20036         Some data was not copied on copy.
20038         This patch is from
20039         Ben Hochstedler <benh@eeyore.moneng.mei.com>
20041 1999-04-09  Alexander Larsson  <alla@lysator.liu.se>
20043         * app/Makefile.am:
20044         Changed link order between X and libxml.
20045         Some people had problems with an old libz in their
20046         x11 directory.  
20048 1999-04-09  Kjartan Maraas  <kmaraas@online.no>
20050         * po/no.po: updated translation.
20051         
20052 1999-04-08  Lars R. Clausen <lrclause@cs.uiuc.edu>
20054         * lib/message.c (message_error):
20055         Fixed small error.
20057         * app/commands.[ch]:
20058         * app/diagram.[ch]:
20059         Added begining of xfig importing
20061 1999-04-08  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
20063         * objects/UML/pixmaps/state.xpm: 
20064         * objects/UML/state.c: 
20065         New UML object state machine.
20067         * objects/UML/uml.c:
20068         * objects/UML/Makefile.am:
20069         * objects/UML/pixmaps/Makefile.am:
20070         Added the state object.
20071         
20072 1999-04-08  Alejandro Aguilar Sierra  <ale@bucefalo>
20074         * objects/UML/usecase.c: 
20075         Added dialog to allow move text outside the ellipse.
20077 1999-04-08  Alexander Larsson  <alla@lysator.liu.se>
20079         * Released Dia 0.41
20080         Tag called DIA_0_41
20082         * NEWS:
20083         Updates for 0.41.
20084         
20085 1999-04-08  Alexander Larsson  <alla@lysator.liu.se>
20087         * configure.in:
20088         Updated version number to 0.41
20090         * po/*.po:
20091         Update po-files
20093 1999-04-04  Fredrik Hallenberg  <hallon@lysator.liu.se>
20095         * app/app_procs.c
20096         Changed errormessage for --export-to-ps. Removed call to 
20097         g_log_set_always_fatal().
20099         * app/diagram.c
20100         * app/disp_callbacks.c
20101         * app/load_save.c
20102         (i18n) Removed gettext from some debugmessages.
20104         * app/menus.c
20105         Small fix in GNOME-menus. Added warning that will help track
20106         problems with translations.
20108         * po/sv.po
20109         (i18n) Updated swedish translation.
20111 1999-04-02  Alexander Larsson  <alla@lysator.liu.se>
20113         * po/da.po:
20114         New updates
20116 1999-04-01  Alexander Larsson  <alla@lysator.liu.se>
20118         * po/da.po:
20119         * po/no.po:
20120         Some fixes.
20121         
20122 1999-04-01  Alexander Larsson  <alla@lysator.liu.se>
20124         * po/da.po:
20125         (i18n) Updated the danish translation.
20126         From Lars R. Clausen.
20128 1999-04-01  Fredrik Hallenberg  <hallon@lysator.liu.se>
20130         * app/menus.c
20131         (i18n) The popup menu is translated now.
20133         * po/sv.po
20134         (i18n) Updated swedish translation.
20136 1999-03-29  Alexander Larsson  <alla@lysator.liu.se>
20138         * Released Dia 0.40
20139         Tag called DIA_0_40
20141         * NEWS:
20142         Updated for new release
20143         
20144 1999-03-29  Alexander Larsson  <alla@lysator.liu.se>
20146         * objects/network/bus.c:
20147         Added initialization of properties dialog to NULL.
20149         * app/commands.c (edit_cut_callback):
20150         Update menu sensitivity when cut object.
20152         * app/modify_tool.c (click_select_object):
20153         * app/modify_tool.c (modify_button_release): 
20154         Call diagram_update_menu_sensitivity() when
20155         selecting objects to update stuff that depends
20156         on selected/not selected.
20158 1999-03-29  Alexander Larsson  <alla@lysator.liu.se>
20160         * Makefile.am:
20161         Change order of subdir so that libintl.a builds.
20162         Now passed make distcheck.
20164 1999-03-28  Alexander Larsson  <alla@lysator.liu.se>
20166         * lib/font.c (init_x11_font):
20167         Stupid bug fixed.
20169 1999-03-28  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
20171         * objects/UML/pixmaps/classicon.xpm: 
20172         * objects/UML/classicon.c:
20173         * objects/UML/uml.c:
20174         Added the class stereotype icon objects.
20176         * app/commands.c:
20177         Changed default ps extension from .ps to .eps.
20178         
20179 1999-03-28  Alexander Larsson  <alla@lysator.liu.se>
20181         * lib/Makefile.am:
20182         Added diamenu.h and intl.h
20184         * lib/font.c:
20185         Stupid typo fix.
20186         
20187         * objects/UML/pixmaps/Makefile.am:
20188         Added message.xpm
20190         * objects/standard/pixmaps/Makefile.am:
20191         Added image.xpm
20193 1999-03-28  Alexander Larsson  <alla@lysator.liu.se>
20195         * lib/font.c:
20196         Use a scalable font before fixed when real font not found.
20198         * app/commands.c:
20199         Removed warning.
20201         * objects/standard/image.c:
20202         Better handling of loading/saving of images.
20204         * INSTALL:
20205         Added some text about cvs, fonts and rewrote some parts.
20207         * TODO:
20208         Updated with new stuff.
20209         
20210         * configure.in:
20211         Bump up version number to 0.40.
20212         
20213 1999-03-28  Alexander Larsson  <alla@lysator.liu.se>
20215         * app/display.c:
20216         Moved diagram_add_ddisplay() call into new_display().
20217         Fixed new_display to not use uninitialized variables
20218         causing loaded files to show up as black (or garbage).
20219         
20220         * app/commands.c:
20221         * app/app_procs.c:
20222         Removed unneeded calls to diagram_add_ddisplay().
20223         
20224 1999-03-28  Alexander Larsson  <alla@lysator.liu.se>
20226         * objects/UML/lifeline.c:
20227         Fixed bug in copy.
20228         Patch from Andreas Jaeger <aj@arthur.rhein-neckar.de>.
20230         * objects/UML/message.c:
20231         Fixed bug loading messages with null-text.
20232         Patch from Andreas Jaeger <aj@arthur.rhein-neckar.de>.
20234 1999-03-27  Fredrik Hallenberg  <hallon@lysator.liu.se>
20236         * po/sv.po
20237         Updated swedish translation.
20239         * app/menus.c
20240         (GNOME) Removed help-browser from help menu. Fixed typo.
20242         * app/interface.c
20243         (GNOME) Accelerators in diagrams should work now. 
20245 1999-03-25  Fredrik Hallenberg  <hallon@lysator.liu.se>
20247         * app/app_procs.c
20248         * app/commands.c
20249         * app/defaults.c
20250         * app/disp_callbacks.c
20251         * app/display.c
20252         * app/interface.c
20253         * app/menus.c
20254         * app/preferences.c
20255         * app/render_eps.c
20256         * lib/diagramdata.c
20257         * lib/font.c
20258         * lib/message.c
20259         * lib/widgets.c
20260         * objects/ER/*.c
20261         * objects/UML/*.c
20262         * objects/network/*.c
20263         * objects/standard/*.c
20264         * po/update_pofiles_in.sh
20265         * po/POFILES.in
20266         More i18n. All strings (expect rare debug messages) can be
20267         translated now. Moved intl.h from app to lib. Updated
20268         update_pofiles_in.sh to check all .c-files.
20270 1999-03-23  Alexander Larsson  <alla@lysator.liu.se>
20272         * app/disp_callbacks.c (ddisplay_canvas_events):
20273         Don't drop keys while num-lock, scroll-lock etc is on.
20275 1999-03-22  Alexander Larsson  <alla@lysator.liu.se>
20277         * app/render_eps.c (draw_image):
20278         Fixed exporting of images.
20279         Still not perfect, but not outright buggy.
20280         
20281 1999-03-22  Alexander Larsson  <alla@lysator.liu.se>
20283         * configure.in:
20284         * po/hu.po:
20285         Added hungarian translation. By Shooby Ban <bansz@szif.hu>.
20287         * app/Makefile.am:
20288         Added $* to the dia call in run_dia.sh
20290 1999-03-22  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
20291         
20292         * lib/color.[ch]:
20293         Added color_equals() call.
20295         * objects/standard/arc.c:
20296         * objects/standard/line.c:
20297         Don't save unneccesary data.
20298         
20299         * objects/standard/box.c:
20300         * objects/standard/ellipse.c:
20301         * objects/standard/image.c:
20302         * objects/standard/polyline.c:
20303         * objects/standard/zigzagline.c:
20304         Share properties dialog.
20305         Don't save unneccesary data.
20306         
20307 1999-03-22  Seth Alves  <alves@hungry.com>
20309         * app/menus.c:
20310         * app/diagram.c:
20311         * app/display.c:
20312         small changes so that gnome menus aren't broken
20313         
20314 1999-03-22  Alexander Larsson  <alla@lysator.liu.se>
20316         * po/da.po:
20317         Added danish translation from lrclause@cs.uiuc.edu.
20319         * po/POFILES.in:
20320         Updated file.
20322         * po/update_pofiles_in.sh:
20323         Added script that updates POFILES.in.
20324         This should probably be run automatically from somewhere.
20326 1999-03-19  Alexander Larsson  <alla@lysator.liu.se>
20328         * app/diagram.[ch]:
20329         Added function diagram_update_menu_sensitivity() which
20330         sets the sensitivity of some menu items. This function
20331         is called at each diagram state change (from diagram_modified()).
20332         This is needed  because otherwise the keyboard accelerators
20333         don't work correctly.
20335         * app/display.[ch]:
20336         Changed display_set_menu_sensitivity() to display_update_menu_state().
20337         Moved lots of code to diagram_update_menu_sensitivity() in
20338         diagram.c. Optimized to only look up menu-items from path:s once.
20339         
20340         * app/disp_callbacks.c:
20341         * app/interface.c:
20342         When we get a GDK_FOCUS_CHANGE, update menu sensitivity.
20343         Need to set GDK_FOCUS_CHANGE_MASK.
20344         
20345         * app/create_object.c:
20346         Call diagram_modified when an object has been created and
20347         selected so that the menu sensitivity is updated. 
20349         * app/menus.[ch]:
20350         removed menus_set_sensitive() and menus_set_state(). Exported
20351         renamed function menus_get_item_from_path().
20353 1999-03-15  Alexander Larsson  <alla@lysator.liu.se>
20355         * app/disp_callbacks.c:
20356         Show (empty) object menus on object that has none.
20357         Show title on object menus.
20359         * app/display.c:
20360         Set zoom factor correctly when opening new displays.
20361         Better setting of scrollbars.
20363         * app/grid.c:
20364         * app/menus.h:
20365         Some reformating cleanup.
20367         * lib/diamenu.h:
20368         Added title to object menus.
20370         * objects/*/*.c:
20371         Added object menu method (NULL-valued) to all objects.
20373         * objects/standard/polyline.c:
20374         Added title to object menu.
20376 1999-03-14  Alexander Larsson  <alla@lysator.liu.se>
20378         * app/preferences.[ch]:
20379         New files. Implements the preferences dialog and
20380         loading/saving of ~/.diarc.
20382         * app/Makefile.am:
20383         Added preferences.[ch].
20385         * app/app_procs.c:
20386         Load preferences on startup.
20388         * app/commands.[ch]:
20389         Added file_preferences_callback to show the preferences dialog.
20391         * app/create_object.c:
20392         Update extents when creating object.
20393         Use the reset_tools_after_create preferences setting.
20395         * app/display.c:
20396         Use preferences when creating new display.
20398         * app/menus.c:
20399         Add preferences to menu.
20401         * app/defaults.c:
20402         * app/layer_dialog.c:
20403         * app/properties.c:
20404         Don't allow shrinking of dialog.
20405         Add i18n of some strings.
20407 1999-03-11  Kjartan Maraas  <kmaraas@fib.hl.no>
20408         * po/no.po:
20409         Norwegian translation added.
20410         
20411 1999-03-11  Alexander Larsson  <alla@lysator.liu.se>
20413         * objects/standard/line.c: 
20414         * objects/standard/arc.c: 
20415         * objects/standard/polyline.c: 
20416         * objects/standard/zigzagline.c:
20417         Loading of arrow data fixed.
20419 1999-03-09  Alexander Larsson  <alla@lysator.liu.se>
20421         * app/commands.c:
20422         Update extents when saving and exporting to postscript.
20423         Fixes a bug with postscript bounding-box being wrong.
20425         * app/defaults.c:
20426         Changed border width from 5 to 2.
20428         * app/group.c:
20429         Move grouped objects by the move-point of the first object.
20430         Fixes bug that made all objects in the group be off-grid
20431         when moving the group, even though all objects was on-grid.
20433         * app/layer_dialog.c:
20434         Update extents when changing layer.
20436 1999-03-08  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
20438        * objects/UML/uml.c: 
20439        * objects/UML/component.c: 
20440        * objects/UML/pixmaps/component.xpm: 
20441        Added the UML component object
20442         
20443 1999-03-04  Seth Alves  <alves@hungry.com>
20445         * objects/UML/generalization.c (generalization_create): avoid
20446         math on uninitialized genlz->text_width (NaN causes sigfpe)
20447         
20448         * objects/UML/realizes.c (realizes_create): same
20450         * objects/UML/dependency.c (dependency_create): same
20452 1999-03-01  Seth Alves  <alves@hungry.com>
20454         * app/display.c (ddisplay_active): don't fly a warning panel
20455         if ddisplay_active is called when no views are open.
20457         * app/commands.c (set_default_file_selection_directory): set
20458         file selector's default directory if there is already
20459         a document open.
20461 1999-02-28  Alexander Larsson  <alla@lysator.liu.se>
20463         * INSTALL:
20464         New info about imlib requirements.
20466         * Configure.in:
20467         Added lib/pixmaps/Makefile to created makefiles.
20469         * app/app_procs.c:
20470         * app/commands.c:
20471         Change from obsoleted to newer gtk calls.
20472         
20473         * load_save.c:
20474         Pass filename of the diagram when loading and saving.
20475         This creates better oportunities to handle filename saving.
20477         * lib/object.h:
20478         Pass filenames to load and save methods.
20479         
20480         * lib/dia_image.[ch]:
20481         Added dia_image_get_broken() call that returns a image which
20482         is used for 'broken' images.
20483         
20484         * lib/pixmaps/.cvsignore:
20485         * lib/pixmaps/Makefile.am:
20486         * lib/pixmaps/broken.xpm:
20487         New files for the broken image bitmap.
20489         * lib/widgets.c:
20490         Fixed bug with double destroyed filedialog.
20492         * objects/*/*.c:
20493         Updated load and save prototypes to use the new filename argument.
20495         * objects/image.c:
20496         Render broken image instead of line when got no image.
20497         Use the new filename in load and save to save (if possible)
20498         relative pathnames and to better try to find loaded images.
20500 1999-02-28  Alexander Larsson  <alla@lysator.liu.se>
20502         * TODO:
20503         Some updates to the todo file.
20504         
20505         * app/menus.c:
20506         * app/display.c:
20507         Place over/place over => sent to back/bring to front.
20508         Added some keyboard shortcuts to menus.
20509         
20510 1999-02-28  Alexander Larsson  <alla@lysator.liu.se>
20512         * lib/dia_xml.c:
20513         Changed string saving/loading to a new method. This should
20514         be much better att handling &,<,> and whitespaces.
20515         Loading strings of the old kind is still supported for backwards
20516         compatibility.
20518         * samples/ER-demo.dia:
20519         * samples/UML-demo.dia:
20520         Updated to use the new strings.
20521         
20522         * app/load_save.c:
20523         statusbar modified update fix.
20525 1999-02-27  Seth Alves  <alves@hungry.com>
20527         * app/app_procs.c (app_init): added a --export-to-ps option
20528         which will cause dia to load a dia file and save it as ps
20529         and then exit.  this is a little bogus, because it still
20530         pops up a window.  this option only shows up if --enable-gnome
20531         is used
20533         * app/display.c (display_set_menu_sensitivity): no Edit/Delete
20534         menu when built with --enable-gnome
20536         * app/interface.c (create_display_shell): build status bar
20537         even if --enable-gnome is used
20539         * app/menus.c: menu fixes for --enable-gnome
20541         * app/commands.c (file_open_dialog_ok_callback): fixed up
20542         menus when --enable-gnome is used
20543         (file_export_to_eps_callback): set a default file name
20544         when dialog is created
20546 1999-02-27  Alexander Larsson  <alex@c125.ryd.student.liu.se>
20548         * objects/UML/association.c (association_create):
20549         Fixed usage of not initialized variable.
20550         Pointed out by Seth Alves <alves@hungry.com>.
20552 1999-02-24  Alexander Larsson  <alex@c125.ryd.student.liu.se>
20554         * configure.in:
20555         Fixed detection of gnome-xml.
20556         From Valtteri Vuorikoski <vuori@k.notcom.org>.
20557         
20558         * app/app_procs.c:
20559         Fixed error detection on dlsym calls. 
20560         From Valtteri Vuorikoski <vuori@k.notcom.org>.
20562 1999-02-23  Alexander Larsson  <alla@lysator.liu.se>
20564         * objects/UML/message.c (fill_in_dialog):
20565         Fixed warnings.
20567 1999-02-22  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
20569         * objects/standard/zigzagline.c:
20570         * objects/standard/polyline.c:
20571         * objects/standard/line.c:
20572         * objects/standard/arc.c:
20573         * lib/widgets.h:
20574         * lib/arrows.h:
20575         * lib/widgets.c:
20576         Support for sizeable arrows. 
20578         * objects/standard/box.c:
20579         * objects/standard/ellipse.c:
20580         * objects/standard/image.c:
20581         Changed creation handle to lower-right.
20582         Transparent box/ellipse.
20583         
20584         * objects/standard/image.c:
20585         Better layout of properties boxes.
20587 1999-02-20  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
20589         * objects/UML/message.c (fill_in_dialog): 
20590         Fixed dialog fill in. Common dialog for all messages.
20592         * objects/UML/object.c: 
20593         Added multiple instance. Dialog related bugs fixed.
20594         Common dialog for all instances. Completed copy and destroy.
20596         * objects/UML/lifeline.c (lifeline_load): 
20597         Conn initialization bug fixed and few bad loading prevention flags.
20598         Common dialog for all lifeline objects.
20599         
20600 1999-02-15  Alexander Larsson  <alla@lysator.liu.se>
20602         * lib/dia_image.[ch]:
20603         More work on the DiaImage abstraction.
20604         
20605         * app/app_procs.c:
20606         * app/render_eps.c:
20607         * app/render_gdk.c:
20608         * objects/standard/image.c:
20609         Use the new DiaImage calls.
20611 1999-02-15  Alexander Larsson  <alla@lysator.liu.se>
20613         * app/menus.c:
20614         * app/display.c:
20615         Reversed the meaning of align horizontal/vertical.
20617 1999-02-15  Alexander Larsson  <alla@lysator.liu.se>
20619         * app/load_save.c (diagram_load):
20620         Statusbar update fix.
20622 1999-02-15  Alexander Larsson  <alla@lysator.liu.se>
20624         * app/interface.c (create_display_shell):
20625         Fixed status bar size.
20626         
20627 1999-02-15  Alexander Larsson  <alla@lysator.liu.se>
20629         * lib/dia_image.[ch]:
20630         Added extern declaration for dia_image_release.
20631         Removed dia_image_draw, as it's not neseccary.
20633 1999-02-14  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
20634         
20635         * app/object_ops.c: 
20636         * app/menus.c: 
20637         Added equal distance alignment both vertical and horizontal.
20638         
20639         * objects/UML/object.c: 
20640         Added a couple of attributes to load/read that were missing.
20642         * objects/UML/lifeline.c: 
20643         Better handling of handles. Fixed another bug I forgot to add
20644         to my last patch.
20645         
20646 1999-02-13  Alexander Larsson  <alla@lysator.liu.se>
20648         Patch from Lars Clausen <lrclause@shasta.cs.uiuc.edu>
20649         
20650         * lib/dia_image.[ch]:
20651         * lib/Makefile.am:
20652         New files. DiaImage wraps the GdkImlibImage.
20654         * lib/render.h:
20655         * app/render_eps.c:
20656         * app/render_gdk.c:
20657         * lib/render_store.[ch]:
20658         * objects/standard/image.c:
20659         Use the new DiaImagetype.
20661         * lib/widgets.c:
20662         Removed unused variable to eliminate  warning.
20664 1999-02-11  Alexander Larsson  <alla@lysator.liu.se>
20666         * objects/standard/box.c:
20667         Added rounded corners on the box object.
20669         * lib/widgets.[ch]:
20670         Updated the DiaFileSelector widget.
20671         
20672 1999-02-09  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
20674         * objects/UML/object.c (objet_draw): 
20675         Completed underlining of all object name lines. 
20677         * objects/UML/message.c (fill_in_dialog): 
20678         Fixed a bug that filled incorrectly the message's dialog.
20680         * objects/UML/lifeline.c (lifeline_load): 
20681         Some cleanning and fixed a couple of bugs that caused
20682         crashes after reading diagrams with lifelines.
20684         * lib/text.c: 
20685         Added flags to prevent crash with void strings
20687 1999-02-07  Matthias Köster <Matthias.Koester@Informatik.Uni-Oldenburg.DE>
20688         * app/display.[ch]:
20689         Added statusbar to the display widget. Currently shows the zoom
20690         factor and modified flag of the viewed diagram. The statusbar is
20691         updated upon calls to ddisplay_zoom and ddisplay_update_statusbar.
20692         This caused the following additions:
20693         
20694         * app/diagram.[ch]:
20695         Added function diagram_set_modified. Calls
20696         ddisplay_update_statusbar for all displays showing the modified diagram.
20697         Changed diagram_modified to call diagram_set_modified.
20698         
20699         * app/interface.c:
20700         Added the creation of the statusbar.
20701         
20702         * app/load_save.c:
20703         diagram_save now calls diagram_set_modified instead of setting
20704         dia->modified. Needed to force call to display_update_statusbar
20705         
20706         * app/commands.c:
20707         Changed the way view_show_all works. Now calls ddisplay_zoom
20708         instead of directly setting the zoom_factor, so the zoom factor is
20709         correctly shown in the statusbar.
20711         * app/magnify.c:
20712         Fixed rubberband zoom to use ddisplay_zoom().
20713         
20714 1999-02-07  Fredrik Hallenberg  <hallon@lysator.liu.se>
20716         * app/app_procs.c
20717         Rudimentary GNOME session management.
20718         
20719         * app/disp_callbacks.c
20720         * app/interface.c
20721         * app/menus.c
20722         * app/menus.h
20723         GNOME menus. Problems: 
20724         Callbacks doesn't get user_data.
20725         Weird warnings when creating popup menus.
20726         menus_set_sensitive(), menus_set_state() doesn't work.
20728 1999-02-05  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
20730         * configure.in:
20731         Add AM_PATH_GDK_IMLIB() call.
20733         * app/Makefile.am:
20734         Add gdk_imlib to linking flags.
20736         * app/app_procs.c:
20737         Init gdk_imlib.
20738         Print library-loading error messages on stdout too.
20740         * app/interface.c:
20741         Add standard image to toolbox.
20742         
20743         * app/render_eps.c: 
20744         Set a more reasonable dot length.  Fixed
20745         missing initialization of dot length.
20746         Added draw_image methods.
20748         * app/render_gdk.c (new_gdk_renderer): 
20749         Dot a bit wider.  Looks good in normal mode now.
20751         * objects/standard/image.c:
20752         * objects/standard/pixmaps/image.xpm:
20753         New files. Standard object for images.
20754         
20755         * app/render_eps.c (set_linestyle):
20756         * app/render_gdk.c (set_linestyle):
20757         * lib/widgets.c (dia_line_style_selector_init): 
20758         * lib/render.h: 
20759         New line style DOTTED.
20761         * lib/render.h:
20762         * lib/render_store.c:
20763         Change DrawImage call to use gdk_imlib.
20765         * lib/widgets.[ch]:
20766         Added widgets for selecting files.
20767         Added dotted to the linestyle selector.
20769 1999-02-06  Alexander Larsson  <alla@lysator.liu.se>
20771         * objects/network/printer.c:
20772         * objects/network/network.c:
20773         * objects/network/pixmaps/printer.xpm:
20774         * objects/network/.cvsignore:
20775         * objects/network/Makefile.am:
20776         * objects/network/pixmaps/Makefile.am:
20777         New printer object in network.
20778         From Martin Hawlisch <hawlisch@roxi.rz.fh-mannheim.de>
20780         * TODO:
20781         Added known XML bug.
20782         
20783 1999-02-06  Alexander Larsson  <alla@lysator.liu.se>
20785         * app/load_save.c:
20786         * lib/dia_xml.c:
20787         Reverted back from #include <gnome-xml/tree.h> to
20788         #include <tree.h> as this is fixed by the xml-config program.
20789         The former way broke for some people.
20790         Reported by blizzard@redhat.com.
20792         * objects/UML/lifeline.c:
20793         * objects/UML/message.c:
20794         * objects/UML/object.c:
20795         Removed some warnings.
20796         
20797 1999-02-04  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
20799         * objects/UML/lifeline.c: 
20800         Fixed connection points over the life line when the focus of
20801         control is not drawn.
20803         * objects/UML/message.c: 
20804         Now a recursive message can be freely resized using the handles.
20806 1999-02-02  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
20808         * objects/UML/lifeline.c:
20809         Added connection points.
20810         Added properties dialog with the option to draw/hide focus of control
20811         box and destruction mark.
20813         * objects/UML/object.c: 
20814         Added properties dialog and stereotype, explicit state and attributes. 
20815         It's also possible to mark the object as active.
20817         * objects/UML/pixmaps/object.xpm: 
20818         Cosmetic change.
20820         * objects/UML/message.c:
20821         Added "recursive" message type (was not necessary to use OrthConn).
20823 1999-02-02  Alexander Larsson  <alla@lysator.liu.se>
20825         * objects/standard/arc.c:
20826         Removed old debug code. Fixes a visual bug. From lrclause@cs.uiuc.edu.
20828 1999-02-01  Alexander Larsson  <alla@lysator.liu.se>
20830         Patch from Lars R. Clausen <lrclause@cs.uiuc.edu>
20831         
20832         * app/load_save.c:
20833         * lib/dia_xml.c:
20834         Update xml includes to gnome-xml/*.h.
20836         * objects/standard/arc.c:
20837         Only one property dialog per type.
20838         Fix arrows directions.
20840         * objects/standard/box.c:
20841         * objects/standard/ellipse.c:
20842         * objects/standard/textobj.c
20843         Added default properties dialog.
20844         
20846 1999-01-31  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
20848         * objects/UML/Makefile.am: 
20849         * objects/UML/uml.c:
20850         * objects/UML/lifeline.c: 
20851         * objects/UML/object.c: 
20852         * objects/UML/message.c:
20853         * objects/UML/pixmaps/lifeline.xpm: 
20854         * objects/UML/pixmaps/object.xpm: 
20855         * objects/UML/pixmaps/message.xpm:
20856         Added 3 new UML objects for dynamic modeling. To avoid internal 
20857         conflicts, the name "objet" is used for object "object".        
20859         * lib/arrows.[ch]: 
20860         Added ARROW_HALF_HEAD arrow type to allow drawing asynchronous
20861         UML messages.
20862         
20863 1999-01-30  Alexander Larsson  <alla@lysator.liu.se>
20865         * app/display.[ch]:
20866         * app/modify_tool.c:
20867         Added autoscrolling while doing rubber-band select.
20868         This patch from Matthias Köster
20869         (Matthias.Koester@Informatik.Uni-Oldenburg.DE)
20870         
20872 1999-01-28  Alexander Larsson  <alla@lysator.liu.se>
20874         * app/defaults.[ch]:
20875         New files, deals with default properties dialog.
20877         * lib/diamenu.h:
20878         New file. Contains definitions for the new object menu.
20880         * lib/poly_conn.[ch]:
20881         New file. Base class for poly-line like objects.
20883         * objects/standard/polyline.c:
20884         * objects/standard/pixmaps/polyline.xpm:
20885         New files. Polyline object.
20887         * app/app_procs.c:
20888         Fixed bug with infinite loop when registering sheets.
20889         
20890         * app/commands.c:
20891         Removed unneccesary stuff.
20893         * app/disp_callbacks.c:
20894         Support for object menus.
20896         * app/interface.c:
20897         Added polyline to toolbox.
20898         Added call to tool_options_dialog_show() when double clicking on
20899         tool.
20901         * app/tool.[ch]:
20902         New function tool_options_dialog_show() for tool properties.
20904         * lib/arrows.[ch]:
20905         Added ARROW_NONE.
20907         * lib/object.h:
20908         Added ObjectType methods for handling object default dialogs.
20909         Added Object method for handling object_menu.
20910         Added unused methods to ObjectTypeOps for future binary
20911         compatibility.
20913         * lib/widgets.[ch]:
20914         Added DiaArrowTypeSelector widget.
20916         * objects/standard/arc.c:
20917         * objects/standard/zigzagline.c:
20918         Added support for default properties.
20920         * objects/standard/line.c:
20921         Added support for default properties.
20922         Just use one properties dialog for all line objects. NOTE: This
20923         seems to have a bug. We're working on it.
20925         * standard/standard.c:
20926         Add the polyline object.
20928 1999-01-27  Alexander Larsson  <alla@lysator.liu.se>
20930         * app/modify_tool.c:
20931         Commented out buggy transitive select function. It wasn't really
20932         meant to go into cvs.
20933         
20935 1999-01-25  Fredrik Hallenberg  <hallon@lysator.liu.se>
20937         * autogen.sh:
20938         * acconfig.h:
20939         * configure.in:
20940         * Makefile.am:
20941         * app/Makefile.am:
20942         * po/POTFILES.in:
20943         * app/intl.h
20944         i18n-support.
20946         * po/sv.po:
20947         Swedish translation. Not completed.
20948         
20949         * configure.in:
20950         * acconfig.h:
20951         Added possibility to enable GNOME specific code with configure.
20953         * configure.in:
20954         Added possibility to set debug level with configure.
20956         * commands.[hc]:
20957         Added about dialog.
20959         * app_procs.c
20960         * commands.c
20961         * interface.c
20962         * menus.c
20963         Added some GNOME specific code. Not ready for use.
20965 1999-01-24  Alexander Larsson  <alla@lysator.liu.se>
20967         * INSTALL:
20968         Added text about needing gtk 1.1.13 and gnome-xml.
20969         
20970         * NEWS:
20971         Described changes since last version (0.20).
20973         Released version 0.30, tagged DIA_0_30.
20975 1999-01-22  Alexander Larsson  <alla@lysator.liu.se>
20977         * app/magnify.c (magnify_button_release):
20978         Fixed a problem when zooming in on a very small box would
20979         not release the grabbed pointer-focus.
20981 1999-01-21  Alexander Larsson  <alla@lysator.liu.se>
20983         * app/load_save.c (diagram_load):
20984         Be somewhat more robust when loading files that
20985         are not diagrams.
20986         
20987 1999-01-21  Alexander Larsson  <alla@lysator.liu.se>
20989         * app/app_procs.c:
20990         * objects/ER/er.c:
20991         * objects/UML/uml.c:
20992         * objects/network/network.c:
20993         * objects/standard/standard.c:
20994         Added versioning of object libraries.
20996         * app/create_object.c:
20997         Don't change tool when an object is created.
20998         
20999         * objects/network/network.c:
21001         * TODO:
21002         Update
21004 1999-01-19  Alexander Larsson  <alla@lysator.liu.se>
21006         * configure.in:
21007         Updated gtk requirement to Gtk+ 1.1.13.
21009         * app/display.c:
21010         Always add one screenful of scrolling space on
21011         each side of a diagram window.
21013 1999-01-19  Jeff Garzik  <jgarzik@pobox.com>
21015         * autogen.sh:
21016         Tell automake to auto-install missing files.
21018         * app/menus.c:
21019         Renamed deprecated Gtk+ function.
21021 1999-01-16  Alexander Larsson  <alla@lysator.liu.se>
21023         * Makefile.am:
21024         * configure.in:
21025         * samples/Makefile.am:
21026         * samples/ER-demo.dia:
21027         * samples/UML-demo.dia:
21028         Added samples directory.
21029         Added samples for ER and UML.
21030         
21031         * app/commands.c:
21032         * app/disp_callbacks.c:
21033         * app/menus.c:
21034         Zoom is done by sqrt(2) instead of 2.
21035         Lots of more zoom options in the menu.
21037         * objects/ER/relationship.c:
21038         Relationships have 8 connectionpoints instead of 4.
21040         * objects/UML/class.c:
21041         UML class name font a bit smaller.
21042         Fixed stupid bug in the copy operation.
21043         
21044         * app/display.c:
21045         Displays are opened at 500x400 instead of 256x256.
21047         * app/load_save.c:
21048         Fixup of internal error message.
21050         * app/color_area.c:
21051         * app/diagram.c:
21052         * app/modify_tool.c:
21053         * lib/object.c:
21054         Removed debug printf's.
21055         
21056         * TODO (BUGS):
21057         Added new known bug.
21059 1999-01-16  Alexander Larsson  <alla@lysator.liu.se>
21061         * app/interface.c:
21062         * app/menus.c:
21063         Fixed so accelerator groups work in all windows.
21064         Updated to new gtk function names.
21066         * TODO (BUGS):
21067         Removed fixed bug.
21069         * app/display.c:
21070         Updated to new gtk function names.
21071         Set sensitivity of the align menu items.        
21073         * objects/ER/pixmaps/Makefile.am:
21074         * objects/UML/pixmaps/Makefile.am:
21075         * objects/network/pixmaps/Makefile.am:
21076         Fix so that make dist works.
21078         * app/app_procs.c:
21079         * app/color_area.c:
21080         * app/commands.c:
21081         * app/diagram.c:
21082         * app/grid.c:
21083         * app/layer_dialog.c:
21084         * app/load_save.c:
21085         * app/object_ops.c:
21086         * app/properties.c:
21087         * lib/diagramdata.[ch]: 
21088         * lib/message.c:
21089         * lib/objects/ER/attribute.c:
21090         * lib/objects/ER/entity.c:
21091         * lib/objects/ER/participation.c:
21092         * lib/objects/ER/relationship.c:
21093         * lib/objects/ER/.c:
21094         * objects/UML/actor.c:
21095         * objects/UML/association.c:
21096         * objects/UML/class_dialog.c:
21097         * objects/UML/dependency.c:
21098         * objects/UML/generalization.c:
21099         * objects/UML/large_package.c:
21100         * objects/UML/realizes.c:
21101         * objects/UML/.c:
21102         * objects/UML/.c:
21103         Updated to new gtk function names.
21104         Removed warnings.
21106 1999-01-15  Alexander Larsson  <alla@lysator.liu.se>
21108         * TODO:
21109         Update TODO.
21111         * app/app_procs.c:
21112         Fixed loading of diagrams specified as arguments.
21114         * objects/ER/attribute.c:
21115         * objects/ER/entity.c:
21116         * objects/ER/er.c:
21117         * objects/ER/participation.c:
21118         * objects/ER/relationship.c:
21119         Updated the ER objects.
21120         
21122 1999-01-14  Alexander Larsson  <alla@lysator.liu.se>
21124         * configure.in:
21125         * app/Makefile.am:
21126         * objects/Makefile.am:
21127         * objects/ER/attribute.c:
21128         * objects/ER/entity.c:
21129         * objects/ER/er.c:
21130         * objects/ER/participation.c:
21131         * objects/ER/relationship.c:
21132         * objects/ER/pixmaps/Makefile.am:
21133         * objects/ER/pixmaps/attribute.xpm:
21134         * objects/ER/pixmaps/entity.xpm:
21135         * objects/ER/pixmaps/participation.xpm:
21136         * objects/ER/pixmaps/relationship.xpm:
21137         * objects/ER/pixmaps/weakentity.xpm:
21138         First commit of entity relationship objects.
21139         These were done by hallon@lysator.liu.se.
21140         There are still stuff to do on these.
21141         
21142 1999-01-14  Alexander Larsson  <alla@lysator.liu.se>
21144         * TODO:
21145         Updates.
21147         * app/diagram.[ch]:
21148         Change diagram_remove_all_selected to take new argument
21149         delete_empty. Empty objects are deleted only if it is TRUE.
21150         Removed call to close_eps_renderer. This is now done in end_render
21151         in the eps renderer.
21153         * app/create_object.c:
21154         * app/layer_dialog.c:
21155         Update calls to diagram_remove_all_selected.
21157         * app/commands.c:
21158         Update calls to diagram_remove_all_selected.
21159         Some code reformating.
21160         Changed order of adding updates i align_h and align_v.
21162         * app/modify_tool.c:
21163         Update calls to diagram_remove_all_selected.
21164         Added pointer grab when doing rubber-band selection, this fixes
21165         the bug when draging the box over to another window.
21167         * app/connectionpoint_ops.[ch]:
21168         diagram_update_connections_object changed to take an argument
21169         update_nonmoved. This lets connections that has not moved, but
21170         the stuff they're connected to has been moved work.
21171         Update calls to the new diagram_update_connections_object.
21173         * app/properties.c:
21174         Update calls to the new diagram_update_connections_object.
21175         Update extents when properties are applied.
21176         
21177         * app/disp_callbacks.c:
21178         Added support for zooming with the '+' and '-' keys.
21180         * app/menus.c:
21181         Removed old keyboard shortcuts for zoom.
21183         * lib/render.h:
21184         Added calls begin_render and end_render to renderer.
21185         These can be used for setup and cleanup.
21187         * lib/diagramdata.c:
21188         Added calls to begin_render and end_render in data_render.
21190         * app/render_gdk.c:
21191         Added begin_render and end_render.
21193         * app/render_eps.[ch]:
21194         Added begin_render and end_render.
21195         Moved close_eps_renderer code to end_render.
21196         Various fixes to the generated eps code. This fixes importing
21197         generated eps into LYX.
21198         
21199 1999-01-12  Alexander Larsson  <alla@lysator.liu.se>
21201         * TODO:
21202         Update of todo.
21203         
21204         * app/menus.c:
21205         Menus for alignment updated.
21207         * app/object_ops.[ch]:
21208         Functions for object alignment updated.
21210         * app/commands.[ch]:
21211         Object alignment callbacks updated.
21212         New diagrams are called Untitled-<nr>.
21214         * app/layer_dialog.c:
21215         Active layer selected when showing layers from new
21216         diagram.
21218         * app/load_save.c:
21219         Compress xml files when saving.
21220         Use xml namespace 'dia'.
21222         * lib/object.h:
21223         Minor comment update.
21225         * objects/UML/class_dialog.c:
21226         Cleanup of the gkt_list_item moving code.
21227         Fixed bug with update of operation when moving parameters.
21229 1999-01-10  Alexander Larsson  <alla@lysator.liu.se>
21231         * app/layer_dialog.[ch]:
21232         Fixed the rest of the layers dialog.
21234         * app/dialog.c:
21235         Added call to redo layer dialogs diagram list when changing
21236         diagram name.
21238         * lib/diagramdata.[ch]:
21239         Added data_raise_layer and data_lower_layer functions for
21240         raising/lowering layers. Added data_add_layer_at for adding a
21241         layer at a specified index.
21243 1999-01-05  Alexander Larsson  <alla@lysator.liu.se>
21245         This is the asierra-990105 patch done by asierra@servidor.unam.mx.
21246                 
21247         * app/app_procs.c:
21248         Added support for reading diagrams from the command line.
21250 1998-12-21  Alexander Larsson  <alla@lysator.liu.se>
21252         This is the asierra-981220 patch done by asierra@servidor.unam.mx.
21253                 
21254         * app/commands.[ch]:
21255         Added objects_align_callback().
21257         * app/menus.c:
21258         Added align objects to menu.
21260         * app/object_ops.[ch]:
21261         Add object_list_align().
21262         
21263 1998-12-17  Alexander Larsson  <alla@lysator.liu.se>
21264         * app/layer_dialog.[ch]:
21265         New files. Handles the layers dialog. Needs a bugfix for glib to
21266         work. Sent patch to gtk-list.
21267         
21268         * app/pixmaps/new.xpm:
21269         * app/pixmaps/eye.xbm:
21270         * app/pixmaps/lower.xpm:
21271         * app/pixmaps/raise.xpm:
21272         * app/pixmaps/delete.xpm:
21273         New files. Images for the layer dialog buttons.
21274         
21275         * lib/diagramdata.h
21276         * lib/diagramdata.c
21277         New files for the DiagramData and Layer structures and functions.
21278         
21279         * app/app_procs.c:
21280         Added call to create_layer_dialog() on startup.
21281         
21282         * app/commands.[ch]:
21283         New callbacks for showing the properties and layout dialog.
21284         Changes for the new DiagramData structure.
21286         * app/connectionpoint_ops.c:
21287         * app/cut_n_paste.c:
21288         * app/diagram.[ch]:
21289         * app/display.[ch]:
21290         * app/group.c:
21291         * app/modify_tool.c:
21292         * app/object_ops.[ch]:
21293         * app/render_eps.c:
21294         * lib/object.[ch]:
21295         Changes for the new DiagramData structure.
21297         * app/interface.c:
21298         * app/properties.c:
21299         Set correct wmclasses.
21301         * app/load_save.c:
21302         Fix load and save of layers.
21304         * diagram.dtd:
21305         Update DTD for layers.
21306         
21307         * app/menus.c:
21308         New menus for dialogs.
21310         
21311         * TODO:
21312         Some updates.
21313         
21314 1998-12-06  Alexander Larsson  <alla@lysator.liu.se>
21316         * TODO:
21317         Removed the gtk 1.1.5 stuff.
21319         * configure.in:
21320         Updated gtk check to version 1.1.5.
21321         Updated version from 0.20 to 0.30
21323         * app/commands.[ch]:
21324         Updated some callbacks to be of type GtkItemFactoryCallback1.
21325         Not all are done yet, but it works anyway.
21327         * app/display.h:
21328         Removed Gtk 1.0.0 GtkAcceleratorTable references.
21329         
21330         * app/interface.c:
21331         * app/menus.[ch]:
21332         Update to Gtk 1.1.x functions.
21333         Use ItemFactory instead of MenuFactory.
21334         
21335         * app/render_gdk.c:
21336         Removed Gtk 1.0.0 references.
21338         * objects/UML/class_dialog.c:
21339         Scrolled window updates for Gtk 1.1.5.
21340         
21341         * lib/dia_xml.c:
21342         Removed ugly fix for gnome-xml bug. Make sure you get the
21343         newest version of gnome-xml from CVS.
21344         
21345 1998-12-05  Alexander Larsson  <alla@lysator.liu.se>
21347         * TODO:
21348         Removed the xml load/save line.
21350         * lib/files.[ch]:
21351         Removed files.
21352         
21353         * lib/Makefile.am:
21354         Removed building of files.c
21356         * app/load_save.c:
21357         * lib/connection.c:
21358         * lib/element.c:
21359         * lib/object.c:
21360         * lib/orth_conn.c:
21361         * lib/render_object.c:
21362         * objects/UML/actor.c:
21363         * objects/UML/association.c:
21364         * objects/UML/class.c:
21365         * objects/UML/constraint.c:
21366         * objects/UML/dependency.c:
21367         * objects/UML/generalization.c:
21368         * objects/UML/implements.c:
21369         * objects/UML/large_package.c:
21370         * objects/UML/note.c:
21371         * objects/UML/realizes.c:
21372         * objects/UML/small_package.c:
21373         * objects/UML/uml.c:
21374         * objects/UML/usecase.c:
21375         * objects/network/bus.c:
21376         * objects/standard/arc.c:
21377         * objects/standard/box.c:
21378         * objects/standard/ellipse.c:
21379         * objects/standard/line.c:
21380         * objects/standard/textobj.c:
21381         * objects/standard/zigzagline.c:
21382         Removed all includes of files.h
21384         
21385 1998-12-05  Alexander Larsson  <alla@lysator.liu.se>
21387         * dialog.dtd:
21388         Made the val property of string be implied.
21389         This makes it possible to save strings that
21390         are NULL. Just leave out val.
21392         * objects/lib/dia_xml.c:
21393         Fixed string so that it is possible to save strings
21394         that are NULL. Also made an ugly workaround of a
21395         bug in gnome-xml which removes empty properties.
21396         
21397         * objects/lib/orth_conn.c:
21398         Fixed a bug in saving. Forgot to step through the
21399         directions.
21400         
21401         * objects/UML/association.c: 
21402         * objects/UML/class.c: 
21403         * objects/UML/constraint.c: 
21404         * objects/UML/dependency.c: 
21405         * objects/UML/generalization.c: 
21406         * objects/UML/implements.c: 
21407         * objects/UML/large_package.c: 
21408         * objects/UML/note.c: 
21409         * objects/UML/small_package.c:
21410         * objects/UML/realizes.c:
21411         * objects/UML/usecase.c: 
21412         * objects/UML/actor.c: 
21413         Fixed UML objects to save as xml.
21414         The last two were done by asierra@servidor.unam.mx (asierra-981204)
21415         
21416         * objects/UML/uml.[ch]:
21417         Updated *_write() and *_read() functions to use xml.
21419         * objects/network/bus.c: 
21420         * objects/network/computer.c: 
21421         * objects/network/disc.c: 
21422         * objects/network/monitor.c:
21423         Updated network diagrams to use xml.
21425 1998-12-02  Alexander Larsson  <alla@lysator.liu.se>
21427         * dialog.dtd:
21428         New file. DTD that describes the xml file format
21429         dia uses.
21431         * lib/dia_xml.[ch]:
21432         New files. Support for saving object to xml files.
21434         * configure.in:
21435         * app/Makefile.am:
21436         * lib/Makefile.am:
21437         Added check for and usage of gnome-xml library.
21439         * app/load_save.c:
21440         Major chages. Now saves/loads diagrams as xml.
21442         * lib/object.[ch]:
21443         * lib/element.[ch]:
21444         * lib/connection.[ch]:
21445         * lib/orth_conn.[ch]:
21446         * lib/render_object.[ch]:
21447         * lib/text.[ch]:
21448         Updated object support load/save functions for xml:
21450         * object/standard/arc.c:
21451         * object/standard/box.c:
21452         * object/standard/ellipse.c:
21453         * object/standard/line.c:
21454         * object/standard/textobj.c:
21455         * object/standard/zigzagline.c:
21456         Updated all standard objects to use xml.
21457         
21458         NOTE NOTE NOTE
21459         Only the standard objects are converted right now, don't
21460         save or load uml or network diagrams yet. Also, since this
21461         is new code it is deemed a bit unstable.
21462         
21463         * TODO
21464         Added a know bug.
21466 1998-12-01  Alexander Larsson  <alla@lysator.liu.se>
21468         * objects/UML/class.c:
21469         Changed classname font to Helvetica.
21470         Added more space above the classname
21472         * objects/UML/usecase.c:
21473         Correct placements of connectionpoints on ellipse.
21474         Better algorithm for deciding aspect ration on
21475         ellipse.
21477         These changes were made by Alejandro Aguilar Sierra
21478         <asierra@servidor.unam.mx>. (asierra-981201)
21480 1998-11-30  Alexander Larsson  <alla@lysator.liu.se>
21482         * objects/UML/actor.c:
21483         Changed the extents and alignment of the element
21484         and the text.
21486         * objects/UML/.cvsignore:
21487         Added usecase.lo and actor.lo.
21489 1998-11-30  Alexander Larsson  <alla@lysator.liu.se>
21491         * objects/UML/actor.c:
21492         * objects/UML/usecase.c:
21493         * objects/UML/pixmaps/actor.xpm:
21494         * objects/UML/pixmaps/case.xpm:
21495         New files. Implements usecase and actor UML objects.
21496         These objects are done by Alejandro Aguilar Sierra
21497         <asierra@servidor.unam.mx>.
21498         
21499         * objects/UML/Makefile.am:
21500         * objects/UML/pixmaps/Makefile.am:
21501         Added usecase and actor to makefile.
21502         
21503         * AUTHORS:
21504         Added Alejandro and Jerome to autors list.
21505         
21506 1998-11-25  Alexander Larsson  <alla@lysator.liu.se>
21508         * objects/UML/class.c (umlclass_load):
21509         Fixed typo. Reported by Jerome.Abela@solsoft.fr
21511 1998-11-24  Alexander Larsson  <alla@lysator.liu.se>
21513         * app/properties.c:
21514         Update connections when doing apply in the properties window.
21516         * objects/UML/uml.[ch]:
21517         * objects/UML/class.[ch]:
21518         * objects/UML/class_dialog.c:
21519         Added connection points on both sides of attributes and
21520         operations in UML classes.
21521         Based on idea from Jerome.Abela@solsoft.fr
21522         
21523 1998-11-24  Alexander Larsson  <alla@lysator.liu.se>
21525         * README:
21526         Some new documentation about handles and connectionpoints.
21527         
21528         * lib/object.[ch]:
21529         Added functions object_add_connectionpoint and
21530         object_remove_connectionpoint for handling a dynamic
21531         number of connectionpoints.
21533         * objects/UML/class.c:
21534         Only reserve space for stereotype when it is shown.
21536         These changes are from Jerome Abela <Jerome.Abela@solsoft.fr>
21538 1998-11-08  Alexander Larsson  <alla@lysator.liu.se>
21540         * app/connectionpoint_ops.c:
21541         * app/commands.c:
21542         * app/disp_callbacks.c:
21543         * app/display.[ch]:
21544         * app/grid.c:
21545         * app/handle_ops.c:
21546         * app/magnify.c:
21547         * app/modify_tool.c:
21548         * app/render_gdk.[ch]:
21549         * lib/render.h:
21550         Huge cleanup of internal rendering system.
21551         Moved a lot of data (pixmap, width, height & gc) into the GdkRenderer.
21552         This gives a few new methods for Interactive Renderers for setting
21553         clipping regions and drawing pixel based lines and rects.
21554         Updated the rest of the code to use the new stuff.
21555         
21556         * app/render_eps.c:
21557         Fixed warning.
21559         * lib/widgets.c:
21560         * objects/standard/zigzagline.c
21561         Fixed unused variable warnings.
21563         * lib/font.c:
21564         Fixedbug with stringwidth where width==0.
21566         * TODO:
21567         Added known bug.
21569 1998-11-02  Alexander Larsson  <alla@lysator.liu.se>
21571         * lib/widgets.[ch]:
21572         Added suppot for setting the font of a
21573         DiaFontSelector widget.
21574         Also fixed some typos in the header.
21576         * lib/object.h: 
21577         Added a comment about the GetPRoperties method call.
21578         You have to make sure to update widget state when
21579         this method is called. (Not all objects do this yet,
21580         to be fixed.)
21582         * TODO:
21583         Some small updates
21585 1998-11-01  Alexander Larsson  <alla@lysator.liu.se>
21587         * lib/font.c
21588         Fixed problem with height of ascent and descent for fonts.
21589         It didn't use the whole height (==ascent+descent) when calculatine
21590         ascent_ratio and descent_ratio.
21592         * objects/standard/textobj.c:
21593         * objects/standard/box.c:
21594         * objects/standard/ellipse.c:
21595         * objects/standard/line.c:
21596         * objects/standard/arc.c:
21597         Updated and added property dialogs for these objects.
21598         Also added line width/color/style to those objects
21599         that didn't have it.
21600         This change breaks fileformat compatibility for these objects.
21601         
21602         * objects/standard/zigzagline.c:
21603         Changed zigzagline to be based on OrthConn, much nicer.
21604         Also added line style and color to properties.
21605         This change breaks fileformat compatibility for zigzagline.
21607         * lib/message.c:
21608         Fixed bug in message(). Forgot a pair of '&'.
21610 1998-10-29  Alexander Larsson  <alla@lysator.liu.se>
21612         * lib/widgets.[ch]:
21613         Added DiaColorSelector widget.
21614         This is a colored button that pops up a color selection
21615         dialog when pressed.
21617 1998-10-28  Alexander Larsson  <alla@lysator.liu.se>
21619         * lib/widgets.[ch]:
21620         * lib/Makefile.am:
21621         New files, added widgets for selecting fonts, alignment
21622         and line-style. Will be used later.
21624 1998-10-12  Alexander Larsson  <alla@lysator.liu.se>
21626         * app/Makefile.am:
21627         * lib/Makefile.am:
21628         * objects/UML/Makefile.am:
21629         * objects/network/Makefile.am:
21630         * objects/standard/Makefile.am:
21631         Changed "CFLAGS = -Wall -g" to "CFLAGS = @CFLAGS@"
21632         in all Makefile.am.
21634 1998-10-03  Alexander Larsson  <alla@lysator.liu.se>
21636         * app/handle_ops.c (handle_draw):
21637         connected HANDLE_MINOR_CONTROL also becomes red.
21639 1998-10-02  Alexander Larsson  <alla@lysator.liu.se>
21641         * Makefile.am:
21642         removed -ldl from linking. This is added if needed by configure.
21644         * app/app_procs.c:
21645         Open dlls with RTLD_LAZY if it is defined.
21646         Some cleanups: char *error -> const char *error
21647         Added fprintf()'s to where we exited because of errors.
21649         * lib/files.c:
21650         Include <sys/types.h>
21652 1998-10-01  Alexander Larsson  <alla@lysator.liu.se>
21654         * acconfig.h:
21655         * configure.in:
21656         * app/app_procs.c:
21657         Detect dlopen better.
21658         Detect wether dlopen needs an underscore in the identifier.
21659         This code was mostly borrowed from guile.
21661         * lib/sheet.[ch]:
21662         * app/app_procs.c:
21663         * objects/standard/standard.c:
21664         * objects/network/network.c:
21665         * objects/UML/uml.c:
21666         * most objects:
21667         Changed the way sheets reference objects to use just the
21668         name. Changed module loading to a two stage model:
21669         First register_objects() is called for all modules.
21670         Then register_sheets() is called. This means that
21671         sheets can safely include objects from other modules.
21672         
21674 1998-09-30  Alexander Larsson  <alla@lysator.liu.se>
21676         * objects/network/bus.c:
21677         * objects/network/network.c:
21678         * objects/network/Makefile.am:
21679         New file bus.c. Added new object: Ethernet bus.
21681         * objects/standard/box.c:
21682         Added call to gtk_spin_button_set_numeric for linewidth spinner
21683         in property dialog.
21685 1998-09-30  Alexander Larsson  <alla@lysator.liu.se>
21687         * app/connectionpoint_ops.c:
21688         * app/create_object.c:
21689         * app/group.c:
21690         * app/handle_ops.c:
21691         * app/modify_tool.c:
21692         * lib/connection.c:
21693         * lib/element.c:
21694         * lib/handle.h:
21695         * lib/object.c:
21696         * lib/orth_conn.c:
21697         * loads of objects:
21698         Changed handle->connectable to handle->connect_type.
21699         Now handles can be HANDLE_CONNECTABLE_NOBREAK, which means
21700         that their connections don't break when moving objects.
21702         * app/diagram.c:
21703         Always select the last handle in an object that has
21704         the closest distance.
21705         
21706         * lib/geometry.[ch]:
21707         Added rectangle_add_point function.
21708         
21710 1998-09-27  Alexander Larsson  <alla@lysator.liu.se>
21712         * app/properties.[ch]: New files. Handles the new properties
21713         dialog.
21715         * app/modify_tool.c: Changed to use new properties dialog.
21717         * app/object_ops.[ch]: Removed object_changed_callback, as it's
21718         not needed anymore. This is now handled differently in
21719         properties.c
21721         * lib/object.[ch]:
21722         Changed the properties ops for objects. Removed typedefs
21723         ChangedObjectTime and ObjectChangedFunc needed for the old way.
21724         Added object_return_null function.
21725         
21726         * app/group.c:
21727         * lib/render_object.c:
21728         * objects/*/*.c:
21729         Changed objects to use the new properties dialog.
21730         
21732 1998-09-14  Nuno Ferreira  <nmrf@rnl.ist.utl.pt>
21734         * */Makefile.am (INCLUDES): Changes to work with srcdir !=
21735         builddir.
21737         * autogen.sh: New file. Copied from gtk and added a call to
21738         libtoolize. Anyone knows why this isn't done in gtk?
21740         * Removed autogenerated files.
21742 1998-09-12  Alexander Larsson  <alla@lysator.liu.se>
21744         * Added call setlocale(LC_NUMERIC, "C") so that formating of
21745           floating-point numbers in postscript output will be correct.
21746         * Did some cleanup of generated postscript files.