* installer/Makefile.am:
[dia.git] / ChangeLog
blob6ba54b8d0528be877b861953fc26ae3c10e892c8
1 2006-03-08  Steffen Macke <sdteffen@gmail.com>
3         * installer/Makefile.am:
4         * installer/win32/Makefile.am:
5         * installer/win32/locale/Makefile.am: Making sure that the installer
6         sources are included in the dia source distribution
7         * installer/win32/dia.nsi: Don't include makefiles in installer;
8         Add uninstaller link to start menu (bug #332650); added commandline 
9         option GTKBIN to specify GTK installation directory (fixes bug #332595)
10         * installer/win32/dia-diagram.ico:
11         * installer/win32/dia-header.bmp:
12         * installer/win32/dia-install.ico:
13         * installer/win32/dia-intro.bmp:
14         * installer/win32/dia-uninstall.ico:
15         * installer/win32/dia.nsi:
16         * installer/win32/langmacros.nsh:
17         * installer/win32/locale/english.nsh:
18         * installer/win32/locale/german.nsh: Added files to build the win32
19         installer using NSIS (http://nsis.sourceforge.net)
20         
21 2006-03-06  Lars Clausen  <larsrc@raeder.dk>
23         * doc/en/dia.xml: 
24         * doc/pl/dia.xml: 
25         * config.h.win32: 
26         * configure.in: 
27         * NEWS: -pre4
29         * samples/TexChars.dia: Added sample of the escaped chars for TeX.
30         
31         * plug-ins/pstricks/render_pstricks.c (tex_escape_string):
32         Changing escape of \, [, and ] to something that works.  $ is
33         fine.  Fixes parts of 333193.
35 2006-03-05  Lars Clausen  <larsrc@raeder.dk>
37         * plug-ins/xfig/xfig-import.c: Fixed locale issues with FIG import.
39         * lib/orth_conn.c (orthconn_update_data): 
40         * app/diagram.c: Removing debug info.
42         * app/object_ops.c (object_find_connectpoint_display): Don't
43         magnet to parents.
45 2006-02-26  Hans Breuer  <hans@breuer.org>
47         * app/Makefile.am : define DIA_PYTHON_PATH in app/run_dia.sh
48         * plug-ins/python/python.c : if set use it to find python-startup.py
49         (bug #332599, Torben H. Nielsen)
51         * app/app_procs.c : removed // from gtk_init() [shouldn't have commited
52         my test code]. Really closes #332177, thanks Mateus César Gröess.
54 2006-02-26  Lars Clausen  <lars@raeder.dk>
56         * doc/en/dia.xml: 
57         * doc/pl/dia.xml: 
58         * config.h.win32: 
59         * configure.in: 
60         * NEWS: -pre3
62         * lib/element.h (ELEMENT_COMMON_PROPERTIES): Turning off setting
63         of element_width and element_height until constraints can be 
64         properly checked.  Bug #328200
66         * dia.spec (Requires): Updated GTK requirements.
68 2006-02-25  Lars Clausen  <lars@raeder.dk>
70         * lib/diaarrowchooser.c (dia_arrow_chooser_new): Also making sure
71         other dynamic menus have proper translation.
73         * lib/widgets.c (dia_dynamic_menu_create_string_item): 
74         * app/interface.c (cmp_names): 
75         * app/sheets.c (sheets_optionmenu_create): 
76         * lib/sheet.c (load_register_sheet): Using C locale for sheet
77         names internally, translating on display instead.  Also sorting
78         by gettext order explicitly.  Bug #328570.
80 2006-02-25  Hans Breuer  <hans@breuer.org>
82         * app/interface.c(get_sheet_by_name) : be more tolerant about 
83         localization of the sheet name. ( Steffen Macke, #332070 )
84         
85         * app/app_procs.c(app_init) : if GDK_WINDOWING_WIN32 call gtk_init()
86         in any case. In contrast to X11/*nix displays are not optional on
87         windoze. And we need some help of gtk to render text to bitmaps.
88         ( Rob McDonald, bug #332177 )
89         
90 2006-02-21  Lars Clausen  <lars@raeder.dk>
92         * NEWS: 
93         * doc/pl/dia.xml: 
94         * doc/en/dia.xml: 
95         * configure.in: 
96         * config.h.win32: Update to -pre2.
98         * lib/beziershape.c (add_handles): Fixing CP pos calculation for
99         adding new CP's.  Fixes bug #331557.
101 2006-02-20  Lars Clausen  <lars@raeder.dk>
103         * lib/diarenderer.c (find_center_point): Better handling of some
104         degenerate cases.
105         (draw_arc_with_arrows): Draw line in all cases.  Doesn't handle
106         the truly degenerate cases well enough yet, but at least doesn't
107         break on common cases.  Probably need to do something special for
108         arcs with start and end point the same.  Improves but does not
109         entirely fix bug #331372.
111 2006-02-20  Hans Breuer  <hans@breuer.org>
113         * plug-ins/python/Makefile.am : dot.py was missing from EXTRA_DIST
114         
115 2006-02-18  Hans Breuer  <hans@breuer.org>
117         * plug-ins/metapost/render_metapost.c : text position gives the
118         baseline neither top nor bottom. ( Rob McDonald, #331491 )
120         * plug-ins/wmf/wmf.cpp : finally respecting the print margins
121         ( Rob McDonald, #331371 )
122         * plug-ins/wmf/wmf_gdi.h : some more constants not useful 
123         without a GDI printer (driver)
124         
125 2006-02-17  Hans Breuer  <hans@breuer.org>
127         * plug-ins/metapost/render_metapost.c(draw_string) : dont query
128         the font for it's height but use the 'height' parameter passed
129         in. Close enough to the desired size - and independent of zoom -
130         to close bug #331489 (Rob McDonald)
131         
132 2006-02-12  Lars Clausen  <lars@raeder.dk>
134         * NEWS: 
135         * dia.spec: 
136         * doc/pl/dia.xml: 
137         * doc/en/dia.xml: 
138         * configure.in: 
139         * config.h.win32: Updates for version 0.95-pre1.
141 2006-02-12  Hans Breuer  <hans@breuer.org>
143         * app/makefile.msc : build three components dia.exe (console
144         application), diaw.exe (windows application) and dia-app.dll
145         containing almost all of Dia's application shared between
146         the two executables
147         * app/main.c app/winmain.c app/app_procs.c app/dia.def : some 
148         refactoring to accomplish the new dependency layout
149         * objects/makefile.msc plug-ins/python/makefile.msc : need to
150         link dia-app.lib now - if at all depending on app/*
151         
152 2006-02-11  Hans Breuer  <hans@breuer.org>
154         * makefile.msc : nmake -f makefile.msc just compiles now
155         * app/makefile.msc lib/makefile.msc : make not using FT2
156         on win32 the default (works around bug #150813 by diabaling it)
157         * objects/makefile.msc plug-ins/makefile.msc : remove -GD from
158         $(CC) command line. It isn't understood by newer versions of cl.
159         
160         * app/authors.h : reflect the recent maintainers change
161         
162         * app/display.c app/load_save.c : removed debug spew
163         
164         * app/winmain.c : improved redirection
165         
166 2006-02-05  Hans Breuer  <hans@breuer.org>
168         * app/menus.[ch] app/diagram.c : the GNOME specific menu code is dead 
169         since 0.94. Fix somne left-overs, also properly disable the duplicate
170         menu entry
172         * po/POTFILES.in : added objects/network/wanlink.c
174 2006-02-05  Hans Breuer  <hans@breuer.org>
176         * lib/dialibartrenderer.c(renderer_finalize) : dont unref 
177         parent_instance.font here. It will be done in DiaRenderer::finalize()
178         Just another reason for crashing at diagram close with libart 
179         renderer involved ...
180         
181 2006-02-04  Hans Breuer  <hans@breuer.org>
183         * objects/standard/image.c : added mainpoint, patch from
184         Torben H. Nielsen fixing bug #329603
186         * app/layer_widget.c : avoid writing to Layer::connectable for a
187         diagram possibly already gone. Fixes bug #329096.
189         * lib/persitence.c(persistence_load) : dont leak filename
190         in case of not existing file
192         Code review via regex "[^_l>p](malloc|free|realloc)\("
193         * objects/fs/function.c : what's g_strdup() must be g_free()'d
194         * plug-ins/dxf/dxf-import.c : use g_realloc()/g_free()
195         * plug-ins/xfig/xfig-import.c : use g_free() instead of plain free()
197         * app/filedlg.c(file_save_as_response_callback) : before destroying 
198         the save as dialog we need to drop the dialogs diagram reference.
199         Fixes behaviour described in bug #123225#c7
201         * app/interface.c(get_sheet_names) : need to sort sheets by their 
202         display name to really fix bug #160101.
203         
204         * objects/UML/association.c : dont leak the role_name calculated
205         with visibility attribute, use g_strdup_printf() instead of strcat().
206         
207         * configure.in : fix typo in error message
209         * lib/object.c : remove duplicated prototype
210         * lib/element.c : element_update_connections_rectangle() assumes nine
211         connection points, i.e. requires 'mainpoint'. g_assert() for this.
212         
213 2006-02-03  Hans Breuer  <hans@breuer.org>
215         * objects/network/bus.c : allow to tint it. Patch from
216         Torben H. Nielsen, closes bug #328580.
217         * objects/network/wanlink.c : allow to tint this as well.
218         
219 2006-01-29  Hans Breuer  <hans@breuer.org>
221         * app/render_libart.c(draw_line) : make setting the pixel side-effect
222         free; account for it in now (less) magic increments. Fixes bug #312147
224 2006-01-28  Hans Breuer  <hans@breuer.org>
226         * po/checktrans.py : make it work with recent pyxml (unknown url type)
227         * po/AADL.sheet.in : remove duplicated _description
228         => translation report works again
230         * app/display.c : revert back to "_Discard Changes" to avoid
231         accelerator clash. Also gtk_button_new_with_mnemonic() to
232         'expand' the accelerator.
234         * lib/dia_svg.c(dia_svg_style_init) : need to initialize
235         linecap, linejoin, linestyle to avoid invalid settings.
236         (Nguyen Thai Ngoc Duy, bug #328945)
237         * lib/diagdkrenderer.c : add a place fro breakpoint to 
238         detect invalid mode
240         * lib/diarenderer.c(setfont) : if we get passed in the
241         same font it must be ref'd before unref.
243         * lib/text.c(set_string) : don't eat the trailing new-line
244         Fixes bug #165092
245         
246         * app/app_procs.c app/display.c app/filedlg.c 
247         attempt to provide more HIG compliant dialogs. Patch from
248         Nguyen Thai Ngoc Duy, part of bug #138183
249         
250         * app/recent_files.c(recent_file_history_clear_menu) : instead of 
251         messing with GtkMenuShell::children and gtk_widget_destroy() just 
252         use gtk_container_remove. Avoids memory corruption causing the
253         most 'random' crashes recently.
254         
255         * objects/UML/message.c : can't use PROP_STD_TEXT_COLOUR_OPTIONAL 
256         cause it has PROP_FLAG_DONT_SAVE. It is designed to fill the 
257         TextAttributes - not some subset. Fixes bug #327701
258         * objects/UML/implements.c objects/UML/generalization.c
259           objects/UML/constraint.c objects/UML/object.c
260           objects/UML/large_package.c objects/UML/realizes.c : same here.
261         * objects/UML/dependency.c : same here. Also draw the "Name" with the
262         given color, not only the Stereotype.
263         * objects/UML/class.c : same here. But we also need to restore 
264         explicit restore "text_color" for the load case.
265         
266 2006-01-27  Hans Breuer  <hans@breuer.org>
268         * configure.in : error out if GLib/GTK+ version is lower than required
270         * app/filedlg.c lib/widgets.c : more default responses. Patch 
271         from Nguyen Thai Ngoc Duy, part of bug #138183
272         
273         * NEWS : Main point feature correction. The line is supposed to
274         start at the border of the object not the bounding box.
275         
276         * app/commands.c : respect difference between documenters and
277         translators and show both in about dialog. Closes bug #328711.
278         
279         * app/interface.c : instead of g_warning for missing shape icon
280         but use message_warning and show the 'missing' icon
281         
282         * lib/dialibartrenderer.c : with Gtk+ 2.8 gdk_draw_layout() does
283         not match pango_win32_get_context(). Use gdk_pango_get_context ().
284         Also removed my special win32-modified-pango code for draw_string()
285         without the help of gdk.
287         * Makefile.am : include MAINTAINERS file in tarball
289         * lib/conectionpoint.h : removed double include of "geometry.h"
290         
291 2006-01-22  Hans Breuer  <hans@breuer.org>
293         * app/splash.c app/commands.c : dont share the logo and finally leak
294         it. Instead both place load and unref the logo themself. 
295         Also unbreak GNOME case.
297         * app/commands.c : use GtkAboutDialog instead of homegrown GTK+
298         or GNOME specific one. 120 lines less code and more standard.
299         * configure.in : require GTK+ >= 2.6
301         * app/diapagelayout.c app/diaunitspinner.c app/layer_dialog.c :
302         make GtkTypeInfo static const as usual elsewhere
303         
304         * app/recent_files.c : it almost certainly is an error to ignore
305         the return value of g_list_remove_link()
306         
307         * lib/arrows.c lib/bezier_conn.[ch] lib/beziershape.h
308           lib/boundingbox.[ch] lib/color.[ch] lib/connectionpoint.c
309           lib/create.h lib/dia_svg.c lib/dia_xml.c lib/diaarrowchooser.c
310           lib/diagramdata.[ch] objects/UML/activity.c objects/UML/class.[ch]
311           objects/UML/uml.h : documentation fixes
312         
313         * lib/object.h lib/diagramdata.h : avoid circular inclusion
314         * lib/connectionpoint.h lib/focus.h lib/group.h lib/handle.h
315           lib/properties.h lib/sheet.h lib/diamenu.h
316         : dont include "object.h", "diatypes.h" is enough. 
317         Rule of thumb: only headers declaring an inheritant of DiaObject
318         should include "object.h"
319         * lib/diarenderer.h : include "font.h" not strictly needed by 
320         this header, but needed in almost any plug-in/
321         * app/diagram_tree_menu.c app/dialogs.[hc] app/display.c
322           app/export_png.c app/interface.c app/load_save.c app/sheets.c
323           app/sheets_dialog.c app/sheets_dialog_callbacks.c 
324           lib/diagdkrenderer.c lib/object.c lib/propobject.c
325           lib/text.c plug-ins/gprint/gnomeprint.c plug-ins/pixbuf/pixbuf.c
326           plug-ins/svg/render_svg.c
327           : some .c files now need to include "object.h" or <gtk/gtk.h>
328         or e.g. "intl.h" direct, formerly dargged in indirectly
329         * plug-ins/pgf/render_pgf.c : explicit inclusion of "arrows.h"
330         
331 2006-01-21  Hans Breuer  <hans@breuer.org>
333         * lib/connection.c lib/connection.h lib/connectionpoint.h
334           lib/diagramdata.h lib/diarenderer.h lib/diatypes.h
335           lib/element.h lib/geometry.h lib/handle.h lib/objchange.h
336           lib/object.c lib/object.h : documentation tweaking
338         * objects/UML/class_dialog.c(attributes_create_page,
339         operations_create_page) : dont connect
340         to a not exisiting signal. Avoids "GLib-GObject-CRITICAL **:
341         g_signal_connect_closure_by_id: assertion 'signal_id > 0' failed"
342         (This was a leftover of introducing the GtkTextView instead of GtkEntry)
344         * objects/UML/class_dialog.c objects/UML/class.c objects/UML/class.h :
345         Introduce 'comment_tagging' switch which allows to hide the rendering
346         {documentation = } Maybe a choice between ugliness and non-standard.
347         Fixes bug #326214. (Unrelated: started to adapt casing of variables
348         to Dia's common coding style)
349                 
350         * lib/object_defaults.c : pass is_default=TRUE to object_copy_props
351           lib/proplist.c : fixed pdtpp_default()
352           lib/propobject.c : correctly reflect is_default 
353         * object/UML/class.c : correct setting of PROP_FLAG_NO_DEFAULTS and
354         PROP_FLAG_DONT_MERGE. With the above this fixes bug #320934
355         
356         * lib/propdialogs.c : if PROP_NO_DEFAULTS is set dont try to show a
357         widget in defaults dialog
359         * app/display.c(initialize_display_widgets) : also append the Input 
360         Methods menu to the diagram menubar. Now fixes bug #327862.
362         * config.h.win32 : #undef LOCALEDIR
363         * app/app_procs.c : runtime calculation of localedir. It now is
364         $(executable_dir)/../locale. Should help fix bug #309763
365         
366         * sheets/AADL.sheet.in : remove left over xml:lang tag. 
367         ( Nguyen Thai Ngoc Duy, bug #327519)
369         * lib/dialibartrenderer.c : make text rendering work without
370         PangoFT2 and PangoWin32
373 2006-01-18  Lars Clausen  <lars@raeder.dk>
375         * objects/UML/class.h: Enabling UML class mainpoint after failure
376         to break it.
378         * app/grid.c: Fix bug with grid being incorrectly drawn when gap <
379         1.
381 2006-01-14  Hans Breuer  <hans@breuer.org>
383         * app/paginate_psprint.c : ensure we are not producing pages for
384         epsilon. Floating imprecision is fun. Fixes bug #133856.
385         * app/paginate_gdiprint.cpp : same here.
387         * plug-ins/pstricks/render_pstricks.c(draw_string) : now that I've
388         found the nice samples from bug #156171 it was quite simple to
389         confirm that the y value need indeed to be inverted. Fixes bug #304974.
390         Also special case strings starting with \tex - i.e. dont escape them -
391         to keep the use-case of direct tex input.
392         
393         * lib/debug.c : #include <glib/gprintf.h> not just <gprintf.h>
396 2006-01-14  Hans Breuer  <hans@breuer.org>
398         * samples/Self/umlclass.dia : (new file) documenting part of the
399         object relations of UMLClass. Also good for testing connections.
400         
401         * lib/debug.c : replace wrong call to vprintf() - missing file
402         descriptor - with the more appropriate g_vprintf(). Thus 
403         dia_assert_true() does not smash the stack anymore on win32.
404         
405         * objects/UML/class.c objects/UML/class_dialog.c objects/UML/uml.h
406           objects/UML/umlattribute.c objects/UML/umloperation.c :
407         reverted the memory managment of UMLAttribute/UMLOperation's 
408         ConnectionPoint(s) back to how it was up until 0.94. This finally
409         makes the UMLClass work again including undo/redo support. Fixes
410         bug #314153 and en passant bug #326453.
411         
412 2005-01-12  Lars Clausen  <lars@raeder.dk>
414         * objects/UML/umlattribute.c: 
415         * objects/UML/class_dialog.c: Better way of handling
416         connectionpoints: Don't copy them, just reference them.  Finally
417         fixes bug #314153 (not quite the pi bug:)
419         * app/menus.c (display_menu_items): 
420         * app/filedlg.c (file_open_response_callback): 
421         * app/display.[ch] (copy_display): 
422         * app/commands.[ch] (view_clone_view_callback): 
423         Added functionality to clone display.  Preparation for storing
424         display info in diagram files (not happening this version, though).
426         * INSTALL (NOTE FOR WINDOWS USERS): Added note for non-compiling
427         users pointing at dia-installer.
429 2006-01-08  Hans Breuer  <hans@breuer.org>
431         * shapes/Gane_and_Sarson/Makefile.am : correct spelling of filenames.
432         (Narcelio Filho, #326075)
434         * objects/AADL/aadl.h : remove #include "app/display.h". It is not needed,
435         plug-ins should not depend on app/* and it even breaks 'make distcheck'.
436         * objects/AADL/Makefile.am : added edit_port_declaration.h
437         * app/Makefile.am : added diaconv.c to EXTRA_DIST
438         => 'make distcheck' passes again.
440         * configure.in : use some more of gcc's useful warnings
442         * lib/geometry.h : removed unused functions just producing warnings
443         [sometimes it's good to read compiler warnings]
444         * plug-ins/cairo/diacairo.c : somehow a function call got lost
445         (left-hand operand of comma expression has no effect)
446         * plug-ins/metapost/render_metapost.c : dia_message_filename()
447         wants a char* not a FILE* (passing arg 1 of `dia_message_filename'
448         from incompatible pointer type)
451 2006-01-07  Hans Breuer  <hans@breuer.org>
453         * objects/custom/shape_info.c(parse_path) : handle the case of 
454         invalid path data more gracefully, i.e. show a warning instead 
455         of crashing later on.
456         * plug-ins/svg/svg-import.c(read_path_svg) : ditto.
457         
458         * configure.in sheets/Makefile.am shapes/Gane_and_Sarson 
459           shapes/Makefile.am : added Gane & Sarson shapes 
460         (Nick Moore, #319544)
462         * objects/makefile.msc : building AADL on win32
464 2006-01-06  Hans Breuer  <hans@breuer.org>
466         * objects/AADL/aadl.h : avoid redefinition warnings by #undef
467         min, #undef max before local definitions
468         * objects/AADL/aadl.h : more prototypes
469         * objects/AADL/aadltext.c : for C89 declarations must be at the
470         beginning of a block. And Dia *must* be compileable with C89.
472         * objects/AADL/** objects/Makefile.am sheets/Makefile.am 
473         configure.in : AADL plug-in from Pierre Duquesne. See
474         http://mail.gnome.org/archives/dia-list/2006-January/msg00005.html
475         for more information
476         * sheets/AADL.sheet.in : from the above patch but modified 
477         to become translatable like the other sheet files. That is: the
478         french translation got temporary removed cause it does not belong here.
480         * plug-ins/pgf/render_pgf.c : no C99/C++ comments please
482         * app/app_procs.c app/diaconv.c : get rid of run-on sentences
483         (Adam Weinberger, bug #325567)
484         
485         * app/menus.c : removed some keybindings with <control><shift>[0-9A-F]
486         and change some other to use <control><alt>. They collide with GTK's 
487         Unicode input feature. Fixes bug #320495. For rationale see: 
488         http://developer.gnome.org/projects/gup/hig/2.0/input-keyboard.html
489         
490         * app/display.c : pay attention to g_warnings() [should always run
491         with --g-fatalwarnings ;)]. Only create the menubar IM menu if there
492         actually is a menu bar.
493         
494         * lib/diarenderer.c : the righthand calculation accidentially broke
495         some arcs direction. Should be fixed again.
496         
497 2006-01-02  Hans Breuer  <hans@breuer.org>
499         * app/display.c(new_display) : also append the Input Methods menu to 
500         the diagram menubar. Fixes bug #308576.
502         * lib/widgets.c(dia_dynamic_menu_reset) : don't use an already
503         freed string to dia_dynamic_menu_select_entry(). Fixes bug #323592.
505         * lib/sheet.c(dia_sheet_sort_callback) : sort sheets according to 
506         their localized name (with g_utf8_collate). Thus not relying on the 
507         capabilities of the C libraries strcmp(). Fixes bug #160101.
509         * lib/diarenderer.c(draw_arc_with_arrows) : don't recalculate center
510         point and width from the (arrow-)corrected new points. Otherwise a 
511         whole new wrong arc may emerge. Fixes bug #312641.
512         
513 2006-01-01  Hans Breuer  <hans@breuer.org>
515         * objects/custom/custom_object.c(cutom_update_data) : depending 
516         on the handle moving let one scale (x or y) take precedence. 
517         (bug #308515, Eric Deplagne)
518         
519         * objects/UML/class.c : only perform the attributes check with
520         attributes visible to ged rid of false warnings
521         * objects/UML/class_dialog.c : need to setup Connection::object
522         after uml_attribute_new() and uml_operation_new(), again less
523         warnings but bug #314153 still not fixed.
525         * NEWS : updated
527         * plug-ins/python/diasvg.py : more correct svg by also writing 
528         xmlns="http://www.w3.org/200/svg"
530         * plug-ins/python/dot.py : skip unconnected connection lines
531         * plug-ins/python/Makefile.am : added dot.py
533         * plug-ins/python/pydiadoc.py plug-ins/python/codegen.py : fixed
534         typos in comments
536 2005-12-31  Hans Breuer  <hans@breuer.org>
538         * objects/UML/class.[hc] objects/UML/class_dialog.c : removed the 
539         caching of UMLClass::attributes_strings, operations_strings, 
540         templates_strings.
541         It was broken by the recent code restructuring in bug #303744 and
542         - if necessary at all - nowadays it should be done on the 
543         UMLAttribute, UMLOperation, UMLFormalParameter level anyway. 
544         A small, much needed simplification of the code.
546 2005-12-30  Hans Breuer  <hans@breuer.org>
548         * objects/UML/class.c : Patch from Dave Klotzbach
549         fixes crash bug #325151
551         * app/app_procs.c : add command line parameter --nonew to allow
552         avoiding the empty start-up diagram
553         Also give a hint on where the object-libs were missing.
554         Finally work around a misbehaviour upstreamm :
555         g_option_context_parse() returning FALSE but not setting error.
557         * app/commands.c app/app_diagram_tree.c app/interface.c :
558         Use gdk_pixbuf_render_pixmap_and_mask_for_colormap as suggested by
559         http://www.gtk.org/api/2.6/gdk/gdk-Pixbufs.html#gdk-pixbuf-render-pixmap-and-mask
560         
561         * lib/widgets.c : image file selection finally ported to the new
562         gtk file chooser. Fixes bug #309383
564 2005-12-28  Hans Breuer  <hans@breuer.org>
566         * app/commands.c(file_new_callback) : convert to filename encoding before
567         passing to new_diagram(), fixes bug #322400
568         
569         * app/interface.c(create_display_shell) : don't clip width on screen 
570         height - now commited. Also lazy creation of tooltips.
571         
572         * objects/UML/actor.c : Actor is finally resizable, fixes bug #66915
573         
574 2005-12-27  Hans Breuer  <hans@breuer.org>
576         * app/diapsft2renderer.c(draw_bezier_outline) : only call
577         FT_Outline_Decompose() when FT_GLYPH_FORMAT_OUTLINE.
578         Prefers no text output over crashing for bug #144212
580         * app/interface.c : removed superfluous call to dia_canvas_set_size().
581         Suggested by Roland Stigge, fixes bug #148149.
583         * plug-ins/dxf/dxf-import.c : don't complain too loud on Binary
584         DXF. It is not supported at all. Fixes bug #322101
586         * lib/geometry.c : removed the ifdefed GLIB_CHECK_VERSION(2,7,0)
587         define G_IMPLEMENT_INLINES. It breaks again with glib-2-8
590 2005-12-27  Hans Breuer  <hans@breuer.org>
592         * app/navigation.c : protect on_da_button_release_event() against being
593         called twice. Also only popdown the navigation window after the first 
594         draw (reusing nav->is_first_expose). Fixes bug #151696
595         
596         * app/interface.c(create_display_shell): don't clip width on screen height, 
597         but height
599         * lib/plug-ins.c : fixed typo in comment
600         
601         * lib/libdia.def : updated externals
602         * lib/makefile.msc : build debug.obj
604         * plug-ins/makefile.msc : building pgf in the right alphabetical order
605         * plug-ins/pgf/render_pgf.c : include <glib/gprintf.h>
606         
607 2005-12-08  Lars Clausen  <lars@raeder.dk>
609         * app/authors.h: 
610         * plug-ins/pgf/pgf.c: 
611         * plug-ins/pgf/render_pgf.[ch]: 
612         * plug-ins/pgf/Makefile.am: 
613         * plug-ins/Makefile.msc: 
614         * plug-ins/Makefile.am (SUBDIRS): 
615         * configure.in: Patch from Moritz Kirmse <momomaniac@gmail.com>: Add
616         support for PGF output for including in (La)TeX documents that
617         allows PDF generation.
619         * samples/render-test.dia: Added samples of text in different
620         sizes, standard fonts and styles with size markers.
622 2005-12-04  Lars Clausen  <lars@raeder.dk>
624         * lib/Makefile.am (gen_sources): Mark marshal files as generated.
625         (BUILT_SOURCES): Added marshal files.
627 2005-12-03  Lars Clausen  <lars@raeder.dk>
629         * lib/Makefile.am (diamarshal.c): Fix marshal rules to not talk
630         about $(srcdir) and confusing everybody.
632         * app/undo.c:
633         * lib/diagramdata.c:
634         * lib/diagramdata.h:
635         * lib/diamarshal.list:
636         * plug-ins/python/pydia-diagram.c:
637         * plug-ins/python/pydia-diagramdata.c:
638         * plug-ins/python/python-startup.py: Patch from David Johansson
639         <david.lgj@gmail.com>: Add signals emitted when objects are
640         inserted or removed.
642 2005-11-13  Lars Clausen  <lars@raeder.dk>
644         * app/display.c (update_zoom_status): Fix of bug #321387: Avoid
645         (small) buffer overflow by using g_strdup_printf instead of sprintf.
647 2005-11-09  Lars Clausen  <lars@raeder.dk>
649         * app/app_procs.c: 
650         * plug-ins/dxf/dxf-import.c (import_dxf): Don't use g_error except
651         when reaching the statement is a bug.  Using g_critical and exit() for
652         fatally wrong inputs.
654         * objects/UML/uml.c: 
655         * objects/UML/class.c: Patch from dklotzbach@foxvalley.net (dave
656         Klotzbach): Fixes template rendering and converts home-brew inline
657         doc format to javadoc.  Doesn't yet fix bug #320934, but turns it
658         into a dup.
660 2005-11-07  Lars Clausen  <lars@raeder.dk>
662         * lib/object.[ch]: Add 'enclosing box' as opposed to 'bounding
663         box' since several objects have problems of using bounding box in
664         different ways (see bug #300055).  For now, enclosing box ==
665         bounding box, but over time objects will learn to expand the
666         bounding box to include things only rendered interactively.
668         * app/modify_tool.c (modify_motion): Make sure highlight is reset
669         when moving between overlapping objects.
671         * app/interface.c (interface_toggle_mainpoint_magnetism): Redraw
672         diagram after toggling to make red X's come and go.
674         * lib/font.c: #ifdef'd out layout cache for bug #307320.  Define
675         it if you need faster rendering and aren't afraid of crashbugs:)
677         * lib/objchange.c: Bugfix from dklotzbach@foxvalley.net
678         (dave Klotzbach):  Fixes null pointer problems in free function.
680         * objects/UML/class.c
681         * objects/UML/class.h
682         * objects/UML/class_dialog.c: Patch from dklotzbach@foxvalley.net
683         (dave Klotzbach): Make UML comments conform to UML 1.0 standard
684         and allow multi-line comments. Ugly as hell, but standard.  Time
685         for a 'Strict UML' option?  Fixes bug #303744.
686         
687         * objects/UML/state.c: Patch from Peter Allin <peter@peca.dk>: Add
688         entry, exit and do descriptions to a state object.  Fixes bug #65434.
690 2005-11-03  Lars Clausen  <lars@raeder.dk>
692         * lib/arrows.c:
693         * lib/attributes.c:
694         * lib/autoroute.c:
695         * lib/bezier_conn.c:
696         * lib/boundingbox.c:
697         * lib/color.c:
698         * lib/connection.c:
699         * lib/connectionpoint.c:
700         * lib/dia_dirs.c:
701         * lib/dia_image.c:
702         * lib/dia_svg.c:
703         * lib/dia_xml.c:
704         * lib/diaarrowchooser.c:
705         * lib/diaerror.c:
706         * lib/diagdkrenderer.c:
707         * lib/diagramdata.c:
708         * lib/element.c:
709         * lib/object.c:
710         * lib/object.h:
711         * lib/parent.c:
712         Added documentation java-doc style.  Also a few trivial cleanups.
713         
714 2005-10-13  Lars Clausen  <lars@raeder.dk>
716         * lib/connectionpoint.h (DIR_ALL): Parentheses around operations
717         in macros.
719         * plug-ins/hpgl/hpgl.c (export_data): Correct error message.
721         * lib/Makefile.am:
722         * lib/debug.[ch]:
723         * lib/object.[ch]: 
724         * objects/UML/class.[ch]: 
725         * objects/UML/uml.h: 
726         * objects/UML/umlattribute.c: 
727         * objects/UML/umloperation.c: 
728         * objects/UML/class_dialog.c: 
729         Rework of the UML class attribute/operation handling.  Now doesn't
730         copy connection points into the dialog data, but only the "flat"
731         data.  As part of debugging made sanity check functionality.
732         Currently still dies when deleting an attribute/operation that has
733         a connection to it.
735 2005-10-09  Hans Breuer  <hans@breuer.org>
737         * lib/properties.h : prefer american spelling of colo(u)r for
738         user visible strings - i.e. to be translated ones.
739         * objects/UML/uml.c : it is Implementation. Together fixes bug #313929
740                                         ^
741         * po/*.po : updated (by 'make distcheck')
743 2005-10-09  Hans Breuer  <hans@breuer.org>
745         * app/display.c : allow !"toolbox on top" without restart.
746         (Chris Hellberg, bug #310702)
748 2005-10-09  Hans Breuer  <hans@breuer.org>
750         * lib/arrows.c : patch from Radek Krahl fixing the blanking
751         of two arrowheads, bug #310157
753 2005-10-08  Hans Breuer  <hans@breuer.org>
755         * plug-ins/python/group_props.py : show a descriptive text instead of an 
756         empty table if there are no common properties to change. Fixes bug #314432
758 2005-10-08  Hans Breuer  <hans@breuer.org>
760         * objects/UML/transition.c : inverted default direction of
761         the direction. Patch from Peter Allin, fixes bug #318049
762         [You possibly need to 'rm ~/.dia/defaults.dia' to have an effect]
764 2005-10-08  Hans Breuer  <hans@breuer.org>
766         * app/Makefile.am objects/standard/Makefile.am : match the
767         referenced icons to the needed. Make 'make distcheck' pass
768         and thus fixes bug #312152
770         * objects/standard/textobj.c : no C++ comments please!
772 2005-10-08  Hans Breuer  <hans@breuer.org>
774         * objects/standard/textobj.c : preserve the position set on create
775         [makes e.g. text positioning of diasvg_import.py work]
777         * plug-ins/python/diasvg_import.py : restrict what eval() can do
778         with strings from svg files. Fixes the arbitrary code execution from 
779         bug #317637
780         
781         * app/pixmaps/mainpoints-(on|off).png : new icons to toggle center point
782         magnetism. At least they are distinguishable from grid snapping.
783         * app/makefile.msc app/Makefile.am : use them
784         
785         * lib/focus.c(reset_foci) : also remove_focus(). This fixes bug #172851
786         I also can't reproduce bug #309044 anymore (on win32).
787         
788 2005-10-01  Lars Clausen  <lars@raeder.dk>
790         * lib/connectionpoint.h (DIR_ALL): Parentheses around | expressions.
792         * plug-ins/hpgl/hpgl.c (export_data): Listen to warnings and don't
793         pass FILE * as gchar *.
795         * lib/debug.[ch] (dia_assert_true): Debugging aids.
797 2005-09-29  Lars Clausen  <lars@raeder.dk>
799         * objects/UML/class.h: Enabling mainpoints for UML.
801         * objects/UML/class.c (umlclass_set_props): Make sure to always
802         realloc connection point list.
804 2005-09-26  Ahmad Riza H Nst  <rizahnst@id.gnome.org>
806         * configure.in: Added "id" in ALL_LINGUAS line.
808 2005-09-14  Lars Clausen  <lars@raeder.dk>
810         * objects/UML/class.c (umlclass_load): Set mainpoint obj upon
811         loading.  Fixes bug #315427.
813 2005-09-11  Hans Breuer  <hans@breuer.org>
815         * objects/standard/arc.c objects/standard/textobj.c : fix
816         C99isms, Dia is supposed to compile with C89 like msvc
818         * app/makefile.msc : use the wrong center-point-magnetism
819         icons for the win32 build, too.
821         * plug-ins/python/pydia-error.c : dont crash on C escape
822         sequences in the error string
823         * plug-ins/python/pydia-render.c : dont free filename twice
825         * plug-ins/python/dot.py : start of an exporter to DOT language
826         which can be processed by www.graphviz.org tools
828 2005-09-05  Iñaki Larrañaga  <dooteo@euskalgnu.org>
830         * configure.in: Added "doc/eu/Makefile" for Basque documentation.
832 2005-09-04  Iñaki Larrañaga  <dooteo@euskalgnu.org>
834         * configure.in: Added "eu" to ALL_LINGUAS.
836 2005-09-04  Lars Clausen  <lars@raeder.dk>
838         * lib/element.h (ELEMENT_COMMON_PROPERTIES): Remove object
839         dimensions frame to make ext_attributes work again.
841         * app/grid.c (snap_to_grid): Bugfix from Zhang Lin-bo
842         <zlb@lsec.cc.ac.cn>: Use dynamic grid setting from diagram, not
843         global prefs.
845         * objects/standard/textobj.c: Applied patch from Grégoire Dooms
846         <dooms info ucl ac be>: Add vertical alignment for standard text
847         object.  This should really be moved into lib/text.c and apply to
848         all text objects.
850 2005-09-03  Lars Clausen  <lars@raeder.dk>
852         * app/connectionpoint_ops.c (connectionpoint_draw): Only draw
853         mainpoint when snap-to-objects is not on.
855         * app/Makefile.am (ICON_PNG_PAIRS): 
856         Fake icons for snap-to-objects.
858         * app/commands.[ch]: 
859         * app/menus.c (menus_get_image_menubar): 
860         * app/display.[ch]: 
861         * app/interface.c (create_display_shell): 
862         * app/create_object.c (create_object_button_release): 
863         * app/disp_callbacks.c (ddisplay_drop_object): 
864         * app/object_ops.[ch]: 
865         * app/connectionpoint_ops.c (ddisplay_connect_selected): 
866         * app/modify_tool.c (modify_button_release): 
867         * app/display.[ch]: 
868         Togglable snap-to-objects, also doesn't snap when moving entire
869         object.  This should be more reasonable in practical use, and can
870         be turned off when you want to place your arrows more precisely.
872 2005-08-06  Hans Breuer  <hans@breuer.org>
874         * plug-ins/cairo/diacairo.c : increased #ifdef MESS:
875         With Gtk+-2.7.x cairo must be available so the HAVE_CAIRO case
876         becomes even more ugly when the user has choosen *not* to build 
877         the diacairo plug-in. If noone can come up with a very convincing 
878         reason why it has to be done this way I'll probably go back to 
879         my original dont-build-at-all approach when this breaks the 
880         next time.
882 2005-08-02  Lars Clausen  <lars@raeder.dk>
884         * objects/standard/arc.c: Patch from Grégoire Dooms
885         <dooms@info.ucl.ac.be>: An almost perfect arc autogap
886         implementation.  "There is still a small bug when the non
887         connected end of the arc is very close to the border of the
888         connected object. I think this is due to rounding errors in the
889         code for SHIFT-move handle which is reused to trim the arc in
890         autogap. Also it is not yet possible to have a startgap and an
891         endgap from/to the same central CP."
893 2005-07-31  Hans Breuer  <hans@breuer.org>
895         * plug-ins/cairo/diacairo.c congigure.in : dont wait any 
896         longer for distributions official packages - depend 
897         on cairo 0.6.0 - fixes bug #307144
899 2005-07-20  Hans Breuer  <hans@breuer.org>
901         * lib/element.h : remove stray NULL in ELEMENT_COMMON_PROPERTIES
902         which must match PropDescription, that is make it at least compile.
904 2005-07-19  Hans Breuer  <hans@breuer.org>
906         * app/diagram.c(new_diagram) : what comes from g_object_new()
907         MUST NOT be g_free()'d 
909         * lib/message.h : added dia_message_filename() here as well.
910         Mainly to not touch all files using. They *all* where using
911         lib/message.h already! Maybe the implemantation should be moved
912         to message.c as well cause the function has *nothing* to do
913         with dynamic filename resolving. It is a wrapper around
914         g_display_filename() mostly (only?) used for messages ...
915         * lib/dia_dirs.c(dia_message_filename) : fix C99ism
917 2005-07-18  Lars Clausen  <larsrc@raeder.dk>
919         * objects/EML/instantiation.c (instantiation_load): 
920         * objects/EML/interaction-ortho.c (interaction_ortho_type) 
921         * objects/ER/participation.c (participation_type): 
922         * objects/FS/flow-ortho.c (orthflow_type): 
923         * objects/GRAFCET/vector.c (arc_load): 
924         * objects/standard/zigzagline.c (zigzagline_type): 
925         * objects/UML/transition.c (transition_load): 
926         * objects/UML/realizes.c (realizes_load): 
927         * objects/UML/dependency.c (dependency_load): 
928         * objects/UML/generalization.c (generalization_type): 
929         * objects/UML/association.c (association_type): 
930         * objects/UML/component_feature.c (compfeat_load): 
931         Make autorouting deafult on except for old diagrams.
933         * plug-ins/cairo/diacairo.c (export_data): 
934         * plug-ins/cgm/cgm.c (export_cgm): 
935         * plug-ins/dxf/dxf-export.c (export_dxf): 
936         * plug-ins/dxf/dxf-import.c: 
937         * plug-ins/hpgl/hpgl.c (export_data): 
938         * plug-ins/metapost/render_metapost.c: 
939         * plug-ins/pixbuf/pixbuf.c: 
940         * plug-ins/pstricks/render_pstricks.c: 
941         * plug-ins/python/pydia-render.c: 
942         * plug-ins/shape/shape-export.c: 
943         * plug-ins/svg/render_svg.c: 
944         * plug-ins/svg/svg-import.c: 
945         * plug-ins/wpg/wpg.c 
946         * plug-ins/xfig/xfig-export.c: 
947         * plug-ins/xfig/xfig-import.c: 
948         * plug-ins/xslt/xslt.c: Use dia_message_filename to ensure legal
949         UTF-8 in message boxes.
951 2005-07-18  Lars Clausen  <lars@raeder.dk>
953         * lib/element.h (ELEMENT_COMMON_PROPERTIES): Allow Element objects
954         to have their dimensions specified in properties.  Still needs to
955         have proper update when setting properties cause constraint changes.
957         * app/preferences.c (update_floating_toolbox): Allow
958         toolbox_on_top setting to happen at once.
960         * app/diagram.c
961         * app/filedlg.c
962         * app/load_save.c
963         * app/render_eps.c
964         * app/sheets_dialog_callbacks.c
965         * lib/dia_dirs.c
966         * lib/dia_dirs.h
967         * lib/dia_xml.c
968         * lib/diarenderer.c
969         * lib/element.h
970         * lib/object_defaults.c:
971         Patch from lav@altlinux.ru (Vitaly Lipatov): Make filenames safe
972         for displaying in messages - better than crashing!  Mostly fixes
973         #310087.
974         
975         * objects/UML/class.c:  Save normal_font_height under the same
976         name it gets loaded as.  Fixes bug #310515.
978         * doc/en/authors.xml
979         * doc/en/usage-customization.xml
980         * doc/en/usage-objects-special.xml
981         * doc/en/usage-objects.xml: Some documentation fixes.  Fixes bug
982         #308315.
984 2005-07-17  Lars Clausen  <lars@raeder.dk>
986         * doc/en/usage-customization.xml: 
987         * doc/en/usage-objects.xml: 
988         * doc/en/authors.xml: 
989         * doc/en/usage-objects-special.xml: Applied patch from
990         stigge@antcom.de (Roland Stigge):  Diverse typos and
991         misencodings.  Fixes bug #308315.
993         * objects/UML/class.c (umlclass_save): Patch from
994         i.pilcher@comcast.net: Save normal font height under correct name
995         to reload it.  Fixes bug #310515.
997 2005-07-10  Hans Breuer  <hans@breuer.org>
999         * app/connectionpoint_ops.c app/object_ops.c : make the
1000         'whole object' connection point only center point again. 
1001         That is: it is visible and far less magnetic. Only the
1002         line gap handling make it special. For me this probably
1003         fixes bug #303301
1005         * lib/neworth_conn.c : apply the same as for bug #173031.
1006         This OrthConn fork got broken as well. Fixes bug #309381
1008         * app/makefile.msc objects/makefile.msc : adapt to icon changes
1010         * app/interface.c app/diagram_tree.c : a char** is still not 
1011         a char* and the win32 build is configured to error on 
1012         sloppiness like this
1014         * plug-ins/wmf/wmf.cpp : fix typo in preprocessor condition
1016 2005-07-10  Hans Breuer  <hans@breuer.org>
1018         [
1019           Take part in the toolbox icon redesign context! If you want to 
1020           make them really prettier, please keep the following in mind :
1021           - the size *must* be 22x22 otherwise button reflow will get broken.
1022             Or you need to change about 800 icons at once.
1023           - one important part of Dia are control points, so maybe the icons
1024             should reflect that. (IMO gathering random icons form other 
1025             apps wont work)
1026           - the icons should at least look consistent in their group
1027         ]
1029         * app/Makefile.am : use 22x22 variants mostly lent from The GIMP
1030         * app/pixmaps/*.png : added arrow-22.png scroll-22.png zoom-22.png
1032         * objects/standard/*.c : get rid of xpm includes to avoid mixing icon sets
1033         * objects/standard/pixmap/* : added arc.png beziergon.png 
1034         bezierline.png box.png ellipse.png image.png line.png polygon.png 
1035         polyline.png text.png zigzagline.png
1036         * objects/standard/Makefile.am : use the new icon set including
1037         text and arc ...
1039         * app/interface.c : remove the "will probably crash" debug spew
1041 2005-07-09  Lars Clausen  <lars@raeder.dk>
1043         * objects/standard/pixmaps/*.png:
1044         * objects/standard/Makefile.am:
1045         * objects/standard/*.c:
1046         * app/interface.c: 
1047         * app/diagram_tree.c (create_object_pixmap): Fix icon loading. use
1048         new icons. [Slightly belated entry]
1050 2005-07-03  Hans Breuer  <hans@breuer.org>
1052         * app/diagram_tree.c : dont leak display name
1053         * app/app_procs.c : dont leak GOptionContext
1054         * app/prop_widgets.c(frame_beginprop_get_widget) : 
1055         Gtk api still not eating strings ...
1057         * objects/UML/class.c() : don't load properties once more 
1058         which are already loaded by StdProps. In case of strings 
1059         (data_string) it has even produced leaks.
1061         * app/paginate_psprint.c app/diagram.[hc] : the last
1062         of the related dialogs is gone and with it the 
1063         misconception of destroying widgets from 
1064         diagram::finalize()
1065         * app/display.c : ensure the diagram is still threre
1066         when we remove the display from it's list
1068 2005-07-01  Hans Breuer  <hans@breuer.org>
1070         * lib/widgets.c(dia_color_selector_more_callback): dont 
1071         free old_color twice
1073         * plug-ins/wmf/wmf.cpp : finally added enahnced meta file
1074         option. Thus linestyles can be preserved on export - at 
1075         least on NT based systems.
1077         * NEWS : clarify the wmf outside of windows issue
1079         * app/modify_too.c : fix C99ism
1081         * objects/standard/arc.c : debug spew optional at compile time
1083 2005-06-26  Hans Breuer  <hans@breuer.org>
1085         [ Cyrille would call it: warningectomy :-]
1087         * lib/font.c app/create_object.c : `...' might be used uninitialized
1088         in this function. Yes they were.
1089         * app/modify_tool.c : modify_tool.c:610: warning: `obj' might be used 
1090         uninitialized in this function. Yes it was with textedit_activate_object()
1091         Also some static correctness.
1092         * lib/diarenderer.c:678: warning: no previous prototype for 
1093         `calculate_min_radius'. Made static.
1094         * lib/dia_svg.c : ptr is a gchar *
1095         * dia_xml.c(data_point,data_rectangle) : gchar *str for parsing
1096         * lib/prop_text.c(multistringprop_get_widget) : use G_CALLBACK
1097         * app/app_procs.c : confirm warning and make dump_dependencies() static
1098         * app/autosave.c : #if 0'd old stuff
1099         * app/display.c : GTK_CHECK_MENU_ITEM() for snap_to_grid
1100         * 
1101         * lib/text.c lib/font.c objects/standard/line.c object/UML/class.c
1102           objects/Istar/goal.c objects/standard/bezier.c objects/standard/beziergon.c
1103           plug-ins/cgm/cgm.c plug-ins/cairo/diacairo.c plug-ins/hpgl/hpgl.c
1104           plug-ins/wpg/wpg.c plug-ins/svg/svg-import.c plug-ins/shape/shape-export.c
1105           plug-ins/dxf/dxf-export.c plug-ins/gprint/diagnomeprintrenderer.c
1106           plug-ins/gprint/diagnomeprint.c  plug-ins/xfig/xfig-export.c
1107           app/diagram_tree_menu_callbacks.c app/recent_files.c app/undo.c app/menus.c
1108           app/diapsrenderer.c app/diagram.c app/disp_callback.c : 
1109         removed unused variables and functions
1110         * objects/UML/umlattribute.c objects/UML/umloperation.c 
1111           objects/UML/umlparameter.c objects/UML/umlformalparameter.c : 
1112         neither 'missing braces around initializer' nor 'initialization from 
1113         incompatible pointer type'
1114         * objects/UML/class_dialog.c : more static
1115         * app/interface.c : static and almost const correctness and some
1116         less unitialized variables.
1117         * app/diapsft2renderer.c : use (int) casts like the original 
1118         (http://imagic.weizmann.ac.il/~dov/freesw/paps/ v0.4) does
1119         * app/render_gdk.c: stop assignment from incompatible pointer type,
1120         make member functions match the prototype.
1121         * app/render_libart.c : Dito. Also stop caching the copy_gc in
1122         a static variable. Otherwise it finally leaks and also may cause 
1123         BadMatch with changing windows
1124         => warning count down from about 250 to about 60, one or two hand full 
1125            crash bugs less.
1127 2005-06-26  Hans Breuer  <hans@breuer.org>
1129         * lib/libdia.def : added dia_font_get_description, missing
1130         from my last commit
1132         * app/app_procs.c : use png_get_header_ver(NULL), that is:
1133         prefer function call over exported variable to get the 
1134         runtime version of libpng
1136 2005-06-19  Hans Breuer  <hans@breuer.org>
1138         * plug-ins/python/Makefile.am : added codegen.py to EXTRA_DIST
1139         as suggested by Roland Stigge, bug #308310
1141 2005-06-19  Hans Breuer  <hans@breuer.org>
1143         * app/filedlg.c(file_export_callback) : oops, gtk_widget_show() wasn't 
1144         called anymore
1146 2005-06-18  Hans Breuer  <hans@breuer.org>
1148         * NEWS : mention new file dialog
1150         [plugged remaining leaks from bug #142669]
1151         * lib/prop_attr.c(fontprop_free) : not only unref the font
1152         but free the property itself, too. 
1153         * app/diagram_tree.c(create_diagram_children): remember the
1154         original list start to not only free the last element 
1156         * lib/prop_sdarray.c:64: warning: `arrayprop_free' defined 
1157         but not used. Here it meant a potentially huge leak.
1159 2005-06-18  Hans Breuer  <hans@breuer.org>
1161         * po/POTFILES.in : removed app/diaconv.c which isn't referenced 
1162         by app/Makefile.am anymore either. Should finally fix 'make distcheck' 
1163         for others, too. ( Roland Stigge, bug #144527 )
1165 2005-06-18  Hans Breuer  <hans@breuer.org>
1167         * plug-ins/wmf/Makefile.am : prevent installation. It 
1168         doesn't do anything useful on *NIX and even seems to be
1169         linked wrong by gcc (or me;). Fixes bug #172830 
1171 2005-06-18  Hans Breuer  <hans@breuer.org>
1173         * app/textedit.[hc] lib/arrows.[hc] plug-ins/xslt/xslt.h
1174           plug-ins/xslt/xsltdialog.c plug-ins/xslt/xslt.c : fix for sloppiness
1175         in function declarations. 'f();' for a function without parameters is
1176         a C++ism. Though I can't get any of my compilers to warn about it.
1177         Finally fixes bug #142663.
1179 2005-06-18  Hans Breuer  <hans@breuer.org>
1181         * app/textedit.[hc] lib/arrows.[hc] plug-ins/xslt/xslt.h
1182           plug-ins/xslt/xsltdialog.c plug-ins/xslt/xslt.c : fix for sloppiness
1183         in function declarations. 'f();' for a function without parameters is
1184         a C++ism. Though I can't get any of my compilers to warn about it.
1185         Finally fixes the rest of bug #142663.
1187 2005-06-18  Hans Breuer  <hans@breuer.org>
1189         * lib/font.h lib/font.c : _DiaFont is now private to prepare bigger 
1190         changes but doesn't hurt anyway. See bug #162034 
1191         * app/diapsft2renderer.c app/modify_tool.c 
1192           plug-ins/gprint/diagnomeprintrenderer.c : use dia_font_get_description() 
1193         instead of messing with internals
1194         * app/display.c : give interactive renderers more begin/end render. 
1195         It is guaranteed that the scale wont change between these.
1197 2005-06-18  Hans Breuer  <hans@breuer.org>
1199         * app/app_procs.c : const correctness for stderr_message_internal
1200         * app/dia-props.c : gtk_toggle_*() functions want GTK_TOGGLE_BUTTON 
1201         not GTK_CHECK_BUTTON, also some G_CALLBACK casts
1202         * app/disp_callbacks.c : don't dereference the to the function call
1203         when the function pointer in meant to be checked against 0
1204         * app/interface.c : warning fixes by using correct types
1205         * app/modify_tool.c : describe_props() members returns const pointer
1206         * app/render_libart.c : removed most of the render function again.
1207         They happily live in lib/dialibartrenderer.c since almost 3 years
1208         http://cvs.gnome.org/viewcvs/dia/app/render_libart.c?r1=1.31&r2=1.32
1209         * lib/dia_dirs.c : dia_get_canonical_path() const correctness
1210         * lib/dia_svg.c lib/dia_xml.c : some char to xmlChar changes
1211         * lib/dialibartrenderer.c(set_line_join): actually set the join_style
1212         instead of the cap_style. Don't initialize Art* enums with GDK_* constants.
1213         Both mentioned in bug #159814 and not warned by most other compilers.
1214         * lib/diagtkfontsel.c : at least the watcom compiler did not like the
1215         trailing colon in the GtkTypeInfo initialization
1216         * lib/properties.c : avoid redefinition of LIBDIA_COMPILATION
1217         * lib/dialinechooser.c lib/diagdkrenderer.c : there may be a difference 
1218         between char and gint8
1219         * plug-ins/metapost/render_metapost.c : replace invalid escape \% with %%
1220         * plug-ins/wpg/wpg.c : consitently use guint8
1221         * config.h.win32 : change HAVE_* defines to 1 not empty, avoids 
1222         redefinition warnings for python and xslt plug-ins
1224 2005-06-18  Hans Breuer  <hans@breuer.org>
1226         * lib/diagramdata.c : really get rid of diagram_data_destroy 
1227         and new_diagram_data [ no previous prototype for `...' is either
1228         a sign of missing static or of a function to vanish :-]
1230         * lib/geometry.c : apparently the G_INLINE stuff was working only
1231         with particular GLib version(s), glib-2.6.4 does not. Conditionally
1232         reverting to the old mecanics.
1234 2005-06-17  Hans Breuer  <hans@breuer.org>
1236         * plug-ins/python/pydia-*.c : include order tweaking to 
1237         get rid of redefinition warnings. Ensure to include <Python.h> 
1238         before any 'system' header, some dragged in by glib.h
1239         * plug-ins/python/pydia-diagramdata.c(PyDiaDiagramData_Str)
1240           pydia-properties.c(PyDiaProperties_Str)
1241           plug-ins/python/pydia-property.c(PyDiaProperty_Str) : 
1242         use %p to format pointers
1243         * plug-ins/python/pydia-geometry.c(PyDiaArrow_Str) : 
1244         dont cast to float for %d
1245         * plug-ins/python/pydia-handle.c(PyDiaHandle_Connect) : 
1246         use correct pointer type
1247         * plug-ins/python/pydia-image.c(PyDiaImage_Str) :
1248         dont discard qualifier aka dont free const strings
1249         * plug-ins/python/pydia-properties.c : casts to PyCFunction
1250         * plug-ins/python/pydia-property.c : removed unused function,
1251         make ensure_quarks() static
1252         * plug-ins/python/pydia-render.c : removed unused vars, use
1253         the correct signature for begin_render
1254         (dia_py_renderer_finalize): pluged a leak
1255         => except -fno-strict-aliasing there is no warning left in 
1256            all of PyDia
1258 2005-06-12  Hans Breuer  <hans@breuer.org>
1260         * app/filedlg.c : really fix the file extension mismatch on export dialog
1261         by working around some gtk+-2.6 behaviour (bug #307378). Fixes bug #305850
1263 2005-06-11  Hans Breuer  <hans@breuer.org>
1265         * configure.in config.h.win32.h : mark as +cvs (should have been 
1266         done directly after the 0.94 release)
1267         * NEWS : attempt to summarize 2/3 year of development
1269         [ 
1270           WANT_AUTOMAKE=1.7 ./autogen.sh && ./conifugre  --enable-maintatiner-mode && make distcheck
1271           finally passes again
1272         ]
1273         * app/app_procs.c : force use of POPT for the GNOME case, otherwise
1274         app/run_dia.sh --credits > THANKS => Segmentation fault
1275         * app/pixmaps/Makefile.am : added group.png and ungroup.png
1276         * Makefile.am : work around scrollkeeper bug
1277         * doc/en/Makefile.am : explicit list DISTCLEANFILES = dia.1
1279         * po/*.po : 'noise' produced by make dist
1281 2005-06-10  Hans Breuer  <hans@breuer.org>
1283         * lib/properties.h : define PROP_STD_SHOW_BACKGROUND_OPTIONAL ...
1284         * objects/custom/custom_object.c : ... and use it to avoid 
1285         complains about missing attribute "show_background". It is 
1286         safe to leave this uninitialized. Same for flip_* and "text",
1287         the latter with comment cause it usually is *not* safe to do 
1288         it for the general case. Fixes remaining issues with bug #169006
1289         which where caused by an incompatible change in the shape file.
1291         * app/commands.c : use "gnome-open" instead of "netscape" as
1292         fallback for $BROWSER not set. Still not optimal but better
1293         to try some common desktop tool than an obsolete browser;)
1294         Fixes bug #307142. Also some whitespace changes.
1296         * app/interface.c(toolbox_delete): avoid random return value.
1297         Patch from Stanislav Brabec, fixes bug #307143
1299         * shapes/Cisco/Makefile.am : added a bunch of new shapes/pngs.
1300         Patch from Torben H. Nielsen (bugzilla is still the preferred way)
1301         http://mail.gnome.org/archives/dia-list/2005-June/msg00015.html
1303 2005-06-06  Lars Clausen  <lars@raeder.dk>
1305         * app/diagram.c: 
1306         * app/modify_tool.c:
1307         * app/textedit.[ch]:
1308         Better support for text edit highlight.
1310         * app/connectionpoint_ops.c (connectionpoint_draw): Stop making
1311         the mainpoint extra visible.
1313 2005-06-02  Lars Clausen  <lars@raeder.dk>
1315         * objects/UML/class_dialog.c:
1316         * objects/UML/class.[ch]:
1317         The final fixes for mainpoint on UML Class.
1319         * sheets/cisco*.in, shapes/Cisco/*: New set of Cisco icons from
1320         Ian Redfern, now in color and with mainpoints!  Very pretty!
1322 2005-06-02  Hans Breuer  <hans@breuer.org>
1324         * objects/UML/class_dialog.c : the memory managment with respect to
1325         attribute/operation connections was/is a mess. But it should work again ;)
1327         * samples/UMLPackages.dia samples/Composite-Action.dia : some diagrams
1328         directly from the UML Specification - to show the power of Dia and 
1329         some weakness. Watch the bug reports following ;)
1331 2005-06-01  Hans Breuer  <hans@breuer.org>
1333         * app/dia.def : export diagram_update_connections_object
1334         * plug-ins/python/pydia-diagram.c : wrap diagram_update_connections_object
1335         Patch from Paolo Bernardi, together with the property setting closes bug #300572
1337 2005-06-01  Hans Breuer  <hans@breuer.org>
1339         * plug-ins/python/pydia-property.c : complete refactoring of property 
1340         setting, now also supports setting of property arrays
1341         * plug-ins/python/pydia-*.c plug-ins/python/diamodule.c : adapt to 
1342         Python namespacing conventions
1343         * plug-ins/python/pydiadoc.py : use the stuff above to produce more 
1344         complete UML Classes with attributes and operations
1345         * plug-ins/python/otypes.py : now also show the properties of the objects
1347         * objects/UML/class.c(umlclass_set_props) : need to update object::connections
1348         (pointers), they might be changed with attributes and opertions changing
1350         * plug-ins/python/pydia-property.c : PointArray and BezPointArray property getters
1351         were broken. Apparently noone used them before.
1353         * plug-ins/python/pydia-diagram.c plug-ins/python/pydia-diagramdata.c : moved methods
1354         which only operate on the DiagramData to the latter file. To get on the DiagramData
1355         object of a Diagram use diagram.data. [In C the Diagram is a subclass of DiagramData, 
1356         but I don't know how to reflect that in the bindings. And for backward compatibility 
1357         there also is the 'data' member.]
1359         * objects/UML/uml.c objects/UML/umlattribute.c objects/UML/umloperation.c 
1360           objects/UML/umlparameter.c : describe enums with PropEnumData
1362         * app/commands.c(view_show_all_callback) : if there is something selected show 
1363         that instead of all exisiting objects. If there is noting or all selcted it 
1364         "Show all" shows the old behaviour.
1366         * lib/parent.[hc] lib/object.c app/disp_callbacks.c app/diagram.c : plug some memory 
1367         leaks and use less allocations caused by misguided API. Also some adaption to common 
1368         coding style
1370         * objects/UML/class.h : add some comment about the brokeness of UML_MAINPOINT
1372         * app/makefile.msc : added new icons and build as console app while 
1373         not releaseing to the general public
1375         * objects/custom/shape_info.c : use g_strdup("") for a field to be g_free()'d
1376         and keep a refernce when storing the a font from style="" in s.font. This should
1377         finally allow to have shapes with fully predefined text (and no 'random' crashes)
1379         * plug-ins/gprint/diagnomeprint.c : disable GNOME_SVG until I've found a program
1380         capable to interpret it's output
1382 2005-05-31  Lars Clausen  <lars@raeder.dk>
1384         * sheets/ER.sheet.in: No more xpms referenced in sheets. Fixes bug #151811.
1386 2005-05-30  Pawan Chitrakar  <pawan@nplinux.org>
1388         * configure.in: Added ne in ALL_LINGUAS
1390 2005-05-24  Lars Clausen  <lars@raeder.dk>
1392         * lib/font.c: Change to make DIA_FONT_ITALIC turn into -Oblique PS
1393         fonts for legacy fonts.  They don't have DIA_FONT_OBLIQUE setting
1394         anyway. 
1396 2005-05-23  Lars Clausen  <lars@raeder.dk>
1398         * lib/paper.c: Added Ledger size paper.  Fixes bug #305254.
1400 2005-05-21  Lars Clausen  <lars@raeder.dk>
1402         * lib/diaarrowchooser.c: 
1403         * lib/arrows.[ch]: Patch from Radek Krahl <ptasz3k@o2.pl>: Add
1404         'infinite' line (three dots) arrowhead.  Fix line length in arrow
1405         preview.  And fix typo.  Fixes bug #303904. 
1407 2005-05-20  Hans Breuer  <hans@breuer.org>
1409         * lib/text.c : advice from valgrind and data_string() review:
1410         neither g_free() memory on the stack
1411         * objects/GRAFCET/boolequation.c : ... nor const strings 
1412         * objects/UML/association.c:934 : definitely lost. Even g_strdup("")
1413         wants to be freed
1415         * app/diagram.c : a g_object_ref() following g_object_new() is almost
1416         always wrong. Why would we need two refernces?
1417         * app/app_procs.c : same here.If it crashes later on someone is dropping
1418         refernces he does not own, and *that* needs to be fixed. This is reverting
1419         "Remember to ref g_object_new'd object" (bug #170972) below, which 
1420         causes more harm (leaking, hiding bugs elsewhere) than good.
1422         * app/app_procs.c lib/diagramdata.[ch] lib/libdia.def : get rid of
1423         diagramdata_destroy() which was only a wrapper to g_object_unref()
1425         * app/display.c(selection_changed) : don't g_strdup_printf() without
1426         g_free() later /or/ a C++ comment of me mostly denotes an error
1428         * app/diagram.c : diagram_parent_sort_cb make signature match GCompareFunc
1430         * lib/widget.c : dia_dynamic_menu_select_entry() cleanup. If it takes a
1431         const gchar* entry it must not eat memory, added a lot of g_free() and
1432         some const. Fixed a bunch - i.e. *all* - warnings.
1433         * lib/widget.h : removed unused/deleted functions
1435         * app/layer_dialog.c(dia_layer_widget_connectable_toggled) : trying to
1436         avoid 'Invalid write of size 4', no luck yet
1438 2005-05-19  Lars Clausen  <lars@raeder.dk>
1440         * objects/UML/class.c: 
1441         * objects/UML/class.h: 
1442         * objects/UML/class_dialog.c: Work on getting a proper mainpoint
1443         for uml class object.  #ifdef'd out right now.
1445 2005-05-18  Lars Clausen  <lars@raeder.dk>
1447         * objects/standard/line.c: Make line adjust its actual endpoints
1448         for autogap -- looks and feels better.
1450         * objects/standard/arc.c: 
1451         * lib/geometry.h: 
1452         * app/modify_tool.c: Patch from Grégoire Dooms
1453         <dooms@info.ucl.ac.be>:  First stab at autogap for arcs, and
1454         shifted arc angle movement.
1456 2005-05-16  Hans Breuer  <hans@breuer.org>
1458         * lib/widget.c : variable declarations need to be at the start of a block,
1459         at least as we are not using C++ or C99
1461         * plug-ins/python/pydia-property.c : implment the read part for Property
1462         arrays - aka. umlclass.properties["operations"], umlclass.properties["attributes"]
1463         They are working quite well as can be seen with export-object.py
1465         * plug-ins/python/codegen.py : prove it once more with the generation of C++
1466         or Python code from an UML Diagram. Simply save as .py or .cxx ...
1467         * plug-ins/python/Makefile.am : install it
1469 2005-05-16  Lars Clausen  <lars@raeder.dk>
1471         * app/pixmaps/{un}group.png: 
1472         * app/Makefile.am (ICON_PNG_PAIRS): 
1473         * app/menus.c (display_menu_items): 
1474         New icons for grou/ungroup finally added, closing bug #105519.
1476         * app/Makefile.am: Dependencies for pixmaps.
1478         * app/pixmaps/connectable.png: An icon that actually makes sense
1479         for switching connectability.
1481 2005-05-15  Hans Breuer  <hans@breuer.org>
1483         * lib/group.c object/UML/classicon.c : fixed leftovers of
1484         'Adding connectionpoint to _move_handle
1486         * lib/widgets.c : gtk+ *NEVER* eats strings, so gtk_something(widget, g_strdup())
1487         is *ALWAYS* a memory leak. Plug some more.
1489         [
1490          In preparation to make UML operations/attributes/parameters setable by Python
1491          UML class became more StdProp conformant. A nice experience to be the first 
1492          to use the PROP_TYPE_DARRAY stuff about four years after it was written ;-)  
1493         ]
1494         * objects/UML/umlattribute.c objects/UML/umloperation.c 
1495           objects/UML/umlparameter.c objects/UML/umlformalparameter.c : (new files) 
1496         split from objects/UML/uml.c and made StdProp aware
1497         * objects/UML/class.c : finally make "attributes", "operations", "templates"
1498         <template parameters> first class StdProps citizens.
1499         (umlclass_load) : removed hand-written parsing for the above, it is all done
1500         by object_load_props() now. The old write code is still in place, so be very
1501         careful when changing something - at the moment load/save it is 100% compatible 
1502         as it needs to be.
1503         * objects/UML/uml.c : now just type registration here, as it is supposed to be
1504         * objects/UML/Makefile.am objects/makefile.msc : build the new files
1506         * lib/properties.h(PropDescCommonAreaExtra) : need a place to store the 
1507         in-record offsets
1508         * lib/prop_sdarray.c : made the DARRAY case work, SARRAY still untested
1509         (darray_prop_adjust_object_records) : don't loop forever
1510         (whole file) : use the new (working) way to get on the second level offsets.
1511         Also resolved some abbreviations, it is complicated enough without them ;)
1512         * lib/proplist.c : even complete list contents may be optional
1514 2005-05-15  Hans Breuer  <hans@breuer.org>
1516         * lib/bezier_conn.c(remove_handles) : don't try to remove 
1517         non-exisitng handles (patch from Radek Krahl, bug #302273)
1519 2005-05-15  Hans Breuer  <hans@breuer.org>
1521         * plug-ins/metapost/render_metapost.c : locale independent output
1522         (Radek Krahl, bug #301866)
1524 2005-05-12  Lars Clausen  <lars@raeder.dk>
1526         * shapes/Cisco/*.{shape,png}:
1527         * sheets/cisco*.sheet.in:
1528         Updated with color icons from Ian Redfern, closing bug #303889.
1529         Added automatic midpoints, not attempt at adjusting them.
1531 2005-05-11  Lars Clausen  <lars@raeder.dk>
1533         * many shapes:  Use mid of bounding box for midpoint, better than
1534         mid of connection points generally.
1536 2005-05-10  Lars Clausen  <lars@raeder.dk>
1538         * lib/widgets.c: Decided on one way for the ratio thing in arrow
1539         size selector:  Fixed ratio is on by default and keeps the sizes
1540         at the given ratio, but doesn't clamp them to be the same.  Fixes
1541         bug #302861.
1543         * lib/font.c: Fix for bug #303695: Allow more than one entry of
1544         each legacy name, thereby correctly encoding bold and italic of
1545         the three main fonts.  Also use | rather than || to combine slant
1546         and weight, so matching works.  Had to remove binary search for
1547         new font name, but the list is short enough it's not a problem.
1549 2005-05-09  Lars Clausen  <lars@raeder.dk>
1551         * lib/autoroute.c (autoroute_layout_orthconn): Remove debugging info.
1553 2005-05-08  Hans Breuer  <hans@breuer.org>
1555         * objects/UML/class.c : Reverted to have no center point.
1556         At first it looked as if there was only the bug to not increase
1557         class.h:UMLCLASS_CONNECTIONPOINTS. But the UMLClass has 
1558         potentially much more dynamic connection points (to the left
1559         and right of every attribute/operation). Now simply adding one
1560         between see static and dynamic will screw up any existing diagram
1561         which makes use of the dynamic connection points. The would all
1562         be connected with an off-by-one error. I have no idea how to
1563         code around that. But breaking backward compatibility is no 
1564         option here. Does not completely fix bug #303301 ...
1565         
1566         * lib/widget.c(dia_font_selector_set_font): actually set the options 
1567         menu state. So we are not any longer resetting the font style on Apply.
1568         Use "UML - Class" dialog as stress text example.
1570         * app/command.c : some people insist to close diagrams already
1571         closed using tear-off menus. Maybe we should add a dialog 
1572         "Do you want to call Dr. Watson now?". If there is no diagram
1573         to close anymore just do nothing, fixes bug #303221
1574         * app/display.c(ddisplay_close) : use g_return_if_fail(ddisp != NULL);
1575         Calling this with no display to close is a pathological case.
1577         * app/diagram.[hc] : moved object.h and other DiaObject stuff
1578         to the implementation in preparation of Big Things(tm)
1580         * app/interface.c : less warnings and make it compile. strncmp()
1581         does not take a char**, neither does gdk_pixbuf_new_from_inline().
1583         * objects/makefile.msc plug-ins/makefile.msc : less output
1585 2005-05-08  Lars Clausen  <lars@raeder.dk>
1587         * lib/orth_conn.c (orthconn_init): The right place to set the
1588         default autorouting value.  Fixes bug #303291.
1590         * app/display.c (ddisplay_close): Patch from Radek Krahl
1591         (ptasz3k@o2.pl):  Fix crash when using from detached menu
1592         (#303221)
1593         
1594 2005-05-07  Lars Clausen  <lars@raeder.dk>
1596         * lib/orth_conn.c (orthconn_load): Autorouting should default to
1597         off in diagrams that don't have it explicitly.  All diagrams
1598         should be explicit about it.
1600 2005-05-06  Hans Breuer  <hans@breuer.org>
1602         * app/samples/Self/*.dia : some UML diagrams describing Dia's
1603         inner working (or it's future;)
1605 2005-04-26  Lars Clausen  <lars@raeder.dk>
1607         * app/connectionpoint_ops.c (connectionpoint_draw): Temporary
1608         change to display of mainpoint to be easier to debug autogenerated
1609         ones. 
1611 2005-04-23  Hans Breuer  <hans@breuer.org>
1613         * plug-ins/python/diamodule.c plug-ins/python/pydia-object.h
1614           plug-ins/python/pydia-properties.h : use lib/ prefix for
1615         Dia internal headers with too common names (fixes bug #173061)
1617         * app/display.c : stop special casing the first display of
1618         a diagram. Every display now has it's own refernce. The initial
1619         reference gets dropped when there is no display anymore. See
1620         diagram_remove_ddisplay(). Fixes bug #300744.
1622         * app/diapsft2renderer.c : locale independent output
1623         (Radek Krahl, bug #300847)
1624         * app/paginate_psprint.c :  fixing use of setlocale() calls
1625         (Radek Krahl, bug #300886)
1626         * plug-ins/shape/shape-export.c : fixing use of setlocale() calls
1627         (Radek Krahl, bug #300889)
1629         * objects/UML/class.c : fix another crash with the line 
1630         wrapping code (Gabor Simon, bug #160865)
1632         * plug-ins/cairo/diacairo.c : image rendering had an endianess 
1633         issue (or is this working around a libpixman bug?;)
1635 2005-04-21  Lars Clausen  <lars@raeder.dk>
1637         * lib/polyshape.c (polyshape_update_data): Fixed numpoint off-by-one.
1639         * shapes/**/*.shape: All shapes now have midpoints.
1641 2005-04-20  Lars Clausen  <lars@raeder.dk>
1643         * lib/orth_conn.c (orthconn_update_data): Patch from ptasz3k@o2.pl
1644         (Radek Krahl): Make sure there's enough handles for the line.
1645         Fixes bug #173031.
1647         * objects/UML/node.c (node_draw): Better drawing method avoids
1648         garbage after moving.  Fixes bug #301032.
1650 2005-04-17  Hans Breuer  <hans@breuer.org>
1652         * plug-ins/cairo/diacairo.c : again adapt to Cairo API 
1653         changes (whould compile with current cvs and 0.(3|4).0
1655 2005-04-11  Lars Clausen  <lars@raeder.dk>
1657         * xmldocs.make (all): Fix to put installed docs in right place
1658         under disable-gnome.
1660         * doc/en/Makefile.am: Use xml_files var for xml files, EXTRA_DIST
1661         only for dia.dbk.
1663         * app/commands.c (help_manual_callback): Patch from p@kapcoweb.com
1664         (Leonardo Boshell): Use standard gnome help if called with Gnome.
1666         * app/diapsrenderer.c: Patch from ptasz3k@o2.pl (Radek Krahl): Fix
1667         locale issues for eps output.  Fixes bug #173135.
1669 2005-04-10  Hans Breuer  <hans@breuer.org>
1671         * plug-ins/cairo/diacairo.c : adapt to Cairo PNG API 
1672         changes (somewhat broken)
1673         
1674         * plug-ins/pstricks/render_pstricks.c : still C89 ...
1675         * objects/custom/shape_info.c : ... but with prototypes
1676         
1677 2005-04-07  Lars Clausen  <lars@raeder.dk>
1679         * lib/dia_xml.c: 
1680         * plug-ins/svg/render_svg.c: 
1681         * lib/diasvgrenderer.c: Patches from ptasz3k@o2.pl (Radek Krahl):
1682         Make decimal separators be correct in save file formats
1683         (non-localized).  Fixes bugs #172529 and 172531.
1685 2005-04-06  Lars Clausen  <lars@raeder.dk>
1687         * app/create_object.c (create_object_button_release): 
1688         * app/modify_tool.c (modify_button_release): Correct activations
1689         of text edits.
1691 2005-04-05  Simon Kågström  <ska@bth.se>
1693         * app/app_procs.c: the --show-layers option can now handle numeric
1694         ranges of layers.
1696 2005-04-05  Lars Clausen  <lars@raeder.dk>
1698         * lib/diagdkrenderer.c (draw_string): Patch from tomkast@yahoo.com
1699         (Tom Kast): Avoid blockiness caused by bad updates.
1701 2005-04-03  Lars Clausen  <lars@raeder.dk>
1703         * lib/polyshape.c: 
1704         * lib/beziershape.c: Main points.  A crude solution, having the
1705         center in the middle of the bb.  Shows a bug in the distance_from
1706         code for polyshape when a side is horizontal.
1708 2005-04-02  Lars Clausen  <lars@raeder.dk>
1710         * plug-ins/pstricks/render_pstricks.c: 
1711         * plug-ins/xfig/xfig-export.c: Patch from Radek
1712         Krahl <ptasz3k@o2.pl>: Fix decimal point problems. Fixes bugs 
1714 2005-04-02  Hans Breuer  <hans@breuer.org>
1716         * lib/dia_image.c(dia_image_filename) : return the path 
1717         again. (bug #172416, Radek Krahl)
1718         
1719 2005-04-01  Steve Murphy  <murf@e-tools.com>
1721         * configure.in: Added "rw" to ALL_LINGUAS.
1723 2005-03-31  Lars Clausen  <lars@raeder.dk>
1725         * lib/neworth_conn.c (neworthconn_update_data): Handle autogap.
1727         * lib/orth_conn.c (orthconn_update_data): Handle autogap while not
1728         autorouting.  
1730         * objects/network/basestation.c: Main points.
1732 2005-03-27  Hans Breuer  <hans@breuer.org>
1734         * app/Makefile.am : removed some pixmap/*.xpm from EXTRA_DIST
1735         * app/pixmaps.h : removed arrow.xpm
1736         * lib/Makefile.am : added diamarshal
1737         * plug-ins/python/Makefile.am : added makefile.msc to EXTRA_DIST
1738         => makes 'make dist' pass and produce a useable package
1740         * po/*.po : 'noise' profuced by make dist
1742 2005-03-24  Lars Clausen  <lars@raeder.dk>
1744         * objects/flowchart/parallelogram.c (pgram_update_data): 
1745         * objects/flowchart/ellipse.c (ellipse_update_data): 
1746         * objects/flowchart/diamond.c (diamond_update_data): 
1747         * objects/flowchart/box.c (box_update_data): Main points.
1749         * objects/custom/custom_object.c (custom_create): 
1750         * objects/custom/shape_info.h: 
1751         * shapes/Assorted/square.shape: 
1752         * objects/custom/shape_info.c (load_shape_info): 
1753         * doc/shape.dtd: Added main point support to shapes, and an
1754         example of how to use it.
1756 2005-03-21  Lars Clausen  <lars@raeder.dk>
1758         * lib/autoroute.c (autoroute_layout_orthconn): Remember to
1759         unnormalize from same point as you normalize, or else!
1761 2005-03-20  Lars Clausen  <lars@raeder.dk>
1763         * app/app_procs.c (do_convert): Patch from crux@gorodmasterov.com:
1764         Remember to ref g_object_new'd object.
1766 2005-03-19  Hans Breuer  <hans@breuer.org>
1768         * plug-ins/xslt/xslt.c : don't crash if both places ($SHARE, $HOME)
1769         have configurations, fixes bug #170962
1771         * objects/UML/state.c : ("UML - State")::type is PROP_FLAG_OPTIONAL,
1772         or better not used any longer. Fixes bug #169142.
1774         * lib/element.c(element_update_connections_rectangle): don't initialize 
1775         the eighth point twice but instead the nineth once
1777         * objects/standard/bezier.c : no C++ comments *please*
1779         * lib/plug-ins.h : increment DIA_PLUGIN_API_VERSION
1781         * lib/dia_image.[ch] : dia_image_filename() returns a string not to be freed ...
1782         * plug-ins/python/pydia-image.c : ... so, don't do it!
1784         * lib/dia_svg.c : refactor color parsing and support the "rgb(127,255,0)" form,
1785         also named colors via pango_color_parse()
1787         * lib/prop_text.c : don't try to g_strdelimit(NULL), fixes bug #169367
1789         * lib/libdia.def : updated externals
1791         * app/object_ops.c : still not C99 everywhere
1793 2005-03-19  Hans Breuer  <hans@breuer.org>
1795         * lib/autoroute.c : at least it should compile ;)
1796         
1797 2005-03-19  Lars Clausen  <lars@raeder.dk>
1799         * lib/autoroute.c: Orthconns now do autogap.
1801 2005-03-17  Lars Clausen  <lars@raeder.dk>
1803         * app/authors.h: Added Gregoire Dooms for gap stuff.
1805         * objects/standard/polyline.c: Patch from Grégoire Dooms
1806         <dooms@info.ucl.ac.be>: Autogap and absolute gap for polyline.
1807         
1808         * objects/standard/bezier.c: Patch from Grégoire Dooms
1809         <dooms@info.ucl.ac.be>: Fixes two bugs.  Also autogap no longer a
1810         property. 
1811         
1813         * objects/UML/state_term.c: 
1814         * objects/UML/large_package.c: 
1815         * objects/UML/node.c: 
1816         * objects/UML/object.c: 
1817         * objects/UML/small_package.c: 
1818         * objects/UML/state.c: 
1819         * objects/UML/usecase.c: 
1820         * objects/UML/note.c: 
1821         * objects/UML/actor.c: 
1822         * objects/UML/classicon.c: 
1823         * objects/UML/component.c: 
1824         * objects/Misc/analog_clock.c: 
1825         * objects/Jackson/requirement.c: 
1826         * objects/Istar/goal.c: 
1827         * objects/Istar/actor.c: 
1828         * objects/FS/function.c: 
1829         * object/standard/box.c:
1830         * objects/ER/entity.c: 
1831         * objects/ER/relationship.c: 
1832         * objects/ER/attribute.c: Main points added.   Distance_from fixed
1833         in attribute, broken in relationship, I* goal, Jackson
1834         requirement, analog_clock, all non-rectangular UML elements, 
1836         * lib/libdia.def: 
1837         * lib/element.[ch]: New method to help update connection points.
1839         * app/menus.c: Change Help/Manual to Help/Contents to follow
1840         standard.
1841         
1842         * objects/standard/line.c:
1843         * lib/geometry.[ch]: 
1844         * objects/standard/bezier.c: Patch from Grégoire Dooms
1845         <dooms@info.ucl.ac.be>: Add absolute gap and autogap for line and
1846         bezier objects.   Autogap nowchanged to be a function of the
1847         connpoints.
1849         * lib/libdia.def: 
1850         * lib/connectionpoint.[ch]: New function to ask if a connpoint has the
1851         autogap flag.
1853         * app/connectionpoint_ops.c (connectionpoint_draw): Don't draw
1854         CP_FLAG_ANYPLACE connpoints.
1856 2005-03-16  Lars Clausen  <lars@raeder.dk>
1858         * app/interface.c (create_tools): Removed debug printf.
1860 2005-03-15  Lars Clausen  <lars@raeder.dk>
1862         * lib/widgets.[ch]: Constification.
1864         * app/interface.c: Work on using gdk-pixbuf-csource'd data, not
1865         working yet.
1867         * objects/standard/ellipse.c: Use CP_FLAG_MAIN for central CP.
1869         * lib/connectionpoint.h: Flags for connection points.
1871         * app/create_object.c (create_object_motion): 
1872         * app/modify_tool.c (modify_motion): Minor refactoring.
1874         * app/object_ops.c (object_find_connectpoint_display): Extend with
1875         finding connpoints that cover entire objects.
1877         * app/layer_dialog.c (dia_layer_widget_init): Get rid of warnings.
1879         * objects/custom/custom_object.c (custom_setup_properties): Avoid
1880         uninitialized use.
1882 2005-03-13  Hans Breuer  <hans@breuer.org>
1884         * plug-ins/svg/svg-import.c : handle the <circle/> tag as well
1886 2005-03-13  Hans Breuer  <hans@breuer.org>
1888         * lib/dia_svg.[hc] objects/custom/shape_info.[hc] plug-ins/svg/svg-import.c :
1889         s/DiaSvgGraphicStyle/DiaSvgStyle/, added and use convenience functions 
1890         dia_svg_style_copy(), dia_svg_style_init()
1892         * objects/custom/shape_info.c : use dia_svg_parse_path() from lib/ (it got
1893         moved out of this)
1895         * lib/dia_svg.c(dia_svg_parse_path) : also handle style properties which are
1896         not wrapped in the style attribute
1898         * plug-ins/svg/svg-import.c : implement nested group handling and style
1899         'style inheritance'. Still no transformations, no <image/>, no <style/> 
1900         <defs/>...
1902         * plug-ins/svg/svg-import.c(import_svg) : use message_warning instead of g_warning,
1903         the latter is for programmers.
1904         Also be more tolerant if the document root namespace is not 'svg'. If the svg 
1905         namespace is defined in the file search for the top node including svg. This
1906         allows us to re-read the svg part of our own shape format.
1908         * lib/libdia.def : there is no give_focus_to_object
1909         * app/textedit.c : still no C99,  aka. error C2275: 'Focus' : illegal use of this 
1910         type as an expression
1912         * lib/geometry. c : use G_IMPLEMENT_INLINES
1913         * lib/libdia.def : export point_get_perp (used by xfig plug-in)
1915         * app/textedit.c(textedit_end_edit) : don't crash if the display is already
1916         gone when trying to remove the focus
1918         * plug-ins/cairo/diacairo.c : CAIRO_HAS_WIN32_SURFACE does not any longer mean
1919         it has *my* Cairo Win32 Backend. [The official one isn't useful for the use
1920         case of this plug-in, i.e. producing output files]
1922 2005-03-13  Lars Clausen  <lars@raeder.dk>
1924         * lib/Makefile.am (BUILT_SOURCES): 
1925         * app/Makefile.am (BUILT_SOURCES): Use the Right Way[tm] to force
1926         the building of the icons header files.
1927         * app/dia-lib-icons.h: Out of CVS now that it's correctly generated.
1929 2005-03-13  Hans Breuer  <hans@breuer.org>
1931         * configure.in : require Cairo 0.3.0
1932           plug-ins/cairo/diacairo.c : changed to match ;-)
1934         * app/app_procs.c() : new function dump_dependencies()
1935         which gets called by: dia --version --verbose
1936         and may help to track version dependent problems in
1937         our dependencies
1939         * lib/font.c : reverted to previous version cause using
1940         not implemented Pango API did not improve the issue.
1941         See: http://bugzilla.gnome.org/show_bug.cgi?id=162034
1942         for more information.
1944         * lib/dialinechooser.c : a little shrinking of the 
1945         initial size (to work around line wrappjing the right 
1946         arrow control)
1948 2005-03-11  Lars Clausen  <lars@raeder.dk>
1950         * app/textedit.c: Concentrate start/end editing in single functions.
1952 2005-03-10  Lars Clausen  <lars@raeder.dk>
1954         * lib/text.h: 
1955         * lib/object.h: Added new object function to allow the object to
1956         be notified when its text is being edited.
1958         * lib/libdia.def: 
1959         * app/modify_tool.c: 
1960         * app/commands.c: 
1961         * app/textedit.c: 
1962         * lib/focus.c: Remove sideeffects from focus objects, add getter
1963         for focus->obj.
1965 2005-03-09  Lars Clausen  <lars@raeder.dk>
1967         * lib/Makefile.am (dia-lib-icons.h): 
1968         * app/Makefile.am: Minor cleanup.
1970 2005-03-06  Hans Breuer  <hans@breuer.org>
1972         * app/app_procs.c : avoid "assignment within conditional expression"
1973         and handle -L for the GOption case as well.
1975         * lib/widget.c : strchr() does not return -1 on not found but NULL;
1976         avoids widgets.c(307) : error C4047: '!=' : 'char *' differs in levels of 
1977         indirection from 'const int '
1979         * lib/diasvgenderer.c(draw_arc|fill_arc) : finally correct sweep and 
1980         large_arc, thus produce correct arc output (like diasvg.py does;),
1981         fixes bug #144401
1983         * lib/dia_svg.[hc](dia_svg_parse_path) : new function copied and adapted 
1984         from objects/custom/shape_info.c to be shared with object/custom and
1985         plug-in/svg -> finally the C based svg-import reads pathes again.
1986         Added arc parsing while I was there, which fixes bug #169191
1987         * objects/custom/shape_info.c(parse_path) : 
1988         * plug-ins/svg/svg-import : reuse above function
1989         Also fix the "root element was 'svg' -- expecting 'svg'" bug #108502.
1990         But in general this does only support a small subset of what is 
1991         possible in SVG.
1993 2005-03-06  Lars Clausen  <lars@raeder.dk>
1995         * objects/UML/association.c: Patch from Dave Klotzbach applied:
1996         Add visibility to association arrow.  Fixes bug #157012.
1998         * app/grid.c: Patch from Lawrence Withers fixes grid messiness,
1999         closing bug #161040.
2001         * app/layer_dialog.c (create_button_box): Use stock icons instead
2002         of homemade onces.  Gets us rid of four more XPMs.
2004 2005-03-05  Sampo Kellomaki <sampo@iki.fi>
2006         * app/app_procs.c: Implemented --show-layers=LAYER,LAYER,... option
2007         This option permits command line control of which layers are visible.
2008         Useful when automatically exporting multiple versions of the same
2009         diagram, e.g. slides with overlays. Added-n switch parsing without POPT.
2010       * app/app_procs.h: moved prototype of do_convert() to app/app_procs.c
2011         and made it static since its only used in that file.
2012         * app/authors.h: added myself
2013         * doc/en/dia.1: documented the switch
2014         * doc/en/usage-layers.xml: ditto
2015         
2016 2005-03-05  Alan Horkan <horkana@tcd.ie>
2018         * app/interface.c Change Horizontal scroll policy to NEVER for sheets
2019         this restores how Dia behaved before the GTK2 port and seems to help 
2020         allow the toolbox to be more easily resized.  Bug #108891.
2022 2005-03-05  Lars Clausen  <lars@raeder.dk>
2024         * Civil/civil_motor.shape:
2025         * Civil/civil_rotor.shape:
2026         * Logic/and.shape:
2027         * Logic/buffer.shape:
2028         * Logic/connector.shape:
2029         * Logic/inverter.shape:
2030         * Logic/nand.shape:
2031         * Logic/nor.shape:
2032         * Logic/not.shape:
2033         * Logic/or.shape:
2034         * Logic/xor.shape:
2035         * shapes/Assorted/arrow-left-up.shape: 
2036         * shapes/Assorted/heptagon.shape: 
2037         * shapes/Assorted/star5.shape: 
2038         * shapes/Assorted/trapezoid.shape: 
2039         * shapes/Assorted/triangle-rightangle.shape: Fixed bad use of
2040         defaults, see bug #169143.
2042         * sheets/Assorted.sheet.in: Fixed typo patch applied, bug #169114.
2044         * configure.in: 
2045         * doc/en/Makefile.am: Finally figured out the right way to ask for
2046         the manpage xslt.  Closes bug #144539.
2048 2005-03-01  Lars Clausen  <lars@raeder.dk>
2050         * lib/Makefile.am (nodist_include_HEADERS): 
2051         * app/Makefile.am: Correctly generate these files from PNGs with
2052         automake.
2054         * lib/widgets.h: 
2055         * lib/libdia.def:
2056         * lib/widgets.c: Refactor toggle button factory to allow inline
2057         data.
2059         * lib/pixmaps/Makefile.am: Unify lib pixmaps.
2061         * app/makefile.msc (ICON_PNG_PAIRS): 
2062         * app/dia-app-icons.h: Updated with more icons.
2064         * lib/Makefile.am: 
2065         * app/Makefile.am: Use gdk_pixbuf_csource to create inline data
2066         from pngs.
2068         * app/interface.c (create_display_shell): 
2069         * app/layer_dialog.c (dia_layer_widget_init): 
2070         * lib/dia_image.c (dia_image_get_broken): Use inlined data
2071         generated from png.
2073         * app/display.c (ddisplay_close): Removed unused includes.
2075 2005-03-01  Lars Clausen  <lars@raeder.dk>
2077         * app/sheets.c (create_object_pixmap): Create a placeholder image
2078         for when the real image is missing.  Better than crashing:)
2079         Closes bug #166786.
2081 2005-02-25  Hans Breuer  <hans@breuer.org>
2083         * app/app_procs.c : don't requets to open a default display with
2084         g_option_context_add_group (crux@gorodmasterov.com, bug #168523)
2086 2005-02-22  Lars Clausen  <lars@raeder.dk>
2088         * plug-ins/gprint/diagnomeprint.c (export_data): GNOME, not Gome.
2089         Fixes bug #168125.
2091 2005-02-19  Lars Clausen  <lars@raeder.dk>
2093         * app/menus.c (display_menu_items): Applied patch from bug #94019:
2094         Menu cleanup and addition of icons.  Also a few additional stock
2095         icons. 
2097         * app/layer_dialog.c (create_layer_dialog): Bug #159598: Clean up
2098         the layers dialog.
2100 2005-02-14  Lars Clausen  <lars@raeder.dk>
2102         * INSTALL (ftp): Fixed Pango release typo (bug #153007)
2104 2005-02-13  Lars Clausen  <lars@raeder.dk>
2106         * lib/font.c: First stab at using Gtk 2.4 functions for fixing
2107         width.  Seems to work.  Once tested some more, needs old code
2108         removed. 
2110         * lib/widgets.c (dia_font_selector_create_string_item): Avoid
2111         warning by escaping & properly.
2113 2005-02-06  Lars Clausen  <lars@raeder.dk>
2115         * app/filedlg.c (file_export_callback): Set correct extension as
2116         soon every time the dialog is shown.  Fixes bug #162535.
2118         * app/display.c (ddisplay_set_origo): Use more standard
2119         transformations.
2121         * app/modify_tool.c (modify_motion): 
2122         * app/create_object.c (create_object_motion): Put coordinates of
2123         handle/object in status bar while moving. Fixes bug #163164.
2125 2005-02-03  Lars Clausen  <lars@raeder.dk>
2127         * lib/.cvsignore: Added generated files diamarshal.[ch]
2129 2005-02-02  Lars Clausen  <lars@raeder.dk>
2131         * configure.in: Add GLIB_GENMARSHAL def as suggested in
2132         http://ignore-your.tv/software/libgtcpsocket/docs/client-subclassing.html.
2133         Now compiles on Linux.
2135 2005-02-01  Lars Clausen  <lars@raeder.dk>
2137         * app/sheets.c (sheet_object_mod_get_type_string): We don't really
2138         need to translate the empty string.  Especially not after
2139         g_assert_not_reached().  Fixes bug #165966.
2141 2005-01-07  Tim Olsen  <tolsen@alum.mit.edu>
2143         * objects/UML/activity.c : add fill- and line-colour properties
2144         [applied by Hans Breuer, fixes bug #163260]
2146 2004-01-28  Hans Breuer  <hans@breuer.org>
2148         * doc/en/*.xml doc/en/dia.dbk app/authors.h : documentation
2149         update provided by Alan Horkan (fixes bug #159592)
2151 2004-01-28  Hans Breuer  <hans@breuer.org>
2153         [Extented version for UML to C++ conversion by Dave Klotzbach, bug #155255]
2154         * plug-ins/xslt/dia-uml2cpp.xsl : (new file) ... handles associataions,
2155         generalization, dependancies, parameterized classes ...
2156         * plug-ins/xslt/styleshetts.xml : refernce it
2157         * plug-ins/xslt/dia-uml.xsl : handle more UML types uesd above
2159 2004-01-28  Hans Breuer  <hans@breuer.org>
2161         * objects/UML/transition.c : fill out the extra_spacing struct 
2162         in the OrtConn member, in order to avoid artifacts when draggin 
2163         the transition. (patch by Peter Allin, bug #144956)
2165 2004-01-15  Hans Breuer  <hans@breuer.org>
2167         * plug-ins/cairo/diacairo.c : initialized the renderers default dash_length
2168         to something differnt than 0. Apparently there are case where Dia misses
2169         to appropriately set it before requesting a dashed line (simple line with
2170         arrow as described in bug #151716)
2172         * lib/dia_dirs.c : special casing for drive letters which I broke with
2173         the previous change
2175 2005-01-13  Hans Breuer  <hans@breuer.org>
2177         * app/interface.c(create_sheet_page) : remved dead long time code
2179         * lib/propdialogs.c : removed pdtpp_is_visible_no_standard() prototype,
2180         it is availbale via header - which is the better style anyway
2182 2004-12-31  Hans Breuer  <hans@breuer.org>
2184         * lib/dia_dirs.c(dia_get_canonical_path) : complete
2185         rewrite to handle something like /mnt/some/where/../else
2186         too. Workaround for bug #162637.
2187         * app/filedlg.c : call gtk_file_chooser_set_current_name()
2188         to workaround gtk_file_chooser_set_filename() not setting
2189         it if the file does not exist
2191         * sheets/Jackson.sheet.in app/menus.c : fixed typos
2192         (Frank Arnold, bug #161676)
2194 2004-12-31  Steffen Macke <sdteffen@gmail.com>
2196         * doc/pl/*.xml: Added XML prolog
2197         * makefile.msc: Added libxslt, fixed libxml, libart
2199 2004-10-29  Alexander Shopov  <ash@contact.bg>
2201         * configure.in (ALL_LINGUAS): Added "bg" (Bulgarian)
2203 2004-12-29  Lars Clausen  <lars@raeder.dk>
2205         * configure.in: Make gnomeprint be truly off by default (typo) and
2206         show optional compilation correctly.
2207         * plug-ins/gprint/Makefile.am: Exclude gnomeprint if not optioned in.
2209 2004-12-22  Hans Breuer  <hans@breuer.org>
2211         * lib/widgets.c : destroy handlers can be called more than once, 
2212         see http://developer.gnome.org/doc/API/2.0/gtk/gtk-changes-2-0.html
2214         * app/app_procs.c : #ifdef GLIB(2.6.0) but GTK(2.4.x)
2215         
2216         * app/display.c : temporary debug code showing the
2217         timing the rendering
2219         * app/dialibartrenderer.c(draw_string) : removed dead
2220         code loading and leaking font and face
2222 2004-12-15  Hans Breuer  <hans@breuer.org>
2224         * app/display.c : actually use the selction-changed signal for something
2225         useful. Show selections representation on statusbar.
2226         * lib/object.h lib/prop_text.c lib/libdia.def : provide objet_get_displayname() 
2227         * app/diagram_tree.c : use new function (as in app/display.c) and only
2228         poke into property internals at one place
2229         * app/diagram.c : use g_signal_handlers_block_by_func to avoid has-no-handler-
2230         complains
2232 2004-12-12  Hans Breuer  <hans@breuer.org>
2234         * lib/libdia.def app/dia.def : updated externals
2236         * objects/custom/custom_object.c : custom_destroy is called per object. 
2237         It _must not_ destroy class stuff (ShapeInfo) cause it does not hold a 
2238         reference to it. Fixes e.g. bug #158288, #160550, ...
2240         * objects/UML/association.c(association_draw) : completed porting to
2241         draw_polyline_with_arrows()
2242         (association_update_data_end) : fixed typo in point compare
2243         (association_update_data) : for name placement take degenerated 
2244         segements into account. Together this fixes bug #143891
2246 2004-12-11  Hans Breuer  <hans@breuer.org>
2248         * lib/widgets.c(set_size_sensitivity) : revert inverted
2249         logic for arrorw size selections, fixes bug #160527
2251 2004-12-11  Hans Breuer  <hans@breuer.org>
2253         * lib/widgets.c(dia_font_selector_set_font) : initialize
2254         the font style widget, too. Gets rid of empty font
2255         style and thus default broken font style, e.g. UML::class_name
2257         * lib/widgets.c(dia_color_selector_more_callback) : fill
2258         the color palette from dynamic menu entries and also
2259         preselect the current color to the last select entry
2260         
2261         * plug-ins/python/pydia-diagramdata.c : hold a reference
2262         to the underlying GObject
2263         
2264         * app/Makefile.am app/diagrid.h : new file containing the 
2265         grid 'class' moved from DiagramData to Diagram. 
2266         Also moved pagebreak_color and guides cause they are only 
2267         used for visual appearance not 'data'.
2268         * lib/diagramdata.[ch] app/diagram.h app/dia-props.c app/grid.c
2269           app/load_save.c plug-ins/python/pydia-diagramdata.c : reflect 
2270         the above change
2272         * lib/diagramdata.[ch] app/app_procs.c app/diagram.c 
2273           lib/libdia.def : get rid of new_diagram_data() 
2274         Diagram _is_ DiagramData (and does not have one any longer,
2275         just a compatibility pointer)
2276         
2277         * lib/diarenderer.h : a small doc improvement
2279 2004-12-11  Hans Breuer  <hans@breuer.org>
2281         * objects/UML/class.c : line wrapping code buffer
2282         overrun fixed by Gabor Simon, bug #160865
2284 2004-12-11  Hans Breuer  <hans@breuer.org>
2286         * plug-ins/python/pydia-diagram.c : hold a reference
2287         to the diagram in PyDiaDiagram, avoids bug #159080
2288         [another way to avoid is to detroy the dialog by
2289         clsoing it. But now there is still a diagram to
2290         apply the changes to, even if it's thrwon away just
2291         afterwards]
2293 2004-12-10  Hans Breuer  <hans@breuer.org>
2295         * **/*.c : fixed a bunch of warnings, not only for -ansi
2296         (still too many of them, but -ansi works)
2297         lib/
2298         prop_geomtypes.h prop_geomtypes.c:306: warning: static 
2299         declaration for `fontsizeprop_reset_widget' follows non-static
2300         dia_dirs.c:196: warning: return discards qualifiers from 
2301         pointer target type
2303         objects/custom/
2304         shape_info.c:121: warning: static declaration for `parse_path' 
2305         follows non-static
2307         objects/SADT/
2308         arrow.c:228: warning: `draw_arrowhead' declared `static' but never defined
2309         arrow.c:244: warning: unused variable `i'
2310         arrow.c:245: warning: unused variable `p'
2311         arrow.c:246: warning: unused variable `zzr'
2312         
2313         object/Istar/*.c object/Jackson/*.c  object/KAOS/*.c : 
2314         finally removed c++ comments
2315         
2316         objects/Istar/goal.c : initialize connections::directions
2317         while I was there - helps autorouting
2319         * objects/KAOS/metaandorrel.c objects/Istar/link.c 
2320           objects/KAOS/metabinrel.c : removed struct _DiaImage hack
2321         (it would be quite simple to add image-from-memory support
2322         to lib/ if needed)
2324         * pydia-*.h : warning: no newline at end of file
2325         
2326         * plug-ins/gprint/diagnomeprint.c : allow to unregister
2327         and follow new unique name naming convention
2328         * plug-ins/gprint/diagnomeprintrenderer.c : no c++ comments
2329         here either
2331 2004-12-07  Hans Breuer  <hans@breuer.org>
2333         * objects/UML/message.c : better default for initial text placement
2334         a suggested in bug #154306, Henning Mersch
2335         * objects/UML/constraint.c : doing the same
2337         * app/filedlg.c : include persistence.h for persistence_get_integer
2338         * lib/libdia.def export it
2340 2004-12-05  Hans Breuer  <hans@breuer.org>
2342         * app/grid.c : respect dynamic grid during snap-to, fixes 
2343         bug #135124, Dmitriy Morozov. Added some additional magic
2344         to make the grid size more useable.
2346 2004-12-05  Hans Breuer  <hans@breuer.org>
2348         * app/app_procs.c : make it compile for the HAVE_POPT and
2349         G_LIB_CHECK_VERSION(2,5,5) case, minor formating
2350         
2351         * lib/plug-ins.c : don't pass non exiting files to xmlDiaParseFile()
2352         * app/app_procs.c : only dia_pluginrc_write() and create_user_dirs()
2353         when interactive. Fixes bug #119329
2354           
2355         * plug-ins/cairo/diacairo.c : adapt to new type naming
2356         scheme (introduced by accident;-) for pixbuf-*
2357         * app/app_procs.c : reflect both type name changes
2359 2004-12-04  Hans Breuer  <hans@breuer.org>
2361         * objects/standard/image.c : fix the correct warning
2362         `image_file_name' might be used uninitialized
2363         
2364         * app/filedlg.c : near complete rewrite
2365         - removed 'related dialog', GtkOptionMenu, most global vars,
2366         also don't hide the dialog but let it go.
2367         - added: filter view by extension, hopefully working diagram
2368         referencing, GtkComboBox usage
2369         
2370         * plug-in/pixbuf/pixbuf.c : switched to dynamic generation
2371         of im/export filter entries. So the user interface reflects
2372         the dynamic nature of pixbuf loaders
2374         * lib/filter.[ch] : implement filter_unregister_*port
2375           lib/libdia.def : added new functions
2376           plug-ins/cgm/cgm.c plug-ins/dxf/dxf.c
2377           plug-ins/hpgl/hpgl.c plug-ins/metapost/metapost.c
2378           plug-ins/pstricks/pstricks.c plug-ins/svg/svg.c
2379           plug-ins/wpg/wpg.c plug-ins/xfig/xfig.c
2380           plug-ins/cairo/cairo.c plug-ins/pixbuf/pixbuf.c :
2381         use them in _plugin_unload () thus all these plug-ins
2382         can be loaded used and unloaded during Dia's runtime
2384 2004-12-04  Lars Clausen  <lars@raeder.dk>
2386         * lib/diagramdata.h: Access methods for units defined per diagram.
2388         * lib/font.c (dia_font_new_from_style): More proper object creation.
2390         * lib/properties.h: Refactored the PROP_STD_* macros to allow
2391         different options.
2393         * app/diagram.c (diagram_init): Force filename to be absolute
2394         path, easing the job for load/save.
2396 2004-12-03  Hans Breuer  <hans@breuer.org>
2398         * lib/libdia.def : removed dia_marshal_*, they are implemented as macros.
2399         added dia_font_set_height, dia_font_copy (note to self: don't try to
2400         maintain these from the *NIX side ;)
2402         * lib/widgets.h : removed DiaColorSelector::col, it is not maintained by
2403         the new color selection anymore
2404         * objects/UML/class_dialog.c : with the above change it would have been more 
2405         easy to fix the color loss bug #156996 which had nothing to do with 'a pointer
2406         problem' but only was an unfinished usage of dia_color_slector(get|set)_color
2408         *  objects/UML/class_dialog.c  objects/UML/class.[ch] : uml_apply_properties
2409         (used in object vtable) and make its prototype match
2411         * lib/widgets.c : made all the GtkTypeInfo 'static const'. I can't directly
2412         correlate any of these strange crashing bug with it, but assume bad things to 
2413         happen when one passes stack allocated stuff to gtk_type_unique()
2415         * lib/widgets.c(dia_font_selector_get_font) : don't access menuitem if it is
2416         not there. Fixes most of the warnings from bug #156996
2418         * lib/makefile.msc : rules to generate diamarshal.[ch]
2420 2004-11-29  Hans Breuer  <hans@breuer.org>
2422         * app/disp_callbacks.c : reenable so-called preedit
2423         as described in bug #158859, Etsushi Kato
2424         Also fixed some compiler warnings while there.
2425         
2426         * objects/standard/image.c(get_directory) : make
2427         the documentation match the implementation.
2428         (image_save) : don't write a leading slash on 
2429         relative filenames 
2431         * plug-ins/gprint/diagnomeprintrenderer.c :
2432         switched to gnome-print-pango usage
2433         
2434         * app/app_procs.c configure.in : although Dia
2435         is not threaded it appears as if we have to
2436         g_thread_init() to avoid crashing in some
2437         libraries which are thread enabled
2439         * lib/diamarshal.list lib/Makefile.am : start of
2440         using GSignal to clean up some object relations
2441         * lib/libdia.def : export marshallers
2442         * app/diagram.[ch] : emit signals when REMOVED,
2443         SELECTION_CHANGED
2444         * app/display.c : added a connection to 
2445         SELECTION_CHANGED to test the new signal stuff
2446         
2447         * app/diagram.c : fixed diagram_finalize while I
2448         was there.
2450 2004-11-28  Hans Breuer  <hans@breuer.org>
2452         * plug-ins/wmf/wmf.cpp(draw_string) : write the widechar version of 
2453         the text if conversion to current locale fails. [This is actually
2454         using code written four years ago;]
2455         * plug-ins/wmf/wmf_gdi.(h|cpp) : added TextOutW (no real implemantation)
2457         * objects/standard/image.c(image_load) : be more robust against 
2458         filenames which seem to be absolute
2460 2004-11-27  Hans Breuer  <hans@breuer.org>
2462         * app/filedlg.c(file_save_callback) : convert to
2463         filename encoding before passing to diagram_save()
2464         Fixes bug #158381, thanks to Robert Ögren
2466 2004-11-27  Hans Breuer  <hans@breuer.org>
2468         * lib/dialibartrenderer.c : sometimes its good to read
2469         compiler warnings. Not only define renderer_finalize
2470         but actually *use* it. Should plug a potential huge
2471         memory leak.
2473         * configure.in plug-ins/Makefile.am 
2474           plug-ins/gprint/Makefile.am : build the experimental
2475         gnomeprint plug-in on *NIX, too.
2476         * plug-ins/gprint/diagnomeprint.c : don't include
2477         specific (private) backend headers but instead select
2478         the desired backend via config key setting
2480         * lib/diagdkrenderer.c : add 1 to size of filled arc 
2481         to be rendered by gdk. Fixes bug #150896.
2483         * plug-ins/gprint/diagnomeprint.c 
2484           plug-ins/gprint/diagnomeprintrenderer.c : added magic
2485         to better match page and dash sizes
2487 2004-11-27  Hans Breuer  <hans@breuer.org>
2489         * plug-ins/shape/shape-export.c : it's g_strdup_printf
2491 2004-11-27  Hans Breuer  <hans@breuer.org>
2493         * app/app_procs.c : mention eps-builtin aka. "using
2494         latin1", does not fix the eps-pango issues but #150571
2496 2004-11-27  Hans Breuer  <hans@breuer.org>
2498         * sheets/Cybernetics.sheet.in : changed encoding to 
2499         utf-8, patch from Takeshi AIHANA, fixes #149580
2501 2004-11-27  Hans Breuer  <hans@breuer.org>
2503         * objects/custom/custom_object.c : many existing shapes
2504         rely on a square default size, revert to it although
2505         it originally was by a typo. Fixes bug #148527.
2507 2004-11-27  Hans Breuer  <hans@breuer.org>
2509         * app/load_save.c(dia_cleanup_autosave) 
2510           app/diagram.c : don't use dia->filename if already 
2511         freed and dont use printf at all.
2513         * app/paginate_psprint.c : not only set the renderer::paper
2514         but also renderer::is_portrait. Should fix bug #142524
2516 2004-11-26  Hans Breuer  <hans@breuer.org>
2518         * dia.desktop.in : added Bug Buddy headers (as seen
2519         in planner). Hopefully the automatically filling of
2520         bugs is more meaningful by this.
2521         
2522         * objects/custom/custom_util.c objects/standard/image.c
2523           lib/plug-ins.c : getting rid of deprecated g_dirname,
2524         fixes some more memory bugs : AddrAddress 0x3586C010 is 24 
2525         bytes inside a block of size 44 free'd
2526         
2527         * lib/persistence.c(persistence_load_list) : don't
2528         leak string
2529         
2530         * lib/diaerror.[ch] : (new file) start of better error handling
2531         * lib/Makefile.am lib/makefile.msc lib/libdia.def: 
2532         added new files/funcs
2533         * lib/proplist.c lib/propinternals.h (prop_list_load) : 
2534         allow to propagate error to caller. Also set PXP_NOTSET
2535         to avoid applying unset properties, fixes bug #155255
2536         * lib/propobject.c lib/prop_sdarray.c : still spewing
2537         g_warnings but now with context information
2538         
2539         * app/filedlg.c : more absolute filenames where required
2540         and strip them where we need the filename only
2541         Also explicit DONT choose gnome-vfs backend cause its
2542         threading appears to crash Dia - at least in GNOME build,
2543         see bug #159558
2545 2004-11-26  Hans Breuer  <hans@breuer.org>
2547         * app/filedlg.c : don't use relative filenames for
2548         gtk_file_chooser_set_filename(), GtkFileChooserDialog is very
2549         pedantic about it.
2550         (export_set_extension) : if we don't have a filename don't
2551         use it in strrchr() to avoid crashing
2552         
2553 2004-11-23  Hans Breuer  <hans@breuer.org>
2555         * app/app_procs.c : fixed build for the GNOME case
2556         (let's rip out POPT and depend on glib-2.6, please ;-)
2558 2004-11-23  Hans Breuer  <hans@breuer.org>
2560         * app/app_procs.c : fixed typo which broke the
2561         build for HAVE_POPT case
2562         
2563 2004-11-21  Hans Breuer  <hans@breuer.org>
2565         * app/app_procs.c : some more #if-mess, but one day
2566         we should rely on GLib's 2.6 Option Parser alone
2567         
2568         * plug-ins/wmf/wmf.cpp : use SC() when scaling width
2569         and height for RoundRect() - otherwise size depends on offset,
2570         shorten the unique name
2571         
2572         * plug-ins/python/diamodule.c : provide a unique name
2573         for python filters as well
2575         * lib/dialibartrenderer.c : fix the drawing of Gdk based text
2576         by using the right colors (need black background cause we
2577         are tinitng it with the real color later)
2579         * lib/dia_dirs.c(dia_get_canonical_path) : use G_DIR_SEPARATOR_S
2580         instead of hardcoded slahes, improved portability 
2582         * app/paginate_gdiprint.cpp : use the right filter name to find wmf
2583         plug-in. Also added some more error reporting (e.g. no printer driver)
2585         * plug-ins/gprint/diagnomeprintrenderer.[hc] plug-ins/gprint/diagnomeprint.c
2586           plug-ins/makefile.msc : resurrection of the gnome print renderer. 
2587         Kinda works (alpha quality) for export but does not print yet. 
2588         With bug #158972 resolved this does even work on win32 :-)
2590 2004-11-07  Hans Breuer  <hans@breuer.org>
2592         * doc/diagram.dtd : <composite> can have <composite/>,
2593         <font/> has two 'optional' atributes 'style' and 'family',
2594         these are used to store new (since 0.91) font info.
2595         With this changes non of the issues in bug #147431 remains.
2597         * plug-ins/python/otypes.py : starting to implement an
2598         'create all known object' file as ne stress test source
2599         for the dtd and Dia in general.
2601 2004-11-06  Hans Breuer  <hans@breuer.org>
2603         * app/diapsrenderer.c : don't convert to locale but to 
2604         "LATIN1", fixes bug #146641
2606 2004-11-06  Hans Breuer  <hans@breuer.org>
2608         * app/diagram_tree.c : still no C99 everwhere ...
2609         * lib/libdia.def : update externals
2610         * plug-ins/pstricks/render_pstricks.c : #include <locale.h>
2612         * app/app_procs.[hc] : declare, use ...
2613            app/winmain.c : ... and implement dia_redirect_console().
2614         Even though newer Gtk version don't popup a console window
2615         anymore redirecting the error messages to a file in $TEMP appears
2616         to be much more reasonable than just ignoring it. Fixes bug #150777
2617         based on a patch from Steffen Macke
2619 2004-11-06  Hans Breuer  <hans@breuer.org>
2621         * plug-ins/wmf/wmf.cpp plug-ins/wmf/wmf_gdi.* : added/used
2622         RoundRect() for high level renderer api implementation thus
2623         fixing bug #138744 reported by Lars Clausen
2625 2004-11-06  Hans Breuer  <hans@breuer.org>
2627         * app/prefernces.c : applied patch to make showing the diagram 
2628         menubar the default (advanced users know how to switch it off)
2629         Fixes bug #150706, Steffen Macke
2631 2004-11-06  Hans Breuer  <hans@breuer.org>
2633         * app/commands.c app/commands.h : added view_fullscreen_callback()
2634           view_unfullscreen()
2635           app/menus.c : use it (/View/Fullscreen) thus fixing bug #94090
2636         * app/disp_callbacks.c : use view_unfullscreen() for GDK_Escape
2637         ALso modified to allow handling of unmodified keys again (aren't
2638         there plenty of bug reports for this?
2640 2004-11-06  Hans Breuer  <hans@breuer.org>
2642         * objects/UML/class_dialog.c : fixed casts for usage
2643         of dia_color_selector_set_color()
2644         
2645         * app/filedlg.c : pass a valid filenames to 
2646         gtk_file_chooser_set_filename(), if we don't have a name
2647         don't call it at all. Gets rid of "libgnomevfs-CRITICAL **: 
2648         file gnome-vfs-utils.c: line 749 (gnome_vfs_get_uri_from_local_path): 
2649         assertion `local_full_path[0] == '/'' failed"
2650         
2651 2004-11-06  Lars Clausen  <lars@raeder.dk>
2653         * app/properties.c (create_dialog): 
2654         * app/diagram_tree_window.h: 
2655         * app/diagram_tree.h (HIDDEN_TYPES_NAME): 
2656         * app/diagram_tree_menu_callbacks.c: 
2657         * app/diagram_tree_window.c: 
2658         * app/diagram_tree_menu.c: 
2659         * app/diagram_tree.c: Changed to use persistence instead of
2660         strange hacks in preferences.
2662         * lib/persistence.h:
2663         * lib/persistence.c (persistent_list_get_glist): Don't deref null
2664         pointer.  New function persistent_list_remove_all, and
2665         fixed persistent_list_remove to ... work!
2667 2004-11-05  Lars Clausen  <lars@raeder.dk>
2669         * app/paginate_psprint.c (diagram_print_ps): Call
2670         diagram_print_destroy on destroy rather than delete_event.  That
2671         way the gtk_widget_destroy() calls cleans up properly.  Fixes bug
2672         #154898. 
2674 2004-11-02  Lars Clausen  <lars@raeder.dk>
2676         * objects/UML/class.c (umlclass_load): Actually load the saved
2677         fonts and font sizes. Fixes bug #157016
2679         * configure.in: Require at least GTK+ 2.4.
2681         * app/filedlg.c: Changed to use 2.4 file dialog!  Finally,
2682         finally, finally.  Not quite bulletproof yet, and I need to figure
2683         out a minimum version of Gtk that doesn't spew warnings all over.
2685         * app/diagram.[ch]: diagram_set_filename with const filename.
2687         * app/sheets_dialog_callbacks.c
2688         (on_sheets_dialog_button_apply_clicked): Sheet menu now almost
2689         correctly recreated.  Still something fishy with the sheet menu in
2690         the dialog after adding a new sheet.  Probably the sheet name
2691         being stomped.
2693 2004-11-01  Lars Clausen  <lars@raeder.dk>
2695         * lib/widgets.[ch] (dia_dynamic_menu_reset): Harden against memory
2696         stmping.  Now requires g_free here and there.
2698         * app/preferences.[ch] (prefs_data): Got rid of hidden prefs value
2699         for remembering last sheet, better off as persistent string.  Must
2700         hunt down other things like that.
2702         * app/interface.c (create_sheets): Now remembers last sheet
2703         selected again. Fixes bug #157036.
2705 2004-11-01  Hans Breuer  <hans@breuer.org>
2707         * plug-ins(tex_escape_string) : fixed it [g_utf8_next_char
2708         will never become NULL but only point to the next char
2709         which might indeed be \0]
2710         Use tex_escape_string() to avoid writing invalid tex,
2711         fixes bug #112377
2713         * **/* : a bunch of changes caused by trying 'make distcheck'
2714         which still fails, see Bug #144527
2716 2004-10-31  Lars Clausen  <lars@raeder.dk>
2718         * plug-ins/pstricks/render_pstricks.c (export_pstricks): Avoid
2719         floating point numbers being printed with commas.  Fixes bug
2720         #156148.
2721         
2722         * app/interface.c (create_sheet_dropdown_menu): New function to
2723         create the sheet menu, and also allow recreation.  Still buggy and
2724         slightly prone to magic.
2726         * objects/UML/class_dialog.c
2727         (attributes_list_selection_changed_callback): Don't try to update
2728         the widgets after they're destroyed.  Fixes bug #156706 (I think).
2730         * lib/widgets.c (dia_unit_spinner_new): Avoid crash on NULL
2731         adjustement.  Fixes bug #154637
2733         * sheets/ER/Makefile.am (PIX): 
2734         * sheets/GRAFCET/Makefile.am (PIX): 
2735         * sheets/Jackson/Makefile.am (PIX): 
2736         * sheets/Istar/Makefile.am (PIX): 
2737         * sheets/KAOS/Makefile.am (PIX): Actually install PNG instead of
2738         XPM.  Why these have their pictures in sheets rather than shapes I
2739         don't know.  Fixes bug #152142.
2741 2004-10-31  Hans Breuer  <hans@breuer.org>
2743         * plug-ins/pixbuf/pixbuf.c : when running non interactive
2744         Dia won't call color_init() as it assumes no display. If
2745         we have one as tested ourselve we can as well color_init()
2746         to avoid g_warnings() and produce the right collors.
2747         Fixes bug #155495.
2748     
2749         * app/app-procs.c : try to be a little more helpful
2750         and correct with regard to the command line options.
2751         Renamed --export-to-format to --export-filter and some
2752         other string changes
2754 2004-10-31  Hans Breuer  <hans@breuer.org>
2756         * plug-ins/wmf/wmf_gdi.cpp plug-ins/wmf/wmf_gdi.h :
2757         added GetDeviceCaps() dummy implementation to make 
2758        'wmf' compile on Linux, too.
2760 2004-10-31  Hans Breuer  <hans@breuer.org>
2762         * plug-ins/wmf/wmf.cpp : patch from Robert Ögren <gtk@roboros.com>
2763         to finally fix the long lasting clipping issue, bug #85831
2764         Also fixed the line style issue for printing on XP and don't 
2765         miss to ReleaseDC()
2767         * plug-ins/wmf/wmf_gdi.[hc] : added ReleaseDC()
2769         * plug-ins/python/diasvg.py : filter illegal characters from <text/> section
2770         (e.g. &lt; instead of <), fixes bug #155697 (Duncan Palmer)
2772         * plug-ins/python/pydia-error.[hc] : improvede exception handling to transfer 
2773         some info from the console (soon gone on windoze) to message_error()
2774         * plug-ins/python/pydia-render.c plug-ins/python/diamodule.c : use it.
2775         Also some setlocale() hack to let Python behave as expected for LC_NUMERIC
2777         plug-ins/python/diasvg_import.py : re.compile() only once per expression
2778         and some more playing with scaling
2780         * plug-ins/python/makefile.msc : updated
2782 2004-10-30  Hans Breuer  <hans@breuer.org>
2784         * shapes/Civil/civil_arrow_right.shape : removed
2785         <aspectratio type="fixed" /> thus allowing to change
2786         width and height independently, fixes #154897 
2787         (Serge Robinson) by making it consistent with the
2788         up arrow
2790 2004-10-30  Hans Breuer  <hans@breuer.org>
2792         * plug-ins/xfig-xfig-export.c(hasArrow) : don't crash
2793         on arrow being NULL, fixes bug #143063
2795 2004-10-30  Hans Breuer  <hans@breuer.org>
2797         * lib/diagramdata.c app/diagram.c app/disp_callbacks.c
2798           plug-ins/python/pydia-diagram.c plug-ins/python/pydia-diagramdata.c :
2799         removed use of chached variable DiagramData::selected_count
2800         * lib/diagramdata.h : renamed to selected_count_private
2801         (kept for binary compatibility and sanity checks)
2802         * lib/diagramdata.c : more checks on a screwed up selection list
2804         * app/diagram.c(diagram_group_selected) : don't screw up the
2805         DiagramData::selected list, was assignment of parent_list_affected(),
2806         * lib/diagramdata.c (data_select, data_unselect) : protect against
2807         multiple selections of the same object and removement of a not selected
2808         object (apparently caused by the recently added group undo stuff)
2809         together with the above this finally fixes bug #153525
2811         * app/Makefile.am : fix ./autogen.sh ->
2812         app/Makefile.am:171: blank line following trailing backslash
2814         * app/commands.c(objects_group_callback,objects_ungroup_callback) :
2815         ddisplay_do_update_menu_sensitivity() here as well
2817         * configure.in : make the experimental state of the cairo plug-in
2818         more visible
2819         
2820         * app/dia-props.c(diagram_properties_update_sensitivity) : don't
2821         try to update anything if we can't find an active diagram
2822         Additionally set static dialog pointer to NULL by gtk_widget_destroyed
2823         
2824         * configure.in : another attempt to fix bug #156116. If there is
2825         anyone with autotools knowledge reading this - help appreciated ;-)
2827 2004-10-30  Hans Breuer  <hans@breuer.org>
2829         * objects/makefile.msc objects/UML/Makefile.am
2830           objects/UML/uml.c objects/UML/transition.c 
2831           objects/UML/pixmaps/transition.xpm sheets/uml.sheet.in : 
2832         Patch from Peter Allin adds statechart transitions to the UML sheet -
2833         bug #144956 - modified to not print("%s", NULL) which crashes on
2834         newer glib versions. Also added pixmap/transition.xpm to Makefile.am
2836 2004-10-30  Hans Breuer  <hans@breuer.org>
2838         * doc/sheet.dtd doc/diagram.dtd : the namespace does *not* 
2839         match the website anymore, i.e. sould remain unchanged. 
2840         See below and lib/dia_xml.h for the reasoning
2842         * lib/libdia.def : removed dia_color_selector_get_type
2844         * lib/dia_image.c(dia_image_load) : check for pixbuf warnings
2845         (like broken PNG) and g_warning if appropriate
2847         * app/interface.c : #include "message.h"
2849         * app/diaunitspinner.hc : replaced the superfluous #if-0-juggling,
2850         used #error "Moved to lib/widgets.[hc]" instead (IMO it would be
2851         better to just move diaunitspinner to lib/ instead of polluting
2852         widgets.[hc] even more ;)
2853         * app/makefile.msc lib/libdia.def : updated
2855         * app/filedlg.c : patch from gtk@roboros.com, fixes #156224
2856         * app/app_procs.c : patch from gtk@roboros.com, fixes #156088
2858         * config.h.win32 : #define HAVE_CAIRO to let the Cairo plug-in
2859         do something useful when compiled
2861         * plug-ins/cairo/diacairo.c : added 'PNG with alpha' rendering.
2862         Also some more #ifdefed backends usage.
2864 2004-10-10  Lars Clausen  <lars@raeder.dk>
2866         * lib/widgets.c: Better labels for color selector menu.
2868         * app/dia-props.c (diagram_properties_respond): 
2869         * app/preferences.c (prefs_get_value_from_widget): Don't assume
2870         that a dia color selector is of type DiaColorSelector:)
2872         * lib/widgets.[ch]: Color selector changed to dynamic menu.
2874         * lib/prop_attr.c (colorprop_set_from_widget): Don't assume
2875         DiaColorSelector. 
2877 2004-10-09  Lars Clausen  <lars@raeder.dk>
2879         * lib/diaarrowchooser.c (dia_arrow_preview_init): Slightly wider
2880         arrow preview to avoid long arrow heads flipping.
2882         * lib/arrows.[ch]: Support for getting from name to arrow type,
2883         and for listing all arrow names.
2884         
2885         * lib/widgets.[ch]: Changed arrow selector to use dynamic menu.
2887         * lib/libdia.def: Added new global functions.
2889         * lib/persistence.[ch]: Two of the persistent_list functions to
2890         return whether the item was found in the list.
2892         * app/interface.c (create_sheets): Use DiaDynamicMenu to handle
2893         the growing number of sheets.
2895         * lib/widgets.[ch]: Add DiaDynamicMenu as a generalization of the
2896         font menu.
2898 2004-10-05  Lars Clausen  <lars@raeder.dk>
2900         * objects/UML/association.c: Patch from Harvey Thompson
2901         <harveyandsu@yahoo.com>:  Better placement of association texts.
2903 2004-10-03  Lars Clausen  <lars@raeder.dk>
2905         * lib/widgets.c (dia_font_selector_add_menu_item): Make font menu
2906         use the fonts in question.  Can't set tooltips with the name since
2907         lib objects don't know the tool_tips thing, which is rather
2908         app-related.
2910 2004-09-19  Hans Breuer  <hans@breuer.org>
2912         * plug-ins/xslt/*.xsl : s/apply-templates match/apply-templates select/
2913         fixes bug #148278, carlosrp@idea.com.py (Carlos Ra�l Perasso)
2915 2004-09-19  Hans Breuer  <hans@breuer.org>
2917         * dia.desktop.in : string changes as proposed in bug #151822
2918         
2919         * lib/Makefile.am : remove -module from libdia_la_LDFLAGS,
2920         appearts not to be needed on Linux and breaks the build 
2921         on OSX. Fixes bug #152970
2922         
2923 2004-09-18  Lars Clausen  <lars@raeder.dk>
2925         * app/commands.c (view_show_all_callback): Add a bit of border
2926         around Ctrl-E'd diagram, for easier select and better view of edges.
2928 2004-09-19  Hans Breuer  <hans@breuer.org>
2930         * app/Makefile.am : trying to fix the fix from 2004-02-15
2931         Overwriting AM_LDFLAGS still gave a automake warning and it 
2932         also appeard to break linking against gtklibs in a differnt 
2933         prefix. Use dia_LDFLAGS instead.
2935         * plug-ins/svg/svg-import.c : initialize 'end' before usage
2936         patch from dcbw@redhat.com (Dan Williams), fixes bug #150548
2937         
2938         * lib/diarenderer.c : don't try to draw lines which are so much 
2939         degenerated that their point count became negative, fixes bug #148139
2940         
2941         * lib/font.c(layout_cache_equals) : don't crash on nonexisting 
2942         strings (NULL from g_strdup()) 
2944 2004-09-10  Steffen Macke <sdteffen@web.de>
2946         * lib/libdia.def: added color_new_rgb(), focus_previous(),focus_next(),
2947         give_focus(),give_focus_to_object(),remove_focus(),reset_foci()
2948         * app/create_object.c:
2949         * app/diaunitspinner.c:
2950         * app/disp_callbacks.c:
2951         * app/makefile.msc:
2952         * app/modify_tool.c:
2953         * lib/prop_geomtypes.c:
2954         * lib/prop_geomtypes.h: made compile with msvc
2956 2004-09-10  Lars Clausen  <lars@raeder.dk>
2958         * lib/widgets.c: Insulate conversion from outside API by adding
2959         internal function to set value.  Adjustment not appropriate for
2960         units yet.
2962         * lib/prop_geomtypes.c (lengthprop_get_widget): Remove debug info
2964 2004-09-07  Lars Clausen  <lars@raeder.dk>
2966         * app/diapagelayout.c: Include from widgets.c rather than
2967         diaunitspinner.
2969 2004-09-03  Lars Clausen  <lars@raeder.dk>
2971         * objects/standard/box.c: Use PROP_TYPE_LENGTH for corner_radius
2972         as unit-based property testbed.
2974         * lib/prop_geomtypes.c (lengthprop_reset_widget): Implement length
2975         and fontsize widgets. 
2977         * app/Makefile.am (dia_core_files):
2978         * app/diaunitspinner.h: 
2979         * app/diaunitspinner.c: 
2980         * lib/widgets.h: 
2981         * lib/widgets.c (dia_unit_spinner_update): Move diaunitspinner to
2982         lib/widgets.[ch], as it's used in the properties code now.
2984 2004-08-31  Steffen Macke <sdteffen@web.de>
2986         * doc/en/usage-objects-basic.xml: Mentioning supported image formats.
2988 2004-08-30  Lars Clausen  <lars@raeder.dk>
2990         * app/textedit.c: 
2991         * app/diagram.c (diagram_remove_all_selected): Remove debugging
2992         information. 
2994         * lib/color.[ch]: 
2995         * app/undo.c: 
2996         * app/disp_callbacks.c: 
2997         * app/Makefile.am: 
2998         * app/create_object.c: 
2999         * app/textedit.[ch]: 
3000         * app/modify_tool.c: 
3001         * app/diagram.c: 
3002         * lib/text.c: 
3003         * lib/focus.[ch]: Change in focus mechanism to allow highlight of
3004         current input object, multiple inputs per object, and tabbing
3005         between objects.
3007 2004-08-28  Steffen Macke <sdteffen@web.de>
3009         * makefile.msc: added bs to ALL_LINGUAS; adjusted .mo file creation to
3010         allow separate installer component "Translations"
3012 2004-08-27  Akagic Amila  <bono@linux.org.ba>
3014         * configure.in: Added 'bs' to ALL_LINGUAS.
3016 2004-08-26  Steffen Macke <sdteffen@web.de>
3018         * app/makefile.msc: using /subsystem:windows again
3019         * makefile.msc: updated ALL_LINGUAS
3021 2004-08-21  Kjartan Maraas  <kmaraas@gnome.org>
3023         * configure.in: Add «nb» to ALL_LINGUAS.
3025 2004-08-21  Steffen Macke <sdteffen@web.de>
3027         * plug-ins/dxf/dxf-export.c: Patch from 
3028         Takeshi Hamasaki <hma@syd.odn.ne.jp>, fixes text alignment
3030 2004-08-17  Lars Clausen  <lars@raeder.dk>
3032         * config.h.win32: 
3033         * dia.spec (Release): 
3034         * doc/pl/dia.xml: 
3035         * doc/en/dia.xml: 
3036         * NEWS: 
3037         * configure.in: 
3039 2004-08-13  Ankit Patel <ankit@redhat.com>
3041         * configure.in: Added "gu" in ALL_LINGUAS.
3043 2004-08-07  Lars Clausen  <lars@raeder.dk>
3045         * configure.in:
3046         * config.h.win32: 
3047         * doc/pl/dia.xml: 
3048         * doc/en/dia.xml: 
3049         * dia.spec (Release): 
3050         * NEWS: New release 0.94-pre6
3052 2004-08-07  Lars Clausen  <lars@raeder.dk>
3054         * app/highlight.c (highlight_reset_objects): Unhighlight inside
3055         groups as well.
3057         * app/load_save.c: 
3058         * plug-ins/shape/shape-export.c: String capitalization fix from
3059         Alan Horkan <horkana@tcd.ie>
3061         * objects/UML/class.c (umlclass_show_comments_callback): Make UML
3062         Class object menu kinda work, rather than blow up.  Doesn't do a
3063         proper undoable change yet.
3065 2004-08-06  Lars Clausen  <lars@raeder.dk>
3067         * app/filedlg.c (file_save_as_callback): Don't remove related
3068         dialogs from the NULL diagram.
3070 2004-08-02  Lars Clausen  <lars@raeder.dk>
3072         * config.h.win32: 
3073         * doc/pl/dia.xml: 
3074         * doc/en/dia.xml: 
3075         * dia.spec (Release): 
3076         * NEWS: Pre5 with leak fix.
3078         * lib/font.c (dia_font_build_layout): Don't try to save an
3079         allocation of LayoutCacheItem if it breaks layout cache hash.
3080         Also make hash function correct, remove explicit height entry
3081         (it's in pfd), and make sure things are correctly unreffed.
3082         Finally fixes #148141.
3084         * lib/text.c (text_set_attributes, text_set_font): Safely unref
3085         when changing font, and actually set the new font in
3086         text_set_font(!).
3087         (text_get_attributes): Ref copied font.
3089 2004-08-01  Lars Clausen  <lars@raeder.dk>
3091         * NEWS: 
3092         * configure.in: 
3093         * dia.spec (Release): 
3094         * config.h.win32: 
3095         * doc/pl/dia.xml: 
3096         * doc/en/dia.xml: Prerelease 4.
3098         * lib/font.c (dia_font_build_layout): Better comparision and
3099         freeing of font cache.
3101 2004-07-31  Lars Clausen  <lars@raeder.dk>
3103         * lib/font.c (dia_font_build_layout): Faster update to avoid
3104         memory leaks.
3106         * app/app_procs.c: Fix from Tom Parker <palfrey@bits.bris.ac.uk>:
3107         Correctly initialize export filter variable.
3109 2004-07-25  Lars Clausen  <lars@raeder.dk>
3111         * dia.spec (Release): 
3112         * configure.in: 
3113         * NEWS: 
3114         * config.h.win32: 
3115         * doc/en/dia.xml: 
3116         * doc/pl/dia.xml: Pre3 coming out.
3118         * lib/diarenderer.c (draw_polygon): 
3119         * plug-ins/dxf/dxf-export.c (export_dxf): Two fixes by Takeshi
3120         Hamasaki <hma@syd.odn.ne.jp>: Correct header to be a 0 (zero)
3121         rather than O (letter), and assert num_points > 1 rather than the
3122         other way around.
3124         * app/recent_files.c: 
3125         * app/filedlg.c: 
3126         * app/diagram.c: 
3127         * app/app_procs.c: Patch from Vitaly Lipatov <lav@altlinux.ru>:
3128         Make filenames conform to filesystem encoding.
3130         * RDP/.cvsignore: Added standard ignore.
3131         
3132         * shapes/network/Makefile.am (SHAPES): Use PNG instead of XPM for
3133         last entry patch-panel, too.
3135         * app/*.png:
3136         * shapes/Circuit/*.png:
3137         * shapes/Civil/*.png:
3138         * shapes/Contact/*.png:
3139         * shapes/Electric/*.png:
3140         * shapes/MSE/*.png:
3141         * shapes/Pneumatic/*.png:
3142         * shapes/SDL/*.png:
3143         * shapes/flowchart/*.png:
3144         * shapes/jigsaw/*.png:
3145         * shapes/network/*.png:
3146         * shapes/sybase/*.png:
3147         * samples/dia*.png:
3148         * dia_gnome_icon_large.png:
3149         * doc/pl/graphics/*.png: Set -kb for PNGs.
3150         
3151         * sheets/{ER,GRAFCET,Istar,Jackson,KAOS}: Added .png files.
3153 2004-07-22  Lars Clausen  <lars@raeder.dk>
3155         * NEWS: 
3156         * config.h.win32: 
3157         * doc/en/dia.xml: 
3158         * doc/pl/dia.xml: 
3159         * dia.spec (Release): 
3160         * configure.in: Update to version 0.94-pre2.
3162         * app/load_save.c (diagram_data_write_doc): Use new namespace
3163         here, too.
3165         * lib/object.h (OBJECT_COMMON_PROPERTIES): Remove 'Dia' from
3166         hidden objects properties.
3168         * objects/standard/line.c: Remove halffinished line gap box from
3169         properties list.
3171         * app/paginate_psprint.c: 
3172         * app/filedlg.c: Patch from kimmidi@novell.com (Kiran Kumar
3173         Immidi): Close export and print dialog with diagram as well.
3174         (#129520)
3175         
3176         * lib/diaarrowchooser.[ch]: Patch from pborelli@katamail.com (paolo
3177         borelli):  Remove deprecated stuff (#137693)
3179         * app/dia-props.c (create_diagram_properties_dialog): Patch from
3180         kimmidi@novell.com (Kiran Kumar Immidi):  Close properties dialog
3181         on destroy.
3183 2004-07-21  Ray Strode  <rstrode@redhat.com>
3185         * dia/dia.desktop.in: Add MimeType line to desktop file
3186         new mime sytem.
3188 2004-07-18  Hans Breuer  <hans@breuer.org>
3190         * shapes/(Circuit|Contatct|MSE|network|Pneumatic|SDL|sybase)/Makefile.am 
3191           sheets/UML/*.png : icons in png format
3192         Partial fixup of stuff broken with the following comment:
3193         "7 days : xpm->png, namespace fix, first rotation bits."
3195         * app/load_save.c(read_objects) : don't add objects to the layer.
3196         This function is called recursively and only the topmost objects
3197         belong in the layers object list. Fixes bug #145417 and is the
3198         the real fix for bug #142480
3199         
3200         * app/app_procs.c : make the --size hack even uglier, but work again
3201         
3202         * lib/dia_dirs.c(dia_get_absolute_filename) : must not free()
3203         but g_free() what is returned by g_build_filename()
3204         
3205         * objects/custom/custom_object.c(custom_destroy) : handle all enum
3206         values in switch to get rid of the warning
3207         
3208         * objects/custom/shape_info.c : use g_ascii_strtod(), get rid 
3209         of setlocale()/strtod()
3210         * lib/dia_svg.c : dito
3211         * lib/dia_xml.c : almost
3213         * plug-ins/python/group_props.py : use the string representation of 
3214         value to ensure "unique values". If the strings would not be different
3215         the user cann't see the difference either
3217 2004-07-17  Lars Clausen  <lars@raeder.dk>
3219         * lib/persistence.h: Have "void" in prototypes (#142663)
3221         * lib/widgets.c (dia_font_selector_init): Better string handling
3222         (#142663) 
3224         * lib/persistence.c (persistence_save_type): Small fixes (#142663)
3226         * objects/standard/image.c (image_load): Use path of diagram
3227         rather than running directory as base for image file place.
3229         * doc/{diagram,sheet}.dtd: Move DTD namespace to new site, and
3230         syntactic fixes. 
3231         
3232         * app/disp_callbacks.c (ddisplay_canvas_events): Patch from
3233         Ambrose Li <a.c.li@ieee.org>:  Better IM context handling.
3235         * Re-added new sample diagrams binarily.
3237 2004-07-17 Sagar Rastogi <rastogi@students.iiit.net>
3239         * app/disp_callbacks.c: Fixed #144962 (also in KNOWN_BUGS),
3240         Disabled keyboard accels when dragging an object.       
3242 2004-07-14  Lars Clausen  <lars@raeder.dk>
3244         * app/grid.c (snap_to_grid): Use diagrams grid setting to
3245         determine hex grid snap.
3247         * doc/pl/Makefile.am: Avoid error based on backslash in comment.
3248         
3249         * app/interface.h: Avoid multiply defined symbols (#147396)
3251 2004-07-10  Lars Clausen  <lars@raeder.dk>
3253         * app/sheets_dialog_callbacks.c (write_user_sheet): 
3254         * lib/sheet.c (load_register_sheet): Don't introduce double
3255         slashes in namespace.
3257         * lib/dia_xml.h (DIA_XML_NAME_SPACE_BASE): Keep consistent with
3258         old diagrams, or XSLT will barf all over.
3259         
3260         * shapes/RDP/place.shape: 
3261         * shapes/RDP/transition.shape: 
3262         * shapes/RDP/Makefile.am: Added .png entries to SHAPES and changed
3263         shapes to use those.
3265 2004-07-07  Lars Clausen <lars@raeder.dk>
3267         * config.h.win32: 
3268         * doc/{en,pl}/dia.xml: 
3269         * dia.spec: 
3270         * configure.in: 
3271         * NEWS: First prerelease of version 0.94.  Now with release
3272         versions in a branch and main devel in the trunk.
3274 2004-07-05  Hans Breuer  <hans@breuer.org>
3276         * */*.[hc] */*/*.c : a bunch of changes to make Dia compile with
3277         -std=c89. Mostly //-comments and M_PI -> G_PI
3278         [Istar, Jackson, KAOS were removed from build cause they
3279         simply have *too* much C++ comments ;]
3280         * object/UML/association.c : use g_strdup() not plain strdup()
3281         * app/paginate_psprint.c : avoid storage size of `pipe_action' 
3282         isn't known with more portable signal code
3283         
3284         * app/app_procs.c : don't call gtk_init() if just --version
3285         is requested (bug #144321, Vladimir Kondratiev)
3286         
3287         * lib/prop_attr.c(fontprop_set_from_offset) : only unref 
3288         DiaFont* if not NULL
3289         * objects/UML/class.c : moved fill_in_fontdata() to 
3290         umlclass_load() to avoid such trouble, though unsure if
3291         this really is an improvement...
3292         
3293         * shapes/network/makefile.am : patch-panel added here too
3295 2004-07-04  Hans Breuer  <hans@breuer.org>
3297         * sheets/network.sheet.in shapes/network/patch-panel.xpm
3298           shapes/network/patch-panel.xpm : added 24-Port-Patch-Panel
3299         fixes bug #136629, James McDonald
3301 2004-07-04  Hans Breuer  <hans@breuer.org>
3303         * lib/persistence.c app/load_save.c app/sheet_dialog_callbacks.c
3304           lib/object_defaults.c : revert changing of Dia's XML namespace
3305         * lib/dia_xml.h : #define DIA_XML_NAME_SPACE_BASE with a comment
3306         about its purpose and relation to real world urls.
3308         * lib/plug-ins.h : increment DIA_PLUGIN_API_VERSION and 
3309         added comment about when to do so
3310         [Should have been long time ago and probably multiple times
3311         to avoid crashing on older plug-ins]
3312         * RELEASE-PROCESS : mention DIA_PLUGIN_API_VERSION
3313         * plug-ins/xslt/xslt.c : use DIA_PLUGIN_CHECK_INIT
3315         * lib/object.c objects/UML/class.c : there are still compilers not 
3316         supporting C99 and other GCCISMs like allocating dynamic sized arrays 
3317         on the stack
3318         * objects/UML/class.h : there is a differnce between a list pointer
3319         and a list pointer pointer. We and GLib want the former.
3321         * plug-ins/pixbuf/pixbuf.c : don't use app_is_interactive () to detect
3322         if Gtk is initialized. Using gdk_display_get_default () avoids the
3323         app/* dependency and is also closer to the requirements of the
3324         plug-ins working.
3326         * plug-ins/cairo/diacairo.c : initialize "unique name" field. Also
3327         some #ifdefed support for Cairo backends not public available yet.
3329         * plug-ins/wmf/wmf.cpp : finally do extended linestyles if the
3330         windoze platform supports them. This should fix bug #109818, at
3331         least for the majority running NT or above ...
3332         * plug-ins/wmf/wmf_gdi.[hc] : portability stuff for the above
3334         * objects/makefile.msc : build Istar, Jackson and Kaos
3336         * objects/UML/class.c(umlclass_load) : don't wrap by default to 
3337         keep old diagrams as they were - instead of this nice new effect ;-)
3338         Also make "wrap_operations" PROP_TYPE_BOOL in PropDescriptions
3340         * objects/UML/class.c : mark for translation _("Wrap ...
3342         * objects/UML/class.c : more correct types, also some default properties
3343         dialog pages adjustment (triggering a bug in lib/prop_widgets.c ?;)
3345         * objects/UML/activity.c : removed a leftover from the 
3346         use-localization-for-font-substitution-hack
3348         * shapes/ChemEng shapes/Cybernetic shapes/Map/Isometric :
3349         'cvs admin -kb *.png' PNG files should already be *added* as binary,
3350         otherwise they are not readable on line-end-converting-platforms
3352         * plug-ins/python/use g_new0(Dia<Im|Ex>portFiler), avoids crashing 
3353         filter_get_by_name()
3355         * plug-ins/python/pydia-property.c : some more g_warnings for
3356         not implemented conversions
3358         * plug-ins/python/group_props.py : ensure unique property values
3359         at the right place. Now something like :
3360         - load an old UML class diagram
3361         - change one of the classes to wrap operations
3362         - select all classes (/Select/Same Type)
3363         - /Dialogs/Group Properties : check wrap_operations, select '1'
3364         - Ok, works like a charm :-)
3366 2004-07-04  Lars Clausen  <lars@raeder.dk>
3368         * lib/diagdkrenderer.c (draw_string): Don't unref NULL
3369         pixbuf. (#145362)
3370         
3371 2004-07-03  Lars Clausen  <lars@raeder.dk>
3373         * app/app_procs.c (do_convert): Two patches from Vitaly Lipatov
3374         <LAV@VL3143.spb.edu>: Fixes console output problems and some
3375         interactiveness problems.
3377 2004-07-02  Lars Clausen  <lars@reader.dk>
3379         * plug-ins/pixbuf/pixbuf.c (dia_plugin_init): Don't load if the
3380         app isn't interactive.
3382 2004-07-01  Lars Clausen  <lars@raeder.dk>
3384         * plug-ins/cairo/diacairo.c: Add init of last field of filter
3385         struct to remove crash.
3387         * sheets/Makefile.am (sheet_in_files): 
3388         * shapes/Makefile.am: 
3389         * sheets/ChemEng.sheet.in: 
3390         * shapes/ChemEng/Makefile.am: 
3391         * configure.in: 
3392         New sheet from "Federico Zenith" <zenith@chemeng.ntnu.no>:
3393         Chemical engineering shapes.
3394         
3395         * app/Makefile.am (run_dia.sh$(EXEEXT)): Changed $* to $@ to allow
3396         multiple arguments when using devel script.
3398         * app/display.c (new_display): 
3399         * app/dia-props.c: 
3400         * lib/diagramdata.c (new_diagram_data): 
3401         * lib/diagramdata.h: 
3402         * app/preferences.h: 
3403         * app/preferences.c: 
3404         * app/grid.c: 
3405         * app/diagram.c: 
3406         * lib/diagramdata.c (new_diagram_data): Patch from Peter Poulsen
3407         <peter_poulsen@stofanet.dk>: Add hexagonal grid!
3409         * HACKING: 
3410         * doc/pl/authors.xml: 
3411         * doc/en/authors.xml: 
3412         * lib/object_defaults.c (dia_object_defaults_save): 
3413         * readme.win32 (BTW): 
3414         * lib/persistence.c (persistence_save): 
3415         * app/load_save.c (diagram_data_write_doc): 
3416         * app/commands.c (help_about_callback): 
3417         * README: Fix links to home page.
3419         * lib/font.c: 
3420         * app/load_save.c (diagram_data_load): 
3421         * lib/prop_text.c (stringprop_load): Avoid NULL strings when
3422         loading, and guard against them when fonting.
3424         * lib/diarenderer.c (draw_rounded_polyline): Patch from
3425         anthonym@overture.com:  Make limited rounding a corner-specific
3426         rendering-only thing.
3428 2004-06-30  Lars Clausen  <lars@raeder.dk>
3430         * lib/font.c (dia_font_build_layout): Return to 0.93.1 font size
3431         adjustment: If you can't fix it, at least don't change it.
3433         * objects/SADT/arrow.c (sadtarrow_draw): Use new rounded arrow
3434         code instead of individual code in here.
3436 2004-06-29  Lars Clausen  <lars@raeder.dk>
3438         * objects/UML/association.c: Patch from Kiran
3439         Kumar Immidi <kimmidi@novell.com>:  Fix bounding box for line end
3440         text. 
3442         * lib/geometry.c: 
3443         * lib/geometry.h: 
3444         * lib/diarenderer.c (draw_rounded_polyline): 
3445         * objects/standard/polyline.c (polyline_draw): 
3446         * objects/standard/zigzagline.c (zigzagline_draw): 
3447         Patch from anthonym@overture.com:  Add rounded polylines.
3449 2004-06-27  Lars Clausen  <lars@raeder.dk>
3451         * lib/font.c (dia_font_new_from_style): Initialize legacy name.
3453         * lib/widgets.c (dia_font_selector_get_family_from_name): Don't
3454         free family list before taking out the pointer we need. Also set
3455         the entry_nr correctly so we get the menu set up right.
3457 2004-06-23  Lars Clausen  <lars@raeder.dk>
3459         * lib/widgets.c (dia_toggle_button_new_with_images): Sink the
3460         images at the right place.
3462         * objects/Istar/actor.c
3463         * objects/Istar/goal.c
3464         * objects/Istar/istar.c
3465         * objects/Istar/istar.h
3466         * objects/Istar/link.c
3467         * objects/Istar/other.c
3468         * objects/Jackson/domain.c
3469         * objects/Jackson/jackson.c
3470         * objects/Jackson/jackson.h
3471         * objects/Jackson/phenomenon.c
3472         * objects/Jackson/requirement.c
3473         * objects/KAOS/goal.c
3474         * objects/KAOS/kaos.c
3475         * objects/KAOS/kaos.h
3476         * objects/KAOS/metaandorrel.c
3477         * objects/KAOS/metabinrel.c
3478         * objects/KAOS/other.c: Patch from Patch from Christophe Ponsard
3479         <cp@cetic.be>: Fix instability issues caused by not returning NULL
3480         in *_move_handle and *_move.  Also improved the headers with
3481         correct (c) information.
3483 2004-06-22  Lars Clausen  <lars@raeder.dk>
3485         * objects/KAOS/goal.c:
3486         * objects/KAOS/other.c:
3487         * objects/Istar/actor.c:
3488         * objects/Istar/goal.c:
3489         * objects/Istar/other.c:
3490         * objects/Jackson/domain.c:
3491         * objects/Jackson/phenomenon.c: Patch from Christophe Ponsard
3492         <cp@cetic.be>: Fix resize issues.
3494         * app/filedlg.c (file_dialog_hide): Patch from Kiran
3495         Kumar Immidi <kimmidi@novell.com>: Check for null when removing
3496         related dialog. #129520.
3498         * app/dia-props.c (diagram_properties_show): Patch from Kiran
3499         Kumar Immidi <kimmidi@novell.com>: Make sure properties dialog is
3500         a child of its diagram. #129520.
3502         * objects/UML/association.c (association_load): Patch from Kiran
3503         Kumar Immidi <kimmidi@novell.com>: Update positions properly for
3504         text placement. #118313.
3506 2004-06-17  Lars Clausen  <lars@raeder.dk>
3508         * objects/KAOS/Makefile.am: Add pixmaps/goal.xpm to EXTRA_DIST
3510         * Makefile.am: Make THANKS only be generated by maintainers.
3512         * doc/pl/Makefile.am: Removed usage+objects+basic.xml from
3513         Makefile, too.
3515         * configure.in: Added three missing Makefiles.
3517         * app/diagram.[ch]: 
3518         * app/filedlg.c:
3519         Patch from shuveb@yahoo.com (Shuveb Hussain): Remove
3520         diagram-related (save) dialog when closing diagram.  To be
3521         extended to other dialogs.
3523         * doc/pl/dia.xml: Removed reference to objects-basic. (#144527)
3525         * samples/Istar.dia:
3526         * samples/Jackson.dia:
3527         * samples/KAOS.dia:
3528         * sheets/Istar.sheet.in:
3529         * sheets/Jackson.sheet.in:
3530         * sheets/KAOS.sheet.in:
3531         * sheets/Istar/*:
3532         * sheets/Jackson/*:
3533         * sheets/KAOS/*:
3534         * objects/Istar/*:
3535         * objects/Jackson/*:
3536         * objects/KAOS/*:
3537         * configure.in: 
3538         * objects/Makefile.am (SUBDIRS): 
3539         * sheets/Makefile.am (SUBDIRS): 
3540         * samples/Makefile.am: Additions from Christophe Ponsard
3541         <cp@cetic.be>: Jackson, I* and KAOS diagram support.  Needs a bit
3542         of hacking still.
3544 2004-06-12  Lars Clausen  <lars@raeder.dk>
3546         * lib/properties.h: 
3547         * lib/prop_geomtypes.[ch]: Preparation for selectable units.
3549         * lib/font.h: Toning down comments a bit:)
3551         * lib/font.c (dia_font_build_layout): Playing around with DPI 
3553         * objects/UML/association.c (association_load): Avoid crashes on
3554         strcmp with NULL.
3556         * objects/UML/association.c: Patch from kimmidi@novell.com:
3557         Improve placement of labels when vertical.  Part fix of #118313
3559         * lib/object.c (dia_object_is_selected): Grouped objects are not
3560         selected, only the group itself.  Thus, don't crash when grouping
3561         beziers. #143681
3563         * objects/UML/association.c: Patch from kimmidi@novell.com:  Agree
3564         on how to represent empty strings.  Fixes #143639.
3566         * lib/object.c (dia_object_is_selected): Added comment answer.
3568 2004-06-12  Hans Breuer  <hans@breuer.org>
3570         * lib/diagramdata.c lib/object.c : deal with grouped objects
3571         not knowing their parent_layer, i.e. avoid crashing in 
3572         dia_object_is_selected() via group_draw() [ Triggered by
3573         playing with the Visio generated svg from bug #143455 ]
3575         * plug-ins/python/diasvg_import.py : started to implement
3576         transformation="translate(...)" and <style/> handling. Also
3577         use some other completely bogus values for em/ex scaling
3578         
3579 2004-06-08  Lars Clausen  <lars@raeder.dk>
3581         * plug-ins/cairo/.cvsignore: CVS-ignore generated makefiles.
3583 2004-06-07  Lars Clausen  <lars@raeder.dk>
3585         * app/layer_dialog.c (layer_dialog_set_diagram): 
3586         * app/display.c: Layer widget crash more properly dealt with in
3587         layer dialog code.
3588         
3589         * app/display.c (ddisplay_flush): Fixed crash when closing:  Layer
3590         widget deselect was called during destroy, but called
3591         ddisplay_flush, leading to a new display timeout after renderer
3592         was dead.
3594         * lib/widgets.c (dia_toggle_button_destroy): 
3595         * app/recent_files.c (recent_file_menuitem_create): 
3596         * lib/persistence.c (persistence_save_list): 
3597         * app/commands.c (edit_delete_callback): 
3598         * lib/object_defaults.c (dia_object_defaults_save): 
3599         * lib/parent.c (parent_list_affected_hierarchy): Killed leaks
3600         (#142669)
3601         
3602         * lib/widgets.c (dia_toggle_button_new_with_images): Remove
3603         debugging info.
3605         * lib/diagramdata.c (new_layer): Initialize connectibility.
3607         * app/display.c (ddisplay_obj_render): 
3608         * app/diagram.c (diagram_find_closest_connectionpoint): Take
3609         connectibility into account.
3611         * app/layer_dialog.h (struct _DiaLayerWidget): 
3612         * app/layer_dialog.c:
3613         Connectible toggle updates, now works fairly well.
3615         * app/select.c (select_transitive_callback): Make sure we're only
3616         selecting in the same layer.
3618 2004-06-04  Lars Clausen  <lars@raeder.dk>
3620         * app/pixmaps/Makefile.am: Also install connectable images.
3621         
3622         * app/layer_dialog.c (dia_layer_update_from_layer): Initially set
3623         layer toggles from layer itself.  Also update diagram correctly
3624         for visibility.  Still need updates for connectivity behaviour.
3626 2004-06-03  Hans Breuer  <hans@breuer.org>
3628         * plug-ins/wpg/wpg.c(draw_image) : take rowstride into account
3630         * lib/diagdkrenderer.c(set_linejoin) : actually set
3631         join_style not cap_style
3632         (set_dashes): with the correct number of dashes
3634 2004-06-03  Lars Clausen  <lars@raeder.dk>
3636         * app/modify_tool.c (click_select_object): 
3637         * lib/text.c (text_set_cursor): 
3638         * app/disp_callbacks.c (ddisplay_canvas_events): Turn off text stuff.
3640 2004-05-31  Hans Breuer  <hans@breuer.org>
3642         * lib/object_defaults.c : don't 'failed to load external 
3643         entity "NULL"' when the defaults file does not exist, 
3644         bug #108764 [again: somehow this got lost]
3646         * app/paginate_gdiprint.cpp : don guess the WMF export 
3647         filter used for printing but find it by unique name.
3648         Also update for export_func renaming
3649         * plug-ins/wmf/wmf.cpp plug-ins/cairo/diacairo.c
3650         provide some unique names
3652         * app/commands.c app/disp_callbacks.c app/paginate_psprint.c 
3653           app/select.c : fix bug #140789 by always checking if there
3654         still is an active diagram before accessing it
3656         * app/defaults.c app/properties.c : user visible string should 
3657         not read DiaObject but stay as "Object defaults/properties"
3659         * app/app_procs.c : reduce the hack to pass --size to the
3660         export via user_data to the only filter supporting it. Other
3661         filters would crash on it or do worse ;(
3663         * plug-ins/wpg/wpg.c : not every 'Object' is a DiaObject ...
3665 2004-05-31  Lars Clausen  <lars@raeder.dk>
3667         * lib/widgets.h: 
3668         * lib/widgets.c: Use GtkType rather than guint for
3669         dia_size_selector_get_type. 
3671 2004-05-29  Lars Clausen  <lars@raeder.dk>
3673         * app/diapsrenderer.c (fill_bezier): Use even-odd winding rule so
3674         that it matches the screen output for selfoverlapping polygons and
3675         beziers. 
3677 2004-05-28  Hans Breuer  <hans@breuer.org>
3679         * app/load_save.c : ignore empty groups on load and don't
3680         write empty groups while saving
3681         * lib/group.h (group_update_data): there is no first object
3682         in empty groups and they probably don't need an update at 
3683         all. Maybe the shold just not exist ?
3685         * plug-ins/cairo/diacairo.c : fixed arc drawing, right aligned
3686         text positioning as well as drawing of images with alpha
3688         * plug-ins/wmf/wmf.cpp : include windows.h if eiher
3689         HAVE_WINDOWS_H or G_OS_WIN32 is defined
3691 2004-05-28  Lars Clausen  <lars@raeder.dk>
3693         * app/pixmaps/Makefile.am (imagedir): 
3694         * app/pixmaps/visible.png:
3695         * app/pixmaps/visible-empty.png: New images for the visibility
3696         button in the layer dialog.
3698         * lib/widgets.c (dia_toggle_button_new_with_images): Remove even
3699         more border around the button.  Still some left when hovering the
3700         mouse or selecting, and the grey background is annoying.
3702         * app/layer_dialog.c (dia_layer_widget_init): Use real buttons for
3703         visibility connector.
3705 2004-05-26  Lars Clausen  <lars@raeder.dk>
3707         * configure.in (DB2MAN): Better check for db2man docbook place.
3708         Need something even better.
3710         * doc/en/Makefile.am (dia.1): Conditional on having DB2MAN.
3712         * lib/widgets.c (dia_toggle_button_new_with_images): Remove
3713         extraeneous borders.
3715         * dia_logo.png:
3716         * dia_gnome_icon.png:
3717         * samples/render-test.dia: Rendering test from Hans.
3719 2004-05-24  Hans Breuer  <hans@breuer.org>
3721         * lib/filter.h : renamed DiaExportFilter::export to
3722         _DiaExportFilter::export_func (should not use c++ 
3723         keywords (g++ specifc ?) in headers. Same for import
3724         out of pure symmetry reasons
3725         * plug-ins/shape/shape-export.c plug-ins/python/diamodule.c
3726           app/diagram.c app/filedlg.c : reflect functions renaming
3728         * plug-ins/wmf/Makefile.am : finally compile the wmf plug-in
3729         under *NIX, too. [If you want something done, do it yourself ;-]
3730         * plug-ins/wmf/wmf_gdi.[hc] : some more stuff to catch up
3731         with wmf.cpp's GDI usage
3732         * plug-ins/wmf/wmf.cpp : compile even without HAVE_WINDOWS_H,
3733         [For the moment it does not much more than compiling, i.e. 
3734         the produced WMF files are invalid, if not created on windoze.]
3736         * configure.in : check for C++ to compile plug-in/wmf
3737         
3738         * objects/GRAFCET/boolequation.c : looks like fixing 
3739         another leak (untested)
3741 2004-05-23  Hans Breuer  <hans@breuer.org>
3743         * acinclude.m4 : another attempt to fix 
3744         bug #142032 (still not sure it's the right one,
3745         but works for me(tm), which the other does not ;)
3746         
3747         * plug-ins/cairo/Makefile.am
3748           plug-ins/Makefile.am 
3749           configure.in : support building the new cairo
3750         plug-in, if given --with-cairo and the cairo
3751         packages are found, see http://cairographics.org
3752         and also http://hans.breuer.org/dia/dia-cairo.htm
3754         * plug-ins/cairo/diacairo.c : make it compile
3755         with DEBUG_CAIRO defined, too.
3757 2004-05-23  Hans Breuer  <hans@breuer.org>
3759         * plug-ins/cairo/Makefile.am : initial attempt
3761         * plug-ins/cairo/diacairo.c : a new exporter based on
3762         Cairo http://cairographics.org rendering api. Currently
3763         it just can export PNG and PS but one day it might get
3764         PDF and more almost for free. [It is not yet included
3765         in the *NIX build system due to lack of auto* magic.]
3767         * plug-ins/pixbuf/pixbuf.c : always register the export
3768         filter part. If the user does not want it it can be 
3769         disabled by File/Plugins or explicit selected the other
3770         one in the Export Formats List
3772 2004-05-23  Hans Breuer  <hans@breuer.org>
3774         * lib/dia_dirs.c : #include "message.h"
3775           lib/widgets.c : #include "persistence.h"
3776           lib/widgets.c(dia_font_selector_init) : still not C99
3777           lib/persitence.h : removed unimplemented prototype
3778           lib/persitence.c(persistence_load_list) : still not C99
3779           app/create_object.c : #include "highlight.h"
3780           app/layer_dialog.c : #include "widgets.h"
3781           app/modify_tool.c : prototype functions before usage
3782           lib/object.c : if there is G_END_DECLS there _must_ be G_BEGIN_DECLS
3783         [otherwise one will have a hard time to make C++ compile ;]
3784           lib/dia_dirs.c : #include "message.h"
3785           lib/font.c : #include <gtk/gtk.h> /* just for gtk_get_default_language() */
3786           lib/
3788         * plug-ins/xfig/xfig-import.c : dont initialize an int with
3789         a string pointer
3791         * lib/dia_image.[hc](dia_image_rgba_data) : make it work
3792         as documented, i.e. _not_ copying. Plugs a memory leak in
3793         lib/dialibartrenderer.c
3795         * lib/diarenderer.c(*_rounded_rect) : renamed parameter rounding
3796         to radius to more of a clue what it is representing
3798         * */makefile.msc lib/libdia.def : updated
3800         ChangeLog : fixed some date copy&paste bug
3802 2004-05-21  Lars Clausen <lars@raeder.dk>
3804         * NEWS: Release tag.
3806         * config.h.win32: Now 0.93+cvs
3808         * RELEASE-PROCESS: Update with new info about release branches.
3809         
3810         * Many files:  Moved devel branch back into main trunk.  Should
3811         have been done in the opposite way, with release in a branch.  
3812         
3813 2004-05-20  Hans Breuer  <hans@breuer.org>
3815         * acinclude.m4 : disable setting of PYTHON_PREFIX
3816         and PYTHON_EXEC_PREFIX from prefix and exec_prefix
3817         as workaround for bug #142032 (the real fix would 
3818         involve some auto* knowledge which I don't have
3819         either;)
3820         
3821         * plug-ins/python/Makefile.am : more python 
3822         plug-ins to be installed (especially svg import,
3823         but also 'simple scale' should be useable 
3824         sometimes)
3825         
3826         * plug-ins/python/scascale.py : update display
3827         after modifying selected objects
3828         
3829         * plug-ins/python/diasvg_import.py : initialize
3830         stroke to none
3831         
3832 2004-05-18  Lars Clausen  <lars@raeder.dk>
3834         * app/diagram_tree.c (select_node): Use
3835         diagram_remove_all_selected to kill selected list.
3837         * lib/font.c: Set language when using a different context.
3839         * plug-ins/svg/svg-import.c: Changed isdigit to g_ascii_isdigit
3840         and removed ctype include (#142661).
3842         * lib/paper.c (get_default_paper): Changed isalnum to
3843         g_ascii_isalnum and removed ctype include. (#142661)
3845         * objects/custom/shape_info.c: 
3846         * lib/dia_svg.c: 
3847         * app/diaunitspinner.c: Removed unrequired ctype.h include. (#142661)
3849 2004-05-17  Hans Breuer  <hans@breuer.org>
3851         * lib/object_defaults.c : don't 'failed to load external 
3852         entity "NULL"' when the defaults file does not exist, 
3853         bug #108764
3855         * lib/widgets.c : fixed possible menu leak
3856         * lib/dialinechooser.c lib/diaarrowchooser.c : finally
3857         avoid finalization of floating references, bug #142307
3859 2004-05-15  Lars Clausen  <lars@raeder.dk>
3861         * plug-ins/xfig/xfig-import.c: Handle default fonts and illegal
3862         fonts better (#138655)
3863         
3864         * doc/pl/Makefile.am (EXTRA_DIST): Also include all xml files here.
3866         * doc/en/Makefile.am (EXTRA_DIST): Including all required files in
3867         dist, xml, dbk and man.  Also the sub-xml files. (#142098)
3869         * Makefile.am (CLEANFILES): 
3870         * sheets/Makefile.am (EXTRA_DIST): Not distributing the
3871         translation-reports, they are generated automagically.  THANKS
3872         file not considered locally generated, so is not locally
3873         cleaned. (#133735) 
3875         * lib/widgets.[ch]: Changing dia_arrow_selector to be a gobject.
3877         * lib/diaarrowchooser.c: 
3878         * lib/prop_attr.c: Fixing naming for arrowselector.
3880         * objects/UML/object.c (objet_type): Oops, little too aggressive
3881         with the DiaObject thing here:)
3883         * objects/custom/shape_info.c (parse_svg_node): Use
3884         g_ascii_isdigit instead of isdigit.
3886         * app/diaunitspinner.c (dia_unit_spinner_update): 
3887         * lib/dia_svg.c (dia_svg_parse_style): Using g_ascii_isspace
3888         instead of isspace avoids char subscript issues (#142467).
3890         * lib/persistence.c (persistence_get_string): Fixed 0/NULL/FALSE
3891         return value conflict.
3893         * app/display.c (ddisplay_update_handler): Fixed 0/FALSE return
3894         value conflict.  Also improved signature. (#142466)
3896         * app/load_save.c (diagram_data_load): Don't overwrite the list in
3897         the layer, but instead free the returned list (#142480)
3899         * app/pixmaps/Makefile.am (IMAGES): Added png's to be installed
3900         for the grid widget.
3902         * doc/en/Makefile.am (dia.1): Make proper rule for making dia.1
3904         * configure.in (DB2MAN): Currently just check for two known
3905         positions for the docbook xsl.  Don't know a generic way to find
3906         this info.  Ought to add an option for it, but then it's really
3907         only required for maintainers, I think.  Maybe.
3909         * app/display.c (update_snap_grid_status): Remove nasty image
3910         toggling code not require for grid toggle button anymore. (#142475)
3912         * app/interface.c (create_display_shell): Use
3913         dia_toggle_button_new_with_images to create grid toggle button.
3914         Much nicer. (#142475)
3916         * app/menus.c (menus_initialize_updatable_items): Free the string
3917         along with the GString. (#142475)
3919         * lib/intl.c (free_alias_table): Free hash table entries in a
3920         proper way, avoiding duplicate frees. (#142475)
3922         * lib/object_defaults.c (_obj_store): Only free layer_name if it's
3923         not put in the hash (avoid reading freed memory). (#142476)
3925         * lib/widgets.c (dia_font_selector_set_styles): Stop leaking
3926         faces. (#142484)
3927         (dia_font_selector_get_family_from_name): Stop leaking
3928         families. (#142482) 
3930 2004-05-14  Lars Clausen  <lars@raeder.dk>
3932         * Transfer of fixes from release branch.  Not the prettiest way to
3933         do it, this should be done during release, not afterwards.
3935         Tomasz Kłoczko <kloczek@pld.org.pl>:
3937         * acinclude.m4: minor fixes (added missing [] quotation).
3939         Lars Clausen  <lars@raeder.dk>:
3941         * app/interface.c (toolbox_delete): 
3942         * app/app_procs.[ch] (app_exit): Stop the delete event if the user
3943         cancels quit due to modified diagrams.
3945         Samúel Jón Gunnarsson  <sammi@techattack.nu>:
3947         * is.po: Added "is" to ALL_LINGUAS.
3949         Lars Clausen  <lars@raeder.dk>:
3951         * dia.spec: Updated as per mail from Zhang Lin-bo <zlb@lsec.cc.ac.cn>
3953         Hans Breuer  <hans@breuer.org>:
3955         * lib/makefile.msc : removed -DGTK_DISABLE_DEPRECATED; the 
3956         burden should be shared and not be win32 only ;) [this time 
3957         build was broken by adding GtkType to widget.h]
3959         * objects/standard/box.c objects/standard/ellipse.c :
3960         for code clarification compare (obj->aspect != FREE_ASPECT)
3961         and not (obj->aspect); no binary effect.
3963         * app/paginate_psprint.c : don't leak printcmd
3965         * objects/standard/box.c objects/standard/ellipse.c : fix gccisms :
3966         standard C requires variables to be declared at the beginning of 
3967         a block, also there is no fabsf() with msvc
3968         
3969         * app/win32print.[ch] : make win32_printer_close() return an
3970         error code, it's used as pclose replacement
3972         Lars Clausen  <lars@raeder.dk>:
3974         * RELEASE-PROCESS: Mention PATCH keyword in release process.
3976 2004-05-06  Lars Clausen  <lars@raeder.dk>
3978         * lib/widgets.[ch]: Utility function to make a widget with two
3979         images (selected and non-selected).
3981         * lib/diagramdata.h: Renamed selectable to connectable.
3982         Selectable will come later.
3984         * configure.in: 
3985         * app/pixmaps/Makefile.am (imagedir): 
3986         * app/pixmaps/connectable.png:
3987         * app/pixmaps/connectable-empty.png: New images for the
3988         selectability widget.  Proper installation, too.
3990         * app/layer_dialog.[ch]: Adding new button showing connectability
3991         status.  Much cleaner way of doing the button, but some problems
3992         with the item getting selected
3994         * lib/widgets.h: Reminder of how to install images for use by
3995         dia_get_image_from_file.
3997 2004-05-05  Lars Clausen  <lars@raeder.dk>
3999         * objects/network/Makefile.am: 
4000         * objects/network/pixmaps/radiocell.xpm: 
4001         * objects/network/pixmaps/basestation.xpm: 
4002         * objects/network/network.c: 
4003         * objects/network/basestation.c: 
4004         * objects/network/radiocell.c: 
4005         Patch from W. Borgert <debacle@debian.org>: Radio cell and base
4006         station objects.
4008         * lib/arrows.[ch]: Patch from Anthony <anthonym@overture.com>:
4009         Backslash arrow head. 
4011         * app/pagesetup.c (pagesetup_respond): Do not free ps twice.
4012         Notify takes care.  Should maybe use that more.
4014         * lib/diagramdata.[ch]: 
4015         * app/filedlg.c (file_export_ok_callback): 
4016         * app/diagram.c (diagram_finalize): DiagramData now a GObject.
4018         * app/dia-props.c (diagram_properties_respond): 
4019         * app/diagram.c (diagram_set_modified): 
4020         * app/undo.c: 
4021         * app/disp_callbacks.c: 
4022         * app/commands.c: 
4023         * app/load_save.c (diagram_save): 
4024         Better handling of undo and modified status -- only diagram
4025         properties and page setup explicitly set modified status, all
4026         other important changes should be done through the undo stack
4027         now.
4029 2004-05-04  Lars Clausen  <lars@raeder.dk>
4031         * app/app_procs.c (app_init): Consistently open a new diagram if
4032         none specified, with standard name Diagram1.dia.
4034         * app/layer_dialog.c: 
4035         * app/diagram.c (diagram_finalize): 
4036         * app/commands.c (dialogs_layers_callback): 
4037         * app/filedlg.c (file_export_ok_callback): 
4038         * app/app_procs.c (app_exit): 
4039         * app/display.c (display_set_active): 
4040         * app/interface.c (dia_dnd_file_drag_data_received): 
4041         * app/recent_files.c: 
4042         Undone attempt at unifying the multi-diagram windows (like
4043         layers).  It broke the layers and didn't make much sense for the
4044         diagram properties dialog anyway.
4046         * lib/group.c: 
4047         * lib/diatypes.h: 
4048         * lib/diagramdata.c: 
4049         * lib/object.h: 
4050         * lib/object.c: Undone attempts at GObject'ifying DiaObject -- too
4051         many subclasses have to be fixed.  Fixed remaining
4052         Object/ObjectType renaming issues.
4054 2004-05-02  Lars Clausen  <lars@raeder.dk>
4056         * lib/object.[ch]: Making DiaObject a GObject.  Now can I avoid
4057           having to make all the children objects conform to
4058           GObject style at once?  Warning!  Does not compile right now.
4060         * many, many files: Rename Object to DiaObject in preparation for
4061           making it a GObject.
4062         
4063         * app/diagram.[ch]: Turn diagram into a real GObject.
4065         * app/pagesetup.c: 
4066         * app/filedlg.c: Correctly ref and unref diagram. 
4068         * lib/diagramdata.h: Starting to turn it into a GObject as well.
4070 2004-05-02  Lars Clausen  <lars@raeder.dk>
4072         * lib/object.[ch]: Starting to convert Object to DiaObject, son of
4073         GObject. 
4075         * app/dia-props.c: Undo the attempt at making it really
4076         multi-diagram, now going for a one-diagram dialog.
4078 2004-04-30  Lars Clausen  <lars@raeder.dk>
4080         * app/undo.c: Undoing broken undo stuff for diagram properties and
4081         page setup.  Shouldn't be mixed into undo at all.
4083         * app/render_gdk.c (draw_pixel_line): Use the dash-setting
4084         function to avoid in particular the grid crawling.
4086         * lib/diagdkrenderer.[ch] (dia_gdk_renderer_set_dashes): Function
4087         to allow aligning dashes, so they don't crawl.
4089 2004-04-28  Lars Clausen  <lars@raeder.dk>
4091         * app/Makefile.am: New files diacanvas.[ch]
4093         * app/interface.c (create_display_shell): Use new diacanvas that
4094         allows placing widgets on canvas, for text edit.
4096         * lib/object.h: 
4097         Early work towards rotation.  No implementation yet.
4099         * app/layer_dialog.c (undo_layer): 
4100         * objects/network/bus.c (bus_create_change): 
4101         * objects/standard/box.c (aspect_create_change): 
4102         * objects/standard/ellipse.c (aspect_create_change): 
4103         Use g_new0 for change struct.
4105         * app/undo.c (diagram_change_apply_or_revert): 
4106         Support for undo of diagram properties and page setup.
4108         * app/disp_callbacks.c (ddisplay_canvas_events): 
4109         * lib/text.h: 
4110         * lib/diagramdata.h: 
4111         * app/modify_tool.c (click_select_object): 
4112         * lib/text.c (text_register_editable): 
4113         Starting work on new text editing model.  Guarded by #ifdef so
4114         far. 
4116 2004-04-07  Lars Clausen  <lars@raeder.dk>
4118         * app/recent_files.c (open_recent_file_callback): 
4119         * app/interface.c (origin_button_press): 
4120         * app/filedlg.c (file_open_ok_callback): 
4121         * app/display.c: 
4122         * app/diagram.[ch]: 
4123         * app/commands.c (dialogs_layers_callback): Using new
4124         diagram_set_current() function to ensure auxilliary windows are
4125         updated. 
4127         * app/layer_dialog.c: Trying to unify with dia-props.  Diagram
4128         menu now borken.  *sniff*
4130         * app/dia-props.c: Diagram properties window attempted
4131         persistentified.  Trying to make more like layer dialog (since it
4132         already changes when the diagram changes), but some things still
4133         borken. 
4135 2004-04-06  Lars Clausen  <lars@raeder.dk>
4137         * lib/dialinechooser.[ch] (dia_line_chooser_set_line_style): 
4138         * lib/attributes.c (attributes_set_default_line_style): 
4139         * app/interface.c (create_lineprops_area): 
4140         Make line style persistent as well.  Added function to directly
4141         set the style and dashlength of a dialinechooser. 
4143 2004-04-03  Lars Clausen  <lars@raeder.dk>
4145         * objects/standard/ellipse.c (ellipse_move_handle, ellipse_copy):
4146         Copy the ellipse extra handle correctly.
4148         * objects/standard/box.c (box_move_handle): Move definitions
4149         according to bug #138925.
4151 2004-04-02  Lars Clausen  <lars@raeder.dk>
4153         * app/recent_files.c: Use absolute name for recent files list.
4155         * lib/attributes.c: Set start and end arrow types, correctly.
4157         * lib/widgets.c (dia_arrow_selector_set_arrow): Use new function
4158         to get arrow index.
4160         * lib/diaarrowchooser.[ch]: Support for setting arrow info.
4162         * app/interface.c (create_lineprops_area): Set persistently stored
4163         arrow info.
4165         * lib/arrows.[ch]: New function to get arrow index (in arrow_types)
4166         from arrow type.
4168         * lib/dia_dirs.c: dia_get_absolute_path now creates a canonical
4169         path (i.e. without '.' or '..').  Not tuned for Win32 yet.
4171         * plug-ins/xfig/xfig-import.c: Redone ordering of import to comply
4172         with what xfig does.  Text now converted from latin-1 to utf-8
4173         (latin-1, since that's what xfig seems to use.  Would like to see
4174         examples of non-latin-1 figs).  String case problems fixed.
4176 2004-04-01  Lars Clausen  <lars@raeder.dk>
4178         * lib/attributes.c: 
4179         * app/interface.c: Default arrows now stored persistently, too.
4181         * lib/arrows.[ch]: New function to get arrow type from name.
4183         * app/color_area.c (color_area_create): 
4184         * lib/attributes.c: 
4185         * app/linewidth_area.c: Also persistent colors and line width.
4186         That was easy.  Arrows and line style will take a bit more work,
4187         but not much.
4189 2004-04-01  Lars Clausen  <lars@raeder.dk>
4191         * app/preferences.c:   All preferences are now
4192         handled by persistence, old prefs load and store code is gone.
4194         * lib/persistence.[ch]: Added string and color persistents.  This is
4195         a different string from the one used in the printer dialog, that
4196         one has a GtkEntry attached -- may want to make that one an
4197         encapsulation of this one or something.
4199 2004-03-31  Lars Clausen  <lars@raeder.dk>
4201         * app/app_procs.c: Do persistence before prefs.  Prefs are to be
4202         phased out anyway.
4203         
4204         * lib/persistence.[ch]: 
4205         * app/preferences.c: Adding persistence for integers, reals,
4206         booleans.  Fixed stupid list bug.  Test persistence for prefs.
4208 2004-03-30  Lars Clausen  <lars@raeder.dk>
4210         * app/recent_files.c: 
4211         Debugging of deallocation.
4212         
4213         * lib/widgets.c: 
4214         Font menu now uses persistence.  Ordering needs fixing, or it must
4215         be sorted.
4217         * lib/libdia.def: 
4218         * lib/Makefile.am (libdia_la_SOURCES): 
4219         * app/Makefile.am (dia_core_files): 
4220         * app/persistence.[ch]: 
4221         * lib/persistence.[ch]: Moved to lib as widgets need it.  Also a
4222         number of fixes, including multiple entries now being read
4223         properly.  Still some oddity about the persistent list having the
4224         role as first entry (which makes the font menu crash after a few
4225         iterations). 
4227 2004-03-26  Lars Clausen  <lars@raeder.dk>
4229         * app/persistence.c:
4230         * app/recent_files.[ch]: Redoing the recent-files list using
4231         persistence, reducing code by about 50%.  Still a problem when
4232         selecting an item from the menu -- possibly it doesn't like the
4233         menu being destroyed while in the callback?
4235 2004-03-25  Lars Clausen  <lars@raeder.dk>
4237         * app/persistence.c (persistence_load_string): Missing semicolon?!?
4239 2004-03-24  Lars Clausen  <lars@raeder.dk>
4241         * RELEASE-PROCESS: 
4243         * app/persistence.[ch]: 
4244         * app/paginate_psprint.c (diagram_print_ps): New type of data can
4245         be stored persistently:  Strings.  Only the printer command/file
4246         go in here now, but things like creator, organization, diagram
4247         comments etc could also be handled this way.
4249         * objects/standard/beziergon.c (beziergon_draw): Avoid control
4250         lines when the object is not selected.
4252 2004-03-23  Lars Clausen  <lars@raeder.dk>
4254         * lib/connectionpoint.h: 
4255         * app/load_save.c: Allow connection points to have names, and
4256         handle that in load/store.
4258         * lib/dialibartrenderer.c: Better highlighting for text.
4260         * lib/diagdkrenderer.h (struct _DiaGdkRenderer): 
4261         * lib/diagdkrenderer.c: Better highlighting for all, using same
4262         principles as libart highlighter.
4264 2004-03-22  Lars Clausen  <lars@raeder.dk>
4266         * lib/dialibartrenderer.[ch]: 
4267         * lib/diagdkrenderer.c: 
4268         * lib/object.h: 
4269         * app/object_ops.c:
4270         * app/diagram.[ch]:
4271         * app/display.[ch]:
4272         * app/Makefile.am: 
4273         * app/modify_tool.c: 
4274         * app/create_object.c: 
4275         * app/highlight.[ch]: 
4276         Added simple object highlighting.  In GDK rendering, highlights
4277         the bbox, in libart highlights the outline of the object (except
4278         for texts).
4280 2004-03-22  Lars Clausen  <lars@raeder.dk>
4282         * RELEASE-PROCESS: Added info on how to do a branch for
4283         development during release process.
4285 2004-03-20  Lars Clausen  <lars@raeder.dk>
4287         * RELEASE-PROCESS: Mention PATCH keyword in release process.
4289 2004-03-19  Lars Clausen  <lars@raeder.dk>
4291         * xmldocs.make: Fixed apparent uninstall error.
4293         * config.h.win32: 
4294         * doc/en/dia-manual.xml: 
4295         * doc/pl/dia-manual.xml: 
4296         * dia.spec: 
4297         * configure.in: 
4298         * NEWS: Version 0.93-pre1.
4300         * lib/dialinechooser.[ch]: Patch from pborelli@katamail.com (paolo
4301         borelli):  Remove some deprecated stuff.
4303 2004-03-18  Lars Clausen  <lars@raeder.dk>
4305         * Makefile.am: Try better uninstall thing for scrollkeeper.
4307         * objects/ER/entity.c: 
4308         * lib/arrows.[ch]: Patch from Georg Lothar Thimm
4309         <MGEORG@ntu.edu.sg>: Adds new ER arrows 1 or many, 0 or many, 0 or
4310         1, 1 exactly, as well as associative ER entities.
4312 2004-03-17  Lars Clausen  <lars@raeder.dk>
4314         * Makefile.am: Make distcheck not complain about scrollkeeper
4315         problems (as per advice from James Henstridge).
4317         * doc/pl/*.{xml,sgml}: Converted SGML manuals to XML to get better
4318         standard installation.
4320         * objects/standard/ellipse.c: Better strings for object menu.
4322         * app/sheets_dialog_callbacks.c: Fixed crashes from broken caching
4323         of dialogs (shame on you, glade!)
4325         * objects/custom/custom_object.c (custom_setup_properties):
4326         Removed debugging output
4328         * app/paginate_psprint.c (diagram_print_ps): Slightly more
4329         readable printer error messages.
4331         * xmldocs.make: 
4332         * omf.make: 
4333         * doc/en/Makefile.am: 
4334         * doc/pl/Makefile.am: 
4335         New more standard way to install the XML-based manuals.  
4337 2004-03-15  Lars Clausen  <lars@raeder.dk>
4339         * objects/standard/box.c (box_move_handle): More intuitive fixed
4340         aspect behaviour.
4342         * objects/standard/ellipse.c: 
4343         * objects/standard/box.c: 
4345         * lib/widgets.[ch]:
4346         * app/layer_dialog.[ch]:
4347         Patch from Steve Langasek <vorlon@debian.org>:
4348         Fixes startup crash on Alpha (bug #137169)
4349         
4350         * objects/standard/box.c: Aspect fixing like ellipses.
4352         * app/Makefile.am (dia_core_files): Include dia-app-icons.h
4354         * lib/pixmaps/Makefile.am (imagedir): Better Makefile.am for
4355         pixmaps, now can uninstall properly.
4357         * objects/standard/ellipse.c: Patch from dooms@info.ucl.ac.be:
4358         Fixed and circle aspect ratios for ellipses.  Bug #137156, #87966,
4359         #93940. 
4360         Added object menu access.
4362 2004-03-07  Hans Breuer  <hans@breuer.org>
4364         * lib/diaarrowchooser.c lib/dialinechooser.c : #undef
4365         GTK_DISABLE_DEPRECATED (I'd rather like if these widgets
4366         would not use deprecated apis, but it's much simpler this way)
4368         * lib/makefile.msc : build the above new widgets and render_pixmap
4369         * lib/libdia.def app/dia.def app/makefile.msc : updated
4371         * app/disp_callbacks.c : fix gccisms (without being able to make much sense of 
4372         what I saw, i.e. how big is an empty array supposed to be ? ;-). 
4373         Previously it gave :
4374         disp_callbacks.c(188) : error C2059: syntax error : '}'
4375         disp_callbacks.c(191) : warning C4034: sizeof returns 0
4377         * app/interface.c : #include "dialinechooser.h"
4379         * lib/diagdkrender.c : make the !HAVE_FREETYPE case compile again
4380         [one more reason not to use it here : it's quite slow compared to
4381          the native win32 font renderer ;]
4383         * app/app_procs.c app/filedlg.c : gtk_widget_destroy does not take
4384         a GtkDialog*, removed unneeded cast
4386         * app/render_eps.c : avoid assignment warning for void* user_data
4387         not being an int 
4389 2004-03-06  Steffen Macke sdteffen@web.de>
4391         * shapes/Map/Isometric/Makefile.am: added Makfile for Isometric
4392         shapes
4394 2004-03-06  Lars Clausen  <lars@raeder.dk>
4396         * lib/arrows.h (DEFAULT_ARROW_SIZE): Downed default arrow size to
4397         0.5, as per poll.
4399         * lib/font.c: Simple cleanup system for layout cache removes any
4400         layout that hasn't been used for 10 minutes, but only during idle
4401         time. 
4403 2004-03-05  Lars Clausen  <lars@raeder.dk>
4405         * sheets/Electric.sheet.in: Added patch from padro@lsi.upc.es
4406         (lluis padro) (#130887): Extended Electric shapes with vertical
4407         versions. 
4409         * sheets/Cybernetics.sheet.in: Normalize shape descriptions (never
4410         start with "Create a" or "A", always capitalize first word).
4412         * objects/standard/ellipse.c: Patch from Grégoire Dooms
4413         <dooms@info.ucl.ac.be>: Add extra connection point in center of
4414         ellipse.  Additionally added a handle in the center, and resize is
4415         now around the center.
4417         * configure.in: 
4418         * sheets/Makefile.am (SUBDIRS): 
4419         * sheets/IsometricMap.sheet.in: 
4420         * shapes/Map/Isometric/*
4421         * shapes/Makefile.am (SUBDIRS): Added Isometric shapes.
4423 2004-03-04  Lars Clausen  <lars@raeder.dk>
4425         * lib/Makefile.am: 
4426         * lib/pixmaps/Makefile.am: 
4427         * configure.in: 
4428         Better installation handling of pixmaps.
4429         
4430         * lib/diagdkrenderer.c: 
4431         * lib/diagtkfontsel.h (struct _DiaGtkFontSelectionClass): 
4432         * lib/diagtkfontsel.c (dia_gtk_font_selection_show_available_fonts): 
4433         Constness fixes.
4435 2004-03-03  Lars Clausen  <lars@raeder.dk>
4437         * lib/diagtkfontsel.h (struct _DiaGtkFontSelection): 
4438         * lib/diagdkrenderer.c: 
4439         * lib/diasvgrenderer.c:
4440         * lib/dialibartrenderer.c:
4441         * lib/diainteractiverenderer.c: 
4442         * lib/prop_text.c (multistringprop_handle_key): 
4443         * lib/dia_dirs.c: 
4444         * lib/dia_image.c (dia_image_rgba_data): 
4445         * lib/widgets.c: 
4446         * lib/diagramdata.c (layer_set_object_list): 
4447         * lib/font.h: 
4448         * lib/font.c: 
4449         Getting rid of compile warnings.
4451         * lib/widgets.c: Handle destroy properly, i.e. unref the two extra
4452         images.  Also remove unused decls.
4454 2004-03-02  Lars Clausen  <lars@raeder.dk>
4456         * lib/widgets.h: 
4457         * lib/widgets.c (dia_size_selector_init): Add images to the size
4458         selector chain widget.  Also new function to load installed images
4459         from files (better than from included XPM, IMHO).
4461 2004-03-02  Lars Clausen  <lars@raeder.dk>
4463         * lib/libdia.def: 
4464         * lib/pixmaps/[un]broken-chain.xpm: Icons stolen from GIMP for the
4465         size selector.
4467         * lib/Makefile.am: 
4468         * lib/widgets.c (dia_size_selector_init): Work
4469         on getting proper icon onto the size selector.  Need simple image
4470         load mechanism in utils.
4472         * lib/text.c: 
4473         * app/display.[ch]:
4474         * app/disp_callbacks.c: Patch from kou@cozmixng.org: Show preedit
4475         strings, handle utf8 strlen properly.  Bug #135930.
4477 2004-03-01  Lars Clausen  <lars@raeder.dk>
4479         * shapes/Cybernetics/*:
4480         * sheets/Cybernetics.sheet.in:
4481         * sheets/Makefile.am:
4482         * shapes/Makefile.am: 
4483         * configure.in: Patch from charly.meyer@t-online.de (Thorsten
4484         Roggendorf): Cybernetic shapes (#95553).
4486 2004-03-01  Lars Clausen  <lars@raeder.dk>
4488         * app/Makefile.am: Fixed $(EXEEXT) warning from automake.
4490         * lib/diatypes.h: New type DiaSizeSelector.
4492         * lib/widgets.[ch]: New size selector widgets that selects two
4493         values (width and height, nominally) optionally linked to keep
4494         aspect ratio.
4496 2004-03-01  Hubert Figuiere  <hfiguiere@teaser.fr>
4498         * plug-ins/svg/render_svg.c (new_svg_renderer): Add DTD declaration
4499         in front of file. Bug #128600.
4501         * app/Makefile.am:
4502         * app/interface.h:
4503         * app/lineprops_area.[ch]:
4504         * lib/Makefile.am:
4505         * lib/dialinechooser.[ch]:
4506         * lib/widgets.c (dia_line_style_selector_init): use line preview 
4507         instead of text labels. This involve moving away line_chooser to lib
4508         from app.
4510         * lib/diaarrowchooser.[ch] (close_and_hide): Make static to avoid
4511         symbol conflicts.
4513         * app/Makefile.am (dia_core_files): 
4514         * app/interface.c (create_lineprops_area):
4515         * app/render_pixmap.[ch]:
4516         * lib/Makefile.am:
4517         * lib/diaarrowchooser.[ch]:
4518         * lib/libdia.def:
4519         * lib/prop_attr.c:
4520         * lib/propdialogs.c:
4521         * lib/render_pixmap.[ch]:
4522         * lib/widgets.c (dia_arrow_fill_menu): Use arrow preview instead
4523         of text labels. This involve moving away arrow_chooser to lib from
4524         app.
4526 2004-02-29  Lars Clausen  <lars@raeder.dk>
4528         * objects/UML/class.[ch]: Puny kludge to avoid GtkList objects
4529         being updated half-way through destruction.  To be removed when
4530         the lists are replaced by something better.
4532         * objects/UML/class_dialog.c: Patch from luc@handhelds.org:
4533         Accelerators for class dialog.  Bug #130995.
4534         Patch from luc@handhelds.org: Better aligning of widgets.  Bug #130994.
4536         * app/dia-props.c:
4537         * app/preferences.c:
4538         * lib/properties.c:
4539         * objects/GRAFCET/step.c:
4540         * objects/Misc/analog_clock.c:
4541         * objects/chronogram/chronoline.c:
4542         * objects/chronogram/chronoref.c:
4543         Change to american spelling (color, not colour) to ease
4544         translators job.  Note that a number of translations may need an
4545         update now.  Bug #120466.
4547 2004-02-29  Lars Clausen  <lars@raeder.dk>
4549         * plug-ins/xfig/xfig-export.c: Patch from solworth@cs.uic.edu:
4550         Better arrow handling for missing arrows.
4552         * plug-ins/metapost/render_metapost.[ch]: Patch from
4553         phred@cs.berkeley.edu (Fred Reiss): Add font faces and font
4554         size. See bug #135363.
4556         * app/app_procs.c (app_init): If non-interactive, or if
4557         --log-to-stderr used, send all messages to stderr.  This should
4558         mean that old diaconv == dia --export-to-format=FOO BAR
4560 2004-02-29  Hubert Figuiere  <hfiguiere@teaser.fr>
4562         * app/menus.c: Get rid of GNOME menus. Deprecated APIs in GNOME 2.
4564 2004-02-28  Lars Clausen  <lars@raeder.dk>
4566         * lib/text.c (text_key_event): Patch from Kouhei Sutou
4567         <kou@cozmixng.org>: Fix wrong utf8 strlen handling.
4569 2004-02-27  Lars Clausen  <lars@raeder.dk>
4571         * KNOWN_BUGS: Added info on most commonly reported bugs, with
4572         BugZilla numbers.
4573         
4574         * app/disp_callbacks.c (popup_object_menu): Unified properties
4575         entry, fixes bug #105080.
4577         * app/diagram.c (diagram_update_menu_sensitivity): 
4578         * app/menus.h (struct _UpdatableMenuItems): 
4579         * app/menus.c (menus_initialize_updatable_items): Menu items
4580         changed around, align menus flattened, properties entry ghosted,
4581         dialogs menu removed, more shortcuts added.  Closing bugs #94018,
4582         #117495, #135125.
4583         Also taking out Gnome menus for now.  They don't allow shortcuts,
4584         so what are they good for?
4586 2004-02-27  Lars Clausen  <lars@raeder.dk>
4588         * app/menus.c (display_menu_items): 
4589         * app/commands.[ch]: Added duplicate menu item from Alan Horkan
4590         (bug #95546).
4592 2004-02-24  Adam Weinberger  <adamw@FreeBSD.org>
4594         * configure.in: Added 'en_CA' (Canadian English) to ALL_LINGUAS.
4596 2004-02-23  Lars Clausen  <lars@raeder.dk>
4598         * app/app_procs.c (app_init): Comments for translators.
4600 2004-02-22  Hubert Figuiere  <hfiguiere@teaser.fr>
4602         * app/preferences.c (prefs_create_dialog): Change packing policy
4603         for widget to expand.
4605         * app/Makefile.am (run_dia.sh): Fixed a typo in wrapper that prevented
4606         running with a debugger.
4608 2004-02-19  Lars Clausen  <lars@raeder.dk>
4610         * app/undo.[ch]: Adding last-saved information to undo to allow a
4611         diagram with all changes since last save undo to be marked as
4612         nonmodified.  Still needs integration with actual undo
4613         apply/revert calls.
4615         * app/diagram.h: 
4616         * app/diagram_tree.c (diagram_tree_update): 
4617         * app/diagram.c: 
4618         * app/display.c (update_modified_status): 
4619         * plug-ins/python/pydia-diagram.c (PyDiaDiagram_GetAttr): 
4620         * app/autosave.c (autosave_check_autosave): Encapsulate modifed
4621         test. 
4623         * app/render_eps.[c]: Restructure to better handle PS vs. EPS
4624         vs. EPSI, comment out EPSI until preview is in there.
4626         * lib/render.c: 
4627         * lib/diarenderer.c: Removing debugging printfs.
4629         * app/diapsrenderer.[ch]: Preparations for proper EPSI rendering
4630         (with preview)
4632         * objects/standard/arc.c (arc_update_handles): Check to avoid
4633         crash when start and end points are the same.
4635 2004-02-19  Lars Clausen  <lars@raeder.dk>
4637         * objects/standard/bezier.c: 
4638         * objects/standard/line.c (line_load): 
4639         * objects/standard/polyline.c (polyline_load): 
4640         * objects/standard/zigzagline.c (zigzagline_load): 
4641         * objects/standard/arc.c (arc_load): 
4642         * lib/widgets.h (DEFAULT_ARROW_WIDTH): Use DEFAULT_ARROW_SIZE
4643         instead of hardcoding.
4645 2004-02-18  Hubert Figuiere  <hfiguiere@teaser.fr>
4647         * app/disp_callbacks.c (popup_object_menu): append a menu item to 
4648         display properties.
4650 2004-02-17  Hubert Figuiere  <hfiguiere@teaser.fr>
4652         * app/app_procs.c: declare rc properly with the proper #ifdef
4654 2004-02-17  Lars Clausen  <lars@raeder.dk>
4656         * plug-ins/xfig/xfig-import.c: Correct ordering of imported FIG
4657         objects (which seemingly FIG itself breaks, or else there is no
4658         ordering).
4660 2004-02-16  Lars Clausen  <lrclause@cs.uiuc.edu>
4662         * plug-ins/xfig/xfig-export.c (figLineWidth): Check for minimum
4663         width renderable in xfig.  Helps on bug #133637, but does not
4664         quite fix it -- something about depth is wrong.
4666         * plug-ins/xslt/xslt.[ch]: Patch #133913 from phenning@lanl.gov:
4667         Extern definitions for Mac compilation.
4669         * app/app_procs.c: Patch #131159 from J. H. M. Dassen
4670         (jdassen@debian.org): Include fix.
4672         * app/interface.c: Patch #130100 from luc@handhelds.org:  Make
4673         sure the initial diagram size is correct.
4675 2004-02-15  Lars Clausen  <lrclause@cs.uiuc.edu>
4677         * lib/Makefile.am (AM_CPPFLAGS): Override AM_CPPFLAGS instead of
4678         CPPFLAGS, as per automake warning.
4679         * app/Makefile.am (AM_LDFLAGS): Override AM_LDFLAGS instead of
4680         LDFLAGS, as per automake warning.
4681         (run_dia.sh): More robust creation, and more easily moved.
4683         * app/undo.c (group_objects_revert): Don't double-free the objects
4684         list.  (#129221) Call object_add_updates on grouped objects.
4685         (ungroup_objects_revert): Call object_add_updates on grouped objects.
4687         * lib/diagramdata.c: Internal
4688         documentation. 
4690         * lib/polyshape.c (polyshape_update_data): Correctly calculate
4691         directions for polyshape corners (thanks, Valgrind!)
4693         * lib/attributes.c: 
4694         * lib/prop_attr.c (arrowprop_load): Use default arrow size.
4696         * lib/arrows.h: Default arrow size defined.  After all are using
4697         this, may lower to 0.4 or so.
4699         * app/lineprops_area.[ch]: New function to set the arrow type for an
4700         arrow chooser.
4702         * app/interface.c (create_lineprops_area): Set default line to
4703         have an arrow (fairly likely to be what's wanted, plus it shows
4704         the user where arrows are set).
4706         * app/app_procs.c: #ifdef HAVE_POPT popt args to process_opt
4708 2004-02-14  Lars Clausen  <lrclause@cs.uiuc.edu>
4710         * plug-ins/metapost/render_metapost.c (draw_with_linestyle):
4711         Dotted lines should use dot_length, not dash_length.
4713 2004-02-06  Hans Breuer  <hans@breuer.org>
4715         * app/interface.c : don't use gtk_drawing_area_size() to avoid
4716         the defaut size being also the minimum size. Instead use
4717         gtk_window_set_default_size() on the display shell. Fixes #130982.
4719         [fixing #131210, but umlauts in the 'main' filename still not really 
4720          supported on systems where filesystem encoding != utf8
4721         (Problems with recent file menu and window title)]
4722         * lib/dia_xml.[hc] : add data_filename() and data_add_filename()
4723         to deal with possible differnces in filename encodings, see
4724         g_filename_<to|from>_utf8()
4725         * objects/standard/image.c : use them.
4727         * lib/widgets.c : handle possible encoding difference here, too.
4728         Also get rid of most warnings by using const and GTK casts where 
4729         appropriate; one wrong cast (probably causing a crash) was found/fixed 
4730         by this - the remaining give a hint on finally leaking FontSelectorEntry.
4732         * lib/widgets.[hc] : hide _DiaFileSelector and *Class in .c. Modified
4733         dia_file_selector_<get|set>_file to behave like the respective Gtk 
4734         functions do : encoding- and const-wise ;-)
4736 2004-02-01  Robert Sedak  <robert.sedak@sk.htnet.hr>
4738         * configure.in: Added "hr" (Croatian) to ALL_LINGUAS.
4740 2004-01-19  Hans Breuer  <hans@breuer.org>
4742         * app/app_procs.c app/diaconv : 
4743         only call bind_textdomain_codeset when available, what's good 
4744         for The Gimp (bug #131215) can't be wrong for Dia : bug #125926
4745         * config.h.win32 : define HAVE_BIND_TEXTDOMAIN_CODESET
4747 2004-01-19  Steffen Macke <sdteffen@web.de>
4749         * makefile.msc: updated for new GAIM-like installer build; sync'ed
4750         ALL_LINGUAS with configure.in
4752 2004-01-18  Hans Breuer  <hans@breuer.org>
4754         * app/app_procs.c (myXmlErrorReporting) : avoid possible crash 
4755         by not passing NULL to g_print()
4757         * app/interface.c (create_toolbox) : actually use
4758         persitence_register_window() to restore toolbox window size
4760         * app/makefile.msc lib/makefile.msc : allow to deselect
4761         building with Freetype by command line to nmake like :
4762                 nmake -f makefile.msc "NOFT2=1"
4764         * plug-ins/python/diasvg_import.py : handle 'stroke-array' as
4765         far as possible with Dia's limited line style
4766         * plug-ins/python/pydia-property.c : allow to get and set
4767         Linestyle, style and dash(length)
4769         * lib/object.h : removed typedef for ObjectId not use anywhere
4771 2004-01-17  Hans Breuer  <hans@breuer.org>
4773         * objects/custom/shape_info.[hc] objects/custom/custom_object.c
4774           doc/shape.dtd doc/custom-shapes : 
4775         support for images in custom shapes, also removed some long-time
4776         dead code
4778         * doc/en/*.xml : fixed crippled line ends which get created
4779         when windoze line ends are checkin from the unix side
4781 2004-01-13  Laurent Dhima  <laurenti@alblinux.net>
4783         * configure.in: Added "sq" to ALL_LINGUAS.
4785 2004-01-11  Hans Breuer  <hans@breuer.org>
4787         [more less leaks ;-]
4788         
4789         * objects/SADT/annotation.c : use text_destroy() not g_free()
4790         
4791         * objects/chronogram/chronoline.c : neither leak chronoline::events
4792         nor chronoline::name
4794         * objects/wpg/wpg.c : don't g_free() but g_object_unref(renderer);
4796 2004-01-11  Hans Breuer  <hans@breuer.org>
4798         * lib/properties.h :
4799         * objects/custom/custom_object.c : more properties optional
4800         to be backward compatible for older diagrams not having them 
4801         set. (Try to load samples/all_objects.dia)
4802         
4803         [less memory leaks thanks valgrind ;-]
4804         
4805         * app/recent_files.c (recent_file_history_write) : 
4806         g_free(history_filename);
4807         (recent_file_menu_item) : use g_path_get_basename() 
4808         which already strdups, free result of g_strescape()
4809         
4810         * app/filedlg.c (create_export_menu) : return of
4811         filter_get_export_filter_label() must be g_free()'d
4812         (create_open_menu) : same for import
4813         
4814         * app/export_png.c (export_png_ok) : destroy info ptr
4815         with png_destroy_write_struct()
4816         
4817         * app/app_procs.c (app_init) : g_free(export_format_string);
4818         
4819         * lib/font.c (dia_font_finalize) : finalize parent_class, too
4820         (dia_font_new_from_style) : stop leaking almost all DiaFont by not
4821         refing it a second time, g_type_create_from_instance() is enough
4822         
4823         * lib/object_defaults.c (_obj_store) : don't mess with names
4824         len 0 (should avoid 'Invalid read of size 1, but doesn't ;)
4825         
4826 2004-01-11  Steffen Macke <sdteffen@web.de>
4828         * app/diapsftrenderer.c: including ftoutln.h
4829         * app/makefile.msc: updated for freetype build
4830         * lib/libdia.def: added dia_font_get_context()
4831         * lib/dialibartrenderer.c (draw_string): added cast
4832         
4833 2004-01-10  Hans Breuer  <hans@breuer.org>
4835         * lib/diagdkrenderer.c (draw_string) : gdk_draw_line with
4836         transformed coordinates, fixes bug 130804
4838 2004-01-10  Hans Breuer  <hans@breuer.org>
4840         * app/filedlg.c app/app_procs.c : don't try to destroy 
4841         'gtk_dialog_run'-dialogs dialogs by connecting to the "response"
4842         signal but simply by gtk_widget_destroy() after gtk_dialog_run()
4843         returns. Fixes 'has no handler' bugs like #121019
4845 2004-01-10  Hans Breuer  <hans@breuer.org>
4847         * objects/UML/class.c objects/UML/class_dialog.c : 
4848         handle umlclass->name being empty to avoid, i.e. fix #127968
4850         [plugging memleaks, thanks valgrind :-]
4851         
4852         * lib/dia_xml.c (data_string) : don't leak return value
4853         of xmlNodeListGetString()
4854         
4855         * lib/dia_xml.c (xml_file_check_encoding) : g_free(buf)
4856         before returning, maybe alloca() would be the better 
4857         choice but anyway ;)
4859         * objects/custom/custom_object.c:306 : adde xmlFree(str) below
4860         
4861         * lib/font.c (dia_font_build_layout) : don't leak result
4862         of g_utf8_strdown()
4863         
4864         * lib/diagdkrenderer.c (draw_string) : don't leak rgba
4865         (this is the one which got me started using valgrind, see #130816)
4866         
4867 2004-01-07  Sanlig Badral  <badral@openmn.org>
4869         * configure.in: Added "mn" to ALL_LINGUAS.
4871 2004-01-04  Hans Breuer  <hans@breuer.org>
4873         * lib/diagdkrenderer.c : replace rendering of really small (height
4874         less than 2 pixels) with a simple dashed line, you wont notice the 
4875         differnce beside it being much faster. This allows ...
4876         * lib/diagdkrenderer.h : ... to remove gboolean rendertext ...
4877         * app/navigation.c : ... and lets you see an read rendered text even 
4878         in the nice navigation popup.
4880         * lib/dialibartrenderer.c : FONT_SCALE defined as 1.0 for G_OS_WIN32, too. 
4881         (draw_string) : don't leak temporary image
4883 2004-01-04  Hans Breuer  <hans@breuer.org>
4885         * app/dia-app-icons.h : TODO : to be removed when autogenerated on *NIX, too.
4886         * app/interface.c : use dia-app-icons.h to give Dia window icons
4888         * lib/dia_image.c lib/color.c : _never_ call functions implemented
4889         in app/ from lib/. It is not portable and broken from design
4890         * app/app_procs.c : call color_init() and dia_image_init() conditional,
4891         i.e. only if running interactive.
4893         * lib/font.h : #include <time.h>
4895         * lib/libdia.def : updated externals
4897         * objects/UML/actor.c 
4898             objects/UML/association.c (todo)
4899           objects/UML/branch.c
4900           objects/UML/class.[hc] objects/UML/class_dialog.c
4901           objects/UML/classicon.c
4902           objects/UML/component.c 
4903           objects/UML/constraint.c
4904           objects/UML/dependency.c
4905           objects/UML/generalization.c
4906           objects/UML/implements.c
4907           objects/UML/large_package.c
4908           objects/UML/lifeline.c
4909           objects/UML/message.c
4910           objects/UML/node.c
4911           objects/UML/object.c
4912           objects/UML/realizes.c
4913           objects/UML/small_package.c
4914           objects/UML/state.c
4915           objects/UML/usecase.c
4916           objects/UML/
4917         : ported coloring of most UML objects (bug #97517, orginal
4918           work Mathias Hasselmann)
4920         * lib/properties.h : add _OPTIONAL variants for 
4921         PROP_STD_(LINE|FILL|TEXT)_COLOUR which allows to load old -
4922         i.e. default colored - UML diagrams without complaining
4923         * lib/proplist.c lib/propoffsets.c : avoid setting _OPTIONAL,
4924         not set properties with the help of PXP_NOTSET. Otherwise 
4925         optional attributes would lead to wrong initialization. 
4927         * lib/widgets.[hc] : moved _DiaFontSelector from .h to .c
4928         to hide details and restict #undef GTK_DISABLE_DEPRECATED to .c
4929         Same for most other selectors which probably should be rewritten
4930         to the combo box with tree model from Gtk+ 2.4
4932 2004-01-04  Lars Clausen  <lrclause@cs.uiuc.edu>
4934         * INSTALL (PLATFORM NOTES): Mention the Gnu gettext and iconv as
4935         being the Right Thing(tm) to use on Solaris.
4937         * objects/standard/bezier.c (bezierline_draw): Don't draw
4938         guidelines if not selected.
4940         * lib/object.[ch] (dia_object_is_selected): Function to check whether
4941         a given object is selected. O(n), where n is # selected objects.
4942         
4944 2004-01-03  Lars Clausen  <lrclause@cs.uiuc.edu>
4946         * lib/widgets.[ch]: Make sure old font is re-chosen when the Other
4947         Fonts dialog is closed without pressing Ok (bug #128646).
4949 2004-01-02  Lars Clausen  <lrclause@cs.uiuc.edu>
4951         * app/Makefile.am: Quote arguments correctly for run_dia.sh (bug
4952         #130099). 
4954 2004-01-01  Lars Clausen  <lrclause@cs.uiuc.edu>
4956         * INSTALL: Updated list of requirements (bug #129653)
4958         * doc/en/dia.dia: Beginning class diagram for Dia from Luc
4959         Pionchon <luc@handhelds.org>.
4961 2003-12-31  Lars Clausen  <lrclause@cs.uiuc.edu>
4963         * lib/diagdkrenderer.c (draw_string): Don't attempt to render
4964         empty or NULL strings (bug #130097).
4966 2003-12-31  Chris Sperandio <sperandi@eng.usf.edu>
4967         
4968         * plug-ins/metapost/render_metapost.c: Fixed string colorization.
4969         Added checks against color_black.
4971 2003-12-31  Lars Clausen  <lrclause@cs.uiuc.edu>
4973         * plug-ins/xfig/xfig-export.c (figArrow): Output nothing for
4974         ARROW_TYPE_NONE.  Thanks to Jon A. Solworth for showing that this
4975         can happen.
4977         * objects/UML/component_feature.c: Patch from W. Borgert
4978         <debacle@debian.org>:  Add handle to component feature text.
4980         * lib/diagdkrenderer.c (draw_string): Remove poorly placed caching.
4982         * lib/font.c: Caching PangoLayout for better rendering speed.
4984 2003-12-30  Lars Clausen  <lars@raeder.dk>
4986         * lib/dia_dirs.[ch] (dia_get_absolute_filename): New function to
4987         get absolute file name from relative.
4988         * app/recent_files.c (recent_file_history_add): Use absolute
4989         filenames for recent files menu so that files can be found when
4990         Dia is invoked from other places.  
4992         * app/app_procs.c (handle_all_diagrams): Fix for 1/3 of 130098:
4993         Actually load different diagrams if such are requested on command
4994         line.  
4996         * objects/UML/class_dialog.c (class_create_page): Fix from Luc
4997         Pionchon <luc@handhelds.org>: Correctly align labels for colors.
4999         * lib/diagdkrenderer.[ch]: From Luc: New option to GdkRenderer to
5000         remove text rendering.  May be turned into greeking at some later
5001         stage.
5003         * app/interface.c: 
5004         * app/Makefile.am (dia_core_files): 
5005         * app/navigation.[ch]: Patch from Luc Pionchon <luc@handhelds.org>:
5006         Adds navigation window a la Gimp, though without text being
5007         rendered at all.
5009 2003-12-27  Luc Pionchon <luc@handhelds.org>
5011         * app/navigation.h: (new file)
5012         * app/navigation.c: (new file) creates a navigation window with a
5013         thumbnail view of the whole diagram.
5014         * app/Makefile.am (dia_core_files): added new files.
5016         * app/interface.c (create_display_shell): added a button between
5017         the scrollbars to popup a navigation window.
5019         * lib/diagdkrenderer.h (struct_DiaGdkRenderer): added rendertext
5020         boolean
5021         * lib/diagdkrenderer.c (renderer_init): set rendertext TRUE by default
5022         * lib/diagdkrenderer.c (draw_string): returns if the renderer do
5023         not want text rendering.        
5025 2003-12-14  Lars Clausen  <lrclause@cs.uiuc.edu>
5027         * shapes/Circuit/hresistor.shape: Uses new extra attribute thing.
5029         * objects/custom/shape_info.[ch]: Cleanup.
5031         * objects/custom/custom_object.[ch]: Changed to use new props
5032         interface.
5034         * lib/properties.h: 
5035         * lib/prop_text.c: 
5036         * lib/prop_inttypes.c: 
5037         * lib/prop_geomtypes.c: Added *prop_get_data_size.
5039         * lib/libdia.def: Added object_load_props.
5041         * configure.in: Better FT2 version test, from bug #129225.
5043         * dia.spec (BuildRequires): Changed to match makefile (bug #129131)
5045         * plug-ins/xslt/dia-uml2python.xsl: Added Python sheet from Holger
5046         Lehmann <holger.lehmann@catworkx.de>.
5048         * plug-ins/xslt/Makefile.am: 
5049         * plug-ins/xslt/stylesheets.xml: Added Python, Component List,
5050         and OWL XSLT sheets.
5052 2003-12-13  Lars Clausen  <lrclause@cs.uiuc.edu>
5054         * lib/diagdkrenderer.c: Add implementation so text is still
5055         rendered.  May be improved later.
5057         * lib/dia_image.c: 
5058         * app/main.c: 
5059         * app/export_png.c: 
5060         * app/diagram.c: 
5061         * app/app_procs.c: Patch from W. Borgert <debacle@debian.org>:
5062         Allow running without a $DISPLAY!
5064         * lib/color.c: Remove warnings for non-interactive run.
5066         * doc/en/dia.dbk: 
5067         * app/export_png.c: 
5068         * app/diaconv.c: 
5069         * app/app_procs.[ch]: 
5070         Patch from W. Borgert <debacle@debian.org>: Allow a --size argument
5071         to specify size for PNG output.
5073         * app/lineprops_area.c (dia_arrow_preview_expose): Make arrows
5074         render a little smaller, so as to fit the big ones.
5076         * lib/arrows.[ch]: New arrow type from W. Borgert
5077         <debacle@debian.org>: Filled Dot and Triangle.
5079 2003-12-02  Lars Clausen  <lrclause@cs.uiuc.edu>
5081         * doc/pl/Makefile.am (install-data-hook): Fixed installation bug
5082         for gif images.
5084         * plug-ins/xslt/dia-uml2owl.xsl: Added OWL XSLT from Dan Connolly.
5086         * acinclude.m4: Better Python configure code patch (can't find
5087         author, author please speak up!)
5089 2003-12-01  Lars Clausen  <lrclause@cs.uiuc.edu>
5091         * lib/diagdkrenderer.c (get_cached_text): Stupid bugs replaced by
5092         smarter ones.
5094 2003-11-30  Hans Breuer  <hans@breuer.org>
5096         * plug-ins/python/diasvg.py : initialize self.dash_length
5097         in constructor to avoid crashing if the renderer user
5098         does not set it before first usage.
5100 2003-11-30  Lars Clausen  <lrclause@cs.uiuc.edu>
5102         * lib/diagdkrenderer.c: Start of cache GDK text renderer -- not
5103         active yet.
5105         * configure.in: 
5106         * config.h.win32: Set version number to 0.92.2+cvs to distinguish
5107         development and stable versions.
5109         * lib/text.c (text_draw): Use new renderer function to draw the
5110         text.
5112         * lib/diarenderer.h: 
5113         * lib/diarenderer.c: New renderer function "draw_text" with
5114         default implementation.  This function should eventually be the
5115         main interface, as it will be able to handle width and caching of
5116         rendering internally.  All users of draw_string should convert to
5117         use Text objects and call either renderer->draw_text or text_draw,
5118         the latter if the text can be edited in-place (as should be the
5119         goal, eventually).
5121 2003-11-29  Lars Clausen  <lrclause@cs.uiuc.edu>
5123         * shapes/Circuit/hresistor.shape: First example of extra
5124         attributes. 
5126 2003-11-28  Lars Clausen  <lrclause@cs.uiuc.edu>
5128         * plug-ins/shape/shape-export.c: 
5129         * lib/diasvgrenderer.h: 
5130         * lib/diasvgrenderer.c: 
5131         * plug-ins/svg/render_svg.c (new_svg_renderer): 
5132         Actually store the font size, using DiaRenderer's font fields.
5134 2003-11-27  Lars Clausen  <lrclause@cs.uiuc.edu>
5136         * objects/custom/shape_info.[ch]: 
5137         * objects/custom/custom_object.[ch]: 
5138         Support for extra attributes in custom objects.
5139         
5140 2003-11-23  Lars Clausen  <lrclause@cs.uiuc.edu>
5142         * app/diagram.c (diagram_update_menu_sensitivity): More
5143         intelligent checks for menu sensitivity.  Might be slow on huge
5144         diagrams, but I think other things outweigh it by a lot.
5146         * app/menus.[ch]: Make "Bring Forwards"
5147         and "Send Backwards" updateable.
5149 2003-11-22  Steffen Macke <sdteffen@web.de>
5151         * shapes/Assorted/arrow-turn-up.shape:
5152         * shapes/Assorted/arrow-turn-up.png:
5153         * sheets/Assorted/Makefile.am:
5154         * sheets/Assorted.sheet.in: Added new arrow
5156 2003-11-17  Lars Clausen  <lrclause@cs.uiuc.edu>
5158         * app/app_procs.c
5159         * app/color_area.c
5160         * app/commands.c
5161         * app/defaults.c
5162         * app/dia_embedd.c
5163         * app/diagram.c
5164         * app/diagram_tree.c
5165         * app/diagram_tree_menu.c
5166         * app/diagram_tree_window.c
5167         * app/diapagelayout.c
5168         * app/diaunitspinner.c
5169         * app/export_png.c
5170         * app/filedlg.c
5171         * app/interface.c
5172         * app/layer_dialog.c
5173         * app/lineprops_area.c
5174         * app/linewidth_area.c
5175         * app/menus.c
5176         * app/pagesetup.c
5177         * app/paginate_psprint.c
5178         * app/persistence.c
5179         * app/plugin-manager.c
5180         * app/preferences.c
5181         * app/properties.c
5182         * app/recent_files.c
5183         * app/sheets.c
5184         * app/sheets_dialog.c
5185         * app/sheets_dialog_callbacks.c
5186         * app/tool.c: Patch from Sebastien Tricaud <toady@gscore.org>:
5187         GTK-2 compatibility update, mostly gtk_foo -> g_foo.
5189         * TODO: Updated, note on EPS transparency.
5191 2003-11-07  Lars Clausen  <lrclause@cs.uiuc.edu>
5193         * objects/UML/class.c (umlclass_draw): Allow classes with no name
5194         without crashing.
5196 2003-11-01  Lars Clausen  <lrclause@cs.uiuc.edu>
5198         * config.h.win32: 
5199         * doc/en/dia-manual.xml: 
5200         * dia.spec: 
5201         * configure.in: 
5202         * NEWS: Another Brown Bag release for parenting problems,
5203         including a crash bug fix.
5205         * app/connectionpoint_ops.c (diagram_update_connections_object):
5206         Also update connections when moving children.  This can cause
5207         move_handle to be called twice, so it must be idempotent.
5209         * app/load_save.c: Loading and saving of children totally redone.
5210         Now doesn't violate assumption that all objects in a layer are
5211         placed in order in XML file.
5213         * objects/UML/branch.c (branch_create): Don't lie about being
5214         resizable. 
5216         * objects/UML/node.c (node_create): 
5217         * objects/UML/large_package.c (largepackage_create): Drag with
5218         lower right-hand handle at creation like all other objects.
5220 2003-10-28  Lars Clausen  <lrclause@cs.uiuc.edu>
5222         * app/disp_callbacks.c (ddisplay_drop_object): Change initial
5223         parenting drop to behave like a move inside, i.e. constrain place
5224         instead of trying to resize.  'Cause, resizing cannot be done for
5225         all objects (e.g. UML Class). Also simplified the algorithm a lot
5226         at the same time.
5228         * app/load_save.c: Saving and loading of connection points for
5229         children added.  Prototypes for static functions added.
5231         * lib/dynamic_obj.c: Removed debugging output.
5233 2003-10-26  Lars Clausen  <lrclause@cs.uiuc.edu>
5235         * doc/en/dia-manual.xml: 
5236         * doc/pl/dia-manual.sgml: 
5237         * dia.spec: 
5238         * config.h.win32: 
5239         * configure.in: 
5240         * NEWS: Brown Bag release 0.92.1
5242         * lib/dynamic_obj.c: Fixed embarassing dynamic object removal bug.
5244 2003-10-25  Lars Clausen  <lrclause@cs.uiuc.edu>
5246         * app/app_procs.c (app_init): Rearrangement for translators.
5248 2003-10-24  Steffen Macke <sdteffen@web.de>
5250         * lib/text.c(text_key_event): enforcing the inserted text length now,
5251         fix for bug #125348
5253 2003-10-22  Lars Clausen  <lrclause@cs.uiuc.edu>
5255         * MAINTAINERS: Change Debian maintainer to be the default address.
5257         * objects/Misc/analog_clock.c (analog_clock_move_handle): Reorder
5258         args to match prototype, thus removing crashbug #125159.
5260         * RELEASE-PROCESS: Note to self.
5262 2003-10-22  Steffen Macke <sdteffen@web.de>
5264         * doc/en/dia-manual.xml: removed superfluous external references
5265         
5266 2003-10-21  Steffen Macke <sdteffen@web.de>
5268         * lib/libdia.def: added filter_get_by_name
5269         * app/render_eps.c: moved extensions definition outside #ifdef
5271 2003-10-19  Lars Clausen  <lrclause@cs.uiuc.edu>
5273         * Makefile.am: 
5274         * dia.1:
5275         Removed old Dia manual, put new one in doc/en/.  Translations
5276         should go in doc/??/.
5278         * doc/en/dia-manual.xml: 
5279         * doc/pl/dia-manual.sgml: 
5280         * dia.spec (Release): 
5281         * config.h.win32: 
5282         * configure.in: 
5283         * NEWS: 0.92 is here!
5285         * doc/en/dia.dbk: 
5286         * doc/en/dia.1: 
5287         * doc/en/Makefile.am (man_MANS): Added man page, thanks to Fredrik
5288         HallenBerg, W. Borgert.  Not currently autogenerated from dia.dbk,
5289         but it shall be.
5291         * doc/en/usage-objects.xml: Fixed lower-case PNG tags.
5293         * doc/en/usage-objects-selecting.xml: Commented out empty note.
5295 2003-10-14  Lars Clausen  <lrclause@cs.uiuc.edu>
5297         * doc/pl/dia-manual.sgml: 
5298         * doc/en/dia-manual.xml: 
5299         * config.h.win32: 
5300         * NEWS: 
5301         * configure.in: 
5302         * dia.spec (Release): Pre7.
5304         * app/diapsrenderer.c (draw_string): Convert string to print based
5305         on current locale.  If conversion fails, fall back to UTF-8 (which
5306         is almost certain to be messy).
5308 2003-10-13  Lars Clausen  <lrclause@cs.uiuc.edu>
5310         * doc/pl/dia-manual.sgml: 
5311         * dia.spec (Release): 
5312         * configure.in: 
5313         * NEWS: 
5314         * config.h.win32: 
5315         * doc/en/dia-manual.xml: Pre6.
5317         * plug-ins/pstricks/render_pstricks.c (draw_string): Don't escape
5318         TeX chars in strings -- must be possible to use TeX text in there.
5319         Also avoids infinite loop bug (#124464) Will get option for this
5320         later.
5322 2003-10-11  Lars Clausen  <lrclause@cs.uiuc.edu>
5324         * shapes/Cisco/Makefile.am: Cisco shapes now install correctly.
5326         * doc/en/dia-manual.xml: 
5327         * doc/pl/dia-manual.sgml: 
5328         * dia.spec (Release): 
5329         * configure.in: 
5330         * config.h.win32: 
5331         * NEWS: pre5.
5333         * app/authors.h: Removed duplicate of M. C. Nelson.
5335         * plug-ins/pixbuf/pixbuf.c: Unique name for pixbuf export: gdkpixbuf.
5337         * app/export_png.c: Unique name for libart PNG export: png-libart.
5339         * app/render_eps.c: Unique names for the two eps export methods:
5340         eps-builtin, eps-pango.
5342         * lib/filter.h: Binary compatibility change: 
5343         Added unique name to export filters.  Can be NULL.
5344         * lib/filter.c (filter_get_by_name): Finding a filter by
5345         non-extension name.
5347         * app/app_procs.h: Changed prototype for do_convert.
5348         * app/app_procs.c (app_init): Support for non-extension file
5349         format selection for export.  Also allow extension to differ from
5350         that specified by the filters.  A bit of refactoring, too.
5352 2003-09-28  Steffen Macke <sdteffen@web.de>
5354         * makefile.msc: added target po to update the translations
5356 2003-09-27  Lars Clausen  <lrclause@cs.uiuc.edu>
5358         * config.h.win32: 
5359         * dia.spec (Release): 
5360         * NEWS: 
5361         * doc/pl/dia-manual.sgml: 
5362         * doc/en/dia-manual.xml: 
5363         Pre4 is given a short try.
5364         
5365         * configure.in: Give all necessary libs to PNG test.
5367         * lib/font.c: Added legacy entries for sans, serif and monospace.
5369         * app/app_procs.c (internal_plugin_init): 
5370         * app/render_eps.h: 
5371         * app/render_eps.c: 
5372         Added PS fonts output for Unix.
5374         * app/diapsrenderer.c (set_font): Adjusted height by the magic .7
5375         factor to make PS fonts stay in boxes.
5376         
5377 2003-08-03  Hans Breuer  <hans@breuer.org>
5379         * config.h.win32 : close the version string
5381         * lib/libdia.def : with color_white, color_black being static
5382         on win32 they can not be exported anymore either
5384         * lib/dialibartrenderer.c : text rendering is back on win32,
5385         only by Gdk though; almost a year seems to be enough to
5386         wait for my patch at bug #94791 to be accepted ...
5388 2003-09-23  Lars Clausen  <lrclause@cs.uiuc.edu>
5390         * shapes/network/{digitizing_board.png,plotter.png,
5391         laptop.png,telephone.png}: 22x22 icons.
5393 2003-09-22  Lars Clausen  <lrclause@cs.uiuc.edu>
5395         * doc/pl/dia-manual.sgml: 
5396         * doc/en/dia-manual.xml: 
5397         * dia.spec (Release): 
5398         * configure.in: 
5399         * config.h.win32: 
5400         * NEWS: 
5401         pre3 improves font rendering speed.
5403         * app/app_procs.c (app_init): Don't do pango init here, it's done
5404         on demand in font.c now.
5406         * lib/font.c: Load pango context on demand rather than during
5407         init/all the time strikes a better balance between working font
5408         size and speed.  Still need to cache width calculations.
5410 2003-09-18  Lars Clausen  <lrclause@cs.uiuc.edu>
5412         * lib/dia_xml.c: Enable pretty printing.  Should have been added
5413         on 8/12. 
5415 2003-09-11  Lars Clausen  <lrclause@cs.uiuc.edu>
5417         * lib/arrows.c (calculate_arrow_point): Adjust arrow line
5418         adjustment a bit for half diamond and open round.
5420         * RELEASE-PROCESS: Added note about notifying translators and
5421         maintainers. 
5423         * doc/pl/dia-manual.sgml: 
5424         * doc/en/dia-manual.xml: 
5425         * dia.spec (Release): 
5426         * configure.in: 
5427         * config.h.win32: 
5428         * NEWS:
5429         Update to 0.92-pre2.
5430         
5431 2003-09-10  Lars Clausen  <lrclause@cs.uiuc.edu>
5433         * lib/arrows.c (calculate_arrow_point): Some fixing-up of arrow
5434         calculation for half diamond and open round.
5436         * lib/arrows.c: 
5437         * objects/UML/component_feature.c: 
5438         * lib/arrows.h: Patch from W. Borgert <debacle@debian.org>: Use
5439         arrows instead of specific little hacks.  Much nicer, but damn
5440         there's a lot of arrows.
5442         * lib/dialibartrenderer.c (begin_render): 
5443         * app/render_libart.c (begin_render): Use correct DPI for screen
5444         (well, actually the default DPI of 75 for now).
5446         * app/display.h: Informative notes on the DDISPLAY_*_ZOOM macros.
5448         * lib/diagdkrenderer.c (draw_string): Some reformatting.
5450         * app/app_procs.c (app_init): Note on what should be done for the
5451         pango context now, only it doesn't work:(
5453         * lib/font.c (dia_font_new): Make sure to load fonts that are
5454         used, using a reasonable pango_context.  Also a comment on the
5455         global_zoom_factor, 
5457 2003-09-09  Lars Clausen  <lrclause@cs.uiuc.edu>
5459         * doc/pl/graphics/*.png:
5460         * doc/pl/Makefile.am: Added graphics to distro, avoiding empty
5461         loop (bug #121817).  PL translator may want to change the
5462         home_network png to be in Polish.  If the docs get translated into
5463         more languages, we'll want to find out how to share these things.
5465 2003-09-08  Lars Clausen  <lrclause@cs.uiuc.edu>
5467         * app/splash.c (app_splash_init): Patch from Sébastien Tricaud
5468         <stricaud@mwsp.net>: Use g_signal_* instead of gtk_signal_* in
5469         splash.
5471         * app/filedlg.c (file_save_as_callback): Put filename setting
5472         together.  (Preparation for allowing default save dir.)
5474         * app/paginate_psprint.c (diagram_print_ps): Use $PRINTER
5475         correctly this time:)
5477         * app/dia-props.c (diagram_properties_show): 
5478         * app/properties.c (properties_show): Make sure the
5479         dialogs are transient for the correct diagram.
5481 2003-09-07  Lars Clausen  <lrclause@cs.uiuc.edu>
5483         * configure.in: Make sure -lz -lm is passed into second png test
5484         as well (stupid AC_LINK_IFELSE can't take it as an argument).
5486         * plug-ins/xfig/xfig-import.c: Skip XFig comments to make certain
5487         comment-filled files readable.  Once we have a 'generic data'
5488         system, we can put comments in there.
5490 2003-09-06  Steffen Macke <sdteffen@web.de>
5492         * plug-ins/pstricks/render_pstricks.c(tex_escape_string): using
5493         g_string_sized_new() instead of g_string_new() to make it compile
5494         * app/Makefile.am: including dia.ico and dia.rc in the tarball
5495         * plug-ins/wmf/wmf.cpp (set_linestyle): In WMF maximum linewidth is 1 
5496         for non-solid linestyles - otherwise custom linestyles have to be used.
5498 2003-09-02  Steffen Macke <sdteffen@web.de>
5500         * app/commands.c(help_manual_callback): using dia-manual.chm instead of 
5501         dia.chm
5503 2003-09-02  Christian Neumair  <chris@gnome-de.org>
5505         * sheets/Pneumatic.sheet.in: Slight unification fix.
5507 2003-09-02  Lars Clausen  <lrclause@cs.uiuc.edu>
5509         * config.h.win32: 
5510         * configure.in: 
5511         * dia.spec (Release): 
5512         * doc/en/dia-manual.xml: 
5513         * doc/pl/dia-manual.sgml: 
5514         * NEWS: Update to 0.92-pre1.
5516         * app/properties.c (properties_key_event): Removing Esc/Enter
5517         handling for now, interferes to much with regular dialog usage.
5519         * plug-ins/pstricks/render_pstricks.c (tex_escape_string):
5520         Function to escape special TeX characters.  Not in use yet, as
5521         PSTricks output by default is TeX strings.  Should get a save-time
5522         selector. 
5524 2008-09-01  Steffen Macke <sdteffen@web.de>
5526         * lib/paper.h: explanatory comment on width and height
5528 2003-08-30  Steffen Macke <sdteffen@web.de>
5530         * lib/color.c:
5531         * lib/color.h: made color_white, color_black static on win32
5533 2003-08-28  Lars Clausen  <lrclause@cs.uiuc.edu>
5535         * configure.in (PNG_LIBS): Something in the png tests added an
5536         extra -lpng to $LIBS.  Saving old $LIBS to avoid that.
5538 2003-08-27  Lars Clausen  <lrclause@cs.uiuc.edu>
5540         * configure.in: Quote correctly for temporarily adding freetype
5541         cflags to CPPFLAGS.
5543         * app/preferences.c (prefs_save): Remove debugging g_print.
5545 2003-08-26  Lars Clausen  <lrclause@cs.uiuc.edu>
5547         * objects/flowchart/parallelogram.c (pgram_update_data):
5548         Directions for connections, better system for placing
5549         connectionpoints. 
5551 2003-08-25  Lars Clausen  <lrclause@cs.uiuc.edu>
5553         * lib/diagramdata.c (layer_find_closest_object_except): Look all
5554         the way through the object list, so the foremost object is selected.
5556         * lib/diagramdata.h: Removing dynamic_obj.h, it should only be
5557         included for diagramdata.c.
5559         * lib/prop_text.c (multistringprop_handle_key): Attempt at making
5560         newline in multistringprop not close the dialog.  Failed so far.
5562 2003-08-25  Steffen Macke <sdteffen@web.de>
5564         * app/commands.c: using CHM instead of HTML on win32 if available
5565         * lib/diagramdata.h: including dynamic_obj.h
5567 2003-08-25  Lars Clausen  <lrclause@cs.uiuc.edu>
5569         * app/properties.c (properties_key_event): Make Enter = Ok for
5570         properties dialogs.  Still some problems with this and Esc for
5571         Cancel, for instances escaping out of a menu closes the dialog.
5573         * objects/UML/association.c (association_get_properties): 
5574         * objects/UML/class_dialog.c (class_create_page): Grab appropriate
5575         focus. 
5577         * app/diapsft2renderer.c (draw_string): Use
5578         dia_font_scaled_build_layout to ensure similarity of text.
5580         * lib/diagramdata.c: Remove obj from dynobj list when removing
5581         from layer to avoid nasty race conditions.
5583         * app/undo.c (group_objects_revert): Make sure to unparent and
5584         remove from dynobj list when changing layers objects.
5586 2003-08-23  Steffen Macke <sdteffen@web.de>
5588         * plug-ins/wmf/wmf.cpp (draw_image): replaced BitBlt() with 
5589         StretchBlt(); fixes #92249
5590         
5591 2003-08-23  Lars Clausen  <lrclause@cs.uiuc.edu>
5593         * app/filedlg.c (file_save_as_callback): 
5594         * app/preferences.h: 
5595         * app/preferences.c (prefs_data): 
5596         * lib/diagramdata.h: 
5597         * lib/diagramdata.c (new_diagram_data): 
5598         * app/load_save.c (diagram_data_load): 
5599         Let the document remember whether it was compressed.  The user can
5600         still override this in the Save As... dialog, and that will still
5601         be remembered as the default for new diagrams.
5603 2003-08-23  Steffen Macke <sdteffen@web.de>
5605         * plug-ins/xslt/Makefile.am: added dia-uml2componentlist.xsl
5607 2003-08-22  Steffen Macke <sdteffen@web.de>
5609         * plug-ins/xslt/dia-uml.xsl:
5610         * plug-ins/xslt/dia-uml2componentlist.xsl: generate a HTML file with a
5611         table containing a list of components grouped by stereotype
5613 2003-08-21  Steffen Macke <sdteffen@web.de>
5615         * lib/makefile.msc: added connectionpoint.obj
5616         * lib/libdia.def: added connpoint_update, find_slope_directions
5617         * app/disp_callbacks.c: including scroll_tool.h
5618         * obj/makefile.msc: added component_feature.obj
5619         * app/paginate_gdiprint.c: fixed loop initialization in 
5620         paginate_gdiprint(); partial fix for bug #85831 - the scaling is still
5621         wrong
5623 2003-08-21  Lars Clausen  <lrclause@cs.uiuc.edu>
5625         * plug-ins/python/pydia-object.c (PyDiaObject_MoveHandle): Fix
5626         move_handle call.
5628         * lib/diagramdata.h: Colors added to prefs.
5629         * lib/diagramdata.c (new_diagram_data): Set diagram colors from prefs.
5630         New field for pagebreak color, which should
5631         behave the same as grid color and be settable for a diagram.
5633         * app/diagram.c (diagram_init): Update diagram pagebreak color
5634         from prefs. 
5636         * app/grid.c (pagebreak_draw): Draw using diagrams pagebreak
5637         colors. 
5639         * app/preferences.[ch]: Default diagram colors now #defines, so
5640         loading can use it.  Also, colors are now in NewDiagramData, so
5641         are passed nicely into new diagrams directly from prefs.  Yum.
5643         * app/load_save.c (diagram_data_write_doc, diagram_data_load): 
5644         Support for loading and saving grid and pagebreak colors with the
5645         diagram.  I'm inclined to make all the three Colors in diagram
5646         Color*s instead, so we can tell if they're specified for the
5647         diagram or merely the default setting.  There'd be no way for the
5648         user to tell if the color of a diagram is default, though, unless
5649         we add a 'reset to default' button to prefs.
5651         * app/dia-props.c: Adding widgets for dynamic grid, grid colour,
5652         pagebreak color.  Unsensitizing grid size when dynamic.
5654         * objects/UML/component.c: Patch from Krzysztof Foltman
5655         <kfoltman@onet.pl>: Add two new connectionpoints and adjust a
5656         third.  Makes the left side connections actually be on the line
5657         (gasp!). 
5659 2003-08-20  Steffen Macke <sdteffen@web.de>
5661         * lib/libdia.def: added layer_find_closest_object_except
5662         * lib/diagramdata.c: added ; after GOTO to make MSVC compile 
5664 2003-08-20  Lars Clausen  <lrclause@cs.uiuc.edu>
5666         * app/tool.h: 
5667         * app/tool.c: 
5668         * app/scroll_tool.c: 
5669         * app/interface.c: 
5670         * app/disp_callbacks.c: 
5671         * app/create_object.h: 
5672         * app/create_object.c: Patch from Krzysztof Foltman
5673         <kfoltman@onet.pl>: Middle button can scroll transiently when
5674         menu-bar-mode is on, and mouse wheels (hopefully) can scroll in
5675         various ways.
5677         * app/authors.h: 
5678         * sheets/UML.sheet.in: 
5679         * sheets/UML/receptacle.xpm: 
5680         * sheets/UML/Makefile.am: 
5681         * sheets/UML/eventsource.xpm: 
5682         * sheets/UML/eventsink.xpm: 
5683         * objects/UML/pixmaps/facet.xpm: 
5684         * objects/UML/uml.c (dia_plugin_init): 
5685         * objects/UML/Makefile.am (libuml_objects_la_SOURCES): 
5686         * objects/UML/component_feature.c: 
5687         Patch from W. Borgert <debacle@debian.org>:  Add event sources and
5688         event sinks.
5689         
5690 2003-08-19  Lars Clausen  <lrclause@cs.uiuc.edu>
5692         * lib/object.h: Turning some comments into doxygen style.
5694         * lib/object_defaults.c (dia_object_defaults_load)
5695         (dia_object_default_get, dia_object_default_create): 
5696         Fixing up existing documentation.
5698         * lib/object.h: Doxygen style documentation begun.
5700         * app/create_object.c: 
5701         * app/undo.c: 
5702         * app/connectionpoint_ops.c: 
5703         * app/disp_callbacks.c: 
5704         * app/modify_tool.c: 
5706         * objects/network/wanlink.c (wanlink_move_handle): 
5707         * objects/network/bus.c (bus_move_handle): 
5709         * objects/flowchart/parallelogram.c (pgram_move_handle): 
5710         * objects/flowchart/ellipse.c (ellipse_move_handle): 
5711         * objects/flowchart/diamond.c (diamond_move_handle): 
5712         * objects/flowchart/box.c (box_move_handle): 
5714         * objects/custom/custom_object.c (custom_move_handle): 
5716         * objects/chronogram/chronoref.c (chronoref_move_handle): 
5717         * objects/chronogram/chronoline.c (chronoline_move_handle): 
5719         * objects/SADT/box.c (sadtbox_move_handle): 
5720         * objects/SADT/arrow.c (sadtarrow_move_handle): 
5721         * objects/SADT/annotation.c (annotation_move_handle): 
5723         * objects/Misc/analog_clock.c (analog_clock_move_handle): 
5725         * objects/GRAFCET/vergent.c (vergent_move_handle): 
5726         * objects/GRAFCET/vector.c (arc_move_handle): 
5727         * objects/GRAFCET/transition.c (transition_move_handle): 
5728         * objects/GRAFCET/step.c (step_move_handle): 
5729         * objects/GRAFCET/condition.c (condition_move_handle): 
5730         * objects/GRAFCET/action.c (action_move_handle): 
5732         * objects/FS/function.c: 
5733         * objects/FS/flow.c: 
5734         * objects/FS/flow-ortho.c (orthflow_move_handle): 
5735         * objects/FS/flow-poly.c (flow_move_handle): 
5737         * objects/UML/usecase.c (usecase_move_handle): 
5738         * objects/UML/state_term.c (state_move_handle): 
5739         * objects/UML/state.c (state_move_handle): 
5740         * objects/UML/small_package.c (smallpackage_move_handle): 
5741         * objects/UML/realizes.c (realizes_move_handle): 
5742         * objects/UML/object.c (objet_move_handle): 
5743         * objects/UML/note.c (note_move_handle): 
5744         * objects/UML/node.c (node_move_handle): 
5745         * objects/UML/message.c (message_move_handle): 
5746         * objects/UML/lifeline.c (lifeline_move_handle): 
5747         * objects/UML/large_package.c (largepackage_move_handle): 
5748         * objects/UML/implements.c (implements_move_handle): 
5749         * objects/UML/generalization.c (generalization_move_handle): 
5750         * objects/UML/fork.c (fork_move_handle): 
5751         * objects/UML/dependency.c (dependency_move_handle): 
5752         * objects/UML/constraint.c (constraint_move_handle): 
5753         * objects/UML/compprop.c (compprop_move_handle): 
5754         * objects/UML/component.c (component_move_handle): 
5755         * objects/UML/branch.c (branch_move_handle): 
5756         * objects/UML/association.c (association_move_handle): 
5757         * objects/UML/actor.c (actor_move_handle): 
5758         * objects/UML/activity.c (state_move_handle): 
5759         * objects/UML/class.c (umlclass_move_handle): 
5761         * objects/standard/ellipse.c (ellipse_move_handle): 
5762         * objects/standard/zigzagline.c (zigzagline_move_handle): 
5763         * objects/standard/textobj.c (textobj_move_handle): 
5764         * objects/standard/polyline.c (polyline_move_handle): 
5765         * objects/standard/polygon.c (polygon_move_handle): 
5766         * objects/standard/line.c (line_move_handle): 
5767         * objects/standard/image.c (image_move_handle): 
5768         * objects/standard/bezier.c (bezierline_move_handle): 
5769         * objects/standard/arc.c (arc_move_handle): 
5770         * objects/standard/beziergon.c (beziergon_move_handle): 
5771         * objects/standard/box.c (box_move_handle): 
5772         
5773         * objects/ER/relationship.c (relationship_move_handle): 
5774         * objects/ER/participation.c (participation_move_handle): 
5775         * objects/ER/entity.c (entity_move_handle): 
5776         * objects/ER/attribute.c (attribute_move_handle): 
5777         
5778         * lib/polyshape.c (polyshape_move_handle): 
5779         * lib/polyshape.h: 
5780         * lib/orth_conn.c (orthconn_move_handle): 
5781         * lib/orth_conn.h: 
5782         * lib/neworth_conn.c (neworthconn_move_handle): 
5783         * lib/neworth_conn.h: 
5784         * lib/element.c (element_move_handle): 
5785         * lib/element.h: 
5786         * lib/connection.c (connection_move_handle): 
5787         * lib/connection.h: 
5788         * lib/beziershape.c (beziershape_move_handle): 
5789         * lib/beziershape.h: 
5790         * lib/bezier_conn.c (bezierconn_move_handle): 
5791         * lib/bezier_conn.h: 
5792         *BINARY COMPATIBILITY CHANGE*
5793         Update prototype for *_move_handle() to include connectionpoint,
5794         and also pass on modifiers.  Pass in connectionpoint where
5795         applicable. 
5796         
5797         * lib/dummy_dep.h (dummy_dep): Adding dummy dependencies for new
5798         file connectionpoint.c.
5800 2003-08-17  Danilo Šegan  <dsegan@gmx.net>
5802         * configure.in: Added "sr" and "sr@Latn" to ALL_LINGUAS.
5804 2003-08-15  Lars Clausen  <lrclause@cs.uiuc.edu>
5806         * lib/object.c (object_copy): Use g_malloc0 instead of g_malloc.
5808         * lib/beziershape.c (beziershape_update_data): Autoroute
5809         directions for beziershapes!
5811         * lib/connectionpoint.c (find_slope_directions): 
5812         * lib/connectionpoint.h: Function for finding the available
5813         directions on a slope.
5815         * lib/polyshape.c: Reasonable directions for
5816         connectionpoints.       
5818 2003-08-14  Lars Clausen  <lrclause@cs.uiuc.edu>
5820         * objects/Misc/analog_clock.c (analog_clock_update_arrow_tips): 
5821         * objects/GRAFCET/vergent.c (vergent_update_data): 
5822         * objects/GRAFCET/transition.c (transition_update_data): 
5823         * objects/GRAFCET/action.c (action_update_data): 
5824         * objects/GRAFCET/step.c (step_update_data): 
5825         * objects/FS/function.c (function_update_data): 
5826         * lib/connpoint_line.c (connpointline_putonaline): 
5827         * objects/ER/attribute.c (attribute_update_data): 
5828         * objects/ER/entity.c (entity_update_data): 
5829         * objects/ER/relationship.c (relationship_update_data): 
5830         * objects/chronogram/chronoline.c (chronoline_update_data): Set
5831         directions for connection points.
5833         * objects/UML/component.c (component_create): Set to allow
5834         parenting. 
5836         * app/create_object.c (create_object_button_press): 
5837         * app/diagram.[ch] (diagram_find_clicked_object_except): 
5838         * lib/diagramdata.[ch] (layer_find_closest_object_except): 
5839         Avoid parenting to objects you're connecting to (otherwise you
5840         couldn't make a connection out of a parenting object).  To do
5841         this, added functions to find the nearest object except a given
5842         list of objects.
5843         
5844         * app/render_libart.c: Rearrange libart include to avoid multiple
5845         include program (and put libart includes inside #ifdef!)
5847 2003-08-13  Lars Clausen  <lrclause@cs.uiuc.edu>
5849         * lib/dialibartrenderer.c: Don't include art_config.h if others
5850         also do, as it isn't #ifdef'd.
5852         * objects/flowchart/ellipse.c (ellipse_update_data): Add
5853         directions for connection points.
5855 2003-08-12  Lars Clausen  <lrclause@cs.uiuc.edu>
5857         * objects/flowchart/box.c (box_update_data): Add directions, use
5858         connpoint_update. 
5859         (box_load): Use g_malloc0.
5861         * lib/Makefile.am (libdia_la_SOURCES):
5862         * lib/connectionpoint.c (connpoint_update): 
5863         Function to call to update a connection point info in _update_data().
5864         
5865         * lib/connectionpoint.h: Convenience DIR_ macros.
5867         * app/preferences.c (prefs_data): Make pretty formatted XML the
5868         default.
5870         * lib/dialibartrenderer.c: 
5871         * app/render_libart.c: Make sure art_config.h is included, cause
5872         some libart headers are broken.
5874         * configure.in (HAVE_FREETYPE): Restore CPPFLAGS to old value
5875         after test.  Add freetype-config cflags to cflags variable.
5877 2003-08-11  Lars Clausen  <lrclause@cs.uiuc.edu>
5879         * app/authors.h: Credits for Krzysztof.
5881         * sheets/Flowchart.sheet.in: Updated descriptions from Krzysztof
5882         Foltman <kfoltman@onet.pl>.  It occurs to me that the name (rather
5883         than the description) is visible in the title of the properties
5884         dialog.  That ought to be a short description (translatable),
5885         though we still want long descriptions for the tooltips.  Hmmm...
5887         * configure.in: Updated to use AC_LINK_IFELSE instead of
5888         AC_TRY_COMPILE, also force to link to check libs on Solaris.
5890         * objects/ER/entity.c (entity_load): 
5891         * objects/ER/attribute.c (attribute_load): 
5892         * lib/attributes.c (attributes_set_default_font): 
5893         Check if font is non-null before unreffing.
5894         
5895 2003-08-08  Lars Clausen  <lrclause@cs.uiuc.edu>
5897         * app/diagram.c (diagram_ungroup_selected) 
5898         (diagram_group_selected): Use the undo apply to make sure grouping
5899         and ungrouping is done in consistent manners.  This removes a fair
5900         amount of duplicated code from diagram.c.
5902         * app/undo.c (ungroup_objects_revert, ungroup_objects_apply) 
5903         (group_objects_revert, group_objects_apply): Working undo/redo for
5904         diagram tree updates.  The initial actions still don't quite work.
5906 2003-08-07  Lars Clausen  <lrclause@cs.uiuc.edu>
5908         * app/create_object.c (create_object_button_press): 
5909         * app/undo.[ch]: 
5910         * app/diagram.c: Undo support for parenting.  Uses apply/revert in
5911         undo only for manipulating the parent/child relationships.  Things
5912         like removing an object doesn't use the undo functions for
5913         parenting, so any updates to come (like to diagramtree) should be
5914         done in those, too.
5916 2003-08-03  Hans Breuer  <hans@breuer.org>
5918         * app/create_object.c : minor formating and g_new0 for
5919         tool creation
5921         * lib/bezier_conn.[hc] lib/beziershape.[hc]
5922           lib/prop_geomtypes.c (prop_geomtypes_register)
5923           objects/standard/bezier.c objects/standard/beziergon.c :
5924         ability to set bezpoints via StdProp api
5926         * plug-ins/python/pydia-property.c : convert list of tuples
5927         to BEZPOINTARRAY
5929         *  plug-ins/python/diasvg_import.py : use it to
5930         implement part of path parsing. Also minor improvements
5931         like inheritance of group attributes to members,
5932         whitespace, title and style:text/css ignoring ;-)
5934 2003-08-02  Hans Breuer  <hans@breuer.org>
5936         * lib/connections.c (connection_move_handle): return
5937         something to make it compile
5938         * lib/object.c(190) : error C4033: 'object_list_move_delta_r' 
5939         must return a value -> dito
5940         [Is there a warnings-as-errors switch we could use with gcc 
5941          to avoid such in future ?]
5943         * plug-ins/python/pydia-object.h : define *_Check macros
5944         * plug-ins/python/diamodule.c : provide dia.group_create()
5945         * plug-ins/python/pydia-diagramdata.c : add 
5946         DiaDiagramData.add_layer()
5947         * plug-ins/python/pydia-property.c : allow to set color by
5948         tuple of doubles
5950         *  plug-ins/python/diasvg_import.py : based on the above
5951         implement a) group support, b) rgb(1,2,3) color handling,
5952         and somewhat fishy data:image/png;base64 support (create
5953         temporary files from inline image data)
5954         d) dump the import errors as text into an 'Error' layer
5956         *  plug-ins/python/diasvg.py : add xmlns:xlink, removed a
5957         stray " in draw_rect and corrected error message formating 
5959         * plug-ins/pydia/pydia-geometry.c : removed ## to make it
5960         compile with gcc 3.3, fixes bug #117204. Thanks to Daniel 
5961         Jacobowitz.
5962         
5963 2003-08-01  Hubert Figuiere  <hfiguiere@teaser.fr>
5965         * app/magnify.c (create_magnify_tool): allocate with g_new0()
5967         * app/preferences.c (prefs_create_dialog): use checkboxes for boolean 
5968         preferences values (see bug 118570). Also group items into a GtkFrame.
5970 2003-07-31  Lars Clausen  <lrclause@cs.uiuc.edu>
5972         * app/menus.c:
5973         * app/menus.h:
5974         * app/commands.h: 
5975         * app/commands.c (objects_unparent_children_callback): 
5976         * app/diagram.h: 
5977         * app/diagram.c (diagram_unparent_selected,
5978         (diagram_update_menu_sensitivity): 
5979         Added unparenting of single children.
5981         * lib/bezier_conn.c:
5982         * lib/bezier_conn.h:
5983         * lib/beziershape.c:
5984         * lib/beziershape.h:
5985         * lib/connection.c:
5986         * lib/connection.h:
5987         * lib/element.c:
5988         * lib/element.h:
5989         * lib/group.c:
5990         * lib/neworth_conn.c:
5991         * lib/neworth_conn.h:
5992         * lib/object.h:
5993         * lib/orth_conn.h:
5994         * lib/poly_conn.c:
5995         * lib/poly_conn.h:
5996         * lib/polyshape.c:
5997         * lib/polyshape.h:
5998         * objects/EML/instantiation.c:
5999         * objects/EML/interaction-ortho.c:
6000         * objects/EML/interaction.c:
6001         * objects/EML/process.c:
6002         * objects/ER/attribute.c:
6003         * objects/ER/entity.c:
6004         * objects/ER/participation.c:
6005         * objects/ER/relationship.c:
6006         * objects/FS/flow-ortho.c:
6007         * objects/FS/flow-poly.c:
6008         * objects/FS/flow.c:
6009         * objects/FS/function.c:
6010         * objects/GRAFCET/action.c:
6011         * objects/GRAFCET/condition.c:
6012         * objects/GRAFCET/step.c:
6013         * objects/GRAFCET/transition.c:
6014         * objects/GRAFCET/vector.c:
6015         * objects/GRAFCET/vergent.c:
6016         * objects/Misc/analog_clock.c:
6017         * objects/SADT/annotation.c:
6018         * objects/SADT/arrow.c:
6019         * objects/SADT/box.c:
6020         * objects/UML/activity.c:
6021         * objects/UML/actor.c:
6022         * objects/UML/association.c:
6023         * objects/UML/branch.c:
6024         * objects/UML/class.c:
6025         * objects/UML/classicon.c:
6026         * objects/UML/component.c:
6027         * objects/UML/constraint.c:
6028         * objects/UML/dependency.c:
6029         * objects/UML/fork.c:
6030         * objects/UML/generalization.c:
6031         * objects/UML/implements.c:
6032         * objects/UML/large_package.c:
6033         * objects/UML/lifeline.c:
6034         * objects/UML/message.c:
6035         * objects/UML/node.c:
6036         * objects/UML/note.c:
6037         * objects/UML/object.c:
6038         * objects/UML/realizes.c:
6039         * objects/UML/small_package.c:
6040         * objects/UML/state.c:
6041         * objects/UML/state_term.c:
6042         * objects/UML/usecase.c:
6043         * objects/chronogram/chronoline.c:
6044         * objects/chronogram/chronoref.c:
6045         * objects/custom/custom_object.c:
6046         * objects/flowchart/box.c:
6047         * objects/flowchart/diamond.c:
6048         * objects/flowchart/ellipse.c:
6049         * objects/flowchart/parallelogram.c:
6050         * objects/network/bus.c:
6051         * objects/network/wanlink.c:
6052         * objects/standard/arc.c:
6053         * objects/standard/bezier.c:
6054         * objects/standard/beziergon.c:
6055         * objects/standard/box.c:
6056         * objects/standard/ellipse.c:
6057         * objects/standard/image.c:
6058         * objects/standard/line.c:
6059         * objects/standard/polygon.c:
6060         * objects/standard/polyline.c:
6061         * objects/standard/textobj.c:
6062         * objects/standard/zigzagline.c:
6063         Binary compatibility update:  Added return value for foo_move() and
6064         foo_move_handle().  Orthconn derivatives also returns change from
6065         orthconn_move_handle().
6066         
6067         * lib/orth_conn.c: Undo support for autorouting.  Neworthconn
6068         doesn't support it yet.
6070         * lib/object.c (object_list_move_delta_r, object_list_move_delta):
6071         Add returning ObjectChange from object moves.  Needs to handle
6072         multiple object moves.
6074         * app/modify_tool.c (modify_motion, modify_release): Add
6075         ObjectChange from move & move_handle to undo stack.
6077         * objects/EML/instantiation.c (instantiation_move): Removing
6078         duplicate move & update.
6080 2003-07-30  Lars Clausen  <lrclause@cs.uiuc.edu>
6082         * plug-ins/xfig/xfig-export.c: Added support for arrow head
6083         export.  Many arrow types not supported by XFig, replacing those
6084         with standard arrows.  Not sure whether it'd be better to render
6085         them as a group of lines instead.  You'd lose the arrow-ness for
6086         further editing, but preserve the actual shape of it.  Also added
6087         support for dash length.
6089         * plug-ins/xfig/xfig-import.c: Added support for dash length settings.
6091         * plug-ins/xfig/fig-format-3.2: Added copy of Fig format
6092         description for version 3.2, for reference.
6094         * plug-ins/xfig/xfig-import.c: Added import of arrows.
6096         * app/menus.c: Removed prefs item from Gnome diagram menu.  Made
6097         Align Vertical Adjacent call _v rather than _h.
6099 2003-07-29  Hubert Figuiere  <hfiguiere@teaser.fr>
6101         * app/scroll_tool.c (create_scroll_tool): 
6102         * app/modify_tool.c (create_modify_tool): use g_new0() to
6103         initialize the tool
6105 2003-07-29  Lars Clausen  <lrclause@cs.uiuc.edu>
6107         * configure.in: Added proper settings for XSLT_LIBS and XSLT_CFLAGS.
6109 2003-07-24  Pablo Saratxaga  <pablo@mandrakesoft.com>
6111         * configure.in: Added Macedonian (mk) to ALL_LINGUAS
6113 2003-07-23  Dmitry G. Mastrukov  <dmitry@taurussoft.org>
6115         * configure.in: Added Belarusian to ALL_LINGUAS.
6117 2003-07-19  Hans Breuer  <hans@breuer.org>
6119         [
6120          Make the xslt plug-in work on win32, too. It appears
6121          to require a quite recent version of libxml and libxslt,
6122          otherwise windoze pathes aren't translated correctly
6123          during file processing
6124         ]
6126         * plug-ins/xslt/xslt.h : #include <glib.h> before 
6127         using G_OS_WIN32
6129         * plug-ins/xslt/xslt.c : plugged some memory leaks and do
6130         the 'script' file finding similar to how it is done
6131         with the python scripts (no need for hardcoded pathes,
6132         removed the 'plugin' part from the path)
6134         * plug-ins/xslt/stylesheets.xml : added again. It does
6135         not have any path but only the pure filename again
6137         * plug-ins/xslt/stylesheets.xml.in : removed
6139         * plug-ins/xslt/Makefile.am : removed 'plugin' and the
6140         rule to process stylesheets.xml.in
6142         * plug-ins/makefile.msc : added xslt
6144 2003-07-19  Hans Breuer  <hans@breuer.org>
6146         Finally Dia learned to remember the recent selected sheet
6148         * app/preferences.[hc] : added prefs.recent_sheet
6149         * app/interface.c : restore and remember the sheet-option-menu
6150         history, but only if the respective number is stiil available.
6151         This additional adds robustness against running Dia without
6152         any sheet (e.g. installation problems)
6153         * app/app_procs.c : call prefs_safe() in app_exit() to remember
6154         changes which are not done by the prefernces dialog
6156         * app/diagram_tree_menu.c app/diagram_tree_menu_callbacks.c :
6157         removed every call (especially the conditional ones) to prefs_safe().
6158         Before prefs_safe() was called _many_ times during Dia startup
6160 2003-07-18  Hans Breuer  <hans@breuer.org>
6162         * app/makefile.msc lib/makefile.msc lib/libdia.def :
6163         updated win32 build
6165         * lib/color.c : use gtk_widget_get_default_visual();
6166         as suggested in #114536
6168         * app/interface.c app/disp_callbacks.c :
6169         moved round_up () to the latter file where it is used
6171         * app/linewidth_area.c : #include "interface.h" for
6172         interface_get_toolbox_shell()
6174 2003-07-18  Hubert Figuiere  <hfiguiere@teaser.fr>
6176         * plug-ins/pixbuf/.cvsignore
6177         * shapes/Cisco/.cvsignore: 
6178         added cvsignore
6180 2003-07-17  Lars Clausen  <lrclause@cs.uiuc.edu>
6182         * app/dia-props.c (diagram_properties_retrieve): Use
6183         diagram_get_name() to add the diagram name to the diagram
6184         properties dialog.
6186         * app/diagram.h: 
6187         * app/diagram.c (diagram_get_name): New function to get a
6188         reasonable diagram name.
6190         * lib/diagramdata.h: Added major_lines, dynamic and colour to grid
6191         info.  Still need to be able to set dynamic grid.  Also ought to
6192         follow Gnome style and have instant apply.
6194         * app/preferences.h: 
6195         * app/preferences.c (prefs_data): Remove option to use stippled
6196         grid, add option for major line offset.  Default to 5 minor lines
6197         per major line.
6198         Add option for dynamically sized grid.
6200         * app/display.c (ddisplay_render_pixmap): Call pagebreak_draw as well.
6202         * app/grid.c: Pagebreak drawing separated out.  Grid drawing using
6203         stippled/solid to display minor/major grid lines.  Line drawing in
6204         separate functions away from calculating line distance.
6206         * app/grid.h: Split page break drawing out of grid_draw.
6208         * app/layer_dialog.c (layer_dialog_show): Patch from Hubert
6209         Figuiere <hfiguiere@teaser.fr>:  Layer dialog show go to front
6210         when menu item is selected.
6212 2003-07-15  Lars Clausen  <lrclause@cs.uiuc.edu>
6214         * configure.in: Removed -Winline flag to make way for important
6215         warnings. 
6217         * samples/UML-demo.dia: Adjusted for 0.91 font size, saved as
6218         non-compressed.  Should fix bug #117381, also look prettier.
6219         
6220         * Makefile.am: 
6221         * dia.desktop.in: Patch from Mark McLoughlin <mark@skynet.ie>:
6222         Set up desktop info more properly.
6224 2003-07-13  Lars Clausen  <lrclause@cs.uiuc.edu>
6226         * activity.c:
6227         * actor.c:
6228         * branch.c:
6229         * class.c:
6230         * classicon.c:
6231         * component.c:
6232         * large_package.c:
6233         * lifeline.c:
6234         * node.c:
6235         * note.c:
6236         * object.c:
6237         * small_package.c:
6238         * state.c:
6239         * state_term.c:
6240         * usecase.c: 
6241         Autorouting directions patch from Krzysztof Foltman
6242         <kfoltman@onet.pl>.
6244         * app/menus.c: Wrong GNOME paren fixed.  Correct callbacks for
6245         GNOME parent menu items.
6246         
6247         * app/authors.h: Added Vadim to contributors list.
6249 2003-07-12  Lars Clausen  <lrclause@cs.uiuc.edu>
6251         * app/commands.[ch]: 
6252         * app/create_object.c: 
6253         * app/disp_callbacks.[ch]: 
6254         * app/diagram.[ch]: 
6255         * app/interface.c: 
6256         * app/load_save.c: 
6257         * app/menus.[ch]:
6258         * app/modify_tool.c
6259         * app/undo.[ch]:
6260         * lib/Makefile.am:
6261         * lib/group.c: 
6262         * lib/object.[ch]: 
6263         * lib/parent.[ch]:
6264         * objects/UML/large_package.c: Patch from Vadim Berezniker
6265         <vadim@berezniker.com>: 
6266         Objects may "parent" other objects, i.e. contain them within
6267         themselves, restrain them and move them along.  Some more stuff is
6268         needed, such as selection and individual unparenting.  This adds
6269         parenting to UML - Large Package rather than Box.
6271 2003-07-11  Lars Clausen  <lrclause@cs.uiuc.edu>
6273         * app/linewidth_area.c: Patch from Krzysztof Foltman
6274         <kfoltman@onet.pl>: Make linewidth dialog conform to HIG (well,
6275         conform more, at least:).
6277         * plug-ins/metapost/render_metapost.[ch] : Applied patch from
6278         Chris Sperandio <sperandi@eng.usf.edu>:  Fixed linewidths and
6279         arcs.  Implemented images (though there is some pixelization and
6280         banding in the output).  Changed output file format to be a little
6281         more readable.  
6283         * app/app_procs.c (app_exit): Added message for double exit, which
6284         shouldn't happen any more.  Also preventing strange g_object_unref
6285         messages by having a printf after gtk_main_quit.  This is really
6286         weird.
6288         * app/interface.c (toolbox_delete): Avoid double app_exit call by
6289         removing handler for destroy when delete is called.
6291 2003-07-07  Lars Clausen  <lrclause@cs.uiuc.edu>
6293         * app/display.h: 
6294         * app/display.c (ddisplay_scroll_to_object,
6295         ddisplay_scroll_center_point):  New function for easy scrolling to
6296         object or point.
6298 2003-07-06  Lars Clausen  <lrclause@cs.uiuc.edu>
6300         * plug-ins/xslt/Makefile.am: Patch from Hubert Figuiere:  Add
6301         $(srcdir) on stylesheets.xml.
6303         * app/menus.c: Patch from Hubert Figuiere: Adds help menu to
6304         diagram menus (since they're at the top by default now).  Also
6305         move the Properties... menu item from Dialogs to Objects.  Dialogs
6306         menu should disappear at some point.
6308         * autogen.sh: Patch from Hubert Figuiere: Don't automatically call
6309         ./configure from ./autogen.sh, as configure may need to be run
6310         from a different directory.  (Also more standard this way.)
6312         * app/app_procs.c (app_init): 
6313         * app/Makefile.am (INCLUDES): Gnome standardization patch from
6314         Alex. 
6316 2003-07-03  Lars Clausen  <lrclause@cs.uiuc.edu>
6318         * objects/flowchart/parallelogram.c (pgram_update_data):
6319         Left/right alignment for parallelograms.  Doesn't use all
6320         available space, but then pgrams also ignore their shear value.
6321         This thing needs a loving hand.
6323 2003-07-01  Hans Breuer  <hans@breuer.org>
6325         * lib/properties.h : introduce PROP_FLAG_OPTIONAL
6326         * lib/proplist.c : don't complain if optional attr is missing
6327         * lib/orth_conn.h : make "orth_autoroute" optional to
6328         stop complaining with older files.
6330 2003-06-13  Guntupalli Karunakar  <karunakar@freedomink.org>
6332         * configure.in: Added "ml" for Malayalam in ALL_LINGUAS.
6334 2003-06-05  Andrew Halper  <ashalper@cox.net>
6336         * app/diagram_tree.c : add scrolling of drawing area
6337         to desired object on "Locate".  Patch modified to use new ddisplay
6338         function ddisplay_scroll_to_object().
6340 2003-06-11  Lars Clausen  <lars@raeder.dk>
6342         * lib/diagramdata.h: Added major_lines, dynamic and colour to grid
6343         info.  Before next version, the grid dialog (view dialog, really)
6344         must be redone to allow a) instant apply, b) apply to all
6345         diagrams, and c) setting colour, dynamic, major lines.
6347         * app/preferences.h: 
6348         * app/preferences.c (prefs_data): Remove option to use stippled
6349         grid, add option for major line offset.  Default to 5 minor lines
6350         per major line.
6351         Add option for dynamically sized grid.
6353         * app/display.c (ddisplay_render_pixmap): Call pagebreak_draw as well.
6355         * app/grid.c: Pagebreak drawing separated out.  Grid drawing using
6356         stippled/solid to display minor/major grid lines.  Line drawing in
6357         separate function away from calculating line distance.
6359         * app/grid.h: Split page break drawing out of grid_draw.
6361 2003-05-15  Hans Breuer  <hans@breuer.org>
6363         * plug-ins/python/diasvg.py : add xlink definition,
6364         also avoid to put spaces into attribute values. At least
6365         Sodipodi doesn't like them in width/height attributes
6367         * plug-ins/python/diasvg_import.py : add simple scaling.
6368         Some (more) handling for <svg>, <desc>, <circle>        
6370         * plug-ins/python/scascale.py : (new file) which does
6371         some experimental scaling via StdProp api
6373         * plug-ins/python/pydia-cpoint.c 
6374           plug-ins/python/pydia-handle.c : return PyDiaPoint for
6375         obj.pos not simple tuples. PyDiaPoint has a tuple interface
6376         so this may even be api compatible ...
6378 2003-05-11  Hans Breuer  <hans@breuer.org>
6380         * app/line_area.c : add window position persitence
6382         * lib/poly_conn.[hc] lib/polyshape.[hc] : allow to set 
6383         'poly_points' via StdProp api
6384         * lib/neworth_conn.h : don't rely on OrthConn and 
6385         NewOrtConn having the same struct offsets
6387         * lib/properties.h : introduce PROP_FLAG_WIDGET_ONLY
6388         to help separating 'useful' properies - in terms of
6389         the PyDia access
6391         * objects/custom/custom_object.c
6392           objects/UML/*.c
6393         add the missing prop_desc_list_calculate_quarks to
6394         all the *_describe_props()
6396         * objects/standard/beziergon.c objects/standard/bezier.c :
6397         explicit initializtion of default_user_data
6398         * objects/standard/polygon.c objects/standard/polyline.c :
6399         Same here. Also use POLY<CONN|SHAPE>_COMMON_PROPERTIES
6401         * plug-ins/python/diamodule.c : implement dia.register_import
6403         * plug-ins/python/makefile.msc : need to link with Pango
6404         for pango_color_parse()
6406         * plug-ins/python/pydia-property.c : add a bunch of type
6407         conversions to PyDiaProperty_ApllyToObject()
6409         * plug-ins/python/diasvg_import.py : (new file) which currently
6410         is mainly a stress test for PyDia but for some files already
6411         produces better results than svg-import.c
6413 2003-05-06  Lars Clausen  <lrclause@cs.uiuc.edu>
6415         * objects/UML/uml.c (uml_get_operation_string): Avoid ':' on
6416         type-less operations.
6418 003-05-03  Hasbullah Bin Pit  <sebol@ikhlas.com>
6420         * configure.in(ALL_LINGUAS): Added "ms".
6422 2003-05-01  Lars Clausen  <lrclause@cs.uiuc.edu>
6424         * plug-ins/xslt/xslt.c (xslt_ok): 
6425         * plug-ins/shape/shape-export.c (new_shape_renderer): 
6426         * plug-ins/svg/render_svg.c (new_svg_renderer): 
6427         * plug-ins/hpgl/hpgl.c (export_data): 
6428         * plug-ins/dxf/dxf-export.c (export_dxf): 
6429         * plug-ins/metapost/render_metapost.c (export_metapost): 
6430         * plug-ins/pstricks/render_pstricks.c (export_pstricks): 
6431         * plug-ins/xfig/xfig-export.c (export_fig): 
6432         * plug-ins/wpg/wpg.c (export_data): 
6433         * plug-ins/cgm/cgm.c (export_cgm): 
6434         * app/render_eps.c (export_eps): 
6435         * app/export_png.c (export_png_ok): 
6436         * app/load_save.c (diagram_data_save): Adding and standardizing
6437         output file error messages to include fopen error message.
6439 2003-05-01  Steffen Macke <sdteffen@web.de>
6441         * app/persistence.c: do not use unistd.h for MSVC build
6443 2003-04-30  Lars Clausen  <lrclause@cs.uiuc.edu>
6445         * sheets/Assorted.sheet.in
6446         * sheets/Circuit.sheet.in
6447         * sheets/Contact.sheet.in
6448         * sheets/EML.sheet.in
6449         * sheets/ER.sheet.in
6450         * sheets/Electric.sheet.in
6451         * sheets/FS.sheet.in
6452         * sheets/Flowchart.sheet.in
6453         * sheets/GRAFCET.sheet.in
6454         * sheets/Logic.sheet.in
6455         * sheets/MSE.sheet.in
6456         * sheets/Misc.sheet.in
6457         * sheets/Pneumatic.sheet.in
6458         * sheets/SADT.sheet.in
6459         * sheets/SDL.sheet.in
6460         * sheets/UML.sheet.in
6461         * sheets/chronogram.sheet.in
6462         * sheets/ciscohub.sheet.in
6463         * sheets/ciscomisc.sheet.in
6464         * sheets/cisconetwork.sheet.in
6465         * sheets/ciscorouter.sheet.in
6466         * sheets/civil.sheet.in
6467         * sheets/network.sheet.in
6468         * sheets/sybase.sheet.in:
6469         Patch from Jan-Willem Harmanny <jwharmanny@zeelandnet.nl>
6470         standardizes shape descriptions to use no articles, no 'create
6471         ...'.
6472         
6473         * app/interface.c (tool_data): Standard objects follow same
6474         standard as sheets.
6476 2003-04-29  Lars Clausen  <lrclause@cs.uiuc.edu>
6478         * app/color_area.c (color_area_edit): More informative title on
6479         color selection dialog.
6481         * app/disp_callbacks.c (ddisplay_drop_object): Update menu
6482         sensitivity when dropping object in.  Also reset tool to pointer.
6484         * objects/flowchart/diamond.c (diamond_update_data): 
6485         * objects/flowchart/parallelogram.c (pgram_update_data): Added
6486         left and right alignment options.
6488 2003-04-28  Lars Clausen  <lrclause@cs.uiuc.edu>
6490         * objects/flowchart/box.c: Added left and right alignment options.
6492 2003-04-26  Lars Clausen  <lrclause@cs.uiuc.edu>
6494         * app/persistence.c (persistence_load): Test existence of
6495         persistence file before trying to open it.
6497 2003-04-25  Lars Clausen  <lrclause@cs.uiuc.edu>
6499         * app/properties.c: Escape now closes properties dialogs.
6501 2003-04-25  Hans Breuer  <hans@breuer.org>
6503         * app/config.h.win32 : bump version to 0.91+cvs
6505         * app/makefile.msc lib/makefile.msc lib/libdia.def : updated
6507         * lib/dia_dirs.c : G_OS_WIN32: #define mkdir(s,a) _mkdir(s)
6509         * app/commands.c : don't leak "netscape" if getenv("BROWSER")
6510         returns NULL
6512         * app/presistence.c : need to #include "dia_xml_libxml.h"
6513         for xmlDiaParseFile
6515         * app/layer_dialog.c : make delayed creation work by protecting
6516         all non static layer_dialog_*() with :
6517            if (layer_dialog == NULL || layer_dialog->dialog == NULL)
6518              create_layer_dialog();
6519         * app/app_procs.c : removed /* create_layer_dialog(); */
6521         * objects/uml/association.c : give it a minimal StdProp
6522         implementation to fix bug #108896
6523         * lib/object_defaults.c : don't try to copy props if there
6524         is no obj->ops->describe_props
6526 2003-04-24  Lars Clausen  <lrclause@cs.uiuc.edu>
6528         * objects/standard/image.c (image_create): 
6529         * objects/standard/ellipse.c (ellipse_create): 
6530         * objects/standard/box.c (box_create): 
6531         * objects/flowchart/ellipse.c (ellipse_create): 
6532         * objects/flowchart/diamond.c (diamond_create): 
6533         * objects/flowchart/box.c (box_create): 
6534         * objects/custom/custom_object.c (custom_create): 
6535         * objects/ER/relationship.c (relationship_create): 
6536         * objects/ER/entity.c (entity_create): 
6537         * objects/ER/attribute.c (attribute_create): Initialize
6538         elem->height to DEFAULT_HEIGHT instead of DEFAULT_WIDTH.
6540         * lib/dia_svg.c (dia_svg_parse_style): Added case to set center
6541         alignment. 
6543         * configure.in: 
6544         * plug-ins/Makefile.am: 
6545         * plug-ins/xslt/Makefile.am: 
6546         * plug-ins/xslt/xslt.c (dia_plugin_init): 
6547         Patch from Götz Waschk <waschk@informatik.uni-rostock.de> uses
6548         automake-style if to only include xslt dir when needed.  Works
6549         with automake 1.4 and up, at least.
6551 2003-04-22  Lars Clausen  <lrclause@cs.uiuc.edu>
6553         * lib/diasvgrenderer.c (draw_string): 
6554         * lib/dia_svg.c (dia_svg_parse_style): Use
6555         text-anchor:(start|middle|end).
6557         * lib/diasvgrenderer.c (draw_polygon, fill_polygon): Use svg
6558         polygon rather than polyline & avoid missing line pieces.
6559         (get_draw_style): Set fill-opacity to 0 on draw_style to avoid
6560         black-filled things.
6562 2003-04-21  Lars Clausen  <lrclause@cs.uiuc.edu>
6564         * app/persistence.c (persistence_load): Check that persistence
6565         file exists before trying to read it.
6566         (persistence_update_window): Removed printf.
6568         * objects/GRAFCET/step.c: Don't copy defaults for name and id.
6570         * lib/autoroute.c: Take badness into the layouters again, as some
6571         of them know they can do things that are pretty but would be
6572         counted as ugly by the default calculation.
6574         * objects/UML/large_package.c: Shrink package name box when no
6575         stereotype is present.
6577         * lib/orth_conn.h (ORTHCONN_COMMON_MENUS): 
6578         * lib/orth_conn.c: Added object menu item for autorouting.
6580         * objects/FS/flow-ortho.c (orthflow_get_object_menu): 
6581         Autorouting, plus set initial dragging handle to be the end, not
6582         the middle.
6583         (orthflow_draw): Flipped arrow place to be at the end, as
6584         originally intended (got lost in arrow update).
6586         * objects/standard/zigzagline.c (zigzagline_get_object_menu): 
6587         * objects/UML/dependency.c (dependency_get_object_menu): 
6588         * objects/UML/association.c (association_get_object_menu): 
6589         * objects/UML/realizes.c (realizes_get_object_menu): 
6590         * objects/SADT/arrow.c (sadtarrow_get_object_menu): 
6591         * objects/GRAFCET/vector.c (arc_get_object_menu): 
6592         * objects/ER/participation.c (participation_get_object_menu): 
6593         * objects/EML/instantiation.c (instantiation_get_object_menu): 
6594         * objects/UML/generalization.c (generalization_get_object_menu): 
6595         * objects/EML/interaction-ortho.c (interaction_ortho_get_object_menu): 
6596         Autorouting setup (currently disabled for SADT/arrow).
6597         
6598 2003-04-19  Lars Clausen  <lrclause@cs.uiuc.edu>
6600         * lib/autoroute.c: Removed printfs.
6602         * lib/orth_conn.c: 
6603         * lib/autoroute.[ch] (autoroute_layout_orthconn): Handle
6604         non-connected orthconns too.
6606 2003-04-18  Lars Clausen  <lrclause@cs.uiuc.edu>
6608         * lib/orth_conn.h: 
6609         * lib/orth_conn.c: Function to set autorouting on/off, use
6610         autorouting in move_handle (turns off when a middle handle is
6611         moved), added to standard orthconn props. 
6613         * app/disp_callbacks.c (create_object_menu, popup_object_menu):
6614         Stopped signal emission for check menu items being set to on/off.
6616         * objects/standard/zigzagline.c: Added autorouting object menu item.
6618         * lib/autoroute.c: Added last cases of autoroute layout, fixed
6619         floating point comparison bug, cleaned up layouters, tweaked
6620         badness to allow kinks. 
6622 2003-04-17  Lars Clausen  <lrclause@cs.uiuc.edu>
6624         * lib/connectionpoint.h: Changed DIR_* macros to go around the
6625         clock. 
6627         * lib/orth_conn.[ch] (orthconn_set_points): New function to set all
6628         points at once.
6629         * objects/standard/zigzagline.c (zigzagline_move_handle): Removed
6630         old cruft, added call to autoroute (currently cannot be turned
6631         off).  Need to check what undo thinks about this.
6632         * lib/autoroute.[ch]: Fairly working simple layout.
6634         * lib/Makefile.am (libdia_la_SOURCES): Added autoroute files.
6635         * lib/autoroute.[ch]: Start of proper autorouting functionality.
6637 2003-04-10  Lars Clausen  <lrclause@cs.uiuc.edu>
6639         * lib/prop_widgets.c: Show labels on ListProp.
6641 2003-04-11  Steffen Macke <sdteffen@web.de>
6643         * doc/en/dia-manual.xml: removed reference of non-existing authors 
6644         note.
6645         * doc/en/usage-objects-selecting: commented out misleading section
6646         references.
6648 2003-04-10  Lars Clausen  <lrclause@cs.uiuc.edu>
6650         * app/app_procs.c (app_init): Layer window now opened at startup
6651         only if needed.
6653         * lib/prop_widgets.c: Show labels on ListProp.
6655 2003-04-09  Steffen Macke <sdteffen@web.de>
6657         * doc/en/*.sgml: removed files
6658         * doc/en/*.xml: added files
6659         * doc/en/Makefile.am: switched to XML DocBook
6661 2003-04-09  Lars Clausen  <lrclause@cs.uiuc.edu>
6663         * plug-ins/xslt/xslt.c (dia_plugin_init): 
6664         * configure.in: Added --with-xslt-prefix to allow other XSLT
6665         placements than /usr/lib.
6667 2003-04-09  Steffen Macke <sdteffen@web.de>
6669         * lib/makefile.mingw: updated to include latest files, including 
6670         and linking libintl
6671         * lib/geometry.h: don't define isinf and finite for mingw gcc build
6673 2003-04-08  Lars Clausen  <lrclause@cs.uiuc.edu>
6675         * app/persistence.h:
6676         * app/persistence.c (persistence_register_window_create): 
6677         * app/app_procs.c (app_init): 
6678         Register window function that doesn't create the window unless it
6679         should be open.  Other windows should move to this, so startup
6680         speed can be reduced.
6681         
6682         * app/persistence.h: Removed call prototype for update_window, now
6683         done internally.
6684         * app/persistence.c (persistence_register_window): A number of
6685         fixes.  Doesn't forget position when window is closed.  Now
6686         actually loads prefs.
6688         * app/layer_dialog.c (create_layer_dialog): Removed extraneous
6689         event connect.
6691         * app/preferences.c (prefs_data): 
6692         * app/diagram_tree_window.h: 
6693         * app/diagram_tree_window.c: Added persistence registering.
6694         Removed prefs items storing size and openness. 
6696         * app/sheets_dialog.c (create_sheets_main_dialog): Added
6697         persistence registering.  
6699         * app/Makefile.am (dia_core_files): Added persistence files.
6701         * lib/dia_dirs.h: 
6702         * lib/dia_dirs.c (dia_config_ensure_dir): New function to ensure
6703         that dirs are present.
6705         * app/app_procs.c (app_init): Loads persistent values on startup.
6706         (app_exit): Saves persistent values on exit.
6708         * app/layer_dialog.c (create_layer_dialog): Registers the layer
6709         window for persistence.
6711         * app/persistence.[ch]: New files handling various kinds of
6712         persistence.
6714 2003-04-04  Lars Clausen  <lrclause@cs.uiuc.edu>
6716         * lib/arrows.c: Adjusted arrow head spacing, more systematic arrow
6717         head spacing calculations.  Added half-circle arrow from Matthieu
6718         Sozeau <mattam@netcourrier.com> 
6720 2003-04-03  Lars Clausen  <lrclause@cs.uiuc.edu>
6722         * app/app_procs.c (app_init): Moved layer dialog init to allow
6723         tooltips to be initialized.
6725         * app/interface.c (create_display_shell): More tooltips.
6727         * app/linewidth_area.c (linewidth_area_create) 
6728         (linewidth_area_events): 
6729         * app/color_area.c (color_area_events, color_area_create): 
6730         Made tooltips work by embedding drawing_area in event_box.
6732         * app/interface.c (create_display_shell,
6733         (create_lineprops_area, create_color_area): Added a few tooltips.
6735 2003-04-01  Lars Clausen  <lrclause@cs.uiuc.edu>
6737         * app/pixmaps/off-grid.xpm: 
6738         * app/pixmaps/on-grid.xpm: 
6739         * app/Makefile.am (EXTRA_DIST): Added snap to grid icons.
6741         * app/display.h: 
6742         * app/commands.c (view_snap_to_grid_callback): 
6743         * app/display.c (ddisplay_set_snap_to_grid) 
6744         (update_snap_grid_status): 
6745         * app/interface.c (create_display_shell, grid_toggle_snap): 
6746         Added snap-to-grid status button.
6748 2003-03-31  Lars Clausen  <lrclause@cs.uiuc.edu>
6750         * app/app_procs.c (app_init): Create a new diagram if a file on
6751         the command line isn't found.
6753 2003-03-17  Lars Clausen  <lrclause@cs.uiuc.edu>
6755         * lib/dialibartrenderer.c (draw_string): Correct color handling
6756         for AA.
6758 2003-03-14  Lars Clausen  <lrclause@cs.uiuc.edu>
6760         * NEWS: 
6761         * doc/en/dia-manual.sgml: 
6762         * doc/pl/dia-manual.sgml: 
6763         * configure.in: 
6764         * dia.spec (Release): 
6765         Version 0.91 is here!
6767 2003-02-10  Steffen Macke <sdteffen@web.de>
6769         * plug-ins/wmf/wmf.cpp: patch from Ken Tsukahara 
6770         <ken.tsukahara@tmt-d.co.jp>, fixes windows printing and WMF export of
6771         non-ANSI characters, closes #107980
6773 2003-03-04  Lars Clausen  <lrclause@cs.uiuc.edu>
6775         * configure.in: 
6776         * NEWS: 
6777         * dia.spec (Release): 
6778         * doc/en/dia-manual.sgml: Upping to pre6.
6780         * configure.in: Missing comma broke HAVE_IEEEFP_H test.
6782         * app/lineprops_area.c (dia_arrow_chooser_new): Fixing bug
6783         #107511:  Make arrow selector for correct arrow type.
6785 2003-03-03  Lars Clausen  <lrclause@cs.uiuc.edu>
6787         * shapes/Circuit/Makefile.am (SHAPES): Added hjumper.png to
6788         EXTRA_DIST.
6790 2003-03-02  Lars Clausen  <lrclause@cs.uiuc.edu>
6792         * doc/en/dia-manual.sgml: 
6793         * configure.in: 
6794         * NEWS: 
6795         * dia.spec (Release): Upping to pre5.
6797         * configure.in: Add freetype-config derived libs to the
6798         AC_CHECK_LIB statement for freetype.
6800 2003-02-28  Hans Breuer  <hans@breuer.org>
6802         [fix for bug #107203]
6804         * lib/diarenderer.c : add warning 'implementation'
6805         for fill_rect to avoid crashing with a renderer
6806         which does not implement this required function.
6808         * plug-ins/dxf/dxf-export.c : provide - still empty -
6809         'implementations' for fill_rect and fill_polygon 
6810         to suppress the above warnings. Now it works like
6811         in version 0.90 
6813 2003-02-28  Steffen Macke <sdteffen@web.de>
6815         * samples/all_objects.dia: New sheet containing all dia shapes
6816         and objects; one layer per sheet
6817         
6818 2003-02-28  Lars Clausen  <lrclause@cs.uiuc.edu>
6820         * lib/prop_text.c (multistringprop_get_widget,
6821         multistringprop_reset_widget, multistringprop_set_from_widget): 
6822         Now uses GtkTextView instead of deprecated stuff, and also works:)
6824         * configure.in: Slightly more informative error message for isinf.
6826         * dia.spec (Requires): Require libxml2 rather than libxml.
6828 2003-02-28  Steffen Macke <sdteffen@web.de>
6830         * shapes/Circuit/hjumper.png:
6831         * shapes/Circuit/hjumper.shape: added missing icon for horizontal
6832         jumper shape
6833         
6834 2003-02-26  Lars Clausen  <lrclause@cs.uiuc.edu>
6836         * doc/en/dia-manual.sgml: 
6837         * configure.in: 
6838         * dia.spec (Release):
6839         * NEWS: New prerelease 0.91pre4, two important fixes.
6841 2003-02-25  Lars Clausen  <lrclause@cs.uiuc.edu>
6843         * plug-ins/xslt/Makefile.am (EXTRA_DIST): Also dist
6844         stylesheets.xml.in 
6846         * app/commands.c (help_manual_callback): More correct URL for help
6847         page (include file://, was broken on Dillo without it).
6849 2003-02-24  Lars Clausen  <lrclause@cs.uiuc.edu>
6851         * app/disp_callbacks.c: Set modifed when text is changed.
6853         * app/modify_tool.c (modify_button_release): Allow undo for moving
6854         objects.
6856 2003-02-16  Lars Clausen  <lrclause@cs.uiuc.edu>
6858         * dia.spec: 
6859         * doc/en/dia-manual.sgml: 
6860         * NEWS: 
6861         * configure.in: New prerelease with important bugfix.
6862         * shapes/network/digitizing_board.png:
6863         * shapes/network/plotter.png: Re-adding with -kb.
6864         
6865 2003-02-17  Abel Cheung  <maddog@linux.org.hk>
6867         * app/app_procs.c (app_init): Add comment for translators.
6869 2003-02-16  Lars Clausen  <lrclause@cs.uiuc.edu>
6871         * lib/filter.c (filter_register_import, filter_register_export):
6872         Don't accept filters with NULL description.
6874         * lib/plug-ins.c (dia_plugin_load): Fail if there's no description
6875         (as we assume the description is available in other places).
6877 2003-02-15  Lars Clausen  <lrclause@cs.uiuc.edu>
6878         
6879         * app/disp_callbacks.c (ddisplay_vsb_update, ddisplay_hsb_update): 
6880         * app/display.c (ddisplay_resize_canvas): Use
6881         ddisplay_add_update_all().
6882         (ddisplay_add_update_all): Free display and update lists when
6883         doing update_all, as they'll be regenerated immediately to cover
6884         all visible area.  Fixes bug #106165, crash when resizing.  This
6885         appears to be the original AA crash bug, believed long extinct.
6887 2003-02-13  Lars Clausen  <lrclause@cs.uiuc.edu>
6889         * app/commands.c (help_manual_callback): Use file: protocol for
6890         help. 
6892         * plug-ins/xslt/.cvsignore: Ignore .o files, please.
6894         * plug-ins/xslt/stylesheets: Removed old-style config file.
6895         
6896         * plug-ins/xslt/stylesheets.xml.in: New XML-based config file.
6898         * plug-ins/xslt/Makefile.am: 
6899         * plug-ins/xslt/xslt.c: Applied patch from Matthieu, improved path
6900         handling (no more DIA_PLUGIN_PATH).
6902 2003-02-11  Lars Clausen  <lrclause@cs.uiuc.edu>
6904         * plug-ins/svg/render_svg.c: 
6905         * lib/diasvgrenderer.c: Fixed numeric localized output issues.
6907 2003-02-10  Lars Clausen  <lrclause@cs.uiuc.edu>
6909         * objects/SADT/arrow.c (sadtarrow_draw): Clamp cosa, cosb to 
6910         [-1.0, 1.0].  Shouldn't be necessary, but in some cases the
6911         side of the triangle is longer than the hypotenuse.  Rounding
6912         error suspected.
6914 2003-02-09  Lars Clausen  <lrclause@cs.uiuc.edu>
6916         * NEWS: 
6917         * configure.in: 
6918         * doc/en/dia-manual.sgml: Update for pre2.
6920         * app/menus.c (display_menu_items): Fixed wrongly place separators.
6922         * objects/flowchart/box.c (box_update_data): Applied patch from
6923         Eivind Tagseth <eivind-gnome@multinet.no> to allow resize (with
6924         comment). 
6926         * app/paginate_psprint.c (print_page): Set paper name, so it
6927         convinces ps printers to use to right size.
6929 2003-02-07  Lars Clausen  <lrclause@cs.uiuc.edu>
6931         * app/properties.c (properties_show): Hide the dialog if the
6932         object is NULL (get rid of 'no properties' randomly popping up).
6934 2003-02-06  Lars Clausen  <lrclause@cs.uiuc.edu>
6936         * plug-ins/pixbuf/pixbuf.c (export_data): Adjust width and height
6937         for diagrams not starting at origo.
6939 2003-02-05  Lars Clausen  <lrclause@cs.uiuc.edu>
6941         * dia.spec (BuildRequires): Use libxml2-devel.
6943         * plug-ins/pixbuf/Makefile.am: Added to CVS.
6945         * RELEASE-PROCESS: Note on RPM version numbers.
6947         * app/interface.c (create_display_shell): Don't set as toolbar
6948         under Unix, either.  Especially not the diagram shell.  It removes
6949         it from the taskbar and makes it unresizable, always-on-top with
6950         OpenBox.  TOOLBAR != TOOLBOX.  Setting toolbox to the only
6951         appropriate thing, UTILITY, is not good either, you lose resizing
6952         and minimizing/maximizing under OpenBox.
6954         * app/menus.c (display_menu_items): Set delete item to use Delete.
6956 2003-02-04  Lars Clausen  <lrclause@cs.uiuc.edu>
6958         * dia.spec (BuildRequires, Requires): Updated for Gtk2
6959         requirements.
6961         * app/disp_callbacks.c (ddisplay_canvas_events): Only add a
6962         display flush when getting focus in, or we may get an update after
6963         the diagram has been destroyed in some cases.  Fixes bug #105221.
6965         * plug-ins/xfig/xfig-import.c: Notes on the splines used by XFig.
6967         * lib/diarenderer.c: Notes on the basis matrix for our beziers.
6969         * app/app_procs.c (app_init): Fixed missing popt context for Gnome
6970         - gnome-compiled Dia will now read files specified on the command line.
6972 2003-02-03  Lars Clausen  <lrclause@cs.uiuc.edu>
6974         * INSTALL (REQUIREMENTS): Updated requirements section.
6976         * configure.in: Better finite() check from Mårten Svantesson
6977         <f95-msv@nada.kth.se>.  Doesn't seem to generate strange dangly
6978         if's. 
6979         
6980 2003-02-03  Lars Clausen  <lrclause@cs.uiuc.edu>
6982         * plug-ins/xfig/xfig-import.c: Notes on spline conversions.
6984         * app/app_procs.c (debug_break): Added some code to avoid
6985         over-eager optimizations removing the call.  Surely there's a
6986         nicer way, but I'm not sure how.
6988         * app/diapsft2renderer.c (draw_bezier_outline): Removed paps relic
6989         that set text to black.
6991 2003-02-02  Lars Clausen  <lrclause@cs.uiuc.edu>
6993         * NEWS: Mention of Twiki as doc source for Python.
6995         * plug-ins/pixbuf/pixbuf.c: Export with pixbuf if
6996         libart/libpng is not available.  Later when we have a way of
6997         letting the user pick options in the file select dialog we shall
6998         allow the choice when applicable.
7000 2003-02-02  Steffen Macke <sdteffen@web.de>
7002         * doc/en/usage-loadsave.sgml:
7003         * doc/en/usage-objects.sgml: patch from
7004         James K. Lowden <jklowden@schemamania.org> to fix
7005         some docbook errors
7006         
7007 2003-02-01  Lars Clausen  <lrclause@cs.uiuc.edu>
7009         * plug-ins/Makefile.am (SUBDIRS): 
7010         * plug-ins/pixbuf/pixbuf.c: 
7011         * plug-ins/pixbuf/Makefile.am: 
7012         * configure.in: 
7013         Added pixbuf plugin to Makefile.am, but for import only.  PNG
7014         export handled by libart, which is better. JPG export is
7015         discouraged.  BMP is not much used on Unix.  Next release will
7016         integrate libart to allow all outputs.
7018 2003-02-01  Hans Breuer  <hans@breuer.org>
7020         * app/preferences.c :
7021         * app/pagesetup.c :
7022         the last two dialogs with 'old' button order finally
7023         are converted to gtk2, no GnomeDialog in all of Dia 
7024         anymore :-) 
7026 2003-02-01  Hans Breuer  <hans@breuer.org>
7028         * app/filedlg.c : don't try to use a button as
7029         'overwrite-file-dialog'-parent, use the FileSelDialog
7030         instead
7032         * plug-ins/pixbuf/pixbuf.c : make it work with 
7033         system-visual-depth < 24. Remove 'bmp' from output
7034         format extensions, it just was wishful thinking.
7036         * plug-ins/python/Makefile.am : added the four new python 
7037         plug-ins mentioned below to pyplugin_DATA and EXTRA_DIST
7039 2003-02-01  Hans Breuer  <hans@breuer.org>
7041         * NEWS : updated content beside dependencies
7043 2003-02-01  Hans Breuer  <hans@breuer.org>
7045         * lib/arrow.h : arrow_types needs to be declared as DIAVAR
7046         to make it useable across DLL boundaries
7047         * app/lineprops_area.c : same code to access arrow_types
7048         on all platforms
7050         * objects/UML/class.c : the non empty string is e.g.
7051         comment != NULL && comment[0] != '\0'
7052         * objects/UML/uml.c : same here, don't bother with
7053         empty operation stereotypes
7055 2003-02-01  Steffen Macke <sdteffen@web.de>
7057         * app/lineprops_area.c: latest changes do not work on
7058         windows, using old code without tooltips
7059         * makefile.msc: fixed copying of wmf.dll
7060         * plug-ins/makefile.msc: 
7061         * app/makefile.msc:
7062         * lib/makefile.msc: now linking libintl
7063         * config.h.win32: enabling native language support
7065 2003-01-31  Lars Clausen  <lrclause@cs.uiuc.edu>
7067         * plug-ins/xslt/Makefile.am (libxslt_filter_la_LDFLAGS): Removed
7068         -ldl and -lglib.  May or may not work on windows...awaiting verdict.
7070 2003-01-31  Daniel Yacob  <locales@geez.org>
7072         * configure.in: Added am (Amharic) to ALL_LINGUAS.
7074 2003-01-31  Steffen Macke <sdteffen@web.de>
7076         * objects/UML/class.c (umlclass_calculate_data): fixed crash
7077         when comments were visible, no class comment available and
7078         a attribute comment
7079          
7080 2003-01-31  Lars Clausen  <lrclause@cs.uiuc.edu>
7082         * RELEASE-PROCESS: Updated to fit new install-module syntax.
7083         * Prerelease 0.91-pre1 released on a suspecting public.  Tagging
7084         with DIA_0_91_PRE1.
7086 2003-01-30  Lars Clausen  <lrclause@cs.uiuc.edu>
7088         * config.h.win32: 
7089         * NEWS: 
7090         * configure.in:
7091         * dia.spec:
7092         Prerelease version changes, version 0.91-pre1.
7094         * app/sheets_dialog_callbacks.h: 
7095         * app/sheets_dialog_callbacks.c: 
7096         * app/sheets_dialog.c (create_sheets_main_dialog): 
7097         * app/sheets.c (sheets_dialog_create): More destroy stuff.  Trying
7098         to handle destruction of main dialog cleanly, but it's a mess.
7100         * configure.in: Downgraded ieeefp test to make it not produce
7101         illegal shell code.
7103         * lib/widgets.c (dia_arrow_selector_set_arrow): 
7104         (dia_line_style_selector_set_linestyle): Select menu dot
7105         correctly set.
7107         * lib/arrows.c (calculate_arrow_point): Fix of wrong arrow
7108         adjustment for diamondheads.
7110         * lib/plug-ins.c (dia_plugin_load): Fixed typo.
7112         * app/properties.c (create_dialog): Destroy properties dialog and
7113         box correctly.
7115         * app/sheets_dialog_callbacks.c
7116         (on_sheets_dialog_button_edit_clicked): Only create a new dialog
7117         if the old one is destroyed.
7119 2003-01-29  Lars Clausen  <lrclause@cs.uiuc.edu>
7121         * app/export_png.c (export_png_ok): Added info on resolution.
7122         Should (next release) improve export dialog to allow setting
7123         resolution instead of pixels.
7125         * app/lineprops_area.c (dia_arrow_chooser_new): Use menudesc list
7126         to generate arrowheads as well as tooltips.
7128         * lib/arrows.c: Added hollow diamond to menudesc list.
7130         * lib/arrows.[ch]: 
7131         * lib/widgets.[ch]: Moved arrow name list into arrows.[ch] to
7132         unify with rendered menu.
7134         * lib/diarenderer.c (draw_line_with_arrows)
7135         (draw_polyline_with_arrows, draw_arc_with_arrows)
7136         (draw_bezier_with_arrows): Fixed linestyle change bug (#104488)
7137         without changing renderer API.  Thanks to David Scherba for
7138         providing inspiration.
7140 2003-01-28  Lars Clausen  <lrclause@cs.uiuc.edu>
7142         * app/interface.c (create_display_shell):
7143         * app/display.h: Patching from Hubert Figuiere
7144         <hfiguiere@teaser.fr>:  Better types for menu bar widgets, and
7145         correct menu items.
7147 2003-01-26  Lars Clausen  <lrclause@cs.uiuc.edu>
7149         * app/defaults.c (defaults_show): Fixed defaults closing bug.
7150         Thanks to Hans for pointing it out.
7152 2003-01-25  Hans Breuer  <hans@breuer.org>
7154         * app/commands.c : don't warn about crashing libart renderer
7155         on win32. It simply doesn't render text anymore :-(
7157         * app/filedlg.c : use GtkMessageDialog for 'file overwrite'
7159         * objects/UML/class.c : don't access umlclass->properties_dialog
7160         after calling gtk_widget_destroy(umlclass->properties_dialog->dialog)
7161         which sets the former to NULL by destroy_properties_dialog() callback.
7163         * plug-ins/wmf/wmf.cpp : use dia_image_rowstride()
7165         * plug-ins/python/pydia-font.c : fix PyDiaFont_GetAttr()
7167         * plug-ins/python/pydia-image.c : add image.uri member
7168         not only useful for SVG rendering
7170         * plug-ins/python/diasvg.py : (new file) a more advanced
7171         example. A full blown SVG Renderer, currently only
7172         registered for .svgz
7174         * plug-ins/python/export-object.py : write text props
7176         * plug-ins/python/debug_objects.py : write prop.type and
7177         prop.visible 
7179 2003-01-25  Lars Clausen  <lrclause@cs.uiuc.edu>
7181         * objects/UML/association.c (association_update_data): Better
7182         bounding box for assoc with arrows.
7184         * lib/properties.h: New flag for properties with multiple values
7185         in groups.
7187         * app/lineprops_area.c (dia_arrow_chooser_dialog_show): Correct
7188         arrow updating in dialog.  Was broken due to changes from destroy
7189         fix:(
7191         * app/commands.c (view_aa_callback): AA warning only for Windows
7192         -- I trust the Unix side well enough.
7194         * app/render_libart.c (get_text_width): 
7195         * lib/dialibartrenderer.h (struct _DiaLibartRenderer): Font and
7196         font height can be taken from parent instance.
7198         * lib/dialibartrenderer.c (dia_libart_renderer_class_init) 
7199         (get_text_width): Proper cursor positioning for libart renderer.
7200         Ought to have a DiaInteractiveRenderer that these two can inherit
7201         from, that knows about transform.
7203 2003-01-25  Steffen Macke <sdteffen@web.de>
7205         * plug-ins/xslt/xslt.h: don't use dlfcn.h on win32. XSLT
7206         plug-in still not working on win32
7207         
7208 2003-01-24  Lars Clausen  <lrclause@cs.uiuc.edu>
7210         * app/disp_callbacks.c (ddisplay_canvas_events): Moved
7211         gdk_window_get_pointer to avoid destroy crash.  Simpler than I
7212         thought.
7214 2003-01-23  Lars Clausen  <lrclause@cs.uiuc.edu>
7216         * app/app_procs.c (app_init): Run gtk_init before popt so we don't
7217         bail out on gtk options.
7219         * lib/message.c (gtk_message_internal): Better handling of destroy
7220         event.
7222 2003-01-22  Lars Clausen  <lrclause@cs.uiuc.edu>
7224         * app/color_area.c (color_area_edit): 
7225         * lib/widgets.c (dia_file_selector_browse_pressed) 
7226         (dia_color_selector_pressed): 
7227         * app/plugin-manager.c (get_plugin_manager): 
7228         * app/filedlg.c (file_open_callback, file_save_as_callback) 
7229         (file_export_callback):
7230         * app/diagram_tree_window.c (diagram_tree_window_new): Correct
7231         handling of destroy event.
7233 2003-01-22  Alan Horkan <horkana@tcd.ie>
7235         * app/commands.c (file_new_callback): Changed Untitled to Diagram
7236         for default name.
7238 2003-01-21  Lars Clausen  <lrclause@cs.uiuc.edu>
7240         * app/preferences.c (prefs_create_dialog): 
7241         * app/linewidth_area.c (linewidth_create_dialog): 
7242         * app/lineprops_area.c (dia_arrow_chooser_dialog_show): 
7243         * app/layer_dialog.c (create_layer_dialog)
7244         (layer_dialog_edit_layer): Correct handling of destroy signal. 
7246         * app/diapsft2renderer.c (set_font): Adjust silly random factor
7247         for change in font.c
7249         * lib/widgets.c: Avoid warning when font menu file doesn't exist.
7251         * lib/font.c (dia_font_build_layout): Let's all use the same weird
7252         factor here.
7254         * app/lineprops_area.c (dia_arrow_chooser_dialog_show): 
7255         * app/layer_dialog.c (create_layer_dialog) 
7256         (layer_dialog_edit_layer): 
7257         * app/filedlg.c (file_open_callback, file_save_as_callback) 
7258         (file_export_callback): 
7259         * app/dia-props.c (create_diagram_properties_dialog): 
7260         * app/defaults.c (defaults_dialog_destroyed): 
7261         * app/color_area.c (color_area_edit): Dialog destroy event handling.
7263 2003-01-19  Lars Clausen  <lrclause@cs.uiuc.edu>
7265         * app/defaults.c (defaults_dialog_destroyed): Reset cache when
7266         defaults dialog destroyed.
7268 2003-01-19  Steffen Macke <sdteffen@web.de>
7270         * objects/makefile.msc: added bondgraph
7271         * plug-ins/makefile.msc: added GDK_PIXBUF_LIBS in order
7272         to compile pixbuf.dll
7273         * makefile.msc: copying all objects and dlls now
7274         
7275 2003-01-19  Hans Breuer  <hans@breuer.org>
7277         * app/diagram.[hc] : provide dia_open_diagrams(), make
7278         open_diagrams variable static
7279         * app/dia.def : export it (to be used by PyDia)
7280         * app/app_procs.c app/autosave.c app/diagram_tree_window.c
7281           app/display.c app/dynamic_refresh.c app/layer_dialog.c
7282           app/load_save.c : make use of dia_open_diagrams()
7284         * app/interface.c : don't set GDK_WINDOW_TYPE_HINT_TOOLBAR
7285         on win32. It removes the diagram window from the taskbar and
7286         shrinks it's window title to toolbar style (newest gtk2.2 cvs)
7288         * app/menus.c : add '...' to menu entries where a dialog 
7289         gets invoked
7290         * app/recent_files.c app/dia_embedd.c : reflect the above in 
7291         menus_get_item_from_path() calls
7293         * lib/libdia.def : add dia_image_rgba_data
7295         * lib/properties.h lib/prop_text.[hc] : add new property
7296         type StringList
7297         * objects/UML/class.[hc] object/UML/class_dialog.c : use
7298         StringList for attributes_strings and operations_strings to
7299         make this calculated data accessible via the Property API
7301         * plug-ins/python/diamodule.c : use dia_open_diagrams() and
7302         provide dia.new() to create a new diagram, dia.registered_types()
7303         to get on Dia's type registry, dia.message() for simple dialogs
7305         * plug-ins/python/pydia-diagram.c : implement DiaDiagram.display()
7306         to create a new display from a diagram. Let diagram.extents and
7307         diagram.bg_color return the same types as in diagramdata.*
7309         * plug-ins/python/pydia-geometry.c : add a read-only 
7310         'sequence interface' to DiaPoint and DiaRectangle
7312         * plug-ins/python/pydia-property.c : allow to get on StringList
7313         from Python
7315         * plug-ins/python/pydia-render.c : fix typo to make it compile
7317         * plug-ins/python/python-startup.py : removed 'import pygtk'
7318         again. This file does not need any gtk UI, and some python
7319         plug-ins don't do either
7321         * plug-ins/python/gtkcons.py : ported to GTK2 interface, now
7322         it should actually work as intended again
7324         * plug-ins/python/group_props.py : (new file) a prototype for
7325         one the most requested features: Change properties of selected
7326         objects in one step. Requires pygtk.
7328         * plug-ins/python/select_by.py : (new file) select objects by 
7329         common properties. Requires pygtk.
7331         [Start of 'PyDia Self Documentation Series']
7333         * plug-ins/python/pydiadoc.py : (new file) generates a new 
7334         diagram which contains all objects of dir(dia)
7335         
7336         * plug-ins/python/otypes.py : (new file) generates a new diagram 
7337         which contains all the currently registered object types sorted 
7338         by their containing package
7340 2003-01-18  Lars Clausen  <lrclause@cs.uiuc.edu>
7342         * configure.in: Added check for Pango >= 1.1.5, which appears to
7343         be enough to have text work.
7344         (INTLOBJS): Added dummy subst cause gettext doesn't always seem to
7345         do it.  AC_SUBST should be idempotent, though.
7347 2003-01-17  Lars Clausen  <lrclause@cs.uiuc.edu>
7349         * configure.in (HAVE_FREETYPE): Better test for freetype version
7350         using neat macro.
7351         Now actually sets HAVE_IEEEFP_H, needed for Solaris.
7353         * lib/font.c: Renamed global_size_one to global_zoom_factor to
7354         avoid confusion, and added comment.  Set scale factor in
7355         dia_font_build_layout to 1.0 for Unix side.  This fixes at least
7356         my weird scaling problems.  Fonts are now of the expectable size,
7357         i.e. the space between lines at size 1.0 is 1.0.  If we want a
7358         compatibility fix, we should scale fonts by about 1/0.75 from 0.90
7359         diagrams, though there will always be differences.
7361 2003-01-15  Lars Clausen  <lrclause@cs.uiuc.edu>
7363         * plug-ins/python/python-startup.py: 
7364         * plug-ins/python/gtkcons.py: Require gtk 2.0 for pygtk
7366         * plug-ins/python/python.c (dia_plugin_init): Added warning
7367         message for missing startup file.
7369         * lib/dialibartrenderer.c (draw_image): Alpha rendering!  Yay!
7370         
7371         * lib/dia_image.c (dia_image_rgb_data): 
7372         * app/diapsrenderer.c (draw_image): Fixed rowstride problems
7373         involving EPS.  Can't do transparency in EPS yet.
7375         * lib/dia_image.h: 
7376         * lib/dia_image.c (dia_image_rgba_data): New function to get RGBA
7377         data as one chunk.  Documentation for the RGB data getting funcs.
7378         (dia_image_rgb_data): Added comment.
7380         * lib/dialibartrenderer.c (draw_image): Correct rowstride handling
7381         (bug #103565)
7383 2003-01-13  Steffen Macke <sdteffen@web.de>
7385         * lib/dia_image.c: dia_image_rgb_data() is working for
7386         non-alpha images now. Fixes #93762
7387         * Makefile.am: added makefile.msc to EXTRA_DIST
7388         
7389 2003-01-10  Steffen Macke <sdteffen@web.de>
7391         * app/paginate_psprint.c: Closing print dialog when file
7392         could not be written. Fixes #84746
7393         
7394 2003-01-04  Steffen Macke <sdteffen@web.de>
7396         * doc/custom-shapes: incomplete description of <svg:text>
7398 2003-01-03  Steffen Macke <sdteffen@web.de>
7400         * makefile.msc(new): new makefile to create file
7401         structure suitable for running dia win32 under
7402         $(TOP)/dia/build/win32
7403         
7404 2003-01-02  Steffen Macke <sdteffen@web.de>
7405         
7406         * lib/dia_svg.c: including stdlib.h
7407         * lib/makefile.msc: added gdk_pixbuf libs to linker
7408         * app/makefile.msc: added gdk_pixbuf libs, made libart
7409         libs compatible with gnuwin32 package
7410         
7411 2003-01-01  Hans Breuer  <hans@breuer.org>
7413         * lib/font.c : more comment about global_size_one
7415         * app/menus.c : <control>[<shift>]A for plain gtk build too.
7417         * plug-ins/wmf/wmf.cpp : some type juggling to make 
7418         msvc7 happy
7420 2002-12-31  Steffen Macke <sdteffen@web.de>
7422         * app/makefile.msc: added hint on how to enable console output
7423         
7424 2002-12-17  Lars Clausen  <lrclause@cs.uiuc.edu>
7426         * objects/standard/textobj.c (textobj_load): Get the handle type
7427         right, at least to be the same as when created.
7429 2002-12-12  Lars Clausen  <lrclause@cs.uiuc.edu>
7431         * lib/dialibartrenderer.c (draw_string): Removed extra 'is'.
7433 2002-12-08  Hans Breuer  <hans@breuer.org>
7435         * app/commands.c : fixed bug #85315 'give diagram properties, 
7436         instead of no object selected error' almost a one-liner
7438         * app/splash.c : don't make having the logo pixmap
7439         mandatory. Fixes bug #96068. 
7441         * app/defaults.c : avoid crashing from open-dialog,esc,open-dialog
7442         sequence by connecting to the "delete_event"
7443         * app/objects/uml/class_dialog.c : handle "destroy" for 
7444         the same reason.
7446         * lib/libdia.def : remove diaXmlNewChild again
7448         * app/paginate_gdiprint.cpp : reflect Dia's page setting
7449         portrait/landscape in the windoze print dialog
7451         * objects/makefile.msc : only UML needs to link against
7452         $(GTK2_LIBS) and only custom against $(LIBXML2_LIBS)
7454 2002-12-08  Lars Clausen  <lrclause@cs.uiuc.edu>
7456         * objects/standard/ellipse.c (ellipse_distance_from): 
7457         * lib/geometry.c (distance_ellipse_point): Ellipse now uses the
7458         correct distance function.  Could be faster, but it's not really
7459         essential. 
7461 2002-12-07  Lars Clausen <lrclause@cs.uiuc.edu>
7463         * lib/font.c: Changed global_size_one to more correct 28.35.
7464         Looks better, too.
7466         * app/load_save.c:
7467         * lib/dia_xml.h: 
7468         * lib/dia_xml.c: Removed pretty print hack, the libxml thing works
7469         after all.
7471 2002-12-07  Hans Breuer  <hans@breuer.org>
7473         * lib/widgets.c : g_file_get_contents() silently assumes
7474         a binary file. Reflect when creating the font_menu file
7475         to get rid of junk in font menus
7477 2002-12-06  Hans Breuer  <hans@breuer.org>
7479         * app/diapsrenderer.[hc] app/diapsft2renderer.[hc] :
7480         removed 0xD 0xD 0xA line ends which get created by
7481         cvs if windoze line ends 0xD 0xA are checked in from
7482         *nix and checked out on win32.
7484         * app/preferences.c : changed toolbox_on_top default to
7485         false. It is currently not possible to change the behaviour
7486         at runtime, at least not on win32.
7488         * lib/dialibartrenderer.c : bug #94791 'rendering to 
7489         bitmap without PangoFt2' got delayed to milestone future 
7490         so wrap libart text rendering into PANGO_WIN32_FUTURE. 
7491         It is not available without my Pango patch in bugzilla.
7493         * lib/font.c : added comment to global_size_one and adapt
7494         the arbitrary size scaling in dia_font_build_layout() for
7495         win32, too. This is needed to get an acceptable font size 
7496         approximation for Dia 0.90 and earlier files.
7497         Also #include "message.h".
7499         * app/makfile.msc app/dia.def lib/makefile.msc lib/libdia.def :
7500         reflect movement of group.[hc]
7501         * lib/group.h : export group_type which gets used by app/*
7503         * lib/diagtkfontsel.c : added #undef GTK_DISABLE_DEPRECATED
7504         to get the GtkTypeInfo definition
7506         * plug-ins/makefile.msc : dxf and xfig don't need to link
7507         against app/ anymore now that group is moved to lib/
7509         * plug-ins/python/pydia-render.c : remove massive leaking
7510         of self, i.e. PyDiaRenderer
7512         *  plug-ins/python/makefile.msc : remove linking against
7513         GTK libs
7515 2002-12-06  Lars Clausen  <lrclause@cs.uiuc.edu>
7517         * objects/standard/line.c: Removed properties options for gaps,
7518         until release is done.
7520         * configure.in: Check for freetype version.
7522         * lib/text.c (text_insert_char): Fixed small buffer overflow for
7523         length = 0.
7525         * lib/dialibartrenderer.c (draw_string): Removed debugging printf.
7527         * app/diapsft2renderer.h: 
7528         * app/diapsft2renderer.c: 
7529         * app/diapsrenderer.h: 
7530         * app/diapsrenderer.c: Split ps rendering into standard and freetype.
7532         * app/render_eps.c (export_eps, new_psprint_renderer): Using
7533         PS_FT2 renderer when available.  Old render stuff killed.  Yay!
7535         * lib/properties.h: Fixed bad frame end def.
7537         * app/Makefile.am (dia_core_files): Added diapsft2renderer.[ch].
7539         * lib/dia_xml.c (data_add_string): Avoid #-less strings.
7540         
7541         * objects/bondgraph/Makefile.am: Removed unneeded EXTRA_DIST.
7543 2002-12-05  Lars Clausen  <lrclause@cs.uiuc.edu>
7545         * lib/font.c: Now checking for the proper dia-style standard fonts.
7547         * lib/Makefile.am: 
7548         * app/Makefile.am: Moving group.[ch]
7550         * plug-ins/dxf/dxf-import.c: 
7551         * plug-ins/xfig/xfig-import.c: 
7552         * plug-ins/xfig/xfig-export.c: Now can refer directly to group.h.
7554         * app/object_ops.c: 
7555         * app/object_ops.h: 
7556         * lib/object.c (object_list_move_delta, object_copy_list): 
7557         * lib/object.h: Moved some object-related functions from
7558         object_ops to object to assist moving group.c.
7560         * lib/diatypes.h: Added Group typedef.
7562         * lib/group.h: 
7563         * lib/group.c: Moved from app to lib to a) resolve plug-ins
7564         references, and b) make groups more "real" objects.
7566         * lib/Makefile.am (libdia_la_SOURCES): Added diatyps.h
7568 2002-12-03  Lars Clausen <lrclause@cs.uiuc.edu>
7570         * lib/font.c (dia_font_init): Added check that the three standard
7571         fonts exist.
7573 2002-12-02  Lars Clausen  <lrclause@cs.uiuc.edu>
7575         * lib/dia_xml.[ch]:
7576         * app/load_save.c: Linebreaks in dia files, no indentation.
7577         Should help text tools.  xmlNewChild wrapped in diaXmlNewChild for
7578         this. 
7579         
7580         * objects/standard/line.c: Small but important fixes to the line
7581         gap code.
7583         * lib/dia_xml.h: 
7584         * lib/dia_xml.c (diaXmlNewChild): 
7585         * app/load_save.c (diagram_data_write_doc, write_objects): Simple
7586         XML prettyprinting wrapper.
7588 2002-12-03  Steffen Macke <sdteffen@web.de>
7590         * shapes/Cisco/Makefile.am:
7591         * shapes/Cisco/*.shape: finished conversion of Cisco icons
7592         to *.png
7593         
7594 2002-12-02  Steffen Macke <sdteffen@web.de>
7596         * doc/en/Makefile.am:
7597         * doc/en/usage-objects.sgml:
7598         * doc/en/graphics/line_icon.png: (new) added line icon
7599         
7600 2002-12-02  Lars Clausen  <lrclause@cs.uiuc.edu>
7602         * objects/standard/line.c: Binary search object edge line gap.
7604 2002-12-01  Lars Clausen  <lrclause@cs.uiuc.edu>
7606         * configure.in: Added Cisco makefile, sorted Makefiles list.
7608         * shapes/Makefile.am (SUBDIRS): Added Cisco dir
7610         * configure.in: Now checks for availability of PangoFT2 and
7611         FreeType, raising an error if not found.
7613         * app/Makefile.am (dia_core_files): Adding diapsft2renderer from
7614         Hans.
7616 2002-12-01  Steffen Macke <sdteffen@web.de>
7617         
7618         * doc/en/usage-loadsave.sgml: updated information on import
7619         and export formats
7620         
7621 2002-11-28  Lars Clausen  <lrclause@cs.uiuc.edu>
7623         * app/commands.c (edit_copy_callback): Freeing copy_list.
7625 2002-11-28  Steffen Macke <sdteffen@web.de>
7626         
7627         * app/render_libart.c: art_config.h was included twice
7629 2002-11-27  Lars Clausen  <lrclause@cs.uiuc.edu>
7631         * sheets/.cvsignore: More ignorance.
7633         * lib/diagdkrenderer.c (draw_string): Removed silly #ifdef 1.
7635         * lib/prop_widgets.h: Two (currently unused) settings for frame
7636         foldability.
7638         * lib/prop_widgets.c (frame_beginprop_get_widget): Frames are now
7639         (by default) foldable. 
7641         * lib/propinternals.h: 
7642         * lib/propdialogs.c (prop_dialog_add_raw_with_flags): Way to add
7643         widgets in a more controlled manner.
7645         * objects/standard/line.c (line_update_data): Line gap things
7646         inserted.  Can do xeyes now:)
7648 2002-11-26  Christian Neumair  <chris@gnome-de.org>
7650         * .cvsignore: Changed.
7651         * objects/bondgraph/.cvsignore, plug-ins/metapost/.cvsignore,
7652         plug-ins/xslt/.cvsignore, shapes/Assorted/.cvsignore, shapes/Misc/.cvsignore:
7653         Added.
7655 2002-11-26  Lars Clausen  <lrclause@cs.uiuc.edu>
7657         * app/pixmaps/delete.xpm: Trashcan stolen from Gimp.
7659         * lib/widgets.c (dia_font_selector_get_font): Fixed wrong name
7660         passing to font hash.
7662         * app/filedlg.c (file_save_as_ok_callback): Check that filename is
7663         utf-8 or locale-convertible before adding to dialog text.  This
7664         probably needs done in a number of places where we get text from
7665         the environment and send it to GTK to display.
7667         * lib/widgets.c: Fixed case problems for font menu entries.
7669         * objects/SADT/annotation.c: Don't run the event test (but leave
7670         it here for inspiration).
7672         * lib/widgets.c: 
7673         * lib/widgets.h: Allowing setting preview text for fonts.
7675 2002-11-26  Lars Clausen  <lrclause@cs.uiuc.edu>
7677         * objects/bondgraph/Makefile.am: 
7678         * objects/bondgraph/bondgraph.c: 
7679         * configure.in: 
7680         * objects/Makefile.am: Added bond graph dir.
7682 2002-11-26  Lars Clausen  <lrclause@cs.uiuc.edu>
7684         * lib/text.c (text_calc_boundingbox, text_draw): Better cursor size.
7686 2002-11-25  Lars Clausen  <lrclause@cs.uiuc.edu>
7688         * lib/text.c (text_calc_boundingbox, text_draw): Better cursor
7689         positioning. 
7691         * app/diapsrenderer.c: Freetype rendering is back in force.
7693         * app/disp_callbacks.c: Added missing updates for pre-text-change.
7695 2002-11-25  David Hoover <jazzdaq@yahoo.com>
7697         * app/render_libart.c: Added missing #include line for libart.
7699         * lib/geometry.h:
7700         * lib/geometry.c: Added point_convex function.  This computes
7701         points inside a line segment (0 <= alpha <= 1) or outside the
7702         line segment (alpha < 0 | alpha > 1).
7704         * objects/standard/line.c: Line now has additional code/attributes
7705         which permit the line to extend past the line anchors (gap < 0) or
7706         leave a gap without reaching the anchor (gap > 0).  If no gap is
7707         specified, the default gap of 0 will result in identical line
7708         behavior as before.  If the 'fractional' attributes are TRUE, the
7709         gap length is not fixed, but a percentage of the line length.  I
7710         did not know how create the GTK widgets so the gap code currently
7711         cannot be used without adding XML attributes by hand.
7713 2002-11-25  Lars Clausen  <lrclause@cs.uiuc.edu>
7715         * lib/diagdkrenderer.c (draw_string): Removed timing bits.
7717         * lib/Makefile.am (libdia_la_SOURCES): Added fontsel files to SOURCES.
7719 2002-11-24  Lars Clausen  <lrclause@cs.uiuc.edu>
7721         * lib/font.c: Debugging functionality in separate functions.
7723         * lib/widgets.c: Using fontsel with context.
7725         * lib/diagtkfontsel.[ch]: Context-aware copy of the GTK fontsel.
7727         * objects/custom/custom_object.c: Orientation handling for shapes,
7728         patch thanks to Martin Hans <opfinder@gmx.net>.
7730         * objects/standard/zigzagline.c (zigzagline_move_handle): Starting
7731         work on even better orientation handling.
7733         * app/menus.c (menus_get_item_from_path): Fixed sily warnings from
7734         casting NULL pointers.  Should be unnecessary in an upcoming GTK
7735         release. 
7737 2002-11-18  Lars Clausen  <lrclause@cs.uiuc.edu>
7739         * lib/font.h:
7740         * lib/font.c:
7741         * lib/widgets.c: Now uses correct context to get font families.
7743         * lib/diagdkrenderer.c (get_text_width, draw_string): 
7744         * lib/dialibartrenderer.c (draw_string): 
7745         * lib/font.h: 
7746         * lib/font.c (dia_font_init): Removed old kludgy font name compare.
7747         (dia_font_build_layout): Unified the twiddle factors into a use of
7748         global_size_one.  But I deeply distrust Pango for seeming to
7749         change size of fonts every time I turn my back.
7751         * app/display.c: 
7752         * app/diagram.c: 
7753         * app/menus.c:
7754         * app/menus.h: Updated some more methods to also be more specific
7755         on the types.
7757         * app/menus.h:
7758         * app/recent_files.c: 
7759         Changed to return most specific type, to avoid run-time type errors.
7761         * app/menus.c (menus_get_item_from_path): Non-gnome version now
7762         gets menu_item rather than widget, which works better.
7764 2002-11-17  Cyrille Chépélov  <cyrille@chepelov.org>
7766         * app/display.c: (new_display):
7767         * app/menus.c: (menus_get_item_from_path):
7768         Relying on the tearoff to locate the input methods menu wasn't a
7769         good idea: tearoffs seem to be an endangered species nowadays.
7770         Anyway, the IM menu seems to be working now.
7772         * app/interface.c: hinted the window manager that the toolbox window
7773         is a toolbox window. Not that my (fairly default configuration)
7774         sawfish cares, but other NETWM compliant WMs may.
7776         * app/commands.c: 
7777         * app/defaults.c: 
7778         * app/dia-props.c:
7779         * app/filedlg.c: 
7780         * app/interface.c: 
7781         * app/layer_dialog.c: 
7782         * app/linewidth_area.c: 
7783         * app/properties.c: 
7784         * app/sheets_dialog.c: 
7785         * app/splash.c: 
7787         The GTK doc says to avoir gtk_window_set_wmclass() and 
7788         gtk_window_set_policy(), and use gtk_window_set_role() and
7789         gtk_window_set_resizable(), respectively.
7790         
7791         * app/preferences.c: (prefs_create_dialog):
7792         * app/preferences.h:
7793         * app/display.c: (display_set_active):
7794         Added a preference to have the toolbox hover over diagram windows.
7795                 
7796 2002-11-12  Lars Clausen  <lrclause@cs.uiuc.edu>
7798         * lib/diagdkrenderer.c (get_text_width, draw_string):
7799         Freetype-based string drawing now works.  Not very fast, though.
7800         I wish I could use the graphics card for this:(  I'm doing three
7801         bitmap loops where I should be doing one.  The size is not correct
7802         either, despite having get_text_width give the right thing.
7804 2002-10-21  Lars Clausen  <lrclause@cs.uiuc.edu>
7806         * app/connectionpoint_ops.c (diagram_update_connections_object):
7807         Allows more than one connectionpoint on an object to be moved at a
7808         time (bug #96306).
7810 2002-10-18  Stanislav Brabec  <sbrabec@suse.cz>
7812         * configure.in: Added cs to ALL_LINGUAS.
7814 2002-10-17  Lars Clausen  <lrclause@cs.uiuc.edu>
7816         * app/paginate_psprint.c: Removed unnecessary decl of autosave
7817         stuff.
7819         * app/display.c (ddisplay_set_renderer): Calls to begin/end render.
7821         * app/export_png.c (export_png_ok): Saving more variables from the
7822         evil setjmp.
7824 2002-10-16  Lars Clausen  <lrclause@cs.uiuc.edu>
7826         * lib/dialibartrenderer.c (begin_render):
7827         (end_render): Correct pushing and popping of font contexts.
7828         (draw_string): Double zooming eliminated, strange twiddle factor
7829         introduced (grumble).  Close to working now, but there are still
7830         strange differences from font to font.  In particular, some fonts
7831         really mess with the cursor and extents.
7833         * app/render_eps.c (export_eps): 
7834         * app/diapsrenderer.c (dia_ps_renderer_finalize): 
7835         Fixed file closing confusion, no longer dependent on PS/EPS.
7837         * app/diagram.c (diagram_place_down_selected) 
7838         (diagram_place_up_selected): Now implemented.
7840         * lib/font.c (dia_font_init): 
7841         * lib/font.h: 
7842         Redesigned the font init/context pushing code.  Start of fix for
7843         font name differences.
7844         
7845 2002-10-15  Kjartan Maraas  <kmaraas@gnome.org>
7847         * app/sheets_dialog_callbacks.c: Fix a typo.
7848         
7849 2002-10-15  Hans Breuer  <hans@breuer.org>
7851         * app/diapsrenderer.[hc] : (new files, old content :-)
7852         simple base class for post script rendering. Does neither 
7853         use Pango/FT2 nor does it handle non latin1 characters. 
7854         The fancy stuff which nowadays appears to be needed should 
7855         probably be done in derived class(es)
7857         * app/makefile.msc app/Makefile.am : added new files
7859         * app/paginate_psrint.c : re-enabled and used as test
7860         for the simple ps renderer above.
7862         * app/render_eps.[hc] : ripped out common ps code and
7863         moved to DiaPsRenderer. The rest of the file is mostly
7864         disabled. And I don't understand enough of it to 
7865         change port it.
7867         * app/diaepsrenderer.h : short lived, removed.
7869 2002-10-15  Lars Clausen  <lrclause@cs.uiuc.edu>
7871         * lib/plug-ins.c (dia_register_plugin): Don't try to load libdia
7872         as a plugin (thanks to Torben Nielsen).
7874 2002-10-14  Lars Clausen  <lrclause@cs.uiuc.edu>
7876         * app/diaepsrenderer.h: 
7877         * app/render_eps.h: 
7878         * app/paginate_psprint.c: 
7879         #ifdef'd out enough ps stuff to allow compile.  Now we just need
7880         to convert it.
7881         
7882 2002-10-12  Hans Breuer  <hans@breuer.org>
7884         [last plug-in ported]
7886         * plug-ins/xfig/xfig-export.c : ported to new renderer api
7888         * plug-ins/xfig/xfig-import.c(fig_create_object) : need to
7889         scale color values to [0..1.0] to properly reconstruct
7890         user colors
7892         * plug-ins/xfig/xfig-common.c : some cleaning
7894 2002-10-12  Hans Breuer  <hans@breuer.org>
7896         [decrease inter-plug-in-dependencies]
7898         * objects/custom/shape_info.[hc] : move parse_style()
7899         to lib/dia_svg.[hc] as dia_svg_parse_style(); Namespace
7900         the related structs and constants.
7901         * objects/custom/custom_object.c : reflect namespace
7902         changes
7904         * lib/dia_svg.[hc] : new files
7905         * lib/makefile.msc lib/Makefile.am : add new files
7906         * lib/libdia.def : updated externals
7908         * plug-ins/svg/svg-import.c : use dia_svg_parse_style()
7910         * plug-ins/svg/svg.c : enable svg import for win32 (and
7911         probably for other non ELF builds)
7913         * plug-ins/makefile.msc : enable svg import
7915 2002-10-11  Hans Breuer  <hans@breuer.org>
7917         * plug-ins/metapost/render_metapost.[hc] : ported
7919         * plug-ins/pstricks/render_pstricks.[hc] : dito
7921 2002-10-11  Hans Breuer  <hans@breuer.org>
7923         * plug-ins/cgm/cgm.c : ported, appears to work as before,
7924         but graphic apps available to me can't import the generated 
7925         files (the could not with Dia-0.90 cgm as well) ...
7927         * plug-ins/dxf/dxf-export.c : Ported to new renderer api.
7928         Removed all those function which did emulate 'complex' 
7929         drawing ops with basic ones (e.g. rect by line) cause this
7930         stuff is already provided by the base class
7931         * plug-ins/dxf/dxf-import.c : removed render.h include
7933         * plug-ins/python/pydia-font.[hc]
7934           plug-ins/python/pydia-text.c : finally ported to new font api
7936         * plug-ins/python/pydia-layer.c : add extra parameter
7937         to layer_find_closest_connectionpoint()
7939         * plug-ins/python/pydia-render.c : ported to DiaRenderer api
7941         * plug-ins/python/python.c : added missing copyright notice
7943         * plug-ins/hpg/hpgl.c plug-ins/wpg/wpg.c plug-ins/wmf/wmf.cpp : 
7944         actually use the renderers set_font implementation
7946         * plug-ins/renderer.inc : unused now, removed
7947         * plug-ins/Makefile.am : reflect it
7949 2002-10-08  Hans Breuer  <hans@breuer.org>
7951         * app/render_gdk.c : don't add the InteractiveRenderer
7952         interface multiple times (it's added to the type, not
7953         the object)
7954         * app/render_libart.c : dito. It's currently added
7955         unconditional cause eport_png uses it, but claims
7956         to be non-interactive. Probably set_size should be moved
7957         to the DiaRenderer interface.
7959         * lib/dialibartrenderer.c : add implementations for
7960         get_<width|height>_pixels. Libart rendering works again.
7961         DiaLibartRenderer::draw_image : use dia_image_rowstride()
7962         instead of width*3
7964         * lib/diatransform.c(dia_transform_coords_double) :
7965         don't ROUND() the returned values
7967         * plug-ins/pixbuf/pixbuf.c : added import function. It
7968         simply creates a wrapping "Standard - Image" object.
7970         * plug-ins/shape/shape-export.c : use the more direct
7971         method to call base class methods
7973 2002-10-07  Lars Clausen  <lrclause@cs.uiuc.edu>
7975         * lib/font.c (dia_font_init): Changed dia_font_init to return old
7976         pango context, to allow stacked contexts (for printing while
7977         antialiased).
7978         
7979         * lib/arrows.h
7980         * lib/bezier_conn.h
7981         * lib/beziershape.h
7982         * lib/boundingbox.h
7983         * lib/color.h
7984         * lib/connection.h
7985         * lib/connectionpoint.h
7986         * lib/create.h
7987         * lib/dia_image.h
7988         * lib/diagdkrenderer.h
7989         * lib/diagramdata.h
7990         * lib/dialibartrenderer.h
7991         * lib/diamenu.h
7992         * lib/diarenderer.h
7993         * lib/diasvgrenderer.h
7994         * lib/diatransform.h
7995         * lib/element.h
7996         * lib/filter.h
7997         * lib/focus.h
7998         * lib/font.h
7999         * lib/geometry.h
8000         * lib/handle.h
8001         * lib/neworth_conn.h
8002         * lib/objchange.h
8003         * lib/object.h
8004         * lib/orth_conn.h
8005         * lib/paper.h
8006         * lib/plug-ins.h
8007         * lib/poly_conn.h
8008         * lib/polyshape.h
8009         * lib/properties.h
8010         * lib/ps-utf8.h
8011         * lib/sheet.h
8012         * lib/text.h
8013         * lib/textattr.h
8014         * lib/widgets.h
8015         * lib/diatypes.h
8016         Moved all externally visible struct typedefs into diatypes.h, as
8017         per Hans' suggestions.
8019 2002-10-07  Steffen Macke <sdteffen@web.de>
8021         * lib/Makefile.am: removed a '\' causing problems
8023 2002-10-07  Hans Breuer  <hans@breuer.org>
8025         [Libart Renderer resurrected; almost it's compiling but
8026          almost instantly crashing :-]
8028         * lib/dialibartrenderer.[hc] : new files, ported to DiaRenderer
8029         * app/render_libart.[hc] : ported to DiaInteractiveRenderer
8030         * lib/diatransform.[hc] : added dia_transform_coords_double()
8032         * app/display.c : the right parameters for new_renderer_libart()
8033         * app/export_png.c : ported, removed the blind Display hack
8035         * app/makefile.msc lib/makefile.msc 
8036           lib/Makefile.am : updated
8038         * lib/dia<|gdk|interactive>renderer.c : properly copyrighted
8040 2002-10-06  Hans Breuer  <hans@breuer.org>
8042         * plug-ins/pixbuf/pixbuf.c : (new file)
8043         there is a new export plug-in called 'Pixbuf' which uses 
8044         DiaGdkRenderer to export to gdk-pixbuf supported bitmap
8045         formats (currently only PNG and JPEG).
8047 2002-10-06  Hans Breuer  <hans@breuer.org>
8049         See also: 
8050         http://mail.gnome.org/archives/dia-list/2002-October/msg00027.html
8052         * lib/dia-enums.h lib/diatransform.[hc]
8053           lib/diarenderer.[hc] lib/diainteractiverenderer.c
8054           lib/diagdkrenderer.[hc] lib/diasvgrenderer.[hc]
8055         : new files 
8057         * lib/makefile.msc lib/makefile.am : added new files
8059         * lib/plug-ins.c : g_module_error() returns a locale
8060         string, convert to utf8 before further usage 
8062         * lib/render.h : #error out. Everything including this
8063         needs porting
8064         * lib/*.[hc] : ported to new renderer api
8066         * app/diaepsrenderer.h : unfinished DiaEpsRenderer interface
8067         just to make the rest compile
8068         * app/render_eps.c : temporary disabled all of this
8069         * app/render_eps.h : removed RendererEPS
8071         * app/render_gdk.[hc] : a small wrapper around the new
8072         DiaGdkRenderer form lib/*
8074         * app/render_libart.h : removed RenderLibart definition
8075         * app/render_libart.c : not yet ported to new DiaRenderer
8076         but having an implementation to untie form FT2 dependency
8077         at least on win32. It is using new Pango api form bug #94791
8079         * app/render_pixmap.[hc] : a small wrapper around the new
8080         DiaGdkRenderer form lib/*
8082         * app/display.h : removed render_*.h includes
8083         * app/display.c : the only place where specific 
8084         renderers need to be known
8086         * app/connectionpoint_ops.c app/grid.c app/handle_ops.c
8087         use new DiaInteractiveRenderer interface
8089         * app/*.c : ported to new renderer api
8090         * object/*/*.c : ported to new renderer api
8091         s/render.h/diarenderer.h/
8092         s/Renderer/DiaRenderer/
8093         s/renderer->ops/renderer_ops/
8094         add in every draw method:
8095         DiaRendererClass *renderer_ops = DIA_RENDERER_GET_CLASS (renderer);
8097         * plug-ins/hpgl/hpgl.c : 
8098           plug-ins/wmf/wmf.cpp 
8099           plug-ins/wpg/wpg.c : ported to be DiaRenderer based
8100         * plug-ins/shape/shape-export.c
8101           plug-ins/svg/render_svg.c : ported to be DiaSvgRenderer based
8102           (nice how small these files became :-)
8104 2002-09-28  Hans Breuer  <hans@breuer.org>
8106         * */makefile.msc : updated
8108         * app/defaults.c : don't gdk_invalidate_rect(NULL)
8109         * app/disp_callbacks.c : 
8110         can't cast GtkWindow to GdkWindow, use shell->window
8111         (ddisplay_unrealize) don't use already unrefed im_context
8112         * app/display.c :
8113         can't cast from GtkMenu to GtkMenuItem
8114         (ddisp_destroy) : mark im_context as unrefed
8116         * lib/dia_xml (data_font) : prefer new font format over old one
8117         (data_add_font) : write the legacy name to allow file exchange
8118         with pre Pango versions of Dia, which would otherwise crash 
8119         on missing font 'name' attribute.
8120         * lib/font.c (dia_font_get_legacy_name) : improved implementation
8121         to get a better match.
8123         * lib/libdia.def : updated
8125         * lib/messages.c : don't gdk_widget_show(NULL)
8127         * lib/prop_text.c : don't gtk_entry_set_text() with NULL string 
8129         [make Dia compile, link _and_ work with mingw/gcc3.2]
8131         * config.h.win32 : #define LIBXML, this gets defined from libxml
8132         header but only for _MSC_VER. The mingw build did access an 
8133         unitialized function pointer for xmlFree.
8135         * */makefile.mingw : updated (some plug-ins have build issues)
8136         
8137         * lib/handle.h lib/object.h :   there appears to be no 
8138         forward declaration of the form 
8139                 typedef enum _HandleId HandleId 
8140         (at least not with GCC 3.2 for C++) ../lib/handle.h:22: 
8141         use of enum `_HandleId' without previous declaration
8143         * app/paginate_gdiprint.cpp : added a hack to avoid g++
8144         naming conflict on 'export'
8146         * app/paginate_gdiprint.h : forward declare Diagram
8148         * objects/SADT/annotaion.c : use g_random_double()
8150 2002-09-26  Lars Clausen  <lrclause@cs.uiuc.edu>
8152         * app/modify_tool.c: Made motion not happen until sufficiently
8153         large or past double-click interval, to avoid accidental moving
8154         when doubleclicking.  Got the double-click time right, and fixed
8155         some issues with release.  There are some corner cases that may
8156         exhibit strange behaviour, will look at those later.  Nah, let's
8157         not care about those, they are rare and not dangerous.
8159 2002-09-26  Cyrille Chépélov  <cyrille@chepelov.org>
8161         * app/layer_dialog.c: 
8162         * app/load_save.c: 
8163         * plug-ins/dxf/dxf-import.c: 
8164         * plug-ins/python/pydia-diagram.c: 
8165         * lib/diagramdata.c:
8166         * lib/diagramdata.h:
8167         Improved the consistency of the obj->parent_layer backlinks (esp.
8168         during reloads)
8170         * lib/Makefile.am:
8171         * lib/dummy_dep.h:
8172         * lib/dynamic_obj.[ch] (NEW):
8173         * app/Makefile.am:
8174         * app/app_procs.c: 
8175         * app/dynamic_refresh.[ch] (NEW):
8176         * objects/Misc/analog_clock.c: 
8177         Added support for dynamic refresh (animated objects).
8178                 
8179 2002-09-25  Cyrille Chépélov  <cyrille@chepelov.org>
8181         Patch from Owen Taylor <otaylor@redhat.com>:    
8182         * doc/en/Makefile.am:
8183         * doc/en/dia-manual.sgml:
8184         * doc/en/usage-objects.sgml:
8185         * doc/en/usage-quickstart.sgml:
8186         * doc/pl/Makefile.am:
8187         * doc/pl/dia-manual.sgml:
8188         * doc/pl/usage-objects.sgml:
8189         * doc/pl/usage-quickstart.sgml:
8191         - Change the DTD declration from an outdated GNOME one to a
8192         standard DTD.
8193         
8194         - Remove close tags for <graphics> which aren't allowed for
8195         docbook SGML
8196         
8197         - A hacky fix for a problem where some versions of db2html don't
8198         create *.css files. (If *.css doesn't match anything, then you get
8199         the global explicitely.)
8201         (Closes: #92061)
8202         
8203 2002-09-24  Cyrille Chépélov  <cyrille@chepelov.org>
8205         * objects/custom/custom_object.c: 
8206         * objects/custom/shape_info.[ch]: GE_TEXT display lists elements 
8207         were never properly prepared for use when reloading a shape with
8208         <svg:text> elements. Thanks to Scott Frazer <frazer@nc.rr.com> for
8209         reporting the problem and coming up with a fix! (Closes: #93974)
8211         * app/menus.c: patch from Alan Horkan <horkana@tcd.ie>: review
8212         the menu shortcuts towards better GNOME HIG compliance (Closes: #87157)
8214         * app/menus.c:
8215         * app/display.c: updated menu item paths Alan's patch had moved.
8216         
8217         * app/interface.c: Fixed a crash when gdk-pixbuf doesn't want to
8218         load the sheet-provided icon (libpng versions mismatch, grrr.).
8219         
8220         * configure.in:
8221         * objects/Makefile.am:
8222         * objects/Misc/Makefile.am (NEW):
8223         * objects/Misc/libmisc.c (NEW):
8224         * objects/Misc/analog_clock.c (NEW):
8225         * objects/Misc/pixmaps/analog_clock.xpm (NEW):
8226         * sheets/Misc.sheet.in: just a little experiment...
8228 2002-09-23  Cyrille Chepelov  <cyrille@chepelov.org>
8230         * plug-ins/xlst/Makefile.am: found a way to silence automake while
8231         not forcing everyone to build using libxslt.
8233         * lib/font.c: 
8234         * lib/message.c:
8235         * lib/object_defaults.c:
8236         * lib/intl.[ch]:
8237         * lib/render.c:
8238         * lib/properties.[ch]:
8239         * lib/propobject.c:
8240         * objects/standard/box.c: 
8241         * objects/UML/state_term.c:
8242         * objects/FS/box.c:
8243         * objects/FS/flow-ortho.c:
8244         * app/app_procs.c:
8245         * app/autosave.c:       
8246         * app/commands.c:
8247         * app/diagram_tree.c:
8248         * app/display.c:
8249         * app/disp_callbacks.c:
8250         * app/export_png.c:
8251         * app/filedlg.c:
8252         * app/lineprops_area.c:
8253         * app/menus.c:  
8254         * app/preferences.c:
8255         * app/render_eps.c:     
8256         * app/sheets.c:
8257         * app/sheets_dialog_callbacks.c:
8258         * plug-ins/xslt/xslt.c:
8259         * plug-ins/metapost/render_metapost.c:
8260         * plug-ins/xfig/xfig-export.c:
8261         * plug-ins/shape/shape-export.c:
8262         
8263         Killed most gcc-3.2 warnings (const-correctness and derived warnings, 
8264         unused variables, mostly)
8266         * app/display.c:
8267         * app/menus.c: enabled GTK Input Methods (thanks Lars!)
8269         * app/Makefile.am: modified run_dia.sh so that we recover the
8270         ability to run a debugger despite libtool's hacks.
8272         * plug-ins/dxf/Makefile.am: 
8273         * app/Makefile.am
8274         "make distcheck" fixes.
8275         
8276 2002-09-19  Lars Clausen  <lrclause@cs.uiuc.edu>
8278         * objects/UML/uml.c (uml_get_operation_string): Patch from Mauf
8279         <mfranzoni@madd.it>:  Check for the type being NULL.
8281 2002-09-16  Lars Clausen  <lrclause@cs.uiuc.edu>
8283         * app/render_eps.c (set_font): Re-tweaked font size for printing.
8285 2002-09-12  Cyrille Chepelov  <cyrille@chepelov.org>
8287         Patch from Angus Ainslie <angusa@deltatee.com>:
8288         * plug-ins/dxf/dxf-import.c:
8289         * plug-ins/dxf/autocad_pal.h: Import from visio 2002 improvements.
8291         (plus a couple extra fixes by me, such as the removal of printf's,
8292         adapting for recent changes, and killed a couple warnings) 
8294         * app/authors.h: a 60K patch isn't insignificant, is it?
8295         
8296 2002-09-09  Tor Lillqvist  <tml@iki.fi>
8298         * configure.in: Check for both pangoft2 (using PKG_CHECK_MODULES,
8299         as before) and -lfreetype (using AC_CHECK_LIB). At least on
8300         Solaris with Sun's compiler (Forte C), you need to link also the
8301         dia application with -lfreetype, even if it is implicitly linked
8302         to by -lpangoft2. Rename FREETYPE_CFLAGS and _LIBS to PANGOFT2_*,
8303         which is what they actually mean. Use FREETYPE_LIBS for
8304         -lfreetype.
8306         Don't look for libsunmath if isinf() is not found in math.h (as on
8307         Solaris). The sunmath library is part of Forte C and not present
8308         on all machines. Besides, even if isinf was found in libsunmath,
8309         we didn't use it in the Makefile.am.
8310         
8311         Fix a couple of bashisms.
8313         AC_SUBST also Z_LIBS, need to link the dia application to -lz,
8314         too, on Solaris with Forte C.
8316         Don't try to use the gcc flags with other compilers.
8317         DIA_CHECK_CFLAG gives a false indication that Forte C understands
8318         the gcc -f switches, but in fact they get interpreted meaning
8319         something completely different.
8321         Define the automake conditional HAVE_CGC.
8322         
8323         * app/Makefile.am (dia_LDADD): Add Z_LIBS and FREETYPE_LIBS.
8325         Use -export-dynamic only with gcc.
8327         * */Makefile.am
8328         * */*/Makefile.am: Modify according to the FREETYPE_CFLAGS -> 
8329         PANGOFT2_CFLAGS rename.
8331         * lib/geometry.h: Drop HAVE_SUNMATH_H and <sunmath.h> per above.
8332         
8333         * lib/dia_xml.c: Include geometry.h for the isinf() stuff on
8334         Solaris.
8336         * lib/paper.c: Workaround for gccism: Can't use inline this way with
8337         Forte C, either.
8339 2002-09-08  Cyrille Chepelov  <cyrille@chepelov.org>
8341         * lib/text.c(set_string): fixed a memory leak (char* ain't no
8342         std::auto_ptr<char> !).
8344         * app/display.[ch]:
8345         * app/interface.[ch]:
8346         * app/ddisp_callbacks.[ch]: Added some basic support for input 
8347         methods (GtkIMContext-based)
8349         * lib/Makefile.am:
8350         * app/Makefile.am: made libdia a shared object (per Tor
8351         Lillqvist's suggestion/request), to cope for platforms with a less
8352         than par dynamic library loader.
8354         * app/display.c: disabled the input method menu (I really don't
8355         see where and how to put them. Blame Frozen Bubble )
8356         
8357 2002-09-06  Lars Clausen  <lrclause@cs.uiuc.edu>
8359         * objects/flowchart/box.c (box_update_data): Made resizing
8360         possible again (only set width & height when resized too small).
8362         Patch from Soeren Sandmann <sandmann@daimi.au.dk>:
8364         * app/disp_callbacks.c (ddisplay_canvas_events): Handle
8365         GdkScrollEvents.
8366         
8367 2002-09-05  Cyrille Chepelov  <cyrille@chepelov.org>
8369         * app/authors.h: now showing Akira TAGOH's name in the native script.
8371 2002-09-01  Lars Clausen  <lrclause@cs.uiuc.edu>
8373         * plug-ins/xslt/xslt.c: Removed glib warning for unset
8374         DIA_PLUGIN_PATH.
8376 2002-09-01  Cyrille Chepelov  <cyrille@chepelov.org>
8378         * plug-ins/svg/render_svg.c: Applied (reversed...) patch from
8379         Mike Sowka <msowka@rogers.com>. This fixes a problem with the
8380         sweep flag in arcs.
8382 2002-08-31  Lars Clausen  <lrclause@cs.uiuc.edu>
8384         * objects/UML/class.c: Fixed showing of empty stereotypes and got
8385         the string placed correctly.
8387 2002-08-30  Hans Breuer  <hans@breuer.org>
8389         * lib/font.c (dia_font_get_style) : don't shift already
8390         shifted DIA_FONT values.
8392         * lib/libdia.def : updated externals
8394         * app/disp_callbacks.c : on win32 GdkEventKey::string already
8395         is in UTF-8. (Longterm this probably should be handled on the
8396         gtk api level)
8398         * app/command.[hc] app/display.[hc] app/menus.c : add code to 
8399         switch display renderers again. The libart renderer is very 
8400         useful for win9x with it's limited GDI.
8402         * app/render_gdk.c : use g_warning instead of printf which gets
8403         nowhere on win32 (non console apps)
8405         * app/render_libart.c : make it compile without FREETYPE
8407         * objects/makefile.msc plug-ins/makefile.msc : added clean target
8409 2002-08-29  Lars Clausen  <lrclause@cs.uiuc.edu>
8411         * app/render_eps.c (postscript_draw_contour): Debugging statement
8412         that allowed me to figure out font problems.
8414         * lib/widgets.c (dia_font_selector_set_styles): Use radio menu
8415         items for font styles.
8417         * objects/FS/flow-poly.c: 
8418         * objects/FS/flow-ortho.c: 
8419         * objects/FS/flow.c: Further conversion away from GTK dialogs.
8420         Can't set a default label right now:(
8422         * app/interface.c (fill_sheet_wbox): Added initialization for mask.
8424 2002-08-27  Cyrille Chepelov  <cyrille@chepelov.org>
8425         Patch from Andrew Ferrier  <andrew@new-destiny.co.uk>:
8427         * Makefile.am: rules relating to AUTHORS and THANKS
8428         altered.
8429         * AUTHORS: file content changed to more accurately
8430         reflect guideline requirements.
8431         * TODO: warning added about Gnome BTS.
8432         * KNOWN_BUGS: warning added about Gnome BTS.
8434         ---
8436         * AUTHORS: added full copyright info.
8437         * mkauthors-placeholder: (removed) 
8438         
8439 2002-08-27  Lars Clausen  <lrclause@cs.uiuc.edu>
8441         * app/paginate_psprint.c (print_page): Fixed text printing after
8442         tip from Dov Grobgeld.
8444 2002-08-26  Lars Clausen  <lrclause@cs.uiuc.edu>
8446         * app/paginate_psprint.c (print_page): Fixed color of clip
8447         region.
8449 2002-08-26  Cyrille Chepelov  <cyrille@chepelov.org>
8451         * sheets/Makefile.am: enabled intltool-merge translation cache for
8452         sheets.
8454         * Makefile.am:
8455         * mkauthors-placeholder:
8456         * AUTHORS: revived that file (in a placeholder form) so that
8457         automake stops yelling.
8458         (derived from a patch by Andrew Ferrier <andrew@new-destiny.co.uk>) 
8459         (Closes: #91144)
8461         Heh, by the way, thanks Christophe. I feel better now.
8462         
8463 2002-08-25  Christophe Merlet  <christophe@merlet.net>
8465         * app/command.c: Removed invalid multibyte sequence in Chepelov.
8467 2002-08-24  Lars Clausen  <lrclause@cs.uiuc.edu>
8469         * lib/dia_image.c (dia_image_rgb_data): 
8470         Bugfixes in image data retrieval.
8471         
8472         * app/render_eps.c: Refactoring of new_*_renderer.
8474 2002-08-23  Lars Clausen  <lrclause@cs.uiuc.edu>
8476         * app/render_eps.c: 
8477         * lib/dia_image.h: 
8478         * lib/dia_image.c: Support for rowstride != width (odd width images)
8480 2002-08-20  Lars Clausen  <lrclause@cs.uiuc.edu>
8482         * lib/paper.c (get_paper_info): Fixed NULL prefs problem.
8483         * plug-ins/xfig/xfig-import.c: Removed assertion.
8485 2002-08-18  Lars Clausen  <lrclause@cs.uiuc.edu>
8487         * lib/paper.c: Removed app/preferences.h reference.
8489 2002-08-14  Lars Clausen  <lrclause@cs.uiuc.edu>
8491         * plug-ins/svg/svg-import.c: 
8492         * plug-ins/xfig/xfig-import.c: 
8493         * lib/Makefile.am (libdia_a_SOURCES): 
8494         * objects/standard/Makefile.am (libstandard_objects_la_SOURCES): 
8495         * lib/create.h:
8496         * objects/standard/create.h:
8497         * objects/standard/polygon.c (polygon_create): 
8498         * objects/standard/polyline.c (polyline_create): 
8499         * objects/standard/beziergon.c (beziergon_create): 
8500         * objects/standard/bezier.c (bezierline_create): 
8501         Moving create.h into lib.
8503 2002-08-13  Lars Clausen  <lrclause@cs.uiuc.edu>
8505         * app/render_libart.[ch]: Work on PNG font export.  Something's
8506         still fishy with the scaling, I don't get it.
8508         * app/display.c: 
8509         * app/interface.c: Replaced broken zoom combo with entry+menu.
8510         Now works beautifully.  Removed WITHOUT_ZOOM_COMBO stuff.
8512         * app/render_gdk.c (get_text_width): Checks for validity of text.
8513         Temporary help while debugging input -- should only activate on
8514         invalid input.
8516         * objects/SADT/annotation.c: 
8517         * objects/GRAFCET/transition.c: 
8518         * objects/FS/function.c: Removal of gtk.h include.
8520         * objects/UML/state.c (state_load): Warnings about using State
8521         object for initial/final states.
8523         * plug-ins/cgm/cgm.c (init_fonts): Proper Pango interfacing.
8525 2002-08-12  Lars Clausen  <lrclause@cs.uiuc.edu>
8527         * app/render_eps.c: Text rendering that scales correctly.  Too bad
8528         the standard fonts don't get selected right.
8530 2002-08-09  Lars Clausen  <lrclause@cs.uiuc.edu>
8532         * lib/diagramdata.h: 
8533         * lib/paper.c (get_paper_info): 
8534         * lib/paper.h: 
8535         * plug-ins/xfig/xfig-import.c: 
8536         Committed before testing.  I am so embarrased.  This compiles, now
8537         that the includes are in the right order.
8538         
8539         * app/diagram.c (diagram_init): 
8540         * app/app_procs.c (do_convert): 
8541         * app/preferences.h: 
8542         * lib/diagramdata.h: 
8543         * lib/diagramdata.c (new_diagram_data): 
8544         * lib/paper.h: 
8545         * lib/paper.c (get_paper_info): 
8546         Moved new_diagram part of prefs into lib/diagramdata.h.  More
8547         could be done in new_diagram_data() now.
8549 2002-08-08  Lars Clausen  <lrclause@cs.uiuc.edu>
8551         * app/render_eps.c: Better scaling of fonts at non-normal zoom.
8553 2002-08-07  Cyrille Chepelov <cyrille@chepelov.org>
8555         * configure.in: removed silly user-visible comment
8557         (actually, this is a dummy entry before I manually run nemo; for
8558         some dist-upgrade related reason, this morning's run aborted before
8559         the snapshots were created)
8560         
8561 2002-08-06  Lars Clausen  <lrclause@cs.uiuc.edu>
8563         * objects/network/wanlink.c: 
8564         * objects/network/bus.c: 
8565         stdprop compliance!
8567         * objects/custom/custom_object.c: 
8568         * objects/network/wanlink.c: 
8569         * objects/flowchart/parallelogram.c: 
8570         * objects/flowchart/ellipse.c: 
8571         * objects/flowchart/diamond.c: 
8572         * objects/flowchart/box.c: 
8573         Removed GTK defaults stuff.
8574         
8575         * objects/UML/fork.c: 
8576         * objects/UML/object.c: 
8577         * objects/UML/lifeline.c: 
8578         * objects/UML/branch.c: 
8579         * objects/GRAFCET/transition.c: 
8580         * objects/FS/function.c: Removed GTK include.
8582         * objects/FS/flow-ortho.c: 
8583         * objects/FS/flow.c: Made the label behave again.
8584         Also removed GTK defaults stuff.
8586 2002-08-06  Hans Breuer  <hans@breuer.org>
8588         * app/autosave.c : ported to GDir which is the improved
8589         cross platform replacement for <dirent.h>
8591         * app/makefile.msc : build autosave.obj
8593         * app/font.c : some (bad?) code calls 
8594         dia_font_scaled_decent() not only with empty string but 
8595         with NULL. Handle it gracefully.
8597         * lib/paper.c : don't depend on ../app. Although IMO
8598         this shouldn't be allowed on any platform it is only
8599         disabled for win32, where it simply doesn't work
8600         this way
8602         * lib/widget.c (strcase_equal) : pass char* to g_strcasecmp()
8604         * objects/fs/flow.c : conditionalize debug spew, disabled
8605         and 'ported' to use g_print. Simple printf won't work with
8606         standard win32 gui apps, may even crash them.
8608         * plug-ins/makefile.msc : DISABLED svg-import cause it
8609         depends on ../objects/custom. This not only break the
8610         build for all non ELF systems but IMO also isn't acceptable
8611         from a design point of view. See dia-list mail on subject.
8613         * plug-ins/python/makefile.msc :
8614           plug-ins/python/python.c : remove all references to dirent    
8616 2002-08-05  Cyrille Chepelov  <cyrille@chepelov.org>
8618         * configure.in: added ro to ALL_LINGUAS
8620         * po-checktrans:
8621         * po-checktrans.py:
8622         * ../translation-graphs/transgraph.py: added support for fuzzy
8623         translations. Enlarged the graphs.
8625 2002-08-05  Lars Clausen  <lrclause@cs.uiuc.edu>
8627         * app/disp_callbacks.c (ddisplay_canvas_events): Now translates
8628         key events according to locale.  No clue if this works for
8629         advanced stuff.
8631 2002-08-04  Lars Clausen  <lrclause@cs.uiuc.edu>
8633         * lib/text.c: Various UTF8 related fixes, in particular in
8634         deleting.  Text_insert_char is fine, far as I can tell.
8636         * app/interface.c (create_display_shell): 
8637         * app/commands.c: Now uses gtk_clipboard functions, for they are
8638         much simpler.  Also handles Win32 clipboard.  Non-ascii chars
8639         don't seem to get handled correctly by text_insert_char in
8640         lib/text.c.
8641         
8642         * app/commands.c (received_selection_handler): Got utf8 handling
8643         on paste, and individual char handling out of commands.c.  Pasting
8644         non-ASCII is still broken, somehow.  It's all lib/text.c's fault.
8646         * lib/message.c (gtk_message_internal): Message dialog re-shown
8647         when new message appears.  Maybe it should even move to top?
8649         * lib/font.c: 
8650         * lib/widgets.c: 
8651         * app/render_eps.c (create_eps_renderer): Fonts now lowercase
8652         (again) and case-insensitive.
8654         * objects/GRAFCET/condition.c (CONDITION_FONT): Changed to
8655         BASIC_SANS_FONT. 
8657 2002-08-02  Lars Clausen  <lrclause@cs.uiuc.edu>
8659         * app/commands.c (edit_cut_text_callback): 
8660         * lib/text.c (text_delete_all): Now functioning undo for text cut.
8661         
8662         * app/commands.c (edit_cut_text_callback): Now removes text.
8663         Undo is broken, though.
8665 2002-08-01  Lars Clausen  <lrclause@cs.uiuc.edu>
8667         * app/diagram.c (diagram_update_menu_sensitivity): 
8668         Making cut_text active.
8669         
8670         * app/commands.h: 
8671         * app/commands.c: Using PROP_TYPE_TEXT to find text to copy to
8672         clipboard.  Also removed AA callback.   
8674 2002-08-01  Lars Clausen  <lrclause@cs.uiuc.edu>
8676         * objects/chronogram/chronoref.c: 
8677         * objects/chronogram/chronoline.c: 
8678         * objects/SADT/annotation.c: 
8679         * objects/SADT/arrow.c: 
8680         * objects/SADT/box.c: 
8681         * objects/GRAFCET/vergent.c: 
8682         * objects/GRAFCET/vector.c: 
8683         * objects/GRAFCET/step.c: 
8684         * objects/GRAFCET/condition.c: 
8685         * objects/GRAFCET/action.c: 
8686         * objects/ER/participation.c: 
8687         * objects/ER/relationship.c: 
8688         * objects/ER/entity.c: 
8689         * objects/ER/attribute.c: 
8690         Removing unnecessary GTK references.
8692 2002-07-31  Lars Clausen  <lrclause@cs.uiuc.edu>
8694         * objects/standard/image.c: 
8695         * objects/standard/textobj.c: 
8696         * objects/standard/ellipse.c: 
8697         * objects/standard/polygon.c: 
8698         * objects/standard/beziergon.c:
8699         * objects/standard/box.c: 
8700         Making default default properties.
8701         
8702         * objects/standard/image.c: 
8703         * objects/standard/arc.c: 
8704         * objects/standard/box.c: 
8705         * objects/standard/zigzagline.c: 
8706         * objects/standard/polyline.c: 
8707         * objects/standard/line.c: 
8708         * objects/standard/ellipse.c: 
8709         * objects/standard/polygon.c: 
8710         * objects/standard/beziergon.c: Removing vestigal GTK stuff.
8712         * lib/object_defaults.c (dia_object_default_create): 
8713         * lib/proplist.c: 
8714         * lib/properties.h: 
8715         * lib/object.c (object_copy_using_properties): 
8716         * lib/propdialogs.c: 
8717         * lib/propinternals.h: 
8718         * lib/propobject.c (object_create_props_dialog)
8719         (object_copy_props): 
8720         Removing the standard (toolbox) properties from defaults dialogs.
8722 2002-07-30  Lars Clausen  <lrclause@cs.uiuc.edu>
8724         * lib/font.c (dia_font_scaled_string_width) 
8725         (dia_font_scaled_ascent, dia_font_scaled_descent): Account for
8726         zoom factor.
8727         * lib/text.c (text_calc_boundingbox): Take descent into account.
8729         * objects/standard/bezier.c (bezierline_draw): 
8730         * lib/render.c (draw_bezier_with_arrows): 
8731         Better arrow drawing for beziers.  Doesn't change the mouse-click
8732         area either.
8734         * lib/arrows.h: Some const-ness.
8736         * lib/arrows.c (calculate_arrow_point): Initialize zero-length moves.
8738         * lib/render.c (draw_arc_with_arrows): 
8739         * objects/standard/arc.c (arc_draw): Better arrow drawing for
8740         arcs.  Doesn't change the mouse-click area yet.
8742         * app/menus.c: Forgotten fix:  Redraw menu item for non-Gnome.
8744         * lib/render.h: 
8745         * lib/render.c: 
8746         Arc arrow prework.
8748 2002-07-29  Lars Clausen  <lrclause@cs.uiuc.edu>
8750         * app/group.c (group_draw): Forgotten commit: Groups to draw as
8751         objects (using default routines).
8753         * app/object_ops.h: 
8754         * app/diagram.h: 
8755         * lib/diagramdata.h: 
8756         * lib/diagramdata.c (layer_find_closest_connectionpoint): 
8757         * objects/standard/zigzagline.c (zigzagline_move_handle): 
8758         * app/diagram.c (diagram_find_closest_connectionpoint): 
8759         * plug-ins/python/pydia-diagram.c
8760         (PyDiaDiagram_FindClosestConnectionPoint):
8761         * app/object_ops.c (object_connect_display) 
8762         (object_find_connectpoint_display) 
8763         * app/create_object.c (create_object_button_press) 
8764         (create_object_motion): 
8765         * app/modify_tool.c (modify_motion): 
8766         Adding object param to allow connectionpoint and handle coinciding.
8768         * objects/standard/zigzagline.c (zigzagline_check_orientation): 
8769         Fixing minor problems.
8771         * objects/standard/ellipse.c (ellipse_update_data): 
8772         Added direction hints.
8774         * lib/diagramdata.c: 
8775         * lib/object.c: 
8776         * lib/object.h: 
8777         * lib/diagramdata.h: 
8778         * objects/standard/zigzagline.c: 
8779         First working example of zigzagline hints, currently only between
8780         Box and Zigzagline.
8782 2002-07-27  Steffen Macke <sdteffen@web.de>
8784         * plug-ins/svg/render_svg.c: added support for rounded
8785         rectangles (fixes #69053 if compile with
8786         -DNEW_RENDER_OPS)
8787         * object/custom/shape_info.[c|h]: made parse_style and
8788         parse_path accessible for svg plug-in
8789         * plug-ins/svg/Makefile.am:
8790         * plug-ins/svg/svg.c:
8791         * plug-ins/svg/svg-import.c(new): added SVG import filter
8793 2002-07-27  Lars Clausen  <lrclause@cs.uiuc.edu>
8795         * objects/standard/box.c: 
8796         * objects/standard/zigzagline.c (zigzagline_move): 
8797         More work on zigzagline hints.
8799 2002-07-26  Lars Clausen  <lrclause@cs.uiuc.edu>
8800         * lib/connectionpoint.h: 
8801         Hints for zigzaglines.
8803         * app/properties.c (properties_show): 
8804         * app/defaults.c (defaults_show): 
8805         * lib/properties.h: 
8806         * lib/propobject.c (object_create_props_dialog): 
8807         * lib/object.h: 
8808         * objects/FS/flow-poly.c: 
8809         * objects/network/wanlink.c: 
8810         * objects/network/bus.c: 
8811         * objects/UML/class.h: 
8812         * objects/UML/class_dialog.c: 
8813         * objects/UML/association.c: 
8814         Start of removing toolbox props from props dialogs.
8815         
8816         * lib/widgets.c: 
8817         * lib/arrows.h: 
8818         * app/lineprops_area.c (dia_arrow_chooser_new): 
8819         * lib/arrows.c: Two new arrows: Concave, filled and blanked.
8821         * app/create_object.c: 
8822         * app/modify_tool.c: 
8823         * app/cursor.h: 
8824         * app/cursor.c: 
8825         More cursor change.
8827 2002-07-25  Lars Clausen  <lrclause@cs.uiuc.edu>
8829         * app/preferences.c: 
8830         * lib/paper.c: 
8831         * app/diapagelayout.c: 
8832         New prefs selector kind PREF_CHOICE chooses between a list of
8833         strings.  Used for picking default paper.
8834         
8835         * app/preferences.c (prefs_data): 
8836         * lib/paper.c (get_paper_info): Added prefs setting for
8837         is_portrait.
8839         * lib/render.c (draw_polyline_with_arrows): Handles degenerate
8840         line segments at the ends (bug #86603).
8842 2002-07-25  Lars Clausen  <lrclause@cs.uiuc.edu>
8844         * objects/standard/zigzagline.c (zigzagline_copy): Fix for bug
8845         #60324: Now calls update_data after copy.
8847         * app/interface.c (fill_sheet_wbox): Better fix for bug #88601:
8848         Now doesn't steal selection from non-object tools.
8850 2002-07-24  Lars Clausen  <lrclause@cs.uiuc.edu>
8852         * app/commands.c (help_manual_callback): Uses BROWSER environment
8853         variable when available.
8855 2002-07-23  Lars Clausen  <lrclause@cs.uiuc.edu>
8857         * app/interface.c (fill_sheet_wbox): Fix for bug #88601: Select an
8858         object from the new sheet when changing.
8860         * app/app_procs.c (app_init): Uses more standard size icon, from
8861         patch #56433.  Keeping old icon as dia_gnome_icon_large.png.
8863 2002-07-22  Lars Clausen  <lrclause@cs.uiuc.edu>
8865         * objects/UML/implements.c (implements_update_data): 
8866         * objects/UML/realizes.c (realizes_update_data): 
8867         * objects/UML/dependency.c (dependency_update_data): 
8868         Test for null strings before calling on ascent.
8870         * objects/UML/realizes.c (realizes_draw): 
8871         * objects/UML/message.c (message_draw): 
8872         * objects/UML/generalization.c (generalization_draw): 
8873         * objects/UML/dependency.c (dependency_draw) 
8874         * objects/UML/constraint.c (constraint_draw): 
8875         * objects/GRAFCET/condition.c (condition_draw): 
8876         * objects/UML/association.c (association_draw): 
8877         * objects/FS/flow-ortho.c (orthflow_draw): 
8878         * objects/FS/flow.c (flow_draw): Change to use
8879         draw_foo_with_arrows.  Pretty pretty arrows.  Yay me!
8881         * lib/render.h: 
8882         * lib/arrows.c (calculate_arrow_point): 
8883         * lib/arrows.h: 
8884         * lib/render.c: 
8885         * objects/standard/zigzagline.c:
8886         * objects/standard/polyline.c:
8887         * objects/standard/line.c: Work towards better arrow drawing.
8889 2002-07-21  Lars Clausen  <lrclause@cs.uiuc.edu>
8891         * objects/UML/state.c: Starting phase-out of State object as
8892         initial/final state (which never worked right).
8894         * app/app_procs.c (app_init): --version command line option for
8895         non-Gnome.
8897         * configure.in: Slight improvement in GETTEXT_PACKAGE handling.
8899 2002-07-19  Lars Clausen  <lrclause@cs.uiuc.edu>
8901         * app/render_eps.c: Removed debugging info.
8903         * lib/font.c (dia_font_scaled_ascent, dia_font_scaled_descent):
8904         Kludge to make ascent and descent work for empty strings.  Won't
8905         work when using non-ASCII fonts.  Better would be to get a
8906         PangoFont and ask directly.
8908         * configure.in: Simple define of GETTEXT_PACKAGE, and some updates
8909         of the init stuff.
8911         * app/render_gdk.c (get_text_width): Fixed use of wrong string.
8912         Cursor now better.
8914 2002-07-18  Lars Clausen  <lrclause@cs.uiuc.edu>
8916         * plug-ins/xfig/xfig-export.c: First use of draw_object render
8917         function: All shapes are now groups in XFig export.
8919         * lib/diagramdata.c (normal_render): 
8920         * lib/render.c: 
8921         * lib/render.h: 
8922         * app/display.c (ddisplay_obj_render): 
8923         New render function for drawing objects, allows renderers to group
8924         or otherwise specially handle objects.  We may want to reconsider
8925         calling it in app/display.c, as we 'know' the object draw function
8926         is the default one there.
8928         * lib/Makefile.am: Removed extra \ that broke stuff.
8930         * plug-ins/xfig/xfig-import.c: 
8931         Spline import for xfig.  Not perfect.
8933         * objects/standard/create.h: 
8934         * objects/standard/bezier.c (bezierline_create): 
8935         * lib/bezier_conn.c: 
8936         * lib/beziershape.c (beziershape_set_points): 
8937         * lib/bezier_conn.h: 
8938         * lib/beziershape.h: 
8939         Support for creating beziers non-interactively.
8941 2002-07-17  Lars Clausen  <lrclause@cs.uiuc.edu>
8943         * plug-ins/xfig/xfig-import.c: Support for polygons and
8944         polylines.  Special warning handling system removed.
8946         * lib/message.c (gtk_message_internal): Fixed bug involving
8947         closing message window and then getting repeated message.
8949         * Makefile.am: 
8950         * autogen.sh: 
8951         * configure.in (GETTEXT_PACKAGE): 
8952         Update based on bug #88199.  Hopefully this doesn't break too much
8953         intl stuff.
8955         * dia.desktop.in (_Comment): Changed after suggestion from
8956         calum.benson@ireland.sun.com (bug 88345)
8958         * app/sheets_dialog_callbacks.c: Fix from Dolores Alia de Saravia
8959         <loli@unsa.edu.ar> that makes user/system distinction better.
8961 2002-07-16  Lars Clausen  <lrclause@cs.uiuc.edu>
8963         * app/render_libart.c: Got the context right, removed crashes.
8965         * app/commands.c: 
8966         * app/commands.h: 
8967         Redraw menu item.
8969         * app/display.c: 
8970         * app/display.h: 
8971         * app/interface.c: 
8972         * app/menus.c: 
8973         Remove libart #defines from most places (still around for png export).
8975         * app/render_libart.h: 
8976         * app/render_libart.c: 
8977         * configure.in (HAVE_LIBART): 
8978         Starting on update of libart stuff for png export (without X).
8980         * app/autosave.h (autosave_check_autosave): 
8981         * app/load_save.h: 
8982         * app/diagram.h: 
8983         * app/Makefile.am (dia_core_files): 
8984         * app/load_save.c: 
8985         * app/diagram.c (diagram_set_modified): 
8986         * app/autosave.c: 
8987         * app/app_procs.c (app_init): 
8988         Autosave support.  No automatic restore yet.
8990 2002-07-16  Lars Clausen  <lrclause@cs.uiuc.edu>
8992         * app/render_eps.c (create_eps_renderer): #ifdef'd a scale
8993         assignment. 
8994         
8995 2002-07-15  Lars Clausen  <lrclause@cs.uiuc.edu>
8997         * app/interface.c (fill_sheet_menu): Tear-off for sheets menu.
8999 2002-07-15  Andrew Ferrier  <andrew@new-destiny.co.uk>
9001         * Fix for 'make dist' etc. --- problem caused by
9002         previous AUTHORS patch.
9004 2002-07-14  Lars Clausen  <lrclause@cs.uiuc.edu>
9006         * plug-ins/cgm/cgm.c (init_fonts): Changed pango_font_map to
9007         pango_context. 
9008         (set_font): NULL check.
9009         
9010 2002-07-12  Lars Clausen  <lrclause@cs.uiuc.edu>
9012         * app/disp_callbacks.c: 
9013         * lib/diamenu.h: 
9014         Addition to the object menus allows check menu items.
9016 2002-07-11  Andrew Ferrier  <andrew@new-destiny.co.uk>
9018         * HACKING: completely changed to bring up-to-date.
9019         * AUTHORS: file needs REMOVING from CVS as now
9020           dynamically generated.
9021         * app/authors.h: split into subcategories for original
9022           authors, maintainers, etc.
9023         * app/app_procs.c: --credits rewritten to support new
9024           app/authors.h
9025         * app/commands.c: no changes to about box code, comment
9026           added though.
9027         * Makefile.am: added rule for AUTHORS. I'm still
9028           inexperienced with automake, it seems to work, but
9029           for AUTHORS-related bugs, look at this change first.
9031 2002-07-10  Lars Clausen  <lrclause@cs.uiuc.edu>
9033         * plug-ins/Makefile.am (SUBDIRS): Just realized why my hack didn't
9034         work.  Back to including xslt dir always.
9036         * objects/UML/uml.c: 
9037         * objects/UML/class.h: 
9038         * objects/UML/class_dialog.c: 
9039         * objects/UML/class.c: Patch from
9040         <mattam@netcourrier.com>:  Adds comment visibility switch, also
9041         fixes various bugs.
9043         Big patch from Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
9044         for state/fork/activity stuff.
9045         * objects/UML/state.c: Removed old draw_rounded_rectangle code.
9046         * objects/UML/Makefile.am:
9047         * objects/UML/uml.c:
9048         * sheets/UML.sheet.in: Added new objects activity, fork,
9049           state_term.
9050         * objects/UML/pixmaps/state_term.xpm:
9051         * objects/UML/state_term.c: New, only initial/final states.
9052         * objects/UML/pixmaps/activity.xpm:
9053         * objects/UML/activity.c: New, activity state.
9054         * objects/UML/pixmaps/fork.xpm:
9055         * objects/UML/fork.c: New, fork/join bar.
9056         * objects/UML/pixmaps/state.xpm: state icon.
9058         
9059         * doc/diagram.dtd: 
9060         * doc/shape.dtd: Patch from "Dolores Alia de Saravia"
9061         <loli@unsa.edu.ar> to add dia: to diagram.dtd elements and add
9062         svg:text to shape.
9064 2002-07-07  Lars Clausen  <lrclause@cs.uiuc.edu>
9066         * plug-ins/Makefile.am (SUBDIRS): Made the XSLT dir depend on
9067         detecting XSLT
9069         * app/Makefile.am: Commented out the diaconv parts while it's not
9070         used anyway.  To come back later.
9072         * configure.in (HAVE_FREETYPE): 
9073         * app/app_procs.c: 
9074         * app/render_eps.h: 
9075         * app/render_eps.c: Support for printing with freetype, better
9076         encapsulated now.  Renders the text nicely, but ignores font
9077         setting.  Requires pangoft2 to get the font outline, but non-text
9078         objects can still be rendered without it.
9080         * app/commands.h: 
9081         * app/commands.c (objects_place_up_callback) 
9082         (objects_place_down_callback): 
9083         * app/diagram.h: 
9084         * app/diagram.c (diagram_place_down_selected) 
9085         (diagram_place_up_selected): Starting support for moving objects
9086         one level up/down.
9088         * app/menus.c: Removed character/numeral shortcuts.
9090 2002-07-06  Hans Breuer  <hans@breuer.org>
9092         * makefile.am app/makefile.am lib/makefile.am
9093           objects/makefile.am plug-ins/makefile.am 
9094           plug-ins/python/makefile.am :
9095         added required files for win32 build to EXTRA_DIST
9097         * app/paginate_psprint.c app/render_eps.c 
9098           app/app_procs.c :
9099         wrap (E)PS Renderer into HAVE_FREETYPE, no FreeType
9100         on Pango as currently is on win32 => no PostScript 
9101         anymore.
9103         * lib/widgets.c : undef GTK_DISABLE_DEPRECATED;
9104         use '/* noop */;' for empty case labels; replace
9105         debug spew printf with g_print which is guaranteed 
9106         to work on win32, too.
9108         * lib/font.c (dia_pfd_set_weight) : set 'intermediate' values 
9109         for DIA_FONT_MEDIUM and DIA_FONT_DEMIBOLD as explicit allowed 
9110         in the pango_font_description_set_weight() api documentation
9111         Take care for them in dia_font_get_style() too.
9113         * lib/font.[hc] lib/widget.c objects/custom/shape_info.c
9114           plug-ins/shape/shape-export.c plug-ins/svg/render_svg.c :
9115         rename Obliquity to Slant which appears to be the usual name,
9116         also rename dia_font_get_style_string -> dia_font_get_slant_string
9118         * plug-ins/wmf/wmf.cpp : finally ported to new font api
9120         * lib/prop_attr.c app/render_gdk.c : dont *_unref if NULL
9122         * objects/uml/association.c class.c large_package.c message.c
9123         if g_free() is used g_strdup needs to be used.
9124         * objects/custom/shape_info.c
9125           objects/ER/attribute.c entity.c
9126           objects/standard/image.c 
9127           app/sheets_dialog_callbacks.c : more strdup cleaning
9129 2002-07-05  Lars Clausen  <lrclause@cs.uiuc.edu>
9131         * app/render_eps.c: Non-crashing printing (made the right
9132         context).  Font output still fscked up.
9134 2002-07-05  Andrew Ferrier  <andrew@new-destiny.co.uk>
9136         * app/authors.h: Added file --- now master
9137         location for contributors data.
9138         * app/app_procs.c: Added --credits option.
9139         * app/commands.c: Modified about box to use
9140         app/authors.h.
9142 2002-07-05  Lars Clausen  <lrclause@cs.uiuc.edu>
9144         * app/render_eps.c: First stab at EPS rendering using the contour
9145         code from PAPS.  Crashes.
9147 2002-06-30  Lars Clausen  <lrclause@cs.uiuc.edu>
9149         * app/recent_files.c (recent_file_history_remove): 
9150         Fixed call to g_list_delete_link discarding return value.
9151         
9152         * lib/widgets.c (dia_font_selector_set_styles): 
9153         * lib/font.h (DiaFontWeight): 
9154         * lib/font.c (dia_font_get_style): Revert to DIA_FONT_NORMAL==0
9156 2002-06-30  Cyrille Chepelov  <cyrille@chepelov.org>
9158         Contribution from Alan Horkan <horkana@tcd.ie>: 
9159         
9160         * shapes/Assorted/*
9161         * sheets/Assorted.sheet:
9162         A set of 40 assorted geometric shapes.
9164         * sheets/Assorted.sheet.in:
9165         * sheets/Makefile.am
9166         * shapes/Assorted/Makefile.am:
9167         * shapes/Makefile.am:
9168         * po/POTFILES.in:
9169         * configure.in:
9170         Done the integration job of Alan's shapes. (Translators: have fun!)
9172         * po/dia.pot: refreshed the main potfile.
9173         
9174 2002-06-28  Cyrille Chepelov  <cyrille@chepelov.org>
9176         Patch from Tim Ellis <Tim.Ellis@gamet.com>:
9177         
9178         * objects/UML/class.[ch]:
9179         * objects/UML/class_dialog.c:
9180         changed the number of connection points from a hardcoded value of
9181         8 to a #defined constant
9183         (I changed the constant back from 20 to 8, until we better know
9184         how we'll handle more connection points on the UML class in the
9185         future -- but Tim's patch is a welcome clean-up).
9187 2002-06-26  Cyrille Chepelov  <cyrille@chepelov.org>
9189         * shapes/MSE/demultiplexer.xpm:
9190         * shapes/MSE/node_center.xpm:
9191         * shapes/MSE/multiplexer.xpm:
9192         * shapes/MSE/tacsat.xpm: updated MSE icons (transparency) by Alan
9193         Horkan <horkana@tcd.ie>
9195 2002-06-25  Lars Clausen  <lrclause@cs.uiuc.edu>
9197         * lib/widgets.c: Total rehash of font selector, with font dialog
9198         option, expanding list (not LRU yet), and stuff.
9200 2002-06-25  Cyrille Chépélov  <cyrille@chepelov.org>
9202         * lib/font.h:
9203         * lib/font.c: 
9204         Added a set of new setter/getters, some of them more specially for
9205         the SVG-ish I/O.
9206         
9207         * plug-ins/shape/shape-export.c: (new_shape_renderer),
9208         (destroy_shape_renderer), (set_font), (draw_string):
9209         * plug-ins/svg/render_svg.c: (new_svg_renderer),
9210         (destroy_svg_renderer), (set_font), (draw_string):
9212         Actually exported the font face, style, weight and size (sodipodi
9213         agrees with dia on how a small sample should look like (a sample
9214         0.90 would not even display anyways). Yay !)
9216         Patch from Matthieu Sozeau <mattam@netcourrier.com>:
9218         * plug-ins/xslt/Makefile.am: repaired the mess Cyrille put there.
9220         (end of ChangeLog-less patch)
9222         * objects/custom/shape_info.c (parse_style): now understands the
9223         font-style and font-weight attributes as well. Does not use
9224         anymore dia_font_new_from_legacy_name().
9225         
9226 2002-06-24  Lars Clausen  <lrclause@cs.uiuc.edu>
9228         * objects/standard/textobj.c: Now uses stdprops for defaults.
9230         * lib/font.h: Changed order of DiaFontWeight entries.  Sorry.
9231         * lib/font.c (dia_font_get_style): Style now linear and conversion
9232         simple. 
9234         * lib/widgets.c (dia_font_selector_set_styles): Fixed the style
9235         selector. 
9237 2002-06-24  Cyrille Chepelov  <cyrille@chepelov.org>
9239         * plug-ins/dxf/dxf-import.c:
9240         using dia_font_new_from_style()
9242         Patch from Matthieu Sozeau  <mattam@netcourrier.com>:
9244         * objects/UML/class.[ch]: Added a comment field to class
9245         * objects/UML/uml.[ch]: Added a comment field to attributes,
9246         operations and parameters.
9247         * objects/UML/class_dialog.c: Added code for the new comment
9248         fields.
9249         * plug-ins/xslt/*.xsl: Added some code to handle comments.
9250         * plug-ins/xslt/xslt*.c: Clean up based on Cyrille comments.
9251         Added a $directory parameter for stylesheets so the output is 
9252         in the good place (not in the $PWD).
9254         (end of Patch)
9256         * AUTHORS: added contributors, updated maintainers. Removed the
9257         specific areas of action.
9259         * Patch from Andrew Ferrier <andrew@new-destiny.co.uk>, derived
9260         from a patch by Xing Wang <quixon@gnuchina.org>:
9262         * app/commands.c: help_about_callback now supports
9263         new-style GNOME about box as well as old GTK style. 
9264         code also tidied (Closes: #85726)
9266         (end of Patch)
9268         * app/commands.c: fixed the copyright (it's not all FSF), and
9269         maintainers. Synced contributors list with AUTHORS.
9270                 
9271 2002-06-24  Lars Clausen  <lrclause@cs.uiuc.edu>
9273         * lib/message.c: More work on repeating messages, now with
9274         togglable view.
9276 2002-06-24  Hans Breuer  <hans@breuer.org>
9278         * lib/widget.c : some more bits in place, at least
9279         it does something useful instead of crashing. Much
9280         better - but not all ok :-)
9282 2002-06-23  Lars Clausen  <lrclause@cs.uiuc.edu>
9284         * lib/message.c (gtk_message_internal): First stab at repeating
9285         message dialog.
9287 2002-06-23  Cyrille Chepelov  <cyrille@chepelov.org>
9289         * objects/FS/*.c:
9290         * objects/GRAFCET/*.c:
9291         * objects/SADT/*.c:
9292         * objects/UML/association.c: (one instance forgotten)
9293         * objects/UML/large_package.c: 
9294         * objects/standard/textobj.c:
9295         * lib/attributes.c:
9296         * lib/text.c:
9297         using dia_font_new_from_style()
9299 2002-06-23  Hans Breuer  <hans@breuer.org>
9301         * lib/font.c : giving some love to
9302         dia_font_new_from_legacy_name() that is making
9303         import of old files as painless as possible and
9304         provide an almost exact match where possible.
9305         It does not yet fully work because it interfers
9306         with the Style to DiaStyle conversion which comes
9307         next ...
9309         [Changing these files is only allowed with Dia-0.90]
9310         * broken-files/fonts-0.90.dia : including the
9311         common hard-coded fonts from Dia-0.90. It also
9312         has drawn bounding-boxes for win32 as they were calculated
9313         from the former version (they were all too big).
9314         * broken-files/fonts-0.90-full.dia : all hardcoded
9315         fonts including the asian versions. On my machine
9316         this gives _a lot_ complaining about missing fonts
9317         and a finally a broken file display. Anyone having
9318         all these fonts ?
9319         
9320 2002-06-23  Cyrille Chepelov  <cyrille@chepelov.org>
9322         * objects/chronogram/*.c: 
9323         * objects/custom/custom_object.c:
9324         * objects/ER/*.c:
9325         using dia_font_new_from_style()
9327 2002-06-23  Lars Clausen  <lrclause@cs.uiuc.edu>
9329         * lib/widgets.c (dia_font_selector_set_styles): Improvements to
9330         font selector (stability, insensitivity).
9332         * lib/font.c (dia_font_scaled_build_layout): Removed unworkable
9333         stretching scheme for tweaking, and made scaling scheme faster
9334         (but less precise).
9335         (dia_font_dia_style_to_pango): Oops, % != /.
9337 2002-06-23  Cyrille Chepelov  <cyrille@chepelov.org>
9339         
9340         * patch from Matthieu Sozeau  <mattam@netcourrier.com>:
9342         * plug-ins/xslt : Added an XSLT plugin to export dia files using
9343         XML Stylesheets. The plug-in requires DIA_PLUGIN_PATH to be set.
9344         It includes a small config file to tell it what stylesheets to use.
9346         (end of patch)
9347         
9348         * plug-ins/xslt/xsltdialog.c: modified the dialog to be more 
9349         GTK2.0/HIG compliant (the labels could be slightly more verbose,
9350         perhaps). Added back a couple forgotten _(). Removed //-style
9351         comments.
9352         
9353 2002-06-23  Hans Breuer  <hans@breuer.org>
9355         * lib/plug-ins.c
9356         (dia_plugin_get_name) : don't crash plugin_manager
9357         on name being NULL 
9358         (dia_plugin_load) : reuse the description field to
9359         store the error string if loading fails.
9361         * lib/font.[hc] : starting to beautify the new
9362         font api: proper namespacing, adding convenience
9363         functions like dia_font_new_from_style(), ...
9365         * objects/uml/*.c : use the new convenience functions.
9367         [Next thing I plan to do is changing the other font
9368          functions to take DiaStyle and make Style and 
9369          BASIC_*_FONT vanish. As well as giving some love to
9370          dia_font_new_from_legacy_name().
9371          If anyone want's to help on converting the other
9372          objects to the new api during that, I would highly 
9373          appreciate it.]
9375 2002-06-23  Hans Breuer  <hans@breuer.org>
9377         * lib/font.c : made it compile and small indent fixes.
9378         Is there a code-has-no-effect-so-needs-not-be-valid
9379         with GCC?       
9381         * lib/widgets.c : use g_strcasecmp
9383 2002-06-22  Lars Clausen  <lrclause@cs.uiuc.edu>
9385         * lib/font.c: 
9386         * lib/font.h: 
9387         * lib/widgets.c: Font names sorted, style selector widget
9388         reappeared.  Doesn't select the old style yet.
9390 2002-06-22  Cyrille Chepelov  <cyrille@chepelov.org>
9392         * lib/font.c: one who expects a text's font to be changed shall 
9393         actually request the attributes to apply to the whole range of the
9394         said text... D'oh! 
9396         * lib/font.c: extents computation was wrong.
9398         * lib/font.c: dia_font_get_legacy_name(); g_strconcat works better
9399         if a last NULL parameter is added...
9401         * lib/font.c: extents computation was completely wrong. This looks
9402         much better this time.
9404         * objects/UML/class.c: fixed the various strings positions.
9406         * lib/font.h, and **/*.[ch] (all callers of dia_font_new): used
9407         macros to get the hardcoded base fonts.
9409         * objects/ER/relationship.c: wasn't converted to DiaFont*
9410         
9411 2002-06-22  Hans Breuer  <hans@breuer.org>
9413         * lib/widget.c : dont use backend specific functions
9414         to get on the font_families. Including it would mean
9415         including <windows.h> which breaks due to namespace
9416         pollutions ...
9418         * lib/libdia.def : updated externals
9420         * app/makefile.msc : temporary disabled: -DHAVE_LIBART
9422         * lib/font.c : added empty dia_font_init_instance function,
9423         reformatting of dia_fon_unref to allow to set breakpoint,
9424         dia_fon_build_layout() : dont crash on string==NULL
9426         * lib/text.c (text_set_attributes) : don't unref the wrong font
9428         * lib/widgets.c (dia_fon_selector_set_font) : our hashtable
9429         stores lowercased font names, but dia_font_get_family()
9430         returns mixed case      
9432 2002-06-22  Lars Clausen  <lrclause@cs.uiuc.edu>
9434         * lib/widgets.c: 
9435         * app/render_gdk.c: Patch from Hans Breuer.
9437         * app/Makefile.am (dia_core_files): diaconv commented out for now.
9438         
9439 2002-06-22  Cyrille Chepelov  <cyrille@chepelov.org>
9441         * lib/all files touched yesterday: took into account some of Hans
9442         Breuer's remarks in
9443         http://mail.gnome.org/archives/dia-list/2002-June/msg00257.html
9445         * objects/chronogram/*: 
9446         * objects/custom/*:
9447         * objects/ER/*:
9448         * objects/flowchart/*:
9449         * objects/FS/*:
9450         * objects/GRAFCET/*:
9451         * objects/SADT/*:
9452         * objects/standard/textobj.?:
9453         * objects/UML/*:
9454         converted to the new DiaFonts.
9456         * plug-ins/cgm/*:
9457         * plug-ins/pstricks/*:
9458         * plug-ins/wpg/*:
9459         * plug-ins/dxf/*:
9460         * plug-ins/xfig/*:
9461         Made minimalistic conversions so that they'd at least compile.
9463         * app/render_gdk.c:
9464         * app/render_pixmap.c:
9465         Converted to the new DiaFonts.
9467         * app/app_procs.c
9468         * app/diaconv.c:
9469         * app/render_eps.c:
9470         made the minimal changes so that it would at least build.       
9472         *** At this point, the thing builds on my machine, but segfaults
9473         right away. ***
9474         
9475 2002-06-21  Cyrille Chepelov  <cyrille@chepelov.org>
9477         * configure.in: removed the backend-specific pango pkg_modules
9478         (trivial to add back if needed, when actually needed)
9480         * app/Makefile.am:
9481         * app/*gnomeprint.[ch]: (removed): removed the GNOME-print
9482         renderer. The APIs will have completely changed when we get around
9483         to redo a renderer for it, anyways.
9485         * font.[ch]: rewrote everything from scratch, with a Pango
9486         implementation. Normally, only backend-neutral things should go in
9487         there.
9489         **WARNING**: new rules for managing DiaFont* pointers: these are
9490         reference-counted GObjects. One >must< diafont_ref() and
9491         diafont_unref() as appropriate. I wish I could overload operator=()...
9493         lib/plug-ins.h: bumped up the plug-in API.
9494         
9495         lib/attributes.c: 
9496         lib/dia_xml.c: 
9497         lib/dummy_dep.h
9498         lib/object_defaults:
9499         lib/prop_attr.c: Adapted to the new DiaFont API. This'll change
9500         again tomorrow with GObject.
9501         
9502         lib/widgets.c: Adapted to the new DiaFont API and to Pango.
9504         **** The rest of the tree should be updated as well ****
9505         
9506 2002-06-21  Lars Clausen  <lrclause@cs.uiuc.edu>
9508         * app/render_gdk.h: 
9509         * app/render_gdk.c: 
9510         * app/render_pixmap.c: 
9511         * app/render_pixmap.h: 
9512         * app/render_libart.h: 
9513         * app/render_libart.c: 
9514         * lib/font.h: 
9515         * lib/font.c: Removed freetype stuff (still around in
9516         lib/widgets.c 'cause we might want the font selector widget).
9518 2002-06-20  Cyrille Chepelov  <cyrille@chepelov.org>
9520         * shapes/network/laptop.(xml|shape):
9521         * sheets/network.sheet.in: added Laptop (notebook) PC shape,
9522         contributed by Alan Horkan <horkana@tcd.ie>. (Closes: #82643)
9524 2002-06-17  Hans Breuer  <hans@breuer.org>
9526         * lib/object_defaults.c : #include <libxml/tree.h> not
9527         <tree.h> pointed out by Xing Wang
9529 2002-06-17  Lars Clausen  <lrclause@cs.uiuc.edu>
9531         * lib/color.h (GDK_COLOR_TO_DIA, DIA_COLOR_TO_GDK): 
9532         * lib/widgets.c: 
9533         * app/color_area.c: Update to
9534         gtk_color_selection_*_current_color() fixed bad crash issues, plus
9535         updated color conversions.
9537         * sheets/ER/weakentity.xpm: Accepted patch from
9538         quixon@gnuchina.org to make icon match actual appearance.
9540         * app/recent_files.c: Fixed GNOME recent file problem, thanks to
9541         quixon@gnuchina.org.
9543 2002-06-16  Hans Breuer  <hans@breuer.org>
9545         * lib/plug-in.[hc] : make PlugInInfo opaque again in the 
9546         good tradition of information hiding. Add new function
9547         dia_plugin_get_symbol()
9548         * app/sheets.c app/sheets_dialog_callbacks.c : use it
9550         * app/sheets.c : stop complaining about object_get_type() 
9551         returning NULL. This is a consequence of e.g. disabling 
9552         plug-ins at runtime _and_ it was and is gracefully handled. 
9553         Spitting out g_warning for it isn't appropriate. 
9555         * lib/object.[ch] : removed dead code
9557         * app/plugin-mangager.c : almost complete rewrite for gtk2
9558         using GtkListStore/GtkTreeView
9560         * lib/libdia.def : updated externals
9562         * todo.gtk2 : updated, that is removed already done steps
9564 2002-06-15  Hans Breuer  <hans@breuer.org>
9566         * objects/uml/class_dialog.c : clean some left-over
9567         utf8-mess, return 0 from "focus_out_event" handlers
9568         to avoid asserting in gtk (#78305). Reconstruct 
9569         stereotype/NULL behaviour to avoid rendering empty
9570         stereotypes on classes and member functions
9572         [#56109 - Provide object defaults for StdProp objects,
9573          some remaining issues are discussed in bugzilla]
9575         * lib/object_defaults.c : (new file) manage default properties 
9576         of dia objects. The serialization is done with standard
9577         object methods in a diagram compatible format.
9579         * lib/object.c : add object_registry_foreach() which allows
9580         to iterate over all registered object types
9582         * lib/object.h : added prototypes object_default*() and
9583         object_registry_foreach()
9585         * lib/makefile.am lib/makefile.msc : add new file to build
9587         * lib/libdia.def : export new functions
9589         * app/defaults.c : provide StdProp based defaults if the
9590         ObjectType doesn't implement it's own default functions
9592         * app/create_object.c : through dia_object_default_create()
9593         * app/disp_callbacks.c : same here
9595 2002-06-12  Lars Clausen  <lrclause@cs.uiuc.edu>
9597         * objects/FS/flow-ortho.c (orthflow_get_object_menu): Menu
9598         sensitivity for deleting segments.
9600 2002-06-12  Cyrille Chépélov  <cyrille@chepelov.org>
9602         * app/color_area.c: (color_area_events):
9603         * app/diagram.c: (diagram_destroy):
9604         * app/interface.c: (zoom_activate_callback), (fill_sheet_wbox),
9605         (fill_sheet_menu):
9606         * app/load_save.c: (diagram_data_load):
9607         * app/menus.c: (menus_get_item_from_path):
9608         * app/preferences.c: (prefs_load):
9609         * app/render_gdk.c: (get_text_width):
9610         * lib/arrows.h:
9611         * lib/color.c: (color_convert):
9612         * lib/dia_dirs.c: (dia_config_filename):
9613         * lib/dia_xml.c: (xmlDiaParseFile), (data_type):
9614         * lib/intl.c: (intl_get_language_list):
9615         * lib/message.c: (message):
9616         * lib/message.h:
9617         * lib/paper.c: (get_default_paper):
9618         * lib/plug-ins.c: (this_is_a_plugin), (dia_register_plugins):
9619         * lib/widgets.c: (dia_file_selector_get_file):
9620         * lib/widgets.h:
9621         * objects/standard/image.c: (get_directory):
9623         warningectomy.
9624         
9625 2002-06-12  Lars Clausen  <lrclause@cs.uiuc.edu>
9627         * ChangeLog: Fixed bad UTF-8 mess.  Apologies.
9629 2002-06-11  Lars Clausen  <lrclause@cs.uiuc.edu>
9631         * app/interface.c: sscanf now returns EOF on empty string, so
9632         handle no match for zoom factor better => correct zoom at start.
9634         * app/sheets.c (create_object_pixmap): Tried to display empty error.
9635         (sheets_optionmenu_create): Died when not finding specified
9636         sheet.  Don't think it should.
9638         * objects/UML/association.c: Added patch from osamyn@ulb.ac.be
9639         (bug #84367) to place the text better.
9641 2002-06-11  Cyrille Chepelov  <cyrille@chepelov.org>
9643         * configure.in: Added forgotten libgnomeui-2.0 when --enable-gnome
9644                         
9645         * app/commands.c: Removed unnecessary gnome include. Removed
9646         GNOME-Print support.
9648         * app/menus.h: Removed now unnecessary gnome include.
9649         
9650         * app/sheets_dialog.c: Used Gtk 2.0 stock buttons instead of
9651         GNOME-specific stock buttons
9652         
9653 2002-06-09  Hans Breuer  <hans@breuer.org>
9655         * app/app_procs.c : convert 'Modified diagrams exits'
9656         dialog to use GtkMessageDialog. That gives us:
9657         - icons without Gnome dependency
9658         - much less code, also cross platform
9659         - improved useability ?
9661         * app/color_area.c : the Color Selection Widget looked
9662         quite wrong (alpha problems). Fix it by merging in required
9663         changes stolen from The Gimp cvs
9664         * app/color_area.h : to get the right appearance the maskes
9665         needed to be taken into account
9666         * app/interface.c : adapt to color_area_create changes.
9667         Also remove some dead code and finally remove cvs autexpansion, 
9668         I was bothered enough by irrelevant differences :-)
9670         * app/defaults.c app/properties.c app/dia-props.c : use improved GtkDialog
9671         api, i.e stocks and response to make the GnomeDialog usage
9672         obsolete. Also fixed the issue with closing the 'parent'
9673         before closing the dialog
9675         * app/display.[ch] : removed some dead code and conversion
9676         to new GtkDialog api. Also trying to conform to new HIG
9677         standard http://developer.gnome.org/projects/gup/hig/
9679 2002-06-09  Hans Breuer  <hans@breuer.org>
9681         * lib/makefile.msc : define GTK_DISABLE_DEPRECATED,
9682         build ps-utf8.c
9684         * lib/dia_image.c : gtk_widget_set_default_visual()
9685         remove. It does nothing with Gtk2.
9687         * lib/libdia.def : added ps_unicoder exports
9689         * lib/message.c : remove #GNOME use GtkMessageDialog.
9690         Yeah, Dia gets dialogs wit icons cross-platform.
9692         * lib/prop_geomtypes.c : gtk_spin_button_get_value_as_float()
9693         to gtk_spin_button_get_value()
9695         * lib/prop_inttypes.c : gtk_label_set() -> gtk_label_set_text()
9697         add #undef GTK_DISABLE_DEPRECATED to still use ...
9698         * lib/prop_text.c :  ... GtkText
9699         * lib/prop_widgets.c : ... GtkList
9700         * lib/prop_dialogs.c : ... gtk_signal_connect and more
9701         * lib/widgets.c : ... (too much to list here)
9703         * lib/ps-utf8.c : #include <string.h>
9705 2002-06-08  Cyrille Chepelov  <cyrille@chepelov.org>
9707         * configure.in:
9708         * Makefile.am:  Adapted for gtk2.
9709         Removed dependencies on libunicode, on iconv(), on langinfo().
9711         * acconfig.h: removed (now obsolete)
9713         * lib/charconv.[ch]: removed (superceded by glib)
9714         * lib/ps-utf8.[ch]: removed dependency on charconv.[ch]
9716         * **/*.[ch]: removed (utfchar *), (unichar) and other charconv or
9717         libunicode types for their glib counterparts. Fixed the include
9718         paths for libxml2. Removed all traces of libxml1 or non-UTF8
9719         support (there were remains in objects/uml).
9721         
9722 2002-06-08  Hans Breuer  <hans@breuer.org>
9724         */*.c */*/*.c : remove all the #ifdef *_UTF8_* hell,
9725         only keep the utf-8 clean code cause Dia+Gtk2 now talk it.
9726         Also use g_strdup()'s handling of NULL by returning NULL
9727         again at all places I found (remove unnecessary if's)
9729         * todo.gtk2 : new file to keep notes about gtk2 porting,
9730         further issues and thoughts and some status information.
9731         Also sent to dia-list ('Dia goes Gtk2 ...').
9732         
9733         [make it compile with GTK+ 2.0]
9735         * config.h.win32 : #undef GTK_TALKS_UTF8_WE_DONT,
9736         removed definition of S_ISDIR, S_ISREG and getlogin
9738         * */makefile.msc : Use GTK2 and libxml2
9739         BEWARE: makefile.am, configure.in not yet ported !
9741         * app/app_procs.c app/diagram.c : remove 
9742         gtk_item_factory_dump_rc code, (it wasn't read in again anyway) 
9743         but set use gtk_menu_set_accel_path() on menu creation
9745         * app/color_area.c lib/widgets.c : 
9746         make use of gtk_color_selection_set_has_palette ()
9748         * app/commands.c : gdk_pixbuf_new_from_file wants an 
9749         extra argument. Convert from DIR to GDir usage.
9751         * app/diagram_tree.c(button_press_callback) : need to return 
9752         FALSE in the signal handler to let gtk process it further.
9753         (get_object_name) : don't leak 'prop'
9754         
9755         * app/diapagelayout.c : adapt to GtkTypeInfo changes and handle 
9756         dia_page_layout_destroy() getting called more than once
9758         * app/diaunitspinner.c : GtkEditable -> GtkEntry, 
9759         GtkTypeInfo changes
9761         * app/disp_callbacks.c : gtk_menu_append() -> gtk_menu_shell_append()
9763         * app/display.h : wrap input contexts declarations into #ifdef USE_XIM.
9764         IIRC this code will not compile unchanged when USE_XIM is defined ...
9766         * app/gtk[hv]wrapbox.[hc] : use already ported version from The GIMP 1.3.x
9768         * app/interface.c : there is no widget->klass anymore in Gtk, 
9769         use GTK_WIDGET_GET_CLASS instead. gdk_pixbuf_new_from_file() extra
9770         parameter. Some tweaking of GtkWrapBox usage to get four tools in
9771         a row again.
9772         switch off GTK's double buffering on Dia's canvas. Otherwise we would 
9773         get triple buffering and flicker.
9774         Replace call to GTK private function _gtk_accel_group_attach()
9775         with public gtk_window_add_accel_group()
9777         * app/layer_dialog.c : adapt to GtkTypeInfo changes
9779         * app/load_save.c lib/plug-ins.c lib/sheet.c 
9780           objects/custom/custom.c : 
9781         simplified by using g_file_test()
9783         * app/menus.c : convert from gtk_item_factory_<dump|parse>_rc 
9784         to gtk_accel_map_<save|load>. Also added common stock-icons
9785         to the menu.
9786         
9787         * app/preferences.c : use gtk_button_set_label() instead
9788         of button->child which is gone. Also removed GLIB_CHECK_VERSION.
9790         * app/preferences.c lib/dia_xml.c lib/plug-ins.c :
9791         #ifdef G_OS_WIN32 #include <io.h>, this was formerly done
9792         in config.h.win32
9794         * app/recent_files.c : removed GLIB_CHECK_VERSION
9796         * app/render_eps.c 
9797           plug-ins/metapost/render_metapost.c
9798           plug-ins/pstricks/render_pstricks.c
9799           plug-ins/svg/render_svg.c :
9800         replace getlogin() with g_get_user_name() which always
9801         returns non NULL
9803         * app/render_gdk.c : gdk_region_union_with_rect() modifies
9804         inplace now and returns nothing, also less #hell
9806         * app/render_libart.c : some initial #hell cleaning, SuckFont
9807         still needs to vanish
9809         * app/splash.c : gdk_pixbuf_new_from_file() second arg and
9810         GTK_WINDOW_DIALOG -> GTK_WINDOW_TOPLEVEL
9812         * app/render_pixbuf.c app/sheets.c : plain #hell cleaning
9813         * app/sheets_dialog_callbacks.c : some #hell and adaptions
9814         needed to GtkWrapBox api changes
9817         * lib/charconv.[hc] : removed from build
9818         [changed appropriate]
9819         * lib/prop_inttypes.c lib/prop_text.c : 
9820         all utf-8 cleaning 
9821         * lib/text.c : ported from HEAD but keep original indent
9822         intact. Original was done by Akira TAGOH.
9824         * lib/color.c : GdkColorContext is gone, use GdkColormap instead.
9826         * lib/dia_image.c : gdk_pixbuf_new_from_file() second arg
9828         * lib/dia_xml.c : remove #ifdef GLIB_CHECK_VERSION, it's the
9829         same on all platforms now!
9831         * lib/font.c : still using SuckFont which was an IMPERATIVE FIXME!
9833         * lib/message.c : remove "charconv.h"
9835         * lib/prop_text.c : #define GTK_ENABLE_BROKEN to use GtkText
9837         * lib/plug-in.c :
9838         * lib/sheet.c : convert from DIR to GDir usage
9840         * lib/widgets.c : gtk_menu_(shell_)append and GtkTypeInfo
9842         * lib/widgets.h : include gtk<label|colorseldialog>.h
9845         * objects/fs/flow.c :
9846         * objects/fs/flow-ortho.c : GTK_ENABLE_BROKEN to use GtkText
9848         * objects/custom/custom.c : convert from DIR to GDir usage
9851         * plug-ins/python/makefile.msc : updated for GTK2/Python2.2
9854 2002-05-03  Hans Breuer  <hans@breuer.org>
9856         * lib/dia_xml.c : make the well formed utf8 check
9857         actually work for &#251; (non 7-bit ascii encoding)
9858         and fixed the file re-writing if the check fails.
9859         Thanks to Vitaly Lipatov for noticing the misbehaviour.
9861         * lib/font.c : synchronize #ifdef G_OS_WIN32 with
9862         comment on last ressort font. Thanks to Maxim Sobolev.
9864 2002-06-03  Cyrille Chepelov  <cyrille@chepelov.org>
9866         * sheets/network.sheet.in: corrected a typo in plotter invocation.
9868 2002-06-03  Steffen Macke  <sdteffen@web.de>
9870         * shapes/network/digitizing_board.png:
9871         * shapes/network/digitizing_board.shape:
9872         * shapes/network/plotter.png:
9873         * shapes/network/plotter.shape:
9874         * shapes/network/Makefile.am
9875         * sheets/network.sheet.in: added new plotter and digitizing
9876         board shapes
9877         
9878 2002-06-02  Cyrille Chepelov  <cyrille@chepelov.org>
9880         * lib/font.c: made a symptomatic fix to a segfault reported by 
9881         Jan Keirse <jan.keirse@pandora.be> on a SuSE 7.3 system. This
9882         won't prevent dia from terminating, but should give more
9883         user-friendly information about why did it terminate.
9885         Two patches from <robert.young@dsto.defence.gov.au>:
9886         
9887         * app/display.c: fix the size of the canvas area which gets
9888         redrawn. There was an off-by one error (Closes #83659)
9890         * app/display.c: make sure we redraw all screen only when we
9891         really have to (some update_areas were mistakenly ignored) (Closes
9892         #83496). 
9894         * NEWS: added a new entry for the future. Put there a reminder to
9895         update the dependencies.
9897         * configure.in: put in notes about what will change shortly.
9898         upped the version to 0.90+cvs (did also in config.h.win32)
9899         upped the minimum version for intltools (now 0.21)
9900         
9901 2002-06-01  Cyrille Chepelov  <cyrille@chepelov.org>
9903         * dia.spec:
9904         * configure.in:
9905         * NEWS:
9906         * config.h.win32:
9907         bumped up version number to 0.90. Yay!
9909 2002-05-30  Cyrille Chepelov  <cyrille@chepelov.org>
9911         * doc/pl/Makefile.am:
9912         * doc/en/Makefile.am: fixed a "make install" problem when db2html
9913         is not present (Reported by Andrew Ferrier
9914         <andrew.junk@new-destiny.co.uk>). Fixed another "make distclean"
9915         problem which prevented me from ever seeing the problem in doc/en...
9916         
9917         * Makefile.am: added autogen.sh to the EXTRA_DIST clause.
9918         
9919         * lib/font.c: patch from <robert.young@dsto.defence.gov.au>; add a
9920         way to read the font path from the XFS configuration files in
9921         order to enable FreeType (fixes #83098).
9923         * POTFILES.(in,skip): now skips objects/sybase/sybase.c, which is not
9924         shipped nowadays.
9925                 
9926         * dia.spec:
9927         * configure.in:
9928         * NEWS:
9929         * config.h.win32:
9930         bumped up version number to 0.90.RC3
9932 2002-05-29  Zbigniew Chyla  <cyba@gnome.pl>
9934         * configure.in, doc/Makefile.am, doc/pl/Makefile.am,
9935         doc/pl/authors.sgml, doc/pl/dia-manual.sgml, doc/pl/dia-pl.omf,
9936         doc/pl/intro.sgml, doc/pl/license.sgml, doc/pl/topic.dat
9937         doc/pl/usage-canvas.sgml, doc/pl/usage-customization.sgml,
9938         doc/pl/usage-layers.sgml, doc/pl/usage-loadsave.sgml
9939         doc/pl/usage-objects-selecting.sgml, doc/pl/usage-objects-special.sgml,
9940         doc/pl/usage-objects.sgml, doc/pl/usage-quickstart.sgml:
9941         Added Polish documentation.
9943 2002-05-27  Cyrille Cheeplov  <cyrille@chepelov.org>
9945         * objects/UML/state.c: there was a (gratuitous?) change of on-XML
9946         format for the UML State object. Now there's a hack to reload
9947         older files, and get them converted on the fly. 
9948         Justyna BiaÅ?a <nell@poczta.gazeta.pl> reported this. Thanks!
9950         * lib/properties.h:
9951         * lib/propobject.c:
9952         * lib/proplist.c: Added a new property flag, PROP_FLAG_LOAD_ONLY,
9953         and adapter the proplist predicates. A LOAD_ONLY property is for
9954         when you have legacy to support but can't resist moving your
9955         fields around... (was needed to support the above state.c fix).
9957         If the in-core of your object changes and you need a LOAD_ONLY
9958         property for the old format, you must keep some spare room in your
9959         object's struct to accomodate for the potential old-style
9960         attributes. Then in foo_load(), after having called
9961         object_load_using_properties(), you must inspect the old-style
9962         fields and act accordingly. Don't ever change the on-disk formats...
9964         * objects/UML/object.c:
9965         * objects/UML/small_package.c: added a check against empty
9966         stereotypes still consuming space. Reported by Dolores Alia de
9967         Saravia <loli@unsa.edu.ar>. Thanks!     
9968         
9969 2002-05-26  Cyrille Chepelov  <cyrille@chepelov.org>
9971         * INSTALL: added platform notes from MÃ¥rten Svantesson, for when
9972         using libtool on an AFS partition.
9974         * po/update_potfiles_in.sh: now simply calls the recent intltools 
9975         features; they work better than hand-crafted half-ignorant
9976         scripts. Thanks to Kenneth Rohde Christiansen <kenneth@gnu.org>
9977         for the tip.
9979         * po/POTFILES.in: added back two files update_potfiles_in.sh
9980         didn't take into account. Now this file is not automatically
9981         generated anymore!      
9982         * po/POTFILES.skip: told `intltool-update -m` what files to ignore
9983         (the usual suspects, in fact).
9985         * configure.in: improved the isinf() / isfinite() detection on
9986         Solaris (MÃ¥rten Svantesson)
9987         
9988 2002-05-25  Cyrille Chepelov  <cyrille@chepelov.org>
9990         * configure.in: one expression was replacing $CFLAGS, removing
9991         whatever was previously in.
9992         Added more checks for isinf() and finite() on Solaris.
9994         * lib/geometry.h: added a macro defintion for isinf() if not
9995         HAVE_ISINF. (Hans, you may want to #define HAVE_ISINF if relevant
9996         on Win32)
9998         * app/commands.c: "cut" did not set the 'modified' bit (paste has
9999         been for a little while). Fixes #82994.
10001         * Makefile.am: added more stuff to distclean-local. This should make
10002         "make distcheck" pass! Thanks to the author of
10003         http://mail.gnome.org/archives/gnome-2-0-list/2001-August/msg00212.html
10004         ... I wonder who this Henstridge guy is ... ;-)
10005         Darn. Still doesn't pass. I give up for tonight.
10006         
10007         * po/update_potfiles_in.sh: updated to take care of sheet files,
10008         and to filter out the EML plug-in.
10009         * po/POTFILES.in: updated with all .c and all .sheet.in files 
10011         * po/dia.pot, po/*.po: again updated all .po files with all
10012         strings (with the updated POTFILES). Now with the up-to-date
10013         POTFILES, just all languages have some fuzzy or untranslated
10014         strings (not that the 100% team was that large beforehand...)
10016         * po-checktrans: removed the comment about .po files not holding
10017         all translatable stuff, since now they do.
10018         
10019 2002-05-24  Cyrille Chepelov  <cyrille@chepelov.org>
10021         * dia.spec:
10022         * configure.in:
10023         * NEWS:
10024         * config.h.win32:
10025         bumped up version number to 0.90.RC2
10027 2002-05-20  Hans Breuer  <hans@breuer.org>
10029         * app/load_save.c : starting to increase
10030         Dias tolerance on incomplete/broken files. The 
10031         corresponding bug is #56233. But the patch there does
10032         neither apply anymore nor does it really fix the problem
10033         but only delays it, e.g. even if it would be allowed
10034         to read a file without any layers, the later code can't
10035         handle it.
10036         * lib/dia_xml.c : attribute_<num|first>_data(), data_type()
10037         handle passing in NULL for the node gracefully.
10039         * shapes/network/printer.shape : added two more connection
10040         points - one at each side - to fix bug #60359
10042         * app/commands.c (edit_copy_callback) : 
10043         add ddisplay_do_update_menu_sensitivity() to make 
10044         sequence select-copy-paste work.
10046 2002-05-20  Hans Breuer  <hans@breuer.org>
10048         * app/create_object.c (create_object_button_press) :
10049         added a call to ddisplay_do_update_menu_sensitivity()
10050         to make Ctrl^D etc work after object creation. 
10051         Fixes #80983.
10053 2002-05-18  Lars Clausen  <lrclause@cs.uiuc.edu>
10055         * objects/ER/entity.c: 
10056         * objects/ER/attribute.c: 
10057         * objects/ER/relationship.c: Patch to allow text size change from
10058         Celso Tetsuo Nagase Suzuki.
10060 2002-05-18  Steffen Macke <sdteffen@web.de>
10062         * app/app_procs.c: #ifdef'd xmlerror.h (comes with 
10063         libxml2)
10064         * doc/en/graphics/greendots.png:
10065         * doc/en/home_network.png:
10066         * doc/en/line_props.png: 
10067         * dia-diagram.png:
10068         * dia_gnome_icon.png:
10069         * dia_gnome_menu_icon.png:
10070         * dia_logo.png:
10071         * shapes/network/telephone.png:
10072         * shapes/Logic/and.png:
10073         * shapes/Logic/buffer.png:
10074         * shapes/Logic/connector.png:
10075         * shapes/Logic/inverter.png:
10076         * shapes/Logic/nand.png:
10077         * shapes/Logic/nor.png:
10078         * shapes/Logic/not.png:
10079         * shapes/Logic/or.png:
10080         * shapes/logic/xor.png:
10081         * samples/ER-demo.dia:
10082         * samples/SADT.dia:
10083         * samples/UML-demo.dia:
10084         * samples/chronograms.dia:
10085         * samples/grafcet.dia: re-added as binary files
10087 2002-05-17  Hans Breuer  <hans@breuer.org>
10089         * lib/libdia.def : reflect removing of render_store.[ch]
10091         * */makefile.mingw : remove VERSION definition it's
10092         done in config.h.win32. Dia still doesn't work if
10093         build with mingw ...
10095         * RELEASE-PROCESS : removed */makefile.mingw
10097         * app/sheets_dialog_callbacks.c : if we use those
10098         ugly charconv_gtk_* functions lib/charconv.h needs to
10099         be #included ...
10100         * lib/charconv.h : ... and needs to contain the 
10101         necesseray prototypes _and_ #defines
10103         * plug-ins/shape/shape-export.c : with libxml2 xmlNewGlobalNs
10104         is deprecated and does nothing but spit a warning. This broke
10105         the shape format writing. Fixed.
10106         Also with libxml2 pretty formatted xml isn't the default
10107         anymore, but needs to be enabled explicit: It is done now 
10108         for shape files, which almost always needed to be edited by
10109         hand ... 
10111         * app/app_procs.c : #if G_OS_WIN32 redirect xmlErrorReporting
10112         from stderr - which is invalid on Dia/win32 - to g_print -
10113         which opens up a console window if necessary. This way
10114         a xml-deprecation-error shouldn't stay unnoticed next time
10116 2002-05-17  Steffen Macke <sdteffen@web.de>
10118         * shapes/Misc/folder.png:
10119         * shapes/Misc/file.png: re-added as binary files
10120         
10121 2002-05-16  Lars Clausen  <lrclause@cs.uiuc.edu>
10123         * lib/font.c: Fixed segfault for fonts without family_name.
10125 2002-05-17  Cyrille Chepelov  <cyrille@chepelov.org>
10127         * po/POTFILES.in: added app/sheets_dialog_callbacks.c
10129         * app/sheets_dialog_callbacks.c: While reviewing UTF-8isation upon
10130         Lars' request, minor cosmetic stuff (mostly _() of human-readable
10131         XML comments in .sheet files; one translator booby-trap disarmed).
10133         * lib/charconv.c: moved #hell inside the body of the new
10134         charconv_*gtk* functions (otherwise the Win32 or gtk2.0 linker
10135         will yell)
10136         
10137 2002-05-16  Lars Clausen  <lrclause@cs.uiuc.edu>
10139         * plug-ins/wpg/Makefile.am (INCLUDES): 
10140         * plug-ins/shape/Makefile.am (INCLUDES): 
10141         * plug-ins/svg/Makefile.am (INCLUDES): 
10142         * plug-ins/pstricks/Makefile.am (INCLUDES): 
10143         * plug-ins/metapost/Makefile.am (INCLUDES): Added UNICODE_CFLAGS
10144         and DEBUG_CFLAGS in some missing places.
10146         * MAINTAINERS: New file containing list of known package
10147         maintainers. 
10149         * lib/charconv.h: 
10150         * lib/charconv.c: Charconv versions of some common gtk calls.
10152         * app/sheets_dialog_callbacks.c
10153         (on_sheets_new_dialog_button_ok_clicked),
10154         (on_sheets_dialog_button_edit_clicked),
10155         (on_sheets_dialog_button_remove_clicked),
10156         (on_sheets_edit_dialog_button_ok_clicked):
10157         * app/sheets.c (sheets_optionmenu_create),
10158         (sheets_optionmenu_create): Added utf8 translations.
10160         * app/sheets_dialog.c: 
10161         * app/sheets.c: 
10162         * app/sheets_dialog_callbacks.c: Added some missing _()'s.
10164 2002-05-16  Cyrille Chepelov  <cyrille@chepelov.org>
10166         * po/POTFILES.in: added app/sheets_dialog.c
10168 2002-05-15  Cyrille Chépélov  <cyrille@chepelov.org>
10170         * lib/charconv.c: (charconv_local8_to_utf8),
10171         (charconv_utf8_to_local8): tweaked the warnings to get more 
10172         informations
10173         * lib/font.c: (font_get_suckfont): handled a potential case of
10174         uninitialised data being used (just paranoid)
10175         
10176         * objects/GRAFCET/boolequation.c: (opstring),
10177         (opblock_get_boundingbox), (opblock_draw),
10178         (boolequation_calc_boundingbox): some extra hoops needed now dia
10179         talks UTF8 (but gtk doesn't). More #hell. Beeek. Basically, the
10180         symbols can't yet be used with their proper Unicode cells, since
10181         gtk will demand them in the Symbol font, expressed in the local
10182         8-bit encoding.
10183         
10184         * samples/grafcet.dia: re-saved, now with a fixed bounding box (by
10185         the fix just above).
10187 2002-05-14  Lars Clausen  <lrclause@cs.uiuc.edu>
10189         * app/diagram_tree.c (get_object_name): Check that name property
10190         doesn't have null string.
10192 2002-05-13  Lars Clausen  <lrclause@cs.uiuc.edu>
10194         * autogen.sh (DIE): Added conditional --force to gettextize.
10196         * app/pagesetup.c (pagesetup_ok): Commented out missing Gnome
10197         function call.
10199 2002-05-13  Cyrille Chepelov  <cyrille@chepelov.org>
10201         * RELEASE-PROCESS: added James' notes on how to properly make the
10202         tarball.
10204         * configure.in: removed macro nesting related to libpng.h, which
10205         was causing some problems on some systems (like mine, which made
10206         the snapshots bad).
10208         Made --enable-unicode, previously an option, the mandatory case.
10210         * app/Makefile.am: updated EXTRA_DIST
10211         
10212         * NEWS:
10213         * app/makefile.mingw:
10214         * dia.spec:
10215         * doc/en/dia-manual.sgml:
10216         * plug-ins/makefile.mingw:
10217         * configure.in: bumped up the version number to 0.90.RC1
10219         * lib/render_objects.[ch]:
10220         * po/POTFILES.in: removed render_objects from the build.
10222         * plug-ins/Makefile.am:
10223         * plug-ins/wmf/Makefile.am (new): EXTRA_DIST'ed the WMF plug-in,
10224         so we keep its source in the tarball.
10226         * objects/network/*.c, Makefile.am:
10227         * objects/sybase/*.c, Makefile.am:
10228         * po/POTFILES.in: cleaned up the non-existent files from the po
10229         build process.
10231         * plug-ins/Makefile.am: re-enabled metapost plug-in.
10232         
10233 2002-05-13  Steffen Macke <sdteffen@web.de>
10235         * AUTHORS:
10236         * app/command.c: added M. C. Nelson to the Authors
10237         * sheets/Circuit/Makefile.am: added firewall shape to build
10238         * sheets/network/Makefile.am: added telephone and microphone
10239           shapes to build
10241 2002-05-13  Lars Clausen  <lrclause@cs.uiuc.edu>
10243         * RELEASE-PROCESS: Added list of files that contain the release
10244         number or should otherwise be changed at each release.
10246 2002-05-12  Lars Clausen  <lrclause@cs.uiuc.edu>
10248         * objects/UML/uml.c (uml_operation_read): Forgot to commit this
10249         (reported fixed) bug: POLYMORPHIC -> LEAF for default.
10251 2002-05-12  Hans Breuer  <hans@breuer.org>
10253         * config.h.win32 : changed VERSION to 0.90.RC1
10255         * app/makefile.msc lib/makefile.msc : use renamed
10256         gdk-pixbuf version (same content but renamed because
10257         all the other gtk+ dlls are renamed) to avoid trouble
10258         mixing gtk versions (of which one would not 
10259         be initialized ...
10261         * app/app_procs.c : removed recently unneeded
10262         inclusion of "sheets.h"
10264         * app/render_gdk.c : removed my own debug spew
10265         which should never made it to cvs
10267         * lib/render_object.[hc] : added
10268         #error "File not used anymore."
10270         * lib/libdia.def : updated externals
10272         * app/interface.c : dropped filenames need to be
10273         converted from uri with Gtk+2.0
10275 2002-05-12  Cyrille Chepelov  <cyrille@chepelov.org>
10277         * RELEASE-PROCESS (new): a draft document about how to release. To
10278         be discussed. (already with some input from Hans Breuer)
10280 2002-05-12  Steffen Macke <sdteffen@web.de>
10282         * sheets/Makefile.am: re-added Misc sheet to make process
10283         
10284 2002-05-12  Lars Clausen  <lrclause@cs.uiuc.edu>
10286         * objects/FS/function.c: Added comments to humungous list of menu
10287         items, to aid translators.
10289 2002-05-11  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
10291         * app/menus.c (display_menu_items): Added a few shortcuts for zooms.
10293         * app/menus.c (display_menu_items): Added a few shortcuts for zooms.
10295         * app/interface.c (create_toolbox): Disallow shrinking beyond
10296         requested size.  Fixes bug #59439, and confirms to GTK guidelines
10297         (see gtk_window_set_policy).
10298         (create_sheets): Removed now unnecessary set_usize call.
10300 2002-05-10  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
10302         * lib/beziershape.c (remove_handles): Fixing removal of last
10303         segment.  Undo of removal still hokey.
10305 2002-05-10  Lars Clausen  <lrclause@cs.uiuc.edu>
10307         * lib/bezier_conn.c (remove_handles): Proper offset for fixing
10308         handles. 
10309         * lib/beziershape.c (beziershape_init): Removed early call to
10310         beziershape_update_data where points aren't set yet.
10311         (beziershape_add_segment): Use segment 0 instead of overflowing
10312         points array with segment+1.
10313         (beziershape_remove_segment): Proper offset for fixing
10314         connectionpoints. 
10315         (remove_handles): Proper offset.
10317 2002-05-08  Lars Clausen  <lrclause@cs.uiuc.edu>
10319         * objects/GRAFCET/action.c (action_update_data): Init x value of
10320         click point for call to connpointlist_adjust_count.
10322         * app/modify_tool.c (create_modify_tool): Init tool->auto_scrolled
10324         * app/render_pixmap.c (new_pixmap_renderer): Moved first linestyle
10325         setting to where values are inited.
10327         * lib/polyshape.c (polyshape_init): Removed call to
10328         polyshape_update_data that tried to use uninitialized data.
10330 2002-05-06  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
10332         * app/sheets_dialog.c: Mass removal of //-style comments.  The
10333         Irix compiler doesn't like them:(  I do...
10335 2002-05-06  Lars Clausen  <lrclause@cs.uiuc.edu>
10337         * app/render_libart.c (draw_string): Bail out when no GDK font is
10338         found.
10339         (set_font): Give error when font not found.
10340         (set_fillstyle): Intlized error msg.
10342         * app/pagesetup.c (pagesetup_ok, pagesetup_apply): Sets diagram
10343         modified when applied (and ok only does apply if apply is set
10344         sensitive).  Fixes bug #75623.
10346 2002-05-06  Pablo Saratxaga  <pablo@mandrakesoft.com>
10348         * configure.in: Added Vietnamese (vi) to ALL_LINGUAS
10350 2002-05-05  Steffen Macke <sdteffen@web.de>
10352         * app/Makefile.am: added $(UNICODE_CFLAGS)
10353         
10354 2002-05-02  Lars Clausen  <lrclause@cs.uiuc.edu>
10356         * app/commands.c (help_manual_callback): Check return value of
10357         opendir.
10359         * plug-ins/xfig/Makefile.am (INCLUDES): Added DEBUG_FLAGS
10361         * plug-ins/xfig/xfig-import.c: Fixed misspelled Poly_L_ine, added
10362         checks for errors.
10364 2002-04-30  Lars Clausen  <lrclause@cs.uiuc.edu>
10366         * app/render_gdk.c (draw_string): Extra free killed.  Thanks valgrind!
10368         * objects/UML/uml.c (uml_operation_read): Fix of UML default
10369         inheritance. 
10371 2002-04-30  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
10373         * app/filedlg.c (file_save_as_callback, file_save_as_ok_callback):
10374         Added button to toggle diagram compression.
10376 2002-04-29  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
10378         * lib/font.c: Support for loading extra kerning files, plus got
10379         rid of rounding errors.  Bounding box mostly perfect for freetype
10380         fonts.
10381         (font_string_width): Fudge factor to get around nonlinearity of
10382         font scaling.
10384 2002-04-29  Lars Clausen  <lrclause@cs.uiuc.edu>
10386         * lib/font.c (font_string_width): YA font calculation scheme, with
10387         comments.
10389         * objects/UML/class.c (umlclass_calculate_data): Uses the same
10390         font for drawing and calculating now.
10392         * configure.in: Added utime.h check.
10394         * app/render_gdk.c (draw_string): Uses gdk_draw_text_wc when in
10395         GTK_DOESNT_TALK_UTF8_WE_DO.  Thus it matches the string width calc.
10397 2002-04-26  Hans Breuer  <hans@breuer.org>
10399         [ Instead of fixing about 70 occurances in 20 files
10400           where GTK_TALKS_UTF8_WE_DONT needed to be handled
10401           Dia on win32 from now on uses glib-2.0 and not 
10402           only talks utf-8 with gtk-1.3 but also internally.
10403           GTK_TALKS_UTF8_WE_DONT isn't supported/needed
10404           anymore. ]
10406         * config.h.win32 : #define UNICODE_WORK_IN_PROGRESS
10407         #undef GTK_TALKS_UTF8_WE_DONT
10409         * */makefile.msc : changes to use glib-2.0 (still
10410         using gtk+1.3(win32-production)
10412         * app/disp_callbacks.c : remove GTK_TALKS_UTF8_WE_DONT,
10413         adapt kevent->string handling, add <string.h>
10414         * app/render_gdk.c (get_text_width) : the length given
10415         is in chars, gdk_text_width() needs bytes
10417         * app/render_libart.c : 
10418         * app/render_pixmap.c : remove GTK_TALKS_UTF8_WE_DONT
10419         (could simplify the same way as done in render_gdk.c)
10421         * app/diagram_tree.c app/paginate_gdiprint.cpp
10422           app/sheets.c :
10423         * lib/prop_basic.c lib/prop_geomtypes.c 
10424           lib/propdialgs.c lib/propobject.c :
10425         added <string.h> which is now removed from charconv.h
10427         * lib/charconv.h : optional use infrastructure from
10428         glib-2.0 -> only five direct function mapping left
10430         * lib/charconv.c : avoid to build this with glib-2.0
10432         * lib/font.c : no string conversion needed anymore      
10433         when Dia and Gtk talk utf-8, also code adaptions
10434         for GLIB_CHECK_VERSION(2,0,0)
10436         * lib/libdia.def : removed charconv functions
10438         * lib/prop_inttypes.c : removed GTK_TALKS_UTF8_WE_DONT,
10439         replace charconv_unichar_to_utf8() with g_unichar_to_utf8()
10441         * lib/prop_text.c lib/prop_widgets.c lib/font.c : 
10442         removed GTK_TALKS_UTF8_WE_DONT
10444         * lib/text.c : finally(?) fixed cursor <place|move>ment 
10445         for Umlauts. Also fixed char insertion, still wondering
10446         how this could ever work. Does realloc on Linux 
10447         initialize the memory with zeros ?
10449         * objects/chronogram/chronoline_event.c
10450           objects/grafcet/boolequation.c :
10451         there is no uni_get_utf8 when building for glib-2.0.
10452         Replace with g_utf8_get_char() and g_utf8_next_char().
10454         * objects/uml/stereotype.c (bracketted_to_string) : 
10455         simplify while adding code for glib-2.0 build
10457 2002-04-27  Lars Clausen  <lrclause@cs.uiuc.edu>
10459         * app/diagram.h: Autosave field
10460         * app/diagram.c (diagram_set_modified): Sets autosave field.
10461         
10462         * objects/UML/usecase.c (usecase_update_data): 
10463         * objects/flowchart/ellipse.c (ellipse_update_data): 
10464         * objects/flowchart/parallelogram.c (pgram_update_data): 
10465         * objects/flowchart/diamond.c (diamond_update_data): 
10466         * objects/custom/custom_object.c (custom_update_data): 
10467         * objects/UML/state.c (state_update_data): 
10468         * objects/UML/small_package.c (smallpackage_update_data): 
10469         * objects/UML/object.c (objet_update_data): 
10470         * objects/UML/note.c (note_update_data): 
10471         * objects/UML/node.c (node_update_data): 
10472         * objects/UML/component.c (component_update_data): 
10473         * objects/UML/classicon.c (classicon_update_data): 
10474         * objects/UML/actor.c (actor_update_data): 
10475         * objects/SADT/box.c (sadtbox_update_data): 
10476         * objects/FS/function.c (function_update_data): 
10477         All now update text boundaries from update_data.
10478         
10479         * lib/widgets.c (dia_font_selector_set_styles): Made the style set
10480         correctly. 
10482 2002-04-26  Hans Breuer  <hans@breuer.org>
10484         * config.h.win32 : added VERSION definition here
10485         (and removed from makefile.msc's)
10487         * app/makefile.msc : added new files
10489         * app/app_procs.c (app_init): remove sheets_dialog_create()
10490         from start-up and ... 
10492         * app/sheet.c (sheets_dialog_show_callback) : ... lazy create
10493         sheet_dialog here when it is really needed.
10494         #include "../lib/message.h", make sheets_dialog_create() 
10495         return it's success or failing on (!custom_type_symbol). 
10496         Although editing shapes is nice IMHO it isn't crucial enough 
10497         to abort() Dia if       it isn't possible.
10499         * app/sheet.h : adapt create_sheet_dialog() prototype
10501         * app/sheets_dialog.c : add #ifdef HAVE_UNISTD_H
10503         * app/sheets_dialog_callbacks.c : #ifdef HAVE_UNISTD_H and
10504         #ifdef HAVE_UTIME_H. Otherwise #include <sys/utime.h> and
10505         name space corrections for utime() and utim_buf #ifdef
10506         G_OS_WIN32
10508         * lib/libdia.def : export new sheet functions
10510         * lib/makefile.msc : added new files
10512         * lib/render.c : don't put draw_bezier_with_arrows() in
10513         the DrawLineWithArrowsFunc slot
10515         * objects/custom/custom_object.c : #include <gmodule.h>
10516         and export 'custom_type' via G_MODULE_EXPORT
10518         * objects/uml/class_dialog.c : removed 'incompatible 
10519         types' warnings. Some refactoring while making it fit
10520         on screen with 800x600 again.
10522         * plug-ins/python/pydia-cpoint.h : add PyDiaConnectionPoint_Check
10524         * plug-ins/python/pydia-handle.h : extra parameter to
10525         PyDiaHandle_New to store the owner of the handle
10526         * plug-ins/python/pydia-handle.c : store handle owner
10527         on construction and use it in new method .connect()
10528         * plug-ins/python/pydia-object.c plug-ins/python/pydia-diagram.c : 
10529         adapt to changed prototype
10531 2002-04-24  Lars Clausen  <lrclause@cs.uiuc.edu>
10533         * lib/text.c (text_calc_boundingbox): Will now return early if box
10534         passed is NULL.
10536         * objects/flowchart/box.c (box_update_data): Now updates text
10537         width info from update_data.
10539 2002-04-23  Steffen Macke <sdteffen@web.de>
10541         * plug-ins/xfig/xfig-import.c: fixed text import
10542         
10543 2002-04-22  Lars Clausen  <lrclause@cs.uiuc.edu>
10545         * app/export_png.c: Moved dialog functions to their own file.
10546         * app/dialogs.[ch]: New files with standard functions for creating
10547         small, transient dialogs (e.g. export options).
10548         * app/Makefile.am: Added dialogs.[ch]
10550 2002-04-19  Steffen Macke <sdteffen@web.de>
10552         * shapes/Misc/folder.*:
10553         * shapes/Misc/file.*:
10554         * shapes/Misc/Makefile.am:
10555         * shapes/Makefile.am:
10556         * sheets/Misc.sheet.in:
10557         * sheets/Makefile.am:
10558         * configure.in: added new Misc sheet containing filesystem shapes
10559         
10560 2002-04-18  Lars Clausen  <lrclause@cs.uiuc.edu>
10562         * app/lineprops_area.c: Arrow selector in toolbox changed to use
10563         standard arrowdraw code.  Line is thinner to make some arrowheads
10564         distinguishable. 
10566 2002-04-18  Steffen Macke <sdteffen@web.de>
10568         * sheets/network.sheet.in:
10569         * shapes/network/telephone.shape:
10570         * shapes/network/Makefile.am: added telephone shape
10571         
10572 2002-04-16  Steffen Macke <sdteffen@web.de>
10574         * sheets/EML.sheet.in: commented out unavailable shapes
10575         
10576 2002-04-15  M.C. Nelson <mcn@kobayashimaru.org>
10578         * app/sheets_dialog_callbacks.c:  Fixed segfault caused by mis-ordered
10579           variable assignment.
10580         
10581 2002-04-15  Steffen Macke <sdteffen@web.de>
10583         * plug-ins/dxf/dxf-import.c: text import works again
10584         * shapes/Pneumatic/Makefile.am: added compush shape
10585         * sheets/Pneumatic.sheet.in: commented out unavailable shapes dist33
10586         and dist53
10587         
10588 2002-04-11  M.C. Nelson <mcn@kobayashimaru.org>
10590         * All these modifications are for the 'Sheets and Objects' dialog
10591           (new feature):
10593         * app/pixmaps/line_break.xpm: new icon representing a line break.
10594         
10595         * app/pixmaps/n_a.xpm: new empty icon representing not available.
10597         * app/Makefile.am: added sheets_*.[ch] files to compile list.
10598         
10599         * app/menus.c: added GNOME and gtk menu items for 'Sheets and Objects'
10600         
10601         * app/sheets_dialog.c: [new file] definition of 'Sheets & Objects' dlgs
10603         * app/sheets_dialog.h: [new file] support for Sheets & Objects dlgs 
10604         
10605         * app/app_procs.c: added call to sheets_dialog_create() in app_init()
10606         
10607         * app/sheets_dialog_callbacks.c: [new file] callbacks for S & O dialogs
10609         * app/sheets_dialog_callbacks.h: [new file] support for " " "
10611         * app/interface.c: added 'interface_current_sheet_name' global to 
10612           fill_sheet_wbox(); made fill_sheet_menu() non-static
10614         * app/interface.h: added extern declaration for aboves.
10616         * app/sheets.c: [new file] instantiation and other funcs for S & O dlgs
10618         * app/sheets.h: [new file] declarations for backing store structures
10620         * lib/sheet.c: modification of new_sheet() parameters; introduction
10621           of USER and SYSTEM scope for sheets; procedure for sorting sheets;
10622           changes to load_register_sheet().
10624         * lib/sheet.h: added 'user_data_type' field to SheetObject structure;
10625           added 'has_icon_on_sheet' flag to SheetObject structure; added 
10626           'filename', 'scope', 'shadowing' fields to Sheet structure.
10628         * lib/plug-ins.c: moved _PluginInfo declaration to header file where
10629           it belongs.
10631         * lib/plug-isn.h: see above.
10633         * lib/object.c: added 'sheet.h' to include list; added several 
10634           functions
10635           to detect objects which are not found on any sheet (for future use)
10636           object_type_detect_nosheet_callback(), object_types_detect_nosheet(),
10637           object_type_get_sheet_name(), object_type_strip_sheet_from_name().
10639         * lib/object.h: added public declarations for above functions where
10640           necessary.
10642         * objects/custom/custom.c: made custom_object_load() non-static so we
10643           can load and interpret .shape files from the Sheets & Objects dialog
10645         * objects/custom/custom_object.c: made 'custom_type' non-static so 
10646           we can differentiate between SVG shapes and other types.a
10648 2002-04-07  Hans Breuer  <hans@breuer.org>
10650         * app/object_ops.c (object_list_align_v): Fix the 'Leak fix'
10651         from 2002-01-22 to not destroy diagram->data->selected. 
10652         Avoids to crash on Objects/Align/Vertical/Top
10654         * app/render_eps.c (draw_string) : un-const buffer
10655         It isn't at all const (g_malloc(), assignment, g_free()).
10656         Doesn't gcc catch such ?
10658         * lib/arrows.h : prototype calculate_arrow_point()
10660         * lib/font.c (font_get_suckfont) : no need to
10661         special case gdk_draw_string() with GTK_TALKS_UTF8,
10662         cause all the parameter differences are handled above
10664         * lib/libdia.def : updated externals
10666         * lib/makefile.msc : removed string_prerenderer, added render
10668         * lib/render.c (draw_rect) : don't pass a Point** if a Point*
10669         is expected. [Sometimes it's good to read compiler warnings.]
10671         * objects/standard/image.c : simplified by use of g_strconcat()
10673         * plug-ins/python/makefile.msc : updated for Python 2.2
10675 2002-04-03  Lars Clausen  <lrclause@cs.uiuc.edu>
10677         * objects/standard/zigzagline.c (zigzagline_draw): Fixed
10678         directionality problem for zero-length line segments.
10680 2002-03-28  Lars Clausen  <lrclause@cs.uiuc.edu>
10682         * app/diagram.c (diagram_ungroup_selected) 
10683         (diagram_update_menu_sensitivity): Now allows ungrouping of
10684         several groups at once.
10686 2002-03-15  Lars Clausen  <lrclause@cs.uiuc.edu>
10688         * lib/render.c, all renderers: Binary incompatibility, change to
10689         expandable renderops structure.
10691 2002-03-15  Steffen Macke <sdteffen@yahoo.com>
10693         * objects/standard/Makefile.am:
10694         * objects/network/Makefile.am:
10695         * objects/UML/Makefile.am:
10696         * objects/ER/Makefile.am:
10697         * objects/FS/Makefile.am:
10698         * objects/flowchart/Makefile.am:
10699         * objects/custom/Makefile.am:
10700         * objects/GRAFCET/Makefile.am:
10701         * objects/chronogram/Makefile.am:
10702         * objects/SADT/Makefile.am:
10703         * plug-ins/cgm/Makefile.am:
10704         * plug-ins/pstricks/Makefile.am:
10705         * plug-ins/hpgl/Makefile.am:
10706         * plug-ins/wpg/Makefile.am:
10707         * plug-ins/svg/Makefile.am:
10708         * plug-ins/shape/Makefile.am: added $(UNICODE_CFLAGS)
10709         
10710 2002-03-13  Lars Clausen  <lrclause@cs.uiuc.edu>
10712         * app/render_eps.c: Support for dumping TrueType fonts (taken from
10713         ttfps).
10715 2002-03-12  Lars Clausen  <lrclause@cs.uiuc.edu>
10717         * lib/render.c: New abstract super class for renderers.
10719 2002-03-07  Akira TAGOH  <tagoh@redhat.com>
10721         * objects/ER/attribute.c (attribute_save): save a font property.
10722         (attribute_load): load a font property, and if can't load it, it's
10723         initialized.
10725         * objects/ER/entity.c (entity_save): save a font property.
10726         (entity_load): load a font property, and if can't load it, it's
10727         initialized.
10729         * objects/ER/relationship.c (relationship_save): save a font property.
10730         (relationship_load): load a font property, and if can't load it, it's
10731         initialized.
10733         * objects/UML/class.c (fill_in_fontdata): don't replace if it already
10734         has a vaule.
10735         (umlclass_save): save the font and the font size properties.
10736         (umlclass_load): load the font and the font size properties.
10738 2002-03-05  Cyrille Chepelov  <cyrille@chepelov.org>
10740         * lib/string_prerenderer.[ch] (REMOVED):
10741         * lib/render.h:
10742         * lib/diagramdata.c:
10743         * lib/Makefile.am:
10744         * app/render_eps.c: got rid of the string-specific string
10745         prerenderer, transitioned its functionality towards Lars'
10746         two-phase rendering
10748 2002-03-05  Lars Clausen  <lrclause@cs.uiuc.edu>
10750         * configure.in: Using Freetypes own check for ver >= 1.0.5.  You
10751         may need to rerun aclocal.
10753 2002-03-04  Lars Clausen  <lrclause@cs.uiuc.edu>
10755         * lib/font.c: First attempt at Unicodeness for Freetype.
10757 2002-03-02  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
10759         * lib/font.c (font_string_width): Fixed font_string_width for
10760         freetype.  BB is now almost right.
10762 2002-03-01  Lars Clausen  <lrclause@cs.uiuc.edu>
10764         * app/render_eps.h: 
10765         * app/paginate_psprint.c (paginate_psprint): 
10766         * lib/font.c: 
10767         * app/render_eps.c: Support for dumping postscript fonts into
10768         postscript files with freetype.  Fairly primitive, but works.
10769         Unicode version may have problems.
10771 2002-02-28  Akira TAGOH  <tagoh@redhat.com>
10773         * objects/UML/class_dialog.c (class_read_from_dialog)
10774         (class_fill_in_dialog), (class_create_page): add the font selector and
10775         the font size selector.
10777         * objects/UML/class.c (umlclass_draw): uses each font_height.
10778         (umlclass_calculate_data): ditto.
10779         (fill_in_fontdata): add initial value of new font_height.
10780         (umlclass_copy): add new font_height.
10782 2002-02-27  Cyrille Chepelov  <chepelov@calixo.net>
10784         Patch from Geoff Gerrietts <ggerrietts@yahoo.com>:
10785         
10786         * lib/font.c: calculate font metrics properly and stop guessing at
10787         string widths.
10789 2002-02-28  Akira TAGOH  <tagoh@redhat.com>
10791         * configure.in: changed gtk_advancement value to dia_talks_utf8.
10792         right now Dia is working with UTF-8 internally. it means Dia probably
10793         support most languages also including the languages which heretofore
10794         didn't work correctly.
10796 2002-02-26  Akira TAGOH  <tagoh@redhat.com>
10798         * objects/FS/function.c: add related text properties.
10799         (function_get_props), (function_set_props): add handling attribute.
10801         * objects/FS/flow.c: add related text properties.
10802         (flow_get_props), (flow_set_props): add handling attribute.
10804         * objects/FS/flow-ortho.c: add related text properties.
10805         (orthflow_set_props), (orthflow_get_props): add handling attribute.
10807         * objects/ER/relationship.c: add PROP_STD_TEXT_FONT to property.
10809         * objects/ER/entity.c: ditto.
10811         * objects/ER/attribute.c: ditto.
10813 2002-02-26  Cyrille Chepelov  <cyrille@chepelov.org>
10815         Patch contributed by Geoff Gerrietts <ggerrietts@yahoo.com>:
10816         
10817         * autogen.sh: add a check for missing intltoolize.
10819 2002-02-20  Akira TAGOH  <tagoh@redhat.com>
10821         * lib/ps-utf8.c (unicode_to_ps_name): if this function calls with same
10822         charcode, it was registered the duplicate item to HashTable. fix.
10824         * app/render_gnomeprint.c (get_width_string): add new function.
10825         (draw_string): fix non-multibyte specific code.
10827 2002-02-19  Cyrille Chepelov  <cyrille@chepelov.org>
10829         Patch contributed by Matthieu Sozeau <mattam@netcourrier.com>:
10830         
10831         * lib/font.c: do not try to search paths that do not begin with
10832         '/', like X Font Server addresses.
10833         
10834         * objects/UML/message.c (message_draw): free mname when not 
10835         message->text but CREATE or DESTROY.
10836         
10837         * objects/UML/uml.h:
10838         * objects/UML/uml.c:
10839         * objects/UML/class_dialog.c: added code to handle a stereotype 
10840         attribute for operations.
10842 2002-02-19  Akira TAGOH  <tagoh@redhat.com>
10844         * lib/Makefile.am: add LIBART_CFLAGS.
10846 2002-02-15  Hans Breuer  <hans@breuer.org>
10848         * lib/font.c (font_get_suck_font): the black and white pixel values 
10849         need to be taken from a 1 bit colormap rather than the default colormap.
10850         (fixed again, last time was 2000-05-26)
10852         Also handle the case where GTK_TALKS_UTF8 and expects all strings
10853         passed in to be in this encoding.
10855         * lib/libdia.def : export suck_font_free()
10857         * lib/text.c (text_draw) : avoid circular dependency to ../app
10858         at least for the !USE_XIM case, where it is unnecessary.
10860 2002-02-15  Cyrille Chepelov  <cyrille@chepelov.org>
10862         Changes contributed by Matts Kivik <kivik@firstlinux.net>:
10863         
10864         * shapes/Circuit/microphone_de.(shape|xpm) (NEW):
10865         * sheets/Circuit.sheet.in: added new shape microphone
10866         * shapes/Circuit/speaker_de.shape: Added a connection point.
10867         
10868 2002-02-13  Akira TAGOH  <tagoh@redhat.com>
10870         * app/render_libart.c (draw_string): fixed build issue for Win32.
10872         * lib/font.c (font_get_suckfont): fixed typo. it could't build under
10873         Win32.
10875         * configure.in: fixed testing gtk_advancement.
10877         * app/render_gnomeprint.c (draw_string): uses utfchar instead of char.
10879 2002-02-12  Akira TAGOH  <tagoh@redhat.com>
10881         * lib/text.c (text_draw): fixed XIM position, when menubar is shown for
10882         diagram window.
10884 2002-02-11  Lars Clausen  <lrclause@cs.uiuc.edu>
10886         * app/group.c (group_copy): Made new object properly initialized
10887         before copy.
10889 2002-02-11  Steffen Macke <sdteffen@yahoo.com>
10891         * app/Makefile.am: added plug-ins to DIA_LIB_PATH in run_dia.sh
10892         
10893 2002-02-10  Akira TAGOH  <tagoh@redhat.com>
10895         * lib/text.c (text_draw): fixed XIM transaction.
10897         * app/interface.c (create_display_shell): add signal for
10898         size_allocate.
10900         * app/disp_callbacks.c (ddisplay_size_allocate): add new function for
10901         XIM transaction.
10902         (set_input_dialog): remove.
10903         (ddisplay_canvas_events): remove XIM transaction. it can't transact
10904         correctly on this function.
10906 2002-02-10  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
10908         * app/app_procs.c:
10909         * app/export_png.c: Added checks for interactivity (maybe this
10910         should be a hook after all?).
10912         * app/filedlg.c (file_export_callback): Made export dialog add
10913         suffix when reopened.
10915         * app/export_png.c: Added dialog asking for export size.
10917 2002-02-09  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
10919         * lib/widgets.c: Fixed font reselection problem and first font
10920         bogus warning.
10922         * objects/UML/actor.c (actor_update_data): Changed to have
10923         connection points below text.
10925 2002-02-08  Akira TAGOH  <tagoh@redhat.com>
10927         * lib/text.c (text_split_line): use g_strndup() instead of g_malloc()
10928         and memcpy().
10930 2002-02-07  Akira TAGOH  <tagoh@redhat.com>
10932         * lib/font.c (font_get_suckfont): rewrited. generating suckfont from
10933         strings which is given.
10934         (suck_font): remove. it's any longer needed.
10936         * app/render_libart.c (set_font): don't get suckfont.
10937         (draw_string): get suckfont only which is needed for now.
10939 2002-02-05  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
10941         * lib/text.c: Fixes for misunderstood width functions.
10943 2002-02-05  Hans Breuer  <hans@breuer.org>
10945         * lib/dia_xml.c : use g_strconcat() instead of 
10946         malloc, strcpy, strcat dance
10947         * app/properties.c : same here and plug memory leak
10948         (gtk functions don't eat strings)
10950         * objects/UML/message.c : there is no g_sprintf()
10951         use g_strdup_printf() instead ...
10953 2002-02-05  Akira TAGOH  <tagoh@redhat.com>
10955         * lib/message.c (gtk_message_internal): doesn't need to convert to
10956         UTF-8.
10958         * app/render_libart.c (draw_string): fixed transaction for UTF-8
10959         support.
10960         (get_text_width): ditto.
10962         * app/Makefile.am (EXTRA_DIST):
10963         s/paginate_gdiprint.c/paginate_gdiprint.cpp/
10965         * app/render_gdk.c (gdk_freetype_copy_glyph): fixed build issue.
10966         This function needs ifdef HAVE_FREETYPE because don't use it for
10967         --disable-freetype
10969 2002-02-04  Cyrille Chepelov  <cyrille@chepelov.org>
10971         * NEWS: updated with the new dependencies.
10972         
10973         Patch from Matthieu Sozeau <mattam@netcourrier.com>:
10975         * objects/UML/class.h:
10976         * objects/UML/class.c:  
10977         * objects/UML/class_dialog.c: added code to handle the UMLParameterKind
10978         property using a GtkMenu. Options are Undefined, In, Out, In & Out
10980 2002-02-04  Lars Clausen  <lrclause@cs.uiuc.edu>
10982         * app/render_libart.c: Slow but working libart freetype renderer,
10983         with color!
10985 2002-02-03  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
10987         * app/render_gdk.c (draw_string): Fixed gc_function bug.
10989         * lib/widgets.c (dia_font_selector_init): Sorts the font list.
10991         * lib/font.c (freetype_render_string): 
10992         * lib/font.h:
10993         * app/render_gdk.c:
10994         * app/render_gdk.h: Changed freetype_render_string to use
10995         callback.  Rendering is broken.
10997 2002-02-03  Cyrille Chepelov  <cyrille@chepelov.org>
10999         Patch from Matthieu Sozeau <mattam@netcourrier.com>:
11001         * objects/UML/uml.h:    
11002         * objects/UML/uml.c: added UMLInheritanceType and isQuery
11003         (constant) UML Operation attributes. UMLInheritanceType is either
11004         UML_ABSTRACT or UML_POLYMORPHIC  or UML_LEAF.
11006         * objects/UML/class.h:
11007         * objects/UML/class.c:  
11008         * objetcs/UML/class_dialog.c: added code to handle new
11009         UMLOperation attributes via a GtkMenu and a checkbox.
11011 2002-02-03  Akira TAGOH  <tagoh@redhat.com>
11013         * app/disp_callbacks.c (ddisplay_realize): fixed XIM issue.
11014         several client doesn't work with previous codes.
11016 2002-02-01  Lars Clausen  <lrclause@cs.uiuc.edu>
11018         * lib/font.c (freetype_render_string): Kerning.  Very few fonts
11019         seem to use it.
11021 2002-02-02  Akira TAGOH  <tagoh@redhat.com>
11023         * app/disp_callbacks.c (ddisplay_canvas_events): fixed crashes,
11024         when doing the operation like invert the objects after active view is
11025         destroyed. when changes focus, it needs to set active_display.
11027         * app/layer_dialog.c (dia_layer_update_from_layer):
11028         (layer_dialog_edit_layer): need to convert to locale encoding
11029         if GTK_DOESNT_TALK_UTF8_WE_DO is defined.
11030         (edit_layer_ok_callback):
11031         need to convert to UTF8 if GTK_DOESNT_TALK_UTF8_WE_DO is defined.
11033         * lib/diagramdata.c (new_diagram_data): ditto.
11035         * app/layer_dialog.c (layer_dialog_new_callback): ditto.
11037         * lib/diagramdata.c (new_layer): use utfchar instead of char for
11038         argument.
11040         * lib/widgets.c: if HAVE_FREETYPE isn't defined, it can't build. fixed.
11041         (dia_font_selector_set_styles): when HAVE_FREETYPE is defined only,
11042         it's needed for now. also this function needs prototype declaration.
11044 2002-01-31  Lars Clausen  <lrclause@cs.uiuc.edu>
11046         * lib/widgets.c: Style now functional on font selector.  Some leak
11047         possible, but doesn't show up under stress test.
11049 2002-01-31  Akira TAGOH  <tagoh@redhat.com>
11051         * app/plugin-manager.c (clist_select_row): name and description needs to
11052         convert to locale encoding, when GTK_DOESNT_TALK_UTF8_WE_DO is defined.
11053         (get_plugin_manager): ditto.
11055         * lib/plug-ins.c (dia_plugin_info_init): name needs to convert to UTF-8.
11057         * app/diagram_tree.c (get_object_name): fixed transaction for UTF-8
11058         support.
11060         * lib/prop_text.c (stringprop_reset_widget): fixed crashes,
11061         when prop->string_data is NULL.
11063 2002-01-30  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
11065         * lib/widgets.c: 
11066         * lib/widgets.h: New font selector separating font and style.
11067         Style not functional yet.
11069 2002-01-30  Lars Clausen  <lrclause@cs.uiuc.edu>
11071         * lib/text.c: 
11072         * app/render_gdk.c (draw_string): More freetype support, now
11073         renders text.  Still broken is font selection and exporting.
11075 2002-01-30  Akira TAGOH  <tagoh@redhat.com>
11077         * objects/chronogram/chronoref.c (chronoref_create): missing gettextize
11078         for font.
11080         * objects/chronogram/chronoline.c (chronoline_create): ditto.
11082         * objects/UML/usecase.c (usecase_create): ditto.
11084         * objects/UML/state.c (state_create): ditto.
11086         * objects/UML/object.c (objet_create): ditto.
11088         * objects/UML/node.c (node_create): ditto.
11090         * objects/UML/message.c (message_create): ditto.
11092         * objects/UML/component.c (component_create): ditto.
11094         * objects/UML/classicon.c (classicon_create): ditto.
11096         * objects/UML/actor.c (actor_create): ditto.
11098         * objects/SADT/box.c (sadtbox_create): ditto.
11100         * objects/SADT/annotation.c (annotation_create): ditto.
11102         * objects/GRAFCET/transition.c (TRANSITION_FONT): ditto.
11104         * objects/GRAFCET/step.c (STEP_FONT):
11105         * (step_create): ditto.
11107         * objects/GRAFCET/condition.c (CONDITION_FONT): ditto.
11109         * objects/GRAFCET/action.c (ACTION_FONT):
11110         (action_create): ditto.
11112         * objects/FS/function.c (function_create): ditto.
11114         * objects/FS/flow.c (flow_create):
11115         (flow_load): 
11116         (flow_apply_defaults): ditto.
11118         * objects/FS/flow-poly.c (flow_create):
11119         (flow_load):
11120         (flow_apply_defaults): ditto.
11122         * objects/FS/flow-ortho.c (orthflow_create):
11123         (orthflow_load):
11124         (orthflow_apply_defaults): ditto.
11126         * objects/ER/relationship.c: use utfchar instead of char for structure.
11127         (relationship_create): name needs to convert to UTF-8.
11129         * objects/ER/attribute.c: use utfchar instead of char for structure.
11130         (attribute_create): name needs to convert to UTF-8.
11132         * objects/ER/entity.c: use utfchar instead of char for structure.
11133         (entity_create): name needs to convert to UTF-8.
11135         * app/interface.c (fill_sheet_wbox): needs to convert UTF-8 to locale
11136         encoding for tooltips, if GTK_TALKS_UTF8 isn't defined.
11137         (fill_sheet_menu): needs to convert UTF-8 to locale encoding for menu
11138         items. if GTK_TALKS_UTF8 isn't defined.
11140 2002-01-29  Akira TAGOH  <tagoh@redhat.com>
11142         * objects/UML/class.c (umlclass_calculate_data): fixed malloc size.
11143         it was my careless mistake...
11145         * lib/attributes.c (attributes_set_default_font): temporarily gettextize
11146         a font name, because there are strings which isn't shown by "Courier".
11147         We need to consider a way to feel free to choose a font at runtime.
11149         * lib/render_object.c (render_object_load): ditto.
11151         * lib/text.c (data_text): ditto.
11153         * objects/EML/instantiation.c (instantiation_create): ditto.
11155         * objects/EML/interaction-ortho.c (interaction_ortho_create):
11156         (interaction_ortho_load): ditto.
11158         * objects/EML/interaction.c (interaction_create):
11159         (interaction_load): ditto.
11161         * objects/EML/process.c (fill_in_fontdata): ditto.
11163         * objects/ER/attribute.c (attribute_create): 
11164         (attribute_load): ditto.
11166         * objects/ER/entity.c (entity_create): 
11167         (entity_load): ditto.
11169         * objects/ER/relationship.c (relationship_create): 
11170         (relationship_load): ditto.
11172         * objects/UML/association.c (association_create): 
11173         (association_load): ditto.
11175         * objects/UML/class.c (fill_in_fontdata): ditto.
11177         * objects/UML/constraint.c (constraint_create): ditto.
11179         * objects/UML/dependency.c (dependency_create): ditto.
11181         * objects/UML/generalization.c (generalization_create): ditto.
11183         * objects/UML/implements.c (implements_create): ditto.
11185         * objects/UML/large_package.c (largepackage_create): ditto.
11187         * objects/UML/note.c (note_create): ditto.
11189         * objects/UML/realizes.c (realizes_create): ditto.
11191         * objects/UML/small_package.c (smallpackage_create): ditto.
11193         * objects/custom/shape_info.h (FONT_DEFAULT): ditto.
11195         * objects/custom/custom_object.c (custom_create): ditto.
11197         * objects/network/antenna.c (render_to_store): ditto.
11199         * objects/network/computer.c (render_to_store): ditto.
11201         * objects/network/disc.c (render_to_store): ditto.
11203         * objects/network/flash.c (render_to_store): ditto.
11205         * objects/network/hub.c (render_to_store): ditto.
11207         * objects/network/modem.c (render_to_store): ditto.
11209         * objects/network/modularswitch.c (render_to_store): ditto.
11211         * objects/network/monitor.c (render_to_store): ditto.
11213         * objects/network/printer.c (render_to_store): ditto.
11215         * objects/network/rj45plug.c (render_to_store): ditto.
11217         * objects/network/scead-plug.c (render_to_store): ditto.
11219         * objects/standard/textobj.c (textobj_load): ditto.
11221         * objects/sybase/client.c (render_to_store): ditto.
11223         * objects/sybase/dataserver.c (render_to_store): ditto.
11225         * objects/sybase/ltm.c (render_to_store): ditto.
11227         * objects/sybase/repserver.c (render_to_store): ditto.
11229         * objects/sybase/rsm.c (render_to_store): ditto.
11231         * objects/sybase/stableq.c (render_to_store): ditto.
11233         * plug-ins/dxf/dxf-import.c (read_entity_text_dxf): ditto.
11235         * objects/UML/uml.h (UML_STEREOTYPE_START):
11236         (UML_STEREOTYPE_END): changes default strings.
11238 2002-01-28  Akira TAGOH  <tagoh@redhat.com>
11240         * objects/UML/stereotype.c (string_to_bracketted): fixed transaction
11241         for UTF-8 support. if GTK+ and Dia don't handle UTF-8, all of characters
11242         which is given to arguments isn't UTF-8. so don't need to convert it.
11243         if GTK+ handle UTF-8, also don't need to convert it.
11244         (strend): remove.
11245         (bracketted_to_string): fixed transaction for UTF-8 support.
11246         also start/end bracket is not necessarily 1 character. so that when use
11247         strend(), it doesn't work correctly.
11248         (string_to_stereotype): use utfchar instead of char.
11249         (remove_stereotype_from_string): ditto.
11250         (stereotype_to_string): ditto.
11252         * objects/UML/stereotype.h: ditto.
11254         * objects/UML/message.c: use utfchar instead of char for structure.
11255         (MESSAGE_CREATE_LABEL, MESSAGE_DESTROY_LABEL): remove.
11257         * objects/UML/small_package.c: use utfchar instead of char for structure.
11259         * objects/UML/realizes.c: ditto.
11261         * objects/UML/object.c: ditto.
11263         * objects/UML/large_package.c: ditto.
11265         * objects/UML/implements.c: ditto.
11267         * objects/UML/generalization.c: ditto.
11269         * objects/UML/dependency.c: ditto.
11271         * objects/UML/constraint.c: ditto.
11273         * objects/UML/component.c: ditto.
11275         * objects/UML/class_dialog.c (attributes_get_current_values):
11276         (attributes_list_new_callback, attributes_fill_in_dialog):
11277         (parameters_set_values, parameters_get_values):
11278         (parameters_get_current_values, parameters_list_new_callback):
11279         (operations_set_values, operations_get_values):
11280         (operations_get_current_values, operations_list_new_callback):
11281         (operations_fill_in_dialog, templates_set_values):
11282         (templates_get_values, templates_get_current_values):
11283         (templates_list_new_callback, templates_fill_in_dialog):
11284         fixed transaction for UTF-8 support.
11286 2002-01-27  Akira TAGOH  <tagoh@redhat.com>
11288         * objects/UML/message.c (message_draw): fixed transaction for UTF-8 support.
11290         * objects/UML/class_dialog.c (class_read_from_dialog):
11291         (class_fill_in_dialog):
11292         (attributes_get_values): ditto.
11294         * objects/UML/actor.c (actor_create): ditto.
11296         * objects/UML/class.c (umlclass_calculate_data): ditto.
11298         * objects/UML/association.c (association_apply_properties):
11299         (fill_in_dialog): ditto.
11301         * objects/UML/uml.c (uml_get_attribute_string):
11302         (uml_get_operation_string):
11303         (uml_get_parameter_string):
11304         (uml_get_formalparameter_string): use utfchar instead of char.
11306         * objects/UML/uml.h: gettextize UML_STEREOTYPE_START and
11307         UML_STEREOTYPE_END.
11309         * objects/UML/class.h: use utfchar instead of char.
11311         * lib/dia_xml.c (data_add_string): ditto.
11313         * lib/text.c (text_insert_char): fixed characters# calculation
11314         when includes multibytes character in strings.
11316 2002-01-26  Steffen Macke  <sdteffen@yahoo.com>
11318         Patch from Richard Rowell <rwrowell@bellsouth.net>:
11320         * app/lineprops_area.c:
11321         * lib/arrows.h:
11322         * lib/arrows.c: 
11323         * lib/widgets.c: added crow foot arrow and cross arrow
11324         
11325         Patch from Frank Gevaerts <frank.gevaerts@fks.be>:
11326         
11327         * plug-ins/svg/render_svg.c: fixed arcs, fill and text alignment
11329 2002-01-26  Cyrille Chepelov  <cyrille@chepelov.org>
11331         * po/update.pl (REMOVED):
11332         * po/update.sh (REMOVED):
11333         * xml-i18n-merge.in.kg (REMOVED):
11334         * xml-i18n-update.in.kg (REMOVED):
11335         * sheets/Makefile.am:
11336         * Makefile.am:
11337         * autogen.sh:
11338         * configure.in: converted from xml-i18n-tools to intltools
11340         This looks like it fixes the build bugs of the snapshot tarballs, 
11341         and it supersedes #69611.       
11343 2002-01-25  Akira TAGOH  <tagoh@redhat.com>
11345         * lib/text.c (text_insert_char): fixed characters# calculation.
11346         it's not string length.
11348         * lib/plug-ins.c (dia_plugin_info_init): when GTK_DOESNT_TALK_UTF8_WE_DO
11349         is defined, needs to convert a description to UTF-8.
11351         * app/render_gdk.c (get_text_width): fixed transaction for
11352         UTF-8 support. also should uses gdk_text_width_wc() instead
11353         of gdk_text_width().
11355         * app/render_gdk.c (draw_string): when GTK_DOESNT_TALK_UTF8_WE_DO
11356         is defined, needs to convert to locale encoding for display.
11357         Also use utfchar instead of char for argument.
11359 2002-01-24  Hans Breuer  <hans@breuer.org>
11361         * app/commands.c(edit_paste_callback and more) : 
11362         call diagram_modified(ddisp->diagram) to fix #68083
11363         (help_menu_callback) : plug a DIR leak
11365         * app/disp_callbacks.c(ddisplay_canvas_events) : handle 
11366         GTK_TALKS_UTF8_WE_DONT
11368         * app/render_gdk.c(get_text_with) : it's a bad idea to use
11369         gdk_string_with() when GTK_TALKS_UTF8_WE_DONT instead of
11370         gdk_text_width(). The length value is still questionable ...
11372         * lib/charconv.c : use functions already available in early
11373         GLIB-1.3 days whiches API hasn't changed since, to avoid
11374         version problems with the win32 build
11376         * lib/font.c : finally fix #58045 and #68208
11378         * lib/dia_xml.c (xmlDiaSaveFile) : gzdopen in binary mode
11380 2002-01-24  Akira TAGOH  <tagoh@redhat.com>
11382         * app/disp_callbacks.c (ddisplay_canvas_events): when event returned
11383         no strings, fixed transaction.
11385         * lib/charconv.h: fixed typo.
11387         * app/menus.c: fixed typo.
11389         * lib/charconv.c (charconv_utf8_strchr): remove. use uni_strchr instead.
11391         * objects/UML/object.c: attrib's type uses utfchar instead of char.
11393         * app/disp_callbacks.c (ddisplay_canvas_events): forget g_free()
11395         * lib/text.c (text_create_change): use unichar instead of char.
11397         * lib/text.c (data_add_text, data_text, apply_textstr_properties):
11398         use utfchar instead of char.
11400         * lib/text.c (text_insert_char, text_key_event): fixed transaction for
11401         UTF-8 support.
11403         * lib/charconv.c (charconv_utf8_get_char): add new function.
11405 2002-01-23  Akira TAGOH  <tagoh@redhat.com>
11407         * lib/text.c (text_delete_forward, text_delete_backward,
11408         text_split_line): fixed transaction for UTF-8 support.
11410         * lib/text.c (text_copy): when UNICODE_WORK_IN_PROGRESS is defined,
11411         strlen[] has string length for UTF-8, so has to use alloclen[].
11413         * dia.pot: remove.
11415         * .cvsignore: add dia.pot.
11417 2002-01-24  Stanislav Visnovsky  <visnovsky@nenya.ms.mff.cuni.cz>
11419         * configure.in: Added "sk" to ALL_LINGUAS.
11421 2002-01-22  Akira TAGOH  <tagoh@redhat.com>
11423         * lib/text.c (text_set_string, new_text, text_copy,
11424         text_get_string_copy, text_join_lines): use utfchar instead of gchar
11425         for strings.
11427         * lib/text.c (set_string): use charconv_utf8_strchr() instead of
11428         strchr().
11430         * lib/charconv.c (charconv_utf8_strchr): add new function.
11432         * lib/charconv.c (charconv_keyval_to_unicode): ditto.
11434         * lib/charconv.c (charconv_utf8_from_gtk_event_key): ditto.
11436         * app/disp_callbacks.c (ddisplay_canvas_events): needs to convert
11437         strings to the appropriate encoding.
11439 2002-01-22  Lars Clausen  <lrclause@cs.uiuc.edu>
11441         * app/object_ops.c (object_list_align_[hv]): Leak fix.
11443         * lib/Makefile.am (INCLUDES): Added debug flags.
11445         * app/object_ops.c: Fixed ordering problem of align equi-distant &
11446         adjacent. 
11448 2002-01-21  Akira TAGOH  <tagoh@redhat.com>
11450         * lib/font.c (font_string_width): use gdk_text_width_wc() instead of
11451         gdk_string_width().
11453         * objects/GRAFCET/boolequation.c: fixed invalid comment.
11455         * objects/UML/stereotype.c (string_to_bracketted): fixed build problem
11456         when defined UNICODE_WORK_IN_PROGRESS.
11458         * lib/dia_xml.c (data_add_string): fixed typo.
11460 2002-01-20  Akira TAGOH  <tagoh@redhat.com>
11462         * configure.in: fixed test gtk_advancement.
11464 2002-01-019  Steffen Macke  <sdteffen@yahoo.com>
11466         * plug-ins/svg/render_svg.c: fix for #69053, alignment of text
11467         exported to SVG
11469         Patch from M.C. Nelson <mcn@mani.kobayashimaru.org>: 
11471         * app/recent_files.[ch]: reworked to support GNOME, accelerators,
11472         tool tips, preferences, and arbitrarily long ~/.dia/history
11474         * app/menus.c: made 'Plugins' consistantly spelled and accelerated;
11475         removed 'Open Recent'; added new separators for recent documents on
11476         File menu.
11478         * app/interface.[ch] (interface_get_toolbox_shell): new function
11480         * app/diagram.c: added new parameter to recent_file_history_add() call
11482         * app/preferences.[ch]: added new 'Recent documents list size'
11483         preferences item
11484         
11485 2002-01-18  Akira TAGOH  <tagoh@redhat.com>
11487         * lib/font.c (font_get_gdkfont_helper): use gdk_fontset_load ().
11488         if it failed, should be used gdk_font_load ().
11490         * lib/font.c (font_data): added the font entries for CJK.
11492 2002-01-17  Steffen Macke  <sdteffen@yahoo.com>
11494         Patch from M.C. Nelson <mcn@mani.kobayashimaru.org>:
11496         * app/menus.c: replaced GDK_F1 with "F1" to fix segfault on startup
11497         
11498 2002-01-04  Cyrille Chepelov  <cyrille@chepelov.org>
11500         Patch from Martin Cracauer <cracauer@cons.org>:
11501         
11502         * app/menus.c: add missing #include <gdk/gdkkeysyms.h> (useful in the
11503         non-GNOME case ?)
11505 2002-01-01  Hans Breuer  <hans@breuer.org>
11507         * app/command.c : optional use GDI printing on windoze
11509         * app/preferences.[hc] : add option 'prefer_psprint' to 
11510         select the print engine to use (could be used for Dia/Gnome
11511         as well)
11513         * app/paginate_gdiprint.(h|cpp) : new files, which interlink the
11514         wmf plug-in with the common win32 print api. Now printing
11515         should work almost as expected from a windows program :-)
11517         * app/diagram.c app/menus.[hc] : rename _UpdatableMenuItems.delete
11518         to .edit_delete to avoid clashes with C++
11520         * app/makefile.msc : updated for GDI printing
11522         * plug-ins/wmf/wmf.cpp : some small modifications to support
11523         GDI printing. Also swap R and B channel in draw_image()
11525         * app/makefile.am : added windows only files to EXTRA_DIST
11527         * objects/uml/class.c(umlclass_set_props) : force recalculation
11528         when applying properties
11530         * lib/charconv.c lib/dia_xml.c : temporary back-ported to
11531         glib-1.3.2 (for win32) IMHO causes recent cvs introduces too
11532         many incompatible changes (and would force a gtk update)
11534         * objects/makefile.msc : don't build C-Objects which are
11535         already available as 'pure shape'
11537         * plug-ins/makefile.msc : remove diaimport from build. It was
11538         only available via mailing-list and is broken since the
11539         StdProp overhaul.
11542         Patch from Jose A Ortega Ruiz  <jaortega@acm.org>
11544         * app/preferences.[hc] : tweaked preferences.c to make 
11545         PREF_STRING work. Use it for 'diagram_tree_hidden'. Also
11546         added some more DiagramTree prefererences and their own
11547         notebook page.
11549         * app/diagram_tree.[hc] : allow to sort by object type or name
11550         and hide by type ...
11551         * app/diagram_tree_menu.[hc] : ... add respective menu entries ...
11552         * app/diagram_tree_menu_callbacks.[hc] : ... and callbacks.
11554         * app/diagram_tree_window.c : handle hidden types and window
11555         size restoring.
11557 2001-12-20  Hans Breuer  <hans@breuer.org>
11559         * plug-ins/python/Makefile.am : patch from Peter Moulder 
11560         <pmoulder@csse.monash.edu.au> to make the python plug-in
11561         compile on *nix too.
11563 2001-12-03  Cyrille Chepelov  <chepelov@calixo.net>
11565         Patch from Alan <horkana@tcd.ie>:
11567         * app/menus.c: bind the F1 shortcut to the Help/_Manual function.
11569 2001-11-20  Hans Breuer  <hans@breuer.org>
11571         * app/makefile.msc : add new diagram_tree_menu(_callbacks).obj
11573 2001-11-18  Jose A Ortega Ruiz  <jaortega@acm.org>
11575         * app/diagram_tree.[hc] : Added new functions and types for
11576         sorting diagram and objects, and attaching the popup menus.
11578         * app/preferences.h: Added more diagram tree preferences, using a
11579         DiagramTreeConfig struct in DiaPreferences. The new prefs are the
11580         height and width of the diagram tree window and the default sort
11581         orders for diagrams and objects.
11583         * app/preferences.c (prefs_data): Added new entries for the new
11584         diagram tree preferences.
11586         * app/preferences.c (prefs_tabs): New tab for diagram tree
11587         preferences.
11589         * app/diagram_tree_window.[hc] (create_diagram_tree_window): 
11590         * app/diagram_tree_window.c (diagram_tree_window_new): 
11591         * app/interface.c (create_tree_window): The diagram tree window is
11592         initialised using the DiagramTreeConfig part of prefs.
11595 2001-11-14  Jose A Ortega Ruiz  <jaortega@acm.org>
11597         * app/diagram_tree_menu.[hc]: New files. Functions to create the
11598         diagram tree popup menus.
11600         * app/diagram_tree_menu_callbacks.[hc]: New files. Callbacks for
11601         the diagram tree popup menus.
11603         * app/Makefile.am (dia_core_files): diagram_tree_menu* files
11604         added.
11606 2001-11-13  Jose A Ortega Ruiz  <jaortega@acm.org>
11608         * app/diagram_tree.c (double_click_callback, diagram_tree_new):
11609         double-clicking a diagram tree node raises the diagram window
11610         to the foreground (and, if a object node was clicked, selects the
11611         object in the diagram).
11613         * app/diagram_tree.c (select_tree_widget): selecting an object
11614         node with single click simply updates it (no raise).
11616 2001-11-08  Jose A Ortega Ruiz  <jaortega@acm.org>
11617         These changes make the diagram tree lazy: it is not created unless
11618         the diagram tree window is requested.
11619         
11620         * app/diagram_tree_window.[hc] (create_diagram_tree_window): new
11621         function for creating the tree window.
11623         * app/interface.c (create_tree_window): call
11624         create_diagram_tree_window() instead of diagram_window().
11626         * app/diagram_tree.c (diagram_tree_add, diagram_tree_remove) 
11627         (diagram_tree_update, diagram_tree_update_name) 
11628         (diagram_tree_add_object, diagram_tree_add_objects) 
11629         (diagram_tree_remove_object, diagram_tree_remove_objects) 
11630         (diagram_tree_update_object): accept a NULL tree as a nominal
11631         argument (and do nothing in this case!), so that the diagram tree
11632         is not initialised if not used.
11634         * app/diagram_tree_window.c (diagram_tree): do not create the
11635         diagram tree until diagram_window() or diagtree_show_callback()
11636         are invoked.
11638 2001-10-31  Jose A Ortega Ruiz  <jaortega@acm.org>
11639         [slightly modified and applied from Hans Breuer <hans@breuer.org>]
11641         * app/diagram_tree_window.[hc] : (new files) implementation of 
11642         the diagram tree window, a container for a diagram tree. [Removed
11643         the horizontal scroll bar glitch by disableing it]
11645         * app/diagram_tree.[hc] : (new files) implementation of the 
11646         diagram tree widget. [Don't rely on the layers GPtrArray to be
11647         NULL terminated, but use its ->len field] 
11649         * app/Makefile.am (dia_core_files): added new files
11650         diagram_tree.[hc] and diagram_tree_window.[hc]
11652         * app/interface.[hc] : (create_tree_window): this function 
11653         creates the new diagram tree window widget
11655         * app/undo.c (delete_objects_apply) (delete_objects_revert) 
11656         (insert_objects_apply) (insert_objects_revert) (group_objects_apply) 
11657         (ungroup_objects_apply) (ungroup_objects_revert): 
11658         every time that an undoable command modifies a diagram 
11659         adding/removing/(un)grouping objects, a diagram_tree_something() is 
11660         invoked to keep the diagram tree window in sync
11662         * app/properties.c (properties_apply): call to
11663         diagram_object_modified(), which updates the diagram tree window
11664         when the properties of an object are modified
11666         * app/preferences.[hc] : new "show_diagram_tree" configuration option 
11667         (whether the diagram tree window should be shown on dia startup)
11669         * app/menus.c : added '<Toolbox>/File/Diagram Tree' entry
11671         * app/diagram.h (diagram_object_modified): callback notifying of a
11672         diagram object modification
11674         * app/diagram.c (diagram_load_into): added call to
11675         diagram_tree_add() to add newly loaded diagrams to the diagram
11676         tree window
11677         (diagram_destroy): call to diagram_tree_remove() to remove a
11678         destroyed diagram from the diagram tree window
11679         (diagram_add_object): call to diagram_tree_add_object() to add an
11680         object to the diagram tree window
11681         (diagram_add_object_list): as above, but with an object list
11682         (diagram_selected_break_external): deletion of objects from the
11683         diagram is detected here, and diagram_tree_remove_object() is
11684         invoked to remove the object from the diagram tree window (it
11685         would be nice to have a diagram_remove_object() in the Diagram
11686         interface)
11687         (diagram_set_filename): update the diagram tree window when a
11688         diagram's filename changes
11690         * app/commands.c (file_new_callback): added call to
11691         diagram_tree_add() to add newly created diagrams to the diagram
11692         tree window
11694         * app/app_procs.c (app_init): added call to create_tree_window()
11696         * app/makefile.msc : updated
11698 2001-10-28  Hans Breuer  <hans@breuer.org>
11700         * app/preferences.h (DiaPreferences): 
11701         * app/preferences.c (prefs_data): new "show_diagram_tree"
11702         configuration option (whether the diagram tree window should be
11703         shown on dia startup)
11705         * app/menus.c: added the new "<Toolbox>/View/Diagram tree" menu
11706         entry (both for GNOME and gtk)
11708         * app/diagram.h (diagram_object_modified): callback notifying of a
11709         diagram object modification
11711         * app/diagram.c (diagram_load_into): added call to
11712         diagram_tree_add() to add newly loaded diagrams to the diagram
11713         tree window
11714         (diagram_destroy): call to diagram_tree_remove() to remove a
11715         destroyed diagram from the diagram tree window
11716         (diagram_add_object): call to diagram_tree_add_object() to add an
11717         object to the diagram tree window
11718         (diagram_add_object_list): as above, but with an object list
11719         (diagram_selected_break_external): deletion of objects from the
11720         diagram is detected here, and diagram_tree_remove_object() is
11721         invoked to remove the object from the diagram tree window (it
11722         would be nice to have a diagram_remove_object() in the Diagram
11723         interface)
11724         (diagram_set_filename): update the diagram tree window when a
11725         diagram's filename changes
11727         * app/commands.c (file_new_callback): added call to
11728         diagram_tree_add() to add newly created diagrams to the diagram
11729         tree window
11731         * app/app_procs.c (app_init): added call to create_tree_window()
11733 2001-10-28  Hans Breuer  <hans@breuer.org>
11735         * plug-ins/python/pydia-property.c : apparently I missed
11736         to commit this last time. Now it has some more SetAttr
11737         support (apply from property)
11739         * plug-ins/python/pydia-properties.h : added PyDiaProperty_Check
11741         * plug-ins/python/pydia-text.[ch] : new files
11743 2001-10-14  Hans Breuer  <hans@breuer.org>
11745         * lib/charconv.c : g_locale_to_utf8() does not handle NULL
11746         strings. Use g_strdup() for these.
11748         libxml2 does not produce 'any extra indentation when saving a tree'
11749         [libxml2-2.4.2/doc/upgrade.html] anymore, which was the default with
11750         libxml(1). To get human readable XML some extra tweaking is required.
11751         It is enabled by setting 'pretty_formated_xml' to 'true' in 'diarc'.
11752         * lib/dia_xml.[hc] : provide and use 'DIAVAR pretty_formated_xml'
11753         * app/preferences.[ch] : initialize 'pretty_formated_xml'
11755         * lib/libdia.def : updated externals
11757         * lib/properties.h : add prototype for prop_list_from_single ()
11759         * plug-ins/makefile.msc : build metapost plug-in
11761         * plug-ins/metapost/render_metapost.c : msvc does not like
11762         switch labels without operation 'default: }'. Added a noop.
11764         * plug-ins/python/pydia-text.[hc] : (new files) wrap DiaText
11765         * plug-ins/python/diamodule.c : added PyDiaText 
11766         * plug-ins/python/makefile.msc : dito. Also added LIBXML_CFLAGS.
11767         Although the python plug-in does not use libxml at all, the
11768         headers are required to use the lib/prop*.h headers
11770         * plug-ins/python/pydia-diagramdata.c : added wrappers for
11771         update_extents and get_sorted_selected (should I duplicate
11772         more functions from PyDiaDiagram or should they be moved?)
11774         * plug-ins/python/pydia-properties.c : allow to set (some) properties
11775         through the dictionary api
11776         * plug-ins/python/pydia-property.h : declare PyDiaProperty_ApplyToObject
11777         * plug-ins/python/pydia-property.c : implement it (currently only
11778         string properties can be set)
11780         Reimplement PyDiaProperty_GetAttr by means of the new StdProp api.
11781         Quoting myself: 'Still not convinced that this is better than an 
11782          integral property->type and some casting ...
11783          It is trading a straightforward 40 lines switch statement to
11784          this nice 'type safe' function mapping (about 125 lines)'
11785         (But now it works again, better than changing the News file :)
11786         
11787 2001-10-14  Cyrille Chepelov  <chepelov@calixo.net>
11789         patch from <robert.young@dsto.defence.gov.au>: 
11790         * objects/UML/component.c: remember to set font in UML component
11791         object (fixes #62132)   
11793 2001-10-02  Lars Clausen  <lrclause@cs.uiuc.edu>
11795         * plug-ins/metapost/metapost.c: 
11796         * plug-ins/metapost/Makefile.am:
11797         * plug-ins/metapost/render_metapost.c:
11798         * plug-ins/metapost/render_metapost.h:
11799         Metapost renderer from Chris Sperandio
11801 2001-09-14  Hans Breuer  <hans@breuer.org>
11803         * app/render_gdk.c : reflect the fact, that GTK already talks
11804         UTF8 on win32, fixes #59982, #56100, (#55992 ?) ...
11806         * lib/font.c : 
11807         * app/render_libart.c : trying to fix #58045 but it appears
11808         to be an Gdk/win32, too. 
11810         * lib/charconv.c : handle utf8 conversion with the help of
11811         glib-1.3 even in the !HAVE_UNICODE case.
11813         * lib/dia_xml.c : reduce complaing about missing encoding, by
11814         detecting if the default (utf8) would break the file.
11816 2001-09-13  Cyrille Chepelov  <chepelov@calixo.net>
11818         * lib/charconv.c: (get_local_charset): at least please try to not 
11819         silently change the logic, while avoiding crashes. 
11821         * lib/font.c: (suck_font): put a #error, we have a nasty something
11822         to fix there before we switch to Gtk 2.0.
11823         
11824 2001-09-09  Hans Breuer  <hans@breuer.org>
11826         * **/makefile.mingw : Approach to compile Dia with mingw.
11827         Compiling mostly works but running does not (yet) ... 
11829         * lib/geometry.h : 
11830         - use G_OS_WIN32 instead of _MSC_VER to drag in isinf, etc. definitions. 
11831           Apparently mingw needs it too.
11832         - enable 'normalization' of a null verctor. Otherwise the beziergon
11833           bounding box calculation would be broken at least with msvc. What's
11834           the mathematical correct result of 0.0/0.0 ?
11836         * lib/dia_xml.c : isinf() for mingw too.
11838         * lib/dia_dirs.c : use MAX_PATH instead of _MAX_PATH (works for mingw 
11839         and msvc)
11841         * lib/charconv.c : still crashes if strcmp(NULL, "UTF-8"). 
11842         Please don't do it.
11844         * lib/font.c : Trying to reflect that GTK_TALKS_UTF8_WE_DONT
11846         * lib/libdia.def : updated externals. Apparently mingw needs
11847         them to produce the right mangling.
11849         * plug-ins/shape/shape-exports.c : get prototypes for xmlStrdup
11850         and xmlDiaSaveFile
11852 2001-09-08  Wang Jian  <lark@linux.net.cn>
11854         * configure.in(ALL_LINGUAS): Renamed zh_CN.GB2312 to zh_CN
11856 2001-09-07  Cyrille Chepelov  <chepelov@calixo.net>
11858         * lib/dia_xml_libxml.h:
11859         * lib/dia_xml.c: (data_add_string), (xmlDiaSaveFile): Duplicated
11860         libxml1's code, to rework the output file before it gets committed
11861         to disk. This is rubbish, and will be removed when libxml2
11862         switches from discouraged to mandatory. 
11863         All in all, this fixes #60152. 
11864         
11865         * lib/charconv.h: 
11866         * lib/charconv.c: (charconv_unichar_to_utf8):
11867         made the type of the input parameter explicitly an unsigned long.
11869         * configure.in: Added a check for libz (we must now include it
11870         explicitly, for xmlDiaSaveFile).
11871         
11872         * app/load_save.c: (diagram_data_save):
11873         * lib/plug-ins.c: (ensure_pluginrc), (info_fill_from_pluginrc),
11874         (dia_pluginrc_write):
11875         * plug-ins/shape/shape-export.c: (new_shape_renderer),
11876         (end_render), (draw_string):
11877         * plug-ins/svg/render_svg.c: (new_svg_renderer), (end_render),
11878         (draw_string):
11880         Made sure we always write UTF-8 XML files, and through
11881         xmlDiaSaveFile().
11883         * NEWS: documented that fact.
11884         
11885 2001-09-07  James Henstridge  <james@daa.com.au>
11887         * configure.in (found_libxml): refactor the check for libxml a
11888         little so that it handles finding both libxml1 and 2 better.
11890 2001-09-03  Cyrille Chepelov  <chepelov@calixo.net>
11892         * app/app_procs.c: removed a spurious } which caused a compilation
11893         error in the (!HAVE_GNOME && HAVE_POPT_H) case
11895         * lib/charconv.c: (get_local_charset): some versions of iconv(1)
11896         don't know what ANSI X3.4-1968 is. I didn't know until this day,
11897         but it's just plain old ASCII. Added a check to shield the poor
11898         XML library.
11900         Patches from <robert.young@dsto.defence.gov.au>:
11902         * lib/text.c: (text_calc_boundingbox) Bounding box now calculates the
11903         width and height of text before calculating bounds. Fixes #59928
11905         * app/preferences.c: Moved grid related items into Grid Tab.
11906         
11907 2001-09-02  Cyrille Chepelov  <chepelov@calixo.net>
11909         * app/interface.c: (create_zoom_widget): connected one more signal
11910         to the Zoom selector combo's list. Fixes #59879.
11912         * app/app_procs.[ch]: (app_init) (do_convert)
11913         (build_output_file_name): brought back into the main executable
11914         the rare useful bits of the ill-fated diaconv. This means we have
11915         one new feature : --export-to-format (-t), which should make
11916         writing conversion scripts easier, and a crude implementation of
11917         -t and -e for the poptless argument parsing, which means the Win32
11918         port should be able to take advantage of it (that should make
11919         resolving #58197 possible).
11921         * app/diaconv.c: kept the poor duck compiling (but that's about
11922         it).
11924         * plug-ins/svg/render_svg.c: updated the SVG DTD header (I hope
11925         I've got it right).
11927         * NEWS: updated about the new feature above, and documented the 
11928         "missing encoding specification" complaint. 
11929         
11930 2001-09-01  Abel Cheung  <maddog@linux.org.hk>
11932         * configure.in: Rename zh_TW.Big5 -> zh_TW in ALL_LINGUAS.
11934 2001-09-01  Cyrille Chepelov  <chepelov@calixo.net>
11936         * objects/standard/bezier.c: used g_new0 instead of g_new, to take
11937         care of #59837.
11939 2001-09-01  James Henstridge  <james@daa.com.au>
11941         * */Makefile.am: various changes to include missing files, and fix
11942         sheets dir to handle building with builddir != srcdir.
11944         * autogen.sh: unconditionally pass the --enable-maintainer-mode
11945         and --enable-db2html flags so that builds from CVS work correctly.
11947         * configure.in: increment version number.  Also add an
11948         --enable-db2html flag.  Without the flag, db2html won't be run (if
11949         the flag is passed and db2html is not present, do nothing).
11951 2001-08-30  Cyrille Chepelov  <chepelov@calixo.net>
11953         * lib/poly_conn.c: (polyconn_copy): it's a wonder this routine
11954         even compiled. It's really too bad there is no lint tool easily
11955         available (or a more cautious, pedandic, paranoid and verbose
11956         compiler). Anyway, this fixes #59662. (this didn't affect 0.88.x)
11958 2001-08-27  Cyrille Chepelov  <chepelov@calixo.net>
11960         * app/load_save.c:
11961         * dia/lib/plug-ins.c: use g_strdup() instead of strdup(). Patch
11962         from <robert.young@dsto.defence.gov.au>. Fixes #59591.
11964         * app/menu.c: added ellipsis(...) to diagram properties menu item.
11965         * app/dia-props.c: diagram properties dialog contents did not
11966         represent current diagram settings.
11967         * app/dia-props.[ch]:
11968         * app/display.c: diagram properties contents now follows currently
11969         selected diagram.
11970         Patch also from <robert.young@dsto.defence.gov.au>, fixes #59409.
11972         * AUTHORS: added Robert Young.
11973         
11974 2001-08-27  Cyrille Chepelov  <chepelov@calixo.net>
11976         * app/modify_tool.c: (modify_button_release): Patch from
11977         <robert.young@dsto.defence.gov.au>. Fixes the remaining bit from
11978         #59090: if selection dragging was released outside of the window, 
11979         artifacts of the selection box remained.
11981 2001-08-25  Cyrille Chepelov  <chepelov@calixo.net>
11983         * Objects/custom/shape_info.c: added missing #include <xmlmemory.h>
11985 2001-08-19  Cyrille Chepelov  <chepelov@calixo.net>
11987         * configure.in:
11988         * sheets/Makefile.am: prepared the terrain for the Version of
11989         xml-i18n-tools Which Comes After 0.9 (and which will feature at
11990         last a sane behaviour with XML files). Some reasonible delay
11991         before enforcing that version *will* be given.
11993         * xml-i18n-merge.in.kg: included the current CVS xml-i18n-merge.in
11994         
11995         * lib/plug-ins.c: <xmlmemory.h> defines xmlFree(), otherwise it
11996         becomes a nonexistent symbol.
11997         
11998 2001-08-18  Hans Breuer  <hans@breuer.org>
12000         * app/app_procs.c : made it compile without ENABLE_NLS
12002         * app/diap_callbacks.c : strcmp isn't guaranteed to work
12003         with NULL pointers
12005         * app/load_save.c :
12006         * lib/plug-ins.c : 
12007         * objects/custom/shape_info.c : avoid mixing allocators and dealocators. 
12008         It has to be :
12009                 xmlGetProp, ... -> xmlFree
12010                 malloc, strdup -> free
12011                 g_new, g_malloc, g_strdup - > g_free
12013         * app/win32print.c : some more error checking, still not
12014         working on Win9x
12016         * lib/charconv.c : get_local_charset is used even with !HAVE_UNICODE
12018         * lib/dia_xml.c : msvc still has no unistd.h
12020         * lib/dia_xml.c :
12021         * lib/sheets.c : temporary resolved libxml include brokeness
12023         * plug-ins/python/pydia-*.c : reflect Font and StdProp api
12024         changes. Compiles again, but doesn't do anything useful anymore.
12025         (see THE_PROP_TYPE_IS_INTEGRAL)
12027         * **/makefile.msc : updated to use LIBXML2
12029         * lib/libdia.def : reflect api changes
12031 2001-08-17  Cyrille Chepelov  <chepelov@calixo.net>
12033         * config.h.win32: added defines telling that gtk speaks UTF8.
12034         Hans, I believe this reflects what GTK on Win32 does.
12036         * app/app_procs.c: if GTK talks UTF8, we'll feed it UTF8 localised
12037         strings.        
12038         * lib/prop_inttypes.c: 
12039         * lib/prop_text.c:
12040         * lib/prop_widgets.c: fixed typos in the GTK_TALKS_UTF8_WE_DONT
12041         code path.
12042         
12043         * lib/plug-ins.c: (dia_register_plugins_in_dir): If there is a
12044         trailing // (or whatever (G_DIR_SEPARATOR * 2) is), a recursive
12045         search for plug-ins is done.
12046         * app/Makefile.am: made app/run_dia.sh use the // capability. No
12047         need to update this anymore if we get a new plug-in library (or
12048         remove one).
12050         * lib/dia_xml.c: #include <unistd.h> was missing.
12051         
12052         * lib/properties.h: 
12053         * lib/proplist.c: (pdtpp_defaults): Added a new flag,
12054         PROP_FLAG_NO_DEFAULTS. Will be used in the "automatic defaults"
12055         support.        
12057 2001-08-16  Cyrille Chepelov  <chepelov@calixo.net>
12059         * sheets/civil.sheet: removed duplicate "Danish" entries.
12061         * autogen.sh:
12062         * configure.in: 
12063         * .cvsignore:
12064         * sheets/Makefile.am: 
12065         * po/POTFILES.in:
12066         * Makefile.am: applied the xml-i18n-tools README's instructions.
12068         * po/(da de fr hu nl nn no sl).po: merged the translations from
12069         the sheet files into the .po files. I hope I haven't mixed
12070         languages...
12071         * sheets/*.sheet (REMOVED):
12072         * sheets/*.sheet.in (NEW): moved the sheet files sans
12073         translations into .sheet.in files. 
12074         
12075         * sheets/xml-i18n-unicodify: (NEW) included from xml-i18n-tools,
12076         because we don't yet want to force all translators to work using
12077         UTF-8 editors. We'll want to do that sometime (sooner rather than
12078         later). Okay, I sing a slightly different tune in po/ChangeLog...
12080         * dia.desktop (REMOVED):
12081         * dia.desktop.in (NEW): used also the x18t infrastructure for
12082         this too.
12084         * xml-i18n-update.in.kg (NEW): This one will stay in CVS until an
12085         "official" version of x18t with support for .sheet files is available.
12086         * xml-i18n-merge.in.kg (NEW): This one will stay in CVS until an
12087         "official" version of x18t which doesn't corrupt UTF-8 data in XML
12088         is available.
12089         
12090         ** yes, we are now using xml-i18n-tools to manage the sheet
12091         translations. For the Win32 build, Nemo stores snapshots of
12092         translated strings next to the CVS snapshots. **
12094         * sheets/checktrans.py: suddenly, some sheets have lots of
12095         translations (objects which existed before sheets, mostly).
12096         Adapted the formatting.
12098         * po/README (REMOVED): this is obsolete ! It was ignored, anyway.
12100         * app/display.[ch]: (ddisplay_autoscroll), (ddisplay_scroll):
12101         * app/modify_tool.[ch]: (modify_motion): A (modified) patch from
12102         <robert.young@dsto.defence.gov.au>, to fix #59090.
12104         * app/display.c: (ddisplay_scroll): While at it, added some
12105         margin, so that autoscrolling can happen within a margin outside
12106         the diagram's extents.
12108         * app/tool.[ch]: 
12109         * app/interface.c:
12110         * app/disp_callbacks.c: Robert "forced" me to go when I usually
12111         don't, namely the app/ directory. So while I was there, I
12112         scratched a long-time itch. If no object has focus, pressing the
12113         space bar will select back the tool which was selected before the 
12114         current one (I find this especially useful with "reset after create" !)
12115         
12116         * lib/proplist.c: (prop_list_from_single): Renamed
12117         prop_list_singleton() to avoid confusion with the Singleton
12118         pattern (which it definitely is not).
12119         
12120         * lib/propobject.c: (object_prop_by_name_type),
12121         (object_prop_by_name): The "flags" parameter was not necessary.
12122         These don't return synthetic properties, but properties built from
12123         a real property description list; therefore, we don't call
12124         make_new_prop() but use the existing property descriptor, which
12125         has perfectly valid (and meaningful) flags.
12127         * lib/proplist.c: (pdtpp_synthetic), (pdtpp_from_object): These
12128         new predicates better reflect the reason why properties exist when
12129         they're created by make_new_prop() or object_prop_by_name().    
12131         * lib/propobject.c: (object_prop_by_name_type), (object_prop_by_name):
12132         * lib/prop_basic.c: (make_new_prop): used the new reasons instead
12133         of pdtpp_true().
12135         * lib/properties.h: reflects all the above changes.
12137         * objects/SADT/arrow.c:
12138         * objects/SADT/annotation.c:
12139         * sheets/SADT.sheet: minor renamings to better match FIPS 183's
12140         IDEF0 terminology.
12141         
12142 2001-08-15  Cyrille Chepelov  <chepelov@calixo.net>
12144         * lib/properties.h:
12145         * lib/proplist.c: (prop_list_singleton):
12146         * lib/propobject.c: (object_prop_by_name_type), (object_prop_by_name):
12147         Added these, to simplify interactions of plug-ins with the StdProp
12148         core.
12150         * lib/Makefile.am:
12151         * lib/dia_xml.h:
12152         * lib/dia_xml_libxml.h (NEW): 
12153         * app/load_save.c:
12154         * lib/dia_xml.c:
12155         * lib/plug-ins.c:
12156         * lib/sheet.c:
12157         * objects/custom/shape_info.c: A few prototypes were causing
12158         #include hell, because we generally attempt to not pull the whole
12159         libxml header set when we include dia_xml.h. Moved those
12160         prototypes away for the rare cases they're necessary.
12161         
12162 2001-08-15  Hans Breuer  <hans@breuer.org>
12164         * lib/font.c : made LARS_TRACE_MESSAGES Standard C conform
12166         * lib/libdia.def : 
12167         * lib/makefile.msc : updated
12169         * lib/prop_basic.c : __FUNCTION__ is a gcc extension. Please
12170         use G_GNUC_FUNCTION instead.
12172         * lib/prop_inttypes.c : include <stdlib.h> for strtol()
12174         * objects/sadt/annotation.c : disable TEMPORARY_EVENT_TEST for
12175         msvc instead of cleaning missing includes
12177         * plug-ins/wmf/wmf.cpp :
12178         * plug-ins/wmf/wmf_gdi.h : fixed for Font to DiaFont renaming
12180 2001-08-15  Cyrille Chepelov <chepelov@calixo.net>
12182         * app/app_procs.c:
12183         * app/load_save.c:
12184         * lib/dia_xml.c:
12185         * lib/plug-ins.c:
12186         * lib/sheet.c:
12187         * objects/custom/shape_info.c:
12188         * plug-ins/shape/shape-export.c:
12189         * plug-ins/svg/render_svg.c: used the libxml1/libxml2
12190         compatibility macros as taught by http://xmlsoft.org/upgrade.html;
12191         removed xmlKeepBlanksDefault(0) in favour for proper
12192         xmlIsBlankNode() testing. Lots of other fixups to use the
12193         "libxml1.5" (libxml2 parser embedded in recent libxml1), and to
12194         make libxml1 output correct files.
12196         * configure.in: use libxml2 (>= 2.3.9) if it's found, or
12197         libxml1 (>= 1.8.14). Exactly one of these must be installed (devel
12198         packages). If both devel packages are found, the build will stop 
12199         (Fredrik: please add a Build-Conflicts: on libxml2-dev for the moment) 
12201         * lib/bezier_conn.c: (bezierconn_init): Lars, you forgot to
12202         allocate the first handle :-)
12203         
12204         * lib/object.c: (object_init): <gratuitous>g_new() used instead of
12205         a cast and a sizeof.</gratuitous>
12207         * objects/custom/custom_object.c: (custom_copy): don't call
12208         text_get_attrbutes if the shape has no text...
12209         (custom_update_data): The info->resize_with_text code was a bit
12210         directive; basically, the shape's bounding box was forced to be 
12211         proportional to the text's bounding box.... This fixes #57187.
12212         
12213         * objects/custom/shape_info.c: (load_shape_info): Set an obvious
12214         default for info->aspect_ratio; unobfuscated a line about
12215         info->resize_with_text;
12216         
12217 2001-08-15  Cyrille Chepelov <chepelov@calixo.net>
12219         * lib/properties.h: added comments next to the PROP_TYPEs to tell
12220         which C Property subclass to use.
12221         
12222         * plug-ins/dxf/dxf-import.c: (read_entity_line_dxf): Removed the
12223         cast-ridden form of setting properties in a list, in favour for
12224         the "local pointers" form. I'll take any better offer...
12226 2001-08-14  Cyrille Chepelov <chepelov@calixo.net>
12227         
12228         * lib/font.c: fprintf(...) --> fprintf(format...)
12230         * configure.in: added a disabled versioned test for glib.
12231         * lib/prop_geomtypes.c: (bezpointprop_load), (bezpointprop_save),
12232         (bezpointarrayprop_load), (bezpointarrayprop_save): replaced
12233         g_critical() with a simple g_error(). Proper fix is to implement
12234         that stuff. 
12236         * lib/properties.h: PROP_STD_TEXT is a PROP_TYPE_TEXT, not a
12237         PROP_TYPE_STRING.
12238         
12239         * lib/properties.h:     
12240         * lib/propdesc.c: (prop_desc_list_calculate_quarks):
12241         * lib/proplist.c: (find_prop_by_name_and_type):
12242         * lib/prop_basic.c: (make_new_prop), (initialize_property):
12243         * lib/propoffsets.c: (do_set_props_from_offsets),
12244         (do_get_props_from_offsets), (prop_offset_list_calculate_quarks):
12245         Added a type_quark member to PropDescription, Property and
12246         PropOffset. Used it to implement a safety in
12247         do_[sg]et_props_from_offsets().
12248                 
12249         * objects/flowchart/diamond.c: the diamond's text was not saved,
12250         and thus not even copied (c&p).
12251         * objects/standard/textobj.c: ditto.
12253         Most of the above changes thanks to Robert Young's testing. Thanks !
12254         
12255 2001-08-14  Kjartan Maraas  <kmaraas@gnome.org>
12257         * sheets/*.sheet: Added some Norwegian translations (both nynorsk
12258         and bokmÃ¥l).
12259         
12260 2001-08-13  Cyrille Chepelov  <chepelov@calixo.net>
12262         * lib/proplist.c (prop_list_from_descs): added a call to
12263         prop_desc_list_calculate_quarks(). (find_prop_by_name_and_type):
12264         too embarrassing to tell.
12265         
12266         * lib/propdesc.c (prop_desc_list_calculate_quarks): converted the
12267         while loop to a for loop, for symmetry with
12268         prop_offset_list_calculate_quarks().
12270         * lib/geometry.h: new inline function, rectangle_equals.
12272         * lib/diagramdata.[ch]: refactored a bit the diagram extents
12273         computation logic, and changed it to always be the union of the
12274         visible layers' extents. This should close #58882 (Debian
12275         #107167), and fixes #55498.
12277         * app/display.c: made the initial visible box more coherent with
12278         the diagram being loaded's extents.
12280         * app/prop_attr.c: don't set the font (from offset) if font_data
12281         is NULL. Two brainos in colorprop_load() and fontprop_load().
12282         
12283 2001-08-13  Cyrille Chepelov  <chepelov@calixo.net>
12285         * lib/properties.[ch]: split in a lot of pieces: 
12287         * lib/prop_*.[ch] (NEW): all property types are now first-class
12288         objects, inheriting from the original abstract Property type.
12289         * lib/propdesc.c (NEW): property description handling routines
12290         * lib/propoffsets.c (NEW): property offset handling routines
12291         * lib/proplist.c (NEW): property list handling routines
12292         * lib/propobject.c (NEW): property list <-> object routines
12293         * lib/propregistry.c (NEW): holds the PropertyType-->PropertyOps
12294         relations.
12295         * lib/propinternals.h: prototypes for stuff not usually needed by 
12296         the outside of StdProps.
12297         * lib/Makefile.am: a lot of new files have been added...
12299         THE ABOVE CHANGES ARE MAJOR CHANGES AND AFFECT THE WHOLE TREE, IN
12300         BOTH INTERFACES AND RUN-TIME STABILITY.
12302         * lib/plug-ins.h: bumped up DIA_PLUGIN_API_VERSION
12303         
12304         * lib/object.h: removed the incestuous relationship with
12305         properties.h' contents. Now a Property list is a GPtrArray -->
12306         object interface change !
12308         * app/app_procs.c/app_init(): removed a disabled call to a
12309         non-existent routine. Added a call to stdprops_init().
12310         
12311         * objects/Makefile.am: disabled the construction of EML. I'm not
12312         touching these until a certain issue is solved (or this module
12313         removed).
12314         * app/group.c:  
12315         * objects/**/*.c except objects/EML/*: adapted all stdprop-using 
12316         objects to the interface changes.
12317         
12318         * app/disp_callbacks.c: killed a warning.
12319         * lib/dia_xml.[ch]: sprinkled "const" modifiers. 
12321         * app/commands.c: 
12322         The macros PROP_VALUE_* have disappeared. Adapted to using the new 
12323         interface.
12325         * plug-ins/dxf/dxf-import.c: 
12326         * plug-ins/xfig/xfig-import.c: 
12327         PROP_VALUE_* macros have been removed. Converted to the new API.
12329         * plug-ins/python/**/*: I gave up converting this; I can't
12330         compile --with-python (problems with object.h defined both by us
12331         and by Python). I'll gladly help whomever cares to fix it !
12332         (or, fix it myself if someone tells me how to compile it).
12333         
12334         * configure.in: added the UNICODE-related progress defines.
12335                 
12336         * configure.in:
12337         * lib/geometry.h: On Solaris and perhaps other systems, finite()
12338         is defined in ieeefp.h rather than in math.h. Patch from Andrew
12339         Halper <ashalper@acm.org> with further modifications, isinf() is
12340         provided by -lsunmath (sunmath.h).
12341         
12342         * lib/font.c: conditionally disabled Lars' debugging messages.
12343         Bracketed the definition of DiaFontFamily with #ifdef HAVE_FREETYPE.
12344         
12345 2001-08-11  Lars Clausen  <lrclause@cs.uiuc.edu>
12347         * lib/bezier_conn.h: 
12348         * objects/standard/bezier.c (bezierline_create): 
12349         * lib/bezier_conn.c (bezierconn_init): 
12350         Preparations for use of userdata for bezier lines.
12351         
12352         * objects/standard/polygon.c: 
12353         * objects/standard/create.h:
12354         * lib/polyshape.c:
12355         * lib/polyshape.h:
12356         * plug-ins/xfig/xfig-import.c:
12357         Use of user_data for polygon as well, including adding
12358         polyshape_set_points.  Include file for non-interactive 
12359         creation of standard objects, objects/standard/create.h
12361 2001-08-10  Lars Clausen  <lrclause@cs.uiuc.edu>
12363         * app/render_gdk.c: 
12364         * app/render_gdk.h: 
12365         * lib/font.c:
12366         * lib/font.h:
12367         * lib/widgets.c:
12368         More preliminary freetype support.  Not at all functional, crashes
12369         when rendering.
12371         * lib/poly_conn.h: 
12372         * lib/poly_conn.c: 
12373         * objects/standard/polyline.c: 
12374         Support for creating polyline objects with more than two points.
12375         This includes an extra function and a prototype change in the
12376         poly_conn lib object.
12378         * lib/object.c (object_copy): Fixed memory leak of handles and
12379         connections.
12381 2001-08-08  Abel Cheung  <maddog@linux.org.hk>
12383         * dia.desktop: added traditional Chinese strings
12385 2001-08-04  Cyrille Chepelov  <chepelov@calixo.net>
12387         * NEWS: updated to reflect build-time dependencies.
12389         * lib/properties.[ch]: wrote get_prop_descriptions() as a wrapper
12390         around obj->ops->describe_props(obj). Quarks are none of an
12391         object's business in the general case... 
12392         * lib/text.c: Added an apply_textattr_properties() function to
12393         factor out some common code related to applying a dialog's text
12394         attribute properties to a (Text *) which wasn't edited there. 
12395         Ditto for textstr, for the string part of an objet.
12397         * objects/GRAFCET/action.c:
12398         * objects/SADT/annotation.c:
12399         * objects/SADT/box.c: used apply_textattr_properties().
12400         
12401         * objects/UML/actor.c: 
12402         * objects/UML/branch.c:
12403         * objects/UML/component.c:
12404         * objects/UML/constraint.c:
12405         * objects/UML/small_package.c:
12406         * objects/UML/state.c:
12407         * objects/UML/usecase.c:
12408         * objects/UML/large_package.c:
12409         * objects/UML/note.c:
12410         * objects/UML/node.c:
12411         * objects/UML/message.c:
12412         * objects/UML/classicon.c:
12413         * objects/UML/object.c:
12414         * objects/UML/realizes.c:
12415         * objects/UML/dependency.c:
12416         * objects/UML/implements.c:
12417         slim-fast(tm) cure using more StdProps, and UTF-8 audit.
12418         (most objects were already using StdProps to some extent ; this
12419         systematises usage and removes some dead wood). 
12420         
12421         * objects/UML/stereotype.[ch]: use UTF-8 internally. const police work.
12422         * objects/UML/uml.[ch]: audited for UTF-8.
12424         * objects/UML/class.c: the UML_STEREOTYPE_* strings defined by
12425         uml.h can be in UTF-8... this code isn't yet ready. Duplicating a
12426         private (ISO-8859-1) definition.
12427         
12428         * lib/charconv.c: Added a warning if we didn't run
12429         nl_langinfo(CODESET) but rely instead on a hardcoded default.
12430         
12431 2001-08-02  Cyrille Chepelov  <chepelov@calixo.net>
12433         * lib/diamenu.h:
12434         * app/disp_callbacks.c: added a way for an object to cause an
12435         already realised menu to be destroyed (for instance if it changes
12436         too much).
12438         * objects/custom/custom_object.c: used the above to fix #55073.
12440 2001-08-01  Lars Clausen  <lrclause@cs.uiuc.edu>
12442         * configure.in: Remove 2.50 prereq.
12444 2001-07-30  Cyrille Chepelov  <chepelov@calixo.net>
12446         * po-checktrans.py: under some circumstances, there was one column 
12447         more than what was supposed to be, thus breaking the formatting.
12448         
12449 2001-07-29  Cyrille Chepelov  <chepelov@calixo.net>
12450         
12451         * objects/SADT/annotation.c: forgot to add a #include <stdlib.h>
12453         * NEWS: updated with new stuff since 0.88
12455         * shapes/network/antenna.shape: the text was misplaced ; fixed.
12457         * shapes/network/firewall.(shape|xpm) (NEW): a brick-wall looking
12458         firewall router (upon request from Cyril Lacoux
12459         <clacoux@easter-eggs.com>)
12461         * configure.in (didn't rename to configure.ac): autoconf 2.50
12462         constructs were used ; added an AC_PREREQ call to guard against
12463         older autoconfs.
12464         
12465 2001-07-27  Cyrille Chepelov  <chepelov@calixo.net>
12467         * lib/properties.c: minor clean-ups with the event delivery code.
12469         * EML/instantiation.c: brought this object back from stone and ice
12470         age.    
12472         * app/diaconv.c(NEW): added a command-line conversion tool. Still
12473         lacks a man page and correctness. In fact, it doesn't work. Please
12474         see #58196 if you want to finish it.
12475         
12476         * lib/message.[ch]: redefined things a little so that a different
12477         message_internal routine could be passed.
12478         applications can use that to fit themselves to the display model.
12480 2001-07-26  Cyrille Chepelov  <chepelov@calixo.net>
12482         * objects/SADT/box.c: 
12483         * objects/GRAFCET/action.c: spelling in property descriptors (name
12484         field...)
12485         * objects/SADT/annotation.c: ditto, plus a temporary test of the
12486         event delivery code (try to click on the "click me !" button !).
12488         * app/group.c: 
12489         * lib/properties.[ch]: improved (fixed) support for group event 
12490         handlers. Fixed various things from yesterday's code to make it
12491         not too obviously crash.
12493 2001-07-26  Cyrille Chepelov  <chepelov@calixo.net>
12495         * app/group.c: added delivery of events to the first member of the
12496         group which is able to process it.
12498         * lib/properties.c(prop_desc_lists_intersection): properties
12499         don't match if they don't have identical event handler.
12500         * lib/properties.h: simplified the PropEventHandler signature.
12502         Event delivery code is still untested so far, but should be
12503         lurking harmless.
12504         
12505 2001-07-25  Cyrille Chepelov  <chepelov@calixo.net>
12507         * lib/properties.[ch]: Added (untested !) property event handler
12508         capability. Added a new PROP_TYPE_BUTTON, for the purpose of
12509         generating such events. This stuff compiles, and should lurk
12510         around silently as long as you don't declare property descriptors
12511         with events (AFAICT).
12512         In object_create_props_dialog() and friends:
12513         attached a single structure with lots of data instead of lots of
12514         little attachments of data to the dialog widget.
12515         
12516         * lib/object.h: fixed mild typedef breakage introduced by the above.
12518 2001-07-17  Lars Clausen  <lrclause@cs.uiuc.edu>
12520         * lots of files: Changed Font to DiaFont
12521         * */Makefile.am: Added FREETYPE_LIBS
12522         * plug-ins/xfig/xfig-export.c: Improved (working:) color handling
12524 2001-07-13  Kjartan Maraas  <kmaraas@gnome.org>
12526         * configure.in: Added "nn" to ALL_LINGUAS.
12527         
12528 2001-07-09  Alex Larsson  <alexl@redhat.com>
12530         * app/disp_callbacks.c:
12531         Add gdk_im_ready() calls to XIM code.
12533 2001-07-04  Cyrille Chepelov  <chepelov@calixo.net>
12535         * lib/properties.[ch]: splitted prop_get_widget() into
12536         prop_get_widget() (gives a widget but doesn't fill it) and 
12537         prop_reset_widget() (fills an existing widget with a property's value).
12539         * lib/widgets.[ch]: const enforcement police work.
12541         * shapes/network/antenna.shape: added a connection point at top,
12542         upon request from <Emmanuel.Quemener@cri.ens-cachan.fr>.
12543         
12544 2001-06-25  Cyrille Chepelov  <chepelov@calixo.net>
12546         * intl/*: tested with gettext-0.10.38
12547         * configure.in: moved a macro call around (AM_PROG_CC) to keep
12548         some of autogen.sh from complaining.
12549         * INSTALL: added a warning against gettext older than at least 0.10.36
12550         
12551 2001-06-19  Cyrille Chepelov  <chepelov@calixo.net>
12553         * configure.in: added explicit calls to AM_LANGINFO_CODESET and
12554         AM_ICONV (both provided by gettext)
12556 2001-06-14  Cyrille Chepelov  <chepelov@calixo.net>
12558         * lib/charconv.c: corrected the degraded mode for when
12559         !HAVE_UNICODE. Thanks to Ben A. Hetland for reporting this.     
12561         * objects/chronoline/chronoline_events.c: UTF8 compliance.
12562         
12563 2001-06-13  Cyrille Chepelov  <chepelov@calixo.net>
12565         * lib/properties.[ch]: convenience macros around PROP_NOTEBOOKS ;
12566         new "eye candy" properties: PROP_MULTICOL_(BEGIN|PAGE|END) to lay 
12567         widgets on several columns, PROP_FRAME_(BEGIN|END) to put widgets
12568         into a frame box.
12570         * objects/chronogram/chronoline.c:
12571         * objects/chronogram/chronoref.c: took advantage of the above to
12572         make nicer looking dialogs.
12574         * lib/charconv.[ch]: added charconv_unichar_to_utf8 ("inspired"
12575         from libunicode's internals).
12576         * lib/message.c: convert strings to local encoding prior to
12577         display (UNICODE_WORK_IN_PROGRESS)
12578         * lib/properties.[ch]: convert strings to local encoding prior to
12579         display, and back to UTF8 (UNICODE_WORK_IN_PROGRESS).
12580         * lib/render.h: tagged strings as (utfchar *) instead of (char *)
12581         * lib/stringprerenderer.[ch]: ditto
12583         (lib/text.c has been audited for UTF8, but the size of the changes
12584         make them inappropriate for commit before 0.89)
12585         
12586 2001-06-12  Cyrille Chepelov  <chepelov@calixo.net>
12588         * objects/boolequation.h (<save|load>_boolequation): made the 
12589         prototypes for match the .c file.
12590         
12591         * samples/grafcet.dia: minor non-conformance with IEC-848
12592         fixed (in the transition from step 100 to step 101).
12594         * lib/properties.[ch]: added a flag (PROP_FLAG_DONT_MERGE) to
12595         disallow editing of properties if the object is part of a group.
12597         * objects/chronogram/chronoline.c: 
12598         * objects/SADT/annotation.c:
12599         * objects/SADT/box.c:
12600         * objects/GRAFCET/step.c:
12601         * objects/GRAFCET/transition.c:
12602         * objects/GRAFCET/condition.c: took advantage of PROP_FLAG_DONT_MERGE.
12603         
12604 2001-06-12  Hans Breuer  <hans@breuer.org>
12606         * lib/libdia.def : removed lazyprop exports
12607         * lib/makefile.msc : removed lazyprop.obj
12609         * objects/custom/custom_objects.c : use HAVE_UNISTD_H
12610         and avoid crashes by always creating a custom->text,
12611         when (custom->info->has_text) 
12613         * objects/makefile.msc : removed sybase from build
12615         * objects/GRAFCET/boolequation.c (<save|load>_boolequation) :
12616         ObjectNode is a pointer already, which is what we want
12617         instead of a pointer pointer.
12619         * plug-ins/wmf/wmf.cpp : fixed problem with arc scaling
12620         and implemented working export for images
12622         * shapes/network/zip-disk.shape : added connection points 
12624 2001-06-12  Cyrille Chepelov  <chepelov@calixo.net>
12626         * objects/SADT/box.c: removed lazyprops for standard props.
12627         * objects/chronograms/chronoline.c: removed lazyprops (phew !)
12628         * objects/chronograms/chronoref.c: ditto 
12630         * lib/Makefile.am:
12631         * lib/dummy_dep.h:
12632         * lib/connpoint_line.c:
12633         * lib/lazyprops.[ch] (DELETED): good riddance (closes #55895)
12634         * lib/properties.[ch]: new property types:
12635             - PROP_TYPE_STATIC: static text to be displayed in the dialog.
12636             - PROP_TYPE_MULTISTRING: same as string, but renders as a
12637             multi-line entry box.
12638             - PROP_TYPE_NOTEBOOK_BEGIN,_PAGE,_END: stuff to make dialogs
12639             in a tabbed-notebook style (this is a bit complicated to use; 
12640             see objects/chronograms/chronoline.c for an example).
12641                
12642 2001-06-11  Cyrille Chepelov  <chepelov@calixo.net>
12644         * objects/GRAFCET/boolequation.[ch]: zap lazyprops. Add standard props.
12645         * objects/GRAFCET/step.c: ditto.
12646         * objects/GRAFCET/vector.c: ditto.
12647         * objects/SADT/annotation.c: ditto.
12648         * objects/SADT/arrow.c: ditto (plus bounding box fixes).
12649         
12650         * lib/properties.[ch]: two more non-visible types
12651         (PROP_TYPE_ENUMARRAY and PROP_TYPE_INTARRAY).
12653         * lib/neworthconn.[ch]:
12654         * lib/orthconn.[ch]: added support for manipulation through
12655         standard properties.
12657         * configure.in: removed -fomit-frame-pointer, this seems to
12658         confuse recent gcc/gdb's, maybe we'll get better stack dumps in 
12659         bugzilla.
12661         * charconv.[ch]: more functions from unicode.h.
12662         get_local_charset() wasn't working properly, fixed now.
12663         A subtle crashbug in charconv_utf8_to_local8() nailed (thanks to 
12664         ElectricFence !)
12665         
12666         * objects/EML/process.h: pulled the bits of lazyprops.h it uses.
12667         * lib/lazyprops.[ch]: put a big fat warning in.
12669         * app/render_eps.c: one line mysteriously went away, causing a
12670         variable to be used uninitialised....
12672 2001-06-10  Cyrille Chepelov  <chepelov@calixo.net>
12674         * app/app_procs.c: commented out the call to
12675         bind_textdomain_codeset(): it's premature.
12676         
12677         * lib/connpoint_line.c: a NULL point can be given to
12678         connpointline_adjust_count(), in case there's not really a clicked
12679         point.
12681         * lib/textattr.h(NEW): moved the definition of TextAttributes to sort
12682         #include order troubles. #included by lib/text.h, so there is no 
12683         impact outside lib/.
12684         * lib/properties.[ch]: added support for CONNPOINT_LINE and
12685         (nonvisible) TEXT properties.
12687         * objects/GRAFCET/action.c:
12688         * objects/GRAFCET/vergent.c: dropped lazyprops for standard
12689         properties.
12690         
12691         * objects/UML/lifeline.c: pruned some legacy stuff (now pure
12692         standard properties code). Grafted a dynamic number of connection
12693         points (heavily inspired from what Vergent does). This is the real
12694         fix for #55863.
12696         * objects/GRAFCET/boolequation.[ch]: audited for UTF-8
12698         * lib/fonts.c: some hardening (mostly g_assert())
12699 2001-06-09  Cyrille Chepelov  <chepelov@calixo.net>
12701         * app/app_procs.c (app_init): added a call to
12702         bind_textdomain_codeset() so that gettext gives us UTF-8 strings
12703         (UNICODE_WORK_IN_PROGRESS).
12704         
12705 2001-06-08  Cyrille Chepelov  <chepelov@calixo.net>
12707         * plug-ins/xfig/xfig-import.c: corrected a typo (fixes #55910)
12709         * objects/UML/lifeline.c: patch from Marc <mrw@siemens.ch> 
12710         (fixes #55863) : some clean-ups in the handling of connection
12711         points. Now the total number of connection points is just a
12712         #define (the proper solution is to retrofit the GRAFCET Vergent's
12713         dynamic behaviour wrt connection points).
12714         
12715 2001-06-07  Cyrille Chepelov  <chepelov@calixo.net>
12717         * app/app_procs.c (app_init): added a call to unicode_init() (only
12718         if HAVE_UNICODE, of course).
12720         * lib/charconv.c: simplified the code which detects the local
12721         charset. No need to use <langinfo.h>, libunicode already takes the
12722         burden of figuring that out. Also, if local charset is utf8, no
12723         conversion will take place.
12724         Exposed a way to get the current charset (similar to
12725         unicode_get_charset() but actually working, hopefully).
12727         * lib/charconv.h: Added a partial non-UTF8 implementation of
12728         unicode.h if !HAVE_UNICODE (actually, all the time for the
12729         moment). The UTF8 implementation is just macros on libunicode (use
12730         the functions prefixed by uni_, as defined by charconv.h, not
12731         unicode_, unless that code is to be compiled only if HAVE_UNICODE).
12732         From now on, all strings which don't *need* to be ASCII should be
12733         utfchar *, not gchar *. Just include charconv.h, let it sort out
12734         the details (such as: "is libunicode available and enabled?") 
12736         * lib/ps-utf8.c: fixed a few name clashes. Used the charconv.h
12737         "API" instead of directly libunicode. Removed the now unnecessary
12738         speculative clustering of characters in encoding pages.
12740         * app/render_eps.c: made the local8->utf8 conversions dependent of
12741         !UNICODE_WORK_IN_PROGRESS (this is not where the local8/utf8
12742         boundary will be when this WIP is done).
12744         * lib/dia_xml.c (data_point): fixed a format string typo.
12746         * po/POTFILES.in: added all C files from lib/ 
12747         
12748 2001-06-06  Cyrille Chepelov  <chepelov@calixo.net>
12750         * app/disp_callbacks.c: make sure the objects' connected objects
12751         are updated when the objects' size changes after a keypress event
12752         (fixes #51222)
12754         * configure.in: added a big warning about the possible future
12755         non-optionality of --enable-unicode. 
12757         * TODO: removed entries which look like done ; added a few ones
12758         (Bugzilla "enhancement" bugs may be a better way to keep track of
12759         this)
12760         
12761 2001-06-05  Cyrille Chepelov  <chepelov@calixo.net>
12763         * objects/UML/message.c: got rid of #55564 and of message_copy()
12764         by using more standard properties (are the message_state_*()
12765         functions still necessary ?)
12767 2001-06-04  Fredrik Hallenberg  <hallon@lysator.liu.se>
12769         * lib/plug-ins.c: 
12770         * objecs/custom/shape_info.c:
12771         * plug-ins/shape/shape-export.c:
12772         * plug-ins/svg/render_svg.c: patch from obecian <obecian@openbsd.org>
12773         use xmlChar instead of obsolete CHAR.
12775 2001-06-03  Hans Breuer  <hans@breuer.org>
12777         * app/diagram.h : added prototype for diagram_update_menu_sensitivity()
12778         * app/commands.c : give the right number of parameters
12779         to diagram_update_menu_sensitivity ()
12781         * app/preferences.c : do proper initialization for DiaPrefsData:
12782         render_bounding_boxes. It would be a real surprise if 'hidden'
12783         properties would have ever worked before.
12784         Don't try to access the widgets of hidden property, it does not
12785         have one.
12787         * lib/diagramdata.h : make render_bounding_boxes a DIAVAR, cause
12788         it is defined in libdia, but initialized from dia app, which 
12789         otherwise gave nice start-up crashes.
12791         * lib/diagramdata.c : initialize the color for rendering bounding 
12792         boxes in the Dia range (0 .. 1.0)
12794         * lib/libdia.def : added *_bbox functions for export
12796         * lib/makefile.msc : added new sources
12798         * objects/custom/custom_object.c : use HAVE_UNISTD_H
12800 2001-05-30  Cyrille Chepelov  <chepelov@calixo.net>
12802         * app/interface.c:
12803         * app/menus.c: patch from Hubert Figuiere <hfiguiere@teaser.fr> ;
12804         removes a translation of menus (in a place where there shouldn't
12805         have been), which gets rid of a waterfall of warnings if LANG!=C,
12806         and a fix to #55047.
12808 2001-05-29  Steffen Macke     <sdteffen@yahoo.com>
12810         * lib/charconv.c : added #include <errno.h>
12812         * app/dia_embedd.c : updated menus_get_item_from_path usage
12813         
12814 2001-05-27  Cyrille Chepelov  <chepelov@calixo.net>
12816         * lib/ps-utf8.c: Strings in Symbol fonts were incorrectly rendered.
12817         Added a special case for Symbol strings, so that they're not
12818         re-encoded using the LN encoding (we use the bare Adobe encoding
12819         instead).
12821         * objects/custom/custom_object.c: Now that #52912 is fixed,
12822         I could remove the ugly hack I wrote to squash the shape bounding box
12823         problem shown by Ben A. Hetland a few months ago, and fix it
12824         properly this time.
12825         
12826         * lib/text.c: enlarged a little the bounding box to account for
12827         the cursor in rightmost position.
12828         
12829         * lib/diagramdata.c: draw bounding boxes only if the relevant
12830         variable is set (as before), but also only if the rendere is
12831         interactive (ie, don't bother rendering bounding boxes on 
12832         Postscript...)
12833         Made the bounding box's line width a fixed value, 0.01
12834         
12835         * lib/boundingbox.c: fixed the "pointy corners" code for polylines
12836         and assymmetric control beziers. Implemented ellipse_bbox().
12837         
12838         * Makefile.am: incantations to get po/dia.pot build, as suggested
12839         by Hubert in #55075.
12840         
12841         * shapes/network/computer.shape: typo fixed.
12842         * shapes/network/antenna.shape: fixed #55074 (antenna is now
12843         properly translucent, except for its base where it makes sense. It
12844         doesn't look that ugly anymore if transparent mode is on).
12846         * configure.in: --enable-unicode is now the default. This
12847         still currently affects only printing.
12848         
12849 2001-05-26  Cyrille Chepelov  <chepelov@calixo.net>
12851         * lib/boundingbox.c: fixed a minor logic error wrt closed shapes. 
12852         The overshoot code is buggy, and the bounding boxes for polyshapes
12853         looks a bit cheezy. To be done ASAP.
12855 2001-05-26  James Henstridge  <james@daa.com.au>
12857         * configure.in: call AM_PATH_PYTHON rather than AM_PATH_PYTHON_JH.
12858         This should clear up some of the build problems people have been
12859         having.
12861         * acinclude.m4: call AM_PATH_PYTHON_JH AM_PATH_PYTHON
12863 2001-05-26  Cyrille Chepelov  <chepelov@calixo.net>
12865         * lib/Makefile.am:
12866         * lib/boundingbox.[ch] (NEW): (some) refactoring of the bounding
12867         box code (beginning with lines, polylines and polybeziers), into a
12868         more generic facility. While at it, a better shot at correctly
12869         computing the bounding box of a Bezieroid (should take care of
12870         #53424, #51233 and of course is part 1 of #52912).
12872         * lib/diagramdata.c: turned the RENDER_BOUNDING_BOXES conditional
12873         into a hidden preference (set render_bounding_boxes in diarc).
12874         * app/preferences.[ch]: Added support for hidden preferences.
12876         * lib/geometry.[ch]: sprinkled with "const" modifiers.
12877         
12878         * lib/bezier_conn.[ch]:
12879         * lib/beziershape.[ch]:
12880         * lib/connection.[ch]:
12881         * lib/element.[ch]:
12882         * lib/poly_conn.[ch]:
12883         * lib/orth_conn.[ch]:
12884         * lib/neworth_conn.[ch]:
12885         * lib/polyshape.[ch]: adapted to take advantage of
12886         boundingbox.[ch] instead of relying on private (duplicate) code.
12888         * object/FS/flow.c:
12889         * object/GRAFCET/action.c:
12890         * objects/GRAFCET/condition.c:
12891         * objects/GRAFCET/vergent.c:
12892         * objects/GRAFCET/vector.c:
12893         * objects/SADT/annotation.c:
12894         * objects/SADT/arrow.c:
12895         * objects/ER/participation.c:
12896         * objects/UML/constraint.c:
12897         * objects/UML/implements.c:
12898         * objects/UML/lifeline.c:
12899         * objects/UML/message.c:
12900         * objects/UML/realizes.c:
12901         * objects/UML/generalization.c:
12902         * objects/UML/association.c:
12903         * objects/UML/dependency.c:
12904         * objects/FS/flow-ortho.c:
12905         * objects/network/bus.c:
12906         * objects/standard/arc.c:
12907         * objects/standard/bezier.c:
12908         * objects/standard/beziergon.c:
12909         * objects/standard/line.c:
12910         * objects/standard/polygon.c:
12911         * objects/standard/zigzagline.c:
12912         
12913         * objects/standard/polyline.c: Some *BBExtras structures changed
12914         names while moving to boundingbox.[ch]. A trivial mass-renaming.
12915         
12916 2001-05-20  Cyrille Chepelov  <chepelov@calixo.net>
12918         * app/disp_callbacks.c (ddisplay_canvas_events): Take into account
12919         wheel mouses for scrolling (from Patrick Sung <phsung@ualberta.ca>)
12921         * app/display.c (ddisplay_update_scrollbars): from Patrick's
12922         suggestion, remove the extra scrollable area (it was only visible
12923         to the scrollbars). This is experimental.
12924         
12925         * objects/custom/custom_object.c: If a shape's icon file doesn't 
12926         exist, warn and substitute a default icon, instead of crashing.
12927         (fixes #52913)
12928         
12929         * objects/network/network.c:
12930         * shapes/network/modularswitch.(shape|xpm) (NEW):
12931         * shapes/network/printer.(shape|xpm) (NEW):
12932         * shapes/network/genmonitor.(shape|xpm) (NEW):
12933         * shapes/network/computer.(shape|xpm) (NEW):
12934         * shapes/network/Makefile.am: four less objects, four more shapes.
12935         These were the last known RenderObjects. (phew !)
12937         * lib/Makefile.am:
12938         * lib/dummy_dep.h:
12939         * objects/sybase/Makefile.am: 
12940         * objects/network/Makefile.am: Removed the older Renderobjects
12941         from the build, and their infrastructure (not yet deleted,
12942         though).
12944         * shapes/network/sceadplug.shape:
12945         * shapes/network/antenna.shape:
12946         * shapes/network/modem.shape:
12947         * shapes/network/hub.shape:
12948         * shapes/network/rj45plug.shape:
12949         * shapes/sybase/client.shape:
12950         * shapes/sybase/dataserver.shape:
12951         * shapes/sybase/ltm.shape:
12952         * shapes/sybase/repserver.shape:
12953         * shapes/sybase/rsm.shape:
12954         * shapes/sybase/stableq.shape: Minor corrections (line widths were
12955         ten times too narrow).
12956         
12957 2001-05-19  Cyrille Chepelov  <chepelov@calixo.net>
12959         * objects/network/network.c:
12960         * shapes/network/sceadplug.(shape|xpm) (NEW):
12961         * shapes/network/antenna.(shape|xpm) (NEW):
12962         * shapes/network/modem.(shape|xpm) (NEW):
12963         * shapes/network/Makefile.am: four less objects, four more shapes.
12964         
12965         * lib/Makefile.am:
12966         * lib/diagramdata.c:
12967         * lib/render.h:
12968         * lib/string_prerenderer.[ch] (NEW):
12969         Add a new renderer primitive, predraw_string() (does nothing, to be
12970         used as a hook to optimise the character encodings if needed). 
12971         Added a string pre-renderer, which can be viewed as a filter
12972         renderer (to route draw_string() to predraw_string() and ignore
12973         the rest, in a first rendering pass)
12974         
12975         * app/render_eps.c: Took advantage of the above to make wholly
12976         optimised Postscript encoding page(s), even (especially) with 
12977         non-latin1 code (HAVE_UNICODE must be true).
12979         (#53512 in fact is wholly resolved).
12980         
12981 2001-05-18  Cyrille Chepelov  <chepelov@calixo.net>
12983         * lib/charconv.c: steps towards resolution of #53512 (inspired by
12984         Alexey Novodvorsky <aen@logic.ru>'s patch).
12986         * app/menus.c (dia_menu_signal_proxy): checked that the signal
12987         handler is not NULL before transferring control to it... (fixes #52836)
12989         * app/app_procs.c (app_init): removed non-constant initialiser
12990         (fixes #52950)
12992         * objects/custom/custom_object.c:
12993         * objects/custom/shape_info.[ch]:
12994         * objects/custom/test.xml: merged patch #53476 from Steven Hawkins 
12995         <skh@mathstar.com>. This add support for a <svg:text> shape
12996         element, and some related style properties (font, font height, 
12997         alignment)
12999         * doc/custom_shapes: a precision about the meaning of case in a
13000         SVG path (closes #52364)
13002         * lib/dummy_dep.h: fix for SGI IRIX 6.2 (#53053, reported and
13003         fixed by <drk@sgi.com>)
13004         
13005 2001-05-17  Cyrille Chepelov  <chepelov@calixo.net>
13007         * objects/network/network.c:
13008         * shapes/network/Makefile.am:
13009         * shapes/network/hub.(shape|xpm) (NEW):
13010         * shapes/network/flash.(shape|xpm) (NEW):
13011         * shapes/network/rj45plug.(shape|xpm) (NEW):
13012         More shapes, less renderobjects.
13014 2001-05-16  Cyrille Chepelov  <chepelov@calixo.net>
13015         
13016         * plug-ins/svg/render_svg.c: typo made exported ellipses
13017         corrupted (zero Y pseudo-radius).
13019         * objects/network/network.c:
13020         * objects/network/disc.c:
13021         * shapes/network/disc.(shape|xpm): Converted the first
13022         Renderobject into a shape. Normally, old diagrams should reload
13023         without problems (please check this against your diagrams). More
13024         flexibility should be gained that way. I intend to hunt and
13025         eradicate all renderobjects as I can commit cycles to that. 
13027         * objects/Makefile.am:
13028         * configure.in:
13029         * app/Makefile.am:
13030         * objects/sybase/sybase.c:
13031         * shapes/sybase/Makefile.am(NEW):
13032         * shapes/sybase/client.(xpm|shape) (NEW):
13033         * shapes/sybase/dataserver.(xpm|shape) (NEW):
13034         * shapes/sybase/ltm.(xpm|shape) (NEW):
13035         * shapes/sybase/repserver.(xpm|shape) (NEW):
13036         * shapes/sybase/rsm.(xpm|shape) (NEW):
13037         * shapes/sybase/stableq.(xpm|shape) (NEW): converted Sybase
13038         renderobjects into shapes. The Sybase objects are now not compiled
13039         anymore, and ready to be nuked if nobody objects in the next few weeks.
13040         
13041         * app/commands.c:
13042         * app/diagram.[ch]:
13043         * app/disp_callbacks.c:
13044         * app/display.[ch]:
13045         * app/interface.[ch]:
13046         * app/menus.[ch]:
13047         * app/modify_tool.c:
13048         * app/preferences.[ch]:
13049         * app/recent_files.c:
13050         * app/select.c: Added patch #52364 from Hubert Figuiere. This adds
13051         a menu bar reflecting the popup menu, to each display window. This
13052         is optional (changing the preference currently doesn't affect
13053         already opened windows; a few other rough edges to cut).
13055         * plug-ins/wpg/wpg.c:
13056         * plug-ins/xfig/xfig-import.c:
13057         * plug-ins/python/pydia-property.c:
13058         * plug-ins/python/pydia-properties.c:
13059         * plug-ins/python/pydia-geometry.c:
13060         * plug-ins/pstricks/render_pstricks.c:
13061         * lib/arrows.c:
13062         * objects/EML/dbox.c:
13063         * lib/ps-utf8.c: paleolithic C compilers choke on //. Should fix 
13064         #53054.
13066         * lib/ps-utf8.c: improved the clustering of alphabetic character
13067         definitions in custom encodings pages.
13068         
13069 2001-05-02  Hans Breuer  <hans@breuer.org>
13071         * lib/object.h : OBJECT_COMMON_PROPERTIES_OFFSETS correct type 
13072         of 'obj_bb' to PROP_TYPE_RECT
13074         * objects/custom/custom_object.c : take all quarks into account, 
13075         not only 4 as copy&paste suggests
13077         * objects/uml/objects.c : completed the implementation of the
13078         property api to avoid reading of totally bogus data. Removed
13079         the PROBABLY_DEAD_CODE. It actually was dead code, but not because
13080         there was too much but too less ...
13081   
13082         The above changes removed all known crashes (mentioned below) 
13083         from the Property API. Property access is still incomplete though.
13085         * objects/flowchart/box.c :
13086         * objects/flowchart/diamond.c :
13087         * objects/flowchart/ellipse.c :
13088         * objects/flowchart/parallelogram.c :
13089         * objects/uml/classicon.c :
13090         * objects/uml/state.c : calculate number of quarks from quark array 
13091         size instead of using hardcoded values for consistence and to avoid 
13092         future bugs like the above
13093         
13094         * objects/eml/nlist.c : include <string.h> for strcmp()
13096         * lib/dia_xml.c : relax g_warning for values, which
13097         appear to be too small. There is nothing which prevents
13098         them while saving
13100         * plug-ins/python/pydia-geometry.c : changed stringifying of
13101         geometry objects accept BezPoint back to %f, which does not
13102         crash anymore, because all the data is intialized now and it
13103         simply is more readable than %e ...
13105         * plug-ins/python/python-startup.py : removed dependency
13106         to PyGtk, because it isn't required here and probably won't
13107         in i.e.: export filters.
13109         * plug-ins/python/gtkcons.py : create the gtkoutfile even
13110         if sys.stderr.fileno() isn't supported
13112         * app/makefile.msc : make version 0.88
13113         * plug-ins/makefile.msc : make version 0.88 an added new
13114         xfig files to build
13116 2001-05-11  James Henstridge  <james@daa.com.au>
13118         * NEWS: remember to add news items this time.
13120         * dia.spec: update spec file for 0.88 release.
13122         * configure.in: up version number to 0.88
13124         * plug-ins/python/Makefile.am (EXTRA_DIST): fix up typo that was
13125         preventing any of the useful python scripts from being
13126         distributed.
13128         * sheets/Makefile.am (sheet-translation-report): fix bustage I
13129         introduced in my fixups for the 0.87 release :(
13131 2001-05-10  Lars Clausen  <lrclause@cs.uiuc.edu>
13133         * plug-ins/xfig/xfig-import.c: Finally got groups working.
13135 2001-05-09  Lars Clausen  <lrclause@cs.uiuc.edu>
13137         * plug-ins/xfig/xfig-import.c: Improvements to error handling and
13138         group manipulation.
13140 2001-05-09  Cyrille Chepelov  <chepelov@calixo.net>
13142         * lib/ps-utf8.[ch]:
13143         * lib/Makefile.am: fix makefile breakage which led to not
13144         including ps-utf8.[ch] in the released tarballs. 
13146 2001-05-09  James Henstridge  <james@daa.com.au>
13148         * Makefile.am (core-translation-report): dist scripts needed for
13149         this target, and change to $(srcdir) before running.
13151         * sheets/Makefile.am (EXTRA_DIST): actually dist the sheets.  DATA
13152         files aren't automatically included in the tarball by automake
13153         because they could be generated files.
13155         * objects/EML/Makefile.am (EXTRA_DIST): fix directory names.
13157         * doc/en/Makefile.am (install-data-hook): fix up where graphics
13158         are installed.
13160         * configure.in: up version number to 0.87
13162         * plug-ins/python/*.py: no longer necessary to explicitly set
13163         sys.argv, as python.c does it for us now (like it should).
13165         * plug-ins/python/gtkcons.py: fix up so it plays nicely as a dia
13166         python plugin.
13168         * plug-ins/python/python-startup.py: startup script that imports
13169         all modules in $(datadir)/dia/python and ~/.dia/python.
13171         * plug-ins/python/python.c (dia_plugin_init): change so that it
13172         only runs the $(datadir)/dia/python-startup.py script.  Make sure
13173         that sys.argv and __main__.__file__ are set when calling the
13174         startup script.
13176         * plug-ins/python/Makefile.am: update makefile.  Make it install
13177         gtkcons.py plugin.  I haven't set any other plugins to install, as
13178         they look like they are mainly for debugging purposes.
13180         * configure.in: add tests to detect if python is available, so we
13181         can build the python plugin.  Only run if --with-python passed to
13182         configure.
13184 2001-05-08  James Henstridge  <james@daa.com.au>
13186         * acinclude.m4: add macros for detecting python.
13188         * app/menus.c (dia_gnome_menu_get_widget): handle paths that point
13189         at GNOME_APP_UI_SUBTREE entries.
13190         (menus_add_path): function to add a menu item to the menubars.
13191         Uses a hash table to keep track of extra menu items it adds.  Also
13192         notifies the item factory about the entries so that accels can be
13193         saved for them.
13194         (menus_add_path): implement gtk only version.
13195         (menus_init): use menus_add_path() to add the menu.
13196         (plugin_callback): simplify.
13198 2001-05-08  Steffen Macke <sdteffen@yahoo.com>
13200         * app/menu.c: removed #ifndef GNOME; GNOME build was broken
13201         
13202 2001-05-08  Lars Clausen  <lrclause@cs.uiuc.edu>
13204         * plug-ins/xfig/xfig-export.c: 
13205         * plug-ins/xfig/xfig-common.c: 
13206         * plug-ins/xfig/xfig-import.c: 
13207         * plug-ins/xfig/xfig.c: 
13208         * plug-ins/xfig/xfig.h: 
13209         * app/Makefile.am: Added support for exporting to Fig format
13210         (except splits, which are less powerful in Fig).  Some refactoring
13211         along the way.
13213 2001-05-02  Hans Breuer  <hans@breuer.org>
13215         * plug-ins/python/debug_objects.py : added another
13216         test to get massive crashes from the Property API due
13217         to unintialized data.
13219         * app/menu.c : the callback_action wasn't incremented
13220         (should have checked my last optimization). Now more
13221         than one plug-in callback is supported again.
13223         * plug-ins/python/pydia-geometry.c : avoid crashes from
13224         glib, when trying to g_strdup_printf unintialized floats.
13226         * plug-ins/python/pydia-property.c : avoid crashes from
13227         because of string_data == NULL (PROP_TYPE_FILE, PROP_TYPE_STRING)
13229 2001-05-01  Hans Breuer  <hans@breuer.org>
13231         * objects/makefile.msc : added eml
13232         * objects/eml/instantiation.c : initialize 'inst' pointer
13233         before using, zero initialization for objects
13234         * objects/eml/interaction-ortho.c :
13235         * objects/eml/interaction.c : zero initialization for objects
13237         * app/menus.c : removed Gimp mru stuff which slipped in at
13238         2000-08-15, was never activated and will never be needed, 
13239         because of Steffens recent file list patch added at 2001-01-05.
13241         * objects/eml/*.c : some more zero initialization of objects
13242         to avoid infinite (uninitialized) bounding boxes
13244         Implemented a callback api which allows plug-ins to register
13245         menu call backs. Dia for Gnome should compile, but will need 
13246         some extra tweaking to make it work because I can't test it.
13248         * plug-ins/python/pydia-error.h :
13249         * plug-ins/python/pydia-render.c : moved Pxthon function return 
13250         value handling from pydia-render.c to pydia-error.h, to make it
13251         usable for
13252         * plug-ins/python/diamodule.c : implement callback function
13253         registration from and relaying to Python code
13255         * app/menus.c : register and use plug-in menu callbacks
13257         * lib/filter.[hc] : implement filter_register_callback() and
13258         filter_get_callbacks() for the above
13259         * lib/libdia.def : export them
13261         * plug-ins/python/debug_objects.py (new file): 
13262         sample using the above
13264 2001-04-27  Lars Clausen  <lrclause@cs.uiuc.edu>
13266         * plug-ins/shape/shape-export.c (new_shape_renderer): 
13267         The name of a shape is now taken from the dir, to conform with
13268         standard naming.
13270 2001-04-25  Lars Clausen  <lrclause@cs.uiuc.edu>
13272         * app/properties.c (properties_show): Added title containing
13273         object type, plus (hopefully) fix of the ghost properties dialog.
13275 2001-04-16  Cyrille Chepelov  <chepelov@calixo.net>
13277         * app/display.c: remove the display idle handler in case we
13278         destroy the ddisplay (caused crashes in ddd, probably random
13279         crashes elsewhere).
13281         * autogen.sh: 
13282         * configure.in:
13283         * Makefile.am: hack around gettext-0.10.36's new "features".
13284         
13285         * lib/properties.[ch]: added new function object_copy_props().
13286         Added new property type PROP_TYPE_ENDPOINTS
13288         * lib/connection.h: added support for load/saving through the
13289         properties interface.
13291         * lib/object.[ch]: object_load/save/copy_using_properties()
13292         support functions (code factorisations).
13293         
13294         * objects/GRAFCET/boolequation.c: check against null values in
13295         boolequation_set_value() and boolequation_destroy().
13297         * objects/GRAFCET/transition.c: Converted from lazyprops to
13298         standard properties. 31% less (x86) code !
13300         * objects/GRAFCET/condition.c: also converted from lazyprops to
13301         standard properties. Also killed lots of code.
13302         
13303 2001-04-13  Hans Breuer  <hans@breuer.org>
13305         * plug-ins/wmf/wmf.cpp : changed text conversion from
13306         g_utf8_utf16 to g_convert usage. The latter function is already
13307         available in tml's last "official" Gtk+ version (2000-12-26).
13308         This change allows to use recent Dia with either the official
13309         version or the latest cvs "gtk-1-3-win32-production"-branch.
13311 2001-04-14  Lars Clausen  <lrclause@cs.uiuc.edu>
13313         * Patch from David S. Thompson <dcthomp@mail.utexas.edu>:
13314         * app/disp_callbacks.c:
13315         - Allow submenus in DiaMenus.
13316         - Don't require DiaMenu.title to be non-null (so that
13317           submenus aren't required to have titles)
13319         * objects/FS/function.c:
13320         - object menu now has submenus, an almost complete list of
13321           standard-basis verbs, and a start on nouns.
13322         - box padding, dash length, and other visual attributes are
13323           scaled by the font size... eventually font height will be
13324           a function property.
13325         - draw functions with smaller font to make initial view hold
13326           a reasonable number of functions.
13327         
13328 2001-04-13  Cyrille Chepelov  <chepelov@calixo.net>
13330         * sheets/ER.sheet:
13331         * sheets/chronogram.sheet:
13332         * sheets/jigsaw.sheet:
13333         * sheets/sybase.sheet: Updated Dutch sheet translations from Dag
13334         Wieers <dag@wieers.com>
13336 2001-04-13  Hans Breuer  <hans@breuer.org>
13338         * app/app_procs.c (app_exit) : added g_return_if_fail (!app_exit_once)
13339         to ensure that all the deinitialization is only done once. Fixes
13340         recent app exit crash on win32
13342         * lib/dia_xml.c : provide isinf() replacement for msc which does only
13343         have _finite()
13345         * lib/libdia.def : updated
13347         * objects/makefile.msc : added wanlink.c 
13349         * objects/network/wanlink.c : added M_PI_2 definition for poor
13350         platforms which don't have one
13352         * objects/standard/arc.c :
13353         * objects/standard/zigzagline. c: part of ConectionBBExtras wasn't
13354         initialized which led to rather huge bounding boxes (try Ctrl^A on
13355         diagrams with Arcs or ZigZagLines).
13356         * objects/*/*.c : to avoid further bugs like the above changed all
13357         object initializations to g_malloc0 or g_new0
13360 2001-04-09  Cyrille Chepelov  <chepelov@calixo.net>
13362         * lib/paper.[ch]: get rid of "no previous prototype fo `foo'" by
13363         doing a s/T foo()/T foo(void)/ for all possible values of T and foo.
13365         * objects/UML/class.c: 
13366         * objects/UML/usecase.c:
13367         * objects/UML/large_package.c:
13368         * objects/UML/message.c:
13369         * objects/UML/object.c:
13370         * objects/UML/lifeline.c:
13371         * objects/FS/flow.c:
13372         * objects/FS/flow-ortho.c:
13373         * objects/FS/function.c:
13374         * objects/custom/custom_object.c:
13375         * objects/GRAFCET/vergent.c:
13376         * objects/chronogram/chronoref.c:
13377         * objects/SADT/box.c:
13378         * objects/SADT/annotation.c:
13379         * plug-ins/dxf/dxf-import.c:
13380         * plug-ins/xfig/xfig-import.c:
13381         * plug-ins/wpg/wpg.c:
13382         * app/command.c:
13383         * app/app_procs.c:
13384         * app/display.c: /* certainly more WIP than dead code there */
13385         Unused variables, unused static function definitions, forgotten or
13386         incomplete prototypes added or fixed, lack of const or unwanted const,
13387         etc. (mostly clean-ups of leftovers of the pre-properties era).
13388         Non-obvious cases bracketed by #define THIS_IS_PROBABLY_DEAD_CODE,
13389         please check these.
13391         * app/lineprops_area.c: More of the same. Missing prototypes
13392         added, and functions unused outside made static.
13394         * app/recent_files.c:
13395         * app/properties.c:
13396         * app/defaults.c: some variables are used only when doing a GNOME
13397         build.
13398         
13399         * app/magnify.c: missing #include <stdlib.h>.
13401         * app/paginate_gnomeprint.c: Unused variable; missing "message.h".
13403         These are a lot of clean-ups (by the way, this compiles and runs
13404         cleanly with "gcc-3.0 -O2 -Wall --std=gnu99" too !); please grep
13405         for DEAD_CODE, and if it's yours, judge it.
13406         
13407 2001-04-07  Cyrille Chepelov  <chepelov@calixo.net>
13409         * plug-ins/dxf-import.c: some progress with the arcs; still some
13410         clean-ups to do and line width scaling issues to figure out.
13412         * objects/standard/arc.c: start_point and end_point properties
13413         (duplicated from standard/line.c)
13415         * plug-ins/xfig/xfig-import.c: zip ! zap ! no more dead DXF import
13416         code there.
13417         
13418 2001-04-06  Cyrille Chepelov  <chepelov@calixo.net>
13420         * plug-ins/dxf-import.c: setlocale-related clean-ups and fixes ;
13421         preliminary support for arcs (doesn't work). Circles and ellipses are
13422         now transparent. Coordinate and width scaling are now a common 
13423         static constant (probably before morphing into a preference).
13424         
13425         * sheet/checktrans.py: improved error reporting. Made checktrans
13426         count lack of <name xml:lang="code"> as a lack of translation for
13427         language "code" (no, it's not a plot to bring down other
13428         language's scores !)
13429         
13430         * sheet/*.sheet: Ensured all sheets have an encoding="iso-8859-1"
13431         in the header, and have <name xml:lang="fr"> components.
13432         
13433 2001-04-05  Cyrille Chepelov  <chepelov@calixo.net>
13435         * objects/custom/custom_object.c: temporary hack to fix the shape
13436         bounding box reported by Ben A. Hetland. Proper fix isn't .87
13437         material, see bugzilla #52912.
13439 2001-04-05  Lars Clausen  <lrclause@cs.uiuc.edu>
13441         * objects/standard/image.c (get_directory): Now uses
13442         G_SEPARATOR_CHAR_S instead of "/"
13444         * sheets/network.sheet: 
13445         * sheets/Logic.sheet:
13446         * sheets/Flowchart.sheet:
13447         * sheets/Electric.sheet:
13448         * sheets/Circuit.sheet:
13449         * sheets/ER.sheet:
13450         * sheets/Pneumatic.sheet:
13451         * sheets/SDL.sheet:
13452         * sheets/UML.sheet:
13453         * sheets/GRAFCET.sheet:
13454         * sheets/MSE.sheet:
13455         * sheets/chronogram.sheet:
13456         * sheets/civil.sheet:
13457         * sheets/network.sheet:
13458         Danish translations.
13459         
13460         * objects/standard/image.c (get_directory): Changed get_directory
13461         to use g_dirname to find the directory part.
13463 2001-04-05  Cyrille Chepelov  <chepelov@calixo.net>
13465         * sheets/ER.sheet:
13466         * sheets/Electric.sheet:
13467         * sheets/Flowchart.sheet:
13468         * sheets/Logic.sheet:
13469         * sheets/network.sheet: More Dutch translations from Dag Wieers.
13471 2001-04-04  Cyrille Chepelov  <chepelov@calixo.net>
13473         * sheets/checktrans.py: now emits a warning when two descriptions
13474         for a single language code are found.
13476         * Makefile.am:
13477         * sheets/Makefile.am: -translation-reports now also depend on their
13478         checktrans.py
13479         
13480 2001-04-04  Cyrille Chepelov  <chepelov@calixo.net>
13482         * sheets/Circuit.sheet:
13483         * sheets/Contact.sheet:
13484         * sheets/Logic.sheet:
13485         * sheets/chronogram.sheet:
13486         * sheets/sybase.sheet: 
13487         Dutch translations from Dag Wieers <dag@wieers.com>
13489 2001-04-04  Cyrille Chepelov  <chepelov@calixo.net>
13491         * po-checktrans.py: Now shows the detailed counts alongside the
13492         percentage of translations.
13493         
13494 2001-04-03  Cyrille Chepelov  <chepelov@calixo.net>
13496         * Makefile.am:
13497         * po-checktrans (NEW):
13498         * po-checktrans.py (NEW): builds core-translation-report:
13499         percentages of core (gettext) translations done [Not placed into
13500         po/ where that should belong, because of integration fear^Wissues
13501         with gettextize]. 
13503         TO THE KIND ATTENTION OF PACKAGERS: core-translation-report and 
13504         sheets/sheet-translation-report probably ought to be copied on the 
13505         user's /usr/share/doc/dia (or equivalent) directory.
13507         * sheets/Makefile.am: sheet-translation-report now a simple
13508         EXTRA_DIST; make install won't install it by default. 
13509         
13510 2001-04-03  Cyrille Chepelov  <chepelov@calixo.net>
13512         * app/preferences.c: changed the default grid colour to something
13513         less intrusive. 
13515         * shapes/SDL/*.shape:
13516         * sheets/SDL.sheet: renamed all SDL shapes to conform to the
13517         "$LIBRARY - $NAME" convention. THIS REQUIRES FIXING THE EXISTING
13518         DIA FILES (well, for files using SDL), see the mailing list
13519         archive "SDL (ab)using the global shape namespace" for a script to
13520         do this conversion.
13522         * sheets/SDL.sheet: translated into French
13523         * sheets/network.sheet: fixed XML typos. Yay ! 100% :-)
13524         
13525 2001-04-02  Cyrille Chepelov  <chepelov@calixo.net>
13527         * lib/dia_xml.c: made data_point() more paranoid
13529         * sheets/Makefile.am:
13530         * sheets/checktrans (NEW):
13531         * sheets/checktrans.py: Made checktrans handle more gracefully the
13532         absence of python and python-xml packages, and made the error
13533         message more helpful.
13534         
13535 2001-04-01  Lars Clausen  <lrclause@cs.uiuc.edu>
13537         * lib/render_object.c (new_render_object): Made initial handles
13538         behave like on most other objects.
13540         * app/load_save.c (read_objects): Fixed premature free'ing ofr
13541         typestr causing garbage.
13543 2001-04-01  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
13545         * objects/FS/flow-ortho.c: Fixed a crashbug causes by not
13546         accouting for handle ordering through copy and save. (#51479)
13548 2001-03-31  Cyrille Chepelov  <chepelov@calixo.net>
13550         * sheets/Circuit.sheet: Norwegian translation mistagged to German.
13552 2001-03-31  Steffen Macke  <sdteffen@yahoo.com>
13554         * sheets/Circuit.sheet
13555         * sheets/UML.sheet
13556         * sheets/network.sheet: Updated German translations
13557         
13558 2001-03-30  Cyrille Chepelov  <chepelov@calixo.net>
13559         * lib/arrows.[ch]:
13560         * lib/widgets.c:
13561         * app/lineprops_area.c: The return of the revenge of the arrow
13562         heads. Now all types covered by ISO 10303-201 should be covered.
13563         
13564 2001-03-30  Cyrille Chepelov  <chepelov@calixo.net>
13566         * sheets/Flowchart.sheet: translations in probably Hungarian were
13567         a victim of cut-n-paste from the German one. Fixed (hopefully).
13568         * sheet/UML.sheet: translation in probably Norwegian was a victim
13569         of cut-n-paste from the French one. Fixed (hopefully).
13570         * sheets/Logic.sheet: French translation not tagged with
13571         xml:lang="fr".
13572         
13573         * sheets/checktrans.py:
13574         * sheets/Makefile.am: new file, sheet-translation-report, to be
13575         installed along the sheets, show how much of them has been
13576         translated into which language (I wish the result was prettier...)
13578         * po/README: most translators don't read this file, but anyway...
13580         * sheets/.cvsignore:
13581         * objects/network/.cvsignore: the usual negotiation with CVS.
13583 2001-03-30  Cyrille Chepelov  <chepelov@calixo.net>
13585         * sheets/*.sheet: French translations
13587 2001-03-28  Cyrille Chepelov  <chepelov@calixo.net>
13589         Added patch #52363 from Hubert Figuiere <hfiguiere@teaser.fr>:
13591         ** objects/network/network.c:
13592         ** objects/network/wanlink.c:
13593         ** objects/network/pixmaps/wanlink.c:
13594         ** sheets/network.sheet:
13595         ** objects/network/Makefile.am: a better object to use instead of
13596         the older WAN Connection.
13597         
13598         ** lib/geometry.[ch]: rotation matrix functions in geometry.c (derived from gimp)
13600         ** objects/GRAFCET/vector.c: renamed Vector to GRAFCETVector to avoid a
13601         name clash 
13603         * objects/GRAFCET/vector.c: Re-renamed GRAFCETVector into
13604         Arc; kept the C file name (because CVS wouldn't like it), and
13605         still registering the older object name (but advertising the newer
13606         one in sheets/GRAFCET.sheet).   
13608 2001-03-24  Hans Breuer  <hans@breuer.org>
13610         * app/dia.def : some plug-ins (currently only python, xfig) are using 
13611         functions from the dia executable. To get them working these functions 
13612         need to be explicit exported on win32. IMO the much cleaner way would
13613         be to move these functions to libdia, but that would require some
13614         long term restructuring ...
13616         * lib/libdia.def : updated
13618         * plug-ins/makefile.msc : build xfig plug-in
13620 2001-03-24  Hans Breuer  <hans@breuer.org>
13622         * app/diagram.c : g_strdup (dia->filename) because it will be
13623         g_free ()d
13625         * app/display.c : set ddisp->renderer to NULL after destruction.
13626         This may solve or help to identify erroneous access to it after
13627         destruction.
13629         * plug-ins/wmf/wmf.cpp : convert string from utf8 to wchar to
13630         get 'umlauts' working
13632 2001-03-22  Cyrille Chepelov  <chepelov@calixo.net>
13634         * object/chronogram/chronoline_event.c: stupid bug ; rises and falls
13635         were reversed... (look for the patch, and drink a beer to my
13636         stupidity)      
13637         
13638 2001-03-23  Hans Breuer  <hans@breuer.org>
13640         * app/app_procs.c : don't g_error () if the config directory
13641         can't be created (at least not on windoze) because it's quite
13642         common that the user don't read or understand the FAQ ...
13644         * app/cursor.c : use ddisplay_active () instead of active_display
13645         from app/display.c
13647         * app/display.[hc] : made active_display var static and provide
13648         an accessor funtion ddisplay_active_diagram ()
13650         * app/dia-props.c : don't store the active_diagram, but ask
13651         for it everytime it needed.
13653         * lib/properties.h : #include "intl.h"
13655         * lib/makefile.msc : need to take care of inclusion order to
13656         avoid clashes with gtk+2.0's gdk-pixbuf
13658         * objects/makefile.msc : added uml/stereotype.c to build
13660 2001-03-23  Lars Clausen  <lrclause@cs.uiuc.edu>
13662         * **/*.c: Added config.h to the remaining .c files, and changed
13663         all to be <config.h>.
13665 2001-03-22  Steffen Macke <sdteffen@yahoo.com>
13667         * lib/arrows.c
13668         * lib/arrows.h
13669         * lib/widgets.c
13670         * app/lineprops_area.c: added new arrow types with double
13671         heads
13672         
13673 2001-03-20  Steffen Macke <sdteffen@yahoo.com>
13675         * shapes/Civil/civil_gas_bottle.xpm
13676         * shapes/Civil/civil_gas_bottle.shape
13677         * sheets/civil.sheet
13678         * shapes/Civil/Makefile.am: Added gas bottle shape by Arne
13679         Battermann
13680         
13681 2001-03-20  Lars Clausen  <lrclause@cs.uiuc.edu>
13683         * objects/custom/shape_info.c (load_shape_info): 
13684         * objects/custom/shape_info.h: 
13685         * objects/custom/custom_object.c (custom_update_data): 
13686         Better support for text outside the box -- new attributes 'resize'
13687         and 'align' for text entity.  Align not fully supported yet.
13689         * lib/text.c (text_calc_boundingbox): Adding BB for cursor width.
13691 2001-03-20  James Henstridge  <james@daa.com.au>
13693         * app/interface.c (display_data_received_callback): comment out
13694         status message.
13696 2001-03-19  James Henstridge  <james@daa.com.au>
13698         * app/GNOME_Dia.oaf: rename from GNOME_Dia.oafinfo.
13700         * objects/UML/realizes.c: similar here.
13702         * objects/UML/implements.c: similar here.
13704         * objects/UML/component.c: similar here.
13706         * objects/UML/generalization.c: same here.
13708         * objects/UML/dependency.c: allow NULL for ->name and
13709         ->stereotype.  This fixes a number of problems in loading saved
13710         files.
13712         * lib/properties.c: various changes so that NULL string properties
13713         should work.
13715         * objects/standard/line.c (line_update_data):
13716         line->extra.start_long and line->extra.end_long were not being
13717         initialised.  This fixes potential problems with the bounding box
13718         of "Standard - Line" objects.
13720 2001-03-19  Hans Breuer  <hans@breuer.org>
13722         * app/commands.c : added win32 specific code to display a html
13723         file. #include "text.h" for text_delete_all prototype.
13725         * app/dia.ico :
13726         * app/dia.rc : (new) to give Dia win32 an icon
13728         * app/win32print.[ch] : new files to support direct postscript
13729         file printing on win32. Beware: it *requires* a ps-printer!
13731         * app/paginate_psprint.c : disable the signal code for win32 build
13732         and added small specific changes to support win32print.
13734         * app/makefile.msc : added win32print and linking shell32.lib
13736         * lib/libdia.def : updated
13738 2001-03-18  Kevin Breit <battery841@mediaone.net>
13740         * doc/en/dia-C.omf: Added file.  Dia should now list in the Nautilus
13741           Help tabs.
13743 2001-03-17  James Henstridge  <james@daa.com.au>
13745         * app/paginate_psprint.c (diagram_print_ps): add code that traps
13746         SIGPIPEs during printing.  This gets rid of a number of crashes
13747         caused by printing (eg. typing an incorrect print command).
13749         * dia.spec (%install): gzip the manpage.
13751         * lib/beziershape.c (beziershape_save): fix off by one error in
13752         beziershape save code, which was adding an extra segment to the
13753         object on save.
13755         * app/menus.c: add a separator in the gnome version of the help
13756         menu.
13758         * app/app_procs.c (app_init): add a --nosplash argument which
13759         disables the splash screen.
13761         * app/dia_embedd.c (main): don't leave the splash screen open for
13762         embeddable component.
13764         * app/splash.c (app_splash_init): the gtk_widget_show_now() call
13765         didn't seem to be showing the splash screen like expected, so I
13766         have replaced it with some code that calls gtk_main() until the
13767         first exposure of the window.
13769 2001-03-16  James Henstridge  <james@daa.com.au>
13771         * app/Makefile.am (EXTRA_DIST): add extra pixmaps.
13773         * objects/UML/Makefile.am (libuml_objects_la_SOURCES): add
13774         stereotype.h
13776         * lib/Makefile.am (libdia_a_SOURCES): add diavar.h here.
13778         * app/Makefile.am (dia_core_files): remove splash.h from file
13779         list, as it doesn't exist.
13781         * doc/en/Makefile.am (uninstall-local): remove the docdir on
13782         uninstall.
13784         * doc/Makefile.am (uninstall-local): target to remove the C
13785         symlink.
13787         * dia.spec (%files): include the documentation in the package.
13789         * app/menus.c (toolbox_menu_items): add menu item for manual,
13790         which calls help_manual_callback.
13792         * app/commands.c (help_manual_callback): find help file and load
13793         netscape to view it.
13795         * app/commands.h: add prototype for help_manual_callback()
13797         * doc/Makefile.am (helpdir): similar here.
13799         * doc/en/Makefile.am (helpdir): make the helpdir
13800         $(pkgdatadir)/help/en in the non gnome case.
13802         * configure.in (HAVE_GNOME): add conditional.
13804         * doc/en/Makefile.am: handle the graphics in a more general way,
13805         so it is easier for Kevin to add them to the build (just add them
13806         to the GRAPHICS var).
13808         * app/Makefile.am (embed_extra_print_files): make the case of
13809         building without gnome-print support but with bonobo support work.
13810         dia-embedd needs to be include the gnome-print
13812 2001-03-09  Cyrille Chepelov  <chepelov@calixo.net>
13814         * samples/Makefile.am: included all samples in the distribution....
13815         
13816 2001-03-09  Cyrille Chepelov  <chepelov@calixo.net>
13818         * configure.in: removed premature test for DPS. Added -*- m4 -*-
13819         at the beginning. Made HAVE_UNICODE non-default. po/es_ES.po has
13820         vanished, removed it from ALL_LINGUAS.
13822         * lib/charconv.[ch] (NEW): a very small wrapper around
13823         unicode_iconv to convert strings between utf8 and local charset
13824         (actually, ISO-8859-1, though one can do
13825         CFLAGS="-DEFAULT_8BIT_CHARSET=\"ISO-8859-2\"" and the like).
13827         * lib/ps-utf8.[ch] (NEW): A PostScript Unicoder ; a smallish
13828         library to help build Postscript streams which use as many custom
13829         font encodings as necessary to correctly represent all characters
13830         used (testing from users with non-latin1 and/or more than 256
13831         characters in routine use *very* welcome).
13833         * app/Makefile.am, lib/Makefile.am: integrated these into the
13834         build process.
13836         * shapes/Logic/.cvsignore (NEW): .cvsignore
13837         
13838         * app/render_eps.h: forwarded some changes Lars forgot to include.
13839         * app/render_eps.c: turned off ASCII85 and FILTERS, as this
13840         doesn't yet build.
13842 2001-03-08  Kevin Breit <battery841@mediaone.net>
13844         * doc/en/home_network.png: Added file.
13845         * doc/en/line_props.png: Added file.
13846         * doc/en/usage-objects.sgml: Added two graphics to file.
13847         * doc/en/usage-quickstart.sgml: Added one graphic to file.
13849 2001-03-06  Kjartan Maraas  <kmaraas@gnome.org>
13851         * app/grid.h: Place comment around text after #endif.
13852         * lib/bezier_conn.c: #include <string.h>.
13853         * lib/beziershape.c: #include <string.h>.
13854         * lib/connpoint_line.h: Comment after #endif.
13855         * lib/dia_dirs.c: #include <string.h>.
13856         * lib/element.c: Same.
13857         * lib/lazyprops.c: #include <config.h> and "intl.h".
13858         * lib/lazyprops.h: Comment out text after #endif.
13859         * lib/neworth_conn.c: #include <string.h>
13860         * lib/orth_conn.c: Same here.
13861         * lib/poly_conn.c: Here too.
13862         * lib/polyshape.c: And here.
13863         * lib/properties.c: Remove #include "intl.h" from here and add
13864         an array of static strings to work around bug in gettext that
13865         makes it miss strings in a #define body.
13866         * objects/GRAFCET/action_text_draw.h: Comment out text after #endif.
13867         * objects/GRAFCET/boolequation.h: Same here.
13868         * objects/chronogram/chronoline_event.h: Add prototype for
13869         destroy_cle().
13870         
13871 2001-03-05  Lars Clausen  <Lars R. Clausen <lrclause@cs.uiuc.edu>
13873         * objects/FS/function.c: 
13874         * objects/FS/flow.c: 
13875         * objects/FS/flow-ortho.c: 
13876         Updated to use properties.
13878 2001-03-03  James Henstridge  <james@daa.com.au>
13880         * lib/lazyprops.c (__propdlg_build_enum): translate the radio
13881         button labels when creating them.
13883 2001-02-28  Lars Clausen  <Lars R. Clausen <lrclause@cs.uiuc.edu>
13885         * objects/UML/actor.c
13886         * objects/UML/realizes.c 
13887         * objects/UML/implements.c 
13888         * objects/UML/generalization.c 
13889         * objects/UML/dependency.c 
13890         * objects/UML/constraint.c
13891         Updated to use properties.
13892         
13893         * objects/UML/stereotype.c 
13894         * objects/UML/stereotype.h
13895         Generalized to any kind of bracketting.
13896         
13897 2001-02-28  James Henstridge  <james@daa.com.au>
13899         * app/menus.c: add help entry to the help menu.  Need to get this
13900         working for the non GNOME case as well (maybe put help under
13901         $(datadir)/dia/help for non GNOME?)
13903         * doc/en/topic.dat: add a topic.dat file for GNOME menus.
13905         * doc/en/dia-manual.sgml (legalnotice): add an id attribute to
13906         this element so that we get a meaningful filename in the html
13907         translation.
13909         * doc/Makefile.am, doc/en/Makefile.am: new makefiles to handle the
13910         documentation.
13912         * configure.in (DB2HTML): add a check for the db2html program, and
13913         set an automake conditional if it is found.
13915         * Makefile.am: remove EXTRA_DIST rules that cover doc/ directory,
13916         and descend into doc/ directory while building.
13918         * configure.in (AC_OUTPUT): add doc/ makefiles to output list, now
13919         we need more complex rules for building the docs.
13921 2001-02-25  Hans Breuer  <hans@breuer.org>
13923         * config.h.win32 : some cleanup
13925         * app/prefererences.c : g_scanner_(freeze|thaw)_symbol_table
13926         are deprecated since glib-1.3.2. Sorry needing to use them
13927         contionally, but there is no glib-1.2 for win32
13929         * app/recent_files.c : use g_strescape (params) conditionally
13931         * lib/connection.c : include string.h for memcpy
13933         * lib/geometry.h : added some stuff for compatibility with
13934         msvc, which previously came from included config.h
13936         * lib/libdia.def : updated
13938         * objects/makefile.msc : updated
13940         * objects/GRAFCET/action.c(490) : fixed warning C4700: local variable 
13941         'extra' used without having been initialized
13943         * objects/network/bus.c(658) : initialize 'extra'
13945         * plug-ins/makefile.msc : updated
13947         * plug-ins/cgm/cgm.c :
13948         * plug-ins/pstricks/render_pstricks.c : 
13949         g_free() memory allocated by dia_image_rgb_data(). Plugs possibly 
13950         huge memory leaks.
13952         * plug-ins/python/python.c : use HAVE_DIRENT_H
13954 2001-02-23  Lars Clausen  <Lars R. Clausen <lrclause@cs.uiuc.edu>
13956         * lib/connection.c (connection_update_boundingbox): 
13957         Made the BB shrink on right and lower sides, too.
13959 2001-02-23  Kjartan Maraas  <kmaraas@gnome.org>
13961         * */*.c: #incude <config.h> at the top.
13962         * */*.h: Remove include of "config.h" since it should only
13963         be included in .c files and at the very top for things to
13964         work.
13965         * sheets/*.sheet: Updated Norwegian translations.
13966         
13967 2001-02-22  Lars Clausen  <Lars R. Clausen <lrclause@cs.uiuc.edu>
13969         * objects/UML/small_package.c: 
13970         * objects/UML/class.c: 
13971         * objects/UML/node.c: 
13972         * objects/UML/usecase.c:
13973         * objects/UML/lifeline.c: 
13974         * objects/UML/message.c:
13975         Various cleanup of properties in particular.  Now much more use of
13976         standard properties.
13978         * lib/diagramdata.c (layer_render): Visualization of bounding
13979         boxes, for debugging purpoises.
13981 2001-02-22  Cyrille Chepelov  <chepelov@calixo.net>
13983         * lib/geometry.h:
13984         * lib/connection.[ch]:
13985         * lib/poly_conn.[ch]:
13986         * lib/polyshape.[ch]:
13987         * lib/bezier_conn.[ch]:
13988         * lib/beziershape.[ch]:
13989         * lib/orth_conn.[ch]:
13990         * lib/neworth_conn.[ch]:
13991         * lib/element.[ch]: Changed a bit the _update_boundingbox()
13992         interface. Now the parent elements have an extra_spacing
13993         structure, which child objects just need to fill, to take care of
13994         most arrow & line width extra space needs.
13996         * objects/**/*.c: updated all objects to the new interface.
13997         While at it, killed all instances of (Object *) downcasts (phew !)
13999         * objects/GRAFCET/condition.c: removed the arrowhead, which IEC848
14000         doesn't speak about.
14001         
14002 2001-02-21  Lars Clausen  <Lars R. Clausen <lrclause@cs.uiuc.edu>
14004         * sheets/Logic.sheet: New sheet for Logic symbols.
14006 2001-02-21  James Henstridge  <james@daa.com.au>
14008         * app/menus.c (dia_gnome_menu_get_widget): new function to find a
14009         widget by its path name.  Walks the GnomeUIInfo heirachy rather
14010         than widget tree, compares untranslated label names and ignores
14011         underscores in the labels.
14012         (menus_get_item_from_path): use dia_gnome_menu_get_widget so that
14013         lookups are not dependent on the current locale, as with
14014         gnome_app_find_menu_pos.
14016         * acconfig.h: guard against multiple inclusion of config.h.
14018         * app/select.c (select_style_callback): simply set the selection
14019         style to the value of action.
14021         * app/menus.c (menus_init): simplify the item factory based menu
14022         code a bit.  It looks like it was using some code cut and pasted
14023         from the gimp, which looked a bit unnecessary.  Things work fine
14024         without it.
14025         (selectmenu): set the action to the type of selection mode
14026         requested.
14027         (display_menu_items): use the symbolic enumeration values for the
14028         action field.
14030         * app/plugin-manager.c: 
14031         * app/plugin-manager.h: 
14032         * app/filedlg.c:
14033         * app/filedlg.h: 
14034         * app/select.c:
14035         * app/select.h: change prototypes.
14037         * app/commands.c: update all callback prototypes, and get rid of
14038         some #ifdef GNOME's.
14040         * app/commands.h: change function prototypes.
14042         * app/dia_embedd.c (save_fn):
14043         s/ex_Bonobo_IOError/ex_BonoboStorage_IOError/
14045         * app/menus.c (menus_init): for gnome menus, use
14046         gnome_app_fill_menu_custom and pass in a GnomeUIBuilderData
14047         structure that proxies the callbacks to have the same signature as
14048         GtkItemFactory type 1 callbacks.
14049         (menus_init): for GTK menus, change from callback type 2 to type
14050         1.
14051         (display_menu_items): add back tearoffs.  I don't know who removed
14052         these for the gtk menu case.
14054 2001-02-20  Kevin Breit <battery841@mediaone.net>
14056         * doc/en/usage-objects-special.sgml: Fixed a few of the special
14057         object descriptions.  More to come in the next few days.
14059 2001-02-20  Lars Clausen  <lrclause@cs.uiuc.edu>
14061         * app/render_eps.c: Fixed for internationalized floating point
14062         output. 
14064         * objects/UML/note.c: Fixed properties -- was missing
14065         Get/ApplyPropertiesFunc.  Also improved update to recalculate text
14066         position. 
14068 2001-02-19  Lars Clausen  <lrclause@cs.uiuc.edu>
14070         * plug-ins/xfig/xfig-import.c: 
14071         File added importing xfig files.  Still very rough, but good
14072         enough to let others hack on it.
14074 2001-02-07  Cyrille Chepelov  <chepelov@calixo.net>
14076         * app/interface.c:
14077         * app/linewidth_area.c:
14078         * lib/lazyprops.c:
14079         * lib/properties.c:
14080         * lib/widgets.c:
14081         * objects/ER/attribute.c:
14082         * objects/ER/entity.c:
14083         * objects/ER/relationship.c:
14084         * objects/custom/custom_object.c:
14085         * objects/flowchart/box.c:
14086         * objects/flowchart/diamond.c:
14087         * objects/flowchart/ellipse.c:
14088         * objects/flowchart/parallelogram.c:
14089         * objects/standard/box.c:
14090         * objects/standard/textobj.c: per Vlad Harchev's request, made
14091         page sizes of gtk_adjustments different than their step sizes.
14092         When sensible values of page size weren't found (overwhelming
14093         majority of cases), page sizes were set to 10.0 * respective step
14094         size.   
14096 2001-02-07  Lars Clausen  <lrclause@cs.uiuc.edu>
14098         * objects/network/hub.c: 
14099         Patch from Hubert Figuiere applied, adding connection points.
14101 2001-02-02  James Henstridge  <james@daa.com.au>
14103         * app/display.c (new_display): set update id to 0 here.
14104         (ddisplay_update_handler): rename from ddisplay_flush, and set
14105         update_id to 0 at end of processing.
14106         (ddisplay_flush): new implementation that simply sets an idle
14107         handler to perform the actual drawing.
14109         * app/display.h: add structure member to hold the redraw idle
14110         handler id.
14112 2001-01-31  Lars Clausen  <lrclause@cs.uiuc.edu>
14114         * objects/standard/ellipse.c (ellipse_copy): 
14115         * objects/standard/zigzagline.c (zigzagline_copy): 
14116         Fix of copying provided by Martin Hawlisch.
14118 2001-01-23  Kevin Breit <battery841@mediaone.net>
14120         * doc/en/graphics/: added directory
14122         * doc/en/graphics/greendots.png: added file
14124         * doc/en/*sgml: made minor and some major changes to prepare for 1.4
14125         release.
14127 2001-01-23  Kevin Breit <battery841@mediaone.net>
14129         * doc/en/*sgml: made some grammar changes and fixed a few markup bugs.
14130                         thanks to John Fleck!
14132 2001-01-21  Kevin Breit <battery841@mediaone.net>
14134         * doc/en/*sgml: made just minor changes to a few lines; nothing major.
14136 2001-01-12  Michael Meeks  <michael@helixcode.com>
14138         * app/dia_embedd.c (init_server_factory): do a bonobo_activate
14139         so our POA gets setup properly.
14141         * app/paginate_gnomeprint.c (paginate_gnomeprint): g_free
14142         things we g_malloc.
14144         * configure.in: Use bonobox_print.
14146         * app/dia_embedd.c (embeddable_factory): add print interface.
14147         (object_print): impl.
14149 2001-01-11  Michael Meeks  <michael@helixcode.com>
14151         * app/dia_embedd.c (embeddable_factory): aggregate PersistFile.
14152         (load_fn, save_fn): impl.
14153         (view_factory): hide modified status bar, & use activate fn.
14154         (refresh_view): force redraws of the views.
14155         (view_show_hide): split from
14156         (dia_view_activate): here.
14158         * app/diagram.c (diagram_load_into): split from diagram_load.
14159         (new_diagram): simplify bu splittin stuff into
14160         (diagram_init): here.
14162 2001-01-10  Steffen Macke <sdteffen@yahoo.com>
14164         * shapes/jigsaw/*.shape: replaced #000000 with foreground
14165         and #ffffff with background
14166         
14167 2001-01-08  Steffen Macke <sdteffen@yahoo.com>
14169         *configure.in: GTK+-build was broken due to missing
14170         have_bonobo=no
14171         
14172 2001-01-06  Michael Meeks  <michael@helixcode.com>
14174         * app/dia_embedd.c (main): add running context support.
14175         (dia_embeddable_destroy): remove old running object counting.
14176         (embeddable_factory): ditto.
14177         (view_factory): comment out menu path hiding.
14179         * lib/sheet.c (load_register_sheet): use free to free
14180         stuff from libxml not g_free.
14182         * acconfig.h: kill cover for USE_BONOBOX and USE_OAF
14184         * configure.in: remove USE_OAF checks, check for a precice
14185         Bonobo version >= 0.31, revamp bits.
14187         * app/dia_embedd.c (init_server_factory): upd.
14188         (init_dia_factory): remove OAF conditionals, everything uses
14189         oaf now.
14191         * app/GNOME_Dia.oafinfo: rename OAFIIDs
14193         * app/Makefile.am: remove ancient gnorba code.
14194         rename dia.oafinfo to GNOME_Dia.oafinfo
14196 2001-01-07  Hans Breuer <Hans@Breuer.Org>
14198         * config.h.win32
14199         * install.win32
14200         * readme.win32 : some more files required or useful to build 
14201         Dia on win32
14203         * plug-ins/wmf/wmf.cpp : fixed open issues like fill_arc and
14204         fill_bezier implementation, boundary drawing in fill mode, etc.
14205         Next one complaining gets the source, uncommented ...
14207         * shapes/network/router-symbol.xpm 
14208         * shapes/network/switch-atm-symbol.xpm 
14209         * shapes/network/switch-symbol.xpm : removed "-*- picture -*- "
14210         from /* XPM */ header, cause it stopped Dia/gdk_pixbuf to detect 
14211         the files as XPMs. Maybe the X versions of these functions are more
14212         tolerant ...
14214 2001-01-06  Steffen Macke <sdteffen@yahoo.com>
14216         * plug-ins/python/Makefile.am: added libart path
14218         * plug-ins/python/python.c: added dirent.h
14220         * configure.in: added es_ES and pt_BR to ALL_LINGUAS
14221         
14222 2001-01-06  Hans Breuer <Hans@Breuer.Org>
14224         * objects/uml/actor.c
14225         * objects/uml/branch.c
14226         * objects/uml/class.c
14227         * objects/uml/classicon.c
14228         * objects/uml/component.c
14229         * objects/uml/large_package.c
14230         * objects/uml/node.c
14231         * objects/uml/note.c
14232         * objects/uml/object.c
14233         * objects/uml/small_package.c
14234         * objects/uml/state.c
14235         * objects/uml/usecase.c : started to implement the generic property
14236         interface for the uml objects. Would appreciate some help on how
14237         to implement properties which are list of properties themselves,
14238         e.g. member functions and their parameters of UMLClass.
14240 2001-01-06  Hans Breuer <Hans@Breuer.Org>
14242         * plug-ins/python/diamodule.c : finally ported to win32.
14243         Added new objects and implemented register_export function.
14245         * plug-ins/python/pydia-object.h
14246         * plug-ins/python/pydia-display.c
14247         * plug-ins/python/pydia-handle.c
14248         PyObject_HEAD_INIT needs some tweakink on win32. Done in
14249         pydia-object.h; others files simply using it.
14251         * plug-ins/python/pydia-layer.c : reflect 
14252         layer_find_closest_connection(_)point renaming
14254         * plug-ins/python/pydia-object.c : add property properties.
14255         Also change bounding_box to DiaRectangle.
14257         * plug-ins/python/python.c : extended error reporting; use
14258         all *.py files from Dia's plug-in dir instead of hardcoded
14259         test.py. This sollution should be fine with Win32, but on
14260         Unix it may need some tweaking (dunno) ...
14262         * plug-ins/python/export-object.py
14263         * plug-ins/python/export-render.py : test and documentation 
14264         implementations for export filter implementations in Python
14266         * plug-ins/python/pydia-color.[hc]
14267         * plug-ins/python/pydia-diagramdata.[hc]
14268         * plug-ins/python/pydia-error.[hc]
14269         * plug-ins/python/pydia-export.[hc]
14270         * plug-ins/python/pydia-font.[hc]
14271         * plug-ins/python/pydia-geometry.[hc]
14272         * plug-ins/python/pydia-image.[hc]
14273         * plug-ins/python/pydia-properties.[hc]
14274         * plug-ins/python/pydia-property.c
14275         * plug-ins/python/pydia-render.c : new objects in new files 
14277         * plug-ins/python/makefile.am : added new files but can't test it
14279         * plug-ins/python/pydia.def
14280         * plug-ins/python/makefile.msc : for win32 build
14282         * plug-ins/cgm/cgm.c
14283         * plug-ins/dxf/dxf-import.c
14284         * plug-ins/dxf/dxf-export.c
14285         * plug-ins/hpgl/hpgl.c : reflect export API change
14287         * plug-ins/shape/shape-export.c : reflect export API change
14288         and check for libart (better the availibility of a png exporter) 
14289         at run-time instead of compile-time. 
14291 2001-01-06  Steffen Macke <sdteffen@yahoo.com>
14293         * app/recent_files.h was missing from Hans's commit
14295         * plug-ins/shape/shape_export.c: shape export was broken
14296         due to interface changes
14297         
14298 2001-01-05  Hans Breuer <Hans@Breuer.Org>
14300         Applied Steffen's recent file list patch :
14301         * app/Makefile.am : added recent_files.[hc]
14302         * app/diagram.c : add files to recent file list
14303         * app/menus.c : add recent file menu
14304         * app/app_procs.c : changed initialization order to
14305         make recent file list work with command line processing.
14307         The Filter export()/import() functions have got an additional 
14308         parameter to allow multiple filters via one C callback (required
14309         for Python bindings)
14311         * app/commands.[hc] : corrected the signature for gtk menu callback
14312         functions, which actually use the second or third parameter. This
14313         is the absolute minimum change to make these functions/menu entries
14314         work again. Using the other possible gtk menu callback signature
14315         would have required one more function to change. (see mailing list
14316         thread "Objects/Align/Equal Distance" for more information.
14318         * app/disp_callbacks.c : applied Gustavo J.A.M. Carneiro's
14319         zoom-combo focus patch
14321         * app/display.c
14322         * app/interface.c : wrapped the Zoom Combo code into 
14323         #ifndef WITHOUT_ZOOM_COMBO because IHMO it isn't an useabilty
14324         improvement but cluttering the user interface. Also it wasn't
14325         compiling on Win32 anyway. The win32 version does define 
14326         WITHOUT_ZOOM_COMBO to keep the old look. 
14327         There are plans to use the statusbar to display size and placement
14328         of selected objects, whereas the Zoom Combo would need to get out
14329         of the way as well.
14331         Added "Save Changes?" to diagram close dialog. Hopefuly the
14332         Yes/No/Cancel option isn't too much windoze like. IHMO this is
14333         an useability improvement.
14335         * app/export_png.c
14336         * app/filedlg.c
14337         * app/load_save.c
14338         * app/layer_dialog.c
14339         * app/paginate_psprint.c
14340         * app/render_eps.c
14341         - reflect signature changing of filter->export function
14342         - replaced '/' with G_DIR_SEPARARTOR where appropriate
14344         * app/diaunitspinner.c
14345         * app/render_libart.c
14346         added misssing headers like <string.h>
14348         * app/object_ops.c : fixed copy&paste bug in dialog string
14350         * app/splash.c : gdk_widget_show_now () does not ensure actual
14351         drawing of the splash screen, at least not on win32. Reuse the
14352         previous implementation with gtk_main_iteration() again.
14354         * */makefile.msc : make use of the build module (available in
14355         gnome-cvs/build. Updated for other source changes
14357         * lib/filter.h : added an user_data pointer to <ex/im>port()
14358         function signature and Dia<Im/Ex>portFilter to allow different
14359         filters to reuse the same callback function
14361         * lib/font.c : #include <string.h>
14363         * lib/orth_conn.c 
14364         * lib/poly_conn.c 
14365         * lib/poly_shape.c 
14366         * lib/neworth_conn.c
14367         * lib/text.c : don't mix allocator functions (g_)realloc, free, ...
14369         * */*.def : export function definition files required by win32 build
14371         * objects/custom/custom.c : #include <string.h>
14373         * plug-ins/pstricks/render_pstricks.c
14374         * plug-ins/shape/shape_export.c
14375         * plug-ins/svg/render_svg.c
14376         reflect changes to filter export function signature
14378         * plug-ins/wmf/wmf.cpp : fixed indent and scaling. It now should
14379         mostly work as expected
14380         * plug-ins/wmf/wmf_gdi.[hc] : Updated comment. Still not used
14381         to build the wmf plug-in because on the one hand the GDI emulation 
14382         isn't finished and on the other hand it isn't required when building
14383         for win32. Is there anybody out there, who wants to save WMF on non
14384         windoze platforms ?
14386         * plug-ins/wpg/wpg.cpp : fixed scaling to take axis dependent
14387         offset into account.
14389 2001-01-02  Steffen Macke <sdteffen@yahoo.com>
14391         * app/Makefile.am: added missing plug-ins to run_dia.sh
14393         * lib/paper.c: added paper sizes A0, A1, A2
14395         * objects/UML/class.c
14396         objects/UML/class.h
14397         objects/UML/class_dialog.c: added support for colored UML
14398         classes
14399         
14400 2000-12-30  Kevin Breit <battery841@mediaone.net>
14402         * doc/en/usage-customization.sgml: added more content
14404 2000-12-24  Kevin Breit <battery841@mediaone.net>
14406         * doc/en/usage-layers.sgml: added file, contributed by Remypsb
14407         <remy.viard@laposte.net>
14409 2000-12-24  Steffen Macke <sdteffen@yahoo.com>
14411         * added limiting lines to Civil Engineering sheet,
14412         fixed vertical pump icon
14413         
14414 2000-12-20  Steffen Macke <sdteffen@yahoo.com>
14416         * updated/additional Civil Engineering shapes: better icons,
14417         shapes use foreground/background colors now and are filled
14418         
14419 2000-12-03  Kevin Breit  <battery841@mediaone.net>
14421         * doc/en/dia-manual.sgml Integrated a few diffs.  New section should be
14422         the selection <sect1>
14424 2000-11-29  Fredrik Hallenberg  <hallon@lysator.liu.se>
14426         * app/load_save.c (diagram_data_save): avoid using obsoleted
14427         libxml calls (only matters when compiling with libxml2)
14429 2000-11-25  James Henstridge  <james@daa.com.au>
14431         * app/disp_callbacks.c (ddisplay_drop_object): add a function to
14432         handle the tool drops on the canvas.
14434         * app/interface.c (display_data_received_callback): do the check
14435         to make sure that the drag is from a local toolbox here as well.
14437         * app/interface.c (create_tools): unref the pixmap/mask after
14438         creating the GtkPixmap.
14439         (tool_setup_drag_source): function to set up a drag source for
14440         create object tool buttons.
14441         (create_tools): setup drag source for CREATE_OBJECT_TOOL's.
14442         (fill_sheet_wbox): same here.
14443         (create_display_shell): set up the display canvas as a drag
14444         destination.
14445         (display_drop_callback, display_data_received_callback): functions
14446         to handle drops of tool buttons.
14448         * app/menus.c (menus_init): don't use gnome_popup_menu_new().  It
14449         does weird shit to the user_data pointer for a menu item.  Object
14450         alignment should work again now.
14452         * app/splash.c (get_logo_pixmap): don't unref the bitmap if it is
14453         NULL, and mark this function static.
14454         (app_splash_init): use gtk_widget_show_now() instead of the
14455         gtk_main_iteration loop.
14456         (app_splash_init): connecting gtk_widget_destroy to the destroy
14457         signal of a widget seems pretty useless.
14459 2000-11-23  Kevin Breit <battery841@users.sourceforge.net>
14461         * doc/en/dia-manual.sgml:
14462                 Added sect1 for advanced object types.  Starting development
14463                 on that part.
14465 2000-11-18  Kevin Breit <battery841@mediaone.net>
14467         * doc/en/dia-manual.sgml:
14468                 Stupid spelling fixes.
14470 2000-11-18  Kevin Breit <battery841@mediaone.net>
14472         * doc/en/dia-manual.sgml:
14473                 Just some small changes I made.  Props to Greg LeBlanc on the
14474                 recommendations.
14476 2000-11-17  Alexander Larsson  <alla@lysator.liu.se>
14478         * app/display.c:
14479         (ddisplay_add_display_area): Clip input rectangle to
14480         the visible part of the display.
14481         (ddisplay_scroll): Optimization, don't scroll and
14482         redraw if moving to the same position as before.
14484         * app/render_libart.c (renderer_libart_copy_to_window):
14485         Removed sanity check. Now moved to ddisplay_add_display_area().
14487         * lib/diavar.h:
14488         Added return at end of file.
14489         
14490 2000-11-13 Kevin Breit <battery841@mypad.com>
14491         * doc/en/dia-manual.sgml
14492                 Commited manual changes from Henry House <hajhouse@houseag.com>
14494 2000-10-21 Hans Breuer <Hans@Breuer.Org>
14495         * lib/beziershape.c :
14496                 The previous code was accessing unowned memory due to IHMO
14497                 wrong index calculation. Now it appears to be fixed.
14498                 *Please Review!*
14500         * lib/makefile.msc
14501         * plug-ins/makefile.msc
14502         * objects/makefile.msc
14503         * app/makefile.msc: (new files)
14504                 Makefiles for Dia on Win32, Micro$oft VC only.
14506         * plug-ins/pstricks/render_pstricks.c
14507         * plug-ins/dxf/dxf-import.c
14508         * plug-ins/shape/shape-export.c
14509         * plug-ins/svg/render_svg.c
14510         * app/commands.c
14511         * app/filedlg.c
14512         * app/preferences.c
14513         * app/render_eps.c
14514         * lib/sheet.c
14515         * lib/plug-ins.c
14516         * objects/custom/custom.c
14517         * objects/standard/image.c
14518                 portability (not only win32): use HAVE_UNISTD_H, HAVE_DIRENT_H 
14519                 where   appropriate, add missing prototypes like <string.h>
14521         * plug-ins/wmf/wmf_gdi.cpp
14522         * plug-ins/wmf/wmf_gdi.h:
14523                 start of wmf write functions for non Win32 platform. Not 
14524                 finished yet. The other way to get it working maybe to
14525                 link the plug-in against wine libs.
14526                 
14527         * plug-ins/wpg/wpg.c : add missing brace
14529         * app/load_save.c :
14530                 Handling for unknown objects at load time. Previously Dia
14531                 was crashing, if you try to load a file referencing objects
14532                 whiches plug-ins aren't installed/available. Now it spits out 
14533                 a warning and ignores the unknown objects.
14535         * app/interface.c
14536                 toolbox DND support for files like The Gimp does it.
14538         * app/main.c
14539         * app/app_procs.h
14540                 Simple splash screen support and usage.
14542         * app/app_procs.c
14543                 Splash screen, portability fixes, dont' g_error if there is
14544                 g_get_homedir return NULL. This may remove the one and only
14545                 FAQ for Win32.
14547         * app/menus.c :
14548                 Make it compile without ENABLE_NLS
14550         * app/render_libart.c :
14551                 Sanity check to avoid calling libart with wrong window coordinates.
14552                 They come from the update handler. Direct Gdk is dealing nicely
14553                 with coordinates out of range, libart does access un-owned memory
14554                 in this case, mostly causing crashes.
14556         * app/winmain.c: (new file) Export the Win32 Gui version of the
14557                 main function. This file is only required for Windoze.
14559         * app/splash.c: (new file) splash screen implementation
14561         * lib/color.h
14562         * lib/font.h
14563         * lib/diavar.h: (new file)
14564                 moved special variable export code to diavar.h, because it is
14565                 needed in color.h and font.h
14567         * lib/paper.c :
14568                 M$VC cann't export inlined functions. Quick hack to let it
14569                 link again. Probably the glib mechanics should be used here?
14571         * objects/UML/lifeline.c : initialize var before usage
14573         * objects/GRAFCET/step.c : removed unused var
14575 2000-10-14  James Henstridge  <james@daa.com.au>
14577         * app/render_gnomeprint.c (draw_image): change code so images
14578         don't get flipped when printing.
14580         * app/paginate_gnomeprint.c (diagram_print_gnome): check to make
14581         sure that the return value of
14582         gnome_print_context_new_with_paper_size is not NULL.
14584         * app/render_gnomeprint.c (draw_arc): add code to convert arcs
14585         into a series of bezier segments.
14586         (fill_arc): similar code to handle filled arc segments.
14588 2000-10-12  Fredrik Hallenberg  <hallon@lysator.liu.se>
14590         * app/app_procs.c
14591         * app/commands.c
14592         * app/dia-props.c
14593         * app/diagram.c
14594         * app/diagram.h
14595         * app/disp_callbacks.c
14596         * app/display.c
14597         * app/linewidth_area.c
14598         * app/paginate_psprint.c
14599         * app/preferences.c
14600         * app/undo.c
14601         * app/font.c
14602         * app/message.c
14603         * app/neworth_conn.c
14604         * app/orth_conn.c
14605         * objects/standard/box.c: various small changes to get rid of 
14606         annoying warnings (eg faulty prototypes and unused variables)
14608         * app/disp_callbacks.c
14609         * app/cursor.h
14610         * app/magnify.c
14611         * app/magnify.h: update magnify tool icon when pressing/releasing
14612         shift. I will try to make something more general so that similar
14613         things can be used by other tools.
14615         * shapes/SDL/inout.shape
14616         * shapes/SDL/return.shape: fixed some typos
14618 2000-10-09  James Henstridge  <james@daa.com.au>
14620         * objects/custom/shape_info.c (parse_path): apply patch from
14621         Robert Young <robertdotyoung@dsto.defence.gov.au> to fix bug
14622         #25221
14624 2000-10-08  James Henstridge  <james@daa.com.au>
14626         * objects/standard/image.c (image_set_props): if the file could not
14627         be loaded, show the broken image icon.
14629         * plug-ins/Makefile.am (SUBDIRS): add shape to the subdirs list.
14631         * plug-ins/shape/*: the shape export plugin by Steffen Macke.
14633         * app/interface.c (fill_sheet_wbox): use gdk-pixbuf to load the
14634         object icon when loading from a file.  This allows you to have PNG
14635         icon files for shapes.
14637 2000-10-07  James Henstridge  <james@daa.com.au>
14639         * app/Makefile.am (dia_LDADD): remove GDK_IMLIB_LIBS reference.
14641         * lib/Makefile.am, app/Makefile.am (INCLUDES): remove
14642         GDK_IMLIB_CFLAGS reference.
14644         * app/commands.c (help_about_callback): remove imlib code.
14646         * lib/dia_image.c: only include the pixbuf version of the image
14647         routines.
14649         * acconfig.h: remove the HAVE_GDK_PIXBUF flag from here.
14651         * configure.in (CPPFLAGS): remove the check for imlib, as we now
14652         require gdk-pixbuf.
14654         * plug-ins/pstricks/render_pstricks.c (new_pstricks_renderer):
14655         conditionally define \setfont as well.
14657 2000-10-05  James Henstridge  <james@daa.com.au>
14659         * plug-ins/pstricks/render_pstricks.c (new_pstricks_renderer): fix
14660         preamble so that we define \setlinejoinmode and \setlinecaps
14661         commands conditionally on them being undefined.  This way, the
14662         pstricks output files should work without modification, and will
14663         support the commands when they are implemented in pstricks.
14665 2000-10-05  Szabolcs Ban  <shooby@gnome.hu>
14667         * dia.desktop: added hungarian translations to dia.desktop
14669 2000-10-04  James Henstridge  <james@daa.com.au>
14671         * sheets/UML.sheet: fix typo.
14673         * objects/custom/shape_info.c: use strtod instead of g_strtod.
14674         (parse_path): actually call setlocale around strtod calls.
14676         * lib/dia_xml.c: use strtod rather than g_strtod.  We wrap each
14677         call in setlocale(LC_NUMERIC, "C"), so there is no reason to call
14678         the g_strtod wrapper.
14680         * shapes/SDL/: add SDL shapes from Rubens Ramos
14681         <rubens_ramos@yahoo.com>
14683         * acinclude.m4 (DIA_CHECK_CFLAG): fix up macro.
14685         * sheets/Makefile.am (SHEETS): add SDL.sheet to list.
14687         * shapes/MSE/: add Mobile Subscriber Equipment shapes from
14688         W. Michael Petullo <mike@flyn.org>.
14690         * sheets/Makefile.am (SHEETS): add civil.sheet (which got missed
14691         from the 0.86 tarball) and jigsaw.sheet.
14693         * configure.in: add shapes/jigsaw/Makefile to list of generated files.
14695         * shapes/jigsaw/: jigsaw shapes from Martin Hawlisch.
14697         * shapes/network/: add network-additional shapes here.
14699         * sheets/network.sheet: add the network-additional shapes from
14700         Martin Hawlisch <Martin.Hawlisch@bflow.com> to the main network
14701         sheet.
14703 2000-09-30  Fredrik Hallenberg  <hallon@lysator.liu.se>
14705         * configure.in: Updated ALL_LINGUAS
14707         * po/nl.po: Removed newline from translation
14709 2000-09-17  Asbjorn Pettersen  <asbjornP@dualog.no>
14711         * app/commands.c (help_about_callback): Use G_DIR_SEPARATOR_S in 
14712         logo filename generation. 
14714         * lib/dia_dirs.c (dia_get_data_directory): Handle empty subdir better.
14715         Avoiding "//dia_logo.png".
14717 2000-09-16  Asbjorn Pettersen  <asbjornP@dualog.no>
14719         * app/filedlg.c: add include <sys/types.h> to
14720         remove warning. (OS/2)
14722 2000-09-13  Cyrille Chepelov <chepelov@calixo.net>
14724         * objects/chronogram/chronoline_event.c (reparse_clevent):
14725         the __checksum routine was simply bogus. Redone it in a slightly
14726         saner way (reported by Michael Farr <mfarr@cs.latrobe.edu.au>).
14728 2000-09-10  Asbjorn Pettersen  <asbjornP@dualog.no>
14730         * app/create_object.c (create_object_button_press): 
14731         * app/modify_tool.c (click_select_object): 
14732         * lib/object.h: select renamed to selectf to prevent
14733         compiler problems with function select().  OS/2 version.
14735 2000-09-08  Karsten Weiss  <knweiss@gmx.de>
14737         * po/de.po: Updated.
14739 2000-09-07  Karsten Weiss  <knweiss@gmx.de>
14741         * dia.desktop: Added German translation
14742         * app/menus.c: "Diagram Propeties..." -> "Diagram Properties..."
14744 2000-08-29  Manuel de Vega Barreiro <barreiro@arrakis.es>
14746         * configure.in (ALL_LINGUAS): added "es"
14748 2000-08-28  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
14750         * app/magnify.c:
14751         * app/cursor.h:
14752         * app/cursor.c:
14753         * app/scroll_tool.c:
14754         Standardized cursor function get_cursor().  Magnify now has
14755         looking-glass cursor with + and -.
14757         * app/create_object.c (create_object_button_press): 
14758         Newly created connections now snap to connection points even when
14759         off the grid. 
14761 2000-08-17  Daniel Egger  <egger@suse.de>
14763         * app/menus.c: #ifdef'ed some code for the none GNOME
14764         case.
14765         * app/dia_embedd.c: Changed obvious hackery. Can anyone
14766         please have a look at the GNOME UI menu creation? The
14767         gnome-app-helper code is ages old and plainly broken!
14769 2000-08-15  Daniel Egger  <egger@suse.de>
14771         * app/commands.c:
14772         * app/commands.h:
14773         * app/diagram.c:
14774         * app/display.c:
14775         * app/menus.c:
14776         * app/select.c: First big patch to get the menus
14777         working again in the international version. Copied
14778         some code written by Sven and me from GIMP and
14779         thus implemented automatic tearoffmenu creation and
14780         proper translation. I also removed that pseudo
14781         radiomenu hack and cleaned up several translation
14782         hacks which have never really worked. All in all
14783         this is part I of the big menu patch. Enjoy and tell
14784         me if you detect any problems.
14786 2000-08-14  Daniel Egger  <egger@suse.de>
14788         * sheets/UML.sheet: Changed one German translation as
14789         suggested by Heribert Schuetz <hs@heribert-schuetz.de>.
14791 2000-08-10  Fredrik Hallenberg  <hallon@lysator.liu.se>
14793         * app/diapagelayout.c:
14794         * lib/diagramdata.c:
14795         * lib/diagramdata.h:
14796         * lib/Makefile.am:
14797         * lib/paper.c:
14798         * lib/paper.h: honour PAPERCONF env variable and /etc/papersize when
14799         selecting paper size for a new diagram. TODO: Use libpaper if 
14800         available and use gnome_paper-stuff if using GNOME.
14802         * sheets/Electric.sheet: fixed typo.
14803         
14804 2000-08-08  James Henstridge  <james@daa.com.au>
14806         * po/README: added a readme file to tell translators to translate
14807         the .sheet files as well.
14809         * app/commands.c (help_about_callback): fix small bug where we tried
14810         to gdk_bitmap_unref() the mask for the about box image, even though
14811         it was NULL.  Now check for a NULL mask.
14813 2000-08-07  Daniel Egger  <egger@suse.de>
14815         * sheets/*.sheet: Added translations for the name
14816         in the toolbar tab. Brushed up some descriptions 
14817         and some translations a bit.
14819 2000-08-06  James Henstridge  <james@daa.com.au>
14821         * plug-ins/svg/render_svg.c (new_svg_renderer): update public
14822         identifier and dtd url for SVG output.
14823         (new_svg_renderer): fix the output of the viewBox output.  The
14824         second two numbers are the width and height -- not the right
14825         and bottom sides of the box.
14827         * shapes/*/*.shape: update svg namespace URI.
14829         * objects/custom/shape_info.c (load_shape_info): change the
14830         namespace URI for custom shapes yet again to match the Candidate
14831         Recommedation.  It looks like this one will probably be the final
14832         one.
14834         * app/display.c (new_display): remove the code that sets ic and
14835         ic_attr members to NULL, as one of the previous function calls
14836         causes the display to be realised.  This means that the ic gets
14837         lost.  Thanks to Yukihiro Nakai <ynakai@redhat.com> for finding
14838         this one.
14840 2000-08-06  James Henstridge  <james@daa.com.au>
14842         * shapes/Makefile.am (SUBDIRS): add Civil back to list.
14844         * NEWS: fixed date in NEWS file, as I will release today.
14846         * README: updated the README a little.  Added note that Dia is now
14847         a GNU program.
14849         * dia.spec: fix up spec file.
14851         * plug-ins/wpg/wpg.c: changed DIAG_NOTE stuff here as well.
14853         * plug-ins/hpgl/hpgl.c: change Hans's DIAG_NOTE stuff so that we don't
14854         get heaps of warnings when you turn off debugging.
14855         Also made a few other warning fixes.
14857 2000-08-02  James Henstridge  <james@daa.com.au>
14859         * plug-ins/svg/Makefile.am (INCLUDES): add XML_CFLAGS to INCLUDES.
14861         * configure.in: update version number.
14863 2000-08-01  James Henstridge  <james@daa.com.au>
14865         * app/commands.c (help_about_callback): add Hans to about dialog.
14867         * doc/shape.dtd: dtd for shape file format.
14869         * doc/custom-shapes: update doc file about creating custom shapes.
14871         * shapes/*/*.shape: change namespace URI for the SVG portion to the
14872         one for the latest draft.
14874         * shapes/*/*.shape: fix up rect definitions.
14876         * objects/custom/shape_info.c (load_shape_info): recognise newer
14877         namespace tag for SVG.
14878         (parse_svg_node): the rect element should take attributes x, y, width
14879         and height -- not x1,y1,x2,y2.
14881         * plug-ins/svg/render_svg.c (new_svg_renderer): updated doctype
14882         output to use the newest draft DTD.
14884         * plug-ins/svg/svg.c: initialisation code for plugin.
14886         * plug-ins/svg/render_svg.c: move svg export code to a plugin.
14888         * plug-ins/svg/Makefile.am: makefile for svg plugin.
14890         * app/app_procs.c (internal_plugin_init): don't register the svg
14891         export filter here.
14893         * app/Makefile.am (dia_core_files): don't compile in render_svg.[ch]
14895 2000-07-31  James Henstridge  <james@daa.com.au>
14897         * objects/standard/textobj.c (textobj_get_defaults): 
14898         * objects/standard/polygon.c (polygon_get_defaults): 
14899         * objects/standard/image.c (image_get_defaults): 
14900         * objects/standard/ellipse.c (ellipse_get_defaults): 
14901         * objects/standard/box.c (box_get_defaults): 
14902         * objects/standard/beziergon.c (beziergon_get_defaults): 
14903         * objects/flowchart/parallelogram.c (pgram_get_defaults): 
14904         * objects/flowchart/ellipse.c (ellipse_get_defaults): 
14905         * objects/flowchart/diamond.c (diamond_get_defaults): 
14906         * objects/flowchart/box.c (box_get_defaults): 
14907         * objects/custom/custom_object.c (custom_get_defaults): 
14908         * objects/FS/flow.c (flow_get_defaults): 
14909         * objects/FS/flow-poly.c (flow_get_defaults): 
14910         * objects/FS/flow-ortho.c (orthflow_get_defaults): ref and sink the
14911         defaults widget.
14913         * app/defaults.c (defaults_show): don't keep on ref'ing the defaults
14914         widgets for various object types.
14915         (create_dialog): ref and sink the no_defaults_dialog.
14917         * app/preferences.c (prefs_create_dialog): change
14918         gtk_container_border_width call to gtk_container_set_border_width.
14920 2000-07-29  James Henstridge  <james@daa.com.au>
14922         * app/commands.c (view_aa_callback): show a warning dialog if
14923         you start AA mode.
14925         * app/interface.c (fill_sheet_menu): don't add a menu item for
14926         empty sheets.
14928 2000-07-26  James Henstridge  <james@daa.com.au>
14930         * plug-ins/dxf/dxf-export.c: updates from Steffen to fix bug #18677
14932         * app/menus.c: remove edit grid menu item.
14934         * app/commands.[ch] (view_edit_grid_callback): removed.
14936         * app/display.c (new_display): don't initialise removed Grid members.
14938         * app/grid.c: remove unused functions.
14940         * app/grid.h: remove dialog related stuff from Grid structure.
14941         Remove prototypes for dialog functions.
14943         * app/menus.c: add to menus
14944         
14945         * app/commands.[ch] (view_diagram_properties_callback): new command
14946         for showing the diagram properties dialog.
14948         * app/dia-props.[ch]: a new diagram properties dialog.  To replace
14949         the edit grid dialog.
14951 2000-07-25  James Henstridge  <james@daa.com.au>
14953         * app/grid.c (grid_x_update): 
14954         (grid_y_update): as the grid setting is stored with the diagram,
14955         update all displays when a change is made.
14957         * app/modify_tool.c (modify_motion): use new snap_to_grid sig.
14959         * app/create_object.c (create_object_button_press): 
14960         (create_object_motion): use new snap_to_grid signature.
14962         * app/grid.c (grid_draw): use the grid settings in the DiagramData,
14963         and handle invisible grid lines.
14964         (snap_to_grid): use new grid settings.  Also changed signature to
14965         take a DDisplay rather than Grid pointer.
14966         (grid_show_dialog): get the defaults from the correct place.
14968         * app/display.c (new_display): do not set ddisp->grid.width_[xy].
14970         * app/diagram.c (new_diagram): set the grid size defaults from the
14971         user preferences.
14973         * app/load_save.c (diagram_data_save): save grid and guide info to
14974         diagram file.
14975         (diagram_data_load): add guide and grid load support.
14977         * lib/diagramdata.c (new_diagram_data): set the new DiagramData
14978         members.
14980         * lib/diagramdata.h: add members to DiagramData for grid and guide
14981         settings.
14983         * configure.in (BONOBO_LIBS): update configure scripts
14985         * app/dia.oafinfo: oafinfo file for dia embeddables.
14987         * app/dia_embedd.c: add OAF support.
14989 2000-07-24  James Henstridge  <james@daa.com.au>
14991         * plug-ins/wpg/Makefile.am: 
14992         * plug-ins/pstricks/Makefile.am: 
14993         * plug-ins/hpgl/Makefile.am: 
14994         * plug-ins/dxf/Makefile.am: same here.
14996         * plug-ins/cgm/Makefile.am: remove LIBADD.  Dia already links with
14997         the required libraries, and the link line was causing libtool not
14998         to build a shared library on some systems :(
15000         * plug-ins/cgm/cgm.c (write_real): the initial if statement should
15001         be checking x, not n.
15003 2000-07-23  James Henstridge  <james@daa.com.au>
15005         * app/preferences.c (prefs_data): set the "reset tools after
15006         create" preference to true by default.  That seems to be what most
15007         people expect.
15009         * app/interface.c (create_sheets): instead of a notebook, use an
15010         option menu that updates the sheet tools.  The notebook tabs were
15011         getting a bit unwieldly, so the option menu should fix that.  This
15012         also reduces the number of widgets in the tools radio button
15013         group, which should make the UI a little more responsive.
15015 2000-07-19  Fatih Demir <kabalak@gmx.net>
15016         
15017         * configure.in: Added tr to ALL_LINGUAS.
15018                 [ Yeah, we're now having a Turkish translation,
15019                    too. ]
15020         
15021         * dia.desktop: Added the Turkish entries.
15023 2000-07-02  Fredrik Hallenberg  <hallon@lysator.liu.se>
15025         * doc/diagram.dtd: changed string-element so it conforms to the
15026         output from dia.
15028 2000-06-30  Fredrik Hallenberg  <hallon@lysator.liu.se>
15030         * configure.in: added chinese. 
15031         Use AM_PROG_LIBTOOL instead of AC_PROG_LIBTOOL.
15033         * app/app_procs.c:
15034           app/load_save.c:
15035           app/render_svg.c:
15036           lib/dia_xml.c:
15037           lib/plug-ins.c:
15038           lib/sheet.c:
15039           objects/custom/shape_info.c: 
15040           shapes/Circuit/npn.shape:
15041           shapes/Circuit/pnp.shape:
15042           sheets/*.sheet: dia now works with libxml2.
15043         Libxml2 is a bit more picky when parsing xml and reported errors on all 
15044         sheet files because they use non ascii characters (added 
15045         encoding="iso-8859-1"). Also "xml:lang=en@layman" is not proper xml so 
15046         I commented out these.
15048 2000-06-30  Christopher R. Gabriel  <cgabriel@linux.it>
15050         * configure.in (ALL_LINGUAS): added Italian
15052 2000-06-27  Sung-Hyun Nam  <namsh@lgic.co.kr>
15054         * configure.in (ALL_LINGUAS): added Korean
15056 2000-06-25  James Henstridge  <james@daa.com.au>
15058         * objects/flowchart/parallelogram.c (pgram_create): use default font
15059         and add properties interface support.
15061         * objects/flowchart/ellipse.c (ellipse_create): use default font and
15062         add properties interface support.
15064         * objects/flowchart/diamond.c (diamond_create): use default font and
15065         add properties interface code.
15067         * objects/flowchart/box.c (box_create): use default font.
15069         * objects/custom/custom_object.c (custom_create): use default font
15070         here too.
15072         * objects/standard/textobj.c (textobj_create): update to use default
15073         font.
15075         * lib/attributes.c: add implementations.
15077         * lib/attributes.h (attributes_[gs]et_default_font): add function
15078         prototypes for setting/getting a default font.
15080 2000-06-24  James Henstridge  <james@daa.com.au>
15082         * app/paginate_gnomeprint.h: updated prototype.
15084         * app/paginate_gnomeprint.c (paginate_gnomeprint): update to use
15085         diagram page settings.
15087         * objects/standard/beziergon.c (beziergon_copy): same here.
15089         * objects/standard/polygon.c (polygon_copy): copy the fill colour
15090         as well.
15092         * app/undo.h: 
15093         * app/tool.h (tool_options_dialog_show): 
15094         * app/scroll_tool.h (free_scroll_tool): 
15095         * app/render_svg.h: 
15096         * app/render_libart.h (renderer_libart_copy_to_window): 
15097         * app/render_gdk.h (renderer_gdk_copy_to_window): 
15098         * app/properties.h (properties_hide_if_shown): 
15099         * app/preferences.h (prefs_load): 
15100         * app/object_ops.h: 
15101         * app/modify_tool.h (free_modify_tool): 
15102         * app/magnify.h (free_magnify_tool): 
15103         * app/linewidth_area.h (linewidth_area_create): 
15104         * app/layer_dialog.h: 
15105         * app/handle_ops.h (handle_is_clicked): 
15106         * app/group.h: 
15107         * app/grid.h (grid_destroy_dialog): 
15108         * app/defaults.h (defaults_show): 
15109         * app/cut_n_paste.h (cnp_exist_stored_objects): 
15110         * app/create_object.h (free_create_object_tool): 
15111         * app/connectionpoint_ops.h (diagram_unconnect_selected): 
15112         * app/commands.h: 
15113         * app/color_area.h (color_area_create): 
15114         * app/app_procs.h (app_is_embedded): remove extern keyword from
15115         function prototypes.
15117         * lib/text.h: 
15118         * lib/sheet.h (load_all_sheets): 
15119         * lib/render_store.h: 
15120         * lib/render_object.h (render_object_load): 
15121         * lib/polyshape.h (polyshape_closest_segment): 
15122         * lib/poly_conn.h (polyconn_closest_segment): 
15123         * lib/orth_conn.h: 
15124         * lib/object.h: 
15125         * lib/objchange.h (new_object_state_change): 
15126         * lib/neworth_conn.h (neworthconn_add_segment): 
15127         * lib/message.h (message_error): 
15128         * lib/lazyprops.h: 
15129         * lib/geometry.h: 
15130         * lib/font.h (font_descent): 
15131         * lib/focus.h (remove_focus): 
15132         * lib/element.h: 
15133         * lib/diagramdata.h: 
15134         * lib/dia_xml.h (data_add_composite): 
15135         * lib/dia_image.h: 
15136         * lib/connpoint_line.h: 
15137         * lib/connection.h (connection_move_handle): 
15138         * lib/color.h: 
15139         * lib/attributes.h (attributes_set_default_line_style): 
15140         * lib/arrows.h (arrow_draw): remove extern keyword from function
15141         definitions.  It is not required for functions.
15143         * plug-ins/dxf/Makefile.am (INCLUDES): 
15144         * plug-ins/pstricks/Makefile.am (INCLUDES): 
15145         * plug-ins/cgm/Makefile.am (INCLUDES): 
15146         * objects/SADT/Makefile.am (INCLUDES): 
15147         * objects/chronogram/Makefile.am (INCLUDES): 
15148         * objects/GRAFCET/Makefile.am (INCLUDES): 
15149         * objects/flowchart/Makefile.am (INCLUDES): 
15150         * objects/sybase/Makefile.am (INCLUDES): 
15151         * objects/FS/Makefile.am (INCLUDES): 
15152         * objects/standard/Makefile.am (INCLUDES): 
15153         * objects/network/Makefile.am (INCLUDES):
15154         * objects/UML/Makefile.am (INCLUDES): same here.
15156         * objects/ER/Makefile.am: changed inclusion of some macros to
15157         variables.
15159         * lib/plug-ins.c (dia_register_plugins_in_dir): use a few defines to
15160         handle the plug in extension, rather than have all the #ifdef's in
15161         the code.
15163         * plug-ins/Makefile.am: add renderer.inc to dist.
15165         * plug-ins/dxf/dxf-import.c: Updates from Steffen Macke.
15167 2000-06-11  Asbjorn Pettersen  <asbjornP@dualog.no>
15169         * lib/plug-ins.c: Handle OS/2 dll's too.
15171 2000-06-07  James Henstridge  <james@daa.com.au>
15173         * app/plugin-manager.c (get_plugin_manager): set some table
15174         packing options to make it look a little nicer.
15176         * plug-ins/hpgl/Makefile.am, plug-ins/wpg/Makefile.am: added
15177         makefiles for these plug-ins.
15179         * plug-ins/{hpgl,wmf,wpg}/*: removed dos style cariage returns.
15181         * configure.in: added hpgl and wpg directories to build.  Added
15182         note about whether gnome-print support was enabled, and noted that
15183         it is not recommended.
15185 2000-06-06  James Henstridge  <james@daa.com.au>
15187         * plug-ins/{hpgl,wmf,wpg}/*: Hans Breuer's plug-ins.  They still need
15188         a little work, but I am checking them in so I don't lose them.
15190 2000-06-01  James Henstridge  <james@daa.com.au>
15192         * objects/standard/arc.c: added extra properties.
15194         * lib/beziershape.c (beziershape_closest_handle): fix a bug where I
15195         was using the wrong index into the handles array.  This gets corner
15196         type changing working correctly.
15198         * lib/properties.[ch]: add support for BezPoint's and BezPoint arrays
15199         to properties code (no editing or loading yet though).  Also added
15200         support for point array manipulation through the offsets interfaces.
15202         * lib/Makefile.am (INCLUDES): added include of gdk-pixbuf 
15204         * app/interface.c (origin_button_press): changes so the origin
15205         button doesn't grab the pointer when we pop up the menu.
15207         * app/commands.c (help_about_callback): fix small memory leak in
15208         about box code.
15210         * app/menus.c (menus_init): fixed breakage I introduced in the non
15211         gnome menus when I was doing the menu changes.  The tearoffs work
15212         really nicely in plain gtk mode as well.
15214         * objects/standard/beziergon.c (beziergon_create): changed the
15215         returned handles to match the handle numbering changes.  Now
15216         segment addition and removal works correctly with undo!
15218         * lib/beziershape.c: various changes to the code.  Changed the
15219         numbering of handles, and fixed the segment removal code.
15221 2000-05-31  James Henstridge  <james@daa.com.au>
15223         * objects/standard/beziergon.c: remove connection point handling.
15224         There is still a bit of work to be done to get adding and removing
15225         of segments working correctly.
15227         * lib/beziershape.c: add connection point handling to beziershape.
15228         I set it for two connection points per segment.
15230 2000-05-30  James Henstridge  <james@daa.com.au>
15232         * objects/standard/polygon.c: don't do connectionpoint handling.
15234         * lib/polyshape.c: changed to handle connection points internally.
15235         Also, don't worry about connections to handles on polyshape, as
15236         all handles are non connectable.
15238 2000-05-30 Ville Hautamaki <villeh@cs.joensuu.fi>
15240         * configure.in: Added finnish
15241         
15242 2000-05-30  James Henstridge  <james@daa.com.au>
15244         * sheets/*.sheet: translation updates to the .sheet files.
15246         * po/fr.po: updated po file from Christophe Merlet.
15248         * menus.h: removed prototypes for functions which have been removed.
15250 2000-05-29  James Henstridge  <james@daa.com.au>
15252         * app/layer_dialog.c (layer_dialog_set_diagram): set the selected
15253         item in the option menu when changing selected diagram.
15255         * app/dia_embedd.c (view_factory): fix up function to work with new
15256         menus API.
15258         * app/disp_callbacks.c (ddisplay_realize): remove call to
15259         display_set_active from here.
15260         (ddisplay_canvas_events): move call here.  This gets rid of all the
15261         warnings, as the renderer has been fully set up correctly at this
15262         point.
15264         * app/menus.c (menus_init): add the tearoff item to the start of the
15265         right click menu.
15267         * app/app_procs.c (create_user_dirs): we don't need to create the
15268         menus directory anymore.
15270         * app/disp_callbacks.c (ddisplay_popup_menu): it should not be
15271         necessary to update the menu state here, as it was done when the
15272         active display was set.
15274         * app/display.c (display_set_active): update the menu state when
15275         changing active displays.
15277         * app/interface.c (origin_button_press): set the display as active
15278         when a click is made on the menu button.
15280         * app/menus.c (menus_init): set up a quit function to save the accels
15281         at exit.
15282         Add tearoff items for the non GNOME menus, add accelerators for
15283         several GNOME menus.
15285         * app/disp_callbacks.c (ddisplay_popup_menu): get the menu with
15286         menus_get_image_menu().
15288         * app/menus.c (menus_get_item_from_path): use display_menus here
15289         rather than ddisp->popup.
15291         * app/display.h: remove the popup member in the DDisplay structure.
15293         * app/interface.c: remove option of not using wrap box.
15294         (create_toolbox): change to always use menus_get_toolbox_menubar
15295         even when using gnome menus.
15296         (create_display_shell): use menus_get_image_menu to load accelerators
15297         only -- not the actual popup menu.
15299         * app/menus.c (menus_init): new function to create the menus.
15300         (menus_get_toolbox_menubar): use this function whether gnome is
15301         in use or not.  Changed to use menus_init.
15302         (menus_get_image_menu): same here.  Also, now this function always
15303         returns the same menu, rather than a new one each time.
15304         (menus_init): read a menurc file to load accelerators here.
15306 2000-05-28  James Henstridge  <james@daa.com.au>
15308         * app/display.c (ddisplay_really_destroy): unset active display if
15309         active display is destroyed.
15310         (ddisplay_active): simplify function to return active_display as set
15311         by display_set_active.  This allows using a pinned menu with any
15312         display -- not just the one it was popped up from.
15313         (display_set_active): notify the layer dialog of change of diagrams
15314         when active diagram changes.
15316         * app/disp_callbacks.c (ddisplay_canvas_events): set active display
15317         on button and key presses.
15318         (ddisplay_realize): set active display on realize.
15320         * app/display.c (display_set_active): simple implementation of this
15321         function.
15323         * app/display.h (display_set_active): add prototype for setting
15324         the active display.
15326         * app/interface.c (create_display_shell): don't give focus to the
15327         menu button.
15329         * app/menus.c: fix up menus for Beziergon.
15331         * app/interface.c (create_display_shell): make the widget in the
15332         top left corner a button that can be used to pop up the right click
15333         menu, like in gimp and sketch.
15335         * app/disp_callbacks.c (ddisplay_popup_menu): new function to popup
15336         the display menu.
15338         * objects/standard/beziergon.c (beziergon_set_corner_type_callback):
15339         add code to set corner types for beziergon.
15341         * lib/beziershape.c (beziershape_set_corner_type): fix up corner type
15342         setting code.
15343         (beziershape_move_handle): use the previous corner type for right
15344         controls.
15346         * app/interface.c (tool_data): add beziergon to toolbox.
15348         * objects/standard/standard.c (dia_plugin_init): initialise the new
15349         Beziergon object type.
15351         * objects/standard/beziergon.c: an object based on BezierShape.
15353         * lib/dummy_dep.h (dummy_dep): added to dummy_dep.
15355         * lib/beziershape.[ch]: new files implementing a bezier shape.
15357 2000-05-26  James Henstridge  <james@daa.com.au>
15359         * lib/text.c (text_key_event): handle multibyte inserts.
15360         (text_key_event): also add home and end keybindings.
15362         * app/interface.c (create_display_shell): connect handlers for
15363         focus_in_event, focus_out_event, realize and unrealize signals.
15365         * app/display.[ch] (new_display): initialise input context members.
15367         * app/disp_callbacks.[ch]: added XIM support here.
15369         * lib/font.c (suck_font): the black and white pixel values should be
15370         taken from a 1 bit colormap rather than the default colormap.
15372         Hans Breuer's Windows patches ...
15374         * lib/font.c: use Courier New for fixed width font on windows
15375         machines.
15377         * lib/dia_image.h: change to "struct _DiaImage".
15379         * lib/dia_image.c: change "struct DiaImage" to "struct _DiaImage"
15381         * app/disp_callbacks.c (ddisplay_canvas_events): allow ctrl+right
15382         mouse button for object menu.  This will make two button mouse owners
15383         happier.
15385 2000-05-25  James Henstridge  <james@daa.com.au>
15387         * app/filedlg.c (file_open_ok_callback): use diagram_load here.
15389         * app/app_procs.c (app_init): add extra NULL argument to call of
15390         diagram_load.
15392         * app/load_save.h: remove prototype.
15394         * app/load_save.c: remove diagram_data function here.
15396         * app/diagram.h: added prototype.
15398         * app/diagram.c (diagram_load): new function here, which uses import
15399         filters.
15401         * plug-ins/dxf/dxf.c: register the import filter as well.
15403         * plug-ins/dxf/dxf-import.c: added (unfinished) DXF import filter from
15404         Steffen Macke <macke@heini.fbbwu.fh-lueneburg.de>
15406         * objects/standard/line.c: add start_point and end_point properties
15407         to standard line object.
15409 2000-05-21  James Henstridge  <james@daa.com.au>
15411         * app/paginate_psprint.c: added missing include of locale.h.
15413         * objects/custom/custom_object.c (custom_draw): use fabs rather than
15414         abs for scaling factors.
15415         (custom_distance_from): same here.
15417         * dia.spec: make sure rpm doesn't bomb out when LINGUAS isn't set.
15419 2000-05-18  James Henstridge  <james@daa.com.au>
15421         * po/POTFILES.in: updated POTFILES.in.
15423         * dia.spec: incremented version number in spec file.
15425         * NEWS: added (lots of) news items for the 0.85 release.
15427         * app/preferences.c (prefs_save): set LC_NUMERIC to C while writing
15428         the config file.
15430         * configure.in: updated version number here.
15432         * app/Makefile.am (run_dia.sh): include plug-ins in the lib path.
15434 2000-05-17  James Henstridge  <james@daa.com.au>
15436         * app/app_procs.c (internal_plugin_init): register the native import
15437         filter.
15439         * app/load_save.c (diagram_data_load, diagram_load): split this
15440         function into two -- one that does all the work on the DiagramData
15441         structure, and the other that provides compatibility with the old
15442         function.
15443         (dia_import_filter): use diagram_data_load to define an import
15444         filter.
15446         * app/diagram.h (new_diagram): added const to prototype.
15448         * app/filedlg.c (file_open_callback): change to use new import filter
15449         code.
15451         * lib/filter.c: added import filter management functions.
15453         * lib/filter.h: added prototypes for import filter interface.
15455         * app/commands.c (help_about_callback): updated about dialog to
15456         contain a few more names.
15458 2000-05-16  James Henstridge  <james@daa.com.au>
15460         * configure.in (Configuration): added a status message to the end of
15461         the configure script to give the user some idea of what was
15462         configured.
15464         * plug-ins/dxf/Makefile.am: Makefile for new plugin.
15466         * plug-ins/dxf/dxf.c (dia_plugin_init): added file to initialise the
15467         plugin.
15469         * plug-ins/dxf/dxf-export.c: new file -- Steffen Macke's DXF export
15470         filter for dia.
15472         * configure.in (AM_PATH_LIBART): use the check function provided
15473         with libart rather than our own code.  It is more reliable, and
15474         it only requires that people who build out of CVS have libart.m4
15475         installed (not necessarily all of libart).
15476         (AM_PATH_GDK_PIXBUF): same here for gdk-pixbuf.
15478 2000-05-12  Andreas Hyden  <a.hyden@cyberpoint.se>
15480         * dia.desktop: Added Swedish translation.
15482 2000-05-09  James Henstridge  <james@daa.com.au>
15484         * lib/dia_xml.c: you can't free a const pointer, so remove const
15485         from variable definitions.
15487         Explicitely set LC_NUMERIC where needed, as sometimes it isn't
15488         initialised correctly.
15490         * app/render_svg.c (export_svg): set locale to C.
15492         * app/paginate_psprint.c (paginate_psprint): set locale to C.
15494         * app/render_eps.c (export_eps): set locale to C for EPS export.
15496         * lib/dia_xml.c (data_add_real): change to C locale for snprintf call.
15497         (data_add_point): same here.
15498         (data_add_rectangle): same here.
15499         (data_real): use g_strtod to convert strings to real numbers, so that
15500         locales are taken into account.
15501         (data_point): same here.
15502         (data_rectangle): same here.
15504         * AUTHORS: added Henk and Jacek to authors file.
15506         Daniel Egger's code cleanups.
15508         * app/select.c (select_invert_callback): remove unused variable.
15510         * app/plugin-manager.c (get_plugin_manager): fix typo.
15512         * app/load_save.c (read_connections, write_objects): 
15513         (write_connections): made some functions static.
15515         * app/interface.c (toolbox_delete, toolbox_destroy): made some
15516         functions static.
15518         * app/filedlg.c (file_export_callback): remove unused variable.
15520         * app/app_procs.c: various warning fixes.
15522         Integrating Jacek Pliszka's pstricks export filter.
15524         * plug-ins/pstricks/pstricks.c: code to initialise the plugin.
15526         * plug-ins/pstricks/render_pstricks.[ch]: Jacek Pliszka's pstricks
15527         renderer (with a few small modifications by me).
15529         * plug-ins/pstricks/Makefile.am: new makefile for pstricks plug-in.
15531         * plug-ins/Makefile.am (SUBDIRS): add pstricks subdirectory.
15533 2000-05-07  Alexander Larsson  <alla@lysator.liu.se>
15535         * configure.in:
15536         * sheets/Makefile.am:
15537         * shapes/Makefile.am:
15538         * shapes/Civil/Makefile.am:
15539         * sheets/civil.sheet:
15540         * shapes/Civil/*:
15541         Added civil/hydraulic/structural engineering objects from
15542         sdteffen <macke@heini.fbbwu.fh-lueneburg.de>.
15543         
15544 2000-05-07  Alexander Larsson  <alla@lysator.liu.se>
15546         * objects/FS/flow-poly.c:
15547         * objects/FS/flow.c:
15548         Fix division by zero in point_normalize().
15549         Patch by David Thompson <dcthomp@mail.utexas.edu>
15551 2000-04-27  Lars Clausen  <lrclause@cs.uiuc.edu>
15553         * lib/arrows.c:
15554         * lib/bezier_conn.c:
15555         * lib/connpoint_line.c:
15556         Added checks for zero-length lines before calls to point_normalize.
15558 2000-04-24  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
15560         * app/preferences.c (prefs_data): Changed
15561         reversed_dragging_intersects to not make the dialog ridiculously
15562         wide.
15563         
15564 2000-04-22  James Henstridge  <james@daa.com.au>
15566         Hans's win32 patches:
15568         * app/export_png.c: include message.h
15569         * app/interface.c: include dia_dirs.h
15570         * app/linewidth_area.c: check for rint
15571         * app/main.c: include interface.h
15572         * app/paginate_psprint.c: remove unused variable.
15573         * app/preferences.c: include message.h
15574         * app/render_svg.c: include stdlib.h
15575         * app/select.c: include object_ops.h
15576         * lib/dia_dirs.c: miscelaneous fixes for win32.
15577         * lib/dia_image.c: include string.h
15578         * lib/plug-ins.c: look for .dll files rather than .la files on win32.
15579         * lib/properties.c: include stdlib.h
15580         * lib/properties.h: define extra data for standard properties as
15581         static variables on win32 (to get around dynamic linker problems).
15582         * objects/standard/polygon.c: polygon_create_change missing return
15583         statement.
15585 2000-04-18  Pablo Saratxaga <pablo@mandrakesoft.com>
15587         * configure.in (ALL_LINGUAS): added Catalan
15589 2000-04-18  James Henstridge  <james@daa.com.au>
15591         * objects/standard/bezier.c (bezierline_get_object_menu): add a
15592         separator to the object menu between the add/remove segment items
15593         and the corner type items.
15594         (bezierline_get_object_menu): add code to disable the menu item for
15595         the current corner type.  Really just a cosmetic change.
15597         * app/disp_callbacks.c (create_object_menu): handle DiaMenuItems with
15598         a NULL for the label or with no associated callback.
15600         * objects/standard/bezier.c (bezierline_menu_items): use the
15601         enumeration values rather than numeric values for the corner types.
15603         * lib/bezier_conn.[ch]: added a corner_types member to the BezierConn
15604         structure, and add code to handle it.  Also, don't save the corner
15605         types inline in the bez_points node.  The way it is conditionally
15606         including the element just feels like it will break.
15608         * lib/geometry.h (BezPoint): removed the corner_type stuff from
15609         BezPoint.  The corner type stuff is a user interface level idea rather
15610         than something required by the renderer, so should be taken care of
15611         at the object level.
15613 2000-04-17  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
15615         * configure.in: Fixed some problems with the gdk-pixbuf/imlib
15616         checks.  Weren't able to reproduce original bug, tough.
15618 2000-04-16  Cyrille Chepelov  <chepelov@calixo.net>
15620         * sheets/Electric.sheet:
15621         * sheets/Contact.sheet:
15622         * sheets/Pneumatic.sheet:
15623         * sheets/Circuit.sheet: sprayed some <br/>'s around.
15624         (added a few French translations in the last file)
15625         
15626 2000-04-16  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
15628         * lib/geometry.h: 
15629         * lib/bezier_conn.h: 
15630         * objects/standard/bezier.c: 
15631         * lib/bezier_conn.c: Support for cuspy, smooth and symmetric
15632         bezier points.  Only one minor problem known:  Menus are active
15633         for endpoints minor handles.
15634         11:28: Save and load now works, too.
15635         (bezierconn_closest_major_handle): 12:03: New function to get the
15636         non-control point handle associated with the nearest control
15637         point.  
15638         Also fixed the menu activation problem, and made remove_segment
15639         not remove the endpoint.
15641 2000-04-15  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
15643         * configure.in: Added check for gdk-pixbuf being >= 0.7.0 since
15644         new API is in use.
15646 2000-04-15  Asbjorn Pettersen  <asbjornP@dualog.no>
15648         * lib/plug-ins.c: Added <sys/types.h> and moved <fcntl.h> below
15649         <sys/stat.h>.   OS/2 patch.
15651 2000-04-15  James Henstridge  <james@daa.com.au>
15653         * objects/FS/flow-ortho.c, objects/FS/function.c: Applied David
15654         Thompson's patch that adds undo support to the function structure
15655         diagram objects.
15657 2000-04-14  James Henstridge  <james@daa.com.au>
15659         * objects/custom/custom_object.c (custom_distance_from): new
15660         implementation of distance algorithm that actually takes the
15661         display list into account when calculating the distance.  Much nicer
15662         than a simple bounding box.
15664 2000-04-13  Lars Clausen  <lrclause@cs.uiuc.edu>>
15666         * lib/geometry.c (line_crosses_ray): Fixed division by zero bug
15668 2000-04-12  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
15670         * objects/standard/polygon.c: Start of polygons own changes (for
15671         connectionpoints).  Need to do seperate changes in polyshape, too,
15672         rather than reuse the bezier changes.
15674 2000-04-13  James Henstridge  <james@daa.com.au>
15676         * lib/dia_image.c (dia_image_draw): use the new enumeration values
15677         from after the gdk-pixbuf cleanup.
15679         * lib/geometry.c (bez_point_distance_and_ray_crosses): fix up limit
15680         on for loop.  Last set of coefficients were not beeing calculated,
15681         which caused a bit of breakage.
15683         * lib/bezier_conn.c (bezierconn_closest_segment): use the new
15684         functions in geometry.c for calculating the closest segment.
15685         (bezierconn_distance_from): use distance_bez_line_point to calculate
15686         the distance.
15688         * lib/geometry.c (distance_bez_line_point): new function to calculate
15689         the distance from an open bezier line to a point.
15690         (distance_bez_shape_point): new function to calculate the distance
15691         from a closed bezier shape.
15692         (distance_ellipse_point): new function to calculate the distance from
15693         a filled ellipse to a point.
15695         * lib/geometry.h (BezPoint): moved this structure here from render.h
15697 2000-04-12  James Henstridge  <james@daa.com.au>
15699         * lib/geometry.c (distance_bez_seg_point): new function to calculate
15700         the distance from a bezier segment.
15702         * lib/polyshape.c (polyshape_distance_from): use distance_polygon_point
15703         to calculate the distance from the object.
15705         * lib/geometry.c (distance_polygon_point): function for calculating
15706         the distance from a polygon to a point.
15708 2000-04-12  Cyrille Chepelov  <chepelov@calixo.net>
15710         * app/interface.c:
15711         * lib/sheet.[ch]: added a <br/> tag in sheet files, so that line 
15712         breaks can be inserted in the tool box. 
15714         * doc/sheet.dtd: updated the DTD
15715         * sheets/GRAFCET.sheet: tried <br/> on that sheet (more to come).
15716         
15717 2000-04-12  James Henstridge  <james@daa.com.au>
15719         * app/plugin-manager.c (get_plugin_manager): use the GTK_DIALOG
15720         macro if the dialog is a GtkDialog :(
15722 2000-04-11  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
15724         * objects/standard/polygon.c: Connectionpoints now properly
15725         managed in a GList.  As far as I can tell, this will not dieturb
15726         the order (but I have the nagging doubt...)
15728         * lib/polyshape.c: No longer knows about connectionpoints.
15730 2000-04-11  James Henstridge  <james@daa.com.au>
15732         * app/Makefile.am: fix makefile for bonobo build.
15734         * configure.in: fix checks for bonobo.
15736         * app/menus.c: added entries for the plugin manager.
15738         * app/Makefile.am (dia_core_files): added plugin manager to files
15739         list.
15741         * app/plugin-manager.[ch]: the plugin manager dialog.
15743         * app/display.c (display_update_menu_state): set the antialiased
15744         menu entry to the correct value.
15746 2000-04-11  Cyrille Chepelov  <chepelov@calixo.net>
15748         * objects/custom/custom_object.c: not all renderers like ellipses with
15749         negative dimensions. This could cause ellipses to disappear when using
15750         the flip_h and flip_v functions.
15752         * samples/grafcet.dia: fixed speling and correctness.
15753         
15754 2000-04-11  James Henstridge  <james@daa.com.au>
15756         * lib/plug-ins.[ch]: added more accessors for use by a plugins dialog.
15757         exposed the dia_plugin_load and dia_plugin_unload functions.
15759         * lib/plug-ins.c (plugin_load): change plugin_load to work on an
15760         already created PluginInfo structure.
15762         * app/app_procs.c (app_exit): call dia_pluginrc_write() to write
15763         the pluginrc file.
15765         * lib/sheet.c: fix up call to dia_config_filename.
15767         * lib/plug-ins.[ch]: started writing code for handling a pluginrc
15768         file.  This would save information such as which plugins not to
15769         load during startup.
15771 2000-04-09  James Henstridge  <james@daa.com.au>
15773         * lib/sheet.c: use dia_config_filename to resolve file in ~/.dia.
15775 2000-04-10  Alexander Larsson  <alla@lysator.liu.se>
15777         * lib/plug-ins.c (dia_register_plugins):
15778         Don't free the value returned from g_getenv.
15780 2000-04-09  Anders Carlsson  <andersca@gnu.org>
15782         * app/preferences.h: Add reverse_rubberbanding_intersects preference variable.
15784         * app/preferences.c (prefs_data): Add reverse_rubberbanding_intersects preference data.
15786         * app/modify_tool.c (modify_button_release): If rubberbanding is done from 
15787         right to left, select objects that intersect the rubberbanding rectangle
15788         instead of selecting objects that are in the rectangle.
15790         * lib/diagramdata.c (layer_find_objects_intersecting_rectangle): Add function.
15792         * lib/diagramdata.h: Likewise.
15795 2000-04-09  James Henstridge  <james@daa.com.au>
15797         * lib/plug-ins.[ch]: add copyright messages to files.
15799         * plug-ins/cgm/cgm.c (dia_plugin_init): convert plugin over to new
15800         plugin interface.
15802         * objects/sybase/sybase.c (dia_plugin_init): 
15803         * objects/network/network.c (dia_plugin_init): 
15804         * objects/flowchart/flowchart.c (dia_plugin_init): 
15805         * objects/custom/custom.c (dia_plugin_init): 
15806         * objects/chronogram/chronogram.c (dia_plugin_init): 
15807         * objects/UML/uml.c (dia_plugin_init): 
15808         * objects/SADT/sadt.c (dia_plugin_init): 
15809         * objects/GRAFCET/grafcet.c (dia_plugin_init): 
15810         * objects/FS/fs.c (dia_plugin_init): 
15811         * objects/ER/er.c (dia_plugin_init): updated plugin load code for
15812         object libraries.
15814         * objects/standard/standard.c (dia_plugin_init): change over to new
15815         plugin interface.
15817         * lib/plug-ins.h (DIA_PLUGIN_CHECK_INIT): added a macro to define
15818         the version checker for plugins.
15820         * app/app_procs.c: remove plugin loading code from here, and use
15821         code from plug-ins.[ch].  Also move registration of internal
15822         objects/filters to a `builtin' plugin.
15824         * lib/Makefile.am (libdia_a_SOURCES): added plug-ins.[ch] to library.
15826         * configure.in: use AC_PROG_LIBTOOL rather than AM_PROG_LIBTOOL.
15828         * app/Makefile.am (EXTRA_DIST): you can't include a conditionally
15829         defined variable in EXTRA_DIST.
15831         * app/preferences.h: removed dia_config_filename from header.
15833         * app/preferences.c: removed dia_config_filename function.
15835         * lib/dia_dirs.c (dia_config_filename): moved function over to this
15836         file.  Also changed implementation slightly so that it should work
15837         on the win32 port correctly (and use NT home directories).
15839         * lib/dia_dirs.h (dia_config_filename): move dia_config_filename where
15840         it should have been.
15842         * lib/plug-ins.[ch]: new plugin loading code.
15844 2000-04-08  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
15846         * objects/standard/polygon.c: Fixed startup crash bug (do'h!).
15848         * lib/polyshape.c: Fix closest segment finding, exposes deeper
15849         bugs in adding corners to 'wraparound' segment.
15851         * objects/standard/polygon.c: Added connection points (fixed so
15852         far), set menu sensitivity.
15854         * lib/polyshape.c: Changed to box-style handles, fixed for start
15855         and ends not being special, added initial connections,
15857         * lib/dummy_dep.h: Added polyshape (gotcha!)
15859         * objects/standard/pixmaps/ellipse.xpm: 
15860         * objects/standard/pixmaps/box.xpm: 
15861         Filled element pixmaps with white.
15863         * lib/polyshape.c: 
15864         * objects/standard/polygon.c: 
15865         * lib/polyshape.h: 
15866         * objects/standard/standard.c: 
15867         * objects/standard/Makefile.am (libstandard_objects_la_SOURCES): 
15868         * lib/Makefile.am (libdia_a_SOURCES): 
15869         * app/menus.c: 
15870         * app/interface.c (tool_data): 
15871         Added Standard/Polygon object and PolyShape lib object.  Still
15872         needs inside grab and connection points.
15874         * app/commands.c (help_about_callback): Now uses gdk-pixbuf if
15875         available. 
15877         * configure.in: Made imlib a fallback if gdk-pixbuf is absent or
15878         not wanted.
15880         * app/app_procs.c (app_init): Moved gtk_init outside #ifdef, moved
15881         if (argv) outside ifdefs.
15883 2000-04-04  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
15885         * objects/standard/image.c (image_set_props): 
15886         Aspect ratio is back in town.
15888         * app/Makefile.am (dia_LDADD): 
15889         * acconfig.h: 
15890         * configure.in: 
15891         Check for gdk_pixbuf (by default disabled, for now)
15893         * app/render_eps.c (draw_image): 
15894         * app/render_libart.c (draw_image): 
15895         * app/render_gnomeprint.c (draw_image): 
15896         Support for alpha mask in rendering.  Color postscript, too.
15898         * lib/dia_image.c: 
15899         * lib/dia_image.h: 
15900         Support for gdk_pixbuf and proper masking for exports.
15902 2000-04-01  Kjartan Maraas  <kmaraas@online.no>
15904         * sheets/*.sheets: Updated Norwegian translations.
15905         
15906 2000-03-30  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
15908         * lib/text.c (text_insert_char): 
15909         * lib/render_store.c (add_data): 
15910         Made realloc double the alloced space rather than add
15911         a fixed amount, to reduce memory stress.
15913         * app/select.c: Added new select method 'Transitive'
15914         that select every reachable (by connections) object.
15916 2000-03-27  Kjartan Maraas  <kmaraas@online.no>
15918         * dia.desktop: Added Norwegian translation.
15919         
15920 2000-03-26  Alexander Larsson  <alla@lysator.liu.se>
15922         * app/render_eps.c:
15923         * app/render_svg.c:
15924         Don't dereference NULL pointer if the renderer
15925         couldn't open the file. Fix by Lars Clausen.
15926         Bug reported by Martin Chisholm <b1mt@unb.ca>
15927         
15928 2000-03-26  Alexander Larsson  <alla@lysator.liu.se>
15930         * dia.desktop:
15931         * po/pt.po:
15932         Updated pt translation from Pedro Morais <pmmm@rnl.ist.utl.pt>
15934 2000-03-25  Alexander Larsson  <alla@lysator.liu.se>
15936         * app/dia.gnorba (location_info):
15937         Changed to correct executable name.
15939 2000-03-25  Alexander Larsson  <alla@lysator.liu.se>
15941         * app/app_procs.c:
15942         Don't do any argument parsing or initialization
15943         if argv==NULL.
15945         * app/dia_embedd.c:
15946         Call init_server_factroy before app_init.
15947         Call app_init with argv==NULL
15948         Now we don't get any critical error on startup.
15950         * configure.in:
15951         Add Electric and Pneumatic to makefile list.
15952         
15953 2000-03-24  Cyrille Chepelov <chepelov@calixo.net>
15955         * shapes/Electric/*:
15956         * sheets/Electric.sheet:
15957         Add some Electric circuit shapes.
15959         * shapes/Pneumatic/*:
15960         * sheets/Pneumatic.sheet:
15961         Add some Pneumatic & Hydraulic circuit shapes
15962         (both sheets are still incomplete, though feature enough 
15963         things for basic circuits).
15965         * shapes/Contact/l_*.(xpm|shape):
15966         * sheets/Contact.sheet
15967         * shapes/Contact/Makefile.am
15968         made the older electric circuit shapes in Contact obsolete (disabled
15969         them in the sheet, made that sheet Ladder only). Fixed the makefile
15970         for forgotten items.
15971         
15972 2000-03-24  Alexander Larsson  <alla@lysator.liu.se>
15974         * app/Makefile.am:
15975         Add support for Dia bonobo component.
15976         Currently a bit raw, so it's commented out.
15977         
15978         * app/dia_embedd.c:
15979         * app/dia.gnorba:
15980         New files for embedding dia.
15981         The menu disabling hack is a bit gross. Esp. for GNOME.
15983         * app/app_procs.h:
15984         Add new function app_is_embedded();
15986         * app/diagram.c:
15987         Don't destroy diagram when last display is destroyed if embedded.
15988         
15989         * app/display.c:
15990         Change initialization of display so it works with embedding.
15992         * app/display.h:
15993         Clarify comment about display destruction.
15995         * app/interface.[ch]:
15996         Added top_level_window argument to create_display_shell.
15997         Don't open a top-level window if embedding.
15998         Don't quit app if trying to close toolbox window when embedding.
15999         Add toolbox_show() and toolbox_hide().
16001         * app/main.c:
16002         Added app_is_embedded() function (just returns false).
16003         Added toolbox_show() call in main().
16005         * app/menus.c:
16006         Added code for getting toolbox menus. This is used to
16007         hide some menu items when running embedded.
16008         
16009         * app/app_procs.c:
16010         Include sheet.h to remove warning.
16012         * objects/UML/association.c:
16013         Clarify association direction text.
16014         
16015 2000-03-16  Fredrik Hallenberg  <hallon@lysator.liu.se>
16017         * dia.1
16018         Fixed man page so whatis parsing works.
16020 2000-03-12  Alexander Larsson  <alla@lysator.liu.se>
16022         * app/render_libart.c (new_libart_renderer):
16023         Fix from segg <segg@infonet.ca> to compile without libart.
16024         I forgot to change the stub for new_libart_renderer when doing
16025         the interactive renderer stuff for libart.
16027 2000-03-11  Alastair McKinstry  <mckinstry@computer.org>
16029         * dia.desktop: Added Irish translation.
16030         
16031         * configure.in (ALL_LINGUAS): Added Irish (ga) translation.
16033 2000-03-07  Asbjorn Pettersen  <asbjornP@dualog.no>
16035         * app/load_save.c (fchmod): OS/2 defines only.
16037 2000-03-07  James Henstridge  <james@daa.com.au>
16039         * lib/properties.c (prop_get_widget): set the position in the option
16040         menu correctly.
16042 2000-03-06  Alexander Larsson  <alla@lysator.liu.se>
16044         * app/display.c:
16045         * app/export_png.c:
16046         * app/render_libart.[ch]:
16047         Don't export png:s with an interactive libart renderer.
16049 2000-03-03  Asbjorn Pettersen  <asbjornP@dualog.no>
16051         * lib/arrows.c (finite): define finite(d) isfinite(d)  for OS/2
16053 2000-03-02  James Henstridge  <james@daa.com.au>
16055         * dia.spec (%build): unset LINGUAS before running configure.  This
16056         ensures that all translations get included in the RPM.
16058         * lib/properties.c (object_create_props_dialog): put in a check for
16059         a NULL return from the describe_props() object method.
16060         (prop_desc_lists_union): make sure that the returned array is not
16061         NULL.
16062         (prop_desc_lists_intersection): same here.
16064 2000-02-29  Alexander Larsson  <alla@lysator.liu.se>
16066         * objects/ER/Makefile.am:
16067         * objects/FS/Makefile.am:
16068         * objects/UML/Makefile.am:
16069         Don't link object libs with gtk.
16071 2000-02-29  James Henstridge  <james@daa.com.au>
16073         * app/preferences.c (prefs_save): check to see if the file could
16074         be opened before writing the prefs.
16076         * app/disp_callbacks.c (popup_object_menu): pass the button event
16077         to gtk_menu_popup.  This allows you to click and release to open
16078         the object menu.
16079         (ddisplay_canvas_events): same here.
16080         (create_object_menu): set the object type menu item in the object
16081         menu to be insensitive.
16083         * app/render_svg.c (draw_string): call xmlEncodeEntitiesReentrant,
16084         as we are now requiring a new version of libxml.
16086         * dia.spec: updated version number.  Added requirement for
16087         libxml >= 1.8.5
16089         * configure.in: incremented version number to 0.84.
16090         Added check for libxml >= 1.8.5.  This will prevent some of the
16091         problems people have had with broken libxml versions.
16093         * NEWS: added news items.
16095         * app/interface.c (create_color_area): removed call to realize parent
16096         widget.  Segg <segg@infonet.ca> reported that it caused a warning,
16097         but I haven't seen it on my copy of dia.
16099 2000-02-28  James Henstridge  <james@daa.com.au>
16101         * app/export_png.c: added copyright notice, and made the band height
16102         a constant.
16104 2000-02-27  Alexander Larsson  <alla@lysator.liu.se>
16106         * lib/font.c (suck_font):
16107         Fixed off-by one bug in font pixmap height.
16108         Fixes the problem with garbage at the bottom of some text in aa mode
16109         and in png exported files.
16111 2000-02-27  James Henstridge  <james@daa.com.au>
16113         * app/app_procs.c: add the png export filter if it was compiled in.
16115         * app/export_png.c (export_png): new PNG export filter.  This requires
16116         the libart renderer to work as it needs a renderer that renders to a
16117         pixel buffer.
16119         * configure.in: add check for libpng.
16121         * lib/message.c (message_internal): use a GNOME dialog here as well.
16123         * app/display.c (ddisplay_close): use a GNOME dialog here.
16125         * app/render_eps.c (create_eps_renderer): use diagram scaling factor
16126         when exporting to EPS.  This is because some people said the EPS
16127         output was too large
16129 2000-02-26  James Henstridge  <james@daa.com.au>
16131         * app/defaults.c (create_dialog): use a GNOME dialog for the defaults
16132         window.
16134         * app/app_procs.c (app_exit): use a GNOME dialog here.
16136         * app/preferences.c (prefs_create_dialog): if GNOME support is
16137         enabled, show a GNOME dialog.
16139         * app/grid.c (grid_draw): use preferences when drawing page break
16140         lines.
16142         * app/preferences.c: add page break preferences to dialog.
16144         * app/preferences.h: added page break preferences.
16146 2000-02-25  James Henstridge  <james@daa.com.au>
16148         * sheets/UML.sheet: added new objects.
16150         * objects/UML/uml.c: link in the two new objects.
16152         * objects/UML/node.c: 
16153         * objects/UML/branch.c: new UML objects from Stfan Seefeld
16154         <seefelds@magellan.umontreal.ca>.
16156 2000-02-24  James Henstridge  <james@daa.com.au>
16158         * objects/custom/custom_object.c: converted to use the properties
16159         interface.  In the future, it would be nice to add support for
16160         defining custom properties for custom objects, but that can wait.
16162 2000-02-22  James Henstridge  <james@daa.com.au>
16164         * sheets/Circuit.sheet: added new circuit shapes to sheet.
16166         * plug-ins/cgm/cgm.c: cgm plugin updates from Henk Jan Priester
16167         <hj@justcroft.com>.  Fixes number encoding, colour encoding, fonts
16168         and adds a few new features.
16170 2000-02-21  Daniel Egger  <egger@suse.de>
16172         * sheets/*.sheets: Added German translations and made some
16173         corrections to the others.
16174         
16175 2000-02-21  James Henstridge  <james@daa.com.au>
16177         * shapes/Circuit/Makefile.am (SHAPES): added new shapes to list.
16179         * shapes/Circuit/...: added new shapes from Erik Janssens.
16181 2000-02-20  James Henstridge  <james@daa.com.au>
16183         * app/interface.c (create_color_area): realize the parent window
16184         first.
16186         * objects/standard/image.c: properties patch for standard image
16187         object, from Lars Clausen.
16189         * lib/properties.c: support for PROP_TYPE_FILE from Lars Clausen.
16191         * lib/properties.h (PropType): added file property type.
16193         * shapes/Circuit/speaker_de.xpm: changed size of pixmap to match
16194         other shapes.
16196         * app/interface.c: use wrap box for toolbox.
16198         * app/Makefile.am: added new files.
16200         * app/gtk*wrapbox.[ch]: added wrap box widget.
16202 2000-02-19  James Henstridge  <james@daa.com.au>
16204         * sheets/network.sheet: added extra shapes to networks sheet.
16206         * configure.in (AC_OUTPUT): added shapes/network/Makefile
16208         * shapes/network/*: added shapes that were posted to the list a while
16209         back.
16210         
16211         * shapes/Makefile.am (SUBDIRS): added network subdirectory
16213         * app/menus.c (toolbox_menu_items): don't right justify help menu for
16214         gtk+ version of menus.
16216         * app/properties.c (create_dialog): use a GnomeDialog if we happen
16217         to be using gnome.
16219 2000-02-18  James Henstridge  <james@daa.com.au>
16221         * objects/flowchart/box.c: set extra data for corner radius and text
16222         padding properties.
16224         * objects/standard/box.c: set extra data for corner radius property.
16226         * lib/properties.h: set extra data in some standard properties.
16228         * lib/properties.c (prop_get_widget): look at the extra data for
16229         int, real and enum property types.  They now use GtkSpinButton and
16230         GtkOptionMenu respectively.
16232         * lib/properties.h: extra data members for creating property setting
16233         widgets.
16235 2000-02-17  James Henstridge  <james@daa.com.au>
16237         * objects/flowchart/box.c: reverted load/save functions back to
16238         previous implementations.  Made box use standard property names.
16240         * plug-ins/cgm/cgm.c (set_linestyle): was missing a */
16242         * app/grid.c: add more digits to the grid edit dialog.  This patch
16243         was also from Lars Clausen.
16245         * objects/standard/zigzagline.c: 
16246         * objects/standard/textobj.c:
16247         * objects/standard/polyline.c:
16248         * objects/standard/line.c:
16249         * objects/standard/ellipse.c:
16250         * objects/standard/box.c: 
16251         * objects/standard/bezier.c: 
16252         * objects/standard/arc.c: patches to add properties code to standard
16253         objects.  Based on patches from Lars Clausen.  I have also removed
16254         some dead code from the files.
16256         * lib/properties.h (PROP_STD_*): define a number of standard
16257         properties.  Where appropriate, objects should include these
16258         properties in their PropDescription list.  This way, the intersection
16259         of properties of two different shapes will be greater.
16261 2000-02-14  James Henstridge  <james@daa.com.au>
16263         * objects/flowchart/box.c (box_load, box_save): use property save
16264         routines.  Make sure that any props not handled by object_load_props
16265         are loaded before calling object_load_props, or we get errors because
16266         update_data is called.
16268         * lib/properties.c (object_get_props_from_offsets): fixed an indexing
16269         error that could cause properties to be loaded incorrectly.
16270         (object_set_props_from_offsets): similar here.
16272         * lib/properties.[ch] (prop_{load,save}): functions for loading
16273         or saving a property in Dia's XML file format.
16274         (object_{load,save}_props): load or save some properties of an
16275         object.  These functions should help simplify the load/save methods
16276         of objects that implement the properties interface.
16278 2000-02-13  James Henstridge  <james@daa.com.au>
16280         * objects/flowchart/box.c: use offset code to simplify property
16281         get/set routines.
16283         * lib/element.h (ELEMENT_COMMON_PROPERTIES): standard element
16284         properties.
16285         (ELEMENT_COMMON_PROPERTIES_OFFSETS): offsets.
16287         * lib/object.h (OBJECT_COMMON_PROPERTIES): list of standard object
16288         properties.
16289         (OBJECT_COMMON_PROPERTIES_OFFSETS): the offsets of the properties.
16291         * lib/properties.[ch] (object_{get,set}_props_from_offsets): new
16292         functions 
16294 2000-02-12  Alexander Larsson  <alla@lysator.liu.se>
16296         * app/Makefile.am:
16297         Add the custom object to DIA_LIB_PATH in run_dia.sh
16299 2000-02-10  Cyrille Chepelov  <chepelov@calixo.net>
16301         * sheets/Circuit.sheet:
16302         * shapes/l_sout* (NEW):
16303         * shapes/l_outj.* (NEW): added new outputs : jump, and the power-saved
16304         variants of simple, inverted, set and reset outputs.
16305         Still to do: all Schneider/Telemecanique TSX *7 function blocks ; 
16306         probably a split of Contact and Ladder sheets. And then a major 
16307         revamping of the Contact sheet.
16309 2000-02-10  James Henstridge  <james@daa.com.au>
16311         * app/Makefile.am (dia_LDADD): don't link with libcustom_objects.
16313         * app/app_procs.c (register_all_objects): don't explicitely
16314         register the custom objects library -- let it be loaded by the
16315         normal plugin loading methods.
16317         * lib/Makefile.am (libdia_a_SOURCES): don't include custom.h here.
16319         * objects/custom/Makefile.am: build libcustom_objects as a shared
16320         library again.
16322         * objects/custom/shape_info.[ch]: don't read the description field
16323         of custom shapes.  It makes more sense to have these in the sheet
16324         file to localise the parts of dia that translators have to deal
16325         with.
16327         * objects/custom/custom_object.c (custom_object_new): do not
16328         create the sheet object for the new custom shape -- this is
16329         handled by the custom sheet code.
16331         * objects/custom/custom.c: change over to being a normal plug-in
16332         rather than being linked with the main dia executable.
16334 2000-02-09  James Henstridge  <james@daa.com.au>
16336         * sheets/Circuit.sheet: 
16337         * sheets/Flowchart.sheet: 
16338         * sheets/Contact.sheet: fixed up sheets.
16340         * objects/custom/custom_object.c (custom_object_new): set the
16341         extra ObjectType fields.
16343         * lib/sheet.c: use extra ObjectType fields when creating sheet
16344         objects.  Give a warning if <shape> tags are found in a sheet
16345         file.  Now the custom sheet code does not know about custom
16346         shapes -- they look like any other object type.
16348         * lib/object.h (ObjectType): added extra members
16350 2000-02-08  Alexander Larsson  <alla@lysator.liu.se>
16352         * app/linewidth_area.c:
16353         Added code to set arbitrary line width.
16354         Patch by Lars Clausen <lrclause@cs.uiuc.edu>
16356 2000-02-08  Alexander Larsson  <alla@lysator.liu.se>
16358         * app/linewidth_area.c: 
16359         * lib/font.[ch]:
16360         Add support for font-sucking.
16361         Implementation borrowed from gnome-canvas.
16362         
16363         * app/render_libart.[ch]:
16364         Implement text rendering.
16366 2000-02-07  Alexander Larsson  <alla@lysator.liu.se>
16368         * app/properties.c (create_dialog):
16369         ref and sink no_properties_dialog.
16371 2000-02-07  James Henstridge  <james@daa.com.au>
16373         * app/group.c (group_describe_props): new function.  Return the
16374         intersection of the properties of the contained objects that
16375         implement the describe_props interface.
16376         (group_get_props): implement by iterating through contained objects
16377         and calling their get_props method until all properties have been
16378         set.  Maybe this should go through all objects all the time??
16379         (group_set_props): implement by calling set_props method on all
16380         contained objects.
16381         (group_ops): use standard props dialog creation routines.
16383         * lib/properties.c (prop_desc_lists_intersection): fix implementation
16384         of intersection -- I was using i++ instead of i-- in a for loop :(
16386         * objects/custom/custom.c (custom_register_objects): fix usage
16387         of dia_get_data_directory again.
16389         * lib/sheet.c: fix up use of dia_get_data_directory, so that we
16390         actually read the sheets.
16392 2000-02-06  Alexander Larsson  <alla@lysator.liu.se>
16394         Win32 port by Hans Breuer <Hans@Breuer.org>
16396         * app/Makefile.am:
16397         Remove DATADIR and LIBDIR defines.
16399         * lib/Makefile.am:
16400         Add dia_dirs.c and dia_dirs.h
16401         Added DATADIR and LIBDIR defines.
16403         * lib/dia_dirs.[ch]:
16404         New files for handling special directories.
16406         * app/app_procs.c:
16407         * app/commands.c:
16408         * lib/sheet.c:
16409         * objects/custom/custom.c:
16410         Fix warnings.  Use directory functions.
16412         * app/diagram.h:
16413         Add prototype for diagram_redraw_all.
16415         * app/diaunitspinner.c:
16416         * app/filedlg.c:
16417         * app/interface.c:
16418         * app/preferences.c:
16419         Fix warning.
16421         * app/load_save.c:
16422         Win32 doesn't have mkstemp and fchmod.
16424         * app/paginate_psprint.c:
16425         Win32 calls popen _popen and pclose _pclose.
16426         
16427         * app/arrow.c:
16428         Win32 calls finite _finite.
16430         * lib/color.h:
16431         Win32 needs to dllexport the color vars.
16433         * objects/GRAFCET/step.c:
16434         * objects/chronogram/chronoref.c:
16435         snprintf -> g_snprintf
16437 2000-02-05  James Henstridge  <james@daa.com.au>
16439         * lib/properties.c: more fixes so that it doesn't crash when using
16440         properties.  The undo/redo stuff also works!!
16442         * objects/flowchart/box.c (box_{describe, get, set}_props): test
16443         object where I have implemented the new properties interface
16444         complete with automatic properties dialog generation.
16446         * lib/properties.c (object_apply_props): fixed stupid error when
16447         creating the old_props array.  Also, it no longer frees the props
16448         array -- you will have to do that yourself.
16450 2000-02-04  James Henstridge  <james@daa.com.au>
16452         * app/properties.c (properties_apply): pass object_part to
16453         apply_properties.
16455         * lib/object.h (ApplyPropertiesFunc): added widget argument.
16457         * lib/lazyprops.h (PROPDLG_CREATE): ref and sink properties dialogs
16458         created this way as well.
16460         * objects/*/*.c: ref and sink the properties dialog window for each
16461         widget.  It can't rely on ref count being incremented by
16462         properties_show anymore.
16464         * app/properties.c (properties_show): don't ref the widget before
16465         removing it, or its ref count will increase each time you open the
16466         properties dialog.  Don't unparent the widget, as container_remove
16467         does that for us.
16469         * lib/object.h: fixed up prototypes for new object methods.
16471         * lib/properties.[ch]: added functions for automatically creating
16472         a properties dialog from the output of describe_props, get_props and
16473         set_props.
16474         (object_apply_props): apply properties and return an ObjectChange
16475         structure that can be used for undo.
16477 2000-02-03  Cyrille Chepelov  <chepelov@calixo.net>
16479         * objects/GRAFCET/transition.c: minor leak plugged.
16481         * sheets/GRAFCET.sheet:
16482         * objects/GRAFCET/pixmaps/condition.xpm: (NEW)
16483         * objects/GRAFCET/condition.c: (NEW) added a new object type, action 
16484         conditions.
16485         * objects/GRAFCET/Makefile.am: fixed incorrect dependencies, added
16486         new ones (for condition.c).
16487         * objects/GRAFCET/action.c: added connection points for the conditions.
16488         * samples/grafcet.dia: updated the sample to improve conformance to
16489         IEC 848 and take advantage of dia's new features.
16490         
16491         * lib/geometry.h: (point_get_normed) fixed a typo.
16493 2000-02-02  James Henstridge  <james@daa.com.au>
16495         * lib/object.h: added object functions describe_props, get_props and
16496         set_props.  Do type definitions so that object.h doesn't need to
16497         include properties.h, since properties.h includes object.h.
16499         * lib/properties.[ch]: more hacking.
16501         * po/de.po: updated po file.
16503 2000-01-30  James Henstridge  <james@daa.com.au>
16505         * configure.in: don't add flags to CFLAGS unconditionally.  Instead,
16506         check to see if the C compiler accepts the flag beforehand.
16508         * lib/properties.[ch]: start of properties code.
16510         * shapes/Contact/Makefile.am (SHAPES): fix up makefile.
16512 2000-01-30  Cyrille Chepelov  <chepelov@calixo.net>
16513         
16514         * sheets/GRAFCET.sheet:
16515         * sheets/GRAFCET/etapemc.xpm: (NEW)
16516         * sheets/GRAFCET/etapesp.xpm: (NEW)
16517         * objects/GRAFCET/step.c: Added the macro and
16518         sub-program call step types.
16520         * objects/GRAFCET/receptivity.[ch]: renamed to 
16521         objects/GRAFCET/boolequation.[ch]. 
16522         * objects/GRAFCET/transition.c: changed (Receptivity *) to 
16523         (BoolEquation *)
16525         * lib/connpoint_line.[ch]: 
16526         * objects/chronogram/chronoline.c:
16527         * objects/chronogram/chronoref.c:
16528         * objects/GRAFCET/vergent.c:
16529         * objects/standard/line.c:
16530         * objects/SADT/box.c: Minor CPL interface changes, factored out the
16531         point count adjustment code into the CPL object.
16532         
16533 2000-01-29  Alexander Larsson  <alla@lysator.liu.se>
16535         * app/render_libart.c:
16536         Added support for images and bezier curves.
16537         Only text/fonts missing now.
16539         * app/render_gdk.c:
16540         Removed old erronous comment.
16542 2000-01-29  Cyrille Chepelov <chepelov@calixo.net>
16544         * objects/chronogram/chronoline_event.c: removed references to
16545         lround(). Please don't insist, I'm already red of shame.
16546         
16547 2000-01-29  Alexander Larsson  <alla@lysator.liu.se>
16549         * app/render_libart.[ch]:
16550         * app/Makefile.am:
16551         Non-finished libart renderer.
16553         * acconfig.h:
16554         Added HAVE_LIBART flag
16556         * configure.in:
16557         Added libart probe
16559         * app/app_procs.c:
16560         Call gdk_rbg_init().
16562         * app/connectionpoint_ops.c:
16563         * app/disp_callbacks.c:
16564         * app/grid.c:
16565         * app/handle_ops.c:
16566         * app/magnify.c:
16567         * app/modify_tool.c:
16568         Change ddisp->renderer type from RendererGdk * to Renderer *
16569         Draw zoom and select rects in ddisp->canvas->window instead
16570         of ddisp->renderer->renderer->pixmap.
16572         * app/display.[ch]:
16573         Add aa_renderer to DDisplay, and  support for it.
16574         New function ddisplay_set_renderer() for changing renderer.
16575         Add ddisplay_transform_coords_double() function, used by aa renderer.
16576         Change ddisp->renderer type from RendererGdk * to Renderer *
16578         * app/menus.c:
16579         Add antialias to menu.
16580         
16581         * app/commands.[ch]:
16582         add view_aa_callback function
16583         Change ddisp->renderer type from RendererGdk * to Renderer *
16585         * lib/geometry.[ch]:
16586         Added IntRectangle and int_rectangle_union.
16588 2000-01-28  James Henstridge  <james@daa.com.au>
16590         * app/commands.h: removed prototypes.
16592         * app/commands.c: removed the functions that have been moved to
16593         filedlg.c.
16595         * app/filedlg.h: added new prototypes.
16597         * app/filedlg.c (file_open_callback): move open dialog to this
16598         file.  This implementation should remember the current directory
16599         between file loads.
16600         (file_save_as_callback): moved this dialog as well.
16601         (file_save_callback): moved this function here.
16603         * app/paginate_psprint.c (paginate_psprint): if not in fit to mode,
16604         align page boundaries to the origin.
16606         * app/diagram.c (diagram_update_extents): redraw the diagram if the
16607         scaling factor changes while updating the extents.  This is so the
16608         page breaks get redrawn correctly.
16610         * app/pagesetup.c (pagesetup_apply): added diagram_flush call when
16611         applying changes.
16613         * app/grid.c (grid_draw): draw page breaks as well as grid lines.
16614         For normal mode, use (0,0) as the origin.  For `fit to' mode, use
16615         the corner of the bounding box.
16617         * app/pagesetup.c (create_page_setup_dlg): load new paper attributes
16618         into page setup dialog.
16619         (pagesetup_apply): apply new `fit to' attributes to the diagram.
16621         * app/load_save.c (diagram_load): load new paper `fit to' attributes.
16622         (diagram_data_save): save `fit to' data.
16624         * lib/diagramdata.c (new_diagram_data): initialise `fit to' members.
16625         (data_update_extents): when in `fit to' mode, update scale factor
16626         when we update the extents.
16628         * lib/diagramdata.h (PaperInfo): added `fit to' members to PaperInfo
16629         structure.
16631         * .../.cvsignore: added some cvsignore files to quieten cvs.
16632         
16633         * app/pagesetup.c (pagesetup_changed): added code to change the
16634         scaling/fit to values as you change the options in the page setup
16635         dialog.  I haven't added code so that the fit to options are saved
16636         though.
16638         * app/diapagelayout.[ch]: changed the scaling portion of the widget
16639         to make it easier to set a `fit to' style scaling factor.
16641 2000-01-27 Cyrille Chepelov <chepelov@calixo.net>
16642         * lib/neworth_conn.[ch]: (NEW) Temporary (hopefully) fork of orth_conn,
16643         but connpoint_line-based, so that there's a connection point at the 
16644         middle of each segment. Currently only the SADT arrow uses this.
16646         * objects/SADT/* (NEW): SADT (both idf0 and idf1) support.
16647         
16648 2000-01-26 Cyrille Chepelov <chepelov@calixo.net>
16649         * lib/lazyprops.[ch]:(NEW) Added a bunch of macros for loading, 
16650         saving and editing of properties (and default properties). 
16651         See the new objects (GRAFCET, SADT, chonograms) for examples.
16652         For already too hairy stuff, see objects/chronogram/chronoline.c.
16654         * lib/connpoint_line.[ch] (NEW): This subobject manages a line of 
16655         evenly spaced connection points, which the user can add or remove at
16656         will. An object can own several connection point lines. See the SADT
16657         Box, or the GRAFCET vergents for examples.
16659         * lib/dummy_dep.h: added dependencies to new files. Told gcc to keep 
16660         quiet about unused stuff.
16662         * objects/GRAFCET (NEW):
16663         * samples/grafcet.dia (NEW):
16664         Added support for GRAFCET charts. 
16666         * objects/chronogram (NEW):
16667         * samples/chronograms.dia (NEW):
16668         Added support for chronograms (feature requested by Ronald L. Chichest;
16669         I found I'd use it often, too).
16671         * objects/standard/line.c: Replace the middle connectionpoint by 
16672         a whole connection point line, which defaults to one point (hint, 
16673         hint). New Line object menu to take advantage of this. 
16674         "Bothwards" compatibility is preserved (although you may loose 
16675         connections if you load a newer file in a older dia).
16677         * app/lineprops_area.c:
16678         * lib/arrows.[ch]:
16679         * lib/widgets.c: Added hollow and filled ellipse arrow head type. 
16680         (feature requested by Benjamin Kahn).
16681         Merged in Steffen Macke's slashed arrow head type.
16683         * app/Makefile.am (app/run_dia.sh actually):
16684         Added $DEBUGGER in front of dia's invocation, so that
16685         you can call "DEBUGGER=ddd app/run_dia.sh" (maybe naive, but useful).
16686         Added $(EFENCE) to app/dia's LDFLAGS, so that you can do 
16687         "EFENCE=-lefence" to link with Electric Fence.
16689         * configure.in: Made gcc do more aggressive optimisations on i386, and
16690         enabled warnings.
16691         
16692 2000-01-24  James Henstridge  <james@daa.com.au>
16694         * lib/geometry.[ch]: added inline versions of functions.  Used
16695         glib's G_INLINE_FUNC stuff, so it should still work on systems
16696         without inline funcs.
16698         * plug-ins/cgm/cgm.c (draw_ellipse, fill_ellipse): fixed up so that
16699         it outputs the correct element id for the ellipse objects.
16701 2000-01-24 Cyrille Chepelov <chepelov@calixo.net>
16703         * lib/object.[ch]: added object_add_connectionpoint_at, similar to
16704         object_add_handle_at. Message typo fixed.
16705         
16706         * lib/sheet.c (load_register_sheet):
16707         potential bug fixed (warning hunt).
16709         * objects/custom/custom.c (custom_object_load): disabled an assertion
16710         which made dia abort upon failure to load a shape file. Fixed a
16711         subsequent crash. 
16713         * objects/custom/shape_info.c (load_shape_info): Made the custom 
16714         shape load code ignore XML comments between <?xml ...?> and the 
16715         root object (mostly useful to put the emacs magic comments).
16716         
16717         * app/load_save.c: Made dia do backup copies of files when saving,
16718         and complain in case of failure.
16720 2000-01-24  Cyrille Chepelov  <chepelov@calixo.net>
16722         * AUTHORS: fixed my address (ISP thought it was a great idea to change
16723         the domain name)
16724         
16725         * configure.in:
16726         * shapes/Contact:
16727         * shapes/Contact/*:
16728         * sheets/Contact.sheet:
16729         * sheets/Makefile.am:
16730         Added support for Contact and LADDER charts.
16732         * dia.desktop: Added a French translation.
16733         
16734 2000-01-23  James Henstridge  <james@daa.com.au>
16736         * app/commands.c (help_about_callback): don't die if can't load
16737         logo image.
16739         * app/render_gdk.c (bezier_add_lines): sanity check to try to weed
16740         out NaN's when performing bezier curve subdivision.
16742         * objects/custom/custom_object.c: initialise memory of Custom structs
16743         to zero.
16745         * app/render_svg.c (draw_image): added image support to the XML
16746         output filter.  The image is just referenced, rather than being
16747         included inline, so if you copy the SVG file somewhere else, you
16748         may need to move the images or fix up the links.
16750         * plug-ins/cgm/cgm.c (draw_string): output a text colour element,
16751         so the text is not just displayed in black all the time.
16753 2000-01-15  Fredrik Hallenberg  <hallon@lysator.liu.se>
16755         * configure.in: fixed libpopt test so we wont try to build with
16756         too old libpopt.
16758 1999-12-18  Yuri Syrota  <rasta@renome.rovno.ua>
16760         * configure.in: Added "uk" to ALL_LINGUAS.
16762 1999-12-24  James Henstridge  <james@daa.com.au>
16764         * po/ru.po: updated russian translation from Valek Filippov.
16765         
16766         * app/render_svg.c (new_svg_renderer): make output use 19991203
16767         version of SVG DTD.  Use viewBox to set the extents of the view.
16769         * INSTALL (FONTS): updated locations of gnome-xml and imlib.  List
16770         ftp.gnome.org as the download.
16772         * TODO (TODO): weeded out completed todo items and added a few extra.
16774         * Makefile.am (EXTRA_DIST): added documentation to EXTRA_DIST.
16776         * doc/sheet.dtd: first stab at a DTD for the sheet files.  It would
16777         be good to get rid of the object/shape distinction and separate
16778         the custom shape code out from the main application.
16780         * objects/custom/README, diagram.dtd: moved to new doc directory.
16781         Renamed the custom shapes README to custom-shapes.  Also updated
16782         custom shape docs a bit and removed the section on sheet files, as
16783         that has changed a bit.
16785         * plug-ins/cgm/cgm.c (draw_image): give an error if the row length
16786         of the image data is larger than the maximum cell array.  I should
16787         add code to break scan lines down further in this case, but for now
16788         an error message is better than an infinite loop.
16790         * app/filedlg.c (file_export_ok_callback): show a dialog if we
16791         couldn't determine the export filter to use.
16793         * app/commands.c (help_about_callback): fixed up about box logo
16794         expose bug.  Now just use a GtkPixmap widget rather than a
16795         GtkDrawingArea and calling gdk_imlib_paste_image.
16797         * app/Makefile.am (EXTRA_DIST): added print stuff to extra dist,
16798         because automake does not always get things right.
16800         * configure.in: updated version number to 0.83.
16802         * app/preferences.c (prefs_save): 
16803         * app/render_svg.c (new_svg_renderer): "wt" is not a valid flag string
16804         for fopen.  Text is the default file mode anyway.
16806         * app/commands.c (file_save_as_dialog_ok_callback, file_new_callback): 
16807         * app/grid.c (grid_x_update, grid_y_update, grid_show_dialog): 
16808         * app/load_save.c (write_objects, write_connections): 
16809         * app/filedlg.c (file_export_ok_callback): 
16810         * lib/dia_xml.c (data_add_int, data_add_enum, data_add_real): 
16811         * lib/dia_xml.c (data_add_point, data_add_rectangle): 
16812         * lib/font.c (init_x11_font, font_get_gdkfont): changed calls to
16813         snprintf to calls to g_snprintf.
16815         * plug-ins/cgm/cgm.c (export_cgm): write the original dia file name
16816         as the picture name.
16818 1999-12-23  James Henstridge  <james@daa.com.au>
16820         * plug-ins/cgm/cgm.c (write_int32, write_int16): fixed up output of
16821         negative numbers.  This fixes the upside down text problem I was
16822         having previously.
16823         (draw_image): implemented the image code.  It will try to split the
16824         image data up into bands if it is too big to fit into a single
16825         cgm cell array element.  It will have problems if you try to insert
16826         an image wider than about 10,000 pixels though.
16828         * Makefile.am: use gnomedatadir for the files that need to be
16829         installed in gnome's datadir.  This is mainly to help people doing
16830         packages for weird setups.
16832 1999-12-22  James Henstridge  <james@daa.com.au>
16834         * plug-ins/cgm/cgm.c: added support for text.  Now only images and
16835         beziers are left to do.  The text seems to be the wrong way up
16836         still.  This is probably a problem with character orientation
16837         element, but I have used what the settings given in the standard.
16838         Other than this, the CGMs dia produces are readable (and displayable)
16839         by ralcgm and corel draw.
16840         (draw_string): subtract from the X coord rather than the Y coord for
16841         center and right aligned text.
16843         * plug-ins/cgm/cgm.c: a few fixups for the output.  Use REALSIZE as
16844         the size of a real number, and changed name of write_double to
16845         write_real.  Consider changing to fixed real encoding.  Also, now
16846         all element headers are correct.  Once the real number encoding is
16847         fixed, only text, beziers and images are left to do.
16849 1999-12-21  James Henstridge  <james@daa.com.au>
16851         * Makefile.am (SUBDIRS): recurse into plug-ins.
16853         * configure.in: add plug-ins directory makefiles to list.
16855         * plug-ins/cgm/cgm.c: start of cgm export filter.  Beziers and text
16856         not done yet.  Also, the output files are not quite correct.
16858         * app/render_eps.c (print_reencode_font): don't reencode the Symbol
16859         font.  It doesn't work if you do.
16861 1999-12-20  James Henstridge  <james@daa.com.au>
16863         * app/app_procs.c (app_init): don't use diagram_export_to_eps to
16864         export the files.  Instead, use filter_guess_export_filter to
16865         guess the correct format to save in and use the appropriate filter.
16866         It defaults to postscript for compatibility.
16868         * app/diagram.[ch] (diagram_export_to_eps): removed export to eps
16869         function.
16871         * app/commands.[ch]: removed export to eps functions.
16873         * app/menus.c: removed export to eps menu items.
16875         * app/app_procs.c: register new export filters.
16877         * app/load_save.[ch]: define dia native export filter.
16879         * app/render_eps.[ch]: define eps export filter.
16881         * lib/filter.h: added diafilename argument to the DiaExportFunc
16882         prototype.  This is useful for putting the source of the diagram
16883         into the output file for instance.
16885         * app/app_procs.c (app_init): register the SVG export filter.  Have
16886         to get EPS code converted to this API, and maybe also allow saving in
16887         DIA's native format from the export dialog.  In fact, it is now
16888         possible to load an export filter from a shared library and it will
16889         integrate into the interface correctly.
16891         * app/menus.c: removed references to the SVG renderer.
16893         * app/commands.[ch]: removed svg stuff.
16895         * app/diagram.[ch]: removed diagram_export_to_svg function.
16897         * app/render_svg.[ch]: added a DiaExportFilter structure for this
16898         renderer.
16900         * app/filedlg.[ch]: code for the new export diagram dialog.  Will
16901         probably move the open/save dialogs to this file as well.
16903 1999-12-19  James Henstridge  <james@daa.com.au>
16905         * lib/filter.[ch]: start of interface for generalised handling of
16906         filters.  I have only done code for export filters so far.  I still
16907         need to do the gui for this, and convert the current SVG and EPS
16908         filters to the new API.
16910         * lib/bezier_conn.c (bezierconn_copy): fix up copy operation.  We
16911         weren't setting the last handle correctly.  It was actually assigning
16912         to the wrong position in the handles array, so the last handle was
16913         left as NULL, which caused the segfault.
16915         * objects/standard/image.c (image_copy): modified routine so that
16916         it just adds a reference to the DiaImage structure in the new image
16917         object.  This seems to have cleared up the problems with copying
16918         image objects.
16920         * dia.spec: spec file additions from John Gotts.
16922 1999-12-12  James Henstridge  <james@daa.com.au>
16924         * configure.in (GNOME_LIBS): updated version number to 0.82.  0.82
16925         has not been released yet though.
16927         * Makefile.am (EXTRA_DIST): distribute diagram.dtd.
16929         
16930         The following based on a patch from Lars Clausen:
16931         
16932         * objects/standard/bezier.c (bezierline_move_handle): when performing
16933         the initial drag of the bezierline, move the control points to keep
16934         the line straight.
16936         * lib/bezier_conn.c (bezierconn_add_segment): when adding a segment,
16937         make the new control points a bit closer to the major point.
16939         * app/create_object.c (create_object_motion): use HANDLE_MOVE_CREATE
16940         as the reason for the move.
16941         (create_object_button_release): use HANDLE_MOVE_CREATE_FINAL as the
16942         move reason.
16944         * lib/handle.h: new handle move reasons.
16946 1999-12-09  James Henstridge  <james@daa.com.au>
16948         * dia.spec: include the new files in RPMs.
16950         * Makefile.am: install these new files.
16952         * dia.keys.in: file describing actions and icon for dia diagrams for
16953         use in the gnome file manager.
16954         
16955         * dia.mime: a file defining the application/x-dia-diagram mime type.
16956         
16957         * dia-diagram.png: an icon for dia diagrams.
16959 1999-12-08  James Henstridge  <james@daa.com.au>
16961         * plug-ins/python/pydia-diagram.c: added heaps of new methods.
16963         * plug-ins/python/pydia-display.[ch]: wrapper for display.
16965         * objects/standard/ellipse.c: applied Lars's patch to optionally not
16966         draw the background of the ellipse.
16968         * app/load_save.c (read_connections): do some sanity checking on the
16969         handle and connection point numbers before performing the object
16970         connection.
16972         * lib/bezier_conn.c (bezierconn_load): give the correct number of
16973         handles when loading a BezierConn.
16975 1999-12-07  Kjartan Maraas  <kmaraas@online.no>
16977         * sheets/*.sheet: Finished Norwegian translations.
16978         
16979 1999-12-07  James Henstridge  <james@daa.com.au>
16981         * plug-ins/python/diamodule.c (PyDia_Load): load diagram function.
16982         (PyDia_GetObjectType): find object type function.
16984         * plug-ins/python/pydia-diagram.c (PyDiaDiagram_Save): added a save
16985         method for diagrams.
16987         * plug-ins/python/pydia-object.c: added methods for DiaObject and
16988         DiaObjectType.
16990         * AUTHORS: added Lars and Cyrille to the authors file.
16992         * objects/standard/bezier.c (bezierline_add_segment_callback): place
16993         new point correctly.
16995         * lib/bezier_conn.h (bezierconn_closest_segment): fixed prototype.
16997         * lib/bezier_conn.c: applied Lars's patch for placement of the new
16998         point when adding a segment to a BezierConn.
17000 1999-12-06  James Henstridge  <james@daa.com.au>
17002         * plug-ins/python/test.py: test script for the python plug-in.
17004         * plug-ins/python/python.c: this file contains the plug-in startup
17005         code for the python plugin.  Right now, it just initialises the
17006         dia module and executes a script.
17008         * objects/standard/polyline.c (polyline_draw): fix start arrow size.
17010         * objects/standard/bezier.c (bezierline_draw): draw control lines for
17011         bezier curve if we are using an interactive renderer (ie. only if
17012         displaying to the screen).
17014         * lib/bezier_conn.[ch] (bezierconn_draw_control_lines): function
17015         to draw control lines on to a bezier curve.  Based on implementation
17016         from Lars.
17018         * objects/standard/bezier.c (bezierline_delete_segment_callback):
17019         calculate segment number using closest_segment rather than
17020         closest_handle.  Sometimes the closest handle is part of a different
17021         segment.
17022         (bezierline_draw): use correct size for start arrow.
17024         The next few entries are from Peter Moulder <reiter@netspace.net.au>:
17025         * lib/geometry.c (distance_line_point): added notes to documentation
17026         in comment.
17027         * app/object_ops.c (object_list_align_v): 
17028         (object_list_align_h): fix of by one error when calculating free space
17029         for equal distance alignment.
17030         * app/menus.c (objects_align_h, objects_align_v): include align
17031         adjacent menu items in the gnome version of the menus.
17032         * app/diagram.c (diagram_update_menu_sensitivity): set sensitivity on
17033         align adjacent menu items correctly.
17036         * lib/dummy_dep.h (dummy_dep): added bezierconn to dummy dependency
17037         table.
17039         * objects/standard/bezier.c: converted bezierline to use BezierConn.
17040         Still a few bugs.  It crashes on deleting line segments.
17042         * lib/Makefile.am (libdia_a_SOURCES): added BezierConn to libdia.
17044 1999-12-05  James Henstridge  <james@daa.com.au>
17046         * lib/bezier_conn.[ch]: start of BezierConn object
17048         * app/interface.c: add bezierline to toolbox.
17050         * objects/standard/standard.c: initialise bezierline.
17052         * objects/standard/bezier.c: new object from Lars R. Clausen.  I have
17053         made a few modifications to get it working nicely.  It still needs
17054         a bit of work though.  Maybe create a BezierConn object in lib.
17056 1999-12-02  James Henstridge  <james@daa.com.au>
17058         * plug-ins/python/pydia-*.c: fixed compile errors in these files.
17059         
17060         * plug-ins/python/Makefile.am: tried building everything.  It is
17061         building as a library at the moment.  I will have to convert it
17062         to a libtool library and add some initialisation code.
17063         
17064         * plug-ins/python/diamodule.c: start of the dia module, using the
17065         other object wrappers.  Not complete.
17067 1999-12-01  James Henstridge  <james@daa.com.au>
17069         * plug-ins/python/pydia-object.c (PyDiaObject_GetAttr): implement
17070         the handles and connections attributes.
17072         * plug-ins/python/pydia-layer.c: added functions that use
17073         ConnectionPoint's.
17075         * plug-ins/python/pydia-handle.[ch]: wrapper for Handle's.
17077         * plug-ins/python/pydia-cpoint.[ch]: wrapper for ConnectionPoint's.
17079         * plug-ins/python/pydia-*.[ch]: starts of python scripting plug-in.
17080         I am currently wrapping the basic elements in the diagram in python
17081         objects -- nothing to see or play with yet.
17083 1999-11-30  Alexander Larsson  <alla@lysator.liu.se>
17085         * AUTHORS:
17086         * HACKING:
17087         James Henstridge <james@daa.com.au> is now the maintainer of Dia.
17089 1999-11-29  Alexander Larsson  <alla@lysator.liu.se>
17091         * configure.in:
17092         * po/ru.po:
17093         Added russian translation from Valek Filippov <frob@df.ru>
17095 1999-11-24  James Henstridge  <james@daa.com.au>
17097         * sheets/UML/*: 
17098         * sheet/ER/*: moved extra sheet pixmaps back to separate dirs as
17099         discussed with Alex.  Also added extra makefiles so that make install
17100         works correctly.
17102 1999-11-23  Alexander Larsson  <alla@lysator.liu.se>
17104         * app/preferences.[ch]:
17105         * app/display.c:
17106         Added snap to grid preference.
17107         Patch from Michael Leslie <mles@springboardwireless.com>
17109 1999-11-21  Alexander Larsson  <alla@lysator.liu.se>
17111         * app/load_save.c:
17112         * lib/dia_xml.c:
17113         * lib/sheet.c:
17114         * lib/text.c:
17115         * objects/custom/shape_info.c:
17116         All strings returned by libxml must be freed with free, not
17117         g_free, or there will be problems if you use memory debugging
17118         in glib.
17119         
17120 1999-11-21  Alexander Larsson  <alla@lysator.liu.se>
17122         * app/create_object.[ch]:
17123         * app/menus.c:
17124         * app/tool.[ch]:
17125         * app/commands.[ch]:
17126         * app/pixmaps.h:
17127         * app/interface.[ch]:
17128         Reverted the tool menu patch. It has some 'issues'.
17129         I liked it though, so it'll probably return.
17131 1999-11-21  Alexander Larsson  <alla@lysator.liu.se>
17133         Fixed a lot of memory leaks. Thanks to Bruce Mitchener
17134         <bruce@cybersight.com> for some purify runs and analysis.
17135         Also a great thank you to Owen Taylor for creating MemProf, a
17136         free memory leak detector that was used to find and verify a
17137         lot of these fixes.
17138         
17139         * app/diagram.c:
17140         * app/paginate_psprint.c:
17141         * app/render_eps.[ch]:
17142         * app/render_svg.[ch]:
17143         Free renderers.
17145         * app/interface.c:
17146         Don't add a reference to ddisp->shell. Why was this done in
17147         the first place?
17149         * app/load_save.c:
17150         * lib/dia_xml.c:
17151         * lib/sheet.c:
17152         * lib/text.c:
17153         Free all strings returned from xmlGetProp
17155         * app/modify_tool.c:
17156         Plug leak.
17158         * objects/custom/custom.c:
17159         Use closedir() after opendir().
17161         * objects/custom/shape_info.c:
17162         User g_free() instead of "if (tmp) free(tmp)".
17164         * sheets/ER.sheet:
17165         Add newline at end of file.
17166         
17168 1999-11-20  Alexander Larsson  <alla@lysator.liu.se>
17170         Based on patch from Patrick Reynolds <reynolds@cs.duke.edu>
17171         Adds tool menu and keyboard shortcuts.
17173         * app/create_object.[ch]:
17174         Use tool_set() instead of tool_reset().
17175         create_create_object_tool() takes extra type argument
17177         * menus.c:
17178         Add tools menu.
17179         
17180         * tool.[ch]:
17181         Moved tool_data here, export it.
17182         Add separate tool type for all create objects tools.
17183         new functions tool_set().
17185         * commands.[ch]:
17186         New callback tool_set_callback.
17188         * pixmaps.h:
17189         Moved some pixmaps to interface.c.
17190         
17191         * interface.[ch]:
17192         Remove tool_data array (moved to tool.c).
17193         Use the tool_data from tool.c.
17194         Remove modify_tool_button global var.
17195         
17196 1999-11-20  Alexander Larsson  <alla@lysator.liu.se>
17198         Patch from Patrick Reynolds <reynolds@cs.duke.edu>
17199         
17200         * app/app_procs.c:
17201         Interprets command-line arguments as files to open even when
17202         HAVE_POPT is not defined.
17204         * app/magnify.c:        
17205         Shift-clicking when zooming zooms out, like the Gimp.
17207         * app/menus.c:
17208         Has hotkeys for zoom-100% and snap-to-grid.
17210 1999-11-17  James Henstridge  <james@daa.com.au>
17212         * app/scroll_tool.c (scroll_motion): fixed shift style scrolling so
17213         that it is not jumpy.
17215         * app/Makefile.am (EXTRA_DIST): added extra files to extra dist list.
17217         * app/scroll_tool.c (scroll_motion): added `grabbing hand' type
17218         scrolling by pressing the shift key when using the scroll tool.
17220         * sheets/Makefile.am: fixed makefile so that install actually works
17221         if the directories $(pkgdatadir)/sheets/UML and $(pkgdatadir)/sheets/ER
17222         don't exist.
17223         (SHEETS): install Circuit.sheet
17225 1999-11-15  Alexander Larsson  <alla@lysator.liu.se>
17226         Patch from Cyrille Chepelov <chepelov@rmcnet.fr>
17228         * sheets/Circuit.sheet:
17229         * sheets/ER.sheet:
17230         * sheets/FS.sheet:
17231         * sheets/Flowchart.sheet:
17232         * sheets/UML.sheet:
17233         * sheets/network.sheet:
17234         * sheets/sybase.sheet:
17235         Changed name space
17237         * sheets/Circuit.sheet:
17238         added some missing French translations
17240         * lib/sheet.c:
17241         killed the temporary sheet namespace
17243         * objects/custom/custom.c:
17244         obsolete comment cleaned up
17246 1999-11-12  Alexander Larsson  <alla@lysator.liu.se>
17248         * configure.in:
17249         * po/pt.po:
17250         Added portugese translation from Pedro Morais
17251         <pmmm@rnl.ist.utl.pt>
17253 1999-11-11  Alexander Larsson  <alla@lysator.liu.se>
17255         Changed all sheets to be specified in xml.
17256         All sheet objects removed from the C code.
17257         Patch from Cyrille Chepelov <chepelov@rmcnet.fr>
17258         
17259         * Makefile.am:
17260         * configure.in:
17261         Adding shapes dir.
17262         Updated version to 0.81cvs.
17263         
17264         * app/Makefile.am:
17265         Update run_dia.sh with sheet-dir.
17266         
17267         * app/app_procs.c:
17268         Load all sheets on startup.
17269         Create sheet directory first time.
17270         Don't call custom_register_sheets().
17272         * lib/Makefile.am:
17273         Add sheetdir define
17275         * lib/custom.h:
17276         Remove custom_register_sheets().
17278         * lib/sheet.[ch]:
17279         Add sheet loading code.
17281         * sheet/Circuit.sheet:
17282         * sheet/ER.sheet:
17283         * sheet/FS.sheet:
17284         * sheet/Flowchart.sheet:
17285         * sheet/UML.sheet:
17286         * sheet/network.sheet:
17287         * sheet/sybase.sheet:
17288         Added sheet files.
17290         * sheet/ER/weakentity.xpm:
17291         * sheet/UML/aggregation.xpm
17292         * sheet/UML/umlclass_template.xpm
17293         Added sheet pixmaps.
17294         These are moved from their old places.
17296         * sheet/.cvsignore:
17297         Shut up cvs.
17299         * objects/*/*.c:
17300         Removed sheet objects and sheet registration.
17301         
17302         * objects/ER/Makefile.am:
17303         * objects/ER/pixmaps/weakentity.xpm:
17304         * objects/UML/Makefile.am:
17305         * objects/UML/pixmaps/aggregation.xpm:
17306         * objects/UML/pixmaps/umlclass_template.xpm:
17307         Removed alternative pixmaps. (Moved to sheet).
17309         * objects/custom/Makefile.am:
17310         * objects/custom/load_sheet.[ch]:
17311         Removed old sheet loading code.
17312         
17313         * objects/custom/custom.c:
17314         Load all shapes instead of sheets.
17315         Removed custom_register_sheets().
17317         * objects/custom/custom_object.c:
17318         Added debug code.
17320         * objects/custom/shape_info.[ch]:
17321         Added shape_info_getbyname().
17323         * objects/flowchart/Makefile.am:
17324         * objects/flowchart/collate.shape            
17325         * objects/flowchart/delay.shape              
17326         * objects/flowchart/display.shape            
17327         * objects/flowchart/document.shape           
17328         * objects/flowchart/extract.shape            
17329         * objects/flowchart/flowchart.c              
17330         * objects/flowchart/intstorage.shape         
17331         * objects/flowchart/magdisk.shape            
17332         * objects/flowchart/magdrum.shape            
17333         * objects/flowchart/magtape.shape            
17334         * objects/flowchart/manualinput.shape        
17335         * objects/flowchart/manualop.shape           
17336         * objects/flowchart/merge.shape              
17337         * objects/flowchart/offlinestore.shape       
17338         * objects/flowchart/offpageconn.shape        
17339         * objects/flowchart/or.shape                 
17340         * objects/flowchart/predefdproc.shape        
17341         * objects/flowchart/preparation.shape        
17342         * objects/flowchart/punchedcard.shape        
17343         * objects/flowchart/punchedtape.shape        
17344         * objects/flowchart/sort.shape               
17345         * objects/flowchart/sumjunction.shape        
17346         * objects/flowchart/terminal.shape           
17347         * objects/flowchart/transaction.shape        
17348         * objects/flowchart/transmittape.shape       
17349         * objects/flowchart/pixmaps/collate.xpm      
17350         * objects/flowchart/pixmaps/delay.xpm        
17351         * objects/flowchart/pixmaps/display.xpm      
17352         * objects/flowchart/pixmaps/document.xpm     
17353         * objects/flowchart/pixmaps/extract.xpm      
17354         * objects/flowchart/pixmaps/intstorage.xpm   
17355         * objects/flowchart/pixmaps/magdisk.xpm      
17356         * objects/flowchart/pixmaps/magdrum.xpm      
17357         * objects/flowchart/pixmaps/magtape.xpm      
17358         * objects/flowchart/pixmaps/manualinput.xpm  
17359         * objects/flowchart/pixmaps/manualop.xpm     
17360         * objects/flowchart/pixmaps/merge.xpm        
17361         * objects/flowchart/pixmaps/offlinestore.xpm 
17362         * objects/flowchart/pixmaps/offpageconn.xpm  
17363         * objects/flowchart/pixmaps/or.xpm           
17364         * objects/flowchart/pixmaps/predefdproc.xpm  
17365         * objects/flowchart/pixmaps/preparation.xpm  
17366         * objects/flowchart/pixmaps/punchedcard.xpm  
17367         * objects/flowchart/pixmaps/punchedtape.xpm  
17368         * objects/flowchart/pixmaps/sort.xpm         
17369         * objects/flowchart/pixmaps/sumjunction.xpm  
17370         * objects/flowchart/pixmaps/terminal.xpm     
17371         * objects/flowchart/pixmaps/transaction.xpm  
17372         * objects/flowchart/pixmaps/transmittape.xpm 
17373         Moved shapes and their pixmaps to shapes/flowchart
17375         * shapes/Circuit/Makefile.am:
17376         * shapes/Circuit/index.sheet:
17377         Removed index.sheet.
17378         
17379         * shapes/Makefile.am:
17380         * shapes/flowchart/Makefile.am:
17381         * shapes/flowchart/*.shape:
17382         * shapes/flowchart/*.xpm:
17383         Added flowchart shapes. (Moved from objects/flowchart)
17384         
17386 1999-11-07  Fredrik Hallenberg  <hallon@lysator.liu.se>
17388         * app/app_procs.c: Fixed popt stuff.
17390 1999-11-01  James Henstridge  <james@daa.com.au>
17392         * shapes/Circuit/[hv]led_de.{shape,xpm}: new circuit shapes from
17393         Andreas Scherf.
17395 1999-10-31  Alexander Larsson  <alla@lysator.liu.se>
17397         * dia.spec:
17398         * configure.in:
17399         Update version to 0.81.
17400         
17401         * NEWS:
17402         Update with news for 0.81.
17403         
17404         * shapes/Circuit/*:
17405         * shapes/Circuit_eu/*:
17406         Moved european circuit objects to Circuit sheet.
17408 1999-10-31  Alexander Larsson  <alla@lysator.liu.se>
17409         
17410         * lib/diagramdata.[ch]:
17411         Added layer_set_object_list() function.
17413         * app/undo.[ch]:
17414         Added support for undo of reordered objects.
17415         Fix the undo of delete to keep the right order on undo.
17416         
17417         * app/diagram.c:
17418         changed loop to object_add_updates_list() calls.
17419         Added undo support to bring to front/back.
17421         * app/disp_callbacks.c:
17422         * app/paginate_psprint.c:
17423         Remove warnings.
17425 1999-10-30  Alexander Larsson  <alla@lysator.liu.se>
17427         This plugs some leaks. Thanks to
17428         Bruce Mitchener <bruce@cybersight.com> for running
17429         Dia through purify for me.
17430         
17431         * app/app_procs.c:
17432         Free displays and diagrams on exit.
17434         * app/modify_tool.c:
17435         Free gc when freeing tool.
17437         * lib/diagramdata.c:
17438         Free layer name.
17439         
17440         * app/display.c:
17441         Free update and display lists when destroying display.
17442         
17443         * lib/diagramdata.c:
17444         Don't leak layer name.
17446         * objects/custom/load_sheet.c: 
17447         * objects/custom/shape_info.c:
17448         Free loaded xml documents.
17450 1999-10-28  Alexander Larsson  <alla@lysator.liu.se>
17452         * app/commands.c:
17453         * app/object_ops.[ch]:
17454         Add undo handling to alignment ops.
17455         Based partially on patch by Dan Cohn <dan@internap.com>.
17457         * objects/standard/image.c (image_move_handle):
17458         Don't divide by zero for small images.
17459         Patch by Dan Cohn <dan@internap.com>.
17461         * objects/UML/class.c (umlclass_destroy): 
17462         * objects/custom/custom_object.c (custom_destroy):
17463         Don't free connectionpoints before calling element_destroy
17464         which unconnects them.
17466 1999-10-26  Alexander Larsson  <alla@lysator.liu.se>
17468         * objects/custom/custom_object.c: 
17469         Load and save padding too. Fixes strange load crashes.
17471         * app/group.c (group_destroy):
17472         Don't unconnect already freed connectionpoints when
17473         destroying group. Probably fixes bug reported by
17474         Elliot Lee <sopwith@redhat.com>.
17476         * app/render_gdk.c:
17477         Don't crash on zero-size (broken) bezier curves.
17478         Different sort of fix. This should work on closed bezier curves
17479         too.
17481         * objects/standard/textobj.c:
17482         Activate default properties dialog for Text objects.
17484         * app/render_eps.c: 
17485         * app/load_save.c:
17486         * app/preferences.c:
17487         * app/render_svg.c:
17488         fopen files in binary or text mode.
17490 1999-10-26  Alexander Larsson  <alex@cendio.se>
17492         * app/render_gdk.c (bezier_add_lines):
17493         Don't crash on zero-size (broken) bezier curves.
17494         Fixes a crashing bug.
17496 1999-10-25  James Henstridge  <james@daa.com.au>
17498         * app/Makefile.am (run_dia.sh): allow dia to find internal shape files
17499         before it is installed.
17501         * objects/flowchart/flowchart.c: use relative paths to find shapes.
17503         * objects/custom/custom.c (custom_object_load): take file names
17504         relative to $(pkgdatadir)/shape-internal, and check an environment
17505         variable for an alternative directory.
17507         * app/...: added copyright messages to the top of my new code.
17509         * app/paginate_psprint.c: some general clean ups.  Also, give an error
17510         dialog if we can't open the command or output file for writing.
17512         * app/diapagelayout.c (dia_page_layout_set_orientation): fixed
17513         function so it would set orientation to landscape correctly.
17515         * app/paginate_psprint.c: use the paper settings that come with
17516         the diagram.  Also implemented landscape printing.
17518         * app/render_eps.c (new_psprint_renderer): use diagram paper metrics
17519         in PS header.
17521         * app/commands.[ch] (file_pagesetup_callback): added callback for
17522         the page setup dialog.
17524         * app/menus.c: added page setup menu item.
17526         * app/pagesetup.[ch]: implementation of the page setup dialog.
17528         * app/diapagelayout.[ch]: added accessors for the scaling factor.
17529         
17530         * app/load_save.c (diagram_load): load paper information from save
17531         file.
17532         (diagram_save): save the paper info.
17534         * lib/diagramdata.c (new_diagram_data): initialise paper info section
17535         of DiagramData structure.
17536         (diagram_data_destroy): free the paper name.
17538         * lib/diagramdata.h: added a paper member to the DiagramData structure
17539         that holds the page layout info for a diagram.
17541 1999-10-21  Alexander Larsson  <alla@lysator.liu.se>
17543         * objects/flowchart/box.c:
17544         * objects/flowchart/ellipse.c:
17545         * objects/flowchart/diamond.c:
17546         * objects/flowchart/parallelogram.c:
17547         Load and save padding too. Fixes strange load crashes.
17549 1999-10-21  Alexander Larsson  <alla@lysator.liu.se>
17551         * app/app_procs.c (name_is_lib):
17552         .dll, .sl and .so.0.0.0 are also libraries.
17554 1999-10-20  James Henstridge  <james@daa.com.au>
17556         * configure.in: added extra makefile.
17557         
17558         * shapes/Circuit_eu/*: a new set of european circuit shapes from
17559         Andreas Scherf <scherfa@fh-trier.de>.  Made a few small modifications
17560         (added fuses to makefile, fill the area of some of the components).
17562 1999-10-19  Alexander Larsson  <alla@lysator.liu.se>
17564         * lib/Makefile.am:
17565         * app/Makefile.am: 
17566         Add GDK_IMLIB_CFLAGS to includes.
17567         Changed --export-dynamic to -export-dynamic
17569         * lib/widgets.c:
17570         * objects/UML/message.c:
17571         Removed c++ comment.
17573         * lib/render_store.[ch]:
17574         Don't use empty structure. That is not Ansi C.
17576 1999-10-19  James Henstridge  <james@daa.com.au>
17578         * app/diapagelayout.c (dia_page_layout_init): use DiaUnitSpinner's for
17579         the margin entries, as they allow interpretation of units.
17580         (paper_size_change): display the current page dimensions.
17582         * app/diaunitspinner.[ch]: a widget derived from the standard
17583         GtkSpinButton that tries to take units into account.  So if you enter
17584         "1in" into the entry, it will convert it to 2.54cm.
17586 1999-10-18  Alexander Larsson  <alla@lysator.liu.se>
17588         * app/app_procs.c:
17589         Removed include of dlfcn.h
17591 1999-10-18  James Henstridge  <james@daa.com.au>
17593         * app/diapagelayout.c (paper_size_change, orient_changed): set upper
17594         bound on margin widths.  It is set to the paper width/height.
17596         * objects/flowchart/diamond.c (diamond_distance_from): fixed distance
17597         routine for the diamond.  This bug was found and fixed by Daniel Wang
17598         <danwang@CS.Princeton.EDU>
17600 Sun Oct 17 19:46:36 1999  ape@gandalf.spacetec.no  (Asbjorn Pettersen)
17602         * app/commands.c: Add <sys/types.h> before <sys/stat.h> to
17603         remove warning (OS/2 version).
17605 1999-10-17  Alexander Larsson  <alla@lysator.liu.se>
17607         * README:
17608         Put a pointer to objects/custom/README.
17609         
17610 1999-10-17  Alexander Larsson  <alla@lysator.liu.se>
17612         * dia.spec:
17613         Updated version to 0.80
17615         * configure.in:
17616         Updated version to 0.80cvs
17618 1999-04-08  Alexander Larsson  <alla@lysator.liu.se>
17620         * Released Dia 0.80
17621         Tag called DIA_0_80
17622         
17623 1999-10-17  Fredrik Hallenberg  <hallon@lysator.liu.se>
17625         * app/Makefile.am
17626         * lib/Makefile.am
17627         * objects/UML/Makefile.am
17628         * objects/ER/Makefile.am
17629         * objects/network/Makefile.am
17630         * objects/standard/Makefile.am
17631         * objects/FS/Makefile.am
17632         * objects/sybase/Makefile.am
17633         * objects/flowchart/Makefile.am
17634         * objects/custom/Makefile.am
17635         Added -I$(top_srcdir)/intl which is needed for
17636         --with-included-gettext.
17638         * POTFILES.in
17639         Updated.
17640         
17641         * po/sv.po
17642         Updated swedish translation.
17644 1999-10-16  Alexander Larsson  <alla@lysator.liu.se>
17646         * configure.in:
17647         Updated version number to 0.80.
17649         * KNOWN_BUGS:
17650         New file.
17652         * TODO:
17653         Updated. Moved bugs to KNOWN_BUGS.
17655         * NEWS:
17656         Updated with 0.80 release notes.
17657         
17658 1999-10-16  Alexander Larsson  <alla@lysator.liu.se>
17659         
17660         * lib/orth_conn.c:
17661         For backwards compatibility, make sure handle 0 and 1 are the
17662         first and last handle. Fixes compatibility with 0.41, breaks
17663         compatibility with cvs version.
17664         Fixed bug in undo/redo of adding deleting endpoint segments
17665         when the endpoint was connected.
17666         Start OrthConn objects with three segments.
17668 1999-10-16  James Henstridge  <james@daa.com.au>
17670         * objects/custom/custom_object.c (custom_update_data): changed
17671         resizing behaviour a bit so that shapes don't grow huge when you try
17672         to resize them to smaller than the size required by the text box.
17673         Also, now shapes will not grow with fixed aspect ratio when you enter
17674         text into them unless the shape has the fixed aspect ratio flag set.
17676 1999-10-15  James Henstridge  <james@daa.com.au>
17678         * objects/flowchart/flowchart.c: add new shapes to flowchart sheet.
17680         * object/flowchart/pixmaps/...: corresponding pixmaps for new shapes.
17682         * objects/flowchart/magdrum.shape: 
17683         * objects/flowchart/offlinestore.shape: 
17684         * objects/flowchart/punchedtape.shape: 
17685         * objects/flowchart/transmittape.shape: 
17686         * objects/flowchart/punchedcard.shape: new shapes.
17688         * objects/flowchart/flowchart.c: add new shapes to flowchart sheet.
17690         * object/flowchart/pixmaps/...: corresponding pixmaps for new shapes.
17692         * objects/flowchart/collate.shape:
17693         * objects/flowchart/delay.shape:
17694         * objects/flowchart/extract.shape:
17695         * objects/flowchart/intstorage.shape:
17696         * objects/flowchart/magdisk.shape:
17697         * objects/flowchart/magtape.shape:
17698         * objects/flowchart/merge.shape:
17699         * objects/flowchart/or.shape:
17700         * objects/flowchart/sort.shape:
17701         * objects/flowchart/sumjunction.shape: new shapes.
17703 1999-10-15  Alexander Larsson  <alla@lysator.liu.se>
17705         * TODO (BUGS):
17706         Added bug:
17707         Entering an erronous command as print command
17708         crashes dia.
17710         * app/paginate_psprint.c:
17711         Save all print dialog values for next time.
17712         
17713         * app/Makefile.am:
17714         Remove custom lib from DIA_LIB_PATH.
17716 1999-10-14  James Henstridge  <james@daa.com.au>
17718         * objects/flowchart/flowchart.c: add new shapes to flowchart sheet.
17720         * object/flowchart/pixmaps/...: corresponding pixmaps for new shapes.
17721         
17722         * objects/flowchart/offpageconn.shape: 
17723         * objects/flowchart/manualop.shape: 
17724         * objects/flowchart/preparation.shape: 
17725         * objects/flowchart/manualinput.shape: 
17726         * objects/flowchart/predefdproc.shape: 
17727         * objects/flowchart/terminal.shape: new shapes in the flowchart sheet.
17729 1999-10-13  James Henstridge  <james@daa.com.au>
17731         * app/diapagelayout.[ch]: added accessors to paper information.  The
17732         widget should be just about complete now.
17734         * app/diapagelayout.[ch]: fleshed out the page setup widget a bit more.
17735         It actually does something now.
17737 1999-10-12  James Henstridge  <james@daa.com.au>
17739         * app/pixmaps/portrait.xpm, app/pixmaps/landscape.xpm: support pixmaps
17740         for the page layout widget.
17742         * app/diapagelayout.[ch]: start of page layout widget.  Not actually
17743         built yet as it is not complete.
17745         * objects/flowchart/flowchart.c: added new shapes to sheet.
17747         * objects/flowchart/display.shape:
17748         * objects/flowchart/transaction.shape: new shapes.
17750         * AUTHORS: added my name to the spec file.
17752         * dia.spec: include the dia desktop entry to the spec file.
17754         * Makefile.am: install the dia.desktop file.
17756         * dia.desktop: added a gnome desktop entry so you can start dia
17757         from the gnome panel menu.
17759 1999-10-11  James Henstridge  <james@daa.com.au>
17761         * objects/custom/custom_object.c:
17762         * objects/custom/shape_info.c: warning fixes.
17764         * objects/flowchart/document.shape: a shape file for the `document'
17765         flowchart shape.
17767         * lib/custom.h: new header with the custom shape prototypes.
17769         * app/app_procs.c: register custom objects as well.
17770         (register_objects_in): close shared libraries if they don't load
17771         correctly, and call g_module_make_resident on libraries that load
17772         correctly.
17774         * app/Makefile.am (dia_LDADD): added libcustom_objects.a to link list.
17776         * objects/custom/custom.c: removed get_version, added custom_ prefix
17777         to register_objects and register_sheets.
17779         * objects/custom/Makefile.am: converted to a normal library.
17781 1999-10-10  Alexander Larsson  <alla@lysator.liu.se>
17783         * app/lineprops_area.c:
17784         * app/render_svg.c:
17785         * lib/objchange.c:
17786         * objects/custom/shape_info.c:
17787         * objects/flowchart/box.c:
17788         * objects/flowchart/diamond.c:
17789         * objects/flowchart/ellipse.c:
17790         * objects/flowchart/parallelogram.c:
17791         * objects/network/flash.c:
17792         * objects/network/scead-plug.c:
17793         * objects/sybase/client.c:
17794         Removed -Wall warnings.
17795         
17796         * objects/network/bus.c:
17797         Removed unused functions.
17799         * objects/FS/flow-ortho.c:
17800         * objects/FS/flow-poly.c:
17801         * objects/FS/flow.c:
17802         * objects/FS/function.c:
17803         
17804         Implemented "non-implemented" undo for FS objects.
17805         Now at least it won't crash.
17806         
17807 1999-10-10  Alexander Larsson  <alla@lysator.liu.se>
17809         * objects/network/bus.c:
17810         Implemented undo.
17811         Handles are now added and removed using the object menu.
17812         Default to 6 handles instead of 10.
17813         Changed name from "Standard - Bus" to "Network - Bus". Kept old
17814         name for backwards compatibility.
17816         * objects/network/network.c:
17817         Changed name from "Standard - Bus" to "Network - Bus". Kept old
17818         name for backwards compatibility.
17820         * app/properties.[ch]:
17821         * app/undo.c:
17822         Update properties in properties dialog if the shown object
17823         is part of and ObjectChange (undo or redo).
17825         * lib/poly_conn.c:
17826         Remove old known bugs list.
17828         * objects/UML/class_dialog.c:
17829         Removed debug printf's.
17831 1999-10-10  James Henstridge  <james@daa.com.au>
17833         * objects/custom/custom.c (custom_object_load): new function that
17834         provides a nice entry point to the custom shape code for when it
17835         gets used by other libraries.
17837         * configure.in: removed 11 makefiles from AC_OUTPUT list.  This
17838         speeds builds up a bit.
17840         * */Makefile.am (EXTRA_DIST): include pixmaps in distribution.
17841         (SUBDIRS): do not descend into pixmaps subdirs.
17843         * */pixmaps/Makefile.am: removed -- incorporate into parent makefiles.
17844         This speeds up build process.
17846         * objects/custom/custom.c (sheets): made variable static.
17848         * objects/custom/custom_util.[ch] (custom_get_relative_filename):
17849         renamed function.
17851         * objects/custom/load_sheet.[ch] (custom_sheet_load): renamed function.
17853         * objects/custom/custom.c: look in ~/.shapes instead of
17854         ~/.dia_shapes as the per-user shapes directory.
17856         * app/preferences.c (prefs_save): save config to ~/.diarc.
17857         (prefs_load): load configuration from ~/.diarc.  If the file
17858         does not exist, fallback on the old ~/.diarc location.
17860         * app/app_procs.c (create_user_dirs): create the ~/.dia directory
17861         on startup.
17862         (register_all_objects): look for user specific objects in
17863         ~/.objects rather than ~/.dia_libs.
17865 1999-10-10  Fredrik Hallenberg  <hallon@lysator.liu.se>
17867         * configure.in:
17868         * app_procs.c:
17869         * objects/flowchart/box.c
17870         * objects/flowchart/ellipse.c
17871         * objects/flowchart/flowchart.c 
17872         Use gmodule for dynamic linking. As gmodule is using
17873         RTLD_GLOBAL i had to change flowchart box and ellipse
17874         so the typenames doesn't conflict with the standard
17875         box and ellipse.
17877         * message.c
17878         * commands.c
17879         Use button box to make dialogs look better.
17881 1999-10-09  Alexander Larsson  <alla@lysator.liu.se>
17883         * objects/UML/class_dialog.c:
17884         * objects/UML/class.h:
17885         Implemented undo for "UML - Class" objects.
17886         Not 100% tested yet.
17888         * objects/UML/classicon.c:
17889         * objects/UML/constraint.c:
17890         * objects/UML/dependency.c:
17891         * objects/UML/generalization.c:
17892         * objects/UML/implements.c:
17893         * objects/UML/large_package.c:
17894         * objects/UML/lifeline.c:
17895         * objects/UML/message.c:
17896         * objects/UML/object.c:
17897         * objects/UML/realizes.c:
17898         * objects/UML/state.c:
17899         * objects/UML/usecase.c:
17900         Removed warnings.
17901         
17902         * lib/connectionpoint.h:
17903         Fixed typo.
17904         
17905 1999-10-09  James Henstridge  <james@daa.com.au>
17907         * objects/custom/*.[ch]: added copyright notices to custom object
17908         files.
17910         * shapes/Circuit/hdiode.shape:
17911         * shapes/Circuit/hzener.shape: 
17912         * shapes/Circuit/opamp.shape:
17913         * shapes/Circuit/vdiode.shape:
17914         * shapes/Circuit/vzener.shape: made adjustments to make the circuit
17915         shapes look nice after the custom shape code changes.
17917         * objects/custom/README: updated docs to cover changes to drawing
17918         code.
17920         * objects/custom/custom_object.c (custom_draw): honour the line
17921         properties when drawing the shape.
17923         * objects/custom/shape_info.[ch]: added support for setting line
17924         properties for individual drawing elements in a custom shape.  You
17925         can set the dash style, dash length, cap style and join style.
17927 1999-10-07  James Henstridge  <james@daa.com.au>
17929         * objects/custom/shape_info.c (parse_style): added a few extra synonyms
17930         for foreground and background.
17932         * objects/custom/custom_object.c (custom_draw): use the new style
17933         information when drawing the object.
17935         * objects/custom/shape_info.[ch]: store all shape style info in the
17936         GraphicStyle structure.  This makes adding support for extra CSS
17937         attributes easier -- we don't have to keep adding extra arguments to
17938         a lot of functions.
17940 1999-10-05  James Henstridge  <james@daa.com.au>
17942         * lib/intl.c (unalias_lang): merged in changes from the i18n code
17943         swiped from gnome-libs.
17945 1999-10-03  Alexander Larsson  <alla@lysator.liu.se>
17947         * objects/standard/image.c (get_directory):
17948         Fix memleak. Found by Kjartan Maraas <kmaraas@online.no>
17950 1999-09-28  Alexander Larsson  <alla@lysator.liu.se>
17952         * lib/poly_conn.c (polyconn_destroy):
17953         Fix bug. Access of freed memory.
17954         Rememeber, you can't free the handles of an object
17955         before calling object_destroy(), as it unconnects the handles
17956         therefore referencing them.
17958 1999-09-28  Alexander Larsson  <alla@lysator.liu.se>
17960         * app/undo.c:
17961         undo_clear() didn't set stack->depth to zero.
17962         This made other undo functions crash after this had been called
17963         on a "full" stack.
17964         
17965         * dia.xpm:
17966         Slightly modified by Chris Love <clove@exactis.com>
17968 1999-09-19  Alexander Larsson  <alla@lysator.liu.se>
17970         * objects/UML/class.h: 
17971         * objects/UML/class_dialog.c:
17972         Retrun NULL ObjectChange on class property change.
17973         This means no crashes, but "UML - Class" doesn't support undo yet.
17974         
17975 1999-09-19  Alexander Larsson  <alla@lysator.liu.se>
17976         
17977         * lib/text.c:
17978         Indentation fix.
17980         * objects/UML/classicon.c:
17981         * objects/UML/dependency.c:
17982         * objects/UML/generalization.c:
17983         * objects/UML/implements.c:
17984         * objects/UML/large_package.c:
17985         * objects/UML/lifeline.c:
17986         * objects/UML/message.c:
17987         * objects/UML/object.c:
17988         * objects/UML/realizes.c:
17989         * objects/UML/state.c:
17990         * objects/UML/usecase.c:
17991         Update to new undo (w. get/set_state).
17992         Add object menu to add/delete segments.
17994 1999-09-17  Alexander Larsson  <alla@lysator.liu.se>
17996         * app/menus.c:
17997         Add equal distance alignment.
17999         * app/object_ops.c:
18000         Add equal distance alignment.
18001         Fix bug in adjacent alignment.
18003 1999-09-16  Alexander Larsson  <alla@lysator.liu.se>
18005         * objects/UML/constraint.c: 
18006         Update to new undo (w. get/set_state).
18008 1999-09-15  Alexander Larsson  <alla@lysator.liu.se>
18010         * app/paginate_psprint.c:
18011         Save (parts, more todo) of the info in the print dialog to the
18012         next time it's opened.
18013         Patch from Yo Ric Dude <ricdude@toad.net>
18015 1999-09-14  Alexander Larsson  <alla@lysator.liu.se>
18017         * configure.in:
18018         Updated version string to 0.41cvs.
18020         * objects/UML/assocition.c:
18021         Update to new undo (w. get/set_state).
18022         Add object menu to add/delete segments.
18024         * app/app_procs.c:
18025         Added function debug_break() and called it after all
18026         objects and sheets are loaded. Place a breakpoint here if you
18027         want to debug objects. All symbols should be loaded.
18029 1999-09-12  James Henstridge  <james@daa.com.au>
18031         * app/menus.c (display_menu_items): added print menu item.
18032         (filemenu): always add print menu item -- even if gnome-print is
18033         not installed.
18035         * app/commands.h, app/commands.c (file_print_callback): the print
18036         menu item is now available for both gnome-print and non gnome-print
18037         setups.
18039         * app/paginate_psprint.c (diagram_print_ps): show a dialog to let you
18040         print with the non gnome-print driver.
18042 1999-09-11  James Henstridge  <james@daa.com.au>
18044         * app/paginate_gnomeprint.c (diagram_print_gnome): moved the gnome
18045         printer dialog code out of commands.c.
18047         * app/paginate_psprint.c: new file containing the pagination code for
18048         psprint.
18050         * app/render_eps.c: made a few modifications so as well as producing
18051         EPS files, this renderer can be set up to do postscript printing.
18052         This basically entailed adding an extra function to create a RenderEPS
18053         renderer which did not bother setting the viewport for the document.
18054         That was left for the pagination code.
18056 1999-09-10  James Henstridge  <james@daa.com.au>
18058         * app/render_gnomeprint.c (draw_ellipse, fill_ellipse): since
18059         gnome-print does not support elliptic arcs at the moment, approximate
18060         the ellipse with eight bezier curves.  This gives a pretty good
18061         match to a true ellipse.
18063 1999-09-09  James Henstridge  <james@daa.com.au>
18065         * app/commands.c (file_gnome_print_callback): added support for
18066         scaling the diagram.  Also fixed a few other bugs.
18068         * app/paginate_gnomeprint.c (print_page): added ability to scale
18069         document.  Fixed up test to see if the page has no objects on it.
18070         This should prevent some blank pages being printed.  Non square
18071         objects such as lines could still cause problems.
18073 1999-09-08  James Henstridge  <james@daa.com.au>
18075         * app/commands.c (file_gnome_print_callback): changed from using the
18076         standard printer selection dialog to one that also has a paper size
18077         selector as well.
18079         * commands.[ch]: added callbacks for the print menu item.  Currently
18080         it only does A4 output.  I will make it configurable soon.
18081         
18082         * app/menus.c: add a print diagram menu item if gnome-print support
18083         is enabled.
18084         
18085         * app/paginate_gnomeprint.c, app/paginate_gnomeprint.h: this is a
18086         bit higher level than the gnome-print renderer.  It splits the
18087         diagram into page size chunks and then renders them.  For each
18088         page, it only renders the objects whose bounding box intersects
18089         the page, and it sets the clip mask so that the diagram does not
18090         overlap the margins.
18091         
18092         * app/render_gnomeprint.c, app/render_gnomeprint.h: added a renderer
18093         that uses gnome-print as its back end.
18094         
18095         * configure.in: added a check for gnome-print.  It is disabled by
18096         default because the code is not really working correctly yet.
18098         * app/menus.c: the delete object menu item was missing from the
18099         GnomeUIInfo style menus.
18101 1999-09-07  Fredrik Hallenberg  <hallon@lysator.liu.se>
18103         * configure.in
18104         Added japanese to ALL_LINGUAS.
18105         Fix for Linux on Alpha.
18107 1999-09-07  Alexander Larsson  <alla@lysator.liu.se>
18109         * app/create_object.c (create_object_button_press):
18110         Always initialize tool->obj. Otherwise we store a null
18111         in the undo Change.
18113         * lib/text.c:
18114         Set linestyle before drawing cursor.
18115         Fix undo of backwards delete.
18117 1999-09-05  James Henstridge  <james@daa.com.au>
18119         * dia.spec: updated spec file to distribute $(prefix)/share/dia.
18121         * app/render_svg.c (draw_image): some fixes so that the appropriate
18122         style attributes are set.  Before it was setting line styles on
18123         fill_* functions.  Now it only does this for the draw_* variants.
18125         * app/Makefile.am (run_dia.sh): set the DIA_SHAPE_PATH environment
18126         variable so that custom shapes can be loaded.
18128         * shapes/: new directory for custom shapes.  The Circuit sheet has
18129         been moved here.
18131 1999-09-02  James Henstridge  <james@daa.com.au>
18133         * TODO: removed a few todo items that have been implemented.
18135         * app/interface.c (create_sheets): enabled the popup page menu to the
18136         notebook.  This can make it easier to select different sheets.
18138         * object/custom/Circuit/: added diode, zener diode, ground point and
18139         operational amplifier shapes.
18140         
18141         * objects/custom/Makefile.am: added a note about adding DEBUG_CUSTOM
18142         if you want the output.
18144         * objects/custom/shape_info.c (parse_path): same here.
18146         * objects/custom/load_sheet.c (load_with_readdir): don't print so
18147         much debugging output.  To get the previous level of output, define
18148         DEBUG_CUSTOM.
18150         * objects/custom/shape_info.c (parse_svg_node): polygons were being
18151         recorded as polylines in the ShapeInfo structure.
18153         * objects/custom/README: some notes on writing new custom shapes.
18154         
18155 1999-09-01  James Henstridge  <james@daa.com.au>
18157         * objects/custom/Circuit/hinductor.*:
18158         * objects/custom/Circuit/vinductor.*: added inductor shapes that
18159         also test out the bezier curve and SVG path support.
18160         
18161         * objects/custom/custom_object.c (custom_draw): added support for
18162         drawing bezier paths and filled shapes.
18164         * objects/custom/shape_info.c (parse_path): new function to parse
18165         SVG path elements.  It does not do quadratic beziers or elliptic
18166         arcs though.  Only moves, lines and cubic beziers.
18167         (*): added support for paths.
18169 1999-08-31  James Henstridge  <james@daa.com.au>
18171         * objects/sybase/ltm.c (render_to_store): use the newer bezier API.
18173         * app/render_svg.c (draw_bezier, fill_bezier): updated renderer
18174         interface
18176         * app/render_eps.c (draw_bezier, fill_bezier): updated renderer
18177         interface
18179         * app/render_gdk.c (draw_bezier, fill_bezier): updated renderer
18180         interface.
18182         * lib/render_store.[ch]: use newer bezier functions.
18184         * lib/render.h: changed the bezier drawing functions to use an array
18185         of BezPoint structures instead of normal Point structures to allow
18186         lineto's mixed in with the curveto's.
18187         
18188         * objects/custom/Circuit/pnp.*: added pnp transistor shape.
18189         
18190         * objects/custom/Circuit/Makefile.am (SHAPES): added index.sheet and
18191         xpm images for different shapes to Makefile.
18193         * objects/custom/custom_object.c (custom_object_new): set the icon
18194         for the sheet button if there is one.  Otherwise fall back on the
18195         default custom object icon.
18197         * objects/custom/shape_info.c (load_shape_info): read the sheet
18198         icon name from the shape file.
18200         * app/interface.c (create_sheet_page): if sheet_obj->pixmap == NULL,
18201         check the pixmap_file field for the name of a pixmap file to load
18202         for the tool.
18204         * lib/sheet.h (SheetObj): added pixmap_file field to structure.  It is
18205         at the end of the structure, and it isn't used if the pixmap field
18206         is non NULL, so it should not break binary compatibility.
18208         * objects/custom/load_sheet.[ch]: moved sheet loading code here.  Also
18209         added support for the use of an index.sheet file so you can specify
18210         the ordering of the shapes in the sheet, and also internationalise
18211         the sheet name and actually be able to give a description.  The old
18212         readdir based sheet loading code acts as a fallback if an index.sheet
18213         file can not be found.
18215         * objects/custom/custom_util.[ch]: new file containing useful routines
18216         needed by the custom object code.  Currently only contains a simple
18217         routine for resolving relative paths.
18219         * objects/custom/custom_object.c (custom_draw): fixed problem with
18220         drawing rectangles if the shape has been flipped.
18222 1999-08-30  James Henstridge  <james@daa.com.au>
18224         * objects/custom/custom_object.c (custom_get_object_menu): allow
18225         flipping of custom shapes.  This uses the miggle click object
18226         menu.
18228         * objects/custom/Circuit/npn.shape: fix aspect ratio.
18230         * objects/custom/custom_object.c (custom_update_data): honour the
18231         aspect ratio constraints.
18233         * objects/custom/shape_info.c (load_shape_info): updated aspect ratio
18234         tag parsing, so you can specify a free, fixed or a range for aspect
18235         ratios for the shape.
18237 1999-08-29  James Henstridge  <james@daa.com.au>
18239         * objects/custom/test.xml, objects/custom/Circuit/*.shape: fixed
18240         up shape namespace tag.
18242         * objects/custom/shape_info.c (load_shape_info): check xml:lang
18243         attribute on <description> elements to support i18n for custom
18244         shape descriptions.
18245         Also changed the shape namespace for custom shapes to something
18246         a little more sensible.
18248         * lib/dummy_dep.h (dummy_dep): added extra dummy dependency.
18250         * lib/intl.c: new file containing some functions for i18n stuff.
18252         * app/layer_dialog.c (create_button_box): fixed a warning.
18254         * objects/custom/custom_object.c: use current line style.  Save dash
18255         length.
18257         * objects/flowchart/diamond.c: use current line style.  Save dash
18258         length.
18260         * objects/flowchart/parallelogram.c: use current line style.  Save
18261         dash length.
18263         * objects/flowchart/ellipse.c: use current line style.  Save dash
18264         length.
18266         * objects/flowchart/box.c: use current line style.  Save dash length.
18268         * objects/standard/ellipse.c: make ellipse use current line style.
18270         * objects/standard/box.c: use the line style set in the toolbox for
18271         new boxes, and remember the dash length.
18273         * app/commands.c (view_toggle_rulers_callback): fix reshowing of
18274         rulers.
18276 1999-08-24  James Henstridge  <james@daa.com.au>
18278         * objects/flowchart/ellipse.c (ellipse_update_data): made some changes
18279         to try to stop ellipse to get infinite width/height when we resize,
18280         while trying to keep the text inside the ellipse.
18282         * objects/flowchart/box.c, objects/flowchart/parallelogram.c,
18283         * objects/flowchart/diamond.c, objects/flowchart/ellipse.c: fixed
18284         resizing behaviour, so that you can't push objects round the screen
18285         with the resize handles.
18287         * app/lineprops_area.c (dia_arrow_chooser_init, dia_line_chooser_init):
18288         get the OK buttons in the dialogs to take default clicks.
18290         * objects/custom/custom_object.c: added code so that resizing the
18291         shape does not end up pushing it round the screen.
18293 1999-08-23  Alexander Larsson  <alla@lysator.liu.se>
18295         * app/display.[ch]:
18296         Generate rectangle with the union of the damaged regions.
18297         This is used to optimize the grid paint and the object rendering.
18298         display_render_pixmap passes this info to grid_draw() and data_render().
18300         * app/grid.[ch]:
18301         grid_draw doesn't draw grid lines outside of damaged rectangle.
18302         Sets dashlength when drawing non-solid grid.
18303         
18304         * lib/diagramdata.[ch]:
18305         data_render() and layer_render() takes an optional damaged rectangle
18306         argument. No objects not intersecting this are drawn.
18308         * app/diagram.c:
18309         Fix warning.
18310         Call data_render with NULL update rectangle.
18311         
18312 1999-08-23  James Henstridge  <james@daa.com.au>
18314         * objects/custom/custom_object.c (custom_update_data): if the aspect
18315         ratio is fixed, make sure the shape is not distorted.
18317         * object/custom/shape_info.h, objects/custom/shape_info.c: notice if
18318         a <fixaspectratio/> tag is given in the shape file.
18320         * objects/custom/shape_info.[ch], objects/custom/custom_object.c:
18321         added support for stroke-width, stroke and fill CSS attributes
18322         specified in style attributes of the SVG elements.  The line width
18323         is relative to the user specified line width.  The stroke and fill
18324         attributes can only be used to swap the foreground/background
18325         colours.
18327         * lib/widgets.c (dia_line_style_selector_set_linestyle): set the
18328         sensitivity on the dash length selector when this function is called.
18330         * objects/standard/arc.c: same.  Also handle dash length.
18331         * objects/standard/zigzagline.c: same.
18332         * objects/standard/polyline.c: same.  Also handle dash length.
18333         * objects/standard/line.c: use default arrow/line styles.
18335         * app/interface.c: added callbacks to set the default attributes.
18337         * lib/attributes.c: added implementations of these functions.
18339         * lib/attributes.h: added extra prototypes for the new line properties
18340         area in the toolbox.
18342         * app/interface.c (create_lineprops_area): added line properties
18343         area to bottom of toolbox.
18345         * app/lineprops_area.h: a header exporting a few routines of the
18346         line properties area widgets.
18348         * app/lineprops_area.c: new file containing a selector for arrows
18349         and line styles to go in the main toolbox.
18351 1999-08-22  Alexander Larsson  <alla@lysator.liu.se>
18353         * HACKING:
18354         Update Gtk+ 1.0.5 comment to 1.2.0.
18356         * INSTALL:
18357         Demand libtool 1.3
18359         * acconfig.h:
18360         Add HAVE_LIBPOPT
18362         * configure.in:
18363         Make sure we don't propagate -ldl and -lpopt to all LIBS
18364         by adding new var APP_LIBS that only app/dia links with.
18365                 
18366         * app/Makefile.am:
18367         Update run_dia.sh to load custom and flowchart objects.
18369         * objects/ER/Makefile.am:
18370         * objects/FS/Makefile.am:
18371         * objects/UML/Makefile.am:
18372         * objects/network/Makefile.am:
18373         * objects/standard/Makefile.am:
18374         * objects/sybase/Makefile.am:
18375         Don't build versioned libs.     
18376         
18377 1999-08-22  James Henstridge  <james@daa.com.au>
18379         * configure.in: added objects/custom/Circuit/Makefile to AC_OUTPUT
18380         list.
18382         * objects/Makefile.am (SUBDIRS): added custom to subdir list -- it
18383         should actually work a bit now.
18385         * objects/custom/Circuit/*: a test sheet for the custom shape code.
18386         It is a small collection of circuit elements.
18388         * objects/custom/shape_info.c: fixed up loading of polylines and
18389         polygons.  Before it was removing negative signs :(
18391         * objects/custom/pixmaps/custom.xpm: drew the custom shape icon.  A
18392         placeholder was here before.  I still need to work out how to set
18393         icons for individual custom shapes.
18394         
18395         * objects/custom/custom.c: added code to load the shapes into sheets
18396         properly.  The shape files should be arranged into directories, and
18397         each directory represents a different sheet in the toolbox.  This
18398         will make it very easy to distribute a collection of dia shapes as
18399         a tarball.  I still need to work out internationalisation, and maybe
18400         also shape ordering in the sheet.
18402         * objects/custom/custom_object.c: fixed up dialogs for these objects.
18403         (custom_create): fix for objects without text areas.
18405         * objects/custom/shape_info.h, objects/custom/custom_object.c: loading
18406         and saving of custom object works correctly now.
18408 1999-08-21  James Henstridge  <james@daa.com.au>
18410         * objects/flowchart/ellipse.c: 
18411         * objects/flowchart/diamond.c: 
18412         * objects/flowchart/parallelogram.c: 
18413         * objects/flowchart/box.c: Fixed up a few bugs in these objects when
18414         copying or loading these object types.  Not all the connection
18415         points would be initialised correctly.
18417         * objects/flowchart/Makefile.am (libflowchart_objects_la_LDFLAGS):
18418         similar here.
18420         * objects/custom/Makefile.am (libcustom_objects_la_LDFLAGS): do not
18421         build a versioned library.  It will only ever be dlopen'd, so this
18422         is not a problem.
18424         * objects/custom/custom_object.c (custom_distance_from): allow
18425         selecting the object by clicking on the text.  This fixes problems
18426         where the text box is outside the graphic.
18428         * objects/custom/shape_info.c (load_shape_info): fixed up reading
18429         of connections points.  It should be possible to add connections
18430         to custom objects now.
18432         * objects/custom/custom_object.c (custom_update_data): fixed resizing
18433         due to changes to text.
18435         * configure.in: added extra makefiles.
18436         
18437         * objects/custom/shape_info.[ch]:
18438         * objects/custom/custom_object.c:
18439         * objects/custom/custom.c: the starts of custom shape support in dia.
18440         This is not built by default at the moment, since it is not quite
18441         complete.  When it is, it will let you create more shapes for dia
18442         without writing a line of C.  Its implementation includes buzzwords
18443         such as XML and SVG, so it must be good :)
18445 1999-08-19  Karsten Weiss  <karsten@addx.au.s.shuttle.de>
18447         * app/app_procs.c (app_exit): Use button labels "Quit" and
18448         "Cancel" instead of "Yes" and "No".
18449         Set default action to "Cancel" instead of "Quit".
18451 1999-08-19  James Henstridge  <james@daa.com.au>
18453         * objects/flowchart/flowchart.c: added ellipse object.
18454         
18455         * objects/flowchart/ellipse.c: a new shape for the flowchart toolbox.
18457 1999-08-18  James Henstridge  <james@daa.com.au>d
18459         * app/color_area.c (color_area_edit): small fix to prevent dia from
18460         segfaulting when you try to change the default foreground/background.
18462 1999-08-17  Alexander Larsson  <alla@lysator.liu.se>
18464         * app/diagram.[ch] (diagram_redraw_all):
18465         Added function that redraws all diagrams.
18467         * app/preferences.c (prefs_apply):
18468         Call diagram_redraw_all when prefs are changed.
18470         * app/render_svg.c:
18471         Don't use xmlEncodeEntitiesReentrant(). It doesn't exist on
18472         older libxml's, and the old version works good enought here.
18473         
18474 1999-08-17  James Henstridge  <james@daa.com.au>
18476         * lib/widgets.c: changed handlers that were connected to the GtkButton
18477         "pressed" signal to connect to the "clicked" signal.  This removes the
18478         problem where dialogs are inactive until you click a mouse button
18479         after using a colour selector.
18481         * configure.in: added extra makefiles to AC_OUTPUT list.
18482         
18483         * objects/Makefile.am (SUBDIRS): added flowchart module
18485         * objects/flowchart/*: a collection of shapes for use in flowcharts.
18487         * app/color_area.c (color_area_events): similar here.
18489         * app/linewidth_area.c (linewidth_area_events): sometimes a configure
18490         event is recieved with event->width == 0, which causes a warning if we
18491         try to create a pixmap of that width.
18493         * app/preferences.c, app/preferences.h, app/grid.c: added code to
18494         allow you to configure the colour of the grid, and also lets you
18495         set the grid to use dotted lines instead of solid ones.
18496         
18497         * app/commands.c, app/commands.h, app/diagram.c, app/diagram.h,
18498         app/menus.c, app/Makefile.am: added menu entry for exporting SVG files.
18499         
18500         * app/render_svg.h, app/render_svg.c: an SVG (Scalable Vector Graphics)
18501         export filter.  It is not quite complete, but for most shapes it
18502         works as expected.  Fonts still need a bit of work.
18504 1999-08-11  Robert Brady  <rwb197@ecs.soton.ac.uk>
18506         * configure.in: Added "en_GB" to ALL_LINGUAS.
18508 1999-08-04  Fredrik Hallenberg  <hallon@lysator.liu.se>
18510         * menus.c
18511         Added Undo and Redo to GNOME menus.
18512         
18513         * objects/ER/attribute.c:
18514         * objects/ER/entity.c:
18515         * objects/ER/participation.c:
18516         * objects/ER/relationship.c:
18517         Added get/set_state functions.
18519         * objects/ER/participation.c:
18520         Added add/delete segment.
18522         * po/sv.po
18523         Updated Swedish translation.
18525 1999-07-25  Alexander Larsson  <alla@lysator.liu.se>
18527         * app/preferences.[hc]:
18528         Added undo_depth pref.
18529         
18530         * app/undo.[ch]:
18531         Never grow stack larger than pref.undo_depth.
18532         undo_depth == 0 means unlimited.
18533         Converted printfs to conditionally compiled DEBUG_PRINTFs.
18534         
18535 1999-07-25  Alexander Larsson  <alla@lysator.liu.se>
18537         * app/diagram.c:
18538         * app/group.c:
18539         * lib/object.h:
18540         * lib/render_object.c:
18541         * objects/ER/attribute.c:
18542         * objects/ER/entity.c:
18543         * objects/ER/participation.c:
18544         * objects/ER/relationship.c:
18545         * objects/FS/flow-ortho.c:
18546         * objects/FS/flow-poly.c:
18547         * objects/FS/flow.c:
18548         * objects/FS/function.c:
18549         * objects/UML/actor.c:
18550         * objects/UML/association.c:
18551         * objects/UML/class.c:
18552         * objects/UML/classicon.c:
18553         * objects/UML/component.c:
18554         * objects/UML/constraint.c:
18555         * objects/UML/dependency.c:
18556         * objects/UML/generalization.c:
18557         * objects/UML/implements.c:
18558         * objects/UML/large_package.c:
18559         * objects/UML/lifeline.c:
18560         * objects/UML/message.c:
18561         * objects/UML/note.c:
18562         * objects/UML/object.c:
18563         * objects/UML/realizes.c:
18564         * objects/UML/small_package.c:
18565         * objects/UML/state.c:
18566         * objects/UML/usecase.c:
18567         * objects/network/bus.c:
18568         * objects/standard/arc.c:
18569         * objects/standard/box.c:
18570         * objects/standard/ellipse.c:
18571         * objects/standard/image.c:
18572         * objects/standard/line.c:
18573         * objects/standard/polyline.c:
18574         * objects/standard/textobj.c:
18575         * objects/standard/zigzagline.c:
18576         Removed all traces of is_empty(). It doesn't work in an
18577         Undo/Redo world.
18579 1999-07-25  Alexander Larsson  <alla@lysator.liu.se>
18581         * app/diagram.c:
18582         * app/group.[ch]:
18583         * app/undo.[ch]:
18584         Undoable grouping and ungrouping.
18586         * app/layer_dialog.c:
18587         * lib/diagramdata.[ch]:
18588         Undoable layer ops.
18590         * app/modify_tool.c:
18591         Undoable unconnect on handle move.
18593         * lib/orth_conn.[ch]:
18594         Working undoable add/remove segment.
18595         Removed endpoint_handles from OrthConn, renamed
18596         midpoint_handles to handles and put the endpoint
18597         handles there.
18599         * objects/standard/zigzagline.c:
18600         * objects/ER/participation.c:
18601         * objects/UML/association.c:
18602         * objects/UML/dependency.c:
18603         * objects/UML/generalization.c:
18604         * objects/UML/realizes.c:
18605         Update for the changes in OrthConn
18606         
18607 1999-07-23  Karsten Weiss  <karsten@addx.au.s.shuttle.de>
18609         * configure.in: Added "de" to ALL_LINGUAS.
18611 1999-07-17  Alexander Larsson  <alla@lysator.liu.se>
18613         * dia.1:
18614         Fixed typo.
18616         * app/display.c:
18617         * po/da.po:
18618         * po/fr.po:
18619         * po/hu.po:
18620         * po/no.po:
18621         * po/pl.po:
18622         * po/sv.po:
18623         Don't have the <Display> etc part of the menu strings
18624         i18n:ed. Patch from Fabrice.Bellet@imag.fr.
18626         * app/diagram.c:
18627         Don't have the <Display> etc part of the menu strings
18628         i18n:ed. Patch from Fabrice.Bellet@imag.fr.
18629         Don't remove is_empty() objects, that don't work with undo.
18631         * lib/objchange.[ch]:
18632         New files.
18633         Definition of ObjectChange. This is essentially an Change
18634         exported to the object libs. It encapsulates a change made
18635         to an objects internals. It can be applied, reverted and freed.
18636         There are also utility functions for doing ObjectChanges that
18637         only get/set the whole state of an object to store the change.
18638         This cannot be used when the object change deletes or adds a
18639         object which has references from other objects, eg. Handles which
18640         might be connected.
18642         * lib/Makefile.am:
18643         Added objchange.c and objchange.h.
18645         * lib/dia_image.c:
18646         Return NULL when loading fails.
18648         * lib/diamenu.h:
18649         Menu callbacks return an ObjectChange.
18651         * lib/dummy_dep.h:
18652         Reference objchange.o
18654         * lib/focus.h:
18655         Key events return ObjectChange if they modify the object.
18657         
18658         * lib/object.h:
18659         Added object_add_handle_at() function.
18660         Apply properties returns an ObjectChange.
18661         Remove ObjectState and the get/set state functions, these
18662         don't always work. Use the new ObjectChange instead.
18663         
18664         * lib/object.c:
18665         Added object_add_handle_at() function implementation.
18666         
18667         * lib/orth_conn.[ch]:
18668         Use ObjectChange. Not finished yet.
18669         Removed get/set/free state functions
18671         * lib/poly_conn.[ch]:
18672         Use ObjectChange.
18673         Don't remove segments that are small.
18674         Removed get/set/free state functions
18676         * lib/text.[ch]:
18677         Use ObjectChange.
18678         Added functions to get/set all text attributes.
18680         * objects/standard/arc.c:
18681         * objects/standard/box.c:
18682         * objects/standard/ellipse.c:
18683         * objects/standard/image.c:
18684         * objects/standard/line.c:
18685         * objects/standard/polyline.c:
18686         * objects/standard/textobj.c:
18687         * objects/standard/zigzagline.c:
18688         Use ObjectChange.
18689         fixed bug in image_set_state.
18690         zigzagline.c not finished yet.
18692         * app/disp_callbacks.c:
18693         Use ObjectChange that are returned from menu callbacks and
18694         key_events for undo.
18696         * app/properties.c:
18697         Use ObjectChange that are returned from properties apply
18698         for undo.
18700         * app/undo.c:
18701         * app/undo.h:
18702         New undo type: ObjectChangeChange. This wraps a change to the
18703         internals of an object (and ObjectChange) in code that does
18704         app specific stuff (object_add_updates etc.)
18706 1999-07-11  Alexander Larsson  <alla@lysator.liu.se>
18708         * lib/orth_conn.[ch]:
18709         Added code for add/delete segment.
18711         * objects/standard/zigzagline.c:
18712         Use the new orth_conn code.
18713         
18715 1999-07-08  Fredrik Hallenberg  <hallon@lysator.liu.se>
18717         * objects/FS/Makefile.am
18718         Removed fs.h from sources.
18720         * Makefile.am
18721         * dia.1
18722         Added man page.
18724 1999-07-07  Alexander Larsson  <alla@lysator.liu.se>
18726         * app/disp_callbacks.c (ddisplay_canvas_events):
18727         Fix for bug. Every other arrow-key press got lost.
18728         patch from Mr. Data Esq. <data@r47h102.res.gatech.edu>
18730         * INSTALL:
18731         change automake.sh to autogen.sh
18732         
18733 1999-06-24  Alexander Larsson  <alla@lysator.liu.se>
18735         * app/diagram.c:
18736         Don't remove 'empty' objects.
18737         This violent destruction of objects won't work
18738         with the new undo framework.
18740         * app/disp_callbacks.c:
18741         Save undo info for object menu calls and key_events.
18743         * app/properties.c:
18744         Save undo info on properties apply.
18746         * lib/dia_image.[ch]:
18747         Add refcounting for images.
18749         * app/render_eps.c:
18750         * app/render_gdk.c:
18751         * lib/render.h:
18752         DiaImage * -> DiaImage
18754         * app/undo.[ch]:
18755         Add undo functions for object state changes.
18757         * lib/focus.h:
18758         * lib/text.c:
18759         change of semntics for focus->key_event.
18760         Now returns TRUE if the object recieving the event
18761         was changed.
18763         * lib/object.h:
18764         Comment changes.
18766         * lib/orth_conn.[ch]:
18767         Don't automatically create and delete segments when
18768         handles are moved. This is incompatible with undo.
18769         Added state get, set and free functions.
18771         * lib/orth_conn.[ch]:
18772         Added state get, set and free functions.
18774         * objects/UML/object.c:
18775         * objects/UML/uml.c:
18776         Fixed typo "UML - Objet" -> "UML - Object".
18777         Saved old for backwards compatibility.
18779         * objects/standard/arc.c:
18780         * objects/standard/box.c:
18781         * objects/standard/ellipse.c:
18782         * objects/standard/image.c:
18783         * objects/standard/line.c:
18784         * objects/standard/polyline.c:
18785         * objects/standard/textobj.c:
18786         * objects/standard/zigzagline.c:
18787         Added get/set state functions.
18788         Textobj has a redo crash-bug.
18789         Zigzagline needs object menus to add segments.
18790         
18792 1999-06-20  Alexander Larsson  <alla@lysator.liu.se>
18794         * app/render_eps.c (set_dashlength):
18795         Don't generate eps files with zero dash-length.
18797 1999-06-16  Alexander Larsson  <alla@lysator.liu.se>
18799         * app/commands.c:
18800         * app/create_object.c:
18801         * app/undo.[ch]:
18802         Finished undo for create and paste.
18803         
18804         * lib/object.h:
18805         Started properties undo.
18807 1999-06-14  Alexander Larsson  <alla@lysator.liu.se>
18809         * TODO:
18810         Added resizeable groups.
18812         * app/app_procs.c:
18813         Removed unused variable.
18815         * app/commands.c:
18816         * app/undo.[ch]:
18817         Undo/redo for cut/delete done.
18819         * app/create_object.c:
18820         * app/modify_tool.c:
18821         * lib/diagramdata.[ch]:
18822         * app/diagram.[ch]:
18823         renamed diagram_add_selected -> diagram_select
18824         renamed diagram_remove_selected -> diagram_unselect
18825         
18826         * app/properties.[ch]:
18827         Added properties_hide_if_shown() function.
18829 1999-06-13  Alexander Larsson  <alla@lysator.liu.se>
18831         * app/undo.[ch]:
18832         * app/Makefile.am:
18833         Undo functions.
18834         
18835         * app/commands.[ch]
18836         * app/modify_tool.[ch]
18837         * app/object_ops.[ch]
18838         * app/connectionpoint_ops.c
18839         * app/menus.c
18840         Use undo functions.
18841         WARNING: Not finished. Will break.
18842         Finished: move object, move handle.
18844         * app/diagram.[ch]
18845         Added diagram_selected_break_external() function.
18846         It removes all connections between selected objects
18847         and non-selected.
18848         Add undo stack to Diagram.
18849         
18850         * lib/diagramdata.[ch]
18851         Added layer_remove_objects() function
18852         
18853 1999-06-11  Fredrik Hallenberg  <hallon@lysator.liu.se>
18855         * objects/FS/Makefile.am
18856         * objects/sybase/Makefile.am
18857         Now uses GNOME_CFLAGS.
18859         * app/app_procs.c
18860         Now compiles with GNOME even if popt.h isn't available.
18862 1999-06-10  Alexander Larsson  <alla@lysator.liu.se>
18864         * configure.in
18865         * objects/Makefile.am
18866         * objects/sybase/*
18867         First version of sybase objects from
18868         Brian Bruns <camber@umcc.ais.org>
18870 1999-06-10  Fredrik Hallenberg  <hallon@lysator.liu.se>
18872         * configure.in
18873         Added fr to ALL_LINGUAS
18875 1999-06-09  Fredrik Hallenberg  <hallon@lysator.liu.se>
18877         * configure.in
18878         * app/app_procs.c
18879         Popt-code is activated if popt is available.
18881 1999-06-08  Alexander Larsson  <alla@lysator.liu.se>
18883         This is a patch from David Thompson <dcthomp@mail.utexas.edu>
18884         
18885         * lib/orth_conn.[ch]:
18886         Added orthconn_get_middle_handle()
18888         * lib/text.[ch]:
18889         Added text_set_cursor_at_end()
18890         
18891         * objects/FS/*
18892         Added first version of functions structure diagrams.
18893         
18894 1999-05-24  Alexander Larsson  <alla@lysator.liu.se>
18896         * app/modify_tool.c:
18897         Include math.h to remove warning.
18899         * app/commands.c (dialogs_properties_callback):
18900         Bring up correct properties dialog when selected
18901         from menu.
18902         From Dan Cohn <dan@internap.com>
18904 1999-05-20  Alexander Larsson  <alla@lysator.liu.se>
18906         Patch from Lars R. Clausen 
18907         
18908         * app/modify_tool.c:
18909         Changed abs to fabs.
18911 1999-05-19  Alexander Larsson  <alla@lysator.liu.se>
18913         * INSTALL: 
18914         * configure.in:
18915         Require Gtk+ 1.2.0
18917 1999-05-18  Alexander Larsson  <alla@lysator.liu.se>
18919         Patches from Dan Cohn <dan@internap.com>
18920         
18921         * app/commands.[ch]: 
18922         * app/display.[ch]: 
18923         * app/menus.c:
18924         * app/preferences.[ch]:
18925         Implements ability to turn on/off connection points in
18926         current drawing and in global prefs.
18928 1999-05-18  Alexander Larsson  <alla@lysator.liu.se>
18930         * lib/widgets.c (dia_line_style_selector_init): 
18931         Fixed warnings.
18932         
18933         * lib/diagramdata.c (layer_update_extents):
18934         Fixed uninitialized variable error.
18936 1999-05-17  Alexander Larsson  <alla@lysator.liu.se>
18938         * lib/dia_image.c:
18939         Made some changes to the gdk_imlib visual+colormap setup.
18941 1999-05-17  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
18943         * objects/UML/usecase.c: 
18944        * objects/UML/lifeline.c
18945         Fine tunning.
18947         * objects/UML/object.c: 
18948         * objects/UML/message.c: 
18949         Changed font from Courier to Helvetica.
18951         * lib/widgets.c: 
18952         * lib/widgets.h:
18953         Added dash lenth to the LineStyle widget.
18954         
18955         * objects/standard/ellipse.c :
18956         * objects/standard/zigzagline.c: 
18957         * objects/standard/line.c: 
18958         Added dash lenght property.
18960 1999-05-16  Alexander Larsson  <alla@lysator.liu.se>
18962         * app/render_eps.c:
18963         First shot at latin1 encoded eps files.
18964         Works, but the eps files get a bit large.
18965         
18966 1999-05-16  Alexander Larsson  <alla@lysator.liu.se>
18968         * objects/UML/class.[ch]: 
18969         * objects/UML/uml.[ch]:
18970         Reverted the line wrap changes.
18971         Some day this might return, but it has to be selectable and
18972         default to off for loaded objects, otherwise it breaks file
18973         format compatibility.
18974         There was also some complains about how it looked, so a making it
18975         selectable is good for this too.
18977 1999-05-15  Alexander Larsson  <alla@lysator.liu.se>
18979         * objects/UML/class.[ch]:
18980         Some indentation cleanup.
18981         Added wrap_lines variable to class.
18982         I'll fix the line break stuff tomorrow.
18984 1999-05-13  Alexander Larsson  <alla@lysator.liu.se>
18986         * lib/dummy_dep.h:
18987         Added ref to poly_conn.o.
18989         * objects/standard/polyline.c (polyline_draw): 
18990         * objects/standard/zigzagline.c (zigzagline_draw): 
18991         * objects/standard/arc.c (arc_draw): 
18992         * objects/standard/line.c (line_draw):
18993         Draw lines before arrows. This makes hollow arrows not
18994         show the line.
18996 1999-05-13  Alexander Larsson  <alla@lysator.liu.se>
18998         Changes from Kim Peasley <kpeasley@ior.com> 
18999                 
19000         * objects/UML/class.c:
19001         Break lines with long operations so classes won't be
19002         so wide.
19004         * objects/UML/uml.[ch]:
19005         Helperfunctions for the above.
19006         
19007         * objects/UML/objects.c:
19008         Fix bug that duplicated the text in the attributes
19009         textwidget each time the object was selected.
19010         
19011 1999-05-12  Alexander Larsson  <alla@lysator.liu.se>
19013         Changes from Lars R. Clausen <lrclause@cs.uiuc.edu>
19014         
19015         * app/modify_tool.c:
19016         * app/modify_tool.h:
19017         Control-drag is restricted to vertical/horizontal movement
19018         
19019         * lib/object.h:
19020         ModifierKeys argument added to object_move_handle
19022         * app/connectionpoint_ops.c:
19023         * app/create_object.c:
19024         * app/object_ops.c:
19025         * objects/ER/attribute.c:
19026         * objects/ER/entity.c:
19027         * objects/ER/participation.c:
19028         * objects/ER/relationship.c:
19029         * objects/UML/actor.c:
19030         * objects/UML/association.c:
19031         * objects/UML/class.c:
19032         * objects/UML/classicon.c:
19033         * objects/UML/component.c:
19034         * objects/UML/constraint.c:
19035         * objects/UML/dependency.c:
19036         * objects/UML/generalization.c:
19037         * objects/UML/implements.c:
19038         * objects/UML/large_package.c:
19039         * objects/UML/lifeline.c:
19040         * objects/UML/message.c:
19041         * objects/UML/note.c:
19042         * objects/UML/object.c:
19043         * objects/UML/realizes.c:
19044         * objects/UML/small_package.c:
19045         * objects/UML/state.c:
19046         * objects/UML/usecase.c:
19047         * objects/network/bus.c:
19048         * objects/standard/arc.c:
19049         * objects/standard/box.c:
19050         * objects/standard/ellipse.c:
19051         * objects/standard/image.c:
19052         * objects/standard/line.c:
19053         * objects/standard/polyline.c:
19054         * objects/standard/textobj.c:
19055         * objects/standard/zigzagline.c:
19056         Changed calls to move_handle to pass the new argument.
19057         
19058         * lib/widgets.c:
19059         * lib/widgets.h:
19060         Default line width, color etc #define'd
19061         
19062         * po/da.po:
19063         Updates of danish menus
19065 1999-05-08  Fredrik Hallenberg  <hallon@lysator.liu.se>
19067         * dia.xpm
19068         * dia_gnome_icon.png
19069         * dia_gnome_menu_icon.png
19070         * dia_logo.png
19071         Graphics by Toussaint Frédéric <ftoussin@club-internet.fr>.
19073         * app/commands.c
19074         About dialog shows dia_logo.png. Removed the GNOME about dialog.
19076         * Makefile.am
19077         Distribute the icons and install logo in pkgdatadir.
19078         
19079         * app/Makefile.am
19080         Added DATADIR-define.
19081         
19082 1999-04-28  Alexander Larsson  <alla@lysator.liu.se>
19083         Patches from Enrico Scholz <enrico.scholz@wirtschaft.tu-chemnitz.de>
19085         * dia.spec:
19086         Updated version number, made setup quiet, can build from cvs,
19087         --enable-gnome, now using automake 1.4 DESTDIR feature, install-strip
19089         * lib/Makefile.am
19090         * objects/ER/Makefile.am
19091         * objects/UML/Makefile.am
19092         * objects/network/Makefile.am
19093         * objects/standard/Makefile.am
19094         now builds better with gnome
19096         * objects/UML/class_dialog.c
19097         Fixed typo -> po files must be updated too!!
19098         
19099 1999-04-28  Alexander Larsson  <alla@lysator.liu.se>
19101         * lib/dummy_dep.h:
19102         Added reference so that widgets.o gets linked to the app.
19104 1999-04-23  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
19106         * objects/UML/classicon.c: 
19107         Added object mode.
19109         * objects/UML/actor.c: 
19110         Changed position of 'snap-to-grid' so connection points are
19111         in the grid.
19113 1999-04-22  Alexander Larsson  <alla@lysator.liu.se>
19115         * objects/UML/classicon.c:
19116         Changed position of 'snap-to-grid'.
19117         By Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
19118         
19119 1999-04-22  Alexander Larsson  <alla@lysator.liu.se>
19121         * objects/network/antenna.c
19122         * objects/network/flash.c
19123         * objects/network/hub.c
19124         * objects/network/modem.c
19125         * objects/network/modularswitch.c
19126         * objects/network/rj45plug.c
19127         * objects/network/scead-plug.c
19128         * objects/network/network.c
19129         * objects/network/Makefile.am
19130         * objects/network/pixmaps/antenna.xpm
19131         * objects/network/pixmaps/flash.xpm
19132         * objects/network/pixmaps/hub.xpm
19133         * objects/network/pixmaps/modem.xpm
19134         * objects/network/pixmaps/modularswitch.xpm
19135         * objects/network/pixmaps/rj45plug.xpm
19136         * objects/network/pixmaps/sceadplug.xpm
19137         * objects/network/pixmaps/Makefile.am
19138         Lots of new network objects from
19139         Roland Steinbach <roland@support-system.com>.
19141 1999-04-15  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
19143         * objects/UML/classicon.c: 
19144         Fixed connection positions, saved type as int (it has 3 states),
19145         and other small fixes.
19146         
19147 1999-04-14  Alexander Larsson  <alla@lysator.liu.se>
19149         * app/preferences.c:
19150         * app/load_save.c:
19151         Added preference compress_save. It lets dia save uncompressed
19152         xml files.
19154         * objects/UML/class.c:
19155         Fixed bug with size calculation on methods that had class scope.
19156         
19157 1999-04-13  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
19159         * objects/UML/usecase.c: 
19160         Added collaboration mode
19161         Fixed connection points with text > ellipse bug and other 
19162         small things
19164         * objects/UML/state.c:
19165         Fixed bug of bad position of text after being either end
19166         or begin, moved and returned to text
19168 1999-04-12  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
19170         * app/preferences.c: Add prototype declaration for prefs_apply.
19172 1999-04-11  Alexander Larsson  <alla@lysator.liu.se>
19174         * app/preferences.c:
19175         Added 'ok' button.
19176         Apply don't hide window.
19178         * app/properties.c:
19179         Add 'ok' button.
19181         * objects/UML/object.c:
19182         * objdcts/UML/state.c:
19183         Some data was not copied on copy.
19185         This patch is from
19186         Ben Hochstedler <benh@eeyore.moneng.mei.com>
19188 1999-04-09  Alexander Larsson  <alla@lysator.liu.se>
19190         * app/Makefile.am:
19191         Changed link order between X and libxml.
19192         Some people had problems with an old libz in their
19193         x11 directory.  
19195 1999-04-09  Kjartan Maraas  <kmaraas@online.no>
19197         * po/no.po: updated translation.
19198         
19199 1999-04-08  Lars R. Clausen <lrclause@cs.uiuc.edu>
19201         * lib/message.c (message_error):
19202         Fixed small error.
19204         * app/commands.[ch]:
19205         * app/diagram.[ch]:
19206         Added begining of xfig importing
19208 1999-04-08  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
19210         * objects/UML/pixmaps/state.xpm: 
19211         * objects/UML/state.c: 
19212         New UML object state machine.
19214         * objects/UML/uml.c:
19215         * objects/UML/Makefile.am:
19216         * objects/UML/pixmaps/Makefile.am:
19217         Added the state object.
19218         
19219 1999-04-08  Alejandro Aguilar Sierra  <ale@bucefalo>
19221         * objects/UML/usecase.c: 
19222         Added dialog to allow move text outside the ellipse.
19224 1999-04-08  Alexander Larsson  <alla@lysator.liu.se>
19226         * Released Dia 0.41
19227         Tag called DIA_0_41
19229         * NEWS:
19230         Updates for 0.41.
19231         
19232 1999-04-08  Alexander Larsson  <alla@lysator.liu.se>
19234         * configure.in:
19235         Updated version number to 0.41
19237         * po/*.po:
19238         Update po-files
19240 1999-04-04  Fredrik Hallenberg  <hallon@lysator.liu.se>
19242         * app/app_procs.c
19243         Changed errormessage for --export-to-ps. Removed call to 
19244         g_log_set_always_fatal().
19246         * app/diagram.c
19247         * app/disp_callbacks.c
19248         * app/load_save.c
19249         (i18n) Removed gettext from some debugmessages.
19251         * app/menus.c
19252         Small fix in GNOME-menus. Added warning that will help track
19253         problems with translations.
19255         * po/sv.po
19256         (i18n) Updated swedish translation.
19258 1999-04-02  Alexander Larsson  <alla@lysator.liu.se>
19260         * po/da.po:
19261         New updates
19263 1999-04-01  Alexander Larsson  <alla@lysator.liu.se>
19265         * po/da.po:
19266         * po/no.po:
19267         Some fixes.
19268         
19269 1999-04-01  Alexander Larsson  <alla@lysator.liu.se>
19271         * po/da.po:
19272         (i18n) Updated the danish translation.
19273         From Lars R. Clausen.
19275 1999-04-01  Fredrik Hallenberg  <hallon@lysator.liu.se>
19277         * app/menus.c
19278         (i18n) The popup menu is translated now.
19280         * po/sv.po
19281         (i18n) Updated swedish translation.
19283 1999-03-29  Alexander Larsson  <alla@lysator.liu.se>
19285         * Released Dia 0.40
19286         Tag called DIA_0_40
19288         * NEWS:
19289         Updated for new release
19290         
19291 1999-03-29  Alexander Larsson  <alla@lysator.liu.se>
19293         * objects/network/bus.c:
19294         Added initialization of properties dialog to NULL.
19296         * app/commands.c (edit_cut_callback):
19297         Update menu sensitivity when cut object.
19299         * app/modify_tool.c (click_select_object):
19300         * app/modify_tool.c (modify_button_release): 
19301         Call diagram_update_menu_sensitivity() when
19302         selecting objects to update stuff that depends
19303         on selected/not selected.
19305 1999-03-29  Alexander Larsson  <alla@lysator.liu.se>
19307         * Makefile.am:
19308         Change order of subdir so that libintl.a builds.
19309         Now passed make distcheck.
19311 1999-03-28  Alexander Larsson  <alla@lysator.liu.se>
19313         * lib/font.c (init_x11_font):
19314         Stupid bug fixed.
19316 1999-03-28  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
19318         * objects/UML/pixmaps/classicon.xpm: 
19319         * objects/UML/classicon.c:
19320         * objects/UML/uml.c:
19321         Added the class stereotype icon objects.
19323         * app/commands.c:
19324         Changed default ps extension from .ps to .eps.
19325         
19326 1999-03-28  Alexander Larsson  <alla@lysator.liu.se>
19328         * lib/Makefile.am:
19329         Added diamenu.h and intl.h
19331         * lib/font.c:
19332         Stupid typo fix.
19333         
19334         * objects/UML/pixmaps/Makefile.am:
19335         Added message.xpm
19337         * objects/standard/pixmaps/Makefile.am:
19338         Added image.xpm
19340 1999-03-28  Alexander Larsson  <alla@lysator.liu.se>
19342         * lib/font.c:
19343         Use a scalable font before fixed when real font not found.
19345         * app/commands.c:
19346         Removed warning.
19348         * objects/standard/image.c:
19349         Better handling of loading/saving of images.
19351         * INSTALL:
19352         Added some text about cvs, fonts and rewrote some parts.
19354         * TODO:
19355         Updated with new stuff.
19356         
19357         * configure.in:
19358         Bump up version number to 0.40.
19359         
19360 1999-03-28  Alexander Larsson  <alla@lysator.liu.se>
19362         * app/display.c:
19363         Moved diagram_add_ddisplay() call into new_display().
19364         Fixed new_display to not use uninitialized variables
19365         causing loaded files to show up as black (or garbage).
19366         
19367         * app/commands.c:
19368         * app/app_procs.c:
19369         Removed unneeded calls to diagram_add_ddisplay().
19370         
19371 1999-03-28  Alexander Larsson  <alla@lysator.liu.se>
19373         * objects/UML/lifeline.c:
19374         Fixed bug in copy.
19375         Patch from Andreas Jaeger <aj@arthur.rhein-neckar.de>.
19377         * objects/UML/message.c:
19378         Fixed bug loading messages with null-text.
19379         Patch from Andreas Jaeger <aj@arthur.rhein-neckar.de>.
19381 1999-03-27  Fredrik Hallenberg  <hallon@lysator.liu.se>
19383         * po/sv.po
19384         Updated swedish translation.
19386         * app/menus.c
19387         (GNOME) Removed help-browser from help menu. Fixed typo.
19389         * app/interface.c
19390         (GNOME) Accelerators in diagrams should work now. 
19392 1999-03-25  Fredrik Hallenberg  <hallon@lysator.liu.se>
19394         * app/app_procs.c
19395         * app/commands.c
19396         * app/defaults.c
19397         * app/disp_callbacks.c
19398         * app/display.c
19399         * app/interface.c
19400         * app/menus.c
19401         * app/preferences.c
19402         * app/render_eps.c
19403         * lib/diagramdata.c
19404         * lib/font.c
19405         * lib/message.c
19406         * lib/widgets.c
19407         * objects/ER/*.c
19408         * objects/UML/*.c
19409         * objects/network/*.c
19410         * objects/standard/*.c
19411         * po/update_pofiles_in.sh
19412         * po/POFILES.in
19413         More i18n. All strings (expect rare debug messages) can be
19414         translated now. Moved intl.h from app to lib. Updated
19415         update_pofiles_in.sh to check all .c-files.
19417 1999-03-23  Alexander Larsson  <alla@lysator.liu.se>
19419         * app/disp_callbacks.c (ddisplay_canvas_events):
19420         Don't drop keys while num-lock, scroll-lock etc is on.
19422 1999-03-22  Alexander Larsson  <alla@lysator.liu.se>
19424         * app/render_eps.c (draw_image):
19425         Fixed exporting of images.
19426         Still not perfect, but not outright buggy.
19427         
19428 1999-03-22  Alexander Larsson  <alla@lysator.liu.se>
19430         * configure.in:
19431         * po/hu.po:
19432         Added hungarian translation. By Shooby Ban <bansz@szif.hu>.
19434         * app/Makefile.am:
19435         Added $* to the dia call in run_dia.sh
19437 1999-03-22  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
19438         
19439         * lib/color.[ch]:
19440         Added color_equals() call.
19442         * objects/standard/arc.c:
19443         * objects/standard/line.c:
19444         Don't save unneccesary data.
19445         
19446         * objects/standard/box.c:
19447         * objects/standard/ellipse.c:
19448         * objects/standard/image.c:
19449         * objects/standard/polyline.c:
19450         * objects/standard/zigzagline.c:
19451         Share properties dialog.
19452         Don't save unneccesary data.
19453         
19454 1999-03-22  Seth Alves  <alves@hungry.com>
19456         * app/menus.c:
19457         * app/diagram.c:
19458         * app/display.c:
19459         small changes so that gnome menus aren't broken
19460         
19461 1999-03-22  Alexander Larsson  <alla@lysator.liu.se>
19463         * po/da.po:
19464         Added danish translation from lrclause@cs.uiuc.edu.
19466         * po/POFILES.in:
19467         Updated file.
19469         * po/update_pofiles_in.sh:
19470         Added script that updates POFILES.in.
19471         This should probably be run automatically from somewhere.
19473 1999-03-19  Alexander Larsson  <alla@lysator.liu.se>
19475         * app/diagram.[ch]:
19476         Added function diagram_update_menu_sensitivity() which
19477         sets the sensitivity of some menu items. This function
19478         is called at each diagram state change (from diagram_modified()).
19479         This is needed  because otherwise the keyboard accelerators
19480         don't work correctly.
19482         * app/display.[ch]:
19483         Changed display_set_menu_sensitivity() to display_update_menu_state().
19484         Moved lots of code to diagram_update_menu_sensitivity() in
19485         diagram.c. Optimized to only look up menu-items from path:s once.
19486         
19487         * app/disp_callbacks.c:
19488         * app/interface.c:
19489         When we get a GDK_FOCUS_CHANGE, update menu sensitivity.
19490         Need to set GDK_FOCUS_CHANGE_MASK.
19491         
19492         * app/create_object.c:
19493         Call diagram_modified when an object has been created and
19494         selected so that the menu sensitivity is updated. 
19496         * app/menus.[ch]:
19497         removed menus_set_sensitive() and menus_set_state(). Exported
19498         renamed function menus_get_item_from_path().
19500 1999-03-15  Alexander Larsson  <alla@lysator.liu.se>
19502         * app/disp_callbacks.c:
19503         Show (empty) object menus on object that has none.
19504         Show title on object menus.
19506         * app/display.c:
19507         Set zoom factor correctly when opening new displays.
19508         Better setting of scrollbars.
19510         * app/grid.c:
19511         * app/menus.h:
19512         Some reformating cleanup.
19514         * lib/diamenu.h:
19515         Added title to object menus.
19517         * objects/*/*.c:
19518         Added object menu method (NULL-valued) to all objects.
19520         * objects/standard/polyline.c:
19521         Added title to object menu.
19523 1999-03-14  Alexander Larsson  <alla@lysator.liu.se>
19525         * app/preferences.[ch]:
19526         New files. Implements the preferences dialog and
19527         loading/saving of ~/.diarc.
19529         * app/Makefile.am:
19530         Added preferences.[ch].
19532         * app/app_procs.c:
19533         Load preferences on startup.
19535         * app/commands.[ch]:
19536         Added file_preferences_callback to show the preferences dialog.
19538         * app/create_object.c:
19539         Update extents when creating object.
19540         Use the reset_tools_after_create preferences setting.
19542         * app/display.c:
19543         Use preferences when creating new display.
19545         * app/menus.c:
19546         Add preferences to menu.
19548         * app/defaults.c:
19549         * app/layer_dialog.c:
19550         * app/properties.c:
19551         Don't allow shrinking of dialog.
19552         Add i18n of some strings.
19554 1999-03-11  Kjartan Maraas  <kmaraas@fib.hl.no>
19555         * po/no.po:
19556         Norwegian translation added.
19557         
19558 1999-03-11  Alexander Larsson  <alla@lysator.liu.se>
19560         * objects/standard/line.c: 
19561         * objects/standard/arc.c: 
19562         * objects/standard/polyline.c: 
19563         * objects/standard/zigzagline.c:
19564         Loading of arrow data fixed.
19566 1999-03-09  Alexander Larsson  <alla@lysator.liu.se>
19568         * app/commands.c:
19569         Update extents when saving and exporting to postscript.
19570         Fixes a bug with postscript bounding-box being wrong.
19572         * app/defaults.c:
19573         Changed border width from 5 to 2.
19575         * app/group.c:
19576         Move grouped objects by the move-point of the first object.
19577         Fixes bug that made all objects in the group be off-grid
19578         when moving the group, even though all objects was on-grid.
19580         * app/layer_dialog.c:
19581         Update extents when changing layer.
19583 1999-03-08  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
19585        * objects/UML/uml.c: 
19586        * objects/UML/component.c: 
19587        * objects/UML/pixmaps/component.xpm: 
19588        Added the UML component object
19589         
19590 1999-03-04  Seth Alves  <alves@hungry.com>
19592         * objects/UML/generalization.c (generalization_create): avoid
19593         math on uninitialized genlz->text_width (NaN causes sigfpe)
19594         
19595         * objects/UML/realizes.c (realizes_create): same
19597         * objects/UML/dependency.c (dependency_create): same
19599 1999-03-01  Seth Alves  <alves@hungry.com>
19601         * app/display.c (ddisplay_active): don't fly a warning panel
19602         if ddisplay_active is called when no views are open.
19604         * app/commands.c (set_default_file_selection_directory): set
19605         file selector's default directory if there is already
19606         a document open.
19608 1999-02-28  Alexander Larsson  <alla@lysator.liu.se>
19610         * INSTALL:
19611         New info about imlib requirements.
19613         * Configure.in:
19614         Added lib/pixmaps/Makefile to created makefiles.
19616         * app/app_procs.c:
19617         * app/commands.c:
19618         Change from obsoleted to newer gtk calls.
19619         
19620         * load_save.c:
19621         Pass filename of the diagram when loading and saving.
19622         This creates better oportunities to handle filename saving.
19624         * lib/object.h:
19625         Pass filenames to load and save methods.
19626         
19627         * lib/dia_image.[ch]:
19628         Added dia_image_get_broken() call that returns a image which
19629         is used for 'broken' images.
19630         
19631         * lib/pixmaps/.cvsignore:
19632         * lib/pixmaps/Makefile.am:
19633         * lib/pixmaps/broken.xpm:
19634         New files for the broken image bitmap.
19636         * lib/widgets.c:
19637         Fixed bug with double destroyed filedialog.
19639         * objects/*/*.c:
19640         Updated load and save prototypes to use the new filename argument.
19642         * objects/image.c:
19643         Render broken image instead of line when got no image.
19644         Use the new filename in load and save to save (if possible)
19645         relative pathnames and to better try to find loaded images.
19647 1999-02-28  Alexander Larsson  <alla@lysator.liu.se>
19649         * TODO:
19650         Some updates to the todo file.
19651         
19652         * app/menus.c:
19653         * app/display.c:
19654         Place over/place over => sent to back/bring to front.
19655         Added some keyboard shortcuts to menus.
19656         
19657 1999-02-28  Alexander Larsson  <alla@lysator.liu.se>
19659         * lib/dia_xml.c:
19660         Changed string saving/loading to a new method. This should
19661         be much better att handling &,<,> and whitespaces.
19662         Loading strings of the old kind is still supported for backwards
19663         compatibility.
19665         * samples/ER-demo.dia:
19666         * samples/UML-demo.dia:
19667         Updated to use the new strings.
19668         
19669         * app/load_save.c:
19670         statusbar modified update fix.
19672 1999-02-27  Seth Alves  <alves@hungry.com>
19674         * app/app_procs.c (app_init): added a --export-to-ps option
19675         which will cause dia to load a dia file and save it as ps
19676         and then exit.  this is a little bogus, because it still
19677         pops up a window.  this option only shows up if --enable-gnome
19678         is used
19680         * app/display.c (display_set_menu_sensitivity): no Edit/Delete
19681         menu when built with --enable-gnome
19683         * app/interface.c (create_display_shell): build status bar
19684         even if --enable-gnome is used
19686         * app/menus.c: menu fixes for --enable-gnome
19688         * app/commands.c (file_open_dialog_ok_callback): fixed up
19689         menus when --enable-gnome is used
19690         (file_export_to_eps_callback): set a default file name
19691         when dialog is created
19693 1999-02-27  Alexander Larsson  <alex@c125.ryd.student.liu.se>
19695         * objects/UML/association.c (association_create):
19696         Fixed usage of not initialized variable.
19697         Pointed out by Seth Alves <alves@hungry.com>.
19699 1999-02-24  Alexander Larsson  <alex@c125.ryd.student.liu.se>
19701         * configure.in:
19702         Fixed detection of gnome-xml.
19703         From Valtteri Vuorikoski <vuori@k.notcom.org>.
19704         
19705         * app/app_procs.c:
19706         Fixed error detection on dlsym calls. 
19707         From Valtteri Vuorikoski <vuori@k.notcom.org>.
19709 1999-02-23  Alexander Larsson  <alla@lysator.liu.se>
19711         * objects/UML/message.c (fill_in_dialog):
19712         Fixed warnings.
19714 1999-02-22  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
19716         * objects/standard/zigzagline.c:
19717         * objects/standard/polyline.c:
19718         * objects/standard/line.c:
19719         * objects/standard/arc.c:
19720         * lib/widgets.h:
19721         * lib/arrows.h:
19722         * lib/widgets.c:
19723         Support for sizeable arrows. 
19725         * objects/standard/box.c:
19726         * objects/standard/ellipse.c:
19727         * objects/standard/image.c:
19728         Changed creation handle to lower-right.
19729         Transparent box/ellipse.
19730         
19731         * objects/standard/image.c:
19732         Better layout of properties boxes.
19734 1999-02-20  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
19736         * objects/UML/message.c (fill_in_dialog): 
19737         Fixed dialog fill in. Common dialog for all messages.
19739         * objects/UML/object.c: 
19740         Added multiple instance. Dialog related bugs fixed.
19741         Common dialog for all instances. Completed copy and destroy.
19743         * objects/UML/lifeline.c (lifeline_load): 
19744         Conn initialization bug fixed and few bad loading prevention flags.
19745         Common dialog for all lifeline objects.
19746         
19747 1999-02-15  Alexander Larsson  <alla@lysator.liu.se>
19749         * lib/dia_image.[ch]:
19750         More work on the DiaImage abstraction.
19751         
19752         * app/app_procs.c:
19753         * app/render_eps.c:
19754         * app/render_gdk.c:
19755         * objects/standard/image.c:
19756         Use the new DiaImage calls.
19758 1999-02-15  Alexander Larsson  <alla@lysator.liu.se>
19760         * app/menus.c:
19761         * app/display.c:
19762         Reversed the meaning of align horizontal/vertical.
19764 1999-02-15  Alexander Larsson  <alla@lysator.liu.se>
19766         * app/load_save.c (diagram_load):
19767         Statusbar update fix.
19769 1999-02-15  Alexander Larsson  <alla@lysator.liu.se>
19771         * app/interface.c (create_display_shell):
19772         Fixed status bar size.
19773         
19774 1999-02-15  Alexander Larsson  <alla@lysator.liu.se>
19776         * lib/dia_image.[ch]:
19777         Added extern declaration for dia_image_release.
19778         Removed dia_image_draw, as it's not neseccary.
19780 1999-02-14  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
19781         
19782         * app/object_ops.c: 
19783         * app/menus.c: 
19784         Added equal distance alignment both vertical and horizontal.
19785         
19786         * objects/UML/object.c: 
19787         Added a couple of attributes to load/read that were missing.
19789         * objects/UML/lifeline.c: 
19790         Better handling of handles. Fixed another bug I forgot to add
19791         to my last patch.
19792         
19793 1999-02-13  Alexander Larsson  <alla@lysator.liu.se>
19795         Patch from Lars Clausen <lrclause@shasta.cs.uiuc.edu>
19796         
19797         * lib/dia_image.[ch]:
19798         * lib/Makefile.am:
19799         New files. DiaImage wraps the GdkImlibImage.
19801         * lib/render.h:
19802         * app/render_eps.c:
19803         * app/render_gdk.c:
19804         * lib/render_store.[ch]:
19805         * objects/standard/image.c:
19806         Use the new DiaImagetype.
19808         * lib/widgets.c:
19809         Removed unused variable to eliminate  warning.
19811 1999-02-11  Alexander Larsson  <alla@lysator.liu.se>
19813         * objects/standard/box.c:
19814         Added rounded corners on the box object.
19816         * lib/widgets.[ch]:
19817         Updated the DiaFileSelector widget.
19818         
19819 1999-02-09  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
19821         * objects/UML/object.c (objet_draw): 
19822         Completed underlining of all object name lines. 
19824         * objects/UML/message.c (fill_in_dialog): 
19825         Fixed a bug that filled incorrectly the message's dialog.
19827         * objects/UML/lifeline.c (lifeline_load): 
19828         Some cleanning and fixed a couple of bugs that caused
19829         crashes after reading diagrams with lifelines.
19831         * lib/text.c: 
19832         Added flags to prevent crash with void strings
19834 1999-02-07  Matthias Köster <Matthias.Koester@Informatik.Uni-Oldenburg.DE>
19835         * app/display.[ch]:
19836         Added statusbar to the display widget. Currently shows the zoom
19837         factor and modified flag of the viewed diagram. The statusbar is
19838         updated upon calls to ddisplay_zoom and ddisplay_update_statusbar.
19839         This caused the following additions:
19840         
19841         * app/diagram.[ch]:
19842         Added function diagram_set_modified. Calls
19843         ddisplay_update_statusbar for all displays showing the modified diagram.
19844         Changed diagram_modified to call diagram_set_modified.
19845         
19846         * app/interface.c:
19847         Added the creation of the statusbar.
19848         
19849         * app/load_save.c:
19850         diagram_save now calls diagram_set_modified instead of setting
19851         dia->modified. Needed to force call to display_update_statusbar
19852         
19853         * app/commands.c:
19854         Changed the way view_show_all works. Now calls ddisplay_zoom
19855         instead of directly setting the zoom_factor, so the zoom factor is
19856         correctly shown in the statusbar.
19858         * app/magnify.c:
19859         Fixed rubberband zoom to use ddisplay_zoom().
19860         
19861 1999-02-07  Fredrik Hallenberg  <hallon@lysator.liu.se>
19863         * app/app_procs.c
19864         Rudimentary GNOME session management.
19865         
19866         * app/disp_callbacks.c
19867         * app/interface.c
19868         * app/menus.c
19869         * app/menus.h
19870         GNOME menus. Problems: 
19871         Callbacks doesn't get user_data.
19872         Weird warnings when creating popup menus.
19873         menus_set_sensitive(), menus_set_state() doesn't work.
19875 1999-02-05  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
19877         * configure.in:
19878         Add AM_PATH_GDK_IMLIB() call.
19880         * app/Makefile.am:
19881         Add gdk_imlib to linking flags.
19883         * app/app_procs.c:
19884         Init gdk_imlib.
19885         Print library-loading error messages on stdout too.
19887         * app/interface.c:
19888         Add standard image to toolbox.
19889         
19890         * app/render_eps.c: 
19891         Set a more reasonable dot length.  Fixed
19892         missing initialization of dot length.
19893         Added draw_image methods.
19895         * app/render_gdk.c (new_gdk_renderer): 
19896         Dot a bit wider.  Looks good in normal mode now.
19898         * objects/standard/image.c:
19899         * objects/standard/pixmaps/image.xpm:
19900         New files. Standard object for images.
19901         
19902         * app/render_eps.c (set_linestyle):
19903         * app/render_gdk.c (set_linestyle):
19904         * lib/widgets.c (dia_line_style_selector_init): 
19905         * lib/render.h: 
19906         New line style DOTTED.
19908         * lib/render.h:
19909         * lib/render_store.c:
19910         Change DrawImage call to use gdk_imlib.
19912         * lib/widgets.[ch]:
19913         Added widgets for selecting files.
19914         Added dotted to the linestyle selector.
19916 1999-02-06  Alexander Larsson  <alla@lysator.liu.se>
19918         * objects/network/printer.c:
19919         * objects/network/network.c:
19920         * objects/network/pixmaps/printer.xpm:
19921         * objects/network/.cvsignore:
19922         * objects/network/Makefile.am:
19923         * objects/network/pixmaps/Makefile.am:
19924         New printer object in network.
19925         From Martin Hawlisch <hawlisch@roxi.rz.fh-mannheim.de>
19927         * TODO:
19928         Added known XML bug.
19929         
19930 1999-02-06  Alexander Larsson  <alla@lysator.liu.se>
19932         * app/load_save.c:
19933         * lib/dia_xml.c:
19934         Reverted back from #include <gnome-xml/tree.h> to
19935         #include <tree.h> as this is fixed by the xml-config program.
19936         The former way broke for some people.
19937         Reported by blizzard@redhat.com.
19939         * objects/UML/lifeline.c:
19940         * objects/UML/message.c:
19941         * objects/UML/object.c:
19942         Removed some warnings.
19943         
19944 1999-02-04  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
19946         * objects/UML/lifeline.c: 
19947         Fixed connection points over the life line when the focus of
19948         control is not drawn.
19950         * objects/UML/message.c: 
19951         Now a recursive message can be freely resized using the handles.
19953 1999-02-02  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
19955         * objects/UML/lifeline.c:
19956         Added connection points.
19957         Added properties dialog with the option to draw/hide focus of control
19958         box and destruction mark.
19960         * objects/UML/object.c: 
19961         Added properties dialog and stereotype, explicit state and attributes. 
19962         It's also possible to mark the object as active.
19964         * objects/UML/pixmaps/object.xpm: 
19965         Cosmetic change.
19967         * objects/UML/message.c:
19968         Added "recursive" message type (was not necessary to use OrthConn).
19970 1999-02-02  Alexander Larsson  <alla@lysator.liu.se>
19972         * objects/standard/arc.c:
19973         Removed old debug code. Fixes a visual bug. From lrclause@cs.uiuc.edu.
19975 1999-02-01  Alexander Larsson  <alla@lysator.liu.se>
19977         Patch from Lars R. Clausen <lrclause@cs.uiuc.edu>
19978         
19979         * app/load_save.c:
19980         * lib/dia_xml.c:
19981         Update xml includes to gnome-xml/*.h.
19983         * objects/standard/arc.c:
19984         Only one property dialog per type.
19985         Fix arrows directions.
19987         * objects/standard/box.c:
19988         * objects/standard/ellipse.c:
19989         * objects/standard/textobj.c
19990         Added default properties dialog.
19991         
19993 1999-01-31  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
19995         * objects/UML/Makefile.am: 
19996         * objects/UML/uml.c:
19997         * objects/UML/lifeline.c: 
19998         * objects/UML/object.c: 
19999         * objects/UML/message.c:
20000         * objects/UML/pixmaps/lifeline.xpm: 
20001         * objects/UML/pixmaps/object.xpm: 
20002         * objects/UML/pixmaps/message.xpm:
20003         Added 3 new UML objects for dynamic modeling. To avoid internal 
20004         conflicts, the name "objet" is used for object "object".        
20006         * lib/arrows.[ch]: 
20007         Added ARROW_HALF_HEAD arrow type to allow drawing asynchronous
20008         UML messages.
20009         
20010 1999-01-30  Alexander Larsson  <alla@lysator.liu.se>
20012         * app/display.[ch]:
20013         * app/modify_tool.c:
20014         Added autoscrolling while doing rubber-band select.
20015         This patch from Matthias Köster
20016         (Matthias.Koester@Informatik.Uni-Oldenburg.DE)
20017         
20019 1999-01-28  Alexander Larsson  <alla@lysator.liu.se>
20021         * app/defaults.[ch]:
20022         New files, deals with default properties dialog.
20024         * lib/diamenu.h:
20025         New file. Contains definitions for the new object menu.
20027         * lib/poly_conn.[ch]:
20028         New file. Base class for poly-line like objects.
20030         * objects/standard/polyline.c:
20031         * objects/standard/pixmaps/polyline.xpm:
20032         New files. Polyline object.
20034         * app/app_procs.c:
20035         Fixed bug with infinite loop when registering sheets.
20036         
20037         * app/commands.c:
20038         Removed unneccesary stuff.
20040         * app/disp_callbacks.c:
20041         Support for object menus.
20043         * app/interface.c:
20044         Added polyline to toolbox.
20045         Added call to tool_options_dialog_show() when double clicking on
20046         tool.
20048         * app/tool.[ch]:
20049         New function tool_options_dialog_show() for tool properties.
20051         * lib/arrows.[ch]:
20052         Added ARROW_NONE.
20054         * lib/object.h:
20055         Added ObjectType methods for handling object default dialogs.
20056         Added Object method for handling object_menu.
20057         Added unused methods to ObjectTypeOps for future binary
20058         compatibility.
20060         * lib/widgets.[ch]:
20061         Added DiaArrowTypeSelector widget.
20063         * objects/standard/arc.c:
20064         * objects/standard/zigzagline.c:
20065         Added support for default properties.
20067         * objects/standard/line.c:
20068         Added support for default properties.
20069         Just use one properties dialog for all line objects. NOTE: This
20070         seems to have a bug. We're working on it.
20072         * standard/standard.c:
20073         Add the polyline object.
20075 1999-01-27  Alexander Larsson  <alla@lysator.liu.se>
20077         * app/modify_tool.c:
20078         Commented out buggy transitive select function. It wasn't really
20079         meant to go into cvs.
20080         
20082 1999-01-25  Fredrik Hallenberg  <hallon@lysator.liu.se>
20084         * autogen.sh:
20085         * acconfig.h:
20086         * configure.in:
20087         * Makefile.am:
20088         * app/Makefile.am:
20089         * po/POTFILES.in:
20090         * app/intl.h
20091         i18n-support.
20093         * po/sv.po:
20094         Swedish translation. Not completed.
20095         
20096         * configure.in:
20097         * acconfig.h:
20098         Added possibility to enable GNOME specific code with configure.
20100         * configure.in:
20101         Added possibility to set debug level with configure.
20103         * commands.[hc]:
20104         Added about dialog.
20106         * app_procs.c
20107         * commands.c
20108         * interface.c
20109         * menus.c
20110         Added some GNOME specific code. Not ready for use.
20112 1999-01-24  Alexander Larsson  <alla@lysator.liu.se>
20114         * INSTALL:
20115         Added text about needing gtk 1.1.13 and gnome-xml.
20116         
20117         * NEWS:
20118         Described changes since last version (0.20).
20120         Released version 0.30, tagged DIA_0_30.
20122 1999-01-22  Alexander Larsson  <alla@lysator.liu.se>
20124         * app/magnify.c (magnify_button_release):
20125         Fixed a problem when zooming in on a very small box would
20126         not release the grabbed pointer-focus.
20128 1999-01-21  Alexander Larsson  <alla@lysator.liu.se>
20130         * app/load_save.c (diagram_load):
20131         Be somewhat more robust when loading files that
20132         are not diagrams.
20133         
20134 1999-01-21  Alexander Larsson  <alla@lysator.liu.se>
20136         * app/app_procs.c:
20137         * objects/ER/er.c:
20138         * objects/UML/uml.c:
20139         * objects/network/network.c:
20140         * objects/standard/standard.c:
20141         Added versioning of object libraries.
20143         * app/create_object.c:
20144         Don't change tool when an object is created.
20145         
20146         * objects/network/network.c:
20148         * TODO:
20149         Update
20151 1999-01-19  Alexander Larsson  <alla@lysator.liu.se>
20153         * configure.in:
20154         Updated gtk requirement to Gtk+ 1.1.13.
20156         * app/display.c:
20157         Always add one screenful of scrolling space on
20158         each side of a diagram window.
20160 1999-01-19  Jeff Garzik  <jgarzik@pobox.com>
20162         * autogen.sh:
20163         Tell automake to auto-install missing files.
20165         * app/menus.c:
20166         Renamed deprecated Gtk+ function.
20168 1999-01-16  Alexander Larsson  <alla@lysator.liu.se>
20170         * Makefile.am:
20171         * configure.in:
20172         * samples/Makefile.am:
20173         * samples/ER-demo.dia:
20174         * samples/UML-demo.dia:
20175         Added samples directory.
20176         Added samples for ER and UML.
20177         
20178         * app/commands.c:
20179         * app/disp_callbacks.c:
20180         * app/menus.c:
20181         Zoom is done by sqrt(2) instead of 2.
20182         Lots of more zoom options in the menu.
20184         * objects/ER/relationship.c:
20185         Relationships have 8 connectionpoints instead of 4.
20187         * objects/UML/class.c:
20188         UML class name font a bit smaller.
20189         Fixed stupid bug in the copy operation.
20190         
20191         * app/display.c:
20192         Displays are opened at 500x400 instead of 256x256.
20194         * app/load_save.c:
20195         Fixup of internal error message.
20197         * app/color_area.c:
20198         * app/diagram.c:
20199         * app/modify_tool.c:
20200         * lib/object.c:
20201         Removed debug printf's.
20202         
20203         * TODO (BUGS):
20204         Added new known bug.
20206 1999-01-16  Alexander Larsson  <alla@lysator.liu.se>
20208         * app/interface.c:
20209         * app/menus.c:
20210         Fixed so accelerator groups work in all windows.
20211         Updated to new gtk function names.
20213         * TODO (BUGS):
20214         Removed fixed bug.
20216         * app/display.c:
20217         Updated to new gtk function names.
20218         Set sensitivity of the align menu items.        
20220         * objects/ER/pixmaps/Makefile.am:
20221         * objects/UML/pixmaps/Makefile.am:
20222         * objects/network/pixmaps/Makefile.am:
20223         Fix so that make dist works.
20225         * app/app_procs.c:
20226         * app/color_area.c:
20227         * app/commands.c:
20228         * app/diagram.c:
20229         * app/grid.c:
20230         * app/layer_dialog.c:
20231         * app/load_save.c:
20232         * app/object_ops.c:
20233         * app/properties.c:
20234         * lib/diagramdata.[ch]: 
20235         * lib/message.c:
20236         * lib/objects/ER/attribute.c:
20237         * lib/objects/ER/entity.c:
20238         * lib/objects/ER/participation.c:
20239         * lib/objects/ER/relationship.c:
20240         * lib/objects/ER/.c:
20241         * objects/UML/actor.c:
20242         * objects/UML/association.c:
20243         * objects/UML/class_dialog.c:
20244         * objects/UML/dependency.c:
20245         * objects/UML/generalization.c:
20246         * objects/UML/large_package.c:
20247         * objects/UML/realizes.c:
20248         * objects/UML/.c:
20249         * objects/UML/.c:
20250         Updated to new gtk function names.
20251         Removed warnings.
20253 1999-01-15  Alexander Larsson  <alla@lysator.liu.se>
20255         * TODO:
20256         Update TODO.
20258         * app/app_procs.c:
20259         Fixed loading of diagrams specified as arguments.
20261         * objects/ER/attribute.c:
20262         * objects/ER/entity.c:
20263         * objects/ER/er.c:
20264         * objects/ER/participation.c:
20265         * objects/ER/relationship.c:
20266         Updated the ER objects.
20267         
20269 1999-01-14  Alexander Larsson  <alla@lysator.liu.se>
20271         * configure.in:
20272         * app/Makefile.am:
20273         * objects/Makefile.am:
20274         * objects/ER/attribute.c:
20275         * objects/ER/entity.c:
20276         * objects/ER/er.c:
20277         * objects/ER/participation.c:
20278         * objects/ER/relationship.c:
20279         * objects/ER/pixmaps/Makefile.am:
20280         * objects/ER/pixmaps/attribute.xpm:
20281         * objects/ER/pixmaps/entity.xpm:
20282         * objects/ER/pixmaps/participation.xpm:
20283         * objects/ER/pixmaps/relationship.xpm:
20284         * objects/ER/pixmaps/weakentity.xpm:
20285         First commit of entity relationship objects.
20286         These were done by hallon@lysator.liu.se.
20287         There are still stuff to do on these.
20288         
20289 1999-01-14  Alexander Larsson  <alla@lysator.liu.se>
20291         * TODO:
20292         Updates.
20294         * app/diagram.[ch]:
20295         Change diagram_remove_all_selected to take new argument
20296         delete_empty. Empty objects are deleted only if it is TRUE.
20297         Removed call to close_eps_renderer. This is now done in end_render
20298         in the eps renderer.
20300         * app/create_object.c:
20301         * app/layer_dialog.c:
20302         Update calls to diagram_remove_all_selected.
20304         * app/commands.c:
20305         Update calls to diagram_remove_all_selected.
20306         Some code reformating.
20307         Changed order of adding updates i align_h and align_v.
20309         * app/modify_tool.c:
20310         Update calls to diagram_remove_all_selected.
20311         Added pointer grab when doing rubber-band selection, this fixes
20312         the bug when draging the box over to another window.
20314         * app/connectionpoint_ops.[ch]:
20315         diagram_update_connections_object changed to take an argument
20316         update_nonmoved. This lets connections that has not moved, but
20317         the stuff they're connected to has been moved work.
20318         Update calls to the new diagram_update_connections_object.
20320         * app/properties.c:
20321         Update calls to the new diagram_update_connections_object.
20322         Update extents when properties are applied.
20323         
20324         * app/disp_callbacks.c:
20325         Added support for zooming with the '+' and '-' keys.
20327         * app/menus.c:
20328         Removed old keyboard shortcuts for zoom.
20330         * lib/render.h:
20331         Added calls begin_render and end_render to renderer.
20332         These can be used for setup and cleanup.
20334         * lib/diagramdata.c:
20335         Added calls to begin_render and end_render in data_render.
20337         * app/render_gdk.c:
20338         Added begin_render and end_render.
20340         * app/render_eps.[ch]:
20341         Added begin_render and end_render.
20342         Moved close_eps_renderer code to end_render.
20343         Various fixes to the generated eps code. This fixes importing
20344         generated eps into LYX.
20345         
20346 1999-01-12  Alexander Larsson  <alla@lysator.liu.se>
20348         * TODO:
20349         Update of todo.
20350         
20351         * app/menus.c:
20352         Menus for alignment updated.
20354         * app/object_ops.[ch]:
20355         Functions for object alignment updated.
20357         * app/commands.[ch]:
20358         Object alignment callbacks updated.
20359         New diagrams are called Untitled-<nr>.
20361         * app/layer_dialog.c:
20362         Active layer selected when showing layers from new
20363         diagram.
20365         * app/load_save.c:
20366         Compress xml files when saving.
20367         Use xml namespace 'dia'.
20369         * lib/object.h:
20370         Minor comment update.
20372         * objects/UML/class_dialog.c:
20373         Cleanup of the gkt_list_item moving code.
20374         Fixed bug with update of operation when moving parameters.
20376 1999-01-10  Alexander Larsson  <alla@lysator.liu.se>
20378         * app/layer_dialog.[ch]:
20379         Fixed the rest of the layers dialog.
20381         * app/dialog.c:
20382         Added call to redo layer dialogs diagram list when changing
20383         diagram name.
20385         * lib/diagramdata.[ch]:
20386         Added data_raise_layer and data_lower_layer functions for
20387         raising/lowering layers. Added data_add_layer_at for adding a
20388         layer at a specified index.
20390 1999-01-05  Alexander Larsson  <alla@lysator.liu.se>
20392         This is the asierra-990105 patch done by asierra@servidor.unam.mx.
20393                 
20394         * app/app_procs.c:
20395         Added support for reading diagrams from the command line.
20397 1998-12-21  Alexander Larsson  <alla@lysator.liu.se>
20399         This is the asierra-981220 patch done by asierra@servidor.unam.mx.
20400                 
20401         * app/commands.[ch]:
20402         Added objects_align_callback().
20404         * app/menus.c:
20405         Added align objects to menu.
20407         * app/object_ops.[ch]:
20408         Add object_list_align().
20409         
20410 1998-12-17  Alexander Larsson  <alla@lysator.liu.se>
20411         * app/layer_dialog.[ch]:
20412         New files. Handles the layers dialog. Needs a bugfix for glib to
20413         work. Sent patch to gtk-list.
20414         
20415         * app/pixmaps/new.xpm:
20416         * app/pixmaps/eye.xbm:
20417         * app/pixmaps/lower.xpm:
20418         * app/pixmaps/raise.xpm:
20419         * app/pixmaps/delete.xpm:
20420         New files. Images for the layer dialog buttons.
20421         
20422         * lib/diagramdata.h
20423         * lib/diagramdata.c
20424         New files for the DiagramData and Layer structures and functions.
20425         
20426         * app/app_procs.c:
20427         Added call to create_layer_dialog() on startup.
20428         
20429         * app/commands.[ch]:
20430         New callbacks for showing the properties and layout dialog.
20431         Changes for the new DiagramData structure.
20433         * app/connectionpoint_ops.c:
20434         * app/cut_n_paste.c:
20435         * app/diagram.[ch]:
20436         * app/display.[ch]:
20437         * app/group.c:
20438         * app/modify_tool.c:
20439         * app/object_ops.[ch]:
20440         * app/render_eps.c:
20441         * lib/object.[ch]:
20442         Changes for the new DiagramData structure.
20444         * app/interface.c:
20445         * app/properties.c:
20446         Set correct wmclasses.
20448         * app/load_save.c:
20449         Fix load and save of layers.
20451         * diagram.dtd:
20452         Update DTD for layers.
20453         
20454         * app/menus.c:
20455         New menus for dialogs.
20457         
20458         * TODO:
20459         Some updates.
20460         
20461 1998-12-06  Alexander Larsson  <alla@lysator.liu.se>
20463         * TODO:
20464         Removed the gtk 1.1.5 stuff.
20466         * configure.in:
20467         Updated gtk check to version 1.1.5.
20468         Updated version from 0.20 to 0.30
20470         * app/commands.[ch]:
20471         Updated some callbacks to be of type GtkItemFactoryCallback1.
20472         Not all are done yet, but it works anyway.
20474         * app/display.h:
20475         Removed Gtk 1.0.0 GtkAcceleratorTable references.
20476         
20477         * app/interface.c:
20478         * app/menus.[ch]:
20479         Update to Gtk 1.1.x functions.
20480         Use ItemFactory instead of MenuFactory.
20481         
20482         * app/render_gdk.c:
20483         Removed Gtk 1.0.0 references.
20485         * objects/UML/class_dialog.c:
20486         Scrolled window updates for Gtk 1.1.5.
20487         
20488         * lib/dia_xml.c:
20489         Removed ugly fix for gnome-xml bug. Make sure you get the
20490         newest version of gnome-xml from CVS.
20491         
20492 1998-12-05  Alexander Larsson  <alla@lysator.liu.se>
20494         * TODO:
20495         Removed the xml load/save line.
20497         * lib/files.[ch]:
20498         Removed files.
20499         
20500         * lib/Makefile.am:
20501         Removed building of files.c
20503         * app/load_save.c:
20504         * lib/connection.c:
20505         * lib/element.c:
20506         * lib/object.c:
20507         * lib/orth_conn.c:
20508         * lib/render_object.c:
20509         * objects/UML/actor.c:
20510         * objects/UML/association.c:
20511         * objects/UML/class.c:
20512         * objects/UML/constraint.c:
20513         * objects/UML/dependency.c:
20514         * objects/UML/generalization.c:
20515         * objects/UML/implements.c:
20516         * objects/UML/large_package.c:
20517         * objects/UML/note.c:
20518         * objects/UML/realizes.c:
20519         * objects/UML/small_package.c:
20520         * objects/UML/uml.c:
20521         * objects/UML/usecase.c:
20522         * objects/network/bus.c:
20523         * objects/standard/arc.c:
20524         * objects/standard/box.c:
20525         * objects/standard/ellipse.c:
20526         * objects/standard/line.c:
20527         * objects/standard/textobj.c:
20528         * objects/standard/zigzagline.c:
20529         Removed all includes of files.h
20531         
20532 1998-12-05  Alexander Larsson  <alla@lysator.liu.se>
20534         * dialog.dtd:
20535         Made the val property of string be implied.
20536         This makes it possible to save strings that
20537         are NULL. Just leave out val.
20539         * objects/lib/dia_xml.c:
20540         Fixed string so that it is possible to save strings
20541         that are NULL. Also made an ugly workaround of a
20542         bug in gnome-xml which removes empty properties.
20543         
20544         * objects/lib/orth_conn.c:
20545         Fixed a bug in saving. Forgot to step through the
20546         directions.
20547         
20548         * objects/UML/association.c: 
20549         * objects/UML/class.c: 
20550         * objects/UML/constraint.c: 
20551         * objects/UML/dependency.c: 
20552         * objects/UML/generalization.c: 
20553         * objects/UML/implements.c: 
20554         * objects/UML/large_package.c: 
20555         * objects/UML/note.c: 
20556         * objects/UML/small_package.c:
20557         * objects/UML/realizes.c:
20558         * objects/UML/usecase.c: 
20559         * objects/UML/actor.c: 
20560         Fixed UML objects to save as xml.
20561         The last two were done by asierra@servidor.unam.mx (asierra-981204)
20562         
20563         * objects/UML/uml.[ch]:
20564         Updated *_write() and *_read() functions to use xml.
20566         * objects/network/bus.c: 
20567         * objects/network/computer.c: 
20568         * objects/network/disc.c: 
20569         * objects/network/monitor.c:
20570         Updated network diagrams to use xml.
20572 1998-12-02  Alexander Larsson  <alla@lysator.liu.se>
20574         * dialog.dtd:
20575         New file. DTD that describes the xml file format
20576         dia uses.
20578         * lib/dia_xml.[ch]:
20579         New files. Support for saving object to xml files.
20581         * configure.in:
20582         * app/Makefile.am:
20583         * lib/Makefile.am:
20584         Added check for and usage of gnome-xml library.
20586         * app/load_save.c:
20587         Major chages. Now saves/loads diagrams as xml.
20589         * lib/object.[ch]:
20590         * lib/element.[ch]:
20591         * lib/connection.[ch]:
20592         * lib/orth_conn.[ch]:
20593         * lib/render_object.[ch]:
20594         * lib/text.[ch]:
20595         Updated object support load/save functions for xml:
20597         * object/standard/arc.c:
20598         * object/standard/box.c:
20599         * object/standard/ellipse.c:
20600         * object/standard/line.c:
20601         * object/standard/textobj.c:
20602         * object/standard/zigzagline.c:
20603         Updated all standard objects to use xml.
20604         
20605         NOTE NOTE NOTE
20606         Only the standard objects are converted right now, don't
20607         save or load uml or network diagrams yet. Also, since this
20608         is new code it is deemed a bit unstable.
20609         
20610         * TODO
20611         Added a know bug.
20613 1998-12-01  Alexander Larsson  <alla@lysator.liu.se>
20615         * objects/UML/class.c:
20616         Changed classname font to Helvetica.
20617         Added more space above the classname
20619         * objects/UML/usecase.c:
20620         Correct placements of connectionpoints on ellipse.
20621         Better algorithm for deciding aspect ration on
20622         ellipse.
20624         These changes were made by Alejandro Aguilar Sierra
20625         <asierra@servidor.unam.mx>. (asierra-981201)
20627 1998-11-30  Alexander Larsson  <alla@lysator.liu.se>
20629         * objects/UML/actor.c:
20630         Changed the extents and alignment of the element
20631         and the text.
20633         * objects/UML/.cvsignore:
20634         Added usecase.lo and actor.lo.
20636 1998-11-30  Alexander Larsson  <alla@lysator.liu.se>
20638         * objects/UML/actor.c:
20639         * objects/UML/usecase.c:
20640         * objects/UML/pixmaps/actor.xpm:
20641         * objects/UML/pixmaps/case.xpm:
20642         New files. Implements usecase and actor UML objects.
20643         These objects are done by Alejandro Aguilar Sierra
20644         <asierra@servidor.unam.mx>.
20645         
20646         * objects/UML/Makefile.am:
20647         * objects/UML/pixmaps/Makefile.am:
20648         Added usecase and actor to makefile.
20649         
20650         * AUTHORS:
20651         Added Alejandro and Jerome to autors list.
20652         
20653 1998-11-25  Alexander Larsson  <alla@lysator.liu.se>
20655         * objects/UML/class.c (umlclass_load):
20656         Fixed typo. Reported by Jerome.Abela@solsoft.fr
20658 1998-11-24  Alexander Larsson  <alla@lysator.liu.se>
20660         * app/properties.c:
20661         Update connections when doing apply in the properties window.
20663         * objects/UML/uml.[ch]:
20664         * objects/UML/class.[ch]:
20665         * objects/UML/class_dialog.c:
20666         Added connection points on both sides of attributes and
20667         operations in UML classes.
20668         Based on idea from Jerome.Abela@solsoft.fr
20669         
20670 1998-11-24  Alexander Larsson  <alla@lysator.liu.se>
20672         * README:
20673         Some new documentation about handles and connectionpoints.
20674         
20675         * lib/object.[ch]:
20676         Added functions object_add_connectionpoint and
20677         object_remove_connectionpoint for handling a dynamic
20678         number of connectionpoints.
20680         * objects/UML/class.c:
20681         Only reserve space for stereotype when it is shown.
20683         These changes are from Jerome Abela <Jerome.Abela@solsoft.fr>
20685 1998-11-08  Alexander Larsson  <alla@lysator.liu.se>
20687         * app/connectionpoint_ops.c:
20688         * app/commands.c:
20689         * app/disp_callbacks.c:
20690         * app/display.[ch]:
20691         * app/grid.c:
20692         * app/handle_ops.c:
20693         * app/magnify.c:
20694         * app/modify_tool.c:
20695         * app/render_gdk.[ch]:
20696         * lib/render.h:
20697         Huge cleanup of internal rendering system.
20698         Moved a lot of data (pixmap, width, height & gc) into the GdkRenderer.
20699         This gives a few new methods for Interactive Renderers for setting
20700         clipping regions and drawing pixel based lines and rects.
20701         Updated the rest of the code to use the new stuff.
20702         
20703         * app/render_eps.c:
20704         Fixed warning.
20706         * lib/widgets.c:
20707         * objects/standard/zigzagline.c
20708         Fixed unused variable warnings.
20710         * lib/font.c:
20711         Fixedbug with stringwidth where width==0.
20713         * TODO:
20714         Added known bug.
20716 1998-11-02  Alexander Larsson  <alla@lysator.liu.se>
20718         * lib/widgets.[ch]:
20719         Added suppot for setting the font of a
20720         DiaFontSelector widget.
20721         Also fixed some typos in the header.
20723         * lib/object.h: 
20724         Added a comment about the GetPRoperties method call.
20725         You have to make sure to update widget state when
20726         this method is called. (Not all objects do this yet,
20727         to be fixed.)
20729         * TODO:
20730         Some small updates
20732 1998-11-01  Alexander Larsson  <alla@lysator.liu.se>
20734         * lib/font.c
20735         Fixed problem with height of ascent and descent for fonts.
20736         It didn't use the whole height (==ascent+descent) when calculatine
20737         ascent_ratio and descent_ratio.
20739         * objects/standard/textobj.c:
20740         * objects/standard/box.c:
20741         * objects/standard/ellipse.c:
20742         * objects/standard/line.c:
20743         * objects/standard/arc.c:
20744         Updated and added property dialogs for these objects.
20745         Also added line width/color/style to those objects
20746         that didn't have it.
20747         This change breaks fileformat compatibility for these objects.
20748         
20749         * objects/standard/zigzagline.c:
20750         Changed zigzagline to be based on OrthConn, much nicer.
20751         Also added line style and color to properties.
20752         This change breaks fileformat compatibility for zigzagline.
20754         * lib/message.c:
20755         Fixed bug in message(). Forgot a pair of '&'.
20757 1998-10-29  Alexander Larsson  <alla@lysator.liu.se>
20759         * lib/widgets.[ch]:
20760         Added DiaColorSelector widget.
20761         This is a colored button that pops up a color selection
20762         dialog when pressed.
20764 1998-10-28  Alexander Larsson  <alla@lysator.liu.se>
20766         * lib/widgets.[ch]:
20767         * lib/Makefile.am:
20768         New files, added widgets for selecting fonts, alignment
20769         and line-style. Will be used later.
20771 1998-10-12  Alexander Larsson  <alla@lysator.liu.se>
20773         * app/Makefile.am:
20774         * lib/Makefile.am:
20775         * objects/UML/Makefile.am:
20776         * objects/network/Makefile.am:
20777         * objects/standard/Makefile.am:
20778         Changed "CFLAGS = -Wall -g" to "CFLAGS = @CFLAGS@"
20779         in all Makefile.am.
20781 1998-10-03  Alexander Larsson  <alla@lysator.liu.se>
20783         * app/handle_ops.c (handle_draw):
20784         connected HANDLE_MINOR_CONTROL also becomes red.
20786 1998-10-02  Alexander Larsson  <alla@lysator.liu.se>
20788         * Makefile.am:
20789         removed -ldl from linking. This is added if needed by configure.
20791         * app/app_procs.c:
20792         Open dlls with RTLD_LAZY if it is defined.
20793         Some cleanups: char *error -> const char *error
20794         Added fprintf()'s to where we exited because of errors.
20796         * lib/files.c:
20797         Include <sys/types.h>
20799 1998-10-01  Alexander Larsson  <alla@lysator.liu.se>
20801         * acconfig.h:
20802         * configure.in:
20803         * app/app_procs.c:
20804         Detect dlopen better.
20805         Detect wether dlopen needs an underscore in the identifier.
20806         This code was mostly borrowed from guile.
20808         * lib/sheet.[ch]:
20809         * app/app_procs.c:
20810         * objects/standard/standard.c:
20811         * objects/network/network.c:
20812         * objects/UML/uml.c:
20813         * most objects:
20814         Changed the way sheets reference objects to use just the
20815         name. Changed module loading to a two stage model:
20816         First register_objects() is called for all modules.
20817         Then register_sheets() is called. This means that
20818         sheets can safely include objects from other modules.
20819         
20821 1998-09-30  Alexander Larsson  <alla@lysator.liu.se>
20823         * objects/network/bus.c:
20824         * objects/network/network.c:
20825         * objects/network/Makefile.am:
20826         New file bus.c. Added new object: Ethernet bus.
20828         * objects/standard/box.c:
20829         Added call to gtk_spin_button_set_numeric for linewidth spinner
20830         in property dialog.
20832 1998-09-30  Alexander Larsson  <alla@lysator.liu.se>
20834         * app/connectionpoint_ops.c:
20835         * app/create_object.c:
20836         * app/group.c:
20837         * app/handle_ops.c:
20838         * app/modify_tool.c:
20839         * lib/connection.c:
20840         * lib/element.c:
20841         * lib/handle.h:
20842         * lib/object.c:
20843         * lib/orth_conn.c:
20844         * loads of objects:
20845         Changed handle->connectable to handle->connect_type.
20846         Now handles can be HANDLE_CONNECTABLE_NOBREAK, which means
20847         that their connections don't break when moving objects.
20849         * app/diagram.c:
20850         Always select the last handle in an object that has
20851         the closest distance.
20852         
20853         * lib/geometry.[ch]:
20854         Added rectangle_add_point function.
20855         
20857 1998-09-27  Alexander Larsson  <alla@lysator.liu.se>
20859         * app/properties.[ch]: New files. Handles the new properties
20860         dialog.
20862         * app/modify_tool.c: Changed to use new properties dialog.
20864         * app/object_ops.[ch]: Removed object_changed_callback, as it's
20865         not needed anymore. This is now handled differently in
20866         properties.c
20868         * lib/object.[ch]:
20869         Changed the properties ops for objects. Removed typedefs
20870         ChangedObjectTime and ObjectChangedFunc needed for the old way.
20871         Added object_return_null function.
20872         
20873         * app/group.c:
20874         * lib/render_object.c:
20875         * objects/*/*.c:
20876         Changed objects to use the new properties dialog.
20877         
20879 1998-09-14  Nuno Ferreira  <nmrf@rnl.ist.utl.pt>
20881         * */Makefile.am (INCLUDES): Changes to work with srcdir !=
20882         builddir.
20884         * autogen.sh: New file. Copied from gtk and added a call to
20885         libtoolize. Anyone knows why this isn't done in gtk?
20887         * Removed autogenerated files.
20889 1998-09-12  Alexander Larsson  <alla@lysator.liu.se>
20891         * Added call setlocale(LC_NUMERIC, "C") so that formating of
20892           floating-point numbers in postscript output will be correct.
20893         * Did some cleanup of generated postscript files.