.cvsignores added.
[dia.git] / ChangeLog
blob0de1293d054f7a2eaec65073ffd7732626734e83
1 2006-07-12  Lars Clausen  <lars@raeder.dk>
3         * {tests,test/exports,data,plug-ins/vdx}/.cvsignore: Added.
5 2006-06-28  Lars Clausen  <lars@raeder.dk>
7         * plug-ins/vdx/vdx-import.c: Removed create_standard_group which
8         is in create.c.
10 2006-06-25  Hans Breuer  <hans@breuer.org>
12         * app/display.c : avoid to call gettext on parameters for ngettext()
13         Should finally really fix bug #344896
14         
15         * data/ui/display-ui.xml data/ui/popup-ui.xml data/ui/toolbox-ui.xml :
16         removed expand="yes" because otherwise the files can't be read with
17         gtk+-2.6.x which follows Dia can't start. Fixes bug #344895
18         * app/menus.c app/Makefile.am : also find the ui files when run from
19         app/run_dia.sh
21 2006-06-17  Gintautas Miliauskas  <gintas@akl.lt>
23         * configure.in: Added lt to ALL_LINGUAS.
25 2006-06-15  Hans Breuer  <hans@breuer.org>
27         * app/display.c : use ngettext() for possible plural variations.
28         (Bug #344896, tokul@users.sourceforge.net)
30         * objects/UML/class.c : use g_list_append() rather than prepend
31         when copying attributes, operations, formalparams. Fixes bug #342902
32         Also removed some superfluous outcommented code and fixed a warning.
34         * objects/UML/class.c : dont break reading comment_line_length
35         by misguide compatibility code. Fixes bug #341887
37         * plug-ins/vdx/vdx-xml.c : added file missing from 0.3 
38         version commit. Fixes bug #344804
39         
40         * lib/create.h : add create_standard_group() prototype
41         * lib/libdia.def lib/makefile.msc objects/makefile.msc 
42           plug-ins/makefile.msc : added missing (files|exports)
44 2006-06-13  Lars Clausen  <lars@raeder.dk>
46         * plug-ins/vdx/*: Version 0.3 of Visio import filters, thanks
47         again to Ian Redfern.
49 2006-06-12  Elijah Newren  <newren gmail com>
51         * autogen.sh: Run configure by default, allow it to be skipped if
52         NOCONFIGURE is set in the environment.  #344574.
54 2006-06-12  Elijah Newren  <newren gmail com>
56         Pair of build fixes.  #344357
58         * Makefile.am: avoid cp errors when $(srcdir) == .
60         * objects/Misc/newgroup.c: include pixmaps/newgroup.xpm instead of
61         pixmaps/group.xpm as the latter doesn't exist.
63 2006-06-12  Hans Breuer  <hans@breuer.org>
65         * plug-ins/python/codegen.py : applied patch from Thomas D Ahle
66         which adds support for Java and inheritance. Closes bug #344187
67         
68 2006-05-28  Lars Clausen  <lars@raeder.dk>
70         * sheets/Misc.sheet.in: 
71         * objects/Misc/Makefile.am (EXTRA_DIST): 
72         * objects/Misc/pixmaps/newgroup.xpm: 
73         * objects/Misc/newgroup.c: 
74         * objects/Misc/libmisc.c: Start of new group model, with "visible"
75         object to test with.  This object will later become the default
76         group object and thus (mostly) invisible.
78         * lib/parent.c (parent_handle_move_in_check): 
79         * app/create_object.c (create_object_button_press): 
80         * app/diagram.c (diagram_unparent_children_selected): 
81         * app/disp_callbacks.c (ddisplay_drop_object): 
82         * app/load_save.c (write_objects): 
83         * objects/network/radiocell.c (radiocell_create): 
84         * objects/AADL/aadlbox.c (aadlbox_create): 
85         * objects/UML/large_package.c (largepackage_create): 
86         * objects/UML/component.c (component_create): 
87         * lib/object.[ch]: DiaObject API change: DiaObject now has gint
88         flags rather than gboolean can_parent, and utility function
89         object_flags_set.  Uses of can_parent changed to call to function.
91         * doc/en/dia.dbk: Removal of obsolete epsi references.
93 2006-05-27  Hans Breuer  <hans@breuer.org>
95         * app/menus.c : listen to Gtk-WARNING **: Unable to parse accelerator 
96         '<control>+': it wants '<control>plus', same for minus.
98         * tests/exports/cgm/* : cvs admin -kb *.cgm
99           tests/exports/png/* tests/exports/png-libart/* 
100           tests/exports/shape/* : cvs admin -kb *.png
101           tests/exports/wpg/* : cvs admin -kb *.wpg
102         mark binary files as such to not get them broken on platforms which
103         insist on replacing line-ends.
105         * app/app_procs.c app/display.c app/filedlg.c app/interface.c
106           app/load_save.c app/sheets.c lib/dia_image.c lib/message.c
107           plug-ins/python/diamodule.c plug-ins/python/pydia-error.c
108           plug-ins/wmf/wmf.cpp : fixed format string vulnerability on HEAD
109         as well. Patch from Hans de Goede, bug #342111
111 2006-05-27  Rob Staudinger <robert.staudinger@gmail.com>
113         * Makefile.am: 
114         * app/Makefile.am:
115         * app/diagram.c: 
116         * lib/Makefile.am:
117         * objects/standard/Makefile.am:
118         * plug-ins/python/Makefile.am:
119         Fix out of tree build (#340115).        
121 2006-05-25  Hans Breuer  <hans@breuer.org>
123         * app/interface.[hc] app/menus.c : rename ToolButton::menu_item
124         to action_name. Don't mark action names for translation. It is not
125         needed and some languages don't support CamelCase. Fixes bug #342895
126         
127         * app/menus.c : re-added a bunch of accelerators lost in translation
128         to the GtkAction framework. Use GTK_STOCK_FULLSCREEN conditionally
129         it was not available with gtk+-2-6-x.
130         Use dia_get_data_directory() instead of hardcoded UIDATADIR.
131         * app/dia_embedd.c : explain instead of out-comment
132         
133         * app/menu.c lib/autoroute.c lib/color.c lib/diagramdata.c 
134           lib/properties.h dia_xml.c : warningectomy
135           
136         * lib/create.h : create_standard_group()
137         * lib/libdia.def lib/makefile.msc : reflect moved stuff
138         
139 2006-05-25  Lars Clausen  <lars@raeder.dk>
141         * tests/exports/*.dia: A set of test diagrams for export
142         plug-ins.  The intention is to use these for regression tests by
143         ensuring that they don't change when code is altered, or if they
144         change that a manual inspection proves them ok.  The fact that an
145         export plug-in passes these tests doesn't mean it's perfect, just
146         that is hasn't degraded.
147         
148         * plug-ins/xfig/xfig-import.c: 
149         * plug-ins/vdx/vdx-import.c: 
150         * lib/create.[ch]: Functions taken from xfig to create some
151         standard objects easily.  Uses of them updated, no longer need to
152         take DiagramData.
154         * plug-ins/vdx/*: First draft of VDX (Visio XML) plug-in from Ian
155         Redfern <Ian Redfern <Ian.Redfern@LogicaCMG.com>.  Also a bunch of
156         samples for the purpose from the vdxtosvg project.
158 2006-05-21  Hans Breuer  <hans@breuer.org>
160         * app/interface.[hc] app/disp_callbacks.c : removed unused
161         global variable popup_shell
162         
163         * app/pagesetup.c app/diapagelayout.c : restrict every page margin
164         to a little less than half of the page. This guarantees margins
165         leaving some useable page area and thus avoids crashing on negative
166         page sizes. Fixes bug #339562 (also applied to dia-0-95 branch)
167         
168 2006-05-20  Hans Breuer  <hans@breuer.org>
170         Patch from Robert Staudinger to base dia menus on GtkAction framework
171         instead on deprecated GtkItemFactory. Tracked in bug #340352. 
172         En passant fixes bug #171397
173         * configure.in : placementof ui files added data/Makefile to AC_OUTPUT
174         * Makefile.am : added data dir
175         * app/Makefile.am : added $(uidatadir)
176         * app/commands.c app/commands.h app/dia_embedd.c app/diagram.c
177           app/diagram_tree_window.c app/diagram_tree_window.h
178           app/disp_callbacks.c app/display.c app/display.h
179           app/interface.c app/menus.c app/menus.h app/recent_files.c :
180         changed a bunch of callback signatures to take GtkAction
181         * app/pixmaps/Makefile.am 
182         * data/Makefile.am data/display-ui.xml data/toolbox-ui.xml
183           data/popup-ui.xml : new files containing the menu structure
184         * lib/filter.c lib/filter.h lib/plug-ins.h : callback filter
185           registration change to be more appropriate for actions
186         * lib/libdia.def : updated externals
187         * plug-ins/python/debug_objects.py plug-ins/python/diamodule.c
188           plug-ins/python/group_props.py plug-ins/python/gtkcons.py 
189           plug-ins/python/otypes.py plug-ins/python/pydiadoc.py 
190           plug-ins/python/scascale.py plug-ins/python/select_by.py :
191         adapted to API change dia.register_callback to dia.register.action
193         * app/authors.h : added Robert to the authors
194         * app/commands.c : got rid of compiler warnings
196 2006-05-14  Hans Breuer  <hans@breuer.org>
198         * plug-ins/python/python.c : protect the plug-in against 
199         initializing if Python already is initialized. This PyDia extensions
200         is designed for embedding Python.
201         
202         * plug-ins/python/pydia-property.c : LineStyle.dash may be either
203         Float or Integer.
204         
205         * plug-ins/python/diasvg_import.py : remove FontSize debug spew
206         
207         * lib/font.c : GDK_WINDOWING_WIN32: if called with a display already
208         setup use the pango context matching the display. Otherwise fallback
209         to a context from PangoWin32 (matches only for gtk+-2-6, not the one
210         used since gtk+-2-8 using cairo.
211         
212 2006-05-13  Hans Breuer  <hans@breuer.org>
214         [ also applied to branch dia-0-95 ]
215         * objects/UML/umloperationc: add "query" to umloperation_offsets.
216         Patch from Peter Allin, fixes bug #338336
218         [ also applied to branch dia-0-95 ]
219         * app/diagram.c(diagram_ungroup_selected) : operate on a copy
220         of data-Selected cause the original is modified during use.
221         Patch from Victor Stinner, fixes bug #334771
223         * configure.in config.h.win32 : development started again so 095+cvs.
224         Critical bugfixes may go on the dia-0-95 branch (may lead to 0.95.1 
225         if necessary)
226         
227         * app/diagram.c : removed long-time outcommented code
228         
229         * lib/diagramdata.h lib/filter.h lib/geometry.h lib/plug-ins.h
230           lib/properties.h : C++ aware by G_BEGIN_DECLS, G_END_DECLS
231         
232         * objects/UML/class.c : don't dia_assert_true(attr->comment != NULL)
233         it is handled everywhere else just fine.
234         
235 2006-04-19  Lars Clausen  <lars@raeder.dk>
237         * installer/win32/dia.nsi: 
238         * doc/en/dia.xml: 
239         * doc/eu/dia.xml: 
240         * doc/pl/dia.xml: 
241         * config.h.win32: 
242         * configure.in: 
243         * NEWS: Release 0.95
245         * shapes/Gane_and_Sarson/process.shape: Connectionpoint update
246         from Nick Moore <shiny.nickel@gmail.com>.
248 2006-04-17  Kjartan Maraas  <kmaraas@gnome.org>
250         * configure.in: Remove obsolete entry for no_NO
251         * po/no.po: And the translation.
253 2006-04-12  Lars Clausen  <lars@raeder.dk>
255         * installer/win32/dia.nsi: 
256         * doc/en/dia.xml: 
257         * doc/eu/dia.xml: 
258         * doc/pl/dia.xml: 
259         * config.h.win32: 
260         * configure.in: 
261         * NEWS: -pre9
263         * configure.in: Check for xgettext.  Apparently
264         AM_GLIB_GNU_GETTEXT notices it's missing but doesn't abort.
266 2006-04-04  Steffen Macke <sdteffen@gmail.com>
268         * installer/win32/dia.nsi:
269         * installer/win32/langmacros.nsh:
270         * installer/win32/locale/*.nsh: Added check for outdated libgtk dll;
271         closes bug #335477
273 2006-04-03  Lars Clausen  <lars@raeder.dk>
275         * installer/win32/dia.nsi: 
276         * doc/en/dia.xml: 
277         * doc/eu/dia.xml: 
278         * doc/pl/dia.xml: 
279         * config.h.win32: 
280         * configure.in: 
281         * NEWS: -pre8
283         * plug-ins/xfig/xfig-import.c: Initially place text in the right
284         place. 
286 2006-04-03  Steffen Macke <sdteffen@gmail.com>
288         * installer/win32/dia.nsi:
289         * installer/win32/locale/french.nsh: Added french installer
290         locale. Patch from Yannick Le Ny <y.le.ny@ifrance.com>
292 2006-04-02  Hans Breuer  <hans@breuer.org>
294         * doc/pl/dia.xml : "DOCTYPE book" closes bug #142098, Roland Stigge
296 2006-03-29  Daniel Drake  <dsd@gentoo.org>
298         * configure.in: Use standard pkg-config expressions to check for
299         GTK+/Glib, the GTK-supplied macro's conflict with our usage of
300         $GTK_MODULES (#335422)
302 2006-03-28  Lars Clausen  <lars@raeder.dk>
304         * app/Makefile.am (dia_LDADD): Patch from Peter for bug #336377:
305         Include libs and cflags in proper places.
307         * installer/win32/dia.nsi: 
308         * doc/en/dia.xml: 
309         * doc/eu/dia.xml: 
310         * doc/pl/dia.xml: 
311         * config.h.win32: 
312         * configure.in: 
313         * NEWS: -pre7
315         * shapes/network/mobile_phone.{png,xpm,shape}:
316         * shapes/network/telephone.shape:
317         * shapes/network/disc.shape:
318         Updates from W. Borgert <debacle@debian.org> improving looks and
319         positioning.
320         
321 2006-03-26  Lars Clausen  <lars@raeder.dk>
323         * objects/network/radiocell.c: Patch from W. Borgert
324         <debacle@debian.org> for extra midpoint, flicker, extraneous
325         properties.
326         
327         * objects/network/basestation.c: Patch for BB from W. Borgert
328         <debacle@debian.org>. 
330 2006-03-23  Hans Breuer  <hans@breuer.org>
332         * lib/widgets.c : use original fontname and fallback 'sans' to
333         render the font menu. Thus crashing (in Pango) is delayed until
334         the point where one chooses a font, which can't be rendered by
335         Pango. Fixes bug #335096 as far as Dia can.
336         
337 2006-03-21  Lars Clausen  <lars@raeder.dk>
339         * installer/win32/dia.nsi: 
340         * doc/en/dia.xml: 
341         * doc/eu/dia.xml: 
342         * doc/pl/dia.xml: 
343         * config.h.win32: 
344         * configure.in: 
345         * NEWS: -pre6
347         * plug-ins/xfig/xfig-import.c: Last missing stack underflow check.
349 2006-03-19  Hans Breuer  <hans@breuer.org>
351         * app/display.c app/preferences.c : unset transient, still issues
352         with transient handling, see bug #332828
353         
354         * app/makefile.msc lib/makefile.msc objects/makefile.msc
355           plug-ins/makefile.msc : removed stuff supposed to be used from
356         $(TOP)/glib/build/win32/make.msc
357         
358         * plug-ins/xfig/xfig-import.c : make it compile with strict type 
359         checking [these were real errors, freeing stack passed values instead
360         of the intended local variable] :
361         xfig-import.c(580) : error C4047: 'function' : 'struct _GArray *' 
362          differs in levels of indirection from 'struct _Point ** '
363         xfig-import.c(580) : warning C4024: 'g_array_free' : different types 
364          for formal and actual parameter 1
366         * lib/libdia.def : export connection_adjust_for_autogap 
367         
368         * plug-ins/hpgl/hpgl.c : there is one floating point value in the 
369         whole HPGL output - and it was locale dependent.
371 2006-03-12  Lars Clausen  <lars@raeder.dk>
373         * installer/win32/dia.nsi: 
374         * doc/en/dia.xml: 
375         * doc/eu/dia.xml: 
376         * doc/pl/dia.xml: 
377         * config.h.win32: 
378         * configure.in: 
379         * NEWS: -pre5
381         * objects/UML/constraint.c (constraint_update_data): 
382         * objects/UML/message.c (message_update_data): 
383         * objects/UML/implements.c (implements_update_data): 
384         * objects/SADT/annotation.c (annotation_update_data): 
385         * objects/Jackson/phenomenon.c (message_update_data): 
386         * objects/network/wanlink.c (wanlink_update_data): 
387         * objects/FS/flow.c (flow_update_data): Added autogap adjustment.
389         * objects/standard/line.c: 
390         * lib/connection.[ch] (connection_adjust_for_autogap): Moved autogap
391         functionality for connections.
393 2006-03-11  Lars Clausen  <lars@raeder.dk>
395         * lib/diagdkrenderer.c (draw_object): 
396         * lib/dialibartrenderer.c (draw_object): Don't draw highlighting
397         in the non-interactive rendering.
399         * dia.spec:
400         * installer/rpm/dia.spec:
401         * installer/rpm/README:
402         Moving dia.spec to installer directory, where distribution
403         maintainers can keep their own copies.
405         * objects/UML/uml.h: 
406         * objects/UML/class.h: 
407         * objects/UML/umloperation.c: 
408         * objects/UML/class.c: 
409         Preparations to fix bug #334037: Clean away the Lisp-like
410         constructs confusing the issue.
412 2006-03-10  Lars Clausen  <lars@raeder.dk>
414         * lib/object.c: Don't compare floats with ==, even in sanity checks.
416 2006-03-09  Lars Clausen  <lars@raeder.dk>
418         * plug-ins/xfig/xfig-import.c: Fix three buffer overflows in color
419         reading, depth reading, and points reading.  Thanks to 
420         
421         * COPYING: Added copyright info again.
423 2006-03-09  Steffen Macke <sdteffen@gmail.com>
425         * installer/win32/dia.nsi: don't uninstall old version; overwrite
426         existing files
428 2006-03-08  Steffen Macke <sdteffen@gmail.com>
430         * installer/Makefile.am:
431         * installer/win32/Makefile.am:
432         * installer/win32/locale/Makefile.am: Making sure that the installer
433         sources are included in the dia source distribution
434         * installer/win32/dia.nsi: Don't include makefiles in installer;
435         Add uninstaller link to start menu (bug #332650); added commandline 
436         option GTKBIN to specify GTK installation directory (fixes bug #332595)
437         * installer/win32/dia-diagram.ico:
438         * installer/win32/dia-header.bmp:
439         * installer/win32/dia-install.ico:
440         * installer/win32/dia-intro.bmp:
441         * installer/win32/dia-uninstall.ico:
442         * installer/win32/dia.nsi:
443         * installer/win32/langmacros.nsh:
444         * installer/win32/locale/english.nsh:
445         * installer/win32/locale/german.nsh: Added files to build the win32
446         installer using NSIS (http://nsis.sourceforge.net)
447         
448 2006-03-06  Lars Clausen  <larsrc@raeder.dk>
450         * doc/en/dia.xml: 
451         * doc/pl/dia.xml: 
452         * config.h.win32: 
453         * configure.in: 
454         * NEWS: -pre4
456         * samples/TexChars.dia: Added sample of the escaped chars for TeX.
457         
458         * plug-ins/pstricks/render_pstricks.c (tex_escape_string):
459         Changing escape of \, [, and ] to something that works.  $ is
460         fine.  Fixes parts of 333193.
462 2006-03-05  Lars Clausen  <larsrc@raeder.dk>
464         * plug-ins/xfig/xfig-import.c: Fixed locale issues with FIG import.
466         * lib/orth_conn.c (orthconn_update_data): 
467         * app/diagram.c: Removing debug info.
469         * app/object_ops.c (object_find_connectpoint_display): Don't
470         magnet to parents.
472 2006-02-26  Hans Breuer  <hans@breuer.org>
474         * app/Makefile.am : define DIA_PYTHON_PATH in app/run_dia.sh
475         * plug-ins/python/python.c : if set use it to find python-startup.py
476         (bug #332599, Torben H. Nielsen)
478         * app/app_procs.c : removed // from gtk_init() [shouldn't have commited
479         my test code]. Really closes #332177, thanks Mateus César Gröess.
481 2006-02-26  Lars Clausen  <lars@raeder.dk>
483         * doc/en/dia.xml: 
484         * doc/pl/dia.xml: 
485         * config.h.win32: 
486         * configure.in: 
487         * NEWS: -pre3
489         * lib/element.h (ELEMENT_COMMON_PROPERTIES): Turning off setting
490         of element_width and element_height until constraints can be 
491         properly checked.  Bug #328200
493         * dia.spec (Requires): Updated GTK requirements.
495 2006-02-25  Lars Clausen  <lars@raeder.dk>
497         * lib/diaarrowchooser.c (dia_arrow_chooser_new): Also making sure
498         other dynamic menus have proper translation.
500         * lib/widgets.c (dia_dynamic_menu_create_string_item): 
501         * app/interface.c (cmp_names): 
502         * app/sheets.c (sheets_optionmenu_create): 
503         * lib/sheet.c (load_register_sheet): Using C locale for sheet
504         names internally, translating on display instead.  Also sorting
505         by gettext order explicitly.  Bug #328570.
507 2006-02-25  Hans Breuer  <hans@breuer.org>
509         * app/interface.c(get_sheet_by_name) : be more tolerant about 
510         localization of the sheet name. ( Steffen Macke, #332070 )
511         
512         * app/app_procs.c(app_init) : if GDK_WINDOWING_WIN32 call gtk_init()
513         in any case. In contrast to X11/*nix displays are not optional on
514         windoze. And we need some help of gtk to render text to bitmaps.
515         ( Rob McDonald, bug #332177 )
516         
517 2006-02-21  Lars Clausen  <lars@raeder.dk>
519         * NEWS: 
520         * doc/pl/dia.xml: 
521         * doc/en/dia.xml: 
522         * configure.in: 
523         * config.h.win32: Update to -pre2.
525         * lib/beziershape.c (add_handles): Fixing CP pos calculation for
526         adding new CP's.  Fixes bug #331557.
528 2006-02-20  Lars Clausen  <lars@raeder.dk>
530         * lib/diarenderer.c (find_center_point): Better handling of some
531         degenerate cases.
532         (draw_arc_with_arrows): Draw line in all cases.  Doesn't handle
533         the truly degenerate cases well enough yet, but at least doesn't
534         break on common cases.  Probably need to do something special for
535         arcs with start and end point the same.  Improves but does not
536         entirely fix bug #331372.
538 2006-02-20  Hans Breuer  <hans@breuer.org>
540         * plug-ins/python/Makefile.am : dot.py was missing from EXTRA_DIST
541         
542 2006-02-18  Hans Breuer  <hans@breuer.org>
544         * plug-ins/metapost/render_metapost.c : text position gives the
545         baseline neither top nor bottom. ( Rob McDonald, #331491 )
547         * plug-ins/wmf/wmf.cpp : finally respecting the print margins
548         ( Rob McDonald, #331371 )
549         * plug-ins/wmf/wmf_gdi.h : some more constants not useful 
550         without a GDI printer (driver)
551         
552 2006-02-17  Hans Breuer  <hans@breuer.org>
554         * plug-ins/metapost/render_metapost.c(draw_string) : dont query
555         the font for it's height but use the 'height' parameter passed
556         in. Close enough to the desired size - and independent of zoom -
557         to close bug #331489 (Rob McDonald)
558         
559 2006-02-12  Lars Clausen  <lars@raeder.dk>
561         * NEWS: 
562         * dia.spec: 
563         * doc/pl/dia.xml: 
564         * doc/en/dia.xml: 
565         * configure.in: 
566         * config.h.win32: Updates for version 0.95-pre1.
568 2006-02-12  Hans Breuer  <hans@breuer.org>
570         * app/makefile.msc : build three components dia.exe (console
571         application), diaw.exe (windows application) and dia-app.dll
572         containing almost all of Dia's application shared between
573         the two executables
574         * app/main.c app/winmain.c app/app_procs.c app/dia.def : some 
575         refactoring to accomplish the new dependency layout
576         * objects/makefile.msc plug-ins/python/makefile.msc : need to
577         link dia-app.lib now - if at all depending on app/*
578         
579 2006-02-11  Hans Breuer  <hans@breuer.org>
581         * makefile.msc : nmake -f makefile.msc just compiles now
582         * app/makefile.msc lib/makefile.msc : make not using FT2
583         on win32 the default (works around bug #150813 by diabaling it)
584         * objects/makefile.msc plug-ins/makefile.msc : remove -GD from
585         $(CC) command line. It isn't understood by newer versions of cl.
586         
587         * app/authors.h : reflect the recent maintainers change
588         
589         * app/display.c app/load_save.c : removed debug spew
590         
591         * app/winmain.c : improved redirection
592         
593 2006-02-05  Hans Breuer  <hans@breuer.org>
595         * app/menus.[ch] app/diagram.c : the GNOME specific menu code is dead 
596         since 0.94. Fix somne left-overs, also properly disable the duplicate
597         menu entry
599         * po/POTFILES.in : added objects/network/wanlink.c
601 2006-02-05  Hans Breuer  <hans@breuer.org>
603         * lib/dialibartrenderer.c(renderer_finalize) : dont unref 
604         parent_instance.font here. It will be done in DiaRenderer::finalize()
605         Just another reason for crashing at diagram close with libart 
606         renderer involved ...
607         
608 2006-02-04  Hans Breuer  <hans@breuer.org>
610         * objects/standard/image.c : added mainpoint, patch from
611         Torben H. Nielsen fixing bug #329603
613         * app/layer_widget.c : avoid writing to Layer::connectable for a
614         diagram possibly already gone. Fixes bug #329096.
616         * lib/persitence.c(persistence_load) : dont leak filename
617         in case of not existing file
619         Code review via regex "[^_l>p](malloc|free|realloc)\("
620         * objects/fs/function.c : what's g_strdup() must be g_free()'d
621         * plug-ins/dxf/dxf-import.c : use g_realloc()/g_free()
622         * plug-ins/xfig/xfig-import.c : use g_free() instead of plain free()
624         * app/filedlg.c(file_save_as_response_callback) : before destroying 
625         the save as dialog we need to drop the dialogs diagram reference.
626         Fixes behaviour described in bug #123225#c7
628         * app/interface.c(get_sheet_names) : need to sort sheets by their 
629         display name to really fix bug #160101.
630         
631         * objects/UML/association.c : dont leak the role_name calculated
632         with visibility attribute, use g_strdup_printf() instead of strcat().
633         
634         * configure.in : fix typo in error message
636         * lib/object.c : remove duplicated prototype
637         * lib/element.c : element_update_connections_rectangle() assumes nine
638         connection points, i.e. requires 'mainpoint'. g_assert() for this.
639         
640 2006-02-03  Hans Breuer  <hans@breuer.org>
642         * objects/network/bus.c : allow to tint it. Patch from
643         Torben H. Nielsen, closes bug #328580.
644         * objects/network/wanlink.c : allow to tint this as well.
645         
646 2006-01-29  Hans Breuer  <hans@breuer.org>
648         * app/render_libart.c(draw_line) : make setting the pixel side-effect
649         free; account for it in now (less) magic increments. Fixes bug #312147
651 2006-01-28  Hans Breuer  <hans@breuer.org>
653         * po/checktrans.py : make it work with recent pyxml (unknown url type)
654         * po/AADL.sheet.in : remove duplicated _description
655         => translation report works again
657         * app/display.c : revert back to "_Discard Changes" to avoid
658         accelerator clash. Also gtk_button_new_with_mnemonic() to
659         'expand' the accelerator.
661         * lib/dia_svg.c(dia_svg_style_init) : need to initialize
662         linecap, linejoin, linestyle to avoid invalid settings.
663         (Nguyen Thai Ngoc Duy, bug #328945)
664         * lib/diagdkrenderer.c : add a place fro breakpoint to 
665         detect invalid mode
667         * lib/diarenderer.c(setfont) : if we get passed in the
668         same font it must be ref'd before unref.
670         * lib/text.c(set_string) : don't eat the trailing new-line
671         Fixes bug #165092
672         
673         * app/app_procs.c app/display.c app/filedlg.c 
674         attempt to provide more HIG compliant dialogs. Patch from
675         Nguyen Thai Ngoc Duy, part of bug #138183
676         
677         * app/recent_files.c(recent_file_history_clear_menu) : instead of 
678         messing with GtkMenuShell::children and gtk_widget_destroy() just 
679         use gtk_container_remove. Avoids memory corruption causing the
680         most 'random' crashes recently.
681         
682         * objects/UML/message.c : can't use PROP_STD_TEXT_COLOUR_OPTIONAL 
683         cause it has PROP_FLAG_DONT_SAVE. It is designed to fill the 
684         TextAttributes - not some subset. Fixes bug #327701
685         * objects/UML/implements.c objects/UML/generalization.c
686           objects/UML/constraint.c objects/UML/object.c
687           objects/UML/large_package.c objects/UML/realizes.c : same here.
688         * objects/UML/dependency.c : same here. Also draw the "Name" with the
689         given color, not only the Stereotype.
690         * objects/UML/class.c : same here. But we also need to restore 
691         explicit restore "text_color" for the load case.
692         
693 2006-01-27  Hans Breuer  <hans@breuer.org>
695         * configure.in : error out if GLib/GTK+ version is lower than required
697         * app/filedlg.c lib/widgets.c : more default responses. Patch 
698         from Nguyen Thai Ngoc Duy, part of bug #138183
699         
700         * NEWS : Main point feature correction. The line is supposed to
701         start at the border of the object not the bounding box.
702         
703         * app/commands.c : respect difference between documenters and
704         translators and show both in about dialog. Closes bug #328711.
705         
706         * app/interface.c : instead of g_warning for missing shape icon
707         but use message_warning and show the 'missing' icon
708         
709         * lib/dialibartrenderer.c : with Gtk+ 2.8 gdk_draw_layout() does
710         not match pango_win32_get_context(). Use gdk_pango_get_context ().
711         Also removed my special win32-modified-pango code for draw_string()
712         without the help of gdk.
714         * Makefile.am : include MAINTAINERS file in tarball
716         * lib/conectionpoint.h : removed double include of "geometry.h"
717         
718 2006-01-22  Hans Breuer  <hans@breuer.org>
720         * app/splash.c app/commands.c : dont share the logo and finally leak
721         it. Instead both place load and unref the logo themself. 
722         Also unbreak GNOME case.
724         * app/commands.c : use GtkAboutDialog instead of homegrown GTK+
725         or GNOME specific one. 120 lines less code and more standard.
726         * configure.in : require GTK+ >= 2.6
728         * app/diapagelayout.c app/diaunitspinner.c app/layer_dialog.c :
729         make GtkTypeInfo static const as usual elsewhere
730         
731         * app/recent_files.c : it almost certainly is an error to ignore
732         the return value of g_list_remove_link()
733         
734         * lib/arrows.c lib/bezier_conn.[ch] lib/beziershape.h
735           lib/boundingbox.[ch] lib/color.[ch] lib/connectionpoint.c
736           lib/create.h lib/dia_svg.c lib/dia_xml.c lib/diaarrowchooser.c
737           lib/diagramdata.[ch] objects/UML/activity.c objects/UML/class.[ch]
738           objects/UML/uml.h : documentation fixes
739         
740         * lib/object.h lib/diagramdata.h : avoid circular inclusion
741         * lib/connectionpoint.h lib/focus.h lib/group.h lib/handle.h
742           lib/properties.h lib/sheet.h lib/diamenu.h
743         : dont include "object.h", "diatypes.h" is enough. 
744         Rule of thumb: only headers declaring an inheritant of DiaObject
745         should include "object.h"
746         * lib/diarenderer.h : include "font.h" not strictly needed by 
747         this header, but needed in almost any plug-in/
748         * app/diagram_tree_menu.c app/dialogs.[hc] app/display.c
749           app/export_png.c app/interface.c app/load_save.c app/sheets.c
750           app/sheets_dialog.c app/sheets_dialog_callbacks.c 
751           lib/diagdkrenderer.c lib/object.c lib/propobject.c
752           lib/text.c plug-ins/gprint/gnomeprint.c plug-ins/pixbuf/pixbuf.c
753           plug-ins/svg/render_svg.c
754           : some .c files now need to include "object.h" or <gtk/gtk.h>
755         or e.g. "intl.h" direct, formerly dargged in indirectly
756         * plug-ins/pgf/render_pgf.c : explicit inclusion of "arrows.h"
757         
758 2006-01-21  Hans Breuer  <hans@breuer.org>
760         * lib/connection.c lib/connection.h lib/connectionpoint.h
761           lib/diagramdata.h lib/diarenderer.h lib/diatypes.h
762           lib/element.h lib/geometry.h lib/handle.h lib/objchange.h
763           lib/object.c lib/object.h : documentation tweaking
765         * objects/UML/class_dialog.c(attributes_create_page,
766         operations_create_page) : dont connect
767         to a not exisiting signal. Avoids "GLib-GObject-CRITICAL **:
768         g_signal_connect_closure_by_id: assertion 'signal_id > 0' failed"
769         (This was a leftover of introducing the GtkTextView instead of GtkEntry)
771         * objects/UML/class_dialog.c objects/UML/class.c objects/UML/class.h :
772         Introduce 'comment_tagging' switch which allows to hide the rendering
773         {documentation = } Maybe a choice between ugliness and non-standard.
774         Fixes bug #326214. (Unrelated: started to adapt casing of variables
775         to Dia's common coding style)
776                 
777         * lib/object_defaults.c : pass is_default=TRUE to object_copy_props
778           lib/proplist.c : fixed pdtpp_default()
779           lib/propobject.c : correctly reflect is_default 
780         * object/UML/class.c : correct setting of PROP_FLAG_NO_DEFAULTS and
781         PROP_FLAG_DONT_MERGE. With the above this fixes bug #320934
782         
783         * lib/propdialogs.c : if PROP_NO_DEFAULTS is set dont try to show a
784         widget in defaults dialog
786         * app/display.c(initialize_display_widgets) : also append the Input 
787         Methods menu to the diagram menubar. Now fixes bug #327862.
789         * config.h.win32 : #undef LOCALEDIR
790         * app/app_procs.c : runtime calculation of localedir. It now is
791         $(executable_dir)/../locale. Should help fix bug #309763
792         
793         * sheets/AADL.sheet.in : remove left over xml:lang tag. 
794         ( Nguyen Thai Ngoc Duy, bug #327519)
796         * lib/dialibartrenderer.c : make text rendering work without
797         PangoFT2 and PangoWin32
800 2006-01-18  Lars Clausen  <lars@raeder.dk>
802         * objects/UML/class.h: Enabling UML class mainpoint after failure
803         to break it.
805         * app/grid.c: Fix bug with grid being incorrectly drawn when gap <
806         1.
808 2006-01-14  Hans Breuer  <hans@breuer.org>
810         * app/paginate_psprint.c : ensure we are not producing pages for
811         epsilon. Floating imprecision is fun. Fixes bug #133856.
812         * app/paginate_gdiprint.cpp : same here.
814         * plug-ins/pstricks/render_pstricks.c(draw_string) : now that I've
815         found the nice samples from bug #156171 it was quite simple to
816         confirm that the y value need indeed to be inverted. Fixes bug #304974.
817         Also special case strings starting with \tex - i.e. dont escape them -
818         to keep the use-case of direct tex input.
819         
820         * lib/debug.c : #include <glib/gprintf.h> not just <gprintf.h>
823 2006-01-14  Hans Breuer  <hans@breuer.org>
825         * samples/Self/umlclass.dia : (new file) documenting part of the
826         object relations of UMLClass. Also good for testing connections.
827         
828         * lib/debug.c : replace wrong call to vprintf() - missing file
829         descriptor - with the more appropriate g_vprintf(). Thus 
830         dia_assert_true() does not smash the stack anymore on win32.
831         
832         * objects/UML/class.c objects/UML/class_dialog.c objects/UML/uml.h
833           objects/UML/umlattribute.c objects/UML/umloperation.c :
834         reverted the memory managment of UMLAttribute/UMLOperation's 
835         ConnectionPoint(s) back to how it was up until 0.94. This finally
836         makes the UMLClass work again including undo/redo support. Fixes
837         bug #314153 and en passant bug #326453.
838         
839 2005-01-12  Lars Clausen  <lars@raeder.dk>
841         * objects/UML/umlattribute.c: 
842         * objects/UML/class_dialog.c: Better way of handling
843         connectionpoints: Don't copy them, just reference them.  Finally
844         fixes bug #314153 (not quite the pi bug:)
846         * app/menus.c (display_menu_items): 
847         * app/filedlg.c (file_open_response_callback): 
848         * app/display.[ch] (copy_display): 
849         * app/commands.[ch] (view_clone_view_callback): 
850         Added functionality to clone display.  Preparation for storing
851         display info in diagram files (not happening this version, though).
853         * INSTALL (NOTE FOR WINDOWS USERS): Added note for non-compiling
854         users pointing at dia-installer.
856 2006-01-08  Hans Breuer  <hans@breuer.org>
858         * shapes/Gane_and_Sarson/Makefile.am : correct spelling of filenames.
859         (Narcelio Filho, #326075)
861         * objects/AADL/aadl.h : remove #include "app/display.h". It is not needed,
862         plug-ins should not depend on app/* and it even breaks 'make distcheck'.
863         * objects/AADL/Makefile.am : added edit_port_declaration.h
864         * app/Makefile.am : added diaconv.c to EXTRA_DIST
865         => 'make distcheck' passes again.
867         * configure.in : use some more of gcc's useful warnings
869         * lib/geometry.h : removed unused functions just producing warnings
870         [sometimes it's good to read compiler warnings]
871         * plug-ins/cairo/diacairo.c : somehow a function call got lost
872         (left-hand operand of comma expression has no effect)
873         * plug-ins/metapost/render_metapost.c : dia_message_filename()
874         wants a char* not a FILE* (passing arg 1 of `dia_message_filename'
875         from incompatible pointer type)
878 2006-01-07  Hans Breuer  <hans@breuer.org>
880         * objects/custom/shape_info.c(parse_path) : handle the case of 
881         invalid path data more gracefully, i.e. show a warning instead 
882         of crashing later on.
883         * plug-ins/svg/svg-import.c(read_path_svg) : ditto.
884         
885         * configure.in sheets/Makefile.am shapes/Gane_and_Sarson 
886           shapes/Makefile.am : added Gane & Sarson shapes 
887         (Nick Moore, #319544)
889         * objects/makefile.msc : building AADL on win32
891 2006-01-06  Hans Breuer  <hans@breuer.org>
893         * objects/AADL/aadl.h : avoid redefinition warnings by #undef
894         min, #undef max before local definitions
895         * objects/AADL/aadl.h : more prototypes
896         * objects/AADL/aadltext.c : for C89 declarations must be at the
897         beginning of a block. And Dia *must* be compileable with C89.
899         * objects/AADL/** objects/Makefile.am sheets/Makefile.am 
900         configure.in : AADL plug-in from Pierre Duquesne. See
901         http://mail.gnome.org/archives/dia-list/2006-January/msg00005.html
902         for more information
903         * sheets/AADL.sheet.in : from the above patch but modified 
904         to become translatable like the other sheet files. That is: the
905         french translation got temporary removed cause it does not belong here.
907         * plug-ins/pgf/render_pgf.c : no C99/C++ comments please
909         * app/app_procs.c app/diaconv.c : get rid of run-on sentences
910         (Adam Weinberger, bug #325567)
911         
912         * app/menus.c : removed some keybindings with <control><shift>[0-9A-F]
913         and change some other to use <control><alt>. They collide with GTK's 
914         Unicode input feature. Fixes bug #320495. For rationale see: 
915         http://developer.gnome.org/projects/gup/hig/2.0/input-keyboard.html
916         
917         * app/display.c : pay attention to g_warnings() [should always run
918         with --g-fatalwarnings ;)]. Only create the menubar IM menu if there
919         actually is a menu bar.
920         
921         * lib/diarenderer.c : the righthand calculation accidentially broke
922         some arcs direction. Should be fixed again.
923         
924 2006-01-02  Hans Breuer  <hans@breuer.org>
926         * app/display.c(new_display) : also append the Input Methods menu to 
927         the diagram menubar. Fixes bug #308576.
929         * lib/widgets.c(dia_dynamic_menu_reset) : don't use an already
930         freed string to dia_dynamic_menu_select_entry(). Fixes bug #323592.
932         * lib/sheet.c(dia_sheet_sort_callback) : sort sheets according to 
933         their localized name (with g_utf8_collate). Thus not relying on the 
934         capabilities of the C libraries strcmp(). Fixes bug #160101.
936         * lib/diarenderer.c(draw_arc_with_arrows) : don't recalculate center
937         point and width from the (arrow-)corrected new points. Otherwise a 
938         whole new wrong arc may emerge. Fixes bug #312641.
939         
940 2006-01-01  Hans Breuer  <hans@breuer.org>
942         * objects/custom/custom_object.c(cutom_update_data) : depending 
943         on the handle moving let one scale (x or y) take precedence. 
944         (bug #308515, Eric Deplagne)
945         
946         * objects/UML/class.c : only perform the attributes check with
947         attributes visible to ged rid of false warnings
948         * objects/UML/class_dialog.c : need to setup Connection::object
949         after uml_attribute_new() and uml_operation_new(), again less
950         warnings but bug #314153 still not fixed.
952         * NEWS : updated
954         * plug-ins/python/diasvg.py : more correct svg by also writing 
955         xmlns="http://www.w3.org/200/svg"
957         * plug-ins/python/dot.py : skip unconnected connection lines
958         * plug-ins/python/Makefile.am : added dot.py
960         * plug-ins/python/pydiadoc.py plug-ins/python/codegen.py : fixed
961         typos in comments
963 2005-12-31  Hans Breuer  <hans@breuer.org>
965         * objects/UML/class.[hc] objects/UML/class_dialog.c : removed the 
966         caching of UMLClass::attributes_strings, operations_strings, 
967         templates_strings.
968         It was broken by the recent code restructuring in bug #303744 and
969         - if necessary at all - nowadays it should be done on the 
970         UMLAttribute, UMLOperation, UMLFormalParameter level anyway. 
971         A small, much needed simplification of the code.
973 2005-12-30  Hans Breuer  <hans@breuer.org>
975         * objects/UML/class.c : Patch from Dave Klotzbach
976         fixes crash bug #325151
978         * app/app_procs.c : add command line parameter --nonew to allow
979         avoiding the empty start-up diagram
980         Also give a hint on where the object-libs were missing.
981         Finally work around a misbehaviour upstreamm :
982         g_option_context_parse() returning FALSE but not setting error.
984         * app/commands.c app/app_diagram_tree.c app/interface.c :
985         Use gdk_pixbuf_render_pixmap_and_mask_for_colormap as suggested by
986         http://www.gtk.org/api/2.6/gdk/gdk-Pixbufs.html#gdk-pixbuf-render-pixmap-and-mask
987         
988         * lib/widgets.c : image file selection finally ported to the new
989         gtk file chooser. Fixes bug #309383
991 2005-12-28  Hans Breuer  <hans@breuer.org>
993         * app/commands.c(file_new_callback) : convert to filename encoding before
994         passing to new_diagram(), fixes bug #322400
995         
996         * app/interface.c(create_display_shell) : don't clip width on screen 
997         height - now commited. Also lazy creation of tooltips.
998         
999         * objects/UML/actor.c : Actor is finally resizable, fixes bug #66915
1000         
1001 2005-12-27  Hans Breuer  <hans@breuer.org>
1003         * app/diapsft2renderer.c(draw_bezier_outline) : only call
1004         FT_Outline_Decompose() when FT_GLYPH_FORMAT_OUTLINE.
1005         Prefers no text output over crashing for bug #144212
1007         * app/interface.c : removed superfluous call to dia_canvas_set_size().
1008         Suggested by Roland Stigge, fixes bug #148149.
1010         * plug-ins/dxf/dxf-import.c : don't complain too loud on Binary
1011         DXF. It is not supported at all. Fixes bug #322101
1013         * lib/geometry.c : removed the ifdefed GLIB_CHECK_VERSION(2,7,0)
1014         define G_IMPLEMENT_INLINES. It breaks again with glib-2-8
1017 2005-12-27  Hans Breuer  <hans@breuer.org>
1019         * app/navigation.c : protect on_da_button_release_event() against being
1020         called twice. Also only popdown the navigation window after the first 
1021         draw (reusing nav->is_first_expose). Fixes bug #151696
1022         
1023         * app/interface.c(create_display_shell): don't clip width on screen height, 
1024         but height
1026         * lib/plug-ins.c : fixed typo in comment
1027         
1028         * lib/libdia.def : updated externals
1029         * lib/makefile.msc : build debug.obj
1031         * plug-ins/makefile.msc : building pgf in the right alphabetical order
1032         * plug-ins/pgf/render_pgf.c : include <glib/gprintf.h>
1033         
1034 2005-12-08  Lars Clausen  <lars@raeder.dk>
1036         * app/authors.h: 
1037         * plug-ins/pgf/pgf.c: 
1038         * plug-ins/pgf/render_pgf.[ch]: 
1039         * plug-ins/pgf/Makefile.am: 
1040         * plug-ins/Makefile.msc: 
1041         * plug-ins/Makefile.am (SUBDIRS): 
1042         * configure.in: Patch from Moritz Kirmse <momomaniac@gmail.com>: Add
1043         support for PGF output for including in (La)TeX documents that
1044         allows PDF generation.
1046         * samples/render-test.dia: Added samples of text in different
1047         sizes, standard fonts and styles with size markers.
1049 2005-12-04  Lars Clausen  <lars@raeder.dk>
1051         * lib/Makefile.am (gen_sources): Mark marshal files as generated.
1052         (BUILT_SOURCES): Added marshal files.
1054 2005-12-03  Lars Clausen  <lars@raeder.dk>
1056         * lib/Makefile.am (diamarshal.c): Fix marshal rules to not talk
1057         about $(srcdir) and confusing everybody.
1059         * app/undo.c:
1060         * lib/diagramdata.c:
1061         * lib/diagramdata.h:
1062         * lib/diamarshal.list:
1063         * plug-ins/python/pydia-diagram.c:
1064         * plug-ins/python/pydia-diagramdata.c:
1065         * plug-ins/python/python-startup.py: Patch from David Johansson
1066         <david.lgj@gmail.com>: Add signals emitted when objects are
1067         inserted or removed.
1069 2005-11-13  Lars Clausen  <lars@raeder.dk>
1071         * app/display.c (update_zoom_status): Fix of bug #321387: Avoid
1072         (small) buffer overflow by using g_strdup_printf instead of sprintf.
1074 2005-11-09  Lars Clausen  <lars@raeder.dk>
1076         * app/app_procs.c: 
1077         * plug-ins/dxf/dxf-import.c (import_dxf): Don't use g_error except
1078         when reaching the statement is a bug.  Using g_critical and exit() for
1079         fatally wrong inputs.
1081         * objects/UML/uml.c: 
1082         * objects/UML/class.c: Patch from dklotzbach@foxvalley.net (dave
1083         Klotzbach): Fixes template rendering and converts home-brew inline
1084         doc format to javadoc.  Doesn't yet fix bug #320934, but turns it
1085         into a dup.
1087 2005-11-07  Lars Clausen  <lars@raeder.dk>
1089         * lib/object.[ch]: Add 'enclosing box' as opposed to 'bounding
1090         box' since several objects have problems of using bounding box in
1091         different ways (see bug #300055).  For now, enclosing box ==
1092         bounding box, but over time objects will learn to expand the
1093         bounding box to include things only rendered interactively.
1095         * app/modify_tool.c (modify_motion): Make sure highlight is reset
1096         when moving between overlapping objects.
1098         * app/interface.c (interface_toggle_mainpoint_magnetism): Redraw
1099         diagram after toggling to make red X's come and go.
1101         * lib/font.c: #ifdef'd out layout cache for bug #307320.  Define
1102         it if you need faster rendering and aren't afraid of crashbugs:)
1104         * lib/objchange.c: Bugfix from dklotzbach@foxvalley.net
1105         (dave Klotzbach):  Fixes null pointer problems in free function.
1107         * objects/UML/class.c
1108         * objects/UML/class.h
1109         * objects/UML/class_dialog.c: Patch from dklotzbach@foxvalley.net
1110         (dave Klotzbach): Make UML comments conform to UML 1.0 standard
1111         and allow multi-line comments. Ugly as hell, but standard.  Time
1112         for a 'Strict UML' option?  Fixes bug #303744.
1113         
1114         * objects/UML/state.c: Patch from Peter Allin <peter@peca.dk>: Add
1115         entry, exit and do descriptions to a state object.  Fixes bug #65434.
1117 2005-11-03  Lars Clausen  <lars@raeder.dk>
1119         * lib/arrows.c:
1120         * lib/attributes.c:
1121         * lib/autoroute.c:
1122         * lib/bezier_conn.c:
1123         * lib/boundingbox.c:
1124         * lib/color.c:
1125         * lib/connection.c:
1126         * lib/connectionpoint.c:
1127         * lib/dia_dirs.c:
1128         * lib/dia_image.c:
1129         * lib/dia_svg.c:
1130         * lib/dia_xml.c:
1131         * lib/diaarrowchooser.c:
1132         * lib/diaerror.c:
1133         * lib/diagdkrenderer.c:
1134         * lib/diagramdata.c:
1135         * lib/element.c:
1136         * lib/object.c:
1137         * lib/object.h:
1138         * lib/parent.c:
1139         Added documentation java-doc style.  Also a few trivial cleanups.
1140         
1141 2005-10-13  Lars Clausen  <lars@raeder.dk>
1143         * lib/connectionpoint.h (DIR_ALL): Parentheses around operations
1144         in macros.
1146         * plug-ins/hpgl/hpgl.c (export_data): Correct error message.
1148         * lib/Makefile.am:
1149         * lib/debug.[ch]:
1150         * lib/object.[ch]: 
1151         * objects/UML/class.[ch]: 
1152         * objects/UML/uml.h: 
1153         * objects/UML/umlattribute.c: 
1154         * objects/UML/umloperation.c: 
1155         * objects/UML/class_dialog.c: 
1156         Rework of the UML class attribute/operation handling.  Now doesn't
1157         copy connection points into the dialog data, but only the "flat"
1158         data.  As part of debugging made sanity check functionality.
1159         Currently still dies when deleting an attribute/operation that has
1160         a connection to it.
1162 2005-10-09  Hans Breuer  <hans@breuer.org>
1164         * lib/properties.h : prefer american spelling of colo(u)r for
1165         user visible strings - i.e. to be translated ones.
1166         * objects/UML/uml.c : it is Implementation. Together fixes bug #313929
1167                                         ^
1168         * po/*.po : updated (by 'make distcheck')
1170 2005-10-09  Hans Breuer  <hans@breuer.org>
1172         * app/display.c : allow !"toolbox on top" without restart.
1173         (Chris Hellberg, bug #310702)
1175 2005-10-09  Hans Breuer  <hans@breuer.org>
1177         * lib/arrows.c : patch from Radek Krahl fixing the blanking
1178         of two arrowheads, bug #310157
1180 2005-10-08  Hans Breuer  <hans@breuer.org>
1182         * plug-ins/python/group_props.py : show a descriptive text instead of an 
1183         empty table if there are no common properties to change. Fixes bug #314432
1185 2005-10-08  Hans Breuer  <hans@breuer.org>
1187         * objects/UML/transition.c : inverted default direction of
1188         the direction. Patch from Peter Allin, fixes bug #318049
1189         [You possibly need to 'rm ~/.dia/defaults.dia' to have an effect]
1191 2005-10-08  Hans Breuer  <hans@breuer.org>
1193         * app/Makefile.am objects/standard/Makefile.am : match the
1194         referenced icons to the needed. Make 'make distcheck' pass
1195         and thus fixes bug #312152
1197         * objects/standard/textobj.c : no C++ comments please!
1199 2005-10-08  Hans Breuer  <hans@breuer.org>
1201         * objects/standard/textobj.c : preserve the position set on create
1202         [makes e.g. text positioning of diasvg_import.py work]
1204         * plug-ins/python/diasvg_import.py : restrict what eval() can do
1205         with strings from svg files. Fixes the arbitrary code execution from 
1206         bug #317637
1207         
1208         * app/pixmaps/mainpoints-(on|off).png : new icons to toggle center point
1209         magnetism. At least they are distinguishable from grid snapping.
1210         * app/makefile.msc app/Makefile.am : use them
1211         
1212         * lib/focus.c(reset_foci) : also remove_focus(). This fixes bug #172851
1213         I also can't reproduce bug #309044 anymore (on win32).
1214         
1215 2005-10-01  Lars Clausen  <lars@raeder.dk>
1217         * lib/connectionpoint.h (DIR_ALL): Parentheses around | expressions.
1219         * plug-ins/hpgl/hpgl.c (export_data): Listen to warnings and don't
1220         pass FILE * as gchar *.
1222         * lib/debug.[ch] (dia_assert_true): Debugging aids.
1224 2005-09-29  Lars Clausen  <lars@raeder.dk>
1226         * objects/UML/class.h: Enabling mainpoints for UML.
1228         * objects/UML/class.c (umlclass_set_props): Make sure to always
1229         realloc connection point list.
1231 2005-09-26  Ahmad Riza H Nst  <rizahnst@id.gnome.org>
1233         * configure.in: Added "id" in ALL_LINGUAS line.
1235 2005-09-14  Lars Clausen  <lars@raeder.dk>
1237         * objects/UML/class.c (umlclass_load): Set mainpoint obj upon
1238         loading.  Fixes bug #315427.
1240 2005-09-11  Hans Breuer  <hans@breuer.org>
1242         * objects/standard/arc.c objects/standard/textobj.c : fix
1243         C99isms, Dia is supposed to compile with C89 like msvc
1245         * app/makefile.msc : use the wrong center-point-magnetism
1246         icons for the win32 build, too.
1248         * plug-ins/python/pydia-error.c : dont crash on C escape
1249         sequences in the error string
1250         * plug-ins/python/pydia-render.c : dont free filename twice
1252         * plug-ins/python/dot.py : start of an exporter to DOT language
1253         which can be processed by www.graphviz.org tools
1255 2005-09-05  Iñaki Larrañaga  <dooteo@euskalgnu.org>
1257         * configure.in: Added "doc/eu/Makefile" for Basque documentation.
1259 2005-09-04  Iñaki Larrañaga  <dooteo@euskalgnu.org>
1261         * configure.in: Added "eu" to ALL_LINGUAS.
1263 2005-09-04  Lars Clausen  <lars@raeder.dk>
1265         * lib/element.h (ELEMENT_COMMON_PROPERTIES): Remove object
1266         dimensions frame to make ext_attributes work again.
1268         * app/grid.c (snap_to_grid): Bugfix from Zhang Lin-bo
1269         <zlb@lsec.cc.ac.cn>: Use dynamic grid setting from diagram, not
1270         global prefs.
1272         * objects/standard/textobj.c: Applied patch from Grégoire Dooms
1273         <dooms info ucl ac be>: Add vertical alignment for standard text
1274         object.  This should really be moved into lib/text.c and apply to
1275         all text objects.
1277 2005-09-03  Lars Clausen  <lars@raeder.dk>
1279         * app/connectionpoint_ops.c (connectionpoint_draw): Only draw
1280         mainpoint when snap-to-objects is not on.
1282         * app/Makefile.am (ICON_PNG_PAIRS): 
1283         Fake icons for snap-to-objects.
1285         * app/commands.[ch]: 
1286         * app/menus.c (menus_get_image_menubar): 
1287         * app/display.[ch]: 
1288         * app/interface.c (create_display_shell): 
1289         * app/create_object.c (create_object_button_release): 
1290         * app/disp_callbacks.c (ddisplay_drop_object): 
1291         * app/object_ops.[ch]: 
1292         * app/connectionpoint_ops.c (ddisplay_connect_selected): 
1293         * app/modify_tool.c (modify_button_release): 
1294         * app/display.[ch]: 
1295         Togglable snap-to-objects, also doesn't snap when moving entire
1296         object.  This should be more reasonable in practical use, and can
1297         be turned off when you want to place your arrows more precisely.
1299 2005-08-06  Hans Breuer  <hans@breuer.org>
1301         * plug-ins/cairo/diacairo.c : increased #ifdef MESS:
1302         With Gtk+-2.7.x cairo must be available so the HAVE_CAIRO case
1303         becomes even more ugly when the user has choosen *not* to build 
1304         the diacairo plug-in. If noone can come up with a very convincing 
1305         reason why it has to be done this way I'll probably go back to 
1306         my original dont-build-at-all approach when this breaks the 
1307         next time.
1309 2005-08-02  Lars Clausen  <lars@raeder.dk>
1311         * objects/standard/arc.c: Patch from Grégoire Dooms
1312         <dooms@info.ucl.ac.be>: An almost perfect arc autogap
1313         implementation.  "There is still a small bug when the non
1314         connected end of the arc is very close to the border of the
1315         connected object. I think this is due to rounding errors in the
1316         code for SHIFT-move handle which is reused to trim the arc in
1317         autogap. Also it is not yet possible to have a startgap and an
1318         endgap from/to the same central CP."
1320 2005-07-31  Hans Breuer  <hans@breuer.org>
1322         * plug-ins/cairo/diacairo.c congigure.in : dont wait any 
1323         longer for distributions official packages - depend 
1324         on cairo 0.6.0 - fixes bug #307144
1326 2005-07-20  Hans Breuer  <hans@breuer.org>
1328         * lib/element.h : remove stray NULL in ELEMENT_COMMON_PROPERTIES
1329         which must match PropDescription, that is make it at least compile.
1331 2005-07-19  Hans Breuer  <hans@breuer.org>
1333         * app/diagram.c(new_diagram) : what comes from g_object_new()
1334         MUST NOT be g_free()'d 
1336         * lib/message.h : added dia_message_filename() here as well.
1337         Mainly to not touch all files using. They *all* where using
1338         lib/message.h already! Maybe the implemantation should be moved
1339         to message.c as well cause the function has *nothing* to do
1340         with dynamic filename resolving. It is a wrapper around
1341         g_display_filename() mostly (only?) used for messages ...
1342         * lib/dia_dirs.c(dia_message_filename) : fix C99ism
1344 2005-07-18  Lars Clausen  <larsrc@raeder.dk>
1346         * objects/EML/instantiation.c (instantiation_load): 
1347         * objects/EML/interaction-ortho.c (interaction_ortho_type) 
1348         * objects/ER/participation.c (participation_type): 
1349         * objects/FS/flow-ortho.c (orthflow_type): 
1350         * objects/GRAFCET/vector.c (arc_load): 
1351         * objects/standard/zigzagline.c (zigzagline_type): 
1352         * objects/UML/transition.c (transition_load): 
1353         * objects/UML/realizes.c (realizes_load): 
1354         * objects/UML/dependency.c (dependency_load): 
1355         * objects/UML/generalization.c (generalization_type): 
1356         * objects/UML/association.c (association_type): 
1357         * objects/UML/component_feature.c (compfeat_load): 
1358         Make autorouting deafult on except for old diagrams.
1360         * plug-ins/cairo/diacairo.c (export_data): 
1361         * plug-ins/cgm/cgm.c (export_cgm): 
1362         * plug-ins/dxf/dxf-export.c (export_dxf): 
1363         * plug-ins/dxf/dxf-import.c: 
1364         * plug-ins/hpgl/hpgl.c (export_data): 
1365         * plug-ins/metapost/render_metapost.c: 
1366         * plug-ins/pixbuf/pixbuf.c: 
1367         * plug-ins/pstricks/render_pstricks.c: 
1368         * plug-ins/python/pydia-render.c: 
1369         * plug-ins/shape/shape-export.c: 
1370         * plug-ins/svg/render_svg.c: 
1371         * plug-ins/svg/svg-import.c: 
1372         * plug-ins/wpg/wpg.c 
1373         * plug-ins/xfig/xfig-export.c: 
1374         * plug-ins/xfig/xfig-import.c: 
1375         * plug-ins/xslt/xslt.c: Use dia_message_filename to ensure legal
1376         UTF-8 in message boxes.
1378 2005-07-18  Lars Clausen  <lars@raeder.dk>
1380         * lib/element.h (ELEMENT_COMMON_PROPERTIES): Allow Element objects
1381         to have their dimensions specified in properties.  Still needs to
1382         have proper update when setting properties cause constraint changes.
1384         * app/preferences.c (update_floating_toolbox): Allow
1385         toolbox_on_top setting to happen at once.
1387         * app/diagram.c
1388         * app/filedlg.c
1389         * app/load_save.c
1390         * app/render_eps.c
1391         * app/sheets_dialog_callbacks.c
1392         * lib/dia_dirs.c
1393         * lib/dia_dirs.h
1394         * lib/dia_xml.c
1395         * lib/diarenderer.c
1396         * lib/element.h
1397         * lib/object_defaults.c:
1398         Patch from lav@altlinux.ru (Vitaly Lipatov): Make filenames safe
1399         for displaying in messages - better than crashing!  Mostly fixes
1400         #310087.
1401         
1402         * objects/UML/class.c:  Save normal_font_height under the same
1403         name it gets loaded as.  Fixes bug #310515.
1405         * doc/en/authors.xml
1406         * doc/en/usage-customization.xml
1407         * doc/en/usage-objects-special.xml
1408         * doc/en/usage-objects.xml: Some documentation fixes.  Fixes bug
1409         #308315.
1411 2005-07-17  Lars Clausen  <lars@raeder.dk>
1413         * doc/en/usage-customization.xml: 
1414         * doc/en/usage-objects.xml: 
1415         * doc/en/authors.xml: 
1416         * doc/en/usage-objects-special.xml: Applied patch from
1417         stigge@antcom.de (Roland Stigge):  Diverse typos and
1418         misencodings.  Fixes bug #308315.
1420         * objects/UML/class.c (umlclass_save): Patch from
1421         i.pilcher@comcast.net: Save normal font height under correct name
1422         to reload it.  Fixes bug #310515.
1424 2005-07-10  Hans Breuer  <hans@breuer.org>
1426         * app/connectionpoint_ops.c app/object_ops.c : make the
1427         'whole object' connection point only center point again. 
1428         That is: it is visible and far less magnetic. Only the
1429         line gap handling make it special. For me this probably
1430         fixes bug #303301
1432         * lib/neworth_conn.c : apply the same as for bug #173031.
1433         This OrthConn fork got broken as well. Fixes bug #309381
1435         * app/makefile.msc objects/makefile.msc : adapt to icon changes
1437         * app/interface.c app/diagram_tree.c : a char** is still not 
1438         a char* and the win32 build is configured to error on 
1439         sloppiness like this
1441         * plug-ins/wmf/wmf.cpp : fix typo in preprocessor condition
1443 2005-07-10  Hans Breuer  <hans@breuer.org>
1445         [
1446           Take part in the toolbox icon redesign context! If you want to 
1447           make them really prettier, please keep the following in mind :
1448           - the size *must* be 22x22 otherwise button reflow will get broken.
1449             Or you need to change about 800 icons at once.
1450           - one important part of Dia are control points, so maybe the icons
1451             should reflect that. (IMO gathering random icons form other 
1452             apps wont work)
1453           - the icons should at least look consistent in their group
1454         ]
1456         * app/Makefile.am : use 22x22 variants mostly lent from The GIMP
1457         * app/pixmaps/*.png : added arrow-22.png scroll-22.png zoom-22.png
1459         * objects/standard/*.c : get rid of xpm includes to avoid mixing icon sets
1460         * objects/standard/pixmap/* : added arc.png beziergon.png 
1461         bezierline.png box.png ellipse.png image.png line.png polygon.png 
1462         polyline.png text.png zigzagline.png
1463         * objects/standard/Makefile.am : use the new icon set including
1464         text and arc ...
1466         * app/interface.c : remove the "will probably crash" debug spew
1468 2005-07-09  Lars Clausen  <lars@raeder.dk>
1470         * objects/standard/pixmaps/*.png:
1471         * objects/standard/Makefile.am:
1472         * objects/standard/*.c:
1473         * app/interface.c: 
1474         * app/diagram_tree.c (create_object_pixmap): Fix icon loading. use
1475         new icons. [Slightly belated entry]
1477 2005-07-03  Hans Breuer  <hans@breuer.org>
1479         * app/diagram_tree.c : dont leak display name
1480         * app/app_procs.c : dont leak GOptionContext
1481         * app/prop_widgets.c(frame_beginprop_get_widget) : 
1482         Gtk api still not eating strings ...
1484         * objects/UML/class.c() : don't load properties once more 
1485         which are already loaded by StdProps. In case of strings 
1486         (data_string) it has even produced leaks.
1488         * app/paginate_psprint.c app/diagram.[hc] : the last
1489         of the related dialogs is gone and with it the 
1490         misconception of destroying widgets from 
1491         diagram::finalize()
1492         * app/display.c : ensure the diagram is still threre
1493         when we remove the display from it's list
1495 2005-07-01  Hans Breuer  <hans@breuer.org>
1497         * lib/widgets.c(dia_color_selector_more_callback): dont 
1498         free old_color twice
1500         * plug-ins/wmf/wmf.cpp : finally added enahnced meta file
1501         option. Thus linestyles can be preserved on export - at 
1502         least on NT based systems.
1504         * NEWS : clarify the wmf outside of windows issue
1506         * app/modify_too.c : fix C99ism
1508         * objects/standard/arc.c : debug spew optional at compile time
1510 2005-06-26  Hans Breuer  <hans@breuer.org>
1512         [ Cyrille would call it: warningectomy :-]
1514         * lib/font.c app/create_object.c : `...' might be used uninitialized
1515         in this function. Yes they were.
1516         * app/modify_tool.c : modify_tool.c:610: warning: `obj' might be used 
1517         uninitialized in this function. Yes it was with textedit_activate_object()
1518         Also some static correctness.
1519         * lib/diarenderer.c:678: warning: no previous prototype for 
1520         `calculate_min_radius'. Made static.
1521         * lib/dia_svg.c : ptr is a gchar *
1522         * dia_xml.c(data_point,data_rectangle) : gchar *str for parsing
1523         * lib/prop_text.c(multistringprop_get_widget) : use G_CALLBACK
1524         * app/app_procs.c : confirm warning and make dump_dependencies() static
1525         * app/autosave.c : #if 0'd old stuff
1526         * app/display.c : GTK_CHECK_MENU_ITEM() for snap_to_grid
1527         * 
1528         * lib/text.c lib/font.c objects/standard/line.c object/UML/class.c
1529           objects/Istar/goal.c objects/standard/bezier.c objects/standard/beziergon.c
1530           plug-ins/cgm/cgm.c plug-ins/cairo/diacairo.c plug-ins/hpgl/hpgl.c
1531           plug-ins/wpg/wpg.c plug-ins/svg/svg-import.c plug-ins/shape/shape-export.c
1532           plug-ins/dxf/dxf-export.c plug-ins/gprint/diagnomeprintrenderer.c
1533           plug-ins/gprint/diagnomeprint.c  plug-ins/xfig/xfig-export.c
1534           app/diagram_tree_menu_callbacks.c app/recent_files.c app/undo.c app/menus.c
1535           app/diapsrenderer.c app/diagram.c app/disp_callback.c : 
1536         removed unused variables and functions
1537         * objects/UML/umlattribute.c objects/UML/umloperation.c 
1538           objects/UML/umlparameter.c objects/UML/umlformalparameter.c : 
1539         neither 'missing braces around initializer' nor 'initialization from 
1540         incompatible pointer type'
1541         * objects/UML/class_dialog.c : more static
1542         * app/interface.c : static and almost const correctness and some
1543         less unitialized variables.
1544         * app/diapsft2renderer.c : use (int) casts like the original 
1545         (http://imagic.weizmann.ac.il/~dov/freesw/paps/ v0.4) does
1546         * app/render_gdk.c: stop assignment from incompatible pointer type,
1547         make member functions match the prototype.
1548         * app/render_libart.c : Dito. Also stop caching the copy_gc in
1549         a static variable. Otherwise it finally leaks and also may cause 
1550         BadMatch with changing windows
1551         => warning count down from about 250 to about 60, one or two hand full 
1552            crash bugs less.
1554 2005-06-26  Hans Breuer  <hans@breuer.org>
1556         * lib/libdia.def : added dia_font_get_description, missing
1557         from my last commit
1559         * app/app_procs.c : use png_get_header_ver(NULL), that is:
1560         prefer function call over exported variable to get the 
1561         runtime version of libpng
1563 2005-06-19  Hans Breuer  <hans@breuer.org>
1565         * plug-ins/python/Makefile.am : added codegen.py to EXTRA_DIST
1566         as suggested by Roland Stigge, bug #308310
1568 2005-06-19  Hans Breuer  <hans@breuer.org>
1570         * app/filedlg.c(file_export_callback) : oops, gtk_widget_show() wasn't 
1571         called anymore
1573 2005-06-18  Hans Breuer  <hans@breuer.org>
1575         * NEWS : mention new file dialog
1577         [plugged remaining leaks from bug #142669]
1578         * lib/prop_attr.c(fontprop_free) : not only unref the font
1579         but free the property itself, too. 
1580         * app/diagram_tree.c(create_diagram_children): remember the
1581         original list start to not only free the last element 
1583         * lib/prop_sdarray.c:64: warning: `arrayprop_free' defined 
1584         but not used. Here it meant a potentially huge leak.
1586 2005-06-18  Hans Breuer  <hans@breuer.org>
1588         * po/POTFILES.in : removed app/diaconv.c which isn't referenced 
1589         by app/Makefile.am anymore either. Should finally fix 'make distcheck' 
1590         for others, too. ( Roland Stigge, bug #144527 )
1592 2005-06-18  Hans Breuer  <hans@breuer.org>
1594         * plug-ins/wmf/Makefile.am : prevent installation. It 
1595         doesn't do anything useful on *NIX and even seems to be
1596         linked wrong by gcc (or me;). Fixes bug #172830 
1598 2005-06-18  Hans Breuer  <hans@breuer.org>
1600         * app/textedit.[hc] lib/arrows.[hc] plug-ins/xslt/xslt.h
1601           plug-ins/xslt/xsltdialog.c plug-ins/xslt/xslt.c : fix for sloppiness
1602         in function declarations. 'f();' for a function without parameters is
1603         a C++ism. Though I can't get any of my compilers to warn about it.
1604         Finally fixes bug #142663.
1606 2005-06-18  Hans Breuer  <hans@breuer.org>
1608         * app/textedit.[hc] lib/arrows.[hc] plug-ins/xslt/xslt.h
1609           plug-ins/xslt/xsltdialog.c plug-ins/xslt/xslt.c : fix for sloppiness
1610         in function declarations. 'f();' for a function without parameters is
1611         a C++ism. Though I can't get any of my compilers to warn about it.
1612         Finally fixes the rest of bug #142663.
1614 2005-06-18  Hans Breuer  <hans@breuer.org>
1616         * lib/font.h lib/font.c : _DiaFont is now private to prepare bigger 
1617         changes but doesn't hurt anyway. See bug #162034 
1618         * app/diapsft2renderer.c app/modify_tool.c 
1619           plug-ins/gprint/diagnomeprintrenderer.c : use dia_font_get_description() 
1620         instead of messing with internals
1621         * app/display.c : give interactive renderers more begin/end render. 
1622         It is guaranteed that the scale wont change between these.
1624 2005-06-18  Hans Breuer  <hans@breuer.org>
1626         * app/app_procs.c : const correctness for stderr_message_internal
1627         * app/dia-props.c : gtk_toggle_*() functions want GTK_TOGGLE_BUTTON 
1628         not GTK_CHECK_BUTTON, also some G_CALLBACK casts
1629         * app/disp_callbacks.c : don't dereference the to the function call
1630         when the function pointer in meant to be checked against 0
1631         * app/interface.c : warning fixes by using correct types
1632         * app/modify_tool.c : describe_props() members returns const pointer
1633         * app/render_libart.c : removed most of the render function again.
1634         They happily live in lib/dialibartrenderer.c since almost 3 years
1635         http://cvs.gnome.org/viewcvs/dia/app/render_libart.c?r1=1.31&r2=1.32
1636         * lib/dia_dirs.c : dia_get_canonical_path() const correctness
1637         * lib/dia_svg.c lib/dia_xml.c : some char to xmlChar changes
1638         * lib/dialibartrenderer.c(set_line_join): actually set the join_style
1639         instead of the cap_style. Don't initialize Art* enums with GDK_* constants.
1640         Both mentioned in bug #159814 and not warned by most other compilers.
1641         * lib/diagtkfontsel.c : at least the watcom compiler did not like the
1642         trailing colon in the GtkTypeInfo initialization
1643         * lib/properties.c : avoid redefinition of LIBDIA_COMPILATION
1644         * lib/dialinechooser.c lib/diagdkrenderer.c : there may be a difference 
1645         between char and gint8
1646         * plug-ins/metapost/render_metapost.c : replace invalid escape \% with %%
1647         * plug-ins/wpg/wpg.c : consitently use guint8
1648         * config.h.win32 : change HAVE_* defines to 1 not empty, avoids 
1649         redefinition warnings for python and xslt plug-ins
1651 2005-06-18  Hans Breuer  <hans@breuer.org>
1653         * lib/diagramdata.c : really get rid of diagram_data_destroy 
1654         and new_diagram_data [ no previous prototype for `...' is either
1655         a sign of missing static or of a function to vanish :-]
1657         * lib/geometry.c : apparently the G_INLINE stuff was working only
1658         with particular GLib version(s), glib-2.6.4 does not. Conditionally
1659         reverting to the old mecanics.
1661 2005-06-17  Hans Breuer  <hans@breuer.org>
1663         * plug-ins/python/pydia-*.c : include order tweaking to 
1664         get rid of redefinition warnings. Ensure to include <Python.h> 
1665         before any 'system' header, some dragged in by glib.h
1666         * plug-ins/python/pydia-diagramdata.c(PyDiaDiagramData_Str)
1667           pydia-properties.c(PyDiaProperties_Str)
1668           plug-ins/python/pydia-property.c(PyDiaProperty_Str) : 
1669         use %p to format pointers
1670         * plug-ins/python/pydia-geometry.c(PyDiaArrow_Str) : 
1671         dont cast to float for %d
1672         * plug-ins/python/pydia-handle.c(PyDiaHandle_Connect) : 
1673         use correct pointer type
1674         * plug-ins/python/pydia-image.c(PyDiaImage_Str) :
1675         dont discard qualifier aka dont free const strings
1676         * plug-ins/python/pydia-properties.c : casts to PyCFunction
1677         * plug-ins/python/pydia-property.c : removed unused function,
1678         make ensure_quarks() static
1679         * plug-ins/python/pydia-render.c : removed unused vars, use
1680         the correct signature for begin_render
1681         (dia_py_renderer_finalize): pluged a leak
1682         => except -fno-strict-aliasing there is no warning left in 
1683            all of PyDia
1685 2005-06-12  Hans Breuer  <hans@breuer.org>
1687         * app/filedlg.c : really fix the file extension mismatch on export dialog
1688         by working around some gtk+-2.6 behaviour (bug #307378). Fixes bug #305850
1690 2005-06-11  Hans Breuer  <hans@breuer.org>
1692         * configure.in config.h.win32.h : mark as +cvs (should have been 
1693         done directly after the 0.94 release)
1694         * NEWS : attempt to summarize 2/3 year of development
1696         [ 
1697           WANT_AUTOMAKE=1.7 ./autogen.sh && ./conifugre  --enable-maintatiner-mode && make distcheck
1698           finally passes again
1699         ]
1700         * app/app_procs.c : force use of POPT for the GNOME case, otherwise
1701         app/run_dia.sh --credits > THANKS => Segmentation fault
1702         * app/pixmaps/Makefile.am : added group.png and ungroup.png
1703         * Makefile.am : work around scrollkeeper bug
1704         * doc/en/Makefile.am : explicit list DISTCLEANFILES = dia.1
1706         * po/*.po : 'noise' produced by make dist
1708 2005-06-10  Hans Breuer  <hans@breuer.org>
1710         * lib/properties.h : define PROP_STD_SHOW_BACKGROUND_OPTIONAL ...
1711         * objects/custom/custom_object.c : ... and use it to avoid 
1712         complains about missing attribute "show_background". It is 
1713         safe to leave this uninitialized. Same for flip_* and "text",
1714         the latter with comment cause it usually is *not* safe to do 
1715         it for the general case. Fixes remaining issues with bug #169006
1716         which where caused by an incompatible change in the shape file.
1718         * app/commands.c : use "gnome-open" instead of "netscape" as
1719         fallback for $BROWSER not set. Still not optimal but better
1720         to try some common desktop tool than an obsolete browser;)
1721         Fixes bug #307142. Also some whitespace changes.
1723         * app/interface.c(toolbox_delete): avoid random return value.
1724         Patch from Stanislav Brabec, fixes bug #307143
1726         * shapes/Cisco/Makefile.am : added a bunch of new shapes/pngs.
1727         Patch from Torben H. Nielsen (bugzilla is still the preferred way)
1728         http://mail.gnome.org/archives/dia-list/2005-June/msg00015.html
1730 2005-06-06  Lars Clausen  <lars@raeder.dk>
1732         * app/diagram.c: 
1733         * app/modify_tool.c:
1734         * app/textedit.[ch]:
1735         Better support for text edit highlight.
1737         * app/connectionpoint_ops.c (connectionpoint_draw): Stop making
1738         the mainpoint extra visible.
1740 2005-06-02  Lars Clausen  <lars@raeder.dk>
1742         * objects/UML/class_dialog.c:
1743         * objects/UML/class.[ch]:
1744         The final fixes for mainpoint on UML Class.
1746         * sheets/cisco*.in, shapes/Cisco/*: New set of Cisco icons from
1747         Ian Redfern, now in color and with mainpoints!  Very pretty!
1749 2005-06-02  Hans Breuer  <hans@breuer.org>
1751         * objects/UML/class_dialog.c : the memory managment with respect to
1752         attribute/operation connections was/is a mess. But it should work again ;)
1754         * samples/UMLPackages.dia samples/Composite-Action.dia : some diagrams
1755         directly from the UML Specification - to show the power of Dia and 
1756         some weakness. Watch the bug reports following ;)
1758 2005-06-01  Hans Breuer  <hans@breuer.org>
1760         * app/dia.def : export diagram_update_connections_object
1761         * plug-ins/python/pydia-diagram.c : wrap diagram_update_connections_object
1762         Patch from Paolo Bernardi, together with the property setting closes bug #300572
1764 2005-06-01  Hans Breuer  <hans@breuer.org>
1766         * plug-ins/python/pydia-property.c : complete refactoring of property 
1767         setting, now also supports setting of property arrays
1768         * plug-ins/python/pydia-*.c plug-ins/python/diamodule.c : adapt to 
1769         Python namespacing conventions
1770         * plug-ins/python/pydiadoc.py : use the stuff above to produce more 
1771         complete UML Classes with attributes and operations
1772         * plug-ins/python/otypes.py : now also show the properties of the objects
1774         * objects/UML/class.c(umlclass_set_props) : need to update object::connections
1775         (pointers), they might be changed with attributes and opertions changing
1777         * plug-ins/python/pydia-property.c : PointArray and BezPointArray property getters
1778         were broken. Apparently noone used them before.
1780         * plug-ins/python/pydia-diagram.c plug-ins/python/pydia-diagramdata.c : moved methods
1781         which only operate on the DiagramData to the latter file. To get on the DiagramData
1782         object of a Diagram use diagram.data. [In C the Diagram is a subclass of DiagramData, 
1783         but I don't know how to reflect that in the bindings. And for backward compatibility 
1784         there also is the 'data' member.]
1786         * objects/UML/uml.c objects/UML/umlattribute.c objects/UML/umloperation.c 
1787           objects/UML/umlparameter.c : describe enums with PropEnumData
1789         * app/commands.c(view_show_all_callback) : if there is something selected show 
1790         that instead of all exisiting objects. If there is noting or all selcted it 
1791         "Show all" shows the old behaviour.
1793         * lib/parent.[hc] lib/object.c app/disp_callbacks.c app/diagram.c : plug some memory 
1794         leaks and use less allocations caused by misguided API. Also some adaption to common 
1795         coding style
1797         * objects/UML/class.h : add some comment about the brokeness of UML_MAINPOINT
1799         * app/makefile.msc : added new icons and build as console app while 
1800         not releaseing to the general public
1802         * objects/custom/shape_info.c : use g_strdup("") for a field to be g_free()'d
1803         and keep a refernce when storing the a font from style="" in s.font. This should
1804         finally allow to have shapes with fully predefined text (and no 'random' crashes)
1806         * plug-ins/gprint/diagnomeprint.c : disable GNOME_SVG until I've found a program
1807         capable to interpret it's output
1809 2005-05-31  Lars Clausen  <lars@raeder.dk>
1811         * sheets/ER.sheet.in: No more xpms referenced in sheets. Fixes bug #151811.
1813 2005-05-30  Pawan Chitrakar  <pawan@nplinux.org>
1815         * configure.in: Added ne in ALL_LINGUAS
1817 2005-05-24  Lars Clausen  <lars@raeder.dk>
1819         * lib/font.c: Change to make DIA_FONT_ITALIC turn into -Oblique PS
1820         fonts for legacy fonts.  They don't have DIA_FONT_OBLIQUE setting
1821         anyway. 
1823 2005-05-23  Lars Clausen  <lars@raeder.dk>
1825         * lib/paper.c: Added Ledger size paper.  Fixes bug #305254.
1827 2005-05-21  Lars Clausen  <lars@raeder.dk>
1829         * lib/diaarrowchooser.c: 
1830         * lib/arrows.[ch]: Patch from Radek Krahl <ptasz3k@o2.pl>: Add
1831         'infinite' line (three dots) arrowhead.  Fix line length in arrow
1832         preview.  And fix typo.  Fixes bug #303904. 
1834 2005-05-20  Hans Breuer  <hans@breuer.org>
1836         * lib/text.c : advice from valgrind and data_string() review:
1837         neither g_free() memory on the stack
1838         * objects/GRAFCET/boolequation.c : ... nor const strings 
1839         * objects/UML/association.c:934 : definitely lost. Even g_strdup("")
1840         wants to be freed
1842         * app/diagram.c : a g_object_ref() following g_object_new() is almost
1843         always wrong. Why would we need two refernces?
1844         * app/app_procs.c : same here.If it crashes later on someone is dropping
1845         refernces he does not own, and *that* needs to be fixed. This is reverting
1846         "Remember to ref g_object_new'd object" (bug #170972) below, which 
1847         causes more harm (leaking, hiding bugs elsewhere) than good.
1849         * app/app_procs.c lib/diagramdata.[ch] lib/libdia.def : get rid of
1850         diagramdata_destroy() which was only a wrapper to g_object_unref()
1852         * app/display.c(selection_changed) : don't g_strdup_printf() without
1853         g_free() later /or/ a C++ comment of me mostly denotes an error
1855         * app/diagram.c : diagram_parent_sort_cb make signature match GCompareFunc
1857         * lib/widget.c : dia_dynamic_menu_select_entry() cleanup. If it takes a
1858         const gchar* entry it must not eat memory, added a lot of g_free() and
1859         some const. Fixed a bunch - i.e. *all* - warnings.
1860         * lib/widget.h : removed unused/deleted functions
1862         * app/layer_dialog.c(dia_layer_widget_connectable_toggled) : trying to
1863         avoid 'Invalid write of size 4', no luck yet
1865 2005-05-19  Lars Clausen  <lars@raeder.dk>
1867         * objects/UML/class.c: 
1868         * objects/UML/class.h: 
1869         * objects/UML/class_dialog.c: Work on getting a proper mainpoint
1870         for uml class object.  #ifdef'd out right now.
1872 2005-05-18  Lars Clausen  <lars@raeder.dk>
1874         * objects/standard/line.c: Make line adjust its actual endpoints
1875         for autogap -- looks and feels better.
1877         * objects/standard/arc.c: 
1878         * lib/geometry.h: 
1879         * app/modify_tool.c: Patch from Grégoire Dooms
1880         <dooms@info.ucl.ac.be>:  First stab at autogap for arcs, and
1881         shifted arc angle movement.
1883 2005-05-16  Hans Breuer  <hans@breuer.org>
1885         * lib/widget.c : variable declarations need to be at the start of a block,
1886         at least as we are not using C++ or C99
1888         * plug-ins/python/pydia-property.c : implment the read part for Property
1889         arrays - aka. umlclass.properties["operations"], umlclass.properties["attributes"]
1890         They are working quite well as can be seen with export-object.py
1892         * plug-ins/python/codegen.py : prove it once more with the generation of C++
1893         or Python code from an UML Diagram. Simply save as .py or .cxx ...
1894         * plug-ins/python/Makefile.am : install it
1896 2005-05-16  Lars Clausen  <lars@raeder.dk>
1898         * app/pixmaps/{un}group.png: 
1899         * app/Makefile.am (ICON_PNG_PAIRS): 
1900         * app/menus.c (display_menu_items): 
1901         New icons for grou/ungroup finally added, closing bug #105519.
1903         * app/Makefile.am: Dependencies for pixmaps.
1905         * app/pixmaps/connectable.png: An icon that actually makes sense
1906         for switching connectability.
1908 2005-05-15  Hans Breuer  <hans@breuer.org>
1910         * lib/group.c object/UML/classicon.c : fixed leftovers of
1911         'Adding connectionpoint to _move_handle
1913         * lib/widgets.c : gtk+ *NEVER* eats strings, so gtk_something(widget, g_strdup())
1914         is *ALWAYS* a memory leak. Plug some more.
1916         [
1917          In preparation to make UML operations/attributes/parameters setable by Python
1918          UML class became more StdProp conformant. A nice experience to be the first 
1919          to use the PROP_TYPE_DARRAY stuff about four years after it was written ;-)  
1920         ]
1921         * objects/UML/umlattribute.c objects/UML/umloperation.c 
1922           objects/UML/umlparameter.c objects/UML/umlformalparameter.c : (new files) 
1923         split from objects/UML/uml.c and made StdProp aware
1924         * objects/UML/class.c : finally make "attributes", "operations", "templates"
1925         <template parameters> first class StdProps citizens.
1926         (umlclass_load) : removed hand-written parsing for the above, it is all done
1927         by object_load_props() now. The old write code is still in place, so be very
1928         careful when changing something - at the moment load/save it is 100% compatible 
1929         as it needs to be.
1930         * objects/UML/uml.c : now just type registration here, as it is supposed to be
1931         * objects/UML/Makefile.am objects/makefile.msc : build the new files
1933         * lib/properties.h(PropDescCommonAreaExtra) : need a place to store the 
1934         in-record offsets
1935         * lib/prop_sdarray.c : made the DARRAY case work, SARRAY still untested
1936         (darray_prop_adjust_object_records) : don't loop forever
1937         (whole file) : use the new (working) way to get on the second level offsets.
1938         Also resolved some abbreviations, it is complicated enough without them ;)
1939         * lib/proplist.c : even complete list contents may be optional
1941 2005-05-15  Hans Breuer  <hans@breuer.org>
1943         * lib/bezier_conn.c(remove_handles) : don't try to remove 
1944         non-exisitng handles (patch from Radek Krahl, bug #302273)
1946 2005-05-15  Hans Breuer  <hans@breuer.org>
1948         * plug-ins/metapost/render_metapost.c : locale independent output
1949         (Radek Krahl, bug #301866)
1951 2005-05-12  Lars Clausen  <lars@raeder.dk>
1953         * shapes/Cisco/*.{shape,png}:
1954         * sheets/cisco*.sheet.in:
1955         Updated with color icons from Ian Redfern, closing bug #303889.
1956         Added automatic midpoints, not attempt at adjusting them.
1958 2005-05-11  Lars Clausen  <lars@raeder.dk>
1960         * many shapes:  Use mid of bounding box for midpoint, better than
1961         mid of connection points generally.
1963 2005-05-10  Lars Clausen  <lars@raeder.dk>
1965         * lib/widgets.c: Decided on one way for the ratio thing in arrow
1966         size selector:  Fixed ratio is on by default and keeps the sizes
1967         at the given ratio, but doesn't clamp them to be the same.  Fixes
1968         bug #302861.
1970         * lib/font.c: Fix for bug #303695: Allow more than one entry of
1971         each legacy name, thereby correctly encoding bold and italic of
1972         the three main fonts.  Also use | rather than || to combine slant
1973         and weight, so matching works.  Had to remove binary search for
1974         new font name, but the list is short enough it's not a problem.
1976 2005-05-09  Lars Clausen  <lars@raeder.dk>
1978         * lib/autoroute.c (autoroute_layout_orthconn): Remove debugging info.
1980 2005-05-08  Hans Breuer  <hans@breuer.org>
1982         * objects/UML/class.c : Reverted to have no center point.
1983         At first it looked as if there was only the bug to not increase
1984         class.h:UMLCLASS_CONNECTIONPOINTS. But the UMLClass has 
1985         potentially much more dynamic connection points (to the left
1986         and right of every attribute/operation). Now simply adding one
1987         between see static and dynamic will screw up any existing diagram
1988         which makes use of the dynamic connection points. The would all
1989         be connected with an off-by-one error. I have no idea how to
1990         code around that. But breaking backward compatibility is no 
1991         option here. Does not completely fix bug #303301 ...
1992         
1993         * lib/widget.c(dia_font_selector_set_font): actually set the options 
1994         menu state. So we are not any longer resetting the font style on Apply.
1995         Use "UML - Class" dialog as stress text example.
1997         * app/command.c : some people insist to close diagrams already
1998         closed using tear-off menus. Maybe we should add a dialog 
1999         "Do you want to call Dr. Watson now?". If there is no diagram
2000         to close anymore just do nothing, fixes bug #303221
2001         * app/display.c(ddisplay_close) : use g_return_if_fail(ddisp != NULL);
2002         Calling this with no display to close is a pathological case.
2004         * app/diagram.[hc] : moved object.h and other DiaObject stuff
2005         to the implementation in preparation of Big Things(tm)
2007         * app/interface.c : less warnings and make it compile. strncmp()
2008         does not take a char**, neither does gdk_pixbuf_new_from_inline().
2010         * objects/makefile.msc plug-ins/makefile.msc : less output
2012 2005-05-08  Lars Clausen  <lars@raeder.dk>
2014         * lib/orth_conn.c (orthconn_init): The right place to set the
2015         default autorouting value.  Fixes bug #303291.
2017         * app/display.c (ddisplay_close): Patch from Radek Krahl
2018         (ptasz3k@o2.pl):  Fix crash when using from detached menu
2019         (#303221)
2020         
2021 2005-05-07  Lars Clausen  <lars@raeder.dk>
2023         * lib/orth_conn.c (orthconn_load): Autorouting should default to
2024         off in diagrams that don't have it explicitly.  All diagrams
2025         should be explicit about it.
2027 2005-05-06  Hans Breuer  <hans@breuer.org>
2029         * app/samples/Self/*.dia : some UML diagrams describing Dia's
2030         inner working (or it's future;)
2032 2005-04-26  Lars Clausen  <lars@raeder.dk>
2034         * app/connectionpoint_ops.c (connectionpoint_draw): Temporary
2035         change to display of mainpoint to be easier to debug autogenerated
2036         ones. 
2038 2005-04-23  Hans Breuer  <hans@breuer.org>
2040         * plug-ins/python/diamodule.c plug-ins/python/pydia-object.h
2041           plug-ins/python/pydia-properties.h : use lib/ prefix for
2042         Dia internal headers with too common names (fixes bug #173061)
2044         * app/display.c : stop special casing the first display of
2045         a diagram. Every display now has it's own refernce. The initial
2046         reference gets dropped when there is no display anymore. See
2047         diagram_remove_ddisplay(). Fixes bug #300744.
2049         * app/diapsft2renderer.c : locale independent output
2050         (Radek Krahl, bug #300847)
2051         * app/paginate_psprint.c :  fixing use of setlocale() calls
2052         (Radek Krahl, bug #300886)
2053         * plug-ins/shape/shape-export.c : fixing use of setlocale() calls
2054         (Radek Krahl, bug #300889)
2056         * objects/UML/class.c : fix another crash with the line 
2057         wrapping code (Gabor Simon, bug #160865)
2059         * plug-ins/cairo/diacairo.c : image rendering had an endianess 
2060         issue (or is this working around a libpixman bug?;)
2062 2005-04-21  Lars Clausen  <lars@raeder.dk>
2064         * lib/polyshape.c (polyshape_update_data): Fixed numpoint off-by-one.
2066         * shapes/**/*.shape: All shapes now have midpoints.
2068 2005-04-20  Lars Clausen  <lars@raeder.dk>
2070         * lib/orth_conn.c (orthconn_update_data): Patch from ptasz3k@o2.pl
2071         (Radek Krahl): Make sure there's enough handles for the line.
2072         Fixes bug #173031.
2074         * objects/UML/node.c (node_draw): Better drawing method avoids
2075         garbage after moving.  Fixes bug #301032.
2077 2005-04-17  Hans Breuer  <hans@breuer.org>
2079         * plug-ins/cairo/diacairo.c : again adapt to Cairo API 
2080         changes (whould compile with current cvs and 0.(3|4).0
2082 2005-04-11  Lars Clausen  <lars@raeder.dk>
2084         * xmldocs.make (all): Fix to put installed docs in right place
2085         under disable-gnome.
2087         * doc/en/Makefile.am: Use xml_files var for xml files, EXTRA_DIST
2088         only for dia.dbk.
2090         * app/commands.c (help_manual_callback): Patch from p@kapcoweb.com
2091         (Leonardo Boshell): Use standard gnome help if called with Gnome.
2093         * app/diapsrenderer.c: Patch from ptasz3k@o2.pl (Radek Krahl): Fix
2094         locale issues for eps output.  Fixes bug #173135.
2096 2005-04-10  Hans Breuer  <hans@breuer.org>
2098         * plug-ins/cairo/diacairo.c : adapt to Cairo PNG API 
2099         changes (somewhat broken)
2100         
2101         * plug-ins/pstricks/render_pstricks.c : still C89 ...
2102         * objects/custom/shape_info.c : ... but with prototypes
2103         
2104 2005-04-07  Lars Clausen  <lars@raeder.dk>
2106         * lib/dia_xml.c: 
2107         * plug-ins/svg/render_svg.c: 
2108         * lib/diasvgrenderer.c: Patches from ptasz3k@o2.pl (Radek Krahl):
2109         Make decimal separators be correct in save file formats
2110         (non-localized).  Fixes bugs #172529 and 172531.
2112 2005-04-06  Lars Clausen  <lars@raeder.dk>
2114         * app/create_object.c (create_object_button_release): 
2115         * app/modify_tool.c (modify_button_release): Correct activations
2116         of text edits.
2118 2005-04-05  Simon KÃ¥gström  <ska@bth.se>
2120         * app/app_procs.c: the --show-layers option can now handle numeric
2121         ranges of layers.
2123 2005-04-05  Lars Clausen  <lars@raeder.dk>
2125         * lib/diagdkrenderer.c (draw_string): Patch from tomkast@yahoo.com
2126         (Tom Kast): Avoid blockiness caused by bad updates.
2128 2005-04-03  Lars Clausen  <lars@raeder.dk>
2130         * lib/polyshape.c: 
2131         * lib/beziershape.c: Main points.  A crude solution, having the
2132         center in the middle of the bb.  Shows a bug in the distance_from
2133         code for polyshape when a side is horizontal.
2135 2005-04-02  Lars Clausen  <lars@raeder.dk>
2137         * plug-ins/pstricks/render_pstricks.c: 
2138         * plug-ins/xfig/xfig-export.c: Patch from Radek
2139         Krahl <ptasz3k@o2.pl>: Fix decimal point problems. Fixes bugs 
2141 2005-04-02  Hans Breuer  <hans@breuer.org>
2143         * lib/dia_image.c(dia_image_filename) : return the path 
2144         again. (bug #172416, Radek Krahl)
2145         
2146 2005-04-01  Steve Murphy  <murf@e-tools.com>
2148         * configure.in: Added "rw" to ALL_LINGUAS.
2150 2005-03-31  Lars Clausen  <lars@raeder.dk>
2152         * lib/neworth_conn.c (neworthconn_update_data): Handle autogap.
2154         * lib/orth_conn.c (orthconn_update_data): Handle autogap while not
2155         autorouting.  
2157         * objects/network/basestation.c: Main points.
2159 2005-03-27  Hans Breuer  <hans@breuer.org>
2161         * app/Makefile.am : removed some pixmap/*.xpm from EXTRA_DIST
2162         * app/pixmaps.h : removed arrow.xpm
2163         * lib/Makefile.am : added diamarshal
2164         * plug-ins/python/Makefile.am : added makefile.msc to EXTRA_DIST
2165         => makes 'make dist' pass and produce a useable package
2167         * po/*.po : 'noise' profuced by make dist
2169 2005-03-24  Lars Clausen  <lars@raeder.dk>
2171         * objects/flowchart/parallelogram.c (pgram_update_data): 
2172         * objects/flowchart/ellipse.c (ellipse_update_data): 
2173         * objects/flowchart/diamond.c (diamond_update_data): 
2174         * objects/flowchart/box.c (box_update_data): Main points.
2176         * objects/custom/custom_object.c (custom_create): 
2177         * objects/custom/shape_info.h: 
2178         * shapes/Assorted/square.shape: 
2179         * objects/custom/shape_info.c (load_shape_info): 
2180         * doc/shape.dtd: Added main point support to shapes, and an
2181         example of how to use it.
2183 2005-03-21  Lars Clausen  <lars@raeder.dk>
2185         * lib/autoroute.c (autoroute_layout_orthconn): Remember to
2186         unnormalize from same point as you normalize, or else!
2188 2005-03-20  Lars Clausen  <lars@raeder.dk>
2190         * app/app_procs.c (do_convert): Patch from crux@gorodmasterov.com:
2191         Remember to ref g_object_new'd object.
2193 2005-03-19  Hans Breuer  <hans@breuer.org>
2195         * plug-ins/xslt/xslt.c : don't crash if both places ($SHARE, $HOME)
2196         have configurations, fixes bug #170962
2198         * objects/UML/state.c : ("UML - State")::type is PROP_FLAG_OPTIONAL,
2199         or better not used any longer. Fixes bug #169142.
2201         * lib/element.c(element_update_connections_rectangle): don't initialize 
2202         the eighth point twice but instead the nineth once
2204         * objects/standard/bezier.c : no C++ comments *please*
2206         * lib/plug-ins.h : increment DIA_PLUGIN_API_VERSION
2208         * lib/dia_image.[ch] : dia_image_filename() returns a string not to be freed ...
2209         * plug-ins/python/pydia-image.c : ... so, don't do it!
2211         * lib/dia_svg.c : refactor color parsing and support the "rgb(127,255,0)" form,
2212         also named colors via pango_color_parse()
2214         * lib/prop_text.c : don't try to g_strdelimit(NULL), fixes bug #169367
2216         * lib/libdia.def : updated externals
2218         * app/object_ops.c : still not C99 everywhere
2220 2005-03-19  Hans Breuer  <hans@breuer.org>
2222         * lib/autoroute.c : at least it should compile ;)
2223         
2224 2005-03-19  Lars Clausen  <lars@raeder.dk>
2226         * lib/autoroute.c: Orthconns now do autogap.
2228 2005-03-17  Lars Clausen  <lars@raeder.dk>
2230         * app/authors.h: Added Gregoire Dooms for gap stuff.
2232         * objects/standard/polyline.c: Patch from Grégoire Dooms
2233         <dooms@info.ucl.ac.be>: Autogap and absolute gap for polyline.
2234         
2235         * objects/standard/bezier.c: Patch from Grégoire Dooms
2236         <dooms@info.ucl.ac.be>: Fixes two bugs.  Also autogap no longer a
2237         property. 
2238         
2240         * objects/UML/state_term.c: 
2241         * objects/UML/large_package.c: 
2242         * objects/UML/node.c: 
2243         * objects/UML/object.c: 
2244         * objects/UML/small_package.c: 
2245         * objects/UML/state.c: 
2246         * objects/UML/usecase.c: 
2247         * objects/UML/note.c: 
2248         * objects/UML/actor.c: 
2249         * objects/UML/classicon.c: 
2250         * objects/UML/component.c: 
2251         * objects/Misc/analog_clock.c: 
2252         * objects/Jackson/requirement.c: 
2253         * objects/Istar/goal.c: 
2254         * objects/Istar/actor.c: 
2255         * objects/FS/function.c: 
2256         * object/standard/box.c:
2257         * objects/ER/entity.c: 
2258         * objects/ER/relationship.c: 
2259         * objects/ER/attribute.c: Main points added.   Distance_from fixed
2260         in attribute, broken in relationship, I* goal, Jackson
2261         requirement, analog_clock, all non-rectangular UML elements, 
2263         * lib/libdia.def: 
2264         * lib/element.[ch]: New method to help update connection points.
2266         * app/menus.c: Change Help/Manual to Help/Contents to follow
2267         standard.
2268         
2269         * objects/standard/line.c:
2270         * lib/geometry.[ch]: 
2271         * objects/standard/bezier.c: Patch from Grégoire Dooms
2272         <dooms@info.ucl.ac.be>: Add absolute gap and autogap for line and
2273         bezier objects.   Autogap nowchanged to be a function of the
2274         connpoints.
2276         * lib/libdia.def: 
2277         * lib/connectionpoint.[ch]: New function to ask if a connpoint has the
2278         autogap flag.
2280         * app/connectionpoint_ops.c (connectionpoint_draw): Don't draw
2281         CP_FLAG_ANYPLACE connpoints.
2283 2005-03-16  Lars Clausen  <lars@raeder.dk>
2285         * app/interface.c (create_tools): Removed debug printf.
2287 2005-03-15  Lars Clausen  <lars@raeder.dk>
2289         * lib/widgets.[ch]: Constification.
2291         * app/interface.c: Work on using gdk-pixbuf-csource'd data, not
2292         working yet.
2294         * objects/standard/ellipse.c: Use CP_FLAG_MAIN for central CP.
2296         * lib/connectionpoint.h: Flags for connection points.
2298         * app/create_object.c (create_object_motion): 
2299         * app/modify_tool.c (modify_motion): Minor refactoring.
2301         * app/object_ops.c (object_find_connectpoint_display): Extend with
2302         finding connpoints that cover entire objects.
2304         * app/layer_dialog.c (dia_layer_widget_init): Get rid of warnings.
2306         * objects/custom/custom_object.c (custom_setup_properties): Avoid
2307         uninitialized use.
2309 2005-03-13  Hans Breuer  <hans@breuer.org>
2311         * plug-ins/svg/svg-import.c : handle the <circle/> tag as well
2313 2005-03-13  Hans Breuer  <hans@breuer.org>
2315         * lib/dia_svg.[hc] objects/custom/shape_info.[hc] plug-ins/svg/svg-import.c :
2316         s/DiaSvgGraphicStyle/DiaSvgStyle/, added and use convenience functions 
2317         dia_svg_style_copy(), dia_svg_style_init()
2319         * objects/custom/shape_info.c : use dia_svg_parse_path() from lib/ (it got
2320         moved out of this)
2322         * lib/dia_svg.c(dia_svg_parse_path) : also handle style properties which are
2323         not wrapped in the style attribute
2325         * plug-ins/svg/svg-import.c : implement nested group handling and style
2326         'style inheritance'. Still no transformations, no <image/>, no <style/> 
2327         <defs/>...
2329         * plug-ins/svg/svg-import.c(import_svg) : use message_warning instead of g_warning,
2330         the latter is for programmers.
2331         Also be more tolerant if the document root namespace is not 'svg'. If the svg 
2332         namespace is defined in the file search for the top node including svg. This
2333         allows us to re-read the svg part of our own shape format.
2335         * lib/libdia.def : there is no give_focus_to_object
2336         * app/textedit.c : still no C99,  aka. error C2275: 'Focus' : illegal use of this 
2337         type as an expression
2339         * lib/geometry. c : use G_IMPLEMENT_INLINES
2340         * lib/libdia.def : export point_get_perp (used by xfig plug-in)
2342         * app/textedit.c(textedit_end_edit) : don't crash if the display is already
2343         gone when trying to remove the focus
2345         * plug-ins/cairo/diacairo.c : CAIRO_HAS_WIN32_SURFACE does not any longer mean
2346         it has *my* Cairo Win32 Backend. [The official one isn't useful for the use
2347         case of this plug-in, i.e. producing output files]
2349 2005-03-13  Lars Clausen  <lars@raeder.dk>
2351         * lib/Makefile.am (BUILT_SOURCES): 
2352         * app/Makefile.am (BUILT_SOURCES): Use the Right Way[tm] to force
2353         the building of the icons header files.
2354         * app/dia-lib-icons.h: Out of CVS now that it's correctly generated.
2356 2005-03-13  Hans Breuer  <hans@breuer.org>
2358         * configure.in : require Cairo 0.3.0
2359           plug-ins/cairo/diacairo.c : changed to match ;-)
2361         * app/app_procs.c() : new function dump_dependencies()
2362         which gets called by: dia --version --verbose
2363         and may help to track version dependent problems in
2364         our dependencies
2366         * lib/font.c : reverted to previous version cause using
2367         not implemented Pango API did not improve the issue.
2368         See: http://bugzilla.gnome.org/show_bug.cgi?id=162034
2369         for more information.
2371         * lib/dialinechooser.c : a little shrinking of the 
2372         initial size (to work around line wrappjing the right 
2373         arrow control)
2375 2005-03-11  Lars Clausen  <lars@raeder.dk>
2377         * app/textedit.c: Concentrate start/end editing in single functions.
2379 2005-03-10  Lars Clausen  <lars@raeder.dk>
2381         * lib/text.h: 
2382         * lib/object.h: Added new object function to allow the object to
2383         be notified when its text is being edited.
2385         * lib/libdia.def: 
2386         * app/modify_tool.c: 
2387         * app/commands.c: 
2388         * app/textedit.c: 
2389         * lib/focus.c: Remove sideeffects from focus objects, add getter
2390         for focus->obj.
2392 2005-03-09  Lars Clausen  <lars@raeder.dk>
2394         * lib/Makefile.am (dia-lib-icons.h): 
2395         * app/Makefile.am: Minor cleanup.
2397 2005-03-06  Hans Breuer  <hans@breuer.org>
2399         * app/app_procs.c : avoid "assignment within conditional expression"
2400         and handle -L for the GOption case as well.
2402         * lib/widget.c : strchr() does not return -1 on not found but NULL;
2403         avoids widgets.c(307) : error C4047: '!=' : 'char *' differs in levels of 
2404         indirection from 'const int '
2406         * lib/diasvgenderer.c(draw_arc|fill_arc) : finally correct sweep and 
2407         large_arc, thus produce correct arc output (like diasvg.py does;),
2408         fixes bug #144401
2410         * lib/dia_svg.[hc](dia_svg_parse_path) : new function copied and adapted 
2411         from objects/custom/shape_info.c to be shared with object/custom and
2412         plug-in/svg -> finally the C based svg-import reads pathes again.
2413         Added arc parsing while I was there, which fixes bug #169191
2414         * objects/custom/shape_info.c(parse_path) : 
2415         * plug-ins/svg/svg-import : reuse above function
2416         Also fix the "root element was 'svg' -- expecting 'svg'" bug #108502.
2417         But in general this does only support a small subset of what is 
2418         possible in SVG.
2420 2005-03-06  Lars Clausen  <lars@raeder.dk>
2422         * objects/UML/association.c: Patch from Dave Klotzbach applied:
2423         Add visibility to association arrow.  Fixes bug #157012.
2425         * app/grid.c: Patch from Lawrence Withers fixes grid messiness,
2426         closing bug #161040.
2428         * app/layer_dialog.c (create_button_box): Use stock icons instead
2429         of homemade onces.  Gets us rid of four more XPMs.
2431 2005-03-05  Sampo Kellomaki <sampo@iki.fi>
2433         * app/app_procs.c: Implemented --show-layers=LAYER,LAYER,... option
2434         This option permits command line control of which layers are visible.
2435         Useful when automatically exporting multiple versions of the same
2436         diagram, e.g. slides with overlays. Added-n switch parsing without POPT.
2437       * app/app_procs.h: moved prototype of do_convert() to app/app_procs.c
2438         and made it static since its only used in that file.
2439         * app/authors.h: added myself
2440         * doc/en/dia.1: documented the switch
2441         * doc/en/usage-layers.xml: ditto
2442         
2443 2005-03-05  Alan Horkan <horkana@tcd.ie>
2445         * app/interface.c Change Horizontal scroll policy to NEVER for sheets
2446         this restores how Dia behaved before the GTK2 port and seems to help 
2447         allow the toolbox to be more easily resized.  Bug #108891.
2449 2005-03-05  Lars Clausen  <lars@raeder.dk>
2451         * Civil/civil_motor.shape:
2452         * Civil/civil_rotor.shape:
2453         * Logic/and.shape:
2454         * Logic/buffer.shape:
2455         * Logic/connector.shape:
2456         * Logic/inverter.shape:
2457         * Logic/nand.shape:
2458         * Logic/nor.shape:
2459         * Logic/not.shape:
2460         * Logic/or.shape:
2461         * Logic/xor.shape:
2462         * shapes/Assorted/arrow-left-up.shape: 
2463         * shapes/Assorted/heptagon.shape: 
2464         * shapes/Assorted/star5.shape: 
2465         * shapes/Assorted/trapezoid.shape: 
2466         * shapes/Assorted/triangle-rightangle.shape: Fixed bad use of
2467         defaults, see bug #169143.
2469         * sheets/Assorted.sheet.in: Fixed typo patch applied, bug #169114.
2471         * configure.in: 
2472         * doc/en/Makefile.am: Finally figured out the right way to ask for
2473         the manpage xslt.  Closes bug #144539.
2475 2005-03-01  Lars Clausen  <lars@raeder.dk>
2477         * lib/Makefile.am (nodist_include_HEADERS): 
2478         * app/Makefile.am: Correctly generate these files from PNGs with
2479         automake.
2481         * lib/widgets.h: 
2482         * lib/libdia.def:
2483         * lib/widgets.c: Refactor toggle button factory to allow inline
2484         data.
2486         * lib/pixmaps/Makefile.am: Unify lib pixmaps.
2488         * app/makefile.msc (ICON_PNG_PAIRS): 
2489         * app/dia-app-icons.h: Updated with more icons.
2491         * lib/Makefile.am: 
2492         * app/Makefile.am: Use gdk_pixbuf_csource to create inline data
2493         from pngs.
2495         * app/interface.c (create_display_shell): 
2496         * app/layer_dialog.c (dia_layer_widget_init): 
2497         * lib/dia_image.c (dia_image_get_broken): Use inlined data
2498         generated from png.
2500         * app/display.c (ddisplay_close): Removed unused includes.
2502 2005-03-01  Lars Clausen  <lars@raeder.dk>
2504         * app/sheets.c (create_object_pixmap): Create a placeholder image
2505         for when the real image is missing.  Better than crashing:)
2506         Closes bug #166786.
2508 2005-02-25  Hans Breuer  <hans@breuer.org>
2510         * app/app_procs.c : don't requets to open a default display with
2511         g_option_context_add_group (crux@gorodmasterov.com, bug #168523)
2513 2005-02-22  Lars Clausen  <lars@raeder.dk>
2515         * plug-ins/gprint/diagnomeprint.c (export_data): GNOME, not Gome.
2516         Fixes bug #168125.
2518 2005-02-19  Lars Clausen  <lars@raeder.dk>
2520         * app/menus.c (display_menu_items): Applied patch from bug #94019:
2521         Menu cleanup and addition of icons.  Also a few additional stock
2522         icons. 
2524         * app/layer_dialog.c (create_layer_dialog): Bug #159598: Clean up
2525         the layers dialog.
2527 2005-02-14  Lars Clausen  <lars@raeder.dk>
2529         * INSTALL (ftp): Fixed Pango release typo (bug #153007)
2531 2005-02-13  Lars Clausen  <lars@raeder.dk>
2533         * lib/font.c: First stab at using Gtk 2.4 functions for fixing
2534         width.  Seems to work.  Once tested some more, needs old code
2535         removed. 
2537         * lib/widgets.c (dia_font_selector_create_string_item): Avoid
2538         warning by escaping & properly.
2540 2005-02-06  Lars Clausen  <lars@raeder.dk>
2542         * app/filedlg.c (file_export_callback): Set correct extension as
2543         soon every time the dialog is shown.  Fixes bug #162535.
2545         * app/display.c (ddisplay_set_origo): Use more standard
2546         transformations.
2548         * app/modify_tool.c (modify_motion): 
2549         * app/create_object.c (create_object_motion): Put coordinates of
2550         handle/object in status bar while moving. Fixes bug #163164.
2552 2005-02-03  Lars Clausen  <lars@raeder.dk>
2554         * lib/.cvsignore: Added generated files diamarshal.[ch]
2556 2005-02-02  Lars Clausen  <lars@raeder.dk>
2558         * configure.in: Add GLIB_GENMARSHAL def as suggested in
2559         http://ignore-your.tv/software/libgtcpsocket/docs/client-subclassing.html.
2560         Now compiles on Linux.
2562 2005-02-01  Lars Clausen  <lars@raeder.dk>
2564         * app/sheets.c (sheet_object_mod_get_type_string): We don't really
2565         need to translate the empty string.  Especially not after
2566         g_assert_not_reached().  Fixes bug #165966.
2568 2005-01-07  Tim Olsen  <tolsen@alum.mit.edu>
2570         * objects/UML/activity.c : add fill- and line-colour properties
2571         [applied by Hans Breuer, fixes bug #163260]
2573 2004-01-28  Hans Breuer  <hans@breuer.org>
2575         * doc/en/*.xml doc/en/dia.dbk app/authors.h : documentation
2576         update provided by Alan Horkan (fixes bug #159592)
2578 2004-01-28  Hans Breuer  <hans@breuer.org>
2580         [Extented version for UML to C++ conversion by Dave Klotzbach, bug #155255]
2581         * plug-ins/xslt/dia-uml2cpp.xsl : (new file) ... handles associataions,
2582         generalization, dependancies, parameterized classes ...
2583         * plug-ins/xslt/styleshetts.xml : refernce it
2584         * plug-ins/xslt/dia-uml.xsl : handle more UML types uesd above
2586 2004-01-28  Hans Breuer  <hans@breuer.org>
2588         * objects/UML/transition.c : fill out the extra_spacing struct 
2589         in the OrtConn member, in order to avoid artifacts when draggin 
2590         the transition. (patch by Peter Allin, bug #144956)
2592 2004-01-15  Hans Breuer  <hans@breuer.org>
2594         * plug-ins/cairo/diacairo.c : initialized the renderers default dash_length
2595         to something differnt than 0. Apparently there are case where Dia misses
2596         to appropriately set it before requesting a dashed line (simple line with
2597         arrow as described in bug #151716)
2599         * lib/dia_dirs.c : special casing for drive letters which I broke with
2600         the previous change
2602 2005-01-13  Hans Breuer  <hans@breuer.org>
2604         * app/interface.c(create_sheet_page) : remved dead long time code
2606         * lib/propdialogs.c : removed pdtpp_is_visible_no_standard() prototype,
2607         it is availbale via header - which is the better style anyway
2609 2004-12-31  Hans Breuer  <hans@breuer.org>
2611         * lib/dia_dirs.c(dia_get_canonical_path) : complete
2612         rewrite to handle something like /mnt/some/where/../else
2613         too. Workaround for bug #162637.
2614         * app/filedlg.c : call gtk_file_chooser_set_current_name()
2615         to workaround gtk_file_chooser_set_filename() not setting
2616         it if the file does not exist
2618         * sheets/Jackson.sheet.in app/menus.c : fixed typos
2619         (Frank Arnold, bug #161676)
2621 2004-12-31  Steffen Macke <sdteffen@gmail.com>
2623         * doc/pl/*.xml: Added XML prolog
2624         * makefile.msc: Added libxslt, fixed libxml, libart
2626 2004-10-29  Alexander Shopov  <ash@contact.bg>
2628         * configure.in (ALL_LINGUAS): Added "bg" (Bulgarian)
2630 2004-12-29  Lars Clausen  <lars@raeder.dk>
2632         * configure.in: Make gnomeprint be truly off by default (typo) and
2633         show optional compilation correctly.
2634         * plug-ins/gprint/Makefile.am: Exclude gnomeprint if not optioned in.
2636 2004-12-22  Hans Breuer  <hans@breuer.org>
2638         * lib/widgets.c : destroy handlers can be called more than once, 
2639         see http://developer.gnome.org/doc/API/2.0/gtk/gtk-changes-2-0.html
2641         * app/app_procs.c : #ifdef GLIB(2.6.0) but GTK(2.4.x)
2642         
2643         * app/display.c : temporary debug code showing the
2644         timing the rendering
2646         * app/dialibartrenderer.c(draw_string) : removed dead
2647         code loading and leaking font and face
2649 2004-12-15  Hans Breuer  <hans@breuer.org>
2651         * app/display.c : actually use the selction-changed signal for something
2652         useful. Show selections representation on statusbar.
2653         * lib/object.h lib/prop_text.c lib/libdia.def : provide objet_get_displayname() 
2654         * app/diagram_tree.c : use new function (as in app/display.c) and only
2655         poke into property internals at one place
2656         * app/diagram.c : use g_signal_handlers_block_by_func to avoid has-no-handler-
2657         complains
2659 2004-12-12  Hans Breuer  <hans@breuer.org>
2661         * lib/libdia.def app/dia.def : updated externals
2663         * objects/custom/custom_object.c : custom_destroy is called per object. 
2664         It _must not_ destroy class stuff (ShapeInfo) cause it does not hold a 
2665         reference to it. Fixes e.g. bug #158288, #160550, ...
2667         * objects/UML/association.c(association_draw) : completed porting to
2668         draw_polyline_with_arrows()
2669         (association_update_data_end) : fixed typo in point compare
2670         (association_update_data) : for name placement take degenerated 
2671         segements into account. Together this fixes bug #143891
2673 2004-12-11  Hans Breuer  <hans@breuer.org>
2675         * lib/widgets.c(set_size_sensitivity) : revert inverted
2676         logic for arrorw size selections, fixes bug #160527
2678 2004-12-11  Hans Breuer  <hans@breuer.org>
2680         * lib/widgets.c(dia_font_selector_set_font) : initialize
2681         the font style widget, too. Gets rid of empty font
2682         style and thus default broken font style, e.g. UML::class_name
2684         * lib/widgets.c(dia_color_selector_more_callback) : fill
2685         the color palette from dynamic menu entries and also
2686         preselect the current color to the last select entry
2687         
2688         * plug-ins/python/pydia-diagramdata.c : hold a reference
2689         to the underlying GObject
2690         
2691         * app/Makefile.am app/diagrid.h : new file containing the 
2692         grid 'class' moved from DiagramData to Diagram. 
2693         Also moved pagebreak_color and guides cause they are only 
2694         used for visual appearance not 'data'.
2695         * lib/diagramdata.[ch] app/diagram.h app/dia-props.c app/grid.c
2696           app/load_save.c plug-ins/python/pydia-diagramdata.c : reflect 
2697         the above change
2699         * lib/diagramdata.[ch] app/app_procs.c app/diagram.c 
2700           lib/libdia.def : get rid of new_diagram_data() 
2701         Diagram _is_ DiagramData (and does not have one any longer,
2702         just a compatibility pointer)
2703         
2704         * lib/diarenderer.h : a small doc improvement
2706 2004-12-11  Hans Breuer  <hans@breuer.org>
2708         * objects/UML/class.c : line wrapping code buffer
2709         overrun fixed by Gabor Simon, bug #160865
2711 2004-12-11  Hans Breuer  <hans@breuer.org>
2713         * plug-ins/python/pydia-diagram.c : hold a reference
2714         to the diagram in PyDiaDiagram, avoids bug #159080
2715         [another way to avoid is to detroy the dialog by
2716         clsoing it. But now there is still a diagram to
2717         apply the changes to, even if it's thrwon away just
2718         afterwards]
2720 2004-12-10  Hans Breuer  <hans@breuer.org>
2722         * **/*.c : fixed a bunch of warnings, not only for -ansi
2723         (still too many of them, but -ansi works)
2724         lib/
2725         prop_geomtypes.h prop_geomtypes.c:306: warning: static 
2726         declaration for `fontsizeprop_reset_widget' follows non-static
2727         dia_dirs.c:196: warning: return discards qualifiers from 
2728         pointer target type
2730         objects/custom/
2731         shape_info.c:121: warning: static declaration for `parse_path' 
2732         follows non-static
2734         objects/SADT/
2735         arrow.c:228: warning: `draw_arrowhead' declared `static' but never defined
2736         arrow.c:244: warning: unused variable `i'
2737         arrow.c:245: warning: unused variable `p'
2738         arrow.c:246: warning: unused variable `zzr'
2739         
2740         object/Istar/*.c object/Jackson/*.c  object/KAOS/*.c : 
2741         finally removed c++ comments
2742         
2743         objects/Istar/goal.c : initialize connections::directions
2744         while I was there - helps autorouting
2746         * objects/KAOS/metaandorrel.c objects/Istar/link.c 
2747           objects/KAOS/metabinrel.c : removed struct _DiaImage hack
2748         (it would be quite simple to add image-from-memory support
2749         to lib/ if needed)
2751         * pydia-*.h : warning: no newline at end of file
2752         
2753         * plug-ins/gprint/diagnomeprint.c : allow to unregister
2754         and follow new unique name naming convention
2755         * plug-ins/gprint/diagnomeprintrenderer.c : no c++ comments
2756         here either
2758 2004-12-07  Hans Breuer  <hans@breuer.org>
2760         * objects/UML/message.c : better default for initial text placement
2761         a suggested in bug #154306, Henning Mersch
2762         * objects/UML/constraint.c : doing the same
2764         * app/filedlg.c : include persistence.h for persistence_get_integer
2765         * lib/libdia.def export it
2767 2004-12-05  Hans Breuer  <hans@breuer.org>
2769         * app/grid.c : respect dynamic grid during snap-to, fixes 
2770         bug #135124, Dmitriy Morozov. Added some additional magic
2771         to make the grid size more useable.
2773 2004-12-05  Hans Breuer  <hans@breuer.org>
2775         * app/app_procs.c : make it compile for the HAVE_POPT and
2776         G_LIB_CHECK_VERSION(2,5,5) case, minor formating
2777         
2778         * lib/plug-ins.c : don't pass non exiting files to xmlDiaParseFile()
2779         * app/app_procs.c : only dia_pluginrc_write() and create_user_dirs()
2780         when interactive. Fixes bug #119329
2781           
2782         * plug-ins/cairo/diacairo.c : adapt to new type naming
2783         scheme (introduced by accident;-) for pixbuf-*
2784         * app/app_procs.c : reflect both type name changes
2786 2004-12-04  Hans Breuer  <hans@breuer.org>
2788         * objects/standard/image.c : fix the correct warning
2789         `image_file_name' might be used uninitialized
2790         
2791         * app/filedlg.c : near complete rewrite
2792         - removed 'related dialog', GtkOptionMenu, most global vars,
2793         also don't hide the dialog but let it go.
2794         - added: filter view by extension, hopefully working diagram
2795         referencing, GtkComboBox usage
2796         
2797         * plug-in/pixbuf/pixbuf.c : switched to dynamic generation
2798         of im/export filter entries. So the user interface reflects
2799         the dynamic nature of pixbuf loaders
2801         * lib/filter.[ch] : implement filter_unregister_*port
2802           lib/libdia.def : added new functions
2803           plug-ins/cgm/cgm.c plug-ins/dxf/dxf.c
2804           plug-ins/hpgl/hpgl.c plug-ins/metapost/metapost.c
2805           plug-ins/pstricks/pstricks.c plug-ins/svg/svg.c
2806           plug-ins/wpg/wpg.c plug-ins/xfig/xfig.c
2807           plug-ins/cairo/cairo.c plug-ins/pixbuf/pixbuf.c :
2808         use them in _plugin_unload () thus all these plug-ins
2809         can be loaded used and unloaded during Dia's runtime
2811 2004-12-04  Lars Clausen  <lars@raeder.dk>
2813         * lib/diagramdata.h: Access methods for units defined per diagram.
2815         * lib/font.c (dia_font_new_from_style): More proper object creation.
2817         * lib/properties.h: Refactored the PROP_STD_* macros to allow
2818         different options.
2820         * app/diagram.c (diagram_init): Force filename to be absolute
2821         path, easing the job for load/save.
2823 2004-12-03  Hans Breuer  <hans@breuer.org>
2825         * lib/libdia.def : removed dia_marshal_*, they are implemented as macros.
2826         added dia_font_set_height, dia_font_copy (note to self: don't try to
2827         maintain these from the *NIX side ;)
2829         * lib/widgets.h : removed DiaColorSelector::col, it is not maintained by
2830         the new color selection anymore
2831         * objects/UML/class_dialog.c : with the above change it would have been more 
2832         easy to fix the color loss bug #156996 which had nothing to do with 'a pointer
2833         problem' but only was an unfinished usage of dia_color_slector(get|set)_color
2835         *  objects/UML/class_dialog.c  objects/UML/class.[ch] : uml_apply_properties
2836         (used in object vtable) and make its prototype match
2838         * lib/widgets.c : made all the GtkTypeInfo 'static const'. I can't directly
2839         correlate any of these strange crashing bug with it, but assume bad things to 
2840         happen when one passes stack allocated stuff to gtk_type_unique()
2842         * lib/widgets.c(dia_font_selector_get_font) : don't access menuitem if it is
2843         not there. Fixes most of the warnings from bug #156996
2845         * lib/makefile.msc : rules to generate diamarshal.[ch]
2847 2004-11-29  Hans Breuer  <hans@breuer.org>
2849         * app/disp_callbacks.c : reenable so-called preedit
2850         as described in bug #158859, Etsushi Kato
2851         Also fixed some compiler warnings while there.
2852         
2853         * objects/standard/image.c(get_directory) : make
2854         the documentation match the implementation.
2855         (image_save) : don't write a leading slash on 
2856         relative filenames 
2858         * plug-ins/gprint/diagnomeprintrenderer.c :
2859         switched to gnome-print-pango usage
2860         
2861         * app/app_procs.c configure.in : although Dia
2862         is not threaded it appears as if we have to
2863         g_thread_init() to avoid crashing in some
2864         libraries which are thread enabled
2866         * lib/diamarshal.list lib/Makefile.am : start of
2867         using GSignal to clean up some object relations
2868         * lib/libdia.def : export marshallers
2869         * app/diagram.[ch] : emit signals when REMOVED,
2870         SELECTION_CHANGED
2871         * app/display.c : added a connection to 
2872         SELECTION_CHANGED to test the new signal stuff
2873         
2874         * app/diagram.c : fixed diagram_finalize while I
2875         was there.
2877 2004-11-28  Hans Breuer  <hans@breuer.org>
2879         * plug-ins/wmf/wmf.cpp(draw_string) : write the widechar version of 
2880         the text if conversion to current locale fails. [This is actually
2881         using code written four years ago;]
2882         * plug-ins/wmf/wmf_gdi.(h|cpp) : added TextOutW (no real implemantation)
2884         * objects/standard/image.c(image_load) : be more robust against 
2885         filenames which seem to be absolute
2887 2004-11-27  Hans Breuer  <hans@breuer.org>
2889         * app/filedlg.c(file_save_callback) : convert to
2890         filename encoding before passing to diagram_save()
2891         Fixes bug #158381, thanks to Robert Ã–gren
2893 2004-11-27  Hans Breuer  <hans@breuer.org>
2895         * lib/dialibartrenderer.c : sometimes its good to read
2896         compiler warnings. Not only define renderer_finalize
2897         but actually *use* it. Should plug a potential huge
2898         memory leak.
2900         * configure.in plug-ins/Makefile.am 
2901           plug-ins/gprint/Makefile.am : build the experimental
2902         gnomeprint plug-in on *NIX, too.
2903         * plug-ins/gprint/diagnomeprint.c : don't include
2904         specific (private) backend headers but instead select
2905         the desired backend via config key setting
2907         * lib/diagdkrenderer.c : add 1 to size of filled arc 
2908         to be rendered by gdk. Fixes bug #150896.
2910         * plug-ins/gprint/diagnomeprint.c 
2911           plug-ins/gprint/diagnomeprintrenderer.c : added magic
2912         to better match page and dash sizes
2914 2004-11-27  Hans Breuer  <hans@breuer.org>
2916         * plug-ins/shape/shape-export.c : it's g_strdup_printf
2918 2004-11-27  Hans Breuer  <hans@breuer.org>
2920         * app/app_procs.c : mention eps-builtin aka. "using
2921         latin1", does not fix the eps-pango issues but #150571
2923 2004-11-27  Hans Breuer  <hans@breuer.org>
2925         * sheets/Cybernetics.sheet.in : changed encoding to 
2926         utf-8, patch from Takeshi AIHANA, fixes #149580
2928 2004-11-27  Hans Breuer  <hans@breuer.org>
2930         * objects/custom/custom_object.c : many existing shapes
2931         rely on a square default size, revert to it although
2932         it originally was by a typo. Fixes bug #148527.
2934 2004-11-27  Hans Breuer  <hans@breuer.org>
2936         * app/load_save.c(dia_cleanup_autosave) 
2937           app/diagram.c : don't use dia->filename if already 
2938         freed and dont use printf at all.
2940         * app/paginate_psprint.c : not only set the renderer::paper
2941         but also renderer::is_portrait. Should fix bug #142524
2943 2004-11-26  Hans Breuer  <hans@breuer.org>
2945         * dia.desktop.in : added Bug Buddy headers (as seen
2946         in planner). Hopefully the automatically filling of
2947         bugs is more meaningful by this.
2948         
2949         * objects/custom/custom_util.c objects/standard/image.c
2950           lib/plug-ins.c : getting rid of deprecated g_dirname,
2951         fixes some more memory bugs : AddrAddress 0x3586C010 is 24 
2952         bytes inside a block of size 44 free'd
2953         
2954         * lib/persistence.c(persistence_load_list) : don't
2955         leak string
2956         
2957         * lib/diaerror.[ch] : (new file) start of better error handling
2958         * lib/Makefile.am lib/makefile.msc lib/libdia.def: 
2959         added new files/funcs
2960         * lib/proplist.c lib/propinternals.h (prop_list_load) : 
2961         allow to propagate error to caller. Also set PXP_NOTSET
2962         to avoid applying unset properties, fixes bug #155255
2963         * lib/propobject.c lib/prop_sdarray.c : still spewing
2964         g_warnings but now with context information
2965         
2966         * app/filedlg.c : more absolute filenames where required
2967         and strip them where we need the filename only
2968         Also explicit DONT choose gnome-vfs backend cause its
2969         threading appears to crash Dia - at least in GNOME build,
2970         see bug #159558
2972 2004-11-26  Hans Breuer  <hans@breuer.org>
2974         * app/filedlg.c : don't use relative filenames for
2975         gtk_file_chooser_set_filename(), GtkFileChooserDialog is very
2976         pedantic about it.
2977         (export_set_extension) : if we don't have a filename don't
2978         use it in strrchr() to avoid crashing
2979         
2980 2004-11-23  Hans Breuer  <hans@breuer.org>
2982         * app/app_procs.c : fixed build for the GNOME case
2983         (let's rip out POPT and depend on glib-2.6, please ;-)
2985 2004-11-23  Hans Breuer  <hans@breuer.org>
2987         * app/app_procs.c : fixed typo which broke the
2988         build for HAVE_POPT case
2989         
2990 2004-11-21  Hans Breuer  <hans@breuer.org>
2992         * app/app_procs.c : some more #if-mess, but one day
2993         we should rely on GLib's 2.6 Option Parser alone
2994         
2995         * plug-ins/wmf/wmf.cpp : use SC() when scaling width
2996         and height for RoundRect() - otherwise size depends on offset,
2997         shorten the unique name
2998         
2999         * plug-ins/python/diamodule.c : provide a unique name
3000         for python filters as well
3002         * lib/dialibartrenderer.c : fix the drawing of Gdk based text
3003         by using the right colors (need black background cause we
3004         are tinitng it with the real color later)
3006         * lib/dia_dirs.c(dia_get_canonical_path) : use G_DIR_SEPARATOR_S
3007         instead of hardcoded slahes, improved portability 
3009         * app/paginate_gdiprint.cpp : use the right filter name to find wmf
3010         plug-in. Also added some more error reporting (e.g. no printer driver)
3012         * plug-ins/gprint/diagnomeprintrenderer.[hc] plug-ins/gprint/diagnomeprint.c
3013           plug-ins/makefile.msc : resurrection of the gnome print renderer. 
3014         Kinda works (alpha quality) for export but does not print yet. 
3015         With bug #158972 resolved this does even work on win32 :-)
3017 2004-11-07  Hans Breuer  <hans@breuer.org>
3019         * doc/diagram.dtd : <composite> can have <composite/>,
3020         <font/> has two 'optional' atributes 'style' and 'family',
3021         these are used to store new (since 0.91) font info.
3022         With this changes non of the issues in bug #147431 remains.
3024         * plug-ins/python/otypes.py : starting to implement an
3025         'create all known object' file as ne stress test source
3026         for the dtd and Dia in general.
3028 2004-11-06  Hans Breuer  <hans@breuer.org>
3030         * app/diapsrenderer.c : don't convert to locale but to 
3031         "LATIN1", fixes bug #146641
3033 2004-11-06  Hans Breuer  <hans@breuer.org>
3035         * app/diagram_tree.c : still no C99 everwhere ...
3036         * lib/libdia.def : update externals
3037         * plug-ins/pstricks/render_pstricks.c : #include <locale.h>
3039         * app/app_procs.[hc] : declare, use ...
3040            app/winmain.c : ... and implement dia_redirect_console().
3041         Even though newer Gtk version don't popup a console window
3042         anymore redirecting the error messages to a file in $TEMP appears
3043         to be much more reasonable than just ignoring it. Fixes bug #150777
3044         based on a patch from Steffen Macke
3046 2004-11-06  Hans Breuer  <hans@breuer.org>
3048         * plug-ins/wmf/wmf.cpp plug-ins/wmf/wmf_gdi.* : added/used
3049         RoundRect() for high level renderer api implementation thus
3050         fixing bug #138744 reported by Lars Clausen
3052 2004-11-06  Hans Breuer  <hans@breuer.org>
3054         * app/prefernces.c : applied patch to make showing the diagram 
3055         menubar the default (advanced users know how to switch it off)
3056         Fixes bug #150706, Steffen Macke
3058 2004-11-06  Hans Breuer  <hans@breuer.org>
3060         * app/commands.c app/commands.h : added view_fullscreen_callback()
3061           view_unfullscreen()
3062           app/menus.c : use it (/View/Fullscreen) thus fixing bug #94090
3063         * app/disp_callbacks.c : use view_unfullscreen() for GDK_Escape
3064         ALso modified to allow handling of unmodified keys again (aren't
3065         there plenty of bug reports for this?
3067 2004-11-06  Hans Breuer  <hans@breuer.org>
3069         * objects/UML/class_dialog.c : fixed casts for usage
3070         of dia_color_selector_set_color()
3071         
3072         * app/filedlg.c : pass a valid filenames to 
3073         gtk_file_chooser_set_filename(), if we don't have a name
3074         don't call it at all. Gets rid of "libgnomevfs-CRITICAL **: 
3075         file gnome-vfs-utils.c: line 749 (gnome_vfs_get_uri_from_local_path): 
3076         assertion `local_full_path[0] == '/'' failed"
3077         
3078 2004-11-06  Lars Clausen  <lars@raeder.dk>
3080         * app/properties.c (create_dialog): 
3081         * app/diagram_tree_window.h: 
3082         * app/diagram_tree.h (HIDDEN_TYPES_NAME): 
3083         * app/diagram_tree_menu_callbacks.c: 
3084         * app/diagram_tree_window.c: 
3085         * app/diagram_tree_menu.c: 
3086         * app/diagram_tree.c: Changed to use persistence instead of
3087         strange hacks in preferences.
3089         * lib/persistence.h:
3090         * lib/persistence.c (persistent_list_get_glist): Don't deref null
3091         pointer.  New function persistent_list_remove_all, and
3092         fixed persistent_list_remove to ... work!
3094 2004-11-05  Lars Clausen  <lars@raeder.dk>
3096         * app/paginate_psprint.c (diagram_print_ps): Call
3097         diagram_print_destroy on destroy rather than delete_event.  That
3098         way the gtk_widget_destroy() calls cleans up properly.  Fixes bug
3099         #154898. 
3101 2004-11-02  Lars Clausen  <lars@raeder.dk>
3103         * objects/UML/class.c (umlclass_load): Actually load the saved
3104         fonts and font sizes. Fixes bug #157016
3106         * configure.in: Require at least GTK+ 2.4.
3108         * app/filedlg.c: Changed to use 2.4 file dialog!  Finally,
3109         finally, finally.  Not quite bulletproof yet, and I need to figure
3110         out a minimum version of Gtk that doesn't spew warnings all over.
3112         * app/diagram.[ch]: diagram_set_filename with const filename.
3114         * app/sheets_dialog_callbacks.c
3115         (on_sheets_dialog_button_apply_clicked): Sheet menu now almost
3116         correctly recreated.  Still something fishy with the sheet menu in
3117         the dialog after adding a new sheet.  Probably the sheet name
3118         being stomped.
3120 2004-11-01  Lars Clausen  <lars@raeder.dk>
3122         * lib/widgets.[ch] (dia_dynamic_menu_reset): Harden against memory
3123         stmping.  Now requires g_free here and there.
3125         * app/preferences.[ch] (prefs_data): Got rid of hidden prefs value
3126         for remembering last sheet, better off as persistent string.  Must
3127         hunt down other things like that.
3129         * app/interface.c (create_sheets): Now remembers last sheet
3130         selected again. Fixes bug #157036.
3132 2004-11-01  Hans Breuer  <hans@breuer.org>
3134         * plug-ins(tex_escape_string) : fixed it [g_utf8_next_char
3135         will never become NULL but only point to the next char
3136         which might indeed be \0]
3137         Use tex_escape_string() to avoid writing invalid tex,
3138         fixes bug #112377
3140         * **/* : a bunch of changes caused by trying 'make distcheck'
3141         which still fails, see Bug #144527
3143 2004-10-31  Lars Clausen  <lars@raeder.dk>
3145         * plug-ins/pstricks/render_pstricks.c (export_pstricks): Avoid
3146         floating point numbers being printed with commas.  Fixes bug
3147         #156148.
3148         
3149         * app/interface.c (create_sheet_dropdown_menu): New function to
3150         create the sheet menu, and also allow recreation.  Still buggy and
3151         slightly prone to magic.
3153         * objects/UML/class_dialog.c
3154         (attributes_list_selection_changed_callback): Don't try to update
3155         the widgets after they're destroyed.  Fixes bug #156706 (I think).
3157         * lib/widgets.c (dia_unit_spinner_new): Avoid crash on NULL
3158         adjustement.  Fixes bug #154637
3160         * sheets/ER/Makefile.am (PIX): 
3161         * sheets/GRAFCET/Makefile.am (PIX): 
3162         * sheets/Jackson/Makefile.am (PIX): 
3163         * sheets/Istar/Makefile.am (PIX): 
3164         * sheets/KAOS/Makefile.am (PIX): Actually install PNG instead of
3165         XPM.  Why these have their pictures in sheets rather than shapes I
3166         don't know.  Fixes bug #152142.
3168 2004-10-31  Hans Breuer  <hans@breuer.org>
3170         * plug-ins/pixbuf/pixbuf.c : when running non interactive
3171         Dia won't call color_init() as it assumes no display. If
3172         we have one as tested ourselve we can as well color_init()
3173         to avoid g_warnings() and produce the right collors.
3174         Fixes bug #155495.
3175     
3176         * app/app-procs.c : try to be a little more helpful
3177         and correct with regard to the command line options.
3178         Renamed --export-to-format to --export-filter and some
3179         other string changes
3181 2004-10-31  Hans Breuer  <hans@breuer.org>
3183         * plug-ins/wmf/wmf_gdi.cpp plug-ins/wmf/wmf_gdi.h :
3184         added GetDeviceCaps() dummy implementation to make 
3185        'wmf' compile on Linux, too.
3187 2004-10-31  Hans Breuer  <hans@breuer.org>
3189         * plug-ins/wmf/wmf.cpp : patch from Robert Ã–gren <gtk@roboros.com>
3190         to finally fix the long lasting clipping issue, bug #85831
3191         Also fixed the line style issue for printing on XP and don't 
3192         miss to ReleaseDC()
3194         * plug-ins/wmf/wmf_gdi.[hc] : added ReleaseDC()
3196         * plug-ins/python/diasvg.py : filter illegal characters from <text/> section
3197         (e.g. &lt; instead of <), fixes bug #155697 (Duncan Palmer)
3199         * plug-ins/python/pydia-error.[hc] : improvede exception handling to transfer 
3200         some info from the console (soon gone on windoze) to message_error()
3201         * plug-ins/python/pydia-render.c plug-ins/python/diamodule.c : use it.
3202         Also some setlocale() hack to let Python behave as expected for LC_NUMERIC
3204         plug-ins/python/diasvg_import.py : re.compile() only once per expression
3205         and some more playing with scaling
3207         * plug-ins/python/makefile.msc : updated
3209 2004-10-30  Hans Breuer  <hans@breuer.org>
3211         * shapes/Civil/civil_arrow_right.shape : removed
3212         <aspectratio type="fixed" /> thus allowing to change
3213         width and height independently, fixes #154897 
3214         (Serge Robinson) by making it consistent with the
3215         up arrow
3217 2004-10-30  Hans Breuer  <hans@breuer.org>
3219         * plug-ins/xfig-xfig-export.c(hasArrow) : don't crash
3220         on arrow being NULL, fixes bug #143063
3222 2004-10-30  Hans Breuer  <hans@breuer.org>
3224         * lib/diagramdata.c app/diagram.c app/disp_callbacks.c
3225           plug-ins/python/pydia-diagram.c plug-ins/python/pydia-diagramdata.c :
3226         removed use of chached variable DiagramData::selected_count
3227         * lib/diagramdata.h : renamed to selected_count_private
3228         (kept for binary compatibility and sanity checks)
3229         * lib/diagramdata.c : more checks on a screwed up selection list
3231         * app/diagram.c(diagram_group_selected) : don't screw up the
3232         DiagramData::selected list, was assignment of parent_list_affected(),
3233         * lib/diagramdata.c (data_select, data_unselect) : protect against
3234         multiple selections of the same object and removement of a not selected
3235         object (apparently caused by the recently added group undo stuff)
3236         together with the above this finally fixes bug #153525
3238         * app/Makefile.am : fix ./autogen.sh ->
3239         app/Makefile.am:171: blank line following trailing backslash
3241         * app/commands.c(objects_group_callback,objects_ungroup_callback) :
3242         ddisplay_do_update_menu_sensitivity() here as well
3244         * configure.in : make the experimental state of the cairo plug-in
3245         more visible
3246         
3247         * app/dia-props.c(diagram_properties_update_sensitivity) : don't
3248         try to update anything if we can't find an active diagram
3249         Additionally set static dialog pointer to NULL by gtk_widget_destroyed
3250         
3251         * configure.in : another attempt to fix bug #156116. If there is
3252         anyone with autotools knowledge reading this - help appreciated ;-)
3254 2004-10-30  Hans Breuer  <hans@breuer.org>
3256         * objects/makefile.msc objects/UML/Makefile.am
3257           objects/UML/uml.c objects/UML/transition.c 
3258           objects/UML/pixmaps/transition.xpm sheets/uml.sheet.in : 
3259         Patch from Peter Allin adds statechart transitions to the UML sheet -
3260         bug #144956 - modified to not print("%s", NULL) which crashes on
3261         newer glib versions. Also added pixmap/transition.xpm to Makefile.am
3263 2004-10-30  Hans Breuer  <hans@breuer.org>
3265         * doc/sheet.dtd doc/diagram.dtd : the namespace does *not* 
3266         match the website anymore, i.e. sould remain unchanged. 
3267         See below and lib/dia_xml.h for the reasoning
3269         * lib/libdia.def : removed dia_color_selector_get_type
3271         * lib/dia_image.c(dia_image_load) : check for pixbuf warnings
3272         (like broken PNG) and g_warning if appropriate
3274         * app/interface.c : #include "message.h"
3276         * app/diaunitspinner.hc : replaced the superfluous #if-0-juggling,
3277         used #error "Moved to lib/widgets.[hc]" instead (IMO it would be
3278         better to just move diaunitspinner to lib/ instead of polluting
3279         widgets.[hc] even more ;)
3280         * app/makefile.msc lib/libdia.def : updated
3282         * app/filedlg.c : patch from gtk@roboros.com, fixes #156224
3283         * app/app_procs.c : patch from gtk@roboros.com, fixes #156088
3285         * config.h.win32 : #define HAVE_CAIRO to let the Cairo plug-in
3286         do something useful when compiled
3288         * plug-ins/cairo/diacairo.c : added 'PNG with alpha' rendering.
3289         Also some more #ifdefed backends usage.
3291 2004-10-10  Lars Clausen  <lars@raeder.dk>
3293         * lib/widgets.c: Better labels for color selector menu.
3295         * app/dia-props.c (diagram_properties_respond): 
3296         * app/preferences.c (prefs_get_value_from_widget): Don't assume
3297         that a dia color selector is of type DiaColorSelector:)
3299         * lib/widgets.[ch]: Color selector changed to dynamic menu.
3301         * lib/prop_attr.c (colorprop_set_from_widget): Don't assume
3302         DiaColorSelector. 
3304 2004-10-09  Lars Clausen  <lars@raeder.dk>
3306         * lib/diaarrowchooser.c (dia_arrow_preview_init): Slightly wider
3307         arrow preview to avoid long arrow heads flipping.
3309         * lib/arrows.[ch]: Support for getting from name to arrow type,
3310         and for listing all arrow names.
3311         
3312         * lib/widgets.[ch]: Changed arrow selector to use dynamic menu.
3314         * lib/libdia.def: Added new global functions.
3316         * lib/persistence.[ch]: Two of the persistent_list functions to
3317         return whether the item was found in the list.
3319         * app/interface.c (create_sheets): Use DiaDynamicMenu to handle
3320         the growing number of sheets.
3322         * lib/widgets.[ch]: Add DiaDynamicMenu as a generalization of the
3323         font menu.
3325 2004-10-05  Lars Clausen  <lars@raeder.dk>
3327         * objects/UML/association.c: Patch from Harvey Thompson
3328         <harveyandsu@yahoo.com>:  Better placement of association texts.
3330 2004-10-03  Lars Clausen  <lars@raeder.dk>
3332         * lib/widgets.c (dia_font_selector_add_menu_item): Make font menu
3333         use the fonts in question.  Can't set tooltips with the name since
3334         lib objects don't know the tool_tips thing, which is rather
3335         app-related.
3337 2004-09-19  Hans Breuer  <hans@breuer.org>
3339         * plug-ins/xslt/*.xsl : s/apply-templates match/apply-templates select/
3340         fixes bug #148278, carlosrp@idea.com.py (Carlos Ra�l Perasso)
3342 2004-09-19  Hans Breuer  <hans@breuer.org>
3344         * dia.desktop.in : string changes as proposed in bug #151822
3345         
3346         * lib/Makefile.am : remove -module from libdia_la_LDFLAGS,
3347         appearts not to be needed on Linux and breaks the build 
3348         on OSX. Fixes bug #152970
3349         
3350 2004-09-18  Lars Clausen  <lars@raeder.dk>
3352         * app/commands.c (view_show_all_callback): Add a bit of border
3353         around Ctrl-E'd diagram, for easier select and better view of edges.
3355 2004-09-19  Hans Breuer  <hans@breuer.org>
3357         * app/Makefile.am : trying to fix the fix from 2004-02-15
3358         Overwriting AM_LDFLAGS still gave a automake warning and it 
3359         also appeard to break linking against gtklibs in a differnt 
3360         prefix. Use dia_LDFLAGS instead.
3362         * plug-ins/svg/svg-import.c : initialize 'end' before usage
3363         patch from dcbw@redhat.com (Dan Williams), fixes bug #150548
3364         
3365         * lib/diarenderer.c : don't try to draw lines which are so much 
3366         degenerated that their point count became negative, fixes bug #148139
3367         
3368         * lib/font.c(layout_cache_equals) : don't crash on nonexisting 
3369         strings (NULL from g_strdup()) 
3371 2004-09-10  Steffen Macke <sdteffen@web.de>
3373         * lib/libdia.def: added color_new_rgb(), focus_previous(),focus_next(),
3374         give_focus(),give_focus_to_object(),remove_focus(),reset_foci()
3375         * app/create_object.c:
3376         * app/diaunitspinner.c:
3377         * app/disp_callbacks.c:
3378         * app/makefile.msc:
3379         * app/modify_tool.c:
3380         * lib/prop_geomtypes.c:
3381         * lib/prop_geomtypes.h: made compile with msvc
3383 2004-09-10  Lars Clausen  <lars@raeder.dk>
3385         * lib/widgets.c: Insulate conversion from outside API by adding
3386         internal function to set value.  Adjustment not appropriate for
3387         units yet.
3389         * lib/prop_geomtypes.c (lengthprop_get_widget): Remove debug info
3391 2004-09-07  Lars Clausen  <lars@raeder.dk>
3393         * app/diapagelayout.c: Include from widgets.c rather than
3394         diaunitspinner.
3396 2004-09-03  Lars Clausen  <lars@raeder.dk>
3398         * objects/standard/box.c: Use PROP_TYPE_LENGTH for corner_radius
3399         as unit-based property testbed.
3401         * lib/prop_geomtypes.c (lengthprop_reset_widget): Implement length
3402         and fontsize widgets. 
3404         * app/Makefile.am (dia_core_files):
3405         * app/diaunitspinner.h: 
3406         * app/diaunitspinner.c: 
3407         * lib/widgets.h: 
3408         * lib/widgets.c (dia_unit_spinner_update): Move diaunitspinner to
3409         lib/widgets.[ch], as it's used in the properties code now.
3411 2004-08-31  Steffen Macke <sdteffen@web.de>
3413         * doc/en/usage-objects-basic.xml: Mentioning supported image formats.
3415 2004-08-30  Lars Clausen  <lars@raeder.dk>
3417         * app/textedit.c: 
3418         * app/diagram.c (diagram_remove_all_selected): Remove debugging
3419         information. 
3421         * lib/color.[ch]: 
3422         * app/undo.c: 
3423         * app/disp_callbacks.c: 
3424         * app/Makefile.am: 
3425         * app/create_object.c: 
3426         * app/textedit.[ch]: 
3427         * app/modify_tool.c: 
3428         * app/diagram.c: 
3429         * lib/text.c: 
3430         * lib/focus.[ch]: Change in focus mechanism to allow highlight of
3431         current input object, multiple inputs per object, and tabbing
3432         between objects.
3434 2004-08-28  Steffen Macke <sdteffen@web.de>
3436         * makefile.msc: added bs to ALL_LINGUAS; adjusted .mo file creation to
3437         allow separate installer component "Translations"
3439 2004-08-27  Akagic Amila  <bono@linux.org.ba>
3441         * configure.in: Added 'bs' to ALL_LINGUAS.
3443 2004-08-26  Steffen Macke <sdteffen@web.de>
3445         * app/makefile.msc: using /subsystem:windows again
3446         * makefile.msc: updated ALL_LINGUAS
3448 2004-08-21  Kjartan Maraas  <kmaraas@gnome.org>
3450         * configure.in: Add Â«nb» to ALL_LINGUAS.
3452 2004-08-21  Steffen Macke <sdteffen@web.de>
3454         * plug-ins/dxf/dxf-export.c: Patch from 
3455         Takeshi Hamasaki <hma@syd.odn.ne.jp>, fixes text alignment
3457 2004-08-17  Lars Clausen  <lars@raeder.dk>
3459         * config.h.win32: 
3460         * dia.spec (Release): 
3461         * doc/pl/dia.xml: 
3462         * doc/en/dia.xml: 
3463         * NEWS: 
3464         * configure.in: 
3466 2004-08-13  Ankit Patel <ankit@redhat.com>
3468         * configure.in: Added "gu" in ALL_LINGUAS.
3470 2004-08-07  Lars Clausen  <lars@raeder.dk>
3472         * configure.in:
3473         * config.h.win32: 
3474         * doc/pl/dia.xml: 
3475         * doc/en/dia.xml: 
3476         * dia.spec (Release): 
3477         * NEWS: New release 0.94-pre6
3479 2004-08-07  Lars Clausen  <lars@raeder.dk>
3481         * app/highlight.c (highlight_reset_objects): Unhighlight inside
3482         groups as well.
3484         * app/load_save.c: 
3485         * plug-ins/shape/shape-export.c: String capitalization fix from
3486         Alan Horkan <horkana@tcd.ie>
3488         * objects/UML/class.c (umlclass_show_comments_callback): Make UML
3489         Class object menu kinda work, rather than blow up.  Doesn't do a
3490         proper undoable change yet.
3492 2004-08-06  Lars Clausen  <lars@raeder.dk>
3494         * app/filedlg.c (file_save_as_callback): Don't remove related
3495         dialogs from the NULL diagram.
3497 2004-08-02  Lars Clausen  <lars@raeder.dk>
3499         * config.h.win32: 
3500         * doc/pl/dia.xml: 
3501         * doc/en/dia.xml: 
3502         * dia.spec (Release): 
3503         * NEWS: Pre5 with leak fix.
3505         * lib/font.c (dia_font_build_layout): Don't try to save an
3506         allocation of LayoutCacheItem if it breaks layout cache hash.
3507         Also make hash function correct, remove explicit height entry
3508         (it's in pfd), and make sure things are correctly unreffed.
3509         Finally fixes #148141.
3511         * lib/text.c (text_set_attributes, text_set_font): Safely unref
3512         when changing font, and actually set the new font in
3513         text_set_font(!).
3514         (text_get_attributes): Ref copied font.
3516 2004-08-01  Lars Clausen  <lars@raeder.dk>
3518         * NEWS: 
3519         * configure.in: 
3520         * dia.spec (Release): 
3521         * config.h.win32: 
3522         * doc/pl/dia.xml: 
3523         * doc/en/dia.xml: Prerelease 4.
3525         * lib/font.c (dia_font_build_layout): Better comparision and
3526         freeing of font cache.
3528 2004-07-31  Lars Clausen  <lars@raeder.dk>
3530         * lib/font.c (dia_font_build_layout): Faster update to avoid
3531         memory leaks.
3533         * app/app_procs.c: Fix from Tom Parker <palfrey@bits.bris.ac.uk>:
3534         Correctly initialize export filter variable.
3536 2004-07-25  Lars Clausen  <lars@raeder.dk>
3538         * dia.spec (Release): 
3539         * configure.in: 
3540         * NEWS: 
3541         * config.h.win32: 
3542         * doc/en/dia.xml: 
3543         * doc/pl/dia.xml: Pre3 coming out.
3545         * lib/diarenderer.c (draw_polygon): 
3546         * plug-ins/dxf/dxf-export.c (export_dxf): Two fixes by Takeshi
3547         Hamasaki <hma@syd.odn.ne.jp>: Correct header to be a 0 (zero)
3548         rather than O (letter), and assert num_points > 1 rather than the
3549         other way around.
3551         * app/recent_files.c: 
3552         * app/filedlg.c: 
3553         * app/diagram.c: 
3554         * app/app_procs.c: Patch from Vitaly Lipatov <lav@altlinux.ru>:
3555         Make filenames conform to filesystem encoding.
3557         * RDP/.cvsignore: Added standard ignore.
3558         
3559         * shapes/network/Makefile.am (SHAPES): Use PNG instead of XPM for
3560         last entry patch-panel, too.
3562         * app/*.png:
3563         * shapes/Circuit/*.png:
3564         * shapes/Civil/*.png:
3565         * shapes/Contact/*.png:
3566         * shapes/Electric/*.png:
3567         * shapes/MSE/*.png:
3568         * shapes/Pneumatic/*.png:
3569         * shapes/SDL/*.png:
3570         * shapes/flowchart/*.png:
3571         * shapes/jigsaw/*.png:
3572         * shapes/network/*.png:
3573         * shapes/sybase/*.png:
3574         * samples/dia*.png:
3575         * dia_gnome_icon_large.png:
3576         * doc/pl/graphics/*.png: Set -kb for PNGs.
3577         
3578         * sheets/{ER,GRAFCET,Istar,Jackson,KAOS}: Added .png files.
3580 2004-07-22  Lars Clausen  <lars@raeder.dk>
3582         * NEWS: 
3583         * config.h.win32: 
3584         * doc/en/dia.xml: 
3585         * doc/pl/dia.xml: 
3586         * dia.spec (Release): 
3587         * configure.in: Update to version 0.94-pre2.
3589         * app/load_save.c (diagram_data_write_doc): Use new namespace
3590         here, too.
3592         * lib/object.h (OBJECT_COMMON_PROPERTIES): Remove 'Dia' from
3593         hidden objects properties.
3595         * objects/standard/line.c: Remove halffinished line gap box from
3596         properties list.
3598         * app/paginate_psprint.c: 
3599         * app/filedlg.c: Patch from kimmidi@novell.com (Kiran Kumar
3600         Immidi): Close export and print dialog with diagram as well.
3601         (#129520)
3602         
3603         * lib/diaarrowchooser.[ch]: Patch from pborelli@katamail.com (paolo
3604         borelli):  Remove deprecated stuff (#137693)
3606         * app/dia-props.c (create_diagram_properties_dialog): Patch from
3607         kimmidi@novell.com (Kiran Kumar Immidi):  Close properties dialog
3608         on destroy.
3610 2004-07-21  Ray Strode  <rstrode@redhat.com>
3612         * dia/dia.desktop.in: Add MimeType line to desktop file
3613         new mime sytem.
3615 2004-07-18  Hans Breuer  <hans@breuer.org>
3617         * shapes/(Circuit|Contatct|MSE|network|Pneumatic|SDL|sybase)/Makefile.am 
3618           sheets/UML/*.png : icons in png format
3619         Partial fixup of stuff broken with the following comment:
3620         "7 days : xpm->png, namespace fix, first rotation bits."
3622         * app/load_save.c(read_objects) : don't add objects to the layer.
3623         This function is called recursively and only the topmost objects
3624         belong in the layers object list. Fixes bug #145417 and is the
3625         the real fix for bug #142480
3626         
3627         * app/app_procs.c : make the --size hack even uglier, but work again
3628         
3629         * lib/dia_dirs.c(dia_get_absolute_filename) : must not free()
3630         but g_free() what is returned by g_build_filename()
3631         
3632         * objects/custom/custom_object.c(custom_destroy) : handle all enum
3633         values in switch to get rid of the warning
3634         
3635         * objects/custom/shape_info.c : use g_ascii_strtod(), get rid 
3636         of setlocale()/strtod()
3637         * lib/dia_svg.c : dito
3638         * lib/dia_xml.c : almost
3640         * plug-ins/python/group_props.py : use the string representation of 
3641         value to ensure "unique values". If the strings would not be different
3642         the user cann't see the difference either
3644 2004-07-17  Lars Clausen  <lars@raeder.dk>
3646         * lib/persistence.h: Have "void" in prototypes (#142663)
3648         * lib/widgets.c (dia_font_selector_init): Better string handling
3649         (#142663) 
3651         * lib/persistence.c (persistence_save_type): Small fixes (#142663)
3653         * objects/standard/image.c (image_load): Use path of diagram
3654         rather than running directory as base for image file place.
3656         * doc/{diagram,sheet}.dtd: Move DTD namespace to new site, and
3657         syntactic fixes. 
3658         
3659         * app/disp_callbacks.c (ddisplay_canvas_events): Patch from
3660         Ambrose Li <a.c.li@ieee.org>:  Better IM context handling.
3662         * Re-added new sample diagrams binarily.
3664 2004-07-17 Sagar Rastogi <rastogi@students.iiit.net>
3666         * app/disp_callbacks.c: Fixed #144962 (also in KNOWN_BUGS),
3667         Disabled keyboard accels when dragging an object.       
3669 2004-07-14  Lars Clausen  <lars@raeder.dk>
3671         * app/grid.c (snap_to_grid): Use diagrams grid setting to
3672         determine hex grid snap.
3674         * doc/pl/Makefile.am: Avoid error based on backslash in comment.
3675         
3676         * app/interface.h: Avoid multiply defined symbols (#147396)
3678 2004-07-10  Lars Clausen  <lars@raeder.dk>
3680         * app/sheets_dialog_callbacks.c (write_user_sheet): 
3681         * lib/sheet.c (load_register_sheet): Don't introduce double
3682         slashes in namespace.
3684         * lib/dia_xml.h (DIA_XML_NAME_SPACE_BASE): Keep consistent with
3685         old diagrams, or XSLT will barf all over.
3686         
3687         * shapes/RDP/place.shape: 
3688         * shapes/RDP/transition.shape: 
3689         * shapes/RDP/Makefile.am: Added .png entries to SHAPES and changed
3690         shapes to use those.
3692 2004-07-07  Lars Clausen <lars@raeder.dk>
3694         * config.h.win32: 
3695         * doc/{en,pl}/dia.xml: 
3696         * dia.spec: 
3697         * configure.in: 
3698         * NEWS: First prerelease of version 0.94.  Now with release
3699         versions in a branch and main devel in the trunk.
3701 2004-07-05  Hans Breuer  <hans@breuer.org>
3703         * */*.[hc] */*/*.c : a bunch of changes to make Dia compile with
3704         -std=c89. Mostly //-comments and M_PI -> G_PI
3705         [Istar, Jackson, KAOS were removed from build cause they
3706         simply have *too* much C++ comments ;]
3707         * object/UML/association.c : use g_strdup() not plain strdup()
3708         * app/paginate_psprint.c : avoid storage size of `pipe_action' 
3709         isn't known with more portable signal code
3710         
3711         * app/app_procs.c : don't call gtk_init() if just --version
3712         is requested (bug #144321, Vladimir Kondratiev)
3713         
3714         * lib/prop_attr.c(fontprop_set_from_offset) : only unref 
3715         DiaFont* if not NULL
3716         * objects/UML/class.c : moved fill_in_fontdata() to 
3717         umlclass_load() to avoid such trouble, though unsure if
3718         this really is an improvement...
3719         
3720         * shapes/network/makefile.am : patch-panel added here too
3722 2004-07-04  Hans Breuer  <hans@breuer.org>
3724         * sheets/network.sheet.in shapes/network/patch-panel.xpm
3725           shapes/network/patch-panel.xpm : added 24-Port-Patch-Panel
3726         fixes bug #136629, James McDonald
3728 2004-07-04  Hans Breuer  <hans@breuer.org>
3730         * lib/persistence.c app/load_save.c app/sheet_dialog_callbacks.c
3731           lib/object_defaults.c : revert changing of Dia's XML namespace
3732         * lib/dia_xml.h : #define DIA_XML_NAME_SPACE_BASE with a comment
3733         about its purpose and relation to real world urls.
3735         * lib/plug-ins.h : increment DIA_PLUGIN_API_VERSION and 
3736         added comment about when to do so
3737         [Should have been long time ago and probably multiple times
3738         to avoid crashing on older plug-ins]
3739         * RELEASE-PROCESS : mention DIA_PLUGIN_API_VERSION
3740         * plug-ins/xslt/xslt.c : use DIA_PLUGIN_CHECK_INIT
3742         * lib/object.c objects/UML/class.c : there are still compilers not 
3743         supporting C99 and other GCCISMs like allocating dynamic sized arrays 
3744         on the stack
3745         * objects/UML/class.h : there is a differnce between a list pointer
3746         and a list pointer pointer. We and GLib want the former.
3748         * plug-ins/pixbuf/pixbuf.c : don't use app_is_interactive () to detect
3749         if Gtk is initialized. Using gdk_display_get_default () avoids the
3750         app/* dependency and is also closer to the requirements of the
3751         plug-ins working.
3753         * plug-ins/cairo/diacairo.c : initialize "unique name" field. Also
3754         some #ifdefed support for Cairo backends not public available yet.
3756         * plug-ins/wmf/wmf.cpp : finally do extended linestyles if the
3757         windoze platform supports them. This should fix bug #109818, at
3758         least for the majority running NT or above ...
3759         * plug-ins/wmf/wmf_gdi.[hc] : portability stuff for the above
3761         * objects/makefile.msc : build Istar, Jackson and Kaos
3763         * objects/UML/class.c(umlclass_load) : don't wrap by default to 
3764         keep old diagrams as they were - instead of this nice new effect ;-)
3765         Also make "wrap_operations" PROP_TYPE_BOOL in PropDescriptions
3767         * objects/UML/class.c : mark for translation _("Wrap ...
3769         * objects/UML/class.c : more correct types, also some default properties
3770         dialog pages adjustment (triggering a bug in lib/prop_widgets.c ?;)
3772         * objects/UML/activity.c : removed a leftover from the 
3773         use-localization-for-font-substitution-hack
3775         * shapes/ChemEng shapes/Cybernetic shapes/Map/Isometric :
3776         'cvs admin -kb *.png' PNG files should already be *added* as binary,
3777         otherwise they are not readable on line-end-converting-platforms
3779         * plug-ins/python/use g_new0(Dia<Im|Ex>portFiler), avoids crashing 
3780         filter_get_by_name()
3782         * plug-ins/python/pydia-property.c : some more g_warnings for
3783         not implemented conversions
3785         * plug-ins/python/group_props.py : ensure unique property values
3786         at the right place. Now something like :
3787         - load an old UML class diagram
3788         - change one of the classes to wrap operations
3789         - select all classes (/Select/Same Type)
3790         - /Dialogs/Group Properties : check wrap_operations, select '1'
3791         - Ok, works like a charm :-)
3793 2004-07-04  Lars Clausen  <lars@raeder.dk>
3795         * lib/diagdkrenderer.c (draw_string): Don't unref NULL
3796         pixbuf. (#145362)
3797         
3798 2004-07-03  Lars Clausen  <lars@raeder.dk>
3800         * app/app_procs.c (do_convert): Two patches from Vitaly Lipatov
3801         <LAV@VL3143.spb.edu>: Fixes console output problems and some
3802         interactiveness problems.
3804 2004-07-02  Lars Clausen  <lars@reader.dk>
3806         * plug-ins/pixbuf/pixbuf.c (dia_plugin_init): Don't load if the
3807         app isn't interactive.
3809 2004-07-01  Lars Clausen  <lars@raeder.dk>
3811         * plug-ins/cairo/diacairo.c: Add init of last field of filter
3812         struct to remove crash.
3814         * sheets/Makefile.am (sheet_in_files): 
3815         * shapes/Makefile.am: 
3816         * sheets/ChemEng.sheet.in: 
3817         * shapes/ChemEng/Makefile.am: 
3818         * configure.in: 
3819         New sheet from "Federico Zenith" <zenith@chemeng.ntnu.no>:
3820         Chemical engineering shapes.
3821         
3822         * app/Makefile.am (run_dia.sh$(EXEEXT)): Changed $* to $@ to allow
3823         multiple arguments when using devel script.
3825         * app/display.c (new_display): 
3826         * app/dia-props.c: 
3827         * lib/diagramdata.c (new_diagram_data): 
3828         * lib/diagramdata.h: 
3829         * app/preferences.h: 
3830         * app/preferences.c: 
3831         * app/grid.c: 
3832         * app/diagram.c: 
3833         * lib/diagramdata.c (new_diagram_data): Patch from Peter Poulsen
3834         <peter_poulsen@stofanet.dk>: Add hexagonal grid!
3836         * HACKING: 
3837         * doc/pl/authors.xml: 
3838         * doc/en/authors.xml: 
3839         * lib/object_defaults.c (dia_object_defaults_save): 
3840         * readme.win32 (BTW): 
3841         * lib/persistence.c (persistence_save): 
3842         * app/load_save.c (diagram_data_write_doc): 
3843         * app/commands.c (help_about_callback): 
3844         * README: Fix links to home page.
3846         * lib/font.c: 
3847         * app/load_save.c (diagram_data_load): 
3848         * lib/prop_text.c (stringprop_load): Avoid NULL strings when
3849         loading, and guard against them when fonting.
3851         * lib/diarenderer.c (draw_rounded_polyline): Patch from
3852         anthonym@overture.com:  Make limited rounding a corner-specific
3853         rendering-only thing.
3855 2004-06-30  Lars Clausen  <lars@raeder.dk>
3857         * lib/font.c (dia_font_build_layout): Return to 0.93.1 font size
3858         adjustment: If you can't fix it, at least don't change it.
3860         * objects/SADT/arrow.c (sadtarrow_draw): Use new rounded arrow
3861         code instead of individual code in here.
3863 2004-06-29  Lars Clausen  <lars@raeder.dk>
3865         * objects/UML/association.c: Patch from Kiran
3866         Kumar Immidi <kimmidi@novell.com>:  Fix bounding box for line end
3867         text. 
3869         * lib/geometry.c: 
3870         * lib/geometry.h: 
3871         * lib/diarenderer.c (draw_rounded_polyline): 
3872         * objects/standard/polyline.c (polyline_draw): 
3873         * objects/standard/zigzagline.c (zigzagline_draw): 
3874         Patch from anthonym@overture.com:  Add rounded polylines.
3876 2004-06-27  Lars Clausen  <lars@raeder.dk>
3878         * lib/font.c (dia_font_new_from_style): Initialize legacy name.
3880         * lib/widgets.c (dia_font_selector_get_family_from_name): Don't
3881         free family list before taking out the pointer we need. Also set
3882         the entry_nr correctly so we get the menu set up right.
3884 2004-06-23  Lars Clausen  <lars@raeder.dk>
3886         * lib/widgets.c (dia_toggle_button_new_with_images): Sink the
3887         images at the right place.
3889         * objects/Istar/actor.c
3890         * objects/Istar/goal.c
3891         * objects/Istar/istar.c
3892         * objects/Istar/istar.h
3893         * objects/Istar/link.c
3894         * objects/Istar/other.c
3895         * objects/Jackson/domain.c
3896         * objects/Jackson/jackson.c
3897         * objects/Jackson/jackson.h
3898         * objects/Jackson/phenomenon.c
3899         * objects/Jackson/requirement.c
3900         * objects/KAOS/goal.c
3901         * objects/KAOS/kaos.c
3902         * objects/KAOS/kaos.h
3903         * objects/KAOS/metaandorrel.c
3904         * objects/KAOS/metabinrel.c
3905         * objects/KAOS/other.c: Patch from Patch from Christophe Ponsard
3906         <cp@cetic.be>: Fix instability issues caused by not returning NULL
3907         in *_move_handle and *_move.  Also improved the headers with
3908         correct (c) information.
3910 2004-06-22  Lars Clausen  <lars@raeder.dk>
3912         * objects/KAOS/goal.c:
3913         * objects/KAOS/other.c:
3914         * objects/Istar/actor.c:
3915         * objects/Istar/goal.c:
3916         * objects/Istar/other.c:
3917         * objects/Jackson/domain.c:
3918         * objects/Jackson/phenomenon.c: Patch from Christophe Ponsard
3919         <cp@cetic.be>: Fix resize issues.
3921         * app/filedlg.c (file_dialog_hide): Patch from Kiran
3922         Kumar Immidi <kimmidi@novell.com>: Check for null when removing
3923         related dialog. #129520.
3925         * app/dia-props.c (diagram_properties_show): Patch from Kiran
3926         Kumar Immidi <kimmidi@novell.com>: Make sure properties dialog is
3927         a child of its diagram. #129520.
3929         * objects/UML/association.c (association_load): Patch from Kiran
3930         Kumar Immidi <kimmidi@novell.com>: Update positions properly for
3931         text placement. #118313.
3933 2004-06-17  Lars Clausen  <lars@raeder.dk>
3935         * objects/KAOS/Makefile.am: Add pixmaps/goal.xpm to EXTRA_DIST
3937         * Makefile.am: Make THANKS only be generated by maintainers.
3939         * doc/pl/Makefile.am: Removed usage+objects+basic.xml from
3940         Makefile, too.
3942         * configure.in: Added three missing Makefiles.
3944         * app/diagram.[ch]: 
3945         * app/filedlg.c:
3946         Patch from shuveb@yahoo.com (Shuveb Hussain): Remove
3947         diagram-related (save) dialog when closing diagram.  To be
3948         extended to other dialogs.
3950         * doc/pl/dia.xml: Removed reference to objects-basic. (#144527)
3952         * samples/Istar.dia:
3953         * samples/Jackson.dia:
3954         * samples/KAOS.dia:
3955         * sheets/Istar.sheet.in:
3956         * sheets/Jackson.sheet.in:
3957         * sheets/KAOS.sheet.in:
3958         * sheets/Istar/*:
3959         * sheets/Jackson/*:
3960         * sheets/KAOS/*:
3961         * objects/Istar/*:
3962         * objects/Jackson/*:
3963         * objects/KAOS/*:
3964         * configure.in: 
3965         * objects/Makefile.am (SUBDIRS): 
3966         * sheets/Makefile.am (SUBDIRS): 
3967         * samples/Makefile.am: Additions from Christophe Ponsard
3968         <cp@cetic.be>: Jackson, I* and KAOS diagram support.  Needs a bit
3969         of hacking still.
3971 2004-06-12  Lars Clausen  <lars@raeder.dk>
3973         * lib/properties.h: 
3974         * lib/prop_geomtypes.[ch]: Preparation for selectable units.
3976         * lib/font.h: Toning down comments a bit:)
3978         * lib/font.c (dia_font_build_layout): Playing around with DPI 
3980         * objects/UML/association.c (association_load): Avoid crashes on
3981         strcmp with NULL.
3983         * objects/UML/association.c: Patch from kimmidi@novell.com:
3984         Improve placement of labels when vertical.  Part fix of #118313
3986         * lib/object.c (dia_object_is_selected): Grouped objects are not
3987         selected, only the group itself.  Thus, don't crash when grouping
3988         beziers. #143681
3990         * objects/UML/association.c: Patch from kimmidi@novell.com:  Agree
3991         on how to represent empty strings.  Fixes #143639.
3993         * lib/object.c (dia_object_is_selected): Added comment answer.
3995 2004-06-12  Hans Breuer  <hans@breuer.org>
3997         * lib/diagramdata.c lib/object.c : deal with grouped objects
3998         not knowing their parent_layer, i.e. avoid crashing in 
3999         dia_object_is_selected() via group_draw() [ Triggered by
4000         playing with the Visio generated svg from bug #143455 ]
4002         * plug-ins/python/diasvg_import.py : started to implement
4003         transformation="translate(...)" and <style/> handling. Also
4004         use some other completely bogus values for em/ex scaling
4005         
4006 2004-06-08  Lars Clausen  <lars@raeder.dk>
4008         * plug-ins/cairo/.cvsignore: CVS-ignore generated makefiles.
4010 2004-06-07  Lars Clausen  <lars@raeder.dk>
4012         * app/layer_dialog.c (layer_dialog_set_diagram): 
4013         * app/display.c: Layer widget crash more properly dealt with in
4014         layer dialog code.
4015         
4016         * app/display.c (ddisplay_flush): Fixed crash when closing:  Layer
4017         widget deselect was called during destroy, but called
4018         ddisplay_flush, leading to a new display timeout after renderer
4019         was dead.
4021         * lib/widgets.c (dia_toggle_button_destroy): 
4022         * app/recent_files.c (recent_file_menuitem_create): 
4023         * lib/persistence.c (persistence_save_list): 
4024         * app/commands.c (edit_delete_callback): 
4025         * lib/object_defaults.c (dia_object_defaults_save): 
4026         * lib/parent.c (parent_list_affected_hierarchy): Killed leaks
4027         (#142669)
4028         
4029         * lib/widgets.c (dia_toggle_button_new_with_images): Remove
4030         debugging info.
4032         * lib/diagramdata.c (new_layer): Initialize connectibility.
4034         * app/display.c (ddisplay_obj_render): 
4035         * app/diagram.c (diagram_find_closest_connectionpoint): Take
4036         connectibility into account.
4038         * app/layer_dialog.h (struct _DiaLayerWidget): 
4039         * app/layer_dialog.c:
4040         Connectible toggle updates, now works fairly well.
4042         * app/select.c (select_transitive_callback): Make sure we're only
4043         selecting in the same layer.
4045 2004-06-04  Lars Clausen  <lars@raeder.dk>
4047         * app/pixmaps/Makefile.am: Also install connectable images.
4048         
4049         * app/layer_dialog.c (dia_layer_update_from_layer): Initially set
4050         layer toggles from layer itself.  Also update diagram correctly
4051         for visibility.  Still need updates for connectivity behaviour.
4053 2004-06-03  Hans Breuer  <hans@breuer.org>
4055         * plug-ins/wpg/wpg.c(draw_image) : take rowstride into account
4057         * lib/diagdkrenderer.c(set_linejoin) : actually set
4058         join_style not cap_style
4059         (set_dashes): with the correct number of dashes
4061 2004-06-03  Lars Clausen  <lars@raeder.dk>
4063         * app/modify_tool.c (click_select_object): 
4064         * lib/text.c (text_set_cursor): 
4065         * app/disp_callbacks.c (ddisplay_canvas_events): Turn off text stuff.
4067 2004-05-31  Hans Breuer  <hans@breuer.org>
4069         * lib/object_defaults.c : don't 'failed to load external 
4070         entity "NULL"' when the defaults file does not exist, 
4071         bug #108764 [again: somehow this got lost]
4073         * app/paginate_gdiprint.cpp : don guess the WMF export 
4074         filter used for printing but find it by unique name.
4075         Also update for export_func renaming
4076         * plug-ins/wmf/wmf.cpp plug-ins/cairo/diacairo.c
4077         provide some unique names
4079         * app/commands.c app/disp_callbacks.c app/paginate_psprint.c 
4080           app/select.c : fix bug #140789 by always checking if there
4081         still is an active diagram before accessing it
4083         * app/defaults.c app/properties.c : user visible string should 
4084         not read DiaObject but stay as "Object defaults/properties"
4086         * app/app_procs.c : reduce the hack to pass --size to the
4087         export via user_data to the only filter supporting it. Other
4088         filters would crash on it or do worse ;(
4090         * plug-ins/wpg/wpg.c : not every 'Object' is a DiaObject ...
4092 2004-05-31  Lars Clausen  <lars@raeder.dk>
4094         * lib/widgets.h: 
4095         * lib/widgets.c: Use GtkType rather than guint for
4096         dia_size_selector_get_type. 
4098 2004-05-29  Lars Clausen  <lars@raeder.dk>
4100         * app/diapsrenderer.c (fill_bezier): Use even-odd winding rule so
4101         that it matches the screen output for selfoverlapping polygons and
4102         beziers. 
4104 2004-05-28  Hans Breuer  <hans@breuer.org>
4106         * app/load_save.c : ignore empty groups on load and don't
4107         write empty groups while saving
4108         * lib/group.h (group_update_data): there is no first object
4109         in empty groups and they probably don't need an update at 
4110         all. Maybe the shold just not exist ?
4112         * plug-ins/cairo/diacairo.c : fixed arc drawing, right aligned
4113         text positioning as well as drawing of images with alpha
4115         * plug-ins/wmf/wmf.cpp : include windows.h if eiher
4116         HAVE_WINDOWS_H or G_OS_WIN32 is defined
4118 2004-05-28  Lars Clausen  <lars@raeder.dk>
4120         * app/pixmaps/Makefile.am (imagedir): 
4121         * app/pixmaps/visible.png:
4122         * app/pixmaps/visible-empty.png: New images for the visibility
4123         button in the layer dialog.
4125         * lib/widgets.c (dia_toggle_button_new_with_images): Remove even
4126         more border around the button.  Still some left when hovering the
4127         mouse or selecting, and the grey background is annoying.
4129         * app/layer_dialog.c (dia_layer_widget_init): Use real buttons for
4130         visibility connector.
4132 2004-05-26  Lars Clausen  <lars@raeder.dk>
4134         * configure.in (DB2MAN): Better check for db2man docbook place.
4135         Need something even better.
4137         * doc/en/Makefile.am (dia.1): Conditional on having DB2MAN.
4139         * lib/widgets.c (dia_toggle_button_new_with_images): Remove
4140         extraeneous borders.
4142         * dia_logo.png:
4143         * dia_gnome_icon.png:
4144         * samples/render-test.dia: Rendering test from Hans.
4146 2004-05-24  Hans Breuer  <hans@breuer.org>
4148         * lib/filter.h : renamed DiaExportFilter::export to
4149         _DiaExportFilter::export_func (should not use c++ 
4150         keywords (g++ specifc ?) in headers. Same for import
4151         out of pure symmetry reasons
4152         * plug-ins/shape/shape-export.c plug-ins/python/diamodule.c
4153           app/diagram.c app/filedlg.c : reflect functions renaming
4155         * plug-ins/wmf/Makefile.am : finally compile the wmf plug-in
4156         under *NIX, too. [If you want something done, do it yourself ;-]
4157         * plug-ins/wmf/wmf_gdi.[hc] : some more stuff to catch up
4158         with wmf.cpp's GDI usage
4159         * plug-ins/wmf/wmf.cpp : compile even without HAVE_WINDOWS_H,
4160         [For the moment it does not much more than compiling, i.e. 
4161         the produced WMF files are invalid, if not created on windoze.]
4163         * configure.in : check for C++ to compile plug-in/wmf
4164         
4165         * objects/GRAFCET/boolequation.c : looks like fixing 
4166         another leak (untested)
4168 2004-05-23  Hans Breuer  <hans@breuer.org>
4170         * acinclude.m4 : another attempt to fix 
4171         bug #142032 (still not sure it's the right one,
4172         but works for me(tm), which the other does not ;)
4173         
4174         * plug-ins/cairo/Makefile.am
4175           plug-ins/Makefile.am 
4176           configure.in : support building the new cairo
4177         plug-in, if given --with-cairo and the cairo
4178         packages are found, see http://cairographics.org
4179         and also http://hans.breuer.org/dia/dia-cairo.htm
4181         * plug-ins/cairo/diacairo.c : make it compile
4182         with DEBUG_CAIRO defined, too.
4184 2004-05-23  Hans Breuer  <hans@breuer.org>
4186         * plug-ins/cairo/Makefile.am : initial attempt
4188         * plug-ins/cairo/diacairo.c : a new exporter based on
4189         Cairo http://cairographics.org rendering api. Currently
4190         it just can export PNG and PS but one day it might get
4191         PDF and more almost for free. [It is not yet included
4192         in the *NIX build system due to lack of auto* magic.]
4194         * plug-ins/pixbuf/pixbuf.c : always register the export
4195         filter part. If the user does not want it it can be 
4196         disabled by File/Plugins or explicit selected the other
4197         one in the Export Formats List
4199 2004-05-23  Hans Breuer  <hans@breuer.org>
4201         * lib/dia_dirs.c : #include "message.h"
4202           lib/widgets.c : #include "persistence.h"
4203           lib/widgets.c(dia_font_selector_init) : still not C99
4204           lib/persitence.h : removed unimplemented prototype
4205           lib/persitence.c(persistence_load_list) : still not C99
4206           app/create_object.c : #include "highlight.h"
4207           app/layer_dialog.c : #include "widgets.h"
4208           app/modify_tool.c : prototype functions before usage
4209           lib/object.c : if there is G_END_DECLS there _must_ be G_BEGIN_DECLS
4210         [otherwise one will have a hard time to make C++ compile ;]
4211           lib/dia_dirs.c : #include "message.h"
4212           lib/font.c : #include <gtk/gtk.h> /* just for gtk_get_default_language() */
4213           lib/
4215         * plug-ins/xfig/xfig-import.c : dont initialize an int with
4216         a string pointer
4218         * lib/dia_image.[hc](dia_image_rgba_data) : make it work
4219         as documented, i.e. _not_ copying. Plugs a memory leak in
4220         lib/dialibartrenderer.c
4222         * lib/diarenderer.c(*_rounded_rect) : renamed parameter rounding
4223         to radius to more of a clue what it is representing
4225         * */makefile.msc lib/libdia.def : updated
4227         ChangeLog : fixed some date copy&paste bug
4229 2004-05-21  Lars Clausen <lars@raeder.dk>
4231         * NEWS: Release tag.
4233         * config.h.win32: Now 0.93+cvs
4235         * RELEASE-PROCESS: Update with new info about release branches.
4236         
4237         * Many files:  Moved devel branch back into main trunk.  Should
4238         have been done in the opposite way, with release in a branch.  
4239         
4240 2004-05-20  Hans Breuer  <hans@breuer.org>
4242         * acinclude.m4 : disable setting of PYTHON_PREFIX
4243         and PYTHON_EXEC_PREFIX from prefix and exec_prefix
4244         as workaround for bug #142032 (the real fix would 
4245         involve some auto* knowledge which I don't have
4246         either;)
4247         
4248         * plug-ins/python/Makefile.am : more python 
4249         plug-ins to be installed (especially svg import,
4250         but also 'simple scale' should be useable 
4251         sometimes)
4252         
4253         * plug-ins/python/scascale.py : update display
4254         after modifying selected objects
4255         
4256         * plug-ins/python/diasvg_import.py : initialize
4257         stroke to none
4258         
4259 2004-05-18  Lars Clausen  <lars@raeder.dk>
4261         * app/diagram_tree.c (select_node): Use
4262         diagram_remove_all_selected to kill selected list.
4264         * lib/font.c: Set language when using a different context.
4266         * plug-ins/svg/svg-import.c: Changed isdigit to g_ascii_isdigit
4267         and removed ctype include (#142661).
4269         * lib/paper.c (get_default_paper): Changed isalnum to
4270         g_ascii_isalnum and removed ctype include. (#142661)
4272         * objects/custom/shape_info.c: 
4273         * lib/dia_svg.c: 
4274         * app/diaunitspinner.c: Removed unrequired ctype.h include. (#142661)
4276 2004-05-17  Hans Breuer  <hans@breuer.org>
4278         * lib/object_defaults.c : don't 'failed to load external 
4279         entity "NULL"' when the defaults file does not exist, 
4280         bug #108764
4282         * lib/widgets.c : fixed possible menu leak
4283         * lib/dialinechooser.c lib/diaarrowchooser.c : finally
4284         avoid finalization of floating references, bug #142307
4286 2004-05-15  Lars Clausen  <lars@raeder.dk>
4288         * plug-ins/xfig/xfig-import.c: Handle default fonts and illegal
4289         fonts better (#138655)
4290         
4291         * doc/pl/Makefile.am (EXTRA_DIST): Also include all xml files here.
4293         * doc/en/Makefile.am (EXTRA_DIST): Including all required files in
4294         dist, xml, dbk and man.  Also the sub-xml files. (#142098)
4296         * Makefile.am (CLEANFILES): 
4297         * sheets/Makefile.am (EXTRA_DIST): Not distributing the
4298         translation-reports, they are generated automagically.  THANKS
4299         file not considered locally generated, so is not locally
4300         cleaned. (#133735) 
4302         * lib/widgets.[ch]: Changing dia_arrow_selector to be a gobject.
4304         * lib/diaarrowchooser.c: 
4305         * lib/prop_attr.c: Fixing naming for arrowselector.
4307         * objects/UML/object.c (objet_type): Oops, little too aggressive
4308         with the DiaObject thing here:)
4310         * objects/custom/shape_info.c (parse_svg_node): Use
4311         g_ascii_isdigit instead of isdigit.
4313         * app/diaunitspinner.c (dia_unit_spinner_update): 
4314         * lib/dia_svg.c (dia_svg_parse_style): Using g_ascii_isspace
4315         instead of isspace avoids char subscript issues (#142467).
4317         * lib/persistence.c (persistence_get_string): Fixed 0/NULL/FALSE
4318         return value conflict.
4320         * app/display.c (ddisplay_update_handler): Fixed 0/FALSE return
4321         value conflict.  Also improved signature. (#142466)
4323         * app/load_save.c (diagram_data_load): Don't overwrite the list in
4324         the layer, but instead free the returned list (#142480)
4326         * app/pixmaps/Makefile.am (IMAGES): Added png's to be installed
4327         for the grid widget.
4329         * doc/en/Makefile.am (dia.1): Make proper rule for making dia.1
4331         * configure.in (DB2MAN): Currently just check for two known
4332         positions for the docbook xsl.  Don't know a generic way to find
4333         this info.  Ought to add an option for it, but then it's really
4334         only required for maintainers, I think.  Maybe.
4336         * app/display.c (update_snap_grid_status): Remove nasty image
4337         toggling code not require for grid toggle button anymore. (#142475)
4339         * app/interface.c (create_display_shell): Use
4340         dia_toggle_button_new_with_images to create grid toggle button.
4341         Much nicer. (#142475)
4343         * app/menus.c (menus_initialize_updatable_items): Free the string
4344         along with the GString. (#142475)
4346         * lib/intl.c (free_alias_table): Free hash table entries in a
4347         proper way, avoiding duplicate frees. (#142475)
4349         * lib/object_defaults.c (_obj_store): Only free layer_name if it's
4350         not put in the hash (avoid reading freed memory). (#142476)
4352         * lib/widgets.c (dia_font_selector_set_styles): Stop leaking
4353         faces. (#142484)
4354         (dia_font_selector_get_family_from_name): Stop leaking
4355         families. (#142482) 
4357 2004-05-14  Lars Clausen  <lars@raeder.dk>
4359         * Transfer of fixes from release branch.  Not the prettiest way to
4360         do it, this should be done during release, not afterwards.
4362         Tomasz KÅ‚oczko <kloczek@pld.org.pl>:
4364         * acinclude.m4: minor fixes (added missing [] quotation).
4366         Lars Clausen  <lars@raeder.dk>:
4368         * app/interface.c (toolbox_delete): 
4369         * app/app_procs.[ch] (app_exit): Stop the delete event if the user
4370         cancels quit due to modified diagrams.
4372         Samúel Jón Gunnarsson  <sammi@techattack.nu>:
4374         * is.po: Added "is" to ALL_LINGUAS.
4376         Lars Clausen  <lars@raeder.dk>:
4378         * dia.spec: Updated as per mail from Zhang Lin-bo <zlb@lsec.cc.ac.cn>
4380         Hans Breuer  <hans@breuer.org>:
4382         * lib/makefile.msc : removed -DGTK_DISABLE_DEPRECATED; the 
4383         burden should be shared and not be win32 only ;) [this time 
4384         build was broken by adding GtkType to widget.h]
4386         * objects/standard/box.c objects/standard/ellipse.c :
4387         for code clarification compare (obj->aspect != FREE_ASPECT)
4388         and not (obj->aspect); no binary effect.
4390         * app/paginate_psprint.c : don't leak printcmd
4392         * objects/standard/box.c objects/standard/ellipse.c : fix gccisms :
4393         standard C requires variables to be declared at the beginning of 
4394         a block, also there is no fabsf() with msvc
4395         
4396         * app/win32print.[ch] : make win32_printer_close() return an
4397         error code, it's used as pclose replacement
4399         Lars Clausen  <lars@raeder.dk>:
4401         * RELEASE-PROCESS: Mention PATCH keyword in release process.
4403 2004-05-06  Lars Clausen  <lars@raeder.dk>
4405         * lib/widgets.[ch]: Utility function to make a widget with two
4406         images (selected and non-selected).
4408         * lib/diagramdata.h: Renamed selectable to connectable.
4409         Selectable will come later.
4411         * configure.in: 
4412         * app/pixmaps/Makefile.am (imagedir): 
4413         * app/pixmaps/connectable.png:
4414         * app/pixmaps/connectable-empty.png: New images for the
4415         selectability widget.  Proper installation, too.
4417         * app/layer_dialog.[ch]: Adding new button showing connectability
4418         status.  Much cleaner way of doing the button, but some problems
4419         with the item getting selected
4421         * lib/widgets.h: Reminder of how to install images for use by
4422         dia_get_image_from_file.
4424 2004-05-05  Lars Clausen  <lars@raeder.dk>
4426         * objects/network/Makefile.am: 
4427         * objects/network/pixmaps/radiocell.xpm: 
4428         * objects/network/pixmaps/basestation.xpm: 
4429         * objects/network/network.c: 
4430         * objects/network/basestation.c: 
4431         * objects/network/radiocell.c: 
4432         Patch from W. Borgert <debacle@debian.org>: Radio cell and base
4433         station objects.
4435         * lib/arrows.[ch]: Patch from Anthony <anthonym@overture.com>:
4436         Backslash arrow head. 
4438         * app/pagesetup.c (pagesetup_respond): Do not free ps twice.
4439         Notify takes care.  Should maybe use that more.
4441         * lib/diagramdata.[ch]: 
4442         * app/filedlg.c (file_export_ok_callback): 
4443         * app/diagram.c (diagram_finalize): DiagramData now a GObject.
4445         * app/dia-props.c (diagram_properties_respond): 
4446         * app/diagram.c (diagram_set_modified): 
4447         * app/undo.c: 
4448         * app/disp_callbacks.c: 
4449         * app/commands.c: 
4450         * app/load_save.c (diagram_save): 
4451         Better handling of undo and modified status -- only diagram
4452         properties and page setup explicitly set modified status, all
4453         other important changes should be done through the undo stack
4454         now.
4456 2004-05-04  Lars Clausen  <lars@raeder.dk>
4458         * app/app_procs.c (app_init): Consistently open a new diagram if
4459         none specified, with standard name Diagram1.dia.
4461         * app/layer_dialog.c: 
4462         * app/diagram.c (diagram_finalize): 
4463         * app/commands.c (dialogs_layers_callback): 
4464         * app/filedlg.c (file_export_ok_callback): 
4465         * app/app_procs.c (app_exit): 
4466         * app/display.c (display_set_active): 
4467         * app/interface.c (dia_dnd_file_drag_data_received): 
4468         * app/recent_files.c: 
4469         Undone attempt at unifying the multi-diagram windows (like
4470         layers).  It broke the layers and didn't make much sense for the
4471         diagram properties dialog anyway.
4473         * lib/group.c: 
4474         * lib/diatypes.h: 
4475         * lib/diagramdata.c: 
4476         * lib/object.h: 
4477         * lib/object.c: Undone attempts at GObject'ifying DiaObject -- too
4478         many subclasses have to be fixed.  Fixed remaining
4479         Object/ObjectType renaming issues.
4481 2004-05-02  Lars Clausen  <lars@raeder.dk>
4483         * lib/object.[ch]: Making DiaObject a GObject.  Now can I avoid
4484           having to make all the children objects conform to
4485           GObject style at once?  Warning!  Does not compile right now.
4487         * many, many files: Rename Object to DiaObject in preparation for
4488           making it a GObject.
4489         
4490         * app/diagram.[ch]: Turn diagram into a real GObject.
4492         * app/pagesetup.c: 
4493         * app/filedlg.c: Correctly ref and unref diagram. 
4495         * lib/diagramdata.h: Starting to turn it into a GObject as well.
4497 2004-05-02  Lars Clausen  <lars@raeder.dk>
4499         * lib/object.[ch]: Starting to convert Object to DiaObject, son of
4500         GObject. 
4502         * app/dia-props.c: Undo the attempt at making it really
4503         multi-diagram, now going for a one-diagram dialog.
4505 2004-04-30  Lars Clausen  <lars@raeder.dk>
4507         * app/undo.c: Undoing broken undo stuff for diagram properties and
4508         page setup.  Shouldn't be mixed into undo at all.
4510         * app/render_gdk.c (draw_pixel_line): Use the dash-setting
4511         function to avoid in particular the grid crawling.
4513         * lib/diagdkrenderer.[ch] (dia_gdk_renderer_set_dashes): Function
4514         to allow aligning dashes, so they don't crawl.
4516 2004-04-28  Lars Clausen  <lars@raeder.dk>
4518         * app/Makefile.am: New files diacanvas.[ch]
4520         * app/interface.c (create_display_shell): Use new diacanvas that
4521         allows placing widgets on canvas, for text edit.
4523         * lib/object.h: 
4524         Early work towards rotation.  No implementation yet.
4526         * app/layer_dialog.c (undo_layer): 
4527         * objects/network/bus.c (bus_create_change): 
4528         * objects/standard/box.c (aspect_create_change): 
4529         * objects/standard/ellipse.c (aspect_create_change): 
4530         Use g_new0 for change struct.
4532         * app/undo.c (diagram_change_apply_or_revert): 
4533         Support for undo of diagram properties and page setup.
4535         * app/disp_callbacks.c (ddisplay_canvas_events): 
4536         * lib/text.h: 
4537         * lib/diagramdata.h: 
4538         * app/modify_tool.c (click_select_object): 
4539         * lib/text.c (text_register_editable): 
4540         Starting work on new text editing model.  Guarded by #ifdef so
4541         far. 
4543 2004-04-07  Lars Clausen  <lars@raeder.dk>
4545         * app/recent_files.c (open_recent_file_callback): 
4546         * app/interface.c (origin_button_press): 
4547         * app/filedlg.c (file_open_ok_callback): 
4548         * app/display.c: 
4549         * app/diagram.[ch]: 
4550         * app/commands.c (dialogs_layers_callback): Using new
4551         diagram_set_current() function to ensure auxilliary windows are
4552         updated. 
4554         * app/layer_dialog.c: Trying to unify with dia-props.  Diagram
4555         menu now borken.  *sniff*
4557         * app/dia-props.c: Diagram properties window attempted
4558         persistentified.  Trying to make more like layer dialog (since it
4559         already changes when the diagram changes), but some things still
4560         borken. 
4562 2004-04-06  Lars Clausen  <lars@raeder.dk>
4564         * lib/dialinechooser.[ch] (dia_line_chooser_set_line_style): 
4565         * lib/attributes.c (attributes_set_default_line_style): 
4566         * app/interface.c (create_lineprops_area): 
4567         Make line style persistent as well.  Added function to directly
4568         set the style and dashlength of a dialinechooser. 
4570 2004-04-03  Lars Clausen  <lars@raeder.dk>
4572         * objects/standard/ellipse.c (ellipse_move_handle, ellipse_copy):
4573         Copy the ellipse extra handle correctly.
4575         * objects/standard/box.c (box_move_handle): Move definitions
4576         according to bug #138925.
4578 2004-04-02  Lars Clausen  <lars@raeder.dk>
4580         * app/recent_files.c: Use absolute name for recent files list.
4582         * lib/attributes.c: Set start and end arrow types, correctly.
4584         * lib/widgets.c (dia_arrow_selector_set_arrow): Use new function
4585         to get arrow index.
4587         * lib/diaarrowchooser.[ch]: Support for setting arrow info.
4589         * app/interface.c (create_lineprops_area): Set persistently stored
4590         arrow info.
4592         * lib/arrows.[ch]: New function to get arrow index (in arrow_types)
4593         from arrow type.
4595         * lib/dia_dirs.c: dia_get_absolute_path now creates a canonical
4596         path (i.e. without '.' or '..').  Not tuned for Win32 yet.
4598         * plug-ins/xfig/xfig-import.c: Redone ordering of import to comply
4599         with what xfig does.  Text now converted from latin-1 to utf-8
4600         (latin-1, since that's what xfig seems to use.  Would like to see
4601         examples of non-latin-1 figs).  String case problems fixed.
4603 2004-04-01  Lars Clausen  <lars@raeder.dk>
4605         * lib/attributes.c: 
4606         * app/interface.c: Default arrows now stored persistently, too.
4608         * lib/arrows.[ch]: New function to get arrow type from name.
4610         * app/color_area.c (color_area_create): 
4611         * lib/attributes.c: 
4612         * app/linewidth_area.c: Also persistent colors and line width.
4613         That was easy.  Arrows and line style will take a bit more work,
4614         but not much.
4616 2004-04-01  Lars Clausen  <lars@raeder.dk>
4618         * app/preferences.c:   All preferences are now
4619         handled by persistence, old prefs load and store code is gone.
4621         * lib/persistence.[ch]: Added string and color persistents.  This is
4622         a different string from the one used in the printer dialog, that
4623         one has a GtkEntry attached -- may want to make that one an
4624         encapsulation of this one or something.
4626 2004-03-31  Lars Clausen  <lars@raeder.dk>
4628         * app/app_procs.c: Do persistence before prefs.  Prefs are to be
4629         phased out anyway.
4630         
4631         * lib/persistence.[ch]: 
4632         * app/preferences.c: Adding persistence for integers, reals,
4633         booleans.  Fixed stupid list bug.  Test persistence for prefs.
4635 2004-03-30  Lars Clausen  <lars@raeder.dk>
4637         * app/recent_files.c: 
4638         Debugging of deallocation.
4639         
4640         * lib/widgets.c: 
4641         Font menu now uses persistence.  Ordering needs fixing, or it must
4642         be sorted.
4644         * lib/libdia.def: 
4645         * lib/Makefile.am (libdia_la_SOURCES): 
4646         * app/Makefile.am (dia_core_files): 
4647         * app/persistence.[ch]: 
4648         * lib/persistence.[ch]: Moved to lib as widgets need it.  Also a
4649         number of fixes, including multiple entries now being read
4650         properly.  Still some oddity about the persistent list having the
4651         role as first entry (which makes the font menu crash after a few
4652         iterations). 
4654 2004-03-26  Lars Clausen  <lars@raeder.dk>
4656         * app/persistence.c:
4657         * app/recent_files.[ch]: Redoing the recent-files list using
4658         persistence, reducing code by about 50%.  Still a problem when
4659         selecting an item from the menu -- possibly it doesn't like the
4660         menu being destroyed while in the callback?
4662 2004-03-25  Lars Clausen  <lars@raeder.dk>
4664         * app/persistence.c (persistence_load_string): Missing semicolon?!?
4666 2004-03-24  Lars Clausen  <lars@raeder.dk>
4668         * RELEASE-PROCESS: 
4670         * app/persistence.[ch]: 
4671         * app/paginate_psprint.c (diagram_print_ps): New type of data can
4672         be stored persistently:  Strings.  Only the printer command/file
4673         go in here now, but things like creator, organization, diagram
4674         comments etc could also be handled this way.
4676         * objects/standard/beziergon.c (beziergon_draw): Avoid control
4677         lines when the object is not selected.
4679 2004-03-23  Lars Clausen  <lars@raeder.dk>
4681         * lib/connectionpoint.h: 
4682         * app/load_save.c: Allow connection points to have names, and
4683         handle that in load/store.
4685         * lib/dialibartrenderer.c: Better highlighting for text.
4687         * lib/diagdkrenderer.h (struct _DiaGdkRenderer): 
4688         * lib/diagdkrenderer.c: Better highlighting for all, using same
4689         principles as libart highlighter.
4691 2004-03-22  Lars Clausen  <lars@raeder.dk>
4693         * lib/dialibartrenderer.[ch]: 
4694         * lib/diagdkrenderer.c: 
4695         * lib/object.h: 
4696         * app/object_ops.c:
4697         * app/diagram.[ch]:
4698         * app/display.[ch]:
4699         * app/Makefile.am: 
4700         * app/modify_tool.c: 
4701         * app/create_object.c: 
4702         * app/highlight.[ch]: 
4703         Added simple object highlighting.  In GDK rendering, highlights
4704         the bbox, in libart highlights the outline of the object (except
4705         for texts).
4707 2004-03-22  Lars Clausen  <lars@raeder.dk>
4709         * RELEASE-PROCESS: Added info on how to do a branch for
4710         development during release process.
4712 2004-03-20  Lars Clausen  <lars@raeder.dk>
4714         * RELEASE-PROCESS: Mention PATCH keyword in release process.
4716 2004-03-19  Lars Clausen  <lars@raeder.dk>
4718         * xmldocs.make: Fixed apparent uninstall error.
4720         * config.h.win32: 
4721         * doc/en/dia-manual.xml: 
4722         * doc/pl/dia-manual.xml: 
4723         * dia.spec: 
4724         * configure.in: 
4725         * NEWS: Version 0.93-pre1.
4727         * lib/dialinechooser.[ch]: Patch from pborelli@katamail.com (paolo
4728         borelli):  Remove some deprecated stuff.
4730 2004-03-18  Lars Clausen  <lars@raeder.dk>
4732         * Makefile.am: Try better uninstall thing for scrollkeeper.
4734         * objects/ER/entity.c: 
4735         * lib/arrows.[ch]: Patch from Georg Lothar Thimm
4736         <MGEORG@ntu.edu.sg>: Adds new ER arrows 1 or many, 0 or many, 0 or
4737         1, 1 exactly, as well as associative ER entities.
4739 2004-03-17  Lars Clausen  <lars@raeder.dk>
4741         * Makefile.am: Make distcheck not complain about scrollkeeper
4742         problems (as per advice from James Henstridge).
4744         * doc/pl/*.{xml,sgml}: Converted SGML manuals to XML to get better
4745         standard installation.
4747         * objects/standard/ellipse.c: Better strings for object menu.
4749         * app/sheets_dialog_callbacks.c: Fixed crashes from broken caching
4750         of dialogs (shame on you, glade!)
4752         * objects/custom/custom_object.c (custom_setup_properties):
4753         Removed debugging output
4755         * app/paginate_psprint.c (diagram_print_ps): Slightly more
4756         readable printer error messages.
4758         * xmldocs.make: 
4759         * omf.make: 
4760         * doc/en/Makefile.am: 
4761         * doc/pl/Makefile.am: 
4762         New more standard way to install the XML-based manuals.  
4764 2004-03-15  Lars Clausen  <lars@raeder.dk>
4766         * objects/standard/box.c (box_move_handle): More intuitive fixed
4767         aspect behaviour.
4769         * objects/standard/ellipse.c: 
4770         * objects/standard/box.c: 
4772         * lib/widgets.[ch]:
4773         * app/layer_dialog.[ch]:
4774         Patch from Steve Langasek <vorlon@debian.org>:
4775         Fixes startup crash on Alpha (bug #137169)
4776         
4777         * objects/standard/box.c: Aspect fixing like ellipses.
4779         * app/Makefile.am (dia_core_files): Include dia-app-icons.h
4781         * lib/pixmaps/Makefile.am (imagedir): Better Makefile.am for
4782         pixmaps, now can uninstall properly.
4784         * objects/standard/ellipse.c: Patch from dooms@info.ucl.ac.be:
4785         Fixed and circle aspect ratios for ellipses.  Bug #137156, #87966,
4786         #93940. 
4787         Added object menu access.
4789 2004-03-07  Hans Breuer  <hans@breuer.org>
4791         * lib/diaarrowchooser.c lib/dialinechooser.c : #undef
4792         GTK_DISABLE_DEPRECATED (I'd rather like if these widgets
4793         would not use deprecated apis, but it's much simpler this way)
4795         * lib/makefile.msc : build the above new widgets and render_pixmap
4796         * lib/libdia.def app/dia.def app/makefile.msc : updated
4798         * app/disp_callbacks.c : fix gccisms (without being able to make much sense of 
4799         what I saw, i.e. how big is an empty array supposed to be ? ;-). 
4800         Previously it gave :
4801         disp_callbacks.c(188) : error C2059: syntax error : '}'
4802         disp_callbacks.c(191) : warning C4034: sizeof returns 0
4804         * app/interface.c : #include "dialinechooser.h"
4806         * lib/diagdkrender.c : make the !HAVE_FREETYPE case compile again
4807         [one more reason not to use it here : it's quite slow compared to
4808          the native win32 font renderer ;]
4810         * app/app_procs.c app/filedlg.c : gtk_widget_destroy does not take
4811         a GtkDialog*, removed unneeded cast
4813         * app/render_eps.c : avoid assignment warning for void* user_data
4814         not being an int 
4816 2004-03-06  Steffen Macke sdteffen@web.de>
4818         * shapes/Map/Isometric/Makefile.am: added Makfile for Isometric
4819         shapes
4821 2004-03-06  Lars Clausen  <lars@raeder.dk>
4823         * lib/arrows.h (DEFAULT_ARROW_SIZE): Downed default arrow size to
4824         0.5, as per poll.
4826         * lib/font.c: Simple cleanup system for layout cache removes any
4827         layout that hasn't been used for 10 minutes, but only during idle
4828         time. 
4830 2004-03-05  Lars Clausen  <lars@raeder.dk>
4832         * sheets/Electric.sheet.in: Added patch from padro@lsi.upc.es
4833         (lluis padro) (#130887): Extended Electric shapes with vertical
4834         versions. 
4836         * sheets/Cybernetics.sheet.in: Normalize shape descriptions (never
4837         start with "Create a" or "A", always capitalize first word).
4839         * objects/standard/ellipse.c: Patch from Grégoire Dooms
4840         <dooms@info.ucl.ac.be>: Add extra connection point in center of
4841         ellipse.  Additionally added a handle in the center, and resize is
4842         now around the center.
4844         * configure.in: 
4845         * sheets/Makefile.am (SUBDIRS): 
4846         * sheets/IsometricMap.sheet.in: 
4847         * shapes/Map/Isometric/*
4848         * shapes/Makefile.am (SUBDIRS): Added Isometric shapes.
4850 2004-03-04  Lars Clausen  <lars@raeder.dk>
4852         * lib/Makefile.am: 
4853         * lib/pixmaps/Makefile.am: 
4854         * configure.in: 
4855         Better installation handling of pixmaps.
4856         
4857         * lib/diagdkrenderer.c: 
4858         * lib/diagtkfontsel.h (struct _DiaGtkFontSelectionClass): 
4859         * lib/diagtkfontsel.c (dia_gtk_font_selection_show_available_fonts): 
4860         Constness fixes.
4862 2004-03-03  Lars Clausen  <lars@raeder.dk>
4864         * lib/diagtkfontsel.h (struct _DiaGtkFontSelection): 
4865         * lib/diagdkrenderer.c: 
4866         * lib/diasvgrenderer.c:
4867         * lib/dialibartrenderer.c:
4868         * lib/diainteractiverenderer.c: 
4869         * lib/prop_text.c (multistringprop_handle_key): 
4870         * lib/dia_dirs.c: 
4871         * lib/dia_image.c (dia_image_rgba_data): 
4872         * lib/widgets.c: 
4873         * lib/diagramdata.c (layer_set_object_list): 
4874         * lib/font.h: 
4875         * lib/font.c: 
4876         Getting rid of compile warnings.
4878         * lib/widgets.c: Handle destroy properly, i.e. unref the two extra
4879         images.  Also remove unused decls.
4881 2004-03-02  Lars Clausen  <lars@raeder.dk>
4883         * lib/widgets.h: 
4884         * lib/widgets.c (dia_size_selector_init): Add images to the size
4885         selector chain widget.  Also new function to load installed images
4886         from files (better than from included XPM, IMHO).
4888 2004-03-02  Lars Clausen  <lars@raeder.dk>
4890         * lib/libdia.def: 
4891         * lib/pixmaps/[un]broken-chain.xpm: Icons stolen from GIMP for the
4892         size selector.
4894         * lib/Makefile.am: 
4895         * lib/widgets.c (dia_size_selector_init): Work
4896         on getting proper icon onto the size selector.  Need simple image
4897         load mechanism in utils.
4899         * lib/text.c: 
4900         * app/display.[ch]:
4901         * app/disp_callbacks.c: Patch from kou@cozmixng.org: Show preedit
4902         strings, handle utf8 strlen properly.  Bug #135930.
4904 2004-03-01  Lars Clausen  <lars@raeder.dk>
4906         * shapes/Cybernetics/*:
4907         * sheets/Cybernetics.sheet.in:
4908         * sheets/Makefile.am:
4909         * shapes/Makefile.am: 
4910         * configure.in: Patch from charly.meyer@t-online.de (Thorsten
4911         Roggendorf): Cybernetic shapes (#95553).
4913 2004-03-01  Lars Clausen  <lars@raeder.dk>
4915         * app/Makefile.am: Fixed $(EXEEXT) warning from automake.
4917         * lib/diatypes.h: New type DiaSizeSelector.
4919         * lib/widgets.[ch]: New size selector widgets that selects two
4920         values (width and height, nominally) optionally linked to keep
4921         aspect ratio.
4923 2004-03-01  Hubert Figuiere  <hfiguiere@teaser.fr>
4925         * plug-ins/svg/render_svg.c (new_svg_renderer): Add DTD declaration
4926         in front of file. Bug #128600.
4928         * app/Makefile.am:
4929         * app/interface.h:
4930         * app/lineprops_area.[ch]:
4931         * lib/Makefile.am:
4932         * lib/dialinechooser.[ch]:
4933         * lib/widgets.c (dia_line_style_selector_init): use line preview 
4934         instead of text labels. This involve moving away line_chooser to lib
4935         from app.
4937         * lib/diaarrowchooser.[ch] (close_and_hide): Make static to avoid
4938         symbol conflicts.
4940         * app/Makefile.am (dia_core_files): 
4941         * app/interface.c (create_lineprops_area):
4942         * app/render_pixmap.[ch]:
4943         * lib/Makefile.am:
4944         * lib/diaarrowchooser.[ch]:
4945         * lib/libdia.def:
4946         * lib/prop_attr.c:
4947         * lib/propdialogs.c:
4948         * lib/render_pixmap.[ch]:
4949         * lib/widgets.c (dia_arrow_fill_menu): Use arrow preview instead
4950         of text labels. This involve moving away arrow_chooser to lib from
4951         app.
4953 2004-02-29  Lars Clausen  <lars@raeder.dk>
4955         * objects/UML/class.[ch]: Puny kludge to avoid GtkList objects
4956         being updated half-way through destruction.  To be removed when
4957         the lists are replaced by something better.
4959         * objects/UML/class_dialog.c: Patch from luc@handhelds.org:
4960         Accelerators for class dialog.  Bug #130995.
4961         Patch from luc@handhelds.org: Better aligning of widgets.  Bug #130994.
4963         * app/dia-props.c:
4964         * app/preferences.c:
4965         * lib/properties.c:
4966         * objects/GRAFCET/step.c:
4967         * objects/Misc/analog_clock.c:
4968         * objects/chronogram/chronoline.c:
4969         * objects/chronogram/chronoref.c:
4970         Change to american spelling (color, not colour) to ease
4971         translators job.  Note that a number of translations may need an
4972         update now.  Bug #120466.
4974 2004-02-29  Lars Clausen  <lars@raeder.dk>
4976         * plug-ins/xfig/xfig-export.c: Patch from solworth@cs.uic.edu:
4977         Better arrow handling for missing arrows.
4979         * plug-ins/metapost/render_metapost.[ch]: Patch from
4980         phred@cs.berkeley.edu (Fred Reiss): Add font faces and font
4981         size. See bug #135363.
4983         * app/app_procs.c (app_init): If non-interactive, or if
4984         --log-to-stderr used, send all messages to stderr.  This should
4985         mean that old diaconv == dia --export-to-format=FOO BAR
4987 2004-02-29  Hubert Figuiere  <hfiguiere@teaser.fr>
4989         * app/menus.c: Get rid of GNOME menus. Deprecated APIs in GNOME 2.
4991 2004-02-28  Lars Clausen  <lars@raeder.dk>
4993         * lib/text.c (text_key_event): Patch from Kouhei Sutou
4994         <kou@cozmixng.org>: Fix wrong utf8 strlen handling.
4996 2004-02-27  Lars Clausen  <lars@raeder.dk>
4998         * KNOWN_BUGS: Added info on most commonly reported bugs, with
4999         BugZilla numbers.
5000         
5001         * app/disp_callbacks.c (popup_object_menu): Unified properties
5002         entry, fixes bug #105080.
5004         * app/diagram.c (diagram_update_menu_sensitivity): 
5005         * app/menus.h (struct _UpdatableMenuItems): 
5006         * app/menus.c (menus_initialize_updatable_items): Menu items
5007         changed around, align menus flattened, properties entry ghosted,
5008         dialogs menu removed, more shortcuts added.  Closing bugs #94018,
5009         #117495, #135125.
5010         Also taking out Gnome menus for now.  They don't allow shortcuts,
5011         so what are they good for?
5013 2004-02-27  Lars Clausen  <lars@raeder.dk>
5015         * app/menus.c (display_menu_items): 
5016         * app/commands.[ch]: Added duplicate menu item from Alan Horkan
5017         (bug #95546).
5019 2004-02-24  Adam Weinberger  <adamw@FreeBSD.org>
5021         * configure.in: Added 'en_CA' (Canadian English) to ALL_LINGUAS.
5023 2004-02-23  Lars Clausen  <lars@raeder.dk>
5025         * app/app_procs.c (app_init): Comments for translators.
5027 2004-02-22  Hubert Figuiere  <hfiguiere@teaser.fr>
5029         * app/preferences.c (prefs_create_dialog): Change packing policy
5030         for widget to expand.
5032         * app/Makefile.am (run_dia.sh): Fixed a typo in wrapper that prevented
5033         running with a debugger.
5035 2004-02-19  Lars Clausen  <lars@raeder.dk>
5037         * app/undo.[ch]: Adding last-saved information to undo to allow a
5038         diagram with all changes since last save undo to be marked as
5039         nonmodified.  Still needs integration with actual undo
5040         apply/revert calls.
5042         * app/diagram.h: 
5043         * app/diagram_tree.c (diagram_tree_update): 
5044         * app/diagram.c: 
5045         * app/display.c (update_modified_status): 
5046         * plug-ins/python/pydia-diagram.c (PyDiaDiagram_GetAttr): 
5047         * app/autosave.c (autosave_check_autosave): Encapsulate modifed
5048         test. 
5050         * app/render_eps.[c]: Restructure to better handle PS vs. EPS
5051         vs. EPSI, comment out EPSI until preview is in there.
5053         * lib/render.c: 
5054         * lib/diarenderer.c: Removing debugging printfs.
5056         * app/diapsrenderer.[ch]: Preparations for proper EPSI rendering
5057         (with preview)
5059         * objects/standard/arc.c (arc_update_handles): Check to avoid
5060         crash when start and end points are the same.
5062 2004-02-19  Lars Clausen  <lars@raeder.dk>
5064         * objects/standard/bezier.c: 
5065         * objects/standard/line.c (line_load): 
5066         * objects/standard/polyline.c (polyline_load): 
5067         * objects/standard/zigzagline.c (zigzagline_load): 
5068         * objects/standard/arc.c (arc_load): 
5069         * lib/widgets.h (DEFAULT_ARROW_WIDTH): Use DEFAULT_ARROW_SIZE
5070         instead of hardcoding.
5072 2004-02-18  Hubert Figuiere  <hfiguiere@teaser.fr>
5074         * app/disp_callbacks.c (popup_object_menu): append a menu item to 
5075         display properties.
5077 2004-02-17  Hubert Figuiere  <hfiguiere@teaser.fr>
5079         * app/app_procs.c: declare rc properly with the proper #ifdef
5081 2004-02-17  Lars Clausen  <lars@raeder.dk>
5083         * plug-ins/xfig/xfig-import.c: Correct ordering of imported FIG
5084         objects (which seemingly FIG itself breaks, or else there is no
5085         ordering).
5087 2004-02-16  Lars Clausen  <lrclause@cs.uiuc.edu>
5089         * plug-ins/xfig/xfig-export.c (figLineWidth): Check for minimum
5090         width renderable in xfig.  Helps on bug #133637, but does not
5091         quite fix it -- something about depth is wrong.
5093         * plug-ins/xslt/xslt.[ch]: Patch #133913 from phenning@lanl.gov:
5094         Extern definitions for Mac compilation.
5096         * app/app_procs.c: Patch #131159 from J. H. M. Dassen
5097         (jdassen@debian.org): Include fix.
5099         * app/interface.c: Patch #130100 from luc@handhelds.org:  Make
5100         sure the initial diagram size is correct.
5102 2004-02-15  Lars Clausen  <lrclause@cs.uiuc.edu>
5104         * lib/Makefile.am (AM_CPPFLAGS): Override AM_CPPFLAGS instead of
5105         CPPFLAGS, as per automake warning.
5106         * app/Makefile.am (AM_LDFLAGS): Override AM_LDFLAGS instead of
5107         LDFLAGS, as per automake warning.
5108         (run_dia.sh): More robust creation, and more easily moved.
5110         * app/undo.c (group_objects_revert): Don't double-free the objects
5111         list.  (#129221) Call object_add_updates on grouped objects.
5112         (ungroup_objects_revert): Call object_add_updates on grouped objects.
5114         * lib/diagramdata.c: Internal
5115         documentation. 
5117         * lib/polyshape.c (polyshape_update_data): Correctly calculate
5118         directions for polyshape corners (thanks, Valgrind!)
5120         * lib/attributes.c: 
5121         * lib/prop_attr.c (arrowprop_load): Use default arrow size.
5123         * lib/arrows.h: Default arrow size defined.  After all are using
5124         this, may lower to 0.4 or so.
5126         * app/lineprops_area.[ch]: New function to set the arrow type for an
5127         arrow chooser.
5129         * app/interface.c (create_lineprops_area): Set default line to
5130         have an arrow (fairly likely to be what's wanted, plus it shows
5131         the user where arrows are set).
5133         * app/app_procs.c: #ifdef HAVE_POPT popt args to process_opt
5135 2004-02-14  Lars Clausen  <lrclause@cs.uiuc.edu>
5137         * plug-ins/metapost/render_metapost.c (draw_with_linestyle):
5138         Dotted lines should use dot_length, not dash_length.
5140 2004-02-06  Hans Breuer  <hans@breuer.org>
5142         * app/interface.c : don't use gtk_drawing_area_size() to avoid
5143         the defaut size being also the minimum size. Instead use
5144         gtk_window_set_default_size() on the display shell. Fixes #130982.
5146         [fixing #131210, but umlauts in the 'main' filename still not really 
5147          supported on systems where filesystem encoding != utf8
5148         (Problems with recent file menu and window title)]
5149         * lib/dia_xml.[hc] : add data_filename() and data_add_filename()
5150         to deal with possible differnces in filename encodings, see
5151         g_filename_<to|from>_utf8()
5152         * objects/standard/image.c : use them.
5154         * lib/widgets.c : handle possible encoding difference here, too.
5155         Also get rid of most warnings by using const and GTK casts where 
5156         appropriate; one wrong cast (probably causing a crash) was found/fixed 
5157         by this - the remaining give a hint on finally leaking FontSelectorEntry.
5159         * lib/widgets.[hc] : hide _DiaFileSelector and *Class in .c. Modified
5160         dia_file_selector_<get|set>_file to behave like the respective Gtk 
5161         functions do : encoding- and const-wise ;-)
5163 2004-02-01  Robert Sedak  <robert.sedak@sk.htnet.hr>
5165         * configure.in: Added "hr" (Croatian) to ALL_LINGUAS.
5167 2004-01-19  Hans Breuer  <hans@breuer.org>
5169         * app/app_procs.c app/diaconv : 
5170         only call bind_textdomain_codeset when available, what's good 
5171         for The Gimp (bug #131215) can't be wrong for Dia : bug #125926
5172         * config.h.win32 : define HAVE_BIND_TEXTDOMAIN_CODESET
5174 2004-01-19  Steffen Macke <sdteffen@web.de>
5176         * makefile.msc: updated for new GAIM-like installer build; sync'ed
5177         ALL_LINGUAS with configure.in
5179 2004-01-18  Hans Breuer  <hans@breuer.org>
5181         * app/app_procs.c (myXmlErrorReporting) : avoid possible crash 
5182         by not passing NULL to g_print()
5184         * app/interface.c (create_toolbox) : actually use
5185         persitence_register_window() to restore toolbox window size
5187         * app/makefile.msc lib/makefile.msc : allow to deselect
5188         building with Freetype by command line to nmake like :
5189                 nmake -f makefile.msc "NOFT2=1"
5191         * plug-ins/python/diasvg_import.py : handle 'stroke-array' as
5192         far as possible with Dia's limited line style
5193         * plug-ins/python/pydia-property.c : allow to get and set
5194         Linestyle, style and dash(length)
5196         * lib/object.h : removed typedef for ObjectId not use anywhere
5198 2004-01-17  Hans Breuer  <hans@breuer.org>
5200         * objects/custom/shape_info.[hc] objects/custom/custom_object.c
5201           doc/shape.dtd doc/custom-shapes : 
5202         support for images in custom shapes, also removed some long-time
5203         dead code
5205         * doc/en/*.xml : fixed crippled line ends which get created
5206         when windoze line ends are checkin from the unix side
5208 2004-01-13  Laurent Dhima  <laurenti@alblinux.net>
5210         * configure.in: Added "sq" to ALL_LINGUAS.
5212 2004-01-11  Hans Breuer  <hans@breuer.org>
5214         [more less leaks ;-]
5215         
5216         * objects/SADT/annotation.c : use text_destroy() not g_free()
5217         
5218         * objects/chronogram/chronoline.c : neither leak chronoline::events
5219         nor chronoline::name
5221         * objects/wpg/wpg.c : don't g_free() but g_object_unref(renderer);
5223 2004-01-11  Hans Breuer  <hans@breuer.org>
5225         * lib/properties.h :
5226         * objects/custom/custom_object.c : more properties optional
5227         to be backward compatible for older diagrams not having them 
5228         set. (Try to load samples/all_objects.dia)
5229         
5230         [less memory leaks thanks valgrind ;-]
5231         
5232         * app/recent_files.c (recent_file_history_write) : 
5233         g_free(history_filename);
5234         (recent_file_menu_item) : use g_path_get_basename() 
5235         which already strdups, free result of g_strescape()
5236         
5237         * app/filedlg.c (create_export_menu) : return of
5238         filter_get_export_filter_label() must be g_free()'d
5239         (create_open_menu) : same for import
5240         
5241         * app/export_png.c (export_png_ok) : destroy info ptr
5242         with png_destroy_write_struct()
5243         
5244         * app/app_procs.c (app_init) : g_free(export_format_string);
5245         
5246         * lib/font.c (dia_font_finalize) : finalize parent_class, too
5247         (dia_font_new_from_style) : stop leaking almost all DiaFont by not
5248         refing it a second time, g_type_create_from_instance() is enough
5249         
5250         * lib/object_defaults.c (_obj_store) : don't mess with names
5251         len 0 (should avoid 'Invalid read of size 1, but doesn't ;)
5252         
5253 2004-01-11  Steffen Macke <sdteffen@web.de>
5255         * app/diapsftrenderer.c: including ftoutln.h
5256         * app/makefile.msc: updated for freetype build
5257         * lib/libdia.def: added dia_font_get_context()
5258         * lib/dialibartrenderer.c (draw_string): added cast
5259         
5260 2004-01-10  Hans Breuer  <hans@breuer.org>
5262         * lib/diagdkrenderer.c (draw_string) : gdk_draw_line with
5263         transformed coordinates, fixes bug 130804
5265 2004-01-10  Hans Breuer  <hans@breuer.org>
5267         * app/filedlg.c app/app_procs.c : don't try to destroy 
5268         'gtk_dialog_run'-dialogs dialogs by connecting to the "response"
5269         signal but simply by gtk_widget_destroy() after gtk_dialog_run()
5270         returns. Fixes 'has no handler' bugs like #121019
5272 2004-01-10  Hans Breuer  <hans@breuer.org>
5274         * objects/UML/class.c objects/UML/class_dialog.c : 
5275         handle umlclass->name being empty to avoid, i.e. fix #127968
5277         [plugging memleaks, thanks valgrind :-]
5278         
5279         * lib/dia_xml.c (data_string) : don't leak return value
5280         of xmlNodeListGetString()
5281         
5282         * lib/dia_xml.c (xml_file_check_encoding) : g_free(buf)
5283         before returning, maybe alloca() would be the better 
5284         choice but anyway ;)
5286         * objects/custom/custom_object.c:306 : adde xmlFree(str) below
5287         
5288         * lib/font.c (dia_font_build_layout) : don't leak result
5289         of g_utf8_strdown()
5290         
5291         * lib/diagdkrenderer.c (draw_string) : don't leak rgba
5292         (this is the one which got me started using valgrind, see #130816)
5293         
5294 2004-01-07  Sanlig Badral  <badral@openmn.org>
5296         * configure.in: Added "mn" to ALL_LINGUAS.
5298 2004-01-04  Hans Breuer  <hans@breuer.org>
5300         * lib/diagdkrenderer.c : replace rendering of really small (height
5301         less than 2 pixels) with a simple dashed line, you wont notice the 
5302         differnce beside it being much faster. This allows ...
5303         * lib/diagdkrenderer.h : ... to remove gboolean rendertext ...
5304         * app/navigation.c : ... and lets you see an read rendered text even 
5305         in the nice navigation popup.
5307         * lib/dialibartrenderer.c : FONT_SCALE defined as 1.0 for G_OS_WIN32, too. 
5308         (draw_string) : don't leak temporary image
5310 2004-01-04  Hans Breuer  <hans@breuer.org>
5312         * app/dia-app-icons.h : TODO : to be removed when autogenerated on *NIX, too.
5313         * app/interface.c : use dia-app-icons.h to give Dia window icons
5315         * lib/dia_image.c lib/color.c : _never_ call functions implemented
5316         in app/ from lib/. It is not portable and broken from design
5317         * app/app_procs.c : call color_init() and dia_image_init() conditional,
5318         i.e. only if running interactive.
5320         * lib/font.h : #include <time.h>
5322         * lib/libdia.def : updated externals
5324         * objects/UML/actor.c 
5325             objects/UML/association.c (todo)
5326           objects/UML/branch.c
5327           objects/UML/class.[hc] objects/UML/class_dialog.c
5328           objects/UML/classicon.c
5329           objects/UML/component.c 
5330           objects/UML/constraint.c
5331           objects/UML/dependency.c
5332           objects/UML/generalization.c
5333           objects/UML/implements.c
5334           objects/UML/large_package.c
5335           objects/UML/lifeline.c
5336           objects/UML/message.c
5337           objects/UML/node.c
5338           objects/UML/object.c
5339           objects/UML/realizes.c
5340           objects/UML/small_package.c
5341           objects/UML/state.c
5342           objects/UML/usecase.c
5343           objects/UML/
5344         : ported coloring of most UML objects (bug #97517, orginal
5345           work Mathias Hasselmann)
5347         * lib/properties.h : add _OPTIONAL variants for 
5348         PROP_STD_(LINE|FILL|TEXT)_COLOUR which allows to load old -
5349         i.e. default colored - UML diagrams without complaining
5350         * lib/proplist.c lib/propoffsets.c : avoid setting _OPTIONAL,
5351         not set properties with the help of PXP_NOTSET. Otherwise 
5352         optional attributes would lead to wrong initialization. 
5354         * lib/widgets.[hc] : moved _DiaFontSelector from .h to .c
5355         to hide details and restict #undef GTK_DISABLE_DEPRECATED to .c
5356         Same for most other selectors which probably should be rewritten
5357         to the combo box with tree model from Gtk+ 2.4
5359 2004-01-04  Lars Clausen  <lrclause@cs.uiuc.edu>
5361         * INSTALL (PLATFORM NOTES): Mention the Gnu gettext and iconv as
5362         being the Right Thing(tm) to use on Solaris.
5364         * objects/standard/bezier.c (bezierline_draw): Don't draw
5365         guidelines if not selected.
5367         * lib/object.[ch] (dia_object_is_selected): Function to check whether
5368         a given object is selected. O(n), where n is # selected objects.
5369         
5371 2004-01-03  Lars Clausen  <lrclause@cs.uiuc.edu>
5373         * lib/widgets.[ch]: Make sure old font is re-chosen when the Other
5374         Fonts dialog is closed without pressing Ok (bug #128646).
5376 2004-01-02  Lars Clausen  <lrclause@cs.uiuc.edu>
5378         * app/Makefile.am: Quote arguments correctly for run_dia.sh (bug
5379         #130099). 
5381 2004-01-01  Lars Clausen  <lrclause@cs.uiuc.edu>
5383         * INSTALL: Updated list of requirements (bug #129653)
5385         * doc/en/dia.dia: Beginning class diagram for Dia from Luc
5386         Pionchon <luc@handhelds.org>.
5388 2003-12-31  Lars Clausen  <lrclause@cs.uiuc.edu>
5390         * lib/diagdkrenderer.c (draw_string): Don't attempt to render
5391         empty or NULL strings (bug #130097).
5393 2003-12-31  Chris Sperandio <sperandi@eng.usf.edu>
5394         
5395         * plug-ins/metapost/render_metapost.c: Fixed string colorization.
5396         Added checks against color_black.
5398 2003-12-31  Lars Clausen  <lrclause@cs.uiuc.edu>
5400         * plug-ins/xfig/xfig-export.c (figArrow): Output nothing for
5401         ARROW_TYPE_NONE.  Thanks to Jon A. Solworth for showing that this
5402         can happen.
5404         * objects/UML/component_feature.c: Patch from W. Borgert
5405         <debacle@debian.org>:  Add handle to component feature text.
5407         * lib/diagdkrenderer.c (draw_string): Remove poorly placed caching.
5409         * lib/font.c: Caching PangoLayout for better rendering speed.
5411 2003-12-30  Lars Clausen  <lars@raeder.dk>
5413         * lib/dia_dirs.[ch] (dia_get_absolute_filename): New function to
5414         get absolute file name from relative.
5415         * app/recent_files.c (recent_file_history_add): Use absolute
5416         filenames for recent files menu so that files can be found when
5417         Dia is invoked from other places.  
5419         * app/app_procs.c (handle_all_diagrams): Fix for 1/3 of 130098:
5420         Actually load different diagrams if such are requested on command
5421         line.  
5423         * objects/UML/class_dialog.c (class_create_page): Fix from Luc
5424         Pionchon <luc@handhelds.org>: Correctly align labels for colors.
5426         * lib/diagdkrenderer.[ch]: From Luc: New option to GdkRenderer to
5427         remove text rendering.  May be turned into greeking at some later
5428         stage.
5430         * app/interface.c: 
5431         * app/Makefile.am (dia_core_files): 
5432         * app/navigation.[ch]: Patch from Luc Pionchon <luc@handhelds.org>:
5433         Adds navigation window a la Gimp, though without text being
5434         rendered at all.
5436 2003-12-27  Luc Pionchon <luc@handhelds.org>
5438         * app/navigation.h: (new file)
5439         * app/navigation.c: (new file) creates a navigation window with a
5440         thumbnail view of the whole diagram.
5441         * app/Makefile.am (dia_core_files): added new files.
5443         * app/interface.c (create_display_shell): added a button between
5444         the scrollbars to popup a navigation window.
5446         * lib/diagdkrenderer.h (struct_DiaGdkRenderer): added rendertext
5447         boolean
5448         * lib/diagdkrenderer.c (renderer_init): set rendertext TRUE by default
5449         * lib/diagdkrenderer.c (draw_string): returns if the renderer do
5450         not want text rendering.        
5452 2003-12-14  Lars Clausen  <lrclause@cs.uiuc.edu>
5454         * shapes/Circuit/hresistor.shape: Uses new extra attribute thing.
5456         * objects/custom/shape_info.[ch]: Cleanup.
5458         * objects/custom/custom_object.[ch]: Changed to use new props
5459         interface.
5461         * lib/properties.h: 
5462         * lib/prop_text.c: 
5463         * lib/prop_inttypes.c: 
5464         * lib/prop_geomtypes.c: Added *prop_get_data_size.
5466         * lib/libdia.def: Added object_load_props.
5468         * configure.in: Better FT2 version test, from bug #129225.
5470         * dia.spec (BuildRequires): Changed to match makefile (bug #129131)
5472         * plug-ins/xslt/dia-uml2python.xsl: Added Python sheet from Holger
5473         Lehmann <holger.lehmann@catworkx.de>.
5475         * plug-ins/xslt/Makefile.am: 
5476         * plug-ins/xslt/stylesheets.xml: Added Python, Component List,
5477         and OWL XSLT sheets.
5479 2003-12-13  Lars Clausen  <lrclause@cs.uiuc.edu>
5481         * lib/diagdkrenderer.c: Add implementation so text is still
5482         rendered.  May be improved later.
5484         * lib/dia_image.c: 
5485         * app/main.c: 
5486         * app/export_png.c: 
5487         * app/diagram.c: 
5488         * app/app_procs.c: Patch from W. Borgert <debacle@debian.org>:
5489         Allow running without a $DISPLAY!
5491         * lib/color.c: Remove warnings for non-interactive run.
5493         * doc/en/dia.dbk: 
5494         * app/export_png.c: 
5495         * app/diaconv.c: 
5496         * app/app_procs.[ch]: 
5497         Patch from W. Borgert <debacle@debian.org>: Allow a --size argument
5498         to specify size for PNG output.
5500         * app/lineprops_area.c (dia_arrow_preview_expose): Make arrows
5501         render a little smaller, so as to fit the big ones.
5503         * lib/arrows.[ch]: New arrow type from W. Borgert
5504         <debacle@debian.org>: Filled Dot and Triangle.
5506 2003-12-02  Lars Clausen  <lrclause@cs.uiuc.edu>
5508         * doc/pl/Makefile.am (install-data-hook): Fixed installation bug
5509         for gif images.
5511         * plug-ins/xslt/dia-uml2owl.xsl: Added OWL XSLT from Dan Connolly.
5513         * acinclude.m4: Better Python configure code patch (can't find
5514         author, author please speak up!)
5516 2003-12-01  Lars Clausen  <lrclause@cs.uiuc.edu>
5518         * lib/diagdkrenderer.c (get_cached_text): Stupid bugs replaced by
5519         smarter ones.
5521 2003-11-30  Hans Breuer  <hans@breuer.org>
5523         * plug-ins/python/diasvg.py : initialize self.dash_length
5524         in constructor to avoid crashing if the renderer user
5525         does not set it before first usage.
5527 2003-11-30  Lars Clausen  <lrclause@cs.uiuc.edu>
5529         * lib/diagdkrenderer.c: Start of cache GDK text renderer -- not
5530         active yet.
5532         * configure.in: 
5533         * config.h.win32: Set version number to 0.92.2+cvs to distinguish
5534         development and stable versions.
5536         * lib/text.c (text_draw): Use new renderer function to draw the
5537         text.
5539         * lib/diarenderer.h: 
5540         * lib/diarenderer.c: New renderer function "draw_text" with
5541         default implementation.  This function should eventually be the
5542         main interface, as it will be able to handle width and caching of
5543         rendering internally.  All users of draw_string should convert to
5544         use Text objects and call either renderer->draw_text or text_draw,
5545         the latter if the text can be edited in-place (as should be the
5546         goal, eventually).
5548 2003-11-29  Lars Clausen  <lrclause@cs.uiuc.edu>
5550         * shapes/Circuit/hresistor.shape: First example of extra
5551         attributes. 
5553 2003-11-28  Lars Clausen  <lrclause@cs.uiuc.edu>
5555         * plug-ins/shape/shape-export.c: 
5556         * lib/diasvgrenderer.h: 
5557         * lib/diasvgrenderer.c: 
5558         * plug-ins/svg/render_svg.c (new_svg_renderer): 
5559         Actually store the font size, using DiaRenderer's font fields.
5561 2003-11-27  Lars Clausen  <lrclause@cs.uiuc.edu>
5563         * objects/custom/shape_info.[ch]: 
5564         * objects/custom/custom_object.[ch]: 
5565         Support for extra attributes in custom objects.
5566         
5567 2003-11-23  Lars Clausen  <lrclause@cs.uiuc.edu>
5569         * app/diagram.c (diagram_update_menu_sensitivity): More
5570         intelligent checks for menu sensitivity.  Might be slow on huge
5571         diagrams, but I think other things outweigh it by a lot.
5573         * app/menus.[ch]: Make "Bring Forwards"
5574         and "Send Backwards" updateable.
5576 2003-11-22  Steffen Macke <sdteffen@web.de>
5578         * shapes/Assorted/arrow-turn-up.shape:
5579         * shapes/Assorted/arrow-turn-up.png:
5580         * sheets/Assorted/Makefile.am:
5581         * sheets/Assorted.sheet.in: Added new arrow
5583 2003-11-17  Lars Clausen  <lrclause@cs.uiuc.edu>
5585         * app/app_procs.c
5586         * app/color_area.c
5587         * app/commands.c
5588         * app/defaults.c
5589         * app/dia_embedd.c
5590         * app/diagram.c
5591         * app/diagram_tree.c
5592         * app/diagram_tree_menu.c
5593         * app/diagram_tree_window.c
5594         * app/diapagelayout.c
5595         * app/diaunitspinner.c
5596         * app/export_png.c
5597         * app/filedlg.c
5598         * app/interface.c
5599         * app/layer_dialog.c
5600         * app/lineprops_area.c
5601         * app/linewidth_area.c
5602         * app/menus.c
5603         * app/pagesetup.c
5604         * app/paginate_psprint.c
5605         * app/persistence.c
5606         * app/plugin-manager.c
5607         * app/preferences.c
5608         * app/properties.c
5609         * app/recent_files.c
5610         * app/sheets.c
5611         * app/sheets_dialog.c
5612         * app/sheets_dialog_callbacks.c
5613         * app/tool.c: Patch from Sebastien Tricaud <toady@gscore.org>:
5614         GTK-2 compatibility update, mostly gtk_foo -> g_foo.
5616         * TODO: Updated, note on EPS transparency.
5618 2003-11-07  Lars Clausen  <lrclause@cs.uiuc.edu>
5620         * objects/UML/class.c (umlclass_draw): Allow classes with no name
5621         without crashing.
5623 2003-11-01  Lars Clausen  <lrclause@cs.uiuc.edu>
5625         * config.h.win32: 
5626         * doc/en/dia-manual.xml: 
5627         * dia.spec: 
5628         * configure.in: 
5629         * NEWS: Another Brown Bag release for parenting problems,
5630         including a crash bug fix.
5632         * app/connectionpoint_ops.c (diagram_update_connections_object):
5633         Also update connections when moving children.  This can cause
5634         move_handle to be called twice, so it must be idempotent.
5636         * app/load_save.c: Loading and saving of children totally redone.
5637         Now doesn't violate assumption that all objects in a layer are
5638         placed in order in XML file.
5640         * objects/UML/branch.c (branch_create): Don't lie about being
5641         resizable. 
5643         * objects/UML/node.c (node_create): 
5644         * objects/UML/large_package.c (largepackage_create): Drag with
5645         lower right-hand handle at creation like all other objects.
5647 2003-10-28  Lars Clausen  <lrclause@cs.uiuc.edu>
5649         * app/disp_callbacks.c (ddisplay_drop_object): Change initial
5650         parenting drop to behave like a move inside, i.e. constrain place
5651         instead of trying to resize.  'Cause, resizing cannot be done for
5652         all objects (e.g. UML Class). Also simplified the algorithm a lot
5653         at the same time.
5655         * app/load_save.c: Saving and loading of connection points for
5656         children added.  Prototypes for static functions added.
5658         * lib/dynamic_obj.c: Removed debugging output.
5660 2003-10-26  Lars Clausen  <lrclause@cs.uiuc.edu>
5662         * doc/en/dia-manual.xml: 
5663         * doc/pl/dia-manual.sgml: 
5664         * dia.spec: 
5665         * config.h.win32: 
5666         * configure.in: 
5667         * NEWS: Brown Bag release 0.92.1
5669         * lib/dynamic_obj.c: Fixed embarassing dynamic object removal bug.
5671 2003-10-25  Lars Clausen  <lrclause@cs.uiuc.edu>
5673         * app/app_procs.c (app_init): Rearrangement for translators.
5675 2003-10-24  Steffen Macke <sdteffen@web.de>
5677         * lib/text.c(text_key_event): enforcing the inserted text length now,
5678         fix for bug #125348
5680 2003-10-22  Lars Clausen  <lrclause@cs.uiuc.edu>
5682         * MAINTAINERS: Change Debian maintainer to be the default address.
5684         * objects/Misc/analog_clock.c (analog_clock_move_handle): Reorder
5685         args to match prototype, thus removing crashbug #125159.
5687         * RELEASE-PROCESS: Note to self.
5689 2003-10-22  Steffen Macke <sdteffen@web.de>
5691         * doc/en/dia-manual.xml: removed superfluous external references
5692         
5693 2003-10-21  Steffen Macke <sdteffen@web.de>
5695         * lib/libdia.def: added filter_get_by_name
5696         * app/render_eps.c: moved extensions definition outside #ifdef
5698 2003-10-19  Lars Clausen  <lrclause@cs.uiuc.edu>
5700         * Makefile.am: 
5701         * dia.1:
5702         Removed old Dia manual, put new one in doc/en/.  Translations
5703         should go in doc/??/.
5705         * doc/en/dia-manual.xml: 
5706         * doc/pl/dia-manual.sgml: 
5707         * dia.spec (Release): 
5708         * config.h.win32: 
5709         * configure.in: 
5710         * NEWS: 0.92 is here!
5712         * doc/en/dia.dbk: 
5713         * doc/en/dia.1: 
5714         * doc/en/Makefile.am (man_MANS): Added man page, thanks to Fredrik
5715         HallenBerg, W. Borgert.  Not currently autogenerated from dia.dbk,
5716         but it shall be.
5718         * doc/en/usage-objects.xml: Fixed lower-case PNG tags.
5720         * doc/en/usage-objects-selecting.xml: Commented out empty note.
5722 2003-10-14  Lars Clausen  <lrclause@cs.uiuc.edu>
5724         * doc/pl/dia-manual.sgml: 
5725         * doc/en/dia-manual.xml: 
5726         * config.h.win32: 
5727         * NEWS: 
5728         * configure.in: 
5729         * dia.spec (Release): Pre7.
5731         * app/diapsrenderer.c (draw_string): Convert string to print based
5732         on current locale.  If conversion fails, fall back to UTF-8 (which
5733         is almost certain to be messy).
5735 2003-10-13  Lars Clausen  <lrclause@cs.uiuc.edu>
5737         * doc/pl/dia-manual.sgml: 
5738         * dia.spec (Release): 
5739         * configure.in: 
5740         * NEWS: 
5741         * config.h.win32: 
5742         * doc/en/dia-manual.xml: Pre6.
5744         * plug-ins/pstricks/render_pstricks.c (draw_string): Don't escape
5745         TeX chars in strings -- must be possible to use TeX text in there.
5746         Also avoids infinite loop bug (#124464) Will get option for this
5747         later.
5749 2003-10-11  Lars Clausen  <lrclause@cs.uiuc.edu>
5751         * shapes/Cisco/Makefile.am: Cisco shapes now install correctly.
5753         * doc/en/dia-manual.xml: 
5754         * doc/pl/dia-manual.sgml: 
5755         * dia.spec (Release): 
5756         * configure.in: 
5757         * config.h.win32: 
5758         * NEWS: pre5.
5760         * app/authors.h: Removed duplicate of M. C. Nelson.
5762         * plug-ins/pixbuf/pixbuf.c: Unique name for pixbuf export: gdkpixbuf.
5764         * app/export_png.c: Unique name for libart PNG export: png-libart.
5766         * app/render_eps.c: Unique names for the two eps export methods:
5767         eps-builtin, eps-pango.
5769         * lib/filter.h: Binary compatibility change: 
5770         Added unique name to export filters.  Can be NULL.
5771         * lib/filter.c (filter_get_by_name): Finding a filter by
5772         non-extension name.
5774         * app/app_procs.h: Changed prototype for do_convert.
5775         * app/app_procs.c (app_init): Support for non-extension file
5776         format selection for export.  Also allow extension to differ from
5777         that specified by the filters.  A bit of refactoring, too.
5779 2003-09-28  Steffen Macke <sdteffen@web.de>
5781         * makefile.msc: added target po to update the translations
5783 2003-09-27  Lars Clausen  <lrclause@cs.uiuc.edu>
5785         * config.h.win32: 
5786         * dia.spec (Release): 
5787         * NEWS: 
5788         * doc/pl/dia-manual.sgml: 
5789         * doc/en/dia-manual.xml: 
5790         Pre4 is given a short try.
5791         
5792         * configure.in: Give all necessary libs to PNG test.
5794         * lib/font.c: Added legacy entries for sans, serif and monospace.
5796         * app/app_procs.c (internal_plugin_init): 
5797         * app/render_eps.h: 
5798         * app/render_eps.c: 
5799         Added PS fonts output for Unix.
5801         * app/diapsrenderer.c (set_font): Adjusted height by the magic .7
5802         factor to make PS fonts stay in boxes.
5803         
5804 2003-08-03  Hans Breuer  <hans@breuer.org>
5806         * config.h.win32 : close the version string
5808         * lib/libdia.def : with color_white, color_black being static
5809         on win32 they can not be exported anymore either
5811         * lib/dialibartrenderer.c : text rendering is back on win32,
5812         only by Gdk though; almost a year seems to be enough to
5813         wait for my patch at bug #94791 to be accepted ...
5815 2003-09-23  Lars Clausen  <lrclause@cs.uiuc.edu>
5817         * shapes/network/{digitizing_board.png,plotter.png,
5818         laptop.png,telephone.png}: 22x22 icons.
5820 2003-09-22  Lars Clausen  <lrclause@cs.uiuc.edu>
5822         * doc/pl/dia-manual.sgml: 
5823         * doc/en/dia-manual.xml: 
5824         * dia.spec (Release): 
5825         * configure.in: 
5826         * config.h.win32: 
5827         * NEWS: 
5828         pre3 improves font rendering speed.
5830         * app/app_procs.c (app_init): Don't do pango init here, it's done
5831         on demand in font.c now.
5833         * lib/font.c: Load pango context on demand rather than during
5834         init/all the time strikes a better balance between working font
5835         size and speed.  Still need to cache width calculations.
5837 2003-09-18  Lars Clausen  <lrclause@cs.uiuc.edu>
5839         * lib/dia_xml.c: Enable pretty printing.  Should have been added
5840         on 8/12. 
5842 2003-09-11  Lars Clausen  <lrclause@cs.uiuc.edu>
5844         * lib/arrows.c (calculate_arrow_point): Adjust arrow line
5845         adjustment a bit for half diamond and open round.
5847         * RELEASE-PROCESS: Added note about notifying translators and
5848         maintainers. 
5850         * doc/pl/dia-manual.sgml: 
5851         * doc/en/dia-manual.xml: 
5852         * dia.spec (Release): 
5853         * configure.in: 
5854         * config.h.win32: 
5855         * NEWS:
5856         Update to 0.92-pre2.
5857         
5858 2003-09-10  Lars Clausen  <lrclause@cs.uiuc.edu>
5860         * lib/arrows.c (calculate_arrow_point): Some fixing-up of arrow
5861         calculation for half diamond and open round.
5863         * lib/arrows.c: 
5864         * objects/UML/component_feature.c: 
5865         * lib/arrows.h: Patch from W. Borgert <debacle@debian.org>: Use
5866         arrows instead of specific little hacks.  Much nicer, but damn
5867         there's a lot of arrows.
5869         * lib/dialibartrenderer.c (begin_render): 
5870         * app/render_libart.c (begin_render): Use correct DPI for screen
5871         (well, actually the default DPI of 75 for now).
5873         * app/display.h: Informative notes on the DDISPLAY_*_ZOOM macros.
5875         * lib/diagdkrenderer.c (draw_string): Some reformatting.
5877         * app/app_procs.c (app_init): Note on what should be done for the
5878         pango context now, only it doesn't work:(
5880         * lib/font.c (dia_font_new): Make sure to load fonts that are
5881         used, using a reasonable pango_context.  Also a comment on the
5882         global_zoom_factor, 
5884 2003-09-09  Lars Clausen  <lrclause@cs.uiuc.edu>
5886         * doc/pl/graphics/*.png:
5887         * doc/pl/Makefile.am: Added graphics to distro, avoiding empty
5888         loop (bug #121817).  PL translator may want to change the
5889         home_network png to be in Polish.  If the docs get translated into
5890         more languages, we'll want to find out how to share these things.
5892 2003-09-08  Lars Clausen  <lrclause@cs.uiuc.edu>
5894         * app/splash.c (app_splash_init): Patch from Sébastien Tricaud
5895         <stricaud@mwsp.net>: Use g_signal_* instead of gtk_signal_* in
5896         splash.
5898         * app/filedlg.c (file_save_as_callback): Put filename setting
5899         together.  (Preparation for allowing default save dir.)
5901         * app/paginate_psprint.c (diagram_print_ps): Use $PRINTER
5902         correctly this time:)
5904         * app/dia-props.c (diagram_properties_show): 
5905         * app/properties.c (properties_show): Make sure the
5906         dialogs are transient for the correct diagram.
5908 2003-09-07  Lars Clausen  <lrclause@cs.uiuc.edu>
5910         * configure.in: Make sure -lz -lm is passed into second png test
5911         as well (stupid AC_LINK_IFELSE can't take it as an argument).
5913         * plug-ins/xfig/xfig-import.c: Skip XFig comments to make certain
5914         comment-filled files readable.  Once we have a 'generic data'
5915         system, we can put comments in there.
5917 2003-09-06  Steffen Macke <sdteffen@web.de>
5919         * plug-ins/pstricks/render_pstricks.c(tex_escape_string): using
5920         g_string_sized_new() instead of g_string_new() to make it compile
5921         * app/Makefile.am: including dia.ico and dia.rc in the tarball
5922         * plug-ins/wmf/wmf.cpp (set_linestyle): In WMF maximum linewidth is 1 
5923         for non-solid linestyles - otherwise custom linestyles have to be used.
5925 2003-09-02  Steffen Macke <sdteffen@web.de>
5927         * app/commands.c(help_manual_callback): using dia-manual.chm instead of 
5928         dia.chm
5930 2003-09-02  Christian Neumair  <chris@gnome-de.org>
5932         * sheets/Pneumatic.sheet.in: Slight unification fix.
5934 2003-09-02  Lars Clausen  <lrclause@cs.uiuc.edu>
5936         * config.h.win32: 
5937         * configure.in: 
5938         * dia.spec (Release): 
5939         * doc/en/dia-manual.xml: 
5940         * doc/pl/dia-manual.sgml: 
5941         * NEWS: Update to 0.92-pre1.
5943         * app/properties.c (properties_key_event): Removing Esc/Enter
5944         handling for now, interferes to much with regular dialog usage.
5946         * plug-ins/pstricks/render_pstricks.c (tex_escape_string):
5947         Function to escape special TeX characters.  Not in use yet, as
5948         PSTricks output by default is TeX strings.  Should get a save-time
5949         selector. 
5951 2008-09-01  Steffen Macke <sdteffen@web.de>
5953         * lib/paper.h: explanatory comment on width and height
5955 2003-08-30  Steffen Macke <sdteffen@web.de>
5957         * lib/color.c:
5958         * lib/color.h: made color_white, color_black static on win32
5960 2003-08-28  Lars Clausen  <lrclause@cs.uiuc.edu>
5962         * configure.in (PNG_LIBS): Something in the png tests added an
5963         extra -lpng to $LIBS.  Saving old $LIBS to avoid that.
5965 2003-08-27  Lars Clausen  <lrclause@cs.uiuc.edu>
5967         * configure.in: Quote correctly for temporarily adding freetype
5968         cflags to CPPFLAGS.
5970         * app/preferences.c (prefs_save): Remove debugging g_print.
5972 2003-08-26  Lars Clausen  <lrclause@cs.uiuc.edu>
5974         * objects/flowchart/parallelogram.c (pgram_update_data):
5975         Directions for connections, better system for placing
5976         connectionpoints. 
5978 2003-08-25  Lars Clausen  <lrclause@cs.uiuc.edu>
5980         * lib/diagramdata.c (layer_find_closest_object_except): Look all
5981         the way through the object list, so the foremost object is selected.
5983         * lib/diagramdata.h: Removing dynamic_obj.h, it should only be
5984         included for diagramdata.c.
5986         * lib/prop_text.c (multistringprop_handle_key): Attempt at making
5987         newline in multistringprop not close the dialog.  Failed so far.
5989 2003-08-25  Steffen Macke <sdteffen@web.de>
5991         * app/commands.c: using CHM instead of HTML on win32 if available
5992         * lib/diagramdata.h: including dynamic_obj.h
5994 2003-08-25  Lars Clausen  <lrclause@cs.uiuc.edu>
5996         * app/properties.c (properties_key_event): Make Enter = Ok for
5997         properties dialogs.  Still some problems with this and Esc for
5998         Cancel, for instances escaping out of a menu closes the dialog.
6000         * objects/UML/association.c (association_get_properties): 
6001         * objects/UML/class_dialog.c (class_create_page): Grab appropriate
6002         focus. 
6004         * app/diapsft2renderer.c (draw_string): Use
6005         dia_font_scaled_build_layout to ensure similarity of text.
6007         * lib/diagramdata.c: Remove obj from dynobj list when removing
6008         from layer to avoid nasty race conditions.
6010         * app/undo.c (group_objects_revert): Make sure to unparent and
6011         remove from dynobj list when changing layers objects.
6013 2003-08-23  Steffen Macke <sdteffen@web.de>
6015         * plug-ins/wmf/wmf.cpp (draw_image): replaced BitBlt() with 
6016         StretchBlt(); fixes #92249
6017         
6018 2003-08-23  Lars Clausen  <lrclause@cs.uiuc.edu>
6020         * app/filedlg.c (file_save_as_callback): 
6021         * app/preferences.h: 
6022         * app/preferences.c (prefs_data): 
6023         * lib/diagramdata.h: 
6024         * lib/diagramdata.c (new_diagram_data): 
6025         * app/load_save.c (diagram_data_load): 
6026         Let the document remember whether it was compressed.  The user can
6027         still override this in the Save As... dialog, and that will still
6028         be remembered as the default for new diagrams.
6030 2003-08-23  Steffen Macke <sdteffen@web.de>
6032         * plug-ins/xslt/Makefile.am: added dia-uml2componentlist.xsl
6034 2003-08-22  Steffen Macke <sdteffen@web.de>
6036         * plug-ins/xslt/dia-uml.xsl:
6037         * plug-ins/xslt/dia-uml2componentlist.xsl: generate a HTML file with a
6038         table containing a list of components grouped by stereotype
6040 2003-08-21  Steffen Macke <sdteffen@web.de>
6042         * lib/makefile.msc: added connectionpoint.obj
6043         * lib/libdia.def: added connpoint_update, find_slope_directions
6044         * app/disp_callbacks.c: including scroll_tool.h
6045         * obj/makefile.msc: added component_feature.obj
6046         * app/paginate_gdiprint.c: fixed loop initialization in 
6047         paginate_gdiprint(); partial fix for bug #85831 - the scaling is still
6048         wrong
6050 2003-08-21  Lars Clausen  <lrclause@cs.uiuc.edu>
6052         * plug-ins/python/pydia-object.c (PyDiaObject_MoveHandle): Fix
6053         move_handle call.
6055         * lib/diagramdata.h: Colors added to prefs.
6056         * lib/diagramdata.c (new_diagram_data): Set diagram colors from prefs.
6057         New field for pagebreak color, which should
6058         behave the same as grid color and be settable for a diagram.
6060         * app/diagram.c (diagram_init): Update diagram pagebreak color
6061         from prefs. 
6063         * app/grid.c (pagebreak_draw): Draw using diagrams pagebreak
6064         colors. 
6066         * app/preferences.[ch]: Default diagram colors now #defines, so
6067         loading can use it.  Also, colors are now in NewDiagramData, so
6068         are passed nicely into new diagrams directly from prefs.  Yum.
6070         * app/load_save.c (diagram_data_write_doc, diagram_data_load): 
6071         Support for loading and saving grid and pagebreak colors with the
6072         diagram.  I'm inclined to make all the three Colors in diagram
6073         Color*s instead, so we can tell if they're specified for the
6074         diagram or merely the default setting.  There'd be no way for the
6075         user to tell if the color of a diagram is default, though, unless
6076         we add a 'reset to default' button to prefs.
6078         * app/dia-props.c: Adding widgets for dynamic grid, grid colour,
6079         pagebreak color.  Unsensitizing grid size when dynamic.
6081         * objects/UML/component.c: Patch from Krzysztof Foltman
6082         <kfoltman@onet.pl>: Add two new connectionpoints and adjust a
6083         third.  Makes the left side connections actually be on the line
6084         (gasp!). 
6086 2003-08-20  Steffen Macke <sdteffen@web.de>
6088         * lib/libdia.def: added layer_find_closest_object_except
6089         * lib/diagramdata.c: added ; after GOTO to make MSVC compile 
6091 2003-08-20  Lars Clausen  <lrclause@cs.uiuc.edu>
6093         * app/tool.h: 
6094         * app/tool.c: 
6095         * app/scroll_tool.c: 
6096         * app/interface.c: 
6097         * app/disp_callbacks.c: 
6098         * app/create_object.h: 
6099         * app/create_object.c: Patch from Krzysztof Foltman
6100         <kfoltman@onet.pl>: Middle button can scroll transiently when
6101         menu-bar-mode is on, and mouse wheels (hopefully) can scroll in
6102         various ways.
6104         * app/authors.h: 
6105         * sheets/UML.sheet.in: 
6106         * sheets/UML/receptacle.xpm: 
6107         * sheets/UML/Makefile.am: 
6108         * sheets/UML/eventsource.xpm: 
6109         * sheets/UML/eventsink.xpm: 
6110         * objects/UML/pixmaps/facet.xpm: 
6111         * objects/UML/uml.c (dia_plugin_init): 
6112         * objects/UML/Makefile.am (libuml_objects_la_SOURCES): 
6113         * objects/UML/component_feature.c: 
6114         Patch from W. Borgert <debacle@debian.org>:  Add event sources and
6115         event sinks.
6116         
6117 2003-08-19  Lars Clausen  <lrclause@cs.uiuc.edu>
6119         * lib/object.h: Turning some comments into doxygen style.
6121         * lib/object_defaults.c (dia_object_defaults_load)
6122         (dia_object_default_get, dia_object_default_create): 
6123         Fixing up existing documentation.
6125         * lib/object.h: Doxygen style documentation begun.
6127         * app/create_object.c: 
6128         * app/undo.c: 
6129         * app/connectionpoint_ops.c: 
6130         * app/disp_callbacks.c: 
6131         * app/modify_tool.c: 
6133         * objects/network/wanlink.c (wanlink_move_handle): 
6134         * objects/network/bus.c (bus_move_handle): 
6136         * objects/flowchart/parallelogram.c (pgram_move_handle): 
6137         * objects/flowchart/ellipse.c (ellipse_move_handle): 
6138         * objects/flowchart/diamond.c (diamond_move_handle): 
6139         * objects/flowchart/box.c (box_move_handle): 
6141         * objects/custom/custom_object.c (custom_move_handle): 
6143         * objects/chronogram/chronoref.c (chronoref_move_handle): 
6144         * objects/chronogram/chronoline.c (chronoline_move_handle): 
6146         * objects/SADT/box.c (sadtbox_move_handle): 
6147         * objects/SADT/arrow.c (sadtarrow_move_handle): 
6148         * objects/SADT/annotation.c (annotation_move_handle): 
6150         * objects/Misc/analog_clock.c (analog_clock_move_handle): 
6152         * objects/GRAFCET/vergent.c (vergent_move_handle): 
6153         * objects/GRAFCET/vector.c (arc_move_handle): 
6154         * objects/GRAFCET/transition.c (transition_move_handle): 
6155         * objects/GRAFCET/step.c (step_move_handle): 
6156         * objects/GRAFCET/condition.c (condition_move_handle): 
6157         * objects/GRAFCET/action.c (action_move_handle): 
6159         * objects/FS/function.c: 
6160         * objects/FS/flow.c: 
6161         * objects/FS/flow-ortho.c (orthflow_move_handle): 
6162         * objects/FS/flow-poly.c (flow_move_handle): 
6164         * objects/UML/usecase.c (usecase_move_handle): 
6165         * objects/UML/state_term.c (state_move_handle): 
6166         * objects/UML/state.c (state_move_handle): 
6167         * objects/UML/small_package.c (smallpackage_move_handle): 
6168         * objects/UML/realizes.c (realizes_move_handle): 
6169         * objects/UML/object.c (objet_move_handle): 
6170         * objects/UML/note.c (note_move_handle): 
6171         * objects/UML/node.c (node_move_handle): 
6172         * objects/UML/message.c (message_move_handle): 
6173         * objects/UML/lifeline.c (lifeline_move_handle): 
6174         * objects/UML/large_package.c (largepackage_move_handle): 
6175         * objects/UML/implements.c (implements_move_handle): 
6176         * objects/UML/generalization.c (generalization_move_handle): 
6177         * objects/UML/fork.c (fork_move_handle): 
6178         * objects/UML/dependency.c (dependency_move_handle): 
6179         * objects/UML/constraint.c (constraint_move_handle): 
6180         * objects/UML/compprop.c (compprop_move_handle): 
6181         * objects/UML/component.c (component_move_handle): 
6182         * objects/UML/branch.c (branch_move_handle): 
6183         * objects/UML/association.c (association_move_handle): 
6184         * objects/UML/actor.c (actor_move_handle): 
6185         * objects/UML/activity.c (state_move_handle): 
6186         * objects/UML/class.c (umlclass_move_handle): 
6188         * objects/standard/ellipse.c (ellipse_move_handle): 
6189         * objects/standard/zigzagline.c (zigzagline_move_handle): 
6190         * objects/standard/textobj.c (textobj_move_handle): 
6191         * objects/standard/polyline.c (polyline_move_handle): 
6192         * objects/standard/polygon.c (polygon_move_handle): 
6193         * objects/standard/line.c (line_move_handle): 
6194         * objects/standard/image.c (image_move_handle): 
6195         * objects/standard/bezier.c (bezierline_move_handle): 
6196         * objects/standard/arc.c (arc_move_handle): 
6197         * objects/standard/beziergon.c (beziergon_move_handle): 
6198         * objects/standard/box.c (box_move_handle): 
6199         
6200         * objects/ER/relationship.c (relationship_move_handle): 
6201         * objects/ER/participation.c (participation_move_handle): 
6202         * objects/ER/entity.c (entity_move_handle): 
6203         * objects/ER/attribute.c (attribute_move_handle): 
6204         
6205         * lib/polyshape.c (polyshape_move_handle): 
6206         * lib/polyshape.h: 
6207         * lib/orth_conn.c (orthconn_move_handle): 
6208         * lib/orth_conn.h: 
6209         * lib/neworth_conn.c (neworthconn_move_handle): 
6210         * lib/neworth_conn.h: 
6211         * lib/element.c (element_move_handle): 
6212         * lib/element.h: 
6213         * lib/connection.c (connection_move_handle): 
6214         * lib/connection.h: 
6215         * lib/beziershape.c (beziershape_move_handle): 
6216         * lib/beziershape.h: 
6217         * lib/bezier_conn.c (bezierconn_move_handle): 
6218         * lib/bezier_conn.h: 
6219         *BINARY COMPATIBILITY CHANGE*
6220         Update prototype for *_move_handle() to include connectionpoint,
6221         and also pass on modifiers.  Pass in connectionpoint where
6222         applicable. 
6223         
6224         * lib/dummy_dep.h (dummy_dep): Adding dummy dependencies for new
6225         file connectionpoint.c.
6227 2003-08-17  Danilo Å egan  <dsegan@gmx.net>
6229         * configure.in: Added "sr" and "sr@Latn" to ALL_LINGUAS.
6231 2003-08-15  Lars Clausen  <lrclause@cs.uiuc.edu>
6233         * lib/object.c (object_copy): Use g_malloc0 instead of g_malloc.
6235         * lib/beziershape.c (beziershape_update_data): Autoroute
6236         directions for beziershapes!
6238         * lib/connectionpoint.c (find_slope_directions): 
6239         * lib/connectionpoint.h: Function for finding the available
6240         directions on a slope.
6242         * lib/polyshape.c: Reasonable directions for
6243         connectionpoints.       
6245 2003-08-14  Lars Clausen  <lrclause@cs.uiuc.edu>
6247         * objects/Misc/analog_clock.c (analog_clock_update_arrow_tips): 
6248         * objects/GRAFCET/vergent.c (vergent_update_data): 
6249         * objects/GRAFCET/transition.c (transition_update_data): 
6250         * objects/GRAFCET/action.c (action_update_data): 
6251         * objects/GRAFCET/step.c (step_update_data): 
6252         * objects/FS/function.c (function_update_data): 
6253         * lib/connpoint_line.c (connpointline_putonaline): 
6254         * objects/ER/attribute.c (attribute_update_data): 
6255         * objects/ER/entity.c (entity_update_data): 
6256         * objects/ER/relationship.c (relationship_update_data): 
6257         * objects/chronogram/chronoline.c (chronoline_update_data): Set
6258         directions for connection points.
6260         * objects/UML/component.c (component_create): Set to allow
6261         parenting. 
6263         * app/create_object.c (create_object_button_press): 
6264         * app/diagram.[ch] (diagram_find_clicked_object_except): 
6265         * lib/diagramdata.[ch] (layer_find_closest_object_except): 
6266         Avoid parenting to objects you're connecting to (otherwise you
6267         couldn't make a connection out of a parenting object).  To do
6268         this, added functions to find the nearest object except a given
6269         list of objects.
6270         
6271         * app/render_libart.c: Rearrange libart include to avoid multiple
6272         include program (and put libart includes inside #ifdef!)
6274 2003-08-13  Lars Clausen  <lrclause@cs.uiuc.edu>
6276         * lib/dialibartrenderer.c: Don't include art_config.h if others
6277         also do, as it isn't #ifdef'd.
6279         * objects/flowchart/ellipse.c (ellipse_update_data): Add
6280         directions for connection points.
6282 2003-08-12  Lars Clausen  <lrclause@cs.uiuc.edu>
6284         * objects/flowchart/box.c (box_update_data): Add directions, use
6285         connpoint_update. 
6286         (box_load): Use g_malloc0.
6288         * lib/Makefile.am (libdia_la_SOURCES):
6289         * lib/connectionpoint.c (connpoint_update): 
6290         Function to call to update a connection point info in _update_data().
6291         
6292         * lib/connectionpoint.h: Convenience DIR_ macros.
6294         * app/preferences.c (prefs_data): Make pretty formatted XML the
6295         default.
6297         * lib/dialibartrenderer.c: 
6298         * app/render_libart.c: Make sure art_config.h is included, cause
6299         some libart headers are broken.
6301         * configure.in (HAVE_FREETYPE): Restore CPPFLAGS to old value
6302         after test.  Add freetype-config cflags to cflags variable.
6304 2003-08-11  Lars Clausen  <lrclause@cs.uiuc.edu>
6306         * app/authors.h: Credits for Krzysztof.
6308         * sheets/Flowchart.sheet.in: Updated descriptions from Krzysztof
6309         Foltman <kfoltman@onet.pl>.  It occurs to me that the name (rather
6310         than the description) is visible in the title of the properties
6311         dialog.  That ought to be a short description (translatable),
6312         though we still want long descriptions for the tooltips.  Hmmm...
6314         * configure.in: Updated to use AC_LINK_IFELSE instead of
6315         AC_TRY_COMPILE, also force to link to check libs on Solaris.
6317         * objects/ER/entity.c (entity_load): 
6318         * objects/ER/attribute.c (attribute_load): 
6319         * lib/attributes.c (attributes_set_default_font): 
6320         Check if font is non-null before unreffing.
6321         
6322 2003-08-08  Lars Clausen  <lrclause@cs.uiuc.edu>
6324         * app/diagram.c (diagram_ungroup_selected) 
6325         (diagram_group_selected): Use the undo apply to make sure grouping
6326         and ungrouping is done in consistent manners.  This removes a fair
6327         amount of duplicated code from diagram.c.
6329         * app/undo.c (ungroup_objects_revert, ungroup_objects_apply) 
6330         (group_objects_revert, group_objects_apply): Working undo/redo for
6331         diagram tree updates.  The initial actions still don't quite work.
6333 2003-08-07  Lars Clausen  <lrclause@cs.uiuc.edu>
6335         * app/create_object.c (create_object_button_press): 
6336         * app/undo.[ch]: 
6337         * app/diagram.c: Undo support for parenting.  Uses apply/revert in
6338         undo only for manipulating the parent/child relationships.  Things
6339         like removing an object doesn't use the undo functions for
6340         parenting, so any updates to come (like to diagramtree) should be
6341         done in those, too.
6343 2003-08-03  Hans Breuer  <hans@breuer.org>
6345         * app/create_object.c : minor formating and g_new0 for
6346         tool creation
6348         * lib/bezier_conn.[hc] lib/beziershape.[hc]
6349           lib/prop_geomtypes.c (prop_geomtypes_register)
6350           objects/standard/bezier.c objects/standard/beziergon.c :
6351         ability to set bezpoints via StdProp api
6353         * plug-ins/python/pydia-property.c : convert list of tuples
6354         to BEZPOINTARRAY
6356         *  plug-ins/python/diasvg_import.py : use it to
6357         implement part of path parsing. Also minor improvements
6358         like inheritance of group attributes to members,
6359         whitespace, title and style:text/css ignoring ;-)
6361 2003-08-02  Hans Breuer  <hans@breuer.org>
6363         * lib/connections.c (connection_move_handle): return
6364         something to make it compile
6365         * lib/object.c(190) : error C4033: 'object_list_move_delta_r' 
6366         must return a value -> dito
6367         [Is there a warnings-as-errors switch we could use with gcc 
6368          to avoid such in future ?]
6370         * plug-ins/python/pydia-object.h : define *_Check macros
6371         * plug-ins/python/diamodule.c : provide dia.group_create()
6372         * plug-ins/python/pydia-diagramdata.c : add 
6373         DiaDiagramData.add_layer()
6374         * plug-ins/python/pydia-property.c : allow to set color by
6375         tuple of doubles
6377         *  plug-ins/python/diasvg_import.py : based on the above
6378         implement a) group support, b) rgb(1,2,3) color handling,
6379         and somewhat fishy data:image/png;base64 support (create
6380         temporary files from inline image data)
6381         d) dump the import errors as text into an 'Error' layer
6383         *  plug-ins/python/diasvg.py : add xmlns:xlink, removed a
6384         stray " in draw_rect and corrected error message formating 
6386         * plug-ins/pydia/pydia-geometry.c : removed ## to make it
6387         compile with gcc 3.3, fixes bug #117204. Thanks to Daniel 
6388         Jacobowitz.
6389         
6390 2003-08-01  Hubert Figuiere  <hfiguiere@teaser.fr>
6392         * app/magnify.c (create_magnify_tool): allocate with g_new0()
6394         * app/preferences.c (prefs_create_dialog): use checkboxes for boolean 
6395         preferences values (see bug 118570). Also group items into a GtkFrame.
6397 2003-07-31  Lars Clausen  <lrclause@cs.uiuc.edu>
6399         * app/menus.c:
6400         * app/menus.h:
6401         * app/commands.h: 
6402         * app/commands.c (objects_unparent_children_callback): 
6403         * app/diagram.h: 
6404         * app/diagram.c (diagram_unparent_selected,
6405         (diagram_update_menu_sensitivity): 
6406         Added unparenting of single children.
6408         * lib/bezier_conn.c:
6409         * lib/bezier_conn.h:
6410         * lib/beziershape.c:
6411         * lib/beziershape.h:
6412         * lib/connection.c:
6413         * lib/connection.h:
6414         * lib/element.c:
6415         * lib/element.h:
6416         * lib/group.c:
6417         * lib/neworth_conn.c:
6418         * lib/neworth_conn.h:
6419         * lib/object.h:
6420         * lib/orth_conn.h:
6421         * lib/poly_conn.c:
6422         * lib/poly_conn.h:
6423         * lib/polyshape.c:
6424         * lib/polyshape.h:
6425         * objects/EML/instantiation.c:
6426         * objects/EML/interaction-ortho.c:
6427         * objects/EML/interaction.c:
6428         * objects/EML/process.c:
6429         * objects/ER/attribute.c:
6430         * objects/ER/entity.c:
6431         * objects/ER/participation.c:
6432         * objects/ER/relationship.c:
6433         * objects/FS/flow-ortho.c:
6434         * objects/FS/flow-poly.c:
6435         * objects/FS/flow.c:
6436         * objects/FS/function.c:
6437         * objects/GRAFCET/action.c:
6438         * objects/GRAFCET/condition.c:
6439         * objects/GRAFCET/step.c:
6440         * objects/GRAFCET/transition.c:
6441         * objects/GRAFCET/vector.c:
6442         * objects/GRAFCET/vergent.c:
6443         * objects/Misc/analog_clock.c:
6444         * objects/SADT/annotation.c:
6445         * objects/SADT/arrow.c:
6446         * objects/SADT/box.c:
6447         * objects/UML/activity.c:
6448         * objects/UML/actor.c:
6449         * objects/UML/association.c:
6450         * objects/UML/branch.c:
6451         * objects/UML/class.c:
6452         * objects/UML/classicon.c:
6453         * objects/UML/component.c:
6454         * objects/UML/constraint.c:
6455         * objects/UML/dependency.c:
6456         * objects/UML/fork.c:
6457         * objects/UML/generalization.c:
6458         * objects/UML/implements.c:
6459         * objects/UML/large_package.c:
6460         * objects/UML/lifeline.c:
6461         * objects/UML/message.c:
6462         * objects/UML/node.c:
6463         * objects/UML/note.c:
6464         * objects/UML/object.c:
6465         * objects/UML/realizes.c:
6466         * objects/UML/small_package.c:
6467         * objects/UML/state.c:
6468         * objects/UML/state_term.c:
6469         * objects/UML/usecase.c:
6470         * objects/chronogram/chronoline.c:
6471         * objects/chronogram/chronoref.c:
6472         * objects/custom/custom_object.c:
6473         * objects/flowchart/box.c:
6474         * objects/flowchart/diamond.c:
6475         * objects/flowchart/ellipse.c:
6476         * objects/flowchart/parallelogram.c:
6477         * objects/network/bus.c:
6478         * objects/network/wanlink.c:
6479         * objects/standard/arc.c:
6480         * objects/standard/bezier.c:
6481         * objects/standard/beziergon.c:
6482         * objects/standard/box.c:
6483         * objects/standard/ellipse.c:
6484         * objects/standard/image.c:
6485         * objects/standard/line.c:
6486         * objects/standard/polygon.c:
6487         * objects/standard/polyline.c:
6488         * objects/standard/textobj.c:
6489         * objects/standard/zigzagline.c:
6490         Binary compatibility update:  Added return value for foo_move() and
6491         foo_move_handle().  Orthconn derivatives also returns change from
6492         orthconn_move_handle().
6493         
6494         * lib/orth_conn.c: Undo support for autorouting.  Neworthconn
6495         doesn't support it yet.
6497         * lib/object.c (object_list_move_delta_r, object_list_move_delta):
6498         Add returning ObjectChange from object moves.  Needs to handle
6499         multiple object moves.
6501         * app/modify_tool.c (modify_motion, modify_release): Add
6502         ObjectChange from move & move_handle to undo stack.
6504         * objects/EML/instantiation.c (instantiation_move): Removing
6505         duplicate move & update.
6507 2003-07-30  Lars Clausen  <lrclause@cs.uiuc.edu>
6509         * plug-ins/xfig/xfig-export.c: Added support for arrow head
6510         export.  Many arrow types not supported by XFig, replacing those
6511         with standard arrows.  Not sure whether it'd be better to render
6512         them as a group of lines instead.  You'd lose the arrow-ness for
6513         further editing, but preserve the actual shape of it.  Also added
6514         support for dash length.
6516         * plug-ins/xfig/xfig-import.c: Added support for dash length settings.
6518         * plug-ins/xfig/fig-format-3.2: Added copy of Fig format
6519         description for version 3.2, for reference.
6521         * plug-ins/xfig/xfig-import.c: Added import of arrows.
6523         * app/menus.c: Removed prefs item from Gnome diagram menu.  Made
6524         Align Vertical Adjacent call _v rather than _h.
6526 2003-07-29  Hubert Figuiere  <hfiguiere@teaser.fr>
6528         * app/scroll_tool.c (create_scroll_tool): 
6529         * app/modify_tool.c (create_modify_tool): use g_new0() to
6530         initialize the tool
6532 2003-07-29  Lars Clausen  <lrclause@cs.uiuc.edu>
6534         * configure.in: Added proper settings for XSLT_LIBS and XSLT_CFLAGS.
6536 2003-07-24  Pablo Saratxaga  <pablo@mandrakesoft.com>
6538         * configure.in: Added Macedonian (mk) to ALL_LINGUAS
6540 2003-07-23  Dmitry G. Mastrukov  <dmitry@taurussoft.org>
6542         * configure.in: Added Belarusian to ALL_LINGUAS.
6544 2003-07-19  Hans Breuer  <hans@breuer.org>
6546         [
6547          Make the xslt plug-in work on win32, too. It appears
6548          to require a quite recent version of libxml and libxslt,
6549          otherwise windoze pathes aren't translated correctly
6550          during file processing
6551         ]
6553         * plug-ins/xslt/xslt.h : #include <glib.h> before 
6554         using G_OS_WIN32
6556         * plug-ins/xslt/xslt.c : plugged some memory leaks and do
6557         the 'script' file finding similar to how it is done
6558         with the python scripts (no need for hardcoded pathes,
6559         removed the 'plugin' part from the path)
6561         * plug-ins/xslt/stylesheets.xml : added again. It does
6562         not have any path but only the pure filename again
6564         * plug-ins/xslt/stylesheets.xml.in : removed
6566         * plug-ins/xslt/Makefile.am : removed 'plugin' and the
6567         rule to process stylesheets.xml.in
6569         * plug-ins/makefile.msc : added xslt
6571 2003-07-19  Hans Breuer  <hans@breuer.org>
6573         Finally Dia learned to remember the recent selected sheet
6575         * app/preferences.[hc] : added prefs.recent_sheet
6576         * app/interface.c : restore and remember the sheet-option-menu
6577         history, but only if the respective number is stiil available.
6578         This additional adds robustness against running Dia without
6579         any sheet (e.g. installation problems)
6580         * app/app_procs.c : call prefs_safe() in app_exit() to remember
6581         changes which are not done by the prefernces dialog
6583         * app/diagram_tree_menu.c app/diagram_tree_menu_callbacks.c :
6584         removed every call (especially the conditional ones) to prefs_safe().
6585         Before prefs_safe() was called _many_ times during Dia startup
6587 2003-07-18  Hans Breuer  <hans@breuer.org>
6589         * app/makefile.msc lib/makefile.msc lib/libdia.def :
6590         updated win32 build
6592         * lib/color.c : use gtk_widget_get_default_visual();
6593         as suggested in #114536
6595         * app/interface.c app/disp_callbacks.c :
6596         moved round_up () to the latter file where it is used
6598         * app/linewidth_area.c : #include "interface.h" for
6599         interface_get_toolbox_shell()
6601 2003-07-18  Hubert Figuiere  <hfiguiere@teaser.fr>
6603         * plug-ins/pixbuf/.cvsignore
6604         * shapes/Cisco/.cvsignore: 
6605         added cvsignore
6607 2003-07-17  Lars Clausen  <lrclause@cs.uiuc.edu>
6609         * app/dia-props.c (diagram_properties_retrieve): Use
6610         diagram_get_name() to add the diagram name to the diagram
6611         properties dialog.
6613         * app/diagram.h: 
6614         * app/diagram.c (diagram_get_name): New function to get a
6615         reasonable diagram name.
6617         * lib/diagramdata.h: Added major_lines, dynamic and colour to grid
6618         info.  Still need to be able to set dynamic grid.  Also ought to
6619         follow Gnome style and have instant apply.
6621         * app/preferences.h: 
6622         * app/preferences.c (prefs_data): Remove option to use stippled
6623         grid, add option for major line offset.  Default to 5 minor lines
6624         per major line.
6625         Add option for dynamically sized grid.
6627         * app/display.c (ddisplay_render_pixmap): Call pagebreak_draw as well.
6629         * app/grid.c: Pagebreak drawing separated out.  Grid drawing using
6630         stippled/solid to display minor/major grid lines.  Line drawing in
6631         separate functions away from calculating line distance.
6633         * app/grid.h: Split page break drawing out of grid_draw.
6635         * app/layer_dialog.c (layer_dialog_show): Patch from Hubert
6636         Figuiere <hfiguiere@teaser.fr>:  Layer dialog show go to front
6637         when menu item is selected.
6639 2003-07-15  Lars Clausen  <lrclause@cs.uiuc.edu>
6641         * configure.in: Removed -Winline flag to make way for important
6642         warnings. 
6644         * samples/UML-demo.dia: Adjusted for 0.91 font size, saved as
6645         non-compressed.  Should fix bug #117381, also look prettier.
6646         
6647         * Makefile.am: 
6648         * dia.desktop.in: Patch from Mark McLoughlin <mark@skynet.ie>:
6649         Set up desktop info more properly.
6651 2003-07-13  Lars Clausen  <lrclause@cs.uiuc.edu>
6653         * activity.c:
6654         * actor.c:
6655         * branch.c:
6656         * class.c:
6657         * classicon.c:
6658         * component.c:
6659         * large_package.c:
6660         * lifeline.c:
6661         * node.c:
6662         * note.c:
6663         * object.c:
6664         * small_package.c:
6665         * state.c:
6666         * state_term.c:
6667         * usecase.c: 
6668         Autorouting directions patch from Krzysztof Foltman
6669         <kfoltman@onet.pl>.
6671         * app/menus.c: Wrong GNOME paren fixed.  Correct callbacks for
6672         GNOME parent menu items.
6673         
6674         * app/authors.h: Added Vadim to contributors list.
6676 2003-07-12  Lars Clausen  <lrclause@cs.uiuc.edu>
6678         * app/commands.[ch]: 
6679         * app/create_object.c: 
6680         * app/disp_callbacks.[ch]: 
6681         * app/diagram.[ch]: 
6682         * app/interface.c: 
6683         * app/load_save.c: 
6684         * app/menus.[ch]:
6685         * app/modify_tool.c
6686         * app/undo.[ch]:
6687         * lib/Makefile.am:
6688         * lib/group.c: 
6689         * lib/object.[ch]: 
6690         * lib/parent.[ch]:
6691         * objects/UML/large_package.c: Patch from Vadim Berezniker
6692         <vadim@berezniker.com>: 
6693         Objects may "parent" other objects, i.e. contain them within
6694         themselves, restrain them and move them along.  Some more stuff is
6695         needed, such as selection and individual unparenting.  This adds
6696         parenting to UML - Large Package rather than Box.
6698 2003-07-11  Lars Clausen  <lrclause@cs.uiuc.edu>
6700         * app/linewidth_area.c: Patch from Krzysztof Foltman
6701         <kfoltman@onet.pl>: Make linewidth dialog conform to HIG (well,
6702         conform more, at least:).
6704         * plug-ins/metapost/render_metapost.[ch] : Applied patch from
6705         Chris Sperandio <sperandi@eng.usf.edu>:  Fixed linewidths and
6706         arcs.  Implemented images (though there is some pixelization and
6707         banding in the output).  Changed output file format to be a little
6708         more readable.  
6710         * app/app_procs.c (app_exit): Added message for double exit, which
6711         shouldn't happen any more.  Also preventing strange g_object_unref
6712         messages by having a printf after gtk_main_quit.  This is really
6713         weird.
6715         * app/interface.c (toolbox_delete): Avoid double app_exit call by
6716         removing handler for destroy when delete is called.
6718 2003-07-07  Lars Clausen  <lrclause@cs.uiuc.edu>
6720         * app/display.h: 
6721         * app/display.c (ddisplay_scroll_to_object,
6722         ddisplay_scroll_center_point):  New function for easy scrolling to
6723         object or point.
6725 2003-07-06  Lars Clausen  <lrclause@cs.uiuc.edu>
6727         * plug-ins/xslt/Makefile.am: Patch from Hubert Figuiere:  Add
6728         $(srcdir) on stylesheets.xml.
6730         * app/menus.c: Patch from Hubert Figuiere: Adds help menu to
6731         diagram menus (since they're at the top by default now).  Also
6732         move the Properties... menu item from Dialogs to Objects.  Dialogs
6733         menu should disappear at some point.
6735         * autogen.sh: Patch from Hubert Figuiere: Don't automatically call
6736         ./configure from ./autogen.sh, as configure may need to be run
6737         from a different directory.  (Also more standard this way.)
6739         * app/app_procs.c (app_init): 
6740         * app/Makefile.am (INCLUDES): Gnome standardization patch from
6741         Alex. 
6743 2003-07-03  Lars Clausen  <lrclause@cs.uiuc.edu>
6745         * objects/flowchart/parallelogram.c (pgram_update_data):
6746         Left/right alignment for parallelograms.  Doesn't use all
6747         available space, but then pgrams also ignore their shear value.
6748         This thing needs a loving hand.
6750 2003-07-01  Hans Breuer  <hans@breuer.org>
6752         * lib/properties.h : introduce PROP_FLAG_OPTIONAL
6753         * lib/proplist.c : don't complain if optional attr is missing
6754         * lib/orth_conn.h : make "orth_autoroute" optional to
6755         stop complaining with older files.
6757 2003-06-13  Guntupalli Karunakar  <karunakar@freedomink.org>
6759         * configure.in: Added "ml" for Malayalam in ALL_LINGUAS.
6761 2003-06-05  Andrew Halper  <ashalper@cox.net>
6763         * app/diagram_tree.c : add scrolling of drawing area
6764         to desired object on "Locate".  Patch modified to use new ddisplay
6765         function ddisplay_scroll_to_object().
6767 2003-06-11  Lars Clausen  <lars@raeder.dk>
6769         * lib/diagramdata.h: Added major_lines, dynamic and colour to grid
6770         info.  Before next version, the grid dialog (view dialog, really)
6771         must be redone to allow a) instant apply, b) apply to all
6772         diagrams, and c) setting colour, dynamic, major lines.
6774         * app/preferences.h: 
6775         * app/preferences.c (prefs_data): Remove option to use stippled
6776         grid, add option for major line offset.  Default to 5 minor lines
6777         per major line.
6778         Add option for dynamically sized grid.
6780         * app/display.c (ddisplay_render_pixmap): Call pagebreak_draw as well.
6782         * app/grid.c: Pagebreak drawing separated out.  Grid drawing using
6783         stippled/solid to display minor/major grid lines.  Line drawing in
6784         separate function away from calculating line distance.
6786         * app/grid.h: Split page break drawing out of grid_draw.
6788 2003-05-15  Hans Breuer  <hans@breuer.org>
6790         * plug-ins/python/diasvg.py : add xlink definition,
6791         also avoid to put spaces into attribute values. At least
6792         Sodipodi doesn't like them in width/height attributes
6794         * plug-ins/python/diasvg_import.py : add simple scaling.
6795         Some (more) handling for <svg>, <desc>, <circle>        
6797         * plug-ins/python/scascale.py : (new file) which does
6798         some experimental scaling via StdProp api
6800         * plug-ins/python/pydia-cpoint.c 
6801           plug-ins/python/pydia-handle.c : return PyDiaPoint for
6802         obj.pos not simple tuples. PyDiaPoint has a tuple interface
6803         so this may even be api compatible ...
6805 2003-05-11  Hans Breuer  <hans@breuer.org>
6807         * app/line_area.c : add window position persitence
6809         * lib/poly_conn.[hc] lib/polyshape.[hc] : allow to set 
6810         'poly_points' via StdProp api
6811         * lib/neworth_conn.h : don't rely on OrthConn and 
6812         NewOrtConn having the same struct offsets
6814         * lib/properties.h : introduce PROP_FLAG_WIDGET_ONLY
6815         to help separating 'useful' properies - in terms of
6816         the PyDia access
6818         * objects/custom/custom_object.c
6819           objects/UML/*.c
6820         add the missing prop_desc_list_calculate_quarks to
6821         all the *_describe_props()
6823         * objects/standard/beziergon.c objects/standard/bezier.c :
6824         explicit initializtion of default_user_data
6825         * objects/standard/polygon.c objects/standard/polyline.c :
6826         Same here. Also use POLY<CONN|SHAPE>_COMMON_PROPERTIES
6828         * plug-ins/python/diamodule.c : implement dia.register_import
6830         * plug-ins/python/makefile.msc : need to link with Pango
6831         for pango_color_parse()
6833         * plug-ins/python/pydia-property.c : add a bunch of type
6834         conversions to PyDiaProperty_ApllyToObject()
6836         * plug-ins/python/diasvg_import.py : (new file) which currently
6837         is mainly a stress test for PyDia but for some files already
6838         produces better results than svg-import.c
6840 2003-05-06  Lars Clausen  <lrclause@cs.uiuc.edu>
6842         * objects/UML/uml.c (uml_get_operation_string): Avoid ':' on
6843         type-less operations.
6845 003-05-03  Hasbullah Bin Pit  <sebol@ikhlas.com>
6847         * configure.in(ALL_LINGUAS): Added "ms".
6849 2003-05-01  Lars Clausen  <lrclause@cs.uiuc.edu>
6851         * plug-ins/xslt/xslt.c (xslt_ok): 
6852         * plug-ins/shape/shape-export.c (new_shape_renderer): 
6853         * plug-ins/svg/render_svg.c (new_svg_renderer): 
6854         * plug-ins/hpgl/hpgl.c (export_data): 
6855         * plug-ins/dxf/dxf-export.c (export_dxf): 
6856         * plug-ins/metapost/render_metapost.c (export_metapost): 
6857         * plug-ins/pstricks/render_pstricks.c (export_pstricks): 
6858         * plug-ins/xfig/xfig-export.c (export_fig): 
6859         * plug-ins/wpg/wpg.c (export_data): 
6860         * plug-ins/cgm/cgm.c (export_cgm): 
6861         * app/render_eps.c (export_eps): 
6862         * app/export_png.c (export_png_ok): 
6863         * app/load_save.c (diagram_data_save): Adding and standardizing
6864         output file error messages to include fopen error message.
6866 2003-05-01  Steffen Macke <sdteffen@web.de>
6868         * app/persistence.c: do not use unistd.h for MSVC build
6870 2003-04-30  Lars Clausen  <lrclause@cs.uiuc.edu>
6872         * sheets/Assorted.sheet.in
6873         * sheets/Circuit.sheet.in
6874         * sheets/Contact.sheet.in
6875         * sheets/EML.sheet.in
6876         * sheets/ER.sheet.in
6877         * sheets/Electric.sheet.in
6878         * sheets/FS.sheet.in
6879         * sheets/Flowchart.sheet.in
6880         * sheets/GRAFCET.sheet.in
6881         * sheets/Logic.sheet.in
6882         * sheets/MSE.sheet.in
6883         * sheets/Misc.sheet.in
6884         * sheets/Pneumatic.sheet.in
6885         * sheets/SADT.sheet.in
6886         * sheets/SDL.sheet.in
6887         * sheets/UML.sheet.in
6888         * sheets/chronogram.sheet.in
6889         * sheets/ciscohub.sheet.in
6890         * sheets/ciscomisc.sheet.in
6891         * sheets/cisconetwork.sheet.in
6892         * sheets/ciscorouter.sheet.in
6893         * sheets/civil.sheet.in
6894         * sheets/network.sheet.in
6895         * sheets/sybase.sheet.in:
6896         Patch from Jan-Willem Harmanny <jwharmanny@zeelandnet.nl>
6897         standardizes shape descriptions to use no articles, no 'create
6898         ...'.
6899         
6900         * app/interface.c (tool_data): Standard objects follow same
6901         standard as sheets.
6903 2003-04-29  Lars Clausen  <lrclause@cs.uiuc.edu>
6905         * app/color_area.c (color_area_edit): More informative title on
6906         color selection dialog.
6908         * app/disp_callbacks.c (ddisplay_drop_object): Update menu
6909         sensitivity when dropping object in.  Also reset tool to pointer.
6911         * objects/flowchart/diamond.c (diamond_update_data): 
6912         * objects/flowchart/parallelogram.c (pgram_update_data): Added
6913         left and right alignment options.
6915 2003-04-28  Lars Clausen  <lrclause@cs.uiuc.edu>
6917         * objects/flowchart/box.c: Added left and right alignment options.
6919 2003-04-26  Lars Clausen  <lrclause@cs.uiuc.edu>
6921         * app/persistence.c (persistence_load): Test existence of
6922         persistence file before trying to open it.
6924 2003-04-25  Lars Clausen  <lrclause@cs.uiuc.edu>
6926         * app/properties.c: Escape now closes properties dialogs.
6928 2003-04-25  Hans Breuer  <hans@breuer.org>
6930         * app/config.h.win32 : bump version to 0.91+cvs
6932         * app/makefile.msc lib/makefile.msc lib/libdia.def : updated
6934         * lib/dia_dirs.c : G_OS_WIN32: #define mkdir(s,a) _mkdir(s)
6936         * app/commands.c : don't leak "netscape" if getenv("BROWSER")
6937         returns NULL
6939         * app/presistence.c : need to #include "dia_xml_libxml.h"
6940         for xmlDiaParseFile
6942         * app/layer_dialog.c : make delayed creation work by protecting
6943         all non static layer_dialog_*() with :
6944            if (layer_dialog == NULL || layer_dialog->dialog == NULL)
6945              create_layer_dialog();
6946         * app/app_procs.c : removed /* create_layer_dialog(); */
6948         * objects/uml/association.c : give it a minimal StdProp
6949         implementation to fix bug #108896
6950         * lib/object_defaults.c : don't try to copy props if there
6951         is no obj->ops->describe_props
6953 2003-04-24  Lars Clausen  <lrclause@cs.uiuc.edu>
6955         * objects/standard/image.c (image_create): 
6956         * objects/standard/ellipse.c (ellipse_create): 
6957         * objects/standard/box.c (box_create): 
6958         * objects/flowchart/ellipse.c (ellipse_create): 
6959         * objects/flowchart/diamond.c (diamond_create): 
6960         * objects/flowchart/box.c (box_create): 
6961         * objects/custom/custom_object.c (custom_create): 
6962         * objects/ER/relationship.c (relationship_create): 
6963         * objects/ER/entity.c (entity_create): 
6964         * objects/ER/attribute.c (attribute_create): Initialize
6965         elem->height to DEFAULT_HEIGHT instead of DEFAULT_WIDTH.
6967         * lib/dia_svg.c (dia_svg_parse_style): Added case to set center
6968         alignment. 
6970         * configure.in: 
6971         * plug-ins/Makefile.am: 
6972         * plug-ins/xslt/Makefile.am: 
6973         * plug-ins/xslt/xslt.c (dia_plugin_init): 
6974         Patch from Götz Waschk <waschk@informatik.uni-rostock.de> uses
6975         automake-style if to only include xslt dir when needed.  Works
6976         with automake 1.4 and up, at least.
6978 2003-04-22  Lars Clausen  <lrclause@cs.uiuc.edu>
6980         * lib/diasvgrenderer.c (draw_string): 
6981         * lib/dia_svg.c (dia_svg_parse_style): Use
6982         text-anchor:(start|middle|end).
6984         * lib/diasvgrenderer.c (draw_polygon, fill_polygon): Use svg
6985         polygon rather than polyline & avoid missing line pieces.
6986         (get_draw_style): Set fill-opacity to 0 on draw_style to avoid
6987         black-filled things.
6989 2003-04-21  Lars Clausen  <lrclause@cs.uiuc.edu>
6991         * app/persistence.c (persistence_load): Check that persistence
6992         file exists before trying to read it.
6993         (persistence_update_window): Removed printf.
6995         * objects/GRAFCET/step.c: Don't copy defaults for name and id.
6997         * lib/autoroute.c: Take badness into the layouters again, as some
6998         of them know they can do things that are pretty but would be
6999         counted as ugly by the default calculation.
7001         * objects/UML/large_package.c: Shrink package name box when no
7002         stereotype is present.
7004         * lib/orth_conn.h (ORTHCONN_COMMON_MENUS): 
7005         * lib/orth_conn.c: Added object menu item for autorouting.
7007         * objects/FS/flow-ortho.c (orthflow_get_object_menu): 
7008         Autorouting, plus set initial dragging handle to be the end, not
7009         the middle.
7010         (orthflow_draw): Flipped arrow place to be at the end, as
7011         originally intended (got lost in arrow update).
7013         * objects/standard/zigzagline.c (zigzagline_get_object_menu): 
7014         * objects/UML/dependency.c (dependency_get_object_menu): 
7015         * objects/UML/association.c (association_get_object_menu): 
7016         * objects/UML/realizes.c (realizes_get_object_menu): 
7017         * objects/SADT/arrow.c (sadtarrow_get_object_menu): 
7018         * objects/GRAFCET/vector.c (arc_get_object_menu): 
7019         * objects/ER/participation.c (participation_get_object_menu): 
7020         * objects/EML/instantiation.c (instantiation_get_object_menu): 
7021         * objects/UML/generalization.c (generalization_get_object_menu): 
7022         * objects/EML/interaction-ortho.c (interaction_ortho_get_object_menu): 
7023         Autorouting setup (currently disabled for SADT/arrow).
7024         
7025 2003-04-19  Lars Clausen  <lrclause@cs.uiuc.edu>
7027         * lib/autoroute.c: Removed printfs.
7029         * lib/orth_conn.c: 
7030         * lib/autoroute.[ch] (autoroute_layout_orthconn): Handle
7031         non-connected orthconns too.
7033 2003-04-18  Lars Clausen  <lrclause@cs.uiuc.edu>
7035         * lib/orth_conn.h: 
7036         * lib/orth_conn.c: Function to set autorouting on/off, use
7037         autorouting in move_handle (turns off when a middle handle is
7038         moved), added to standard orthconn props. 
7040         * app/disp_callbacks.c (create_object_menu, popup_object_menu):
7041         Stopped signal emission for check menu items being set to on/off.
7043         * objects/standard/zigzagline.c: Added autorouting object menu item.
7045         * lib/autoroute.c: Added last cases of autoroute layout, fixed
7046         floating point comparison bug, cleaned up layouters, tweaked
7047         badness to allow kinks. 
7049 2003-04-17  Lars Clausen  <lrclause@cs.uiuc.edu>
7051         * lib/connectionpoint.h: Changed DIR_* macros to go around the
7052         clock. 
7054         * lib/orth_conn.[ch] (orthconn_set_points): New function to set all
7055         points at once.
7056         * objects/standard/zigzagline.c (zigzagline_move_handle): Removed
7057         old cruft, added call to autoroute (currently cannot be turned
7058         off).  Need to check what undo thinks about this.
7059         * lib/autoroute.[ch]: Fairly working simple layout.
7061         * lib/Makefile.am (libdia_la_SOURCES): Added autoroute files.
7062         * lib/autoroute.[ch]: Start of proper autorouting functionality.
7064 2003-04-10  Lars Clausen  <lrclause@cs.uiuc.edu>
7066         * lib/prop_widgets.c: Show labels on ListProp.
7068 2003-04-11  Steffen Macke <sdteffen@web.de>
7070         * doc/en/dia-manual.xml: removed reference of non-existing authors 
7071         note.
7072         * doc/en/usage-objects-selecting: commented out misleading section
7073         references.
7075 2003-04-10  Lars Clausen  <lrclause@cs.uiuc.edu>
7077         * app/app_procs.c (app_init): Layer window now opened at startup
7078         only if needed.
7080         * lib/prop_widgets.c: Show labels on ListProp.
7082 2003-04-09  Steffen Macke <sdteffen@web.de>
7084         * doc/en/*.sgml: removed files
7085         * doc/en/*.xml: added files
7086         * doc/en/Makefile.am: switched to XML DocBook
7088 2003-04-09  Lars Clausen  <lrclause@cs.uiuc.edu>
7090         * plug-ins/xslt/xslt.c (dia_plugin_init): 
7091         * configure.in: Added --with-xslt-prefix to allow other XSLT
7092         placements than /usr/lib.
7094 2003-04-09  Steffen Macke <sdteffen@web.de>
7096         * lib/makefile.mingw: updated to include latest files, including 
7097         and linking libintl
7098         * lib/geometry.h: don't define isinf and finite for mingw gcc build
7100 2003-04-08  Lars Clausen  <lrclause@cs.uiuc.edu>
7102         * app/persistence.h:
7103         * app/persistence.c (persistence_register_window_create): 
7104         * app/app_procs.c (app_init): 
7105         Register window function that doesn't create the window unless it
7106         should be open.  Other windows should move to this, so startup
7107         speed can be reduced.
7108         
7109         * app/persistence.h: Removed call prototype for update_window, now
7110         done internally.
7111         * app/persistence.c (persistence_register_window): A number of
7112         fixes.  Doesn't forget position when window is closed.  Now
7113         actually loads prefs.
7115         * app/layer_dialog.c (create_layer_dialog): Removed extraneous
7116         event connect.
7118         * app/preferences.c (prefs_data): 
7119         * app/diagram_tree_window.h: 
7120         * app/diagram_tree_window.c: Added persistence registering.
7121         Removed prefs items storing size and openness. 
7123         * app/sheets_dialog.c (create_sheets_main_dialog): Added
7124         persistence registering.  
7126         * app/Makefile.am (dia_core_files): Added persistence files.
7128         * lib/dia_dirs.h: 
7129         * lib/dia_dirs.c (dia_config_ensure_dir): New function to ensure
7130         that dirs are present.
7132         * app/app_procs.c (app_init): Loads persistent values on startup.
7133         (app_exit): Saves persistent values on exit.
7135         * app/layer_dialog.c (create_layer_dialog): Registers the layer
7136         window for persistence.
7138         * app/persistence.[ch]: New files handling various kinds of
7139         persistence.
7141 2003-04-04  Lars Clausen  <lrclause@cs.uiuc.edu>
7143         * lib/arrows.c: Adjusted arrow head spacing, more systematic arrow
7144         head spacing calculations.  Added half-circle arrow from Matthieu
7145         Sozeau <mattam@netcourrier.com> 
7147 2003-04-03  Lars Clausen  <lrclause@cs.uiuc.edu>
7149         * app/app_procs.c (app_init): Moved layer dialog init to allow
7150         tooltips to be initialized.
7152         * app/interface.c (create_display_shell): More tooltips.
7154         * app/linewidth_area.c (linewidth_area_create) 
7155         (linewidth_area_events): 
7156         * app/color_area.c (color_area_events, color_area_create): 
7157         Made tooltips work by embedding drawing_area in event_box.
7159         * app/interface.c (create_display_shell,
7160         (create_lineprops_area, create_color_area): Added a few tooltips.
7162 2003-04-01  Lars Clausen  <lrclause@cs.uiuc.edu>
7164         * app/pixmaps/off-grid.xpm: 
7165         * app/pixmaps/on-grid.xpm: 
7166         * app/Makefile.am (EXTRA_DIST): Added snap to grid icons.
7168         * app/display.h: 
7169         * app/commands.c (view_snap_to_grid_callback): 
7170         * app/display.c (ddisplay_set_snap_to_grid) 
7171         (update_snap_grid_status): 
7172         * app/interface.c (create_display_shell, grid_toggle_snap): 
7173         Added snap-to-grid status button.
7175 2003-03-31  Lars Clausen  <lrclause@cs.uiuc.edu>
7177         * app/app_procs.c (app_init): Create a new diagram if a file on
7178         the command line isn't found.
7180 2003-03-17  Lars Clausen  <lrclause@cs.uiuc.edu>
7182         * lib/dialibartrenderer.c (draw_string): Correct color handling
7183         for AA.
7185 2003-03-14  Lars Clausen  <lrclause@cs.uiuc.edu>
7187         * NEWS: 
7188         * doc/en/dia-manual.sgml: 
7189         * doc/pl/dia-manual.sgml: 
7190         * configure.in: 
7191         * dia.spec (Release): 
7192         Version 0.91 is here!
7194 2003-02-10  Steffen Macke <sdteffen@web.de>
7196         * plug-ins/wmf/wmf.cpp: patch from Ken Tsukahara 
7197         <ken.tsukahara@tmt-d.co.jp>, fixes windows printing and WMF export of
7198         non-ANSI characters, closes #107980
7200 2003-03-04  Lars Clausen  <lrclause@cs.uiuc.edu>
7202         * configure.in: 
7203         * NEWS: 
7204         * dia.spec (Release): 
7205         * doc/en/dia-manual.sgml: Upping to pre6.
7207         * configure.in: Missing comma broke HAVE_IEEEFP_H test.
7209         * app/lineprops_area.c (dia_arrow_chooser_new): Fixing bug
7210         #107511:  Make arrow selector for correct arrow type.
7212 2003-03-03  Lars Clausen  <lrclause@cs.uiuc.edu>
7214         * shapes/Circuit/Makefile.am (SHAPES): Added hjumper.png to
7215         EXTRA_DIST.
7217 2003-03-02  Lars Clausen  <lrclause@cs.uiuc.edu>
7219         * doc/en/dia-manual.sgml: 
7220         * configure.in: 
7221         * NEWS: 
7222         * dia.spec (Release): Upping to pre5.
7224         * configure.in: Add freetype-config derived libs to the
7225         AC_CHECK_LIB statement for freetype.
7227 2003-02-28  Hans Breuer  <hans@breuer.org>
7229         [fix for bug #107203]
7231         * lib/diarenderer.c : add warning 'implementation'
7232         for fill_rect to avoid crashing with a renderer
7233         which does not implement this required function.
7235         * plug-ins/dxf/dxf-export.c : provide - still empty -
7236         'implementations' for fill_rect and fill_polygon 
7237         to suppress the above warnings. Now it works like
7238         in version 0.90 
7240 2003-02-28  Steffen Macke <sdteffen@web.de>
7242         * samples/all_objects.dia: New sheet containing all dia shapes
7243         and objects; one layer per sheet
7244         
7245 2003-02-28  Lars Clausen  <lrclause@cs.uiuc.edu>
7247         * lib/prop_text.c (multistringprop_get_widget,
7248         multistringprop_reset_widget, multistringprop_set_from_widget): 
7249         Now uses GtkTextView instead of deprecated stuff, and also works:)
7251         * configure.in: Slightly more informative error message for isinf.
7253         * dia.spec (Requires): Require libxml2 rather than libxml.
7255 2003-02-28  Steffen Macke <sdteffen@web.de>
7257         * shapes/Circuit/hjumper.png:
7258         * shapes/Circuit/hjumper.shape: added missing icon for horizontal
7259         jumper shape
7260         
7261 2003-02-26  Lars Clausen  <lrclause@cs.uiuc.edu>
7263         * doc/en/dia-manual.sgml: 
7264         * configure.in: 
7265         * dia.spec (Release):
7266         * NEWS: New prerelease 0.91pre4, two important fixes.
7268 2003-02-25  Lars Clausen  <lrclause@cs.uiuc.edu>
7270         * plug-ins/xslt/Makefile.am (EXTRA_DIST): Also dist
7271         stylesheets.xml.in 
7273         * app/commands.c (help_manual_callback): More correct URL for help
7274         page (include file://, was broken on Dillo without it).
7276 2003-02-24  Lars Clausen  <lrclause@cs.uiuc.edu>
7278         * app/disp_callbacks.c: Set modifed when text is changed.
7280         * app/modify_tool.c (modify_button_release): Allow undo for moving
7281         objects.
7283 2003-02-16  Lars Clausen  <lrclause@cs.uiuc.edu>
7285         * dia.spec: 
7286         * doc/en/dia-manual.sgml: 
7287         * NEWS: 
7288         * configure.in: New prerelease with important bugfix.
7289         * shapes/network/digitizing_board.png:
7290         * shapes/network/plotter.png: Re-adding with -kb.
7291         
7292 2003-02-17  Abel Cheung  <maddog@linux.org.hk>
7294         * app/app_procs.c (app_init): Add comment for translators.
7296 2003-02-16  Lars Clausen  <lrclause@cs.uiuc.edu>
7298         * lib/filter.c (filter_register_import, filter_register_export):
7299         Don't accept filters with NULL description.
7301         * lib/plug-ins.c (dia_plugin_load): Fail if there's no description
7302         (as we assume the description is available in other places).
7304 2003-02-15  Lars Clausen  <lrclause@cs.uiuc.edu>
7305         
7306         * app/disp_callbacks.c (ddisplay_vsb_update, ddisplay_hsb_update): 
7307         * app/display.c (ddisplay_resize_canvas): Use
7308         ddisplay_add_update_all().
7309         (ddisplay_add_update_all): Free display and update lists when
7310         doing update_all, as they'll be regenerated immediately to cover
7311         all visible area.  Fixes bug #106165, crash when resizing.  This
7312         appears to be the original AA crash bug, believed long extinct.
7314 2003-02-13  Lars Clausen  <lrclause@cs.uiuc.edu>
7316         * app/commands.c (help_manual_callback): Use file: protocol for
7317         help. 
7319         * plug-ins/xslt/.cvsignore: Ignore .o files, please.
7321         * plug-ins/xslt/stylesheets: Removed old-style config file.
7322         
7323         * plug-ins/xslt/stylesheets.xml.in: New XML-based config file.
7325         * plug-ins/xslt/Makefile.am: 
7326         * plug-ins/xslt/xslt.c: Applied patch from Matthieu, improved path
7327         handling (no more DIA_PLUGIN_PATH).
7329 2003-02-11  Lars Clausen  <lrclause@cs.uiuc.edu>
7331         * plug-ins/svg/render_svg.c: 
7332         * lib/diasvgrenderer.c: Fixed numeric localized output issues.
7334 2003-02-10  Lars Clausen  <lrclause@cs.uiuc.edu>
7336         * objects/SADT/arrow.c (sadtarrow_draw): Clamp cosa, cosb to 
7337         [-1.0, 1.0].  Shouldn't be necessary, but in some cases the
7338         side of the triangle is longer than the hypotenuse.  Rounding
7339         error suspected.
7341 2003-02-09  Lars Clausen  <lrclause@cs.uiuc.edu>
7343         * NEWS: 
7344         * configure.in: 
7345         * doc/en/dia-manual.sgml: Update for pre2.
7347         * app/menus.c (display_menu_items): Fixed wrongly place separators.
7349         * objects/flowchart/box.c (box_update_data): Applied patch from
7350         Eivind Tagseth <eivind-gnome@multinet.no> to allow resize (with
7351         comment). 
7353         * app/paginate_psprint.c (print_page): Set paper name, so it
7354         convinces ps printers to use to right size.
7356 2003-02-07  Lars Clausen  <lrclause@cs.uiuc.edu>
7358         * app/properties.c (properties_show): Hide the dialog if the
7359         object is NULL (get rid of 'no properties' randomly popping up).
7361 2003-02-06  Lars Clausen  <lrclause@cs.uiuc.edu>
7363         * plug-ins/pixbuf/pixbuf.c (export_data): Adjust width and height
7364         for diagrams not starting at origo.
7366 2003-02-05  Lars Clausen  <lrclause@cs.uiuc.edu>
7368         * dia.spec (BuildRequires): Use libxml2-devel.
7370         * plug-ins/pixbuf/Makefile.am: Added to CVS.
7372         * RELEASE-PROCESS: Note on RPM version numbers.
7374         * app/interface.c (create_display_shell): Don't set as toolbar
7375         under Unix, either.  Especially not the diagram shell.  It removes
7376         it from the taskbar and makes it unresizable, always-on-top with
7377         OpenBox.  TOOLBAR != TOOLBOX.  Setting toolbox to the only
7378         appropriate thing, UTILITY, is not good either, you lose resizing
7379         and minimizing/maximizing under OpenBox.
7381         * app/menus.c (display_menu_items): Set delete item to use Delete.
7383 2003-02-04  Lars Clausen  <lrclause@cs.uiuc.edu>
7385         * dia.spec (BuildRequires, Requires): Updated for Gtk2
7386         requirements.
7388         * app/disp_callbacks.c (ddisplay_canvas_events): Only add a
7389         display flush when getting focus in, or we may get an update after
7390         the diagram has been destroyed in some cases.  Fixes bug #105221.
7392         * plug-ins/xfig/xfig-import.c: Notes on the splines used by XFig.
7394         * lib/diarenderer.c: Notes on the basis matrix for our beziers.
7396         * app/app_procs.c (app_init): Fixed missing popt context for Gnome
7397         - gnome-compiled Dia will now read files specified on the command line.
7399 2003-02-03  Lars Clausen  <lrclause@cs.uiuc.edu>
7401         * INSTALL (REQUIREMENTS): Updated requirements section.
7403         * configure.in: Better finite() check from MÃ¥rten Svantesson
7404         <f95-msv@nada.kth.se>.  Doesn't seem to generate strange dangly
7405         if's. 
7406         
7407 2003-02-03  Lars Clausen  <lrclause@cs.uiuc.edu>
7409         * plug-ins/xfig/xfig-import.c: Notes on spline conversions.
7411         * app/app_procs.c (debug_break): Added some code to avoid
7412         over-eager optimizations removing the call.  Surely there's a
7413         nicer way, but I'm not sure how.
7415         * app/diapsft2renderer.c (draw_bezier_outline): Removed paps relic
7416         that set text to black.
7418 2003-02-02  Lars Clausen  <lrclause@cs.uiuc.edu>
7420         * NEWS: Mention of Twiki as doc source for Python.
7422         * plug-ins/pixbuf/pixbuf.c: Export with pixbuf if
7423         libart/libpng is not available.  Later when we have a way of
7424         letting the user pick options in the file select dialog we shall
7425         allow the choice when applicable.
7427 2003-02-02  Steffen Macke <sdteffen@web.de>
7429         * doc/en/usage-loadsave.sgml:
7430         * doc/en/usage-objects.sgml: patch from
7431         James K. Lowden <jklowden@schemamania.org> to fix
7432         some docbook errors
7433         
7434 2003-02-01  Lars Clausen  <lrclause@cs.uiuc.edu>
7436         * plug-ins/Makefile.am (SUBDIRS): 
7437         * plug-ins/pixbuf/pixbuf.c: 
7438         * plug-ins/pixbuf/Makefile.am: 
7439         * configure.in: 
7440         Added pixbuf plugin to Makefile.am, but for import only.  PNG
7441         export handled by libart, which is better. JPG export is
7442         discouraged.  BMP is not much used on Unix.  Next release will
7443         integrate libart to allow all outputs.
7445 2003-02-01  Hans Breuer  <hans@breuer.org>
7447         * app/preferences.c :
7448         * app/pagesetup.c :
7449         the last two dialogs with 'old' button order finally
7450         are converted to gtk2, no GnomeDialog in all of Dia 
7451         anymore :-) 
7453 2003-02-01  Hans Breuer  <hans@breuer.org>
7455         * app/filedlg.c : don't try to use a button as
7456         'overwrite-file-dialog'-parent, use the FileSelDialog
7457         instead
7459         * plug-ins/pixbuf/pixbuf.c : make it work with 
7460         system-visual-depth < 24. Remove 'bmp' from output
7461         format extensions, it just was wishful thinking.
7463         * plug-ins/python/Makefile.am : added the four new python 
7464         plug-ins mentioned below to pyplugin_DATA and EXTRA_DIST
7466 2003-02-01  Hans Breuer  <hans@breuer.org>
7468         * NEWS : updated content beside dependencies
7470 2003-02-01  Hans Breuer  <hans@breuer.org>
7472         * lib/arrow.h : arrow_types needs to be declared as DIAVAR
7473         to make it useable across DLL boundaries
7474         * app/lineprops_area.c : same code to access arrow_types
7475         on all platforms
7477         * objects/UML/class.c : the non empty string is e.g.
7478         comment != NULL && comment[0] != '\0'
7479         * objects/UML/uml.c : same here, don't bother with
7480         empty operation stereotypes
7482 2003-02-01  Steffen Macke <sdteffen@web.de>
7484         * app/lineprops_area.c: latest changes do not work on
7485         windows, using old code without tooltips
7486         * makefile.msc: fixed copying of wmf.dll
7487         * plug-ins/makefile.msc: 
7488         * app/makefile.msc:
7489         * lib/makefile.msc: now linking libintl
7490         * config.h.win32: enabling native language support
7492 2003-01-31  Lars Clausen  <lrclause@cs.uiuc.edu>
7494         * plug-ins/xslt/Makefile.am (libxslt_filter_la_LDFLAGS): Removed
7495         -ldl and -lglib.  May or may not work on windows...awaiting verdict.
7497 2003-01-31  Daniel Yacob  <locales@geez.org>
7499         * configure.in: Added am (Amharic) to ALL_LINGUAS.
7501 2003-01-31  Steffen Macke <sdteffen@web.de>
7503         * objects/UML/class.c (umlclass_calculate_data): fixed crash
7504         when comments were visible, no class comment available and
7505         a attribute comment
7506          
7507 2003-01-31  Lars Clausen  <lrclause@cs.uiuc.edu>
7509         * RELEASE-PROCESS: Updated to fit new install-module syntax.
7510         * Prerelease 0.91-pre1 released on a suspecting public.  Tagging
7511         with DIA_0_91_PRE1.
7513 2003-01-30  Lars Clausen  <lrclause@cs.uiuc.edu>
7515         * config.h.win32: 
7516         * NEWS: 
7517         * configure.in:
7518         * dia.spec:
7519         Prerelease version changes, version 0.91-pre1.
7521         * app/sheets_dialog_callbacks.h: 
7522         * app/sheets_dialog_callbacks.c: 
7523         * app/sheets_dialog.c (create_sheets_main_dialog): 
7524         * app/sheets.c (sheets_dialog_create): More destroy stuff.  Trying
7525         to handle destruction of main dialog cleanly, but it's a mess.
7527         * configure.in: Downgraded ieeefp test to make it not produce
7528         illegal shell code.
7530         * lib/widgets.c (dia_arrow_selector_set_arrow): 
7531         (dia_line_style_selector_set_linestyle): Select menu dot
7532         correctly set.
7534         * lib/arrows.c (calculate_arrow_point): Fix of wrong arrow
7535         adjustment for diamondheads.
7537         * lib/plug-ins.c (dia_plugin_load): Fixed typo.
7539         * app/properties.c (create_dialog): Destroy properties dialog and
7540         box correctly.
7542         * app/sheets_dialog_callbacks.c
7543         (on_sheets_dialog_button_edit_clicked): Only create a new dialog
7544         if the old one is destroyed.
7546 2003-01-29  Lars Clausen  <lrclause@cs.uiuc.edu>
7548         * app/export_png.c (export_png_ok): Added info on resolution.
7549         Should (next release) improve export dialog to allow setting
7550         resolution instead of pixels.
7552         * app/lineprops_area.c (dia_arrow_chooser_new): Use menudesc list
7553         to generate arrowheads as well as tooltips.
7555         * lib/arrows.c: Added hollow diamond to menudesc list.
7557         * lib/arrows.[ch]: 
7558         * lib/widgets.[ch]: Moved arrow name list into arrows.[ch] to
7559         unify with rendered menu.
7561         * lib/diarenderer.c (draw_line_with_arrows)
7562         (draw_polyline_with_arrows, draw_arc_with_arrows)
7563         (draw_bezier_with_arrows): Fixed linestyle change bug (#104488)
7564         without changing renderer API.  Thanks to David Scherba for
7565         providing inspiration.
7567 2003-01-28  Lars Clausen  <lrclause@cs.uiuc.edu>
7569         * app/interface.c (create_display_shell):
7570         * app/display.h: Patching from Hubert Figuiere
7571         <hfiguiere@teaser.fr>:  Better types for menu bar widgets, and
7572         correct menu items.
7574 2003-01-26  Lars Clausen  <lrclause@cs.uiuc.edu>
7576         * app/defaults.c (defaults_show): Fixed defaults closing bug.
7577         Thanks to Hans for pointing it out.
7579 2003-01-25  Hans Breuer  <hans@breuer.org>
7581         * app/commands.c : don't warn about crashing libart renderer
7582         on win32. It simply doesn't render text anymore :-(
7584         * app/filedlg.c : use GtkMessageDialog for 'file overwrite'
7586         * objects/UML/class.c : don't access umlclass->properties_dialog
7587         after calling gtk_widget_destroy(umlclass->properties_dialog->dialog)
7588         which sets the former to NULL by destroy_properties_dialog() callback.
7590         * plug-ins/wmf/wmf.cpp : use dia_image_rowstride()
7592         * plug-ins/python/pydia-font.c : fix PyDiaFont_GetAttr()
7594         * plug-ins/python/pydia-image.c : add image.uri member
7595         not only useful for SVG rendering
7597         * plug-ins/python/diasvg.py : (new file) a more advanced
7598         example. A full blown SVG Renderer, currently only
7599         registered for .svgz
7601         * plug-ins/python/export-object.py : write text props
7603         * plug-ins/python/debug_objects.py : write prop.type and
7604         prop.visible 
7606 2003-01-25  Lars Clausen  <lrclause@cs.uiuc.edu>
7608         * objects/UML/association.c (association_update_data): Better
7609         bounding box for assoc with arrows.
7611         * lib/properties.h: New flag for properties with multiple values
7612         in groups.
7614         * app/lineprops_area.c (dia_arrow_chooser_dialog_show): Correct
7615         arrow updating in dialog.  Was broken due to changes from destroy
7616         fix:(
7618         * app/commands.c (view_aa_callback): AA warning only for Windows
7619         -- I trust the Unix side well enough.
7621         * app/render_libart.c (get_text_width): 
7622         * lib/dialibartrenderer.h (struct _DiaLibartRenderer): Font and
7623         font height can be taken from parent instance.
7625         * lib/dialibartrenderer.c (dia_libart_renderer_class_init) 
7626         (get_text_width): Proper cursor positioning for libart renderer.
7627         Ought to have a DiaInteractiveRenderer that these two can inherit
7628         from, that knows about transform.
7630 2003-01-25  Steffen Macke <sdteffen@web.de>
7632         * plug-ins/xslt/xslt.h: don't use dlfcn.h on win32. XSLT
7633         plug-in still not working on win32
7634         
7635 2003-01-24  Lars Clausen  <lrclause@cs.uiuc.edu>
7637         * app/disp_callbacks.c (ddisplay_canvas_events): Moved
7638         gdk_window_get_pointer to avoid destroy crash.  Simpler than I
7639         thought.
7641 2003-01-23  Lars Clausen  <lrclause@cs.uiuc.edu>
7643         * app/app_procs.c (app_init): Run gtk_init before popt so we don't
7644         bail out on gtk options.
7646         * lib/message.c (gtk_message_internal): Better handling of destroy
7647         event.
7649 2003-01-22  Lars Clausen  <lrclause@cs.uiuc.edu>
7651         * app/color_area.c (color_area_edit): 
7652         * lib/widgets.c (dia_file_selector_browse_pressed) 
7653         (dia_color_selector_pressed): 
7654         * app/plugin-manager.c (get_plugin_manager): 
7655         * app/filedlg.c (file_open_callback, file_save_as_callback) 
7656         (file_export_callback):
7657         * app/diagram_tree_window.c (diagram_tree_window_new): Correct
7658         handling of destroy event.
7660 2003-01-22  Alan Horkan <horkana@tcd.ie>
7662         * app/commands.c (file_new_callback): Changed Untitled to Diagram
7663         for default name.
7665 2003-01-21  Lars Clausen  <lrclause@cs.uiuc.edu>
7667         * app/preferences.c (prefs_create_dialog): 
7668         * app/linewidth_area.c (linewidth_create_dialog): 
7669         * app/lineprops_area.c (dia_arrow_chooser_dialog_show): 
7670         * app/layer_dialog.c (create_layer_dialog)
7671         (layer_dialog_edit_layer): Correct handling of destroy signal. 
7673         * app/diapsft2renderer.c (set_font): Adjust silly random factor
7674         for change in font.c
7676         * lib/widgets.c: Avoid warning when font menu file doesn't exist.
7678         * lib/font.c (dia_font_build_layout): Let's all use the same weird
7679         factor here.
7681         * app/lineprops_area.c (dia_arrow_chooser_dialog_show): 
7682         * app/layer_dialog.c (create_layer_dialog) 
7683         (layer_dialog_edit_layer): 
7684         * app/filedlg.c (file_open_callback, file_save_as_callback) 
7685         (file_export_callback): 
7686         * app/dia-props.c (create_diagram_properties_dialog): 
7687         * app/defaults.c (defaults_dialog_destroyed): 
7688         * app/color_area.c (color_area_edit): Dialog destroy event handling.
7690 2003-01-19  Lars Clausen  <lrclause@cs.uiuc.edu>
7692         * app/defaults.c (defaults_dialog_destroyed): Reset cache when
7693         defaults dialog destroyed.
7695 2003-01-19  Steffen Macke <sdteffen@web.de>
7697         * objects/makefile.msc: added bondgraph
7698         * plug-ins/makefile.msc: added GDK_PIXBUF_LIBS in order
7699         to compile pixbuf.dll
7700         * makefile.msc: copying all objects and dlls now
7701         
7702 2003-01-19  Hans Breuer  <hans@breuer.org>
7704         * app/diagram.[hc] : provide dia_open_diagrams(), make
7705         open_diagrams variable static
7706         * app/dia.def : export it (to be used by PyDia)
7707         * app/app_procs.c app/autosave.c app/diagram_tree_window.c
7708           app/display.c app/dynamic_refresh.c app/layer_dialog.c
7709           app/load_save.c : make use of dia_open_diagrams()
7711         * app/interface.c : don't set GDK_WINDOW_TYPE_HINT_TOOLBAR
7712         on win32. It removes the diagram window from the taskbar and
7713         shrinks it's window title to toolbar style (newest gtk2.2 cvs)
7715         * app/menus.c : add '...' to menu entries where a dialog 
7716         gets invoked
7717         * app/recent_files.c app/dia_embedd.c : reflect the above in 
7718         menus_get_item_from_path() calls
7720         * lib/libdia.def : add dia_image_rgba_data
7722         * lib/properties.h lib/prop_text.[hc] : add new property
7723         type StringList
7724         * objects/UML/class.[hc] object/UML/class_dialog.c : use
7725         StringList for attributes_strings and operations_strings to
7726         make this calculated data accessible via the Property API
7728         * plug-ins/python/diamodule.c : use dia_open_diagrams() and
7729         provide dia.new() to create a new diagram, dia.registered_types()
7730         to get on Dia's type registry, dia.message() for simple dialogs
7732         * plug-ins/python/pydia-diagram.c : implement DiaDiagram.display()
7733         to create a new display from a diagram. Let diagram.extents and
7734         diagram.bg_color return the same types as in diagramdata.*
7736         * plug-ins/python/pydia-geometry.c : add a read-only 
7737         'sequence interface' to DiaPoint and DiaRectangle
7739         * plug-ins/python/pydia-property.c : allow to get on StringList
7740         from Python
7742         * plug-ins/python/pydia-render.c : fix typo to make it compile
7744         * plug-ins/python/python-startup.py : removed 'import pygtk'
7745         again. This file does not need any gtk UI, and some python
7746         plug-ins don't do either
7748         * plug-ins/python/gtkcons.py : ported to GTK2 interface, now
7749         it should actually work as intended again
7751         * plug-ins/python/group_props.py : (new file) a prototype for
7752         one the most requested features: Change properties of selected
7753         objects in one step. Requires pygtk.
7755         * plug-ins/python/select_by.py : (new file) select objects by 
7756         common properties. Requires pygtk.
7758         [Start of 'PyDia Self Documentation Series']
7760         * plug-ins/python/pydiadoc.py : (new file) generates a new 
7761         diagram which contains all objects of dir(dia)
7762         
7763         * plug-ins/python/otypes.py : (new file) generates a new diagram 
7764         which contains all the currently registered object types sorted 
7765         by their containing package
7767 2003-01-18  Lars Clausen  <lrclause@cs.uiuc.edu>
7769         * configure.in: Added check for Pango >= 1.1.5, which appears to
7770         be enough to have text work.
7771         (INTLOBJS): Added dummy subst cause gettext doesn't always seem to
7772         do it.  AC_SUBST should be idempotent, though.
7774 2003-01-17  Lars Clausen  <lrclause@cs.uiuc.edu>
7776         * configure.in (HAVE_FREETYPE): Better test for freetype version
7777         using neat macro.
7778         Now actually sets HAVE_IEEEFP_H, needed for Solaris.
7780         * lib/font.c: Renamed global_size_one to global_zoom_factor to
7781         avoid confusion, and added comment.  Set scale factor in
7782         dia_font_build_layout to 1.0 for Unix side.  This fixes at least
7783         my weird scaling problems.  Fonts are now of the expectable size,
7784         i.e. the space between lines at size 1.0 is 1.0.  If we want a
7785         compatibility fix, we should scale fonts by about 1/0.75 from 0.90
7786         diagrams, though there will always be differences.
7788 2003-01-15  Lars Clausen  <lrclause@cs.uiuc.edu>
7790         * plug-ins/python/python-startup.py: 
7791         * plug-ins/python/gtkcons.py: Require gtk 2.0 for pygtk
7793         * plug-ins/python/python.c (dia_plugin_init): Added warning
7794         message for missing startup file.
7796         * lib/dialibartrenderer.c (draw_image): Alpha rendering!  Yay!
7797         
7798         * lib/dia_image.c (dia_image_rgb_data): 
7799         * app/diapsrenderer.c (draw_image): Fixed rowstride problems
7800         involving EPS.  Can't do transparency in EPS yet.
7802         * lib/dia_image.h: 
7803         * lib/dia_image.c (dia_image_rgba_data): New function to get RGBA
7804         data as one chunk.  Documentation for the RGB data getting funcs.
7805         (dia_image_rgb_data): Added comment.
7807         * lib/dialibartrenderer.c (draw_image): Correct rowstride handling
7808         (bug #103565)
7810 2003-01-13  Steffen Macke <sdteffen@web.de>
7812         * lib/dia_image.c: dia_image_rgb_data() is working for
7813         non-alpha images now. Fixes #93762
7814         * Makefile.am: added makefile.msc to EXTRA_DIST
7815         
7816 2003-01-10  Steffen Macke <sdteffen@web.de>
7818         * app/paginate_psprint.c: Closing print dialog when file
7819         could not be written. Fixes #84746
7820         
7821 2003-01-04  Steffen Macke <sdteffen@web.de>
7823         * doc/custom-shapes: incomplete description of <svg:text>
7825 2003-01-03  Steffen Macke <sdteffen@web.de>
7827         * makefile.msc(new): new makefile to create file
7828         structure suitable for running dia win32 under
7829         $(TOP)/dia/build/win32
7830         
7831 2003-01-02  Steffen Macke <sdteffen@web.de>
7832         
7833         * lib/dia_svg.c: including stdlib.h
7834         * lib/makefile.msc: added gdk_pixbuf libs to linker
7835         * app/makefile.msc: added gdk_pixbuf libs, made libart
7836         libs compatible with gnuwin32 package
7837         
7838 2003-01-01  Hans Breuer  <hans@breuer.org>
7840         * lib/font.c : more comment about global_size_one
7842         * app/menus.c : <control>[<shift>]A for plain gtk build too.
7844         * plug-ins/wmf/wmf.cpp : some type juggling to make 
7845         msvc7 happy
7847 2002-12-31  Steffen Macke <sdteffen@web.de>
7849         * app/makefile.msc: added hint on how to enable console output
7850         
7851 2002-12-17  Lars Clausen  <lrclause@cs.uiuc.edu>
7853         * objects/standard/textobj.c (textobj_load): Get the handle type
7854         right, at least to be the same as when created.
7856 2002-12-12  Lars Clausen  <lrclause@cs.uiuc.edu>
7858         * lib/dialibartrenderer.c (draw_string): Removed extra 'is'.
7860 2002-12-08  Hans Breuer  <hans@breuer.org>
7862         * app/commands.c : fixed bug #85315 'give diagram properties, 
7863         instead of no object selected error' almost a one-liner
7865         * app/splash.c : don't make having the logo pixmap
7866         mandatory. Fixes bug #96068. 
7868         * app/defaults.c : avoid crashing from open-dialog,esc,open-dialog
7869         sequence by connecting to the "delete_event"
7870         * app/objects/uml/class_dialog.c : handle "destroy" for 
7871         the same reason.
7873         * lib/libdia.def : remove diaXmlNewChild again
7875         * app/paginate_gdiprint.cpp : reflect Dia's page setting
7876         portrait/landscape in the windoze print dialog
7878         * objects/makefile.msc : only UML needs to link against
7879         $(GTK2_LIBS) and only custom against $(LIBXML2_LIBS)
7881 2002-12-08  Lars Clausen  <lrclause@cs.uiuc.edu>
7883         * objects/standard/ellipse.c (ellipse_distance_from): 
7884         * lib/geometry.c (distance_ellipse_point): Ellipse now uses the
7885         correct distance function.  Could be faster, but it's not really
7886         essential. 
7888 2002-12-07  Lars Clausen <lrclause@cs.uiuc.edu>
7890         * lib/font.c: Changed global_size_one to more correct 28.35.
7891         Looks better, too.
7893         * app/load_save.c:
7894         * lib/dia_xml.h: 
7895         * lib/dia_xml.c: Removed pretty print hack, the libxml thing works
7896         after all.
7898 2002-12-07  Hans Breuer  <hans@breuer.org>
7900         * lib/widgets.c : g_file_get_contents() silently assumes
7901         a binary file. Reflect when creating the font_menu file
7902         to get rid of junk in font menus
7904 2002-12-06  Hans Breuer  <hans@breuer.org>
7906         * app/diapsrenderer.[hc] app/diapsft2renderer.[hc] :
7907         removed 0xD 0xD 0xA line ends which get created by
7908         cvs if windoze line ends 0xD 0xA are checked in from
7909         *nix and checked out on win32.
7911         * app/preferences.c : changed toolbox_on_top default to
7912         false. It is currently not possible to change the behaviour
7913         at runtime, at least not on win32.
7915         * lib/dialibartrenderer.c : bug #94791 'rendering to 
7916         bitmap without PangoFt2' got delayed to milestone future 
7917         so wrap libart text rendering into PANGO_WIN32_FUTURE. 
7918         It is not available without my Pango patch in bugzilla.
7920         * lib/font.c : added comment to global_size_one and adapt
7921         the arbitrary size scaling in dia_font_build_layout() for
7922         win32, too. This is needed to get an acceptable font size 
7923         approximation for Dia 0.90 and earlier files.
7924         Also #include "message.h".
7926         * app/makfile.msc app/dia.def lib/makefile.msc lib/libdia.def :
7927         reflect movement of group.[hc]
7928         * lib/group.h : export group_type which gets used by app/*
7930         * lib/diagtkfontsel.c : added #undef GTK_DISABLE_DEPRECATED
7931         to get the GtkTypeInfo definition
7933         * plug-ins/makefile.msc : dxf and xfig don't need to link
7934         against app/ anymore now that group is moved to lib/
7936         * plug-ins/python/pydia-render.c : remove massive leaking
7937         of self, i.e. PyDiaRenderer
7939         *  plug-ins/python/makefile.msc : remove linking against
7940         GTK libs
7942 2002-12-06  Lars Clausen  <lrclause@cs.uiuc.edu>
7944         * objects/standard/line.c: Removed properties options for gaps,
7945         until release is done.
7947         * configure.in: Check for freetype version.
7949         * lib/text.c (text_insert_char): Fixed small buffer overflow for
7950         length = 0.
7952         * lib/dialibartrenderer.c (draw_string): Removed debugging printf.
7954         * app/diapsft2renderer.h: 
7955         * app/diapsft2renderer.c: 
7956         * app/diapsrenderer.h: 
7957         * app/diapsrenderer.c: Split ps rendering into standard and freetype.
7959         * app/render_eps.c (export_eps, new_psprint_renderer): Using
7960         PS_FT2 renderer when available.  Old render stuff killed.  Yay!
7962         * lib/properties.h: Fixed bad frame end def.
7964         * app/Makefile.am (dia_core_files): Added diapsft2renderer.[ch].
7966         * lib/dia_xml.c (data_add_string): Avoid #-less strings.
7967         
7968         * objects/bondgraph/Makefile.am: Removed unneeded EXTRA_DIST.
7970 2002-12-05  Lars Clausen  <lrclause@cs.uiuc.edu>
7972         * lib/font.c: Now checking for the proper dia-style standard fonts.
7974         * lib/Makefile.am: 
7975         * app/Makefile.am: Moving group.[ch]
7977         * plug-ins/dxf/dxf-import.c: 
7978         * plug-ins/xfig/xfig-import.c: 
7979         * plug-ins/xfig/xfig-export.c: Now can refer directly to group.h.
7981         * app/object_ops.c: 
7982         * app/object_ops.h: 
7983         * lib/object.c (object_list_move_delta, object_copy_list): 
7984         * lib/object.h: Moved some object-related functions from
7985         object_ops to object to assist moving group.c.
7987         * lib/diatypes.h: Added Group typedef.
7989         * lib/group.h: 
7990         * lib/group.c: Moved from app to lib to a) resolve plug-ins
7991         references, and b) make groups more "real" objects.
7993         * lib/Makefile.am (libdia_la_SOURCES): Added diatyps.h
7995 2002-12-03  Lars Clausen <lrclause@cs.uiuc.edu>
7997         * lib/font.c (dia_font_init): Added check that the three standard
7998         fonts exist.
8000 2002-12-02  Lars Clausen  <lrclause@cs.uiuc.edu>
8002         * lib/dia_xml.[ch]:
8003         * app/load_save.c: Linebreaks in dia files, no indentation.
8004         Should help text tools.  xmlNewChild wrapped in diaXmlNewChild for
8005         this. 
8006         
8007         * objects/standard/line.c: Small but important fixes to the line
8008         gap code.
8010         * lib/dia_xml.h: 
8011         * lib/dia_xml.c (diaXmlNewChild): 
8012         * app/load_save.c (diagram_data_write_doc, write_objects): Simple
8013         XML prettyprinting wrapper.
8015 2002-12-03  Steffen Macke <sdteffen@web.de>
8017         * shapes/Cisco/Makefile.am:
8018         * shapes/Cisco/*.shape: finished conversion of Cisco icons
8019         to *.png
8020         
8021 2002-12-02  Steffen Macke <sdteffen@web.de>
8023         * doc/en/Makefile.am:
8024         * doc/en/usage-objects.sgml:
8025         * doc/en/graphics/line_icon.png: (new) added line icon
8026         
8027 2002-12-02  Lars Clausen  <lrclause@cs.uiuc.edu>
8029         * objects/standard/line.c: Binary search object edge line gap.
8031 2002-12-01  Lars Clausen  <lrclause@cs.uiuc.edu>
8033         * configure.in: Added Cisco makefile, sorted Makefiles list.
8035         * shapes/Makefile.am (SUBDIRS): Added Cisco dir
8037         * configure.in: Now checks for availability of PangoFT2 and
8038         FreeType, raising an error if not found.
8040         * app/Makefile.am (dia_core_files): Adding diapsft2renderer from
8041         Hans.
8043 2002-12-01  Steffen Macke <sdteffen@web.de>
8044         
8045         * doc/en/usage-loadsave.sgml: updated information on import
8046         and export formats
8047         
8048 2002-11-28  Lars Clausen  <lrclause@cs.uiuc.edu>
8050         * app/commands.c (edit_copy_callback): Freeing copy_list.
8052 2002-11-28  Steffen Macke <sdteffen@web.de>
8053         
8054         * app/render_libart.c: art_config.h was included twice
8056 2002-11-27  Lars Clausen  <lrclause@cs.uiuc.edu>
8058         * sheets/.cvsignore: More ignorance.
8060         * lib/diagdkrenderer.c (draw_string): Removed silly #ifdef 1.
8062         * lib/prop_widgets.h: Two (currently unused) settings for frame
8063         foldability.
8065         * lib/prop_widgets.c (frame_beginprop_get_widget): Frames are now
8066         (by default) foldable. 
8068         * lib/propinternals.h: 
8069         * lib/propdialogs.c (prop_dialog_add_raw_with_flags): Way to add
8070         widgets in a more controlled manner.
8072         * objects/standard/line.c (line_update_data): Line gap things
8073         inserted.  Can do xeyes now:)
8075 2002-11-26  Christian Neumair  <chris@gnome-de.org>
8077         * .cvsignore: Changed.
8078         * objects/bondgraph/.cvsignore, plug-ins/metapost/.cvsignore,
8079         plug-ins/xslt/.cvsignore, shapes/Assorted/.cvsignore, shapes/Misc/.cvsignore:
8080         Added.
8082 2002-11-26  Lars Clausen  <lrclause@cs.uiuc.edu>
8084         * app/pixmaps/delete.xpm: Trashcan stolen from Gimp.
8086         * lib/widgets.c (dia_font_selector_get_font): Fixed wrong name
8087         passing to font hash.
8089         * app/filedlg.c (file_save_as_ok_callback): Check that filename is
8090         utf-8 or locale-convertible before adding to dialog text.  This
8091         probably needs done in a number of places where we get text from
8092         the environment and send it to GTK to display.
8094         * lib/widgets.c: Fixed case problems for font menu entries.
8096         * objects/SADT/annotation.c: Don't run the event test (but leave
8097         it here for inspiration).
8099         * lib/widgets.c: 
8100         * lib/widgets.h: Allowing setting preview text for fonts.
8102 2002-11-26  Lars Clausen  <lrclause@cs.uiuc.edu>
8104         * objects/bondgraph/Makefile.am: 
8105         * objects/bondgraph/bondgraph.c: 
8106         * configure.in: 
8107         * objects/Makefile.am: Added bond graph dir.
8109 2002-11-26  Lars Clausen  <lrclause@cs.uiuc.edu>
8111         * lib/text.c (text_calc_boundingbox, text_draw): Better cursor size.
8113 2002-11-25  Lars Clausen  <lrclause@cs.uiuc.edu>
8115         * lib/text.c (text_calc_boundingbox, text_draw): Better cursor
8116         positioning. 
8118         * app/diapsrenderer.c: Freetype rendering is back in force.
8120         * app/disp_callbacks.c: Added missing updates for pre-text-change.
8122 2002-11-25  David Hoover <jazzdaq@yahoo.com>
8124         * app/render_libart.c: Added missing #include line for libart.
8126         * lib/geometry.h:
8127         * lib/geometry.c: Added point_convex function.  This computes
8128         points inside a line segment (0 <= alpha <= 1) or outside the
8129         line segment (alpha < 0 | alpha > 1).
8131         * objects/standard/line.c: Line now has additional code/attributes
8132         which permit the line to extend past the line anchors (gap < 0) or
8133         leave a gap without reaching the anchor (gap > 0).  If no gap is
8134         specified, the default gap of 0 will result in identical line
8135         behavior as before.  If the 'fractional' attributes are TRUE, the
8136         gap length is not fixed, but a percentage of the line length.  I
8137         did not know how create the GTK widgets so the gap code currently
8138         cannot be used without adding XML attributes by hand.
8140 2002-11-25  Lars Clausen  <lrclause@cs.uiuc.edu>
8142         * lib/diagdkrenderer.c (draw_string): Removed timing bits.
8144         * lib/Makefile.am (libdia_la_SOURCES): Added fontsel files to SOURCES.
8146 2002-11-24  Lars Clausen  <lrclause@cs.uiuc.edu>
8148         * lib/font.c: Debugging functionality in separate functions.
8150         * lib/widgets.c: Using fontsel with context.
8152         * lib/diagtkfontsel.[ch]: Context-aware copy of the GTK fontsel.
8154         * objects/custom/custom_object.c: Orientation handling for shapes,
8155         patch thanks to Martin Hans <opfinder@gmx.net>.
8157         * objects/standard/zigzagline.c (zigzagline_move_handle): Starting
8158         work on even better orientation handling.
8160         * app/menus.c (menus_get_item_from_path): Fixed sily warnings from
8161         casting NULL pointers.  Should be unnecessary in an upcoming GTK
8162         release. 
8164 2002-11-18  Lars Clausen  <lrclause@cs.uiuc.edu>
8166         * lib/font.h:
8167         * lib/font.c:
8168         * lib/widgets.c: Now uses correct context to get font families.
8170         * lib/diagdkrenderer.c (get_text_width, draw_string): 
8171         * lib/dialibartrenderer.c (draw_string): 
8172         * lib/font.h: 
8173         * lib/font.c (dia_font_init): Removed old kludgy font name compare.
8174         (dia_font_build_layout): Unified the twiddle factors into a use of
8175         global_size_one.  But I deeply distrust Pango for seeming to
8176         change size of fonts every time I turn my back.
8178         * app/display.c: 
8179         * app/diagram.c: 
8180         * app/menus.c:
8181         * app/menus.h: Updated some more methods to also be more specific
8182         on the types.
8184         * app/menus.h:
8185         * app/recent_files.c: 
8186         Changed to return most specific type, to avoid run-time type errors.
8188         * app/menus.c (menus_get_item_from_path): Non-gnome version now
8189         gets menu_item rather than widget, which works better.
8191 2002-11-17  Cyrille Chépélov  <cyrille@chepelov.org>
8193         * app/display.c: (new_display):
8194         * app/menus.c: (menus_get_item_from_path):
8195         Relying on the tearoff to locate the input methods menu wasn't a
8196         good idea: tearoffs seem to be an endangered species nowadays.
8197         Anyway, the IM menu seems to be working now.
8199         * app/interface.c: hinted the window manager that the toolbox window
8200         is a toolbox window. Not that my (fairly default configuration)
8201         sawfish cares, but other NETWM compliant WMs may.
8203         * app/commands.c: 
8204         * app/defaults.c: 
8205         * app/dia-props.c:
8206         * app/filedlg.c: 
8207         * app/interface.c: 
8208         * app/layer_dialog.c: 
8209         * app/linewidth_area.c: 
8210         * app/properties.c: 
8211         * app/sheets_dialog.c: 
8212         * app/splash.c: 
8214         The GTK doc says to avoir gtk_window_set_wmclass() and 
8215         gtk_window_set_policy(), and use gtk_window_set_role() and
8216         gtk_window_set_resizable(), respectively.
8217         
8218         * app/preferences.c: (prefs_create_dialog):
8219         * app/preferences.h:
8220         * app/display.c: (display_set_active):
8221         Added a preference to have the toolbox hover over diagram windows.
8222                 
8223 2002-11-12  Lars Clausen  <lrclause@cs.uiuc.edu>
8225         * lib/diagdkrenderer.c (get_text_width, draw_string):
8226         Freetype-based string drawing now works.  Not very fast, though.
8227         I wish I could use the graphics card for this:(  I'm doing three
8228         bitmap loops where I should be doing one.  The size is not correct
8229         either, despite having get_text_width give the right thing.
8231 2002-10-21  Lars Clausen  <lrclause@cs.uiuc.edu>
8233         * app/connectionpoint_ops.c (diagram_update_connections_object):
8234         Allows more than one connectionpoint on an object to be moved at a
8235         time (bug #96306).
8237 2002-10-18  Stanislav Brabec  <sbrabec@suse.cz>
8239         * configure.in: Added cs to ALL_LINGUAS.
8241 2002-10-17  Lars Clausen  <lrclause@cs.uiuc.edu>
8243         * app/paginate_psprint.c: Removed unnecessary decl of autosave
8244         stuff.
8246         * app/display.c (ddisplay_set_renderer): Calls to begin/end render.
8248         * app/export_png.c (export_png_ok): Saving more variables from the
8249         evil setjmp.
8251 2002-10-16  Lars Clausen  <lrclause@cs.uiuc.edu>
8253         * lib/dialibartrenderer.c (begin_render):
8254         (end_render): Correct pushing and popping of font contexts.
8255         (draw_string): Double zooming eliminated, strange twiddle factor
8256         introduced (grumble).  Close to working now, but there are still
8257         strange differences from font to font.  In particular, some fonts
8258         really mess with the cursor and extents.
8260         * app/render_eps.c (export_eps): 
8261         * app/diapsrenderer.c (dia_ps_renderer_finalize): 
8262         Fixed file closing confusion, no longer dependent on PS/EPS.
8264         * app/diagram.c (diagram_place_down_selected) 
8265         (diagram_place_up_selected): Now implemented.
8267         * lib/font.c (dia_font_init): 
8268         * lib/font.h: 
8269         Redesigned the font init/context pushing code.  Start of fix for
8270         font name differences.
8271         
8272 2002-10-15  Kjartan Maraas  <kmaraas@gnome.org>
8274         * app/sheets_dialog_callbacks.c: Fix a typo.
8275         
8276 2002-10-15  Hans Breuer  <hans@breuer.org>
8278         * app/diapsrenderer.[hc] : (new files, old content :-)
8279         simple base class for post script rendering. Does neither 
8280         use Pango/FT2 nor does it handle non latin1 characters. 
8281         The fancy stuff which nowadays appears to be needed should 
8282         probably be done in derived class(es)
8284         * app/makefile.msc app/Makefile.am : added new files
8286         * app/paginate_psrint.c : re-enabled and used as test
8287         for the simple ps renderer above.
8289         * app/render_eps.[hc] : ripped out common ps code and
8290         moved to DiaPsRenderer. The rest of the file is mostly
8291         disabled. And I don't understand enough of it to 
8292         change port it.
8294         * app/diaepsrenderer.h : short lived, removed.
8296 2002-10-15  Lars Clausen  <lrclause@cs.uiuc.edu>
8298         * lib/plug-ins.c (dia_register_plugin): Don't try to load libdia
8299         as a plugin (thanks to Torben Nielsen).
8301 2002-10-14  Lars Clausen  <lrclause@cs.uiuc.edu>
8303         * app/diaepsrenderer.h: 
8304         * app/render_eps.h: 
8305         * app/paginate_psprint.c: 
8306         #ifdef'd out enough ps stuff to allow compile.  Now we just need
8307         to convert it.
8308         
8309 2002-10-12  Hans Breuer  <hans@breuer.org>
8311         [last plug-in ported]
8313         * plug-ins/xfig/xfig-export.c : ported to new renderer api
8315         * plug-ins/xfig/xfig-import.c(fig_create_object) : need to
8316         scale color values to [0..1.0] to properly reconstruct
8317         user colors
8319         * plug-ins/xfig/xfig-common.c : some cleaning
8321 2002-10-12  Hans Breuer  <hans@breuer.org>
8323         [decrease inter-plug-in-dependencies]
8325         * objects/custom/shape_info.[hc] : move parse_style()
8326         to lib/dia_svg.[hc] as dia_svg_parse_style(); Namespace
8327         the related structs and constants.
8328         * objects/custom/custom_object.c : reflect namespace
8329         changes
8331         * lib/dia_svg.[hc] : new files
8332         * lib/makefile.msc lib/Makefile.am : add new files
8333         * lib/libdia.def : updated externals
8335         * plug-ins/svg/svg-import.c : use dia_svg_parse_style()
8337         * plug-ins/svg/svg.c : enable svg import for win32 (and
8338         probably for other non ELF builds)
8340         * plug-ins/makefile.msc : enable svg import
8342 2002-10-11  Hans Breuer  <hans@breuer.org>
8344         * plug-ins/metapost/render_metapost.[hc] : ported
8346         * plug-ins/pstricks/render_pstricks.[hc] : dito
8348 2002-10-11  Hans Breuer  <hans@breuer.org>
8350         * plug-ins/cgm/cgm.c : ported, appears to work as before,
8351         but graphic apps available to me can't import the generated 
8352         files (the could not with Dia-0.90 cgm as well) ...
8354         * plug-ins/dxf/dxf-export.c : Ported to new renderer api.
8355         Removed all those function which did emulate 'complex' 
8356         drawing ops with basic ones (e.g. rect by line) cause this
8357         stuff is already provided by the base class
8358         * plug-ins/dxf/dxf-import.c : removed render.h include
8360         * plug-ins/python/pydia-font.[hc]
8361           plug-ins/python/pydia-text.c : finally ported to new font api
8363         * plug-ins/python/pydia-layer.c : add extra parameter
8364         to layer_find_closest_connectionpoint()
8366         * plug-ins/python/pydia-render.c : ported to DiaRenderer api
8368         * plug-ins/python/python.c : added missing copyright notice
8370         * plug-ins/hpg/hpgl.c plug-ins/wpg/wpg.c plug-ins/wmf/wmf.cpp : 
8371         actually use the renderers set_font implementation
8373         * plug-ins/renderer.inc : unused now, removed
8374         * plug-ins/Makefile.am : reflect it
8376 2002-10-08  Hans Breuer  <hans@breuer.org>
8378         * app/render_gdk.c : don't add the InteractiveRenderer
8379         interface multiple times (it's added to the type, not
8380         the object)
8381         * app/render_libart.c : dito. It's currently added
8382         unconditional cause eport_png uses it, but claims
8383         to be non-interactive. Probably set_size should be moved
8384         to the DiaRenderer interface.
8386         * lib/dialibartrenderer.c : add implementations for
8387         get_<width|height>_pixels. Libart rendering works again.
8388         DiaLibartRenderer::draw_image : use dia_image_rowstride()
8389         instead of width*3
8391         * lib/diatransform.c(dia_transform_coords_double) :
8392         don't ROUND() the returned values
8394         * plug-ins/pixbuf/pixbuf.c : added import function. It
8395         simply creates a wrapping "Standard - Image" object.
8397         * plug-ins/shape/shape-export.c : use the more direct
8398         method to call base class methods
8400 2002-10-07  Lars Clausen  <lrclause@cs.uiuc.edu>
8402         * lib/font.c (dia_font_init): Changed dia_font_init to return old
8403         pango context, to allow stacked contexts (for printing while
8404         antialiased).
8405         
8406         * lib/arrows.h
8407         * lib/bezier_conn.h
8408         * lib/beziershape.h
8409         * lib/boundingbox.h
8410         * lib/color.h
8411         * lib/connection.h
8412         * lib/connectionpoint.h
8413         * lib/create.h
8414         * lib/dia_image.h
8415         * lib/diagdkrenderer.h
8416         * lib/diagramdata.h
8417         * lib/dialibartrenderer.h
8418         * lib/diamenu.h
8419         * lib/diarenderer.h
8420         * lib/diasvgrenderer.h
8421         * lib/diatransform.h
8422         * lib/element.h
8423         * lib/filter.h
8424         * lib/focus.h
8425         * lib/font.h
8426         * lib/geometry.h
8427         * lib/handle.h
8428         * lib/neworth_conn.h
8429         * lib/objchange.h
8430         * lib/object.h
8431         * lib/orth_conn.h
8432         * lib/paper.h
8433         * lib/plug-ins.h
8434         * lib/poly_conn.h
8435         * lib/polyshape.h
8436         * lib/properties.h
8437         * lib/ps-utf8.h
8438         * lib/sheet.h
8439         * lib/text.h
8440         * lib/textattr.h
8441         * lib/widgets.h
8442         * lib/diatypes.h
8443         Moved all externally visible struct typedefs into diatypes.h, as
8444         per Hans' suggestions.
8446 2002-10-07  Steffen Macke <sdteffen@web.de>
8448         * lib/Makefile.am: removed a '\' causing problems
8450 2002-10-07  Hans Breuer  <hans@breuer.org>
8452         [Libart Renderer resurrected; almost it's compiling but
8453          almost instantly crashing :-]
8455         * lib/dialibartrenderer.[hc] : new files, ported to DiaRenderer
8456         * app/render_libart.[hc] : ported to DiaInteractiveRenderer
8457         * lib/diatransform.[hc] : added dia_transform_coords_double()
8459         * app/display.c : the right parameters for new_renderer_libart()
8460         * app/export_png.c : ported, removed the blind Display hack
8462         * app/makefile.msc lib/makefile.msc 
8463           lib/Makefile.am : updated
8465         * lib/dia<|gdk|interactive>renderer.c : properly copyrighted
8467 2002-10-06  Hans Breuer  <hans@breuer.org>
8469         * plug-ins/pixbuf/pixbuf.c : (new file)
8470         there is a new export plug-in called 'Pixbuf' which uses 
8471         DiaGdkRenderer to export to gdk-pixbuf supported bitmap
8472         formats (currently only PNG and JPEG).
8474 2002-10-06  Hans Breuer  <hans@breuer.org>
8476         See also: 
8477         http://mail.gnome.org/archives/dia-list/2002-October/msg00027.html
8479         * lib/dia-enums.h lib/diatransform.[hc]
8480           lib/diarenderer.[hc] lib/diainteractiverenderer.c
8481           lib/diagdkrenderer.[hc] lib/diasvgrenderer.[hc]
8482         : new files 
8484         * lib/makefile.msc lib/makefile.am : added new files
8486         * lib/plug-ins.c : g_module_error() returns a locale
8487         string, convert to utf8 before further usage 
8489         * lib/render.h : #error out. Everything including this
8490         needs porting
8491         * lib/*.[hc] : ported to new renderer api
8493         * app/diaepsrenderer.h : unfinished DiaEpsRenderer interface
8494         just to make the rest compile
8495         * app/render_eps.c : temporary disabled all of this
8496         * app/render_eps.h : removed RendererEPS
8498         * app/render_gdk.[hc] : a small wrapper around the new
8499         DiaGdkRenderer form lib/*
8501         * app/render_libart.h : removed RenderLibart definition
8502         * app/render_libart.c : not yet ported to new DiaRenderer
8503         but having an implementation to untie form FT2 dependency
8504         at least on win32. It is using new Pango api form bug #94791
8506         * app/render_pixmap.[hc] : a small wrapper around the new
8507         DiaGdkRenderer form lib/*
8509         * app/display.h : removed render_*.h includes
8510         * app/display.c : the only place where specific 
8511         renderers need to be known
8513         * app/connectionpoint_ops.c app/grid.c app/handle_ops.c
8514         use new DiaInteractiveRenderer interface
8516         * app/*.c : ported to new renderer api
8517         * object/*/*.c : ported to new renderer api
8518         s/render.h/diarenderer.h/
8519         s/Renderer/DiaRenderer/
8520         s/renderer->ops/renderer_ops/
8521         add in every draw method:
8522         DiaRendererClass *renderer_ops = DIA_RENDERER_GET_CLASS (renderer);
8524         * plug-ins/hpgl/hpgl.c : 
8525           plug-ins/wmf/wmf.cpp 
8526           plug-ins/wpg/wpg.c : ported to be DiaRenderer based
8527         * plug-ins/shape/shape-export.c
8528           plug-ins/svg/render_svg.c : ported to be DiaSvgRenderer based
8529           (nice how small these files became :-)
8531 2002-09-28  Hans Breuer  <hans@breuer.org>
8533         * */makefile.msc : updated
8535         * app/defaults.c : don't gdk_invalidate_rect(NULL)
8536         * app/disp_callbacks.c : 
8537         can't cast GtkWindow to GdkWindow, use shell->window
8538         (ddisplay_unrealize) don't use already unrefed im_context
8539         * app/display.c :
8540         can't cast from GtkMenu to GtkMenuItem
8541         (ddisp_destroy) : mark im_context as unrefed
8543         * lib/dia_xml (data_font) : prefer new font format over old one
8544         (data_add_font) : write the legacy name to allow file exchange
8545         with pre Pango versions of Dia, which would otherwise crash 
8546         on missing font 'name' attribute.
8547         * lib/font.c (dia_font_get_legacy_name) : improved implementation
8548         to get a better match.
8550         * lib/libdia.def : updated
8552         * lib/messages.c : don't gdk_widget_show(NULL)
8554         * lib/prop_text.c : don't gtk_entry_set_text() with NULL string 
8556         [make Dia compile, link _and_ work with mingw/gcc3.2]
8558         * config.h.win32 : #define LIBXML, this gets defined from libxml
8559         header but only for _MSC_VER. The mingw build did access an 
8560         unitialized function pointer for xmlFree.
8562         * */makefile.mingw : updated (some plug-ins have build issues)
8563         
8564         * lib/handle.h lib/object.h :   there appears to be no 
8565         forward declaration of the form 
8566                 typedef enum _HandleId HandleId 
8567         (at least not with GCC 3.2 for C++) ../lib/handle.h:22: 
8568         use of enum `_HandleId' without previous declaration
8570         * app/paginate_gdiprint.cpp : added a hack to avoid g++
8571         naming conflict on 'export'
8573         * app/paginate_gdiprint.h : forward declare Diagram
8575         * objects/SADT/annotaion.c : use g_random_double()
8577 2002-09-26  Lars Clausen  <lrclause@cs.uiuc.edu>
8579         * app/modify_tool.c: Made motion not happen until sufficiently
8580         large or past double-click interval, to avoid accidental moving
8581         when doubleclicking.  Got the double-click time right, and fixed
8582         some issues with release.  There are some corner cases that may
8583         exhibit strange behaviour, will look at those later.  Nah, let's
8584         not care about those, they are rare and not dangerous.
8586 2002-09-26  Cyrille Chépélov  <cyrille@chepelov.org>
8588         * app/layer_dialog.c: 
8589         * app/load_save.c: 
8590         * plug-ins/dxf/dxf-import.c: 
8591         * plug-ins/python/pydia-diagram.c: 
8592         * lib/diagramdata.c:
8593         * lib/diagramdata.h:
8594         Improved the consistency of the obj->parent_layer backlinks (esp.
8595         during reloads)
8597         * lib/Makefile.am:
8598         * lib/dummy_dep.h:
8599         * lib/dynamic_obj.[ch] (NEW):
8600         * app/Makefile.am:
8601         * app/app_procs.c: 
8602         * app/dynamic_refresh.[ch] (NEW):
8603         * objects/Misc/analog_clock.c: 
8604         Added support for dynamic refresh (animated objects).
8605                 
8606 2002-09-25  Cyrille Chépélov  <cyrille@chepelov.org>
8608         Patch from Owen Taylor <otaylor@redhat.com>:    
8609         * doc/en/Makefile.am:
8610         * doc/en/dia-manual.sgml:
8611         * doc/en/usage-objects.sgml:
8612         * doc/en/usage-quickstart.sgml:
8613         * doc/pl/Makefile.am:
8614         * doc/pl/dia-manual.sgml:
8615         * doc/pl/usage-objects.sgml:
8616         * doc/pl/usage-quickstart.sgml:
8618         - Change the DTD declration from an outdated GNOME one to a
8619         standard DTD.
8620         
8621         - Remove close tags for <graphics> which aren't allowed for
8622         docbook SGML
8623         
8624         - A hacky fix for a problem where some versions of db2html don't
8625         create *.css files. (If *.css doesn't match anything, then you get
8626         the global explicitely.)
8628         (Closes: #92061)
8629         
8630 2002-09-24  Cyrille Chépélov  <cyrille@chepelov.org>
8632         * objects/custom/custom_object.c: 
8633         * objects/custom/shape_info.[ch]: GE_TEXT display lists elements 
8634         were never properly prepared for use when reloading a shape with
8635         <svg:text> elements. Thanks to Scott Frazer <frazer@nc.rr.com> for
8636         reporting the problem and coming up with a fix! (Closes: #93974)
8638         * app/menus.c: patch from Alan Horkan <horkana@tcd.ie>: review
8639         the menu shortcuts towards better GNOME HIG compliance (Closes: #87157)
8641         * app/menus.c:
8642         * app/display.c: updated menu item paths Alan's patch had moved.
8643         
8644         * app/interface.c: Fixed a crash when gdk-pixbuf doesn't want to
8645         load the sheet-provided icon (libpng versions mismatch, grrr.).
8646         
8647         * configure.in:
8648         * objects/Makefile.am:
8649         * objects/Misc/Makefile.am (NEW):
8650         * objects/Misc/libmisc.c (NEW):
8651         * objects/Misc/analog_clock.c (NEW):
8652         * objects/Misc/pixmaps/analog_clock.xpm (NEW):
8653         * sheets/Misc.sheet.in: just a little experiment...
8655 2002-09-23  Cyrille Chepelov  <cyrille@chepelov.org>
8657         * plug-ins/xlst/Makefile.am: found a way to silence automake while
8658         not forcing everyone to build using libxslt.
8660         * lib/font.c: 
8661         * lib/message.c:
8662         * lib/object_defaults.c:
8663         * lib/intl.[ch]:
8664         * lib/render.c:
8665         * lib/properties.[ch]:
8666         * lib/propobject.c:
8667         * objects/standard/box.c: 
8668         * objects/UML/state_term.c:
8669         * objects/FS/box.c:
8670         * objects/FS/flow-ortho.c:
8671         * app/app_procs.c:
8672         * app/autosave.c:       
8673         * app/commands.c:
8674         * app/diagram_tree.c:
8675         * app/display.c:
8676         * app/disp_callbacks.c:
8677         * app/export_png.c:
8678         * app/filedlg.c:
8679         * app/lineprops_area.c:
8680         * app/menus.c:  
8681         * app/preferences.c:
8682         * app/render_eps.c:     
8683         * app/sheets.c:
8684         * app/sheets_dialog_callbacks.c:
8685         * plug-ins/xslt/xslt.c:
8686         * plug-ins/metapost/render_metapost.c:
8687         * plug-ins/xfig/xfig-export.c:
8688         * plug-ins/shape/shape-export.c:
8689         
8690         Killed most gcc-3.2 warnings (const-correctness and derived warnings, 
8691         unused variables, mostly)
8693         * app/display.c:
8694         * app/menus.c: enabled GTK Input Methods (thanks Lars!)
8696         * app/Makefile.am: modified run_dia.sh so that we recover the
8697         ability to run a debugger despite libtool's hacks.
8699         * plug-ins/dxf/Makefile.am: 
8700         * app/Makefile.am
8701         "make distcheck" fixes.
8702         
8703 2002-09-19  Lars Clausen  <lrclause@cs.uiuc.edu>
8705         * objects/UML/uml.c (uml_get_operation_string): Patch from Mauf
8706         <mfranzoni@madd.it>:  Check for the type being NULL.
8708 2002-09-16  Lars Clausen  <lrclause@cs.uiuc.edu>
8710         * app/render_eps.c (set_font): Re-tweaked font size for printing.
8712 2002-09-12  Cyrille Chepelov  <cyrille@chepelov.org>
8714         Patch from Angus Ainslie <angusa@deltatee.com>:
8715         * plug-ins/dxf/dxf-import.c:
8716         * plug-ins/dxf/autocad_pal.h: Import from visio 2002 improvements.
8718         (plus a couple extra fixes by me, such as the removal of printf's,
8719         adapting for recent changes, and killed a couple warnings) 
8721         * app/authors.h: a 60K patch isn't insignificant, is it?
8722         
8723 2002-09-09  Tor Lillqvist  <tml@iki.fi>
8725         * configure.in: Check for both pangoft2 (using PKG_CHECK_MODULES,
8726         as before) and -lfreetype (using AC_CHECK_LIB). At least on
8727         Solaris with Sun's compiler (Forte C), you need to link also the
8728         dia application with -lfreetype, even if it is implicitly linked
8729         to by -lpangoft2. Rename FREETYPE_CFLAGS and _LIBS to PANGOFT2_*,
8730         which is what they actually mean. Use FREETYPE_LIBS for
8731         -lfreetype.
8733         Don't look for libsunmath if isinf() is not found in math.h (as on
8734         Solaris). The sunmath library is part of Forte C and not present
8735         on all machines. Besides, even if isinf was found in libsunmath,
8736         we didn't use it in the Makefile.am.
8737         
8738         Fix a couple of bashisms.
8740         AC_SUBST also Z_LIBS, need to link the dia application to -lz,
8741         too, on Solaris with Forte C.
8743         Don't try to use the gcc flags with other compilers.
8744         DIA_CHECK_CFLAG gives a false indication that Forte C understands
8745         the gcc -f switches, but in fact they get interpreted meaning
8746         something completely different.
8748         Define the automake conditional HAVE_CGC.
8749         
8750         * app/Makefile.am (dia_LDADD): Add Z_LIBS and FREETYPE_LIBS.
8752         Use -export-dynamic only with gcc.
8754         * */Makefile.am
8755         * */*/Makefile.am: Modify according to the FREETYPE_CFLAGS -> 
8756         PANGOFT2_CFLAGS rename.
8758         * lib/geometry.h: Drop HAVE_SUNMATH_H and <sunmath.h> per above.
8759         
8760         * lib/dia_xml.c: Include geometry.h for the isinf() stuff on
8761         Solaris.
8763         * lib/paper.c: Workaround for gccism: Can't use inline this way with
8764         Forte C, either.
8766 2002-09-08  Cyrille Chepelov  <cyrille@chepelov.org>
8768         * lib/text.c(set_string): fixed a memory leak (char* ain't no
8769         std::auto_ptr<char> !).
8771         * app/display.[ch]:
8772         * app/interface.[ch]:
8773         * app/ddisp_callbacks.[ch]: Added some basic support for input 
8774         methods (GtkIMContext-based)
8776         * lib/Makefile.am:
8777         * app/Makefile.am: made libdia a shared object (per Tor
8778         Lillqvist's suggestion/request), to cope for platforms with a less
8779         than par dynamic library loader.
8781         * app/display.c: disabled the input method menu (I really don't
8782         see where and how to put them. Blame Frozen Bubble )
8783         
8784 2002-09-06  Lars Clausen  <lrclause@cs.uiuc.edu>
8786         * objects/flowchart/box.c (box_update_data): Made resizing
8787         possible again (only set width & height when resized too small).
8789         Patch from Soeren Sandmann <sandmann@daimi.au.dk>:
8791         * app/disp_callbacks.c (ddisplay_canvas_events): Handle
8792         GdkScrollEvents.
8793         
8794 2002-09-05  Cyrille Chepelov  <cyrille@chepelov.org>
8796         * app/authors.h: now showing Akira TAGOH's name in the native script.
8798 2002-09-01  Lars Clausen  <lrclause@cs.uiuc.edu>
8800         * plug-ins/xslt/xslt.c: Removed glib warning for unset
8801         DIA_PLUGIN_PATH.
8803 2002-09-01  Cyrille Chepelov  <cyrille@chepelov.org>
8805         * plug-ins/svg/render_svg.c: Applied (reversed...) patch from
8806         Mike Sowka <msowka@rogers.com>. This fixes a problem with the
8807         sweep flag in arcs.
8809 2002-08-31  Lars Clausen  <lrclause@cs.uiuc.edu>
8811         * objects/UML/class.c: Fixed showing of empty stereotypes and got
8812         the string placed correctly.
8814 2002-08-30  Hans Breuer  <hans@breuer.org>
8816         * lib/font.c (dia_font_get_style) : don't shift already
8817         shifted DIA_FONT values.
8819         * lib/libdia.def : updated externals
8821         * app/disp_callbacks.c : on win32 GdkEventKey::string already
8822         is in UTF-8. (Longterm this probably should be handled on the
8823         gtk api level)
8825         * app/command.[hc] app/display.[hc] app/menus.c : add code to 
8826         switch display renderers again. The libart renderer is very 
8827         useful for win9x with it's limited GDI.
8829         * app/render_gdk.c : use g_warning instead of printf which gets
8830         nowhere on win32 (non console apps)
8832         * app/render_libart.c : make it compile without FREETYPE
8834         * objects/makefile.msc plug-ins/makefile.msc : added clean target
8836 2002-08-29  Lars Clausen  <lrclause@cs.uiuc.edu>
8838         * app/render_eps.c (postscript_draw_contour): Debugging statement
8839         that allowed me to figure out font problems.
8841         * lib/widgets.c (dia_font_selector_set_styles): Use radio menu
8842         items for font styles.
8844         * objects/FS/flow-poly.c: 
8845         * objects/FS/flow-ortho.c: 
8846         * objects/FS/flow.c: Further conversion away from GTK dialogs.
8847         Can't set a default label right now:(
8849         * app/interface.c (fill_sheet_wbox): Added initialization for mask.
8851 2002-08-27  Cyrille Chepelov  <cyrille@chepelov.org>
8852         Patch from Andrew Ferrier  <andrew@new-destiny.co.uk>:
8854         * Makefile.am: rules relating to AUTHORS and THANKS
8855         altered.
8856         * AUTHORS: file content changed to more accurately
8857         reflect guideline requirements.
8858         * TODO: warning added about Gnome BTS.
8859         * KNOWN_BUGS: warning added about Gnome BTS.
8861         ---
8863         * AUTHORS: added full copyright info.
8864         * mkauthors-placeholder: (removed) 
8865         
8866 2002-08-27  Lars Clausen  <lrclause@cs.uiuc.edu>
8868         * app/paginate_psprint.c (print_page): Fixed text printing after
8869         tip from Dov Grobgeld.
8871 2002-08-26  Lars Clausen  <lrclause@cs.uiuc.edu>
8873         * app/paginate_psprint.c (print_page): Fixed color of clip
8874         region.
8876 2002-08-26  Cyrille Chepelov  <cyrille@chepelov.org>
8878         * sheets/Makefile.am: enabled intltool-merge translation cache for
8879         sheets.
8881         * Makefile.am:
8882         * mkauthors-placeholder:
8883         * AUTHORS: revived that file (in a placeholder form) so that
8884         automake stops yelling.
8885         (derived from a patch by Andrew Ferrier <andrew@new-destiny.co.uk>) 
8886         (Closes: #91144)
8888         Heh, by the way, thanks Christophe. I feel better now.
8889         
8890 2002-08-25  Christophe Merlet  <christophe@merlet.net>
8892         * app/command.c: Removed invalid multibyte sequence in Chepelov.
8894 2002-08-24  Lars Clausen  <lrclause@cs.uiuc.edu>
8896         * lib/dia_image.c (dia_image_rgb_data): 
8897         Bugfixes in image data retrieval.
8898         
8899         * app/render_eps.c: Refactoring of new_*_renderer.
8901 2002-08-23  Lars Clausen  <lrclause@cs.uiuc.edu>
8903         * app/render_eps.c: 
8904         * lib/dia_image.h: 
8905         * lib/dia_image.c: Support for rowstride != width (odd width images)
8907 2002-08-20  Lars Clausen  <lrclause@cs.uiuc.edu>
8909         * lib/paper.c (get_paper_info): Fixed NULL prefs problem.
8910         * plug-ins/xfig/xfig-import.c: Removed assertion.
8912 2002-08-18  Lars Clausen  <lrclause@cs.uiuc.edu>
8914         * lib/paper.c: Removed app/preferences.h reference.
8916 2002-08-14  Lars Clausen  <lrclause@cs.uiuc.edu>
8918         * plug-ins/svg/svg-import.c: 
8919         * plug-ins/xfig/xfig-import.c: 
8920         * lib/Makefile.am (libdia_a_SOURCES): 
8921         * objects/standard/Makefile.am (libstandard_objects_la_SOURCES): 
8922         * lib/create.h:
8923         * objects/standard/create.h:
8924         * objects/standard/polygon.c (polygon_create): 
8925         * objects/standard/polyline.c (polyline_create): 
8926         * objects/standard/beziergon.c (beziergon_create): 
8927         * objects/standard/bezier.c (bezierline_create): 
8928         Moving create.h into lib.
8930 2002-08-13  Lars Clausen  <lrclause@cs.uiuc.edu>
8932         * app/render_libart.[ch]: Work on PNG font export.  Something's
8933         still fishy with the scaling, I don't get it.
8935         * app/display.c: 
8936         * app/interface.c: Replaced broken zoom combo with entry+menu.
8937         Now works beautifully.  Removed WITHOUT_ZOOM_COMBO stuff.
8939         * app/render_gdk.c (get_text_width): Checks for validity of text.
8940         Temporary help while debugging input -- should only activate on
8941         invalid input.
8943         * objects/SADT/annotation.c: 
8944         * objects/GRAFCET/transition.c: 
8945         * objects/FS/function.c: Removal of gtk.h include.
8947         * objects/UML/state.c (state_load): Warnings about using State
8948         object for initial/final states.
8950         * plug-ins/cgm/cgm.c (init_fonts): Proper Pango interfacing.
8952 2002-08-12  Lars Clausen  <lrclause@cs.uiuc.edu>
8954         * app/render_eps.c: Text rendering that scales correctly.  Too bad
8955         the standard fonts don't get selected right.
8957 2002-08-09  Lars Clausen  <lrclause@cs.uiuc.edu>
8959         * lib/diagramdata.h: 
8960         * lib/paper.c (get_paper_info): 
8961         * lib/paper.h: 
8962         * plug-ins/xfig/xfig-import.c: 
8963         Committed before testing.  I am so embarrased.  This compiles, now
8964         that the includes are in the right order.
8965         
8966         * app/diagram.c (diagram_init): 
8967         * app/app_procs.c (do_convert): 
8968         * app/preferences.h: 
8969         * lib/diagramdata.h: 
8970         * lib/diagramdata.c (new_diagram_data): 
8971         * lib/paper.h: 
8972         * lib/paper.c (get_paper_info): 
8973         Moved new_diagram part of prefs into lib/diagramdata.h.  More
8974         could be done in new_diagram_data() now.
8976 2002-08-08  Lars Clausen  <lrclause@cs.uiuc.edu>
8978         * app/render_eps.c: Better scaling of fonts at non-normal zoom.
8980 2002-08-07  Cyrille Chepelov <cyrille@chepelov.org>
8982         * configure.in: removed silly user-visible comment
8984         (actually, this is a dummy entry before I manually run nemo; for
8985         some dist-upgrade related reason, this morning's run aborted before
8986         the snapshots were created)
8987         
8988 2002-08-06  Lars Clausen  <lrclause@cs.uiuc.edu>
8990         * objects/network/wanlink.c: 
8991         * objects/network/bus.c: 
8992         stdprop compliance!
8994         * objects/custom/custom_object.c: 
8995         * objects/network/wanlink.c: 
8996         * objects/flowchart/parallelogram.c: 
8997         * objects/flowchart/ellipse.c: 
8998         * objects/flowchart/diamond.c: 
8999         * objects/flowchart/box.c: 
9000         Removed GTK defaults stuff.
9001         
9002         * objects/UML/fork.c: 
9003         * objects/UML/object.c: 
9004         * objects/UML/lifeline.c: 
9005         * objects/UML/branch.c: 
9006         * objects/GRAFCET/transition.c: 
9007         * objects/FS/function.c: Removed GTK include.
9009         * objects/FS/flow-ortho.c: 
9010         * objects/FS/flow.c: Made the label behave again.
9011         Also removed GTK defaults stuff.
9013 2002-08-06  Hans Breuer  <hans@breuer.org>
9015         * app/autosave.c : ported to GDir which is the improved
9016         cross platform replacement for <dirent.h>
9018         * app/makefile.msc : build autosave.obj
9020         * app/font.c : some (bad?) code calls 
9021         dia_font_scaled_decent() not only with empty string but 
9022         with NULL. Handle it gracefully.
9024         * lib/paper.c : don't depend on ../app. Although IMO
9025         this shouldn't be allowed on any platform it is only
9026         disabled for win32, where it simply doesn't work
9027         this way
9029         * lib/widget.c (strcase_equal) : pass char* to g_strcasecmp()
9031         * objects/fs/flow.c : conditionalize debug spew, disabled
9032         and 'ported' to use g_print. Simple printf won't work with
9033         standard win32 gui apps, may even crash them.
9035         * plug-ins/makefile.msc : DISABLED svg-import cause it
9036         depends on ../objects/custom. This not only break the
9037         build for all non ELF systems but IMO also isn't acceptable
9038         from a design point of view. See dia-list mail on subject.
9040         * plug-ins/python/makefile.msc :
9041           plug-ins/python/python.c : remove all references to dirent    
9043 2002-08-05  Cyrille Chepelov  <cyrille@chepelov.org>
9045         * configure.in: added ro to ALL_LINGUAS
9047         * po-checktrans:
9048         * po-checktrans.py:
9049         * ../translation-graphs/transgraph.py: added support for fuzzy
9050         translations. Enlarged the graphs.
9052 2002-08-05  Lars Clausen  <lrclause@cs.uiuc.edu>
9054         * app/disp_callbacks.c (ddisplay_canvas_events): Now translates
9055         key events according to locale.  No clue if this works for
9056         advanced stuff.
9058 2002-08-04  Lars Clausen  <lrclause@cs.uiuc.edu>
9060         * lib/text.c: Various UTF8 related fixes, in particular in
9061         deleting.  Text_insert_char is fine, far as I can tell.
9063         * app/interface.c (create_display_shell): 
9064         * app/commands.c: Now uses gtk_clipboard functions, for they are
9065         much simpler.  Also handles Win32 clipboard.  Non-ascii chars
9066         don't seem to get handled correctly by text_insert_char in
9067         lib/text.c.
9068         
9069         * app/commands.c (received_selection_handler): Got utf8 handling
9070         on paste, and individual char handling out of commands.c.  Pasting
9071         non-ASCII is still broken, somehow.  It's all lib/text.c's fault.
9073         * lib/message.c (gtk_message_internal): Message dialog re-shown
9074         when new message appears.  Maybe it should even move to top?
9076         * lib/font.c: 
9077         * lib/widgets.c: 
9078         * app/render_eps.c (create_eps_renderer): Fonts now lowercase
9079         (again) and case-insensitive.
9081         * objects/GRAFCET/condition.c (CONDITION_FONT): Changed to
9082         BASIC_SANS_FONT. 
9084 2002-08-02  Lars Clausen  <lrclause@cs.uiuc.edu>
9086         * app/commands.c (edit_cut_text_callback): 
9087         * lib/text.c (text_delete_all): Now functioning undo for text cut.
9088         
9089         * app/commands.c (edit_cut_text_callback): Now removes text.
9090         Undo is broken, though.
9092 2002-08-01  Lars Clausen  <lrclause@cs.uiuc.edu>
9094         * app/diagram.c (diagram_update_menu_sensitivity): 
9095         Making cut_text active.
9096         
9097         * app/commands.h: 
9098         * app/commands.c: Using PROP_TYPE_TEXT to find text to copy to
9099         clipboard.  Also removed AA callback.   
9101 2002-08-01  Lars Clausen  <lrclause@cs.uiuc.edu>
9103         * objects/chronogram/chronoref.c: 
9104         * objects/chronogram/chronoline.c: 
9105         * objects/SADT/annotation.c: 
9106         * objects/SADT/arrow.c: 
9107         * objects/SADT/box.c: 
9108         * objects/GRAFCET/vergent.c: 
9109         * objects/GRAFCET/vector.c: 
9110         * objects/GRAFCET/step.c: 
9111         * objects/GRAFCET/condition.c: 
9112         * objects/GRAFCET/action.c: 
9113         * objects/ER/participation.c: 
9114         * objects/ER/relationship.c: 
9115         * objects/ER/entity.c: 
9116         * objects/ER/attribute.c: 
9117         Removing unnecessary GTK references.
9119 2002-07-31  Lars Clausen  <lrclause@cs.uiuc.edu>
9121         * objects/standard/image.c: 
9122         * objects/standard/textobj.c: 
9123         * objects/standard/ellipse.c: 
9124         * objects/standard/polygon.c: 
9125         * objects/standard/beziergon.c:
9126         * objects/standard/box.c: 
9127         Making default default properties.
9128         
9129         * objects/standard/image.c: 
9130         * objects/standard/arc.c: 
9131         * objects/standard/box.c: 
9132         * objects/standard/zigzagline.c: 
9133         * objects/standard/polyline.c: 
9134         * objects/standard/line.c: 
9135         * objects/standard/ellipse.c: 
9136         * objects/standard/polygon.c: 
9137         * objects/standard/beziergon.c: Removing vestigal GTK stuff.
9139         * lib/object_defaults.c (dia_object_default_create): 
9140         * lib/proplist.c: 
9141         * lib/properties.h: 
9142         * lib/object.c (object_copy_using_properties): 
9143         * lib/propdialogs.c: 
9144         * lib/propinternals.h: 
9145         * lib/propobject.c (object_create_props_dialog)
9146         (object_copy_props): 
9147         Removing the standard (toolbox) properties from defaults dialogs.
9149 2002-07-30  Lars Clausen  <lrclause@cs.uiuc.edu>
9151         * lib/font.c (dia_font_scaled_string_width) 
9152         (dia_font_scaled_ascent, dia_font_scaled_descent): Account for
9153         zoom factor.
9154         * lib/text.c (text_calc_boundingbox): Take descent into account.
9156         * objects/standard/bezier.c (bezierline_draw): 
9157         * lib/render.c (draw_bezier_with_arrows): 
9158         Better arrow drawing for beziers.  Doesn't change the mouse-click
9159         area either.
9161         * lib/arrows.h: Some const-ness.
9163         * lib/arrows.c (calculate_arrow_point): Initialize zero-length moves.
9165         * lib/render.c (draw_arc_with_arrows): 
9166         * objects/standard/arc.c (arc_draw): Better arrow drawing for
9167         arcs.  Doesn't change the mouse-click area yet.
9169         * app/menus.c: Forgotten fix:  Redraw menu item for non-Gnome.
9171         * lib/render.h: 
9172         * lib/render.c: 
9173         Arc arrow prework.
9175 2002-07-29  Lars Clausen  <lrclause@cs.uiuc.edu>
9177         * app/group.c (group_draw): Forgotten commit: Groups to draw as
9178         objects (using default routines).
9180         * app/object_ops.h: 
9181         * app/diagram.h: 
9182         * lib/diagramdata.h: 
9183         * lib/diagramdata.c (layer_find_closest_connectionpoint): 
9184         * objects/standard/zigzagline.c (zigzagline_move_handle): 
9185         * app/diagram.c (diagram_find_closest_connectionpoint): 
9186         * plug-ins/python/pydia-diagram.c
9187         (PyDiaDiagram_FindClosestConnectionPoint):
9188         * app/object_ops.c (object_connect_display) 
9189         (object_find_connectpoint_display) 
9190         * app/create_object.c (create_object_button_press) 
9191         (create_object_motion): 
9192         * app/modify_tool.c (modify_motion): 
9193         Adding object param to allow connectionpoint and handle coinciding.
9195         * objects/standard/zigzagline.c (zigzagline_check_orientation): 
9196         Fixing minor problems.
9198         * objects/standard/ellipse.c (ellipse_update_data): 
9199         Added direction hints.
9201         * lib/diagramdata.c: 
9202         * lib/object.c: 
9203         * lib/object.h: 
9204         * lib/diagramdata.h: 
9205         * objects/standard/zigzagline.c: 
9206         First working example of zigzagline hints, currently only between
9207         Box and Zigzagline.
9209 2002-07-27  Steffen Macke <sdteffen@web.de>
9211         * plug-ins/svg/render_svg.c: added support for rounded
9212         rectangles (fixes #69053 if compile with
9213         -DNEW_RENDER_OPS)
9214         * object/custom/shape_info.[c|h]: made parse_style and
9215         parse_path accessible for svg plug-in
9216         * plug-ins/svg/Makefile.am:
9217         * plug-ins/svg/svg.c:
9218         * plug-ins/svg/svg-import.c(new): added SVG import filter
9220 2002-07-27  Lars Clausen  <lrclause@cs.uiuc.edu>
9222         * objects/standard/box.c: 
9223         * objects/standard/zigzagline.c (zigzagline_move): 
9224         More work on zigzagline hints.
9226 2002-07-26  Lars Clausen  <lrclause@cs.uiuc.edu>
9227         * lib/connectionpoint.h: 
9228         Hints for zigzaglines.
9230         * app/properties.c (properties_show): 
9231         * app/defaults.c (defaults_show): 
9232         * lib/properties.h: 
9233         * lib/propobject.c (object_create_props_dialog): 
9234         * lib/object.h: 
9235         * objects/FS/flow-poly.c: 
9236         * objects/network/wanlink.c: 
9237         * objects/network/bus.c: 
9238         * objects/UML/class.h: 
9239         * objects/UML/class_dialog.c: 
9240         * objects/UML/association.c: 
9241         Start of removing toolbox props from props dialogs.
9242         
9243         * lib/widgets.c: 
9244         * lib/arrows.h: 
9245         * app/lineprops_area.c (dia_arrow_chooser_new): 
9246         * lib/arrows.c: Two new arrows: Concave, filled and blanked.
9248         * app/create_object.c: 
9249         * app/modify_tool.c: 
9250         * app/cursor.h: 
9251         * app/cursor.c: 
9252         More cursor change.
9254 2002-07-25  Lars Clausen  <lrclause@cs.uiuc.edu>
9256         * app/preferences.c: 
9257         * lib/paper.c: 
9258         * app/diapagelayout.c: 
9259         New prefs selector kind PREF_CHOICE chooses between a list of
9260         strings.  Used for picking default paper.
9261         
9262         * app/preferences.c (prefs_data): 
9263         * lib/paper.c (get_paper_info): Added prefs setting for
9264         is_portrait.
9266         * lib/render.c (draw_polyline_with_arrows): Handles degenerate
9267         line segments at the ends (bug #86603).
9269 2002-07-25  Lars Clausen  <lrclause@cs.uiuc.edu>
9271         * objects/standard/zigzagline.c (zigzagline_copy): Fix for bug
9272         #60324: Now calls update_data after copy.
9274         * app/interface.c (fill_sheet_wbox): Better fix for bug #88601:
9275         Now doesn't steal selection from non-object tools.
9277 2002-07-24  Lars Clausen  <lrclause@cs.uiuc.edu>
9279         * app/commands.c (help_manual_callback): Uses BROWSER environment
9280         variable when available.
9282 2002-07-23  Lars Clausen  <lrclause@cs.uiuc.edu>
9284         * app/interface.c (fill_sheet_wbox): Fix for bug #88601: Select an
9285         object from the new sheet when changing.
9287         * app/app_procs.c (app_init): Uses more standard size icon, from
9288         patch #56433.  Keeping old icon as dia_gnome_icon_large.png.
9290 2002-07-22  Lars Clausen  <lrclause@cs.uiuc.edu>
9292         * objects/UML/implements.c (implements_update_data): 
9293         * objects/UML/realizes.c (realizes_update_data): 
9294         * objects/UML/dependency.c (dependency_update_data): 
9295         Test for null strings before calling on ascent.
9297         * objects/UML/realizes.c (realizes_draw): 
9298         * objects/UML/message.c (message_draw): 
9299         * objects/UML/generalization.c (generalization_draw): 
9300         * objects/UML/dependency.c (dependency_draw) 
9301         * objects/UML/constraint.c (constraint_draw): 
9302         * objects/GRAFCET/condition.c (condition_draw): 
9303         * objects/UML/association.c (association_draw): 
9304         * objects/FS/flow-ortho.c (orthflow_draw): 
9305         * objects/FS/flow.c (flow_draw): Change to use
9306         draw_foo_with_arrows.  Pretty pretty arrows.  Yay me!
9308         * lib/render.h: 
9309         * lib/arrows.c (calculate_arrow_point): 
9310         * lib/arrows.h: 
9311         * lib/render.c: 
9312         * objects/standard/zigzagline.c:
9313         * objects/standard/polyline.c:
9314         * objects/standard/line.c: Work towards better arrow drawing.
9316 2002-07-21  Lars Clausen  <lrclause@cs.uiuc.edu>
9318         * objects/UML/state.c: Starting phase-out of State object as
9319         initial/final state (which never worked right).
9321         * app/app_procs.c (app_init): --version command line option for
9322         non-Gnome.
9324         * configure.in: Slight improvement in GETTEXT_PACKAGE handling.
9326 2002-07-19  Lars Clausen  <lrclause@cs.uiuc.edu>
9328         * app/render_eps.c: Removed debugging info.
9330         * lib/font.c (dia_font_scaled_ascent, dia_font_scaled_descent):
9331         Kludge to make ascent and descent work for empty strings.  Won't
9332         work when using non-ASCII fonts.  Better would be to get a
9333         PangoFont and ask directly.
9335         * configure.in: Simple define of GETTEXT_PACKAGE, and some updates
9336         of the init stuff.
9338         * app/render_gdk.c (get_text_width): Fixed use of wrong string.
9339         Cursor now better.
9341 2002-07-18  Lars Clausen  <lrclause@cs.uiuc.edu>
9343         * plug-ins/xfig/xfig-export.c: First use of draw_object render
9344         function: All shapes are now groups in XFig export.
9346         * lib/diagramdata.c (normal_render): 
9347         * lib/render.c: 
9348         * lib/render.h: 
9349         * app/display.c (ddisplay_obj_render): 
9350         New render function for drawing objects, allows renderers to group
9351         or otherwise specially handle objects.  We may want to reconsider
9352         calling it in app/display.c, as we 'know' the object draw function
9353         is the default one there.
9355         * lib/Makefile.am: Removed extra \ that broke stuff.
9357         * plug-ins/xfig/xfig-import.c: 
9358         Spline import for xfig.  Not perfect.
9360         * objects/standard/create.h: 
9361         * objects/standard/bezier.c (bezierline_create): 
9362         * lib/bezier_conn.c: 
9363         * lib/beziershape.c (beziershape_set_points): 
9364         * lib/bezier_conn.h: 
9365         * lib/beziershape.h: 
9366         Support for creating beziers non-interactively.
9368 2002-07-17  Lars Clausen  <lrclause@cs.uiuc.edu>
9370         * plug-ins/xfig/xfig-import.c: Support for polygons and
9371         polylines.  Special warning handling system removed.
9373         * lib/message.c (gtk_message_internal): Fixed bug involving
9374         closing message window and then getting repeated message.
9376         * Makefile.am: 
9377         * autogen.sh: 
9378         * configure.in (GETTEXT_PACKAGE): 
9379         Update based on bug #88199.  Hopefully this doesn't break too much
9380         intl stuff.
9382         * dia.desktop.in (_Comment): Changed after suggestion from
9383         calum.benson@ireland.sun.com (bug 88345)
9385         * app/sheets_dialog_callbacks.c: Fix from Dolores Alia de Saravia
9386         <loli@unsa.edu.ar> that makes user/system distinction better.
9388 2002-07-16  Lars Clausen  <lrclause@cs.uiuc.edu>
9390         * app/render_libart.c: Got the context right, removed crashes.
9392         * app/commands.c: 
9393         * app/commands.h: 
9394         Redraw menu item.
9396         * app/display.c: 
9397         * app/display.h: 
9398         * app/interface.c: 
9399         * app/menus.c: 
9400         Remove libart #defines from most places (still around for png export).
9402         * app/render_libart.h: 
9403         * app/render_libart.c: 
9404         * configure.in (HAVE_LIBART): 
9405         Starting on update of libart stuff for png export (without X).
9407         * app/autosave.h (autosave_check_autosave): 
9408         * app/load_save.h: 
9409         * app/diagram.h: 
9410         * app/Makefile.am (dia_core_files): 
9411         * app/load_save.c: 
9412         * app/diagram.c (diagram_set_modified): 
9413         * app/autosave.c: 
9414         * app/app_procs.c (app_init): 
9415         Autosave support.  No automatic restore yet.
9417 2002-07-16  Lars Clausen  <lrclause@cs.uiuc.edu>
9419         * app/render_eps.c (create_eps_renderer): #ifdef'd a scale
9420         assignment. 
9421         
9422 2002-07-15  Lars Clausen  <lrclause@cs.uiuc.edu>
9424         * app/interface.c (fill_sheet_menu): Tear-off for sheets menu.
9426 2002-07-15  Andrew Ferrier  <andrew@new-destiny.co.uk>
9428         * Fix for 'make dist' etc. --- problem caused by
9429         previous AUTHORS patch.
9431 2002-07-14  Lars Clausen  <lrclause@cs.uiuc.edu>
9433         * plug-ins/cgm/cgm.c (init_fonts): Changed pango_font_map to
9434         pango_context. 
9435         (set_font): NULL check.
9436         
9437 2002-07-12  Lars Clausen  <lrclause@cs.uiuc.edu>
9439         * app/disp_callbacks.c: 
9440         * lib/diamenu.h: 
9441         Addition to the object menus allows check menu items.
9443 2002-07-11  Andrew Ferrier  <andrew@new-destiny.co.uk>
9445         * HACKING: completely changed to bring up-to-date.
9446         * AUTHORS: file needs REMOVING from CVS as now
9447           dynamically generated.
9448         * app/authors.h: split into subcategories for original
9449           authors, maintainers, etc.
9450         * app/app_procs.c: --credits rewritten to support new
9451           app/authors.h
9452         * app/commands.c: no changes to about box code, comment
9453           added though.
9454         * Makefile.am: added rule for AUTHORS. I'm still
9455           inexperienced with automake, it seems to work, but
9456           for AUTHORS-related bugs, look at this change first.
9458 2002-07-10  Lars Clausen  <lrclause@cs.uiuc.edu>
9460         * plug-ins/Makefile.am (SUBDIRS): Just realized why my hack didn't
9461         work.  Back to including xslt dir always.
9463         * objects/UML/uml.c: 
9464         * objects/UML/class.h: 
9465         * objects/UML/class_dialog.c: 
9466         * objects/UML/class.c: Patch from
9467         <mattam@netcourrier.com>:  Adds comment visibility switch, also
9468         fixes various bugs.
9470         Big patch from Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
9471         for state/fork/activity stuff.
9472         * objects/UML/state.c: Removed old draw_rounded_rectangle code.
9473         * objects/UML/Makefile.am:
9474         * objects/UML/uml.c:
9475         * sheets/UML.sheet.in: Added new objects activity, fork,
9476           state_term.
9477         * objects/UML/pixmaps/state_term.xpm:
9478         * objects/UML/state_term.c: New, only initial/final states.
9479         * objects/UML/pixmaps/activity.xpm:
9480         * objects/UML/activity.c: New, activity state.
9481         * objects/UML/pixmaps/fork.xpm:
9482         * objects/UML/fork.c: New, fork/join bar.
9483         * objects/UML/pixmaps/state.xpm: state icon.
9485         
9486         * doc/diagram.dtd: 
9487         * doc/shape.dtd: Patch from "Dolores Alia de Saravia"
9488         <loli@unsa.edu.ar> to add dia: to diagram.dtd elements and add
9489         svg:text to shape.
9491 2002-07-07  Lars Clausen  <lrclause@cs.uiuc.edu>
9493         * plug-ins/Makefile.am (SUBDIRS): Made the XSLT dir depend on
9494         detecting XSLT
9496         * app/Makefile.am: Commented out the diaconv parts while it's not
9497         used anyway.  To come back later.
9499         * configure.in (HAVE_FREETYPE): 
9500         * app/app_procs.c: 
9501         * app/render_eps.h: 
9502         * app/render_eps.c: Support for printing with freetype, better
9503         encapsulated now.  Renders the text nicely, but ignores font
9504         setting.  Requires pangoft2 to get the font outline, but non-text
9505         objects can still be rendered without it.
9507         * app/commands.h: 
9508         * app/commands.c (objects_place_up_callback) 
9509         (objects_place_down_callback): 
9510         * app/diagram.h: 
9511         * app/diagram.c (diagram_place_down_selected) 
9512         (diagram_place_up_selected): Starting support for moving objects
9513         one level up/down.
9515         * app/menus.c: Removed character/numeral shortcuts.
9517 2002-07-06  Hans Breuer  <hans@breuer.org>
9519         * makefile.am app/makefile.am lib/makefile.am
9520           objects/makefile.am plug-ins/makefile.am 
9521           plug-ins/python/makefile.am :
9522         added required files for win32 build to EXTRA_DIST
9524         * app/paginate_psprint.c app/render_eps.c 
9525           app/app_procs.c :
9526         wrap (E)PS Renderer into HAVE_FREETYPE, no FreeType
9527         on Pango as currently is on win32 => no PostScript 
9528         anymore.
9530         * lib/widgets.c : undef GTK_DISABLE_DEPRECATED;
9531         use '/* noop */;' for empty case labels; replace
9532         debug spew printf with g_print which is guaranteed 
9533         to work on win32, too.
9535         * lib/font.c (dia_pfd_set_weight) : set 'intermediate' values 
9536         for DIA_FONT_MEDIUM and DIA_FONT_DEMIBOLD as explicit allowed 
9537         in the pango_font_description_set_weight() api documentation
9538         Take care for them in dia_font_get_style() too.
9540         * lib/font.[hc] lib/widget.c objects/custom/shape_info.c
9541           plug-ins/shape/shape-export.c plug-ins/svg/render_svg.c :
9542         rename Obliquity to Slant which appears to be the usual name,
9543         also rename dia_font_get_style_string -> dia_font_get_slant_string
9545         * plug-ins/wmf/wmf.cpp : finally ported to new font api
9547         * lib/prop_attr.c app/render_gdk.c : dont *_unref if NULL
9549         * objects/uml/association.c class.c large_package.c message.c
9550         if g_free() is used g_strdup needs to be used.
9551         * objects/custom/shape_info.c
9552           objects/ER/attribute.c entity.c
9553           objects/standard/image.c 
9554           app/sheets_dialog_callbacks.c : more strdup cleaning
9556 2002-07-05  Lars Clausen  <lrclause@cs.uiuc.edu>
9558         * app/render_eps.c: Non-crashing printing (made the right
9559         context).  Font output still fscked up.
9561 2002-07-05  Andrew Ferrier  <andrew@new-destiny.co.uk>
9563         * app/authors.h: Added file --- now master
9564         location for contributors data.
9565         * app/app_procs.c: Added --credits option.
9566         * app/commands.c: Modified about box to use
9567         app/authors.h.
9569 2002-07-05  Lars Clausen  <lrclause@cs.uiuc.edu>
9571         * app/render_eps.c: First stab at EPS rendering using the contour
9572         code from PAPS.  Crashes.
9574 2002-06-30  Lars Clausen  <lrclause@cs.uiuc.edu>
9576         * app/recent_files.c (recent_file_history_remove): 
9577         Fixed call to g_list_delete_link discarding return value.
9578         
9579         * lib/widgets.c (dia_font_selector_set_styles): 
9580         * lib/font.h (DiaFontWeight): 
9581         * lib/font.c (dia_font_get_style): Revert to DIA_FONT_NORMAL==0
9583 2002-06-30  Cyrille Chepelov  <cyrille@chepelov.org>
9585         Contribution from Alan Horkan <horkana@tcd.ie>: 
9586         
9587         * shapes/Assorted/*
9588         * sheets/Assorted.sheet:
9589         A set of 40 assorted geometric shapes.
9591         * sheets/Assorted.sheet.in:
9592         * sheets/Makefile.am
9593         * shapes/Assorted/Makefile.am:
9594         * shapes/Makefile.am:
9595         * po/POTFILES.in:
9596         * configure.in:
9597         Done the integration job of Alan's shapes. (Translators: have fun!)
9599         * po/dia.pot: refreshed the main potfile.
9600         
9601 2002-06-28  Cyrille Chepelov  <cyrille@chepelov.org>
9603         Patch from Tim Ellis <Tim.Ellis@gamet.com>:
9604         
9605         * objects/UML/class.[ch]:
9606         * objects/UML/class_dialog.c:
9607         changed the number of connection points from a hardcoded value of
9608         8 to a #defined constant
9610         (I changed the constant back from 20 to 8, until we better know
9611         how we'll handle more connection points on the UML class in the
9612         future -- but Tim's patch is a welcome clean-up).
9614 2002-06-26  Cyrille Chepelov  <cyrille@chepelov.org>
9616         * shapes/MSE/demultiplexer.xpm:
9617         * shapes/MSE/node_center.xpm:
9618         * shapes/MSE/multiplexer.xpm:
9619         * shapes/MSE/tacsat.xpm: updated MSE icons (transparency) by Alan
9620         Horkan <horkana@tcd.ie>
9622 2002-06-25  Lars Clausen  <lrclause@cs.uiuc.edu>
9624         * lib/widgets.c: Total rehash of font selector, with font dialog
9625         option, expanding list (not LRU yet), and stuff.
9627 2002-06-25  Cyrille Chépélov  <cyrille@chepelov.org>
9629         * lib/font.h:
9630         * lib/font.c: 
9631         Added a set of new setter/getters, some of them more specially for
9632         the SVG-ish I/O.
9633         
9634         * plug-ins/shape/shape-export.c: (new_shape_renderer),
9635         (destroy_shape_renderer), (set_font), (draw_string):
9636         * plug-ins/svg/render_svg.c: (new_svg_renderer),
9637         (destroy_svg_renderer), (set_font), (draw_string):
9639         Actually exported the font face, style, weight and size (sodipodi
9640         agrees with dia on how a small sample should look like (a sample
9641         0.90 would not even display anyways). Yay !)
9643         Patch from Matthieu Sozeau <mattam@netcourrier.com>:
9645         * plug-ins/xslt/Makefile.am: repaired the mess Cyrille put there.
9647         (end of ChangeLog-less patch)
9649         * objects/custom/shape_info.c (parse_style): now understands the
9650         font-style and font-weight attributes as well. Does not use
9651         anymore dia_font_new_from_legacy_name().
9652         
9653 2002-06-24  Lars Clausen  <lrclause@cs.uiuc.edu>
9655         * objects/standard/textobj.c: Now uses stdprops for defaults.
9657         * lib/font.h: Changed order of DiaFontWeight entries.  Sorry.
9658         * lib/font.c (dia_font_get_style): Style now linear and conversion
9659         simple. 
9661         * lib/widgets.c (dia_font_selector_set_styles): Fixed the style
9662         selector. 
9664 2002-06-24  Cyrille Chepelov  <cyrille@chepelov.org>
9666         * plug-ins/dxf/dxf-import.c:
9667         using dia_font_new_from_style()
9669         Patch from Matthieu Sozeau  <mattam@netcourrier.com>:
9671         * objects/UML/class.[ch]: Added a comment field to class
9672         * objects/UML/uml.[ch]: Added a comment field to attributes,
9673         operations and parameters.
9674         * objects/UML/class_dialog.c: Added code for the new comment
9675         fields.
9676         * plug-ins/xslt/*.xsl: Added some code to handle comments.
9677         * plug-ins/xslt/xslt*.c: Clean up based on Cyrille comments.
9678         Added a $directory parameter for stylesheets so the output is 
9679         in the good place (not in the $PWD).
9681         (end of Patch)
9683         * AUTHORS: added contributors, updated maintainers. Removed the
9684         specific areas of action.
9686         * Patch from Andrew Ferrier <andrew@new-destiny.co.uk>, derived
9687         from a patch by Xing Wang <quixon@gnuchina.org>:
9689         * app/commands.c: help_about_callback now supports
9690         new-style GNOME about box as well as old GTK style. 
9691         code also tidied (Closes: #85726)
9693         (end of Patch)
9695         * app/commands.c: fixed the copyright (it's not all FSF), and
9696         maintainers. Synced contributors list with AUTHORS.
9697                 
9698 2002-06-24  Lars Clausen  <lrclause@cs.uiuc.edu>
9700         * lib/message.c: More work on repeating messages, now with
9701         togglable view.
9703 2002-06-24  Hans Breuer  <hans@breuer.org>
9705         * lib/widget.c : some more bits in place, at least
9706         it does something useful instead of crashing. Much
9707         better - but not all ok :-)
9709 2002-06-23  Lars Clausen  <lrclause@cs.uiuc.edu>
9711         * lib/message.c (gtk_message_internal): First stab at repeating
9712         message dialog.
9714 2002-06-23  Cyrille Chepelov  <cyrille@chepelov.org>
9716         * objects/FS/*.c:
9717         * objects/GRAFCET/*.c:
9718         * objects/SADT/*.c:
9719         * objects/UML/association.c: (one instance forgotten)
9720         * objects/UML/large_package.c: 
9721         * objects/standard/textobj.c:
9722         * lib/attributes.c:
9723         * lib/text.c:
9724         using dia_font_new_from_style()
9726 2002-06-23  Hans Breuer  <hans@breuer.org>
9728         * lib/font.c : giving some love to
9729         dia_font_new_from_legacy_name() that is making
9730         import of old files as painless as possible and
9731         provide an almost exact match where possible.
9732         It does not yet fully work because it interfers
9733         with the Style to DiaStyle conversion which comes
9734         next ...
9736         [Changing these files is only allowed with Dia-0.90]
9737         * broken-files/fonts-0.90.dia : including the
9738         common hard-coded fonts from Dia-0.90. It also
9739         has drawn bounding-boxes for win32 as they were calculated
9740         from the former version (they were all too big).
9741         * broken-files/fonts-0.90-full.dia : all hardcoded
9742         fonts including the asian versions. On my machine
9743         this gives _a lot_ complaining about missing fonts
9744         and a finally a broken file display. Anyone having
9745         all these fonts ?
9746         
9747 2002-06-23  Cyrille Chepelov  <cyrille@chepelov.org>
9749         * objects/chronogram/*.c: 
9750         * objects/custom/custom_object.c:
9751         * objects/ER/*.c:
9752         using dia_font_new_from_style()
9754 2002-06-23  Lars Clausen  <lrclause@cs.uiuc.edu>
9756         * lib/widgets.c (dia_font_selector_set_styles): Improvements to
9757         font selector (stability, insensitivity).
9759         * lib/font.c (dia_font_scaled_build_layout): Removed unworkable
9760         stretching scheme for tweaking, and made scaling scheme faster
9761         (but less precise).
9762         (dia_font_dia_style_to_pango): Oops, % != /.
9764 2002-06-23  Cyrille Chepelov  <cyrille@chepelov.org>
9766         
9767         * patch from Matthieu Sozeau  <mattam@netcourrier.com>:
9769         * plug-ins/xslt : Added an XSLT plugin to export dia files using
9770         XML Stylesheets. The plug-in requires DIA_PLUGIN_PATH to be set.
9771         It includes a small config file to tell it what stylesheets to use.
9773         (end of patch)
9774         
9775         * plug-ins/xslt/xsltdialog.c: modified the dialog to be more 
9776         GTK2.0/HIG compliant (the labels could be slightly more verbose,
9777         perhaps). Added back a couple forgotten _(). Removed //-style
9778         comments.
9779         
9780 2002-06-23  Hans Breuer  <hans@breuer.org>
9782         * lib/plug-ins.c
9783         (dia_plugin_get_name) : don't crash plugin_manager
9784         on name being NULL 
9785         (dia_plugin_load) : reuse the description field to
9786         store the error string if loading fails.
9788         * lib/font.[hc] : starting to beautify the new
9789         font api: proper namespacing, adding convenience
9790         functions like dia_font_new_from_style(), ...
9792         * objects/uml/*.c : use the new convenience functions.
9794         [Next thing I plan to do is changing the other font
9795          functions to take DiaStyle and make Style and 
9796          BASIC_*_FONT vanish. As well as giving some love to
9797          dia_font_new_from_legacy_name().
9798          If anyone want's to help on converting the other
9799          objects to the new api during that, I would highly 
9800          appreciate it.]
9802 2002-06-23  Hans Breuer  <hans@breuer.org>
9804         * lib/font.c : made it compile and small indent fixes.
9805         Is there a code-has-no-effect-so-needs-not-be-valid
9806         with GCC?       
9808         * lib/widgets.c : use g_strcasecmp
9810 2002-06-22  Lars Clausen  <lrclause@cs.uiuc.edu>
9812         * lib/font.c: 
9813         * lib/font.h: 
9814         * lib/widgets.c: Font names sorted, style selector widget
9815         reappeared.  Doesn't select the old style yet.
9817 2002-06-22  Cyrille Chepelov  <cyrille@chepelov.org>
9819         * lib/font.c: one who expects a text's font to be changed shall 
9820         actually request the attributes to apply to the whole range of the
9821         said text... D'oh! 
9823         * lib/font.c: extents computation was wrong.
9825         * lib/font.c: dia_font_get_legacy_name(); g_strconcat works better
9826         if a last NULL parameter is added...
9828         * lib/font.c: extents computation was completely wrong. This looks
9829         much better this time.
9831         * objects/UML/class.c: fixed the various strings positions.
9833         * lib/font.h, and **/*.[ch] (all callers of dia_font_new): used
9834         macros to get the hardcoded base fonts.
9836         * objects/ER/relationship.c: wasn't converted to DiaFont*
9837         
9838 2002-06-22  Hans Breuer  <hans@breuer.org>
9840         * lib/widget.c : dont use backend specific functions
9841         to get on the font_families. Including it would mean
9842         including <windows.h> which breaks due to namespace
9843         pollutions ...
9845         * lib/libdia.def : updated externals
9847         * app/makefile.msc : temporary disabled: -DHAVE_LIBART
9849         * lib/font.c : added empty dia_font_init_instance function,
9850         reformatting of dia_fon_unref to allow to set breakpoint,
9851         dia_fon_build_layout() : dont crash on string==NULL
9853         * lib/text.c (text_set_attributes) : don't unref the wrong font
9855         * lib/widgets.c (dia_fon_selector_set_font) : our hashtable
9856         stores lowercased font names, but dia_font_get_family()
9857         returns mixed case      
9859 2002-06-22  Lars Clausen  <lrclause@cs.uiuc.edu>
9861         * lib/widgets.c: 
9862         * app/render_gdk.c: Patch from Hans Breuer.
9864         * app/Makefile.am (dia_core_files): diaconv commented out for now.
9865         
9866 2002-06-22  Cyrille Chepelov  <cyrille@chepelov.org>
9868         * lib/all files touched yesterday: took into account some of Hans
9869         Breuer's remarks in
9870         http://mail.gnome.org/archives/dia-list/2002-June/msg00257.html
9872         * objects/chronogram/*: 
9873         * objects/custom/*:
9874         * objects/ER/*:
9875         * objects/flowchart/*:
9876         * objects/FS/*:
9877         * objects/GRAFCET/*:
9878         * objects/SADT/*:
9879         * objects/standard/textobj.?:
9880         * objects/UML/*:
9881         converted to the new DiaFonts.
9883         * plug-ins/cgm/*:
9884         * plug-ins/pstricks/*:
9885         * plug-ins/wpg/*:
9886         * plug-ins/dxf/*:
9887         * plug-ins/xfig/*:
9888         Made minimalistic conversions so that they'd at least compile.
9890         * app/render_gdk.c:
9891         * app/render_pixmap.c:
9892         Converted to the new DiaFonts.
9894         * app/app_procs.c
9895         * app/diaconv.c:
9896         * app/render_eps.c:
9897         made the minimal changes so that it would at least build.       
9899         *** At this point, the thing builds on my machine, but segfaults
9900         right away. ***
9901         
9902 2002-06-21  Cyrille Chepelov  <cyrille@chepelov.org>
9904         * configure.in: removed the backend-specific pango pkg_modules
9905         (trivial to add back if needed, when actually needed)
9907         * app/Makefile.am:
9908         * app/*gnomeprint.[ch]: (removed): removed the GNOME-print
9909         renderer. The APIs will have completely changed when we get around
9910         to redo a renderer for it, anyways.
9912         * font.[ch]: rewrote everything from scratch, with a Pango
9913         implementation. Normally, only backend-neutral things should go in
9914         there.
9916         **WARNING**: new rules for managing DiaFont* pointers: these are
9917         reference-counted GObjects. One >must< diafont_ref() and
9918         diafont_unref() as appropriate. I wish I could overload operator=()...
9920         lib/plug-ins.h: bumped up the plug-in API.
9921         
9922         lib/attributes.c: 
9923         lib/dia_xml.c: 
9924         lib/dummy_dep.h
9925         lib/object_defaults:
9926         lib/prop_attr.c: Adapted to the new DiaFont API. This'll change
9927         again tomorrow with GObject.
9928         
9929         lib/widgets.c: Adapted to the new DiaFont API and to Pango.
9931         **** The rest of the tree should be updated as well ****
9932         
9933 2002-06-21  Lars Clausen  <lrclause@cs.uiuc.edu>
9935         * app/render_gdk.h: 
9936         * app/render_gdk.c: 
9937         * app/render_pixmap.c: 
9938         * app/render_pixmap.h: 
9939         * app/render_libart.h: 
9940         * app/render_libart.c: 
9941         * lib/font.h: 
9942         * lib/font.c: Removed freetype stuff (still around in
9943         lib/widgets.c 'cause we might want the font selector widget).
9945 2002-06-20  Cyrille Chepelov  <cyrille@chepelov.org>
9947         * shapes/network/laptop.(xml|shape):
9948         * sheets/network.sheet.in: added Laptop (notebook) PC shape,
9949         contributed by Alan Horkan <horkana@tcd.ie>. (Closes: #82643)
9951 2002-06-17  Hans Breuer  <hans@breuer.org>
9953         * lib/object_defaults.c : #include <libxml/tree.h> not
9954         <tree.h> pointed out by Xing Wang
9956 2002-06-17  Lars Clausen  <lrclause@cs.uiuc.edu>
9958         * lib/color.h (GDK_COLOR_TO_DIA, DIA_COLOR_TO_GDK): 
9959         * lib/widgets.c: 
9960         * app/color_area.c: Update to
9961         gtk_color_selection_*_current_color() fixed bad crash issues, plus
9962         updated color conversions.
9964         * sheets/ER/weakentity.xpm: Accepted patch from
9965         quixon@gnuchina.org to make icon match actual appearance.
9967         * app/recent_files.c: Fixed GNOME recent file problem, thanks to
9968         quixon@gnuchina.org.
9970 2002-06-16  Hans Breuer  <hans@breuer.org>
9972         * lib/plug-in.[hc] : make PlugInInfo opaque again in the 
9973         good tradition of information hiding. Add new function
9974         dia_plugin_get_symbol()
9975         * app/sheets.c app/sheets_dialog_callbacks.c : use it
9977         * app/sheets.c : stop complaining about object_get_type() 
9978         returning NULL. This is a consequence of e.g. disabling 
9979         plug-ins at runtime _and_ it was and is gracefully handled. 
9980         Spitting out g_warning for it isn't appropriate. 
9982         * lib/object.[ch] : removed dead code
9984         * app/plugin-mangager.c : almost complete rewrite for gtk2
9985         using GtkListStore/GtkTreeView
9987         * lib/libdia.def : updated externals
9989         * todo.gtk2 : updated, that is removed already done steps
9991 2002-06-15  Hans Breuer  <hans@breuer.org>
9993         * objects/uml/class_dialog.c : clean some left-over
9994         utf8-mess, return 0 from "focus_out_event" handlers
9995         to avoid asserting in gtk (#78305). Reconstruct 
9996         stereotype/NULL behaviour to avoid rendering empty
9997         stereotypes on classes and member functions
9999         [#56109 - Provide object defaults for StdProp objects,
10000          some remaining issues are discussed in bugzilla]
10002         * lib/object_defaults.c : (new file) manage default properties 
10003         of dia objects. The serialization is done with standard
10004         object methods in a diagram compatible format.
10006         * lib/object.c : add object_registry_foreach() which allows
10007         to iterate over all registered object types
10009         * lib/object.h : added prototypes object_default*() and
10010         object_registry_foreach()
10012         * lib/makefile.am lib/makefile.msc : add new file to build
10014         * lib/libdia.def : export new functions
10016         * app/defaults.c : provide StdProp based defaults if the
10017         ObjectType doesn't implement it's own default functions
10019         * app/create_object.c : through dia_object_default_create()
10020         * app/disp_callbacks.c : same here
10022 2002-06-12  Lars Clausen  <lrclause@cs.uiuc.edu>
10024         * objects/FS/flow-ortho.c (orthflow_get_object_menu): Menu
10025         sensitivity for deleting segments.
10027 2002-06-12  Cyrille Chépélov  <cyrille@chepelov.org>
10029         * app/color_area.c: (color_area_events):
10030         * app/diagram.c: (diagram_destroy):
10031         * app/interface.c: (zoom_activate_callback), (fill_sheet_wbox),
10032         (fill_sheet_menu):
10033         * app/load_save.c: (diagram_data_load):
10034         * app/menus.c: (menus_get_item_from_path):
10035         * app/preferences.c: (prefs_load):
10036         * app/render_gdk.c: (get_text_width):
10037         * lib/arrows.h:
10038         * lib/color.c: (color_convert):
10039         * lib/dia_dirs.c: (dia_config_filename):
10040         * lib/dia_xml.c: (xmlDiaParseFile), (data_type):
10041         * lib/intl.c: (intl_get_language_list):
10042         * lib/message.c: (message):
10043         * lib/message.h:
10044         * lib/paper.c: (get_default_paper):
10045         * lib/plug-ins.c: (this_is_a_plugin), (dia_register_plugins):
10046         * lib/widgets.c: (dia_file_selector_get_file):
10047         * lib/widgets.h:
10048         * objects/standard/image.c: (get_directory):
10050         warningectomy.
10051         
10052 2002-06-12  Lars Clausen  <lrclause@cs.uiuc.edu>
10054         * ChangeLog: Fixed bad UTF-8 mess.  Apologies.
10056 2002-06-11  Lars Clausen  <lrclause@cs.uiuc.edu>
10058         * app/interface.c: sscanf now returns EOF on empty string, so
10059         handle no match for zoom factor better => correct zoom at start.
10061         * app/sheets.c (create_object_pixmap): Tried to display empty error.
10062         (sheets_optionmenu_create): Died when not finding specified
10063         sheet.  Don't think it should.
10065         * objects/UML/association.c: Added patch from osamyn@ulb.ac.be
10066         (bug #84367) to place the text better.
10068 2002-06-11  Cyrille Chepelov  <cyrille@chepelov.org>
10070         * configure.in: Added forgotten libgnomeui-2.0 when --enable-gnome
10071                         
10072         * app/commands.c: Removed unnecessary gnome include. Removed
10073         GNOME-Print support.
10075         * app/menus.h: Removed now unnecessary gnome include.
10076         
10077         * app/sheets_dialog.c: Used Gtk 2.0 stock buttons instead of
10078         GNOME-specific stock buttons
10079         
10080 2002-06-09  Hans Breuer  <hans@breuer.org>
10082         * app/app_procs.c : convert 'Modified diagrams exits'
10083         dialog to use GtkMessageDialog. That gives us:
10084         - icons without Gnome dependency
10085         - much less code, also cross platform
10086         - improved useability ?
10088         * app/color_area.c : the Color Selection Widget looked
10089         quite wrong (alpha problems). Fix it by merging in required
10090         changes stolen from The Gimp cvs
10091         * app/color_area.h : to get the right appearance the maskes
10092         needed to be taken into account
10093         * app/interface.c : adapt to color_area_create changes.
10094         Also remove some dead code and finally remove cvs autexpansion, 
10095         I was bothered enough by irrelevant differences :-)
10097         * app/defaults.c app/properties.c app/dia-props.c : use improved GtkDialog
10098         api, i.e stocks and response to make the GnomeDialog usage
10099         obsolete. Also fixed the issue with closing the 'parent'
10100         before closing the dialog
10102         * app/display.[ch] : removed some dead code and conversion
10103         to new GtkDialog api. Also trying to conform to new HIG
10104         standard http://developer.gnome.org/projects/gup/hig/
10106 2002-06-09  Hans Breuer  <hans@breuer.org>
10108         * lib/makefile.msc : define GTK_DISABLE_DEPRECATED,
10109         build ps-utf8.c
10111         * lib/dia_image.c : gtk_widget_set_default_visual()
10112         remove. It does nothing with Gtk2.
10114         * lib/libdia.def : added ps_unicoder exports
10116         * lib/message.c : remove #GNOME use GtkMessageDialog.
10117         Yeah, Dia gets dialogs wit icons cross-platform.
10119         * lib/prop_geomtypes.c : gtk_spin_button_get_value_as_float()
10120         to gtk_spin_button_get_value()
10122         * lib/prop_inttypes.c : gtk_label_set() -> gtk_label_set_text()
10124         add #undef GTK_DISABLE_DEPRECATED to still use ...
10125         * lib/prop_text.c :  ... GtkText
10126         * lib/prop_widgets.c : ... GtkList
10127         * lib/prop_dialogs.c : ... gtk_signal_connect and more
10128         * lib/widgets.c : ... (too much to list here)
10130         * lib/ps-utf8.c : #include <string.h>
10132 2002-06-08  Cyrille Chepelov  <cyrille@chepelov.org>
10134         * configure.in:
10135         * Makefile.am:  Adapted for gtk2.
10136         Removed dependencies on libunicode, on iconv(), on langinfo().
10138         * acconfig.h: removed (now obsolete)
10140         * lib/charconv.[ch]: removed (superceded by glib)
10141         * lib/ps-utf8.[ch]: removed dependency on charconv.[ch]
10143         * **/*.[ch]: removed (utfchar *), (unichar) and other charconv or
10144         libunicode types for their glib counterparts. Fixed the include
10145         paths for libxml2. Removed all traces of libxml1 or non-UTF8
10146         support (there were remains in objects/uml).
10148         
10149 2002-06-08  Hans Breuer  <hans@breuer.org>
10151         */*.c */*/*.c : remove all the #ifdef *_UTF8_* hell,
10152         only keep the utf-8 clean code cause Dia+Gtk2 now talk it.
10153         Also use g_strdup()'s handling of NULL by returning NULL
10154         again at all places I found (remove unnecessary if's)
10156         * todo.gtk2 : new file to keep notes about gtk2 porting,
10157         further issues and thoughts and some status information.
10158         Also sent to dia-list ('Dia goes Gtk2 ...').
10159         
10160         [make it compile with GTK+ 2.0]
10162         * config.h.win32 : #undef GTK_TALKS_UTF8_WE_DONT,
10163         removed definition of S_ISDIR, S_ISREG and getlogin
10165         * */makefile.msc : Use GTK2 and libxml2
10166         BEWARE: makefile.am, configure.in not yet ported !
10168         * app/app_procs.c app/diagram.c : remove 
10169         gtk_item_factory_dump_rc code, (it wasn't read in again anyway) 
10170         but set use gtk_menu_set_accel_path() on menu creation
10172         * app/color_area.c lib/widgets.c : 
10173         make use of gtk_color_selection_set_has_palette ()
10175         * app/commands.c : gdk_pixbuf_new_from_file wants an 
10176         extra argument. Convert from DIR to GDir usage.
10178         * app/diagram_tree.c(button_press_callback) : need to return 
10179         FALSE in the signal handler to let gtk process it further.
10180         (get_object_name) : don't leak 'prop'
10181         
10182         * app/diapagelayout.c : adapt to GtkTypeInfo changes and handle 
10183         dia_page_layout_destroy() getting called more than once
10185         * app/diaunitspinner.c : GtkEditable -> GtkEntry, 
10186         GtkTypeInfo changes
10188         * app/disp_callbacks.c : gtk_menu_append() -> gtk_menu_shell_append()
10190         * app/display.h : wrap input contexts declarations into #ifdef USE_XIM.
10191         IIRC this code will not compile unchanged when USE_XIM is defined ...
10193         * app/gtk[hv]wrapbox.[hc] : use already ported version from The GIMP 1.3.x
10195         * app/interface.c : there is no widget->klass anymore in Gtk, 
10196         use GTK_WIDGET_GET_CLASS instead. gdk_pixbuf_new_from_file() extra
10197         parameter. Some tweaking of GtkWrapBox usage to get four tools in
10198         a row again.
10199         switch off GTK's double buffering on Dia's canvas. Otherwise we would 
10200         get triple buffering and flicker.
10201         Replace call to GTK private function _gtk_accel_group_attach()
10202         with public gtk_window_add_accel_group()
10204         * app/layer_dialog.c : adapt to GtkTypeInfo changes
10206         * app/load_save.c lib/plug-ins.c lib/sheet.c 
10207           objects/custom/custom.c : 
10208         simplified by using g_file_test()
10210         * app/menus.c : convert from gtk_item_factory_<dump|parse>_rc 
10211         to gtk_accel_map_<save|load>. Also added common stock-icons
10212         to the menu.
10213         
10214         * app/preferences.c : use gtk_button_set_label() instead
10215         of button->child which is gone. Also removed GLIB_CHECK_VERSION.
10217         * app/preferences.c lib/dia_xml.c lib/plug-ins.c :
10218         #ifdef G_OS_WIN32 #include <io.h>, this was formerly done
10219         in config.h.win32
10221         * app/recent_files.c : removed GLIB_CHECK_VERSION
10223         * app/render_eps.c 
10224           plug-ins/metapost/render_metapost.c
10225           plug-ins/pstricks/render_pstricks.c
10226           plug-ins/svg/render_svg.c :
10227         replace getlogin() with g_get_user_name() which always
10228         returns non NULL
10230         * app/render_gdk.c : gdk_region_union_with_rect() modifies
10231         inplace now and returns nothing, also less #hell
10233         * app/render_libart.c : some initial #hell cleaning, SuckFont
10234         still needs to vanish
10236         * app/splash.c : gdk_pixbuf_new_from_file() second arg and
10237         GTK_WINDOW_DIALOG -> GTK_WINDOW_TOPLEVEL
10239         * app/render_pixbuf.c app/sheets.c : plain #hell cleaning
10240         * app/sheets_dialog_callbacks.c : some #hell and adaptions
10241         needed to GtkWrapBox api changes
10244         * lib/charconv.[hc] : removed from build
10245         [changed appropriate]
10246         * lib/prop_inttypes.c lib/prop_text.c : 
10247         all utf-8 cleaning 
10248         * lib/text.c : ported from HEAD but keep original indent
10249         intact. Original was done by Akira TAGOH.
10251         * lib/color.c : GdkColorContext is gone, use GdkColormap instead.
10253         * lib/dia_image.c : gdk_pixbuf_new_from_file() second arg
10255         * lib/dia_xml.c : remove #ifdef GLIB_CHECK_VERSION, it's the
10256         same on all platforms now!
10258         * lib/font.c : still using SuckFont which was an IMPERATIVE FIXME!
10260         * lib/message.c : remove "charconv.h"
10262         * lib/prop_text.c : #define GTK_ENABLE_BROKEN to use GtkText
10264         * lib/plug-in.c :
10265         * lib/sheet.c : convert from DIR to GDir usage
10267         * lib/widgets.c : gtk_menu_(shell_)append and GtkTypeInfo
10269         * lib/widgets.h : include gtk<label|colorseldialog>.h
10272         * objects/fs/flow.c :
10273         * objects/fs/flow-ortho.c : GTK_ENABLE_BROKEN to use GtkText
10275         * objects/custom/custom.c : convert from DIR to GDir usage
10278         * plug-ins/python/makefile.msc : updated for GTK2/Python2.2
10281 2002-05-03  Hans Breuer  <hans@breuer.org>
10283         * lib/dia_xml.c : make the well formed utf8 check
10284         actually work for &#251; (non 7-bit ascii encoding)
10285         and fixed the file re-writing if the check fails.
10286         Thanks to Vitaly Lipatov for noticing the misbehaviour.
10288         * lib/font.c : synchronize #ifdef G_OS_WIN32 with
10289         comment on last ressort font. Thanks to Maxim Sobolev.
10291 2002-06-03  Cyrille Chepelov  <cyrille@chepelov.org>
10293         * sheets/network.sheet.in: corrected a typo in plotter invocation.
10295 2002-06-03  Steffen Macke  <sdteffen@web.de>
10297         * shapes/network/digitizing_board.png:
10298         * shapes/network/digitizing_board.shape:
10299         * shapes/network/plotter.png:
10300         * shapes/network/plotter.shape:
10301         * shapes/network/Makefile.am
10302         * sheets/network.sheet.in: added new plotter and digitizing
10303         board shapes
10304         
10305 2002-06-02  Cyrille Chepelov  <cyrille@chepelov.org>
10307         * lib/font.c: made a symptomatic fix to a segfault reported by 
10308         Jan Keirse <jan.keirse@pandora.be> on a SuSE 7.3 system. This
10309         won't prevent dia from terminating, but should give more
10310         user-friendly information about why did it terminate.
10312         Two patches from <robert.young@dsto.defence.gov.au>:
10313         
10314         * app/display.c: fix the size of the canvas area which gets
10315         redrawn. There was an off-by one error (Closes #83659)
10317         * app/display.c: make sure we redraw all screen only when we
10318         really have to (some update_areas were mistakenly ignored) (Closes
10319         #83496). 
10321         * NEWS: added a new entry for the future. Put there a reminder to
10322         update the dependencies.
10324         * configure.in: put in notes about what will change shortly.
10325         upped the version to 0.90+cvs (did also in config.h.win32)
10326         upped the minimum version for intltools (now 0.21)
10327         
10328 2002-06-01  Cyrille Chepelov  <cyrille@chepelov.org>
10330         * dia.spec:
10331         * configure.in:
10332         * NEWS:
10333         * config.h.win32:
10334         bumped up version number to 0.90. Yay!
10336 2002-05-30  Cyrille Chepelov  <cyrille@chepelov.org>
10338         * doc/pl/Makefile.am:
10339         * doc/en/Makefile.am: fixed a "make install" problem when db2html
10340         is not present (Reported by Andrew Ferrier
10341         <andrew.junk@new-destiny.co.uk>). Fixed another "make distclean"
10342         problem which prevented me from ever seeing the problem in doc/en...
10343         
10344         * Makefile.am: added autogen.sh to the EXTRA_DIST clause.
10345         
10346         * lib/font.c: patch from <robert.young@dsto.defence.gov.au>; add a
10347         way to read the font path from the XFS configuration files in
10348         order to enable FreeType (fixes #83098).
10350         * POTFILES.(in,skip): now skips objects/sybase/sybase.c, which is not
10351         shipped nowadays.
10352                 
10353         * dia.spec:
10354         * configure.in:
10355         * NEWS:
10356         * config.h.win32:
10357         bumped up version number to 0.90.RC3
10359 2002-05-29  Zbigniew Chyla  <cyba@gnome.pl>
10361         * configure.in, doc/Makefile.am, doc/pl/Makefile.am,
10362         doc/pl/authors.sgml, doc/pl/dia-manual.sgml, doc/pl/dia-pl.omf,
10363         doc/pl/intro.sgml, doc/pl/license.sgml, doc/pl/topic.dat
10364         doc/pl/usage-canvas.sgml, doc/pl/usage-customization.sgml,
10365         doc/pl/usage-layers.sgml, doc/pl/usage-loadsave.sgml
10366         doc/pl/usage-objects-selecting.sgml, doc/pl/usage-objects-special.sgml,
10367         doc/pl/usage-objects.sgml, doc/pl/usage-quickstart.sgml:
10368         Added Polish documentation.
10370 2002-05-27  Cyrille Cheeplov  <cyrille@chepelov.org>
10372         * objects/UML/state.c: there was a (gratuitous?) change of on-XML
10373         format for the UML State object. Now there's a hack to reload
10374         older files, and get them converted on the fly. 
10375         Justyna BiaÃ…?a <nell@poczta.gazeta.pl> reported this. Thanks!
10377         * lib/properties.h:
10378         * lib/propobject.c:
10379         * lib/proplist.c: Added a new property flag, PROP_FLAG_LOAD_ONLY,
10380         and adapter the proplist predicates. A LOAD_ONLY property is for
10381         when you have legacy to support but can't resist moving your
10382         fields around... (was needed to support the above state.c fix).
10384         If the in-core of your object changes and you need a LOAD_ONLY
10385         property for the old format, you must keep some spare room in your
10386         object's struct to accomodate for the potential old-style
10387         attributes. Then in foo_load(), after having called
10388         object_load_using_properties(), you must inspect the old-style
10389         fields and act accordingly. Don't ever change the on-disk formats...
10391         * objects/UML/object.c:
10392         * objects/UML/small_package.c: added a check against empty
10393         stereotypes still consuming space. Reported by Dolores Alia de
10394         Saravia <loli@unsa.edu.ar>. Thanks!     
10395         
10396 2002-05-26  Cyrille Chepelov  <cyrille@chepelov.org>
10398         * INSTALL: added platform notes from MÃ¥rten Svantesson, for when
10399         using libtool on an AFS partition.
10401         * po/update_potfiles_in.sh: now simply calls the recent intltools 
10402         features; they work better than hand-crafted half-ignorant
10403         scripts. Thanks to Kenneth Rohde Christiansen <kenneth@gnu.org>
10404         for the tip.
10406         * po/POTFILES.in: added back two files update_potfiles_in.sh
10407         didn't take into account. Now this file is not automatically
10408         generated anymore!      
10409         * po/POTFILES.skip: told `intltool-update -m` what files to ignore
10410         (the usual suspects, in fact).
10412         * configure.in: improved the isinf() / isfinite() detection on
10413         Solaris (MÃ¥rten Svantesson)
10414         
10415 2002-05-25  Cyrille Chepelov  <cyrille@chepelov.org>
10417         * configure.in: one expression was replacing $CFLAGS, removing
10418         whatever was previously in.
10419         Added more checks for isinf() and finite() on Solaris.
10421         * lib/geometry.h: added a macro defintion for isinf() if not
10422         HAVE_ISINF. (Hans, you may want to #define HAVE_ISINF if relevant
10423         on Win32)
10425         * app/commands.c: "cut" did not set the 'modified' bit (paste has
10426         been for a little while). Fixes #82994.
10428         * Makefile.am: added more stuff to distclean-local. This should make
10429         "make distcheck" pass! Thanks to the author of
10430         http://mail.gnome.org/archives/gnome-2-0-list/2001-August/msg00212.html
10431         ... I wonder who this Henstridge guy is ... ;-)
10432         Darn. Still doesn't pass. I give up for tonight.
10433         
10434         * po/update_potfiles_in.sh: updated to take care of sheet files,
10435         and to filter out the EML plug-in.
10436         * po/POTFILES.in: updated with all .c and all .sheet.in files 
10438         * po/dia.pot, po/*.po: again updated all .po files with all
10439         strings (with the updated POTFILES). Now with the up-to-date
10440         POTFILES, just all languages have some fuzzy or untranslated
10441         strings (not that the 100% team was that large beforehand...)
10443         * po-checktrans: removed the comment about .po files not holding
10444         all translatable stuff, since now they do.
10445         
10446 2002-05-24  Cyrille Chepelov  <cyrille@chepelov.org>
10448         * dia.spec:
10449         * configure.in:
10450         * NEWS:
10451         * config.h.win32:
10452         bumped up version number to 0.90.RC2
10454 2002-05-20  Hans Breuer  <hans@breuer.org>
10456         * app/load_save.c : starting to increase
10457         Dias tolerance on incomplete/broken files. The 
10458         corresponding bug is #56233. But the patch there does
10459         neither apply anymore nor does it really fix the problem
10460         but only delays it, e.g. even if it would be allowed
10461         to read a file without any layers, the later code can't
10462         handle it.
10463         * lib/dia_xml.c : attribute_<num|first>_data(), data_type()
10464         handle passing in NULL for the node gracefully.
10466         * shapes/network/printer.shape : added two more connection
10467         points - one at each side - to fix bug #60359
10469         * app/commands.c (edit_copy_callback) : 
10470         add ddisplay_do_update_menu_sensitivity() to make 
10471         sequence select-copy-paste work.
10473 2002-05-20  Hans Breuer  <hans@breuer.org>
10475         * app/create_object.c (create_object_button_press) :
10476         added a call to ddisplay_do_update_menu_sensitivity()
10477         to make Ctrl^D etc work after object creation. 
10478         Fixes #80983.
10480 2002-05-18  Lars Clausen  <lrclause@cs.uiuc.edu>
10482         * objects/ER/entity.c: 
10483         * objects/ER/attribute.c: 
10484         * objects/ER/relationship.c: Patch to allow text size change from
10485         Celso Tetsuo Nagase Suzuki.
10487 2002-05-18  Steffen Macke <sdteffen@web.de>
10489         * app/app_procs.c: #ifdef'd xmlerror.h (comes with 
10490         libxml2)
10491         * doc/en/graphics/greendots.png:
10492         * doc/en/home_network.png:
10493         * doc/en/line_props.png: 
10494         * dia-diagram.png:
10495         * dia_gnome_icon.png:
10496         * dia_gnome_menu_icon.png:
10497         * dia_logo.png:
10498         * shapes/network/telephone.png:
10499         * shapes/Logic/and.png:
10500         * shapes/Logic/buffer.png:
10501         * shapes/Logic/connector.png:
10502         * shapes/Logic/inverter.png:
10503         * shapes/Logic/nand.png:
10504         * shapes/Logic/nor.png:
10505         * shapes/Logic/not.png:
10506         * shapes/Logic/or.png:
10507         * shapes/logic/xor.png:
10508         * samples/ER-demo.dia:
10509         * samples/SADT.dia:
10510         * samples/UML-demo.dia:
10511         * samples/chronograms.dia:
10512         * samples/grafcet.dia: re-added as binary files
10514 2002-05-17  Hans Breuer  <hans@breuer.org>
10516         * lib/libdia.def : reflect removing of render_store.[ch]
10518         * */makefile.mingw : remove VERSION definition it's
10519         done in config.h.win32. Dia still doesn't work if
10520         build with mingw ...
10522         * RELEASE-PROCESS : removed */makefile.mingw
10524         * app/sheets_dialog_callbacks.c : if we use those
10525         ugly charconv_gtk_* functions lib/charconv.h needs to
10526         be #included ...
10527         * lib/charconv.h : ... and needs to contain the 
10528         necesseray prototypes _and_ #defines
10530         * plug-ins/shape/shape-export.c : with libxml2 xmlNewGlobalNs
10531         is deprecated and does nothing but spit a warning. This broke
10532         the shape format writing. Fixed.
10533         Also with libxml2 pretty formatted xml isn't the default
10534         anymore, but needs to be enabled explicit: It is done now 
10535         for shape files, which almost always needed to be edited by
10536         hand ... 
10538         * app/app_procs.c : #if G_OS_WIN32 redirect xmlErrorReporting
10539         from stderr - which is invalid on Dia/win32 - to g_print -
10540         which opens up a console window if necessary. This way
10541         a xml-deprecation-error shouldn't stay unnoticed next time
10543 2002-05-17  Steffen Macke <sdteffen@web.de>
10545         * shapes/Misc/folder.png:
10546         * shapes/Misc/file.png: re-added as binary files
10547         
10548 2002-05-16  Lars Clausen  <lrclause@cs.uiuc.edu>
10550         * lib/font.c: Fixed segfault for fonts without family_name.
10552 2002-05-17  Cyrille Chepelov  <cyrille@chepelov.org>
10554         * po/POTFILES.in: added app/sheets_dialog_callbacks.c
10556         * app/sheets_dialog_callbacks.c: While reviewing UTF-8isation upon
10557         Lars' request, minor cosmetic stuff (mostly _() of human-readable
10558         XML comments in .sheet files; one translator booby-trap disarmed).
10560         * lib/charconv.c: moved #hell inside the body of the new
10561         charconv_*gtk* functions (otherwise the Win32 or gtk2.0 linker
10562         will yell)
10563         
10564 2002-05-16  Lars Clausen  <lrclause@cs.uiuc.edu>
10566         * plug-ins/wpg/Makefile.am (INCLUDES): 
10567         * plug-ins/shape/Makefile.am (INCLUDES): 
10568         * plug-ins/svg/Makefile.am (INCLUDES): 
10569         * plug-ins/pstricks/Makefile.am (INCLUDES): 
10570         * plug-ins/metapost/Makefile.am (INCLUDES): Added UNICODE_CFLAGS
10571         and DEBUG_CFLAGS in some missing places.
10573         * MAINTAINERS: New file containing list of known package
10574         maintainers. 
10576         * lib/charconv.h: 
10577         * lib/charconv.c: Charconv versions of some common gtk calls.
10579         * app/sheets_dialog_callbacks.c
10580         (on_sheets_new_dialog_button_ok_clicked),
10581         (on_sheets_dialog_button_edit_clicked),
10582         (on_sheets_dialog_button_remove_clicked),
10583         (on_sheets_edit_dialog_button_ok_clicked):
10584         * app/sheets.c (sheets_optionmenu_create),
10585         (sheets_optionmenu_create): Added utf8 translations.
10587         * app/sheets_dialog.c: 
10588         * app/sheets.c: 
10589         * app/sheets_dialog_callbacks.c: Added some missing _()'s.
10591 2002-05-16  Cyrille Chepelov  <cyrille@chepelov.org>
10593         * po/POTFILES.in: added app/sheets_dialog.c
10595 2002-05-15  Cyrille Chépélov  <cyrille@chepelov.org>
10597         * lib/charconv.c: (charconv_local8_to_utf8),
10598         (charconv_utf8_to_local8): tweaked the warnings to get more 
10599         informations
10600         * lib/font.c: (font_get_suckfont): handled a potential case of
10601         uninitialised data being used (just paranoid)
10602         
10603         * objects/GRAFCET/boolequation.c: (opstring),
10604         (opblock_get_boundingbox), (opblock_draw),
10605         (boolequation_calc_boundingbox): some extra hoops needed now dia
10606         talks UTF8 (but gtk doesn't). More #hell. Beeek. Basically, the
10607         symbols can't yet be used with their proper Unicode cells, since
10608         gtk will demand them in the Symbol font, expressed in the local
10609         8-bit encoding.
10610         
10611         * samples/grafcet.dia: re-saved, now with a fixed bounding box (by
10612         the fix just above).
10614 2002-05-14  Lars Clausen  <lrclause@cs.uiuc.edu>
10616         * app/diagram_tree.c (get_object_name): Check that name property
10617         doesn't have null string.
10619 2002-05-13  Lars Clausen  <lrclause@cs.uiuc.edu>
10621         * autogen.sh (DIE): Added conditional --force to gettextize.
10623         * app/pagesetup.c (pagesetup_ok): Commented out missing Gnome
10624         function call.
10626 2002-05-13  Cyrille Chepelov  <cyrille@chepelov.org>
10628         * RELEASE-PROCESS: added James' notes on how to properly make the
10629         tarball.
10631         * configure.in: removed macro nesting related to libpng.h, which
10632         was causing some problems on some systems (like mine, which made
10633         the snapshots bad).
10635         Made --enable-unicode, previously an option, the mandatory case.
10637         * app/Makefile.am: updated EXTRA_DIST
10638         
10639         * NEWS:
10640         * app/makefile.mingw:
10641         * dia.spec:
10642         * doc/en/dia-manual.sgml:
10643         * plug-ins/makefile.mingw:
10644         * configure.in: bumped up the version number to 0.90.RC1
10646         * lib/render_objects.[ch]:
10647         * po/POTFILES.in: removed render_objects from the build.
10649         * plug-ins/Makefile.am:
10650         * plug-ins/wmf/Makefile.am (new): EXTRA_DIST'ed the WMF plug-in,
10651         so we keep its source in the tarball.
10653         * objects/network/*.c, Makefile.am:
10654         * objects/sybase/*.c, Makefile.am:
10655         * po/POTFILES.in: cleaned up the non-existent files from the po
10656         build process.
10658         * plug-ins/Makefile.am: re-enabled metapost plug-in.
10659         
10660 2002-05-13  Steffen Macke <sdteffen@web.de>
10662         * AUTHORS:
10663         * app/command.c: added M. C. Nelson to the Authors
10664         * sheets/Circuit/Makefile.am: added firewall shape to build
10665         * sheets/network/Makefile.am: added telephone and microphone
10666           shapes to build
10668 2002-05-13  Lars Clausen  <lrclause@cs.uiuc.edu>
10670         * RELEASE-PROCESS: Added list of files that contain the release
10671         number or should otherwise be changed at each release.
10673 2002-05-12  Lars Clausen  <lrclause@cs.uiuc.edu>
10675         * objects/UML/uml.c (uml_operation_read): Forgot to commit this
10676         (reported fixed) bug: POLYMORPHIC -> LEAF for default.
10678 2002-05-12  Hans Breuer  <hans@breuer.org>
10680         * config.h.win32 : changed VERSION to 0.90.RC1
10682         * app/makefile.msc lib/makefile.msc : use renamed
10683         gdk-pixbuf version (same content but renamed because
10684         all the other gtk+ dlls are renamed) to avoid trouble
10685         mixing gtk versions (of which one would not 
10686         be initialized ...
10688         * app/app_procs.c : removed recently unneeded
10689         inclusion of "sheets.h"
10691         * app/render_gdk.c : removed my own debug spew
10692         which should never made it to cvs
10694         * lib/render_object.[hc] : added
10695         #error "File not used anymore."
10697         * lib/libdia.def : updated externals
10699         * app/interface.c : dropped filenames need to be
10700         converted from uri with Gtk+2.0
10702 2002-05-12  Cyrille Chepelov  <cyrille@chepelov.org>
10704         * RELEASE-PROCESS (new): a draft document about how to release. To
10705         be discussed. (already with some input from Hans Breuer)
10707 2002-05-12  Steffen Macke <sdteffen@web.de>
10709         * sheets/Makefile.am: re-added Misc sheet to make process
10710         
10711 2002-05-12  Lars Clausen  <lrclause@cs.uiuc.edu>
10713         * objects/FS/function.c: Added comments to humungous list of menu
10714         items, to aid translators.
10716 2002-05-11  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
10718         * app/menus.c (display_menu_items): Added a few shortcuts for zooms.
10720         * app/menus.c (display_menu_items): Added a few shortcuts for zooms.
10722         * app/interface.c (create_toolbox): Disallow shrinking beyond
10723         requested size.  Fixes bug #59439, and confirms to GTK guidelines
10724         (see gtk_window_set_policy).
10725         (create_sheets): Removed now unnecessary set_usize call.
10727 2002-05-10  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
10729         * lib/beziershape.c (remove_handles): Fixing removal of last
10730         segment.  Undo of removal still hokey.
10732 2002-05-10  Lars Clausen  <lrclause@cs.uiuc.edu>
10734         * lib/bezier_conn.c (remove_handles): Proper offset for fixing
10735         handles. 
10736         * lib/beziershape.c (beziershape_init): Removed early call to
10737         beziershape_update_data where points aren't set yet.
10738         (beziershape_add_segment): Use segment 0 instead of overflowing
10739         points array with segment+1.
10740         (beziershape_remove_segment): Proper offset for fixing
10741         connectionpoints. 
10742         (remove_handles): Proper offset.
10744 2002-05-08  Lars Clausen  <lrclause@cs.uiuc.edu>
10746         * objects/GRAFCET/action.c (action_update_data): Init x value of
10747         click point for call to connpointlist_adjust_count.
10749         * app/modify_tool.c (create_modify_tool): Init tool->auto_scrolled
10751         * app/render_pixmap.c (new_pixmap_renderer): Moved first linestyle
10752         setting to where values are inited.
10754         * lib/polyshape.c (polyshape_init): Removed call to
10755         polyshape_update_data that tried to use uninitialized data.
10757 2002-05-06  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
10759         * app/sheets_dialog.c: Mass removal of //-style comments.  The
10760         Irix compiler doesn't like them:(  I do...
10762 2002-05-06  Lars Clausen  <lrclause@cs.uiuc.edu>
10764         * app/render_libart.c (draw_string): Bail out when no GDK font is
10765         found.
10766         (set_font): Give error when font not found.
10767         (set_fillstyle): Intlized error msg.
10769         * app/pagesetup.c (pagesetup_ok, pagesetup_apply): Sets diagram
10770         modified when applied (and ok only does apply if apply is set
10771         sensitive).  Fixes bug #75623.
10773 2002-05-06  Pablo Saratxaga  <pablo@mandrakesoft.com>
10775         * configure.in: Added Vietnamese (vi) to ALL_LINGUAS
10777 2002-05-05  Steffen Macke <sdteffen@web.de>
10779         * app/Makefile.am: added $(UNICODE_CFLAGS)
10780         
10781 2002-05-02  Lars Clausen  <lrclause@cs.uiuc.edu>
10783         * app/commands.c (help_manual_callback): Check return value of
10784         opendir.
10786         * plug-ins/xfig/Makefile.am (INCLUDES): Added DEBUG_FLAGS
10788         * plug-ins/xfig/xfig-import.c: Fixed misspelled Poly_L_ine, added
10789         checks for errors.
10791 2002-04-30  Lars Clausen  <lrclause@cs.uiuc.edu>
10793         * app/render_gdk.c (draw_string): Extra free killed.  Thanks valgrind!
10795         * objects/UML/uml.c (uml_operation_read): Fix of UML default
10796         inheritance. 
10798 2002-04-30  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
10800         * app/filedlg.c (file_save_as_callback, file_save_as_ok_callback):
10801         Added button to toggle diagram compression.
10803 2002-04-29  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
10805         * lib/font.c: Support for loading extra kerning files, plus got
10806         rid of rounding errors.  Bounding box mostly perfect for freetype
10807         fonts.
10808         (font_string_width): Fudge factor to get around nonlinearity of
10809         font scaling.
10811 2002-04-29  Lars Clausen  <lrclause@cs.uiuc.edu>
10813         * lib/font.c (font_string_width): YA font calculation scheme, with
10814         comments.
10816         * objects/UML/class.c (umlclass_calculate_data): Uses the same
10817         font for drawing and calculating now.
10819         * configure.in: Added utime.h check.
10821         * app/render_gdk.c (draw_string): Uses gdk_draw_text_wc when in
10822         GTK_DOESNT_TALK_UTF8_WE_DO.  Thus it matches the string width calc.
10824 2002-04-26  Hans Breuer  <hans@breuer.org>
10826         [ Instead of fixing about 70 occurances in 20 files
10827           where GTK_TALKS_UTF8_WE_DONT needed to be handled
10828           Dia on win32 from now on uses glib-2.0 and not 
10829           only talks utf-8 with gtk-1.3 but also internally.
10830           GTK_TALKS_UTF8_WE_DONT isn't supported/needed
10831           anymore. ]
10833         * config.h.win32 : #define UNICODE_WORK_IN_PROGRESS
10834         #undef GTK_TALKS_UTF8_WE_DONT
10836         * */makefile.msc : changes to use glib-2.0 (still
10837         using gtk+1.3(win32-production)
10839         * app/disp_callbacks.c : remove GTK_TALKS_UTF8_WE_DONT,
10840         adapt kevent->string handling, add <string.h>
10841         * app/render_gdk.c (get_text_width) : the length given
10842         is in chars, gdk_text_width() needs bytes
10844         * app/render_libart.c : 
10845         * app/render_pixmap.c : remove GTK_TALKS_UTF8_WE_DONT
10846         (could simplify the same way as done in render_gdk.c)
10848         * app/diagram_tree.c app/paginate_gdiprint.cpp
10849           app/sheets.c :
10850         * lib/prop_basic.c lib/prop_geomtypes.c 
10851           lib/propdialgs.c lib/propobject.c :
10852         added <string.h> which is now removed from charconv.h
10854         * lib/charconv.h : optional use infrastructure from
10855         glib-2.0 -> only five direct function mapping left
10857         * lib/charconv.c : avoid to build this with glib-2.0
10859         * lib/font.c : no string conversion needed anymore      
10860         when Dia and Gtk talk utf-8, also code adaptions
10861         for GLIB_CHECK_VERSION(2,0,0)
10863         * lib/libdia.def : removed charconv functions
10865         * lib/prop_inttypes.c : removed GTK_TALKS_UTF8_WE_DONT,
10866         replace charconv_unichar_to_utf8() with g_unichar_to_utf8()
10868         * lib/prop_text.c lib/prop_widgets.c lib/font.c : 
10869         removed GTK_TALKS_UTF8_WE_DONT
10871         * lib/text.c : finally(?) fixed cursor <place|move>ment 
10872         for Umlauts. Also fixed char insertion, still wondering
10873         how this could ever work. Does realloc on Linux 
10874         initialize the memory with zeros ?
10876         * objects/chronogram/chronoline_event.c
10877           objects/grafcet/boolequation.c :
10878         there is no uni_get_utf8 when building for glib-2.0.
10879         Replace with g_utf8_get_char() and g_utf8_next_char().
10881         * objects/uml/stereotype.c (bracketted_to_string) : 
10882         simplify while adding code for glib-2.0 build
10884 2002-04-27  Lars Clausen  <lrclause@cs.uiuc.edu>
10886         * app/diagram.h: Autosave field
10887         * app/diagram.c (diagram_set_modified): Sets autosave field.
10888         
10889         * objects/UML/usecase.c (usecase_update_data): 
10890         * objects/flowchart/ellipse.c (ellipse_update_data): 
10891         * objects/flowchart/parallelogram.c (pgram_update_data): 
10892         * objects/flowchart/diamond.c (diamond_update_data): 
10893         * objects/custom/custom_object.c (custom_update_data): 
10894         * objects/UML/state.c (state_update_data): 
10895         * objects/UML/small_package.c (smallpackage_update_data): 
10896         * objects/UML/object.c (objet_update_data): 
10897         * objects/UML/note.c (note_update_data): 
10898         * objects/UML/node.c (node_update_data): 
10899         * objects/UML/component.c (component_update_data): 
10900         * objects/UML/classicon.c (classicon_update_data): 
10901         * objects/UML/actor.c (actor_update_data): 
10902         * objects/SADT/box.c (sadtbox_update_data): 
10903         * objects/FS/function.c (function_update_data): 
10904         All now update text boundaries from update_data.
10905         
10906         * lib/widgets.c (dia_font_selector_set_styles): Made the style set
10907         correctly. 
10909 2002-04-26  Hans Breuer  <hans@breuer.org>
10911         * config.h.win32 : added VERSION definition here
10912         (and removed from makefile.msc's)
10914         * app/makefile.msc : added new files
10916         * app/app_procs.c (app_init): remove sheets_dialog_create()
10917         from start-up and ... 
10919         * app/sheet.c (sheets_dialog_show_callback) : ... lazy create
10920         sheet_dialog here when it is really needed.
10921         #include "../lib/message.h", make sheets_dialog_create() 
10922         return it's success or failing on (!custom_type_symbol). 
10923         Although editing shapes is nice IMHO it isn't crucial enough 
10924         to abort() Dia if       it isn't possible.
10926         * app/sheet.h : adapt create_sheet_dialog() prototype
10928         * app/sheets_dialog.c : add #ifdef HAVE_UNISTD_H
10930         * app/sheets_dialog_callbacks.c : #ifdef HAVE_UNISTD_H and
10931         #ifdef HAVE_UTIME_H. Otherwise #include <sys/utime.h> and
10932         name space corrections for utime() and utim_buf #ifdef
10933         G_OS_WIN32
10935         * lib/libdia.def : export new sheet functions
10937         * lib/makefile.msc : added new files
10939         * lib/render.c : don't put draw_bezier_with_arrows() in
10940         the DrawLineWithArrowsFunc slot
10942         * objects/custom/custom_object.c : #include <gmodule.h>
10943         and export 'custom_type' via G_MODULE_EXPORT
10945         * objects/uml/class_dialog.c : removed 'incompatible 
10946         types' warnings. Some refactoring while making it fit
10947         on screen with 800x600 again.
10949         * plug-ins/python/pydia-cpoint.h : add PyDiaConnectionPoint_Check
10951         * plug-ins/python/pydia-handle.h : extra parameter to
10952         PyDiaHandle_New to store the owner of the handle
10953         * plug-ins/python/pydia-handle.c : store handle owner
10954         on construction and use it in new method .connect()
10955         * plug-ins/python/pydia-object.c plug-ins/python/pydia-diagram.c : 
10956         adapt to changed prototype
10958 2002-04-24  Lars Clausen  <lrclause@cs.uiuc.edu>
10960         * lib/text.c (text_calc_boundingbox): Will now return early if box
10961         passed is NULL.
10963         * objects/flowchart/box.c (box_update_data): Now updates text
10964         width info from update_data.
10966 2002-04-23  Steffen Macke <sdteffen@web.de>
10968         * plug-ins/xfig/xfig-import.c: fixed text import
10969         
10970 2002-04-22  Lars Clausen  <lrclause@cs.uiuc.edu>
10972         * app/export_png.c: Moved dialog functions to their own file.
10973         * app/dialogs.[ch]: New files with standard functions for creating
10974         small, transient dialogs (e.g. export options).
10975         * app/Makefile.am: Added dialogs.[ch]
10977 2002-04-19  Steffen Macke <sdteffen@web.de>
10979         * shapes/Misc/folder.*:
10980         * shapes/Misc/file.*:
10981         * shapes/Misc/Makefile.am:
10982         * shapes/Makefile.am:
10983         * sheets/Misc.sheet.in:
10984         * sheets/Makefile.am:
10985         * configure.in: added new Misc sheet containing filesystem shapes
10986         
10987 2002-04-18  Lars Clausen  <lrclause@cs.uiuc.edu>
10989         * app/lineprops_area.c: Arrow selector in toolbox changed to use
10990         standard arrowdraw code.  Line is thinner to make some arrowheads
10991         distinguishable. 
10993 2002-04-18  Steffen Macke <sdteffen@web.de>
10995         * sheets/network.sheet.in:
10996         * shapes/network/telephone.shape:
10997         * shapes/network/Makefile.am: added telephone shape
10998         
10999 2002-04-16  Steffen Macke <sdteffen@web.de>
11001         * sheets/EML.sheet.in: commented out unavailable shapes
11002         
11003 2002-04-15  M.C. Nelson <mcn@kobayashimaru.org>
11005         * app/sheets_dialog_callbacks.c:  Fixed segfault caused by mis-ordered
11006           variable assignment.
11007         
11008 2002-04-15  Steffen Macke <sdteffen@web.de>
11010         * plug-ins/dxf/dxf-import.c: text import works again
11011         * shapes/Pneumatic/Makefile.am: added compush shape
11012         * sheets/Pneumatic.sheet.in: commented out unavailable shapes dist33
11013         and dist53
11014         
11015 2002-04-11  M.C. Nelson <mcn@kobayashimaru.org>
11017         * All these modifications are for the 'Sheets and Objects' dialog
11018           (new feature):
11020         * app/pixmaps/line_break.xpm: new icon representing a line break.
11021         
11022         * app/pixmaps/n_a.xpm: new empty icon representing not available.
11024         * app/Makefile.am: added sheets_*.[ch] files to compile list.
11025         
11026         * app/menus.c: added GNOME and gtk menu items for 'Sheets and Objects'
11027         
11028         * app/sheets_dialog.c: [new file] definition of 'Sheets & Objects' dlgs
11030         * app/sheets_dialog.h: [new file] support for Sheets & Objects dlgs 
11031         
11032         * app/app_procs.c: added call to sheets_dialog_create() in app_init()
11033         
11034         * app/sheets_dialog_callbacks.c: [new file] callbacks for S & O dialogs
11036         * app/sheets_dialog_callbacks.h: [new file] support for " " "
11038         * app/interface.c: added 'interface_current_sheet_name' global to 
11039           fill_sheet_wbox(); made fill_sheet_menu() non-static
11041         * app/interface.h: added extern declaration for aboves.
11043         * app/sheets.c: [new file] instantiation and other funcs for S & O dlgs
11045         * app/sheets.h: [new file] declarations for backing store structures
11047         * lib/sheet.c: modification of new_sheet() parameters; introduction
11048           of USER and SYSTEM scope for sheets; procedure for sorting sheets;
11049           changes to load_register_sheet().
11051         * lib/sheet.h: added 'user_data_type' field to SheetObject structure;
11052           added 'has_icon_on_sheet' flag to SheetObject structure; added 
11053           'filename', 'scope', 'shadowing' fields to Sheet structure.
11055         * lib/plug-ins.c: moved _PluginInfo declaration to header file where
11056           it belongs.
11058         * lib/plug-isn.h: see above.
11060         * lib/object.c: added 'sheet.h' to include list; added several 
11061           functions
11062           to detect objects which are not found on any sheet (for future use)
11063           object_type_detect_nosheet_callback(), object_types_detect_nosheet(),
11064           object_type_get_sheet_name(), object_type_strip_sheet_from_name().
11066         * lib/object.h: added public declarations for above functions where
11067           necessary.
11069         * objects/custom/custom.c: made custom_object_load() non-static so we
11070           can load and interpret .shape files from the Sheets & Objects dialog
11072         * objects/custom/custom_object.c: made 'custom_type' non-static so 
11073           we can differentiate between SVG shapes and other types.a
11075 2002-04-07  Hans Breuer  <hans@breuer.org>
11077         * app/object_ops.c (object_list_align_v): Fix the 'Leak fix'
11078         from 2002-01-22 to not destroy diagram->data->selected. 
11079         Avoids to crash on Objects/Align/Vertical/Top
11081         * app/render_eps.c (draw_string) : un-const buffer
11082         It isn't at all const (g_malloc(), assignment, g_free()).
11083         Doesn't gcc catch such ?
11085         * lib/arrows.h : prototype calculate_arrow_point()
11087         * lib/font.c (font_get_suckfont) : no need to
11088         special case gdk_draw_string() with GTK_TALKS_UTF8,
11089         cause all the parameter differences are handled above
11091         * lib/libdia.def : updated externals
11093         * lib/makefile.msc : removed string_prerenderer, added render
11095         * lib/render.c (draw_rect) : don't pass a Point** if a Point*
11096         is expected. [Sometimes it's good to read compiler warnings.]
11098         * objects/standard/image.c : simplified by use of g_strconcat()
11100         * plug-ins/python/makefile.msc : updated for Python 2.2
11102 2002-04-03  Lars Clausen  <lrclause@cs.uiuc.edu>
11104         * objects/standard/zigzagline.c (zigzagline_draw): Fixed
11105         directionality problem for zero-length line segments.
11107 2002-03-28  Lars Clausen  <lrclause@cs.uiuc.edu>
11109         * app/diagram.c (diagram_ungroup_selected) 
11110         (diagram_update_menu_sensitivity): Now allows ungrouping of
11111         several groups at once.
11113 2002-03-15  Lars Clausen  <lrclause@cs.uiuc.edu>
11115         * lib/render.c, all renderers: Binary incompatibility, change to
11116         expandable renderops structure.
11118 2002-03-15  Steffen Macke <sdteffen@yahoo.com>
11120         * objects/standard/Makefile.am:
11121         * objects/network/Makefile.am:
11122         * objects/UML/Makefile.am:
11123         * objects/ER/Makefile.am:
11124         * objects/FS/Makefile.am:
11125         * objects/flowchart/Makefile.am:
11126         * objects/custom/Makefile.am:
11127         * objects/GRAFCET/Makefile.am:
11128         * objects/chronogram/Makefile.am:
11129         * objects/SADT/Makefile.am:
11130         * plug-ins/cgm/Makefile.am:
11131         * plug-ins/pstricks/Makefile.am:
11132         * plug-ins/hpgl/Makefile.am:
11133         * plug-ins/wpg/Makefile.am:
11134         * plug-ins/svg/Makefile.am:
11135         * plug-ins/shape/Makefile.am: added $(UNICODE_CFLAGS)
11136         
11137 2002-03-13  Lars Clausen  <lrclause@cs.uiuc.edu>
11139         * app/render_eps.c: Support for dumping TrueType fonts (taken from
11140         ttfps).
11142 2002-03-12  Lars Clausen  <lrclause@cs.uiuc.edu>
11144         * lib/render.c: New abstract super class for renderers.
11146 2002-03-07  Akira TAGOH  <tagoh@redhat.com>
11148         * objects/ER/attribute.c (attribute_save): save a font property.
11149         (attribute_load): load a font property, and if can't load it, it's
11150         initialized.
11152         * objects/ER/entity.c (entity_save): save a font property.
11153         (entity_load): load a font property, and if can't load it, it's
11154         initialized.
11156         * objects/ER/relationship.c (relationship_save): save a font property.
11157         (relationship_load): load a font property, and if can't load it, it's
11158         initialized.
11160         * objects/UML/class.c (fill_in_fontdata): don't replace if it already
11161         has a vaule.
11162         (umlclass_save): save the font and the font size properties.
11163         (umlclass_load): load the font and the font size properties.
11165 2002-03-05  Cyrille Chepelov  <cyrille@chepelov.org>
11167         * lib/string_prerenderer.[ch] (REMOVED):
11168         * lib/render.h:
11169         * lib/diagramdata.c:
11170         * lib/Makefile.am:
11171         * app/render_eps.c: got rid of the string-specific string
11172         prerenderer, transitioned its functionality towards Lars'
11173         two-phase rendering
11175 2002-03-05  Lars Clausen  <lrclause@cs.uiuc.edu>
11177         * configure.in: Using Freetypes own check for ver >= 1.0.5.  You
11178         may need to rerun aclocal.
11180 2002-03-04  Lars Clausen  <lrclause@cs.uiuc.edu>
11182         * lib/font.c: First attempt at Unicodeness for Freetype.
11184 2002-03-02  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
11186         * lib/font.c (font_string_width): Fixed font_string_width for
11187         freetype.  BB is now almost right.
11189 2002-03-01  Lars Clausen  <lrclause@cs.uiuc.edu>
11191         * app/render_eps.h: 
11192         * app/paginate_psprint.c (paginate_psprint): 
11193         * lib/font.c: 
11194         * app/render_eps.c: Support for dumping postscript fonts into
11195         postscript files with freetype.  Fairly primitive, but works.
11196         Unicode version may have problems.
11198 2002-02-28  Akira TAGOH  <tagoh@redhat.com>
11200         * objects/UML/class_dialog.c (class_read_from_dialog)
11201         (class_fill_in_dialog), (class_create_page): add the font selector and
11202         the font size selector.
11204         * objects/UML/class.c (umlclass_draw): uses each font_height.
11205         (umlclass_calculate_data): ditto.
11206         (fill_in_fontdata): add initial value of new font_height.
11207         (umlclass_copy): add new font_height.
11209 2002-02-27  Cyrille Chepelov  <chepelov@calixo.net>
11211         Patch from Geoff Gerrietts <ggerrietts@yahoo.com>:
11212         
11213         * lib/font.c: calculate font metrics properly and stop guessing at
11214         string widths.
11216 2002-02-28  Akira TAGOH  <tagoh@redhat.com>
11218         * configure.in: changed gtk_advancement value to dia_talks_utf8.
11219         right now Dia is working with UTF-8 internally. it means Dia probably
11220         support most languages also including the languages which heretofore
11221         didn't work correctly.
11223 2002-02-26  Akira TAGOH  <tagoh@redhat.com>
11225         * objects/FS/function.c: add related text properties.
11226         (function_get_props), (function_set_props): add handling attribute.
11228         * objects/FS/flow.c: add related text properties.
11229         (flow_get_props), (flow_set_props): add handling attribute.
11231         * objects/FS/flow-ortho.c: add related text properties.
11232         (orthflow_set_props), (orthflow_get_props): add handling attribute.
11234         * objects/ER/relationship.c: add PROP_STD_TEXT_FONT to property.
11236         * objects/ER/entity.c: ditto.
11238         * objects/ER/attribute.c: ditto.
11240 2002-02-26  Cyrille Chepelov  <cyrille@chepelov.org>
11242         Patch contributed by Geoff Gerrietts <ggerrietts@yahoo.com>:
11243         
11244         * autogen.sh: add a check for missing intltoolize.
11246 2002-02-20  Akira TAGOH  <tagoh@redhat.com>
11248         * lib/ps-utf8.c (unicode_to_ps_name): if this function calls with same
11249         charcode, it was registered the duplicate item to HashTable. fix.
11251         * app/render_gnomeprint.c (get_width_string): add new function.
11252         (draw_string): fix non-multibyte specific code.
11254 2002-02-19  Cyrille Chepelov  <cyrille@chepelov.org>
11256         Patch contributed by Matthieu Sozeau <mattam@netcourrier.com>:
11257         
11258         * lib/font.c: do not try to search paths that do not begin with
11259         '/', like X Font Server addresses.
11260         
11261         * objects/UML/message.c (message_draw): free mname when not 
11262         message->text but CREATE or DESTROY.
11263         
11264         * objects/UML/uml.h:
11265         * objects/UML/uml.c:
11266         * objects/UML/class_dialog.c: added code to handle a stereotype 
11267         attribute for operations.
11269 2002-02-19  Akira TAGOH  <tagoh@redhat.com>
11271         * lib/Makefile.am: add LIBART_CFLAGS.
11273 2002-02-15  Hans Breuer  <hans@breuer.org>
11275         * lib/font.c (font_get_suck_font): the black and white pixel values 
11276         need to be taken from a 1 bit colormap rather than the default colormap.
11277         (fixed again, last time was 2000-05-26)
11279         Also handle the case where GTK_TALKS_UTF8 and expects all strings
11280         passed in to be in this encoding.
11282         * lib/libdia.def : export suck_font_free()
11284         * lib/text.c (text_draw) : avoid circular dependency to ../app
11285         at least for the !USE_XIM case, where it is unnecessary.
11287 2002-02-15  Cyrille Chepelov  <cyrille@chepelov.org>
11289         Changes contributed by Matts Kivik <kivik@firstlinux.net>:
11290         
11291         * shapes/Circuit/microphone_de.(shape|xpm) (NEW):
11292         * sheets/Circuit.sheet.in: added new shape microphone
11293         * shapes/Circuit/speaker_de.shape: Added a connection point.
11294         
11295 2002-02-13  Akira TAGOH  <tagoh@redhat.com>
11297         * app/render_libart.c (draw_string): fixed build issue for Win32.
11299         * lib/font.c (font_get_suckfont): fixed typo. it could't build under
11300         Win32.
11302         * configure.in: fixed testing gtk_advancement.
11304         * app/render_gnomeprint.c (draw_string): uses utfchar instead of char.
11306 2002-02-12  Akira TAGOH  <tagoh@redhat.com>
11308         * lib/text.c (text_draw): fixed XIM position, when menubar is shown for
11309         diagram window.
11311 2002-02-11  Lars Clausen  <lrclause@cs.uiuc.edu>
11313         * app/group.c (group_copy): Made new object properly initialized
11314         before copy.
11316 2002-02-11  Steffen Macke <sdteffen@yahoo.com>
11318         * app/Makefile.am: added plug-ins to DIA_LIB_PATH in run_dia.sh
11319         
11320 2002-02-10  Akira TAGOH  <tagoh@redhat.com>
11322         * lib/text.c (text_draw): fixed XIM transaction.
11324         * app/interface.c (create_display_shell): add signal for
11325         size_allocate.
11327         * app/disp_callbacks.c (ddisplay_size_allocate): add new function for
11328         XIM transaction.
11329         (set_input_dialog): remove.
11330         (ddisplay_canvas_events): remove XIM transaction. it can't transact
11331         correctly on this function.
11333 2002-02-10  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
11335         * app/app_procs.c:
11336         * app/export_png.c: Added checks for interactivity (maybe this
11337         should be a hook after all?).
11339         * app/filedlg.c (file_export_callback): Made export dialog add
11340         suffix when reopened.
11342         * app/export_png.c: Added dialog asking for export size.
11344 2002-02-09  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
11346         * lib/widgets.c: Fixed font reselection problem and first font
11347         bogus warning.
11349         * objects/UML/actor.c (actor_update_data): Changed to have
11350         connection points below text.
11352 2002-02-08  Akira TAGOH  <tagoh@redhat.com>
11354         * lib/text.c (text_split_line): use g_strndup() instead of g_malloc()
11355         and memcpy().
11357 2002-02-07  Akira TAGOH  <tagoh@redhat.com>
11359         * lib/font.c (font_get_suckfont): rewrited. generating suckfont from
11360         strings which is given.
11361         (suck_font): remove. it's any longer needed.
11363         * app/render_libart.c (set_font): don't get suckfont.
11364         (draw_string): get suckfont only which is needed for now.
11366 2002-02-05  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
11368         * lib/text.c: Fixes for misunderstood width functions.
11370 2002-02-05  Hans Breuer  <hans@breuer.org>
11372         * lib/dia_xml.c : use g_strconcat() instead of 
11373         malloc, strcpy, strcat dance
11374         * app/properties.c : same here and plug memory leak
11375         (gtk functions don't eat strings)
11377         * objects/UML/message.c : there is no g_sprintf()
11378         use g_strdup_printf() instead ...
11380 2002-02-05  Akira TAGOH  <tagoh@redhat.com>
11382         * lib/message.c (gtk_message_internal): doesn't need to convert to
11383         UTF-8.
11385         * app/render_libart.c (draw_string): fixed transaction for UTF-8
11386         support.
11387         (get_text_width): ditto.
11389         * app/Makefile.am (EXTRA_DIST):
11390         s/paginate_gdiprint.c/paginate_gdiprint.cpp/
11392         * app/render_gdk.c (gdk_freetype_copy_glyph): fixed build issue.
11393         This function needs ifdef HAVE_FREETYPE because don't use it for
11394         --disable-freetype
11396 2002-02-04  Cyrille Chepelov  <cyrille@chepelov.org>
11398         * NEWS: updated with the new dependencies.
11399         
11400         Patch from Matthieu Sozeau <mattam@netcourrier.com>:
11402         * objects/UML/class.h:
11403         * objects/UML/class.c:  
11404         * objects/UML/class_dialog.c: added code to handle the UMLParameterKind
11405         property using a GtkMenu. Options are Undefined, In, Out, In & Out
11407 2002-02-04  Lars Clausen  <lrclause@cs.uiuc.edu>
11409         * app/render_libart.c: Slow but working libart freetype renderer,
11410         with color!
11412 2002-02-03  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
11414         * app/render_gdk.c (draw_string): Fixed gc_function bug.
11416         * lib/widgets.c (dia_font_selector_init): Sorts the font list.
11418         * lib/font.c (freetype_render_string): 
11419         * lib/font.h:
11420         * app/render_gdk.c:
11421         * app/render_gdk.h: Changed freetype_render_string to use
11422         callback.  Rendering is broken.
11424 2002-02-03  Cyrille Chepelov  <cyrille@chepelov.org>
11426         Patch from Matthieu Sozeau <mattam@netcourrier.com>:
11428         * objects/UML/uml.h:    
11429         * objects/UML/uml.c: added UMLInheritanceType and isQuery
11430         (constant) UML Operation attributes. UMLInheritanceType is either
11431         UML_ABSTRACT or UML_POLYMORPHIC  or UML_LEAF.
11433         * objects/UML/class.h:
11434         * objects/UML/class.c:  
11435         * objetcs/UML/class_dialog.c: added code to handle new
11436         UMLOperation attributes via a GtkMenu and a checkbox.
11438 2002-02-03  Akira TAGOH  <tagoh@redhat.com>
11440         * app/disp_callbacks.c (ddisplay_realize): fixed XIM issue.
11441         several client doesn't work with previous codes.
11443 2002-02-01  Lars Clausen  <lrclause@cs.uiuc.edu>
11445         * lib/font.c (freetype_render_string): Kerning.  Very few fonts
11446         seem to use it.
11448 2002-02-02  Akira TAGOH  <tagoh@redhat.com>
11450         * app/disp_callbacks.c (ddisplay_canvas_events): fixed crashes,
11451         when doing the operation like invert the objects after active view is
11452         destroyed. when changes focus, it needs to set active_display.
11454         * app/layer_dialog.c (dia_layer_update_from_layer):
11455         (layer_dialog_edit_layer): need to convert to locale encoding
11456         if GTK_DOESNT_TALK_UTF8_WE_DO is defined.
11457         (edit_layer_ok_callback):
11458         need to convert to UTF8 if GTK_DOESNT_TALK_UTF8_WE_DO is defined.
11460         * lib/diagramdata.c (new_diagram_data): ditto.
11462         * app/layer_dialog.c (layer_dialog_new_callback): ditto.
11464         * lib/diagramdata.c (new_layer): use utfchar instead of char for
11465         argument.
11467         * lib/widgets.c: if HAVE_FREETYPE isn't defined, it can't build. fixed.
11468         (dia_font_selector_set_styles): when HAVE_FREETYPE is defined only,
11469         it's needed for now. also this function needs prototype declaration.
11471 2002-01-31  Lars Clausen  <lrclause@cs.uiuc.edu>
11473         * lib/widgets.c: Style now functional on font selector.  Some leak
11474         possible, but doesn't show up under stress test.
11476 2002-01-31  Akira TAGOH  <tagoh@redhat.com>
11478         * app/plugin-manager.c (clist_select_row): name and description needs to
11479         convert to locale encoding, when GTK_DOESNT_TALK_UTF8_WE_DO is defined.
11480         (get_plugin_manager): ditto.
11482         * lib/plug-ins.c (dia_plugin_info_init): name needs to convert to UTF-8.
11484         * app/diagram_tree.c (get_object_name): fixed transaction for UTF-8
11485         support.
11487         * lib/prop_text.c (stringprop_reset_widget): fixed crashes,
11488         when prop->string_data is NULL.
11490 2002-01-30  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
11492         * lib/widgets.c: 
11493         * lib/widgets.h: New font selector separating font and style.
11494         Style not functional yet.
11496 2002-01-30  Lars Clausen  <lrclause@cs.uiuc.edu>
11498         * lib/text.c: 
11499         * app/render_gdk.c (draw_string): More freetype support, now
11500         renders text.  Still broken is font selection and exporting.
11502 2002-01-30  Akira TAGOH  <tagoh@redhat.com>
11504         * objects/chronogram/chronoref.c (chronoref_create): missing gettextize
11505         for font.
11507         * objects/chronogram/chronoline.c (chronoline_create): ditto.
11509         * objects/UML/usecase.c (usecase_create): ditto.
11511         * objects/UML/state.c (state_create): ditto.
11513         * objects/UML/object.c (objet_create): ditto.
11515         * objects/UML/node.c (node_create): ditto.
11517         * objects/UML/message.c (message_create): ditto.
11519         * objects/UML/component.c (component_create): ditto.
11521         * objects/UML/classicon.c (classicon_create): ditto.
11523         * objects/UML/actor.c (actor_create): ditto.
11525         * objects/SADT/box.c (sadtbox_create): ditto.
11527         * objects/SADT/annotation.c (annotation_create): ditto.
11529         * objects/GRAFCET/transition.c (TRANSITION_FONT): ditto.
11531         * objects/GRAFCET/step.c (STEP_FONT):
11532         * (step_create): ditto.
11534         * objects/GRAFCET/condition.c (CONDITION_FONT): ditto.
11536         * objects/GRAFCET/action.c (ACTION_FONT):
11537         (action_create): ditto.
11539         * objects/FS/function.c (function_create): ditto.
11541         * objects/FS/flow.c (flow_create):
11542         (flow_load): 
11543         (flow_apply_defaults): ditto.
11545         * objects/FS/flow-poly.c (flow_create):
11546         (flow_load):
11547         (flow_apply_defaults): ditto.
11549         * objects/FS/flow-ortho.c (orthflow_create):
11550         (orthflow_load):
11551         (orthflow_apply_defaults): ditto.
11553         * objects/ER/relationship.c: use utfchar instead of char for structure.
11554         (relationship_create): name needs to convert to UTF-8.
11556         * objects/ER/attribute.c: use utfchar instead of char for structure.
11557         (attribute_create): name needs to convert to UTF-8.
11559         * objects/ER/entity.c: use utfchar instead of char for structure.
11560         (entity_create): name needs to convert to UTF-8.
11562         * app/interface.c (fill_sheet_wbox): needs to convert UTF-8 to locale
11563         encoding for tooltips, if GTK_TALKS_UTF8 isn't defined.
11564         (fill_sheet_menu): needs to convert UTF-8 to locale encoding for menu
11565         items. if GTK_TALKS_UTF8 isn't defined.
11567 2002-01-29  Akira TAGOH  <tagoh@redhat.com>
11569         * objects/UML/class.c (umlclass_calculate_data): fixed malloc size.
11570         it was my careless mistake...
11572         * lib/attributes.c (attributes_set_default_font): temporarily gettextize
11573         a font name, because there are strings which isn't shown by "Courier".
11574         We need to consider a way to feel free to choose a font at runtime.
11576         * lib/render_object.c (render_object_load): ditto.
11578         * lib/text.c (data_text): ditto.
11580         * objects/EML/instantiation.c (instantiation_create): ditto.
11582         * objects/EML/interaction-ortho.c (interaction_ortho_create):
11583         (interaction_ortho_load): ditto.
11585         * objects/EML/interaction.c (interaction_create):
11586         (interaction_load): ditto.
11588         * objects/EML/process.c (fill_in_fontdata): ditto.
11590         * objects/ER/attribute.c (attribute_create): 
11591         (attribute_load): ditto.
11593         * objects/ER/entity.c (entity_create): 
11594         (entity_load): ditto.
11596         * objects/ER/relationship.c (relationship_create): 
11597         (relationship_load): ditto.
11599         * objects/UML/association.c (association_create): 
11600         (association_load): ditto.
11602         * objects/UML/class.c (fill_in_fontdata): ditto.
11604         * objects/UML/constraint.c (constraint_create): ditto.
11606         * objects/UML/dependency.c (dependency_create): ditto.
11608         * objects/UML/generalization.c (generalization_create): ditto.
11610         * objects/UML/implements.c (implements_create): ditto.
11612         * objects/UML/large_package.c (largepackage_create): ditto.
11614         * objects/UML/note.c (note_create): ditto.
11616         * objects/UML/realizes.c (realizes_create): ditto.
11618         * objects/UML/small_package.c (smallpackage_create): ditto.
11620         * objects/custom/shape_info.h (FONT_DEFAULT): ditto.
11622         * objects/custom/custom_object.c (custom_create): ditto.
11624         * objects/network/antenna.c (render_to_store): ditto.
11626         * objects/network/computer.c (render_to_store): ditto.
11628         * objects/network/disc.c (render_to_store): ditto.
11630         * objects/network/flash.c (render_to_store): ditto.
11632         * objects/network/hub.c (render_to_store): ditto.
11634         * objects/network/modem.c (render_to_store): ditto.
11636         * objects/network/modularswitch.c (render_to_store): ditto.
11638         * objects/network/monitor.c (render_to_store): ditto.
11640         * objects/network/printer.c (render_to_store): ditto.
11642         * objects/network/rj45plug.c (render_to_store): ditto.
11644         * objects/network/scead-plug.c (render_to_store): ditto.
11646         * objects/standard/textobj.c (textobj_load): ditto.
11648         * objects/sybase/client.c (render_to_store): ditto.
11650         * objects/sybase/dataserver.c (render_to_store): ditto.
11652         * objects/sybase/ltm.c (render_to_store): ditto.
11654         * objects/sybase/repserver.c (render_to_store): ditto.
11656         * objects/sybase/rsm.c (render_to_store): ditto.
11658         * objects/sybase/stableq.c (render_to_store): ditto.
11660         * plug-ins/dxf/dxf-import.c (read_entity_text_dxf): ditto.
11662         * objects/UML/uml.h (UML_STEREOTYPE_START):
11663         (UML_STEREOTYPE_END): changes default strings.
11665 2002-01-28  Akira TAGOH  <tagoh@redhat.com>
11667         * objects/UML/stereotype.c (string_to_bracketted): fixed transaction
11668         for UTF-8 support. if GTK+ and Dia don't handle UTF-8, all of characters
11669         which is given to arguments isn't UTF-8. so don't need to convert it.
11670         if GTK+ handle UTF-8, also don't need to convert it.
11671         (strend): remove.
11672         (bracketted_to_string): fixed transaction for UTF-8 support.
11673         also start/end bracket is not necessarily 1 character. so that when use
11674         strend(), it doesn't work correctly.
11675         (string_to_stereotype): use utfchar instead of char.
11676         (remove_stereotype_from_string): ditto.
11677         (stereotype_to_string): ditto.
11679         * objects/UML/stereotype.h: ditto.
11681         * objects/UML/message.c: use utfchar instead of char for structure.
11682         (MESSAGE_CREATE_LABEL, MESSAGE_DESTROY_LABEL): remove.
11684         * objects/UML/small_package.c: use utfchar instead of char for structure.
11686         * objects/UML/realizes.c: ditto.
11688         * objects/UML/object.c: ditto.
11690         * objects/UML/large_package.c: ditto.
11692         * objects/UML/implements.c: ditto.
11694         * objects/UML/generalization.c: ditto.
11696         * objects/UML/dependency.c: ditto.
11698         * objects/UML/constraint.c: ditto.
11700         * objects/UML/component.c: ditto.
11702         * objects/UML/class_dialog.c (attributes_get_current_values):
11703         (attributes_list_new_callback, attributes_fill_in_dialog):
11704         (parameters_set_values, parameters_get_values):
11705         (parameters_get_current_values, parameters_list_new_callback):
11706         (operations_set_values, operations_get_values):
11707         (operations_get_current_values, operations_list_new_callback):
11708         (operations_fill_in_dialog, templates_set_values):
11709         (templates_get_values, templates_get_current_values):
11710         (templates_list_new_callback, templates_fill_in_dialog):
11711         fixed transaction for UTF-8 support.
11713 2002-01-27  Akira TAGOH  <tagoh@redhat.com>
11715         * objects/UML/message.c (message_draw): fixed transaction for UTF-8 support.
11717         * objects/UML/class_dialog.c (class_read_from_dialog):
11718         (class_fill_in_dialog):
11719         (attributes_get_values): ditto.
11721         * objects/UML/actor.c (actor_create): ditto.
11723         * objects/UML/class.c (umlclass_calculate_data): ditto.
11725         * objects/UML/association.c (association_apply_properties):
11726         (fill_in_dialog): ditto.
11728         * objects/UML/uml.c (uml_get_attribute_string):
11729         (uml_get_operation_string):
11730         (uml_get_parameter_string):
11731         (uml_get_formalparameter_string): use utfchar instead of char.
11733         * objects/UML/uml.h: gettextize UML_STEREOTYPE_START and
11734         UML_STEREOTYPE_END.
11736         * objects/UML/class.h: use utfchar instead of char.
11738         * lib/dia_xml.c (data_add_string): ditto.
11740         * lib/text.c (text_insert_char): fixed characters# calculation
11741         when includes multibytes character in strings.
11743 2002-01-26  Steffen Macke  <sdteffen@yahoo.com>
11745         Patch from Richard Rowell <rwrowell@bellsouth.net>:
11747         * app/lineprops_area.c:
11748         * lib/arrows.h:
11749         * lib/arrows.c: 
11750         * lib/widgets.c: added crow foot arrow and cross arrow
11751         
11752         Patch from Frank Gevaerts <frank.gevaerts@fks.be>:
11753         
11754         * plug-ins/svg/render_svg.c: fixed arcs, fill and text alignment
11756 2002-01-26  Cyrille Chepelov  <cyrille@chepelov.org>
11758         * po/update.pl (REMOVED):
11759         * po/update.sh (REMOVED):
11760         * xml-i18n-merge.in.kg (REMOVED):
11761         * xml-i18n-update.in.kg (REMOVED):
11762         * sheets/Makefile.am:
11763         * Makefile.am:
11764         * autogen.sh:
11765         * configure.in: converted from xml-i18n-tools to intltools
11767         This looks like it fixes the build bugs of the snapshot tarballs, 
11768         and it supersedes #69611.       
11770 2002-01-25  Akira TAGOH  <tagoh@redhat.com>
11772         * lib/text.c (text_insert_char): fixed characters# calculation.
11773         it's not string length.
11775         * lib/plug-ins.c (dia_plugin_info_init): when GTK_DOESNT_TALK_UTF8_WE_DO
11776         is defined, needs to convert a description to UTF-8.
11778         * app/render_gdk.c (get_text_width): fixed transaction for
11779         UTF-8 support. also should uses gdk_text_width_wc() instead
11780         of gdk_text_width().
11782         * app/render_gdk.c (draw_string): when GTK_DOESNT_TALK_UTF8_WE_DO
11783         is defined, needs to convert to locale encoding for display.
11784         Also use utfchar instead of char for argument.
11786 2002-01-24  Hans Breuer  <hans@breuer.org>
11788         * app/commands.c(edit_paste_callback and more) : 
11789         call diagram_modified(ddisp->diagram) to fix #68083
11790         (help_menu_callback) : plug a DIR leak
11792         * app/disp_callbacks.c(ddisplay_canvas_events) : handle 
11793         GTK_TALKS_UTF8_WE_DONT
11795         * app/render_gdk.c(get_text_with) : it's a bad idea to use
11796         gdk_string_with() when GTK_TALKS_UTF8_WE_DONT instead of
11797         gdk_text_width(). The length value is still questionable ...
11799         * lib/charconv.c : use functions already available in early
11800         GLIB-1.3 days whiches API hasn't changed since, to avoid
11801         version problems with the win32 build
11803         * lib/font.c : finally fix #58045 and #68208
11805         * lib/dia_xml.c (xmlDiaSaveFile) : gzdopen in binary mode
11807 2002-01-24  Akira TAGOH  <tagoh@redhat.com>
11809         * app/disp_callbacks.c (ddisplay_canvas_events): when event returned
11810         no strings, fixed transaction.
11812         * lib/charconv.h: fixed typo.
11814         * app/menus.c: fixed typo.
11816         * lib/charconv.c (charconv_utf8_strchr): remove. use uni_strchr instead.
11818         * objects/UML/object.c: attrib's type uses utfchar instead of char.
11820         * app/disp_callbacks.c (ddisplay_canvas_events): forget g_free()
11822         * lib/text.c (text_create_change): use unichar instead of char.
11824         * lib/text.c (data_add_text, data_text, apply_textstr_properties):
11825         use utfchar instead of char.
11827         * lib/text.c (text_insert_char, text_key_event): fixed transaction for
11828         UTF-8 support.
11830         * lib/charconv.c (charconv_utf8_get_char): add new function.
11832 2002-01-23  Akira TAGOH  <tagoh@redhat.com>
11834         * lib/text.c (text_delete_forward, text_delete_backward,
11835         text_split_line): fixed transaction for UTF-8 support.
11837         * lib/text.c (text_copy): when UNICODE_WORK_IN_PROGRESS is defined,
11838         strlen[] has string length for UTF-8, so has to use alloclen[].
11840         * dia.pot: remove.
11842         * .cvsignore: add dia.pot.
11844 2002-01-24  Stanislav Visnovsky  <visnovsky@nenya.ms.mff.cuni.cz>
11846         * configure.in: Added "sk" to ALL_LINGUAS.
11848 2002-01-22  Akira TAGOH  <tagoh@redhat.com>
11850         * lib/text.c (text_set_string, new_text, text_copy,
11851         text_get_string_copy, text_join_lines): use utfchar instead of gchar
11852         for strings.
11854         * lib/text.c (set_string): use charconv_utf8_strchr() instead of
11855         strchr().
11857         * lib/charconv.c (charconv_utf8_strchr): add new function.
11859         * lib/charconv.c (charconv_keyval_to_unicode): ditto.
11861         * lib/charconv.c (charconv_utf8_from_gtk_event_key): ditto.
11863         * app/disp_callbacks.c (ddisplay_canvas_events): needs to convert
11864         strings to the appropriate encoding.
11866 2002-01-22  Lars Clausen  <lrclause@cs.uiuc.edu>
11868         * app/object_ops.c (object_list_align_[hv]): Leak fix.
11870         * lib/Makefile.am (INCLUDES): Added debug flags.
11872         * app/object_ops.c: Fixed ordering problem of align equi-distant &
11873         adjacent. 
11875 2002-01-21  Akira TAGOH  <tagoh@redhat.com>
11877         * lib/font.c (font_string_width): use gdk_text_width_wc() instead of
11878         gdk_string_width().
11880         * objects/GRAFCET/boolequation.c: fixed invalid comment.
11882         * objects/UML/stereotype.c (string_to_bracketted): fixed build problem
11883         when defined UNICODE_WORK_IN_PROGRESS.
11885         * lib/dia_xml.c (data_add_string): fixed typo.
11887 2002-01-20  Akira TAGOH  <tagoh@redhat.com>
11889         * configure.in: fixed test gtk_advancement.
11891 2002-01-019  Steffen Macke  <sdteffen@yahoo.com>
11893         * plug-ins/svg/render_svg.c: fix for #69053, alignment of text
11894         exported to SVG
11896         Patch from M.C. Nelson <mcn@mani.kobayashimaru.org>: 
11898         * app/recent_files.[ch]: reworked to support GNOME, accelerators,
11899         tool tips, preferences, and arbitrarily long ~/.dia/history
11901         * app/menus.c: made 'Plugins' consistantly spelled and accelerated;
11902         removed 'Open Recent'; added new separators for recent documents on
11903         File menu.
11905         * app/interface.[ch] (interface_get_toolbox_shell): new function
11907         * app/diagram.c: added new parameter to recent_file_history_add() call
11909         * app/preferences.[ch]: added new 'Recent documents list size'
11910         preferences item
11911         
11912 2002-01-18  Akira TAGOH  <tagoh@redhat.com>
11914         * lib/font.c (font_get_gdkfont_helper): use gdk_fontset_load ().
11915         if it failed, should be used gdk_font_load ().
11917         * lib/font.c (font_data): added the font entries for CJK.
11919 2002-01-17  Steffen Macke  <sdteffen@yahoo.com>
11921         Patch from M.C. Nelson <mcn@mani.kobayashimaru.org>:
11923         * app/menus.c: replaced GDK_F1 with "F1" to fix segfault on startup
11924         
11925 2002-01-04  Cyrille Chepelov  <cyrille@chepelov.org>
11927         Patch from Martin Cracauer <cracauer@cons.org>:
11928         
11929         * app/menus.c: add missing #include <gdk/gdkkeysyms.h> (useful in the
11930         non-GNOME case ?)
11932 2002-01-01  Hans Breuer  <hans@breuer.org>
11934         * app/command.c : optional use GDI printing on windoze
11936         * app/preferences.[hc] : add option 'prefer_psprint' to 
11937         select the print engine to use (could be used for Dia/Gnome
11938         as well)
11940         * app/paginate_gdiprint.(h|cpp) : new files, which interlink the
11941         wmf plug-in with the common win32 print api. Now printing
11942         should work almost as expected from a windows program :-)
11944         * app/diagram.c app/menus.[hc] : rename _UpdatableMenuItems.delete
11945         to .edit_delete to avoid clashes with C++
11947         * app/makefile.msc : updated for GDI printing
11949         * plug-ins/wmf/wmf.cpp : some small modifications to support
11950         GDI printing. Also swap R and B channel in draw_image()
11952         * app/makefile.am : added windows only files to EXTRA_DIST
11954         * objects/uml/class.c(umlclass_set_props) : force recalculation
11955         when applying properties
11957         * lib/charconv.c lib/dia_xml.c : temporary back-ported to
11958         glib-1.3.2 (for win32) IMHO causes recent cvs introduces too
11959         many incompatible changes (and would force a gtk update)
11961         * objects/makefile.msc : don't build C-Objects which are
11962         already available as 'pure shape'
11964         * plug-ins/makefile.msc : remove diaimport from build. It was
11965         only available via mailing-list and is broken since the
11966         StdProp overhaul.
11969         Patch from Jose A Ortega Ruiz  <jaortega@acm.org>
11971         * app/preferences.[hc] : tweaked preferences.c to make 
11972         PREF_STRING work. Use it for 'diagram_tree_hidden'. Also
11973         added some more DiagramTree prefererences and their own
11974         notebook page.
11976         * app/diagram_tree.[hc] : allow to sort by object type or name
11977         and hide by type ...
11978         * app/diagram_tree_menu.[hc] : ... add respective menu entries ...
11979         * app/diagram_tree_menu_callbacks.[hc] : ... and callbacks.
11981         * app/diagram_tree_window.c : handle hidden types and window
11982         size restoring.
11984 2001-12-20  Hans Breuer  <hans@breuer.org>
11986         * plug-ins/python/Makefile.am : patch from Peter Moulder 
11987         <pmoulder@csse.monash.edu.au> to make the python plug-in
11988         compile on *nix too.
11990 2001-12-03  Cyrille Chepelov  <chepelov@calixo.net>
11992         Patch from Alan <horkana@tcd.ie>:
11994         * app/menus.c: bind the F1 shortcut to the Help/_Manual function.
11996 2001-11-20  Hans Breuer  <hans@breuer.org>
11998         * app/makefile.msc : add new diagram_tree_menu(_callbacks).obj
12000 2001-11-18  Jose A Ortega Ruiz  <jaortega@acm.org>
12002         * app/diagram_tree.[hc] : Added new functions and types for
12003         sorting diagram and objects, and attaching the popup menus.
12005         * app/preferences.h: Added more diagram tree preferences, using a
12006         DiagramTreeConfig struct in DiaPreferences. The new prefs are the
12007         height and width of the diagram tree window and the default sort
12008         orders for diagrams and objects.
12010         * app/preferences.c (prefs_data): Added new entries for the new
12011         diagram tree preferences.
12013         * app/preferences.c (prefs_tabs): New tab for diagram tree
12014         preferences.
12016         * app/diagram_tree_window.[hc] (create_diagram_tree_window): 
12017         * app/diagram_tree_window.c (diagram_tree_window_new): 
12018         * app/interface.c (create_tree_window): The diagram tree window is
12019         initialised using the DiagramTreeConfig part of prefs.
12022 2001-11-14  Jose A Ortega Ruiz  <jaortega@acm.org>
12024         * app/diagram_tree_menu.[hc]: New files. Functions to create the
12025         diagram tree popup menus.
12027         * app/diagram_tree_menu_callbacks.[hc]: New files. Callbacks for
12028         the diagram tree popup menus.
12030         * app/Makefile.am (dia_core_files): diagram_tree_menu* files
12031         added.
12033 2001-11-13  Jose A Ortega Ruiz  <jaortega@acm.org>
12035         * app/diagram_tree.c (double_click_callback, diagram_tree_new):
12036         double-clicking a diagram tree node raises the diagram window
12037         to the foreground (and, if a object node was clicked, selects the
12038         object in the diagram).
12040         * app/diagram_tree.c (select_tree_widget): selecting an object
12041         node with single click simply updates it (no raise).
12043 2001-11-08  Jose A Ortega Ruiz  <jaortega@acm.org>
12044         These changes make the diagram tree lazy: it is not created unless
12045         the diagram tree window is requested.
12046         
12047         * app/diagram_tree_window.[hc] (create_diagram_tree_window): new
12048         function for creating the tree window.
12050         * app/interface.c (create_tree_window): call
12051         create_diagram_tree_window() instead of diagram_window().
12053         * app/diagram_tree.c (diagram_tree_add, diagram_tree_remove) 
12054         (diagram_tree_update, diagram_tree_update_name) 
12055         (diagram_tree_add_object, diagram_tree_add_objects) 
12056         (diagram_tree_remove_object, diagram_tree_remove_objects) 
12057         (diagram_tree_update_object): accept a NULL tree as a nominal
12058         argument (and do nothing in this case!), so that the diagram tree
12059         is not initialised if not used.
12061         * app/diagram_tree_window.c (diagram_tree): do not create the
12062         diagram tree until diagram_window() or diagtree_show_callback()
12063         are invoked.
12065 2001-10-31  Jose A Ortega Ruiz  <jaortega@acm.org>
12066         [slightly modified and applied from Hans Breuer <hans@breuer.org>]
12068         * app/diagram_tree_window.[hc] : (new files) implementation of 
12069         the diagram tree window, a container for a diagram tree. [Removed
12070         the horizontal scroll bar glitch by disableing it]
12072         * app/diagram_tree.[hc] : (new files) implementation of the 
12073         diagram tree widget. [Don't rely on the layers GPtrArray to be
12074         NULL terminated, but use its ->len field] 
12076         * app/Makefile.am (dia_core_files): added new files
12077         diagram_tree.[hc] and diagram_tree_window.[hc]
12079         * app/interface.[hc] : (create_tree_window): this function 
12080         creates the new diagram tree window widget
12082         * app/undo.c (delete_objects_apply) (delete_objects_revert) 
12083         (insert_objects_apply) (insert_objects_revert) (group_objects_apply) 
12084         (ungroup_objects_apply) (ungroup_objects_revert): 
12085         every time that an undoable command modifies a diagram 
12086         adding/removing/(un)grouping objects, a diagram_tree_something() is 
12087         invoked to keep the diagram tree window in sync
12089         * app/properties.c (properties_apply): call to
12090         diagram_object_modified(), which updates the diagram tree window
12091         when the properties of an object are modified
12093         * app/preferences.[hc] : new "show_diagram_tree" configuration option 
12094         (whether the diagram tree window should be shown on dia startup)
12096         * app/menus.c : added '<Toolbox>/File/Diagram Tree' entry
12098         * app/diagram.h (diagram_object_modified): callback notifying of a
12099         diagram object modification
12101         * app/diagram.c (diagram_load_into): added call to
12102         diagram_tree_add() to add newly loaded diagrams to the diagram
12103         tree window
12104         (diagram_destroy): call to diagram_tree_remove() to remove a
12105         destroyed diagram from the diagram tree window
12106         (diagram_add_object): call to diagram_tree_add_object() to add an
12107         object to the diagram tree window
12108         (diagram_add_object_list): as above, but with an object list
12109         (diagram_selected_break_external): deletion of objects from the
12110         diagram is detected here, and diagram_tree_remove_object() is
12111         invoked to remove the object from the diagram tree window (it
12112         would be nice to have a diagram_remove_object() in the Diagram
12113         interface)
12114         (diagram_set_filename): update the diagram tree window when a
12115         diagram's filename changes
12117         * app/commands.c (file_new_callback): added call to
12118         diagram_tree_add() to add newly created diagrams to the diagram
12119         tree window
12121         * app/app_procs.c (app_init): added call to create_tree_window()
12123         * app/makefile.msc : updated
12125 2001-10-28  Hans Breuer  <hans@breuer.org>
12127         * app/preferences.h (DiaPreferences): 
12128         * app/preferences.c (prefs_data): new "show_diagram_tree"
12129         configuration option (whether the diagram tree window should be
12130         shown on dia startup)
12132         * app/menus.c: added the new "<Toolbox>/View/Diagram tree" menu
12133         entry (both for GNOME and gtk)
12135         * app/diagram.h (diagram_object_modified): callback notifying of a
12136         diagram object modification
12138         * app/diagram.c (diagram_load_into): added call to
12139         diagram_tree_add() to add newly loaded diagrams to the diagram
12140         tree window
12141         (diagram_destroy): call to diagram_tree_remove() to remove a
12142         destroyed diagram from the diagram tree window
12143         (diagram_add_object): call to diagram_tree_add_object() to add an
12144         object to the diagram tree window
12145         (diagram_add_object_list): as above, but with an object list
12146         (diagram_selected_break_external): deletion of objects from the
12147         diagram is detected here, and diagram_tree_remove_object() is
12148         invoked to remove the object from the diagram tree window (it
12149         would be nice to have a diagram_remove_object() in the Diagram
12150         interface)
12151         (diagram_set_filename): update the diagram tree window when a
12152         diagram's filename changes
12154         * app/commands.c (file_new_callback): added call to
12155         diagram_tree_add() to add newly created diagrams to the diagram
12156         tree window
12158         * app/app_procs.c (app_init): added call to create_tree_window()
12160 2001-10-28  Hans Breuer  <hans@breuer.org>
12162         * plug-ins/python/pydia-property.c : apparently I missed
12163         to commit this last time. Now it has some more SetAttr
12164         support (apply from property)
12166         * plug-ins/python/pydia-properties.h : added PyDiaProperty_Check
12168         * plug-ins/python/pydia-text.[ch] : new files
12170 2001-10-14  Hans Breuer  <hans@breuer.org>
12172         * lib/charconv.c : g_locale_to_utf8() does not handle NULL
12173         strings. Use g_strdup() for these.
12175         libxml2 does not produce 'any extra indentation when saving a tree'
12176         [libxml2-2.4.2/doc/upgrade.html] anymore, which was the default with
12177         libxml(1). To get human readable XML some extra tweaking is required.
12178         It is enabled by setting 'pretty_formated_xml' to 'true' in 'diarc'.
12179         * lib/dia_xml.[hc] : provide and use 'DIAVAR pretty_formated_xml'
12180         * app/preferences.[ch] : initialize 'pretty_formated_xml'
12182         * lib/libdia.def : updated externals
12184         * lib/properties.h : add prototype for prop_list_from_single ()
12186         * plug-ins/makefile.msc : build metapost plug-in
12188         * plug-ins/metapost/render_metapost.c : msvc does not like
12189         switch labels without operation 'default: }'. Added a noop.
12191         * plug-ins/python/pydia-text.[hc] : (new files) wrap DiaText
12192         * plug-ins/python/diamodule.c : added PyDiaText 
12193         * plug-ins/python/makefile.msc : dito. Also added LIBXML_CFLAGS.
12194         Although the python plug-in does not use libxml at all, the
12195         headers are required to use the lib/prop*.h headers
12197         * plug-ins/python/pydia-diagramdata.c : added wrappers for
12198         update_extents and get_sorted_selected (should I duplicate
12199         more functions from PyDiaDiagram or should they be moved?)
12201         * plug-ins/python/pydia-properties.c : allow to set (some) properties
12202         through the dictionary api
12203         * plug-ins/python/pydia-property.h : declare PyDiaProperty_ApplyToObject
12204         * plug-ins/python/pydia-property.c : implement it (currently only
12205         string properties can be set)
12207         Reimplement PyDiaProperty_GetAttr by means of the new StdProp api.
12208         Quoting myself: 'Still not convinced that this is better than an 
12209          integral property->type and some casting ...
12210          It is trading a straightforward 40 lines switch statement to
12211          this nice 'type safe' function mapping (about 125 lines)'
12212         (But now it works again, better than changing the News file :)
12213         
12214 2001-10-14  Cyrille Chepelov  <chepelov@calixo.net>
12216         patch from <robert.young@dsto.defence.gov.au>: 
12217         * objects/UML/component.c: remember to set font in UML component
12218         object (fixes #62132)   
12220 2001-10-02  Lars Clausen  <lrclause@cs.uiuc.edu>
12222         * plug-ins/metapost/metapost.c: 
12223         * plug-ins/metapost/Makefile.am:
12224         * plug-ins/metapost/render_metapost.c:
12225         * plug-ins/metapost/render_metapost.h:
12226         Metapost renderer from Chris Sperandio
12228 2001-09-14  Hans Breuer  <hans@breuer.org>
12230         * app/render_gdk.c : reflect the fact, that GTK already talks
12231         UTF8 on win32, fixes #59982, #56100, (#55992 ?) ...
12233         * lib/font.c : 
12234         * app/render_libart.c : trying to fix #58045 but it appears
12235         to be an Gdk/win32, too. 
12237         * lib/charconv.c : handle utf8 conversion with the help of
12238         glib-1.3 even in the !HAVE_UNICODE case.
12240         * lib/dia_xml.c : reduce complaing about missing encoding, by
12241         detecting if the default (utf8) would break the file.
12243 2001-09-13  Cyrille Chepelov  <chepelov@calixo.net>
12245         * lib/charconv.c: (get_local_charset): at least please try to not 
12246         silently change the logic, while avoiding crashes. 
12248         * lib/font.c: (suck_font): put a #error, we have a nasty something
12249         to fix there before we switch to Gtk 2.0.
12250         
12251 2001-09-09  Hans Breuer  <hans@breuer.org>
12253         * **/makefile.mingw : Approach to compile Dia with mingw.
12254         Compiling mostly works but running does not (yet) ... 
12256         * lib/geometry.h : 
12257         - use G_OS_WIN32 instead of _MSC_VER to drag in isinf, etc. definitions. 
12258           Apparently mingw needs it too.
12259         - enable 'normalization' of a null verctor. Otherwise the beziergon
12260           bounding box calculation would be broken at least with msvc. What's
12261           the mathematical correct result of 0.0/0.0 ?
12263         * lib/dia_xml.c : isinf() for mingw too.
12265         * lib/dia_dirs.c : use MAX_PATH instead of _MAX_PATH (works for mingw 
12266         and msvc)
12268         * lib/charconv.c : still crashes if strcmp(NULL, "UTF-8"). 
12269         Please don't do it.
12271         * lib/font.c : Trying to reflect that GTK_TALKS_UTF8_WE_DONT
12273         * lib/libdia.def : updated externals. Apparently mingw needs
12274         them to produce the right mangling.
12276         * plug-ins/shape/shape-exports.c : get prototypes for xmlStrdup
12277         and xmlDiaSaveFile
12279 2001-09-08  Wang Jian  <lark@linux.net.cn>
12281         * configure.in(ALL_LINGUAS): Renamed zh_CN.GB2312 to zh_CN
12283 2001-09-07  Cyrille Chepelov  <chepelov@calixo.net>
12285         * lib/dia_xml_libxml.h:
12286         * lib/dia_xml.c: (data_add_string), (xmlDiaSaveFile): Duplicated
12287         libxml1's code, to rework the output file before it gets committed
12288         to disk. This is rubbish, and will be removed when libxml2
12289         switches from discouraged to mandatory. 
12290         All in all, this fixes #60152. 
12291         
12292         * lib/charconv.h: 
12293         * lib/charconv.c: (charconv_unichar_to_utf8):
12294         made the type of the input parameter explicitly an unsigned long.
12296         * configure.in: Added a check for libz (we must now include it
12297         explicitly, for xmlDiaSaveFile).
12298         
12299         * app/load_save.c: (diagram_data_save):
12300         * lib/plug-ins.c: (ensure_pluginrc), (info_fill_from_pluginrc),
12301         (dia_pluginrc_write):
12302         * plug-ins/shape/shape-export.c: (new_shape_renderer),
12303         (end_render), (draw_string):
12304         * plug-ins/svg/render_svg.c: (new_svg_renderer), (end_render),
12305         (draw_string):
12307         Made sure we always write UTF-8 XML files, and through
12308         xmlDiaSaveFile().
12310         * NEWS: documented that fact.
12311         
12312 2001-09-07  James Henstridge  <james@daa.com.au>
12314         * configure.in (found_libxml): refactor the check for libxml a
12315         little so that it handles finding both libxml1 and 2 better.
12317 2001-09-03  Cyrille Chepelov  <chepelov@calixo.net>
12319         * app/app_procs.c: removed a spurious } which caused a compilation
12320         error in the (!HAVE_GNOME && HAVE_POPT_H) case
12322         * lib/charconv.c: (get_local_charset): some versions of iconv(1)
12323         don't know what ANSI X3.4-1968 is. I didn't know until this day,
12324         but it's just plain old ASCII. Added a check to shield the poor
12325         XML library.
12327         Patches from <robert.young@dsto.defence.gov.au>:
12329         * lib/text.c: (text_calc_boundingbox) Bounding box now calculates the
12330         width and height of text before calculating bounds. Fixes #59928
12332         * app/preferences.c: Moved grid related items into Grid Tab.
12333         
12334 2001-09-02  Cyrille Chepelov  <chepelov@calixo.net>
12336         * app/interface.c: (create_zoom_widget): connected one more signal
12337         to the Zoom selector combo's list. Fixes #59879.
12339         * app/app_procs.[ch]: (app_init) (do_convert)
12340         (build_output_file_name): brought back into the main executable
12341         the rare useful bits of the ill-fated diaconv. This means we have
12342         one new feature : --export-to-format (-t), which should make
12343         writing conversion scripts easier, and a crude implementation of
12344         -t and -e for the poptless argument parsing, which means the Win32
12345         port should be able to take advantage of it (that should make
12346         resolving #58197 possible).
12348         * app/diaconv.c: kept the poor duck compiling (but that's about
12349         it).
12351         * plug-ins/svg/render_svg.c: updated the SVG DTD header (I hope
12352         I've got it right).
12354         * NEWS: updated about the new feature above, and documented the 
12355         "missing encoding specification" complaint. 
12356         
12357 2001-09-01  Abel Cheung  <maddog@linux.org.hk>
12359         * configure.in: Rename zh_TW.Big5 -> zh_TW in ALL_LINGUAS.
12361 2001-09-01  Cyrille Chepelov  <chepelov@calixo.net>
12363         * objects/standard/bezier.c: used g_new0 instead of g_new, to take
12364         care of #59837.
12366 2001-09-01  James Henstridge  <james@daa.com.au>
12368         * */Makefile.am: various changes to include missing files, and fix
12369         sheets dir to handle building with builddir != srcdir.
12371         * autogen.sh: unconditionally pass the --enable-maintainer-mode
12372         and --enable-db2html flags so that builds from CVS work correctly.
12374         * configure.in: increment version number.  Also add an
12375         --enable-db2html flag.  Without the flag, db2html won't be run (if
12376         the flag is passed and db2html is not present, do nothing).
12378 2001-08-30  Cyrille Chepelov  <chepelov@calixo.net>
12380         * lib/poly_conn.c: (polyconn_copy): it's a wonder this routine
12381         even compiled. It's really too bad there is no lint tool easily
12382         available (or a more cautious, pedandic, paranoid and verbose
12383         compiler). Anyway, this fixes #59662. (this didn't affect 0.88.x)
12385 2001-08-27  Cyrille Chepelov  <chepelov@calixo.net>
12387         * app/load_save.c:
12388         * dia/lib/plug-ins.c: use g_strdup() instead of strdup(). Patch
12389         from <robert.young@dsto.defence.gov.au>. Fixes #59591.
12391         * app/menu.c: added ellipsis(...) to diagram properties menu item.
12392         * app/dia-props.c: diagram properties dialog contents did not
12393         represent current diagram settings.
12394         * app/dia-props.[ch]:
12395         * app/display.c: diagram properties contents now follows currently
12396         selected diagram.
12397         Patch also from <robert.young@dsto.defence.gov.au>, fixes #59409.
12399         * AUTHORS: added Robert Young.
12400         
12401 2001-08-27  Cyrille Chepelov  <chepelov@calixo.net>
12403         * app/modify_tool.c: (modify_button_release): Patch from
12404         <robert.young@dsto.defence.gov.au>. Fixes the remaining bit from
12405         #59090: if selection dragging was released outside of the window, 
12406         artifacts of the selection box remained.
12408 2001-08-25  Cyrille Chepelov  <chepelov@calixo.net>
12410         * Objects/custom/shape_info.c: added missing #include <xmlmemory.h>
12412 2001-08-19  Cyrille Chepelov  <chepelov@calixo.net>
12414         * configure.in:
12415         * sheets/Makefile.am: prepared the terrain for the Version of
12416         xml-i18n-tools Which Comes After 0.9 (and which will feature at
12417         last a sane behaviour with XML files). Some reasonible delay
12418         before enforcing that version *will* be given.
12420         * xml-i18n-merge.in.kg: included the current CVS xml-i18n-merge.in
12421         
12422         * lib/plug-ins.c: <xmlmemory.h> defines xmlFree(), otherwise it
12423         becomes a nonexistent symbol.
12424         
12425 2001-08-18  Hans Breuer  <hans@breuer.org>
12427         * app/app_procs.c : made it compile without ENABLE_NLS
12429         * app/diap_callbacks.c : strcmp isn't guaranteed to work
12430         with NULL pointers
12432         * app/load_save.c :
12433         * lib/plug-ins.c : 
12434         * objects/custom/shape_info.c : avoid mixing allocators and dealocators. 
12435         It has to be :
12436                 xmlGetProp, ... -> xmlFree
12437                 malloc, strdup -> free
12438                 g_new, g_malloc, g_strdup - > g_free
12440         * app/win32print.c : some more error checking, still not
12441         working on Win9x
12443         * lib/charconv.c : get_local_charset is used even with !HAVE_UNICODE
12445         * lib/dia_xml.c : msvc still has no unistd.h
12447         * lib/dia_xml.c :
12448         * lib/sheets.c : temporary resolved libxml include brokeness
12450         * plug-ins/python/pydia-*.c : reflect Font and StdProp api
12451         changes. Compiles again, but doesn't do anything useful anymore.
12452         (see THE_PROP_TYPE_IS_INTEGRAL)
12454         * **/makefile.msc : updated to use LIBXML2
12456         * lib/libdia.def : reflect api changes
12458 2001-08-17  Cyrille Chepelov  <chepelov@calixo.net>
12460         * config.h.win32: added defines telling that gtk speaks UTF8.
12461         Hans, I believe this reflects what GTK on Win32 does.
12463         * app/app_procs.c: if GTK talks UTF8, we'll feed it UTF8 localised
12464         strings.        
12465         * lib/prop_inttypes.c: 
12466         * lib/prop_text.c:
12467         * lib/prop_widgets.c: fixed typos in the GTK_TALKS_UTF8_WE_DONT
12468         code path.
12469         
12470         * lib/plug-ins.c: (dia_register_plugins_in_dir): If there is a
12471         trailing // (or whatever (G_DIR_SEPARATOR * 2) is), a recursive
12472         search for plug-ins is done.
12473         * app/Makefile.am: made app/run_dia.sh use the // capability. No
12474         need to update this anymore if we get a new plug-in library (or
12475         remove one).
12477         * lib/dia_xml.c: #include <unistd.h> was missing.
12478         
12479         * lib/properties.h: 
12480         * lib/proplist.c: (pdtpp_defaults): Added a new flag,
12481         PROP_FLAG_NO_DEFAULTS. Will be used in the "automatic defaults"
12482         support.        
12484 2001-08-16  Cyrille Chepelov  <chepelov@calixo.net>
12486         * sheets/civil.sheet: removed duplicate "Danish" entries.
12488         * autogen.sh:
12489         * configure.in: 
12490         * .cvsignore:
12491         * sheets/Makefile.am: 
12492         * po/POTFILES.in:
12493         * Makefile.am: applied the xml-i18n-tools README's instructions.
12495         * po/(da de fr hu nl nn no sl).po: merged the translations from
12496         the sheet files into the .po files. I hope I haven't mixed
12497         languages...
12498         * sheets/*.sheet (REMOVED):
12499         * sheets/*.sheet.in (NEW): moved the sheet files sans
12500         translations into .sheet.in files. 
12501         
12502         * sheets/xml-i18n-unicodify: (NEW) included from xml-i18n-tools,
12503         because we don't yet want to force all translators to work using
12504         UTF-8 editors. We'll want to do that sometime (sooner rather than
12505         later). Okay, I sing a slightly different tune in po/ChangeLog...
12507         * dia.desktop (REMOVED):
12508         * dia.desktop.in (NEW): used also the x18t infrastructure for
12509         this too.
12511         * xml-i18n-update.in.kg (NEW): This one will stay in CVS until an
12512         "official" version of x18t with support for .sheet files is available.
12513         * xml-i18n-merge.in.kg (NEW): This one will stay in CVS until an
12514         "official" version of x18t which doesn't corrupt UTF-8 data in XML
12515         is available.
12516         
12517         ** yes, we are now using xml-i18n-tools to manage the sheet
12518         translations. For the Win32 build, Nemo stores snapshots of
12519         translated strings next to the CVS snapshots. **
12521         * sheets/checktrans.py: suddenly, some sheets have lots of
12522         translations (objects which existed before sheets, mostly).
12523         Adapted the formatting.
12525         * po/README (REMOVED): this is obsolete ! It was ignored, anyway.
12527         * app/display.[ch]: (ddisplay_autoscroll), (ddisplay_scroll):
12528         * app/modify_tool.[ch]: (modify_motion): A (modified) patch from
12529         <robert.young@dsto.defence.gov.au>, to fix #59090.
12531         * app/display.c: (ddisplay_scroll): While at it, added some
12532         margin, so that autoscrolling can happen within a margin outside
12533         the diagram's extents.
12535         * app/tool.[ch]: 
12536         * app/interface.c:
12537         * app/disp_callbacks.c: Robert "forced" me to go when I usually
12538         don't, namely the app/ directory. So while I was there, I
12539         scratched a long-time itch. If no object has focus, pressing the
12540         space bar will select back the tool which was selected before the 
12541         current one (I find this especially useful with "reset after create" !)
12542         
12543         * lib/proplist.c: (prop_list_from_single): Renamed
12544         prop_list_singleton() to avoid confusion with the Singleton
12545         pattern (which it definitely is not).
12546         
12547         * lib/propobject.c: (object_prop_by_name_type),
12548         (object_prop_by_name): The "flags" parameter was not necessary.
12549         These don't return synthetic properties, but properties built from
12550         a real property description list; therefore, we don't call
12551         make_new_prop() but use the existing property descriptor, which
12552         has perfectly valid (and meaningful) flags.
12554         * lib/proplist.c: (pdtpp_synthetic), (pdtpp_from_object): These
12555         new predicates better reflect the reason why properties exist when
12556         they're created by make_new_prop() or object_prop_by_name().    
12558         * lib/propobject.c: (object_prop_by_name_type), (object_prop_by_name):
12559         * lib/prop_basic.c: (make_new_prop): used the new reasons instead
12560         of pdtpp_true().
12562         * lib/properties.h: reflects all the above changes.
12564         * objects/SADT/arrow.c:
12565         * objects/SADT/annotation.c:
12566         * sheets/SADT.sheet: minor renamings to better match FIPS 183's
12567         IDEF0 terminology.
12568         
12569 2001-08-15  Cyrille Chepelov  <chepelov@calixo.net>
12571         * lib/properties.h:
12572         * lib/proplist.c: (prop_list_singleton):
12573         * lib/propobject.c: (object_prop_by_name_type), (object_prop_by_name):
12574         Added these, to simplify interactions of plug-ins with the StdProp
12575         core.
12577         * lib/Makefile.am:
12578         * lib/dia_xml.h:
12579         * lib/dia_xml_libxml.h (NEW): 
12580         * app/load_save.c:
12581         * lib/dia_xml.c:
12582         * lib/plug-ins.c:
12583         * lib/sheet.c:
12584         * objects/custom/shape_info.c: A few prototypes were causing
12585         #include hell, because we generally attempt to not pull the whole
12586         libxml header set when we include dia_xml.h. Moved those
12587         prototypes away for the rare cases they're necessary.
12588         
12589 2001-08-15  Hans Breuer  <hans@breuer.org>
12591         * lib/font.c : made LARS_TRACE_MESSAGES Standard C conform
12593         * lib/libdia.def : 
12594         * lib/makefile.msc : updated
12596         * lib/prop_basic.c : __FUNCTION__ is a gcc extension. Please
12597         use G_GNUC_FUNCTION instead.
12599         * lib/prop_inttypes.c : include <stdlib.h> for strtol()
12601         * objects/sadt/annotation.c : disable TEMPORARY_EVENT_TEST for
12602         msvc instead of cleaning missing includes
12604         * plug-ins/wmf/wmf.cpp :
12605         * plug-ins/wmf/wmf_gdi.h : fixed for Font to DiaFont renaming
12607 2001-08-15  Cyrille Chepelov <chepelov@calixo.net>
12609         * app/app_procs.c:
12610         * app/load_save.c:
12611         * lib/dia_xml.c:
12612         * lib/plug-ins.c:
12613         * lib/sheet.c:
12614         * objects/custom/shape_info.c:
12615         * plug-ins/shape/shape-export.c:
12616         * plug-ins/svg/render_svg.c: used the libxml1/libxml2
12617         compatibility macros as taught by http://xmlsoft.org/upgrade.html;
12618         removed xmlKeepBlanksDefault(0) in favour for proper
12619         xmlIsBlankNode() testing. Lots of other fixups to use the
12620         "libxml1.5" (libxml2 parser embedded in recent libxml1), and to
12621         make libxml1 output correct files.
12623         * configure.in: use libxml2 (>= 2.3.9) if it's found, or
12624         libxml1 (>= 1.8.14). Exactly one of these must be installed (devel
12625         packages). If both devel packages are found, the build will stop 
12626         (Fredrik: please add a Build-Conflicts: on libxml2-dev for the moment) 
12628         * lib/bezier_conn.c: (bezierconn_init): Lars, you forgot to
12629         allocate the first handle :-)
12630         
12631         * lib/object.c: (object_init): <gratuitous>g_new() used instead of
12632         a cast and a sizeof.</gratuitous>
12634         * objects/custom/custom_object.c: (custom_copy): don't call
12635         text_get_attrbutes if the shape has no text...
12636         (custom_update_data): The info->resize_with_text code was a bit
12637         directive; basically, the shape's bounding box was forced to be 
12638         proportional to the text's bounding box.... This fixes #57187.
12639         
12640         * objects/custom/shape_info.c: (load_shape_info): Set an obvious
12641         default for info->aspect_ratio; unobfuscated a line about
12642         info->resize_with_text;
12643         
12644 2001-08-15  Cyrille Chepelov <chepelov@calixo.net>
12646         * lib/properties.h: added comments next to the PROP_TYPEs to tell
12647         which C Property subclass to use.
12648         
12649         * plug-ins/dxf/dxf-import.c: (read_entity_line_dxf): Removed the
12650         cast-ridden form of setting properties in a list, in favour for
12651         the "local pointers" form. I'll take any better offer...
12653 2001-08-14  Cyrille Chepelov <chepelov@calixo.net>
12654         
12655         * lib/font.c: fprintf(...) --> fprintf(format...)
12657         * configure.in: added a disabled versioned test for glib.
12658         * lib/prop_geomtypes.c: (bezpointprop_load), (bezpointprop_save),
12659         (bezpointarrayprop_load), (bezpointarrayprop_save): replaced
12660         g_critical() with a simple g_error(). Proper fix is to implement
12661         that stuff. 
12663         * lib/properties.h: PROP_STD_TEXT is a PROP_TYPE_TEXT, not a
12664         PROP_TYPE_STRING.
12665         
12666         * lib/properties.h:     
12667         * lib/propdesc.c: (prop_desc_list_calculate_quarks):
12668         * lib/proplist.c: (find_prop_by_name_and_type):
12669         * lib/prop_basic.c: (make_new_prop), (initialize_property):
12670         * lib/propoffsets.c: (do_set_props_from_offsets),
12671         (do_get_props_from_offsets), (prop_offset_list_calculate_quarks):
12672         Added a type_quark member to PropDescription, Property and
12673         PropOffset. Used it to implement a safety in
12674         do_[sg]et_props_from_offsets().
12675                 
12676         * objects/flowchart/diamond.c: the diamond's text was not saved,
12677         and thus not even copied (c&p).
12678         * objects/standard/textobj.c: ditto.
12680         Most of the above changes thanks to Robert Young's testing. Thanks !
12681         
12682 2001-08-14  Kjartan Maraas  <kmaraas@gnome.org>
12684         * sheets/*.sheet: Added some Norwegian translations (both nynorsk
12685         and bokmÃ¥l).
12686         
12687 2001-08-13  Cyrille Chepelov  <chepelov@calixo.net>
12689         * lib/proplist.c (prop_list_from_descs): added a call to
12690         prop_desc_list_calculate_quarks(). (find_prop_by_name_and_type):
12691         too embarrassing to tell.
12692         
12693         * lib/propdesc.c (prop_desc_list_calculate_quarks): converted the
12694         while loop to a for loop, for symmetry with
12695         prop_offset_list_calculate_quarks().
12697         * lib/geometry.h: new inline function, rectangle_equals.
12699         * lib/diagramdata.[ch]: refactored a bit the diagram extents
12700         computation logic, and changed it to always be the union of the
12701         visible layers' extents. This should close #58882 (Debian
12702         #107167), and fixes #55498.
12704         * app/display.c: made the initial visible box more coherent with
12705         the diagram being loaded's extents.
12707         * app/prop_attr.c: don't set the font (from offset) if font_data
12708         is NULL. Two brainos in colorprop_load() and fontprop_load().
12709         
12710 2001-08-13  Cyrille Chepelov  <chepelov@calixo.net>
12712         * lib/properties.[ch]: split in a lot of pieces: 
12714         * lib/prop_*.[ch] (NEW): all property types are now first-class
12715         objects, inheriting from the original abstract Property type.
12716         * lib/propdesc.c (NEW): property description handling routines
12717         * lib/propoffsets.c (NEW): property offset handling routines
12718         * lib/proplist.c (NEW): property list handling routines
12719         * lib/propobject.c (NEW): property list <-> object routines
12720         * lib/propregistry.c (NEW): holds the PropertyType-->PropertyOps
12721         relations.
12722         * lib/propinternals.h: prototypes for stuff not usually needed by 
12723         the outside of StdProps.
12724         * lib/Makefile.am: a lot of new files have been added...
12726         THE ABOVE CHANGES ARE MAJOR CHANGES AND AFFECT THE WHOLE TREE, IN
12727         BOTH INTERFACES AND RUN-TIME STABILITY.
12729         * lib/plug-ins.h: bumped up DIA_PLUGIN_API_VERSION
12730         
12731         * lib/object.h: removed the incestuous relationship with
12732         properties.h' contents. Now a Property list is a GPtrArray -->
12733         object interface change !
12735         * app/app_procs.c/app_init(): removed a disabled call to a
12736         non-existent routine. Added a call to stdprops_init().
12737         
12738         * objects/Makefile.am: disabled the construction of EML. I'm not
12739         touching these until a certain issue is solved (or this module
12740         removed).
12741         * app/group.c:  
12742         * objects/**/*.c except objects/EML/*: adapted all stdprop-using 
12743         objects to the interface changes.
12744         
12745         * app/disp_callbacks.c: killed a warning.
12746         * lib/dia_xml.[ch]: sprinkled "const" modifiers. 
12748         * app/commands.c: 
12749         The macros PROP_VALUE_* have disappeared. Adapted to using the new 
12750         interface.
12752         * plug-ins/dxf/dxf-import.c: 
12753         * plug-ins/xfig/xfig-import.c: 
12754         PROP_VALUE_* macros have been removed. Converted to the new API.
12756         * plug-ins/python/**/*: I gave up converting this; I can't
12757         compile --with-python (problems with object.h defined both by us
12758         and by Python). I'll gladly help whomever cares to fix it !
12759         (or, fix it myself if someone tells me how to compile it).
12760         
12761         * configure.in: added the UNICODE-related progress defines.
12762                 
12763         * configure.in:
12764         * lib/geometry.h: On Solaris and perhaps other systems, finite()
12765         is defined in ieeefp.h rather than in math.h. Patch from Andrew
12766         Halper <ashalper@acm.org> with further modifications, isinf() is
12767         provided by -lsunmath (sunmath.h).
12768         
12769         * lib/font.c: conditionally disabled Lars' debugging messages.
12770         Bracketed the definition of DiaFontFamily with #ifdef HAVE_FREETYPE.
12771         
12772 2001-08-11  Lars Clausen  <lrclause@cs.uiuc.edu>
12774         * lib/bezier_conn.h: 
12775         * objects/standard/bezier.c (bezierline_create): 
12776         * lib/bezier_conn.c (bezierconn_init): 
12777         Preparations for use of userdata for bezier lines.
12778         
12779         * objects/standard/polygon.c: 
12780         * objects/standard/create.h:
12781         * lib/polyshape.c:
12782         * lib/polyshape.h:
12783         * plug-ins/xfig/xfig-import.c:
12784         Use of user_data for polygon as well, including adding
12785         polyshape_set_points.  Include file for non-interactive 
12786         creation of standard objects, objects/standard/create.h
12788 2001-08-10  Lars Clausen  <lrclause@cs.uiuc.edu>
12790         * app/render_gdk.c: 
12791         * app/render_gdk.h: 
12792         * lib/font.c:
12793         * lib/font.h:
12794         * lib/widgets.c:
12795         More preliminary freetype support.  Not at all functional, crashes
12796         when rendering.
12798         * lib/poly_conn.h: 
12799         * lib/poly_conn.c: 
12800         * objects/standard/polyline.c: 
12801         Support for creating polyline objects with more than two points.
12802         This includes an extra function and a prototype change in the
12803         poly_conn lib object.
12805         * lib/object.c (object_copy): Fixed memory leak of handles and
12806         connections.
12808 2001-08-08  Abel Cheung  <maddog@linux.org.hk>
12810         * dia.desktop: added traditional Chinese strings
12812 2001-08-04  Cyrille Chepelov  <chepelov@calixo.net>
12814         * NEWS: updated to reflect build-time dependencies.
12816         * lib/properties.[ch]: wrote get_prop_descriptions() as a wrapper
12817         around obj->ops->describe_props(obj). Quarks are none of an
12818         object's business in the general case... 
12819         * lib/text.c: Added an apply_textattr_properties() function to
12820         factor out some common code related to applying a dialog's text
12821         attribute properties to a (Text *) which wasn't edited there. 
12822         Ditto for textstr, for the string part of an objet.
12824         * objects/GRAFCET/action.c:
12825         * objects/SADT/annotation.c:
12826         * objects/SADT/box.c: used apply_textattr_properties().
12827         
12828         * objects/UML/actor.c: 
12829         * objects/UML/branch.c:
12830         * objects/UML/component.c:
12831         * objects/UML/constraint.c:
12832         * objects/UML/small_package.c:
12833         * objects/UML/state.c:
12834         * objects/UML/usecase.c:
12835         * objects/UML/large_package.c:
12836         * objects/UML/note.c:
12837         * objects/UML/node.c:
12838         * objects/UML/message.c:
12839         * objects/UML/classicon.c:
12840         * objects/UML/object.c:
12841         * objects/UML/realizes.c:
12842         * objects/UML/dependency.c:
12843         * objects/UML/implements.c:
12844         slim-fast(tm) cure using more StdProps, and UTF-8 audit.
12845         (most objects were already using StdProps to some extent ; this
12846         systematises usage and removes some dead wood). 
12847         
12848         * objects/UML/stereotype.[ch]: use UTF-8 internally. const police work.
12849         * objects/UML/uml.[ch]: audited for UTF-8.
12851         * objects/UML/class.c: the UML_STEREOTYPE_* strings defined by
12852         uml.h can be in UTF-8... this code isn't yet ready. Duplicating a
12853         private (ISO-8859-1) definition.
12854         
12855         * lib/charconv.c: Added a warning if we didn't run
12856         nl_langinfo(CODESET) but rely instead on a hardcoded default.
12857         
12858 2001-08-02  Cyrille Chepelov  <chepelov@calixo.net>
12860         * lib/diamenu.h:
12861         * app/disp_callbacks.c: added a way for an object to cause an
12862         already realised menu to be destroyed (for instance if it changes
12863         too much).
12865         * objects/custom/custom_object.c: used the above to fix #55073.
12867 2001-08-01  Lars Clausen  <lrclause@cs.uiuc.edu>
12869         * configure.in: Remove 2.50 prereq.
12871 2001-07-30  Cyrille Chepelov  <chepelov@calixo.net>
12873         * po-checktrans.py: under some circumstances, there was one column 
12874         more than what was supposed to be, thus breaking the formatting.
12875         
12876 2001-07-29  Cyrille Chepelov  <chepelov@calixo.net>
12877         
12878         * objects/SADT/annotation.c: forgot to add a #include <stdlib.h>
12880         * NEWS: updated with new stuff since 0.88
12882         * shapes/network/antenna.shape: the text was misplaced ; fixed.
12884         * shapes/network/firewall.(shape|xpm) (NEW): a brick-wall looking
12885         firewall router (upon request from Cyril Lacoux
12886         <clacoux@easter-eggs.com>)
12888         * configure.in (didn't rename to configure.ac): autoconf 2.50
12889         constructs were used ; added an AC_PREREQ call to guard against
12890         older autoconfs.
12891         
12892 2001-07-27  Cyrille Chepelov  <chepelov@calixo.net>
12894         * lib/properties.c: minor clean-ups with the event delivery code.
12896         * EML/instantiation.c: brought this object back from stone and ice
12897         age.    
12899         * app/diaconv.c(NEW): added a command-line conversion tool. Still
12900         lacks a man page and correctness. In fact, it doesn't work. Please
12901         see #58196 if you want to finish it.
12902         
12903         * lib/message.[ch]: redefined things a little so that a different
12904         message_internal routine could be passed.
12905         applications can use that to fit themselves to the display model.
12907 2001-07-26  Cyrille Chepelov  <chepelov@calixo.net>
12909         * objects/SADT/box.c: 
12910         * objects/GRAFCET/action.c: spelling in property descriptors (name
12911         field...)
12912         * objects/SADT/annotation.c: ditto, plus a temporary test of the
12913         event delivery code (try to click on the "click me !" button !).
12915         * app/group.c: 
12916         * lib/properties.[ch]: improved (fixed) support for group event 
12917         handlers. Fixed various things from yesterday's code to make it
12918         not too obviously crash.
12920 2001-07-26  Cyrille Chepelov  <chepelov@calixo.net>
12922         * app/group.c: added delivery of events to the first member of the
12923         group which is able to process it.
12925         * lib/properties.c(prop_desc_lists_intersection): properties
12926         don't match if they don't have identical event handler.
12927         * lib/properties.h: simplified the PropEventHandler signature.
12929         Event delivery code is still untested so far, but should be
12930         lurking harmless.
12931         
12932 2001-07-25  Cyrille Chepelov  <chepelov@calixo.net>
12934         * lib/properties.[ch]: Added (untested !) property event handler
12935         capability. Added a new PROP_TYPE_BUTTON, for the purpose of
12936         generating such events. This stuff compiles, and should lurk
12937         around silently as long as you don't declare property descriptors
12938         with events (AFAICT).
12939         In object_create_props_dialog() and friends:
12940         attached a single structure with lots of data instead of lots of
12941         little attachments of data to the dialog widget.
12942         
12943         * lib/object.h: fixed mild typedef breakage introduced by the above.
12945 2001-07-17  Lars Clausen  <lrclause@cs.uiuc.edu>
12947         * lots of files: Changed Font to DiaFont
12948         * */Makefile.am: Added FREETYPE_LIBS
12949         * plug-ins/xfig/xfig-export.c: Improved (working:) color handling
12951 2001-07-13  Kjartan Maraas  <kmaraas@gnome.org>
12953         * configure.in: Added "nn" to ALL_LINGUAS.
12954         
12955 2001-07-09  Alex Larsson  <alexl@redhat.com>
12957         * app/disp_callbacks.c:
12958         Add gdk_im_ready() calls to XIM code.
12960 2001-07-04  Cyrille Chepelov  <chepelov@calixo.net>
12962         * lib/properties.[ch]: splitted prop_get_widget() into
12963         prop_get_widget() (gives a widget but doesn't fill it) and 
12964         prop_reset_widget() (fills an existing widget with a property's value).
12966         * lib/widgets.[ch]: const enforcement police work.
12968         * shapes/network/antenna.shape: added a connection point at top,
12969         upon request from <Emmanuel.Quemener@cri.ens-cachan.fr>.
12970         
12971 2001-06-25  Cyrille Chepelov  <chepelov@calixo.net>
12973         * intl/*: tested with gettext-0.10.38
12974         * configure.in: moved a macro call around (AM_PROG_CC) to keep
12975         some of autogen.sh from complaining.
12976         * INSTALL: added a warning against gettext older than at least 0.10.36
12977         
12978 2001-06-19  Cyrille Chepelov  <chepelov@calixo.net>
12980         * configure.in: added explicit calls to AM_LANGINFO_CODESET and
12981         AM_ICONV (both provided by gettext)
12983 2001-06-14  Cyrille Chepelov  <chepelov@calixo.net>
12985         * lib/charconv.c: corrected the degraded mode for when
12986         !HAVE_UNICODE. Thanks to Ben A. Hetland for reporting this.     
12988         * objects/chronoline/chronoline_events.c: UTF8 compliance.
12989         
12990 2001-06-13  Cyrille Chepelov  <chepelov@calixo.net>
12992         * lib/properties.[ch]: convenience macros around PROP_NOTEBOOKS ;
12993         new "eye candy" properties: PROP_MULTICOL_(BEGIN|PAGE|END) to lay 
12994         widgets on several columns, PROP_FRAME_(BEGIN|END) to put widgets
12995         into a frame box.
12997         * objects/chronogram/chronoline.c:
12998         * objects/chronogram/chronoref.c: took advantage of the above to
12999         make nicer looking dialogs.
13001         * lib/charconv.[ch]: added charconv_unichar_to_utf8 ("inspired"
13002         from libunicode's internals).
13003         * lib/message.c: convert strings to local encoding prior to
13004         display (UNICODE_WORK_IN_PROGRESS)
13005         * lib/properties.[ch]: convert strings to local encoding prior to
13006         display, and back to UTF8 (UNICODE_WORK_IN_PROGRESS).
13007         * lib/render.h: tagged strings as (utfchar *) instead of (char *)
13008         * lib/stringprerenderer.[ch]: ditto
13010         (lib/text.c has been audited for UTF8, but the size of the changes
13011         make them inappropriate for commit before 0.89)
13012         
13013 2001-06-12  Cyrille Chepelov  <chepelov@calixo.net>
13015         * objects/boolequation.h (<save|load>_boolequation): made the 
13016         prototypes for match the .c file.
13017         
13018         * samples/grafcet.dia: minor non-conformance with IEC-848
13019         fixed (in the transition from step 100 to step 101).
13021         * lib/properties.[ch]: added a flag (PROP_FLAG_DONT_MERGE) to
13022         disallow editing of properties if the object is part of a group.
13024         * objects/chronogram/chronoline.c: 
13025         * objects/SADT/annotation.c:
13026         * objects/SADT/box.c:
13027         * objects/GRAFCET/step.c:
13028         * objects/GRAFCET/transition.c:
13029         * objects/GRAFCET/condition.c: took advantage of PROP_FLAG_DONT_MERGE.
13030         
13031 2001-06-12  Hans Breuer  <hans@breuer.org>
13033         * lib/libdia.def : removed lazyprop exports
13034         * lib/makefile.msc : removed lazyprop.obj
13036         * objects/custom/custom_objects.c : use HAVE_UNISTD_H
13037         and avoid crashes by always creating a custom->text,
13038         when (custom->info->has_text) 
13040         * objects/makefile.msc : removed sybase from build
13042         * objects/GRAFCET/boolequation.c (<save|load>_boolequation) :
13043         ObjectNode is a pointer already, which is what we want
13044         instead of a pointer pointer.
13046         * plug-ins/wmf/wmf.cpp : fixed problem with arc scaling
13047         and implemented working export for images
13049         * shapes/network/zip-disk.shape : added connection points 
13051 2001-06-12  Cyrille Chepelov  <chepelov@calixo.net>
13053         * objects/SADT/box.c: removed lazyprops for standard props.
13054         * objects/chronograms/chronoline.c: removed lazyprops (phew !)
13055         * objects/chronograms/chronoref.c: ditto 
13057         * lib/Makefile.am:
13058         * lib/dummy_dep.h:
13059         * lib/connpoint_line.c:
13060         * lib/lazyprops.[ch] (DELETED): good riddance (closes #55895)
13061         * lib/properties.[ch]: new property types:
13062             - PROP_TYPE_STATIC: static text to be displayed in the dialog.
13063             - PROP_TYPE_MULTISTRING: same as string, but renders as a
13064             multi-line entry box.
13065             - PROP_TYPE_NOTEBOOK_BEGIN,_PAGE,_END: stuff to make dialogs
13066             in a tabbed-notebook style (this is a bit complicated to use; 
13067             see objects/chronograms/chronoline.c for an example).
13068                
13069 2001-06-11  Cyrille Chepelov  <chepelov@calixo.net>
13071         * objects/GRAFCET/boolequation.[ch]: zap lazyprops. Add standard props.
13072         * objects/GRAFCET/step.c: ditto.
13073         * objects/GRAFCET/vector.c: ditto.
13074         * objects/SADT/annotation.c: ditto.
13075         * objects/SADT/arrow.c: ditto (plus bounding box fixes).
13076         
13077         * lib/properties.[ch]: two more non-visible types
13078         (PROP_TYPE_ENUMARRAY and PROP_TYPE_INTARRAY).
13080         * lib/neworthconn.[ch]:
13081         * lib/orthconn.[ch]: added support for manipulation through
13082         standard properties.
13084         * configure.in: removed -fomit-frame-pointer, this seems to
13085         confuse recent gcc/gdb's, maybe we'll get better stack dumps in 
13086         bugzilla.
13088         * charconv.[ch]: more functions from unicode.h.
13089         get_local_charset() wasn't working properly, fixed now.
13090         A subtle crashbug in charconv_utf8_to_local8() nailed (thanks to 
13091         ElectricFence !)
13092         
13093         * objects/EML/process.h: pulled the bits of lazyprops.h it uses.
13094         * lib/lazyprops.[ch]: put a big fat warning in.
13096         * app/render_eps.c: one line mysteriously went away, causing a
13097         variable to be used uninitialised....
13099 2001-06-10  Cyrille Chepelov  <chepelov@calixo.net>
13101         * app/app_procs.c: commented out the call to
13102         bind_textdomain_codeset(): it's premature.
13103         
13104         * lib/connpoint_line.c: a NULL point can be given to
13105         connpointline_adjust_count(), in case there's not really a clicked
13106         point.
13108         * lib/textattr.h(NEW): moved the definition of TextAttributes to sort
13109         #include order troubles. #included by lib/text.h, so there is no 
13110         impact outside lib/.
13111         * lib/properties.[ch]: added support for CONNPOINT_LINE and
13112         (nonvisible) TEXT properties.
13114         * objects/GRAFCET/action.c:
13115         * objects/GRAFCET/vergent.c: dropped lazyprops for standard
13116         properties.
13117         
13118         * objects/UML/lifeline.c: pruned some legacy stuff (now pure
13119         standard properties code). Grafted a dynamic number of connection
13120         points (heavily inspired from what Vergent does). This is the real
13121         fix for #55863.
13123         * objects/GRAFCET/boolequation.[ch]: audited for UTF-8
13125         * lib/fonts.c: some hardening (mostly g_assert())
13126 2001-06-09  Cyrille Chepelov  <chepelov@calixo.net>
13128         * app/app_procs.c (app_init): added a call to
13129         bind_textdomain_codeset() so that gettext gives us UTF-8 strings
13130         (UNICODE_WORK_IN_PROGRESS).
13131         
13132 2001-06-08  Cyrille Chepelov  <chepelov@calixo.net>
13134         * plug-ins/xfig/xfig-import.c: corrected a typo (fixes #55910)
13136         * objects/UML/lifeline.c: patch from Marc <mrw@siemens.ch> 
13137         (fixes #55863) : some clean-ups in the handling of connection
13138         points. Now the total number of connection points is just a
13139         #define (the proper solution is to retrofit the GRAFCET Vergent's
13140         dynamic behaviour wrt connection points).
13141         
13142 2001-06-07  Cyrille Chepelov  <chepelov@calixo.net>
13144         * app/app_procs.c (app_init): added a call to unicode_init() (only
13145         if HAVE_UNICODE, of course).
13147         * lib/charconv.c: simplified the code which detects the local
13148         charset. No need to use <langinfo.h>, libunicode already takes the
13149         burden of figuring that out. Also, if local charset is utf8, no
13150         conversion will take place.
13151         Exposed a way to get the current charset (similar to
13152         unicode_get_charset() but actually working, hopefully).
13154         * lib/charconv.h: Added a partial non-UTF8 implementation of
13155         unicode.h if !HAVE_UNICODE (actually, all the time for the
13156         moment). The UTF8 implementation is just macros on libunicode (use
13157         the functions prefixed by uni_, as defined by charconv.h, not
13158         unicode_, unless that code is to be compiled only if HAVE_UNICODE).
13159         From now on, all strings which don't *need* to be ASCII should be
13160         utfchar *, not gchar *. Just include charconv.h, let it sort out
13161         the details (such as: "is libunicode available and enabled?") 
13163         * lib/ps-utf8.c: fixed a few name clashes. Used the charconv.h
13164         "API" instead of directly libunicode. Removed the now unnecessary
13165         speculative clustering of characters in encoding pages.
13167         * app/render_eps.c: made the local8->utf8 conversions dependent of
13168         !UNICODE_WORK_IN_PROGRESS (this is not where the local8/utf8
13169         boundary will be when this WIP is done).
13171         * lib/dia_xml.c (data_point): fixed a format string typo.
13173         * po/POTFILES.in: added all C files from lib/ 
13174         
13175 2001-06-06  Cyrille Chepelov  <chepelov@calixo.net>
13177         * app/disp_callbacks.c: make sure the objects' connected objects
13178         are updated when the objects' size changes after a keypress event
13179         (fixes #51222)
13181         * configure.in: added a big warning about the possible future
13182         non-optionality of --enable-unicode. 
13184         * TODO: removed entries which look like done ; added a few ones
13185         (Bugzilla "enhancement" bugs may be a better way to keep track of
13186         this)
13187         
13188 2001-06-05  Cyrille Chepelov  <chepelov@calixo.net>
13190         * objects/UML/message.c: got rid of #55564 and of message_copy()
13191         by using more standard properties (are the message_state_*()
13192         functions still necessary ?)
13194 2001-06-04  Fredrik Hallenberg  <hallon@lysator.liu.se>
13196         * lib/plug-ins.c: 
13197         * objecs/custom/shape_info.c:
13198         * plug-ins/shape/shape-export.c:
13199         * plug-ins/svg/render_svg.c: patch from obecian <obecian@openbsd.org>
13200         use xmlChar instead of obsolete CHAR.
13202 2001-06-03  Hans Breuer  <hans@breuer.org>
13204         * app/diagram.h : added prototype for diagram_update_menu_sensitivity()
13205         * app/commands.c : give the right number of parameters
13206         to diagram_update_menu_sensitivity ()
13208         * app/preferences.c : do proper initialization for DiaPrefsData:
13209         render_bounding_boxes. It would be a real surprise if 'hidden'
13210         properties would have ever worked before.
13211         Don't try to access the widgets of hidden property, it does not
13212         have one.
13214         * lib/diagramdata.h : make render_bounding_boxes a DIAVAR, cause
13215         it is defined in libdia, but initialized from dia app, which 
13216         otherwise gave nice start-up crashes.
13218         * lib/diagramdata.c : initialize the color for rendering bounding 
13219         boxes in the Dia range (0 .. 1.0)
13221         * lib/libdia.def : added *_bbox functions for export
13223         * lib/makefile.msc : added new sources
13225         * objects/custom/custom_object.c : use HAVE_UNISTD_H
13227 2001-05-30  Cyrille Chepelov  <chepelov@calixo.net>
13229         * app/interface.c:
13230         * app/menus.c: patch from Hubert Figuiere <hfiguiere@teaser.fr> ;
13231         removes a translation of menus (in a place where there shouldn't
13232         have been), which gets rid of a waterfall of warnings if LANG!=C,
13233         and a fix to #55047.
13235 2001-05-29  Steffen Macke     <sdteffen@yahoo.com>
13237         * lib/charconv.c : added #include <errno.h>
13239         * app/dia_embedd.c : updated menus_get_item_from_path usage
13240         
13241 2001-05-27  Cyrille Chepelov  <chepelov@calixo.net>
13243         * lib/ps-utf8.c: Strings in Symbol fonts were incorrectly rendered.
13244         Added a special case for Symbol strings, so that they're not
13245         re-encoded using the LN encoding (we use the bare Adobe encoding
13246         instead).
13248         * objects/custom/custom_object.c: Now that #52912 is fixed,
13249         I could remove the ugly hack I wrote to squash the shape bounding box
13250         problem shown by Ben A. Hetland a few months ago, and fix it
13251         properly this time.
13252         
13253         * lib/text.c: enlarged a little the bounding box to account for
13254         the cursor in rightmost position.
13255         
13256         * lib/diagramdata.c: draw bounding boxes only if the relevant
13257         variable is set (as before), but also only if the rendere is
13258         interactive (ie, don't bother rendering bounding boxes on 
13259         Postscript...)
13260         Made the bounding box's line width a fixed value, 0.01
13261         
13262         * lib/boundingbox.c: fixed the "pointy corners" code for polylines
13263         and assymmetric control beziers. Implemented ellipse_bbox().
13264         
13265         * Makefile.am: incantations to get po/dia.pot build, as suggested
13266         by Hubert in #55075.
13267         
13268         * shapes/network/computer.shape: typo fixed.
13269         * shapes/network/antenna.shape: fixed #55074 (antenna is now
13270         properly translucent, except for its base where it makes sense. It
13271         doesn't look that ugly anymore if transparent mode is on).
13273         * configure.in: --enable-unicode is now the default. This
13274         still currently affects only printing.
13275         
13276 2001-05-26  Cyrille Chepelov  <chepelov@calixo.net>
13278         * lib/boundingbox.c: fixed a minor logic error wrt closed shapes. 
13279         The overshoot code is buggy, and the bounding boxes for polyshapes
13280         looks a bit cheezy. To be done ASAP.
13282 2001-05-26  James Henstridge  <james@daa.com.au>
13284         * configure.in: call AM_PATH_PYTHON rather than AM_PATH_PYTHON_JH.
13285         This should clear up some of the build problems people have been
13286         having.
13288         * acinclude.m4: call AM_PATH_PYTHON_JH AM_PATH_PYTHON
13290 2001-05-26  Cyrille Chepelov  <chepelov@calixo.net>
13292         * lib/Makefile.am:
13293         * lib/boundingbox.[ch] (NEW): (some) refactoring of the bounding
13294         box code (beginning with lines, polylines and polybeziers), into a
13295         more generic facility. While at it, a better shot at correctly
13296         computing the bounding box of a Bezieroid (should take care of
13297         #53424, #51233 and of course is part 1 of #52912).
13299         * lib/diagramdata.c: turned the RENDER_BOUNDING_BOXES conditional
13300         into a hidden preference (set render_bounding_boxes in diarc).
13301         * app/preferences.[ch]: Added support for hidden preferences.
13303         * lib/geometry.[ch]: sprinkled with "const" modifiers.
13304         
13305         * lib/bezier_conn.[ch]:
13306         * lib/beziershape.[ch]:
13307         * lib/connection.[ch]:
13308         * lib/element.[ch]:
13309         * lib/poly_conn.[ch]:
13310         * lib/orth_conn.[ch]:
13311         * lib/neworth_conn.[ch]:
13312         * lib/polyshape.[ch]: adapted to take advantage of
13313         boundingbox.[ch] instead of relying on private (duplicate) code.
13315         * object/FS/flow.c:
13316         * object/GRAFCET/action.c:
13317         * objects/GRAFCET/condition.c:
13318         * objects/GRAFCET/vergent.c:
13319         * objects/GRAFCET/vector.c:
13320         * objects/SADT/annotation.c:
13321         * objects/SADT/arrow.c:
13322         * objects/ER/participation.c:
13323         * objects/UML/constraint.c:
13324         * objects/UML/implements.c:
13325         * objects/UML/lifeline.c:
13326         * objects/UML/message.c:
13327         * objects/UML/realizes.c:
13328         * objects/UML/generalization.c:
13329         * objects/UML/association.c:
13330         * objects/UML/dependency.c:
13331         * objects/FS/flow-ortho.c:
13332         * objects/network/bus.c:
13333         * objects/standard/arc.c:
13334         * objects/standard/bezier.c:
13335         * objects/standard/beziergon.c:
13336         * objects/standard/line.c:
13337         * objects/standard/polygon.c:
13338         * objects/standard/zigzagline.c:
13339         
13340         * objects/standard/polyline.c: Some *BBExtras structures changed
13341         names while moving to boundingbox.[ch]. A trivial mass-renaming.
13342         
13343 2001-05-20  Cyrille Chepelov  <chepelov@calixo.net>
13345         * app/disp_callbacks.c (ddisplay_canvas_events): Take into account
13346         wheel mouses for scrolling (from Patrick Sung <phsung@ualberta.ca>)
13348         * app/display.c (ddisplay_update_scrollbars): from Patrick's
13349         suggestion, remove the extra scrollable area (it was only visible
13350         to the scrollbars). This is experimental.
13351         
13352         * objects/custom/custom_object.c: If a shape's icon file doesn't 
13353         exist, warn and substitute a default icon, instead of crashing.
13354         (fixes #52913)
13355         
13356         * objects/network/network.c:
13357         * shapes/network/modularswitch.(shape|xpm) (NEW):
13358         * shapes/network/printer.(shape|xpm) (NEW):
13359         * shapes/network/genmonitor.(shape|xpm) (NEW):
13360         * shapes/network/computer.(shape|xpm) (NEW):
13361         * shapes/network/Makefile.am: four less objects, four more shapes.
13362         These were the last known RenderObjects. (phew !)
13364         * lib/Makefile.am:
13365         * lib/dummy_dep.h:
13366         * objects/sybase/Makefile.am: 
13367         * objects/network/Makefile.am: Removed the older Renderobjects
13368         from the build, and their infrastructure (not yet deleted,
13369         though).
13371         * shapes/network/sceadplug.shape:
13372         * shapes/network/antenna.shape:
13373         * shapes/network/modem.shape:
13374         * shapes/network/hub.shape:
13375         * shapes/network/rj45plug.shape:
13376         * shapes/sybase/client.shape:
13377         * shapes/sybase/dataserver.shape:
13378         * shapes/sybase/ltm.shape:
13379         * shapes/sybase/repserver.shape:
13380         * shapes/sybase/rsm.shape:
13381         * shapes/sybase/stableq.shape: Minor corrections (line widths were
13382         ten times too narrow).
13383         
13384 2001-05-19  Cyrille Chepelov  <chepelov@calixo.net>
13386         * objects/network/network.c:
13387         * shapes/network/sceadplug.(shape|xpm) (NEW):
13388         * shapes/network/antenna.(shape|xpm) (NEW):
13389         * shapes/network/modem.(shape|xpm) (NEW):
13390         * shapes/network/Makefile.am: four less objects, four more shapes.
13391         
13392         * lib/Makefile.am:
13393         * lib/diagramdata.c:
13394         * lib/render.h:
13395         * lib/string_prerenderer.[ch] (NEW):
13396         Add a new renderer primitive, predraw_string() (does nothing, to be
13397         used as a hook to optimise the character encodings if needed). 
13398         Added a string pre-renderer, which can be viewed as a filter
13399         renderer (to route draw_string() to predraw_string() and ignore
13400         the rest, in a first rendering pass)
13401         
13402         * app/render_eps.c: Took advantage of the above to make wholly
13403         optimised Postscript encoding page(s), even (especially) with 
13404         non-latin1 code (HAVE_UNICODE must be true).
13406         (#53512 in fact is wholly resolved).
13407         
13408 2001-05-18  Cyrille Chepelov  <chepelov@calixo.net>
13410         * lib/charconv.c: steps towards resolution of #53512 (inspired by
13411         Alexey Novodvorsky <aen@logic.ru>'s patch).
13413         * app/menus.c (dia_menu_signal_proxy): checked that the signal
13414         handler is not NULL before transferring control to it... (fixes #52836)
13416         * app/app_procs.c (app_init): removed non-constant initialiser
13417         (fixes #52950)
13419         * objects/custom/custom_object.c:
13420         * objects/custom/shape_info.[ch]:
13421         * objects/custom/test.xml: merged patch #53476 from Steven Hawkins 
13422         <skh@mathstar.com>. This add support for a <svg:text> shape
13423         element, and some related style properties (font, font height, 
13424         alignment)
13426         * doc/custom_shapes: a precision about the meaning of case in a
13427         SVG path (closes #52364)
13429         * lib/dummy_dep.h: fix for SGI IRIX 6.2 (#53053, reported and
13430         fixed by <drk@sgi.com>)
13431         
13432 2001-05-17  Cyrille Chepelov  <chepelov@calixo.net>
13434         * objects/network/network.c:
13435         * shapes/network/Makefile.am:
13436         * shapes/network/hub.(shape|xpm) (NEW):
13437         * shapes/network/flash.(shape|xpm) (NEW):
13438         * shapes/network/rj45plug.(shape|xpm) (NEW):
13439         More shapes, less renderobjects.
13441 2001-05-16  Cyrille Chepelov  <chepelov@calixo.net>
13442         
13443         * plug-ins/svg/render_svg.c: typo made exported ellipses
13444         corrupted (zero Y pseudo-radius).
13446         * objects/network/network.c:
13447         * objects/network/disc.c:
13448         * shapes/network/disc.(shape|xpm): Converted the first
13449         Renderobject into a shape. Normally, old diagrams should reload
13450         without problems (please check this against your diagrams). More
13451         flexibility should be gained that way. I intend to hunt and
13452         eradicate all renderobjects as I can commit cycles to that. 
13454         * objects/Makefile.am:
13455         * configure.in:
13456         * app/Makefile.am:
13457         * objects/sybase/sybase.c:
13458         * shapes/sybase/Makefile.am(NEW):
13459         * shapes/sybase/client.(xpm|shape) (NEW):
13460         * shapes/sybase/dataserver.(xpm|shape) (NEW):
13461         * shapes/sybase/ltm.(xpm|shape) (NEW):
13462         * shapes/sybase/repserver.(xpm|shape) (NEW):
13463         * shapes/sybase/rsm.(xpm|shape) (NEW):
13464         * shapes/sybase/stableq.(xpm|shape) (NEW): converted Sybase
13465         renderobjects into shapes. The Sybase objects are now not compiled
13466         anymore, and ready to be nuked if nobody objects in the next few weeks.
13467         
13468         * app/commands.c:
13469         * app/diagram.[ch]:
13470         * app/disp_callbacks.c:
13471         * app/display.[ch]:
13472         * app/interface.[ch]:
13473         * app/menus.[ch]:
13474         * app/modify_tool.c:
13475         * app/preferences.[ch]:
13476         * app/recent_files.c:
13477         * app/select.c: Added patch #52364 from Hubert Figuiere. This adds
13478         a menu bar reflecting the popup menu, to each display window. This
13479         is optional (changing the preference currently doesn't affect
13480         already opened windows; a few other rough edges to cut).
13482         * plug-ins/wpg/wpg.c:
13483         * plug-ins/xfig/xfig-import.c:
13484         * plug-ins/python/pydia-property.c:
13485         * plug-ins/python/pydia-properties.c:
13486         * plug-ins/python/pydia-geometry.c:
13487         * plug-ins/pstricks/render_pstricks.c:
13488         * lib/arrows.c:
13489         * objects/EML/dbox.c:
13490         * lib/ps-utf8.c: paleolithic C compilers choke on //. Should fix 
13491         #53054.
13493         * lib/ps-utf8.c: improved the clustering of alphabetic character
13494         definitions in custom encodings pages.
13495         
13496 2001-05-02  Hans Breuer  <hans@breuer.org>
13498         * lib/object.h : OBJECT_COMMON_PROPERTIES_OFFSETS correct type 
13499         of 'obj_bb' to PROP_TYPE_RECT
13501         * objects/custom/custom_object.c : take all quarks into account, 
13502         not only 4 as copy&paste suggests
13504         * objects/uml/objects.c : completed the implementation of the
13505         property api to avoid reading of totally bogus data. Removed
13506         the PROBABLY_DEAD_CODE. It actually was dead code, but not because
13507         there was too much but too less ...
13508   
13509         The above changes removed all known crashes (mentioned below) 
13510         from the Property API. Property access is still incomplete though.
13512         * objects/flowchart/box.c :
13513         * objects/flowchart/diamond.c :
13514         * objects/flowchart/ellipse.c :
13515         * objects/flowchart/parallelogram.c :
13516         * objects/uml/classicon.c :
13517         * objects/uml/state.c : calculate number of quarks from quark array 
13518         size instead of using hardcoded values for consistence and to avoid 
13519         future bugs like the above
13520         
13521         * objects/eml/nlist.c : include <string.h> for strcmp()
13523         * lib/dia_xml.c : relax g_warning for values, which
13524         appear to be too small. There is nothing which prevents
13525         them while saving
13527         * plug-ins/python/pydia-geometry.c : changed stringifying of
13528         geometry objects accept BezPoint back to %f, which does not
13529         crash anymore, because all the data is intialized now and it
13530         simply is more readable than %e ...
13532         * plug-ins/python/python-startup.py : removed dependency
13533         to PyGtk, because it isn't required here and probably won't
13534         in i.e.: export filters.
13536         * plug-ins/python/gtkcons.py : create the gtkoutfile even
13537         if sys.stderr.fileno() isn't supported
13539         * app/makefile.msc : make version 0.88
13540         * plug-ins/makefile.msc : make version 0.88 an added new
13541         xfig files to build
13543 2001-05-11  James Henstridge  <james@daa.com.au>
13545         * NEWS: remember to add news items this time.
13547         * dia.spec: update spec file for 0.88 release.
13549         * configure.in: up version number to 0.88
13551         * plug-ins/python/Makefile.am (EXTRA_DIST): fix up typo that was
13552         preventing any of the useful python scripts from being
13553         distributed.
13555         * sheets/Makefile.am (sheet-translation-report): fix bustage I
13556         introduced in my fixups for the 0.87 release :(
13558 2001-05-10  Lars Clausen  <lrclause@cs.uiuc.edu>
13560         * plug-ins/xfig/xfig-import.c: Finally got groups working.
13562 2001-05-09  Lars Clausen  <lrclause@cs.uiuc.edu>
13564         * plug-ins/xfig/xfig-import.c: Improvements to error handling and
13565         group manipulation.
13567 2001-05-09  Cyrille Chepelov  <chepelov@calixo.net>
13569         * lib/ps-utf8.[ch]:
13570         * lib/Makefile.am: fix makefile breakage which led to not
13571         including ps-utf8.[ch] in the released tarballs. 
13573 2001-05-09  James Henstridge  <james@daa.com.au>
13575         * Makefile.am (core-translation-report): dist scripts needed for
13576         this target, and change to $(srcdir) before running.
13578         * sheets/Makefile.am (EXTRA_DIST): actually dist the sheets.  DATA
13579         files aren't automatically included in the tarball by automake
13580         because they could be generated files.
13582         * objects/EML/Makefile.am (EXTRA_DIST): fix directory names.
13584         * doc/en/Makefile.am (install-data-hook): fix up where graphics
13585         are installed.
13587         * configure.in: up version number to 0.87
13589         * plug-ins/python/*.py: no longer necessary to explicitly set
13590         sys.argv, as python.c does it for us now (like it should).
13592         * plug-ins/python/gtkcons.py: fix up so it plays nicely as a dia
13593         python plugin.
13595         * plug-ins/python/python-startup.py: startup script that imports
13596         all modules in $(datadir)/dia/python and ~/.dia/python.
13598         * plug-ins/python/python.c (dia_plugin_init): change so that it
13599         only runs the $(datadir)/dia/python-startup.py script.  Make sure
13600         that sys.argv and __main__.__file__ are set when calling the
13601         startup script.
13603         * plug-ins/python/Makefile.am: update makefile.  Make it install
13604         gtkcons.py plugin.  I haven't set any other plugins to install, as
13605         they look like they are mainly for debugging purposes.
13607         * configure.in: add tests to detect if python is available, so we
13608         can build the python plugin.  Only run if --with-python passed to
13609         configure.
13611 2001-05-08  James Henstridge  <james@daa.com.au>
13613         * acinclude.m4: add macros for detecting python.
13615         * app/menus.c (dia_gnome_menu_get_widget): handle paths that point
13616         at GNOME_APP_UI_SUBTREE entries.
13617         (menus_add_path): function to add a menu item to the menubars.
13618         Uses a hash table to keep track of extra menu items it adds.  Also
13619         notifies the item factory about the entries so that accels can be
13620         saved for them.
13621         (menus_add_path): implement gtk only version.
13622         (menus_init): use menus_add_path() to add the menu.
13623         (plugin_callback): simplify.
13625 2001-05-08  Steffen Macke <sdteffen@yahoo.com>
13627         * app/menu.c: removed #ifndef GNOME; GNOME build was broken
13628         
13629 2001-05-08  Lars Clausen  <lrclause@cs.uiuc.edu>
13631         * plug-ins/xfig/xfig-export.c: 
13632         * plug-ins/xfig/xfig-common.c: 
13633         * plug-ins/xfig/xfig-import.c: 
13634         * plug-ins/xfig/xfig.c: 
13635         * plug-ins/xfig/xfig.h: 
13636         * app/Makefile.am: Added support for exporting to Fig format
13637         (except splits, which are less powerful in Fig).  Some refactoring
13638         along the way.
13640 2001-05-02  Hans Breuer  <hans@breuer.org>
13642         * plug-ins/python/debug_objects.py : added another
13643         test to get massive crashes from the Property API due
13644         to unintialized data.
13646         * app/menu.c : the callback_action wasn't incremented
13647         (should have checked my last optimization). Now more
13648         than one plug-in callback is supported again.
13650         * plug-ins/python/pydia-geometry.c : avoid crashes from
13651         glib, when trying to g_strdup_printf unintialized floats.
13653         * plug-ins/python/pydia-property.c : avoid crashes from
13654         because of string_data == NULL (PROP_TYPE_FILE, PROP_TYPE_STRING)
13656 2001-05-01  Hans Breuer  <hans@breuer.org>
13658         * objects/makefile.msc : added eml
13659         * objects/eml/instantiation.c : initialize 'inst' pointer
13660         before using, zero initialization for objects
13661         * objects/eml/interaction-ortho.c :
13662         * objects/eml/interaction.c : zero initialization for objects
13664         * app/menus.c : removed Gimp mru stuff which slipped in at
13665         2000-08-15, was never activated and will never be needed, 
13666         because of Steffens recent file list patch added at 2001-01-05.
13668         * objects/eml/*.c : some more zero initialization of objects
13669         to avoid infinite (uninitialized) bounding boxes
13671         Implemented a callback api which allows plug-ins to register
13672         menu call backs. Dia for Gnome should compile, but will need 
13673         some extra tweaking to make it work because I can't test it.
13675         * plug-ins/python/pydia-error.h :
13676         * plug-ins/python/pydia-render.c : moved Pxthon function return 
13677         value handling from pydia-render.c to pydia-error.h, to make it
13678         usable for
13679         * plug-ins/python/diamodule.c : implement callback function
13680         registration from and relaying to Python code
13682         * app/menus.c : register and use plug-in menu callbacks
13684         * lib/filter.[hc] : implement filter_register_callback() and
13685         filter_get_callbacks() for the above
13686         * lib/libdia.def : export them
13688         * plug-ins/python/debug_objects.py (new file): 
13689         sample using the above
13691 2001-04-27  Lars Clausen  <lrclause@cs.uiuc.edu>
13693         * plug-ins/shape/shape-export.c (new_shape_renderer): 
13694         The name of a shape is now taken from the dir, to conform with
13695         standard naming.
13697 2001-04-25  Lars Clausen  <lrclause@cs.uiuc.edu>
13699         * app/properties.c (properties_show): Added title containing
13700         object type, plus (hopefully) fix of the ghost properties dialog.
13702 2001-04-16  Cyrille Chepelov  <chepelov@calixo.net>
13704         * app/display.c: remove the display idle handler in case we
13705         destroy the ddisplay (caused crashes in ddd, probably random
13706         crashes elsewhere).
13708         * autogen.sh: 
13709         * configure.in:
13710         * Makefile.am: hack around gettext-0.10.36's new "features".
13711         
13712         * lib/properties.[ch]: added new function object_copy_props().
13713         Added new property type PROP_TYPE_ENDPOINTS
13715         * lib/connection.h: added support for load/saving through the
13716         properties interface.
13718         * lib/object.[ch]: object_load/save/copy_using_properties()
13719         support functions (code factorisations).
13720         
13721         * objects/GRAFCET/boolequation.c: check against null values in
13722         boolequation_set_value() and boolequation_destroy().
13724         * objects/GRAFCET/transition.c: Converted from lazyprops to
13725         standard properties. 31% less (x86) code !
13727         * objects/GRAFCET/condition.c: also converted from lazyprops to
13728         standard properties. Also killed lots of code.
13729         
13730 2001-04-13  Hans Breuer  <hans@breuer.org>
13732         * plug-ins/wmf/wmf.cpp : changed text conversion from
13733         g_utf8_utf16 to g_convert usage. The latter function is already
13734         available in tml's last "official" Gtk+ version (2000-12-26).
13735         This change allows to use recent Dia with either the official
13736         version or the latest cvs "gtk-1-3-win32-production"-branch.
13738 2001-04-14  Lars Clausen  <lrclause@cs.uiuc.edu>
13740         * Patch from David S. Thompson <dcthomp@mail.utexas.edu>:
13741         * app/disp_callbacks.c:
13742         - Allow submenus in DiaMenus.
13743         - Don't require DiaMenu.title to be non-null (so that
13744           submenus aren't required to have titles)
13746         * objects/FS/function.c:
13747         - object menu now has submenus, an almost complete list of
13748           standard-basis verbs, and a start on nouns.
13749         - box padding, dash length, and other visual attributes are
13750           scaled by the font size... eventually font height will be
13751           a function property.
13752         - draw functions with smaller font to make initial view hold
13753           a reasonable number of functions.
13754         
13755 2001-04-13  Cyrille Chepelov  <chepelov@calixo.net>
13757         * sheets/ER.sheet:
13758         * sheets/chronogram.sheet:
13759         * sheets/jigsaw.sheet:
13760         * sheets/sybase.sheet: Updated Dutch sheet translations from Dag
13761         Wieers <dag@wieers.com>
13763 2001-04-13  Hans Breuer  <hans@breuer.org>
13765         * app/app_procs.c (app_exit) : added g_return_if_fail (!app_exit_once)
13766         to ensure that all the deinitialization is only done once. Fixes
13767         recent app exit crash on win32
13769         * lib/dia_xml.c : provide isinf() replacement for msc which does only
13770         have _finite()
13772         * lib/libdia.def : updated
13774         * objects/makefile.msc : added wanlink.c 
13776         * objects/network/wanlink.c : added M_PI_2 definition for poor
13777         platforms which don't have one
13779         * objects/standard/arc.c :
13780         * objects/standard/zigzagline. c: part of ConectionBBExtras wasn't
13781         initialized which led to rather huge bounding boxes (try Ctrl^A on
13782         diagrams with Arcs or ZigZagLines).
13783         * objects/*/*.c : to avoid further bugs like the above changed all
13784         object initializations to g_malloc0 or g_new0
13787 2001-04-09  Cyrille Chepelov  <chepelov@calixo.net>
13789         * lib/paper.[ch]: get rid of "no previous prototype fo `foo'" by
13790         doing a s/T foo()/T foo(void)/ for all possible values of T and foo.
13792         * objects/UML/class.c: 
13793         * objects/UML/usecase.c:
13794         * objects/UML/large_package.c:
13795         * objects/UML/message.c:
13796         * objects/UML/object.c:
13797         * objects/UML/lifeline.c:
13798         * objects/FS/flow.c:
13799         * objects/FS/flow-ortho.c:
13800         * objects/FS/function.c:
13801         * objects/custom/custom_object.c:
13802         * objects/GRAFCET/vergent.c:
13803         * objects/chronogram/chronoref.c:
13804         * objects/SADT/box.c:
13805         * objects/SADT/annotation.c:
13806         * plug-ins/dxf/dxf-import.c:
13807         * plug-ins/xfig/xfig-import.c:
13808         * plug-ins/wpg/wpg.c:
13809         * app/command.c:
13810         * app/app_procs.c:
13811         * app/display.c: /* certainly more WIP than dead code there */
13812         Unused variables, unused static function definitions, forgotten or
13813         incomplete prototypes added or fixed, lack of const or unwanted const,
13814         etc. (mostly clean-ups of leftovers of the pre-properties era).
13815         Non-obvious cases bracketed by #define THIS_IS_PROBABLY_DEAD_CODE,
13816         please check these.
13818         * app/lineprops_area.c: More of the same. Missing prototypes
13819         added, and functions unused outside made static.
13821         * app/recent_files.c:
13822         * app/properties.c:
13823         * app/defaults.c: some variables are used only when doing a GNOME
13824         build.
13825         
13826         * app/magnify.c: missing #include <stdlib.h>.
13828         * app/paginate_gnomeprint.c: Unused variable; missing "message.h".
13830         These are a lot of clean-ups (by the way, this compiles and runs
13831         cleanly with "gcc-3.0 -O2 -Wall --std=gnu99" too !); please grep
13832         for DEAD_CODE, and if it's yours, judge it.
13833         
13834 2001-04-07  Cyrille Chepelov  <chepelov@calixo.net>
13836         * plug-ins/dxf-import.c: some progress with the arcs; still some
13837         clean-ups to do and line width scaling issues to figure out.
13839         * objects/standard/arc.c: start_point and end_point properties
13840         (duplicated from standard/line.c)
13842         * plug-ins/xfig/xfig-import.c: zip ! zap ! no more dead DXF import
13843         code there.
13844         
13845 2001-04-06  Cyrille Chepelov  <chepelov@calixo.net>
13847         * plug-ins/dxf-import.c: setlocale-related clean-ups and fixes ;
13848         preliminary support for arcs (doesn't work). Circles and ellipses are
13849         now transparent. Coordinate and width scaling are now a common 
13850         static constant (probably before morphing into a preference).
13851         
13852         * sheet/checktrans.py: improved error reporting. Made checktrans
13853         count lack of <name xml:lang="code"> as a lack of translation for
13854         language "code" (no, it's not a plot to bring down other
13855         language's scores !)
13856         
13857         * sheet/*.sheet: Ensured all sheets have an encoding="iso-8859-1"
13858         in the header, and have <name xml:lang="fr"> components.
13859         
13860 2001-04-05  Cyrille Chepelov  <chepelov@calixo.net>
13862         * objects/custom/custom_object.c: temporary hack to fix the shape
13863         bounding box reported by Ben A. Hetland. Proper fix isn't .87
13864         material, see bugzilla #52912.
13866 2001-04-05  Lars Clausen  <lrclause@cs.uiuc.edu>
13868         * objects/standard/image.c (get_directory): Now uses
13869         G_SEPARATOR_CHAR_S instead of "/"
13871         * sheets/network.sheet: 
13872         * sheets/Logic.sheet:
13873         * sheets/Flowchart.sheet:
13874         * sheets/Electric.sheet:
13875         * sheets/Circuit.sheet:
13876         * sheets/ER.sheet:
13877         * sheets/Pneumatic.sheet:
13878         * sheets/SDL.sheet:
13879         * sheets/UML.sheet:
13880         * sheets/GRAFCET.sheet:
13881         * sheets/MSE.sheet:
13882         * sheets/chronogram.sheet:
13883         * sheets/civil.sheet:
13884         * sheets/network.sheet:
13885         Danish translations.
13886         
13887         * objects/standard/image.c (get_directory): Changed get_directory
13888         to use g_dirname to find the directory part.
13890 2001-04-05  Cyrille Chepelov  <chepelov@calixo.net>
13892         * sheets/ER.sheet:
13893         * sheets/Electric.sheet:
13894         * sheets/Flowchart.sheet:
13895         * sheets/Logic.sheet:
13896         * sheets/network.sheet: More Dutch translations from Dag Wieers.
13898 2001-04-04  Cyrille Chepelov  <chepelov@calixo.net>
13900         * sheets/checktrans.py: now emits a warning when two descriptions
13901         for a single language code are found.
13903         * Makefile.am:
13904         * sheets/Makefile.am: -translation-reports now also depend on their
13905         checktrans.py
13906         
13907 2001-04-04  Cyrille Chepelov  <chepelov@calixo.net>
13909         * sheets/Circuit.sheet:
13910         * sheets/Contact.sheet:
13911         * sheets/Logic.sheet:
13912         * sheets/chronogram.sheet:
13913         * sheets/sybase.sheet: 
13914         Dutch translations from Dag Wieers <dag@wieers.com>
13916 2001-04-04  Cyrille Chepelov  <chepelov@calixo.net>
13918         * po-checktrans.py: Now shows the detailed counts alongside the
13919         percentage of translations.
13920         
13921 2001-04-03  Cyrille Chepelov  <chepelov@calixo.net>
13923         * Makefile.am:
13924         * po-checktrans (NEW):
13925         * po-checktrans.py (NEW): builds core-translation-report:
13926         percentages of core (gettext) translations done [Not placed into
13927         po/ where that should belong, because of integration fear^Wissues
13928         with gettextize]. 
13930         TO THE KIND ATTENTION OF PACKAGERS: core-translation-report and 
13931         sheets/sheet-translation-report probably ought to be copied on the 
13932         user's /usr/share/doc/dia (or equivalent) directory.
13934         * sheets/Makefile.am: sheet-translation-report now a simple
13935         EXTRA_DIST; make install won't install it by default. 
13936         
13937 2001-04-03  Cyrille Chepelov  <chepelov@calixo.net>
13939         * app/preferences.c: changed the default grid colour to something
13940         less intrusive. 
13942         * shapes/SDL/*.shape:
13943         * sheets/SDL.sheet: renamed all SDL shapes to conform to the
13944         "$LIBRARY - $NAME" convention. THIS REQUIRES FIXING THE EXISTING
13945         DIA FILES (well, for files using SDL), see the mailing list
13946         archive "SDL (ab)using the global shape namespace" for a script to
13947         do this conversion.
13949         * sheets/SDL.sheet: translated into French
13950         * sheets/network.sheet: fixed XML typos. Yay ! 100% :-)
13951         
13952 2001-04-02  Cyrille Chepelov  <chepelov@calixo.net>
13954         * lib/dia_xml.c: made data_point() more paranoid
13956         * sheets/Makefile.am:
13957         * sheets/checktrans (NEW):
13958         * sheets/checktrans.py: Made checktrans handle more gracefully the
13959         absence of python and python-xml packages, and made the error
13960         message more helpful.
13961         
13962 2001-04-01  Lars Clausen  <lrclause@cs.uiuc.edu>
13964         * lib/render_object.c (new_render_object): Made initial handles
13965         behave like on most other objects.
13967         * app/load_save.c (read_objects): Fixed premature free'ing ofr
13968         typestr causing garbage.
13970 2001-04-01  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
13972         * objects/FS/flow-ortho.c: Fixed a crashbug causes by not
13973         accouting for handle ordering through copy and save. (#51479)
13975 2001-03-31  Cyrille Chepelov  <chepelov@calixo.net>
13977         * sheets/Circuit.sheet: Norwegian translation mistagged to German.
13979 2001-03-31  Steffen Macke  <sdteffen@yahoo.com>
13981         * sheets/Circuit.sheet
13982         * sheets/UML.sheet
13983         * sheets/network.sheet: Updated German translations
13984         
13985 2001-03-30  Cyrille Chepelov  <chepelov@calixo.net>
13986         * lib/arrows.[ch]:
13987         * lib/widgets.c:
13988         * app/lineprops_area.c: The return of the revenge of the arrow
13989         heads. Now all types covered by ISO 10303-201 should be covered.
13990         
13991 2001-03-30  Cyrille Chepelov  <chepelov@calixo.net>
13993         * sheets/Flowchart.sheet: translations in probably Hungarian were
13994         a victim of cut-n-paste from the German one. Fixed (hopefully).
13995         * sheet/UML.sheet: translation in probably Norwegian was a victim
13996         of cut-n-paste from the French one. Fixed (hopefully).
13997         * sheets/Logic.sheet: French translation not tagged with
13998         xml:lang="fr".
13999         
14000         * sheets/checktrans.py:
14001         * sheets/Makefile.am: new file, sheet-translation-report, to be
14002         installed along the sheets, show how much of them has been
14003         translated into which language (I wish the result was prettier...)
14005         * po/README: most translators don't read this file, but anyway...
14007         * sheets/.cvsignore:
14008         * objects/network/.cvsignore: the usual negotiation with CVS.
14010 2001-03-30  Cyrille Chepelov  <chepelov@calixo.net>
14012         * sheets/*.sheet: French translations
14014 2001-03-28  Cyrille Chepelov  <chepelov@calixo.net>
14016         Added patch #52363 from Hubert Figuiere <hfiguiere@teaser.fr>:
14018         ** objects/network/network.c:
14019         ** objects/network/wanlink.c:
14020         ** objects/network/pixmaps/wanlink.c:
14021         ** sheets/network.sheet:
14022         ** objects/network/Makefile.am: a better object to use instead of
14023         the older WAN Connection.
14024         
14025         ** lib/geometry.[ch]: rotation matrix functions in geometry.c (derived from gimp)
14027         ** objects/GRAFCET/vector.c: renamed Vector to GRAFCETVector to avoid a
14028         name clash 
14030         * objects/GRAFCET/vector.c: Re-renamed GRAFCETVector into
14031         Arc; kept the C file name (because CVS wouldn't like it), and
14032         still registering the older object name (but advertising the newer
14033         one in sheets/GRAFCET.sheet).   
14035 2001-03-24  Hans Breuer  <hans@breuer.org>
14037         * app/dia.def : some plug-ins (currently only python, xfig) are using 
14038         functions from the dia executable. To get them working these functions 
14039         need to be explicit exported on win32. IMO the much cleaner way would
14040         be to move these functions to libdia, but that would require some
14041         long term restructuring ...
14043         * lib/libdia.def : updated
14045         * plug-ins/makefile.msc : build xfig plug-in
14047 2001-03-24  Hans Breuer  <hans@breuer.org>
14049         * app/diagram.c : g_strdup (dia->filename) because it will be
14050         g_free ()d
14052         * app/display.c : set ddisp->renderer to NULL after destruction.
14053         This may solve or help to identify erroneous access to it after
14054         destruction.
14056         * plug-ins/wmf/wmf.cpp : convert string from utf8 to wchar to
14057         get 'umlauts' working
14059 2001-03-22  Cyrille Chepelov  <chepelov@calixo.net>
14061         * object/chronogram/chronoline_event.c: stupid bug ; rises and falls
14062         were reversed... (look for the patch, and drink a beer to my
14063         stupidity)      
14064         
14065 2001-03-23  Hans Breuer  <hans@breuer.org>
14067         * app/app_procs.c : don't g_error () if the config directory
14068         can't be created (at least not on windoze) because it's quite
14069         common that the user don't read or understand the FAQ ...
14071         * app/cursor.c : use ddisplay_active () instead of active_display
14072         from app/display.c
14074         * app/display.[hc] : made active_display var static and provide
14075         an accessor funtion ddisplay_active_diagram ()
14077         * app/dia-props.c : don't store the active_diagram, but ask
14078         for it everytime it needed.
14080         * lib/properties.h : #include "intl.h"
14082         * lib/makefile.msc : need to take care of inclusion order to
14083         avoid clashes with gtk+2.0's gdk-pixbuf
14085         * objects/makefile.msc : added uml/stereotype.c to build
14087 2001-03-23  Lars Clausen  <lrclause@cs.uiuc.edu>
14089         * **/*.c: Added config.h to the remaining .c files, and changed
14090         all to be <config.h>.
14092 2001-03-22  Steffen Macke <sdteffen@yahoo.com>
14094         * lib/arrows.c
14095         * lib/arrows.h
14096         * lib/widgets.c
14097         * app/lineprops_area.c: added new arrow types with double
14098         heads
14099         
14100 2001-03-20  Steffen Macke <sdteffen@yahoo.com>
14102         * shapes/Civil/civil_gas_bottle.xpm
14103         * shapes/Civil/civil_gas_bottle.shape
14104         * sheets/civil.sheet
14105         * shapes/Civil/Makefile.am: Added gas bottle shape by Arne
14106         Battermann
14107         
14108 2001-03-20  Lars Clausen  <lrclause@cs.uiuc.edu>
14110         * objects/custom/shape_info.c (load_shape_info): 
14111         * objects/custom/shape_info.h: 
14112         * objects/custom/custom_object.c (custom_update_data): 
14113         Better support for text outside the box -- new attributes 'resize'
14114         and 'align' for text entity.  Align not fully supported yet.
14116         * lib/text.c (text_calc_boundingbox): Adding BB for cursor width.
14118 2001-03-20  James Henstridge  <james@daa.com.au>
14120         * app/interface.c (display_data_received_callback): comment out
14121         status message.
14123 2001-03-19  James Henstridge  <james@daa.com.au>
14125         * app/GNOME_Dia.oaf: rename from GNOME_Dia.oafinfo.
14127         * objects/UML/realizes.c: similar here.
14129         * objects/UML/implements.c: similar here.
14131         * objects/UML/component.c: similar here.
14133         * objects/UML/generalization.c: same here.
14135         * objects/UML/dependency.c: allow NULL for ->name and
14136         ->stereotype.  This fixes a number of problems in loading saved
14137         files.
14139         * lib/properties.c: various changes so that NULL string properties
14140         should work.
14142         * objects/standard/line.c (line_update_data):
14143         line->extra.start_long and line->extra.end_long were not being
14144         initialised.  This fixes potential problems with the bounding box
14145         of "Standard - Line" objects.
14147 2001-03-19  Hans Breuer  <hans@breuer.org>
14149         * app/commands.c : added win32 specific code to display a html
14150         file. #include "text.h" for text_delete_all prototype.
14152         * app/dia.ico :
14153         * app/dia.rc : (new) to give Dia win32 an icon
14155         * app/win32print.[ch] : new files to support direct postscript
14156         file printing on win32. Beware: it *requires* a ps-printer!
14158         * app/paginate_psprint.c : disable the signal code for win32 build
14159         and added small specific changes to support win32print.
14161         * app/makefile.msc : added win32print and linking shell32.lib
14163         * lib/libdia.def : updated
14165 2001-03-18  Kevin Breit <battery841@mediaone.net>
14167         * doc/en/dia-C.omf: Added file.  Dia should now list in the Nautilus
14168           Help tabs.
14170 2001-03-17  James Henstridge  <james@daa.com.au>
14172         * app/paginate_psprint.c (diagram_print_ps): add code that traps
14173         SIGPIPEs during printing.  This gets rid of a number of crashes
14174         caused by printing (eg. typing an incorrect print command).
14176         * dia.spec (%install): gzip the manpage.
14178         * lib/beziershape.c (beziershape_save): fix off by one error in
14179         beziershape save code, which was adding an extra segment to the
14180         object on save.
14182         * app/menus.c: add a separator in the gnome version of the help
14183         menu.
14185         * app/app_procs.c (app_init): add a --nosplash argument which
14186         disables the splash screen.
14188         * app/dia_embedd.c (main): don't leave the splash screen open for
14189         embeddable component.
14191         * app/splash.c (app_splash_init): the gtk_widget_show_now() call
14192         didn't seem to be showing the splash screen like expected, so I
14193         have replaced it with some code that calls gtk_main() until the
14194         first exposure of the window.
14196 2001-03-16  James Henstridge  <james@daa.com.au>
14198         * app/Makefile.am (EXTRA_DIST): add extra pixmaps.
14200         * objects/UML/Makefile.am (libuml_objects_la_SOURCES): add
14201         stereotype.h
14203         * lib/Makefile.am (libdia_a_SOURCES): add diavar.h here.
14205         * app/Makefile.am (dia_core_files): remove splash.h from file
14206         list, as it doesn't exist.
14208         * doc/en/Makefile.am (uninstall-local): remove the docdir on
14209         uninstall.
14211         * doc/Makefile.am (uninstall-local): target to remove the C
14212         symlink.
14214         * dia.spec (%files): include the documentation in the package.
14216         * app/menus.c (toolbox_menu_items): add menu item for manual,
14217         which calls help_manual_callback.
14219         * app/commands.c (help_manual_callback): find help file and load
14220         netscape to view it.
14222         * app/commands.h: add prototype for help_manual_callback()
14224         * doc/Makefile.am (helpdir): similar here.
14226         * doc/en/Makefile.am (helpdir): make the helpdir
14227         $(pkgdatadir)/help/en in the non gnome case.
14229         * configure.in (HAVE_GNOME): add conditional.
14231         * doc/en/Makefile.am: handle the graphics in a more general way,
14232         so it is easier for Kevin to add them to the build (just add them
14233         to the GRAPHICS var).
14235         * app/Makefile.am (embed_extra_print_files): make the case of
14236         building without gnome-print support but with bonobo support work.
14237         dia-embedd needs to be include the gnome-print
14239 2001-03-09  Cyrille Chepelov  <chepelov@calixo.net>
14241         * samples/Makefile.am: included all samples in the distribution....
14242         
14243 2001-03-09  Cyrille Chepelov  <chepelov@calixo.net>
14245         * configure.in: removed premature test for DPS. Added -*- m4 -*-
14246         at the beginning. Made HAVE_UNICODE non-default. po/es_ES.po has
14247         vanished, removed it from ALL_LINGUAS.
14249         * lib/charconv.[ch] (NEW): a very small wrapper around
14250         unicode_iconv to convert strings between utf8 and local charset
14251         (actually, ISO-8859-1, though one can do
14252         CFLAGS="-DEFAULT_8BIT_CHARSET=\"ISO-8859-2\"" and the like).
14254         * lib/ps-utf8.[ch] (NEW): A PostScript Unicoder ; a smallish
14255         library to help build Postscript streams which use as many custom
14256         font encodings as necessary to correctly represent all characters
14257         used (testing from users with non-latin1 and/or more than 256
14258         characters in routine use *very* welcome).
14260         * app/Makefile.am, lib/Makefile.am: integrated these into the
14261         build process.
14263         * shapes/Logic/.cvsignore (NEW): .cvsignore
14264         
14265         * app/render_eps.h: forwarded some changes Lars forgot to include.
14266         * app/render_eps.c: turned off ASCII85 and FILTERS, as this
14267         doesn't yet build.
14269 2001-03-08  Kevin Breit <battery841@mediaone.net>
14271         * doc/en/home_network.png: Added file.
14272         * doc/en/line_props.png: Added file.
14273         * doc/en/usage-objects.sgml: Added two graphics to file.
14274         * doc/en/usage-quickstart.sgml: Added one graphic to file.
14276 2001-03-06  Kjartan Maraas  <kmaraas@gnome.org>
14278         * app/grid.h: Place comment around text after #endif.
14279         * lib/bezier_conn.c: #include <string.h>.
14280         * lib/beziershape.c: #include <string.h>.
14281         * lib/connpoint_line.h: Comment after #endif.
14282         * lib/dia_dirs.c: #include <string.h>.
14283         * lib/element.c: Same.
14284         * lib/lazyprops.c: #include <config.h> and "intl.h".
14285         * lib/lazyprops.h: Comment out text after #endif.
14286         * lib/neworth_conn.c: #include <string.h>
14287         * lib/orth_conn.c: Same here.
14288         * lib/poly_conn.c: Here too.
14289         * lib/polyshape.c: And here.
14290         * lib/properties.c: Remove #include "intl.h" from here and add
14291         an array of static strings to work around bug in gettext that
14292         makes it miss strings in a #define body.
14293         * objects/GRAFCET/action_text_draw.h: Comment out text after #endif.
14294         * objects/GRAFCET/boolequation.h: Same here.
14295         * objects/chronogram/chronoline_event.h: Add prototype for
14296         destroy_cle().
14297         
14298 2001-03-05  Lars Clausen  <Lars R. Clausen <lrclause@cs.uiuc.edu>
14300         * objects/FS/function.c: 
14301         * objects/FS/flow.c: 
14302         * objects/FS/flow-ortho.c: 
14303         Updated to use properties.
14305 2001-03-03  James Henstridge  <james@daa.com.au>
14307         * lib/lazyprops.c (__propdlg_build_enum): translate the radio
14308         button labels when creating them.
14310 2001-02-28  Lars Clausen  <Lars R. Clausen <lrclause@cs.uiuc.edu>
14312         * objects/UML/actor.c
14313         * objects/UML/realizes.c 
14314         * objects/UML/implements.c 
14315         * objects/UML/generalization.c 
14316         * objects/UML/dependency.c 
14317         * objects/UML/constraint.c
14318         Updated to use properties.
14319         
14320         * objects/UML/stereotype.c 
14321         * objects/UML/stereotype.h
14322         Generalized to any kind of bracketting.
14323         
14324 2001-02-28  James Henstridge  <james@daa.com.au>
14326         * app/menus.c: add help entry to the help menu.  Need to get this
14327         working for the non GNOME case as well (maybe put help under
14328         $(datadir)/dia/help for non GNOME?)
14330         * doc/en/topic.dat: add a topic.dat file for GNOME menus.
14332         * doc/en/dia-manual.sgml (legalnotice): add an id attribute to
14333         this element so that we get a meaningful filename in the html
14334         translation.
14336         * doc/Makefile.am, doc/en/Makefile.am: new makefiles to handle the
14337         documentation.
14339         * configure.in (DB2HTML): add a check for the db2html program, and
14340         set an automake conditional if it is found.
14342         * Makefile.am: remove EXTRA_DIST rules that cover doc/ directory,
14343         and descend into doc/ directory while building.
14345         * configure.in (AC_OUTPUT): add doc/ makefiles to output list, now
14346         we need more complex rules for building the docs.
14348 2001-02-25  Hans Breuer  <hans@breuer.org>
14350         * config.h.win32 : some cleanup
14352         * app/prefererences.c : g_scanner_(freeze|thaw)_symbol_table
14353         are deprecated since glib-1.3.2. Sorry needing to use them
14354         contionally, but there is no glib-1.2 for win32
14356         * app/recent_files.c : use g_strescape (params) conditionally
14358         * lib/connection.c : include string.h for memcpy
14360         * lib/geometry.h : added some stuff for compatibility with
14361         msvc, which previously came from included config.h
14363         * lib/libdia.def : updated
14365         * objects/makefile.msc : updated
14367         * objects/GRAFCET/action.c(490) : fixed warning C4700: local variable 
14368         'extra' used without having been initialized
14370         * objects/network/bus.c(658) : initialize 'extra'
14372         * plug-ins/makefile.msc : updated
14374         * plug-ins/cgm/cgm.c :
14375         * plug-ins/pstricks/render_pstricks.c : 
14376         g_free() memory allocated by dia_image_rgb_data(). Plugs possibly 
14377         huge memory leaks.
14379         * plug-ins/python/python.c : use HAVE_DIRENT_H
14381 2001-02-23  Lars Clausen  <Lars R. Clausen <lrclause@cs.uiuc.edu>
14383         * lib/connection.c (connection_update_boundingbox): 
14384         Made the BB shrink on right and lower sides, too.
14386 2001-02-23  Kjartan Maraas  <kmaraas@gnome.org>
14388         * */*.c: #incude <config.h> at the top.
14389         * */*.h: Remove include of "config.h" since it should only
14390         be included in .c files and at the very top for things to
14391         work.
14392         * sheets/*.sheet: Updated Norwegian translations.
14393         
14394 2001-02-22  Lars Clausen  <Lars R. Clausen <lrclause@cs.uiuc.edu>
14396         * objects/UML/small_package.c: 
14397         * objects/UML/class.c: 
14398         * objects/UML/node.c: 
14399         * objects/UML/usecase.c:
14400         * objects/UML/lifeline.c: 
14401         * objects/UML/message.c:
14402         Various cleanup of properties in particular.  Now much more use of
14403         standard properties.
14405         * lib/diagramdata.c (layer_render): Visualization of bounding
14406         boxes, for debugging purpoises.
14408 2001-02-22  Cyrille Chepelov  <chepelov@calixo.net>
14410         * lib/geometry.h:
14411         * lib/connection.[ch]:
14412         * lib/poly_conn.[ch]:
14413         * lib/polyshape.[ch]:
14414         * lib/bezier_conn.[ch]:
14415         * lib/beziershape.[ch]:
14416         * lib/orth_conn.[ch]:
14417         * lib/neworth_conn.[ch]:
14418         * lib/element.[ch]: Changed a bit the _update_boundingbox()
14419         interface. Now the parent elements have an extra_spacing
14420         structure, which child objects just need to fill, to take care of
14421         most arrow & line width extra space needs.
14423         * objects/**/*.c: updated all objects to the new interface.
14424         While at it, killed all instances of (Object *) downcasts (phew !)
14426         * objects/GRAFCET/condition.c: removed the arrowhead, which IEC848
14427         doesn't speak about.
14428         
14429 2001-02-21  Lars Clausen  <Lars R. Clausen <lrclause@cs.uiuc.edu>
14431         * sheets/Logic.sheet: New sheet for Logic symbols.
14433 2001-02-21  James Henstridge  <james@daa.com.au>
14435         * app/menus.c (dia_gnome_menu_get_widget): new function to find a
14436         widget by its path name.  Walks the GnomeUIInfo heirachy rather
14437         than widget tree, compares untranslated label names and ignores
14438         underscores in the labels.
14439         (menus_get_item_from_path): use dia_gnome_menu_get_widget so that
14440         lookups are not dependent on the current locale, as with
14441         gnome_app_find_menu_pos.
14443         * acconfig.h: guard against multiple inclusion of config.h.
14445         * app/select.c (select_style_callback): simply set the selection
14446         style to the value of action.
14448         * app/menus.c (menus_init): simplify the item factory based menu
14449         code a bit.  It looks like it was using some code cut and pasted
14450         from the gimp, which looked a bit unnecessary.  Things work fine
14451         without it.
14452         (selectmenu): set the action to the type of selection mode
14453         requested.
14454         (display_menu_items): use the symbolic enumeration values for the
14455         action field.
14457         * app/plugin-manager.c: 
14458         * app/plugin-manager.h: 
14459         * app/filedlg.c:
14460         * app/filedlg.h: 
14461         * app/select.c:
14462         * app/select.h: change prototypes.
14464         * app/commands.c: update all callback prototypes, and get rid of
14465         some #ifdef GNOME's.
14467         * app/commands.h: change function prototypes.
14469         * app/dia_embedd.c (save_fn):
14470         s/ex_Bonobo_IOError/ex_BonoboStorage_IOError/
14472         * app/menus.c (menus_init): for gnome menus, use
14473         gnome_app_fill_menu_custom and pass in a GnomeUIBuilderData
14474         structure that proxies the callbacks to have the same signature as
14475         GtkItemFactory type 1 callbacks.
14476         (menus_init): for GTK menus, change from callback type 2 to type
14477         1.
14478         (display_menu_items): add back tearoffs.  I don't know who removed
14479         these for the gtk menu case.
14481 2001-02-20  Kevin Breit <battery841@mediaone.net>
14483         * doc/en/usage-objects-special.sgml: Fixed a few of the special
14484         object descriptions.  More to come in the next few days.
14486 2001-02-20  Lars Clausen  <lrclause@cs.uiuc.edu>
14488         * app/render_eps.c: Fixed for internationalized floating point
14489         output. 
14491         * objects/UML/note.c: Fixed properties -- was missing
14492         Get/ApplyPropertiesFunc.  Also improved update to recalculate text
14493         position. 
14495 2001-02-19  Lars Clausen  <lrclause@cs.uiuc.edu>
14497         * plug-ins/xfig/xfig-import.c: 
14498         File added importing xfig files.  Still very rough, but good
14499         enough to let others hack on it.
14501 2001-02-07  Cyrille Chepelov  <chepelov@calixo.net>
14503         * app/interface.c:
14504         * app/linewidth_area.c:
14505         * lib/lazyprops.c:
14506         * lib/properties.c:
14507         * lib/widgets.c:
14508         * objects/ER/attribute.c:
14509         * objects/ER/entity.c:
14510         * objects/ER/relationship.c:
14511         * objects/custom/custom_object.c:
14512         * objects/flowchart/box.c:
14513         * objects/flowchart/diamond.c:
14514         * objects/flowchart/ellipse.c:
14515         * objects/flowchart/parallelogram.c:
14516         * objects/standard/box.c:
14517         * objects/standard/textobj.c: per Vlad Harchev's request, made
14518         page sizes of gtk_adjustments different than their step sizes.
14519         When sensible values of page size weren't found (overwhelming
14520         majority of cases), page sizes were set to 10.0 * respective step
14521         size.   
14523 2001-02-07  Lars Clausen  <lrclause@cs.uiuc.edu>
14525         * objects/network/hub.c: 
14526         Patch from Hubert Figuiere applied, adding connection points.
14528 2001-02-02  James Henstridge  <james@daa.com.au>
14530         * app/display.c (new_display): set update id to 0 here.
14531         (ddisplay_update_handler): rename from ddisplay_flush, and set
14532         update_id to 0 at end of processing.
14533         (ddisplay_flush): new implementation that simply sets an idle
14534         handler to perform the actual drawing.
14536         * app/display.h: add structure member to hold the redraw idle
14537         handler id.
14539 2001-01-31  Lars Clausen  <lrclause@cs.uiuc.edu>
14541         * objects/standard/ellipse.c (ellipse_copy): 
14542         * objects/standard/zigzagline.c (zigzagline_copy): 
14543         Fix of copying provided by Martin Hawlisch.
14545 2001-01-23  Kevin Breit <battery841@mediaone.net>
14547         * doc/en/graphics/: added directory
14549         * doc/en/graphics/greendots.png: added file
14551         * doc/en/*sgml: made minor and some major changes to prepare for 1.4
14552         release.
14554 2001-01-23  Kevin Breit <battery841@mediaone.net>
14556         * doc/en/*sgml: made some grammar changes and fixed a few markup bugs.
14557                         thanks to John Fleck!
14559 2001-01-21  Kevin Breit <battery841@mediaone.net>
14561         * doc/en/*sgml: made just minor changes to a few lines; nothing major.
14563 2001-01-12  Michael Meeks  <michael@helixcode.com>
14565         * app/dia_embedd.c (init_server_factory): do a bonobo_activate
14566         so our POA gets setup properly.
14568         * app/paginate_gnomeprint.c (paginate_gnomeprint): g_free
14569         things we g_malloc.
14571         * configure.in: Use bonobox_print.
14573         * app/dia_embedd.c (embeddable_factory): add print interface.
14574         (object_print): impl.
14576 2001-01-11  Michael Meeks  <michael@helixcode.com>
14578         * app/dia_embedd.c (embeddable_factory): aggregate PersistFile.
14579         (load_fn, save_fn): impl.
14580         (view_factory): hide modified status bar, & use activate fn.
14581         (refresh_view): force redraws of the views.
14582         (view_show_hide): split from
14583         (dia_view_activate): here.
14585         * app/diagram.c (diagram_load_into): split from diagram_load.
14586         (new_diagram): simplify bu splittin stuff into
14587         (diagram_init): here.
14589 2001-01-10  Steffen Macke <sdteffen@yahoo.com>
14591         * shapes/jigsaw/*.shape: replaced #000000 with foreground
14592         and #ffffff with background
14593         
14594 2001-01-08  Steffen Macke <sdteffen@yahoo.com>
14596         *configure.in: GTK+-build was broken due to missing
14597         have_bonobo=no
14598         
14599 2001-01-06  Michael Meeks  <michael@helixcode.com>
14601         * app/dia_embedd.c (main): add running context support.
14602         (dia_embeddable_destroy): remove old running object counting.
14603         (embeddable_factory): ditto.
14604         (view_factory): comment out menu path hiding.
14606         * lib/sheet.c (load_register_sheet): use free to free
14607         stuff from libxml not g_free.
14609         * acconfig.h: kill cover for USE_BONOBOX and USE_OAF
14611         * configure.in: remove USE_OAF checks, check for a precice
14612         Bonobo version >= 0.31, revamp bits.
14614         * app/dia_embedd.c (init_server_factory): upd.
14615         (init_dia_factory): remove OAF conditionals, everything uses
14616         oaf now.
14618         * app/GNOME_Dia.oafinfo: rename OAFIIDs
14620         * app/Makefile.am: remove ancient gnorba code.
14621         rename dia.oafinfo to GNOME_Dia.oafinfo
14623 2001-01-07  Hans Breuer <Hans@Breuer.Org>
14625         * config.h.win32
14626         * install.win32
14627         * readme.win32 : some more files required or useful to build 
14628         Dia on win32
14630         * plug-ins/wmf/wmf.cpp : fixed open issues like fill_arc and
14631         fill_bezier implementation, boundary drawing in fill mode, etc.
14632         Next one complaining gets the source, uncommented ...
14634         * shapes/network/router-symbol.xpm 
14635         * shapes/network/switch-atm-symbol.xpm 
14636         * shapes/network/switch-symbol.xpm : removed "-*- picture -*- "
14637         from /* XPM */ header, cause it stopped Dia/gdk_pixbuf to detect 
14638         the files as XPMs. Maybe the X versions of these functions are more
14639         tolerant ...
14641 2001-01-06  Steffen Macke <sdteffen@yahoo.com>
14643         * plug-ins/python/Makefile.am: added libart path
14645         * plug-ins/python/python.c: added dirent.h
14647         * configure.in: added es_ES and pt_BR to ALL_LINGUAS
14648         
14649 2001-01-06  Hans Breuer <Hans@Breuer.Org>
14651         * objects/uml/actor.c
14652         * objects/uml/branch.c
14653         * objects/uml/class.c
14654         * objects/uml/classicon.c
14655         * objects/uml/component.c
14656         * objects/uml/large_package.c
14657         * objects/uml/node.c
14658         * objects/uml/note.c
14659         * objects/uml/object.c
14660         * objects/uml/small_package.c
14661         * objects/uml/state.c
14662         * objects/uml/usecase.c : started to implement the generic property
14663         interface for the uml objects. Would appreciate some help on how
14664         to implement properties which are list of properties themselves,
14665         e.g. member functions and their parameters of UMLClass.
14667 2001-01-06  Hans Breuer <Hans@Breuer.Org>
14669         * plug-ins/python/diamodule.c : finally ported to win32.
14670         Added new objects and implemented register_export function.
14672         * plug-ins/python/pydia-object.h
14673         * plug-ins/python/pydia-display.c
14674         * plug-ins/python/pydia-handle.c
14675         PyObject_HEAD_INIT needs some tweakink on win32. Done in
14676         pydia-object.h; others files simply using it.
14678         * plug-ins/python/pydia-layer.c : reflect 
14679         layer_find_closest_connection(_)point renaming
14681         * plug-ins/python/pydia-object.c : add property properties.
14682         Also change bounding_box to DiaRectangle.
14684         * plug-ins/python/python.c : extended error reporting; use
14685         all *.py files from Dia's plug-in dir instead of hardcoded
14686         test.py. This sollution should be fine with Win32, but on
14687         Unix it may need some tweaking (dunno) ...
14689         * plug-ins/python/export-object.py
14690         * plug-ins/python/export-render.py : test and documentation 
14691         implementations for export filter implementations in Python
14693         * plug-ins/python/pydia-color.[hc]
14694         * plug-ins/python/pydia-diagramdata.[hc]
14695         * plug-ins/python/pydia-error.[hc]
14696         * plug-ins/python/pydia-export.[hc]
14697         * plug-ins/python/pydia-font.[hc]
14698         * plug-ins/python/pydia-geometry.[hc]
14699         * plug-ins/python/pydia-image.[hc]
14700         * plug-ins/python/pydia-properties.[hc]
14701         * plug-ins/python/pydia-property.c
14702         * plug-ins/python/pydia-render.c : new objects in new files 
14704         * plug-ins/python/makefile.am : added new files but can't test it
14706         * plug-ins/python/pydia.def
14707         * plug-ins/python/makefile.msc : for win32 build
14709         * plug-ins/cgm/cgm.c
14710         * plug-ins/dxf/dxf-import.c
14711         * plug-ins/dxf/dxf-export.c
14712         * plug-ins/hpgl/hpgl.c : reflect export API change
14714         * plug-ins/shape/shape-export.c : reflect export API change
14715         and check for libart (better the availibility of a png exporter) 
14716         at run-time instead of compile-time. 
14718 2001-01-06  Steffen Macke <sdteffen@yahoo.com>
14720         * app/recent_files.h was missing from Hans's commit
14722         * plug-ins/shape/shape_export.c: shape export was broken
14723         due to interface changes
14724         
14725 2001-01-05  Hans Breuer <Hans@Breuer.Org>
14727         Applied Steffen's recent file list patch :
14728         * app/Makefile.am : added recent_files.[hc]
14729         * app/diagram.c : add files to recent file list
14730         * app/menus.c : add recent file menu
14731         * app/app_procs.c : changed initialization order to
14732         make recent file list work with command line processing.
14734         The Filter export()/import() functions have got an additional 
14735         parameter to allow multiple filters via one C callback (required
14736         for Python bindings)
14738         * app/commands.[hc] : corrected the signature for gtk menu callback
14739         functions, which actually use the second or third parameter. This
14740         is the absolute minimum change to make these functions/menu entries
14741         work again. Using the other possible gtk menu callback signature
14742         would have required one more function to change. (see mailing list
14743         thread "Objects/Align/Equal Distance" for more information.
14745         * app/disp_callbacks.c : applied Gustavo J.A.M. Carneiro's
14746         zoom-combo focus patch
14748         * app/display.c
14749         * app/interface.c : wrapped the Zoom Combo code into 
14750         #ifndef WITHOUT_ZOOM_COMBO because IHMO it isn't an useabilty
14751         improvement but cluttering the user interface. Also it wasn't
14752         compiling on Win32 anyway. The win32 version does define 
14753         WITHOUT_ZOOM_COMBO to keep the old look. 
14754         There are plans to use the statusbar to display size and placement
14755         of selected objects, whereas the Zoom Combo would need to get out
14756         of the way as well.
14758         Added "Save Changes?" to diagram close dialog. Hopefuly the
14759         Yes/No/Cancel option isn't too much windoze like. IHMO this is
14760         an useability improvement.
14762         * app/export_png.c
14763         * app/filedlg.c
14764         * app/load_save.c
14765         * app/layer_dialog.c
14766         * app/paginate_psprint.c
14767         * app/render_eps.c
14768         - reflect signature changing of filter->export function
14769         - replaced '/' with G_DIR_SEPARARTOR where appropriate
14771         * app/diaunitspinner.c
14772         * app/render_libart.c
14773         added misssing headers like <string.h>
14775         * app/object_ops.c : fixed copy&paste bug in dialog string
14777         * app/splash.c : gdk_widget_show_now () does not ensure actual
14778         drawing of the splash screen, at least not on win32. Reuse the
14779         previous implementation with gtk_main_iteration() again.
14781         * */makefile.msc : make use of the build module (available in
14782         gnome-cvs/build. Updated for other source changes
14784         * lib/filter.h : added an user_data pointer to <ex/im>port()
14785         function signature and Dia<Im/Ex>portFilter to allow different
14786         filters to reuse the same callback function
14788         * lib/font.c : #include <string.h>
14790         * lib/orth_conn.c 
14791         * lib/poly_conn.c 
14792         * lib/poly_shape.c 
14793         * lib/neworth_conn.c
14794         * lib/text.c : don't mix allocator functions (g_)realloc, free, ...
14796         * */*.def : export function definition files required by win32 build
14798         * objects/custom/custom.c : #include <string.h>
14800         * plug-ins/pstricks/render_pstricks.c
14801         * plug-ins/shape/shape_export.c
14802         * plug-ins/svg/render_svg.c
14803         reflect changes to filter export function signature
14805         * plug-ins/wmf/wmf.cpp : fixed indent and scaling. It now should
14806         mostly work as expected
14807         * plug-ins/wmf/wmf_gdi.[hc] : Updated comment. Still not used
14808         to build the wmf plug-in because on the one hand the GDI emulation 
14809         isn't finished and on the other hand it isn't required when building
14810         for win32. Is there anybody out there, who wants to save WMF on non
14811         windoze platforms ?
14813         * plug-ins/wpg/wpg.cpp : fixed scaling to take axis dependent
14814         offset into account.
14816 2001-01-02  Steffen Macke <sdteffen@yahoo.com>
14818         * app/Makefile.am: added missing plug-ins to run_dia.sh
14820         * lib/paper.c: added paper sizes A0, A1, A2
14822         * objects/UML/class.c
14823         objects/UML/class.h
14824         objects/UML/class_dialog.c: added support for colored UML
14825         classes
14826         
14827 2000-12-30  Kevin Breit <battery841@mediaone.net>
14829         * doc/en/usage-customization.sgml: added more content
14831 2000-12-24  Kevin Breit <battery841@mediaone.net>
14833         * doc/en/usage-layers.sgml: added file, contributed by Remypsb
14834         <remy.viard@laposte.net>
14836 2000-12-24  Steffen Macke <sdteffen@yahoo.com>
14838         * added limiting lines to Civil Engineering sheet,
14839         fixed vertical pump icon
14840         
14841 2000-12-20  Steffen Macke <sdteffen@yahoo.com>
14843         * updated/additional Civil Engineering shapes: better icons,
14844         shapes use foreground/background colors now and are filled
14845         
14846 2000-12-03  Kevin Breit  <battery841@mediaone.net>
14848         * doc/en/dia-manual.sgml Integrated a few diffs.  New section should be
14849         the selection <sect1>
14851 2000-11-29  Fredrik Hallenberg  <hallon@lysator.liu.se>
14853         * app/load_save.c (diagram_data_save): avoid using obsoleted
14854         libxml calls (only matters when compiling with libxml2)
14856 2000-11-25  James Henstridge  <james@daa.com.au>
14858         * app/disp_callbacks.c (ddisplay_drop_object): add a function to
14859         handle the tool drops on the canvas.
14861         * app/interface.c (display_data_received_callback): do the check
14862         to make sure that the drag is from a local toolbox here as well.
14864         * app/interface.c (create_tools): unref the pixmap/mask after
14865         creating the GtkPixmap.
14866         (tool_setup_drag_source): function to set up a drag source for
14867         create object tool buttons.
14868         (create_tools): setup drag source for CREATE_OBJECT_TOOL's.
14869         (fill_sheet_wbox): same here.
14870         (create_display_shell): set up the display canvas as a drag
14871         destination.
14872         (display_drop_callback, display_data_received_callback): functions
14873         to handle drops of tool buttons.
14875         * app/menus.c (menus_init): don't use gnome_popup_menu_new().  It
14876         does weird shit to the user_data pointer for a menu item.  Object
14877         alignment should work again now.
14879         * app/splash.c (get_logo_pixmap): don't unref the bitmap if it is
14880         NULL, and mark this function static.
14881         (app_splash_init): use gtk_widget_show_now() instead of the
14882         gtk_main_iteration loop.
14883         (app_splash_init): connecting gtk_widget_destroy to the destroy
14884         signal of a widget seems pretty useless.
14886 2000-11-23  Kevin Breit <battery841@users.sourceforge.net>
14888         * doc/en/dia-manual.sgml:
14889                 Added sect1 for advanced object types.  Starting development
14890                 on that part.
14892 2000-11-18  Kevin Breit <battery841@mediaone.net>
14894         * doc/en/dia-manual.sgml:
14895                 Stupid spelling fixes.
14897 2000-11-18  Kevin Breit <battery841@mediaone.net>
14899         * doc/en/dia-manual.sgml:
14900                 Just some small changes I made.  Props to Greg LeBlanc on the
14901                 recommendations.
14903 2000-11-17  Alexander Larsson  <alla@lysator.liu.se>
14905         * app/display.c:
14906         (ddisplay_add_display_area): Clip input rectangle to
14907         the visible part of the display.
14908         (ddisplay_scroll): Optimization, don't scroll and
14909         redraw if moving to the same position as before.
14911         * app/render_libart.c (renderer_libart_copy_to_window):
14912         Removed sanity check. Now moved to ddisplay_add_display_area().
14914         * lib/diavar.h:
14915         Added return at end of file.
14916         
14917 2000-11-13 Kevin Breit <battery841@mypad.com>
14918         * doc/en/dia-manual.sgml
14919                 Commited manual changes from Henry House <hajhouse@houseag.com>
14921 2000-10-21 Hans Breuer <Hans@Breuer.Org>
14922         * lib/beziershape.c :
14923                 The previous code was accessing unowned memory due to IHMO
14924                 wrong index calculation. Now it appears to be fixed.
14925                 *Please Review!*
14927         * lib/makefile.msc
14928         * plug-ins/makefile.msc
14929         * objects/makefile.msc
14930         * app/makefile.msc: (new files)
14931                 Makefiles for Dia on Win32, Micro$oft VC only.
14933         * plug-ins/pstricks/render_pstricks.c
14934         * plug-ins/dxf/dxf-import.c
14935         * plug-ins/shape/shape-export.c
14936         * plug-ins/svg/render_svg.c
14937         * app/commands.c
14938         * app/filedlg.c
14939         * app/preferences.c
14940         * app/render_eps.c
14941         * lib/sheet.c
14942         * lib/plug-ins.c
14943         * objects/custom/custom.c
14944         * objects/standard/image.c
14945                 portability (not only win32): use HAVE_UNISTD_H, HAVE_DIRENT_H 
14946                 where   appropriate, add missing prototypes like <string.h>
14948         * plug-ins/wmf/wmf_gdi.cpp
14949         * plug-ins/wmf/wmf_gdi.h:
14950                 start of wmf write functions for non Win32 platform. Not 
14951                 finished yet. The other way to get it working maybe to
14952                 link the plug-in against wine libs.
14953                 
14954         * plug-ins/wpg/wpg.c : add missing brace
14956         * app/load_save.c :
14957                 Handling for unknown objects at load time. Previously Dia
14958                 was crashing, if you try to load a file referencing objects
14959                 whiches plug-ins aren't installed/available. Now it spits out 
14960                 a warning and ignores the unknown objects.
14962         * app/interface.c
14963                 toolbox DND support for files like The Gimp does it.
14965         * app/main.c
14966         * app/app_procs.h
14967                 Simple splash screen support and usage.
14969         * app/app_procs.c
14970                 Splash screen, portability fixes, dont' g_error if there is
14971                 g_get_homedir return NULL. This may remove the one and only
14972                 FAQ for Win32.
14974         * app/menus.c :
14975                 Make it compile without ENABLE_NLS
14977         * app/render_libart.c :
14978                 Sanity check to avoid calling libart with wrong window coordinates.
14979                 They come from the update handler. Direct Gdk is dealing nicely
14980                 with coordinates out of range, libart does access un-owned memory
14981                 in this case, mostly causing crashes.
14983         * app/winmain.c: (new file) Export the Win32 Gui version of the
14984                 main function. This file is only required for Windoze.
14986         * app/splash.c: (new file) splash screen implementation
14988         * lib/color.h
14989         * lib/font.h
14990         * lib/diavar.h: (new file)
14991                 moved special variable export code to diavar.h, because it is
14992                 needed in color.h and font.h
14994         * lib/paper.c :
14995                 M$VC cann't export inlined functions. Quick hack to let it
14996                 link again. Probably the glib mechanics should be used here?
14998         * objects/UML/lifeline.c : initialize var before usage
15000         * objects/GRAFCET/step.c : removed unused var
15002 2000-10-14  James Henstridge  <james@daa.com.au>
15004         * app/render_gnomeprint.c (draw_image): change code so images
15005         don't get flipped when printing.
15007         * app/paginate_gnomeprint.c (diagram_print_gnome): check to make
15008         sure that the return value of
15009         gnome_print_context_new_with_paper_size is not NULL.
15011         * app/render_gnomeprint.c (draw_arc): add code to convert arcs
15012         into a series of bezier segments.
15013         (fill_arc): similar code to handle filled arc segments.
15015 2000-10-12  Fredrik Hallenberg  <hallon@lysator.liu.se>
15017         * app/app_procs.c
15018         * app/commands.c
15019         * app/dia-props.c
15020         * app/diagram.c
15021         * app/diagram.h
15022         * app/disp_callbacks.c
15023         * app/display.c
15024         * app/linewidth_area.c
15025         * app/paginate_psprint.c
15026         * app/preferences.c
15027         * app/undo.c
15028         * app/font.c
15029         * app/message.c
15030         * app/neworth_conn.c
15031         * app/orth_conn.c
15032         * objects/standard/box.c: various small changes to get rid of 
15033         annoying warnings (eg faulty prototypes and unused variables)
15035         * app/disp_callbacks.c
15036         * app/cursor.h
15037         * app/magnify.c
15038         * app/magnify.h: update magnify tool icon when pressing/releasing
15039         shift. I will try to make something more general so that similar
15040         things can be used by other tools.
15042         * shapes/SDL/inout.shape
15043         * shapes/SDL/return.shape: fixed some typos
15045 2000-10-09  James Henstridge  <james@daa.com.au>
15047         * objects/custom/shape_info.c (parse_path): apply patch from
15048         Robert Young <robertdotyoung@dsto.defence.gov.au> to fix bug
15049         #25221
15051 2000-10-08  James Henstridge  <james@daa.com.au>
15053         * objects/standard/image.c (image_set_props): if the file could not
15054         be loaded, show the broken image icon.
15056         * plug-ins/Makefile.am (SUBDIRS): add shape to the subdirs list.
15058         * plug-ins/shape/*: the shape export plugin by Steffen Macke.
15060         * app/interface.c (fill_sheet_wbox): use gdk-pixbuf to load the
15061         object icon when loading from a file.  This allows you to have PNG
15062         icon files for shapes.
15064 2000-10-07  James Henstridge  <james@daa.com.au>
15066         * app/Makefile.am (dia_LDADD): remove GDK_IMLIB_LIBS reference.
15068         * lib/Makefile.am, app/Makefile.am (INCLUDES): remove
15069         GDK_IMLIB_CFLAGS reference.
15071         * app/commands.c (help_about_callback): remove imlib code.
15073         * lib/dia_image.c: only include the pixbuf version of the image
15074         routines.
15076         * acconfig.h: remove the HAVE_GDK_PIXBUF flag from here.
15078         * configure.in (CPPFLAGS): remove the check for imlib, as we now
15079         require gdk-pixbuf.
15081         * plug-ins/pstricks/render_pstricks.c (new_pstricks_renderer):
15082         conditionally define \setfont as well.
15084 2000-10-05  James Henstridge  <james@daa.com.au>
15086         * plug-ins/pstricks/render_pstricks.c (new_pstricks_renderer): fix
15087         preamble so that we define \setlinejoinmode and \setlinecaps
15088         commands conditionally on them being undefined.  This way, the
15089         pstricks output files should work without modification, and will
15090         support the commands when they are implemented in pstricks.
15092 2000-10-05  Szabolcs Ban  <shooby@gnome.hu>
15094         * dia.desktop: added hungarian translations to dia.desktop
15096 2000-10-04  James Henstridge  <james@daa.com.au>
15098         * sheets/UML.sheet: fix typo.
15100         * objects/custom/shape_info.c: use strtod instead of g_strtod.
15101         (parse_path): actually call setlocale around strtod calls.
15103         * lib/dia_xml.c: use strtod rather than g_strtod.  We wrap each
15104         call in setlocale(LC_NUMERIC, "C"), so there is no reason to call
15105         the g_strtod wrapper.
15107         * shapes/SDL/: add SDL shapes from Rubens Ramos
15108         <rubens_ramos@yahoo.com>
15110         * acinclude.m4 (DIA_CHECK_CFLAG): fix up macro.
15112         * sheets/Makefile.am (SHEETS): add SDL.sheet to list.
15114         * shapes/MSE/: add Mobile Subscriber Equipment shapes from
15115         W. Michael Petullo <mike@flyn.org>.
15117         * sheets/Makefile.am (SHEETS): add civil.sheet (which got missed
15118         from the 0.86 tarball) and jigsaw.sheet.
15120         * configure.in: add shapes/jigsaw/Makefile to list of generated files.
15122         * shapes/jigsaw/: jigsaw shapes from Martin Hawlisch.
15124         * shapes/network/: add network-additional shapes here.
15126         * sheets/network.sheet: add the network-additional shapes from
15127         Martin Hawlisch <Martin.Hawlisch@bflow.com> to the main network
15128         sheet.
15130 2000-09-30  Fredrik Hallenberg  <hallon@lysator.liu.se>
15132         * configure.in: Updated ALL_LINGUAS
15134         * po/nl.po: Removed newline from translation
15136 2000-09-17  Asbjorn Pettersen  <asbjornP@dualog.no>
15138         * app/commands.c (help_about_callback): Use G_DIR_SEPARATOR_S in 
15139         logo filename generation. 
15141         * lib/dia_dirs.c (dia_get_data_directory): Handle empty subdir better.
15142         Avoiding "//dia_logo.png".
15144 2000-09-16  Asbjorn Pettersen  <asbjornP@dualog.no>
15146         * app/filedlg.c: add include <sys/types.h> to
15147         remove warning. (OS/2)
15149 2000-09-13  Cyrille Chepelov <chepelov@calixo.net>
15151         * objects/chronogram/chronoline_event.c (reparse_clevent):
15152         the __checksum routine was simply bogus. Redone it in a slightly
15153         saner way (reported by Michael Farr <mfarr@cs.latrobe.edu.au>).
15155 2000-09-10  Asbjorn Pettersen  <asbjornP@dualog.no>
15157         * app/create_object.c (create_object_button_press): 
15158         * app/modify_tool.c (click_select_object): 
15159         * lib/object.h: select renamed to selectf to prevent
15160         compiler problems with function select().  OS/2 version.
15162 2000-09-08  Karsten Weiss  <knweiss@gmx.de>
15164         * po/de.po: Updated.
15166 2000-09-07  Karsten Weiss  <knweiss@gmx.de>
15168         * dia.desktop: Added German translation
15169         * app/menus.c: "Diagram Propeties..." -> "Diagram Properties..."
15171 2000-08-29  Manuel de Vega Barreiro <barreiro@arrakis.es>
15173         * configure.in (ALL_LINGUAS): added "es"
15175 2000-08-28  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
15177         * app/magnify.c:
15178         * app/cursor.h:
15179         * app/cursor.c:
15180         * app/scroll_tool.c:
15181         Standardized cursor function get_cursor().  Magnify now has
15182         looking-glass cursor with + and -.
15184         * app/create_object.c (create_object_button_press): 
15185         Newly created connections now snap to connection points even when
15186         off the grid. 
15188 2000-08-17  Daniel Egger  <egger@suse.de>
15190         * app/menus.c: #ifdef'ed some code for the none GNOME
15191         case.
15192         * app/dia_embedd.c: Changed obvious hackery. Can anyone
15193         please have a look at the GNOME UI menu creation? The
15194         gnome-app-helper code is ages old and plainly broken!
15196 2000-08-15  Daniel Egger  <egger@suse.de>
15198         * app/commands.c:
15199         * app/commands.h:
15200         * app/diagram.c:
15201         * app/display.c:
15202         * app/menus.c:
15203         * app/select.c: First big patch to get the menus
15204         working again in the international version. Copied
15205         some code written by Sven and me from GIMP and
15206         thus implemented automatic tearoffmenu creation and
15207         proper translation. I also removed that pseudo
15208         radiomenu hack and cleaned up several translation
15209         hacks which have never really worked. All in all
15210         this is part I of the big menu patch. Enjoy and tell
15211         me if you detect any problems.
15213 2000-08-14  Daniel Egger  <egger@suse.de>
15215         * sheets/UML.sheet: Changed one German translation as
15216         suggested by Heribert Schuetz <hs@heribert-schuetz.de>.
15218 2000-08-10  Fredrik Hallenberg  <hallon@lysator.liu.se>
15220         * app/diapagelayout.c:
15221         * lib/diagramdata.c:
15222         * lib/diagramdata.h:
15223         * lib/Makefile.am:
15224         * lib/paper.c:
15225         * lib/paper.h: honour PAPERCONF env variable and /etc/papersize when
15226         selecting paper size for a new diagram. TODO: Use libpaper if 
15227         available and use gnome_paper-stuff if using GNOME.
15229         * sheets/Electric.sheet: fixed typo.
15230         
15231 2000-08-08  James Henstridge  <james@daa.com.au>
15233         * po/README: added a readme file to tell translators to translate
15234         the .sheet files as well.
15236         * app/commands.c (help_about_callback): fix small bug where we tried
15237         to gdk_bitmap_unref() the mask for the about box image, even though
15238         it was NULL.  Now check for a NULL mask.
15240 2000-08-07  Daniel Egger  <egger@suse.de>
15242         * sheets/*.sheet: Added translations for the name
15243         in the toolbar tab. Brushed up some descriptions 
15244         and some translations a bit.
15246 2000-08-06  James Henstridge  <james@daa.com.au>
15248         * plug-ins/svg/render_svg.c (new_svg_renderer): update public
15249         identifier and dtd url for SVG output.
15250         (new_svg_renderer): fix the output of the viewBox output.  The
15251         second two numbers are the width and height -- not the right
15252         and bottom sides of the box.
15254         * shapes/*/*.shape: update svg namespace URI.
15256         * objects/custom/shape_info.c (load_shape_info): change the
15257         namespace URI for custom shapes yet again to match the Candidate
15258         Recommedation.  It looks like this one will probably be the final
15259         one.
15261         * app/display.c (new_display): remove the code that sets ic and
15262         ic_attr members to NULL, as one of the previous function calls
15263         causes the display to be realised.  This means that the ic gets
15264         lost.  Thanks to Yukihiro Nakai <ynakai@redhat.com> for finding
15265         this one.
15267 2000-08-06  James Henstridge  <james@daa.com.au>
15269         * shapes/Makefile.am (SUBDIRS): add Civil back to list.
15271         * NEWS: fixed date in NEWS file, as I will release today.
15273         * README: updated the README a little.  Added note that Dia is now
15274         a GNU program.
15276         * dia.spec: fix up spec file.
15278         * plug-ins/wpg/wpg.c: changed DIAG_NOTE stuff here as well.
15280         * plug-ins/hpgl/hpgl.c: change Hans's DIAG_NOTE stuff so that we don't
15281         get heaps of warnings when you turn off debugging.
15282         Also made a few other warning fixes.
15284 2000-08-02  James Henstridge  <james@daa.com.au>
15286         * plug-ins/svg/Makefile.am (INCLUDES): add XML_CFLAGS to INCLUDES.
15288         * configure.in: update version number.
15290 2000-08-01  James Henstridge  <james@daa.com.au>
15292         * app/commands.c (help_about_callback): add Hans to about dialog.
15294         * doc/shape.dtd: dtd for shape file format.
15296         * doc/custom-shapes: update doc file about creating custom shapes.
15298         * shapes/*/*.shape: change namespace URI for the SVG portion to the
15299         one for the latest draft.
15301         * shapes/*/*.shape: fix up rect definitions.
15303         * objects/custom/shape_info.c (load_shape_info): recognise newer
15304         namespace tag for SVG.
15305         (parse_svg_node): the rect element should take attributes x, y, width
15306         and height -- not x1,y1,x2,y2.
15308         * plug-ins/svg/render_svg.c (new_svg_renderer): updated doctype
15309         output to use the newest draft DTD.
15311         * plug-ins/svg/svg.c: initialisation code for plugin.
15313         * plug-ins/svg/render_svg.c: move svg export code to a plugin.
15315         * plug-ins/svg/Makefile.am: makefile for svg plugin.
15317         * app/app_procs.c (internal_plugin_init): don't register the svg
15318         export filter here.
15320         * app/Makefile.am (dia_core_files): don't compile in render_svg.[ch]
15322 2000-07-31  James Henstridge  <james@daa.com.au>
15324         * objects/standard/textobj.c (textobj_get_defaults): 
15325         * objects/standard/polygon.c (polygon_get_defaults): 
15326         * objects/standard/image.c (image_get_defaults): 
15327         * objects/standard/ellipse.c (ellipse_get_defaults): 
15328         * objects/standard/box.c (box_get_defaults): 
15329         * objects/standard/beziergon.c (beziergon_get_defaults): 
15330         * objects/flowchart/parallelogram.c (pgram_get_defaults): 
15331         * objects/flowchart/ellipse.c (ellipse_get_defaults): 
15332         * objects/flowchart/diamond.c (diamond_get_defaults): 
15333         * objects/flowchart/box.c (box_get_defaults): 
15334         * objects/custom/custom_object.c (custom_get_defaults): 
15335         * objects/FS/flow.c (flow_get_defaults): 
15336         * objects/FS/flow-poly.c (flow_get_defaults): 
15337         * objects/FS/flow-ortho.c (orthflow_get_defaults): ref and sink the
15338         defaults widget.
15340         * app/defaults.c (defaults_show): don't keep on ref'ing the defaults
15341         widgets for various object types.
15342         (create_dialog): ref and sink the no_defaults_dialog.
15344         * app/preferences.c (prefs_create_dialog): change
15345         gtk_container_border_width call to gtk_container_set_border_width.
15347 2000-07-29  James Henstridge  <james@daa.com.au>
15349         * app/commands.c (view_aa_callback): show a warning dialog if
15350         you start AA mode.
15352         * app/interface.c (fill_sheet_menu): don't add a menu item for
15353         empty sheets.
15355 2000-07-26  James Henstridge  <james@daa.com.au>
15357         * plug-ins/dxf/dxf-export.c: updates from Steffen to fix bug #18677
15359         * app/menus.c: remove edit grid menu item.
15361         * app/commands.[ch] (view_edit_grid_callback): removed.
15363         * app/display.c (new_display): don't initialise removed Grid members.
15365         * app/grid.c: remove unused functions.
15367         * app/grid.h: remove dialog related stuff from Grid structure.
15368         Remove prototypes for dialog functions.
15370         * app/menus.c: add to menus
15371         
15372         * app/commands.[ch] (view_diagram_properties_callback): new command
15373         for showing the diagram properties dialog.
15375         * app/dia-props.[ch]: a new diagram properties dialog.  To replace
15376         the edit grid dialog.
15378 2000-07-25  James Henstridge  <james@daa.com.au>
15380         * app/grid.c (grid_x_update): 
15381         (grid_y_update): as the grid setting is stored with the diagram,
15382         update all displays when a change is made.
15384         * app/modify_tool.c (modify_motion): use new snap_to_grid sig.
15386         * app/create_object.c (create_object_button_press): 
15387         (create_object_motion): use new snap_to_grid signature.
15389         * app/grid.c (grid_draw): use the grid settings in the DiagramData,
15390         and handle invisible grid lines.
15391         (snap_to_grid): use new grid settings.  Also changed signature to
15392         take a DDisplay rather than Grid pointer.
15393         (grid_show_dialog): get the defaults from the correct place.
15395         * app/display.c (new_display): do not set ddisp->grid.width_[xy].
15397         * app/diagram.c (new_diagram): set the grid size defaults from the
15398         user preferences.
15400         * app/load_save.c (diagram_data_save): save grid and guide info to
15401         diagram file.
15402         (diagram_data_load): add guide and grid load support.
15404         * lib/diagramdata.c (new_diagram_data): set the new DiagramData
15405         members.
15407         * lib/diagramdata.h: add members to DiagramData for grid and guide
15408         settings.
15410         * configure.in (BONOBO_LIBS): update configure scripts
15412         * app/dia.oafinfo: oafinfo file for dia embeddables.
15414         * app/dia_embedd.c: add OAF support.
15416 2000-07-24  James Henstridge  <james@daa.com.au>
15418         * plug-ins/wpg/Makefile.am: 
15419         * plug-ins/pstricks/Makefile.am: 
15420         * plug-ins/hpgl/Makefile.am: 
15421         * plug-ins/dxf/Makefile.am: same here.
15423         * plug-ins/cgm/Makefile.am: remove LIBADD.  Dia already links with
15424         the required libraries, and the link line was causing libtool not
15425         to build a shared library on some systems :(
15427         * plug-ins/cgm/cgm.c (write_real): the initial if statement should
15428         be checking x, not n.
15430 2000-07-23  James Henstridge  <james@daa.com.au>
15432         * app/preferences.c (prefs_data): set the "reset tools after
15433         create" preference to true by default.  That seems to be what most
15434         people expect.
15436         * app/interface.c (create_sheets): instead of a notebook, use an
15437         option menu that updates the sheet tools.  The notebook tabs were
15438         getting a bit unwieldly, so the option menu should fix that.  This
15439         also reduces the number of widgets in the tools radio button
15440         group, which should make the UI a little more responsive.
15442 2000-07-19  Fatih Demir <kabalak@gmx.net>
15443         
15444         * configure.in: Added tr to ALL_LINGUAS.
15445                 [ Yeah, we're now having a Turkish translation,
15446                    too. ]
15447         
15448         * dia.desktop: Added the Turkish entries.
15450 2000-07-02  Fredrik Hallenberg  <hallon@lysator.liu.se>
15452         * doc/diagram.dtd: changed string-element so it conforms to the
15453         output from dia.
15455 2000-06-30  Fredrik Hallenberg  <hallon@lysator.liu.se>
15457         * configure.in: added chinese. 
15458         Use AM_PROG_LIBTOOL instead of AC_PROG_LIBTOOL.
15460         * app/app_procs.c:
15461           app/load_save.c:
15462           app/render_svg.c:
15463           lib/dia_xml.c:
15464           lib/plug-ins.c:
15465           lib/sheet.c:
15466           objects/custom/shape_info.c: 
15467           shapes/Circuit/npn.shape:
15468           shapes/Circuit/pnp.shape:
15469           sheets/*.sheet: dia now works with libxml2.
15470         Libxml2 is a bit more picky when parsing xml and reported errors on all 
15471         sheet files because they use non ascii characters (added 
15472         encoding="iso-8859-1"). Also "xml:lang=en@layman" is not proper xml so 
15473         I commented out these.
15475 2000-06-30  Christopher R. Gabriel  <cgabriel@linux.it>
15477         * configure.in (ALL_LINGUAS): added Italian
15479 2000-06-27  Sung-Hyun Nam  <namsh@lgic.co.kr>
15481         * configure.in (ALL_LINGUAS): added Korean
15483 2000-06-25  James Henstridge  <james@daa.com.au>
15485         * objects/flowchart/parallelogram.c (pgram_create): use default font
15486         and add properties interface support.
15488         * objects/flowchart/ellipse.c (ellipse_create): use default font and
15489         add properties interface support.
15491         * objects/flowchart/diamond.c (diamond_create): use default font and
15492         add properties interface code.
15494         * objects/flowchart/box.c (box_create): use default font.
15496         * objects/custom/custom_object.c (custom_create): use default font
15497         here too.
15499         * objects/standard/textobj.c (textobj_create): update to use default
15500         font.
15502         * lib/attributes.c: add implementations.
15504         * lib/attributes.h (attributes_[gs]et_default_font): add function
15505         prototypes for setting/getting a default font.
15507 2000-06-24  James Henstridge  <james@daa.com.au>
15509         * app/paginate_gnomeprint.h: updated prototype.
15511         * app/paginate_gnomeprint.c (paginate_gnomeprint): update to use
15512         diagram page settings.
15514         * objects/standard/beziergon.c (beziergon_copy): same here.
15516         * objects/standard/polygon.c (polygon_copy): copy the fill colour
15517         as well.
15519         * app/undo.h: 
15520         * app/tool.h (tool_options_dialog_show): 
15521         * app/scroll_tool.h (free_scroll_tool): 
15522         * app/render_svg.h: 
15523         * app/render_libart.h (renderer_libart_copy_to_window): 
15524         * app/render_gdk.h (renderer_gdk_copy_to_window): 
15525         * app/properties.h (properties_hide_if_shown): 
15526         * app/preferences.h (prefs_load): 
15527         * app/object_ops.h: 
15528         * app/modify_tool.h (free_modify_tool): 
15529         * app/magnify.h (free_magnify_tool): 
15530         * app/linewidth_area.h (linewidth_area_create): 
15531         * app/layer_dialog.h: 
15532         * app/handle_ops.h (handle_is_clicked): 
15533         * app/group.h: 
15534         * app/grid.h (grid_destroy_dialog): 
15535         * app/defaults.h (defaults_show): 
15536         * app/cut_n_paste.h (cnp_exist_stored_objects): 
15537         * app/create_object.h (free_create_object_tool): 
15538         * app/connectionpoint_ops.h (diagram_unconnect_selected): 
15539         * app/commands.h: 
15540         * app/color_area.h (color_area_create): 
15541         * app/app_procs.h (app_is_embedded): remove extern keyword from
15542         function prototypes.
15544         * lib/text.h: 
15545         * lib/sheet.h (load_all_sheets): 
15546         * lib/render_store.h: 
15547         * lib/render_object.h (render_object_load): 
15548         * lib/polyshape.h (polyshape_closest_segment): 
15549         * lib/poly_conn.h (polyconn_closest_segment): 
15550         * lib/orth_conn.h: 
15551         * lib/object.h: 
15552         * lib/objchange.h (new_object_state_change): 
15553         * lib/neworth_conn.h (neworthconn_add_segment): 
15554         * lib/message.h (message_error): 
15555         * lib/lazyprops.h: 
15556         * lib/geometry.h: 
15557         * lib/font.h (font_descent): 
15558         * lib/focus.h (remove_focus): 
15559         * lib/element.h: 
15560         * lib/diagramdata.h: 
15561         * lib/dia_xml.h (data_add_composite): 
15562         * lib/dia_image.h: 
15563         * lib/connpoint_line.h: 
15564         * lib/connection.h (connection_move_handle): 
15565         * lib/color.h: 
15566         * lib/attributes.h (attributes_set_default_line_style): 
15567         * lib/arrows.h (arrow_draw): remove extern keyword from function
15568         definitions.  It is not required for functions.
15570         * plug-ins/dxf/Makefile.am (INCLUDES): 
15571         * plug-ins/pstricks/Makefile.am (INCLUDES): 
15572         * plug-ins/cgm/Makefile.am (INCLUDES): 
15573         * objects/SADT/Makefile.am (INCLUDES): 
15574         * objects/chronogram/Makefile.am (INCLUDES): 
15575         * objects/GRAFCET/Makefile.am (INCLUDES): 
15576         * objects/flowchart/Makefile.am (INCLUDES): 
15577         * objects/sybase/Makefile.am (INCLUDES): 
15578         * objects/FS/Makefile.am (INCLUDES): 
15579         * objects/standard/Makefile.am (INCLUDES): 
15580         * objects/network/Makefile.am (INCLUDES):
15581         * objects/UML/Makefile.am (INCLUDES): same here.
15583         * objects/ER/Makefile.am: changed inclusion of some macros to
15584         variables.
15586         * lib/plug-ins.c (dia_register_plugins_in_dir): use a few defines to
15587         handle the plug in extension, rather than have all the #ifdef's in
15588         the code.
15590         * plug-ins/Makefile.am: add renderer.inc to dist.
15592         * plug-ins/dxf/dxf-import.c: Updates from Steffen Macke.
15594 2000-06-11  Asbjorn Pettersen  <asbjornP@dualog.no>
15596         * lib/plug-ins.c: Handle OS/2 dll's too.
15598 2000-06-07  James Henstridge  <james@daa.com.au>
15600         * app/plugin-manager.c (get_plugin_manager): set some table
15601         packing options to make it look a little nicer.
15603         * plug-ins/hpgl/Makefile.am, plug-ins/wpg/Makefile.am: added
15604         makefiles for these plug-ins.
15606         * plug-ins/{hpgl,wmf,wpg}/*: removed dos style cariage returns.
15608         * configure.in: added hpgl and wpg directories to build.  Added
15609         note about whether gnome-print support was enabled, and noted that
15610         it is not recommended.
15612 2000-06-06  James Henstridge  <james@daa.com.au>
15614         * plug-ins/{hpgl,wmf,wpg}/*: Hans Breuer's plug-ins.  They still need
15615         a little work, but I am checking them in so I don't lose them.
15617 2000-06-01  James Henstridge  <james@daa.com.au>
15619         * objects/standard/arc.c: added extra properties.
15621         * lib/beziershape.c (beziershape_closest_handle): fix a bug where I
15622         was using the wrong index into the handles array.  This gets corner
15623         type changing working correctly.
15625         * lib/properties.[ch]: add support for BezPoint's and BezPoint arrays
15626         to properties code (no editing or loading yet though).  Also added
15627         support for point array manipulation through the offsets interfaces.
15629         * lib/Makefile.am (INCLUDES): added include of gdk-pixbuf 
15631         * app/interface.c (origin_button_press): changes so the origin
15632         button doesn't grab the pointer when we pop up the menu.
15634         * app/commands.c (help_about_callback): fix small memory leak in
15635         about box code.
15637         * app/menus.c (menus_init): fixed breakage I introduced in the non
15638         gnome menus when I was doing the menu changes.  The tearoffs work
15639         really nicely in plain gtk mode as well.
15641         * objects/standard/beziergon.c (beziergon_create): changed the
15642         returned handles to match the handle numbering changes.  Now
15643         segment addition and removal works correctly with undo!
15645         * lib/beziershape.c: various changes to the code.  Changed the
15646         numbering of handles, and fixed the segment removal code.
15648 2000-05-31  James Henstridge  <james@daa.com.au>
15650         * objects/standard/beziergon.c: remove connection point handling.
15651         There is still a bit of work to be done to get adding and removing
15652         of segments working correctly.
15654         * lib/beziershape.c: add connection point handling to beziershape.
15655         I set it for two connection points per segment.
15657 2000-05-30  James Henstridge  <james@daa.com.au>
15659         * objects/standard/polygon.c: don't do connectionpoint handling.
15661         * lib/polyshape.c: changed to handle connection points internally.
15662         Also, don't worry about connections to handles on polyshape, as
15663         all handles are non connectable.
15665 2000-05-30 Ville Hautamaki <villeh@cs.joensuu.fi>
15667         * configure.in: Added finnish
15668         
15669 2000-05-30  James Henstridge  <james@daa.com.au>
15671         * sheets/*.sheet: translation updates to the .sheet files.
15673         * po/fr.po: updated po file from Christophe Merlet.
15675         * menus.h: removed prototypes for functions which have been removed.
15677 2000-05-29  James Henstridge  <james@daa.com.au>
15679         * app/layer_dialog.c (layer_dialog_set_diagram): set the selected
15680         item in the option menu when changing selected diagram.
15682         * app/dia_embedd.c (view_factory): fix up function to work with new
15683         menus API.
15685         * app/disp_callbacks.c (ddisplay_realize): remove call to
15686         display_set_active from here.
15687         (ddisplay_canvas_events): move call here.  This gets rid of all the
15688         warnings, as the renderer has been fully set up correctly at this
15689         point.
15691         * app/menus.c (menus_init): add the tearoff item to the start of the
15692         right click menu.
15694         * app/app_procs.c (create_user_dirs): we don't need to create the
15695         menus directory anymore.
15697         * app/disp_callbacks.c (ddisplay_popup_menu): it should not be
15698         necessary to update the menu state here, as it was done when the
15699         active display was set.
15701         * app/display.c (display_set_active): update the menu state when
15702         changing active displays.
15704         * app/interface.c (origin_button_press): set the display as active
15705         when a click is made on the menu button.
15707         * app/menus.c (menus_init): set up a quit function to save the accels
15708         at exit.
15709         Add tearoff items for the non GNOME menus, add accelerators for
15710         several GNOME menus.
15712         * app/disp_callbacks.c (ddisplay_popup_menu): get the menu with
15713         menus_get_image_menu().
15715         * app/menus.c (menus_get_item_from_path): use display_menus here
15716         rather than ddisp->popup.
15718         * app/display.h: remove the popup member in the DDisplay structure.
15720         * app/interface.c: remove option of not using wrap box.
15721         (create_toolbox): change to always use menus_get_toolbox_menubar
15722         even when using gnome menus.
15723         (create_display_shell): use menus_get_image_menu to load accelerators
15724         only -- not the actual popup menu.
15726         * app/menus.c (menus_init): new function to create the menus.
15727         (menus_get_toolbox_menubar): use this function whether gnome is
15728         in use or not.  Changed to use menus_init.
15729         (menus_get_image_menu): same here.  Also, now this function always
15730         returns the same menu, rather than a new one each time.
15731         (menus_init): read a menurc file to load accelerators here.
15733 2000-05-28  James Henstridge  <james@daa.com.au>
15735         * app/display.c (ddisplay_really_destroy): unset active display if
15736         active display is destroyed.
15737         (ddisplay_active): simplify function to return active_display as set
15738         by display_set_active.  This allows using a pinned menu with any
15739         display -- not just the one it was popped up from.
15740         (display_set_active): notify the layer dialog of change of diagrams
15741         when active diagram changes.
15743         * app/disp_callbacks.c (ddisplay_canvas_events): set active display
15744         on button and key presses.
15745         (ddisplay_realize): set active display on realize.
15747         * app/display.c (display_set_active): simple implementation of this
15748         function.
15750         * app/display.h (display_set_active): add prototype for setting
15751         the active display.
15753         * app/interface.c (create_display_shell): don't give focus to the
15754         menu button.
15756         * app/menus.c: fix up menus for Beziergon.
15758         * app/interface.c (create_display_shell): make the widget in the
15759         top left corner a button that can be used to pop up the right click
15760         menu, like in gimp and sketch.
15762         * app/disp_callbacks.c (ddisplay_popup_menu): new function to popup
15763         the display menu.
15765         * objects/standard/beziergon.c (beziergon_set_corner_type_callback):
15766         add code to set corner types for beziergon.
15768         * lib/beziershape.c (beziershape_set_corner_type): fix up corner type
15769         setting code.
15770         (beziershape_move_handle): use the previous corner type for right
15771         controls.
15773         * app/interface.c (tool_data): add beziergon to toolbox.
15775         * objects/standard/standard.c (dia_plugin_init): initialise the new
15776         Beziergon object type.
15778         * objects/standard/beziergon.c: an object based on BezierShape.
15780         * lib/dummy_dep.h (dummy_dep): added to dummy_dep.
15782         * lib/beziershape.[ch]: new files implementing a bezier shape.
15784 2000-05-26  James Henstridge  <james@daa.com.au>
15786         * lib/text.c (text_key_event): handle multibyte inserts.
15787         (text_key_event): also add home and end keybindings.
15789         * app/interface.c (create_display_shell): connect handlers for
15790         focus_in_event, focus_out_event, realize and unrealize signals.
15792         * app/display.[ch] (new_display): initialise input context members.
15794         * app/disp_callbacks.[ch]: added XIM support here.
15796         * lib/font.c (suck_font): the black and white pixel values should be
15797         taken from a 1 bit colormap rather than the default colormap.
15799         Hans Breuer's Windows patches ...
15801         * lib/font.c: use Courier New for fixed width font on windows
15802         machines.
15804         * lib/dia_image.h: change to "struct _DiaImage".
15806         * lib/dia_image.c: change "struct DiaImage" to "struct _DiaImage"
15808         * app/disp_callbacks.c (ddisplay_canvas_events): allow ctrl+right
15809         mouse button for object menu.  This will make two button mouse owners
15810         happier.
15812 2000-05-25  James Henstridge  <james@daa.com.au>
15814         * app/filedlg.c (file_open_ok_callback): use diagram_load here.
15816         * app/app_procs.c (app_init): add extra NULL argument to call of
15817         diagram_load.
15819         * app/load_save.h: remove prototype.
15821         * app/load_save.c: remove diagram_data function here.
15823         * app/diagram.h: added prototype.
15825         * app/diagram.c (diagram_load): new function here, which uses import
15826         filters.
15828         * plug-ins/dxf/dxf.c: register the import filter as well.
15830         * plug-ins/dxf/dxf-import.c: added (unfinished) DXF import filter from
15831         Steffen Macke <macke@heini.fbbwu.fh-lueneburg.de>
15833         * objects/standard/line.c: add start_point and end_point properties
15834         to standard line object.
15836 2000-05-21  James Henstridge  <james@daa.com.au>
15838         * app/paginate_psprint.c: added missing include of locale.h.
15840         * objects/custom/custom_object.c (custom_draw): use fabs rather than
15841         abs for scaling factors.
15842         (custom_distance_from): same here.
15844         * dia.spec: make sure rpm doesn't bomb out when LINGUAS isn't set.
15846 2000-05-18  James Henstridge  <james@daa.com.au>
15848         * po/POTFILES.in: updated POTFILES.in.
15850         * dia.spec: incremented version number in spec file.
15852         * NEWS: added (lots of) news items for the 0.85 release.
15854         * app/preferences.c (prefs_save): set LC_NUMERIC to C while writing
15855         the config file.
15857         * configure.in: updated version number here.
15859         * app/Makefile.am (run_dia.sh): include plug-ins in the lib path.
15861 2000-05-17  James Henstridge  <james@daa.com.au>
15863         * app/app_procs.c (internal_plugin_init): register the native import
15864         filter.
15866         * app/load_save.c (diagram_data_load, diagram_load): split this
15867         function into two -- one that does all the work on the DiagramData
15868         structure, and the other that provides compatibility with the old
15869         function.
15870         (dia_import_filter): use diagram_data_load to define an import
15871         filter.
15873         * app/diagram.h (new_diagram): added const to prototype.
15875         * app/filedlg.c (file_open_callback): change to use new import filter
15876         code.
15878         * lib/filter.c: added import filter management functions.
15880         * lib/filter.h: added prototypes for import filter interface.
15882         * app/commands.c (help_about_callback): updated about dialog to
15883         contain a few more names.
15885 2000-05-16  James Henstridge  <james@daa.com.au>
15887         * configure.in (Configuration): added a status message to the end of
15888         the configure script to give the user some idea of what was
15889         configured.
15891         * plug-ins/dxf/Makefile.am: Makefile for new plugin.
15893         * plug-ins/dxf/dxf.c (dia_plugin_init): added file to initialise the
15894         plugin.
15896         * plug-ins/dxf/dxf-export.c: new file -- Steffen Macke's DXF export
15897         filter for dia.
15899         * configure.in (AM_PATH_LIBART): use the check function provided
15900         with libart rather than our own code.  It is more reliable, and
15901         it only requires that people who build out of CVS have libart.m4
15902         installed (not necessarily all of libart).
15903         (AM_PATH_GDK_PIXBUF): same here for gdk-pixbuf.
15905 2000-05-12  Andreas Hyden  <a.hyden@cyberpoint.se>
15907         * dia.desktop: Added Swedish translation.
15909 2000-05-09  James Henstridge  <james@daa.com.au>
15911         * lib/dia_xml.c: you can't free a const pointer, so remove const
15912         from variable definitions.
15914         Explicitely set LC_NUMERIC where needed, as sometimes it isn't
15915         initialised correctly.
15917         * app/render_svg.c (export_svg): set locale to C.
15919         * app/paginate_psprint.c (paginate_psprint): set locale to C.
15921         * app/render_eps.c (export_eps): set locale to C for EPS export.
15923         * lib/dia_xml.c (data_add_real): change to C locale for snprintf call.
15924         (data_add_point): same here.
15925         (data_add_rectangle): same here.
15926         (data_real): use g_strtod to convert strings to real numbers, so that
15927         locales are taken into account.
15928         (data_point): same here.
15929         (data_rectangle): same here.
15931         * AUTHORS: added Henk and Jacek to authors file.
15933         Daniel Egger's code cleanups.
15935         * app/select.c (select_invert_callback): remove unused variable.
15937         * app/plugin-manager.c (get_plugin_manager): fix typo.
15939         * app/load_save.c (read_connections, write_objects): 
15940         (write_connections): made some functions static.
15942         * app/interface.c (toolbox_delete, toolbox_destroy): made some
15943         functions static.
15945         * app/filedlg.c (file_export_callback): remove unused variable.
15947         * app/app_procs.c: various warning fixes.
15949         Integrating Jacek Pliszka's pstricks export filter.
15951         * plug-ins/pstricks/pstricks.c: code to initialise the plugin.
15953         * plug-ins/pstricks/render_pstricks.[ch]: Jacek Pliszka's pstricks
15954         renderer (with a few small modifications by me).
15956         * plug-ins/pstricks/Makefile.am: new makefile for pstricks plug-in.
15958         * plug-ins/Makefile.am (SUBDIRS): add pstricks subdirectory.
15960 2000-05-07  Alexander Larsson  <alla@lysator.liu.se>
15962         * configure.in:
15963         * sheets/Makefile.am:
15964         * shapes/Makefile.am:
15965         * shapes/Civil/Makefile.am:
15966         * sheets/civil.sheet:
15967         * shapes/Civil/*:
15968         Added civil/hydraulic/structural engineering objects from
15969         sdteffen <macke@heini.fbbwu.fh-lueneburg.de>.
15970         
15971 2000-05-07  Alexander Larsson  <alla@lysator.liu.se>
15973         * objects/FS/flow-poly.c:
15974         * objects/FS/flow.c:
15975         Fix division by zero in point_normalize().
15976         Patch by David Thompson <dcthomp@mail.utexas.edu>
15978 2000-04-27  Lars Clausen  <lrclause@cs.uiuc.edu>
15980         * lib/arrows.c:
15981         * lib/bezier_conn.c:
15982         * lib/connpoint_line.c:
15983         Added checks for zero-length lines before calls to point_normalize.
15985 2000-04-24  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
15987         * app/preferences.c (prefs_data): Changed
15988         reversed_dragging_intersects to not make the dialog ridiculously
15989         wide.
15990         
15991 2000-04-22  James Henstridge  <james@daa.com.au>
15993         Hans's win32 patches:
15995         * app/export_png.c: include message.h
15996         * app/interface.c: include dia_dirs.h
15997         * app/linewidth_area.c: check for rint
15998         * app/main.c: include interface.h
15999         * app/paginate_psprint.c: remove unused variable.
16000         * app/preferences.c: include message.h
16001         * app/render_svg.c: include stdlib.h
16002         * app/select.c: include object_ops.h
16003         * lib/dia_dirs.c: miscelaneous fixes for win32.
16004         * lib/dia_image.c: include string.h
16005         * lib/plug-ins.c: look for .dll files rather than .la files on win32.
16006         * lib/properties.c: include stdlib.h
16007         * lib/properties.h: define extra data for standard properties as
16008         static variables on win32 (to get around dynamic linker problems).
16009         * objects/standard/polygon.c: polygon_create_change missing return
16010         statement.
16012 2000-04-18  Pablo Saratxaga <pablo@mandrakesoft.com>
16014         * configure.in (ALL_LINGUAS): added Catalan
16016 2000-04-18  James Henstridge  <james@daa.com.au>
16018         * objects/standard/bezier.c (bezierline_get_object_menu): add a
16019         separator to the object menu between the add/remove segment items
16020         and the corner type items.
16021         (bezierline_get_object_menu): add code to disable the menu item for
16022         the current corner type.  Really just a cosmetic change.
16024         * app/disp_callbacks.c (create_object_menu): handle DiaMenuItems with
16025         a NULL for the label or with no associated callback.
16027         * objects/standard/bezier.c (bezierline_menu_items): use the
16028         enumeration values rather than numeric values for the corner types.
16030         * lib/bezier_conn.[ch]: added a corner_types member to the BezierConn
16031         structure, and add code to handle it.  Also, don't save the corner
16032         types inline in the bez_points node.  The way it is conditionally
16033         including the element just feels like it will break.
16035         * lib/geometry.h (BezPoint): removed the corner_type stuff from
16036         BezPoint.  The corner type stuff is a user interface level idea rather
16037         than something required by the renderer, so should be taken care of
16038         at the object level.
16040 2000-04-17  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
16042         * configure.in: Fixed some problems with the gdk-pixbuf/imlib
16043         checks.  Weren't able to reproduce original bug, tough.
16045 2000-04-16  Cyrille Chepelov  <chepelov@calixo.net>
16047         * sheets/Electric.sheet:
16048         * sheets/Contact.sheet:
16049         * sheets/Pneumatic.sheet:
16050         * sheets/Circuit.sheet: sprayed some <br/>'s around.
16051         (added a few French translations in the last file)
16052         
16053 2000-04-16  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
16055         * lib/geometry.h: 
16056         * lib/bezier_conn.h: 
16057         * objects/standard/bezier.c: 
16058         * lib/bezier_conn.c: Support for cuspy, smooth and symmetric
16059         bezier points.  Only one minor problem known:  Menus are active
16060         for endpoints minor handles.
16061         11:28: Save and load now works, too.
16062         (bezierconn_closest_major_handle): 12:03: New function to get the
16063         non-control point handle associated with the nearest control
16064         point.  
16065         Also fixed the menu activation problem, and made remove_segment
16066         not remove the endpoint.
16068 2000-04-15  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
16070         * configure.in: Added check for gdk-pixbuf being >= 0.7.0 since
16071         new API is in use.
16073 2000-04-15  Asbjorn Pettersen  <asbjornP@dualog.no>
16075         * lib/plug-ins.c: Added <sys/types.h> and moved <fcntl.h> below
16076         <sys/stat.h>.   OS/2 patch.
16078 2000-04-15  James Henstridge  <james@daa.com.au>
16080         * objects/FS/flow-ortho.c, objects/FS/function.c: Applied David
16081         Thompson's patch that adds undo support to the function structure
16082         diagram objects.
16084 2000-04-14  James Henstridge  <james@daa.com.au>
16086         * objects/custom/custom_object.c (custom_distance_from): new
16087         implementation of distance algorithm that actually takes the
16088         display list into account when calculating the distance.  Much nicer
16089         than a simple bounding box.
16091 2000-04-13  Lars Clausen  <lrclause@cs.uiuc.edu>>
16093         * lib/geometry.c (line_crosses_ray): Fixed division by zero bug
16095 2000-04-12  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
16097         * objects/standard/polygon.c: Start of polygons own changes (for
16098         connectionpoints).  Need to do seperate changes in polyshape, too,
16099         rather than reuse the bezier changes.
16101 2000-04-13  James Henstridge  <james@daa.com.au>
16103         * lib/dia_image.c (dia_image_draw): use the new enumeration values
16104         from after the gdk-pixbuf cleanup.
16106         * lib/geometry.c (bez_point_distance_and_ray_crosses): fix up limit
16107         on for loop.  Last set of coefficients were not beeing calculated,
16108         which caused a bit of breakage.
16110         * lib/bezier_conn.c (bezierconn_closest_segment): use the new
16111         functions in geometry.c for calculating the closest segment.
16112         (bezierconn_distance_from): use distance_bez_line_point to calculate
16113         the distance.
16115         * lib/geometry.c (distance_bez_line_point): new function to calculate
16116         the distance from an open bezier line to a point.
16117         (distance_bez_shape_point): new function to calculate the distance
16118         from a closed bezier shape.
16119         (distance_ellipse_point): new function to calculate the distance from
16120         a filled ellipse to a point.
16122         * lib/geometry.h (BezPoint): moved this structure here from render.h
16124 2000-04-12  James Henstridge  <james@daa.com.au>
16126         * lib/geometry.c (distance_bez_seg_point): new function to calculate
16127         the distance from a bezier segment.
16129         * lib/polyshape.c (polyshape_distance_from): use distance_polygon_point
16130         to calculate the distance from the object.
16132         * lib/geometry.c (distance_polygon_point): function for calculating
16133         the distance from a polygon to a point.
16135 2000-04-12  Cyrille Chepelov  <chepelov@calixo.net>
16137         * app/interface.c:
16138         * lib/sheet.[ch]: added a <br/> tag in sheet files, so that line 
16139         breaks can be inserted in the tool box. 
16141         * doc/sheet.dtd: updated the DTD
16142         * sheets/GRAFCET.sheet: tried <br/> on that sheet (more to come).
16143         
16144 2000-04-12  James Henstridge  <james@daa.com.au>
16146         * app/plugin-manager.c (get_plugin_manager): use the GTK_DIALOG
16147         macro if the dialog is a GtkDialog :(
16149 2000-04-11  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
16151         * objects/standard/polygon.c: Connectionpoints now properly
16152         managed in a GList.  As far as I can tell, this will not dieturb
16153         the order (but I have the nagging doubt...)
16155         * lib/polyshape.c: No longer knows about connectionpoints.
16157 2000-04-11  James Henstridge  <james@daa.com.au>
16159         * app/Makefile.am: fix makefile for bonobo build.
16161         * configure.in: fix checks for bonobo.
16163         * app/menus.c: added entries for the plugin manager.
16165         * app/Makefile.am (dia_core_files): added plugin manager to files
16166         list.
16168         * app/plugin-manager.[ch]: the plugin manager dialog.
16170         * app/display.c (display_update_menu_state): set the antialiased
16171         menu entry to the correct value.
16173 2000-04-11  Cyrille Chepelov  <chepelov@calixo.net>
16175         * objects/custom/custom_object.c: not all renderers like ellipses with
16176         negative dimensions. This could cause ellipses to disappear when using
16177         the flip_h and flip_v functions.
16179         * samples/grafcet.dia: fixed speling and correctness.
16180         
16181 2000-04-11  James Henstridge  <james@daa.com.au>
16183         * lib/plug-ins.[ch]: added more accessors for use by a plugins dialog.
16184         exposed the dia_plugin_load and dia_plugin_unload functions.
16186         * lib/plug-ins.c (plugin_load): change plugin_load to work on an
16187         already created PluginInfo structure.
16189         * app/app_procs.c (app_exit): call dia_pluginrc_write() to write
16190         the pluginrc file.
16192         * lib/sheet.c: fix up call to dia_config_filename.
16194         * lib/plug-ins.[ch]: started writing code for handling a pluginrc
16195         file.  This would save information such as which plugins not to
16196         load during startup.
16198 2000-04-09  James Henstridge  <james@daa.com.au>
16200         * lib/sheet.c: use dia_config_filename to resolve file in ~/.dia.
16202 2000-04-10  Alexander Larsson  <alla@lysator.liu.se>
16204         * lib/plug-ins.c (dia_register_plugins):
16205         Don't free the value returned from g_getenv.
16207 2000-04-09  Anders Carlsson  <andersca@gnu.org>
16209         * app/preferences.h: Add reverse_rubberbanding_intersects preference variable.
16211         * app/preferences.c (prefs_data): Add reverse_rubberbanding_intersects preference data.
16213         * app/modify_tool.c (modify_button_release): If rubberbanding is done from 
16214         right to left, select objects that intersect the rubberbanding rectangle
16215         instead of selecting objects that are in the rectangle.
16217         * lib/diagramdata.c (layer_find_objects_intersecting_rectangle): Add function.
16219         * lib/diagramdata.h: Likewise.
16222 2000-04-09  James Henstridge  <james@daa.com.au>
16224         * lib/plug-ins.[ch]: add copyright messages to files.
16226         * plug-ins/cgm/cgm.c (dia_plugin_init): convert plugin over to new
16227         plugin interface.
16229         * objects/sybase/sybase.c (dia_plugin_init): 
16230         * objects/network/network.c (dia_plugin_init): 
16231         * objects/flowchart/flowchart.c (dia_plugin_init): 
16232         * objects/custom/custom.c (dia_plugin_init): 
16233         * objects/chronogram/chronogram.c (dia_plugin_init): 
16234         * objects/UML/uml.c (dia_plugin_init): 
16235         * objects/SADT/sadt.c (dia_plugin_init): 
16236         * objects/GRAFCET/grafcet.c (dia_plugin_init): 
16237         * objects/FS/fs.c (dia_plugin_init): 
16238         * objects/ER/er.c (dia_plugin_init): updated plugin load code for
16239         object libraries.
16241         * objects/standard/standard.c (dia_plugin_init): change over to new
16242         plugin interface.
16244         * lib/plug-ins.h (DIA_PLUGIN_CHECK_INIT): added a macro to define
16245         the version checker for plugins.
16247         * app/app_procs.c: remove plugin loading code from here, and use
16248         code from plug-ins.[ch].  Also move registration of internal
16249         objects/filters to a `builtin' plugin.
16251         * lib/Makefile.am (libdia_a_SOURCES): added plug-ins.[ch] to library.
16253         * configure.in: use AC_PROG_LIBTOOL rather than AM_PROG_LIBTOOL.
16255         * app/Makefile.am (EXTRA_DIST): you can't include a conditionally
16256         defined variable in EXTRA_DIST.
16258         * app/preferences.h: removed dia_config_filename from header.
16260         * app/preferences.c: removed dia_config_filename function.
16262         * lib/dia_dirs.c (dia_config_filename): moved function over to this
16263         file.  Also changed implementation slightly so that it should work
16264         on the win32 port correctly (and use NT home directories).
16266         * lib/dia_dirs.h (dia_config_filename): move dia_config_filename where
16267         it should have been.
16269         * lib/plug-ins.[ch]: new plugin loading code.
16271 2000-04-08  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
16273         * objects/standard/polygon.c: Fixed startup crash bug (do'h!).
16275         * lib/polyshape.c: Fix closest segment finding, exposes deeper
16276         bugs in adding corners to 'wraparound' segment.
16278         * objects/standard/polygon.c: Added connection points (fixed so
16279         far), set menu sensitivity.
16281         * lib/polyshape.c: Changed to box-style handles, fixed for start
16282         and ends not being special, added initial connections,
16284         * lib/dummy_dep.h: Added polyshape (gotcha!)
16286         * objects/standard/pixmaps/ellipse.xpm: 
16287         * objects/standard/pixmaps/box.xpm: 
16288         Filled element pixmaps with white.
16290         * lib/polyshape.c: 
16291         * objects/standard/polygon.c: 
16292         * lib/polyshape.h: 
16293         * objects/standard/standard.c: 
16294         * objects/standard/Makefile.am (libstandard_objects_la_SOURCES): 
16295         * lib/Makefile.am (libdia_a_SOURCES): 
16296         * app/menus.c: 
16297         * app/interface.c (tool_data): 
16298         Added Standard/Polygon object and PolyShape lib object.  Still
16299         needs inside grab and connection points.
16301         * app/commands.c (help_about_callback): Now uses gdk-pixbuf if
16302         available. 
16304         * configure.in: Made imlib a fallback if gdk-pixbuf is absent or
16305         not wanted.
16307         * app/app_procs.c (app_init): Moved gtk_init outside #ifdef, moved
16308         if (argv) outside ifdefs.
16310 2000-04-04  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
16312         * objects/standard/image.c (image_set_props): 
16313         Aspect ratio is back in town.
16315         * app/Makefile.am (dia_LDADD): 
16316         * acconfig.h: 
16317         * configure.in: 
16318         Check for gdk_pixbuf (by default disabled, for now)
16320         * app/render_eps.c (draw_image): 
16321         * app/render_libart.c (draw_image): 
16322         * app/render_gnomeprint.c (draw_image): 
16323         Support for alpha mask in rendering.  Color postscript, too.
16325         * lib/dia_image.c: 
16326         * lib/dia_image.h: 
16327         Support for gdk_pixbuf and proper masking for exports.
16329 2000-04-01  Kjartan Maraas  <kmaraas@online.no>
16331         * sheets/*.sheets: Updated Norwegian translations.
16332         
16333 2000-03-30  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
16335         * lib/text.c (text_insert_char): 
16336         * lib/render_store.c (add_data): 
16337         Made realloc double the alloced space rather than add
16338         a fixed amount, to reduce memory stress.
16340         * app/select.c: Added new select method 'Transitive'
16341         that select every reachable (by connections) object.
16343 2000-03-27  Kjartan Maraas  <kmaraas@online.no>
16345         * dia.desktop: Added Norwegian translation.
16346         
16347 2000-03-26  Alexander Larsson  <alla@lysator.liu.se>
16349         * app/render_eps.c:
16350         * app/render_svg.c:
16351         Don't dereference NULL pointer if the renderer
16352         couldn't open the file. Fix by Lars Clausen.
16353         Bug reported by Martin Chisholm <b1mt@unb.ca>
16354         
16355 2000-03-26  Alexander Larsson  <alla@lysator.liu.se>
16357         * dia.desktop:
16358         * po/pt.po:
16359         Updated pt translation from Pedro Morais <pmmm@rnl.ist.utl.pt>
16361 2000-03-25  Alexander Larsson  <alla@lysator.liu.se>
16363         * app/dia.gnorba (location_info):
16364         Changed to correct executable name.
16366 2000-03-25  Alexander Larsson  <alla@lysator.liu.se>
16368         * app/app_procs.c:
16369         Don't do any argument parsing or initialization
16370         if argv==NULL.
16372         * app/dia_embedd.c:
16373         Call init_server_factroy before app_init.
16374         Call app_init with argv==NULL
16375         Now we don't get any critical error on startup.
16377         * configure.in:
16378         Add Electric and Pneumatic to makefile list.
16379         
16380 2000-03-24  Cyrille Chepelov <chepelov@calixo.net>
16382         * shapes/Electric/*:
16383         * sheets/Electric.sheet:
16384         Add some Electric circuit shapes.
16386         * shapes/Pneumatic/*:
16387         * sheets/Pneumatic.sheet:
16388         Add some Pneumatic & Hydraulic circuit shapes
16389         (both sheets are still incomplete, though feature enough 
16390         things for basic circuits).
16392         * shapes/Contact/l_*.(xpm|shape):
16393         * sheets/Contact.sheet
16394         * shapes/Contact/Makefile.am
16395         made the older electric circuit shapes in Contact obsolete (disabled
16396         them in the sheet, made that sheet Ladder only). Fixed the makefile
16397         for forgotten items.
16398         
16399 2000-03-24  Alexander Larsson  <alla@lysator.liu.se>
16401         * app/Makefile.am:
16402         Add support for Dia bonobo component.
16403         Currently a bit raw, so it's commented out.
16404         
16405         * app/dia_embedd.c:
16406         * app/dia.gnorba:
16407         New files for embedding dia.
16408         The menu disabling hack is a bit gross. Esp. for GNOME.
16410         * app/app_procs.h:
16411         Add new function app_is_embedded();
16413         * app/diagram.c:
16414         Don't destroy diagram when last display is destroyed if embedded.
16415         
16416         * app/display.c:
16417         Change initialization of display so it works with embedding.
16419         * app/display.h:
16420         Clarify comment about display destruction.
16422         * app/interface.[ch]:
16423         Added top_level_window argument to create_display_shell.
16424         Don't open a top-level window if embedding.
16425         Don't quit app if trying to close toolbox window when embedding.
16426         Add toolbox_show() and toolbox_hide().
16428         * app/main.c:
16429         Added app_is_embedded() function (just returns false).
16430         Added toolbox_show() call in main().
16432         * app/menus.c:
16433         Added code for getting toolbox menus. This is used to
16434         hide some menu items when running embedded.
16435         
16436         * app/app_procs.c:
16437         Include sheet.h to remove warning.
16439         * objects/UML/association.c:
16440         Clarify association direction text.
16441         
16442 2000-03-16  Fredrik Hallenberg  <hallon@lysator.liu.se>
16444         * dia.1
16445         Fixed man page so whatis parsing works.
16447 2000-03-12  Alexander Larsson  <alla@lysator.liu.se>
16449         * app/render_libart.c (new_libart_renderer):
16450         Fix from segg <segg@infonet.ca> to compile without libart.
16451         I forgot to change the stub for new_libart_renderer when doing
16452         the interactive renderer stuff for libart.
16454 2000-03-11  Alastair McKinstry  <mckinstry@computer.org>
16456         * dia.desktop: Added Irish translation.
16457         
16458         * configure.in (ALL_LINGUAS): Added Irish (ga) translation.
16460 2000-03-07  Asbjorn Pettersen  <asbjornP@dualog.no>
16462         * app/load_save.c (fchmod): OS/2 defines only.
16464 2000-03-07  James Henstridge  <james@daa.com.au>
16466         * lib/properties.c (prop_get_widget): set the position in the option
16467         menu correctly.
16469 2000-03-06  Alexander Larsson  <alla@lysator.liu.se>
16471         * app/display.c:
16472         * app/export_png.c:
16473         * app/render_libart.[ch]:
16474         Don't export png:s with an interactive libart renderer.
16476 2000-03-03  Asbjorn Pettersen  <asbjornP@dualog.no>
16478         * lib/arrows.c (finite): define finite(d) isfinite(d)  for OS/2
16480 2000-03-02  James Henstridge  <james@daa.com.au>
16482         * dia.spec (%build): unset LINGUAS before running configure.  This
16483         ensures that all translations get included in the RPM.
16485         * lib/properties.c (object_create_props_dialog): put in a check for
16486         a NULL return from the describe_props() object method.
16487         (prop_desc_lists_union): make sure that the returned array is not
16488         NULL.
16489         (prop_desc_lists_intersection): same here.
16491 2000-02-29  Alexander Larsson  <alla@lysator.liu.se>
16493         * objects/ER/Makefile.am:
16494         * objects/FS/Makefile.am:
16495         * objects/UML/Makefile.am:
16496         Don't link object libs with gtk.
16498 2000-02-29  James Henstridge  <james@daa.com.au>
16500         * app/preferences.c (prefs_save): check to see if the file could
16501         be opened before writing the prefs.
16503         * app/disp_callbacks.c (popup_object_menu): pass the button event
16504         to gtk_menu_popup.  This allows you to click and release to open
16505         the object menu.
16506         (ddisplay_canvas_events): same here.
16507         (create_object_menu): set the object type menu item in the object
16508         menu to be insensitive.
16510         * app/render_svg.c (draw_string): call xmlEncodeEntitiesReentrant,
16511         as we are now requiring a new version of libxml.
16513         * dia.spec: updated version number.  Added requirement for
16514         libxml >= 1.8.5
16516         * configure.in: incremented version number to 0.84.
16517         Added check for libxml >= 1.8.5.  This will prevent some of the
16518         problems people have had with broken libxml versions.
16520         * NEWS: added news items.
16522         * app/interface.c (create_color_area): removed call to realize parent
16523         widget.  Segg <segg@infonet.ca> reported that it caused a warning,
16524         but I haven't seen it on my copy of dia.
16526 2000-02-28  James Henstridge  <james@daa.com.au>
16528         * app/export_png.c: added copyright notice, and made the band height
16529         a constant.
16531 2000-02-27  Alexander Larsson  <alla@lysator.liu.se>
16533         * lib/font.c (suck_font):
16534         Fixed off-by one bug in font pixmap height.
16535         Fixes the problem with garbage at the bottom of some text in aa mode
16536         and in png exported files.
16538 2000-02-27  James Henstridge  <james@daa.com.au>
16540         * app/app_procs.c: add the png export filter if it was compiled in.
16542         * app/export_png.c (export_png): new PNG export filter.  This requires
16543         the libart renderer to work as it needs a renderer that renders to a
16544         pixel buffer.
16546         * configure.in: add check for libpng.
16548         * lib/message.c (message_internal): use a GNOME dialog here as well.
16550         * app/display.c (ddisplay_close): use a GNOME dialog here.
16552         * app/render_eps.c (create_eps_renderer): use diagram scaling factor
16553         when exporting to EPS.  This is because some people said the EPS
16554         output was too large
16556 2000-02-26  James Henstridge  <james@daa.com.au>
16558         * app/defaults.c (create_dialog): use a GNOME dialog for the defaults
16559         window.
16561         * app/app_procs.c (app_exit): use a GNOME dialog here.
16563         * app/preferences.c (prefs_create_dialog): if GNOME support is
16564         enabled, show a GNOME dialog.
16566         * app/grid.c (grid_draw): use preferences when drawing page break
16567         lines.
16569         * app/preferences.c: add page break preferences to dialog.
16571         * app/preferences.h: added page break preferences.
16573 2000-02-25  James Henstridge  <james@daa.com.au>
16575         * sheets/UML.sheet: added new objects.
16577         * objects/UML/uml.c: link in the two new objects.
16579         * objects/UML/node.c: 
16580         * objects/UML/branch.c: new UML objects from Stfan Seefeld
16581         <seefelds@magellan.umontreal.ca>.
16583 2000-02-24  James Henstridge  <james@daa.com.au>
16585         * objects/custom/custom_object.c: converted to use the properties
16586         interface.  In the future, it would be nice to add support for
16587         defining custom properties for custom objects, but that can wait.
16589 2000-02-22  James Henstridge  <james@daa.com.au>
16591         * sheets/Circuit.sheet: added new circuit shapes to sheet.
16593         * plug-ins/cgm/cgm.c: cgm plugin updates from Henk Jan Priester
16594         <hj@justcroft.com>.  Fixes number encoding, colour encoding, fonts
16595         and adds a few new features.
16597 2000-02-21  Daniel Egger  <egger@suse.de>
16599         * sheets/*.sheets: Added German translations and made some
16600         corrections to the others.
16601         
16602 2000-02-21  James Henstridge  <james@daa.com.au>
16604         * shapes/Circuit/Makefile.am (SHAPES): added new shapes to list.
16606         * shapes/Circuit/...: added new shapes from Erik Janssens.
16608 2000-02-20  James Henstridge  <james@daa.com.au>
16610         * app/interface.c (create_color_area): realize the parent window
16611         first.
16613         * objects/standard/image.c: properties patch for standard image
16614         object, from Lars Clausen.
16616         * lib/properties.c: support for PROP_TYPE_FILE from Lars Clausen.
16618         * lib/properties.h (PropType): added file property type.
16620         * shapes/Circuit/speaker_de.xpm: changed size of pixmap to match
16621         other shapes.
16623         * app/interface.c: use wrap box for toolbox.
16625         * app/Makefile.am: added new files.
16627         * app/gtk*wrapbox.[ch]: added wrap box widget.
16629 2000-02-19  James Henstridge  <james@daa.com.au>
16631         * sheets/network.sheet: added extra shapes to networks sheet.
16633         * configure.in (AC_OUTPUT): added shapes/network/Makefile
16635         * shapes/network/*: added shapes that were posted to the list a while
16636         back.
16637         
16638         * shapes/Makefile.am (SUBDIRS): added network subdirectory
16640         * app/menus.c (toolbox_menu_items): don't right justify help menu for
16641         gtk+ version of menus.
16643         * app/properties.c (create_dialog): use a GnomeDialog if we happen
16644         to be using gnome.
16646 2000-02-18  James Henstridge  <james@daa.com.au>
16648         * objects/flowchart/box.c: set extra data for corner radius and text
16649         padding properties.
16651         * objects/standard/box.c: set extra data for corner radius property.
16653         * lib/properties.h: set extra data in some standard properties.
16655         * lib/properties.c (prop_get_widget): look at the extra data for
16656         int, real and enum property types.  They now use GtkSpinButton and
16657         GtkOptionMenu respectively.
16659         * lib/properties.h: extra data members for creating property setting
16660         widgets.
16662 2000-02-17  James Henstridge  <james@daa.com.au>
16664         * objects/flowchart/box.c: reverted load/save functions back to
16665         previous implementations.  Made box use standard property names.
16667         * plug-ins/cgm/cgm.c (set_linestyle): was missing a */
16669         * app/grid.c: add more digits to the grid edit dialog.  This patch
16670         was also from Lars Clausen.
16672         * objects/standard/zigzagline.c: 
16673         * objects/standard/textobj.c:
16674         * objects/standard/polyline.c:
16675         * objects/standard/line.c:
16676         * objects/standard/ellipse.c:
16677         * objects/standard/box.c: 
16678         * objects/standard/bezier.c: 
16679         * objects/standard/arc.c: patches to add properties code to standard
16680         objects.  Based on patches from Lars Clausen.  I have also removed
16681         some dead code from the files.
16683         * lib/properties.h (PROP_STD_*): define a number of standard
16684         properties.  Where appropriate, objects should include these
16685         properties in their PropDescription list.  This way, the intersection
16686         of properties of two different shapes will be greater.
16688 2000-02-14  James Henstridge  <james@daa.com.au>
16690         * objects/flowchart/box.c (box_load, box_save): use property save
16691         routines.  Make sure that any props not handled by object_load_props
16692         are loaded before calling object_load_props, or we get errors because
16693         update_data is called.
16695         * lib/properties.c (object_get_props_from_offsets): fixed an indexing
16696         error that could cause properties to be loaded incorrectly.
16697         (object_set_props_from_offsets): similar here.
16699         * lib/properties.[ch] (prop_{load,save}): functions for loading
16700         or saving a property in Dia's XML file format.
16701         (object_{load,save}_props): load or save some properties of an
16702         object.  These functions should help simplify the load/save methods
16703         of objects that implement the properties interface.
16705 2000-02-13  James Henstridge  <james@daa.com.au>
16707         * objects/flowchart/box.c: use offset code to simplify property
16708         get/set routines.
16710         * lib/element.h (ELEMENT_COMMON_PROPERTIES): standard element
16711         properties.
16712         (ELEMENT_COMMON_PROPERTIES_OFFSETS): offsets.
16714         * lib/object.h (OBJECT_COMMON_PROPERTIES): list of standard object
16715         properties.
16716         (OBJECT_COMMON_PROPERTIES_OFFSETS): the offsets of the properties.
16718         * lib/properties.[ch] (object_{get,set}_props_from_offsets): new
16719         functions 
16721 2000-02-12  Alexander Larsson  <alla@lysator.liu.se>
16723         * app/Makefile.am:
16724         Add the custom object to DIA_LIB_PATH in run_dia.sh
16726 2000-02-10  Cyrille Chepelov  <chepelov@calixo.net>
16728         * sheets/Circuit.sheet:
16729         * shapes/l_sout* (NEW):
16730         * shapes/l_outj.* (NEW): added new outputs : jump, and the power-saved
16731         variants of simple, inverted, set and reset outputs.
16732         Still to do: all Schneider/Telemecanique TSX *7 function blocks ; 
16733         probably a split of Contact and Ladder sheets. And then a major 
16734         revamping of the Contact sheet.
16736 2000-02-10  James Henstridge  <james@daa.com.au>
16738         * app/Makefile.am (dia_LDADD): don't link with libcustom_objects.
16740         * app/app_procs.c (register_all_objects): don't explicitely
16741         register the custom objects library -- let it be loaded by the
16742         normal plugin loading methods.
16744         * lib/Makefile.am (libdia_a_SOURCES): don't include custom.h here.
16746         * objects/custom/Makefile.am: build libcustom_objects as a shared
16747         library again.
16749         * objects/custom/shape_info.[ch]: don't read the description field
16750         of custom shapes.  It makes more sense to have these in the sheet
16751         file to localise the parts of dia that translators have to deal
16752         with.
16754         * objects/custom/custom_object.c (custom_object_new): do not
16755         create the sheet object for the new custom shape -- this is
16756         handled by the custom sheet code.
16758         * objects/custom/custom.c: change over to being a normal plug-in
16759         rather than being linked with the main dia executable.
16761 2000-02-09  James Henstridge  <james@daa.com.au>
16763         * sheets/Circuit.sheet: 
16764         * sheets/Flowchart.sheet: 
16765         * sheets/Contact.sheet: fixed up sheets.
16767         * objects/custom/custom_object.c (custom_object_new): set the
16768         extra ObjectType fields.
16770         * lib/sheet.c: use extra ObjectType fields when creating sheet
16771         objects.  Give a warning if <shape> tags are found in a sheet
16772         file.  Now the custom sheet code does not know about custom
16773         shapes -- they look like any other object type.
16775         * lib/object.h (ObjectType): added extra members
16777 2000-02-08  Alexander Larsson  <alla@lysator.liu.se>
16779         * app/linewidth_area.c:
16780         Added code to set arbitrary line width.
16781         Patch by Lars Clausen <lrclause@cs.uiuc.edu>
16783 2000-02-08  Alexander Larsson  <alla@lysator.liu.se>
16785         * app/linewidth_area.c: 
16786         * lib/font.[ch]:
16787         Add support for font-sucking.
16788         Implementation borrowed from gnome-canvas.
16789         
16790         * app/render_libart.[ch]:
16791         Implement text rendering.
16793 2000-02-07  Alexander Larsson  <alla@lysator.liu.se>
16795         * app/properties.c (create_dialog):
16796         ref and sink no_properties_dialog.
16798 2000-02-07  James Henstridge  <james@daa.com.au>
16800         * app/group.c (group_describe_props): new function.  Return the
16801         intersection of the properties of the contained objects that
16802         implement the describe_props interface.
16803         (group_get_props): implement by iterating through contained objects
16804         and calling their get_props method until all properties have been
16805         set.  Maybe this should go through all objects all the time??
16806         (group_set_props): implement by calling set_props method on all
16807         contained objects.
16808         (group_ops): use standard props dialog creation routines.
16810         * lib/properties.c (prop_desc_lists_intersection): fix implementation
16811         of intersection -- I was using i++ instead of i-- in a for loop :(
16813         * objects/custom/custom.c (custom_register_objects): fix usage
16814         of dia_get_data_directory again.
16816         * lib/sheet.c: fix up use of dia_get_data_directory, so that we
16817         actually read the sheets.
16819 2000-02-06  Alexander Larsson  <alla@lysator.liu.se>
16821         Win32 port by Hans Breuer <Hans@Breuer.org>
16823         * app/Makefile.am:
16824         Remove DATADIR and LIBDIR defines.
16826         * lib/Makefile.am:
16827         Add dia_dirs.c and dia_dirs.h
16828         Added DATADIR and LIBDIR defines.
16830         * lib/dia_dirs.[ch]:
16831         New files for handling special directories.
16833         * app/app_procs.c:
16834         * app/commands.c:
16835         * lib/sheet.c:
16836         * objects/custom/custom.c:
16837         Fix warnings.  Use directory functions.
16839         * app/diagram.h:
16840         Add prototype for diagram_redraw_all.
16842         * app/diaunitspinner.c:
16843         * app/filedlg.c:
16844         * app/interface.c:
16845         * app/preferences.c:
16846         Fix warning.
16848         * app/load_save.c:
16849         Win32 doesn't have mkstemp and fchmod.
16851         * app/paginate_psprint.c:
16852         Win32 calls popen _popen and pclose _pclose.
16853         
16854         * app/arrow.c:
16855         Win32 calls finite _finite.
16857         * lib/color.h:
16858         Win32 needs to dllexport the color vars.
16860         * objects/GRAFCET/step.c:
16861         * objects/chronogram/chronoref.c:
16862         snprintf -> g_snprintf
16864 2000-02-05  James Henstridge  <james@daa.com.au>
16866         * lib/properties.c: more fixes so that it doesn't crash when using
16867         properties.  The undo/redo stuff also works!!
16869         * objects/flowchart/box.c (box_{describe, get, set}_props): test
16870         object where I have implemented the new properties interface
16871         complete with automatic properties dialog generation.
16873         * lib/properties.c (object_apply_props): fixed stupid error when
16874         creating the old_props array.  Also, it no longer frees the props
16875         array -- you will have to do that yourself.
16877 2000-02-04  James Henstridge  <james@daa.com.au>
16879         * app/properties.c (properties_apply): pass object_part to
16880         apply_properties.
16882         * lib/object.h (ApplyPropertiesFunc): added widget argument.
16884         * lib/lazyprops.h (PROPDLG_CREATE): ref and sink properties dialogs
16885         created this way as well.
16887         * objects/*/*.c: ref and sink the properties dialog window for each
16888         widget.  It can't rely on ref count being incremented by
16889         properties_show anymore.
16891         * app/properties.c (properties_show): don't ref the widget before
16892         removing it, or its ref count will increase each time you open the
16893         properties dialog.  Don't unparent the widget, as container_remove
16894         does that for us.
16896         * lib/object.h: fixed up prototypes for new object methods.
16898         * lib/properties.[ch]: added functions for automatically creating
16899         a properties dialog from the output of describe_props, get_props and
16900         set_props.
16901         (object_apply_props): apply properties and return an ObjectChange
16902         structure that can be used for undo.
16904 2000-02-03  Cyrille Chepelov  <chepelov@calixo.net>
16906         * objects/GRAFCET/transition.c: minor leak plugged.
16908         * sheets/GRAFCET.sheet:
16909         * objects/GRAFCET/pixmaps/condition.xpm: (NEW)
16910         * objects/GRAFCET/condition.c: (NEW) added a new object type, action 
16911         conditions.
16912         * objects/GRAFCET/Makefile.am: fixed incorrect dependencies, added
16913         new ones (for condition.c).
16914         * objects/GRAFCET/action.c: added connection points for the conditions.
16915         * samples/grafcet.dia: updated the sample to improve conformance to
16916         IEC 848 and take advantage of dia's new features.
16917         
16918         * lib/geometry.h: (point_get_normed) fixed a typo.
16920 2000-02-02  James Henstridge  <james@daa.com.au>
16922         * lib/object.h: added object functions describe_props, get_props and
16923         set_props.  Do type definitions so that object.h doesn't need to
16924         include properties.h, since properties.h includes object.h.
16926         * lib/properties.[ch]: more hacking.
16928         * po/de.po: updated po file.
16930 2000-01-30  James Henstridge  <james@daa.com.au>
16932         * configure.in: don't add flags to CFLAGS unconditionally.  Instead,
16933         check to see if the C compiler accepts the flag beforehand.
16935         * lib/properties.[ch]: start of properties code.
16937         * shapes/Contact/Makefile.am (SHAPES): fix up makefile.
16939 2000-01-30  Cyrille Chepelov  <chepelov@calixo.net>
16940         
16941         * sheets/GRAFCET.sheet:
16942         * sheets/GRAFCET/etapemc.xpm: (NEW)
16943         * sheets/GRAFCET/etapesp.xpm: (NEW)
16944         * objects/GRAFCET/step.c: Added the macro and
16945         sub-program call step types.
16947         * objects/GRAFCET/receptivity.[ch]: renamed to 
16948         objects/GRAFCET/boolequation.[ch]. 
16949         * objects/GRAFCET/transition.c: changed (Receptivity *) to 
16950         (BoolEquation *)
16952         * lib/connpoint_line.[ch]: 
16953         * objects/chronogram/chronoline.c:
16954         * objects/chronogram/chronoref.c:
16955         * objects/GRAFCET/vergent.c:
16956         * objects/standard/line.c:
16957         * objects/SADT/box.c: Minor CPL interface changes, factored out the
16958         point count adjustment code into the CPL object.
16959         
16960 2000-01-29  Alexander Larsson  <alla@lysator.liu.se>
16962         * app/render_libart.c:
16963         Added support for images and bezier curves.
16964         Only text/fonts missing now.
16966         * app/render_gdk.c:
16967         Removed old erronous comment.
16969 2000-01-29  Cyrille Chepelov <chepelov@calixo.net>
16971         * objects/chronogram/chronoline_event.c: removed references to
16972         lround(). Please don't insist, I'm already red of shame.
16973         
16974 2000-01-29  Alexander Larsson  <alla@lysator.liu.se>
16976         * app/render_libart.[ch]:
16977         * app/Makefile.am:
16978         Non-finished libart renderer.
16980         * acconfig.h:
16981         Added HAVE_LIBART flag
16983         * configure.in:
16984         Added libart probe
16986         * app/app_procs.c:
16987         Call gdk_rbg_init().
16989         * app/connectionpoint_ops.c:
16990         * app/disp_callbacks.c:
16991         * app/grid.c:
16992         * app/handle_ops.c:
16993         * app/magnify.c:
16994         * app/modify_tool.c:
16995         Change ddisp->renderer type from RendererGdk * to Renderer *
16996         Draw zoom and select rects in ddisp->canvas->window instead
16997         of ddisp->renderer->renderer->pixmap.
16999         * app/display.[ch]:
17000         Add aa_renderer to DDisplay, and  support for it.
17001         New function ddisplay_set_renderer() for changing renderer.
17002         Add ddisplay_transform_coords_double() function, used by aa renderer.
17003         Change ddisp->renderer type from RendererGdk * to Renderer *
17005         * app/menus.c:
17006         Add antialias to menu.
17007         
17008         * app/commands.[ch]:
17009         add view_aa_callback function
17010         Change ddisp->renderer type from RendererGdk * to Renderer *
17012         * lib/geometry.[ch]:
17013         Added IntRectangle and int_rectangle_union.
17015 2000-01-28  James Henstridge  <james@daa.com.au>
17017         * app/commands.h: removed prototypes.
17019         * app/commands.c: removed the functions that have been moved to
17020         filedlg.c.
17022         * app/filedlg.h: added new prototypes.
17024         * app/filedlg.c (file_open_callback): move open dialog to this
17025         file.  This implementation should remember the current directory
17026         between file loads.
17027         (file_save_as_callback): moved this dialog as well.
17028         (file_save_callback): moved this function here.
17030         * app/paginate_psprint.c (paginate_psprint): if not in fit to mode,
17031         align page boundaries to the origin.
17033         * app/diagram.c (diagram_update_extents): redraw the diagram if the
17034         scaling factor changes while updating the extents.  This is so the
17035         page breaks get redrawn correctly.
17037         * app/pagesetup.c (pagesetup_apply): added diagram_flush call when
17038         applying changes.
17040         * app/grid.c (grid_draw): draw page breaks as well as grid lines.
17041         For normal mode, use (0,0) as the origin.  For `fit to' mode, use
17042         the corner of the bounding box.
17044         * app/pagesetup.c (create_page_setup_dlg): load new paper attributes
17045         into page setup dialog.
17046         (pagesetup_apply): apply new `fit to' attributes to the diagram.
17048         * app/load_save.c (diagram_load): load new paper `fit to' attributes.
17049         (diagram_data_save): save `fit to' data.
17051         * lib/diagramdata.c (new_diagram_data): initialise `fit to' members.
17052         (data_update_extents): when in `fit to' mode, update scale factor
17053         when we update the extents.
17055         * lib/diagramdata.h (PaperInfo): added `fit to' members to PaperInfo
17056         structure.
17058         * .../.cvsignore: added some cvsignore files to quieten cvs.
17059         
17060         * app/pagesetup.c (pagesetup_changed): added code to change the
17061         scaling/fit to values as you change the options in the page setup
17062         dialog.  I haven't added code so that the fit to options are saved
17063         though.
17065         * app/diapagelayout.[ch]: changed the scaling portion of the widget
17066         to make it easier to set a `fit to' style scaling factor.
17068 2000-01-27 Cyrille Chepelov <chepelov@calixo.net>
17069         * lib/neworth_conn.[ch]: (NEW) Temporary (hopefully) fork of orth_conn,
17070         but connpoint_line-based, so that there's a connection point at the 
17071         middle of each segment. Currently only the SADT arrow uses this.
17073         * objects/SADT/* (NEW): SADT (both idf0 and idf1) support.
17074         
17075 2000-01-26 Cyrille Chepelov <chepelov@calixo.net>
17076         * lib/lazyprops.[ch]:(NEW) Added a bunch of macros for loading, 
17077         saving and editing of properties (and default properties). 
17078         See the new objects (GRAFCET, SADT, chonograms) for examples.
17079         For already too hairy stuff, see objects/chronogram/chronoline.c.
17081         * lib/connpoint_line.[ch] (NEW): This subobject manages a line of 
17082         evenly spaced connection points, which the user can add or remove at
17083         will. An object can own several connection point lines. See the SADT
17084         Box, or the GRAFCET vergents for examples.
17086         * lib/dummy_dep.h: added dependencies to new files. Told gcc to keep 
17087         quiet about unused stuff.
17089         * objects/GRAFCET (NEW):
17090         * samples/grafcet.dia (NEW):
17091         Added support for GRAFCET charts. 
17093         * objects/chronogram (NEW):
17094         * samples/chronograms.dia (NEW):
17095         Added support for chronograms (feature requested by Ronald L. Chichest;
17096         I found I'd use it often, too).
17098         * objects/standard/line.c: Replace the middle connectionpoint by 
17099         a whole connection point line, which defaults to one point (hint, 
17100         hint). New Line object menu to take advantage of this. 
17101         "Bothwards" compatibility is preserved (although you may loose 
17102         connections if you load a newer file in a older dia).
17104         * app/lineprops_area.c:
17105         * lib/arrows.[ch]:
17106         * lib/widgets.c: Added hollow and filled ellipse arrow head type. 
17107         (feature requested by Benjamin Kahn).
17108         Merged in Steffen Macke's slashed arrow head type.
17110         * app/Makefile.am (app/run_dia.sh actually):
17111         Added $DEBUGGER in front of dia's invocation, so that
17112         you can call "DEBUGGER=ddd app/run_dia.sh" (maybe naive, but useful).
17113         Added $(EFENCE) to app/dia's LDFLAGS, so that you can do 
17114         "EFENCE=-lefence" to link with Electric Fence.
17116         * configure.in: Made gcc do more aggressive optimisations on i386, and
17117         enabled warnings.
17118         
17119 2000-01-24  James Henstridge  <james@daa.com.au>
17121         * lib/geometry.[ch]: added inline versions of functions.  Used
17122         glib's G_INLINE_FUNC stuff, so it should still work on systems
17123         without inline funcs.
17125         * plug-ins/cgm/cgm.c (draw_ellipse, fill_ellipse): fixed up so that
17126         it outputs the correct element id for the ellipse objects.
17128 2000-01-24 Cyrille Chepelov <chepelov@calixo.net>
17130         * lib/object.[ch]: added object_add_connectionpoint_at, similar to
17131         object_add_handle_at. Message typo fixed.
17132         
17133         * lib/sheet.c (load_register_sheet):
17134         potential bug fixed (warning hunt).
17136         * objects/custom/custom.c (custom_object_load): disabled an assertion
17137         which made dia abort upon failure to load a shape file. Fixed a
17138         subsequent crash. 
17140         * objects/custom/shape_info.c (load_shape_info): Made the custom 
17141         shape load code ignore XML comments between <?xml ...?> and the 
17142         root object (mostly useful to put the emacs magic comments).
17143         
17144         * app/load_save.c: Made dia do backup copies of files when saving,
17145         and complain in case of failure.
17147 2000-01-24  Cyrille Chepelov  <chepelov@calixo.net>
17149         * AUTHORS: fixed my address (ISP thought it was a great idea to change
17150         the domain name)
17151         
17152         * configure.in:
17153         * shapes/Contact:
17154         * shapes/Contact/*:
17155         * sheets/Contact.sheet:
17156         * sheets/Makefile.am:
17157         Added support for Contact and LADDER charts.
17159         * dia.desktop: Added a French translation.
17160         
17161 2000-01-23  James Henstridge  <james@daa.com.au>
17163         * app/commands.c (help_about_callback): don't die if can't load
17164         logo image.
17166         * app/render_gdk.c (bezier_add_lines): sanity check to try to weed
17167         out NaN's when performing bezier curve subdivision.
17169         * objects/custom/custom_object.c: initialise memory of Custom structs
17170         to zero.
17172         * app/render_svg.c (draw_image): added image support to the XML
17173         output filter.  The image is just referenced, rather than being
17174         included inline, so if you copy the SVG file somewhere else, you
17175         may need to move the images or fix up the links.
17177         * plug-ins/cgm/cgm.c (draw_string): output a text colour element,
17178         so the text is not just displayed in black all the time.
17180 2000-01-15  Fredrik Hallenberg  <hallon@lysator.liu.se>
17182         * configure.in: fixed libpopt test so we wont try to build with
17183         too old libpopt.
17185 1999-12-18  Yuri Syrota  <rasta@renome.rovno.ua>
17187         * configure.in: Added "uk" to ALL_LINGUAS.
17189 1999-12-24  James Henstridge  <james@daa.com.au>
17191         * po/ru.po: updated russian translation from Valek Filippov.
17192         
17193         * app/render_svg.c (new_svg_renderer): make output use 19991203
17194         version of SVG DTD.  Use viewBox to set the extents of the view.
17196         * INSTALL (FONTS): updated locations of gnome-xml and imlib.  List
17197         ftp.gnome.org as the download.
17199         * TODO (TODO): weeded out completed todo items and added a few extra.
17201         * Makefile.am (EXTRA_DIST): added documentation to EXTRA_DIST.
17203         * doc/sheet.dtd: first stab at a DTD for the sheet files.  It would
17204         be good to get rid of the object/shape distinction and separate
17205         the custom shape code out from the main application.
17207         * objects/custom/README, diagram.dtd: moved to new doc directory.
17208         Renamed the custom shapes README to custom-shapes.  Also updated
17209         custom shape docs a bit and removed the section on sheet files, as
17210         that has changed a bit.
17212         * plug-ins/cgm/cgm.c (draw_image): give an error if the row length
17213         of the image data is larger than the maximum cell array.  I should
17214         add code to break scan lines down further in this case, but for now
17215         an error message is better than an infinite loop.
17217         * app/filedlg.c (file_export_ok_callback): show a dialog if we
17218         couldn't determine the export filter to use.
17220         * app/commands.c (help_about_callback): fixed up about box logo
17221         expose bug.  Now just use a GtkPixmap widget rather than a
17222         GtkDrawingArea and calling gdk_imlib_paste_image.
17224         * app/Makefile.am (EXTRA_DIST): added print stuff to extra dist,
17225         because automake does not always get things right.
17227         * configure.in: updated version number to 0.83.
17229         * app/preferences.c (prefs_save): 
17230         * app/render_svg.c (new_svg_renderer): "wt" is not a valid flag string
17231         for fopen.  Text is the default file mode anyway.
17233         * app/commands.c (file_save_as_dialog_ok_callback, file_new_callback): 
17234         * app/grid.c (grid_x_update, grid_y_update, grid_show_dialog): 
17235         * app/load_save.c (write_objects, write_connections): 
17236         * app/filedlg.c (file_export_ok_callback): 
17237         * lib/dia_xml.c (data_add_int, data_add_enum, data_add_real): 
17238         * lib/dia_xml.c (data_add_point, data_add_rectangle): 
17239         * lib/font.c (init_x11_font, font_get_gdkfont): changed calls to
17240         snprintf to calls to g_snprintf.
17242         * plug-ins/cgm/cgm.c (export_cgm): write the original dia file name
17243         as the picture name.
17245 1999-12-23  James Henstridge  <james@daa.com.au>
17247         * plug-ins/cgm/cgm.c (write_int32, write_int16): fixed up output of
17248         negative numbers.  This fixes the upside down text problem I was
17249         having previously.
17250         (draw_image): implemented the image code.  It will try to split the
17251         image data up into bands if it is too big to fit into a single
17252         cgm cell array element.  It will have problems if you try to insert
17253         an image wider than about 10,000 pixels though.
17255         * Makefile.am: use gnomedatadir for the files that need to be
17256         installed in gnome's datadir.  This is mainly to help people doing
17257         packages for weird setups.
17259 1999-12-22  James Henstridge  <james@daa.com.au>
17261         * plug-ins/cgm/cgm.c: added support for text.  Now only images and
17262         beziers are left to do.  The text seems to be the wrong way up
17263         still.  This is probably a problem with character orientation
17264         element, but I have used what the settings given in the standard.
17265         Other than this, the CGMs dia produces are readable (and displayable)
17266         by ralcgm and corel draw.
17267         (draw_string): subtract from the X coord rather than the Y coord for
17268         center and right aligned text.
17270         * plug-ins/cgm/cgm.c: a few fixups for the output.  Use REALSIZE as
17271         the size of a real number, and changed name of write_double to
17272         write_real.  Consider changing to fixed real encoding.  Also, now
17273         all element headers are correct.  Once the real number encoding is
17274         fixed, only text, beziers and images are left to do.
17276 1999-12-21  James Henstridge  <james@daa.com.au>
17278         * Makefile.am (SUBDIRS): recurse into plug-ins.
17280         * configure.in: add plug-ins directory makefiles to list.
17282         * plug-ins/cgm/cgm.c: start of cgm export filter.  Beziers and text
17283         not done yet.  Also, the output files are not quite correct.
17285         * app/render_eps.c (print_reencode_font): don't reencode the Symbol
17286         font.  It doesn't work if you do.
17288 1999-12-20  James Henstridge  <james@daa.com.au>
17290         * app/app_procs.c (app_init): don't use diagram_export_to_eps to
17291         export the files.  Instead, use filter_guess_export_filter to
17292         guess the correct format to save in and use the appropriate filter.
17293         It defaults to postscript for compatibility.
17295         * app/diagram.[ch] (diagram_export_to_eps): removed export to eps
17296         function.
17298         * app/commands.[ch]: removed export to eps functions.
17300         * app/menus.c: removed export to eps menu items.
17302         * app/app_procs.c: register new export filters.
17304         * app/load_save.[ch]: define dia native export filter.
17306         * app/render_eps.[ch]: define eps export filter.
17308         * lib/filter.h: added diafilename argument to the DiaExportFunc
17309         prototype.  This is useful for putting the source of the diagram
17310         into the output file for instance.
17312         * app/app_procs.c (app_init): register the SVG export filter.  Have
17313         to get EPS code converted to this API, and maybe also allow saving in
17314         DIA's native format from the export dialog.  In fact, it is now
17315         possible to load an export filter from a shared library and it will
17316         integrate into the interface correctly.
17318         * app/menus.c: removed references to the SVG renderer.
17320         * app/commands.[ch]: removed svg stuff.
17322         * app/diagram.[ch]: removed diagram_export_to_svg function.
17324         * app/render_svg.[ch]: added a DiaExportFilter structure for this
17325         renderer.
17327         * app/filedlg.[ch]: code for the new export diagram dialog.  Will
17328         probably move the open/save dialogs to this file as well.
17330 1999-12-19  James Henstridge  <james@daa.com.au>
17332         * lib/filter.[ch]: start of interface for generalised handling of
17333         filters.  I have only done code for export filters so far.  I still
17334         need to do the gui for this, and convert the current SVG and EPS
17335         filters to the new API.
17337         * lib/bezier_conn.c (bezierconn_copy): fix up copy operation.  We
17338         weren't setting the last handle correctly.  It was actually assigning
17339         to the wrong position in the handles array, so the last handle was
17340         left as NULL, which caused the segfault.
17342         * objects/standard/image.c (image_copy): modified routine so that
17343         it just adds a reference to the DiaImage structure in the new image
17344         object.  This seems to have cleared up the problems with copying
17345         image objects.
17347         * dia.spec: spec file additions from John Gotts.
17349 1999-12-12  James Henstridge  <james@daa.com.au>
17351         * configure.in (GNOME_LIBS): updated version number to 0.82.  0.82
17352         has not been released yet though.
17354         * Makefile.am (EXTRA_DIST): distribute diagram.dtd.
17356         
17357         The following based on a patch from Lars Clausen:
17358         
17359         * objects/standard/bezier.c (bezierline_move_handle): when performing
17360         the initial drag of the bezierline, move the control points to keep
17361         the line straight.
17363         * lib/bezier_conn.c (bezierconn_add_segment): when adding a segment,
17364         make the new control points a bit closer to the major point.
17366         * app/create_object.c (create_object_motion): use HANDLE_MOVE_CREATE
17367         as the reason for the move.
17368         (create_object_button_release): use HANDLE_MOVE_CREATE_FINAL as the
17369         move reason.
17371         * lib/handle.h: new handle move reasons.
17373 1999-12-09  James Henstridge  <james@daa.com.au>
17375         * dia.spec: include the new files in RPMs.
17377         * Makefile.am: install these new files.
17379         * dia.keys.in: file describing actions and icon for dia diagrams for
17380         use in the gnome file manager.
17381         
17382         * dia.mime: a file defining the application/x-dia-diagram mime type.
17383         
17384         * dia-diagram.png: an icon for dia diagrams.
17386 1999-12-08  James Henstridge  <james@daa.com.au>
17388         * plug-ins/python/pydia-diagram.c: added heaps of new methods.
17390         * plug-ins/python/pydia-display.[ch]: wrapper for display.
17392         * objects/standard/ellipse.c: applied Lars's patch to optionally not
17393         draw the background of the ellipse.
17395         * app/load_save.c (read_connections): do some sanity checking on the
17396         handle and connection point numbers before performing the object
17397         connection.
17399         * lib/bezier_conn.c (bezierconn_load): give the correct number of
17400         handles when loading a BezierConn.
17402 1999-12-07  Kjartan Maraas  <kmaraas@online.no>
17404         * sheets/*.sheet: Finished Norwegian translations.
17405         
17406 1999-12-07  James Henstridge  <james@daa.com.au>
17408         * plug-ins/python/diamodule.c (PyDia_Load): load diagram function.
17409         (PyDia_GetObjectType): find object type function.
17411         * plug-ins/python/pydia-diagram.c (PyDiaDiagram_Save): added a save
17412         method for diagrams.
17414         * plug-ins/python/pydia-object.c: added methods for DiaObject and
17415         DiaObjectType.
17417         * AUTHORS: added Lars and Cyrille to the authors file.
17419         * objects/standard/bezier.c (bezierline_add_segment_callback): place
17420         new point correctly.
17422         * lib/bezier_conn.h (bezierconn_closest_segment): fixed prototype.
17424         * lib/bezier_conn.c: applied Lars's patch for placement of the new
17425         point when adding a segment to a BezierConn.
17427 1999-12-06  James Henstridge  <james@daa.com.au>
17429         * plug-ins/python/test.py: test script for the python plug-in.
17431         * plug-ins/python/python.c: this file contains the plug-in startup
17432         code for the python plugin.  Right now, it just initialises the
17433         dia module and executes a script.
17435         * objects/standard/polyline.c (polyline_draw): fix start arrow size.
17437         * objects/standard/bezier.c (bezierline_draw): draw control lines for
17438         bezier curve if we are using an interactive renderer (ie. only if
17439         displaying to the screen).
17441         * lib/bezier_conn.[ch] (bezierconn_draw_control_lines): function
17442         to draw control lines on to a bezier curve.  Based on implementation
17443         from Lars.
17445         * objects/standard/bezier.c (bezierline_delete_segment_callback):
17446         calculate segment number using closest_segment rather than
17447         closest_handle.  Sometimes the closest handle is part of a different
17448         segment.
17449         (bezierline_draw): use correct size for start arrow.
17451         The next few entries are from Peter Moulder <reiter@netspace.net.au>:
17452         * lib/geometry.c (distance_line_point): added notes to documentation
17453         in comment.
17454         * app/object_ops.c (object_list_align_v): 
17455         (object_list_align_h): fix of by one error when calculating free space
17456         for equal distance alignment.
17457         * app/menus.c (objects_align_h, objects_align_v): include align
17458         adjacent menu items in the gnome version of the menus.
17459         * app/diagram.c (diagram_update_menu_sensitivity): set sensitivity on
17460         align adjacent menu items correctly.
17463         * lib/dummy_dep.h (dummy_dep): added bezierconn to dummy dependency
17464         table.
17466         * objects/standard/bezier.c: converted bezierline to use BezierConn.
17467         Still a few bugs.  It crashes on deleting line segments.
17469         * lib/Makefile.am (libdia_a_SOURCES): added BezierConn to libdia.
17471 1999-12-05  James Henstridge  <james@daa.com.au>
17473         * lib/bezier_conn.[ch]: start of BezierConn object
17475         * app/interface.c: add bezierline to toolbox.
17477         * objects/standard/standard.c: initialise bezierline.
17479         * objects/standard/bezier.c: new object from Lars R. Clausen.  I have
17480         made a few modifications to get it working nicely.  It still needs
17481         a bit of work though.  Maybe create a BezierConn object in lib.
17483 1999-12-02  James Henstridge  <james@daa.com.au>
17485         * plug-ins/python/pydia-*.c: fixed compile errors in these files.
17486         
17487         * plug-ins/python/Makefile.am: tried building everything.  It is
17488         building as a library at the moment.  I will have to convert it
17489         to a libtool library and add some initialisation code.
17490         
17491         * plug-ins/python/diamodule.c: start of the dia module, using the
17492         other object wrappers.  Not complete.
17494 1999-12-01  James Henstridge  <james@daa.com.au>
17496         * plug-ins/python/pydia-object.c (PyDiaObject_GetAttr): implement
17497         the handles and connections attributes.
17499         * plug-ins/python/pydia-layer.c: added functions that use
17500         ConnectionPoint's.
17502         * plug-ins/python/pydia-handle.[ch]: wrapper for Handle's.
17504         * plug-ins/python/pydia-cpoint.[ch]: wrapper for ConnectionPoint's.
17506         * plug-ins/python/pydia-*.[ch]: starts of python scripting plug-in.
17507         I am currently wrapping the basic elements in the diagram in python
17508         objects -- nothing to see or play with yet.
17510 1999-11-30  Alexander Larsson  <alla@lysator.liu.se>
17512         * AUTHORS:
17513         * HACKING:
17514         James Henstridge <james@daa.com.au> is now the maintainer of Dia.
17516 1999-11-29  Alexander Larsson  <alla@lysator.liu.se>
17518         * configure.in:
17519         * po/ru.po:
17520         Added russian translation from Valek Filippov <frob@df.ru>
17522 1999-11-24  James Henstridge  <james@daa.com.au>
17524         * sheets/UML/*: 
17525         * sheet/ER/*: moved extra sheet pixmaps back to separate dirs as
17526         discussed with Alex.  Also added extra makefiles so that make install
17527         works correctly.
17529 1999-11-23  Alexander Larsson  <alla@lysator.liu.se>
17531         * app/preferences.[ch]:
17532         * app/display.c:
17533         Added snap to grid preference.
17534         Patch from Michael Leslie <mles@springboardwireless.com>
17536 1999-11-21  Alexander Larsson  <alla@lysator.liu.se>
17538         * app/load_save.c:
17539         * lib/dia_xml.c:
17540         * lib/sheet.c:
17541         * lib/text.c:
17542         * objects/custom/shape_info.c:
17543         All strings returned by libxml must be freed with free, not
17544         g_free, or there will be problems if you use memory debugging
17545         in glib.
17546         
17547 1999-11-21  Alexander Larsson  <alla@lysator.liu.se>
17549         * app/create_object.[ch]:
17550         * app/menus.c:
17551         * app/tool.[ch]:
17552         * app/commands.[ch]:
17553         * app/pixmaps.h:
17554         * app/interface.[ch]:
17555         Reverted the tool menu patch. It has some 'issues'.
17556         I liked it though, so it'll probably return.
17558 1999-11-21  Alexander Larsson  <alla@lysator.liu.se>
17560         Fixed a lot of memory leaks. Thanks to Bruce Mitchener
17561         <bruce@cybersight.com> for some purify runs and analysis.
17562         Also a great thank you to Owen Taylor for creating MemProf, a
17563         free memory leak detector that was used to find and verify a
17564         lot of these fixes.
17565         
17566         * app/diagram.c:
17567         * app/paginate_psprint.c:
17568         * app/render_eps.[ch]:
17569         * app/render_svg.[ch]:
17570         Free renderers.
17572         * app/interface.c:
17573         Don't add a reference to ddisp->shell. Why was this done in
17574         the first place?
17576         * app/load_save.c:
17577         * lib/dia_xml.c:
17578         * lib/sheet.c:
17579         * lib/text.c:
17580         Free all strings returned from xmlGetProp
17582         * app/modify_tool.c:
17583         Plug leak.
17585         * objects/custom/custom.c:
17586         Use closedir() after opendir().
17588         * objects/custom/shape_info.c:
17589         User g_free() instead of "if (tmp) free(tmp)".
17591         * sheets/ER.sheet:
17592         Add newline at end of file.
17593         
17595 1999-11-20  Alexander Larsson  <alla@lysator.liu.se>
17597         Based on patch from Patrick Reynolds <reynolds@cs.duke.edu>
17598         Adds tool menu and keyboard shortcuts.
17600         * app/create_object.[ch]:
17601         Use tool_set() instead of tool_reset().
17602         create_create_object_tool() takes extra type argument
17604         * menus.c:
17605         Add tools menu.
17606         
17607         * tool.[ch]:
17608         Moved tool_data here, export it.
17609         Add separate tool type for all create objects tools.
17610         new functions tool_set().
17612         * commands.[ch]:
17613         New callback tool_set_callback.
17615         * pixmaps.h:
17616         Moved some pixmaps to interface.c.
17617         
17618         * interface.[ch]:
17619         Remove tool_data array (moved to tool.c).
17620         Use the tool_data from tool.c.
17621         Remove modify_tool_button global var.
17622         
17623 1999-11-20  Alexander Larsson  <alla@lysator.liu.se>
17625         Patch from Patrick Reynolds <reynolds@cs.duke.edu>
17626         
17627         * app/app_procs.c:
17628         Interprets command-line arguments as files to open even when
17629         HAVE_POPT is not defined.
17631         * app/magnify.c:        
17632         Shift-clicking when zooming zooms out, like the Gimp.
17634         * app/menus.c:
17635         Has hotkeys for zoom-100% and snap-to-grid.
17637 1999-11-17  James Henstridge  <james@daa.com.au>
17639         * app/scroll_tool.c (scroll_motion): fixed shift style scrolling so
17640         that it is not jumpy.
17642         * app/Makefile.am (EXTRA_DIST): added extra files to extra dist list.
17644         * app/scroll_tool.c (scroll_motion): added `grabbing hand' type
17645         scrolling by pressing the shift key when using the scroll tool.
17647         * sheets/Makefile.am: fixed makefile so that install actually works
17648         if the directories $(pkgdatadir)/sheets/UML and $(pkgdatadir)/sheets/ER
17649         don't exist.
17650         (SHEETS): install Circuit.sheet
17652 1999-11-15  Alexander Larsson  <alla@lysator.liu.se>
17653         Patch from Cyrille Chepelov <chepelov@rmcnet.fr>
17655         * sheets/Circuit.sheet:
17656         * sheets/ER.sheet:
17657         * sheets/FS.sheet:
17658         * sheets/Flowchart.sheet:
17659         * sheets/UML.sheet:
17660         * sheets/network.sheet:
17661         * sheets/sybase.sheet:
17662         Changed name space
17664         * sheets/Circuit.sheet:
17665         added some missing French translations
17667         * lib/sheet.c:
17668         killed the temporary sheet namespace
17670         * objects/custom/custom.c:
17671         obsolete comment cleaned up
17673 1999-11-12  Alexander Larsson  <alla@lysator.liu.se>
17675         * configure.in:
17676         * po/pt.po:
17677         Added portugese translation from Pedro Morais
17678         <pmmm@rnl.ist.utl.pt>
17680 1999-11-11  Alexander Larsson  <alla@lysator.liu.se>
17682         Changed all sheets to be specified in xml.
17683         All sheet objects removed from the C code.
17684         Patch from Cyrille Chepelov <chepelov@rmcnet.fr>
17685         
17686         * Makefile.am:
17687         * configure.in:
17688         Adding shapes dir.
17689         Updated version to 0.81cvs.
17690         
17691         * app/Makefile.am:
17692         Update run_dia.sh with sheet-dir.
17693         
17694         * app/app_procs.c:
17695         Load all sheets on startup.
17696         Create sheet directory first time.
17697         Don't call custom_register_sheets().
17699         * lib/Makefile.am:
17700         Add sheetdir define
17702         * lib/custom.h:
17703         Remove custom_register_sheets().
17705         * lib/sheet.[ch]:
17706         Add sheet loading code.
17708         * sheet/Circuit.sheet:
17709         * sheet/ER.sheet:
17710         * sheet/FS.sheet:
17711         * sheet/Flowchart.sheet:
17712         * sheet/UML.sheet:
17713         * sheet/network.sheet:
17714         * sheet/sybase.sheet:
17715         Added sheet files.
17717         * sheet/ER/weakentity.xpm:
17718         * sheet/UML/aggregation.xpm
17719         * sheet/UML/umlclass_template.xpm
17720         Added sheet pixmaps.
17721         These are moved from their old places.
17723         * sheet/.cvsignore:
17724         Shut up cvs.
17726         * objects/*/*.c:
17727         Removed sheet objects and sheet registration.
17728         
17729         * objects/ER/Makefile.am:
17730         * objects/ER/pixmaps/weakentity.xpm:
17731         * objects/UML/Makefile.am:
17732         * objects/UML/pixmaps/aggregation.xpm:
17733         * objects/UML/pixmaps/umlclass_template.xpm:
17734         Removed alternative pixmaps. (Moved to sheet).
17736         * objects/custom/Makefile.am:
17737         * objects/custom/load_sheet.[ch]:
17738         Removed old sheet loading code.
17739         
17740         * objects/custom/custom.c:
17741         Load all shapes instead of sheets.
17742         Removed custom_register_sheets().
17744         * objects/custom/custom_object.c:
17745         Added debug code.
17747         * objects/custom/shape_info.[ch]:
17748         Added shape_info_getbyname().
17750         * objects/flowchart/Makefile.am:
17751         * objects/flowchart/collate.shape            
17752         * objects/flowchart/delay.shape              
17753         * objects/flowchart/display.shape            
17754         * objects/flowchart/document.shape           
17755         * objects/flowchart/extract.shape            
17756         * objects/flowchart/flowchart.c              
17757         * objects/flowchart/intstorage.shape         
17758         * objects/flowchart/magdisk.shape            
17759         * objects/flowchart/magdrum.shape            
17760         * objects/flowchart/magtape.shape            
17761         * objects/flowchart/manualinput.shape        
17762         * objects/flowchart/manualop.shape           
17763         * objects/flowchart/merge.shape              
17764         * objects/flowchart/offlinestore.shape       
17765         * objects/flowchart/offpageconn.shape        
17766         * objects/flowchart/or.shape                 
17767         * objects/flowchart/predefdproc.shape        
17768         * objects/flowchart/preparation.shape        
17769         * objects/flowchart/punchedcard.shape        
17770         * objects/flowchart/punchedtape.shape        
17771         * objects/flowchart/sort.shape               
17772         * objects/flowchart/sumjunction.shape        
17773         * objects/flowchart/terminal.shape           
17774         * objects/flowchart/transaction.shape        
17775         * objects/flowchart/transmittape.shape       
17776         * objects/flowchart/pixmaps/collate.xpm      
17777         * objects/flowchart/pixmaps/delay.xpm        
17778         * objects/flowchart/pixmaps/display.xpm      
17779         * objects/flowchart/pixmaps/document.xpm     
17780         * objects/flowchart/pixmaps/extract.xpm      
17781         * objects/flowchart/pixmaps/intstorage.xpm   
17782         * objects/flowchart/pixmaps/magdisk.xpm      
17783         * objects/flowchart/pixmaps/magdrum.xpm      
17784         * objects/flowchart/pixmaps/magtape.xpm      
17785         * objects/flowchart/pixmaps/manualinput.xpm  
17786         * objects/flowchart/pixmaps/manualop.xpm     
17787         * objects/flowchart/pixmaps/merge.xpm        
17788         * objects/flowchart/pixmaps/offlinestore.xpm 
17789         * objects/flowchart/pixmaps/offpageconn.xpm  
17790         * objects/flowchart/pixmaps/or.xpm           
17791         * objects/flowchart/pixmaps/predefdproc.xpm  
17792         * objects/flowchart/pixmaps/preparation.xpm  
17793         * objects/flowchart/pixmaps/punchedcard.xpm  
17794         * objects/flowchart/pixmaps/punchedtape.xpm  
17795         * objects/flowchart/pixmaps/sort.xpm         
17796         * objects/flowchart/pixmaps/sumjunction.xpm  
17797         * objects/flowchart/pixmaps/terminal.xpm     
17798         * objects/flowchart/pixmaps/transaction.xpm  
17799         * objects/flowchart/pixmaps/transmittape.xpm 
17800         Moved shapes and their pixmaps to shapes/flowchart
17802         * shapes/Circuit/Makefile.am:
17803         * shapes/Circuit/index.sheet:
17804         Removed index.sheet.
17805         
17806         * shapes/Makefile.am:
17807         * shapes/flowchart/Makefile.am:
17808         * shapes/flowchart/*.shape:
17809         * shapes/flowchart/*.xpm:
17810         Added flowchart shapes. (Moved from objects/flowchart)
17811         
17813 1999-11-07  Fredrik Hallenberg  <hallon@lysator.liu.se>
17815         * app/app_procs.c: Fixed popt stuff.
17817 1999-11-01  James Henstridge  <james@daa.com.au>
17819         * shapes/Circuit/[hv]led_de.{shape,xpm}: new circuit shapes from
17820         Andreas Scherf.
17822 1999-10-31  Alexander Larsson  <alla@lysator.liu.se>
17824         * dia.spec:
17825         * configure.in:
17826         Update version to 0.81.
17827         
17828         * NEWS:
17829         Update with news for 0.81.
17830         
17831         * shapes/Circuit/*:
17832         * shapes/Circuit_eu/*:
17833         Moved european circuit objects to Circuit sheet.
17835 1999-10-31  Alexander Larsson  <alla@lysator.liu.se>
17836         
17837         * lib/diagramdata.[ch]:
17838         Added layer_set_object_list() function.
17840         * app/undo.[ch]:
17841         Added support for undo of reordered objects.
17842         Fix the undo of delete to keep the right order on undo.
17843         
17844         * app/diagram.c:
17845         changed loop to object_add_updates_list() calls.
17846         Added undo support to bring to front/back.
17848         * app/disp_callbacks.c:
17849         * app/paginate_psprint.c:
17850         Remove warnings.
17852 1999-10-30  Alexander Larsson  <alla@lysator.liu.se>
17854         This plugs some leaks. Thanks to
17855         Bruce Mitchener <bruce@cybersight.com> for running
17856         Dia through purify for me.
17857         
17858         * app/app_procs.c:
17859         Free displays and diagrams on exit.
17861         * app/modify_tool.c:
17862         Free gc when freeing tool.
17864         * lib/diagramdata.c:
17865         Free layer name.
17866         
17867         * app/display.c:
17868         Free update and display lists when destroying display.
17869         
17870         * lib/diagramdata.c:
17871         Don't leak layer name.
17873         * objects/custom/load_sheet.c: 
17874         * objects/custom/shape_info.c:
17875         Free loaded xml documents.
17877 1999-10-28  Alexander Larsson  <alla@lysator.liu.se>
17879         * app/commands.c:
17880         * app/object_ops.[ch]:
17881         Add undo handling to alignment ops.
17882         Based partially on patch by Dan Cohn <dan@internap.com>.
17884         * objects/standard/image.c (image_move_handle):
17885         Don't divide by zero for small images.
17886         Patch by Dan Cohn <dan@internap.com>.
17888         * objects/UML/class.c (umlclass_destroy): 
17889         * objects/custom/custom_object.c (custom_destroy):
17890         Don't free connectionpoints before calling element_destroy
17891         which unconnects them.
17893 1999-10-26  Alexander Larsson  <alla@lysator.liu.se>
17895         * objects/custom/custom_object.c: 
17896         Load and save padding too. Fixes strange load crashes.
17898         * app/group.c (group_destroy):
17899         Don't unconnect already freed connectionpoints when
17900         destroying group. Probably fixes bug reported by
17901         Elliot Lee <sopwith@redhat.com>.
17903         * app/render_gdk.c:
17904         Don't crash on zero-size (broken) bezier curves.
17905         Different sort of fix. This should work on closed bezier curves
17906         too.
17908         * objects/standard/textobj.c:
17909         Activate default properties dialog for Text objects.
17911         * app/render_eps.c: 
17912         * app/load_save.c:
17913         * app/preferences.c:
17914         * app/render_svg.c:
17915         fopen files in binary or text mode.
17917 1999-10-26  Alexander Larsson  <alex@cendio.se>
17919         * app/render_gdk.c (bezier_add_lines):
17920         Don't crash on zero-size (broken) bezier curves.
17921         Fixes a crashing bug.
17923 1999-10-25  James Henstridge  <james@daa.com.au>
17925         * app/Makefile.am (run_dia.sh): allow dia to find internal shape files
17926         before it is installed.
17928         * objects/flowchart/flowchart.c: use relative paths to find shapes.
17930         * objects/custom/custom.c (custom_object_load): take file names
17931         relative to $(pkgdatadir)/shape-internal, and check an environment
17932         variable for an alternative directory.
17934         * app/...: added copyright messages to the top of my new code.
17936         * app/paginate_psprint.c: some general clean ups.  Also, give an error
17937         dialog if we can't open the command or output file for writing.
17939         * app/diapagelayout.c (dia_page_layout_set_orientation): fixed
17940         function so it would set orientation to landscape correctly.
17942         * app/paginate_psprint.c: use the paper settings that come with
17943         the diagram.  Also implemented landscape printing.
17945         * app/render_eps.c (new_psprint_renderer): use diagram paper metrics
17946         in PS header.
17948         * app/commands.[ch] (file_pagesetup_callback): added callback for
17949         the page setup dialog.
17951         * app/menus.c: added page setup menu item.
17953         * app/pagesetup.[ch]: implementation of the page setup dialog.
17955         * app/diapagelayout.[ch]: added accessors for the scaling factor.
17956         
17957         * app/load_save.c (diagram_load): load paper information from save
17958         file.
17959         (diagram_save): save the paper info.
17961         * lib/diagramdata.c (new_diagram_data): initialise paper info section
17962         of DiagramData structure.
17963         (diagram_data_destroy): free the paper name.
17965         * lib/diagramdata.h: added a paper member to the DiagramData structure
17966         that holds the page layout info for a diagram.
17968 1999-10-21  Alexander Larsson  <alla@lysator.liu.se>
17970         * objects/flowchart/box.c:
17971         * objects/flowchart/ellipse.c:
17972         * objects/flowchart/diamond.c:
17973         * objects/flowchart/parallelogram.c:
17974         Load and save padding too. Fixes strange load crashes.
17976 1999-10-21  Alexander Larsson  <alla@lysator.liu.se>
17978         * app/app_procs.c (name_is_lib):
17979         .dll, .sl and .so.0.0.0 are also libraries.
17981 1999-10-20  James Henstridge  <james@daa.com.au>
17983         * configure.in: added extra makefile.
17984         
17985         * shapes/Circuit_eu/*: a new set of european circuit shapes from
17986         Andreas Scherf <scherfa@fh-trier.de>.  Made a few small modifications
17987         (added fuses to makefile, fill the area of some of the components).
17989 1999-10-19  Alexander Larsson  <alla@lysator.liu.se>
17991         * lib/Makefile.am:
17992         * app/Makefile.am: 
17993         Add GDK_IMLIB_CFLAGS to includes.
17994         Changed --export-dynamic to -export-dynamic
17996         * lib/widgets.c:
17997         * objects/UML/message.c:
17998         Removed c++ comment.
18000         * lib/render_store.[ch]:
18001         Don't use empty structure. That is not Ansi C.
18003 1999-10-19  James Henstridge  <james@daa.com.au>
18005         * app/diapagelayout.c (dia_page_layout_init): use DiaUnitSpinner's for
18006         the margin entries, as they allow interpretation of units.
18007         (paper_size_change): display the current page dimensions.
18009         * app/diaunitspinner.[ch]: a widget derived from the standard
18010         GtkSpinButton that tries to take units into account.  So if you enter
18011         "1in" into the entry, it will convert it to 2.54cm.
18013 1999-10-18  Alexander Larsson  <alla@lysator.liu.se>
18015         * app/app_procs.c:
18016         Removed include of dlfcn.h
18018 1999-10-18  James Henstridge  <james@daa.com.au>
18020         * app/diapagelayout.c (paper_size_change, orient_changed): set upper
18021         bound on margin widths.  It is set to the paper width/height.
18023         * objects/flowchart/diamond.c (diamond_distance_from): fixed distance
18024         routine for the diamond.  This bug was found and fixed by Daniel Wang
18025         <danwang@CS.Princeton.EDU>
18027 Sun Oct 17 19:46:36 1999  ape@gandalf.spacetec.no  (Asbjorn Pettersen)
18029         * app/commands.c: Add <sys/types.h> before <sys/stat.h> to
18030         remove warning (OS/2 version).
18032 1999-10-17  Alexander Larsson  <alla@lysator.liu.se>
18034         * README:
18035         Put a pointer to objects/custom/README.
18036         
18037 1999-10-17  Alexander Larsson  <alla@lysator.liu.se>
18039         * dia.spec:
18040         Updated version to 0.80
18042         * configure.in:
18043         Updated version to 0.80cvs
18045 1999-04-08  Alexander Larsson  <alla@lysator.liu.se>
18047         * Released Dia 0.80
18048         Tag called DIA_0_80
18049         
18050 1999-10-17  Fredrik Hallenberg  <hallon@lysator.liu.se>
18052         * app/Makefile.am
18053         * lib/Makefile.am
18054         * objects/UML/Makefile.am
18055         * objects/ER/Makefile.am
18056         * objects/network/Makefile.am
18057         * objects/standard/Makefile.am
18058         * objects/FS/Makefile.am
18059         * objects/sybase/Makefile.am
18060         * objects/flowchart/Makefile.am
18061         * objects/custom/Makefile.am
18062         Added -I$(top_srcdir)/intl which is needed for
18063         --with-included-gettext.
18065         * POTFILES.in
18066         Updated.
18067         
18068         * po/sv.po
18069         Updated swedish translation.
18071 1999-10-16  Alexander Larsson  <alla@lysator.liu.se>
18073         * configure.in:
18074         Updated version number to 0.80.
18076         * KNOWN_BUGS:
18077         New file.
18079         * TODO:
18080         Updated. Moved bugs to KNOWN_BUGS.
18082         * NEWS:
18083         Updated with 0.80 release notes.
18084         
18085 1999-10-16  Alexander Larsson  <alla@lysator.liu.se>
18086         
18087         * lib/orth_conn.c:
18088         For backwards compatibility, make sure handle 0 and 1 are the
18089         first and last handle. Fixes compatibility with 0.41, breaks
18090         compatibility with cvs version.
18091         Fixed bug in undo/redo of adding deleting endpoint segments
18092         when the endpoint was connected.
18093         Start OrthConn objects with three segments.
18095 1999-10-16  James Henstridge  <james@daa.com.au>
18097         * objects/custom/custom_object.c (custom_update_data): changed
18098         resizing behaviour a bit so that shapes don't grow huge when you try
18099         to resize them to smaller than the size required by the text box.
18100         Also, now shapes will not grow with fixed aspect ratio when you enter
18101         text into them unless the shape has the fixed aspect ratio flag set.
18103 1999-10-15  James Henstridge  <james@daa.com.au>
18105         * objects/flowchart/flowchart.c: add new shapes to flowchart sheet.
18107         * object/flowchart/pixmaps/...: corresponding pixmaps for new shapes.
18109         * objects/flowchart/magdrum.shape: 
18110         * objects/flowchart/offlinestore.shape: 
18111         * objects/flowchart/punchedtape.shape: 
18112         * objects/flowchart/transmittape.shape: 
18113         * objects/flowchart/punchedcard.shape: new shapes.
18115         * objects/flowchart/flowchart.c: add new shapes to flowchart sheet.
18117         * object/flowchart/pixmaps/...: corresponding pixmaps for new shapes.
18119         * objects/flowchart/collate.shape:
18120         * objects/flowchart/delay.shape:
18121         * objects/flowchart/extract.shape:
18122         * objects/flowchart/intstorage.shape:
18123         * objects/flowchart/magdisk.shape:
18124         * objects/flowchart/magtape.shape:
18125         * objects/flowchart/merge.shape:
18126         * objects/flowchart/or.shape:
18127         * objects/flowchart/sort.shape:
18128         * objects/flowchart/sumjunction.shape: new shapes.
18130 1999-10-15  Alexander Larsson  <alla@lysator.liu.se>
18132         * TODO (BUGS):
18133         Added bug:
18134         Entering an erronous command as print command
18135         crashes dia.
18137         * app/paginate_psprint.c:
18138         Save all print dialog values for next time.
18139         
18140         * app/Makefile.am:
18141         Remove custom lib from DIA_LIB_PATH.
18143 1999-10-14  James Henstridge  <james@daa.com.au>
18145         * objects/flowchart/flowchart.c: add new shapes to flowchart sheet.
18147         * object/flowchart/pixmaps/...: corresponding pixmaps for new shapes.
18148         
18149         * objects/flowchart/offpageconn.shape: 
18150         * objects/flowchart/manualop.shape: 
18151         * objects/flowchart/preparation.shape: 
18152         * objects/flowchart/manualinput.shape: 
18153         * objects/flowchart/predefdproc.shape: 
18154         * objects/flowchart/terminal.shape: new shapes in the flowchart sheet.
18156 1999-10-13  James Henstridge  <james@daa.com.au>
18158         * app/diapagelayout.[ch]: added accessors to paper information.  The
18159         widget should be just about complete now.
18161         * app/diapagelayout.[ch]: fleshed out the page setup widget a bit more.
18162         It actually does something now.
18164 1999-10-12  James Henstridge  <james@daa.com.au>
18166         * app/pixmaps/portrait.xpm, app/pixmaps/landscape.xpm: support pixmaps
18167         for the page layout widget.
18169         * app/diapagelayout.[ch]: start of page layout widget.  Not actually
18170         built yet as it is not complete.
18172         * objects/flowchart/flowchart.c: added new shapes to sheet.
18174         * objects/flowchart/display.shape:
18175         * objects/flowchart/transaction.shape: new shapes.
18177         * AUTHORS: added my name to the spec file.
18179         * dia.spec: include the dia desktop entry to the spec file.
18181         * Makefile.am: install the dia.desktop file.
18183         * dia.desktop: added a gnome desktop entry so you can start dia
18184         from the gnome panel menu.
18186 1999-10-11  James Henstridge  <james@daa.com.au>
18188         * objects/custom/custom_object.c:
18189         * objects/custom/shape_info.c: warning fixes.
18191         * objects/flowchart/document.shape: a shape file for the `document'
18192         flowchart shape.
18194         * lib/custom.h: new header with the custom shape prototypes.
18196         * app/app_procs.c: register custom objects as well.
18197         (register_objects_in): close shared libraries if they don't load
18198         correctly, and call g_module_make_resident on libraries that load
18199         correctly.
18201         * app/Makefile.am (dia_LDADD): added libcustom_objects.a to link list.
18203         * objects/custom/custom.c: removed get_version, added custom_ prefix
18204         to register_objects and register_sheets.
18206         * objects/custom/Makefile.am: converted to a normal library.
18208 1999-10-10  Alexander Larsson  <alla@lysator.liu.se>
18210         * app/lineprops_area.c:
18211         * app/render_svg.c:
18212         * lib/objchange.c:
18213         * objects/custom/shape_info.c:
18214         * objects/flowchart/box.c:
18215         * objects/flowchart/diamond.c:
18216         * objects/flowchart/ellipse.c:
18217         * objects/flowchart/parallelogram.c:
18218         * objects/network/flash.c:
18219         * objects/network/scead-plug.c:
18220         * objects/sybase/client.c:
18221         Removed -Wall warnings.
18222         
18223         * objects/network/bus.c:
18224         Removed unused functions.
18226         * objects/FS/flow-ortho.c:
18227         * objects/FS/flow-poly.c:
18228         * objects/FS/flow.c:
18229         * objects/FS/function.c:
18230         
18231         Implemented "non-implemented" undo for FS objects.
18232         Now at least it won't crash.
18233         
18234 1999-10-10  Alexander Larsson  <alla@lysator.liu.se>
18236         * objects/network/bus.c:
18237         Implemented undo.
18238         Handles are now added and removed using the object menu.
18239         Default to 6 handles instead of 10.
18240         Changed name from "Standard - Bus" to "Network - Bus". Kept old
18241         name for backwards compatibility.
18243         * objects/network/network.c:
18244         Changed name from "Standard - Bus" to "Network - Bus". Kept old
18245         name for backwards compatibility.
18247         * app/properties.[ch]:
18248         * app/undo.c:
18249         Update properties in properties dialog if the shown object
18250         is part of and ObjectChange (undo or redo).
18252         * lib/poly_conn.c:
18253         Remove old known bugs list.
18255         * objects/UML/class_dialog.c:
18256         Removed debug printf's.
18258 1999-10-10  James Henstridge  <james@daa.com.au>
18260         * objects/custom/custom.c (custom_object_load): new function that
18261         provides a nice entry point to the custom shape code for when it
18262         gets used by other libraries.
18264         * configure.in: removed 11 makefiles from AC_OUTPUT list.  This
18265         speeds builds up a bit.
18267         * */Makefile.am (EXTRA_DIST): include pixmaps in distribution.
18268         (SUBDIRS): do not descend into pixmaps subdirs.
18270         * */pixmaps/Makefile.am: removed -- incorporate into parent makefiles.
18271         This speeds up build process.
18273         * objects/custom/custom.c (sheets): made variable static.
18275         * objects/custom/custom_util.[ch] (custom_get_relative_filename):
18276         renamed function.
18278         * objects/custom/load_sheet.[ch] (custom_sheet_load): renamed function.
18280         * objects/custom/custom.c: look in ~/.shapes instead of
18281         ~/.dia_shapes as the per-user shapes directory.
18283         * app/preferences.c (prefs_save): save config to ~/.diarc.
18284         (prefs_load): load configuration from ~/.diarc.  If the file
18285         does not exist, fallback on the old ~/.diarc location.
18287         * app/app_procs.c (create_user_dirs): create the ~/.dia directory
18288         on startup.
18289         (register_all_objects): look for user specific objects in
18290         ~/.objects rather than ~/.dia_libs.
18292 1999-10-10  Fredrik Hallenberg  <hallon@lysator.liu.se>
18294         * configure.in:
18295         * app_procs.c:
18296         * objects/flowchart/box.c
18297         * objects/flowchart/ellipse.c
18298         * objects/flowchart/flowchart.c 
18299         Use gmodule for dynamic linking. As gmodule is using
18300         RTLD_GLOBAL i had to change flowchart box and ellipse
18301         so the typenames doesn't conflict with the standard
18302         box and ellipse.
18304         * message.c
18305         * commands.c
18306         Use button box to make dialogs look better.
18308 1999-10-09  Alexander Larsson  <alla@lysator.liu.se>
18310         * objects/UML/class_dialog.c:
18311         * objects/UML/class.h:
18312         Implemented undo for "UML - Class" objects.
18313         Not 100% tested yet.
18315         * objects/UML/classicon.c:
18316         * objects/UML/constraint.c:
18317         * objects/UML/dependency.c:
18318         * objects/UML/generalization.c:
18319         * objects/UML/implements.c:
18320         * objects/UML/large_package.c:
18321         * objects/UML/lifeline.c:
18322         * objects/UML/message.c:
18323         * objects/UML/object.c:
18324         * objects/UML/realizes.c:
18325         * objects/UML/state.c:
18326         * objects/UML/usecase.c:
18327         Removed warnings.
18328         
18329         * lib/connectionpoint.h:
18330         Fixed typo.
18331         
18332 1999-10-09  James Henstridge  <james@daa.com.au>
18334         * objects/custom/*.[ch]: added copyright notices to custom object
18335         files.
18337         * shapes/Circuit/hdiode.shape:
18338         * shapes/Circuit/hzener.shape: 
18339         * shapes/Circuit/opamp.shape:
18340         * shapes/Circuit/vdiode.shape:
18341         * shapes/Circuit/vzener.shape: made adjustments to make the circuit
18342         shapes look nice after the custom shape code changes.
18344         * objects/custom/README: updated docs to cover changes to drawing
18345         code.
18347         * objects/custom/custom_object.c (custom_draw): honour the line
18348         properties when drawing the shape.
18350         * objects/custom/shape_info.[ch]: added support for setting line
18351         properties for individual drawing elements in a custom shape.  You
18352         can set the dash style, dash length, cap style and join style.
18354 1999-10-07  James Henstridge  <james@daa.com.au>
18356         * objects/custom/shape_info.c (parse_style): added a few extra synonyms
18357         for foreground and background.
18359         * objects/custom/custom_object.c (custom_draw): use the new style
18360         information when drawing the object.
18362         * objects/custom/shape_info.[ch]: store all shape style info in the
18363         GraphicStyle structure.  This makes adding support for extra CSS
18364         attributes easier -- we don't have to keep adding extra arguments to
18365         a lot of functions.
18367 1999-10-05  James Henstridge  <james@daa.com.au>
18369         * lib/intl.c (unalias_lang): merged in changes from the i18n code
18370         swiped from gnome-libs.
18372 1999-10-03  Alexander Larsson  <alla@lysator.liu.se>
18374         * objects/standard/image.c (get_directory):
18375         Fix memleak. Found by Kjartan Maraas <kmaraas@online.no>
18377 1999-09-28  Alexander Larsson  <alla@lysator.liu.se>
18379         * lib/poly_conn.c (polyconn_destroy):
18380         Fix bug. Access of freed memory.
18381         Rememeber, you can't free the handles of an object
18382         before calling object_destroy(), as it unconnects the handles
18383         therefore referencing them.
18385 1999-09-28  Alexander Larsson  <alla@lysator.liu.se>
18387         * app/undo.c:
18388         undo_clear() didn't set stack->depth to zero.
18389         This made other undo functions crash after this had been called
18390         on a "full" stack.
18391         
18392         * dia.xpm:
18393         Slightly modified by Chris Love <clove@exactis.com>
18395 1999-09-19  Alexander Larsson  <alla@lysator.liu.se>
18397         * objects/UML/class.h: 
18398         * objects/UML/class_dialog.c:
18399         Retrun NULL ObjectChange on class property change.
18400         This means no crashes, but "UML - Class" doesn't support undo yet.
18401         
18402 1999-09-19  Alexander Larsson  <alla@lysator.liu.se>
18403         
18404         * lib/text.c:
18405         Indentation fix.
18407         * objects/UML/classicon.c:
18408         * objects/UML/dependency.c:
18409         * objects/UML/generalization.c:
18410         * objects/UML/implements.c:
18411         * objects/UML/large_package.c:
18412         * objects/UML/lifeline.c:
18413         * objects/UML/message.c:
18414         * objects/UML/object.c:
18415         * objects/UML/realizes.c:
18416         * objects/UML/state.c:
18417         * objects/UML/usecase.c:
18418         Update to new undo (w. get/set_state).
18419         Add object menu to add/delete segments.
18421 1999-09-17  Alexander Larsson  <alla@lysator.liu.se>
18423         * app/menus.c:
18424         Add equal distance alignment.
18426         * app/object_ops.c:
18427         Add equal distance alignment.
18428         Fix bug in adjacent alignment.
18430 1999-09-16  Alexander Larsson  <alla@lysator.liu.se>
18432         * objects/UML/constraint.c: 
18433         Update to new undo (w. get/set_state).
18435 1999-09-15  Alexander Larsson  <alla@lysator.liu.se>
18437         * app/paginate_psprint.c:
18438         Save (parts, more todo) of the info in the print dialog to the
18439         next time it's opened.
18440         Patch from Yo Ric Dude <ricdude@toad.net>
18442 1999-09-14  Alexander Larsson  <alla@lysator.liu.se>
18444         * configure.in:
18445         Updated version string to 0.41cvs.
18447         * objects/UML/assocition.c:
18448         Update to new undo (w. get/set_state).
18449         Add object menu to add/delete segments.
18451         * app/app_procs.c:
18452         Added function debug_break() and called it after all
18453         objects and sheets are loaded. Place a breakpoint here if you
18454         want to debug objects. All symbols should be loaded.
18456 1999-09-12  James Henstridge  <james@daa.com.au>
18458         * app/menus.c (display_menu_items): added print menu item.
18459         (filemenu): always add print menu item -- even if gnome-print is
18460         not installed.
18462         * app/commands.h, app/commands.c (file_print_callback): the print
18463         menu item is now available for both gnome-print and non gnome-print
18464         setups.
18466         * app/paginate_psprint.c (diagram_print_ps): show a dialog to let you
18467         print with the non gnome-print driver.
18469 1999-09-11  James Henstridge  <james@daa.com.au>
18471         * app/paginate_gnomeprint.c (diagram_print_gnome): moved the gnome
18472         printer dialog code out of commands.c.
18474         * app/paginate_psprint.c: new file containing the pagination code for
18475         psprint.
18477         * app/render_eps.c: made a few modifications so as well as producing
18478         EPS files, this renderer can be set up to do postscript printing.
18479         This basically entailed adding an extra function to create a RenderEPS
18480         renderer which did not bother setting the viewport for the document.
18481         That was left for the pagination code.
18483 1999-09-10  James Henstridge  <james@daa.com.au>
18485         * app/render_gnomeprint.c (draw_ellipse, fill_ellipse): since
18486         gnome-print does not support elliptic arcs at the moment, approximate
18487         the ellipse with eight bezier curves.  This gives a pretty good
18488         match to a true ellipse.
18490 1999-09-09  James Henstridge  <james@daa.com.au>
18492         * app/commands.c (file_gnome_print_callback): added support for
18493         scaling the diagram.  Also fixed a few other bugs.
18495         * app/paginate_gnomeprint.c (print_page): added ability to scale
18496         document.  Fixed up test to see if the page has no objects on it.
18497         This should prevent some blank pages being printed.  Non square
18498         objects such as lines could still cause problems.
18500 1999-09-08  James Henstridge  <james@daa.com.au>
18502         * app/commands.c (file_gnome_print_callback): changed from using the
18503         standard printer selection dialog to one that also has a paper size
18504         selector as well.
18506         * commands.[ch]: added callbacks for the print menu item.  Currently
18507         it only does A4 output.  I will make it configurable soon.
18508         
18509         * app/menus.c: add a print diagram menu item if gnome-print support
18510         is enabled.
18511         
18512         * app/paginate_gnomeprint.c, app/paginate_gnomeprint.h: this is a
18513         bit higher level than the gnome-print renderer.  It splits the
18514         diagram into page size chunks and then renders them.  For each
18515         page, it only renders the objects whose bounding box intersects
18516         the page, and it sets the clip mask so that the diagram does not
18517         overlap the margins.
18518         
18519         * app/render_gnomeprint.c, app/render_gnomeprint.h: added a renderer
18520         that uses gnome-print as its back end.
18521         
18522         * configure.in: added a check for gnome-print.  It is disabled by
18523         default because the code is not really working correctly yet.
18525         * app/menus.c: the delete object menu item was missing from the
18526         GnomeUIInfo style menus.
18528 1999-09-07  Fredrik Hallenberg  <hallon@lysator.liu.se>
18530         * configure.in
18531         Added japanese to ALL_LINGUAS.
18532         Fix for Linux on Alpha.
18534 1999-09-07  Alexander Larsson  <alla@lysator.liu.se>
18536         * app/create_object.c (create_object_button_press):
18537         Always initialize tool->obj. Otherwise we store a null
18538         in the undo Change.
18540         * lib/text.c:
18541         Set linestyle before drawing cursor.
18542         Fix undo of backwards delete.
18544 1999-09-05  James Henstridge  <james@daa.com.au>
18546         * dia.spec: updated spec file to distribute $(prefix)/share/dia.
18548         * app/render_svg.c (draw_image): some fixes so that the appropriate
18549         style attributes are set.  Before it was setting line styles on
18550         fill_* functions.  Now it only does this for the draw_* variants.
18552         * app/Makefile.am (run_dia.sh): set the DIA_SHAPE_PATH environment
18553         variable so that custom shapes can be loaded.
18555         * shapes/: new directory for custom shapes.  The Circuit sheet has
18556         been moved here.
18558 1999-09-02  James Henstridge  <james@daa.com.au>
18560         * TODO: removed a few todo items that have been implemented.
18562         * app/interface.c (create_sheets): enabled the popup page menu to the
18563         notebook.  This can make it easier to select different sheets.
18565         * object/custom/Circuit/: added diode, zener diode, ground point and
18566         operational amplifier shapes.
18567         
18568         * objects/custom/Makefile.am: added a note about adding DEBUG_CUSTOM
18569         if you want the output.
18571         * objects/custom/shape_info.c (parse_path): same here.
18573         * objects/custom/load_sheet.c (load_with_readdir): don't print so
18574         much debugging output.  To get the previous level of output, define
18575         DEBUG_CUSTOM.
18577         * objects/custom/shape_info.c (parse_svg_node): polygons were being
18578         recorded as polylines in the ShapeInfo structure.
18580         * objects/custom/README: some notes on writing new custom shapes.
18581         
18582 1999-09-01  James Henstridge  <james@daa.com.au>
18584         * objects/custom/Circuit/hinductor.*:
18585         * objects/custom/Circuit/vinductor.*: added inductor shapes that
18586         also test out the bezier curve and SVG path support.
18587         
18588         * objects/custom/custom_object.c (custom_draw): added support for
18589         drawing bezier paths and filled shapes.
18591         * objects/custom/shape_info.c (parse_path): new function to parse
18592         SVG path elements.  It does not do quadratic beziers or elliptic
18593         arcs though.  Only moves, lines and cubic beziers.
18594         (*): added support for paths.
18596 1999-08-31  James Henstridge  <james@daa.com.au>
18598         * objects/sybase/ltm.c (render_to_store): use the newer bezier API.
18600         * app/render_svg.c (draw_bezier, fill_bezier): updated renderer
18601         interface
18603         * app/render_eps.c (draw_bezier, fill_bezier): updated renderer
18604         interface
18606         * app/render_gdk.c (draw_bezier, fill_bezier): updated renderer
18607         interface.
18609         * lib/render_store.[ch]: use newer bezier functions.
18611         * lib/render.h: changed the bezier drawing functions to use an array
18612         of BezPoint structures instead of normal Point structures to allow
18613         lineto's mixed in with the curveto's.
18614         
18615         * objects/custom/Circuit/pnp.*: added pnp transistor shape.
18616         
18617         * objects/custom/Circuit/Makefile.am (SHAPES): added index.sheet and
18618         xpm images for different shapes to Makefile.
18620         * objects/custom/custom_object.c (custom_object_new): set the icon
18621         for the sheet button if there is one.  Otherwise fall back on the
18622         default custom object icon.
18624         * objects/custom/shape_info.c (load_shape_info): read the sheet
18625         icon name from the shape file.
18627         * app/interface.c (create_sheet_page): if sheet_obj->pixmap == NULL,
18628         check the pixmap_file field for the name of a pixmap file to load
18629         for the tool.
18631         * lib/sheet.h (SheetObj): added pixmap_file field to structure.  It is
18632         at the end of the structure, and it isn't used if the pixmap field
18633         is non NULL, so it should not break binary compatibility.
18635         * objects/custom/load_sheet.[ch]: moved sheet loading code here.  Also
18636         added support for the use of an index.sheet file so you can specify
18637         the ordering of the shapes in the sheet, and also internationalise
18638         the sheet name and actually be able to give a description.  The old
18639         readdir based sheet loading code acts as a fallback if an index.sheet
18640         file can not be found.
18642         * objects/custom/custom_util.[ch]: new file containing useful routines
18643         needed by the custom object code.  Currently only contains a simple
18644         routine for resolving relative paths.
18646         * objects/custom/custom_object.c (custom_draw): fixed problem with
18647         drawing rectangles if the shape has been flipped.
18649 1999-08-30  James Henstridge  <james@daa.com.au>
18651         * objects/custom/custom_object.c (custom_get_object_menu): allow
18652         flipping of custom shapes.  This uses the miggle click object
18653         menu.
18655         * objects/custom/Circuit/npn.shape: fix aspect ratio.
18657         * objects/custom/custom_object.c (custom_update_data): honour the
18658         aspect ratio constraints.
18660         * objects/custom/shape_info.c (load_shape_info): updated aspect ratio
18661         tag parsing, so you can specify a free, fixed or a range for aspect
18662         ratios for the shape.
18664 1999-08-29  James Henstridge  <james@daa.com.au>
18666         * objects/custom/test.xml, objects/custom/Circuit/*.shape: fixed
18667         up shape namespace tag.
18669         * objects/custom/shape_info.c (load_shape_info): check xml:lang
18670         attribute on <description> elements to support i18n for custom
18671         shape descriptions.
18672         Also changed the shape namespace for custom shapes to something
18673         a little more sensible.
18675         * lib/dummy_dep.h (dummy_dep): added extra dummy dependency.
18677         * lib/intl.c: new file containing some functions for i18n stuff.
18679         * app/layer_dialog.c (create_button_box): fixed a warning.
18681         * objects/custom/custom_object.c: use current line style.  Save dash
18682         length.
18684         * objects/flowchart/diamond.c: use current line style.  Save dash
18685         length.
18687         * objects/flowchart/parallelogram.c: use current line style.  Save
18688         dash length.
18690         * objects/flowchart/ellipse.c: use current line style.  Save dash
18691         length.
18693         * objects/flowchart/box.c: use current line style.  Save dash length.
18695         * objects/standard/ellipse.c: make ellipse use current line style.
18697         * objects/standard/box.c: use the line style set in the toolbox for
18698         new boxes, and remember the dash length.
18700         * app/commands.c (view_toggle_rulers_callback): fix reshowing of
18701         rulers.
18703 1999-08-24  James Henstridge  <james@daa.com.au>
18705         * objects/flowchart/ellipse.c (ellipse_update_data): made some changes
18706         to try to stop ellipse to get infinite width/height when we resize,
18707         while trying to keep the text inside the ellipse.
18709         * objects/flowchart/box.c, objects/flowchart/parallelogram.c,
18710         * objects/flowchart/diamond.c, objects/flowchart/ellipse.c: fixed
18711         resizing behaviour, so that you can't push objects round the screen
18712         with the resize handles.
18714         * app/lineprops_area.c (dia_arrow_chooser_init, dia_line_chooser_init):
18715         get the OK buttons in the dialogs to take default clicks.
18717         * objects/custom/custom_object.c: added code so that resizing the
18718         shape does not end up pushing it round the screen.
18720 1999-08-23  Alexander Larsson  <alla@lysator.liu.se>
18722         * app/display.[ch]:
18723         Generate rectangle with the union of the damaged regions.
18724         This is used to optimize the grid paint and the object rendering.
18725         display_render_pixmap passes this info to grid_draw() and data_render().
18727         * app/grid.[ch]:
18728         grid_draw doesn't draw grid lines outside of damaged rectangle.
18729         Sets dashlength when drawing non-solid grid.
18730         
18731         * lib/diagramdata.[ch]:
18732         data_render() and layer_render() takes an optional damaged rectangle
18733         argument. No objects not intersecting this are drawn.
18735         * app/diagram.c:
18736         Fix warning.
18737         Call data_render with NULL update rectangle.
18738         
18739 1999-08-23  James Henstridge  <james@daa.com.au>
18741         * objects/custom/custom_object.c (custom_update_data): if the aspect
18742         ratio is fixed, make sure the shape is not distorted.
18744         * object/custom/shape_info.h, objects/custom/shape_info.c: notice if
18745         a <fixaspectratio/> tag is given in the shape file.
18747         * objects/custom/shape_info.[ch], objects/custom/custom_object.c:
18748         added support for stroke-width, stroke and fill CSS attributes
18749         specified in style attributes of the SVG elements.  The line width
18750         is relative to the user specified line width.  The stroke and fill
18751         attributes can only be used to swap the foreground/background
18752         colours.
18754         * lib/widgets.c (dia_line_style_selector_set_linestyle): set the
18755         sensitivity on the dash length selector when this function is called.
18757         * objects/standard/arc.c: same.  Also handle dash length.
18758         * objects/standard/zigzagline.c: same.
18759         * objects/standard/polyline.c: same.  Also handle dash length.
18760         * objects/standard/line.c: use default arrow/line styles.
18762         * app/interface.c: added callbacks to set the default attributes.
18764         * lib/attributes.c: added implementations of these functions.
18766         * lib/attributes.h: added extra prototypes for the new line properties
18767         area in the toolbox.
18769         * app/interface.c (create_lineprops_area): added line properties
18770         area to bottom of toolbox.
18772         * app/lineprops_area.h: a header exporting a few routines of the
18773         line properties area widgets.
18775         * app/lineprops_area.c: new file containing a selector for arrows
18776         and line styles to go in the main toolbox.
18778 1999-08-22  Alexander Larsson  <alla@lysator.liu.se>
18780         * HACKING:
18781         Update Gtk+ 1.0.5 comment to 1.2.0.
18783         * INSTALL:
18784         Demand libtool 1.3
18786         * acconfig.h:
18787         Add HAVE_LIBPOPT
18789         * configure.in:
18790         Make sure we don't propagate -ldl and -lpopt to all LIBS
18791         by adding new var APP_LIBS that only app/dia links with.
18792                 
18793         * app/Makefile.am:
18794         Update run_dia.sh to load custom and flowchart objects.
18796         * objects/ER/Makefile.am:
18797         * objects/FS/Makefile.am:
18798         * objects/UML/Makefile.am:
18799         * objects/network/Makefile.am:
18800         * objects/standard/Makefile.am:
18801         * objects/sybase/Makefile.am:
18802         Don't build versioned libs.     
18803         
18804 1999-08-22  James Henstridge  <james@daa.com.au>
18806         * configure.in: added objects/custom/Circuit/Makefile to AC_OUTPUT
18807         list.
18809         * objects/Makefile.am (SUBDIRS): added custom to subdir list -- it
18810         should actually work a bit now.
18812         * objects/custom/Circuit/*: a test sheet for the custom shape code.
18813         It is a small collection of circuit elements.
18815         * objects/custom/shape_info.c: fixed up loading of polylines and
18816         polygons.  Before it was removing negative signs :(
18818         * objects/custom/pixmaps/custom.xpm: drew the custom shape icon.  A
18819         placeholder was here before.  I still need to work out how to set
18820         icons for individual custom shapes.
18821         
18822         * objects/custom/custom.c: added code to load the shapes into sheets
18823         properly.  The shape files should be arranged into directories, and
18824         each directory represents a different sheet in the toolbox.  This
18825         will make it very easy to distribute a collection of dia shapes as
18826         a tarball.  I still need to work out internationalisation, and maybe
18827         also shape ordering in the sheet.
18829         * objects/custom/custom_object.c: fixed up dialogs for these objects.
18830         (custom_create): fix for objects without text areas.
18832         * objects/custom/shape_info.h, objects/custom/custom_object.c: loading
18833         and saving of custom object works correctly now.
18835 1999-08-21  James Henstridge  <james@daa.com.au>
18837         * objects/flowchart/ellipse.c: 
18838         * objects/flowchart/diamond.c: 
18839         * objects/flowchart/parallelogram.c: 
18840         * objects/flowchart/box.c: Fixed up a few bugs in these objects when
18841         copying or loading these object types.  Not all the connection
18842         points would be initialised correctly.
18844         * objects/flowchart/Makefile.am (libflowchart_objects_la_LDFLAGS):
18845         similar here.
18847         * objects/custom/Makefile.am (libcustom_objects_la_LDFLAGS): do not
18848         build a versioned library.  It will only ever be dlopen'd, so this
18849         is not a problem.
18851         * objects/custom/custom_object.c (custom_distance_from): allow
18852         selecting the object by clicking on the text.  This fixes problems
18853         where the text box is outside the graphic.
18855         * objects/custom/shape_info.c (load_shape_info): fixed up reading
18856         of connections points.  It should be possible to add connections
18857         to custom objects now.
18859         * objects/custom/custom_object.c (custom_update_data): fixed resizing
18860         due to changes to text.
18862         * configure.in: added extra makefiles.
18863         
18864         * objects/custom/shape_info.[ch]:
18865         * objects/custom/custom_object.c:
18866         * objects/custom/custom.c: the starts of custom shape support in dia.
18867         This is not built by default at the moment, since it is not quite
18868         complete.  When it is, it will let you create more shapes for dia
18869         without writing a line of C.  Its implementation includes buzzwords
18870         such as XML and SVG, so it must be good :)
18872 1999-08-19  Karsten Weiss  <karsten@addx.au.s.shuttle.de>
18874         * app/app_procs.c (app_exit): Use button labels "Quit" and
18875         "Cancel" instead of "Yes" and "No".
18876         Set default action to "Cancel" instead of "Quit".
18878 1999-08-19  James Henstridge  <james@daa.com.au>
18880         * objects/flowchart/flowchart.c: added ellipse object.
18881         
18882         * objects/flowchart/ellipse.c: a new shape for the flowchart toolbox.
18884 1999-08-18  James Henstridge  <james@daa.com.au>d
18886         * app/color_area.c (color_area_edit): small fix to prevent dia from
18887         segfaulting when you try to change the default foreground/background.
18889 1999-08-17  Alexander Larsson  <alla@lysator.liu.se>
18891         * app/diagram.[ch] (diagram_redraw_all):
18892         Added function that redraws all diagrams.
18894         * app/preferences.c (prefs_apply):
18895         Call diagram_redraw_all when prefs are changed.
18897         * app/render_svg.c:
18898         Don't use xmlEncodeEntitiesReentrant(). It doesn't exist on
18899         older libxml's, and the old version works good enought here.
18900         
18901 1999-08-17  James Henstridge  <james@daa.com.au>
18903         * lib/widgets.c: changed handlers that were connected to the GtkButton
18904         "pressed" signal to connect to the "clicked" signal.  This removes the
18905         problem where dialogs are inactive until you click a mouse button
18906         after using a colour selector.
18908         * configure.in: added extra makefiles to AC_OUTPUT list.
18909         
18910         * objects/Makefile.am (SUBDIRS): added flowchart module
18912         * objects/flowchart/*: a collection of shapes for use in flowcharts.
18914         * app/color_area.c (color_area_events): similar here.
18916         * app/linewidth_area.c (linewidth_area_events): sometimes a configure
18917         event is recieved with event->width == 0, which causes a warning if we
18918         try to create a pixmap of that width.
18920         * app/preferences.c, app/preferences.h, app/grid.c: added code to
18921         allow you to configure the colour of the grid, and also lets you
18922         set the grid to use dotted lines instead of solid ones.
18923         
18924         * app/commands.c, app/commands.h, app/diagram.c, app/diagram.h,
18925         app/menus.c, app/Makefile.am: added menu entry for exporting SVG files.
18926         
18927         * app/render_svg.h, app/render_svg.c: an SVG (Scalable Vector Graphics)
18928         export filter.  It is not quite complete, but for most shapes it
18929         works as expected.  Fonts still need a bit of work.
18931 1999-08-11  Robert Brady  <rwb197@ecs.soton.ac.uk>
18933         * configure.in: Added "en_GB" to ALL_LINGUAS.
18935 1999-08-04  Fredrik Hallenberg  <hallon@lysator.liu.se>
18937         * menus.c
18938         Added Undo and Redo to GNOME menus.
18939         
18940         * objects/ER/attribute.c:
18941         * objects/ER/entity.c:
18942         * objects/ER/participation.c:
18943         * objects/ER/relationship.c:
18944         Added get/set_state functions.
18946         * objects/ER/participation.c:
18947         Added add/delete segment.
18949         * po/sv.po
18950         Updated Swedish translation.
18952 1999-07-25  Alexander Larsson  <alla@lysator.liu.se>
18954         * app/preferences.[hc]:
18955         Added undo_depth pref.
18956         
18957         * app/undo.[ch]:
18958         Never grow stack larger than pref.undo_depth.
18959         undo_depth == 0 means unlimited.
18960         Converted printfs to conditionally compiled DEBUG_PRINTFs.
18961         
18962 1999-07-25  Alexander Larsson  <alla@lysator.liu.se>
18964         * app/diagram.c:
18965         * app/group.c:
18966         * lib/object.h:
18967         * lib/render_object.c:
18968         * objects/ER/attribute.c:
18969         * objects/ER/entity.c:
18970         * objects/ER/participation.c:
18971         * objects/ER/relationship.c:
18972         * objects/FS/flow-ortho.c:
18973         * objects/FS/flow-poly.c:
18974         * objects/FS/flow.c:
18975         * objects/FS/function.c:
18976         * objects/UML/actor.c:
18977         * objects/UML/association.c:
18978         * objects/UML/class.c:
18979         * objects/UML/classicon.c:
18980         * objects/UML/component.c:
18981         * objects/UML/constraint.c:
18982         * objects/UML/dependency.c:
18983         * objects/UML/generalization.c:
18984         * objects/UML/implements.c:
18985         * objects/UML/large_package.c:
18986         * objects/UML/lifeline.c:
18987         * objects/UML/message.c:
18988         * objects/UML/note.c:
18989         * objects/UML/object.c:
18990         * objects/UML/realizes.c:
18991         * objects/UML/small_package.c:
18992         * objects/UML/state.c:
18993         * objects/UML/usecase.c:
18994         * objects/network/bus.c:
18995         * objects/standard/arc.c:
18996         * objects/standard/box.c:
18997         * objects/standard/ellipse.c:
18998         * objects/standard/image.c:
18999         * objects/standard/line.c:
19000         * objects/standard/polyline.c:
19001         * objects/standard/textobj.c:
19002         * objects/standard/zigzagline.c:
19003         Removed all traces of is_empty(). It doesn't work in an
19004         Undo/Redo world.
19006 1999-07-25  Alexander Larsson  <alla@lysator.liu.se>
19008         * app/diagram.c:
19009         * app/group.[ch]:
19010         * app/undo.[ch]:
19011         Undoable grouping and ungrouping.
19013         * app/layer_dialog.c:
19014         * lib/diagramdata.[ch]:
19015         Undoable layer ops.
19017         * app/modify_tool.c:
19018         Undoable unconnect on handle move.
19020         * lib/orth_conn.[ch]:
19021         Working undoable add/remove segment.
19022         Removed endpoint_handles from OrthConn, renamed
19023         midpoint_handles to handles and put the endpoint
19024         handles there.
19026         * objects/standard/zigzagline.c:
19027         * objects/ER/participation.c:
19028         * objects/UML/association.c:
19029         * objects/UML/dependency.c:
19030         * objects/UML/generalization.c:
19031         * objects/UML/realizes.c:
19032         Update for the changes in OrthConn
19033         
19034 1999-07-23  Karsten Weiss  <karsten@addx.au.s.shuttle.de>
19036         * configure.in: Added "de" to ALL_LINGUAS.
19038 1999-07-17  Alexander Larsson  <alla@lysator.liu.se>
19040         * dia.1:
19041         Fixed typo.
19043         * app/display.c:
19044         * po/da.po:
19045         * po/fr.po:
19046         * po/hu.po:
19047         * po/no.po:
19048         * po/pl.po:
19049         * po/sv.po:
19050         Don't have the <Display> etc part of the menu strings
19051         i18n:ed. Patch from Fabrice.Bellet@imag.fr.
19053         * app/diagram.c:
19054         Don't have the <Display> etc part of the menu strings
19055         i18n:ed. Patch from Fabrice.Bellet@imag.fr.
19056         Don't remove is_empty() objects, that don't work with undo.
19058         * lib/objchange.[ch]:
19059         New files.
19060         Definition of ObjectChange. This is essentially an Change
19061         exported to the object libs. It encapsulates a change made
19062         to an objects internals. It can be applied, reverted and freed.
19063         There are also utility functions for doing ObjectChanges that
19064         only get/set the whole state of an object to store the change.
19065         This cannot be used when the object change deletes or adds a
19066         object which has references from other objects, eg. Handles which
19067         might be connected.
19069         * lib/Makefile.am:
19070         Added objchange.c and objchange.h.
19072         * lib/dia_image.c:
19073         Return NULL when loading fails.
19075         * lib/diamenu.h:
19076         Menu callbacks return an ObjectChange.
19078         * lib/dummy_dep.h:
19079         Reference objchange.o
19081         * lib/focus.h:
19082         Key events return ObjectChange if they modify the object.
19084         
19085         * lib/object.h:
19086         Added object_add_handle_at() function.
19087         Apply properties returns an ObjectChange.
19088         Remove ObjectState and the get/set state functions, these
19089         don't always work. Use the new ObjectChange instead.
19090         
19091         * lib/object.c:
19092         Added object_add_handle_at() function implementation.
19093         
19094         * lib/orth_conn.[ch]:
19095         Use ObjectChange. Not finished yet.
19096         Removed get/set/free state functions
19098         * lib/poly_conn.[ch]:
19099         Use ObjectChange.
19100         Don't remove segments that are small.
19101         Removed get/set/free state functions
19103         * lib/text.[ch]:
19104         Use ObjectChange.
19105         Added functions to get/set all text attributes.
19107         * objects/standard/arc.c:
19108         * objects/standard/box.c:
19109         * objects/standard/ellipse.c:
19110         * objects/standard/image.c:
19111         * objects/standard/line.c:
19112         * objects/standard/polyline.c:
19113         * objects/standard/textobj.c:
19114         * objects/standard/zigzagline.c:
19115         Use ObjectChange.
19116         fixed bug in image_set_state.
19117         zigzagline.c not finished yet.
19119         * app/disp_callbacks.c:
19120         Use ObjectChange that are returned from menu callbacks and
19121         key_events for undo.
19123         * app/properties.c:
19124         Use ObjectChange that are returned from properties apply
19125         for undo.
19127         * app/undo.c:
19128         * app/undo.h:
19129         New undo type: ObjectChangeChange. This wraps a change to the
19130         internals of an object (and ObjectChange) in code that does
19131         app specific stuff (object_add_updates etc.)
19133 1999-07-11  Alexander Larsson  <alla@lysator.liu.se>
19135         * lib/orth_conn.[ch]:
19136         Added code for add/delete segment.
19138         * objects/standard/zigzagline.c:
19139         Use the new orth_conn code.
19140         
19142 1999-07-08  Fredrik Hallenberg  <hallon@lysator.liu.se>
19144         * objects/FS/Makefile.am
19145         Removed fs.h from sources.
19147         * Makefile.am
19148         * dia.1
19149         Added man page.
19151 1999-07-07  Alexander Larsson  <alla@lysator.liu.se>
19153         * app/disp_callbacks.c (ddisplay_canvas_events):
19154         Fix for bug. Every other arrow-key press got lost.
19155         patch from Mr. Data Esq. <data@r47h102.res.gatech.edu>
19157         * INSTALL:
19158         change automake.sh to autogen.sh
19159         
19160 1999-06-24  Alexander Larsson  <alla@lysator.liu.se>
19162         * app/diagram.c:
19163         Don't remove 'empty' objects.
19164         This violent destruction of objects won't work
19165         with the new undo framework.
19167         * app/disp_callbacks.c:
19168         Save undo info for object menu calls and key_events.
19170         * app/properties.c:
19171         Save undo info on properties apply.
19173         * lib/dia_image.[ch]:
19174         Add refcounting for images.
19176         * app/render_eps.c:
19177         * app/render_gdk.c:
19178         * lib/render.h:
19179         DiaImage * -> DiaImage
19181         * app/undo.[ch]:
19182         Add undo functions for object state changes.
19184         * lib/focus.h:
19185         * lib/text.c:
19186         change of semntics for focus->key_event.
19187         Now returns TRUE if the object recieving the event
19188         was changed.
19190         * lib/object.h:
19191         Comment changes.
19193         * lib/orth_conn.[ch]:
19194         Don't automatically create and delete segments when
19195         handles are moved. This is incompatible with undo.
19196         Added state get, set and free functions.
19198         * lib/orth_conn.[ch]:
19199         Added state get, set and free functions.
19201         * objects/UML/object.c:
19202         * objects/UML/uml.c:
19203         Fixed typo "UML - Objet" -> "UML - Object".
19204         Saved old for backwards compatibility.
19206         * objects/standard/arc.c:
19207         * objects/standard/box.c:
19208         * objects/standard/ellipse.c:
19209         * objects/standard/image.c:
19210         * objects/standard/line.c:
19211         * objects/standard/polyline.c:
19212         * objects/standard/textobj.c:
19213         * objects/standard/zigzagline.c:
19214         Added get/set state functions.
19215         Textobj has a redo crash-bug.
19216         Zigzagline needs object menus to add segments.
19217         
19219 1999-06-20  Alexander Larsson  <alla@lysator.liu.se>
19221         * app/render_eps.c (set_dashlength):
19222         Don't generate eps files with zero dash-length.
19224 1999-06-16  Alexander Larsson  <alla@lysator.liu.se>
19226         * app/commands.c:
19227         * app/create_object.c:
19228         * app/undo.[ch]:
19229         Finished undo for create and paste.
19230         
19231         * lib/object.h:
19232         Started properties undo.
19234 1999-06-14  Alexander Larsson  <alla@lysator.liu.se>
19236         * TODO:
19237         Added resizeable groups.
19239         * app/app_procs.c:
19240         Removed unused variable.
19242         * app/commands.c:
19243         * app/undo.[ch]:
19244         Undo/redo for cut/delete done.
19246         * app/create_object.c:
19247         * app/modify_tool.c:
19248         * lib/diagramdata.[ch]:
19249         * app/diagram.[ch]:
19250         renamed diagram_add_selected -> diagram_select
19251         renamed diagram_remove_selected -> diagram_unselect
19252         
19253         * app/properties.[ch]:
19254         Added properties_hide_if_shown() function.
19256 1999-06-13  Alexander Larsson  <alla@lysator.liu.se>
19258         * app/undo.[ch]:
19259         * app/Makefile.am:
19260         Undo functions.
19261         
19262         * app/commands.[ch]
19263         * app/modify_tool.[ch]
19264         * app/object_ops.[ch]
19265         * app/connectionpoint_ops.c
19266         * app/menus.c
19267         Use undo functions.
19268         WARNING: Not finished. Will break.
19269         Finished: move object, move handle.
19271         * app/diagram.[ch]
19272         Added diagram_selected_break_external() function.
19273         It removes all connections between selected objects
19274         and non-selected.
19275         Add undo stack to Diagram.
19276         
19277         * lib/diagramdata.[ch]
19278         Added layer_remove_objects() function
19279         
19280 1999-06-11  Fredrik Hallenberg  <hallon@lysator.liu.se>
19282         * objects/FS/Makefile.am
19283         * objects/sybase/Makefile.am
19284         Now uses GNOME_CFLAGS.
19286         * app/app_procs.c
19287         Now compiles with GNOME even if popt.h isn't available.
19289 1999-06-10  Alexander Larsson  <alla@lysator.liu.se>
19291         * configure.in
19292         * objects/Makefile.am
19293         * objects/sybase/*
19294         First version of sybase objects from
19295         Brian Bruns <camber@umcc.ais.org>
19297 1999-06-10  Fredrik Hallenberg  <hallon@lysator.liu.se>
19299         * configure.in
19300         Added fr to ALL_LINGUAS
19302 1999-06-09  Fredrik Hallenberg  <hallon@lysator.liu.se>
19304         * configure.in
19305         * app/app_procs.c
19306         Popt-code is activated if popt is available.
19308 1999-06-08  Alexander Larsson  <alla@lysator.liu.se>
19310         This is a patch from David Thompson <dcthomp@mail.utexas.edu>
19311         
19312         * lib/orth_conn.[ch]:
19313         Added orthconn_get_middle_handle()
19315         * lib/text.[ch]:
19316         Added text_set_cursor_at_end()
19317         
19318         * objects/FS/*
19319         Added first version of functions structure diagrams.
19320         
19321 1999-05-24  Alexander Larsson  <alla@lysator.liu.se>
19323         * app/modify_tool.c:
19324         Include math.h to remove warning.
19326         * app/commands.c (dialogs_properties_callback):
19327         Bring up correct properties dialog when selected
19328         from menu.
19329         From Dan Cohn <dan@internap.com>
19331 1999-05-20  Alexander Larsson  <alla@lysator.liu.se>
19333         Patch from Lars R. Clausen 
19334         
19335         * app/modify_tool.c:
19336         Changed abs to fabs.
19338 1999-05-19  Alexander Larsson  <alla@lysator.liu.se>
19340         * INSTALL: 
19341         * configure.in:
19342         Require Gtk+ 1.2.0
19344 1999-05-18  Alexander Larsson  <alla@lysator.liu.se>
19346         Patches from Dan Cohn <dan@internap.com>
19347         
19348         * app/commands.[ch]: 
19349         * app/display.[ch]: 
19350         * app/menus.c:
19351         * app/preferences.[ch]:
19352         Implements ability to turn on/off connection points in
19353         current drawing and in global prefs.
19355 1999-05-18  Alexander Larsson  <alla@lysator.liu.se>
19357         * lib/widgets.c (dia_line_style_selector_init): 
19358         Fixed warnings.
19359         
19360         * lib/diagramdata.c (layer_update_extents):
19361         Fixed uninitialized variable error.
19363 1999-05-17  Alexander Larsson  <alla@lysator.liu.se>
19365         * lib/dia_image.c:
19366         Made some changes to the gdk_imlib visual+colormap setup.
19368 1999-05-17  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
19370         * objects/UML/usecase.c: 
19371        * objects/UML/lifeline.c
19372         Fine tunning.
19374         * objects/UML/object.c: 
19375         * objects/UML/message.c: 
19376         Changed font from Courier to Helvetica.
19378         * lib/widgets.c: 
19379         * lib/widgets.h:
19380         Added dash lenth to the LineStyle widget.
19381         
19382         * objects/standard/ellipse.c :
19383         * objects/standard/zigzagline.c: 
19384         * objects/standard/line.c: 
19385         Added dash lenght property.
19387 1999-05-16  Alexander Larsson  <alla@lysator.liu.se>
19389         * app/render_eps.c:
19390         First shot at latin1 encoded eps files.
19391         Works, but the eps files get a bit large.
19392         
19393 1999-05-16  Alexander Larsson  <alla@lysator.liu.se>
19395         * objects/UML/class.[ch]: 
19396         * objects/UML/uml.[ch]:
19397         Reverted the line wrap changes.
19398         Some day this might return, but it has to be selectable and
19399         default to off for loaded objects, otherwise it breaks file
19400         format compatibility.
19401         There was also some complains about how it looked, so a making it
19402         selectable is good for this too.
19404 1999-05-15  Alexander Larsson  <alla@lysator.liu.se>
19406         * objects/UML/class.[ch]:
19407         Some indentation cleanup.
19408         Added wrap_lines variable to class.
19409         I'll fix the line break stuff tomorrow.
19411 1999-05-13  Alexander Larsson  <alla@lysator.liu.se>
19413         * lib/dummy_dep.h:
19414         Added ref to poly_conn.o.
19416         * objects/standard/polyline.c (polyline_draw): 
19417         * objects/standard/zigzagline.c (zigzagline_draw): 
19418         * objects/standard/arc.c (arc_draw): 
19419         * objects/standard/line.c (line_draw):
19420         Draw lines before arrows. This makes hollow arrows not
19421         show the line.
19423 1999-05-13  Alexander Larsson  <alla@lysator.liu.se>
19425         Changes from Kim Peasley <kpeasley@ior.com> 
19426                 
19427         * objects/UML/class.c:
19428         Break lines with long operations so classes won't be
19429         so wide.
19431         * objects/UML/uml.[ch]:
19432         Helperfunctions for the above.
19433         
19434         * objects/UML/objects.c:
19435         Fix bug that duplicated the text in the attributes
19436         textwidget each time the object was selected.
19437         
19438 1999-05-12  Alexander Larsson  <alla@lysator.liu.se>
19440         Changes from Lars R. Clausen <lrclause@cs.uiuc.edu>
19441         
19442         * app/modify_tool.c:
19443         * app/modify_tool.h:
19444         Control-drag is restricted to vertical/horizontal movement
19445         
19446         * lib/object.h:
19447         ModifierKeys argument added to object_move_handle
19449         * app/connectionpoint_ops.c:
19450         * app/create_object.c:
19451         * app/object_ops.c:
19452         * objects/ER/attribute.c:
19453         * objects/ER/entity.c:
19454         * objects/ER/participation.c:
19455         * objects/ER/relationship.c:
19456         * objects/UML/actor.c:
19457         * objects/UML/association.c:
19458         * objects/UML/class.c:
19459         * objects/UML/classicon.c:
19460         * objects/UML/component.c:
19461         * objects/UML/constraint.c:
19462         * objects/UML/dependency.c:
19463         * objects/UML/generalization.c:
19464         * objects/UML/implements.c:
19465         * objects/UML/large_package.c:
19466         * objects/UML/lifeline.c:
19467         * objects/UML/message.c:
19468         * objects/UML/note.c:
19469         * objects/UML/object.c:
19470         * objects/UML/realizes.c:
19471         * objects/UML/small_package.c:
19472         * objects/UML/state.c:
19473         * objects/UML/usecase.c:
19474         * objects/network/bus.c:
19475         * objects/standard/arc.c:
19476         * objects/standard/box.c:
19477         * objects/standard/ellipse.c:
19478         * objects/standard/image.c:
19479         * objects/standard/line.c:
19480         * objects/standard/polyline.c:
19481         * objects/standard/textobj.c:
19482         * objects/standard/zigzagline.c:
19483         Changed calls to move_handle to pass the new argument.
19484         
19485         * lib/widgets.c:
19486         * lib/widgets.h:
19487         Default line width, color etc #define'd
19488         
19489         * po/da.po:
19490         Updates of danish menus
19492 1999-05-08  Fredrik Hallenberg  <hallon@lysator.liu.se>
19494         * dia.xpm
19495         * dia_gnome_icon.png
19496         * dia_gnome_menu_icon.png
19497         * dia_logo.png
19498         Graphics by Toussaint Frédéric <ftoussin@club-internet.fr>.
19500         * app/commands.c
19501         About dialog shows dia_logo.png. Removed the GNOME about dialog.
19503         * Makefile.am
19504         Distribute the icons and install logo in pkgdatadir.
19505         
19506         * app/Makefile.am
19507         Added DATADIR-define.
19508         
19509 1999-04-28  Alexander Larsson  <alla@lysator.liu.se>
19510         Patches from Enrico Scholz <enrico.scholz@wirtschaft.tu-chemnitz.de>
19512         * dia.spec:
19513         Updated version number, made setup quiet, can build from cvs,
19514         --enable-gnome, now using automake 1.4 DESTDIR feature, install-strip
19516         * lib/Makefile.am
19517         * objects/ER/Makefile.am
19518         * objects/UML/Makefile.am
19519         * objects/network/Makefile.am
19520         * objects/standard/Makefile.am
19521         now builds better with gnome
19523         * objects/UML/class_dialog.c
19524         Fixed typo -> po files must be updated too!!
19525         
19526 1999-04-28  Alexander Larsson  <alla@lysator.liu.se>
19528         * lib/dummy_dep.h:
19529         Added reference so that widgets.o gets linked to the app.
19531 1999-04-23  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
19533         * objects/UML/classicon.c: 
19534         Added object mode.
19536         * objects/UML/actor.c: 
19537         Changed position of 'snap-to-grid' so connection points are
19538         in the grid.
19540 1999-04-22  Alexander Larsson  <alla@lysator.liu.se>
19542         * objects/UML/classicon.c:
19543         Changed position of 'snap-to-grid'.
19544         By Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
19545         
19546 1999-04-22  Alexander Larsson  <alla@lysator.liu.se>
19548         * objects/network/antenna.c
19549         * objects/network/flash.c
19550         * objects/network/hub.c
19551         * objects/network/modem.c
19552         * objects/network/modularswitch.c
19553         * objects/network/rj45plug.c
19554         * objects/network/scead-plug.c
19555         * objects/network/network.c
19556         * objects/network/Makefile.am
19557         * objects/network/pixmaps/antenna.xpm
19558         * objects/network/pixmaps/flash.xpm
19559         * objects/network/pixmaps/hub.xpm
19560         * objects/network/pixmaps/modem.xpm
19561         * objects/network/pixmaps/modularswitch.xpm
19562         * objects/network/pixmaps/rj45plug.xpm
19563         * objects/network/pixmaps/sceadplug.xpm
19564         * objects/network/pixmaps/Makefile.am
19565         Lots of new network objects from
19566         Roland Steinbach <roland@support-system.com>.
19568 1999-04-15  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
19570         * objects/UML/classicon.c: 
19571         Fixed connection positions, saved type as int (it has 3 states),
19572         and other small fixes.
19573         
19574 1999-04-14  Alexander Larsson  <alla@lysator.liu.se>
19576         * app/preferences.c:
19577         * app/load_save.c:
19578         Added preference compress_save. It lets dia save uncompressed
19579         xml files.
19581         * objects/UML/class.c:
19582         Fixed bug with size calculation on methods that had class scope.
19583         
19584 1999-04-13  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
19586         * objects/UML/usecase.c: 
19587         Added collaboration mode
19588         Fixed connection points with text > ellipse bug and other 
19589         small things
19591         * objects/UML/state.c:
19592         Fixed bug of bad position of text after being either end
19593         or begin, moved and returned to text
19595 1999-04-12  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
19597         * app/preferences.c: Add prototype declaration for prefs_apply.
19599 1999-04-11  Alexander Larsson  <alla@lysator.liu.se>
19601         * app/preferences.c:
19602         Added 'ok' button.
19603         Apply don't hide window.
19605         * app/properties.c:
19606         Add 'ok' button.
19608         * objects/UML/object.c:
19609         * objdcts/UML/state.c:
19610         Some data was not copied on copy.
19612         This patch is from
19613         Ben Hochstedler <benh@eeyore.moneng.mei.com>
19615 1999-04-09  Alexander Larsson  <alla@lysator.liu.se>
19617         * app/Makefile.am:
19618         Changed link order between X and libxml.
19619         Some people had problems with an old libz in their
19620         x11 directory.  
19622 1999-04-09  Kjartan Maraas  <kmaraas@online.no>
19624         * po/no.po: updated translation.
19625         
19626 1999-04-08  Lars R. Clausen <lrclause@cs.uiuc.edu>
19628         * lib/message.c (message_error):
19629         Fixed small error.
19631         * app/commands.[ch]:
19632         * app/diagram.[ch]:
19633         Added begining of xfig importing
19635 1999-04-08  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
19637         * objects/UML/pixmaps/state.xpm: 
19638         * objects/UML/state.c: 
19639         New UML object state machine.
19641         * objects/UML/uml.c:
19642         * objects/UML/Makefile.am:
19643         * objects/UML/pixmaps/Makefile.am:
19644         Added the state object.
19645         
19646 1999-04-08  Alejandro Aguilar Sierra  <ale@bucefalo>
19648         * objects/UML/usecase.c: 
19649         Added dialog to allow move text outside the ellipse.
19651 1999-04-08  Alexander Larsson  <alla@lysator.liu.se>
19653         * Released Dia 0.41
19654         Tag called DIA_0_41
19656         * NEWS:
19657         Updates for 0.41.
19658         
19659 1999-04-08  Alexander Larsson  <alla@lysator.liu.se>
19661         * configure.in:
19662         Updated version number to 0.41
19664         * po/*.po:
19665         Update po-files
19667 1999-04-04  Fredrik Hallenberg  <hallon@lysator.liu.se>
19669         * app/app_procs.c
19670         Changed errormessage for --export-to-ps. Removed call to 
19671         g_log_set_always_fatal().
19673         * app/diagram.c
19674         * app/disp_callbacks.c
19675         * app/load_save.c
19676         (i18n) Removed gettext from some debugmessages.
19678         * app/menus.c
19679         Small fix in GNOME-menus. Added warning that will help track
19680         problems with translations.
19682         * po/sv.po
19683         (i18n) Updated swedish translation.
19685 1999-04-02  Alexander Larsson  <alla@lysator.liu.se>
19687         * po/da.po:
19688         New updates
19690 1999-04-01  Alexander Larsson  <alla@lysator.liu.se>
19692         * po/da.po:
19693         * po/no.po:
19694         Some fixes.
19695         
19696 1999-04-01  Alexander Larsson  <alla@lysator.liu.se>
19698         * po/da.po:
19699         (i18n) Updated the danish translation.
19700         From Lars R. Clausen.
19702 1999-04-01  Fredrik Hallenberg  <hallon@lysator.liu.se>
19704         * app/menus.c
19705         (i18n) The popup menu is translated now.
19707         * po/sv.po
19708         (i18n) Updated swedish translation.
19710 1999-03-29  Alexander Larsson  <alla@lysator.liu.se>
19712         * Released Dia 0.40
19713         Tag called DIA_0_40
19715         * NEWS:
19716         Updated for new release
19717         
19718 1999-03-29  Alexander Larsson  <alla@lysator.liu.se>
19720         * objects/network/bus.c:
19721         Added initialization of properties dialog to NULL.
19723         * app/commands.c (edit_cut_callback):
19724         Update menu sensitivity when cut object.
19726         * app/modify_tool.c (click_select_object):
19727         * app/modify_tool.c (modify_button_release): 
19728         Call diagram_update_menu_sensitivity() when
19729         selecting objects to update stuff that depends
19730         on selected/not selected.
19732 1999-03-29  Alexander Larsson  <alla@lysator.liu.se>
19734         * Makefile.am:
19735         Change order of subdir so that libintl.a builds.
19736         Now passed make distcheck.
19738 1999-03-28  Alexander Larsson  <alla@lysator.liu.se>
19740         * lib/font.c (init_x11_font):
19741         Stupid bug fixed.
19743 1999-03-28  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
19745         * objects/UML/pixmaps/classicon.xpm: 
19746         * objects/UML/classicon.c:
19747         * objects/UML/uml.c:
19748         Added the class stereotype icon objects.
19750         * app/commands.c:
19751         Changed default ps extension from .ps to .eps.
19752         
19753 1999-03-28  Alexander Larsson  <alla@lysator.liu.se>
19755         * lib/Makefile.am:
19756         Added diamenu.h and intl.h
19758         * lib/font.c:
19759         Stupid typo fix.
19760         
19761         * objects/UML/pixmaps/Makefile.am:
19762         Added message.xpm
19764         * objects/standard/pixmaps/Makefile.am:
19765         Added image.xpm
19767 1999-03-28  Alexander Larsson  <alla@lysator.liu.se>
19769         * lib/font.c:
19770         Use a scalable font before fixed when real font not found.
19772         * app/commands.c:
19773         Removed warning.
19775         * objects/standard/image.c:
19776         Better handling of loading/saving of images.
19778         * INSTALL:
19779         Added some text about cvs, fonts and rewrote some parts.
19781         * TODO:
19782         Updated with new stuff.
19783         
19784         * configure.in:
19785         Bump up version number to 0.40.
19786         
19787 1999-03-28  Alexander Larsson  <alla@lysator.liu.se>
19789         * app/display.c:
19790         Moved diagram_add_ddisplay() call into new_display().
19791         Fixed new_display to not use uninitialized variables
19792         causing loaded files to show up as black (or garbage).
19793         
19794         * app/commands.c:
19795         * app/app_procs.c:
19796         Removed unneeded calls to diagram_add_ddisplay().
19797         
19798 1999-03-28  Alexander Larsson  <alla@lysator.liu.se>
19800         * objects/UML/lifeline.c:
19801         Fixed bug in copy.
19802         Patch from Andreas Jaeger <aj@arthur.rhein-neckar.de>.
19804         * objects/UML/message.c:
19805         Fixed bug loading messages with null-text.
19806         Patch from Andreas Jaeger <aj@arthur.rhein-neckar.de>.
19808 1999-03-27  Fredrik Hallenberg  <hallon@lysator.liu.se>
19810         * po/sv.po
19811         Updated swedish translation.
19813         * app/menus.c
19814         (GNOME) Removed help-browser from help menu. Fixed typo.
19816         * app/interface.c
19817         (GNOME) Accelerators in diagrams should work now. 
19819 1999-03-25  Fredrik Hallenberg  <hallon@lysator.liu.se>
19821         * app/app_procs.c
19822         * app/commands.c
19823         * app/defaults.c
19824         * app/disp_callbacks.c
19825         * app/display.c
19826         * app/interface.c
19827         * app/menus.c
19828         * app/preferences.c
19829         * app/render_eps.c
19830         * lib/diagramdata.c
19831         * lib/font.c
19832         * lib/message.c
19833         * lib/widgets.c
19834         * objects/ER/*.c
19835         * objects/UML/*.c
19836         * objects/network/*.c
19837         * objects/standard/*.c
19838         * po/update_pofiles_in.sh
19839         * po/POFILES.in
19840         More i18n. All strings (expect rare debug messages) can be
19841         translated now. Moved intl.h from app to lib. Updated
19842         update_pofiles_in.sh to check all .c-files.
19844 1999-03-23  Alexander Larsson  <alla@lysator.liu.se>
19846         * app/disp_callbacks.c (ddisplay_canvas_events):
19847         Don't drop keys while num-lock, scroll-lock etc is on.
19849 1999-03-22  Alexander Larsson  <alla@lysator.liu.se>
19851         * app/render_eps.c (draw_image):
19852         Fixed exporting of images.
19853         Still not perfect, but not outright buggy.
19854         
19855 1999-03-22  Alexander Larsson  <alla@lysator.liu.se>
19857         * configure.in:
19858         * po/hu.po:
19859         Added hungarian translation. By Shooby Ban <bansz@szif.hu>.
19861         * app/Makefile.am:
19862         Added $* to the dia call in run_dia.sh
19864 1999-03-22  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
19865         
19866         * lib/color.[ch]:
19867         Added color_equals() call.
19869         * objects/standard/arc.c:
19870         * objects/standard/line.c:
19871         Don't save unneccesary data.
19872         
19873         * objects/standard/box.c:
19874         * objects/standard/ellipse.c:
19875         * objects/standard/image.c:
19876         * objects/standard/polyline.c:
19877         * objects/standard/zigzagline.c:
19878         Share properties dialog.
19879         Don't save unneccesary data.
19880         
19881 1999-03-22  Seth Alves  <alves@hungry.com>
19883         * app/menus.c:
19884         * app/diagram.c:
19885         * app/display.c:
19886         small changes so that gnome menus aren't broken
19887         
19888 1999-03-22  Alexander Larsson  <alla@lysator.liu.se>
19890         * po/da.po:
19891         Added danish translation from lrclause@cs.uiuc.edu.
19893         * po/POFILES.in:
19894         Updated file.
19896         * po/update_pofiles_in.sh:
19897         Added script that updates POFILES.in.
19898         This should probably be run automatically from somewhere.
19900 1999-03-19  Alexander Larsson  <alla@lysator.liu.se>
19902         * app/diagram.[ch]:
19903         Added function diagram_update_menu_sensitivity() which
19904         sets the sensitivity of some menu items. This function
19905         is called at each diagram state change (from diagram_modified()).
19906         This is needed  because otherwise the keyboard accelerators
19907         don't work correctly.
19909         * app/display.[ch]:
19910         Changed display_set_menu_sensitivity() to display_update_menu_state().
19911         Moved lots of code to diagram_update_menu_sensitivity() in
19912         diagram.c. Optimized to only look up menu-items from path:s once.
19913         
19914         * app/disp_callbacks.c:
19915         * app/interface.c:
19916         When we get a GDK_FOCUS_CHANGE, update menu sensitivity.
19917         Need to set GDK_FOCUS_CHANGE_MASK.
19918         
19919         * app/create_object.c:
19920         Call diagram_modified when an object has been created and
19921         selected so that the menu sensitivity is updated. 
19923         * app/menus.[ch]:
19924         removed menus_set_sensitive() and menus_set_state(). Exported
19925         renamed function menus_get_item_from_path().
19927 1999-03-15  Alexander Larsson  <alla@lysator.liu.se>
19929         * app/disp_callbacks.c:
19930         Show (empty) object menus on object that has none.
19931         Show title on object menus.
19933         * app/display.c:
19934         Set zoom factor correctly when opening new displays.
19935         Better setting of scrollbars.
19937         * app/grid.c:
19938         * app/menus.h:
19939         Some reformating cleanup.
19941         * lib/diamenu.h:
19942         Added title to object menus.
19944         * objects/*/*.c:
19945         Added object menu method (NULL-valued) to all objects.
19947         * objects/standard/polyline.c:
19948         Added title to object menu.
19950 1999-03-14  Alexander Larsson  <alla@lysator.liu.se>
19952         * app/preferences.[ch]:
19953         New files. Implements the preferences dialog and
19954         loading/saving of ~/.diarc.
19956         * app/Makefile.am:
19957         Added preferences.[ch].
19959         * app/app_procs.c:
19960         Load preferences on startup.
19962         * app/commands.[ch]:
19963         Added file_preferences_callback to show the preferences dialog.
19965         * app/create_object.c:
19966         Update extents when creating object.
19967         Use the reset_tools_after_create preferences setting.
19969         * app/display.c:
19970         Use preferences when creating new display.
19972         * app/menus.c:
19973         Add preferences to menu.
19975         * app/defaults.c:
19976         * app/layer_dialog.c:
19977         * app/properties.c:
19978         Don't allow shrinking of dialog.
19979         Add i18n of some strings.
19981 1999-03-11  Kjartan Maraas  <kmaraas@fib.hl.no>
19982         * po/no.po:
19983         Norwegian translation added.
19984         
19985 1999-03-11  Alexander Larsson  <alla@lysator.liu.se>
19987         * objects/standard/line.c: 
19988         * objects/standard/arc.c: 
19989         * objects/standard/polyline.c: 
19990         * objects/standard/zigzagline.c:
19991         Loading of arrow data fixed.
19993 1999-03-09  Alexander Larsson  <alla@lysator.liu.se>
19995         * app/commands.c:
19996         Update extents when saving and exporting to postscript.
19997         Fixes a bug with postscript bounding-box being wrong.
19999         * app/defaults.c:
20000         Changed border width from 5 to 2.
20002         * app/group.c:
20003         Move grouped objects by the move-point of the first object.
20004         Fixes bug that made all objects in the group be off-grid
20005         when moving the group, even though all objects was on-grid.
20007         * app/layer_dialog.c:
20008         Update extents when changing layer.
20010 1999-03-08  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
20012        * objects/UML/uml.c: 
20013        * objects/UML/component.c: 
20014        * objects/UML/pixmaps/component.xpm: 
20015        Added the UML component object
20016         
20017 1999-03-04  Seth Alves  <alves@hungry.com>
20019         * objects/UML/generalization.c (generalization_create): avoid
20020         math on uninitialized genlz->text_width (NaN causes sigfpe)
20021         
20022         * objects/UML/realizes.c (realizes_create): same
20024         * objects/UML/dependency.c (dependency_create): same
20026 1999-03-01  Seth Alves  <alves@hungry.com>
20028         * app/display.c (ddisplay_active): don't fly a warning panel
20029         if ddisplay_active is called when no views are open.
20031         * app/commands.c (set_default_file_selection_directory): set
20032         file selector's default directory if there is already
20033         a document open.
20035 1999-02-28  Alexander Larsson  <alla@lysator.liu.se>
20037         * INSTALL:
20038         New info about imlib requirements.
20040         * Configure.in:
20041         Added lib/pixmaps/Makefile to created makefiles.
20043         * app/app_procs.c:
20044         * app/commands.c:
20045         Change from obsoleted to newer gtk calls.
20046         
20047         * load_save.c:
20048         Pass filename of the diagram when loading and saving.
20049         This creates better oportunities to handle filename saving.
20051         * lib/object.h:
20052         Pass filenames to load and save methods.
20053         
20054         * lib/dia_image.[ch]:
20055         Added dia_image_get_broken() call that returns a image which
20056         is used for 'broken' images.
20057         
20058         * lib/pixmaps/.cvsignore:
20059         * lib/pixmaps/Makefile.am:
20060         * lib/pixmaps/broken.xpm:
20061         New files for the broken image bitmap.
20063         * lib/widgets.c:
20064         Fixed bug with double destroyed filedialog.
20066         * objects/*/*.c:
20067         Updated load and save prototypes to use the new filename argument.
20069         * objects/image.c:
20070         Render broken image instead of line when got no image.
20071         Use the new filename in load and save to save (if possible)
20072         relative pathnames and to better try to find loaded images.
20074 1999-02-28  Alexander Larsson  <alla@lysator.liu.se>
20076         * TODO:
20077         Some updates to the todo file.
20078         
20079         * app/menus.c:
20080         * app/display.c:
20081         Place over/place over => sent to back/bring to front.
20082         Added some keyboard shortcuts to menus.
20083         
20084 1999-02-28  Alexander Larsson  <alla@lysator.liu.se>
20086         * lib/dia_xml.c:
20087         Changed string saving/loading to a new method. This should
20088         be much better att handling &,<,> and whitespaces.
20089         Loading strings of the old kind is still supported for backwards
20090         compatibility.
20092         * samples/ER-demo.dia:
20093         * samples/UML-demo.dia:
20094         Updated to use the new strings.
20095         
20096         * app/load_save.c:
20097         statusbar modified update fix.
20099 1999-02-27  Seth Alves  <alves@hungry.com>
20101         * app/app_procs.c (app_init): added a --export-to-ps option
20102         which will cause dia to load a dia file and save it as ps
20103         and then exit.  this is a little bogus, because it still
20104         pops up a window.  this option only shows up if --enable-gnome
20105         is used
20107         * app/display.c (display_set_menu_sensitivity): no Edit/Delete
20108         menu when built with --enable-gnome
20110         * app/interface.c (create_display_shell): build status bar
20111         even if --enable-gnome is used
20113         * app/menus.c: menu fixes for --enable-gnome
20115         * app/commands.c (file_open_dialog_ok_callback): fixed up
20116         menus when --enable-gnome is used
20117         (file_export_to_eps_callback): set a default file name
20118         when dialog is created
20120 1999-02-27  Alexander Larsson  <alex@c125.ryd.student.liu.se>
20122         * objects/UML/association.c (association_create):
20123         Fixed usage of not initialized variable.
20124         Pointed out by Seth Alves <alves@hungry.com>.
20126 1999-02-24  Alexander Larsson  <alex@c125.ryd.student.liu.se>
20128         * configure.in:
20129         Fixed detection of gnome-xml.
20130         From Valtteri Vuorikoski <vuori@k.notcom.org>.
20131         
20132         * app/app_procs.c:
20133         Fixed error detection on dlsym calls. 
20134         From Valtteri Vuorikoski <vuori@k.notcom.org>.
20136 1999-02-23  Alexander Larsson  <alla@lysator.liu.se>
20138         * objects/UML/message.c (fill_in_dialog):
20139         Fixed warnings.
20141 1999-02-22  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
20143         * objects/standard/zigzagline.c:
20144         * objects/standard/polyline.c:
20145         * objects/standard/line.c:
20146         * objects/standard/arc.c:
20147         * lib/widgets.h:
20148         * lib/arrows.h:
20149         * lib/widgets.c:
20150         Support for sizeable arrows. 
20152         * objects/standard/box.c:
20153         * objects/standard/ellipse.c:
20154         * objects/standard/image.c:
20155         Changed creation handle to lower-right.
20156         Transparent box/ellipse.
20157         
20158         * objects/standard/image.c:
20159         Better layout of properties boxes.
20161 1999-02-20  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
20163         * objects/UML/message.c (fill_in_dialog): 
20164         Fixed dialog fill in. Common dialog for all messages.
20166         * objects/UML/object.c: 
20167         Added multiple instance. Dialog related bugs fixed.
20168         Common dialog for all instances. Completed copy and destroy.
20170         * objects/UML/lifeline.c (lifeline_load): 
20171         Conn initialization bug fixed and few bad loading prevention flags.
20172         Common dialog for all lifeline objects.
20173         
20174 1999-02-15  Alexander Larsson  <alla@lysator.liu.se>
20176         * lib/dia_image.[ch]:
20177         More work on the DiaImage abstraction.
20178         
20179         * app/app_procs.c:
20180         * app/render_eps.c:
20181         * app/render_gdk.c:
20182         * objects/standard/image.c:
20183         Use the new DiaImage calls.
20185 1999-02-15  Alexander Larsson  <alla@lysator.liu.se>
20187         * app/menus.c:
20188         * app/display.c:
20189         Reversed the meaning of align horizontal/vertical.
20191 1999-02-15  Alexander Larsson  <alla@lysator.liu.se>
20193         * app/load_save.c (diagram_load):
20194         Statusbar update fix.
20196 1999-02-15  Alexander Larsson  <alla@lysator.liu.se>
20198         * app/interface.c (create_display_shell):
20199         Fixed status bar size.
20200         
20201 1999-02-15  Alexander Larsson  <alla@lysator.liu.se>
20203         * lib/dia_image.[ch]:
20204         Added extern declaration for dia_image_release.
20205         Removed dia_image_draw, as it's not neseccary.
20207 1999-02-14  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
20208         
20209         * app/object_ops.c: 
20210         * app/menus.c: 
20211         Added equal distance alignment both vertical and horizontal.
20212         
20213         * objects/UML/object.c: 
20214         Added a couple of attributes to load/read that were missing.
20216         * objects/UML/lifeline.c: 
20217         Better handling of handles. Fixed another bug I forgot to add
20218         to my last patch.
20219         
20220 1999-02-13  Alexander Larsson  <alla@lysator.liu.se>
20222         Patch from Lars Clausen <lrclause@shasta.cs.uiuc.edu>
20223         
20224         * lib/dia_image.[ch]:
20225         * lib/Makefile.am:
20226         New files. DiaImage wraps the GdkImlibImage.
20228         * lib/render.h:
20229         * app/render_eps.c:
20230         * app/render_gdk.c:
20231         * lib/render_store.[ch]:
20232         * objects/standard/image.c:
20233         Use the new DiaImagetype.
20235         * lib/widgets.c:
20236         Removed unused variable to eliminate  warning.
20238 1999-02-11  Alexander Larsson  <alla@lysator.liu.se>
20240         * objects/standard/box.c:
20241         Added rounded corners on the box object.
20243         * lib/widgets.[ch]:
20244         Updated the DiaFileSelector widget.
20245         
20246 1999-02-09  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
20248         * objects/UML/object.c (objet_draw): 
20249         Completed underlining of all object name lines. 
20251         * objects/UML/message.c (fill_in_dialog): 
20252         Fixed a bug that filled incorrectly the message's dialog.
20254         * objects/UML/lifeline.c (lifeline_load): 
20255         Some cleanning and fixed a couple of bugs that caused
20256         crashes after reading diagrams with lifelines.
20258         * lib/text.c: 
20259         Added flags to prevent crash with void strings
20261 1999-02-07  Matthias Köster <Matthias.Koester@Informatik.Uni-Oldenburg.DE>
20262         * app/display.[ch]:
20263         Added statusbar to the display widget. Currently shows the zoom
20264         factor and modified flag of the viewed diagram. The statusbar is
20265         updated upon calls to ddisplay_zoom and ddisplay_update_statusbar.
20266         This caused the following additions:
20267         
20268         * app/diagram.[ch]:
20269         Added function diagram_set_modified. Calls
20270         ddisplay_update_statusbar for all displays showing the modified diagram.
20271         Changed diagram_modified to call diagram_set_modified.
20272         
20273         * app/interface.c:
20274         Added the creation of the statusbar.
20275         
20276         * app/load_save.c:
20277         diagram_save now calls diagram_set_modified instead of setting
20278         dia->modified. Needed to force call to display_update_statusbar
20279         
20280         * app/commands.c:
20281         Changed the way view_show_all works. Now calls ddisplay_zoom
20282         instead of directly setting the zoom_factor, so the zoom factor is
20283         correctly shown in the statusbar.
20285         * app/magnify.c:
20286         Fixed rubberband zoom to use ddisplay_zoom().
20287         
20288 1999-02-07  Fredrik Hallenberg  <hallon@lysator.liu.se>
20290         * app/app_procs.c
20291         Rudimentary GNOME session management.
20292         
20293         * app/disp_callbacks.c
20294         * app/interface.c
20295         * app/menus.c
20296         * app/menus.h
20297         GNOME menus. Problems: 
20298         Callbacks doesn't get user_data.
20299         Weird warnings when creating popup menus.
20300         menus_set_sensitive(), menus_set_state() doesn't work.
20302 1999-02-05  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
20304         * configure.in:
20305         Add AM_PATH_GDK_IMLIB() call.
20307         * app/Makefile.am:
20308         Add gdk_imlib to linking flags.
20310         * app/app_procs.c:
20311         Init gdk_imlib.
20312         Print library-loading error messages on stdout too.
20314         * app/interface.c:
20315         Add standard image to toolbox.
20316         
20317         * app/render_eps.c: 
20318         Set a more reasonable dot length.  Fixed
20319         missing initialization of dot length.
20320         Added draw_image methods.
20322         * app/render_gdk.c (new_gdk_renderer): 
20323         Dot a bit wider.  Looks good in normal mode now.
20325         * objects/standard/image.c:
20326         * objects/standard/pixmaps/image.xpm:
20327         New files. Standard object for images.
20328         
20329         * app/render_eps.c (set_linestyle):
20330         * app/render_gdk.c (set_linestyle):
20331         * lib/widgets.c (dia_line_style_selector_init): 
20332         * lib/render.h: 
20333         New line style DOTTED.
20335         * lib/render.h:
20336         * lib/render_store.c:
20337         Change DrawImage call to use gdk_imlib.
20339         * lib/widgets.[ch]:
20340         Added widgets for selecting files.
20341         Added dotted to the linestyle selector.
20343 1999-02-06  Alexander Larsson  <alla@lysator.liu.se>
20345         * objects/network/printer.c:
20346         * objects/network/network.c:
20347         * objects/network/pixmaps/printer.xpm:
20348         * objects/network/.cvsignore:
20349         * objects/network/Makefile.am:
20350         * objects/network/pixmaps/Makefile.am:
20351         New printer object in network.
20352         From Martin Hawlisch <hawlisch@roxi.rz.fh-mannheim.de>
20354         * TODO:
20355         Added known XML bug.
20356         
20357 1999-02-06  Alexander Larsson  <alla@lysator.liu.se>
20359         * app/load_save.c:
20360         * lib/dia_xml.c:
20361         Reverted back from #include <gnome-xml/tree.h> to
20362         #include <tree.h> as this is fixed by the xml-config program.
20363         The former way broke for some people.
20364         Reported by blizzard@redhat.com.
20366         * objects/UML/lifeline.c:
20367         * objects/UML/message.c:
20368         * objects/UML/object.c:
20369         Removed some warnings.
20370         
20371 1999-02-04  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
20373         * objects/UML/lifeline.c: 
20374         Fixed connection points over the life line when the focus of
20375         control is not drawn.
20377         * objects/UML/message.c: 
20378         Now a recursive message can be freely resized using the handles.
20380 1999-02-02  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
20382         * objects/UML/lifeline.c:
20383         Added connection points.
20384         Added properties dialog with the option to draw/hide focus of control
20385         box and destruction mark.
20387         * objects/UML/object.c: 
20388         Added properties dialog and stereotype, explicit state and attributes. 
20389         It's also possible to mark the object as active.
20391         * objects/UML/pixmaps/object.xpm: 
20392         Cosmetic change.
20394         * objects/UML/message.c:
20395         Added "recursive" message type (was not necessary to use OrthConn).
20397 1999-02-02  Alexander Larsson  <alla@lysator.liu.se>
20399         * objects/standard/arc.c:
20400         Removed old debug code. Fixes a visual bug. From lrclause@cs.uiuc.edu.
20402 1999-02-01  Alexander Larsson  <alla@lysator.liu.se>
20404         Patch from Lars R. Clausen <lrclause@cs.uiuc.edu>
20405         
20406         * app/load_save.c:
20407         * lib/dia_xml.c:
20408         Update xml includes to gnome-xml/*.h.
20410         * objects/standard/arc.c:
20411         Only one property dialog per type.
20412         Fix arrows directions.
20414         * objects/standard/box.c:
20415         * objects/standard/ellipse.c:
20416         * objects/standard/textobj.c
20417         Added default properties dialog.
20418         
20420 1999-01-31  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
20422         * objects/UML/Makefile.am: 
20423         * objects/UML/uml.c:
20424         * objects/UML/lifeline.c: 
20425         * objects/UML/object.c: 
20426         * objects/UML/message.c:
20427         * objects/UML/pixmaps/lifeline.xpm: 
20428         * objects/UML/pixmaps/object.xpm: 
20429         * objects/UML/pixmaps/message.xpm:
20430         Added 3 new UML objects for dynamic modeling. To avoid internal 
20431         conflicts, the name "objet" is used for object "object".        
20433         * lib/arrows.[ch]: 
20434         Added ARROW_HALF_HEAD arrow type to allow drawing asynchronous
20435         UML messages.
20436         
20437 1999-01-30  Alexander Larsson  <alla@lysator.liu.se>
20439         * app/display.[ch]:
20440         * app/modify_tool.c:
20441         Added autoscrolling while doing rubber-band select.
20442         This patch from Matthias Köster
20443         (Matthias.Koester@Informatik.Uni-Oldenburg.DE)
20444         
20446 1999-01-28  Alexander Larsson  <alla@lysator.liu.se>
20448         * app/defaults.[ch]:
20449         New files, deals with default properties dialog.
20451         * lib/diamenu.h:
20452         New file. Contains definitions for the new object menu.
20454         * lib/poly_conn.[ch]:
20455         New file. Base class for poly-line like objects.
20457         * objects/standard/polyline.c:
20458         * objects/standard/pixmaps/polyline.xpm:
20459         New files. Polyline object.
20461         * app/app_procs.c:
20462         Fixed bug with infinite loop when registering sheets.
20463         
20464         * app/commands.c:
20465         Removed unneccesary stuff.
20467         * app/disp_callbacks.c:
20468         Support for object menus.
20470         * app/interface.c:
20471         Added polyline to toolbox.
20472         Added call to tool_options_dialog_show() when double clicking on
20473         tool.
20475         * app/tool.[ch]:
20476         New function tool_options_dialog_show() for tool properties.
20478         * lib/arrows.[ch]:
20479         Added ARROW_NONE.
20481         * lib/object.h:
20482         Added ObjectType methods for handling object default dialogs.
20483         Added Object method for handling object_menu.
20484         Added unused methods to ObjectTypeOps for future binary
20485         compatibility.
20487         * lib/widgets.[ch]:
20488         Added DiaArrowTypeSelector widget.
20490         * objects/standard/arc.c:
20491         * objects/standard/zigzagline.c:
20492         Added support for default properties.
20494         * objects/standard/line.c:
20495         Added support for default properties.
20496         Just use one properties dialog for all line objects. NOTE: This
20497         seems to have a bug. We're working on it.
20499         * standard/standard.c:
20500         Add the polyline object.
20502 1999-01-27  Alexander Larsson  <alla@lysator.liu.se>
20504         * app/modify_tool.c:
20505         Commented out buggy transitive select function. It wasn't really
20506         meant to go into cvs.
20507         
20509 1999-01-25  Fredrik Hallenberg  <hallon@lysator.liu.se>
20511         * autogen.sh:
20512         * acconfig.h:
20513         * configure.in:
20514         * Makefile.am:
20515         * app/Makefile.am:
20516         * po/POTFILES.in:
20517         * app/intl.h
20518         i18n-support.
20520         * po/sv.po:
20521         Swedish translation. Not completed.
20522         
20523         * configure.in:
20524         * acconfig.h:
20525         Added possibility to enable GNOME specific code with configure.
20527         * configure.in:
20528         Added possibility to set debug level with configure.
20530         * commands.[hc]:
20531         Added about dialog.
20533         * app_procs.c
20534         * commands.c
20535         * interface.c
20536         * menus.c
20537         Added some GNOME specific code. Not ready for use.
20539 1999-01-24  Alexander Larsson  <alla@lysator.liu.se>
20541         * INSTALL:
20542         Added text about needing gtk 1.1.13 and gnome-xml.
20543         
20544         * NEWS:
20545         Described changes since last version (0.20).
20547         Released version 0.30, tagged DIA_0_30.
20549 1999-01-22  Alexander Larsson  <alla@lysator.liu.se>
20551         * app/magnify.c (magnify_button_release):
20552         Fixed a problem when zooming in on a very small box would
20553         not release the grabbed pointer-focus.
20555 1999-01-21  Alexander Larsson  <alla@lysator.liu.se>
20557         * app/load_save.c (diagram_load):
20558         Be somewhat more robust when loading files that
20559         are not diagrams.
20560         
20561 1999-01-21  Alexander Larsson  <alla@lysator.liu.se>
20563         * app/app_procs.c:
20564         * objects/ER/er.c:
20565         * objects/UML/uml.c:
20566         * objects/network/network.c:
20567         * objects/standard/standard.c:
20568         Added versioning of object libraries.
20570         * app/create_object.c:
20571         Don't change tool when an object is created.
20572         
20573         * objects/network/network.c:
20575         * TODO:
20576         Update
20578 1999-01-19  Alexander Larsson  <alla@lysator.liu.se>
20580         * configure.in:
20581         Updated gtk requirement to Gtk+ 1.1.13.
20583         * app/display.c:
20584         Always add one screenful of scrolling space on
20585         each side of a diagram window.
20587 1999-01-19  Jeff Garzik  <jgarzik@pobox.com>
20589         * autogen.sh:
20590         Tell automake to auto-install missing files.
20592         * app/menus.c:
20593         Renamed deprecated Gtk+ function.
20595 1999-01-16  Alexander Larsson  <alla@lysator.liu.se>
20597         * Makefile.am:
20598         * configure.in:
20599         * samples/Makefile.am:
20600         * samples/ER-demo.dia:
20601         * samples/UML-demo.dia:
20602         Added samples directory.
20603         Added samples for ER and UML.
20604         
20605         * app/commands.c:
20606         * app/disp_callbacks.c:
20607         * app/menus.c:
20608         Zoom is done by sqrt(2) instead of 2.
20609         Lots of more zoom options in the menu.
20611         * objects/ER/relationship.c:
20612         Relationships have 8 connectionpoints instead of 4.
20614         * objects/UML/class.c:
20615         UML class name font a bit smaller.
20616         Fixed stupid bug in the copy operation.
20617         
20618         * app/display.c:
20619         Displays are opened at 500x400 instead of 256x256.
20621         * app/load_save.c:
20622         Fixup of internal error message.
20624         * app/color_area.c:
20625         * app/diagram.c:
20626         * app/modify_tool.c:
20627         * lib/object.c:
20628         Removed debug printf's.
20629         
20630         * TODO (BUGS):
20631         Added new known bug.
20633 1999-01-16  Alexander Larsson  <alla@lysator.liu.se>
20635         * app/interface.c:
20636         * app/menus.c:
20637         Fixed so accelerator groups work in all windows.
20638         Updated to new gtk function names.
20640         * TODO (BUGS):
20641         Removed fixed bug.
20643         * app/display.c:
20644         Updated to new gtk function names.
20645         Set sensitivity of the align menu items.        
20647         * objects/ER/pixmaps/Makefile.am:
20648         * objects/UML/pixmaps/Makefile.am:
20649         * objects/network/pixmaps/Makefile.am:
20650         Fix so that make dist works.
20652         * app/app_procs.c:
20653         * app/color_area.c:
20654         * app/commands.c:
20655         * app/diagram.c:
20656         * app/grid.c:
20657         * app/layer_dialog.c:
20658         * app/load_save.c:
20659         * app/object_ops.c:
20660         * app/properties.c:
20661         * lib/diagramdata.[ch]: 
20662         * lib/message.c:
20663         * lib/objects/ER/attribute.c:
20664         * lib/objects/ER/entity.c:
20665         * lib/objects/ER/participation.c:
20666         * lib/objects/ER/relationship.c:
20667         * lib/objects/ER/.c:
20668         * objects/UML/actor.c:
20669         * objects/UML/association.c:
20670         * objects/UML/class_dialog.c:
20671         * objects/UML/dependency.c:
20672         * objects/UML/generalization.c:
20673         * objects/UML/large_package.c:
20674         * objects/UML/realizes.c:
20675         * objects/UML/.c:
20676         * objects/UML/.c:
20677         Updated to new gtk function names.
20678         Removed warnings.
20680 1999-01-15  Alexander Larsson  <alla@lysator.liu.se>
20682         * TODO:
20683         Update TODO.
20685         * app/app_procs.c:
20686         Fixed loading of diagrams specified as arguments.
20688         * objects/ER/attribute.c:
20689         * objects/ER/entity.c:
20690         * objects/ER/er.c:
20691         * objects/ER/participation.c:
20692         * objects/ER/relationship.c:
20693         Updated the ER objects.
20694         
20696 1999-01-14  Alexander Larsson  <alla@lysator.liu.se>
20698         * configure.in:
20699         * app/Makefile.am:
20700         * objects/Makefile.am:
20701         * objects/ER/attribute.c:
20702         * objects/ER/entity.c:
20703         * objects/ER/er.c:
20704         * objects/ER/participation.c:
20705         * objects/ER/relationship.c:
20706         * objects/ER/pixmaps/Makefile.am:
20707         * objects/ER/pixmaps/attribute.xpm:
20708         * objects/ER/pixmaps/entity.xpm:
20709         * objects/ER/pixmaps/participation.xpm:
20710         * objects/ER/pixmaps/relationship.xpm:
20711         * objects/ER/pixmaps/weakentity.xpm:
20712         First commit of entity relationship objects.
20713         These were done by hallon@lysator.liu.se.
20714         There are still stuff to do on these.
20715         
20716 1999-01-14  Alexander Larsson  <alla@lysator.liu.se>
20718         * TODO:
20719         Updates.
20721         * app/diagram.[ch]:
20722         Change diagram_remove_all_selected to take new argument
20723         delete_empty. Empty objects are deleted only if it is TRUE.
20724         Removed call to close_eps_renderer. This is now done in end_render
20725         in the eps renderer.
20727         * app/create_object.c:
20728         * app/layer_dialog.c:
20729         Update calls to diagram_remove_all_selected.
20731         * app/commands.c:
20732         Update calls to diagram_remove_all_selected.
20733         Some code reformating.
20734         Changed order of adding updates i align_h and align_v.
20736         * app/modify_tool.c:
20737         Update calls to diagram_remove_all_selected.
20738         Added pointer grab when doing rubber-band selection, this fixes
20739         the bug when draging the box over to another window.
20741         * app/connectionpoint_ops.[ch]:
20742         diagram_update_connections_object changed to take an argument
20743         update_nonmoved. This lets connections that has not moved, but
20744         the stuff they're connected to has been moved work.
20745         Update calls to the new diagram_update_connections_object.
20747         * app/properties.c:
20748         Update calls to the new diagram_update_connections_object.
20749         Update extents when properties are applied.
20750         
20751         * app/disp_callbacks.c:
20752         Added support for zooming with the '+' and '-' keys.
20754         * app/menus.c:
20755         Removed old keyboard shortcuts for zoom.
20757         * lib/render.h:
20758         Added calls begin_render and end_render to renderer.
20759         These can be used for setup and cleanup.
20761         * lib/diagramdata.c:
20762         Added calls to begin_render and end_render in data_render.
20764         * app/render_gdk.c:
20765         Added begin_render and end_render.
20767         * app/render_eps.[ch]:
20768         Added begin_render and end_render.
20769         Moved close_eps_renderer code to end_render.
20770         Various fixes to the generated eps code. This fixes importing
20771         generated eps into LYX.
20772         
20773 1999-01-12  Alexander Larsson  <alla@lysator.liu.se>
20775         * TODO:
20776         Update of todo.
20777         
20778         * app/menus.c:
20779         Menus for alignment updated.
20781         * app/object_ops.[ch]:
20782         Functions for object alignment updated.
20784         * app/commands.[ch]:
20785         Object alignment callbacks updated.
20786         New diagrams are called Untitled-<nr>.
20788         * app/layer_dialog.c:
20789         Active layer selected when showing layers from new
20790         diagram.
20792         * app/load_save.c:
20793         Compress xml files when saving.
20794         Use xml namespace 'dia'.
20796         * lib/object.h:
20797         Minor comment update.
20799         * objects/UML/class_dialog.c:
20800         Cleanup of the gkt_list_item moving code.
20801         Fixed bug with update of operation when moving parameters.
20803 1999-01-10  Alexander Larsson  <alla@lysator.liu.se>
20805         * app/layer_dialog.[ch]:
20806         Fixed the rest of the layers dialog.
20808         * app/dialog.c:
20809         Added call to redo layer dialogs diagram list when changing
20810         diagram name.
20812         * lib/diagramdata.[ch]:
20813         Added data_raise_layer and data_lower_layer functions for
20814         raising/lowering layers. Added data_add_layer_at for adding a
20815         layer at a specified index.
20817 1999-01-05  Alexander Larsson  <alla@lysator.liu.se>
20819         This is the asierra-990105 patch done by asierra@servidor.unam.mx.
20820                 
20821         * app/app_procs.c:
20822         Added support for reading diagrams from the command line.
20824 1998-12-21  Alexander Larsson  <alla@lysator.liu.se>
20826         This is the asierra-981220 patch done by asierra@servidor.unam.mx.
20827                 
20828         * app/commands.[ch]:
20829         Added objects_align_callback().
20831         * app/menus.c:
20832         Added align objects to menu.
20834         * app/object_ops.[ch]:
20835         Add object_list_align().
20836         
20837 1998-12-17  Alexander Larsson  <alla@lysator.liu.se>
20838         * app/layer_dialog.[ch]:
20839         New files. Handles the layers dialog. Needs a bugfix for glib to
20840         work. Sent patch to gtk-list.
20841         
20842         * app/pixmaps/new.xpm:
20843         * app/pixmaps/eye.xbm:
20844         * app/pixmaps/lower.xpm:
20845         * app/pixmaps/raise.xpm:
20846         * app/pixmaps/delete.xpm:
20847         New files. Images for the layer dialog buttons.
20848         
20849         * lib/diagramdata.h
20850         * lib/diagramdata.c
20851         New files for the DiagramData and Layer structures and functions.
20852         
20853         * app/app_procs.c:
20854         Added call to create_layer_dialog() on startup.
20855         
20856         * app/commands.[ch]:
20857         New callbacks for showing the properties and layout dialog.
20858         Changes for the new DiagramData structure.
20860         * app/connectionpoint_ops.c:
20861         * app/cut_n_paste.c:
20862         * app/diagram.[ch]:
20863         * app/display.[ch]:
20864         * app/group.c:
20865         * app/modify_tool.c:
20866         * app/object_ops.[ch]:
20867         * app/render_eps.c:
20868         * lib/object.[ch]:
20869         Changes for the new DiagramData structure.
20871         * app/interface.c:
20872         * app/properties.c:
20873         Set correct wmclasses.
20875         * app/load_save.c:
20876         Fix load and save of layers.
20878         * diagram.dtd:
20879         Update DTD for layers.
20880         
20881         * app/menus.c:
20882         New menus for dialogs.
20884         
20885         * TODO:
20886         Some updates.
20887         
20888 1998-12-06  Alexander Larsson  <alla@lysator.liu.se>
20890         * TODO:
20891         Removed the gtk 1.1.5 stuff.
20893         * configure.in:
20894         Updated gtk check to version 1.1.5.
20895         Updated version from 0.20 to 0.30
20897         * app/commands.[ch]:
20898         Updated some callbacks to be of type GtkItemFactoryCallback1.
20899         Not all are done yet, but it works anyway.
20901         * app/display.h:
20902         Removed Gtk 1.0.0 GtkAcceleratorTable references.
20903         
20904         * app/interface.c:
20905         * app/menus.[ch]:
20906         Update to Gtk 1.1.x functions.
20907         Use ItemFactory instead of MenuFactory.
20908         
20909         * app/render_gdk.c:
20910         Removed Gtk 1.0.0 references.
20912         * objects/UML/class_dialog.c:
20913         Scrolled window updates for Gtk 1.1.5.
20914         
20915         * lib/dia_xml.c:
20916         Removed ugly fix for gnome-xml bug. Make sure you get the
20917         newest version of gnome-xml from CVS.
20918         
20919 1998-12-05  Alexander Larsson  <alla@lysator.liu.se>
20921         * TODO:
20922         Removed the xml load/save line.
20924         * lib/files.[ch]:
20925         Removed files.
20926         
20927         * lib/Makefile.am:
20928         Removed building of files.c
20930         * app/load_save.c:
20931         * lib/connection.c:
20932         * lib/element.c:
20933         * lib/object.c:
20934         * lib/orth_conn.c:
20935         * lib/render_object.c:
20936         * objects/UML/actor.c:
20937         * objects/UML/association.c:
20938         * objects/UML/class.c:
20939         * objects/UML/constraint.c:
20940         * objects/UML/dependency.c:
20941         * objects/UML/generalization.c:
20942         * objects/UML/implements.c:
20943         * objects/UML/large_package.c:
20944         * objects/UML/note.c:
20945         * objects/UML/realizes.c:
20946         * objects/UML/small_package.c:
20947         * objects/UML/uml.c:
20948         * objects/UML/usecase.c:
20949         * objects/network/bus.c:
20950         * objects/standard/arc.c:
20951         * objects/standard/box.c:
20952         * objects/standard/ellipse.c:
20953         * objects/standard/line.c:
20954         * objects/standard/textobj.c:
20955         * objects/standard/zigzagline.c:
20956         Removed all includes of files.h
20958         
20959 1998-12-05  Alexander Larsson  <alla@lysator.liu.se>
20961         * dialog.dtd:
20962         Made the val property of string be implied.
20963         This makes it possible to save strings that
20964         are NULL. Just leave out val.
20966         * objects/lib/dia_xml.c:
20967         Fixed string so that it is possible to save strings
20968         that are NULL. Also made an ugly workaround of a
20969         bug in gnome-xml which removes empty properties.
20970         
20971         * objects/lib/orth_conn.c:
20972         Fixed a bug in saving. Forgot to step through the
20973         directions.
20974         
20975         * objects/UML/association.c: 
20976         * objects/UML/class.c: 
20977         * objects/UML/constraint.c: 
20978         * objects/UML/dependency.c: 
20979         * objects/UML/generalization.c: 
20980         * objects/UML/implements.c: 
20981         * objects/UML/large_package.c: 
20982         * objects/UML/note.c: 
20983         * objects/UML/small_package.c:
20984         * objects/UML/realizes.c:
20985         * objects/UML/usecase.c: 
20986         * objects/UML/actor.c: 
20987         Fixed UML objects to save as xml.
20988         The last two were done by asierra@servidor.unam.mx (asierra-981204)
20989         
20990         * objects/UML/uml.[ch]:
20991         Updated *_write() and *_read() functions to use xml.
20993         * objects/network/bus.c: 
20994         * objects/network/computer.c: 
20995         * objects/network/disc.c: 
20996         * objects/network/monitor.c:
20997         Updated network diagrams to use xml.
20999 1998-12-02  Alexander Larsson  <alla@lysator.liu.se>
21001         * dialog.dtd:
21002         New file. DTD that describes the xml file format
21003         dia uses.
21005         * lib/dia_xml.[ch]:
21006         New files. Support for saving object to xml files.
21008         * configure.in:
21009         * app/Makefile.am:
21010         * lib/Makefile.am:
21011         Added check for and usage of gnome-xml library.
21013         * app/load_save.c:
21014         Major chages. Now saves/loads diagrams as xml.
21016         * lib/object.[ch]:
21017         * lib/element.[ch]:
21018         * lib/connection.[ch]:
21019         * lib/orth_conn.[ch]:
21020         * lib/render_object.[ch]:
21021         * lib/text.[ch]:
21022         Updated object support load/save functions for xml:
21024         * object/standard/arc.c:
21025         * object/standard/box.c:
21026         * object/standard/ellipse.c:
21027         * object/standard/line.c:
21028         * object/standard/textobj.c:
21029         * object/standard/zigzagline.c:
21030         Updated all standard objects to use xml.
21031         
21032         NOTE NOTE NOTE
21033         Only the standard objects are converted right now, don't
21034         save or load uml or network diagrams yet. Also, since this
21035         is new code it is deemed a bit unstable.
21036         
21037         * TODO
21038         Added a know bug.
21040 1998-12-01  Alexander Larsson  <alla@lysator.liu.se>
21042         * objects/UML/class.c:
21043         Changed classname font to Helvetica.
21044         Added more space above the classname
21046         * objects/UML/usecase.c:
21047         Correct placements of connectionpoints on ellipse.
21048         Better algorithm for deciding aspect ration on
21049         ellipse.
21051         These changes were made by Alejandro Aguilar Sierra
21052         <asierra@servidor.unam.mx>. (asierra-981201)
21054 1998-11-30  Alexander Larsson  <alla@lysator.liu.se>
21056         * objects/UML/actor.c:
21057         Changed the extents and alignment of the element
21058         and the text.
21060         * objects/UML/.cvsignore:
21061         Added usecase.lo and actor.lo.
21063 1998-11-30  Alexander Larsson  <alla@lysator.liu.se>
21065         * objects/UML/actor.c:
21066         * objects/UML/usecase.c:
21067         * objects/UML/pixmaps/actor.xpm:
21068         * objects/UML/pixmaps/case.xpm:
21069         New files. Implements usecase and actor UML objects.
21070         These objects are done by Alejandro Aguilar Sierra
21071         <asierra@servidor.unam.mx>.
21072         
21073         * objects/UML/Makefile.am:
21074         * objects/UML/pixmaps/Makefile.am:
21075         Added usecase and actor to makefile.
21076         
21077         * AUTHORS:
21078         Added Alejandro and Jerome to autors list.
21079         
21080 1998-11-25  Alexander Larsson  <alla@lysator.liu.se>
21082         * objects/UML/class.c (umlclass_load):
21083         Fixed typo. Reported by Jerome.Abela@solsoft.fr
21085 1998-11-24  Alexander Larsson  <alla@lysator.liu.se>
21087         * app/properties.c:
21088         Update connections when doing apply in the properties window.
21090         * objects/UML/uml.[ch]:
21091         * objects/UML/class.[ch]:
21092         * objects/UML/class_dialog.c:
21093         Added connection points on both sides of attributes and
21094         operations in UML classes.
21095         Based on idea from Jerome.Abela@solsoft.fr
21096         
21097 1998-11-24  Alexander Larsson  <alla@lysator.liu.se>
21099         * README:
21100         Some new documentation about handles and connectionpoints.
21101         
21102         * lib/object.[ch]:
21103         Added functions object_add_connectionpoint and
21104         object_remove_connectionpoint for handling a dynamic
21105         number of connectionpoints.
21107         * objects/UML/class.c:
21108         Only reserve space for stereotype when it is shown.
21110         These changes are from Jerome Abela <Jerome.Abela@solsoft.fr>
21112 1998-11-08  Alexander Larsson  <alla@lysator.liu.se>
21114         * app/connectionpoint_ops.c:
21115         * app/commands.c:
21116         * app/disp_callbacks.c:
21117         * app/display.[ch]:
21118         * app/grid.c:
21119         * app/handle_ops.c:
21120         * app/magnify.c:
21121         * app/modify_tool.c:
21122         * app/render_gdk.[ch]:
21123         * lib/render.h:
21124         Huge cleanup of internal rendering system.
21125         Moved a lot of data (pixmap, width, height & gc) into the GdkRenderer.
21126         This gives a few new methods for Interactive Renderers for setting
21127         clipping regions and drawing pixel based lines and rects.
21128         Updated the rest of the code to use the new stuff.
21129         
21130         * app/render_eps.c:
21131         Fixed warning.
21133         * lib/widgets.c:
21134         * objects/standard/zigzagline.c
21135         Fixed unused variable warnings.
21137         * lib/font.c:
21138         Fixedbug with stringwidth where width==0.
21140         * TODO:
21141         Added known bug.
21143 1998-11-02  Alexander Larsson  <alla@lysator.liu.se>
21145         * lib/widgets.[ch]:
21146         Added suppot for setting the font of a
21147         DiaFontSelector widget.
21148         Also fixed some typos in the header.
21150         * lib/object.h: 
21151         Added a comment about the GetPRoperties method call.
21152         You have to make sure to update widget state when
21153         this method is called. (Not all objects do this yet,
21154         to be fixed.)
21156         * TODO:
21157         Some small updates
21159 1998-11-01  Alexander Larsson  <alla@lysator.liu.se>
21161         * lib/font.c
21162         Fixed problem with height of ascent and descent for fonts.
21163         It didn't use the whole height (==ascent+descent) when calculatine
21164         ascent_ratio and descent_ratio.
21166         * objects/standard/textobj.c:
21167         * objects/standard/box.c:
21168         * objects/standard/ellipse.c:
21169         * objects/standard/line.c:
21170         * objects/standard/arc.c:
21171         Updated and added property dialogs for these objects.
21172         Also added line width/color/style to those objects
21173         that didn't have it.
21174         This change breaks fileformat compatibility for these objects.
21175         
21176         * objects/standard/zigzagline.c:
21177         Changed zigzagline to be based on OrthConn, much nicer.
21178         Also added line style and color to properties.
21179         This change breaks fileformat compatibility for zigzagline.
21181         * lib/message.c:
21182         Fixed bug in message(). Forgot a pair of '&'.
21184 1998-10-29  Alexander Larsson  <alla@lysator.liu.se>
21186         * lib/widgets.[ch]:
21187         Added DiaColorSelector widget.
21188         This is a colored button that pops up a color selection
21189         dialog when pressed.
21191 1998-10-28  Alexander Larsson  <alla@lysator.liu.se>
21193         * lib/widgets.[ch]:
21194         * lib/Makefile.am:
21195         New files, added widgets for selecting fonts, alignment
21196         and line-style. Will be used later.
21198 1998-10-12  Alexander Larsson  <alla@lysator.liu.se>
21200         * app/Makefile.am:
21201         * lib/Makefile.am:
21202         * objects/UML/Makefile.am:
21203         * objects/network/Makefile.am:
21204         * objects/standard/Makefile.am:
21205         Changed "CFLAGS = -Wall -g" to "CFLAGS = @CFLAGS@"
21206         in all Makefile.am.
21208 1998-10-03  Alexander Larsson  <alla@lysator.liu.se>
21210         * app/handle_ops.c (handle_draw):
21211         connected HANDLE_MINOR_CONTROL also becomes red.
21213 1998-10-02  Alexander Larsson  <alla@lysator.liu.se>
21215         * Makefile.am:
21216         removed -ldl from linking. This is added if needed by configure.
21218         * app/app_procs.c:
21219         Open dlls with RTLD_LAZY if it is defined.
21220         Some cleanups: char *error -> const char *error
21221         Added fprintf()'s to where we exited because of errors.
21223         * lib/files.c:
21224         Include <sys/types.h>
21226 1998-10-01  Alexander Larsson  <alla@lysator.liu.se>
21228         * acconfig.h:
21229         * configure.in:
21230         * app/app_procs.c:
21231         Detect dlopen better.
21232         Detect wether dlopen needs an underscore in the identifier.
21233         This code was mostly borrowed from guile.
21235         * lib/sheet.[ch]:
21236         * app/app_procs.c:
21237         * objects/standard/standard.c:
21238         * objects/network/network.c:
21239         * objects/UML/uml.c:
21240         * most objects:
21241         Changed the way sheets reference objects to use just the
21242         name. Changed module loading to a two stage model:
21243         First register_objects() is called for all modules.
21244         Then register_sheets() is called. This means that
21245         sheets can safely include objects from other modules.
21246         
21248 1998-09-30  Alexander Larsson  <alla@lysator.liu.se>
21250         * objects/network/bus.c:
21251         * objects/network/network.c:
21252         * objects/network/Makefile.am:
21253         New file bus.c. Added new object: Ethernet bus.
21255         * objects/standard/box.c:
21256         Added call to gtk_spin_button_set_numeric for linewidth spinner
21257         in property dialog.
21259 1998-09-30  Alexander Larsson  <alla@lysator.liu.se>
21261         * app/connectionpoint_ops.c:
21262         * app/create_object.c:
21263         * app/group.c:
21264         * app/handle_ops.c:
21265         * app/modify_tool.c:
21266         * lib/connection.c:
21267         * lib/element.c:
21268         * lib/handle.h:
21269         * lib/object.c:
21270         * lib/orth_conn.c:
21271         * loads of objects:
21272         Changed handle->connectable to handle->connect_type.
21273         Now handles can be HANDLE_CONNECTABLE_NOBREAK, which means
21274         that their connections don't break when moving objects.
21276         * app/diagram.c:
21277         Always select the last handle in an object that has
21278         the closest distance.
21279         
21280         * lib/geometry.[ch]:
21281         Added rectangle_add_point function.
21282         
21284 1998-09-27  Alexander Larsson  <alla@lysator.liu.se>
21286         * app/properties.[ch]: New files. Handles the new properties
21287         dialog.
21289         * app/modify_tool.c: Changed to use new properties dialog.
21291         * app/object_ops.[ch]: Removed object_changed_callback, as it's
21292         not needed anymore. This is now handled differently in
21293         properties.c
21295         * lib/object.[ch]:
21296         Changed the properties ops for objects. Removed typedefs
21297         ChangedObjectTime and ObjectChangedFunc needed for the old way.
21298         Added object_return_null function.
21299         
21300         * app/group.c:
21301         * lib/render_object.c:
21302         * objects/*/*.c:
21303         Changed objects to use the new properties dialog.
21304         
21306 1998-09-14  Nuno Ferreira  <nmrf@rnl.ist.utl.pt>
21308         * */Makefile.am (INCLUDES): Changes to work with srcdir !=
21309         builddir.
21311         * autogen.sh: New file. Copied from gtk and added a call to
21312         libtoolize. Anyone knows why this isn't done in gtk?
21314         * Removed autogenerated files.
21316 1998-09-12  Alexander Larsson  <alla@lysator.liu.se>
21318         * Added call setlocale(LC_NUMERIC, "C") so that formating of
21319           floating-point numbers in postscript output will be correct.
21320         * Did some cleanup of generated postscript files.