.cvsignore improvements
[dia.git] / ChangeLog
blob2b28b1f0512c18e58568e98001ee57a238737212
1 2006-02-20  Lars Clausen  <lars@raeder.dk>
3         * lib/diarenderer.c (find_center_point): Better handling of some
4         degenerate cases.
5         (draw_arc_with_arrows): Draw line in all cases.  Doesn't handle
6         the truly degenerate cases well enough yet, but at least doesn't
7         break on common cases.  Probably need to do something special for
8         arcs with start and end point the same.
10 2006-02-20  Hans Breuer  <hans@breuer.org>
12         * plug-ins/python/Makefile.am : dot.py was missing from EXTRA_DIST
13         
14 2006-02-18  Hans Breuer  <hans@breuer.org>
16         * plug-ins/metapost/render_metapost.c : text position gives the
17         baseline neither top nor bottom. ( Rob McDonald, #331491 )
19         * plug-ins/wmf/wmf.cpp : finally respecting the print margins
20         ( Rob McDonald, #331371 )
21         * plug-ins/wmf/wmf_gdi.h : some more constants not useful 
22         without a GDI printer (driver)
23         
24 2006-02-17  Hans Breuer  <hans@breuer.org>
26         * plug-ins/metapost/render_metapost.c(draw_string) : dont query
27         the font for it's height but use the 'height' parameter passed
28         in. Close enough to the desired size - and independent of zoom -
29         to close bug #331489 (Rob McDonald)
30         
31 >>>>>>> 1.1876
32 2006-02-12  Lars Clausen  <lars@raeder.dk>
34         * NEWS: 
35         * dia.spec: 
36         * doc/pl/dia.xml: 
37         * doc/en/dia.xml: 
38         * configure.in: 
39         * config.h.win32: Updates for version 0.95-pre1.
41 2006-02-12  Hans Breuer  <hans@breuer.org>
43         * app/makefile.msc : build three components dia.exe (console
44         application), diaw.exe (windows application) and dia-app.dll
45         containing almost all of Dia's application shared between
46         the two executables
47         * app/main.c app/winmain.c app/app_procs.c app/dia.def : some 
48         refactoring to accomplish the new dependency layout
49         * objects/makefile.msc plug-ins/python/makefile.msc : need to
50         link dia-app.lib now - if at all depending on app/*
51         
52 2006-02-11  Hans Breuer  <hans@breuer.org>
54         * makefile.msc : nmake -f makefile.msc just compiles now
55         * app/makefile.msc lib/makefile.msc : make not using FT2
56         on win32 the default (works around bug #150813 by diabaling it)
57         * objects/makefile.msc plug-ins/makefile.msc : remove -GD from
58         $(CC) command line. It isn't understood by newer versions of cl.
59         
60         * app/authors.h : reflect the recent maintainers change
61         
62         * app/display.c app/load_save.c : removed debug spew
63         
64         * app/winmain.c : improved redirection
65         
66 2006-02-05  Hans Breuer  <hans@breuer.org>
68         * app/menus.[ch] app/diagram.c : the GNOME specific menu code is dead 
69         since 0.94. Fix somne left-overs, also properly disable the duplicate
70         menu entry
72         * po/POTFILES.in : added objects/network/wanlink.c
74 2006-02-05  Hans Breuer  <hans@breuer.org>
76         * lib/dialibartrenderer.c(renderer_finalize) : dont unref 
77         parent_instance.font here. It will be done in DiaRenderer::finalize()
78         Just another reason for crashing at diagram close with libart 
79         renderer involved ...
80         
81 2006-02-04  Hans Breuer  <hans@breuer.org>
83         * objects/standard/image.c : added mainpoint, patch from
84         Torben H. Nielsen fixing bug #329603
86         * app/layer_widget.c : avoid writing to Layer::connectable for a
87         diagram possibly already gone. Fixes bug #329096.
89         * lib/persitence.c(persistence_load) : dont leak filename
90         in case of not existing file
92         Code review via regex "[^_l>p](malloc|free|realloc)\("
93         * objects/fs/function.c : what's g_strdup() must be g_free()'d
94         * plug-ins/dxf/dxf-import.c : use g_realloc()/g_free()
95         * plug-ins/xfig/xfig-import.c : use g_free() instead of plain free()
97         * app/filedlg.c(file_save_as_response_callback) : before destroying 
98         the save as dialog we need to drop the dialogs diagram reference.
99         Fixes behaviour described in bug #123225#c7
101         * app/interface.c(get_sheet_names) : need to sort sheets by their 
102         display name to really fix bug #160101.
103         
104         * objects/UML/association.c : dont leak the role_name calculated
105         with visibility attribute, use g_strdup_printf() instead of strcat().
106         
107         * configure.in : fix typo in error message
109         * lib/object.c : remove duplicated prototype
110         * lib/element.c : element_update_connections_rectangle() assumes nine
111         connection points, i.e. requires 'mainpoint'. g_assert() for this.
112         
113 2006-02-03  Hans Breuer  <hans@breuer.org>
115         * objects/network/bus.c : allow to tint it. Patch from
116         Torben H. Nielsen, closes bug #328580.
117         * objects/network/wanlink.c : allow to tint this as well.
118         
119 2006-01-29  Hans Breuer  <hans@breuer.org>
121         * app/render_libart.c(draw_line) : make setting the pixel side-effect
122         free; account for it in now (less) magic increments. Fixes bug #312147
124 2006-01-28  Hans Breuer  <hans@breuer.org>
126         * po/checktrans.py : make it work with recent pyxml (unknown url type)
127         * po/AADL.sheet.in : remove duplicated _description
128         => translation report works again
130         * app/display.c : revert back to "_Discard Changes" to avoid
131         accelerator clash. Also gtk_button_new_with_mnemonic() to
132         'expand' the accelerator.
134         * lib/dia_svg.c(dia_svg_style_init) : need to initialize
135         linecap, linejoin, linestyle to avoid invalid settings.
136         (Nguyen Thai Ngoc Duy, bug #328945)
137         * lib/diagdkrenderer.c : add a place fro breakpoint to 
138         detect invalid mode
140         * lib/diarenderer.c(setfont) : if we get passed in the
141         same font it must be ref'd before unref.
143         * lib/text.c(set_string) : don't eat the trailing new-line
144         Fixes bug #165092
145         
146         * app/app_procs.c app/display.c app/filedlg.c 
147         attempt to provide more HIG compliant dialogs. Patch from
148         Nguyen Thai Ngoc Duy, part of bug #138183
149         
150         * app/recent_files.c(recent_file_history_clear_menu) : instead of 
151         messing with GtkMenuShell::children and gtk_widget_destroy() just 
152         use gtk_container_remove. Avoids memory corruption causing the
153         most 'random' crashes recently.
154         
155         * objects/UML/message.c : can't use PROP_STD_TEXT_COLOUR_OPTIONAL 
156         cause it has PROP_FLAG_DONT_SAVE. It is designed to fill the 
157         TextAttributes - not some subset. Fixes bug #327701
158         * objects/UML/implements.c objects/UML/generalization.c
159           objects/UML/constraint.c objects/UML/object.c
160           objects/UML/large_package.c objects/UML/realizes.c : same here.
161         * objects/UML/dependency.c : same here. Also draw the "Name" with the
162         given color, not only the Stereotype.
163         * objects/UML/class.c : same here. But we also need to restore 
164         explicit restore "text_color" for the load case.
165         
166 2006-01-27  Hans Breuer  <hans@breuer.org>
168         * configure.in : error out if GLib/GTK+ version is lower than required
170         * app/filedlg.c lib/widgets.c : more default responses. Patch 
171         from Nguyen Thai Ngoc Duy, part of bug #138183
172         
173         * NEWS : Main point feature correction. The line is supposed to
174         start at the border of the object not the bounding box.
175         
176         * app/commands.c : respect difference between documenters and
177         translators and show both in about dialog. Closes bug #328711.
178         
179         * app/interface.c : instead of g_warning for missing shape icon
180         but use message_warning and show the 'missing' icon
181         
182         * lib/dialibartrenderer.c : with Gtk+ 2.8 gdk_draw_layout() does
183         not match pango_win32_get_context(). Use gdk_pango_get_context ().
184         Also removed my special win32-modified-pango code for draw_string()
185         without the help of gdk.
187         * Makefile.am : include MAINTAINERS file in tarball
189         * lib/conectionpoint.h : removed double include of "geometry.h"
190         
191 2006-01-22  Hans Breuer  <hans@breuer.org>
193         * app/splash.c app/commands.c : dont share the logo and finally leak
194         it. Instead both place load and unref the logo themself. 
195         Also unbreak GNOME case.
197         * app/commands.c : use GtkAboutDialog instead of homegrown GTK+
198         or GNOME specific one. 120 lines less code and more standard.
199         * configure.in : require GTK+ >= 2.6
201         * app/diapagelayout.c app/diaunitspinner.c app/layer_dialog.c :
202         make GtkTypeInfo static const as usual elsewhere
203         
204         * app/recent_files.c : it almost certainly is an error to ignore
205         the return value of g_list_remove_link()
206         
207         * lib/arrows.c lib/bezier_conn.[ch] lib/beziershape.h
208           lib/boundingbox.[ch] lib/color.[ch] lib/connectionpoint.c
209           lib/create.h lib/dia_svg.c lib/dia_xml.c lib/diaarrowchooser.c
210           lib/diagramdata.[ch] objects/UML/activity.c objects/UML/class.[ch]
211           objects/UML/uml.h : documentation fixes
212         
213         * lib/object.h lib/diagramdata.h : avoid circular inclusion
214         * lib/connectionpoint.h lib/focus.h lib/group.h lib/handle.h
215           lib/properties.h lib/sheet.h lib/diamenu.h
216         : dont include "object.h", "diatypes.h" is enough. 
217         Rule of thumb: only headers declaring an inheritant of DiaObject
218         should include "object.h"
219         * lib/diarenderer.h : include "font.h" not strictly needed by 
220         this header, but needed in almost any plug-in/
221         * app/diagram_tree_menu.c app/dialogs.[hc] app/display.c
222           app/export_png.c app/interface.c app/load_save.c app/sheets.c
223           app/sheets_dialog.c app/sheets_dialog_callbacks.c 
224           lib/diagdkrenderer.c lib/object.c lib/propobject.c
225           lib/text.c plug-ins/gprint/gnomeprint.c plug-ins/pixbuf/pixbuf.c
226           plug-ins/svg/render_svg.c
227           : some .c files now need to include "object.h" or <gtk/gtk.h>
228         or e.g. "intl.h" direct, formerly dargged in indirectly
229         * plug-ins/pgf/render_pgf.c : explicit inclusion of "arrows.h"
230         
231 2006-01-21  Hans Breuer  <hans@breuer.org>
233         * lib/connection.c lib/connection.h lib/connectionpoint.h
234           lib/diagramdata.h lib/diarenderer.h lib/diatypes.h
235           lib/element.h lib/geometry.h lib/handle.h lib/objchange.h
236           lib/object.c lib/object.h : documentation tweaking
238         * objects/UML/class_dialog.c(attributes_create_page,
239         operations_create_page) : dont connect
240         to a not exisiting signal. Avoids "GLib-GObject-CRITICAL **:
241         g_signal_connect_closure_by_id: assertion 'signal_id > 0' failed"
242         (This was a leftover of introducing the GtkTextView instead of GtkEntry)
244         * objects/UML/class_dialog.c objects/UML/class.c objects/UML/class.h :
245         Introduce 'comment_tagging' switch which allows to hide the rendering
246         {documentation = } Maybe a choice between ugliness and non-standard.
247         Fixes bug #326214. (Unrelated: started to adapt casing of variables
248         to Dia's common coding style)
249                 
250         * lib/object_defaults.c : pass is_default=TRUE to object_copy_props
251           lib/proplist.c : fixed pdtpp_default()
252           lib/propobject.c : correctly reflect is_default 
253         * object/UML/class.c : correct setting of PROP_FLAG_NO_DEFAULTS and
254         PROP_FLAG_DONT_MERGE. With the above this fixes bug #320934
255         
256         * lib/propdialogs.c : if PROP_NO_DEFAULTS is set dont try to show a
257         widget in defaults dialog
259         * app/display.c(initialize_display_widgets) : also append the Input 
260         Methods menu to the diagram menubar. Now fixes bug #327862.
262         * config.h.win32 : #undef LOCALEDIR
263         * app/app_procs.c : runtime calculation of localedir. It now is
264         $(executable_dir)/../locale. Should help fix bug #309763
265         
266         * sheets/AADL.sheet.in : remove left over xml:lang tag. 
267         ( Nguyen Thai Ngoc Duy, bug #327519)
269         * lib/dialibartrenderer.c : make text rendering work without
270         PangoFT2 and PangoWin32
272 2006-01-18  Lars Clausen  <lars@raeder.dk>
274         * objects/UML/class.h: Enabling UML class mainpoint after failure
275         to break it.
277         * app/grid.c: Fix bug with grid being incorrectly drawn when gap <
278         1.
280 2006-01-14  Hans Breuer  <hans@breuer.org>
282         * app/paginate_psprint.c : ensure we are not producing pages for
283         epsilon. Floating imprecision is fun. Fixes bug #133856.
284         * app/paginate_gdiprint.cpp : same here.
286         * plug-ins/pstricks/render_pstricks.c(draw_string) : now that I've
287         found the nice samples from bug #156171 it was quite simple to
288         confirm that the y value need indeed to be inverted. Fixes bug #304974.
289         Also special case strings starting with \tex - i.e. dont escape them -
290         to keep the use-case of direct tex input.
291         
292         * lib/debug.c : #include <glib/gprintf.h> not just <gprintf.h>
294 2006-01-14  Hans Breuer  <hans@breuer.org>
296         * samples/Self/umlclass.dia : (new file) documenting part of the
297         object relations of UMLClass. Also good for testing connections.
298         
299         * lib/debug.c : replace wrong call to vprintf() - missing file
300         descriptor - with the more appropriate g_vprintf(). Thus 
301         dia_assert_true() does not smash the stack anymore on win32.
302         
303         * objects/UML/class.c objects/UML/class_dialog.c objects/UML/uml.h
304           objects/UML/umlattribute.c objects/UML/umloperation.c :
305         reverted the memory managment of UMLAttribute/UMLOperation's 
306         ConnectionPoint(s) back to how it was up until 0.94. This finally
307         makes the UMLClass work again including undo/redo support. Fixes
308         bug #314153 and en passant bug #326453.
309         
310 2005-01-12  Lars Clausen  <lars@raeder.dk>
312         * objects/UML/umlattribute.c: 
313         * objects/UML/class_dialog.c: Better way of handling
314         connectionpoints: Don't copy them, just reference them.  Finally
315         fixes bug #314153 (not quite the pi bug:)
317         * app/menus.c (display_menu_items): 
318         * app/filedlg.c (file_open_response_callback): 
319         * app/display.[ch] (copy_display): 
320         * app/commands.[ch] (view_clone_view_callback): 
321         Added functionality to clone display.  Preparation for storing
322         display info in diagram files (not happening this version, though).
324         * INSTALL (NOTE FOR WINDOWS USERS): Added note for non-compiling
325         users pointing at dia-installer.
327 2006-01-08  Hans Breuer  <hans@breuer.org>
329         * shapes/Gane_and_Sarson/Makefile.am : correct spelling of filenames.
330         (Narcelio Filho, #326075)
332         * objects/AADL/aadl.h : remove #include "app/display.h". It is not needed,
333         plug-ins should not depend on app/* and it even breaks 'make distcheck'.
334         * objects/AADL/Makefile.am : added edit_port_declaration.h
335         * app/Makefile.am : added diaconv.c to EXTRA_DIST
336         => 'make distcheck' passes again.
338         * configure.in : use some more of gcc's useful warnings
340         * lib/geometry.h : removed unused functions just producing warnings
341         [sometimes it's good to read compiler warnings]
342         * plug-ins/cairo/diacairo.c : somehow a function call got lost
343         (left-hand operand of comma expression has no effect)\r  * plug-ins/metapost/render_metapost.c : dia_message_filename()\r wants a char* not a FILE* (passing arg 1 of `dia_message_filename'\r     from incompatible pointer type)\r
345 2006-01-07  Hans Breuer  <hans@breuer.org>
347         * objects/custom/shape_info.c(parse_path) : handle the case of 
348         invalid path data more gracefully, i.e. show a warning instead 
349         of crashing later on.
350         * plug-ins/svg/svg-import.c(read_path_svg) : ditto.
351         
352         * configure.in sheets/Makefile.am shapes/Gane_and_Sarson 
353           shapes/Makefile.am : added Gane & Sarson shapes 
354         (Nick Moore, #319544)
356         * objects/makefile.msc : building AADL on win32
358 2006-01-06  Hans Breuer  <hans@breuer.org>
360         * objects/AADL/aadl.h : avoid redefinition warnings by #undef
361         min, #undef max before local definitions
362         * objects/AADL/aadl.h : more prototypes
363         * objects/AADL/aadltext.c : for C89 declarations must be at the
364         beginning of a block. And Dia *must* be compileable with C89.
366         * objects/AADL/** objects/Makefile.am sheets/Makefile.am 
367         configure.in : AADL plug-in from Pierre Duquesne. See
368         http://mail.gnome.org/archives/dia-list/2006-January/msg00005.html
369         for more information
370         * sheets/AADL.sheet.in : from the above patch but modified 
371         to become translatable like the other sheet files. That is: the
372         french translation got temporary removed cause it does not belong here.
374         * plug-ins/pgf/render_pgf.c : no C99/C++ comments please
376         * app/app_procs.c app/diaconv.c : get rid of run-on sentences
377         (Adam Weinberger, bug #325567)
378         
379         * app/menus.c : removed some keybindings with <control><shift>[0-9A-F]
380         and change some other to use <control><alt>. They collide with GTK's 
381         Unicode input feature. Fixes bug #320495. For rationale see: 
382         http://developer.gnome.org/projects/gup/hig/2.0/input-keyboard.html
383         
384         * app/display.c : pay attention to g_warnings() [should always run
385         with --g-fatalwarnings ;)]. Only create the menubar IM menu if there
386         actually is a menu bar.
387         
388         * lib/diarenderer.c : the righthand calculation accidentially broke
389         some arcs direction. Should be fixed again.
390         
391 2006-01-02  Hans Breuer  <hans@breuer.org>
393         * app/display.c(new_display) : also append the Input Methods menu to 
394         the diagram menubar. Fixes bug #308576.
396         * lib/widgets.c(dia_dynamic_menu_reset) : don't use an already
397         freed string to dia_dynamic_menu_select_entry(). Fixes bug #323592.
399         * lib/sheet.c(dia_sheet_sort_callback) : sort sheets according to 
400         their localized name (with g_utf8_collate). Thus not relying on the 
401         capabilities of the C libraries strcmp(). Fixes bug #160101.
403         * lib/diarenderer.c(draw_arc_with_arrows) : don't recalculate center
404         point and width from the (arrow-)corrected new points. Otherwise a 
405         whole new wrong arc may emerge. Fixes bug #312641.
406         
407 2006-01-01  Hans Breuer  <hans@breuer.org>
409         * objects/custom/custom_object.c(cutom_update_data) : depending 
410         on the handle moving let one scale (x or y) take precedence. 
411         (bug #308515, Eric Deplagne)
412         
413         * objects/UML/class.c : only perform the attributes check with
414         attributes visible to ged rid of false warnings
415         * objects/UML/class_dialog.c : need to setup Connection::object
416         after uml_attribute_new() and uml_operation_new(), again less
417         warnings but bug #314153 still not fixed.
419         * NEWS : updated
421         * plug-ins/python/diasvg.py : more correct svg by also writing 
422         xmlns="http://www.w3.org/200/svg"
424         * plug-ins/python/dot.py : skip unconnected connection lines
425         * plug-ins/python/Makefile.am : added dot.py
427         * plug-ins/python/pydiadoc.py plug-ins/python/codegen.py : fixed
428         typos in comments
430 2005-12-31  Hans Breuer  <hans@breuer.org>
432         * objects/UML/class.[hc] objects/UML/class_dialog.c : removed the 
433         caching of UMLClass::attributes_strings, operations_strings, 
434         templates_strings.
435         It was broken by the recent code restructuring in bug #303744 and
436         - if necessary at all - nowadays it should be done on the 
437         UMLAttribute, UMLOperation, UMLFormalParameter level anyway. 
438         A small, much needed simplification of the code.
440 2005-12-30  Hans Breuer  <hans@breuer.org>
442         * objects/UML/class.c : Patch from Dave Klotzbach
443         fixes crash bug #325151
445         * app/app_procs.c : add command line parameter --nonew to allow
446         avoiding the empty start-up diagram
447         Also give a hint on where the object-libs were missing.
448         Finally work around a misbehaviour upstreamm :
449         g_option_context_parse() returning FALSE but not setting error.
451         * app/commands.c app/app_diagram_tree.c app/interface.c :
452         Use gdk_pixbuf_render_pixmap_and_mask_for_colormap as suggested by
453         http://www.gtk.org/api/2.6/gdk/gdk-Pixbufs.html#gdk-pixbuf-render-pixmap-and-mask
454         
455         * lib/widgets.c : image file selection finally ported to the new
456         gtk file chooser. Fixes bug #309383
458 2005-12-28  Hans Breuer  <hans@breuer.org>
460         * app/commands.c(file_new_callback) : convert to filename encoding before
461         passing to new_diagram(), fixes bug #322400
462         
463         * app/interface.c(create_display_shell) : don't clip width on screen 
464         height - now commited. Also lazy creation of tooltips.
465         
466         * objects/UML/actor.c : Actor is finally resizable, fixes bug #66915
467         
468 2005-12-27  Hans Breuer  <hans@breuer.org>
470         * app/diapsft2renderer.c(draw_bezier_outline) : only call
471         FT_Outline_Decompose() when FT_GLYPH_FORMAT_OUTLINE.
472         Prefers no text output over crashing for bug #144212
474         * app/interface.c : removed superfluous call to dia_canvas_set_size().
475         Suggested by Roland Stigge, fixes bug #148149.
477         * plug-ins/dxf/dxf-import.c : don't complain too loud on Binary
478         DXF. It is not supported at all. Fixes bug #322101
480         * lib/geometry.c : removed the ifdefed GLIB_CHECK_VERSION(2,7,0)
481         define G_IMPLEMENT_INLINES. It breaks again with glib-2-8
484 2005-12-27  Hans Breuer  <hans@breuer.org>
486         * app/navigation.c : protect on_da_button_release_event() against being
487         called twice. Also only popdown the navigation window after the first 
488         draw (reusing nav->is_first_expose). Fixes bug #151696
489         
490         * app/interface.c(create_display_shell): don't clip width on screen height, 
491         but height
493         * lib/plug-ins.c : fixed typo in comment
494         
495         * lib/libdia.def : updated externals
496         * lib/makefile.msc : build debug.obj
498         * plug-ins/makefile.msc : building pgf in the right alphabetical order
499         * plug-ins/pgf/render_pgf.c : include <glib/gprintf.h>
500         
501 2005-12-08  Lars Clausen  <lars@raeder.dk>
503         * app/authors.h: 
504         * plug-ins/pgf/pgf.c: 
505         * plug-ins/pgf/render_pgf.[ch]: 
506         * plug-ins/pgf/Makefile.am: 
507         * plug-ins/Makefile.msc: 
508         * plug-ins/Makefile.am (SUBDIRS): 
509         * configure.in: Patch from Moritz Kirmse <momomaniac@gmail.com>: Add
510         support for PGF output for including in (La)TeX documents that
511         allows PDF generation.
513         * samples/render-test.dia: Added samples of text in different
514         sizes, standard fonts and styles with size markers.
516 2005-12-04  Lars Clausen  <lars@raeder.dk>
518         * lib/Makefile.am (gen_sources): Mark marshal files as generated.
519         (BUILT_SOURCES): Added marshal files.
521 2005-12-03  Lars Clausen  <lars@raeder.dk>
523         * lib/Makefile.am (diamarshal.c): Fix marshal rules to not talk
524         about $(srcdir) and confusing everybody.
526         * app/undo.c:
527         * lib/diagramdata.c:
528         * lib/diagramdata.h:
529         * lib/diamarshal.list:
530         * plug-ins/python/pydia-diagram.c:
531         * plug-ins/python/pydia-diagramdata.c:
532         * plug-ins/python/python-startup.py: Patch from David Johansson
533         <david.lgj@gmail.com>: Add signals emitted when objects are
534         inserted or removed.
536 2005-11-13  Lars Clausen  <lars@raeder.dk>
538         * app/display.c (update_zoom_status): Fix of bug #321387: Avoid
539         (small) buffer overflow by using g_strdup_printf instead of sprintf.
541 2005-11-09  Lars Clausen  <lars@raeder.dk>
543         * app/app_procs.c: 
544         * plug-ins/dxf/dxf-import.c (import_dxf): Don't use g_error except
545         when reaching the statement is a bug.  Using g_critical and exit() for
546         fatally wrong inputs.
548         * objects/UML/uml.c: 
549         * objects/UML/class.c: Patch from dklotzbach@foxvalley.net (dave
550         Klotzbach): Fixes template rendering and converts home-brew inline
551         doc format to javadoc.  Doesn't yet fix bug #320934, but turns it
552         into a dup.
554 2005-11-07  Lars Clausen  <lars@raeder.dk>
556         * lib/object.[ch]: Add 'enclosing box' as opposed to 'bounding
557         box' since several objects have problems of using bounding box in
558         different ways (see bug #300055).  For now, enclosing box ==
559         bounding box, but over time objects will learn to expand the
560         bounding box to include things only rendered interactively.
562         * app/modify_tool.c (modify_motion): Make sure highlight is reset
563         when moving between overlapping objects.
565         * app/interface.c (interface_toggle_mainpoint_magnetism): Redraw
566         diagram after toggling to make red X's come and go.
568         * lib/font.c: #ifdef'd out layout cache for bug #307320.  Define
569         it if you need faster rendering and aren't afraid of crashbugs:)
571         * lib/objchange.c: Bugfix from dklotzbach@foxvalley.net
572         (dave Klotzbach):  Fixes null pointer problems in free function.
574         * objects/UML/class.c
575         * objects/UML/class.h
576         * objects/UML/class_dialog.c: Patch from dklotzbach@foxvalley.net
577         (dave Klotzbach): Make UML comments conform to UML 1.0 standard
578         and allow multi-line comments. Ugly as hell, but standard.  Time
579         for a 'Strict UML' option?  Fixes bug #303744.
580         
581         * objects/UML/state.c: Patch from Peter Allin <peter@peca.dk>: Add
582         entry, exit and do descriptions to a state object.  Fixes bug #65434.
584 2005-11-03  Lars Clausen  <lars@raeder.dk>
586         * lib/arrows.c:
587         * lib/attributes.c:
588         * lib/autoroute.c:
589         * lib/bezier_conn.c:
590         * lib/boundingbox.c:
591         * lib/color.c:
592         * lib/connection.c:
593         * lib/connectionpoint.c:
594         * lib/dia_dirs.c:
595         * lib/dia_image.c:
596         * lib/dia_svg.c:
597         * lib/dia_xml.c:
598         * lib/diaarrowchooser.c:
599         * lib/diaerror.c:
600         * lib/diagdkrenderer.c:
601         * lib/diagramdata.c:
602         * lib/element.c:
603         * lib/object.c:
604         * lib/object.h:
605         * lib/parent.c:
606         Added documentation java-doc style.  Also a few trivial cleanups.
607         
608 2005-10-13  Lars Clausen  <lars@raeder.dk>
610         * lib/connectionpoint.h (DIR_ALL): Parentheses around operations
611         in macros.
613         * plug-ins/hpgl/hpgl.c (export_data): Correct error message.
615         * lib/Makefile.am:
616         * lib/debug.[ch]:
617         * lib/object.[ch]: 
618         * objects/UML/class.[ch]: 
619         * objects/UML/uml.h: 
620         * objects/UML/umlattribute.c: 
621         * objects/UML/umloperation.c: 
622         * objects/UML/class_dialog.c: 
623         Rework of the UML class attribute/operation handling.  Now doesn't
624         copy connection points into the dialog data, but only the "flat"
625         data.  As part of debugging made sanity check functionality.
626         Currently still dies when deleting an attribute/operation that has
627         a connection to it.
629 2005-10-09  Hans Breuer  <hans@breuer.org>
631         * lib/properties.h : prefer american spelling of colo(u)r for
632         user visible strings - i.e. to be translated ones.
633         * objects/UML/uml.c : it is Implementation. Together fixes bug #313929
634                                         ^
635         * po/*.po : updated (by 'make distcheck')
637 2005-10-09  Hans Breuer  <hans@breuer.org>
639         * app/display.c : allow !"toolbox on top" without restart.
640         (Chris Hellberg, bug #310702)
642 2005-10-09  Hans Breuer  <hans@breuer.org>
644         * lib/arrows.c : patch from Radek Krahl fixing the blanking
645         of two arrowheads, bug #310157
647 2005-10-08  Hans Breuer  <hans@breuer.org>
649         * plug-ins/python/group_props.py : show a descriptive text instead of an 
650         empty table if there are no common properties to change. Fixes bug #314432
652 2005-10-08  Hans Breuer  <hans@breuer.org>
654         * objects/UML/transition.c : inverted default direction of
655         the direction. Patch from Peter Allin, fixes bug #318049
656         [You possibly need to 'rm ~/.dia/defaults.dia' to have an effect]
658 2005-10-08  Hans Breuer  <hans@breuer.org>
660         * app/Makefile.am objects/standard/Makefile.am : match the
661         referenced icons to the needed. Make 'make distcheck' pass
662         and thus fixes bug #312152
664         * objects/standard/textobj.c : no C++ comments please!
666 2005-10-08  Hans Breuer  <hans@breuer.org>
668         * objects/standard/textobj.c : preserve the position set on create
669         [makes e.g. text positioning of diasvg_import.py work]
671         * plug-ins/python/diasvg_import.py : restrict what eval() can do
672         with strings from svg files. Fixes the arbitrary code execution from 
673         bug #317637
674         
675         * app/pixmaps/mainpoints-(on|off).png : new icons to toggle center point
676         magnetism. At least they are distinguishable from grid snapping.
677         * app/makefile.msc app/Makefile.am : use them
678         
679         * lib/focus.c(reset_foci) : also remove_focus(). This fixes bug #172851
680         I also can't reproduce bug #309044 anymore (on win32).
681         
682 2005-10-01  Lars Clausen  <lars@raeder.dk>
684         * lib/connectionpoint.h (DIR_ALL): Parentheses around | expressions.
686         * plug-ins/hpgl/hpgl.c (export_data): Listen to warnings and don't
687         pass FILE * as gchar *.
689         * lib/debug.[ch] (dia_assert_true): Debugging aids.
691 2005-09-29  Lars Clausen  <lars@raeder.dk>
693         * objects/UML/class.h: Enabling mainpoints for UML.
695         * objects/UML/class.c (umlclass_set_props): Make sure to always
696         realloc connection point list.
698 2005-09-26  Ahmad Riza H Nst  <rizahnst@id.gnome.org>
700         * configure.in: Added "id" in ALL_LINGUAS line.
702 2005-09-14  Lars Clausen  <lars@raeder.dk>
704         * objects/UML/class.c (umlclass_load): Set mainpoint obj upon
705         loading.  Fixes bug #315427.
707 2005-09-11  Hans Breuer  <hans@breuer.org>
709         * objects/standard/arc.c objects/standard/textobj.c : fix
710         C99isms, Dia is supposed to compile with C89 like msvc
712         * app/makefile.msc : use the wrong center-point-magnetism
713         icons for the win32 build, too.
715         * plug-ins/python/pydia-error.c : dont crash on C escape
716         sequences in the error string
717         * plug-ins/python/pydia-render.c : dont free filename twice
719         * plug-ins/python/dot.py : start of an exporter to DOT language
720         which can be processed by www.graphviz.org tools
722 2005-09-05  Iñaki Larrañaga  <dooteo@euskalgnu.org>
724         * configure.in: Added "doc/eu/Makefile" for Basque documentation.
726 2005-09-04  Iñaki Larrañaga  <dooteo@euskalgnu.org>
728         * configure.in: Added "eu" to ALL_LINGUAS.
730 2005-09-04  Lars Clausen  <lars@raeder.dk>
732         * lib/element.h (ELEMENT_COMMON_PROPERTIES): Remove object
733         dimensions frame to make ext_attributes work again.
735         * app/grid.c (snap_to_grid): Bugfix from Zhang Lin-bo
736         <zlb@lsec.cc.ac.cn>: Use dynamic grid setting from diagram, not
737         global prefs.
739         * objects/standard/textobj.c: Applied patch from Grégoire Dooms
740         <dooms info ucl ac be>: Add vertical alignment for standard text
741         object.  This should really be moved into lib/text.c and apply to
742         all text objects.
744 2005-09-03  Lars Clausen  <lars@raeder.dk>
746         * app/connectionpoint_ops.c (connectionpoint_draw): Only draw
747         mainpoint when snap-to-objects is not on.
749         * app/Makefile.am (ICON_PNG_PAIRS): 
750         Fake icons for snap-to-objects.
752         * app/commands.[ch]: 
753         * app/menus.c (menus_get_image_menubar): 
754         * app/display.[ch]: 
755         * app/interface.c (create_display_shell): 
756         * app/create_object.c (create_object_button_release): 
757         * app/disp_callbacks.c (ddisplay_drop_object): 
758         * app/object_ops.[ch]: 
759         * app/connectionpoint_ops.c (ddisplay_connect_selected): 
760         * app/modify_tool.c (modify_button_release): 
761         * app/display.[ch]: 
762         Togglable snap-to-objects, also doesn't snap when moving entire
763         object.  This should be more reasonable in practical use, and can
764         be turned off when you want to place your arrows more precisely.
766 2005-08-06  Hans Breuer  <hans@breuer.org>
768         * plug-ins/cairo/diacairo.c : increased #ifdef MESS:
769         With Gtk+-2.7.x cairo must be available so the HAVE_CAIRO case
770         becomes even more ugly when the user has choosen *not* to build 
771         the diacairo plug-in. If noone can come up with a very convincing 
772         reason why it has to be done this way I'll probably go back to 
773         my original dont-build-at-all approach when this breaks the 
774         next time.
776 2005-08-02  Lars Clausen  <lars@raeder.dk>
778         * objects/standard/arc.c: Patch from Grégoire Dooms
779         <dooms@info.ucl.ac.be>: An almost perfect arc autogap
780         implementation.  "There is still a small bug when the non
781         connected end of the arc is very close to the border of the
782         connected object. I think this is due to rounding errors in the
783         code for SHIFT-move handle which is reused to trim the arc in
784         autogap. Also it is not yet possible to have a startgap and an
785         endgap from/to the same central CP."
787 2005-07-31  Hans Breuer  <hans@breuer.org>
789         * plug-ins/cairo/diacairo.c congigure.in : dont wait any 
790         longer for distributions official packages - depend 
791         on cairo 0.6.0 - fixes bug #307144
793 2005-07-20  Hans Breuer  <hans@breuer.org>
795         * lib/element.h : remove stray NULL in ELEMENT_COMMON_PROPERTIES
796         which must match PropDescription, that is make it at least compile.
798 2005-07-19  Hans Breuer  <hans@breuer.org>
800         * app/diagram.c(new_diagram) : what comes from g_object_new()
801         MUST NOT be g_free()'d 
803         * lib/message.h : added dia_message_filename() here as well.
804         Mainly to not touch all files using. They *all* where using
805         lib/message.h already! Maybe the implemantation should be moved
806         to message.c as well cause the function has *nothing* to do
807         with dynamic filename resolving. It is a wrapper around
808         g_display_filename() mostly (only?) used for messages ...
809         * lib/dia_dirs.c(dia_message_filename) : fix C99ism
811 2005-07-18  Lars Clausen  <larsrc@raeder.dk>
813         * objects/EML/instantiation.c (instantiation_load): 
814         * objects/EML/interaction-ortho.c (interaction_ortho_type) 
815         * objects/ER/participation.c (participation_type): 
816         * objects/FS/flow-ortho.c (orthflow_type): 
817         * objects/GRAFCET/vector.c (arc_load): 
818         * objects/standard/zigzagline.c (zigzagline_type): 
819         * objects/UML/transition.c (transition_load): 
820         * objects/UML/realizes.c (realizes_load): 
821         * objects/UML/dependency.c (dependency_load): 
822         * objects/UML/generalization.c (generalization_type): 
823         * objects/UML/association.c (association_type): 
824         * objects/UML/component_feature.c (compfeat_load): 
825         Make autorouting deafult on except for old diagrams.
827         * plug-ins/cairo/diacairo.c (export_data): 
828         * plug-ins/cgm/cgm.c (export_cgm): 
829         * plug-ins/dxf/dxf-export.c (export_dxf): 
830         * plug-ins/dxf/dxf-import.c: 
831         * plug-ins/hpgl/hpgl.c (export_data): 
832         * plug-ins/metapost/render_metapost.c: 
833         * plug-ins/pixbuf/pixbuf.c: 
834         * plug-ins/pstricks/render_pstricks.c: 
835         * plug-ins/python/pydia-render.c: 
836         * plug-ins/shape/shape-export.c: 
837         * plug-ins/svg/render_svg.c: 
838         * plug-ins/svg/svg-import.c: 
839         * plug-ins/wpg/wpg.c 
840         * plug-ins/xfig/xfig-export.c: 
841         * plug-ins/xfig/xfig-import.c: 
842         * plug-ins/xslt/xslt.c: Use dia_message_filename to ensure legal
843         UTF-8 in message boxes.
845 2005-07-18  Lars Clausen  <lars@raeder.dk>
847         * lib/element.h (ELEMENT_COMMON_PROPERTIES): Allow Element objects
848         to have their dimensions specified in properties.  Still needs to
849         have proper update when setting properties cause constraint changes.
851         * app/preferences.c (update_floating_toolbox): Allow
852         toolbox_on_top setting to happen at once.
854         * app/diagram.c
855         * app/filedlg.c
856         * app/load_save.c
857         * app/render_eps.c
858         * app/sheets_dialog_callbacks.c
859         * lib/dia_dirs.c
860         * lib/dia_dirs.h
861         * lib/dia_xml.c
862         * lib/diarenderer.c
863         * lib/element.h
864         * lib/object_defaults.c:
865         Patch from lav@altlinux.ru (Vitaly Lipatov): Make filenames safe
866         for displaying in messages - better than crashing!  Mostly fixes
867         #310087.
868         
869         * objects/UML/class.c:  Save normal_font_height under the same
870         name it gets loaded as.  Fixes bug #310515.
872         * doc/en/authors.xml
873         * doc/en/usage-customization.xml
874         * doc/en/usage-objects-special.xml
875         * doc/en/usage-objects.xml: Some documentation fixes.  Fixes bug
876         #308315.
878 2005-07-17  Lars Clausen  <lars@raeder.dk>
880         * doc/en/usage-customization.xml: 
881         * doc/en/usage-objects.xml: 
882         * doc/en/authors.xml: 
883         * doc/en/usage-objects-special.xml: Applied patch from
884         stigge@antcom.de (Roland Stigge):  Diverse typos and
885         misencodings.  Fixes bug #308315.
887         * objects/UML/class.c (umlclass_save): Patch from
888         i.pilcher@comcast.net: Save normal font height under correct name
889         to reload it.  Fixes bug #310515.
891 2005-07-10  Hans Breuer  <hans@breuer.org>
893         * app/connectionpoint_ops.c app/object_ops.c : make the
894         'whole object' connection point only center point again. 
895         That is: it is visible and far less magnetic. Only the
896         line gap handling make it special. For me this probably
897         fixes bug #303301
899         * lib/neworth_conn.c : apply the same as for bug #173031.
900         This OrthConn fork got broken as well. Fixes bug #309381
902         * app/makefile.msc objects/makefile.msc : adapt to icon changes
904         * app/interface.c app/diagram_tree.c : a char** is still not 
905         a char* and the win32 build is configured to error on 
906         sloppiness like this
908         * plug-ins/wmf/wmf.cpp : fix typo in preprocessor condition
910 2005-07-10  Hans Breuer  <hans@breuer.org>
912         [
913           Take part in the toolbox icon redesign context! If you want to 
914           make them really prettier, please keep the following in mind :
915           - the size *must* be 22x22 otherwise button reflow will get broken.
916             Or you need to change about 800 icons at once.
917           - one important part of Dia are control points, so maybe the icons
918             should reflect that. (IMO gathering random icons form other 
919             apps wont work)
920           - the icons should at least look consistent in their group
921         ]
923         * app/Makefile.am : use 22x22 variants mostly lent from The GIMP
924         * app/pixmaps/*.png : added arrow-22.png scroll-22.png zoom-22.png
926         * objects/standard/*.c : get rid of xpm includes to avoid mixing icon sets
927         * objects/standard/pixmap/* : added arc.png beziergon.png 
928         bezierline.png box.png ellipse.png image.png line.png polygon.png 
929         polyline.png text.png zigzagline.png
930         * objects/standard/Makefile.am : use the new icon set including
931         text and arc ...
933         * app/interface.c : remove the "will probably crash" debug spew
935 2005-07-09  Lars Clausen  <lars@raeder.dk>
937         * objects/standard/pixmaps/*.png:
938         * objects/standard/Makefile.am:
939         * objects/standard/*.c:
940         * app/interface.c: 
941         * app/diagram_tree.c (create_object_pixmap): Fix icon loading. use
942         new icons. [Slightly belated entry]
944 2005-07-03  Hans Breuer  <hans@breuer.org>
946         * app/diagram_tree.c : dont leak display name
947         * app/app_procs.c : dont leak GOptionContext
948         * app/prop_widgets.c(frame_beginprop_get_widget) : 
949         Gtk api still not eating strings ...
951         * objects/UML/class.c() : don't load properties once more 
952         which are already loaded by StdProps. In case of strings 
953         (data_string) it has even produced leaks.
955         * app/paginate_psprint.c app/diagram.[hc] : the last
956         of the related dialogs is gone and with it the 
957         misconception of destroying widgets from 
958         diagram::finalize()
959         * app/display.c : ensure the diagram is still threre
960         when we remove the display from it's list
962 2005-07-01  Hans Breuer  <hans@breuer.org>
964         * lib/widgets.c(dia_color_selector_more_callback): dont 
965         free old_color twice
967         * plug-ins/wmf/wmf.cpp : finally added enahnced meta file
968         option. Thus linestyles can be preserved on export - at 
969         least on NT based systems.
971         * NEWS : clarify the wmf outside of windows issue
973         * app/modify_too.c : fix C99ism
975         * objects/standard/arc.c : debug spew optional at compile time
977 2005-06-26  Hans Breuer  <hans@breuer.org>
979         [ Cyrille would call it: warningectomy :-]
981         * lib/font.c app/create_object.c : `...' might be used uninitialized
982         in this function. Yes they were.
983         * app/modify_tool.c : modify_tool.c:610: warning: `obj' might be used 
984         uninitialized in this function. Yes it was with textedit_activate_object()
985         Also some static correctness.
986         * lib/diarenderer.c:678: warning: no previous prototype for 
987         `calculate_min_radius'. Made static.
988         * lib/dia_svg.c : ptr is a gchar *
989         * dia_xml.c(data_point,data_rectangle) : gchar *str for parsing
990         * lib/prop_text.c(multistringprop_get_widget) : use G_CALLBACK
991         * app/app_procs.c : confirm warning and make dump_dependencies() static
992         * app/autosave.c : #if 0'd old stuff
993         * app/display.c : GTK_CHECK_MENU_ITEM() for snap_to_grid
994         * 
995         * lib/text.c lib/font.c objects/standard/line.c object/UML/class.c
996           objects/Istar/goal.c objects/standard/bezier.c objects/standard/beziergon.c
997           plug-ins/cgm/cgm.c plug-ins/cairo/diacairo.c plug-ins/hpgl/hpgl.c
998           plug-ins/wpg/wpg.c plug-ins/svg/svg-import.c plug-ins/shape/shape-export.c
999           plug-ins/dxf/dxf-export.c plug-ins/gprint/diagnomeprintrenderer.c
1000           plug-ins/gprint/diagnomeprint.c  plug-ins/xfig/xfig-export.c
1001           app/diagram_tree_menu_callbacks.c app/recent_files.c app/undo.c app/menus.c
1002           app/diapsrenderer.c app/diagram.c app/disp_callback.c : 
1003         removed unused variables and functions
1004         * objects/UML/umlattribute.c objects/UML/umloperation.c 
1005           objects/UML/umlparameter.c objects/UML/umlformalparameter.c : 
1006         neither 'missing braces around initializer' nor 'initialization from 
1007         incompatible pointer type'
1008         * objects/UML/class_dialog.c : more static
1009         * app/interface.c : static and almost const correctness and some
1010         less unitialized variables.
1011         * app/diapsft2renderer.c : use (int) casts like the original 
1012         (http://imagic.weizmann.ac.il/~dov/freesw/paps/ v0.4) does
1013         * app/render_gdk.c: stop assignment from incompatible pointer type,
1014         make member functions match the prototype.
1015         * app/render_libart.c : Dito. Also stop caching the copy_gc in
1016         a static variable. Otherwise it finally leaks and also may cause 
1017         BadMatch with changing windows
1018         => warning count down from about 250 to about 60, one or two hand full 
1019            crash bugs less.
1021 2005-06-26  Hans Breuer  <hans@breuer.org>
1023         * lib/libdia.def : added dia_font_get_description, missing
1024         from my last commit
1026         * app/app_procs.c : use png_get_header_ver(NULL), that is:
1027         prefer function call over exported variable to get the 
1028         runtime version of libpng
1030 2005-06-19  Hans Breuer  <hans@breuer.org>
1032         * plug-ins/python/Makefile.am : added codegen.py to EXTRA_DIST
1033         as suggested by Roland Stigge, bug #308310
1035 2005-06-19  Hans Breuer  <hans@breuer.org>
1037         * app/filedlg.c(file_export_callback) : oops, gtk_widget_show() wasn't 
1038         called anymore
1040 2005-06-18  Hans Breuer  <hans@breuer.org>
1042         * NEWS : mention new file dialog
1044         [plugged remaining leaks from bug #142669]
1045         * lib/prop_attr.c(fontprop_free) : not only unref the font
1046         but free the property itself, too. 
1047         * app/diagram_tree.c(create_diagram_children): remember the
1048         original list start to not only free the last element 
1050         * lib/prop_sdarray.c:64: warning: `arrayprop_free' defined 
1051         but not used. Here it meant a potentially huge leak.
1053 2005-06-18  Hans Breuer  <hans@breuer.org>
1055         * po/POTFILES.in : removed app/diaconv.c which isn't referenced 
1056         by app/Makefile.am anymore either. Should finally fix 'make distcheck' 
1057         for others, too. ( Roland Stigge, bug #144527 )
1059 2005-06-18  Hans Breuer  <hans@breuer.org>
1061         * plug-ins/wmf/Makefile.am : prevent installation. It 
1062         doesn't do anything useful on *NIX and even seems to be
1063         linked wrong by gcc (or me;). Fixes bug #172830 
1065 2005-06-18  Hans Breuer  <hans@breuer.org>
1067         * app/textedit.[hc] lib/arrows.[hc] plug-ins/xslt/xslt.h
1068           plug-ins/xslt/xsltdialog.c plug-ins/xslt/xslt.c : fix for sloppiness
1069         in function declarations. 'f();' for a function without parameters is
1070         a C++ism. Though I can't get any of my compilers to warn about it.
1071         Finally fixes bug #142663.
1073 2005-06-18  Hans Breuer  <hans@breuer.org>
1075         * app/textedit.[hc] lib/arrows.[hc] plug-ins/xslt/xslt.h
1076           plug-ins/xslt/xsltdialog.c plug-ins/xslt/xslt.c : fix for sloppiness
1077         in function declarations. 'f();' for a function without parameters is
1078         a C++ism. Though I can't get any of my compilers to warn about it.
1079         Finally fixes the rest of bug #142663.
1081 2005-06-18  Hans Breuer  <hans@breuer.org>
1083         * lib/font.h lib/font.c : _DiaFont is now private to prepare bigger 
1084         changes but doesn't hurt anyway. See bug #162034 
1085         * app/diapsft2renderer.c app/modify_tool.c 
1086           plug-ins/gprint/diagnomeprintrenderer.c : use dia_font_get_description() 
1087         instead of messing with internals
1088         * app/display.c : give interactive renderers more begin/end render. 
1089         It is guaranteed that the scale wont change between these.
1091 2005-06-18  Hans Breuer  <hans@breuer.org>
1093         * app/app_procs.c : const correctness for stderr_message_internal
1094         * app/dia-props.c : gtk_toggle_*() functions want GTK_TOGGLE_BUTTON 
1095         not GTK_CHECK_BUTTON, also some G_CALLBACK casts
1096         * app/disp_callbacks.c : don't dereference the to the function call
1097         when the function pointer in meant to be checked against 0
1098         * app/interface.c : warning fixes by using correct types
1099         * app/modify_tool.c : describe_props() members returns const pointer
1100         * app/render_libart.c : removed most of the render function again.
1101         They happily live in lib/dialibartrenderer.c since almost 3 years
1102         http://cvs.gnome.org/viewcvs/dia/app/render_libart.c?r1=1.31&r2=1.32
1103         * lib/dia_dirs.c : dia_get_canonical_path() const correctness
1104         * lib/dia_svg.c lib/dia_xml.c : some char to xmlChar changes
1105         * lib/dialibartrenderer.c(set_line_join): actually set the join_style
1106         instead of the cap_style. Don't initialize Art* enums with GDK_* constants.
1107         Both mentioned in bug #159814 and not warned by most other compilers.
1108         * lib/diagtkfontsel.c : at least the watcom compiler did not like the
1109         trailing colon in the GtkTypeInfo initialization
1110         * lib/properties.c : avoid redefinition of LIBDIA_COMPILATION
1111         * lib/dialinechooser.c lib/diagdkrenderer.c : there may be a difference 
1112         between char and gint8
1113         * plug-ins/metapost/render_metapost.c : replace invalid escape \% with %%
1114         * plug-ins/wpg/wpg.c : consitently use guint8
1115         * config.h.win32 : change HAVE_* defines to 1 not empty, avoids 
1116         redefinition warnings for python and xslt plug-ins
1118 2005-06-18  Hans Breuer  <hans@breuer.org>
1120         * lib/diagramdata.c : really get rid of diagram_data_destroy 
1121         and new_diagram_data [ no previous prototype for `...' is either
1122         a sign of missing static or of a function to vanish :-]
1124         * lib/geometry.c : apparently the G_INLINE stuff was working only
1125         with particular GLib version(s), glib-2.6.4 does not. Conditionally
1126         reverting to the old mecanics.
1128 2005-06-17  Hans Breuer  <hans@breuer.org>
1130         * plug-ins/python/pydia-*.c : include order tweaking to 
1131         get rid of redefinition warnings. Ensure to include <Python.h> 
1132         before any 'system' header, some dragged in by glib.h
1133         * plug-ins/python/pydia-diagramdata.c(PyDiaDiagramData_Str)
1134           pydia-properties.c(PyDiaProperties_Str)
1135           plug-ins/python/pydia-property.c(PyDiaProperty_Str) : 
1136         use %p to format pointers
1137         * plug-ins/python/pydia-geometry.c(PyDiaArrow_Str) : 
1138         dont cast to float for %d
1139         * plug-ins/python/pydia-handle.c(PyDiaHandle_Connect) : 
1140         use correct pointer type
1141         * plug-ins/python/pydia-image.c(PyDiaImage_Str) :
1142         dont discard qualifier aka dont free const strings
1143         * plug-ins/python/pydia-properties.c : casts to PyCFunction
1144         * plug-ins/python/pydia-property.c : removed unused function,
1145         make ensure_quarks() static
1146         * plug-ins/python/pydia-render.c : removed unused vars, use
1147         the correct signature for begin_render
1148         (dia_py_renderer_finalize): pluged a leak
1149         => except -fno-strict-aliasing there is no warning left in 
1150            all of PyDia
1152 2005-06-12  Hans Breuer  <hans@breuer.org>
1154         * app/filedlg.c : really fix the file extension mismatch on export dialog
1155         by working around some gtk+-2.6 behaviour (bug #307378). Fixes bug #305850
1157 2005-06-11  Hans Breuer  <hans@breuer.org>
1159         * configure.in config.h.win32.h : mark as +cvs (should have been 
1160         done directly after the 0.94 release)
1161         * NEWS : attempt to summarize 2/3 year of development
1163         [ 
1164           WANT_AUTOMAKE=1.7 ./autogen.sh && ./conifugre  --enable-maintatiner-mode && make distcheck
1165           finally passes again
1166         ]
1167         * app/app_procs.c : force use of POPT for the GNOME case, otherwise
1168         app/run_dia.sh --credits > THANKS => Segmentation fault
1169         * app/pixmaps/Makefile.am : added group.png and ungroup.png
1170         * Makefile.am : work around scrollkeeper bug
1171         * doc/en/Makefile.am : explicit list DISTCLEANFILES = dia.1
1173         * po/*.po : 'noise' produced by make dist
1175 2005-06-10  Hans Breuer  <hans@breuer.org>
1177         * lib/properties.h : define PROP_STD_SHOW_BACKGROUND_OPTIONAL ...
1178         * objects/custom/custom_object.c : ... and use it to avoid 
1179         complains about missing attribute "show_background". It is 
1180         safe to leave this uninitialized. Same for flip_* and "text",
1181         the latter with comment cause it usually is *not* safe to do 
1182         it for the general case. Fixes remaining issues with bug #169006
1183         which where caused by an incompatible change in the shape file.
1185         * app/commands.c : use "gnome-open" instead of "netscape" as
1186         fallback for $BROWSER not set. Still not optimal but better
1187         to try some common desktop tool than an obsolete browser;)
1188         Fixes bug #307142. Also some whitespace changes.
1190         * app/interface.c(toolbox_delete): avoid random return value.
1191         Patch from Stanislav Brabec, fixes bug #307143
1193         * shapes/Cisco/Makefile.am : added a bunch of new shapes/pngs.
1194         Patch from Torben H. Nielsen (bugzilla is still the preferred way)
1195         http://mail.gnome.org/archives/dia-list/2005-June/msg00015.html
1197 2005-06-06  Lars Clausen  <lars@raeder.dk>
1199         * app/diagram.c: 
1200         * app/modify_tool.c:
1201         * app/textedit.[ch]:
1202         Better support for text edit highlight.
1204         * app/connectionpoint_ops.c (connectionpoint_draw): Stop making
1205         the mainpoint extra visible.
1207 2005-06-02  Lars Clausen  <lars@raeder.dk>
1209         * objects/UML/class_dialog.c:
1210         * objects/UML/class.[ch]:
1211         The final fixes for mainpoint on UML Class.
1213         * sheets/cisco*.in, shapes/Cisco/*: New set of Cisco icons from
1214         Ian Redfern, now in color and with mainpoints!  Very pretty!
1216 2005-06-02  Hans Breuer  <hans@breuer.org>
1218         * objects/UML/class_dialog.c : the memory managment with respect to
1219         attribute/operation connections was/is a mess. But it should work again ;)
1221         * samples/UMLPackages.dia samples/Composite-Action.dia : some diagrams
1222         directly from the UML Specification - to show the power of Dia and 
1223         some weakness. Watch the bug reports following ;)
1225 2005-06-01  Hans Breuer  <hans@breuer.org>
1227         * app/dia.def : export diagram_update_connections_object
1228         * plug-ins/python/pydia-diagram.c : wrap diagram_update_connections_object
1229         Patch from Paolo Bernardi, together with the property setting closes bug #300572
1231 2005-06-01  Hans Breuer  <hans@breuer.org>
1233         * plug-ins/python/pydia-property.c : complete refactoring of property 
1234         setting, now also supports setting of property arrays
1235         * plug-ins/python/pydia-*.c plug-ins/python/diamodule.c : adapt to 
1236         Python namespacing conventions
1237         * plug-ins/python/pydiadoc.py : use the stuff above to produce more 
1238         complete UML Classes with attributes and operations
1239         * plug-ins/python/otypes.py : now also show the properties of the objects
1241         * objects/UML/class.c(umlclass_set_props) : need to update object::connections
1242         (pointers), they might be changed with attributes and opertions changing
1244         * plug-ins/python/pydia-property.c : PointArray and BezPointArray property getters
1245         were broken. Apparently noone used them before.
1247         * plug-ins/python/pydia-diagram.c plug-ins/python/pydia-diagramdata.c : moved methods
1248         which only operate on the DiagramData to the latter file. To get on the DiagramData
1249         object of a Diagram use diagram.data. [In C the Diagram is a subclass of DiagramData, 
1250         but I don't know how to reflect that in the bindings. And for backward compatibility 
1251         there also is the 'data' member.]
1253         * objects/UML/uml.c objects/UML/umlattribute.c objects/UML/umloperation.c 
1254           objects/UML/umlparameter.c : describe enums with PropEnumData
1256         * app/commands.c(view_show_all_callback) : if there is something selected show 
1257         that instead of all exisiting objects. If there is noting or all selcted it 
1258         "Show all" shows the old behaviour.
1260         * lib/parent.[hc] lib/object.c app/disp_callbacks.c app/diagram.c : plug some memory 
1261         leaks and use less allocations caused by misguided API. Also some adaption to common 
1262         coding style
1264         * objects/UML/class.h : add some comment about the brokeness of UML_MAINPOINT
1266         * app/makefile.msc : added new icons and build as console app while 
1267         not releaseing to the general public
1269         * objects/custom/shape_info.c : use g_strdup("") for a field to be g_free()'d
1270         and keep a refernce when storing the a font from style="" in s.font. This should
1271         finally allow to have shapes with fully predefined text (and no 'random' crashes)
1273         * plug-ins/gprint/diagnomeprint.c : disable GNOME_SVG until I've found a program
1274         capable to interpret it's output
1276 2005-05-31  Lars Clausen  <lars@raeder.dk>
1278         * sheets/ER.sheet.in: No more xpms referenced in sheets. Fixes bug #151811.
1280 2005-05-30  Pawan Chitrakar  <pawan@nplinux.org>
1282         * configure.in: Added ne in ALL_LINGUAS
1284 2005-05-24  Lars Clausen  <lars@raeder.dk>
1286         * lib/font.c: Change to make DIA_FONT_ITALIC turn into -Oblique PS
1287         fonts for legacy fonts.  They don't have DIA_FONT_OBLIQUE setting
1288         anyway. 
1290 2005-05-23  Lars Clausen  <lars@raeder.dk>
1292         * lib/paper.c: Added Ledger size paper.  Fixes bug #305254.
1294 2005-05-21  Lars Clausen  <lars@raeder.dk>
1296         * lib/diaarrowchooser.c: 
1297         * lib/arrows.[ch]: Patch from Radek Krahl <ptasz3k@o2.pl>: Add
1298         'infinite' line (three dots) arrowhead.  Fix line length in arrow
1299         preview.  And fix typo.  Fixes bug #303904. 
1301 2005-05-20  Hans Breuer  <hans@breuer.org>
1303         * lib/text.c : advice from valgrind and data_string() review:
1304         neither g_free() memory on the stack
1305         * objects/GRAFCET/boolequation.c : ... nor const strings 
1306         * objects/UML/association.c:934 : definitely lost. Even g_strdup("")
1307         wants to be freed
1309         * app/diagram.c : a g_object_ref() following g_object_new() is almost
1310         always wrong. Why would we need two refernces?
1311         * app/app_procs.c : same here.If it crashes later on someone is dropping
1312         refernces he does not own, and *that* needs to be fixed. This is reverting
1313         "Remember to ref g_object_new'd object" (bug #170972) below, which 
1314         causes more harm (leaking, hiding bugs elsewhere) than good.
1316         * app/app_procs.c lib/diagramdata.[ch] lib/libdia.def : get rid of
1317         diagramdata_destroy() which was only a wrapper to g_object_unref()
1319         * app/display.c(selection_changed) : don't g_strdup_printf() without
1320         g_free() later /or/ a C++ comment of me mostly denotes an error
1322         * app/diagram.c : diagram_parent_sort_cb make signature match GCompareFunc
1324         * lib/widget.c : dia_dynamic_menu_select_entry() cleanup. If it takes a
1325         const gchar* entry it must not eat memory, added a lot of g_free() and
1326         some const. Fixed a bunch - i.e. *all* - warnings.
1327         * lib/widget.h : removed unused/deleted functions
1329         * app/layer_dialog.c(dia_layer_widget_connectable_toggled) : trying to
1330         avoid 'Invalid write of size 4', no luck yet
1332 2005-05-19  Lars Clausen  <lars@raeder.dk>
1334         * objects/UML/class.c: 
1335         * objects/UML/class.h: 
1336         * objects/UML/class_dialog.c: Work on getting a proper mainpoint
1337         for uml class object.  #ifdef'd out right now.
1339 2005-05-18  Lars Clausen  <lars@raeder.dk>
1341         * objects/standard/line.c: Make line adjust its actual endpoints
1342         for autogap -- looks and feels better.
1344         * objects/standard/arc.c: 
1345         * lib/geometry.h: 
1346         * app/modify_tool.c: Patch from Grégoire Dooms
1347         <dooms@info.ucl.ac.be>:  First stab at autogap for arcs, and
1348         shifted arc angle movement.
1350 2005-05-16  Hans Breuer  <hans@breuer.org>
1352         * lib/widget.c : variable declarations need to be at the start of a block,
1353         at least as we are not using C++ or C99
1355         * plug-ins/python/pydia-property.c : implment the read part for Property
1356         arrays - aka. umlclass.properties["operations"], umlclass.properties["attributes"]
1357         They are working quite well as can be seen with export-object.py
1359         * plug-ins/python/codegen.py : prove it once more with the generation of C++
1360         or Python code from an UML Diagram. Simply save as .py or .cxx ...
1361         * plug-ins/python/Makefile.am : install it
1363 2005-05-16  Lars Clausen  <lars@raeder.dk>
1365         * app/pixmaps/{un}group.png: 
1366         * app/Makefile.am (ICON_PNG_PAIRS): 
1367         * app/menus.c (display_menu_items): 
1368         New icons for grou/ungroup finally added, closing bug #105519.
1370         * app/Makefile.am: Dependencies for pixmaps.
1372         * app/pixmaps/connectable.png: An icon that actually makes sense
1373         for switching connectability.
1375 2005-05-15  Hans Breuer  <hans@breuer.org>
1377         * lib/group.c object/UML/classicon.c : fixed leftovers of
1378         'Adding connectionpoint to _move_handle
1380         * lib/widgets.c : gtk+ *NEVER* eats strings, so gtk_something(widget, g_strdup())
1381         is *ALWAYS* a memory leak. Plug some more.
1383         [
1384          In preparation to make UML operations/attributes/parameters setable by Python
1385          UML class became more StdProp conformant. A nice experience to be the first 
1386          to use the PROP_TYPE_DARRAY stuff about four years after it was written ;-)  
1387         ]
1388         * objects/UML/umlattribute.c objects/UML/umloperation.c 
1389           objects/UML/umlparameter.c objects/UML/umlformalparameter.c : (new files) 
1390         split from objects/UML/uml.c and made StdProp aware
1391         * objects/UML/class.c : finally make "attributes", "operations", "templates"
1392         <template parameters> first class StdProps citizens.
1393         (umlclass_load) : removed hand-written parsing for the above, it is all done
1394         by object_load_props() now. The old write code is still in place, so be very
1395         careful when changing something - at the moment load/save it is 100% compatible 
1396         as it needs to be.
1397         * objects/UML/uml.c : now just type registration here, as it is supposed to be
1398         * objects/UML/Makefile.am objects/makefile.msc : build the new files
1400         * lib/properties.h(PropDescCommonAreaExtra) : need a place to store the 
1401         in-record offsets
1402         * lib/prop_sdarray.c : made the DARRAY case work, SARRAY still untested
1403         (darray_prop_adjust_object_records) : don't loop forever
1404         (whole file) : use the new (working) way to get on the second level offsets.
1405         Also resolved some abbreviations, it is complicated enough without them ;)
1406         * lib/proplist.c : even complete list contents may be optional
1408 2005-05-15  Hans Breuer  <hans@breuer.org>
1410         * lib/bezier_conn.c(remove_handles) : don't try to remove 
1411         non-exisitng handles (patch from Radek Krahl, bug #302273)
1413 2005-05-15  Hans Breuer  <hans@breuer.org>
1415         * plug-ins/metapost/render_metapost.c : locale independent output
1416         (Radek Krahl, bug #301866)
1418 2005-05-12  Lars Clausen  <lars@raeder.dk>
1420         * shapes/Cisco/*.{shape,png}:
1421         * sheets/cisco*.sheet.in:
1422         Updated with color icons from Ian Redfern, closing bug #303889.
1423         Added automatic midpoints, not attempt at adjusting them.
1425 2005-05-11  Lars Clausen  <lars@raeder.dk>
1427         * many shapes:  Use mid of bounding box for midpoint, better than
1428         mid of connection points generally.
1430 2005-05-10  Lars Clausen  <lars@raeder.dk>
1432         * lib/widgets.c: Decided on one way for the ratio thing in arrow
1433         size selector:  Fixed ratio is on by default and keeps the sizes
1434         at the given ratio, but doesn't clamp them to be the same.  Fixes
1435         bug #302861.
1437         * lib/font.c: Fix for bug #303695: Allow more than one entry of
1438         each legacy name, thereby correctly encoding bold and italic of
1439         the three main fonts.  Also use | rather than || to combine slant
1440         and weight, so matching works.  Had to remove binary search for
1441         new font name, but the list is short enough it's not a problem.
1443 2005-05-09  Lars Clausen  <lars@raeder.dk>
1445         * lib/autoroute.c (autoroute_layout_orthconn): Remove debugging info.
1447 2005-05-08  Hans Breuer  <hans@breuer.org>
1449         * objects/UML/class.c : Reverted to have no center point.
1450         At first it looked as if there was only the bug to not increase
1451         class.h:UMLCLASS_CONNECTIONPOINTS. But the UMLClass has 
1452         potentially much more dynamic connection points (to the left
1453         and right of every attribute/operation). Now simply adding one
1454         between see static and dynamic will screw up any existing diagram
1455         which makes use of the dynamic connection points. The would all
1456         be connected with an off-by-one error. I have no idea how to
1457         code around that. But breaking backward compatibility is no 
1458         option here. Does not completely fix bug #303301 ...
1459         
1460         * lib/widget.c(dia_font_selector_set_font): actually set the options 
1461         menu state. So we are not any longer resetting the font style on Apply.
1462         Use "UML - Class" dialog as stress text example.
1464         * app/command.c : some people insist to close diagrams already
1465         closed using tear-off menus. Maybe we should add a dialog 
1466         "Do you want to call Dr. Watson now?". If there is no diagram
1467         to close anymore just do nothing, fixes bug #303221
1468         * app/display.c(ddisplay_close) : use g_return_if_fail(ddisp != NULL);
1469         Calling this with no display to close is a pathological case.
1471         * app/diagram.[hc] : moved object.h and other DiaObject stuff
1472         to the implementation in preparation of Big Things(tm)
1474         * app/interface.c : less warnings and make it compile. strncmp()
1475         does not take a char**, neither does gdk_pixbuf_new_from_inline().
1477         * objects/makefile.msc plug-ins/makefile.msc : less output
1479 2005-05-08  Lars Clausen  <lars@raeder.dk>
1481         * lib/orth_conn.c (orthconn_init): The right place to set the
1482         default autorouting value.  Fixes bug #303291.
1484         * app/display.c (ddisplay_close): Patch from Radek Krahl
1485         (ptasz3k@o2.pl):  Fix crash when using from detached menu
1486         (#303221)
1487         
1488 2005-05-07  Lars Clausen  <lars@raeder.dk>
1490         * lib/orth_conn.c (orthconn_load): Autorouting should default to
1491         off in diagrams that don't have it explicitly.  All diagrams
1492         should be explicit about it.
1494 2005-05-06  Hans Breuer  <hans@breuer.org>
1496         * app/samples/Self/*.dia : some UML diagrams describing Dia's
1497         inner working (or it's future;)
1499 2005-04-26  Lars Clausen  <lars@raeder.dk>
1501         * app/connectionpoint_ops.c (connectionpoint_draw): Temporary
1502         change to display of mainpoint to be easier to debug autogenerated
1503         ones. 
1505 2005-04-23  Hans Breuer  <hans@breuer.org>
1507         * plug-ins/python/diamodule.c plug-ins/python/pydia-object.h
1508           plug-ins/python/pydia-properties.h : use lib/ prefix for
1509         Dia internal headers with too common names (fixes bug #173061)
1511         * app/display.c : stop special casing the first display of
1512         a diagram. Every display now has it's own refernce. The initial
1513         reference gets dropped when there is no display anymore. See
1514         diagram_remove_ddisplay(). Fixes bug #300744.
1516         * app/diapsft2renderer.c : locale independent output
1517         (Radek Krahl, bug #300847)
1518         * app/paginate_psprint.c :  fixing use of setlocale() calls
1519         (Radek Krahl, bug #300886)
1520         * plug-ins/shape/shape-export.c : fixing use of setlocale() calls
1521         (Radek Krahl, bug #300889)
1523         * objects/UML/class.c : fix another crash with the line 
1524         wrapping code (Gabor Simon, bug #160865)
1526         * plug-ins/cairo/diacairo.c : image rendering had an endianess 
1527         issue (or is this working around a libpixman bug?;)
1529 2005-04-21  Lars Clausen  <lars@raeder.dk>
1531         * lib/polyshape.c (polyshape_update_data): Fixed numpoint off-by-one.
1533         * shapes/**/*.shape: All shapes now have midpoints.
1535 2005-04-20  Lars Clausen  <lars@raeder.dk>
1537         * lib/orth_conn.c (orthconn_update_data): Patch from ptasz3k@o2.pl
1538         (Radek Krahl): Make sure there's enough handles for the line.
1539         Fixes bug #173031.
1541         * objects/UML/node.c (node_draw): Better drawing method avoids
1542         garbage after moving.  Fixes bug #301032.
1544 2005-04-17  Hans Breuer  <hans@breuer.org>
1546         * plug-ins/cairo/diacairo.c : again adapt to Cairo API 
1547         changes (whould compile with current cvs and 0.(3|4).0
1549 2005-04-11  Lars Clausen  <lars@raeder.dk>
1551         * xmldocs.make (all): Fix to put installed docs in right place
1552         under disable-gnome.
1554         * doc/en/Makefile.am: Use xml_files var for xml files, EXTRA_DIST
1555         only for dia.dbk.
1557         * app/commands.c (help_manual_callback): Patch from p@kapcoweb.com
1558         (Leonardo Boshell): Use standard gnome help if called with Gnome.
1560         * app/diapsrenderer.c: Patch from ptasz3k@o2.pl (Radek Krahl): Fix
1561         locale issues for eps output.  Fixes bug #173135.
1563 2005-04-10  Hans Breuer  <hans@breuer.org>
1565         * plug-ins/cairo/diacairo.c : adapt to Cairo PNG API 
1566         changes (somewhat broken)
1567         
1568         * plug-ins/pstricks/render_pstricks.c : still C89 ...
1569         * objects/custom/shape_info.c : ... but with prototypes
1570         
1571 2005-04-07  Lars Clausen  <lars@raeder.dk>
1573         * lib/dia_xml.c: 
1574         * plug-ins/svg/render_svg.c: 
1575         * lib/diasvgrenderer.c: Patches from ptasz3k@o2.pl (Radek Krahl):
1576         Make decimal separators be correct in save file formats
1577         (non-localized).  Fixes bugs #172529 and 172531.
1579 2005-04-06  Lars Clausen  <lars@raeder.dk>
1581         * app/create_object.c (create_object_button_release): 
1582         * app/modify_tool.c (modify_button_release): Correct activations
1583         of text edits.
1585 2005-04-05  Simon KÃ¥gström  <ska@bth.se>
1587         * app/app_procs.c: the --show-layers option can now handle numeric
1588         ranges of layers.
1590 2005-04-05  Lars Clausen  <lars@raeder.dk>
1592         * lib/diagdkrenderer.c (draw_string): Patch from tomkast@yahoo.com
1593         (Tom Kast): Avoid blockiness caused by bad updates.
1595 2005-04-03  Lars Clausen  <lars@raeder.dk>
1597         * lib/polyshape.c: 
1598         * lib/beziershape.c: Main points.  A crude solution, having the
1599         center in the middle of the bb.  Shows a bug in the distance_from
1600         code for polyshape when a side is horizontal.
1602 2005-04-02  Lars Clausen  <lars@raeder.dk>
1604         * plug-ins/pstricks/render_pstricks.c: 
1605         * plug-ins/xfig/xfig-export.c: Patch from Radek
1606         Krahl <ptasz3k@o2.pl>: Fix decimal point problems. Fixes bugs 
1608 2005-04-02  Hans Breuer  <hans@breuer.org>
1610         * lib/dia_image.c(dia_image_filename) : return the path 
1611         again. (bug #172416, Radek Krahl)
1612         
1613 2005-04-01  Steve Murphy  <murf@e-tools.com>
1615         * configure.in: Added "rw" to ALL_LINGUAS.
1617 2005-03-31  Lars Clausen  <lars@raeder.dk>
1619         * lib/neworth_conn.c (neworthconn_update_data): Handle autogap.
1621         * lib/orth_conn.c (orthconn_update_data): Handle autogap while not
1622         autorouting.  
1624         * objects/network/basestation.c: Main points.
1626 2005-03-27  Hans Breuer  <hans@breuer.org>
1628         * app/Makefile.am : removed some pixmap/*.xpm from EXTRA_DIST
1629         * app/pixmaps.h : removed arrow.xpm
1630         * lib/Makefile.am : added diamarshal
1631         * plug-ins/python/Makefile.am : added makefile.msc to EXTRA_DIST
1632         => makes 'make dist' pass and produce a useable package
1634         * po/*.po : 'noise' profuced by make dist
1636 2005-03-24  Lars Clausen  <lars@raeder.dk>
1638         * objects/flowchart/parallelogram.c (pgram_update_data): 
1639         * objects/flowchart/ellipse.c (ellipse_update_data): 
1640         * objects/flowchart/diamond.c (diamond_update_data): 
1641         * objects/flowchart/box.c (box_update_data): Main points.
1643         * objects/custom/custom_object.c (custom_create): 
1644         * objects/custom/shape_info.h: 
1645         * shapes/Assorted/square.shape: 
1646         * objects/custom/shape_info.c (load_shape_info): 
1647         * doc/shape.dtd: Added main point support to shapes, and an
1648         example of how to use it.
1650 2005-03-21  Lars Clausen  <lars@raeder.dk>
1652         * lib/autoroute.c (autoroute_layout_orthconn): Remember to
1653         unnormalize from same point as you normalize, or else!
1655 2005-03-20  Lars Clausen  <lars@raeder.dk>
1657         * app/app_procs.c (do_convert): Patch from crux@gorodmasterov.com:
1658         Remember to ref g_object_new'd object.
1660 2005-03-19  Hans Breuer  <hans@breuer.org>
1662         * plug-ins/xslt/xslt.c : don't crash if both places ($SHARE, $HOME)
1663         have configurations, fixes bug #170962
1665         * objects/UML/state.c : ("UML - State")::type is PROP_FLAG_OPTIONAL,
1666         or better not used any longer. Fixes bug #169142.
1668         * lib/element.c(element_update_connections_rectangle): don't initialize 
1669         the eighth point twice but instead the nineth once
1671         * objects/standard/bezier.c : no C++ comments *please*
1673         * lib/plug-ins.h : increment DIA_PLUGIN_API_VERSION
1675         * lib/dia_image.[ch] : dia_image_filename() returns a string not to be freed ...
1676         * plug-ins/python/pydia-image.c : ... so, don't do it!
1678         * lib/dia_svg.c : refactor color parsing and support the "rgb(127,255,0)" form,
1679         also named colors via pango_color_parse()
1681         * lib/prop_text.c : don't try to g_strdelimit(NULL), fixes bug #169367
1683         * lib/libdia.def : updated externals
1685         * app/object_ops.c : still not C99 everywhere
1687 2005-03-19  Hans Breuer  <hans@breuer.org>
1689         * lib/autoroute.c : at least it should compile ;)
1690         
1691 2005-03-19  Lars Clausen  <lars@raeder.dk>
1693         * lib/autoroute.c: Orthconns now do autogap.
1695 2005-03-17  Lars Clausen  <lars@raeder.dk>
1697         * app/authors.h: Added Gregoire Dooms for gap stuff.
1699         * objects/standard/polyline.c: Patch from Grégoire Dooms
1700         <dooms@info.ucl.ac.be>: Autogap and absolute gap for polyline.
1701         
1702         * objects/standard/bezier.c: Patch from Grégoire Dooms
1703         <dooms@info.ucl.ac.be>: Fixes two bugs.  Also autogap no longer a
1704         property. 
1705         
1707         * objects/UML/state_term.c: 
1708         * objects/UML/large_package.c: 
1709         * objects/UML/node.c: 
1710         * objects/UML/object.c: 
1711         * objects/UML/small_package.c: 
1712         * objects/UML/state.c: 
1713         * objects/UML/usecase.c: 
1714         * objects/UML/note.c: 
1715         * objects/UML/actor.c: 
1716         * objects/UML/classicon.c: 
1717         * objects/UML/component.c: 
1718         * objects/Misc/analog_clock.c: 
1719         * objects/Jackson/requirement.c: 
1720         * objects/Istar/goal.c: 
1721         * objects/Istar/actor.c: 
1722         * objects/FS/function.c: 
1723         * object/standard/box.c:
1724         * objects/ER/entity.c: 
1725         * objects/ER/relationship.c: 
1726         * objects/ER/attribute.c: Main points added.   Distance_from fixed
1727         in attribute, broken in relationship, I* goal, Jackson
1728         requirement, analog_clock, all non-rectangular UML elements, 
1730         * lib/libdia.def: 
1731         * lib/element.[ch]: New method to help update connection points.
1733         * app/menus.c: Change Help/Manual to Help/Contents to follow
1734         standard.
1735         
1736         * objects/standard/line.c:
1737         * lib/geometry.[ch]: 
1738         * objects/standard/bezier.c: Patch from Grégoire Dooms
1739         <dooms@info.ucl.ac.be>: Add absolute gap and autogap for line and
1740         bezier objects.   Autogap nowchanged to be a function of the
1741         connpoints.
1743         * lib/libdia.def: 
1744         * lib/connectionpoint.[ch]: New function to ask if a connpoint has the
1745         autogap flag.
1747         * app/connectionpoint_ops.c (connectionpoint_draw): Don't draw
1748         CP_FLAG_ANYPLACE connpoints.
1750 2005-03-16  Lars Clausen  <lars@raeder.dk>
1752         * app/interface.c (create_tools): Removed debug printf.
1754 2005-03-15  Lars Clausen  <lars@raeder.dk>
1756         * lib/widgets.[ch]: Constification.
1758         * app/interface.c: Work on using gdk-pixbuf-csource'd data, not
1759         working yet.
1761         * objects/standard/ellipse.c: Use CP_FLAG_MAIN for central CP.
1763         * lib/connectionpoint.h: Flags for connection points.
1765         * app/create_object.c (create_object_motion): 
1766         * app/modify_tool.c (modify_motion): Minor refactoring.
1768         * app/object_ops.c (object_find_connectpoint_display): Extend with
1769         finding connpoints that cover entire objects.
1771         * app/layer_dialog.c (dia_layer_widget_init): Get rid of warnings.
1773         * objects/custom/custom_object.c (custom_setup_properties): Avoid
1774         uninitialized use.
1776 2005-03-13  Hans Breuer  <hans@breuer.org>
1778         * plug-ins/svg/svg-import.c : handle the <circle/> tag as well
1780 2005-03-13  Hans Breuer  <hans@breuer.org>
1782         * lib/dia_svg.[hc] objects/custom/shape_info.[hc] plug-ins/svg/svg-import.c :
1783         s/DiaSvgGraphicStyle/DiaSvgStyle/, added and use convenience functions 
1784         dia_svg_style_copy(), dia_svg_style_init()
1786         * objects/custom/shape_info.c : use dia_svg_parse_path() from lib/ (it got
1787         moved out of this)
1789         * lib/dia_svg.c(dia_svg_parse_path) : also handle style properties which are
1790         not wrapped in the style attribute
1792         * plug-ins/svg/svg-import.c : implement nested group handling and style
1793         'style inheritance'. Still no transformations, no <image/>, no <style/> 
1794         <defs/>...
1796         * plug-ins/svg/svg-import.c(import_svg) : use message_warning instead of g_warning,
1797         the latter is for programmers.
1798         Also be more tolerant if the document root namespace is not 'svg'. If the svg 
1799         namespace is defined in the file search for the top node including svg. This
1800         allows us to re-read the svg part of our own shape format.
1802         * lib/libdia.def : there is no give_focus_to_object
1803         * app/textedit.c : still no C99,  aka. error C2275: 'Focus' : illegal use of this 
1804         type as an expression
1806         * lib/geometry. c : use G_IMPLEMENT_INLINES
1807         * lib/libdia.def : export point_get_perp (used by xfig plug-in)
1809         * app/textedit.c(textedit_end_edit) : don't crash if the display is already
1810         gone when trying to remove the focus
1812         * plug-ins/cairo/diacairo.c : CAIRO_HAS_WIN32_SURFACE does not any longer mean
1813         it has *my* Cairo Win32 Backend. [The official one isn't useful for the use
1814         case of this plug-in, i.e. producing output files]
1816 2005-03-13  Lars Clausen  <lars@raeder.dk>
1818         * lib/Makefile.am (BUILT_SOURCES): 
1819         * app/Makefile.am (BUILT_SOURCES): Use the Right Way[tm] to force
1820         the building of the icons header files.
1821         * app/dia-lib-icons.h: Out of CVS now that it's correctly generated.
1823 2005-03-13  Hans Breuer  <hans@breuer.org>
1825         * configure.in : require Cairo 0.3.0
1826           plug-ins/cairo/diacairo.c : changed to match ;-)
1828         * app/app_procs.c() : new function dump_dependencies()
1829         which gets called by: dia --version --verbose
1830         and may help to track version dependent problems in
1831         our dependencies
1833         * lib/font.c : reverted to previous version cause using
1834         not implemented Pango API did not improve the issue.
1835         See: http://bugzilla.gnome.org/show_bug.cgi?id=162034
1836         for more information.
1838         * lib/dialinechooser.c : a little shrinking of the 
1839         initial size (to work around line wrappjing the right 
1840         arrow control)
1842 2005-03-11  Lars Clausen  <lars@raeder.dk>
1844         * app/textedit.c: Concentrate start/end editing in single functions.
1846 2005-03-10  Lars Clausen  <lars@raeder.dk>
1848         * lib/text.h: 
1849         * lib/object.h: Added new object function to allow the object to
1850         be notified when its text is being edited.
1852         * lib/libdia.def: 
1853         * app/modify_tool.c: 
1854         * app/commands.c: 
1855         * app/textedit.c: 
1856         * lib/focus.c: Remove sideeffects from focus objects, add getter
1857         for focus->obj.
1859 2005-03-09  Lars Clausen  <lars@raeder.dk>
1861         * lib/Makefile.am (dia-lib-icons.h): 
1862         * app/Makefile.am: Minor cleanup.
1864 2005-03-06  Hans Breuer  <hans@breuer.org>
1866         * app/app_procs.c : avoid "assignment within conditional expression"
1867         and handle -L for the GOption case as well.
1869         * lib/widget.c : strchr() does not return -1 on not found but NULL;
1870         avoids widgets.c(307) : error C4047: '!=' : 'char *' differs in levels of 
1871         indirection from 'const int '
1873         * lib/diasvgenderer.c(draw_arc|fill_arc) : finally correct sweep and 
1874         large_arc, thus produce correct arc output (like diasvg.py does;),
1875         fixes bug #144401
1877         * lib/dia_svg.[hc](dia_svg_parse_path) : new function copied and adapted 
1878         from objects/custom/shape_info.c to be shared with object/custom and
1879         plug-in/svg -> finally the C based svg-import reads pathes again.
1880         Added arc parsing while I was there, which fixes bug #169191
1881         * objects/custom/shape_info.c(parse_path) : 
1882         * plug-ins/svg/svg-import : reuse above function
1883         Also fix the "root element was 'svg' -- expecting 'svg'" bug #108502.
1884         But in general this does only support a small subset of what is 
1885         possible in SVG.
1887 2005-03-06  Lars Clausen  <lars@raeder.dk>
1889         * objects/UML/association.c: Patch from Dave Klotzbach applied:
1890         Add visibility to association arrow.  Fixes bug #157012.
1892         * app/grid.c: Patch from Lawrence Withers fixes grid messiness,
1893         closing bug #161040.
1895         * app/layer_dialog.c (create_button_box): Use stock icons instead
1896         of homemade onces.  Gets us rid of four more XPMs.
1898 2005-03-05  Sampo Kellomaki <sampo@iki.fi>
1900         * app/app_procs.c: Implemented --show-layers=LAYER,LAYER,... option
1901         This option permits command line control of which layers are visible.
1902         Useful when automatically exporting multiple versions of the same
1903         diagram, e.g. slides with overlays. Added-n switch parsing without POPT.
1904       * app/app_procs.h: moved prototype of do_convert() to app/app_procs.c
1905         and made it static since its only used in that file.
1906         * app/authors.h: added myself
1907         * doc/en/dia.1: documented the switch
1908         * doc/en/usage-layers.xml: ditto
1909         
1910 2005-03-05  Alan Horkan <horkana@tcd.ie>
1912         * app/interface.c Change Horizontal scroll policy to NEVER for sheets
1913         this restores how Dia behaved before the GTK2 port and seems to help 
1914         allow the toolbox to be more easily resized.  Bug #108891.
1916 2005-03-05  Lars Clausen  <lars@raeder.dk>
1918         * Civil/civil_motor.shape:
1919         * Civil/civil_rotor.shape:
1920         * Logic/and.shape:
1921         * Logic/buffer.shape:
1922         * Logic/connector.shape:
1923         * Logic/inverter.shape:
1924         * Logic/nand.shape:
1925         * Logic/nor.shape:
1926         * Logic/not.shape:
1927         * Logic/or.shape:
1928         * Logic/xor.shape:
1929         * shapes/Assorted/arrow-left-up.shape: 
1930         * shapes/Assorted/heptagon.shape: 
1931         * shapes/Assorted/star5.shape: 
1932         * shapes/Assorted/trapezoid.shape: 
1933         * shapes/Assorted/triangle-rightangle.shape: Fixed bad use of
1934         defaults, see bug #169143.
1936         * sheets/Assorted.sheet.in: Fixed typo patch applied, bug #169114.
1938         * configure.in: 
1939         * doc/en/Makefile.am: Finally figured out the right way to ask for
1940         the manpage xslt.  Closes bug #144539.
1942 2005-03-01  Lars Clausen  <lars@raeder.dk>
1944         * lib/Makefile.am (nodist_include_HEADERS): 
1945         * app/Makefile.am: Correctly generate these files from PNGs with
1946         automake.
1948         * lib/widgets.h: 
1949         * lib/libdia.def:
1950         * lib/widgets.c: Refactor toggle button factory to allow inline
1951         data.
1953         * lib/pixmaps/Makefile.am: Unify lib pixmaps.
1955         * app/makefile.msc (ICON_PNG_PAIRS): 
1956         * app/dia-app-icons.h: Updated with more icons.
1958         * lib/Makefile.am: 
1959         * app/Makefile.am: Use gdk_pixbuf_csource to create inline data
1960         from pngs.
1962         * app/interface.c (create_display_shell): 
1963         * app/layer_dialog.c (dia_layer_widget_init): 
1964         * lib/dia_image.c (dia_image_get_broken): Use inlined data
1965         generated from png.
1967         * app/display.c (ddisplay_close): Removed unused includes.
1969 2005-03-01  Lars Clausen  <lars@raeder.dk>
1971         * app/sheets.c (create_object_pixmap): Create a placeholder image
1972         for when the real image is missing.  Better than crashing:)
1973         Closes bug #166786.
1975 2005-02-25  Hans Breuer  <hans@breuer.org>
1977         * app/app_procs.c : don't requets to open a default display with
1978         g_option_context_add_group (crux@gorodmasterov.com, bug #168523)
1980 2005-02-22  Lars Clausen  <lars@raeder.dk>
1982         * plug-ins/gprint/diagnomeprint.c (export_data): GNOME, not Gome.
1983         Fixes bug #168125.
1985 2005-02-19  Lars Clausen  <lars@raeder.dk>
1987         * app/menus.c (display_menu_items): Applied patch from bug #94019:
1988         Menu cleanup and addition of icons.  Also a few additional stock
1989         icons. 
1991         * app/layer_dialog.c (create_layer_dialog): Bug #159598: Clean up
1992         the layers dialog.
1994 2005-02-14  Lars Clausen  <lars@raeder.dk>
1996         * INSTALL (ftp): Fixed Pango release typo (bug #153007)
1998 2005-02-13  Lars Clausen  <lars@raeder.dk>
2000         * lib/font.c: First stab at using Gtk 2.4 functions for fixing
2001         width.  Seems to work.  Once tested some more, needs old code
2002         removed. 
2004         * lib/widgets.c (dia_font_selector_create_string_item): Avoid
2005         warning by escaping & properly.
2007 2005-02-06  Lars Clausen  <lars@raeder.dk>
2009         * app/filedlg.c (file_export_callback): Set correct extension as
2010         soon every time the dialog is shown.  Fixes bug #162535.
2012         * app/display.c (ddisplay_set_origo): Use more standard
2013         transformations.
2015         * app/modify_tool.c (modify_motion): 
2016         * app/create_object.c (create_object_motion): Put coordinates of
2017         handle/object in status bar while moving. Fixes bug #163164.
2019 2005-02-03  Lars Clausen  <lars@raeder.dk>
2021         * lib/.cvsignore: Added generated files diamarshal.[ch]
2023 2005-02-02  Lars Clausen  <lars@raeder.dk>
2025         * configure.in: Add GLIB_GENMARSHAL def as suggested in
2026         http://ignore-your.tv/software/libgtcpsocket/docs/client-subclassing.html.
2027         Now compiles on Linux.
2029 2005-02-01  Lars Clausen  <lars@raeder.dk>
2031         * app/sheets.c (sheet_object_mod_get_type_string): We don't really
2032         need to translate the empty string.  Especially not after
2033         g_assert_not_reached().  Fixes bug #165966.
2035 2005-01-07  Tim Olsen  <tolsen@alum.mit.edu>
2037         * objects/UML/activity.c : add fill- and line-colour properties
2038         [applied by Hans Breuer, fixes bug #163260]
2040 2004-01-28  Hans Breuer  <hans@breuer.org>
2042         * doc/en/*.xml doc/en/dia.dbk app/authors.h : documentation
2043         update provided by Alan Horkan (fixes bug #159592)
2045 2004-01-28  Hans Breuer  <hans@breuer.org>
2047         [Extented version for UML to C++ conversion by Dave Klotzbach, bug #155255]
2048         * plug-ins/xslt/dia-uml2cpp.xsl : (new file) ... handles associataions,
2049         generalization, dependancies, parameterized classes ...
2050         * plug-ins/xslt/styleshetts.xml : refernce it
2051         * plug-ins/xslt/dia-uml.xsl : handle more UML types uesd above
2053 2004-01-28  Hans Breuer  <hans@breuer.org>
2055         * objects/UML/transition.c : fill out the extra_spacing struct 
2056         in the OrtConn member, in order to avoid artifacts when draggin 
2057         the transition. (patch by Peter Allin, bug #144956)
2059 2004-01-15  Hans Breuer  <hans@breuer.org>
2061         * plug-ins/cairo/diacairo.c : initialized the renderers default dash_length
2062         to something differnt than 0. Apparently there are case where Dia misses
2063         to appropriately set it before requesting a dashed line (simple line with
2064         arrow as described in bug #151716)
2066         * lib/dia_dirs.c : special casing for drive letters which I broke with
2067         the previous change
2069 2005-01-13  Hans Breuer  <hans@breuer.org>
2071         * app/interface.c(create_sheet_page) : remved dead long time code
2073         * lib/propdialogs.c : removed pdtpp_is_visible_no_standard() prototype,
2074         it is availbale via header - which is the better style anyway
2076 2004-12-31  Hans Breuer  <hans@breuer.org>
2078         * lib/dia_dirs.c(dia_get_canonical_path) : complete
2079         rewrite to handle something like /mnt/some/where/../else
2080         too. Workaround for bug #162637.
2081         * app/filedlg.c : call gtk_file_chooser_set_current_name()
2082         to workaround gtk_file_chooser_set_filename() not setting
2083         it if the file does not exist
2085         * sheets/Jackson.sheet.in app/menus.c : fixed typos
2086         (Frank Arnold, bug #161676)
2088 2004-12-31  Steffen Macke <sdteffen@gmail.com>
2090         * doc/pl/*.xml: Added XML prolog
2091         * makefile.msc: Added libxslt, fixed libxml, libart
2093 2004-10-29  Alexander Shopov  <ash@contact.bg>
2095         * configure.in (ALL_LINGUAS): Added "bg" (Bulgarian)
2097 2004-12-29  Lars Clausen  <lars@raeder.dk>
2099         * configure.in: Make gnomeprint be truly off by default (typo) and
2100         show optional compilation correctly.
2101         * plug-ins/gprint/Makefile.am: Exclude gnomeprint if not optioned in.
2103 2004-12-22  Hans Breuer  <hans@breuer.org>
2105         * lib/widgets.c : destroy handlers can be called more than once, 
2106         see http://developer.gnome.org/doc/API/2.0/gtk/gtk-changes-2-0.html
2108         * app/app_procs.c : #ifdef GLIB(2.6.0) but GTK(2.4.x)
2109         
2110         * app/display.c : temporary debug code showing the
2111         timing the rendering
2113         * app/dialibartrenderer.c(draw_string) : removed dead
2114         code loading and leaking font and face
2116 2004-12-15  Hans Breuer  <hans@breuer.org>
2118         * app/display.c : actually use the selction-changed signal for something
2119         useful. Show selections representation on statusbar.
2120         * lib/object.h lib/prop_text.c lib/libdia.def : provide objet_get_displayname() 
2121         * app/diagram_tree.c : use new function (as in app/display.c) and only
2122         poke into property internals at one place
2123         * app/diagram.c : use g_signal_handlers_block_by_func to avoid has-no-handler-
2124         complains
2126 2004-12-12  Hans Breuer  <hans@breuer.org>
2128         * lib/libdia.def app/dia.def : updated externals
2130         * objects/custom/custom_object.c : custom_destroy is called per object. 
2131         It _must not_ destroy class stuff (ShapeInfo) cause it does not hold a 
2132         reference to it. Fixes e.g. bug #158288, #160550, ...
2134         * objects/UML/association.c(association_draw) : completed porting to
2135         draw_polyline_with_arrows()
2136         (association_update_data_end) : fixed typo in point compare
2137         (association_update_data) : for name placement take degenerated 
2138         segements into account. Together this fixes bug #143891
2140 2004-12-11  Hans Breuer  <hans@breuer.org>
2142         * lib/widgets.c(set_size_sensitivity) : revert inverted
2143         logic for arrorw size selections, fixes bug #160527
2145 2004-12-11  Hans Breuer  <hans@breuer.org>
2147         * lib/widgets.c(dia_font_selector_set_font) : initialize
2148         the font style widget, too. Gets rid of empty font
2149         style and thus default broken font style, e.g. UML::class_name
2151         * lib/widgets.c(dia_color_selector_more_callback) : fill
2152         the color palette from dynamic menu entries and also
2153         preselect the current color to the last select entry
2154         
2155         * plug-ins/python/pydia-diagramdata.c : hold a reference
2156         to the underlying GObject
2157         
2158         * app/Makefile.am app/diagrid.h : new file containing the 
2159         grid 'class' moved from DiagramData to Diagram. 
2160         Also moved pagebreak_color and guides cause they are only 
2161         used for visual appearance not 'data'.
2162         * lib/diagramdata.[ch] app/diagram.h app/dia-props.c app/grid.c
2163           app/load_save.c plug-ins/python/pydia-diagramdata.c : reflect 
2164         the above change
2166         * lib/diagramdata.[ch] app/app_procs.c app/diagram.c 
2167           lib/libdia.def : get rid of new_diagram_data() 
2168         Diagram _is_ DiagramData (and does not have one any longer,
2169         just a compatibility pointer)
2170         
2171         * lib/diarenderer.h : a small doc improvement
2173 2004-12-11  Hans Breuer  <hans@breuer.org>
2175         * objects/UML/class.c : line wrapping code buffer
2176         overrun fixed by Gabor Simon, bug #160865
2178 2004-12-11  Hans Breuer  <hans@breuer.org>
2180         * plug-ins/python/pydia-diagram.c : hold a reference
2181         to the diagram in PyDiaDiagram, avoids bug #159080
2182         [another way to avoid is to detroy the dialog by
2183         clsoing it. But now there is still a diagram to
2184         apply the changes to, even if it's thrwon away just
2185         afterwards]
2187 2004-12-10  Hans Breuer  <hans@breuer.org>
2189         * **/*.c : fixed a bunch of warnings, not only for -ansi
2190         (still too many of them, but -ansi works)
2191         lib/
2192         prop_geomtypes.h prop_geomtypes.c:306: warning: static 
2193         declaration for `fontsizeprop_reset_widget' follows non-static
2194         dia_dirs.c:196: warning: return discards qualifiers from 
2195         pointer target type
2197         objects/custom/
2198         shape_info.c:121: warning: static declaration for `parse_path' 
2199         follows non-static
2201         objects/SADT/
2202         arrow.c:228: warning: `draw_arrowhead' declared `static' but never defined
2203         arrow.c:244: warning: unused variable `i'
2204         arrow.c:245: warning: unused variable `p'
2205         arrow.c:246: warning: unused variable `zzr'
2206         
2207         object/Istar/*.c object/Jackson/*.c  object/KAOS/*.c : 
2208         finally removed c++ comments
2209         
2210         objects/Istar/goal.c : initialize connections::directions
2211         while I was there - helps autorouting
2213         * objects/KAOS/metaandorrel.c objects/Istar/link.c 
2214           objects/KAOS/metabinrel.c : removed struct _DiaImage hack
2215         (it would be quite simple to add image-from-memory support
2216         to lib/ if needed)
2218         * pydia-*.h : warning: no newline at end of file
2219         
2220         * plug-ins/gprint/diagnomeprint.c : allow to unregister
2221         and follow new unique name naming convention
2222         * plug-ins/gprint/diagnomeprintrenderer.c : no c++ comments
2223         here either
2225 2004-12-07  Hans Breuer  <hans@breuer.org>
2227         * objects/UML/message.c : better default for initial text placement
2228         a suggested in bug #154306, Henning Mersch
2229         * objects/UML/constraint.c : doing the same
2231         * app/filedlg.c : include persistence.h for persistence_get_integer
2232         * lib/libdia.def export it
2234 2004-12-05  Hans Breuer  <hans@breuer.org>
2236         * app/grid.c : respect dynamic grid during snap-to, fixes 
2237         bug #135124, Dmitriy Morozov. Added some additional magic
2238         to make the grid size more useable.
2240 2004-12-05  Hans Breuer  <hans@breuer.org>
2242         * app/app_procs.c : make it compile for the HAVE_POPT and
2243         G_LIB_CHECK_VERSION(2,5,5) case, minor formating
2244         
2245         * lib/plug-ins.c : don't pass non exiting files to xmlDiaParseFile()
2246         * app/app_procs.c : only dia_pluginrc_write() and create_user_dirs()
2247         when interactive. Fixes bug #119329
2248           
2249         * plug-ins/cairo/diacairo.c : adapt to new type naming
2250         scheme (introduced by accident;-) for pixbuf-*
2251         * app/app_procs.c : reflect both type name changes
2253 2004-12-04  Hans Breuer  <hans@breuer.org>
2255         * objects/standard/image.c : fix the correct warning
2256         `image_file_name' might be used uninitialized
2257         
2258         * app/filedlg.c : near complete rewrite
2259         - removed 'related dialog', GtkOptionMenu, most global vars,
2260         also don't hide the dialog but let it go.
2261         - added: filter view by extension, hopefully working diagram
2262         referencing, GtkComboBox usage
2263         
2264         * plug-in/pixbuf/pixbuf.c : switched to dynamic generation
2265         of im/export filter entries. So the user interface reflects
2266         the dynamic nature of pixbuf loaders
2268         * lib/filter.[ch] : implement filter_unregister_*port
2269           lib/libdia.def : added new functions
2270           plug-ins/cgm/cgm.c plug-ins/dxf/dxf.c
2271           plug-ins/hpgl/hpgl.c plug-ins/metapost/metapost.c
2272           plug-ins/pstricks/pstricks.c plug-ins/svg/svg.c
2273           plug-ins/wpg/wpg.c plug-ins/xfig/xfig.c
2274           plug-ins/cairo/cairo.c plug-ins/pixbuf/pixbuf.c :
2275         use them in _plugin_unload () thus all these plug-ins
2276         can be loaded used and unloaded during Dia's runtime
2278 2004-12-04  Lars Clausen  <lars@raeder.dk>
2280         * lib/diagramdata.h: Access methods for units defined per diagram.
2282         * lib/font.c (dia_font_new_from_style): More proper object creation.
2284         * lib/properties.h: Refactored the PROP_STD_* macros to allow
2285         different options.
2287         * app/diagram.c (diagram_init): Force filename to be absolute
2288         path, easing the job for load/save.
2290 2004-12-03  Hans Breuer  <hans@breuer.org>
2292         * lib/libdia.def : removed dia_marshal_*, they are implemented as macros.
2293         added dia_font_set_height, dia_font_copy (note to self: don't try to
2294         maintain these from the *NIX side ;)
2296         * lib/widgets.h : removed DiaColorSelector::col, it is not maintained by
2297         the new color selection anymore
2298         * objects/UML/class_dialog.c : with the above change it would have been more 
2299         easy to fix the color loss bug #156996 which had nothing to do with 'a pointer
2300         problem' but only was an unfinished usage of dia_color_slector(get|set)_color
2302         *  objects/UML/class_dialog.c  objects/UML/class.[ch] : uml_apply_properties
2303         (used in object vtable) and make its prototype match
2305         * lib/widgets.c : made all the GtkTypeInfo 'static const'. I can't directly
2306         correlate any of these strange crashing bug with it, but assume bad things to 
2307         happen when one passes stack allocated stuff to gtk_type_unique()
2309         * lib/widgets.c(dia_font_selector_get_font) : don't access menuitem if it is
2310         not there. Fixes most of the warnings from bug #156996
2312         * lib/makefile.msc : rules to generate diamarshal.[ch]
2314 2004-11-29  Hans Breuer  <hans@breuer.org>
2316         * app/disp_callbacks.c : reenable so-called preedit
2317         as described in bug #158859, Etsushi Kato
2318         Also fixed some compiler warnings while there.
2319         
2320         * objects/standard/image.c(get_directory) : make
2321         the documentation match the implementation.
2322         (image_save) : don't write a leading slash on 
2323         relative filenames 
2325         * plug-ins/gprint/diagnomeprintrenderer.c :
2326         switched to gnome-print-pango usage
2327         
2328         * app/app_procs.c configure.in : although Dia
2329         is not threaded it appears as if we have to
2330         g_thread_init() to avoid crashing in some
2331         libraries which are thread enabled
2333         * lib/diamarshal.list lib/Makefile.am : start of
2334         using GSignal to clean up some object relations
2335         * lib/libdia.def : export marshallers
2336         * app/diagram.[ch] : emit signals when REMOVED,
2337         SELECTION_CHANGED
2338         * app/display.c : added a connection to 
2339         SELECTION_CHANGED to test the new signal stuff
2340         
2341         * app/diagram.c : fixed diagram_finalize while I
2342         was there.
2344 2004-11-28  Hans Breuer  <hans@breuer.org>
2346         * plug-ins/wmf/wmf.cpp(draw_string) : write the widechar version of 
2347         the text if conversion to current locale fails. [This is actually
2348         using code written four years ago;]
2349         * plug-ins/wmf/wmf_gdi.(h|cpp) : added TextOutW (no real implemantation)
2351         * objects/standard/image.c(image_load) : be more robust against 
2352         filenames which seem to be absolute
2354 2004-11-27  Hans Breuer  <hans@breuer.org>
2356         * app/filedlg.c(file_save_callback) : convert to
2357         filename encoding before passing to diagram_save()
2358         Fixes bug #158381, thanks to Robert Ã–gren
2360 2004-11-27  Hans Breuer  <hans@breuer.org>
2362         * lib/dialibartrenderer.c : sometimes its good to read
2363         compiler warnings. Not only define renderer_finalize
2364         but actually *use* it. Should plug a potential huge
2365         memory leak.
2367         * configure.in plug-ins/Makefile.am 
2368           plug-ins/gprint/Makefile.am : build the experimental
2369         gnomeprint plug-in on *NIX, too.
2370         * plug-ins/gprint/diagnomeprint.c : don't include
2371         specific (private) backend headers but instead select
2372         the desired backend via config key setting
2374         * lib/diagdkrenderer.c : add 1 to size of filled arc 
2375         to be rendered by gdk. Fixes bug #150896.
2377         * plug-ins/gprint/diagnomeprint.c 
2378           plug-ins/gprint/diagnomeprintrenderer.c : added magic
2379         to better match page and dash sizes
2381 2004-11-27  Hans Breuer  <hans@breuer.org>
2383         * plug-ins/shape/shape-export.c : it's g_strdup_printf
2385 2004-11-27  Hans Breuer  <hans@breuer.org>
2387         * app/app_procs.c : mention eps-builtin aka. "using
2388         latin1", does not fix the eps-pango issues but #150571
2390 2004-11-27  Hans Breuer  <hans@breuer.org>
2392         * sheets/Cybernetics.sheet.in : changed encoding to 
2393         utf-8, patch from Takeshi AIHANA, fixes #149580
2395 2004-11-27  Hans Breuer  <hans@breuer.org>
2397         * objects/custom/custom_object.c : many existing shapes
2398         rely on a square default size, revert to it although
2399         it originally was by a typo. Fixes bug #148527.
2401 2004-11-27  Hans Breuer  <hans@breuer.org>
2403         * app/load_save.c(dia_cleanup_autosave) 
2404           app/diagram.c : don't use dia->filename if already 
2405         freed and dont use printf at all.
2407         * app/paginate_psprint.c : not only set the renderer::paper
2408         but also renderer::is_portrait. Should fix bug #142524
2410 2004-11-26  Hans Breuer  <hans@breuer.org>
2412         * dia.desktop.in : added Bug Buddy headers (as seen
2413         in planner). Hopefully the automatically filling of
2414         bugs is more meaningful by this.
2415         
2416         * objects/custom/custom_util.c objects/standard/image.c
2417           lib/plug-ins.c : getting rid of deprecated g_dirname,
2418         fixes some more memory bugs : AddrAddress 0x3586C010 is 24 
2419         bytes inside a block of size 44 free'd
2420         
2421         * lib/persistence.c(persistence_load_list) : don't
2422         leak string
2423         
2424         * lib/diaerror.[ch] : (new file) start of better error handling
2425         * lib/Makefile.am lib/makefile.msc lib/libdia.def: 
2426         added new files/funcs
2427         * lib/proplist.c lib/propinternals.h (prop_list_load) : 
2428         allow to propagate error to caller. Also set PXP_NOTSET
2429         to avoid applying unset properties, fixes bug #155255
2430         * lib/propobject.c lib/prop_sdarray.c : still spewing
2431         g_warnings but now with context information
2432         
2433         * app/filedlg.c : more absolute filenames where required
2434         and strip them where we need the filename only
2435         Also explicit DONT choose gnome-vfs backend cause its
2436         threading appears to crash Dia - at least in GNOME build,
2437         see bug #159558
2439 2004-11-26  Hans Breuer  <hans@breuer.org>
2441         * app/filedlg.c : don't use relative filenames for
2442         gtk_file_chooser_set_filename(), GtkFileChooserDialog is very
2443         pedantic about it.
2444         (export_set_extension) : if we don't have a filename don't
2445         use it in strrchr() to avoid crashing
2446         
2447 2004-11-23  Hans Breuer  <hans@breuer.org>
2449         * app/app_procs.c : fixed build for the GNOME case
2450         (let's rip out POPT and depend on glib-2.6, please ;-)
2452 2004-11-23  Hans Breuer  <hans@breuer.org>
2454         * app/app_procs.c : fixed typo which broke the
2455         build for HAVE_POPT case
2456         
2457 2004-11-21  Hans Breuer  <hans@breuer.org>
2459         * app/app_procs.c : some more #if-mess, but one day
2460         we should rely on GLib's 2.6 Option Parser alone
2461         
2462         * plug-ins/wmf/wmf.cpp : use SC() when scaling width
2463         and height for RoundRect() - otherwise size depends on offset,
2464         shorten the unique name
2465         
2466         * plug-ins/python/diamodule.c : provide a unique name
2467         for python filters as well
2469         * lib/dialibartrenderer.c : fix the drawing of Gdk based text
2470         by using the right colors (need black background cause we
2471         are tinitng it with the real color later)
2473         * lib/dia_dirs.c(dia_get_canonical_path) : use G_DIR_SEPARATOR_S
2474         instead of hardcoded slahes, improved portability 
2476         * app/paginate_gdiprint.cpp : use the right filter name to find wmf
2477         plug-in. Also added some more error reporting (e.g. no printer driver)
2479         * plug-ins/gprint/diagnomeprintrenderer.[hc] plug-ins/gprint/diagnomeprint.c
2480           plug-ins/makefile.msc : resurrection of the gnome print renderer. 
2481         Kinda works (alpha quality) for export but does not print yet. 
2482         With bug #158972 resolved this does even work on win32 :-)
2484 2004-11-07  Hans Breuer  <hans@breuer.org>
2486         * doc/diagram.dtd : <composite> can have <composite/>,
2487         <font/> has two 'optional' atributes 'style' and 'family',
2488         these are used to store new (since 0.91) font info.
2489         With this changes non of the issues in bug #147431 remains.
2491         * plug-ins/python/otypes.py : starting to implement an
2492         'create all known object' file as ne stress test source
2493         for the dtd and Dia in general.
2495 2004-11-06  Hans Breuer  <hans@breuer.org>
2497         * app/diapsrenderer.c : don't convert to locale but to 
2498         "LATIN1", fixes bug #146641
2500 2004-11-06  Hans Breuer  <hans@breuer.org>
2502         * app/diagram_tree.c : still no C99 everwhere ...
2503         * lib/libdia.def : update externals
2504         * plug-ins/pstricks/render_pstricks.c : #include <locale.h>
2506         * app/app_procs.[hc] : declare, use ...
2507            app/winmain.c : ... and implement dia_redirect_console().
2508         Even though newer Gtk version don't popup a console window
2509         anymore redirecting the error messages to a file in $TEMP appears
2510         to be much more reasonable than just ignoring it. Fixes bug #150777
2511         based on a patch from Steffen Macke
2513 2004-11-06  Hans Breuer  <hans@breuer.org>
2515         * plug-ins/wmf/wmf.cpp plug-ins/wmf/wmf_gdi.* : added/used
2516         RoundRect() for high level renderer api implementation thus
2517         fixing bug #138744 reported by Lars Clausen
2519 2004-11-06  Hans Breuer  <hans@breuer.org>
2521         * app/prefernces.c : applied patch to make showing the diagram 
2522         menubar the default (advanced users know how to switch it off)
2523         Fixes bug #150706, Steffen Macke
2525 2004-11-06  Hans Breuer  <hans@breuer.org>
2527         * app/commands.c app/commands.h : added view_fullscreen_callback()
2528           view_unfullscreen()
2529           app/menus.c : use it (/View/Fullscreen) thus fixing bug #94090
2530         * app/disp_callbacks.c : use view_unfullscreen() for GDK_Escape
2531         ALso modified to allow handling of unmodified keys again (aren't
2532         there plenty of bug reports for this?
2534 2004-11-06  Hans Breuer  <hans@breuer.org>
2536         * objects/UML/class_dialog.c : fixed casts for usage
2537         of dia_color_selector_set_color()
2538         
2539         * app/filedlg.c : pass a valid filenames to 
2540         gtk_file_chooser_set_filename(), if we don't have a name
2541         don't call it at all. Gets rid of "libgnomevfs-CRITICAL **: 
2542         file gnome-vfs-utils.c: line 749 (gnome_vfs_get_uri_from_local_path): 
2543         assertion `local_full_path[0] == '/'' failed"
2544         
2545 2004-11-06  Lars Clausen  <lars@raeder.dk>
2547         * app/properties.c (create_dialog): 
2548         * app/diagram_tree_window.h: 
2549         * app/diagram_tree.h (HIDDEN_TYPES_NAME): 
2550         * app/diagram_tree_menu_callbacks.c: 
2551         * app/diagram_tree_window.c: 
2552         * app/diagram_tree_menu.c: 
2553         * app/diagram_tree.c: Changed to use persistence instead of
2554         strange hacks in preferences.
2556         * lib/persistence.h:
2557         * lib/persistence.c (persistent_list_get_glist): Don't deref null
2558         pointer.  New function persistent_list_remove_all, and
2559         fixed persistent_list_remove to ... work!
2561 2004-11-05  Lars Clausen  <lars@raeder.dk>
2563         * app/paginate_psprint.c (diagram_print_ps): Call
2564         diagram_print_destroy on destroy rather than delete_event.  That
2565         way the gtk_widget_destroy() calls cleans up properly.  Fixes bug
2566         #154898. 
2568 2004-11-02  Lars Clausen  <lars@raeder.dk>
2570         * objects/UML/class.c (umlclass_load): Actually load the saved
2571         fonts and font sizes. Fixes bug #157016
2573         * configure.in: Require at least GTK+ 2.4.
2575         * app/filedlg.c: Changed to use 2.4 file dialog!  Finally,
2576         finally, finally.  Not quite bulletproof yet, and I need to figure
2577         out a minimum version of Gtk that doesn't spew warnings all over.
2579         * app/diagram.[ch]: diagram_set_filename with const filename.
2581         * app/sheets_dialog_callbacks.c
2582         (on_sheets_dialog_button_apply_clicked): Sheet menu now almost
2583         correctly recreated.  Still something fishy with the sheet menu in
2584         the dialog after adding a new sheet.  Probably the sheet name
2585         being stomped.
2587 2004-11-01  Lars Clausen  <lars@raeder.dk>
2589         * lib/widgets.[ch] (dia_dynamic_menu_reset): Harden against memory
2590         stmping.  Now requires g_free here and there.
2592         * app/preferences.[ch] (prefs_data): Got rid of hidden prefs value
2593         for remembering last sheet, better off as persistent string.  Must
2594         hunt down other things like that.
2596         * app/interface.c (create_sheets): Now remembers last sheet
2597         selected again. Fixes bug #157036.
2599 2004-11-01  Hans Breuer  <hans@breuer.org>
2601         * plug-ins(tex_escape_string) : fixed it [g_utf8_next_char
2602         will never become NULL but only point to the next char
2603         which might indeed be \0]
2604         Use tex_escape_string() to avoid writing invalid tex,
2605         fixes bug #112377
2607         * **/* : a bunch of changes caused by trying 'make distcheck'
2608         which still fails, see Bug #144527
2610 2004-10-31  Lars Clausen  <lars@raeder.dk>
2612         * plug-ins/pstricks/render_pstricks.c (export_pstricks): Avoid
2613         floating point numbers being printed with commas.  Fixes bug
2614         #156148.
2615         
2616         * app/interface.c (create_sheet_dropdown_menu): New function to
2617         create the sheet menu, and also allow recreation.  Still buggy and
2618         slightly prone to magic.
2620         * objects/UML/class_dialog.c
2621         (attributes_list_selection_changed_callback): Don't try to update
2622         the widgets after they're destroyed.  Fixes bug #156706 (I think).
2624         * lib/widgets.c (dia_unit_spinner_new): Avoid crash on NULL
2625         adjustement.  Fixes bug #154637
2627         * sheets/ER/Makefile.am (PIX): 
2628         * sheets/GRAFCET/Makefile.am (PIX): 
2629         * sheets/Jackson/Makefile.am (PIX): 
2630         * sheets/Istar/Makefile.am (PIX): 
2631         * sheets/KAOS/Makefile.am (PIX): Actually install PNG instead of
2632         XPM.  Why these have their pictures in sheets rather than shapes I
2633         don't know.  Fixes bug #152142.
2635 2004-10-31  Hans Breuer  <hans@breuer.org>
2637         * plug-ins/pixbuf/pixbuf.c : when running non interactive
2638         Dia won't call color_init() as it assumes no display. If
2639         we have one as tested ourselve we can as well color_init()
2640         to avoid g_warnings() and produce the right collors.
2641         Fixes bug #155495.
2642     
2643         * app/app-procs.c : try to be a little more helpful
2644         and correct with regard to the command line options.
2645         Renamed --export-to-format to --export-filter and some
2646         other string changes
2648 2004-10-31  Hans Breuer  <hans@breuer.org>
2650         * plug-ins/wmf/wmf_gdi.cpp plug-ins/wmf/wmf_gdi.h :
2651         added GetDeviceCaps() dummy implementation to make 
2652        'wmf' compile on Linux, too.
2654 2004-10-31  Hans Breuer  <hans@breuer.org>
2656         * plug-ins/wmf/wmf.cpp : patch from Robert Ã–gren <gtk@roboros.com>
2657         to finally fix the long lasting clipping issue, bug #85831
2658         Also fixed the line style issue for printing on XP and don't 
2659         miss to ReleaseDC()
2661         * plug-ins/wmf/wmf_gdi.[hc] : added ReleaseDC()
2663         * plug-ins/python/diasvg.py : filter illegal characters from <text/> section
2664         (e.g. &lt; instead of <), fixes bug #155697 (Duncan Palmer)
2666         * plug-ins/python/pydia-error.[hc] : improvede exception handling to transfer 
2667         some info from the console (soon gone on windoze) to message_error()
2668         * plug-ins/python/pydia-render.c plug-ins/python/diamodule.c : use it.
2669         Also some setlocale() hack to let Python behave as expected for LC_NUMERIC
2671         plug-ins/python/diasvg_import.py : re.compile() only once per expression
2672         and some more playing with scaling
2674         * plug-ins/python/makefile.msc : updated
2676 2004-10-30  Hans Breuer  <hans@breuer.org>
2678         * shapes/Civil/civil_arrow_right.shape : removed
2679         <aspectratio type="fixed" /> thus allowing to change
2680         width and height independently, fixes #154897 
2681         (Serge Robinson) by making it consistent with the
2682         up arrow
2684 2004-10-30  Hans Breuer  <hans@breuer.org>
2686         * plug-ins/xfig-xfig-export.c(hasArrow) : don't crash
2687         on arrow being NULL, fixes bug #143063
2689 2004-10-30  Hans Breuer  <hans@breuer.org>
2691         * lib/diagramdata.c app/diagram.c app/disp_callbacks.c
2692           plug-ins/python/pydia-diagram.c plug-ins/python/pydia-diagramdata.c :
2693         removed use of chached variable DiagramData::selected_count
2694         * lib/diagramdata.h : renamed to selected_count_private
2695         (kept for binary compatibility and sanity checks)
2696         * lib/diagramdata.c : more checks on a screwed up selection list
2698         * app/diagram.c(diagram_group_selected) : don't screw up the
2699         DiagramData::selected list, was assignment of parent_list_affected(),
2700         * lib/diagramdata.c (data_select, data_unselect) : protect against
2701         multiple selections of the same object and removement of a not selected
2702         object (apparently caused by the recently added group undo stuff)
2703         together with the above this finally fixes bug #153525
2705         * app/Makefile.am : fix ./autogen.sh ->
2706         app/Makefile.am:171: blank line following trailing backslash
2708         * app/commands.c(objects_group_callback,objects_ungroup_callback) :
2709         ddisplay_do_update_menu_sensitivity() here as well
2711         * configure.in : make the experimental state of the cairo plug-in
2712         more visible
2713         
2714         * app/dia-props.c(diagram_properties_update_sensitivity) : don't
2715         try to update anything if we can't find an active diagram
2716         Additionally set static dialog pointer to NULL by gtk_widget_destroyed
2717         
2718         * configure.in : another attempt to fix bug #156116. If there is
2719         anyone with autotools knowledge reading this - help appreciated ;-)
2721 2004-10-30  Hans Breuer  <hans@breuer.org>
2723         * objects/makefile.msc objects/UML/Makefile.am
2724           objects/UML/uml.c objects/UML/transition.c 
2725           objects/UML/pixmaps/transition.xpm sheets/uml.sheet.in : 
2726         Patch from Peter Allin adds statechart transitions to the UML sheet -
2727         bug #144956 - modified to not print("%s", NULL) which crashes on
2728         newer glib versions. Also added pixmap/transition.xpm to Makefile.am
2730 2004-10-30  Hans Breuer  <hans@breuer.org>
2732         * doc/sheet.dtd doc/diagram.dtd : the namespace does *not* 
2733         match the website anymore, i.e. sould remain unchanged. 
2734         See below and lib/dia_xml.h for the reasoning
2736         * lib/libdia.def : removed dia_color_selector_get_type
2738         * lib/dia_image.c(dia_image_load) : check for pixbuf warnings
2739         (like broken PNG) and g_warning if appropriate
2741         * app/interface.c : #include "message.h"
2743         * app/diaunitspinner.hc : replaced the superfluous #if-0-juggling,
2744         used #error "Moved to lib/widgets.[hc]" instead (IMO it would be
2745         better to just move diaunitspinner to lib/ instead of polluting
2746         widgets.[hc] even more ;)
2747         * app/makefile.msc lib/libdia.def : updated
2749         * app/filedlg.c : patch from gtk@roboros.com, fixes #156224
2750         * app/app_procs.c : patch from gtk@roboros.com, fixes #156088
2752         * config.h.win32 : #define HAVE_CAIRO to let the Cairo plug-in
2753         do something useful when compiled
2755         * plug-ins/cairo/diacairo.c : added 'PNG with alpha' rendering.
2756         Also some more #ifdefed backends usage.
2758 2004-10-10  Lars Clausen  <lars@raeder.dk>
2760         * lib/widgets.c: Better labels for color selector menu.
2762         * app/dia-props.c (diagram_properties_respond): 
2763         * app/preferences.c (prefs_get_value_from_widget): Don't assume
2764         that a dia color selector is of type DiaColorSelector:)
2766         * lib/widgets.[ch]: Color selector changed to dynamic menu.
2768         * lib/prop_attr.c (colorprop_set_from_widget): Don't assume
2769         DiaColorSelector. 
2771 2004-10-09  Lars Clausen  <lars@raeder.dk>
2773         * lib/diaarrowchooser.c (dia_arrow_preview_init): Slightly wider
2774         arrow preview to avoid long arrow heads flipping.
2776         * lib/arrows.[ch]: Support for getting from name to arrow type,
2777         and for listing all arrow names.
2778         
2779         * lib/widgets.[ch]: Changed arrow selector to use dynamic menu.
2781         * lib/libdia.def: Added new global functions.
2783         * lib/persistence.[ch]: Two of the persistent_list functions to
2784         return whether the item was found in the list.
2786         * app/interface.c (create_sheets): Use DiaDynamicMenu to handle
2787         the growing number of sheets.
2789         * lib/widgets.[ch]: Add DiaDynamicMenu as a generalization of the
2790         font menu.
2792 2004-10-05  Lars Clausen  <lars@raeder.dk>
2794         * objects/UML/association.c: Patch from Harvey Thompson
2795         <harveyandsu@yahoo.com>:  Better placement of association texts.
2797 2004-10-03  Lars Clausen  <lars@raeder.dk>
2799         * lib/widgets.c (dia_font_selector_add_menu_item): Make font menu
2800         use the fonts in question.  Can't set tooltips with the name since
2801         lib objects don't know the tool_tips thing, which is rather
2802         app-related.
2804 2004-09-19  Hans Breuer  <hans@breuer.org>
2806         * plug-ins/xslt/*.xsl : s/apply-templates match/apply-templates select/
2807         fixes bug #148278, carlosrp@idea.com.py (Carlos Ra�l Perasso)
2809 2004-09-19  Hans Breuer  <hans@breuer.org>
2811         * dia.desktop.in : string changes as proposed in bug #151822
2812         
2813         * lib/Makefile.am : remove -module from libdia_la_LDFLAGS,
2814         appearts not to be needed on Linux and breaks the build 
2815         on OSX. Fixes bug #152970
2816         
2817 2004-09-18  Lars Clausen  <lars@raeder.dk>
2819         * app/commands.c (view_show_all_callback): Add a bit of border
2820         around Ctrl-E'd diagram, for easier select and better view of edges.
2822 2004-09-19  Hans Breuer  <hans@breuer.org>
2824         * app/Makefile.am : trying to fix the fix from 2004-02-15
2825         Overwriting AM_LDFLAGS still gave a automake warning and it 
2826         also appeard to break linking against gtklibs in a differnt 
2827         prefix. Use dia_LDFLAGS instead.
2829         * plug-ins/svg/svg-import.c : initialize 'end' before usage
2830         patch from dcbw@redhat.com (Dan Williams), fixes bug #150548
2831         
2832         * lib/diarenderer.c : don't try to draw lines which are so much 
2833         degenerated that their point count became negative, fixes bug #148139
2834         
2835         * lib/font.c(layout_cache_equals) : don't crash on nonexisting 
2836         strings (NULL from g_strdup()) 
2838 2004-09-10  Steffen Macke <sdteffen@web.de>
2840         * lib/libdia.def: added color_new_rgb(), focus_previous(),focus_next(),
2841         give_focus(),give_focus_to_object(),remove_focus(),reset_foci()
2842         * app/create_object.c:
2843         * app/diaunitspinner.c:
2844         * app/disp_callbacks.c:
2845         * app/makefile.msc:
2846         * app/modify_tool.c:
2847         * lib/prop_geomtypes.c:
2848         * lib/prop_geomtypes.h: made compile with msvc
2850 2004-09-10  Lars Clausen  <lars@raeder.dk>
2852         * lib/widgets.c: Insulate conversion from outside API by adding
2853         internal function to set value.  Adjustment not appropriate for
2854         units yet.
2856         * lib/prop_geomtypes.c (lengthprop_get_widget): Remove debug info
2858 2004-09-07  Lars Clausen  <lars@raeder.dk>
2860         * app/diapagelayout.c: Include from widgets.c rather than
2861         diaunitspinner.
2863 2004-09-03  Lars Clausen  <lars@raeder.dk>
2865         * objects/standard/box.c: Use PROP_TYPE_LENGTH for corner_radius
2866         as unit-based property testbed.
2868         * lib/prop_geomtypes.c (lengthprop_reset_widget): Implement length
2869         and fontsize widgets. 
2871         * app/Makefile.am (dia_core_files):
2872         * app/diaunitspinner.h: 
2873         * app/diaunitspinner.c: 
2874         * lib/widgets.h: 
2875         * lib/widgets.c (dia_unit_spinner_update): Move diaunitspinner to
2876         lib/widgets.[ch], as it's used in the properties code now.
2878 2004-08-31  Steffen Macke <sdteffen@web.de>
2880         * doc/en/usage-objects-basic.xml: Mentioning supported image formats.
2882 2004-08-30  Lars Clausen  <lars@raeder.dk>
2884         * app/textedit.c: 
2885         * app/diagram.c (diagram_remove_all_selected): Remove debugging
2886         information. 
2888         * lib/color.[ch]: 
2889         * app/undo.c: 
2890         * app/disp_callbacks.c: 
2891         * app/Makefile.am: 
2892         * app/create_object.c: 
2893         * app/textedit.[ch]: 
2894         * app/modify_tool.c: 
2895         * app/diagram.c: 
2896         * lib/text.c: 
2897         * lib/focus.[ch]: Change in focus mechanism to allow highlight of
2898         current input object, multiple inputs per object, and tabbing
2899         between objects.
2901 2004-08-28  Steffen Macke <sdteffen@web.de>
2903         * makefile.msc: added bs to ALL_LINGUAS; adjusted .mo file creation to
2904         allow separate installer component "Translations"
2906 2004-08-27  Akagic Amila  <bono@linux.org.ba>
2908         * configure.in: Added 'bs' to ALL_LINGUAS.
2910 2004-08-26  Steffen Macke <sdteffen@web.de>
2912         * app/makefile.msc: using /subsystem:windows again
2913         * makefile.msc: updated ALL_LINGUAS
2915 2004-08-21  Kjartan Maraas  <kmaraas@gnome.org>
2917         * configure.in: Add Â«nb» to ALL_LINGUAS.
2919 2004-08-21  Steffen Macke <sdteffen@web.de>
2921         * plug-ins/dxf/dxf-export.c: Patch from 
2922         Takeshi Hamasaki <hma@syd.odn.ne.jp>, fixes text alignment
2924 2004-08-17  Lars Clausen  <lars@raeder.dk>
2926         * config.h.win32: 
2927         * dia.spec (Release): 
2928         * doc/pl/dia.xml: 
2929         * doc/en/dia.xml: 
2930         * NEWS: 
2931         * configure.in: 
2933 2004-08-13  Ankit Patel <ankit@redhat.com>
2935         * configure.in: Added "gu" in ALL_LINGUAS.
2937 2004-08-07  Lars Clausen  <lars@raeder.dk>
2939         * configure.in:
2940         * config.h.win32: 
2941         * doc/pl/dia.xml: 
2942         * doc/en/dia.xml: 
2943         * dia.spec (Release): 
2944         * NEWS: New release 0.94-pre6
2946 2004-08-07  Lars Clausen  <lars@raeder.dk>
2948         * app/highlight.c (highlight_reset_objects): Unhighlight inside
2949         groups as well.
2951         * app/load_save.c: 
2952         * plug-ins/shape/shape-export.c: String capitalization fix from
2953         Alan Horkan <horkana@tcd.ie>
2955         * objects/UML/class.c (umlclass_show_comments_callback): Make UML
2956         Class object menu kinda work, rather than blow up.  Doesn't do a
2957         proper undoable change yet.
2959 2004-08-06  Lars Clausen  <lars@raeder.dk>
2961         * app/filedlg.c (file_save_as_callback): Don't remove related
2962         dialogs from the NULL diagram.
2964 2004-08-02  Lars Clausen  <lars@raeder.dk>
2966         * config.h.win32: 
2967         * doc/pl/dia.xml: 
2968         * doc/en/dia.xml: 
2969         * dia.spec (Release): 
2970         * NEWS: Pre5 with leak fix.
2972         * lib/font.c (dia_font_build_layout): Don't try to save an
2973         allocation of LayoutCacheItem if it breaks layout cache hash.
2974         Also make hash function correct, remove explicit height entry
2975         (it's in pfd), and make sure things are correctly unreffed.
2976         Finally fixes #148141.
2978         * lib/text.c (text_set_attributes, text_set_font): Safely unref
2979         when changing font, and actually set the new font in
2980         text_set_font(!).
2981         (text_get_attributes): Ref copied font.
2983 2004-08-01  Lars Clausen  <lars@raeder.dk>
2985         * NEWS: 
2986         * configure.in: 
2987         * dia.spec (Release): 
2988         * config.h.win32: 
2989         * doc/pl/dia.xml: 
2990         * doc/en/dia.xml: Prerelease 4.
2992         * lib/font.c (dia_font_build_layout): Better comparision and
2993         freeing of font cache.
2995 2004-07-31  Lars Clausen  <lars@raeder.dk>
2997         * lib/font.c (dia_font_build_layout): Faster update to avoid
2998         memory leaks.
3000         * app/app_procs.c: Fix from Tom Parker <palfrey@bits.bris.ac.uk>:
3001         Correctly initialize export filter variable.
3003 2004-07-25  Lars Clausen  <lars@raeder.dk>
3005         * dia.spec (Release): 
3006         * configure.in: 
3007         * NEWS: 
3008         * config.h.win32: 
3009         * doc/en/dia.xml: 
3010         * doc/pl/dia.xml: Pre3 coming out.
3012         * lib/diarenderer.c (draw_polygon): 
3013         * plug-ins/dxf/dxf-export.c (export_dxf): Two fixes by Takeshi
3014         Hamasaki <hma@syd.odn.ne.jp>: Correct header to be a 0 (zero)
3015         rather than O (letter), and assert num_points > 1 rather than the
3016         other way around.
3018         * app/recent_files.c: 
3019         * app/filedlg.c: 
3020         * app/diagram.c: 
3021         * app/app_procs.c: Patch from Vitaly Lipatov <lav@altlinux.ru>:
3022         Make filenames conform to filesystem encoding.
3024         * RDP/.cvsignore: Added standard ignore.
3025         
3026         * shapes/network/Makefile.am (SHAPES): Use PNG instead of XPM for
3027         last entry patch-panel, too.
3029         * app/*.png:
3030         * shapes/Circuit/*.png:
3031         * shapes/Civil/*.png:
3032         * shapes/Contact/*.png:
3033         * shapes/Electric/*.png:
3034         * shapes/MSE/*.png:
3035         * shapes/Pneumatic/*.png:
3036         * shapes/SDL/*.png:
3037         * shapes/flowchart/*.png:
3038         * shapes/jigsaw/*.png:
3039         * shapes/network/*.png:
3040         * shapes/sybase/*.png:
3041         * samples/dia*.png:
3042         * dia_gnome_icon_large.png:
3043         * doc/pl/graphics/*.png: Set -kb for PNGs.
3044         
3045         * sheets/{ER,GRAFCET,Istar,Jackson,KAOS}: Added .png files.
3047 2004-07-22  Lars Clausen  <lars@raeder.dk>
3049         * NEWS: 
3050         * config.h.win32: 
3051         * doc/en/dia.xml: 
3052         * doc/pl/dia.xml: 
3053         * dia.spec (Release): 
3054         * configure.in: Update to version 0.94-pre2.
3056         * app/load_save.c (diagram_data_write_doc): Use new namespace
3057         here, too.
3059         * lib/object.h (OBJECT_COMMON_PROPERTIES): Remove 'Dia' from
3060         hidden objects properties.
3062         * objects/standard/line.c: Remove halffinished line gap box from
3063         properties list.
3065         * app/paginate_psprint.c: 
3066         * app/filedlg.c: Patch from kimmidi@novell.com (Kiran Kumar
3067         Immidi): Close export and print dialog with diagram as well.
3068         (#129520)
3069         
3070         * lib/diaarrowchooser.[ch]: Patch from pborelli@katamail.com (paolo
3071         borelli):  Remove deprecated stuff (#137693)
3073         * app/dia-props.c (create_diagram_properties_dialog): Patch from
3074         kimmidi@novell.com (Kiran Kumar Immidi):  Close properties dialog
3075         on destroy.
3077 2004-07-21  Ray Strode  <rstrode@redhat.com>
3079         * dia/dia.desktop.in: Add MimeType line to desktop file
3080         new mime sytem.
3082 2004-07-18  Hans Breuer  <hans@breuer.org>
3084         * shapes/(Circuit|Contatct|MSE|network|Pneumatic|SDL|sybase)/Makefile.am 
3085           sheets/UML/*.png : icons in png format
3086         Partial fixup of stuff broken with the following comment:
3087         "7 days : xpm->png, namespace fix, first rotation bits."
3089         * app/load_save.c(read_objects) : don't add objects to the layer.
3090         This function is called recursively and only the topmost objects
3091         belong in the layers object list. Fixes bug #145417 and is the
3092         the real fix for bug #142480
3093         
3094         * app/app_procs.c : make the --size hack even uglier, but work again
3095         
3096         * lib/dia_dirs.c(dia_get_absolute_filename) : must not free()
3097         but g_free() what is returned by g_build_filename()
3098         
3099         * objects/custom/custom_object.c(custom_destroy) : handle all enum
3100         values in switch to get rid of the warning
3101         
3102         * objects/custom/shape_info.c : use g_ascii_strtod(), get rid 
3103         of setlocale()/strtod()
3104         * lib/dia_svg.c : dito
3105         * lib/dia_xml.c : almost
3107         * plug-ins/python/group_props.py : use the string representation of 
3108         value to ensure "unique values". If the strings would not be different
3109         the user cann't see the difference either
3111 2004-07-17  Lars Clausen  <lars@raeder.dk>
3113         * lib/persistence.h: Have "void" in prototypes (#142663)
3115         * lib/widgets.c (dia_font_selector_init): Better string handling
3116         (#142663) 
3118         * lib/persistence.c (persistence_save_type): Small fixes (#142663)
3120         * objects/standard/image.c (image_load): Use path of diagram
3121         rather than running directory as base for image file place.
3123         * doc/{diagram,sheet}.dtd: Move DTD namespace to new site, and
3124         syntactic fixes. 
3125         
3126         * app/disp_callbacks.c (ddisplay_canvas_events): Patch from
3127         Ambrose Li <a.c.li@ieee.org>:  Better IM context handling.
3129         * Re-added new sample diagrams binarily.
3131 2004-07-17 Sagar Rastogi <rastogi@students.iiit.net>
3133         * app/disp_callbacks.c: Fixed #144962 (also in KNOWN_BUGS),
3134         Disabled keyboard accels when dragging an object.       
3136 2004-07-14  Lars Clausen  <lars@raeder.dk>
3138         * app/grid.c (snap_to_grid): Use diagrams grid setting to
3139         determine hex grid snap.
3141         * doc/pl/Makefile.am: Avoid error based on backslash in comment.
3142         
3143         * app/interface.h: Avoid multiply defined symbols (#147396)
3145 2004-07-10  Lars Clausen  <lars@raeder.dk>
3147         * app/sheets_dialog_callbacks.c (write_user_sheet): 
3148         * lib/sheet.c (load_register_sheet): Don't introduce double
3149         slashes in namespace.
3151         * lib/dia_xml.h (DIA_XML_NAME_SPACE_BASE): Keep consistent with
3152         old diagrams, or XSLT will barf all over.
3153         
3154         * shapes/RDP/place.shape: 
3155         * shapes/RDP/transition.shape: 
3156         * shapes/RDP/Makefile.am: Added .png entries to SHAPES and changed
3157         shapes to use those.
3159 2004-07-07  Lars Clausen <lars@raeder.dk>
3161         * config.h.win32: 
3162         * doc/{en,pl}/dia.xml: 
3163         * dia.spec: 
3164         * configure.in: 
3165         * NEWS: First prerelease of version 0.94.  Now with release
3166         versions in a branch and main devel in the trunk.
3168 2004-07-05  Hans Breuer  <hans@breuer.org>
3170         * */*.[hc] */*/*.c : a bunch of changes to make Dia compile with
3171         -std=c89. Mostly //-comments and M_PI -> G_PI
3172         [Istar, Jackson, KAOS were removed from build cause they
3173         simply have *too* much C++ comments ;]
3174         * object/UML/association.c : use g_strdup() not plain strdup()
3175         * app/paginate_psprint.c : avoid storage size of `pipe_action' 
3176         isn't known with more portable signal code
3177         
3178         * app/app_procs.c : don't call gtk_init() if just --version
3179         is requested (bug #144321, Vladimir Kondratiev)
3180         
3181         * lib/prop_attr.c(fontprop_set_from_offset) : only unref 
3182         DiaFont* if not NULL
3183         * objects/UML/class.c : moved fill_in_fontdata() to 
3184         umlclass_load() to avoid such trouble, though unsure if
3185         this really is an improvement...
3186         
3187         * shapes/network/makefile.am : patch-panel added here too
3189 2004-07-04  Hans Breuer  <hans@breuer.org>
3191         * sheets/network.sheet.in shapes/network/patch-panel.xpm
3192           shapes/network/patch-panel.xpm : added 24-Port-Patch-Panel
3193         fixes bug #136629, James McDonald
3195 2004-07-04  Hans Breuer  <hans@breuer.org>
3197         * lib/persistence.c app/load_save.c app/sheet_dialog_callbacks.c
3198           lib/object_defaults.c : revert changing of Dia's XML namespace
3199         * lib/dia_xml.h : #define DIA_XML_NAME_SPACE_BASE with a comment
3200         about its purpose and relation to real world urls.
3202         * lib/plug-ins.h : increment DIA_PLUGIN_API_VERSION and 
3203         added comment about when to do so
3204         [Should have been long time ago and probably multiple times
3205         to avoid crashing on older plug-ins]
3206         * RELEASE-PROCESS : mention DIA_PLUGIN_API_VERSION
3207         * plug-ins/xslt/xslt.c : use DIA_PLUGIN_CHECK_INIT
3209         * lib/object.c objects/UML/class.c : there are still compilers not 
3210         supporting C99 and other GCCISMs like allocating dynamic sized arrays 
3211         on the stack
3212         * objects/UML/class.h : there is a differnce between a list pointer
3213         and a list pointer pointer. We and GLib want the former.
3215         * plug-ins/pixbuf/pixbuf.c : don't use app_is_interactive () to detect
3216         if Gtk is initialized. Using gdk_display_get_default () avoids the
3217         app/* dependency and is also closer to the requirements of the
3218         plug-ins working.
3220         * plug-ins/cairo/diacairo.c : initialize "unique name" field. Also
3221         some #ifdefed support for Cairo backends not public available yet.
3223         * plug-ins/wmf/wmf.cpp : finally do extended linestyles if the
3224         windoze platform supports them. This should fix bug #109818, at
3225         least for the majority running NT or above ...
3226         * plug-ins/wmf/wmf_gdi.[hc] : portability stuff for the above
3228         * objects/makefile.msc : build Istar, Jackson and Kaos
3230         * objects/UML/class.c(umlclass_load) : don't wrap by default to 
3231         keep old diagrams as they were - instead of this nice new effect ;-)
3232         Also make "wrap_operations" PROP_TYPE_BOOL in PropDescriptions
3234         * objects/UML/class.c : mark for translation _("Wrap ...
3236         * objects/UML/class.c : more correct types, also some default properties
3237         dialog pages adjustment (triggering a bug in lib/prop_widgets.c ?;)
3239         * objects/UML/activity.c : removed a leftover from the 
3240         use-localization-for-font-substitution-hack
3242         * shapes/ChemEng shapes/Cybernetic shapes/Map/Isometric :
3243         'cvs admin -kb *.png' PNG files should already be *added* as binary,
3244         otherwise they are not readable on line-end-converting-platforms
3246         * plug-ins/python/use g_new0(Dia<Im|Ex>portFiler), avoids crashing 
3247         filter_get_by_name()
3249         * plug-ins/python/pydia-property.c : some more g_warnings for
3250         not implemented conversions
3252         * plug-ins/python/group_props.py : ensure unique property values
3253         at the right place. Now something like :
3254         - load an old UML class diagram
3255         - change one of the classes to wrap operations
3256         - select all classes (/Select/Same Type)
3257         - /Dialogs/Group Properties : check wrap_operations, select '1'
3258         - Ok, works like a charm :-)
3260 2004-07-04  Lars Clausen  <lars@raeder.dk>
3262         * lib/diagdkrenderer.c (draw_string): Don't unref NULL
3263         pixbuf. (#145362)
3264         
3265 2004-07-03  Lars Clausen  <lars@raeder.dk>
3267         * app/app_procs.c (do_convert): Two patches from Vitaly Lipatov
3268         <LAV@VL3143.spb.edu>: Fixes console output problems and some
3269         interactiveness problems.
3271 2004-07-02  Lars Clausen  <lars@reader.dk>
3273         * plug-ins/pixbuf/pixbuf.c (dia_plugin_init): Don't load if the
3274         app isn't interactive.
3276 2004-07-01  Lars Clausen  <lars@raeder.dk>
3278         * plug-ins/cairo/diacairo.c: Add init of last field of filter
3279         struct to remove crash.
3281         * sheets/Makefile.am (sheet_in_files): 
3282         * shapes/Makefile.am: 
3283         * sheets/ChemEng.sheet.in: 
3284         * shapes/ChemEng/Makefile.am: 
3285         * configure.in: 
3286         New sheet from "Federico Zenith" <zenith@chemeng.ntnu.no>:
3287         Chemical engineering shapes.
3288         
3289         * app/Makefile.am (run_dia.sh$(EXEEXT)): Changed $* to $@ to allow
3290         multiple arguments when using devel script.
3292         * app/display.c (new_display): 
3293         * app/dia-props.c: 
3294         * lib/diagramdata.c (new_diagram_data): 
3295         * lib/diagramdata.h: 
3296         * app/preferences.h: 
3297         * app/preferences.c: 
3298         * app/grid.c: 
3299         * app/diagram.c: 
3300         * lib/diagramdata.c (new_diagram_data): Patch from Peter Poulsen
3301         <peter_poulsen@stofanet.dk>: Add hexagonal grid!
3303         * HACKING: 
3304         * doc/pl/authors.xml: 
3305         * doc/en/authors.xml: 
3306         * lib/object_defaults.c (dia_object_defaults_save): 
3307         * readme.win32 (BTW): 
3308         * lib/persistence.c (persistence_save): 
3309         * app/load_save.c (diagram_data_write_doc): 
3310         * app/commands.c (help_about_callback): 
3311         * README: Fix links to home page.
3313         * lib/font.c: 
3314         * app/load_save.c (diagram_data_load): 
3315         * lib/prop_text.c (stringprop_load): Avoid NULL strings when
3316         loading, and guard against them when fonting.
3318         * lib/diarenderer.c (draw_rounded_polyline): Patch from
3319         anthonym@overture.com:  Make limited rounding a corner-specific
3320         rendering-only thing.
3322 2004-06-30  Lars Clausen  <lars@raeder.dk>
3324         * lib/font.c (dia_font_build_layout): Return to 0.93.1 font size
3325         adjustment: If you can't fix it, at least don't change it.
3327         * objects/SADT/arrow.c (sadtarrow_draw): Use new rounded arrow
3328         code instead of individual code in here.
3330 2004-06-29  Lars Clausen  <lars@raeder.dk>
3332         * objects/UML/association.c: Patch from Kiran
3333         Kumar Immidi <kimmidi@novell.com>:  Fix bounding box for line end
3334         text. 
3336         * lib/geometry.c: 
3337         * lib/geometry.h: 
3338         * lib/diarenderer.c (draw_rounded_polyline): 
3339         * objects/standard/polyline.c (polyline_draw): 
3340         * objects/standard/zigzagline.c (zigzagline_draw): 
3341         Patch from anthonym@overture.com:  Add rounded polylines.
3343 2004-06-27  Lars Clausen  <lars@raeder.dk>
3345         * lib/font.c (dia_font_new_from_style): Initialize legacy name.
3347         * lib/widgets.c (dia_font_selector_get_family_from_name): Don't
3348         free family list before taking out the pointer we need. Also set
3349         the entry_nr correctly so we get the menu set up right.
3351 2004-06-23  Lars Clausen  <lars@raeder.dk>
3353         * lib/widgets.c (dia_toggle_button_new_with_images): Sink the
3354         images at the right place.
3356         * objects/Istar/actor.c
3357         * objects/Istar/goal.c
3358         * objects/Istar/istar.c
3359         * objects/Istar/istar.h
3360         * objects/Istar/link.c
3361         * objects/Istar/other.c
3362         * objects/Jackson/domain.c
3363         * objects/Jackson/jackson.c
3364         * objects/Jackson/jackson.h
3365         * objects/Jackson/phenomenon.c
3366         * objects/Jackson/requirement.c
3367         * objects/KAOS/goal.c
3368         * objects/KAOS/kaos.c
3369         * objects/KAOS/kaos.h
3370         * objects/KAOS/metaandorrel.c
3371         * objects/KAOS/metabinrel.c
3372         * objects/KAOS/other.c: Patch from Patch from Christophe Ponsard
3373         <cp@cetic.be>: Fix instability issues caused by not returning NULL
3374         in *_move_handle and *_move.  Also improved the headers with
3375         correct (c) information.
3377 2004-06-22  Lars Clausen  <lars@raeder.dk>
3379         * objects/KAOS/goal.c:
3380         * objects/KAOS/other.c:
3381         * objects/Istar/actor.c:
3382         * objects/Istar/goal.c:
3383         * objects/Istar/other.c:
3384         * objects/Jackson/domain.c:
3385         * objects/Jackson/phenomenon.c: Patch from Christophe Ponsard
3386         <cp@cetic.be>: Fix resize issues.
3388         * app/filedlg.c (file_dialog_hide): Patch from Kiran
3389         Kumar Immidi <kimmidi@novell.com>: Check for null when removing
3390         related dialog. #129520.
3392         * app/dia-props.c (diagram_properties_show): Patch from Kiran
3393         Kumar Immidi <kimmidi@novell.com>: Make sure properties dialog is
3394         a child of its diagram. #129520.
3396         * objects/UML/association.c (association_load): Patch from Kiran
3397         Kumar Immidi <kimmidi@novell.com>: Update positions properly for
3398         text placement. #118313.
3400 2004-06-17  Lars Clausen  <lars@raeder.dk>
3402         * objects/KAOS/Makefile.am: Add pixmaps/goal.xpm to EXTRA_DIST
3404         * Makefile.am: Make THANKS only be generated by maintainers.
3406         * doc/pl/Makefile.am: Removed usage+objects+basic.xml from
3407         Makefile, too.
3409         * configure.in: Added three missing Makefiles.
3411         * app/diagram.[ch]: 
3412         * app/filedlg.c:
3413         Patch from shuveb@yahoo.com (Shuveb Hussain): Remove
3414         diagram-related (save) dialog when closing diagram.  To be
3415         extended to other dialogs.
3417         * doc/pl/dia.xml: Removed reference to objects-basic. (#144527)
3419         * samples/Istar.dia:
3420         * samples/Jackson.dia:
3421         * samples/KAOS.dia:
3422         * sheets/Istar.sheet.in:
3423         * sheets/Jackson.sheet.in:
3424         * sheets/KAOS.sheet.in:
3425         * sheets/Istar/*:
3426         * sheets/Jackson/*:
3427         * sheets/KAOS/*:
3428         * objects/Istar/*:
3429         * objects/Jackson/*:
3430         * objects/KAOS/*:
3431         * configure.in: 
3432         * objects/Makefile.am (SUBDIRS): 
3433         * sheets/Makefile.am (SUBDIRS): 
3434         * samples/Makefile.am: Additions from Christophe Ponsard
3435         <cp@cetic.be>: Jackson, I* and KAOS diagram support.  Needs a bit
3436         of hacking still.
3438 2004-06-12  Lars Clausen  <lars@raeder.dk>
3440         * lib/properties.h: 
3441         * lib/prop_geomtypes.[ch]: Preparation for selectable units.
3443         * lib/font.h: Toning down comments a bit:)
3445         * lib/font.c (dia_font_build_layout): Playing around with DPI 
3447         * objects/UML/association.c (association_load): Avoid crashes on
3448         strcmp with NULL.
3450         * objects/UML/association.c: Patch from kimmidi@novell.com:
3451         Improve placement of labels when vertical.  Part fix of #118313
3453         * lib/object.c (dia_object_is_selected): Grouped objects are not
3454         selected, only the group itself.  Thus, don't crash when grouping
3455         beziers. #143681
3457         * objects/UML/association.c: Patch from kimmidi@novell.com:  Agree
3458         on how to represent empty strings.  Fixes #143639.
3460         * lib/object.c (dia_object_is_selected): Added comment answer.
3462 2004-06-12  Hans Breuer  <hans@breuer.org>
3464         * lib/diagramdata.c lib/object.c : deal with grouped objects
3465         not knowing their parent_layer, i.e. avoid crashing in 
3466         dia_object_is_selected() via group_draw() [ Triggered by
3467         playing with the Visio generated svg from bug #143455 ]
3469         * plug-ins/python/diasvg_import.py : started to implement
3470         transformation="translate(...)" and <style/> handling. Also
3471         use some other completely bogus values for em/ex scaling
3472         
3473 2004-06-08  Lars Clausen  <lars@raeder.dk>
3475         * plug-ins/cairo/.cvsignore: CVS-ignore generated makefiles.
3477 2004-06-07  Lars Clausen  <lars@raeder.dk>
3479         * app/layer_dialog.c (layer_dialog_set_diagram): 
3480         * app/display.c: Layer widget crash more properly dealt with in
3481         layer dialog code.
3482         
3483         * app/display.c (ddisplay_flush): Fixed crash when closing:  Layer
3484         widget deselect was called during destroy, but called
3485         ddisplay_flush, leading to a new display timeout after renderer
3486         was dead.
3488         * lib/widgets.c (dia_toggle_button_destroy): 
3489         * app/recent_files.c (recent_file_menuitem_create): 
3490         * lib/persistence.c (persistence_save_list): 
3491         * app/commands.c (edit_delete_callback): 
3492         * lib/object_defaults.c (dia_object_defaults_save): 
3493         * lib/parent.c (parent_list_affected_hierarchy): Killed leaks
3494         (#142669)
3495         
3496         * lib/widgets.c (dia_toggle_button_new_with_images): Remove
3497         debugging info.
3499         * lib/diagramdata.c (new_layer): Initialize connectibility.
3501         * app/display.c (ddisplay_obj_render): 
3502         * app/diagram.c (diagram_find_closest_connectionpoint): Take
3503         connectibility into account.
3505         * app/layer_dialog.h (struct _DiaLayerWidget): 
3506         * app/layer_dialog.c:
3507         Connectible toggle updates, now works fairly well.
3509         * app/select.c (select_transitive_callback): Make sure we're only
3510         selecting in the same layer.
3512 2004-06-04  Lars Clausen  <lars@raeder.dk>
3514         * app/pixmaps/Makefile.am: Also install connectable images.
3515         
3516         * app/layer_dialog.c (dia_layer_update_from_layer): Initially set
3517         layer toggles from layer itself.  Also update diagram correctly
3518         for visibility.  Still need updates for connectivity behaviour.
3520 2004-06-03  Hans Breuer  <hans@breuer.org>
3522         * plug-ins/wpg/wpg.c(draw_image) : take rowstride into account
3524         * lib/diagdkrenderer.c(set_linejoin) : actually set
3525         join_style not cap_style
3526         (set_dashes): with the correct number of dashes
3528 2004-06-03  Lars Clausen  <lars@raeder.dk>
3530         * app/modify_tool.c (click_select_object): 
3531         * lib/text.c (text_set_cursor): 
3532         * app/disp_callbacks.c (ddisplay_canvas_events): Turn off text stuff.
3534 2004-05-31  Hans Breuer  <hans@breuer.org>
3536         * lib/object_defaults.c : don't 'failed to load external 
3537         entity "NULL"' when the defaults file does not exist, 
3538         bug #108764 [again: somehow this got lost]
3540         * app/paginate_gdiprint.cpp : don guess the WMF export 
3541         filter used for printing but find it by unique name.
3542         Also update for export_func renaming
3543         * plug-ins/wmf/wmf.cpp plug-ins/cairo/diacairo.c
3544         provide some unique names
3546         * app/commands.c app/disp_callbacks.c app/paginate_psprint.c 
3547           app/select.c : fix bug #140789 by always checking if there
3548         still is an active diagram before accessing it
3550         * app/defaults.c app/properties.c : user visible string should 
3551         not read DiaObject but stay as "Object defaults/properties"
3553         * app/app_procs.c : reduce the hack to pass --size to the
3554         export via user_data to the only filter supporting it. Other
3555         filters would crash on it or do worse ;(
3557         * plug-ins/wpg/wpg.c : not every 'Object' is a DiaObject ...
3559 2004-05-31  Lars Clausen  <lars@raeder.dk>
3561         * lib/widgets.h: 
3562         * lib/widgets.c: Use GtkType rather than guint for
3563         dia_size_selector_get_type. 
3565 2004-05-29  Lars Clausen  <lars@raeder.dk>
3567         * app/diapsrenderer.c (fill_bezier): Use even-odd winding rule so
3568         that it matches the screen output for selfoverlapping polygons and
3569         beziers. 
3571 2004-05-28  Hans Breuer  <hans@breuer.org>
3573         * app/load_save.c : ignore empty groups on load and don't
3574         write empty groups while saving
3575         * lib/group.h (group_update_data): there is no first object
3576         in empty groups and they probably don't need an update at 
3577         all. Maybe the shold just not exist ?
3579         * plug-ins/cairo/diacairo.c : fixed arc drawing, right aligned
3580         text positioning as well as drawing of images with alpha
3582         * plug-ins/wmf/wmf.cpp : include windows.h if eiher
3583         HAVE_WINDOWS_H or G_OS_WIN32 is defined
3585 2004-05-28  Lars Clausen  <lars@raeder.dk>
3587         * app/pixmaps/Makefile.am (imagedir): 
3588         * app/pixmaps/visible.png:
3589         * app/pixmaps/visible-empty.png: New images for the visibility
3590         button in the layer dialog.
3592         * lib/widgets.c (dia_toggle_button_new_with_images): Remove even
3593         more border around the button.  Still some left when hovering the
3594         mouse or selecting, and the grey background is annoying.
3596         * app/layer_dialog.c (dia_layer_widget_init): Use real buttons for
3597         visibility connector.
3599 2004-05-26  Lars Clausen  <lars@raeder.dk>
3601         * configure.in (DB2MAN): Better check for db2man docbook place.
3602         Need something even better.
3604         * doc/en/Makefile.am (dia.1): Conditional on having DB2MAN.
3606         * lib/widgets.c (dia_toggle_button_new_with_images): Remove
3607         extraeneous borders.
3609         * dia_logo.png:
3610         * dia_gnome_icon.png:
3611         * samples/render-test.dia: Rendering test from Hans.
3613 2004-05-24  Hans Breuer  <hans@breuer.org>
3615         * lib/filter.h : renamed DiaExportFilter::export to
3616         _DiaExportFilter::export_func (should not use c++ 
3617         keywords (g++ specifc ?) in headers. Same for import
3618         out of pure symmetry reasons
3619         * plug-ins/shape/shape-export.c plug-ins/python/diamodule.c
3620           app/diagram.c app/filedlg.c : reflect functions renaming
3622         * plug-ins/wmf/Makefile.am : finally compile the wmf plug-in
3623         under *NIX, too. [If you want something done, do it yourself ;-]
3624         * plug-ins/wmf/wmf_gdi.[hc] : some more stuff to catch up
3625         with wmf.cpp's GDI usage
3626         * plug-ins/wmf/wmf.cpp : compile even without HAVE_WINDOWS_H,
3627         [For the moment it does not much more than compiling, i.e. 
3628         the produced WMF files are invalid, if not created on windoze.]
3630         * configure.in : check for C++ to compile plug-in/wmf
3631         
3632         * objects/GRAFCET/boolequation.c : looks like fixing 
3633         another leak (untested)
3635 2004-05-23  Hans Breuer  <hans@breuer.org>
3637         * acinclude.m4 : another attempt to fix 
3638         bug #142032 (still not sure it's the right one,
3639         but works for me(tm), which the other does not ;)
3640         
3641         * plug-ins/cairo/Makefile.am
3642           plug-ins/Makefile.am 
3643           configure.in : support building the new cairo
3644         plug-in, if given --with-cairo and the cairo
3645         packages are found, see http://cairographics.org
3646         and also http://hans.breuer.org/dia/dia-cairo.htm
3648         * plug-ins/cairo/diacairo.c : make it compile
3649         with DEBUG_CAIRO defined, too.
3651 2004-05-23  Hans Breuer  <hans@breuer.org>
3653         * plug-ins/cairo/Makefile.am : initial attempt
3655         * plug-ins/cairo/diacairo.c : a new exporter based on
3656         Cairo http://cairographics.org rendering api. Currently
3657         it just can export PNG and PS but one day it might get
3658         PDF and more almost for free. [It is not yet included
3659         in the *NIX build system due to lack of auto* magic.]
3661         * plug-ins/pixbuf/pixbuf.c : always register the export
3662         filter part. If the user does not want it it can be 
3663         disabled by File/Plugins or explicit selected the other
3664         one in the Export Formats List
3666 2004-05-23  Hans Breuer  <hans@breuer.org>
3668         * lib/dia_dirs.c : #include "message.h"
3669           lib/widgets.c : #include "persistence.h"
3670           lib/widgets.c(dia_font_selector_init) : still not C99
3671           lib/persitence.h : removed unimplemented prototype
3672           lib/persitence.c(persistence_load_list) : still not C99
3673           app/create_object.c : #include "highlight.h"
3674           app/layer_dialog.c : #include "widgets.h"
3675           app/modify_tool.c : prototype functions before usage
3676           lib/object.c : if there is G_END_DECLS there _must_ be G_BEGIN_DECLS
3677         [otherwise one will have a hard time to make C++ compile ;]
3678           lib/dia_dirs.c : #include "message.h"
3679           lib/font.c : #include <gtk/gtk.h> /* just for gtk_get_default_language() */
3680           lib/
3682         * plug-ins/xfig/xfig-import.c : dont initialize an int with
3683         a string pointer
3685         * lib/dia_image.[hc](dia_image_rgba_data) : make it work
3686         as documented, i.e. _not_ copying. Plugs a memory leak in
3687         lib/dialibartrenderer.c
3689         * lib/diarenderer.c(*_rounded_rect) : renamed parameter rounding
3690         to radius to more of a clue what it is representing
3692         * */makefile.msc lib/libdia.def : updated
3694         ChangeLog : fixed some date copy&paste bug
3696 2004-05-21  Lars Clausen <lars@raeder.dk>
3698         * NEWS: Release tag.
3700         * config.h.win32: Now 0.93+cvs
3702         * RELEASE-PROCESS: Update with new info about release branches.
3703         
3704         * Many files:  Moved devel branch back into main trunk.  Should
3705         have been done in the opposite way, with release in a branch.  
3706         
3707 2004-05-20  Hans Breuer  <hans@breuer.org>
3709         * acinclude.m4 : disable setting of PYTHON_PREFIX
3710         and PYTHON_EXEC_PREFIX from prefix and exec_prefix
3711         as workaround for bug #142032 (the real fix would 
3712         involve some auto* knowledge which I don't have
3713         either;)
3714         
3715         * plug-ins/python/Makefile.am : more python 
3716         plug-ins to be installed (especially svg import,
3717         but also 'simple scale' should be useable 
3718         sometimes)
3719         
3720         * plug-ins/python/scascale.py : update display
3721         after modifying selected objects
3722         
3723         * plug-ins/python/diasvg_import.py : initialize
3724         stroke to none
3725         
3726 2004-05-18  Lars Clausen  <lars@raeder.dk>
3728         * app/diagram_tree.c (select_node): Use
3729         diagram_remove_all_selected to kill selected list.
3731         * lib/font.c: Set language when using a different context.
3733         * plug-ins/svg/svg-import.c: Changed isdigit to g_ascii_isdigit
3734         and removed ctype include (#142661).
3736         * lib/paper.c (get_default_paper): Changed isalnum to
3737         g_ascii_isalnum and removed ctype include. (#142661)
3739         * objects/custom/shape_info.c: 
3740         * lib/dia_svg.c: 
3741         * app/diaunitspinner.c: Removed unrequired ctype.h include. (#142661)
3743 2004-05-17  Hans Breuer  <hans@breuer.org>
3745         * lib/object_defaults.c : don't 'failed to load external 
3746         entity "NULL"' when the defaults file does not exist, 
3747         bug #108764
3749         * lib/widgets.c : fixed possible menu leak
3750         * lib/dialinechooser.c lib/diaarrowchooser.c : finally
3751         avoid finalization of floating references, bug #142307
3753 2004-05-15  Lars Clausen  <lars@raeder.dk>
3755         * plug-ins/xfig/xfig-import.c: Handle default fonts and illegal
3756         fonts better (#138655)
3757         
3758         * doc/pl/Makefile.am (EXTRA_DIST): Also include all xml files here.
3760         * doc/en/Makefile.am (EXTRA_DIST): Including all required files in
3761         dist, xml, dbk and man.  Also the sub-xml files. (#142098)
3763         * Makefile.am (CLEANFILES): 
3764         * sheets/Makefile.am (EXTRA_DIST): Not distributing the
3765         translation-reports, they are generated automagically.  THANKS
3766         file not considered locally generated, so is not locally
3767         cleaned. (#133735) 
3769         * lib/widgets.[ch]: Changing dia_arrow_selector to be a gobject.
3771         * lib/diaarrowchooser.c: 
3772         * lib/prop_attr.c: Fixing naming for arrowselector.
3774         * objects/UML/object.c (objet_type): Oops, little too aggressive
3775         with the DiaObject thing here:)
3777         * objects/custom/shape_info.c (parse_svg_node): Use
3778         g_ascii_isdigit instead of isdigit.
3780         * app/diaunitspinner.c (dia_unit_spinner_update): 
3781         * lib/dia_svg.c (dia_svg_parse_style): Using g_ascii_isspace
3782         instead of isspace avoids char subscript issues (#142467).
3784         * lib/persistence.c (persistence_get_string): Fixed 0/NULL/FALSE
3785         return value conflict.
3787         * app/display.c (ddisplay_update_handler): Fixed 0/FALSE return
3788         value conflict.  Also improved signature. (#142466)
3790         * app/load_save.c (diagram_data_load): Don't overwrite the list in
3791         the layer, but instead free the returned list (#142480)
3793         * app/pixmaps/Makefile.am (IMAGES): Added png's to be installed
3794         for the grid widget.
3796         * doc/en/Makefile.am (dia.1): Make proper rule for making dia.1
3798         * configure.in (DB2MAN): Currently just check for two known
3799         positions for the docbook xsl.  Don't know a generic way to find
3800         this info.  Ought to add an option for it, but then it's really
3801         only required for maintainers, I think.  Maybe.
3803         * app/display.c (update_snap_grid_status): Remove nasty image
3804         toggling code not require for grid toggle button anymore. (#142475)
3806         * app/interface.c (create_display_shell): Use
3807         dia_toggle_button_new_with_images to create grid toggle button.
3808         Much nicer. (#142475)
3810         * app/menus.c (menus_initialize_updatable_items): Free the string
3811         along with the GString. (#142475)
3813         * lib/intl.c (free_alias_table): Free hash table entries in a
3814         proper way, avoiding duplicate frees. (#142475)
3816         * lib/object_defaults.c (_obj_store): Only free layer_name if it's
3817         not put in the hash (avoid reading freed memory). (#142476)
3819         * lib/widgets.c (dia_font_selector_set_styles): Stop leaking
3820         faces. (#142484)
3821         (dia_font_selector_get_family_from_name): Stop leaking
3822         families. (#142482) 
3824 2004-05-14  Lars Clausen  <lars@raeder.dk>
3826         * Transfer of fixes from release branch.  Not the prettiest way to
3827         do it, this should be done during release, not afterwards.
3829         Tomasz KÅ‚oczko <kloczek@pld.org.pl>:
3831         * acinclude.m4: minor fixes (added missing [] quotation).
3833         Lars Clausen  <lars@raeder.dk>:
3835         * app/interface.c (toolbox_delete): 
3836         * app/app_procs.[ch] (app_exit): Stop the delete event if the user
3837         cancels quit due to modified diagrams.
3839         Samúel Jón Gunnarsson  <sammi@techattack.nu>:
3841         * is.po: Added "is" to ALL_LINGUAS.
3843         Lars Clausen  <lars@raeder.dk>:
3845         * dia.spec: Updated as per mail from Zhang Lin-bo <zlb@lsec.cc.ac.cn>
3847         Hans Breuer  <hans@breuer.org>:
3849         * lib/makefile.msc : removed -DGTK_DISABLE_DEPRECATED; the 
3850         burden should be shared and not be win32 only ;) [this time 
3851         build was broken by adding GtkType to widget.h]
3853         * objects/standard/box.c objects/standard/ellipse.c :
3854         for code clarification compare (obj->aspect != FREE_ASPECT)
3855         and not (obj->aspect); no binary effect.
3857         * app/paginate_psprint.c : don't leak printcmd
3859         * objects/standard/box.c objects/standard/ellipse.c : fix gccisms :
3860         standard C requires variables to be declared at the beginning of 
3861         a block, also there is no fabsf() with msvc
3862         
3863         * app/win32print.[ch] : make win32_printer_close() return an
3864         error code, it's used as pclose replacement
3866         Lars Clausen  <lars@raeder.dk>:
3868         * RELEASE-PROCESS: Mention PATCH keyword in release process.
3870 2004-05-06  Lars Clausen  <lars@raeder.dk>
3872         * lib/widgets.[ch]: Utility function to make a widget with two
3873         images (selected and non-selected).
3875         * lib/diagramdata.h: Renamed selectable to connectable.
3876         Selectable will come later.
3878         * configure.in: 
3879         * app/pixmaps/Makefile.am (imagedir): 
3880         * app/pixmaps/connectable.png:
3881         * app/pixmaps/connectable-empty.png: New images for the
3882         selectability widget.  Proper installation, too.
3884         * app/layer_dialog.[ch]: Adding new button showing connectability
3885         status.  Much cleaner way of doing the button, but some problems
3886         with the item getting selected
3888         * lib/widgets.h: Reminder of how to install images for use by
3889         dia_get_image_from_file.
3891 2004-05-05  Lars Clausen  <lars@raeder.dk>
3893         * objects/network/Makefile.am: 
3894         * objects/network/pixmaps/radiocell.xpm: 
3895         * objects/network/pixmaps/basestation.xpm: 
3896         * objects/network/network.c: 
3897         * objects/network/basestation.c: 
3898         * objects/network/radiocell.c: 
3899         Patch from W. Borgert <debacle@debian.org>: Radio cell and base
3900         station objects.
3902         * lib/arrows.[ch]: Patch from Anthony <anthonym@overture.com>:
3903         Backslash arrow head. 
3905         * app/pagesetup.c (pagesetup_respond): Do not free ps twice.
3906         Notify takes care.  Should maybe use that more.
3908         * lib/diagramdata.[ch]: 
3909         * app/filedlg.c (file_export_ok_callback): 
3910         * app/diagram.c (diagram_finalize): DiagramData now a GObject.
3912         * app/dia-props.c (diagram_properties_respond): 
3913         * app/diagram.c (diagram_set_modified): 
3914         * app/undo.c: 
3915         * app/disp_callbacks.c: 
3916         * app/commands.c: 
3917         * app/load_save.c (diagram_save): 
3918         Better handling of undo and modified status -- only diagram
3919         properties and page setup explicitly set modified status, all
3920         other important changes should be done through the undo stack
3921         now.
3923 2004-05-04  Lars Clausen  <lars@raeder.dk>
3925         * app/app_procs.c (app_init): Consistently open a new diagram if
3926         none specified, with standard name Diagram1.dia.
3928         * app/layer_dialog.c: 
3929         * app/diagram.c (diagram_finalize): 
3930         * app/commands.c (dialogs_layers_callback): 
3931         * app/filedlg.c (file_export_ok_callback): 
3932         * app/app_procs.c (app_exit): 
3933         * app/display.c (display_set_active): 
3934         * app/interface.c (dia_dnd_file_drag_data_received): 
3935         * app/recent_files.c: 
3936         Undone attempt at unifying the multi-diagram windows (like
3937         layers).  It broke the layers and didn't make much sense for the
3938         diagram properties dialog anyway.
3940         * lib/group.c: 
3941         * lib/diatypes.h: 
3942         * lib/diagramdata.c: 
3943         * lib/object.h: 
3944         * lib/object.c: Undone attempts at GObject'ifying DiaObject -- too
3945         many subclasses have to be fixed.  Fixed remaining
3946         Object/ObjectType renaming issues.
3948 2004-05-02  Lars Clausen  <lars@raeder.dk>
3950         * lib/object.[ch]: Making DiaObject a GObject.  Now can I avoid
3951           having to make all the children objects conform to
3952           GObject style at once?  Warning!  Does not compile right now.
3954         * many, many files: Rename Object to DiaObject in preparation for
3955           making it a GObject.
3956         
3957         * app/diagram.[ch]: Turn diagram into a real GObject.
3959         * app/pagesetup.c: 
3960         * app/filedlg.c: Correctly ref and unref diagram. 
3962         * lib/diagramdata.h: Starting to turn it into a GObject as well.
3964 2004-05-02  Lars Clausen  <lars@raeder.dk>
3966         * lib/object.[ch]: Starting to convert Object to DiaObject, son of
3967         GObject. 
3969         * app/dia-props.c: Undo the attempt at making it really
3970         multi-diagram, now going for a one-diagram dialog.
3972 2004-04-30  Lars Clausen  <lars@raeder.dk>
3974         * app/undo.c: Undoing broken undo stuff for diagram properties and
3975         page setup.  Shouldn't be mixed into undo at all.
3977         * app/render_gdk.c (draw_pixel_line): Use the dash-setting
3978         function to avoid in particular the grid crawling.
3980         * lib/diagdkrenderer.[ch] (dia_gdk_renderer_set_dashes): Function
3981         to allow aligning dashes, so they don't crawl.
3983 2004-04-28  Lars Clausen  <lars@raeder.dk>
3985         * app/Makefile.am: New files diacanvas.[ch]
3987         * app/interface.c (create_display_shell): Use new diacanvas that
3988         allows placing widgets on canvas, for text edit.
3990         * lib/object.h: 
3991         Early work towards rotation.  No implementation yet.
3993         * app/layer_dialog.c (undo_layer): 
3994         * objects/network/bus.c (bus_create_change): 
3995         * objects/standard/box.c (aspect_create_change): 
3996         * objects/standard/ellipse.c (aspect_create_change): 
3997         Use g_new0 for change struct.
3999         * app/undo.c (diagram_change_apply_or_revert): 
4000         Support for undo of diagram properties and page setup.
4002         * app/disp_callbacks.c (ddisplay_canvas_events): 
4003         * lib/text.h: 
4004         * lib/diagramdata.h: 
4005         * app/modify_tool.c (click_select_object): 
4006         * lib/text.c (text_register_editable): 
4007         Starting work on new text editing model.  Guarded by #ifdef so
4008         far. 
4010 2004-04-07  Lars Clausen  <lars@raeder.dk>
4012         * app/recent_files.c (open_recent_file_callback): 
4013         * app/interface.c (origin_button_press): 
4014         * app/filedlg.c (file_open_ok_callback): 
4015         * app/display.c: 
4016         * app/diagram.[ch]: 
4017         * app/commands.c (dialogs_layers_callback): Using new
4018         diagram_set_current() function to ensure auxilliary windows are
4019         updated. 
4021         * app/layer_dialog.c: Trying to unify with dia-props.  Diagram
4022         menu now borken.  *sniff*
4024         * app/dia-props.c: Diagram properties window attempted
4025         persistentified.  Trying to make more like layer dialog (since it
4026         already changes when the diagram changes), but some things still
4027         borken. 
4029 2004-04-06  Lars Clausen  <lars@raeder.dk>
4031         * lib/dialinechooser.[ch] (dia_line_chooser_set_line_style): 
4032         * lib/attributes.c (attributes_set_default_line_style): 
4033         * app/interface.c (create_lineprops_area): 
4034         Make line style persistent as well.  Added function to directly
4035         set the style and dashlength of a dialinechooser. 
4037 2004-04-03  Lars Clausen  <lars@raeder.dk>
4039         * objects/standard/ellipse.c (ellipse_move_handle, ellipse_copy):
4040         Copy the ellipse extra handle correctly.
4042         * objects/standard/box.c (box_move_handle): Move definitions
4043         according to bug #138925.
4045 2004-04-02  Lars Clausen  <lars@raeder.dk>
4047         * app/recent_files.c: Use absolute name for recent files list.
4049         * lib/attributes.c: Set start and end arrow types, correctly.
4051         * lib/widgets.c (dia_arrow_selector_set_arrow): Use new function
4052         to get arrow index.
4054         * lib/diaarrowchooser.[ch]: Support for setting arrow info.
4056         * app/interface.c (create_lineprops_area): Set persistently stored
4057         arrow info.
4059         * lib/arrows.[ch]: New function to get arrow index (in arrow_types)
4060         from arrow type.
4062         * lib/dia_dirs.c: dia_get_absolute_path now creates a canonical
4063         path (i.e. without '.' or '..').  Not tuned for Win32 yet.
4065         * plug-ins/xfig/xfig-import.c: Redone ordering of import to comply
4066         with what xfig does.  Text now converted from latin-1 to utf-8
4067         (latin-1, since that's what xfig seems to use.  Would like to see
4068         examples of non-latin-1 figs).  String case problems fixed.
4070 2004-04-01  Lars Clausen  <lars@raeder.dk>
4072         * lib/attributes.c: 
4073         * app/interface.c: Default arrows now stored persistently, too.
4075         * lib/arrows.[ch]: New function to get arrow type from name.
4077         * app/color_area.c (color_area_create): 
4078         * lib/attributes.c: 
4079         * app/linewidth_area.c: Also persistent colors and line width.
4080         That was easy.  Arrows and line style will take a bit more work,
4081         but not much.
4083 2004-04-01  Lars Clausen  <lars@raeder.dk>
4085         * app/preferences.c:   All preferences are now
4086         handled by persistence, old prefs load and store code is gone.
4088         * lib/persistence.[ch]: Added string and color persistents.  This is
4089         a different string from the one used in the printer dialog, that
4090         one has a GtkEntry attached -- may want to make that one an
4091         encapsulation of this one or something.
4093 2004-03-31  Lars Clausen  <lars@raeder.dk>
4095         * app/app_procs.c: Do persistence before prefs.  Prefs are to be
4096         phased out anyway.
4097         
4098         * lib/persistence.[ch]: 
4099         * app/preferences.c: Adding persistence for integers, reals,
4100         booleans.  Fixed stupid list bug.  Test persistence for prefs.
4102 2004-03-30  Lars Clausen  <lars@raeder.dk>
4104         * app/recent_files.c: 
4105         Debugging of deallocation.
4106         
4107         * lib/widgets.c: 
4108         Font menu now uses persistence.  Ordering needs fixing, or it must
4109         be sorted.
4111         * lib/libdia.def: 
4112         * lib/Makefile.am (libdia_la_SOURCES): 
4113         * app/Makefile.am (dia_core_files): 
4114         * app/persistence.[ch]: 
4115         * lib/persistence.[ch]: Moved to lib as widgets need it.  Also a
4116         number of fixes, including multiple entries now being read
4117         properly.  Still some oddity about the persistent list having the
4118         role as first entry (which makes the font menu crash after a few
4119         iterations). 
4121 2004-03-26  Lars Clausen  <lars@raeder.dk>
4123         * app/persistence.c:
4124         * app/recent_files.[ch]: Redoing the recent-files list using
4125         persistence, reducing code by about 50%.  Still a problem when
4126         selecting an item from the menu -- possibly it doesn't like the
4127         menu being destroyed while in the callback?
4129 2004-03-25  Lars Clausen  <lars@raeder.dk>
4131         * app/persistence.c (persistence_load_string): Missing semicolon?!?
4133 2004-03-24  Lars Clausen  <lars@raeder.dk>
4135         * RELEASE-PROCESS: 
4137         * app/persistence.[ch]: 
4138         * app/paginate_psprint.c (diagram_print_ps): New type of data can
4139         be stored persistently:  Strings.  Only the printer command/file
4140         go in here now, but things like creator, organization, diagram
4141         comments etc could also be handled this way.
4143         * objects/standard/beziergon.c (beziergon_draw): Avoid control
4144         lines when the object is not selected.
4146 2004-03-23  Lars Clausen  <lars@raeder.dk>
4148         * lib/connectionpoint.h: 
4149         * app/load_save.c: Allow connection points to have names, and
4150         handle that in load/store.
4152         * lib/dialibartrenderer.c: Better highlighting for text.
4154         * lib/diagdkrenderer.h (struct _DiaGdkRenderer): 
4155         * lib/diagdkrenderer.c: Better highlighting for all, using same
4156         principles as libart highlighter.
4158 2004-03-22  Lars Clausen  <lars@raeder.dk>
4160         * lib/dialibartrenderer.[ch]: 
4161         * lib/diagdkrenderer.c: 
4162         * lib/object.h: 
4163         * app/object_ops.c:
4164         * app/diagram.[ch]:
4165         * app/display.[ch]:
4166         * app/Makefile.am: 
4167         * app/modify_tool.c: 
4168         * app/create_object.c: 
4169         * app/highlight.[ch]: 
4170         Added simple object highlighting.  In GDK rendering, highlights
4171         the bbox, in libart highlights the outline of the object (except
4172         for texts).
4174 2004-03-22  Lars Clausen  <lars@raeder.dk>
4176         * RELEASE-PROCESS: Added info on how to do a branch for
4177         development during release process.
4179 2004-03-20  Lars Clausen  <lars@raeder.dk>
4181         * RELEASE-PROCESS: Mention PATCH keyword in release process.
4183 2004-03-19  Lars Clausen  <lars@raeder.dk>
4185         * xmldocs.make: Fixed apparent uninstall error.
4187         * config.h.win32: 
4188         * doc/en/dia-manual.xml: 
4189         * doc/pl/dia-manual.xml: 
4190         * dia.spec: 
4191         * configure.in: 
4192         * NEWS: Version 0.93-pre1.
4194         * lib/dialinechooser.[ch]: Patch from pborelli@katamail.com (paolo
4195         borelli):  Remove some deprecated stuff.
4197 2004-03-18  Lars Clausen  <lars@raeder.dk>
4199         * Makefile.am: Try better uninstall thing for scrollkeeper.
4201         * objects/ER/entity.c: 
4202         * lib/arrows.[ch]: Patch from Georg Lothar Thimm
4203         <MGEORG@ntu.edu.sg>: Adds new ER arrows 1 or many, 0 or many, 0 or
4204         1, 1 exactly, as well as associative ER entities.
4206 2004-03-17  Lars Clausen  <lars@raeder.dk>
4208         * Makefile.am: Make distcheck not complain about scrollkeeper
4209         problems (as per advice from James Henstridge).
4211         * doc/pl/*.{xml,sgml}: Converted SGML manuals to XML to get better
4212         standard installation.
4214         * objects/standard/ellipse.c: Better strings for object menu.
4216         * app/sheets_dialog_callbacks.c: Fixed crashes from broken caching
4217         of dialogs (shame on you, glade!)
4219         * objects/custom/custom_object.c (custom_setup_properties):
4220         Removed debugging output
4222         * app/paginate_psprint.c (diagram_print_ps): Slightly more
4223         readable printer error messages.
4225         * xmldocs.make: 
4226         * omf.make: 
4227         * doc/en/Makefile.am: 
4228         * doc/pl/Makefile.am: 
4229         New more standard way to install the XML-based manuals.  
4231 2004-03-15  Lars Clausen  <lars@raeder.dk>
4233         * objects/standard/box.c (box_move_handle): More intuitive fixed
4234         aspect behaviour.
4236         * objects/standard/ellipse.c: 
4237         * objects/standard/box.c: 
4239         * lib/widgets.[ch]:
4240         * app/layer_dialog.[ch]:
4241         Patch from Steve Langasek <vorlon@debian.org>:
4242         Fixes startup crash on Alpha (bug #137169)
4243         
4244         * objects/standard/box.c: Aspect fixing like ellipses.
4246         * app/Makefile.am (dia_core_files): Include dia-app-icons.h
4248         * lib/pixmaps/Makefile.am (imagedir): Better Makefile.am for
4249         pixmaps, now can uninstall properly.
4251         * objects/standard/ellipse.c: Patch from dooms@info.ucl.ac.be:
4252         Fixed and circle aspect ratios for ellipses.  Bug #137156, #87966,
4253         #93940. 
4254         Added object menu access.
4256 2004-03-07  Hans Breuer  <hans@breuer.org>
4258         * lib/diaarrowchooser.c lib/dialinechooser.c : #undef
4259         GTK_DISABLE_DEPRECATED (I'd rather like if these widgets
4260         would not use deprecated apis, but it's much simpler this way)
4262         * lib/makefile.msc : build the above new widgets and render_pixmap
4263         * lib/libdia.def app/dia.def app/makefile.msc : updated
4265         * app/disp_callbacks.c : fix gccisms (without being able to make much sense of 
4266         what I saw, i.e. how big is an empty array supposed to be ? ;-). 
4267         Previously it gave :
4268         disp_callbacks.c(188) : error C2059: syntax error : '}'
4269         disp_callbacks.c(191) : warning C4034: sizeof returns 0
4271         * app/interface.c : #include "dialinechooser.h"
4273         * lib/diagdkrender.c : make the !HAVE_FREETYPE case compile again
4274         [one more reason not to use it here : it's quite slow compared to
4275          the native win32 font renderer ;]
4277         * app/app_procs.c app/filedlg.c : gtk_widget_destroy does not take
4278         a GtkDialog*, removed unneeded cast
4280         * app/render_eps.c : avoid assignment warning for void* user_data
4281         not being an int 
4283 2004-03-06  Steffen Macke sdteffen@web.de>
4285         * shapes/Map/Isometric/Makefile.am: added Makfile for Isometric
4286         shapes
4288 2004-03-06  Lars Clausen  <lars@raeder.dk>
4290         * lib/arrows.h (DEFAULT_ARROW_SIZE): Downed default arrow size to
4291         0.5, as per poll.
4293         * lib/font.c: Simple cleanup system for layout cache removes any
4294         layout that hasn't been used for 10 minutes, but only during idle
4295         time. 
4297 2004-03-05  Lars Clausen  <lars@raeder.dk>
4299         * sheets/Electric.sheet.in: Added patch from padro@lsi.upc.es
4300         (lluis padro) (#130887): Extended Electric shapes with vertical
4301         versions. 
4303         * sheets/Cybernetics.sheet.in: Normalize shape descriptions (never
4304         start with "Create a" or "A", always capitalize first word).
4306         * objects/standard/ellipse.c: Patch from Grégoire Dooms
4307         <dooms@info.ucl.ac.be>: Add extra connection point in center of
4308         ellipse.  Additionally added a handle in the center, and resize is
4309         now around the center.
4311         * configure.in: 
4312         * sheets/Makefile.am (SUBDIRS): 
4313         * sheets/IsometricMap.sheet.in: 
4314         * shapes/Map/Isometric/*
4315         * shapes/Makefile.am (SUBDIRS): Added Isometric shapes.
4317 2004-03-04  Lars Clausen  <lars@raeder.dk>
4319         * lib/Makefile.am: 
4320         * lib/pixmaps/Makefile.am: 
4321         * configure.in: 
4322         Better installation handling of pixmaps.
4323         
4324         * lib/diagdkrenderer.c: 
4325         * lib/diagtkfontsel.h (struct _DiaGtkFontSelectionClass): 
4326         * lib/diagtkfontsel.c (dia_gtk_font_selection_show_available_fonts): 
4327         Constness fixes.
4329 2004-03-03  Lars Clausen  <lars@raeder.dk>
4331         * lib/diagtkfontsel.h (struct _DiaGtkFontSelection): 
4332         * lib/diagdkrenderer.c: 
4333         * lib/diasvgrenderer.c:
4334         * lib/dialibartrenderer.c:
4335         * lib/diainteractiverenderer.c: 
4336         * lib/prop_text.c (multistringprop_handle_key): 
4337         * lib/dia_dirs.c: 
4338         * lib/dia_image.c (dia_image_rgba_data): 
4339         * lib/widgets.c: 
4340         * lib/diagramdata.c (layer_set_object_list): 
4341         * lib/font.h: 
4342         * lib/font.c: 
4343         Getting rid of compile warnings.
4345         * lib/widgets.c: Handle destroy properly, i.e. unref the two extra
4346         images.  Also remove unused decls.
4348 2004-03-02  Lars Clausen  <lars@raeder.dk>
4350         * lib/widgets.h: 
4351         * lib/widgets.c (dia_size_selector_init): Add images to the size
4352         selector chain widget.  Also new function to load installed images
4353         from files (better than from included XPM, IMHO).
4355 2004-03-02  Lars Clausen  <lars@raeder.dk>
4357         * lib/libdia.def: 
4358         * lib/pixmaps/[un]broken-chain.xpm: Icons stolen from GIMP for the
4359         size selector.
4361         * lib/Makefile.am: 
4362         * lib/widgets.c (dia_size_selector_init): Work
4363         on getting proper icon onto the size selector.  Need simple image
4364         load mechanism in utils.
4366         * lib/text.c: 
4367         * app/display.[ch]:
4368         * app/disp_callbacks.c: Patch from kou@cozmixng.org: Show preedit
4369         strings, handle utf8 strlen properly.  Bug #135930.
4371 2004-03-01  Lars Clausen  <lars@raeder.dk>
4373         * shapes/Cybernetics/*:
4374         * sheets/Cybernetics.sheet.in:
4375         * sheets/Makefile.am:
4376         * shapes/Makefile.am: 
4377         * configure.in: Patch from charly.meyer@t-online.de (Thorsten
4378         Roggendorf): Cybernetic shapes (#95553).
4380 2004-03-01  Lars Clausen  <lars@raeder.dk>
4382         * app/Makefile.am: Fixed $(EXEEXT) warning from automake.
4384         * lib/diatypes.h: New type DiaSizeSelector.
4386         * lib/widgets.[ch]: New size selector widgets that selects two
4387         values (width and height, nominally) optionally linked to keep
4388         aspect ratio.
4390 2004-03-01  Hubert Figuiere  <hfiguiere@teaser.fr>
4392         * plug-ins/svg/render_svg.c (new_svg_renderer): Add DTD declaration
4393         in front of file. Bug #128600.
4395         * app/Makefile.am:
4396         * app/interface.h:
4397         * app/lineprops_area.[ch]:
4398         * lib/Makefile.am:
4399         * lib/dialinechooser.[ch]:
4400         * lib/widgets.c (dia_line_style_selector_init): use line preview 
4401         instead of text labels. This involve moving away line_chooser to lib
4402         from app.
4404         * lib/diaarrowchooser.[ch] (close_and_hide): Make static to avoid
4405         symbol conflicts.
4407         * app/Makefile.am (dia_core_files): 
4408         * app/interface.c (create_lineprops_area):
4409         * app/render_pixmap.[ch]:
4410         * lib/Makefile.am:
4411         * lib/diaarrowchooser.[ch]:
4412         * lib/libdia.def:
4413         * lib/prop_attr.c:
4414         * lib/propdialogs.c:
4415         * lib/render_pixmap.[ch]:
4416         * lib/widgets.c (dia_arrow_fill_menu): Use arrow preview instead
4417         of text labels. This involve moving away arrow_chooser to lib from
4418         app.
4420 2004-02-29  Lars Clausen  <lars@raeder.dk>
4422         * objects/UML/class.[ch]: Puny kludge to avoid GtkList objects
4423         being updated half-way through destruction.  To be removed when
4424         the lists are replaced by something better.
4426         * objects/UML/class_dialog.c: Patch from luc@handhelds.org:
4427         Accelerators for class dialog.  Bug #130995.
4428         Patch from luc@handhelds.org: Better aligning of widgets.  Bug #130994.
4430         * app/dia-props.c:
4431         * app/preferences.c:
4432         * lib/properties.c:
4433         * objects/GRAFCET/step.c:
4434         * objects/Misc/analog_clock.c:
4435         * objects/chronogram/chronoline.c:
4436         * objects/chronogram/chronoref.c:
4437         Change to american spelling (color, not colour) to ease
4438         translators job.  Note that a number of translations may need an
4439         update now.  Bug #120466.
4441 2004-02-29  Lars Clausen  <lars@raeder.dk>
4443         * plug-ins/xfig/xfig-export.c: Patch from solworth@cs.uic.edu:
4444         Better arrow handling for missing arrows.
4446         * plug-ins/metapost/render_metapost.[ch]: Patch from
4447         phred@cs.berkeley.edu (Fred Reiss): Add font faces and font
4448         size. See bug #135363.
4450         * app/app_procs.c (app_init): If non-interactive, or if
4451         --log-to-stderr used, send all messages to stderr.  This should
4452         mean that old diaconv == dia --export-to-format=FOO BAR
4454 2004-02-29  Hubert Figuiere  <hfiguiere@teaser.fr>
4456         * app/menus.c: Get rid of GNOME menus. Deprecated APIs in GNOME 2.
4458 2004-02-28  Lars Clausen  <lars@raeder.dk>
4460         * lib/text.c (text_key_event): Patch from Kouhei Sutou
4461         <kou@cozmixng.org>: Fix wrong utf8 strlen handling.
4463 2004-02-27  Lars Clausen  <lars@raeder.dk>
4465         * KNOWN_BUGS: Added info on most commonly reported bugs, with
4466         BugZilla numbers.
4467         
4468         * app/disp_callbacks.c (popup_object_menu): Unified properties
4469         entry, fixes bug #105080.
4471         * app/diagram.c (diagram_update_menu_sensitivity): 
4472         * app/menus.h (struct _UpdatableMenuItems): 
4473         * app/menus.c (menus_initialize_updatable_items): Menu items
4474         changed around, align menus flattened, properties entry ghosted,
4475         dialogs menu removed, more shortcuts added.  Closing bugs #94018,
4476         #117495, #135125.
4477         Also taking out Gnome menus for now.  They don't allow shortcuts,
4478         so what are they good for?
4480 2004-02-27  Lars Clausen  <lars@raeder.dk>
4482         * app/menus.c (display_menu_items): 
4483         * app/commands.[ch]: Added duplicate menu item from Alan Horkan
4484         (bug #95546).
4486 2004-02-24  Adam Weinberger  <adamw@FreeBSD.org>
4488         * configure.in: Added 'en_CA' (Canadian English) to ALL_LINGUAS.
4490 2004-02-23  Lars Clausen  <lars@raeder.dk>
4492         * app/app_procs.c (app_init): Comments for translators.
4494 2004-02-22  Hubert Figuiere  <hfiguiere@teaser.fr>
4496         * app/preferences.c (prefs_create_dialog): Change packing policy
4497         for widget to expand.
4499         * app/Makefile.am (run_dia.sh): Fixed a typo in wrapper that prevented
4500         running with a debugger.
4502 2004-02-19  Lars Clausen  <lars@raeder.dk>
4504         * app/undo.[ch]: Adding last-saved information to undo to allow a
4505         diagram with all changes since last save undo to be marked as
4506         nonmodified.  Still needs integration with actual undo
4507         apply/revert calls.
4509         * app/diagram.h: 
4510         * app/diagram_tree.c (diagram_tree_update): 
4511         * app/diagram.c: 
4512         * app/display.c (update_modified_status): 
4513         * plug-ins/python/pydia-diagram.c (PyDiaDiagram_GetAttr): 
4514         * app/autosave.c (autosave_check_autosave): Encapsulate modifed
4515         test. 
4517         * app/render_eps.[c]: Restructure to better handle PS vs. EPS
4518         vs. EPSI, comment out EPSI until preview is in there.
4520         * lib/render.c: 
4521         * lib/diarenderer.c: Removing debugging printfs.
4523         * app/diapsrenderer.[ch]: Preparations for proper EPSI rendering
4524         (with preview)
4526         * objects/standard/arc.c (arc_update_handles): Check to avoid
4527         crash when start and end points are the same.
4529 2004-02-19  Lars Clausen  <lars@raeder.dk>
4531         * objects/standard/bezier.c: 
4532         * objects/standard/line.c (line_load): 
4533         * objects/standard/polyline.c (polyline_load): 
4534         * objects/standard/zigzagline.c (zigzagline_load): 
4535         * objects/standard/arc.c (arc_load): 
4536         * lib/widgets.h (DEFAULT_ARROW_WIDTH): Use DEFAULT_ARROW_SIZE
4537         instead of hardcoding.
4539 2004-02-18  Hubert Figuiere  <hfiguiere@teaser.fr>
4541         * app/disp_callbacks.c (popup_object_menu): append a menu item to 
4542         display properties.
4544 2004-02-17  Hubert Figuiere  <hfiguiere@teaser.fr>
4546         * app/app_procs.c: declare rc properly with the proper #ifdef
4548 2004-02-17  Lars Clausen  <lars@raeder.dk>
4550         * plug-ins/xfig/xfig-import.c: Correct ordering of imported FIG
4551         objects (which seemingly FIG itself breaks, or else there is no
4552         ordering).
4554 2004-02-16  Lars Clausen  <lrclause@cs.uiuc.edu>
4556         * plug-ins/xfig/xfig-export.c (figLineWidth): Check for minimum
4557         width renderable in xfig.  Helps on bug #133637, but does not
4558         quite fix it -- something about depth is wrong.
4560         * plug-ins/xslt/xslt.[ch]: Patch #133913 from phenning@lanl.gov:
4561         Extern definitions for Mac compilation.
4563         * app/app_procs.c: Patch #131159 from J. H. M. Dassen
4564         (jdassen@debian.org): Include fix.
4566         * app/interface.c: Patch #130100 from luc@handhelds.org:  Make
4567         sure the initial diagram size is correct.
4569 2004-02-15  Lars Clausen  <lrclause@cs.uiuc.edu>
4571         * lib/Makefile.am (AM_CPPFLAGS): Override AM_CPPFLAGS instead of
4572         CPPFLAGS, as per automake warning.
4573         * app/Makefile.am (AM_LDFLAGS): Override AM_LDFLAGS instead of
4574         LDFLAGS, as per automake warning.
4575         (run_dia.sh): More robust creation, and more easily moved.
4577         * app/undo.c (group_objects_revert): Don't double-free the objects
4578         list.  (#129221) Call object_add_updates on grouped objects.
4579         (ungroup_objects_revert): Call object_add_updates on grouped objects.
4581         * lib/diagramdata.c: Internal
4582         documentation. 
4584         * lib/polyshape.c (polyshape_update_data): Correctly calculate
4585         directions for polyshape corners (thanks, Valgrind!)
4587         * lib/attributes.c: 
4588         * lib/prop_attr.c (arrowprop_load): Use default arrow size.
4590         * lib/arrows.h: Default arrow size defined.  After all are using
4591         this, may lower to 0.4 or so.
4593         * app/lineprops_area.[ch]: New function to set the arrow type for an
4594         arrow chooser.
4596         * app/interface.c (create_lineprops_area): Set default line to
4597         have an arrow (fairly likely to be what's wanted, plus it shows
4598         the user where arrows are set).
4600         * app/app_procs.c: #ifdef HAVE_POPT popt args to process_opt
4602 2004-02-14  Lars Clausen  <lrclause@cs.uiuc.edu>
4604         * plug-ins/metapost/render_metapost.c (draw_with_linestyle):
4605         Dotted lines should use dot_length, not dash_length.
4607 2004-02-06  Hans Breuer  <hans@breuer.org>
4609         * app/interface.c : don't use gtk_drawing_area_size() to avoid
4610         the defaut size being also the minimum size. Instead use
4611         gtk_window_set_default_size() on the display shell. Fixes #130982.
4613         [fixing #131210, but umlauts in the 'main' filename still not really 
4614          supported on systems where filesystem encoding != utf8
4615         (Problems with recent file menu and window title)]
4616         * lib/dia_xml.[hc] : add data_filename() and data_add_filename()
4617         to deal with possible differnces in filename encodings, see
4618         g_filename_<to|from>_utf8()
4619         * objects/standard/image.c : use them.
4621         * lib/widgets.c : handle possible encoding difference here, too.
4622         Also get rid of most warnings by using const and GTK casts where 
4623         appropriate; one wrong cast (probably causing a crash) was found/fixed 
4624         by this - the remaining give a hint on finally leaking FontSelectorEntry.
4626         * lib/widgets.[hc] : hide _DiaFileSelector and *Class in .c. Modified
4627         dia_file_selector_<get|set>_file to behave like the respective Gtk 
4628         functions do : encoding- and const-wise ;-)
4630 2004-02-01  Robert Sedak  <robert.sedak@sk.htnet.hr>
4632         * configure.in: Added "hr" (Croatian) to ALL_LINGUAS.
4634 2004-01-19  Hans Breuer  <hans@breuer.org>
4636         * app/app_procs.c app/diaconv : 
4637         only call bind_textdomain_codeset when available, what's good 
4638         for The Gimp (bug #131215) can't be wrong for Dia : bug #125926
4639         * config.h.win32 : define HAVE_BIND_TEXTDOMAIN_CODESET
4641 2004-01-19  Steffen Macke <sdteffen@web.de>
4643         * makefile.msc: updated for new GAIM-like installer build; sync'ed
4644         ALL_LINGUAS with configure.in
4646 2004-01-18  Hans Breuer  <hans@breuer.org>
4648         * app/app_procs.c (myXmlErrorReporting) : avoid possible crash 
4649         by not passing NULL to g_print()
4651         * app/interface.c (create_toolbox) : actually use
4652         persitence_register_window() to restore toolbox window size
4654         * app/makefile.msc lib/makefile.msc : allow to deselect
4655         building with Freetype by command line to nmake like :
4656                 nmake -f makefile.msc "NOFT2=1"
4658         * plug-ins/python/diasvg_import.py : handle 'stroke-array' as
4659         far as possible with Dia's limited line style
4660         * plug-ins/python/pydia-property.c : allow to get and set
4661         Linestyle, style and dash(length)
4663         * lib/object.h : removed typedef for ObjectId not use anywhere
4665 2004-01-17  Hans Breuer  <hans@breuer.org>
4667         * objects/custom/shape_info.[hc] objects/custom/custom_object.c
4668           doc/shape.dtd doc/custom-shapes : 
4669         support for images in custom shapes, also removed some long-time
4670         dead code
4672         * doc/en/*.xml : fixed crippled line ends which get created
4673         when windoze line ends are checkin from the unix side
4675 2004-01-13  Laurent Dhima  <laurenti@alblinux.net>
4677         * configure.in: Added "sq" to ALL_LINGUAS.
4679 2004-01-11  Hans Breuer  <hans@breuer.org>
4681         [more less leaks ;-]
4682         
4683         * objects/SADT/annotation.c : use text_destroy() not g_free()
4684         
4685         * objects/chronogram/chronoline.c : neither leak chronoline::events
4686         nor chronoline::name
4688         * objects/wpg/wpg.c : don't g_free() but g_object_unref(renderer);
4690 2004-01-11  Hans Breuer  <hans@breuer.org>
4692         * lib/properties.h :
4693         * objects/custom/custom_object.c : more properties optional
4694         to be backward compatible for older diagrams not having them 
4695         set. (Try to load samples/all_objects.dia)
4696         
4697         [less memory leaks thanks valgrind ;-]
4698         
4699         * app/recent_files.c (recent_file_history_write) : 
4700         g_free(history_filename);
4701         (recent_file_menu_item) : use g_path_get_basename() 
4702         which already strdups, free result of g_strescape()
4703         
4704         * app/filedlg.c (create_export_menu) : return of
4705         filter_get_export_filter_label() must be g_free()'d
4706         (create_open_menu) : same for import
4707         
4708         * app/export_png.c (export_png_ok) : destroy info ptr
4709         with png_destroy_write_struct()
4710         
4711         * app/app_procs.c (app_init) : g_free(export_format_string);
4712         
4713         * lib/font.c (dia_font_finalize) : finalize parent_class, too
4714         (dia_font_new_from_style) : stop leaking almost all DiaFont by not
4715         refing it a second time, g_type_create_from_instance() is enough
4716         
4717         * lib/object_defaults.c (_obj_store) : don't mess with names
4718         len 0 (should avoid 'Invalid read of size 1, but doesn't ;)
4719         
4720 2004-01-11  Steffen Macke <sdteffen@web.de>
4722         * app/diapsftrenderer.c: including ftoutln.h
4723         * app/makefile.msc: updated for freetype build
4724         * lib/libdia.def: added dia_font_get_context()
4725         * lib/dialibartrenderer.c (draw_string): added cast
4726         
4727 2004-01-10  Hans Breuer  <hans@breuer.org>
4729         * lib/diagdkrenderer.c (draw_string) : gdk_draw_line with
4730         transformed coordinates, fixes bug 130804
4732 2004-01-10  Hans Breuer  <hans@breuer.org>
4734         * app/filedlg.c app/app_procs.c : don't try to destroy 
4735         'gtk_dialog_run'-dialogs dialogs by connecting to the "response"
4736         signal but simply by gtk_widget_destroy() after gtk_dialog_run()
4737         returns. Fixes 'has no handler' bugs like #121019
4739 2004-01-10  Hans Breuer  <hans@breuer.org>
4741         * objects/UML/class.c objects/UML/class_dialog.c : 
4742         handle umlclass->name being empty to avoid, i.e. fix #127968
4744         [plugging memleaks, thanks valgrind :-]
4745         
4746         * lib/dia_xml.c (data_string) : don't leak return value
4747         of xmlNodeListGetString()
4748         
4749         * lib/dia_xml.c (xml_file_check_encoding) : g_free(buf)
4750         before returning, maybe alloca() would be the better 
4751         choice but anyway ;)
4753         * objects/custom/custom_object.c:306 : adde xmlFree(str) below
4754         
4755         * lib/font.c (dia_font_build_layout) : don't leak result
4756         of g_utf8_strdown()
4757         
4758         * lib/diagdkrenderer.c (draw_string) : don't leak rgba
4759         (this is the one which got me started using valgrind, see #130816)
4760         
4761 2004-01-07  Sanlig Badral  <badral@openmn.org>
4763         * configure.in: Added "mn" to ALL_LINGUAS.
4765 2004-01-04  Hans Breuer  <hans@breuer.org>
4767         * lib/diagdkrenderer.c : replace rendering of really small (height
4768         less than 2 pixels) with a simple dashed line, you wont notice the 
4769         differnce beside it being much faster. This allows ...
4770         * lib/diagdkrenderer.h : ... to remove gboolean rendertext ...
4771         * app/navigation.c : ... and lets you see an read rendered text even 
4772         in the nice navigation popup.
4774         * lib/dialibartrenderer.c : FONT_SCALE defined as 1.0 for G_OS_WIN32, too. 
4775         (draw_string) : don't leak temporary image
4777 2004-01-04  Hans Breuer  <hans@breuer.org>
4779         * app/dia-app-icons.h : TODO : to be removed when autogenerated on *NIX, too.
4780         * app/interface.c : use dia-app-icons.h to give Dia window icons
4782         * lib/dia_image.c lib/color.c : _never_ call functions implemented
4783         in app/ from lib/. It is not portable and broken from design
4784         * app/app_procs.c : call color_init() and dia_image_init() conditional,
4785         i.e. only if running interactive.
4787         * lib/font.h : #include <time.h>
4789         * lib/libdia.def : updated externals
4791         * objects/UML/actor.c 
4792             objects/UML/association.c (todo)
4793           objects/UML/branch.c
4794           objects/UML/class.[hc] objects/UML/class_dialog.c
4795           objects/UML/classicon.c
4796           objects/UML/component.c 
4797           objects/UML/constraint.c
4798           objects/UML/dependency.c
4799           objects/UML/generalization.c
4800           objects/UML/implements.c
4801           objects/UML/large_package.c
4802           objects/UML/lifeline.c
4803           objects/UML/message.c
4804           objects/UML/node.c
4805           objects/UML/object.c
4806           objects/UML/realizes.c
4807           objects/UML/small_package.c
4808           objects/UML/state.c
4809           objects/UML/usecase.c
4810           objects/UML/
4811         : ported coloring of most UML objects (bug #97517, orginal
4812           work Mathias Hasselmann)
4814         * lib/properties.h : add _OPTIONAL variants for 
4815         PROP_STD_(LINE|FILL|TEXT)_COLOUR which allows to load old -
4816         i.e. default colored - UML diagrams without complaining
4817         * lib/proplist.c lib/propoffsets.c : avoid setting _OPTIONAL,
4818         not set properties with the help of PXP_NOTSET. Otherwise 
4819         optional attributes would lead to wrong initialization. 
4821         * lib/widgets.[hc] : moved _DiaFontSelector from .h to .c
4822         to hide details and restict #undef GTK_DISABLE_DEPRECATED to .c
4823         Same for most other selectors which probably should be rewritten
4824         to the combo box with tree model from Gtk+ 2.4
4826 2004-01-04  Lars Clausen  <lrclause@cs.uiuc.edu>
4828         * INSTALL (PLATFORM NOTES): Mention the Gnu gettext and iconv as
4829         being the Right Thing(tm) to use on Solaris.
4831         * objects/standard/bezier.c (bezierline_draw): Don't draw
4832         guidelines if not selected.
4834         * lib/object.[ch] (dia_object_is_selected): Function to check whether
4835         a given object is selected. O(n), where n is # selected objects.
4836         
4838 2004-01-03  Lars Clausen  <lrclause@cs.uiuc.edu>
4840         * lib/widgets.[ch]: Make sure old font is re-chosen when the Other
4841         Fonts dialog is closed without pressing Ok (bug #128646).
4843 2004-01-02  Lars Clausen  <lrclause@cs.uiuc.edu>
4845         * app/Makefile.am: Quote arguments correctly for run_dia.sh (bug
4846         #130099). 
4848 2004-01-01  Lars Clausen  <lrclause@cs.uiuc.edu>
4850         * INSTALL: Updated list of requirements (bug #129653)
4852         * doc/en/dia.dia: Beginning class diagram for Dia from Luc
4853         Pionchon <luc@handhelds.org>.
4855 2003-12-31  Lars Clausen  <lrclause@cs.uiuc.edu>
4857         * lib/diagdkrenderer.c (draw_string): Don't attempt to render
4858         empty or NULL strings (bug #130097).
4860 2003-12-31  Chris Sperandio <sperandi@eng.usf.edu>
4861         
4862         * plug-ins/metapost/render_metapost.c: Fixed string colorization.
4863         Added checks against color_black.
4865 2003-12-31  Lars Clausen  <lrclause@cs.uiuc.edu>
4867         * plug-ins/xfig/xfig-export.c (figArrow): Output nothing for
4868         ARROW_TYPE_NONE.  Thanks to Jon A. Solworth for showing that this
4869         can happen.
4871         * objects/UML/component_feature.c: Patch from W. Borgert
4872         <debacle@debian.org>:  Add handle to component feature text.
4874         * lib/diagdkrenderer.c (draw_string): Remove poorly placed caching.
4876         * lib/font.c: Caching PangoLayout for better rendering speed.
4878 2003-12-30  Lars Clausen  <lars@raeder.dk>
4880         * lib/dia_dirs.[ch] (dia_get_absolute_filename): New function to
4881         get absolute file name from relative.
4882         * app/recent_files.c (recent_file_history_add): Use absolute
4883         filenames for recent files menu so that files can be found when
4884         Dia is invoked from other places.  
4886         * app/app_procs.c (handle_all_diagrams): Fix for 1/3 of 130098:
4887         Actually load different diagrams if such are requested on command
4888         line.  
4890         * objects/UML/class_dialog.c (class_create_page): Fix from Luc
4891         Pionchon <luc@handhelds.org>: Correctly align labels for colors.
4893         * lib/diagdkrenderer.[ch]: From Luc: New option to GdkRenderer to
4894         remove text rendering.  May be turned into greeking at some later
4895         stage.
4897         * app/interface.c: 
4898         * app/Makefile.am (dia_core_files): 
4899         * app/navigation.[ch]: Patch from Luc Pionchon <luc@handhelds.org>:
4900         Adds navigation window a la Gimp, though without text being
4901         rendered at all.
4903 2003-12-27  Luc Pionchon <luc@handhelds.org>
4905         * app/navigation.h: (new file)
4906         * app/navigation.c: (new file) creates a navigation window with a
4907         thumbnail view of the whole diagram.
4908         * app/Makefile.am (dia_core_files): added new files.
4910         * app/interface.c (create_display_shell): added a button between
4911         the scrollbars to popup a navigation window.
4913         * lib/diagdkrenderer.h (struct_DiaGdkRenderer): added rendertext
4914         boolean
4915         * lib/diagdkrenderer.c (renderer_init): set rendertext TRUE by default
4916         * lib/diagdkrenderer.c (draw_string): returns if the renderer do
4917         not want text rendering.        
4919 2003-12-14  Lars Clausen  <lrclause@cs.uiuc.edu>
4921         * shapes/Circuit/hresistor.shape: Uses new extra attribute thing.
4923         * objects/custom/shape_info.[ch]: Cleanup.
4925         * objects/custom/custom_object.[ch]: Changed to use new props
4926         interface.
4928         * lib/properties.h: 
4929         * lib/prop_text.c: 
4930         * lib/prop_inttypes.c: 
4931         * lib/prop_geomtypes.c: Added *prop_get_data_size.
4933         * lib/libdia.def: Added object_load_props.
4935         * configure.in: Better FT2 version test, from bug #129225.
4937         * dia.spec (BuildRequires): Changed to match makefile (bug #129131)
4939         * plug-ins/xslt/dia-uml2python.xsl: Added Python sheet from Holger
4940         Lehmann <holger.lehmann@catworkx.de>.
4942         * plug-ins/xslt/Makefile.am: 
4943         * plug-ins/xslt/stylesheets.xml: Added Python, Component List,
4944         and OWL XSLT sheets.
4946 2003-12-13  Lars Clausen  <lrclause@cs.uiuc.edu>
4948         * lib/diagdkrenderer.c: Add implementation so text is still
4949         rendered.  May be improved later.
4951         * lib/dia_image.c: 
4952         * app/main.c: 
4953         * app/export_png.c: 
4954         * app/diagram.c: 
4955         * app/app_procs.c: Patch from W. Borgert <debacle@debian.org>:
4956         Allow running without a $DISPLAY!
4958         * lib/color.c: Remove warnings for non-interactive run.
4960         * doc/en/dia.dbk: 
4961         * app/export_png.c: 
4962         * app/diaconv.c: 
4963         * app/app_procs.[ch]: 
4964         Patch from W. Borgert <debacle@debian.org>: Allow a --size argument
4965         to specify size for PNG output.
4967         * app/lineprops_area.c (dia_arrow_preview_expose): Make arrows
4968         render a little smaller, so as to fit the big ones.
4970         * lib/arrows.[ch]: New arrow type from W. Borgert
4971         <debacle@debian.org>: Filled Dot and Triangle.
4973 2003-12-02  Lars Clausen  <lrclause@cs.uiuc.edu>
4975         * doc/pl/Makefile.am (install-data-hook): Fixed installation bug
4976         for gif images.
4978         * plug-ins/xslt/dia-uml2owl.xsl: Added OWL XSLT from Dan Connolly.
4980         * acinclude.m4: Better Python configure code patch (can't find
4981         author, author please speak up!)
4983 2003-12-01  Lars Clausen  <lrclause@cs.uiuc.edu>
4985         * lib/diagdkrenderer.c (get_cached_text): Stupid bugs replaced by
4986         smarter ones.
4988 2003-11-30  Hans Breuer  <hans@breuer.org>
4990         * plug-ins/python/diasvg.py : initialize self.dash_length
4991         in constructor to avoid crashing if the renderer user
4992         does not set it before first usage.
4994 2003-11-30  Lars Clausen  <lrclause@cs.uiuc.edu>
4996         * lib/diagdkrenderer.c: Start of cache GDK text renderer -- not
4997         active yet.
4999         * configure.in: 
5000         * config.h.win32: Set version number to 0.92.2+cvs to distinguish
5001         development and stable versions.
5003         * lib/text.c (text_draw): Use new renderer function to draw the
5004         text.
5006         * lib/diarenderer.h: 
5007         * lib/diarenderer.c: New renderer function "draw_text" with
5008         default implementation.  This function should eventually be the
5009         main interface, as it will be able to handle width and caching of
5010         rendering internally.  All users of draw_string should convert to
5011         use Text objects and call either renderer->draw_text or text_draw,
5012         the latter if the text can be edited in-place (as should be the
5013         goal, eventually).
5015 2003-11-29  Lars Clausen  <lrclause@cs.uiuc.edu>
5017         * shapes/Circuit/hresistor.shape: First example of extra
5018         attributes. 
5020 2003-11-28  Lars Clausen  <lrclause@cs.uiuc.edu>
5022         * plug-ins/shape/shape-export.c: 
5023         * lib/diasvgrenderer.h: 
5024         * lib/diasvgrenderer.c: 
5025         * plug-ins/svg/render_svg.c (new_svg_renderer): 
5026         Actually store the font size, using DiaRenderer's font fields.
5028 2003-11-27  Lars Clausen  <lrclause@cs.uiuc.edu>
5030         * objects/custom/shape_info.[ch]: 
5031         * objects/custom/custom_object.[ch]: 
5032         Support for extra attributes in custom objects.
5033         
5034 2003-11-23  Lars Clausen  <lrclause@cs.uiuc.edu>
5036         * app/diagram.c (diagram_update_menu_sensitivity): More
5037         intelligent checks for menu sensitivity.  Might be slow on huge
5038         diagrams, but I think other things outweigh it by a lot.
5040         * app/menus.[ch]: Make "Bring Forwards"
5041         and "Send Backwards" updateable.
5043 2003-11-22  Steffen Macke <sdteffen@web.de>
5045         * shapes/Assorted/arrow-turn-up.shape:
5046         * shapes/Assorted/arrow-turn-up.png:
5047         * sheets/Assorted/Makefile.am:
5048         * sheets/Assorted.sheet.in: Added new arrow
5050 2003-11-17  Lars Clausen  <lrclause@cs.uiuc.edu>
5052         * app/app_procs.c
5053         * app/color_area.c
5054         * app/commands.c
5055         * app/defaults.c
5056         * app/dia_embedd.c
5057         * app/diagram.c
5058         * app/diagram_tree.c
5059         * app/diagram_tree_menu.c
5060         * app/diagram_tree_window.c
5061         * app/diapagelayout.c
5062         * app/diaunitspinner.c
5063         * app/export_png.c
5064         * app/filedlg.c
5065         * app/interface.c
5066         * app/layer_dialog.c
5067         * app/lineprops_area.c
5068         * app/linewidth_area.c
5069         * app/menus.c
5070         * app/pagesetup.c
5071         * app/paginate_psprint.c
5072         * app/persistence.c
5073         * app/plugin-manager.c
5074         * app/preferences.c
5075         * app/properties.c
5076         * app/recent_files.c
5077         * app/sheets.c
5078         * app/sheets_dialog.c
5079         * app/sheets_dialog_callbacks.c
5080         * app/tool.c: Patch from Sebastien Tricaud <toady@gscore.org>:
5081         GTK-2 compatibility update, mostly gtk_foo -> g_foo.
5083         * TODO: Updated, note on EPS transparency.
5085 2003-11-07  Lars Clausen  <lrclause@cs.uiuc.edu>
5087         * objects/UML/class.c (umlclass_draw): Allow classes with no name
5088         without crashing.
5090 2003-11-01  Lars Clausen  <lrclause@cs.uiuc.edu>
5092         * config.h.win32: 
5093         * doc/en/dia-manual.xml: 
5094         * dia.spec: 
5095         * configure.in: 
5096         * NEWS: Another Brown Bag release for parenting problems,
5097         including a crash bug fix.
5099         * app/connectionpoint_ops.c (diagram_update_connections_object):
5100         Also update connections when moving children.  This can cause
5101         move_handle to be called twice, so it must be idempotent.
5103         * app/load_save.c: Loading and saving of children totally redone.
5104         Now doesn't violate assumption that all objects in a layer are
5105         placed in order in XML file.
5107         * objects/UML/branch.c (branch_create): Don't lie about being
5108         resizable. 
5110         * objects/UML/node.c (node_create): 
5111         * objects/UML/large_package.c (largepackage_create): Drag with
5112         lower right-hand handle at creation like all other objects.
5114 2003-10-28  Lars Clausen  <lrclause@cs.uiuc.edu>
5116         * app/disp_callbacks.c (ddisplay_drop_object): Change initial
5117         parenting drop to behave like a move inside, i.e. constrain place
5118         instead of trying to resize.  'Cause, resizing cannot be done for
5119         all objects (e.g. UML Class). Also simplified the algorithm a lot
5120         at the same time.
5122         * app/load_save.c: Saving and loading of connection points for
5123         children added.  Prototypes for static functions added.
5125         * lib/dynamic_obj.c: Removed debugging output.
5127 2003-10-26  Lars Clausen  <lrclause@cs.uiuc.edu>
5129         * doc/en/dia-manual.xml: 
5130         * doc/pl/dia-manual.sgml: 
5131         * dia.spec: 
5132         * config.h.win32: 
5133         * configure.in: 
5134         * NEWS: Brown Bag release 0.92.1
5136         * lib/dynamic_obj.c: Fixed embarassing dynamic object removal bug.
5138 2003-10-25  Lars Clausen  <lrclause@cs.uiuc.edu>
5140         * app/app_procs.c (app_init): Rearrangement for translators.
5142 2003-10-24  Steffen Macke <sdteffen@web.de>
5144         * lib/text.c(text_key_event): enforcing the inserted text length now,
5145         fix for bug #125348
5147 2003-10-22  Lars Clausen  <lrclause@cs.uiuc.edu>
5149         * MAINTAINERS: Change Debian maintainer to be the default address.
5151         * objects/Misc/analog_clock.c (analog_clock_move_handle): Reorder
5152         args to match prototype, thus removing crashbug #125159.
5154         * RELEASE-PROCESS: Note to self.
5156 2003-10-22  Steffen Macke <sdteffen@web.de>
5158         * doc/en/dia-manual.xml: removed superfluous external references
5159         
5160 2003-10-21  Steffen Macke <sdteffen@web.de>
5162         * lib/libdia.def: added filter_get_by_name
5163         * app/render_eps.c: moved extensions definition outside #ifdef
5165 2003-10-19  Lars Clausen  <lrclause@cs.uiuc.edu>
5167         * Makefile.am: 
5168         * dia.1:
5169         Removed old Dia manual, put new one in doc/en/.  Translations
5170         should go in doc/??/.
5172         * doc/en/dia-manual.xml: 
5173         * doc/pl/dia-manual.sgml: 
5174         * dia.spec (Release): 
5175         * config.h.win32: 
5176         * configure.in: 
5177         * NEWS: 0.92 is here!
5179         * doc/en/dia.dbk: 
5180         * doc/en/dia.1: 
5181         * doc/en/Makefile.am (man_MANS): Added man page, thanks to Fredrik
5182         HallenBerg, W. Borgert.  Not currently autogenerated from dia.dbk,
5183         but it shall be.
5185         * doc/en/usage-objects.xml: Fixed lower-case PNG tags.
5187         * doc/en/usage-objects-selecting.xml: Commented out empty note.
5189 2003-10-14  Lars Clausen  <lrclause@cs.uiuc.edu>
5191         * doc/pl/dia-manual.sgml: 
5192         * doc/en/dia-manual.xml: 
5193         * config.h.win32: 
5194         * NEWS: 
5195         * configure.in: 
5196         * dia.spec (Release): Pre7.
5198         * app/diapsrenderer.c (draw_string): Convert string to print based
5199         on current locale.  If conversion fails, fall back to UTF-8 (which
5200         is almost certain to be messy).
5202 2003-10-13  Lars Clausen  <lrclause@cs.uiuc.edu>
5204         * doc/pl/dia-manual.sgml: 
5205         * dia.spec (Release): 
5206         * configure.in: 
5207         * NEWS: 
5208         * config.h.win32: 
5209         * doc/en/dia-manual.xml: Pre6.
5211         * plug-ins/pstricks/render_pstricks.c (draw_string): Don't escape
5212         TeX chars in strings -- must be possible to use TeX text in there.
5213         Also avoids infinite loop bug (#124464) Will get option for this
5214         later.
5216 2003-10-11  Lars Clausen  <lrclause@cs.uiuc.edu>
5218         * shapes/Cisco/Makefile.am: Cisco shapes now install correctly.
5220         * doc/en/dia-manual.xml: 
5221         * doc/pl/dia-manual.sgml: 
5222         * dia.spec (Release): 
5223         * configure.in: 
5224         * config.h.win32: 
5225         * NEWS: pre5.
5227         * app/authors.h: Removed duplicate of M. C. Nelson.
5229         * plug-ins/pixbuf/pixbuf.c: Unique name for pixbuf export: gdkpixbuf.
5231         * app/export_png.c: Unique name for libart PNG export: png-libart.
5233         * app/render_eps.c: Unique names for the two eps export methods:
5234         eps-builtin, eps-pango.
5236         * lib/filter.h: Binary compatibility change: 
5237         Added unique name to export filters.  Can be NULL.
5238         * lib/filter.c (filter_get_by_name): Finding a filter by
5239         non-extension name.
5241         * app/app_procs.h: Changed prototype for do_convert.
5242         * app/app_procs.c (app_init): Support for non-extension file
5243         format selection for export.  Also allow extension to differ from
5244         that specified by the filters.  A bit of refactoring, too.
5246 2003-09-28  Steffen Macke <sdteffen@web.de>
5248         * makefile.msc: added target po to update the translations
5250 2003-09-27  Lars Clausen  <lrclause@cs.uiuc.edu>
5252         * config.h.win32: 
5253         * dia.spec (Release): 
5254         * NEWS: 
5255         * doc/pl/dia-manual.sgml: 
5256         * doc/en/dia-manual.xml: 
5257         Pre4 is given a short try.
5258         
5259         * configure.in: Give all necessary libs to PNG test.
5261         * lib/font.c: Added legacy entries for sans, serif and monospace.
5263         * app/app_procs.c (internal_plugin_init): 
5264         * app/render_eps.h: 
5265         * app/render_eps.c: 
5266         Added PS fonts output for Unix.
5268         * app/diapsrenderer.c (set_font): Adjusted height by the magic .7
5269         factor to make PS fonts stay in boxes.
5270         
5271 2003-08-03  Hans Breuer  <hans@breuer.org>
5273         * config.h.win32 : close the version string
5275         * lib/libdia.def : with color_white, color_black being static
5276         on win32 they can not be exported anymore either
5278         * lib/dialibartrenderer.c : text rendering is back on win32,
5279         only by Gdk though; almost a year seems to be enough to
5280         wait for my patch at bug #94791 to be accepted ...
5282 2003-09-23  Lars Clausen  <lrclause@cs.uiuc.edu>
5284         * shapes/network/{digitizing_board.png,plotter.png,
5285         laptop.png,telephone.png}: 22x22 icons.
5287 2003-09-22  Lars Clausen  <lrclause@cs.uiuc.edu>
5289         * doc/pl/dia-manual.sgml: 
5290         * doc/en/dia-manual.xml: 
5291         * dia.spec (Release): 
5292         * configure.in: 
5293         * config.h.win32: 
5294         * NEWS: 
5295         pre3 improves font rendering speed.
5297         * app/app_procs.c (app_init): Don't do pango init here, it's done
5298         on demand in font.c now.
5300         * lib/font.c: Load pango context on demand rather than during
5301         init/all the time strikes a better balance between working font
5302         size and speed.  Still need to cache width calculations.
5304 2003-09-18  Lars Clausen  <lrclause@cs.uiuc.edu>
5306         * lib/dia_xml.c: Enable pretty printing.  Should have been added
5307         on 8/12. 
5309 2003-09-11  Lars Clausen  <lrclause@cs.uiuc.edu>
5311         * lib/arrows.c (calculate_arrow_point): Adjust arrow line
5312         adjustment a bit for half diamond and open round.
5314         * RELEASE-PROCESS: Added note about notifying translators and
5315         maintainers. 
5317         * doc/pl/dia-manual.sgml: 
5318         * doc/en/dia-manual.xml: 
5319         * dia.spec (Release): 
5320         * configure.in: 
5321         * config.h.win32: 
5322         * NEWS:
5323         Update to 0.92-pre2.
5324         
5325 2003-09-10  Lars Clausen  <lrclause@cs.uiuc.edu>
5327         * lib/arrows.c (calculate_arrow_point): Some fixing-up of arrow
5328         calculation for half diamond and open round.
5330         * lib/arrows.c: 
5331         * objects/UML/component_feature.c: 
5332         * lib/arrows.h: Patch from W. Borgert <debacle@debian.org>: Use
5333         arrows instead of specific little hacks.  Much nicer, but damn
5334         there's a lot of arrows.
5336         * lib/dialibartrenderer.c (begin_render): 
5337         * app/render_libart.c (begin_render): Use correct DPI for screen
5338         (well, actually the default DPI of 75 for now).
5340         * app/display.h: Informative notes on the DDISPLAY_*_ZOOM macros.
5342         * lib/diagdkrenderer.c (draw_string): Some reformatting.
5344         * app/app_procs.c (app_init): Note on what should be done for the
5345         pango context now, only it doesn't work:(
5347         * lib/font.c (dia_font_new): Make sure to load fonts that are
5348         used, using a reasonable pango_context.  Also a comment on the
5349         global_zoom_factor, 
5351 2003-09-09  Lars Clausen  <lrclause@cs.uiuc.edu>
5353         * doc/pl/graphics/*.png:
5354         * doc/pl/Makefile.am: Added graphics to distro, avoiding empty
5355         loop (bug #121817).  PL translator may want to change the
5356         home_network png to be in Polish.  If the docs get translated into
5357         more languages, we'll want to find out how to share these things.
5359 2003-09-08  Lars Clausen  <lrclause@cs.uiuc.edu>
5361         * app/splash.c (app_splash_init): Patch from Sébastien Tricaud
5362         <stricaud@mwsp.net>: Use g_signal_* instead of gtk_signal_* in
5363         splash.
5365         * app/filedlg.c (file_save_as_callback): Put filename setting
5366         together.  (Preparation for allowing default save dir.)
5368         * app/paginate_psprint.c (diagram_print_ps): Use $PRINTER
5369         correctly this time:)
5371         * app/dia-props.c (diagram_properties_show): 
5372         * app/properties.c (properties_show): Make sure the
5373         dialogs are transient for the correct diagram.
5375 2003-09-07  Lars Clausen  <lrclause@cs.uiuc.edu>
5377         * configure.in: Make sure -lz -lm is passed into second png test
5378         as well (stupid AC_LINK_IFELSE can't take it as an argument).
5380         * plug-ins/xfig/xfig-import.c: Skip XFig comments to make certain
5381         comment-filled files readable.  Once we have a 'generic data'
5382         system, we can put comments in there.
5384 2003-09-06  Steffen Macke <sdteffen@web.de>
5386         * plug-ins/pstricks/render_pstricks.c(tex_escape_string): using
5387         g_string_sized_new() instead of g_string_new() to make it compile
5388         * app/Makefile.am: including dia.ico and dia.rc in the tarball
5389         * plug-ins/wmf/wmf.cpp (set_linestyle): In WMF maximum linewidth is 1 
5390         for non-solid linestyles - otherwise custom linestyles have to be used.
5392 2003-09-02  Steffen Macke <sdteffen@web.de>
5394         * app/commands.c(help_manual_callback): using dia-manual.chm instead of 
5395         dia.chm
5397 2003-09-02  Christian Neumair  <chris@gnome-de.org>
5399         * sheets/Pneumatic.sheet.in: Slight unification fix.
5401 2003-09-02  Lars Clausen  <lrclause@cs.uiuc.edu>
5403         * config.h.win32: 
5404         * configure.in: 
5405         * dia.spec (Release): 
5406         * doc/en/dia-manual.xml: 
5407         * doc/pl/dia-manual.sgml: 
5408         * NEWS: Update to 0.92-pre1.
5410         * app/properties.c (properties_key_event): Removing Esc/Enter
5411         handling for now, interferes to much with regular dialog usage.
5413         * plug-ins/pstricks/render_pstricks.c (tex_escape_string):
5414         Function to escape special TeX characters.  Not in use yet, as
5415         PSTricks output by default is TeX strings.  Should get a save-time
5416         selector. 
5418 2008-09-01  Steffen Macke <sdteffen@web.de>
5420         * lib/paper.h: explanatory comment on width and height
5422 2003-08-30  Steffen Macke <sdteffen@web.de>
5424         * lib/color.c:
5425         * lib/color.h: made color_white, color_black static on win32
5427 2003-08-28  Lars Clausen  <lrclause@cs.uiuc.edu>
5429         * configure.in (PNG_LIBS): Something in the png tests added an
5430         extra -lpng to $LIBS.  Saving old $LIBS to avoid that.
5432 2003-08-27  Lars Clausen  <lrclause@cs.uiuc.edu>
5434         * configure.in: Quote correctly for temporarily adding freetype
5435         cflags to CPPFLAGS.
5437         * app/preferences.c (prefs_save): Remove debugging g_print.
5439 2003-08-26  Lars Clausen  <lrclause@cs.uiuc.edu>
5441         * objects/flowchart/parallelogram.c (pgram_update_data):
5442         Directions for connections, better system for placing
5443         connectionpoints. 
5445 2003-08-25  Lars Clausen  <lrclause@cs.uiuc.edu>
5447         * lib/diagramdata.c (layer_find_closest_object_except): Look all
5448         the way through the object list, so the foremost object is selected.
5450         * lib/diagramdata.h: Removing dynamic_obj.h, it should only be
5451         included for diagramdata.c.
5453         * lib/prop_text.c (multistringprop_handle_key): Attempt at making
5454         newline in multistringprop not close the dialog.  Failed so far.
5456 2003-08-25  Steffen Macke <sdteffen@web.de>
5458         * app/commands.c: using CHM instead of HTML on win32 if available
5459         * lib/diagramdata.h: including dynamic_obj.h
5461 2003-08-25  Lars Clausen  <lrclause@cs.uiuc.edu>
5463         * app/properties.c (properties_key_event): Make Enter = Ok for
5464         properties dialogs.  Still some problems with this and Esc for
5465         Cancel, for instances escaping out of a menu closes the dialog.
5467         * objects/UML/association.c (association_get_properties): 
5468         * objects/UML/class_dialog.c (class_create_page): Grab appropriate
5469         focus. 
5471         * app/diapsft2renderer.c (draw_string): Use
5472         dia_font_scaled_build_layout to ensure similarity of text.
5474         * lib/diagramdata.c: Remove obj from dynobj list when removing
5475         from layer to avoid nasty race conditions.
5477         * app/undo.c (group_objects_revert): Make sure to unparent and
5478         remove from dynobj list when changing layers objects.
5480 2003-08-23  Steffen Macke <sdteffen@web.de>
5482         * plug-ins/wmf/wmf.cpp (draw_image): replaced BitBlt() with 
5483         StretchBlt(); fixes #92249
5484         
5485 2003-08-23  Lars Clausen  <lrclause@cs.uiuc.edu>
5487         * app/filedlg.c (file_save_as_callback): 
5488         * app/preferences.h: 
5489         * app/preferences.c (prefs_data): 
5490         * lib/diagramdata.h: 
5491         * lib/diagramdata.c (new_diagram_data): 
5492         * app/load_save.c (diagram_data_load): 
5493         Let the document remember whether it was compressed.  The user can
5494         still override this in the Save As... dialog, and that will still
5495         be remembered as the default for new diagrams.
5497 2003-08-23  Steffen Macke <sdteffen@web.de>
5499         * plug-ins/xslt/Makefile.am: added dia-uml2componentlist.xsl
5501 2003-08-22  Steffen Macke <sdteffen@web.de>
5503         * plug-ins/xslt/dia-uml.xsl:
5504         * plug-ins/xslt/dia-uml2componentlist.xsl: generate a HTML file with a
5505         table containing a list of components grouped by stereotype
5507 2003-08-21  Steffen Macke <sdteffen@web.de>
5509         * lib/makefile.msc: added connectionpoint.obj
5510         * lib/libdia.def: added connpoint_update, find_slope_directions
5511         * app/disp_callbacks.c: including scroll_tool.h
5512         * obj/makefile.msc: added component_feature.obj
5513         * app/paginate_gdiprint.c: fixed loop initialization in 
5514         paginate_gdiprint(); partial fix for bug #85831 - the scaling is still
5515         wrong
5517 2003-08-21  Lars Clausen  <lrclause@cs.uiuc.edu>
5519         * plug-ins/python/pydia-object.c (PyDiaObject_MoveHandle): Fix
5520         move_handle call.
5522         * lib/diagramdata.h: Colors added to prefs.
5523         * lib/diagramdata.c (new_diagram_data): Set diagram colors from prefs.
5524         New field for pagebreak color, which should
5525         behave the same as grid color and be settable for a diagram.
5527         * app/diagram.c (diagram_init): Update diagram pagebreak color
5528         from prefs. 
5530         * app/grid.c (pagebreak_draw): Draw using diagrams pagebreak
5531         colors. 
5533         * app/preferences.[ch]: Default diagram colors now #defines, so
5534         loading can use it.  Also, colors are now in NewDiagramData, so
5535         are passed nicely into new diagrams directly from prefs.  Yum.
5537         * app/load_save.c (diagram_data_write_doc, diagram_data_load): 
5538         Support for loading and saving grid and pagebreak colors with the
5539         diagram.  I'm inclined to make all the three Colors in diagram
5540         Color*s instead, so we can tell if they're specified for the
5541         diagram or merely the default setting.  There'd be no way for the
5542         user to tell if the color of a diagram is default, though, unless
5543         we add a 'reset to default' button to prefs.
5545         * app/dia-props.c: Adding widgets for dynamic grid, grid colour,
5546         pagebreak color.  Unsensitizing grid size when dynamic.
5548         * objects/UML/component.c: Patch from Krzysztof Foltman
5549         <kfoltman@onet.pl>: Add two new connectionpoints and adjust a
5550         third.  Makes the left side connections actually be on the line
5551         (gasp!). 
5553 2003-08-20  Steffen Macke <sdteffen@web.de>
5555         * lib/libdia.def: added layer_find_closest_object_except
5556         * lib/diagramdata.c: added ; after GOTO to make MSVC compile 
5558 2003-08-20  Lars Clausen  <lrclause@cs.uiuc.edu>
5560         * app/tool.h: 
5561         * app/tool.c: 
5562         * app/scroll_tool.c: 
5563         * app/interface.c: 
5564         * app/disp_callbacks.c: 
5565         * app/create_object.h: 
5566         * app/create_object.c: Patch from Krzysztof Foltman
5567         <kfoltman@onet.pl>: Middle button can scroll transiently when
5568         menu-bar-mode is on, and mouse wheels (hopefully) can scroll in
5569         various ways.
5571         * app/authors.h: 
5572         * sheets/UML.sheet.in: 
5573         * sheets/UML/receptacle.xpm: 
5574         * sheets/UML/Makefile.am: 
5575         * sheets/UML/eventsource.xpm: 
5576         * sheets/UML/eventsink.xpm: 
5577         * objects/UML/pixmaps/facet.xpm: 
5578         * objects/UML/uml.c (dia_plugin_init): 
5579         * objects/UML/Makefile.am (libuml_objects_la_SOURCES): 
5580         * objects/UML/component_feature.c: 
5581         Patch from W. Borgert <debacle@debian.org>:  Add event sources and
5582         event sinks.
5583         
5584 2003-08-19  Lars Clausen  <lrclause@cs.uiuc.edu>
5586         * lib/object.h: Turning some comments into doxygen style.
5588         * lib/object_defaults.c (dia_object_defaults_load)
5589         (dia_object_default_get, dia_object_default_create): 
5590         Fixing up existing documentation.
5592         * lib/object.h: Doxygen style documentation begun.
5594         * app/create_object.c: 
5595         * app/undo.c: 
5596         * app/connectionpoint_ops.c: 
5597         * app/disp_callbacks.c: 
5598         * app/modify_tool.c: 
5600         * objects/network/wanlink.c (wanlink_move_handle): 
5601         * objects/network/bus.c (bus_move_handle): 
5603         * objects/flowchart/parallelogram.c (pgram_move_handle): 
5604         * objects/flowchart/ellipse.c (ellipse_move_handle): 
5605         * objects/flowchart/diamond.c (diamond_move_handle): 
5606         * objects/flowchart/box.c (box_move_handle): 
5608         * objects/custom/custom_object.c (custom_move_handle): 
5610         * objects/chronogram/chronoref.c (chronoref_move_handle): 
5611         * objects/chronogram/chronoline.c (chronoline_move_handle): 
5613         * objects/SADT/box.c (sadtbox_move_handle): 
5614         * objects/SADT/arrow.c (sadtarrow_move_handle): 
5615         * objects/SADT/annotation.c (annotation_move_handle): 
5617         * objects/Misc/analog_clock.c (analog_clock_move_handle): 
5619         * objects/GRAFCET/vergent.c (vergent_move_handle): 
5620         * objects/GRAFCET/vector.c (arc_move_handle): 
5621         * objects/GRAFCET/transition.c (transition_move_handle): 
5622         * objects/GRAFCET/step.c (step_move_handle): 
5623         * objects/GRAFCET/condition.c (condition_move_handle): 
5624         * objects/GRAFCET/action.c (action_move_handle): 
5626         * objects/FS/function.c: 
5627         * objects/FS/flow.c: 
5628         * objects/FS/flow-ortho.c (orthflow_move_handle): 
5629         * objects/FS/flow-poly.c (flow_move_handle): 
5631         * objects/UML/usecase.c (usecase_move_handle): 
5632         * objects/UML/state_term.c (state_move_handle): 
5633         * objects/UML/state.c (state_move_handle): 
5634         * objects/UML/small_package.c (smallpackage_move_handle): 
5635         * objects/UML/realizes.c (realizes_move_handle): 
5636         * objects/UML/object.c (objet_move_handle): 
5637         * objects/UML/note.c (note_move_handle): 
5638         * objects/UML/node.c (node_move_handle): 
5639         * objects/UML/message.c (message_move_handle): 
5640         * objects/UML/lifeline.c (lifeline_move_handle): 
5641         * objects/UML/large_package.c (largepackage_move_handle): 
5642         * objects/UML/implements.c (implements_move_handle): 
5643         * objects/UML/generalization.c (generalization_move_handle): 
5644         * objects/UML/fork.c (fork_move_handle): 
5645         * objects/UML/dependency.c (dependency_move_handle): 
5646         * objects/UML/constraint.c (constraint_move_handle): 
5647         * objects/UML/compprop.c (compprop_move_handle): 
5648         * objects/UML/component.c (component_move_handle): 
5649         * objects/UML/branch.c (branch_move_handle): 
5650         * objects/UML/association.c (association_move_handle): 
5651         * objects/UML/actor.c (actor_move_handle): 
5652         * objects/UML/activity.c (state_move_handle): 
5653         * objects/UML/class.c (umlclass_move_handle): 
5655         * objects/standard/ellipse.c (ellipse_move_handle): 
5656         * objects/standard/zigzagline.c (zigzagline_move_handle): 
5657         * objects/standard/textobj.c (textobj_move_handle): 
5658         * objects/standard/polyline.c (polyline_move_handle): 
5659         * objects/standard/polygon.c (polygon_move_handle): 
5660         * objects/standard/line.c (line_move_handle): 
5661         * objects/standard/image.c (image_move_handle): 
5662         * objects/standard/bezier.c (bezierline_move_handle): 
5663         * objects/standard/arc.c (arc_move_handle): 
5664         * objects/standard/beziergon.c (beziergon_move_handle): 
5665         * objects/standard/box.c (box_move_handle): 
5666         
5667         * objects/ER/relationship.c (relationship_move_handle): 
5668         * objects/ER/participation.c (participation_move_handle): 
5669         * objects/ER/entity.c (entity_move_handle): 
5670         * objects/ER/attribute.c (attribute_move_handle): 
5671         
5672         * lib/polyshape.c (polyshape_move_handle): 
5673         * lib/polyshape.h: 
5674         * lib/orth_conn.c (orthconn_move_handle): 
5675         * lib/orth_conn.h: 
5676         * lib/neworth_conn.c (neworthconn_move_handle): 
5677         * lib/neworth_conn.h: 
5678         * lib/element.c (element_move_handle): 
5679         * lib/element.h: 
5680         * lib/connection.c (connection_move_handle): 
5681         * lib/connection.h: 
5682         * lib/beziershape.c (beziershape_move_handle): 
5683         * lib/beziershape.h: 
5684         * lib/bezier_conn.c (bezierconn_move_handle): 
5685         * lib/bezier_conn.h: 
5686         *BINARY COMPATIBILITY CHANGE*
5687         Update prototype for *_move_handle() to include connectionpoint,
5688         and also pass on modifiers.  Pass in connectionpoint where
5689         applicable. 
5690         
5691         * lib/dummy_dep.h (dummy_dep): Adding dummy dependencies for new
5692         file connectionpoint.c.
5694 2003-08-17  Danilo Å egan  <dsegan@gmx.net>
5696         * configure.in: Added "sr" and "sr@Latn" to ALL_LINGUAS.
5698 2003-08-15  Lars Clausen  <lrclause@cs.uiuc.edu>
5700         * lib/object.c (object_copy): Use g_malloc0 instead of g_malloc.
5702         * lib/beziershape.c (beziershape_update_data): Autoroute
5703         directions for beziershapes!
5705         * lib/connectionpoint.c (find_slope_directions): 
5706         * lib/connectionpoint.h: Function for finding the available
5707         directions on a slope.
5709         * lib/polyshape.c: Reasonable directions for
5710         connectionpoints.       
5712 2003-08-14  Lars Clausen  <lrclause@cs.uiuc.edu>
5714         * objects/Misc/analog_clock.c (analog_clock_update_arrow_tips): 
5715         * objects/GRAFCET/vergent.c (vergent_update_data): 
5716         * objects/GRAFCET/transition.c (transition_update_data): 
5717         * objects/GRAFCET/action.c (action_update_data): 
5718         * objects/GRAFCET/step.c (step_update_data): 
5719         * objects/FS/function.c (function_update_data): 
5720         * lib/connpoint_line.c (connpointline_putonaline): 
5721         * objects/ER/attribute.c (attribute_update_data): 
5722         * objects/ER/entity.c (entity_update_data): 
5723         * objects/ER/relationship.c (relationship_update_data): 
5724         * objects/chronogram/chronoline.c (chronoline_update_data): Set
5725         directions for connection points.
5727         * objects/UML/component.c (component_create): Set to allow
5728         parenting. 
5730         * app/create_object.c (create_object_button_press): 
5731         * app/diagram.[ch] (diagram_find_clicked_object_except): 
5732         * lib/diagramdata.[ch] (layer_find_closest_object_except): 
5733         Avoid parenting to objects you're connecting to (otherwise you
5734         couldn't make a connection out of a parenting object).  To do
5735         this, added functions to find the nearest object except a given
5736         list of objects.
5737         
5738         * app/render_libart.c: Rearrange libart include to avoid multiple
5739         include program (and put libart includes inside #ifdef!)
5741 2003-08-13  Lars Clausen  <lrclause@cs.uiuc.edu>
5743         * lib/dialibartrenderer.c: Don't include art_config.h if others
5744         also do, as it isn't #ifdef'd.
5746         * objects/flowchart/ellipse.c (ellipse_update_data): Add
5747         directions for connection points.
5749 2003-08-12  Lars Clausen  <lrclause@cs.uiuc.edu>
5751         * objects/flowchart/box.c (box_update_data): Add directions, use
5752         connpoint_update. 
5753         (box_load): Use g_malloc0.
5755         * lib/Makefile.am (libdia_la_SOURCES):
5756         * lib/connectionpoint.c (connpoint_update): 
5757         Function to call to update a connection point info in _update_data().
5758         
5759         * lib/connectionpoint.h: Convenience DIR_ macros.
5761         * app/preferences.c (prefs_data): Make pretty formatted XML the
5762         default.
5764         * lib/dialibartrenderer.c: 
5765         * app/render_libart.c: Make sure art_config.h is included, cause
5766         some libart headers are broken.
5768         * configure.in (HAVE_FREETYPE): Restore CPPFLAGS to old value
5769         after test.  Add freetype-config cflags to cflags variable.
5771 2003-08-11  Lars Clausen  <lrclause@cs.uiuc.edu>
5773         * app/authors.h: Credits for Krzysztof.
5775         * sheets/Flowchart.sheet.in: Updated descriptions from Krzysztof
5776         Foltman <kfoltman@onet.pl>.  It occurs to me that the name (rather
5777         than the description) is visible in the title of the properties
5778         dialog.  That ought to be a short description (translatable),
5779         though we still want long descriptions for the tooltips.  Hmmm...
5781         * configure.in: Updated to use AC_LINK_IFELSE instead of
5782         AC_TRY_COMPILE, also force to link to check libs on Solaris.
5784         * objects/ER/entity.c (entity_load): 
5785         * objects/ER/attribute.c (attribute_load): 
5786         * lib/attributes.c (attributes_set_default_font): 
5787         Check if font is non-null before unreffing.
5788         
5789 2003-08-08  Lars Clausen  <lrclause@cs.uiuc.edu>
5791         * app/diagram.c (diagram_ungroup_selected) 
5792         (diagram_group_selected): Use the undo apply to make sure grouping
5793         and ungrouping is done in consistent manners.  This removes a fair
5794         amount of duplicated code from diagram.c.
5796         * app/undo.c (ungroup_objects_revert, ungroup_objects_apply) 
5797         (group_objects_revert, group_objects_apply): Working undo/redo for
5798         diagram tree updates.  The initial actions still don't quite work.
5800 2003-08-07  Lars Clausen  <lrclause@cs.uiuc.edu>
5802         * app/create_object.c (create_object_button_press): 
5803         * app/undo.[ch]: 
5804         * app/diagram.c: Undo support for parenting.  Uses apply/revert in
5805         undo only for manipulating the parent/child relationships.  Things
5806         like removing an object doesn't use the undo functions for
5807         parenting, so any updates to come (like to diagramtree) should be
5808         done in those, too.
5810 2003-08-03  Hans Breuer  <hans@breuer.org>
5812         * app/create_object.c : minor formating and g_new0 for
5813         tool creation
5815         * lib/bezier_conn.[hc] lib/beziershape.[hc]
5816           lib/prop_geomtypes.c (prop_geomtypes_register)
5817           objects/standard/bezier.c objects/standard/beziergon.c :
5818         ability to set bezpoints via StdProp api
5820         * plug-ins/python/pydia-property.c : convert list of tuples
5821         to BEZPOINTARRAY
5823         *  plug-ins/python/diasvg_import.py : use it to
5824         implement part of path parsing. Also minor improvements
5825         like inheritance of group attributes to members,
5826         whitespace, title and style:text/css ignoring ;-)
5828 2003-08-02  Hans Breuer  <hans@breuer.org>
5830         * lib/connections.c (connection_move_handle): return
5831         something to make it compile
5832         * lib/object.c(190) : error C4033: 'object_list_move_delta_r' 
5833         must return a value -> dito
5834         [Is there a warnings-as-errors switch we could use with gcc 
5835          to avoid such in future ?]
5837         * plug-ins/python/pydia-object.h : define *_Check macros
5838         * plug-ins/python/diamodule.c : provide dia.group_create()
5839         * plug-ins/python/pydia-diagramdata.c : add 
5840         DiaDiagramData.add_layer()
5841         * plug-ins/python/pydia-property.c : allow to set color by
5842         tuple of doubles
5844         *  plug-ins/python/diasvg_import.py : based on the above
5845         implement a) group support, b) rgb(1,2,3) color handling,
5846         and somewhat fishy data:image/png;base64 support (create
5847         temporary files from inline image data)
5848         d) dump the import errors as text into an 'Error' layer
5850         *  plug-ins/python/diasvg.py : add xmlns:xlink, removed a
5851         stray " in draw_rect and corrected error message formating 
5853         * plug-ins/pydia/pydia-geometry.c : removed ## to make it
5854         compile with gcc 3.3, fixes bug #117204. Thanks to Daniel 
5855         Jacobowitz.
5856         
5857 2003-08-01  Hubert Figuiere  <hfiguiere@teaser.fr>
5859         * app/magnify.c (create_magnify_tool): allocate with g_new0()
5861         * app/preferences.c (prefs_create_dialog): use checkboxes for boolean 
5862         preferences values (see bug 118570). Also group items into a GtkFrame.
5864 2003-07-31  Lars Clausen  <lrclause@cs.uiuc.edu>
5866         * app/menus.c:
5867         * app/menus.h:
5868         * app/commands.h: 
5869         * app/commands.c (objects_unparent_children_callback): 
5870         * app/diagram.h: 
5871         * app/diagram.c (diagram_unparent_selected,
5872         (diagram_update_menu_sensitivity): 
5873         Added unparenting of single children.
5875         * lib/bezier_conn.c:
5876         * lib/bezier_conn.h:
5877         * lib/beziershape.c:
5878         * lib/beziershape.h:
5879         * lib/connection.c:
5880         * lib/connection.h:
5881         * lib/element.c:
5882         * lib/element.h:
5883         * lib/group.c:
5884         * lib/neworth_conn.c:
5885         * lib/neworth_conn.h:
5886         * lib/object.h:
5887         * lib/orth_conn.h:
5888         * lib/poly_conn.c:
5889         * lib/poly_conn.h:
5890         * lib/polyshape.c:
5891         * lib/polyshape.h:
5892         * objects/EML/instantiation.c:
5893         * objects/EML/interaction-ortho.c:
5894         * objects/EML/interaction.c:
5895         * objects/EML/process.c:
5896         * objects/ER/attribute.c:
5897         * objects/ER/entity.c:
5898         * objects/ER/participation.c:
5899         * objects/ER/relationship.c:
5900         * objects/FS/flow-ortho.c:
5901         * objects/FS/flow-poly.c:
5902         * objects/FS/flow.c:
5903         * objects/FS/function.c:
5904         * objects/GRAFCET/action.c:
5905         * objects/GRAFCET/condition.c:
5906         * objects/GRAFCET/step.c:
5907         * objects/GRAFCET/transition.c:
5908         * objects/GRAFCET/vector.c:
5909         * objects/GRAFCET/vergent.c:
5910         * objects/Misc/analog_clock.c:
5911         * objects/SADT/annotation.c:
5912         * objects/SADT/arrow.c:
5913         * objects/SADT/box.c:
5914         * objects/UML/activity.c:
5915         * objects/UML/actor.c:
5916         * objects/UML/association.c:
5917         * objects/UML/branch.c:
5918         * objects/UML/class.c:
5919         * objects/UML/classicon.c:
5920         * objects/UML/component.c:
5921         * objects/UML/constraint.c:
5922         * objects/UML/dependency.c:
5923         * objects/UML/fork.c:
5924         * objects/UML/generalization.c:
5925         * objects/UML/implements.c:
5926         * objects/UML/large_package.c:
5927         * objects/UML/lifeline.c:
5928         * objects/UML/message.c:
5929         * objects/UML/node.c:
5930         * objects/UML/note.c:
5931         * objects/UML/object.c:
5932         * objects/UML/realizes.c:
5933         * objects/UML/small_package.c:
5934         * objects/UML/state.c:
5935         * objects/UML/state_term.c:
5936         * objects/UML/usecase.c:
5937         * objects/chronogram/chronoline.c:
5938         * objects/chronogram/chronoref.c:
5939         * objects/custom/custom_object.c:
5940         * objects/flowchart/box.c:
5941         * objects/flowchart/diamond.c:
5942         * objects/flowchart/ellipse.c:
5943         * objects/flowchart/parallelogram.c:
5944         * objects/network/bus.c:
5945         * objects/network/wanlink.c:
5946         * objects/standard/arc.c:
5947         * objects/standard/bezier.c:
5948         * objects/standard/beziergon.c:
5949         * objects/standard/box.c:
5950         * objects/standard/ellipse.c:
5951         * objects/standard/image.c:
5952         * objects/standard/line.c:
5953         * objects/standard/polygon.c:
5954         * objects/standard/polyline.c:
5955         * objects/standard/textobj.c:
5956         * objects/standard/zigzagline.c:
5957         Binary compatibility update:  Added return value for foo_move() and
5958         foo_move_handle().  Orthconn derivatives also returns change from
5959         orthconn_move_handle().
5960         
5961         * lib/orth_conn.c: Undo support for autorouting.  Neworthconn
5962         doesn't support it yet.
5964         * lib/object.c (object_list_move_delta_r, object_list_move_delta):
5965         Add returning ObjectChange from object moves.  Needs to handle
5966         multiple object moves.
5968         * app/modify_tool.c (modify_motion, modify_release): Add
5969         ObjectChange from move & move_handle to undo stack.
5971         * objects/EML/instantiation.c (instantiation_move): Removing
5972         duplicate move & update.
5974 2003-07-30  Lars Clausen  <lrclause@cs.uiuc.edu>
5976         * plug-ins/xfig/xfig-export.c: Added support for arrow head
5977         export.  Many arrow types not supported by XFig, replacing those
5978         with standard arrows.  Not sure whether it'd be better to render
5979         them as a group of lines instead.  You'd lose the arrow-ness for
5980         further editing, but preserve the actual shape of it.  Also added
5981         support for dash length.
5983         * plug-ins/xfig/xfig-import.c: Added support for dash length settings.
5985         * plug-ins/xfig/fig-format-3.2: Added copy of Fig format
5986         description for version 3.2, for reference.
5988         * plug-ins/xfig/xfig-import.c: Added import of arrows.
5990         * app/menus.c: Removed prefs item from Gnome diagram menu.  Made
5991         Align Vertical Adjacent call _v rather than _h.
5993 2003-07-29  Hubert Figuiere  <hfiguiere@teaser.fr>
5995         * app/scroll_tool.c (create_scroll_tool): 
5996         * app/modify_tool.c (create_modify_tool): use g_new0() to
5997         initialize the tool
5999 2003-07-29  Lars Clausen  <lrclause@cs.uiuc.edu>
6001         * configure.in: Added proper settings for XSLT_LIBS and XSLT_CFLAGS.
6003 2003-07-24  Pablo Saratxaga  <pablo@mandrakesoft.com>
6005         * configure.in: Added Macedonian (mk) to ALL_LINGUAS
6007 2003-07-23  Dmitry G. Mastrukov  <dmitry@taurussoft.org>
6009         * configure.in: Added Belarusian to ALL_LINGUAS.
6011 2003-07-19  Hans Breuer  <hans@breuer.org>
6013         [
6014          Make the xslt plug-in work on win32, too. It appears
6015          to require a quite recent version of libxml and libxslt,
6016          otherwise windoze pathes aren't translated correctly
6017          during file processing
6018         ]
6020         * plug-ins/xslt/xslt.h : #include <glib.h> before 
6021         using G_OS_WIN32
6023         * plug-ins/xslt/xslt.c : plugged some memory leaks and do
6024         the 'script' file finding similar to how it is done
6025         with the python scripts (no need for hardcoded pathes,
6026         removed the 'plugin' part from the path)
6028         * plug-ins/xslt/stylesheets.xml : added again. It does
6029         not have any path but only the pure filename again
6031         * plug-ins/xslt/stylesheets.xml.in : removed
6033         * plug-ins/xslt/Makefile.am : removed 'plugin' and the
6034         rule to process stylesheets.xml.in
6036         * plug-ins/makefile.msc : added xslt
6038 2003-07-19  Hans Breuer  <hans@breuer.org>
6040         Finally Dia learned to remember the recent selected sheet
6042         * app/preferences.[hc] : added prefs.recent_sheet
6043         * app/interface.c : restore and remember the sheet-option-menu
6044         history, but only if the respective number is stiil available.
6045         This additional adds robustness against running Dia without
6046         any sheet (e.g. installation problems)
6047         * app/app_procs.c : call prefs_safe() in app_exit() to remember
6048         changes which are not done by the prefernces dialog
6050         * app/diagram_tree_menu.c app/diagram_tree_menu_callbacks.c :
6051         removed every call (especially the conditional ones) to prefs_safe().
6052         Before prefs_safe() was called _many_ times during Dia startup
6054 2003-07-18  Hans Breuer  <hans@breuer.org>
6056         * app/makefile.msc lib/makefile.msc lib/libdia.def :
6057         updated win32 build
6059         * lib/color.c : use gtk_widget_get_default_visual();
6060         as suggested in #114536
6062         * app/interface.c app/disp_callbacks.c :
6063         moved round_up () to the latter file where it is used
6065         * app/linewidth_area.c : #include "interface.h" for
6066         interface_get_toolbox_shell()
6068 2003-07-18  Hubert Figuiere  <hfiguiere@teaser.fr>
6070         * plug-ins/pixbuf/.cvsignore
6071         * shapes/Cisco/.cvsignore: 
6072         added cvsignore
6074 2003-07-17  Lars Clausen  <lrclause@cs.uiuc.edu>
6076         * app/dia-props.c (diagram_properties_retrieve): Use
6077         diagram_get_name() to add the diagram name to the diagram
6078         properties dialog.
6080         * app/diagram.h: 
6081         * app/diagram.c (diagram_get_name): New function to get a
6082         reasonable diagram name.
6084         * lib/diagramdata.h: Added major_lines, dynamic and colour to grid
6085         info.  Still need to be able to set dynamic grid.  Also ought to
6086         follow Gnome style and have instant apply.
6088         * app/preferences.h: 
6089         * app/preferences.c (prefs_data): Remove option to use stippled
6090         grid, add option for major line offset.  Default to 5 minor lines
6091         per major line.
6092         Add option for dynamically sized grid.
6094         * app/display.c (ddisplay_render_pixmap): Call pagebreak_draw as well.
6096         * app/grid.c: Pagebreak drawing separated out.  Grid drawing using
6097         stippled/solid to display minor/major grid lines.  Line drawing in
6098         separate functions away from calculating line distance.
6100         * app/grid.h: Split page break drawing out of grid_draw.
6102         * app/layer_dialog.c (layer_dialog_show): Patch from Hubert
6103         Figuiere <hfiguiere@teaser.fr>:  Layer dialog show go to front
6104         when menu item is selected.
6106 2003-07-15  Lars Clausen  <lrclause@cs.uiuc.edu>
6108         * configure.in: Removed -Winline flag to make way for important
6109         warnings. 
6111         * samples/UML-demo.dia: Adjusted for 0.91 font size, saved as
6112         non-compressed.  Should fix bug #117381, also look prettier.
6113         
6114         * Makefile.am: 
6115         * dia.desktop.in: Patch from Mark McLoughlin <mark@skynet.ie>:
6116         Set up desktop info more properly.
6118 2003-07-13  Lars Clausen  <lrclause@cs.uiuc.edu>
6120         * activity.c:
6121         * actor.c:
6122         * branch.c:
6123         * class.c:
6124         * classicon.c:
6125         * component.c:
6126         * large_package.c:
6127         * lifeline.c:
6128         * node.c:
6129         * note.c:
6130         * object.c:
6131         * small_package.c:
6132         * state.c:
6133         * state_term.c:
6134         * usecase.c: 
6135         Autorouting directions patch from Krzysztof Foltman
6136         <kfoltman@onet.pl>.
6138         * app/menus.c: Wrong GNOME paren fixed.  Correct callbacks for
6139         GNOME parent menu items.
6140         
6141         * app/authors.h: Added Vadim to contributors list.
6143 2003-07-12  Lars Clausen  <lrclause@cs.uiuc.edu>
6145         * app/commands.[ch]: 
6146         * app/create_object.c: 
6147         * app/disp_callbacks.[ch]: 
6148         * app/diagram.[ch]: 
6149         * app/interface.c: 
6150         * app/load_save.c: 
6151         * app/menus.[ch]:
6152         * app/modify_tool.c
6153         * app/undo.[ch]:
6154         * lib/Makefile.am:
6155         * lib/group.c: 
6156         * lib/object.[ch]: 
6157         * lib/parent.[ch]:
6158         * objects/UML/large_package.c: Patch from Vadim Berezniker
6159         <vadim@berezniker.com>: 
6160         Objects may "parent" other objects, i.e. contain them within
6161         themselves, restrain them and move them along.  Some more stuff is
6162         needed, such as selection and individual unparenting.  This adds
6163         parenting to UML - Large Package rather than Box.
6165 2003-07-11  Lars Clausen  <lrclause@cs.uiuc.edu>
6167         * app/linewidth_area.c: Patch from Krzysztof Foltman
6168         <kfoltman@onet.pl>: Make linewidth dialog conform to HIG (well,
6169         conform more, at least:).
6171         * plug-ins/metapost/render_metapost.[ch] : Applied patch from
6172         Chris Sperandio <sperandi@eng.usf.edu>:  Fixed linewidths and
6173         arcs.  Implemented images (though there is some pixelization and
6174         banding in the output).  Changed output file format to be a little
6175         more readable.  
6177         * app/app_procs.c (app_exit): Added message for double exit, which
6178         shouldn't happen any more.  Also preventing strange g_object_unref
6179         messages by having a printf after gtk_main_quit.  This is really
6180         weird.
6182         * app/interface.c (toolbox_delete): Avoid double app_exit call by
6183         removing handler for destroy when delete is called.
6185 2003-07-07  Lars Clausen  <lrclause@cs.uiuc.edu>
6187         * app/display.h: 
6188         * app/display.c (ddisplay_scroll_to_object,
6189         ddisplay_scroll_center_point):  New function for easy scrolling to
6190         object or point.
6192 2003-07-06  Lars Clausen  <lrclause@cs.uiuc.edu>
6194         * plug-ins/xslt/Makefile.am: Patch from Hubert Figuiere:  Add
6195         $(srcdir) on stylesheets.xml.
6197         * app/menus.c: Patch from Hubert Figuiere: Adds help menu to
6198         diagram menus (since they're at the top by default now).  Also
6199         move the Properties... menu item from Dialogs to Objects.  Dialogs
6200         menu should disappear at some point.
6202         * autogen.sh: Patch from Hubert Figuiere: Don't automatically call
6203         ./configure from ./autogen.sh, as configure may need to be run
6204         from a different directory.  (Also more standard this way.)
6206         * app/app_procs.c (app_init): 
6207         * app/Makefile.am (INCLUDES): Gnome standardization patch from
6208         Alex. 
6210 2003-07-03  Lars Clausen  <lrclause@cs.uiuc.edu>
6212         * objects/flowchart/parallelogram.c (pgram_update_data):
6213         Left/right alignment for parallelograms.  Doesn't use all
6214         available space, but then pgrams also ignore their shear value.
6215         This thing needs a loving hand.
6217 2003-07-01  Hans Breuer  <hans@breuer.org>
6219         * lib/properties.h : introduce PROP_FLAG_OPTIONAL
6220         * lib/proplist.c : don't complain if optional attr is missing
6221         * lib/orth_conn.h : make "orth_autoroute" optional to
6222         stop complaining with older files.
6224 2003-06-13  Guntupalli Karunakar  <karunakar@freedomink.org>
6226         * configure.in: Added "ml" for Malayalam in ALL_LINGUAS.
6228 2003-06-05  Andrew Halper  <ashalper@cox.net>
6230         * app/diagram_tree.c : add scrolling of drawing area
6231         to desired object on "Locate".  Patch modified to use new ddisplay
6232         function ddisplay_scroll_to_object().
6234 2003-06-11  Lars Clausen  <lars@raeder.dk>
6236         * lib/diagramdata.h: Added major_lines, dynamic and colour to grid
6237         info.  Before next version, the grid dialog (view dialog, really)
6238         must be redone to allow a) instant apply, b) apply to all
6239         diagrams, and c) setting colour, dynamic, major lines.
6241         * app/preferences.h: 
6242         * app/preferences.c (prefs_data): Remove option to use stippled
6243         grid, add option for major line offset.  Default to 5 minor lines
6244         per major line.
6245         Add option for dynamically sized grid.
6247         * app/display.c (ddisplay_render_pixmap): Call pagebreak_draw as well.
6249         * app/grid.c: Pagebreak drawing separated out.  Grid drawing using
6250         stippled/solid to display minor/major grid lines.  Line drawing in
6251         separate function away from calculating line distance.
6253         * app/grid.h: Split page break drawing out of grid_draw.
6255 2003-05-15  Hans Breuer  <hans@breuer.org>
6257         * plug-ins/python/diasvg.py : add xlink definition,
6258         also avoid to put spaces into attribute values. At least
6259         Sodipodi doesn't like them in width/height attributes
6261         * plug-ins/python/diasvg_import.py : add simple scaling.
6262         Some (more) handling for <svg>, <desc>, <circle>        
6264         * plug-ins/python/scascale.py : (new file) which does
6265         some experimental scaling via StdProp api
6267         * plug-ins/python/pydia-cpoint.c 
6268           plug-ins/python/pydia-handle.c : return PyDiaPoint for
6269         obj.pos not simple tuples. PyDiaPoint has a tuple interface
6270         so this may even be api compatible ...
6272 2003-05-11  Hans Breuer  <hans@breuer.org>
6274         * app/line_area.c : add window position persitence
6276         * lib/poly_conn.[hc] lib/polyshape.[hc] : allow to set 
6277         'poly_points' via StdProp api
6278         * lib/neworth_conn.h : don't rely on OrthConn and 
6279         NewOrtConn having the same struct offsets
6281         * lib/properties.h : introduce PROP_FLAG_WIDGET_ONLY
6282         to help separating 'useful' properies - in terms of
6283         the PyDia access
6285         * objects/custom/custom_object.c
6286           objects/UML/*.c
6287         add the missing prop_desc_list_calculate_quarks to
6288         all the *_describe_props()
6290         * objects/standard/beziergon.c objects/standard/bezier.c :
6291         explicit initializtion of default_user_data
6292         * objects/standard/polygon.c objects/standard/polyline.c :
6293         Same here. Also use POLY<CONN|SHAPE>_COMMON_PROPERTIES
6295         * plug-ins/python/diamodule.c : implement dia.register_import
6297         * plug-ins/python/makefile.msc : need to link with Pango
6298         for pango_color_parse()
6300         * plug-ins/python/pydia-property.c : add a bunch of type
6301         conversions to PyDiaProperty_ApllyToObject()
6303         * plug-ins/python/diasvg_import.py : (new file) which currently
6304         is mainly a stress test for PyDia but for some files already
6305         produces better results than svg-import.c
6307 2003-05-06  Lars Clausen  <lrclause@cs.uiuc.edu>
6309         * objects/UML/uml.c (uml_get_operation_string): Avoid ':' on
6310         type-less operations.
6312 003-05-03  Hasbullah Bin Pit  <sebol@ikhlas.com>
6314         * configure.in(ALL_LINGUAS): Added "ms".
6316 2003-05-01  Lars Clausen  <lrclause@cs.uiuc.edu>
6318         * plug-ins/xslt/xslt.c (xslt_ok): 
6319         * plug-ins/shape/shape-export.c (new_shape_renderer): 
6320         * plug-ins/svg/render_svg.c (new_svg_renderer): 
6321         * plug-ins/hpgl/hpgl.c (export_data): 
6322         * plug-ins/dxf/dxf-export.c (export_dxf): 
6323         * plug-ins/metapost/render_metapost.c (export_metapost): 
6324         * plug-ins/pstricks/render_pstricks.c (export_pstricks): 
6325         * plug-ins/xfig/xfig-export.c (export_fig): 
6326         * plug-ins/wpg/wpg.c (export_data): 
6327         * plug-ins/cgm/cgm.c (export_cgm): 
6328         * app/render_eps.c (export_eps): 
6329         * app/export_png.c (export_png_ok): 
6330         * app/load_save.c (diagram_data_save): Adding and standardizing
6331         output file error messages to include fopen error message.
6333 2003-05-01  Steffen Macke <sdteffen@web.de>
6335         * app/persistence.c: do not use unistd.h for MSVC build
6337 2003-04-30  Lars Clausen  <lrclause@cs.uiuc.edu>
6339         * sheets/Assorted.sheet.in
6340         * sheets/Circuit.sheet.in
6341         * sheets/Contact.sheet.in
6342         * sheets/EML.sheet.in
6343         * sheets/ER.sheet.in
6344         * sheets/Electric.sheet.in
6345         * sheets/FS.sheet.in
6346         * sheets/Flowchart.sheet.in
6347         * sheets/GRAFCET.sheet.in
6348         * sheets/Logic.sheet.in
6349         * sheets/MSE.sheet.in
6350         * sheets/Misc.sheet.in
6351         * sheets/Pneumatic.sheet.in
6352         * sheets/SADT.sheet.in
6353         * sheets/SDL.sheet.in
6354         * sheets/UML.sheet.in
6355         * sheets/chronogram.sheet.in
6356         * sheets/ciscohub.sheet.in
6357         * sheets/ciscomisc.sheet.in
6358         * sheets/cisconetwork.sheet.in
6359         * sheets/ciscorouter.sheet.in
6360         * sheets/civil.sheet.in
6361         * sheets/network.sheet.in
6362         * sheets/sybase.sheet.in:
6363         Patch from Jan-Willem Harmanny <jwharmanny@zeelandnet.nl>
6364         standardizes shape descriptions to use no articles, no 'create
6365         ...'.
6366         
6367         * app/interface.c (tool_data): Standard objects follow same
6368         standard as sheets.
6370 2003-04-29  Lars Clausen  <lrclause@cs.uiuc.edu>
6372         * app/color_area.c (color_area_edit): More informative title on
6373         color selection dialog.
6375         * app/disp_callbacks.c (ddisplay_drop_object): Update menu
6376         sensitivity when dropping object in.  Also reset tool to pointer.
6378         * objects/flowchart/diamond.c (diamond_update_data): 
6379         * objects/flowchart/parallelogram.c (pgram_update_data): Added
6380         left and right alignment options.
6382 2003-04-28  Lars Clausen  <lrclause@cs.uiuc.edu>
6384         * objects/flowchart/box.c: Added left and right alignment options.
6386 2003-04-26  Lars Clausen  <lrclause@cs.uiuc.edu>
6388         * app/persistence.c (persistence_load): Test existence of
6389         persistence file before trying to open it.
6391 2003-04-25  Lars Clausen  <lrclause@cs.uiuc.edu>
6393         * app/properties.c: Escape now closes properties dialogs.
6395 2003-04-25  Hans Breuer  <hans@breuer.org>
6397         * app/config.h.win32 : bump version to 0.91+cvs
6399         * app/makefile.msc lib/makefile.msc lib/libdia.def : updated
6401         * lib/dia_dirs.c : G_OS_WIN32: #define mkdir(s,a) _mkdir(s)
6403         * app/commands.c : don't leak "netscape" if getenv("BROWSER")
6404         returns NULL
6406         * app/presistence.c : need to #include "dia_xml_libxml.h"
6407         for xmlDiaParseFile
6409         * app/layer_dialog.c : make delayed creation work by protecting
6410         all non static layer_dialog_*() with :
6411            if (layer_dialog == NULL || layer_dialog->dialog == NULL)
6412              create_layer_dialog();
6413         * app/app_procs.c : removed /* create_layer_dialog(); */
6415         * objects/uml/association.c : give it a minimal StdProp
6416         implementation to fix bug #108896
6417         * lib/object_defaults.c : don't try to copy props if there
6418         is no obj->ops->describe_props
6420 2003-04-24  Lars Clausen  <lrclause@cs.uiuc.edu>
6422         * objects/standard/image.c (image_create): 
6423         * objects/standard/ellipse.c (ellipse_create): 
6424         * objects/standard/box.c (box_create): 
6425         * objects/flowchart/ellipse.c (ellipse_create): 
6426         * objects/flowchart/diamond.c (diamond_create): 
6427         * objects/flowchart/box.c (box_create): 
6428         * objects/custom/custom_object.c (custom_create): 
6429         * objects/ER/relationship.c (relationship_create): 
6430         * objects/ER/entity.c (entity_create): 
6431         * objects/ER/attribute.c (attribute_create): Initialize
6432         elem->height to DEFAULT_HEIGHT instead of DEFAULT_WIDTH.
6434         * lib/dia_svg.c (dia_svg_parse_style): Added case to set center
6435         alignment. 
6437         * configure.in: 
6438         * plug-ins/Makefile.am: 
6439         * plug-ins/xslt/Makefile.am: 
6440         * plug-ins/xslt/xslt.c (dia_plugin_init): 
6441         Patch from Götz Waschk <waschk@informatik.uni-rostock.de> uses
6442         automake-style if to only include xslt dir when needed.  Works
6443         with automake 1.4 and up, at least.
6445 2003-04-22  Lars Clausen  <lrclause@cs.uiuc.edu>
6447         * lib/diasvgrenderer.c (draw_string): 
6448         * lib/dia_svg.c (dia_svg_parse_style): Use
6449         text-anchor:(start|middle|end).
6451         * lib/diasvgrenderer.c (draw_polygon, fill_polygon): Use svg
6452         polygon rather than polyline & avoid missing line pieces.
6453         (get_draw_style): Set fill-opacity to 0 on draw_style to avoid
6454         black-filled things.
6456 2003-04-21  Lars Clausen  <lrclause@cs.uiuc.edu>
6458         * app/persistence.c (persistence_load): Check that persistence
6459         file exists before trying to read it.
6460         (persistence_update_window): Removed printf.
6462         * objects/GRAFCET/step.c: Don't copy defaults for name and id.
6464         * lib/autoroute.c: Take badness into the layouters again, as some
6465         of them know they can do things that are pretty but would be
6466         counted as ugly by the default calculation.
6468         * objects/UML/large_package.c: Shrink package name box when no
6469         stereotype is present.
6471         * lib/orth_conn.h (ORTHCONN_COMMON_MENUS): 
6472         * lib/orth_conn.c: Added object menu item for autorouting.
6474         * objects/FS/flow-ortho.c (orthflow_get_object_menu): 
6475         Autorouting, plus set initial dragging handle to be the end, not
6476         the middle.
6477         (orthflow_draw): Flipped arrow place to be at the end, as
6478         originally intended (got lost in arrow update).
6480         * objects/standard/zigzagline.c (zigzagline_get_object_menu): 
6481         * objects/UML/dependency.c (dependency_get_object_menu): 
6482         * objects/UML/association.c (association_get_object_menu): 
6483         * objects/UML/realizes.c (realizes_get_object_menu): 
6484         * objects/SADT/arrow.c (sadtarrow_get_object_menu): 
6485         * objects/GRAFCET/vector.c (arc_get_object_menu): 
6486         * objects/ER/participation.c (participation_get_object_menu): 
6487         * objects/EML/instantiation.c (instantiation_get_object_menu): 
6488         * objects/UML/generalization.c (generalization_get_object_menu): 
6489         * objects/EML/interaction-ortho.c (interaction_ortho_get_object_menu): 
6490         Autorouting setup (currently disabled for SADT/arrow).
6491         
6492 2003-04-19  Lars Clausen  <lrclause@cs.uiuc.edu>
6494         * lib/autoroute.c: Removed printfs.
6496         * lib/orth_conn.c: 
6497         * lib/autoroute.[ch] (autoroute_layout_orthconn): Handle
6498         non-connected orthconns too.
6500 2003-04-18  Lars Clausen  <lrclause@cs.uiuc.edu>
6502         * lib/orth_conn.h: 
6503         * lib/orth_conn.c: Function to set autorouting on/off, use
6504         autorouting in move_handle (turns off when a middle handle is
6505         moved), added to standard orthconn props. 
6507         * app/disp_callbacks.c (create_object_menu, popup_object_menu):
6508         Stopped signal emission for check menu items being set to on/off.
6510         * objects/standard/zigzagline.c: Added autorouting object menu item.
6512         * lib/autoroute.c: Added last cases of autoroute layout, fixed
6513         floating point comparison bug, cleaned up layouters, tweaked
6514         badness to allow kinks. 
6516 2003-04-17  Lars Clausen  <lrclause@cs.uiuc.edu>
6518         * lib/connectionpoint.h: Changed DIR_* macros to go around the
6519         clock. 
6521         * lib/orth_conn.[ch] (orthconn_set_points): New function to set all
6522         points at once.
6523         * objects/standard/zigzagline.c (zigzagline_move_handle): Removed
6524         old cruft, added call to autoroute (currently cannot be turned
6525         off).  Need to check what undo thinks about this.
6526         * lib/autoroute.[ch]: Fairly working simple layout.
6528         * lib/Makefile.am (libdia_la_SOURCES): Added autoroute files.
6529         * lib/autoroute.[ch]: Start of proper autorouting functionality.
6531 2003-04-10  Lars Clausen  <lrclause@cs.uiuc.edu>
6533         * lib/prop_widgets.c: Show labels on ListProp.
6535 2003-04-11  Steffen Macke <sdteffen@web.de>
6537         * doc/en/dia-manual.xml: removed reference of non-existing authors 
6538         note.
6539         * doc/en/usage-objects-selecting: commented out misleading section
6540         references.
6542 2003-04-10  Lars Clausen  <lrclause@cs.uiuc.edu>
6544         * app/app_procs.c (app_init): Layer window now opened at startup
6545         only if needed.
6547         * lib/prop_widgets.c: Show labels on ListProp.
6549 2003-04-09  Steffen Macke <sdteffen@web.de>
6551         * doc/en/*.sgml: removed files
6552         * doc/en/*.xml: added files
6553         * doc/en/Makefile.am: switched to XML DocBook
6555 2003-04-09  Lars Clausen  <lrclause@cs.uiuc.edu>
6557         * plug-ins/xslt/xslt.c (dia_plugin_init): 
6558         * configure.in: Added --with-xslt-prefix to allow other XSLT
6559         placements than /usr/lib.
6561 2003-04-09  Steffen Macke <sdteffen@web.de>
6563         * lib/makefile.mingw: updated to include latest files, including 
6564         and linking libintl
6565         * lib/geometry.h: don't define isinf and finite for mingw gcc build
6567 2003-04-08  Lars Clausen  <lrclause@cs.uiuc.edu>
6569         * app/persistence.h:
6570         * app/persistence.c (persistence_register_window_create): 
6571         * app/app_procs.c (app_init): 
6572         Register window function that doesn't create the window unless it
6573         should be open.  Other windows should move to this, so startup
6574         speed can be reduced.
6575         
6576         * app/persistence.h: Removed call prototype for update_window, now
6577         done internally.
6578         * app/persistence.c (persistence_register_window): A number of
6579         fixes.  Doesn't forget position when window is closed.  Now
6580         actually loads prefs.
6582         * app/layer_dialog.c (create_layer_dialog): Removed extraneous
6583         event connect.
6585         * app/preferences.c (prefs_data): 
6586         * app/diagram_tree_window.h: 
6587         * app/diagram_tree_window.c: Added persistence registering.
6588         Removed prefs items storing size and openness. 
6590         * app/sheets_dialog.c (create_sheets_main_dialog): Added
6591         persistence registering.  
6593         * app/Makefile.am (dia_core_files): Added persistence files.
6595         * lib/dia_dirs.h: 
6596         * lib/dia_dirs.c (dia_config_ensure_dir): New function to ensure
6597         that dirs are present.
6599         * app/app_procs.c (app_init): Loads persistent values on startup.
6600         (app_exit): Saves persistent values on exit.
6602         * app/layer_dialog.c (create_layer_dialog): Registers the layer
6603         window for persistence.
6605         * app/persistence.[ch]: New files handling various kinds of
6606         persistence.
6608 2003-04-04  Lars Clausen  <lrclause@cs.uiuc.edu>
6610         * lib/arrows.c: Adjusted arrow head spacing, more systematic arrow
6611         head spacing calculations.  Added half-circle arrow from Matthieu
6612         Sozeau <mattam@netcourrier.com> 
6614 2003-04-03  Lars Clausen  <lrclause@cs.uiuc.edu>
6616         * app/app_procs.c (app_init): Moved layer dialog init to allow
6617         tooltips to be initialized.
6619         * app/interface.c (create_display_shell): More tooltips.
6621         * app/linewidth_area.c (linewidth_area_create) 
6622         (linewidth_area_events): 
6623         * app/color_area.c (color_area_events, color_area_create): 
6624         Made tooltips work by embedding drawing_area in event_box.
6626         * app/interface.c (create_display_shell,
6627         (create_lineprops_area, create_color_area): Added a few tooltips.
6629 2003-04-01  Lars Clausen  <lrclause@cs.uiuc.edu>
6631         * app/pixmaps/off-grid.xpm: 
6632         * app/pixmaps/on-grid.xpm: 
6633         * app/Makefile.am (EXTRA_DIST): Added snap to grid icons.
6635         * app/display.h: 
6636         * app/commands.c (view_snap_to_grid_callback): 
6637         * app/display.c (ddisplay_set_snap_to_grid) 
6638         (update_snap_grid_status): 
6639         * app/interface.c (create_display_shell, grid_toggle_snap): 
6640         Added snap-to-grid status button.
6642 2003-03-31  Lars Clausen  <lrclause@cs.uiuc.edu>
6644         * app/app_procs.c (app_init): Create a new diagram if a file on
6645         the command line isn't found.
6647 2003-03-17  Lars Clausen  <lrclause@cs.uiuc.edu>
6649         * lib/dialibartrenderer.c (draw_string): Correct color handling
6650         for AA.
6652 2003-03-14  Lars Clausen  <lrclause@cs.uiuc.edu>
6654         * NEWS: 
6655         * doc/en/dia-manual.sgml: 
6656         * doc/pl/dia-manual.sgml: 
6657         * configure.in: 
6658         * dia.spec (Release): 
6659         Version 0.91 is here!
6661 2003-02-10  Steffen Macke <sdteffen@web.de>
6663         * plug-ins/wmf/wmf.cpp: patch from Ken Tsukahara 
6664         <ken.tsukahara@tmt-d.co.jp>, fixes windows printing and WMF export of
6665         non-ANSI characters, closes #107980
6667 2003-03-04  Lars Clausen  <lrclause@cs.uiuc.edu>
6669         * configure.in: 
6670         * NEWS: 
6671         * dia.spec (Release): 
6672         * doc/en/dia-manual.sgml: Upping to pre6.
6674         * configure.in: Missing comma broke HAVE_IEEEFP_H test.
6676         * app/lineprops_area.c (dia_arrow_chooser_new): Fixing bug
6677         #107511:  Make arrow selector for correct arrow type.
6679 2003-03-03  Lars Clausen  <lrclause@cs.uiuc.edu>
6681         * shapes/Circuit/Makefile.am (SHAPES): Added hjumper.png to
6682         EXTRA_DIST.
6684 2003-03-02  Lars Clausen  <lrclause@cs.uiuc.edu>
6686         * doc/en/dia-manual.sgml: 
6687         * configure.in: 
6688         * NEWS: 
6689         * dia.spec (Release): Upping to pre5.
6691         * configure.in: Add freetype-config derived libs to the
6692         AC_CHECK_LIB statement for freetype.
6694 2003-02-28  Hans Breuer  <hans@breuer.org>
6696         [fix for bug #107203]
6698         * lib/diarenderer.c : add warning 'implementation'
6699         for fill_rect to avoid crashing with a renderer
6700         which does not implement this required function.
6702         * plug-ins/dxf/dxf-export.c : provide - still empty -
6703         'implementations' for fill_rect and fill_polygon 
6704         to suppress the above warnings. Now it works like
6705         in version 0.90 
6707 2003-02-28  Steffen Macke <sdteffen@web.de>
6709         * samples/all_objects.dia: New sheet containing all dia shapes
6710         and objects; one layer per sheet
6711         
6712 2003-02-28  Lars Clausen  <lrclause@cs.uiuc.edu>
6714         * lib/prop_text.c (multistringprop_get_widget,
6715         multistringprop_reset_widget, multistringprop_set_from_widget): 
6716         Now uses GtkTextView instead of deprecated stuff, and also works:)
6718         * configure.in: Slightly more informative error message for isinf.
6720         * dia.spec (Requires): Require libxml2 rather than libxml.
6722 2003-02-28  Steffen Macke <sdteffen@web.de>
6724         * shapes/Circuit/hjumper.png:
6725         * shapes/Circuit/hjumper.shape: added missing icon for horizontal
6726         jumper shape
6727         
6728 2003-02-26  Lars Clausen  <lrclause@cs.uiuc.edu>
6730         * doc/en/dia-manual.sgml: 
6731         * configure.in: 
6732         * dia.spec (Release):
6733         * NEWS: New prerelease 0.91pre4, two important fixes.
6735 2003-02-25  Lars Clausen  <lrclause@cs.uiuc.edu>
6737         * plug-ins/xslt/Makefile.am (EXTRA_DIST): Also dist
6738         stylesheets.xml.in 
6740         * app/commands.c (help_manual_callback): More correct URL for help
6741         page (include file://, was broken on Dillo without it).
6743 2003-02-24  Lars Clausen  <lrclause@cs.uiuc.edu>
6745         * app/disp_callbacks.c: Set modifed when text is changed.
6747         * app/modify_tool.c (modify_button_release): Allow undo for moving
6748         objects.
6750 2003-02-16  Lars Clausen  <lrclause@cs.uiuc.edu>
6752         * dia.spec: 
6753         * doc/en/dia-manual.sgml: 
6754         * NEWS: 
6755         * configure.in: New prerelease with important bugfix.
6756         * shapes/network/digitizing_board.png:
6757         * shapes/network/plotter.png: Re-adding with -kb.
6758         
6759 2003-02-17  Abel Cheung  <maddog@linux.org.hk>
6761         * app/app_procs.c (app_init): Add comment for translators.
6763 2003-02-16  Lars Clausen  <lrclause@cs.uiuc.edu>
6765         * lib/filter.c (filter_register_import, filter_register_export):
6766         Don't accept filters with NULL description.
6768         * lib/plug-ins.c (dia_plugin_load): Fail if there's no description
6769         (as we assume the description is available in other places).
6771 2003-02-15  Lars Clausen  <lrclause@cs.uiuc.edu>
6772         
6773         * app/disp_callbacks.c (ddisplay_vsb_update, ddisplay_hsb_update): 
6774         * app/display.c (ddisplay_resize_canvas): Use
6775         ddisplay_add_update_all().
6776         (ddisplay_add_update_all): Free display and update lists when
6777         doing update_all, as they'll be regenerated immediately to cover
6778         all visible area.  Fixes bug #106165, crash when resizing.  This
6779         appears to be the original AA crash bug, believed long extinct.
6781 2003-02-13  Lars Clausen  <lrclause@cs.uiuc.edu>
6783         * app/commands.c (help_manual_callback): Use file: protocol for
6784         help. 
6786         * plug-ins/xslt/.cvsignore: Ignore .o files, please.
6788         * plug-ins/xslt/stylesheets: Removed old-style config file.
6789         
6790         * plug-ins/xslt/stylesheets.xml.in: New XML-based config file.
6792         * plug-ins/xslt/Makefile.am: 
6793         * plug-ins/xslt/xslt.c: Applied patch from Matthieu, improved path
6794         handling (no more DIA_PLUGIN_PATH).
6796 2003-02-11  Lars Clausen  <lrclause@cs.uiuc.edu>
6798         * plug-ins/svg/render_svg.c: 
6799         * lib/diasvgrenderer.c: Fixed numeric localized output issues.
6801 2003-02-10  Lars Clausen  <lrclause@cs.uiuc.edu>
6803         * objects/SADT/arrow.c (sadtarrow_draw): Clamp cosa, cosb to 
6804         [-1.0, 1.0].  Shouldn't be necessary, but in some cases the
6805         side of the triangle is longer than the hypotenuse.  Rounding
6806         error suspected.
6808 2003-02-09  Lars Clausen  <lrclause@cs.uiuc.edu>
6810         * NEWS: 
6811         * configure.in: 
6812         * doc/en/dia-manual.sgml: Update for pre2.
6814         * app/menus.c (display_menu_items): Fixed wrongly place separators.
6816         * objects/flowchart/box.c (box_update_data): Applied patch from
6817         Eivind Tagseth <eivind-gnome@multinet.no> to allow resize (with
6818         comment). 
6820         * app/paginate_psprint.c (print_page): Set paper name, so it
6821         convinces ps printers to use to right size.
6823 2003-02-07  Lars Clausen  <lrclause@cs.uiuc.edu>
6825         * app/properties.c (properties_show): Hide the dialog if the
6826         object is NULL (get rid of 'no properties' randomly popping up).
6828 2003-02-06  Lars Clausen  <lrclause@cs.uiuc.edu>
6830         * plug-ins/pixbuf/pixbuf.c (export_data): Adjust width and height
6831         for diagrams not starting at origo.
6833 2003-02-05  Lars Clausen  <lrclause@cs.uiuc.edu>
6835         * dia.spec (BuildRequires): Use libxml2-devel.
6837         * plug-ins/pixbuf/Makefile.am: Added to CVS.
6839         * RELEASE-PROCESS: Note on RPM version numbers.
6841         * app/interface.c (create_display_shell): Don't set as toolbar
6842         under Unix, either.  Especially not the diagram shell.  It removes
6843         it from the taskbar and makes it unresizable, always-on-top with
6844         OpenBox.  TOOLBAR != TOOLBOX.  Setting toolbox to the only
6845         appropriate thing, UTILITY, is not good either, you lose resizing
6846         and minimizing/maximizing under OpenBox.
6848         * app/menus.c (display_menu_items): Set delete item to use Delete.
6850 2003-02-04  Lars Clausen  <lrclause@cs.uiuc.edu>
6852         * dia.spec (BuildRequires, Requires): Updated for Gtk2
6853         requirements.
6855         * app/disp_callbacks.c (ddisplay_canvas_events): Only add a
6856         display flush when getting focus in, or we may get an update after
6857         the diagram has been destroyed in some cases.  Fixes bug #105221.
6859         * plug-ins/xfig/xfig-import.c: Notes on the splines used by XFig.
6861         * lib/diarenderer.c: Notes on the basis matrix for our beziers.
6863         * app/app_procs.c (app_init): Fixed missing popt context for Gnome
6864         - gnome-compiled Dia will now read files specified on the command line.
6866 2003-02-03  Lars Clausen  <lrclause@cs.uiuc.edu>
6868         * INSTALL (REQUIREMENTS): Updated requirements section.
6870         * configure.in: Better finite() check from MÃ¥rten Svantesson
6871         <f95-msv@nada.kth.se>.  Doesn't seem to generate strange dangly
6872         if's. 
6873         
6874 2003-02-03  Lars Clausen  <lrclause@cs.uiuc.edu>
6876         * plug-ins/xfig/xfig-import.c: Notes on spline conversions.
6878         * app/app_procs.c (debug_break): Added some code to avoid
6879         over-eager optimizations removing the call.  Surely there's a
6880         nicer way, but I'm not sure how.
6882         * app/diapsft2renderer.c (draw_bezier_outline): Removed paps relic
6883         that set text to black.
6885 2003-02-02  Lars Clausen  <lrclause@cs.uiuc.edu>
6887         * NEWS: Mention of Twiki as doc source for Python.
6889         * plug-ins/pixbuf/pixbuf.c: Export with pixbuf if
6890         libart/libpng is not available.  Later when we have a way of
6891         letting the user pick options in the file select dialog we shall
6892         allow the choice when applicable.
6894 2003-02-02  Steffen Macke <sdteffen@web.de>
6896         * doc/en/usage-loadsave.sgml:
6897         * doc/en/usage-objects.sgml: patch from
6898         James K. Lowden <jklowden@schemamania.org> to fix
6899         some docbook errors
6900         
6901 2003-02-01  Lars Clausen  <lrclause@cs.uiuc.edu>
6903         * plug-ins/Makefile.am (SUBDIRS): 
6904         * plug-ins/pixbuf/pixbuf.c: 
6905         * plug-ins/pixbuf/Makefile.am: 
6906         * configure.in: 
6907         Added pixbuf plugin to Makefile.am, but for import only.  PNG
6908         export handled by libart, which is better. JPG export is
6909         discouraged.  BMP is not much used on Unix.  Next release will
6910         integrate libart to allow all outputs.
6912 2003-02-01  Hans Breuer  <hans@breuer.org>
6914         * app/preferences.c :
6915         * app/pagesetup.c :
6916         the last two dialogs with 'old' button order finally
6917         are converted to gtk2, no GnomeDialog in all of Dia 
6918         anymore :-) 
6920 2003-02-01  Hans Breuer  <hans@breuer.org>
6922         * app/filedlg.c : don't try to use a button as
6923         'overwrite-file-dialog'-parent, use the FileSelDialog
6924         instead
6926         * plug-ins/pixbuf/pixbuf.c : make it work with 
6927         system-visual-depth < 24. Remove 'bmp' from output
6928         format extensions, it just was wishful thinking.
6930         * plug-ins/python/Makefile.am : added the four new python 
6931         plug-ins mentioned below to pyplugin_DATA and EXTRA_DIST
6933 2003-02-01  Hans Breuer  <hans@breuer.org>
6935         * NEWS : updated content beside dependencies
6937 2003-02-01  Hans Breuer  <hans@breuer.org>
6939         * lib/arrow.h : arrow_types needs to be declared as DIAVAR
6940         to make it useable across DLL boundaries
6941         * app/lineprops_area.c : same code to access arrow_types
6942         on all platforms
6944         * objects/UML/class.c : the non empty string is e.g.
6945         comment != NULL && comment[0] != '\0'
6946         * objects/UML/uml.c : same here, don't bother with
6947         empty operation stereotypes
6949 2003-02-01  Steffen Macke <sdteffen@web.de>
6951         * app/lineprops_area.c: latest changes do not work on
6952         windows, using old code without tooltips
6953         * makefile.msc: fixed copying of wmf.dll
6954         * plug-ins/makefile.msc: 
6955         * app/makefile.msc:
6956         * lib/makefile.msc: now linking libintl
6957         * config.h.win32: enabling native language support
6959 2003-01-31  Lars Clausen  <lrclause@cs.uiuc.edu>
6961         * plug-ins/xslt/Makefile.am (libxslt_filter_la_LDFLAGS): Removed
6962         -ldl and -lglib.  May or may not work on windows...awaiting verdict.
6964 2003-01-31  Daniel Yacob  <locales@geez.org>
6966         * configure.in: Added am (Amharic) to ALL_LINGUAS.
6968 2003-01-31  Steffen Macke <sdteffen@web.de>
6970         * objects/UML/class.c (umlclass_calculate_data): fixed crash
6971         when comments were visible, no class comment available and
6972         a attribute comment
6973          
6974 2003-01-31  Lars Clausen  <lrclause@cs.uiuc.edu>
6976         * RELEASE-PROCESS: Updated to fit new install-module syntax.
6977         * Prerelease 0.91-pre1 released on a suspecting public.  Tagging
6978         with DIA_0_91_PRE1.
6980 2003-01-30  Lars Clausen  <lrclause@cs.uiuc.edu>
6982         * config.h.win32: 
6983         * NEWS: 
6984         * configure.in:
6985         * dia.spec:
6986         Prerelease version changes, version 0.91-pre1.
6988         * app/sheets_dialog_callbacks.h: 
6989         * app/sheets_dialog_callbacks.c: 
6990         * app/sheets_dialog.c (create_sheets_main_dialog): 
6991         * app/sheets.c (sheets_dialog_create): More destroy stuff.  Trying
6992         to handle destruction of main dialog cleanly, but it's a mess.
6994         * configure.in: Downgraded ieeefp test to make it not produce
6995         illegal shell code.
6997         * lib/widgets.c (dia_arrow_selector_set_arrow): 
6998         (dia_line_style_selector_set_linestyle): Select menu dot
6999         correctly set.
7001         * lib/arrows.c (calculate_arrow_point): Fix of wrong arrow
7002         adjustment for diamondheads.
7004         * lib/plug-ins.c (dia_plugin_load): Fixed typo.
7006         * app/properties.c (create_dialog): Destroy properties dialog and
7007         box correctly.
7009         * app/sheets_dialog_callbacks.c
7010         (on_sheets_dialog_button_edit_clicked): Only create a new dialog
7011         if the old one is destroyed.
7013 2003-01-29  Lars Clausen  <lrclause@cs.uiuc.edu>
7015         * app/export_png.c (export_png_ok): Added info on resolution.
7016         Should (next release) improve export dialog to allow setting
7017         resolution instead of pixels.
7019         * app/lineprops_area.c (dia_arrow_chooser_new): Use menudesc list
7020         to generate arrowheads as well as tooltips.
7022         * lib/arrows.c: Added hollow diamond to menudesc list.
7024         * lib/arrows.[ch]: 
7025         * lib/widgets.[ch]: Moved arrow name list into arrows.[ch] to
7026         unify with rendered menu.
7028         * lib/diarenderer.c (draw_line_with_arrows)
7029         (draw_polyline_with_arrows, draw_arc_with_arrows)
7030         (draw_bezier_with_arrows): Fixed linestyle change bug (#104488)
7031         without changing renderer API.  Thanks to David Scherba for
7032         providing inspiration.
7034 2003-01-28  Lars Clausen  <lrclause@cs.uiuc.edu>
7036         * app/interface.c (create_display_shell):
7037         * app/display.h: Patching from Hubert Figuiere
7038         <hfiguiere@teaser.fr>:  Better types for menu bar widgets, and
7039         correct menu items.
7041 2003-01-26  Lars Clausen  <lrclause@cs.uiuc.edu>
7043         * app/defaults.c (defaults_show): Fixed defaults closing bug.
7044         Thanks to Hans for pointing it out.
7046 2003-01-25  Hans Breuer  <hans@breuer.org>
7048         * app/commands.c : don't warn about crashing libart renderer
7049         on win32. It simply doesn't render text anymore :-(
7051         * app/filedlg.c : use GtkMessageDialog for 'file overwrite'
7053         * objects/UML/class.c : don't access umlclass->properties_dialog
7054         after calling gtk_widget_destroy(umlclass->properties_dialog->dialog)
7055         which sets the former to NULL by destroy_properties_dialog() callback.
7057         * plug-ins/wmf/wmf.cpp : use dia_image_rowstride()
7059         * plug-ins/python/pydia-font.c : fix PyDiaFont_GetAttr()
7061         * plug-ins/python/pydia-image.c : add image.uri member
7062         not only useful for SVG rendering
7064         * plug-ins/python/diasvg.py : (new file) a more advanced
7065         example. A full blown SVG Renderer, currently only
7066         registered for .svgz
7068         * plug-ins/python/export-object.py : write text props
7070         * plug-ins/python/debug_objects.py : write prop.type and
7071         prop.visible 
7073 2003-01-25  Lars Clausen  <lrclause@cs.uiuc.edu>
7075         * objects/UML/association.c (association_update_data): Better
7076         bounding box for assoc with arrows.
7078         * lib/properties.h: New flag for properties with multiple values
7079         in groups.
7081         * app/lineprops_area.c (dia_arrow_chooser_dialog_show): Correct
7082         arrow updating in dialog.  Was broken due to changes from destroy
7083         fix:(
7085         * app/commands.c (view_aa_callback): AA warning only for Windows
7086         -- I trust the Unix side well enough.
7088         * app/render_libart.c (get_text_width): 
7089         * lib/dialibartrenderer.h (struct _DiaLibartRenderer): Font and
7090         font height can be taken from parent instance.
7092         * lib/dialibartrenderer.c (dia_libart_renderer_class_init) 
7093         (get_text_width): Proper cursor positioning for libart renderer.
7094         Ought to have a DiaInteractiveRenderer that these two can inherit
7095         from, that knows about transform.
7097 2003-01-25  Steffen Macke <sdteffen@web.de>
7099         * plug-ins/xslt/xslt.h: don't use dlfcn.h on win32. XSLT
7100         plug-in still not working on win32
7101         
7102 2003-01-24  Lars Clausen  <lrclause@cs.uiuc.edu>
7104         * app/disp_callbacks.c (ddisplay_canvas_events): Moved
7105         gdk_window_get_pointer to avoid destroy crash.  Simpler than I
7106         thought.
7108 2003-01-23  Lars Clausen  <lrclause@cs.uiuc.edu>
7110         * app/app_procs.c (app_init): Run gtk_init before popt so we don't
7111         bail out on gtk options.
7113         * lib/message.c (gtk_message_internal): Better handling of destroy
7114         event.
7116 2003-01-22  Lars Clausen  <lrclause@cs.uiuc.edu>
7118         * app/color_area.c (color_area_edit): 
7119         * lib/widgets.c (dia_file_selector_browse_pressed) 
7120         (dia_color_selector_pressed): 
7121         * app/plugin-manager.c (get_plugin_manager): 
7122         * app/filedlg.c (file_open_callback, file_save_as_callback) 
7123         (file_export_callback):
7124         * app/diagram_tree_window.c (diagram_tree_window_new): Correct
7125         handling of destroy event.
7127 2003-01-22  Alan Horkan <horkana@tcd.ie>
7129         * app/commands.c (file_new_callback): Changed Untitled to Diagram
7130         for default name.
7132 2003-01-21  Lars Clausen  <lrclause@cs.uiuc.edu>
7134         * app/preferences.c (prefs_create_dialog): 
7135         * app/linewidth_area.c (linewidth_create_dialog): 
7136         * app/lineprops_area.c (dia_arrow_chooser_dialog_show): 
7137         * app/layer_dialog.c (create_layer_dialog)
7138         (layer_dialog_edit_layer): Correct handling of destroy signal. 
7140         * app/diapsft2renderer.c (set_font): Adjust silly random factor
7141         for change in font.c
7143         * lib/widgets.c: Avoid warning when font menu file doesn't exist.
7145         * lib/font.c (dia_font_build_layout): Let's all use the same weird
7146         factor here.
7148         * app/lineprops_area.c (dia_arrow_chooser_dialog_show): 
7149         * app/layer_dialog.c (create_layer_dialog) 
7150         (layer_dialog_edit_layer): 
7151         * app/filedlg.c (file_open_callback, file_save_as_callback) 
7152         (file_export_callback): 
7153         * app/dia-props.c (create_diagram_properties_dialog): 
7154         * app/defaults.c (defaults_dialog_destroyed): 
7155         * app/color_area.c (color_area_edit): Dialog destroy event handling.
7157 2003-01-19  Lars Clausen  <lrclause@cs.uiuc.edu>
7159         * app/defaults.c (defaults_dialog_destroyed): Reset cache when
7160         defaults dialog destroyed.
7162 2003-01-19  Steffen Macke <sdteffen@web.de>
7164         * objects/makefile.msc: added bondgraph
7165         * plug-ins/makefile.msc: added GDK_PIXBUF_LIBS in order
7166         to compile pixbuf.dll
7167         * makefile.msc: copying all objects and dlls now
7168         
7169 2003-01-19  Hans Breuer  <hans@breuer.org>
7171         * app/diagram.[hc] : provide dia_open_diagrams(), make
7172         open_diagrams variable static
7173         * app/dia.def : export it (to be used by PyDia)
7174         * app/app_procs.c app/autosave.c app/diagram_tree_window.c
7175           app/display.c app/dynamic_refresh.c app/layer_dialog.c
7176           app/load_save.c : make use of dia_open_diagrams()
7178         * app/interface.c : don't set GDK_WINDOW_TYPE_HINT_TOOLBAR
7179         on win32. It removes the diagram window from the taskbar and
7180         shrinks it's window title to toolbar style (newest gtk2.2 cvs)
7182         * app/menus.c : add '...' to menu entries where a dialog 
7183         gets invoked
7184         * app/recent_files.c app/dia_embedd.c : reflect the above in 
7185         menus_get_item_from_path() calls
7187         * lib/libdia.def : add dia_image_rgba_data
7189         * lib/properties.h lib/prop_text.[hc] : add new property
7190         type StringList
7191         * objects/UML/class.[hc] object/UML/class_dialog.c : use
7192         StringList for attributes_strings and operations_strings to
7193         make this calculated data accessible via the Property API
7195         * plug-ins/python/diamodule.c : use dia_open_diagrams() and
7196         provide dia.new() to create a new diagram, dia.registered_types()
7197         to get on Dia's type registry, dia.message() for simple dialogs
7199         * plug-ins/python/pydia-diagram.c : implement DiaDiagram.display()
7200         to create a new display from a diagram. Let diagram.extents and
7201         diagram.bg_color return the same types as in diagramdata.*
7203         * plug-ins/python/pydia-geometry.c : add a read-only 
7204         'sequence interface' to DiaPoint and DiaRectangle
7206         * plug-ins/python/pydia-property.c : allow to get on StringList
7207         from Python
7209         * plug-ins/python/pydia-render.c : fix typo to make it compile
7211         * plug-ins/python/python-startup.py : removed 'import pygtk'
7212         again. This file does not need any gtk UI, and some python
7213         plug-ins don't do either
7215         * plug-ins/python/gtkcons.py : ported to GTK2 interface, now
7216         it should actually work as intended again
7218         * plug-ins/python/group_props.py : (new file) a prototype for
7219         one the most requested features: Change properties of selected
7220         objects in one step. Requires pygtk.
7222         * plug-ins/python/select_by.py : (new file) select objects by 
7223         common properties. Requires pygtk.
7225         [Start of 'PyDia Self Documentation Series']
7227         * plug-ins/python/pydiadoc.py : (new file) generates a new 
7228         diagram which contains all objects of dir(dia)
7229         
7230         * plug-ins/python/otypes.py : (new file) generates a new diagram 
7231         which contains all the currently registered object types sorted 
7232         by their containing package
7234 2003-01-18  Lars Clausen  <lrclause@cs.uiuc.edu>
7236         * configure.in: Added check for Pango >= 1.1.5, which appears to
7237         be enough to have text work.
7238         (INTLOBJS): Added dummy subst cause gettext doesn't always seem to
7239         do it.  AC_SUBST should be idempotent, though.
7241 2003-01-17  Lars Clausen  <lrclause@cs.uiuc.edu>
7243         * configure.in (HAVE_FREETYPE): Better test for freetype version
7244         using neat macro.
7245         Now actually sets HAVE_IEEEFP_H, needed for Solaris.
7247         * lib/font.c: Renamed global_size_one to global_zoom_factor to
7248         avoid confusion, and added comment.  Set scale factor in
7249         dia_font_build_layout to 1.0 for Unix side.  This fixes at least
7250         my weird scaling problems.  Fonts are now of the expectable size,
7251         i.e. the space between lines at size 1.0 is 1.0.  If we want a
7252         compatibility fix, we should scale fonts by about 1/0.75 from 0.90
7253         diagrams, though there will always be differences.
7255 2003-01-15  Lars Clausen  <lrclause@cs.uiuc.edu>
7257         * plug-ins/python/python-startup.py: 
7258         * plug-ins/python/gtkcons.py: Require gtk 2.0 for pygtk
7260         * plug-ins/python/python.c (dia_plugin_init): Added warning
7261         message for missing startup file.
7263         * lib/dialibartrenderer.c (draw_image): Alpha rendering!  Yay!
7264         
7265         * lib/dia_image.c (dia_image_rgb_data): 
7266         * app/diapsrenderer.c (draw_image): Fixed rowstride problems
7267         involving EPS.  Can't do transparency in EPS yet.
7269         * lib/dia_image.h: 
7270         * lib/dia_image.c (dia_image_rgba_data): New function to get RGBA
7271         data as one chunk.  Documentation for the RGB data getting funcs.
7272         (dia_image_rgb_data): Added comment.
7274         * lib/dialibartrenderer.c (draw_image): Correct rowstride handling
7275         (bug #103565)
7277 2003-01-13  Steffen Macke <sdteffen@web.de>
7279         * lib/dia_image.c: dia_image_rgb_data() is working for
7280         non-alpha images now. Fixes #93762
7281         * Makefile.am: added makefile.msc to EXTRA_DIST
7282         
7283 2003-01-10  Steffen Macke <sdteffen@web.de>
7285         * app/paginate_psprint.c: Closing print dialog when file
7286         could not be written. Fixes #84746
7287         
7288 2003-01-04  Steffen Macke <sdteffen@web.de>
7290         * doc/custom-shapes: incomplete description of <svg:text>
7292 2003-01-03  Steffen Macke <sdteffen@web.de>
7294         * makefile.msc(new): new makefile to create file
7295         structure suitable for running dia win32 under
7296         $(TOP)/dia/build/win32
7297         
7298 2003-01-02  Steffen Macke <sdteffen@web.de>
7299         
7300         * lib/dia_svg.c: including stdlib.h
7301         * lib/makefile.msc: added gdk_pixbuf libs to linker
7302         * app/makefile.msc: added gdk_pixbuf libs, made libart
7303         libs compatible with gnuwin32 package
7304         
7305 2003-01-01  Hans Breuer  <hans@breuer.org>
7307         * lib/font.c : more comment about global_size_one
7309         * app/menus.c : <control>[<shift>]A for plain gtk build too.
7311         * plug-ins/wmf/wmf.cpp : some type juggling to make 
7312         msvc7 happy
7314 2002-12-31  Steffen Macke <sdteffen@web.de>
7316         * app/makefile.msc: added hint on how to enable console output
7317         
7318 2002-12-17  Lars Clausen  <lrclause@cs.uiuc.edu>
7320         * objects/standard/textobj.c (textobj_load): Get the handle type
7321         right, at least to be the same as when created.
7323 2002-12-12  Lars Clausen  <lrclause@cs.uiuc.edu>
7325         * lib/dialibartrenderer.c (draw_string): Removed extra 'is'.
7327 2002-12-08  Hans Breuer  <hans@breuer.org>
7329         * app/commands.c : fixed bug #85315 'give diagram properties, 
7330         instead of no object selected error' almost a one-liner
7332         * app/splash.c : don't make having the logo pixmap
7333         mandatory. Fixes bug #96068. 
7335         * app/defaults.c : avoid crashing from open-dialog,esc,open-dialog
7336         sequence by connecting to the "delete_event"
7337         * app/objects/uml/class_dialog.c : handle "destroy" for 
7338         the same reason.
7340         * lib/libdia.def : remove diaXmlNewChild again
7342         * app/paginate_gdiprint.cpp : reflect Dia's page setting
7343         portrait/landscape in the windoze print dialog
7345         * objects/makefile.msc : only UML needs to link against
7346         $(GTK2_LIBS) and only custom against $(LIBXML2_LIBS)
7348 2002-12-08  Lars Clausen  <lrclause@cs.uiuc.edu>
7350         * objects/standard/ellipse.c (ellipse_distance_from): 
7351         * lib/geometry.c (distance_ellipse_point): Ellipse now uses the
7352         correct distance function.  Could be faster, but it's not really
7353         essential. 
7355 2002-12-07  Lars Clausen <lrclause@cs.uiuc.edu>
7357         * lib/font.c: Changed global_size_one to more correct 28.35.
7358         Looks better, too.
7360         * app/load_save.c:
7361         * lib/dia_xml.h: 
7362         * lib/dia_xml.c: Removed pretty print hack, the libxml thing works
7363         after all.
7365 2002-12-07  Hans Breuer  <hans@breuer.org>
7367         * lib/widgets.c : g_file_get_contents() silently assumes
7368         a binary file. Reflect when creating the font_menu file
7369         to get rid of junk in font menus
7371 2002-12-06  Hans Breuer  <hans@breuer.org>
7373         * app/diapsrenderer.[hc] app/diapsft2renderer.[hc] :
7374         removed 0xD 0xD 0xA line ends which get created by
7375         cvs if windoze line ends 0xD 0xA are checked in from
7376         *nix and checked out on win32.
7378         * app/preferences.c : changed toolbox_on_top default to
7379         false. It is currently not possible to change the behaviour
7380         at runtime, at least not on win32.
7382         * lib/dialibartrenderer.c : bug #94791 'rendering to 
7383         bitmap without PangoFt2' got delayed to milestone future 
7384         so wrap libart text rendering into PANGO_WIN32_FUTURE. 
7385         It is not available without my Pango patch in bugzilla.
7387         * lib/font.c : added comment to global_size_one and adapt
7388         the arbitrary size scaling in dia_font_build_layout() for
7389         win32, too. This is needed to get an acceptable font size 
7390         approximation for Dia 0.90 and earlier files.
7391         Also #include "message.h".
7393         * app/makfile.msc app/dia.def lib/makefile.msc lib/libdia.def :
7394         reflect movement of group.[hc]
7395         * lib/group.h : export group_type which gets used by app/*
7397         * lib/diagtkfontsel.c : added #undef GTK_DISABLE_DEPRECATED
7398         to get the GtkTypeInfo definition
7400         * plug-ins/makefile.msc : dxf and xfig don't need to link
7401         against app/ anymore now that group is moved to lib/
7403         * plug-ins/python/pydia-render.c : remove massive leaking
7404         of self, i.e. PyDiaRenderer
7406         *  plug-ins/python/makefile.msc : remove linking against
7407         GTK libs
7409 2002-12-06  Lars Clausen  <lrclause@cs.uiuc.edu>
7411         * objects/standard/line.c: Removed properties options for gaps,
7412         until release is done.
7414         * configure.in: Check for freetype version.
7416         * lib/text.c (text_insert_char): Fixed small buffer overflow for
7417         length = 0.
7419         * lib/dialibartrenderer.c (draw_string): Removed debugging printf.
7421         * app/diapsft2renderer.h: 
7422         * app/diapsft2renderer.c: 
7423         * app/diapsrenderer.h: 
7424         * app/diapsrenderer.c: Split ps rendering into standard and freetype.
7426         * app/render_eps.c (export_eps, new_psprint_renderer): Using
7427         PS_FT2 renderer when available.  Old render stuff killed.  Yay!
7429         * lib/properties.h: Fixed bad frame end def.
7431         * app/Makefile.am (dia_core_files): Added diapsft2renderer.[ch].
7433         * lib/dia_xml.c (data_add_string): Avoid #-less strings.
7434         
7435         * objects/bondgraph/Makefile.am: Removed unneeded EXTRA_DIST.
7437 2002-12-05  Lars Clausen  <lrclause@cs.uiuc.edu>
7439         * lib/font.c: Now checking for the proper dia-style standard fonts.
7441         * lib/Makefile.am: 
7442         * app/Makefile.am: Moving group.[ch]
7444         * plug-ins/dxf/dxf-import.c: 
7445         * plug-ins/xfig/xfig-import.c: 
7446         * plug-ins/xfig/xfig-export.c: Now can refer directly to group.h.
7448         * app/object_ops.c: 
7449         * app/object_ops.h: 
7450         * lib/object.c (object_list_move_delta, object_copy_list): 
7451         * lib/object.h: Moved some object-related functions from
7452         object_ops to object to assist moving group.c.
7454         * lib/diatypes.h: Added Group typedef.
7456         * lib/group.h: 
7457         * lib/group.c: Moved from app to lib to a) resolve plug-ins
7458         references, and b) make groups more "real" objects.
7460         * lib/Makefile.am (libdia_la_SOURCES): Added diatyps.h
7462 2002-12-03  Lars Clausen <lrclause@cs.uiuc.edu>
7464         * lib/font.c (dia_font_init): Added check that the three standard
7465         fonts exist.
7467 2002-12-02  Lars Clausen  <lrclause@cs.uiuc.edu>
7469         * lib/dia_xml.[ch]:
7470         * app/load_save.c: Linebreaks in dia files, no indentation.
7471         Should help text tools.  xmlNewChild wrapped in diaXmlNewChild for
7472         this. 
7473         
7474         * objects/standard/line.c: Small but important fixes to the line
7475         gap code.
7477         * lib/dia_xml.h: 
7478         * lib/dia_xml.c (diaXmlNewChild): 
7479         * app/load_save.c (diagram_data_write_doc, write_objects): Simple
7480         XML prettyprinting wrapper.
7482 2002-12-03  Steffen Macke <sdteffen@web.de>
7484         * shapes/Cisco/Makefile.am:
7485         * shapes/Cisco/*.shape: finished conversion of Cisco icons
7486         to *.png
7487         
7488 2002-12-02  Steffen Macke <sdteffen@web.de>
7490         * doc/en/Makefile.am:
7491         * doc/en/usage-objects.sgml:
7492         * doc/en/graphics/line_icon.png: (new) added line icon
7493         
7494 2002-12-02  Lars Clausen  <lrclause@cs.uiuc.edu>
7496         * objects/standard/line.c: Binary search object edge line gap.
7498 2002-12-01  Lars Clausen  <lrclause@cs.uiuc.edu>
7500         * configure.in: Added Cisco makefile, sorted Makefiles list.
7502         * shapes/Makefile.am (SUBDIRS): Added Cisco dir
7504         * configure.in: Now checks for availability of PangoFT2 and
7505         FreeType, raising an error if not found.
7507         * app/Makefile.am (dia_core_files): Adding diapsft2renderer from
7508         Hans.
7510 2002-12-01  Steffen Macke <sdteffen@web.de>
7511         
7512         * doc/en/usage-loadsave.sgml: updated information on import
7513         and export formats
7514         
7515 2002-11-28  Lars Clausen  <lrclause@cs.uiuc.edu>
7517         * app/commands.c (edit_copy_callback): Freeing copy_list.
7519 2002-11-28  Steffen Macke <sdteffen@web.de>
7520         
7521         * app/render_libart.c: art_config.h was included twice
7523 2002-11-27  Lars Clausen  <lrclause@cs.uiuc.edu>
7525         * sheets/.cvsignore: More ignorance.
7527         * lib/diagdkrenderer.c (draw_string): Removed silly #ifdef 1.
7529         * lib/prop_widgets.h: Two (currently unused) settings for frame
7530         foldability.
7532         * lib/prop_widgets.c (frame_beginprop_get_widget): Frames are now
7533         (by default) foldable. 
7535         * lib/propinternals.h: 
7536         * lib/propdialogs.c (prop_dialog_add_raw_with_flags): Way to add
7537         widgets in a more controlled manner.
7539         * objects/standard/line.c (line_update_data): Line gap things
7540         inserted.  Can do xeyes now:)
7542 2002-11-26  Christian Neumair  <chris@gnome-de.org>
7544         * .cvsignore: Changed.
7545         * objects/bondgraph/.cvsignore, plug-ins/metapost/.cvsignore,
7546         plug-ins/xslt/.cvsignore, shapes/Assorted/.cvsignore, shapes/Misc/.cvsignore:
7547         Added.
7549 2002-11-26  Lars Clausen  <lrclause@cs.uiuc.edu>
7551         * app/pixmaps/delete.xpm: Trashcan stolen from Gimp.
7553         * lib/widgets.c (dia_font_selector_get_font): Fixed wrong name
7554         passing to font hash.
7556         * app/filedlg.c (file_save_as_ok_callback): Check that filename is
7557         utf-8 or locale-convertible before adding to dialog text.  This
7558         probably needs done in a number of places where we get text from
7559         the environment and send it to GTK to display.
7561         * lib/widgets.c: Fixed case problems for font menu entries.
7563         * objects/SADT/annotation.c: Don't run the event test (but leave
7564         it here for inspiration).
7566         * lib/widgets.c: 
7567         * lib/widgets.h: Allowing setting preview text for fonts.
7569 2002-11-26  Lars Clausen  <lrclause@cs.uiuc.edu>
7571         * objects/bondgraph/Makefile.am: 
7572         * objects/bondgraph/bondgraph.c: 
7573         * configure.in: 
7574         * objects/Makefile.am: Added bond graph dir.
7576 2002-11-26  Lars Clausen  <lrclause@cs.uiuc.edu>
7578         * lib/text.c (text_calc_boundingbox, text_draw): Better cursor size.
7580 2002-11-25  Lars Clausen  <lrclause@cs.uiuc.edu>
7582         * lib/text.c (text_calc_boundingbox, text_draw): Better cursor
7583         positioning. 
7585         * app/diapsrenderer.c: Freetype rendering is back in force.
7587         * app/disp_callbacks.c: Added missing updates for pre-text-change.
7589 2002-11-25  David Hoover <jazzdaq@yahoo.com>
7591         * app/render_libart.c: Added missing #include line for libart.
7593         * lib/geometry.h:
7594         * lib/geometry.c: Added point_convex function.  This computes
7595         points inside a line segment (0 <= alpha <= 1) or outside the
7596         line segment (alpha < 0 | alpha > 1).
7598         * objects/standard/line.c: Line now has additional code/attributes
7599         which permit the line to extend past the line anchors (gap < 0) or
7600         leave a gap without reaching the anchor (gap > 0).  If no gap is
7601         specified, the default gap of 0 will result in identical line
7602         behavior as before.  If the 'fractional' attributes are TRUE, the
7603         gap length is not fixed, but a percentage of the line length.  I
7604         did not know how create the GTK widgets so the gap code currently
7605         cannot be used without adding XML attributes by hand.
7607 2002-11-25  Lars Clausen  <lrclause@cs.uiuc.edu>
7609         * lib/diagdkrenderer.c (draw_string): Removed timing bits.
7611         * lib/Makefile.am (libdia_la_SOURCES): Added fontsel files to SOURCES.
7613 2002-11-24  Lars Clausen  <lrclause@cs.uiuc.edu>
7615         * lib/font.c: Debugging functionality in separate functions.
7617         * lib/widgets.c: Using fontsel with context.
7619         * lib/diagtkfontsel.[ch]: Context-aware copy of the GTK fontsel.
7621         * objects/custom/custom_object.c: Orientation handling for shapes,
7622         patch thanks to Martin Hans <opfinder@gmx.net>.
7624         * objects/standard/zigzagline.c (zigzagline_move_handle): Starting
7625         work on even better orientation handling.
7627         * app/menus.c (menus_get_item_from_path): Fixed sily warnings from
7628         casting NULL pointers.  Should be unnecessary in an upcoming GTK
7629         release. 
7631 2002-11-18  Lars Clausen  <lrclause@cs.uiuc.edu>
7633         * lib/font.h:
7634         * lib/font.c:
7635         * lib/widgets.c: Now uses correct context to get font families.
7637         * lib/diagdkrenderer.c (get_text_width, draw_string): 
7638         * lib/dialibartrenderer.c (draw_string): 
7639         * lib/font.h: 
7640         * lib/font.c (dia_font_init): Removed old kludgy font name compare.
7641         (dia_font_build_layout): Unified the twiddle factors into a use of
7642         global_size_one.  But I deeply distrust Pango for seeming to
7643         change size of fonts every time I turn my back.
7645         * app/display.c: 
7646         * app/diagram.c: 
7647         * app/menus.c:
7648         * app/menus.h: Updated some more methods to also be more specific
7649         on the types.
7651         * app/menus.h:
7652         * app/recent_files.c: 
7653         Changed to return most specific type, to avoid run-time type errors.
7655         * app/menus.c (menus_get_item_from_path): Non-gnome version now
7656         gets menu_item rather than widget, which works better.
7658 2002-11-17  Cyrille Chépélov  <cyrille@chepelov.org>
7660         * app/display.c: (new_display):
7661         * app/menus.c: (menus_get_item_from_path):
7662         Relying on the tearoff to locate the input methods menu wasn't a
7663         good idea: tearoffs seem to be an endangered species nowadays.
7664         Anyway, the IM menu seems to be working now.
7666         * app/interface.c: hinted the window manager that the toolbox window
7667         is a toolbox window. Not that my (fairly default configuration)
7668         sawfish cares, but other NETWM compliant WMs may.
7670         * app/commands.c: 
7671         * app/defaults.c: 
7672         * app/dia-props.c:
7673         * app/filedlg.c: 
7674         * app/interface.c: 
7675         * app/layer_dialog.c: 
7676         * app/linewidth_area.c: 
7677         * app/properties.c: 
7678         * app/sheets_dialog.c: 
7679         * app/splash.c: 
7681         The GTK doc says to avoir gtk_window_set_wmclass() and 
7682         gtk_window_set_policy(), and use gtk_window_set_role() and
7683         gtk_window_set_resizable(), respectively.
7684         
7685         * app/preferences.c: (prefs_create_dialog):
7686         * app/preferences.h:
7687         * app/display.c: (display_set_active):
7688         Added a preference to have the toolbox hover over diagram windows.
7689                 
7690 2002-11-12  Lars Clausen  <lrclause@cs.uiuc.edu>
7692         * lib/diagdkrenderer.c (get_text_width, draw_string):
7693         Freetype-based string drawing now works.  Not very fast, though.
7694         I wish I could use the graphics card for this:(  I'm doing three
7695         bitmap loops where I should be doing one.  The size is not correct
7696         either, despite having get_text_width give the right thing.
7698 2002-10-21  Lars Clausen  <lrclause@cs.uiuc.edu>
7700         * app/connectionpoint_ops.c (diagram_update_connections_object):
7701         Allows more than one connectionpoint on an object to be moved at a
7702         time (bug #96306).
7704 2002-10-18  Stanislav Brabec  <sbrabec@suse.cz>
7706         * configure.in: Added cs to ALL_LINGUAS.
7708 2002-10-17  Lars Clausen  <lrclause@cs.uiuc.edu>
7710         * app/paginate_psprint.c: Removed unnecessary decl of autosave
7711         stuff.
7713         * app/display.c (ddisplay_set_renderer): Calls to begin/end render.
7715         * app/export_png.c (export_png_ok): Saving more variables from the
7716         evil setjmp.
7718 2002-10-16  Lars Clausen  <lrclause@cs.uiuc.edu>
7720         * lib/dialibartrenderer.c (begin_render):
7721         (end_render): Correct pushing and popping of font contexts.
7722         (draw_string): Double zooming eliminated, strange twiddle factor
7723         introduced (grumble).  Close to working now, but there are still
7724         strange differences from font to font.  In particular, some fonts
7725         really mess with the cursor and extents.
7727         * app/render_eps.c (export_eps): 
7728         * app/diapsrenderer.c (dia_ps_renderer_finalize): 
7729         Fixed file closing confusion, no longer dependent on PS/EPS.
7731         * app/diagram.c (diagram_place_down_selected) 
7732         (diagram_place_up_selected): Now implemented.
7734         * lib/font.c (dia_font_init): 
7735         * lib/font.h: 
7736         Redesigned the font init/context pushing code.  Start of fix for
7737         font name differences.
7738         
7739 2002-10-15  Kjartan Maraas  <kmaraas@gnome.org>
7741         * app/sheets_dialog_callbacks.c: Fix a typo.
7742         
7743 2002-10-15  Hans Breuer  <hans@breuer.org>
7745         * app/diapsrenderer.[hc] : (new files, old content :-)
7746         simple base class for post script rendering. Does neither 
7747         use Pango/FT2 nor does it handle non latin1 characters. 
7748         The fancy stuff which nowadays appears to be needed should 
7749         probably be done in derived class(es)
7751         * app/makefile.msc app/Makefile.am : added new files
7753         * app/paginate_psrint.c : re-enabled and used as test
7754         for the simple ps renderer above.
7756         * app/render_eps.[hc] : ripped out common ps code and
7757         moved to DiaPsRenderer. The rest of the file is mostly
7758         disabled. And I don't understand enough of it to 
7759         change port it.
7761         * app/diaepsrenderer.h : short lived, removed.
7763 2002-10-15  Lars Clausen  <lrclause@cs.uiuc.edu>
7765         * lib/plug-ins.c (dia_register_plugin): Don't try to load libdia
7766         as a plugin (thanks to Torben Nielsen).
7768 2002-10-14  Lars Clausen  <lrclause@cs.uiuc.edu>
7770         * app/diaepsrenderer.h: 
7771         * app/render_eps.h: 
7772         * app/paginate_psprint.c: 
7773         #ifdef'd out enough ps stuff to allow compile.  Now we just need
7774         to convert it.
7775         
7776 2002-10-12  Hans Breuer  <hans@breuer.org>
7778         [last plug-in ported]
7780         * plug-ins/xfig/xfig-export.c : ported to new renderer api
7782         * plug-ins/xfig/xfig-import.c(fig_create_object) : need to
7783         scale color values to [0..1.0] to properly reconstruct
7784         user colors
7786         * plug-ins/xfig/xfig-common.c : some cleaning
7788 2002-10-12  Hans Breuer  <hans@breuer.org>
7790         [decrease inter-plug-in-dependencies]
7792         * objects/custom/shape_info.[hc] : move parse_style()
7793         to lib/dia_svg.[hc] as dia_svg_parse_style(); Namespace
7794         the related structs and constants.
7795         * objects/custom/custom_object.c : reflect namespace
7796         changes
7798         * lib/dia_svg.[hc] : new files
7799         * lib/makefile.msc lib/Makefile.am : add new files
7800         * lib/libdia.def : updated externals
7802         * plug-ins/svg/svg-import.c : use dia_svg_parse_style()
7804         * plug-ins/svg/svg.c : enable svg import for win32 (and
7805         probably for other non ELF builds)
7807         * plug-ins/makefile.msc : enable svg import
7809 2002-10-11  Hans Breuer  <hans@breuer.org>
7811         * plug-ins/metapost/render_metapost.[hc] : ported
7813         * plug-ins/pstricks/render_pstricks.[hc] : dito
7815 2002-10-11  Hans Breuer  <hans@breuer.org>
7817         * plug-ins/cgm/cgm.c : ported, appears to work as before,
7818         but graphic apps available to me can't import the generated 
7819         files (the could not with Dia-0.90 cgm as well) ...
7821         * plug-ins/dxf/dxf-export.c : Ported to new renderer api.
7822         Removed all those function which did emulate 'complex' 
7823         drawing ops with basic ones (e.g. rect by line) cause this
7824         stuff is already provided by the base class
7825         * plug-ins/dxf/dxf-import.c : removed render.h include
7827         * plug-ins/python/pydia-font.[hc]
7828           plug-ins/python/pydia-text.c : finally ported to new font api
7830         * plug-ins/python/pydia-layer.c : add extra parameter
7831         to layer_find_closest_connectionpoint()
7833         * plug-ins/python/pydia-render.c : ported to DiaRenderer api
7835         * plug-ins/python/python.c : added missing copyright notice
7837         * plug-ins/hpg/hpgl.c plug-ins/wpg/wpg.c plug-ins/wmf/wmf.cpp : 
7838         actually use the renderers set_font implementation
7840         * plug-ins/renderer.inc : unused now, removed
7841         * plug-ins/Makefile.am : reflect it
7843 2002-10-08  Hans Breuer  <hans@breuer.org>
7845         * app/render_gdk.c : don't add the InteractiveRenderer
7846         interface multiple times (it's added to the type, not
7847         the object)
7848         * app/render_libart.c : dito. It's currently added
7849         unconditional cause eport_png uses it, but claims
7850         to be non-interactive. Probably set_size should be moved
7851         to the DiaRenderer interface.
7853         * lib/dialibartrenderer.c : add implementations for
7854         get_<width|height>_pixels. Libart rendering works again.
7855         DiaLibartRenderer::draw_image : use dia_image_rowstride()
7856         instead of width*3
7858         * lib/diatransform.c(dia_transform_coords_double) :
7859         don't ROUND() the returned values
7861         * plug-ins/pixbuf/pixbuf.c : added import function. It
7862         simply creates a wrapping "Standard - Image" object.
7864         * plug-ins/shape/shape-export.c : use the more direct
7865         method to call base class methods
7867 2002-10-07  Lars Clausen  <lrclause@cs.uiuc.edu>
7869         * lib/font.c (dia_font_init): Changed dia_font_init to return old
7870         pango context, to allow stacked contexts (for printing while
7871         antialiased).
7872         
7873         * lib/arrows.h
7874         * lib/bezier_conn.h
7875         * lib/beziershape.h
7876         * lib/boundingbox.h
7877         * lib/color.h
7878         * lib/connection.h
7879         * lib/connectionpoint.h
7880         * lib/create.h
7881         * lib/dia_image.h
7882         * lib/diagdkrenderer.h
7883         * lib/diagramdata.h
7884         * lib/dialibartrenderer.h
7885         * lib/diamenu.h
7886         * lib/diarenderer.h
7887         * lib/diasvgrenderer.h
7888         * lib/diatransform.h
7889         * lib/element.h
7890         * lib/filter.h
7891         * lib/focus.h
7892         * lib/font.h
7893         * lib/geometry.h
7894         * lib/handle.h
7895         * lib/neworth_conn.h
7896         * lib/objchange.h
7897         * lib/object.h
7898         * lib/orth_conn.h
7899         * lib/paper.h
7900         * lib/plug-ins.h
7901         * lib/poly_conn.h
7902         * lib/polyshape.h
7903         * lib/properties.h
7904         * lib/ps-utf8.h
7905         * lib/sheet.h
7906         * lib/text.h
7907         * lib/textattr.h
7908         * lib/widgets.h
7909         * lib/diatypes.h
7910         Moved all externally visible struct typedefs into diatypes.h, as
7911         per Hans' suggestions.
7913 2002-10-07  Steffen Macke <sdteffen@web.de>
7915         * lib/Makefile.am: removed a '\' causing problems
7917 2002-10-07  Hans Breuer  <hans@breuer.org>
7919         [Libart Renderer resurrected; almost it's compiling but
7920          almost instantly crashing :-]
7922         * lib/dialibartrenderer.[hc] : new files, ported to DiaRenderer
7923         * app/render_libart.[hc] : ported to DiaInteractiveRenderer
7924         * lib/diatransform.[hc] : added dia_transform_coords_double()
7926         * app/display.c : the right parameters for new_renderer_libart()
7927         * app/export_png.c : ported, removed the blind Display hack
7929         * app/makefile.msc lib/makefile.msc 
7930           lib/Makefile.am : updated
7932         * lib/dia<|gdk|interactive>renderer.c : properly copyrighted
7934 2002-10-06  Hans Breuer  <hans@breuer.org>
7936         * plug-ins/pixbuf/pixbuf.c : (new file)
7937         there is a new export plug-in called 'Pixbuf' which uses 
7938         DiaGdkRenderer to export to gdk-pixbuf supported bitmap
7939         formats (currently only PNG and JPEG).
7941 2002-10-06  Hans Breuer  <hans@breuer.org>
7943         See also: 
7944         http://mail.gnome.org/archives/dia-list/2002-October/msg00027.html
7946         * lib/dia-enums.h lib/diatransform.[hc]
7947           lib/diarenderer.[hc] lib/diainteractiverenderer.c
7948           lib/diagdkrenderer.[hc] lib/diasvgrenderer.[hc]
7949         : new files 
7951         * lib/makefile.msc lib/makefile.am : added new files
7953         * lib/plug-ins.c : g_module_error() returns a locale
7954         string, convert to utf8 before further usage 
7956         * lib/render.h : #error out. Everything including this
7957         needs porting
7958         * lib/*.[hc] : ported to new renderer api
7960         * app/diaepsrenderer.h : unfinished DiaEpsRenderer interface
7961         just to make the rest compile
7962         * app/render_eps.c : temporary disabled all of this
7963         * app/render_eps.h : removed RendererEPS
7965         * app/render_gdk.[hc] : a small wrapper around the new
7966         DiaGdkRenderer form lib/*
7968         * app/render_libart.h : removed RenderLibart definition
7969         * app/render_libart.c : not yet ported to new DiaRenderer
7970         but having an implementation to untie form FT2 dependency
7971         at least on win32. It is using new Pango api form bug #94791
7973         * app/render_pixmap.[hc] : a small wrapper around the new
7974         DiaGdkRenderer form lib/*
7976         * app/display.h : removed render_*.h includes
7977         * app/display.c : the only place where specific 
7978         renderers need to be known
7980         * app/connectionpoint_ops.c app/grid.c app/handle_ops.c
7981         use new DiaInteractiveRenderer interface
7983         * app/*.c : ported to new renderer api
7984         * object/*/*.c : ported to new renderer api
7985         s/render.h/diarenderer.h/
7986         s/Renderer/DiaRenderer/
7987         s/renderer->ops/renderer_ops/
7988         add in every draw method:
7989         DiaRendererClass *renderer_ops = DIA_RENDERER_GET_CLASS (renderer);
7991         * plug-ins/hpgl/hpgl.c : 
7992           plug-ins/wmf/wmf.cpp 
7993           plug-ins/wpg/wpg.c : ported to be DiaRenderer based
7994         * plug-ins/shape/shape-export.c
7995           plug-ins/svg/render_svg.c : ported to be DiaSvgRenderer based
7996           (nice how small these files became :-)
7998 2002-09-28  Hans Breuer  <hans@breuer.org>
8000         * */makefile.msc : updated
8002         * app/defaults.c : don't gdk_invalidate_rect(NULL)
8003         * app/disp_callbacks.c : 
8004         can't cast GtkWindow to GdkWindow, use shell->window
8005         (ddisplay_unrealize) don't use already unrefed im_context
8006         * app/display.c :
8007         can't cast from GtkMenu to GtkMenuItem
8008         (ddisp_destroy) : mark im_context as unrefed
8010         * lib/dia_xml (data_font) : prefer new font format over old one
8011         (data_add_font) : write the legacy name to allow file exchange
8012         with pre Pango versions of Dia, which would otherwise crash 
8013         on missing font 'name' attribute.
8014         * lib/font.c (dia_font_get_legacy_name) : improved implementation
8015         to get a better match.
8017         * lib/libdia.def : updated
8019         * lib/messages.c : don't gdk_widget_show(NULL)
8021         * lib/prop_text.c : don't gtk_entry_set_text() with NULL string 
8023         [make Dia compile, link _and_ work with mingw/gcc3.2]
8025         * config.h.win32 : #define LIBXML, this gets defined from libxml
8026         header but only for _MSC_VER. The mingw build did access an 
8027         unitialized function pointer for xmlFree.
8029         * */makefile.mingw : updated (some plug-ins have build issues)
8030         
8031         * lib/handle.h lib/object.h :   there appears to be no 
8032         forward declaration of the form 
8033                 typedef enum _HandleId HandleId 
8034         (at least not with GCC 3.2 for C++) ../lib/handle.h:22: 
8035         use of enum `_HandleId' without previous declaration
8037         * app/paginate_gdiprint.cpp : added a hack to avoid g++
8038         naming conflict on 'export'
8040         * app/paginate_gdiprint.h : forward declare Diagram
8042         * objects/SADT/annotaion.c : use g_random_double()
8044 2002-09-26  Lars Clausen  <lrclause@cs.uiuc.edu>
8046         * app/modify_tool.c: Made motion not happen until sufficiently
8047         large or past double-click interval, to avoid accidental moving
8048         when doubleclicking.  Got the double-click time right, and fixed
8049         some issues with release.  There are some corner cases that may
8050         exhibit strange behaviour, will look at those later.  Nah, let's
8051         not care about those, they are rare and not dangerous.
8053 2002-09-26  Cyrille Chépélov  <cyrille@chepelov.org>
8055         * app/layer_dialog.c: 
8056         * app/load_save.c: 
8057         * plug-ins/dxf/dxf-import.c: 
8058         * plug-ins/python/pydia-diagram.c: 
8059         * lib/diagramdata.c:
8060         * lib/diagramdata.h:
8061         Improved the consistency of the obj->parent_layer backlinks (esp.
8062         during reloads)
8064         * lib/Makefile.am:
8065         * lib/dummy_dep.h:
8066         * lib/dynamic_obj.[ch] (NEW):
8067         * app/Makefile.am:
8068         * app/app_procs.c: 
8069         * app/dynamic_refresh.[ch] (NEW):
8070         * objects/Misc/analog_clock.c: 
8071         Added support for dynamic refresh (animated objects).
8072                 
8073 2002-09-25  Cyrille Chépélov  <cyrille@chepelov.org>
8075         Patch from Owen Taylor <otaylor@redhat.com>:    
8076         * doc/en/Makefile.am:
8077         * doc/en/dia-manual.sgml:
8078         * doc/en/usage-objects.sgml:
8079         * doc/en/usage-quickstart.sgml:
8080         * doc/pl/Makefile.am:
8081         * doc/pl/dia-manual.sgml:
8082         * doc/pl/usage-objects.sgml:
8083         * doc/pl/usage-quickstart.sgml:
8085         - Change the DTD declration from an outdated GNOME one to a
8086         standard DTD.
8087         
8088         - Remove close tags for <graphics> which aren't allowed for
8089         docbook SGML
8090         
8091         - A hacky fix for a problem where some versions of db2html don't
8092         create *.css files. (If *.css doesn't match anything, then you get
8093         the global explicitely.)
8095         (Closes: #92061)
8096         
8097 2002-09-24  Cyrille Chépélov  <cyrille@chepelov.org>
8099         * objects/custom/custom_object.c: 
8100         * objects/custom/shape_info.[ch]: GE_TEXT display lists elements 
8101         were never properly prepared for use when reloading a shape with
8102         <svg:text> elements. Thanks to Scott Frazer <frazer@nc.rr.com> for
8103         reporting the problem and coming up with a fix! (Closes: #93974)
8105         * app/menus.c: patch from Alan Horkan <horkana@tcd.ie>: review
8106         the menu shortcuts towards better GNOME HIG compliance (Closes: #87157)
8108         * app/menus.c:
8109         * app/display.c: updated menu item paths Alan's patch had moved.
8110         
8111         * app/interface.c: Fixed a crash when gdk-pixbuf doesn't want to
8112         load the sheet-provided icon (libpng versions mismatch, grrr.).
8113         
8114         * configure.in:
8115         * objects/Makefile.am:
8116         * objects/Misc/Makefile.am (NEW):
8117         * objects/Misc/libmisc.c (NEW):
8118         * objects/Misc/analog_clock.c (NEW):
8119         * objects/Misc/pixmaps/analog_clock.xpm (NEW):
8120         * sheets/Misc.sheet.in: just a little experiment...
8122 2002-09-23  Cyrille Chepelov  <cyrille@chepelov.org>
8124         * plug-ins/xlst/Makefile.am: found a way to silence automake while
8125         not forcing everyone to build using libxslt.
8127         * lib/font.c: 
8128         * lib/message.c:
8129         * lib/object_defaults.c:
8130         * lib/intl.[ch]:
8131         * lib/render.c:
8132         * lib/properties.[ch]:
8133         * lib/propobject.c:
8134         * objects/standard/box.c: 
8135         * objects/UML/state_term.c:
8136         * objects/FS/box.c:
8137         * objects/FS/flow-ortho.c:
8138         * app/app_procs.c:
8139         * app/autosave.c:       
8140         * app/commands.c:
8141         * app/diagram_tree.c:
8142         * app/display.c:
8143         * app/disp_callbacks.c:
8144         * app/export_png.c:
8145         * app/filedlg.c:
8146         * app/lineprops_area.c:
8147         * app/menus.c:  
8148         * app/preferences.c:
8149         * app/render_eps.c:     
8150         * app/sheets.c:
8151         * app/sheets_dialog_callbacks.c:
8152         * plug-ins/xslt/xslt.c:
8153         * plug-ins/metapost/render_metapost.c:
8154         * plug-ins/xfig/xfig-export.c:
8155         * plug-ins/shape/shape-export.c:
8156         
8157         Killed most gcc-3.2 warnings (const-correctness and derived warnings, 
8158         unused variables, mostly)
8160         * app/display.c:
8161         * app/menus.c: enabled GTK Input Methods (thanks Lars!)
8163         * app/Makefile.am: modified run_dia.sh so that we recover the
8164         ability to run a debugger despite libtool's hacks.
8166         * plug-ins/dxf/Makefile.am: 
8167         * app/Makefile.am
8168         "make distcheck" fixes.
8169         
8170 2002-09-19  Lars Clausen  <lrclause@cs.uiuc.edu>
8172         * objects/UML/uml.c (uml_get_operation_string): Patch from Mauf
8173         <mfranzoni@madd.it>:  Check for the type being NULL.
8175 2002-09-16  Lars Clausen  <lrclause@cs.uiuc.edu>
8177         * app/render_eps.c (set_font): Re-tweaked font size for printing.
8179 2002-09-12  Cyrille Chepelov  <cyrille@chepelov.org>
8181         Patch from Angus Ainslie <angusa@deltatee.com>:
8182         * plug-ins/dxf/dxf-import.c:
8183         * plug-ins/dxf/autocad_pal.h: Import from visio 2002 improvements.
8185         (plus a couple extra fixes by me, such as the removal of printf's,
8186         adapting for recent changes, and killed a couple warnings) 
8188         * app/authors.h: a 60K patch isn't insignificant, is it?
8189         
8190 2002-09-09  Tor Lillqvist  <tml@iki.fi>
8192         * configure.in: Check for both pangoft2 (using PKG_CHECK_MODULES,
8193         as before) and -lfreetype (using AC_CHECK_LIB). At least on
8194         Solaris with Sun's compiler (Forte C), you need to link also the
8195         dia application with -lfreetype, even if it is implicitly linked
8196         to by -lpangoft2. Rename FREETYPE_CFLAGS and _LIBS to PANGOFT2_*,
8197         which is what they actually mean. Use FREETYPE_LIBS for
8198         -lfreetype.
8200         Don't look for libsunmath if isinf() is not found in math.h (as on
8201         Solaris). The sunmath library is part of Forte C and not present
8202         on all machines. Besides, even if isinf was found in libsunmath,
8203         we didn't use it in the Makefile.am.
8204         
8205         Fix a couple of bashisms.
8207         AC_SUBST also Z_LIBS, need to link the dia application to -lz,
8208         too, on Solaris with Forte C.
8210         Don't try to use the gcc flags with other compilers.
8211         DIA_CHECK_CFLAG gives a false indication that Forte C understands
8212         the gcc -f switches, but in fact they get interpreted meaning
8213         something completely different.
8215         Define the automake conditional HAVE_CGC.
8216         
8217         * app/Makefile.am (dia_LDADD): Add Z_LIBS and FREETYPE_LIBS.
8219         Use -export-dynamic only with gcc.
8221         * */Makefile.am
8222         * */*/Makefile.am: Modify according to the FREETYPE_CFLAGS -> 
8223         PANGOFT2_CFLAGS rename.
8225         * lib/geometry.h: Drop HAVE_SUNMATH_H and <sunmath.h> per above.
8226         
8227         * lib/dia_xml.c: Include geometry.h for the isinf() stuff on
8228         Solaris.
8230         * lib/paper.c: Workaround for gccism: Can't use inline this way with
8231         Forte C, either.
8233 2002-09-08  Cyrille Chepelov  <cyrille@chepelov.org>
8235         * lib/text.c(set_string): fixed a memory leak (char* ain't no
8236         std::auto_ptr<char> !).
8238         * app/display.[ch]:
8239         * app/interface.[ch]:
8240         * app/ddisp_callbacks.[ch]: Added some basic support for input 
8241         methods (GtkIMContext-based)
8243         * lib/Makefile.am:
8244         * app/Makefile.am: made libdia a shared object (per Tor
8245         Lillqvist's suggestion/request), to cope for platforms with a less
8246         than par dynamic library loader.
8248         * app/display.c: disabled the input method menu (I really don't
8249         see where and how to put them. Blame Frozen Bubble )
8250         
8251 2002-09-06  Lars Clausen  <lrclause@cs.uiuc.edu>
8253         * objects/flowchart/box.c (box_update_data): Made resizing
8254         possible again (only set width & height when resized too small).
8256         Patch from Soeren Sandmann <sandmann@daimi.au.dk>:
8258         * app/disp_callbacks.c (ddisplay_canvas_events): Handle
8259         GdkScrollEvents.
8260         
8261 2002-09-05  Cyrille Chepelov  <cyrille@chepelov.org>
8263         * app/authors.h: now showing Akira TAGOH's name in the native script.
8265 2002-09-01  Lars Clausen  <lrclause@cs.uiuc.edu>
8267         * plug-ins/xslt/xslt.c: Removed glib warning for unset
8268         DIA_PLUGIN_PATH.
8270 2002-09-01  Cyrille Chepelov  <cyrille@chepelov.org>
8272         * plug-ins/svg/render_svg.c: Applied (reversed...) patch from
8273         Mike Sowka <msowka@rogers.com>. This fixes a problem with the
8274         sweep flag in arcs.
8276 2002-08-31  Lars Clausen  <lrclause@cs.uiuc.edu>
8278         * objects/UML/class.c: Fixed showing of empty stereotypes and got
8279         the string placed correctly.
8281 2002-08-30  Hans Breuer  <hans@breuer.org>
8283         * lib/font.c (dia_font_get_style) : don't shift already
8284         shifted DIA_FONT values.
8286         * lib/libdia.def : updated externals
8288         * app/disp_callbacks.c : on win32 GdkEventKey::string already
8289         is in UTF-8. (Longterm this probably should be handled on the
8290         gtk api level)
8292         * app/command.[hc] app/display.[hc] app/menus.c : add code to 
8293         switch display renderers again. The libart renderer is very 
8294         useful for win9x with it's limited GDI.
8296         * app/render_gdk.c : use g_warning instead of printf which gets
8297         nowhere on win32 (non console apps)
8299         * app/render_libart.c : make it compile without FREETYPE
8301         * objects/makefile.msc plug-ins/makefile.msc : added clean target
8303 2002-08-29  Lars Clausen  <lrclause@cs.uiuc.edu>
8305         * app/render_eps.c (postscript_draw_contour): Debugging statement
8306         that allowed me to figure out font problems.
8308         * lib/widgets.c (dia_font_selector_set_styles): Use radio menu
8309         items for font styles.
8311         * objects/FS/flow-poly.c: 
8312         * objects/FS/flow-ortho.c: 
8313         * objects/FS/flow.c: Further conversion away from GTK dialogs.
8314         Can't set a default label right now:(
8316         * app/interface.c (fill_sheet_wbox): Added initialization for mask.
8318 2002-08-27  Cyrille Chepelov  <cyrille@chepelov.org>
8319         Patch from Andrew Ferrier  <andrew@new-destiny.co.uk>:
8321         * Makefile.am: rules relating to AUTHORS and THANKS
8322         altered.
8323         * AUTHORS: file content changed to more accurately
8324         reflect guideline requirements.
8325         * TODO: warning added about Gnome BTS.
8326         * KNOWN_BUGS: warning added about Gnome BTS.
8328         ---
8330         * AUTHORS: added full copyright info.
8331         * mkauthors-placeholder: (removed) 
8332         
8333 2002-08-27  Lars Clausen  <lrclause@cs.uiuc.edu>
8335         * app/paginate_psprint.c (print_page): Fixed text printing after
8336         tip from Dov Grobgeld.
8338 2002-08-26  Lars Clausen  <lrclause@cs.uiuc.edu>
8340         * app/paginate_psprint.c (print_page): Fixed color of clip
8341         region.
8343 2002-08-26  Cyrille Chepelov  <cyrille@chepelov.org>
8345         * sheets/Makefile.am: enabled intltool-merge translation cache for
8346         sheets.
8348         * Makefile.am:
8349         * mkauthors-placeholder:
8350         * AUTHORS: revived that file (in a placeholder form) so that
8351         automake stops yelling.
8352         (derived from a patch by Andrew Ferrier <andrew@new-destiny.co.uk>) 
8353         (Closes: #91144)
8355         Heh, by the way, thanks Christophe. I feel better now.
8356         
8357 2002-08-25  Christophe Merlet  <christophe@merlet.net>
8359         * app/command.c: Removed invalid multibyte sequence in Chepelov.
8361 2002-08-24  Lars Clausen  <lrclause@cs.uiuc.edu>
8363         * lib/dia_image.c (dia_image_rgb_data): 
8364         Bugfixes in image data retrieval.
8365         
8366         * app/render_eps.c: Refactoring of new_*_renderer.
8368 2002-08-23  Lars Clausen  <lrclause@cs.uiuc.edu>
8370         * app/render_eps.c: 
8371         * lib/dia_image.h: 
8372         * lib/dia_image.c: Support for rowstride != width (odd width images)
8374 2002-08-20  Lars Clausen  <lrclause@cs.uiuc.edu>
8376         * lib/paper.c (get_paper_info): Fixed NULL prefs problem.
8377         * plug-ins/xfig/xfig-import.c: Removed assertion.
8379 2002-08-18  Lars Clausen  <lrclause@cs.uiuc.edu>
8381         * lib/paper.c: Removed app/preferences.h reference.
8383 2002-08-14  Lars Clausen  <lrclause@cs.uiuc.edu>
8385         * plug-ins/svg/svg-import.c: 
8386         * plug-ins/xfig/xfig-import.c: 
8387         * lib/Makefile.am (libdia_a_SOURCES): 
8388         * objects/standard/Makefile.am (libstandard_objects_la_SOURCES): 
8389         * lib/create.h:
8390         * objects/standard/create.h:
8391         * objects/standard/polygon.c (polygon_create): 
8392         * objects/standard/polyline.c (polyline_create): 
8393         * objects/standard/beziergon.c (beziergon_create): 
8394         * objects/standard/bezier.c (bezierline_create): 
8395         Moving create.h into lib.
8397 2002-08-13  Lars Clausen  <lrclause@cs.uiuc.edu>
8399         * app/render_libart.[ch]: Work on PNG font export.  Something's
8400         still fishy with the scaling, I don't get it.
8402         * app/display.c: 
8403         * app/interface.c: Replaced broken zoom combo with entry+menu.
8404         Now works beautifully.  Removed WITHOUT_ZOOM_COMBO stuff.
8406         * app/render_gdk.c (get_text_width): Checks for validity of text.
8407         Temporary help while debugging input -- should only activate on
8408         invalid input.
8410         * objects/SADT/annotation.c: 
8411         * objects/GRAFCET/transition.c: 
8412         * objects/FS/function.c: Removal of gtk.h include.
8414         * objects/UML/state.c (state_load): Warnings about using State
8415         object for initial/final states.
8417         * plug-ins/cgm/cgm.c (init_fonts): Proper Pango interfacing.
8419 2002-08-12  Lars Clausen  <lrclause@cs.uiuc.edu>
8421         * app/render_eps.c: Text rendering that scales correctly.  Too bad
8422         the standard fonts don't get selected right.
8424 2002-08-09  Lars Clausen  <lrclause@cs.uiuc.edu>
8426         * lib/diagramdata.h: 
8427         * lib/paper.c (get_paper_info): 
8428         * lib/paper.h: 
8429         * plug-ins/xfig/xfig-import.c: 
8430         Committed before testing.  I am so embarrased.  This compiles, now
8431         that the includes are in the right order.
8432         
8433         * app/diagram.c (diagram_init): 
8434         * app/app_procs.c (do_convert): 
8435         * app/preferences.h: 
8436         * lib/diagramdata.h: 
8437         * lib/diagramdata.c (new_diagram_data): 
8438         * lib/paper.h: 
8439         * lib/paper.c (get_paper_info): 
8440         Moved new_diagram part of prefs into lib/diagramdata.h.  More
8441         could be done in new_diagram_data() now.
8443 2002-08-08  Lars Clausen  <lrclause@cs.uiuc.edu>
8445         * app/render_eps.c: Better scaling of fonts at non-normal zoom.
8447 2002-08-07  Cyrille Chepelov <cyrille@chepelov.org>
8449         * configure.in: removed silly user-visible comment
8451         (actually, this is a dummy entry before I manually run nemo; for
8452         some dist-upgrade related reason, this morning's run aborted before
8453         the snapshots were created)
8454         
8455 2002-08-06  Lars Clausen  <lrclause@cs.uiuc.edu>
8457         * objects/network/wanlink.c: 
8458         * objects/network/bus.c: 
8459         stdprop compliance!
8461         * objects/custom/custom_object.c: 
8462         * objects/network/wanlink.c: 
8463         * objects/flowchart/parallelogram.c: 
8464         * objects/flowchart/ellipse.c: 
8465         * objects/flowchart/diamond.c: 
8466         * objects/flowchart/box.c: 
8467         Removed GTK defaults stuff.
8468         
8469         * objects/UML/fork.c: 
8470         * objects/UML/object.c: 
8471         * objects/UML/lifeline.c: 
8472         * objects/UML/branch.c: 
8473         * objects/GRAFCET/transition.c: 
8474         * objects/FS/function.c: Removed GTK include.
8476         * objects/FS/flow-ortho.c: 
8477         * objects/FS/flow.c: Made the label behave again.
8478         Also removed GTK defaults stuff.
8480 2002-08-06  Hans Breuer  <hans@breuer.org>
8482         * app/autosave.c : ported to GDir which is the improved
8483         cross platform replacement for <dirent.h>
8485         * app/makefile.msc : build autosave.obj
8487         * app/font.c : some (bad?) code calls 
8488         dia_font_scaled_decent() not only with empty string but 
8489         with NULL. Handle it gracefully.
8491         * lib/paper.c : don't depend on ../app. Although IMO
8492         this shouldn't be allowed on any platform it is only
8493         disabled for win32, where it simply doesn't work
8494         this way
8496         * lib/widget.c (strcase_equal) : pass char* to g_strcasecmp()
8498         * objects/fs/flow.c : conditionalize debug spew, disabled
8499         and 'ported' to use g_print. Simple printf won't work with
8500         standard win32 gui apps, may even crash them.
8502         * plug-ins/makefile.msc : DISABLED svg-import cause it
8503         depends on ../objects/custom. This not only break the
8504         build for all non ELF systems but IMO also isn't acceptable
8505         from a design point of view. See dia-list mail on subject.
8507         * plug-ins/python/makefile.msc :
8508           plug-ins/python/python.c : remove all references to dirent    
8510 2002-08-05  Cyrille Chepelov  <cyrille@chepelov.org>
8512         * configure.in: added ro to ALL_LINGUAS
8514         * po-checktrans:
8515         * po-checktrans.py:
8516         * ../translation-graphs/transgraph.py: added support for fuzzy
8517         translations. Enlarged the graphs.
8519 2002-08-05  Lars Clausen  <lrclause@cs.uiuc.edu>
8521         * app/disp_callbacks.c (ddisplay_canvas_events): Now translates
8522         key events according to locale.  No clue if this works for
8523         advanced stuff.
8525 2002-08-04  Lars Clausen  <lrclause@cs.uiuc.edu>
8527         * lib/text.c: Various UTF8 related fixes, in particular in
8528         deleting.  Text_insert_char is fine, far as I can tell.
8530         * app/interface.c (create_display_shell): 
8531         * app/commands.c: Now uses gtk_clipboard functions, for they are
8532         much simpler.  Also handles Win32 clipboard.  Non-ascii chars
8533         don't seem to get handled correctly by text_insert_char in
8534         lib/text.c.
8535         
8536         * app/commands.c (received_selection_handler): Got utf8 handling
8537         on paste, and individual char handling out of commands.c.  Pasting
8538         non-ASCII is still broken, somehow.  It's all lib/text.c's fault.
8540         * lib/message.c (gtk_message_internal): Message dialog re-shown
8541         when new message appears.  Maybe it should even move to top?
8543         * lib/font.c: 
8544         * lib/widgets.c: 
8545         * app/render_eps.c (create_eps_renderer): Fonts now lowercase
8546         (again) and case-insensitive.
8548         * objects/GRAFCET/condition.c (CONDITION_FONT): Changed to
8549         BASIC_SANS_FONT. 
8551 2002-08-02  Lars Clausen  <lrclause@cs.uiuc.edu>
8553         * app/commands.c (edit_cut_text_callback): 
8554         * lib/text.c (text_delete_all): Now functioning undo for text cut.
8555         
8556         * app/commands.c (edit_cut_text_callback): Now removes text.
8557         Undo is broken, though.
8559 2002-08-01  Lars Clausen  <lrclause@cs.uiuc.edu>
8561         * app/diagram.c (diagram_update_menu_sensitivity): 
8562         Making cut_text active.
8563         
8564         * app/commands.h: 
8565         * app/commands.c: Using PROP_TYPE_TEXT to find text to copy to
8566         clipboard.  Also removed AA callback.   
8568 2002-08-01  Lars Clausen  <lrclause@cs.uiuc.edu>
8570         * objects/chronogram/chronoref.c: 
8571         * objects/chronogram/chronoline.c: 
8572         * objects/SADT/annotation.c: 
8573         * objects/SADT/arrow.c: 
8574         * objects/SADT/box.c: 
8575         * objects/GRAFCET/vergent.c: 
8576         * objects/GRAFCET/vector.c: 
8577         * objects/GRAFCET/step.c: 
8578         * objects/GRAFCET/condition.c: 
8579         * objects/GRAFCET/action.c: 
8580         * objects/ER/participation.c: 
8581         * objects/ER/relationship.c: 
8582         * objects/ER/entity.c: 
8583         * objects/ER/attribute.c: 
8584         Removing unnecessary GTK references.
8586 2002-07-31  Lars Clausen  <lrclause@cs.uiuc.edu>
8588         * objects/standard/image.c: 
8589         * objects/standard/textobj.c: 
8590         * objects/standard/ellipse.c: 
8591         * objects/standard/polygon.c: 
8592         * objects/standard/beziergon.c:
8593         * objects/standard/box.c: 
8594         Making default default properties.
8595         
8596         * objects/standard/image.c: 
8597         * objects/standard/arc.c: 
8598         * objects/standard/box.c: 
8599         * objects/standard/zigzagline.c: 
8600         * objects/standard/polyline.c: 
8601         * objects/standard/line.c: 
8602         * objects/standard/ellipse.c: 
8603         * objects/standard/polygon.c: 
8604         * objects/standard/beziergon.c: Removing vestigal GTK stuff.
8606         * lib/object_defaults.c (dia_object_default_create): 
8607         * lib/proplist.c: 
8608         * lib/properties.h: 
8609         * lib/object.c (object_copy_using_properties): 
8610         * lib/propdialogs.c: 
8611         * lib/propinternals.h: 
8612         * lib/propobject.c (object_create_props_dialog)
8613         (object_copy_props): 
8614         Removing the standard (toolbox) properties from defaults dialogs.
8616 2002-07-30  Lars Clausen  <lrclause@cs.uiuc.edu>
8618         * lib/font.c (dia_font_scaled_string_width) 
8619         (dia_font_scaled_ascent, dia_font_scaled_descent): Account for
8620         zoom factor.
8621         * lib/text.c (text_calc_boundingbox): Take descent into account.
8623         * objects/standard/bezier.c (bezierline_draw): 
8624         * lib/render.c (draw_bezier_with_arrows): 
8625         Better arrow drawing for beziers.  Doesn't change the mouse-click
8626         area either.
8628         * lib/arrows.h: Some const-ness.
8630         * lib/arrows.c (calculate_arrow_point): Initialize zero-length moves.
8632         * lib/render.c (draw_arc_with_arrows): 
8633         * objects/standard/arc.c (arc_draw): Better arrow drawing for
8634         arcs.  Doesn't change the mouse-click area yet.
8636         * app/menus.c: Forgotten fix:  Redraw menu item for non-Gnome.
8638         * lib/render.h: 
8639         * lib/render.c: 
8640         Arc arrow prework.
8642 2002-07-29  Lars Clausen  <lrclause@cs.uiuc.edu>
8644         * app/group.c (group_draw): Forgotten commit: Groups to draw as
8645         objects (using default routines).
8647         * app/object_ops.h: 
8648         * app/diagram.h: 
8649         * lib/diagramdata.h: 
8650         * lib/diagramdata.c (layer_find_closest_connectionpoint): 
8651         * objects/standard/zigzagline.c (zigzagline_move_handle): 
8652         * app/diagram.c (diagram_find_closest_connectionpoint): 
8653         * plug-ins/python/pydia-diagram.c
8654         (PyDiaDiagram_FindClosestConnectionPoint):
8655         * app/object_ops.c (object_connect_display) 
8656         (object_find_connectpoint_display) 
8657         * app/create_object.c (create_object_button_press) 
8658         (create_object_motion): 
8659         * app/modify_tool.c (modify_motion): 
8660         Adding object param to allow connectionpoint and handle coinciding.
8662         * objects/standard/zigzagline.c (zigzagline_check_orientation): 
8663         Fixing minor problems.
8665         * objects/standard/ellipse.c (ellipse_update_data): 
8666         Added direction hints.
8668         * lib/diagramdata.c: 
8669         * lib/object.c: 
8670         * lib/object.h: 
8671         * lib/diagramdata.h: 
8672         * objects/standard/zigzagline.c: 
8673         First working example of zigzagline hints, currently only between
8674         Box and Zigzagline.
8676 2002-07-27  Steffen Macke <sdteffen@web.de>
8678         * plug-ins/svg/render_svg.c: added support for rounded
8679         rectangles (fixes #69053 if compile with
8680         -DNEW_RENDER_OPS)
8681         * object/custom/shape_info.[c|h]: made parse_style and
8682         parse_path accessible for svg plug-in
8683         * plug-ins/svg/Makefile.am:
8684         * plug-ins/svg/svg.c:
8685         * plug-ins/svg/svg-import.c(new): added SVG import filter
8687 2002-07-27  Lars Clausen  <lrclause@cs.uiuc.edu>
8689         * objects/standard/box.c: 
8690         * objects/standard/zigzagline.c (zigzagline_move): 
8691         More work on zigzagline hints.
8693 2002-07-26  Lars Clausen  <lrclause@cs.uiuc.edu>
8694         * lib/connectionpoint.h: 
8695         Hints for zigzaglines.
8697         * app/properties.c (properties_show): 
8698         * app/defaults.c (defaults_show): 
8699         * lib/properties.h: 
8700         * lib/propobject.c (object_create_props_dialog): 
8701         * lib/object.h: 
8702         * objects/FS/flow-poly.c: 
8703         * objects/network/wanlink.c: 
8704         * objects/network/bus.c: 
8705         * objects/UML/class.h: 
8706         * objects/UML/class_dialog.c: 
8707         * objects/UML/association.c: 
8708         Start of removing toolbox props from props dialogs.
8709         
8710         * lib/widgets.c: 
8711         * lib/arrows.h: 
8712         * app/lineprops_area.c (dia_arrow_chooser_new): 
8713         * lib/arrows.c: Two new arrows: Concave, filled and blanked.
8715         * app/create_object.c: 
8716         * app/modify_tool.c: 
8717         * app/cursor.h: 
8718         * app/cursor.c: 
8719         More cursor change.
8721 2002-07-25  Lars Clausen  <lrclause@cs.uiuc.edu>
8723         * app/preferences.c: 
8724         * lib/paper.c: 
8725         * app/diapagelayout.c: 
8726         New prefs selector kind PREF_CHOICE chooses between a list of
8727         strings.  Used for picking default paper.
8728         
8729         * app/preferences.c (prefs_data): 
8730         * lib/paper.c (get_paper_info): Added prefs setting for
8731         is_portrait.
8733         * lib/render.c (draw_polyline_with_arrows): Handles degenerate
8734         line segments at the ends (bug #86603).
8736 2002-07-25  Lars Clausen  <lrclause@cs.uiuc.edu>
8738         * objects/standard/zigzagline.c (zigzagline_copy): Fix for bug
8739         #60324: Now calls update_data after copy.
8741         * app/interface.c (fill_sheet_wbox): Better fix for bug #88601:
8742         Now doesn't steal selection from non-object tools.
8744 2002-07-24  Lars Clausen  <lrclause@cs.uiuc.edu>
8746         * app/commands.c (help_manual_callback): Uses BROWSER environment
8747         variable when available.
8749 2002-07-23  Lars Clausen  <lrclause@cs.uiuc.edu>
8751         * app/interface.c (fill_sheet_wbox): Fix for bug #88601: Select an
8752         object from the new sheet when changing.
8754         * app/app_procs.c (app_init): Uses more standard size icon, from
8755         patch #56433.  Keeping old icon as dia_gnome_icon_large.png.
8757 2002-07-22  Lars Clausen  <lrclause@cs.uiuc.edu>
8759         * objects/UML/implements.c (implements_update_data): 
8760         * objects/UML/realizes.c (realizes_update_data): 
8761         * objects/UML/dependency.c (dependency_update_data): 
8762         Test for null strings before calling on ascent.
8764         * objects/UML/realizes.c (realizes_draw): 
8765         * objects/UML/message.c (message_draw): 
8766         * objects/UML/generalization.c (generalization_draw): 
8767         * objects/UML/dependency.c (dependency_draw) 
8768         * objects/UML/constraint.c (constraint_draw): 
8769         * objects/GRAFCET/condition.c (condition_draw): 
8770         * objects/UML/association.c (association_draw): 
8771         * objects/FS/flow-ortho.c (orthflow_draw): 
8772         * objects/FS/flow.c (flow_draw): Change to use
8773         draw_foo_with_arrows.  Pretty pretty arrows.  Yay me!
8775         * lib/render.h: 
8776         * lib/arrows.c (calculate_arrow_point): 
8777         * lib/arrows.h: 
8778         * lib/render.c: 
8779         * objects/standard/zigzagline.c:
8780         * objects/standard/polyline.c:
8781         * objects/standard/line.c: Work towards better arrow drawing.
8783 2002-07-21  Lars Clausen  <lrclause@cs.uiuc.edu>
8785         * objects/UML/state.c: Starting phase-out of State object as
8786         initial/final state (which never worked right).
8788         * app/app_procs.c (app_init): --version command line option for
8789         non-Gnome.
8791         * configure.in: Slight improvement in GETTEXT_PACKAGE handling.
8793 2002-07-19  Lars Clausen  <lrclause@cs.uiuc.edu>
8795         * app/render_eps.c: Removed debugging info.
8797         * lib/font.c (dia_font_scaled_ascent, dia_font_scaled_descent):
8798         Kludge to make ascent and descent work for empty strings.  Won't
8799         work when using non-ASCII fonts.  Better would be to get a
8800         PangoFont and ask directly.
8802         * configure.in: Simple define of GETTEXT_PACKAGE, and some updates
8803         of the init stuff.
8805         * app/render_gdk.c (get_text_width): Fixed use of wrong string.
8806         Cursor now better.
8808 2002-07-18  Lars Clausen  <lrclause@cs.uiuc.edu>
8810         * plug-ins/xfig/xfig-export.c: First use of draw_object render
8811         function: All shapes are now groups in XFig export.
8813         * lib/diagramdata.c (normal_render): 
8814         * lib/render.c: 
8815         * lib/render.h: 
8816         * app/display.c (ddisplay_obj_render): 
8817         New render function for drawing objects, allows renderers to group
8818         or otherwise specially handle objects.  We may want to reconsider
8819         calling it in app/display.c, as we 'know' the object draw function
8820         is the default one there.
8822         * lib/Makefile.am: Removed extra \ that broke stuff.
8824         * plug-ins/xfig/xfig-import.c: 
8825         Spline import for xfig.  Not perfect.
8827         * objects/standard/create.h: 
8828         * objects/standard/bezier.c (bezierline_create): 
8829         * lib/bezier_conn.c: 
8830         * lib/beziershape.c (beziershape_set_points): 
8831         * lib/bezier_conn.h: 
8832         * lib/beziershape.h: 
8833         Support for creating beziers non-interactively.
8835 2002-07-17  Lars Clausen  <lrclause@cs.uiuc.edu>
8837         * plug-ins/xfig/xfig-import.c: Support for polygons and
8838         polylines.  Special warning handling system removed.
8840         * lib/message.c (gtk_message_internal): Fixed bug involving
8841         closing message window and then getting repeated message.
8843         * Makefile.am: 
8844         * autogen.sh: 
8845         * configure.in (GETTEXT_PACKAGE): 
8846         Update based on bug #88199.  Hopefully this doesn't break too much
8847         intl stuff.
8849         * dia.desktop.in (_Comment): Changed after suggestion from
8850         calum.benson@ireland.sun.com (bug 88345)
8852         * app/sheets_dialog_callbacks.c: Fix from Dolores Alia de Saravia
8853         <loli@unsa.edu.ar> that makes user/system distinction better.
8855 2002-07-16  Lars Clausen  <lrclause@cs.uiuc.edu>
8857         * app/render_libart.c: Got the context right, removed crashes.
8859         * app/commands.c: 
8860         * app/commands.h: 
8861         Redraw menu item.
8863         * app/display.c: 
8864         * app/display.h: 
8865         * app/interface.c: 
8866         * app/menus.c: 
8867         Remove libart #defines from most places (still around for png export).
8869         * app/render_libart.h: 
8870         * app/render_libart.c: 
8871         * configure.in (HAVE_LIBART): 
8872         Starting on update of libart stuff for png export (without X).
8874         * app/autosave.h (autosave_check_autosave): 
8875         * app/load_save.h: 
8876         * app/diagram.h: 
8877         * app/Makefile.am (dia_core_files): 
8878         * app/load_save.c: 
8879         * app/diagram.c (diagram_set_modified): 
8880         * app/autosave.c: 
8881         * app/app_procs.c (app_init): 
8882         Autosave support.  No automatic restore yet.
8884 2002-07-16  Lars Clausen  <lrclause@cs.uiuc.edu>
8886         * app/render_eps.c (create_eps_renderer): #ifdef'd a scale
8887         assignment. 
8888         
8889 2002-07-15  Lars Clausen  <lrclause@cs.uiuc.edu>
8891         * app/interface.c (fill_sheet_menu): Tear-off for sheets menu.
8893 2002-07-15  Andrew Ferrier  <andrew@new-destiny.co.uk>
8895         * Fix for 'make dist' etc. --- problem caused by
8896         previous AUTHORS patch.
8898 2002-07-14  Lars Clausen  <lrclause@cs.uiuc.edu>
8900         * plug-ins/cgm/cgm.c (init_fonts): Changed pango_font_map to
8901         pango_context. 
8902         (set_font): NULL check.
8903         
8904 2002-07-12  Lars Clausen  <lrclause@cs.uiuc.edu>
8906         * app/disp_callbacks.c: 
8907         * lib/diamenu.h: 
8908         Addition to the object menus allows check menu items.
8910 2002-07-11  Andrew Ferrier  <andrew@new-destiny.co.uk>
8912         * HACKING: completely changed to bring up-to-date.
8913         * AUTHORS: file needs REMOVING from CVS as now
8914           dynamically generated.
8915         * app/authors.h: split into subcategories for original
8916           authors, maintainers, etc.
8917         * app/app_procs.c: --credits rewritten to support new
8918           app/authors.h
8919         * app/commands.c: no changes to about box code, comment
8920           added though.
8921         * Makefile.am: added rule for AUTHORS. I'm still
8922           inexperienced with automake, it seems to work, but
8923           for AUTHORS-related bugs, look at this change first.
8925 2002-07-10  Lars Clausen  <lrclause@cs.uiuc.edu>
8927         * plug-ins/Makefile.am (SUBDIRS): Just realized why my hack didn't
8928         work.  Back to including xslt dir always.
8930         * objects/UML/uml.c: 
8931         * objects/UML/class.h: 
8932         * objects/UML/class_dialog.c: 
8933         * objects/UML/class.c: Patch from
8934         <mattam@netcourrier.com>:  Adds comment visibility switch, also
8935         fixes various bugs.
8937         Big patch from Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
8938         for state/fork/activity stuff.
8939         * objects/UML/state.c: Removed old draw_rounded_rectangle code.
8940         * objects/UML/Makefile.am:
8941         * objects/UML/uml.c:
8942         * sheets/UML.sheet.in: Added new objects activity, fork,
8943           state_term.
8944         * objects/UML/pixmaps/state_term.xpm:
8945         * objects/UML/state_term.c: New, only initial/final states.
8946         * objects/UML/pixmaps/activity.xpm:
8947         * objects/UML/activity.c: New, activity state.
8948         * objects/UML/pixmaps/fork.xpm:
8949         * objects/UML/fork.c: New, fork/join bar.
8950         * objects/UML/pixmaps/state.xpm: state icon.
8952         
8953         * doc/diagram.dtd: 
8954         * doc/shape.dtd: Patch from "Dolores Alia de Saravia"
8955         <loli@unsa.edu.ar> to add dia: to diagram.dtd elements and add
8956         svg:text to shape.
8958 2002-07-07  Lars Clausen  <lrclause@cs.uiuc.edu>
8960         * plug-ins/Makefile.am (SUBDIRS): Made the XSLT dir depend on
8961         detecting XSLT
8963         * app/Makefile.am: Commented out the diaconv parts while it's not
8964         used anyway.  To come back later.
8966         * configure.in (HAVE_FREETYPE): 
8967         * app/app_procs.c: 
8968         * app/render_eps.h: 
8969         * app/render_eps.c: Support for printing with freetype, better
8970         encapsulated now.  Renders the text nicely, but ignores font
8971         setting.  Requires pangoft2 to get the font outline, but non-text
8972         objects can still be rendered without it.
8974         * app/commands.h: 
8975         * app/commands.c (objects_place_up_callback) 
8976         (objects_place_down_callback): 
8977         * app/diagram.h: 
8978         * app/diagram.c (diagram_place_down_selected) 
8979         (diagram_place_up_selected): Starting support for moving objects
8980         one level up/down.
8982         * app/menus.c: Removed character/numeral shortcuts.
8984 2002-07-06  Hans Breuer  <hans@breuer.org>
8986         * makefile.am app/makefile.am lib/makefile.am
8987           objects/makefile.am plug-ins/makefile.am 
8988           plug-ins/python/makefile.am :
8989         added required files for win32 build to EXTRA_DIST
8991         * app/paginate_psprint.c app/render_eps.c 
8992           app/app_procs.c :
8993         wrap (E)PS Renderer into HAVE_FREETYPE, no FreeType
8994         on Pango as currently is on win32 => no PostScript 
8995         anymore.
8997         * lib/widgets.c : undef GTK_DISABLE_DEPRECATED;
8998         use '/* noop */;' for empty case labels; replace
8999         debug spew printf with g_print which is guaranteed 
9000         to work on win32, too.
9002         * lib/font.c (dia_pfd_set_weight) : set 'intermediate' values 
9003         for DIA_FONT_MEDIUM and DIA_FONT_DEMIBOLD as explicit allowed 
9004         in the pango_font_description_set_weight() api documentation
9005         Take care for them in dia_font_get_style() too.
9007         * lib/font.[hc] lib/widget.c objects/custom/shape_info.c
9008           plug-ins/shape/shape-export.c plug-ins/svg/render_svg.c :
9009         rename Obliquity to Slant which appears to be the usual name,
9010         also rename dia_font_get_style_string -> dia_font_get_slant_string
9012         * plug-ins/wmf/wmf.cpp : finally ported to new font api
9014         * lib/prop_attr.c app/render_gdk.c : dont *_unref if NULL
9016         * objects/uml/association.c class.c large_package.c message.c
9017         if g_free() is used g_strdup needs to be used.
9018         * objects/custom/shape_info.c
9019           objects/ER/attribute.c entity.c
9020           objects/standard/image.c 
9021           app/sheets_dialog_callbacks.c : more strdup cleaning
9023 2002-07-05  Lars Clausen  <lrclause@cs.uiuc.edu>
9025         * app/render_eps.c: Non-crashing printing (made the right
9026         context).  Font output still fscked up.
9028 2002-07-05  Andrew Ferrier  <andrew@new-destiny.co.uk>
9030         * app/authors.h: Added file --- now master
9031         location for contributors data.
9032         * app/app_procs.c: Added --credits option.
9033         * app/commands.c: Modified about box to use
9034         app/authors.h.
9036 2002-07-05  Lars Clausen  <lrclause@cs.uiuc.edu>
9038         * app/render_eps.c: First stab at EPS rendering using the contour
9039         code from PAPS.  Crashes.
9041 2002-06-30  Lars Clausen  <lrclause@cs.uiuc.edu>
9043         * app/recent_files.c (recent_file_history_remove): 
9044         Fixed call to g_list_delete_link discarding return value.
9045         
9046         * lib/widgets.c (dia_font_selector_set_styles): 
9047         * lib/font.h (DiaFontWeight): 
9048         * lib/font.c (dia_font_get_style): Revert to DIA_FONT_NORMAL==0
9050 2002-06-30  Cyrille Chepelov  <cyrille@chepelov.org>
9052         Contribution from Alan Horkan <horkana@tcd.ie>: 
9053         
9054         * shapes/Assorted/*
9055         * sheets/Assorted.sheet:
9056         A set of 40 assorted geometric shapes.
9058         * sheets/Assorted.sheet.in:
9059         * sheets/Makefile.am
9060         * shapes/Assorted/Makefile.am:
9061         * shapes/Makefile.am:
9062         * po/POTFILES.in:
9063         * configure.in:
9064         Done the integration job of Alan's shapes. (Translators: have fun!)
9066         * po/dia.pot: refreshed the main potfile.
9067         
9068 2002-06-28  Cyrille Chepelov  <cyrille@chepelov.org>
9070         Patch from Tim Ellis <Tim.Ellis@gamet.com>:
9071         
9072         * objects/UML/class.[ch]:
9073         * objects/UML/class_dialog.c:
9074         changed the number of connection points from a hardcoded value of
9075         8 to a #defined constant
9077         (I changed the constant back from 20 to 8, until we better know
9078         how we'll handle more connection points on the UML class in the
9079         future -- but Tim's patch is a welcome clean-up).
9081 2002-06-26  Cyrille Chepelov  <cyrille@chepelov.org>
9083         * shapes/MSE/demultiplexer.xpm:
9084         * shapes/MSE/node_center.xpm:
9085         * shapes/MSE/multiplexer.xpm:
9086         * shapes/MSE/tacsat.xpm: updated MSE icons (transparency) by Alan
9087         Horkan <horkana@tcd.ie>
9089 2002-06-25  Lars Clausen  <lrclause@cs.uiuc.edu>
9091         * lib/widgets.c: Total rehash of font selector, with font dialog
9092         option, expanding list (not LRU yet), and stuff.
9094 2002-06-25  Cyrille Chépélov  <cyrille@chepelov.org>
9096         * lib/font.h:
9097         * lib/font.c: 
9098         Added a set of new setter/getters, some of them more specially for
9099         the SVG-ish I/O.
9100         
9101         * plug-ins/shape/shape-export.c: (new_shape_renderer),
9102         (destroy_shape_renderer), (set_font), (draw_string):
9103         * plug-ins/svg/render_svg.c: (new_svg_renderer),
9104         (destroy_svg_renderer), (set_font), (draw_string):
9106         Actually exported the font face, style, weight and size (sodipodi
9107         agrees with dia on how a small sample should look like (a sample
9108         0.90 would not even display anyways). Yay !)
9110         Patch from Matthieu Sozeau <mattam@netcourrier.com>:
9112         * plug-ins/xslt/Makefile.am: repaired the mess Cyrille put there.
9114         (end of ChangeLog-less patch)
9116         * objects/custom/shape_info.c (parse_style): now understands the
9117         font-style and font-weight attributes as well. Does not use
9118         anymore dia_font_new_from_legacy_name().
9119         
9120 2002-06-24  Lars Clausen  <lrclause@cs.uiuc.edu>
9122         * objects/standard/textobj.c: Now uses stdprops for defaults.
9124         * lib/font.h: Changed order of DiaFontWeight entries.  Sorry.
9125         * lib/font.c (dia_font_get_style): Style now linear and conversion
9126         simple. 
9128         * lib/widgets.c (dia_font_selector_set_styles): Fixed the style
9129         selector. 
9131 2002-06-24  Cyrille Chepelov  <cyrille@chepelov.org>
9133         * plug-ins/dxf/dxf-import.c:
9134         using dia_font_new_from_style()
9136         Patch from Matthieu Sozeau  <mattam@netcourrier.com>:
9138         * objects/UML/class.[ch]: Added a comment field to class
9139         * objects/UML/uml.[ch]: Added a comment field to attributes,
9140         operations and parameters.
9141         * objects/UML/class_dialog.c: Added code for the new comment
9142         fields.
9143         * plug-ins/xslt/*.xsl: Added some code to handle comments.
9144         * plug-ins/xslt/xslt*.c: Clean up based on Cyrille comments.
9145         Added a $directory parameter for stylesheets so the output is 
9146         in the good place (not in the $PWD).
9148         (end of Patch)
9150         * AUTHORS: added contributors, updated maintainers. Removed the
9151         specific areas of action.
9153         * Patch from Andrew Ferrier <andrew@new-destiny.co.uk>, derived
9154         from a patch by Xing Wang <quixon@gnuchina.org>:
9156         * app/commands.c: help_about_callback now supports
9157         new-style GNOME about box as well as old GTK style. 
9158         code also tidied (Closes: #85726)
9160         (end of Patch)
9162         * app/commands.c: fixed the copyright (it's not all FSF), and
9163         maintainers. Synced contributors list with AUTHORS.
9164                 
9165 2002-06-24  Lars Clausen  <lrclause@cs.uiuc.edu>
9167         * lib/message.c: More work on repeating messages, now with
9168         togglable view.
9170 2002-06-24  Hans Breuer  <hans@breuer.org>
9172         * lib/widget.c : some more bits in place, at least
9173         it does something useful instead of crashing. Much
9174         better - but not all ok :-)
9176 2002-06-23  Lars Clausen  <lrclause@cs.uiuc.edu>
9178         * lib/message.c (gtk_message_internal): First stab at repeating
9179         message dialog.
9181 2002-06-23  Cyrille Chepelov  <cyrille@chepelov.org>
9183         * objects/FS/*.c:
9184         * objects/GRAFCET/*.c:
9185         * objects/SADT/*.c:
9186         * objects/UML/association.c: (one instance forgotten)
9187         * objects/UML/large_package.c: 
9188         * objects/standard/textobj.c:
9189         * lib/attributes.c:
9190         * lib/text.c:
9191         using dia_font_new_from_style()
9193 2002-06-23  Hans Breuer  <hans@breuer.org>
9195         * lib/font.c : giving some love to
9196         dia_font_new_from_legacy_name() that is making
9197         import of old files as painless as possible and
9198         provide an almost exact match where possible.
9199         It does not yet fully work because it interfers
9200         with the Style to DiaStyle conversion which comes
9201         next ...
9203         [Changing these files is only allowed with Dia-0.90]
9204         * broken-files/fonts-0.90.dia : including the
9205         common hard-coded fonts from Dia-0.90. It also
9206         has drawn bounding-boxes for win32 as they were calculated
9207         from the former version (they were all too big).
9208         * broken-files/fonts-0.90-full.dia : all hardcoded
9209         fonts including the asian versions. On my machine
9210         this gives _a lot_ complaining about missing fonts
9211         and a finally a broken file display. Anyone having
9212         all these fonts ?
9213         
9214 2002-06-23  Cyrille Chepelov  <cyrille@chepelov.org>
9216         * objects/chronogram/*.c: 
9217         * objects/custom/custom_object.c:
9218         * objects/ER/*.c:
9219         using dia_font_new_from_style()
9221 2002-06-23  Lars Clausen  <lrclause@cs.uiuc.edu>
9223         * lib/widgets.c (dia_font_selector_set_styles): Improvements to
9224         font selector (stability, insensitivity).
9226         * lib/font.c (dia_font_scaled_build_layout): Removed unworkable
9227         stretching scheme for tweaking, and made scaling scheme faster
9228         (but less precise).
9229         (dia_font_dia_style_to_pango): Oops, % != /.
9231 2002-06-23  Cyrille Chepelov  <cyrille@chepelov.org>
9233         
9234         * patch from Matthieu Sozeau  <mattam@netcourrier.com>:
9236         * plug-ins/xslt : Added an XSLT plugin to export dia files using
9237         XML Stylesheets. The plug-in requires DIA_PLUGIN_PATH to be set.
9238         It includes a small config file to tell it what stylesheets to use.
9240         (end of patch)
9241         
9242         * plug-ins/xslt/xsltdialog.c: modified the dialog to be more 
9243         GTK2.0/HIG compliant (the labels could be slightly more verbose,
9244         perhaps). Added back a couple forgotten _(). Removed //-style
9245         comments.
9246         
9247 2002-06-23  Hans Breuer  <hans@breuer.org>
9249         * lib/plug-ins.c
9250         (dia_plugin_get_name) : don't crash plugin_manager
9251         on name being NULL 
9252         (dia_plugin_load) : reuse the description field to
9253         store the error string if loading fails.
9255         * lib/font.[hc] : starting to beautify the new
9256         font api: proper namespacing, adding convenience
9257         functions like dia_font_new_from_style(), ...
9259         * objects/uml/*.c : use the new convenience functions.
9261         [Next thing I plan to do is changing the other font
9262          functions to take DiaStyle and make Style and 
9263          BASIC_*_FONT vanish. As well as giving some love to
9264          dia_font_new_from_legacy_name().
9265          If anyone want's to help on converting the other
9266          objects to the new api during that, I would highly 
9267          appreciate it.]
9269 2002-06-23  Hans Breuer  <hans@breuer.org>
9271         * lib/font.c : made it compile and small indent fixes.
9272         Is there a code-has-no-effect-so-needs-not-be-valid
9273         with GCC?       
9275         * lib/widgets.c : use g_strcasecmp
9277 2002-06-22  Lars Clausen  <lrclause@cs.uiuc.edu>
9279         * lib/font.c: 
9280         * lib/font.h: 
9281         * lib/widgets.c: Font names sorted, style selector widget
9282         reappeared.  Doesn't select the old style yet.
9284 2002-06-22  Cyrille Chepelov  <cyrille@chepelov.org>
9286         * lib/font.c: one who expects a text's font to be changed shall 
9287         actually request the attributes to apply to the whole range of the
9288         said text... D'oh! 
9290         * lib/font.c: extents computation was wrong.
9292         * lib/font.c: dia_font_get_legacy_name(); g_strconcat works better
9293         if a last NULL parameter is added...
9295         * lib/font.c: extents computation was completely wrong. This looks
9296         much better this time.
9298         * objects/UML/class.c: fixed the various strings positions.
9300         * lib/font.h, and **/*.[ch] (all callers of dia_font_new): used
9301         macros to get the hardcoded base fonts.
9303         * objects/ER/relationship.c: wasn't converted to DiaFont*
9304         
9305 2002-06-22  Hans Breuer  <hans@breuer.org>
9307         * lib/widget.c : dont use backend specific functions
9308         to get on the font_families. Including it would mean
9309         including <windows.h> which breaks due to namespace
9310         pollutions ...
9312         * lib/libdia.def : updated externals
9314         * app/makefile.msc : temporary disabled: -DHAVE_LIBART
9316         * lib/font.c : added empty dia_font_init_instance function,
9317         reformatting of dia_fon_unref to allow to set breakpoint,
9318         dia_fon_build_layout() : dont crash on string==NULL
9320         * lib/text.c (text_set_attributes) : don't unref the wrong font
9322         * lib/widgets.c (dia_fon_selector_set_font) : our hashtable
9323         stores lowercased font names, but dia_font_get_family()
9324         returns mixed case      
9326 2002-06-22  Lars Clausen  <lrclause@cs.uiuc.edu>
9328         * lib/widgets.c: 
9329         * app/render_gdk.c: Patch from Hans Breuer.
9331         * app/Makefile.am (dia_core_files): diaconv commented out for now.
9332         
9333 2002-06-22  Cyrille Chepelov  <cyrille@chepelov.org>
9335         * lib/all files touched yesterday: took into account some of Hans
9336         Breuer's remarks in
9337         http://mail.gnome.org/archives/dia-list/2002-June/msg00257.html
9339         * objects/chronogram/*: 
9340         * objects/custom/*:
9341         * objects/ER/*:
9342         * objects/flowchart/*:
9343         * objects/FS/*:
9344         * objects/GRAFCET/*:
9345         * objects/SADT/*:
9346         * objects/standard/textobj.?:
9347         * objects/UML/*:
9348         converted to the new DiaFonts.
9350         * plug-ins/cgm/*:
9351         * plug-ins/pstricks/*:
9352         * plug-ins/wpg/*:
9353         * plug-ins/dxf/*:
9354         * plug-ins/xfig/*:
9355         Made minimalistic conversions so that they'd at least compile.
9357         * app/render_gdk.c:
9358         * app/render_pixmap.c:
9359         Converted to the new DiaFonts.
9361         * app/app_procs.c
9362         * app/diaconv.c:
9363         * app/render_eps.c:
9364         made the minimal changes so that it would at least build.       
9366         *** At this point, the thing builds on my machine, but segfaults
9367         right away. ***
9368         
9369 2002-06-21  Cyrille Chepelov  <cyrille@chepelov.org>
9371         * configure.in: removed the backend-specific pango pkg_modules
9372         (trivial to add back if needed, when actually needed)
9374         * app/Makefile.am:
9375         * app/*gnomeprint.[ch]: (removed): removed the GNOME-print
9376         renderer. The APIs will have completely changed when we get around
9377         to redo a renderer for it, anyways.
9379         * font.[ch]: rewrote everything from scratch, with a Pango
9380         implementation. Normally, only backend-neutral things should go in
9381         there.
9383         **WARNING**: new rules for managing DiaFont* pointers: these are
9384         reference-counted GObjects. One >must< diafont_ref() and
9385         diafont_unref() as appropriate. I wish I could overload operator=()...
9387         lib/plug-ins.h: bumped up the plug-in API.
9388         
9389         lib/attributes.c: 
9390         lib/dia_xml.c: 
9391         lib/dummy_dep.h
9392         lib/object_defaults:
9393         lib/prop_attr.c: Adapted to the new DiaFont API. This'll change
9394         again tomorrow with GObject.
9395         
9396         lib/widgets.c: Adapted to the new DiaFont API and to Pango.
9398         **** The rest of the tree should be updated as well ****
9399         
9400 2002-06-21  Lars Clausen  <lrclause@cs.uiuc.edu>
9402         * app/render_gdk.h: 
9403         * app/render_gdk.c: 
9404         * app/render_pixmap.c: 
9405         * app/render_pixmap.h: 
9406         * app/render_libart.h: 
9407         * app/render_libart.c: 
9408         * lib/font.h: 
9409         * lib/font.c: Removed freetype stuff (still around in
9410         lib/widgets.c 'cause we might want the font selector widget).
9412 2002-06-20  Cyrille Chepelov  <cyrille@chepelov.org>
9414         * shapes/network/laptop.(xml|shape):
9415         * sheets/network.sheet.in: added Laptop (notebook) PC shape,
9416         contributed by Alan Horkan <horkana@tcd.ie>. (Closes: #82643)
9418 2002-06-17  Hans Breuer  <hans@breuer.org>
9420         * lib/object_defaults.c : #include <libxml/tree.h> not
9421         <tree.h> pointed out by Xing Wang
9423 2002-06-17  Lars Clausen  <lrclause@cs.uiuc.edu>
9425         * lib/color.h (GDK_COLOR_TO_DIA, DIA_COLOR_TO_GDK): 
9426         * lib/widgets.c: 
9427         * app/color_area.c: Update to
9428         gtk_color_selection_*_current_color() fixed bad crash issues, plus
9429         updated color conversions.
9431         * sheets/ER/weakentity.xpm: Accepted patch from
9432         quixon@gnuchina.org to make icon match actual appearance.
9434         * app/recent_files.c: Fixed GNOME recent file problem, thanks to
9435         quixon@gnuchina.org.
9437 2002-06-16  Hans Breuer  <hans@breuer.org>
9439         * lib/plug-in.[hc] : make PlugInInfo opaque again in the 
9440         good tradition of information hiding. Add new function
9441         dia_plugin_get_symbol()
9442         * app/sheets.c app/sheets_dialog_callbacks.c : use it
9444         * app/sheets.c : stop complaining about object_get_type() 
9445         returning NULL. This is a consequence of e.g. disabling 
9446         plug-ins at runtime _and_ it was and is gracefully handled. 
9447         Spitting out g_warning for it isn't appropriate. 
9449         * lib/object.[ch] : removed dead code
9451         * app/plugin-mangager.c : almost complete rewrite for gtk2
9452         using GtkListStore/GtkTreeView
9454         * lib/libdia.def : updated externals
9456         * todo.gtk2 : updated, that is removed already done steps
9458 2002-06-15  Hans Breuer  <hans@breuer.org>
9460         * objects/uml/class_dialog.c : clean some left-over
9461         utf8-mess, return 0 from "focus_out_event" handlers
9462         to avoid asserting in gtk (#78305). Reconstruct 
9463         stereotype/NULL behaviour to avoid rendering empty
9464         stereotypes on classes and member functions
9466         [#56109 - Provide object defaults for StdProp objects,
9467          some remaining issues are discussed in bugzilla]
9469         * lib/object_defaults.c : (new file) manage default properties 
9470         of dia objects. The serialization is done with standard
9471         object methods in a diagram compatible format.
9473         * lib/object.c : add object_registry_foreach() which allows
9474         to iterate over all registered object types
9476         * lib/object.h : added prototypes object_default*() and
9477         object_registry_foreach()
9479         * lib/makefile.am lib/makefile.msc : add new file to build
9481         * lib/libdia.def : export new functions
9483         * app/defaults.c : provide StdProp based defaults if the
9484         ObjectType doesn't implement it's own default functions
9486         * app/create_object.c : through dia_object_default_create()
9487         * app/disp_callbacks.c : same here
9489 2002-06-12  Lars Clausen  <lrclause@cs.uiuc.edu>
9491         * objects/FS/flow-ortho.c (orthflow_get_object_menu): Menu
9492         sensitivity for deleting segments.
9494 2002-06-12  Cyrille Chépélov  <cyrille@chepelov.org>
9496         * app/color_area.c: (color_area_events):
9497         * app/diagram.c: (diagram_destroy):
9498         * app/interface.c: (zoom_activate_callback), (fill_sheet_wbox),
9499         (fill_sheet_menu):
9500         * app/load_save.c: (diagram_data_load):
9501         * app/menus.c: (menus_get_item_from_path):
9502         * app/preferences.c: (prefs_load):
9503         * app/render_gdk.c: (get_text_width):
9504         * lib/arrows.h:
9505         * lib/color.c: (color_convert):
9506         * lib/dia_dirs.c: (dia_config_filename):
9507         * lib/dia_xml.c: (xmlDiaParseFile), (data_type):
9508         * lib/intl.c: (intl_get_language_list):
9509         * lib/message.c: (message):
9510         * lib/message.h:
9511         * lib/paper.c: (get_default_paper):
9512         * lib/plug-ins.c: (this_is_a_plugin), (dia_register_plugins):
9513         * lib/widgets.c: (dia_file_selector_get_file):
9514         * lib/widgets.h:
9515         * objects/standard/image.c: (get_directory):
9517         warningectomy.
9518         
9519 2002-06-12  Lars Clausen  <lrclause@cs.uiuc.edu>
9521         * ChangeLog: Fixed bad UTF-8 mess.  Apologies.
9523 2002-06-11  Lars Clausen  <lrclause@cs.uiuc.edu>
9525         * app/interface.c: sscanf now returns EOF on empty string, so
9526         handle no match for zoom factor better => correct zoom at start.
9528         * app/sheets.c (create_object_pixmap): Tried to display empty error.
9529         (sheets_optionmenu_create): Died when not finding specified
9530         sheet.  Don't think it should.
9532         * objects/UML/association.c: Added patch from osamyn@ulb.ac.be
9533         (bug #84367) to place the text better.
9535 2002-06-11  Cyrille Chepelov  <cyrille@chepelov.org>
9537         * configure.in: Added forgotten libgnomeui-2.0 when --enable-gnome
9538                         
9539         * app/commands.c: Removed unnecessary gnome include. Removed
9540         GNOME-Print support.
9542         * app/menus.h: Removed now unnecessary gnome include.
9543         
9544         * app/sheets_dialog.c: Used Gtk 2.0 stock buttons instead of
9545         GNOME-specific stock buttons
9546         
9547 2002-06-09  Hans Breuer  <hans@breuer.org>
9549         * app/app_procs.c : convert 'Modified diagrams exits'
9550         dialog to use GtkMessageDialog. That gives us:
9551         - icons without Gnome dependency
9552         - much less code, also cross platform
9553         - improved useability ?
9555         * app/color_area.c : the Color Selection Widget looked
9556         quite wrong (alpha problems). Fix it by merging in required
9557         changes stolen from The Gimp cvs
9558         * app/color_area.h : to get the right appearance the maskes
9559         needed to be taken into account
9560         * app/interface.c : adapt to color_area_create changes.
9561         Also remove some dead code and finally remove cvs autexpansion, 
9562         I was bothered enough by irrelevant differences :-)
9564         * app/defaults.c app/properties.c app/dia-props.c : use improved GtkDialog
9565         api, i.e stocks and response to make the GnomeDialog usage
9566         obsolete. Also fixed the issue with closing the 'parent'
9567         before closing the dialog
9569         * app/display.[ch] : removed some dead code and conversion
9570         to new GtkDialog api. Also trying to conform to new HIG
9571         standard http://developer.gnome.org/projects/gup/hig/
9573 2002-06-09  Hans Breuer  <hans@breuer.org>
9575         * lib/makefile.msc : define GTK_DISABLE_DEPRECATED,
9576         build ps-utf8.c
9578         * lib/dia_image.c : gtk_widget_set_default_visual()
9579         remove. It does nothing with Gtk2.
9581         * lib/libdia.def : added ps_unicoder exports
9583         * lib/message.c : remove #GNOME use GtkMessageDialog.
9584         Yeah, Dia gets dialogs wit icons cross-platform.
9586         * lib/prop_geomtypes.c : gtk_spin_button_get_value_as_float()
9587         to gtk_spin_button_get_value()
9589         * lib/prop_inttypes.c : gtk_label_set() -> gtk_label_set_text()
9591         add #undef GTK_DISABLE_DEPRECATED to still use ...
9592         * lib/prop_text.c :  ... GtkText
9593         * lib/prop_widgets.c : ... GtkList
9594         * lib/prop_dialogs.c : ... gtk_signal_connect and more
9595         * lib/widgets.c : ... (too much to list here)
9597         * lib/ps-utf8.c : #include <string.h>
9599 2002-06-08  Cyrille Chepelov  <cyrille@chepelov.org>
9601         * configure.in:
9602         * Makefile.am:  Adapted for gtk2.
9603         Removed dependencies on libunicode, on iconv(), on langinfo().
9605         * acconfig.h: removed (now obsolete)
9607         * lib/charconv.[ch]: removed (superceded by glib)
9608         * lib/ps-utf8.[ch]: removed dependency on charconv.[ch]
9610         * **/*.[ch]: removed (utfchar *), (unichar) and other charconv or
9611         libunicode types for their glib counterparts. Fixed the include
9612         paths for libxml2. Removed all traces of libxml1 or non-UTF8
9613         support (there were remains in objects/uml).
9615         
9616 2002-06-08  Hans Breuer  <hans@breuer.org>
9618         */*.c */*/*.c : remove all the #ifdef *_UTF8_* hell,
9619         only keep the utf-8 clean code cause Dia+Gtk2 now talk it.
9620         Also use g_strdup()'s handling of NULL by returning NULL
9621         again at all places I found (remove unnecessary if's)
9623         * todo.gtk2 : new file to keep notes about gtk2 porting,
9624         further issues and thoughts and some status information.
9625         Also sent to dia-list ('Dia goes Gtk2 ...').
9626         
9627         [make it compile with GTK+ 2.0]
9629         * config.h.win32 : #undef GTK_TALKS_UTF8_WE_DONT,
9630         removed definition of S_ISDIR, S_ISREG and getlogin
9632         * */makefile.msc : Use GTK2 and libxml2
9633         BEWARE: makefile.am, configure.in not yet ported !
9635         * app/app_procs.c app/diagram.c : remove 
9636         gtk_item_factory_dump_rc code, (it wasn't read in again anyway) 
9637         but set use gtk_menu_set_accel_path() on menu creation
9639         * app/color_area.c lib/widgets.c : 
9640         make use of gtk_color_selection_set_has_palette ()
9642         * app/commands.c : gdk_pixbuf_new_from_file wants an 
9643         extra argument. Convert from DIR to GDir usage.
9645         * app/diagram_tree.c(button_press_callback) : need to return 
9646         FALSE in the signal handler to let gtk process it further.
9647         (get_object_name) : don't leak 'prop'
9648         
9649         * app/diapagelayout.c : adapt to GtkTypeInfo changes and handle 
9650         dia_page_layout_destroy() getting called more than once
9652         * app/diaunitspinner.c : GtkEditable -> GtkEntry, 
9653         GtkTypeInfo changes
9655         * app/disp_callbacks.c : gtk_menu_append() -> gtk_menu_shell_append()
9657         * app/display.h : wrap input contexts declarations into #ifdef USE_XIM.
9658         IIRC this code will not compile unchanged when USE_XIM is defined ...
9660         * app/gtk[hv]wrapbox.[hc] : use already ported version from The GIMP 1.3.x
9662         * app/interface.c : there is no widget->klass anymore in Gtk, 
9663         use GTK_WIDGET_GET_CLASS instead. gdk_pixbuf_new_from_file() extra
9664         parameter. Some tweaking of GtkWrapBox usage to get four tools in
9665         a row again.
9666         switch off GTK's double buffering on Dia's canvas. Otherwise we would 
9667         get triple buffering and flicker.
9668         Replace call to GTK private function _gtk_accel_group_attach()
9669         with public gtk_window_add_accel_group()
9671         * app/layer_dialog.c : adapt to GtkTypeInfo changes
9673         * app/load_save.c lib/plug-ins.c lib/sheet.c 
9674           objects/custom/custom.c : 
9675         simplified by using g_file_test()
9677         * app/menus.c : convert from gtk_item_factory_<dump|parse>_rc 
9678         to gtk_accel_map_<save|load>. Also added common stock-icons
9679         to the menu.
9680         
9681         * app/preferences.c : use gtk_button_set_label() instead
9682         of button->child which is gone. Also removed GLIB_CHECK_VERSION.
9684         * app/preferences.c lib/dia_xml.c lib/plug-ins.c :
9685         #ifdef G_OS_WIN32 #include <io.h>, this was formerly done
9686         in config.h.win32
9688         * app/recent_files.c : removed GLIB_CHECK_VERSION
9690         * app/render_eps.c 
9691           plug-ins/metapost/render_metapost.c
9692           plug-ins/pstricks/render_pstricks.c
9693           plug-ins/svg/render_svg.c :
9694         replace getlogin() with g_get_user_name() which always
9695         returns non NULL
9697         * app/render_gdk.c : gdk_region_union_with_rect() modifies
9698         inplace now and returns nothing, also less #hell
9700         * app/render_libart.c : some initial #hell cleaning, SuckFont
9701         still needs to vanish
9703         * app/splash.c : gdk_pixbuf_new_from_file() second arg and
9704         GTK_WINDOW_DIALOG -> GTK_WINDOW_TOPLEVEL
9706         * app/render_pixbuf.c app/sheets.c : plain #hell cleaning
9707         * app/sheets_dialog_callbacks.c : some #hell and adaptions
9708         needed to GtkWrapBox api changes
9711         * lib/charconv.[hc] : removed from build
9712         [changed appropriate]
9713         * lib/prop_inttypes.c lib/prop_text.c : 
9714         all utf-8 cleaning 
9715         * lib/text.c : ported from HEAD but keep original indent
9716         intact. Original was done by Akira TAGOH.
9718         * lib/color.c : GdkColorContext is gone, use GdkColormap instead.
9720         * lib/dia_image.c : gdk_pixbuf_new_from_file() second arg
9722         * lib/dia_xml.c : remove #ifdef GLIB_CHECK_VERSION, it's the
9723         same on all platforms now!
9725         * lib/font.c : still using SuckFont which was an IMPERATIVE FIXME!
9727         * lib/message.c : remove "charconv.h"
9729         * lib/prop_text.c : #define GTK_ENABLE_BROKEN to use GtkText
9731         * lib/plug-in.c :
9732         * lib/sheet.c : convert from DIR to GDir usage
9734         * lib/widgets.c : gtk_menu_(shell_)append and GtkTypeInfo
9736         * lib/widgets.h : include gtk<label|colorseldialog>.h
9739         * objects/fs/flow.c :
9740         * objects/fs/flow-ortho.c : GTK_ENABLE_BROKEN to use GtkText
9742         * objects/custom/custom.c : convert from DIR to GDir usage
9745         * plug-ins/python/makefile.msc : updated for GTK2/Python2.2
9748 2002-05-03  Hans Breuer  <hans@breuer.org>
9750         * lib/dia_xml.c : make the well formed utf8 check
9751         actually work for &#251; (non 7-bit ascii encoding)
9752         and fixed the file re-writing if the check fails.
9753         Thanks to Vitaly Lipatov for noticing the misbehaviour.
9755         * lib/font.c : synchronize #ifdef G_OS_WIN32 with
9756         comment on last ressort font. Thanks to Maxim Sobolev.
9758 2002-06-03  Cyrille Chepelov  <cyrille@chepelov.org>
9760         * sheets/network.sheet.in: corrected a typo in plotter invocation.
9762 2002-06-03  Steffen Macke  <sdteffen@web.de>
9764         * shapes/network/digitizing_board.png:
9765         * shapes/network/digitizing_board.shape:
9766         * shapes/network/plotter.png:
9767         * shapes/network/plotter.shape:
9768         * shapes/network/Makefile.am
9769         * sheets/network.sheet.in: added new plotter and digitizing
9770         board shapes
9771         
9772 2002-06-02  Cyrille Chepelov  <cyrille@chepelov.org>
9774         * lib/font.c: made a symptomatic fix to a segfault reported by 
9775         Jan Keirse <jan.keirse@pandora.be> on a SuSE 7.3 system. This
9776         won't prevent dia from terminating, but should give more
9777         user-friendly information about why did it terminate.
9779         Two patches from <robert.young@dsto.defence.gov.au>:
9780         
9781         * app/display.c: fix the size of the canvas area which gets
9782         redrawn. There was an off-by one error (Closes #83659)
9784         * app/display.c: make sure we redraw all screen only when we
9785         really have to (some update_areas were mistakenly ignored) (Closes
9786         #83496). 
9788         * NEWS: added a new entry for the future. Put there a reminder to
9789         update the dependencies.
9791         * configure.in: put in notes about what will change shortly.
9792         upped the version to 0.90+cvs (did also in config.h.win32)
9793         upped the minimum version for intltools (now 0.21)
9794         
9795 2002-06-01  Cyrille Chepelov  <cyrille@chepelov.org>
9797         * dia.spec:
9798         * configure.in:
9799         * NEWS:
9800         * config.h.win32:
9801         bumped up version number to 0.90. Yay!
9803 2002-05-30  Cyrille Chepelov  <cyrille@chepelov.org>
9805         * doc/pl/Makefile.am:
9806         * doc/en/Makefile.am: fixed a "make install" problem when db2html
9807         is not present (Reported by Andrew Ferrier
9808         <andrew.junk@new-destiny.co.uk>). Fixed another "make distclean"
9809         problem which prevented me from ever seeing the problem in doc/en...
9810         
9811         * Makefile.am: added autogen.sh to the EXTRA_DIST clause.
9812         
9813         * lib/font.c: patch from <robert.young@dsto.defence.gov.au>; add a
9814         way to read the font path from the XFS configuration files in
9815         order to enable FreeType (fixes #83098).
9817         * POTFILES.(in,skip): now skips objects/sybase/sybase.c, which is not
9818         shipped nowadays.
9819                 
9820         * dia.spec:
9821         * configure.in:
9822         * NEWS:
9823         * config.h.win32:
9824         bumped up version number to 0.90.RC3
9826 2002-05-29  Zbigniew Chyla  <cyba@gnome.pl>
9828         * configure.in, doc/Makefile.am, doc/pl/Makefile.am,
9829         doc/pl/authors.sgml, doc/pl/dia-manual.sgml, doc/pl/dia-pl.omf,
9830         doc/pl/intro.sgml, doc/pl/license.sgml, doc/pl/topic.dat
9831         doc/pl/usage-canvas.sgml, doc/pl/usage-customization.sgml,
9832         doc/pl/usage-layers.sgml, doc/pl/usage-loadsave.sgml
9833         doc/pl/usage-objects-selecting.sgml, doc/pl/usage-objects-special.sgml,
9834         doc/pl/usage-objects.sgml, doc/pl/usage-quickstart.sgml:
9835         Added Polish documentation.
9837 2002-05-27  Cyrille Cheeplov  <cyrille@chepelov.org>
9839         * objects/UML/state.c: there was a (gratuitous?) change of on-XML
9840         format for the UML State object. Now there's a hack to reload
9841         older files, and get them converted on the fly. 
9842         Justyna BiaÃ…?a <nell@poczta.gazeta.pl> reported this. Thanks!
9844         * lib/properties.h:
9845         * lib/propobject.c:
9846         * lib/proplist.c: Added a new property flag, PROP_FLAG_LOAD_ONLY,
9847         and adapter the proplist predicates. A LOAD_ONLY property is for
9848         when you have legacy to support but can't resist moving your
9849         fields around... (was needed to support the above state.c fix).
9851         If the in-core of your object changes and you need a LOAD_ONLY
9852         property for the old format, you must keep some spare room in your
9853         object's struct to accomodate for the potential old-style
9854         attributes. Then in foo_load(), after having called
9855         object_load_using_properties(), you must inspect the old-style
9856         fields and act accordingly. Don't ever change the on-disk formats...
9858         * objects/UML/object.c:
9859         * objects/UML/small_package.c: added a check against empty
9860         stereotypes still consuming space. Reported by Dolores Alia de
9861         Saravia <loli@unsa.edu.ar>. Thanks!     
9862         
9863 2002-05-26  Cyrille Chepelov  <cyrille@chepelov.org>
9865         * INSTALL: added platform notes from MÃ¥rten Svantesson, for when
9866         using libtool on an AFS partition.
9868         * po/update_potfiles_in.sh: now simply calls the recent intltools 
9869         features; they work better than hand-crafted half-ignorant
9870         scripts. Thanks to Kenneth Rohde Christiansen <kenneth@gnu.org>
9871         for the tip.
9873         * po/POTFILES.in: added back two files update_potfiles_in.sh
9874         didn't take into account. Now this file is not automatically
9875         generated anymore!      
9876         * po/POTFILES.skip: told `intltool-update -m` what files to ignore
9877         (the usual suspects, in fact).
9879         * configure.in: improved the isinf() / isfinite() detection on
9880         Solaris (MÃ¥rten Svantesson)
9881         
9882 2002-05-25  Cyrille Chepelov  <cyrille@chepelov.org>
9884         * configure.in: one expression was replacing $CFLAGS, removing
9885         whatever was previously in.
9886         Added more checks for isinf() and finite() on Solaris.
9888         * lib/geometry.h: added a macro defintion for isinf() if not
9889         HAVE_ISINF. (Hans, you may want to #define HAVE_ISINF if relevant
9890         on Win32)
9892         * app/commands.c: "cut" did not set the 'modified' bit (paste has
9893         been for a little while). Fixes #82994.
9895         * Makefile.am: added more stuff to distclean-local. This should make
9896         "make distcheck" pass! Thanks to the author of
9897         http://mail.gnome.org/archives/gnome-2-0-list/2001-August/msg00212.html
9898         ... I wonder who this Henstridge guy is ... ;-)
9899         Darn. Still doesn't pass. I give up for tonight.
9900         
9901         * po/update_potfiles_in.sh: updated to take care of sheet files,
9902         and to filter out the EML plug-in.
9903         * po/POTFILES.in: updated with all .c and all .sheet.in files 
9905         * po/dia.pot, po/*.po: again updated all .po files with all
9906         strings (with the updated POTFILES). Now with the up-to-date
9907         POTFILES, just all languages have some fuzzy or untranslated
9908         strings (not that the 100% team was that large beforehand...)
9910         * po-checktrans: removed the comment about .po files not holding
9911         all translatable stuff, since now they do.
9912         
9913 2002-05-24  Cyrille Chepelov  <cyrille@chepelov.org>
9915         * dia.spec:
9916         * configure.in:
9917         * NEWS:
9918         * config.h.win32:
9919         bumped up version number to 0.90.RC2
9921 2002-05-20  Hans Breuer  <hans@breuer.org>
9923         * app/load_save.c : starting to increase
9924         Dias tolerance on incomplete/broken files. The 
9925         corresponding bug is #56233. But the patch there does
9926         neither apply anymore nor does it really fix the problem
9927         but only delays it, e.g. even if it would be allowed
9928         to read a file without any layers, the later code can't
9929         handle it.
9930         * lib/dia_xml.c : attribute_<num|first>_data(), data_type()
9931         handle passing in NULL for the node gracefully.
9933         * shapes/network/printer.shape : added two more connection
9934         points - one at each side - to fix bug #60359
9936         * app/commands.c (edit_copy_callback) : 
9937         add ddisplay_do_update_menu_sensitivity() to make 
9938         sequence select-copy-paste work.
9940 2002-05-20  Hans Breuer  <hans@breuer.org>
9942         * app/create_object.c (create_object_button_press) :
9943         added a call to ddisplay_do_update_menu_sensitivity()
9944         to make Ctrl^D etc work after object creation. 
9945         Fixes #80983.
9947 2002-05-18  Lars Clausen  <lrclause@cs.uiuc.edu>
9949         * objects/ER/entity.c: 
9950         * objects/ER/attribute.c: 
9951         * objects/ER/relationship.c: Patch to allow text size change from
9952         Celso Tetsuo Nagase Suzuki.
9954 2002-05-18  Steffen Macke <sdteffen@web.de>
9956         * app/app_procs.c: #ifdef'd xmlerror.h (comes with 
9957         libxml2)
9958         * doc/en/graphics/greendots.png:
9959         * doc/en/home_network.png:
9960         * doc/en/line_props.png: 
9961         * dia-diagram.png:
9962         * dia_gnome_icon.png:
9963         * dia_gnome_menu_icon.png:
9964         * dia_logo.png:
9965         * shapes/network/telephone.png:
9966         * shapes/Logic/and.png:
9967         * shapes/Logic/buffer.png:
9968         * shapes/Logic/connector.png:
9969         * shapes/Logic/inverter.png:
9970         * shapes/Logic/nand.png:
9971         * shapes/Logic/nor.png:
9972         * shapes/Logic/not.png:
9973         * shapes/Logic/or.png:
9974         * shapes/logic/xor.png:
9975         * samples/ER-demo.dia:
9976         * samples/SADT.dia:
9977         * samples/UML-demo.dia:
9978         * samples/chronograms.dia:
9979         * samples/grafcet.dia: re-added as binary files
9981 2002-05-17  Hans Breuer  <hans@breuer.org>
9983         * lib/libdia.def : reflect removing of render_store.[ch]
9985         * */makefile.mingw : remove VERSION definition it's
9986         done in config.h.win32. Dia still doesn't work if
9987         build with mingw ...
9989         * RELEASE-PROCESS : removed */makefile.mingw
9991         * app/sheets_dialog_callbacks.c : if we use those
9992         ugly charconv_gtk_* functions lib/charconv.h needs to
9993         be #included ...
9994         * lib/charconv.h : ... and needs to contain the 
9995         necesseray prototypes _and_ #defines
9997         * plug-ins/shape/shape-export.c : with libxml2 xmlNewGlobalNs
9998         is deprecated and does nothing but spit a warning. This broke
9999         the shape format writing. Fixed.
10000         Also with libxml2 pretty formatted xml isn't the default
10001         anymore, but needs to be enabled explicit: It is done now 
10002         for shape files, which almost always needed to be edited by
10003         hand ... 
10005         * app/app_procs.c : #if G_OS_WIN32 redirect xmlErrorReporting
10006         from stderr - which is invalid on Dia/win32 - to g_print -
10007         which opens up a console window if necessary. This way
10008         a xml-deprecation-error shouldn't stay unnoticed next time
10010 2002-05-17  Steffen Macke <sdteffen@web.de>
10012         * shapes/Misc/folder.png:
10013         * shapes/Misc/file.png: re-added as binary files
10014         
10015 2002-05-16  Lars Clausen  <lrclause@cs.uiuc.edu>
10017         * lib/font.c: Fixed segfault for fonts without family_name.
10019 2002-05-17  Cyrille Chepelov  <cyrille@chepelov.org>
10021         * po/POTFILES.in: added app/sheets_dialog_callbacks.c
10023         * app/sheets_dialog_callbacks.c: While reviewing UTF-8isation upon
10024         Lars' request, minor cosmetic stuff (mostly _() of human-readable
10025         XML comments in .sheet files; one translator booby-trap disarmed).
10027         * lib/charconv.c: moved #hell inside the body of the new
10028         charconv_*gtk* functions (otherwise the Win32 or gtk2.0 linker
10029         will yell)
10030         
10031 2002-05-16  Lars Clausen  <lrclause@cs.uiuc.edu>
10033         * plug-ins/wpg/Makefile.am (INCLUDES): 
10034         * plug-ins/shape/Makefile.am (INCLUDES): 
10035         * plug-ins/svg/Makefile.am (INCLUDES): 
10036         * plug-ins/pstricks/Makefile.am (INCLUDES): 
10037         * plug-ins/metapost/Makefile.am (INCLUDES): Added UNICODE_CFLAGS
10038         and DEBUG_CFLAGS in some missing places.
10040         * MAINTAINERS: New file containing list of known package
10041         maintainers. 
10043         * lib/charconv.h: 
10044         * lib/charconv.c: Charconv versions of some common gtk calls.
10046         * app/sheets_dialog_callbacks.c
10047         (on_sheets_new_dialog_button_ok_clicked),
10048         (on_sheets_dialog_button_edit_clicked),
10049         (on_sheets_dialog_button_remove_clicked),
10050         (on_sheets_edit_dialog_button_ok_clicked):
10051         * app/sheets.c (sheets_optionmenu_create),
10052         (sheets_optionmenu_create): Added utf8 translations.
10054         * app/sheets_dialog.c: 
10055         * app/sheets.c: 
10056         * app/sheets_dialog_callbacks.c: Added some missing _()'s.
10058 2002-05-16  Cyrille Chepelov  <cyrille@chepelov.org>
10060         * po/POTFILES.in: added app/sheets_dialog.c
10062 2002-05-15  Cyrille Chépélov  <cyrille@chepelov.org>
10064         * lib/charconv.c: (charconv_local8_to_utf8),
10065         (charconv_utf8_to_local8): tweaked the warnings to get more 
10066         informations
10067         * lib/font.c: (font_get_suckfont): handled a potential case of
10068         uninitialised data being used (just paranoid)
10069         
10070         * objects/GRAFCET/boolequation.c: (opstring),
10071         (opblock_get_boundingbox), (opblock_draw),
10072         (boolequation_calc_boundingbox): some extra hoops needed now dia
10073         talks UTF8 (but gtk doesn't). More #hell. Beeek. Basically, the
10074         symbols can't yet be used with their proper Unicode cells, since
10075         gtk will demand them in the Symbol font, expressed in the local
10076         8-bit encoding.
10077         
10078         * samples/grafcet.dia: re-saved, now with a fixed bounding box (by
10079         the fix just above).
10081 2002-05-14  Lars Clausen  <lrclause@cs.uiuc.edu>
10083         * app/diagram_tree.c (get_object_name): Check that name property
10084         doesn't have null string.
10086 2002-05-13  Lars Clausen  <lrclause@cs.uiuc.edu>
10088         * autogen.sh (DIE): Added conditional --force to gettextize.
10090         * app/pagesetup.c (pagesetup_ok): Commented out missing Gnome
10091         function call.
10093 2002-05-13  Cyrille Chepelov  <cyrille@chepelov.org>
10095         * RELEASE-PROCESS: added James' notes on how to properly make the
10096         tarball.
10098         * configure.in: removed macro nesting related to libpng.h, which
10099         was causing some problems on some systems (like mine, which made
10100         the snapshots bad).
10102         Made --enable-unicode, previously an option, the mandatory case.
10104         * app/Makefile.am: updated EXTRA_DIST
10105         
10106         * NEWS:
10107         * app/makefile.mingw:
10108         * dia.spec:
10109         * doc/en/dia-manual.sgml:
10110         * plug-ins/makefile.mingw:
10111         * configure.in: bumped up the version number to 0.90.RC1
10113         * lib/render_objects.[ch]:
10114         * po/POTFILES.in: removed render_objects from the build.
10116         * plug-ins/Makefile.am:
10117         * plug-ins/wmf/Makefile.am (new): EXTRA_DIST'ed the WMF plug-in,
10118         so we keep its source in the tarball.
10120         * objects/network/*.c, Makefile.am:
10121         * objects/sybase/*.c, Makefile.am:
10122         * po/POTFILES.in: cleaned up the non-existent files from the po
10123         build process.
10125         * plug-ins/Makefile.am: re-enabled metapost plug-in.
10126         
10127 2002-05-13  Steffen Macke <sdteffen@web.de>
10129         * AUTHORS:
10130         * app/command.c: added M. C. Nelson to the Authors
10131         * sheets/Circuit/Makefile.am: added firewall shape to build
10132         * sheets/network/Makefile.am: added telephone and microphone
10133           shapes to build
10135 2002-05-13  Lars Clausen  <lrclause@cs.uiuc.edu>
10137         * RELEASE-PROCESS: Added list of files that contain the release
10138         number or should otherwise be changed at each release.
10140 2002-05-12  Lars Clausen  <lrclause@cs.uiuc.edu>
10142         * objects/UML/uml.c (uml_operation_read): Forgot to commit this
10143         (reported fixed) bug: POLYMORPHIC -> LEAF for default.
10145 2002-05-12  Hans Breuer  <hans@breuer.org>
10147         * config.h.win32 : changed VERSION to 0.90.RC1
10149         * app/makefile.msc lib/makefile.msc : use renamed
10150         gdk-pixbuf version (same content but renamed because
10151         all the other gtk+ dlls are renamed) to avoid trouble
10152         mixing gtk versions (of which one would not 
10153         be initialized ...
10155         * app/app_procs.c : removed recently unneeded
10156         inclusion of "sheets.h"
10158         * app/render_gdk.c : removed my own debug spew
10159         which should never made it to cvs
10161         * lib/render_object.[hc] : added
10162         #error "File not used anymore."
10164         * lib/libdia.def : updated externals
10166         * app/interface.c : dropped filenames need to be
10167         converted from uri with Gtk+2.0
10169 2002-05-12  Cyrille Chepelov  <cyrille@chepelov.org>
10171         * RELEASE-PROCESS (new): a draft document about how to release. To
10172         be discussed. (already with some input from Hans Breuer)
10174 2002-05-12  Steffen Macke <sdteffen@web.de>
10176         * sheets/Makefile.am: re-added Misc sheet to make process
10177         
10178 2002-05-12  Lars Clausen  <lrclause@cs.uiuc.edu>
10180         * objects/FS/function.c: Added comments to humungous list of menu
10181         items, to aid translators.
10183 2002-05-11  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
10185         * app/menus.c (display_menu_items): Added a few shortcuts for zooms.
10187         * app/menus.c (display_menu_items): Added a few shortcuts for zooms.
10189         * app/interface.c (create_toolbox): Disallow shrinking beyond
10190         requested size.  Fixes bug #59439, and confirms to GTK guidelines
10191         (see gtk_window_set_policy).
10192         (create_sheets): Removed now unnecessary set_usize call.
10194 2002-05-10  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
10196         * lib/beziershape.c (remove_handles): Fixing removal of last
10197         segment.  Undo of removal still hokey.
10199 2002-05-10  Lars Clausen  <lrclause@cs.uiuc.edu>
10201         * lib/bezier_conn.c (remove_handles): Proper offset for fixing
10202         handles. 
10203         * lib/beziershape.c (beziershape_init): Removed early call to
10204         beziershape_update_data where points aren't set yet.
10205         (beziershape_add_segment): Use segment 0 instead of overflowing
10206         points array with segment+1.
10207         (beziershape_remove_segment): Proper offset for fixing
10208         connectionpoints. 
10209         (remove_handles): Proper offset.
10211 2002-05-08  Lars Clausen  <lrclause@cs.uiuc.edu>
10213         * objects/GRAFCET/action.c (action_update_data): Init x value of
10214         click point for call to connpointlist_adjust_count.
10216         * app/modify_tool.c (create_modify_tool): Init tool->auto_scrolled
10218         * app/render_pixmap.c (new_pixmap_renderer): Moved first linestyle
10219         setting to where values are inited.
10221         * lib/polyshape.c (polyshape_init): Removed call to
10222         polyshape_update_data that tried to use uninitialized data.
10224 2002-05-06  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
10226         * app/sheets_dialog.c: Mass removal of //-style comments.  The
10227         Irix compiler doesn't like them:(  I do...
10229 2002-05-06  Lars Clausen  <lrclause@cs.uiuc.edu>
10231         * app/render_libart.c (draw_string): Bail out when no GDK font is
10232         found.
10233         (set_font): Give error when font not found.
10234         (set_fillstyle): Intlized error msg.
10236         * app/pagesetup.c (pagesetup_ok, pagesetup_apply): Sets diagram
10237         modified when applied (and ok only does apply if apply is set
10238         sensitive).  Fixes bug #75623.
10240 2002-05-06  Pablo Saratxaga  <pablo@mandrakesoft.com>
10242         * configure.in: Added Vietnamese (vi) to ALL_LINGUAS
10244 2002-05-05  Steffen Macke <sdteffen@web.de>
10246         * app/Makefile.am: added $(UNICODE_CFLAGS)
10247         
10248 2002-05-02  Lars Clausen  <lrclause@cs.uiuc.edu>
10250         * app/commands.c (help_manual_callback): Check return value of
10251         opendir.
10253         * plug-ins/xfig/Makefile.am (INCLUDES): Added DEBUG_FLAGS
10255         * plug-ins/xfig/xfig-import.c: Fixed misspelled Poly_L_ine, added
10256         checks for errors.
10258 2002-04-30  Lars Clausen  <lrclause@cs.uiuc.edu>
10260         * app/render_gdk.c (draw_string): Extra free killed.  Thanks valgrind!
10262         * objects/UML/uml.c (uml_operation_read): Fix of UML default
10263         inheritance. 
10265 2002-04-30  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
10267         * app/filedlg.c (file_save_as_callback, file_save_as_ok_callback):
10268         Added button to toggle diagram compression.
10270 2002-04-29  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
10272         * lib/font.c: Support for loading extra kerning files, plus got
10273         rid of rounding errors.  Bounding box mostly perfect for freetype
10274         fonts.
10275         (font_string_width): Fudge factor to get around nonlinearity of
10276         font scaling.
10278 2002-04-29  Lars Clausen  <lrclause@cs.uiuc.edu>
10280         * lib/font.c (font_string_width): YA font calculation scheme, with
10281         comments.
10283         * objects/UML/class.c (umlclass_calculate_data): Uses the same
10284         font for drawing and calculating now.
10286         * configure.in: Added utime.h check.
10288         * app/render_gdk.c (draw_string): Uses gdk_draw_text_wc when in
10289         GTK_DOESNT_TALK_UTF8_WE_DO.  Thus it matches the string width calc.
10291 2002-04-26  Hans Breuer  <hans@breuer.org>
10293         [ Instead of fixing about 70 occurances in 20 files
10294           where GTK_TALKS_UTF8_WE_DONT needed to be handled
10295           Dia on win32 from now on uses glib-2.0 and not 
10296           only talks utf-8 with gtk-1.3 but also internally.
10297           GTK_TALKS_UTF8_WE_DONT isn't supported/needed
10298           anymore. ]
10300         * config.h.win32 : #define UNICODE_WORK_IN_PROGRESS
10301         #undef GTK_TALKS_UTF8_WE_DONT
10303         * */makefile.msc : changes to use glib-2.0 (still
10304         using gtk+1.3(win32-production)
10306         * app/disp_callbacks.c : remove GTK_TALKS_UTF8_WE_DONT,
10307         adapt kevent->string handling, add <string.h>
10308         * app/render_gdk.c (get_text_width) : the length given
10309         is in chars, gdk_text_width() needs bytes
10311         * app/render_libart.c : 
10312         * app/render_pixmap.c : remove GTK_TALKS_UTF8_WE_DONT
10313         (could simplify the same way as done in render_gdk.c)
10315         * app/diagram_tree.c app/paginate_gdiprint.cpp
10316           app/sheets.c :
10317         * lib/prop_basic.c lib/prop_geomtypes.c 
10318           lib/propdialgs.c lib/propobject.c :
10319         added <string.h> which is now removed from charconv.h
10321         * lib/charconv.h : optional use infrastructure from
10322         glib-2.0 -> only five direct function mapping left
10324         * lib/charconv.c : avoid to build this with glib-2.0
10326         * lib/font.c : no string conversion needed anymore      
10327         when Dia and Gtk talk utf-8, also code adaptions
10328         for GLIB_CHECK_VERSION(2,0,0)
10330         * lib/libdia.def : removed charconv functions
10332         * lib/prop_inttypes.c : removed GTK_TALKS_UTF8_WE_DONT,
10333         replace charconv_unichar_to_utf8() with g_unichar_to_utf8()
10335         * lib/prop_text.c lib/prop_widgets.c lib/font.c : 
10336         removed GTK_TALKS_UTF8_WE_DONT
10338         * lib/text.c : finally(?) fixed cursor <place|move>ment 
10339         for Umlauts. Also fixed char insertion, still wondering
10340         how this could ever work. Does realloc on Linux 
10341         initialize the memory with zeros ?
10343         * objects/chronogram/chronoline_event.c
10344           objects/grafcet/boolequation.c :
10345         there is no uni_get_utf8 when building for glib-2.0.
10346         Replace with g_utf8_get_char() and g_utf8_next_char().
10348         * objects/uml/stereotype.c (bracketted_to_string) : 
10349         simplify while adding code for glib-2.0 build
10351 2002-04-27  Lars Clausen  <lrclause@cs.uiuc.edu>
10353         * app/diagram.h: Autosave field
10354         * app/diagram.c (diagram_set_modified): Sets autosave field.
10355         
10356         * objects/UML/usecase.c (usecase_update_data): 
10357         * objects/flowchart/ellipse.c (ellipse_update_data): 
10358         * objects/flowchart/parallelogram.c (pgram_update_data): 
10359         * objects/flowchart/diamond.c (diamond_update_data): 
10360         * objects/custom/custom_object.c (custom_update_data): 
10361         * objects/UML/state.c (state_update_data): 
10362         * objects/UML/small_package.c (smallpackage_update_data): 
10363         * objects/UML/object.c (objet_update_data): 
10364         * objects/UML/note.c (note_update_data): 
10365         * objects/UML/node.c (node_update_data): 
10366         * objects/UML/component.c (component_update_data): 
10367         * objects/UML/classicon.c (classicon_update_data): 
10368         * objects/UML/actor.c (actor_update_data): 
10369         * objects/SADT/box.c (sadtbox_update_data): 
10370         * objects/FS/function.c (function_update_data): 
10371         All now update text boundaries from update_data.
10372         
10373         * lib/widgets.c (dia_font_selector_set_styles): Made the style set
10374         correctly. 
10376 2002-04-26  Hans Breuer  <hans@breuer.org>
10378         * config.h.win32 : added VERSION definition here
10379         (and removed from makefile.msc's)
10381         * app/makefile.msc : added new files
10383         * app/app_procs.c (app_init): remove sheets_dialog_create()
10384         from start-up and ... 
10386         * app/sheet.c (sheets_dialog_show_callback) : ... lazy create
10387         sheet_dialog here when it is really needed.
10388         #include "../lib/message.h", make sheets_dialog_create() 
10389         return it's success or failing on (!custom_type_symbol). 
10390         Although editing shapes is nice IMHO it isn't crucial enough 
10391         to abort() Dia if       it isn't possible.
10393         * app/sheet.h : adapt create_sheet_dialog() prototype
10395         * app/sheets_dialog.c : add #ifdef HAVE_UNISTD_H
10397         * app/sheets_dialog_callbacks.c : #ifdef HAVE_UNISTD_H and
10398         #ifdef HAVE_UTIME_H. Otherwise #include <sys/utime.h> and
10399         name space corrections for utime() and utim_buf #ifdef
10400         G_OS_WIN32
10402         * lib/libdia.def : export new sheet functions
10404         * lib/makefile.msc : added new files
10406         * lib/render.c : don't put draw_bezier_with_arrows() in
10407         the DrawLineWithArrowsFunc slot
10409         * objects/custom/custom_object.c : #include <gmodule.h>
10410         and export 'custom_type' via G_MODULE_EXPORT
10412         * objects/uml/class_dialog.c : removed 'incompatible 
10413         types' warnings. Some refactoring while making it fit
10414         on screen with 800x600 again.
10416         * plug-ins/python/pydia-cpoint.h : add PyDiaConnectionPoint_Check
10418         * plug-ins/python/pydia-handle.h : extra parameter to
10419         PyDiaHandle_New to store the owner of the handle
10420         * plug-ins/python/pydia-handle.c : store handle owner
10421         on construction and use it in new method .connect()
10422         * plug-ins/python/pydia-object.c plug-ins/python/pydia-diagram.c : 
10423         adapt to changed prototype
10425 2002-04-24  Lars Clausen  <lrclause@cs.uiuc.edu>
10427         * lib/text.c (text_calc_boundingbox): Will now return early if box
10428         passed is NULL.
10430         * objects/flowchart/box.c (box_update_data): Now updates text
10431         width info from update_data.
10433 2002-04-23  Steffen Macke <sdteffen@web.de>
10435         * plug-ins/xfig/xfig-import.c: fixed text import
10436         
10437 2002-04-22  Lars Clausen  <lrclause@cs.uiuc.edu>
10439         * app/export_png.c: Moved dialog functions to their own file.
10440         * app/dialogs.[ch]: New files with standard functions for creating
10441         small, transient dialogs (e.g. export options).
10442         * app/Makefile.am: Added dialogs.[ch]
10444 2002-04-19  Steffen Macke <sdteffen@web.de>
10446         * shapes/Misc/folder.*:
10447         * shapes/Misc/file.*:
10448         * shapes/Misc/Makefile.am:
10449         * shapes/Makefile.am:
10450         * sheets/Misc.sheet.in:
10451         * sheets/Makefile.am:
10452         * configure.in: added new Misc sheet containing filesystem shapes
10453         
10454 2002-04-18  Lars Clausen  <lrclause@cs.uiuc.edu>
10456         * app/lineprops_area.c: Arrow selector in toolbox changed to use
10457         standard arrowdraw code.  Line is thinner to make some arrowheads
10458         distinguishable. 
10460 2002-04-18  Steffen Macke <sdteffen@web.de>
10462         * sheets/network.sheet.in:
10463         * shapes/network/telephone.shape:
10464         * shapes/network/Makefile.am: added telephone shape
10465         
10466 2002-04-16  Steffen Macke <sdteffen@web.de>
10468         * sheets/EML.sheet.in: commented out unavailable shapes
10469         
10470 2002-04-15  M.C. Nelson <mcn@kobayashimaru.org>
10472         * app/sheets_dialog_callbacks.c:  Fixed segfault caused by mis-ordered
10473           variable assignment.
10474         
10475 2002-04-15  Steffen Macke <sdteffen@web.de>
10477         * plug-ins/dxf/dxf-import.c: text import works again
10478         * shapes/Pneumatic/Makefile.am: added compush shape
10479         * sheets/Pneumatic.sheet.in: commented out unavailable shapes dist33
10480         and dist53
10481         
10482 2002-04-11  M.C. Nelson <mcn@kobayashimaru.org>
10484         * All these modifications are for the 'Sheets and Objects' dialog
10485           (new feature):
10487         * app/pixmaps/line_break.xpm: new icon representing a line break.
10488         
10489         * app/pixmaps/n_a.xpm: new empty icon representing not available.
10491         * app/Makefile.am: added sheets_*.[ch] files to compile list.
10492         
10493         * app/menus.c: added GNOME and gtk menu items for 'Sheets and Objects'
10494         
10495         * app/sheets_dialog.c: [new file] definition of 'Sheets & Objects' dlgs
10497         * app/sheets_dialog.h: [new file] support for Sheets & Objects dlgs 
10498         
10499         * app/app_procs.c: added call to sheets_dialog_create() in app_init()
10500         
10501         * app/sheets_dialog_callbacks.c: [new file] callbacks for S & O dialogs
10503         * app/sheets_dialog_callbacks.h: [new file] support for " " "
10505         * app/interface.c: added 'interface_current_sheet_name' global to 
10506           fill_sheet_wbox(); made fill_sheet_menu() non-static
10508         * app/interface.h: added extern declaration for aboves.
10510         * app/sheets.c: [new file] instantiation and other funcs for S & O dlgs
10512         * app/sheets.h: [new file] declarations for backing store structures
10514         * lib/sheet.c: modification of new_sheet() parameters; introduction
10515           of USER and SYSTEM scope for sheets; procedure for sorting sheets;
10516           changes to load_register_sheet().
10518         * lib/sheet.h: added 'user_data_type' field to SheetObject structure;
10519           added 'has_icon_on_sheet' flag to SheetObject structure; added 
10520           'filename', 'scope', 'shadowing' fields to Sheet structure.
10522         * lib/plug-ins.c: moved _PluginInfo declaration to header file where
10523           it belongs.
10525         * lib/plug-isn.h: see above.
10527         * lib/object.c: added 'sheet.h' to include list; added several 
10528           functions
10529           to detect objects which are not found on any sheet (for future use)
10530           object_type_detect_nosheet_callback(), object_types_detect_nosheet(),
10531           object_type_get_sheet_name(), object_type_strip_sheet_from_name().
10533         * lib/object.h: added public declarations for above functions where
10534           necessary.
10536         * objects/custom/custom.c: made custom_object_load() non-static so we
10537           can load and interpret .shape files from the Sheets & Objects dialog
10539         * objects/custom/custom_object.c: made 'custom_type' non-static so 
10540           we can differentiate between SVG shapes and other types.a
10542 2002-04-07  Hans Breuer  <hans@breuer.org>
10544         * app/object_ops.c (object_list_align_v): Fix the 'Leak fix'
10545         from 2002-01-22 to not destroy diagram->data->selected. 
10546         Avoids to crash on Objects/Align/Vertical/Top
10548         * app/render_eps.c (draw_string) : un-const buffer
10549         It isn't at all const (g_malloc(), assignment, g_free()).
10550         Doesn't gcc catch such ?
10552         * lib/arrows.h : prototype calculate_arrow_point()
10554         * lib/font.c (font_get_suckfont) : no need to
10555         special case gdk_draw_string() with GTK_TALKS_UTF8,
10556         cause all the parameter differences are handled above
10558         * lib/libdia.def : updated externals
10560         * lib/makefile.msc : removed string_prerenderer, added render
10562         * lib/render.c (draw_rect) : don't pass a Point** if a Point*
10563         is expected. [Sometimes it's good to read compiler warnings.]
10565         * objects/standard/image.c : simplified by use of g_strconcat()
10567         * plug-ins/python/makefile.msc : updated for Python 2.2
10569 2002-04-03  Lars Clausen  <lrclause@cs.uiuc.edu>
10571         * objects/standard/zigzagline.c (zigzagline_draw): Fixed
10572         directionality problem for zero-length line segments.
10574 2002-03-28  Lars Clausen  <lrclause@cs.uiuc.edu>
10576         * app/diagram.c (diagram_ungroup_selected) 
10577         (diagram_update_menu_sensitivity): Now allows ungrouping of
10578         several groups at once.
10580 2002-03-15  Lars Clausen  <lrclause@cs.uiuc.edu>
10582         * lib/render.c, all renderers: Binary incompatibility, change to
10583         expandable renderops structure.
10585 2002-03-15  Steffen Macke <sdteffen@yahoo.com>
10587         * objects/standard/Makefile.am:
10588         * objects/network/Makefile.am:
10589         * objects/UML/Makefile.am:
10590         * objects/ER/Makefile.am:
10591         * objects/FS/Makefile.am:
10592         * objects/flowchart/Makefile.am:
10593         * objects/custom/Makefile.am:
10594         * objects/GRAFCET/Makefile.am:
10595         * objects/chronogram/Makefile.am:
10596         * objects/SADT/Makefile.am:
10597         * plug-ins/cgm/Makefile.am:
10598         * plug-ins/pstricks/Makefile.am:
10599         * plug-ins/hpgl/Makefile.am:
10600         * plug-ins/wpg/Makefile.am:
10601         * plug-ins/svg/Makefile.am:
10602         * plug-ins/shape/Makefile.am: added $(UNICODE_CFLAGS)
10603         
10604 2002-03-13  Lars Clausen  <lrclause@cs.uiuc.edu>
10606         * app/render_eps.c: Support for dumping TrueType fonts (taken from
10607         ttfps).
10609 2002-03-12  Lars Clausen  <lrclause@cs.uiuc.edu>
10611         * lib/render.c: New abstract super class for renderers.
10613 2002-03-07  Akira TAGOH  <tagoh@redhat.com>
10615         * objects/ER/attribute.c (attribute_save): save a font property.
10616         (attribute_load): load a font property, and if can't load it, it's
10617         initialized.
10619         * objects/ER/entity.c (entity_save): save a font property.
10620         (entity_load): load a font property, and if can't load it, it's
10621         initialized.
10623         * objects/ER/relationship.c (relationship_save): save a font property.
10624         (relationship_load): load a font property, and if can't load it, it's
10625         initialized.
10627         * objects/UML/class.c (fill_in_fontdata): don't replace if it already
10628         has a vaule.
10629         (umlclass_save): save the font and the font size properties.
10630         (umlclass_load): load the font and the font size properties.
10632 2002-03-05  Cyrille Chepelov  <cyrille@chepelov.org>
10634         * lib/string_prerenderer.[ch] (REMOVED):
10635         * lib/render.h:
10636         * lib/diagramdata.c:
10637         * lib/Makefile.am:
10638         * app/render_eps.c: got rid of the string-specific string
10639         prerenderer, transitioned its functionality towards Lars'
10640         two-phase rendering
10642 2002-03-05  Lars Clausen  <lrclause@cs.uiuc.edu>
10644         * configure.in: Using Freetypes own check for ver >= 1.0.5.  You
10645         may need to rerun aclocal.
10647 2002-03-04  Lars Clausen  <lrclause@cs.uiuc.edu>
10649         * lib/font.c: First attempt at Unicodeness for Freetype.
10651 2002-03-02  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
10653         * lib/font.c (font_string_width): Fixed font_string_width for
10654         freetype.  BB is now almost right.
10656 2002-03-01  Lars Clausen  <lrclause@cs.uiuc.edu>
10658         * app/render_eps.h: 
10659         * app/paginate_psprint.c (paginate_psprint): 
10660         * lib/font.c: 
10661         * app/render_eps.c: Support for dumping postscript fonts into
10662         postscript files with freetype.  Fairly primitive, but works.
10663         Unicode version may have problems.
10665 2002-02-28  Akira TAGOH  <tagoh@redhat.com>
10667         * objects/UML/class_dialog.c (class_read_from_dialog)
10668         (class_fill_in_dialog), (class_create_page): add the font selector and
10669         the font size selector.
10671         * objects/UML/class.c (umlclass_draw): uses each font_height.
10672         (umlclass_calculate_data): ditto.
10673         (fill_in_fontdata): add initial value of new font_height.
10674         (umlclass_copy): add new font_height.
10676 2002-02-27  Cyrille Chepelov  <chepelov@calixo.net>
10678         Patch from Geoff Gerrietts <ggerrietts@yahoo.com>:
10679         
10680         * lib/font.c: calculate font metrics properly and stop guessing at
10681         string widths.
10683 2002-02-28  Akira TAGOH  <tagoh@redhat.com>
10685         * configure.in: changed gtk_advancement value to dia_talks_utf8.
10686         right now Dia is working with UTF-8 internally. it means Dia probably
10687         support most languages also including the languages which heretofore
10688         didn't work correctly.
10690 2002-02-26  Akira TAGOH  <tagoh@redhat.com>
10692         * objects/FS/function.c: add related text properties.
10693         (function_get_props), (function_set_props): add handling attribute.
10695         * objects/FS/flow.c: add related text properties.
10696         (flow_get_props), (flow_set_props): add handling attribute.
10698         * objects/FS/flow-ortho.c: add related text properties.
10699         (orthflow_set_props), (orthflow_get_props): add handling attribute.
10701         * objects/ER/relationship.c: add PROP_STD_TEXT_FONT to property.
10703         * objects/ER/entity.c: ditto.
10705         * objects/ER/attribute.c: ditto.
10707 2002-02-26  Cyrille Chepelov  <cyrille@chepelov.org>
10709         Patch contributed by Geoff Gerrietts <ggerrietts@yahoo.com>:
10710         
10711         * autogen.sh: add a check for missing intltoolize.
10713 2002-02-20  Akira TAGOH  <tagoh@redhat.com>
10715         * lib/ps-utf8.c (unicode_to_ps_name): if this function calls with same
10716         charcode, it was registered the duplicate item to HashTable. fix.
10718         * app/render_gnomeprint.c (get_width_string): add new function.
10719         (draw_string): fix non-multibyte specific code.
10721 2002-02-19  Cyrille Chepelov  <cyrille@chepelov.org>
10723         Patch contributed by Matthieu Sozeau <mattam@netcourrier.com>:
10724         
10725         * lib/font.c: do not try to search paths that do not begin with
10726         '/', like X Font Server addresses.
10727         
10728         * objects/UML/message.c (message_draw): free mname when not 
10729         message->text but CREATE or DESTROY.
10730         
10731         * objects/UML/uml.h:
10732         * objects/UML/uml.c:
10733         * objects/UML/class_dialog.c: added code to handle a stereotype 
10734         attribute for operations.
10736 2002-02-19  Akira TAGOH  <tagoh@redhat.com>
10738         * lib/Makefile.am: add LIBART_CFLAGS.
10740 2002-02-15  Hans Breuer  <hans@breuer.org>
10742         * lib/font.c (font_get_suck_font): the black and white pixel values 
10743         need to be taken from a 1 bit colormap rather than the default colormap.
10744         (fixed again, last time was 2000-05-26)
10746         Also handle the case where GTK_TALKS_UTF8 and expects all strings
10747         passed in to be in this encoding.
10749         * lib/libdia.def : export suck_font_free()
10751         * lib/text.c (text_draw) : avoid circular dependency to ../app
10752         at least for the !USE_XIM case, where it is unnecessary.
10754 2002-02-15  Cyrille Chepelov  <cyrille@chepelov.org>
10756         Changes contributed by Matts Kivik <kivik@firstlinux.net>:
10757         
10758         * shapes/Circuit/microphone_de.(shape|xpm) (NEW):
10759         * sheets/Circuit.sheet.in: added new shape microphone
10760         * shapes/Circuit/speaker_de.shape: Added a connection point.
10761         
10762 2002-02-13  Akira TAGOH  <tagoh@redhat.com>
10764         * app/render_libart.c (draw_string): fixed build issue for Win32.
10766         * lib/font.c (font_get_suckfont): fixed typo. it could't build under
10767         Win32.
10769         * configure.in: fixed testing gtk_advancement.
10771         * app/render_gnomeprint.c (draw_string): uses utfchar instead of char.
10773 2002-02-12  Akira TAGOH  <tagoh@redhat.com>
10775         * lib/text.c (text_draw): fixed XIM position, when menubar is shown for
10776         diagram window.
10778 2002-02-11  Lars Clausen  <lrclause@cs.uiuc.edu>
10780         * app/group.c (group_copy): Made new object properly initialized
10781         before copy.
10783 2002-02-11  Steffen Macke <sdteffen@yahoo.com>
10785         * app/Makefile.am: added plug-ins to DIA_LIB_PATH in run_dia.sh
10786         
10787 2002-02-10  Akira TAGOH  <tagoh@redhat.com>
10789         * lib/text.c (text_draw): fixed XIM transaction.
10791         * app/interface.c (create_display_shell): add signal for
10792         size_allocate.
10794         * app/disp_callbacks.c (ddisplay_size_allocate): add new function for
10795         XIM transaction.
10796         (set_input_dialog): remove.
10797         (ddisplay_canvas_events): remove XIM transaction. it can't transact
10798         correctly on this function.
10800 2002-02-10  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
10802         * app/app_procs.c:
10803         * app/export_png.c: Added checks for interactivity (maybe this
10804         should be a hook after all?).
10806         * app/filedlg.c (file_export_callback): Made export dialog add
10807         suffix when reopened.
10809         * app/export_png.c: Added dialog asking for export size.
10811 2002-02-09  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
10813         * lib/widgets.c: Fixed font reselection problem and first font
10814         bogus warning.
10816         * objects/UML/actor.c (actor_update_data): Changed to have
10817         connection points below text.
10819 2002-02-08  Akira TAGOH  <tagoh@redhat.com>
10821         * lib/text.c (text_split_line): use g_strndup() instead of g_malloc()
10822         and memcpy().
10824 2002-02-07  Akira TAGOH  <tagoh@redhat.com>
10826         * lib/font.c (font_get_suckfont): rewrited. generating suckfont from
10827         strings which is given.
10828         (suck_font): remove. it's any longer needed.
10830         * app/render_libart.c (set_font): don't get suckfont.
10831         (draw_string): get suckfont only which is needed for now.
10833 2002-02-05  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
10835         * lib/text.c: Fixes for misunderstood width functions.
10837 2002-02-05  Hans Breuer  <hans@breuer.org>
10839         * lib/dia_xml.c : use g_strconcat() instead of 
10840         malloc, strcpy, strcat dance
10841         * app/properties.c : same here and plug memory leak
10842         (gtk functions don't eat strings)
10844         * objects/UML/message.c : there is no g_sprintf()
10845         use g_strdup_printf() instead ...
10847 2002-02-05  Akira TAGOH  <tagoh@redhat.com>
10849         * lib/message.c (gtk_message_internal): doesn't need to convert to
10850         UTF-8.
10852         * app/render_libart.c (draw_string): fixed transaction for UTF-8
10853         support.
10854         (get_text_width): ditto.
10856         * app/Makefile.am (EXTRA_DIST):
10857         s/paginate_gdiprint.c/paginate_gdiprint.cpp/
10859         * app/render_gdk.c (gdk_freetype_copy_glyph): fixed build issue.
10860         This function needs ifdef HAVE_FREETYPE because don't use it for
10861         --disable-freetype
10863 2002-02-04  Cyrille Chepelov  <cyrille@chepelov.org>
10865         * NEWS: updated with the new dependencies.
10866         
10867         Patch from Matthieu Sozeau <mattam@netcourrier.com>:
10869         * objects/UML/class.h:
10870         * objects/UML/class.c:  
10871         * objects/UML/class_dialog.c: added code to handle the UMLParameterKind
10872         property using a GtkMenu. Options are Undefined, In, Out, In & Out
10874 2002-02-04  Lars Clausen  <lrclause@cs.uiuc.edu>
10876         * app/render_libart.c: Slow but working libart freetype renderer,
10877         with color!
10879 2002-02-03  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
10881         * app/render_gdk.c (draw_string): Fixed gc_function bug.
10883         * lib/widgets.c (dia_font_selector_init): Sorts the font list.
10885         * lib/font.c (freetype_render_string): 
10886         * lib/font.h:
10887         * app/render_gdk.c:
10888         * app/render_gdk.h: Changed freetype_render_string to use
10889         callback.  Rendering is broken.
10891 2002-02-03  Cyrille Chepelov  <cyrille@chepelov.org>
10893         Patch from Matthieu Sozeau <mattam@netcourrier.com>:
10895         * objects/UML/uml.h:    
10896         * objects/UML/uml.c: added UMLInheritanceType and isQuery
10897         (constant) UML Operation attributes. UMLInheritanceType is either
10898         UML_ABSTRACT or UML_POLYMORPHIC  or UML_LEAF.
10900         * objects/UML/class.h:
10901         * objects/UML/class.c:  
10902         * objetcs/UML/class_dialog.c: added code to handle new
10903         UMLOperation attributes via a GtkMenu and a checkbox.
10905 2002-02-03  Akira TAGOH  <tagoh@redhat.com>
10907         * app/disp_callbacks.c (ddisplay_realize): fixed XIM issue.
10908         several client doesn't work with previous codes.
10910 2002-02-01  Lars Clausen  <lrclause@cs.uiuc.edu>
10912         * lib/font.c (freetype_render_string): Kerning.  Very few fonts
10913         seem to use it.
10915 2002-02-02  Akira TAGOH  <tagoh@redhat.com>
10917         * app/disp_callbacks.c (ddisplay_canvas_events): fixed crashes,
10918         when doing the operation like invert the objects after active view is
10919         destroyed. when changes focus, it needs to set active_display.
10921         * app/layer_dialog.c (dia_layer_update_from_layer):
10922         (layer_dialog_edit_layer): need to convert to locale encoding
10923         if GTK_DOESNT_TALK_UTF8_WE_DO is defined.
10924         (edit_layer_ok_callback):
10925         need to convert to UTF8 if GTK_DOESNT_TALK_UTF8_WE_DO is defined.
10927         * lib/diagramdata.c (new_diagram_data): ditto.
10929         * app/layer_dialog.c (layer_dialog_new_callback): ditto.
10931         * lib/diagramdata.c (new_layer): use utfchar instead of char for
10932         argument.
10934         * lib/widgets.c: if HAVE_FREETYPE isn't defined, it can't build. fixed.
10935         (dia_font_selector_set_styles): when HAVE_FREETYPE is defined only,
10936         it's needed for now. also this function needs prototype declaration.
10938 2002-01-31  Lars Clausen  <lrclause@cs.uiuc.edu>
10940         * lib/widgets.c: Style now functional on font selector.  Some leak
10941         possible, but doesn't show up under stress test.
10943 2002-01-31  Akira TAGOH  <tagoh@redhat.com>
10945         * app/plugin-manager.c (clist_select_row): name and description needs to
10946         convert to locale encoding, when GTK_DOESNT_TALK_UTF8_WE_DO is defined.
10947         (get_plugin_manager): ditto.
10949         * lib/plug-ins.c (dia_plugin_info_init): name needs to convert to UTF-8.
10951         * app/diagram_tree.c (get_object_name): fixed transaction for UTF-8
10952         support.
10954         * lib/prop_text.c (stringprop_reset_widget): fixed crashes,
10955         when prop->string_data is NULL.
10957 2002-01-30  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
10959         * lib/widgets.c: 
10960         * lib/widgets.h: New font selector separating font and style.
10961         Style not functional yet.
10963 2002-01-30  Lars Clausen  <lrclause@cs.uiuc.edu>
10965         * lib/text.c: 
10966         * app/render_gdk.c (draw_string): More freetype support, now
10967         renders text.  Still broken is font selection and exporting.
10969 2002-01-30  Akira TAGOH  <tagoh@redhat.com>
10971         * objects/chronogram/chronoref.c (chronoref_create): missing gettextize
10972         for font.
10974         * objects/chronogram/chronoline.c (chronoline_create): ditto.
10976         * objects/UML/usecase.c (usecase_create): ditto.
10978         * objects/UML/state.c (state_create): ditto.
10980         * objects/UML/object.c (objet_create): ditto.
10982         * objects/UML/node.c (node_create): ditto.
10984         * objects/UML/message.c (message_create): ditto.
10986         * objects/UML/component.c (component_create): ditto.
10988         * objects/UML/classicon.c (classicon_create): ditto.
10990         * objects/UML/actor.c (actor_create): ditto.
10992         * objects/SADT/box.c (sadtbox_create): ditto.
10994         * objects/SADT/annotation.c (annotation_create): ditto.
10996         * objects/GRAFCET/transition.c (TRANSITION_FONT): ditto.
10998         * objects/GRAFCET/step.c (STEP_FONT):
10999         * (step_create): ditto.
11001         * objects/GRAFCET/condition.c (CONDITION_FONT): ditto.
11003         * objects/GRAFCET/action.c (ACTION_FONT):
11004         (action_create): ditto.
11006         * objects/FS/function.c (function_create): ditto.
11008         * objects/FS/flow.c (flow_create):
11009         (flow_load): 
11010         (flow_apply_defaults): ditto.
11012         * objects/FS/flow-poly.c (flow_create):
11013         (flow_load):
11014         (flow_apply_defaults): ditto.
11016         * objects/FS/flow-ortho.c (orthflow_create):
11017         (orthflow_load):
11018         (orthflow_apply_defaults): ditto.
11020         * objects/ER/relationship.c: use utfchar instead of char for structure.
11021         (relationship_create): name needs to convert to UTF-8.
11023         * objects/ER/attribute.c: use utfchar instead of char for structure.
11024         (attribute_create): name needs to convert to UTF-8.
11026         * objects/ER/entity.c: use utfchar instead of char for structure.
11027         (entity_create): name needs to convert to UTF-8.
11029         * app/interface.c (fill_sheet_wbox): needs to convert UTF-8 to locale
11030         encoding for tooltips, if GTK_TALKS_UTF8 isn't defined.
11031         (fill_sheet_menu): needs to convert UTF-8 to locale encoding for menu
11032         items. if GTK_TALKS_UTF8 isn't defined.
11034 2002-01-29  Akira TAGOH  <tagoh@redhat.com>
11036         * objects/UML/class.c (umlclass_calculate_data): fixed malloc size.
11037         it was my careless mistake...
11039         * lib/attributes.c (attributes_set_default_font): temporarily gettextize
11040         a font name, because there are strings which isn't shown by "Courier".
11041         We need to consider a way to feel free to choose a font at runtime.
11043         * lib/render_object.c (render_object_load): ditto.
11045         * lib/text.c (data_text): ditto.
11047         * objects/EML/instantiation.c (instantiation_create): ditto.
11049         * objects/EML/interaction-ortho.c (interaction_ortho_create):
11050         (interaction_ortho_load): ditto.
11052         * objects/EML/interaction.c (interaction_create):
11053         (interaction_load): ditto.
11055         * objects/EML/process.c (fill_in_fontdata): ditto.
11057         * objects/ER/attribute.c (attribute_create): 
11058         (attribute_load): ditto.
11060         * objects/ER/entity.c (entity_create): 
11061         (entity_load): ditto.
11063         * objects/ER/relationship.c (relationship_create): 
11064         (relationship_load): ditto.
11066         * objects/UML/association.c (association_create): 
11067         (association_load): ditto.
11069         * objects/UML/class.c (fill_in_fontdata): ditto.
11071         * objects/UML/constraint.c (constraint_create): ditto.
11073         * objects/UML/dependency.c (dependency_create): ditto.
11075         * objects/UML/generalization.c (generalization_create): ditto.
11077         * objects/UML/implements.c (implements_create): ditto.
11079         * objects/UML/large_package.c (largepackage_create): ditto.
11081         * objects/UML/note.c (note_create): ditto.
11083         * objects/UML/realizes.c (realizes_create): ditto.
11085         * objects/UML/small_package.c (smallpackage_create): ditto.
11087         * objects/custom/shape_info.h (FONT_DEFAULT): ditto.
11089         * objects/custom/custom_object.c (custom_create): ditto.
11091         * objects/network/antenna.c (render_to_store): ditto.
11093         * objects/network/computer.c (render_to_store): ditto.
11095         * objects/network/disc.c (render_to_store): ditto.
11097         * objects/network/flash.c (render_to_store): ditto.
11099         * objects/network/hub.c (render_to_store): ditto.
11101         * objects/network/modem.c (render_to_store): ditto.
11103         * objects/network/modularswitch.c (render_to_store): ditto.
11105         * objects/network/monitor.c (render_to_store): ditto.
11107         * objects/network/printer.c (render_to_store): ditto.
11109         * objects/network/rj45plug.c (render_to_store): ditto.
11111         * objects/network/scead-plug.c (render_to_store): ditto.
11113         * objects/standard/textobj.c (textobj_load): ditto.
11115         * objects/sybase/client.c (render_to_store): ditto.
11117         * objects/sybase/dataserver.c (render_to_store): ditto.
11119         * objects/sybase/ltm.c (render_to_store): ditto.
11121         * objects/sybase/repserver.c (render_to_store): ditto.
11123         * objects/sybase/rsm.c (render_to_store): ditto.
11125         * objects/sybase/stableq.c (render_to_store): ditto.
11127         * plug-ins/dxf/dxf-import.c (read_entity_text_dxf): ditto.
11129         * objects/UML/uml.h (UML_STEREOTYPE_START):
11130         (UML_STEREOTYPE_END): changes default strings.
11132 2002-01-28  Akira TAGOH  <tagoh@redhat.com>
11134         * objects/UML/stereotype.c (string_to_bracketted): fixed transaction
11135         for UTF-8 support. if GTK+ and Dia don't handle UTF-8, all of characters
11136         which is given to arguments isn't UTF-8. so don't need to convert it.
11137         if GTK+ handle UTF-8, also don't need to convert it.
11138         (strend): remove.
11139         (bracketted_to_string): fixed transaction for UTF-8 support.
11140         also start/end bracket is not necessarily 1 character. so that when use
11141         strend(), it doesn't work correctly.
11142         (string_to_stereotype): use utfchar instead of char.
11143         (remove_stereotype_from_string): ditto.
11144         (stereotype_to_string): ditto.
11146         * objects/UML/stereotype.h: ditto.
11148         * objects/UML/message.c: use utfchar instead of char for structure.
11149         (MESSAGE_CREATE_LABEL, MESSAGE_DESTROY_LABEL): remove.
11151         * objects/UML/small_package.c: use utfchar instead of char for structure.
11153         * objects/UML/realizes.c: ditto.
11155         * objects/UML/object.c: ditto.
11157         * objects/UML/large_package.c: ditto.
11159         * objects/UML/implements.c: ditto.
11161         * objects/UML/generalization.c: ditto.
11163         * objects/UML/dependency.c: ditto.
11165         * objects/UML/constraint.c: ditto.
11167         * objects/UML/component.c: ditto.
11169         * objects/UML/class_dialog.c (attributes_get_current_values):
11170         (attributes_list_new_callback, attributes_fill_in_dialog):
11171         (parameters_set_values, parameters_get_values):
11172         (parameters_get_current_values, parameters_list_new_callback):
11173         (operations_set_values, operations_get_values):
11174         (operations_get_current_values, operations_list_new_callback):
11175         (operations_fill_in_dialog, templates_set_values):
11176         (templates_get_values, templates_get_current_values):
11177         (templates_list_new_callback, templates_fill_in_dialog):
11178         fixed transaction for UTF-8 support.
11180 2002-01-27  Akira TAGOH  <tagoh@redhat.com>
11182         * objects/UML/message.c (message_draw): fixed transaction for UTF-8 support.
11184         * objects/UML/class_dialog.c (class_read_from_dialog):
11185         (class_fill_in_dialog):
11186         (attributes_get_values): ditto.
11188         * objects/UML/actor.c (actor_create): ditto.
11190         * objects/UML/class.c (umlclass_calculate_data): ditto.
11192         * objects/UML/association.c (association_apply_properties):
11193         (fill_in_dialog): ditto.
11195         * objects/UML/uml.c (uml_get_attribute_string):
11196         (uml_get_operation_string):
11197         (uml_get_parameter_string):
11198         (uml_get_formalparameter_string): use utfchar instead of char.
11200         * objects/UML/uml.h: gettextize UML_STEREOTYPE_START and
11201         UML_STEREOTYPE_END.
11203         * objects/UML/class.h: use utfchar instead of char.
11205         * lib/dia_xml.c (data_add_string): ditto.
11207         * lib/text.c (text_insert_char): fixed characters# calculation
11208         when includes multibytes character in strings.
11210 2002-01-26  Steffen Macke  <sdteffen@yahoo.com>
11212         Patch from Richard Rowell <rwrowell@bellsouth.net>:
11214         * app/lineprops_area.c:
11215         * lib/arrows.h:
11216         * lib/arrows.c: 
11217         * lib/widgets.c: added crow foot arrow and cross arrow
11218         
11219         Patch from Frank Gevaerts <frank.gevaerts@fks.be>:
11220         
11221         * plug-ins/svg/render_svg.c: fixed arcs, fill and text alignment
11223 2002-01-26  Cyrille Chepelov  <cyrille@chepelov.org>
11225         * po/update.pl (REMOVED):
11226         * po/update.sh (REMOVED):
11227         * xml-i18n-merge.in.kg (REMOVED):
11228         * xml-i18n-update.in.kg (REMOVED):
11229         * sheets/Makefile.am:
11230         * Makefile.am:
11231         * autogen.sh:
11232         * configure.in: converted from xml-i18n-tools to intltools
11234         This looks like it fixes the build bugs of the snapshot tarballs, 
11235         and it supersedes #69611.       
11237 2002-01-25  Akira TAGOH  <tagoh@redhat.com>
11239         * lib/text.c (text_insert_char): fixed characters# calculation.
11240         it's not string length.
11242         * lib/plug-ins.c (dia_plugin_info_init): when GTK_DOESNT_TALK_UTF8_WE_DO
11243         is defined, needs to convert a description to UTF-8.
11245         * app/render_gdk.c (get_text_width): fixed transaction for
11246         UTF-8 support. also should uses gdk_text_width_wc() instead
11247         of gdk_text_width().
11249         * app/render_gdk.c (draw_string): when GTK_DOESNT_TALK_UTF8_WE_DO
11250         is defined, needs to convert to locale encoding for display.
11251         Also use utfchar instead of char for argument.
11253 2002-01-24  Hans Breuer  <hans@breuer.org>
11255         * app/commands.c(edit_paste_callback and more) : 
11256         call diagram_modified(ddisp->diagram) to fix #68083
11257         (help_menu_callback) : plug a DIR leak
11259         * app/disp_callbacks.c(ddisplay_canvas_events) : handle 
11260         GTK_TALKS_UTF8_WE_DONT
11262         * app/render_gdk.c(get_text_with) : it's a bad idea to use
11263         gdk_string_with() when GTK_TALKS_UTF8_WE_DONT instead of
11264         gdk_text_width(). The length value is still questionable ...
11266         * lib/charconv.c : use functions already available in early
11267         GLIB-1.3 days whiches API hasn't changed since, to avoid
11268         version problems with the win32 build
11270         * lib/font.c : finally fix #58045 and #68208
11272         * lib/dia_xml.c (xmlDiaSaveFile) : gzdopen in binary mode
11274 2002-01-24  Akira TAGOH  <tagoh@redhat.com>
11276         * app/disp_callbacks.c (ddisplay_canvas_events): when event returned
11277         no strings, fixed transaction.
11279         * lib/charconv.h: fixed typo.
11281         * app/menus.c: fixed typo.
11283         * lib/charconv.c (charconv_utf8_strchr): remove. use uni_strchr instead.
11285         * objects/UML/object.c: attrib's type uses utfchar instead of char.
11287         * app/disp_callbacks.c (ddisplay_canvas_events): forget g_free()
11289         * lib/text.c (text_create_change): use unichar instead of char.
11291         * lib/text.c (data_add_text, data_text, apply_textstr_properties):
11292         use utfchar instead of char.
11294         * lib/text.c (text_insert_char, text_key_event): fixed transaction for
11295         UTF-8 support.
11297         * lib/charconv.c (charconv_utf8_get_char): add new function.
11299 2002-01-23  Akira TAGOH  <tagoh@redhat.com>
11301         * lib/text.c (text_delete_forward, text_delete_backward,
11302         text_split_line): fixed transaction for UTF-8 support.
11304         * lib/text.c (text_copy): when UNICODE_WORK_IN_PROGRESS is defined,
11305         strlen[] has string length for UTF-8, so has to use alloclen[].
11307         * dia.pot: remove.
11309         * .cvsignore: add dia.pot.
11311 2002-01-24  Stanislav Visnovsky  <visnovsky@nenya.ms.mff.cuni.cz>
11313         * configure.in: Added "sk" to ALL_LINGUAS.
11315 2002-01-22  Akira TAGOH  <tagoh@redhat.com>
11317         * lib/text.c (text_set_string, new_text, text_copy,
11318         text_get_string_copy, text_join_lines): use utfchar instead of gchar
11319         for strings.
11321         * lib/text.c (set_string): use charconv_utf8_strchr() instead of
11322         strchr().
11324         * lib/charconv.c (charconv_utf8_strchr): add new function.
11326         * lib/charconv.c (charconv_keyval_to_unicode): ditto.
11328         * lib/charconv.c (charconv_utf8_from_gtk_event_key): ditto.
11330         * app/disp_callbacks.c (ddisplay_canvas_events): needs to convert
11331         strings to the appropriate encoding.
11333 2002-01-22  Lars Clausen  <lrclause@cs.uiuc.edu>
11335         * app/object_ops.c (object_list_align_[hv]): Leak fix.
11337         * lib/Makefile.am (INCLUDES): Added debug flags.
11339         * app/object_ops.c: Fixed ordering problem of align equi-distant &
11340         adjacent. 
11342 2002-01-21  Akira TAGOH  <tagoh@redhat.com>
11344         * lib/font.c (font_string_width): use gdk_text_width_wc() instead of
11345         gdk_string_width().
11347         * objects/GRAFCET/boolequation.c: fixed invalid comment.
11349         * objects/UML/stereotype.c (string_to_bracketted): fixed build problem
11350         when defined UNICODE_WORK_IN_PROGRESS.
11352         * lib/dia_xml.c (data_add_string): fixed typo.
11354 2002-01-20  Akira TAGOH  <tagoh@redhat.com>
11356         * configure.in: fixed test gtk_advancement.
11358 2002-01-019  Steffen Macke  <sdteffen@yahoo.com>
11360         * plug-ins/svg/render_svg.c: fix for #69053, alignment of text
11361         exported to SVG
11363         Patch from M.C. Nelson <mcn@mani.kobayashimaru.org>: 
11365         * app/recent_files.[ch]: reworked to support GNOME, accelerators,
11366         tool tips, preferences, and arbitrarily long ~/.dia/history
11368         * app/menus.c: made 'Plugins' consistantly spelled and accelerated;
11369         removed 'Open Recent'; added new separators for recent documents on
11370         File menu.
11372         * app/interface.[ch] (interface_get_toolbox_shell): new function
11374         * app/diagram.c: added new parameter to recent_file_history_add() call
11376         * app/preferences.[ch]: added new 'Recent documents list size'
11377         preferences item
11378         
11379 2002-01-18  Akira TAGOH  <tagoh@redhat.com>
11381         * lib/font.c (font_get_gdkfont_helper): use gdk_fontset_load ().
11382         if it failed, should be used gdk_font_load ().
11384         * lib/font.c (font_data): added the font entries for CJK.
11386 2002-01-17  Steffen Macke  <sdteffen@yahoo.com>
11388         Patch from M.C. Nelson <mcn@mani.kobayashimaru.org>:
11390         * app/menus.c: replaced GDK_F1 with "F1" to fix segfault on startup
11391         
11392 2002-01-04  Cyrille Chepelov  <cyrille@chepelov.org>
11394         Patch from Martin Cracauer <cracauer@cons.org>:
11395         
11396         * app/menus.c: add missing #include <gdk/gdkkeysyms.h> (useful in the
11397         non-GNOME case ?)
11399 2002-01-01  Hans Breuer  <hans@breuer.org>
11401         * app/command.c : optional use GDI printing on windoze
11403         * app/preferences.[hc] : add option 'prefer_psprint' to 
11404         select the print engine to use (could be used for Dia/Gnome
11405         as well)
11407         * app/paginate_gdiprint.(h|cpp) : new files, which interlink the
11408         wmf plug-in with the common win32 print api. Now printing
11409         should work almost as expected from a windows program :-)
11411         * app/diagram.c app/menus.[hc] : rename _UpdatableMenuItems.delete
11412         to .edit_delete to avoid clashes with C++
11414         * app/makefile.msc : updated for GDI printing
11416         * plug-ins/wmf/wmf.cpp : some small modifications to support
11417         GDI printing. Also swap R and B channel in draw_image()
11419         * app/makefile.am : added windows only files to EXTRA_DIST
11421         * objects/uml/class.c(umlclass_set_props) : force recalculation
11422         when applying properties
11424         * lib/charconv.c lib/dia_xml.c : temporary back-ported to
11425         glib-1.3.2 (for win32) IMHO causes recent cvs introduces too
11426         many incompatible changes (and would force a gtk update)
11428         * objects/makefile.msc : don't build C-Objects which are
11429         already available as 'pure shape'
11431         * plug-ins/makefile.msc : remove diaimport from build. It was
11432         only available via mailing-list and is broken since the
11433         StdProp overhaul.
11436         Patch from Jose A Ortega Ruiz  <jaortega@acm.org>
11438         * app/preferences.[hc] : tweaked preferences.c to make 
11439         PREF_STRING work. Use it for 'diagram_tree_hidden'. Also
11440         added some more DiagramTree prefererences and their own
11441         notebook page.
11443         * app/diagram_tree.[hc] : allow to sort by object type or name
11444         and hide by type ...
11445         * app/diagram_tree_menu.[hc] : ... add respective menu entries ...
11446         * app/diagram_tree_menu_callbacks.[hc] : ... and callbacks.
11448         * app/diagram_tree_window.c : handle hidden types and window
11449         size restoring.
11451 2001-12-20  Hans Breuer  <hans@breuer.org>
11453         * plug-ins/python/Makefile.am : patch from Peter Moulder 
11454         <pmoulder@csse.monash.edu.au> to make the python plug-in
11455         compile on *nix too.
11457 2001-12-03  Cyrille Chepelov  <chepelov@calixo.net>
11459         Patch from Alan <horkana@tcd.ie>:
11461         * app/menus.c: bind the F1 shortcut to the Help/_Manual function.
11463 2001-11-20  Hans Breuer  <hans@breuer.org>
11465         * app/makefile.msc : add new diagram_tree_menu(_callbacks).obj
11467 2001-11-18  Jose A Ortega Ruiz  <jaortega@acm.org>
11469         * app/diagram_tree.[hc] : Added new functions and types for
11470         sorting diagram and objects, and attaching the popup menus.
11472         * app/preferences.h: Added more diagram tree preferences, using a
11473         DiagramTreeConfig struct in DiaPreferences. The new prefs are the
11474         height and width of the diagram tree window and the default sort
11475         orders for diagrams and objects.
11477         * app/preferences.c (prefs_data): Added new entries for the new
11478         diagram tree preferences.
11480         * app/preferences.c (prefs_tabs): New tab for diagram tree
11481         preferences.
11483         * app/diagram_tree_window.[hc] (create_diagram_tree_window): 
11484         * app/diagram_tree_window.c (diagram_tree_window_new): 
11485         * app/interface.c (create_tree_window): The diagram tree window is
11486         initialised using the DiagramTreeConfig part of prefs.
11489 2001-11-14  Jose A Ortega Ruiz  <jaortega@acm.org>
11491         * app/diagram_tree_menu.[hc]: New files. Functions to create the
11492         diagram tree popup menus.
11494         * app/diagram_tree_menu_callbacks.[hc]: New files. Callbacks for
11495         the diagram tree popup menus.
11497         * app/Makefile.am (dia_core_files): diagram_tree_menu* files
11498         added.
11500 2001-11-13  Jose A Ortega Ruiz  <jaortega@acm.org>
11502         * app/diagram_tree.c (double_click_callback, diagram_tree_new):
11503         double-clicking a diagram tree node raises the diagram window
11504         to the foreground (and, if a object node was clicked, selects the
11505         object in the diagram).
11507         * app/diagram_tree.c (select_tree_widget): selecting an object
11508         node with single click simply updates it (no raise).
11510 2001-11-08  Jose A Ortega Ruiz  <jaortega@acm.org>
11511         These changes make the diagram tree lazy: it is not created unless
11512         the diagram tree window is requested.
11513         
11514         * app/diagram_tree_window.[hc] (create_diagram_tree_window): new
11515         function for creating the tree window.
11517         * app/interface.c (create_tree_window): call
11518         create_diagram_tree_window() instead of diagram_window().
11520         * app/diagram_tree.c (diagram_tree_add, diagram_tree_remove) 
11521         (diagram_tree_update, diagram_tree_update_name) 
11522         (diagram_tree_add_object, diagram_tree_add_objects) 
11523         (diagram_tree_remove_object, diagram_tree_remove_objects) 
11524         (diagram_tree_update_object): accept a NULL tree as a nominal
11525         argument (and do nothing in this case!), so that the diagram tree
11526         is not initialised if not used.
11528         * app/diagram_tree_window.c (diagram_tree): do not create the
11529         diagram tree until diagram_window() or diagtree_show_callback()
11530         are invoked.
11532 2001-10-31  Jose A Ortega Ruiz  <jaortega@acm.org>
11533         [slightly modified and applied from Hans Breuer <hans@breuer.org>]
11535         * app/diagram_tree_window.[hc] : (new files) implementation of 
11536         the diagram tree window, a container for a diagram tree. [Removed
11537         the horizontal scroll bar glitch by disableing it]
11539         * app/diagram_tree.[hc] : (new files) implementation of the 
11540         diagram tree widget. [Don't rely on the layers GPtrArray to be
11541         NULL terminated, but use its ->len field] 
11543         * app/Makefile.am (dia_core_files): added new files
11544         diagram_tree.[hc] and diagram_tree_window.[hc]
11546         * app/interface.[hc] : (create_tree_window): this function 
11547         creates the new diagram tree window widget
11549         * app/undo.c (delete_objects_apply) (delete_objects_revert) 
11550         (insert_objects_apply) (insert_objects_revert) (group_objects_apply) 
11551         (ungroup_objects_apply) (ungroup_objects_revert): 
11552         every time that an undoable command modifies a diagram 
11553         adding/removing/(un)grouping objects, a diagram_tree_something() is 
11554         invoked to keep the diagram tree window in sync
11556         * app/properties.c (properties_apply): call to
11557         diagram_object_modified(), which updates the diagram tree window
11558         when the properties of an object are modified
11560         * app/preferences.[hc] : new "show_diagram_tree" configuration option 
11561         (whether the diagram tree window should be shown on dia startup)
11563         * app/menus.c : added '<Toolbox>/File/Diagram Tree' entry
11565         * app/diagram.h (diagram_object_modified): callback notifying of a
11566         diagram object modification
11568         * app/diagram.c (diagram_load_into): added call to
11569         diagram_tree_add() to add newly loaded diagrams to the diagram
11570         tree window
11571         (diagram_destroy): call to diagram_tree_remove() to remove a
11572         destroyed diagram from the diagram tree window
11573         (diagram_add_object): call to diagram_tree_add_object() to add an
11574         object to the diagram tree window
11575         (diagram_add_object_list): as above, but with an object list
11576         (diagram_selected_break_external): deletion of objects from the
11577         diagram is detected here, and diagram_tree_remove_object() is
11578         invoked to remove the object from the diagram tree window (it
11579         would be nice to have a diagram_remove_object() in the Diagram
11580         interface)
11581         (diagram_set_filename): update the diagram tree window when a
11582         diagram's filename changes
11584         * app/commands.c (file_new_callback): added call to
11585         diagram_tree_add() to add newly created diagrams to the diagram
11586         tree window
11588         * app/app_procs.c (app_init): added call to create_tree_window()
11590         * app/makefile.msc : updated
11592 2001-10-28  Hans Breuer  <hans@breuer.org>
11594         * app/preferences.h (DiaPreferences): 
11595         * app/preferences.c (prefs_data): new "show_diagram_tree"
11596         configuration option (whether the diagram tree window should be
11597         shown on dia startup)
11599         * app/menus.c: added the new "<Toolbox>/View/Diagram tree" menu
11600         entry (both for GNOME and gtk)
11602         * app/diagram.h (diagram_object_modified): callback notifying of a
11603         diagram object modification
11605         * app/diagram.c (diagram_load_into): added call to
11606         diagram_tree_add() to add newly loaded diagrams to the diagram
11607         tree window
11608         (diagram_destroy): call to diagram_tree_remove() to remove a
11609         destroyed diagram from the diagram tree window
11610         (diagram_add_object): call to diagram_tree_add_object() to add an
11611         object to the diagram tree window
11612         (diagram_add_object_list): as above, but with an object list
11613         (diagram_selected_break_external): deletion of objects from the
11614         diagram is detected here, and diagram_tree_remove_object() is
11615         invoked to remove the object from the diagram tree window (it
11616         would be nice to have a diagram_remove_object() in the Diagram
11617         interface)
11618         (diagram_set_filename): update the diagram tree window when a
11619         diagram's filename changes
11621         * app/commands.c (file_new_callback): added call to
11622         diagram_tree_add() to add newly created diagrams to the diagram
11623         tree window
11625         * app/app_procs.c (app_init): added call to create_tree_window()
11627 2001-10-28  Hans Breuer  <hans@breuer.org>
11629         * plug-ins/python/pydia-property.c : apparently I missed
11630         to commit this last time. Now it has some more SetAttr
11631         support (apply from property)
11633         * plug-ins/python/pydia-properties.h : added PyDiaProperty_Check
11635         * plug-ins/python/pydia-text.[ch] : new files
11637 2001-10-14  Hans Breuer  <hans@breuer.org>
11639         * lib/charconv.c : g_locale_to_utf8() does not handle NULL
11640         strings. Use g_strdup() for these.
11642         libxml2 does not produce 'any extra indentation when saving a tree'
11643         [libxml2-2.4.2/doc/upgrade.html] anymore, which was the default with
11644         libxml(1). To get human readable XML some extra tweaking is required.
11645         It is enabled by setting 'pretty_formated_xml' to 'true' in 'diarc'.
11646         * lib/dia_xml.[hc] : provide and use 'DIAVAR pretty_formated_xml'
11647         * app/preferences.[ch] : initialize 'pretty_formated_xml'
11649         * lib/libdia.def : updated externals
11651         * lib/properties.h : add prototype for prop_list_from_single ()
11653         * plug-ins/makefile.msc : build metapost plug-in
11655         * plug-ins/metapost/render_metapost.c : msvc does not like
11656         switch labels without operation 'default: }'. Added a noop.
11658         * plug-ins/python/pydia-text.[hc] : (new files) wrap DiaText
11659         * plug-ins/python/diamodule.c : added PyDiaText 
11660         * plug-ins/python/makefile.msc : dito. Also added LIBXML_CFLAGS.
11661         Although the python plug-in does not use libxml at all, the
11662         headers are required to use the lib/prop*.h headers
11664         * plug-ins/python/pydia-diagramdata.c : added wrappers for
11665         update_extents and get_sorted_selected (should I duplicate
11666         more functions from PyDiaDiagram or should they be moved?)
11668         * plug-ins/python/pydia-properties.c : allow to set (some) properties
11669         through the dictionary api
11670         * plug-ins/python/pydia-property.h : declare PyDiaProperty_ApplyToObject
11671         * plug-ins/python/pydia-property.c : implement it (currently only
11672         string properties can be set)
11674         Reimplement PyDiaProperty_GetAttr by means of the new StdProp api.
11675         Quoting myself: 'Still not convinced that this is better than an 
11676          integral property->type and some casting ...
11677          It is trading a straightforward 40 lines switch statement to
11678          this nice 'type safe' function mapping (about 125 lines)'
11679         (But now it works again, better than changing the News file :)
11680         
11681 2001-10-14  Cyrille Chepelov  <chepelov@calixo.net>
11683         patch from <robert.young@dsto.defence.gov.au>: 
11684         * objects/UML/component.c: remember to set font in UML component
11685         object (fixes #62132)   
11687 2001-10-02  Lars Clausen  <lrclause@cs.uiuc.edu>
11689         * plug-ins/metapost/metapost.c: 
11690         * plug-ins/metapost/Makefile.am:
11691         * plug-ins/metapost/render_metapost.c:
11692         * plug-ins/metapost/render_metapost.h:
11693         Metapost renderer from Chris Sperandio
11695 2001-09-14  Hans Breuer  <hans@breuer.org>
11697         * app/render_gdk.c : reflect the fact, that GTK already talks
11698         UTF8 on win32, fixes #59982, #56100, (#55992 ?) ...
11700         * lib/font.c : 
11701         * app/render_libart.c : trying to fix #58045 but it appears
11702         to be an Gdk/win32, too. 
11704         * lib/charconv.c : handle utf8 conversion with the help of
11705         glib-1.3 even in the !HAVE_UNICODE case.
11707         * lib/dia_xml.c : reduce complaing about missing encoding, by
11708         detecting if the default (utf8) would break the file.
11710 2001-09-13  Cyrille Chepelov  <chepelov@calixo.net>
11712         * lib/charconv.c: (get_local_charset): at least please try to not 
11713         silently change the logic, while avoiding crashes. 
11715         * lib/font.c: (suck_font): put a #error, we have a nasty something
11716         to fix there before we switch to Gtk 2.0.
11717         
11718 2001-09-09  Hans Breuer  <hans@breuer.org>
11720         * **/makefile.mingw : Approach to compile Dia with mingw.
11721         Compiling mostly works but running does not (yet) ... 
11723         * lib/geometry.h : 
11724         - use G_OS_WIN32 instead of _MSC_VER to drag in isinf, etc. definitions. 
11725           Apparently mingw needs it too.
11726         - enable 'normalization' of a null verctor. Otherwise the beziergon
11727           bounding box calculation would be broken at least with msvc. What's
11728           the mathematical correct result of 0.0/0.0 ?
11730         * lib/dia_xml.c : isinf() for mingw too.
11732         * lib/dia_dirs.c : use MAX_PATH instead of _MAX_PATH (works for mingw 
11733         and msvc)
11735         * lib/charconv.c : still crashes if strcmp(NULL, "UTF-8"). 
11736         Please don't do it.
11738         * lib/font.c : Trying to reflect that GTK_TALKS_UTF8_WE_DONT
11740         * lib/libdia.def : updated externals. Apparently mingw needs
11741         them to produce the right mangling.
11743         * plug-ins/shape/shape-exports.c : get prototypes for xmlStrdup
11744         and xmlDiaSaveFile
11746 2001-09-08  Wang Jian  <lark@linux.net.cn>
11748         * configure.in(ALL_LINGUAS): Renamed zh_CN.GB2312 to zh_CN
11750 2001-09-07  Cyrille Chepelov  <chepelov@calixo.net>
11752         * lib/dia_xml_libxml.h:
11753         * lib/dia_xml.c: (data_add_string), (xmlDiaSaveFile): Duplicated
11754         libxml1's code, to rework the output file before it gets committed
11755         to disk. This is rubbish, and will be removed when libxml2
11756         switches from discouraged to mandatory. 
11757         All in all, this fixes #60152. 
11758         
11759         * lib/charconv.h: 
11760         * lib/charconv.c: (charconv_unichar_to_utf8):
11761         made the type of the input parameter explicitly an unsigned long.
11763         * configure.in: Added a check for libz (we must now include it
11764         explicitly, for xmlDiaSaveFile).
11765         
11766         * app/load_save.c: (diagram_data_save):
11767         * lib/plug-ins.c: (ensure_pluginrc), (info_fill_from_pluginrc),
11768         (dia_pluginrc_write):
11769         * plug-ins/shape/shape-export.c: (new_shape_renderer),
11770         (end_render), (draw_string):
11771         * plug-ins/svg/render_svg.c: (new_svg_renderer), (end_render),
11772         (draw_string):
11774         Made sure we always write UTF-8 XML files, and through
11775         xmlDiaSaveFile().
11777         * NEWS: documented that fact.
11778         
11779 2001-09-07  James Henstridge  <james@daa.com.au>
11781         * configure.in (found_libxml): refactor the check for libxml a
11782         little so that it handles finding both libxml1 and 2 better.
11784 2001-09-03  Cyrille Chepelov  <chepelov@calixo.net>
11786         * app/app_procs.c: removed a spurious } which caused a compilation
11787         error in the (!HAVE_GNOME && HAVE_POPT_H) case
11789         * lib/charconv.c: (get_local_charset): some versions of iconv(1)
11790         don't know what ANSI X3.4-1968 is. I didn't know until this day,
11791         but it's just plain old ASCII. Added a check to shield the poor
11792         XML library.
11794         Patches from <robert.young@dsto.defence.gov.au>:
11796         * lib/text.c: (text_calc_boundingbox) Bounding box now calculates the
11797         width and height of text before calculating bounds. Fixes #59928
11799         * app/preferences.c: Moved grid related items into Grid Tab.
11800         
11801 2001-09-02  Cyrille Chepelov  <chepelov@calixo.net>
11803         * app/interface.c: (create_zoom_widget): connected one more signal
11804         to the Zoom selector combo's list. Fixes #59879.
11806         * app/app_procs.[ch]: (app_init) (do_convert)
11807         (build_output_file_name): brought back into the main executable
11808         the rare useful bits of the ill-fated diaconv. This means we have
11809         one new feature : --export-to-format (-t), which should make
11810         writing conversion scripts easier, and a crude implementation of
11811         -t and -e for the poptless argument parsing, which means the Win32
11812         port should be able to take advantage of it (that should make
11813         resolving #58197 possible).
11815         * app/diaconv.c: kept the poor duck compiling (but that's about
11816         it).
11818         * plug-ins/svg/render_svg.c: updated the SVG DTD header (I hope
11819         I've got it right).
11821         * NEWS: updated about the new feature above, and documented the 
11822         "missing encoding specification" complaint. 
11823         
11824 2001-09-01  Abel Cheung  <maddog@linux.org.hk>
11826         * configure.in: Rename zh_TW.Big5 -> zh_TW in ALL_LINGUAS.
11828 2001-09-01  Cyrille Chepelov  <chepelov@calixo.net>
11830         * objects/standard/bezier.c: used g_new0 instead of g_new, to take
11831         care of #59837.
11833 2001-09-01  James Henstridge  <james@daa.com.au>
11835         * */Makefile.am: various changes to include missing files, and fix
11836         sheets dir to handle building with builddir != srcdir.
11838         * autogen.sh: unconditionally pass the --enable-maintainer-mode
11839         and --enable-db2html flags so that builds from CVS work correctly.
11841         * configure.in: increment version number.  Also add an
11842         --enable-db2html flag.  Without the flag, db2html won't be run (if
11843         the flag is passed and db2html is not present, do nothing).
11845 2001-08-30  Cyrille Chepelov  <chepelov@calixo.net>
11847         * lib/poly_conn.c: (polyconn_copy): it's a wonder this routine
11848         even compiled. It's really too bad there is no lint tool easily
11849         available (or a more cautious, pedandic, paranoid and verbose
11850         compiler). Anyway, this fixes #59662. (this didn't affect 0.88.x)
11852 2001-08-27  Cyrille Chepelov  <chepelov@calixo.net>
11854         * app/load_save.c:
11855         * dia/lib/plug-ins.c: use g_strdup() instead of strdup(). Patch
11856         from <robert.young@dsto.defence.gov.au>. Fixes #59591.
11858         * app/menu.c: added ellipsis(...) to diagram properties menu item.
11859         * app/dia-props.c: diagram properties dialog contents did not
11860         represent current diagram settings.
11861         * app/dia-props.[ch]:
11862         * app/display.c: diagram properties contents now follows currently
11863         selected diagram.
11864         Patch also from <robert.young@dsto.defence.gov.au>, fixes #59409.
11866         * AUTHORS: added Robert Young.
11867         
11868 2001-08-27  Cyrille Chepelov  <chepelov@calixo.net>
11870         * app/modify_tool.c: (modify_button_release): Patch from
11871         <robert.young@dsto.defence.gov.au>. Fixes the remaining bit from
11872         #59090: if selection dragging was released outside of the window, 
11873         artifacts of the selection box remained.
11875 2001-08-25  Cyrille Chepelov  <chepelov@calixo.net>
11877         * Objects/custom/shape_info.c: added missing #include <xmlmemory.h>
11879 2001-08-19  Cyrille Chepelov  <chepelov@calixo.net>
11881         * configure.in:
11882         * sheets/Makefile.am: prepared the terrain for the Version of
11883         xml-i18n-tools Which Comes After 0.9 (and which will feature at
11884         last a sane behaviour with XML files). Some reasonible delay
11885         before enforcing that version *will* be given.
11887         * xml-i18n-merge.in.kg: included the current CVS xml-i18n-merge.in
11888         
11889         * lib/plug-ins.c: <xmlmemory.h> defines xmlFree(), otherwise it
11890         becomes a nonexistent symbol.
11891         
11892 2001-08-18  Hans Breuer  <hans@breuer.org>
11894         * app/app_procs.c : made it compile without ENABLE_NLS
11896         * app/diap_callbacks.c : strcmp isn't guaranteed to work
11897         with NULL pointers
11899         * app/load_save.c :
11900         * lib/plug-ins.c : 
11901         * objects/custom/shape_info.c : avoid mixing allocators and dealocators. 
11902         It has to be :
11903                 xmlGetProp, ... -> xmlFree
11904                 malloc, strdup -> free
11905                 g_new, g_malloc, g_strdup - > g_free
11907         * app/win32print.c : some more error checking, still not
11908         working on Win9x
11910         * lib/charconv.c : get_local_charset is used even with !HAVE_UNICODE
11912         * lib/dia_xml.c : msvc still has no unistd.h
11914         * lib/dia_xml.c :
11915         * lib/sheets.c : temporary resolved libxml include brokeness
11917         * plug-ins/python/pydia-*.c : reflect Font and StdProp api
11918         changes. Compiles again, but doesn't do anything useful anymore.
11919         (see THE_PROP_TYPE_IS_INTEGRAL)
11921         * **/makefile.msc : updated to use LIBXML2
11923         * lib/libdia.def : reflect api changes
11925 2001-08-17  Cyrille Chepelov  <chepelov@calixo.net>
11927         * config.h.win32: added defines telling that gtk speaks UTF8.
11928         Hans, I believe this reflects what GTK on Win32 does.
11930         * app/app_procs.c: if GTK talks UTF8, we'll feed it UTF8 localised
11931         strings.        
11932         * lib/prop_inttypes.c: 
11933         * lib/prop_text.c:
11934         * lib/prop_widgets.c: fixed typos in the GTK_TALKS_UTF8_WE_DONT
11935         code path.
11936         
11937         * lib/plug-ins.c: (dia_register_plugins_in_dir): If there is a
11938         trailing // (or whatever (G_DIR_SEPARATOR * 2) is), a recursive
11939         search for plug-ins is done.
11940         * app/Makefile.am: made app/run_dia.sh use the // capability. No
11941         need to update this anymore if we get a new plug-in library (or
11942         remove one).
11944         * lib/dia_xml.c: #include <unistd.h> was missing.
11945         
11946         * lib/properties.h: 
11947         * lib/proplist.c: (pdtpp_defaults): Added a new flag,
11948         PROP_FLAG_NO_DEFAULTS. Will be used in the "automatic defaults"
11949         support.        
11951 2001-08-16  Cyrille Chepelov  <chepelov@calixo.net>
11953         * sheets/civil.sheet: removed duplicate "Danish" entries.
11955         * autogen.sh:
11956         * configure.in: 
11957         * .cvsignore:
11958         * sheets/Makefile.am: 
11959         * po/POTFILES.in:
11960         * Makefile.am: applied the xml-i18n-tools README's instructions.
11962         * po/(da de fr hu nl nn no sl).po: merged the translations from
11963         the sheet files into the .po files. I hope I haven't mixed
11964         languages...
11965         * sheets/*.sheet (REMOVED):
11966         * sheets/*.sheet.in (NEW): moved the sheet files sans
11967         translations into .sheet.in files. 
11968         
11969         * sheets/xml-i18n-unicodify: (NEW) included from xml-i18n-tools,
11970         because we don't yet want to force all translators to work using
11971         UTF-8 editors. We'll want to do that sometime (sooner rather than
11972         later). Okay, I sing a slightly different tune in po/ChangeLog...
11974         * dia.desktop (REMOVED):
11975         * dia.desktop.in (NEW): used also the x18t infrastructure for
11976         this too.
11978         * xml-i18n-update.in.kg (NEW): This one will stay in CVS until an
11979         "official" version of x18t with support for .sheet files is available.
11980         * xml-i18n-merge.in.kg (NEW): This one will stay in CVS until an
11981         "official" version of x18t which doesn't corrupt UTF-8 data in XML
11982         is available.
11983         
11984         ** yes, we are now using xml-i18n-tools to manage the sheet
11985         translations. For the Win32 build, Nemo stores snapshots of
11986         translated strings next to the CVS snapshots. **
11988         * sheets/checktrans.py: suddenly, some sheets have lots of
11989         translations (objects which existed before sheets, mostly).
11990         Adapted the formatting.
11992         * po/README (REMOVED): this is obsolete ! It was ignored, anyway.
11994         * app/display.[ch]: (ddisplay_autoscroll), (ddisplay_scroll):
11995         * app/modify_tool.[ch]: (modify_motion): A (modified) patch from
11996         <robert.young@dsto.defence.gov.au>, to fix #59090.
11998         * app/display.c: (ddisplay_scroll): While at it, added some
11999         margin, so that autoscrolling can happen within a margin outside
12000         the diagram's extents.
12002         * app/tool.[ch]: 
12003         * app/interface.c:
12004         * app/disp_callbacks.c: Robert "forced" me to go when I usually
12005         don't, namely the app/ directory. So while I was there, I
12006         scratched a long-time itch. If no object has focus, pressing the
12007         space bar will select back the tool which was selected before the 
12008         current one (I find this especially useful with "reset after create" !)
12009         
12010         * lib/proplist.c: (prop_list_from_single): Renamed
12011         prop_list_singleton() to avoid confusion with the Singleton
12012         pattern (which it definitely is not).
12013         
12014         * lib/propobject.c: (object_prop_by_name_type),
12015         (object_prop_by_name): The "flags" parameter was not necessary.
12016         These don't return synthetic properties, but properties built from
12017         a real property description list; therefore, we don't call
12018         make_new_prop() but use the existing property descriptor, which
12019         has perfectly valid (and meaningful) flags.
12021         * lib/proplist.c: (pdtpp_synthetic), (pdtpp_from_object): These
12022         new predicates better reflect the reason why properties exist when
12023         they're created by make_new_prop() or object_prop_by_name().    
12025         * lib/propobject.c: (object_prop_by_name_type), (object_prop_by_name):
12026         * lib/prop_basic.c: (make_new_prop): used the new reasons instead
12027         of pdtpp_true().
12029         * lib/properties.h: reflects all the above changes.
12031         * objects/SADT/arrow.c:
12032         * objects/SADT/annotation.c:
12033         * sheets/SADT.sheet: minor renamings to better match FIPS 183's
12034         IDEF0 terminology.
12035         
12036 2001-08-15  Cyrille Chepelov  <chepelov@calixo.net>
12038         * lib/properties.h:
12039         * lib/proplist.c: (prop_list_singleton):
12040         * lib/propobject.c: (object_prop_by_name_type), (object_prop_by_name):
12041         Added these, to simplify interactions of plug-ins with the StdProp
12042         core.
12044         * lib/Makefile.am:
12045         * lib/dia_xml.h:
12046         * lib/dia_xml_libxml.h (NEW): 
12047         * app/load_save.c:
12048         * lib/dia_xml.c:
12049         * lib/plug-ins.c:
12050         * lib/sheet.c:
12051         * objects/custom/shape_info.c: A few prototypes were causing
12052         #include hell, because we generally attempt to not pull the whole
12053         libxml header set when we include dia_xml.h. Moved those
12054         prototypes away for the rare cases they're necessary.
12055         
12056 2001-08-15  Hans Breuer  <hans@breuer.org>
12058         * lib/font.c : made LARS_TRACE_MESSAGES Standard C conform
12060         * lib/libdia.def : 
12061         * lib/makefile.msc : updated
12063         * lib/prop_basic.c : __FUNCTION__ is a gcc extension. Please
12064         use G_GNUC_FUNCTION instead.
12066         * lib/prop_inttypes.c : include <stdlib.h> for strtol()
12068         * objects/sadt/annotation.c : disable TEMPORARY_EVENT_TEST for
12069         msvc instead of cleaning missing includes
12071         * plug-ins/wmf/wmf.cpp :
12072         * plug-ins/wmf/wmf_gdi.h : fixed for Font to DiaFont renaming
12074 2001-08-15  Cyrille Chepelov <chepelov@calixo.net>
12076         * app/app_procs.c:
12077         * app/load_save.c:
12078         * lib/dia_xml.c:
12079         * lib/plug-ins.c:
12080         * lib/sheet.c:
12081         * objects/custom/shape_info.c:
12082         * plug-ins/shape/shape-export.c:
12083         * plug-ins/svg/render_svg.c: used the libxml1/libxml2
12084         compatibility macros as taught by http://xmlsoft.org/upgrade.html;
12085         removed xmlKeepBlanksDefault(0) in favour for proper
12086         xmlIsBlankNode() testing. Lots of other fixups to use the
12087         "libxml1.5" (libxml2 parser embedded in recent libxml1), and to
12088         make libxml1 output correct files.
12090         * configure.in: use libxml2 (>= 2.3.9) if it's found, or
12091         libxml1 (>= 1.8.14). Exactly one of these must be installed (devel
12092         packages). If both devel packages are found, the build will stop 
12093         (Fredrik: please add a Build-Conflicts: on libxml2-dev for the moment) 
12095         * lib/bezier_conn.c: (bezierconn_init): Lars, you forgot to
12096         allocate the first handle :-)
12097         
12098         * lib/object.c: (object_init): <gratuitous>g_new() used instead of
12099         a cast and a sizeof.</gratuitous>
12101         * objects/custom/custom_object.c: (custom_copy): don't call
12102         text_get_attrbutes if the shape has no text...
12103         (custom_update_data): The info->resize_with_text code was a bit
12104         directive; basically, the shape's bounding box was forced to be 
12105         proportional to the text's bounding box.... This fixes #57187.
12106         
12107         * objects/custom/shape_info.c: (load_shape_info): Set an obvious
12108         default for info->aspect_ratio; unobfuscated a line about
12109         info->resize_with_text;
12110         
12111 2001-08-15  Cyrille Chepelov <chepelov@calixo.net>
12113         * lib/properties.h: added comments next to the PROP_TYPEs to tell
12114         which C Property subclass to use.
12115         
12116         * plug-ins/dxf/dxf-import.c: (read_entity_line_dxf): Removed the
12117         cast-ridden form of setting properties in a list, in favour for
12118         the "local pointers" form. I'll take any better offer...
12120 2001-08-14  Cyrille Chepelov <chepelov@calixo.net>
12121         
12122         * lib/font.c: fprintf(...) --> fprintf(format...)
12124         * configure.in: added a disabled versioned test for glib.
12125         * lib/prop_geomtypes.c: (bezpointprop_load), (bezpointprop_save),
12126         (bezpointarrayprop_load), (bezpointarrayprop_save): replaced
12127         g_critical() with a simple g_error(). Proper fix is to implement
12128         that stuff. 
12130         * lib/properties.h: PROP_STD_TEXT is a PROP_TYPE_TEXT, not a
12131         PROP_TYPE_STRING.
12132         
12133         * lib/properties.h:     
12134         * lib/propdesc.c: (prop_desc_list_calculate_quarks):
12135         * lib/proplist.c: (find_prop_by_name_and_type):
12136         * lib/prop_basic.c: (make_new_prop), (initialize_property):
12137         * lib/propoffsets.c: (do_set_props_from_offsets),
12138         (do_get_props_from_offsets), (prop_offset_list_calculate_quarks):
12139         Added a type_quark member to PropDescription, Property and
12140         PropOffset. Used it to implement a safety in
12141         do_[sg]et_props_from_offsets().
12142                 
12143         * objects/flowchart/diamond.c: the diamond's text was not saved,
12144         and thus not even copied (c&p).
12145         * objects/standard/textobj.c: ditto.
12147         Most of the above changes thanks to Robert Young's testing. Thanks !
12148         
12149 2001-08-14  Kjartan Maraas  <kmaraas@gnome.org>
12151         * sheets/*.sheet: Added some Norwegian translations (both nynorsk
12152         and bokmÃ¥l).
12153         
12154 2001-08-13  Cyrille Chepelov  <chepelov@calixo.net>
12156         * lib/proplist.c (prop_list_from_descs): added a call to
12157         prop_desc_list_calculate_quarks(). (find_prop_by_name_and_type):
12158         too embarrassing to tell.
12159         
12160         * lib/propdesc.c (prop_desc_list_calculate_quarks): converted the
12161         while loop to a for loop, for symmetry with
12162         prop_offset_list_calculate_quarks().
12164         * lib/geometry.h: new inline function, rectangle_equals.
12166         * lib/diagramdata.[ch]: refactored a bit the diagram extents
12167         computation logic, and changed it to always be the union of the
12168         visible layers' extents. This should close #58882 (Debian
12169         #107167), and fixes #55498.
12171         * app/display.c: made the initial visible box more coherent with
12172         the diagram being loaded's extents.
12174         * app/prop_attr.c: don't set the font (from offset) if font_data
12175         is NULL. Two brainos in colorprop_load() and fontprop_load().
12176         
12177 2001-08-13  Cyrille Chepelov  <chepelov@calixo.net>
12179         * lib/properties.[ch]: split in a lot of pieces: 
12181         * lib/prop_*.[ch] (NEW): all property types are now first-class
12182         objects, inheriting from the original abstract Property type.
12183         * lib/propdesc.c (NEW): property description handling routines
12184         * lib/propoffsets.c (NEW): property offset handling routines
12185         * lib/proplist.c (NEW): property list handling routines
12186         * lib/propobject.c (NEW): property list <-> object routines
12187         * lib/propregistry.c (NEW): holds the PropertyType-->PropertyOps
12188         relations.
12189         * lib/propinternals.h: prototypes for stuff not usually needed by 
12190         the outside of StdProps.
12191         * lib/Makefile.am: a lot of new files have been added...
12193         THE ABOVE CHANGES ARE MAJOR CHANGES AND AFFECT THE WHOLE TREE, IN
12194         BOTH INTERFACES AND RUN-TIME STABILITY.
12196         * lib/plug-ins.h: bumped up DIA_PLUGIN_API_VERSION
12197         
12198         * lib/object.h: removed the incestuous relationship with
12199         properties.h' contents. Now a Property list is a GPtrArray -->
12200         object interface change !
12202         * app/app_procs.c/app_init(): removed a disabled call to a
12203         non-existent routine. Added a call to stdprops_init().
12204         
12205         * objects/Makefile.am: disabled the construction of EML. I'm not
12206         touching these until a certain issue is solved (or this module
12207         removed).
12208         * app/group.c:  
12209         * objects/**/*.c except objects/EML/*: adapted all stdprop-using 
12210         objects to the interface changes.
12211         
12212         * app/disp_callbacks.c: killed a warning.
12213         * lib/dia_xml.[ch]: sprinkled "const" modifiers. 
12215         * app/commands.c: 
12216         The macros PROP_VALUE_* have disappeared. Adapted to using the new 
12217         interface.
12219         * plug-ins/dxf/dxf-import.c: 
12220         * plug-ins/xfig/xfig-import.c: 
12221         PROP_VALUE_* macros have been removed. Converted to the new API.
12223         * plug-ins/python/**/*: I gave up converting this; I can't
12224         compile --with-python (problems with object.h defined both by us
12225         and by Python). I'll gladly help whomever cares to fix it !
12226         (or, fix it myself if someone tells me how to compile it).
12227         
12228         * configure.in: added the UNICODE-related progress defines.
12229                 
12230         * configure.in:
12231         * lib/geometry.h: On Solaris and perhaps other systems, finite()
12232         is defined in ieeefp.h rather than in math.h. Patch from Andrew
12233         Halper <ashalper@acm.org> with further modifications, isinf() is
12234         provided by -lsunmath (sunmath.h).
12235         
12236         * lib/font.c: conditionally disabled Lars' debugging messages.
12237         Bracketed the definition of DiaFontFamily with #ifdef HAVE_FREETYPE.
12238         
12239 2001-08-11  Lars Clausen  <lrclause@cs.uiuc.edu>
12241         * lib/bezier_conn.h: 
12242         * objects/standard/bezier.c (bezierline_create): 
12243         * lib/bezier_conn.c (bezierconn_init): 
12244         Preparations for use of userdata for bezier lines.
12245         
12246         * objects/standard/polygon.c: 
12247         * objects/standard/create.h:
12248         * lib/polyshape.c:
12249         * lib/polyshape.h:
12250         * plug-ins/xfig/xfig-import.c:
12251         Use of user_data for polygon as well, including adding
12252         polyshape_set_points.  Include file for non-interactive 
12253         creation of standard objects, objects/standard/create.h
12255 2001-08-10  Lars Clausen  <lrclause@cs.uiuc.edu>
12257         * app/render_gdk.c: 
12258         * app/render_gdk.h: 
12259         * lib/font.c:
12260         * lib/font.h:
12261         * lib/widgets.c:
12262         More preliminary freetype support.  Not at all functional, crashes
12263         when rendering.
12265         * lib/poly_conn.h: 
12266         * lib/poly_conn.c: 
12267         * objects/standard/polyline.c: 
12268         Support for creating polyline objects with more than two points.
12269         This includes an extra function and a prototype change in the
12270         poly_conn lib object.
12272         * lib/object.c (object_copy): Fixed memory leak of handles and
12273         connections.
12275 2001-08-08  Abel Cheung  <maddog@linux.org.hk>
12277         * dia.desktop: added traditional Chinese strings
12279 2001-08-04  Cyrille Chepelov  <chepelov@calixo.net>
12281         * NEWS: updated to reflect build-time dependencies.
12283         * lib/properties.[ch]: wrote get_prop_descriptions() as a wrapper
12284         around obj->ops->describe_props(obj). Quarks are none of an
12285         object's business in the general case... 
12286         * lib/text.c: Added an apply_textattr_properties() function to
12287         factor out some common code related to applying a dialog's text
12288         attribute properties to a (Text *) which wasn't edited there. 
12289         Ditto for textstr, for the string part of an objet.
12291         * objects/GRAFCET/action.c:
12292         * objects/SADT/annotation.c:
12293         * objects/SADT/box.c: used apply_textattr_properties().
12294         
12295         * objects/UML/actor.c: 
12296         * objects/UML/branch.c:
12297         * objects/UML/component.c:
12298         * objects/UML/constraint.c:
12299         * objects/UML/small_package.c:
12300         * objects/UML/state.c:
12301         * objects/UML/usecase.c:
12302         * objects/UML/large_package.c:
12303         * objects/UML/note.c:
12304         * objects/UML/node.c:
12305         * objects/UML/message.c:
12306         * objects/UML/classicon.c:
12307         * objects/UML/object.c:
12308         * objects/UML/realizes.c:
12309         * objects/UML/dependency.c:
12310         * objects/UML/implements.c:
12311         slim-fast(tm) cure using more StdProps, and UTF-8 audit.
12312         (most objects were already using StdProps to some extent ; this
12313         systematises usage and removes some dead wood). 
12314         
12315         * objects/UML/stereotype.[ch]: use UTF-8 internally. const police work.
12316         * objects/UML/uml.[ch]: audited for UTF-8.
12318         * objects/UML/class.c: the UML_STEREOTYPE_* strings defined by
12319         uml.h can be in UTF-8... this code isn't yet ready. Duplicating a
12320         private (ISO-8859-1) definition.
12321         
12322         * lib/charconv.c: Added a warning if we didn't run
12323         nl_langinfo(CODESET) but rely instead on a hardcoded default.
12324         
12325 2001-08-02  Cyrille Chepelov  <chepelov@calixo.net>
12327         * lib/diamenu.h:
12328         * app/disp_callbacks.c: added a way for an object to cause an
12329         already realised menu to be destroyed (for instance if it changes
12330         too much).
12332         * objects/custom/custom_object.c: used the above to fix #55073.
12334 2001-08-01  Lars Clausen  <lrclause@cs.uiuc.edu>
12336         * configure.in: Remove 2.50 prereq.
12338 2001-07-30  Cyrille Chepelov  <chepelov@calixo.net>
12340         * po-checktrans.py: under some circumstances, there was one column 
12341         more than what was supposed to be, thus breaking the formatting.
12342         
12343 2001-07-29  Cyrille Chepelov  <chepelov@calixo.net>
12344         
12345         * objects/SADT/annotation.c: forgot to add a #include <stdlib.h>
12347         * NEWS: updated with new stuff since 0.88
12349         * shapes/network/antenna.shape: the text was misplaced ; fixed.
12351         * shapes/network/firewall.(shape|xpm) (NEW): a brick-wall looking
12352         firewall router (upon request from Cyril Lacoux
12353         <clacoux@easter-eggs.com>)
12355         * configure.in (didn't rename to configure.ac): autoconf 2.50
12356         constructs were used ; added an AC_PREREQ call to guard against
12357         older autoconfs.
12358         
12359 2001-07-27  Cyrille Chepelov  <chepelov@calixo.net>
12361         * lib/properties.c: minor clean-ups with the event delivery code.
12363         * EML/instantiation.c: brought this object back from stone and ice
12364         age.    
12366         * app/diaconv.c(NEW): added a command-line conversion tool. Still
12367         lacks a man page and correctness. In fact, it doesn't work. Please
12368         see #58196 if you want to finish it.
12369         
12370         * lib/message.[ch]: redefined things a little so that a different
12371         message_internal routine could be passed.
12372         applications can use that to fit themselves to the display model.
12374 2001-07-26  Cyrille Chepelov  <chepelov@calixo.net>
12376         * objects/SADT/box.c: 
12377         * objects/GRAFCET/action.c: spelling in property descriptors (name
12378         field...)
12379         * objects/SADT/annotation.c: ditto, plus a temporary test of the
12380         event delivery code (try to click on the "click me !" button !).
12382         * app/group.c: 
12383         * lib/properties.[ch]: improved (fixed) support for group event 
12384         handlers. Fixed various things from yesterday's code to make it
12385         not too obviously crash.
12387 2001-07-26  Cyrille Chepelov  <chepelov@calixo.net>
12389         * app/group.c: added delivery of events to the first member of the
12390         group which is able to process it.
12392         * lib/properties.c(prop_desc_lists_intersection): properties
12393         don't match if they don't have identical event handler.
12394         * lib/properties.h: simplified the PropEventHandler signature.
12396         Event delivery code is still untested so far, but should be
12397         lurking harmless.
12398         
12399 2001-07-25  Cyrille Chepelov  <chepelov@calixo.net>
12401         * lib/properties.[ch]: Added (untested !) property event handler
12402         capability. Added a new PROP_TYPE_BUTTON, for the purpose of
12403         generating such events. This stuff compiles, and should lurk
12404         around silently as long as you don't declare property descriptors
12405         with events (AFAICT).
12406         In object_create_props_dialog() and friends:
12407         attached a single structure with lots of data instead of lots of
12408         little attachments of data to the dialog widget.
12409         
12410         * lib/object.h: fixed mild typedef breakage introduced by the above.
12412 2001-07-17  Lars Clausen  <lrclause@cs.uiuc.edu>
12414         * lots of files: Changed Font to DiaFont
12415         * */Makefile.am: Added FREETYPE_LIBS
12416         * plug-ins/xfig/xfig-export.c: Improved (working:) color handling
12418 2001-07-13  Kjartan Maraas  <kmaraas@gnome.org>
12420         * configure.in: Added "nn" to ALL_LINGUAS.
12421         
12422 2001-07-09  Alex Larsson  <alexl@redhat.com>
12424         * app/disp_callbacks.c:
12425         Add gdk_im_ready() calls to XIM code.
12427 2001-07-04  Cyrille Chepelov  <chepelov@calixo.net>
12429         * lib/properties.[ch]: splitted prop_get_widget() into
12430         prop_get_widget() (gives a widget but doesn't fill it) and 
12431         prop_reset_widget() (fills an existing widget with a property's value).
12433         * lib/widgets.[ch]: const enforcement police work.
12435         * shapes/network/antenna.shape: added a connection point at top,
12436         upon request from <Emmanuel.Quemener@cri.ens-cachan.fr>.
12437         
12438 2001-06-25  Cyrille Chepelov  <chepelov@calixo.net>
12440         * intl/*: tested with gettext-0.10.38
12441         * configure.in: moved a macro call around (AM_PROG_CC) to keep
12442         some of autogen.sh from complaining.
12443         * INSTALL: added a warning against gettext older than at least 0.10.36
12444         
12445 2001-06-19  Cyrille Chepelov  <chepelov@calixo.net>
12447         * configure.in: added explicit calls to AM_LANGINFO_CODESET and
12448         AM_ICONV (both provided by gettext)
12450 2001-06-14  Cyrille Chepelov  <chepelov@calixo.net>
12452         * lib/charconv.c: corrected the degraded mode for when
12453         !HAVE_UNICODE. Thanks to Ben A. Hetland for reporting this.     
12455         * objects/chronoline/chronoline_events.c: UTF8 compliance.
12456         
12457 2001-06-13  Cyrille Chepelov  <chepelov@calixo.net>
12459         * lib/properties.[ch]: convenience macros around PROP_NOTEBOOKS ;
12460         new "eye candy" properties: PROP_MULTICOL_(BEGIN|PAGE|END) to lay 
12461         widgets on several columns, PROP_FRAME_(BEGIN|END) to put widgets
12462         into a frame box.
12464         * objects/chronogram/chronoline.c:
12465         * objects/chronogram/chronoref.c: took advantage of the above to
12466         make nicer looking dialogs.
12468         * lib/charconv.[ch]: added charconv_unichar_to_utf8 ("inspired"
12469         from libunicode's internals).
12470         * lib/message.c: convert strings to local encoding prior to
12471         display (UNICODE_WORK_IN_PROGRESS)
12472         * lib/properties.[ch]: convert strings to local encoding prior to
12473         display, and back to UTF8 (UNICODE_WORK_IN_PROGRESS).
12474         * lib/render.h: tagged strings as (utfchar *) instead of (char *)
12475         * lib/stringprerenderer.[ch]: ditto
12477         (lib/text.c has been audited for UTF8, but the size of the changes
12478         make them inappropriate for commit before 0.89)
12479         
12480 2001-06-12  Cyrille Chepelov  <chepelov@calixo.net>
12482         * objects/boolequation.h (<save|load>_boolequation): made the 
12483         prototypes for match the .c file.
12484         
12485         * samples/grafcet.dia: minor non-conformance with IEC-848
12486         fixed (in the transition from step 100 to step 101).
12488         * lib/properties.[ch]: added a flag (PROP_FLAG_DONT_MERGE) to
12489         disallow editing of properties if the object is part of a group.
12491         * objects/chronogram/chronoline.c: 
12492         * objects/SADT/annotation.c:
12493         * objects/SADT/box.c:
12494         * objects/GRAFCET/step.c:
12495         * objects/GRAFCET/transition.c:
12496         * objects/GRAFCET/condition.c: took advantage of PROP_FLAG_DONT_MERGE.
12497         
12498 2001-06-12  Hans Breuer  <hans@breuer.org>
12500         * lib/libdia.def : removed lazyprop exports
12501         * lib/makefile.msc : removed lazyprop.obj
12503         * objects/custom/custom_objects.c : use HAVE_UNISTD_H
12504         and avoid crashes by always creating a custom->text,
12505         when (custom->info->has_text) 
12507         * objects/makefile.msc : removed sybase from build
12509         * objects/GRAFCET/boolequation.c (<save|load>_boolequation) :
12510         ObjectNode is a pointer already, which is what we want
12511         instead of a pointer pointer.
12513         * plug-ins/wmf/wmf.cpp : fixed problem with arc scaling
12514         and implemented working export for images
12516         * shapes/network/zip-disk.shape : added connection points 
12518 2001-06-12  Cyrille Chepelov  <chepelov@calixo.net>
12520         * objects/SADT/box.c: removed lazyprops for standard props.
12521         * objects/chronograms/chronoline.c: removed lazyprops (phew !)
12522         * objects/chronograms/chronoref.c: ditto 
12524         * lib/Makefile.am:
12525         * lib/dummy_dep.h:
12526         * lib/connpoint_line.c:
12527         * lib/lazyprops.[ch] (DELETED): good riddance (closes #55895)
12528         * lib/properties.[ch]: new property types:
12529             - PROP_TYPE_STATIC: static text to be displayed in the dialog.
12530             - PROP_TYPE_MULTISTRING: same as string, but renders as a
12531             multi-line entry box.
12532             - PROP_TYPE_NOTEBOOK_BEGIN,_PAGE,_END: stuff to make dialogs
12533             in a tabbed-notebook style (this is a bit complicated to use; 
12534             see objects/chronograms/chronoline.c for an example).
12535                
12536 2001-06-11  Cyrille Chepelov  <chepelov@calixo.net>
12538         * objects/GRAFCET/boolequation.[ch]: zap lazyprops. Add standard props.
12539         * objects/GRAFCET/step.c: ditto.
12540         * objects/GRAFCET/vector.c: ditto.
12541         * objects/SADT/annotation.c: ditto.
12542         * objects/SADT/arrow.c: ditto (plus bounding box fixes).
12543         
12544         * lib/properties.[ch]: two more non-visible types
12545         (PROP_TYPE_ENUMARRAY and PROP_TYPE_INTARRAY).
12547         * lib/neworthconn.[ch]:
12548         * lib/orthconn.[ch]: added support for manipulation through
12549         standard properties.
12551         * configure.in: removed -fomit-frame-pointer, this seems to
12552         confuse recent gcc/gdb's, maybe we'll get better stack dumps in 
12553         bugzilla.
12555         * charconv.[ch]: more functions from unicode.h.
12556         get_local_charset() wasn't working properly, fixed now.
12557         A subtle crashbug in charconv_utf8_to_local8() nailed (thanks to 
12558         ElectricFence !)
12559         
12560         * objects/EML/process.h: pulled the bits of lazyprops.h it uses.
12561         * lib/lazyprops.[ch]: put a big fat warning in.
12563         * app/render_eps.c: one line mysteriously went away, causing a
12564         variable to be used uninitialised....
12566 2001-06-10  Cyrille Chepelov  <chepelov@calixo.net>
12568         * app/app_procs.c: commented out the call to
12569         bind_textdomain_codeset(): it's premature.
12570         
12571         * lib/connpoint_line.c: a NULL point can be given to
12572         connpointline_adjust_count(), in case there's not really a clicked
12573         point.
12575         * lib/textattr.h(NEW): moved the definition of TextAttributes to sort
12576         #include order troubles. #included by lib/text.h, so there is no 
12577         impact outside lib/.
12578         * lib/properties.[ch]: added support for CONNPOINT_LINE and
12579         (nonvisible) TEXT properties.
12581         * objects/GRAFCET/action.c:
12582         * objects/GRAFCET/vergent.c: dropped lazyprops for standard
12583         properties.
12584         
12585         * objects/UML/lifeline.c: pruned some legacy stuff (now pure
12586         standard properties code). Grafted a dynamic number of connection
12587         points (heavily inspired from what Vergent does). This is the real
12588         fix for #55863.
12590         * objects/GRAFCET/boolequation.[ch]: audited for UTF-8
12592         * lib/fonts.c: some hardening (mostly g_assert())
12593 2001-06-09  Cyrille Chepelov  <chepelov@calixo.net>
12595         * app/app_procs.c (app_init): added a call to
12596         bind_textdomain_codeset() so that gettext gives us UTF-8 strings
12597         (UNICODE_WORK_IN_PROGRESS).
12598         
12599 2001-06-08  Cyrille Chepelov  <chepelov@calixo.net>
12601         * plug-ins/xfig/xfig-import.c: corrected a typo (fixes #55910)
12603         * objects/UML/lifeline.c: patch from Marc <mrw@siemens.ch> 
12604         (fixes #55863) : some clean-ups in the handling of connection
12605         points. Now the total number of connection points is just a
12606         #define (the proper solution is to retrofit the GRAFCET Vergent's
12607         dynamic behaviour wrt connection points).
12608         
12609 2001-06-07  Cyrille Chepelov  <chepelov@calixo.net>
12611         * app/app_procs.c (app_init): added a call to unicode_init() (only
12612         if HAVE_UNICODE, of course).
12614         * lib/charconv.c: simplified the code which detects the local
12615         charset. No need to use <langinfo.h>, libunicode already takes the
12616         burden of figuring that out. Also, if local charset is utf8, no
12617         conversion will take place.
12618         Exposed a way to get the current charset (similar to
12619         unicode_get_charset() but actually working, hopefully).
12621         * lib/charconv.h: Added a partial non-UTF8 implementation of
12622         unicode.h if !HAVE_UNICODE (actually, all the time for the
12623         moment). The UTF8 implementation is just macros on libunicode (use
12624         the functions prefixed by uni_, as defined by charconv.h, not
12625         unicode_, unless that code is to be compiled only if HAVE_UNICODE).
12626         From now on, all strings which don't *need* to be ASCII should be
12627         utfchar *, not gchar *. Just include charconv.h, let it sort out
12628         the details (such as: "is libunicode available and enabled?") 
12630         * lib/ps-utf8.c: fixed a few name clashes. Used the charconv.h
12631         "API" instead of directly libunicode. Removed the now unnecessary
12632         speculative clustering of characters in encoding pages.
12634         * app/render_eps.c: made the local8->utf8 conversions dependent of
12635         !UNICODE_WORK_IN_PROGRESS (this is not where the local8/utf8
12636         boundary will be when this WIP is done).
12638         * lib/dia_xml.c (data_point): fixed a format string typo.
12640         * po/POTFILES.in: added all C files from lib/ 
12641         
12642 2001-06-06  Cyrille Chepelov  <chepelov@calixo.net>
12644         * app/disp_callbacks.c: make sure the objects' connected objects
12645         are updated when the objects' size changes after a keypress event
12646         (fixes #51222)
12648         * configure.in: added a big warning about the possible future
12649         non-optionality of --enable-unicode. 
12651         * TODO: removed entries which look like done ; added a few ones
12652         (Bugzilla "enhancement" bugs may be a better way to keep track of
12653         this)
12654         
12655 2001-06-05  Cyrille Chepelov  <chepelov@calixo.net>
12657         * objects/UML/message.c: got rid of #55564 and of message_copy()
12658         by using more standard properties (are the message_state_*()
12659         functions still necessary ?)
12661 2001-06-04  Fredrik Hallenberg  <hallon@lysator.liu.se>
12663         * lib/plug-ins.c: 
12664         * objecs/custom/shape_info.c:
12665         * plug-ins/shape/shape-export.c:
12666         * plug-ins/svg/render_svg.c: patch from obecian <obecian@openbsd.org>
12667         use xmlChar instead of obsolete CHAR.
12669 2001-06-03  Hans Breuer  <hans@breuer.org>
12671         * app/diagram.h : added prototype for diagram_update_menu_sensitivity()
12672         * app/commands.c : give the right number of parameters
12673         to diagram_update_menu_sensitivity ()
12675         * app/preferences.c : do proper initialization for DiaPrefsData:
12676         render_bounding_boxes. It would be a real surprise if 'hidden'
12677         properties would have ever worked before.
12678         Don't try to access the widgets of hidden property, it does not
12679         have one.
12681         * lib/diagramdata.h : make render_bounding_boxes a DIAVAR, cause
12682         it is defined in libdia, but initialized from dia app, which 
12683         otherwise gave nice start-up crashes.
12685         * lib/diagramdata.c : initialize the color for rendering bounding 
12686         boxes in the Dia range (0 .. 1.0)
12688         * lib/libdia.def : added *_bbox functions for export
12690         * lib/makefile.msc : added new sources
12692         * objects/custom/custom_object.c : use HAVE_UNISTD_H
12694 2001-05-30  Cyrille Chepelov  <chepelov@calixo.net>
12696         * app/interface.c:
12697         * app/menus.c: patch from Hubert Figuiere <hfiguiere@teaser.fr> ;
12698         removes a translation of menus (in a place where there shouldn't
12699         have been), which gets rid of a waterfall of warnings if LANG!=C,
12700         and a fix to #55047.
12702 2001-05-29  Steffen Macke     <sdteffen@yahoo.com>
12704         * lib/charconv.c : added #include <errno.h>
12706         * app/dia_embedd.c : updated menus_get_item_from_path usage
12707         
12708 2001-05-27  Cyrille Chepelov  <chepelov@calixo.net>
12710         * lib/ps-utf8.c: Strings in Symbol fonts were incorrectly rendered.
12711         Added a special case for Symbol strings, so that they're not
12712         re-encoded using the LN encoding (we use the bare Adobe encoding
12713         instead).
12715         * objects/custom/custom_object.c: Now that #52912 is fixed,
12716         I could remove the ugly hack I wrote to squash the shape bounding box
12717         problem shown by Ben A. Hetland a few months ago, and fix it
12718         properly this time.
12719         
12720         * lib/text.c: enlarged a little the bounding box to account for
12721         the cursor in rightmost position.
12722         
12723         * lib/diagramdata.c: draw bounding boxes only if the relevant
12724         variable is set (as before), but also only if the rendere is
12725         interactive (ie, don't bother rendering bounding boxes on 
12726         Postscript...)
12727         Made the bounding box's line width a fixed value, 0.01
12728         
12729         * lib/boundingbox.c: fixed the "pointy corners" code for polylines
12730         and assymmetric control beziers. Implemented ellipse_bbox().
12731         
12732         * Makefile.am: incantations to get po/dia.pot build, as suggested
12733         by Hubert in #55075.
12734         
12735         * shapes/network/computer.shape: typo fixed.
12736         * shapes/network/antenna.shape: fixed #55074 (antenna is now
12737         properly translucent, except for its base where it makes sense. It
12738         doesn't look that ugly anymore if transparent mode is on).
12740         * configure.in: --enable-unicode is now the default. This
12741         still currently affects only printing.
12742         
12743 2001-05-26  Cyrille Chepelov  <chepelov@calixo.net>
12745         * lib/boundingbox.c: fixed a minor logic error wrt closed shapes. 
12746         The overshoot code is buggy, and the bounding boxes for polyshapes
12747         looks a bit cheezy. To be done ASAP.
12749 2001-05-26  James Henstridge  <james@daa.com.au>
12751         * configure.in: call AM_PATH_PYTHON rather than AM_PATH_PYTHON_JH.
12752         This should clear up some of the build problems people have been
12753         having.
12755         * acinclude.m4: call AM_PATH_PYTHON_JH AM_PATH_PYTHON
12757 2001-05-26  Cyrille Chepelov  <chepelov@calixo.net>
12759         * lib/Makefile.am:
12760         * lib/boundingbox.[ch] (NEW): (some) refactoring of the bounding
12761         box code (beginning with lines, polylines and polybeziers), into a
12762         more generic facility. While at it, a better shot at correctly
12763         computing the bounding box of a Bezieroid (should take care of
12764         #53424, #51233 and of course is part 1 of #52912).
12766         * lib/diagramdata.c: turned the RENDER_BOUNDING_BOXES conditional
12767         into a hidden preference (set render_bounding_boxes in diarc).
12768         * app/preferences.[ch]: Added support for hidden preferences.
12770         * lib/geometry.[ch]: sprinkled with "const" modifiers.
12771         
12772         * lib/bezier_conn.[ch]:
12773         * lib/beziershape.[ch]:
12774         * lib/connection.[ch]:
12775         * lib/element.[ch]:
12776         * lib/poly_conn.[ch]:
12777         * lib/orth_conn.[ch]:
12778         * lib/neworth_conn.[ch]:
12779         * lib/polyshape.[ch]: adapted to take advantage of
12780         boundingbox.[ch] instead of relying on private (duplicate) code.
12782         * object/FS/flow.c:
12783         * object/GRAFCET/action.c:
12784         * objects/GRAFCET/condition.c:
12785         * objects/GRAFCET/vergent.c:
12786         * objects/GRAFCET/vector.c:
12787         * objects/SADT/annotation.c:
12788         * objects/SADT/arrow.c:
12789         * objects/ER/participation.c:
12790         * objects/UML/constraint.c:
12791         * objects/UML/implements.c:
12792         * objects/UML/lifeline.c:
12793         * objects/UML/message.c:
12794         * objects/UML/realizes.c:
12795         * objects/UML/generalization.c:
12796         * objects/UML/association.c:
12797         * objects/UML/dependency.c:
12798         * objects/FS/flow-ortho.c:
12799         * objects/network/bus.c:
12800         * objects/standard/arc.c:
12801         * objects/standard/bezier.c:
12802         * objects/standard/beziergon.c:
12803         * objects/standard/line.c:
12804         * objects/standard/polygon.c:
12805         * objects/standard/zigzagline.c:
12806         
12807         * objects/standard/polyline.c: Some *BBExtras structures changed
12808         names while moving to boundingbox.[ch]. A trivial mass-renaming.
12809         
12810 2001-05-20  Cyrille Chepelov  <chepelov@calixo.net>
12812         * app/disp_callbacks.c (ddisplay_canvas_events): Take into account
12813         wheel mouses for scrolling (from Patrick Sung <phsung@ualberta.ca>)
12815         * app/display.c (ddisplay_update_scrollbars): from Patrick's
12816         suggestion, remove the extra scrollable area (it was only visible
12817         to the scrollbars). This is experimental.
12818         
12819         * objects/custom/custom_object.c: If a shape's icon file doesn't 
12820         exist, warn and substitute a default icon, instead of crashing.
12821         (fixes #52913)
12822         
12823         * objects/network/network.c:
12824         * shapes/network/modularswitch.(shape|xpm) (NEW):
12825         * shapes/network/printer.(shape|xpm) (NEW):
12826         * shapes/network/genmonitor.(shape|xpm) (NEW):
12827         * shapes/network/computer.(shape|xpm) (NEW):
12828         * shapes/network/Makefile.am: four less objects, four more shapes.
12829         These were the last known RenderObjects. (phew !)
12831         * lib/Makefile.am:
12832         * lib/dummy_dep.h:
12833         * objects/sybase/Makefile.am: 
12834         * objects/network/Makefile.am: Removed the older Renderobjects
12835         from the build, and their infrastructure (not yet deleted,
12836         though).
12838         * shapes/network/sceadplug.shape:
12839         * shapes/network/antenna.shape:
12840         * shapes/network/modem.shape:
12841         * shapes/network/hub.shape:
12842         * shapes/network/rj45plug.shape:
12843         * shapes/sybase/client.shape:
12844         * shapes/sybase/dataserver.shape:
12845         * shapes/sybase/ltm.shape:
12846         * shapes/sybase/repserver.shape:
12847         * shapes/sybase/rsm.shape:
12848         * shapes/sybase/stableq.shape: Minor corrections (line widths were
12849         ten times too narrow).
12850         
12851 2001-05-19  Cyrille Chepelov  <chepelov@calixo.net>
12853         * objects/network/network.c:
12854         * shapes/network/sceadplug.(shape|xpm) (NEW):
12855         * shapes/network/antenna.(shape|xpm) (NEW):
12856         * shapes/network/modem.(shape|xpm) (NEW):
12857         * shapes/network/Makefile.am: four less objects, four more shapes.
12858         
12859         * lib/Makefile.am:
12860         * lib/diagramdata.c:
12861         * lib/render.h:
12862         * lib/string_prerenderer.[ch] (NEW):
12863         Add a new renderer primitive, predraw_string() (does nothing, to be
12864         used as a hook to optimise the character encodings if needed). 
12865         Added a string pre-renderer, which can be viewed as a filter
12866         renderer (to route draw_string() to predraw_string() and ignore
12867         the rest, in a first rendering pass)
12868         
12869         * app/render_eps.c: Took advantage of the above to make wholly
12870         optimised Postscript encoding page(s), even (especially) with 
12871         non-latin1 code (HAVE_UNICODE must be true).
12873         (#53512 in fact is wholly resolved).
12874         
12875 2001-05-18  Cyrille Chepelov  <chepelov@calixo.net>
12877         * lib/charconv.c: steps towards resolution of #53512 (inspired by
12878         Alexey Novodvorsky <aen@logic.ru>'s patch).
12880         * app/menus.c (dia_menu_signal_proxy): checked that the signal
12881         handler is not NULL before transferring control to it... (fixes #52836)
12883         * app/app_procs.c (app_init): removed non-constant initialiser
12884         (fixes #52950)
12886         * objects/custom/custom_object.c:
12887         * objects/custom/shape_info.[ch]:
12888         * objects/custom/test.xml: merged patch #53476 from Steven Hawkins 
12889         <skh@mathstar.com>. This add support for a <svg:text> shape
12890         element, and some related style properties (font, font height, 
12891         alignment)
12893         * doc/custom_shapes: a precision about the meaning of case in a
12894         SVG path (closes #52364)
12896         * lib/dummy_dep.h: fix for SGI IRIX 6.2 (#53053, reported and
12897         fixed by <drk@sgi.com>)
12898         
12899 2001-05-17  Cyrille Chepelov  <chepelov@calixo.net>
12901         * objects/network/network.c:
12902         * shapes/network/Makefile.am:
12903         * shapes/network/hub.(shape|xpm) (NEW):
12904         * shapes/network/flash.(shape|xpm) (NEW):
12905         * shapes/network/rj45plug.(shape|xpm) (NEW):
12906         More shapes, less renderobjects.
12908 2001-05-16  Cyrille Chepelov  <chepelov@calixo.net>
12909         
12910         * plug-ins/svg/render_svg.c: typo made exported ellipses
12911         corrupted (zero Y pseudo-radius).
12913         * objects/network/network.c:
12914         * objects/network/disc.c:
12915         * shapes/network/disc.(shape|xpm): Converted the first
12916         Renderobject into a shape. Normally, old diagrams should reload
12917         without problems (please check this against your diagrams). More
12918         flexibility should be gained that way. I intend to hunt and
12919         eradicate all renderobjects as I can commit cycles to that. 
12921         * objects/Makefile.am:
12922         * configure.in:
12923         * app/Makefile.am:
12924         * objects/sybase/sybase.c:
12925         * shapes/sybase/Makefile.am(NEW):
12926         * shapes/sybase/client.(xpm|shape) (NEW):
12927         * shapes/sybase/dataserver.(xpm|shape) (NEW):
12928         * shapes/sybase/ltm.(xpm|shape) (NEW):
12929         * shapes/sybase/repserver.(xpm|shape) (NEW):
12930         * shapes/sybase/rsm.(xpm|shape) (NEW):
12931         * shapes/sybase/stableq.(xpm|shape) (NEW): converted Sybase
12932         renderobjects into shapes. The Sybase objects are now not compiled
12933         anymore, and ready to be nuked if nobody objects in the next few weeks.
12934         
12935         * app/commands.c:
12936         * app/diagram.[ch]:
12937         * app/disp_callbacks.c:
12938         * app/display.[ch]:
12939         * app/interface.[ch]:
12940         * app/menus.[ch]:
12941         * app/modify_tool.c:
12942         * app/preferences.[ch]:
12943         * app/recent_files.c:
12944         * app/select.c: Added patch #52364 from Hubert Figuiere. This adds
12945         a menu bar reflecting the popup menu, to each display window. This
12946         is optional (changing the preference currently doesn't affect
12947         already opened windows; a few other rough edges to cut).
12949         * plug-ins/wpg/wpg.c:
12950         * plug-ins/xfig/xfig-import.c:
12951         * plug-ins/python/pydia-property.c:
12952         * plug-ins/python/pydia-properties.c:
12953         * plug-ins/python/pydia-geometry.c:
12954         * plug-ins/pstricks/render_pstricks.c:
12955         * lib/arrows.c:
12956         * objects/EML/dbox.c:
12957         * lib/ps-utf8.c: paleolithic C compilers choke on //. Should fix 
12958         #53054.
12960         * lib/ps-utf8.c: improved the clustering of alphabetic character
12961         definitions in custom encodings pages.
12962         
12963 2001-05-02  Hans Breuer  <hans@breuer.org>
12965         * lib/object.h : OBJECT_COMMON_PROPERTIES_OFFSETS correct type 
12966         of 'obj_bb' to PROP_TYPE_RECT
12968         * objects/custom/custom_object.c : take all quarks into account, 
12969         not only 4 as copy&paste suggests
12971         * objects/uml/objects.c : completed the implementation of the
12972         property api to avoid reading of totally bogus data. Removed
12973         the PROBABLY_DEAD_CODE. It actually was dead code, but not because
12974         there was too much but too less ...
12975   
12976         The above changes removed all known crashes (mentioned below) 
12977         from the Property API. Property access is still incomplete though.
12979         * objects/flowchart/box.c :
12980         * objects/flowchart/diamond.c :
12981         * objects/flowchart/ellipse.c :
12982         * objects/flowchart/parallelogram.c :
12983         * objects/uml/classicon.c :
12984         * objects/uml/state.c : calculate number of quarks from quark array 
12985         size instead of using hardcoded values for consistence and to avoid 
12986         future bugs like the above
12987         
12988         * objects/eml/nlist.c : include <string.h> for strcmp()
12990         * lib/dia_xml.c : relax g_warning for values, which
12991         appear to be too small. There is nothing which prevents
12992         them while saving
12994         * plug-ins/python/pydia-geometry.c : changed stringifying of
12995         geometry objects accept BezPoint back to %f, which does not
12996         crash anymore, because all the data is intialized now and it
12997         simply is more readable than %e ...
12999         * plug-ins/python/python-startup.py : removed dependency
13000         to PyGtk, because it isn't required here and probably won't
13001         in i.e.: export filters.
13003         * plug-ins/python/gtkcons.py : create the gtkoutfile even
13004         if sys.stderr.fileno() isn't supported
13006         * app/makefile.msc : make version 0.88
13007         * plug-ins/makefile.msc : make version 0.88 an added new
13008         xfig files to build
13010 2001-05-11  James Henstridge  <james@daa.com.au>
13012         * NEWS: remember to add news items this time.
13014         * dia.spec: update spec file for 0.88 release.
13016         * configure.in: up version number to 0.88
13018         * plug-ins/python/Makefile.am (EXTRA_DIST): fix up typo that was
13019         preventing any of the useful python scripts from being
13020         distributed.
13022         * sheets/Makefile.am (sheet-translation-report): fix bustage I
13023         introduced in my fixups for the 0.87 release :(
13025 2001-05-10  Lars Clausen  <lrclause@cs.uiuc.edu>
13027         * plug-ins/xfig/xfig-import.c: Finally got groups working.
13029 2001-05-09  Lars Clausen  <lrclause@cs.uiuc.edu>
13031         * plug-ins/xfig/xfig-import.c: Improvements to error handling and
13032         group manipulation.
13034 2001-05-09  Cyrille Chepelov  <chepelov@calixo.net>
13036         * lib/ps-utf8.[ch]:
13037         * lib/Makefile.am: fix makefile breakage which led to not
13038         including ps-utf8.[ch] in the released tarballs. 
13040 2001-05-09  James Henstridge  <james@daa.com.au>
13042         * Makefile.am (core-translation-report): dist scripts needed for
13043         this target, and change to $(srcdir) before running.
13045         * sheets/Makefile.am (EXTRA_DIST): actually dist the sheets.  DATA
13046         files aren't automatically included in the tarball by automake
13047         because they could be generated files.
13049         * objects/EML/Makefile.am (EXTRA_DIST): fix directory names.
13051         * doc/en/Makefile.am (install-data-hook): fix up where graphics
13052         are installed.
13054         * configure.in: up version number to 0.87
13056         * plug-ins/python/*.py: no longer necessary to explicitly set
13057         sys.argv, as python.c does it for us now (like it should).
13059         * plug-ins/python/gtkcons.py: fix up so it plays nicely as a dia
13060         python plugin.
13062         * plug-ins/python/python-startup.py: startup script that imports
13063         all modules in $(datadir)/dia/python and ~/.dia/python.
13065         * plug-ins/python/python.c (dia_plugin_init): change so that it
13066         only runs the $(datadir)/dia/python-startup.py script.  Make sure
13067         that sys.argv and __main__.__file__ are set when calling the
13068         startup script.
13070         * plug-ins/python/Makefile.am: update makefile.  Make it install
13071         gtkcons.py plugin.  I haven't set any other plugins to install, as
13072         they look like they are mainly for debugging purposes.
13074         * configure.in: add tests to detect if python is available, so we
13075         can build the python plugin.  Only run if --with-python passed to
13076         configure.
13078 2001-05-08  James Henstridge  <james@daa.com.au>
13080         * acinclude.m4: add macros for detecting python.
13082         * app/menus.c (dia_gnome_menu_get_widget): handle paths that point
13083         at GNOME_APP_UI_SUBTREE entries.
13084         (menus_add_path): function to add a menu item to the menubars.
13085         Uses a hash table to keep track of extra menu items it adds.  Also
13086         notifies the item factory about the entries so that accels can be
13087         saved for them.
13088         (menus_add_path): implement gtk only version.
13089         (menus_init): use menus_add_path() to add the menu.
13090         (plugin_callback): simplify.
13092 2001-05-08  Steffen Macke <sdteffen@yahoo.com>
13094         * app/menu.c: removed #ifndef GNOME; GNOME build was broken
13095         
13096 2001-05-08  Lars Clausen  <lrclause@cs.uiuc.edu>
13098         * plug-ins/xfig/xfig-export.c: 
13099         * plug-ins/xfig/xfig-common.c: 
13100         * plug-ins/xfig/xfig-import.c: 
13101         * plug-ins/xfig/xfig.c: 
13102         * plug-ins/xfig/xfig.h: 
13103         * app/Makefile.am: Added support for exporting to Fig format
13104         (except splits, which are less powerful in Fig).  Some refactoring
13105         along the way.
13107 2001-05-02  Hans Breuer  <hans@breuer.org>
13109         * plug-ins/python/debug_objects.py : added another
13110         test to get massive crashes from the Property API due
13111         to unintialized data.
13113         * app/menu.c : the callback_action wasn't incremented
13114         (should have checked my last optimization). Now more
13115         than one plug-in callback is supported again.
13117         * plug-ins/python/pydia-geometry.c : avoid crashes from
13118         glib, when trying to g_strdup_printf unintialized floats.
13120         * plug-ins/python/pydia-property.c : avoid crashes from
13121         because of string_data == NULL (PROP_TYPE_FILE, PROP_TYPE_STRING)
13123 2001-05-01  Hans Breuer  <hans@breuer.org>
13125         * objects/makefile.msc : added eml
13126         * objects/eml/instantiation.c : initialize 'inst' pointer
13127         before using, zero initialization for objects
13128         * objects/eml/interaction-ortho.c :
13129         * objects/eml/interaction.c : zero initialization for objects
13131         * app/menus.c : removed Gimp mru stuff which slipped in at
13132         2000-08-15, was never activated and will never be needed, 
13133         because of Steffens recent file list patch added at 2001-01-05.
13135         * objects/eml/*.c : some more zero initialization of objects
13136         to avoid infinite (uninitialized) bounding boxes
13138         Implemented a callback api which allows plug-ins to register
13139         menu call backs. Dia for Gnome should compile, but will need 
13140         some extra tweaking to make it work because I can't test it.
13142         * plug-ins/python/pydia-error.h :
13143         * plug-ins/python/pydia-render.c : moved Pxthon function return 
13144         value handling from pydia-render.c to pydia-error.h, to make it
13145         usable for
13146         * plug-ins/python/diamodule.c : implement callback function
13147         registration from and relaying to Python code
13149         * app/menus.c : register and use plug-in menu callbacks
13151         * lib/filter.[hc] : implement filter_register_callback() and
13152         filter_get_callbacks() for the above
13153         * lib/libdia.def : export them
13155         * plug-ins/python/debug_objects.py (new file): 
13156         sample using the above
13158 2001-04-27  Lars Clausen  <lrclause@cs.uiuc.edu>
13160         * plug-ins/shape/shape-export.c (new_shape_renderer): 
13161         The name of a shape is now taken from the dir, to conform with
13162         standard naming.
13164 2001-04-25  Lars Clausen  <lrclause@cs.uiuc.edu>
13166         * app/properties.c (properties_show): Added title containing
13167         object type, plus (hopefully) fix of the ghost properties dialog.
13169 2001-04-16  Cyrille Chepelov  <chepelov@calixo.net>
13171         * app/display.c: remove the display idle handler in case we
13172         destroy the ddisplay (caused crashes in ddd, probably random
13173         crashes elsewhere).
13175         * autogen.sh: 
13176         * configure.in:
13177         * Makefile.am: hack around gettext-0.10.36's new "features".
13178         
13179         * lib/properties.[ch]: added new function object_copy_props().
13180         Added new property type PROP_TYPE_ENDPOINTS
13182         * lib/connection.h: added support for load/saving through the
13183         properties interface.
13185         * lib/object.[ch]: object_load/save/copy_using_properties()
13186         support functions (code factorisations).
13187         
13188         * objects/GRAFCET/boolequation.c: check against null values in
13189         boolequation_set_value() and boolequation_destroy().
13191         * objects/GRAFCET/transition.c: Converted from lazyprops to
13192         standard properties. 31% less (x86) code !
13194         * objects/GRAFCET/condition.c: also converted from lazyprops to
13195         standard properties. Also killed lots of code.
13196         
13197 2001-04-13  Hans Breuer  <hans@breuer.org>
13199         * plug-ins/wmf/wmf.cpp : changed text conversion from
13200         g_utf8_utf16 to g_convert usage. The latter function is already
13201         available in tml's last "official" Gtk+ version (2000-12-26).
13202         This change allows to use recent Dia with either the official
13203         version or the latest cvs "gtk-1-3-win32-production"-branch.
13205 2001-04-14  Lars Clausen  <lrclause@cs.uiuc.edu>
13207         * Patch from David S. Thompson <dcthomp@mail.utexas.edu>:
13208         * app/disp_callbacks.c:
13209         - Allow submenus in DiaMenus.
13210         - Don't require DiaMenu.title to be non-null (so that
13211           submenus aren't required to have titles)
13213         * objects/FS/function.c:
13214         - object menu now has submenus, an almost complete list of
13215           standard-basis verbs, and a start on nouns.
13216         - box padding, dash length, and other visual attributes are
13217           scaled by the font size... eventually font height will be
13218           a function property.
13219         - draw functions with smaller font to make initial view hold
13220           a reasonable number of functions.
13221         
13222 2001-04-13  Cyrille Chepelov  <chepelov@calixo.net>
13224         * sheets/ER.sheet:
13225         * sheets/chronogram.sheet:
13226         * sheets/jigsaw.sheet:
13227         * sheets/sybase.sheet: Updated Dutch sheet translations from Dag
13228         Wieers <dag@wieers.com>
13230 2001-04-13  Hans Breuer  <hans@breuer.org>
13232         * app/app_procs.c (app_exit) : added g_return_if_fail (!app_exit_once)
13233         to ensure that all the deinitialization is only done once. Fixes
13234         recent app exit crash on win32
13236         * lib/dia_xml.c : provide isinf() replacement for msc which does only
13237         have _finite()
13239         * lib/libdia.def : updated
13241         * objects/makefile.msc : added wanlink.c 
13243         * objects/network/wanlink.c : added M_PI_2 definition for poor
13244         platforms which don't have one
13246         * objects/standard/arc.c :
13247         * objects/standard/zigzagline. c: part of ConectionBBExtras wasn't
13248         initialized which led to rather huge bounding boxes (try Ctrl^A on
13249         diagrams with Arcs or ZigZagLines).
13250         * objects/*/*.c : to avoid further bugs like the above changed all
13251         object initializations to g_malloc0 or g_new0
13254 2001-04-09  Cyrille Chepelov  <chepelov@calixo.net>
13256         * lib/paper.[ch]: get rid of "no previous prototype fo `foo'" by
13257         doing a s/T foo()/T foo(void)/ for all possible values of T and foo.
13259         * objects/UML/class.c: 
13260         * objects/UML/usecase.c:
13261         * objects/UML/large_package.c:
13262         * objects/UML/message.c:
13263         * objects/UML/object.c:
13264         * objects/UML/lifeline.c:
13265         * objects/FS/flow.c:
13266         * objects/FS/flow-ortho.c:
13267         * objects/FS/function.c:
13268         * objects/custom/custom_object.c:
13269         * objects/GRAFCET/vergent.c:
13270         * objects/chronogram/chronoref.c:
13271         * objects/SADT/box.c:
13272         * objects/SADT/annotation.c:
13273         * plug-ins/dxf/dxf-import.c:
13274         * plug-ins/xfig/xfig-import.c:
13275         * plug-ins/wpg/wpg.c:
13276         * app/command.c:
13277         * app/app_procs.c:
13278         * app/display.c: /* certainly more WIP than dead code there */
13279         Unused variables, unused static function definitions, forgotten or
13280         incomplete prototypes added or fixed, lack of const or unwanted const,
13281         etc. (mostly clean-ups of leftovers of the pre-properties era).
13282         Non-obvious cases bracketed by #define THIS_IS_PROBABLY_DEAD_CODE,
13283         please check these.
13285         * app/lineprops_area.c: More of the same. Missing prototypes
13286         added, and functions unused outside made static.
13288         * app/recent_files.c:
13289         * app/properties.c:
13290         * app/defaults.c: some variables are used only when doing a GNOME
13291         build.
13292         
13293         * app/magnify.c: missing #include <stdlib.h>.
13295         * app/paginate_gnomeprint.c: Unused variable; missing "message.h".
13297         These are a lot of clean-ups (by the way, this compiles and runs
13298         cleanly with "gcc-3.0 -O2 -Wall --std=gnu99" too !); please grep
13299         for DEAD_CODE, and if it's yours, judge it.
13300         
13301 2001-04-07  Cyrille Chepelov  <chepelov@calixo.net>
13303         * plug-ins/dxf-import.c: some progress with the arcs; still some
13304         clean-ups to do and line width scaling issues to figure out.
13306         * objects/standard/arc.c: start_point and end_point properties
13307         (duplicated from standard/line.c)
13309         * plug-ins/xfig/xfig-import.c: zip ! zap ! no more dead DXF import
13310         code there.
13311         
13312 2001-04-06  Cyrille Chepelov  <chepelov@calixo.net>
13314         * plug-ins/dxf-import.c: setlocale-related clean-ups and fixes ;
13315         preliminary support for arcs (doesn't work). Circles and ellipses are
13316         now transparent. Coordinate and width scaling are now a common 
13317         static constant (probably before morphing into a preference).
13318         
13319         * sheet/checktrans.py: improved error reporting. Made checktrans
13320         count lack of <name xml:lang="code"> as a lack of translation for
13321         language "code" (no, it's not a plot to bring down other
13322         language's scores !)
13323         
13324         * sheet/*.sheet: Ensured all sheets have an encoding="iso-8859-1"
13325         in the header, and have <name xml:lang="fr"> components.
13326         
13327 2001-04-05  Cyrille Chepelov  <chepelov@calixo.net>
13329         * objects/custom/custom_object.c: temporary hack to fix the shape
13330         bounding box reported by Ben A. Hetland. Proper fix isn't .87
13331         material, see bugzilla #52912.
13333 2001-04-05  Lars Clausen  <lrclause@cs.uiuc.edu>
13335         * objects/standard/image.c (get_directory): Now uses
13336         G_SEPARATOR_CHAR_S instead of "/"
13338         * sheets/network.sheet: 
13339         * sheets/Logic.sheet:
13340         * sheets/Flowchart.sheet:
13341         * sheets/Electric.sheet:
13342         * sheets/Circuit.sheet:
13343         * sheets/ER.sheet:
13344         * sheets/Pneumatic.sheet:
13345         * sheets/SDL.sheet:
13346         * sheets/UML.sheet:
13347         * sheets/GRAFCET.sheet:
13348         * sheets/MSE.sheet:
13349         * sheets/chronogram.sheet:
13350         * sheets/civil.sheet:
13351         * sheets/network.sheet:
13352         Danish translations.
13353         
13354         * objects/standard/image.c (get_directory): Changed get_directory
13355         to use g_dirname to find the directory part.
13357 2001-04-05  Cyrille Chepelov  <chepelov@calixo.net>
13359         * sheets/ER.sheet:
13360         * sheets/Electric.sheet:
13361         * sheets/Flowchart.sheet:
13362         * sheets/Logic.sheet:
13363         * sheets/network.sheet: More Dutch translations from Dag Wieers.
13365 2001-04-04  Cyrille Chepelov  <chepelov@calixo.net>
13367         * sheets/checktrans.py: now emits a warning when two descriptions
13368         for a single language code are found.
13370         * Makefile.am:
13371         * sheets/Makefile.am: -translation-reports now also depend on their
13372         checktrans.py
13373         
13374 2001-04-04  Cyrille Chepelov  <chepelov@calixo.net>
13376         * sheets/Circuit.sheet:
13377         * sheets/Contact.sheet:
13378         * sheets/Logic.sheet:
13379         * sheets/chronogram.sheet:
13380         * sheets/sybase.sheet: 
13381         Dutch translations from Dag Wieers <dag@wieers.com>
13383 2001-04-04  Cyrille Chepelov  <chepelov@calixo.net>
13385         * po-checktrans.py: Now shows the detailed counts alongside the
13386         percentage of translations.
13387         
13388 2001-04-03  Cyrille Chepelov  <chepelov@calixo.net>
13390         * Makefile.am:
13391         * po-checktrans (NEW):
13392         * po-checktrans.py (NEW): builds core-translation-report:
13393         percentages of core (gettext) translations done [Not placed into
13394         po/ where that should belong, because of integration fear^Wissues
13395         with gettextize]. 
13397         TO THE KIND ATTENTION OF PACKAGERS: core-translation-report and 
13398         sheets/sheet-translation-report probably ought to be copied on the 
13399         user's /usr/share/doc/dia (or equivalent) directory.
13401         * sheets/Makefile.am: sheet-translation-report now a simple
13402         EXTRA_DIST; make install won't install it by default. 
13403         
13404 2001-04-03  Cyrille Chepelov  <chepelov@calixo.net>
13406         * app/preferences.c: changed the default grid colour to something
13407         less intrusive. 
13409         * shapes/SDL/*.shape:
13410         * sheets/SDL.sheet: renamed all SDL shapes to conform to the
13411         "$LIBRARY - $NAME" convention. THIS REQUIRES FIXING THE EXISTING
13412         DIA FILES (well, for files using SDL), see the mailing list
13413         archive "SDL (ab)using the global shape namespace" for a script to
13414         do this conversion.
13416         * sheets/SDL.sheet: translated into French
13417         * sheets/network.sheet: fixed XML typos. Yay ! 100% :-)
13418         
13419 2001-04-02  Cyrille Chepelov  <chepelov@calixo.net>
13421         * lib/dia_xml.c: made data_point() more paranoid
13423         * sheets/Makefile.am:
13424         * sheets/checktrans (NEW):
13425         * sheets/checktrans.py: Made checktrans handle more gracefully the
13426         absence of python and python-xml packages, and made the error
13427         message more helpful.
13428         
13429 2001-04-01  Lars Clausen  <lrclause@cs.uiuc.edu>
13431         * lib/render_object.c (new_render_object): Made initial handles
13432         behave like on most other objects.
13434         * app/load_save.c (read_objects): Fixed premature free'ing ofr
13435         typestr causing garbage.
13437 2001-04-01  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
13439         * objects/FS/flow-ortho.c: Fixed a crashbug causes by not
13440         accouting for handle ordering through copy and save. (#51479)
13442 2001-03-31  Cyrille Chepelov  <chepelov@calixo.net>
13444         * sheets/Circuit.sheet: Norwegian translation mistagged to German.
13446 2001-03-31  Steffen Macke  <sdteffen@yahoo.com>
13448         * sheets/Circuit.sheet
13449         * sheets/UML.sheet
13450         * sheets/network.sheet: Updated German translations
13451         
13452 2001-03-30  Cyrille Chepelov  <chepelov@calixo.net>
13453         * lib/arrows.[ch]:
13454         * lib/widgets.c:
13455         * app/lineprops_area.c: The return of the revenge of the arrow
13456         heads. Now all types covered by ISO 10303-201 should be covered.
13457         
13458 2001-03-30  Cyrille Chepelov  <chepelov@calixo.net>
13460         * sheets/Flowchart.sheet: translations in probably Hungarian were
13461         a victim of cut-n-paste from the German one. Fixed (hopefully).
13462         * sheet/UML.sheet: translation in probably Norwegian was a victim
13463         of cut-n-paste from the French one. Fixed (hopefully).
13464         * sheets/Logic.sheet: French translation not tagged with
13465         xml:lang="fr".
13466         
13467         * sheets/checktrans.py:
13468         * sheets/Makefile.am: new file, sheet-translation-report, to be
13469         installed along the sheets, show how much of them has been
13470         translated into which language (I wish the result was prettier...)
13472         * po/README: most translators don't read this file, but anyway...
13474         * sheets/.cvsignore:
13475         * objects/network/.cvsignore: the usual negotiation with CVS.
13477 2001-03-30  Cyrille Chepelov  <chepelov@calixo.net>
13479         * sheets/*.sheet: French translations
13481 2001-03-28  Cyrille Chepelov  <chepelov@calixo.net>
13483         Added patch #52363 from Hubert Figuiere <hfiguiere@teaser.fr>:
13485         ** objects/network/network.c:
13486         ** objects/network/wanlink.c:
13487         ** objects/network/pixmaps/wanlink.c:
13488         ** sheets/network.sheet:
13489         ** objects/network/Makefile.am: a better object to use instead of
13490         the older WAN Connection.
13491         
13492         ** lib/geometry.[ch]: rotation matrix functions in geometry.c (derived from gimp)
13494         ** objects/GRAFCET/vector.c: renamed Vector to GRAFCETVector to avoid a
13495         name clash 
13497         * objects/GRAFCET/vector.c: Re-renamed GRAFCETVector into
13498         Arc; kept the C file name (because CVS wouldn't like it), and
13499         still registering the older object name (but advertising the newer
13500         one in sheets/GRAFCET.sheet).   
13502 2001-03-24  Hans Breuer  <hans@breuer.org>
13504         * app/dia.def : some plug-ins (currently only python, xfig) are using 
13505         functions from the dia executable. To get them working these functions 
13506         need to be explicit exported on win32. IMO the much cleaner way would
13507         be to move these functions to libdia, but that would require some
13508         long term restructuring ...
13510         * lib/libdia.def : updated
13512         * plug-ins/makefile.msc : build xfig plug-in
13514 2001-03-24  Hans Breuer  <hans@breuer.org>
13516         * app/diagram.c : g_strdup (dia->filename) because it will be
13517         g_free ()d
13519         * app/display.c : set ddisp->renderer to NULL after destruction.
13520         This may solve or help to identify erroneous access to it after
13521         destruction.
13523         * plug-ins/wmf/wmf.cpp : convert string from utf8 to wchar to
13524         get 'umlauts' working
13526 2001-03-22  Cyrille Chepelov  <chepelov@calixo.net>
13528         * object/chronogram/chronoline_event.c: stupid bug ; rises and falls
13529         were reversed... (look for the patch, and drink a beer to my
13530         stupidity)      
13531         
13532 2001-03-23  Hans Breuer  <hans@breuer.org>
13534         * app/app_procs.c : don't g_error () if the config directory
13535         can't be created (at least not on windoze) because it's quite
13536         common that the user don't read or understand the FAQ ...
13538         * app/cursor.c : use ddisplay_active () instead of active_display
13539         from app/display.c
13541         * app/display.[hc] : made active_display var static and provide
13542         an accessor funtion ddisplay_active_diagram ()
13544         * app/dia-props.c : don't store the active_diagram, but ask
13545         for it everytime it needed.
13547         * lib/properties.h : #include "intl.h"
13549         * lib/makefile.msc : need to take care of inclusion order to
13550         avoid clashes with gtk+2.0's gdk-pixbuf
13552         * objects/makefile.msc : added uml/stereotype.c to build
13554 2001-03-23  Lars Clausen  <lrclause@cs.uiuc.edu>
13556         * **/*.c: Added config.h to the remaining .c files, and changed
13557         all to be <config.h>.
13559 2001-03-22  Steffen Macke <sdteffen@yahoo.com>
13561         * lib/arrows.c
13562         * lib/arrows.h
13563         * lib/widgets.c
13564         * app/lineprops_area.c: added new arrow types with double
13565         heads
13566         
13567 2001-03-20  Steffen Macke <sdteffen@yahoo.com>
13569         * shapes/Civil/civil_gas_bottle.xpm
13570         * shapes/Civil/civil_gas_bottle.shape
13571         * sheets/civil.sheet
13572         * shapes/Civil/Makefile.am: Added gas bottle shape by Arne
13573         Battermann
13574         
13575 2001-03-20  Lars Clausen  <lrclause@cs.uiuc.edu>
13577         * objects/custom/shape_info.c (load_shape_info): 
13578         * objects/custom/shape_info.h: 
13579         * objects/custom/custom_object.c (custom_update_data): 
13580         Better support for text outside the box -- new attributes 'resize'
13581         and 'align' for text entity.  Align not fully supported yet.
13583         * lib/text.c (text_calc_boundingbox): Adding BB for cursor width.
13585 2001-03-20  James Henstridge  <james@daa.com.au>
13587         * app/interface.c (display_data_received_callback): comment out
13588         status message.
13590 2001-03-19  James Henstridge  <james@daa.com.au>
13592         * app/GNOME_Dia.oaf: rename from GNOME_Dia.oafinfo.
13594         * objects/UML/realizes.c: similar here.
13596         * objects/UML/implements.c: similar here.
13598         * objects/UML/component.c: similar here.
13600         * objects/UML/generalization.c: same here.
13602         * objects/UML/dependency.c: allow NULL for ->name and
13603         ->stereotype.  This fixes a number of problems in loading saved
13604         files.
13606         * lib/properties.c: various changes so that NULL string properties
13607         should work.
13609         * objects/standard/line.c (line_update_data):
13610         line->extra.start_long and line->extra.end_long were not being
13611         initialised.  This fixes potential problems with the bounding box
13612         of "Standard - Line" objects.
13614 2001-03-19  Hans Breuer  <hans@breuer.org>
13616         * app/commands.c : added win32 specific code to display a html
13617         file. #include "text.h" for text_delete_all prototype.
13619         * app/dia.ico :
13620         * app/dia.rc : (new) to give Dia win32 an icon
13622         * app/win32print.[ch] : new files to support direct postscript
13623         file printing on win32. Beware: it *requires* a ps-printer!
13625         * app/paginate_psprint.c : disable the signal code for win32 build
13626         and added small specific changes to support win32print.
13628         * app/makefile.msc : added win32print and linking shell32.lib
13630         * lib/libdia.def : updated
13632 2001-03-18  Kevin Breit <battery841@mediaone.net>
13634         * doc/en/dia-C.omf: Added file.  Dia should now list in the Nautilus
13635           Help tabs.
13637 2001-03-17  James Henstridge  <james@daa.com.au>
13639         * app/paginate_psprint.c (diagram_print_ps): add code that traps
13640         SIGPIPEs during printing.  This gets rid of a number of crashes
13641         caused by printing (eg. typing an incorrect print command).
13643         * dia.spec (%install): gzip the manpage.
13645         * lib/beziershape.c (beziershape_save): fix off by one error in
13646         beziershape save code, which was adding an extra segment to the
13647         object on save.
13649         * app/menus.c: add a separator in the gnome version of the help
13650         menu.
13652         * app/app_procs.c (app_init): add a --nosplash argument which
13653         disables the splash screen.
13655         * app/dia_embedd.c (main): don't leave the splash screen open for
13656         embeddable component.
13658         * app/splash.c (app_splash_init): the gtk_widget_show_now() call
13659         didn't seem to be showing the splash screen like expected, so I
13660         have replaced it with some code that calls gtk_main() until the
13661         first exposure of the window.
13663 2001-03-16  James Henstridge  <james@daa.com.au>
13665         * app/Makefile.am (EXTRA_DIST): add extra pixmaps.
13667         * objects/UML/Makefile.am (libuml_objects_la_SOURCES): add
13668         stereotype.h
13670         * lib/Makefile.am (libdia_a_SOURCES): add diavar.h here.
13672         * app/Makefile.am (dia_core_files): remove splash.h from file
13673         list, as it doesn't exist.
13675         * doc/en/Makefile.am (uninstall-local): remove the docdir on
13676         uninstall.
13678         * doc/Makefile.am (uninstall-local): target to remove the C
13679         symlink.
13681         * dia.spec (%files): include the documentation in the package.
13683         * app/menus.c (toolbox_menu_items): add menu item for manual,
13684         which calls help_manual_callback.
13686         * app/commands.c (help_manual_callback): find help file and load
13687         netscape to view it.
13689         * app/commands.h: add prototype for help_manual_callback()
13691         * doc/Makefile.am (helpdir): similar here.
13693         * doc/en/Makefile.am (helpdir): make the helpdir
13694         $(pkgdatadir)/help/en in the non gnome case.
13696         * configure.in (HAVE_GNOME): add conditional.
13698         * doc/en/Makefile.am: handle the graphics in a more general way,
13699         so it is easier for Kevin to add them to the build (just add them
13700         to the GRAPHICS var).
13702         * app/Makefile.am (embed_extra_print_files): make the case of
13703         building without gnome-print support but with bonobo support work.
13704         dia-embedd needs to be include the gnome-print
13706 2001-03-09  Cyrille Chepelov  <chepelov@calixo.net>
13708         * samples/Makefile.am: included all samples in the distribution....
13709         
13710 2001-03-09  Cyrille Chepelov  <chepelov@calixo.net>
13712         * configure.in: removed premature test for DPS. Added -*- m4 -*-
13713         at the beginning. Made HAVE_UNICODE non-default. po/es_ES.po has
13714         vanished, removed it from ALL_LINGUAS.
13716         * lib/charconv.[ch] (NEW): a very small wrapper around
13717         unicode_iconv to convert strings between utf8 and local charset
13718         (actually, ISO-8859-1, though one can do
13719         CFLAGS="-DEFAULT_8BIT_CHARSET=\"ISO-8859-2\"" and the like).
13721         * lib/ps-utf8.[ch] (NEW): A PostScript Unicoder ; a smallish
13722         library to help build Postscript streams which use as many custom
13723         font encodings as necessary to correctly represent all characters
13724         used (testing from users with non-latin1 and/or more than 256
13725         characters in routine use *very* welcome).
13727         * app/Makefile.am, lib/Makefile.am: integrated these into the
13728         build process.
13730         * shapes/Logic/.cvsignore (NEW): .cvsignore
13731         
13732         * app/render_eps.h: forwarded some changes Lars forgot to include.
13733         * app/render_eps.c: turned off ASCII85 and FILTERS, as this
13734         doesn't yet build.
13736 2001-03-08  Kevin Breit <battery841@mediaone.net>
13738         * doc/en/home_network.png: Added file.
13739         * doc/en/line_props.png: Added file.
13740         * doc/en/usage-objects.sgml: Added two graphics to file.
13741         * doc/en/usage-quickstart.sgml: Added one graphic to file.
13743 2001-03-06  Kjartan Maraas  <kmaraas@gnome.org>
13745         * app/grid.h: Place comment around text after #endif.
13746         * lib/bezier_conn.c: #include <string.h>.
13747         * lib/beziershape.c: #include <string.h>.
13748         * lib/connpoint_line.h: Comment after #endif.
13749         * lib/dia_dirs.c: #include <string.h>.
13750         * lib/element.c: Same.
13751         * lib/lazyprops.c: #include <config.h> and "intl.h".
13752         * lib/lazyprops.h: Comment out text after #endif.
13753         * lib/neworth_conn.c: #include <string.h>
13754         * lib/orth_conn.c: Same here.
13755         * lib/poly_conn.c: Here too.
13756         * lib/polyshape.c: And here.
13757         * lib/properties.c: Remove #include "intl.h" from here and add
13758         an array of static strings to work around bug in gettext that
13759         makes it miss strings in a #define body.
13760         * objects/GRAFCET/action_text_draw.h: Comment out text after #endif.
13761         * objects/GRAFCET/boolequation.h: Same here.
13762         * objects/chronogram/chronoline_event.h: Add prototype for
13763         destroy_cle().
13764         
13765 2001-03-05  Lars Clausen  <Lars R. Clausen <lrclause@cs.uiuc.edu>
13767         * objects/FS/function.c: 
13768         * objects/FS/flow.c: 
13769         * objects/FS/flow-ortho.c: 
13770         Updated to use properties.
13772 2001-03-03  James Henstridge  <james@daa.com.au>
13774         * lib/lazyprops.c (__propdlg_build_enum): translate the radio
13775         button labels when creating them.
13777 2001-02-28  Lars Clausen  <Lars R. Clausen <lrclause@cs.uiuc.edu>
13779         * objects/UML/actor.c
13780         * objects/UML/realizes.c 
13781         * objects/UML/implements.c 
13782         * objects/UML/generalization.c 
13783         * objects/UML/dependency.c 
13784         * objects/UML/constraint.c
13785         Updated to use properties.
13786         
13787         * objects/UML/stereotype.c 
13788         * objects/UML/stereotype.h
13789         Generalized to any kind of bracketting.
13790         
13791 2001-02-28  James Henstridge  <james@daa.com.au>
13793         * app/menus.c: add help entry to the help menu.  Need to get this
13794         working for the non GNOME case as well (maybe put help under
13795         $(datadir)/dia/help for non GNOME?)
13797         * doc/en/topic.dat: add a topic.dat file for GNOME menus.
13799         * doc/en/dia-manual.sgml (legalnotice): add an id attribute to
13800         this element so that we get a meaningful filename in the html
13801         translation.
13803         * doc/Makefile.am, doc/en/Makefile.am: new makefiles to handle the
13804         documentation.
13806         * configure.in (DB2HTML): add a check for the db2html program, and
13807         set an automake conditional if it is found.
13809         * Makefile.am: remove EXTRA_DIST rules that cover doc/ directory,
13810         and descend into doc/ directory while building.
13812         * configure.in (AC_OUTPUT): add doc/ makefiles to output list, now
13813         we need more complex rules for building the docs.
13815 2001-02-25  Hans Breuer  <hans@breuer.org>
13817         * config.h.win32 : some cleanup
13819         * app/prefererences.c : g_scanner_(freeze|thaw)_symbol_table
13820         are deprecated since glib-1.3.2. Sorry needing to use them
13821         contionally, but there is no glib-1.2 for win32
13823         * app/recent_files.c : use g_strescape (params) conditionally
13825         * lib/connection.c : include string.h for memcpy
13827         * lib/geometry.h : added some stuff for compatibility with
13828         msvc, which previously came from included config.h
13830         * lib/libdia.def : updated
13832         * objects/makefile.msc : updated
13834         * objects/GRAFCET/action.c(490) : fixed warning C4700: local variable 
13835         'extra' used without having been initialized
13837         * objects/network/bus.c(658) : initialize 'extra'
13839         * plug-ins/makefile.msc : updated
13841         * plug-ins/cgm/cgm.c :
13842         * plug-ins/pstricks/render_pstricks.c : 
13843         g_free() memory allocated by dia_image_rgb_data(). Plugs possibly 
13844         huge memory leaks.
13846         * plug-ins/python/python.c : use HAVE_DIRENT_H
13848 2001-02-23  Lars Clausen  <Lars R. Clausen <lrclause@cs.uiuc.edu>
13850         * lib/connection.c (connection_update_boundingbox): 
13851         Made the BB shrink on right and lower sides, too.
13853 2001-02-23  Kjartan Maraas  <kmaraas@gnome.org>
13855         * */*.c: #incude <config.h> at the top.
13856         * */*.h: Remove include of "config.h" since it should only
13857         be included in .c files and at the very top for things to
13858         work.
13859         * sheets/*.sheet: Updated Norwegian translations.
13860         
13861 2001-02-22  Lars Clausen  <Lars R. Clausen <lrclause@cs.uiuc.edu>
13863         * objects/UML/small_package.c: 
13864         * objects/UML/class.c: 
13865         * objects/UML/node.c: 
13866         * objects/UML/usecase.c:
13867         * objects/UML/lifeline.c: 
13868         * objects/UML/message.c:
13869         Various cleanup of properties in particular.  Now much more use of
13870         standard properties.
13872         * lib/diagramdata.c (layer_render): Visualization of bounding
13873         boxes, for debugging purpoises.
13875 2001-02-22  Cyrille Chepelov  <chepelov@calixo.net>
13877         * lib/geometry.h:
13878         * lib/connection.[ch]:
13879         * lib/poly_conn.[ch]:
13880         * lib/polyshape.[ch]:
13881         * lib/bezier_conn.[ch]:
13882         * lib/beziershape.[ch]:
13883         * lib/orth_conn.[ch]:
13884         * lib/neworth_conn.[ch]:
13885         * lib/element.[ch]: Changed a bit the _update_boundingbox()
13886         interface. Now the parent elements have an extra_spacing
13887         structure, which child objects just need to fill, to take care of
13888         most arrow & line width extra space needs.
13890         * objects/**/*.c: updated all objects to the new interface.
13891         While at it, killed all instances of (Object *) downcasts (phew !)
13893         * objects/GRAFCET/condition.c: removed the arrowhead, which IEC848
13894         doesn't speak about.
13895         
13896 2001-02-21  Lars Clausen  <Lars R. Clausen <lrclause@cs.uiuc.edu>
13898         * sheets/Logic.sheet: New sheet for Logic symbols.
13900 2001-02-21  James Henstridge  <james@daa.com.au>
13902         * app/menus.c (dia_gnome_menu_get_widget): new function to find a
13903         widget by its path name.  Walks the GnomeUIInfo heirachy rather
13904         than widget tree, compares untranslated label names and ignores
13905         underscores in the labels.
13906         (menus_get_item_from_path): use dia_gnome_menu_get_widget so that
13907         lookups are not dependent on the current locale, as with
13908         gnome_app_find_menu_pos.
13910         * acconfig.h: guard against multiple inclusion of config.h.
13912         * app/select.c (select_style_callback): simply set the selection
13913         style to the value of action.
13915         * app/menus.c (menus_init): simplify the item factory based menu
13916         code a bit.  It looks like it was using some code cut and pasted
13917         from the gimp, which looked a bit unnecessary.  Things work fine
13918         without it.
13919         (selectmenu): set the action to the type of selection mode
13920         requested.
13921         (display_menu_items): use the symbolic enumeration values for the
13922         action field.
13924         * app/plugin-manager.c: 
13925         * app/plugin-manager.h: 
13926         * app/filedlg.c:
13927         * app/filedlg.h: 
13928         * app/select.c:
13929         * app/select.h: change prototypes.
13931         * app/commands.c: update all callback prototypes, and get rid of
13932         some #ifdef GNOME's.
13934         * app/commands.h: change function prototypes.
13936         * app/dia_embedd.c (save_fn):
13937         s/ex_Bonobo_IOError/ex_BonoboStorage_IOError/
13939         * app/menus.c (menus_init): for gnome menus, use
13940         gnome_app_fill_menu_custom and pass in a GnomeUIBuilderData
13941         structure that proxies the callbacks to have the same signature as
13942         GtkItemFactory type 1 callbacks.
13943         (menus_init): for GTK menus, change from callback type 2 to type
13944         1.
13945         (display_menu_items): add back tearoffs.  I don't know who removed
13946         these for the gtk menu case.
13948 2001-02-20  Kevin Breit <battery841@mediaone.net>
13950         * doc/en/usage-objects-special.sgml: Fixed a few of the special
13951         object descriptions.  More to come in the next few days.
13953 2001-02-20  Lars Clausen  <lrclause@cs.uiuc.edu>
13955         * app/render_eps.c: Fixed for internationalized floating point
13956         output. 
13958         * objects/UML/note.c: Fixed properties -- was missing
13959         Get/ApplyPropertiesFunc.  Also improved update to recalculate text
13960         position. 
13962 2001-02-19  Lars Clausen  <lrclause@cs.uiuc.edu>
13964         * plug-ins/xfig/xfig-import.c: 
13965         File added importing xfig files.  Still very rough, but good
13966         enough to let others hack on it.
13968 2001-02-07  Cyrille Chepelov  <chepelov@calixo.net>
13970         * app/interface.c:
13971         * app/linewidth_area.c:
13972         * lib/lazyprops.c:
13973         * lib/properties.c:
13974         * lib/widgets.c:
13975         * objects/ER/attribute.c:
13976         * objects/ER/entity.c:
13977         * objects/ER/relationship.c:
13978         * objects/custom/custom_object.c:
13979         * objects/flowchart/box.c:
13980         * objects/flowchart/diamond.c:
13981         * objects/flowchart/ellipse.c:
13982         * objects/flowchart/parallelogram.c:
13983         * objects/standard/box.c:
13984         * objects/standard/textobj.c: per Vlad Harchev's request, made
13985         page sizes of gtk_adjustments different than their step sizes.
13986         When sensible values of page size weren't found (overwhelming
13987         majority of cases), page sizes were set to 10.0 * respective step
13988         size.   
13990 2001-02-07  Lars Clausen  <lrclause@cs.uiuc.edu>
13992         * objects/network/hub.c: 
13993         Patch from Hubert Figuiere applied, adding connection points.
13995 2001-02-02  James Henstridge  <james@daa.com.au>
13997         * app/display.c (new_display): set update id to 0 here.
13998         (ddisplay_update_handler): rename from ddisplay_flush, and set
13999         update_id to 0 at end of processing.
14000         (ddisplay_flush): new implementation that simply sets an idle
14001         handler to perform the actual drawing.
14003         * app/display.h: add structure member to hold the redraw idle
14004         handler id.
14006 2001-01-31  Lars Clausen  <lrclause@cs.uiuc.edu>
14008         * objects/standard/ellipse.c (ellipse_copy): 
14009         * objects/standard/zigzagline.c (zigzagline_copy): 
14010         Fix of copying provided by Martin Hawlisch.
14012 2001-01-23  Kevin Breit <battery841@mediaone.net>
14014         * doc/en/graphics/: added directory
14016         * doc/en/graphics/greendots.png: added file
14018         * doc/en/*sgml: made minor and some major changes to prepare for 1.4
14019         release.
14021 2001-01-23  Kevin Breit <battery841@mediaone.net>
14023         * doc/en/*sgml: made some grammar changes and fixed a few markup bugs.
14024                         thanks to John Fleck!
14026 2001-01-21  Kevin Breit <battery841@mediaone.net>
14028         * doc/en/*sgml: made just minor changes to a few lines; nothing major.
14030 2001-01-12  Michael Meeks  <michael@helixcode.com>
14032         * app/dia_embedd.c (init_server_factory): do a bonobo_activate
14033         so our POA gets setup properly.
14035         * app/paginate_gnomeprint.c (paginate_gnomeprint): g_free
14036         things we g_malloc.
14038         * configure.in: Use bonobox_print.
14040         * app/dia_embedd.c (embeddable_factory): add print interface.
14041         (object_print): impl.
14043 2001-01-11  Michael Meeks  <michael@helixcode.com>
14045         * app/dia_embedd.c (embeddable_factory): aggregate PersistFile.
14046         (load_fn, save_fn): impl.
14047         (view_factory): hide modified status bar, & use activate fn.
14048         (refresh_view): force redraws of the views.
14049         (view_show_hide): split from
14050         (dia_view_activate): here.
14052         * app/diagram.c (diagram_load_into): split from diagram_load.
14053         (new_diagram): simplify bu splittin stuff into
14054         (diagram_init): here.
14056 2001-01-10  Steffen Macke <sdteffen@yahoo.com>
14058         * shapes/jigsaw/*.shape: replaced #000000 with foreground
14059         and #ffffff with background
14060         
14061 2001-01-08  Steffen Macke <sdteffen@yahoo.com>
14063         *configure.in: GTK+-build was broken due to missing
14064         have_bonobo=no
14065         
14066 2001-01-06  Michael Meeks  <michael@helixcode.com>
14068         * app/dia_embedd.c (main): add running context support.
14069         (dia_embeddable_destroy): remove old running object counting.
14070         (embeddable_factory): ditto.
14071         (view_factory): comment out menu path hiding.
14073         * lib/sheet.c (load_register_sheet): use free to free
14074         stuff from libxml not g_free.
14076         * acconfig.h: kill cover for USE_BONOBOX and USE_OAF
14078         * configure.in: remove USE_OAF checks, check for a precice
14079         Bonobo version >= 0.31, revamp bits.
14081         * app/dia_embedd.c (init_server_factory): upd.
14082         (init_dia_factory): remove OAF conditionals, everything uses
14083         oaf now.
14085         * app/GNOME_Dia.oafinfo: rename OAFIIDs
14087         * app/Makefile.am: remove ancient gnorba code.
14088         rename dia.oafinfo to GNOME_Dia.oafinfo
14090 2001-01-07  Hans Breuer <Hans@Breuer.Org>
14092         * config.h.win32
14093         * install.win32
14094         * readme.win32 : some more files required or useful to build 
14095         Dia on win32
14097         * plug-ins/wmf/wmf.cpp : fixed open issues like fill_arc and
14098         fill_bezier implementation, boundary drawing in fill mode, etc.
14099         Next one complaining gets the source, uncommented ...
14101         * shapes/network/router-symbol.xpm 
14102         * shapes/network/switch-atm-symbol.xpm 
14103         * shapes/network/switch-symbol.xpm : removed "-*- picture -*- "
14104         from /* XPM */ header, cause it stopped Dia/gdk_pixbuf to detect 
14105         the files as XPMs. Maybe the X versions of these functions are more
14106         tolerant ...
14108 2001-01-06  Steffen Macke <sdteffen@yahoo.com>
14110         * plug-ins/python/Makefile.am: added libart path
14112         * plug-ins/python/python.c: added dirent.h
14114         * configure.in: added es_ES and pt_BR to ALL_LINGUAS
14115         
14116 2001-01-06  Hans Breuer <Hans@Breuer.Org>
14118         * objects/uml/actor.c
14119         * objects/uml/branch.c
14120         * objects/uml/class.c
14121         * objects/uml/classicon.c
14122         * objects/uml/component.c
14123         * objects/uml/large_package.c
14124         * objects/uml/node.c
14125         * objects/uml/note.c
14126         * objects/uml/object.c
14127         * objects/uml/small_package.c
14128         * objects/uml/state.c
14129         * objects/uml/usecase.c : started to implement the generic property
14130         interface for the uml objects. Would appreciate some help on how
14131         to implement properties which are list of properties themselves,
14132         e.g. member functions and their parameters of UMLClass.
14134 2001-01-06  Hans Breuer <Hans@Breuer.Org>
14136         * plug-ins/python/diamodule.c : finally ported to win32.
14137         Added new objects and implemented register_export function.
14139         * plug-ins/python/pydia-object.h
14140         * plug-ins/python/pydia-display.c
14141         * plug-ins/python/pydia-handle.c
14142         PyObject_HEAD_INIT needs some tweakink on win32. Done in
14143         pydia-object.h; others files simply using it.
14145         * plug-ins/python/pydia-layer.c : reflect 
14146         layer_find_closest_connection(_)point renaming
14148         * plug-ins/python/pydia-object.c : add property properties.
14149         Also change bounding_box to DiaRectangle.
14151         * plug-ins/python/python.c : extended error reporting; use
14152         all *.py files from Dia's plug-in dir instead of hardcoded
14153         test.py. This sollution should be fine with Win32, but on
14154         Unix it may need some tweaking (dunno) ...
14156         * plug-ins/python/export-object.py
14157         * plug-ins/python/export-render.py : test and documentation 
14158         implementations for export filter implementations in Python
14160         * plug-ins/python/pydia-color.[hc]
14161         * plug-ins/python/pydia-diagramdata.[hc]
14162         * plug-ins/python/pydia-error.[hc]
14163         * plug-ins/python/pydia-export.[hc]
14164         * plug-ins/python/pydia-font.[hc]
14165         * plug-ins/python/pydia-geometry.[hc]
14166         * plug-ins/python/pydia-image.[hc]
14167         * plug-ins/python/pydia-properties.[hc]
14168         * plug-ins/python/pydia-property.c
14169         * plug-ins/python/pydia-render.c : new objects in new files 
14171         * plug-ins/python/makefile.am : added new files but can't test it
14173         * plug-ins/python/pydia.def
14174         * plug-ins/python/makefile.msc : for win32 build
14176         * plug-ins/cgm/cgm.c
14177         * plug-ins/dxf/dxf-import.c
14178         * plug-ins/dxf/dxf-export.c
14179         * plug-ins/hpgl/hpgl.c : reflect export API change
14181         * plug-ins/shape/shape-export.c : reflect export API change
14182         and check for libart (better the availibility of a png exporter) 
14183         at run-time instead of compile-time. 
14185 2001-01-06  Steffen Macke <sdteffen@yahoo.com>
14187         * app/recent_files.h was missing from Hans's commit
14189         * plug-ins/shape/shape_export.c: shape export was broken
14190         due to interface changes
14191         
14192 2001-01-05  Hans Breuer <Hans@Breuer.Org>
14194         Applied Steffen's recent file list patch :
14195         * app/Makefile.am : added recent_files.[hc]
14196         * app/diagram.c : add files to recent file list
14197         * app/menus.c : add recent file menu
14198         * app/app_procs.c : changed initialization order to
14199         make recent file list work with command line processing.
14201         The Filter export()/import() functions have got an additional 
14202         parameter to allow multiple filters via one C callback (required
14203         for Python bindings)
14205         * app/commands.[hc] : corrected the signature for gtk menu callback
14206         functions, which actually use the second or third parameter. This
14207         is the absolute minimum change to make these functions/menu entries
14208         work again. Using the other possible gtk menu callback signature
14209         would have required one more function to change. (see mailing list
14210         thread "Objects/Align/Equal Distance" for more information.
14212         * app/disp_callbacks.c : applied Gustavo J.A.M. Carneiro's
14213         zoom-combo focus patch
14215         * app/display.c
14216         * app/interface.c : wrapped the Zoom Combo code into 
14217         #ifndef WITHOUT_ZOOM_COMBO because IHMO it isn't an useabilty
14218         improvement but cluttering the user interface. Also it wasn't
14219         compiling on Win32 anyway. The win32 version does define 
14220         WITHOUT_ZOOM_COMBO to keep the old look. 
14221         There are plans to use the statusbar to display size and placement
14222         of selected objects, whereas the Zoom Combo would need to get out
14223         of the way as well.
14225         Added "Save Changes?" to diagram close dialog. Hopefuly the
14226         Yes/No/Cancel option isn't too much windoze like. IHMO this is
14227         an useability improvement.
14229         * app/export_png.c
14230         * app/filedlg.c
14231         * app/load_save.c
14232         * app/layer_dialog.c
14233         * app/paginate_psprint.c
14234         * app/render_eps.c
14235         - reflect signature changing of filter->export function
14236         - replaced '/' with G_DIR_SEPARARTOR where appropriate
14238         * app/diaunitspinner.c
14239         * app/render_libart.c
14240         added misssing headers like <string.h>
14242         * app/object_ops.c : fixed copy&paste bug in dialog string
14244         * app/splash.c : gdk_widget_show_now () does not ensure actual
14245         drawing of the splash screen, at least not on win32. Reuse the
14246         previous implementation with gtk_main_iteration() again.
14248         * */makefile.msc : make use of the build module (available in
14249         gnome-cvs/build. Updated for other source changes
14251         * lib/filter.h : added an user_data pointer to <ex/im>port()
14252         function signature and Dia<Im/Ex>portFilter to allow different
14253         filters to reuse the same callback function
14255         * lib/font.c : #include <string.h>
14257         * lib/orth_conn.c 
14258         * lib/poly_conn.c 
14259         * lib/poly_shape.c 
14260         * lib/neworth_conn.c
14261         * lib/text.c : don't mix allocator functions (g_)realloc, free, ...
14263         * */*.def : export function definition files required by win32 build
14265         * objects/custom/custom.c : #include <string.h>
14267         * plug-ins/pstricks/render_pstricks.c
14268         * plug-ins/shape/shape_export.c
14269         * plug-ins/svg/render_svg.c
14270         reflect changes to filter export function signature
14272         * plug-ins/wmf/wmf.cpp : fixed indent and scaling. It now should
14273         mostly work as expected
14274         * plug-ins/wmf/wmf_gdi.[hc] : Updated comment. Still not used
14275         to build the wmf plug-in because on the one hand the GDI emulation 
14276         isn't finished and on the other hand it isn't required when building
14277         for win32. Is there anybody out there, who wants to save WMF on non
14278         windoze platforms ?
14280         * plug-ins/wpg/wpg.cpp : fixed scaling to take axis dependent
14281         offset into account.
14283 2001-01-02  Steffen Macke <sdteffen@yahoo.com>
14285         * app/Makefile.am: added missing plug-ins to run_dia.sh
14287         * lib/paper.c: added paper sizes A0, A1, A2
14289         * objects/UML/class.c
14290         objects/UML/class.h
14291         objects/UML/class_dialog.c: added support for colored UML
14292         classes
14293         
14294 2000-12-30  Kevin Breit <battery841@mediaone.net>
14296         * doc/en/usage-customization.sgml: added more content
14298 2000-12-24  Kevin Breit <battery841@mediaone.net>
14300         * doc/en/usage-layers.sgml: added file, contributed by Remypsb
14301         <remy.viard@laposte.net>
14303 2000-12-24  Steffen Macke <sdteffen@yahoo.com>
14305         * added limiting lines to Civil Engineering sheet,
14306         fixed vertical pump icon
14307         
14308 2000-12-20  Steffen Macke <sdteffen@yahoo.com>
14310         * updated/additional Civil Engineering shapes: better icons,
14311         shapes use foreground/background colors now and are filled
14312         
14313 2000-12-03  Kevin Breit  <battery841@mediaone.net>
14315         * doc/en/dia-manual.sgml Integrated a few diffs.  New section should be
14316         the selection <sect1>
14318 2000-11-29  Fredrik Hallenberg  <hallon@lysator.liu.se>
14320         * app/load_save.c (diagram_data_save): avoid using obsoleted
14321         libxml calls (only matters when compiling with libxml2)
14323 2000-11-25  James Henstridge  <james@daa.com.au>
14325         * app/disp_callbacks.c (ddisplay_drop_object): add a function to
14326         handle the tool drops on the canvas.
14328         * app/interface.c (display_data_received_callback): do the check
14329         to make sure that the drag is from a local toolbox here as well.
14331         * app/interface.c (create_tools): unref the pixmap/mask after
14332         creating the GtkPixmap.
14333         (tool_setup_drag_source): function to set up a drag source for
14334         create object tool buttons.
14335         (create_tools): setup drag source for CREATE_OBJECT_TOOL's.
14336         (fill_sheet_wbox): same here.
14337         (create_display_shell): set up the display canvas as a drag
14338         destination.
14339         (display_drop_callback, display_data_received_callback): functions
14340         to handle drops of tool buttons.
14342         * app/menus.c (menus_init): don't use gnome_popup_menu_new().  It
14343         does weird shit to the user_data pointer for a menu item.  Object
14344         alignment should work again now.
14346         * app/splash.c (get_logo_pixmap): don't unref the bitmap if it is
14347         NULL, and mark this function static.
14348         (app_splash_init): use gtk_widget_show_now() instead of the
14349         gtk_main_iteration loop.
14350         (app_splash_init): connecting gtk_widget_destroy to the destroy
14351         signal of a widget seems pretty useless.
14353 2000-11-23  Kevin Breit <battery841@users.sourceforge.net>
14355         * doc/en/dia-manual.sgml:
14356                 Added sect1 for advanced object types.  Starting development
14357                 on that part.
14359 2000-11-18  Kevin Breit <battery841@mediaone.net>
14361         * doc/en/dia-manual.sgml:
14362                 Stupid spelling fixes.
14364 2000-11-18  Kevin Breit <battery841@mediaone.net>
14366         * doc/en/dia-manual.sgml:
14367                 Just some small changes I made.  Props to Greg LeBlanc on the
14368                 recommendations.
14370 2000-11-17  Alexander Larsson  <alla@lysator.liu.se>
14372         * app/display.c:
14373         (ddisplay_add_display_area): Clip input rectangle to
14374         the visible part of the display.
14375         (ddisplay_scroll): Optimization, don't scroll and
14376         redraw if moving to the same position as before.
14378         * app/render_libart.c (renderer_libart_copy_to_window):
14379         Removed sanity check. Now moved to ddisplay_add_display_area().
14381         * lib/diavar.h:
14382         Added return at end of file.
14383         
14384 2000-11-13 Kevin Breit <battery841@mypad.com>
14385         * doc/en/dia-manual.sgml
14386                 Commited manual changes from Henry House <hajhouse@houseag.com>
14388 2000-10-21 Hans Breuer <Hans@Breuer.Org>
14389         * lib/beziershape.c :
14390                 The previous code was accessing unowned memory due to IHMO
14391                 wrong index calculation. Now it appears to be fixed.
14392                 *Please Review!*
14394         * lib/makefile.msc
14395         * plug-ins/makefile.msc
14396         * objects/makefile.msc
14397         * app/makefile.msc: (new files)
14398                 Makefiles for Dia on Win32, Micro$oft VC only.
14400         * plug-ins/pstricks/render_pstricks.c
14401         * plug-ins/dxf/dxf-import.c
14402         * plug-ins/shape/shape-export.c
14403         * plug-ins/svg/render_svg.c
14404         * app/commands.c
14405         * app/filedlg.c
14406         * app/preferences.c
14407         * app/render_eps.c
14408         * lib/sheet.c
14409         * lib/plug-ins.c
14410         * objects/custom/custom.c
14411         * objects/standard/image.c
14412                 portability (not only win32): use HAVE_UNISTD_H, HAVE_DIRENT_H 
14413                 where   appropriate, add missing prototypes like <string.h>
14415         * plug-ins/wmf/wmf_gdi.cpp
14416         * plug-ins/wmf/wmf_gdi.h:
14417                 start of wmf write functions for non Win32 platform. Not 
14418                 finished yet. The other way to get it working maybe to
14419                 link the plug-in against wine libs.
14420                 
14421         * plug-ins/wpg/wpg.c : add missing brace
14423         * app/load_save.c :
14424                 Handling for unknown objects at load time. Previously Dia
14425                 was crashing, if you try to load a file referencing objects
14426                 whiches plug-ins aren't installed/available. Now it spits out 
14427                 a warning and ignores the unknown objects.
14429         * app/interface.c
14430                 toolbox DND support for files like The Gimp does it.
14432         * app/main.c
14433         * app/app_procs.h
14434                 Simple splash screen support and usage.
14436         * app/app_procs.c
14437                 Splash screen, portability fixes, dont' g_error if there is
14438                 g_get_homedir return NULL. This may remove the one and only
14439                 FAQ for Win32.
14441         * app/menus.c :
14442                 Make it compile without ENABLE_NLS
14444         * app/render_libart.c :
14445                 Sanity check to avoid calling libart with wrong window coordinates.
14446                 They come from the update handler. Direct Gdk is dealing nicely
14447                 with coordinates out of range, libart does access un-owned memory
14448                 in this case, mostly causing crashes.
14450         * app/winmain.c: (new file) Export the Win32 Gui version of the
14451                 main function. This file is only required for Windoze.
14453         * app/splash.c: (new file) splash screen implementation
14455         * lib/color.h
14456         * lib/font.h
14457         * lib/diavar.h: (new file)
14458                 moved special variable export code to diavar.h, because it is
14459                 needed in color.h and font.h
14461         * lib/paper.c :
14462                 M$VC cann't export inlined functions. Quick hack to let it
14463                 link again. Probably the glib mechanics should be used here?
14465         * objects/UML/lifeline.c : initialize var before usage
14467         * objects/GRAFCET/step.c : removed unused var
14469 2000-10-14  James Henstridge  <james@daa.com.au>
14471         * app/render_gnomeprint.c (draw_image): change code so images
14472         don't get flipped when printing.
14474         * app/paginate_gnomeprint.c (diagram_print_gnome): check to make
14475         sure that the return value of
14476         gnome_print_context_new_with_paper_size is not NULL.
14478         * app/render_gnomeprint.c (draw_arc): add code to convert arcs
14479         into a series of bezier segments.
14480         (fill_arc): similar code to handle filled arc segments.
14482 2000-10-12  Fredrik Hallenberg  <hallon@lysator.liu.se>
14484         * app/app_procs.c
14485         * app/commands.c
14486         * app/dia-props.c
14487         * app/diagram.c
14488         * app/diagram.h
14489         * app/disp_callbacks.c
14490         * app/display.c
14491         * app/linewidth_area.c
14492         * app/paginate_psprint.c
14493         * app/preferences.c
14494         * app/undo.c
14495         * app/font.c
14496         * app/message.c
14497         * app/neworth_conn.c
14498         * app/orth_conn.c
14499         * objects/standard/box.c: various small changes to get rid of 
14500         annoying warnings (eg faulty prototypes and unused variables)
14502         * app/disp_callbacks.c
14503         * app/cursor.h
14504         * app/magnify.c
14505         * app/magnify.h: update magnify tool icon when pressing/releasing
14506         shift. I will try to make something more general so that similar
14507         things can be used by other tools.
14509         * shapes/SDL/inout.shape
14510         * shapes/SDL/return.shape: fixed some typos
14512 2000-10-09  James Henstridge  <james@daa.com.au>
14514         * objects/custom/shape_info.c (parse_path): apply patch from
14515         Robert Young <robertdotyoung@dsto.defence.gov.au> to fix bug
14516         #25221
14518 2000-10-08  James Henstridge  <james@daa.com.au>
14520         * objects/standard/image.c (image_set_props): if the file could not
14521         be loaded, show the broken image icon.
14523         * plug-ins/Makefile.am (SUBDIRS): add shape to the subdirs list.
14525         * plug-ins/shape/*: the shape export plugin by Steffen Macke.
14527         * app/interface.c (fill_sheet_wbox): use gdk-pixbuf to load the
14528         object icon when loading from a file.  This allows you to have PNG
14529         icon files for shapes.
14531 2000-10-07  James Henstridge  <james@daa.com.au>
14533         * app/Makefile.am (dia_LDADD): remove GDK_IMLIB_LIBS reference.
14535         * lib/Makefile.am, app/Makefile.am (INCLUDES): remove
14536         GDK_IMLIB_CFLAGS reference.
14538         * app/commands.c (help_about_callback): remove imlib code.
14540         * lib/dia_image.c: only include the pixbuf version of the image
14541         routines.
14543         * acconfig.h: remove the HAVE_GDK_PIXBUF flag from here.
14545         * configure.in (CPPFLAGS): remove the check for imlib, as we now
14546         require gdk-pixbuf.
14548         * plug-ins/pstricks/render_pstricks.c (new_pstricks_renderer):
14549         conditionally define \setfont as well.
14551 2000-10-05  James Henstridge  <james@daa.com.au>
14553         * plug-ins/pstricks/render_pstricks.c (new_pstricks_renderer): fix
14554         preamble so that we define \setlinejoinmode and \setlinecaps
14555         commands conditionally on them being undefined.  This way, the
14556         pstricks output files should work without modification, and will
14557         support the commands when they are implemented in pstricks.
14559 2000-10-05  Szabolcs Ban  <shooby@gnome.hu>
14561         * dia.desktop: added hungarian translations to dia.desktop
14563 2000-10-04  James Henstridge  <james@daa.com.au>
14565         * sheets/UML.sheet: fix typo.
14567         * objects/custom/shape_info.c: use strtod instead of g_strtod.
14568         (parse_path): actually call setlocale around strtod calls.
14570         * lib/dia_xml.c: use strtod rather than g_strtod.  We wrap each
14571         call in setlocale(LC_NUMERIC, "C"), so there is no reason to call
14572         the g_strtod wrapper.
14574         * shapes/SDL/: add SDL shapes from Rubens Ramos
14575         <rubens_ramos@yahoo.com>
14577         * acinclude.m4 (DIA_CHECK_CFLAG): fix up macro.
14579         * sheets/Makefile.am (SHEETS): add SDL.sheet to list.
14581         * shapes/MSE/: add Mobile Subscriber Equipment shapes from
14582         W. Michael Petullo <mike@flyn.org>.
14584         * sheets/Makefile.am (SHEETS): add civil.sheet (which got missed
14585         from the 0.86 tarball) and jigsaw.sheet.
14587         * configure.in: add shapes/jigsaw/Makefile to list of generated files.
14589         * shapes/jigsaw/: jigsaw shapes from Martin Hawlisch.
14591         * shapes/network/: add network-additional shapes here.
14593         * sheets/network.sheet: add the network-additional shapes from
14594         Martin Hawlisch <Martin.Hawlisch@bflow.com> to the main network
14595         sheet.
14597 2000-09-30  Fredrik Hallenberg  <hallon@lysator.liu.se>
14599         * configure.in: Updated ALL_LINGUAS
14601         * po/nl.po: Removed newline from translation
14603 2000-09-17  Asbjorn Pettersen  <asbjornP@dualog.no>
14605         * app/commands.c (help_about_callback): Use G_DIR_SEPARATOR_S in 
14606         logo filename generation. 
14608         * lib/dia_dirs.c (dia_get_data_directory): Handle empty subdir better.
14609         Avoiding "//dia_logo.png".
14611 2000-09-16  Asbjorn Pettersen  <asbjornP@dualog.no>
14613         * app/filedlg.c: add include <sys/types.h> to
14614         remove warning. (OS/2)
14616 2000-09-13  Cyrille Chepelov <chepelov@calixo.net>
14618         * objects/chronogram/chronoline_event.c (reparse_clevent):
14619         the __checksum routine was simply bogus. Redone it in a slightly
14620         saner way (reported by Michael Farr <mfarr@cs.latrobe.edu.au>).
14622 2000-09-10  Asbjorn Pettersen  <asbjornP@dualog.no>
14624         * app/create_object.c (create_object_button_press): 
14625         * app/modify_tool.c (click_select_object): 
14626         * lib/object.h: select renamed to selectf to prevent
14627         compiler problems with function select().  OS/2 version.
14629 2000-09-08  Karsten Weiss  <knweiss@gmx.de>
14631         * po/de.po: Updated.
14633 2000-09-07  Karsten Weiss  <knweiss@gmx.de>
14635         * dia.desktop: Added German translation
14636         * app/menus.c: "Diagram Propeties..." -> "Diagram Properties..."
14638 2000-08-29  Manuel de Vega Barreiro <barreiro@arrakis.es>
14640         * configure.in (ALL_LINGUAS): added "es"
14642 2000-08-28  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
14644         * app/magnify.c:
14645         * app/cursor.h:
14646         * app/cursor.c:
14647         * app/scroll_tool.c:
14648         Standardized cursor function get_cursor().  Magnify now has
14649         looking-glass cursor with + and -.
14651         * app/create_object.c (create_object_button_press): 
14652         Newly created connections now snap to connection points even when
14653         off the grid. 
14655 2000-08-17  Daniel Egger  <egger@suse.de>
14657         * app/menus.c: #ifdef'ed some code for the none GNOME
14658         case.
14659         * app/dia_embedd.c: Changed obvious hackery. Can anyone
14660         please have a look at the GNOME UI menu creation? The
14661         gnome-app-helper code is ages old and plainly broken!
14663 2000-08-15  Daniel Egger  <egger@suse.de>
14665         * app/commands.c:
14666         * app/commands.h:
14667         * app/diagram.c:
14668         * app/display.c:
14669         * app/menus.c:
14670         * app/select.c: First big patch to get the menus
14671         working again in the international version. Copied
14672         some code written by Sven and me from GIMP and
14673         thus implemented automatic tearoffmenu creation and
14674         proper translation. I also removed that pseudo
14675         radiomenu hack and cleaned up several translation
14676         hacks which have never really worked. All in all
14677         this is part I of the big menu patch. Enjoy and tell
14678         me if you detect any problems.
14680 2000-08-14  Daniel Egger  <egger@suse.de>
14682         * sheets/UML.sheet: Changed one German translation as
14683         suggested by Heribert Schuetz <hs@heribert-schuetz.de>.
14685 2000-08-10  Fredrik Hallenberg  <hallon@lysator.liu.se>
14687         * app/diapagelayout.c:
14688         * lib/diagramdata.c:
14689         * lib/diagramdata.h:
14690         * lib/Makefile.am:
14691         * lib/paper.c:
14692         * lib/paper.h: honour PAPERCONF env variable and /etc/papersize when
14693         selecting paper size for a new diagram. TODO: Use libpaper if 
14694         available and use gnome_paper-stuff if using GNOME.
14696         * sheets/Electric.sheet: fixed typo.
14697         
14698 2000-08-08  James Henstridge  <james@daa.com.au>
14700         * po/README: added a readme file to tell translators to translate
14701         the .sheet files as well.
14703         * app/commands.c (help_about_callback): fix small bug where we tried
14704         to gdk_bitmap_unref() the mask for the about box image, even though
14705         it was NULL.  Now check for a NULL mask.
14707 2000-08-07  Daniel Egger  <egger@suse.de>
14709         * sheets/*.sheet: Added translations for the name
14710         in the toolbar tab. Brushed up some descriptions 
14711         and some translations a bit.
14713 2000-08-06  James Henstridge  <james@daa.com.au>
14715         * plug-ins/svg/render_svg.c (new_svg_renderer): update public
14716         identifier and dtd url for SVG output.
14717         (new_svg_renderer): fix the output of the viewBox output.  The
14718         second two numbers are the width and height -- not the right
14719         and bottom sides of the box.
14721         * shapes/*/*.shape: update svg namespace URI.
14723         * objects/custom/shape_info.c (load_shape_info): change the
14724         namespace URI for custom shapes yet again to match the Candidate
14725         Recommedation.  It looks like this one will probably be the final
14726         one.
14728         * app/display.c (new_display): remove the code that sets ic and
14729         ic_attr members to NULL, as one of the previous function calls
14730         causes the display to be realised.  This means that the ic gets
14731         lost.  Thanks to Yukihiro Nakai <ynakai@redhat.com> for finding
14732         this one.
14734 2000-08-06  James Henstridge  <james@daa.com.au>
14736         * shapes/Makefile.am (SUBDIRS): add Civil back to list.
14738         * NEWS: fixed date in NEWS file, as I will release today.
14740         * README: updated the README a little.  Added note that Dia is now
14741         a GNU program.
14743         * dia.spec: fix up spec file.
14745         * plug-ins/wpg/wpg.c: changed DIAG_NOTE stuff here as well.
14747         * plug-ins/hpgl/hpgl.c: change Hans's DIAG_NOTE stuff so that we don't
14748         get heaps of warnings when you turn off debugging.
14749         Also made a few other warning fixes.
14751 2000-08-02  James Henstridge  <james@daa.com.au>
14753         * plug-ins/svg/Makefile.am (INCLUDES): add XML_CFLAGS to INCLUDES.
14755         * configure.in: update version number.
14757 2000-08-01  James Henstridge  <james@daa.com.au>
14759         * app/commands.c (help_about_callback): add Hans to about dialog.
14761         * doc/shape.dtd: dtd for shape file format.
14763         * doc/custom-shapes: update doc file about creating custom shapes.
14765         * shapes/*/*.shape: change namespace URI for the SVG portion to the
14766         one for the latest draft.
14768         * shapes/*/*.shape: fix up rect definitions.
14770         * objects/custom/shape_info.c (load_shape_info): recognise newer
14771         namespace tag for SVG.
14772         (parse_svg_node): the rect element should take attributes x, y, width
14773         and height -- not x1,y1,x2,y2.
14775         * plug-ins/svg/render_svg.c (new_svg_renderer): updated doctype
14776         output to use the newest draft DTD.
14778         * plug-ins/svg/svg.c: initialisation code for plugin.
14780         * plug-ins/svg/render_svg.c: move svg export code to a plugin.
14782         * plug-ins/svg/Makefile.am: makefile for svg plugin.
14784         * app/app_procs.c (internal_plugin_init): don't register the svg
14785         export filter here.
14787         * app/Makefile.am (dia_core_files): don't compile in render_svg.[ch]
14789 2000-07-31  James Henstridge  <james@daa.com.au>
14791         * objects/standard/textobj.c (textobj_get_defaults): 
14792         * objects/standard/polygon.c (polygon_get_defaults): 
14793         * objects/standard/image.c (image_get_defaults): 
14794         * objects/standard/ellipse.c (ellipse_get_defaults): 
14795         * objects/standard/box.c (box_get_defaults): 
14796         * objects/standard/beziergon.c (beziergon_get_defaults): 
14797         * objects/flowchart/parallelogram.c (pgram_get_defaults): 
14798         * objects/flowchart/ellipse.c (ellipse_get_defaults): 
14799         * objects/flowchart/diamond.c (diamond_get_defaults): 
14800         * objects/flowchart/box.c (box_get_defaults): 
14801         * objects/custom/custom_object.c (custom_get_defaults): 
14802         * objects/FS/flow.c (flow_get_defaults): 
14803         * objects/FS/flow-poly.c (flow_get_defaults): 
14804         * objects/FS/flow-ortho.c (orthflow_get_defaults): ref and sink the
14805         defaults widget.
14807         * app/defaults.c (defaults_show): don't keep on ref'ing the defaults
14808         widgets for various object types.
14809         (create_dialog): ref and sink the no_defaults_dialog.
14811         * app/preferences.c (prefs_create_dialog): change
14812         gtk_container_border_width call to gtk_container_set_border_width.
14814 2000-07-29  James Henstridge  <james@daa.com.au>
14816         * app/commands.c (view_aa_callback): show a warning dialog if
14817         you start AA mode.
14819         * app/interface.c (fill_sheet_menu): don't add a menu item for
14820         empty sheets.
14822 2000-07-26  James Henstridge  <james@daa.com.au>
14824         * plug-ins/dxf/dxf-export.c: updates from Steffen to fix bug #18677
14826         * app/menus.c: remove edit grid menu item.
14828         * app/commands.[ch] (view_edit_grid_callback): removed.
14830         * app/display.c (new_display): don't initialise removed Grid members.
14832         * app/grid.c: remove unused functions.
14834         * app/grid.h: remove dialog related stuff from Grid structure.
14835         Remove prototypes for dialog functions.
14837         * app/menus.c: add to menus
14838         
14839         * app/commands.[ch] (view_diagram_properties_callback): new command
14840         for showing the diagram properties dialog.
14842         * app/dia-props.[ch]: a new diagram properties dialog.  To replace
14843         the edit grid dialog.
14845 2000-07-25  James Henstridge  <james@daa.com.au>
14847         * app/grid.c (grid_x_update): 
14848         (grid_y_update): as the grid setting is stored with the diagram,
14849         update all displays when a change is made.
14851         * app/modify_tool.c (modify_motion): use new snap_to_grid sig.
14853         * app/create_object.c (create_object_button_press): 
14854         (create_object_motion): use new snap_to_grid signature.
14856         * app/grid.c (grid_draw): use the grid settings in the DiagramData,
14857         and handle invisible grid lines.
14858         (snap_to_grid): use new grid settings.  Also changed signature to
14859         take a DDisplay rather than Grid pointer.
14860         (grid_show_dialog): get the defaults from the correct place.
14862         * app/display.c (new_display): do not set ddisp->grid.width_[xy].
14864         * app/diagram.c (new_diagram): set the grid size defaults from the
14865         user preferences.
14867         * app/load_save.c (diagram_data_save): save grid and guide info to
14868         diagram file.
14869         (diagram_data_load): add guide and grid load support.
14871         * lib/diagramdata.c (new_diagram_data): set the new DiagramData
14872         members.
14874         * lib/diagramdata.h: add members to DiagramData for grid and guide
14875         settings.
14877         * configure.in (BONOBO_LIBS): update configure scripts
14879         * app/dia.oafinfo: oafinfo file for dia embeddables.
14881         * app/dia_embedd.c: add OAF support.
14883 2000-07-24  James Henstridge  <james@daa.com.au>
14885         * plug-ins/wpg/Makefile.am: 
14886         * plug-ins/pstricks/Makefile.am: 
14887         * plug-ins/hpgl/Makefile.am: 
14888         * plug-ins/dxf/Makefile.am: same here.
14890         * plug-ins/cgm/Makefile.am: remove LIBADD.  Dia already links with
14891         the required libraries, and the link line was causing libtool not
14892         to build a shared library on some systems :(
14894         * plug-ins/cgm/cgm.c (write_real): the initial if statement should
14895         be checking x, not n.
14897 2000-07-23  James Henstridge  <james@daa.com.au>
14899         * app/preferences.c (prefs_data): set the "reset tools after
14900         create" preference to true by default.  That seems to be what most
14901         people expect.
14903         * app/interface.c (create_sheets): instead of a notebook, use an
14904         option menu that updates the sheet tools.  The notebook tabs were
14905         getting a bit unwieldly, so the option menu should fix that.  This
14906         also reduces the number of widgets in the tools radio button
14907         group, which should make the UI a little more responsive.
14909 2000-07-19  Fatih Demir <kabalak@gmx.net>
14910         
14911         * configure.in: Added tr to ALL_LINGUAS.
14912                 [ Yeah, we're now having a Turkish translation,
14913                    too. ]
14914         
14915         * dia.desktop: Added the Turkish entries.
14917 2000-07-02  Fredrik Hallenberg  <hallon@lysator.liu.se>
14919         * doc/diagram.dtd: changed string-element so it conforms to the
14920         output from dia.
14922 2000-06-30  Fredrik Hallenberg  <hallon@lysator.liu.se>
14924         * configure.in: added chinese. 
14925         Use AM_PROG_LIBTOOL instead of AC_PROG_LIBTOOL.
14927         * app/app_procs.c:
14928           app/load_save.c:
14929           app/render_svg.c:
14930           lib/dia_xml.c:
14931           lib/plug-ins.c:
14932           lib/sheet.c:
14933           objects/custom/shape_info.c: 
14934           shapes/Circuit/npn.shape:
14935           shapes/Circuit/pnp.shape:
14936           sheets/*.sheet: dia now works with libxml2.
14937         Libxml2 is a bit more picky when parsing xml and reported errors on all 
14938         sheet files because they use non ascii characters (added 
14939         encoding="iso-8859-1"). Also "xml:lang=en@layman" is not proper xml so 
14940         I commented out these.
14942 2000-06-30  Christopher R. Gabriel  <cgabriel@linux.it>
14944         * configure.in (ALL_LINGUAS): added Italian
14946 2000-06-27  Sung-Hyun Nam  <namsh@lgic.co.kr>
14948         * configure.in (ALL_LINGUAS): added Korean
14950 2000-06-25  James Henstridge  <james@daa.com.au>
14952         * objects/flowchart/parallelogram.c (pgram_create): use default font
14953         and add properties interface support.
14955         * objects/flowchart/ellipse.c (ellipse_create): use default font and
14956         add properties interface support.
14958         * objects/flowchart/diamond.c (diamond_create): use default font and
14959         add properties interface code.
14961         * objects/flowchart/box.c (box_create): use default font.
14963         * objects/custom/custom_object.c (custom_create): use default font
14964         here too.
14966         * objects/standard/textobj.c (textobj_create): update to use default
14967         font.
14969         * lib/attributes.c: add implementations.
14971         * lib/attributes.h (attributes_[gs]et_default_font): add function
14972         prototypes for setting/getting a default font.
14974 2000-06-24  James Henstridge  <james@daa.com.au>
14976         * app/paginate_gnomeprint.h: updated prototype.
14978         * app/paginate_gnomeprint.c (paginate_gnomeprint): update to use
14979         diagram page settings.
14981         * objects/standard/beziergon.c (beziergon_copy): same here.
14983         * objects/standard/polygon.c (polygon_copy): copy the fill colour
14984         as well.
14986         * app/undo.h: 
14987         * app/tool.h (tool_options_dialog_show): 
14988         * app/scroll_tool.h (free_scroll_tool): 
14989         * app/render_svg.h: 
14990         * app/render_libart.h (renderer_libart_copy_to_window): 
14991         * app/render_gdk.h (renderer_gdk_copy_to_window): 
14992         * app/properties.h (properties_hide_if_shown): 
14993         * app/preferences.h (prefs_load): 
14994         * app/object_ops.h: 
14995         * app/modify_tool.h (free_modify_tool): 
14996         * app/magnify.h (free_magnify_tool): 
14997         * app/linewidth_area.h (linewidth_area_create): 
14998         * app/layer_dialog.h: 
14999         * app/handle_ops.h (handle_is_clicked): 
15000         * app/group.h: 
15001         * app/grid.h (grid_destroy_dialog): 
15002         * app/defaults.h (defaults_show): 
15003         * app/cut_n_paste.h (cnp_exist_stored_objects): 
15004         * app/create_object.h (free_create_object_tool): 
15005         * app/connectionpoint_ops.h (diagram_unconnect_selected): 
15006         * app/commands.h: 
15007         * app/color_area.h (color_area_create): 
15008         * app/app_procs.h (app_is_embedded): remove extern keyword from
15009         function prototypes.
15011         * lib/text.h: 
15012         * lib/sheet.h (load_all_sheets): 
15013         * lib/render_store.h: 
15014         * lib/render_object.h (render_object_load): 
15015         * lib/polyshape.h (polyshape_closest_segment): 
15016         * lib/poly_conn.h (polyconn_closest_segment): 
15017         * lib/orth_conn.h: 
15018         * lib/object.h: 
15019         * lib/objchange.h (new_object_state_change): 
15020         * lib/neworth_conn.h (neworthconn_add_segment): 
15021         * lib/message.h (message_error): 
15022         * lib/lazyprops.h: 
15023         * lib/geometry.h: 
15024         * lib/font.h (font_descent): 
15025         * lib/focus.h (remove_focus): 
15026         * lib/element.h: 
15027         * lib/diagramdata.h: 
15028         * lib/dia_xml.h (data_add_composite): 
15029         * lib/dia_image.h: 
15030         * lib/connpoint_line.h: 
15031         * lib/connection.h (connection_move_handle): 
15032         * lib/color.h: 
15033         * lib/attributes.h (attributes_set_default_line_style): 
15034         * lib/arrows.h (arrow_draw): remove extern keyword from function
15035         definitions.  It is not required for functions.
15037         * plug-ins/dxf/Makefile.am (INCLUDES): 
15038         * plug-ins/pstricks/Makefile.am (INCLUDES): 
15039         * plug-ins/cgm/Makefile.am (INCLUDES): 
15040         * objects/SADT/Makefile.am (INCLUDES): 
15041         * objects/chronogram/Makefile.am (INCLUDES): 
15042         * objects/GRAFCET/Makefile.am (INCLUDES): 
15043         * objects/flowchart/Makefile.am (INCLUDES): 
15044         * objects/sybase/Makefile.am (INCLUDES): 
15045         * objects/FS/Makefile.am (INCLUDES): 
15046         * objects/standard/Makefile.am (INCLUDES): 
15047         * objects/network/Makefile.am (INCLUDES):
15048         * objects/UML/Makefile.am (INCLUDES): same here.
15050         * objects/ER/Makefile.am: changed inclusion of some macros to
15051         variables.
15053         * lib/plug-ins.c (dia_register_plugins_in_dir): use a few defines to
15054         handle the plug in extension, rather than have all the #ifdef's in
15055         the code.
15057         * plug-ins/Makefile.am: add renderer.inc to dist.
15059         * plug-ins/dxf/dxf-import.c: Updates from Steffen Macke.
15061 2000-06-11  Asbjorn Pettersen  <asbjornP@dualog.no>
15063         * lib/plug-ins.c: Handle OS/2 dll's too.
15065 2000-06-07  James Henstridge  <james@daa.com.au>
15067         * app/plugin-manager.c (get_plugin_manager): set some table
15068         packing options to make it look a little nicer.
15070         * plug-ins/hpgl/Makefile.am, plug-ins/wpg/Makefile.am: added
15071         makefiles for these plug-ins.
15073         * plug-ins/{hpgl,wmf,wpg}/*: removed dos style cariage returns.
15075         * configure.in: added hpgl and wpg directories to build.  Added
15076         note about whether gnome-print support was enabled, and noted that
15077         it is not recommended.
15079 2000-06-06  James Henstridge  <james@daa.com.au>
15081         * plug-ins/{hpgl,wmf,wpg}/*: Hans Breuer's plug-ins.  They still need
15082         a little work, but I am checking them in so I don't lose them.
15084 2000-06-01  James Henstridge  <james@daa.com.au>
15086         * objects/standard/arc.c: added extra properties.
15088         * lib/beziershape.c (beziershape_closest_handle): fix a bug where I
15089         was using the wrong index into the handles array.  This gets corner
15090         type changing working correctly.
15092         * lib/properties.[ch]: add support for BezPoint's and BezPoint arrays
15093         to properties code (no editing or loading yet though).  Also added
15094         support for point array manipulation through the offsets interfaces.
15096         * lib/Makefile.am (INCLUDES): added include of gdk-pixbuf 
15098         * app/interface.c (origin_button_press): changes so the origin
15099         button doesn't grab the pointer when we pop up the menu.
15101         * app/commands.c (help_about_callback): fix small memory leak in
15102         about box code.
15104         * app/menus.c (menus_init): fixed breakage I introduced in the non
15105         gnome menus when I was doing the menu changes.  The tearoffs work
15106         really nicely in plain gtk mode as well.
15108         * objects/standard/beziergon.c (beziergon_create): changed the
15109         returned handles to match the handle numbering changes.  Now
15110         segment addition and removal works correctly with undo!
15112         * lib/beziershape.c: various changes to the code.  Changed the
15113         numbering of handles, and fixed the segment removal code.
15115 2000-05-31  James Henstridge  <james@daa.com.au>
15117         * objects/standard/beziergon.c: remove connection point handling.
15118         There is still a bit of work to be done to get adding and removing
15119         of segments working correctly.
15121         * lib/beziershape.c: add connection point handling to beziershape.
15122         I set it for two connection points per segment.
15124 2000-05-30  James Henstridge  <james@daa.com.au>
15126         * objects/standard/polygon.c: don't do connectionpoint handling.
15128         * lib/polyshape.c: changed to handle connection points internally.
15129         Also, don't worry about connections to handles on polyshape, as
15130         all handles are non connectable.
15132 2000-05-30 Ville Hautamaki <villeh@cs.joensuu.fi>
15134         * configure.in: Added finnish
15135         
15136 2000-05-30  James Henstridge  <james@daa.com.au>
15138         * sheets/*.sheet: translation updates to the .sheet files.
15140         * po/fr.po: updated po file from Christophe Merlet.
15142         * menus.h: removed prototypes for functions which have been removed.
15144 2000-05-29  James Henstridge  <james@daa.com.au>
15146         * app/layer_dialog.c (layer_dialog_set_diagram): set the selected
15147         item in the option menu when changing selected diagram.
15149         * app/dia_embedd.c (view_factory): fix up function to work with new
15150         menus API.
15152         * app/disp_callbacks.c (ddisplay_realize): remove call to
15153         display_set_active from here.
15154         (ddisplay_canvas_events): move call here.  This gets rid of all the
15155         warnings, as the renderer has been fully set up correctly at this
15156         point.
15158         * app/menus.c (menus_init): add the tearoff item to the start of the
15159         right click menu.
15161         * app/app_procs.c (create_user_dirs): we don't need to create the
15162         menus directory anymore.
15164         * app/disp_callbacks.c (ddisplay_popup_menu): it should not be
15165         necessary to update the menu state here, as it was done when the
15166         active display was set.
15168         * app/display.c (display_set_active): update the menu state when
15169         changing active displays.
15171         * app/interface.c (origin_button_press): set the display as active
15172         when a click is made on the menu button.
15174         * app/menus.c (menus_init): set up a quit function to save the accels
15175         at exit.
15176         Add tearoff items for the non GNOME menus, add accelerators for
15177         several GNOME menus.
15179         * app/disp_callbacks.c (ddisplay_popup_menu): get the menu with
15180         menus_get_image_menu().
15182         * app/menus.c (menus_get_item_from_path): use display_menus here
15183         rather than ddisp->popup.
15185         * app/display.h: remove the popup member in the DDisplay structure.
15187         * app/interface.c: remove option of not using wrap box.
15188         (create_toolbox): change to always use menus_get_toolbox_menubar
15189         even when using gnome menus.
15190         (create_display_shell): use menus_get_image_menu to load accelerators
15191         only -- not the actual popup menu.
15193         * app/menus.c (menus_init): new function to create the menus.
15194         (menus_get_toolbox_menubar): use this function whether gnome is
15195         in use or not.  Changed to use menus_init.
15196         (menus_get_image_menu): same here.  Also, now this function always
15197         returns the same menu, rather than a new one each time.
15198         (menus_init): read a menurc file to load accelerators here.
15200 2000-05-28  James Henstridge  <james@daa.com.au>
15202         * app/display.c (ddisplay_really_destroy): unset active display if
15203         active display is destroyed.
15204         (ddisplay_active): simplify function to return active_display as set
15205         by display_set_active.  This allows using a pinned menu with any
15206         display -- not just the one it was popped up from.
15207         (display_set_active): notify the layer dialog of change of diagrams
15208         when active diagram changes.
15210         * app/disp_callbacks.c (ddisplay_canvas_events): set active display
15211         on button and key presses.
15212         (ddisplay_realize): set active display on realize.
15214         * app/display.c (display_set_active): simple implementation of this
15215         function.
15217         * app/display.h (display_set_active): add prototype for setting
15218         the active display.
15220         * app/interface.c (create_display_shell): don't give focus to the
15221         menu button.
15223         * app/menus.c: fix up menus for Beziergon.
15225         * app/interface.c (create_display_shell): make the widget in the
15226         top left corner a button that can be used to pop up the right click
15227         menu, like in gimp and sketch.
15229         * app/disp_callbacks.c (ddisplay_popup_menu): new function to popup
15230         the display menu.
15232         * objects/standard/beziergon.c (beziergon_set_corner_type_callback):
15233         add code to set corner types for beziergon.
15235         * lib/beziershape.c (beziershape_set_corner_type): fix up corner type
15236         setting code.
15237         (beziershape_move_handle): use the previous corner type for right
15238         controls.
15240         * app/interface.c (tool_data): add beziergon to toolbox.
15242         * objects/standard/standard.c (dia_plugin_init): initialise the new
15243         Beziergon object type.
15245         * objects/standard/beziergon.c: an object based on BezierShape.
15247         * lib/dummy_dep.h (dummy_dep): added to dummy_dep.
15249         * lib/beziershape.[ch]: new files implementing a bezier shape.
15251 2000-05-26  James Henstridge  <james@daa.com.au>
15253         * lib/text.c (text_key_event): handle multibyte inserts.
15254         (text_key_event): also add home and end keybindings.
15256         * app/interface.c (create_display_shell): connect handlers for
15257         focus_in_event, focus_out_event, realize and unrealize signals.
15259         * app/display.[ch] (new_display): initialise input context members.
15261         * app/disp_callbacks.[ch]: added XIM support here.
15263         * lib/font.c (suck_font): the black and white pixel values should be
15264         taken from a 1 bit colormap rather than the default colormap.
15266         Hans Breuer's Windows patches ...
15268         * lib/font.c: use Courier New for fixed width font on windows
15269         machines.
15271         * lib/dia_image.h: change to "struct _DiaImage".
15273         * lib/dia_image.c: change "struct DiaImage" to "struct _DiaImage"
15275         * app/disp_callbacks.c (ddisplay_canvas_events): allow ctrl+right
15276         mouse button for object menu.  This will make two button mouse owners
15277         happier.
15279 2000-05-25  James Henstridge  <james@daa.com.au>
15281         * app/filedlg.c (file_open_ok_callback): use diagram_load here.
15283         * app/app_procs.c (app_init): add extra NULL argument to call of
15284         diagram_load.
15286         * app/load_save.h: remove prototype.
15288         * app/load_save.c: remove diagram_data function here.
15290         * app/diagram.h: added prototype.
15292         * app/diagram.c (diagram_load): new function here, which uses import
15293         filters.
15295         * plug-ins/dxf/dxf.c: register the import filter as well.
15297         * plug-ins/dxf/dxf-import.c: added (unfinished) DXF import filter from
15298         Steffen Macke <macke@heini.fbbwu.fh-lueneburg.de>
15300         * objects/standard/line.c: add start_point and end_point properties
15301         to standard line object.
15303 2000-05-21  James Henstridge  <james@daa.com.au>
15305         * app/paginate_psprint.c: added missing include of locale.h.
15307         * objects/custom/custom_object.c (custom_draw): use fabs rather than
15308         abs for scaling factors.
15309         (custom_distance_from): same here.
15311         * dia.spec: make sure rpm doesn't bomb out when LINGUAS isn't set.
15313 2000-05-18  James Henstridge  <james@daa.com.au>
15315         * po/POTFILES.in: updated POTFILES.in.
15317         * dia.spec: incremented version number in spec file.
15319         * NEWS: added (lots of) news items for the 0.85 release.
15321         * app/preferences.c (prefs_save): set LC_NUMERIC to C while writing
15322         the config file.
15324         * configure.in: updated version number here.
15326         * app/Makefile.am (run_dia.sh): include plug-ins in the lib path.
15328 2000-05-17  James Henstridge  <james@daa.com.au>
15330         * app/app_procs.c (internal_plugin_init): register the native import
15331         filter.
15333         * app/load_save.c (diagram_data_load, diagram_load): split this
15334         function into two -- one that does all the work on the DiagramData
15335         structure, and the other that provides compatibility with the old
15336         function.
15337         (dia_import_filter): use diagram_data_load to define an import
15338         filter.
15340         * app/diagram.h (new_diagram): added const to prototype.
15342         * app/filedlg.c (file_open_callback): change to use new import filter
15343         code.
15345         * lib/filter.c: added import filter management functions.
15347         * lib/filter.h: added prototypes for import filter interface.
15349         * app/commands.c (help_about_callback): updated about dialog to
15350         contain a few more names.
15352 2000-05-16  James Henstridge  <james@daa.com.au>
15354         * configure.in (Configuration): added a status message to the end of
15355         the configure script to give the user some idea of what was
15356         configured.
15358         * plug-ins/dxf/Makefile.am: Makefile for new plugin.
15360         * plug-ins/dxf/dxf.c (dia_plugin_init): added file to initialise the
15361         plugin.
15363         * plug-ins/dxf/dxf-export.c: new file -- Steffen Macke's DXF export
15364         filter for dia.
15366         * configure.in (AM_PATH_LIBART): use the check function provided
15367         with libart rather than our own code.  It is more reliable, and
15368         it only requires that people who build out of CVS have libart.m4
15369         installed (not necessarily all of libart).
15370         (AM_PATH_GDK_PIXBUF): same here for gdk-pixbuf.
15372 2000-05-12  Andreas Hyden  <a.hyden@cyberpoint.se>
15374         * dia.desktop: Added Swedish translation.
15376 2000-05-09  James Henstridge  <james@daa.com.au>
15378         * lib/dia_xml.c: you can't free a const pointer, so remove const
15379         from variable definitions.
15381         Explicitely set LC_NUMERIC where needed, as sometimes it isn't
15382         initialised correctly.
15384         * app/render_svg.c (export_svg): set locale to C.
15386         * app/paginate_psprint.c (paginate_psprint): set locale to C.
15388         * app/render_eps.c (export_eps): set locale to C for EPS export.
15390         * lib/dia_xml.c (data_add_real): change to C locale for snprintf call.
15391         (data_add_point): same here.
15392         (data_add_rectangle): same here.
15393         (data_real): use g_strtod to convert strings to real numbers, so that
15394         locales are taken into account.
15395         (data_point): same here.
15396         (data_rectangle): same here.
15398         * AUTHORS: added Henk and Jacek to authors file.
15400         Daniel Egger's code cleanups.
15402         * app/select.c (select_invert_callback): remove unused variable.
15404         * app/plugin-manager.c (get_plugin_manager): fix typo.
15406         * app/load_save.c (read_connections, write_objects): 
15407         (write_connections): made some functions static.
15409         * app/interface.c (toolbox_delete, toolbox_destroy): made some
15410         functions static.
15412         * app/filedlg.c (file_export_callback): remove unused variable.
15414         * app/app_procs.c: various warning fixes.
15416         Integrating Jacek Pliszka's pstricks export filter.
15418         * plug-ins/pstricks/pstricks.c: code to initialise the plugin.
15420         * plug-ins/pstricks/render_pstricks.[ch]: Jacek Pliszka's pstricks
15421         renderer (with a few small modifications by me).
15423         * plug-ins/pstricks/Makefile.am: new makefile for pstricks plug-in.
15425         * plug-ins/Makefile.am (SUBDIRS): add pstricks subdirectory.
15427 2000-05-07  Alexander Larsson  <alla@lysator.liu.se>
15429         * configure.in:
15430         * sheets/Makefile.am:
15431         * shapes/Makefile.am:
15432         * shapes/Civil/Makefile.am:
15433         * sheets/civil.sheet:
15434         * shapes/Civil/*:
15435         Added civil/hydraulic/structural engineering objects from
15436         sdteffen <macke@heini.fbbwu.fh-lueneburg.de>.
15437         
15438 2000-05-07  Alexander Larsson  <alla@lysator.liu.se>
15440         * objects/FS/flow-poly.c:
15441         * objects/FS/flow.c:
15442         Fix division by zero in point_normalize().
15443         Patch by David Thompson <dcthomp@mail.utexas.edu>
15445 2000-04-27  Lars Clausen  <lrclause@cs.uiuc.edu>
15447         * lib/arrows.c:
15448         * lib/bezier_conn.c:
15449         * lib/connpoint_line.c:
15450         Added checks for zero-length lines before calls to point_normalize.
15452 2000-04-24  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
15454         * app/preferences.c (prefs_data): Changed
15455         reversed_dragging_intersects to not make the dialog ridiculously
15456         wide.
15457         
15458 2000-04-22  James Henstridge  <james@daa.com.au>
15460         Hans's win32 patches:
15462         * app/export_png.c: include message.h
15463         * app/interface.c: include dia_dirs.h
15464         * app/linewidth_area.c: check for rint
15465         * app/main.c: include interface.h
15466         * app/paginate_psprint.c: remove unused variable.
15467         * app/preferences.c: include message.h
15468         * app/render_svg.c: include stdlib.h
15469         * app/select.c: include object_ops.h
15470         * lib/dia_dirs.c: miscelaneous fixes for win32.
15471         * lib/dia_image.c: include string.h
15472         * lib/plug-ins.c: look for .dll files rather than .la files on win32.
15473         * lib/properties.c: include stdlib.h
15474         * lib/properties.h: define extra data for standard properties as
15475         static variables on win32 (to get around dynamic linker problems).
15476         * objects/standard/polygon.c: polygon_create_change missing return
15477         statement.
15479 2000-04-18  Pablo Saratxaga <pablo@mandrakesoft.com>
15481         * configure.in (ALL_LINGUAS): added Catalan
15483 2000-04-18  James Henstridge  <james@daa.com.au>
15485         * objects/standard/bezier.c (bezierline_get_object_menu): add a
15486         separator to the object menu between the add/remove segment items
15487         and the corner type items.
15488         (bezierline_get_object_menu): add code to disable the menu item for
15489         the current corner type.  Really just a cosmetic change.
15491         * app/disp_callbacks.c (create_object_menu): handle DiaMenuItems with
15492         a NULL for the label or with no associated callback.
15494         * objects/standard/bezier.c (bezierline_menu_items): use the
15495         enumeration values rather than numeric values for the corner types.
15497         * lib/bezier_conn.[ch]: added a corner_types member to the BezierConn
15498         structure, and add code to handle it.  Also, don't save the corner
15499         types inline in the bez_points node.  The way it is conditionally
15500         including the element just feels like it will break.
15502         * lib/geometry.h (BezPoint): removed the corner_type stuff from
15503         BezPoint.  The corner type stuff is a user interface level idea rather
15504         than something required by the renderer, so should be taken care of
15505         at the object level.
15507 2000-04-17  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
15509         * configure.in: Fixed some problems with the gdk-pixbuf/imlib
15510         checks.  Weren't able to reproduce original bug, tough.
15512 2000-04-16  Cyrille Chepelov  <chepelov@calixo.net>
15514         * sheets/Electric.sheet:
15515         * sheets/Contact.sheet:
15516         * sheets/Pneumatic.sheet:
15517         * sheets/Circuit.sheet: sprayed some <br/>'s around.
15518         (added a few French translations in the last file)
15519         
15520 2000-04-16  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
15522         * lib/geometry.h: 
15523         * lib/bezier_conn.h: 
15524         * objects/standard/bezier.c: 
15525         * lib/bezier_conn.c: Support for cuspy, smooth and symmetric
15526         bezier points.  Only one minor problem known:  Menus are active
15527         for endpoints minor handles.
15528         11:28: Save and load now works, too.
15529         (bezierconn_closest_major_handle): 12:03: New function to get the
15530         non-control point handle associated with the nearest control
15531         point.  
15532         Also fixed the menu activation problem, and made remove_segment
15533         not remove the endpoint.
15535 2000-04-15  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
15537         * configure.in: Added check for gdk-pixbuf being >= 0.7.0 since
15538         new API is in use.
15540 2000-04-15  Asbjorn Pettersen  <asbjornP@dualog.no>
15542         * lib/plug-ins.c: Added <sys/types.h> and moved <fcntl.h> below
15543         <sys/stat.h>.   OS/2 patch.
15545 2000-04-15  James Henstridge  <james@daa.com.au>
15547         * objects/FS/flow-ortho.c, objects/FS/function.c: Applied David
15548         Thompson's patch that adds undo support to the function structure
15549         diagram objects.
15551 2000-04-14  James Henstridge  <james@daa.com.au>
15553         * objects/custom/custom_object.c (custom_distance_from): new
15554         implementation of distance algorithm that actually takes the
15555         display list into account when calculating the distance.  Much nicer
15556         than a simple bounding box.
15558 2000-04-13  Lars Clausen  <lrclause@cs.uiuc.edu>>
15560         * lib/geometry.c (line_crosses_ray): Fixed division by zero bug
15562 2000-04-12  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
15564         * objects/standard/polygon.c: Start of polygons own changes (for
15565         connectionpoints).  Need to do seperate changes in polyshape, too,
15566         rather than reuse the bezier changes.
15568 2000-04-13  James Henstridge  <james@daa.com.au>
15570         * lib/dia_image.c (dia_image_draw): use the new enumeration values
15571         from after the gdk-pixbuf cleanup.
15573         * lib/geometry.c (bez_point_distance_and_ray_crosses): fix up limit
15574         on for loop.  Last set of coefficients were not beeing calculated,
15575         which caused a bit of breakage.
15577         * lib/bezier_conn.c (bezierconn_closest_segment): use the new
15578         functions in geometry.c for calculating the closest segment.
15579         (bezierconn_distance_from): use distance_bez_line_point to calculate
15580         the distance.
15582         * lib/geometry.c (distance_bez_line_point): new function to calculate
15583         the distance from an open bezier line to a point.
15584         (distance_bez_shape_point): new function to calculate the distance
15585         from a closed bezier shape.
15586         (distance_ellipse_point): new function to calculate the distance from
15587         a filled ellipse to a point.
15589         * lib/geometry.h (BezPoint): moved this structure here from render.h
15591 2000-04-12  James Henstridge  <james@daa.com.au>
15593         * lib/geometry.c (distance_bez_seg_point): new function to calculate
15594         the distance from a bezier segment.
15596         * lib/polyshape.c (polyshape_distance_from): use distance_polygon_point
15597         to calculate the distance from the object.
15599         * lib/geometry.c (distance_polygon_point): function for calculating
15600         the distance from a polygon to a point.
15602 2000-04-12  Cyrille Chepelov  <chepelov@calixo.net>
15604         * app/interface.c:
15605         * lib/sheet.[ch]: added a <br/> tag in sheet files, so that line 
15606         breaks can be inserted in the tool box. 
15608         * doc/sheet.dtd: updated the DTD
15609         * sheets/GRAFCET.sheet: tried <br/> on that sheet (more to come).
15610         
15611 2000-04-12  James Henstridge  <james@daa.com.au>
15613         * app/plugin-manager.c (get_plugin_manager): use the GTK_DIALOG
15614         macro if the dialog is a GtkDialog :(
15616 2000-04-11  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
15618         * objects/standard/polygon.c: Connectionpoints now properly
15619         managed in a GList.  As far as I can tell, this will not dieturb
15620         the order (but I have the nagging doubt...)
15622         * lib/polyshape.c: No longer knows about connectionpoints.
15624 2000-04-11  James Henstridge  <james@daa.com.au>
15626         * app/Makefile.am: fix makefile for bonobo build.
15628         * configure.in: fix checks for bonobo.
15630         * app/menus.c: added entries for the plugin manager.
15632         * app/Makefile.am (dia_core_files): added plugin manager to files
15633         list.
15635         * app/plugin-manager.[ch]: the plugin manager dialog.
15637         * app/display.c (display_update_menu_state): set the antialiased
15638         menu entry to the correct value.
15640 2000-04-11  Cyrille Chepelov  <chepelov@calixo.net>
15642         * objects/custom/custom_object.c: not all renderers like ellipses with
15643         negative dimensions. This could cause ellipses to disappear when using
15644         the flip_h and flip_v functions.
15646         * samples/grafcet.dia: fixed speling and correctness.
15647         
15648 2000-04-11  James Henstridge  <james@daa.com.au>
15650         * lib/plug-ins.[ch]: added more accessors for use by a plugins dialog.
15651         exposed the dia_plugin_load and dia_plugin_unload functions.
15653         * lib/plug-ins.c (plugin_load): change plugin_load to work on an
15654         already created PluginInfo structure.
15656         * app/app_procs.c (app_exit): call dia_pluginrc_write() to write
15657         the pluginrc file.
15659         * lib/sheet.c: fix up call to dia_config_filename.
15661         * lib/plug-ins.[ch]: started writing code for handling a pluginrc
15662         file.  This would save information such as which plugins not to
15663         load during startup.
15665 2000-04-09  James Henstridge  <james@daa.com.au>
15667         * lib/sheet.c: use dia_config_filename to resolve file in ~/.dia.
15669 2000-04-10  Alexander Larsson  <alla@lysator.liu.se>
15671         * lib/plug-ins.c (dia_register_plugins):
15672         Don't free the value returned from g_getenv.
15674 2000-04-09  Anders Carlsson  <andersca@gnu.org>
15676         * app/preferences.h: Add reverse_rubberbanding_intersects preference variable.
15678         * app/preferences.c (prefs_data): Add reverse_rubberbanding_intersects preference data.
15680         * app/modify_tool.c (modify_button_release): If rubberbanding is done from 
15681         right to left, select objects that intersect the rubberbanding rectangle
15682         instead of selecting objects that are in the rectangle.
15684         * lib/diagramdata.c (layer_find_objects_intersecting_rectangle): Add function.
15686         * lib/diagramdata.h: Likewise.
15689 2000-04-09  James Henstridge  <james@daa.com.au>
15691         * lib/plug-ins.[ch]: add copyright messages to files.
15693         * plug-ins/cgm/cgm.c (dia_plugin_init): convert plugin over to new
15694         plugin interface.
15696         * objects/sybase/sybase.c (dia_plugin_init): 
15697         * objects/network/network.c (dia_plugin_init): 
15698         * objects/flowchart/flowchart.c (dia_plugin_init): 
15699         * objects/custom/custom.c (dia_plugin_init): 
15700         * objects/chronogram/chronogram.c (dia_plugin_init): 
15701         * objects/UML/uml.c (dia_plugin_init): 
15702         * objects/SADT/sadt.c (dia_plugin_init): 
15703         * objects/GRAFCET/grafcet.c (dia_plugin_init): 
15704         * objects/FS/fs.c (dia_plugin_init): 
15705         * objects/ER/er.c (dia_plugin_init): updated plugin load code for
15706         object libraries.
15708         * objects/standard/standard.c (dia_plugin_init): change over to new
15709         plugin interface.
15711         * lib/plug-ins.h (DIA_PLUGIN_CHECK_INIT): added a macro to define
15712         the version checker for plugins.
15714         * app/app_procs.c: remove plugin loading code from here, and use
15715         code from plug-ins.[ch].  Also move registration of internal
15716         objects/filters to a `builtin' plugin.
15718         * lib/Makefile.am (libdia_a_SOURCES): added plug-ins.[ch] to library.
15720         * configure.in: use AC_PROG_LIBTOOL rather than AM_PROG_LIBTOOL.
15722         * app/Makefile.am (EXTRA_DIST): you can't include a conditionally
15723         defined variable in EXTRA_DIST.
15725         * app/preferences.h: removed dia_config_filename from header.
15727         * app/preferences.c: removed dia_config_filename function.
15729         * lib/dia_dirs.c (dia_config_filename): moved function over to this
15730         file.  Also changed implementation slightly so that it should work
15731         on the win32 port correctly (and use NT home directories).
15733         * lib/dia_dirs.h (dia_config_filename): move dia_config_filename where
15734         it should have been.
15736         * lib/plug-ins.[ch]: new plugin loading code.
15738 2000-04-08  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
15740         * objects/standard/polygon.c: Fixed startup crash bug (do'h!).
15742         * lib/polyshape.c: Fix closest segment finding, exposes deeper
15743         bugs in adding corners to 'wraparound' segment.
15745         * objects/standard/polygon.c: Added connection points (fixed so
15746         far), set menu sensitivity.
15748         * lib/polyshape.c: Changed to box-style handles, fixed for start
15749         and ends not being special, added initial connections,
15751         * lib/dummy_dep.h: Added polyshape (gotcha!)
15753         * objects/standard/pixmaps/ellipse.xpm: 
15754         * objects/standard/pixmaps/box.xpm: 
15755         Filled element pixmaps with white.
15757         * lib/polyshape.c: 
15758         * objects/standard/polygon.c: 
15759         * lib/polyshape.h: 
15760         * objects/standard/standard.c: 
15761         * objects/standard/Makefile.am (libstandard_objects_la_SOURCES): 
15762         * lib/Makefile.am (libdia_a_SOURCES): 
15763         * app/menus.c: 
15764         * app/interface.c (tool_data): 
15765         Added Standard/Polygon object and PolyShape lib object.  Still
15766         needs inside grab and connection points.
15768         * app/commands.c (help_about_callback): Now uses gdk-pixbuf if
15769         available. 
15771         * configure.in: Made imlib a fallback if gdk-pixbuf is absent or
15772         not wanted.
15774         * app/app_procs.c (app_init): Moved gtk_init outside #ifdef, moved
15775         if (argv) outside ifdefs.
15777 2000-04-04  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
15779         * objects/standard/image.c (image_set_props): 
15780         Aspect ratio is back in town.
15782         * app/Makefile.am (dia_LDADD): 
15783         * acconfig.h: 
15784         * configure.in: 
15785         Check for gdk_pixbuf (by default disabled, for now)
15787         * app/render_eps.c (draw_image): 
15788         * app/render_libart.c (draw_image): 
15789         * app/render_gnomeprint.c (draw_image): 
15790         Support for alpha mask in rendering.  Color postscript, too.
15792         * lib/dia_image.c: 
15793         * lib/dia_image.h: 
15794         Support for gdk_pixbuf and proper masking for exports.
15796 2000-04-01  Kjartan Maraas  <kmaraas@online.no>
15798         * sheets/*.sheets: Updated Norwegian translations.
15799         
15800 2000-03-30  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
15802         * lib/text.c (text_insert_char): 
15803         * lib/render_store.c (add_data): 
15804         Made realloc double the alloced space rather than add
15805         a fixed amount, to reduce memory stress.
15807         * app/select.c: Added new select method 'Transitive'
15808         that select every reachable (by connections) object.
15810 2000-03-27  Kjartan Maraas  <kmaraas@online.no>
15812         * dia.desktop: Added Norwegian translation.
15813         
15814 2000-03-26  Alexander Larsson  <alla@lysator.liu.se>
15816         * app/render_eps.c:
15817         * app/render_svg.c:
15818         Don't dereference NULL pointer if the renderer
15819         couldn't open the file. Fix by Lars Clausen.
15820         Bug reported by Martin Chisholm <b1mt@unb.ca>
15821         
15822 2000-03-26  Alexander Larsson  <alla@lysator.liu.se>
15824         * dia.desktop:
15825         * po/pt.po:
15826         Updated pt translation from Pedro Morais <pmmm@rnl.ist.utl.pt>
15828 2000-03-25  Alexander Larsson  <alla@lysator.liu.se>
15830         * app/dia.gnorba (location_info):
15831         Changed to correct executable name.
15833 2000-03-25  Alexander Larsson  <alla@lysator.liu.se>
15835         * app/app_procs.c:
15836         Don't do any argument parsing or initialization
15837         if argv==NULL.
15839         * app/dia_embedd.c:
15840         Call init_server_factroy before app_init.
15841         Call app_init with argv==NULL
15842         Now we don't get any critical error on startup.
15844         * configure.in:
15845         Add Electric and Pneumatic to makefile list.
15846         
15847 2000-03-24  Cyrille Chepelov <chepelov@calixo.net>
15849         * shapes/Electric/*:
15850         * sheets/Electric.sheet:
15851         Add some Electric circuit shapes.
15853         * shapes/Pneumatic/*:
15854         * sheets/Pneumatic.sheet:
15855         Add some Pneumatic & Hydraulic circuit shapes
15856         (both sheets are still incomplete, though feature enough 
15857         things for basic circuits).
15859         * shapes/Contact/l_*.(xpm|shape):
15860         * sheets/Contact.sheet
15861         * shapes/Contact/Makefile.am
15862         made the older electric circuit shapes in Contact obsolete (disabled
15863         them in the sheet, made that sheet Ladder only). Fixed the makefile
15864         for forgotten items.
15865         
15866 2000-03-24  Alexander Larsson  <alla@lysator.liu.se>
15868         * app/Makefile.am:
15869         Add support for Dia bonobo component.
15870         Currently a bit raw, so it's commented out.
15871         
15872         * app/dia_embedd.c:
15873         * app/dia.gnorba:
15874         New files for embedding dia.
15875         The menu disabling hack is a bit gross. Esp. for GNOME.
15877         * app/app_procs.h:
15878         Add new function app_is_embedded();
15880         * app/diagram.c:
15881         Don't destroy diagram when last display is destroyed if embedded.
15882         
15883         * app/display.c:
15884         Change initialization of display so it works with embedding.
15886         * app/display.h:
15887         Clarify comment about display destruction.
15889         * app/interface.[ch]:
15890         Added top_level_window argument to create_display_shell.
15891         Don't open a top-level window if embedding.
15892         Don't quit app if trying to close toolbox window when embedding.
15893         Add toolbox_show() and toolbox_hide().
15895         * app/main.c:
15896         Added app_is_embedded() function (just returns false).
15897         Added toolbox_show() call in main().
15899         * app/menus.c:
15900         Added code for getting toolbox menus. This is used to
15901         hide some menu items when running embedded.
15902         
15903         * app/app_procs.c:
15904         Include sheet.h to remove warning.
15906         * objects/UML/association.c:
15907         Clarify association direction text.
15908         
15909 2000-03-16  Fredrik Hallenberg  <hallon@lysator.liu.se>
15911         * dia.1
15912         Fixed man page so whatis parsing works.
15914 2000-03-12  Alexander Larsson  <alla@lysator.liu.se>
15916         * app/render_libart.c (new_libart_renderer):
15917         Fix from segg <segg@infonet.ca> to compile without libart.
15918         I forgot to change the stub for new_libart_renderer when doing
15919         the interactive renderer stuff for libart.
15921 2000-03-11  Alastair McKinstry  <mckinstry@computer.org>
15923         * dia.desktop: Added Irish translation.
15924         
15925         * configure.in (ALL_LINGUAS): Added Irish (ga) translation.
15927 2000-03-07  Asbjorn Pettersen  <asbjornP@dualog.no>
15929         * app/load_save.c (fchmod): OS/2 defines only.
15931 2000-03-07  James Henstridge  <james@daa.com.au>
15933         * lib/properties.c (prop_get_widget): set the position in the option
15934         menu correctly.
15936 2000-03-06  Alexander Larsson  <alla@lysator.liu.se>
15938         * app/display.c:
15939         * app/export_png.c:
15940         * app/render_libart.[ch]:
15941         Don't export png:s with an interactive libart renderer.
15943 2000-03-03  Asbjorn Pettersen  <asbjornP@dualog.no>
15945         * lib/arrows.c (finite): define finite(d) isfinite(d)  for OS/2
15947 2000-03-02  James Henstridge  <james@daa.com.au>
15949         * dia.spec (%build): unset LINGUAS before running configure.  This
15950         ensures that all translations get included in the RPM.
15952         * lib/properties.c (object_create_props_dialog): put in a check for
15953         a NULL return from the describe_props() object method.
15954         (prop_desc_lists_union): make sure that the returned array is not
15955         NULL.
15956         (prop_desc_lists_intersection): same here.
15958 2000-02-29  Alexander Larsson  <alla@lysator.liu.se>
15960         * objects/ER/Makefile.am:
15961         * objects/FS/Makefile.am:
15962         * objects/UML/Makefile.am:
15963         Don't link object libs with gtk.
15965 2000-02-29  James Henstridge  <james@daa.com.au>
15967         * app/preferences.c (prefs_save): check to see if the file could
15968         be opened before writing the prefs.
15970         * app/disp_callbacks.c (popup_object_menu): pass the button event
15971         to gtk_menu_popup.  This allows you to click and release to open
15972         the object menu.
15973         (ddisplay_canvas_events): same here.
15974         (create_object_menu): set the object type menu item in the object
15975         menu to be insensitive.
15977         * app/render_svg.c (draw_string): call xmlEncodeEntitiesReentrant,
15978         as we are now requiring a new version of libxml.
15980         * dia.spec: updated version number.  Added requirement for
15981         libxml >= 1.8.5
15983         * configure.in: incremented version number to 0.84.
15984         Added check for libxml >= 1.8.5.  This will prevent some of the
15985         problems people have had with broken libxml versions.
15987         * NEWS: added news items.
15989         * app/interface.c (create_color_area): removed call to realize parent
15990         widget.  Segg <segg@infonet.ca> reported that it caused a warning,
15991         but I haven't seen it on my copy of dia.
15993 2000-02-28  James Henstridge  <james@daa.com.au>
15995         * app/export_png.c: added copyright notice, and made the band height
15996         a constant.
15998 2000-02-27  Alexander Larsson  <alla@lysator.liu.se>
16000         * lib/font.c (suck_font):
16001         Fixed off-by one bug in font pixmap height.
16002         Fixes the problem with garbage at the bottom of some text in aa mode
16003         and in png exported files.
16005 2000-02-27  James Henstridge  <james@daa.com.au>
16007         * app/app_procs.c: add the png export filter if it was compiled in.
16009         * app/export_png.c (export_png): new PNG export filter.  This requires
16010         the libart renderer to work as it needs a renderer that renders to a
16011         pixel buffer.
16013         * configure.in: add check for libpng.
16015         * lib/message.c (message_internal): use a GNOME dialog here as well.
16017         * app/display.c (ddisplay_close): use a GNOME dialog here.
16019         * app/render_eps.c (create_eps_renderer): use diagram scaling factor
16020         when exporting to EPS.  This is because some people said the EPS
16021         output was too large
16023 2000-02-26  James Henstridge  <james@daa.com.au>
16025         * app/defaults.c (create_dialog): use a GNOME dialog for the defaults
16026         window.
16028         * app/app_procs.c (app_exit): use a GNOME dialog here.
16030         * app/preferences.c (prefs_create_dialog): if GNOME support is
16031         enabled, show a GNOME dialog.
16033         * app/grid.c (grid_draw): use preferences when drawing page break
16034         lines.
16036         * app/preferences.c: add page break preferences to dialog.
16038         * app/preferences.h: added page break preferences.
16040 2000-02-25  James Henstridge  <james@daa.com.au>
16042         * sheets/UML.sheet: added new objects.
16044         * objects/UML/uml.c: link in the two new objects.
16046         * objects/UML/node.c: 
16047         * objects/UML/branch.c: new UML objects from Stfan Seefeld
16048         <seefelds@magellan.umontreal.ca>.
16050 2000-02-24  James Henstridge  <james@daa.com.au>
16052         * objects/custom/custom_object.c: converted to use the properties
16053         interface.  In the future, it would be nice to add support for
16054         defining custom properties for custom objects, but that can wait.
16056 2000-02-22  James Henstridge  <james@daa.com.au>
16058         * sheets/Circuit.sheet: added new circuit shapes to sheet.
16060         * plug-ins/cgm/cgm.c: cgm plugin updates from Henk Jan Priester
16061         <hj@justcroft.com>.  Fixes number encoding, colour encoding, fonts
16062         and adds a few new features.
16064 2000-02-21  Daniel Egger  <egger@suse.de>
16066         * sheets/*.sheets: Added German translations and made some
16067         corrections to the others.
16068         
16069 2000-02-21  James Henstridge  <james@daa.com.au>
16071         * shapes/Circuit/Makefile.am (SHAPES): added new shapes to list.
16073         * shapes/Circuit/...: added new shapes from Erik Janssens.
16075 2000-02-20  James Henstridge  <james@daa.com.au>
16077         * app/interface.c (create_color_area): realize the parent window
16078         first.
16080         * objects/standard/image.c: properties patch for standard image
16081         object, from Lars Clausen.
16083         * lib/properties.c: support for PROP_TYPE_FILE from Lars Clausen.
16085         * lib/properties.h (PropType): added file property type.
16087         * shapes/Circuit/speaker_de.xpm: changed size of pixmap to match
16088         other shapes.
16090         * app/interface.c: use wrap box for toolbox.
16092         * app/Makefile.am: added new files.
16094         * app/gtk*wrapbox.[ch]: added wrap box widget.
16096 2000-02-19  James Henstridge  <james@daa.com.au>
16098         * sheets/network.sheet: added extra shapes to networks sheet.
16100         * configure.in (AC_OUTPUT): added shapes/network/Makefile
16102         * shapes/network/*: added shapes that were posted to the list a while
16103         back.
16104         
16105         * shapes/Makefile.am (SUBDIRS): added network subdirectory
16107         * app/menus.c (toolbox_menu_items): don't right justify help menu for
16108         gtk+ version of menus.
16110         * app/properties.c (create_dialog): use a GnomeDialog if we happen
16111         to be using gnome.
16113 2000-02-18  James Henstridge  <james@daa.com.au>
16115         * objects/flowchart/box.c: set extra data for corner radius and text
16116         padding properties.
16118         * objects/standard/box.c: set extra data for corner radius property.
16120         * lib/properties.h: set extra data in some standard properties.
16122         * lib/properties.c (prop_get_widget): look at the extra data for
16123         int, real and enum property types.  They now use GtkSpinButton and
16124         GtkOptionMenu respectively.
16126         * lib/properties.h: extra data members for creating property setting
16127         widgets.
16129 2000-02-17  James Henstridge  <james@daa.com.au>
16131         * objects/flowchart/box.c: reverted load/save functions back to
16132         previous implementations.  Made box use standard property names.
16134         * plug-ins/cgm/cgm.c (set_linestyle): was missing a */
16136         * app/grid.c: add more digits to the grid edit dialog.  This patch
16137         was also from Lars Clausen.
16139         * objects/standard/zigzagline.c: 
16140         * objects/standard/textobj.c:
16141         * objects/standard/polyline.c:
16142         * objects/standard/line.c:
16143         * objects/standard/ellipse.c:
16144         * objects/standard/box.c: 
16145         * objects/standard/bezier.c: 
16146         * objects/standard/arc.c: patches to add properties code to standard
16147         objects.  Based on patches from Lars Clausen.  I have also removed
16148         some dead code from the files.
16150         * lib/properties.h (PROP_STD_*): define a number of standard
16151         properties.  Where appropriate, objects should include these
16152         properties in their PropDescription list.  This way, the intersection
16153         of properties of two different shapes will be greater.
16155 2000-02-14  James Henstridge  <james@daa.com.au>
16157         * objects/flowchart/box.c (box_load, box_save): use property save
16158         routines.  Make sure that any props not handled by object_load_props
16159         are loaded before calling object_load_props, or we get errors because
16160         update_data is called.
16162         * lib/properties.c (object_get_props_from_offsets): fixed an indexing
16163         error that could cause properties to be loaded incorrectly.
16164         (object_set_props_from_offsets): similar here.
16166         * lib/properties.[ch] (prop_{load,save}): functions for loading
16167         or saving a property in Dia's XML file format.
16168         (object_{load,save}_props): load or save some properties of an
16169         object.  These functions should help simplify the load/save methods
16170         of objects that implement the properties interface.
16172 2000-02-13  James Henstridge  <james@daa.com.au>
16174         * objects/flowchart/box.c: use offset code to simplify property
16175         get/set routines.
16177         * lib/element.h (ELEMENT_COMMON_PROPERTIES): standard element
16178         properties.
16179         (ELEMENT_COMMON_PROPERTIES_OFFSETS): offsets.
16181         * lib/object.h (OBJECT_COMMON_PROPERTIES): list of standard object
16182         properties.
16183         (OBJECT_COMMON_PROPERTIES_OFFSETS): the offsets of the properties.
16185         * lib/properties.[ch] (object_{get,set}_props_from_offsets): new
16186         functions 
16188 2000-02-12  Alexander Larsson  <alla@lysator.liu.se>
16190         * app/Makefile.am:
16191         Add the custom object to DIA_LIB_PATH in run_dia.sh
16193 2000-02-10  Cyrille Chepelov  <chepelov@calixo.net>
16195         * sheets/Circuit.sheet:
16196         * shapes/l_sout* (NEW):
16197         * shapes/l_outj.* (NEW): added new outputs : jump, and the power-saved
16198         variants of simple, inverted, set and reset outputs.
16199         Still to do: all Schneider/Telemecanique TSX *7 function blocks ; 
16200         probably a split of Contact and Ladder sheets. And then a major 
16201         revamping of the Contact sheet.
16203 2000-02-10  James Henstridge  <james@daa.com.au>
16205         * app/Makefile.am (dia_LDADD): don't link with libcustom_objects.
16207         * app/app_procs.c (register_all_objects): don't explicitely
16208         register the custom objects library -- let it be loaded by the
16209         normal plugin loading methods.
16211         * lib/Makefile.am (libdia_a_SOURCES): don't include custom.h here.
16213         * objects/custom/Makefile.am: build libcustom_objects as a shared
16214         library again.
16216         * objects/custom/shape_info.[ch]: don't read the description field
16217         of custom shapes.  It makes more sense to have these in the sheet
16218         file to localise the parts of dia that translators have to deal
16219         with.
16221         * objects/custom/custom_object.c (custom_object_new): do not
16222         create the sheet object for the new custom shape -- this is
16223         handled by the custom sheet code.
16225         * objects/custom/custom.c: change over to being a normal plug-in
16226         rather than being linked with the main dia executable.
16228 2000-02-09  James Henstridge  <james@daa.com.au>
16230         * sheets/Circuit.sheet: 
16231         * sheets/Flowchart.sheet: 
16232         * sheets/Contact.sheet: fixed up sheets.
16234         * objects/custom/custom_object.c (custom_object_new): set the
16235         extra ObjectType fields.
16237         * lib/sheet.c: use extra ObjectType fields when creating sheet
16238         objects.  Give a warning if <shape> tags are found in a sheet
16239         file.  Now the custom sheet code does not know about custom
16240         shapes -- they look like any other object type.
16242         * lib/object.h (ObjectType): added extra members
16244 2000-02-08  Alexander Larsson  <alla@lysator.liu.se>
16246         * app/linewidth_area.c:
16247         Added code to set arbitrary line width.
16248         Patch by Lars Clausen <lrclause@cs.uiuc.edu>
16250 2000-02-08  Alexander Larsson  <alla@lysator.liu.se>
16252         * app/linewidth_area.c: 
16253         * lib/font.[ch]:
16254         Add support for font-sucking.
16255         Implementation borrowed from gnome-canvas.
16256         
16257         * app/render_libart.[ch]:
16258         Implement text rendering.
16260 2000-02-07  Alexander Larsson  <alla@lysator.liu.se>
16262         * app/properties.c (create_dialog):
16263         ref and sink no_properties_dialog.
16265 2000-02-07  James Henstridge  <james@daa.com.au>
16267         * app/group.c (group_describe_props): new function.  Return the
16268         intersection of the properties of the contained objects that
16269         implement the describe_props interface.
16270         (group_get_props): implement by iterating through contained objects
16271         and calling their get_props method until all properties have been
16272         set.  Maybe this should go through all objects all the time??
16273         (group_set_props): implement by calling set_props method on all
16274         contained objects.
16275         (group_ops): use standard props dialog creation routines.
16277         * lib/properties.c (prop_desc_lists_intersection): fix implementation
16278         of intersection -- I was using i++ instead of i-- in a for loop :(
16280         * objects/custom/custom.c (custom_register_objects): fix usage
16281         of dia_get_data_directory again.
16283         * lib/sheet.c: fix up use of dia_get_data_directory, so that we
16284         actually read the sheets.
16286 2000-02-06  Alexander Larsson  <alla@lysator.liu.se>
16288         Win32 port by Hans Breuer <Hans@Breuer.org>
16290         * app/Makefile.am:
16291         Remove DATADIR and LIBDIR defines.
16293         * lib/Makefile.am:
16294         Add dia_dirs.c and dia_dirs.h
16295         Added DATADIR and LIBDIR defines.
16297         * lib/dia_dirs.[ch]:
16298         New files for handling special directories.
16300         * app/app_procs.c:
16301         * app/commands.c:
16302         * lib/sheet.c:
16303         * objects/custom/custom.c:
16304         Fix warnings.  Use directory functions.
16306         * app/diagram.h:
16307         Add prototype for diagram_redraw_all.
16309         * app/diaunitspinner.c:
16310         * app/filedlg.c:
16311         * app/interface.c:
16312         * app/preferences.c:
16313         Fix warning.
16315         * app/load_save.c:
16316         Win32 doesn't have mkstemp and fchmod.
16318         * app/paginate_psprint.c:
16319         Win32 calls popen _popen and pclose _pclose.
16320         
16321         * app/arrow.c:
16322         Win32 calls finite _finite.
16324         * lib/color.h:
16325         Win32 needs to dllexport the color vars.
16327         * objects/GRAFCET/step.c:
16328         * objects/chronogram/chronoref.c:
16329         snprintf -> g_snprintf
16331 2000-02-05  James Henstridge  <james@daa.com.au>
16333         * lib/properties.c: more fixes so that it doesn't crash when using
16334         properties.  The undo/redo stuff also works!!
16336         * objects/flowchart/box.c (box_{describe, get, set}_props): test
16337         object where I have implemented the new properties interface
16338         complete with automatic properties dialog generation.
16340         * lib/properties.c (object_apply_props): fixed stupid error when
16341         creating the old_props array.  Also, it no longer frees the props
16342         array -- you will have to do that yourself.
16344 2000-02-04  James Henstridge  <james@daa.com.au>
16346         * app/properties.c (properties_apply): pass object_part to
16347         apply_properties.
16349         * lib/object.h (ApplyPropertiesFunc): added widget argument.
16351         * lib/lazyprops.h (PROPDLG_CREATE): ref and sink properties dialogs
16352         created this way as well.
16354         * objects/*/*.c: ref and sink the properties dialog window for each
16355         widget.  It can't rely on ref count being incremented by
16356         properties_show anymore.
16358         * app/properties.c (properties_show): don't ref the widget before
16359         removing it, or its ref count will increase each time you open the
16360         properties dialog.  Don't unparent the widget, as container_remove
16361         does that for us.
16363         * lib/object.h: fixed up prototypes for new object methods.
16365         * lib/properties.[ch]: added functions for automatically creating
16366         a properties dialog from the output of describe_props, get_props and
16367         set_props.
16368         (object_apply_props): apply properties and return an ObjectChange
16369         structure that can be used for undo.
16371 2000-02-03  Cyrille Chepelov  <chepelov@calixo.net>
16373         * objects/GRAFCET/transition.c: minor leak plugged.
16375         * sheets/GRAFCET.sheet:
16376         * objects/GRAFCET/pixmaps/condition.xpm: (NEW)
16377         * objects/GRAFCET/condition.c: (NEW) added a new object type, action 
16378         conditions.
16379         * objects/GRAFCET/Makefile.am: fixed incorrect dependencies, added
16380         new ones (for condition.c).
16381         * objects/GRAFCET/action.c: added connection points for the conditions.
16382         * samples/grafcet.dia: updated the sample to improve conformance to
16383         IEC 848 and take advantage of dia's new features.
16384         
16385         * lib/geometry.h: (point_get_normed) fixed a typo.
16387 2000-02-02  James Henstridge  <james@daa.com.au>
16389         * lib/object.h: added object functions describe_props, get_props and
16390         set_props.  Do type definitions so that object.h doesn't need to
16391         include properties.h, since properties.h includes object.h.
16393         * lib/properties.[ch]: more hacking.
16395         * po/de.po: updated po file.
16397 2000-01-30  James Henstridge  <james@daa.com.au>
16399         * configure.in: don't add flags to CFLAGS unconditionally.  Instead,
16400         check to see if the C compiler accepts the flag beforehand.
16402         * lib/properties.[ch]: start of properties code.
16404         * shapes/Contact/Makefile.am (SHAPES): fix up makefile.
16406 2000-01-30  Cyrille Chepelov  <chepelov@calixo.net>
16407         
16408         * sheets/GRAFCET.sheet:
16409         * sheets/GRAFCET/etapemc.xpm: (NEW)
16410         * sheets/GRAFCET/etapesp.xpm: (NEW)
16411         * objects/GRAFCET/step.c: Added the macro and
16412         sub-program call step types.
16414         * objects/GRAFCET/receptivity.[ch]: renamed to 
16415         objects/GRAFCET/boolequation.[ch]. 
16416         * objects/GRAFCET/transition.c: changed (Receptivity *) to 
16417         (BoolEquation *)
16419         * lib/connpoint_line.[ch]: 
16420         * objects/chronogram/chronoline.c:
16421         * objects/chronogram/chronoref.c:
16422         * objects/GRAFCET/vergent.c:
16423         * objects/standard/line.c:
16424         * objects/SADT/box.c: Minor CPL interface changes, factored out the
16425         point count adjustment code into the CPL object.
16426         
16427 2000-01-29  Alexander Larsson  <alla@lysator.liu.se>
16429         * app/render_libart.c:
16430         Added support for images and bezier curves.
16431         Only text/fonts missing now.
16433         * app/render_gdk.c:
16434         Removed old erronous comment.
16436 2000-01-29  Cyrille Chepelov <chepelov@calixo.net>
16438         * objects/chronogram/chronoline_event.c: removed references to
16439         lround(). Please don't insist, I'm already red of shame.
16440         
16441 2000-01-29  Alexander Larsson  <alla@lysator.liu.se>
16443         * app/render_libart.[ch]:
16444         * app/Makefile.am:
16445         Non-finished libart renderer.
16447         * acconfig.h:
16448         Added HAVE_LIBART flag
16450         * configure.in:
16451         Added libart probe
16453         * app/app_procs.c:
16454         Call gdk_rbg_init().
16456         * app/connectionpoint_ops.c:
16457         * app/disp_callbacks.c:
16458         * app/grid.c:
16459         * app/handle_ops.c:
16460         * app/magnify.c:
16461         * app/modify_tool.c:
16462         Change ddisp->renderer type from RendererGdk * to Renderer *
16463         Draw zoom and select rects in ddisp->canvas->window instead
16464         of ddisp->renderer->renderer->pixmap.
16466         * app/display.[ch]:
16467         Add aa_renderer to DDisplay, and  support for it.
16468         New function ddisplay_set_renderer() for changing renderer.
16469         Add ddisplay_transform_coords_double() function, used by aa renderer.
16470         Change ddisp->renderer type from RendererGdk * to Renderer *
16472         * app/menus.c:
16473         Add antialias to menu.
16474         
16475         * app/commands.[ch]:
16476         add view_aa_callback function
16477         Change ddisp->renderer type from RendererGdk * to Renderer *
16479         * lib/geometry.[ch]:
16480         Added IntRectangle and int_rectangle_union.
16482 2000-01-28  James Henstridge  <james@daa.com.au>
16484         * app/commands.h: removed prototypes.
16486         * app/commands.c: removed the functions that have been moved to
16487         filedlg.c.
16489         * app/filedlg.h: added new prototypes.
16491         * app/filedlg.c (file_open_callback): move open dialog to this
16492         file.  This implementation should remember the current directory
16493         between file loads.
16494         (file_save_as_callback): moved this dialog as well.
16495         (file_save_callback): moved this function here.
16497         * app/paginate_psprint.c (paginate_psprint): if not in fit to mode,
16498         align page boundaries to the origin.
16500         * app/diagram.c (diagram_update_extents): redraw the diagram if the
16501         scaling factor changes while updating the extents.  This is so the
16502         page breaks get redrawn correctly.
16504         * app/pagesetup.c (pagesetup_apply): added diagram_flush call when
16505         applying changes.
16507         * app/grid.c (grid_draw): draw page breaks as well as grid lines.
16508         For normal mode, use (0,0) as the origin.  For `fit to' mode, use
16509         the corner of the bounding box.
16511         * app/pagesetup.c (create_page_setup_dlg): load new paper attributes
16512         into page setup dialog.
16513         (pagesetup_apply): apply new `fit to' attributes to the diagram.
16515         * app/load_save.c (diagram_load): load new paper `fit to' attributes.
16516         (diagram_data_save): save `fit to' data.
16518         * lib/diagramdata.c (new_diagram_data): initialise `fit to' members.
16519         (data_update_extents): when in `fit to' mode, update scale factor
16520         when we update the extents.
16522         * lib/diagramdata.h (PaperInfo): added `fit to' members to PaperInfo
16523         structure.
16525         * .../.cvsignore: added some cvsignore files to quieten cvs.
16526         
16527         * app/pagesetup.c (pagesetup_changed): added code to change the
16528         scaling/fit to values as you change the options in the page setup
16529         dialog.  I haven't added code so that the fit to options are saved
16530         though.
16532         * app/diapagelayout.[ch]: changed the scaling portion of the widget
16533         to make it easier to set a `fit to' style scaling factor.
16535 2000-01-27 Cyrille Chepelov <chepelov@calixo.net>
16536         * lib/neworth_conn.[ch]: (NEW) Temporary (hopefully) fork of orth_conn,
16537         but connpoint_line-based, so that there's a connection point at the 
16538         middle of each segment. Currently only the SADT arrow uses this.
16540         * objects/SADT/* (NEW): SADT (both idf0 and idf1) support.
16541         
16542 2000-01-26 Cyrille Chepelov <chepelov@calixo.net>
16543         * lib/lazyprops.[ch]:(NEW) Added a bunch of macros for loading, 
16544         saving and editing of properties (and default properties). 
16545         See the new objects (GRAFCET, SADT, chonograms) for examples.
16546         For already too hairy stuff, see objects/chronogram/chronoline.c.
16548         * lib/connpoint_line.[ch] (NEW): This subobject manages a line of 
16549         evenly spaced connection points, which the user can add or remove at
16550         will. An object can own several connection point lines. See the SADT
16551         Box, or the GRAFCET vergents for examples.
16553         * lib/dummy_dep.h: added dependencies to new files. Told gcc to keep 
16554         quiet about unused stuff.
16556         * objects/GRAFCET (NEW):
16557         * samples/grafcet.dia (NEW):
16558         Added support for GRAFCET charts. 
16560         * objects/chronogram (NEW):
16561         * samples/chronograms.dia (NEW):
16562         Added support for chronograms (feature requested by Ronald L. Chichest;
16563         I found I'd use it often, too).
16565         * objects/standard/line.c: Replace the middle connectionpoint by 
16566         a whole connection point line, which defaults to one point (hint, 
16567         hint). New Line object menu to take advantage of this. 
16568         "Bothwards" compatibility is preserved (although you may loose 
16569         connections if you load a newer file in a older dia).
16571         * app/lineprops_area.c:
16572         * lib/arrows.[ch]:
16573         * lib/widgets.c: Added hollow and filled ellipse arrow head type. 
16574         (feature requested by Benjamin Kahn).
16575         Merged in Steffen Macke's slashed arrow head type.
16577         * app/Makefile.am (app/run_dia.sh actually):
16578         Added $DEBUGGER in front of dia's invocation, so that
16579         you can call "DEBUGGER=ddd app/run_dia.sh" (maybe naive, but useful).
16580         Added $(EFENCE) to app/dia's LDFLAGS, so that you can do 
16581         "EFENCE=-lefence" to link with Electric Fence.
16583         * configure.in: Made gcc do more aggressive optimisations on i386, and
16584         enabled warnings.
16585         
16586 2000-01-24  James Henstridge  <james@daa.com.au>
16588         * lib/geometry.[ch]: added inline versions of functions.  Used
16589         glib's G_INLINE_FUNC stuff, so it should still work on systems
16590         without inline funcs.
16592         * plug-ins/cgm/cgm.c (draw_ellipse, fill_ellipse): fixed up so that
16593         it outputs the correct element id for the ellipse objects.
16595 2000-01-24 Cyrille Chepelov <chepelov@calixo.net>
16597         * lib/object.[ch]: added object_add_connectionpoint_at, similar to
16598         object_add_handle_at. Message typo fixed.
16599         
16600         * lib/sheet.c (load_register_sheet):
16601         potential bug fixed (warning hunt).
16603         * objects/custom/custom.c (custom_object_load): disabled an assertion
16604         which made dia abort upon failure to load a shape file. Fixed a
16605         subsequent crash. 
16607         * objects/custom/shape_info.c (load_shape_info): Made the custom 
16608         shape load code ignore XML comments between <?xml ...?> and the 
16609         root object (mostly useful to put the emacs magic comments).
16610         
16611         * app/load_save.c: Made dia do backup copies of files when saving,
16612         and complain in case of failure.
16614 2000-01-24  Cyrille Chepelov  <chepelov@calixo.net>
16616         * AUTHORS: fixed my address (ISP thought it was a great idea to change
16617         the domain name)
16618         
16619         * configure.in:
16620         * shapes/Contact:
16621         * shapes/Contact/*:
16622         * sheets/Contact.sheet:
16623         * sheets/Makefile.am:
16624         Added support for Contact and LADDER charts.
16626         * dia.desktop: Added a French translation.
16627         
16628 2000-01-23  James Henstridge  <james@daa.com.au>
16630         * app/commands.c (help_about_callback): don't die if can't load
16631         logo image.
16633         * app/render_gdk.c (bezier_add_lines): sanity check to try to weed
16634         out NaN's when performing bezier curve subdivision.
16636         * objects/custom/custom_object.c: initialise memory of Custom structs
16637         to zero.
16639         * app/render_svg.c (draw_image): added image support to the XML
16640         output filter.  The image is just referenced, rather than being
16641         included inline, so if you copy the SVG file somewhere else, you
16642         may need to move the images or fix up the links.
16644         * plug-ins/cgm/cgm.c (draw_string): output a text colour element,
16645         so the text is not just displayed in black all the time.
16647 2000-01-15  Fredrik Hallenberg  <hallon@lysator.liu.se>
16649         * configure.in: fixed libpopt test so we wont try to build with
16650         too old libpopt.
16652 1999-12-18  Yuri Syrota  <rasta@renome.rovno.ua>
16654         * configure.in: Added "uk" to ALL_LINGUAS.
16656 1999-12-24  James Henstridge  <james@daa.com.au>
16658         * po/ru.po: updated russian translation from Valek Filippov.
16659         
16660         * app/render_svg.c (new_svg_renderer): make output use 19991203
16661         version of SVG DTD.  Use viewBox to set the extents of the view.
16663         * INSTALL (FONTS): updated locations of gnome-xml and imlib.  List
16664         ftp.gnome.org as the download.
16666         * TODO (TODO): weeded out completed todo items and added a few extra.
16668         * Makefile.am (EXTRA_DIST): added documentation to EXTRA_DIST.
16670         * doc/sheet.dtd: first stab at a DTD for the sheet files.  It would
16671         be good to get rid of the object/shape distinction and separate
16672         the custom shape code out from the main application.
16674         * objects/custom/README, diagram.dtd: moved to new doc directory.
16675         Renamed the custom shapes README to custom-shapes.  Also updated
16676         custom shape docs a bit and removed the section on sheet files, as
16677         that has changed a bit.
16679         * plug-ins/cgm/cgm.c (draw_image): give an error if the row length
16680         of the image data is larger than the maximum cell array.  I should
16681         add code to break scan lines down further in this case, but for now
16682         an error message is better than an infinite loop.
16684         * app/filedlg.c (file_export_ok_callback): show a dialog if we
16685         couldn't determine the export filter to use.
16687         * app/commands.c (help_about_callback): fixed up about box logo
16688         expose bug.  Now just use a GtkPixmap widget rather than a
16689         GtkDrawingArea and calling gdk_imlib_paste_image.
16691         * app/Makefile.am (EXTRA_DIST): added print stuff to extra dist,
16692         because automake does not always get things right.
16694         * configure.in: updated version number to 0.83.
16696         * app/preferences.c (prefs_save): 
16697         * app/render_svg.c (new_svg_renderer): "wt" is not a valid flag string
16698         for fopen.  Text is the default file mode anyway.
16700         * app/commands.c (file_save_as_dialog_ok_callback, file_new_callback): 
16701         * app/grid.c (grid_x_update, grid_y_update, grid_show_dialog): 
16702         * app/load_save.c (write_objects, write_connections): 
16703         * app/filedlg.c (file_export_ok_callback): 
16704         * lib/dia_xml.c (data_add_int, data_add_enum, data_add_real): 
16705         * lib/dia_xml.c (data_add_point, data_add_rectangle): 
16706         * lib/font.c (init_x11_font, font_get_gdkfont): changed calls to
16707         snprintf to calls to g_snprintf.
16709         * plug-ins/cgm/cgm.c (export_cgm): write the original dia file name
16710         as the picture name.
16712 1999-12-23  James Henstridge  <james@daa.com.au>
16714         * plug-ins/cgm/cgm.c (write_int32, write_int16): fixed up output of
16715         negative numbers.  This fixes the upside down text problem I was
16716         having previously.
16717         (draw_image): implemented the image code.  It will try to split the
16718         image data up into bands if it is too big to fit into a single
16719         cgm cell array element.  It will have problems if you try to insert
16720         an image wider than about 10,000 pixels though.
16722         * Makefile.am: use gnomedatadir for the files that need to be
16723         installed in gnome's datadir.  This is mainly to help people doing
16724         packages for weird setups.
16726 1999-12-22  James Henstridge  <james@daa.com.au>
16728         * plug-ins/cgm/cgm.c: added support for text.  Now only images and
16729         beziers are left to do.  The text seems to be the wrong way up
16730         still.  This is probably a problem with character orientation
16731         element, but I have used what the settings given in the standard.
16732         Other than this, the CGMs dia produces are readable (and displayable)
16733         by ralcgm and corel draw.
16734         (draw_string): subtract from the X coord rather than the Y coord for
16735         center and right aligned text.
16737         * plug-ins/cgm/cgm.c: a few fixups for the output.  Use REALSIZE as
16738         the size of a real number, and changed name of write_double to
16739         write_real.  Consider changing to fixed real encoding.  Also, now
16740         all element headers are correct.  Once the real number encoding is
16741         fixed, only text, beziers and images are left to do.
16743 1999-12-21  James Henstridge  <james@daa.com.au>
16745         * Makefile.am (SUBDIRS): recurse into plug-ins.
16747         * configure.in: add plug-ins directory makefiles to list.
16749         * plug-ins/cgm/cgm.c: start of cgm export filter.  Beziers and text
16750         not done yet.  Also, the output files are not quite correct.
16752         * app/render_eps.c (print_reencode_font): don't reencode the Symbol
16753         font.  It doesn't work if you do.
16755 1999-12-20  James Henstridge  <james@daa.com.au>
16757         * app/app_procs.c (app_init): don't use diagram_export_to_eps to
16758         export the files.  Instead, use filter_guess_export_filter to
16759         guess the correct format to save in and use the appropriate filter.
16760         It defaults to postscript for compatibility.
16762         * app/diagram.[ch] (diagram_export_to_eps): removed export to eps
16763         function.
16765         * app/commands.[ch]: removed export to eps functions.
16767         * app/menus.c: removed export to eps menu items.
16769         * app/app_procs.c: register new export filters.
16771         * app/load_save.[ch]: define dia native export filter.
16773         * app/render_eps.[ch]: define eps export filter.
16775         * lib/filter.h: added diafilename argument to the DiaExportFunc
16776         prototype.  This is useful for putting the source of the diagram
16777         into the output file for instance.
16779         * app/app_procs.c (app_init): register the SVG export filter.  Have
16780         to get EPS code converted to this API, and maybe also allow saving in
16781         DIA's native format from the export dialog.  In fact, it is now
16782         possible to load an export filter from a shared library and it will
16783         integrate into the interface correctly.
16785         * app/menus.c: removed references to the SVG renderer.
16787         * app/commands.[ch]: removed svg stuff.
16789         * app/diagram.[ch]: removed diagram_export_to_svg function.
16791         * app/render_svg.[ch]: added a DiaExportFilter structure for this
16792         renderer.
16794         * app/filedlg.[ch]: code for the new export diagram dialog.  Will
16795         probably move the open/save dialogs to this file as well.
16797 1999-12-19  James Henstridge  <james@daa.com.au>
16799         * lib/filter.[ch]: start of interface for generalised handling of
16800         filters.  I have only done code for export filters so far.  I still
16801         need to do the gui for this, and convert the current SVG and EPS
16802         filters to the new API.
16804         * lib/bezier_conn.c (bezierconn_copy): fix up copy operation.  We
16805         weren't setting the last handle correctly.  It was actually assigning
16806         to the wrong position in the handles array, so the last handle was
16807         left as NULL, which caused the segfault.
16809         * objects/standard/image.c (image_copy): modified routine so that
16810         it just adds a reference to the DiaImage structure in the new image
16811         object.  This seems to have cleared up the problems with copying
16812         image objects.
16814         * dia.spec: spec file additions from John Gotts.
16816 1999-12-12  James Henstridge  <james@daa.com.au>
16818         * configure.in (GNOME_LIBS): updated version number to 0.82.  0.82
16819         has not been released yet though.
16821         * Makefile.am (EXTRA_DIST): distribute diagram.dtd.
16823         
16824         The following based on a patch from Lars Clausen:
16825         
16826         * objects/standard/bezier.c (bezierline_move_handle): when performing
16827         the initial drag of the bezierline, move the control points to keep
16828         the line straight.
16830         * lib/bezier_conn.c (bezierconn_add_segment): when adding a segment,
16831         make the new control points a bit closer to the major point.
16833         * app/create_object.c (create_object_motion): use HANDLE_MOVE_CREATE
16834         as the reason for the move.
16835         (create_object_button_release): use HANDLE_MOVE_CREATE_FINAL as the
16836         move reason.
16838         * lib/handle.h: new handle move reasons.
16840 1999-12-09  James Henstridge  <james@daa.com.au>
16842         * dia.spec: include the new files in RPMs.
16844         * Makefile.am: install these new files.
16846         * dia.keys.in: file describing actions and icon for dia diagrams for
16847         use in the gnome file manager.
16848         
16849         * dia.mime: a file defining the application/x-dia-diagram mime type.
16850         
16851         * dia-diagram.png: an icon for dia diagrams.
16853 1999-12-08  James Henstridge  <james@daa.com.au>
16855         * plug-ins/python/pydia-diagram.c: added heaps of new methods.
16857         * plug-ins/python/pydia-display.[ch]: wrapper for display.
16859         * objects/standard/ellipse.c: applied Lars's patch to optionally not
16860         draw the background of the ellipse.
16862         * app/load_save.c (read_connections): do some sanity checking on the
16863         handle and connection point numbers before performing the object
16864         connection.
16866         * lib/bezier_conn.c (bezierconn_load): give the correct number of
16867         handles when loading a BezierConn.
16869 1999-12-07  Kjartan Maraas  <kmaraas@online.no>
16871         * sheets/*.sheet: Finished Norwegian translations.
16872         
16873 1999-12-07  James Henstridge  <james@daa.com.au>
16875         * plug-ins/python/diamodule.c (PyDia_Load): load diagram function.
16876         (PyDia_GetObjectType): find object type function.
16878         * plug-ins/python/pydia-diagram.c (PyDiaDiagram_Save): added a save
16879         method for diagrams.
16881         * plug-ins/python/pydia-object.c: added methods for DiaObject and
16882         DiaObjectType.
16884         * AUTHORS: added Lars and Cyrille to the authors file.
16886         * objects/standard/bezier.c (bezierline_add_segment_callback): place
16887         new point correctly.
16889         * lib/bezier_conn.h (bezierconn_closest_segment): fixed prototype.
16891         * lib/bezier_conn.c: applied Lars's patch for placement of the new
16892         point when adding a segment to a BezierConn.
16894 1999-12-06  James Henstridge  <james@daa.com.au>
16896         * plug-ins/python/test.py: test script for the python plug-in.
16898         * plug-ins/python/python.c: this file contains the plug-in startup
16899         code for the python plugin.  Right now, it just initialises the
16900         dia module and executes a script.
16902         * objects/standard/polyline.c (polyline_draw): fix start arrow size.
16904         * objects/standard/bezier.c (bezierline_draw): draw control lines for
16905         bezier curve if we are using an interactive renderer (ie. only if
16906         displaying to the screen).
16908         * lib/bezier_conn.[ch] (bezierconn_draw_control_lines): function
16909         to draw control lines on to a bezier curve.  Based on implementation
16910         from Lars.
16912         * objects/standard/bezier.c (bezierline_delete_segment_callback):
16913         calculate segment number using closest_segment rather than
16914         closest_handle.  Sometimes the closest handle is part of a different
16915         segment.
16916         (bezierline_draw): use correct size for start arrow.
16918         The next few entries are from Peter Moulder <reiter@netspace.net.au>:
16919         * lib/geometry.c (distance_line_point): added notes to documentation
16920         in comment.
16921         * app/object_ops.c (object_list_align_v): 
16922         (object_list_align_h): fix of by one error when calculating free space
16923         for equal distance alignment.
16924         * app/menus.c (objects_align_h, objects_align_v): include align
16925         adjacent menu items in the gnome version of the menus.
16926         * app/diagram.c (diagram_update_menu_sensitivity): set sensitivity on
16927         align adjacent menu items correctly.
16930         * lib/dummy_dep.h (dummy_dep): added bezierconn to dummy dependency
16931         table.
16933         * objects/standard/bezier.c: converted bezierline to use BezierConn.
16934         Still a few bugs.  It crashes on deleting line segments.
16936         * lib/Makefile.am (libdia_a_SOURCES): added BezierConn to libdia.
16938 1999-12-05  James Henstridge  <james@daa.com.au>
16940         * lib/bezier_conn.[ch]: start of BezierConn object
16942         * app/interface.c: add bezierline to toolbox.
16944         * objects/standard/standard.c: initialise bezierline.
16946         * objects/standard/bezier.c: new object from Lars R. Clausen.  I have
16947         made a few modifications to get it working nicely.  It still needs
16948         a bit of work though.  Maybe create a BezierConn object in lib.
16950 1999-12-02  James Henstridge  <james@daa.com.au>
16952         * plug-ins/python/pydia-*.c: fixed compile errors in these files.
16953         
16954         * plug-ins/python/Makefile.am: tried building everything.  It is
16955         building as a library at the moment.  I will have to convert it
16956         to a libtool library and add some initialisation code.
16957         
16958         * plug-ins/python/diamodule.c: start of the dia module, using the
16959         other object wrappers.  Not complete.
16961 1999-12-01  James Henstridge  <james@daa.com.au>
16963         * plug-ins/python/pydia-object.c (PyDiaObject_GetAttr): implement
16964         the handles and connections attributes.
16966         * plug-ins/python/pydia-layer.c: added functions that use
16967         ConnectionPoint's.
16969         * plug-ins/python/pydia-handle.[ch]: wrapper for Handle's.
16971         * plug-ins/python/pydia-cpoint.[ch]: wrapper for ConnectionPoint's.
16973         * plug-ins/python/pydia-*.[ch]: starts of python scripting plug-in.
16974         I am currently wrapping the basic elements in the diagram in python
16975         objects -- nothing to see or play with yet.
16977 1999-11-30  Alexander Larsson  <alla@lysator.liu.se>
16979         * AUTHORS:
16980         * HACKING:
16981         James Henstridge <james@daa.com.au> is now the maintainer of Dia.
16983 1999-11-29  Alexander Larsson  <alla@lysator.liu.se>
16985         * configure.in:
16986         * po/ru.po:
16987         Added russian translation from Valek Filippov <frob@df.ru>
16989 1999-11-24  James Henstridge  <james@daa.com.au>
16991         * sheets/UML/*: 
16992         * sheet/ER/*: moved extra sheet pixmaps back to separate dirs as
16993         discussed with Alex.  Also added extra makefiles so that make install
16994         works correctly.
16996 1999-11-23  Alexander Larsson  <alla@lysator.liu.se>
16998         * app/preferences.[ch]:
16999         * app/display.c:
17000         Added snap to grid preference.
17001         Patch from Michael Leslie <mles@springboardwireless.com>
17003 1999-11-21  Alexander Larsson  <alla@lysator.liu.se>
17005         * app/load_save.c:
17006         * lib/dia_xml.c:
17007         * lib/sheet.c:
17008         * lib/text.c:
17009         * objects/custom/shape_info.c:
17010         All strings returned by libxml must be freed with free, not
17011         g_free, or there will be problems if you use memory debugging
17012         in glib.
17013         
17014 1999-11-21  Alexander Larsson  <alla@lysator.liu.se>
17016         * app/create_object.[ch]:
17017         * app/menus.c:
17018         * app/tool.[ch]:
17019         * app/commands.[ch]:
17020         * app/pixmaps.h:
17021         * app/interface.[ch]:
17022         Reverted the tool menu patch. It has some 'issues'.
17023         I liked it though, so it'll probably return.
17025 1999-11-21  Alexander Larsson  <alla@lysator.liu.se>
17027         Fixed a lot of memory leaks. Thanks to Bruce Mitchener
17028         <bruce@cybersight.com> for some purify runs and analysis.
17029         Also a great thank you to Owen Taylor for creating MemProf, a
17030         free memory leak detector that was used to find and verify a
17031         lot of these fixes.
17032         
17033         * app/diagram.c:
17034         * app/paginate_psprint.c:
17035         * app/render_eps.[ch]:
17036         * app/render_svg.[ch]:
17037         Free renderers.
17039         * app/interface.c:
17040         Don't add a reference to ddisp->shell. Why was this done in
17041         the first place?
17043         * app/load_save.c:
17044         * lib/dia_xml.c:
17045         * lib/sheet.c:
17046         * lib/text.c:
17047         Free all strings returned from xmlGetProp
17049         * app/modify_tool.c:
17050         Plug leak.
17052         * objects/custom/custom.c:
17053         Use closedir() after opendir().
17055         * objects/custom/shape_info.c:
17056         User g_free() instead of "if (tmp) free(tmp)".
17058         * sheets/ER.sheet:
17059         Add newline at end of file.
17060         
17062 1999-11-20  Alexander Larsson  <alla@lysator.liu.se>
17064         Based on patch from Patrick Reynolds <reynolds@cs.duke.edu>
17065         Adds tool menu and keyboard shortcuts.
17067         * app/create_object.[ch]:
17068         Use tool_set() instead of tool_reset().
17069         create_create_object_tool() takes extra type argument
17071         * menus.c:
17072         Add tools menu.
17073         
17074         * tool.[ch]:
17075         Moved tool_data here, export it.
17076         Add separate tool type for all create objects tools.
17077         new functions tool_set().
17079         * commands.[ch]:
17080         New callback tool_set_callback.
17082         * pixmaps.h:
17083         Moved some pixmaps to interface.c.
17084         
17085         * interface.[ch]:
17086         Remove tool_data array (moved to tool.c).
17087         Use the tool_data from tool.c.
17088         Remove modify_tool_button global var.
17089         
17090 1999-11-20  Alexander Larsson  <alla@lysator.liu.se>
17092         Patch from Patrick Reynolds <reynolds@cs.duke.edu>
17093         
17094         * app/app_procs.c:
17095         Interprets command-line arguments as files to open even when
17096         HAVE_POPT is not defined.
17098         * app/magnify.c:        
17099         Shift-clicking when zooming zooms out, like the Gimp.
17101         * app/menus.c:
17102         Has hotkeys for zoom-100% and snap-to-grid.
17104 1999-11-17  James Henstridge  <james@daa.com.au>
17106         * app/scroll_tool.c (scroll_motion): fixed shift style scrolling so
17107         that it is not jumpy.
17109         * app/Makefile.am (EXTRA_DIST): added extra files to extra dist list.
17111         * app/scroll_tool.c (scroll_motion): added `grabbing hand' type
17112         scrolling by pressing the shift key when using the scroll tool.
17114         * sheets/Makefile.am: fixed makefile so that install actually works
17115         if the directories $(pkgdatadir)/sheets/UML and $(pkgdatadir)/sheets/ER
17116         don't exist.
17117         (SHEETS): install Circuit.sheet
17119 1999-11-15  Alexander Larsson  <alla@lysator.liu.se>
17120         Patch from Cyrille Chepelov <chepelov@rmcnet.fr>
17122         * sheets/Circuit.sheet:
17123         * sheets/ER.sheet:
17124         * sheets/FS.sheet:
17125         * sheets/Flowchart.sheet:
17126         * sheets/UML.sheet:
17127         * sheets/network.sheet:
17128         * sheets/sybase.sheet:
17129         Changed name space
17131         * sheets/Circuit.sheet:
17132         added some missing French translations
17134         * lib/sheet.c:
17135         killed the temporary sheet namespace
17137         * objects/custom/custom.c:
17138         obsolete comment cleaned up
17140 1999-11-12  Alexander Larsson  <alla@lysator.liu.se>
17142         * configure.in:
17143         * po/pt.po:
17144         Added portugese translation from Pedro Morais
17145         <pmmm@rnl.ist.utl.pt>
17147 1999-11-11  Alexander Larsson  <alla@lysator.liu.se>
17149         Changed all sheets to be specified in xml.
17150         All sheet objects removed from the C code.
17151         Patch from Cyrille Chepelov <chepelov@rmcnet.fr>
17152         
17153         * Makefile.am:
17154         * configure.in:
17155         Adding shapes dir.
17156         Updated version to 0.81cvs.
17157         
17158         * app/Makefile.am:
17159         Update run_dia.sh with sheet-dir.
17160         
17161         * app/app_procs.c:
17162         Load all sheets on startup.
17163         Create sheet directory first time.
17164         Don't call custom_register_sheets().
17166         * lib/Makefile.am:
17167         Add sheetdir define
17169         * lib/custom.h:
17170         Remove custom_register_sheets().
17172         * lib/sheet.[ch]:
17173         Add sheet loading code.
17175         * sheet/Circuit.sheet:
17176         * sheet/ER.sheet:
17177         * sheet/FS.sheet:
17178         * sheet/Flowchart.sheet:
17179         * sheet/UML.sheet:
17180         * sheet/network.sheet:
17181         * sheet/sybase.sheet:
17182         Added sheet files.
17184         * sheet/ER/weakentity.xpm:
17185         * sheet/UML/aggregation.xpm
17186         * sheet/UML/umlclass_template.xpm
17187         Added sheet pixmaps.
17188         These are moved from their old places.
17190         * sheet/.cvsignore:
17191         Shut up cvs.
17193         * objects/*/*.c:
17194         Removed sheet objects and sheet registration.
17195         
17196         * objects/ER/Makefile.am:
17197         * objects/ER/pixmaps/weakentity.xpm:
17198         * objects/UML/Makefile.am:
17199         * objects/UML/pixmaps/aggregation.xpm:
17200         * objects/UML/pixmaps/umlclass_template.xpm:
17201         Removed alternative pixmaps. (Moved to sheet).
17203         * objects/custom/Makefile.am:
17204         * objects/custom/load_sheet.[ch]:
17205         Removed old sheet loading code.
17206         
17207         * objects/custom/custom.c:
17208         Load all shapes instead of sheets.
17209         Removed custom_register_sheets().
17211         * objects/custom/custom_object.c:
17212         Added debug code.
17214         * objects/custom/shape_info.[ch]:
17215         Added shape_info_getbyname().
17217         * objects/flowchart/Makefile.am:
17218         * objects/flowchart/collate.shape            
17219         * objects/flowchart/delay.shape              
17220         * objects/flowchart/display.shape            
17221         * objects/flowchart/document.shape           
17222         * objects/flowchart/extract.shape            
17223         * objects/flowchart/flowchart.c              
17224         * objects/flowchart/intstorage.shape         
17225         * objects/flowchart/magdisk.shape            
17226         * objects/flowchart/magdrum.shape            
17227         * objects/flowchart/magtape.shape            
17228         * objects/flowchart/manualinput.shape        
17229         * objects/flowchart/manualop.shape           
17230         * objects/flowchart/merge.shape              
17231         * objects/flowchart/offlinestore.shape       
17232         * objects/flowchart/offpageconn.shape        
17233         * objects/flowchart/or.shape                 
17234         * objects/flowchart/predefdproc.shape        
17235         * objects/flowchart/preparation.shape        
17236         * objects/flowchart/punchedcard.shape        
17237         * objects/flowchart/punchedtape.shape        
17238         * objects/flowchart/sort.shape               
17239         * objects/flowchart/sumjunction.shape        
17240         * objects/flowchart/terminal.shape           
17241         * objects/flowchart/transaction.shape        
17242         * objects/flowchart/transmittape.shape       
17243         * objects/flowchart/pixmaps/collate.xpm      
17244         * objects/flowchart/pixmaps/delay.xpm        
17245         * objects/flowchart/pixmaps/display.xpm      
17246         * objects/flowchart/pixmaps/document.xpm     
17247         * objects/flowchart/pixmaps/extract.xpm      
17248         * objects/flowchart/pixmaps/intstorage.xpm   
17249         * objects/flowchart/pixmaps/magdisk.xpm      
17250         * objects/flowchart/pixmaps/magdrum.xpm      
17251         * objects/flowchart/pixmaps/magtape.xpm      
17252         * objects/flowchart/pixmaps/manualinput.xpm  
17253         * objects/flowchart/pixmaps/manualop.xpm     
17254         * objects/flowchart/pixmaps/merge.xpm        
17255         * objects/flowchart/pixmaps/offlinestore.xpm 
17256         * objects/flowchart/pixmaps/offpageconn.xpm  
17257         * objects/flowchart/pixmaps/or.xpm           
17258         * objects/flowchart/pixmaps/predefdproc.xpm  
17259         * objects/flowchart/pixmaps/preparation.xpm  
17260         * objects/flowchart/pixmaps/punchedcard.xpm  
17261         * objects/flowchart/pixmaps/punchedtape.xpm  
17262         * objects/flowchart/pixmaps/sort.xpm         
17263         * objects/flowchart/pixmaps/sumjunction.xpm  
17264         * objects/flowchart/pixmaps/terminal.xpm     
17265         * objects/flowchart/pixmaps/transaction.xpm  
17266         * objects/flowchart/pixmaps/transmittape.xpm 
17267         Moved shapes and their pixmaps to shapes/flowchart
17269         * shapes/Circuit/Makefile.am:
17270         * shapes/Circuit/index.sheet:
17271         Removed index.sheet.
17272         
17273         * shapes/Makefile.am:
17274         * shapes/flowchart/Makefile.am:
17275         * shapes/flowchart/*.shape:
17276         * shapes/flowchart/*.xpm:
17277         Added flowchart shapes. (Moved from objects/flowchart)
17278         
17280 1999-11-07  Fredrik Hallenberg  <hallon@lysator.liu.se>
17282         * app/app_procs.c: Fixed popt stuff.
17284 1999-11-01  James Henstridge  <james@daa.com.au>
17286         * shapes/Circuit/[hv]led_de.{shape,xpm}: new circuit shapes from
17287         Andreas Scherf.
17289 1999-10-31  Alexander Larsson  <alla@lysator.liu.se>
17291         * dia.spec:
17292         * configure.in:
17293         Update version to 0.81.
17294         
17295         * NEWS:
17296         Update with news for 0.81.
17297         
17298         * shapes/Circuit/*:
17299         * shapes/Circuit_eu/*:
17300         Moved european circuit objects to Circuit sheet.
17302 1999-10-31  Alexander Larsson  <alla@lysator.liu.se>
17303         
17304         * lib/diagramdata.[ch]:
17305         Added layer_set_object_list() function.
17307         * app/undo.[ch]:
17308         Added support for undo of reordered objects.
17309         Fix the undo of delete to keep the right order on undo.
17310         
17311         * app/diagram.c:
17312         changed loop to object_add_updates_list() calls.
17313         Added undo support to bring to front/back.
17315         * app/disp_callbacks.c:
17316         * app/paginate_psprint.c:
17317         Remove warnings.
17319 1999-10-30  Alexander Larsson  <alla@lysator.liu.se>
17321         This plugs some leaks. Thanks to
17322         Bruce Mitchener <bruce@cybersight.com> for running
17323         Dia through purify for me.
17324         
17325         * app/app_procs.c:
17326         Free displays and diagrams on exit.
17328         * app/modify_tool.c:
17329         Free gc when freeing tool.
17331         * lib/diagramdata.c:
17332         Free layer name.
17333         
17334         * app/display.c:
17335         Free update and display lists when destroying display.
17336         
17337         * lib/diagramdata.c:
17338         Don't leak layer name.
17340         * objects/custom/load_sheet.c: 
17341         * objects/custom/shape_info.c:
17342         Free loaded xml documents.
17344 1999-10-28  Alexander Larsson  <alla@lysator.liu.se>
17346         * app/commands.c:
17347         * app/object_ops.[ch]:
17348         Add undo handling to alignment ops.
17349         Based partially on patch by Dan Cohn <dan@internap.com>.
17351         * objects/standard/image.c (image_move_handle):
17352         Don't divide by zero for small images.
17353         Patch by Dan Cohn <dan@internap.com>.
17355         * objects/UML/class.c (umlclass_destroy): 
17356         * objects/custom/custom_object.c (custom_destroy):
17357         Don't free connectionpoints before calling element_destroy
17358         which unconnects them.
17360 1999-10-26  Alexander Larsson  <alla@lysator.liu.se>
17362         * objects/custom/custom_object.c: 
17363         Load and save padding too. Fixes strange load crashes.
17365         * app/group.c (group_destroy):
17366         Don't unconnect already freed connectionpoints when
17367         destroying group. Probably fixes bug reported by
17368         Elliot Lee <sopwith@redhat.com>.
17370         * app/render_gdk.c:
17371         Don't crash on zero-size (broken) bezier curves.
17372         Different sort of fix. This should work on closed bezier curves
17373         too.
17375         * objects/standard/textobj.c:
17376         Activate default properties dialog for Text objects.
17378         * app/render_eps.c: 
17379         * app/load_save.c:
17380         * app/preferences.c:
17381         * app/render_svg.c:
17382         fopen files in binary or text mode.
17384 1999-10-26  Alexander Larsson  <alex@cendio.se>
17386         * app/render_gdk.c (bezier_add_lines):
17387         Don't crash on zero-size (broken) bezier curves.
17388         Fixes a crashing bug.
17390 1999-10-25  James Henstridge  <james@daa.com.au>
17392         * app/Makefile.am (run_dia.sh): allow dia to find internal shape files
17393         before it is installed.
17395         * objects/flowchart/flowchart.c: use relative paths to find shapes.
17397         * objects/custom/custom.c (custom_object_load): take file names
17398         relative to $(pkgdatadir)/shape-internal, and check an environment
17399         variable for an alternative directory.
17401         * app/...: added copyright messages to the top of my new code.
17403         * app/paginate_psprint.c: some general clean ups.  Also, give an error
17404         dialog if we can't open the command or output file for writing.
17406         * app/diapagelayout.c (dia_page_layout_set_orientation): fixed
17407         function so it would set orientation to landscape correctly.
17409         * app/paginate_psprint.c: use the paper settings that come with
17410         the diagram.  Also implemented landscape printing.
17412         * app/render_eps.c (new_psprint_renderer): use diagram paper metrics
17413         in PS header.
17415         * app/commands.[ch] (file_pagesetup_callback): added callback for
17416         the page setup dialog.
17418         * app/menus.c: added page setup menu item.
17420         * app/pagesetup.[ch]: implementation of the page setup dialog.
17422         * app/diapagelayout.[ch]: added accessors for the scaling factor.
17423         
17424         * app/load_save.c (diagram_load): load paper information from save
17425         file.
17426         (diagram_save): save the paper info.
17428         * lib/diagramdata.c (new_diagram_data): initialise paper info section
17429         of DiagramData structure.
17430         (diagram_data_destroy): free the paper name.
17432         * lib/diagramdata.h: added a paper member to the DiagramData structure
17433         that holds the page layout info for a diagram.
17435 1999-10-21  Alexander Larsson  <alla@lysator.liu.se>
17437         * objects/flowchart/box.c:
17438         * objects/flowchart/ellipse.c:
17439         * objects/flowchart/diamond.c:
17440         * objects/flowchart/parallelogram.c:
17441         Load and save padding too. Fixes strange load crashes.
17443 1999-10-21  Alexander Larsson  <alla@lysator.liu.se>
17445         * app/app_procs.c (name_is_lib):
17446         .dll, .sl and .so.0.0.0 are also libraries.
17448 1999-10-20  James Henstridge  <james@daa.com.au>
17450         * configure.in: added extra makefile.
17451         
17452         * shapes/Circuit_eu/*: a new set of european circuit shapes from
17453         Andreas Scherf <scherfa@fh-trier.de>.  Made a few small modifications
17454         (added fuses to makefile, fill the area of some of the components).
17456 1999-10-19  Alexander Larsson  <alla@lysator.liu.se>
17458         * lib/Makefile.am:
17459         * app/Makefile.am: 
17460         Add GDK_IMLIB_CFLAGS to includes.
17461         Changed --export-dynamic to -export-dynamic
17463         * lib/widgets.c:
17464         * objects/UML/message.c:
17465         Removed c++ comment.
17467         * lib/render_store.[ch]:
17468         Don't use empty structure. That is not Ansi C.
17470 1999-10-19  James Henstridge  <james@daa.com.au>
17472         * app/diapagelayout.c (dia_page_layout_init): use DiaUnitSpinner's for
17473         the margin entries, as they allow interpretation of units.
17474         (paper_size_change): display the current page dimensions.
17476         * app/diaunitspinner.[ch]: a widget derived from the standard
17477         GtkSpinButton that tries to take units into account.  So if you enter
17478         "1in" into the entry, it will convert it to 2.54cm.
17480 1999-10-18  Alexander Larsson  <alla@lysator.liu.se>
17482         * app/app_procs.c:
17483         Removed include of dlfcn.h
17485 1999-10-18  James Henstridge  <james@daa.com.au>
17487         * app/diapagelayout.c (paper_size_change, orient_changed): set upper
17488         bound on margin widths.  It is set to the paper width/height.
17490         * objects/flowchart/diamond.c (diamond_distance_from): fixed distance
17491         routine for the diamond.  This bug was found and fixed by Daniel Wang
17492         <danwang@CS.Princeton.EDU>
17494 Sun Oct 17 19:46:36 1999  ape@gandalf.spacetec.no  (Asbjorn Pettersen)
17496         * app/commands.c: Add <sys/types.h> before <sys/stat.h> to
17497         remove warning (OS/2 version).
17499 1999-10-17  Alexander Larsson  <alla@lysator.liu.se>
17501         * README:
17502         Put a pointer to objects/custom/README.
17503         
17504 1999-10-17  Alexander Larsson  <alla@lysator.liu.se>
17506         * dia.spec:
17507         Updated version to 0.80
17509         * configure.in:
17510         Updated version to 0.80cvs
17512 1999-04-08  Alexander Larsson  <alla@lysator.liu.se>
17514         * Released Dia 0.80
17515         Tag called DIA_0_80
17516         
17517 1999-10-17  Fredrik Hallenberg  <hallon@lysator.liu.se>
17519         * app/Makefile.am
17520         * lib/Makefile.am
17521         * objects/UML/Makefile.am
17522         * objects/ER/Makefile.am
17523         * objects/network/Makefile.am
17524         * objects/standard/Makefile.am
17525         * objects/FS/Makefile.am
17526         * objects/sybase/Makefile.am
17527         * objects/flowchart/Makefile.am
17528         * objects/custom/Makefile.am
17529         Added -I$(top_srcdir)/intl which is needed for
17530         --with-included-gettext.
17532         * POTFILES.in
17533         Updated.
17534         
17535         * po/sv.po
17536         Updated swedish translation.
17538 1999-10-16  Alexander Larsson  <alla@lysator.liu.se>
17540         * configure.in:
17541         Updated version number to 0.80.
17543         * KNOWN_BUGS:
17544         New file.
17546         * TODO:
17547         Updated. Moved bugs to KNOWN_BUGS.
17549         * NEWS:
17550         Updated with 0.80 release notes.
17551         
17552 1999-10-16  Alexander Larsson  <alla@lysator.liu.se>
17553         
17554         * lib/orth_conn.c:
17555         For backwards compatibility, make sure handle 0 and 1 are the
17556         first and last handle. Fixes compatibility with 0.41, breaks
17557         compatibility with cvs version.
17558         Fixed bug in undo/redo of adding deleting endpoint segments
17559         when the endpoint was connected.
17560         Start OrthConn objects with three segments.
17562 1999-10-16  James Henstridge  <james@daa.com.au>
17564         * objects/custom/custom_object.c (custom_update_data): changed
17565         resizing behaviour a bit so that shapes don't grow huge when you try
17566         to resize them to smaller than the size required by the text box.
17567         Also, now shapes will not grow with fixed aspect ratio when you enter
17568         text into them unless the shape has the fixed aspect ratio flag set.
17570 1999-10-15  James Henstridge  <james@daa.com.au>
17572         * objects/flowchart/flowchart.c: add new shapes to flowchart sheet.
17574         * object/flowchart/pixmaps/...: corresponding pixmaps for new shapes.
17576         * objects/flowchart/magdrum.shape: 
17577         * objects/flowchart/offlinestore.shape: 
17578         * objects/flowchart/punchedtape.shape: 
17579         * objects/flowchart/transmittape.shape: 
17580         * objects/flowchart/punchedcard.shape: new shapes.
17582         * objects/flowchart/flowchart.c: add new shapes to flowchart sheet.
17584         * object/flowchart/pixmaps/...: corresponding pixmaps for new shapes.
17586         * objects/flowchart/collate.shape:
17587         * objects/flowchart/delay.shape:
17588         * objects/flowchart/extract.shape:
17589         * objects/flowchart/intstorage.shape:
17590         * objects/flowchart/magdisk.shape:
17591         * objects/flowchart/magtape.shape:
17592         * objects/flowchart/merge.shape:
17593         * objects/flowchart/or.shape:
17594         * objects/flowchart/sort.shape:
17595         * objects/flowchart/sumjunction.shape: new shapes.
17597 1999-10-15  Alexander Larsson  <alla@lysator.liu.se>
17599         * TODO (BUGS):
17600         Added bug:
17601         Entering an erronous command as print command
17602         crashes dia.
17604         * app/paginate_psprint.c:
17605         Save all print dialog values for next time.
17606         
17607         * app/Makefile.am:
17608         Remove custom lib from DIA_LIB_PATH.
17610 1999-10-14  James Henstridge  <james@daa.com.au>
17612         * objects/flowchart/flowchart.c: add new shapes to flowchart sheet.
17614         * object/flowchart/pixmaps/...: corresponding pixmaps for new shapes.
17615         
17616         * objects/flowchart/offpageconn.shape: 
17617         * objects/flowchart/manualop.shape: 
17618         * objects/flowchart/preparation.shape: 
17619         * objects/flowchart/manualinput.shape: 
17620         * objects/flowchart/predefdproc.shape: 
17621         * objects/flowchart/terminal.shape: new shapes in the flowchart sheet.
17623 1999-10-13  James Henstridge  <james@daa.com.au>
17625         * app/diapagelayout.[ch]: added accessors to paper information.  The
17626         widget should be just about complete now.
17628         * app/diapagelayout.[ch]: fleshed out the page setup widget a bit more.
17629         It actually does something now.
17631 1999-10-12  James Henstridge  <james@daa.com.au>
17633         * app/pixmaps/portrait.xpm, app/pixmaps/landscape.xpm: support pixmaps
17634         for the page layout widget.
17636         * app/diapagelayout.[ch]: start of page layout widget.  Not actually
17637         built yet as it is not complete.
17639         * objects/flowchart/flowchart.c: added new shapes to sheet.
17641         * objects/flowchart/display.shape:
17642         * objects/flowchart/transaction.shape: new shapes.
17644         * AUTHORS: added my name to the spec file.
17646         * dia.spec: include the dia desktop entry to the spec file.
17648         * Makefile.am: install the dia.desktop file.
17650         * dia.desktop: added a gnome desktop entry so you can start dia
17651         from the gnome panel menu.
17653 1999-10-11  James Henstridge  <james@daa.com.au>
17655         * objects/custom/custom_object.c:
17656         * objects/custom/shape_info.c: warning fixes.
17658         * objects/flowchart/document.shape: a shape file for the `document'
17659         flowchart shape.
17661         * lib/custom.h: new header with the custom shape prototypes.
17663         * app/app_procs.c: register custom objects as well.
17664         (register_objects_in): close shared libraries if they don't load
17665         correctly, and call g_module_make_resident on libraries that load
17666         correctly.
17668         * app/Makefile.am (dia_LDADD): added libcustom_objects.a to link list.
17670         * objects/custom/custom.c: removed get_version, added custom_ prefix
17671         to register_objects and register_sheets.
17673         * objects/custom/Makefile.am: converted to a normal library.
17675 1999-10-10  Alexander Larsson  <alla@lysator.liu.se>
17677         * app/lineprops_area.c:
17678         * app/render_svg.c:
17679         * lib/objchange.c:
17680         * objects/custom/shape_info.c:
17681         * objects/flowchart/box.c:
17682         * objects/flowchart/diamond.c:
17683         * objects/flowchart/ellipse.c:
17684         * objects/flowchart/parallelogram.c:
17685         * objects/network/flash.c:
17686         * objects/network/scead-plug.c:
17687         * objects/sybase/client.c:
17688         Removed -Wall warnings.
17689         
17690         * objects/network/bus.c:
17691         Removed unused functions.
17693         * objects/FS/flow-ortho.c:
17694         * objects/FS/flow-poly.c:
17695         * objects/FS/flow.c:
17696         * objects/FS/function.c:
17697         
17698         Implemented "non-implemented" undo for FS objects.
17699         Now at least it won't crash.
17700         
17701 1999-10-10  Alexander Larsson  <alla@lysator.liu.se>
17703         * objects/network/bus.c:
17704         Implemented undo.
17705         Handles are now added and removed using the object menu.
17706         Default to 6 handles instead of 10.
17707         Changed name from "Standard - Bus" to "Network - Bus". Kept old
17708         name for backwards compatibility.
17710         * objects/network/network.c:
17711         Changed name from "Standard - Bus" to "Network - Bus". Kept old
17712         name for backwards compatibility.
17714         * app/properties.[ch]:
17715         * app/undo.c:
17716         Update properties in properties dialog if the shown object
17717         is part of and ObjectChange (undo or redo).
17719         * lib/poly_conn.c:
17720         Remove old known bugs list.
17722         * objects/UML/class_dialog.c:
17723         Removed debug printf's.
17725 1999-10-10  James Henstridge  <james@daa.com.au>
17727         * objects/custom/custom.c (custom_object_load): new function that
17728         provides a nice entry point to the custom shape code for when it
17729         gets used by other libraries.
17731         * configure.in: removed 11 makefiles from AC_OUTPUT list.  This
17732         speeds builds up a bit.
17734         * */Makefile.am (EXTRA_DIST): include pixmaps in distribution.
17735         (SUBDIRS): do not descend into pixmaps subdirs.
17737         * */pixmaps/Makefile.am: removed -- incorporate into parent makefiles.
17738         This speeds up build process.
17740         * objects/custom/custom.c (sheets): made variable static.
17742         * objects/custom/custom_util.[ch] (custom_get_relative_filename):
17743         renamed function.
17745         * objects/custom/load_sheet.[ch] (custom_sheet_load): renamed function.
17747         * objects/custom/custom.c: look in ~/.shapes instead of
17748         ~/.dia_shapes as the per-user shapes directory.
17750         * app/preferences.c (prefs_save): save config to ~/.diarc.
17751         (prefs_load): load configuration from ~/.diarc.  If the file
17752         does not exist, fallback on the old ~/.diarc location.
17754         * app/app_procs.c (create_user_dirs): create the ~/.dia directory
17755         on startup.
17756         (register_all_objects): look for user specific objects in
17757         ~/.objects rather than ~/.dia_libs.
17759 1999-10-10  Fredrik Hallenberg  <hallon@lysator.liu.se>
17761         * configure.in:
17762         * app_procs.c:
17763         * objects/flowchart/box.c
17764         * objects/flowchart/ellipse.c
17765         * objects/flowchart/flowchart.c 
17766         Use gmodule for dynamic linking. As gmodule is using
17767         RTLD_GLOBAL i had to change flowchart box and ellipse
17768         so the typenames doesn't conflict with the standard
17769         box and ellipse.
17771         * message.c
17772         * commands.c
17773         Use button box to make dialogs look better.
17775 1999-10-09  Alexander Larsson  <alla@lysator.liu.se>
17777         * objects/UML/class_dialog.c:
17778         * objects/UML/class.h:
17779         Implemented undo for "UML - Class" objects.
17780         Not 100% tested yet.
17782         * objects/UML/classicon.c:
17783         * objects/UML/constraint.c:
17784         * objects/UML/dependency.c:
17785         * objects/UML/generalization.c:
17786         * objects/UML/implements.c:
17787         * objects/UML/large_package.c:
17788         * objects/UML/lifeline.c:
17789         * objects/UML/message.c:
17790         * objects/UML/object.c:
17791         * objects/UML/realizes.c:
17792         * objects/UML/state.c:
17793         * objects/UML/usecase.c:
17794         Removed warnings.
17795         
17796         * lib/connectionpoint.h:
17797         Fixed typo.
17798         
17799 1999-10-09  James Henstridge  <james@daa.com.au>
17801         * objects/custom/*.[ch]: added copyright notices to custom object
17802         files.
17804         * shapes/Circuit/hdiode.shape:
17805         * shapes/Circuit/hzener.shape: 
17806         * shapes/Circuit/opamp.shape:
17807         * shapes/Circuit/vdiode.shape:
17808         * shapes/Circuit/vzener.shape: made adjustments to make the circuit
17809         shapes look nice after the custom shape code changes.
17811         * objects/custom/README: updated docs to cover changes to drawing
17812         code.
17814         * objects/custom/custom_object.c (custom_draw): honour the line
17815         properties when drawing the shape.
17817         * objects/custom/shape_info.[ch]: added support for setting line
17818         properties for individual drawing elements in a custom shape.  You
17819         can set the dash style, dash length, cap style and join style.
17821 1999-10-07  James Henstridge  <james@daa.com.au>
17823         * objects/custom/shape_info.c (parse_style): added a few extra synonyms
17824         for foreground and background.
17826         * objects/custom/custom_object.c (custom_draw): use the new style
17827         information when drawing the object.
17829         * objects/custom/shape_info.[ch]: store all shape style info in the
17830         GraphicStyle structure.  This makes adding support for extra CSS
17831         attributes easier -- we don't have to keep adding extra arguments to
17832         a lot of functions.
17834 1999-10-05  James Henstridge  <james@daa.com.au>
17836         * lib/intl.c (unalias_lang): merged in changes from the i18n code
17837         swiped from gnome-libs.
17839 1999-10-03  Alexander Larsson  <alla@lysator.liu.se>
17841         * objects/standard/image.c (get_directory):
17842         Fix memleak. Found by Kjartan Maraas <kmaraas@online.no>
17844 1999-09-28  Alexander Larsson  <alla@lysator.liu.se>
17846         * lib/poly_conn.c (polyconn_destroy):
17847         Fix bug. Access of freed memory.
17848         Rememeber, you can't free the handles of an object
17849         before calling object_destroy(), as it unconnects the handles
17850         therefore referencing them.
17852 1999-09-28  Alexander Larsson  <alla@lysator.liu.se>
17854         * app/undo.c:
17855         undo_clear() didn't set stack->depth to zero.
17856         This made other undo functions crash after this had been called
17857         on a "full" stack.
17858         
17859         * dia.xpm:
17860         Slightly modified by Chris Love <clove@exactis.com>
17862 1999-09-19  Alexander Larsson  <alla@lysator.liu.se>
17864         * objects/UML/class.h: 
17865         * objects/UML/class_dialog.c:
17866         Retrun NULL ObjectChange on class property change.
17867         This means no crashes, but "UML - Class" doesn't support undo yet.
17868         
17869 1999-09-19  Alexander Larsson  <alla@lysator.liu.se>
17870         
17871         * lib/text.c:
17872         Indentation fix.
17874         * objects/UML/classicon.c:
17875         * objects/UML/dependency.c:
17876         * objects/UML/generalization.c:
17877         * objects/UML/implements.c:
17878         * objects/UML/large_package.c:
17879         * objects/UML/lifeline.c:
17880         * objects/UML/message.c:
17881         * objects/UML/object.c:
17882         * objects/UML/realizes.c:
17883         * objects/UML/state.c:
17884         * objects/UML/usecase.c:
17885         Update to new undo (w. get/set_state).
17886         Add object menu to add/delete segments.
17888 1999-09-17  Alexander Larsson  <alla@lysator.liu.se>
17890         * app/menus.c:
17891         Add equal distance alignment.
17893         * app/object_ops.c:
17894         Add equal distance alignment.
17895         Fix bug in adjacent alignment.
17897 1999-09-16  Alexander Larsson  <alla@lysator.liu.se>
17899         * objects/UML/constraint.c: 
17900         Update to new undo (w. get/set_state).
17902 1999-09-15  Alexander Larsson  <alla@lysator.liu.se>
17904         * app/paginate_psprint.c:
17905         Save (parts, more todo) of the info in the print dialog to the
17906         next time it's opened.
17907         Patch from Yo Ric Dude <ricdude@toad.net>
17909 1999-09-14  Alexander Larsson  <alla@lysator.liu.se>
17911         * configure.in:
17912         Updated version string to 0.41cvs.
17914         * objects/UML/assocition.c:
17915         Update to new undo (w. get/set_state).
17916         Add object menu to add/delete segments.
17918         * app/app_procs.c:
17919         Added function debug_break() and called it after all
17920         objects and sheets are loaded. Place a breakpoint here if you
17921         want to debug objects. All symbols should be loaded.
17923 1999-09-12  James Henstridge  <james@daa.com.au>
17925         * app/menus.c (display_menu_items): added print menu item.
17926         (filemenu): always add print menu item -- even if gnome-print is
17927         not installed.
17929         * app/commands.h, app/commands.c (file_print_callback): the print
17930         menu item is now available for both gnome-print and non gnome-print
17931         setups.
17933         * app/paginate_psprint.c (diagram_print_ps): show a dialog to let you
17934         print with the non gnome-print driver.
17936 1999-09-11  James Henstridge  <james@daa.com.au>
17938         * app/paginate_gnomeprint.c (diagram_print_gnome): moved the gnome
17939         printer dialog code out of commands.c.
17941         * app/paginate_psprint.c: new file containing the pagination code for
17942         psprint.
17944         * app/render_eps.c: made a few modifications so as well as producing
17945         EPS files, this renderer can be set up to do postscript printing.
17946         This basically entailed adding an extra function to create a RenderEPS
17947         renderer which did not bother setting the viewport for the document.
17948         That was left for the pagination code.
17950 1999-09-10  James Henstridge  <james@daa.com.au>
17952         * app/render_gnomeprint.c (draw_ellipse, fill_ellipse): since
17953         gnome-print does not support elliptic arcs at the moment, approximate
17954         the ellipse with eight bezier curves.  This gives a pretty good
17955         match to a true ellipse.
17957 1999-09-09  James Henstridge  <james@daa.com.au>
17959         * app/commands.c (file_gnome_print_callback): added support for
17960         scaling the diagram.  Also fixed a few other bugs.
17962         * app/paginate_gnomeprint.c (print_page): added ability to scale
17963         document.  Fixed up test to see if the page has no objects on it.
17964         This should prevent some blank pages being printed.  Non square
17965         objects such as lines could still cause problems.
17967 1999-09-08  James Henstridge  <james@daa.com.au>
17969         * app/commands.c (file_gnome_print_callback): changed from using the
17970         standard printer selection dialog to one that also has a paper size
17971         selector as well.
17973         * commands.[ch]: added callbacks for the print menu item.  Currently
17974         it only does A4 output.  I will make it configurable soon.
17975         
17976         * app/menus.c: add a print diagram menu item if gnome-print support
17977         is enabled.
17978         
17979         * app/paginate_gnomeprint.c, app/paginate_gnomeprint.h: this is a
17980         bit higher level than the gnome-print renderer.  It splits the
17981         diagram into page size chunks and then renders them.  For each
17982         page, it only renders the objects whose bounding box intersects
17983         the page, and it sets the clip mask so that the diagram does not
17984         overlap the margins.
17985         
17986         * app/render_gnomeprint.c, app/render_gnomeprint.h: added a renderer
17987         that uses gnome-print as its back end.
17988         
17989         * configure.in: added a check for gnome-print.  It is disabled by
17990         default because the code is not really working correctly yet.
17992         * app/menus.c: the delete object menu item was missing from the
17993         GnomeUIInfo style menus.
17995 1999-09-07  Fredrik Hallenberg  <hallon@lysator.liu.se>
17997         * configure.in
17998         Added japanese to ALL_LINGUAS.
17999         Fix for Linux on Alpha.
18001 1999-09-07  Alexander Larsson  <alla@lysator.liu.se>
18003         * app/create_object.c (create_object_button_press):
18004         Always initialize tool->obj. Otherwise we store a null
18005         in the undo Change.
18007         * lib/text.c:
18008         Set linestyle before drawing cursor.
18009         Fix undo of backwards delete.
18011 1999-09-05  James Henstridge  <james@daa.com.au>
18013         * dia.spec: updated spec file to distribute $(prefix)/share/dia.
18015         * app/render_svg.c (draw_image): some fixes so that the appropriate
18016         style attributes are set.  Before it was setting line styles on
18017         fill_* functions.  Now it only does this for the draw_* variants.
18019         * app/Makefile.am (run_dia.sh): set the DIA_SHAPE_PATH environment
18020         variable so that custom shapes can be loaded.
18022         * shapes/: new directory for custom shapes.  The Circuit sheet has
18023         been moved here.
18025 1999-09-02  James Henstridge  <james@daa.com.au>
18027         * TODO: removed a few todo items that have been implemented.
18029         * app/interface.c (create_sheets): enabled the popup page menu to the
18030         notebook.  This can make it easier to select different sheets.
18032         * object/custom/Circuit/: added diode, zener diode, ground point and
18033         operational amplifier shapes.
18034         
18035         * objects/custom/Makefile.am: added a note about adding DEBUG_CUSTOM
18036         if you want the output.
18038         * objects/custom/shape_info.c (parse_path): same here.
18040         * objects/custom/load_sheet.c (load_with_readdir): don't print so
18041         much debugging output.  To get the previous level of output, define
18042         DEBUG_CUSTOM.
18044         * objects/custom/shape_info.c (parse_svg_node): polygons were being
18045         recorded as polylines in the ShapeInfo structure.
18047         * objects/custom/README: some notes on writing new custom shapes.
18048         
18049 1999-09-01  James Henstridge  <james@daa.com.au>
18051         * objects/custom/Circuit/hinductor.*:
18052         * objects/custom/Circuit/vinductor.*: added inductor shapes that
18053         also test out the bezier curve and SVG path support.
18054         
18055         * objects/custom/custom_object.c (custom_draw): added support for
18056         drawing bezier paths and filled shapes.
18058         * objects/custom/shape_info.c (parse_path): new function to parse
18059         SVG path elements.  It does not do quadratic beziers or elliptic
18060         arcs though.  Only moves, lines and cubic beziers.
18061         (*): added support for paths.
18063 1999-08-31  James Henstridge  <james@daa.com.au>
18065         * objects/sybase/ltm.c (render_to_store): use the newer bezier API.
18067         * app/render_svg.c (draw_bezier, fill_bezier): updated renderer
18068         interface
18070         * app/render_eps.c (draw_bezier, fill_bezier): updated renderer
18071         interface
18073         * app/render_gdk.c (draw_bezier, fill_bezier): updated renderer
18074         interface.
18076         * lib/render_store.[ch]: use newer bezier functions.
18078         * lib/render.h: changed the bezier drawing functions to use an array
18079         of BezPoint structures instead of normal Point structures to allow
18080         lineto's mixed in with the curveto's.
18081         
18082         * objects/custom/Circuit/pnp.*: added pnp transistor shape.
18083         
18084         * objects/custom/Circuit/Makefile.am (SHAPES): added index.sheet and
18085         xpm images for different shapes to Makefile.
18087         * objects/custom/custom_object.c (custom_object_new): set the icon
18088         for the sheet button if there is one.  Otherwise fall back on the
18089         default custom object icon.
18091         * objects/custom/shape_info.c (load_shape_info): read the sheet
18092         icon name from the shape file.
18094         * app/interface.c (create_sheet_page): if sheet_obj->pixmap == NULL,
18095         check the pixmap_file field for the name of a pixmap file to load
18096         for the tool.
18098         * lib/sheet.h (SheetObj): added pixmap_file field to structure.  It is
18099         at the end of the structure, and it isn't used if the pixmap field
18100         is non NULL, so it should not break binary compatibility.
18102         * objects/custom/load_sheet.[ch]: moved sheet loading code here.  Also
18103         added support for the use of an index.sheet file so you can specify
18104         the ordering of the shapes in the sheet, and also internationalise
18105         the sheet name and actually be able to give a description.  The old
18106         readdir based sheet loading code acts as a fallback if an index.sheet
18107         file can not be found.
18109         * objects/custom/custom_util.[ch]: new file containing useful routines
18110         needed by the custom object code.  Currently only contains a simple
18111         routine for resolving relative paths.
18113         * objects/custom/custom_object.c (custom_draw): fixed problem with
18114         drawing rectangles if the shape has been flipped.
18116 1999-08-30  James Henstridge  <james@daa.com.au>
18118         * objects/custom/custom_object.c (custom_get_object_menu): allow
18119         flipping of custom shapes.  This uses the miggle click object
18120         menu.
18122         * objects/custom/Circuit/npn.shape: fix aspect ratio.
18124         * objects/custom/custom_object.c (custom_update_data): honour the
18125         aspect ratio constraints.
18127         * objects/custom/shape_info.c (load_shape_info): updated aspect ratio
18128         tag parsing, so you can specify a free, fixed or a range for aspect
18129         ratios for the shape.
18131 1999-08-29  James Henstridge  <james@daa.com.au>
18133         * objects/custom/test.xml, objects/custom/Circuit/*.shape: fixed
18134         up shape namespace tag.
18136         * objects/custom/shape_info.c (load_shape_info): check xml:lang
18137         attribute on <description> elements to support i18n for custom
18138         shape descriptions.
18139         Also changed the shape namespace for custom shapes to something
18140         a little more sensible.
18142         * lib/dummy_dep.h (dummy_dep): added extra dummy dependency.
18144         * lib/intl.c: new file containing some functions for i18n stuff.
18146         * app/layer_dialog.c (create_button_box): fixed a warning.
18148         * objects/custom/custom_object.c: use current line style.  Save dash
18149         length.
18151         * objects/flowchart/diamond.c: use current line style.  Save dash
18152         length.
18154         * objects/flowchart/parallelogram.c: use current line style.  Save
18155         dash length.
18157         * objects/flowchart/ellipse.c: use current line style.  Save dash
18158         length.
18160         * objects/flowchart/box.c: use current line style.  Save dash length.
18162         * objects/standard/ellipse.c: make ellipse use current line style.
18164         * objects/standard/box.c: use the line style set in the toolbox for
18165         new boxes, and remember the dash length.
18167         * app/commands.c (view_toggle_rulers_callback): fix reshowing of
18168         rulers.
18170 1999-08-24  James Henstridge  <james@daa.com.au>
18172         * objects/flowchart/ellipse.c (ellipse_update_data): made some changes
18173         to try to stop ellipse to get infinite width/height when we resize,
18174         while trying to keep the text inside the ellipse.
18176         * objects/flowchart/box.c, objects/flowchart/parallelogram.c,
18177         * objects/flowchart/diamond.c, objects/flowchart/ellipse.c: fixed
18178         resizing behaviour, so that you can't push objects round the screen
18179         with the resize handles.
18181         * app/lineprops_area.c (dia_arrow_chooser_init, dia_line_chooser_init):
18182         get the OK buttons in the dialogs to take default clicks.
18184         * objects/custom/custom_object.c: added code so that resizing the
18185         shape does not end up pushing it round the screen.
18187 1999-08-23  Alexander Larsson  <alla@lysator.liu.se>
18189         * app/display.[ch]:
18190         Generate rectangle with the union of the damaged regions.
18191         This is used to optimize the grid paint and the object rendering.
18192         display_render_pixmap passes this info to grid_draw() and data_render().
18194         * app/grid.[ch]:
18195         grid_draw doesn't draw grid lines outside of damaged rectangle.
18196         Sets dashlength when drawing non-solid grid.
18197         
18198         * lib/diagramdata.[ch]:
18199         data_render() and layer_render() takes an optional damaged rectangle
18200         argument. No objects not intersecting this are drawn.
18202         * app/diagram.c:
18203         Fix warning.
18204         Call data_render with NULL update rectangle.
18205         
18206 1999-08-23  James Henstridge  <james@daa.com.au>
18208         * objects/custom/custom_object.c (custom_update_data): if the aspect
18209         ratio is fixed, make sure the shape is not distorted.
18211         * object/custom/shape_info.h, objects/custom/shape_info.c: notice if
18212         a <fixaspectratio/> tag is given in the shape file.
18214         * objects/custom/shape_info.[ch], objects/custom/custom_object.c:
18215         added support for stroke-width, stroke and fill CSS attributes
18216         specified in style attributes of the SVG elements.  The line width
18217         is relative to the user specified line width.  The stroke and fill
18218         attributes can only be used to swap the foreground/background
18219         colours.
18221         * lib/widgets.c (dia_line_style_selector_set_linestyle): set the
18222         sensitivity on the dash length selector when this function is called.
18224         * objects/standard/arc.c: same.  Also handle dash length.
18225         * objects/standard/zigzagline.c: same.
18226         * objects/standard/polyline.c: same.  Also handle dash length.
18227         * objects/standard/line.c: use default arrow/line styles.
18229         * app/interface.c: added callbacks to set the default attributes.
18231         * lib/attributes.c: added implementations of these functions.
18233         * lib/attributes.h: added extra prototypes for the new line properties
18234         area in the toolbox.
18236         * app/interface.c (create_lineprops_area): added line properties
18237         area to bottom of toolbox.
18239         * app/lineprops_area.h: a header exporting a few routines of the
18240         line properties area widgets.
18242         * app/lineprops_area.c: new file containing a selector for arrows
18243         and line styles to go in the main toolbox.
18245 1999-08-22  Alexander Larsson  <alla@lysator.liu.se>
18247         * HACKING:
18248         Update Gtk+ 1.0.5 comment to 1.2.0.
18250         * INSTALL:
18251         Demand libtool 1.3
18253         * acconfig.h:
18254         Add HAVE_LIBPOPT
18256         * configure.in:
18257         Make sure we don't propagate -ldl and -lpopt to all LIBS
18258         by adding new var APP_LIBS that only app/dia links with.
18259                 
18260         * app/Makefile.am:
18261         Update run_dia.sh to load custom and flowchart objects.
18263         * objects/ER/Makefile.am:
18264         * objects/FS/Makefile.am:
18265         * objects/UML/Makefile.am:
18266         * objects/network/Makefile.am:
18267         * objects/standard/Makefile.am:
18268         * objects/sybase/Makefile.am:
18269         Don't build versioned libs.     
18270         
18271 1999-08-22  James Henstridge  <james@daa.com.au>
18273         * configure.in: added objects/custom/Circuit/Makefile to AC_OUTPUT
18274         list.
18276         * objects/Makefile.am (SUBDIRS): added custom to subdir list -- it
18277         should actually work a bit now.
18279         * objects/custom/Circuit/*: a test sheet for the custom shape code.
18280         It is a small collection of circuit elements.
18282         * objects/custom/shape_info.c: fixed up loading of polylines and
18283         polygons.  Before it was removing negative signs :(
18285         * objects/custom/pixmaps/custom.xpm: drew the custom shape icon.  A
18286         placeholder was here before.  I still need to work out how to set
18287         icons for individual custom shapes.
18288         
18289         * objects/custom/custom.c: added code to load the shapes into sheets
18290         properly.  The shape files should be arranged into directories, and
18291         each directory represents a different sheet in the toolbox.  This
18292         will make it very easy to distribute a collection of dia shapes as
18293         a tarball.  I still need to work out internationalisation, and maybe
18294         also shape ordering in the sheet.
18296         * objects/custom/custom_object.c: fixed up dialogs for these objects.
18297         (custom_create): fix for objects without text areas.
18299         * objects/custom/shape_info.h, objects/custom/custom_object.c: loading
18300         and saving of custom object works correctly now.
18302 1999-08-21  James Henstridge  <james@daa.com.au>
18304         * objects/flowchart/ellipse.c: 
18305         * objects/flowchart/diamond.c: 
18306         * objects/flowchart/parallelogram.c: 
18307         * objects/flowchart/box.c: Fixed up a few bugs in these objects when
18308         copying or loading these object types.  Not all the connection
18309         points would be initialised correctly.
18311         * objects/flowchart/Makefile.am (libflowchart_objects_la_LDFLAGS):
18312         similar here.
18314         * objects/custom/Makefile.am (libcustom_objects_la_LDFLAGS): do not
18315         build a versioned library.  It will only ever be dlopen'd, so this
18316         is not a problem.
18318         * objects/custom/custom_object.c (custom_distance_from): allow
18319         selecting the object by clicking on the text.  This fixes problems
18320         where the text box is outside the graphic.
18322         * objects/custom/shape_info.c (load_shape_info): fixed up reading
18323         of connections points.  It should be possible to add connections
18324         to custom objects now.
18326         * objects/custom/custom_object.c (custom_update_data): fixed resizing
18327         due to changes to text.
18329         * configure.in: added extra makefiles.
18330         
18331         * objects/custom/shape_info.[ch]:
18332         * objects/custom/custom_object.c:
18333         * objects/custom/custom.c: the starts of custom shape support in dia.
18334         This is not built by default at the moment, since it is not quite
18335         complete.  When it is, it will let you create more shapes for dia
18336         without writing a line of C.  Its implementation includes buzzwords
18337         such as XML and SVG, so it must be good :)
18339 1999-08-19  Karsten Weiss  <karsten@addx.au.s.shuttle.de>
18341         * app/app_procs.c (app_exit): Use button labels "Quit" and
18342         "Cancel" instead of "Yes" and "No".
18343         Set default action to "Cancel" instead of "Quit".
18345 1999-08-19  James Henstridge  <james@daa.com.au>
18347         * objects/flowchart/flowchart.c: added ellipse object.
18348         
18349         * objects/flowchart/ellipse.c: a new shape for the flowchart toolbox.
18351 1999-08-18  James Henstridge  <james@daa.com.au>d
18353         * app/color_area.c (color_area_edit): small fix to prevent dia from
18354         segfaulting when you try to change the default foreground/background.
18356 1999-08-17  Alexander Larsson  <alla@lysator.liu.se>
18358         * app/diagram.[ch] (diagram_redraw_all):
18359         Added function that redraws all diagrams.
18361         * app/preferences.c (prefs_apply):
18362         Call diagram_redraw_all when prefs are changed.
18364         * app/render_svg.c:
18365         Don't use xmlEncodeEntitiesReentrant(). It doesn't exist on
18366         older libxml's, and the old version works good enought here.
18367         
18368 1999-08-17  James Henstridge  <james@daa.com.au>
18370         * lib/widgets.c: changed handlers that were connected to the GtkButton
18371         "pressed" signal to connect to the "clicked" signal.  This removes the
18372         problem where dialogs are inactive until you click a mouse button
18373         after using a colour selector.
18375         * configure.in: added extra makefiles to AC_OUTPUT list.
18376         
18377         * objects/Makefile.am (SUBDIRS): added flowchart module
18379         * objects/flowchart/*: a collection of shapes for use in flowcharts.
18381         * app/color_area.c (color_area_events): similar here.
18383         * app/linewidth_area.c (linewidth_area_events): sometimes a configure
18384         event is recieved with event->width == 0, which causes a warning if we
18385         try to create a pixmap of that width.
18387         * app/preferences.c, app/preferences.h, app/grid.c: added code to
18388         allow you to configure the colour of the grid, and also lets you
18389         set the grid to use dotted lines instead of solid ones.
18390         
18391         * app/commands.c, app/commands.h, app/diagram.c, app/diagram.h,
18392         app/menus.c, app/Makefile.am: added menu entry for exporting SVG files.
18393         
18394         * app/render_svg.h, app/render_svg.c: an SVG (Scalable Vector Graphics)
18395         export filter.  It is not quite complete, but for most shapes it
18396         works as expected.  Fonts still need a bit of work.
18398 1999-08-11  Robert Brady  <rwb197@ecs.soton.ac.uk>
18400         * configure.in: Added "en_GB" to ALL_LINGUAS.
18402 1999-08-04  Fredrik Hallenberg  <hallon@lysator.liu.se>
18404         * menus.c
18405         Added Undo and Redo to GNOME menus.
18406         
18407         * objects/ER/attribute.c:
18408         * objects/ER/entity.c:
18409         * objects/ER/participation.c:
18410         * objects/ER/relationship.c:
18411         Added get/set_state functions.
18413         * objects/ER/participation.c:
18414         Added add/delete segment.
18416         * po/sv.po
18417         Updated Swedish translation.
18419 1999-07-25  Alexander Larsson  <alla@lysator.liu.se>
18421         * app/preferences.[hc]:
18422         Added undo_depth pref.
18423         
18424         * app/undo.[ch]:
18425         Never grow stack larger than pref.undo_depth.
18426         undo_depth == 0 means unlimited.
18427         Converted printfs to conditionally compiled DEBUG_PRINTFs.
18428         
18429 1999-07-25  Alexander Larsson  <alla@lysator.liu.se>
18431         * app/diagram.c:
18432         * app/group.c:
18433         * lib/object.h:
18434         * lib/render_object.c:
18435         * objects/ER/attribute.c:
18436         * objects/ER/entity.c:
18437         * objects/ER/participation.c:
18438         * objects/ER/relationship.c:
18439         * objects/FS/flow-ortho.c:
18440         * objects/FS/flow-poly.c:
18441         * objects/FS/flow.c:
18442         * objects/FS/function.c:
18443         * objects/UML/actor.c:
18444         * objects/UML/association.c:
18445         * objects/UML/class.c:
18446         * objects/UML/classicon.c:
18447         * objects/UML/component.c:
18448         * objects/UML/constraint.c:
18449         * objects/UML/dependency.c:
18450         * objects/UML/generalization.c:
18451         * objects/UML/implements.c:
18452         * objects/UML/large_package.c:
18453         * objects/UML/lifeline.c:
18454         * objects/UML/message.c:
18455         * objects/UML/note.c:
18456         * objects/UML/object.c:
18457         * objects/UML/realizes.c:
18458         * objects/UML/small_package.c:
18459         * objects/UML/state.c:
18460         * objects/UML/usecase.c:
18461         * objects/network/bus.c:
18462         * objects/standard/arc.c:
18463         * objects/standard/box.c:
18464         * objects/standard/ellipse.c:
18465         * objects/standard/image.c:
18466         * objects/standard/line.c:
18467         * objects/standard/polyline.c:
18468         * objects/standard/textobj.c:
18469         * objects/standard/zigzagline.c:
18470         Removed all traces of is_empty(). It doesn't work in an
18471         Undo/Redo world.
18473 1999-07-25  Alexander Larsson  <alla@lysator.liu.se>
18475         * app/diagram.c:
18476         * app/group.[ch]:
18477         * app/undo.[ch]:
18478         Undoable grouping and ungrouping.
18480         * app/layer_dialog.c:
18481         * lib/diagramdata.[ch]:
18482         Undoable layer ops.
18484         * app/modify_tool.c:
18485         Undoable unconnect on handle move.
18487         * lib/orth_conn.[ch]:
18488         Working undoable add/remove segment.
18489         Removed endpoint_handles from OrthConn, renamed
18490         midpoint_handles to handles and put the endpoint
18491         handles there.
18493         * objects/standard/zigzagline.c:
18494         * objects/ER/participation.c:
18495         * objects/UML/association.c:
18496         * objects/UML/dependency.c:
18497         * objects/UML/generalization.c:
18498         * objects/UML/realizes.c:
18499         Update for the changes in OrthConn
18500         
18501 1999-07-23  Karsten Weiss  <karsten@addx.au.s.shuttle.de>
18503         * configure.in: Added "de" to ALL_LINGUAS.
18505 1999-07-17  Alexander Larsson  <alla@lysator.liu.se>
18507         * dia.1:
18508         Fixed typo.
18510         * app/display.c:
18511         * po/da.po:
18512         * po/fr.po:
18513         * po/hu.po:
18514         * po/no.po:
18515         * po/pl.po:
18516         * po/sv.po:
18517         Don't have the <Display> etc part of the menu strings
18518         i18n:ed. Patch from Fabrice.Bellet@imag.fr.
18520         * app/diagram.c:
18521         Don't have the <Display> etc part of the menu strings
18522         i18n:ed. Patch from Fabrice.Bellet@imag.fr.
18523         Don't remove is_empty() objects, that don't work with undo.
18525         * lib/objchange.[ch]:
18526         New files.
18527         Definition of ObjectChange. This is essentially an Change
18528         exported to the object libs. It encapsulates a change made
18529         to an objects internals. It can be applied, reverted and freed.
18530         There are also utility functions for doing ObjectChanges that
18531         only get/set the whole state of an object to store the change.
18532         This cannot be used when the object change deletes or adds a
18533         object which has references from other objects, eg. Handles which
18534         might be connected.
18536         * lib/Makefile.am:
18537         Added objchange.c and objchange.h.
18539         * lib/dia_image.c:
18540         Return NULL when loading fails.
18542         * lib/diamenu.h:
18543         Menu callbacks return an ObjectChange.
18545         * lib/dummy_dep.h:
18546         Reference objchange.o
18548         * lib/focus.h:
18549         Key events return ObjectChange if they modify the object.
18551         
18552         * lib/object.h:
18553         Added object_add_handle_at() function.
18554         Apply properties returns an ObjectChange.
18555         Remove ObjectState and the get/set state functions, these
18556         don't always work. Use the new ObjectChange instead.
18557         
18558         * lib/object.c:
18559         Added object_add_handle_at() function implementation.
18560         
18561         * lib/orth_conn.[ch]:
18562         Use ObjectChange. Not finished yet.
18563         Removed get/set/free state functions
18565         * lib/poly_conn.[ch]:
18566         Use ObjectChange.
18567         Don't remove segments that are small.
18568         Removed get/set/free state functions
18570         * lib/text.[ch]:
18571         Use ObjectChange.
18572         Added functions to get/set all text attributes.
18574         * objects/standard/arc.c:
18575         * objects/standard/box.c:
18576         * objects/standard/ellipse.c:
18577         * objects/standard/image.c:
18578         * objects/standard/line.c:
18579         * objects/standard/polyline.c:
18580         * objects/standard/textobj.c:
18581         * objects/standard/zigzagline.c:
18582         Use ObjectChange.
18583         fixed bug in image_set_state.
18584         zigzagline.c not finished yet.
18586         * app/disp_callbacks.c:
18587         Use ObjectChange that are returned from menu callbacks and
18588         key_events for undo.
18590         * app/properties.c:
18591         Use ObjectChange that are returned from properties apply
18592         for undo.
18594         * app/undo.c:
18595         * app/undo.h:
18596         New undo type: ObjectChangeChange. This wraps a change to the
18597         internals of an object (and ObjectChange) in code that does
18598         app specific stuff (object_add_updates etc.)
18600 1999-07-11  Alexander Larsson  <alla@lysator.liu.se>
18602         * lib/orth_conn.[ch]:
18603         Added code for add/delete segment.
18605         * objects/standard/zigzagline.c:
18606         Use the new orth_conn code.
18607         
18609 1999-07-08  Fredrik Hallenberg  <hallon@lysator.liu.se>
18611         * objects/FS/Makefile.am
18612         Removed fs.h from sources.
18614         * Makefile.am
18615         * dia.1
18616         Added man page.
18618 1999-07-07  Alexander Larsson  <alla@lysator.liu.se>
18620         * app/disp_callbacks.c (ddisplay_canvas_events):
18621         Fix for bug. Every other arrow-key press got lost.
18622         patch from Mr. Data Esq. <data@r47h102.res.gatech.edu>
18624         * INSTALL:
18625         change automake.sh to autogen.sh
18626         
18627 1999-06-24  Alexander Larsson  <alla@lysator.liu.se>
18629         * app/diagram.c:
18630         Don't remove 'empty' objects.
18631         This violent destruction of objects won't work
18632         with the new undo framework.
18634         * app/disp_callbacks.c:
18635         Save undo info for object menu calls and key_events.
18637         * app/properties.c:
18638         Save undo info on properties apply.
18640         * lib/dia_image.[ch]:
18641         Add refcounting for images.
18643         * app/render_eps.c:
18644         * app/render_gdk.c:
18645         * lib/render.h:
18646         DiaImage * -> DiaImage
18648         * app/undo.[ch]:
18649         Add undo functions for object state changes.
18651         * lib/focus.h:
18652         * lib/text.c:
18653         change of semntics for focus->key_event.
18654         Now returns TRUE if the object recieving the event
18655         was changed.
18657         * lib/object.h:
18658         Comment changes.
18660         * lib/orth_conn.[ch]:
18661         Don't automatically create and delete segments when
18662         handles are moved. This is incompatible with undo.
18663         Added state get, set and free functions.
18665         * lib/orth_conn.[ch]:
18666         Added state get, set and free functions.
18668         * objects/UML/object.c:
18669         * objects/UML/uml.c:
18670         Fixed typo "UML - Objet" -> "UML - Object".
18671         Saved old for backwards compatibility.
18673         * objects/standard/arc.c:
18674         * objects/standard/box.c:
18675         * objects/standard/ellipse.c:
18676         * objects/standard/image.c:
18677         * objects/standard/line.c:
18678         * objects/standard/polyline.c:
18679         * objects/standard/textobj.c:
18680         * objects/standard/zigzagline.c:
18681         Added get/set state functions.
18682         Textobj has a redo crash-bug.
18683         Zigzagline needs object menus to add segments.
18684         
18686 1999-06-20  Alexander Larsson  <alla@lysator.liu.se>
18688         * app/render_eps.c (set_dashlength):
18689         Don't generate eps files with zero dash-length.
18691 1999-06-16  Alexander Larsson  <alla@lysator.liu.se>
18693         * app/commands.c:
18694         * app/create_object.c:
18695         * app/undo.[ch]:
18696         Finished undo for create and paste.
18697         
18698         * lib/object.h:
18699         Started properties undo.
18701 1999-06-14  Alexander Larsson  <alla@lysator.liu.se>
18703         * TODO:
18704         Added resizeable groups.
18706         * app/app_procs.c:
18707         Removed unused variable.
18709         * app/commands.c:
18710         * app/undo.[ch]:
18711         Undo/redo for cut/delete done.
18713         * app/create_object.c:
18714         * app/modify_tool.c:
18715         * lib/diagramdata.[ch]:
18716         * app/diagram.[ch]:
18717         renamed diagram_add_selected -> diagram_select
18718         renamed diagram_remove_selected -> diagram_unselect
18719         
18720         * app/properties.[ch]:
18721         Added properties_hide_if_shown() function.
18723 1999-06-13  Alexander Larsson  <alla@lysator.liu.se>
18725         * app/undo.[ch]:
18726         * app/Makefile.am:
18727         Undo functions.
18728         
18729         * app/commands.[ch]
18730         * app/modify_tool.[ch]
18731         * app/object_ops.[ch]
18732         * app/connectionpoint_ops.c
18733         * app/menus.c
18734         Use undo functions.
18735         WARNING: Not finished. Will break.
18736         Finished: move object, move handle.
18738         * app/diagram.[ch]
18739         Added diagram_selected_break_external() function.
18740         It removes all connections between selected objects
18741         and non-selected.
18742         Add undo stack to Diagram.
18743         
18744         * lib/diagramdata.[ch]
18745         Added layer_remove_objects() function
18746         
18747 1999-06-11  Fredrik Hallenberg  <hallon@lysator.liu.se>
18749         * objects/FS/Makefile.am
18750         * objects/sybase/Makefile.am
18751         Now uses GNOME_CFLAGS.
18753         * app/app_procs.c
18754         Now compiles with GNOME even if popt.h isn't available.
18756 1999-06-10  Alexander Larsson  <alla@lysator.liu.se>
18758         * configure.in
18759         * objects/Makefile.am
18760         * objects/sybase/*
18761         First version of sybase objects from
18762         Brian Bruns <camber@umcc.ais.org>
18764 1999-06-10  Fredrik Hallenberg  <hallon@lysator.liu.se>
18766         * configure.in
18767         Added fr to ALL_LINGUAS
18769 1999-06-09  Fredrik Hallenberg  <hallon@lysator.liu.se>
18771         * configure.in
18772         * app/app_procs.c
18773         Popt-code is activated if popt is available.
18775 1999-06-08  Alexander Larsson  <alla@lysator.liu.se>
18777         This is a patch from David Thompson <dcthomp@mail.utexas.edu>
18778         
18779         * lib/orth_conn.[ch]:
18780         Added orthconn_get_middle_handle()
18782         * lib/text.[ch]:
18783         Added text_set_cursor_at_end()
18784         
18785         * objects/FS/*
18786         Added first version of functions structure diagrams.
18787         
18788 1999-05-24  Alexander Larsson  <alla@lysator.liu.se>
18790         * app/modify_tool.c:
18791         Include math.h to remove warning.
18793         * app/commands.c (dialogs_properties_callback):
18794         Bring up correct properties dialog when selected
18795         from menu.
18796         From Dan Cohn <dan@internap.com>
18798 1999-05-20  Alexander Larsson  <alla@lysator.liu.se>
18800         Patch from Lars R. Clausen 
18801         
18802         * app/modify_tool.c:
18803         Changed abs to fabs.
18805 1999-05-19  Alexander Larsson  <alla@lysator.liu.se>
18807         * INSTALL: 
18808         * configure.in:
18809         Require Gtk+ 1.2.0
18811 1999-05-18  Alexander Larsson  <alla@lysator.liu.se>
18813         Patches from Dan Cohn <dan@internap.com>
18814         
18815         * app/commands.[ch]: 
18816         * app/display.[ch]: 
18817         * app/menus.c:
18818         * app/preferences.[ch]:
18819         Implements ability to turn on/off connection points in
18820         current drawing and in global prefs.
18822 1999-05-18  Alexander Larsson  <alla@lysator.liu.se>
18824         * lib/widgets.c (dia_line_style_selector_init): 
18825         Fixed warnings.
18826         
18827         * lib/diagramdata.c (layer_update_extents):
18828         Fixed uninitialized variable error.
18830 1999-05-17  Alexander Larsson  <alla@lysator.liu.se>
18832         * lib/dia_image.c:
18833         Made some changes to the gdk_imlib visual+colormap setup.
18835 1999-05-17  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
18837         * objects/UML/usecase.c: 
18838        * objects/UML/lifeline.c
18839         Fine tunning.
18841         * objects/UML/object.c: 
18842         * objects/UML/message.c: 
18843         Changed font from Courier to Helvetica.
18845         * lib/widgets.c: 
18846         * lib/widgets.h:
18847         Added dash lenth to the LineStyle widget.
18848         
18849         * objects/standard/ellipse.c :
18850         * objects/standard/zigzagline.c: 
18851         * objects/standard/line.c: 
18852         Added dash lenght property.
18854 1999-05-16  Alexander Larsson  <alla@lysator.liu.se>
18856         * app/render_eps.c:
18857         First shot at latin1 encoded eps files.
18858         Works, but the eps files get a bit large.
18859         
18860 1999-05-16  Alexander Larsson  <alla@lysator.liu.se>
18862         * objects/UML/class.[ch]: 
18863         * objects/UML/uml.[ch]:
18864         Reverted the line wrap changes.
18865         Some day this might return, but it has to be selectable and
18866         default to off for loaded objects, otherwise it breaks file
18867         format compatibility.
18868         There was also some complains about how it looked, so a making it
18869         selectable is good for this too.
18871 1999-05-15  Alexander Larsson  <alla@lysator.liu.se>
18873         * objects/UML/class.[ch]:
18874         Some indentation cleanup.
18875         Added wrap_lines variable to class.
18876         I'll fix the line break stuff tomorrow.
18878 1999-05-13  Alexander Larsson  <alla@lysator.liu.se>
18880         * lib/dummy_dep.h:
18881         Added ref to poly_conn.o.
18883         * objects/standard/polyline.c (polyline_draw): 
18884         * objects/standard/zigzagline.c (zigzagline_draw): 
18885         * objects/standard/arc.c (arc_draw): 
18886         * objects/standard/line.c (line_draw):
18887         Draw lines before arrows. This makes hollow arrows not
18888         show the line.
18890 1999-05-13  Alexander Larsson  <alla@lysator.liu.se>
18892         Changes from Kim Peasley <kpeasley@ior.com> 
18893                 
18894         * objects/UML/class.c:
18895         Break lines with long operations so classes won't be
18896         so wide.
18898         * objects/UML/uml.[ch]:
18899         Helperfunctions for the above.
18900         
18901         * objects/UML/objects.c:
18902         Fix bug that duplicated the text in the attributes
18903         textwidget each time the object was selected.
18904         
18905 1999-05-12  Alexander Larsson  <alla@lysator.liu.se>
18907         Changes from Lars R. Clausen <lrclause@cs.uiuc.edu>
18908         
18909         * app/modify_tool.c:
18910         * app/modify_tool.h:
18911         Control-drag is restricted to vertical/horizontal movement
18912         
18913         * lib/object.h:
18914         ModifierKeys argument added to object_move_handle
18916         * app/connectionpoint_ops.c:
18917         * app/create_object.c:
18918         * app/object_ops.c:
18919         * objects/ER/attribute.c:
18920         * objects/ER/entity.c:
18921         * objects/ER/participation.c:
18922         * objects/ER/relationship.c:
18923         * objects/UML/actor.c:
18924         * objects/UML/association.c:
18925         * objects/UML/class.c:
18926         * objects/UML/classicon.c:
18927         * objects/UML/component.c:
18928         * objects/UML/constraint.c:
18929         * objects/UML/dependency.c:
18930         * objects/UML/generalization.c:
18931         * objects/UML/implements.c:
18932         * objects/UML/large_package.c:
18933         * objects/UML/lifeline.c:
18934         * objects/UML/message.c:
18935         * objects/UML/note.c:
18936         * objects/UML/object.c:
18937         * objects/UML/realizes.c:
18938         * objects/UML/small_package.c:
18939         * objects/UML/state.c:
18940         * objects/UML/usecase.c:
18941         * objects/network/bus.c:
18942         * objects/standard/arc.c:
18943         * objects/standard/box.c:
18944         * objects/standard/ellipse.c:
18945         * objects/standard/image.c:
18946         * objects/standard/line.c:
18947         * objects/standard/polyline.c:
18948         * objects/standard/textobj.c:
18949         * objects/standard/zigzagline.c:
18950         Changed calls to move_handle to pass the new argument.
18951         
18952         * lib/widgets.c:
18953         * lib/widgets.h:
18954         Default line width, color etc #define'd
18955         
18956         * po/da.po:
18957         Updates of danish menus
18959 1999-05-08  Fredrik Hallenberg  <hallon@lysator.liu.se>
18961         * dia.xpm
18962         * dia_gnome_icon.png
18963         * dia_gnome_menu_icon.png
18964         * dia_logo.png
18965         Graphics by Toussaint Frédéric <ftoussin@club-internet.fr>.
18967         * app/commands.c
18968         About dialog shows dia_logo.png. Removed the GNOME about dialog.
18970         * Makefile.am
18971         Distribute the icons and install logo in pkgdatadir.
18972         
18973         * app/Makefile.am
18974         Added DATADIR-define.
18975         
18976 1999-04-28  Alexander Larsson  <alla@lysator.liu.se>
18977         Patches from Enrico Scholz <enrico.scholz@wirtschaft.tu-chemnitz.de>
18979         * dia.spec:
18980         Updated version number, made setup quiet, can build from cvs,
18981         --enable-gnome, now using automake 1.4 DESTDIR feature, install-strip
18983         * lib/Makefile.am
18984         * objects/ER/Makefile.am
18985         * objects/UML/Makefile.am
18986         * objects/network/Makefile.am
18987         * objects/standard/Makefile.am
18988         now builds better with gnome
18990         * objects/UML/class_dialog.c
18991         Fixed typo -> po files must be updated too!!
18992         
18993 1999-04-28  Alexander Larsson  <alla@lysator.liu.se>
18995         * lib/dummy_dep.h:
18996         Added reference so that widgets.o gets linked to the app.
18998 1999-04-23  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
19000         * objects/UML/classicon.c: 
19001         Added object mode.
19003         * objects/UML/actor.c: 
19004         Changed position of 'snap-to-grid' so connection points are
19005         in the grid.
19007 1999-04-22  Alexander Larsson  <alla@lysator.liu.se>
19009         * objects/UML/classicon.c:
19010         Changed position of 'snap-to-grid'.
19011         By Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
19012         
19013 1999-04-22  Alexander Larsson  <alla@lysator.liu.se>
19015         * objects/network/antenna.c
19016         * objects/network/flash.c
19017         * objects/network/hub.c
19018         * objects/network/modem.c
19019         * objects/network/modularswitch.c
19020         * objects/network/rj45plug.c
19021         * objects/network/scead-plug.c
19022         * objects/network/network.c
19023         * objects/network/Makefile.am
19024         * objects/network/pixmaps/antenna.xpm
19025         * objects/network/pixmaps/flash.xpm
19026         * objects/network/pixmaps/hub.xpm
19027         * objects/network/pixmaps/modem.xpm
19028         * objects/network/pixmaps/modularswitch.xpm
19029         * objects/network/pixmaps/rj45plug.xpm
19030         * objects/network/pixmaps/sceadplug.xpm
19031         * objects/network/pixmaps/Makefile.am
19032         Lots of new network objects from
19033         Roland Steinbach <roland@support-system.com>.
19035 1999-04-15  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
19037         * objects/UML/classicon.c: 
19038         Fixed connection positions, saved type as int (it has 3 states),
19039         and other small fixes.
19040         
19041 1999-04-14  Alexander Larsson  <alla@lysator.liu.se>
19043         * app/preferences.c:
19044         * app/load_save.c:
19045         Added preference compress_save. It lets dia save uncompressed
19046         xml files.
19048         * objects/UML/class.c:
19049         Fixed bug with size calculation on methods that had class scope.
19050         
19051 1999-04-13  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
19053         * objects/UML/usecase.c: 
19054         Added collaboration mode
19055         Fixed connection points with text > ellipse bug and other 
19056         small things
19058         * objects/UML/state.c:
19059         Fixed bug of bad position of text after being either end
19060         or begin, moved and returned to text
19062 1999-04-12  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
19064         * app/preferences.c: Add prototype declaration for prefs_apply.
19066 1999-04-11  Alexander Larsson  <alla@lysator.liu.se>
19068         * app/preferences.c:
19069         Added 'ok' button.
19070         Apply don't hide window.
19072         * app/properties.c:
19073         Add 'ok' button.
19075         * objects/UML/object.c:
19076         * objdcts/UML/state.c:
19077         Some data was not copied on copy.
19079         This patch is from
19080         Ben Hochstedler <benh@eeyore.moneng.mei.com>
19082 1999-04-09  Alexander Larsson  <alla@lysator.liu.se>
19084         * app/Makefile.am:
19085         Changed link order between X and libxml.
19086         Some people had problems with an old libz in their
19087         x11 directory.  
19089 1999-04-09  Kjartan Maraas  <kmaraas@online.no>
19091         * po/no.po: updated translation.
19092         
19093 1999-04-08  Lars R. Clausen <lrclause@cs.uiuc.edu>
19095         * lib/message.c (message_error):
19096         Fixed small error.
19098         * app/commands.[ch]:
19099         * app/diagram.[ch]:
19100         Added begining of xfig importing
19102 1999-04-08  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
19104         * objects/UML/pixmaps/state.xpm: 
19105         * objects/UML/state.c: 
19106         New UML object state machine.
19108         * objects/UML/uml.c:
19109         * objects/UML/Makefile.am:
19110         * objects/UML/pixmaps/Makefile.am:
19111         Added the state object.
19112         
19113 1999-04-08  Alejandro Aguilar Sierra  <ale@bucefalo>
19115         * objects/UML/usecase.c: 
19116         Added dialog to allow move text outside the ellipse.
19118 1999-04-08  Alexander Larsson  <alla@lysator.liu.se>
19120         * Released Dia 0.41
19121         Tag called DIA_0_41
19123         * NEWS:
19124         Updates for 0.41.
19125         
19126 1999-04-08  Alexander Larsson  <alla@lysator.liu.se>
19128         * configure.in:
19129         Updated version number to 0.41
19131         * po/*.po:
19132         Update po-files
19134 1999-04-04  Fredrik Hallenberg  <hallon@lysator.liu.se>
19136         * app/app_procs.c
19137         Changed errormessage for --export-to-ps. Removed call to 
19138         g_log_set_always_fatal().
19140         * app/diagram.c
19141         * app/disp_callbacks.c
19142         * app/load_save.c
19143         (i18n) Removed gettext from some debugmessages.
19145         * app/menus.c
19146         Small fix in GNOME-menus. Added warning that will help track
19147         problems with translations.
19149         * po/sv.po
19150         (i18n) Updated swedish translation.
19152 1999-04-02  Alexander Larsson  <alla@lysator.liu.se>
19154         * po/da.po:
19155         New updates
19157 1999-04-01  Alexander Larsson  <alla@lysator.liu.se>
19159         * po/da.po:
19160         * po/no.po:
19161         Some fixes.
19162         
19163 1999-04-01  Alexander Larsson  <alla@lysator.liu.se>
19165         * po/da.po:
19166         (i18n) Updated the danish translation.
19167         From Lars R. Clausen.
19169 1999-04-01  Fredrik Hallenberg  <hallon@lysator.liu.se>
19171         * app/menus.c
19172         (i18n) The popup menu is translated now.
19174         * po/sv.po
19175         (i18n) Updated swedish translation.
19177 1999-03-29  Alexander Larsson  <alla@lysator.liu.se>
19179         * Released Dia 0.40
19180         Tag called DIA_0_40
19182         * NEWS:
19183         Updated for new release
19184         
19185 1999-03-29  Alexander Larsson  <alla@lysator.liu.se>
19187         * objects/network/bus.c:
19188         Added initialization of properties dialog to NULL.
19190         * app/commands.c (edit_cut_callback):
19191         Update menu sensitivity when cut object.
19193         * app/modify_tool.c (click_select_object):
19194         * app/modify_tool.c (modify_button_release): 
19195         Call diagram_update_menu_sensitivity() when
19196         selecting objects to update stuff that depends
19197         on selected/not selected.
19199 1999-03-29  Alexander Larsson  <alla@lysator.liu.se>
19201         * Makefile.am:
19202         Change order of subdir so that libintl.a builds.
19203         Now passed make distcheck.
19205 1999-03-28  Alexander Larsson  <alla@lysator.liu.se>
19207         * lib/font.c (init_x11_font):
19208         Stupid bug fixed.
19210 1999-03-28  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
19212         * objects/UML/pixmaps/classicon.xpm: 
19213         * objects/UML/classicon.c:
19214         * objects/UML/uml.c:
19215         Added the class stereotype icon objects.
19217         * app/commands.c:
19218         Changed default ps extension from .ps to .eps.
19219         
19220 1999-03-28  Alexander Larsson  <alla@lysator.liu.se>
19222         * lib/Makefile.am:
19223         Added diamenu.h and intl.h
19225         * lib/font.c:
19226         Stupid typo fix.
19227         
19228         * objects/UML/pixmaps/Makefile.am:
19229         Added message.xpm
19231         * objects/standard/pixmaps/Makefile.am:
19232         Added image.xpm
19234 1999-03-28  Alexander Larsson  <alla@lysator.liu.se>
19236         * lib/font.c:
19237         Use a scalable font before fixed when real font not found.
19239         * app/commands.c:
19240         Removed warning.
19242         * objects/standard/image.c:
19243         Better handling of loading/saving of images.
19245         * INSTALL:
19246         Added some text about cvs, fonts and rewrote some parts.
19248         * TODO:
19249         Updated with new stuff.
19250         
19251         * configure.in:
19252         Bump up version number to 0.40.
19253         
19254 1999-03-28  Alexander Larsson  <alla@lysator.liu.se>
19256         * app/display.c:
19257         Moved diagram_add_ddisplay() call into new_display().
19258         Fixed new_display to not use uninitialized variables
19259         causing loaded files to show up as black (or garbage).
19260         
19261         * app/commands.c:
19262         * app/app_procs.c:
19263         Removed unneeded calls to diagram_add_ddisplay().
19264         
19265 1999-03-28  Alexander Larsson  <alla@lysator.liu.se>
19267         * objects/UML/lifeline.c:
19268         Fixed bug in copy.
19269         Patch from Andreas Jaeger <aj@arthur.rhein-neckar.de>.
19271         * objects/UML/message.c:
19272         Fixed bug loading messages with null-text.
19273         Patch from Andreas Jaeger <aj@arthur.rhein-neckar.de>.
19275 1999-03-27  Fredrik Hallenberg  <hallon@lysator.liu.se>
19277         * po/sv.po
19278         Updated swedish translation.
19280         * app/menus.c
19281         (GNOME) Removed help-browser from help menu. Fixed typo.
19283         * app/interface.c
19284         (GNOME) Accelerators in diagrams should work now. 
19286 1999-03-25  Fredrik Hallenberg  <hallon@lysator.liu.se>
19288         * app/app_procs.c
19289         * app/commands.c
19290         * app/defaults.c
19291         * app/disp_callbacks.c
19292         * app/display.c
19293         * app/interface.c
19294         * app/menus.c
19295         * app/preferences.c
19296         * app/render_eps.c
19297         * lib/diagramdata.c
19298         * lib/font.c
19299         * lib/message.c
19300         * lib/widgets.c
19301         * objects/ER/*.c
19302         * objects/UML/*.c
19303         * objects/network/*.c
19304         * objects/standard/*.c
19305         * po/update_pofiles_in.sh
19306         * po/POFILES.in
19307         More i18n. All strings (expect rare debug messages) can be
19308         translated now. Moved intl.h from app to lib. Updated
19309         update_pofiles_in.sh to check all .c-files.
19311 1999-03-23  Alexander Larsson  <alla@lysator.liu.se>
19313         * app/disp_callbacks.c (ddisplay_canvas_events):
19314         Don't drop keys while num-lock, scroll-lock etc is on.
19316 1999-03-22  Alexander Larsson  <alla@lysator.liu.se>
19318         * app/render_eps.c (draw_image):
19319         Fixed exporting of images.
19320         Still not perfect, but not outright buggy.
19321         
19322 1999-03-22  Alexander Larsson  <alla@lysator.liu.se>
19324         * configure.in:
19325         * po/hu.po:
19326         Added hungarian translation. By Shooby Ban <bansz@szif.hu>.
19328         * app/Makefile.am:
19329         Added $* to the dia call in run_dia.sh
19331 1999-03-22  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
19332         
19333         * lib/color.[ch]:
19334         Added color_equals() call.
19336         * objects/standard/arc.c:
19337         * objects/standard/line.c:
19338         Don't save unneccesary data.
19339         
19340         * objects/standard/box.c:
19341         * objects/standard/ellipse.c:
19342         * objects/standard/image.c:
19343         * objects/standard/polyline.c:
19344         * objects/standard/zigzagline.c:
19345         Share properties dialog.
19346         Don't save unneccesary data.
19347         
19348 1999-03-22  Seth Alves  <alves@hungry.com>
19350         * app/menus.c:
19351         * app/diagram.c:
19352         * app/display.c:
19353         small changes so that gnome menus aren't broken
19354         
19355 1999-03-22  Alexander Larsson  <alla@lysator.liu.se>
19357         * po/da.po:
19358         Added danish translation from lrclause@cs.uiuc.edu.
19360         * po/POFILES.in:
19361         Updated file.
19363         * po/update_pofiles_in.sh:
19364         Added script that updates POFILES.in.
19365         This should probably be run automatically from somewhere.
19367 1999-03-19  Alexander Larsson  <alla@lysator.liu.se>
19369         * app/diagram.[ch]:
19370         Added function diagram_update_menu_sensitivity() which
19371         sets the sensitivity of some menu items. This function
19372         is called at each diagram state change (from diagram_modified()).
19373         This is needed  because otherwise the keyboard accelerators
19374         don't work correctly.
19376         * app/display.[ch]:
19377         Changed display_set_menu_sensitivity() to display_update_menu_state().
19378         Moved lots of code to diagram_update_menu_sensitivity() in
19379         diagram.c. Optimized to only look up menu-items from path:s once.
19380         
19381         * app/disp_callbacks.c:
19382         * app/interface.c:
19383         When we get a GDK_FOCUS_CHANGE, update menu sensitivity.
19384         Need to set GDK_FOCUS_CHANGE_MASK.
19385         
19386         * app/create_object.c:
19387         Call diagram_modified when an object has been created and
19388         selected so that the menu sensitivity is updated. 
19390         * app/menus.[ch]:
19391         removed menus_set_sensitive() and menus_set_state(). Exported
19392         renamed function menus_get_item_from_path().
19394 1999-03-15  Alexander Larsson  <alla@lysator.liu.se>
19396         * app/disp_callbacks.c:
19397         Show (empty) object menus on object that has none.
19398         Show title on object menus.
19400         * app/display.c:
19401         Set zoom factor correctly when opening new displays.
19402         Better setting of scrollbars.
19404         * app/grid.c:
19405         * app/menus.h:
19406         Some reformating cleanup.
19408         * lib/diamenu.h:
19409         Added title to object menus.
19411         * objects/*/*.c:
19412         Added object menu method (NULL-valued) to all objects.
19414         * objects/standard/polyline.c:
19415         Added title to object menu.
19417 1999-03-14  Alexander Larsson  <alla@lysator.liu.se>
19419         * app/preferences.[ch]:
19420         New files. Implements the preferences dialog and
19421         loading/saving of ~/.diarc.
19423         * app/Makefile.am:
19424         Added preferences.[ch].
19426         * app/app_procs.c:
19427         Load preferences on startup.
19429         * app/commands.[ch]:
19430         Added file_preferences_callback to show the preferences dialog.
19432         * app/create_object.c:
19433         Update extents when creating object.
19434         Use the reset_tools_after_create preferences setting.
19436         * app/display.c:
19437         Use preferences when creating new display.
19439         * app/menus.c:
19440         Add preferences to menu.
19442         * app/defaults.c:
19443         * app/layer_dialog.c:
19444         * app/properties.c:
19445         Don't allow shrinking of dialog.
19446         Add i18n of some strings.
19448 1999-03-11  Kjartan Maraas  <kmaraas@fib.hl.no>
19449         * po/no.po:
19450         Norwegian translation added.
19451         
19452 1999-03-11  Alexander Larsson  <alla@lysator.liu.se>
19454         * objects/standard/line.c: 
19455         * objects/standard/arc.c: 
19456         * objects/standard/polyline.c: 
19457         * objects/standard/zigzagline.c:
19458         Loading of arrow data fixed.
19460 1999-03-09  Alexander Larsson  <alla@lysator.liu.se>
19462         * app/commands.c:
19463         Update extents when saving and exporting to postscript.
19464         Fixes a bug with postscript bounding-box being wrong.
19466         * app/defaults.c:
19467         Changed border width from 5 to 2.
19469         * app/group.c:
19470         Move grouped objects by the move-point of the first object.
19471         Fixes bug that made all objects in the group be off-grid
19472         when moving the group, even though all objects was on-grid.
19474         * app/layer_dialog.c:
19475         Update extents when changing layer.
19477 1999-03-08  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
19479        * objects/UML/uml.c: 
19480        * objects/UML/component.c: 
19481        * objects/UML/pixmaps/component.xpm: 
19482        Added the UML component object
19483         
19484 1999-03-04  Seth Alves  <alves@hungry.com>
19486         * objects/UML/generalization.c (generalization_create): avoid
19487         math on uninitialized genlz->text_width (NaN causes sigfpe)
19488         
19489         * objects/UML/realizes.c (realizes_create): same
19491         * objects/UML/dependency.c (dependency_create): same
19493 1999-03-01  Seth Alves  <alves@hungry.com>
19495         * app/display.c (ddisplay_active): don't fly a warning panel
19496         if ddisplay_active is called when no views are open.
19498         * app/commands.c (set_default_file_selection_directory): set
19499         file selector's default directory if there is already
19500         a document open.
19502 1999-02-28  Alexander Larsson  <alla@lysator.liu.se>
19504         * INSTALL:
19505         New info about imlib requirements.
19507         * Configure.in:
19508         Added lib/pixmaps/Makefile to created makefiles.
19510         * app/app_procs.c:
19511         * app/commands.c:
19512         Change from obsoleted to newer gtk calls.
19513         
19514         * load_save.c:
19515         Pass filename of the diagram when loading and saving.
19516         This creates better oportunities to handle filename saving.
19518         * lib/object.h:
19519         Pass filenames to load and save methods.
19520         
19521         * lib/dia_image.[ch]:
19522         Added dia_image_get_broken() call that returns a image which
19523         is used for 'broken' images.
19524         
19525         * lib/pixmaps/.cvsignore:
19526         * lib/pixmaps/Makefile.am:
19527         * lib/pixmaps/broken.xpm:
19528         New files for the broken image bitmap.
19530         * lib/widgets.c:
19531         Fixed bug with double destroyed filedialog.
19533         * objects/*/*.c:
19534         Updated load and save prototypes to use the new filename argument.
19536         * objects/image.c:
19537         Render broken image instead of line when got no image.
19538         Use the new filename in load and save to save (if possible)
19539         relative pathnames and to better try to find loaded images.
19541 1999-02-28  Alexander Larsson  <alla@lysator.liu.se>
19543         * TODO:
19544         Some updates to the todo file.
19545         
19546         * app/menus.c:
19547         * app/display.c:
19548         Place over/place over => sent to back/bring to front.
19549         Added some keyboard shortcuts to menus.
19550         
19551 1999-02-28  Alexander Larsson  <alla@lysator.liu.se>
19553         * lib/dia_xml.c:
19554         Changed string saving/loading to a new method. This should
19555         be much better att handling &,<,> and whitespaces.
19556         Loading strings of the old kind is still supported for backwards
19557         compatibility.
19559         * samples/ER-demo.dia:
19560         * samples/UML-demo.dia:
19561         Updated to use the new strings.
19562         
19563         * app/load_save.c:
19564         statusbar modified update fix.
19566 1999-02-27  Seth Alves  <alves@hungry.com>
19568         * app/app_procs.c (app_init): added a --export-to-ps option
19569         which will cause dia to load a dia file and save it as ps
19570         and then exit.  this is a little bogus, because it still
19571         pops up a window.  this option only shows up if --enable-gnome
19572         is used
19574         * app/display.c (display_set_menu_sensitivity): no Edit/Delete
19575         menu when built with --enable-gnome
19577         * app/interface.c (create_display_shell): build status bar
19578         even if --enable-gnome is used
19580         * app/menus.c: menu fixes for --enable-gnome
19582         * app/commands.c (file_open_dialog_ok_callback): fixed up
19583         menus when --enable-gnome is used
19584         (file_export_to_eps_callback): set a default file name
19585         when dialog is created
19587 1999-02-27  Alexander Larsson  <alex@c125.ryd.student.liu.se>
19589         * objects/UML/association.c (association_create):
19590         Fixed usage of not initialized variable.
19591         Pointed out by Seth Alves <alves@hungry.com>.
19593 1999-02-24  Alexander Larsson  <alex@c125.ryd.student.liu.se>
19595         * configure.in:
19596         Fixed detection of gnome-xml.
19597         From Valtteri Vuorikoski <vuori@k.notcom.org>.
19598         
19599         * app/app_procs.c:
19600         Fixed error detection on dlsym calls. 
19601         From Valtteri Vuorikoski <vuori@k.notcom.org>.
19603 1999-02-23  Alexander Larsson  <alla@lysator.liu.se>
19605         * objects/UML/message.c (fill_in_dialog):
19606         Fixed warnings.
19608 1999-02-22  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
19610         * objects/standard/zigzagline.c:
19611         * objects/standard/polyline.c:
19612         * objects/standard/line.c:
19613         * objects/standard/arc.c:
19614         * lib/widgets.h:
19615         * lib/arrows.h:
19616         * lib/widgets.c:
19617         Support for sizeable arrows. 
19619         * objects/standard/box.c:
19620         * objects/standard/ellipse.c:
19621         * objects/standard/image.c:
19622         Changed creation handle to lower-right.
19623         Transparent box/ellipse.
19624         
19625         * objects/standard/image.c:
19626         Better layout of properties boxes.
19628 1999-02-20  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
19630         * objects/UML/message.c (fill_in_dialog): 
19631         Fixed dialog fill in. Common dialog for all messages.
19633         * objects/UML/object.c: 
19634         Added multiple instance. Dialog related bugs fixed.
19635         Common dialog for all instances. Completed copy and destroy.
19637         * objects/UML/lifeline.c (lifeline_load): 
19638         Conn initialization bug fixed and few bad loading prevention flags.
19639         Common dialog for all lifeline objects.
19640         
19641 1999-02-15  Alexander Larsson  <alla@lysator.liu.se>
19643         * lib/dia_image.[ch]:
19644         More work on the DiaImage abstraction.
19645         
19646         * app/app_procs.c:
19647         * app/render_eps.c:
19648         * app/render_gdk.c:
19649         * objects/standard/image.c:
19650         Use the new DiaImage calls.
19652 1999-02-15  Alexander Larsson  <alla@lysator.liu.se>
19654         * app/menus.c:
19655         * app/display.c:
19656         Reversed the meaning of align horizontal/vertical.
19658 1999-02-15  Alexander Larsson  <alla@lysator.liu.se>
19660         * app/load_save.c (diagram_load):
19661         Statusbar update fix.
19663 1999-02-15  Alexander Larsson  <alla@lysator.liu.se>
19665         * app/interface.c (create_display_shell):
19666         Fixed status bar size.
19667         
19668 1999-02-15  Alexander Larsson  <alla@lysator.liu.se>
19670         * lib/dia_image.[ch]:
19671         Added extern declaration for dia_image_release.
19672         Removed dia_image_draw, as it's not neseccary.
19674 1999-02-14  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
19675         
19676         * app/object_ops.c: 
19677         * app/menus.c: 
19678         Added equal distance alignment both vertical and horizontal.
19679         
19680         * objects/UML/object.c: 
19681         Added a couple of attributes to load/read that were missing.
19683         * objects/UML/lifeline.c: 
19684         Better handling of handles. Fixed another bug I forgot to add
19685         to my last patch.
19686         
19687 1999-02-13  Alexander Larsson  <alla@lysator.liu.se>
19689         Patch from Lars Clausen <lrclause@shasta.cs.uiuc.edu>
19690         
19691         * lib/dia_image.[ch]:
19692         * lib/Makefile.am:
19693         New files. DiaImage wraps the GdkImlibImage.
19695         * lib/render.h:
19696         * app/render_eps.c:
19697         * app/render_gdk.c:
19698         * lib/render_store.[ch]:
19699         * objects/standard/image.c:
19700         Use the new DiaImagetype.
19702         * lib/widgets.c:
19703         Removed unused variable to eliminate  warning.
19705 1999-02-11  Alexander Larsson  <alla@lysator.liu.se>
19707         * objects/standard/box.c:
19708         Added rounded corners on the box object.
19710         * lib/widgets.[ch]:
19711         Updated the DiaFileSelector widget.
19712         
19713 1999-02-09  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
19715         * objects/UML/object.c (objet_draw): 
19716         Completed underlining of all object name lines. 
19718         * objects/UML/message.c (fill_in_dialog): 
19719         Fixed a bug that filled incorrectly the message's dialog.
19721         * objects/UML/lifeline.c (lifeline_load): 
19722         Some cleanning and fixed a couple of bugs that caused
19723         crashes after reading diagrams with lifelines.
19725         * lib/text.c: 
19726         Added flags to prevent crash with void strings
19728 1999-02-07  Matthias Köster <Matthias.Koester@Informatik.Uni-Oldenburg.DE>
19729         * app/display.[ch]:
19730         Added statusbar to the display widget. Currently shows the zoom
19731         factor and modified flag of the viewed diagram. The statusbar is
19732         updated upon calls to ddisplay_zoom and ddisplay_update_statusbar.
19733         This caused the following additions:
19734         
19735         * app/diagram.[ch]:
19736         Added function diagram_set_modified. Calls
19737         ddisplay_update_statusbar for all displays showing the modified diagram.
19738         Changed diagram_modified to call diagram_set_modified.
19739         
19740         * app/interface.c:
19741         Added the creation of the statusbar.
19742         
19743         * app/load_save.c:
19744         diagram_save now calls diagram_set_modified instead of setting
19745         dia->modified. Needed to force call to display_update_statusbar
19746         
19747         * app/commands.c:
19748         Changed the way view_show_all works. Now calls ddisplay_zoom
19749         instead of directly setting the zoom_factor, so the zoom factor is
19750         correctly shown in the statusbar.
19752         * app/magnify.c:
19753         Fixed rubberband zoom to use ddisplay_zoom().
19754         
19755 1999-02-07  Fredrik Hallenberg  <hallon@lysator.liu.se>
19757         * app/app_procs.c
19758         Rudimentary GNOME session management.
19759         
19760         * app/disp_callbacks.c
19761         * app/interface.c
19762         * app/menus.c
19763         * app/menus.h
19764         GNOME menus. Problems: 
19765         Callbacks doesn't get user_data.
19766         Weird warnings when creating popup menus.
19767         menus_set_sensitive(), menus_set_state() doesn't work.
19769 1999-02-05  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
19771         * configure.in:
19772         Add AM_PATH_GDK_IMLIB() call.
19774         * app/Makefile.am:
19775         Add gdk_imlib to linking flags.
19777         * app/app_procs.c:
19778         Init gdk_imlib.
19779         Print library-loading error messages on stdout too.
19781         * app/interface.c:
19782         Add standard image to toolbox.
19783         
19784         * app/render_eps.c: 
19785         Set a more reasonable dot length.  Fixed
19786         missing initialization of dot length.
19787         Added draw_image methods.
19789         * app/render_gdk.c (new_gdk_renderer): 
19790         Dot a bit wider.  Looks good in normal mode now.
19792         * objects/standard/image.c:
19793         * objects/standard/pixmaps/image.xpm:
19794         New files. Standard object for images.
19795         
19796         * app/render_eps.c (set_linestyle):
19797         * app/render_gdk.c (set_linestyle):
19798         * lib/widgets.c (dia_line_style_selector_init): 
19799         * lib/render.h: 
19800         New line style DOTTED.
19802         * lib/render.h:
19803         * lib/render_store.c:
19804         Change DrawImage call to use gdk_imlib.
19806         * lib/widgets.[ch]:
19807         Added widgets for selecting files.
19808         Added dotted to the linestyle selector.
19810 1999-02-06  Alexander Larsson  <alla@lysator.liu.se>
19812         * objects/network/printer.c:
19813         * objects/network/network.c:
19814         * objects/network/pixmaps/printer.xpm:
19815         * objects/network/.cvsignore:
19816         * objects/network/Makefile.am:
19817         * objects/network/pixmaps/Makefile.am:
19818         New printer object in network.
19819         From Martin Hawlisch <hawlisch@roxi.rz.fh-mannheim.de>
19821         * TODO:
19822         Added known XML bug.
19823         
19824 1999-02-06  Alexander Larsson  <alla@lysator.liu.se>
19826         * app/load_save.c:
19827         * lib/dia_xml.c:
19828         Reverted back from #include <gnome-xml/tree.h> to
19829         #include <tree.h> as this is fixed by the xml-config program.
19830         The former way broke for some people.
19831         Reported by blizzard@redhat.com.
19833         * objects/UML/lifeline.c:
19834         * objects/UML/message.c:
19835         * objects/UML/object.c:
19836         Removed some warnings.
19837         
19838 1999-02-04  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
19840         * objects/UML/lifeline.c: 
19841         Fixed connection points over the life line when the focus of
19842         control is not drawn.
19844         * objects/UML/message.c: 
19845         Now a recursive message can be freely resized using the handles.
19847 1999-02-02  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
19849         * objects/UML/lifeline.c:
19850         Added connection points.
19851         Added properties dialog with the option to draw/hide focus of control
19852         box and destruction mark.
19854         * objects/UML/object.c: 
19855         Added properties dialog and stereotype, explicit state and attributes. 
19856         It's also possible to mark the object as active.
19858         * objects/UML/pixmaps/object.xpm: 
19859         Cosmetic change.
19861         * objects/UML/message.c:
19862         Added "recursive" message type (was not necessary to use OrthConn).
19864 1999-02-02  Alexander Larsson  <alla@lysator.liu.se>
19866         * objects/standard/arc.c:
19867         Removed old debug code. Fixes a visual bug. From lrclause@cs.uiuc.edu.
19869 1999-02-01  Alexander Larsson  <alla@lysator.liu.se>
19871         Patch from Lars R. Clausen <lrclause@cs.uiuc.edu>
19872         
19873         * app/load_save.c:
19874         * lib/dia_xml.c:
19875         Update xml includes to gnome-xml/*.h.
19877         * objects/standard/arc.c:
19878         Only one property dialog per type.
19879         Fix arrows directions.
19881         * objects/standard/box.c:
19882         * objects/standard/ellipse.c:
19883         * objects/standard/textobj.c
19884         Added default properties dialog.
19885         
19887 1999-01-31  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
19889         * objects/UML/Makefile.am: 
19890         * objects/UML/uml.c:
19891         * objects/UML/lifeline.c: 
19892         * objects/UML/object.c: 
19893         * objects/UML/message.c:
19894         * objects/UML/pixmaps/lifeline.xpm: 
19895         * objects/UML/pixmaps/object.xpm: 
19896         * objects/UML/pixmaps/message.xpm:
19897         Added 3 new UML objects for dynamic modeling. To avoid internal 
19898         conflicts, the name "objet" is used for object "object".        
19900         * lib/arrows.[ch]: 
19901         Added ARROW_HALF_HEAD arrow type to allow drawing asynchronous
19902         UML messages.
19903         
19904 1999-01-30  Alexander Larsson  <alla@lysator.liu.se>
19906         * app/display.[ch]:
19907         * app/modify_tool.c:
19908         Added autoscrolling while doing rubber-band select.
19909         This patch from Matthias Köster
19910         (Matthias.Koester@Informatik.Uni-Oldenburg.DE)
19911         
19913 1999-01-28  Alexander Larsson  <alla@lysator.liu.se>
19915         * app/defaults.[ch]:
19916         New files, deals with default properties dialog.
19918         * lib/diamenu.h:
19919         New file. Contains definitions for the new object menu.
19921         * lib/poly_conn.[ch]:
19922         New file. Base class for poly-line like objects.
19924         * objects/standard/polyline.c:
19925         * objects/standard/pixmaps/polyline.xpm:
19926         New files. Polyline object.
19928         * app/app_procs.c:
19929         Fixed bug with infinite loop when registering sheets.
19930         
19931         * app/commands.c:
19932         Removed unneccesary stuff.
19934         * app/disp_callbacks.c:
19935         Support for object menus.
19937         * app/interface.c:
19938         Added polyline to toolbox.
19939         Added call to tool_options_dialog_show() when double clicking on
19940         tool.
19942         * app/tool.[ch]:
19943         New function tool_options_dialog_show() for tool properties.
19945         * lib/arrows.[ch]:
19946         Added ARROW_NONE.
19948         * lib/object.h:
19949         Added ObjectType methods for handling object default dialogs.
19950         Added Object method for handling object_menu.
19951         Added unused methods to ObjectTypeOps for future binary
19952         compatibility.
19954         * lib/widgets.[ch]:
19955         Added DiaArrowTypeSelector widget.
19957         * objects/standard/arc.c:
19958         * objects/standard/zigzagline.c:
19959         Added support for default properties.
19961         * objects/standard/line.c:
19962         Added support for default properties.
19963         Just use one properties dialog for all line objects. NOTE: This
19964         seems to have a bug. We're working on it.
19966         * standard/standard.c:
19967         Add the polyline object.
19969 1999-01-27  Alexander Larsson  <alla@lysator.liu.se>
19971         * app/modify_tool.c:
19972         Commented out buggy transitive select function. It wasn't really
19973         meant to go into cvs.
19974         
19976 1999-01-25  Fredrik Hallenberg  <hallon@lysator.liu.se>
19978         * autogen.sh:
19979         * acconfig.h:
19980         * configure.in:
19981         * Makefile.am:
19982         * app/Makefile.am:
19983         * po/POTFILES.in:
19984         * app/intl.h
19985         i18n-support.
19987         * po/sv.po:
19988         Swedish translation. Not completed.
19989         
19990         * configure.in:
19991         * acconfig.h:
19992         Added possibility to enable GNOME specific code with configure.
19994         * configure.in:
19995         Added possibility to set debug level with configure.
19997         * commands.[hc]:
19998         Added about dialog.
20000         * app_procs.c
20001         * commands.c
20002         * interface.c
20003         * menus.c
20004         Added some GNOME specific code. Not ready for use.
20006 1999-01-24  Alexander Larsson  <alla@lysator.liu.se>
20008         * INSTALL:
20009         Added text about needing gtk 1.1.13 and gnome-xml.
20010         
20011         * NEWS:
20012         Described changes since last version (0.20).
20014         Released version 0.30, tagged DIA_0_30.
20016 1999-01-22  Alexander Larsson  <alla@lysator.liu.se>
20018         * app/magnify.c (magnify_button_release):
20019         Fixed a problem when zooming in on a very small box would
20020         not release the grabbed pointer-focus.
20022 1999-01-21  Alexander Larsson  <alla@lysator.liu.se>
20024         * app/load_save.c (diagram_load):
20025         Be somewhat more robust when loading files that
20026         are not diagrams.
20027         
20028 1999-01-21  Alexander Larsson  <alla@lysator.liu.se>
20030         * app/app_procs.c:
20031         * objects/ER/er.c:
20032         * objects/UML/uml.c:
20033         * objects/network/network.c:
20034         * objects/standard/standard.c:
20035         Added versioning of object libraries.
20037         * app/create_object.c:
20038         Don't change tool when an object is created.
20039         
20040         * objects/network/network.c:
20042         * TODO:
20043         Update
20045 1999-01-19  Alexander Larsson  <alla@lysator.liu.se>
20047         * configure.in:
20048         Updated gtk requirement to Gtk+ 1.1.13.
20050         * app/display.c:
20051         Always add one screenful of scrolling space on
20052         each side of a diagram window.
20054 1999-01-19  Jeff Garzik  <jgarzik@pobox.com>
20056         * autogen.sh:
20057         Tell automake to auto-install missing files.
20059         * app/menus.c:
20060         Renamed deprecated Gtk+ function.
20062 1999-01-16  Alexander Larsson  <alla@lysator.liu.se>
20064         * Makefile.am:
20065         * configure.in:
20066         * samples/Makefile.am:
20067         * samples/ER-demo.dia:
20068         * samples/UML-demo.dia:
20069         Added samples directory.
20070         Added samples for ER and UML.
20071         
20072         * app/commands.c:
20073         * app/disp_callbacks.c:
20074         * app/menus.c:
20075         Zoom is done by sqrt(2) instead of 2.
20076         Lots of more zoom options in the menu.
20078         * objects/ER/relationship.c:
20079         Relationships have 8 connectionpoints instead of 4.
20081         * objects/UML/class.c:
20082         UML class name font a bit smaller.
20083         Fixed stupid bug in the copy operation.
20084         
20085         * app/display.c:
20086         Displays are opened at 500x400 instead of 256x256.
20088         * app/load_save.c:
20089         Fixup of internal error message.
20091         * app/color_area.c:
20092         * app/diagram.c:
20093         * app/modify_tool.c:
20094         * lib/object.c:
20095         Removed debug printf's.
20096         
20097         * TODO (BUGS):
20098         Added new known bug.
20100 1999-01-16  Alexander Larsson  <alla@lysator.liu.se>
20102         * app/interface.c:
20103         * app/menus.c:
20104         Fixed so accelerator groups work in all windows.
20105         Updated to new gtk function names.
20107         * TODO (BUGS):
20108         Removed fixed bug.
20110         * app/display.c:
20111         Updated to new gtk function names.
20112         Set sensitivity of the align menu items.        
20114         * objects/ER/pixmaps/Makefile.am:
20115         * objects/UML/pixmaps/Makefile.am:
20116         * objects/network/pixmaps/Makefile.am:
20117         Fix so that make dist works.
20119         * app/app_procs.c:
20120         * app/color_area.c:
20121         * app/commands.c:
20122         * app/diagram.c:
20123         * app/grid.c:
20124         * app/layer_dialog.c:
20125         * app/load_save.c:
20126         * app/object_ops.c:
20127         * app/properties.c:
20128         * lib/diagramdata.[ch]: 
20129         * lib/message.c:
20130         * lib/objects/ER/attribute.c:
20131         * lib/objects/ER/entity.c:
20132         * lib/objects/ER/participation.c:
20133         * lib/objects/ER/relationship.c:
20134         * lib/objects/ER/.c:
20135         * objects/UML/actor.c:
20136         * objects/UML/association.c:
20137         * objects/UML/class_dialog.c:
20138         * objects/UML/dependency.c:
20139         * objects/UML/generalization.c:
20140         * objects/UML/large_package.c:
20141         * objects/UML/realizes.c:
20142         * objects/UML/.c:
20143         * objects/UML/.c:
20144         Updated to new gtk function names.
20145         Removed warnings.
20147 1999-01-15  Alexander Larsson  <alla@lysator.liu.se>
20149         * TODO:
20150         Update TODO.
20152         * app/app_procs.c:
20153         Fixed loading of diagrams specified as arguments.
20155         * objects/ER/attribute.c:
20156         * objects/ER/entity.c:
20157         * objects/ER/er.c:
20158         * objects/ER/participation.c:
20159         * objects/ER/relationship.c:
20160         Updated the ER objects.
20161         
20163 1999-01-14  Alexander Larsson  <alla@lysator.liu.se>
20165         * configure.in:
20166         * app/Makefile.am:
20167         * objects/Makefile.am:
20168         * objects/ER/attribute.c:
20169         * objects/ER/entity.c:
20170         * objects/ER/er.c:
20171         * objects/ER/participation.c:
20172         * objects/ER/relationship.c:
20173         * objects/ER/pixmaps/Makefile.am:
20174         * objects/ER/pixmaps/attribute.xpm:
20175         * objects/ER/pixmaps/entity.xpm:
20176         * objects/ER/pixmaps/participation.xpm:
20177         * objects/ER/pixmaps/relationship.xpm:
20178         * objects/ER/pixmaps/weakentity.xpm:
20179         First commit of entity relationship objects.
20180         These were done by hallon@lysator.liu.se.
20181         There are still stuff to do on these.
20182         
20183 1999-01-14  Alexander Larsson  <alla@lysator.liu.se>
20185         * TODO:
20186         Updates.
20188         * app/diagram.[ch]:
20189         Change diagram_remove_all_selected to take new argument
20190         delete_empty. Empty objects are deleted only if it is TRUE.
20191         Removed call to close_eps_renderer. This is now done in end_render
20192         in the eps renderer.
20194         * app/create_object.c:
20195         * app/layer_dialog.c:
20196         Update calls to diagram_remove_all_selected.
20198         * app/commands.c:
20199         Update calls to diagram_remove_all_selected.
20200         Some code reformating.
20201         Changed order of adding updates i align_h and align_v.
20203         * app/modify_tool.c:
20204         Update calls to diagram_remove_all_selected.
20205         Added pointer grab when doing rubber-band selection, this fixes
20206         the bug when draging the box over to another window.
20208         * app/connectionpoint_ops.[ch]:
20209         diagram_update_connections_object changed to take an argument
20210         update_nonmoved. This lets connections that has not moved, but
20211         the stuff they're connected to has been moved work.
20212         Update calls to the new diagram_update_connections_object.
20214         * app/properties.c:
20215         Update calls to the new diagram_update_connections_object.
20216         Update extents when properties are applied.
20217         
20218         * app/disp_callbacks.c:
20219         Added support for zooming with the '+' and '-' keys.
20221         * app/menus.c:
20222         Removed old keyboard shortcuts for zoom.
20224         * lib/render.h:
20225         Added calls begin_render and end_render to renderer.
20226         These can be used for setup and cleanup.
20228         * lib/diagramdata.c:
20229         Added calls to begin_render and end_render in data_render.
20231         * app/render_gdk.c:
20232         Added begin_render and end_render.
20234         * app/render_eps.[ch]:
20235         Added begin_render and end_render.
20236         Moved close_eps_renderer code to end_render.
20237         Various fixes to the generated eps code. This fixes importing
20238         generated eps into LYX.
20239         
20240 1999-01-12  Alexander Larsson  <alla@lysator.liu.se>
20242         * TODO:
20243         Update of todo.
20244         
20245         * app/menus.c:
20246         Menus for alignment updated.
20248         * app/object_ops.[ch]:
20249         Functions for object alignment updated.
20251         * app/commands.[ch]:
20252         Object alignment callbacks updated.
20253         New diagrams are called Untitled-<nr>.
20255         * app/layer_dialog.c:
20256         Active layer selected when showing layers from new
20257         diagram.
20259         * app/load_save.c:
20260         Compress xml files when saving.
20261         Use xml namespace 'dia'.
20263         * lib/object.h:
20264         Minor comment update.
20266         * objects/UML/class_dialog.c:
20267         Cleanup of the gkt_list_item moving code.
20268         Fixed bug with update of operation when moving parameters.
20270 1999-01-10  Alexander Larsson  <alla@lysator.liu.se>
20272         * app/layer_dialog.[ch]:
20273         Fixed the rest of the layers dialog.
20275         * app/dialog.c:
20276         Added call to redo layer dialogs diagram list when changing
20277         diagram name.
20279         * lib/diagramdata.[ch]:
20280         Added data_raise_layer and data_lower_layer functions for
20281         raising/lowering layers. Added data_add_layer_at for adding a
20282         layer at a specified index.
20284 1999-01-05  Alexander Larsson  <alla@lysator.liu.se>
20286         This is the asierra-990105 patch done by asierra@servidor.unam.mx.
20287                 
20288         * app/app_procs.c:
20289         Added support for reading diagrams from the command line.
20291 1998-12-21  Alexander Larsson  <alla@lysator.liu.se>
20293         This is the asierra-981220 patch done by asierra@servidor.unam.mx.
20294                 
20295         * app/commands.[ch]:
20296         Added objects_align_callback().
20298         * app/menus.c:
20299         Added align objects to menu.
20301         * app/object_ops.[ch]:
20302         Add object_list_align().
20303         
20304 1998-12-17  Alexander Larsson  <alla@lysator.liu.se>
20305         * app/layer_dialog.[ch]:
20306         New files. Handles the layers dialog. Needs a bugfix for glib to
20307         work. Sent patch to gtk-list.
20308         
20309         * app/pixmaps/new.xpm:
20310         * app/pixmaps/eye.xbm:
20311         * app/pixmaps/lower.xpm:
20312         * app/pixmaps/raise.xpm:
20313         * app/pixmaps/delete.xpm:
20314         New files. Images for the layer dialog buttons.
20315         
20316         * lib/diagramdata.h
20317         * lib/diagramdata.c
20318         New files for the DiagramData and Layer structures and functions.
20319         
20320         * app/app_procs.c:
20321         Added call to create_layer_dialog() on startup.
20322         
20323         * app/commands.[ch]:
20324         New callbacks for showing the properties and layout dialog.
20325         Changes for the new DiagramData structure.
20327         * app/connectionpoint_ops.c:
20328         * app/cut_n_paste.c:
20329         * app/diagram.[ch]:
20330         * app/display.[ch]:
20331         * app/group.c:
20332         * app/modify_tool.c:
20333         * app/object_ops.[ch]:
20334         * app/render_eps.c:
20335         * lib/object.[ch]:
20336         Changes for the new DiagramData structure.
20338         * app/interface.c:
20339         * app/properties.c:
20340         Set correct wmclasses.
20342         * app/load_save.c:
20343         Fix load and save of layers.
20345         * diagram.dtd:
20346         Update DTD for layers.
20347         
20348         * app/menus.c:
20349         New menus for dialogs.
20351         
20352         * TODO:
20353         Some updates.
20354         
20355 1998-12-06  Alexander Larsson  <alla@lysator.liu.se>
20357         * TODO:
20358         Removed the gtk 1.1.5 stuff.
20360         * configure.in:
20361         Updated gtk check to version 1.1.5.
20362         Updated version from 0.20 to 0.30
20364         * app/commands.[ch]:
20365         Updated some callbacks to be of type GtkItemFactoryCallback1.
20366         Not all are done yet, but it works anyway.
20368         * app/display.h:
20369         Removed Gtk 1.0.0 GtkAcceleratorTable references.
20370         
20371         * app/interface.c:
20372         * app/menus.[ch]:
20373         Update to Gtk 1.1.x functions.
20374         Use ItemFactory instead of MenuFactory.
20375         
20376         * app/render_gdk.c:
20377         Removed Gtk 1.0.0 references.
20379         * objects/UML/class_dialog.c:
20380         Scrolled window updates for Gtk 1.1.5.
20381         
20382         * lib/dia_xml.c:
20383         Removed ugly fix for gnome-xml bug. Make sure you get the
20384         newest version of gnome-xml from CVS.
20385         
20386 1998-12-05  Alexander Larsson  <alla@lysator.liu.se>
20388         * TODO:
20389         Removed the xml load/save line.
20391         * lib/files.[ch]:
20392         Removed files.
20393         
20394         * lib/Makefile.am:
20395         Removed building of files.c
20397         * app/load_save.c:
20398         * lib/connection.c:
20399         * lib/element.c:
20400         * lib/object.c:
20401         * lib/orth_conn.c:
20402         * lib/render_object.c:
20403         * objects/UML/actor.c:
20404         * objects/UML/association.c:
20405         * objects/UML/class.c:
20406         * objects/UML/constraint.c:
20407         * objects/UML/dependency.c:
20408         * objects/UML/generalization.c:
20409         * objects/UML/implements.c:
20410         * objects/UML/large_package.c:
20411         * objects/UML/note.c:
20412         * objects/UML/realizes.c:
20413         * objects/UML/small_package.c:
20414         * objects/UML/uml.c:
20415         * objects/UML/usecase.c:
20416         * objects/network/bus.c:
20417         * objects/standard/arc.c:
20418         * objects/standard/box.c:
20419         * objects/standard/ellipse.c:
20420         * objects/standard/line.c:
20421         * objects/standard/textobj.c:
20422         * objects/standard/zigzagline.c:
20423         Removed all includes of files.h
20425         
20426 1998-12-05  Alexander Larsson  <alla@lysator.liu.se>
20428         * dialog.dtd:
20429         Made the val property of string be implied.
20430         This makes it possible to save strings that
20431         are NULL. Just leave out val.
20433         * objects/lib/dia_xml.c:
20434         Fixed string so that it is possible to save strings
20435         that are NULL. Also made an ugly workaround of a
20436         bug in gnome-xml which removes empty properties.
20437         
20438         * objects/lib/orth_conn.c:
20439         Fixed a bug in saving. Forgot to step through the
20440         directions.
20441         
20442         * objects/UML/association.c: 
20443         * objects/UML/class.c: 
20444         * objects/UML/constraint.c: 
20445         * objects/UML/dependency.c: 
20446         * objects/UML/generalization.c: 
20447         * objects/UML/implements.c: 
20448         * objects/UML/large_package.c: 
20449         * objects/UML/note.c: 
20450         * objects/UML/small_package.c:
20451         * objects/UML/realizes.c:
20452         * objects/UML/usecase.c: 
20453         * objects/UML/actor.c: 
20454         Fixed UML objects to save as xml.
20455         The last two were done by asierra@servidor.unam.mx (asierra-981204)
20456         
20457         * objects/UML/uml.[ch]:
20458         Updated *_write() and *_read() functions to use xml.
20460         * objects/network/bus.c: 
20461         * objects/network/computer.c: 
20462         * objects/network/disc.c: 
20463         * objects/network/monitor.c:
20464         Updated network diagrams to use xml.
20466 1998-12-02  Alexander Larsson  <alla@lysator.liu.se>
20468         * dialog.dtd:
20469         New file. DTD that describes the xml file format
20470         dia uses.
20472         * lib/dia_xml.[ch]:
20473         New files. Support for saving object to xml files.
20475         * configure.in:
20476         * app/Makefile.am:
20477         * lib/Makefile.am:
20478         Added check for and usage of gnome-xml library.
20480         * app/load_save.c:
20481         Major chages. Now saves/loads diagrams as xml.
20483         * lib/object.[ch]:
20484         * lib/element.[ch]:
20485         * lib/connection.[ch]:
20486         * lib/orth_conn.[ch]:
20487         * lib/render_object.[ch]:
20488         * lib/text.[ch]:
20489         Updated object support load/save functions for xml:
20491         * object/standard/arc.c:
20492         * object/standard/box.c:
20493         * object/standard/ellipse.c:
20494         * object/standard/line.c:
20495         * object/standard/textobj.c:
20496         * object/standard/zigzagline.c:
20497         Updated all standard objects to use xml.
20498         
20499         NOTE NOTE NOTE
20500         Only the standard objects are converted right now, don't
20501         save or load uml or network diagrams yet. Also, since this
20502         is new code it is deemed a bit unstable.
20503         
20504         * TODO
20505         Added a know bug.
20507 1998-12-01  Alexander Larsson  <alla@lysator.liu.se>
20509         * objects/UML/class.c:
20510         Changed classname font to Helvetica.
20511         Added more space above the classname
20513         * objects/UML/usecase.c:
20514         Correct placements of connectionpoints on ellipse.
20515         Better algorithm for deciding aspect ration on
20516         ellipse.
20518         These changes were made by Alejandro Aguilar Sierra
20519         <asierra@servidor.unam.mx>. (asierra-981201)
20521 1998-11-30  Alexander Larsson  <alla@lysator.liu.se>
20523         * objects/UML/actor.c:
20524         Changed the extents and alignment of the element
20525         and the text.
20527         * objects/UML/.cvsignore:
20528         Added usecase.lo and actor.lo.
20530 1998-11-30  Alexander Larsson  <alla@lysator.liu.se>
20532         * objects/UML/actor.c:
20533         * objects/UML/usecase.c:
20534         * objects/UML/pixmaps/actor.xpm:
20535         * objects/UML/pixmaps/case.xpm:
20536         New files. Implements usecase and actor UML objects.
20537         These objects are done by Alejandro Aguilar Sierra
20538         <asierra@servidor.unam.mx>.
20539         
20540         * objects/UML/Makefile.am:
20541         * objects/UML/pixmaps/Makefile.am:
20542         Added usecase and actor to makefile.
20543         
20544         * AUTHORS:
20545         Added Alejandro and Jerome to autors list.
20546         
20547 1998-11-25  Alexander Larsson  <alla@lysator.liu.se>
20549         * objects/UML/class.c (umlclass_load):
20550         Fixed typo. Reported by Jerome.Abela@solsoft.fr
20552 1998-11-24  Alexander Larsson  <alla@lysator.liu.se>
20554         * app/properties.c:
20555         Update connections when doing apply in the properties window.
20557         * objects/UML/uml.[ch]:
20558         * objects/UML/class.[ch]:
20559         * objects/UML/class_dialog.c:
20560         Added connection points on both sides of attributes and
20561         operations in UML classes.
20562         Based on idea from Jerome.Abela@solsoft.fr
20563         
20564 1998-11-24  Alexander Larsson  <alla@lysator.liu.se>
20566         * README:
20567         Some new documentation about handles and connectionpoints.
20568         
20569         * lib/object.[ch]:
20570         Added functions object_add_connectionpoint and
20571         object_remove_connectionpoint for handling a dynamic
20572         number of connectionpoints.
20574         * objects/UML/class.c:
20575         Only reserve space for stereotype when it is shown.
20577         These changes are from Jerome Abela <Jerome.Abela@solsoft.fr>
20579 1998-11-08  Alexander Larsson  <alla@lysator.liu.se>
20581         * app/connectionpoint_ops.c:
20582         * app/commands.c:
20583         * app/disp_callbacks.c:
20584         * app/display.[ch]:
20585         * app/grid.c:
20586         * app/handle_ops.c:
20587         * app/magnify.c:
20588         * app/modify_tool.c:
20589         * app/render_gdk.[ch]:
20590         * lib/render.h:
20591         Huge cleanup of internal rendering system.
20592         Moved a lot of data (pixmap, width, height & gc) into the GdkRenderer.
20593         This gives a few new methods for Interactive Renderers for setting
20594         clipping regions and drawing pixel based lines and rects.
20595         Updated the rest of the code to use the new stuff.
20596         
20597         * app/render_eps.c:
20598         Fixed warning.
20600         * lib/widgets.c:
20601         * objects/standard/zigzagline.c
20602         Fixed unused variable warnings.
20604         * lib/font.c:
20605         Fixedbug with stringwidth where width==0.
20607         * TODO:
20608         Added known bug.
20610 1998-11-02  Alexander Larsson  <alla@lysator.liu.se>
20612         * lib/widgets.[ch]:
20613         Added suppot for setting the font of a
20614         DiaFontSelector widget.
20615         Also fixed some typos in the header.
20617         * lib/object.h: 
20618         Added a comment about the GetPRoperties method call.
20619         You have to make sure to update widget state when
20620         this method is called. (Not all objects do this yet,
20621         to be fixed.)
20623         * TODO:
20624         Some small updates
20626 1998-11-01  Alexander Larsson  <alla@lysator.liu.se>
20628         * lib/font.c
20629         Fixed problem with height of ascent and descent for fonts.
20630         It didn't use the whole height (==ascent+descent) when calculatine
20631         ascent_ratio and descent_ratio.
20633         * objects/standard/textobj.c:
20634         * objects/standard/box.c:
20635         * objects/standard/ellipse.c:
20636         * objects/standard/line.c:
20637         * objects/standard/arc.c:
20638         Updated and added property dialogs for these objects.
20639         Also added line width/color/style to those objects
20640         that didn't have it.
20641         This change breaks fileformat compatibility for these objects.
20642         
20643         * objects/standard/zigzagline.c:
20644         Changed zigzagline to be based on OrthConn, much nicer.
20645         Also added line style and color to properties.
20646         This change breaks fileformat compatibility for zigzagline.
20648         * lib/message.c:
20649         Fixed bug in message(). Forgot a pair of '&'.
20651 1998-10-29  Alexander Larsson  <alla@lysator.liu.se>
20653         * lib/widgets.[ch]:
20654         Added DiaColorSelector widget.
20655         This is a colored button that pops up a color selection
20656         dialog when pressed.
20658 1998-10-28  Alexander Larsson  <alla@lysator.liu.se>
20660         * lib/widgets.[ch]:
20661         * lib/Makefile.am:
20662         New files, added widgets for selecting fonts, alignment
20663         and line-style. Will be used later.
20665 1998-10-12  Alexander Larsson  <alla@lysator.liu.se>
20667         * app/Makefile.am:
20668         * lib/Makefile.am:
20669         * objects/UML/Makefile.am:
20670         * objects/network/Makefile.am:
20671         * objects/standard/Makefile.am:
20672         Changed "CFLAGS = -Wall -g" to "CFLAGS = @CFLAGS@"
20673         in all Makefile.am.
20675 1998-10-03  Alexander Larsson  <alla@lysator.liu.se>
20677         * app/handle_ops.c (handle_draw):
20678         connected HANDLE_MINOR_CONTROL also becomes red.
20680 1998-10-02  Alexander Larsson  <alla@lysator.liu.se>
20682         * Makefile.am:
20683         removed -ldl from linking. This is added if needed by configure.
20685         * app/app_procs.c:
20686         Open dlls with RTLD_LAZY if it is defined.
20687         Some cleanups: char *error -> const char *error
20688         Added fprintf()'s to where we exited because of errors.
20690         * lib/files.c:
20691         Include <sys/types.h>
20693 1998-10-01  Alexander Larsson  <alla@lysator.liu.se>
20695         * acconfig.h:
20696         * configure.in:
20697         * app/app_procs.c:
20698         Detect dlopen better.
20699         Detect wether dlopen needs an underscore in the identifier.
20700         This code was mostly borrowed from guile.
20702         * lib/sheet.[ch]:
20703         * app/app_procs.c:
20704         * objects/standard/standard.c:
20705         * objects/network/network.c:
20706         * objects/UML/uml.c:
20707         * most objects:
20708         Changed the way sheets reference objects to use just the
20709         name. Changed module loading to a two stage model:
20710         First register_objects() is called for all modules.
20711         Then register_sheets() is called. This means that
20712         sheets can safely include objects from other modules.
20713         
20715 1998-09-30  Alexander Larsson  <alla@lysator.liu.se>
20717         * objects/network/bus.c:
20718         * objects/network/network.c:
20719         * objects/network/Makefile.am:
20720         New file bus.c. Added new object: Ethernet bus.
20722         * objects/standard/box.c:
20723         Added call to gtk_spin_button_set_numeric for linewidth spinner
20724         in property dialog.
20726 1998-09-30  Alexander Larsson  <alla@lysator.liu.se>
20728         * app/connectionpoint_ops.c:
20729         * app/create_object.c:
20730         * app/group.c:
20731         * app/handle_ops.c:
20732         * app/modify_tool.c:
20733         * lib/connection.c:
20734         * lib/element.c:
20735         * lib/handle.h:
20736         * lib/object.c:
20737         * lib/orth_conn.c:
20738         * loads of objects:
20739         Changed handle->connectable to handle->connect_type.
20740         Now handles can be HANDLE_CONNECTABLE_NOBREAK, which means
20741         that their connections don't break when moving objects.
20743         * app/diagram.c:
20744         Always select the last handle in an object that has
20745         the closest distance.
20746         
20747         * lib/geometry.[ch]:
20748         Added rectangle_add_point function.
20749         
20751 1998-09-27  Alexander Larsson  <alla@lysator.liu.se>
20753         * app/properties.[ch]: New files. Handles the new properties
20754         dialog.
20756         * app/modify_tool.c: Changed to use new properties dialog.
20758         * app/object_ops.[ch]: Removed object_changed_callback, as it's
20759         not needed anymore. This is now handled differently in
20760         properties.c
20762         * lib/object.[ch]:
20763         Changed the properties ops for objects. Removed typedefs
20764         ChangedObjectTime and ObjectChangedFunc needed for the old way.
20765         Added object_return_null function.
20766         
20767         * app/group.c:
20768         * lib/render_object.c:
20769         * objects/*/*.c:
20770         Changed objects to use the new properties dialog.
20771         
20773 1998-09-14  Nuno Ferreira  <nmrf@rnl.ist.utl.pt>
20775         * */Makefile.am (INCLUDES): Changes to work with srcdir !=
20776         builddir.
20778         * autogen.sh: New file. Copied from gtk and added a call to
20779         libtoolize. Anyone knows why this isn't done in gtk?
20781         * Removed autogenerated files.
20783 1998-09-12  Alexander Larsson  <alla@lysator.liu.se>
20785         * Added call setlocale(LC_NUMERIC, "C") so that formating of
20786           floating-point numbers in postscript output will be correct.
20787         * Did some cleanup of generated postscript files.