UML comments bug #303744
[dia.git] / ChangeLog
blob34f00a62a82e53353dd81562c2a57f8075fc79d8
1 2005-11-07  Lars Clausen  <lars@raeder.dk>
3         * objects/UML/class.c
4         * objects/UML/class.h
5         * objects/UML/class_dialog.c: Patch from dklotzbach@foxvalley.net
6         (dave Klotzbach): Make UML comments conform to UML 1.0 standard
7         and allow multi-line comments. Ugly as hell, but standard.  Time
8         for a 'Strict UML' option?  Fixes bug #303744.
9         
10         * objects/UML/state.c: Patch from Peter Allin <peter@peca.dk>: Add
11         entry, exit and do descriptions to a state object.  Fixes bug #65434.
13 2005-11-03  Lars Clausen  <lars@raeder.dk>
15         * lib/arrows.c:
16         * lib/attributes.c:
17         * lib/autoroute.c:
18         * lib/bezier_conn.c:
19         * lib/boundingbox.c:
20         * lib/color.c:
21         * lib/connection.c:
22         * lib/connectionpoint.c:
23         * lib/dia_dirs.c:
24         * lib/dia_image.c:
25         * lib/dia_svg.c:
26         * lib/dia_xml.c:
27         * lib/diaarrowchooser.c:
28         * lib/diaerror.c:
29         * lib/diagdkrenderer.c:
30         * lib/diagramdata.c:
31         * lib/element.c:
32         * lib/object.c:
33         * lib/object.h:
34         * lib/parent.c:
35         Added documentation java-doc style.  Also a few trivial cleanups.
36         
37 2005-10-13  Lars Clausen  <lars@raeder.dk>
39         * lib/connectionpoint.h (DIR_ALL): Parentheses around operations
40         in macros.
42         * plug-ins/hpgl/hpgl.c (export_data): Correct error message.
44         * lib/Makefile.am:
45         * lib/debug.[ch]:
46         * lib/object.[ch]: 
47         * objects/UML/class.[ch]: 
48         * objects/UML/uml.h: 
49         * objects/UML/umlattribute.c: 
50         * objects/UML/umloperation.c: 
51         * objects/UML/class_dialog.c: 
52         Rework of the UML class attribute/operation handling.  Now doesn't
53         copy connection points into the dialog data, but only the "flat"
54         data.  As part of debugging made sanity check functionality.
55         Currently still dies when deleting an attribute/operation that has
56         a connection to it.
58 2005-10-09  Hans Breuer  <hans@breuer.org>
60         * lib/properties.h : prefer american spelling of colo(u)r for
61         user visible strings - i.e. to be translated ones.
62         * objects/UML/uml.c : it is Implementation. Together fixes bug #313929
63                                         ^
64         * po/*.po : updated (by 'make distcheck')
66 2005-10-09  Hans Breuer  <hans@breuer.org>
68         * app/display.c : allow !"toolbox on top" without restart.
69         (Chris Hellberg, bug #310702)
71 2005-10-09  Hans Breuer  <hans@breuer.org>
73         * lib/arrows.c : patch from Radek Krahl fixing the blanking
74         of two arrowheads, bug #310157
76 2005-10-08  Hans Breuer  <hans@breuer.org>
78         * plug-ins/python/group_props.py : show a descriptive text instead of an 
79         empty table if there are no common properties to change. Fixes bug #314432
81 2005-10-08  Hans Breuer  <hans@breuer.org>
83         * objects/UML/transition.c : inverted default direction of
84         the direction. Patch from Peter Allin, fixes bug #318049
85         [You possibly need to 'rm ~/.dia/defaults.dia' to have an effect]
87 2005-10-08  Hans Breuer  <hans@breuer.org>
89         * app/Makefile.am objects/standard/Makefile.am : match the
90         referenced icons to the needed. Make 'make distcheck' pass
91         and thus fixes bug #312152
93         * objects/standard/textobj.c : no C++ comments please!
95 2005-10-08  Hans Breuer  <hans@breuer.org>
97         * objects/standard/textobj.c : preserve the position set on create
98         [makes e.g. text positioning of diasvg_import.py work]
100         * plug-ins/python/diasvg_import.py : restrict what eval() can do
101         with strings from svg files. Fixes the arbitrary code execution from 
102         bug #317637
103         
104         * app/pixmaps/mainpoints-(on|off).png : new icons to toggle center point
105         magnetism. At least they are distinguishable from grid snapping.
106         * app/makefile.msc app/Makefile.am : use them
107         
108         * lib/focus.c(reset_foci) : also remove_focus(). This fixes bug #172851
109         I also can't reproduce bug #309044 anymore (on win32).
110         
111 2005-10-01  Lars Clausen  <lars@raeder.dk>
113         * lib/connectionpoint.h (DIR_ALL): Parentheses around | expressions.
115         * plug-ins/hpgl/hpgl.c (export_data): Listen to warnings and don't
116         pass FILE * as gchar *.
118         * lib/debug.[ch] (dia_assert_true): Debugging aids.
120 2005-09-29  Lars Clausen  <lars@raeder.dk>
122         * objects/UML/class.h: Enabling mainpoints for UML.
124         * objects/UML/class.c (umlclass_set_props): Make sure to always
125         realloc connection point list.
127 2005-09-26  Ahmad Riza H Nst  <rizahnst@id.gnome.org>
129         * configure.in: Added "id" in ALL_LINGUAS line.
131 2005-09-14  Lars Clausen  <lars@raeder.dk>
133         * objects/UML/class.c (umlclass_load): Set mainpoint obj upon
134         loading.  Fixes bug #315427.
136 2005-09-11  Hans Breuer  <hans@breuer.org>
138         * objects/standard/arc.c objects/standard/textobj.c : fix
139         C99isms, Dia is supposed to compile with C89 like msvc
141         * app/makefile.msc : use the wrong center-point-magnetism
142         icons for the win32 build, too.
144         * plug-ins/python/pydia-error.c : dont crash on C escape
145         sequences in the error string
146         * plug-ins/python/pydia-render.c : dont free filename twice
148         * plug-ins/python/dot.py : start of an exporter to DOT language
149         which can be processed by www.graphviz.org tools
151 2005-09-05  Iñaki Larrañaga  <dooteo@euskalgnu.org>
153         * configure.in: Added "doc/eu/Makefile" for Basque documentation.
155 2005-09-04  Iñaki Larrañaga  <dooteo@euskalgnu.org>
157         * configure.in: Added "eu" to ALL_LINGUAS.
159 2005-09-04  Lars Clausen  <lars@raeder.dk>
161         * lib/element.h (ELEMENT_COMMON_PROPERTIES): Remove object
162         dimensions frame to make ext_attributes work again.
164         * app/grid.c (snap_to_grid): Bugfix from Zhang Lin-bo
165         <zlb@lsec.cc.ac.cn>: Use dynamic grid setting from diagram, not
166         global prefs.
168         * objects/standard/textobj.c: Applied patch from Grégoire Dooms
169         <dooms info ucl ac be>: Add vertical alignment for standard text
170         object.  This should really be moved into lib/text.c and apply to
171         all text objects.
173 2005-09-03  Lars Clausen  <lars@raeder.dk>
175         * app/connectionpoint_ops.c (connectionpoint_draw): Only draw
176         mainpoint when snap-to-objects is not on.
178         * app/Makefile.am (ICON_PNG_PAIRS): 
179         Fake icons for snap-to-objects.
181         * app/commands.[ch]: 
182         * app/menus.c (menus_get_image_menubar): 
183         * app/display.[ch]: 
184         * app/interface.c (create_display_shell): 
185         * app/create_object.c (create_object_button_release): 
186         * app/disp_callbacks.c (ddisplay_drop_object): 
187         * app/object_ops.[ch]: 
188         * app/connectionpoint_ops.c (ddisplay_connect_selected): 
189         * app/modify_tool.c (modify_button_release): 
190         * app/display.[ch]: 
191         Togglable snap-to-objects, also doesn't snap when moving entire
192         object.  This should be more reasonable in practical use, and can
193         be turned off when you want to place your arrows more precisely.
195 2005-08-06  Hans Breuer  <hans@breuer.org>
197         * plug-ins/cairo/diacairo.c : increased #ifdef MESS:
198         With Gtk+-2.7.x cairo must be available so the HAVE_CAIRO case
199         becomes even more ugly when the user has choosen *not* to build 
200         the diacairo plug-in. If noone can come up with a very convincing 
201         reason why it has to be done this way I'll probably go back to 
202         my original dont-build-at-all approach when this breaks the 
203         next time.
205 2005-08-02  Lars Clausen  <lars@raeder.dk>
207         * objects/standard/arc.c: Patch from Grégoire Dooms
208         <dooms@info.ucl.ac.be>: An almost perfect arc autogap
209         implementation.  "There is still a small bug when the non
210         connected end of the arc is very close to the border of the
211         connected object. I think this is due to rounding errors in the
212         code for SHIFT-move handle which is reused to trim the arc in
213         autogap. Also it is not yet possible to have a startgap and an
214         endgap from/to the same central CP."
216 2005-07-31  Hans Breuer  <hans@breuer.org>
218         * plug-ins/cairo/diacairo.c congigure.in : dont wait any 
219         longer for distributions official packages - depend 
220         on cairo 0.6.0 - fixes bug #307144
222 2005-07-20  Hans Breuer  <hans@breuer.org>
224         * lib/element.h : remove stray NULL in ELEMENT_COMMON_PROPERTIES
225         which must match PropDescription, that is make it at least compile.
227 2005-07-19  Hans Breuer  <hans@breuer.org>
229         * app/diagram.c(new_diagram) : what comes from g_object_new()
230         MUST NOT be g_free()'d 
232         * lib/message.h : added dia_message_filename() here as well.
233         Mainly to not touch all files using. They *all* where using
234         lib/message.h already! Maybe the implemantation should be moved
235         to message.c as well cause the function has *nothing* to do
236         with dynamic filename resolving. It is a wrapper around
237         g_display_filename() mostly (only?) used for messages ...
238         * lib/dia_dirs.c(dia_message_filename) : fix C99ism
240 2005-07-18  Lars Clausen  <larsrc@raeder.dk>
242         * objects/EML/instantiation.c (instantiation_load): 
243         * objects/EML/interaction-ortho.c (interaction_ortho_type) 
244         * objects/ER/participation.c (participation_type): 
245         * objects/FS/flow-ortho.c (orthflow_type): 
246         * objects/GRAFCET/vector.c (arc_load): 
247         * objects/standard/zigzagline.c (zigzagline_type): 
248         * objects/UML/transition.c (transition_load): 
249         * objects/UML/realizes.c (realizes_load): 
250         * objects/UML/dependency.c (dependency_load): 
251         * objects/UML/generalization.c (generalization_type): 
252         * objects/UML/association.c (association_type): 
253         * objects/UML/component_feature.c (compfeat_load): 
254         Make autorouting deafult on except for old diagrams.
256         * plug-ins/cairo/diacairo.c (export_data): 
257         * plug-ins/cgm/cgm.c (export_cgm): 
258         * plug-ins/dxf/dxf-export.c (export_dxf): 
259         * plug-ins/dxf/dxf-import.c: 
260         * plug-ins/hpgl/hpgl.c (export_data): 
261         * plug-ins/metapost/render_metapost.c: 
262         * plug-ins/pixbuf/pixbuf.c: 
263         * plug-ins/pstricks/render_pstricks.c: 
264         * plug-ins/python/pydia-render.c: 
265         * plug-ins/shape/shape-export.c: 
266         * plug-ins/svg/render_svg.c: 
267         * plug-ins/svg/svg-import.c: 
268         * plug-ins/wpg/wpg.c 
269         * plug-ins/xfig/xfig-export.c: 
270         * plug-ins/xfig/xfig-import.c: 
271         * plug-ins/xslt/xslt.c: Use dia_message_filename to ensure legal
272         UTF-8 in message boxes.
274 2005-07-18  Lars Clausen  <lars@raeder.dk>
276         * lib/element.h (ELEMENT_COMMON_PROPERTIES): Allow Element objects
277         to have their dimensions specified in properties.  Still needs to
278         have proper update when setting properties cause constraint changes.
280         * app/preferences.c (update_floating_toolbox): Allow
281         toolbox_on_top setting to happen at once.
283         * app/diagram.c
284         * app/filedlg.c
285         * app/load_save.c
286         * app/render_eps.c
287         * app/sheets_dialog_callbacks.c
288         * lib/dia_dirs.c
289         * lib/dia_dirs.h
290         * lib/dia_xml.c
291         * lib/diarenderer.c
292         * lib/element.h
293         * lib/object_defaults.c:
294         Patch from lav@altlinux.ru (Vitaly Lipatov): Make filenames safe
295         for displaying in messages - better than crashing!  Mostly fixes
296         #310087.
297         
298         * objects/UML/class.c:  Save normal_font_height under the same
299         name it gets loaded as.  Fixes bug #310515.
301         * doc/en/authors.xml
302         * doc/en/usage-customization.xml
303         * doc/en/usage-objects-special.xml
304         * doc/en/usage-objects.xml: Some documentation fixes.  Fixes bug
305         #308315.
307 2005-07-17  Lars Clausen  <lars@raeder.dk>
309         * doc/en/usage-customization.xml: 
310         * doc/en/usage-objects.xml: 
311         * doc/en/authors.xml: 
312         * doc/en/usage-objects-special.xml: Applied patch from
313         stigge@antcom.de (Roland Stigge):  Diverse typos and
314         misencodings.  Fixes bug #308315.
316         * objects/UML/class.c (umlclass_save): Patch from
317         i.pilcher@comcast.net: Save normal font height under correct name
318         to reload it.  Fixes bug #310515.
320 2005-07-10  Hans Breuer  <hans@breuer.org>
322         * app/connectionpoint_ops.c app/object_ops.c : make the
323         'whole object' connection point only center point again. 
324         That is: it is visible and far less magnetic. Only the
325         line gap handling make it special. For me this probably
326         fixes bug #303301
328         * lib/neworth_conn.c : apply the same as for bug #173031.
329         This OrthConn fork got broken as well. Fixes bug #309381
331         * app/makefile.msc objects/makefile.msc : adapt to icon changes
333         * app/interface.c app/diagram_tree.c : a char** is still not 
334         a char* and the win32 build is configured to error on 
335         sloppiness like this
337         * plug-ins/wmf/wmf.cpp : fix typo in preprocessor condition
339 2005-07-10  Hans Breuer  <hans@breuer.org>
341         [
342           Take part in the toolbox icon redesign context! If you want to 
343           make them really prettier, please keep the following in mind :
344           - the size *must* be 22x22 otherwise button reflow will get broken.
345             Or you need to change about 800 icons at once.
346           - one important part of Dia are control points, so maybe the icons
347             should reflect that. (IMO gathering random icons form other 
348             apps wont work)
349           - the icons should at least look consistent in their group
350         ]
352         * app/Makefile.am : use 22x22 variants mostly lent from The GIMP
353         * app/pixmaps/*.png : added arrow-22.png scroll-22.png zoom-22.png
355         * objects/standard/*.c : get rid of xpm includes to avoid mixing icon sets
356         * objects/standard/pixmap/* : added arc.png beziergon.png 
357         bezierline.png box.png ellipse.png image.png line.png polygon.png 
358         polyline.png text.png zigzagline.png
359         * objects/standard/Makefile.am : use the new icon set including
360         text and arc ...
362         * app/interface.c : remove the "will probably crash" debug spew
364 2005-07-09  Lars Clausen  <lars@raeder.dk>
366         * objects/standard/pixmaps/*.png:
367         * objects/standard/Makefile.am:
368         * objects/standard/*.c:
369         * app/interface.c: 
370         * app/diagram_tree.c (create_object_pixmap): Fix icon loading. use
371         new icons. [Slightly belated entry]
373 2005-07-03  Hans Breuer  <hans@breuer.org>
375         * app/diagram_tree.c : dont leak display name
376         * app/app_procs.c : dont leak GOptionContext
377         * app/prop_widgets.c(frame_beginprop_get_widget) : 
378         Gtk api still not eating strings ...
380         * objects/UML/class.c() : don't load properties once more 
381         which are already loaded by StdProps. In case of strings 
382         (data_string) it has even produced leaks.
384         * app/paginate_psprint.c app/diagram.[hc] : the last
385         of the related dialogs is gone and with it the 
386         misconception of destroying widgets from 
387         diagram::finalize()
388         * app/display.c : ensure the diagram is still threre
389         when we remove the display from it's list
391 2005-07-01  Hans Breuer  <hans@breuer.org>
393         * lib/widgets.c(dia_color_selector_more_callback): dont 
394         free old_color twice
396         * plug-ins/wmf/wmf.cpp : finally added enahnced meta file
397         option. Thus linestyles can be preserved on export - at 
398         least on NT based systems.
400         * NEWS : clarify the wmf outside of windows issue
402         * app/modify_too.c : fix C99ism
404         * objects/standard/arc.c : debug spew optional at compile time
406 2005-06-26  Hans Breuer  <hans@breuer.org>
408         [ Cyrille would call it: warningectomy :-]
410         * lib/font.c app/create_object.c : `...' might be used uninitialized
411         in this function. Yes they were.
412         * app/modify_tool.c : modify_tool.c:610: warning: `obj' might be used 
413         uninitialized in this function. Yes it was with textedit_activate_object()
414         Also some static correctness.
415         * lib/diarenderer.c:678: warning: no previous prototype for 
416         `calculate_min_radius'. Made static.
417         * lib/dia_svg.c : ptr is a gchar *
418         * dia_xml.c(data_point,data_rectangle) : gchar *str for parsing
419         * lib/prop_text.c(multistringprop_get_widget) : use G_CALLBACK
420         * app/app_procs.c : confirm warning and make dump_dependencies() static
421         * app/autosave.c : #if 0'd old stuff
422         * app/display.c : GTK_CHECK_MENU_ITEM() for snap_to_grid
423         * 
424         * lib/text.c lib/font.c objects/standard/line.c object/UML/class.c
425           objects/Istar/goal.c objects/standard/bezier.c objects/standard/beziergon.c
426           plug-ins/cgm/cgm.c plug-ins/cairo/diacairo.c plug-ins/hpgl/hpgl.c
427           plug-ins/wpg/wpg.c plug-ins/svg/svg-import.c plug-ins/shape/shape-export.c
428           plug-ins/dxf/dxf-export.c plug-ins/gprint/diagnomeprintrenderer.c
429           plug-ins/gprint/diagnomeprint.c  plug-ins/xfig/xfig-export.c
430           app/diagram_tree_menu_callbacks.c app/recent_files.c app/undo.c app/menus.c
431           app/diapsrenderer.c app/diagram.c app/disp_callback.c : 
432         removed unused variables and functions
433         * objects/UML/umlattribute.c objects/UML/umloperation.c 
434           objects/UML/umlparameter.c objects/UML/umlformalparameter.c : 
435         neither 'missing braces around initializer' nor 'initialization from 
436         incompatible pointer type'
437         * objects/UML/class_dialog.c : more static
438         * app/interface.c : static and almost const correctness and some
439         less unitialized variables.
440         * app/diapsft2renderer.c : use (int) casts like the original 
441         (http://imagic.weizmann.ac.il/~dov/freesw/paps/ v0.4) does
442         * app/render_gdk.c: stop assignment from incompatible pointer type,
443         make member functions match the prototype.
444         * app/render_libart.c : Dito. Also stop caching the copy_gc in
445         a static variable. Otherwise it finally leaks and also may cause 
446         BadMatch with changing windows
447         => warning count down from about 250 to about 60, one or two hand full 
448            crash bugs less.
450 2005-06-26  Hans Breuer  <hans@breuer.org>
452         * lib/libdia.def : added dia_font_get_description, missing
453         from my last commit
455         * app/app_procs.c : use png_get_header_ver(NULL), that is:
456         prefer function call over exported variable to get the 
457         runtime version of libpng
459 2005-06-19  Hans Breuer  <hans@breuer.org>
461         * plug-ins/python/Makefile.am : added codegen.py to EXTRA_DIST
462         as suggested by Roland Stigge, bug #308310
464 2005-06-19  Hans Breuer  <hans@breuer.org>
466         * app/filedlg.c(file_export_callback) : oops, gtk_widget_show() wasn't 
467         called anymore
469 2005-06-18  Hans Breuer  <hans@breuer.org>
471         * NEWS : mention new file dialog
473         [plugged remaining leaks from bug #142669]
474         * lib/prop_attr.c(fontprop_free) : not only unref the font
475         but free the property itself, too. 
476         * app/diagram_tree.c(create_diagram_children): remember the
477         original list start to not only free the last element 
479         * lib/prop_sdarray.c:64: warning: `arrayprop_free' defined 
480         but not used. Here it meant a potentially huge leak.
482 2005-06-18  Hans Breuer  <hans@breuer.org>
484         * po/POTFILES.in : removed app/diaconv.c which isn't referenced 
485         by app/Makefile.am anymore either. Should finally fix 'make distcheck' 
486         for others, too. ( Roland Stigge, bug #144527 )
488 2005-06-18  Hans Breuer  <hans@breuer.org>
490         * plug-ins/wmf/Makefile.am : prevent installation. It 
491         doesn't do anything useful on *NIX and even seems to be
492         linked wrong by gcc (or me;). Fixes bug #172830 
494 2005-06-18  Hans Breuer  <hans@breuer.org>
496         * app/textedit.[hc] lib/arrows.[hc] plug-ins/xslt/xslt.h
497           plug-ins/xslt/xsltdialog.c plug-ins/xslt/xslt.c : fix for sloppiness
498         in function declarations. 'f();' for a function without parameters is
499         a C++ism. Though I can't get any of my compilers to warn about it.
500         Finally fixes bug #142663.
502 2005-06-18  Hans Breuer  <hans@breuer.org>
504         * app/textedit.[hc] lib/arrows.[hc] plug-ins/xslt/xslt.h
505           plug-ins/xslt/xsltdialog.c plug-ins/xslt/xslt.c : fix for sloppiness
506         in function declarations. 'f();' for a function without parameters is
507         a C++ism. Though I can't get any of my compilers to warn about it.
508         Finally fixes the rest of bug #142663.
510 2005-06-18  Hans Breuer  <hans@breuer.org>
512         * lib/font.h lib/font.c : _DiaFont is now private to prepare bigger 
513         changes but doesn't hurt anyway. See bug #162034 
514         * app/diapsft2renderer.c app/modify_tool.c 
515           plug-ins/gprint/diagnomeprintrenderer.c : use dia_font_get_description() 
516         instead of messing with internals
517         * app/display.c : give interactive renderers more begin/end render. 
518         It is guaranteed that the scale wont change between these.
520 2005-06-18  Hans Breuer  <hans@breuer.org>
522         * app/app_procs.c : const correctness for stderr_message_internal
523         * app/dia-props.c : gtk_toggle_*() functions want GTK_TOGGLE_BUTTON 
524         not GTK_CHECK_BUTTON, also some G_CALLBACK casts
525         * app/disp_callbacks.c : don't dereference the to the function call
526         when the function pointer in meant to be checked against 0
527         * app/interface.c : warning fixes by using correct types
528         * app/modify_tool.c : describe_props() members returns const pointer
529         * app/render_libart.c : removed most of the render function again.
530         They happily live in lib/dialibartrenderer.c since almost 3 years
531         http://cvs.gnome.org/viewcvs/dia/app/render_libart.c?r1=1.31&r2=1.32
532         * lib/dia_dirs.c : dia_get_canonical_path() const correctness
533         * lib/dia_svg.c lib/dia_xml.c : some char to xmlChar changes
534         * lib/dialibartrenderer.c(set_line_join): actually set the join_style
535         instead of the cap_style. Don't initialize Art* enums with GDK_* constants.
536         Both mentioned in bug #159814 and not warned by most other compilers.
537         * lib/diagtkfontsel.c : at least the watcom compiler did not like the
538         trailing colon in the GtkTypeInfo initialization
539         * lib/properties.c : avoid redefinition of LIBDIA_COMPILATION
540         * lib/dialinechooser.c lib/diagdkrenderer.c : there may be a difference 
541         between char and gint8
542         * plug-ins/metapost/render_metapost.c : replace invalid escape \% with %%
543         * plug-ins/wpg/wpg.c : consitently use guint8
544         * config.h.win32 : change HAVE_* defines to 1 not empty, avoids 
545         redefinition warnings for python and xslt plug-ins
547 2005-06-18  Hans Breuer  <hans@breuer.org>
549         * lib/diagramdata.c : really get rid of diagram_data_destroy 
550         and new_diagram_data [ no previous prototype for `...' is either
551         a sign of missing static or of a function to vanish :-]
553         * lib/geometry.c : apparently the G_INLINE stuff was working only
554         with particular GLib version(s), glib-2.6.4 does not. Conditionally
555         reverting to the old mecanics.
557 2005-06-17  Hans Breuer  <hans@breuer.org>
559         * plug-ins/python/pydia-*.c : include order tweaking to 
560         get rid of redefinition warnings. Ensure to include <Python.h> 
561         before any 'system' header, some dragged in by glib.h
562         * plug-ins/python/pydia-diagramdata.c(PyDiaDiagramData_Str)
563           pydia-properties.c(PyDiaProperties_Str)
564           plug-ins/python/pydia-property.c(PyDiaProperty_Str) : 
565         use %p to format pointers
566         * plug-ins/python/pydia-geometry.c(PyDiaArrow_Str) : 
567         dont cast to float for %d
568         * plug-ins/python/pydia-handle.c(PyDiaHandle_Connect) : 
569         use correct pointer type
570         * plug-ins/python/pydia-image.c(PyDiaImage_Str) :
571         dont discard qualifier aka dont free const strings
572         * plug-ins/python/pydia-properties.c : casts to PyCFunction
573         * plug-ins/python/pydia-property.c : removed unused function,
574         make ensure_quarks() static
575         * plug-ins/python/pydia-render.c : removed unused vars, use
576         the correct signature for begin_render
577         (dia_py_renderer_finalize): pluged a leak
578         => except -fno-strict-aliasing there is no warning left in 
579            all of PyDia
581 2005-06-12  Hans Breuer  <hans@breuer.org>
583         * app/filedlg.c : really fix the file extension mismatch on export dialog
584         by working around some gtk+-2.6 behaviour (bug #307378). Fixes bug #305850
586 2005-06-11  Hans Breuer  <hans@breuer.org>
588         * configure.in config.h.win32.h : mark as +cvs (should have been 
589         done directly after the 0.94 release)
590         * NEWS : attempt to summarize 2/3 year of development
592         [ 
593           WANT_AUTOMAKE=1.7 ./autogen.sh && ./conifugre  --enable-maintatiner-mode && make distcheck
594           finally passes again
595         ]
596         * app/app_procs.c : force use of POPT for the GNOME case, otherwise
597         app/run_dia.sh --credits > THANKS => Segmentation fault
598         * app/pixmaps/Makefile.am : added group.png and ungroup.png
599         * Makefile.am : work around scrollkeeper bug
600         * doc/en/Makefile.am : explicit list DISTCLEANFILES = dia.1
602         * po/*.po : 'noise' produced by make dist
604 2005-06-10  Hans Breuer  <hans@breuer.org>
606         * lib/properties.h : define PROP_STD_SHOW_BACKGROUND_OPTIONAL ...
607         * objects/custom/custom_object.c : ... and use it to avoid 
608         complains about missing attribute "show_background". It is 
609         safe to leave this uninitialized. Same for flip_* and "text",
610         the latter with comment cause it usually is *not* safe to do 
611         it for the general case. Fixes remaining issues with bug #169006
612         which where caused by an incompatible change in the shape file.
614         * app/commands.c : use "gnome-open" instead of "netscape" as
615         fallback for $BROWSER not set. Still not optimal but better
616         to try some common desktop tool than an obsolete browser;)
617         Fixes bug #307142. Also some whitespace changes.
619         * app/interface.c(toolbox_delete): avoid random return value.
620         Patch from Stanislav Brabec, fixes bug #307143
622         * shapes/Cisco/Makefile.am : added a bunch of new shapes/pngs.
623         Patch from Torben H. Nielsen (bugzilla is still the preferred way)
624         http://mail.gnome.org/archives/dia-list/2005-June/msg00015.html
626 2005-06-06  Lars Clausen  <lars@raeder.dk>
628         * app/diagram.c: 
629         * app/modify_tool.c:
630         * app/textedit.[ch]:
631         Better support for text edit highlight.
633         * app/connectionpoint_ops.c (connectionpoint_draw): Stop making
634         the mainpoint extra visible.
636 2005-06-02  Lars Clausen  <lars@raeder.dk>
638         * objects/UML/class_dialog.c:
639         * objects/UML/class.[ch]:
640         The final fixes for mainpoint on UML Class.
642         * sheets/cisco*.in, shapes/Cisco/*: New set of Cisco icons from
643         Ian Redfern, now in color and with mainpoints!  Very pretty!
645 2005-06-02  Hans Breuer  <hans@breuer.org>
647         * objects/UML/class_dialog.c : the memory managment with respect to
648         attribute/operation connections was/is a mess. But it should work again ;)
650         * samples/UMLPackages.dia samples/Composite-Action.dia : some diagrams
651         directly from the UML Specification - to show the power of Dia and 
652         some weakness. Watch the bug reports following ;)
654 2005-06-01  Hans Breuer  <hans@breuer.org>
656         * app/dia.def : export diagram_update_connections_object
657         * plug-ins/python/pydia-diagram.c : wrap diagram_update_connections_object
658         Patch from Paolo Bernardi, together with the property setting closes bug #300572
660 2005-06-01  Hans Breuer  <hans@breuer.org>
662         * plug-ins/python/pydia-property.c : complete refactoring of property 
663         setting, now also supports setting of property arrays
664         * plug-ins/python/pydia-*.c plug-ins/python/diamodule.c : adapt to 
665         Python namespacing conventions
666         * plug-ins/python/pydiadoc.py : use the stuff above to produce more 
667         complete UML Classes with attributes and operations
668         * plug-ins/python/otypes.py : now also show the properties of the objects
670         * objects/UML/class.c(umlclass_set_props) : need to update object::connections
671         (pointers), they might be changed with attributes and opertions changing
673         * plug-ins/python/pydia-property.c : PointArray and BezPointArray property getters
674         were broken. Apparently noone used them before.
676         * plug-ins/python/pydia-diagram.c plug-ins/python/pydia-diagramdata.c : moved methods
677         which only operate on the DiagramData to the latter file. To get on the DiagramData
678         object of a Diagram use diagram.data. [In C the Diagram is a subclass of DiagramData, 
679         but I don't know how to reflect that in the bindings. And for backward compatibility 
680         there also is the 'data' member.]
682         * objects/UML/uml.c objects/UML/umlattribute.c objects/UML/umloperation.c 
683           objects/UML/umlparameter.c : describe enums with PropEnumData
685         * app/commands.c(view_show_all_callback) : if there is something selected show 
686         that instead of all exisiting objects. If there is noting or all selcted it 
687         "Show all" shows the old behaviour.
689         * lib/parent.[hc] lib/object.c app/disp_callbacks.c app/diagram.c : plug some memory 
690         leaks and use less allocations caused by misguided API. Also some adaption to common 
691         coding style
693         * objects/UML/class.h : add some comment about the brokeness of UML_MAINPOINT
695         * app/makefile.msc : added new icons and build as console app while 
696         not releaseing to the general public
698         * objects/custom/shape_info.c : use g_strdup("") for a field to be g_free()'d
699         and keep a refernce when storing the a font from style="" in s.font. This should
700         finally allow to have shapes with fully predefined text (and no 'random' crashes)
702         * plug-ins/gprint/diagnomeprint.c : disable GNOME_SVG until I've found a program
703         capable to interpret it's output
705 2005-05-31  Lars Clausen  <lars@raeder.dk>
707         * sheets/ER.sheet.in: No more xpms referenced in sheets. Fixes bug #151811.
709 2005-05-30  Pawan Chitrakar  <pawan@nplinux.org>
711         * configure.in: Added ne in ALL_LINGUAS
713 2005-05-24  Lars Clausen  <lars@raeder.dk>
715         * lib/font.c: Change to make DIA_FONT_ITALIC turn into -Oblique PS
716         fonts for legacy fonts.  They don't have DIA_FONT_OBLIQUE setting
717         anyway. 
719 2005-05-23  Lars Clausen  <lars@raeder.dk>
721         * lib/paper.c: Added Ledger size paper.  Fixes bug #305254.
723 2005-05-21  Lars Clausen  <lars@raeder.dk>
725         * lib/diaarrowchooser.c: 
726         * lib/arrows.[ch]: Patch from Radek Krahl <ptasz3k@o2.pl>: Add
727         'infinite' line (three dots) arrowhead.  Fix line length in arrow
728         preview.  And fix typo.  Fixes bug #303904. 
730 2005-05-20  Hans Breuer  <hans@breuer.org>
732         * lib/text.c : advice from valgrind and data_string() review:
733         neither g_free() memory on the stack
734         * objects/GRAFCET/boolequation.c : ... nor const strings 
735         * objects/UML/association.c:934 : definitely lost. Even g_strdup("")
736         wants to be freed
738         * app/diagram.c : a g_object_ref() following g_object_new() is almost
739         always wrong. Why would we need two refernces?
740         * app/app_procs.c : same here.If it crashes later on someone is dropping
741         refernces he does not own, and *that* needs to be fixed. This is reverting
742         "Remember to ref g_object_new'd object" (bug #170972) below, which 
743         causes more harm (leaking, hiding bugs elsewhere) than good.
745         * app/app_procs.c lib/diagramdata.[ch] lib/libdia.def : get rid of
746         diagramdata_destroy() which was only a wrapper to g_object_unref()
748         * app/display.c(selection_changed) : don't g_strdup_printf() without
749         g_free() later /or/ a C++ comment of me mostly denotes an error
751         * app/diagram.c : diagram_parent_sort_cb make signature match GCompareFunc
753         * lib/widget.c : dia_dynamic_menu_select_entry() cleanup. If it takes a
754         const gchar* entry it must not eat memory, added a lot of g_free() and
755         some const. Fixed a bunch - i.e. *all* - warnings.
756         * lib/widget.h : removed unused/deleted functions
758         * app/layer_dialog.c(dia_layer_widget_connectable_toggled) : trying to
759         avoid 'Invalid write of size 4', no luck yet
761 2005-05-19  Lars Clausen  <lars@raeder.dk>
763         * objects/UML/class.c: 
764         * objects/UML/class.h: 
765         * objects/UML/class_dialog.c: Work on getting a proper mainpoint
766         for uml class object.  #ifdef'd out right now.
768 2005-05-18  Lars Clausen  <lars@raeder.dk>
770         * objects/standard/line.c: Make line adjust its actual endpoints
771         for autogap -- looks and feels better.
773         * objects/standard/arc.c: 
774         * lib/geometry.h: 
775         * app/modify_tool.c: Patch from Grégoire Dooms
776         <dooms@info.ucl.ac.be>:  First stab at autogap for arcs, and
777         shifted arc angle movement.
779 2005-05-16  Hans Breuer  <hans@breuer.org>
781         * lib/widget.c : variable declarations need to be at the start of a block,
782         at least as we are not using C++ or C99
784         * plug-ins/python/pydia-property.c : implment the read part for Property
785         arrays - aka. umlclass.properties["operations"], umlclass.properties["attributes"]
786         They are working quite well as can be seen with export-object.py
788         * plug-ins/python/codegen.py : prove it once more with the generation of C++
789         or Python code from an UML Diagram. Simply save as .py or .cxx ...
790         * plug-ins/python/Makefile.am : install it
792 2005-05-16  Lars Clausen  <lars@raeder.dk>
794         * app/pixmaps/{un}group.png: 
795         * app/Makefile.am (ICON_PNG_PAIRS): 
796         * app/menus.c (display_menu_items): 
797         New icons for grou/ungroup finally added, closing bug #105519.
799         * app/Makefile.am: Dependencies for pixmaps.
801         * app/pixmaps/connectable.png: An icon that actually makes sense
802         for switching connectability.
804 2005-05-15  Hans Breuer  <hans@breuer.org>
806         * lib/group.c object/UML/classicon.c : fixed leftovers of
807         'Adding connectionpoint to _move_handle
809         * lib/widgets.c : gtk+ *NEVER* eats strings, so gtk_something(widget, g_strdup())
810         is *ALWAYS* a memory leak. Plug some more.
812         [
813          In preparation to make UML operations/attributes/parameters setable by Python
814          UML class became more StdProp conformant. A nice experience to be the first 
815          to use the PROP_TYPE_DARRAY stuff about four years after it was written ;-)  
816         ]
817         * objects/UML/umlattribute.c objects/UML/umloperation.c 
818           objects/UML/umlparameter.c objects/UML/umlformalparameter.c : (new files) 
819         split from objects/UML/uml.c and made StdProp aware
820         * objects/UML/class.c : finally make "attributes", "operations", "templates"
821         <template parameters> first class StdProps citizens.
822         (umlclass_load) : removed hand-written parsing for the above, it is all done
823         by object_load_props() now. The old write code is still in place, so be very
824         careful when changing something - at the moment load/save it is 100% compatible 
825         as it needs to be.
826         * objects/UML/uml.c : now just type registration here, as it is supposed to be
827         * objects/UML/Makefile.am objects/makefile.msc : build the new files
829         * lib/properties.h(PropDescCommonAreaExtra) : need a place to store the 
830         in-record offsets
831         * lib/prop_sdarray.c : made the DARRAY case work, SARRAY still untested
832         (darray_prop_adjust_object_records) : don't loop forever
833         (whole file) : use the new (working) way to get on the second level offsets.
834         Also resolved some abbreviations, it is complicated enough without them ;)
835         * lib/proplist.c : even complete list contents may be optional
837 2005-05-15  Hans Breuer  <hans@breuer.org>
839         * lib/bezier_conn.c(remove_handles) : don't try to remove 
840         non-exisitng handles (patch from Radek Krahl, bug #302273)
842 2005-05-15  Hans Breuer  <hans@breuer.org>
844         * plug-ins/metapost/render_metapost.c : locale independent output
845         (Radek Krahl, bug #301866)
847 2005-05-12  Lars Clausen  <lars@raeder.dk>
849         * shapes/Cisco/*.{shape,png}:
850         * sheets/cisco*.sheet.in:
851         Updated with color icons from Ian Redfern, closing bug #303889.
852         Added automatic midpoints, not attempt at adjusting them.
854 2005-05-11  Lars Clausen  <lars@raeder.dk>
856         * many shapes:  Use mid of bounding box for midpoint, better than
857         mid of connection points generally.
859 2005-05-10  Lars Clausen  <lars@raeder.dk>
861         * lib/widgets.c: Decided on one way for the ratio thing in arrow
862         size selector:  Fixed ratio is on by default and keeps the sizes
863         at the given ratio, but doesn't clamp them to be the same.  Fixes
864         bug #302861.
866         * lib/font.c: Fix for bug #303695: Allow more than one entry of
867         each legacy name, thereby correctly encoding bold and italic of
868         the three main fonts.  Also use | rather than || to combine slant
869         and weight, so matching works.  Had to remove binary search for
870         new font name, but the list is short enough it's not a problem.
872 2005-05-09  Lars Clausen  <lars@raeder.dk>
874         * lib/autoroute.c (autoroute_layout_orthconn): Remove debugging info.
876 2005-05-08  Hans Breuer  <hans@breuer.org>
878         * objects/UML/class.c : Reverted to have no center point.
879         At first it looked as if there was only the bug to not increase
880         class.h:UMLCLASS_CONNECTIONPOINTS. But the UMLClass has 
881         potentially much more dynamic connection points (to the left
882         and right of every attribute/operation). Now simply adding one
883         between see static and dynamic will screw up any existing diagram
884         which makes use of the dynamic connection points. The would all
885         be connected with an off-by-one error. I have no idea how to
886         code around that. But breaking backward compatibility is no 
887         option here. Does not completely fix bug #303301 ...
888         
889         * lib/widget.c(dia_font_selector_set_font): actually set the options 
890         menu state. So we are not any longer resetting the font style on Apply.
891         Use "UML - Class" dialog as stress text example.
893         * app/command.c : some people insist to close diagrams already
894         closed using tear-off menus. Maybe we should add a dialog 
895         "Do you want to call Dr. Watson now?". If there is no diagram
896         to close anymore just do nothing, fixes bug #303221
897         * app/display.c(ddisplay_close) : use g_return_if_fail(ddisp != NULL);
898         Calling this with no display to close is a pathological case.
900         * app/diagram.[hc] : moved object.h and other DiaObject stuff
901         to the implementation in preparation of Big Things(tm)
903         * app/interface.c : less warnings and make it compile. strncmp()
904         does not take a char**, neither does gdk_pixbuf_new_from_inline().
906         * objects/makefile.msc plug-ins/makefile.msc : less output
908 2005-05-08  Lars Clausen  <lars@raeder.dk>
910         * lib/orth_conn.c (orthconn_init): The right place to set the
911         default autorouting value.  Fixes bug #303291.
913         * app/display.c (ddisplay_close): Patch from Radek Krahl
914         (ptasz3k@o2.pl):  Fix crash when using from detached menu
915         (#303221)
916         
917 2005-05-07  Lars Clausen  <lars@raeder.dk>
919         * lib/orth_conn.c (orthconn_load): Autorouting should default to
920         off in diagrams that don't have it explicitly.  All diagrams
921         should be explicit about it.
923 2005-05-06  Hans Breuer  <hans@breuer.org>
925         * app/samples/Self/*.dia : some UML diagrams describing Dia's
926         inner working (or it's future;)
928 2005-04-26  Lars Clausen  <lars@raeder.dk>
930         * app/connectionpoint_ops.c (connectionpoint_draw): Temporary
931         change to display of mainpoint to be easier to debug autogenerated
932         ones. 
934 2005-04-23  Hans Breuer  <hans@breuer.org>
936         * plug-ins/python/diamodule.c plug-ins/python/pydia-object.h
937           plug-ins/python/pydia-properties.h : use lib/ prefix for
938         Dia internal headers with too common names (fixes bug #173061)
940         * app/display.c : stop special casing the first display of
941         a diagram. Every display now has it's own refernce. The initial
942         reference gets dropped when there is no display anymore. See
943         diagram_remove_ddisplay(). Fixes bug #300744.
945         * app/diapsft2renderer.c : locale independent output
946         (Radek Krahl, bug #300847)
947         * app/paginate_psprint.c :  fixing use of setlocale() calls
948         (Radek Krahl, bug #300886)
949         * plug-ins/shape/shape-export.c : fixing use of setlocale() calls
950         (Radek Krahl, bug #300889)
952         * objects/UML/class.c : fix another crash with the line 
953         wrapping code (Gabor Simon, bug #160865)
955         * plug-ins/cairo/diacairo.c : image rendering had an endianess 
956         issue (or is this working around a libpixman bug?;)
958 2005-04-21  Lars Clausen  <lars@raeder.dk>
960         * lib/polyshape.c (polyshape_update_data): Fixed numpoint off-by-one.
962         * shapes/**/*.shape: All shapes now have midpoints.
964 2005-04-20  Lars Clausen  <lars@raeder.dk>
966         * lib/orth_conn.c (orthconn_update_data): Patch from ptasz3k@o2.pl
967         (Radek Krahl): Make sure there's enough handles for the line.
968         Fixes bug #173031.
970         * objects/UML/node.c (node_draw): Better drawing method avoids
971         garbage after moving.  Fixes bug #301032.
973 2005-04-17  Hans Breuer  <hans@breuer.org>
975         * plug-ins/cairo/diacairo.c : again adapt to Cairo API 
976         changes (whould compile with current cvs and 0.(3|4).0
978 2005-04-11  Lars Clausen  <lars@raeder.dk>
980         * xmldocs.make (all): Fix to put installed docs in right place
981         under disable-gnome.
983         * doc/en/Makefile.am: Use xml_files var for xml files, EXTRA_DIST
984         only for dia.dbk.
986         * app/commands.c (help_manual_callback): Patch from p@kapcoweb.com
987         (Leonardo Boshell): Use standard gnome help if called with Gnome.
989         * app/diapsrenderer.c: Patch from ptasz3k@o2.pl (Radek Krahl): Fix
990         locale issues for eps output.  Fixes bug #173135.
992 2005-04-10  Hans Breuer  <hans@breuer.org>
994         * plug-ins/cairo/diacairo.c : adapt to Cairo PNG API 
995         changes (somewhat broken)
996         
997         * plug-ins/pstricks/render_pstricks.c : still C89 ...
998         * objects/custom/shape_info.c : ... but with prototypes
999         
1000 2005-04-07  Lars Clausen  <lars@raeder.dk>
1002         * lib/dia_xml.c: 
1003         * plug-ins/svg/render_svg.c: 
1004         * lib/diasvgrenderer.c: Patches from ptasz3k@o2.pl (Radek Krahl):
1005         Make decimal separators be correct in save file formats
1006         (non-localized).  Fixes bugs #172529 and 172531.
1008 2005-04-06  Lars Clausen  <lars@raeder.dk>
1010         * app/create_object.c (create_object_button_release): 
1011         * app/modify_tool.c (modify_button_release): Correct activations
1012         of text edits.
1014 2005-04-05  Simon Kågström  <ska@bth.se>
1016         * app/app_procs.c: the --show-layers option can now handle numeric
1017         ranges of layers.
1019 2005-04-05  Lars Clausen  <lars@raeder.dk>
1021         * lib/diagdkrenderer.c (draw_string): Patch from tomkast@yahoo.com
1022         (Tom Kast): Avoid blockiness caused by bad updates.
1024 2005-04-03  Lars Clausen  <lars@raeder.dk>
1026         * lib/polyshape.c: 
1027         * lib/beziershape.c: Main points.  A crude solution, having the
1028         center in the middle of the bb.  Shows a bug in the distance_from
1029         code for polyshape when a side is horizontal.
1031 2005-04-02  Lars Clausen  <lars@raeder.dk>
1033         * plug-ins/pstricks/render_pstricks.c: 
1034         * plug-ins/xfig/xfig-export.c: Patch from Radek
1035         Krahl <ptasz3k@o2.pl>: Fix decimal point problems. Fixes bugs 
1037 2005-04-02  Hans Breuer  <hans@breuer.org>
1039         * lib/dia_image.c(dia_image_filename) : return the path 
1040         again. (bug #172416, Radek Krahl)
1041         
1042 2005-04-01  Steve Murphy  <murf@e-tools.com>
1044         * configure.in: Added "rw" to ALL_LINGUAS.
1046 2005-03-31  Lars Clausen  <lars@raeder.dk>
1048         * lib/neworth_conn.c (neworthconn_update_data): Handle autogap.
1050         * lib/orth_conn.c (orthconn_update_data): Handle autogap while not
1051         autorouting.  
1053         * objects/network/basestation.c: Main points.
1055 2005-03-27  Hans Breuer  <hans@breuer.org>
1057         * app/Makefile.am : removed some pixmap/*.xpm from EXTRA_DIST
1058         * app/pixmaps.h : removed arrow.xpm
1059         * lib/Makefile.am : added diamarshal
1060         * plug-ins/python/Makefile.am : added makefile.msc to EXTRA_DIST
1061         => makes 'make dist' pass and produce a useable package
1063         * po/*.po : 'noise' profuced by make dist
1065 2005-03-24  Lars Clausen  <lars@raeder.dk>
1067         * objects/flowchart/parallelogram.c (pgram_update_data): 
1068         * objects/flowchart/ellipse.c (ellipse_update_data): 
1069         * objects/flowchart/diamond.c (diamond_update_data): 
1070         * objects/flowchart/box.c (box_update_data): Main points.
1072         * objects/custom/custom_object.c (custom_create): 
1073         * objects/custom/shape_info.h: 
1074         * shapes/Assorted/square.shape: 
1075         * objects/custom/shape_info.c (load_shape_info): 
1076         * doc/shape.dtd: Added main point support to shapes, and an
1077         example of how to use it.
1079 2005-03-21  Lars Clausen  <lars@raeder.dk>
1081         * lib/autoroute.c (autoroute_layout_orthconn): Remember to
1082         unnormalize from same point as you normalize, or else!
1084 2005-03-20  Lars Clausen  <lars@raeder.dk>
1086         * app/app_procs.c (do_convert): Patch from crux@gorodmasterov.com:
1087         Remember to ref g_object_new'd object.
1089 2005-03-19  Hans Breuer  <hans@breuer.org>
1091         * plug-ins/xslt/xslt.c : don't crash if both places ($SHARE, $HOME)
1092         have configurations, fixes bug #170962
1094         * objects/UML/state.c : ("UML - State")::type is PROP_FLAG_OPTIONAL,
1095         or better not used any longer. Fixes bug #169142.
1097         * lib/element.c(element_update_connections_rectangle): don't initialize 
1098         the eighth point twice but instead the nineth once
1100         * objects/standard/bezier.c : no C++ comments *please*
1102         * lib/plug-ins.h : increment DIA_PLUGIN_API_VERSION
1104         * lib/dia_image.[ch] : dia_image_filename() returns a string not to be freed ...
1105         * plug-ins/python/pydia-image.c : ... so, don't do it!
1107         * lib/dia_svg.c : refactor color parsing and support the "rgb(127,255,0)" form,
1108         also named colors via pango_color_parse()
1110         * lib/prop_text.c : don't try to g_strdelimit(NULL), fixes bug #169367
1112         * lib/libdia.def : updated externals
1114         * app/object_ops.c : still not C99 everywhere
1116 2005-03-19  Hans Breuer  <hans@breuer.org>
1118         * lib/autoroute.c : at least it should compile ;)
1119         
1120 2005-03-19  Lars Clausen  <lars@raeder.dk>
1122         * lib/autoroute.c: Orthconns now do autogap.
1124 2005-03-17  Lars Clausen  <lars@raeder.dk>
1126         * app/authors.h: Added Gregoire Dooms for gap stuff.
1128         * objects/standard/polyline.c: Patch from Grégoire Dooms
1129         <dooms@info.ucl.ac.be>: Autogap and absolute gap for polyline.
1130         
1131         * objects/standard/bezier.c: Patch from Grégoire Dooms
1132         <dooms@info.ucl.ac.be>: Fixes two bugs.  Also autogap no longer a
1133         property. 
1134         
1136         * objects/UML/state_term.c: 
1137         * objects/UML/large_package.c: 
1138         * objects/UML/node.c: 
1139         * objects/UML/object.c: 
1140         * objects/UML/small_package.c: 
1141         * objects/UML/state.c: 
1142         * objects/UML/usecase.c: 
1143         * objects/UML/note.c: 
1144         * objects/UML/actor.c: 
1145         * objects/UML/classicon.c: 
1146         * objects/UML/component.c: 
1147         * objects/Misc/analog_clock.c: 
1148         * objects/Jackson/requirement.c: 
1149         * objects/Istar/goal.c: 
1150         * objects/Istar/actor.c: 
1151         * objects/FS/function.c: 
1152         * object/standard/box.c:
1153         * objects/ER/entity.c: 
1154         * objects/ER/relationship.c: 
1155         * objects/ER/attribute.c: Main points added.   Distance_from fixed
1156         in attribute, broken in relationship, I* goal, Jackson
1157         requirement, analog_clock, all non-rectangular UML elements, 
1159         * lib/libdia.def: 
1160         * lib/element.[ch]: New method to help update connection points.
1162         * app/menus.c: Change Help/Manual to Help/Contents to follow
1163         standard.
1164         
1165         * objects/standard/line.c:
1166         * lib/geometry.[ch]: 
1167         * objects/standard/bezier.c: Patch from Grégoire Dooms
1168         <dooms@info.ucl.ac.be>: Add absolute gap and autogap for line and
1169         bezier objects.   Autogap nowchanged to be a function of the
1170         connpoints.
1172         * lib/libdia.def: 
1173         * lib/connectionpoint.[ch]: New function to ask if a connpoint has the
1174         autogap flag.
1176         * app/connectionpoint_ops.c (connectionpoint_draw): Don't draw
1177         CP_FLAG_ANYPLACE connpoints.
1179 2005-03-16  Lars Clausen  <lars@raeder.dk>
1181         * app/interface.c (create_tools): Removed debug printf.
1183 2005-03-15  Lars Clausen  <lars@raeder.dk>
1185         * lib/widgets.[ch]: Constification.
1187         * app/interface.c: Work on using gdk-pixbuf-csource'd data, not
1188         working yet.
1190         * objects/standard/ellipse.c: Use CP_FLAG_MAIN for central CP.
1192         * lib/connectionpoint.h: Flags for connection points.
1194         * app/create_object.c (create_object_motion): 
1195         * app/modify_tool.c (modify_motion): Minor refactoring.
1197         * app/object_ops.c (object_find_connectpoint_display): Extend with
1198         finding connpoints that cover entire objects.
1200         * app/layer_dialog.c (dia_layer_widget_init): Get rid of warnings.
1202         * objects/custom/custom_object.c (custom_setup_properties): Avoid
1203         uninitialized use.
1205 2005-03-13  Hans Breuer  <hans@breuer.org>
1207         * plug-ins/svg/svg-import.c : handle the <circle/> tag as well
1209 2005-03-13  Hans Breuer  <hans@breuer.org>
1211         * lib/dia_svg.[hc] objects/custom/shape_info.[hc] plug-ins/svg/svg-import.c :
1212         s/DiaSvgGraphicStyle/DiaSvgStyle/, added and use convenience functions 
1213         dia_svg_style_copy(), dia_svg_style_init()
1215         * objects/custom/shape_info.c : use dia_svg_parse_path() from lib/ (it got
1216         moved out of this)
1218         * lib/dia_svg.c(dia_svg_parse_path) : also handle style properties which are
1219         not wrapped in the style attribute
1221         * plug-ins/svg/svg-import.c : implement nested group handling and style
1222         'style inheritance'. Still no transformations, no <image/>, no <style/> 
1223         <defs/>...
1225         * plug-ins/svg/svg-import.c(import_svg) : use message_warning instead of g_warning,
1226         the latter is for programmers.
1227         Also be more tolerant if the document root namespace is not 'svg'. If the svg 
1228         namespace is defined in the file search for the top node including svg. This
1229         allows us to re-read the svg part of our own shape format.
1231         * lib/libdia.def : there is no give_focus_to_object
1232         * app/textedit.c : still no C99,  aka. error C2275: 'Focus' : illegal use of this 
1233         type as an expression
1235         * lib/geometry. c : use G_IMPLEMENT_INLINES
1236         * lib/libdia.def : export point_get_perp (used by xfig plug-in)
1238         * app/textedit.c(textedit_end_edit) : don't crash if the display is already
1239         gone when trying to remove the focus
1241         * plug-ins/cairo/diacairo.c : CAIRO_HAS_WIN32_SURFACE does not any longer mean
1242         it has *my* Cairo Win32 Backend. [The official one isn't useful for the use
1243         case of this plug-in, i.e. producing output files]
1245 2005-03-13  Lars Clausen  <lars@raeder.dk>
1247         * lib/Makefile.am (BUILT_SOURCES): 
1248         * app/Makefile.am (BUILT_SOURCES): Use the Right Way[tm] to force
1249         the building of the icons header files.
1250         * app/dia-lib-icons.h: Out of CVS now that it's correctly generated.
1252 2005-03-13  Hans Breuer  <hans@breuer.org>
1254         * configure.in : require Cairo 0.3.0
1255           plug-ins/cairo/diacairo.c : changed to match ;-)
1257         * app/app_procs.c() : new function dump_dependencies()
1258         which gets called by: dia --version --verbose
1259         and may help to track version dependent problems in
1260         our dependencies
1262         * lib/font.c : reverted to previous version cause using
1263         not implemented Pango API did not improve the issue.
1264         See: http://bugzilla.gnome.org/show_bug.cgi?id=162034
1265         for more information.
1267         * lib/dialinechooser.c : a little shrinking of the 
1268         initial size (to work around line wrappjing the right 
1269         arrow control)
1271 2005-03-11  Lars Clausen  <lars@raeder.dk>
1273         * app/textedit.c: Concentrate start/end editing in single functions.
1275 2005-03-10  Lars Clausen  <lars@raeder.dk>
1277         * lib/text.h: 
1278         * lib/object.h: Added new object function to allow the object to
1279         be notified when its text is being edited.
1281         * lib/libdia.def: 
1282         * app/modify_tool.c: 
1283         * app/commands.c: 
1284         * app/textedit.c: 
1285         * lib/focus.c: Remove sideeffects from focus objects, add getter
1286         for focus->obj.
1288 2005-03-09  Lars Clausen  <lars@raeder.dk>
1290         * lib/Makefile.am (dia-lib-icons.h): 
1291         * app/Makefile.am: Minor cleanup.
1293 2005-03-06  Hans Breuer  <hans@breuer.org>
1295         * app/app_procs.c : avoid "assignment within conditional expression"
1296         and handle -L for the GOption case as well.
1298         * lib/widget.c : strchr() does not return -1 on not found but NULL;
1299         avoids widgets.c(307) : error C4047: '!=' : 'char *' differs in levels of 
1300         indirection from 'const int '
1302         * lib/diasvgenderer.c(draw_arc|fill_arc) : finally correct sweep and 
1303         large_arc, thus produce correct arc output (like diasvg.py does;),
1304         fixes bug #144401
1306         * lib/dia_svg.[hc](dia_svg_parse_path) : new function copied and adapted 
1307         from objects/custom/shape_info.c to be shared with object/custom and
1308         plug-in/svg -> finally the C based svg-import reads pathes again.
1309         Added arc parsing while I was there, which fixes bug #169191
1310         * objects/custom/shape_info.c(parse_path) : 
1311         * plug-ins/svg/svg-import : reuse above function
1312         Also fix the "root element was 'svg' -- expecting 'svg'" bug #108502.
1313         But in general this does only support a small subset of what is 
1314         possible in SVG.
1316 2005-03-06  Lars Clausen  <lars@raeder.dk>
1318         * objects/UML/association.c: Patch from Dave Klotzbach applied:
1319         Add visibility to association arrow.  Fixes bug #157012.
1321         * app/grid.c: Patch from Lawrence Withers fixes grid messiness,
1322         closing bug #161040.
1324         * app/layer_dialog.c (create_button_box): Use stock icons instead
1325         of homemade onces.  Gets us rid of four more XPMs.
1327 2005-03-05  Sampo Kellomaki <sampo@iki.fi>
1329         * app/app_procs.c: Implemented --show-layers=LAYER,LAYER,... option
1330         This option permits command line control of which layers are visible.
1331         Useful when automatically exporting multiple versions of the same
1332         diagram, e.g. slides with overlays. Added-n switch parsing without POPT.
1333       * app/app_procs.h: moved prototype of do_convert() to app/app_procs.c
1334         and made it static since its only used in that file.
1335         * app/authors.h: added myself
1336         * doc/en/dia.1: documented the switch
1337         * doc/en/usage-layers.xml: ditto
1338         
1339 2005-03-05  Alan Horkan <horkana@tcd.ie>
1341         * app/interface.c Change Horizontal scroll policy to NEVER for sheets
1342         this restores how Dia behaved before the GTK2 port and seems to help 
1343         allow the toolbox to be more easily resized.  Bug #108891.
1345 2005-03-05  Lars Clausen  <lars@raeder.dk>
1347         * Civil/civil_motor.shape:
1348         * Civil/civil_rotor.shape:
1349         * Logic/and.shape:
1350         * Logic/buffer.shape:
1351         * Logic/connector.shape:
1352         * Logic/inverter.shape:
1353         * Logic/nand.shape:
1354         * Logic/nor.shape:
1355         * Logic/not.shape:
1356         * Logic/or.shape:
1357         * Logic/xor.shape:
1358         * shapes/Assorted/arrow-left-up.shape: 
1359         * shapes/Assorted/heptagon.shape: 
1360         * shapes/Assorted/star5.shape: 
1361         * shapes/Assorted/trapezoid.shape: 
1362         * shapes/Assorted/triangle-rightangle.shape: Fixed bad use of
1363         defaults, see bug #169143.
1365         * sheets/Assorted.sheet.in: Fixed typo patch applied, bug #169114.
1367         * configure.in: 
1368         * doc/en/Makefile.am: Finally figured out the right way to ask for
1369         the manpage xslt.  Closes bug #144539.
1371 2005-03-01  Lars Clausen  <lars@raeder.dk>
1373         * lib/Makefile.am (nodist_include_HEADERS): 
1374         * app/Makefile.am: Correctly generate these files from PNGs with
1375         automake.
1377         * lib/widgets.h: 
1378         * lib/libdia.def:
1379         * lib/widgets.c: Refactor toggle button factory to allow inline
1380         data.
1382         * lib/pixmaps/Makefile.am: Unify lib pixmaps.
1384         * app/makefile.msc (ICON_PNG_PAIRS): 
1385         * app/dia-app-icons.h: Updated with more icons.
1387         * lib/Makefile.am: 
1388         * app/Makefile.am: Use gdk_pixbuf_csource to create inline data
1389         from pngs.
1391         * app/interface.c (create_display_shell): 
1392         * app/layer_dialog.c (dia_layer_widget_init): 
1393         * lib/dia_image.c (dia_image_get_broken): Use inlined data
1394         generated from png.
1396         * app/display.c (ddisplay_close): Removed unused includes.
1398 2005-03-01  Lars Clausen  <lars@raeder.dk>
1400         * app/sheets.c (create_object_pixmap): Create a placeholder image
1401         for when the real image is missing.  Better than crashing:)
1402         Closes bug #166786.
1404 2005-02-25  Hans Breuer  <hans@breuer.org>
1406         * app/app_procs.c : don't requets to open a default display with
1407         g_option_context_add_group (crux@gorodmasterov.com, bug #168523)
1409 2005-02-22  Lars Clausen  <lars@raeder.dk>
1411         * plug-ins/gprint/diagnomeprint.c (export_data): GNOME, not Gome.
1412         Fixes bug #168125.
1414 2005-02-19  Lars Clausen  <lars@raeder.dk>
1416         * app/menus.c (display_menu_items): Applied patch from bug #94019:
1417         Menu cleanup and addition of icons.  Also a few additional stock
1418         icons. 
1420         * app/layer_dialog.c (create_layer_dialog): Bug #159598: Clean up
1421         the layers dialog.
1423 2005-02-14  Lars Clausen  <lars@raeder.dk>
1425         * INSTALL (ftp): Fixed Pango release typo (bug #153007)
1427 2005-02-13  Lars Clausen  <lars@raeder.dk>
1429         * lib/font.c: First stab at using Gtk 2.4 functions for fixing
1430         width.  Seems to work.  Once tested some more, needs old code
1431         removed. 
1433         * lib/widgets.c (dia_font_selector_create_string_item): Avoid
1434         warning by escaping & properly.
1436 2005-02-06  Lars Clausen  <lars@raeder.dk>
1438         * app/filedlg.c (file_export_callback): Set correct extension as
1439         soon every time the dialog is shown.  Fixes bug #162535.
1441         * app/display.c (ddisplay_set_origo): Use more standard
1442         transformations.
1444         * app/modify_tool.c (modify_motion): 
1445         * app/create_object.c (create_object_motion): Put coordinates of
1446         handle/object in status bar while moving. Fixes bug #163164.
1448 2005-02-03  Lars Clausen  <lars@raeder.dk>
1450         * lib/.cvsignore: Added generated files diamarshal.[ch]
1452 2005-02-02  Lars Clausen  <lars@raeder.dk>
1454         * configure.in: Add GLIB_GENMARSHAL def as suggested in
1455         http://ignore-your.tv/software/libgtcpsocket/docs/client-subclassing.html.
1456         Now compiles on Linux.
1458 2005-02-01  Lars Clausen  <lars@raeder.dk>
1460         * app/sheets.c (sheet_object_mod_get_type_string): We don't really
1461         need to translate the empty string.  Especially not after
1462         g_assert_not_reached().  Fixes bug #165966.
1464 2005-01-07  Tim Olsen  <tolsen@alum.mit.edu>
1466         * objects/UML/activity.c : add fill- and line-colour properties
1467         [applied by Hans Breuer, fixes bug #163260]
1469 2004-01-28  Hans Breuer  <hans@breuer.org>
1471         * doc/en/*.xml doc/en/dia.dbk app/authors.h : documentation
1472         update provided by Alan Horkan (fixes bug #159592)
1474 2004-01-28  Hans Breuer  <hans@breuer.org>
1476         [Extented version for UML to C++ conversion by Dave Klotzbach, bug #155255]
1477         * plug-ins/xslt/dia-uml2cpp.xsl : (new file) ... handles associataions,
1478         generalization, dependancies, parameterized classes ...
1479         * plug-ins/xslt/styleshetts.xml : refernce it
1480         * plug-ins/xslt/dia-uml.xsl : handle more UML types uesd above
1482 2004-01-28  Hans Breuer  <hans@breuer.org>
1484         * objects/UML/transition.c : fill out the extra_spacing struct 
1485         in the OrtConn member, in order to avoid artifacts when draggin 
1486         the transition. (patch by Peter Allin, bug #144956)
1488 2004-01-15  Hans Breuer  <hans@breuer.org>
1490         * plug-ins/cairo/diacairo.c : initialized the renderers default dash_length
1491         to something differnt than 0. Apparently there are case where Dia misses
1492         to appropriately set it before requesting a dashed line (simple line with
1493         arrow as described in bug #151716)
1495         * lib/dia_dirs.c : special casing for drive letters which I broke with
1496         the previous change
1498 2005-01-13  Hans Breuer  <hans@breuer.org>
1500         * app/interface.c(create_sheet_page) : remved dead long time code
1502         * lib/propdialogs.c : removed pdtpp_is_visible_no_standard() prototype,
1503         it is availbale via header - which is the better style anyway
1505 2004-12-31  Hans Breuer  <hans@breuer.org>
1507         * lib/dia_dirs.c(dia_get_canonical_path) : complete
1508         rewrite to handle something like /mnt/some/where/../else
1509         too. Workaround for bug #162637.
1510         * app/filedlg.c : call gtk_file_chooser_set_current_name()
1511         to workaround gtk_file_chooser_set_filename() not setting
1512         it if the file does not exist
1514         * sheets/Jackson.sheet.in app/menus.c : fixed typos
1515         (Frank Arnold, bug #161676)
1517 2004-12-31  Steffen Macke <sdteffen@gmail.com>
1519         * doc/pl/*.xml: Added XML prolog
1520         * makefile.msc: Added libxslt, fixed libxml, libart
1522 2004-10-29  Alexander Shopov  <ash@contact.bg>
1524         * configure.in (ALL_LINGUAS): Added "bg" (Bulgarian)
1526 2004-12-29  Lars Clausen  <lars@raeder.dk>
1528         * configure.in: Make gnomeprint be truly off by default (typo) and
1529         show optional compilation correctly.
1530         * plug-ins/gprint/Makefile.am: Exclude gnomeprint if not optioned in.
1532 2004-12-22  Hans Breuer  <hans@breuer.org>
1534         * lib/widgets.c : destroy handlers can be called more than once, 
1535         see http://developer.gnome.org/doc/API/2.0/gtk/gtk-changes-2-0.html
1537         * app/app_procs.c : #ifdef GLIB(2.6.0) but GTK(2.4.x)
1538         
1539         * app/display.c : temporary debug code showing the
1540         timing the rendering
1542         * app/dialibartrenderer.c(draw_string) : removed dead
1543         code loading and leaking font and face
1545 2004-12-15  Hans Breuer  <hans@breuer.org>
1547         * app/display.c : actually use the selction-changed signal for something
1548         useful. Show selections representation on statusbar.
1549         * lib/object.h lib/prop_text.c lib/libdia.def : provide objet_get_displayname() 
1550         * app/diagram_tree.c : use new function (as in app/display.c) and only
1551         poke into property internals at one place
1552         * app/diagram.c : use g_signal_handlers_block_by_func to avoid has-no-handler-
1553         complains
1555 2004-12-12  Hans Breuer  <hans@breuer.org>
1557         * lib/libdia.def app/dia.def : updated externals
1559         * objects/custom/custom_object.c : custom_destroy is called per object. 
1560         It _must not_ destroy class stuff (ShapeInfo) cause it does not hold a 
1561         reference to it. Fixes e.g. bug #158288, #160550, ...
1563         * objects/UML/association.c(association_draw) : completed porting to
1564         draw_polyline_with_arrows()
1565         (association_update_data_end) : fixed typo in point compare
1566         (association_update_data) : for name placement take degenerated 
1567         segements into account. Together this fixes bug #143891
1569 2004-12-11  Hans Breuer  <hans@breuer.org>
1571         * lib/widgets.c(set_size_sensitivity) : revert inverted
1572         logic for arrorw size selections, fixes bug #160527
1574 2004-12-11  Hans Breuer  <hans@breuer.org>
1576         * lib/widgets.c(dia_font_selector_set_font) : initialize
1577         the font style widget, too. Gets rid of empty font
1578         style and thus default broken font style, e.g. UML::class_name
1580         * lib/widgets.c(dia_color_selector_more_callback) : fill
1581         the color palette from dynamic menu entries and also
1582         preselect the current color to the last select entry
1583         
1584         * plug-ins/python/pydia-diagramdata.c : hold a reference
1585         to the underlying GObject
1586         
1587         * app/Makefile.am app/diagrid.h : new file containing the 
1588         grid 'class' moved from DiagramData to Diagram. 
1589         Also moved pagebreak_color and guides cause they are only 
1590         used for visual appearance not 'data'.
1591         * lib/diagramdata.[ch] app/diagram.h app/dia-props.c app/grid.c
1592           app/load_save.c plug-ins/python/pydia-diagramdata.c : reflect 
1593         the above change
1595         * lib/diagramdata.[ch] app/app_procs.c app/diagram.c 
1596           lib/libdia.def : get rid of new_diagram_data() 
1597         Diagram _is_ DiagramData (and does not have one any longer,
1598         just a compatibility pointer)
1599         
1600         * lib/diarenderer.h : a small doc improvement
1602 2004-12-11  Hans Breuer  <hans@breuer.org>
1604         * objects/UML/class.c : line wrapping code buffer
1605         overrun fixed by Gabor Simon, bug #160865
1607 2004-12-11  Hans Breuer  <hans@breuer.org>
1609         * plug-ins/python/pydia-diagram.c : hold a reference
1610         to the diagram in PyDiaDiagram, avoids bug #159080
1611         [another way to avoid is to detroy the dialog by
1612         clsoing it. But now there is still a diagram to
1613         apply the changes to, even if it's thrwon away just
1614         afterwards]
1616 2004-12-10  Hans Breuer  <hans@breuer.org>
1618         * **/*.c : fixed a bunch of warnings, not only for -ansi
1619         (still too many of them, but -ansi works)
1620         lib/
1621         prop_geomtypes.h prop_geomtypes.c:306: warning: static 
1622         declaration for `fontsizeprop_reset_widget' follows non-static
1623         dia_dirs.c:196: warning: return discards qualifiers from 
1624         pointer target type
1626         objects/custom/
1627         shape_info.c:121: warning: static declaration for `parse_path' 
1628         follows non-static
1630         objects/SADT/
1631         arrow.c:228: warning: `draw_arrowhead' declared `static' but never defined
1632         arrow.c:244: warning: unused variable `i'
1633         arrow.c:245: warning: unused variable `p'
1634         arrow.c:246: warning: unused variable `zzr'
1635         
1636         object/Istar/*.c object/Jackson/*.c  object/KAOS/*.c : 
1637         finally removed c++ comments
1638         
1639         objects/Istar/goal.c : initialize connections::directions
1640         while I was there - helps autorouting
1642         * objects/KAOS/metaandorrel.c objects/Istar/link.c 
1643           objects/KAOS/metabinrel.c : removed struct _DiaImage hack
1644         (it would be quite simple to add image-from-memory support
1645         to lib/ if needed)
1647         * pydia-*.h : warning: no newline at end of file
1648         
1649         * plug-ins/gprint/diagnomeprint.c : allow to unregister
1650         and follow new unique name naming convention
1651         * plug-ins/gprint/diagnomeprintrenderer.c : no c++ comments
1652         here either
1654 2004-12-07  Hans Breuer  <hans@breuer.org>
1656         * objects/UML/message.c : better default for initial text placement
1657         a suggested in bug #154306, Henning Mersch
1658         * objects/UML/constraint.c : doing the same
1660         * app/filedlg.c : include persistence.h for persistence_get_integer
1661         * lib/libdia.def export it
1663 2004-12-05  Hans Breuer  <hans@breuer.org>
1665         * app/grid.c : respect dynamic grid during snap-to, fixes 
1666         bug #135124, Dmitriy Morozov. Added some additional magic
1667         to make the grid size more useable.
1669 2004-12-05  Hans Breuer  <hans@breuer.org>
1671         * app/app_procs.c : make it compile for the HAVE_POPT and
1672         G_LIB_CHECK_VERSION(2,5,5) case, minor formating
1673         
1674         * lib/plug-ins.c : don't pass non exiting files to xmlDiaParseFile()
1675         * app/app_procs.c : only dia_pluginrc_write() and create_user_dirs()
1676         when interactive. Fixes bug #119329
1677           
1678         * plug-ins/cairo/diacairo.c : adapt to new type naming
1679         scheme (introduced by accident;-) for pixbuf-*
1680         * app/app_procs.c : reflect both type name changes
1682 2004-12-04  Hans Breuer  <hans@breuer.org>
1684         * objects/standard/image.c : fix the correct warning
1685         `image_file_name' might be used uninitialized
1686         
1687         * app/filedlg.c : near complete rewrite
1688         - removed 'related dialog', GtkOptionMenu, most global vars,
1689         also don't hide the dialog but let it go.
1690         - added: filter view by extension, hopefully working diagram
1691         referencing, GtkComboBox usage
1692         
1693         * plug-in/pixbuf/pixbuf.c : switched to dynamic generation
1694         of im/export filter entries. So the user interface reflects
1695         the dynamic nature of pixbuf loaders
1697         * lib/filter.[ch] : implement filter_unregister_*port
1698           lib/libdia.def : added new functions
1699           plug-ins/cgm/cgm.c plug-ins/dxf/dxf.c
1700           plug-ins/hpgl/hpgl.c plug-ins/metapost/metapost.c
1701           plug-ins/pstricks/pstricks.c plug-ins/svg/svg.c
1702           plug-ins/wpg/wpg.c plug-ins/xfig/xfig.c
1703           plug-ins/cairo/cairo.c plug-ins/pixbuf/pixbuf.c :
1704         use them in _plugin_unload () thus all these plug-ins
1705         can be loaded used and unloaded during Dia's runtime
1707 2004-12-04  Lars Clausen  <lars@raeder.dk>
1709         * lib/diagramdata.h: Access methods for units defined per diagram.
1711         * lib/font.c (dia_font_new_from_style): More proper object creation.
1713         * lib/properties.h: Refactored the PROP_STD_* macros to allow
1714         different options.
1716         * app/diagram.c (diagram_init): Force filename to be absolute
1717         path, easing the job for load/save.
1719 2004-12-03  Hans Breuer  <hans@breuer.org>
1721         * lib/libdia.def : removed dia_marshal_*, they are implemented as macros.
1722         added dia_font_set_height, dia_font_copy (note to self: don't try to
1723         maintain these from the *NIX side ;)
1725         * lib/widgets.h : removed DiaColorSelector::col, it is not maintained by
1726         the new color selection anymore
1727         * objects/UML/class_dialog.c : with the above change it would have been more 
1728         easy to fix the color loss bug #156996 which had nothing to do with 'a pointer
1729         problem' but only was an unfinished usage of dia_color_slector(get|set)_color
1731         *  objects/UML/class_dialog.c  objects/UML/class.[ch] : uml_apply_properties
1732         (used in object vtable) and make its prototype match
1734         * lib/widgets.c : made all the GtkTypeInfo 'static const'. I can't directly
1735         correlate any of these strange crashing bug with it, but assume bad things to 
1736         happen when one passes stack allocated stuff to gtk_type_unique()
1738         * lib/widgets.c(dia_font_selector_get_font) : don't access menuitem if it is
1739         not there. Fixes most of the warnings from bug #156996
1741         * lib/makefile.msc : rules to generate diamarshal.[ch]
1743 2004-11-29  Hans Breuer  <hans@breuer.org>
1745         * app/disp_callbacks.c : reenable so-called preedit
1746         as described in bug #158859, Etsushi Kato
1747         Also fixed some compiler warnings while there.
1748         
1749         * objects/standard/image.c(get_directory) : make
1750         the documentation match the implementation.
1751         (image_save) : don't write a leading slash on 
1752         relative filenames 
1754         * plug-ins/gprint/diagnomeprintrenderer.c :
1755         switched to gnome-print-pango usage
1756         
1757         * app/app_procs.c configure.in : although Dia
1758         is not threaded it appears as if we have to
1759         g_thread_init() to avoid crashing in some
1760         libraries which are thread enabled
1762         * lib/diamarshal.list lib/Makefile.am : start of
1763         using GSignal to clean up some object relations
1764         * lib/libdia.def : export marshallers
1765         * app/diagram.[ch] : emit signals when REMOVED,
1766         SELECTION_CHANGED
1767         * app/display.c : added a connection to 
1768         SELECTION_CHANGED to test the new signal stuff
1769         
1770         * app/diagram.c : fixed diagram_finalize while I
1771         was there.
1773 2004-11-28  Hans Breuer  <hans@breuer.org>
1775         * plug-ins/wmf/wmf.cpp(draw_string) : write the widechar version of 
1776         the text if conversion to current locale fails. [This is actually
1777         using code written four years ago;]
1778         * plug-ins/wmf/wmf_gdi.(h|cpp) : added TextOutW (no real implemantation)
1780         * objects/standard/image.c(image_load) : be more robust against 
1781         filenames which seem to be absolute
1783 2004-11-27  Hans Breuer  <hans@breuer.org>
1785         * app/filedlg.c(file_save_callback) : convert to
1786         filename encoding before passing to diagram_save()
1787         Fixes bug #158381, thanks to Robert Ögren
1789 2004-11-27  Hans Breuer  <hans@breuer.org>
1791         * lib/dialibartrenderer.c : sometimes its good to read
1792         compiler warnings. Not only define renderer_finalize
1793         but actually *use* it. Should plug a potential huge
1794         memory leak.
1796         * configure.in plug-ins/Makefile.am 
1797           plug-ins/gprint/Makefile.am : build the experimental
1798         gnomeprint plug-in on *NIX, too.
1799         * plug-ins/gprint/diagnomeprint.c : don't include
1800         specific (private) backend headers but instead select
1801         the desired backend via config key setting
1803         * lib/diagdkrenderer.c : add 1 to size of filled arc 
1804         to be rendered by gdk. Fixes bug #150896.
1806         * plug-ins/gprint/diagnomeprint.c 
1807           plug-ins/gprint/diagnomeprintrenderer.c : added magic
1808         to better match page and dash sizes
1810 2004-11-27  Hans Breuer  <hans@breuer.org>
1812         * plug-ins/shape/shape-export.c : it's g_strdup_printf
1814 2004-11-27  Hans Breuer  <hans@breuer.org>
1816         * app/app_procs.c : mention eps-builtin aka. "using
1817         latin1", does not fix the eps-pango issues but #150571
1819 2004-11-27  Hans Breuer  <hans@breuer.org>
1821         * sheets/Cybernetics.sheet.in : changed encoding to 
1822         utf-8, patch from Takeshi AIHANA, fixes #149580
1824 2004-11-27  Hans Breuer  <hans@breuer.org>
1826         * objects/custom/custom_object.c : many existing shapes
1827         rely on a square default size, revert to it although
1828         it originally was by a typo. Fixes bug #148527.
1830 2004-11-27  Hans Breuer  <hans@breuer.org>
1832         * app/load_save.c(dia_cleanup_autosave) 
1833           app/diagram.c : don't use dia->filename if already 
1834         freed and dont use printf at all.
1836         * app/paginate_psprint.c : not only set the renderer::paper
1837         but also renderer::is_portrait. Should fix bug #142524
1839 2004-11-26  Hans Breuer  <hans@breuer.org>
1841         * dia.desktop.in : added Bug Buddy headers (as seen
1842         in planner). Hopefully the automatically filling of
1843         bugs is more meaningful by this.
1844         
1845         * objects/custom/custom_util.c objects/standard/image.c
1846           lib/plug-ins.c : getting rid of deprecated g_dirname,
1847         fixes some more memory bugs : AddrAddress 0x3586C010 is 24 
1848         bytes inside a block of size 44 free'd
1849         
1850         * lib/persistence.c(persistence_load_list) : don't
1851         leak string
1852         
1853         * lib/diaerror.[ch] : (new file) start of better error handling
1854         * lib/Makefile.am lib/makefile.msc lib/libdia.def: 
1855         added new files/funcs
1856         * lib/proplist.c lib/propinternals.h (prop_list_load) : 
1857         allow to propagate error to caller. Also set PXP_NOTSET
1858         to avoid applying unset properties, fixes bug #155255
1859         * lib/propobject.c lib/prop_sdarray.c : still spewing
1860         g_warnings but now with context information
1861         
1862         * app/filedlg.c : more absolute filenames where required
1863         and strip them where we need the filename only
1864         Also explicit DONT choose gnome-vfs backend cause its
1865         threading appears to crash Dia - at least in GNOME build,
1866         see bug #159558
1868 2004-11-26  Hans Breuer  <hans@breuer.org>
1870         * app/filedlg.c : don't use relative filenames for
1871         gtk_file_chooser_set_filename(), GtkFileChooserDialog is very
1872         pedantic about it.
1873         (export_set_extension) : if we don't have a filename don't
1874         use it in strrchr() to avoid crashing
1875         
1876 2004-11-23  Hans Breuer  <hans@breuer.org>
1878         * app/app_procs.c : fixed build for the GNOME case
1879         (let's rip out POPT and depend on glib-2.6, please ;-)
1881 2004-11-23  Hans Breuer  <hans@breuer.org>
1883         * app/app_procs.c : fixed typo which broke the
1884         build for HAVE_POPT case
1885         
1886 2004-11-21  Hans Breuer  <hans@breuer.org>
1888         * app/app_procs.c : some more #if-mess, but one day
1889         we should rely on GLib's 2.6 Option Parser alone
1890         
1891         * plug-ins/wmf/wmf.cpp : use SC() when scaling width
1892         and height for RoundRect() - otherwise size depends on offset,
1893         shorten the unique name
1894         
1895         * plug-ins/python/diamodule.c : provide a unique name
1896         for python filters as well
1898         * lib/dialibartrenderer.c : fix the drawing of Gdk based text
1899         by using the right colors (need black background cause we
1900         are tinitng it with the real color later)
1902         * lib/dia_dirs.c(dia_get_canonical_path) : use G_DIR_SEPARATOR_S
1903         instead of hardcoded slahes, improved portability 
1905         * app/paginate_gdiprint.cpp : use the right filter name to find wmf
1906         plug-in. Also added some more error reporting (e.g. no printer driver)
1908         * plug-ins/gprint/diagnomeprintrenderer.[hc] plug-ins/gprint/diagnomeprint.c
1909           plug-ins/makefile.msc : resurrection of the gnome print renderer. 
1910         Kinda works (alpha quality) for export but does not print yet. 
1911         With bug #158972 resolved this does even work on win32 :-)
1913 2004-11-07  Hans Breuer  <hans@breuer.org>
1915         * doc/diagram.dtd : <composite> can have <composite/>,
1916         <font/> has two 'optional' atributes 'style' and 'family',
1917         these are used to store new (since 0.91) font info.
1918         With this changes non of the issues in bug #147431 remains.
1920         * plug-ins/python/otypes.py : starting to implement an
1921         'create all known object' file as ne stress test source
1922         for the dtd and Dia in general.
1924 2004-11-06  Hans Breuer  <hans@breuer.org>
1926         * app/diapsrenderer.c : don't convert to locale but to 
1927         "LATIN1", fixes bug #146641
1929 2004-11-06  Hans Breuer  <hans@breuer.org>
1931         * app/diagram_tree.c : still no C99 everwhere ...
1932         * lib/libdia.def : update externals
1933         * plug-ins/pstricks/render_pstricks.c : #include <locale.h>
1935         * app/app_procs.[hc] : declare, use ...
1936            app/winmain.c : ... and implement dia_redirect_console().
1937         Even though newer Gtk version don't popup a console window
1938         anymore redirecting the error messages to a file in $TEMP appears
1939         to be much more reasonable than just ignoring it. Fixes bug #150777
1940         based on a patch from Steffen Macke
1942 2004-11-06  Hans Breuer  <hans@breuer.org>
1944         * plug-ins/wmf/wmf.cpp plug-ins/wmf/wmf_gdi.* : added/used
1945         RoundRect() for high level renderer api implementation thus
1946         fixing bug #138744 reported by Lars Clausen
1948 2004-11-06  Hans Breuer  <hans@breuer.org>
1950         * app/prefernces.c : applied patch to make showing the diagram 
1951         menubar the default (advanced users know how to switch it off)
1952         Fixes bug #150706, Steffen Macke
1954 2004-11-06  Hans Breuer  <hans@breuer.org>
1956         * app/commands.c app/commands.h : added view_fullscreen_callback()
1957           view_unfullscreen()
1958           app/menus.c : use it (/View/Fullscreen) thus fixing bug #94090
1959         * app/disp_callbacks.c : use view_unfullscreen() for GDK_Escape
1960         ALso modified to allow handling of unmodified keys again (aren't
1961         there plenty of bug reports for this?
1963 2004-11-06  Hans Breuer  <hans@breuer.org>
1965         * objects/UML/class_dialog.c : fixed casts for usage
1966         of dia_color_selector_set_color()
1967         
1968         * app/filedlg.c : pass a valid filenames to 
1969         gtk_file_chooser_set_filename(), if we don't have a name
1970         don't call it at all. Gets rid of "libgnomevfs-CRITICAL **: 
1971         file gnome-vfs-utils.c: line 749 (gnome_vfs_get_uri_from_local_path): 
1972         assertion `local_full_path[0] == '/'' failed"
1973         
1974 2004-11-06  Lars Clausen  <lars@raeder.dk>
1976         * app/properties.c (create_dialog): 
1977         * app/diagram_tree_window.h: 
1978         * app/diagram_tree.h (HIDDEN_TYPES_NAME): 
1979         * app/diagram_tree_menu_callbacks.c: 
1980         * app/diagram_tree_window.c: 
1981         * app/diagram_tree_menu.c: 
1982         * app/diagram_tree.c: Changed to use persistence instead of
1983         strange hacks in preferences.
1985         * lib/persistence.h:
1986         * lib/persistence.c (persistent_list_get_glist): Don't deref null
1987         pointer.  New function persistent_list_remove_all, and
1988         fixed persistent_list_remove to ... work!
1990 2004-11-05  Lars Clausen  <lars@raeder.dk>
1992         * app/paginate_psprint.c (diagram_print_ps): Call
1993         diagram_print_destroy on destroy rather than delete_event.  That
1994         way the gtk_widget_destroy() calls cleans up properly.  Fixes bug
1995         #154898. 
1997 2004-11-02  Lars Clausen  <lars@raeder.dk>
1999         * objects/UML/class.c (umlclass_load): Actually load the saved
2000         fonts and font sizes. Fixes bug #157016
2002         * configure.in: Require at least GTK+ 2.4.
2004         * app/filedlg.c: Changed to use 2.4 file dialog!  Finally,
2005         finally, finally.  Not quite bulletproof yet, and I need to figure
2006         out a minimum version of Gtk that doesn't spew warnings all over.
2008         * app/diagram.[ch]: diagram_set_filename with const filename.
2010         * app/sheets_dialog_callbacks.c
2011         (on_sheets_dialog_button_apply_clicked): Sheet menu now almost
2012         correctly recreated.  Still something fishy with the sheet menu in
2013         the dialog after adding a new sheet.  Probably the sheet name
2014         being stomped.
2016 2004-11-01  Lars Clausen  <lars@raeder.dk>
2018         * lib/widgets.[ch] (dia_dynamic_menu_reset): Harden against memory
2019         stmping.  Now requires g_free here and there.
2021         * app/preferences.[ch] (prefs_data): Got rid of hidden prefs value
2022         for remembering last sheet, better off as persistent string.  Must
2023         hunt down other things like that.
2025         * app/interface.c (create_sheets): Now remembers last sheet
2026         selected again. Fixes bug #157036.
2028 2004-11-01  Hans Breuer  <hans@breuer.org>
2030         * plug-ins(tex_escape_string) : fixed it [g_utf8_next_char
2031         will never become NULL but only point to the next char
2032         which might indeed be \0]
2033         Use tex_escape_string() to avoid writing invalid tex,
2034         fixes bug #112377
2036         * **/* : a bunch of changes caused by trying 'make distcheck'
2037         which still fails, see Bug #144527
2039 2004-10-31  Lars Clausen  <lars@raeder.dk>
2041         * plug-ins/pstricks/render_pstricks.c (export_pstricks): Avoid
2042         floating point numbers being printed with commas.  Fixes bug
2043         #156148.
2044         
2045         * app/interface.c (create_sheet_dropdown_menu): New function to
2046         create the sheet menu, and also allow recreation.  Still buggy and
2047         slightly prone to magic.
2049         * objects/UML/class_dialog.c
2050         (attributes_list_selection_changed_callback): Don't try to update
2051         the widgets after they're destroyed.  Fixes bug #156706 (I think).
2053         * lib/widgets.c (dia_unit_spinner_new): Avoid crash on NULL
2054         adjustement.  Fixes bug #154637
2056         * sheets/ER/Makefile.am (PIX): 
2057         * sheets/GRAFCET/Makefile.am (PIX): 
2058         * sheets/Jackson/Makefile.am (PIX): 
2059         * sheets/Istar/Makefile.am (PIX): 
2060         * sheets/KAOS/Makefile.am (PIX): Actually install PNG instead of
2061         XPM.  Why these have their pictures in sheets rather than shapes I
2062         don't know.  Fixes bug #152142.
2064 2004-10-31  Hans Breuer  <hans@breuer.org>
2066         * plug-ins/pixbuf/pixbuf.c : when running non interactive
2067         Dia won't call color_init() as it assumes no display. If
2068         we have one as tested ourselve we can as well color_init()
2069         to avoid g_warnings() and produce the right collors.
2070         Fixes bug #155495.
2071     
2072         * app/app-procs.c : try to be a little more helpful
2073         and correct with regard to the command line options.
2074         Renamed --export-to-format to --export-filter and some
2075         other string changes
2077 2004-10-31  Hans Breuer  <hans@breuer.org>
2079         * plug-ins/wmf/wmf_gdi.cpp plug-ins/wmf/wmf_gdi.h :
2080         added GetDeviceCaps() dummy implementation to make 
2081        'wmf' compile on Linux, too.
2083 2004-10-31  Hans Breuer  <hans@breuer.org>
2085         * plug-ins/wmf/wmf.cpp : patch from Robert Ögren <gtk@roboros.com>
2086         to finally fix the long lasting clipping issue, bug #85831
2087         Also fixed the line style issue for printing on XP and don't 
2088         miss to ReleaseDC()
2090         * plug-ins/wmf/wmf_gdi.[hc] : added ReleaseDC()
2092         * plug-ins/python/diasvg.py : filter illegal characters from <text/> section
2093         (e.g. &lt; instead of <), fixes bug #155697 (Duncan Palmer)
2095         * plug-ins/python/pydia-error.[hc] : improvede exception handling to transfer 
2096         some info from the console (soon gone on windoze) to message_error()
2097         * plug-ins/python/pydia-render.c plug-ins/python/diamodule.c : use it.
2098         Also some setlocale() hack to let Python behave as expected for LC_NUMERIC
2100         plug-ins/python/diasvg_import.py : re.compile() only once per expression
2101         and some more playing with scaling
2103         * plug-ins/python/makefile.msc : updated
2105 2004-10-30  Hans Breuer  <hans@breuer.org>
2107         * shapes/Civil/civil_arrow_right.shape : removed
2108         <aspectratio type="fixed" /> thus allowing to change
2109         width and height independently, fixes #154897 
2110         (Serge Robinson) by making it consistent with the
2111         up arrow
2113 2004-10-30  Hans Breuer  <hans@breuer.org>
2115         * plug-ins/xfig-xfig-export.c(hasArrow) : don't crash
2116         on arrow being NULL, fixes bug #143063
2118 2004-10-30  Hans Breuer  <hans@breuer.org>
2120         * lib/diagramdata.c app/diagram.c app/disp_callbacks.c
2121           plug-ins/python/pydia-diagram.c plug-ins/python/pydia-diagramdata.c :
2122         removed use of chached variable DiagramData::selected_count
2123         * lib/diagramdata.h : renamed to selected_count_private
2124         (kept for binary compatibility and sanity checks)
2125         * lib/diagramdata.c : more checks on a screwed up selection list
2127         * app/diagram.c(diagram_group_selected) : don't screw up the
2128         DiagramData::selected list, was assignment of parent_list_affected(),
2129         * lib/diagramdata.c (data_select, data_unselect) : protect against
2130         multiple selections of the same object and removement of a not selected
2131         object (apparently caused by the recently added group undo stuff)
2132         together with the above this finally fixes bug #153525
2134         * app/Makefile.am : fix ./autogen.sh ->
2135         app/Makefile.am:171: blank line following trailing backslash
2137         * app/commands.c(objects_group_callback,objects_ungroup_callback) :
2138         ddisplay_do_update_menu_sensitivity() here as well
2140         * configure.in : make the experimental state of the cairo plug-in
2141         more visible
2142         
2143         * app/dia-props.c(diagram_properties_update_sensitivity) : don't
2144         try to update anything if we can't find an active diagram
2145         Additionally set static dialog pointer to NULL by gtk_widget_destroyed
2146         
2147         * configure.in : another attempt to fix bug #156116. If there is
2148         anyone with autotools knowledge reading this - help appreciated ;-)
2150 2004-10-30  Hans Breuer  <hans@breuer.org>
2152         * objects/makefile.msc objects/UML/Makefile.am
2153           objects/UML/uml.c objects/UML/transition.c 
2154           objects/UML/pixmaps/transition.xpm sheets/uml.sheet.in : 
2155         Patch from Peter Allin adds statechart transitions to the UML sheet -
2156         bug #144956 - modified to not print("%s", NULL) which crashes on
2157         newer glib versions. Also added pixmap/transition.xpm to Makefile.am
2159 2004-10-30  Hans Breuer  <hans@breuer.org>
2161         * doc/sheet.dtd doc/diagram.dtd : the namespace does *not* 
2162         match the website anymore, i.e. sould remain unchanged. 
2163         See below and lib/dia_xml.h for the reasoning
2165         * lib/libdia.def : removed dia_color_selector_get_type
2167         * lib/dia_image.c(dia_image_load) : check for pixbuf warnings
2168         (like broken PNG) and g_warning if appropriate
2170         * app/interface.c : #include "message.h"
2172         * app/diaunitspinner.hc : replaced the superfluous #if-0-juggling,
2173         used #error "Moved to lib/widgets.[hc]" instead (IMO it would be
2174         better to just move diaunitspinner to lib/ instead of polluting
2175         widgets.[hc] even more ;)
2176         * app/makefile.msc lib/libdia.def : updated
2178         * app/filedlg.c : patch from gtk@roboros.com, fixes #156224
2179         * app/app_procs.c : patch from gtk@roboros.com, fixes #156088
2181         * config.h.win32 : #define HAVE_CAIRO to let the Cairo plug-in
2182         do something useful when compiled
2184         * plug-ins/cairo/diacairo.c : added 'PNG with alpha' rendering.
2185         Also some more #ifdefed backends usage.
2187 2004-10-10  Lars Clausen  <lars@raeder.dk>
2189         * lib/widgets.c: Better labels for color selector menu.
2191         * app/dia-props.c (diagram_properties_respond): 
2192         * app/preferences.c (prefs_get_value_from_widget): Don't assume
2193         that a dia color selector is of type DiaColorSelector:)
2195         * lib/widgets.[ch]: Color selector changed to dynamic menu.
2197         * lib/prop_attr.c (colorprop_set_from_widget): Don't assume
2198         DiaColorSelector. 
2200 2004-10-09  Lars Clausen  <lars@raeder.dk>
2202         * lib/diaarrowchooser.c (dia_arrow_preview_init): Slightly wider
2203         arrow preview to avoid long arrow heads flipping.
2205         * lib/arrows.[ch]: Support for getting from name to arrow type,
2206         and for listing all arrow names.
2207         
2208         * lib/widgets.[ch]: Changed arrow selector to use dynamic menu.
2210         * lib/libdia.def: Added new global functions.
2212         * lib/persistence.[ch]: Two of the persistent_list functions to
2213         return whether the item was found in the list.
2215         * app/interface.c (create_sheets): Use DiaDynamicMenu to handle
2216         the growing number of sheets.
2218         * lib/widgets.[ch]: Add DiaDynamicMenu as a generalization of the
2219         font menu.
2221 2004-10-05  Lars Clausen  <lars@raeder.dk>
2223         * objects/UML/association.c: Patch from Harvey Thompson
2224         <harveyandsu@yahoo.com>:  Better placement of association texts.
2226 2004-10-03  Lars Clausen  <lars@raeder.dk>
2228         * lib/widgets.c (dia_font_selector_add_menu_item): Make font menu
2229         use the fonts in question.  Can't set tooltips with the name since
2230         lib objects don't know the tool_tips thing, which is rather
2231         app-related.
2233 2004-09-19  Hans Breuer  <hans@breuer.org>
2235         * plug-ins/xslt/*.xsl : s/apply-templates match/apply-templates select/
2236         fixes bug #148278, carlosrp@idea.com.py (Carlos Ra�l Perasso)
2238 2004-09-19  Hans Breuer  <hans@breuer.org>
2240         * dia.desktop.in : string changes as proposed in bug #151822
2241         
2242         * lib/Makefile.am : remove -module from libdia_la_LDFLAGS,
2243         appearts not to be needed on Linux and breaks the build 
2244         on OSX. Fixes bug #152970
2245         
2246 2004-09-18  Lars Clausen  <lars@raeder.dk>
2248         * app/commands.c (view_show_all_callback): Add a bit of border
2249         around Ctrl-E'd diagram, for easier select and better view of edges.
2251 2004-09-19  Hans Breuer  <hans@breuer.org>
2253         * app/Makefile.am : trying to fix the fix from 2004-02-15
2254         Overwriting AM_LDFLAGS still gave a automake warning and it 
2255         also appeard to break linking against gtklibs in a differnt 
2256         prefix. Use dia_LDFLAGS instead.
2258         * plug-ins/svg/svg-import.c : initialize 'end' before usage
2259         patch from dcbw@redhat.com (Dan Williams), fixes bug #150548
2260         
2261         * lib/diarenderer.c : don't try to draw lines which are so much 
2262         degenerated that their point count became negative, fixes bug #148139
2263         
2264         * lib/font.c(layout_cache_equals) : don't crash on nonexisting 
2265         strings (NULL from g_strdup()) 
2267 2004-09-10  Steffen Macke <sdteffen@web.de>
2269         * lib/libdia.def: added color_new_rgb(), focus_previous(),focus_next(),
2270         give_focus(),give_focus_to_object(),remove_focus(),reset_foci()
2271         * app/create_object.c:
2272         * app/diaunitspinner.c:
2273         * app/disp_callbacks.c:
2274         * app/makefile.msc:
2275         * app/modify_tool.c:
2276         * lib/prop_geomtypes.c:
2277         * lib/prop_geomtypes.h: made compile with msvc
2279 2004-09-10  Lars Clausen  <lars@raeder.dk>
2281         * lib/widgets.c: Insulate conversion from outside API by adding
2282         internal function to set value.  Adjustment not appropriate for
2283         units yet.
2285         * lib/prop_geomtypes.c (lengthprop_get_widget): Remove debug info
2287 2004-09-07  Lars Clausen  <lars@raeder.dk>
2289         * app/diapagelayout.c: Include from widgets.c rather than
2290         diaunitspinner.
2292 2004-09-03  Lars Clausen  <lars@raeder.dk>
2294         * objects/standard/box.c: Use PROP_TYPE_LENGTH for corner_radius
2295         as unit-based property testbed.
2297         * lib/prop_geomtypes.c (lengthprop_reset_widget): Implement length
2298         and fontsize widgets. 
2300         * app/Makefile.am (dia_core_files):
2301         * app/diaunitspinner.h: 
2302         * app/diaunitspinner.c: 
2303         * lib/widgets.h: 
2304         * lib/widgets.c (dia_unit_spinner_update): Move diaunitspinner to
2305         lib/widgets.[ch], as it's used in the properties code now.
2307 2004-08-31  Steffen Macke <sdteffen@web.de>
2309         * doc/en/usage-objects-basic.xml: Mentioning supported image formats.
2311 2004-08-30  Lars Clausen  <lars@raeder.dk>
2313         * app/textedit.c: 
2314         * app/diagram.c (diagram_remove_all_selected): Remove debugging
2315         information. 
2317         * lib/color.[ch]: 
2318         * app/undo.c: 
2319         * app/disp_callbacks.c: 
2320         * app/Makefile.am: 
2321         * app/create_object.c: 
2322         * app/textedit.[ch]: 
2323         * app/modify_tool.c: 
2324         * app/diagram.c: 
2325         * lib/text.c: 
2326         * lib/focus.[ch]: Change in focus mechanism to allow highlight of
2327         current input object, multiple inputs per object, and tabbing
2328         between objects.
2330 2004-08-28  Steffen Macke <sdteffen@web.de>
2332         * makefile.msc: added bs to ALL_LINGUAS; adjusted .mo file creation to
2333         allow separate installer component "Translations"
2335 2004-08-27  Akagic Amila  <bono@linux.org.ba>
2337         * configure.in: Added 'bs' to ALL_LINGUAS.
2339 2004-08-26  Steffen Macke <sdteffen@web.de>
2341         * app/makefile.msc: using /subsystem:windows again
2342         * makefile.msc: updated ALL_LINGUAS
2344 2004-08-21  Kjartan Maraas  <kmaraas@gnome.org>
2346         * configure.in: Add «nb» to ALL_LINGUAS.
2348 2004-08-21  Steffen Macke <sdteffen@web.de>
2350         * plug-ins/dxf/dxf-export.c: Patch from 
2351         Takeshi Hamasaki <hma@syd.odn.ne.jp>, fixes text alignment
2353 2004-08-17  Lars Clausen  <lars@raeder.dk>
2355         * config.h.win32: 
2356         * dia.spec (Release): 
2357         * doc/pl/dia.xml: 
2358         * doc/en/dia.xml: 
2359         * NEWS: 
2360         * configure.in: 
2362 2004-08-13  Ankit Patel <ankit@redhat.com>
2364         * configure.in: Added "gu" in ALL_LINGUAS.
2366 2004-08-07  Lars Clausen  <lars@raeder.dk>
2368         * configure.in:
2369         * config.h.win32: 
2370         * doc/pl/dia.xml: 
2371         * doc/en/dia.xml: 
2372         * dia.spec (Release): 
2373         * NEWS: New release 0.94-pre6
2375 2004-08-07  Lars Clausen  <lars@raeder.dk>
2377         * app/highlight.c (highlight_reset_objects): Unhighlight inside
2378         groups as well.
2380         * app/load_save.c: 
2381         * plug-ins/shape/shape-export.c: String capitalization fix from
2382         Alan Horkan <horkana@tcd.ie>
2384         * objects/UML/class.c (umlclass_show_comments_callback): Make UML
2385         Class object menu kinda work, rather than blow up.  Doesn't do a
2386         proper undoable change yet.
2388 2004-08-06  Lars Clausen  <lars@raeder.dk>
2390         * app/filedlg.c (file_save_as_callback): Don't remove related
2391         dialogs from the NULL diagram.
2393 2004-08-02  Lars Clausen  <lars@raeder.dk>
2395         * config.h.win32: 
2396         * doc/pl/dia.xml: 
2397         * doc/en/dia.xml: 
2398         * dia.spec (Release): 
2399         * NEWS: Pre5 with leak fix.
2401         * lib/font.c (dia_font_build_layout): Don't try to save an
2402         allocation of LayoutCacheItem if it breaks layout cache hash.
2403         Also make hash function correct, remove explicit height entry
2404         (it's in pfd), and make sure things are correctly unreffed.
2405         Finally fixes #148141.
2407         * lib/text.c (text_set_attributes, text_set_font): Safely unref
2408         when changing font, and actually set the new font in
2409         text_set_font(!).
2410         (text_get_attributes): Ref copied font.
2412 2004-08-01  Lars Clausen  <lars@raeder.dk>
2414         * NEWS: 
2415         * configure.in: 
2416         * dia.spec (Release): 
2417         * config.h.win32: 
2418         * doc/pl/dia.xml: 
2419         * doc/en/dia.xml: Prerelease 4.
2421         * lib/font.c (dia_font_build_layout): Better comparision and
2422         freeing of font cache.
2424 2004-07-31  Lars Clausen  <lars@raeder.dk>
2426         * lib/font.c (dia_font_build_layout): Faster update to avoid
2427         memory leaks.
2429         * app/app_procs.c: Fix from Tom Parker <palfrey@bits.bris.ac.uk>:
2430         Correctly initialize export filter variable.
2432 2004-07-25  Lars Clausen  <lars@raeder.dk>
2434         * dia.spec (Release): 
2435         * configure.in: 
2436         * NEWS: 
2437         * config.h.win32: 
2438         * doc/en/dia.xml: 
2439         * doc/pl/dia.xml: Pre3 coming out.
2441         * lib/diarenderer.c (draw_polygon): 
2442         * plug-ins/dxf/dxf-export.c (export_dxf): Two fixes by Takeshi
2443         Hamasaki <hma@syd.odn.ne.jp>: Correct header to be a 0 (zero)
2444         rather than O (letter), and assert num_points > 1 rather than the
2445         other way around.
2447         * app/recent_files.c: 
2448         * app/filedlg.c: 
2449         * app/diagram.c: 
2450         * app/app_procs.c: Patch from Vitaly Lipatov <lav@altlinux.ru>:
2451         Make filenames conform to filesystem encoding.
2453         * RDP/.cvsignore: Added standard ignore.
2454         
2455         * shapes/network/Makefile.am (SHAPES): Use PNG instead of XPM for
2456         last entry patch-panel, too.
2458         * app/*.png:
2459         * shapes/Circuit/*.png:
2460         * shapes/Civil/*.png:
2461         * shapes/Contact/*.png:
2462         * shapes/Electric/*.png:
2463         * shapes/MSE/*.png:
2464         * shapes/Pneumatic/*.png:
2465         * shapes/SDL/*.png:
2466         * shapes/flowchart/*.png:
2467         * shapes/jigsaw/*.png:
2468         * shapes/network/*.png:
2469         * shapes/sybase/*.png:
2470         * samples/dia*.png:
2471         * dia_gnome_icon_large.png:
2472         * doc/pl/graphics/*.png: Set -kb for PNGs.
2473         
2474         * sheets/{ER,GRAFCET,Istar,Jackson,KAOS}: Added .png files.
2476 2004-07-22  Lars Clausen  <lars@raeder.dk>
2478         * NEWS: 
2479         * config.h.win32: 
2480         * doc/en/dia.xml: 
2481         * doc/pl/dia.xml: 
2482         * dia.spec (Release): 
2483         * configure.in: Update to version 0.94-pre2.
2485         * app/load_save.c (diagram_data_write_doc): Use new namespace
2486         here, too.
2488         * lib/object.h (OBJECT_COMMON_PROPERTIES): Remove 'Dia' from
2489         hidden objects properties.
2491         * objects/standard/line.c: Remove halffinished line gap box from
2492         properties list.
2494         * app/paginate_psprint.c: 
2495         * app/filedlg.c: Patch from kimmidi@novell.com (Kiran Kumar
2496         Immidi): Close export and print dialog with diagram as well.
2497         (#129520)
2498         
2499         * lib/diaarrowchooser.[ch]: Patch from pborelli@katamail.com (paolo
2500         borelli):  Remove deprecated stuff (#137693)
2502         * app/dia-props.c (create_diagram_properties_dialog): Patch from
2503         kimmidi@novell.com (Kiran Kumar Immidi):  Close properties dialog
2504         on destroy.
2506 2004-07-21  Ray Strode  <rstrode@redhat.com>
2508         * dia/dia.desktop.in: Add MimeType line to desktop file
2509         new mime sytem.
2511 2004-07-18  Hans Breuer  <hans@breuer.org>
2513         * shapes/(Circuit|Contatct|MSE|network|Pneumatic|SDL|sybase)/Makefile.am 
2514           sheets/UML/*.png : icons in png format
2515         Partial fixup of stuff broken with the following comment:
2516         "7 days : xpm->png, namespace fix, first rotation bits."
2518         * app/load_save.c(read_objects) : don't add objects to the layer.
2519         This function is called recursively and only the topmost objects
2520         belong in the layers object list. Fixes bug #145417 and is the
2521         the real fix for bug #142480
2522         
2523         * app/app_procs.c : make the --size hack even uglier, but work again
2524         
2525         * lib/dia_dirs.c(dia_get_absolute_filename) : must not free()
2526         but g_free() what is returned by g_build_filename()
2527         
2528         * objects/custom/custom_object.c(custom_destroy) : handle all enum
2529         values in switch to get rid of the warning
2530         
2531         * objects/custom/shape_info.c : use g_ascii_strtod(), get rid 
2532         of setlocale()/strtod()
2533         * lib/dia_svg.c : dito
2534         * lib/dia_xml.c : almost
2536         * plug-ins/python/group_props.py : use the string representation of 
2537         value to ensure "unique values". If the strings would not be different
2538         the user cann't see the difference either
2540 2004-07-17  Lars Clausen  <lars@raeder.dk>
2542         * lib/persistence.h: Have "void" in prototypes (#142663)
2544         * lib/widgets.c (dia_font_selector_init): Better string handling
2545         (#142663) 
2547         * lib/persistence.c (persistence_save_type): Small fixes (#142663)
2549         * objects/standard/image.c (image_load): Use path of diagram
2550         rather than running directory as base for image file place.
2552         * doc/{diagram,sheet}.dtd: Move DTD namespace to new site, and
2553         syntactic fixes. 
2554         
2555         * app/disp_callbacks.c (ddisplay_canvas_events): Patch from
2556         Ambrose Li <a.c.li@ieee.org>:  Better IM context handling.
2558         * Re-added new sample diagrams binarily.
2560 2004-07-17 Sagar Rastogi <rastogi@students.iiit.net>
2562         * app/disp_callbacks.c: Fixed #144962 (also in KNOWN_BUGS),
2563         Disabled keyboard accels when dragging an object.       
2565 2004-07-14  Lars Clausen  <lars@raeder.dk>
2567         * app/grid.c (snap_to_grid): Use diagrams grid setting to
2568         determine hex grid snap.
2570         * doc/pl/Makefile.am: Avoid error based on backslash in comment.
2571         
2572         * app/interface.h: Avoid multiply defined symbols (#147396)
2574 2004-07-10  Lars Clausen  <lars@raeder.dk>
2576         * app/sheets_dialog_callbacks.c (write_user_sheet): 
2577         * lib/sheet.c (load_register_sheet): Don't introduce double
2578         slashes in namespace.
2580         * lib/dia_xml.h (DIA_XML_NAME_SPACE_BASE): Keep consistent with
2581         old diagrams, or XSLT will barf all over.
2582         
2583         * shapes/RDP/place.shape: 
2584         * shapes/RDP/transition.shape: 
2585         * shapes/RDP/Makefile.am: Added .png entries to SHAPES and changed
2586         shapes to use those.
2588 2004-07-07  Lars Clausen <lars@raeder.dk>
2590         * config.h.win32: 
2591         * doc/{en,pl}/dia.xml: 
2592         * dia.spec: 
2593         * configure.in: 
2594         * NEWS: First prerelease of version 0.94.  Now with release
2595         versions in a branch and main devel in the trunk.
2597 2004-07-05  Hans Breuer  <hans@breuer.org>
2599         * */*.[hc] */*/*.c : a bunch of changes to make Dia compile with
2600         -std=c89. Mostly //-comments and M_PI -> G_PI
2601         [Istar, Jackson, KAOS were removed from build cause they
2602         simply have *too* much C++ comments ;]
2603         * object/UML/association.c : use g_strdup() not plain strdup()
2604         * app/paginate_psprint.c : avoid storage size of `pipe_action' 
2605         isn't known with more portable signal code
2606         
2607         * app/app_procs.c : don't call gtk_init() if just --version
2608         is requested (bug #144321, Vladimir Kondratiev)
2609         
2610         * lib/prop_attr.c(fontprop_set_from_offset) : only unref 
2611         DiaFont* if not NULL
2612         * objects/UML/class.c : moved fill_in_fontdata() to 
2613         umlclass_load() to avoid such trouble, though unsure if
2614         this really is an improvement...
2615         
2616         * shapes/network/makefile.am : patch-panel added here too
2618 2004-07-04  Hans Breuer  <hans@breuer.org>
2620         * sheets/network.sheet.in shapes/network/patch-panel.xpm
2621           shapes/network/patch-panel.xpm : added 24-Port-Patch-Panel
2622         fixes bug #136629, James McDonald
2624 2004-07-04  Hans Breuer  <hans@breuer.org>
2626         * lib/persistence.c app/load_save.c app/sheet_dialog_callbacks.c
2627           lib/object_defaults.c : revert changing of Dia's XML namespace
2628         * lib/dia_xml.h : #define DIA_XML_NAME_SPACE_BASE with a comment
2629         about its purpose and relation to real world urls.
2631         * lib/plug-ins.h : increment DIA_PLUGIN_API_VERSION and 
2632         added comment about when to do so
2633         [Should have been long time ago and probably multiple times
2634         to avoid crashing on older plug-ins]
2635         * RELEASE-PROCESS : mention DIA_PLUGIN_API_VERSION
2636         * plug-ins/xslt/xslt.c : use DIA_PLUGIN_CHECK_INIT
2638         * lib/object.c objects/UML/class.c : there are still compilers not 
2639         supporting C99 and other GCCISMs like allocating dynamic sized arrays 
2640         on the stack
2641         * objects/UML/class.h : there is a differnce between a list pointer
2642         and a list pointer pointer. We and GLib want the former.
2644         * plug-ins/pixbuf/pixbuf.c : don't use app_is_interactive () to detect
2645         if Gtk is initialized. Using gdk_display_get_default () avoids the
2646         app/* dependency and is also closer to the requirements of the
2647         plug-ins working.
2649         * plug-ins/cairo/diacairo.c : initialize "unique name" field. Also
2650         some #ifdefed support for Cairo backends not public available yet.
2652         * plug-ins/wmf/wmf.cpp : finally do extended linestyles if the
2653         windoze platform supports them. This should fix bug #109818, at
2654         least for the majority running NT or above ...
2655         * plug-ins/wmf/wmf_gdi.[hc] : portability stuff for the above
2657         * objects/makefile.msc : build Istar, Jackson and Kaos
2659         * objects/UML/class.c(umlclass_load) : don't wrap by default to 
2660         keep old diagrams as they were - instead of this nice new effect ;-)
2661         Also make "wrap_operations" PROP_TYPE_BOOL in PropDescriptions
2663         * objects/UML/class.c : mark for translation _("Wrap ...
2665         * objects/UML/class.c : more correct types, also some default properties
2666         dialog pages adjustment (triggering a bug in lib/prop_widgets.c ?;)
2668         * objects/UML/activity.c : removed a leftover from the 
2669         use-localization-for-font-substitution-hack
2671         * shapes/ChemEng shapes/Cybernetic shapes/Map/Isometric :
2672         'cvs admin -kb *.png' PNG files should already be *added* as binary,
2673         otherwise they are not readable on line-end-converting-platforms
2675         * plug-ins/python/use g_new0(Dia<Im|Ex>portFiler), avoids crashing 
2676         filter_get_by_name()
2678         * plug-ins/python/pydia-property.c : some more g_warnings for
2679         not implemented conversions
2681         * plug-ins/python/group_props.py : ensure unique property values
2682         at the right place. Now something like :
2683         - load an old UML class diagram
2684         - change one of the classes to wrap operations
2685         - select all classes (/Select/Same Type)
2686         - /Dialogs/Group Properties : check wrap_operations, select '1'
2687         - Ok, works like a charm :-)
2689 2004-07-04  Lars Clausen  <lars@raeder.dk>
2691         * lib/diagdkrenderer.c (draw_string): Don't unref NULL
2692         pixbuf. (#145362)
2693         
2694 2004-07-03  Lars Clausen  <lars@raeder.dk>
2696         * app/app_procs.c (do_convert): Two patches from Vitaly Lipatov
2697         <LAV@VL3143.spb.edu>: Fixes console output problems and some
2698         interactiveness problems.
2700 2004-07-02  Lars Clausen  <lars@reader.dk>
2702         * plug-ins/pixbuf/pixbuf.c (dia_plugin_init): Don't load if the
2703         app isn't interactive.
2705 2004-07-01  Lars Clausen  <lars@raeder.dk>
2707         * plug-ins/cairo/diacairo.c: Add init of last field of filter
2708         struct to remove crash.
2710         * sheets/Makefile.am (sheet_in_files): 
2711         * shapes/Makefile.am: 
2712         * sheets/ChemEng.sheet.in: 
2713         * shapes/ChemEng/Makefile.am: 
2714         * configure.in: 
2715         New sheet from "Federico Zenith" <zenith@chemeng.ntnu.no>:
2716         Chemical engineering shapes.
2717         
2718         * app/Makefile.am (run_dia.sh$(EXEEXT)): Changed $* to $@ to allow
2719         multiple arguments when using devel script.
2721         * app/display.c (new_display): 
2722         * app/dia-props.c: 
2723         * lib/diagramdata.c (new_diagram_data): 
2724         * lib/diagramdata.h: 
2725         * app/preferences.h: 
2726         * app/preferences.c: 
2727         * app/grid.c: 
2728         * app/diagram.c: 
2729         * lib/diagramdata.c (new_diagram_data): Patch from Peter Poulsen
2730         <peter_poulsen@stofanet.dk>: Add hexagonal grid!
2732         * HACKING: 
2733         * doc/pl/authors.xml: 
2734         * doc/en/authors.xml: 
2735         * lib/object_defaults.c (dia_object_defaults_save): 
2736         * readme.win32 (BTW): 
2737         * lib/persistence.c (persistence_save): 
2738         * app/load_save.c (diagram_data_write_doc): 
2739         * app/commands.c (help_about_callback): 
2740         * README: Fix links to home page.
2742         * lib/font.c: 
2743         * app/load_save.c (diagram_data_load): 
2744         * lib/prop_text.c (stringprop_load): Avoid NULL strings when
2745         loading, and guard against them when fonting.
2747         * lib/diarenderer.c (draw_rounded_polyline): Patch from
2748         anthonym@overture.com:  Make limited rounding a corner-specific
2749         rendering-only thing.
2751 2004-06-30  Lars Clausen  <lars@raeder.dk>
2753         * lib/font.c (dia_font_build_layout): Return to 0.93.1 font size
2754         adjustment: If you can't fix it, at least don't change it.
2756         * objects/SADT/arrow.c (sadtarrow_draw): Use new rounded arrow
2757         code instead of individual code in here.
2759 2004-06-29  Lars Clausen  <lars@raeder.dk>
2761         * objects/UML/association.c: Patch from Kiran
2762         Kumar Immidi <kimmidi@novell.com>:  Fix bounding box for line end
2763         text. 
2765         * lib/geometry.c: 
2766         * lib/geometry.h: 
2767         * lib/diarenderer.c (draw_rounded_polyline): 
2768         * objects/standard/polyline.c (polyline_draw): 
2769         * objects/standard/zigzagline.c (zigzagline_draw): 
2770         Patch from anthonym@overture.com:  Add rounded polylines.
2772 2004-06-27  Lars Clausen  <lars@raeder.dk>
2774         * lib/font.c (dia_font_new_from_style): Initialize legacy name.
2776         * lib/widgets.c (dia_font_selector_get_family_from_name): Don't
2777         free family list before taking out the pointer we need. Also set
2778         the entry_nr correctly so we get the menu set up right.
2780 2004-06-23  Lars Clausen  <lars@raeder.dk>
2782         * lib/widgets.c (dia_toggle_button_new_with_images): Sink the
2783         images at the right place.
2785         * objects/Istar/actor.c
2786         * objects/Istar/goal.c
2787         * objects/Istar/istar.c
2788         * objects/Istar/istar.h
2789         * objects/Istar/link.c
2790         * objects/Istar/other.c
2791         * objects/Jackson/domain.c
2792         * objects/Jackson/jackson.c
2793         * objects/Jackson/jackson.h
2794         * objects/Jackson/phenomenon.c
2795         * objects/Jackson/requirement.c
2796         * objects/KAOS/goal.c
2797         * objects/KAOS/kaos.c
2798         * objects/KAOS/kaos.h
2799         * objects/KAOS/metaandorrel.c
2800         * objects/KAOS/metabinrel.c
2801         * objects/KAOS/other.c: Patch from Patch from Christophe Ponsard
2802         <cp@cetic.be>: Fix instability issues caused by not returning NULL
2803         in *_move_handle and *_move.  Also improved the headers with
2804         correct (c) information.
2806 2004-06-22  Lars Clausen  <lars@raeder.dk>
2808         * objects/KAOS/goal.c:
2809         * objects/KAOS/other.c:
2810         * objects/Istar/actor.c:
2811         * objects/Istar/goal.c:
2812         * objects/Istar/other.c:
2813         * objects/Jackson/domain.c:
2814         * objects/Jackson/phenomenon.c: Patch from Christophe Ponsard
2815         <cp@cetic.be>: Fix resize issues.
2817         * app/filedlg.c (file_dialog_hide): Patch from Kiran
2818         Kumar Immidi <kimmidi@novell.com>: Check for null when removing
2819         related dialog. #129520.
2821         * app/dia-props.c (diagram_properties_show): Patch from Kiran
2822         Kumar Immidi <kimmidi@novell.com>: Make sure properties dialog is
2823         a child of its diagram. #129520.
2825         * objects/UML/association.c (association_load): Patch from Kiran
2826         Kumar Immidi <kimmidi@novell.com>: Update positions properly for
2827         text placement. #118313.
2829 2004-06-17  Lars Clausen  <lars@raeder.dk>
2831         * objects/KAOS/Makefile.am: Add pixmaps/goal.xpm to EXTRA_DIST
2833         * Makefile.am: Make THANKS only be generated by maintainers.
2835         * doc/pl/Makefile.am: Removed usage+objects+basic.xml from
2836         Makefile, too.
2838         * configure.in: Added three missing Makefiles.
2840         * app/diagram.[ch]: 
2841         * app/filedlg.c:
2842         Patch from shuveb@yahoo.com (Shuveb Hussain): Remove
2843         diagram-related (save) dialog when closing diagram.  To be
2844         extended to other dialogs.
2846         * doc/pl/dia.xml: Removed reference to objects-basic. (#144527)
2848         * samples/Istar.dia:
2849         * samples/Jackson.dia:
2850         * samples/KAOS.dia:
2851         * sheets/Istar.sheet.in:
2852         * sheets/Jackson.sheet.in:
2853         * sheets/KAOS.sheet.in:
2854         * sheets/Istar/*:
2855         * sheets/Jackson/*:
2856         * sheets/KAOS/*:
2857         * objects/Istar/*:
2858         * objects/Jackson/*:
2859         * objects/KAOS/*:
2860         * configure.in: 
2861         * objects/Makefile.am (SUBDIRS): 
2862         * sheets/Makefile.am (SUBDIRS): 
2863         * samples/Makefile.am: Additions from Christophe Ponsard
2864         <cp@cetic.be>: Jackson, I* and KAOS diagram support.  Needs a bit
2865         of hacking still.
2867 2004-06-12  Lars Clausen  <lars@raeder.dk>
2869         * lib/properties.h: 
2870         * lib/prop_geomtypes.[ch]: Preparation for selectable units.
2872         * lib/font.h: Toning down comments a bit:)
2874         * lib/font.c (dia_font_build_layout): Playing around with DPI 
2876         * objects/UML/association.c (association_load): Avoid crashes on
2877         strcmp with NULL.
2879         * objects/UML/association.c: Patch from kimmidi@novell.com:
2880         Improve placement of labels when vertical.  Part fix of #118313
2882         * lib/object.c (dia_object_is_selected): Grouped objects are not
2883         selected, only the group itself.  Thus, don't crash when grouping
2884         beziers. #143681
2886         * objects/UML/association.c: Patch from kimmidi@novell.com:  Agree
2887         on how to represent empty strings.  Fixes #143639.
2889         * lib/object.c (dia_object_is_selected): Added comment answer.
2891 2004-06-12  Hans Breuer  <hans@breuer.org>
2893         * lib/diagramdata.c lib/object.c : deal with grouped objects
2894         not knowing their parent_layer, i.e. avoid crashing in 
2895         dia_object_is_selected() via group_draw() [ Triggered by
2896         playing with the Visio generated svg from bug #143455 ]
2898         * plug-ins/python/diasvg_import.py : started to implement
2899         transformation="translate(...)" and <style/> handling. Also
2900         use some other completely bogus values for em/ex scaling
2901         
2902 2004-06-08  Lars Clausen  <lars@raeder.dk>
2904         * plug-ins/cairo/.cvsignore: CVS-ignore generated makefiles.
2906 2004-06-07  Lars Clausen  <lars@raeder.dk>
2908         * app/layer_dialog.c (layer_dialog_set_diagram): 
2909         * app/display.c: Layer widget crash more properly dealt with in
2910         layer dialog code.
2911         
2912         * app/display.c (ddisplay_flush): Fixed crash when closing:  Layer
2913         widget deselect was called during destroy, but called
2914         ddisplay_flush, leading to a new display timeout after renderer
2915         was dead.
2917         * lib/widgets.c (dia_toggle_button_destroy): 
2918         * app/recent_files.c (recent_file_menuitem_create): 
2919         * lib/persistence.c (persistence_save_list): 
2920         * app/commands.c (edit_delete_callback): 
2921         * lib/object_defaults.c (dia_object_defaults_save): 
2922         * lib/parent.c (parent_list_affected_hierarchy): Killed leaks
2923         (#142669)
2924         
2925         * lib/widgets.c (dia_toggle_button_new_with_images): Remove
2926         debugging info.
2928         * lib/diagramdata.c (new_layer): Initialize connectibility.
2930         * app/display.c (ddisplay_obj_render): 
2931         * app/diagram.c (diagram_find_closest_connectionpoint): Take
2932         connectibility into account.
2934         * app/layer_dialog.h (struct _DiaLayerWidget): 
2935         * app/layer_dialog.c:
2936         Connectible toggle updates, now works fairly well.
2938         * app/select.c (select_transitive_callback): Make sure we're only
2939         selecting in the same layer.
2941 2004-06-04  Lars Clausen  <lars@raeder.dk>
2943         * app/pixmaps/Makefile.am: Also install connectable images.
2944         
2945         * app/layer_dialog.c (dia_layer_update_from_layer): Initially set
2946         layer toggles from layer itself.  Also update diagram correctly
2947         for visibility.  Still need updates for connectivity behaviour.
2949 2004-06-03  Hans Breuer  <hans@breuer.org>
2951         * plug-ins/wpg/wpg.c(draw_image) : take rowstride into account
2953         * lib/diagdkrenderer.c(set_linejoin) : actually set
2954         join_style not cap_style
2955         (set_dashes): with the correct number of dashes
2957 2004-06-03  Lars Clausen  <lars@raeder.dk>
2959         * app/modify_tool.c (click_select_object): 
2960         * lib/text.c (text_set_cursor): 
2961         * app/disp_callbacks.c (ddisplay_canvas_events): Turn off text stuff.
2963 2004-05-31  Hans Breuer  <hans@breuer.org>
2965         * lib/object_defaults.c : don't 'failed to load external 
2966         entity "NULL"' when the defaults file does not exist, 
2967         bug #108764 [again: somehow this got lost]
2969         * app/paginate_gdiprint.cpp : don guess the WMF export 
2970         filter used for printing but find it by unique name.
2971         Also update for export_func renaming
2972         * plug-ins/wmf/wmf.cpp plug-ins/cairo/diacairo.c
2973         provide some unique names
2975         * app/commands.c app/disp_callbacks.c app/paginate_psprint.c 
2976           app/select.c : fix bug #140789 by always checking if there
2977         still is an active diagram before accessing it
2979         * app/defaults.c app/properties.c : user visible string should 
2980         not read DiaObject but stay as "Object defaults/properties"
2982         * app/app_procs.c : reduce the hack to pass --size to the
2983         export via user_data to the only filter supporting it. Other
2984         filters would crash on it or do worse ;(
2986         * plug-ins/wpg/wpg.c : not every 'Object' is a DiaObject ...
2988 2004-05-31  Lars Clausen  <lars@raeder.dk>
2990         * lib/widgets.h: 
2991         * lib/widgets.c: Use GtkType rather than guint for
2992         dia_size_selector_get_type. 
2994 2004-05-29  Lars Clausen  <lars@raeder.dk>
2996         * app/diapsrenderer.c (fill_bezier): Use even-odd winding rule so
2997         that it matches the screen output for selfoverlapping polygons and
2998         beziers. 
3000 2004-05-28  Hans Breuer  <hans@breuer.org>
3002         * app/load_save.c : ignore empty groups on load and don't
3003         write empty groups while saving
3004         * lib/group.h (group_update_data): there is no first object
3005         in empty groups and they probably don't need an update at 
3006         all. Maybe the shold just not exist ?
3008         * plug-ins/cairo/diacairo.c : fixed arc drawing, right aligned
3009         text positioning as well as drawing of images with alpha
3011         * plug-ins/wmf/wmf.cpp : include windows.h if eiher
3012         HAVE_WINDOWS_H or G_OS_WIN32 is defined
3014 2004-05-28  Lars Clausen  <lars@raeder.dk>
3016         * app/pixmaps/Makefile.am (imagedir): 
3017         * app/pixmaps/visible.png:
3018         * app/pixmaps/visible-empty.png: New images for the visibility
3019         button in the layer dialog.
3021         * lib/widgets.c (dia_toggle_button_new_with_images): Remove even
3022         more border around the button.  Still some left when hovering the
3023         mouse or selecting, and the grey background is annoying.
3025         * app/layer_dialog.c (dia_layer_widget_init): Use real buttons for
3026         visibility connector.
3028 2004-05-26  Lars Clausen  <lars@raeder.dk>
3030         * configure.in (DB2MAN): Better check for db2man docbook place.
3031         Need something even better.
3033         * doc/en/Makefile.am (dia.1): Conditional on having DB2MAN.
3035         * lib/widgets.c (dia_toggle_button_new_with_images): Remove
3036         extraeneous borders.
3038         * dia_logo.png:
3039         * dia_gnome_icon.png:
3040         * samples/render-test.dia: Rendering test from Hans.
3042 2004-05-24  Hans Breuer  <hans@breuer.org>
3044         * lib/filter.h : renamed DiaExportFilter::export to
3045         _DiaExportFilter::export_func (should not use c++ 
3046         keywords (g++ specifc ?) in headers. Same for import
3047         out of pure symmetry reasons
3048         * plug-ins/shape/shape-export.c plug-ins/python/diamodule.c
3049           app/diagram.c app/filedlg.c : reflect functions renaming
3051         * plug-ins/wmf/Makefile.am : finally compile the wmf plug-in
3052         under *NIX, too. [If you want something done, do it yourself ;-]
3053         * plug-ins/wmf/wmf_gdi.[hc] : some more stuff to catch up
3054         with wmf.cpp's GDI usage
3055         * plug-ins/wmf/wmf.cpp : compile even without HAVE_WINDOWS_H,
3056         [For the moment it does not much more than compiling, i.e. 
3057         the produced WMF files are invalid, if not created on windoze.]
3059         * configure.in : check for C++ to compile plug-in/wmf
3060         
3061         * objects/GRAFCET/boolequation.c : looks like fixing 
3062         another leak (untested)
3064 2004-05-23  Hans Breuer  <hans@breuer.org>
3066         * acinclude.m4 : another attempt to fix 
3067         bug #142032 (still not sure it's the right one,
3068         but works for me(tm), which the other does not ;)
3069         
3070         * plug-ins/cairo/Makefile.am
3071           plug-ins/Makefile.am 
3072           configure.in : support building the new cairo
3073         plug-in, if given --with-cairo and the cairo
3074         packages are found, see http://cairographics.org
3075         and also http://hans.breuer.org/dia/dia-cairo.htm
3077         * plug-ins/cairo/diacairo.c : make it compile
3078         with DEBUG_CAIRO defined, too.
3080 2004-05-23  Hans Breuer  <hans@breuer.org>
3082         * plug-ins/cairo/Makefile.am : initial attempt
3084         * plug-ins/cairo/diacairo.c : a new exporter based on
3085         Cairo http://cairographics.org rendering api. Currently
3086         it just can export PNG and PS but one day it might get
3087         PDF and more almost for free. [It is not yet included
3088         in the *NIX build system due to lack of auto* magic.]
3090         * plug-ins/pixbuf/pixbuf.c : always register the export
3091         filter part. If the user does not want it it can be 
3092         disabled by File/Plugins or explicit selected the other
3093         one in the Export Formats List
3095 2004-05-23  Hans Breuer  <hans@breuer.org>
3097         * lib/dia_dirs.c : #include "message.h"
3098           lib/widgets.c : #include "persistence.h"
3099           lib/widgets.c(dia_font_selector_init) : still not C99
3100           lib/persitence.h : removed unimplemented prototype
3101           lib/persitence.c(persistence_load_list) : still not C99
3102           app/create_object.c : #include "highlight.h"
3103           app/layer_dialog.c : #include "widgets.h"
3104           app/modify_tool.c : prototype functions before usage
3105           lib/object.c : if there is G_END_DECLS there _must_ be G_BEGIN_DECLS
3106         [otherwise one will have a hard time to make C++ compile ;]
3107           lib/dia_dirs.c : #include "message.h"
3108           lib/font.c : #include <gtk/gtk.h> /* just for gtk_get_default_language() */
3109           lib/
3111         * plug-ins/xfig/xfig-import.c : dont initialize an int with
3112         a string pointer
3114         * lib/dia_image.[hc](dia_image_rgba_data) : make it work
3115         as documented, i.e. _not_ copying. Plugs a memory leak in
3116         lib/dialibartrenderer.c
3118         * lib/diarenderer.c(*_rounded_rect) : renamed parameter rounding
3119         to radius to more of a clue what it is representing
3121         * */makefile.msc lib/libdia.def : updated
3123         ChangeLog : fixed some date copy&paste bug
3125 2004-05-21  Lars Clausen <lars@raeder.dk>
3127         * NEWS: Release tag.
3129         * config.h.win32: Now 0.93+cvs
3131         * RELEASE-PROCESS: Update with new info about release branches.
3132         
3133         * Many files:  Moved devel branch back into main trunk.  Should
3134         have been done in the opposite way, with release in a branch.  
3135         
3136 2004-05-20  Hans Breuer  <hans@breuer.org>
3138         * acinclude.m4 : disable setting of PYTHON_PREFIX
3139         and PYTHON_EXEC_PREFIX from prefix and exec_prefix
3140         as workaround for bug #142032 (the real fix would 
3141         involve some auto* knowledge which I don't have
3142         either;)
3143         
3144         * plug-ins/python/Makefile.am : more python 
3145         plug-ins to be installed (especially svg import,
3146         but also 'simple scale' should be useable 
3147         sometimes)
3148         
3149         * plug-ins/python/scascale.py : update display
3150         after modifying selected objects
3151         
3152         * plug-ins/python/diasvg_import.py : initialize
3153         stroke to none
3154         
3155 2004-05-18  Lars Clausen  <lars@raeder.dk>
3157         * app/diagram_tree.c (select_node): Use
3158         diagram_remove_all_selected to kill selected list.
3160         * lib/font.c: Set language when using a different context.
3162         * plug-ins/svg/svg-import.c: Changed isdigit to g_ascii_isdigit
3163         and removed ctype include (#142661).
3165         * lib/paper.c (get_default_paper): Changed isalnum to
3166         g_ascii_isalnum and removed ctype include. (#142661)
3168         * objects/custom/shape_info.c: 
3169         * lib/dia_svg.c: 
3170         * app/diaunitspinner.c: Removed unrequired ctype.h include. (#142661)
3172 2004-05-17  Hans Breuer  <hans@breuer.org>
3174         * lib/object_defaults.c : don't 'failed to load external 
3175         entity "NULL"' when the defaults file does not exist, 
3176         bug #108764
3178         * lib/widgets.c : fixed possible menu leak
3179         * lib/dialinechooser.c lib/diaarrowchooser.c : finally
3180         avoid finalization of floating references, bug #142307
3182 2004-05-15  Lars Clausen  <lars@raeder.dk>
3184         * plug-ins/xfig/xfig-import.c: Handle default fonts and illegal
3185         fonts better (#138655)
3186         
3187         * doc/pl/Makefile.am (EXTRA_DIST): Also include all xml files here.
3189         * doc/en/Makefile.am (EXTRA_DIST): Including all required files in
3190         dist, xml, dbk and man.  Also the sub-xml files. (#142098)
3192         * Makefile.am (CLEANFILES): 
3193         * sheets/Makefile.am (EXTRA_DIST): Not distributing the
3194         translation-reports, they are generated automagically.  THANKS
3195         file not considered locally generated, so is not locally
3196         cleaned. (#133735) 
3198         * lib/widgets.[ch]: Changing dia_arrow_selector to be a gobject.
3200         * lib/diaarrowchooser.c: 
3201         * lib/prop_attr.c: Fixing naming for arrowselector.
3203         * objects/UML/object.c (objet_type): Oops, little too aggressive
3204         with the DiaObject thing here:)
3206         * objects/custom/shape_info.c (parse_svg_node): Use
3207         g_ascii_isdigit instead of isdigit.
3209         * app/diaunitspinner.c (dia_unit_spinner_update): 
3210         * lib/dia_svg.c (dia_svg_parse_style): Using g_ascii_isspace
3211         instead of isspace avoids char subscript issues (#142467).
3213         * lib/persistence.c (persistence_get_string): Fixed 0/NULL/FALSE
3214         return value conflict.
3216         * app/display.c (ddisplay_update_handler): Fixed 0/FALSE return
3217         value conflict.  Also improved signature. (#142466)
3219         * app/load_save.c (diagram_data_load): Don't overwrite the list in
3220         the layer, but instead free the returned list (#142480)
3222         * app/pixmaps/Makefile.am (IMAGES): Added png's to be installed
3223         for the grid widget.
3225         * doc/en/Makefile.am (dia.1): Make proper rule for making dia.1
3227         * configure.in (DB2MAN): Currently just check for two known
3228         positions for the docbook xsl.  Don't know a generic way to find
3229         this info.  Ought to add an option for it, but then it's really
3230         only required for maintainers, I think.  Maybe.
3232         * app/display.c (update_snap_grid_status): Remove nasty image
3233         toggling code not require for grid toggle button anymore. (#142475)
3235         * app/interface.c (create_display_shell): Use
3236         dia_toggle_button_new_with_images to create grid toggle button.
3237         Much nicer. (#142475)
3239         * app/menus.c (menus_initialize_updatable_items): Free the string
3240         along with the GString. (#142475)
3242         * lib/intl.c (free_alias_table): Free hash table entries in a
3243         proper way, avoiding duplicate frees. (#142475)
3245         * lib/object_defaults.c (_obj_store): Only free layer_name if it's
3246         not put in the hash (avoid reading freed memory). (#142476)
3248         * lib/widgets.c (dia_font_selector_set_styles): Stop leaking
3249         faces. (#142484)
3250         (dia_font_selector_get_family_from_name): Stop leaking
3251         families. (#142482) 
3253 2004-05-14  Lars Clausen  <lars@raeder.dk>
3255         * Transfer of fixes from release branch.  Not the prettiest way to
3256         do it, this should be done during release, not afterwards.
3258         Tomasz Kłoczko <kloczek@pld.org.pl>:
3260         * acinclude.m4: minor fixes (added missing [] quotation).
3262         Lars Clausen  <lars@raeder.dk>:
3264         * app/interface.c (toolbox_delete): 
3265         * app/app_procs.[ch] (app_exit): Stop the delete event if the user
3266         cancels quit due to modified diagrams.
3268         Samúel Jón Gunnarsson  <sammi@techattack.nu>:
3270         * is.po: Added "is" to ALL_LINGUAS.
3272         Lars Clausen  <lars@raeder.dk>:
3274         * dia.spec: Updated as per mail from Zhang Lin-bo <zlb@lsec.cc.ac.cn>
3276         Hans Breuer  <hans@breuer.org>:
3278         * lib/makefile.msc : removed -DGTK_DISABLE_DEPRECATED; the 
3279         burden should be shared and not be win32 only ;) [this time 
3280         build was broken by adding GtkType to widget.h]
3282         * objects/standard/box.c objects/standard/ellipse.c :
3283         for code clarification compare (obj->aspect != FREE_ASPECT)
3284         and not (obj->aspect); no binary effect.
3286         * app/paginate_psprint.c : don't leak printcmd
3288         * objects/standard/box.c objects/standard/ellipse.c : fix gccisms :
3289         standard C requires variables to be declared at the beginning of 
3290         a block, also there is no fabsf() with msvc
3291         
3292         * app/win32print.[ch] : make win32_printer_close() return an
3293         error code, it's used as pclose replacement
3295         Lars Clausen  <lars@raeder.dk>:
3297         * RELEASE-PROCESS: Mention PATCH keyword in release process.
3299 2004-05-06  Lars Clausen  <lars@raeder.dk>
3301         * lib/widgets.[ch]: Utility function to make a widget with two
3302         images (selected and non-selected).
3304         * lib/diagramdata.h: Renamed selectable to connectable.
3305         Selectable will come later.
3307         * configure.in: 
3308         * app/pixmaps/Makefile.am (imagedir): 
3309         * app/pixmaps/connectable.png:
3310         * app/pixmaps/connectable-empty.png: New images for the
3311         selectability widget.  Proper installation, too.
3313         * app/layer_dialog.[ch]: Adding new button showing connectability
3314         status.  Much cleaner way of doing the button, but some problems
3315         with the item getting selected
3317         * lib/widgets.h: Reminder of how to install images for use by
3318         dia_get_image_from_file.
3320 2004-05-05  Lars Clausen  <lars@raeder.dk>
3322         * objects/network/Makefile.am: 
3323         * objects/network/pixmaps/radiocell.xpm: 
3324         * objects/network/pixmaps/basestation.xpm: 
3325         * objects/network/network.c: 
3326         * objects/network/basestation.c: 
3327         * objects/network/radiocell.c: 
3328         Patch from W. Borgert <debacle@debian.org>: Radio cell and base
3329         station objects.
3331         * lib/arrows.[ch]: Patch from Anthony <anthonym@overture.com>:
3332         Backslash arrow head. 
3334         * app/pagesetup.c (pagesetup_respond): Do not free ps twice.
3335         Notify takes care.  Should maybe use that more.
3337         * lib/diagramdata.[ch]: 
3338         * app/filedlg.c (file_export_ok_callback): 
3339         * app/diagram.c (diagram_finalize): DiagramData now a GObject.
3341         * app/dia-props.c (diagram_properties_respond): 
3342         * app/diagram.c (diagram_set_modified): 
3343         * app/undo.c: 
3344         * app/disp_callbacks.c: 
3345         * app/commands.c: 
3346         * app/load_save.c (diagram_save): 
3347         Better handling of undo and modified status -- only diagram
3348         properties and page setup explicitly set modified status, all
3349         other important changes should be done through the undo stack
3350         now.
3352 2004-05-04  Lars Clausen  <lars@raeder.dk>
3354         * app/app_procs.c (app_init): Consistently open a new diagram if
3355         none specified, with standard name Diagram1.dia.
3357         * app/layer_dialog.c: 
3358         * app/diagram.c (diagram_finalize): 
3359         * app/commands.c (dialogs_layers_callback): 
3360         * app/filedlg.c (file_export_ok_callback): 
3361         * app/app_procs.c (app_exit): 
3362         * app/display.c (display_set_active): 
3363         * app/interface.c (dia_dnd_file_drag_data_received): 
3364         * app/recent_files.c: 
3365         Undone attempt at unifying the multi-diagram windows (like
3366         layers).  It broke the layers and didn't make much sense for the
3367         diagram properties dialog anyway.
3369         * lib/group.c: 
3370         * lib/diatypes.h: 
3371         * lib/diagramdata.c: 
3372         * lib/object.h: 
3373         * lib/object.c: Undone attempts at GObject'ifying DiaObject -- too
3374         many subclasses have to be fixed.  Fixed remaining
3375         Object/ObjectType renaming issues.
3377 2004-05-02  Lars Clausen  <lars@raeder.dk>
3379         * lib/object.[ch]: Making DiaObject a GObject.  Now can I avoid
3380           having to make all the children objects conform to
3381           GObject style at once?  Warning!  Does not compile right now.
3383         * many, many files: Rename Object to DiaObject in preparation for
3384           making it a GObject.
3385         
3386         * app/diagram.[ch]: Turn diagram into a real GObject.
3388         * app/pagesetup.c: 
3389         * app/filedlg.c: Correctly ref and unref diagram. 
3391         * lib/diagramdata.h: Starting to turn it into a GObject as well.
3393 2004-05-02  Lars Clausen  <lars@raeder.dk>
3395         * lib/object.[ch]: Starting to convert Object to DiaObject, son of
3396         GObject. 
3398         * app/dia-props.c: Undo the attempt at making it really
3399         multi-diagram, now going for a one-diagram dialog.
3401 2004-04-30  Lars Clausen  <lars@raeder.dk>
3403         * app/undo.c: Undoing broken undo stuff for diagram properties and
3404         page setup.  Shouldn't be mixed into undo at all.
3406         * app/render_gdk.c (draw_pixel_line): Use the dash-setting
3407         function to avoid in particular the grid crawling.
3409         * lib/diagdkrenderer.[ch] (dia_gdk_renderer_set_dashes): Function
3410         to allow aligning dashes, so they don't crawl.
3412 2004-04-28  Lars Clausen  <lars@raeder.dk>
3414         * app/Makefile.am: New files diacanvas.[ch]
3416         * app/interface.c (create_display_shell): Use new diacanvas that
3417         allows placing widgets on canvas, for text edit.
3419         * lib/object.h: 
3420         Early work towards rotation.  No implementation yet.
3422         * app/layer_dialog.c (undo_layer): 
3423         * objects/network/bus.c (bus_create_change): 
3424         * objects/standard/box.c (aspect_create_change): 
3425         * objects/standard/ellipse.c (aspect_create_change): 
3426         Use g_new0 for change struct.
3428         * app/undo.c (diagram_change_apply_or_revert): 
3429         Support for undo of diagram properties and page setup.
3431         * app/disp_callbacks.c (ddisplay_canvas_events): 
3432         * lib/text.h: 
3433         * lib/diagramdata.h: 
3434         * app/modify_tool.c (click_select_object): 
3435         * lib/text.c (text_register_editable): 
3436         Starting work on new text editing model.  Guarded by #ifdef so
3437         far. 
3439 2004-04-07  Lars Clausen  <lars@raeder.dk>
3441         * app/recent_files.c (open_recent_file_callback): 
3442         * app/interface.c (origin_button_press): 
3443         * app/filedlg.c (file_open_ok_callback): 
3444         * app/display.c: 
3445         * app/diagram.[ch]: 
3446         * app/commands.c (dialogs_layers_callback): Using new
3447         diagram_set_current() function to ensure auxilliary windows are
3448         updated. 
3450         * app/layer_dialog.c: Trying to unify with dia-props.  Diagram
3451         menu now borken.  *sniff*
3453         * app/dia-props.c: Diagram properties window attempted
3454         persistentified.  Trying to make more like layer dialog (since it
3455         already changes when the diagram changes), but some things still
3456         borken. 
3458 2004-04-06  Lars Clausen  <lars@raeder.dk>
3460         * lib/dialinechooser.[ch] (dia_line_chooser_set_line_style): 
3461         * lib/attributes.c (attributes_set_default_line_style): 
3462         * app/interface.c (create_lineprops_area): 
3463         Make line style persistent as well.  Added function to directly
3464         set the style and dashlength of a dialinechooser. 
3466 2004-04-03  Lars Clausen  <lars@raeder.dk>
3468         * objects/standard/ellipse.c (ellipse_move_handle, ellipse_copy):
3469         Copy the ellipse extra handle correctly.
3471         * objects/standard/box.c (box_move_handle): Move definitions
3472         according to bug #138925.
3474 2004-04-02  Lars Clausen  <lars@raeder.dk>
3476         * app/recent_files.c: Use absolute name for recent files list.
3478         * lib/attributes.c: Set start and end arrow types, correctly.
3480         * lib/widgets.c (dia_arrow_selector_set_arrow): Use new function
3481         to get arrow index.
3483         * lib/diaarrowchooser.[ch]: Support for setting arrow info.
3485         * app/interface.c (create_lineprops_area): Set persistently stored
3486         arrow info.
3488         * lib/arrows.[ch]: New function to get arrow index (in arrow_types)
3489         from arrow type.
3491         * lib/dia_dirs.c: dia_get_absolute_path now creates a canonical
3492         path (i.e. without '.' or '..').  Not tuned for Win32 yet.
3494         * plug-ins/xfig/xfig-import.c: Redone ordering of import to comply
3495         with what xfig does.  Text now converted from latin-1 to utf-8
3496         (latin-1, since that's what xfig seems to use.  Would like to see
3497         examples of non-latin-1 figs).  String case problems fixed.
3499 2004-04-01  Lars Clausen  <lars@raeder.dk>
3501         * lib/attributes.c: 
3502         * app/interface.c: Default arrows now stored persistently, too.
3504         * lib/arrows.[ch]: New function to get arrow type from name.
3506         * app/color_area.c (color_area_create): 
3507         * lib/attributes.c: 
3508         * app/linewidth_area.c: Also persistent colors and line width.
3509         That was easy.  Arrows and line style will take a bit more work,
3510         but not much.
3512 2004-04-01  Lars Clausen  <lars@raeder.dk>
3514         * app/preferences.c:   All preferences are now
3515         handled by persistence, old prefs load and store code is gone.
3517         * lib/persistence.[ch]: Added string and color persistents.  This is
3518         a different string from the one used in the printer dialog, that
3519         one has a GtkEntry attached -- may want to make that one an
3520         encapsulation of this one or something.
3522 2004-03-31  Lars Clausen  <lars@raeder.dk>
3524         * app/app_procs.c: Do persistence before prefs.  Prefs are to be
3525         phased out anyway.
3526         
3527         * lib/persistence.[ch]: 
3528         * app/preferences.c: Adding persistence for integers, reals,
3529         booleans.  Fixed stupid list bug.  Test persistence for prefs.
3531 2004-03-30  Lars Clausen  <lars@raeder.dk>
3533         * app/recent_files.c: 
3534         Debugging of deallocation.
3535         
3536         * lib/widgets.c: 
3537         Font menu now uses persistence.  Ordering needs fixing, or it must
3538         be sorted.
3540         * lib/libdia.def: 
3541         * lib/Makefile.am (libdia_la_SOURCES): 
3542         * app/Makefile.am (dia_core_files): 
3543         * app/persistence.[ch]: 
3544         * lib/persistence.[ch]: Moved to lib as widgets need it.  Also a
3545         number of fixes, including multiple entries now being read
3546         properly.  Still some oddity about the persistent list having the
3547         role as first entry (which makes the font menu crash after a few
3548         iterations). 
3550 2004-03-26  Lars Clausen  <lars@raeder.dk>
3552         * app/persistence.c:
3553         * app/recent_files.[ch]: Redoing the recent-files list using
3554         persistence, reducing code by about 50%.  Still a problem when
3555         selecting an item from the menu -- possibly it doesn't like the
3556         menu being destroyed while in the callback?
3558 2004-03-25  Lars Clausen  <lars@raeder.dk>
3560         * app/persistence.c (persistence_load_string): Missing semicolon?!?
3562 2004-03-24  Lars Clausen  <lars@raeder.dk>
3564         * RELEASE-PROCESS: 
3566         * app/persistence.[ch]: 
3567         * app/paginate_psprint.c (diagram_print_ps): New type of data can
3568         be stored persistently:  Strings.  Only the printer command/file
3569         go in here now, but things like creator, organization, diagram
3570         comments etc could also be handled this way.
3572         * objects/standard/beziergon.c (beziergon_draw): Avoid control
3573         lines when the object is not selected.
3575 2004-03-23  Lars Clausen  <lars@raeder.dk>
3577         * lib/connectionpoint.h: 
3578         * app/load_save.c: Allow connection points to have names, and
3579         handle that in load/store.
3581         * lib/dialibartrenderer.c: Better highlighting for text.
3583         * lib/diagdkrenderer.h (struct _DiaGdkRenderer): 
3584         * lib/diagdkrenderer.c: Better highlighting for all, using same
3585         principles as libart highlighter.
3587 2004-03-22  Lars Clausen  <lars@raeder.dk>
3589         * lib/dialibartrenderer.[ch]: 
3590         * lib/diagdkrenderer.c: 
3591         * lib/object.h: 
3592         * app/object_ops.c:
3593         * app/diagram.[ch]:
3594         * app/display.[ch]:
3595         * app/Makefile.am: 
3596         * app/modify_tool.c: 
3597         * app/create_object.c: 
3598         * app/highlight.[ch]: 
3599         Added simple object highlighting.  In GDK rendering, highlights
3600         the bbox, in libart highlights the outline of the object (except
3601         for texts).
3603 2004-03-22  Lars Clausen  <lars@raeder.dk>
3605         * RELEASE-PROCESS: Added info on how to do a branch for
3606         development during release process.
3608 2004-03-20  Lars Clausen  <lars@raeder.dk>
3610         * RELEASE-PROCESS: Mention PATCH keyword in release process.
3612 2004-03-19  Lars Clausen  <lars@raeder.dk>
3614         * xmldocs.make: Fixed apparent uninstall error.
3616         * config.h.win32: 
3617         * doc/en/dia-manual.xml: 
3618         * doc/pl/dia-manual.xml: 
3619         * dia.spec: 
3620         * configure.in: 
3621         * NEWS: Version 0.93-pre1.
3623         * lib/dialinechooser.[ch]: Patch from pborelli@katamail.com (paolo
3624         borelli):  Remove some deprecated stuff.
3626 2004-03-18  Lars Clausen  <lars@raeder.dk>
3628         * Makefile.am: Try better uninstall thing for scrollkeeper.
3630         * objects/ER/entity.c: 
3631         * lib/arrows.[ch]: Patch from Georg Lothar Thimm
3632         <MGEORG@ntu.edu.sg>: Adds new ER arrows 1 or many, 0 or many, 0 or
3633         1, 1 exactly, as well as associative ER entities.
3635 2004-03-17  Lars Clausen  <lars@raeder.dk>
3637         * Makefile.am: Make distcheck not complain about scrollkeeper
3638         problems (as per advice from James Henstridge).
3640         * doc/pl/*.{xml,sgml}: Converted SGML manuals to XML to get better
3641         standard installation.
3643         * objects/standard/ellipse.c: Better strings for object menu.
3645         * app/sheets_dialog_callbacks.c: Fixed crashes from broken caching
3646         of dialogs (shame on you, glade!)
3648         * objects/custom/custom_object.c (custom_setup_properties):
3649         Removed debugging output
3651         * app/paginate_psprint.c (diagram_print_ps): Slightly more
3652         readable printer error messages.
3654         * xmldocs.make: 
3655         * omf.make: 
3656         * doc/en/Makefile.am: 
3657         * doc/pl/Makefile.am: 
3658         New more standard way to install the XML-based manuals.  
3660 2004-03-15  Lars Clausen  <lars@raeder.dk>
3662         * objects/standard/box.c (box_move_handle): More intuitive fixed
3663         aspect behaviour.
3665         * objects/standard/ellipse.c: 
3666         * objects/standard/box.c: 
3668         * lib/widgets.[ch]:
3669         * app/layer_dialog.[ch]:
3670         Patch from Steve Langasek <vorlon@debian.org>:
3671         Fixes startup crash on Alpha (bug #137169)
3672         
3673         * objects/standard/box.c: Aspect fixing like ellipses.
3675         * app/Makefile.am (dia_core_files): Include dia-app-icons.h
3677         * lib/pixmaps/Makefile.am (imagedir): Better Makefile.am for
3678         pixmaps, now can uninstall properly.
3680         * objects/standard/ellipse.c: Patch from dooms@info.ucl.ac.be:
3681         Fixed and circle aspect ratios for ellipses.  Bug #137156, #87966,
3682         #93940. 
3683         Added object menu access.
3685 2004-03-07  Hans Breuer  <hans@breuer.org>
3687         * lib/diaarrowchooser.c lib/dialinechooser.c : #undef
3688         GTK_DISABLE_DEPRECATED (I'd rather like if these widgets
3689         would not use deprecated apis, but it's much simpler this way)
3691         * lib/makefile.msc : build the above new widgets and render_pixmap
3692         * lib/libdia.def app/dia.def app/makefile.msc : updated
3694         * app/disp_callbacks.c : fix gccisms (without being able to make much sense of 
3695         what I saw, i.e. how big is an empty array supposed to be ? ;-). 
3696         Previously it gave :
3697         disp_callbacks.c(188) : error C2059: syntax error : '}'
3698         disp_callbacks.c(191) : warning C4034: sizeof returns 0
3700         * app/interface.c : #include "dialinechooser.h"
3702         * lib/diagdkrender.c : make the !HAVE_FREETYPE case compile again
3703         [one more reason not to use it here : it's quite slow compared to
3704          the native win32 font renderer ;]
3706         * app/app_procs.c app/filedlg.c : gtk_widget_destroy does not take
3707         a GtkDialog*, removed unneeded cast
3709         * app/render_eps.c : avoid assignment warning for void* user_data
3710         not being an int 
3712 2004-03-06  Steffen Macke sdteffen@web.de>
3714         * shapes/Map/Isometric/Makefile.am: added Makfile for Isometric
3715         shapes
3717 2004-03-06  Lars Clausen  <lars@raeder.dk>
3719         * lib/arrows.h (DEFAULT_ARROW_SIZE): Downed default arrow size to
3720         0.5, as per poll.
3722         * lib/font.c: Simple cleanup system for layout cache removes any
3723         layout that hasn't been used for 10 minutes, but only during idle
3724         time. 
3726 2004-03-05  Lars Clausen  <lars@raeder.dk>
3728         * sheets/Electric.sheet.in: Added patch from padro@lsi.upc.es
3729         (lluis padro) (#130887): Extended Electric shapes with vertical
3730         versions. 
3732         * sheets/Cybernetics.sheet.in: Normalize shape descriptions (never
3733         start with "Create a" or "A", always capitalize first word).
3735         * objects/standard/ellipse.c: Patch from Grégoire Dooms
3736         <dooms@info.ucl.ac.be>: Add extra connection point in center of
3737         ellipse.  Additionally added a handle in the center, and resize is
3738         now around the center.
3740         * configure.in: 
3741         * sheets/Makefile.am (SUBDIRS): 
3742         * sheets/IsometricMap.sheet.in: 
3743         * shapes/Map/Isometric/*
3744         * shapes/Makefile.am (SUBDIRS): Added Isometric shapes.
3746 2004-03-04  Lars Clausen  <lars@raeder.dk>
3748         * lib/Makefile.am: 
3749         * lib/pixmaps/Makefile.am: 
3750         * configure.in: 
3751         Better installation handling of pixmaps.
3752         
3753         * lib/diagdkrenderer.c: 
3754         * lib/diagtkfontsel.h (struct _DiaGtkFontSelectionClass): 
3755         * lib/diagtkfontsel.c (dia_gtk_font_selection_show_available_fonts): 
3756         Constness fixes.
3758 2004-03-03  Lars Clausen  <lars@raeder.dk>
3760         * lib/diagtkfontsel.h (struct _DiaGtkFontSelection): 
3761         * lib/diagdkrenderer.c: 
3762         * lib/diasvgrenderer.c:
3763         * lib/dialibartrenderer.c:
3764         * lib/diainteractiverenderer.c: 
3765         * lib/prop_text.c (multistringprop_handle_key): 
3766         * lib/dia_dirs.c: 
3767         * lib/dia_image.c (dia_image_rgba_data): 
3768         * lib/widgets.c: 
3769         * lib/diagramdata.c (layer_set_object_list): 
3770         * lib/font.h: 
3771         * lib/font.c: 
3772         Getting rid of compile warnings.
3774         * lib/widgets.c: Handle destroy properly, i.e. unref the two extra
3775         images.  Also remove unused decls.
3777 2004-03-02  Lars Clausen  <lars@raeder.dk>
3779         * lib/widgets.h: 
3780         * lib/widgets.c (dia_size_selector_init): Add images to the size
3781         selector chain widget.  Also new function to load installed images
3782         from files (better than from included XPM, IMHO).
3784 2004-03-02  Lars Clausen  <lars@raeder.dk>
3786         * lib/libdia.def: 
3787         * lib/pixmaps/[un]broken-chain.xpm: Icons stolen from GIMP for the
3788         size selector.
3790         * lib/Makefile.am: 
3791         * lib/widgets.c (dia_size_selector_init): Work
3792         on getting proper icon onto the size selector.  Need simple image
3793         load mechanism in utils.
3795         * lib/text.c: 
3796         * app/display.[ch]:
3797         * app/disp_callbacks.c: Patch from kou@cozmixng.org: Show preedit
3798         strings, handle utf8 strlen properly.  Bug #135930.
3800 2004-03-01  Lars Clausen  <lars@raeder.dk>
3802         * shapes/Cybernetics/*:
3803         * sheets/Cybernetics.sheet.in:
3804         * sheets/Makefile.am:
3805         * shapes/Makefile.am: 
3806         * configure.in: Patch from charly.meyer@t-online.de (Thorsten
3807         Roggendorf): Cybernetic shapes (#95553).
3809 2004-03-01  Lars Clausen  <lars@raeder.dk>
3811         * app/Makefile.am: Fixed $(EXEEXT) warning from automake.
3813         * lib/diatypes.h: New type DiaSizeSelector.
3815         * lib/widgets.[ch]: New size selector widgets that selects two
3816         values (width and height, nominally) optionally linked to keep
3817         aspect ratio.
3819 2004-03-01  Hubert Figuiere  <hfiguiere@teaser.fr>
3821         * plug-ins/svg/render_svg.c (new_svg_renderer): Add DTD declaration
3822         in front of file. Bug #128600.
3824         * app/Makefile.am:
3825         * app/interface.h:
3826         * app/lineprops_area.[ch]:
3827         * lib/Makefile.am:
3828         * lib/dialinechooser.[ch]:
3829         * lib/widgets.c (dia_line_style_selector_init): use line preview 
3830         instead of text labels. This involve moving away line_chooser to lib
3831         from app.
3833         * lib/diaarrowchooser.[ch] (close_and_hide): Make static to avoid
3834         symbol conflicts.
3836         * app/Makefile.am (dia_core_files): 
3837         * app/interface.c (create_lineprops_area):
3838         * app/render_pixmap.[ch]:
3839         * lib/Makefile.am:
3840         * lib/diaarrowchooser.[ch]:
3841         * lib/libdia.def:
3842         * lib/prop_attr.c:
3843         * lib/propdialogs.c:
3844         * lib/render_pixmap.[ch]:
3845         * lib/widgets.c (dia_arrow_fill_menu): Use arrow preview instead
3846         of text labels. This involve moving away arrow_chooser to lib from
3847         app.
3849 2004-02-29  Lars Clausen  <lars@raeder.dk>
3851         * objects/UML/class.[ch]: Puny kludge to avoid GtkList objects
3852         being updated half-way through destruction.  To be removed when
3853         the lists are replaced by something better.
3855         * objects/UML/class_dialog.c: Patch from luc@handhelds.org:
3856         Accelerators for class dialog.  Bug #130995.
3857         Patch from luc@handhelds.org: Better aligning of widgets.  Bug #130994.
3859         * app/dia-props.c:
3860         * app/preferences.c:
3861         * lib/properties.c:
3862         * objects/GRAFCET/step.c:
3863         * objects/Misc/analog_clock.c:
3864         * objects/chronogram/chronoline.c:
3865         * objects/chronogram/chronoref.c:
3866         Change to american spelling (color, not colour) to ease
3867         translators job.  Note that a number of translations may need an
3868         update now.  Bug #120466.
3870 2004-02-29  Lars Clausen  <lars@raeder.dk>
3872         * plug-ins/xfig/xfig-export.c: Patch from solworth@cs.uic.edu:
3873         Better arrow handling for missing arrows.
3875         * plug-ins/metapost/render_metapost.[ch]: Patch from
3876         phred@cs.berkeley.edu (Fred Reiss): Add font faces and font
3877         size. See bug #135363.
3879         * app/app_procs.c (app_init): If non-interactive, or if
3880         --log-to-stderr used, send all messages to stderr.  This should
3881         mean that old diaconv == dia --export-to-format=FOO BAR
3883 2004-02-29  Hubert Figuiere  <hfiguiere@teaser.fr>
3885         * app/menus.c: Get rid of GNOME menus. Deprecated APIs in GNOME 2.
3887 2004-02-28  Lars Clausen  <lars@raeder.dk>
3889         * lib/text.c (text_key_event): Patch from Kouhei Sutou
3890         <kou@cozmixng.org>: Fix wrong utf8 strlen handling.
3892 2004-02-27  Lars Clausen  <lars@raeder.dk>
3894         * KNOWN_BUGS: Added info on most commonly reported bugs, with
3895         BugZilla numbers.
3896         
3897         * app/disp_callbacks.c (popup_object_menu): Unified properties
3898         entry, fixes bug #105080.
3900         * app/diagram.c (diagram_update_menu_sensitivity): 
3901         * app/menus.h (struct _UpdatableMenuItems): 
3902         * app/menus.c (menus_initialize_updatable_items): Menu items
3903         changed around, align menus flattened, properties entry ghosted,
3904         dialogs menu removed, more shortcuts added.  Closing bugs #94018,
3905         #117495, #135125.
3906         Also taking out Gnome menus for now.  They don't allow shortcuts,
3907         so what are they good for?
3909 2004-02-27  Lars Clausen  <lars@raeder.dk>
3911         * app/menus.c (display_menu_items): 
3912         * app/commands.[ch]: Added duplicate menu item from Alan Horkan
3913         (bug #95546).
3915 2004-02-24  Adam Weinberger  <adamw@FreeBSD.org>
3917         * configure.in: Added 'en_CA' (Canadian English) to ALL_LINGUAS.
3919 2004-02-23  Lars Clausen  <lars@raeder.dk>
3921         * app/app_procs.c (app_init): Comments for translators.
3923 2004-02-22  Hubert Figuiere  <hfiguiere@teaser.fr>
3925         * app/preferences.c (prefs_create_dialog): Change packing policy
3926         for widget to expand.
3928         * app/Makefile.am (run_dia.sh): Fixed a typo in wrapper that prevented
3929         running with a debugger.
3931 2004-02-19  Lars Clausen  <lars@raeder.dk>
3933         * app/undo.[ch]: Adding last-saved information to undo to allow a
3934         diagram with all changes since last save undo to be marked as
3935         nonmodified.  Still needs integration with actual undo
3936         apply/revert calls.
3938         * app/diagram.h: 
3939         * app/diagram_tree.c (diagram_tree_update): 
3940         * app/diagram.c: 
3941         * app/display.c (update_modified_status): 
3942         * plug-ins/python/pydia-diagram.c (PyDiaDiagram_GetAttr): 
3943         * app/autosave.c (autosave_check_autosave): Encapsulate modifed
3944         test. 
3946         * app/render_eps.[c]: Restructure to better handle PS vs. EPS
3947         vs. EPSI, comment out EPSI until preview is in there.
3949         * lib/render.c: 
3950         * lib/diarenderer.c: Removing debugging printfs.
3952         * app/diapsrenderer.[ch]: Preparations for proper EPSI rendering
3953         (with preview)
3955         * objects/standard/arc.c (arc_update_handles): Check to avoid
3956         crash when start and end points are the same.
3958 2004-02-19  Lars Clausen  <lars@raeder.dk>
3960         * objects/standard/bezier.c: 
3961         * objects/standard/line.c (line_load): 
3962         * objects/standard/polyline.c (polyline_load): 
3963         * objects/standard/zigzagline.c (zigzagline_load): 
3964         * objects/standard/arc.c (arc_load): 
3965         * lib/widgets.h (DEFAULT_ARROW_WIDTH): Use DEFAULT_ARROW_SIZE
3966         instead of hardcoding.
3968 2004-02-18  Hubert Figuiere  <hfiguiere@teaser.fr>
3970         * app/disp_callbacks.c (popup_object_menu): append a menu item to 
3971         display properties.
3973 2004-02-17  Hubert Figuiere  <hfiguiere@teaser.fr>
3975         * app/app_procs.c: declare rc properly with the proper #ifdef
3977 2004-02-17  Lars Clausen  <lars@raeder.dk>
3979         * plug-ins/xfig/xfig-import.c: Correct ordering of imported FIG
3980         objects (which seemingly FIG itself breaks, or else there is no
3981         ordering).
3983 2004-02-16  Lars Clausen  <lrclause@cs.uiuc.edu>
3985         * plug-ins/xfig/xfig-export.c (figLineWidth): Check for minimum
3986         width renderable in xfig.  Helps on bug #133637, but does not
3987         quite fix it -- something about depth is wrong.
3989         * plug-ins/xslt/xslt.[ch]: Patch #133913 from phenning@lanl.gov:
3990         Extern definitions for Mac compilation.
3992         * app/app_procs.c: Patch #131159 from J. H. M. Dassen
3993         (jdassen@debian.org): Include fix.
3995         * app/interface.c: Patch #130100 from luc@handhelds.org:  Make
3996         sure the initial diagram size is correct.
3998 2004-02-15  Lars Clausen  <lrclause@cs.uiuc.edu>
4000         * lib/Makefile.am (AM_CPPFLAGS): Override AM_CPPFLAGS instead of
4001         CPPFLAGS, as per automake warning.
4002         * app/Makefile.am (AM_LDFLAGS): Override AM_LDFLAGS instead of
4003         LDFLAGS, as per automake warning.
4004         (run_dia.sh): More robust creation, and more easily moved.
4006         * app/undo.c (group_objects_revert): Don't double-free the objects
4007         list.  (#129221) Call object_add_updates on grouped objects.
4008         (ungroup_objects_revert): Call object_add_updates on grouped objects.
4010         * lib/diagramdata.c: Internal
4011         documentation. 
4013         * lib/polyshape.c (polyshape_update_data): Correctly calculate
4014         directions for polyshape corners (thanks, Valgrind!)
4016         * lib/attributes.c: 
4017         * lib/prop_attr.c (arrowprop_load): Use default arrow size.
4019         * lib/arrows.h: Default arrow size defined.  After all are using
4020         this, may lower to 0.4 or so.
4022         * app/lineprops_area.[ch]: New function to set the arrow type for an
4023         arrow chooser.
4025         * app/interface.c (create_lineprops_area): Set default line to
4026         have an arrow (fairly likely to be what's wanted, plus it shows
4027         the user where arrows are set).
4029         * app/app_procs.c: #ifdef HAVE_POPT popt args to process_opt
4031 2004-02-14  Lars Clausen  <lrclause@cs.uiuc.edu>
4033         * plug-ins/metapost/render_metapost.c (draw_with_linestyle):
4034         Dotted lines should use dot_length, not dash_length.
4036 2004-02-06  Hans Breuer  <hans@breuer.org>
4038         * app/interface.c : don't use gtk_drawing_area_size() to avoid
4039         the defaut size being also the minimum size. Instead use
4040         gtk_window_set_default_size() on the display shell. Fixes #130982.
4042         [fixing #131210, but umlauts in the 'main' filename still not really 
4043          supported on systems where filesystem encoding != utf8
4044         (Problems with recent file menu and window title)]
4045         * lib/dia_xml.[hc] : add data_filename() and data_add_filename()
4046         to deal with possible differnces in filename encodings, see
4047         g_filename_<to|from>_utf8()
4048         * objects/standard/image.c : use them.
4050         * lib/widgets.c : handle possible encoding difference here, too.
4051         Also get rid of most warnings by using const and GTK casts where 
4052         appropriate; one wrong cast (probably causing a crash) was found/fixed 
4053         by this - the remaining give a hint on finally leaking FontSelectorEntry.
4055         * lib/widgets.[hc] : hide _DiaFileSelector and *Class in .c. Modified
4056         dia_file_selector_<get|set>_file to behave like the respective Gtk 
4057         functions do : encoding- and const-wise ;-)
4059 2004-02-01  Robert Sedak  <robert.sedak@sk.htnet.hr>
4061         * configure.in: Added "hr" (Croatian) to ALL_LINGUAS.
4063 2004-01-19  Hans Breuer  <hans@breuer.org>
4065         * app/app_procs.c app/diaconv : 
4066         only call bind_textdomain_codeset when available, what's good 
4067         for The Gimp (bug #131215) can't be wrong for Dia : bug #125926
4068         * config.h.win32 : define HAVE_BIND_TEXTDOMAIN_CODESET
4070 2004-01-19  Steffen Macke <sdteffen@web.de>
4072         * makefile.msc: updated for new GAIM-like installer build; sync'ed
4073         ALL_LINGUAS with configure.in
4075 2004-01-18  Hans Breuer  <hans@breuer.org>
4077         * app/app_procs.c (myXmlErrorReporting) : avoid possible crash 
4078         by not passing NULL to g_print()
4080         * app/interface.c (create_toolbox) : actually use
4081         persitence_register_window() to restore toolbox window size
4083         * app/makefile.msc lib/makefile.msc : allow to deselect
4084         building with Freetype by command line to nmake like :
4085                 nmake -f makefile.msc "NOFT2=1"
4087         * plug-ins/python/diasvg_import.py : handle 'stroke-array' as
4088         far as possible with Dia's limited line style
4089         * plug-ins/python/pydia-property.c : allow to get and set
4090         Linestyle, style and dash(length)
4092         * lib/object.h : removed typedef for ObjectId not use anywhere
4094 2004-01-17  Hans Breuer  <hans@breuer.org>
4096         * objects/custom/shape_info.[hc] objects/custom/custom_object.c
4097           doc/shape.dtd doc/custom-shapes : 
4098         support for images in custom shapes, also removed some long-time
4099         dead code
4101         * doc/en/*.xml : fixed crippled line ends which get created
4102         when windoze line ends are checkin from the unix side
4104 2004-01-13  Laurent Dhima  <laurenti@alblinux.net>
4106         * configure.in: Added "sq" to ALL_LINGUAS.
4108 2004-01-11  Hans Breuer  <hans@breuer.org>
4110         [more less leaks ;-]
4111         
4112         * objects/SADT/annotation.c : use text_destroy() not g_free()
4113         
4114         * objects/chronogram/chronoline.c : neither leak chronoline::events
4115         nor chronoline::name
4117         * objects/wpg/wpg.c : don't g_free() but g_object_unref(renderer);
4119 2004-01-11  Hans Breuer  <hans@breuer.org>
4121         * lib/properties.h :
4122         * objects/custom/custom_object.c : more properties optional
4123         to be backward compatible for older diagrams not having them 
4124         set. (Try to load samples/all_objects.dia)
4125         
4126         [less memory leaks thanks valgrind ;-]
4127         
4128         * app/recent_files.c (recent_file_history_write) : 
4129         g_free(history_filename);
4130         (recent_file_menu_item) : use g_path_get_basename() 
4131         which already strdups, free result of g_strescape()
4132         
4133         * app/filedlg.c (create_export_menu) : return of
4134         filter_get_export_filter_label() must be g_free()'d
4135         (create_open_menu) : same for import
4136         
4137         * app/export_png.c (export_png_ok) : destroy info ptr
4138         with png_destroy_write_struct()
4139         
4140         * app/app_procs.c (app_init) : g_free(export_format_string);
4141         
4142         * lib/font.c (dia_font_finalize) : finalize parent_class, too
4143         (dia_font_new_from_style) : stop leaking almost all DiaFont by not
4144         refing it a second time, g_type_create_from_instance() is enough
4145         
4146         * lib/object_defaults.c (_obj_store) : don't mess with names
4147         len 0 (should avoid 'Invalid read of size 1, but doesn't ;)
4148         
4149 2004-01-11  Steffen Macke <sdteffen@web.de>
4151         * app/diapsftrenderer.c: including ftoutln.h
4152         * app/makefile.msc: updated for freetype build
4153         * lib/libdia.def: added dia_font_get_context()
4154         * lib/dialibartrenderer.c (draw_string): added cast
4155         
4156 2004-01-10  Hans Breuer  <hans@breuer.org>
4158         * lib/diagdkrenderer.c (draw_string) : gdk_draw_line with
4159         transformed coordinates, fixes bug 130804
4161 2004-01-10  Hans Breuer  <hans@breuer.org>
4163         * app/filedlg.c app/app_procs.c : don't try to destroy 
4164         'gtk_dialog_run'-dialogs dialogs by connecting to the "response"
4165         signal but simply by gtk_widget_destroy() after gtk_dialog_run()
4166         returns. Fixes 'has no handler' bugs like #121019
4168 2004-01-10  Hans Breuer  <hans@breuer.org>
4170         * objects/UML/class.c objects/UML/class_dialog.c : 
4171         handle umlclass->name being empty to avoid, i.e. fix #127968
4173         [plugging memleaks, thanks valgrind :-]
4174         
4175         * lib/dia_xml.c (data_string) : don't leak return value
4176         of xmlNodeListGetString()
4177         
4178         * lib/dia_xml.c (xml_file_check_encoding) : g_free(buf)
4179         before returning, maybe alloca() would be the better 
4180         choice but anyway ;)
4182         * objects/custom/custom_object.c:306 : adde xmlFree(str) below
4183         
4184         * lib/font.c (dia_font_build_layout) : don't leak result
4185         of g_utf8_strdown()
4186         
4187         * lib/diagdkrenderer.c (draw_string) : don't leak rgba
4188         (this is the one which got me started using valgrind, see #130816)
4189         
4190 2004-01-07  Sanlig Badral  <badral@openmn.org>
4192         * configure.in: Added "mn" to ALL_LINGUAS.
4194 2004-01-04  Hans Breuer  <hans@breuer.org>
4196         * lib/diagdkrenderer.c : replace rendering of really small (height
4197         less than 2 pixels) with a simple dashed line, you wont notice the 
4198         differnce beside it being much faster. This allows ...
4199         * lib/diagdkrenderer.h : ... to remove gboolean rendertext ...
4200         * app/navigation.c : ... and lets you see an read rendered text even 
4201         in the nice navigation popup.
4203         * lib/dialibartrenderer.c : FONT_SCALE defined as 1.0 for G_OS_WIN32, too. 
4204         (draw_string) : don't leak temporary image
4206 2004-01-04  Hans Breuer  <hans@breuer.org>
4208         * app/dia-app-icons.h : TODO : to be removed when autogenerated on *NIX, too.
4209         * app/interface.c : use dia-app-icons.h to give Dia window icons
4211         * lib/dia_image.c lib/color.c : _never_ call functions implemented
4212         in app/ from lib/. It is not portable and broken from design
4213         * app/app_procs.c : call color_init() and dia_image_init() conditional,
4214         i.e. only if running interactive.
4216         * lib/font.h : #include <time.h>
4218         * lib/libdia.def : updated externals
4220         * objects/UML/actor.c 
4221             objects/UML/association.c (todo)
4222           objects/UML/branch.c
4223           objects/UML/class.[hc] objects/UML/class_dialog.c
4224           objects/UML/classicon.c
4225           objects/UML/component.c 
4226           objects/UML/constraint.c
4227           objects/UML/dependency.c
4228           objects/UML/generalization.c
4229           objects/UML/implements.c
4230           objects/UML/large_package.c
4231           objects/UML/lifeline.c
4232           objects/UML/message.c
4233           objects/UML/node.c
4234           objects/UML/object.c
4235           objects/UML/realizes.c
4236           objects/UML/small_package.c
4237           objects/UML/state.c
4238           objects/UML/usecase.c
4239           objects/UML/
4240         : ported coloring of most UML objects (bug #97517, orginal
4241           work Mathias Hasselmann)
4243         * lib/properties.h : add _OPTIONAL variants for 
4244         PROP_STD_(LINE|FILL|TEXT)_COLOUR which allows to load old -
4245         i.e. default colored - UML diagrams without complaining
4246         * lib/proplist.c lib/propoffsets.c : avoid setting _OPTIONAL,
4247         not set properties with the help of PXP_NOTSET. Otherwise 
4248         optional attributes would lead to wrong initialization. 
4250         * lib/widgets.[hc] : moved _DiaFontSelector from .h to .c
4251         to hide details and restict #undef GTK_DISABLE_DEPRECATED to .c
4252         Same for most other selectors which probably should be rewritten
4253         to the combo box with tree model from Gtk+ 2.4
4255 2004-01-04  Lars Clausen  <lrclause@cs.uiuc.edu>
4257         * INSTALL (PLATFORM NOTES): Mention the Gnu gettext and iconv as
4258         being the Right Thing(tm) to use on Solaris.
4260         * objects/standard/bezier.c (bezierline_draw): Don't draw
4261         guidelines if not selected.
4263         * lib/object.[ch] (dia_object_is_selected): Function to check whether
4264         a given object is selected. O(n), where n is # selected objects.
4265         
4267 2004-01-03  Lars Clausen  <lrclause@cs.uiuc.edu>
4269         * lib/widgets.[ch]: Make sure old font is re-chosen when the Other
4270         Fonts dialog is closed without pressing Ok (bug #128646).
4272 2004-01-02  Lars Clausen  <lrclause@cs.uiuc.edu>
4274         * app/Makefile.am: Quote arguments correctly for run_dia.sh (bug
4275         #130099). 
4277 2004-01-01  Lars Clausen  <lrclause@cs.uiuc.edu>
4279         * INSTALL: Updated list of requirements (bug #129653)
4281         * doc/en/dia.dia: Beginning class diagram for Dia from Luc
4282         Pionchon <luc@handhelds.org>.
4284 2003-12-31  Lars Clausen  <lrclause@cs.uiuc.edu>
4286         * lib/diagdkrenderer.c (draw_string): Don't attempt to render
4287         empty or NULL strings (bug #130097).
4289 2003-12-31  Chris Sperandio <sperandi@eng.usf.edu>
4290         
4291         * plug-ins/metapost/render_metapost.c: Fixed string colorization.
4292         Added checks against color_black.
4294 2003-12-31  Lars Clausen  <lrclause@cs.uiuc.edu>
4296         * plug-ins/xfig/xfig-export.c (figArrow): Output nothing for
4297         ARROW_TYPE_NONE.  Thanks to Jon A. Solworth for showing that this
4298         can happen.
4300         * objects/UML/component_feature.c: Patch from W. Borgert
4301         <debacle@debian.org>:  Add handle to component feature text.
4303         * lib/diagdkrenderer.c (draw_string): Remove poorly placed caching.
4305         * lib/font.c: Caching PangoLayout for better rendering speed.
4307 2003-12-30  Lars Clausen  <lars@raeder.dk>
4309         * lib/dia_dirs.[ch] (dia_get_absolute_filename): New function to
4310         get absolute file name from relative.
4311         * app/recent_files.c (recent_file_history_add): Use absolute
4312         filenames for recent files menu so that files can be found when
4313         Dia is invoked from other places.  
4315         * app/app_procs.c (handle_all_diagrams): Fix for 1/3 of 130098:
4316         Actually load different diagrams if such are requested on command
4317         line.  
4319         * objects/UML/class_dialog.c (class_create_page): Fix from Luc
4320         Pionchon <luc@handhelds.org>: Correctly align labels for colors.
4322         * lib/diagdkrenderer.[ch]: From Luc: New option to GdkRenderer to
4323         remove text rendering.  May be turned into greeking at some later
4324         stage.
4326         * app/interface.c: 
4327         * app/Makefile.am (dia_core_files): 
4328         * app/navigation.[ch]: Patch from Luc Pionchon <luc@handhelds.org>:
4329         Adds navigation window a la Gimp, though without text being
4330         rendered at all.
4332 2003-12-27  Luc Pionchon <luc@handhelds.org>
4334         * app/navigation.h: (new file)
4335         * app/navigation.c: (new file) creates a navigation window with a
4336         thumbnail view of the whole diagram.
4337         * app/Makefile.am (dia_core_files): added new files.
4339         * app/interface.c (create_display_shell): added a button between
4340         the scrollbars to popup a navigation window.
4342         * lib/diagdkrenderer.h (struct_DiaGdkRenderer): added rendertext
4343         boolean
4344         * lib/diagdkrenderer.c (renderer_init): set rendertext TRUE by default
4345         * lib/diagdkrenderer.c (draw_string): returns if the renderer do
4346         not want text rendering.        
4348 2003-12-14  Lars Clausen  <lrclause@cs.uiuc.edu>
4350         * shapes/Circuit/hresistor.shape: Uses new extra attribute thing.
4352         * objects/custom/shape_info.[ch]: Cleanup.
4354         * objects/custom/custom_object.[ch]: Changed to use new props
4355         interface.
4357         * lib/properties.h: 
4358         * lib/prop_text.c: 
4359         * lib/prop_inttypes.c: 
4360         * lib/prop_geomtypes.c: Added *prop_get_data_size.
4362         * lib/libdia.def: Added object_load_props.
4364         * configure.in: Better FT2 version test, from bug #129225.
4366         * dia.spec (BuildRequires): Changed to match makefile (bug #129131)
4368         * plug-ins/xslt/dia-uml2python.xsl: Added Python sheet from Holger
4369         Lehmann <holger.lehmann@catworkx.de>.
4371         * plug-ins/xslt/Makefile.am: 
4372         * plug-ins/xslt/stylesheets.xml: Added Python, Component List,
4373         and OWL XSLT sheets.
4375 2003-12-13  Lars Clausen  <lrclause@cs.uiuc.edu>
4377         * lib/diagdkrenderer.c: Add implementation so text is still
4378         rendered.  May be improved later.
4380         * lib/dia_image.c: 
4381         * app/main.c: 
4382         * app/export_png.c: 
4383         * app/diagram.c: 
4384         * app/app_procs.c: Patch from W. Borgert <debacle@debian.org>:
4385         Allow running without a $DISPLAY!
4387         * lib/color.c: Remove warnings for non-interactive run.
4389         * doc/en/dia.dbk: 
4390         * app/export_png.c: 
4391         * app/diaconv.c: 
4392         * app/app_procs.[ch]: 
4393         Patch from W. Borgert <debacle@debian.org>: Allow a --size argument
4394         to specify size for PNG output.
4396         * app/lineprops_area.c (dia_arrow_preview_expose): Make arrows
4397         render a little smaller, so as to fit the big ones.
4399         * lib/arrows.[ch]: New arrow type from W. Borgert
4400         <debacle@debian.org>: Filled Dot and Triangle.
4402 2003-12-02  Lars Clausen  <lrclause@cs.uiuc.edu>
4404         * doc/pl/Makefile.am (install-data-hook): Fixed installation bug
4405         for gif images.
4407         * plug-ins/xslt/dia-uml2owl.xsl: Added OWL XSLT from Dan Connolly.
4409         * acinclude.m4: Better Python configure code patch (can't find
4410         author, author please speak up!)
4412 2003-12-01  Lars Clausen  <lrclause@cs.uiuc.edu>
4414         * lib/diagdkrenderer.c (get_cached_text): Stupid bugs replaced by
4415         smarter ones.
4417 2003-11-30  Hans Breuer  <hans@breuer.org>
4419         * plug-ins/python/diasvg.py : initialize self.dash_length
4420         in constructor to avoid crashing if the renderer user
4421         does not set it before first usage.
4423 2003-11-30  Lars Clausen  <lrclause@cs.uiuc.edu>
4425         * lib/diagdkrenderer.c: Start of cache GDK text renderer -- not
4426         active yet.
4428         * configure.in: 
4429         * config.h.win32: Set version number to 0.92.2+cvs to distinguish
4430         development and stable versions.
4432         * lib/text.c (text_draw): Use new renderer function to draw the
4433         text.
4435         * lib/diarenderer.h: 
4436         * lib/diarenderer.c: New renderer function "draw_text" with
4437         default implementation.  This function should eventually be the
4438         main interface, as it will be able to handle width and caching of
4439         rendering internally.  All users of draw_string should convert to
4440         use Text objects and call either renderer->draw_text or text_draw,
4441         the latter if the text can be edited in-place (as should be the
4442         goal, eventually).
4444 2003-11-29  Lars Clausen  <lrclause@cs.uiuc.edu>
4446         * shapes/Circuit/hresistor.shape: First example of extra
4447         attributes. 
4449 2003-11-28  Lars Clausen  <lrclause@cs.uiuc.edu>
4451         * plug-ins/shape/shape-export.c: 
4452         * lib/diasvgrenderer.h: 
4453         * lib/diasvgrenderer.c: 
4454         * plug-ins/svg/render_svg.c (new_svg_renderer): 
4455         Actually store the font size, using DiaRenderer's font fields.
4457 2003-11-27  Lars Clausen  <lrclause@cs.uiuc.edu>
4459         * objects/custom/shape_info.[ch]: 
4460         * objects/custom/custom_object.[ch]: 
4461         Support for extra attributes in custom objects.
4462         
4463 2003-11-23  Lars Clausen  <lrclause@cs.uiuc.edu>
4465         * app/diagram.c (diagram_update_menu_sensitivity): More
4466         intelligent checks for menu sensitivity.  Might be slow on huge
4467         diagrams, but I think other things outweigh it by a lot.
4469         * app/menus.[ch]: Make "Bring Forwards"
4470         and "Send Backwards" updateable.
4472 2003-11-22  Steffen Macke <sdteffen@web.de>
4474         * shapes/Assorted/arrow-turn-up.shape:
4475         * shapes/Assorted/arrow-turn-up.png:
4476         * sheets/Assorted/Makefile.am:
4477         * sheets/Assorted.sheet.in: Added new arrow
4479 2003-11-17  Lars Clausen  <lrclause@cs.uiuc.edu>
4481         * app/app_procs.c
4482         * app/color_area.c
4483         * app/commands.c
4484         * app/defaults.c
4485         * app/dia_embedd.c
4486         * app/diagram.c
4487         * app/diagram_tree.c
4488         * app/diagram_tree_menu.c
4489         * app/diagram_tree_window.c
4490         * app/diapagelayout.c
4491         * app/diaunitspinner.c
4492         * app/export_png.c
4493         * app/filedlg.c
4494         * app/interface.c
4495         * app/layer_dialog.c
4496         * app/lineprops_area.c
4497         * app/linewidth_area.c
4498         * app/menus.c
4499         * app/pagesetup.c
4500         * app/paginate_psprint.c
4501         * app/persistence.c
4502         * app/plugin-manager.c
4503         * app/preferences.c
4504         * app/properties.c
4505         * app/recent_files.c
4506         * app/sheets.c
4507         * app/sheets_dialog.c
4508         * app/sheets_dialog_callbacks.c
4509         * app/tool.c: Patch from Sebastien Tricaud <toady@gscore.org>:
4510         GTK-2 compatibility update, mostly gtk_foo -> g_foo.
4512         * TODO: Updated, note on EPS transparency.
4514 2003-11-07  Lars Clausen  <lrclause@cs.uiuc.edu>
4516         * objects/UML/class.c (umlclass_draw): Allow classes with no name
4517         without crashing.
4519 2003-11-01  Lars Clausen  <lrclause@cs.uiuc.edu>
4521         * config.h.win32: 
4522         * doc/en/dia-manual.xml: 
4523         * dia.spec: 
4524         * configure.in: 
4525         * NEWS: Another Brown Bag release for parenting problems,
4526         including a crash bug fix.
4528         * app/connectionpoint_ops.c (diagram_update_connections_object):
4529         Also update connections when moving children.  This can cause
4530         move_handle to be called twice, so it must be idempotent.
4532         * app/load_save.c: Loading and saving of children totally redone.
4533         Now doesn't violate assumption that all objects in a layer are
4534         placed in order in XML file.
4536         * objects/UML/branch.c (branch_create): Don't lie about being
4537         resizable. 
4539         * objects/UML/node.c (node_create): 
4540         * objects/UML/large_package.c (largepackage_create): Drag with
4541         lower right-hand handle at creation like all other objects.
4543 2003-10-28  Lars Clausen  <lrclause@cs.uiuc.edu>
4545         * app/disp_callbacks.c (ddisplay_drop_object): Change initial
4546         parenting drop to behave like a move inside, i.e. constrain place
4547         instead of trying to resize.  'Cause, resizing cannot be done for
4548         all objects (e.g. UML Class). Also simplified the algorithm a lot
4549         at the same time.
4551         * app/load_save.c: Saving and loading of connection points for
4552         children added.  Prototypes for static functions added.
4554         * lib/dynamic_obj.c: Removed debugging output.
4556 2003-10-26  Lars Clausen  <lrclause@cs.uiuc.edu>
4558         * doc/en/dia-manual.xml: 
4559         * doc/pl/dia-manual.sgml: 
4560         * dia.spec: 
4561         * config.h.win32: 
4562         * configure.in: 
4563         * NEWS: Brown Bag release 0.92.1
4565         * lib/dynamic_obj.c: Fixed embarassing dynamic object removal bug.
4567 2003-10-25  Lars Clausen  <lrclause@cs.uiuc.edu>
4569         * app/app_procs.c (app_init): Rearrangement for translators.
4571 2003-10-24  Steffen Macke <sdteffen@web.de>
4573         * lib/text.c(text_key_event): enforcing the inserted text length now,
4574         fix for bug #125348
4576 2003-10-22  Lars Clausen  <lrclause@cs.uiuc.edu>
4578         * MAINTAINERS: Change Debian maintainer to be the default address.
4580         * objects/Misc/analog_clock.c (analog_clock_move_handle): Reorder
4581         args to match prototype, thus removing crashbug #125159.
4583         * RELEASE-PROCESS: Note to self.
4585 2003-10-22  Steffen Macke <sdteffen@web.de>
4587         * doc/en/dia-manual.xml: removed superfluous external references
4588         
4589 2003-10-21  Steffen Macke <sdteffen@web.de>
4591         * lib/libdia.def: added filter_get_by_name
4592         * app/render_eps.c: moved extensions definition outside #ifdef
4594 2003-10-19  Lars Clausen  <lrclause@cs.uiuc.edu>
4596         * Makefile.am: 
4597         * dia.1:
4598         Removed old Dia manual, put new one in doc/en/.  Translations
4599         should go in doc/??/.
4601         * doc/en/dia-manual.xml: 
4602         * doc/pl/dia-manual.sgml: 
4603         * dia.spec (Release): 
4604         * config.h.win32: 
4605         * configure.in: 
4606         * NEWS: 0.92 is here!
4608         * doc/en/dia.dbk: 
4609         * doc/en/dia.1: 
4610         * doc/en/Makefile.am (man_MANS): Added man page, thanks to Fredrik
4611         HallenBerg, W. Borgert.  Not currently autogenerated from dia.dbk,
4612         but it shall be.
4614         * doc/en/usage-objects.xml: Fixed lower-case PNG tags.
4616         * doc/en/usage-objects-selecting.xml: Commented out empty note.
4618 2003-10-14  Lars Clausen  <lrclause@cs.uiuc.edu>
4620         * doc/pl/dia-manual.sgml: 
4621         * doc/en/dia-manual.xml: 
4622         * config.h.win32: 
4623         * NEWS: 
4624         * configure.in: 
4625         * dia.spec (Release): Pre7.
4627         * app/diapsrenderer.c (draw_string): Convert string to print based
4628         on current locale.  If conversion fails, fall back to UTF-8 (which
4629         is almost certain to be messy).
4631 2003-10-13  Lars Clausen  <lrclause@cs.uiuc.edu>
4633         * doc/pl/dia-manual.sgml: 
4634         * dia.spec (Release): 
4635         * configure.in: 
4636         * NEWS: 
4637         * config.h.win32: 
4638         * doc/en/dia-manual.xml: Pre6.
4640         * plug-ins/pstricks/render_pstricks.c (draw_string): Don't escape
4641         TeX chars in strings -- must be possible to use TeX text in there.
4642         Also avoids infinite loop bug (#124464) Will get option for this
4643         later.
4645 2003-10-11  Lars Clausen  <lrclause@cs.uiuc.edu>
4647         * shapes/Cisco/Makefile.am: Cisco shapes now install correctly.
4649         * doc/en/dia-manual.xml: 
4650         * doc/pl/dia-manual.sgml: 
4651         * dia.spec (Release): 
4652         * configure.in: 
4653         * config.h.win32: 
4654         * NEWS: pre5.
4656         * app/authors.h: Removed duplicate of M. C. Nelson.
4658         * plug-ins/pixbuf/pixbuf.c: Unique name for pixbuf export: gdkpixbuf.
4660         * app/export_png.c: Unique name for libart PNG export: png-libart.
4662         * app/render_eps.c: Unique names for the two eps export methods:
4663         eps-builtin, eps-pango.
4665         * lib/filter.h: Binary compatibility change: 
4666         Added unique name to export filters.  Can be NULL.
4667         * lib/filter.c (filter_get_by_name): Finding a filter by
4668         non-extension name.
4670         * app/app_procs.h: Changed prototype for do_convert.
4671         * app/app_procs.c (app_init): Support for non-extension file
4672         format selection for export.  Also allow extension to differ from
4673         that specified by the filters.  A bit of refactoring, too.
4675 2003-09-28  Steffen Macke <sdteffen@web.de>
4677         * makefile.msc: added target po to update the translations
4679 2003-09-27  Lars Clausen  <lrclause@cs.uiuc.edu>
4681         * config.h.win32: 
4682         * dia.spec (Release): 
4683         * NEWS: 
4684         * doc/pl/dia-manual.sgml: 
4685         * doc/en/dia-manual.xml: 
4686         Pre4 is given a short try.
4687         
4688         * configure.in: Give all necessary libs to PNG test.
4690         * lib/font.c: Added legacy entries for sans, serif and monospace.
4692         * app/app_procs.c (internal_plugin_init): 
4693         * app/render_eps.h: 
4694         * app/render_eps.c: 
4695         Added PS fonts output for Unix.
4697         * app/diapsrenderer.c (set_font): Adjusted height by the magic .7
4698         factor to make PS fonts stay in boxes.
4699         
4700 2003-08-03  Hans Breuer  <hans@breuer.org>
4702         * config.h.win32 : close the version string
4704         * lib/libdia.def : with color_white, color_black being static
4705         on win32 they can not be exported anymore either
4707         * lib/dialibartrenderer.c : text rendering is back on win32,
4708         only by Gdk though; almost a year seems to be enough to
4709         wait for my patch at bug #94791 to be accepted ...
4711 2003-09-23  Lars Clausen  <lrclause@cs.uiuc.edu>
4713         * shapes/network/{digitizing_board.png,plotter.png,
4714         laptop.png,telephone.png}: 22x22 icons.
4716 2003-09-22  Lars Clausen  <lrclause@cs.uiuc.edu>
4718         * doc/pl/dia-manual.sgml: 
4719         * doc/en/dia-manual.xml: 
4720         * dia.spec (Release): 
4721         * configure.in: 
4722         * config.h.win32: 
4723         * NEWS: 
4724         pre3 improves font rendering speed.
4726         * app/app_procs.c (app_init): Don't do pango init here, it's done
4727         on demand in font.c now.
4729         * lib/font.c: Load pango context on demand rather than during
4730         init/all the time strikes a better balance between working font
4731         size and speed.  Still need to cache width calculations.
4733 2003-09-18  Lars Clausen  <lrclause@cs.uiuc.edu>
4735         * lib/dia_xml.c: Enable pretty printing.  Should have been added
4736         on 8/12. 
4738 2003-09-11  Lars Clausen  <lrclause@cs.uiuc.edu>
4740         * lib/arrows.c (calculate_arrow_point): Adjust arrow line
4741         adjustment a bit for half diamond and open round.
4743         * RELEASE-PROCESS: Added note about notifying translators and
4744         maintainers. 
4746         * doc/pl/dia-manual.sgml: 
4747         * doc/en/dia-manual.xml: 
4748         * dia.spec (Release): 
4749         * configure.in: 
4750         * config.h.win32: 
4751         * NEWS:
4752         Update to 0.92-pre2.
4753         
4754 2003-09-10  Lars Clausen  <lrclause@cs.uiuc.edu>
4756         * lib/arrows.c (calculate_arrow_point): Some fixing-up of arrow
4757         calculation for half diamond and open round.
4759         * lib/arrows.c: 
4760         * objects/UML/component_feature.c: 
4761         * lib/arrows.h: Patch from W. Borgert <debacle@debian.org>: Use
4762         arrows instead of specific little hacks.  Much nicer, but damn
4763         there's a lot of arrows.
4765         * lib/dialibartrenderer.c (begin_render): 
4766         * app/render_libart.c (begin_render): Use correct DPI for screen
4767         (well, actually the default DPI of 75 for now).
4769         * app/display.h: Informative notes on the DDISPLAY_*_ZOOM macros.
4771         * lib/diagdkrenderer.c (draw_string): Some reformatting.
4773         * app/app_procs.c (app_init): Note on what should be done for the
4774         pango context now, only it doesn't work:(
4776         * lib/font.c (dia_font_new): Make sure to load fonts that are
4777         used, using a reasonable pango_context.  Also a comment on the
4778         global_zoom_factor, 
4780 2003-09-09  Lars Clausen  <lrclause@cs.uiuc.edu>
4782         * doc/pl/graphics/*.png:
4783         * doc/pl/Makefile.am: Added graphics to distro, avoiding empty
4784         loop (bug #121817).  PL translator may want to change the
4785         home_network png to be in Polish.  If the docs get translated into
4786         more languages, we'll want to find out how to share these things.
4788 2003-09-08  Lars Clausen  <lrclause@cs.uiuc.edu>
4790         * app/splash.c (app_splash_init): Patch from Sébastien Tricaud
4791         <stricaud@mwsp.net>: Use g_signal_* instead of gtk_signal_* in
4792         splash.
4794         * app/filedlg.c (file_save_as_callback): Put filename setting
4795         together.  (Preparation for allowing default save dir.)
4797         * app/paginate_psprint.c (diagram_print_ps): Use $PRINTER
4798         correctly this time:)
4800         * app/dia-props.c (diagram_properties_show): 
4801         * app/properties.c (properties_show): Make sure the
4802         dialogs are transient for the correct diagram.
4804 2003-09-07  Lars Clausen  <lrclause@cs.uiuc.edu>
4806         * configure.in: Make sure -lz -lm is passed into second png test
4807         as well (stupid AC_LINK_IFELSE can't take it as an argument).
4809         * plug-ins/xfig/xfig-import.c: Skip XFig comments to make certain
4810         comment-filled files readable.  Once we have a 'generic data'
4811         system, we can put comments in there.
4813 2003-09-06  Steffen Macke <sdteffen@web.de>
4815         * plug-ins/pstricks/render_pstricks.c(tex_escape_string): using
4816         g_string_sized_new() instead of g_string_new() to make it compile
4817         * app/Makefile.am: including dia.ico and dia.rc in the tarball
4818         * plug-ins/wmf/wmf.cpp (set_linestyle): In WMF maximum linewidth is 1 
4819         for non-solid linestyles - otherwise custom linestyles have to be used.
4821 2003-09-02  Steffen Macke <sdteffen@web.de>
4823         * app/commands.c(help_manual_callback): using dia-manual.chm instead of 
4824         dia.chm
4826 2003-09-02  Christian Neumair  <chris@gnome-de.org>
4828         * sheets/Pneumatic.sheet.in: Slight unification fix.
4830 2003-09-02  Lars Clausen  <lrclause@cs.uiuc.edu>
4832         * config.h.win32: 
4833         * configure.in: 
4834         * dia.spec (Release): 
4835         * doc/en/dia-manual.xml: 
4836         * doc/pl/dia-manual.sgml: 
4837         * NEWS: Update to 0.92-pre1.
4839         * app/properties.c (properties_key_event): Removing Esc/Enter
4840         handling for now, interferes to much with regular dialog usage.
4842         * plug-ins/pstricks/render_pstricks.c (tex_escape_string):
4843         Function to escape special TeX characters.  Not in use yet, as
4844         PSTricks output by default is TeX strings.  Should get a save-time
4845         selector. 
4847 2008-09-01  Steffen Macke <sdteffen@web.de>
4849         * lib/paper.h: explanatory comment on width and height
4851 2003-08-30  Steffen Macke <sdteffen@web.de>
4853         * lib/color.c:
4854         * lib/color.h: made color_white, color_black static on win32
4856 2003-08-28  Lars Clausen  <lrclause@cs.uiuc.edu>
4858         * configure.in (PNG_LIBS): Something in the png tests added an
4859         extra -lpng to $LIBS.  Saving old $LIBS to avoid that.
4861 2003-08-27  Lars Clausen  <lrclause@cs.uiuc.edu>
4863         * configure.in: Quote correctly for temporarily adding freetype
4864         cflags to CPPFLAGS.
4866         * app/preferences.c (prefs_save): Remove debugging g_print.
4868 2003-08-26  Lars Clausen  <lrclause@cs.uiuc.edu>
4870         * objects/flowchart/parallelogram.c (pgram_update_data):
4871         Directions for connections, better system for placing
4872         connectionpoints. 
4874 2003-08-25  Lars Clausen  <lrclause@cs.uiuc.edu>
4876         * lib/diagramdata.c (layer_find_closest_object_except): Look all
4877         the way through the object list, so the foremost object is selected.
4879         * lib/diagramdata.h: Removing dynamic_obj.h, it should only be
4880         included for diagramdata.c.
4882         * lib/prop_text.c (multistringprop_handle_key): Attempt at making
4883         newline in multistringprop not close the dialog.  Failed so far.
4885 2003-08-25  Steffen Macke <sdteffen@web.de>
4887         * app/commands.c: using CHM instead of HTML on win32 if available
4888         * lib/diagramdata.h: including dynamic_obj.h
4890 2003-08-25  Lars Clausen  <lrclause@cs.uiuc.edu>
4892         * app/properties.c (properties_key_event): Make Enter = Ok for
4893         properties dialogs.  Still some problems with this and Esc for
4894         Cancel, for instances escaping out of a menu closes the dialog.
4896         * objects/UML/association.c (association_get_properties): 
4897         * objects/UML/class_dialog.c (class_create_page): Grab appropriate
4898         focus. 
4900         * app/diapsft2renderer.c (draw_string): Use
4901         dia_font_scaled_build_layout to ensure similarity of text.
4903         * lib/diagramdata.c: Remove obj from dynobj list when removing
4904         from layer to avoid nasty race conditions.
4906         * app/undo.c (group_objects_revert): Make sure to unparent and
4907         remove from dynobj list when changing layers objects.
4909 2003-08-23  Steffen Macke <sdteffen@web.de>
4911         * plug-ins/wmf/wmf.cpp (draw_image): replaced BitBlt() with 
4912         StretchBlt(); fixes #92249
4913         
4914 2003-08-23  Lars Clausen  <lrclause@cs.uiuc.edu>
4916         * app/filedlg.c (file_save_as_callback): 
4917         * app/preferences.h: 
4918         * app/preferences.c (prefs_data): 
4919         * lib/diagramdata.h: 
4920         * lib/diagramdata.c (new_diagram_data): 
4921         * app/load_save.c (diagram_data_load): 
4922         Let the document remember whether it was compressed.  The user can
4923         still override this in the Save As... dialog, and that will still
4924         be remembered as the default for new diagrams.
4926 2003-08-23  Steffen Macke <sdteffen@web.de>
4928         * plug-ins/xslt/Makefile.am: added dia-uml2componentlist.xsl
4930 2003-08-22  Steffen Macke <sdteffen@web.de>
4932         * plug-ins/xslt/dia-uml.xsl:
4933         * plug-ins/xslt/dia-uml2componentlist.xsl: generate a HTML file with a
4934         table containing a list of components grouped by stereotype
4936 2003-08-21  Steffen Macke <sdteffen@web.de>
4938         * lib/makefile.msc: added connectionpoint.obj
4939         * lib/libdia.def: added connpoint_update, find_slope_directions
4940         * app/disp_callbacks.c: including scroll_tool.h
4941         * obj/makefile.msc: added component_feature.obj
4942         * app/paginate_gdiprint.c: fixed loop initialization in 
4943         paginate_gdiprint(); partial fix for bug #85831 - the scaling is still
4944         wrong
4946 2003-08-21  Lars Clausen  <lrclause@cs.uiuc.edu>
4948         * plug-ins/python/pydia-object.c (PyDiaObject_MoveHandle): Fix
4949         move_handle call.
4951         * lib/diagramdata.h: Colors added to prefs.
4952         * lib/diagramdata.c (new_diagram_data): Set diagram colors from prefs.
4953         New field for pagebreak color, which should
4954         behave the same as grid color and be settable for a diagram.
4956         * app/diagram.c (diagram_init): Update diagram pagebreak color
4957         from prefs. 
4959         * app/grid.c (pagebreak_draw): Draw using diagrams pagebreak
4960         colors. 
4962         * app/preferences.[ch]: Default diagram colors now #defines, so
4963         loading can use it.  Also, colors are now in NewDiagramData, so
4964         are passed nicely into new diagrams directly from prefs.  Yum.
4966         * app/load_save.c (diagram_data_write_doc, diagram_data_load): 
4967         Support for loading and saving grid and pagebreak colors with the
4968         diagram.  I'm inclined to make all the three Colors in diagram
4969         Color*s instead, so we can tell if they're specified for the
4970         diagram or merely the default setting.  There'd be no way for the
4971         user to tell if the color of a diagram is default, though, unless
4972         we add a 'reset to default' button to prefs.
4974         * app/dia-props.c: Adding widgets for dynamic grid, grid colour,
4975         pagebreak color.  Unsensitizing grid size when dynamic.
4977         * objects/UML/component.c: Patch from Krzysztof Foltman
4978         <kfoltman@onet.pl>: Add two new connectionpoints and adjust a
4979         third.  Makes the left side connections actually be on the line
4980         (gasp!). 
4982 2003-08-20  Steffen Macke <sdteffen@web.de>
4984         * lib/libdia.def: added layer_find_closest_object_except
4985         * lib/diagramdata.c: added ; after GOTO to make MSVC compile 
4987 2003-08-20  Lars Clausen  <lrclause@cs.uiuc.edu>
4989         * app/tool.h: 
4990         * app/tool.c: 
4991         * app/scroll_tool.c: 
4992         * app/interface.c: 
4993         * app/disp_callbacks.c: 
4994         * app/create_object.h: 
4995         * app/create_object.c: Patch from Krzysztof Foltman
4996         <kfoltman@onet.pl>: Middle button can scroll transiently when
4997         menu-bar-mode is on, and mouse wheels (hopefully) can scroll in
4998         various ways.
5000         * app/authors.h: 
5001         * sheets/UML.sheet.in: 
5002         * sheets/UML/receptacle.xpm: 
5003         * sheets/UML/Makefile.am: 
5004         * sheets/UML/eventsource.xpm: 
5005         * sheets/UML/eventsink.xpm: 
5006         * objects/UML/pixmaps/facet.xpm: 
5007         * objects/UML/uml.c (dia_plugin_init): 
5008         * objects/UML/Makefile.am (libuml_objects_la_SOURCES): 
5009         * objects/UML/component_feature.c: 
5010         Patch from W. Borgert <debacle@debian.org>:  Add event sources and
5011         event sinks.
5012         
5013 2003-08-19  Lars Clausen  <lrclause@cs.uiuc.edu>
5015         * lib/object.h: Turning some comments into doxygen style.
5017         * lib/object_defaults.c (dia_object_defaults_load)
5018         (dia_object_default_get, dia_object_default_create): 
5019         Fixing up existing documentation.
5021         * lib/object.h: Doxygen style documentation begun.
5023         * app/create_object.c: 
5024         * app/undo.c: 
5025         * app/connectionpoint_ops.c: 
5026         * app/disp_callbacks.c: 
5027         * app/modify_tool.c: 
5029         * objects/network/wanlink.c (wanlink_move_handle): 
5030         * objects/network/bus.c (bus_move_handle): 
5032         * objects/flowchart/parallelogram.c (pgram_move_handle): 
5033         * objects/flowchart/ellipse.c (ellipse_move_handle): 
5034         * objects/flowchart/diamond.c (diamond_move_handle): 
5035         * objects/flowchart/box.c (box_move_handle): 
5037         * objects/custom/custom_object.c (custom_move_handle): 
5039         * objects/chronogram/chronoref.c (chronoref_move_handle): 
5040         * objects/chronogram/chronoline.c (chronoline_move_handle): 
5042         * objects/SADT/box.c (sadtbox_move_handle): 
5043         * objects/SADT/arrow.c (sadtarrow_move_handle): 
5044         * objects/SADT/annotation.c (annotation_move_handle): 
5046         * objects/Misc/analog_clock.c (analog_clock_move_handle): 
5048         * objects/GRAFCET/vergent.c (vergent_move_handle): 
5049         * objects/GRAFCET/vector.c (arc_move_handle): 
5050         * objects/GRAFCET/transition.c (transition_move_handle): 
5051         * objects/GRAFCET/step.c (step_move_handle): 
5052         * objects/GRAFCET/condition.c (condition_move_handle): 
5053         * objects/GRAFCET/action.c (action_move_handle): 
5055         * objects/FS/function.c: 
5056         * objects/FS/flow.c: 
5057         * objects/FS/flow-ortho.c (orthflow_move_handle): 
5058         * objects/FS/flow-poly.c (flow_move_handle): 
5060         * objects/UML/usecase.c (usecase_move_handle): 
5061         * objects/UML/state_term.c (state_move_handle): 
5062         * objects/UML/state.c (state_move_handle): 
5063         * objects/UML/small_package.c (smallpackage_move_handle): 
5064         * objects/UML/realizes.c (realizes_move_handle): 
5065         * objects/UML/object.c (objet_move_handle): 
5066         * objects/UML/note.c (note_move_handle): 
5067         * objects/UML/node.c (node_move_handle): 
5068         * objects/UML/message.c (message_move_handle): 
5069         * objects/UML/lifeline.c (lifeline_move_handle): 
5070         * objects/UML/large_package.c (largepackage_move_handle): 
5071         * objects/UML/implements.c (implements_move_handle): 
5072         * objects/UML/generalization.c (generalization_move_handle): 
5073         * objects/UML/fork.c (fork_move_handle): 
5074         * objects/UML/dependency.c (dependency_move_handle): 
5075         * objects/UML/constraint.c (constraint_move_handle): 
5076         * objects/UML/compprop.c (compprop_move_handle): 
5077         * objects/UML/component.c (component_move_handle): 
5078         * objects/UML/branch.c (branch_move_handle): 
5079         * objects/UML/association.c (association_move_handle): 
5080         * objects/UML/actor.c (actor_move_handle): 
5081         * objects/UML/activity.c (state_move_handle): 
5082         * objects/UML/class.c (umlclass_move_handle): 
5084         * objects/standard/ellipse.c (ellipse_move_handle): 
5085         * objects/standard/zigzagline.c (zigzagline_move_handle): 
5086         * objects/standard/textobj.c (textobj_move_handle): 
5087         * objects/standard/polyline.c (polyline_move_handle): 
5088         * objects/standard/polygon.c (polygon_move_handle): 
5089         * objects/standard/line.c (line_move_handle): 
5090         * objects/standard/image.c (image_move_handle): 
5091         * objects/standard/bezier.c (bezierline_move_handle): 
5092         * objects/standard/arc.c (arc_move_handle): 
5093         * objects/standard/beziergon.c (beziergon_move_handle): 
5094         * objects/standard/box.c (box_move_handle): 
5095         
5096         * objects/ER/relationship.c (relationship_move_handle): 
5097         * objects/ER/participation.c (participation_move_handle): 
5098         * objects/ER/entity.c (entity_move_handle): 
5099         * objects/ER/attribute.c (attribute_move_handle): 
5100         
5101         * lib/polyshape.c (polyshape_move_handle): 
5102         * lib/polyshape.h: 
5103         * lib/orth_conn.c (orthconn_move_handle): 
5104         * lib/orth_conn.h: 
5105         * lib/neworth_conn.c (neworthconn_move_handle): 
5106         * lib/neworth_conn.h: 
5107         * lib/element.c (element_move_handle): 
5108         * lib/element.h: 
5109         * lib/connection.c (connection_move_handle): 
5110         * lib/connection.h: 
5111         * lib/beziershape.c (beziershape_move_handle): 
5112         * lib/beziershape.h: 
5113         * lib/bezier_conn.c (bezierconn_move_handle): 
5114         * lib/bezier_conn.h: 
5115         *BINARY COMPATIBILITY CHANGE*
5116         Update prototype for *_move_handle() to include connectionpoint,
5117         and also pass on modifiers.  Pass in connectionpoint where
5118         applicable. 
5119         
5120         * lib/dummy_dep.h (dummy_dep): Adding dummy dependencies for new
5121         file connectionpoint.c.
5123 2003-08-17  Danilo Šegan  <dsegan@gmx.net>
5125         * configure.in: Added "sr" and "sr@Latn" to ALL_LINGUAS.
5127 2003-08-15  Lars Clausen  <lrclause@cs.uiuc.edu>
5129         * lib/object.c (object_copy): Use g_malloc0 instead of g_malloc.
5131         * lib/beziershape.c (beziershape_update_data): Autoroute
5132         directions for beziershapes!
5134         * lib/connectionpoint.c (find_slope_directions): 
5135         * lib/connectionpoint.h: Function for finding the available
5136         directions on a slope.
5138         * lib/polyshape.c: Reasonable directions for
5139         connectionpoints.       
5141 2003-08-14  Lars Clausen  <lrclause@cs.uiuc.edu>
5143         * objects/Misc/analog_clock.c (analog_clock_update_arrow_tips): 
5144         * objects/GRAFCET/vergent.c (vergent_update_data): 
5145         * objects/GRAFCET/transition.c (transition_update_data): 
5146         * objects/GRAFCET/action.c (action_update_data): 
5147         * objects/GRAFCET/step.c (step_update_data): 
5148         * objects/FS/function.c (function_update_data): 
5149         * lib/connpoint_line.c (connpointline_putonaline): 
5150         * objects/ER/attribute.c (attribute_update_data): 
5151         * objects/ER/entity.c (entity_update_data): 
5152         * objects/ER/relationship.c (relationship_update_data): 
5153         * objects/chronogram/chronoline.c (chronoline_update_data): Set
5154         directions for connection points.
5156         * objects/UML/component.c (component_create): Set to allow
5157         parenting. 
5159         * app/create_object.c (create_object_button_press): 
5160         * app/diagram.[ch] (diagram_find_clicked_object_except): 
5161         * lib/diagramdata.[ch] (layer_find_closest_object_except): 
5162         Avoid parenting to objects you're connecting to (otherwise you
5163         couldn't make a connection out of a parenting object).  To do
5164         this, added functions to find the nearest object except a given
5165         list of objects.
5166         
5167         * app/render_libart.c: Rearrange libart include to avoid multiple
5168         include program (and put libart includes inside #ifdef!)
5170 2003-08-13  Lars Clausen  <lrclause@cs.uiuc.edu>
5172         * lib/dialibartrenderer.c: Don't include art_config.h if others
5173         also do, as it isn't #ifdef'd.
5175         * objects/flowchart/ellipse.c (ellipse_update_data): Add
5176         directions for connection points.
5178 2003-08-12  Lars Clausen  <lrclause@cs.uiuc.edu>
5180         * objects/flowchart/box.c (box_update_data): Add directions, use
5181         connpoint_update. 
5182         (box_load): Use g_malloc0.
5184         * lib/Makefile.am (libdia_la_SOURCES):
5185         * lib/connectionpoint.c (connpoint_update): 
5186         Function to call to update a connection point info in _update_data().
5187         
5188         * lib/connectionpoint.h: Convenience DIR_ macros.
5190         * app/preferences.c (prefs_data): Make pretty formatted XML the
5191         default.
5193         * lib/dialibartrenderer.c: 
5194         * app/render_libart.c: Make sure art_config.h is included, cause
5195         some libart headers are broken.
5197         * configure.in (HAVE_FREETYPE): Restore CPPFLAGS to old value
5198         after test.  Add freetype-config cflags to cflags variable.
5200 2003-08-11  Lars Clausen  <lrclause@cs.uiuc.edu>
5202         * app/authors.h: Credits for Krzysztof.
5204         * sheets/Flowchart.sheet.in: Updated descriptions from Krzysztof
5205         Foltman <kfoltman@onet.pl>.  It occurs to me that the name (rather
5206         than the description) is visible in the title of the properties
5207         dialog.  That ought to be a short description (translatable),
5208         though we still want long descriptions for the tooltips.  Hmmm...
5210         * configure.in: Updated to use AC_LINK_IFELSE instead of
5211         AC_TRY_COMPILE, also force to link to check libs on Solaris.
5213         * objects/ER/entity.c (entity_load): 
5214         * objects/ER/attribute.c (attribute_load): 
5215         * lib/attributes.c (attributes_set_default_font): 
5216         Check if font is non-null before unreffing.
5217         
5218 2003-08-08  Lars Clausen  <lrclause@cs.uiuc.edu>
5220         * app/diagram.c (diagram_ungroup_selected) 
5221         (diagram_group_selected): Use the undo apply to make sure grouping
5222         and ungrouping is done in consistent manners.  This removes a fair
5223         amount of duplicated code from diagram.c.
5225         * app/undo.c (ungroup_objects_revert, ungroup_objects_apply) 
5226         (group_objects_revert, group_objects_apply): Working undo/redo for
5227         diagram tree updates.  The initial actions still don't quite work.
5229 2003-08-07  Lars Clausen  <lrclause@cs.uiuc.edu>
5231         * app/create_object.c (create_object_button_press): 
5232         * app/undo.[ch]: 
5233         * app/diagram.c: Undo support for parenting.  Uses apply/revert in
5234         undo only for manipulating the parent/child relationships.  Things
5235         like removing an object doesn't use the undo functions for
5236         parenting, so any updates to come (like to diagramtree) should be
5237         done in those, too.
5239 2003-08-03  Hans Breuer  <hans@breuer.org>
5241         * app/create_object.c : minor formating and g_new0 for
5242         tool creation
5244         * lib/bezier_conn.[hc] lib/beziershape.[hc]
5245           lib/prop_geomtypes.c (prop_geomtypes_register)
5246           objects/standard/bezier.c objects/standard/beziergon.c :
5247         ability to set bezpoints via StdProp api
5249         * plug-ins/python/pydia-property.c : convert list of tuples
5250         to BEZPOINTARRAY
5252         *  plug-ins/python/diasvg_import.py : use it to
5253         implement part of path parsing. Also minor improvements
5254         like inheritance of group attributes to members,
5255         whitespace, title and style:text/css ignoring ;-)
5257 2003-08-02  Hans Breuer  <hans@breuer.org>
5259         * lib/connections.c (connection_move_handle): return
5260         something to make it compile
5261         * lib/object.c(190) : error C4033: 'object_list_move_delta_r' 
5262         must return a value -> dito
5263         [Is there a warnings-as-errors switch we could use with gcc 
5264          to avoid such in future ?]
5266         * plug-ins/python/pydia-object.h : define *_Check macros
5267         * plug-ins/python/diamodule.c : provide dia.group_create()
5268         * plug-ins/python/pydia-diagramdata.c : add 
5269         DiaDiagramData.add_layer()
5270         * plug-ins/python/pydia-property.c : allow to set color by
5271         tuple of doubles
5273         *  plug-ins/python/diasvg_import.py : based on the above
5274         implement a) group support, b) rgb(1,2,3) color handling,
5275         and somewhat fishy data:image/png;base64 support (create
5276         temporary files from inline image data)
5277         d) dump the import errors as text into an 'Error' layer
5279         *  plug-ins/python/diasvg.py : add xmlns:xlink, removed a
5280         stray " in draw_rect and corrected error message formating 
5282         * plug-ins/pydia/pydia-geometry.c : removed ## to make it
5283         compile with gcc 3.3, fixes bug #117204. Thanks to Daniel 
5284         Jacobowitz.
5285         
5286 2003-08-01  Hubert Figuiere  <hfiguiere@teaser.fr>
5288         * app/magnify.c (create_magnify_tool): allocate with g_new0()
5290         * app/preferences.c (prefs_create_dialog): use checkboxes for boolean 
5291         preferences values (see bug 118570). Also group items into a GtkFrame.
5293 2003-07-31  Lars Clausen  <lrclause@cs.uiuc.edu>
5295         * app/menus.c:
5296         * app/menus.h:
5297         * app/commands.h: 
5298         * app/commands.c (objects_unparent_children_callback): 
5299         * app/diagram.h: 
5300         * app/diagram.c (diagram_unparent_selected,
5301         (diagram_update_menu_sensitivity): 
5302         Added unparenting of single children.
5304         * lib/bezier_conn.c:
5305         * lib/bezier_conn.h:
5306         * lib/beziershape.c:
5307         * lib/beziershape.h:
5308         * lib/connection.c:
5309         * lib/connection.h:
5310         * lib/element.c:
5311         * lib/element.h:
5312         * lib/group.c:
5313         * lib/neworth_conn.c:
5314         * lib/neworth_conn.h:
5315         * lib/object.h:
5316         * lib/orth_conn.h:
5317         * lib/poly_conn.c:
5318         * lib/poly_conn.h:
5319         * lib/polyshape.c:
5320         * lib/polyshape.h:
5321         * objects/EML/instantiation.c:
5322         * objects/EML/interaction-ortho.c:
5323         * objects/EML/interaction.c:
5324         * objects/EML/process.c:
5325         * objects/ER/attribute.c:
5326         * objects/ER/entity.c:
5327         * objects/ER/participation.c:
5328         * objects/ER/relationship.c:
5329         * objects/FS/flow-ortho.c:
5330         * objects/FS/flow-poly.c:
5331         * objects/FS/flow.c:
5332         * objects/FS/function.c:
5333         * objects/GRAFCET/action.c:
5334         * objects/GRAFCET/condition.c:
5335         * objects/GRAFCET/step.c:
5336         * objects/GRAFCET/transition.c:
5337         * objects/GRAFCET/vector.c:
5338         * objects/GRAFCET/vergent.c:
5339         * objects/Misc/analog_clock.c:
5340         * objects/SADT/annotation.c:
5341         * objects/SADT/arrow.c:
5342         * objects/SADT/box.c:
5343         * objects/UML/activity.c:
5344         * objects/UML/actor.c:
5345         * objects/UML/association.c:
5346         * objects/UML/branch.c:
5347         * objects/UML/class.c:
5348         * objects/UML/classicon.c:
5349         * objects/UML/component.c:
5350         * objects/UML/constraint.c:
5351         * objects/UML/dependency.c:
5352         * objects/UML/fork.c:
5353         * objects/UML/generalization.c:
5354         * objects/UML/implements.c:
5355         * objects/UML/large_package.c:
5356         * objects/UML/lifeline.c:
5357         * objects/UML/message.c:
5358         * objects/UML/node.c:
5359         * objects/UML/note.c:
5360         * objects/UML/object.c:
5361         * objects/UML/realizes.c:
5362         * objects/UML/small_package.c:
5363         * objects/UML/state.c:
5364         * objects/UML/state_term.c:
5365         * objects/UML/usecase.c:
5366         * objects/chronogram/chronoline.c:
5367         * objects/chronogram/chronoref.c:
5368         * objects/custom/custom_object.c:
5369         * objects/flowchart/box.c:
5370         * objects/flowchart/diamond.c:
5371         * objects/flowchart/ellipse.c:
5372         * objects/flowchart/parallelogram.c:
5373         * objects/network/bus.c:
5374         * objects/network/wanlink.c:
5375         * objects/standard/arc.c:
5376         * objects/standard/bezier.c:
5377         * objects/standard/beziergon.c:
5378         * objects/standard/box.c:
5379         * objects/standard/ellipse.c:
5380         * objects/standard/image.c:
5381         * objects/standard/line.c:
5382         * objects/standard/polygon.c:
5383         * objects/standard/polyline.c:
5384         * objects/standard/textobj.c:
5385         * objects/standard/zigzagline.c:
5386         Binary compatibility update:  Added return value for foo_move() and
5387         foo_move_handle().  Orthconn derivatives also returns change from
5388         orthconn_move_handle().
5389         
5390         * lib/orth_conn.c: Undo support for autorouting.  Neworthconn
5391         doesn't support it yet.
5393         * lib/object.c (object_list_move_delta_r, object_list_move_delta):
5394         Add returning ObjectChange from object moves.  Needs to handle
5395         multiple object moves.
5397         * app/modify_tool.c (modify_motion, modify_release): Add
5398         ObjectChange from move & move_handle to undo stack.
5400         * objects/EML/instantiation.c (instantiation_move): Removing
5401         duplicate move & update.
5403 2003-07-30  Lars Clausen  <lrclause@cs.uiuc.edu>
5405         * plug-ins/xfig/xfig-export.c: Added support for arrow head
5406         export.  Many arrow types not supported by XFig, replacing those
5407         with standard arrows.  Not sure whether it'd be better to render
5408         them as a group of lines instead.  You'd lose the arrow-ness for
5409         further editing, but preserve the actual shape of it.  Also added
5410         support for dash length.
5412         * plug-ins/xfig/xfig-import.c: Added support for dash length settings.
5414         * plug-ins/xfig/fig-format-3.2: Added copy of Fig format
5415         description for version 3.2, for reference.
5417         * plug-ins/xfig/xfig-import.c: Added import of arrows.
5419         * app/menus.c: Removed prefs item from Gnome diagram menu.  Made
5420         Align Vertical Adjacent call _v rather than _h.
5422 2003-07-29  Hubert Figuiere  <hfiguiere@teaser.fr>
5424         * app/scroll_tool.c (create_scroll_tool): 
5425         * app/modify_tool.c (create_modify_tool): use g_new0() to
5426         initialize the tool
5428 2003-07-29  Lars Clausen  <lrclause@cs.uiuc.edu>
5430         * configure.in: Added proper settings for XSLT_LIBS and XSLT_CFLAGS.
5432 2003-07-24  Pablo Saratxaga  <pablo@mandrakesoft.com>
5434         * configure.in: Added Macedonian (mk) to ALL_LINGUAS
5436 2003-07-23  Dmitry G. Mastrukov  <dmitry@taurussoft.org>
5438         * configure.in: Added Belarusian to ALL_LINGUAS.
5440 2003-07-19  Hans Breuer  <hans@breuer.org>
5442         [
5443          Make the xslt plug-in work on win32, too. It appears
5444          to require a quite recent version of libxml and libxslt,
5445          otherwise windoze pathes aren't translated correctly
5446          during file processing
5447         ]
5449         * plug-ins/xslt/xslt.h : #include <glib.h> before 
5450         using G_OS_WIN32
5452         * plug-ins/xslt/xslt.c : plugged some memory leaks and do
5453         the 'script' file finding similar to how it is done
5454         with the python scripts (no need for hardcoded pathes,
5455         removed the 'plugin' part from the path)
5457         * plug-ins/xslt/stylesheets.xml : added again. It does
5458         not have any path but only the pure filename again
5460         * plug-ins/xslt/stylesheets.xml.in : removed
5462         * plug-ins/xslt/Makefile.am : removed 'plugin' and the
5463         rule to process stylesheets.xml.in
5465         * plug-ins/makefile.msc : added xslt
5467 2003-07-19  Hans Breuer  <hans@breuer.org>
5469         Finally Dia learned to remember the recent selected sheet
5471         * app/preferences.[hc] : added prefs.recent_sheet
5472         * app/interface.c : restore and remember the sheet-option-menu
5473         history, but only if the respective number is stiil available.
5474         This additional adds robustness against running Dia without
5475         any sheet (e.g. installation problems)
5476         * app/app_procs.c : call prefs_safe() in app_exit() to remember
5477         changes which are not done by the prefernces dialog
5479         * app/diagram_tree_menu.c app/diagram_tree_menu_callbacks.c :
5480         removed every call (especially the conditional ones) to prefs_safe().
5481         Before prefs_safe() was called _many_ times during Dia startup
5483 2003-07-18  Hans Breuer  <hans@breuer.org>
5485         * app/makefile.msc lib/makefile.msc lib/libdia.def :
5486         updated win32 build
5488         * lib/color.c : use gtk_widget_get_default_visual();
5489         as suggested in #114536
5491         * app/interface.c app/disp_callbacks.c :
5492         moved round_up () to the latter file where it is used
5494         * app/linewidth_area.c : #include "interface.h" for
5495         interface_get_toolbox_shell()
5497 2003-07-18  Hubert Figuiere  <hfiguiere@teaser.fr>
5499         * plug-ins/pixbuf/.cvsignore
5500         * shapes/Cisco/.cvsignore: 
5501         added cvsignore
5503 2003-07-17  Lars Clausen  <lrclause@cs.uiuc.edu>
5505         * app/dia-props.c (diagram_properties_retrieve): Use
5506         diagram_get_name() to add the diagram name to the diagram
5507         properties dialog.
5509         * app/diagram.h: 
5510         * app/diagram.c (diagram_get_name): New function to get a
5511         reasonable diagram name.
5513         * lib/diagramdata.h: Added major_lines, dynamic and colour to grid
5514         info.  Still need to be able to set dynamic grid.  Also ought to
5515         follow Gnome style and have instant apply.
5517         * app/preferences.h: 
5518         * app/preferences.c (prefs_data): Remove option to use stippled
5519         grid, add option for major line offset.  Default to 5 minor lines
5520         per major line.
5521         Add option for dynamically sized grid.
5523         * app/display.c (ddisplay_render_pixmap): Call pagebreak_draw as well.
5525         * app/grid.c: Pagebreak drawing separated out.  Grid drawing using
5526         stippled/solid to display minor/major grid lines.  Line drawing in
5527         separate functions away from calculating line distance.
5529         * app/grid.h: Split page break drawing out of grid_draw.
5531         * app/layer_dialog.c (layer_dialog_show): Patch from Hubert
5532         Figuiere <hfiguiere@teaser.fr>:  Layer dialog show go to front
5533         when menu item is selected.
5535 2003-07-15  Lars Clausen  <lrclause@cs.uiuc.edu>
5537         * configure.in: Removed -Winline flag to make way for important
5538         warnings. 
5540         * samples/UML-demo.dia: Adjusted for 0.91 font size, saved as
5541         non-compressed.  Should fix bug #117381, also look prettier.
5542         
5543         * Makefile.am: 
5544         * dia.desktop.in: Patch from Mark McLoughlin <mark@skynet.ie>:
5545         Set up desktop info more properly.
5547 2003-07-13  Lars Clausen  <lrclause@cs.uiuc.edu>
5549         * activity.c:
5550         * actor.c:
5551         * branch.c:
5552         * class.c:
5553         * classicon.c:
5554         * component.c:
5555         * large_package.c:
5556         * lifeline.c:
5557         * node.c:
5558         * note.c:
5559         * object.c:
5560         * small_package.c:
5561         * state.c:
5562         * state_term.c:
5563         * usecase.c: 
5564         Autorouting directions patch from Krzysztof Foltman
5565         <kfoltman@onet.pl>.
5567         * app/menus.c: Wrong GNOME paren fixed.  Correct callbacks for
5568         GNOME parent menu items.
5569         
5570         * app/authors.h: Added Vadim to contributors list.
5572 2003-07-12  Lars Clausen  <lrclause@cs.uiuc.edu>
5574         * app/commands.[ch]: 
5575         * app/create_object.c: 
5576         * app/disp_callbacks.[ch]: 
5577         * app/diagram.[ch]: 
5578         * app/interface.c: 
5579         * app/load_save.c: 
5580         * app/menus.[ch]:
5581         * app/modify_tool.c
5582         * app/undo.[ch]:
5583         * lib/Makefile.am:
5584         * lib/group.c: 
5585         * lib/object.[ch]: 
5586         * lib/parent.[ch]:
5587         * objects/UML/large_package.c: Patch from Vadim Berezniker
5588         <vadim@berezniker.com>: 
5589         Objects may "parent" other objects, i.e. contain them within
5590         themselves, restrain them and move them along.  Some more stuff is
5591         needed, such as selection and individual unparenting.  This adds
5592         parenting to UML - Large Package rather than Box.
5594 2003-07-11  Lars Clausen  <lrclause@cs.uiuc.edu>
5596         * app/linewidth_area.c: Patch from Krzysztof Foltman
5597         <kfoltman@onet.pl>: Make linewidth dialog conform to HIG (well,
5598         conform more, at least:).
5600         * plug-ins/metapost/render_metapost.[ch] : Applied patch from
5601         Chris Sperandio <sperandi@eng.usf.edu>:  Fixed linewidths and
5602         arcs.  Implemented images (though there is some pixelization and
5603         banding in the output).  Changed output file format to be a little
5604         more readable.  
5606         * app/app_procs.c (app_exit): Added message for double exit, which
5607         shouldn't happen any more.  Also preventing strange g_object_unref
5608         messages by having a printf after gtk_main_quit.  This is really
5609         weird.
5611         * app/interface.c (toolbox_delete): Avoid double app_exit call by
5612         removing handler for destroy when delete is called.
5614 2003-07-07  Lars Clausen  <lrclause@cs.uiuc.edu>
5616         * app/display.h: 
5617         * app/display.c (ddisplay_scroll_to_object,
5618         ddisplay_scroll_center_point):  New function for easy scrolling to
5619         object or point.
5621 2003-07-06  Lars Clausen  <lrclause@cs.uiuc.edu>
5623         * plug-ins/xslt/Makefile.am: Patch from Hubert Figuiere:  Add
5624         $(srcdir) on stylesheets.xml.
5626         * app/menus.c: Patch from Hubert Figuiere: Adds help menu to
5627         diagram menus (since they're at the top by default now).  Also
5628         move the Properties... menu item from Dialogs to Objects.  Dialogs
5629         menu should disappear at some point.
5631         * autogen.sh: Patch from Hubert Figuiere: Don't automatically call
5632         ./configure from ./autogen.sh, as configure may need to be run
5633         from a different directory.  (Also more standard this way.)
5635         * app/app_procs.c (app_init): 
5636         * app/Makefile.am (INCLUDES): Gnome standardization patch from
5637         Alex. 
5639 2003-07-03  Lars Clausen  <lrclause@cs.uiuc.edu>
5641         * objects/flowchart/parallelogram.c (pgram_update_data):
5642         Left/right alignment for parallelograms.  Doesn't use all
5643         available space, but then pgrams also ignore their shear value.
5644         This thing needs a loving hand.
5646 2003-07-01  Hans Breuer  <hans@breuer.org>
5648         * lib/properties.h : introduce PROP_FLAG_OPTIONAL
5649         * lib/proplist.c : don't complain if optional attr is missing
5650         * lib/orth_conn.h : make "orth_autoroute" optional to
5651         stop complaining with older files.
5653 2003-06-13  Guntupalli Karunakar  <karunakar@freedomink.org>
5655         * configure.in: Added "ml" for Malayalam in ALL_LINGUAS.
5657 2003-06-05  Andrew Halper  <ashalper@cox.net>
5659         * app/diagram_tree.c : add scrolling of drawing area
5660         to desired object on "Locate".  Patch modified to use new ddisplay
5661         function ddisplay_scroll_to_object().
5663 2003-06-11  Lars Clausen  <lars@raeder.dk>
5665         * lib/diagramdata.h: Added major_lines, dynamic and colour to grid
5666         info.  Before next version, the grid dialog (view dialog, really)
5667         must be redone to allow a) instant apply, b) apply to all
5668         diagrams, and c) setting colour, dynamic, major lines.
5670         * app/preferences.h: 
5671         * app/preferences.c (prefs_data): Remove option to use stippled
5672         grid, add option for major line offset.  Default to 5 minor lines
5673         per major line.
5674         Add option for dynamically sized grid.
5676         * app/display.c (ddisplay_render_pixmap): Call pagebreak_draw as well.
5678         * app/grid.c: Pagebreak drawing separated out.  Grid drawing using
5679         stippled/solid to display minor/major grid lines.  Line drawing in
5680         separate function away from calculating line distance.
5682         * app/grid.h: Split page break drawing out of grid_draw.
5684 2003-05-15  Hans Breuer  <hans@breuer.org>
5686         * plug-ins/python/diasvg.py : add xlink definition,
5687         also avoid to put spaces into attribute values. At least
5688         Sodipodi doesn't like them in width/height attributes
5690         * plug-ins/python/diasvg_import.py : add simple scaling.
5691         Some (more) handling for <svg>, <desc>, <circle>        
5693         * plug-ins/python/scascale.py : (new file) which does
5694         some experimental scaling via StdProp api
5696         * plug-ins/python/pydia-cpoint.c 
5697           plug-ins/python/pydia-handle.c : return PyDiaPoint for
5698         obj.pos not simple tuples. PyDiaPoint has a tuple interface
5699         so this may even be api compatible ...
5701 2003-05-11  Hans Breuer  <hans@breuer.org>
5703         * app/line_area.c : add window position persitence
5705         * lib/poly_conn.[hc] lib/polyshape.[hc] : allow to set 
5706         'poly_points' via StdProp api
5707         * lib/neworth_conn.h : don't rely on OrthConn and 
5708         NewOrtConn having the same struct offsets
5710         * lib/properties.h : introduce PROP_FLAG_WIDGET_ONLY
5711         to help separating 'useful' properies - in terms of
5712         the PyDia access
5714         * objects/custom/custom_object.c
5715           objects/UML/*.c
5716         add the missing prop_desc_list_calculate_quarks to
5717         all the *_describe_props()
5719         * objects/standard/beziergon.c objects/standard/bezier.c :
5720         explicit initializtion of default_user_data
5721         * objects/standard/polygon.c objects/standard/polyline.c :
5722         Same here. Also use POLY<CONN|SHAPE>_COMMON_PROPERTIES
5724         * plug-ins/python/diamodule.c : implement dia.register_import
5726         * plug-ins/python/makefile.msc : need to link with Pango
5727         for pango_color_parse()
5729         * plug-ins/python/pydia-property.c : add a bunch of type
5730         conversions to PyDiaProperty_ApllyToObject()
5732         * plug-ins/python/diasvg_import.py : (new file) which currently
5733         is mainly a stress test for PyDia but for some files already
5734         produces better results than svg-import.c
5736 2003-05-06  Lars Clausen  <lrclause@cs.uiuc.edu>
5738         * objects/UML/uml.c (uml_get_operation_string): Avoid ':' on
5739         type-less operations.
5741 003-05-03  Hasbullah Bin Pit  <sebol@ikhlas.com>
5743         * configure.in(ALL_LINGUAS): Added "ms".
5745 2003-05-01  Lars Clausen  <lrclause@cs.uiuc.edu>
5747         * plug-ins/xslt/xslt.c (xslt_ok): 
5748         * plug-ins/shape/shape-export.c (new_shape_renderer): 
5749         * plug-ins/svg/render_svg.c (new_svg_renderer): 
5750         * plug-ins/hpgl/hpgl.c (export_data): 
5751         * plug-ins/dxf/dxf-export.c (export_dxf): 
5752         * plug-ins/metapost/render_metapost.c (export_metapost): 
5753         * plug-ins/pstricks/render_pstricks.c (export_pstricks): 
5754         * plug-ins/xfig/xfig-export.c (export_fig): 
5755         * plug-ins/wpg/wpg.c (export_data): 
5756         * plug-ins/cgm/cgm.c (export_cgm): 
5757         * app/render_eps.c (export_eps): 
5758         * app/export_png.c (export_png_ok): 
5759         * app/load_save.c (diagram_data_save): Adding and standardizing
5760         output file error messages to include fopen error message.
5762 2003-05-01  Steffen Macke <sdteffen@web.de>
5764         * app/persistence.c: do not use unistd.h for MSVC build
5766 2003-04-30  Lars Clausen  <lrclause@cs.uiuc.edu>
5768         * sheets/Assorted.sheet.in
5769         * sheets/Circuit.sheet.in
5770         * sheets/Contact.sheet.in
5771         * sheets/EML.sheet.in
5772         * sheets/ER.sheet.in
5773         * sheets/Electric.sheet.in
5774         * sheets/FS.sheet.in
5775         * sheets/Flowchart.sheet.in
5776         * sheets/GRAFCET.sheet.in
5777         * sheets/Logic.sheet.in
5778         * sheets/MSE.sheet.in
5779         * sheets/Misc.sheet.in
5780         * sheets/Pneumatic.sheet.in
5781         * sheets/SADT.sheet.in
5782         * sheets/SDL.sheet.in
5783         * sheets/UML.sheet.in
5784         * sheets/chronogram.sheet.in
5785         * sheets/ciscohub.sheet.in
5786         * sheets/ciscomisc.sheet.in
5787         * sheets/cisconetwork.sheet.in
5788         * sheets/ciscorouter.sheet.in
5789         * sheets/civil.sheet.in
5790         * sheets/network.sheet.in
5791         * sheets/sybase.sheet.in:
5792         Patch from Jan-Willem Harmanny <jwharmanny@zeelandnet.nl>
5793         standardizes shape descriptions to use no articles, no 'create
5794         ...'.
5795         
5796         * app/interface.c (tool_data): Standard objects follow same
5797         standard as sheets.
5799 2003-04-29  Lars Clausen  <lrclause@cs.uiuc.edu>
5801         * app/color_area.c (color_area_edit): More informative title on
5802         color selection dialog.
5804         * app/disp_callbacks.c (ddisplay_drop_object): Update menu
5805         sensitivity when dropping object in.  Also reset tool to pointer.
5807         * objects/flowchart/diamond.c (diamond_update_data): 
5808         * objects/flowchart/parallelogram.c (pgram_update_data): Added
5809         left and right alignment options.
5811 2003-04-28  Lars Clausen  <lrclause@cs.uiuc.edu>
5813         * objects/flowchart/box.c: Added left and right alignment options.
5815 2003-04-26  Lars Clausen  <lrclause@cs.uiuc.edu>
5817         * app/persistence.c (persistence_load): Test existence of
5818         persistence file before trying to open it.
5820 2003-04-25  Lars Clausen  <lrclause@cs.uiuc.edu>
5822         * app/properties.c: Escape now closes properties dialogs.
5824 2003-04-25  Hans Breuer  <hans@breuer.org>
5826         * app/config.h.win32 : bump version to 0.91+cvs
5828         * app/makefile.msc lib/makefile.msc lib/libdia.def : updated
5830         * lib/dia_dirs.c : G_OS_WIN32: #define mkdir(s,a) _mkdir(s)
5832         * app/commands.c : don't leak "netscape" if getenv("BROWSER")
5833         returns NULL
5835         * app/presistence.c : need to #include "dia_xml_libxml.h"
5836         for xmlDiaParseFile
5838         * app/layer_dialog.c : make delayed creation work by protecting
5839         all non static layer_dialog_*() with :
5840            if (layer_dialog == NULL || layer_dialog->dialog == NULL)
5841              create_layer_dialog();
5842         * app/app_procs.c : removed /* create_layer_dialog(); */
5844         * objects/uml/association.c : give it a minimal StdProp
5845         implementation to fix bug #108896
5846         * lib/object_defaults.c : don't try to copy props if there
5847         is no obj->ops->describe_props
5849 2003-04-24  Lars Clausen  <lrclause@cs.uiuc.edu>
5851         * objects/standard/image.c (image_create): 
5852         * objects/standard/ellipse.c (ellipse_create): 
5853         * objects/standard/box.c (box_create): 
5854         * objects/flowchart/ellipse.c (ellipse_create): 
5855         * objects/flowchart/diamond.c (diamond_create): 
5856         * objects/flowchart/box.c (box_create): 
5857         * objects/custom/custom_object.c (custom_create): 
5858         * objects/ER/relationship.c (relationship_create): 
5859         * objects/ER/entity.c (entity_create): 
5860         * objects/ER/attribute.c (attribute_create): Initialize
5861         elem->height to DEFAULT_HEIGHT instead of DEFAULT_WIDTH.
5863         * lib/dia_svg.c (dia_svg_parse_style): Added case to set center
5864         alignment. 
5866         * configure.in: 
5867         * plug-ins/Makefile.am: 
5868         * plug-ins/xslt/Makefile.am: 
5869         * plug-ins/xslt/xslt.c (dia_plugin_init): 
5870         Patch from Götz Waschk <waschk@informatik.uni-rostock.de> uses
5871         automake-style if to only include xslt dir when needed.  Works
5872         with automake 1.4 and up, at least.
5874 2003-04-22  Lars Clausen  <lrclause@cs.uiuc.edu>
5876         * lib/diasvgrenderer.c (draw_string): 
5877         * lib/dia_svg.c (dia_svg_parse_style): Use
5878         text-anchor:(start|middle|end).
5880         * lib/diasvgrenderer.c (draw_polygon, fill_polygon): Use svg
5881         polygon rather than polyline & avoid missing line pieces.
5882         (get_draw_style): Set fill-opacity to 0 on draw_style to avoid
5883         black-filled things.
5885 2003-04-21  Lars Clausen  <lrclause@cs.uiuc.edu>
5887         * app/persistence.c (persistence_load): Check that persistence
5888         file exists before trying to read it.
5889         (persistence_update_window): Removed printf.
5891         * objects/GRAFCET/step.c: Don't copy defaults for name and id.
5893         * lib/autoroute.c: Take badness into the layouters again, as some
5894         of them know they can do things that are pretty but would be
5895         counted as ugly by the default calculation.
5897         * objects/UML/large_package.c: Shrink package name box when no
5898         stereotype is present.
5900         * lib/orth_conn.h (ORTHCONN_COMMON_MENUS): 
5901         * lib/orth_conn.c: Added object menu item for autorouting.
5903         * objects/FS/flow-ortho.c (orthflow_get_object_menu): 
5904         Autorouting, plus set initial dragging handle to be the end, not
5905         the middle.
5906         (orthflow_draw): Flipped arrow place to be at the end, as
5907         originally intended (got lost in arrow update).
5909         * objects/standard/zigzagline.c (zigzagline_get_object_menu): 
5910         * objects/UML/dependency.c (dependency_get_object_menu): 
5911         * objects/UML/association.c (association_get_object_menu): 
5912         * objects/UML/realizes.c (realizes_get_object_menu): 
5913         * objects/SADT/arrow.c (sadtarrow_get_object_menu): 
5914         * objects/GRAFCET/vector.c (arc_get_object_menu): 
5915         * objects/ER/participation.c (participation_get_object_menu): 
5916         * objects/EML/instantiation.c (instantiation_get_object_menu): 
5917         * objects/UML/generalization.c (generalization_get_object_menu): 
5918         * objects/EML/interaction-ortho.c (interaction_ortho_get_object_menu): 
5919         Autorouting setup (currently disabled for SADT/arrow).
5920         
5921 2003-04-19  Lars Clausen  <lrclause@cs.uiuc.edu>
5923         * lib/autoroute.c: Removed printfs.
5925         * lib/orth_conn.c: 
5926         * lib/autoroute.[ch] (autoroute_layout_orthconn): Handle
5927         non-connected orthconns too.
5929 2003-04-18  Lars Clausen  <lrclause@cs.uiuc.edu>
5931         * lib/orth_conn.h: 
5932         * lib/orth_conn.c: Function to set autorouting on/off, use
5933         autorouting in move_handle (turns off when a middle handle is
5934         moved), added to standard orthconn props. 
5936         * app/disp_callbacks.c (create_object_menu, popup_object_menu):
5937         Stopped signal emission for check menu items being set to on/off.
5939         * objects/standard/zigzagline.c: Added autorouting object menu item.
5941         * lib/autoroute.c: Added last cases of autoroute layout, fixed
5942         floating point comparison bug, cleaned up layouters, tweaked
5943         badness to allow kinks. 
5945 2003-04-17  Lars Clausen  <lrclause@cs.uiuc.edu>
5947         * lib/connectionpoint.h: Changed DIR_* macros to go around the
5948         clock. 
5950         * lib/orth_conn.[ch] (orthconn_set_points): New function to set all
5951         points at once.
5952         * objects/standard/zigzagline.c (zigzagline_move_handle): Removed
5953         old cruft, added call to autoroute (currently cannot be turned
5954         off).  Need to check what undo thinks about this.
5955         * lib/autoroute.[ch]: Fairly working simple layout.
5957         * lib/Makefile.am (libdia_la_SOURCES): Added autoroute files.
5958         * lib/autoroute.[ch]: Start of proper autorouting functionality.
5960 2003-04-10  Lars Clausen  <lrclause@cs.uiuc.edu>
5962         * lib/prop_widgets.c: Show labels on ListProp.
5964 2003-04-11  Steffen Macke <sdteffen@web.de>
5966         * doc/en/dia-manual.xml: removed reference of non-existing authors 
5967         note.
5968         * doc/en/usage-objects-selecting: commented out misleading section
5969         references.
5971 2003-04-10  Lars Clausen  <lrclause@cs.uiuc.edu>
5973         * app/app_procs.c (app_init): Layer window now opened at startup
5974         only if needed.
5976         * lib/prop_widgets.c: Show labels on ListProp.
5978 2003-04-09  Steffen Macke <sdteffen@web.de>
5980         * doc/en/*.sgml: removed files
5981         * doc/en/*.xml: added files
5982         * doc/en/Makefile.am: switched to XML DocBook
5984 2003-04-09  Lars Clausen  <lrclause@cs.uiuc.edu>
5986         * plug-ins/xslt/xslt.c (dia_plugin_init): 
5987         * configure.in: Added --with-xslt-prefix to allow other XSLT
5988         placements than /usr/lib.
5990 2003-04-09  Steffen Macke <sdteffen@web.de>
5992         * lib/makefile.mingw: updated to include latest files, including 
5993         and linking libintl
5994         * lib/geometry.h: don't define isinf and finite for mingw gcc build
5996 2003-04-08  Lars Clausen  <lrclause@cs.uiuc.edu>
5998         * app/persistence.h:
5999         * app/persistence.c (persistence_register_window_create): 
6000         * app/app_procs.c (app_init): 
6001         Register window function that doesn't create the window unless it
6002         should be open.  Other windows should move to this, so startup
6003         speed can be reduced.
6004         
6005         * app/persistence.h: Removed call prototype for update_window, now
6006         done internally.
6007         * app/persistence.c (persistence_register_window): A number of
6008         fixes.  Doesn't forget position when window is closed.  Now
6009         actually loads prefs.
6011         * app/layer_dialog.c (create_layer_dialog): Removed extraneous
6012         event connect.
6014         * app/preferences.c (prefs_data): 
6015         * app/diagram_tree_window.h: 
6016         * app/diagram_tree_window.c: Added persistence registering.
6017         Removed prefs items storing size and openness. 
6019         * app/sheets_dialog.c (create_sheets_main_dialog): Added
6020         persistence registering.  
6022         * app/Makefile.am (dia_core_files): Added persistence files.
6024         * lib/dia_dirs.h: 
6025         * lib/dia_dirs.c (dia_config_ensure_dir): New function to ensure
6026         that dirs are present.
6028         * app/app_procs.c (app_init): Loads persistent values on startup.
6029         (app_exit): Saves persistent values on exit.
6031         * app/layer_dialog.c (create_layer_dialog): Registers the layer
6032         window for persistence.
6034         * app/persistence.[ch]: New files handling various kinds of
6035         persistence.
6037 2003-04-04  Lars Clausen  <lrclause@cs.uiuc.edu>
6039         * lib/arrows.c: Adjusted arrow head spacing, more systematic arrow
6040         head spacing calculations.  Added half-circle arrow from Matthieu
6041         Sozeau <mattam@netcourrier.com> 
6043 2003-04-03  Lars Clausen  <lrclause@cs.uiuc.edu>
6045         * app/app_procs.c (app_init): Moved layer dialog init to allow
6046         tooltips to be initialized.
6048         * app/interface.c (create_display_shell): More tooltips.
6050         * app/linewidth_area.c (linewidth_area_create) 
6051         (linewidth_area_events): 
6052         * app/color_area.c (color_area_events, color_area_create): 
6053         Made tooltips work by embedding drawing_area in event_box.
6055         * app/interface.c (create_display_shell,
6056         (create_lineprops_area, create_color_area): Added a few tooltips.
6058 2003-04-01  Lars Clausen  <lrclause@cs.uiuc.edu>
6060         * app/pixmaps/off-grid.xpm: 
6061         * app/pixmaps/on-grid.xpm: 
6062         * app/Makefile.am (EXTRA_DIST): Added snap to grid icons.
6064         * app/display.h: 
6065         * app/commands.c (view_snap_to_grid_callback): 
6066         * app/display.c (ddisplay_set_snap_to_grid) 
6067         (update_snap_grid_status): 
6068         * app/interface.c (create_display_shell, grid_toggle_snap): 
6069         Added snap-to-grid status button.
6071 2003-03-31  Lars Clausen  <lrclause@cs.uiuc.edu>
6073         * app/app_procs.c (app_init): Create a new diagram if a file on
6074         the command line isn't found.
6076 2003-03-17  Lars Clausen  <lrclause@cs.uiuc.edu>
6078         * lib/dialibartrenderer.c (draw_string): Correct color handling
6079         for AA.
6081 2003-03-14  Lars Clausen  <lrclause@cs.uiuc.edu>
6083         * NEWS: 
6084         * doc/en/dia-manual.sgml: 
6085         * doc/pl/dia-manual.sgml: 
6086         * configure.in: 
6087         * dia.spec (Release): 
6088         Version 0.91 is here!
6090 2003-02-10  Steffen Macke <sdteffen@web.de>
6092         * plug-ins/wmf/wmf.cpp: patch from Ken Tsukahara 
6093         <ken.tsukahara@tmt-d.co.jp>, fixes windows printing and WMF export of
6094         non-ANSI characters, closes #107980
6096 2003-03-04  Lars Clausen  <lrclause@cs.uiuc.edu>
6098         * configure.in: 
6099         * NEWS: 
6100         * dia.spec (Release): 
6101         * doc/en/dia-manual.sgml: Upping to pre6.
6103         * configure.in: Missing comma broke HAVE_IEEEFP_H test.
6105         * app/lineprops_area.c (dia_arrow_chooser_new): Fixing bug
6106         #107511:  Make arrow selector for correct arrow type.
6108 2003-03-03  Lars Clausen  <lrclause@cs.uiuc.edu>
6110         * shapes/Circuit/Makefile.am (SHAPES): Added hjumper.png to
6111         EXTRA_DIST.
6113 2003-03-02  Lars Clausen  <lrclause@cs.uiuc.edu>
6115         * doc/en/dia-manual.sgml: 
6116         * configure.in: 
6117         * NEWS: 
6118         * dia.spec (Release): Upping to pre5.
6120         * configure.in: Add freetype-config derived libs to the
6121         AC_CHECK_LIB statement for freetype.
6123 2003-02-28  Hans Breuer  <hans@breuer.org>
6125         [fix for bug #107203]
6127         * lib/diarenderer.c : add warning 'implementation'
6128         for fill_rect to avoid crashing with a renderer
6129         which does not implement this required function.
6131         * plug-ins/dxf/dxf-export.c : provide - still empty -
6132         'implementations' for fill_rect and fill_polygon 
6133         to suppress the above warnings. Now it works like
6134         in version 0.90 
6136 2003-02-28  Steffen Macke <sdteffen@web.de>
6138         * samples/all_objects.dia: New sheet containing all dia shapes
6139         and objects; one layer per sheet
6140         
6141 2003-02-28  Lars Clausen  <lrclause@cs.uiuc.edu>
6143         * lib/prop_text.c (multistringprop_get_widget,
6144         multistringprop_reset_widget, multistringprop_set_from_widget): 
6145         Now uses GtkTextView instead of deprecated stuff, and also works:)
6147         * configure.in: Slightly more informative error message for isinf.
6149         * dia.spec (Requires): Require libxml2 rather than libxml.
6151 2003-02-28  Steffen Macke <sdteffen@web.de>
6153         * shapes/Circuit/hjumper.png:
6154         * shapes/Circuit/hjumper.shape: added missing icon for horizontal
6155         jumper shape
6156         
6157 2003-02-26  Lars Clausen  <lrclause@cs.uiuc.edu>
6159         * doc/en/dia-manual.sgml: 
6160         * configure.in: 
6161         * dia.spec (Release):
6162         * NEWS: New prerelease 0.91pre4, two important fixes.
6164 2003-02-25  Lars Clausen  <lrclause@cs.uiuc.edu>
6166         * plug-ins/xslt/Makefile.am (EXTRA_DIST): Also dist
6167         stylesheets.xml.in 
6169         * app/commands.c (help_manual_callback): More correct URL for help
6170         page (include file://, was broken on Dillo without it).
6172 2003-02-24  Lars Clausen  <lrclause@cs.uiuc.edu>
6174         * app/disp_callbacks.c: Set modifed when text is changed.
6176         * app/modify_tool.c (modify_button_release): Allow undo for moving
6177         objects.
6179 2003-02-16  Lars Clausen  <lrclause@cs.uiuc.edu>
6181         * dia.spec: 
6182         * doc/en/dia-manual.sgml: 
6183         * NEWS: 
6184         * configure.in: New prerelease with important bugfix.
6185         * shapes/network/digitizing_board.png:
6186         * shapes/network/plotter.png: Re-adding with -kb.
6187         
6188 2003-02-17  Abel Cheung  <maddog@linux.org.hk>
6190         * app/app_procs.c (app_init): Add comment for translators.
6192 2003-02-16  Lars Clausen  <lrclause@cs.uiuc.edu>
6194         * lib/filter.c (filter_register_import, filter_register_export):
6195         Don't accept filters with NULL description.
6197         * lib/plug-ins.c (dia_plugin_load): Fail if there's no description
6198         (as we assume the description is available in other places).
6200 2003-02-15  Lars Clausen  <lrclause@cs.uiuc.edu>
6201         
6202         * app/disp_callbacks.c (ddisplay_vsb_update, ddisplay_hsb_update): 
6203         * app/display.c (ddisplay_resize_canvas): Use
6204         ddisplay_add_update_all().
6205         (ddisplay_add_update_all): Free display and update lists when
6206         doing update_all, as they'll be regenerated immediately to cover
6207         all visible area.  Fixes bug #106165, crash when resizing.  This
6208         appears to be the original AA crash bug, believed long extinct.
6210 2003-02-13  Lars Clausen  <lrclause@cs.uiuc.edu>
6212         * app/commands.c (help_manual_callback): Use file: protocol for
6213         help. 
6215         * plug-ins/xslt/.cvsignore: Ignore .o files, please.
6217         * plug-ins/xslt/stylesheets: Removed old-style config file.
6218         
6219         * plug-ins/xslt/stylesheets.xml.in: New XML-based config file.
6221         * plug-ins/xslt/Makefile.am: 
6222         * plug-ins/xslt/xslt.c: Applied patch from Matthieu, improved path
6223         handling (no more DIA_PLUGIN_PATH).
6225 2003-02-11  Lars Clausen  <lrclause@cs.uiuc.edu>
6227         * plug-ins/svg/render_svg.c: 
6228         * lib/diasvgrenderer.c: Fixed numeric localized output issues.
6230 2003-02-10  Lars Clausen  <lrclause@cs.uiuc.edu>
6232         * objects/SADT/arrow.c (sadtarrow_draw): Clamp cosa, cosb to 
6233         [-1.0, 1.0].  Shouldn't be necessary, but in some cases the
6234         side of the triangle is longer than the hypotenuse.  Rounding
6235         error suspected.
6237 2003-02-09  Lars Clausen  <lrclause@cs.uiuc.edu>
6239         * NEWS: 
6240         * configure.in: 
6241         * doc/en/dia-manual.sgml: Update for pre2.
6243         * app/menus.c (display_menu_items): Fixed wrongly place separators.
6245         * objects/flowchart/box.c (box_update_data): Applied patch from
6246         Eivind Tagseth <eivind-gnome@multinet.no> to allow resize (with
6247         comment). 
6249         * app/paginate_psprint.c (print_page): Set paper name, so it
6250         convinces ps printers to use to right size.
6252 2003-02-07  Lars Clausen  <lrclause@cs.uiuc.edu>
6254         * app/properties.c (properties_show): Hide the dialog if the
6255         object is NULL (get rid of 'no properties' randomly popping up).
6257 2003-02-06  Lars Clausen  <lrclause@cs.uiuc.edu>
6259         * plug-ins/pixbuf/pixbuf.c (export_data): Adjust width and height
6260         for diagrams not starting at origo.
6262 2003-02-05  Lars Clausen  <lrclause@cs.uiuc.edu>
6264         * dia.spec (BuildRequires): Use libxml2-devel.
6266         * plug-ins/pixbuf/Makefile.am: Added to CVS.
6268         * RELEASE-PROCESS: Note on RPM version numbers.
6270         * app/interface.c (create_display_shell): Don't set as toolbar
6271         under Unix, either.  Especially not the diagram shell.  It removes
6272         it from the taskbar and makes it unresizable, always-on-top with
6273         OpenBox.  TOOLBAR != TOOLBOX.  Setting toolbox to the only
6274         appropriate thing, UTILITY, is not good either, you lose resizing
6275         and minimizing/maximizing under OpenBox.
6277         * app/menus.c (display_menu_items): Set delete item to use Delete.
6279 2003-02-04  Lars Clausen  <lrclause@cs.uiuc.edu>
6281         * dia.spec (BuildRequires, Requires): Updated for Gtk2
6282         requirements.
6284         * app/disp_callbacks.c (ddisplay_canvas_events): Only add a
6285         display flush when getting focus in, or we may get an update after
6286         the diagram has been destroyed in some cases.  Fixes bug #105221.
6288         * plug-ins/xfig/xfig-import.c: Notes on the splines used by XFig.
6290         * lib/diarenderer.c: Notes on the basis matrix for our beziers.
6292         * app/app_procs.c (app_init): Fixed missing popt context for Gnome
6293         - gnome-compiled Dia will now read files specified on the command line.
6295 2003-02-03  Lars Clausen  <lrclause@cs.uiuc.edu>
6297         * INSTALL (REQUIREMENTS): Updated requirements section.
6299         * configure.in: Better finite() check from Mårten Svantesson
6300         <f95-msv@nada.kth.se>.  Doesn't seem to generate strange dangly
6301         if's. 
6302         
6303 2003-02-03  Lars Clausen  <lrclause@cs.uiuc.edu>
6305         * plug-ins/xfig/xfig-import.c: Notes on spline conversions.
6307         * app/app_procs.c (debug_break): Added some code to avoid
6308         over-eager optimizations removing the call.  Surely there's a
6309         nicer way, but I'm not sure how.
6311         * app/diapsft2renderer.c (draw_bezier_outline): Removed paps relic
6312         that set text to black.
6314 2003-02-02  Lars Clausen  <lrclause@cs.uiuc.edu>
6316         * NEWS: Mention of Twiki as doc source for Python.
6318         * plug-ins/pixbuf/pixbuf.c: Export with pixbuf if
6319         libart/libpng is not available.  Later when we have a way of
6320         letting the user pick options in the file select dialog we shall
6321         allow the choice when applicable.
6323 2003-02-02  Steffen Macke <sdteffen@web.de>
6325         * doc/en/usage-loadsave.sgml:
6326         * doc/en/usage-objects.sgml: patch from
6327         James K. Lowden <jklowden@schemamania.org> to fix
6328         some docbook errors
6329         
6330 2003-02-01  Lars Clausen  <lrclause@cs.uiuc.edu>
6332         * plug-ins/Makefile.am (SUBDIRS): 
6333         * plug-ins/pixbuf/pixbuf.c: 
6334         * plug-ins/pixbuf/Makefile.am: 
6335         * configure.in: 
6336         Added pixbuf plugin to Makefile.am, but for import only.  PNG
6337         export handled by libart, which is better. JPG export is
6338         discouraged.  BMP is not much used on Unix.  Next release will
6339         integrate libart to allow all outputs.
6341 2003-02-01  Hans Breuer  <hans@breuer.org>
6343         * app/preferences.c :
6344         * app/pagesetup.c :
6345         the last two dialogs with 'old' button order finally
6346         are converted to gtk2, no GnomeDialog in all of Dia 
6347         anymore :-) 
6349 2003-02-01  Hans Breuer  <hans@breuer.org>
6351         * app/filedlg.c : don't try to use a button as
6352         'overwrite-file-dialog'-parent, use the FileSelDialog
6353         instead
6355         * plug-ins/pixbuf/pixbuf.c : make it work with 
6356         system-visual-depth < 24. Remove 'bmp' from output
6357         format extensions, it just was wishful thinking.
6359         * plug-ins/python/Makefile.am : added the four new python 
6360         plug-ins mentioned below to pyplugin_DATA and EXTRA_DIST
6362 2003-02-01  Hans Breuer  <hans@breuer.org>
6364         * NEWS : updated content beside dependencies
6366 2003-02-01  Hans Breuer  <hans@breuer.org>
6368         * lib/arrow.h : arrow_types needs to be declared as DIAVAR
6369         to make it useable across DLL boundaries
6370         * app/lineprops_area.c : same code to access arrow_types
6371         on all platforms
6373         * objects/UML/class.c : the non empty string is e.g.
6374         comment != NULL && comment[0] != '\0'
6375         * objects/UML/uml.c : same here, don't bother with
6376         empty operation stereotypes
6378 2003-02-01  Steffen Macke <sdteffen@web.de>
6380         * app/lineprops_area.c: latest changes do not work on
6381         windows, using old code without tooltips
6382         * makefile.msc: fixed copying of wmf.dll
6383         * plug-ins/makefile.msc: 
6384         * app/makefile.msc:
6385         * lib/makefile.msc: now linking libintl
6386         * config.h.win32: enabling native language support
6388 2003-01-31  Lars Clausen  <lrclause@cs.uiuc.edu>
6390         * plug-ins/xslt/Makefile.am (libxslt_filter_la_LDFLAGS): Removed
6391         -ldl and -lglib.  May or may not work on windows...awaiting verdict.
6393 2003-01-31  Daniel Yacob  <locales@geez.org>
6395         * configure.in: Added am (Amharic) to ALL_LINGUAS.
6397 2003-01-31  Steffen Macke <sdteffen@web.de>
6399         * objects/UML/class.c (umlclass_calculate_data): fixed crash
6400         when comments were visible, no class comment available and
6401         a attribute comment
6402          
6403 2003-01-31  Lars Clausen  <lrclause@cs.uiuc.edu>
6405         * RELEASE-PROCESS: Updated to fit new install-module syntax.
6406         * Prerelease 0.91-pre1 released on a suspecting public.  Tagging
6407         with DIA_0_91_PRE1.
6409 2003-01-30  Lars Clausen  <lrclause@cs.uiuc.edu>
6411         * config.h.win32: 
6412         * NEWS: 
6413         * configure.in:
6414         * dia.spec:
6415         Prerelease version changes, version 0.91-pre1.
6417         * app/sheets_dialog_callbacks.h: 
6418         * app/sheets_dialog_callbacks.c: 
6419         * app/sheets_dialog.c (create_sheets_main_dialog): 
6420         * app/sheets.c (sheets_dialog_create): More destroy stuff.  Trying
6421         to handle destruction of main dialog cleanly, but it's a mess.
6423         * configure.in: Downgraded ieeefp test to make it not produce
6424         illegal shell code.
6426         * lib/widgets.c (dia_arrow_selector_set_arrow): 
6427         (dia_line_style_selector_set_linestyle): Select menu dot
6428         correctly set.
6430         * lib/arrows.c (calculate_arrow_point): Fix of wrong arrow
6431         adjustment for diamondheads.
6433         * lib/plug-ins.c (dia_plugin_load): Fixed typo.
6435         * app/properties.c (create_dialog): Destroy properties dialog and
6436         box correctly.
6438         * app/sheets_dialog_callbacks.c
6439         (on_sheets_dialog_button_edit_clicked): Only create a new dialog
6440         if the old one is destroyed.
6442 2003-01-29  Lars Clausen  <lrclause@cs.uiuc.edu>
6444         * app/export_png.c (export_png_ok): Added info on resolution.
6445         Should (next release) improve export dialog to allow setting
6446         resolution instead of pixels.
6448         * app/lineprops_area.c (dia_arrow_chooser_new): Use menudesc list
6449         to generate arrowheads as well as tooltips.
6451         * lib/arrows.c: Added hollow diamond to menudesc list.
6453         * lib/arrows.[ch]: 
6454         * lib/widgets.[ch]: Moved arrow name list into arrows.[ch] to
6455         unify with rendered menu.
6457         * lib/diarenderer.c (draw_line_with_arrows)
6458         (draw_polyline_with_arrows, draw_arc_with_arrows)
6459         (draw_bezier_with_arrows): Fixed linestyle change bug (#104488)
6460         without changing renderer API.  Thanks to David Scherba for
6461         providing inspiration.
6463 2003-01-28  Lars Clausen  <lrclause@cs.uiuc.edu>
6465         * app/interface.c (create_display_shell):
6466         * app/display.h: Patching from Hubert Figuiere
6467         <hfiguiere@teaser.fr>:  Better types for menu bar widgets, and
6468         correct menu items.
6470 2003-01-26  Lars Clausen  <lrclause@cs.uiuc.edu>
6472         * app/defaults.c (defaults_show): Fixed defaults closing bug.
6473         Thanks to Hans for pointing it out.
6475 2003-01-25  Hans Breuer  <hans@breuer.org>
6477         * app/commands.c : don't warn about crashing libart renderer
6478         on win32. It simply doesn't render text anymore :-(
6480         * app/filedlg.c : use GtkMessageDialog for 'file overwrite'
6482         * objects/UML/class.c : don't access umlclass->properties_dialog
6483         after calling gtk_widget_destroy(umlclass->properties_dialog->dialog)
6484         which sets the former to NULL by destroy_properties_dialog() callback.
6486         * plug-ins/wmf/wmf.cpp : use dia_image_rowstride()
6488         * plug-ins/python/pydia-font.c : fix PyDiaFont_GetAttr()
6490         * plug-ins/python/pydia-image.c : add image.uri member
6491         not only useful for SVG rendering
6493         * plug-ins/python/diasvg.py : (new file) a more advanced
6494         example. A full blown SVG Renderer, currently only
6495         registered for .svgz
6497         * plug-ins/python/export-object.py : write text props
6499         * plug-ins/python/debug_objects.py : write prop.type and
6500         prop.visible 
6502 2003-01-25  Lars Clausen  <lrclause@cs.uiuc.edu>
6504         * objects/UML/association.c (association_update_data): Better
6505         bounding box for assoc with arrows.
6507         * lib/properties.h: New flag for properties with multiple values
6508         in groups.
6510         * app/lineprops_area.c (dia_arrow_chooser_dialog_show): Correct
6511         arrow updating in dialog.  Was broken due to changes from destroy
6512         fix:(
6514         * app/commands.c (view_aa_callback): AA warning only for Windows
6515         -- I trust the Unix side well enough.
6517         * app/render_libart.c (get_text_width): 
6518         * lib/dialibartrenderer.h (struct _DiaLibartRenderer): Font and
6519         font height can be taken from parent instance.
6521         * lib/dialibartrenderer.c (dia_libart_renderer_class_init) 
6522         (get_text_width): Proper cursor positioning for libart renderer.
6523         Ought to have a DiaInteractiveRenderer that these two can inherit
6524         from, that knows about transform.
6526 2003-01-25  Steffen Macke <sdteffen@web.de>
6528         * plug-ins/xslt/xslt.h: don't use dlfcn.h on win32. XSLT
6529         plug-in still not working on win32
6530         
6531 2003-01-24  Lars Clausen  <lrclause@cs.uiuc.edu>
6533         * app/disp_callbacks.c (ddisplay_canvas_events): Moved
6534         gdk_window_get_pointer to avoid destroy crash.  Simpler than I
6535         thought.
6537 2003-01-23  Lars Clausen  <lrclause@cs.uiuc.edu>
6539         * app/app_procs.c (app_init): Run gtk_init before popt so we don't
6540         bail out on gtk options.
6542         * lib/message.c (gtk_message_internal): Better handling of destroy
6543         event.
6545 2003-01-22  Lars Clausen  <lrclause@cs.uiuc.edu>
6547         * app/color_area.c (color_area_edit): 
6548         * lib/widgets.c (dia_file_selector_browse_pressed) 
6549         (dia_color_selector_pressed): 
6550         * app/plugin-manager.c (get_plugin_manager): 
6551         * app/filedlg.c (file_open_callback, file_save_as_callback) 
6552         (file_export_callback):
6553         * app/diagram_tree_window.c (diagram_tree_window_new): Correct
6554         handling of destroy event.
6556 2003-01-22  Alan Horkan <horkana@tcd.ie>
6558         * app/commands.c (file_new_callback): Changed Untitled to Diagram
6559         for default name.
6561 2003-01-21  Lars Clausen  <lrclause@cs.uiuc.edu>
6563         * app/preferences.c (prefs_create_dialog): 
6564         * app/linewidth_area.c (linewidth_create_dialog): 
6565         * app/lineprops_area.c (dia_arrow_chooser_dialog_show): 
6566         * app/layer_dialog.c (create_layer_dialog)
6567         (layer_dialog_edit_layer): Correct handling of destroy signal. 
6569         * app/diapsft2renderer.c (set_font): Adjust silly random factor
6570         for change in font.c
6572         * lib/widgets.c: Avoid warning when font menu file doesn't exist.
6574         * lib/font.c (dia_font_build_layout): Let's all use the same weird
6575         factor here.
6577         * app/lineprops_area.c (dia_arrow_chooser_dialog_show): 
6578         * app/layer_dialog.c (create_layer_dialog) 
6579         (layer_dialog_edit_layer): 
6580         * app/filedlg.c (file_open_callback, file_save_as_callback) 
6581         (file_export_callback): 
6582         * app/dia-props.c (create_diagram_properties_dialog): 
6583         * app/defaults.c (defaults_dialog_destroyed): 
6584         * app/color_area.c (color_area_edit): Dialog destroy event handling.
6586 2003-01-19  Lars Clausen  <lrclause@cs.uiuc.edu>
6588         * app/defaults.c (defaults_dialog_destroyed): Reset cache when
6589         defaults dialog destroyed.
6591 2003-01-19  Steffen Macke <sdteffen@web.de>
6593         * objects/makefile.msc: added bondgraph
6594         * plug-ins/makefile.msc: added GDK_PIXBUF_LIBS in order
6595         to compile pixbuf.dll
6596         * makefile.msc: copying all objects and dlls now
6597         
6598 2003-01-19  Hans Breuer  <hans@breuer.org>
6600         * app/diagram.[hc] : provide dia_open_diagrams(), make
6601         open_diagrams variable static
6602         * app/dia.def : export it (to be used by PyDia)
6603         * app/app_procs.c app/autosave.c app/diagram_tree_window.c
6604           app/display.c app/dynamic_refresh.c app/layer_dialog.c
6605           app/load_save.c : make use of dia_open_diagrams()
6607         * app/interface.c : don't set GDK_WINDOW_TYPE_HINT_TOOLBAR
6608         on win32. It removes the diagram window from the taskbar and
6609         shrinks it's window title to toolbar style (newest gtk2.2 cvs)
6611         * app/menus.c : add '...' to menu entries where a dialog 
6612         gets invoked
6613         * app/recent_files.c app/dia_embedd.c : reflect the above in 
6614         menus_get_item_from_path() calls
6616         * lib/libdia.def : add dia_image_rgba_data
6618         * lib/properties.h lib/prop_text.[hc] : add new property
6619         type StringList
6620         * objects/UML/class.[hc] object/UML/class_dialog.c : use
6621         StringList for attributes_strings and operations_strings to
6622         make this calculated data accessible via the Property API
6624         * plug-ins/python/diamodule.c : use dia_open_diagrams() and
6625         provide dia.new() to create a new diagram, dia.registered_types()
6626         to get on Dia's type registry, dia.message() for simple dialogs
6628         * plug-ins/python/pydia-diagram.c : implement DiaDiagram.display()
6629         to create a new display from a diagram. Let diagram.extents and
6630         diagram.bg_color return the same types as in diagramdata.*
6632         * plug-ins/python/pydia-geometry.c : add a read-only 
6633         'sequence interface' to DiaPoint and DiaRectangle
6635         * plug-ins/python/pydia-property.c : allow to get on StringList
6636         from Python
6638         * plug-ins/python/pydia-render.c : fix typo to make it compile
6640         * plug-ins/python/python-startup.py : removed 'import pygtk'
6641         again. This file does not need any gtk UI, and some python
6642         plug-ins don't do either
6644         * plug-ins/python/gtkcons.py : ported to GTK2 interface, now
6645         it should actually work as intended again
6647         * plug-ins/python/group_props.py : (new file) a prototype for
6648         one the most requested features: Change properties of selected
6649         objects in one step. Requires pygtk.
6651         * plug-ins/python/select_by.py : (new file) select objects by 
6652         common properties. Requires pygtk.
6654         [Start of 'PyDia Self Documentation Series']
6656         * plug-ins/python/pydiadoc.py : (new file) generates a new 
6657         diagram which contains all objects of dir(dia)
6658         
6659         * plug-ins/python/otypes.py : (new file) generates a new diagram 
6660         which contains all the currently registered object types sorted 
6661         by their containing package
6663 2003-01-18  Lars Clausen  <lrclause@cs.uiuc.edu>
6665         * configure.in: Added check for Pango >= 1.1.5, which appears to
6666         be enough to have text work.
6667         (INTLOBJS): Added dummy subst cause gettext doesn't always seem to
6668         do it.  AC_SUBST should be idempotent, though.
6670 2003-01-17  Lars Clausen  <lrclause@cs.uiuc.edu>
6672         * configure.in (HAVE_FREETYPE): Better test for freetype version
6673         using neat macro.
6674         Now actually sets HAVE_IEEEFP_H, needed for Solaris.
6676         * lib/font.c: Renamed global_size_one to global_zoom_factor to
6677         avoid confusion, and added comment.  Set scale factor in
6678         dia_font_build_layout to 1.0 for Unix side.  This fixes at least
6679         my weird scaling problems.  Fonts are now of the expectable size,
6680         i.e. the space between lines at size 1.0 is 1.0.  If we want a
6681         compatibility fix, we should scale fonts by about 1/0.75 from 0.90
6682         diagrams, though there will always be differences.
6684 2003-01-15  Lars Clausen  <lrclause@cs.uiuc.edu>
6686         * plug-ins/python/python-startup.py: 
6687         * plug-ins/python/gtkcons.py: Require gtk 2.0 for pygtk
6689         * plug-ins/python/python.c (dia_plugin_init): Added warning
6690         message for missing startup file.
6692         * lib/dialibartrenderer.c (draw_image): Alpha rendering!  Yay!
6693         
6694         * lib/dia_image.c (dia_image_rgb_data): 
6695         * app/diapsrenderer.c (draw_image): Fixed rowstride problems
6696         involving EPS.  Can't do transparency in EPS yet.
6698         * lib/dia_image.h: 
6699         * lib/dia_image.c (dia_image_rgba_data): New function to get RGBA
6700         data as one chunk.  Documentation for the RGB data getting funcs.
6701         (dia_image_rgb_data): Added comment.
6703         * lib/dialibartrenderer.c (draw_image): Correct rowstride handling
6704         (bug #103565)
6706 2003-01-13  Steffen Macke <sdteffen@web.de>
6708         * lib/dia_image.c: dia_image_rgb_data() is working for
6709         non-alpha images now. Fixes #93762
6710         * Makefile.am: added makefile.msc to EXTRA_DIST
6711         
6712 2003-01-10  Steffen Macke <sdteffen@web.de>
6714         * app/paginate_psprint.c: Closing print dialog when file
6715         could not be written. Fixes #84746
6716         
6717 2003-01-04  Steffen Macke <sdteffen@web.de>
6719         * doc/custom-shapes: incomplete description of <svg:text>
6721 2003-01-03  Steffen Macke <sdteffen@web.de>
6723         * makefile.msc(new): new makefile to create file
6724         structure suitable for running dia win32 under
6725         $(TOP)/dia/build/win32
6726         
6727 2003-01-02  Steffen Macke <sdteffen@web.de>
6728         
6729         * lib/dia_svg.c: including stdlib.h
6730         * lib/makefile.msc: added gdk_pixbuf libs to linker
6731         * app/makefile.msc: added gdk_pixbuf libs, made libart
6732         libs compatible with gnuwin32 package
6733         
6734 2003-01-01  Hans Breuer  <hans@breuer.org>
6736         * lib/font.c : more comment about global_size_one
6738         * app/menus.c : <control>[<shift>]A for plain gtk build too.
6740         * plug-ins/wmf/wmf.cpp : some type juggling to make 
6741         msvc7 happy
6743 2002-12-31  Steffen Macke <sdteffen@web.de>
6745         * app/makefile.msc: added hint on how to enable console output
6746         
6747 2002-12-17  Lars Clausen  <lrclause@cs.uiuc.edu>
6749         * objects/standard/textobj.c (textobj_load): Get the handle type
6750         right, at least to be the same as when created.
6752 2002-12-12  Lars Clausen  <lrclause@cs.uiuc.edu>
6754         * lib/dialibartrenderer.c (draw_string): Removed extra 'is'.
6756 2002-12-08  Hans Breuer  <hans@breuer.org>
6758         * app/commands.c : fixed bug #85315 'give diagram properties, 
6759         instead of no object selected error' almost a one-liner
6761         * app/splash.c : don't make having the logo pixmap
6762         mandatory. Fixes bug #96068. 
6764         * app/defaults.c : avoid crashing from open-dialog,esc,open-dialog
6765         sequence by connecting to the "delete_event"
6766         * app/objects/uml/class_dialog.c : handle "destroy" for 
6767         the same reason.
6769         * lib/libdia.def : remove diaXmlNewChild again
6771         * app/paginate_gdiprint.cpp : reflect Dia's page setting
6772         portrait/landscape in the windoze print dialog
6774         * objects/makefile.msc : only UML needs to link against
6775         $(GTK2_LIBS) and only custom against $(LIBXML2_LIBS)
6777 2002-12-08  Lars Clausen  <lrclause@cs.uiuc.edu>
6779         * objects/standard/ellipse.c (ellipse_distance_from): 
6780         * lib/geometry.c (distance_ellipse_point): Ellipse now uses the
6781         correct distance function.  Could be faster, but it's not really
6782         essential. 
6784 2002-12-07  Lars Clausen <lrclause@cs.uiuc.edu>
6786         * lib/font.c: Changed global_size_one to more correct 28.35.
6787         Looks better, too.
6789         * app/load_save.c:
6790         * lib/dia_xml.h: 
6791         * lib/dia_xml.c: Removed pretty print hack, the libxml thing works
6792         after all.
6794 2002-12-07  Hans Breuer  <hans@breuer.org>
6796         * lib/widgets.c : g_file_get_contents() silently assumes
6797         a binary file. Reflect when creating the font_menu file
6798         to get rid of junk in font menus
6800 2002-12-06  Hans Breuer  <hans@breuer.org>
6802         * app/diapsrenderer.[hc] app/diapsft2renderer.[hc] :
6803         removed 0xD 0xD 0xA line ends which get created by
6804         cvs if windoze line ends 0xD 0xA are checked in from
6805         *nix and checked out on win32.
6807         * app/preferences.c : changed toolbox_on_top default to
6808         false. It is currently not possible to change the behaviour
6809         at runtime, at least not on win32.
6811         * lib/dialibartrenderer.c : bug #94791 'rendering to 
6812         bitmap without PangoFt2' got delayed to milestone future 
6813         so wrap libart text rendering into PANGO_WIN32_FUTURE. 
6814         It is not available without my Pango patch in bugzilla.
6816         * lib/font.c : added comment to global_size_one and adapt
6817         the arbitrary size scaling in dia_font_build_layout() for
6818         win32, too. This is needed to get an acceptable font size 
6819         approximation for Dia 0.90 and earlier files.
6820         Also #include "message.h".
6822         * app/makfile.msc app/dia.def lib/makefile.msc lib/libdia.def :
6823         reflect movement of group.[hc]
6824         * lib/group.h : export group_type which gets used by app/*
6826         * lib/diagtkfontsel.c : added #undef GTK_DISABLE_DEPRECATED
6827         to get the GtkTypeInfo definition
6829         * plug-ins/makefile.msc : dxf and xfig don't need to link
6830         against app/ anymore now that group is moved to lib/
6832         * plug-ins/python/pydia-render.c : remove massive leaking
6833         of self, i.e. PyDiaRenderer
6835         *  plug-ins/python/makefile.msc : remove linking against
6836         GTK libs
6838 2002-12-06  Lars Clausen  <lrclause@cs.uiuc.edu>
6840         * objects/standard/line.c: Removed properties options for gaps,
6841         until release is done.
6843         * configure.in: Check for freetype version.
6845         * lib/text.c (text_insert_char): Fixed small buffer overflow for
6846         length = 0.
6848         * lib/dialibartrenderer.c (draw_string): Removed debugging printf.
6850         * app/diapsft2renderer.h: 
6851         * app/diapsft2renderer.c: 
6852         * app/diapsrenderer.h: 
6853         * app/diapsrenderer.c: Split ps rendering into standard and freetype.
6855         * app/render_eps.c (export_eps, new_psprint_renderer): Using
6856         PS_FT2 renderer when available.  Old render stuff killed.  Yay!
6858         * lib/properties.h: Fixed bad frame end def.
6860         * app/Makefile.am (dia_core_files): Added diapsft2renderer.[ch].
6862         * lib/dia_xml.c (data_add_string): Avoid #-less strings.
6863         
6864         * objects/bondgraph/Makefile.am: Removed unneeded EXTRA_DIST.
6866 2002-12-05  Lars Clausen  <lrclause@cs.uiuc.edu>
6868         * lib/font.c: Now checking for the proper dia-style standard fonts.
6870         * lib/Makefile.am: 
6871         * app/Makefile.am: Moving group.[ch]
6873         * plug-ins/dxf/dxf-import.c: 
6874         * plug-ins/xfig/xfig-import.c: 
6875         * plug-ins/xfig/xfig-export.c: Now can refer directly to group.h.
6877         * app/object_ops.c: 
6878         * app/object_ops.h: 
6879         * lib/object.c (object_list_move_delta, object_copy_list): 
6880         * lib/object.h: Moved some object-related functions from
6881         object_ops to object to assist moving group.c.
6883         * lib/diatypes.h: Added Group typedef.
6885         * lib/group.h: 
6886         * lib/group.c: Moved from app to lib to a) resolve plug-ins
6887         references, and b) make groups more "real" objects.
6889         * lib/Makefile.am (libdia_la_SOURCES): Added diatyps.h
6891 2002-12-03  Lars Clausen <lrclause@cs.uiuc.edu>
6893         * lib/font.c (dia_font_init): Added check that the three standard
6894         fonts exist.
6896 2002-12-02  Lars Clausen  <lrclause@cs.uiuc.edu>
6898         * lib/dia_xml.[ch]:
6899         * app/load_save.c: Linebreaks in dia files, no indentation.
6900         Should help text tools.  xmlNewChild wrapped in diaXmlNewChild for
6901         this. 
6902         
6903         * objects/standard/line.c: Small but important fixes to the line
6904         gap code.
6906         * lib/dia_xml.h: 
6907         * lib/dia_xml.c (diaXmlNewChild): 
6908         * app/load_save.c (diagram_data_write_doc, write_objects): Simple
6909         XML prettyprinting wrapper.
6911 2002-12-03  Steffen Macke <sdteffen@web.de>
6913         * shapes/Cisco/Makefile.am:
6914         * shapes/Cisco/*.shape: finished conversion of Cisco icons
6915         to *.png
6916         
6917 2002-12-02  Steffen Macke <sdteffen@web.de>
6919         * doc/en/Makefile.am:
6920         * doc/en/usage-objects.sgml:
6921         * doc/en/graphics/line_icon.png: (new) added line icon
6922         
6923 2002-12-02  Lars Clausen  <lrclause@cs.uiuc.edu>
6925         * objects/standard/line.c: Binary search object edge line gap.
6927 2002-12-01  Lars Clausen  <lrclause@cs.uiuc.edu>
6929         * configure.in: Added Cisco makefile, sorted Makefiles list.
6931         * shapes/Makefile.am (SUBDIRS): Added Cisco dir
6933         * configure.in: Now checks for availability of PangoFT2 and
6934         FreeType, raising an error if not found.
6936         * app/Makefile.am (dia_core_files): Adding diapsft2renderer from
6937         Hans.
6939 2002-12-01  Steffen Macke <sdteffen@web.de>
6940         
6941         * doc/en/usage-loadsave.sgml: updated information on import
6942         and export formats
6943         
6944 2002-11-28  Lars Clausen  <lrclause@cs.uiuc.edu>
6946         * app/commands.c (edit_copy_callback): Freeing copy_list.
6948 2002-11-28  Steffen Macke <sdteffen@web.de>
6949         
6950         * app/render_libart.c: art_config.h was included twice
6952 2002-11-27  Lars Clausen  <lrclause@cs.uiuc.edu>
6954         * sheets/.cvsignore: More ignorance.
6956         * lib/diagdkrenderer.c (draw_string): Removed silly #ifdef 1.
6958         * lib/prop_widgets.h: Two (currently unused) settings for frame
6959         foldability.
6961         * lib/prop_widgets.c (frame_beginprop_get_widget): Frames are now
6962         (by default) foldable. 
6964         * lib/propinternals.h: 
6965         * lib/propdialogs.c (prop_dialog_add_raw_with_flags): Way to add
6966         widgets in a more controlled manner.
6968         * objects/standard/line.c (line_update_data): Line gap things
6969         inserted.  Can do xeyes now:)
6971 2002-11-26  Christian Neumair  <chris@gnome-de.org>
6973         * .cvsignore: Changed.
6974         * objects/bondgraph/.cvsignore, plug-ins/metapost/.cvsignore,
6975         plug-ins/xslt/.cvsignore, shapes/Assorted/.cvsignore, shapes/Misc/.cvsignore:
6976         Added.
6978 2002-11-26  Lars Clausen  <lrclause@cs.uiuc.edu>
6980         * app/pixmaps/delete.xpm: Trashcan stolen from Gimp.
6982         * lib/widgets.c (dia_font_selector_get_font): Fixed wrong name
6983         passing to font hash.
6985         * app/filedlg.c (file_save_as_ok_callback): Check that filename is
6986         utf-8 or locale-convertible before adding to dialog text.  This
6987         probably needs done in a number of places where we get text from
6988         the environment and send it to GTK to display.
6990         * lib/widgets.c: Fixed case problems for font menu entries.
6992         * objects/SADT/annotation.c: Don't run the event test (but leave
6993         it here for inspiration).
6995         * lib/widgets.c: 
6996         * lib/widgets.h: Allowing setting preview text for fonts.
6998 2002-11-26  Lars Clausen  <lrclause@cs.uiuc.edu>
7000         * objects/bondgraph/Makefile.am: 
7001         * objects/bondgraph/bondgraph.c: 
7002         * configure.in: 
7003         * objects/Makefile.am: Added bond graph dir.
7005 2002-11-26  Lars Clausen  <lrclause@cs.uiuc.edu>
7007         * lib/text.c (text_calc_boundingbox, text_draw): Better cursor size.
7009 2002-11-25  Lars Clausen  <lrclause@cs.uiuc.edu>
7011         * lib/text.c (text_calc_boundingbox, text_draw): Better cursor
7012         positioning. 
7014         * app/diapsrenderer.c: Freetype rendering is back in force.
7016         * app/disp_callbacks.c: Added missing updates for pre-text-change.
7018 2002-11-25  David Hoover <jazzdaq@yahoo.com>
7020         * app/render_libart.c: Added missing #include line for libart.
7022         * lib/geometry.h:
7023         * lib/geometry.c: Added point_convex function.  This computes
7024         points inside a line segment (0 <= alpha <= 1) or outside the
7025         line segment (alpha < 0 | alpha > 1).
7027         * objects/standard/line.c: Line now has additional code/attributes
7028         which permit the line to extend past the line anchors (gap < 0) or
7029         leave a gap without reaching the anchor (gap > 0).  If no gap is
7030         specified, the default gap of 0 will result in identical line
7031         behavior as before.  If the 'fractional' attributes are TRUE, the
7032         gap length is not fixed, but a percentage of the line length.  I
7033         did not know how create the GTK widgets so the gap code currently
7034         cannot be used without adding XML attributes by hand.
7036 2002-11-25  Lars Clausen  <lrclause@cs.uiuc.edu>
7038         * lib/diagdkrenderer.c (draw_string): Removed timing bits.
7040         * lib/Makefile.am (libdia_la_SOURCES): Added fontsel files to SOURCES.
7042 2002-11-24  Lars Clausen  <lrclause@cs.uiuc.edu>
7044         * lib/font.c: Debugging functionality in separate functions.
7046         * lib/widgets.c: Using fontsel with context.
7048         * lib/diagtkfontsel.[ch]: Context-aware copy of the GTK fontsel.
7050         * objects/custom/custom_object.c: Orientation handling for shapes,
7051         patch thanks to Martin Hans <opfinder@gmx.net>.
7053         * objects/standard/zigzagline.c (zigzagline_move_handle): Starting
7054         work on even better orientation handling.
7056         * app/menus.c (menus_get_item_from_path): Fixed sily warnings from
7057         casting NULL pointers.  Should be unnecessary in an upcoming GTK
7058         release. 
7060 2002-11-18  Lars Clausen  <lrclause@cs.uiuc.edu>
7062         * lib/font.h:
7063         * lib/font.c:
7064         * lib/widgets.c: Now uses correct context to get font families.
7066         * lib/diagdkrenderer.c (get_text_width, draw_string): 
7067         * lib/dialibartrenderer.c (draw_string): 
7068         * lib/font.h: 
7069         * lib/font.c (dia_font_init): Removed old kludgy font name compare.
7070         (dia_font_build_layout): Unified the twiddle factors into a use of
7071         global_size_one.  But I deeply distrust Pango for seeming to
7072         change size of fonts every time I turn my back.
7074         * app/display.c: 
7075         * app/diagram.c: 
7076         * app/menus.c:
7077         * app/menus.h: Updated some more methods to also be more specific
7078         on the types.
7080         * app/menus.h:
7081         * app/recent_files.c: 
7082         Changed to return most specific type, to avoid run-time type errors.
7084         * app/menus.c (menus_get_item_from_path): Non-gnome version now
7085         gets menu_item rather than widget, which works better.
7087 2002-11-17  Cyrille Chépélov  <cyrille@chepelov.org>
7089         * app/display.c: (new_display):
7090         * app/menus.c: (menus_get_item_from_path):
7091         Relying on the tearoff to locate the input methods menu wasn't a
7092         good idea: tearoffs seem to be an endangered species nowadays.
7093         Anyway, the IM menu seems to be working now.
7095         * app/interface.c: hinted the window manager that the toolbox window
7096         is a toolbox window. Not that my (fairly default configuration)
7097         sawfish cares, but other NETWM compliant WMs may.
7099         * app/commands.c: 
7100         * app/defaults.c: 
7101         * app/dia-props.c:
7102         * app/filedlg.c: 
7103         * app/interface.c: 
7104         * app/layer_dialog.c: 
7105         * app/linewidth_area.c: 
7106         * app/properties.c: 
7107         * app/sheets_dialog.c: 
7108         * app/splash.c: 
7110         The GTK doc says to avoir gtk_window_set_wmclass() and 
7111         gtk_window_set_policy(), and use gtk_window_set_role() and
7112         gtk_window_set_resizable(), respectively.
7113         
7114         * app/preferences.c: (prefs_create_dialog):
7115         * app/preferences.h:
7116         * app/display.c: (display_set_active):
7117         Added a preference to have the toolbox hover over diagram windows.
7118                 
7119 2002-11-12  Lars Clausen  <lrclause@cs.uiuc.edu>
7121         * lib/diagdkrenderer.c (get_text_width, draw_string):
7122         Freetype-based string drawing now works.  Not very fast, though.
7123         I wish I could use the graphics card for this:(  I'm doing three
7124         bitmap loops where I should be doing one.  The size is not correct
7125         either, despite having get_text_width give the right thing.
7127 2002-10-21  Lars Clausen  <lrclause@cs.uiuc.edu>
7129         * app/connectionpoint_ops.c (diagram_update_connections_object):
7130         Allows more than one connectionpoint on an object to be moved at a
7131         time (bug #96306).
7133 2002-10-18  Stanislav Brabec  <sbrabec@suse.cz>
7135         * configure.in: Added cs to ALL_LINGUAS.
7137 2002-10-17  Lars Clausen  <lrclause@cs.uiuc.edu>
7139         * app/paginate_psprint.c: Removed unnecessary decl of autosave
7140         stuff.
7142         * app/display.c (ddisplay_set_renderer): Calls to begin/end render.
7144         * app/export_png.c (export_png_ok): Saving more variables from the
7145         evil setjmp.
7147 2002-10-16  Lars Clausen  <lrclause@cs.uiuc.edu>
7149         * lib/dialibartrenderer.c (begin_render):
7150         (end_render): Correct pushing and popping of font contexts.
7151         (draw_string): Double zooming eliminated, strange twiddle factor
7152         introduced (grumble).  Close to working now, but there are still
7153         strange differences from font to font.  In particular, some fonts
7154         really mess with the cursor and extents.
7156         * app/render_eps.c (export_eps): 
7157         * app/diapsrenderer.c (dia_ps_renderer_finalize): 
7158         Fixed file closing confusion, no longer dependent on PS/EPS.
7160         * app/diagram.c (diagram_place_down_selected) 
7161         (diagram_place_up_selected): Now implemented.
7163         * lib/font.c (dia_font_init): 
7164         * lib/font.h: 
7165         Redesigned the font init/context pushing code.  Start of fix for
7166         font name differences.
7167         
7168 2002-10-15  Kjartan Maraas  <kmaraas@gnome.org>
7170         * app/sheets_dialog_callbacks.c: Fix a typo.
7171         
7172 2002-10-15  Hans Breuer  <hans@breuer.org>
7174         * app/diapsrenderer.[hc] : (new files, old content :-)
7175         simple base class for post script rendering. Does neither 
7176         use Pango/FT2 nor does it handle non latin1 characters. 
7177         The fancy stuff which nowadays appears to be needed should 
7178         probably be done in derived class(es)
7180         * app/makefile.msc app/Makefile.am : added new files
7182         * app/paginate_psrint.c : re-enabled and used as test
7183         for the simple ps renderer above.
7185         * app/render_eps.[hc] : ripped out common ps code and
7186         moved to DiaPsRenderer. The rest of the file is mostly
7187         disabled. And I don't understand enough of it to 
7188         change port it.
7190         * app/diaepsrenderer.h : short lived, removed.
7192 2002-10-15  Lars Clausen  <lrclause@cs.uiuc.edu>
7194         * lib/plug-ins.c (dia_register_plugin): Don't try to load libdia
7195         as a plugin (thanks to Torben Nielsen).
7197 2002-10-14  Lars Clausen  <lrclause@cs.uiuc.edu>
7199         * app/diaepsrenderer.h: 
7200         * app/render_eps.h: 
7201         * app/paginate_psprint.c: 
7202         #ifdef'd out enough ps stuff to allow compile.  Now we just need
7203         to convert it.
7204         
7205 2002-10-12  Hans Breuer  <hans@breuer.org>
7207         [last plug-in ported]
7209         * plug-ins/xfig/xfig-export.c : ported to new renderer api
7211         * plug-ins/xfig/xfig-import.c(fig_create_object) : need to
7212         scale color values to [0..1.0] to properly reconstruct
7213         user colors
7215         * plug-ins/xfig/xfig-common.c : some cleaning
7217 2002-10-12  Hans Breuer  <hans@breuer.org>
7219         [decrease inter-plug-in-dependencies]
7221         * objects/custom/shape_info.[hc] : move parse_style()
7222         to lib/dia_svg.[hc] as dia_svg_parse_style(); Namespace
7223         the related structs and constants.
7224         * objects/custom/custom_object.c : reflect namespace
7225         changes
7227         * lib/dia_svg.[hc] : new files
7228         * lib/makefile.msc lib/Makefile.am : add new files
7229         * lib/libdia.def : updated externals
7231         * plug-ins/svg/svg-import.c : use dia_svg_parse_style()
7233         * plug-ins/svg/svg.c : enable svg import for win32 (and
7234         probably for other non ELF builds)
7236         * plug-ins/makefile.msc : enable svg import
7238 2002-10-11  Hans Breuer  <hans@breuer.org>
7240         * plug-ins/metapost/render_metapost.[hc] : ported
7242         * plug-ins/pstricks/render_pstricks.[hc] : dito
7244 2002-10-11  Hans Breuer  <hans@breuer.org>
7246         * plug-ins/cgm/cgm.c : ported, appears to work as before,
7247         but graphic apps available to me can't import the generated 
7248         files (the could not with Dia-0.90 cgm as well) ...
7250         * plug-ins/dxf/dxf-export.c : Ported to new renderer api.
7251         Removed all those function which did emulate 'complex' 
7252         drawing ops with basic ones (e.g. rect by line) cause this
7253         stuff is already provided by the base class
7254         * plug-ins/dxf/dxf-import.c : removed render.h include
7256         * plug-ins/python/pydia-font.[hc]
7257           plug-ins/python/pydia-text.c : finally ported to new font api
7259         * plug-ins/python/pydia-layer.c : add extra parameter
7260         to layer_find_closest_connectionpoint()
7262         * plug-ins/python/pydia-render.c : ported to DiaRenderer api
7264         * plug-ins/python/python.c : added missing copyright notice
7266         * plug-ins/hpg/hpgl.c plug-ins/wpg/wpg.c plug-ins/wmf/wmf.cpp : 
7267         actually use the renderers set_font implementation
7269         * plug-ins/renderer.inc : unused now, removed
7270         * plug-ins/Makefile.am : reflect it
7272 2002-10-08  Hans Breuer  <hans@breuer.org>
7274         * app/render_gdk.c : don't add the InteractiveRenderer
7275         interface multiple times (it's added to the type, not
7276         the object)
7277         * app/render_libart.c : dito. It's currently added
7278         unconditional cause eport_png uses it, but claims
7279         to be non-interactive. Probably set_size should be moved
7280         to the DiaRenderer interface.
7282         * lib/dialibartrenderer.c : add implementations for
7283         get_<width|height>_pixels. Libart rendering works again.
7284         DiaLibartRenderer::draw_image : use dia_image_rowstride()
7285         instead of width*3
7287         * lib/diatransform.c(dia_transform_coords_double) :
7288         don't ROUND() the returned values
7290         * plug-ins/pixbuf/pixbuf.c : added import function. It
7291         simply creates a wrapping "Standard - Image" object.
7293         * plug-ins/shape/shape-export.c : use the more direct
7294         method to call base class methods
7296 2002-10-07  Lars Clausen  <lrclause@cs.uiuc.edu>
7298         * lib/font.c (dia_font_init): Changed dia_font_init to return old
7299         pango context, to allow stacked contexts (for printing while
7300         antialiased).
7301         
7302         * lib/arrows.h
7303         * lib/bezier_conn.h
7304         * lib/beziershape.h
7305         * lib/boundingbox.h
7306         * lib/color.h
7307         * lib/connection.h
7308         * lib/connectionpoint.h
7309         * lib/create.h
7310         * lib/dia_image.h
7311         * lib/diagdkrenderer.h
7312         * lib/diagramdata.h
7313         * lib/dialibartrenderer.h
7314         * lib/diamenu.h
7315         * lib/diarenderer.h
7316         * lib/diasvgrenderer.h
7317         * lib/diatransform.h
7318         * lib/element.h
7319         * lib/filter.h
7320         * lib/focus.h
7321         * lib/font.h
7322         * lib/geometry.h
7323         * lib/handle.h
7324         * lib/neworth_conn.h
7325         * lib/objchange.h
7326         * lib/object.h
7327         * lib/orth_conn.h
7328         * lib/paper.h
7329         * lib/plug-ins.h
7330         * lib/poly_conn.h
7331         * lib/polyshape.h
7332         * lib/properties.h
7333         * lib/ps-utf8.h
7334         * lib/sheet.h
7335         * lib/text.h
7336         * lib/textattr.h
7337         * lib/widgets.h
7338         * lib/diatypes.h
7339         Moved all externally visible struct typedefs into diatypes.h, as
7340         per Hans' suggestions.
7342 2002-10-07  Steffen Macke <sdteffen@web.de>
7344         * lib/Makefile.am: removed a '\' causing problems
7346 2002-10-07  Hans Breuer  <hans@breuer.org>
7348         [Libart Renderer resurrected; almost it's compiling but
7349          almost instantly crashing :-]
7351         * lib/dialibartrenderer.[hc] : new files, ported to DiaRenderer
7352         * app/render_libart.[hc] : ported to DiaInteractiveRenderer
7353         * lib/diatransform.[hc] : added dia_transform_coords_double()
7355         * app/display.c : the right parameters for new_renderer_libart()
7356         * app/export_png.c : ported, removed the blind Display hack
7358         * app/makefile.msc lib/makefile.msc 
7359           lib/Makefile.am : updated
7361         * lib/dia<|gdk|interactive>renderer.c : properly copyrighted
7363 2002-10-06  Hans Breuer  <hans@breuer.org>
7365         * plug-ins/pixbuf/pixbuf.c : (new file)
7366         there is a new export plug-in called 'Pixbuf' which uses 
7367         DiaGdkRenderer to export to gdk-pixbuf supported bitmap
7368         formats (currently only PNG and JPEG).
7370 2002-10-06  Hans Breuer  <hans@breuer.org>
7372         See also: 
7373         http://mail.gnome.org/archives/dia-list/2002-October/msg00027.html
7375         * lib/dia-enums.h lib/diatransform.[hc]
7376           lib/diarenderer.[hc] lib/diainteractiverenderer.c
7377           lib/diagdkrenderer.[hc] lib/diasvgrenderer.[hc]
7378         : new files 
7380         * lib/makefile.msc lib/makefile.am : added new files
7382         * lib/plug-ins.c : g_module_error() returns a locale
7383         string, convert to utf8 before further usage 
7385         * lib/render.h : #error out. Everything including this
7386         needs porting
7387         * lib/*.[hc] : ported to new renderer api
7389         * app/diaepsrenderer.h : unfinished DiaEpsRenderer interface
7390         just to make the rest compile
7391         * app/render_eps.c : temporary disabled all of this
7392         * app/render_eps.h : removed RendererEPS
7394         * app/render_gdk.[hc] : a small wrapper around the new
7395         DiaGdkRenderer form lib/*
7397         * app/render_libart.h : removed RenderLibart definition
7398         * app/render_libart.c : not yet ported to new DiaRenderer
7399         but having an implementation to untie form FT2 dependency
7400         at least on win32. It is using new Pango api form bug #94791
7402         * app/render_pixmap.[hc] : a small wrapper around the new
7403         DiaGdkRenderer form lib/*
7405         * app/display.h : removed render_*.h includes
7406         * app/display.c : the only place where specific 
7407         renderers need to be known
7409         * app/connectionpoint_ops.c app/grid.c app/handle_ops.c
7410         use new DiaInteractiveRenderer interface
7412         * app/*.c : ported to new renderer api
7413         * object/*/*.c : ported to new renderer api
7414         s/render.h/diarenderer.h/
7415         s/Renderer/DiaRenderer/
7416         s/renderer->ops/renderer_ops/
7417         add in every draw method:
7418         DiaRendererClass *renderer_ops = DIA_RENDERER_GET_CLASS (renderer);
7420         * plug-ins/hpgl/hpgl.c : 
7421           plug-ins/wmf/wmf.cpp 
7422           plug-ins/wpg/wpg.c : ported to be DiaRenderer based
7423         * plug-ins/shape/shape-export.c
7424           plug-ins/svg/render_svg.c : ported to be DiaSvgRenderer based
7425           (nice how small these files became :-)
7427 2002-09-28  Hans Breuer  <hans@breuer.org>
7429         * */makefile.msc : updated
7431         * app/defaults.c : don't gdk_invalidate_rect(NULL)
7432         * app/disp_callbacks.c : 
7433         can't cast GtkWindow to GdkWindow, use shell->window
7434         (ddisplay_unrealize) don't use already unrefed im_context
7435         * app/display.c :
7436         can't cast from GtkMenu to GtkMenuItem
7437         (ddisp_destroy) : mark im_context as unrefed
7439         * lib/dia_xml (data_font) : prefer new font format over old one
7440         (data_add_font) : write the legacy name to allow file exchange
7441         with pre Pango versions of Dia, which would otherwise crash 
7442         on missing font 'name' attribute.
7443         * lib/font.c (dia_font_get_legacy_name) : improved implementation
7444         to get a better match.
7446         * lib/libdia.def : updated
7448         * lib/messages.c : don't gdk_widget_show(NULL)
7450         * lib/prop_text.c : don't gtk_entry_set_text() with NULL string 
7452         [make Dia compile, link _and_ work with mingw/gcc3.2]
7454         * config.h.win32 : #define LIBXML, this gets defined from libxml
7455         header but only for _MSC_VER. The mingw build did access an 
7456         unitialized function pointer for xmlFree.
7458         * */makefile.mingw : updated (some plug-ins have build issues)
7459         
7460         * lib/handle.h lib/object.h :   there appears to be no 
7461         forward declaration of the form 
7462                 typedef enum _HandleId HandleId 
7463         (at least not with GCC 3.2 for C++) ../lib/handle.h:22: 
7464         use of enum `_HandleId' without previous declaration
7466         * app/paginate_gdiprint.cpp : added a hack to avoid g++
7467         naming conflict on 'export'
7469         * app/paginate_gdiprint.h : forward declare Diagram
7471         * objects/SADT/annotaion.c : use g_random_double()
7473 2002-09-26  Lars Clausen  <lrclause@cs.uiuc.edu>
7475         * app/modify_tool.c: Made motion not happen until sufficiently
7476         large or past double-click interval, to avoid accidental moving
7477         when doubleclicking.  Got the double-click time right, and fixed
7478         some issues with release.  There are some corner cases that may
7479         exhibit strange behaviour, will look at those later.  Nah, let's
7480         not care about those, they are rare and not dangerous.
7482 2002-09-26  Cyrille Chépélov  <cyrille@chepelov.org>
7484         * app/layer_dialog.c: 
7485         * app/load_save.c: 
7486         * plug-ins/dxf/dxf-import.c: 
7487         * plug-ins/python/pydia-diagram.c: 
7488         * lib/diagramdata.c:
7489         * lib/diagramdata.h:
7490         Improved the consistency of the obj->parent_layer backlinks (esp.
7491         during reloads)
7493         * lib/Makefile.am:
7494         * lib/dummy_dep.h:
7495         * lib/dynamic_obj.[ch] (NEW):
7496         * app/Makefile.am:
7497         * app/app_procs.c: 
7498         * app/dynamic_refresh.[ch] (NEW):
7499         * objects/Misc/analog_clock.c: 
7500         Added support for dynamic refresh (animated objects).
7501                 
7502 2002-09-25  Cyrille Chépélov  <cyrille@chepelov.org>
7504         Patch from Owen Taylor <otaylor@redhat.com>:    
7505         * doc/en/Makefile.am:
7506         * doc/en/dia-manual.sgml:
7507         * doc/en/usage-objects.sgml:
7508         * doc/en/usage-quickstart.sgml:
7509         * doc/pl/Makefile.am:
7510         * doc/pl/dia-manual.sgml:
7511         * doc/pl/usage-objects.sgml:
7512         * doc/pl/usage-quickstart.sgml:
7514         - Change the DTD declration from an outdated GNOME one to a
7515         standard DTD.
7516         
7517         - Remove close tags for <graphics> which aren't allowed for
7518         docbook SGML
7519         
7520         - A hacky fix for a problem where some versions of db2html don't
7521         create *.css files. (If *.css doesn't match anything, then you get
7522         the global explicitely.)
7524         (Closes: #92061)
7525         
7526 2002-09-24  Cyrille Chépélov  <cyrille@chepelov.org>
7528         * objects/custom/custom_object.c: 
7529         * objects/custom/shape_info.[ch]: GE_TEXT display lists elements 
7530         were never properly prepared for use when reloading a shape with
7531         <svg:text> elements. Thanks to Scott Frazer <frazer@nc.rr.com> for
7532         reporting the problem and coming up with a fix! (Closes: #93974)
7534         * app/menus.c: patch from Alan Horkan <horkana@tcd.ie>: review
7535         the menu shortcuts towards better GNOME HIG compliance (Closes: #87157)
7537         * app/menus.c:
7538         * app/display.c: updated menu item paths Alan's patch had moved.
7539         
7540         * app/interface.c: Fixed a crash when gdk-pixbuf doesn't want to
7541         load the sheet-provided icon (libpng versions mismatch, grrr.).
7542         
7543         * configure.in:
7544         * objects/Makefile.am:
7545         * objects/Misc/Makefile.am (NEW):
7546         * objects/Misc/libmisc.c (NEW):
7547         * objects/Misc/analog_clock.c (NEW):
7548         * objects/Misc/pixmaps/analog_clock.xpm (NEW):
7549         * sheets/Misc.sheet.in: just a little experiment...
7551 2002-09-23  Cyrille Chepelov  <cyrille@chepelov.org>
7553         * plug-ins/xlst/Makefile.am: found a way to silence automake while
7554         not forcing everyone to build using libxslt.
7556         * lib/font.c: 
7557         * lib/message.c:
7558         * lib/object_defaults.c:
7559         * lib/intl.[ch]:
7560         * lib/render.c:
7561         * lib/properties.[ch]:
7562         * lib/propobject.c:
7563         * objects/standard/box.c: 
7564         * objects/UML/state_term.c:
7565         * objects/FS/box.c:
7566         * objects/FS/flow-ortho.c:
7567         * app/app_procs.c:
7568         * app/autosave.c:       
7569         * app/commands.c:
7570         * app/diagram_tree.c:
7571         * app/display.c:
7572         * app/disp_callbacks.c:
7573         * app/export_png.c:
7574         * app/filedlg.c:
7575         * app/lineprops_area.c:
7576         * app/menus.c:  
7577         * app/preferences.c:
7578         * app/render_eps.c:     
7579         * app/sheets.c:
7580         * app/sheets_dialog_callbacks.c:
7581         * plug-ins/xslt/xslt.c:
7582         * plug-ins/metapost/render_metapost.c:
7583         * plug-ins/xfig/xfig-export.c:
7584         * plug-ins/shape/shape-export.c:
7585         
7586         Killed most gcc-3.2 warnings (const-correctness and derived warnings, 
7587         unused variables, mostly)
7589         * app/display.c:
7590         * app/menus.c: enabled GTK Input Methods (thanks Lars!)
7592         * app/Makefile.am: modified run_dia.sh so that we recover the
7593         ability to run a debugger despite libtool's hacks.
7595         * plug-ins/dxf/Makefile.am: 
7596         * app/Makefile.am
7597         "make distcheck" fixes.
7598         
7599 2002-09-19  Lars Clausen  <lrclause@cs.uiuc.edu>
7601         * objects/UML/uml.c (uml_get_operation_string): Patch from Mauf
7602         <mfranzoni@madd.it>:  Check for the type being NULL.
7604 2002-09-16  Lars Clausen  <lrclause@cs.uiuc.edu>
7606         * app/render_eps.c (set_font): Re-tweaked font size for printing.
7608 2002-09-12  Cyrille Chepelov  <cyrille@chepelov.org>
7610         Patch from Angus Ainslie <angusa@deltatee.com>:
7611         * plug-ins/dxf/dxf-import.c:
7612         * plug-ins/dxf/autocad_pal.h: Import from visio 2002 improvements.
7614         (plus a couple extra fixes by me, such as the removal of printf's,
7615         adapting for recent changes, and killed a couple warnings) 
7617         * app/authors.h: a 60K patch isn't insignificant, is it?
7618         
7619 2002-09-09  Tor Lillqvist  <tml@iki.fi>
7621         * configure.in: Check for both pangoft2 (using PKG_CHECK_MODULES,
7622         as before) and -lfreetype (using AC_CHECK_LIB). At least on
7623         Solaris with Sun's compiler (Forte C), you need to link also the
7624         dia application with -lfreetype, even if it is implicitly linked
7625         to by -lpangoft2. Rename FREETYPE_CFLAGS and _LIBS to PANGOFT2_*,
7626         which is what they actually mean. Use FREETYPE_LIBS for
7627         -lfreetype.
7629         Don't look for libsunmath if isinf() is not found in math.h (as on
7630         Solaris). The sunmath library is part of Forte C and not present
7631         on all machines. Besides, even if isinf was found in libsunmath,
7632         we didn't use it in the Makefile.am.
7633         
7634         Fix a couple of bashisms.
7636         AC_SUBST also Z_LIBS, need to link the dia application to -lz,
7637         too, on Solaris with Forte C.
7639         Don't try to use the gcc flags with other compilers.
7640         DIA_CHECK_CFLAG gives a false indication that Forte C understands
7641         the gcc -f switches, but in fact they get interpreted meaning
7642         something completely different.
7644         Define the automake conditional HAVE_CGC.
7645         
7646         * app/Makefile.am (dia_LDADD): Add Z_LIBS and FREETYPE_LIBS.
7648         Use -export-dynamic only with gcc.
7650         * */Makefile.am
7651         * */*/Makefile.am: Modify according to the FREETYPE_CFLAGS -> 
7652         PANGOFT2_CFLAGS rename.
7654         * lib/geometry.h: Drop HAVE_SUNMATH_H and <sunmath.h> per above.
7655         
7656         * lib/dia_xml.c: Include geometry.h for the isinf() stuff on
7657         Solaris.
7659         * lib/paper.c: Workaround for gccism: Can't use inline this way with
7660         Forte C, either.
7662 2002-09-08  Cyrille Chepelov  <cyrille@chepelov.org>
7664         * lib/text.c(set_string): fixed a memory leak (char* ain't no
7665         std::auto_ptr<char> !).
7667         * app/display.[ch]:
7668         * app/interface.[ch]:
7669         * app/ddisp_callbacks.[ch]: Added some basic support for input 
7670         methods (GtkIMContext-based)
7672         * lib/Makefile.am:
7673         * app/Makefile.am: made libdia a shared object (per Tor
7674         Lillqvist's suggestion/request), to cope for platforms with a less
7675         than par dynamic library loader.
7677         * app/display.c: disabled the input method menu (I really don't
7678         see where and how to put them. Blame Frozen Bubble )
7679         
7680 2002-09-06  Lars Clausen  <lrclause@cs.uiuc.edu>
7682         * objects/flowchart/box.c (box_update_data): Made resizing
7683         possible again (only set width & height when resized too small).
7685         Patch from Soeren Sandmann <sandmann@daimi.au.dk>:
7687         * app/disp_callbacks.c (ddisplay_canvas_events): Handle
7688         GdkScrollEvents.
7689         
7690 2002-09-05  Cyrille Chepelov  <cyrille@chepelov.org>
7692         * app/authors.h: now showing Akira TAGOH's name in the native script.
7694 2002-09-01  Lars Clausen  <lrclause@cs.uiuc.edu>
7696         * plug-ins/xslt/xslt.c: Removed glib warning for unset
7697         DIA_PLUGIN_PATH.
7699 2002-09-01  Cyrille Chepelov  <cyrille@chepelov.org>
7701         * plug-ins/svg/render_svg.c: Applied (reversed...) patch from
7702         Mike Sowka <msowka@rogers.com>. This fixes a problem with the
7703         sweep flag in arcs.
7705 2002-08-31  Lars Clausen  <lrclause@cs.uiuc.edu>
7707         * objects/UML/class.c: Fixed showing of empty stereotypes and got
7708         the string placed correctly.
7710 2002-08-30  Hans Breuer  <hans@breuer.org>
7712         * lib/font.c (dia_font_get_style) : don't shift already
7713         shifted DIA_FONT values.
7715         * lib/libdia.def : updated externals
7717         * app/disp_callbacks.c : on win32 GdkEventKey::string already
7718         is in UTF-8. (Longterm this probably should be handled on the
7719         gtk api level)
7721         * app/command.[hc] app/display.[hc] app/menus.c : add code to 
7722         switch display renderers again. The libart renderer is very 
7723         useful for win9x with it's limited GDI.
7725         * app/render_gdk.c : use g_warning instead of printf which gets
7726         nowhere on win32 (non console apps)
7728         * app/render_libart.c : make it compile without FREETYPE
7730         * objects/makefile.msc plug-ins/makefile.msc : added clean target
7732 2002-08-29  Lars Clausen  <lrclause@cs.uiuc.edu>
7734         * app/render_eps.c (postscript_draw_contour): Debugging statement
7735         that allowed me to figure out font problems.
7737         * lib/widgets.c (dia_font_selector_set_styles): Use radio menu
7738         items for font styles.
7740         * objects/FS/flow-poly.c: 
7741         * objects/FS/flow-ortho.c: 
7742         * objects/FS/flow.c: Further conversion away from GTK dialogs.
7743         Can't set a default label right now:(
7745         * app/interface.c (fill_sheet_wbox): Added initialization for mask.
7747 2002-08-27  Cyrille Chepelov  <cyrille@chepelov.org>
7748         Patch from Andrew Ferrier  <andrew@new-destiny.co.uk>:
7750         * Makefile.am: rules relating to AUTHORS and THANKS
7751         altered.
7752         * AUTHORS: file content changed to more accurately
7753         reflect guideline requirements.
7754         * TODO: warning added about Gnome BTS.
7755         * KNOWN_BUGS: warning added about Gnome BTS.
7757         ---
7759         * AUTHORS: added full copyright info.
7760         * mkauthors-placeholder: (removed) 
7761         
7762 2002-08-27  Lars Clausen  <lrclause@cs.uiuc.edu>
7764         * app/paginate_psprint.c (print_page): Fixed text printing after
7765         tip from Dov Grobgeld.
7767 2002-08-26  Lars Clausen  <lrclause@cs.uiuc.edu>
7769         * app/paginate_psprint.c (print_page): Fixed color of clip
7770         region.
7772 2002-08-26  Cyrille Chepelov  <cyrille@chepelov.org>
7774         * sheets/Makefile.am: enabled intltool-merge translation cache for
7775         sheets.
7777         * Makefile.am:
7778         * mkauthors-placeholder:
7779         * AUTHORS: revived that file (in a placeholder form) so that
7780         automake stops yelling.
7781         (derived from a patch by Andrew Ferrier <andrew@new-destiny.co.uk>) 
7782         (Closes: #91144)
7784         Heh, by the way, thanks Christophe. I feel better now.
7785         
7786 2002-08-25  Christophe Merlet  <christophe@merlet.net>
7788         * app/command.c: Removed invalid multibyte sequence in Chepelov.
7790 2002-08-24  Lars Clausen  <lrclause@cs.uiuc.edu>
7792         * lib/dia_image.c (dia_image_rgb_data): 
7793         Bugfixes in image data retrieval.
7794         
7795         * app/render_eps.c: Refactoring of new_*_renderer.
7797 2002-08-23  Lars Clausen  <lrclause@cs.uiuc.edu>
7799         * app/render_eps.c: 
7800         * lib/dia_image.h: 
7801         * lib/dia_image.c: Support for rowstride != width (odd width images)
7803 2002-08-20  Lars Clausen  <lrclause@cs.uiuc.edu>
7805         * lib/paper.c (get_paper_info): Fixed NULL prefs problem.
7806         * plug-ins/xfig/xfig-import.c: Removed assertion.
7808 2002-08-18  Lars Clausen  <lrclause@cs.uiuc.edu>
7810         * lib/paper.c: Removed app/preferences.h reference.
7812 2002-08-14  Lars Clausen  <lrclause@cs.uiuc.edu>
7814         * plug-ins/svg/svg-import.c: 
7815         * plug-ins/xfig/xfig-import.c: 
7816         * lib/Makefile.am (libdia_a_SOURCES): 
7817         * objects/standard/Makefile.am (libstandard_objects_la_SOURCES): 
7818         * lib/create.h:
7819         * objects/standard/create.h:
7820         * objects/standard/polygon.c (polygon_create): 
7821         * objects/standard/polyline.c (polyline_create): 
7822         * objects/standard/beziergon.c (beziergon_create): 
7823         * objects/standard/bezier.c (bezierline_create): 
7824         Moving create.h into lib.
7826 2002-08-13  Lars Clausen  <lrclause@cs.uiuc.edu>
7828         * app/render_libart.[ch]: Work on PNG font export.  Something's
7829         still fishy with the scaling, I don't get it.
7831         * app/display.c: 
7832         * app/interface.c: Replaced broken zoom combo with entry+menu.
7833         Now works beautifully.  Removed WITHOUT_ZOOM_COMBO stuff.
7835         * app/render_gdk.c (get_text_width): Checks for validity of text.
7836         Temporary help while debugging input -- should only activate on
7837         invalid input.
7839         * objects/SADT/annotation.c: 
7840         * objects/GRAFCET/transition.c: 
7841         * objects/FS/function.c: Removal of gtk.h include.
7843         * objects/UML/state.c (state_load): Warnings about using State
7844         object for initial/final states.
7846         * plug-ins/cgm/cgm.c (init_fonts): Proper Pango interfacing.
7848 2002-08-12  Lars Clausen  <lrclause@cs.uiuc.edu>
7850         * app/render_eps.c: Text rendering that scales correctly.  Too bad
7851         the standard fonts don't get selected right.
7853 2002-08-09  Lars Clausen  <lrclause@cs.uiuc.edu>
7855         * lib/diagramdata.h: 
7856         * lib/paper.c (get_paper_info): 
7857         * lib/paper.h: 
7858         * plug-ins/xfig/xfig-import.c: 
7859         Committed before testing.  I am so embarrased.  This compiles, now
7860         that the includes are in the right order.
7861         
7862         * app/diagram.c (diagram_init): 
7863         * app/app_procs.c (do_convert): 
7864         * app/preferences.h: 
7865         * lib/diagramdata.h: 
7866         * lib/diagramdata.c (new_diagram_data): 
7867         * lib/paper.h: 
7868         * lib/paper.c (get_paper_info): 
7869         Moved new_diagram part of prefs into lib/diagramdata.h.  More
7870         could be done in new_diagram_data() now.
7872 2002-08-08  Lars Clausen  <lrclause@cs.uiuc.edu>
7874         * app/render_eps.c: Better scaling of fonts at non-normal zoom.
7876 2002-08-07  Cyrille Chepelov <cyrille@chepelov.org>
7878         * configure.in: removed silly user-visible comment
7880         (actually, this is a dummy entry before I manually run nemo; for
7881         some dist-upgrade related reason, this morning's run aborted before
7882         the snapshots were created)
7883         
7884 2002-08-06  Lars Clausen  <lrclause@cs.uiuc.edu>
7886         * objects/network/wanlink.c: 
7887         * objects/network/bus.c: 
7888         stdprop compliance!
7890         * objects/custom/custom_object.c: 
7891         * objects/network/wanlink.c: 
7892         * objects/flowchart/parallelogram.c: 
7893         * objects/flowchart/ellipse.c: 
7894         * objects/flowchart/diamond.c: 
7895         * objects/flowchart/box.c: 
7896         Removed GTK defaults stuff.
7897         
7898         * objects/UML/fork.c: 
7899         * objects/UML/object.c: 
7900         * objects/UML/lifeline.c: 
7901         * objects/UML/branch.c: 
7902         * objects/GRAFCET/transition.c: 
7903         * objects/FS/function.c: Removed GTK include.
7905         * objects/FS/flow-ortho.c: 
7906         * objects/FS/flow.c: Made the label behave again.
7907         Also removed GTK defaults stuff.
7909 2002-08-06  Hans Breuer  <hans@breuer.org>
7911         * app/autosave.c : ported to GDir which is the improved
7912         cross platform replacement for <dirent.h>
7914         * app/makefile.msc : build autosave.obj
7916         * app/font.c : some (bad?) code calls 
7917         dia_font_scaled_decent() not only with empty string but 
7918         with NULL. Handle it gracefully.
7920         * lib/paper.c : don't depend on ../app. Although IMO
7921         this shouldn't be allowed on any platform it is only
7922         disabled for win32, where it simply doesn't work
7923         this way
7925         * lib/widget.c (strcase_equal) : pass char* to g_strcasecmp()
7927         * objects/fs/flow.c : conditionalize debug spew, disabled
7928         and 'ported' to use g_print. Simple printf won't work with
7929         standard win32 gui apps, may even crash them.
7931         * plug-ins/makefile.msc : DISABLED svg-import cause it
7932         depends on ../objects/custom. This not only break the
7933         build for all non ELF systems but IMO also isn't acceptable
7934         from a design point of view. See dia-list mail on subject.
7936         * plug-ins/python/makefile.msc :
7937           plug-ins/python/python.c : remove all references to dirent    
7939 2002-08-05  Cyrille Chepelov  <cyrille@chepelov.org>
7941         * configure.in: added ro to ALL_LINGUAS
7943         * po-checktrans:
7944         * po-checktrans.py:
7945         * ../translation-graphs/transgraph.py: added support for fuzzy
7946         translations. Enlarged the graphs.
7948 2002-08-05  Lars Clausen  <lrclause@cs.uiuc.edu>
7950         * app/disp_callbacks.c (ddisplay_canvas_events): Now translates
7951         key events according to locale.  No clue if this works for
7952         advanced stuff.
7954 2002-08-04  Lars Clausen  <lrclause@cs.uiuc.edu>
7956         * lib/text.c: Various UTF8 related fixes, in particular in
7957         deleting.  Text_insert_char is fine, far as I can tell.
7959         * app/interface.c (create_display_shell): 
7960         * app/commands.c: Now uses gtk_clipboard functions, for they are
7961         much simpler.  Also handles Win32 clipboard.  Non-ascii chars
7962         don't seem to get handled correctly by text_insert_char in
7963         lib/text.c.
7964         
7965         * app/commands.c (received_selection_handler): Got utf8 handling
7966         on paste, and individual char handling out of commands.c.  Pasting
7967         non-ASCII is still broken, somehow.  It's all lib/text.c's fault.
7969         * lib/message.c (gtk_message_internal): Message dialog re-shown
7970         when new message appears.  Maybe it should even move to top?
7972         * lib/font.c: 
7973         * lib/widgets.c: 
7974         * app/render_eps.c (create_eps_renderer): Fonts now lowercase
7975         (again) and case-insensitive.
7977         * objects/GRAFCET/condition.c (CONDITION_FONT): Changed to
7978         BASIC_SANS_FONT. 
7980 2002-08-02  Lars Clausen  <lrclause@cs.uiuc.edu>
7982         * app/commands.c (edit_cut_text_callback): 
7983         * lib/text.c (text_delete_all): Now functioning undo for text cut.
7984         
7985         * app/commands.c (edit_cut_text_callback): Now removes text.
7986         Undo is broken, though.
7988 2002-08-01  Lars Clausen  <lrclause@cs.uiuc.edu>
7990         * app/diagram.c (diagram_update_menu_sensitivity): 
7991         Making cut_text active.
7992         
7993         * app/commands.h: 
7994         * app/commands.c: Using PROP_TYPE_TEXT to find text to copy to
7995         clipboard.  Also removed AA callback.   
7997 2002-08-01  Lars Clausen  <lrclause@cs.uiuc.edu>
7999         * objects/chronogram/chronoref.c: 
8000         * objects/chronogram/chronoline.c: 
8001         * objects/SADT/annotation.c: 
8002         * objects/SADT/arrow.c: 
8003         * objects/SADT/box.c: 
8004         * objects/GRAFCET/vergent.c: 
8005         * objects/GRAFCET/vector.c: 
8006         * objects/GRAFCET/step.c: 
8007         * objects/GRAFCET/condition.c: 
8008         * objects/GRAFCET/action.c: 
8009         * objects/ER/participation.c: 
8010         * objects/ER/relationship.c: 
8011         * objects/ER/entity.c: 
8012         * objects/ER/attribute.c: 
8013         Removing unnecessary GTK references.
8015 2002-07-31  Lars Clausen  <lrclause@cs.uiuc.edu>
8017         * objects/standard/image.c: 
8018         * objects/standard/textobj.c: 
8019         * objects/standard/ellipse.c: 
8020         * objects/standard/polygon.c: 
8021         * objects/standard/beziergon.c:
8022         * objects/standard/box.c: 
8023         Making default default properties.
8024         
8025         * objects/standard/image.c: 
8026         * objects/standard/arc.c: 
8027         * objects/standard/box.c: 
8028         * objects/standard/zigzagline.c: 
8029         * objects/standard/polyline.c: 
8030         * objects/standard/line.c: 
8031         * objects/standard/ellipse.c: 
8032         * objects/standard/polygon.c: 
8033         * objects/standard/beziergon.c: Removing vestigal GTK stuff.
8035         * lib/object_defaults.c (dia_object_default_create): 
8036         * lib/proplist.c: 
8037         * lib/properties.h: 
8038         * lib/object.c (object_copy_using_properties): 
8039         * lib/propdialogs.c: 
8040         * lib/propinternals.h: 
8041         * lib/propobject.c (object_create_props_dialog)
8042         (object_copy_props): 
8043         Removing the standard (toolbox) properties from defaults dialogs.
8045 2002-07-30  Lars Clausen  <lrclause@cs.uiuc.edu>
8047         * lib/font.c (dia_font_scaled_string_width) 
8048         (dia_font_scaled_ascent, dia_font_scaled_descent): Account for
8049         zoom factor.
8050         * lib/text.c (text_calc_boundingbox): Take descent into account.
8052         * objects/standard/bezier.c (bezierline_draw): 
8053         * lib/render.c (draw_bezier_with_arrows): 
8054         Better arrow drawing for beziers.  Doesn't change the mouse-click
8055         area either.
8057         * lib/arrows.h: Some const-ness.
8059         * lib/arrows.c (calculate_arrow_point): Initialize zero-length moves.
8061         * lib/render.c (draw_arc_with_arrows): 
8062         * objects/standard/arc.c (arc_draw): Better arrow drawing for
8063         arcs.  Doesn't change the mouse-click area yet.
8065         * app/menus.c: Forgotten fix:  Redraw menu item for non-Gnome.
8067         * lib/render.h: 
8068         * lib/render.c: 
8069         Arc arrow prework.
8071 2002-07-29  Lars Clausen  <lrclause@cs.uiuc.edu>
8073         * app/group.c (group_draw): Forgotten commit: Groups to draw as
8074         objects (using default routines).
8076         * app/object_ops.h: 
8077         * app/diagram.h: 
8078         * lib/diagramdata.h: 
8079         * lib/diagramdata.c (layer_find_closest_connectionpoint): 
8080         * objects/standard/zigzagline.c (zigzagline_move_handle): 
8081         * app/diagram.c (diagram_find_closest_connectionpoint): 
8082         * plug-ins/python/pydia-diagram.c
8083         (PyDiaDiagram_FindClosestConnectionPoint):
8084         * app/object_ops.c (object_connect_display) 
8085         (object_find_connectpoint_display) 
8086         * app/create_object.c (create_object_button_press) 
8087         (create_object_motion): 
8088         * app/modify_tool.c (modify_motion): 
8089         Adding object param to allow connectionpoint and handle coinciding.
8091         * objects/standard/zigzagline.c (zigzagline_check_orientation): 
8092         Fixing minor problems.
8094         * objects/standard/ellipse.c (ellipse_update_data): 
8095         Added direction hints.
8097         * lib/diagramdata.c: 
8098         * lib/object.c: 
8099         * lib/object.h: 
8100         * lib/diagramdata.h: 
8101         * objects/standard/zigzagline.c: 
8102         First working example of zigzagline hints, currently only between
8103         Box and Zigzagline.
8105 2002-07-27  Steffen Macke <sdteffen@web.de>
8107         * plug-ins/svg/render_svg.c: added support for rounded
8108         rectangles (fixes #69053 if compile with
8109         -DNEW_RENDER_OPS)
8110         * object/custom/shape_info.[c|h]: made parse_style and
8111         parse_path accessible for svg plug-in
8112         * plug-ins/svg/Makefile.am:
8113         * plug-ins/svg/svg.c:
8114         * plug-ins/svg/svg-import.c(new): added SVG import filter
8116 2002-07-27  Lars Clausen  <lrclause@cs.uiuc.edu>
8118         * objects/standard/box.c: 
8119         * objects/standard/zigzagline.c (zigzagline_move): 
8120         More work on zigzagline hints.
8122 2002-07-26  Lars Clausen  <lrclause@cs.uiuc.edu>
8123         * lib/connectionpoint.h: 
8124         Hints for zigzaglines.
8126         * app/properties.c (properties_show): 
8127         * app/defaults.c (defaults_show): 
8128         * lib/properties.h: 
8129         * lib/propobject.c (object_create_props_dialog): 
8130         * lib/object.h: 
8131         * objects/FS/flow-poly.c: 
8132         * objects/network/wanlink.c: 
8133         * objects/network/bus.c: 
8134         * objects/UML/class.h: 
8135         * objects/UML/class_dialog.c: 
8136         * objects/UML/association.c: 
8137         Start of removing toolbox props from props dialogs.
8138         
8139         * lib/widgets.c: 
8140         * lib/arrows.h: 
8141         * app/lineprops_area.c (dia_arrow_chooser_new): 
8142         * lib/arrows.c: Two new arrows: Concave, filled and blanked.
8144         * app/create_object.c: 
8145         * app/modify_tool.c: 
8146         * app/cursor.h: 
8147         * app/cursor.c: 
8148         More cursor change.
8150 2002-07-25  Lars Clausen  <lrclause@cs.uiuc.edu>
8152         * app/preferences.c: 
8153         * lib/paper.c: 
8154         * app/diapagelayout.c: 
8155         New prefs selector kind PREF_CHOICE chooses between a list of
8156         strings.  Used for picking default paper.
8157         
8158         * app/preferences.c (prefs_data): 
8159         * lib/paper.c (get_paper_info): Added prefs setting for
8160         is_portrait.
8162         * lib/render.c (draw_polyline_with_arrows): Handles degenerate
8163         line segments at the ends (bug #86603).
8165 2002-07-25  Lars Clausen  <lrclause@cs.uiuc.edu>
8167         * objects/standard/zigzagline.c (zigzagline_copy): Fix for bug
8168         #60324: Now calls update_data after copy.
8170         * app/interface.c (fill_sheet_wbox): Better fix for bug #88601:
8171         Now doesn't steal selection from non-object tools.
8173 2002-07-24  Lars Clausen  <lrclause@cs.uiuc.edu>
8175         * app/commands.c (help_manual_callback): Uses BROWSER environment
8176         variable when available.
8178 2002-07-23  Lars Clausen  <lrclause@cs.uiuc.edu>
8180         * app/interface.c (fill_sheet_wbox): Fix for bug #88601: Select an
8181         object from the new sheet when changing.
8183         * app/app_procs.c (app_init): Uses more standard size icon, from
8184         patch #56433.  Keeping old icon as dia_gnome_icon_large.png.
8186 2002-07-22  Lars Clausen  <lrclause@cs.uiuc.edu>
8188         * objects/UML/implements.c (implements_update_data): 
8189         * objects/UML/realizes.c (realizes_update_data): 
8190         * objects/UML/dependency.c (dependency_update_data): 
8191         Test for null strings before calling on ascent.
8193         * objects/UML/realizes.c (realizes_draw): 
8194         * objects/UML/message.c (message_draw): 
8195         * objects/UML/generalization.c (generalization_draw): 
8196         * objects/UML/dependency.c (dependency_draw) 
8197         * objects/UML/constraint.c (constraint_draw): 
8198         * objects/GRAFCET/condition.c (condition_draw): 
8199         * objects/UML/association.c (association_draw): 
8200         * objects/FS/flow-ortho.c (orthflow_draw): 
8201         * objects/FS/flow.c (flow_draw): Change to use
8202         draw_foo_with_arrows.  Pretty pretty arrows.  Yay me!
8204         * lib/render.h: 
8205         * lib/arrows.c (calculate_arrow_point): 
8206         * lib/arrows.h: 
8207         * lib/render.c: 
8208         * objects/standard/zigzagline.c:
8209         * objects/standard/polyline.c:
8210         * objects/standard/line.c: Work towards better arrow drawing.
8212 2002-07-21  Lars Clausen  <lrclause@cs.uiuc.edu>
8214         * objects/UML/state.c: Starting phase-out of State object as
8215         initial/final state (which never worked right).
8217         * app/app_procs.c (app_init): --version command line option for
8218         non-Gnome.
8220         * configure.in: Slight improvement in GETTEXT_PACKAGE handling.
8222 2002-07-19  Lars Clausen  <lrclause@cs.uiuc.edu>
8224         * app/render_eps.c: Removed debugging info.
8226         * lib/font.c (dia_font_scaled_ascent, dia_font_scaled_descent):
8227         Kludge to make ascent and descent work for empty strings.  Won't
8228         work when using non-ASCII fonts.  Better would be to get a
8229         PangoFont and ask directly.
8231         * configure.in: Simple define of GETTEXT_PACKAGE, and some updates
8232         of the init stuff.
8234         * app/render_gdk.c (get_text_width): Fixed use of wrong string.
8235         Cursor now better.
8237 2002-07-18  Lars Clausen  <lrclause@cs.uiuc.edu>
8239         * plug-ins/xfig/xfig-export.c: First use of draw_object render
8240         function: All shapes are now groups in XFig export.
8242         * lib/diagramdata.c (normal_render): 
8243         * lib/render.c: 
8244         * lib/render.h: 
8245         * app/display.c (ddisplay_obj_render): 
8246         New render function for drawing objects, allows renderers to group
8247         or otherwise specially handle objects.  We may want to reconsider
8248         calling it in app/display.c, as we 'know' the object draw function
8249         is the default one there.
8251         * lib/Makefile.am: Removed extra \ that broke stuff.
8253         * plug-ins/xfig/xfig-import.c: 
8254         Spline import for xfig.  Not perfect.
8256         * objects/standard/create.h: 
8257         * objects/standard/bezier.c (bezierline_create): 
8258         * lib/bezier_conn.c: 
8259         * lib/beziershape.c (beziershape_set_points): 
8260         * lib/bezier_conn.h: 
8261         * lib/beziershape.h: 
8262         Support for creating beziers non-interactively.
8264 2002-07-17  Lars Clausen  <lrclause@cs.uiuc.edu>
8266         * plug-ins/xfig/xfig-import.c: Support for polygons and
8267         polylines.  Special warning handling system removed.
8269         * lib/message.c (gtk_message_internal): Fixed bug involving
8270         closing message window and then getting repeated message.
8272         * Makefile.am: 
8273         * autogen.sh: 
8274         * configure.in (GETTEXT_PACKAGE): 
8275         Update based on bug #88199.  Hopefully this doesn't break too much
8276         intl stuff.
8278         * dia.desktop.in (_Comment): Changed after suggestion from
8279         calum.benson@ireland.sun.com (bug 88345)
8281         * app/sheets_dialog_callbacks.c: Fix from Dolores Alia de Saravia
8282         <loli@unsa.edu.ar> that makes user/system distinction better.
8284 2002-07-16  Lars Clausen  <lrclause@cs.uiuc.edu>
8286         * app/render_libart.c: Got the context right, removed crashes.
8288         * app/commands.c: 
8289         * app/commands.h: 
8290         Redraw menu item.
8292         * app/display.c: 
8293         * app/display.h: 
8294         * app/interface.c: 
8295         * app/menus.c: 
8296         Remove libart #defines from most places (still around for png export).
8298         * app/render_libart.h: 
8299         * app/render_libart.c: 
8300         * configure.in (HAVE_LIBART): 
8301         Starting on update of libart stuff for png export (without X).
8303         * app/autosave.h (autosave_check_autosave): 
8304         * app/load_save.h: 
8305         * app/diagram.h: 
8306         * app/Makefile.am (dia_core_files): 
8307         * app/load_save.c: 
8308         * app/diagram.c (diagram_set_modified): 
8309         * app/autosave.c: 
8310         * app/app_procs.c (app_init): 
8311         Autosave support.  No automatic restore yet.
8313 2002-07-16  Lars Clausen  <lrclause@cs.uiuc.edu>
8315         * app/render_eps.c (create_eps_renderer): #ifdef'd a scale
8316         assignment. 
8317         
8318 2002-07-15  Lars Clausen  <lrclause@cs.uiuc.edu>
8320         * app/interface.c (fill_sheet_menu): Tear-off for sheets menu.
8322 2002-07-15  Andrew Ferrier  <andrew@new-destiny.co.uk>
8324         * Fix for 'make dist' etc. --- problem caused by
8325         previous AUTHORS patch.
8327 2002-07-14  Lars Clausen  <lrclause@cs.uiuc.edu>
8329         * plug-ins/cgm/cgm.c (init_fonts): Changed pango_font_map to
8330         pango_context. 
8331         (set_font): NULL check.
8332         
8333 2002-07-12  Lars Clausen  <lrclause@cs.uiuc.edu>
8335         * app/disp_callbacks.c: 
8336         * lib/diamenu.h: 
8337         Addition to the object menus allows check menu items.
8339 2002-07-11  Andrew Ferrier  <andrew@new-destiny.co.uk>
8341         * HACKING: completely changed to bring up-to-date.
8342         * AUTHORS: file needs REMOVING from CVS as now
8343           dynamically generated.
8344         * app/authors.h: split into subcategories for original
8345           authors, maintainers, etc.
8346         * app/app_procs.c: --credits rewritten to support new
8347           app/authors.h
8348         * app/commands.c: no changes to about box code, comment
8349           added though.
8350         * Makefile.am: added rule for AUTHORS. I'm still
8351           inexperienced with automake, it seems to work, but
8352           for AUTHORS-related bugs, look at this change first.
8354 2002-07-10  Lars Clausen  <lrclause@cs.uiuc.edu>
8356         * plug-ins/Makefile.am (SUBDIRS): Just realized why my hack didn't
8357         work.  Back to including xslt dir always.
8359         * objects/UML/uml.c: 
8360         * objects/UML/class.h: 
8361         * objects/UML/class_dialog.c: 
8362         * objects/UML/class.c: Patch from
8363         <mattam@netcourrier.com>:  Adds comment visibility switch, also
8364         fixes various bugs.
8366         Big patch from Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
8367         for state/fork/activity stuff.
8368         * objects/UML/state.c: Removed old draw_rounded_rectangle code.
8369         * objects/UML/Makefile.am:
8370         * objects/UML/uml.c:
8371         * sheets/UML.sheet.in: Added new objects activity, fork,
8372           state_term.
8373         * objects/UML/pixmaps/state_term.xpm:
8374         * objects/UML/state_term.c: New, only initial/final states.
8375         * objects/UML/pixmaps/activity.xpm:
8376         * objects/UML/activity.c: New, activity state.
8377         * objects/UML/pixmaps/fork.xpm:
8378         * objects/UML/fork.c: New, fork/join bar.
8379         * objects/UML/pixmaps/state.xpm: state icon.
8381         
8382         * doc/diagram.dtd: 
8383         * doc/shape.dtd: Patch from "Dolores Alia de Saravia"
8384         <loli@unsa.edu.ar> to add dia: to diagram.dtd elements and add
8385         svg:text to shape.
8387 2002-07-07  Lars Clausen  <lrclause@cs.uiuc.edu>
8389         * plug-ins/Makefile.am (SUBDIRS): Made the XSLT dir depend on
8390         detecting XSLT
8392         * app/Makefile.am: Commented out the diaconv parts while it's not
8393         used anyway.  To come back later.
8395         * configure.in (HAVE_FREETYPE): 
8396         * app/app_procs.c: 
8397         * app/render_eps.h: 
8398         * app/render_eps.c: Support for printing with freetype, better
8399         encapsulated now.  Renders the text nicely, but ignores font
8400         setting.  Requires pangoft2 to get the font outline, but non-text
8401         objects can still be rendered without it.
8403         * app/commands.h: 
8404         * app/commands.c (objects_place_up_callback) 
8405         (objects_place_down_callback): 
8406         * app/diagram.h: 
8407         * app/diagram.c (diagram_place_down_selected) 
8408         (diagram_place_up_selected): Starting support for moving objects
8409         one level up/down.
8411         * app/menus.c: Removed character/numeral shortcuts.
8413 2002-07-06  Hans Breuer  <hans@breuer.org>
8415         * makefile.am app/makefile.am lib/makefile.am
8416           objects/makefile.am plug-ins/makefile.am 
8417           plug-ins/python/makefile.am :
8418         added required files for win32 build to EXTRA_DIST
8420         * app/paginate_psprint.c app/render_eps.c 
8421           app/app_procs.c :
8422         wrap (E)PS Renderer into HAVE_FREETYPE, no FreeType
8423         on Pango as currently is on win32 => no PostScript 
8424         anymore.
8426         * lib/widgets.c : undef GTK_DISABLE_DEPRECATED;
8427         use '/* noop */;' for empty case labels; replace
8428         debug spew printf with g_print which is guaranteed 
8429         to work on win32, too.
8431         * lib/font.c (dia_pfd_set_weight) : set 'intermediate' values 
8432         for DIA_FONT_MEDIUM and DIA_FONT_DEMIBOLD as explicit allowed 
8433         in the pango_font_description_set_weight() api documentation
8434         Take care for them in dia_font_get_style() too.
8436         * lib/font.[hc] lib/widget.c objects/custom/shape_info.c
8437           plug-ins/shape/shape-export.c plug-ins/svg/render_svg.c :
8438         rename Obliquity to Slant which appears to be the usual name,
8439         also rename dia_font_get_style_string -> dia_font_get_slant_string
8441         * plug-ins/wmf/wmf.cpp : finally ported to new font api
8443         * lib/prop_attr.c app/render_gdk.c : dont *_unref if NULL
8445         * objects/uml/association.c class.c large_package.c message.c
8446         if g_free() is used g_strdup needs to be used.
8447         * objects/custom/shape_info.c
8448           objects/ER/attribute.c entity.c
8449           objects/standard/image.c 
8450           app/sheets_dialog_callbacks.c : more strdup cleaning
8452 2002-07-05  Lars Clausen  <lrclause@cs.uiuc.edu>
8454         * app/render_eps.c: Non-crashing printing (made the right
8455         context).  Font output still fscked up.
8457 2002-07-05  Andrew Ferrier  <andrew@new-destiny.co.uk>
8459         * app/authors.h: Added file --- now master
8460         location for contributors data.
8461         * app/app_procs.c: Added --credits option.
8462         * app/commands.c: Modified about box to use
8463         app/authors.h.
8465 2002-07-05  Lars Clausen  <lrclause@cs.uiuc.edu>
8467         * app/render_eps.c: First stab at EPS rendering using the contour
8468         code from PAPS.  Crashes.
8470 2002-06-30  Lars Clausen  <lrclause@cs.uiuc.edu>
8472         * app/recent_files.c (recent_file_history_remove): 
8473         Fixed call to g_list_delete_link discarding return value.
8474         
8475         * lib/widgets.c (dia_font_selector_set_styles): 
8476         * lib/font.h (DiaFontWeight): 
8477         * lib/font.c (dia_font_get_style): Revert to DIA_FONT_NORMAL==0
8479 2002-06-30  Cyrille Chepelov  <cyrille@chepelov.org>
8481         Contribution from Alan Horkan <horkana@tcd.ie>: 
8482         
8483         * shapes/Assorted/*
8484         * sheets/Assorted.sheet:
8485         A set of 40 assorted geometric shapes.
8487         * sheets/Assorted.sheet.in:
8488         * sheets/Makefile.am
8489         * shapes/Assorted/Makefile.am:
8490         * shapes/Makefile.am:
8491         * po/POTFILES.in:
8492         * configure.in:
8493         Done the integration job of Alan's shapes. (Translators: have fun!)
8495         * po/dia.pot: refreshed the main potfile.
8496         
8497 2002-06-28  Cyrille Chepelov  <cyrille@chepelov.org>
8499         Patch from Tim Ellis <Tim.Ellis@gamet.com>:
8500         
8501         * objects/UML/class.[ch]:
8502         * objects/UML/class_dialog.c:
8503         changed the number of connection points from a hardcoded value of
8504         8 to a #defined constant
8506         (I changed the constant back from 20 to 8, until we better know
8507         how we'll handle more connection points on the UML class in the
8508         future -- but Tim's patch is a welcome clean-up).
8510 2002-06-26  Cyrille Chepelov  <cyrille@chepelov.org>
8512         * shapes/MSE/demultiplexer.xpm:
8513         * shapes/MSE/node_center.xpm:
8514         * shapes/MSE/multiplexer.xpm:
8515         * shapes/MSE/tacsat.xpm: updated MSE icons (transparency) by Alan
8516         Horkan <horkana@tcd.ie>
8518 2002-06-25  Lars Clausen  <lrclause@cs.uiuc.edu>
8520         * lib/widgets.c: Total rehash of font selector, with font dialog
8521         option, expanding list (not LRU yet), and stuff.
8523 2002-06-25  Cyrille Chépélov  <cyrille@chepelov.org>
8525         * lib/font.h:
8526         * lib/font.c: 
8527         Added a set of new setter/getters, some of them more specially for
8528         the SVG-ish I/O.
8529         
8530         * plug-ins/shape/shape-export.c: (new_shape_renderer),
8531         (destroy_shape_renderer), (set_font), (draw_string):
8532         * plug-ins/svg/render_svg.c: (new_svg_renderer),
8533         (destroy_svg_renderer), (set_font), (draw_string):
8535         Actually exported the font face, style, weight and size (sodipodi
8536         agrees with dia on how a small sample should look like (a sample
8537         0.90 would not even display anyways). Yay !)
8539         Patch from Matthieu Sozeau <mattam@netcourrier.com>:
8541         * plug-ins/xslt/Makefile.am: repaired the mess Cyrille put there.
8543         (end of ChangeLog-less patch)
8545         * objects/custom/shape_info.c (parse_style): now understands the
8546         font-style and font-weight attributes as well. Does not use
8547         anymore dia_font_new_from_legacy_name().
8548         
8549 2002-06-24  Lars Clausen  <lrclause@cs.uiuc.edu>
8551         * objects/standard/textobj.c: Now uses stdprops for defaults.
8553         * lib/font.h: Changed order of DiaFontWeight entries.  Sorry.
8554         * lib/font.c (dia_font_get_style): Style now linear and conversion
8555         simple. 
8557         * lib/widgets.c (dia_font_selector_set_styles): Fixed the style
8558         selector. 
8560 2002-06-24  Cyrille Chepelov  <cyrille@chepelov.org>
8562         * plug-ins/dxf/dxf-import.c:
8563         using dia_font_new_from_style()
8565         Patch from Matthieu Sozeau  <mattam@netcourrier.com>:
8567         * objects/UML/class.[ch]: Added a comment field to class
8568         * objects/UML/uml.[ch]: Added a comment field to attributes,
8569         operations and parameters.
8570         * objects/UML/class_dialog.c: Added code for the new comment
8571         fields.
8572         * plug-ins/xslt/*.xsl: Added some code to handle comments.
8573         * plug-ins/xslt/xslt*.c: Clean up based on Cyrille comments.
8574         Added a $directory parameter for stylesheets so the output is 
8575         in the good place (not in the $PWD).
8577         (end of Patch)
8579         * AUTHORS: added contributors, updated maintainers. Removed the
8580         specific areas of action.
8582         * Patch from Andrew Ferrier <andrew@new-destiny.co.uk>, derived
8583         from a patch by Xing Wang <quixon@gnuchina.org>:
8585         * app/commands.c: help_about_callback now supports
8586         new-style GNOME about box as well as old GTK style. 
8587         code also tidied (Closes: #85726)
8589         (end of Patch)
8591         * app/commands.c: fixed the copyright (it's not all FSF), and
8592         maintainers. Synced contributors list with AUTHORS.
8593                 
8594 2002-06-24  Lars Clausen  <lrclause@cs.uiuc.edu>
8596         * lib/message.c: More work on repeating messages, now with
8597         togglable view.
8599 2002-06-24  Hans Breuer  <hans@breuer.org>
8601         * lib/widget.c : some more bits in place, at least
8602         it does something useful instead of crashing. Much
8603         better - but not all ok :-)
8605 2002-06-23  Lars Clausen  <lrclause@cs.uiuc.edu>
8607         * lib/message.c (gtk_message_internal): First stab at repeating
8608         message dialog.
8610 2002-06-23  Cyrille Chepelov  <cyrille@chepelov.org>
8612         * objects/FS/*.c:
8613         * objects/GRAFCET/*.c:
8614         * objects/SADT/*.c:
8615         * objects/UML/association.c: (one instance forgotten)
8616         * objects/UML/large_package.c: 
8617         * objects/standard/textobj.c:
8618         * lib/attributes.c:
8619         * lib/text.c:
8620         using dia_font_new_from_style()
8622 2002-06-23  Hans Breuer  <hans@breuer.org>
8624         * lib/font.c : giving some love to
8625         dia_font_new_from_legacy_name() that is making
8626         import of old files as painless as possible and
8627         provide an almost exact match where possible.
8628         It does not yet fully work because it interfers
8629         with the Style to DiaStyle conversion which comes
8630         next ...
8632         [Changing these files is only allowed with Dia-0.90]
8633         * broken-files/fonts-0.90.dia : including the
8634         common hard-coded fonts from Dia-0.90. It also
8635         has drawn bounding-boxes for win32 as they were calculated
8636         from the former version (they were all too big).
8637         * broken-files/fonts-0.90-full.dia : all hardcoded
8638         fonts including the asian versions. On my machine
8639         this gives _a lot_ complaining about missing fonts
8640         and a finally a broken file display. Anyone having
8641         all these fonts ?
8642         
8643 2002-06-23  Cyrille Chepelov  <cyrille@chepelov.org>
8645         * objects/chronogram/*.c: 
8646         * objects/custom/custom_object.c:
8647         * objects/ER/*.c:
8648         using dia_font_new_from_style()
8650 2002-06-23  Lars Clausen  <lrclause@cs.uiuc.edu>
8652         * lib/widgets.c (dia_font_selector_set_styles): Improvements to
8653         font selector (stability, insensitivity).
8655         * lib/font.c (dia_font_scaled_build_layout): Removed unworkable
8656         stretching scheme for tweaking, and made scaling scheme faster
8657         (but less precise).
8658         (dia_font_dia_style_to_pango): Oops, % != /.
8660 2002-06-23  Cyrille Chepelov  <cyrille@chepelov.org>
8662         
8663         * patch from Matthieu Sozeau  <mattam@netcourrier.com>:
8665         * plug-ins/xslt : Added an XSLT plugin to export dia files using
8666         XML Stylesheets. The plug-in requires DIA_PLUGIN_PATH to be set.
8667         It includes a small config file to tell it what stylesheets to use.
8669         (end of patch)
8670         
8671         * plug-ins/xslt/xsltdialog.c: modified the dialog to be more 
8672         GTK2.0/HIG compliant (the labels could be slightly more verbose,
8673         perhaps). Added back a couple forgotten _(). Removed //-style
8674         comments.
8675         
8676 2002-06-23  Hans Breuer  <hans@breuer.org>
8678         * lib/plug-ins.c
8679         (dia_plugin_get_name) : don't crash plugin_manager
8680         on name being NULL 
8681         (dia_plugin_load) : reuse the description field to
8682         store the error string if loading fails.
8684         * lib/font.[hc] : starting to beautify the new
8685         font api: proper namespacing, adding convenience
8686         functions like dia_font_new_from_style(), ...
8688         * objects/uml/*.c : use the new convenience functions.
8690         [Next thing I plan to do is changing the other font
8691          functions to take DiaStyle and make Style and 
8692          BASIC_*_FONT vanish. As well as giving some love to
8693          dia_font_new_from_legacy_name().
8694          If anyone want's to help on converting the other
8695          objects to the new api during that, I would highly 
8696          appreciate it.]
8698 2002-06-23  Hans Breuer  <hans@breuer.org>
8700         * lib/font.c : made it compile and small indent fixes.
8701         Is there a code-has-no-effect-so-needs-not-be-valid
8702         with GCC?       
8704         * lib/widgets.c : use g_strcasecmp
8706 2002-06-22  Lars Clausen  <lrclause@cs.uiuc.edu>
8708         * lib/font.c: 
8709         * lib/font.h: 
8710         * lib/widgets.c: Font names sorted, style selector widget
8711         reappeared.  Doesn't select the old style yet.
8713 2002-06-22  Cyrille Chepelov  <cyrille@chepelov.org>
8715         * lib/font.c: one who expects a text's font to be changed shall 
8716         actually request the attributes to apply to the whole range of the
8717         said text... D'oh! 
8719         * lib/font.c: extents computation was wrong.
8721         * lib/font.c: dia_font_get_legacy_name(); g_strconcat works better
8722         if a last NULL parameter is added...
8724         * lib/font.c: extents computation was completely wrong. This looks
8725         much better this time.
8727         * objects/UML/class.c: fixed the various strings positions.
8729         * lib/font.h, and **/*.[ch] (all callers of dia_font_new): used
8730         macros to get the hardcoded base fonts.
8732         * objects/ER/relationship.c: wasn't converted to DiaFont*
8733         
8734 2002-06-22  Hans Breuer  <hans@breuer.org>
8736         * lib/widget.c : dont use backend specific functions
8737         to get on the font_families. Including it would mean
8738         including <windows.h> which breaks due to namespace
8739         pollutions ...
8741         * lib/libdia.def : updated externals
8743         * app/makefile.msc : temporary disabled: -DHAVE_LIBART
8745         * lib/font.c : added empty dia_font_init_instance function,
8746         reformatting of dia_fon_unref to allow to set breakpoint,
8747         dia_fon_build_layout() : dont crash on string==NULL
8749         * lib/text.c (text_set_attributes) : don't unref the wrong font
8751         * lib/widgets.c (dia_fon_selector_set_font) : our hashtable
8752         stores lowercased font names, but dia_font_get_family()
8753         returns mixed case      
8755 2002-06-22  Lars Clausen  <lrclause@cs.uiuc.edu>
8757         * lib/widgets.c: 
8758         * app/render_gdk.c: Patch from Hans Breuer.
8760         * app/Makefile.am (dia_core_files): diaconv commented out for now.
8761         
8762 2002-06-22  Cyrille Chepelov  <cyrille@chepelov.org>
8764         * lib/all files touched yesterday: took into account some of Hans
8765         Breuer's remarks in
8766         http://mail.gnome.org/archives/dia-list/2002-June/msg00257.html
8768         * objects/chronogram/*: 
8769         * objects/custom/*:
8770         * objects/ER/*:
8771         * objects/flowchart/*:
8772         * objects/FS/*:
8773         * objects/GRAFCET/*:
8774         * objects/SADT/*:
8775         * objects/standard/textobj.?:
8776         * objects/UML/*:
8777         converted to the new DiaFonts.
8779         * plug-ins/cgm/*:
8780         * plug-ins/pstricks/*:
8781         * plug-ins/wpg/*:
8782         * plug-ins/dxf/*:
8783         * plug-ins/xfig/*:
8784         Made minimalistic conversions so that they'd at least compile.
8786         * app/render_gdk.c:
8787         * app/render_pixmap.c:
8788         Converted to the new DiaFonts.
8790         * app/app_procs.c
8791         * app/diaconv.c:
8792         * app/render_eps.c:
8793         made the minimal changes so that it would at least build.       
8795         *** At this point, the thing builds on my machine, but segfaults
8796         right away. ***
8797         
8798 2002-06-21  Cyrille Chepelov  <cyrille@chepelov.org>
8800         * configure.in: removed the backend-specific pango pkg_modules
8801         (trivial to add back if needed, when actually needed)
8803         * app/Makefile.am:
8804         * app/*gnomeprint.[ch]: (removed): removed the GNOME-print
8805         renderer. The APIs will have completely changed when we get around
8806         to redo a renderer for it, anyways.
8808         * font.[ch]: rewrote everything from scratch, with a Pango
8809         implementation. Normally, only backend-neutral things should go in
8810         there.
8812         **WARNING**: new rules for managing DiaFont* pointers: these are
8813         reference-counted GObjects. One >must< diafont_ref() and
8814         diafont_unref() as appropriate. I wish I could overload operator=()...
8816         lib/plug-ins.h: bumped up the plug-in API.
8817         
8818         lib/attributes.c: 
8819         lib/dia_xml.c: 
8820         lib/dummy_dep.h
8821         lib/object_defaults:
8822         lib/prop_attr.c: Adapted to the new DiaFont API. This'll change
8823         again tomorrow with GObject.
8824         
8825         lib/widgets.c: Adapted to the new DiaFont API and to Pango.
8827         **** The rest of the tree should be updated as well ****
8828         
8829 2002-06-21  Lars Clausen  <lrclause@cs.uiuc.edu>
8831         * app/render_gdk.h: 
8832         * app/render_gdk.c: 
8833         * app/render_pixmap.c: 
8834         * app/render_pixmap.h: 
8835         * app/render_libart.h: 
8836         * app/render_libart.c: 
8837         * lib/font.h: 
8838         * lib/font.c: Removed freetype stuff (still around in
8839         lib/widgets.c 'cause we might want the font selector widget).
8841 2002-06-20  Cyrille Chepelov  <cyrille@chepelov.org>
8843         * shapes/network/laptop.(xml|shape):
8844         * sheets/network.sheet.in: added Laptop (notebook) PC shape,
8845         contributed by Alan Horkan <horkana@tcd.ie>. (Closes: #82643)
8847 2002-06-17  Hans Breuer  <hans@breuer.org>
8849         * lib/object_defaults.c : #include <libxml/tree.h> not
8850         <tree.h> pointed out by Xing Wang
8852 2002-06-17  Lars Clausen  <lrclause@cs.uiuc.edu>
8854         * lib/color.h (GDK_COLOR_TO_DIA, DIA_COLOR_TO_GDK): 
8855         * lib/widgets.c: 
8856         * app/color_area.c: Update to
8857         gtk_color_selection_*_current_color() fixed bad crash issues, plus
8858         updated color conversions.
8860         * sheets/ER/weakentity.xpm: Accepted patch from
8861         quixon@gnuchina.org to make icon match actual appearance.
8863         * app/recent_files.c: Fixed GNOME recent file problem, thanks to
8864         quixon@gnuchina.org.
8866 2002-06-16  Hans Breuer  <hans@breuer.org>
8868         * lib/plug-in.[hc] : make PlugInInfo opaque again in the 
8869         good tradition of information hiding. Add new function
8870         dia_plugin_get_symbol()
8871         * app/sheets.c app/sheets_dialog_callbacks.c : use it
8873         * app/sheets.c : stop complaining about object_get_type() 
8874         returning NULL. This is a consequence of e.g. disabling 
8875         plug-ins at runtime _and_ it was and is gracefully handled. 
8876         Spitting out g_warning for it isn't appropriate. 
8878         * lib/object.[ch] : removed dead code
8880         * app/plugin-mangager.c : almost complete rewrite for gtk2
8881         using GtkListStore/GtkTreeView
8883         * lib/libdia.def : updated externals
8885         * todo.gtk2 : updated, that is removed already done steps
8887 2002-06-15  Hans Breuer  <hans@breuer.org>
8889         * objects/uml/class_dialog.c : clean some left-over
8890         utf8-mess, return 0 from "focus_out_event" handlers
8891         to avoid asserting in gtk (#78305). Reconstruct 
8892         stereotype/NULL behaviour to avoid rendering empty
8893         stereotypes on classes and member functions
8895         [#56109 - Provide object defaults for StdProp objects,
8896          some remaining issues are discussed in bugzilla]
8898         * lib/object_defaults.c : (new file) manage default properties 
8899         of dia objects. The serialization is done with standard
8900         object methods in a diagram compatible format.
8902         * lib/object.c : add object_registry_foreach() which allows
8903         to iterate over all registered object types
8905         * lib/object.h : added prototypes object_default*() and
8906         object_registry_foreach()
8908         * lib/makefile.am lib/makefile.msc : add new file to build
8910         * lib/libdia.def : export new functions
8912         * app/defaults.c : provide StdProp based defaults if the
8913         ObjectType doesn't implement it's own default functions
8915         * app/create_object.c : through dia_object_default_create()
8916         * app/disp_callbacks.c : same here
8918 2002-06-12  Lars Clausen  <lrclause@cs.uiuc.edu>
8920         * objects/FS/flow-ortho.c (orthflow_get_object_menu): Menu
8921         sensitivity for deleting segments.
8923 2002-06-12  Cyrille Chépélov  <cyrille@chepelov.org>
8925         * app/color_area.c: (color_area_events):
8926         * app/diagram.c: (diagram_destroy):
8927         * app/interface.c: (zoom_activate_callback), (fill_sheet_wbox),
8928         (fill_sheet_menu):
8929         * app/load_save.c: (diagram_data_load):
8930         * app/menus.c: (menus_get_item_from_path):
8931         * app/preferences.c: (prefs_load):
8932         * app/render_gdk.c: (get_text_width):
8933         * lib/arrows.h:
8934         * lib/color.c: (color_convert):
8935         * lib/dia_dirs.c: (dia_config_filename):
8936         * lib/dia_xml.c: (xmlDiaParseFile), (data_type):
8937         * lib/intl.c: (intl_get_language_list):
8938         * lib/message.c: (message):
8939         * lib/message.h:
8940         * lib/paper.c: (get_default_paper):
8941         * lib/plug-ins.c: (this_is_a_plugin), (dia_register_plugins):
8942         * lib/widgets.c: (dia_file_selector_get_file):
8943         * lib/widgets.h:
8944         * objects/standard/image.c: (get_directory):
8946         warningectomy.
8947         
8948 2002-06-12  Lars Clausen  <lrclause@cs.uiuc.edu>
8950         * ChangeLog: Fixed bad UTF-8 mess.  Apologies.
8952 2002-06-11  Lars Clausen  <lrclause@cs.uiuc.edu>
8954         * app/interface.c: sscanf now returns EOF on empty string, so
8955         handle no match for zoom factor better => correct zoom at start.
8957         * app/sheets.c (create_object_pixmap): Tried to display empty error.
8958         (sheets_optionmenu_create): Died when not finding specified
8959         sheet.  Don't think it should.
8961         * objects/UML/association.c: Added patch from osamyn@ulb.ac.be
8962         (bug #84367) to place the text better.
8964 2002-06-11  Cyrille Chepelov  <cyrille@chepelov.org>
8966         * configure.in: Added forgotten libgnomeui-2.0 when --enable-gnome
8967                         
8968         * app/commands.c: Removed unnecessary gnome include. Removed
8969         GNOME-Print support.
8971         * app/menus.h: Removed now unnecessary gnome include.
8972         
8973         * app/sheets_dialog.c: Used Gtk 2.0 stock buttons instead of
8974         GNOME-specific stock buttons
8975         
8976 2002-06-09  Hans Breuer  <hans@breuer.org>
8978         * app/app_procs.c : convert 'Modified diagrams exits'
8979         dialog to use GtkMessageDialog. That gives us:
8980         - icons without Gnome dependency
8981         - much less code, also cross platform
8982         - improved useability ?
8984         * app/color_area.c : the Color Selection Widget looked
8985         quite wrong (alpha problems). Fix it by merging in required
8986         changes stolen from The Gimp cvs
8987         * app/color_area.h : to get the right appearance the maskes
8988         needed to be taken into account
8989         * app/interface.c : adapt to color_area_create changes.
8990         Also remove some dead code and finally remove cvs autexpansion, 
8991         I was bothered enough by irrelevant differences :-)
8993         * app/defaults.c app/properties.c app/dia-props.c : use improved GtkDialog
8994         api, i.e stocks and response to make the GnomeDialog usage
8995         obsolete. Also fixed the issue with closing the 'parent'
8996         before closing the dialog
8998         * app/display.[ch] : removed some dead code and conversion
8999         to new GtkDialog api. Also trying to conform to new HIG
9000         standard http://developer.gnome.org/projects/gup/hig/
9002 2002-06-09  Hans Breuer  <hans@breuer.org>
9004         * lib/makefile.msc : define GTK_DISABLE_DEPRECATED,
9005         build ps-utf8.c
9007         * lib/dia_image.c : gtk_widget_set_default_visual()
9008         remove. It does nothing with Gtk2.
9010         * lib/libdia.def : added ps_unicoder exports
9012         * lib/message.c : remove #GNOME use GtkMessageDialog.
9013         Yeah, Dia gets dialogs wit icons cross-platform.
9015         * lib/prop_geomtypes.c : gtk_spin_button_get_value_as_float()
9016         to gtk_spin_button_get_value()
9018         * lib/prop_inttypes.c : gtk_label_set() -> gtk_label_set_text()
9020         add #undef GTK_DISABLE_DEPRECATED to still use ...
9021         * lib/prop_text.c :  ... GtkText
9022         * lib/prop_widgets.c : ... GtkList
9023         * lib/prop_dialogs.c : ... gtk_signal_connect and more
9024         * lib/widgets.c : ... (too much to list here)
9026         * lib/ps-utf8.c : #include <string.h>
9028 2002-06-08  Cyrille Chepelov  <cyrille@chepelov.org>
9030         * configure.in:
9031         * Makefile.am:  Adapted for gtk2.
9032         Removed dependencies on libunicode, on iconv(), on langinfo().
9034         * acconfig.h: removed (now obsolete)
9036         * lib/charconv.[ch]: removed (superceded by glib)
9037         * lib/ps-utf8.[ch]: removed dependency on charconv.[ch]
9039         * **/*.[ch]: removed (utfchar *), (unichar) and other charconv or
9040         libunicode types for their glib counterparts. Fixed the include
9041         paths for libxml2. Removed all traces of libxml1 or non-UTF8
9042         support (there were remains in objects/uml).
9044         
9045 2002-06-08  Hans Breuer  <hans@breuer.org>
9047         */*.c */*/*.c : remove all the #ifdef *_UTF8_* hell,
9048         only keep the utf-8 clean code cause Dia+Gtk2 now talk it.
9049         Also use g_strdup()'s handling of NULL by returning NULL
9050         again at all places I found (remove unnecessary if's)
9052         * todo.gtk2 : new file to keep notes about gtk2 porting,
9053         further issues and thoughts and some status information.
9054         Also sent to dia-list ('Dia goes Gtk2 ...').
9055         
9056         [make it compile with GTK+ 2.0]
9058         * config.h.win32 : #undef GTK_TALKS_UTF8_WE_DONT,
9059         removed definition of S_ISDIR, S_ISREG and getlogin
9061         * */makefile.msc : Use GTK2 and libxml2
9062         BEWARE: makefile.am, configure.in not yet ported !
9064         * app/app_procs.c app/diagram.c : remove 
9065         gtk_item_factory_dump_rc code, (it wasn't read in again anyway) 
9066         but set use gtk_menu_set_accel_path() on menu creation
9068         * app/color_area.c lib/widgets.c : 
9069         make use of gtk_color_selection_set_has_palette ()
9071         * app/commands.c : gdk_pixbuf_new_from_file wants an 
9072         extra argument. Convert from DIR to GDir usage.
9074         * app/diagram_tree.c(button_press_callback) : need to return 
9075         FALSE in the signal handler to let gtk process it further.
9076         (get_object_name) : don't leak 'prop'
9077         
9078         * app/diapagelayout.c : adapt to GtkTypeInfo changes and handle 
9079         dia_page_layout_destroy() getting called more than once
9081         * app/diaunitspinner.c : GtkEditable -> GtkEntry, 
9082         GtkTypeInfo changes
9084         * app/disp_callbacks.c : gtk_menu_append() -> gtk_menu_shell_append()
9086         * app/display.h : wrap input contexts declarations into #ifdef USE_XIM.
9087         IIRC this code will not compile unchanged when USE_XIM is defined ...
9089         * app/gtk[hv]wrapbox.[hc] : use already ported version from The GIMP 1.3.x
9091         * app/interface.c : there is no widget->klass anymore in Gtk, 
9092         use GTK_WIDGET_GET_CLASS instead. gdk_pixbuf_new_from_file() extra
9093         parameter. Some tweaking of GtkWrapBox usage to get four tools in
9094         a row again.
9095         switch off GTK's double buffering on Dia's canvas. Otherwise we would 
9096         get triple buffering and flicker.
9097         Replace call to GTK private function _gtk_accel_group_attach()
9098         with public gtk_window_add_accel_group()
9100         * app/layer_dialog.c : adapt to GtkTypeInfo changes
9102         * app/load_save.c lib/plug-ins.c lib/sheet.c 
9103           objects/custom/custom.c : 
9104         simplified by using g_file_test()
9106         * app/menus.c : convert from gtk_item_factory_<dump|parse>_rc 
9107         to gtk_accel_map_<save|load>. Also added common stock-icons
9108         to the menu.
9109         
9110         * app/preferences.c : use gtk_button_set_label() instead
9111         of button->child which is gone. Also removed GLIB_CHECK_VERSION.
9113         * app/preferences.c lib/dia_xml.c lib/plug-ins.c :
9114         #ifdef G_OS_WIN32 #include <io.h>, this was formerly done
9115         in config.h.win32
9117         * app/recent_files.c : removed GLIB_CHECK_VERSION
9119         * app/render_eps.c 
9120           plug-ins/metapost/render_metapost.c
9121           plug-ins/pstricks/render_pstricks.c
9122           plug-ins/svg/render_svg.c :
9123         replace getlogin() with g_get_user_name() which always
9124         returns non NULL
9126         * app/render_gdk.c : gdk_region_union_with_rect() modifies
9127         inplace now and returns nothing, also less #hell
9129         * app/render_libart.c : some initial #hell cleaning, SuckFont
9130         still needs to vanish
9132         * app/splash.c : gdk_pixbuf_new_from_file() second arg and
9133         GTK_WINDOW_DIALOG -> GTK_WINDOW_TOPLEVEL
9135         * app/render_pixbuf.c app/sheets.c : plain #hell cleaning
9136         * app/sheets_dialog_callbacks.c : some #hell and adaptions
9137         needed to GtkWrapBox api changes
9140         * lib/charconv.[hc] : removed from build
9141         [changed appropriate]
9142         * lib/prop_inttypes.c lib/prop_text.c : 
9143         all utf-8 cleaning 
9144         * lib/text.c : ported from HEAD but keep original indent
9145         intact. Original was done by Akira TAGOH.
9147         * lib/color.c : GdkColorContext is gone, use GdkColormap instead.
9149         * lib/dia_image.c : gdk_pixbuf_new_from_file() second arg
9151         * lib/dia_xml.c : remove #ifdef GLIB_CHECK_VERSION, it's the
9152         same on all platforms now!
9154         * lib/font.c : still using SuckFont which was an IMPERATIVE FIXME!
9156         * lib/message.c : remove "charconv.h"
9158         * lib/prop_text.c : #define GTK_ENABLE_BROKEN to use GtkText
9160         * lib/plug-in.c :
9161         * lib/sheet.c : convert from DIR to GDir usage
9163         * lib/widgets.c : gtk_menu_(shell_)append and GtkTypeInfo
9165         * lib/widgets.h : include gtk<label|colorseldialog>.h
9168         * objects/fs/flow.c :
9169         * objects/fs/flow-ortho.c : GTK_ENABLE_BROKEN to use GtkText
9171         * objects/custom/custom.c : convert from DIR to GDir usage
9174         * plug-ins/python/makefile.msc : updated for GTK2/Python2.2
9177 2002-05-03  Hans Breuer  <hans@breuer.org>
9179         * lib/dia_xml.c : make the well formed utf8 check
9180         actually work for &#251; (non 7-bit ascii encoding)
9181         and fixed the file re-writing if the check fails.
9182         Thanks to Vitaly Lipatov for noticing the misbehaviour.
9184         * lib/font.c : synchronize #ifdef G_OS_WIN32 with
9185         comment on last ressort font. Thanks to Maxim Sobolev.
9187 2002-06-03  Cyrille Chepelov  <cyrille@chepelov.org>
9189         * sheets/network.sheet.in: corrected a typo in plotter invocation.
9191 2002-06-03  Steffen Macke  <sdteffen@web.de>
9193         * shapes/network/digitizing_board.png:
9194         * shapes/network/digitizing_board.shape:
9195         * shapes/network/plotter.png:
9196         * shapes/network/plotter.shape:
9197         * shapes/network/Makefile.am
9198         * sheets/network.sheet.in: added new plotter and digitizing
9199         board shapes
9200         
9201 2002-06-02  Cyrille Chepelov  <cyrille@chepelov.org>
9203         * lib/font.c: made a symptomatic fix to a segfault reported by 
9204         Jan Keirse <jan.keirse@pandora.be> on a SuSE 7.3 system. This
9205         won't prevent dia from terminating, but should give more
9206         user-friendly information about why did it terminate.
9208         Two patches from <robert.young@dsto.defence.gov.au>:
9209         
9210         * app/display.c: fix the size of the canvas area which gets
9211         redrawn. There was an off-by one error (Closes #83659)
9213         * app/display.c: make sure we redraw all screen only when we
9214         really have to (some update_areas were mistakenly ignored) (Closes
9215         #83496). 
9217         * NEWS: added a new entry for the future. Put there a reminder to
9218         update the dependencies.
9220         * configure.in: put in notes about what will change shortly.
9221         upped the version to 0.90+cvs (did also in config.h.win32)
9222         upped the minimum version for intltools (now 0.21)
9223         
9224 2002-06-01  Cyrille Chepelov  <cyrille@chepelov.org>
9226         * dia.spec:
9227         * configure.in:
9228         * NEWS:
9229         * config.h.win32:
9230         bumped up version number to 0.90. Yay!
9232 2002-05-30  Cyrille Chepelov  <cyrille@chepelov.org>
9234         * doc/pl/Makefile.am:
9235         * doc/en/Makefile.am: fixed a "make install" problem when db2html
9236         is not present (Reported by Andrew Ferrier
9237         <andrew.junk@new-destiny.co.uk>). Fixed another "make distclean"
9238         problem which prevented me from ever seeing the problem in doc/en...
9239         
9240         * Makefile.am: added autogen.sh to the EXTRA_DIST clause.
9241         
9242         * lib/font.c: patch from <robert.young@dsto.defence.gov.au>; add a
9243         way to read the font path from the XFS configuration files in
9244         order to enable FreeType (fixes #83098).
9246         * POTFILES.(in,skip): now skips objects/sybase/sybase.c, which is not
9247         shipped nowadays.
9248                 
9249         * dia.spec:
9250         * configure.in:
9251         * NEWS:
9252         * config.h.win32:
9253         bumped up version number to 0.90.RC3
9255 2002-05-29  Zbigniew Chyla  <cyba@gnome.pl>
9257         * configure.in, doc/Makefile.am, doc/pl/Makefile.am,
9258         doc/pl/authors.sgml, doc/pl/dia-manual.sgml, doc/pl/dia-pl.omf,
9259         doc/pl/intro.sgml, doc/pl/license.sgml, doc/pl/topic.dat
9260         doc/pl/usage-canvas.sgml, doc/pl/usage-customization.sgml,
9261         doc/pl/usage-layers.sgml, doc/pl/usage-loadsave.sgml
9262         doc/pl/usage-objects-selecting.sgml, doc/pl/usage-objects-special.sgml,
9263         doc/pl/usage-objects.sgml, doc/pl/usage-quickstart.sgml:
9264         Added Polish documentation.
9266 2002-05-27  Cyrille Cheeplov  <cyrille@chepelov.org>
9268         * objects/UML/state.c: there was a (gratuitous?) change of on-XML
9269         format for the UML State object. Now there's a hack to reload
9270         older files, and get them converted on the fly. 
9271         Justyna BiaÅ?a <nell@poczta.gazeta.pl> reported this. Thanks!
9273         * lib/properties.h:
9274         * lib/propobject.c:
9275         * lib/proplist.c: Added a new property flag, PROP_FLAG_LOAD_ONLY,
9276         and adapter the proplist predicates. A LOAD_ONLY property is for
9277         when you have legacy to support but can't resist moving your
9278         fields around... (was needed to support the above state.c fix).
9280         If the in-core of your object changes and you need a LOAD_ONLY
9281         property for the old format, you must keep some spare room in your
9282         object's struct to accomodate for the potential old-style
9283         attributes. Then in foo_load(), after having called
9284         object_load_using_properties(), you must inspect the old-style
9285         fields and act accordingly. Don't ever change the on-disk formats...
9287         * objects/UML/object.c:
9288         * objects/UML/small_package.c: added a check against empty
9289         stereotypes still consuming space. Reported by Dolores Alia de
9290         Saravia <loli@unsa.edu.ar>. Thanks!     
9291         
9292 2002-05-26  Cyrille Chepelov  <cyrille@chepelov.org>
9294         * INSTALL: added platform notes from MÃ¥rten Svantesson, for when
9295         using libtool on an AFS partition.
9297         * po/update_potfiles_in.sh: now simply calls the recent intltools 
9298         features; they work better than hand-crafted half-ignorant
9299         scripts. Thanks to Kenneth Rohde Christiansen <kenneth@gnu.org>
9300         for the tip.
9302         * po/POTFILES.in: added back two files update_potfiles_in.sh
9303         didn't take into account. Now this file is not automatically
9304         generated anymore!      
9305         * po/POTFILES.skip: told `intltool-update -m` what files to ignore
9306         (the usual suspects, in fact).
9308         * configure.in: improved the isinf() / isfinite() detection on
9309         Solaris (MÃ¥rten Svantesson)
9310         
9311 2002-05-25  Cyrille Chepelov  <cyrille@chepelov.org>
9313         * configure.in: one expression was replacing $CFLAGS, removing
9314         whatever was previously in.
9315         Added more checks for isinf() and finite() on Solaris.
9317         * lib/geometry.h: added a macro defintion for isinf() if not
9318         HAVE_ISINF. (Hans, you may want to #define HAVE_ISINF if relevant
9319         on Win32)
9321         * app/commands.c: "cut" did not set the 'modified' bit (paste has
9322         been for a little while). Fixes #82994.
9324         * Makefile.am: added more stuff to distclean-local. This should make
9325         "make distcheck" pass! Thanks to the author of
9326         http://mail.gnome.org/archives/gnome-2-0-list/2001-August/msg00212.html
9327         ... I wonder who this Henstridge guy is ... ;-)
9328         Darn. Still doesn't pass. I give up for tonight.
9329         
9330         * po/update_potfiles_in.sh: updated to take care of sheet files,
9331         and to filter out the EML plug-in.
9332         * po/POTFILES.in: updated with all .c and all .sheet.in files 
9334         * po/dia.pot, po/*.po: again updated all .po files with all
9335         strings (with the updated POTFILES). Now with the up-to-date
9336         POTFILES, just all languages have some fuzzy or untranslated
9337         strings (not that the 100% team was that large beforehand...)
9339         * po-checktrans: removed the comment about .po files not holding
9340         all translatable stuff, since now they do.
9341         
9342 2002-05-24  Cyrille Chepelov  <cyrille@chepelov.org>
9344         * dia.spec:
9345         * configure.in:
9346         * NEWS:
9347         * config.h.win32:
9348         bumped up version number to 0.90.RC2
9350 2002-05-20  Hans Breuer  <hans@breuer.org>
9352         * app/load_save.c : starting to increase
9353         Dias tolerance on incomplete/broken files. The 
9354         corresponding bug is #56233. But the patch there does
9355         neither apply anymore nor does it really fix the problem
9356         but only delays it, e.g. even if it would be allowed
9357         to read a file without any layers, the later code can't
9358         handle it.
9359         * lib/dia_xml.c : attribute_<num|first>_data(), data_type()
9360         handle passing in NULL for the node gracefully.
9362         * shapes/network/printer.shape : added two more connection
9363         points - one at each side - to fix bug #60359
9365         * app/commands.c (edit_copy_callback) : 
9366         add ddisplay_do_update_menu_sensitivity() to make 
9367         sequence select-copy-paste work.
9369 2002-05-20  Hans Breuer  <hans@breuer.org>
9371         * app/create_object.c (create_object_button_press) :
9372         added a call to ddisplay_do_update_menu_sensitivity()
9373         to make Ctrl^D etc work after object creation. 
9374         Fixes #80983.
9376 2002-05-18  Lars Clausen  <lrclause@cs.uiuc.edu>
9378         * objects/ER/entity.c: 
9379         * objects/ER/attribute.c: 
9380         * objects/ER/relationship.c: Patch to allow text size change from
9381         Celso Tetsuo Nagase Suzuki.
9383 2002-05-18  Steffen Macke <sdteffen@web.de>
9385         * app/app_procs.c: #ifdef'd xmlerror.h (comes with 
9386         libxml2)
9387         * doc/en/graphics/greendots.png:
9388         * doc/en/home_network.png:
9389         * doc/en/line_props.png: 
9390         * dia-diagram.png:
9391         * dia_gnome_icon.png:
9392         * dia_gnome_menu_icon.png:
9393         * dia_logo.png:
9394         * shapes/network/telephone.png:
9395         * shapes/Logic/and.png:
9396         * shapes/Logic/buffer.png:
9397         * shapes/Logic/connector.png:
9398         * shapes/Logic/inverter.png:
9399         * shapes/Logic/nand.png:
9400         * shapes/Logic/nor.png:
9401         * shapes/Logic/not.png:
9402         * shapes/Logic/or.png:
9403         * shapes/logic/xor.png:
9404         * samples/ER-demo.dia:
9405         * samples/SADT.dia:
9406         * samples/UML-demo.dia:
9407         * samples/chronograms.dia:
9408         * samples/grafcet.dia: re-added as binary files
9410 2002-05-17  Hans Breuer  <hans@breuer.org>
9412         * lib/libdia.def : reflect removing of render_store.[ch]
9414         * */makefile.mingw : remove VERSION definition it's
9415         done in config.h.win32. Dia still doesn't work if
9416         build with mingw ...
9418         * RELEASE-PROCESS : removed */makefile.mingw
9420         * app/sheets_dialog_callbacks.c : if we use those
9421         ugly charconv_gtk_* functions lib/charconv.h needs to
9422         be #included ...
9423         * lib/charconv.h : ... and needs to contain the 
9424         necesseray prototypes _and_ #defines
9426         * plug-ins/shape/shape-export.c : with libxml2 xmlNewGlobalNs
9427         is deprecated and does nothing but spit a warning. This broke
9428         the shape format writing. Fixed.
9429         Also with libxml2 pretty formatted xml isn't the default
9430         anymore, but needs to be enabled explicit: It is done now 
9431         for shape files, which almost always needed to be edited by
9432         hand ... 
9434         * app/app_procs.c : #if G_OS_WIN32 redirect xmlErrorReporting
9435         from stderr - which is invalid on Dia/win32 - to g_print -
9436         which opens up a console window if necessary. This way
9437         a xml-deprecation-error shouldn't stay unnoticed next time
9439 2002-05-17  Steffen Macke <sdteffen@web.de>
9441         * shapes/Misc/folder.png:
9442         * shapes/Misc/file.png: re-added as binary files
9443         
9444 2002-05-16  Lars Clausen  <lrclause@cs.uiuc.edu>
9446         * lib/font.c: Fixed segfault for fonts without family_name.
9448 2002-05-17  Cyrille Chepelov  <cyrille@chepelov.org>
9450         * po/POTFILES.in: added app/sheets_dialog_callbacks.c
9452         * app/sheets_dialog_callbacks.c: While reviewing UTF-8isation upon
9453         Lars' request, minor cosmetic stuff (mostly _() of human-readable
9454         XML comments in .sheet files; one translator booby-trap disarmed).
9456         * lib/charconv.c: moved #hell inside the body of the new
9457         charconv_*gtk* functions (otherwise the Win32 or gtk2.0 linker
9458         will yell)
9459         
9460 2002-05-16  Lars Clausen  <lrclause@cs.uiuc.edu>
9462         * plug-ins/wpg/Makefile.am (INCLUDES): 
9463         * plug-ins/shape/Makefile.am (INCLUDES): 
9464         * plug-ins/svg/Makefile.am (INCLUDES): 
9465         * plug-ins/pstricks/Makefile.am (INCLUDES): 
9466         * plug-ins/metapost/Makefile.am (INCLUDES): Added UNICODE_CFLAGS
9467         and DEBUG_CFLAGS in some missing places.
9469         * MAINTAINERS: New file containing list of known package
9470         maintainers. 
9472         * lib/charconv.h: 
9473         * lib/charconv.c: Charconv versions of some common gtk calls.
9475         * app/sheets_dialog_callbacks.c
9476         (on_sheets_new_dialog_button_ok_clicked),
9477         (on_sheets_dialog_button_edit_clicked),
9478         (on_sheets_dialog_button_remove_clicked),
9479         (on_sheets_edit_dialog_button_ok_clicked):
9480         * app/sheets.c (sheets_optionmenu_create),
9481         (sheets_optionmenu_create): Added utf8 translations.
9483         * app/sheets_dialog.c: 
9484         * app/sheets.c: 
9485         * app/sheets_dialog_callbacks.c: Added some missing _()'s.
9487 2002-05-16  Cyrille Chepelov  <cyrille@chepelov.org>
9489         * po/POTFILES.in: added app/sheets_dialog.c
9491 2002-05-15  Cyrille Chépélov  <cyrille@chepelov.org>
9493         * lib/charconv.c: (charconv_local8_to_utf8),
9494         (charconv_utf8_to_local8): tweaked the warnings to get more 
9495         informations
9496         * lib/font.c: (font_get_suckfont): handled a potential case of
9497         uninitialised data being used (just paranoid)
9498         
9499         * objects/GRAFCET/boolequation.c: (opstring),
9500         (opblock_get_boundingbox), (opblock_draw),
9501         (boolequation_calc_boundingbox): some extra hoops needed now dia
9502         talks UTF8 (but gtk doesn't). More #hell. Beeek. Basically, the
9503         symbols can't yet be used with their proper Unicode cells, since
9504         gtk will demand them in the Symbol font, expressed in the local
9505         8-bit encoding.
9506         
9507         * samples/grafcet.dia: re-saved, now with a fixed bounding box (by
9508         the fix just above).
9510 2002-05-14  Lars Clausen  <lrclause@cs.uiuc.edu>
9512         * app/diagram_tree.c (get_object_name): Check that name property
9513         doesn't have null string.
9515 2002-05-13  Lars Clausen  <lrclause@cs.uiuc.edu>
9517         * autogen.sh (DIE): Added conditional --force to gettextize.
9519         * app/pagesetup.c (pagesetup_ok): Commented out missing Gnome
9520         function call.
9522 2002-05-13  Cyrille Chepelov  <cyrille@chepelov.org>
9524         * RELEASE-PROCESS: added James' notes on how to properly make the
9525         tarball.
9527         * configure.in: removed macro nesting related to libpng.h, which
9528         was causing some problems on some systems (like mine, which made
9529         the snapshots bad).
9531         Made --enable-unicode, previously an option, the mandatory case.
9533         * app/Makefile.am: updated EXTRA_DIST
9534         
9535         * NEWS:
9536         * app/makefile.mingw:
9537         * dia.spec:
9538         * doc/en/dia-manual.sgml:
9539         * plug-ins/makefile.mingw:
9540         * configure.in: bumped up the version number to 0.90.RC1
9542         * lib/render_objects.[ch]:
9543         * po/POTFILES.in: removed render_objects from the build.
9545         * plug-ins/Makefile.am:
9546         * plug-ins/wmf/Makefile.am (new): EXTRA_DIST'ed the WMF plug-in,
9547         so we keep its source in the tarball.
9549         * objects/network/*.c, Makefile.am:
9550         * objects/sybase/*.c, Makefile.am:
9551         * po/POTFILES.in: cleaned up the non-existent files from the po
9552         build process.
9554         * plug-ins/Makefile.am: re-enabled metapost plug-in.
9555         
9556 2002-05-13  Steffen Macke <sdteffen@web.de>
9558         * AUTHORS:
9559         * app/command.c: added M. C. Nelson to the Authors
9560         * sheets/Circuit/Makefile.am: added firewall shape to build
9561         * sheets/network/Makefile.am: added telephone and microphone
9562           shapes to build
9564 2002-05-13  Lars Clausen  <lrclause@cs.uiuc.edu>
9566         * RELEASE-PROCESS: Added list of files that contain the release
9567         number or should otherwise be changed at each release.
9569 2002-05-12  Lars Clausen  <lrclause@cs.uiuc.edu>
9571         * objects/UML/uml.c (uml_operation_read): Forgot to commit this
9572         (reported fixed) bug: POLYMORPHIC -> LEAF for default.
9574 2002-05-12  Hans Breuer  <hans@breuer.org>
9576         * config.h.win32 : changed VERSION to 0.90.RC1
9578         * app/makefile.msc lib/makefile.msc : use renamed
9579         gdk-pixbuf version (same content but renamed because
9580         all the other gtk+ dlls are renamed) to avoid trouble
9581         mixing gtk versions (of which one would not 
9582         be initialized ...
9584         * app/app_procs.c : removed recently unneeded
9585         inclusion of "sheets.h"
9587         * app/render_gdk.c : removed my own debug spew
9588         which should never made it to cvs
9590         * lib/render_object.[hc] : added
9591         #error "File not used anymore."
9593         * lib/libdia.def : updated externals
9595         * app/interface.c : dropped filenames need to be
9596         converted from uri with Gtk+2.0
9598 2002-05-12  Cyrille Chepelov  <cyrille@chepelov.org>
9600         * RELEASE-PROCESS (new): a draft document about how to release. To
9601         be discussed. (already with some input from Hans Breuer)
9603 2002-05-12  Steffen Macke <sdteffen@web.de>
9605         * sheets/Makefile.am: re-added Misc sheet to make process
9606         
9607 2002-05-12  Lars Clausen  <lrclause@cs.uiuc.edu>
9609         * objects/FS/function.c: Added comments to humungous list of menu
9610         items, to aid translators.
9612 2002-05-11  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
9614         * app/menus.c (display_menu_items): Added a few shortcuts for zooms.
9616         * app/menus.c (display_menu_items): Added a few shortcuts for zooms.
9618         * app/interface.c (create_toolbox): Disallow shrinking beyond
9619         requested size.  Fixes bug #59439, and confirms to GTK guidelines
9620         (see gtk_window_set_policy).
9621         (create_sheets): Removed now unnecessary set_usize call.
9623 2002-05-10  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
9625         * lib/beziershape.c (remove_handles): Fixing removal of last
9626         segment.  Undo of removal still hokey.
9628 2002-05-10  Lars Clausen  <lrclause@cs.uiuc.edu>
9630         * lib/bezier_conn.c (remove_handles): Proper offset for fixing
9631         handles. 
9632         * lib/beziershape.c (beziershape_init): Removed early call to
9633         beziershape_update_data where points aren't set yet.
9634         (beziershape_add_segment): Use segment 0 instead of overflowing
9635         points array with segment+1.
9636         (beziershape_remove_segment): Proper offset for fixing
9637         connectionpoints. 
9638         (remove_handles): Proper offset.
9640 2002-05-08  Lars Clausen  <lrclause@cs.uiuc.edu>
9642         * objects/GRAFCET/action.c (action_update_data): Init x value of
9643         click point for call to connpointlist_adjust_count.
9645         * app/modify_tool.c (create_modify_tool): Init tool->auto_scrolled
9647         * app/render_pixmap.c (new_pixmap_renderer): Moved first linestyle
9648         setting to where values are inited.
9650         * lib/polyshape.c (polyshape_init): Removed call to
9651         polyshape_update_data that tried to use uninitialized data.
9653 2002-05-06  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
9655         * app/sheets_dialog.c: Mass removal of //-style comments.  The
9656         Irix compiler doesn't like them:(  I do...
9658 2002-05-06  Lars Clausen  <lrclause@cs.uiuc.edu>
9660         * app/render_libart.c (draw_string): Bail out when no GDK font is
9661         found.
9662         (set_font): Give error when font not found.
9663         (set_fillstyle): Intlized error msg.
9665         * app/pagesetup.c (pagesetup_ok, pagesetup_apply): Sets diagram
9666         modified when applied (and ok only does apply if apply is set
9667         sensitive).  Fixes bug #75623.
9669 2002-05-06  Pablo Saratxaga  <pablo@mandrakesoft.com>
9671         * configure.in: Added Vietnamese (vi) to ALL_LINGUAS
9673 2002-05-05  Steffen Macke <sdteffen@web.de>
9675         * app/Makefile.am: added $(UNICODE_CFLAGS)
9676         
9677 2002-05-02  Lars Clausen  <lrclause@cs.uiuc.edu>
9679         * app/commands.c (help_manual_callback): Check return value of
9680         opendir.
9682         * plug-ins/xfig/Makefile.am (INCLUDES): Added DEBUG_FLAGS
9684         * plug-ins/xfig/xfig-import.c: Fixed misspelled Poly_L_ine, added
9685         checks for errors.
9687 2002-04-30  Lars Clausen  <lrclause@cs.uiuc.edu>
9689         * app/render_gdk.c (draw_string): Extra free killed.  Thanks valgrind!
9691         * objects/UML/uml.c (uml_operation_read): Fix of UML default
9692         inheritance. 
9694 2002-04-30  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
9696         * app/filedlg.c (file_save_as_callback, file_save_as_ok_callback):
9697         Added button to toggle diagram compression.
9699 2002-04-29  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
9701         * lib/font.c: Support for loading extra kerning files, plus got
9702         rid of rounding errors.  Bounding box mostly perfect for freetype
9703         fonts.
9704         (font_string_width): Fudge factor to get around nonlinearity of
9705         font scaling.
9707 2002-04-29  Lars Clausen  <lrclause@cs.uiuc.edu>
9709         * lib/font.c (font_string_width): YA font calculation scheme, with
9710         comments.
9712         * objects/UML/class.c (umlclass_calculate_data): Uses the same
9713         font for drawing and calculating now.
9715         * configure.in: Added utime.h check.
9717         * app/render_gdk.c (draw_string): Uses gdk_draw_text_wc when in
9718         GTK_DOESNT_TALK_UTF8_WE_DO.  Thus it matches the string width calc.
9720 2002-04-26  Hans Breuer  <hans@breuer.org>
9722         [ Instead of fixing about 70 occurances in 20 files
9723           where GTK_TALKS_UTF8_WE_DONT needed to be handled
9724           Dia on win32 from now on uses glib-2.0 and not 
9725           only talks utf-8 with gtk-1.3 but also internally.
9726           GTK_TALKS_UTF8_WE_DONT isn't supported/needed
9727           anymore. ]
9729         * config.h.win32 : #define UNICODE_WORK_IN_PROGRESS
9730         #undef GTK_TALKS_UTF8_WE_DONT
9732         * */makefile.msc : changes to use glib-2.0 (still
9733         using gtk+1.3(win32-production)
9735         * app/disp_callbacks.c : remove GTK_TALKS_UTF8_WE_DONT,
9736         adapt kevent->string handling, add <string.h>
9737         * app/render_gdk.c (get_text_width) : the length given
9738         is in chars, gdk_text_width() needs bytes
9740         * app/render_libart.c : 
9741         * app/render_pixmap.c : remove GTK_TALKS_UTF8_WE_DONT
9742         (could simplify the same way as done in render_gdk.c)
9744         * app/diagram_tree.c app/paginate_gdiprint.cpp
9745           app/sheets.c :
9746         * lib/prop_basic.c lib/prop_geomtypes.c 
9747           lib/propdialgs.c lib/propobject.c :
9748         added <string.h> which is now removed from charconv.h
9750         * lib/charconv.h : optional use infrastructure from
9751         glib-2.0 -> only five direct function mapping left
9753         * lib/charconv.c : avoid to build this with glib-2.0
9755         * lib/font.c : no string conversion needed anymore      
9756         when Dia and Gtk talk utf-8, also code adaptions
9757         for GLIB_CHECK_VERSION(2,0,0)
9759         * lib/libdia.def : removed charconv functions
9761         * lib/prop_inttypes.c : removed GTK_TALKS_UTF8_WE_DONT,
9762         replace charconv_unichar_to_utf8() with g_unichar_to_utf8()
9764         * lib/prop_text.c lib/prop_widgets.c lib/font.c : 
9765         removed GTK_TALKS_UTF8_WE_DONT
9767         * lib/text.c : finally(?) fixed cursor <place|move>ment 
9768         for Umlauts. Also fixed char insertion, still wondering
9769         how this could ever work. Does realloc on Linux 
9770         initialize the memory with zeros ?
9772         * objects/chronogram/chronoline_event.c
9773           objects/grafcet/boolequation.c :
9774         there is no uni_get_utf8 when building for glib-2.0.
9775         Replace with g_utf8_get_char() and g_utf8_next_char().
9777         * objects/uml/stereotype.c (bracketted_to_string) : 
9778         simplify while adding code for glib-2.0 build
9780 2002-04-27  Lars Clausen  <lrclause@cs.uiuc.edu>
9782         * app/diagram.h: Autosave field
9783         * app/diagram.c (diagram_set_modified): Sets autosave field.
9784         
9785         * objects/UML/usecase.c (usecase_update_data): 
9786         * objects/flowchart/ellipse.c (ellipse_update_data): 
9787         * objects/flowchart/parallelogram.c (pgram_update_data): 
9788         * objects/flowchart/diamond.c (diamond_update_data): 
9789         * objects/custom/custom_object.c (custom_update_data): 
9790         * objects/UML/state.c (state_update_data): 
9791         * objects/UML/small_package.c (smallpackage_update_data): 
9792         * objects/UML/object.c (objet_update_data): 
9793         * objects/UML/note.c (note_update_data): 
9794         * objects/UML/node.c (node_update_data): 
9795         * objects/UML/component.c (component_update_data): 
9796         * objects/UML/classicon.c (classicon_update_data): 
9797         * objects/UML/actor.c (actor_update_data): 
9798         * objects/SADT/box.c (sadtbox_update_data): 
9799         * objects/FS/function.c (function_update_data): 
9800         All now update text boundaries from update_data.
9801         
9802         * lib/widgets.c (dia_font_selector_set_styles): Made the style set
9803         correctly. 
9805 2002-04-26  Hans Breuer  <hans@breuer.org>
9807         * config.h.win32 : added VERSION definition here
9808         (and removed from makefile.msc's)
9810         * app/makefile.msc : added new files
9812         * app/app_procs.c (app_init): remove sheets_dialog_create()
9813         from start-up and ... 
9815         * app/sheet.c (sheets_dialog_show_callback) : ... lazy create
9816         sheet_dialog here when it is really needed.
9817         #include "../lib/message.h", make sheets_dialog_create() 
9818         return it's success or failing on (!custom_type_symbol). 
9819         Although editing shapes is nice IMHO it isn't crucial enough 
9820         to abort() Dia if       it isn't possible.
9822         * app/sheet.h : adapt create_sheet_dialog() prototype
9824         * app/sheets_dialog.c : add #ifdef HAVE_UNISTD_H
9826         * app/sheets_dialog_callbacks.c : #ifdef HAVE_UNISTD_H and
9827         #ifdef HAVE_UTIME_H. Otherwise #include <sys/utime.h> and
9828         name space corrections for utime() and utim_buf #ifdef
9829         G_OS_WIN32
9831         * lib/libdia.def : export new sheet functions
9833         * lib/makefile.msc : added new files
9835         * lib/render.c : don't put draw_bezier_with_arrows() in
9836         the DrawLineWithArrowsFunc slot
9838         * objects/custom/custom_object.c : #include <gmodule.h>
9839         and export 'custom_type' via G_MODULE_EXPORT
9841         * objects/uml/class_dialog.c : removed 'incompatible 
9842         types' warnings. Some refactoring while making it fit
9843         on screen with 800x600 again.
9845         * plug-ins/python/pydia-cpoint.h : add PyDiaConnectionPoint_Check
9847         * plug-ins/python/pydia-handle.h : extra parameter to
9848         PyDiaHandle_New to store the owner of the handle
9849         * plug-ins/python/pydia-handle.c : store handle owner
9850         on construction and use it in new method .connect()
9851         * plug-ins/python/pydia-object.c plug-ins/python/pydia-diagram.c : 
9852         adapt to changed prototype
9854 2002-04-24  Lars Clausen  <lrclause@cs.uiuc.edu>
9856         * lib/text.c (text_calc_boundingbox): Will now return early if box
9857         passed is NULL.
9859         * objects/flowchart/box.c (box_update_data): Now updates text
9860         width info from update_data.
9862 2002-04-23  Steffen Macke <sdteffen@web.de>
9864         * plug-ins/xfig/xfig-import.c: fixed text import
9865         
9866 2002-04-22  Lars Clausen  <lrclause@cs.uiuc.edu>
9868         * app/export_png.c: Moved dialog functions to their own file.
9869         * app/dialogs.[ch]: New files with standard functions for creating
9870         small, transient dialogs (e.g. export options).
9871         * app/Makefile.am: Added dialogs.[ch]
9873 2002-04-19  Steffen Macke <sdteffen@web.de>
9875         * shapes/Misc/folder.*:
9876         * shapes/Misc/file.*:
9877         * shapes/Misc/Makefile.am:
9878         * shapes/Makefile.am:
9879         * sheets/Misc.sheet.in:
9880         * sheets/Makefile.am:
9881         * configure.in: added new Misc sheet containing filesystem shapes
9882         
9883 2002-04-18  Lars Clausen  <lrclause@cs.uiuc.edu>
9885         * app/lineprops_area.c: Arrow selector in toolbox changed to use
9886         standard arrowdraw code.  Line is thinner to make some arrowheads
9887         distinguishable. 
9889 2002-04-18  Steffen Macke <sdteffen@web.de>
9891         * sheets/network.sheet.in:
9892         * shapes/network/telephone.shape:
9893         * shapes/network/Makefile.am: added telephone shape
9894         
9895 2002-04-16  Steffen Macke <sdteffen@web.de>
9897         * sheets/EML.sheet.in: commented out unavailable shapes
9898         
9899 2002-04-15  M.C. Nelson <mcn@kobayashimaru.org>
9901         * app/sheets_dialog_callbacks.c:  Fixed segfault caused by mis-ordered
9902           variable assignment.
9903         
9904 2002-04-15  Steffen Macke <sdteffen@web.de>
9906         * plug-ins/dxf/dxf-import.c: text import works again
9907         * shapes/Pneumatic/Makefile.am: added compush shape
9908         * sheets/Pneumatic.sheet.in: commented out unavailable shapes dist33
9909         and dist53
9910         
9911 2002-04-11  M.C. Nelson <mcn@kobayashimaru.org>
9913         * All these modifications are for the 'Sheets and Objects' dialog
9914           (new feature):
9916         * app/pixmaps/line_break.xpm: new icon representing a line break.
9917         
9918         * app/pixmaps/n_a.xpm: new empty icon representing not available.
9920         * app/Makefile.am: added sheets_*.[ch] files to compile list.
9921         
9922         * app/menus.c: added GNOME and gtk menu items for 'Sheets and Objects'
9923         
9924         * app/sheets_dialog.c: [new file] definition of 'Sheets & Objects' dlgs
9926         * app/sheets_dialog.h: [new file] support for Sheets & Objects dlgs 
9927         
9928         * app/app_procs.c: added call to sheets_dialog_create() in app_init()
9929         
9930         * app/sheets_dialog_callbacks.c: [new file] callbacks for S & O dialogs
9932         * app/sheets_dialog_callbacks.h: [new file] support for " " "
9934         * app/interface.c: added 'interface_current_sheet_name' global to 
9935           fill_sheet_wbox(); made fill_sheet_menu() non-static
9937         * app/interface.h: added extern declaration for aboves.
9939         * app/sheets.c: [new file] instantiation and other funcs for S & O dlgs
9941         * app/sheets.h: [new file] declarations for backing store structures
9943         * lib/sheet.c: modification of new_sheet() parameters; introduction
9944           of USER and SYSTEM scope for sheets; procedure for sorting sheets;
9945           changes to load_register_sheet().
9947         * lib/sheet.h: added 'user_data_type' field to SheetObject structure;
9948           added 'has_icon_on_sheet' flag to SheetObject structure; added 
9949           'filename', 'scope', 'shadowing' fields to Sheet structure.
9951         * lib/plug-ins.c: moved _PluginInfo declaration to header file where
9952           it belongs.
9954         * lib/plug-isn.h: see above.
9956         * lib/object.c: added 'sheet.h' to include list; added several 
9957           functions
9958           to detect objects which are not found on any sheet (for future use)
9959           object_type_detect_nosheet_callback(), object_types_detect_nosheet(),
9960           object_type_get_sheet_name(), object_type_strip_sheet_from_name().
9962         * lib/object.h: added public declarations for above functions where
9963           necessary.
9965         * objects/custom/custom.c: made custom_object_load() non-static so we
9966           can load and interpret .shape files from the Sheets & Objects dialog
9968         * objects/custom/custom_object.c: made 'custom_type' non-static so 
9969           we can differentiate between SVG shapes and other types.a
9971 2002-04-07  Hans Breuer  <hans@breuer.org>
9973         * app/object_ops.c (object_list_align_v): Fix the 'Leak fix'
9974         from 2002-01-22 to not destroy diagram->data->selected. 
9975         Avoids to crash on Objects/Align/Vertical/Top
9977         * app/render_eps.c (draw_string) : un-const buffer
9978         It isn't at all const (g_malloc(), assignment, g_free()).
9979         Doesn't gcc catch such ?
9981         * lib/arrows.h : prototype calculate_arrow_point()
9983         * lib/font.c (font_get_suckfont) : no need to
9984         special case gdk_draw_string() with GTK_TALKS_UTF8,
9985         cause all the parameter differences are handled above
9987         * lib/libdia.def : updated externals
9989         * lib/makefile.msc : removed string_prerenderer, added render
9991         * lib/render.c (draw_rect) : don't pass a Point** if a Point*
9992         is expected. [Sometimes it's good to read compiler warnings.]
9994         * objects/standard/image.c : simplified by use of g_strconcat()
9996         * plug-ins/python/makefile.msc : updated for Python 2.2
9998 2002-04-03  Lars Clausen  <lrclause@cs.uiuc.edu>
10000         * objects/standard/zigzagline.c (zigzagline_draw): Fixed
10001         directionality problem for zero-length line segments.
10003 2002-03-28  Lars Clausen  <lrclause@cs.uiuc.edu>
10005         * app/diagram.c (diagram_ungroup_selected) 
10006         (diagram_update_menu_sensitivity): Now allows ungrouping of
10007         several groups at once.
10009 2002-03-15  Lars Clausen  <lrclause@cs.uiuc.edu>
10011         * lib/render.c, all renderers: Binary incompatibility, change to
10012         expandable renderops structure.
10014 2002-03-15  Steffen Macke <sdteffen@yahoo.com>
10016         * objects/standard/Makefile.am:
10017         * objects/network/Makefile.am:
10018         * objects/UML/Makefile.am:
10019         * objects/ER/Makefile.am:
10020         * objects/FS/Makefile.am:
10021         * objects/flowchart/Makefile.am:
10022         * objects/custom/Makefile.am:
10023         * objects/GRAFCET/Makefile.am:
10024         * objects/chronogram/Makefile.am:
10025         * objects/SADT/Makefile.am:
10026         * plug-ins/cgm/Makefile.am:
10027         * plug-ins/pstricks/Makefile.am:
10028         * plug-ins/hpgl/Makefile.am:
10029         * plug-ins/wpg/Makefile.am:
10030         * plug-ins/svg/Makefile.am:
10031         * plug-ins/shape/Makefile.am: added $(UNICODE_CFLAGS)
10032         
10033 2002-03-13  Lars Clausen  <lrclause@cs.uiuc.edu>
10035         * app/render_eps.c: Support for dumping TrueType fonts (taken from
10036         ttfps).
10038 2002-03-12  Lars Clausen  <lrclause@cs.uiuc.edu>
10040         * lib/render.c: New abstract super class for renderers.
10042 2002-03-07  Akira TAGOH  <tagoh@redhat.com>
10044         * objects/ER/attribute.c (attribute_save): save a font property.
10045         (attribute_load): load a font property, and if can't load it, it's
10046         initialized.
10048         * objects/ER/entity.c (entity_save): save a font property.
10049         (entity_load): load a font property, and if can't load it, it's
10050         initialized.
10052         * objects/ER/relationship.c (relationship_save): save a font property.
10053         (relationship_load): load a font property, and if can't load it, it's
10054         initialized.
10056         * objects/UML/class.c (fill_in_fontdata): don't replace if it already
10057         has a vaule.
10058         (umlclass_save): save the font and the font size properties.
10059         (umlclass_load): load the font and the font size properties.
10061 2002-03-05  Cyrille Chepelov  <cyrille@chepelov.org>
10063         * lib/string_prerenderer.[ch] (REMOVED):
10064         * lib/render.h:
10065         * lib/diagramdata.c:
10066         * lib/Makefile.am:
10067         * app/render_eps.c: got rid of the string-specific string
10068         prerenderer, transitioned its functionality towards Lars'
10069         two-phase rendering
10071 2002-03-05  Lars Clausen  <lrclause@cs.uiuc.edu>
10073         * configure.in: Using Freetypes own check for ver >= 1.0.5.  You
10074         may need to rerun aclocal.
10076 2002-03-04  Lars Clausen  <lrclause@cs.uiuc.edu>
10078         * lib/font.c: First attempt at Unicodeness for Freetype.
10080 2002-03-02  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
10082         * lib/font.c (font_string_width): Fixed font_string_width for
10083         freetype.  BB is now almost right.
10085 2002-03-01  Lars Clausen  <lrclause@cs.uiuc.edu>
10087         * app/render_eps.h: 
10088         * app/paginate_psprint.c (paginate_psprint): 
10089         * lib/font.c: 
10090         * app/render_eps.c: Support for dumping postscript fonts into
10091         postscript files with freetype.  Fairly primitive, but works.
10092         Unicode version may have problems.
10094 2002-02-28  Akira TAGOH  <tagoh@redhat.com>
10096         * objects/UML/class_dialog.c (class_read_from_dialog)
10097         (class_fill_in_dialog), (class_create_page): add the font selector and
10098         the font size selector.
10100         * objects/UML/class.c (umlclass_draw): uses each font_height.
10101         (umlclass_calculate_data): ditto.
10102         (fill_in_fontdata): add initial value of new font_height.
10103         (umlclass_copy): add new font_height.
10105 2002-02-27  Cyrille Chepelov  <chepelov@calixo.net>
10107         Patch from Geoff Gerrietts <ggerrietts@yahoo.com>:
10108         
10109         * lib/font.c: calculate font metrics properly and stop guessing at
10110         string widths.
10112 2002-02-28  Akira TAGOH  <tagoh@redhat.com>
10114         * configure.in: changed gtk_advancement value to dia_talks_utf8.
10115         right now Dia is working with UTF-8 internally. it means Dia probably
10116         support most languages also including the languages which heretofore
10117         didn't work correctly.
10119 2002-02-26  Akira TAGOH  <tagoh@redhat.com>
10121         * objects/FS/function.c: add related text properties.
10122         (function_get_props), (function_set_props): add handling attribute.
10124         * objects/FS/flow.c: add related text properties.
10125         (flow_get_props), (flow_set_props): add handling attribute.
10127         * objects/FS/flow-ortho.c: add related text properties.
10128         (orthflow_set_props), (orthflow_get_props): add handling attribute.
10130         * objects/ER/relationship.c: add PROP_STD_TEXT_FONT to property.
10132         * objects/ER/entity.c: ditto.
10134         * objects/ER/attribute.c: ditto.
10136 2002-02-26  Cyrille Chepelov  <cyrille@chepelov.org>
10138         Patch contributed by Geoff Gerrietts <ggerrietts@yahoo.com>:
10139         
10140         * autogen.sh: add a check for missing intltoolize.
10142 2002-02-20  Akira TAGOH  <tagoh@redhat.com>
10144         * lib/ps-utf8.c (unicode_to_ps_name): if this function calls with same
10145         charcode, it was registered the duplicate item to HashTable. fix.
10147         * app/render_gnomeprint.c (get_width_string): add new function.
10148         (draw_string): fix non-multibyte specific code.
10150 2002-02-19  Cyrille Chepelov  <cyrille@chepelov.org>
10152         Patch contributed by Matthieu Sozeau <mattam@netcourrier.com>:
10153         
10154         * lib/font.c: do not try to search paths that do not begin with
10155         '/', like X Font Server addresses.
10156         
10157         * objects/UML/message.c (message_draw): free mname when not 
10158         message->text but CREATE or DESTROY.
10159         
10160         * objects/UML/uml.h:
10161         * objects/UML/uml.c:
10162         * objects/UML/class_dialog.c: added code to handle a stereotype 
10163         attribute for operations.
10165 2002-02-19  Akira TAGOH  <tagoh@redhat.com>
10167         * lib/Makefile.am: add LIBART_CFLAGS.
10169 2002-02-15  Hans Breuer  <hans@breuer.org>
10171         * lib/font.c (font_get_suck_font): the black and white pixel values 
10172         need to be taken from a 1 bit colormap rather than the default colormap.
10173         (fixed again, last time was 2000-05-26)
10175         Also handle the case where GTK_TALKS_UTF8 and expects all strings
10176         passed in to be in this encoding.
10178         * lib/libdia.def : export suck_font_free()
10180         * lib/text.c (text_draw) : avoid circular dependency to ../app
10181         at least for the !USE_XIM case, where it is unnecessary.
10183 2002-02-15  Cyrille Chepelov  <cyrille@chepelov.org>
10185         Changes contributed by Matts Kivik <kivik@firstlinux.net>:
10186         
10187         * shapes/Circuit/microphone_de.(shape|xpm) (NEW):
10188         * sheets/Circuit.sheet.in: added new shape microphone
10189         * shapes/Circuit/speaker_de.shape: Added a connection point.
10190         
10191 2002-02-13  Akira TAGOH  <tagoh@redhat.com>
10193         * app/render_libart.c (draw_string): fixed build issue for Win32.
10195         * lib/font.c (font_get_suckfont): fixed typo. it could't build under
10196         Win32.
10198         * configure.in: fixed testing gtk_advancement.
10200         * app/render_gnomeprint.c (draw_string): uses utfchar instead of char.
10202 2002-02-12  Akira TAGOH  <tagoh@redhat.com>
10204         * lib/text.c (text_draw): fixed XIM position, when menubar is shown for
10205         diagram window.
10207 2002-02-11  Lars Clausen  <lrclause@cs.uiuc.edu>
10209         * app/group.c (group_copy): Made new object properly initialized
10210         before copy.
10212 2002-02-11  Steffen Macke <sdteffen@yahoo.com>
10214         * app/Makefile.am: added plug-ins to DIA_LIB_PATH in run_dia.sh
10215         
10216 2002-02-10  Akira TAGOH  <tagoh@redhat.com>
10218         * lib/text.c (text_draw): fixed XIM transaction.
10220         * app/interface.c (create_display_shell): add signal for
10221         size_allocate.
10223         * app/disp_callbacks.c (ddisplay_size_allocate): add new function for
10224         XIM transaction.
10225         (set_input_dialog): remove.
10226         (ddisplay_canvas_events): remove XIM transaction. it can't transact
10227         correctly on this function.
10229 2002-02-10  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
10231         * app/app_procs.c:
10232         * app/export_png.c: Added checks for interactivity (maybe this
10233         should be a hook after all?).
10235         * app/filedlg.c (file_export_callback): Made export dialog add
10236         suffix when reopened.
10238         * app/export_png.c: Added dialog asking for export size.
10240 2002-02-09  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
10242         * lib/widgets.c: Fixed font reselection problem and first font
10243         bogus warning.
10245         * objects/UML/actor.c (actor_update_data): Changed to have
10246         connection points below text.
10248 2002-02-08  Akira TAGOH  <tagoh@redhat.com>
10250         * lib/text.c (text_split_line): use g_strndup() instead of g_malloc()
10251         and memcpy().
10253 2002-02-07  Akira TAGOH  <tagoh@redhat.com>
10255         * lib/font.c (font_get_suckfont): rewrited. generating suckfont from
10256         strings which is given.
10257         (suck_font): remove. it's any longer needed.
10259         * app/render_libart.c (set_font): don't get suckfont.
10260         (draw_string): get suckfont only which is needed for now.
10262 2002-02-05  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
10264         * lib/text.c: Fixes for misunderstood width functions.
10266 2002-02-05  Hans Breuer  <hans@breuer.org>
10268         * lib/dia_xml.c : use g_strconcat() instead of 
10269         malloc, strcpy, strcat dance
10270         * app/properties.c : same here and plug memory leak
10271         (gtk functions don't eat strings)
10273         * objects/UML/message.c : there is no g_sprintf()
10274         use g_strdup_printf() instead ...
10276 2002-02-05  Akira TAGOH  <tagoh@redhat.com>
10278         * lib/message.c (gtk_message_internal): doesn't need to convert to
10279         UTF-8.
10281         * app/render_libart.c (draw_string): fixed transaction for UTF-8
10282         support.
10283         (get_text_width): ditto.
10285         * app/Makefile.am (EXTRA_DIST):
10286         s/paginate_gdiprint.c/paginate_gdiprint.cpp/
10288         * app/render_gdk.c (gdk_freetype_copy_glyph): fixed build issue.
10289         This function needs ifdef HAVE_FREETYPE because don't use it for
10290         --disable-freetype
10292 2002-02-04  Cyrille Chepelov  <cyrille@chepelov.org>
10294         * NEWS: updated with the new dependencies.
10295         
10296         Patch from Matthieu Sozeau <mattam@netcourrier.com>:
10298         * objects/UML/class.h:
10299         * objects/UML/class.c:  
10300         * objects/UML/class_dialog.c: added code to handle the UMLParameterKind
10301         property using a GtkMenu. Options are Undefined, In, Out, In & Out
10303 2002-02-04  Lars Clausen  <lrclause@cs.uiuc.edu>
10305         * app/render_libart.c: Slow but working libart freetype renderer,
10306         with color!
10308 2002-02-03  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
10310         * app/render_gdk.c (draw_string): Fixed gc_function bug.
10312         * lib/widgets.c (dia_font_selector_init): Sorts the font list.
10314         * lib/font.c (freetype_render_string): 
10315         * lib/font.h:
10316         * app/render_gdk.c:
10317         * app/render_gdk.h: Changed freetype_render_string to use
10318         callback.  Rendering is broken.
10320 2002-02-03  Cyrille Chepelov  <cyrille@chepelov.org>
10322         Patch from Matthieu Sozeau <mattam@netcourrier.com>:
10324         * objects/UML/uml.h:    
10325         * objects/UML/uml.c: added UMLInheritanceType and isQuery
10326         (constant) UML Operation attributes. UMLInheritanceType is either
10327         UML_ABSTRACT or UML_POLYMORPHIC  or UML_LEAF.
10329         * objects/UML/class.h:
10330         * objects/UML/class.c:  
10331         * objetcs/UML/class_dialog.c: added code to handle new
10332         UMLOperation attributes via a GtkMenu and a checkbox.
10334 2002-02-03  Akira TAGOH  <tagoh@redhat.com>
10336         * app/disp_callbacks.c (ddisplay_realize): fixed XIM issue.
10337         several client doesn't work with previous codes.
10339 2002-02-01  Lars Clausen  <lrclause@cs.uiuc.edu>
10341         * lib/font.c (freetype_render_string): Kerning.  Very few fonts
10342         seem to use it.
10344 2002-02-02  Akira TAGOH  <tagoh@redhat.com>
10346         * app/disp_callbacks.c (ddisplay_canvas_events): fixed crashes,
10347         when doing the operation like invert the objects after active view is
10348         destroyed. when changes focus, it needs to set active_display.
10350         * app/layer_dialog.c (dia_layer_update_from_layer):
10351         (layer_dialog_edit_layer): need to convert to locale encoding
10352         if GTK_DOESNT_TALK_UTF8_WE_DO is defined.
10353         (edit_layer_ok_callback):
10354         need to convert to UTF8 if GTK_DOESNT_TALK_UTF8_WE_DO is defined.
10356         * lib/diagramdata.c (new_diagram_data): ditto.
10358         * app/layer_dialog.c (layer_dialog_new_callback): ditto.
10360         * lib/diagramdata.c (new_layer): use utfchar instead of char for
10361         argument.
10363         * lib/widgets.c: if HAVE_FREETYPE isn't defined, it can't build. fixed.
10364         (dia_font_selector_set_styles): when HAVE_FREETYPE is defined only,
10365         it's needed for now. also this function needs prototype declaration.
10367 2002-01-31  Lars Clausen  <lrclause@cs.uiuc.edu>
10369         * lib/widgets.c: Style now functional on font selector.  Some leak
10370         possible, but doesn't show up under stress test.
10372 2002-01-31  Akira TAGOH  <tagoh@redhat.com>
10374         * app/plugin-manager.c (clist_select_row): name and description needs to
10375         convert to locale encoding, when GTK_DOESNT_TALK_UTF8_WE_DO is defined.
10376         (get_plugin_manager): ditto.
10378         * lib/plug-ins.c (dia_plugin_info_init): name needs to convert to UTF-8.
10380         * app/diagram_tree.c (get_object_name): fixed transaction for UTF-8
10381         support.
10383         * lib/prop_text.c (stringprop_reset_widget): fixed crashes,
10384         when prop->string_data is NULL.
10386 2002-01-30  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
10388         * lib/widgets.c: 
10389         * lib/widgets.h: New font selector separating font and style.
10390         Style not functional yet.
10392 2002-01-30  Lars Clausen  <lrclause@cs.uiuc.edu>
10394         * lib/text.c: 
10395         * app/render_gdk.c (draw_string): More freetype support, now
10396         renders text.  Still broken is font selection and exporting.
10398 2002-01-30  Akira TAGOH  <tagoh@redhat.com>
10400         * objects/chronogram/chronoref.c (chronoref_create): missing gettextize
10401         for font.
10403         * objects/chronogram/chronoline.c (chronoline_create): ditto.
10405         * objects/UML/usecase.c (usecase_create): ditto.
10407         * objects/UML/state.c (state_create): ditto.
10409         * objects/UML/object.c (objet_create): ditto.
10411         * objects/UML/node.c (node_create): ditto.
10413         * objects/UML/message.c (message_create): ditto.
10415         * objects/UML/component.c (component_create): ditto.
10417         * objects/UML/classicon.c (classicon_create): ditto.
10419         * objects/UML/actor.c (actor_create): ditto.
10421         * objects/SADT/box.c (sadtbox_create): ditto.
10423         * objects/SADT/annotation.c (annotation_create): ditto.
10425         * objects/GRAFCET/transition.c (TRANSITION_FONT): ditto.
10427         * objects/GRAFCET/step.c (STEP_FONT):
10428         * (step_create): ditto.
10430         * objects/GRAFCET/condition.c (CONDITION_FONT): ditto.
10432         * objects/GRAFCET/action.c (ACTION_FONT):
10433         (action_create): ditto.
10435         * objects/FS/function.c (function_create): ditto.
10437         * objects/FS/flow.c (flow_create):
10438         (flow_load): 
10439         (flow_apply_defaults): ditto.
10441         * objects/FS/flow-poly.c (flow_create):
10442         (flow_load):
10443         (flow_apply_defaults): ditto.
10445         * objects/FS/flow-ortho.c (orthflow_create):
10446         (orthflow_load):
10447         (orthflow_apply_defaults): ditto.
10449         * objects/ER/relationship.c: use utfchar instead of char for structure.
10450         (relationship_create): name needs to convert to UTF-8.
10452         * objects/ER/attribute.c: use utfchar instead of char for structure.
10453         (attribute_create): name needs to convert to UTF-8.
10455         * objects/ER/entity.c: use utfchar instead of char for structure.
10456         (entity_create): name needs to convert to UTF-8.
10458         * app/interface.c (fill_sheet_wbox): needs to convert UTF-8 to locale
10459         encoding for tooltips, if GTK_TALKS_UTF8 isn't defined.
10460         (fill_sheet_menu): needs to convert UTF-8 to locale encoding for menu
10461         items. if GTK_TALKS_UTF8 isn't defined.
10463 2002-01-29  Akira TAGOH  <tagoh@redhat.com>
10465         * objects/UML/class.c (umlclass_calculate_data): fixed malloc size.
10466         it was my careless mistake...
10468         * lib/attributes.c (attributes_set_default_font): temporarily gettextize
10469         a font name, because there are strings which isn't shown by "Courier".
10470         We need to consider a way to feel free to choose a font at runtime.
10472         * lib/render_object.c (render_object_load): ditto.
10474         * lib/text.c (data_text): ditto.
10476         * objects/EML/instantiation.c (instantiation_create): ditto.
10478         * objects/EML/interaction-ortho.c (interaction_ortho_create):
10479         (interaction_ortho_load): ditto.
10481         * objects/EML/interaction.c (interaction_create):
10482         (interaction_load): ditto.
10484         * objects/EML/process.c (fill_in_fontdata): ditto.
10486         * objects/ER/attribute.c (attribute_create): 
10487         (attribute_load): ditto.
10489         * objects/ER/entity.c (entity_create): 
10490         (entity_load): ditto.
10492         * objects/ER/relationship.c (relationship_create): 
10493         (relationship_load): ditto.
10495         * objects/UML/association.c (association_create): 
10496         (association_load): ditto.
10498         * objects/UML/class.c (fill_in_fontdata): ditto.
10500         * objects/UML/constraint.c (constraint_create): ditto.
10502         * objects/UML/dependency.c (dependency_create): ditto.
10504         * objects/UML/generalization.c (generalization_create): ditto.
10506         * objects/UML/implements.c (implements_create): ditto.
10508         * objects/UML/large_package.c (largepackage_create): ditto.
10510         * objects/UML/note.c (note_create): ditto.
10512         * objects/UML/realizes.c (realizes_create): ditto.
10514         * objects/UML/small_package.c (smallpackage_create): ditto.
10516         * objects/custom/shape_info.h (FONT_DEFAULT): ditto.
10518         * objects/custom/custom_object.c (custom_create): ditto.
10520         * objects/network/antenna.c (render_to_store): ditto.
10522         * objects/network/computer.c (render_to_store): ditto.
10524         * objects/network/disc.c (render_to_store): ditto.
10526         * objects/network/flash.c (render_to_store): ditto.
10528         * objects/network/hub.c (render_to_store): ditto.
10530         * objects/network/modem.c (render_to_store): ditto.
10532         * objects/network/modularswitch.c (render_to_store): ditto.
10534         * objects/network/monitor.c (render_to_store): ditto.
10536         * objects/network/printer.c (render_to_store): ditto.
10538         * objects/network/rj45plug.c (render_to_store): ditto.
10540         * objects/network/scead-plug.c (render_to_store): ditto.
10542         * objects/standard/textobj.c (textobj_load): ditto.
10544         * objects/sybase/client.c (render_to_store): ditto.
10546         * objects/sybase/dataserver.c (render_to_store): ditto.
10548         * objects/sybase/ltm.c (render_to_store): ditto.
10550         * objects/sybase/repserver.c (render_to_store): ditto.
10552         * objects/sybase/rsm.c (render_to_store): ditto.
10554         * objects/sybase/stableq.c (render_to_store): ditto.
10556         * plug-ins/dxf/dxf-import.c (read_entity_text_dxf): ditto.
10558         * objects/UML/uml.h (UML_STEREOTYPE_START):
10559         (UML_STEREOTYPE_END): changes default strings.
10561 2002-01-28  Akira TAGOH  <tagoh@redhat.com>
10563         * objects/UML/stereotype.c (string_to_bracketted): fixed transaction
10564         for UTF-8 support. if GTK+ and Dia don't handle UTF-8, all of characters
10565         which is given to arguments isn't UTF-8. so don't need to convert it.
10566         if GTK+ handle UTF-8, also don't need to convert it.
10567         (strend): remove.
10568         (bracketted_to_string): fixed transaction for UTF-8 support.
10569         also start/end bracket is not necessarily 1 character. so that when use
10570         strend(), it doesn't work correctly.
10571         (string_to_stereotype): use utfchar instead of char.
10572         (remove_stereotype_from_string): ditto.
10573         (stereotype_to_string): ditto.
10575         * objects/UML/stereotype.h: ditto.
10577         * objects/UML/message.c: use utfchar instead of char for structure.
10578         (MESSAGE_CREATE_LABEL, MESSAGE_DESTROY_LABEL): remove.
10580         * objects/UML/small_package.c: use utfchar instead of char for structure.
10582         * objects/UML/realizes.c: ditto.
10584         * objects/UML/object.c: ditto.
10586         * objects/UML/large_package.c: ditto.
10588         * objects/UML/implements.c: ditto.
10590         * objects/UML/generalization.c: ditto.
10592         * objects/UML/dependency.c: ditto.
10594         * objects/UML/constraint.c: ditto.
10596         * objects/UML/component.c: ditto.
10598         * objects/UML/class_dialog.c (attributes_get_current_values):
10599         (attributes_list_new_callback, attributes_fill_in_dialog):
10600         (parameters_set_values, parameters_get_values):
10601         (parameters_get_current_values, parameters_list_new_callback):
10602         (operations_set_values, operations_get_values):
10603         (operations_get_current_values, operations_list_new_callback):
10604         (operations_fill_in_dialog, templates_set_values):
10605         (templates_get_values, templates_get_current_values):
10606         (templates_list_new_callback, templates_fill_in_dialog):
10607         fixed transaction for UTF-8 support.
10609 2002-01-27  Akira TAGOH  <tagoh@redhat.com>
10611         * objects/UML/message.c (message_draw): fixed transaction for UTF-8 support.
10613         * objects/UML/class_dialog.c (class_read_from_dialog):
10614         (class_fill_in_dialog):
10615         (attributes_get_values): ditto.
10617         * objects/UML/actor.c (actor_create): ditto.
10619         * objects/UML/class.c (umlclass_calculate_data): ditto.
10621         * objects/UML/association.c (association_apply_properties):
10622         (fill_in_dialog): ditto.
10624         * objects/UML/uml.c (uml_get_attribute_string):
10625         (uml_get_operation_string):
10626         (uml_get_parameter_string):
10627         (uml_get_formalparameter_string): use utfchar instead of char.
10629         * objects/UML/uml.h: gettextize UML_STEREOTYPE_START and
10630         UML_STEREOTYPE_END.
10632         * objects/UML/class.h: use utfchar instead of char.
10634         * lib/dia_xml.c (data_add_string): ditto.
10636         * lib/text.c (text_insert_char): fixed characters# calculation
10637         when includes multibytes character in strings.
10639 2002-01-26  Steffen Macke  <sdteffen@yahoo.com>
10641         Patch from Richard Rowell <rwrowell@bellsouth.net>:
10643         * app/lineprops_area.c:
10644         * lib/arrows.h:
10645         * lib/arrows.c: 
10646         * lib/widgets.c: added crow foot arrow and cross arrow
10647         
10648         Patch from Frank Gevaerts <frank.gevaerts@fks.be>:
10649         
10650         * plug-ins/svg/render_svg.c: fixed arcs, fill and text alignment
10652 2002-01-26  Cyrille Chepelov  <cyrille@chepelov.org>
10654         * po/update.pl (REMOVED):
10655         * po/update.sh (REMOVED):
10656         * xml-i18n-merge.in.kg (REMOVED):
10657         * xml-i18n-update.in.kg (REMOVED):
10658         * sheets/Makefile.am:
10659         * Makefile.am:
10660         * autogen.sh:
10661         * configure.in: converted from xml-i18n-tools to intltools
10663         This looks like it fixes the build bugs of the snapshot tarballs, 
10664         and it supersedes #69611.       
10666 2002-01-25  Akira TAGOH  <tagoh@redhat.com>
10668         * lib/text.c (text_insert_char): fixed characters# calculation.
10669         it's not string length.
10671         * lib/plug-ins.c (dia_plugin_info_init): when GTK_DOESNT_TALK_UTF8_WE_DO
10672         is defined, needs to convert a description to UTF-8.
10674         * app/render_gdk.c (get_text_width): fixed transaction for
10675         UTF-8 support. also should uses gdk_text_width_wc() instead
10676         of gdk_text_width().
10678         * app/render_gdk.c (draw_string): when GTK_DOESNT_TALK_UTF8_WE_DO
10679         is defined, needs to convert to locale encoding for display.
10680         Also use utfchar instead of char for argument.
10682 2002-01-24  Hans Breuer  <hans@breuer.org>
10684         * app/commands.c(edit_paste_callback and more) : 
10685         call diagram_modified(ddisp->diagram) to fix #68083
10686         (help_menu_callback) : plug a DIR leak
10688         * app/disp_callbacks.c(ddisplay_canvas_events) : handle 
10689         GTK_TALKS_UTF8_WE_DONT
10691         * app/render_gdk.c(get_text_with) : it's a bad idea to use
10692         gdk_string_with() when GTK_TALKS_UTF8_WE_DONT instead of
10693         gdk_text_width(). The length value is still questionable ...
10695         * lib/charconv.c : use functions already available in early
10696         GLIB-1.3 days whiches API hasn't changed since, to avoid
10697         version problems with the win32 build
10699         * lib/font.c : finally fix #58045 and #68208
10701         * lib/dia_xml.c (xmlDiaSaveFile) : gzdopen in binary mode
10703 2002-01-24  Akira TAGOH  <tagoh@redhat.com>
10705         * app/disp_callbacks.c (ddisplay_canvas_events): when event returned
10706         no strings, fixed transaction.
10708         * lib/charconv.h: fixed typo.
10710         * app/menus.c: fixed typo.
10712         * lib/charconv.c (charconv_utf8_strchr): remove. use uni_strchr instead.
10714         * objects/UML/object.c: attrib's type uses utfchar instead of char.
10716         * app/disp_callbacks.c (ddisplay_canvas_events): forget g_free()
10718         * lib/text.c (text_create_change): use unichar instead of char.
10720         * lib/text.c (data_add_text, data_text, apply_textstr_properties):
10721         use utfchar instead of char.
10723         * lib/text.c (text_insert_char, text_key_event): fixed transaction for
10724         UTF-8 support.
10726         * lib/charconv.c (charconv_utf8_get_char): add new function.
10728 2002-01-23  Akira TAGOH  <tagoh@redhat.com>
10730         * lib/text.c (text_delete_forward, text_delete_backward,
10731         text_split_line): fixed transaction for UTF-8 support.
10733         * lib/text.c (text_copy): when UNICODE_WORK_IN_PROGRESS is defined,
10734         strlen[] has string length for UTF-8, so has to use alloclen[].
10736         * dia.pot: remove.
10738         * .cvsignore: add dia.pot.
10740 2002-01-24  Stanislav Visnovsky  <visnovsky@nenya.ms.mff.cuni.cz>
10742         * configure.in: Added "sk" to ALL_LINGUAS.
10744 2002-01-22  Akira TAGOH  <tagoh@redhat.com>
10746         * lib/text.c (text_set_string, new_text, text_copy,
10747         text_get_string_copy, text_join_lines): use utfchar instead of gchar
10748         for strings.
10750         * lib/text.c (set_string): use charconv_utf8_strchr() instead of
10751         strchr().
10753         * lib/charconv.c (charconv_utf8_strchr): add new function.
10755         * lib/charconv.c (charconv_keyval_to_unicode): ditto.
10757         * lib/charconv.c (charconv_utf8_from_gtk_event_key): ditto.
10759         * app/disp_callbacks.c (ddisplay_canvas_events): needs to convert
10760         strings to the appropriate encoding.
10762 2002-01-22  Lars Clausen  <lrclause@cs.uiuc.edu>
10764         * app/object_ops.c (object_list_align_[hv]): Leak fix.
10766         * lib/Makefile.am (INCLUDES): Added debug flags.
10768         * app/object_ops.c: Fixed ordering problem of align equi-distant &
10769         adjacent. 
10771 2002-01-21  Akira TAGOH  <tagoh@redhat.com>
10773         * lib/font.c (font_string_width): use gdk_text_width_wc() instead of
10774         gdk_string_width().
10776         * objects/GRAFCET/boolequation.c: fixed invalid comment.
10778         * objects/UML/stereotype.c (string_to_bracketted): fixed build problem
10779         when defined UNICODE_WORK_IN_PROGRESS.
10781         * lib/dia_xml.c (data_add_string): fixed typo.
10783 2002-01-20  Akira TAGOH  <tagoh@redhat.com>
10785         * configure.in: fixed test gtk_advancement.
10787 2002-01-019  Steffen Macke  <sdteffen@yahoo.com>
10789         * plug-ins/svg/render_svg.c: fix for #69053, alignment of text
10790         exported to SVG
10792         Patch from M.C. Nelson <mcn@mani.kobayashimaru.org>: 
10794         * app/recent_files.[ch]: reworked to support GNOME, accelerators,
10795         tool tips, preferences, and arbitrarily long ~/.dia/history
10797         * app/menus.c: made 'Plugins' consistantly spelled and accelerated;
10798         removed 'Open Recent'; added new separators for recent documents on
10799         File menu.
10801         * app/interface.[ch] (interface_get_toolbox_shell): new function
10803         * app/diagram.c: added new parameter to recent_file_history_add() call
10805         * app/preferences.[ch]: added new 'Recent documents list size'
10806         preferences item
10807         
10808 2002-01-18  Akira TAGOH  <tagoh@redhat.com>
10810         * lib/font.c (font_get_gdkfont_helper): use gdk_fontset_load ().
10811         if it failed, should be used gdk_font_load ().
10813         * lib/font.c (font_data): added the font entries for CJK.
10815 2002-01-17  Steffen Macke  <sdteffen@yahoo.com>
10817         Patch from M.C. Nelson <mcn@mani.kobayashimaru.org>:
10819         * app/menus.c: replaced GDK_F1 with "F1" to fix segfault on startup
10820         
10821 2002-01-04  Cyrille Chepelov  <cyrille@chepelov.org>
10823         Patch from Martin Cracauer <cracauer@cons.org>:
10824         
10825         * app/menus.c: add missing #include <gdk/gdkkeysyms.h> (useful in the
10826         non-GNOME case ?)
10828 2002-01-01  Hans Breuer  <hans@breuer.org>
10830         * app/command.c : optional use GDI printing on windoze
10832         * app/preferences.[hc] : add option 'prefer_psprint' to 
10833         select the print engine to use (could be used for Dia/Gnome
10834         as well)
10836         * app/paginate_gdiprint.(h|cpp) : new files, which interlink the
10837         wmf plug-in with the common win32 print api. Now printing
10838         should work almost as expected from a windows program :-)
10840         * app/diagram.c app/menus.[hc] : rename _UpdatableMenuItems.delete
10841         to .edit_delete to avoid clashes with C++
10843         * app/makefile.msc : updated for GDI printing
10845         * plug-ins/wmf/wmf.cpp : some small modifications to support
10846         GDI printing. Also swap R and B channel in draw_image()
10848         * app/makefile.am : added windows only files to EXTRA_DIST
10850         * objects/uml/class.c(umlclass_set_props) : force recalculation
10851         when applying properties
10853         * lib/charconv.c lib/dia_xml.c : temporary back-ported to
10854         glib-1.3.2 (for win32) IMHO causes recent cvs introduces too
10855         many incompatible changes (and would force a gtk update)
10857         * objects/makefile.msc : don't build C-Objects which are
10858         already available as 'pure shape'
10860         * plug-ins/makefile.msc : remove diaimport from build. It was
10861         only available via mailing-list and is broken since the
10862         StdProp overhaul.
10865         Patch from Jose A Ortega Ruiz  <jaortega@acm.org>
10867         * app/preferences.[hc] : tweaked preferences.c to make 
10868         PREF_STRING work. Use it for 'diagram_tree_hidden'. Also
10869         added some more DiagramTree prefererences and their own
10870         notebook page.
10872         * app/diagram_tree.[hc] : allow to sort by object type or name
10873         and hide by type ...
10874         * app/diagram_tree_menu.[hc] : ... add respective menu entries ...
10875         * app/diagram_tree_menu_callbacks.[hc] : ... and callbacks.
10877         * app/diagram_tree_window.c : handle hidden types and window
10878         size restoring.
10880 2001-12-20  Hans Breuer  <hans@breuer.org>
10882         * plug-ins/python/Makefile.am : patch from Peter Moulder 
10883         <pmoulder@csse.monash.edu.au> to make the python plug-in
10884         compile on *nix too.
10886 2001-12-03  Cyrille Chepelov  <chepelov@calixo.net>
10888         Patch from Alan <horkana@tcd.ie>:
10890         * app/menus.c: bind the F1 shortcut to the Help/_Manual function.
10892 2001-11-20  Hans Breuer  <hans@breuer.org>
10894         * app/makefile.msc : add new diagram_tree_menu(_callbacks).obj
10896 2001-11-18  Jose A Ortega Ruiz  <jaortega@acm.org>
10898         * app/diagram_tree.[hc] : Added new functions and types for
10899         sorting diagram and objects, and attaching the popup menus.
10901         * app/preferences.h: Added more diagram tree preferences, using a
10902         DiagramTreeConfig struct in DiaPreferences. The new prefs are the
10903         height and width of the diagram tree window and the default sort
10904         orders for diagrams and objects.
10906         * app/preferences.c (prefs_data): Added new entries for the new
10907         diagram tree preferences.
10909         * app/preferences.c (prefs_tabs): New tab for diagram tree
10910         preferences.
10912         * app/diagram_tree_window.[hc] (create_diagram_tree_window): 
10913         * app/diagram_tree_window.c (diagram_tree_window_new): 
10914         * app/interface.c (create_tree_window): The diagram tree window is
10915         initialised using the DiagramTreeConfig part of prefs.
10918 2001-11-14  Jose A Ortega Ruiz  <jaortega@acm.org>
10920         * app/diagram_tree_menu.[hc]: New files. Functions to create the
10921         diagram tree popup menus.
10923         * app/diagram_tree_menu_callbacks.[hc]: New files. Callbacks for
10924         the diagram tree popup menus.
10926         * app/Makefile.am (dia_core_files): diagram_tree_menu* files
10927         added.
10929 2001-11-13  Jose A Ortega Ruiz  <jaortega@acm.org>
10931         * app/diagram_tree.c (double_click_callback, diagram_tree_new):
10932         double-clicking a diagram tree node raises the diagram window
10933         to the foreground (and, if a object node was clicked, selects the
10934         object in the diagram).
10936         * app/diagram_tree.c (select_tree_widget): selecting an object
10937         node with single click simply updates it (no raise).
10939 2001-11-08  Jose A Ortega Ruiz  <jaortega@acm.org>
10940         These changes make the diagram tree lazy: it is not created unless
10941         the diagram tree window is requested.
10942         
10943         * app/diagram_tree_window.[hc] (create_diagram_tree_window): new
10944         function for creating the tree window.
10946         * app/interface.c (create_tree_window): call
10947         create_diagram_tree_window() instead of diagram_window().
10949         * app/diagram_tree.c (diagram_tree_add, diagram_tree_remove) 
10950         (diagram_tree_update, diagram_tree_update_name) 
10951         (diagram_tree_add_object, diagram_tree_add_objects) 
10952         (diagram_tree_remove_object, diagram_tree_remove_objects) 
10953         (diagram_tree_update_object): accept a NULL tree as a nominal
10954         argument (and do nothing in this case!), so that the diagram tree
10955         is not initialised if not used.
10957         * app/diagram_tree_window.c (diagram_tree): do not create the
10958         diagram tree until diagram_window() or diagtree_show_callback()
10959         are invoked.
10961 2001-10-31  Jose A Ortega Ruiz  <jaortega@acm.org>
10962         [slightly modified and applied from Hans Breuer <hans@breuer.org>]
10964         * app/diagram_tree_window.[hc] : (new files) implementation of 
10965         the diagram tree window, a container for a diagram tree. [Removed
10966         the horizontal scroll bar glitch by disableing it]
10968         * app/diagram_tree.[hc] : (new files) implementation of the 
10969         diagram tree widget. [Don't rely on the layers GPtrArray to be
10970         NULL terminated, but use its ->len field] 
10972         * app/Makefile.am (dia_core_files): added new files
10973         diagram_tree.[hc] and diagram_tree_window.[hc]
10975         * app/interface.[hc] : (create_tree_window): this function 
10976         creates the new diagram tree window widget
10978         * app/undo.c (delete_objects_apply) (delete_objects_revert) 
10979         (insert_objects_apply) (insert_objects_revert) (group_objects_apply) 
10980         (ungroup_objects_apply) (ungroup_objects_revert): 
10981         every time that an undoable command modifies a diagram 
10982         adding/removing/(un)grouping objects, a diagram_tree_something() is 
10983         invoked to keep the diagram tree window in sync
10985         * app/properties.c (properties_apply): call to
10986         diagram_object_modified(), which updates the diagram tree window
10987         when the properties of an object are modified
10989         * app/preferences.[hc] : new "show_diagram_tree" configuration option 
10990         (whether the diagram tree window should be shown on dia startup)
10992         * app/menus.c : added '<Toolbox>/File/Diagram Tree' entry
10994         * app/diagram.h (diagram_object_modified): callback notifying of a
10995         diagram object modification
10997         * app/diagram.c (diagram_load_into): added call to
10998         diagram_tree_add() to add newly loaded diagrams to the diagram
10999         tree window
11000         (diagram_destroy): call to diagram_tree_remove() to remove a
11001         destroyed diagram from the diagram tree window
11002         (diagram_add_object): call to diagram_tree_add_object() to add an
11003         object to the diagram tree window
11004         (diagram_add_object_list): as above, but with an object list
11005         (diagram_selected_break_external): deletion of objects from the
11006         diagram is detected here, and diagram_tree_remove_object() is
11007         invoked to remove the object from the diagram tree window (it
11008         would be nice to have a diagram_remove_object() in the Diagram
11009         interface)
11010         (diagram_set_filename): update the diagram tree window when a
11011         diagram's filename changes
11013         * app/commands.c (file_new_callback): added call to
11014         diagram_tree_add() to add newly created diagrams to the diagram
11015         tree window
11017         * app/app_procs.c (app_init): added call to create_tree_window()
11019         * app/makefile.msc : updated
11021 2001-10-28  Hans Breuer  <hans@breuer.org>
11023         * app/preferences.h (DiaPreferences): 
11024         * app/preferences.c (prefs_data): new "show_diagram_tree"
11025         configuration option (whether the diagram tree window should be
11026         shown on dia startup)
11028         * app/menus.c: added the new "<Toolbox>/View/Diagram tree" menu
11029         entry (both for GNOME and gtk)
11031         * app/diagram.h (diagram_object_modified): callback notifying of a
11032         diagram object modification
11034         * app/diagram.c (diagram_load_into): added call to
11035         diagram_tree_add() to add newly loaded diagrams to the diagram
11036         tree window
11037         (diagram_destroy): call to diagram_tree_remove() to remove a
11038         destroyed diagram from the diagram tree window
11039         (diagram_add_object): call to diagram_tree_add_object() to add an
11040         object to the diagram tree window
11041         (diagram_add_object_list): as above, but with an object list
11042         (diagram_selected_break_external): deletion of objects from the
11043         diagram is detected here, and diagram_tree_remove_object() is
11044         invoked to remove the object from the diagram tree window (it
11045         would be nice to have a diagram_remove_object() in the Diagram
11046         interface)
11047         (diagram_set_filename): update the diagram tree window when a
11048         diagram's filename changes
11050         * app/commands.c (file_new_callback): added call to
11051         diagram_tree_add() to add newly created diagrams to the diagram
11052         tree window
11054         * app/app_procs.c (app_init): added call to create_tree_window()
11056 2001-10-28  Hans Breuer  <hans@breuer.org>
11058         * plug-ins/python/pydia-property.c : apparently I missed
11059         to commit this last time. Now it has some more SetAttr
11060         support (apply from property)
11062         * plug-ins/python/pydia-properties.h : added PyDiaProperty_Check
11064         * plug-ins/python/pydia-text.[ch] : new files
11066 2001-10-14  Hans Breuer  <hans@breuer.org>
11068         * lib/charconv.c : g_locale_to_utf8() does not handle NULL
11069         strings. Use g_strdup() for these.
11071         libxml2 does not produce 'any extra indentation when saving a tree'
11072         [libxml2-2.4.2/doc/upgrade.html] anymore, which was the default with
11073         libxml(1). To get human readable XML some extra tweaking is required.
11074         It is enabled by setting 'pretty_formated_xml' to 'true' in 'diarc'.
11075         * lib/dia_xml.[hc] : provide and use 'DIAVAR pretty_formated_xml'
11076         * app/preferences.[ch] : initialize 'pretty_formated_xml'
11078         * lib/libdia.def : updated externals
11080         * lib/properties.h : add prototype for prop_list_from_single ()
11082         * plug-ins/makefile.msc : build metapost plug-in
11084         * plug-ins/metapost/render_metapost.c : msvc does not like
11085         switch labels without operation 'default: }'. Added a noop.
11087         * plug-ins/python/pydia-text.[hc] : (new files) wrap DiaText
11088         * plug-ins/python/diamodule.c : added PyDiaText 
11089         * plug-ins/python/makefile.msc : dito. Also added LIBXML_CFLAGS.
11090         Although the python plug-in does not use libxml at all, the
11091         headers are required to use the lib/prop*.h headers
11093         * plug-ins/python/pydia-diagramdata.c : added wrappers for
11094         update_extents and get_sorted_selected (should I duplicate
11095         more functions from PyDiaDiagram or should they be moved?)
11097         * plug-ins/python/pydia-properties.c : allow to set (some) properties
11098         through the dictionary api
11099         * plug-ins/python/pydia-property.h : declare PyDiaProperty_ApplyToObject
11100         * plug-ins/python/pydia-property.c : implement it (currently only
11101         string properties can be set)
11103         Reimplement PyDiaProperty_GetAttr by means of the new StdProp api.
11104         Quoting myself: 'Still not convinced that this is better than an 
11105          integral property->type and some casting ...
11106          It is trading a straightforward 40 lines switch statement to
11107          this nice 'type safe' function mapping (about 125 lines)'
11108         (But now it works again, better than changing the News file :)
11109         
11110 2001-10-14  Cyrille Chepelov  <chepelov@calixo.net>
11112         patch from <robert.young@dsto.defence.gov.au>: 
11113         * objects/UML/component.c: remember to set font in UML component
11114         object (fixes #62132)   
11116 2001-10-02  Lars Clausen  <lrclause@cs.uiuc.edu>
11118         * plug-ins/metapost/metapost.c: 
11119         * plug-ins/metapost/Makefile.am:
11120         * plug-ins/metapost/render_metapost.c:
11121         * plug-ins/metapost/render_metapost.h:
11122         Metapost renderer from Chris Sperandio
11124 2001-09-14  Hans Breuer  <hans@breuer.org>
11126         * app/render_gdk.c : reflect the fact, that GTK already talks
11127         UTF8 on win32, fixes #59982, #56100, (#55992 ?) ...
11129         * lib/font.c : 
11130         * app/render_libart.c : trying to fix #58045 but it appears
11131         to be an Gdk/win32, too. 
11133         * lib/charconv.c : handle utf8 conversion with the help of
11134         glib-1.3 even in the !HAVE_UNICODE case.
11136         * lib/dia_xml.c : reduce complaing about missing encoding, by
11137         detecting if the default (utf8) would break the file.
11139 2001-09-13  Cyrille Chepelov  <chepelov@calixo.net>
11141         * lib/charconv.c: (get_local_charset): at least please try to not 
11142         silently change the logic, while avoiding crashes. 
11144         * lib/font.c: (suck_font): put a #error, we have a nasty something
11145         to fix there before we switch to Gtk 2.0.
11146         
11147 2001-09-09  Hans Breuer  <hans@breuer.org>
11149         * **/makefile.mingw : Approach to compile Dia with mingw.
11150         Compiling mostly works but running does not (yet) ... 
11152         * lib/geometry.h : 
11153         - use G_OS_WIN32 instead of _MSC_VER to drag in isinf, etc. definitions. 
11154           Apparently mingw needs it too.
11155         - enable 'normalization' of a null verctor. Otherwise the beziergon
11156           bounding box calculation would be broken at least with msvc. What's
11157           the mathematical correct result of 0.0/0.0 ?
11159         * lib/dia_xml.c : isinf() for mingw too.
11161         * lib/dia_dirs.c : use MAX_PATH instead of _MAX_PATH (works for mingw 
11162         and msvc)
11164         * lib/charconv.c : still crashes if strcmp(NULL, "UTF-8"). 
11165         Please don't do it.
11167         * lib/font.c : Trying to reflect that GTK_TALKS_UTF8_WE_DONT
11169         * lib/libdia.def : updated externals. Apparently mingw needs
11170         them to produce the right mangling.
11172         * plug-ins/shape/shape-exports.c : get prototypes for xmlStrdup
11173         and xmlDiaSaveFile
11175 2001-09-08  Wang Jian  <lark@linux.net.cn>
11177         * configure.in(ALL_LINGUAS): Renamed zh_CN.GB2312 to zh_CN
11179 2001-09-07  Cyrille Chepelov  <chepelov@calixo.net>
11181         * lib/dia_xml_libxml.h:
11182         * lib/dia_xml.c: (data_add_string), (xmlDiaSaveFile): Duplicated
11183         libxml1's code, to rework the output file before it gets committed
11184         to disk. This is rubbish, and will be removed when libxml2
11185         switches from discouraged to mandatory. 
11186         All in all, this fixes #60152. 
11187         
11188         * lib/charconv.h: 
11189         * lib/charconv.c: (charconv_unichar_to_utf8):
11190         made the type of the input parameter explicitly an unsigned long.
11192         * configure.in: Added a check for libz (we must now include it
11193         explicitly, for xmlDiaSaveFile).
11194         
11195         * app/load_save.c: (diagram_data_save):
11196         * lib/plug-ins.c: (ensure_pluginrc), (info_fill_from_pluginrc),
11197         (dia_pluginrc_write):
11198         * plug-ins/shape/shape-export.c: (new_shape_renderer),
11199         (end_render), (draw_string):
11200         * plug-ins/svg/render_svg.c: (new_svg_renderer), (end_render),
11201         (draw_string):
11203         Made sure we always write UTF-8 XML files, and through
11204         xmlDiaSaveFile().
11206         * NEWS: documented that fact.
11207         
11208 2001-09-07  James Henstridge  <james@daa.com.au>
11210         * configure.in (found_libxml): refactor the check for libxml a
11211         little so that it handles finding both libxml1 and 2 better.
11213 2001-09-03  Cyrille Chepelov  <chepelov@calixo.net>
11215         * app/app_procs.c: removed a spurious } which caused a compilation
11216         error in the (!HAVE_GNOME && HAVE_POPT_H) case
11218         * lib/charconv.c: (get_local_charset): some versions of iconv(1)
11219         don't know what ANSI X3.4-1968 is. I didn't know until this day,
11220         but it's just plain old ASCII. Added a check to shield the poor
11221         XML library.
11223         Patches from <robert.young@dsto.defence.gov.au>:
11225         * lib/text.c: (text_calc_boundingbox) Bounding box now calculates the
11226         width and height of text before calculating bounds. Fixes #59928
11228         * app/preferences.c: Moved grid related items into Grid Tab.
11229         
11230 2001-09-02  Cyrille Chepelov  <chepelov@calixo.net>
11232         * app/interface.c: (create_zoom_widget): connected one more signal
11233         to the Zoom selector combo's list. Fixes #59879.
11235         * app/app_procs.[ch]: (app_init) (do_convert)
11236         (build_output_file_name): brought back into the main executable
11237         the rare useful bits of the ill-fated diaconv. This means we have
11238         one new feature : --export-to-format (-t), which should make
11239         writing conversion scripts easier, and a crude implementation of
11240         -t and -e for the poptless argument parsing, which means the Win32
11241         port should be able to take advantage of it (that should make
11242         resolving #58197 possible).
11244         * app/diaconv.c: kept the poor duck compiling (but that's about
11245         it).
11247         * plug-ins/svg/render_svg.c: updated the SVG DTD header (I hope
11248         I've got it right).
11250         * NEWS: updated about the new feature above, and documented the 
11251         "missing encoding specification" complaint. 
11252         
11253 2001-09-01  Abel Cheung  <maddog@linux.org.hk>
11255         * configure.in: Rename zh_TW.Big5 -> zh_TW in ALL_LINGUAS.
11257 2001-09-01  Cyrille Chepelov  <chepelov@calixo.net>
11259         * objects/standard/bezier.c: used g_new0 instead of g_new, to take
11260         care of #59837.
11262 2001-09-01  James Henstridge  <james@daa.com.au>
11264         * */Makefile.am: various changes to include missing files, and fix
11265         sheets dir to handle building with builddir != srcdir.
11267         * autogen.sh: unconditionally pass the --enable-maintainer-mode
11268         and --enable-db2html flags so that builds from CVS work correctly.
11270         * configure.in: increment version number.  Also add an
11271         --enable-db2html flag.  Without the flag, db2html won't be run (if
11272         the flag is passed and db2html is not present, do nothing).
11274 2001-08-30  Cyrille Chepelov  <chepelov@calixo.net>
11276         * lib/poly_conn.c: (polyconn_copy): it's a wonder this routine
11277         even compiled. It's really too bad there is no lint tool easily
11278         available (or a more cautious, pedandic, paranoid and verbose
11279         compiler). Anyway, this fixes #59662. (this didn't affect 0.88.x)
11281 2001-08-27  Cyrille Chepelov  <chepelov@calixo.net>
11283         * app/load_save.c:
11284         * dia/lib/plug-ins.c: use g_strdup() instead of strdup(). Patch
11285         from <robert.young@dsto.defence.gov.au>. Fixes #59591.
11287         * app/menu.c: added ellipsis(...) to diagram properties menu item.
11288         * app/dia-props.c: diagram properties dialog contents did not
11289         represent current diagram settings.
11290         * app/dia-props.[ch]:
11291         * app/display.c: diagram properties contents now follows currently
11292         selected diagram.
11293         Patch also from <robert.young@dsto.defence.gov.au>, fixes #59409.
11295         * AUTHORS: added Robert Young.
11296         
11297 2001-08-27  Cyrille Chepelov  <chepelov@calixo.net>
11299         * app/modify_tool.c: (modify_button_release): Patch from
11300         <robert.young@dsto.defence.gov.au>. Fixes the remaining bit from
11301         #59090: if selection dragging was released outside of the window, 
11302         artifacts of the selection box remained.
11304 2001-08-25  Cyrille Chepelov  <chepelov@calixo.net>
11306         * Objects/custom/shape_info.c: added missing #include <xmlmemory.h>
11308 2001-08-19  Cyrille Chepelov  <chepelov@calixo.net>
11310         * configure.in:
11311         * sheets/Makefile.am: prepared the terrain for the Version of
11312         xml-i18n-tools Which Comes After 0.9 (and which will feature at
11313         last a sane behaviour with XML files). Some reasonible delay
11314         before enforcing that version *will* be given.
11316         * xml-i18n-merge.in.kg: included the current CVS xml-i18n-merge.in
11317         
11318         * lib/plug-ins.c: <xmlmemory.h> defines xmlFree(), otherwise it
11319         becomes a nonexistent symbol.
11320         
11321 2001-08-18  Hans Breuer  <hans@breuer.org>
11323         * app/app_procs.c : made it compile without ENABLE_NLS
11325         * app/diap_callbacks.c : strcmp isn't guaranteed to work
11326         with NULL pointers
11328         * app/load_save.c :
11329         * lib/plug-ins.c : 
11330         * objects/custom/shape_info.c : avoid mixing allocators and dealocators. 
11331         It has to be :
11332                 xmlGetProp, ... -> xmlFree
11333                 malloc, strdup -> free
11334                 g_new, g_malloc, g_strdup - > g_free
11336         * app/win32print.c : some more error checking, still not
11337         working on Win9x
11339         * lib/charconv.c : get_local_charset is used even with !HAVE_UNICODE
11341         * lib/dia_xml.c : msvc still has no unistd.h
11343         * lib/dia_xml.c :
11344         * lib/sheets.c : temporary resolved libxml include brokeness
11346         * plug-ins/python/pydia-*.c : reflect Font and StdProp api
11347         changes. Compiles again, but doesn't do anything useful anymore.
11348         (see THE_PROP_TYPE_IS_INTEGRAL)
11350         * **/makefile.msc : updated to use LIBXML2
11352         * lib/libdia.def : reflect api changes
11354 2001-08-17  Cyrille Chepelov  <chepelov@calixo.net>
11356         * config.h.win32: added defines telling that gtk speaks UTF8.
11357         Hans, I believe this reflects what GTK on Win32 does.
11359         * app/app_procs.c: if GTK talks UTF8, we'll feed it UTF8 localised
11360         strings.        
11361         * lib/prop_inttypes.c: 
11362         * lib/prop_text.c:
11363         * lib/prop_widgets.c: fixed typos in the GTK_TALKS_UTF8_WE_DONT
11364         code path.
11365         
11366         * lib/plug-ins.c: (dia_register_plugins_in_dir): If there is a
11367         trailing // (or whatever (G_DIR_SEPARATOR * 2) is), a recursive
11368         search for plug-ins is done.
11369         * app/Makefile.am: made app/run_dia.sh use the // capability. No
11370         need to update this anymore if we get a new plug-in library (or
11371         remove one).
11373         * lib/dia_xml.c: #include <unistd.h> was missing.
11374         
11375         * lib/properties.h: 
11376         * lib/proplist.c: (pdtpp_defaults): Added a new flag,
11377         PROP_FLAG_NO_DEFAULTS. Will be used in the "automatic defaults"
11378         support.        
11380 2001-08-16  Cyrille Chepelov  <chepelov@calixo.net>
11382         * sheets/civil.sheet: removed duplicate "Danish" entries.
11384         * autogen.sh:
11385         * configure.in: 
11386         * .cvsignore:
11387         * sheets/Makefile.am: 
11388         * po/POTFILES.in:
11389         * Makefile.am: applied the xml-i18n-tools README's instructions.
11391         * po/(da de fr hu nl nn no sl).po: merged the translations from
11392         the sheet files into the .po files. I hope I haven't mixed
11393         languages...
11394         * sheets/*.sheet (REMOVED):
11395         * sheets/*.sheet.in (NEW): moved the sheet files sans
11396         translations into .sheet.in files. 
11397         
11398         * sheets/xml-i18n-unicodify: (NEW) included from xml-i18n-tools,
11399         because we don't yet want to force all translators to work using
11400         UTF-8 editors. We'll want to do that sometime (sooner rather than
11401         later). Okay, I sing a slightly different tune in po/ChangeLog...
11403         * dia.desktop (REMOVED):
11404         * dia.desktop.in (NEW): used also the x18t infrastructure for
11405         this too.
11407         * xml-i18n-update.in.kg (NEW): This one will stay in CVS until an
11408         "official" version of x18t with support for .sheet files is available.
11409         * xml-i18n-merge.in.kg (NEW): This one will stay in CVS until an
11410         "official" version of x18t which doesn't corrupt UTF-8 data in XML
11411         is available.
11412         
11413         ** yes, we are now using xml-i18n-tools to manage the sheet
11414         translations. For the Win32 build, Nemo stores snapshots of
11415         translated strings next to the CVS snapshots. **
11417         * sheets/checktrans.py: suddenly, some sheets have lots of
11418         translations (objects which existed before sheets, mostly).
11419         Adapted the formatting.
11421         * po/README (REMOVED): this is obsolete ! It was ignored, anyway.
11423         * app/display.[ch]: (ddisplay_autoscroll), (ddisplay_scroll):
11424         * app/modify_tool.[ch]: (modify_motion): A (modified) patch from
11425         <robert.young@dsto.defence.gov.au>, to fix #59090.
11427         * app/display.c: (ddisplay_scroll): While at it, added some
11428         margin, so that autoscrolling can happen within a margin outside
11429         the diagram's extents.
11431         * app/tool.[ch]: 
11432         * app/interface.c:
11433         * app/disp_callbacks.c: Robert "forced" me to go when I usually
11434         don't, namely the app/ directory. So while I was there, I
11435         scratched a long-time itch. If no object has focus, pressing the
11436         space bar will select back the tool which was selected before the 
11437         current one (I find this especially useful with "reset after create" !)
11438         
11439         * lib/proplist.c: (prop_list_from_single): Renamed
11440         prop_list_singleton() to avoid confusion with the Singleton
11441         pattern (which it definitely is not).
11442         
11443         * lib/propobject.c: (object_prop_by_name_type),
11444         (object_prop_by_name): The "flags" parameter was not necessary.
11445         These don't return synthetic properties, but properties built from
11446         a real property description list; therefore, we don't call
11447         make_new_prop() but use the existing property descriptor, which
11448         has perfectly valid (and meaningful) flags.
11450         * lib/proplist.c: (pdtpp_synthetic), (pdtpp_from_object): These
11451         new predicates better reflect the reason why properties exist when
11452         they're created by make_new_prop() or object_prop_by_name().    
11454         * lib/propobject.c: (object_prop_by_name_type), (object_prop_by_name):
11455         * lib/prop_basic.c: (make_new_prop): used the new reasons instead
11456         of pdtpp_true().
11458         * lib/properties.h: reflects all the above changes.
11460         * objects/SADT/arrow.c:
11461         * objects/SADT/annotation.c:
11462         * sheets/SADT.sheet: minor renamings to better match FIPS 183's
11463         IDEF0 terminology.
11464         
11465 2001-08-15  Cyrille Chepelov  <chepelov@calixo.net>
11467         * lib/properties.h:
11468         * lib/proplist.c: (prop_list_singleton):
11469         * lib/propobject.c: (object_prop_by_name_type), (object_prop_by_name):
11470         Added these, to simplify interactions of plug-ins with the StdProp
11471         core.
11473         * lib/Makefile.am:
11474         * lib/dia_xml.h:
11475         * lib/dia_xml_libxml.h (NEW): 
11476         * app/load_save.c:
11477         * lib/dia_xml.c:
11478         * lib/plug-ins.c:
11479         * lib/sheet.c:
11480         * objects/custom/shape_info.c: A few prototypes were causing
11481         #include hell, because we generally attempt to not pull the whole
11482         libxml header set when we include dia_xml.h. Moved those
11483         prototypes away for the rare cases they're necessary.
11484         
11485 2001-08-15  Hans Breuer  <hans@breuer.org>
11487         * lib/font.c : made LARS_TRACE_MESSAGES Standard C conform
11489         * lib/libdia.def : 
11490         * lib/makefile.msc : updated
11492         * lib/prop_basic.c : __FUNCTION__ is a gcc extension. Please
11493         use G_GNUC_FUNCTION instead.
11495         * lib/prop_inttypes.c : include <stdlib.h> for strtol()
11497         * objects/sadt/annotation.c : disable TEMPORARY_EVENT_TEST for
11498         msvc instead of cleaning missing includes
11500         * plug-ins/wmf/wmf.cpp :
11501         * plug-ins/wmf/wmf_gdi.h : fixed for Font to DiaFont renaming
11503 2001-08-15  Cyrille Chepelov <chepelov@calixo.net>
11505         * app/app_procs.c:
11506         * app/load_save.c:
11507         * lib/dia_xml.c:
11508         * lib/plug-ins.c:
11509         * lib/sheet.c:
11510         * objects/custom/shape_info.c:
11511         * plug-ins/shape/shape-export.c:
11512         * plug-ins/svg/render_svg.c: used the libxml1/libxml2
11513         compatibility macros as taught by http://xmlsoft.org/upgrade.html;
11514         removed xmlKeepBlanksDefault(0) in favour for proper
11515         xmlIsBlankNode() testing. Lots of other fixups to use the
11516         "libxml1.5" (libxml2 parser embedded in recent libxml1), and to
11517         make libxml1 output correct files.
11519         * configure.in: use libxml2 (>= 2.3.9) if it's found, or
11520         libxml1 (>= 1.8.14). Exactly one of these must be installed (devel
11521         packages). If both devel packages are found, the build will stop 
11522         (Fredrik: please add a Build-Conflicts: on libxml2-dev for the moment) 
11524         * lib/bezier_conn.c: (bezierconn_init): Lars, you forgot to
11525         allocate the first handle :-)
11526         
11527         * lib/object.c: (object_init): <gratuitous>g_new() used instead of
11528         a cast and a sizeof.</gratuitous>
11530         * objects/custom/custom_object.c: (custom_copy): don't call
11531         text_get_attrbutes if the shape has no text...
11532         (custom_update_data): The info->resize_with_text code was a bit
11533         directive; basically, the shape's bounding box was forced to be 
11534         proportional to the text's bounding box.... This fixes #57187.
11535         
11536         * objects/custom/shape_info.c: (load_shape_info): Set an obvious
11537         default for info->aspect_ratio; unobfuscated a line about
11538         info->resize_with_text;
11539         
11540 2001-08-15  Cyrille Chepelov <chepelov@calixo.net>
11542         * lib/properties.h: added comments next to the PROP_TYPEs to tell
11543         which C Property subclass to use.
11544         
11545         * plug-ins/dxf/dxf-import.c: (read_entity_line_dxf): Removed the
11546         cast-ridden form of setting properties in a list, in favour for
11547         the "local pointers" form. I'll take any better offer...
11549 2001-08-14  Cyrille Chepelov <chepelov@calixo.net>
11550         
11551         * lib/font.c: fprintf(...) --> fprintf(format...)
11553         * configure.in: added a disabled versioned test for glib.
11554         * lib/prop_geomtypes.c: (bezpointprop_load), (bezpointprop_save),
11555         (bezpointarrayprop_load), (bezpointarrayprop_save): replaced
11556         g_critical() with a simple g_error(). Proper fix is to implement
11557         that stuff. 
11559         * lib/properties.h: PROP_STD_TEXT is a PROP_TYPE_TEXT, not a
11560         PROP_TYPE_STRING.
11561         
11562         * lib/properties.h:     
11563         * lib/propdesc.c: (prop_desc_list_calculate_quarks):
11564         * lib/proplist.c: (find_prop_by_name_and_type):
11565         * lib/prop_basic.c: (make_new_prop), (initialize_property):
11566         * lib/propoffsets.c: (do_set_props_from_offsets),
11567         (do_get_props_from_offsets), (prop_offset_list_calculate_quarks):
11568         Added a type_quark member to PropDescription, Property and
11569         PropOffset. Used it to implement a safety in
11570         do_[sg]et_props_from_offsets().
11571                 
11572         * objects/flowchart/diamond.c: the diamond's text was not saved,
11573         and thus not even copied (c&p).
11574         * objects/standard/textobj.c: ditto.
11576         Most of the above changes thanks to Robert Young's testing. Thanks !
11577         
11578 2001-08-14  Kjartan Maraas  <kmaraas@gnome.org>
11580         * sheets/*.sheet: Added some Norwegian translations (both nynorsk
11581         and bokmÃ¥l).
11582         
11583 2001-08-13  Cyrille Chepelov  <chepelov@calixo.net>
11585         * lib/proplist.c (prop_list_from_descs): added a call to
11586         prop_desc_list_calculate_quarks(). (find_prop_by_name_and_type):
11587         too embarrassing to tell.
11588         
11589         * lib/propdesc.c (prop_desc_list_calculate_quarks): converted the
11590         while loop to a for loop, for symmetry with
11591         prop_offset_list_calculate_quarks().
11593         * lib/geometry.h: new inline function, rectangle_equals.
11595         * lib/diagramdata.[ch]: refactored a bit the diagram extents
11596         computation logic, and changed it to always be the union of the
11597         visible layers' extents. This should close #58882 (Debian
11598         #107167), and fixes #55498.
11600         * app/display.c: made the initial visible box more coherent with
11601         the diagram being loaded's extents.
11603         * app/prop_attr.c: don't set the font (from offset) if font_data
11604         is NULL. Two brainos in colorprop_load() and fontprop_load().
11605         
11606 2001-08-13  Cyrille Chepelov  <chepelov@calixo.net>
11608         * lib/properties.[ch]: split in a lot of pieces: 
11610         * lib/prop_*.[ch] (NEW): all property types are now first-class
11611         objects, inheriting from the original abstract Property type.
11612         * lib/propdesc.c (NEW): property description handling routines
11613         * lib/propoffsets.c (NEW): property offset handling routines
11614         * lib/proplist.c (NEW): property list handling routines
11615         * lib/propobject.c (NEW): property list <-> object routines
11616         * lib/propregistry.c (NEW): holds the PropertyType-->PropertyOps
11617         relations.
11618         * lib/propinternals.h: prototypes for stuff not usually needed by 
11619         the outside of StdProps.
11620         * lib/Makefile.am: a lot of new files have been added...
11622         THE ABOVE CHANGES ARE MAJOR CHANGES AND AFFECT THE WHOLE TREE, IN
11623         BOTH INTERFACES AND RUN-TIME STABILITY.
11625         * lib/plug-ins.h: bumped up DIA_PLUGIN_API_VERSION
11626         
11627         * lib/object.h: removed the incestuous relationship with
11628         properties.h' contents. Now a Property list is a GPtrArray -->
11629         object interface change !
11631         * app/app_procs.c/app_init(): removed a disabled call to a
11632         non-existent routine. Added a call to stdprops_init().
11633         
11634         * objects/Makefile.am: disabled the construction of EML. I'm not
11635         touching these until a certain issue is solved (or this module
11636         removed).
11637         * app/group.c:  
11638         * objects/**/*.c except objects/EML/*: adapted all stdprop-using 
11639         objects to the interface changes.
11640         
11641         * app/disp_callbacks.c: killed a warning.
11642         * lib/dia_xml.[ch]: sprinkled "const" modifiers. 
11644         * app/commands.c: 
11645         The macros PROP_VALUE_* have disappeared. Adapted to using the new 
11646         interface.
11648         * plug-ins/dxf/dxf-import.c: 
11649         * plug-ins/xfig/xfig-import.c: 
11650         PROP_VALUE_* macros have been removed. Converted to the new API.
11652         * plug-ins/python/**/*: I gave up converting this; I can't
11653         compile --with-python (problems with object.h defined both by us
11654         and by Python). I'll gladly help whomever cares to fix it !
11655         (or, fix it myself if someone tells me how to compile it).
11656         
11657         * configure.in: added the UNICODE-related progress defines.
11658                 
11659         * configure.in:
11660         * lib/geometry.h: On Solaris and perhaps other systems, finite()
11661         is defined in ieeefp.h rather than in math.h. Patch from Andrew
11662         Halper <ashalper@acm.org> with further modifications, isinf() is
11663         provided by -lsunmath (sunmath.h).
11664         
11665         * lib/font.c: conditionally disabled Lars' debugging messages.
11666         Bracketed the definition of DiaFontFamily with #ifdef HAVE_FREETYPE.
11667         
11668 2001-08-11  Lars Clausen  <lrclause@cs.uiuc.edu>
11670         * lib/bezier_conn.h: 
11671         * objects/standard/bezier.c (bezierline_create): 
11672         * lib/bezier_conn.c (bezierconn_init): 
11673         Preparations for use of userdata for bezier lines.
11674         
11675         * objects/standard/polygon.c: 
11676         * objects/standard/create.h:
11677         * lib/polyshape.c:
11678         * lib/polyshape.h:
11679         * plug-ins/xfig/xfig-import.c:
11680         Use of user_data for polygon as well, including adding
11681         polyshape_set_points.  Include file for non-interactive 
11682         creation of standard objects, objects/standard/create.h
11684 2001-08-10  Lars Clausen  <lrclause@cs.uiuc.edu>
11686         * app/render_gdk.c: 
11687         * app/render_gdk.h: 
11688         * lib/font.c:
11689         * lib/font.h:
11690         * lib/widgets.c:
11691         More preliminary freetype support.  Not at all functional, crashes
11692         when rendering.
11694         * lib/poly_conn.h: 
11695         * lib/poly_conn.c: 
11696         * objects/standard/polyline.c: 
11697         Support for creating polyline objects with more than two points.
11698         This includes an extra function and a prototype change in the
11699         poly_conn lib object.
11701         * lib/object.c (object_copy): Fixed memory leak of handles and
11702         connections.
11704 2001-08-08  Abel Cheung  <maddog@linux.org.hk>
11706         * dia.desktop: added traditional Chinese strings
11708 2001-08-04  Cyrille Chepelov  <chepelov@calixo.net>
11710         * NEWS: updated to reflect build-time dependencies.
11712         * lib/properties.[ch]: wrote get_prop_descriptions() as a wrapper
11713         around obj->ops->describe_props(obj). Quarks are none of an
11714         object's business in the general case... 
11715         * lib/text.c: Added an apply_textattr_properties() function to
11716         factor out some common code related to applying a dialog's text
11717         attribute properties to a (Text *) which wasn't edited there. 
11718         Ditto for textstr, for the string part of an objet.
11720         * objects/GRAFCET/action.c:
11721         * objects/SADT/annotation.c:
11722         * objects/SADT/box.c: used apply_textattr_properties().
11723         
11724         * objects/UML/actor.c: 
11725         * objects/UML/branch.c:
11726         * objects/UML/component.c:
11727         * objects/UML/constraint.c:
11728         * objects/UML/small_package.c:
11729         * objects/UML/state.c:
11730         * objects/UML/usecase.c:
11731         * objects/UML/large_package.c:
11732         * objects/UML/note.c:
11733         * objects/UML/node.c:
11734         * objects/UML/message.c:
11735         * objects/UML/classicon.c:
11736         * objects/UML/object.c:
11737         * objects/UML/realizes.c:
11738         * objects/UML/dependency.c:
11739         * objects/UML/implements.c:
11740         slim-fast(tm) cure using more StdProps, and UTF-8 audit.
11741         (most objects were already using StdProps to some extent ; this
11742         systematises usage and removes some dead wood). 
11743         
11744         * objects/UML/stereotype.[ch]: use UTF-8 internally. const police work.
11745         * objects/UML/uml.[ch]: audited for UTF-8.
11747         * objects/UML/class.c: the UML_STEREOTYPE_* strings defined by
11748         uml.h can be in UTF-8... this code isn't yet ready. Duplicating a
11749         private (ISO-8859-1) definition.
11750         
11751         * lib/charconv.c: Added a warning if we didn't run
11752         nl_langinfo(CODESET) but rely instead on a hardcoded default.
11753         
11754 2001-08-02  Cyrille Chepelov  <chepelov@calixo.net>
11756         * lib/diamenu.h:
11757         * app/disp_callbacks.c: added a way for an object to cause an
11758         already realised menu to be destroyed (for instance if it changes
11759         too much).
11761         * objects/custom/custom_object.c: used the above to fix #55073.
11763 2001-08-01  Lars Clausen  <lrclause@cs.uiuc.edu>
11765         * configure.in: Remove 2.50 prereq.
11767 2001-07-30  Cyrille Chepelov  <chepelov@calixo.net>
11769         * po-checktrans.py: under some circumstances, there was one column 
11770         more than what was supposed to be, thus breaking the formatting.
11771         
11772 2001-07-29  Cyrille Chepelov  <chepelov@calixo.net>
11773         
11774         * objects/SADT/annotation.c: forgot to add a #include <stdlib.h>
11776         * NEWS: updated with new stuff since 0.88
11778         * shapes/network/antenna.shape: the text was misplaced ; fixed.
11780         * shapes/network/firewall.(shape|xpm) (NEW): a brick-wall looking
11781         firewall router (upon request from Cyril Lacoux
11782         <clacoux@easter-eggs.com>)
11784         * configure.in (didn't rename to configure.ac): autoconf 2.50
11785         constructs were used ; added an AC_PREREQ call to guard against
11786         older autoconfs.
11787         
11788 2001-07-27  Cyrille Chepelov  <chepelov@calixo.net>
11790         * lib/properties.c: minor clean-ups with the event delivery code.
11792         * EML/instantiation.c: brought this object back from stone and ice
11793         age.    
11795         * app/diaconv.c(NEW): added a command-line conversion tool. Still
11796         lacks a man page and correctness. In fact, it doesn't work. Please
11797         see #58196 if you want to finish it.
11798         
11799         * lib/message.[ch]: redefined things a little so that a different
11800         message_internal routine could be passed.
11801         applications can use that to fit themselves to the display model.
11803 2001-07-26  Cyrille Chepelov  <chepelov@calixo.net>
11805         * objects/SADT/box.c: 
11806         * objects/GRAFCET/action.c: spelling in property descriptors (name
11807         field...)
11808         * objects/SADT/annotation.c: ditto, plus a temporary test of the
11809         event delivery code (try to click on the "click me !" button !).
11811         * app/group.c: 
11812         * lib/properties.[ch]: improved (fixed) support for group event 
11813         handlers. Fixed various things from yesterday's code to make it
11814         not too obviously crash.
11816 2001-07-26  Cyrille Chepelov  <chepelov@calixo.net>
11818         * app/group.c: added delivery of events to the first member of the
11819         group which is able to process it.
11821         * lib/properties.c(prop_desc_lists_intersection): properties
11822         don't match if they don't have identical event handler.
11823         * lib/properties.h: simplified the PropEventHandler signature.
11825         Event delivery code is still untested so far, but should be
11826         lurking harmless.
11827         
11828 2001-07-25  Cyrille Chepelov  <chepelov@calixo.net>
11830         * lib/properties.[ch]: Added (untested !) property event handler
11831         capability. Added a new PROP_TYPE_BUTTON, for the purpose of
11832         generating such events. This stuff compiles, and should lurk
11833         around silently as long as you don't declare property descriptors
11834         with events (AFAICT).
11835         In object_create_props_dialog() and friends:
11836         attached a single structure with lots of data instead of lots of
11837         little attachments of data to the dialog widget.
11838         
11839         * lib/object.h: fixed mild typedef breakage introduced by the above.
11841 2001-07-17  Lars Clausen  <lrclause@cs.uiuc.edu>
11843         * lots of files: Changed Font to DiaFont
11844         * */Makefile.am: Added FREETYPE_LIBS
11845         * plug-ins/xfig/xfig-export.c: Improved (working:) color handling
11847 2001-07-13  Kjartan Maraas  <kmaraas@gnome.org>
11849         * configure.in: Added "nn" to ALL_LINGUAS.
11850         
11851 2001-07-09  Alex Larsson  <alexl@redhat.com>
11853         * app/disp_callbacks.c:
11854         Add gdk_im_ready() calls to XIM code.
11856 2001-07-04  Cyrille Chepelov  <chepelov@calixo.net>
11858         * lib/properties.[ch]: splitted prop_get_widget() into
11859         prop_get_widget() (gives a widget but doesn't fill it) and 
11860         prop_reset_widget() (fills an existing widget with a property's value).
11862         * lib/widgets.[ch]: const enforcement police work.
11864         * shapes/network/antenna.shape: added a connection point at top,
11865         upon request from <Emmanuel.Quemener@cri.ens-cachan.fr>.
11866         
11867 2001-06-25  Cyrille Chepelov  <chepelov@calixo.net>
11869         * intl/*: tested with gettext-0.10.38
11870         * configure.in: moved a macro call around (AM_PROG_CC) to keep
11871         some of autogen.sh from complaining.
11872         * INSTALL: added a warning against gettext older than at least 0.10.36
11873         
11874 2001-06-19  Cyrille Chepelov  <chepelov@calixo.net>
11876         * configure.in: added explicit calls to AM_LANGINFO_CODESET and
11877         AM_ICONV (both provided by gettext)
11879 2001-06-14  Cyrille Chepelov  <chepelov@calixo.net>
11881         * lib/charconv.c: corrected the degraded mode for when
11882         !HAVE_UNICODE. Thanks to Ben A. Hetland for reporting this.     
11884         * objects/chronoline/chronoline_events.c: UTF8 compliance.
11885         
11886 2001-06-13  Cyrille Chepelov  <chepelov@calixo.net>
11888         * lib/properties.[ch]: convenience macros around PROP_NOTEBOOKS ;
11889         new "eye candy" properties: PROP_MULTICOL_(BEGIN|PAGE|END) to lay 
11890         widgets on several columns, PROP_FRAME_(BEGIN|END) to put widgets
11891         into a frame box.
11893         * objects/chronogram/chronoline.c:
11894         * objects/chronogram/chronoref.c: took advantage of the above to
11895         make nicer looking dialogs.
11897         * lib/charconv.[ch]: added charconv_unichar_to_utf8 ("inspired"
11898         from libunicode's internals).
11899         * lib/message.c: convert strings to local encoding prior to
11900         display (UNICODE_WORK_IN_PROGRESS)
11901         * lib/properties.[ch]: convert strings to local encoding prior to
11902         display, and back to UTF8 (UNICODE_WORK_IN_PROGRESS).
11903         * lib/render.h: tagged strings as (utfchar *) instead of (char *)
11904         * lib/stringprerenderer.[ch]: ditto
11906         (lib/text.c has been audited for UTF8, but the size of the changes
11907         make them inappropriate for commit before 0.89)
11908         
11909 2001-06-12  Cyrille Chepelov  <chepelov@calixo.net>
11911         * objects/boolequation.h (<save|load>_boolequation): made the 
11912         prototypes for match the .c file.
11913         
11914         * samples/grafcet.dia: minor non-conformance with IEC-848
11915         fixed (in the transition from step 100 to step 101).
11917         * lib/properties.[ch]: added a flag (PROP_FLAG_DONT_MERGE) to
11918         disallow editing of properties if the object is part of a group.
11920         * objects/chronogram/chronoline.c: 
11921         * objects/SADT/annotation.c:
11922         * objects/SADT/box.c:
11923         * objects/GRAFCET/step.c:
11924         * objects/GRAFCET/transition.c:
11925         * objects/GRAFCET/condition.c: took advantage of PROP_FLAG_DONT_MERGE.
11926         
11927 2001-06-12  Hans Breuer  <hans@breuer.org>
11929         * lib/libdia.def : removed lazyprop exports
11930         * lib/makefile.msc : removed lazyprop.obj
11932         * objects/custom/custom_objects.c : use HAVE_UNISTD_H
11933         and avoid crashes by always creating a custom->text,
11934         when (custom->info->has_text) 
11936         * objects/makefile.msc : removed sybase from build
11938         * objects/GRAFCET/boolequation.c (<save|load>_boolequation) :
11939         ObjectNode is a pointer already, which is what we want
11940         instead of a pointer pointer.
11942         * plug-ins/wmf/wmf.cpp : fixed problem with arc scaling
11943         and implemented working export for images
11945         * shapes/network/zip-disk.shape : added connection points 
11947 2001-06-12  Cyrille Chepelov  <chepelov@calixo.net>
11949         * objects/SADT/box.c: removed lazyprops for standard props.
11950         * objects/chronograms/chronoline.c: removed lazyprops (phew !)
11951         * objects/chronograms/chronoref.c: ditto 
11953         * lib/Makefile.am:
11954         * lib/dummy_dep.h:
11955         * lib/connpoint_line.c:
11956         * lib/lazyprops.[ch] (DELETED): good riddance (closes #55895)
11957         * lib/properties.[ch]: new property types:
11958             - PROP_TYPE_STATIC: static text to be displayed in the dialog.
11959             - PROP_TYPE_MULTISTRING: same as string, but renders as a
11960             multi-line entry box.
11961             - PROP_TYPE_NOTEBOOK_BEGIN,_PAGE,_END: stuff to make dialogs
11962             in a tabbed-notebook style (this is a bit complicated to use; 
11963             see objects/chronograms/chronoline.c for an example).
11964                
11965 2001-06-11  Cyrille Chepelov  <chepelov@calixo.net>
11967         * objects/GRAFCET/boolequation.[ch]: zap lazyprops. Add standard props.
11968         * objects/GRAFCET/step.c: ditto.
11969         * objects/GRAFCET/vector.c: ditto.
11970         * objects/SADT/annotation.c: ditto.
11971         * objects/SADT/arrow.c: ditto (plus bounding box fixes).
11972         
11973         * lib/properties.[ch]: two more non-visible types
11974         (PROP_TYPE_ENUMARRAY and PROP_TYPE_INTARRAY).
11976         * lib/neworthconn.[ch]:
11977         * lib/orthconn.[ch]: added support for manipulation through
11978         standard properties.
11980         * configure.in: removed -fomit-frame-pointer, this seems to
11981         confuse recent gcc/gdb's, maybe we'll get better stack dumps in 
11982         bugzilla.
11984         * charconv.[ch]: more functions from unicode.h.
11985         get_local_charset() wasn't working properly, fixed now.
11986         A subtle crashbug in charconv_utf8_to_local8() nailed (thanks to 
11987         ElectricFence !)
11988         
11989         * objects/EML/process.h: pulled the bits of lazyprops.h it uses.
11990         * lib/lazyprops.[ch]: put a big fat warning in.
11992         * app/render_eps.c: one line mysteriously went away, causing a
11993         variable to be used uninitialised....
11995 2001-06-10  Cyrille Chepelov  <chepelov@calixo.net>
11997         * app/app_procs.c: commented out the call to
11998         bind_textdomain_codeset(): it's premature.
11999         
12000         * lib/connpoint_line.c: a NULL point can be given to
12001         connpointline_adjust_count(), in case there's not really a clicked
12002         point.
12004         * lib/textattr.h(NEW): moved the definition of TextAttributes to sort
12005         #include order troubles. #included by lib/text.h, so there is no 
12006         impact outside lib/.
12007         * lib/properties.[ch]: added support for CONNPOINT_LINE and
12008         (nonvisible) TEXT properties.
12010         * objects/GRAFCET/action.c:
12011         * objects/GRAFCET/vergent.c: dropped lazyprops for standard
12012         properties.
12013         
12014         * objects/UML/lifeline.c: pruned some legacy stuff (now pure
12015         standard properties code). Grafted a dynamic number of connection
12016         points (heavily inspired from what Vergent does). This is the real
12017         fix for #55863.
12019         * objects/GRAFCET/boolequation.[ch]: audited for UTF-8
12021         * lib/fonts.c: some hardening (mostly g_assert())
12022 2001-06-09  Cyrille Chepelov  <chepelov@calixo.net>
12024         * app/app_procs.c (app_init): added a call to
12025         bind_textdomain_codeset() so that gettext gives us UTF-8 strings
12026         (UNICODE_WORK_IN_PROGRESS).
12027         
12028 2001-06-08  Cyrille Chepelov  <chepelov@calixo.net>
12030         * plug-ins/xfig/xfig-import.c: corrected a typo (fixes #55910)
12032         * objects/UML/lifeline.c: patch from Marc <mrw@siemens.ch> 
12033         (fixes #55863) : some clean-ups in the handling of connection
12034         points. Now the total number of connection points is just a
12035         #define (the proper solution is to retrofit the GRAFCET Vergent's
12036         dynamic behaviour wrt connection points).
12037         
12038 2001-06-07  Cyrille Chepelov  <chepelov@calixo.net>
12040         * app/app_procs.c (app_init): added a call to unicode_init() (only
12041         if HAVE_UNICODE, of course).
12043         * lib/charconv.c: simplified the code which detects the local
12044         charset. No need to use <langinfo.h>, libunicode already takes the
12045         burden of figuring that out. Also, if local charset is utf8, no
12046         conversion will take place.
12047         Exposed a way to get the current charset (similar to
12048         unicode_get_charset() but actually working, hopefully).
12050         * lib/charconv.h: Added a partial non-UTF8 implementation of
12051         unicode.h if !HAVE_UNICODE (actually, all the time for the
12052         moment). The UTF8 implementation is just macros on libunicode (use
12053         the functions prefixed by uni_, as defined by charconv.h, not
12054         unicode_, unless that code is to be compiled only if HAVE_UNICODE).
12055         From now on, all strings which don't *need* to be ASCII should be
12056         utfchar *, not gchar *. Just include charconv.h, let it sort out
12057         the details (such as: "is libunicode available and enabled?") 
12059         * lib/ps-utf8.c: fixed a few name clashes. Used the charconv.h
12060         "API" instead of directly libunicode. Removed the now unnecessary
12061         speculative clustering of characters in encoding pages.
12063         * app/render_eps.c: made the local8->utf8 conversions dependent of
12064         !UNICODE_WORK_IN_PROGRESS (this is not where the local8/utf8
12065         boundary will be when this WIP is done).
12067         * lib/dia_xml.c (data_point): fixed a format string typo.
12069         * po/POTFILES.in: added all C files from lib/ 
12070         
12071 2001-06-06  Cyrille Chepelov  <chepelov@calixo.net>
12073         * app/disp_callbacks.c: make sure the objects' connected objects
12074         are updated when the objects' size changes after a keypress event
12075         (fixes #51222)
12077         * configure.in: added a big warning about the possible future
12078         non-optionality of --enable-unicode. 
12080         * TODO: removed entries which look like done ; added a few ones
12081         (Bugzilla "enhancement" bugs may be a better way to keep track of
12082         this)
12083         
12084 2001-06-05  Cyrille Chepelov  <chepelov@calixo.net>
12086         * objects/UML/message.c: got rid of #55564 and of message_copy()
12087         by using more standard properties (are the message_state_*()
12088         functions still necessary ?)
12090 2001-06-04  Fredrik Hallenberg  <hallon@lysator.liu.se>
12092         * lib/plug-ins.c: 
12093         * objecs/custom/shape_info.c:
12094         * plug-ins/shape/shape-export.c:
12095         * plug-ins/svg/render_svg.c: patch from obecian <obecian@openbsd.org>
12096         use xmlChar instead of obsolete CHAR.
12098 2001-06-03  Hans Breuer  <hans@breuer.org>
12100         * app/diagram.h : added prototype for diagram_update_menu_sensitivity()
12101         * app/commands.c : give the right number of parameters
12102         to diagram_update_menu_sensitivity ()
12104         * app/preferences.c : do proper initialization for DiaPrefsData:
12105         render_bounding_boxes. It would be a real surprise if 'hidden'
12106         properties would have ever worked before.
12107         Don't try to access the widgets of hidden property, it does not
12108         have one.
12110         * lib/diagramdata.h : make render_bounding_boxes a DIAVAR, cause
12111         it is defined in libdia, but initialized from dia app, which 
12112         otherwise gave nice start-up crashes.
12114         * lib/diagramdata.c : initialize the color for rendering bounding 
12115         boxes in the Dia range (0 .. 1.0)
12117         * lib/libdia.def : added *_bbox functions for export
12119         * lib/makefile.msc : added new sources
12121         * objects/custom/custom_object.c : use HAVE_UNISTD_H
12123 2001-05-30  Cyrille Chepelov  <chepelov@calixo.net>
12125         * app/interface.c:
12126         * app/menus.c: patch from Hubert Figuiere <hfiguiere@teaser.fr> ;
12127         removes a translation of menus (in a place where there shouldn't
12128         have been), which gets rid of a waterfall of warnings if LANG!=C,
12129         and a fix to #55047.
12131 2001-05-29  Steffen Macke     <sdteffen@yahoo.com>
12133         * lib/charconv.c : added #include <errno.h>
12135         * app/dia_embedd.c : updated menus_get_item_from_path usage
12136         
12137 2001-05-27  Cyrille Chepelov  <chepelov@calixo.net>
12139         * lib/ps-utf8.c: Strings in Symbol fonts were incorrectly rendered.
12140         Added a special case for Symbol strings, so that they're not
12141         re-encoded using the LN encoding (we use the bare Adobe encoding
12142         instead).
12144         * objects/custom/custom_object.c: Now that #52912 is fixed,
12145         I could remove the ugly hack I wrote to squash the shape bounding box
12146         problem shown by Ben A. Hetland a few months ago, and fix it
12147         properly this time.
12148         
12149         * lib/text.c: enlarged a little the bounding box to account for
12150         the cursor in rightmost position.
12151         
12152         * lib/diagramdata.c: draw bounding boxes only if the relevant
12153         variable is set (as before), but also only if the rendere is
12154         interactive (ie, don't bother rendering bounding boxes on 
12155         Postscript...)
12156         Made the bounding box's line width a fixed value, 0.01
12157         
12158         * lib/boundingbox.c: fixed the "pointy corners" code for polylines
12159         and assymmetric control beziers. Implemented ellipse_bbox().
12160         
12161         * Makefile.am: incantations to get po/dia.pot build, as suggested
12162         by Hubert in #55075.
12163         
12164         * shapes/network/computer.shape: typo fixed.
12165         * shapes/network/antenna.shape: fixed #55074 (antenna is now
12166         properly translucent, except for its base where it makes sense. It
12167         doesn't look that ugly anymore if transparent mode is on).
12169         * configure.in: --enable-unicode is now the default. This
12170         still currently affects only printing.
12171         
12172 2001-05-26  Cyrille Chepelov  <chepelov@calixo.net>
12174         * lib/boundingbox.c: fixed a minor logic error wrt closed shapes. 
12175         The overshoot code is buggy, and the bounding boxes for polyshapes
12176         looks a bit cheezy. To be done ASAP.
12178 2001-05-26  James Henstridge  <james@daa.com.au>
12180         * configure.in: call AM_PATH_PYTHON rather than AM_PATH_PYTHON_JH.
12181         This should clear up some of the build problems people have been
12182         having.
12184         * acinclude.m4: call AM_PATH_PYTHON_JH AM_PATH_PYTHON
12186 2001-05-26  Cyrille Chepelov  <chepelov@calixo.net>
12188         * lib/Makefile.am:
12189         * lib/boundingbox.[ch] (NEW): (some) refactoring of the bounding
12190         box code (beginning with lines, polylines and polybeziers), into a
12191         more generic facility. While at it, a better shot at correctly
12192         computing the bounding box of a Bezieroid (should take care of
12193         #53424, #51233 and of course is part 1 of #52912).
12195         * lib/diagramdata.c: turned the RENDER_BOUNDING_BOXES conditional
12196         into a hidden preference (set render_bounding_boxes in diarc).
12197         * app/preferences.[ch]: Added support for hidden preferences.
12199         * lib/geometry.[ch]: sprinkled with "const" modifiers.
12200         
12201         * lib/bezier_conn.[ch]:
12202         * lib/beziershape.[ch]:
12203         * lib/connection.[ch]:
12204         * lib/element.[ch]:
12205         * lib/poly_conn.[ch]:
12206         * lib/orth_conn.[ch]:
12207         * lib/neworth_conn.[ch]:
12208         * lib/polyshape.[ch]: adapted to take advantage of
12209         boundingbox.[ch] instead of relying on private (duplicate) code.
12211         * object/FS/flow.c:
12212         * object/GRAFCET/action.c:
12213         * objects/GRAFCET/condition.c:
12214         * objects/GRAFCET/vergent.c:
12215         * objects/GRAFCET/vector.c:
12216         * objects/SADT/annotation.c:
12217         * objects/SADT/arrow.c:
12218         * objects/ER/participation.c:
12219         * objects/UML/constraint.c:
12220         * objects/UML/implements.c:
12221         * objects/UML/lifeline.c:
12222         * objects/UML/message.c:
12223         * objects/UML/realizes.c:
12224         * objects/UML/generalization.c:
12225         * objects/UML/association.c:
12226         * objects/UML/dependency.c:
12227         * objects/FS/flow-ortho.c:
12228         * objects/network/bus.c:
12229         * objects/standard/arc.c:
12230         * objects/standard/bezier.c:
12231         * objects/standard/beziergon.c:
12232         * objects/standard/line.c:
12233         * objects/standard/polygon.c:
12234         * objects/standard/zigzagline.c:
12235         
12236         * objects/standard/polyline.c: Some *BBExtras structures changed
12237         names while moving to boundingbox.[ch]. A trivial mass-renaming.
12238         
12239 2001-05-20  Cyrille Chepelov  <chepelov@calixo.net>
12241         * app/disp_callbacks.c (ddisplay_canvas_events): Take into account
12242         wheel mouses for scrolling (from Patrick Sung <phsung@ualberta.ca>)
12244         * app/display.c (ddisplay_update_scrollbars): from Patrick's
12245         suggestion, remove the extra scrollable area (it was only visible
12246         to the scrollbars). This is experimental.
12247         
12248         * objects/custom/custom_object.c: If a shape's icon file doesn't 
12249         exist, warn and substitute a default icon, instead of crashing.
12250         (fixes #52913)
12251         
12252         * objects/network/network.c:
12253         * shapes/network/modularswitch.(shape|xpm) (NEW):
12254         * shapes/network/printer.(shape|xpm) (NEW):
12255         * shapes/network/genmonitor.(shape|xpm) (NEW):
12256         * shapes/network/computer.(shape|xpm) (NEW):
12257         * shapes/network/Makefile.am: four less objects, four more shapes.
12258         These were the last known RenderObjects. (phew !)
12260         * lib/Makefile.am:
12261         * lib/dummy_dep.h:
12262         * objects/sybase/Makefile.am: 
12263         * objects/network/Makefile.am: Removed the older Renderobjects
12264         from the build, and their infrastructure (not yet deleted,
12265         though).
12267         * shapes/network/sceadplug.shape:
12268         * shapes/network/antenna.shape:
12269         * shapes/network/modem.shape:
12270         * shapes/network/hub.shape:
12271         * shapes/network/rj45plug.shape:
12272         * shapes/sybase/client.shape:
12273         * shapes/sybase/dataserver.shape:
12274         * shapes/sybase/ltm.shape:
12275         * shapes/sybase/repserver.shape:
12276         * shapes/sybase/rsm.shape:
12277         * shapes/sybase/stableq.shape: Minor corrections (line widths were
12278         ten times too narrow).
12279         
12280 2001-05-19  Cyrille Chepelov  <chepelov@calixo.net>
12282         * objects/network/network.c:
12283         * shapes/network/sceadplug.(shape|xpm) (NEW):
12284         * shapes/network/antenna.(shape|xpm) (NEW):
12285         * shapes/network/modem.(shape|xpm) (NEW):
12286         * shapes/network/Makefile.am: four less objects, four more shapes.
12287         
12288         * lib/Makefile.am:
12289         * lib/diagramdata.c:
12290         * lib/render.h:
12291         * lib/string_prerenderer.[ch] (NEW):
12292         Add a new renderer primitive, predraw_string() (does nothing, to be
12293         used as a hook to optimise the character encodings if needed). 
12294         Added a string pre-renderer, which can be viewed as a filter
12295         renderer (to route draw_string() to predraw_string() and ignore
12296         the rest, in a first rendering pass)
12297         
12298         * app/render_eps.c: Took advantage of the above to make wholly
12299         optimised Postscript encoding page(s), even (especially) with 
12300         non-latin1 code (HAVE_UNICODE must be true).
12302         (#53512 in fact is wholly resolved).
12303         
12304 2001-05-18  Cyrille Chepelov  <chepelov@calixo.net>
12306         * lib/charconv.c: steps towards resolution of #53512 (inspired by
12307         Alexey Novodvorsky <aen@logic.ru>'s patch).
12309         * app/menus.c (dia_menu_signal_proxy): checked that the signal
12310         handler is not NULL before transferring control to it... (fixes #52836)
12312         * app/app_procs.c (app_init): removed non-constant initialiser
12313         (fixes #52950)
12315         * objects/custom/custom_object.c:
12316         * objects/custom/shape_info.[ch]:
12317         * objects/custom/test.xml: merged patch #53476 from Steven Hawkins 
12318         <skh@mathstar.com>. This add support for a <svg:text> shape
12319         element, and some related style properties (font, font height, 
12320         alignment)
12322         * doc/custom_shapes: a precision about the meaning of case in a
12323         SVG path (closes #52364)
12325         * lib/dummy_dep.h: fix for SGI IRIX 6.2 (#53053, reported and
12326         fixed by <drk@sgi.com>)
12327         
12328 2001-05-17  Cyrille Chepelov  <chepelov@calixo.net>
12330         * objects/network/network.c:
12331         * shapes/network/Makefile.am:
12332         * shapes/network/hub.(shape|xpm) (NEW):
12333         * shapes/network/flash.(shape|xpm) (NEW):
12334         * shapes/network/rj45plug.(shape|xpm) (NEW):
12335         More shapes, less renderobjects.
12337 2001-05-16  Cyrille Chepelov  <chepelov@calixo.net>
12338         
12339         * plug-ins/svg/render_svg.c: typo made exported ellipses
12340         corrupted (zero Y pseudo-radius).
12342         * objects/network/network.c:
12343         * objects/network/disc.c:
12344         * shapes/network/disc.(shape|xpm): Converted the first
12345         Renderobject into a shape. Normally, old diagrams should reload
12346         without problems (please check this against your diagrams). More
12347         flexibility should be gained that way. I intend to hunt and
12348         eradicate all renderobjects as I can commit cycles to that. 
12350         * objects/Makefile.am:
12351         * configure.in:
12352         * app/Makefile.am:
12353         * objects/sybase/sybase.c:
12354         * shapes/sybase/Makefile.am(NEW):
12355         * shapes/sybase/client.(xpm|shape) (NEW):
12356         * shapes/sybase/dataserver.(xpm|shape) (NEW):
12357         * shapes/sybase/ltm.(xpm|shape) (NEW):
12358         * shapes/sybase/repserver.(xpm|shape) (NEW):
12359         * shapes/sybase/rsm.(xpm|shape) (NEW):
12360         * shapes/sybase/stableq.(xpm|shape) (NEW): converted Sybase
12361         renderobjects into shapes. The Sybase objects are now not compiled
12362         anymore, and ready to be nuked if nobody objects in the next few weeks.
12363         
12364         * app/commands.c:
12365         * app/diagram.[ch]:
12366         * app/disp_callbacks.c:
12367         * app/display.[ch]:
12368         * app/interface.[ch]:
12369         * app/menus.[ch]:
12370         * app/modify_tool.c:
12371         * app/preferences.[ch]:
12372         * app/recent_files.c:
12373         * app/select.c: Added patch #52364 from Hubert Figuiere. This adds
12374         a menu bar reflecting the popup menu, to each display window. This
12375         is optional (changing the preference currently doesn't affect
12376         already opened windows; a few other rough edges to cut).
12378         * plug-ins/wpg/wpg.c:
12379         * plug-ins/xfig/xfig-import.c:
12380         * plug-ins/python/pydia-property.c:
12381         * plug-ins/python/pydia-properties.c:
12382         * plug-ins/python/pydia-geometry.c:
12383         * plug-ins/pstricks/render_pstricks.c:
12384         * lib/arrows.c:
12385         * objects/EML/dbox.c:
12386         * lib/ps-utf8.c: paleolithic C compilers choke on //. Should fix 
12387         #53054.
12389         * lib/ps-utf8.c: improved the clustering of alphabetic character
12390         definitions in custom encodings pages.
12391         
12392 2001-05-02  Hans Breuer  <hans@breuer.org>
12394         * lib/object.h : OBJECT_COMMON_PROPERTIES_OFFSETS correct type 
12395         of 'obj_bb' to PROP_TYPE_RECT
12397         * objects/custom/custom_object.c : take all quarks into account, 
12398         not only 4 as copy&paste suggests
12400         * objects/uml/objects.c : completed the implementation of the
12401         property api to avoid reading of totally bogus data. Removed
12402         the PROBABLY_DEAD_CODE. It actually was dead code, but not because
12403         there was too much but too less ...
12404   
12405         The above changes removed all known crashes (mentioned below) 
12406         from the Property API. Property access is still incomplete though.
12408         * objects/flowchart/box.c :
12409         * objects/flowchart/diamond.c :
12410         * objects/flowchart/ellipse.c :
12411         * objects/flowchart/parallelogram.c :
12412         * objects/uml/classicon.c :
12413         * objects/uml/state.c : calculate number of quarks from quark array 
12414         size instead of using hardcoded values for consistence and to avoid 
12415         future bugs like the above
12416         
12417         * objects/eml/nlist.c : include <string.h> for strcmp()
12419         * lib/dia_xml.c : relax g_warning for values, which
12420         appear to be too small. There is nothing which prevents
12421         them while saving
12423         * plug-ins/python/pydia-geometry.c : changed stringifying of
12424         geometry objects accept BezPoint back to %f, which does not
12425         crash anymore, because all the data is intialized now and it
12426         simply is more readable than %e ...
12428         * plug-ins/python/python-startup.py : removed dependency
12429         to PyGtk, because it isn't required here and probably won't
12430         in i.e.: export filters.
12432         * plug-ins/python/gtkcons.py : create the gtkoutfile even
12433         if sys.stderr.fileno() isn't supported
12435         * app/makefile.msc : make version 0.88
12436         * plug-ins/makefile.msc : make version 0.88 an added new
12437         xfig files to build
12439 2001-05-11  James Henstridge  <james@daa.com.au>
12441         * NEWS: remember to add news items this time.
12443         * dia.spec: update spec file for 0.88 release.
12445         * configure.in: up version number to 0.88
12447         * plug-ins/python/Makefile.am (EXTRA_DIST): fix up typo that was
12448         preventing any of the useful python scripts from being
12449         distributed.
12451         * sheets/Makefile.am (sheet-translation-report): fix bustage I
12452         introduced in my fixups for the 0.87 release :(
12454 2001-05-10  Lars Clausen  <lrclause@cs.uiuc.edu>
12456         * plug-ins/xfig/xfig-import.c: Finally got groups working.
12458 2001-05-09  Lars Clausen  <lrclause@cs.uiuc.edu>
12460         * plug-ins/xfig/xfig-import.c: Improvements to error handling and
12461         group manipulation.
12463 2001-05-09  Cyrille Chepelov  <chepelov@calixo.net>
12465         * lib/ps-utf8.[ch]:
12466         * lib/Makefile.am: fix makefile breakage which led to not
12467         including ps-utf8.[ch] in the released tarballs. 
12469 2001-05-09  James Henstridge  <james@daa.com.au>
12471         * Makefile.am (core-translation-report): dist scripts needed for
12472         this target, and change to $(srcdir) before running.
12474         * sheets/Makefile.am (EXTRA_DIST): actually dist the sheets.  DATA
12475         files aren't automatically included in the tarball by automake
12476         because they could be generated files.
12478         * objects/EML/Makefile.am (EXTRA_DIST): fix directory names.
12480         * doc/en/Makefile.am (install-data-hook): fix up where graphics
12481         are installed.
12483         * configure.in: up version number to 0.87
12485         * plug-ins/python/*.py: no longer necessary to explicitly set
12486         sys.argv, as python.c does it for us now (like it should).
12488         * plug-ins/python/gtkcons.py: fix up so it plays nicely as a dia
12489         python plugin.
12491         * plug-ins/python/python-startup.py: startup script that imports
12492         all modules in $(datadir)/dia/python and ~/.dia/python.
12494         * plug-ins/python/python.c (dia_plugin_init): change so that it
12495         only runs the $(datadir)/dia/python-startup.py script.  Make sure
12496         that sys.argv and __main__.__file__ are set when calling the
12497         startup script.
12499         * plug-ins/python/Makefile.am: update makefile.  Make it install
12500         gtkcons.py plugin.  I haven't set any other plugins to install, as
12501         they look like they are mainly for debugging purposes.
12503         * configure.in: add tests to detect if python is available, so we
12504         can build the python plugin.  Only run if --with-python passed to
12505         configure.
12507 2001-05-08  James Henstridge  <james@daa.com.au>
12509         * acinclude.m4: add macros for detecting python.
12511         * app/menus.c (dia_gnome_menu_get_widget): handle paths that point
12512         at GNOME_APP_UI_SUBTREE entries.
12513         (menus_add_path): function to add a menu item to the menubars.
12514         Uses a hash table to keep track of extra menu items it adds.  Also
12515         notifies the item factory about the entries so that accels can be
12516         saved for them.
12517         (menus_add_path): implement gtk only version.
12518         (menus_init): use menus_add_path() to add the menu.
12519         (plugin_callback): simplify.
12521 2001-05-08  Steffen Macke <sdteffen@yahoo.com>
12523         * app/menu.c: removed #ifndef GNOME; GNOME build was broken
12524         
12525 2001-05-08  Lars Clausen  <lrclause@cs.uiuc.edu>
12527         * plug-ins/xfig/xfig-export.c: 
12528         * plug-ins/xfig/xfig-common.c: 
12529         * plug-ins/xfig/xfig-import.c: 
12530         * plug-ins/xfig/xfig.c: 
12531         * plug-ins/xfig/xfig.h: 
12532         * app/Makefile.am: Added support for exporting to Fig format
12533         (except splits, which are less powerful in Fig).  Some refactoring
12534         along the way.
12536 2001-05-02  Hans Breuer  <hans@breuer.org>
12538         * plug-ins/python/debug_objects.py : added another
12539         test to get massive crashes from the Property API due
12540         to unintialized data.
12542         * app/menu.c : the callback_action wasn't incremented
12543         (should have checked my last optimization). Now more
12544         than one plug-in callback is supported again.
12546         * plug-ins/python/pydia-geometry.c : avoid crashes from
12547         glib, when trying to g_strdup_printf unintialized floats.
12549         * plug-ins/python/pydia-property.c : avoid crashes from
12550         because of string_data == NULL (PROP_TYPE_FILE, PROP_TYPE_STRING)
12552 2001-05-01  Hans Breuer  <hans@breuer.org>
12554         * objects/makefile.msc : added eml
12555         * objects/eml/instantiation.c : initialize 'inst' pointer
12556         before using, zero initialization for objects
12557         * objects/eml/interaction-ortho.c :
12558         * objects/eml/interaction.c : zero initialization for objects
12560         * app/menus.c : removed Gimp mru stuff which slipped in at
12561         2000-08-15, was never activated and will never be needed, 
12562         because of Steffens recent file list patch added at 2001-01-05.
12564         * objects/eml/*.c : some more zero initialization of objects
12565         to avoid infinite (uninitialized) bounding boxes
12567         Implemented a callback api which allows plug-ins to register
12568         menu call backs. Dia for Gnome should compile, but will need 
12569         some extra tweaking to make it work because I can't test it.
12571         * plug-ins/python/pydia-error.h :
12572         * plug-ins/python/pydia-render.c : moved Pxthon function return 
12573         value handling from pydia-render.c to pydia-error.h, to make it
12574         usable for
12575         * plug-ins/python/diamodule.c : implement callback function
12576         registration from and relaying to Python code
12578         * app/menus.c : register and use plug-in menu callbacks
12580         * lib/filter.[hc] : implement filter_register_callback() and
12581         filter_get_callbacks() for the above
12582         * lib/libdia.def : export them
12584         * plug-ins/python/debug_objects.py (new file): 
12585         sample using the above
12587 2001-04-27  Lars Clausen  <lrclause@cs.uiuc.edu>
12589         * plug-ins/shape/shape-export.c (new_shape_renderer): 
12590         The name of a shape is now taken from the dir, to conform with
12591         standard naming.
12593 2001-04-25  Lars Clausen  <lrclause@cs.uiuc.edu>
12595         * app/properties.c (properties_show): Added title containing
12596         object type, plus (hopefully) fix of the ghost properties dialog.
12598 2001-04-16  Cyrille Chepelov  <chepelov@calixo.net>
12600         * app/display.c: remove the display idle handler in case we
12601         destroy the ddisplay (caused crashes in ddd, probably random
12602         crashes elsewhere).
12604         * autogen.sh: 
12605         * configure.in:
12606         * Makefile.am: hack around gettext-0.10.36's new "features".
12607         
12608         * lib/properties.[ch]: added new function object_copy_props().
12609         Added new property type PROP_TYPE_ENDPOINTS
12611         * lib/connection.h: added support for load/saving through the
12612         properties interface.
12614         * lib/object.[ch]: object_load/save/copy_using_properties()
12615         support functions (code factorisations).
12616         
12617         * objects/GRAFCET/boolequation.c: check against null values in
12618         boolequation_set_value() and boolequation_destroy().
12620         * objects/GRAFCET/transition.c: Converted from lazyprops to
12621         standard properties. 31% less (x86) code !
12623         * objects/GRAFCET/condition.c: also converted from lazyprops to
12624         standard properties. Also killed lots of code.
12625         
12626 2001-04-13  Hans Breuer  <hans@breuer.org>
12628         * plug-ins/wmf/wmf.cpp : changed text conversion from
12629         g_utf8_utf16 to g_convert usage. The latter function is already
12630         available in tml's last "official" Gtk+ version (2000-12-26).
12631         This change allows to use recent Dia with either the official
12632         version or the latest cvs "gtk-1-3-win32-production"-branch.
12634 2001-04-14  Lars Clausen  <lrclause@cs.uiuc.edu>
12636         * Patch from David S. Thompson <dcthomp@mail.utexas.edu>:
12637         * app/disp_callbacks.c:
12638         - Allow submenus in DiaMenus.
12639         - Don't require DiaMenu.title to be non-null (so that
12640           submenus aren't required to have titles)
12642         * objects/FS/function.c:
12643         - object menu now has submenus, an almost complete list of
12644           standard-basis verbs, and a start on nouns.
12645         - box padding, dash length, and other visual attributes are
12646           scaled by the font size... eventually font height will be
12647           a function property.
12648         - draw functions with smaller font to make initial view hold
12649           a reasonable number of functions.
12650         
12651 2001-04-13  Cyrille Chepelov  <chepelov@calixo.net>
12653         * sheets/ER.sheet:
12654         * sheets/chronogram.sheet:
12655         * sheets/jigsaw.sheet:
12656         * sheets/sybase.sheet: Updated Dutch sheet translations from Dag
12657         Wieers <dag@wieers.com>
12659 2001-04-13  Hans Breuer  <hans@breuer.org>
12661         * app/app_procs.c (app_exit) : added g_return_if_fail (!app_exit_once)
12662         to ensure that all the deinitialization is only done once. Fixes
12663         recent app exit crash on win32
12665         * lib/dia_xml.c : provide isinf() replacement for msc which does only
12666         have _finite()
12668         * lib/libdia.def : updated
12670         * objects/makefile.msc : added wanlink.c 
12672         * objects/network/wanlink.c : added M_PI_2 definition for poor
12673         platforms which don't have one
12675         * objects/standard/arc.c :
12676         * objects/standard/zigzagline. c: part of ConectionBBExtras wasn't
12677         initialized which led to rather huge bounding boxes (try Ctrl^A on
12678         diagrams with Arcs or ZigZagLines).
12679         * objects/*/*.c : to avoid further bugs like the above changed all
12680         object initializations to g_malloc0 or g_new0
12683 2001-04-09  Cyrille Chepelov  <chepelov@calixo.net>
12685         * lib/paper.[ch]: get rid of "no previous prototype fo `foo'" by
12686         doing a s/T foo()/T foo(void)/ for all possible values of T and foo.
12688         * objects/UML/class.c: 
12689         * objects/UML/usecase.c:
12690         * objects/UML/large_package.c:
12691         * objects/UML/message.c:
12692         * objects/UML/object.c:
12693         * objects/UML/lifeline.c:
12694         * objects/FS/flow.c:
12695         * objects/FS/flow-ortho.c:
12696         * objects/FS/function.c:
12697         * objects/custom/custom_object.c:
12698         * objects/GRAFCET/vergent.c:
12699         * objects/chronogram/chronoref.c:
12700         * objects/SADT/box.c:
12701         * objects/SADT/annotation.c:
12702         * plug-ins/dxf/dxf-import.c:
12703         * plug-ins/xfig/xfig-import.c:
12704         * plug-ins/wpg/wpg.c:
12705         * app/command.c:
12706         * app/app_procs.c:
12707         * app/display.c: /* certainly more WIP than dead code there */
12708         Unused variables, unused static function definitions, forgotten or
12709         incomplete prototypes added or fixed, lack of const or unwanted const,
12710         etc. (mostly clean-ups of leftovers of the pre-properties era).
12711         Non-obvious cases bracketed by #define THIS_IS_PROBABLY_DEAD_CODE,
12712         please check these.
12714         * app/lineprops_area.c: More of the same. Missing prototypes
12715         added, and functions unused outside made static.
12717         * app/recent_files.c:
12718         * app/properties.c:
12719         * app/defaults.c: some variables are used only when doing a GNOME
12720         build.
12721         
12722         * app/magnify.c: missing #include <stdlib.h>.
12724         * app/paginate_gnomeprint.c: Unused variable; missing "message.h".
12726         These are a lot of clean-ups (by the way, this compiles and runs
12727         cleanly with "gcc-3.0 -O2 -Wall --std=gnu99" too !); please grep
12728         for DEAD_CODE, and if it's yours, judge it.
12729         
12730 2001-04-07  Cyrille Chepelov  <chepelov@calixo.net>
12732         * plug-ins/dxf-import.c: some progress with the arcs; still some
12733         clean-ups to do and line width scaling issues to figure out.
12735         * objects/standard/arc.c: start_point and end_point properties
12736         (duplicated from standard/line.c)
12738         * plug-ins/xfig/xfig-import.c: zip ! zap ! no more dead DXF import
12739         code there.
12740         
12741 2001-04-06  Cyrille Chepelov  <chepelov@calixo.net>
12743         * plug-ins/dxf-import.c: setlocale-related clean-ups and fixes ;
12744         preliminary support for arcs (doesn't work). Circles and ellipses are
12745         now transparent. Coordinate and width scaling are now a common 
12746         static constant (probably before morphing into a preference).
12747         
12748         * sheet/checktrans.py: improved error reporting. Made checktrans
12749         count lack of <name xml:lang="code"> as a lack of translation for
12750         language "code" (no, it's not a plot to bring down other
12751         language's scores !)
12752         
12753         * sheet/*.sheet: Ensured all sheets have an encoding="iso-8859-1"
12754         in the header, and have <name xml:lang="fr"> components.
12755         
12756 2001-04-05  Cyrille Chepelov  <chepelov@calixo.net>
12758         * objects/custom/custom_object.c: temporary hack to fix the shape
12759         bounding box reported by Ben A. Hetland. Proper fix isn't .87
12760         material, see bugzilla #52912.
12762 2001-04-05  Lars Clausen  <lrclause@cs.uiuc.edu>
12764         * objects/standard/image.c (get_directory): Now uses
12765         G_SEPARATOR_CHAR_S instead of "/"
12767         * sheets/network.sheet: 
12768         * sheets/Logic.sheet:
12769         * sheets/Flowchart.sheet:
12770         * sheets/Electric.sheet:
12771         * sheets/Circuit.sheet:
12772         * sheets/ER.sheet:
12773         * sheets/Pneumatic.sheet:
12774         * sheets/SDL.sheet:
12775         * sheets/UML.sheet:
12776         * sheets/GRAFCET.sheet:
12777         * sheets/MSE.sheet:
12778         * sheets/chronogram.sheet:
12779         * sheets/civil.sheet:
12780         * sheets/network.sheet:
12781         Danish translations.
12782         
12783         * objects/standard/image.c (get_directory): Changed get_directory
12784         to use g_dirname to find the directory part.
12786 2001-04-05  Cyrille Chepelov  <chepelov@calixo.net>
12788         * sheets/ER.sheet:
12789         * sheets/Electric.sheet:
12790         * sheets/Flowchart.sheet:
12791         * sheets/Logic.sheet:
12792         * sheets/network.sheet: More Dutch translations from Dag Wieers.
12794 2001-04-04  Cyrille Chepelov  <chepelov@calixo.net>
12796         * sheets/checktrans.py: now emits a warning when two descriptions
12797         for a single language code are found.
12799         * Makefile.am:
12800         * sheets/Makefile.am: -translation-reports now also depend on their
12801         checktrans.py
12802         
12803 2001-04-04  Cyrille Chepelov  <chepelov@calixo.net>
12805         * sheets/Circuit.sheet:
12806         * sheets/Contact.sheet:
12807         * sheets/Logic.sheet:
12808         * sheets/chronogram.sheet:
12809         * sheets/sybase.sheet: 
12810         Dutch translations from Dag Wieers <dag@wieers.com>
12812 2001-04-04  Cyrille Chepelov  <chepelov@calixo.net>
12814         * po-checktrans.py: Now shows the detailed counts alongside the
12815         percentage of translations.
12816         
12817 2001-04-03  Cyrille Chepelov  <chepelov@calixo.net>
12819         * Makefile.am:
12820         * po-checktrans (NEW):
12821         * po-checktrans.py (NEW): builds core-translation-report:
12822         percentages of core (gettext) translations done [Not placed into
12823         po/ where that should belong, because of integration fear^Wissues
12824         with gettextize]. 
12826         TO THE KIND ATTENTION OF PACKAGERS: core-translation-report and 
12827         sheets/sheet-translation-report probably ought to be copied on the 
12828         user's /usr/share/doc/dia (or equivalent) directory.
12830         * sheets/Makefile.am: sheet-translation-report now a simple
12831         EXTRA_DIST; make install won't install it by default. 
12832         
12833 2001-04-03  Cyrille Chepelov  <chepelov@calixo.net>
12835         * app/preferences.c: changed the default grid colour to something
12836         less intrusive. 
12838         * shapes/SDL/*.shape:
12839         * sheets/SDL.sheet: renamed all SDL shapes to conform to the
12840         "$LIBRARY - $NAME" convention. THIS REQUIRES FIXING THE EXISTING
12841         DIA FILES (well, for files using SDL), see the mailing list
12842         archive "SDL (ab)using the global shape namespace" for a script to
12843         do this conversion.
12845         * sheets/SDL.sheet: translated into French
12846         * sheets/network.sheet: fixed XML typos. Yay ! 100% :-)
12847         
12848 2001-04-02  Cyrille Chepelov  <chepelov@calixo.net>
12850         * lib/dia_xml.c: made data_point() more paranoid
12852         * sheets/Makefile.am:
12853         * sheets/checktrans (NEW):
12854         * sheets/checktrans.py: Made checktrans handle more gracefully the
12855         absence of python and python-xml packages, and made the error
12856         message more helpful.
12857         
12858 2001-04-01  Lars Clausen  <lrclause@cs.uiuc.edu>
12860         * lib/render_object.c (new_render_object): Made initial handles
12861         behave like on most other objects.
12863         * app/load_save.c (read_objects): Fixed premature free'ing ofr
12864         typestr causing garbage.
12866 2001-04-01  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
12868         * objects/FS/flow-ortho.c: Fixed a crashbug causes by not
12869         accouting for handle ordering through copy and save. (#51479)
12871 2001-03-31  Cyrille Chepelov  <chepelov@calixo.net>
12873         * sheets/Circuit.sheet: Norwegian translation mistagged to German.
12875 2001-03-31  Steffen Macke  <sdteffen@yahoo.com>
12877         * sheets/Circuit.sheet
12878         * sheets/UML.sheet
12879         * sheets/network.sheet: Updated German translations
12880         
12881 2001-03-30  Cyrille Chepelov  <chepelov@calixo.net>
12882         * lib/arrows.[ch]:
12883         * lib/widgets.c:
12884         * app/lineprops_area.c: The return of the revenge of the arrow
12885         heads. Now all types covered by ISO 10303-201 should be covered.
12886         
12887 2001-03-30  Cyrille Chepelov  <chepelov@calixo.net>
12889         * sheets/Flowchart.sheet: translations in probably Hungarian were
12890         a victim of cut-n-paste from the German one. Fixed (hopefully).
12891         * sheet/UML.sheet: translation in probably Norwegian was a victim
12892         of cut-n-paste from the French one. Fixed (hopefully).
12893         * sheets/Logic.sheet: French translation not tagged with
12894         xml:lang="fr".
12895         
12896         * sheets/checktrans.py:
12897         * sheets/Makefile.am: new file, sheet-translation-report, to be
12898         installed along the sheets, show how much of them has been
12899         translated into which language (I wish the result was prettier...)
12901         * po/README: most translators don't read this file, but anyway...
12903         * sheets/.cvsignore:
12904         * objects/network/.cvsignore: the usual negotiation with CVS.
12906 2001-03-30  Cyrille Chepelov  <chepelov@calixo.net>
12908         * sheets/*.sheet: French translations
12910 2001-03-28  Cyrille Chepelov  <chepelov@calixo.net>
12912         Added patch #52363 from Hubert Figuiere <hfiguiere@teaser.fr>:
12914         ** objects/network/network.c:
12915         ** objects/network/wanlink.c:
12916         ** objects/network/pixmaps/wanlink.c:
12917         ** sheets/network.sheet:
12918         ** objects/network/Makefile.am: a better object to use instead of
12919         the older WAN Connection.
12920         
12921         ** lib/geometry.[ch]: rotation matrix functions in geometry.c (derived from gimp)
12923         ** objects/GRAFCET/vector.c: renamed Vector to GRAFCETVector to avoid a
12924         name clash 
12926         * objects/GRAFCET/vector.c: Re-renamed GRAFCETVector into
12927         Arc; kept the C file name (because CVS wouldn't like it), and
12928         still registering the older object name (but advertising the newer
12929         one in sheets/GRAFCET.sheet).   
12931 2001-03-24  Hans Breuer  <hans@breuer.org>
12933         * app/dia.def : some plug-ins (currently only python, xfig) are using 
12934         functions from the dia executable. To get them working these functions 
12935         need to be explicit exported on win32. IMO the much cleaner way would
12936         be to move these functions to libdia, but that would require some
12937         long term restructuring ...
12939         * lib/libdia.def : updated
12941         * plug-ins/makefile.msc : build xfig plug-in
12943 2001-03-24  Hans Breuer  <hans@breuer.org>
12945         * app/diagram.c : g_strdup (dia->filename) because it will be
12946         g_free ()d
12948         * app/display.c : set ddisp->renderer to NULL after destruction.
12949         This may solve or help to identify erroneous access to it after
12950         destruction.
12952         * plug-ins/wmf/wmf.cpp : convert string from utf8 to wchar to
12953         get 'umlauts' working
12955 2001-03-22  Cyrille Chepelov  <chepelov@calixo.net>
12957         * object/chronogram/chronoline_event.c: stupid bug ; rises and falls
12958         were reversed... (look for the patch, and drink a beer to my
12959         stupidity)      
12960         
12961 2001-03-23  Hans Breuer  <hans@breuer.org>
12963         * app/app_procs.c : don't g_error () if the config directory
12964         can't be created (at least not on windoze) because it's quite
12965         common that the user don't read or understand the FAQ ...
12967         * app/cursor.c : use ddisplay_active () instead of active_display
12968         from app/display.c
12970         * app/display.[hc] : made active_display var static and provide
12971         an accessor funtion ddisplay_active_diagram ()
12973         * app/dia-props.c : don't store the active_diagram, but ask
12974         for it everytime it needed.
12976         * lib/properties.h : #include "intl.h"
12978         * lib/makefile.msc : need to take care of inclusion order to
12979         avoid clashes with gtk+2.0's gdk-pixbuf
12981         * objects/makefile.msc : added uml/stereotype.c to build
12983 2001-03-23  Lars Clausen  <lrclause@cs.uiuc.edu>
12985         * **/*.c: Added config.h to the remaining .c files, and changed
12986         all to be <config.h>.
12988 2001-03-22  Steffen Macke <sdteffen@yahoo.com>
12990         * lib/arrows.c
12991         * lib/arrows.h
12992         * lib/widgets.c
12993         * app/lineprops_area.c: added new arrow types with double
12994         heads
12995         
12996 2001-03-20  Steffen Macke <sdteffen@yahoo.com>
12998         * shapes/Civil/civil_gas_bottle.xpm
12999         * shapes/Civil/civil_gas_bottle.shape
13000         * sheets/civil.sheet
13001         * shapes/Civil/Makefile.am: Added gas bottle shape by Arne
13002         Battermann
13003         
13004 2001-03-20  Lars Clausen  <lrclause@cs.uiuc.edu>
13006         * objects/custom/shape_info.c (load_shape_info): 
13007         * objects/custom/shape_info.h: 
13008         * objects/custom/custom_object.c (custom_update_data): 
13009         Better support for text outside the box -- new attributes 'resize'
13010         and 'align' for text entity.  Align not fully supported yet.
13012         * lib/text.c (text_calc_boundingbox): Adding BB for cursor width.
13014 2001-03-20  James Henstridge  <james@daa.com.au>
13016         * app/interface.c (display_data_received_callback): comment out
13017         status message.
13019 2001-03-19  James Henstridge  <james@daa.com.au>
13021         * app/GNOME_Dia.oaf: rename from GNOME_Dia.oafinfo.
13023         * objects/UML/realizes.c: similar here.
13025         * objects/UML/implements.c: similar here.
13027         * objects/UML/component.c: similar here.
13029         * objects/UML/generalization.c: same here.
13031         * objects/UML/dependency.c: allow NULL for ->name and
13032         ->stereotype.  This fixes a number of problems in loading saved
13033         files.
13035         * lib/properties.c: various changes so that NULL string properties
13036         should work.
13038         * objects/standard/line.c (line_update_data):
13039         line->extra.start_long and line->extra.end_long were not being
13040         initialised.  This fixes potential problems with the bounding box
13041         of "Standard - Line" objects.
13043 2001-03-19  Hans Breuer  <hans@breuer.org>
13045         * app/commands.c : added win32 specific code to display a html
13046         file. #include "text.h" for text_delete_all prototype.
13048         * app/dia.ico :
13049         * app/dia.rc : (new) to give Dia win32 an icon
13051         * app/win32print.[ch] : new files to support direct postscript
13052         file printing on win32. Beware: it *requires* a ps-printer!
13054         * app/paginate_psprint.c : disable the signal code for win32 build
13055         and added small specific changes to support win32print.
13057         * app/makefile.msc : added win32print and linking shell32.lib
13059         * lib/libdia.def : updated
13061 2001-03-18  Kevin Breit <battery841@mediaone.net>
13063         * doc/en/dia-C.omf: Added file.  Dia should now list in the Nautilus
13064           Help tabs.
13066 2001-03-17  James Henstridge  <james@daa.com.au>
13068         * app/paginate_psprint.c (diagram_print_ps): add code that traps
13069         SIGPIPEs during printing.  This gets rid of a number of crashes
13070         caused by printing (eg. typing an incorrect print command).
13072         * dia.spec (%install): gzip the manpage.
13074         * lib/beziershape.c (beziershape_save): fix off by one error in
13075         beziershape save code, which was adding an extra segment to the
13076         object on save.
13078         * app/menus.c: add a separator in the gnome version of the help
13079         menu.
13081         * app/app_procs.c (app_init): add a --nosplash argument which
13082         disables the splash screen.
13084         * app/dia_embedd.c (main): don't leave the splash screen open for
13085         embeddable component.
13087         * app/splash.c (app_splash_init): the gtk_widget_show_now() call
13088         didn't seem to be showing the splash screen like expected, so I
13089         have replaced it with some code that calls gtk_main() until the
13090         first exposure of the window.
13092 2001-03-16  James Henstridge  <james@daa.com.au>
13094         * app/Makefile.am (EXTRA_DIST): add extra pixmaps.
13096         * objects/UML/Makefile.am (libuml_objects_la_SOURCES): add
13097         stereotype.h
13099         * lib/Makefile.am (libdia_a_SOURCES): add diavar.h here.
13101         * app/Makefile.am (dia_core_files): remove splash.h from file
13102         list, as it doesn't exist.
13104         * doc/en/Makefile.am (uninstall-local): remove the docdir on
13105         uninstall.
13107         * doc/Makefile.am (uninstall-local): target to remove the C
13108         symlink.
13110         * dia.spec (%files): include the documentation in the package.
13112         * app/menus.c (toolbox_menu_items): add menu item for manual,
13113         which calls help_manual_callback.
13115         * app/commands.c (help_manual_callback): find help file and load
13116         netscape to view it.
13118         * app/commands.h: add prototype for help_manual_callback()
13120         * doc/Makefile.am (helpdir): similar here.
13122         * doc/en/Makefile.am (helpdir): make the helpdir
13123         $(pkgdatadir)/help/en in the non gnome case.
13125         * configure.in (HAVE_GNOME): add conditional.
13127         * doc/en/Makefile.am: handle the graphics in a more general way,
13128         so it is easier for Kevin to add them to the build (just add them
13129         to the GRAPHICS var).
13131         * app/Makefile.am (embed_extra_print_files): make the case of
13132         building without gnome-print support but with bonobo support work.
13133         dia-embedd needs to be include the gnome-print
13135 2001-03-09  Cyrille Chepelov  <chepelov@calixo.net>
13137         * samples/Makefile.am: included all samples in the distribution....
13138         
13139 2001-03-09  Cyrille Chepelov  <chepelov@calixo.net>
13141         * configure.in: removed premature test for DPS. Added -*- m4 -*-
13142         at the beginning. Made HAVE_UNICODE non-default. po/es_ES.po has
13143         vanished, removed it from ALL_LINGUAS.
13145         * lib/charconv.[ch] (NEW): a very small wrapper around
13146         unicode_iconv to convert strings between utf8 and local charset
13147         (actually, ISO-8859-1, though one can do
13148         CFLAGS="-DEFAULT_8BIT_CHARSET=\"ISO-8859-2\"" and the like).
13150         * lib/ps-utf8.[ch] (NEW): A PostScript Unicoder ; a smallish
13151         library to help build Postscript streams which use as many custom
13152         font encodings as necessary to correctly represent all characters
13153         used (testing from users with non-latin1 and/or more than 256
13154         characters in routine use *very* welcome).
13156         * app/Makefile.am, lib/Makefile.am: integrated these into the
13157         build process.
13159         * shapes/Logic/.cvsignore (NEW): .cvsignore
13160         
13161         * app/render_eps.h: forwarded some changes Lars forgot to include.
13162         * app/render_eps.c: turned off ASCII85 and FILTERS, as this
13163         doesn't yet build.
13165 2001-03-08  Kevin Breit <battery841@mediaone.net>
13167         * doc/en/home_network.png: Added file.
13168         * doc/en/line_props.png: Added file.
13169         * doc/en/usage-objects.sgml: Added two graphics to file.
13170         * doc/en/usage-quickstart.sgml: Added one graphic to file.
13172 2001-03-06  Kjartan Maraas  <kmaraas@gnome.org>
13174         * app/grid.h: Place comment around text after #endif.
13175         * lib/bezier_conn.c: #include <string.h>.
13176         * lib/beziershape.c: #include <string.h>.
13177         * lib/connpoint_line.h: Comment after #endif.
13178         * lib/dia_dirs.c: #include <string.h>.
13179         * lib/element.c: Same.
13180         * lib/lazyprops.c: #include <config.h> and "intl.h".
13181         * lib/lazyprops.h: Comment out text after #endif.
13182         * lib/neworth_conn.c: #include <string.h>
13183         * lib/orth_conn.c: Same here.
13184         * lib/poly_conn.c: Here too.
13185         * lib/polyshape.c: And here.
13186         * lib/properties.c: Remove #include "intl.h" from here and add
13187         an array of static strings to work around bug in gettext that
13188         makes it miss strings in a #define body.
13189         * objects/GRAFCET/action_text_draw.h: Comment out text after #endif.
13190         * objects/GRAFCET/boolequation.h: Same here.
13191         * objects/chronogram/chronoline_event.h: Add prototype for
13192         destroy_cle().
13193         
13194 2001-03-05  Lars Clausen  <Lars R. Clausen <lrclause@cs.uiuc.edu>
13196         * objects/FS/function.c: 
13197         * objects/FS/flow.c: 
13198         * objects/FS/flow-ortho.c: 
13199         Updated to use properties.
13201 2001-03-03  James Henstridge  <james@daa.com.au>
13203         * lib/lazyprops.c (__propdlg_build_enum): translate the radio
13204         button labels when creating them.
13206 2001-02-28  Lars Clausen  <Lars R. Clausen <lrclause@cs.uiuc.edu>
13208         * objects/UML/actor.c
13209         * objects/UML/realizes.c 
13210         * objects/UML/implements.c 
13211         * objects/UML/generalization.c 
13212         * objects/UML/dependency.c 
13213         * objects/UML/constraint.c
13214         Updated to use properties.
13215         
13216         * objects/UML/stereotype.c 
13217         * objects/UML/stereotype.h
13218         Generalized to any kind of bracketting.
13219         
13220 2001-02-28  James Henstridge  <james@daa.com.au>
13222         * app/menus.c: add help entry to the help menu.  Need to get this
13223         working for the non GNOME case as well (maybe put help under
13224         $(datadir)/dia/help for non GNOME?)
13226         * doc/en/topic.dat: add a topic.dat file for GNOME menus.
13228         * doc/en/dia-manual.sgml (legalnotice): add an id attribute to
13229         this element so that we get a meaningful filename in the html
13230         translation.
13232         * doc/Makefile.am, doc/en/Makefile.am: new makefiles to handle the
13233         documentation.
13235         * configure.in (DB2HTML): add a check for the db2html program, and
13236         set an automake conditional if it is found.
13238         * Makefile.am: remove EXTRA_DIST rules that cover doc/ directory,
13239         and descend into doc/ directory while building.
13241         * configure.in (AC_OUTPUT): add doc/ makefiles to output list, now
13242         we need more complex rules for building the docs.
13244 2001-02-25  Hans Breuer  <hans@breuer.org>
13246         * config.h.win32 : some cleanup
13248         * app/prefererences.c : g_scanner_(freeze|thaw)_symbol_table
13249         are deprecated since glib-1.3.2. Sorry needing to use them
13250         contionally, but there is no glib-1.2 for win32
13252         * app/recent_files.c : use g_strescape (params) conditionally
13254         * lib/connection.c : include string.h for memcpy
13256         * lib/geometry.h : added some stuff for compatibility with
13257         msvc, which previously came from included config.h
13259         * lib/libdia.def : updated
13261         * objects/makefile.msc : updated
13263         * objects/GRAFCET/action.c(490) : fixed warning C4700: local variable 
13264         'extra' used without having been initialized
13266         * objects/network/bus.c(658) : initialize 'extra'
13268         * plug-ins/makefile.msc : updated
13270         * plug-ins/cgm/cgm.c :
13271         * plug-ins/pstricks/render_pstricks.c : 
13272         g_free() memory allocated by dia_image_rgb_data(). Plugs possibly 
13273         huge memory leaks.
13275         * plug-ins/python/python.c : use HAVE_DIRENT_H
13277 2001-02-23  Lars Clausen  <Lars R. Clausen <lrclause@cs.uiuc.edu>
13279         * lib/connection.c (connection_update_boundingbox): 
13280         Made the BB shrink on right and lower sides, too.
13282 2001-02-23  Kjartan Maraas  <kmaraas@gnome.org>
13284         * */*.c: #incude <config.h> at the top.
13285         * */*.h: Remove include of "config.h" since it should only
13286         be included in .c files and at the very top for things to
13287         work.
13288         * sheets/*.sheet: Updated Norwegian translations.
13289         
13290 2001-02-22  Lars Clausen  <Lars R. Clausen <lrclause@cs.uiuc.edu>
13292         * objects/UML/small_package.c: 
13293         * objects/UML/class.c: 
13294         * objects/UML/node.c: 
13295         * objects/UML/usecase.c:
13296         * objects/UML/lifeline.c: 
13297         * objects/UML/message.c:
13298         Various cleanup of properties in particular.  Now much more use of
13299         standard properties.
13301         * lib/diagramdata.c (layer_render): Visualization of bounding
13302         boxes, for debugging purpoises.
13304 2001-02-22  Cyrille Chepelov  <chepelov@calixo.net>
13306         * lib/geometry.h:
13307         * lib/connection.[ch]:
13308         * lib/poly_conn.[ch]:
13309         * lib/polyshape.[ch]:
13310         * lib/bezier_conn.[ch]:
13311         * lib/beziershape.[ch]:
13312         * lib/orth_conn.[ch]:
13313         * lib/neworth_conn.[ch]:
13314         * lib/element.[ch]: Changed a bit the _update_boundingbox()
13315         interface. Now the parent elements have an extra_spacing
13316         structure, which child objects just need to fill, to take care of
13317         most arrow & line width extra space needs.
13319         * objects/**/*.c: updated all objects to the new interface.
13320         While at it, killed all instances of (Object *) downcasts (phew !)
13322         * objects/GRAFCET/condition.c: removed the arrowhead, which IEC848
13323         doesn't speak about.
13324         
13325 2001-02-21  Lars Clausen  <Lars R. Clausen <lrclause@cs.uiuc.edu>
13327         * sheets/Logic.sheet: New sheet for Logic symbols.
13329 2001-02-21  James Henstridge  <james@daa.com.au>
13331         * app/menus.c (dia_gnome_menu_get_widget): new function to find a
13332         widget by its path name.  Walks the GnomeUIInfo heirachy rather
13333         than widget tree, compares untranslated label names and ignores
13334         underscores in the labels.
13335         (menus_get_item_from_path): use dia_gnome_menu_get_widget so that
13336         lookups are not dependent on the current locale, as with
13337         gnome_app_find_menu_pos.
13339         * acconfig.h: guard against multiple inclusion of config.h.
13341         * app/select.c (select_style_callback): simply set the selection
13342         style to the value of action.
13344         * app/menus.c (menus_init): simplify the item factory based menu
13345         code a bit.  It looks like it was using some code cut and pasted
13346         from the gimp, which looked a bit unnecessary.  Things work fine
13347         without it.
13348         (selectmenu): set the action to the type of selection mode
13349         requested.
13350         (display_menu_items): use the symbolic enumeration values for the
13351         action field.
13353         * app/plugin-manager.c: 
13354         * app/plugin-manager.h: 
13355         * app/filedlg.c:
13356         * app/filedlg.h: 
13357         * app/select.c:
13358         * app/select.h: change prototypes.
13360         * app/commands.c: update all callback prototypes, and get rid of
13361         some #ifdef GNOME's.
13363         * app/commands.h: change function prototypes.
13365         * app/dia_embedd.c (save_fn):
13366         s/ex_Bonobo_IOError/ex_BonoboStorage_IOError/
13368         * app/menus.c (menus_init): for gnome menus, use
13369         gnome_app_fill_menu_custom and pass in a GnomeUIBuilderData
13370         structure that proxies the callbacks to have the same signature as
13371         GtkItemFactory type 1 callbacks.
13372         (menus_init): for GTK menus, change from callback type 2 to type
13373         1.
13374         (display_menu_items): add back tearoffs.  I don't know who removed
13375         these for the gtk menu case.
13377 2001-02-20  Kevin Breit <battery841@mediaone.net>
13379         * doc/en/usage-objects-special.sgml: Fixed a few of the special
13380         object descriptions.  More to come in the next few days.
13382 2001-02-20  Lars Clausen  <lrclause@cs.uiuc.edu>
13384         * app/render_eps.c: Fixed for internationalized floating point
13385         output. 
13387         * objects/UML/note.c: Fixed properties -- was missing
13388         Get/ApplyPropertiesFunc.  Also improved update to recalculate text
13389         position. 
13391 2001-02-19  Lars Clausen  <lrclause@cs.uiuc.edu>
13393         * plug-ins/xfig/xfig-import.c: 
13394         File added importing xfig files.  Still very rough, but good
13395         enough to let others hack on it.
13397 2001-02-07  Cyrille Chepelov  <chepelov@calixo.net>
13399         * app/interface.c:
13400         * app/linewidth_area.c:
13401         * lib/lazyprops.c:
13402         * lib/properties.c:
13403         * lib/widgets.c:
13404         * objects/ER/attribute.c:
13405         * objects/ER/entity.c:
13406         * objects/ER/relationship.c:
13407         * objects/custom/custom_object.c:
13408         * objects/flowchart/box.c:
13409         * objects/flowchart/diamond.c:
13410         * objects/flowchart/ellipse.c:
13411         * objects/flowchart/parallelogram.c:
13412         * objects/standard/box.c:
13413         * objects/standard/textobj.c: per Vlad Harchev's request, made
13414         page sizes of gtk_adjustments different than their step sizes.
13415         When sensible values of page size weren't found (overwhelming
13416         majority of cases), page sizes were set to 10.0 * respective step
13417         size.   
13419 2001-02-07  Lars Clausen  <lrclause@cs.uiuc.edu>
13421         * objects/network/hub.c: 
13422         Patch from Hubert Figuiere applied, adding connection points.
13424 2001-02-02  James Henstridge  <james@daa.com.au>
13426         * app/display.c (new_display): set update id to 0 here.
13427         (ddisplay_update_handler): rename from ddisplay_flush, and set
13428         update_id to 0 at end of processing.
13429         (ddisplay_flush): new implementation that simply sets an idle
13430         handler to perform the actual drawing.
13432         * app/display.h: add structure member to hold the redraw idle
13433         handler id.
13435 2001-01-31  Lars Clausen  <lrclause@cs.uiuc.edu>
13437         * objects/standard/ellipse.c (ellipse_copy): 
13438         * objects/standard/zigzagline.c (zigzagline_copy): 
13439         Fix of copying provided by Martin Hawlisch.
13441 2001-01-23  Kevin Breit <battery841@mediaone.net>
13443         * doc/en/graphics/: added directory
13445         * doc/en/graphics/greendots.png: added file
13447         * doc/en/*sgml: made minor and some major changes to prepare for 1.4
13448         release.
13450 2001-01-23  Kevin Breit <battery841@mediaone.net>
13452         * doc/en/*sgml: made some grammar changes and fixed a few markup bugs.
13453                         thanks to John Fleck!
13455 2001-01-21  Kevin Breit <battery841@mediaone.net>
13457         * doc/en/*sgml: made just minor changes to a few lines; nothing major.
13459 2001-01-12  Michael Meeks  <michael@helixcode.com>
13461         * app/dia_embedd.c (init_server_factory): do a bonobo_activate
13462         so our POA gets setup properly.
13464         * app/paginate_gnomeprint.c (paginate_gnomeprint): g_free
13465         things we g_malloc.
13467         * configure.in: Use bonobox_print.
13469         * app/dia_embedd.c (embeddable_factory): add print interface.
13470         (object_print): impl.
13472 2001-01-11  Michael Meeks  <michael@helixcode.com>
13474         * app/dia_embedd.c (embeddable_factory): aggregate PersistFile.
13475         (load_fn, save_fn): impl.
13476         (view_factory): hide modified status bar, & use activate fn.
13477         (refresh_view): force redraws of the views.
13478         (view_show_hide): split from
13479         (dia_view_activate): here.
13481         * app/diagram.c (diagram_load_into): split from diagram_load.
13482         (new_diagram): simplify bu splittin stuff into
13483         (diagram_init): here.
13485 2001-01-10  Steffen Macke <sdteffen@yahoo.com>
13487         * shapes/jigsaw/*.shape: replaced #000000 with foreground
13488         and #ffffff with background
13489         
13490 2001-01-08  Steffen Macke <sdteffen@yahoo.com>
13492         *configure.in: GTK+-build was broken due to missing
13493         have_bonobo=no
13494         
13495 2001-01-06  Michael Meeks  <michael@helixcode.com>
13497         * app/dia_embedd.c (main): add running context support.
13498         (dia_embeddable_destroy): remove old running object counting.
13499         (embeddable_factory): ditto.
13500         (view_factory): comment out menu path hiding.
13502         * lib/sheet.c (load_register_sheet): use free to free
13503         stuff from libxml not g_free.
13505         * acconfig.h: kill cover for USE_BONOBOX and USE_OAF
13507         * configure.in: remove USE_OAF checks, check for a precice
13508         Bonobo version >= 0.31, revamp bits.
13510         * app/dia_embedd.c (init_server_factory): upd.
13511         (init_dia_factory): remove OAF conditionals, everything uses
13512         oaf now.
13514         * app/GNOME_Dia.oafinfo: rename OAFIIDs
13516         * app/Makefile.am: remove ancient gnorba code.
13517         rename dia.oafinfo to GNOME_Dia.oafinfo
13519 2001-01-07  Hans Breuer <Hans@Breuer.Org>
13521         * config.h.win32
13522         * install.win32
13523         * readme.win32 : some more files required or useful to build 
13524         Dia on win32
13526         * plug-ins/wmf/wmf.cpp : fixed open issues like fill_arc and
13527         fill_bezier implementation, boundary drawing in fill mode, etc.
13528         Next one complaining gets the source, uncommented ...
13530         * shapes/network/router-symbol.xpm 
13531         * shapes/network/switch-atm-symbol.xpm 
13532         * shapes/network/switch-symbol.xpm : removed "-*- picture -*- "
13533         from /* XPM */ header, cause it stopped Dia/gdk_pixbuf to detect 
13534         the files as XPMs. Maybe the X versions of these functions are more
13535         tolerant ...
13537 2001-01-06  Steffen Macke <sdteffen@yahoo.com>
13539         * plug-ins/python/Makefile.am: added libart path
13541         * plug-ins/python/python.c: added dirent.h
13543         * configure.in: added es_ES and pt_BR to ALL_LINGUAS
13544         
13545 2001-01-06  Hans Breuer <Hans@Breuer.Org>
13547         * objects/uml/actor.c
13548         * objects/uml/branch.c
13549         * objects/uml/class.c
13550         * objects/uml/classicon.c
13551         * objects/uml/component.c
13552         * objects/uml/large_package.c
13553         * objects/uml/node.c
13554         * objects/uml/note.c
13555         * objects/uml/object.c
13556         * objects/uml/small_package.c
13557         * objects/uml/state.c
13558         * objects/uml/usecase.c : started to implement the generic property
13559         interface for the uml objects. Would appreciate some help on how
13560         to implement properties which are list of properties themselves,
13561         e.g. member functions and their parameters of UMLClass.
13563 2001-01-06  Hans Breuer <Hans@Breuer.Org>
13565         * plug-ins/python/diamodule.c : finally ported to win32.
13566         Added new objects and implemented register_export function.
13568         * plug-ins/python/pydia-object.h
13569         * plug-ins/python/pydia-display.c
13570         * plug-ins/python/pydia-handle.c
13571         PyObject_HEAD_INIT needs some tweakink on win32. Done in
13572         pydia-object.h; others files simply using it.
13574         * plug-ins/python/pydia-layer.c : reflect 
13575         layer_find_closest_connection(_)point renaming
13577         * plug-ins/python/pydia-object.c : add property properties.
13578         Also change bounding_box to DiaRectangle.
13580         * plug-ins/python/python.c : extended error reporting; use
13581         all *.py files from Dia's plug-in dir instead of hardcoded
13582         test.py. This sollution should be fine with Win32, but on
13583         Unix it may need some tweaking (dunno) ...
13585         * plug-ins/python/export-object.py
13586         * plug-ins/python/export-render.py : test and documentation 
13587         implementations for export filter implementations in Python
13589         * plug-ins/python/pydia-color.[hc]
13590         * plug-ins/python/pydia-diagramdata.[hc]
13591         * plug-ins/python/pydia-error.[hc]
13592         * plug-ins/python/pydia-export.[hc]
13593         * plug-ins/python/pydia-font.[hc]
13594         * plug-ins/python/pydia-geometry.[hc]
13595         * plug-ins/python/pydia-image.[hc]
13596         * plug-ins/python/pydia-properties.[hc]
13597         * plug-ins/python/pydia-property.c
13598         * plug-ins/python/pydia-render.c : new objects in new files 
13600         * plug-ins/python/makefile.am : added new files but can't test it
13602         * plug-ins/python/pydia.def
13603         * plug-ins/python/makefile.msc : for win32 build
13605         * plug-ins/cgm/cgm.c
13606         * plug-ins/dxf/dxf-import.c
13607         * plug-ins/dxf/dxf-export.c
13608         * plug-ins/hpgl/hpgl.c : reflect export API change
13610         * plug-ins/shape/shape-export.c : reflect export API change
13611         and check for libart (better the availibility of a png exporter) 
13612         at run-time instead of compile-time. 
13614 2001-01-06  Steffen Macke <sdteffen@yahoo.com>
13616         * app/recent_files.h was missing from Hans's commit
13618         * plug-ins/shape/shape_export.c: shape export was broken
13619         due to interface changes
13620         
13621 2001-01-05  Hans Breuer <Hans@Breuer.Org>
13623         Applied Steffen's recent file list patch :
13624         * app/Makefile.am : added recent_files.[hc]
13625         * app/diagram.c : add files to recent file list
13626         * app/menus.c : add recent file menu
13627         * app/app_procs.c : changed initialization order to
13628         make recent file list work with command line processing.
13630         The Filter export()/import() functions have got an additional 
13631         parameter to allow multiple filters via one C callback (required
13632         for Python bindings)
13634         * app/commands.[hc] : corrected the signature for gtk menu callback
13635         functions, which actually use the second or third parameter. This
13636         is the absolute minimum change to make these functions/menu entries
13637         work again. Using the other possible gtk menu callback signature
13638         would have required one more function to change. (see mailing list
13639         thread "Objects/Align/Equal Distance" for more information.
13641         * app/disp_callbacks.c : applied Gustavo J.A.M. Carneiro's
13642         zoom-combo focus patch
13644         * app/display.c
13645         * app/interface.c : wrapped the Zoom Combo code into 
13646         #ifndef WITHOUT_ZOOM_COMBO because IHMO it isn't an useabilty
13647         improvement but cluttering the user interface. Also it wasn't
13648         compiling on Win32 anyway. The win32 version does define 
13649         WITHOUT_ZOOM_COMBO to keep the old look. 
13650         There are plans to use the statusbar to display size and placement
13651         of selected objects, whereas the Zoom Combo would need to get out
13652         of the way as well.
13654         Added "Save Changes?" to diagram close dialog. Hopefuly the
13655         Yes/No/Cancel option isn't too much windoze like. IHMO this is
13656         an useability improvement.
13658         * app/export_png.c
13659         * app/filedlg.c
13660         * app/load_save.c
13661         * app/layer_dialog.c
13662         * app/paginate_psprint.c
13663         * app/render_eps.c
13664         - reflect signature changing of filter->export function
13665         - replaced '/' with G_DIR_SEPARARTOR where appropriate
13667         * app/diaunitspinner.c
13668         * app/render_libart.c
13669         added misssing headers like <string.h>
13671         * app/object_ops.c : fixed copy&paste bug in dialog string
13673         * app/splash.c : gdk_widget_show_now () does not ensure actual
13674         drawing of the splash screen, at least not on win32. Reuse the
13675         previous implementation with gtk_main_iteration() again.
13677         * */makefile.msc : make use of the build module (available in
13678         gnome-cvs/build. Updated for other source changes
13680         * lib/filter.h : added an user_data pointer to <ex/im>port()
13681         function signature and Dia<Im/Ex>portFilter to allow different
13682         filters to reuse the same callback function
13684         * lib/font.c : #include <string.h>
13686         * lib/orth_conn.c 
13687         * lib/poly_conn.c 
13688         * lib/poly_shape.c 
13689         * lib/neworth_conn.c
13690         * lib/text.c : don't mix allocator functions (g_)realloc, free, ...
13692         * */*.def : export function definition files required by win32 build
13694         * objects/custom/custom.c : #include <string.h>
13696         * plug-ins/pstricks/render_pstricks.c
13697         * plug-ins/shape/shape_export.c
13698         * plug-ins/svg/render_svg.c
13699         reflect changes to filter export function signature
13701         * plug-ins/wmf/wmf.cpp : fixed indent and scaling. It now should
13702         mostly work as expected
13703         * plug-ins/wmf/wmf_gdi.[hc] : Updated comment. Still not used
13704         to build the wmf plug-in because on the one hand the GDI emulation 
13705         isn't finished and on the other hand it isn't required when building
13706         for win32. Is there anybody out there, who wants to save WMF on non
13707         windoze platforms ?
13709         * plug-ins/wpg/wpg.cpp : fixed scaling to take axis dependent
13710         offset into account.
13712 2001-01-02  Steffen Macke <sdteffen@yahoo.com>
13714         * app/Makefile.am: added missing plug-ins to run_dia.sh
13716         * lib/paper.c: added paper sizes A0, A1, A2
13718         * objects/UML/class.c
13719         objects/UML/class.h
13720         objects/UML/class_dialog.c: added support for colored UML
13721         classes
13722         
13723 2000-12-30  Kevin Breit <battery841@mediaone.net>
13725         * doc/en/usage-customization.sgml: added more content
13727 2000-12-24  Kevin Breit <battery841@mediaone.net>
13729         * doc/en/usage-layers.sgml: added file, contributed by Remypsb
13730         <remy.viard@laposte.net>
13732 2000-12-24  Steffen Macke <sdteffen@yahoo.com>
13734         * added limiting lines to Civil Engineering sheet,
13735         fixed vertical pump icon
13736         
13737 2000-12-20  Steffen Macke <sdteffen@yahoo.com>
13739         * updated/additional Civil Engineering shapes: better icons,
13740         shapes use foreground/background colors now and are filled
13741         
13742 2000-12-03  Kevin Breit  <battery841@mediaone.net>
13744         * doc/en/dia-manual.sgml Integrated a few diffs.  New section should be
13745         the selection <sect1>
13747 2000-11-29  Fredrik Hallenberg  <hallon@lysator.liu.se>
13749         * app/load_save.c (diagram_data_save): avoid using obsoleted
13750         libxml calls (only matters when compiling with libxml2)
13752 2000-11-25  James Henstridge  <james@daa.com.au>
13754         * app/disp_callbacks.c (ddisplay_drop_object): add a function to
13755         handle the tool drops on the canvas.
13757         * app/interface.c (display_data_received_callback): do the check
13758         to make sure that the drag is from a local toolbox here as well.
13760         * app/interface.c (create_tools): unref the pixmap/mask after
13761         creating the GtkPixmap.
13762         (tool_setup_drag_source): function to set up a drag source for
13763         create object tool buttons.
13764         (create_tools): setup drag source for CREATE_OBJECT_TOOL's.
13765         (fill_sheet_wbox): same here.
13766         (create_display_shell): set up the display canvas as a drag
13767         destination.
13768         (display_drop_callback, display_data_received_callback): functions
13769         to handle drops of tool buttons.
13771         * app/menus.c (menus_init): don't use gnome_popup_menu_new().  It
13772         does weird shit to the user_data pointer for a menu item.  Object
13773         alignment should work again now.
13775         * app/splash.c (get_logo_pixmap): don't unref the bitmap if it is
13776         NULL, and mark this function static.
13777         (app_splash_init): use gtk_widget_show_now() instead of the
13778         gtk_main_iteration loop.
13779         (app_splash_init): connecting gtk_widget_destroy to the destroy
13780         signal of a widget seems pretty useless.
13782 2000-11-23  Kevin Breit <battery841@users.sourceforge.net>
13784         * doc/en/dia-manual.sgml:
13785                 Added sect1 for advanced object types.  Starting development
13786                 on that part.
13788 2000-11-18  Kevin Breit <battery841@mediaone.net>
13790         * doc/en/dia-manual.sgml:
13791                 Stupid spelling fixes.
13793 2000-11-18  Kevin Breit <battery841@mediaone.net>
13795         * doc/en/dia-manual.sgml:
13796                 Just some small changes I made.  Props to Greg LeBlanc on the
13797                 recommendations.
13799 2000-11-17  Alexander Larsson  <alla@lysator.liu.se>
13801         * app/display.c:
13802         (ddisplay_add_display_area): Clip input rectangle to
13803         the visible part of the display.
13804         (ddisplay_scroll): Optimization, don't scroll and
13805         redraw if moving to the same position as before.
13807         * app/render_libart.c (renderer_libart_copy_to_window):
13808         Removed sanity check. Now moved to ddisplay_add_display_area().
13810         * lib/diavar.h:
13811         Added return at end of file.
13812         
13813 2000-11-13 Kevin Breit <battery841@mypad.com>
13814         * doc/en/dia-manual.sgml
13815                 Commited manual changes from Henry House <hajhouse@houseag.com>
13817 2000-10-21 Hans Breuer <Hans@Breuer.Org>
13818         * lib/beziershape.c :
13819                 The previous code was accessing unowned memory due to IHMO
13820                 wrong index calculation. Now it appears to be fixed.
13821                 *Please Review!*
13823         * lib/makefile.msc
13824         * plug-ins/makefile.msc
13825         * objects/makefile.msc
13826         * app/makefile.msc: (new files)
13827                 Makefiles for Dia on Win32, Micro$oft VC only.
13829         * plug-ins/pstricks/render_pstricks.c
13830         * plug-ins/dxf/dxf-import.c
13831         * plug-ins/shape/shape-export.c
13832         * plug-ins/svg/render_svg.c
13833         * app/commands.c
13834         * app/filedlg.c
13835         * app/preferences.c
13836         * app/render_eps.c
13837         * lib/sheet.c
13838         * lib/plug-ins.c
13839         * objects/custom/custom.c
13840         * objects/standard/image.c
13841                 portability (not only win32): use HAVE_UNISTD_H, HAVE_DIRENT_H 
13842                 where   appropriate, add missing prototypes like <string.h>
13844         * plug-ins/wmf/wmf_gdi.cpp
13845         * plug-ins/wmf/wmf_gdi.h:
13846                 start of wmf write functions for non Win32 platform. Not 
13847                 finished yet. The other way to get it working maybe to
13848                 link the plug-in against wine libs.
13849                 
13850         * plug-ins/wpg/wpg.c : add missing brace
13852         * app/load_save.c :
13853                 Handling for unknown objects at load time. Previously Dia
13854                 was crashing, if you try to load a file referencing objects
13855                 whiches plug-ins aren't installed/available. Now it spits out 
13856                 a warning and ignores the unknown objects.
13858         * app/interface.c
13859                 toolbox DND support for files like The Gimp does it.
13861         * app/main.c
13862         * app/app_procs.h
13863                 Simple splash screen support and usage.
13865         * app/app_procs.c
13866                 Splash screen, portability fixes, dont' g_error if there is
13867                 g_get_homedir return NULL. This may remove the one and only
13868                 FAQ for Win32.
13870         * app/menus.c :
13871                 Make it compile without ENABLE_NLS
13873         * app/render_libart.c :
13874                 Sanity check to avoid calling libart with wrong window coordinates.
13875                 They come from the update handler. Direct Gdk is dealing nicely
13876                 with coordinates out of range, libart does access un-owned memory
13877                 in this case, mostly causing crashes.
13879         * app/winmain.c: (new file) Export the Win32 Gui version of the
13880                 main function. This file is only required for Windoze.
13882         * app/splash.c: (new file) splash screen implementation
13884         * lib/color.h
13885         * lib/font.h
13886         * lib/diavar.h: (new file)
13887                 moved special variable export code to diavar.h, because it is
13888                 needed in color.h and font.h
13890         * lib/paper.c :
13891                 M$VC cann't export inlined functions. Quick hack to let it
13892                 link again. Probably the glib mechanics should be used here?
13894         * objects/UML/lifeline.c : initialize var before usage
13896         * objects/GRAFCET/step.c : removed unused var
13898 2000-10-14  James Henstridge  <james@daa.com.au>
13900         * app/render_gnomeprint.c (draw_image): change code so images
13901         don't get flipped when printing.
13903         * app/paginate_gnomeprint.c (diagram_print_gnome): check to make
13904         sure that the return value of
13905         gnome_print_context_new_with_paper_size is not NULL.
13907         * app/render_gnomeprint.c (draw_arc): add code to convert arcs
13908         into a series of bezier segments.
13909         (fill_arc): similar code to handle filled arc segments.
13911 2000-10-12  Fredrik Hallenberg  <hallon@lysator.liu.se>
13913         * app/app_procs.c
13914         * app/commands.c
13915         * app/dia-props.c
13916         * app/diagram.c
13917         * app/diagram.h
13918         * app/disp_callbacks.c
13919         * app/display.c
13920         * app/linewidth_area.c
13921         * app/paginate_psprint.c
13922         * app/preferences.c
13923         * app/undo.c
13924         * app/font.c
13925         * app/message.c
13926         * app/neworth_conn.c
13927         * app/orth_conn.c
13928         * objects/standard/box.c: various small changes to get rid of 
13929         annoying warnings (eg faulty prototypes and unused variables)
13931         * app/disp_callbacks.c
13932         * app/cursor.h
13933         * app/magnify.c
13934         * app/magnify.h: update magnify tool icon when pressing/releasing
13935         shift. I will try to make something more general so that similar
13936         things can be used by other tools.
13938         * shapes/SDL/inout.shape
13939         * shapes/SDL/return.shape: fixed some typos
13941 2000-10-09  James Henstridge  <james@daa.com.au>
13943         * objects/custom/shape_info.c (parse_path): apply patch from
13944         Robert Young <robertdotyoung@dsto.defence.gov.au> to fix bug
13945         #25221
13947 2000-10-08  James Henstridge  <james@daa.com.au>
13949         * objects/standard/image.c (image_set_props): if the file could not
13950         be loaded, show the broken image icon.
13952         * plug-ins/Makefile.am (SUBDIRS): add shape to the subdirs list.
13954         * plug-ins/shape/*: the shape export plugin by Steffen Macke.
13956         * app/interface.c (fill_sheet_wbox): use gdk-pixbuf to load the
13957         object icon when loading from a file.  This allows you to have PNG
13958         icon files for shapes.
13960 2000-10-07  James Henstridge  <james@daa.com.au>
13962         * app/Makefile.am (dia_LDADD): remove GDK_IMLIB_LIBS reference.
13964         * lib/Makefile.am, app/Makefile.am (INCLUDES): remove
13965         GDK_IMLIB_CFLAGS reference.
13967         * app/commands.c (help_about_callback): remove imlib code.
13969         * lib/dia_image.c: only include the pixbuf version of the image
13970         routines.
13972         * acconfig.h: remove the HAVE_GDK_PIXBUF flag from here.
13974         * configure.in (CPPFLAGS): remove the check for imlib, as we now
13975         require gdk-pixbuf.
13977         * plug-ins/pstricks/render_pstricks.c (new_pstricks_renderer):
13978         conditionally define \setfont as well.
13980 2000-10-05  James Henstridge  <james@daa.com.au>
13982         * plug-ins/pstricks/render_pstricks.c (new_pstricks_renderer): fix
13983         preamble so that we define \setlinejoinmode and \setlinecaps
13984         commands conditionally on them being undefined.  This way, the
13985         pstricks output files should work without modification, and will
13986         support the commands when they are implemented in pstricks.
13988 2000-10-05  Szabolcs Ban  <shooby@gnome.hu>
13990         * dia.desktop: added hungarian translations to dia.desktop
13992 2000-10-04  James Henstridge  <james@daa.com.au>
13994         * sheets/UML.sheet: fix typo.
13996         * objects/custom/shape_info.c: use strtod instead of g_strtod.
13997         (parse_path): actually call setlocale around strtod calls.
13999         * lib/dia_xml.c: use strtod rather than g_strtod.  We wrap each
14000         call in setlocale(LC_NUMERIC, "C"), so there is no reason to call
14001         the g_strtod wrapper.
14003         * shapes/SDL/: add SDL shapes from Rubens Ramos
14004         <rubens_ramos@yahoo.com>
14006         * acinclude.m4 (DIA_CHECK_CFLAG): fix up macro.
14008         * sheets/Makefile.am (SHEETS): add SDL.sheet to list.
14010         * shapes/MSE/: add Mobile Subscriber Equipment shapes from
14011         W. Michael Petullo <mike@flyn.org>.
14013         * sheets/Makefile.am (SHEETS): add civil.sheet (which got missed
14014         from the 0.86 tarball) and jigsaw.sheet.
14016         * configure.in: add shapes/jigsaw/Makefile to list of generated files.
14018         * shapes/jigsaw/: jigsaw shapes from Martin Hawlisch.
14020         * shapes/network/: add network-additional shapes here.
14022         * sheets/network.sheet: add the network-additional shapes from
14023         Martin Hawlisch <Martin.Hawlisch@bflow.com> to the main network
14024         sheet.
14026 2000-09-30  Fredrik Hallenberg  <hallon@lysator.liu.se>
14028         * configure.in: Updated ALL_LINGUAS
14030         * po/nl.po: Removed newline from translation
14032 2000-09-17  Asbjorn Pettersen  <asbjornP@dualog.no>
14034         * app/commands.c (help_about_callback): Use G_DIR_SEPARATOR_S in 
14035         logo filename generation. 
14037         * lib/dia_dirs.c (dia_get_data_directory): Handle empty subdir better.
14038         Avoiding "//dia_logo.png".
14040 2000-09-16  Asbjorn Pettersen  <asbjornP@dualog.no>
14042         * app/filedlg.c: add include <sys/types.h> to
14043         remove warning. (OS/2)
14045 2000-09-13  Cyrille Chepelov <chepelov@calixo.net>
14047         * objects/chronogram/chronoline_event.c (reparse_clevent):
14048         the __checksum routine was simply bogus. Redone it in a slightly
14049         saner way (reported by Michael Farr <mfarr@cs.latrobe.edu.au>).
14051 2000-09-10  Asbjorn Pettersen  <asbjornP@dualog.no>
14053         * app/create_object.c (create_object_button_press): 
14054         * app/modify_tool.c (click_select_object): 
14055         * lib/object.h: select renamed to selectf to prevent
14056         compiler problems with function select().  OS/2 version.
14058 2000-09-08  Karsten Weiss  <knweiss@gmx.de>
14060         * po/de.po: Updated.
14062 2000-09-07  Karsten Weiss  <knweiss@gmx.de>
14064         * dia.desktop: Added German translation
14065         * app/menus.c: "Diagram Propeties..." -> "Diagram Properties..."
14067 2000-08-29  Manuel de Vega Barreiro <barreiro@arrakis.es>
14069         * configure.in (ALL_LINGUAS): added "es"
14071 2000-08-28  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
14073         * app/magnify.c:
14074         * app/cursor.h:
14075         * app/cursor.c:
14076         * app/scroll_tool.c:
14077         Standardized cursor function get_cursor().  Magnify now has
14078         looking-glass cursor with + and -.
14080         * app/create_object.c (create_object_button_press): 
14081         Newly created connections now snap to connection points even when
14082         off the grid. 
14084 2000-08-17  Daniel Egger  <egger@suse.de>
14086         * app/menus.c: #ifdef'ed some code for the none GNOME
14087         case.
14088         * app/dia_embedd.c: Changed obvious hackery. Can anyone
14089         please have a look at the GNOME UI menu creation? The
14090         gnome-app-helper code is ages old and plainly broken!
14092 2000-08-15  Daniel Egger  <egger@suse.de>
14094         * app/commands.c:
14095         * app/commands.h:
14096         * app/diagram.c:
14097         * app/display.c:
14098         * app/menus.c:
14099         * app/select.c: First big patch to get the menus
14100         working again in the international version. Copied
14101         some code written by Sven and me from GIMP and
14102         thus implemented automatic tearoffmenu creation and
14103         proper translation. I also removed that pseudo
14104         radiomenu hack and cleaned up several translation
14105         hacks which have never really worked. All in all
14106         this is part I of the big menu patch. Enjoy and tell
14107         me if you detect any problems.
14109 2000-08-14  Daniel Egger  <egger@suse.de>
14111         * sheets/UML.sheet: Changed one German translation as
14112         suggested by Heribert Schuetz <hs@heribert-schuetz.de>.
14114 2000-08-10  Fredrik Hallenberg  <hallon@lysator.liu.se>
14116         * app/diapagelayout.c:
14117         * lib/diagramdata.c:
14118         * lib/diagramdata.h:
14119         * lib/Makefile.am:
14120         * lib/paper.c:
14121         * lib/paper.h: honour PAPERCONF env variable and /etc/papersize when
14122         selecting paper size for a new diagram. TODO: Use libpaper if 
14123         available and use gnome_paper-stuff if using GNOME.
14125         * sheets/Electric.sheet: fixed typo.
14126         
14127 2000-08-08  James Henstridge  <james@daa.com.au>
14129         * po/README: added a readme file to tell translators to translate
14130         the .sheet files as well.
14132         * app/commands.c (help_about_callback): fix small bug where we tried
14133         to gdk_bitmap_unref() the mask for the about box image, even though
14134         it was NULL.  Now check for a NULL mask.
14136 2000-08-07  Daniel Egger  <egger@suse.de>
14138         * sheets/*.sheet: Added translations for the name
14139         in the toolbar tab. Brushed up some descriptions 
14140         and some translations a bit.
14142 2000-08-06  James Henstridge  <james@daa.com.au>
14144         * plug-ins/svg/render_svg.c (new_svg_renderer): update public
14145         identifier and dtd url for SVG output.
14146         (new_svg_renderer): fix the output of the viewBox output.  The
14147         second two numbers are the width and height -- not the right
14148         and bottom sides of the box.
14150         * shapes/*/*.shape: update svg namespace URI.
14152         * objects/custom/shape_info.c (load_shape_info): change the
14153         namespace URI for custom shapes yet again to match the Candidate
14154         Recommedation.  It looks like this one will probably be the final
14155         one.
14157         * app/display.c (new_display): remove the code that sets ic and
14158         ic_attr members to NULL, as one of the previous function calls
14159         causes the display to be realised.  This means that the ic gets
14160         lost.  Thanks to Yukihiro Nakai <ynakai@redhat.com> for finding
14161         this one.
14163 2000-08-06  James Henstridge  <james@daa.com.au>
14165         * shapes/Makefile.am (SUBDIRS): add Civil back to list.
14167         * NEWS: fixed date in NEWS file, as I will release today.
14169         * README: updated the README a little.  Added note that Dia is now
14170         a GNU program.
14172         * dia.spec: fix up spec file.
14174         * plug-ins/wpg/wpg.c: changed DIAG_NOTE stuff here as well.
14176         * plug-ins/hpgl/hpgl.c: change Hans's DIAG_NOTE stuff so that we don't
14177         get heaps of warnings when you turn off debugging.
14178         Also made a few other warning fixes.
14180 2000-08-02  James Henstridge  <james@daa.com.au>
14182         * plug-ins/svg/Makefile.am (INCLUDES): add XML_CFLAGS to INCLUDES.
14184         * configure.in: update version number.
14186 2000-08-01  James Henstridge  <james@daa.com.au>
14188         * app/commands.c (help_about_callback): add Hans to about dialog.
14190         * doc/shape.dtd: dtd for shape file format.
14192         * doc/custom-shapes: update doc file about creating custom shapes.
14194         * shapes/*/*.shape: change namespace URI for the SVG portion to the
14195         one for the latest draft.
14197         * shapes/*/*.shape: fix up rect definitions.
14199         * objects/custom/shape_info.c (load_shape_info): recognise newer
14200         namespace tag for SVG.
14201         (parse_svg_node): the rect element should take attributes x, y, width
14202         and height -- not x1,y1,x2,y2.
14204         * plug-ins/svg/render_svg.c (new_svg_renderer): updated doctype
14205         output to use the newest draft DTD.
14207         * plug-ins/svg/svg.c: initialisation code for plugin.
14209         * plug-ins/svg/render_svg.c: move svg export code to a plugin.
14211         * plug-ins/svg/Makefile.am: makefile for svg plugin.
14213         * app/app_procs.c (internal_plugin_init): don't register the svg
14214         export filter here.
14216         * app/Makefile.am (dia_core_files): don't compile in render_svg.[ch]
14218 2000-07-31  James Henstridge  <james@daa.com.au>
14220         * objects/standard/textobj.c (textobj_get_defaults): 
14221         * objects/standard/polygon.c (polygon_get_defaults): 
14222         * objects/standard/image.c (image_get_defaults): 
14223         * objects/standard/ellipse.c (ellipse_get_defaults): 
14224         * objects/standard/box.c (box_get_defaults): 
14225         * objects/standard/beziergon.c (beziergon_get_defaults): 
14226         * objects/flowchart/parallelogram.c (pgram_get_defaults): 
14227         * objects/flowchart/ellipse.c (ellipse_get_defaults): 
14228         * objects/flowchart/diamond.c (diamond_get_defaults): 
14229         * objects/flowchart/box.c (box_get_defaults): 
14230         * objects/custom/custom_object.c (custom_get_defaults): 
14231         * objects/FS/flow.c (flow_get_defaults): 
14232         * objects/FS/flow-poly.c (flow_get_defaults): 
14233         * objects/FS/flow-ortho.c (orthflow_get_defaults): ref and sink the
14234         defaults widget.
14236         * app/defaults.c (defaults_show): don't keep on ref'ing the defaults
14237         widgets for various object types.
14238         (create_dialog): ref and sink the no_defaults_dialog.
14240         * app/preferences.c (prefs_create_dialog): change
14241         gtk_container_border_width call to gtk_container_set_border_width.
14243 2000-07-29  James Henstridge  <james@daa.com.au>
14245         * app/commands.c (view_aa_callback): show a warning dialog if
14246         you start AA mode.
14248         * app/interface.c (fill_sheet_menu): don't add a menu item for
14249         empty sheets.
14251 2000-07-26  James Henstridge  <james@daa.com.au>
14253         * plug-ins/dxf/dxf-export.c: updates from Steffen to fix bug #18677
14255         * app/menus.c: remove edit grid menu item.
14257         * app/commands.[ch] (view_edit_grid_callback): removed.
14259         * app/display.c (new_display): don't initialise removed Grid members.
14261         * app/grid.c: remove unused functions.
14263         * app/grid.h: remove dialog related stuff from Grid structure.
14264         Remove prototypes for dialog functions.
14266         * app/menus.c: add to menus
14267         
14268         * app/commands.[ch] (view_diagram_properties_callback): new command
14269         for showing the diagram properties dialog.
14271         * app/dia-props.[ch]: a new diagram properties dialog.  To replace
14272         the edit grid dialog.
14274 2000-07-25  James Henstridge  <james@daa.com.au>
14276         * app/grid.c (grid_x_update): 
14277         (grid_y_update): as the grid setting is stored with the diagram,
14278         update all displays when a change is made.
14280         * app/modify_tool.c (modify_motion): use new snap_to_grid sig.
14282         * app/create_object.c (create_object_button_press): 
14283         (create_object_motion): use new snap_to_grid signature.
14285         * app/grid.c (grid_draw): use the grid settings in the DiagramData,
14286         and handle invisible grid lines.
14287         (snap_to_grid): use new grid settings.  Also changed signature to
14288         take a DDisplay rather than Grid pointer.
14289         (grid_show_dialog): get the defaults from the correct place.
14291         * app/display.c (new_display): do not set ddisp->grid.width_[xy].
14293         * app/diagram.c (new_diagram): set the grid size defaults from the
14294         user preferences.
14296         * app/load_save.c (diagram_data_save): save grid and guide info to
14297         diagram file.
14298         (diagram_data_load): add guide and grid load support.
14300         * lib/diagramdata.c (new_diagram_data): set the new DiagramData
14301         members.
14303         * lib/diagramdata.h: add members to DiagramData for grid and guide
14304         settings.
14306         * configure.in (BONOBO_LIBS): update configure scripts
14308         * app/dia.oafinfo: oafinfo file for dia embeddables.
14310         * app/dia_embedd.c: add OAF support.
14312 2000-07-24  James Henstridge  <james@daa.com.au>
14314         * plug-ins/wpg/Makefile.am: 
14315         * plug-ins/pstricks/Makefile.am: 
14316         * plug-ins/hpgl/Makefile.am: 
14317         * plug-ins/dxf/Makefile.am: same here.
14319         * plug-ins/cgm/Makefile.am: remove LIBADD.  Dia already links with
14320         the required libraries, and the link line was causing libtool not
14321         to build a shared library on some systems :(
14323         * plug-ins/cgm/cgm.c (write_real): the initial if statement should
14324         be checking x, not n.
14326 2000-07-23  James Henstridge  <james@daa.com.au>
14328         * app/preferences.c (prefs_data): set the "reset tools after
14329         create" preference to true by default.  That seems to be what most
14330         people expect.
14332         * app/interface.c (create_sheets): instead of a notebook, use an
14333         option menu that updates the sheet tools.  The notebook tabs were
14334         getting a bit unwieldly, so the option menu should fix that.  This
14335         also reduces the number of widgets in the tools radio button
14336         group, which should make the UI a little more responsive.
14338 2000-07-19  Fatih Demir <kabalak@gmx.net>
14339         
14340         * configure.in: Added tr to ALL_LINGUAS.
14341                 [ Yeah, we're now having a Turkish translation,
14342                    too. ]
14343         
14344         * dia.desktop: Added the Turkish entries.
14346 2000-07-02  Fredrik Hallenberg  <hallon@lysator.liu.se>
14348         * doc/diagram.dtd: changed string-element so it conforms to the
14349         output from dia.
14351 2000-06-30  Fredrik Hallenberg  <hallon@lysator.liu.se>
14353         * configure.in: added chinese. 
14354         Use AM_PROG_LIBTOOL instead of AC_PROG_LIBTOOL.
14356         * app/app_procs.c:
14357           app/load_save.c:
14358           app/render_svg.c:
14359           lib/dia_xml.c:
14360           lib/plug-ins.c:
14361           lib/sheet.c:
14362           objects/custom/shape_info.c: 
14363           shapes/Circuit/npn.shape:
14364           shapes/Circuit/pnp.shape:
14365           sheets/*.sheet: dia now works with libxml2.
14366         Libxml2 is a bit more picky when parsing xml and reported errors on all 
14367         sheet files because they use non ascii characters (added 
14368         encoding="iso-8859-1"). Also "xml:lang=en@layman" is not proper xml so 
14369         I commented out these.
14371 2000-06-30  Christopher R. Gabriel  <cgabriel@linux.it>
14373         * configure.in (ALL_LINGUAS): added Italian
14375 2000-06-27  Sung-Hyun Nam  <namsh@lgic.co.kr>
14377         * configure.in (ALL_LINGUAS): added Korean
14379 2000-06-25  James Henstridge  <james@daa.com.au>
14381         * objects/flowchart/parallelogram.c (pgram_create): use default font
14382         and add properties interface support.
14384         * objects/flowchart/ellipse.c (ellipse_create): use default font and
14385         add properties interface support.
14387         * objects/flowchart/diamond.c (diamond_create): use default font and
14388         add properties interface code.
14390         * objects/flowchart/box.c (box_create): use default font.
14392         * objects/custom/custom_object.c (custom_create): use default font
14393         here too.
14395         * objects/standard/textobj.c (textobj_create): update to use default
14396         font.
14398         * lib/attributes.c: add implementations.
14400         * lib/attributes.h (attributes_[gs]et_default_font): add function
14401         prototypes for setting/getting a default font.
14403 2000-06-24  James Henstridge  <james@daa.com.au>
14405         * app/paginate_gnomeprint.h: updated prototype.
14407         * app/paginate_gnomeprint.c (paginate_gnomeprint): update to use
14408         diagram page settings.
14410         * objects/standard/beziergon.c (beziergon_copy): same here.
14412         * objects/standard/polygon.c (polygon_copy): copy the fill colour
14413         as well.
14415         * app/undo.h: 
14416         * app/tool.h (tool_options_dialog_show): 
14417         * app/scroll_tool.h (free_scroll_tool): 
14418         * app/render_svg.h: 
14419         * app/render_libart.h (renderer_libart_copy_to_window): 
14420         * app/render_gdk.h (renderer_gdk_copy_to_window): 
14421         * app/properties.h (properties_hide_if_shown): 
14422         * app/preferences.h (prefs_load): 
14423         * app/object_ops.h: 
14424         * app/modify_tool.h (free_modify_tool): 
14425         * app/magnify.h (free_magnify_tool): 
14426         * app/linewidth_area.h (linewidth_area_create): 
14427         * app/layer_dialog.h: 
14428         * app/handle_ops.h (handle_is_clicked): 
14429         * app/group.h: 
14430         * app/grid.h (grid_destroy_dialog): 
14431         * app/defaults.h (defaults_show): 
14432         * app/cut_n_paste.h (cnp_exist_stored_objects): 
14433         * app/create_object.h (free_create_object_tool): 
14434         * app/connectionpoint_ops.h (diagram_unconnect_selected): 
14435         * app/commands.h: 
14436         * app/color_area.h (color_area_create): 
14437         * app/app_procs.h (app_is_embedded): remove extern keyword from
14438         function prototypes.
14440         * lib/text.h: 
14441         * lib/sheet.h (load_all_sheets): 
14442         * lib/render_store.h: 
14443         * lib/render_object.h (render_object_load): 
14444         * lib/polyshape.h (polyshape_closest_segment): 
14445         * lib/poly_conn.h (polyconn_closest_segment): 
14446         * lib/orth_conn.h: 
14447         * lib/object.h: 
14448         * lib/objchange.h (new_object_state_change): 
14449         * lib/neworth_conn.h (neworthconn_add_segment): 
14450         * lib/message.h (message_error): 
14451         * lib/lazyprops.h: 
14452         * lib/geometry.h: 
14453         * lib/font.h (font_descent): 
14454         * lib/focus.h (remove_focus): 
14455         * lib/element.h: 
14456         * lib/diagramdata.h: 
14457         * lib/dia_xml.h (data_add_composite): 
14458         * lib/dia_image.h: 
14459         * lib/connpoint_line.h: 
14460         * lib/connection.h (connection_move_handle): 
14461         * lib/color.h: 
14462         * lib/attributes.h (attributes_set_default_line_style): 
14463         * lib/arrows.h (arrow_draw): remove extern keyword from function
14464         definitions.  It is not required for functions.
14466         * plug-ins/dxf/Makefile.am (INCLUDES): 
14467         * plug-ins/pstricks/Makefile.am (INCLUDES): 
14468         * plug-ins/cgm/Makefile.am (INCLUDES): 
14469         * objects/SADT/Makefile.am (INCLUDES): 
14470         * objects/chronogram/Makefile.am (INCLUDES): 
14471         * objects/GRAFCET/Makefile.am (INCLUDES): 
14472         * objects/flowchart/Makefile.am (INCLUDES): 
14473         * objects/sybase/Makefile.am (INCLUDES): 
14474         * objects/FS/Makefile.am (INCLUDES): 
14475         * objects/standard/Makefile.am (INCLUDES): 
14476         * objects/network/Makefile.am (INCLUDES):
14477         * objects/UML/Makefile.am (INCLUDES): same here.
14479         * objects/ER/Makefile.am: changed inclusion of some macros to
14480         variables.
14482         * lib/plug-ins.c (dia_register_plugins_in_dir): use a few defines to
14483         handle the plug in extension, rather than have all the #ifdef's in
14484         the code.
14486         * plug-ins/Makefile.am: add renderer.inc to dist.
14488         * plug-ins/dxf/dxf-import.c: Updates from Steffen Macke.
14490 2000-06-11  Asbjorn Pettersen  <asbjornP@dualog.no>
14492         * lib/plug-ins.c: Handle OS/2 dll's too.
14494 2000-06-07  James Henstridge  <james@daa.com.au>
14496         * app/plugin-manager.c (get_plugin_manager): set some table
14497         packing options to make it look a little nicer.
14499         * plug-ins/hpgl/Makefile.am, plug-ins/wpg/Makefile.am: added
14500         makefiles for these plug-ins.
14502         * plug-ins/{hpgl,wmf,wpg}/*: removed dos style cariage returns.
14504         * configure.in: added hpgl and wpg directories to build.  Added
14505         note about whether gnome-print support was enabled, and noted that
14506         it is not recommended.
14508 2000-06-06  James Henstridge  <james@daa.com.au>
14510         * plug-ins/{hpgl,wmf,wpg}/*: Hans Breuer's plug-ins.  They still need
14511         a little work, but I am checking them in so I don't lose them.
14513 2000-06-01  James Henstridge  <james@daa.com.au>
14515         * objects/standard/arc.c: added extra properties.
14517         * lib/beziershape.c (beziershape_closest_handle): fix a bug where I
14518         was using the wrong index into the handles array.  This gets corner
14519         type changing working correctly.
14521         * lib/properties.[ch]: add support for BezPoint's and BezPoint arrays
14522         to properties code (no editing or loading yet though).  Also added
14523         support for point array manipulation through the offsets interfaces.
14525         * lib/Makefile.am (INCLUDES): added include of gdk-pixbuf 
14527         * app/interface.c (origin_button_press): changes so the origin
14528         button doesn't grab the pointer when we pop up the menu.
14530         * app/commands.c (help_about_callback): fix small memory leak in
14531         about box code.
14533         * app/menus.c (menus_init): fixed breakage I introduced in the non
14534         gnome menus when I was doing the menu changes.  The tearoffs work
14535         really nicely in plain gtk mode as well.
14537         * objects/standard/beziergon.c (beziergon_create): changed the
14538         returned handles to match the handle numbering changes.  Now
14539         segment addition and removal works correctly with undo!
14541         * lib/beziershape.c: various changes to the code.  Changed the
14542         numbering of handles, and fixed the segment removal code.
14544 2000-05-31  James Henstridge  <james@daa.com.au>
14546         * objects/standard/beziergon.c: remove connection point handling.
14547         There is still a bit of work to be done to get adding and removing
14548         of segments working correctly.
14550         * lib/beziershape.c: add connection point handling to beziershape.
14551         I set it for two connection points per segment.
14553 2000-05-30  James Henstridge  <james@daa.com.au>
14555         * objects/standard/polygon.c: don't do connectionpoint handling.
14557         * lib/polyshape.c: changed to handle connection points internally.
14558         Also, don't worry about connections to handles on polyshape, as
14559         all handles are non connectable.
14561 2000-05-30 Ville Hautamaki <villeh@cs.joensuu.fi>
14563         * configure.in: Added finnish
14564         
14565 2000-05-30  James Henstridge  <james@daa.com.au>
14567         * sheets/*.sheet: translation updates to the .sheet files.
14569         * po/fr.po: updated po file from Christophe Merlet.
14571         * menus.h: removed prototypes for functions which have been removed.
14573 2000-05-29  James Henstridge  <james@daa.com.au>
14575         * app/layer_dialog.c (layer_dialog_set_diagram): set the selected
14576         item in the option menu when changing selected diagram.
14578         * app/dia_embedd.c (view_factory): fix up function to work with new
14579         menus API.
14581         * app/disp_callbacks.c (ddisplay_realize): remove call to
14582         display_set_active from here.
14583         (ddisplay_canvas_events): move call here.  This gets rid of all the
14584         warnings, as the renderer has been fully set up correctly at this
14585         point.
14587         * app/menus.c (menus_init): add the tearoff item to the start of the
14588         right click menu.
14590         * app/app_procs.c (create_user_dirs): we don't need to create the
14591         menus directory anymore.
14593         * app/disp_callbacks.c (ddisplay_popup_menu): it should not be
14594         necessary to update the menu state here, as it was done when the
14595         active display was set.
14597         * app/display.c (display_set_active): update the menu state when
14598         changing active displays.
14600         * app/interface.c (origin_button_press): set the display as active
14601         when a click is made on the menu button.
14603         * app/menus.c (menus_init): set up a quit function to save the accels
14604         at exit.
14605         Add tearoff items for the non GNOME menus, add accelerators for
14606         several GNOME menus.
14608         * app/disp_callbacks.c (ddisplay_popup_menu): get the menu with
14609         menus_get_image_menu().
14611         * app/menus.c (menus_get_item_from_path): use display_menus here
14612         rather than ddisp->popup.
14614         * app/display.h: remove the popup member in the DDisplay structure.
14616         * app/interface.c: remove option of not using wrap box.
14617         (create_toolbox): change to always use menus_get_toolbox_menubar
14618         even when using gnome menus.
14619         (create_display_shell): use menus_get_image_menu to load accelerators
14620         only -- not the actual popup menu.
14622         * app/menus.c (menus_init): new function to create the menus.
14623         (menus_get_toolbox_menubar): use this function whether gnome is
14624         in use or not.  Changed to use menus_init.
14625         (menus_get_image_menu): same here.  Also, now this function always
14626         returns the same menu, rather than a new one each time.
14627         (menus_init): read a menurc file to load accelerators here.
14629 2000-05-28  James Henstridge  <james@daa.com.au>
14631         * app/display.c (ddisplay_really_destroy): unset active display if
14632         active display is destroyed.
14633         (ddisplay_active): simplify function to return active_display as set
14634         by display_set_active.  This allows using a pinned menu with any
14635         display -- not just the one it was popped up from.
14636         (display_set_active): notify the layer dialog of change of diagrams
14637         when active diagram changes.
14639         * app/disp_callbacks.c (ddisplay_canvas_events): set active display
14640         on button and key presses.
14641         (ddisplay_realize): set active display on realize.
14643         * app/display.c (display_set_active): simple implementation of this
14644         function.
14646         * app/display.h (display_set_active): add prototype for setting
14647         the active display.
14649         * app/interface.c (create_display_shell): don't give focus to the
14650         menu button.
14652         * app/menus.c: fix up menus for Beziergon.
14654         * app/interface.c (create_display_shell): make the widget in the
14655         top left corner a button that can be used to pop up the right click
14656         menu, like in gimp and sketch.
14658         * app/disp_callbacks.c (ddisplay_popup_menu): new function to popup
14659         the display menu.
14661         * objects/standard/beziergon.c (beziergon_set_corner_type_callback):
14662         add code to set corner types for beziergon.
14664         * lib/beziershape.c (beziershape_set_corner_type): fix up corner type
14665         setting code.
14666         (beziershape_move_handle): use the previous corner type for right
14667         controls.
14669         * app/interface.c (tool_data): add beziergon to toolbox.
14671         * objects/standard/standard.c (dia_plugin_init): initialise the new
14672         Beziergon object type.
14674         * objects/standard/beziergon.c: an object based on BezierShape.
14676         * lib/dummy_dep.h (dummy_dep): added to dummy_dep.
14678         * lib/beziershape.[ch]: new files implementing a bezier shape.
14680 2000-05-26  James Henstridge  <james@daa.com.au>
14682         * lib/text.c (text_key_event): handle multibyte inserts.
14683         (text_key_event): also add home and end keybindings.
14685         * app/interface.c (create_display_shell): connect handlers for
14686         focus_in_event, focus_out_event, realize and unrealize signals.
14688         * app/display.[ch] (new_display): initialise input context members.
14690         * app/disp_callbacks.[ch]: added XIM support here.
14692         * lib/font.c (suck_font): the black and white pixel values should be
14693         taken from a 1 bit colormap rather than the default colormap.
14695         Hans Breuer's Windows patches ...
14697         * lib/font.c: use Courier New for fixed width font on windows
14698         machines.
14700         * lib/dia_image.h: change to "struct _DiaImage".
14702         * lib/dia_image.c: change "struct DiaImage" to "struct _DiaImage"
14704         * app/disp_callbacks.c (ddisplay_canvas_events): allow ctrl+right
14705         mouse button for object menu.  This will make two button mouse owners
14706         happier.
14708 2000-05-25  James Henstridge  <james@daa.com.au>
14710         * app/filedlg.c (file_open_ok_callback): use diagram_load here.
14712         * app/app_procs.c (app_init): add extra NULL argument to call of
14713         diagram_load.
14715         * app/load_save.h: remove prototype.
14717         * app/load_save.c: remove diagram_data function here.
14719         * app/diagram.h: added prototype.
14721         * app/diagram.c (diagram_load): new function here, which uses import
14722         filters.
14724         * plug-ins/dxf/dxf.c: register the import filter as well.
14726         * plug-ins/dxf/dxf-import.c: added (unfinished) DXF import filter from
14727         Steffen Macke <macke@heini.fbbwu.fh-lueneburg.de>
14729         * objects/standard/line.c: add start_point and end_point properties
14730         to standard line object.
14732 2000-05-21  James Henstridge  <james@daa.com.au>
14734         * app/paginate_psprint.c: added missing include of locale.h.
14736         * objects/custom/custom_object.c (custom_draw): use fabs rather than
14737         abs for scaling factors.
14738         (custom_distance_from): same here.
14740         * dia.spec: make sure rpm doesn't bomb out when LINGUAS isn't set.
14742 2000-05-18  James Henstridge  <james@daa.com.au>
14744         * po/POTFILES.in: updated POTFILES.in.
14746         * dia.spec: incremented version number in spec file.
14748         * NEWS: added (lots of) news items for the 0.85 release.
14750         * app/preferences.c (prefs_save): set LC_NUMERIC to C while writing
14751         the config file.
14753         * configure.in: updated version number here.
14755         * app/Makefile.am (run_dia.sh): include plug-ins in the lib path.
14757 2000-05-17  James Henstridge  <james@daa.com.au>
14759         * app/app_procs.c (internal_plugin_init): register the native import
14760         filter.
14762         * app/load_save.c (diagram_data_load, diagram_load): split this
14763         function into two -- one that does all the work on the DiagramData
14764         structure, and the other that provides compatibility with the old
14765         function.
14766         (dia_import_filter): use diagram_data_load to define an import
14767         filter.
14769         * app/diagram.h (new_diagram): added const to prototype.
14771         * app/filedlg.c (file_open_callback): change to use new import filter
14772         code.
14774         * lib/filter.c: added import filter management functions.
14776         * lib/filter.h: added prototypes for import filter interface.
14778         * app/commands.c (help_about_callback): updated about dialog to
14779         contain a few more names.
14781 2000-05-16  James Henstridge  <james@daa.com.au>
14783         * configure.in (Configuration): added a status message to the end of
14784         the configure script to give the user some idea of what was
14785         configured.
14787         * plug-ins/dxf/Makefile.am: Makefile for new plugin.
14789         * plug-ins/dxf/dxf.c (dia_plugin_init): added file to initialise the
14790         plugin.
14792         * plug-ins/dxf/dxf-export.c: new file -- Steffen Macke's DXF export
14793         filter for dia.
14795         * configure.in (AM_PATH_LIBART): use the check function provided
14796         with libart rather than our own code.  It is more reliable, and
14797         it only requires that people who build out of CVS have libart.m4
14798         installed (not necessarily all of libart).
14799         (AM_PATH_GDK_PIXBUF): same here for gdk-pixbuf.
14801 2000-05-12  Andreas Hyden  <a.hyden@cyberpoint.se>
14803         * dia.desktop: Added Swedish translation.
14805 2000-05-09  James Henstridge  <james@daa.com.au>
14807         * lib/dia_xml.c: you can't free a const pointer, so remove const
14808         from variable definitions.
14810         Explicitely set LC_NUMERIC where needed, as sometimes it isn't
14811         initialised correctly.
14813         * app/render_svg.c (export_svg): set locale to C.
14815         * app/paginate_psprint.c (paginate_psprint): set locale to C.
14817         * app/render_eps.c (export_eps): set locale to C for EPS export.
14819         * lib/dia_xml.c (data_add_real): change to C locale for snprintf call.
14820         (data_add_point): same here.
14821         (data_add_rectangle): same here.
14822         (data_real): use g_strtod to convert strings to real numbers, so that
14823         locales are taken into account.
14824         (data_point): same here.
14825         (data_rectangle): same here.
14827         * AUTHORS: added Henk and Jacek to authors file.
14829         Daniel Egger's code cleanups.
14831         * app/select.c (select_invert_callback): remove unused variable.
14833         * app/plugin-manager.c (get_plugin_manager): fix typo.
14835         * app/load_save.c (read_connections, write_objects): 
14836         (write_connections): made some functions static.
14838         * app/interface.c (toolbox_delete, toolbox_destroy): made some
14839         functions static.
14841         * app/filedlg.c (file_export_callback): remove unused variable.
14843         * app/app_procs.c: various warning fixes.
14845         Integrating Jacek Pliszka's pstricks export filter.
14847         * plug-ins/pstricks/pstricks.c: code to initialise the plugin.
14849         * plug-ins/pstricks/render_pstricks.[ch]: Jacek Pliszka's pstricks
14850         renderer (with a few small modifications by me).
14852         * plug-ins/pstricks/Makefile.am: new makefile for pstricks plug-in.
14854         * plug-ins/Makefile.am (SUBDIRS): add pstricks subdirectory.
14856 2000-05-07  Alexander Larsson  <alla@lysator.liu.se>
14858         * configure.in:
14859         * sheets/Makefile.am:
14860         * shapes/Makefile.am:
14861         * shapes/Civil/Makefile.am:
14862         * sheets/civil.sheet:
14863         * shapes/Civil/*:
14864         Added civil/hydraulic/structural engineering objects from
14865         sdteffen <macke@heini.fbbwu.fh-lueneburg.de>.
14866         
14867 2000-05-07  Alexander Larsson  <alla@lysator.liu.se>
14869         * objects/FS/flow-poly.c:
14870         * objects/FS/flow.c:
14871         Fix division by zero in point_normalize().
14872         Patch by David Thompson <dcthomp@mail.utexas.edu>
14874 2000-04-27  Lars Clausen  <lrclause@cs.uiuc.edu>
14876         * lib/arrows.c:
14877         * lib/bezier_conn.c:
14878         * lib/connpoint_line.c:
14879         Added checks for zero-length lines before calls to point_normalize.
14881 2000-04-24  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
14883         * app/preferences.c (prefs_data): Changed
14884         reversed_dragging_intersects to not make the dialog ridiculously
14885         wide.
14886         
14887 2000-04-22  James Henstridge  <james@daa.com.au>
14889         Hans's win32 patches:
14891         * app/export_png.c: include message.h
14892         * app/interface.c: include dia_dirs.h
14893         * app/linewidth_area.c: check for rint
14894         * app/main.c: include interface.h
14895         * app/paginate_psprint.c: remove unused variable.
14896         * app/preferences.c: include message.h
14897         * app/render_svg.c: include stdlib.h
14898         * app/select.c: include object_ops.h
14899         * lib/dia_dirs.c: miscelaneous fixes for win32.
14900         * lib/dia_image.c: include string.h
14901         * lib/plug-ins.c: look for .dll files rather than .la files on win32.
14902         * lib/properties.c: include stdlib.h
14903         * lib/properties.h: define extra data for standard properties as
14904         static variables on win32 (to get around dynamic linker problems).
14905         * objects/standard/polygon.c: polygon_create_change missing return
14906         statement.
14908 2000-04-18  Pablo Saratxaga <pablo@mandrakesoft.com>
14910         * configure.in (ALL_LINGUAS): added Catalan
14912 2000-04-18  James Henstridge  <james@daa.com.au>
14914         * objects/standard/bezier.c (bezierline_get_object_menu): add a
14915         separator to the object menu between the add/remove segment items
14916         and the corner type items.
14917         (bezierline_get_object_menu): add code to disable the menu item for
14918         the current corner type.  Really just a cosmetic change.
14920         * app/disp_callbacks.c (create_object_menu): handle DiaMenuItems with
14921         a NULL for the label or with no associated callback.
14923         * objects/standard/bezier.c (bezierline_menu_items): use the
14924         enumeration values rather than numeric values for the corner types.
14926         * lib/bezier_conn.[ch]: added a corner_types member to the BezierConn
14927         structure, and add code to handle it.  Also, don't save the corner
14928         types inline in the bez_points node.  The way it is conditionally
14929         including the element just feels like it will break.
14931         * lib/geometry.h (BezPoint): removed the corner_type stuff from
14932         BezPoint.  The corner type stuff is a user interface level idea rather
14933         than something required by the renderer, so should be taken care of
14934         at the object level.
14936 2000-04-17  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
14938         * configure.in: Fixed some problems with the gdk-pixbuf/imlib
14939         checks.  Weren't able to reproduce original bug, tough.
14941 2000-04-16  Cyrille Chepelov  <chepelov@calixo.net>
14943         * sheets/Electric.sheet:
14944         * sheets/Contact.sheet:
14945         * sheets/Pneumatic.sheet:
14946         * sheets/Circuit.sheet: sprayed some <br/>'s around.
14947         (added a few French translations in the last file)
14948         
14949 2000-04-16  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
14951         * lib/geometry.h: 
14952         * lib/bezier_conn.h: 
14953         * objects/standard/bezier.c: 
14954         * lib/bezier_conn.c: Support for cuspy, smooth and symmetric
14955         bezier points.  Only one minor problem known:  Menus are active
14956         for endpoints minor handles.
14957         11:28: Save and load now works, too.
14958         (bezierconn_closest_major_handle): 12:03: New function to get the
14959         non-control point handle associated with the nearest control
14960         point.  
14961         Also fixed the menu activation problem, and made remove_segment
14962         not remove the endpoint.
14964 2000-04-15  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
14966         * configure.in: Added check for gdk-pixbuf being >= 0.7.0 since
14967         new API is in use.
14969 2000-04-15  Asbjorn Pettersen  <asbjornP@dualog.no>
14971         * lib/plug-ins.c: Added <sys/types.h> and moved <fcntl.h> below
14972         <sys/stat.h>.   OS/2 patch.
14974 2000-04-15  James Henstridge  <james@daa.com.au>
14976         * objects/FS/flow-ortho.c, objects/FS/function.c: Applied David
14977         Thompson's patch that adds undo support to the function structure
14978         diagram objects.
14980 2000-04-14  James Henstridge  <james@daa.com.au>
14982         * objects/custom/custom_object.c (custom_distance_from): new
14983         implementation of distance algorithm that actually takes the
14984         display list into account when calculating the distance.  Much nicer
14985         than a simple bounding box.
14987 2000-04-13  Lars Clausen  <lrclause@cs.uiuc.edu>>
14989         * lib/geometry.c (line_crosses_ray): Fixed division by zero bug
14991 2000-04-12  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
14993         * objects/standard/polygon.c: Start of polygons own changes (for
14994         connectionpoints).  Need to do seperate changes in polyshape, too,
14995         rather than reuse the bezier changes.
14997 2000-04-13  James Henstridge  <james@daa.com.au>
14999         * lib/dia_image.c (dia_image_draw): use the new enumeration values
15000         from after the gdk-pixbuf cleanup.
15002         * lib/geometry.c (bez_point_distance_and_ray_crosses): fix up limit
15003         on for loop.  Last set of coefficients were not beeing calculated,
15004         which caused a bit of breakage.
15006         * lib/bezier_conn.c (bezierconn_closest_segment): use the new
15007         functions in geometry.c for calculating the closest segment.
15008         (bezierconn_distance_from): use distance_bez_line_point to calculate
15009         the distance.
15011         * lib/geometry.c (distance_bez_line_point): new function to calculate
15012         the distance from an open bezier line to a point.
15013         (distance_bez_shape_point): new function to calculate the distance
15014         from a closed bezier shape.
15015         (distance_ellipse_point): new function to calculate the distance from
15016         a filled ellipse to a point.
15018         * lib/geometry.h (BezPoint): moved this structure here from render.h
15020 2000-04-12  James Henstridge  <james@daa.com.au>
15022         * lib/geometry.c (distance_bez_seg_point): new function to calculate
15023         the distance from a bezier segment.
15025         * lib/polyshape.c (polyshape_distance_from): use distance_polygon_point
15026         to calculate the distance from the object.
15028         * lib/geometry.c (distance_polygon_point): function for calculating
15029         the distance from a polygon to a point.
15031 2000-04-12  Cyrille Chepelov  <chepelov@calixo.net>
15033         * app/interface.c:
15034         * lib/sheet.[ch]: added a <br/> tag in sheet files, so that line 
15035         breaks can be inserted in the tool box. 
15037         * doc/sheet.dtd: updated the DTD
15038         * sheets/GRAFCET.sheet: tried <br/> on that sheet (more to come).
15039         
15040 2000-04-12  James Henstridge  <james@daa.com.au>
15042         * app/plugin-manager.c (get_plugin_manager): use the GTK_DIALOG
15043         macro if the dialog is a GtkDialog :(
15045 2000-04-11  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
15047         * objects/standard/polygon.c: Connectionpoints now properly
15048         managed in a GList.  As far as I can tell, this will not dieturb
15049         the order (but I have the nagging doubt...)
15051         * lib/polyshape.c: No longer knows about connectionpoints.
15053 2000-04-11  James Henstridge  <james@daa.com.au>
15055         * app/Makefile.am: fix makefile for bonobo build.
15057         * configure.in: fix checks for bonobo.
15059         * app/menus.c: added entries for the plugin manager.
15061         * app/Makefile.am (dia_core_files): added plugin manager to files
15062         list.
15064         * app/plugin-manager.[ch]: the plugin manager dialog.
15066         * app/display.c (display_update_menu_state): set the antialiased
15067         menu entry to the correct value.
15069 2000-04-11  Cyrille Chepelov  <chepelov@calixo.net>
15071         * objects/custom/custom_object.c: not all renderers like ellipses with
15072         negative dimensions. This could cause ellipses to disappear when using
15073         the flip_h and flip_v functions.
15075         * samples/grafcet.dia: fixed speling and correctness.
15076         
15077 2000-04-11  James Henstridge  <james@daa.com.au>
15079         * lib/plug-ins.[ch]: added more accessors for use by a plugins dialog.
15080         exposed the dia_plugin_load and dia_plugin_unload functions.
15082         * lib/plug-ins.c (plugin_load): change plugin_load to work on an
15083         already created PluginInfo structure.
15085         * app/app_procs.c (app_exit): call dia_pluginrc_write() to write
15086         the pluginrc file.
15088         * lib/sheet.c: fix up call to dia_config_filename.
15090         * lib/plug-ins.[ch]: started writing code for handling a pluginrc
15091         file.  This would save information such as which plugins not to
15092         load during startup.
15094 2000-04-09  James Henstridge  <james@daa.com.au>
15096         * lib/sheet.c: use dia_config_filename to resolve file in ~/.dia.
15098 2000-04-10  Alexander Larsson  <alla@lysator.liu.se>
15100         * lib/plug-ins.c (dia_register_plugins):
15101         Don't free the value returned from g_getenv.
15103 2000-04-09  Anders Carlsson  <andersca@gnu.org>
15105         * app/preferences.h: Add reverse_rubberbanding_intersects preference variable.
15107         * app/preferences.c (prefs_data): Add reverse_rubberbanding_intersects preference data.
15109         * app/modify_tool.c (modify_button_release): If rubberbanding is done from 
15110         right to left, select objects that intersect the rubberbanding rectangle
15111         instead of selecting objects that are in the rectangle.
15113         * lib/diagramdata.c (layer_find_objects_intersecting_rectangle): Add function.
15115         * lib/diagramdata.h: Likewise.
15118 2000-04-09  James Henstridge  <james@daa.com.au>
15120         * lib/plug-ins.[ch]: add copyright messages to files.
15122         * plug-ins/cgm/cgm.c (dia_plugin_init): convert plugin over to new
15123         plugin interface.
15125         * objects/sybase/sybase.c (dia_plugin_init): 
15126         * objects/network/network.c (dia_plugin_init): 
15127         * objects/flowchart/flowchart.c (dia_plugin_init): 
15128         * objects/custom/custom.c (dia_plugin_init): 
15129         * objects/chronogram/chronogram.c (dia_plugin_init): 
15130         * objects/UML/uml.c (dia_plugin_init): 
15131         * objects/SADT/sadt.c (dia_plugin_init): 
15132         * objects/GRAFCET/grafcet.c (dia_plugin_init): 
15133         * objects/FS/fs.c (dia_plugin_init): 
15134         * objects/ER/er.c (dia_plugin_init): updated plugin load code for
15135         object libraries.
15137         * objects/standard/standard.c (dia_plugin_init): change over to new
15138         plugin interface.
15140         * lib/plug-ins.h (DIA_PLUGIN_CHECK_INIT): added a macro to define
15141         the version checker for plugins.
15143         * app/app_procs.c: remove plugin loading code from here, and use
15144         code from plug-ins.[ch].  Also move registration of internal
15145         objects/filters to a `builtin' plugin.
15147         * lib/Makefile.am (libdia_a_SOURCES): added plug-ins.[ch] to library.
15149         * configure.in: use AC_PROG_LIBTOOL rather than AM_PROG_LIBTOOL.
15151         * app/Makefile.am (EXTRA_DIST): you can't include a conditionally
15152         defined variable in EXTRA_DIST.
15154         * app/preferences.h: removed dia_config_filename from header.
15156         * app/preferences.c: removed dia_config_filename function.
15158         * lib/dia_dirs.c (dia_config_filename): moved function over to this
15159         file.  Also changed implementation slightly so that it should work
15160         on the win32 port correctly (and use NT home directories).
15162         * lib/dia_dirs.h (dia_config_filename): move dia_config_filename where
15163         it should have been.
15165         * lib/plug-ins.[ch]: new plugin loading code.
15167 2000-04-08  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
15169         * objects/standard/polygon.c: Fixed startup crash bug (do'h!).
15171         * lib/polyshape.c: Fix closest segment finding, exposes deeper
15172         bugs in adding corners to 'wraparound' segment.
15174         * objects/standard/polygon.c: Added connection points (fixed so
15175         far), set menu sensitivity.
15177         * lib/polyshape.c: Changed to box-style handles, fixed for start
15178         and ends not being special, added initial connections,
15180         * lib/dummy_dep.h: Added polyshape (gotcha!)
15182         * objects/standard/pixmaps/ellipse.xpm: 
15183         * objects/standard/pixmaps/box.xpm: 
15184         Filled element pixmaps with white.
15186         * lib/polyshape.c: 
15187         * objects/standard/polygon.c: 
15188         * lib/polyshape.h: 
15189         * objects/standard/standard.c: 
15190         * objects/standard/Makefile.am (libstandard_objects_la_SOURCES): 
15191         * lib/Makefile.am (libdia_a_SOURCES): 
15192         * app/menus.c: 
15193         * app/interface.c (tool_data): 
15194         Added Standard/Polygon object and PolyShape lib object.  Still
15195         needs inside grab and connection points.
15197         * app/commands.c (help_about_callback): Now uses gdk-pixbuf if
15198         available. 
15200         * configure.in: Made imlib a fallback if gdk-pixbuf is absent or
15201         not wanted.
15203         * app/app_procs.c (app_init): Moved gtk_init outside #ifdef, moved
15204         if (argv) outside ifdefs.
15206 2000-04-04  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
15208         * objects/standard/image.c (image_set_props): 
15209         Aspect ratio is back in town.
15211         * app/Makefile.am (dia_LDADD): 
15212         * acconfig.h: 
15213         * configure.in: 
15214         Check for gdk_pixbuf (by default disabled, for now)
15216         * app/render_eps.c (draw_image): 
15217         * app/render_libart.c (draw_image): 
15218         * app/render_gnomeprint.c (draw_image): 
15219         Support for alpha mask in rendering.  Color postscript, too.
15221         * lib/dia_image.c: 
15222         * lib/dia_image.h: 
15223         Support for gdk_pixbuf and proper masking for exports.
15225 2000-04-01  Kjartan Maraas  <kmaraas@online.no>
15227         * sheets/*.sheets: Updated Norwegian translations.
15228         
15229 2000-03-30  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
15231         * lib/text.c (text_insert_char): 
15232         * lib/render_store.c (add_data): 
15233         Made realloc double the alloced space rather than add
15234         a fixed amount, to reduce memory stress.
15236         * app/select.c: Added new select method 'Transitive'
15237         that select every reachable (by connections) object.
15239 2000-03-27  Kjartan Maraas  <kmaraas@online.no>
15241         * dia.desktop: Added Norwegian translation.
15242         
15243 2000-03-26  Alexander Larsson  <alla@lysator.liu.se>
15245         * app/render_eps.c:
15246         * app/render_svg.c:
15247         Don't dereference NULL pointer if the renderer
15248         couldn't open the file. Fix by Lars Clausen.
15249         Bug reported by Martin Chisholm <b1mt@unb.ca>
15250         
15251 2000-03-26  Alexander Larsson  <alla@lysator.liu.se>
15253         * dia.desktop:
15254         * po/pt.po:
15255         Updated pt translation from Pedro Morais <pmmm@rnl.ist.utl.pt>
15257 2000-03-25  Alexander Larsson  <alla@lysator.liu.se>
15259         * app/dia.gnorba (location_info):
15260         Changed to correct executable name.
15262 2000-03-25  Alexander Larsson  <alla@lysator.liu.se>
15264         * app/app_procs.c:
15265         Don't do any argument parsing or initialization
15266         if argv==NULL.
15268         * app/dia_embedd.c:
15269         Call init_server_factroy before app_init.
15270         Call app_init with argv==NULL
15271         Now we don't get any critical error on startup.
15273         * configure.in:
15274         Add Electric and Pneumatic to makefile list.
15275         
15276 2000-03-24  Cyrille Chepelov <chepelov@calixo.net>
15278         * shapes/Electric/*:
15279         * sheets/Electric.sheet:
15280         Add some Electric circuit shapes.
15282         * shapes/Pneumatic/*:
15283         * sheets/Pneumatic.sheet:
15284         Add some Pneumatic & Hydraulic circuit shapes
15285         (both sheets are still incomplete, though feature enough 
15286         things for basic circuits).
15288         * shapes/Contact/l_*.(xpm|shape):
15289         * sheets/Contact.sheet
15290         * shapes/Contact/Makefile.am
15291         made the older electric circuit shapes in Contact obsolete (disabled
15292         them in the sheet, made that sheet Ladder only). Fixed the makefile
15293         for forgotten items.
15294         
15295 2000-03-24  Alexander Larsson  <alla@lysator.liu.se>
15297         * app/Makefile.am:
15298         Add support for Dia bonobo component.
15299         Currently a bit raw, so it's commented out.
15300         
15301         * app/dia_embedd.c:
15302         * app/dia.gnorba:
15303         New files for embedding dia.
15304         The menu disabling hack is a bit gross. Esp. for GNOME.
15306         * app/app_procs.h:
15307         Add new function app_is_embedded();
15309         * app/diagram.c:
15310         Don't destroy diagram when last display is destroyed if embedded.
15311         
15312         * app/display.c:
15313         Change initialization of display so it works with embedding.
15315         * app/display.h:
15316         Clarify comment about display destruction.
15318         * app/interface.[ch]:
15319         Added top_level_window argument to create_display_shell.
15320         Don't open a top-level window if embedding.
15321         Don't quit app if trying to close toolbox window when embedding.
15322         Add toolbox_show() and toolbox_hide().
15324         * app/main.c:
15325         Added app_is_embedded() function (just returns false).
15326         Added toolbox_show() call in main().
15328         * app/menus.c:
15329         Added code for getting toolbox menus. This is used to
15330         hide some menu items when running embedded.
15331         
15332         * app/app_procs.c:
15333         Include sheet.h to remove warning.
15335         * objects/UML/association.c:
15336         Clarify association direction text.
15337         
15338 2000-03-16  Fredrik Hallenberg  <hallon@lysator.liu.se>
15340         * dia.1
15341         Fixed man page so whatis parsing works.
15343 2000-03-12  Alexander Larsson  <alla@lysator.liu.se>
15345         * app/render_libart.c (new_libart_renderer):
15346         Fix from segg <segg@infonet.ca> to compile without libart.
15347         I forgot to change the stub for new_libart_renderer when doing
15348         the interactive renderer stuff for libart.
15350 2000-03-11  Alastair McKinstry  <mckinstry@computer.org>
15352         * dia.desktop: Added Irish translation.
15353         
15354         * configure.in (ALL_LINGUAS): Added Irish (ga) translation.
15356 2000-03-07  Asbjorn Pettersen  <asbjornP@dualog.no>
15358         * app/load_save.c (fchmod): OS/2 defines only.
15360 2000-03-07  James Henstridge  <james@daa.com.au>
15362         * lib/properties.c (prop_get_widget): set the position in the option
15363         menu correctly.
15365 2000-03-06  Alexander Larsson  <alla@lysator.liu.se>
15367         * app/display.c:
15368         * app/export_png.c:
15369         * app/render_libart.[ch]:
15370         Don't export png:s with an interactive libart renderer.
15372 2000-03-03  Asbjorn Pettersen  <asbjornP@dualog.no>
15374         * lib/arrows.c (finite): define finite(d) isfinite(d)  for OS/2
15376 2000-03-02  James Henstridge  <james@daa.com.au>
15378         * dia.spec (%build): unset LINGUAS before running configure.  This
15379         ensures that all translations get included in the RPM.
15381         * lib/properties.c (object_create_props_dialog): put in a check for
15382         a NULL return from the describe_props() object method.
15383         (prop_desc_lists_union): make sure that the returned array is not
15384         NULL.
15385         (prop_desc_lists_intersection): same here.
15387 2000-02-29  Alexander Larsson  <alla@lysator.liu.se>
15389         * objects/ER/Makefile.am:
15390         * objects/FS/Makefile.am:
15391         * objects/UML/Makefile.am:
15392         Don't link object libs with gtk.
15394 2000-02-29  James Henstridge  <james@daa.com.au>
15396         * app/preferences.c (prefs_save): check to see if the file could
15397         be opened before writing the prefs.
15399         * app/disp_callbacks.c (popup_object_menu): pass the button event
15400         to gtk_menu_popup.  This allows you to click and release to open
15401         the object menu.
15402         (ddisplay_canvas_events): same here.
15403         (create_object_menu): set the object type menu item in the object
15404         menu to be insensitive.
15406         * app/render_svg.c (draw_string): call xmlEncodeEntitiesReentrant,
15407         as we are now requiring a new version of libxml.
15409         * dia.spec: updated version number.  Added requirement for
15410         libxml >= 1.8.5
15412         * configure.in: incremented version number to 0.84.
15413         Added check for libxml >= 1.8.5.  This will prevent some of the
15414         problems people have had with broken libxml versions.
15416         * NEWS: added news items.
15418         * app/interface.c (create_color_area): removed call to realize parent
15419         widget.  Segg <segg@infonet.ca> reported that it caused a warning,
15420         but I haven't seen it on my copy of dia.
15422 2000-02-28  James Henstridge  <james@daa.com.au>
15424         * app/export_png.c: added copyright notice, and made the band height
15425         a constant.
15427 2000-02-27  Alexander Larsson  <alla@lysator.liu.se>
15429         * lib/font.c (suck_font):
15430         Fixed off-by one bug in font pixmap height.
15431         Fixes the problem with garbage at the bottom of some text in aa mode
15432         and in png exported files.
15434 2000-02-27  James Henstridge  <james@daa.com.au>
15436         * app/app_procs.c: add the png export filter if it was compiled in.
15438         * app/export_png.c (export_png): new PNG export filter.  This requires
15439         the libart renderer to work as it needs a renderer that renders to a
15440         pixel buffer.
15442         * configure.in: add check for libpng.
15444         * lib/message.c (message_internal): use a GNOME dialog here as well.
15446         * app/display.c (ddisplay_close): use a GNOME dialog here.
15448         * app/render_eps.c (create_eps_renderer): use diagram scaling factor
15449         when exporting to EPS.  This is because some people said the EPS
15450         output was too large
15452 2000-02-26  James Henstridge  <james@daa.com.au>
15454         * app/defaults.c (create_dialog): use a GNOME dialog for the defaults
15455         window.
15457         * app/app_procs.c (app_exit): use a GNOME dialog here.
15459         * app/preferences.c (prefs_create_dialog): if GNOME support is
15460         enabled, show a GNOME dialog.
15462         * app/grid.c (grid_draw): use preferences when drawing page break
15463         lines.
15465         * app/preferences.c: add page break preferences to dialog.
15467         * app/preferences.h: added page break preferences.
15469 2000-02-25  James Henstridge  <james@daa.com.au>
15471         * sheets/UML.sheet: added new objects.
15473         * objects/UML/uml.c: link in the two new objects.
15475         * objects/UML/node.c: 
15476         * objects/UML/branch.c: new UML objects from Stfan Seefeld
15477         <seefelds@magellan.umontreal.ca>.
15479 2000-02-24  James Henstridge  <james@daa.com.au>
15481         * objects/custom/custom_object.c: converted to use the properties
15482         interface.  In the future, it would be nice to add support for
15483         defining custom properties for custom objects, but that can wait.
15485 2000-02-22  James Henstridge  <james@daa.com.au>
15487         * sheets/Circuit.sheet: added new circuit shapes to sheet.
15489         * plug-ins/cgm/cgm.c: cgm plugin updates from Henk Jan Priester
15490         <hj@justcroft.com>.  Fixes number encoding, colour encoding, fonts
15491         and adds a few new features.
15493 2000-02-21  Daniel Egger  <egger@suse.de>
15495         * sheets/*.sheets: Added German translations and made some
15496         corrections to the others.
15497         
15498 2000-02-21  James Henstridge  <james@daa.com.au>
15500         * shapes/Circuit/Makefile.am (SHAPES): added new shapes to list.
15502         * shapes/Circuit/...: added new shapes from Erik Janssens.
15504 2000-02-20  James Henstridge  <james@daa.com.au>
15506         * app/interface.c (create_color_area): realize the parent window
15507         first.
15509         * objects/standard/image.c: properties patch for standard image
15510         object, from Lars Clausen.
15512         * lib/properties.c: support for PROP_TYPE_FILE from Lars Clausen.
15514         * lib/properties.h (PropType): added file property type.
15516         * shapes/Circuit/speaker_de.xpm: changed size of pixmap to match
15517         other shapes.
15519         * app/interface.c: use wrap box for toolbox.
15521         * app/Makefile.am: added new files.
15523         * app/gtk*wrapbox.[ch]: added wrap box widget.
15525 2000-02-19  James Henstridge  <james@daa.com.au>
15527         * sheets/network.sheet: added extra shapes to networks sheet.
15529         * configure.in (AC_OUTPUT): added shapes/network/Makefile
15531         * shapes/network/*: added shapes that were posted to the list a while
15532         back.
15533         
15534         * shapes/Makefile.am (SUBDIRS): added network subdirectory
15536         * app/menus.c (toolbox_menu_items): don't right justify help menu for
15537         gtk+ version of menus.
15539         * app/properties.c (create_dialog): use a GnomeDialog if we happen
15540         to be using gnome.
15542 2000-02-18  James Henstridge  <james@daa.com.au>
15544         * objects/flowchart/box.c: set extra data for corner radius and text
15545         padding properties.
15547         * objects/standard/box.c: set extra data for corner radius property.
15549         * lib/properties.h: set extra data in some standard properties.
15551         * lib/properties.c (prop_get_widget): look at the extra data for
15552         int, real and enum property types.  They now use GtkSpinButton and
15553         GtkOptionMenu respectively.
15555         * lib/properties.h: extra data members for creating property setting
15556         widgets.
15558 2000-02-17  James Henstridge  <james@daa.com.au>
15560         * objects/flowchart/box.c: reverted load/save functions back to
15561         previous implementations.  Made box use standard property names.
15563         * plug-ins/cgm/cgm.c (set_linestyle): was missing a */
15565         * app/grid.c: add more digits to the grid edit dialog.  This patch
15566         was also from Lars Clausen.
15568         * objects/standard/zigzagline.c: 
15569         * objects/standard/textobj.c:
15570         * objects/standard/polyline.c:
15571         * objects/standard/line.c:
15572         * objects/standard/ellipse.c:
15573         * objects/standard/box.c: 
15574         * objects/standard/bezier.c: 
15575         * objects/standard/arc.c: patches to add properties code to standard
15576         objects.  Based on patches from Lars Clausen.  I have also removed
15577         some dead code from the files.
15579         * lib/properties.h (PROP_STD_*): define a number of standard
15580         properties.  Where appropriate, objects should include these
15581         properties in their PropDescription list.  This way, the intersection
15582         of properties of two different shapes will be greater.
15584 2000-02-14  James Henstridge  <james@daa.com.au>
15586         * objects/flowchart/box.c (box_load, box_save): use property save
15587         routines.  Make sure that any props not handled by object_load_props
15588         are loaded before calling object_load_props, or we get errors because
15589         update_data is called.
15591         * lib/properties.c (object_get_props_from_offsets): fixed an indexing
15592         error that could cause properties to be loaded incorrectly.
15593         (object_set_props_from_offsets): similar here.
15595         * lib/properties.[ch] (prop_{load,save}): functions for loading
15596         or saving a property in Dia's XML file format.
15597         (object_{load,save}_props): load or save some properties of an
15598         object.  These functions should help simplify the load/save methods
15599         of objects that implement the properties interface.
15601 2000-02-13  James Henstridge  <james@daa.com.au>
15603         * objects/flowchart/box.c: use offset code to simplify property
15604         get/set routines.
15606         * lib/element.h (ELEMENT_COMMON_PROPERTIES): standard element
15607         properties.
15608         (ELEMENT_COMMON_PROPERTIES_OFFSETS): offsets.
15610         * lib/object.h (OBJECT_COMMON_PROPERTIES): list of standard object
15611         properties.
15612         (OBJECT_COMMON_PROPERTIES_OFFSETS): the offsets of the properties.
15614         * lib/properties.[ch] (object_{get,set}_props_from_offsets): new
15615         functions 
15617 2000-02-12  Alexander Larsson  <alla@lysator.liu.se>
15619         * app/Makefile.am:
15620         Add the custom object to DIA_LIB_PATH in run_dia.sh
15622 2000-02-10  Cyrille Chepelov  <chepelov@calixo.net>
15624         * sheets/Circuit.sheet:
15625         * shapes/l_sout* (NEW):
15626         * shapes/l_outj.* (NEW): added new outputs : jump, and the power-saved
15627         variants of simple, inverted, set and reset outputs.
15628         Still to do: all Schneider/Telemecanique TSX *7 function blocks ; 
15629         probably a split of Contact and Ladder sheets. And then a major 
15630         revamping of the Contact sheet.
15632 2000-02-10  James Henstridge  <james@daa.com.au>
15634         * app/Makefile.am (dia_LDADD): don't link with libcustom_objects.
15636         * app/app_procs.c (register_all_objects): don't explicitely
15637         register the custom objects library -- let it be loaded by the
15638         normal plugin loading methods.
15640         * lib/Makefile.am (libdia_a_SOURCES): don't include custom.h here.
15642         * objects/custom/Makefile.am: build libcustom_objects as a shared
15643         library again.
15645         * objects/custom/shape_info.[ch]: don't read the description field
15646         of custom shapes.  It makes more sense to have these in the sheet
15647         file to localise the parts of dia that translators have to deal
15648         with.
15650         * objects/custom/custom_object.c (custom_object_new): do not
15651         create the sheet object for the new custom shape -- this is
15652         handled by the custom sheet code.
15654         * objects/custom/custom.c: change over to being a normal plug-in
15655         rather than being linked with the main dia executable.
15657 2000-02-09  James Henstridge  <james@daa.com.au>
15659         * sheets/Circuit.sheet: 
15660         * sheets/Flowchart.sheet: 
15661         * sheets/Contact.sheet: fixed up sheets.
15663         * objects/custom/custom_object.c (custom_object_new): set the
15664         extra ObjectType fields.
15666         * lib/sheet.c: use extra ObjectType fields when creating sheet
15667         objects.  Give a warning if <shape> tags are found in a sheet
15668         file.  Now the custom sheet code does not know about custom
15669         shapes -- they look like any other object type.
15671         * lib/object.h (ObjectType): added extra members
15673 2000-02-08  Alexander Larsson  <alla@lysator.liu.se>
15675         * app/linewidth_area.c:
15676         Added code to set arbitrary line width.
15677         Patch by Lars Clausen <lrclause@cs.uiuc.edu>
15679 2000-02-08  Alexander Larsson  <alla@lysator.liu.se>
15681         * app/linewidth_area.c: 
15682         * lib/font.[ch]:
15683         Add support for font-sucking.
15684         Implementation borrowed from gnome-canvas.
15685         
15686         * app/render_libart.[ch]:
15687         Implement text rendering.
15689 2000-02-07  Alexander Larsson  <alla@lysator.liu.se>
15691         * app/properties.c (create_dialog):
15692         ref and sink no_properties_dialog.
15694 2000-02-07  James Henstridge  <james@daa.com.au>
15696         * app/group.c (group_describe_props): new function.  Return the
15697         intersection of the properties of the contained objects that
15698         implement the describe_props interface.
15699         (group_get_props): implement by iterating through contained objects
15700         and calling their get_props method until all properties have been
15701         set.  Maybe this should go through all objects all the time??
15702         (group_set_props): implement by calling set_props method on all
15703         contained objects.
15704         (group_ops): use standard props dialog creation routines.
15706         * lib/properties.c (prop_desc_lists_intersection): fix implementation
15707         of intersection -- I was using i++ instead of i-- in a for loop :(
15709         * objects/custom/custom.c (custom_register_objects): fix usage
15710         of dia_get_data_directory again.
15712         * lib/sheet.c: fix up use of dia_get_data_directory, so that we
15713         actually read the sheets.
15715 2000-02-06  Alexander Larsson  <alla@lysator.liu.se>
15717         Win32 port by Hans Breuer <Hans@Breuer.org>
15719         * app/Makefile.am:
15720         Remove DATADIR and LIBDIR defines.
15722         * lib/Makefile.am:
15723         Add dia_dirs.c and dia_dirs.h
15724         Added DATADIR and LIBDIR defines.
15726         * lib/dia_dirs.[ch]:
15727         New files for handling special directories.
15729         * app/app_procs.c:
15730         * app/commands.c:
15731         * lib/sheet.c:
15732         * objects/custom/custom.c:
15733         Fix warnings.  Use directory functions.
15735         * app/diagram.h:
15736         Add prototype for diagram_redraw_all.
15738         * app/diaunitspinner.c:
15739         * app/filedlg.c:
15740         * app/interface.c:
15741         * app/preferences.c:
15742         Fix warning.
15744         * app/load_save.c:
15745         Win32 doesn't have mkstemp and fchmod.
15747         * app/paginate_psprint.c:
15748         Win32 calls popen _popen and pclose _pclose.
15749         
15750         * app/arrow.c:
15751         Win32 calls finite _finite.
15753         * lib/color.h:
15754         Win32 needs to dllexport the color vars.
15756         * objects/GRAFCET/step.c:
15757         * objects/chronogram/chronoref.c:
15758         snprintf -> g_snprintf
15760 2000-02-05  James Henstridge  <james@daa.com.au>
15762         * lib/properties.c: more fixes so that it doesn't crash when using
15763         properties.  The undo/redo stuff also works!!
15765         * objects/flowchart/box.c (box_{describe, get, set}_props): test
15766         object where I have implemented the new properties interface
15767         complete with automatic properties dialog generation.
15769         * lib/properties.c (object_apply_props): fixed stupid error when
15770         creating the old_props array.  Also, it no longer frees the props
15771         array -- you will have to do that yourself.
15773 2000-02-04  James Henstridge  <james@daa.com.au>
15775         * app/properties.c (properties_apply): pass object_part to
15776         apply_properties.
15778         * lib/object.h (ApplyPropertiesFunc): added widget argument.
15780         * lib/lazyprops.h (PROPDLG_CREATE): ref and sink properties dialogs
15781         created this way as well.
15783         * objects/*/*.c: ref and sink the properties dialog window for each
15784         widget.  It can't rely on ref count being incremented by
15785         properties_show anymore.
15787         * app/properties.c (properties_show): don't ref the widget before
15788         removing it, or its ref count will increase each time you open the
15789         properties dialog.  Don't unparent the widget, as container_remove
15790         does that for us.
15792         * lib/object.h: fixed up prototypes for new object methods.
15794         * lib/properties.[ch]: added functions for automatically creating
15795         a properties dialog from the output of describe_props, get_props and
15796         set_props.
15797         (object_apply_props): apply properties and return an ObjectChange
15798         structure that can be used for undo.
15800 2000-02-03  Cyrille Chepelov  <chepelov@calixo.net>
15802         * objects/GRAFCET/transition.c: minor leak plugged.
15804         * sheets/GRAFCET.sheet:
15805         * objects/GRAFCET/pixmaps/condition.xpm: (NEW)
15806         * objects/GRAFCET/condition.c: (NEW) added a new object type, action 
15807         conditions.
15808         * objects/GRAFCET/Makefile.am: fixed incorrect dependencies, added
15809         new ones (for condition.c).
15810         * objects/GRAFCET/action.c: added connection points for the conditions.
15811         * samples/grafcet.dia: updated the sample to improve conformance to
15812         IEC 848 and take advantage of dia's new features.
15813         
15814         * lib/geometry.h: (point_get_normed) fixed a typo.
15816 2000-02-02  James Henstridge  <james@daa.com.au>
15818         * lib/object.h: added object functions describe_props, get_props and
15819         set_props.  Do type definitions so that object.h doesn't need to
15820         include properties.h, since properties.h includes object.h.
15822         * lib/properties.[ch]: more hacking.
15824         * po/de.po: updated po file.
15826 2000-01-30  James Henstridge  <james@daa.com.au>
15828         * configure.in: don't add flags to CFLAGS unconditionally.  Instead,
15829         check to see if the C compiler accepts the flag beforehand.
15831         * lib/properties.[ch]: start of properties code.
15833         * shapes/Contact/Makefile.am (SHAPES): fix up makefile.
15835 2000-01-30  Cyrille Chepelov  <chepelov@calixo.net>
15836         
15837         * sheets/GRAFCET.sheet:
15838         * sheets/GRAFCET/etapemc.xpm: (NEW)
15839         * sheets/GRAFCET/etapesp.xpm: (NEW)
15840         * objects/GRAFCET/step.c: Added the macro and
15841         sub-program call step types.
15843         * objects/GRAFCET/receptivity.[ch]: renamed to 
15844         objects/GRAFCET/boolequation.[ch]. 
15845         * objects/GRAFCET/transition.c: changed (Receptivity *) to 
15846         (BoolEquation *)
15848         * lib/connpoint_line.[ch]: 
15849         * objects/chronogram/chronoline.c:
15850         * objects/chronogram/chronoref.c:
15851         * objects/GRAFCET/vergent.c:
15852         * objects/standard/line.c:
15853         * objects/SADT/box.c: Minor CPL interface changes, factored out the
15854         point count adjustment code into the CPL object.
15855         
15856 2000-01-29  Alexander Larsson  <alla@lysator.liu.se>
15858         * app/render_libart.c:
15859         Added support for images and bezier curves.
15860         Only text/fonts missing now.
15862         * app/render_gdk.c:
15863         Removed old erronous comment.
15865 2000-01-29  Cyrille Chepelov <chepelov@calixo.net>
15867         * objects/chronogram/chronoline_event.c: removed references to
15868         lround(). Please don't insist, I'm already red of shame.
15869         
15870 2000-01-29  Alexander Larsson  <alla@lysator.liu.se>
15872         * app/render_libart.[ch]:
15873         * app/Makefile.am:
15874         Non-finished libart renderer.
15876         * acconfig.h:
15877         Added HAVE_LIBART flag
15879         * configure.in:
15880         Added libart probe
15882         * app/app_procs.c:
15883         Call gdk_rbg_init().
15885         * app/connectionpoint_ops.c:
15886         * app/disp_callbacks.c:
15887         * app/grid.c:
15888         * app/handle_ops.c:
15889         * app/magnify.c:
15890         * app/modify_tool.c:
15891         Change ddisp->renderer type from RendererGdk * to Renderer *
15892         Draw zoom and select rects in ddisp->canvas->window instead
15893         of ddisp->renderer->renderer->pixmap.
15895         * app/display.[ch]:
15896         Add aa_renderer to DDisplay, and  support for it.
15897         New function ddisplay_set_renderer() for changing renderer.
15898         Add ddisplay_transform_coords_double() function, used by aa renderer.
15899         Change ddisp->renderer type from RendererGdk * to Renderer *
15901         * app/menus.c:
15902         Add antialias to menu.
15903         
15904         * app/commands.[ch]:
15905         add view_aa_callback function
15906         Change ddisp->renderer type from RendererGdk * to Renderer *
15908         * lib/geometry.[ch]:
15909         Added IntRectangle and int_rectangle_union.
15911 2000-01-28  James Henstridge  <james@daa.com.au>
15913         * app/commands.h: removed prototypes.
15915         * app/commands.c: removed the functions that have been moved to
15916         filedlg.c.
15918         * app/filedlg.h: added new prototypes.
15920         * app/filedlg.c (file_open_callback): move open dialog to this
15921         file.  This implementation should remember the current directory
15922         between file loads.
15923         (file_save_as_callback): moved this dialog as well.
15924         (file_save_callback): moved this function here.
15926         * app/paginate_psprint.c (paginate_psprint): if not in fit to mode,
15927         align page boundaries to the origin.
15929         * app/diagram.c (diagram_update_extents): redraw the diagram if the
15930         scaling factor changes while updating the extents.  This is so the
15931         page breaks get redrawn correctly.
15933         * app/pagesetup.c (pagesetup_apply): added diagram_flush call when
15934         applying changes.
15936         * app/grid.c (grid_draw): draw page breaks as well as grid lines.
15937         For normal mode, use (0,0) as the origin.  For `fit to' mode, use
15938         the corner of the bounding box.
15940         * app/pagesetup.c (create_page_setup_dlg): load new paper attributes
15941         into page setup dialog.
15942         (pagesetup_apply): apply new `fit to' attributes to the diagram.
15944         * app/load_save.c (diagram_load): load new paper `fit to' attributes.
15945         (diagram_data_save): save `fit to' data.
15947         * lib/diagramdata.c (new_diagram_data): initialise `fit to' members.
15948         (data_update_extents): when in `fit to' mode, update scale factor
15949         when we update the extents.
15951         * lib/diagramdata.h (PaperInfo): added `fit to' members to PaperInfo
15952         structure.
15954         * .../.cvsignore: added some cvsignore files to quieten cvs.
15955         
15956         * app/pagesetup.c (pagesetup_changed): added code to change the
15957         scaling/fit to values as you change the options in the page setup
15958         dialog.  I haven't added code so that the fit to options are saved
15959         though.
15961         * app/diapagelayout.[ch]: changed the scaling portion of the widget
15962         to make it easier to set a `fit to' style scaling factor.
15964 2000-01-27 Cyrille Chepelov <chepelov@calixo.net>
15965         * lib/neworth_conn.[ch]: (NEW) Temporary (hopefully) fork of orth_conn,
15966         but connpoint_line-based, so that there's a connection point at the 
15967         middle of each segment. Currently only the SADT arrow uses this.
15969         * objects/SADT/* (NEW): SADT (both idf0 and idf1) support.
15970         
15971 2000-01-26 Cyrille Chepelov <chepelov@calixo.net>
15972         * lib/lazyprops.[ch]:(NEW) Added a bunch of macros for loading, 
15973         saving and editing of properties (and default properties). 
15974         See the new objects (GRAFCET, SADT, chonograms) for examples.
15975         For already too hairy stuff, see objects/chronogram/chronoline.c.
15977         * lib/connpoint_line.[ch] (NEW): This subobject manages a line of 
15978         evenly spaced connection points, which the user can add or remove at
15979         will. An object can own several connection point lines. See the SADT
15980         Box, or the GRAFCET vergents for examples.
15982         * lib/dummy_dep.h: added dependencies to new files. Told gcc to keep 
15983         quiet about unused stuff.
15985         * objects/GRAFCET (NEW):
15986         * samples/grafcet.dia (NEW):
15987         Added support for GRAFCET charts. 
15989         * objects/chronogram (NEW):
15990         * samples/chronograms.dia (NEW):
15991         Added support for chronograms (feature requested by Ronald L. Chichest;
15992         I found I'd use it often, too).
15994         * objects/standard/line.c: Replace the middle connectionpoint by 
15995         a whole connection point line, which defaults to one point (hint, 
15996         hint). New Line object menu to take advantage of this. 
15997         "Bothwards" compatibility is preserved (although you may loose 
15998         connections if you load a newer file in a older dia).
16000         * app/lineprops_area.c:
16001         * lib/arrows.[ch]:
16002         * lib/widgets.c: Added hollow and filled ellipse arrow head type. 
16003         (feature requested by Benjamin Kahn).
16004         Merged in Steffen Macke's slashed arrow head type.
16006         * app/Makefile.am (app/run_dia.sh actually):
16007         Added $DEBUGGER in front of dia's invocation, so that
16008         you can call "DEBUGGER=ddd app/run_dia.sh" (maybe naive, but useful).
16009         Added $(EFENCE) to app/dia's LDFLAGS, so that you can do 
16010         "EFENCE=-lefence" to link with Electric Fence.
16012         * configure.in: Made gcc do more aggressive optimisations on i386, and
16013         enabled warnings.
16014         
16015 2000-01-24  James Henstridge  <james@daa.com.au>
16017         * lib/geometry.[ch]: added inline versions of functions.  Used
16018         glib's G_INLINE_FUNC stuff, so it should still work on systems
16019         without inline funcs.
16021         * plug-ins/cgm/cgm.c (draw_ellipse, fill_ellipse): fixed up so that
16022         it outputs the correct element id for the ellipse objects.
16024 2000-01-24 Cyrille Chepelov <chepelov@calixo.net>
16026         * lib/object.[ch]: added object_add_connectionpoint_at, similar to
16027         object_add_handle_at. Message typo fixed.
16028         
16029         * lib/sheet.c (load_register_sheet):
16030         potential bug fixed (warning hunt).
16032         * objects/custom/custom.c (custom_object_load): disabled an assertion
16033         which made dia abort upon failure to load a shape file. Fixed a
16034         subsequent crash. 
16036         * objects/custom/shape_info.c (load_shape_info): Made the custom 
16037         shape load code ignore XML comments between <?xml ...?> and the 
16038         root object (mostly useful to put the emacs magic comments).
16039         
16040         * app/load_save.c: Made dia do backup copies of files when saving,
16041         and complain in case of failure.
16043 2000-01-24  Cyrille Chepelov  <chepelov@calixo.net>
16045         * AUTHORS: fixed my address (ISP thought it was a great idea to change
16046         the domain name)
16047         
16048         * configure.in:
16049         * shapes/Contact:
16050         * shapes/Contact/*:
16051         * sheets/Contact.sheet:
16052         * sheets/Makefile.am:
16053         Added support for Contact and LADDER charts.
16055         * dia.desktop: Added a French translation.
16056         
16057 2000-01-23  James Henstridge  <james@daa.com.au>
16059         * app/commands.c (help_about_callback): don't die if can't load
16060         logo image.
16062         * app/render_gdk.c (bezier_add_lines): sanity check to try to weed
16063         out NaN's when performing bezier curve subdivision.
16065         * objects/custom/custom_object.c: initialise memory of Custom structs
16066         to zero.
16068         * app/render_svg.c (draw_image): added image support to the XML
16069         output filter.  The image is just referenced, rather than being
16070         included inline, so if you copy the SVG file somewhere else, you
16071         may need to move the images or fix up the links.
16073         * plug-ins/cgm/cgm.c (draw_string): output a text colour element,
16074         so the text is not just displayed in black all the time.
16076 2000-01-15  Fredrik Hallenberg  <hallon@lysator.liu.se>
16078         * configure.in: fixed libpopt test so we wont try to build with
16079         too old libpopt.
16081 1999-12-18  Yuri Syrota  <rasta@renome.rovno.ua>
16083         * configure.in: Added "uk" to ALL_LINGUAS.
16085 1999-12-24  James Henstridge  <james@daa.com.au>
16087         * po/ru.po: updated russian translation from Valek Filippov.
16088         
16089         * app/render_svg.c (new_svg_renderer): make output use 19991203
16090         version of SVG DTD.  Use viewBox to set the extents of the view.
16092         * INSTALL (FONTS): updated locations of gnome-xml and imlib.  List
16093         ftp.gnome.org as the download.
16095         * TODO (TODO): weeded out completed todo items and added a few extra.
16097         * Makefile.am (EXTRA_DIST): added documentation to EXTRA_DIST.
16099         * doc/sheet.dtd: first stab at a DTD for the sheet files.  It would
16100         be good to get rid of the object/shape distinction and separate
16101         the custom shape code out from the main application.
16103         * objects/custom/README, diagram.dtd: moved to new doc directory.
16104         Renamed the custom shapes README to custom-shapes.  Also updated
16105         custom shape docs a bit and removed the section on sheet files, as
16106         that has changed a bit.
16108         * plug-ins/cgm/cgm.c (draw_image): give an error if the row length
16109         of the image data is larger than the maximum cell array.  I should
16110         add code to break scan lines down further in this case, but for now
16111         an error message is better than an infinite loop.
16113         * app/filedlg.c (file_export_ok_callback): show a dialog if we
16114         couldn't determine the export filter to use.
16116         * app/commands.c (help_about_callback): fixed up about box logo
16117         expose bug.  Now just use a GtkPixmap widget rather than a
16118         GtkDrawingArea and calling gdk_imlib_paste_image.
16120         * app/Makefile.am (EXTRA_DIST): added print stuff to extra dist,
16121         because automake does not always get things right.
16123         * configure.in: updated version number to 0.83.
16125         * app/preferences.c (prefs_save): 
16126         * app/render_svg.c (new_svg_renderer): "wt" is not a valid flag string
16127         for fopen.  Text is the default file mode anyway.
16129         * app/commands.c (file_save_as_dialog_ok_callback, file_new_callback): 
16130         * app/grid.c (grid_x_update, grid_y_update, grid_show_dialog): 
16131         * app/load_save.c (write_objects, write_connections): 
16132         * app/filedlg.c (file_export_ok_callback): 
16133         * lib/dia_xml.c (data_add_int, data_add_enum, data_add_real): 
16134         * lib/dia_xml.c (data_add_point, data_add_rectangle): 
16135         * lib/font.c (init_x11_font, font_get_gdkfont): changed calls to
16136         snprintf to calls to g_snprintf.
16138         * plug-ins/cgm/cgm.c (export_cgm): write the original dia file name
16139         as the picture name.
16141 1999-12-23  James Henstridge  <james@daa.com.au>
16143         * plug-ins/cgm/cgm.c (write_int32, write_int16): fixed up output of
16144         negative numbers.  This fixes the upside down text problem I was
16145         having previously.
16146         (draw_image): implemented the image code.  It will try to split the
16147         image data up into bands if it is too big to fit into a single
16148         cgm cell array element.  It will have problems if you try to insert
16149         an image wider than about 10,000 pixels though.
16151         * Makefile.am: use gnomedatadir for the files that need to be
16152         installed in gnome's datadir.  This is mainly to help people doing
16153         packages for weird setups.
16155 1999-12-22  James Henstridge  <james@daa.com.au>
16157         * plug-ins/cgm/cgm.c: added support for text.  Now only images and
16158         beziers are left to do.  The text seems to be the wrong way up
16159         still.  This is probably a problem with character orientation
16160         element, but I have used what the settings given in the standard.
16161         Other than this, the CGMs dia produces are readable (and displayable)
16162         by ralcgm and corel draw.
16163         (draw_string): subtract from the X coord rather than the Y coord for
16164         center and right aligned text.
16166         * plug-ins/cgm/cgm.c: a few fixups for the output.  Use REALSIZE as
16167         the size of a real number, and changed name of write_double to
16168         write_real.  Consider changing to fixed real encoding.  Also, now
16169         all element headers are correct.  Once the real number encoding is
16170         fixed, only text, beziers and images are left to do.
16172 1999-12-21  James Henstridge  <james@daa.com.au>
16174         * Makefile.am (SUBDIRS): recurse into plug-ins.
16176         * configure.in: add plug-ins directory makefiles to list.
16178         * plug-ins/cgm/cgm.c: start of cgm export filter.  Beziers and text
16179         not done yet.  Also, the output files are not quite correct.
16181         * app/render_eps.c (print_reencode_font): don't reencode the Symbol
16182         font.  It doesn't work if you do.
16184 1999-12-20  James Henstridge  <james@daa.com.au>
16186         * app/app_procs.c (app_init): don't use diagram_export_to_eps to
16187         export the files.  Instead, use filter_guess_export_filter to
16188         guess the correct format to save in and use the appropriate filter.
16189         It defaults to postscript for compatibility.
16191         * app/diagram.[ch] (diagram_export_to_eps): removed export to eps
16192         function.
16194         * app/commands.[ch]: removed export to eps functions.
16196         * app/menus.c: removed export to eps menu items.
16198         * app/app_procs.c: register new export filters.
16200         * app/load_save.[ch]: define dia native export filter.
16202         * app/render_eps.[ch]: define eps export filter.
16204         * lib/filter.h: added diafilename argument to the DiaExportFunc
16205         prototype.  This is useful for putting the source of the diagram
16206         into the output file for instance.
16208         * app/app_procs.c (app_init): register the SVG export filter.  Have
16209         to get EPS code converted to this API, and maybe also allow saving in
16210         DIA's native format from the export dialog.  In fact, it is now
16211         possible to load an export filter from a shared library and it will
16212         integrate into the interface correctly.
16214         * app/menus.c: removed references to the SVG renderer.
16216         * app/commands.[ch]: removed svg stuff.
16218         * app/diagram.[ch]: removed diagram_export_to_svg function.
16220         * app/render_svg.[ch]: added a DiaExportFilter structure for this
16221         renderer.
16223         * app/filedlg.[ch]: code for the new export diagram dialog.  Will
16224         probably move the open/save dialogs to this file as well.
16226 1999-12-19  James Henstridge  <james@daa.com.au>
16228         * lib/filter.[ch]: start of interface for generalised handling of
16229         filters.  I have only done code for export filters so far.  I still
16230         need to do the gui for this, and convert the current SVG and EPS
16231         filters to the new API.
16233         * lib/bezier_conn.c (bezierconn_copy): fix up copy operation.  We
16234         weren't setting the last handle correctly.  It was actually assigning
16235         to the wrong position in the handles array, so the last handle was
16236         left as NULL, which caused the segfault.
16238         * objects/standard/image.c (image_copy): modified routine so that
16239         it just adds a reference to the DiaImage structure in the new image
16240         object.  This seems to have cleared up the problems with copying
16241         image objects.
16243         * dia.spec: spec file additions from John Gotts.
16245 1999-12-12  James Henstridge  <james@daa.com.au>
16247         * configure.in (GNOME_LIBS): updated version number to 0.82.  0.82
16248         has not been released yet though.
16250         * Makefile.am (EXTRA_DIST): distribute diagram.dtd.
16252         
16253         The following based on a patch from Lars Clausen:
16254         
16255         * objects/standard/bezier.c (bezierline_move_handle): when performing
16256         the initial drag of the bezierline, move the control points to keep
16257         the line straight.
16259         * lib/bezier_conn.c (bezierconn_add_segment): when adding a segment,
16260         make the new control points a bit closer to the major point.
16262         * app/create_object.c (create_object_motion): use HANDLE_MOVE_CREATE
16263         as the reason for the move.
16264         (create_object_button_release): use HANDLE_MOVE_CREATE_FINAL as the
16265         move reason.
16267         * lib/handle.h: new handle move reasons.
16269 1999-12-09  James Henstridge  <james@daa.com.au>
16271         * dia.spec: include the new files in RPMs.
16273         * Makefile.am: install these new files.
16275         * dia.keys.in: file describing actions and icon for dia diagrams for
16276         use in the gnome file manager.
16277         
16278         * dia.mime: a file defining the application/x-dia-diagram mime type.
16279         
16280         * dia-diagram.png: an icon for dia diagrams.
16282 1999-12-08  James Henstridge  <james@daa.com.au>
16284         * plug-ins/python/pydia-diagram.c: added heaps of new methods.
16286         * plug-ins/python/pydia-display.[ch]: wrapper for display.
16288         * objects/standard/ellipse.c: applied Lars's patch to optionally not
16289         draw the background of the ellipse.
16291         * app/load_save.c (read_connections): do some sanity checking on the
16292         handle and connection point numbers before performing the object
16293         connection.
16295         * lib/bezier_conn.c (bezierconn_load): give the correct number of
16296         handles when loading a BezierConn.
16298 1999-12-07  Kjartan Maraas  <kmaraas@online.no>
16300         * sheets/*.sheet: Finished Norwegian translations.
16301         
16302 1999-12-07  James Henstridge  <james@daa.com.au>
16304         * plug-ins/python/diamodule.c (PyDia_Load): load diagram function.
16305         (PyDia_GetObjectType): find object type function.
16307         * plug-ins/python/pydia-diagram.c (PyDiaDiagram_Save): added a save
16308         method for diagrams.
16310         * plug-ins/python/pydia-object.c: added methods for DiaObject and
16311         DiaObjectType.
16313         * AUTHORS: added Lars and Cyrille to the authors file.
16315         * objects/standard/bezier.c (bezierline_add_segment_callback): place
16316         new point correctly.
16318         * lib/bezier_conn.h (bezierconn_closest_segment): fixed prototype.
16320         * lib/bezier_conn.c: applied Lars's patch for placement of the new
16321         point when adding a segment to a BezierConn.
16323 1999-12-06  James Henstridge  <james@daa.com.au>
16325         * plug-ins/python/test.py: test script for the python plug-in.
16327         * plug-ins/python/python.c: this file contains the plug-in startup
16328         code for the python plugin.  Right now, it just initialises the
16329         dia module and executes a script.
16331         * objects/standard/polyline.c (polyline_draw): fix start arrow size.
16333         * objects/standard/bezier.c (bezierline_draw): draw control lines for
16334         bezier curve if we are using an interactive renderer (ie. only if
16335         displaying to the screen).
16337         * lib/bezier_conn.[ch] (bezierconn_draw_control_lines): function
16338         to draw control lines on to a bezier curve.  Based on implementation
16339         from Lars.
16341         * objects/standard/bezier.c (bezierline_delete_segment_callback):
16342         calculate segment number using closest_segment rather than
16343         closest_handle.  Sometimes the closest handle is part of a different
16344         segment.
16345         (bezierline_draw): use correct size for start arrow.
16347         The next few entries are from Peter Moulder <reiter@netspace.net.au>:
16348         * lib/geometry.c (distance_line_point): added notes to documentation
16349         in comment.
16350         * app/object_ops.c (object_list_align_v): 
16351         (object_list_align_h): fix of by one error when calculating free space
16352         for equal distance alignment.
16353         * app/menus.c (objects_align_h, objects_align_v): include align
16354         adjacent menu items in the gnome version of the menus.
16355         * app/diagram.c (diagram_update_menu_sensitivity): set sensitivity on
16356         align adjacent menu items correctly.
16359         * lib/dummy_dep.h (dummy_dep): added bezierconn to dummy dependency
16360         table.
16362         * objects/standard/bezier.c: converted bezierline to use BezierConn.
16363         Still a few bugs.  It crashes on deleting line segments.
16365         * lib/Makefile.am (libdia_a_SOURCES): added BezierConn to libdia.
16367 1999-12-05  James Henstridge  <james@daa.com.au>
16369         * lib/bezier_conn.[ch]: start of BezierConn object
16371         * app/interface.c: add bezierline to toolbox.
16373         * objects/standard/standard.c: initialise bezierline.
16375         * objects/standard/bezier.c: new object from Lars R. Clausen.  I have
16376         made a few modifications to get it working nicely.  It still needs
16377         a bit of work though.  Maybe create a BezierConn object in lib.
16379 1999-12-02  James Henstridge  <james@daa.com.au>
16381         * plug-ins/python/pydia-*.c: fixed compile errors in these files.
16382         
16383         * plug-ins/python/Makefile.am: tried building everything.  It is
16384         building as a library at the moment.  I will have to convert it
16385         to a libtool library and add some initialisation code.
16386         
16387         * plug-ins/python/diamodule.c: start of the dia module, using the
16388         other object wrappers.  Not complete.
16390 1999-12-01  James Henstridge  <james@daa.com.au>
16392         * plug-ins/python/pydia-object.c (PyDiaObject_GetAttr): implement
16393         the handles and connections attributes.
16395         * plug-ins/python/pydia-layer.c: added functions that use
16396         ConnectionPoint's.
16398         * plug-ins/python/pydia-handle.[ch]: wrapper for Handle's.
16400         * plug-ins/python/pydia-cpoint.[ch]: wrapper for ConnectionPoint's.
16402         * plug-ins/python/pydia-*.[ch]: starts of python scripting plug-in.
16403         I am currently wrapping the basic elements in the diagram in python
16404         objects -- nothing to see or play with yet.
16406 1999-11-30  Alexander Larsson  <alla@lysator.liu.se>
16408         * AUTHORS:
16409         * HACKING:
16410         James Henstridge <james@daa.com.au> is now the maintainer of Dia.
16412 1999-11-29  Alexander Larsson  <alla@lysator.liu.se>
16414         * configure.in:
16415         * po/ru.po:
16416         Added russian translation from Valek Filippov <frob@df.ru>
16418 1999-11-24  James Henstridge  <james@daa.com.au>
16420         * sheets/UML/*: 
16421         * sheet/ER/*: moved extra sheet pixmaps back to separate dirs as
16422         discussed with Alex.  Also added extra makefiles so that make install
16423         works correctly.
16425 1999-11-23  Alexander Larsson  <alla@lysator.liu.se>
16427         * app/preferences.[ch]:
16428         * app/display.c:
16429         Added snap to grid preference.
16430         Patch from Michael Leslie <mles@springboardwireless.com>
16432 1999-11-21  Alexander Larsson  <alla@lysator.liu.se>
16434         * app/load_save.c:
16435         * lib/dia_xml.c:
16436         * lib/sheet.c:
16437         * lib/text.c:
16438         * objects/custom/shape_info.c:
16439         All strings returned by libxml must be freed with free, not
16440         g_free, or there will be problems if you use memory debugging
16441         in glib.
16442         
16443 1999-11-21  Alexander Larsson  <alla@lysator.liu.se>
16445         * app/create_object.[ch]:
16446         * app/menus.c:
16447         * app/tool.[ch]:
16448         * app/commands.[ch]:
16449         * app/pixmaps.h:
16450         * app/interface.[ch]:
16451         Reverted the tool menu patch. It has some 'issues'.
16452         I liked it though, so it'll probably return.
16454 1999-11-21  Alexander Larsson  <alla@lysator.liu.se>
16456         Fixed a lot of memory leaks. Thanks to Bruce Mitchener
16457         <bruce@cybersight.com> for some purify runs and analysis.
16458         Also a great thank you to Owen Taylor for creating MemProf, a
16459         free memory leak detector that was used to find and verify a
16460         lot of these fixes.
16461         
16462         * app/diagram.c:
16463         * app/paginate_psprint.c:
16464         * app/render_eps.[ch]:
16465         * app/render_svg.[ch]:
16466         Free renderers.
16468         * app/interface.c:
16469         Don't add a reference to ddisp->shell. Why was this done in
16470         the first place?
16472         * app/load_save.c:
16473         * lib/dia_xml.c:
16474         * lib/sheet.c:
16475         * lib/text.c:
16476         Free all strings returned from xmlGetProp
16478         * app/modify_tool.c:
16479         Plug leak.
16481         * objects/custom/custom.c:
16482         Use closedir() after opendir().
16484         * objects/custom/shape_info.c:
16485         User g_free() instead of "if (tmp) free(tmp)".
16487         * sheets/ER.sheet:
16488         Add newline at end of file.
16489         
16491 1999-11-20  Alexander Larsson  <alla@lysator.liu.se>
16493         Based on patch from Patrick Reynolds <reynolds@cs.duke.edu>
16494         Adds tool menu and keyboard shortcuts.
16496         * app/create_object.[ch]:
16497         Use tool_set() instead of tool_reset().
16498         create_create_object_tool() takes extra type argument
16500         * menus.c:
16501         Add tools menu.
16502         
16503         * tool.[ch]:
16504         Moved tool_data here, export it.
16505         Add separate tool type for all create objects tools.
16506         new functions tool_set().
16508         * commands.[ch]:
16509         New callback tool_set_callback.
16511         * pixmaps.h:
16512         Moved some pixmaps to interface.c.
16513         
16514         * interface.[ch]:
16515         Remove tool_data array (moved to tool.c).
16516         Use the tool_data from tool.c.
16517         Remove modify_tool_button global var.
16518         
16519 1999-11-20  Alexander Larsson  <alla@lysator.liu.se>
16521         Patch from Patrick Reynolds <reynolds@cs.duke.edu>
16522         
16523         * app/app_procs.c:
16524         Interprets command-line arguments as files to open even when
16525         HAVE_POPT is not defined.
16527         * app/magnify.c:        
16528         Shift-clicking when zooming zooms out, like the Gimp.
16530         * app/menus.c:
16531         Has hotkeys for zoom-100% and snap-to-grid.
16533 1999-11-17  James Henstridge  <james@daa.com.au>
16535         * app/scroll_tool.c (scroll_motion): fixed shift style scrolling so
16536         that it is not jumpy.
16538         * app/Makefile.am (EXTRA_DIST): added extra files to extra dist list.
16540         * app/scroll_tool.c (scroll_motion): added `grabbing hand' type
16541         scrolling by pressing the shift key when using the scroll tool.
16543         * sheets/Makefile.am: fixed makefile so that install actually works
16544         if the directories $(pkgdatadir)/sheets/UML and $(pkgdatadir)/sheets/ER
16545         don't exist.
16546         (SHEETS): install Circuit.sheet
16548 1999-11-15  Alexander Larsson  <alla@lysator.liu.se>
16549         Patch from Cyrille Chepelov <chepelov@rmcnet.fr>
16551         * sheets/Circuit.sheet:
16552         * sheets/ER.sheet:
16553         * sheets/FS.sheet:
16554         * sheets/Flowchart.sheet:
16555         * sheets/UML.sheet:
16556         * sheets/network.sheet:
16557         * sheets/sybase.sheet:
16558         Changed name space
16560         * sheets/Circuit.sheet:
16561         added some missing French translations
16563         * lib/sheet.c:
16564         killed the temporary sheet namespace
16566         * objects/custom/custom.c:
16567         obsolete comment cleaned up
16569 1999-11-12  Alexander Larsson  <alla@lysator.liu.se>
16571         * configure.in:
16572         * po/pt.po:
16573         Added portugese translation from Pedro Morais
16574         <pmmm@rnl.ist.utl.pt>
16576 1999-11-11  Alexander Larsson  <alla@lysator.liu.se>
16578         Changed all sheets to be specified in xml.
16579         All sheet objects removed from the C code.
16580         Patch from Cyrille Chepelov <chepelov@rmcnet.fr>
16581         
16582         * Makefile.am:
16583         * configure.in:
16584         Adding shapes dir.
16585         Updated version to 0.81cvs.
16586         
16587         * app/Makefile.am:
16588         Update run_dia.sh with sheet-dir.
16589         
16590         * app/app_procs.c:
16591         Load all sheets on startup.
16592         Create sheet directory first time.
16593         Don't call custom_register_sheets().
16595         * lib/Makefile.am:
16596         Add sheetdir define
16598         * lib/custom.h:
16599         Remove custom_register_sheets().
16601         * lib/sheet.[ch]:
16602         Add sheet loading code.
16604         * sheet/Circuit.sheet:
16605         * sheet/ER.sheet:
16606         * sheet/FS.sheet:
16607         * sheet/Flowchart.sheet:
16608         * sheet/UML.sheet:
16609         * sheet/network.sheet:
16610         * sheet/sybase.sheet:
16611         Added sheet files.
16613         * sheet/ER/weakentity.xpm:
16614         * sheet/UML/aggregation.xpm
16615         * sheet/UML/umlclass_template.xpm
16616         Added sheet pixmaps.
16617         These are moved from their old places.
16619         * sheet/.cvsignore:
16620         Shut up cvs.
16622         * objects/*/*.c:
16623         Removed sheet objects and sheet registration.
16624         
16625         * objects/ER/Makefile.am:
16626         * objects/ER/pixmaps/weakentity.xpm:
16627         * objects/UML/Makefile.am:
16628         * objects/UML/pixmaps/aggregation.xpm:
16629         * objects/UML/pixmaps/umlclass_template.xpm:
16630         Removed alternative pixmaps. (Moved to sheet).
16632         * objects/custom/Makefile.am:
16633         * objects/custom/load_sheet.[ch]:
16634         Removed old sheet loading code.
16635         
16636         * objects/custom/custom.c:
16637         Load all shapes instead of sheets.
16638         Removed custom_register_sheets().
16640         * objects/custom/custom_object.c:
16641         Added debug code.
16643         * objects/custom/shape_info.[ch]:
16644         Added shape_info_getbyname().
16646         * objects/flowchart/Makefile.am:
16647         * objects/flowchart/collate.shape            
16648         * objects/flowchart/delay.shape              
16649         * objects/flowchart/display.shape            
16650         * objects/flowchart/document.shape           
16651         * objects/flowchart/extract.shape            
16652         * objects/flowchart/flowchart.c              
16653         * objects/flowchart/intstorage.shape         
16654         * objects/flowchart/magdisk.shape            
16655         * objects/flowchart/magdrum.shape            
16656         * objects/flowchart/magtape.shape            
16657         * objects/flowchart/manualinput.shape        
16658         * objects/flowchart/manualop.shape           
16659         * objects/flowchart/merge.shape              
16660         * objects/flowchart/offlinestore.shape       
16661         * objects/flowchart/offpageconn.shape        
16662         * objects/flowchart/or.shape                 
16663         * objects/flowchart/predefdproc.shape        
16664         * objects/flowchart/preparation.shape        
16665         * objects/flowchart/punchedcard.shape        
16666         * objects/flowchart/punchedtape.shape        
16667         * objects/flowchart/sort.shape               
16668         * objects/flowchart/sumjunction.shape        
16669         * objects/flowchart/terminal.shape           
16670         * objects/flowchart/transaction.shape        
16671         * objects/flowchart/transmittape.shape       
16672         * objects/flowchart/pixmaps/collate.xpm      
16673         * objects/flowchart/pixmaps/delay.xpm        
16674         * objects/flowchart/pixmaps/display.xpm      
16675         * objects/flowchart/pixmaps/document.xpm     
16676         * objects/flowchart/pixmaps/extract.xpm      
16677         * objects/flowchart/pixmaps/intstorage.xpm   
16678         * objects/flowchart/pixmaps/magdisk.xpm      
16679         * objects/flowchart/pixmaps/magdrum.xpm      
16680         * objects/flowchart/pixmaps/magtape.xpm      
16681         * objects/flowchart/pixmaps/manualinput.xpm  
16682         * objects/flowchart/pixmaps/manualop.xpm     
16683         * objects/flowchart/pixmaps/merge.xpm        
16684         * objects/flowchart/pixmaps/offlinestore.xpm 
16685         * objects/flowchart/pixmaps/offpageconn.xpm  
16686         * objects/flowchart/pixmaps/or.xpm           
16687         * objects/flowchart/pixmaps/predefdproc.xpm  
16688         * objects/flowchart/pixmaps/preparation.xpm  
16689         * objects/flowchart/pixmaps/punchedcard.xpm  
16690         * objects/flowchart/pixmaps/punchedtape.xpm  
16691         * objects/flowchart/pixmaps/sort.xpm         
16692         * objects/flowchart/pixmaps/sumjunction.xpm  
16693         * objects/flowchart/pixmaps/terminal.xpm     
16694         * objects/flowchart/pixmaps/transaction.xpm  
16695         * objects/flowchart/pixmaps/transmittape.xpm 
16696         Moved shapes and their pixmaps to shapes/flowchart
16698         * shapes/Circuit/Makefile.am:
16699         * shapes/Circuit/index.sheet:
16700         Removed index.sheet.
16701         
16702         * shapes/Makefile.am:
16703         * shapes/flowchart/Makefile.am:
16704         * shapes/flowchart/*.shape:
16705         * shapes/flowchart/*.xpm:
16706         Added flowchart shapes. (Moved from objects/flowchart)
16707         
16709 1999-11-07  Fredrik Hallenberg  <hallon@lysator.liu.se>
16711         * app/app_procs.c: Fixed popt stuff.
16713 1999-11-01  James Henstridge  <james@daa.com.au>
16715         * shapes/Circuit/[hv]led_de.{shape,xpm}: new circuit shapes from
16716         Andreas Scherf.
16718 1999-10-31  Alexander Larsson  <alla@lysator.liu.se>
16720         * dia.spec:
16721         * configure.in:
16722         Update version to 0.81.
16723         
16724         * NEWS:
16725         Update with news for 0.81.
16726         
16727         * shapes/Circuit/*:
16728         * shapes/Circuit_eu/*:
16729         Moved european circuit objects to Circuit sheet.
16731 1999-10-31  Alexander Larsson  <alla@lysator.liu.se>
16732         
16733         * lib/diagramdata.[ch]:
16734         Added layer_set_object_list() function.
16736         * app/undo.[ch]:
16737         Added support for undo of reordered objects.
16738         Fix the undo of delete to keep the right order on undo.
16739         
16740         * app/diagram.c:
16741         changed loop to object_add_updates_list() calls.
16742         Added undo support to bring to front/back.
16744         * app/disp_callbacks.c:
16745         * app/paginate_psprint.c:
16746         Remove warnings.
16748 1999-10-30  Alexander Larsson  <alla@lysator.liu.se>
16750         This plugs some leaks. Thanks to
16751         Bruce Mitchener <bruce@cybersight.com> for running
16752         Dia through purify for me.
16753         
16754         * app/app_procs.c:
16755         Free displays and diagrams on exit.
16757         * app/modify_tool.c:
16758         Free gc when freeing tool.
16760         * lib/diagramdata.c:
16761         Free layer name.
16762         
16763         * app/display.c:
16764         Free update and display lists when destroying display.
16765         
16766         * lib/diagramdata.c:
16767         Don't leak layer name.
16769         * objects/custom/load_sheet.c: 
16770         * objects/custom/shape_info.c:
16771         Free loaded xml documents.
16773 1999-10-28  Alexander Larsson  <alla@lysator.liu.se>
16775         * app/commands.c:
16776         * app/object_ops.[ch]:
16777         Add undo handling to alignment ops.
16778         Based partially on patch by Dan Cohn <dan@internap.com>.
16780         * objects/standard/image.c (image_move_handle):
16781         Don't divide by zero for small images.
16782         Patch by Dan Cohn <dan@internap.com>.
16784         * objects/UML/class.c (umlclass_destroy): 
16785         * objects/custom/custom_object.c (custom_destroy):
16786         Don't free connectionpoints before calling element_destroy
16787         which unconnects them.
16789 1999-10-26  Alexander Larsson  <alla@lysator.liu.se>
16791         * objects/custom/custom_object.c: 
16792         Load and save padding too. Fixes strange load crashes.
16794         * app/group.c (group_destroy):
16795         Don't unconnect already freed connectionpoints when
16796         destroying group. Probably fixes bug reported by
16797         Elliot Lee <sopwith@redhat.com>.
16799         * app/render_gdk.c:
16800         Don't crash on zero-size (broken) bezier curves.
16801         Different sort of fix. This should work on closed bezier curves
16802         too.
16804         * objects/standard/textobj.c:
16805         Activate default properties dialog for Text objects.
16807         * app/render_eps.c: 
16808         * app/load_save.c:
16809         * app/preferences.c:
16810         * app/render_svg.c:
16811         fopen files in binary or text mode.
16813 1999-10-26  Alexander Larsson  <alex@cendio.se>
16815         * app/render_gdk.c (bezier_add_lines):
16816         Don't crash on zero-size (broken) bezier curves.
16817         Fixes a crashing bug.
16819 1999-10-25  James Henstridge  <james@daa.com.au>
16821         * app/Makefile.am (run_dia.sh): allow dia to find internal shape files
16822         before it is installed.
16824         * objects/flowchart/flowchart.c: use relative paths to find shapes.
16826         * objects/custom/custom.c (custom_object_load): take file names
16827         relative to $(pkgdatadir)/shape-internal, and check an environment
16828         variable for an alternative directory.
16830         * app/...: added copyright messages to the top of my new code.
16832         * app/paginate_psprint.c: some general clean ups.  Also, give an error
16833         dialog if we can't open the command or output file for writing.
16835         * app/diapagelayout.c (dia_page_layout_set_orientation): fixed
16836         function so it would set orientation to landscape correctly.
16838         * app/paginate_psprint.c: use the paper settings that come with
16839         the diagram.  Also implemented landscape printing.
16841         * app/render_eps.c (new_psprint_renderer): use diagram paper metrics
16842         in PS header.
16844         * app/commands.[ch] (file_pagesetup_callback): added callback for
16845         the page setup dialog.
16847         * app/menus.c: added page setup menu item.
16849         * app/pagesetup.[ch]: implementation of the page setup dialog.
16851         * app/diapagelayout.[ch]: added accessors for the scaling factor.
16852         
16853         * app/load_save.c (diagram_load): load paper information from save
16854         file.
16855         (diagram_save): save the paper info.
16857         * lib/diagramdata.c (new_diagram_data): initialise paper info section
16858         of DiagramData structure.
16859         (diagram_data_destroy): free the paper name.
16861         * lib/diagramdata.h: added a paper member to the DiagramData structure
16862         that holds the page layout info for a diagram.
16864 1999-10-21  Alexander Larsson  <alla@lysator.liu.se>
16866         * objects/flowchart/box.c:
16867         * objects/flowchart/ellipse.c:
16868         * objects/flowchart/diamond.c:
16869         * objects/flowchart/parallelogram.c:
16870         Load and save padding too. Fixes strange load crashes.
16872 1999-10-21  Alexander Larsson  <alla@lysator.liu.se>
16874         * app/app_procs.c (name_is_lib):
16875         .dll, .sl and .so.0.0.0 are also libraries.
16877 1999-10-20  James Henstridge  <james@daa.com.au>
16879         * configure.in: added extra makefile.
16880         
16881         * shapes/Circuit_eu/*: a new set of european circuit shapes from
16882         Andreas Scherf <scherfa@fh-trier.de>.  Made a few small modifications
16883         (added fuses to makefile, fill the area of some of the components).
16885 1999-10-19  Alexander Larsson  <alla@lysator.liu.se>
16887         * lib/Makefile.am:
16888         * app/Makefile.am: 
16889         Add GDK_IMLIB_CFLAGS to includes.
16890         Changed --export-dynamic to -export-dynamic
16892         * lib/widgets.c:
16893         * objects/UML/message.c:
16894         Removed c++ comment.
16896         * lib/render_store.[ch]:
16897         Don't use empty structure. That is not Ansi C.
16899 1999-10-19  James Henstridge  <james@daa.com.au>
16901         * app/diapagelayout.c (dia_page_layout_init): use DiaUnitSpinner's for
16902         the margin entries, as they allow interpretation of units.
16903         (paper_size_change): display the current page dimensions.
16905         * app/diaunitspinner.[ch]: a widget derived from the standard
16906         GtkSpinButton that tries to take units into account.  So if you enter
16907         "1in" into the entry, it will convert it to 2.54cm.
16909 1999-10-18  Alexander Larsson  <alla@lysator.liu.se>
16911         * app/app_procs.c:
16912         Removed include of dlfcn.h
16914 1999-10-18  James Henstridge  <james@daa.com.au>
16916         * app/diapagelayout.c (paper_size_change, orient_changed): set upper
16917         bound on margin widths.  It is set to the paper width/height.
16919         * objects/flowchart/diamond.c (diamond_distance_from): fixed distance
16920         routine for the diamond.  This bug was found and fixed by Daniel Wang
16921         <danwang@CS.Princeton.EDU>
16923 Sun Oct 17 19:46:36 1999  ape@gandalf.spacetec.no  (Asbjorn Pettersen)
16925         * app/commands.c: Add <sys/types.h> before <sys/stat.h> to
16926         remove warning (OS/2 version).
16928 1999-10-17  Alexander Larsson  <alla@lysator.liu.se>
16930         * README:
16931         Put a pointer to objects/custom/README.
16932         
16933 1999-10-17  Alexander Larsson  <alla@lysator.liu.se>
16935         * dia.spec:
16936         Updated version to 0.80
16938         * configure.in:
16939         Updated version to 0.80cvs
16941 1999-04-08  Alexander Larsson  <alla@lysator.liu.se>
16943         * Released Dia 0.80
16944         Tag called DIA_0_80
16945         
16946 1999-10-17  Fredrik Hallenberg  <hallon@lysator.liu.se>
16948         * app/Makefile.am
16949         * lib/Makefile.am
16950         * objects/UML/Makefile.am
16951         * objects/ER/Makefile.am
16952         * objects/network/Makefile.am
16953         * objects/standard/Makefile.am
16954         * objects/FS/Makefile.am
16955         * objects/sybase/Makefile.am
16956         * objects/flowchart/Makefile.am
16957         * objects/custom/Makefile.am
16958         Added -I$(top_srcdir)/intl which is needed for
16959         --with-included-gettext.
16961         * POTFILES.in
16962         Updated.
16963         
16964         * po/sv.po
16965         Updated swedish translation.
16967 1999-10-16  Alexander Larsson  <alla@lysator.liu.se>
16969         * configure.in:
16970         Updated version number to 0.80.
16972         * KNOWN_BUGS:
16973         New file.
16975         * TODO:
16976         Updated. Moved bugs to KNOWN_BUGS.
16978         * NEWS:
16979         Updated with 0.80 release notes.
16980         
16981 1999-10-16  Alexander Larsson  <alla@lysator.liu.se>
16982         
16983         * lib/orth_conn.c:
16984         For backwards compatibility, make sure handle 0 and 1 are the
16985         first and last handle. Fixes compatibility with 0.41, breaks
16986         compatibility with cvs version.
16987         Fixed bug in undo/redo of adding deleting endpoint segments
16988         when the endpoint was connected.
16989         Start OrthConn objects with three segments.
16991 1999-10-16  James Henstridge  <james@daa.com.au>
16993         * objects/custom/custom_object.c (custom_update_data): changed
16994         resizing behaviour a bit so that shapes don't grow huge when you try
16995         to resize them to smaller than the size required by the text box.
16996         Also, now shapes will not grow with fixed aspect ratio when you enter
16997         text into them unless the shape has the fixed aspect ratio flag set.
16999 1999-10-15  James Henstridge  <james@daa.com.au>
17001         * objects/flowchart/flowchart.c: add new shapes to flowchart sheet.
17003         * object/flowchart/pixmaps/...: corresponding pixmaps for new shapes.
17005         * objects/flowchart/magdrum.shape: 
17006         * objects/flowchart/offlinestore.shape: 
17007         * objects/flowchart/punchedtape.shape: 
17008         * objects/flowchart/transmittape.shape: 
17009         * objects/flowchart/punchedcard.shape: new shapes.
17011         * objects/flowchart/flowchart.c: add new shapes to flowchart sheet.
17013         * object/flowchart/pixmaps/...: corresponding pixmaps for new shapes.
17015         * objects/flowchart/collate.shape:
17016         * objects/flowchart/delay.shape:
17017         * objects/flowchart/extract.shape:
17018         * objects/flowchart/intstorage.shape:
17019         * objects/flowchart/magdisk.shape:
17020         * objects/flowchart/magtape.shape:
17021         * objects/flowchart/merge.shape:
17022         * objects/flowchart/or.shape:
17023         * objects/flowchart/sort.shape:
17024         * objects/flowchart/sumjunction.shape: new shapes.
17026 1999-10-15  Alexander Larsson  <alla@lysator.liu.se>
17028         * TODO (BUGS):
17029         Added bug:
17030         Entering an erronous command as print command
17031         crashes dia.
17033         * app/paginate_psprint.c:
17034         Save all print dialog values for next time.
17035         
17036         * app/Makefile.am:
17037         Remove custom lib from DIA_LIB_PATH.
17039 1999-10-14  James Henstridge  <james@daa.com.au>
17041         * objects/flowchart/flowchart.c: add new shapes to flowchart sheet.
17043         * object/flowchart/pixmaps/...: corresponding pixmaps for new shapes.
17044         
17045         * objects/flowchart/offpageconn.shape: 
17046         * objects/flowchart/manualop.shape: 
17047         * objects/flowchart/preparation.shape: 
17048         * objects/flowchart/manualinput.shape: 
17049         * objects/flowchart/predefdproc.shape: 
17050         * objects/flowchart/terminal.shape: new shapes in the flowchart sheet.
17052 1999-10-13  James Henstridge  <james@daa.com.au>
17054         * app/diapagelayout.[ch]: added accessors to paper information.  The
17055         widget should be just about complete now.
17057         * app/diapagelayout.[ch]: fleshed out the page setup widget a bit more.
17058         It actually does something now.
17060 1999-10-12  James Henstridge  <james@daa.com.au>
17062         * app/pixmaps/portrait.xpm, app/pixmaps/landscape.xpm: support pixmaps
17063         for the page layout widget.
17065         * app/diapagelayout.[ch]: start of page layout widget.  Not actually
17066         built yet as it is not complete.
17068         * objects/flowchart/flowchart.c: added new shapes to sheet.
17070         * objects/flowchart/display.shape:
17071         * objects/flowchart/transaction.shape: new shapes.
17073         * AUTHORS: added my name to the spec file.
17075         * dia.spec: include the dia desktop entry to the spec file.
17077         * Makefile.am: install the dia.desktop file.
17079         * dia.desktop: added a gnome desktop entry so you can start dia
17080         from the gnome panel menu.
17082 1999-10-11  James Henstridge  <james@daa.com.au>
17084         * objects/custom/custom_object.c:
17085         * objects/custom/shape_info.c: warning fixes.
17087         * objects/flowchart/document.shape: a shape file for the `document'
17088         flowchart shape.
17090         * lib/custom.h: new header with the custom shape prototypes.
17092         * app/app_procs.c: register custom objects as well.
17093         (register_objects_in): close shared libraries if they don't load
17094         correctly, and call g_module_make_resident on libraries that load
17095         correctly.
17097         * app/Makefile.am (dia_LDADD): added libcustom_objects.a to link list.
17099         * objects/custom/custom.c: removed get_version, added custom_ prefix
17100         to register_objects and register_sheets.
17102         * objects/custom/Makefile.am: converted to a normal library.
17104 1999-10-10  Alexander Larsson  <alla@lysator.liu.se>
17106         * app/lineprops_area.c:
17107         * app/render_svg.c:
17108         * lib/objchange.c:
17109         * objects/custom/shape_info.c:
17110         * objects/flowchart/box.c:
17111         * objects/flowchart/diamond.c:
17112         * objects/flowchart/ellipse.c:
17113         * objects/flowchart/parallelogram.c:
17114         * objects/network/flash.c:
17115         * objects/network/scead-plug.c:
17116         * objects/sybase/client.c:
17117         Removed -Wall warnings.
17118         
17119         * objects/network/bus.c:
17120         Removed unused functions.
17122         * objects/FS/flow-ortho.c:
17123         * objects/FS/flow-poly.c:
17124         * objects/FS/flow.c:
17125         * objects/FS/function.c:
17126         
17127         Implemented "non-implemented" undo for FS objects.
17128         Now at least it won't crash.
17129         
17130 1999-10-10  Alexander Larsson  <alla@lysator.liu.se>
17132         * objects/network/bus.c:
17133         Implemented undo.
17134         Handles are now added and removed using the object menu.
17135         Default to 6 handles instead of 10.
17136         Changed name from "Standard - Bus" to "Network - Bus". Kept old
17137         name for backwards compatibility.
17139         * objects/network/network.c:
17140         Changed name from "Standard - Bus" to "Network - Bus". Kept old
17141         name for backwards compatibility.
17143         * app/properties.[ch]:
17144         * app/undo.c:
17145         Update properties in properties dialog if the shown object
17146         is part of and ObjectChange (undo or redo).
17148         * lib/poly_conn.c:
17149         Remove old known bugs list.
17151         * objects/UML/class_dialog.c:
17152         Removed debug printf's.
17154 1999-10-10  James Henstridge  <james@daa.com.au>
17156         * objects/custom/custom.c (custom_object_load): new function that
17157         provides a nice entry point to the custom shape code for when it
17158         gets used by other libraries.
17160         * configure.in: removed 11 makefiles from AC_OUTPUT list.  This
17161         speeds builds up a bit.
17163         * */Makefile.am (EXTRA_DIST): include pixmaps in distribution.
17164         (SUBDIRS): do not descend into pixmaps subdirs.
17166         * */pixmaps/Makefile.am: removed -- incorporate into parent makefiles.
17167         This speeds up build process.
17169         * objects/custom/custom.c (sheets): made variable static.
17171         * objects/custom/custom_util.[ch] (custom_get_relative_filename):
17172         renamed function.
17174         * objects/custom/load_sheet.[ch] (custom_sheet_load): renamed function.
17176         * objects/custom/custom.c: look in ~/.shapes instead of
17177         ~/.dia_shapes as the per-user shapes directory.
17179         * app/preferences.c (prefs_save): save config to ~/.diarc.
17180         (prefs_load): load configuration from ~/.diarc.  If the file
17181         does not exist, fallback on the old ~/.diarc location.
17183         * app/app_procs.c (create_user_dirs): create the ~/.dia directory
17184         on startup.
17185         (register_all_objects): look for user specific objects in
17186         ~/.objects rather than ~/.dia_libs.
17188 1999-10-10  Fredrik Hallenberg  <hallon@lysator.liu.se>
17190         * configure.in:
17191         * app_procs.c:
17192         * objects/flowchart/box.c
17193         * objects/flowchart/ellipse.c
17194         * objects/flowchart/flowchart.c 
17195         Use gmodule for dynamic linking. As gmodule is using
17196         RTLD_GLOBAL i had to change flowchart box and ellipse
17197         so the typenames doesn't conflict with the standard
17198         box and ellipse.
17200         * message.c
17201         * commands.c
17202         Use button box to make dialogs look better.
17204 1999-10-09  Alexander Larsson  <alla@lysator.liu.se>
17206         * objects/UML/class_dialog.c:
17207         * objects/UML/class.h:
17208         Implemented undo for "UML - Class" objects.
17209         Not 100% tested yet.
17211         * objects/UML/classicon.c:
17212         * objects/UML/constraint.c:
17213         * objects/UML/dependency.c:
17214         * objects/UML/generalization.c:
17215         * objects/UML/implements.c:
17216         * objects/UML/large_package.c:
17217         * objects/UML/lifeline.c:
17218         * objects/UML/message.c:
17219         * objects/UML/object.c:
17220         * objects/UML/realizes.c:
17221         * objects/UML/state.c:
17222         * objects/UML/usecase.c:
17223         Removed warnings.
17224         
17225         * lib/connectionpoint.h:
17226         Fixed typo.
17227         
17228 1999-10-09  James Henstridge  <james@daa.com.au>
17230         * objects/custom/*.[ch]: added copyright notices to custom object
17231         files.
17233         * shapes/Circuit/hdiode.shape:
17234         * shapes/Circuit/hzener.shape: 
17235         * shapes/Circuit/opamp.shape:
17236         * shapes/Circuit/vdiode.shape:
17237         * shapes/Circuit/vzener.shape: made adjustments to make the circuit
17238         shapes look nice after the custom shape code changes.
17240         * objects/custom/README: updated docs to cover changes to drawing
17241         code.
17243         * objects/custom/custom_object.c (custom_draw): honour the line
17244         properties when drawing the shape.
17246         * objects/custom/shape_info.[ch]: added support for setting line
17247         properties for individual drawing elements in a custom shape.  You
17248         can set the dash style, dash length, cap style and join style.
17250 1999-10-07  James Henstridge  <james@daa.com.au>
17252         * objects/custom/shape_info.c (parse_style): added a few extra synonyms
17253         for foreground and background.
17255         * objects/custom/custom_object.c (custom_draw): use the new style
17256         information when drawing the object.
17258         * objects/custom/shape_info.[ch]: store all shape style info in the
17259         GraphicStyle structure.  This makes adding support for extra CSS
17260         attributes easier -- we don't have to keep adding extra arguments to
17261         a lot of functions.
17263 1999-10-05  James Henstridge  <james@daa.com.au>
17265         * lib/intl.c (unalias_lang): merged in changes from the i18n code
17266         swiped from gnome-libs.
17268 1999-10-03  Alexander Larsson  <alla@lysator.liu.se>
17270         * objects/standard/image.c (get_directory):
17271         Fix memleak. Found by Kjartan Maraas <kmaraas@online.no>
17273 1999-09-28  Alexander Larsson  <alla@lysator.liu.se>
17275         * lib/poly_conn.c (polyconn_destroy):
17276         Fix bug. Access of freed memory.
17277         Rememeber, you can't free the handles of an object
17278         before calling object_destroy(), as it unconnects the handles
17279         therefore referencing them.
17281 1999-09-28  Alexander Larsson  <alla@lysator.liu.se>
17283         * app/undo.c:
17284         undo_clear() didn't set stack->depth to zero.
17285         This made other undo functions crash after this had been called
17286         on a "full" stack.
17287         
17288         * dia.xpm:
17289         Slightly modified by Chris Love <clove@exactis.com>
17291 1999-09-19  Alexander Larsson  <alla@lysator.liu.se>
17293         * objects/UML/class.h: 
17294         * objects/UML/class_dialog.c:
17295         Retrun NULL ObjectChange on class property change.
17296         This means no crashes, but "UML - Class" doesn't support undo yet.
17297         
17298 1999-09-19  Alexander Larsson  <alla@lysator.liu.se>
17299         
17300         * lib/text.c:
17301         Indentation fix.
17303         * objects/UML/classicon.c:
17304         * objects/UML/dependency.c:
17305         * objects/UML/generalization.c:
17306         * objects/UML/implements.c:
17307         * objects/UML/large_package.c:
17308         * objects/UML/lifeline.c:
17309         * objects/UML/message.c:
17310         * objects/UML/object.c:
17311         * objects/UML/realizes.c:
17312         * objects/UML/state.c:
17313         * objects/UML/usecase.c:
17314         Update to new undo (w. get/set_state).
17315         Add object menu to add/delete segments.
17317 1999-09-17  Alexander Larsson  <alla@lysator.liu.se>
17319         * app/menus.c:
17320         Add equal distance alignment.
17322         * app/object_ops.c:
17323         Add equal distance alignment.
17324         Fix bug in adjacent alignment.
17326 1999-09-16  Alexander Larsson  <alla@lysator.liu.se>
17328         * objects/UML/constraint.c: 
17329         Update to new undo (w. get/set_state).
17331 1999-09-15  Alexander Larsson  <alla@lysator.liu.se>
17333         * app/paginate_psprint.c:
17334         Save (parts, more todo) of the info in the print dialog to the
17335         next time it's opened.
17336         Patch from Yo Ric Dude <ricdude@toad.net>
17338 1999-09-14  Alexander Larsson  <alla@lysator.liu.se>
17340         * configure.in:
17341         Updated version string to 0.41cvs.
17343         * objects/UML/assocition.c:
17344         Update to new undo (w. get/set_state).
17345         Add object menu to add/delete segments.
17347         * app/app_procs.c:
17348         Added function debug_break() and called it after all
17349         objects and sheets are loaded. Place a breakpoint here if you
17350         want to debug objects. All symbols should be loaded.
17352 1999-09-12  James Henstridge  <james@daa.com.au>
17354         * app/menus.c (display_menu_items): added print menu item.
17355         (filemenu): always add print menu item -- even if gnome-print is
17356         not installed.
17358         * app/commands.h, app/commands.c (file_print_callback): the print
17359         menu item is now available for both gnome-print and non gnome-print
17360         setups.
17362         * app/paginate_psprint.c (diagram_print_ps): show a dialog to let you
17363         print with the non gnome-print driver.
17365 1999-09-11  James Henstridge  <james@daa.com.au>
17367         * app/paginate_gnomeprint.c (diagram_print_gnome): moved the gnome
17368         printer dialog code out of commands.c.
17370         * app/paginate_psprint.c: new file containing the pagination code for
17371         psprint.
17373         * app/render_eps.c: made a few modifications so as well as producing
17374         EPS files, this renderer can be set up to do postscript printing.
17375         This basically entailed adding an extra function to create a RenderEPS
17376         renderer which did not bother setting the viewport for the document.
17377         That was left for the pagination code.
17379 1999-09-10  James Henstridge  <james@daa.com.au>
17381         * app/render_gnomeprint.c (draw_ellipse, fill_ellipse): since
17382         gnome-print does not support elliptic arcs at the moment, approximate
17383         the ellipse with eight bezier curves.  This gives a pretty good
17384         match to a true ellipse.
17386 1999-09-09  James Henstridge  <james@daa.com.au>
17388         * app/commands.c (file_gnome_print_callback): added support for
17389         scaling the diagram.  Also fixed a few other bugs.
17391         * app/paginate_gnomeprint.c (print_page): added ability to scale
17392         document.  Fixed up test to see if the page has no objects on it.
17393         This should prevent some blank pages being printed.  Non square
17394         objects such as lines could still cause problems.
17396 1999-09-08  James Henstridge  <james@daa.com.au>
17398         * app/commands.c (file_gnome_print_callback): changed from using the
17399         standard printer selection dialog to one that also has a paper size
17400         selector as well.
17402         * commands.[ch]: added callbacks for the print menu item.  Currently
17403         it only does A4 output.  I will make it configurable soon.
17404         
17405         * app/menus.c: add a print diagram menu item if gnome-print support
17406         is enabled.
17407         
17408         * app/paginate_gnomeprint.c, app/paginate_gnomeprint.h: this is a
17409         bit higher level than the gnome-print renderer.  It splits the
17410         diagram into page size chunks and then renders them.  For each
17411         page, it only renders the objects whose bounding box intersects
17412         the page, and it sets the clip mask so that the diagram does not
17413         overlap the margins.
17414         
17415         * app/render_gnomeprint.c, app/render_gnomeprint.h: added a renderer
17416         that uses gnome-print as its back end.
17417         
17418         * configure.in: added a check for gnome-print.  It is disabled by
17419         default because the code is not really working correctly yet.
17421         * app/menus.c: the delete object menu item was missing from the
17422         GnomeUIInfo style menus.
17424 1999-09-07  Fredrik Hallenberg  <hallon@lysator.liu.se>
17426         * configure.in
17427         Added japanese to ALL_LINGUAS.
17428         Fix for Linux on Alpha.
17430 1999-09-07  Alexander Larsson  <alla@lysator.liu.se>
17432         * app/create_object.c (create_object_button_press):
17433         Always initialize tool->obj. Otherwise we store a null
17434         in the undo Change.
17436         * lib/text.c:
17437         Set linestyle before drawing cursor.
17438         Fix undo of backwards delete.
17440 1999-09-05  James Henstridge  <james@daa.com.au>
17442         * dia.spec: updated spec file to distribute $(prefix)/share/dia.
17444         * app/render_svg.c (draw_image): some fixes so that the appropriate
17445         style attributes are set.  Before it was setting line styles on
17446         fill_* functions.  Now it only does this for the draw_* variants.
17448         * app/Makefile.am (run_dia.sh): set the DIA_SHAPE_PATH environment
17449         variable so that custom shapes can be loaded.
17451         * shapes/: new directory for custom shapes.  The Circuit sheet has
17452         been moved here.
17454 1999-09-02  James Henstridge  <james@daa.com.au>
17456         * TODO: removed a few todo items that have been implemented.
17458         * app/interface.c (create_sheets): enabled the popup page menu to the
17459         notebook.  This can make it easier to select different sheets.
17461         * object/custom/Circuit/: added diode, zener diode, ground point and
17462         operational amplifier shapes.
17463         
17464         * objects/custom/Makefile.am: added a note about adding DEBUG_CUSTOM
17465         if you want the output.
17467         * objects/custom/shape_info.c (parse_path): same here.
17469         * objects/custom/load_sheet.c (load_with_readdir): don't print so
17470         much debugging output.  To get the previous level of output, define
17471         DEBUG_CUSTOM.
17473         * objects/custom/shape_info.c (parse_svg_node): polygons were being
17474         recorded as polylines in the ShapeInfo structure.
17476         * objects/custom/README: some notes on writing new custom shapes.
17477         
17478 1999-09-01  James Henstridge  <james@daa.com.au>
17480         * objects/custom/Circuit/hinductor.*:
17481         * objects/custom/Circuit/vinductor.*: added inductor shapes that
17482         also test out the bezier curve and SVG path support.
17483         
17484         * objects/custom/custom_object.c (custom_draw): added support for
17485         drawing bezier paths and filled shapes.
17487         * objects/custom/shape_info.c (parse_path): new function to parse
17488         SVG path elements.  It does not do quadratic beziers or elliptic
17489         arcs though.  Only moves, lines and cubic beziers.
17490         (*): added support for paths.
17492 1999-08-31  James Henstridge  <james@daa.com.au>
17494         * objects/sybase/ltm.c (render_to_store): use the newer bezier API.
17496         * app/render_svg.c (draw_bezier, fill_bezier): updated renderer
17497         interface
17499         * app/render_eps.c (draw_bezier, fill_bezier): updated renderer
17500         interface
17502         * app/render_gdk.c (draw_bezier, fill_bezier): updated renderer
17503         interface.
17505         * lib/render_store.[ch]: use newer bezier functions.
17507         * lib/render.h: changed the bezier drawing functions to use an array
17508         of BezPoint structures instead of normal Point structures to allow
17509         lineto's mixed in with the curveto's.
17510         
17511         * objects/custom/Circuit/pnp.*: added pnp transistor shape.
17512         
17513         * objects/custom/Circuit/Makefile.am (SHAPES): added index.sheet and
17514         xpm images for different shapes to Makefile.
17516         * objects/custom/custom_object.c (custom_object_new): set the icon
17517         for the sheet button if there is one.  Otherwise fall back on the
17518         default custom object icon.
17520         * objects/custom/shape_info.c (load_shape_info): read the sheet
17521         icon name from the shape file.
17523         * app/interface.c (create_sheet_page): if sheet_obj->pixmap == NULL,
17524         check the pixmap_file field for the name of a pixmap file to load
17525         for the tool.
17527         * lib/sheet.h (SheetObj): added pixmap_file field to structure.  It is
17528         at the end of the structure, and it isn't used if the pixmap field
17529         is non NULL, so it should not break binary compatibility.
17531         * objects/custom/load_sheet.[ch]: moved sheet loading code here.  Also
17532         added support for the use of an index.sheet file so you can specify
17533         the ordering of the shapes in the sheet, and also internationalise
17534         the sheet name and actually be able to give a description.  The old
17535         readdir based sheet loading code acts as a fallback if an index.sheet
17536         file can not be found.
17538         * objects/custom/custom_util.[ch]: new file containing useful routines
17539         needed by the custom object code.  Currently only contains a simple
17540         routine for resolving relative paths.
17542         * objects/custom/custom_object.c (custom_draw): fixed problem with
17543         drawing rectangles if the shape has been flipped.
17545 1999-08-30  James Henstridge  <james@daa.com.au>
17547         * objects/custom/custom_object.c (custom_get_object_menu): allow
17548         flipping of custom shapes.  This uses the miggle click object
17549         menu.
17551         * objects/custom/Circuit/npn.shape: fix aspect ratio.
17553         * objects/custom/custom_object.c (custom_update_data): honour the
17554         aspect ratio constraints.
17556         * objects/custom/shape_info.c (load_shape_info): updated aspect ratio
17557         tag parsing, so you can specify a free, fixed or a range for aspect
17558         ratios for the shape.
17560 1999-08-29  James Henstridge  <james@daa.com.au>
17562         * objects/custom/test.xml, objects/custom/Circuit/*.shape: fixed
17563         up shape namespace tag.
17565         * objects/custom/shape_info.c (load_shape_info): check xml:lang
17566         attribute on <description> elements to support i18n for custom
17567         shape descriptions.
17568         Also changed the shape namespace for custom shapes to something
17569         a little more sensible.
17571         * lib/dummy_dep.h (dummy_dep): added extra dummy dependency.
17573         * lib/intl.c: new file containing some functions for i18n stuff.
17575         * app/layer_dialog.c (create_button_box): fixed a warning.
17577         * objects/custom/custom_object.c: use current line style.  Save dash
17578         length.
17580         * objects/flowchart/diamond.c: use current line style.  Save dash
17581         length.
17583         * objects/flowchart/parallelogram.c: use current line style.  Save
17584         dash length.
17586         * objects/flowchart/ellipse.c: use current line style.  Save dash
17587         length.
17589         * objects/flowchart/box.c: use current line style.  Save dash length.
17591         * objects/standard/ellipse.c: make ellipse use current line style.
17593         * objects/standard/box.c: use the line style set in the toolbox for
17594         new boxes, and remember the dash length.
17596         * app/commands.c (view_toggle_rulers_callback): fix reshowing of
17597         rulers.
17599 1999-08-24  James Henstridge  <james@daa.com.au>
17601         * objects/flowchart/ellipse.c (ellipse_update_data): made some changes
17602         to try to stop ellipse to get infinite width/height when we resize,
17603         while trying to keep the text inside the ellipse.
17605         * objects/flowchart/box.c, objects/flowchart/parallelogram.c,
17606         * objects/flowchart/diamond.c, objects/flowchart/ellipse.c: fixed
17607         resizing behaviour, so that you can't push objects round the screen
17608         with the resize handles.
17610         * app/lineprops_area.c (dia_arrow_chooser_init, dia_line_chooser_init):
17611         get the OK buttons in the dialogs to take default clicks.
17613         * objects/custom/custom_object.c: added code so that resizing the
17614         shape does not end up pushing it round the screen.
17616 1999-08-23  Alexander Larsson  <alla@lysator.liu.se>
17618         * app/display.[ch]:
17619         Generate rectangle with the union of the damaged regions.
17620         This is used to optimize the grid paint and the object rendering.
17621         display_render_pixmap passes this info to grid_draw() and data_render().
17623         * app/grid.[ch]:
17624         grid_draw doesn't draw grid lines outside of damaged rectangle.
17625         Sets dashlength when drawing non-solid grid.
17626         
17627         * lib/diagramdata.[ch]:
17628         data_render() and layer_render() takes an optional damaged rectangle
17629         argument. No objects not intersecting this are drawn.
17631         * app/diagram.c:
17632         Fix warning.
17633         Call data_render with NULL update rectangle.
17634         
17635 1999-08-23  James Henstridge  <james@daa.com.au>
17637         * objects/custom/custom_object.c (custom_update_data): if the aspect
17638         ratio is fixed, make sure the shape is not distorted.
17640         * object/custom/shape_info.h, objects/custom/shape_info.c: notice if
17641         a <fixaspectratio/> tag is given in the shape file.
17643         * objects/custom/shape_info.[ch], objects/custom/custom_object.c:
17644         added support for stroke-width, stroke and fill CSS attributes
17645         specified in style attributes of the SVG elements.  The line width
17646         is relative to the user specified line width.  The stroke and fill
17647         attributes can only be used to swap the foreground/background
17648         colours.
17650         * lib/widgets.c (dia_line_style_selector_set_linestyle): set the
17651         sensitivity on the dash length selector when this function is called.
17653         * objects/standard/arc.c: same.  Also handle dash length.
17654         * objects/standard/zigzagline.c: same.
17655         * objects/standard/polyline.c: same.  Also handle dash length.
17656         * objects/standard/line.c: use default arrow/line styles.
17658         * app/interface.c: added callbacks to set the default attributes.
17660         * lib/attributes.c: added implementations of these functions.
17662         * lib/attributes.h: added extra prototypes for the new line properties
17663         area in the toolbox.
17665         * app/interface.c (create_lineprops_area): added line properties
17666         area to bottom of toolbox.
17668         * app/lineprops_area.h: a header exporting a few routines of the
17669         line properties area widgets.
17671         * app/lineprops_area.c: new file containing a selector for arrows
17672         and line styles to go in the main toolbox.
17674 1999-08-22  Alexander Larsson  <alla@lysator.liu.se>
17676         * HACKING:
17677         Update Gtk+ 1.0.5 comment to 1.2.0.
17679         * INSTALL:
17680         Demand libtool 1.3
17682         * acconfig.h:
17683         Add HAVE_LIBPOPT
17685         * configure.in:
17686         Make sure we don't propagate -ldl and -lpopt to all LIBS
17687         by adding new var APP_LIBS that only app/dia links with.
17688                 
17689         * app/Makefile.am:
17690         Update run_dia.sh to load custom and flowchart objects.
17692         * objects/ER/Makefile.am:
17693         * objects/FS/Makefile.am:
17694         * objects/UML/Makefile.am:
17695         * objects/network/Makefile.am:
17696         * objects/standard/Makefile.am:
17697         * objects/sybase/Makefile.am:
17698         Don't build versioned libs.     
17699         
17700 1999-08-22  James Henstridge  <james@daa.com.au>
17702         * configure.in: added objects/custom/Circuit/Makefile to AC_OUTPUT
17703         list.
17705         * objects/Makefile.am (SUBDIRS): added custom to subdir list -- it
17706         should actually work a bit now.
17708         * objects/custom/Circuit/*: a test sheet for the custom shape code.
17709         It is a small collection of circuit elements.
17711         * objects/custom/shape_info.c: fixed up loading of polylines and
17712         polygons.  Before it was removing negative signs :(
17714         * objects/custom/pixmaps/custom.xpm: drew the custom shape icon.  A
17715         placeholder was here before.  I still need to work out how to set
17716         icons for individual custom shapes.
17717         
17718         * objects/custom/custom.c: added code to load the shapes into sheets
17719         properly.  The shape files should be arranged into directories, and
17720         each directory represents a different sheet in the toolbox.  This
17721         will make it very easy to distribute a collection of dia shapes as
17722         a tarball.  I still need to work out internationalisation, and maybe
17723         also shape ordering in the sheet.
17725         * objects/custom/custom_object.c: fixed up dialogs for these objects.
17726         (custom_create): fix for objects without text areas.
17728         * objects/custom/shape_info.h, objects/custom/custom_object.c: loading
17729         and saving of custom object works correctly now.
17731 1999-08-21  James Henstridge  <james@daa.com.au>
17733         * objects/flowchart/ellipse.c: 
17734         * objects/flowchart/diamond.c: 
17735         * objects/flowchart/parallelogram.c: 
17736         * objects/flowchart/box.c: Fixed up a few bugs in these objects when
17737         copying or loading these object types.  Not all the connection
17738         points would be initialised correctly.
17740         * objects/flowchart/Makefile.am (libflowchart_objects_la_LDFLAGS):
17741         similar here.
17743         * objects/custom/Makefile.am (libcustom_objects_la_LDFLAGS): do not
17744         build a versioned library.  It will only ever be dlopen'd, so this
17745         is not a problem.
17747         * objects/custom/custom_object.c (custom_distance_from): allow
17748         selecting the object by clicking on the text.  This fixes problems
17749         where the text box is outside the graphic.
17751         * objects/custom/shape_info.c (load_shape_info): fixed up reading
17752         of connections points.  It should be possible to add connections
17753         to custom objects now.
17755         * objects/custom/custom_object.c (custom_update_data): fixed resizing
17756         due to changes to text.
17758         * configure.in: added extra makefiles.
17759         
17760         * objects/custom/shape_info.[ch]:
17761         * objects/custom/custom_object.c:
17762         * objects/custom/custom.c: the starts of custom shape support in dia.
17763         This is not built by default at the moment, since it is not quite
17764         complete.  When it is, it will let you create more shapes for dia
17765         without writing a line of C.  Its implementation includes buzzwords
17766         such as XML and SVG, so it must be good :)
17768 1999-08-19  Karsten Weiss  <karsten@addx.au.s.shuttle.de>
17770         * app/app_procs.c (app_exit): Use button labels "Quit" and
17771         "Cancel" instead of "Yes" and "No".
17772         Set default action to "Cancel" instead of "Quit".
17774 1999-08-19  James Henstridge  <james@daa.com.au>
17776         * objects/flowchart/flowchart.c: added ellipse object.
17777         
17778         * objects/flowchart/ellipse.c: a new shape for the flowchart toolbox.
17780 1999-08-18  James Henstridge  <james@daa.com.au>d
17782         * app/color_area.c (color_area_edit): small fix to prevent dia from
17783         segfaulting when you try to change the default foreground/background.
17785 1999-08-17  Alexander Larsson  <alla@lysator.liu.se>
17787         * app/diagram.[ch] (diagram_redraw_all):
17788         Added function that redraws all diagrams.
17790         * app/preferences.c (prefs_apply):
17791         Call diagram_redraw_all when prefs are changed.
17793         * app/render_svg.c:
17794         Don't use xmlEncodeEntitiesReentrant(). It doesn't exist on
17795         older libxml's, and the old version works good enought here.
17796         
17797 1999-08-17  James Henstridge  <james@daa.com.au>
17799         * lib/widgets.c: changed handlers that were connected to the GtkButton
17800         "pressed" signal to connect to the "clicked" signal.  This removes the
17801         problem where dialogs are inactive until you click a mouse button
17802         after using a colour selector.
17804         * configure.in: added extra makefiles to AC_OUTPUT list.
17805         
17806         * objects/Makefile.am (SUBDIRS): added flowchart module
17808         * objects/flowchart/*: a collection of shapes for use in flowcharts.
17810         * app/color_area.c (color_area_events): similar here.
17812         * app/linewidth_area.c (linewidth_area_events): sometimes a configure
17813         event is recieved with event->width == 0, which causes a warning if we
17814         try to create a pixmap of that width.
17816         * app/preferences.c, app/preferences.h, app/grid.c: added code to
17817         allow you to configure the colour of the grid, and also lets you
17818         set the grid to use dotted lines instead of solid ones.
17819         
17820         * app/commands.c, app/commands.h, app/diagram.c, app/diagram.h,
17821         app/menus.c, app/Makefile.am: added menu entry for exporting SVG files.
17822         
17823         * app/render_svg.h, app/render_svg.c: an SVG (Scalable Vector Graphics)
17824         export filter.  It is not quite complete, but for most shapes it
17825         works as expected.  Fonts still need a bit of work.
17827 1999-08-11  Robert Brady  <rwb197@ecs.soton.ac.uk>
17829         * configure.in: Added "en_GB" to ALL_LINGUAS.
17831 1999-08-04  Fredrik Hallenberg  <hallon@lysator.liu.se>
17833         * menus.c
17834         Added Undo and Redo to GNOME menus.
17835         
17836         * objects/ER/attribute.c:
17837         * objects/ER/entity.c:
17838         * objects/ER/participation.c:
17839         * objects/ER/relationship.c:
17840         Added get/set_state functions.
17842         * objects/ER/participation.c:
17843         Added add/delete segment.
17845         * po/sv.po
17846         Updated Swedish translation.
17848 1999-07-25  Alexander Larsson  <alla@lysator.liu.se>
17850         * app/preferences.[hc]:
17851         Added undo_depth pref.
17852         
17853         * app/undo.[ch]:
17854         Never grow stack larger than pref.undo_depth.
17855         undo_depth == 0 means unlimited.
17856         Converted printfs to conditionally compiled DEBUG_PRINTFs.
17857         
17858 1999-07-25  Alexander Larsson  <alla@lysator.liu.se>
17860         * app/diagram.c:
17861         * app/group.c:
17862         * lib/object.h:
17863         * lib/render_object.c:
17864         * objects/ER/attribute.c:
17865         * objects/ER/entity.c:
17866         * objects/ER/participation.c:
17867         * objects/ER/relationship.c:
17868         * objects/FS/flow-ortho.c:
17869         * objects/FS/flow-poly.c:
17870         * objects/FS/flow.c:
17871         * objects/FS/function.c:
17872         * objects/UML/actor.c:
17873         * objects/UML/association.c:
17874         * objects/UML/class.c:
17875         * objects/UML/classicon.c:
17876         * objects/UML/component.c:
17877         * objects/UML/constraint.c:
17878         * objects/UML/dependency.c:
17879         * objects/UML/generalization.c:
17880         * objects/UML/implements.c:
17881         * objects/UML/large_package.c:
17882         * objects/UML/lifeline.c:
17883         * objects/UML/message.c:
17884         * objects/UML/note.c:
17885         * objects/UML/object.c:
17886         * objects/UML/realizes.c:
17887         * objects/UML/small_package.c:
17888         * objects/UML/state.c:
17889         * objects/UML/usecase.c:
17890         * objects/network/bus.c:
17891         * objects/standard/arc.c:
17892         * objects/standard/box.c:
17893         * objects/standard/ellipse.c:
17894         * objects/standard/image.c:
17895         * objects/standard/line.c:
17896         * objects/standard/polyline.c:
17897         * objects/standard/textobj.c:
17898         * objects/standard/zigzagline.c:
17899         Removed all traces of is_empty(). It doesn't work in an
17900         Undo/Redo world.
17902 1999-07-25  Alexander Larsson  <alla@lysator.liu.se>
17904         * app/diagram.c:
17905         * app/group.[ch]:
17906         * app/undo.[ch]:
17907         Undoable grouping and ungrouping.
17909         * app/layer_dialog.c:
17910         * lib/diagramdata.[ch]:
17911         Undoable layer ops.
17913         * app/modify_tool.c:
17914         Undoable unconnect on handle move.
17916         * lib/orth_conn.[ch]:
17917         Working undoable add/remove segment.
17918         Removed endpoint_handles from OrthConn, renamed
17919         midpoint_handles to handles and put the endpoint
17920         handles there.
17922         * objects/standard/zigzagline.c:
17923         * objects/ER/participation.c:
17924         * objects/UML/association.c:
17925         * objects/UML/dependency.c:
17926         * objects/UML/generalization.c:
17927         * objects/UML/realizes.c:
17928         Update for the changes in OrthConn
17929         
17930 1999-07-23  Karsten Weiss  <karsten@addx.au.s.shuttle.de>
17932         * configure.in: Added "de" to ALL_LINGUAS.
17934 1999-07-17  Alexander Larsson  <alla@lysator.liu.se>
17936         * dia.1:
17937         Fixed typo.
17939         * app/display.c:
17940         * po/da.po:
17941         * po/fr.po:
17942         * po/hu.po:
17943         * po/no.po:
17944         * po/pl.po:
17945         * po/sv.po:
17946         Don't have the <Display> etc part of the menu strings
17947         i18n:ed. Patch from Fabrice.Bellet@imag.fr.
17949         * app/diagram.c:
17950         Don't have the <Display> etc part of the menu strings
17951         i18n:ed. Patch from Fabrice.Bellet@imag.fr.
17952         Don't remove is_empty() objects, that don't work with undo.
17954         * lib/objchange.[ch]:
17955         New files.
17956         Definition of ObjectChange. This is essentially an Change
17957         exported to the object libs. It encapsulates a change made
17958         to an objects internals. It can be applied, reverted and freed.
17959         There are also utility functions for doing ObjectChanges that
17960         only get/set the whole state of an object to store the change.
17961         This cannot be used when the object change deletes or adds a
17962         object which has references from other objects, eg. Handles which
17963         might be connected.
17965         * lib/Makefile.am:
17966         Added objchange.c and objchange.h.
17968         * lib/dia_image.c:
17969         Return NULL when loading fails.
17971         * lib/diamenu.h:
17972         Menu callbacks return an ObjectChange.
17974         * lib/dummy_dep.h:
17975         Reference objchange.o
17977         * lib/focus.h:
17978         Key events return ObjectChange if they modify the object.
17980         
17981         * lib/object.h:
17982         Added object_add_handle_at() function.
17983         Apply properties returns an ObjectChange.
17984         Remove ObjectState and the get/set state functions, these
17985         don't always work. Use the new ObjectChange instead.
17986         
17987         * lib/object.c:
17988         Added object_add_handle_at() function implementation.
17989         
17990         * lib/orth_conn.[ch]:
17991         Use ObjectChange. Not finished yet.
17992         Removed get/set/free state functions
17994         * lib/poly_conn.[ch]:
17995         Use ObjectChange.
17996         Don't remove segments that are small.
17997         Removed get/set/free state functions
17999         * lib/text.[ch]:
18000         Use ObjectChange.
18001         Added functions to get/set all text attributes.
18003         * objects/standard/arc.c:
18004         * objects/standard/box.c:
18005         * objects/standard/ellipse.c:
18006         * objects/standard/image.c:
18007         * objects/standard/line.c:
18008         * objects/standard/polyline.c:
18009         * objects/standard/textobj.c:
18010         * objects/standard/zigzagline.c:
18011         Use ObjectChange.
18012         fixed bug in image_set_state.
18013         zigzagline.c not finished yet.
18015         * app/disp_callbacks.c:
18016         Use ObjectChange that are returned from menu callbacks and
18017         key_events for undo.
18019         * app/properties.c:
18020         Use ObjectChange that are returned from properties apply
18021         for undo.
18023         * app/undo.c:
18024         * app/undo.h:
18025         New undo type: ObjectChangeChange. This wraps a change to the
18026         internals of an object (and ObjectChange) in code that does
18027         app specific stuff (object_add_updates etc.)
18029 1999-07-11  Alexander Larsson  <alla@lysator.liu.se>
18031         * lib/orth_conn.[ch]:
18032         Added code for add/delete segment.
18034         * objects/standard/zigzagline.c:
18035         Use the new orth_conn code.
18036         
18038 1999-07-08  Fredrik Hallenberg  <hallon@lysator.liu.se>
18040         * objects/FS/Makefile.am
18041         Removed fs.h from sources.
18043         * Makefile.am
18044         * dia.1
18045         Added man page.
18047 1999-07-07  Alexander Larsson  <alla@lysator.liu.se>
18049         * app/disp_callbacks.c (ddisplay_canvas_events):
18050         Fix for bug. Every other arrow-key press got lost.
18051         patch from Mr. Data Esq. <data@r47h102.res.gatech.edu>
18053         * INSTALL:
18054         change automake.sh to autogen.sh
18055         
18056 1999-06-24  Alexander Larsson  <alla@lysator.liu.se>
18058         * app/diagram.c:
18059         Don't remove 'empty' objects.
18060         This violent destruction of objects won't work
18061         with the new undo framework.
18063         * app/disp_callbacks.c:
18064         Save undo info for object menu calls and key_events.
18066         * app/properties.c:
18067         Save undo info on properties apply.
18069         * lib/dia_image.[ch]:
18070         Add refcounting for images.
18072         * app/render_eps.c:
18073         * app/render_gdk.c:
18074         * lib/render.h:
18075         DiaImage * -> DiaImage
18077         * app/undo.[ch]:
18078         Add undo functions for object state changes.
18080         * lib/focus.h:
18081         * lib/text.c:
18082         change of semntics for focus->key_event.
18083         Now returns TRUE if the object recieving the event
18084         was changed.
18086         * lib/object.h:
18087         Comment changes.
18089         * lib/orth_conn.[ch]:
18090         Don't automatically create and delete segments when
18091         handles are moved. This is incompatible with undo.
18092         Added state get, set and free functions.
18094         * lib/orth_conn.[ch]:
18095         Added state get, set and free functions.
18097         * objects/UML/object.c:
18098         * objects/UML/uml.c:
18099         Fixed typo "UML - Objet" -> "UML - Object".
18100         Saved old for backwards compatibility.
18102         * objects/standard/arc.c:
18103         * objects/standard/box.c:
18104         * objects/standard/ellipse.c:
18105         * objects/standard/image.c:
18106         * objects/standard/line.c:
18107         * objects/standard/polyline.c:
18108         * objects/standard/textobj.c:
18109         * objects/standard/zigzagline.c:
18110         Added get/set state functions.
18111         Textobj has a redo crash-bug.
18112         Zigzagline needs object menus to add segments.
18113         
18115 1999-06-20  Alexander Larsson  <alla@lysator.liu.se>
18117         * app/render_eps.c (set_dashlength):
18118         Don't generate eps files with zero dash-length.
18120 1999-06-16  Alexander Larsson  <alla@lysator.liu.se>
18122         * app/commands.c:
18123         * app/create_object.c:
18124         * app/undo.[ch]:
18125         Finished undo for create and paste.
18126         
18127         * lib/object.h:
18128         Started properties undo.
18130 1999-06-14  Alexander Larsson  <alla@lysator.liu.se>
18132         * TODO:
18133         Added resizeable groups.
18135         * app/app_procs.c:
18136         Removed unused variable.
18138         * app/commands.c:
18139         * app/undo.[ch]:
18140         Undo/redo for cut/delete done.
18142         * app/create_object.c:
18143         * app/modify_tool.c:
18144         * lib/diagramdata.[ch]:
18145         * app/diagram.[ch]:
18146         renamed diagram_add_selected -> diagram_select
18147         renamed diagram_remove_selected -> diagram_unselect
18148         
18149         * app/properties.[ch]:
18150         Added properties_hide_if_shown() function.
18152 1999-06-13  Alexander Larsson  <alla@lysator.liu.se>
18154         * app/undo.[ch]:
18155         * app/Makefile.am:
18156         Undo functions.
18157         
18158         * app/commands.[ch]
18159         * app/modify_tool.[ch]
18160         * app/object_ops.[ch]
18161         * app/connectionpoint_ops.c
18162         * app/menus.c
18163         Use undo functions.
18164         WARNING: Not finished. Will break.
18165         Finished: move object, move handle.
18167         * app/diagram.[ch]
18168         Added diagram_selected_break_external() function.
18169         It removes all connections between selected objects
18170         and non-selected.
18171         Add undo stack to Diagram.
18172         
18173         * lib/diagramdata.[ch]
18174         Added layer_remove_objects() function
18175         
18176 1999-06-11  Fredrik Hallenberg  <hallon@lysator.liu.se>
18178         * objects/FS/Makefile.am
18179         * objects/sybase/Makefile.am
18180         Now uses GNOME_CFLAGS.
18182         * app/app_procs.c
18183         Now compiles with GNOME even if popt.h isn't available.
18185 1999-06-10  Alexander Larsson  <alla@lysator.liu.se>
18187         * configure.in
18188         * objects/Makefile.am
18189         * objects/sybase/*
18190         First version of sybase objects from
18191         Brian Bruns <camber@umcc.ais.org>
18193 1999-06-10  Fredrik Hallenberg  <hallon@lysator.liu.se>
18195         * configure.in
18196         Added fr to ALL_LINGUAS
18198 1999-06-09  Fredrik Hallenberg  <hallon@lysator.liu.se>
18200         * configure.in
18201         * app/app_procs.c
18202         Popt-code is activated if popt is available.
18204 1999-06-08  Alexander Larsson  <alla@lysator.liu.se>
18206         This is a patch from David Thompson <dcthomp@mail.utexas.edu>
18207         
18208         * lib/orth_conn.[ch]:
18209         Added orthconn_get_middle_handle()
18211         * lib/text.[ch]:
18212         Added text_set_cursor_at_end()
18213         
18214         * objects/FS/*
18215         Added first version of functions structure diagrams.
18216         
18217 1999-05-24  Alexander Larsson  <alla@lysator.liu.se>
18219         * app/modify_tool.c:
18220         Include math.h to remove warning.
18222         * app/commands.c (dialogs_properties_callback):
18223         Bring up correct properties dialog when selected
18224         from menu.
18225         From Dan Cohn <dan@internap.com>
18227 1999-05-20  Alexander Larsson  <alla@lysator.liu.se>
18229         Patch from Lars R. Clausen 
18230         
18231         * app/modify_tool.c:
18232         Changed abs to fabs.
18234 1999-05-19  Alexander Larsson  <alla@lysator.liu.se>
18236         * INSTALL: 
18237         * configure.in:
18238         Require Gtk+ 1.2.0
18240 1999-05-18  Alexander Larsson  <alla@lysator.liu.se>
18242         Patches from Dan Cohn <dan@internap.com>
18243         
18244         * app/commands.[ch]: 
18245         * app/display.[ch]: 
18246         * app/menus.c:
18247         * app/preferences.[ch]:
18248         Implements ability to turn on/off connection points in
18249         current drawing and in global prefs.
18251 1999-05-18  Alexander Larsson  <alla@lysator.liu.se>
18253         * lib/widgets.c (dia_line_style_selector_init): 
18254         Fixed warnings.
18255         
18256         * lib/diagramdata.c (layer_update_extents):
18257         Fixed uninitialized variable error.
18259 1999-05-17  Alexander Larsson  <alla@lysator.liu.se>
18261         * lib/dia_image.c:
18262         Made some changes to the gdk_imlib visual+colormap setup.
18264 1999-05-17  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
18266         * objects/UML/usecase.c: 
18267        * objects/UML/lifeline.c
18268         Fine tunning.
18270         * objects/UML/object.c: 
18271         * objects/UML/message.c: 
18272         Changed font from Courier to Helvetica.
18274         * lib/widgets.c: 
18275         * lib/widgets.h:
18276         Added dash lenth to the LineStyle widget.
18277         
18278         * objects/standard/ellipse.c :
18279         * objects/standard/zigzagline.c: 
18280         * objects/standard/line.c: 
18281         Added dash lenght property.
18283 1999-05-16  Alexander Larsson  <alla@lysator.liu.se>
18285         * app/render_eps.c:
18286         First shot at latin1 encoded eps files.
18287         Works, but the eps files get a bit large.
18288         
18289 1999-05-16  Alexander Larsson  <alla@lysator.liu.se>
18291         * objects/UML/class.[ch]: 
18292         * objects/UML/uml.[ch]:
18293         Reverted the line wrap changes.
18294         Some day this might return, but it has to be selectable and
18295         default to off for loaded objects, otherwise it breaks file
18296         format compatibility.
18297         There was also some complains about how it looked, so a making it
18298         selectable is good for this too.
18300 1999-05-15  Alexander Larsson  <alla@lysator.liu.se>
18302         * objects/UML/class.[ch]:
18303         Some indentation cleanup.
18304         Added wrap_lines variable to class.
18305         I'll fix the line break stuff tomorrow.
18307 1999-05-13  Alexander Larsson  <alla@lysator.liu.se>
18309         * lib/dummy_dep.h:
18310         Added ref to poly_conn.o.
18312         * objects/standard/polyline.c (polyline_draw): 
18313         * objects/standard/zigzagline.c (zigzagline_draw): 
18314         * objects/standard/arc.c (arc_draw): 
18315         * objects/standard/line.c (line_draw):
18316         Draw lines before arrows. This makes hollow arrows not
18317         show the line.
18319 1999-05-13  Alexander Larsson  <alla@lysator.liu.se>
18321         Changes from Kim Peasley <kpeasley@ior.com> 
18322                 
18323         * objects/UML/class.c:
18324         Break lines with long operations so classes won't be
18325         so wide.
18327         * objects/UML/uml.[ch]:
18328         Helperfunctions for the above.
18329         
18330         * objects/UML/objects.c:
18331         Fix bug that duplicated the text in the attributes
18332         textwidget each time the object was selected.
18333         
18334 1999-05-12  Alexander Larsson  <alla@lysator.liu.se>
18336         Changes from Lars R. Clausen <lrclause@cs.uiuc.edu>
18337         
18338         * app/modify_tool.c:
18339         * app/modify_tool.h:
18340         Control-drag is restricted to vertical/horizontal movement
18341         
18342         * lib/object.h:
18343         ModifierKeys argument added to object_move_handle
18345         * app/connectionpoint_ops.c:
18346         * app/create_object.c:
18347         * app/object_ops.c:
18348         * objects/ER/attribute.c:
18349         * objects/ER/entity.c:
18350         * objects/ER/participation.c:
18351         * objects/ER/relationship.c:
18352         * objects/UML/actor.c:
18353         * objects/UML/association.c:
18354         * objects/UML/class.c:
18355         * objects/UML/classicon.c:
18356         * objects/UML/component.c:
18357         * objects/UML/constraint.c:
18358         * objects/UML/dependency.c:
18359         * objects/UML/generalization.c:
18360         * objects/UML/implements.c:
18361         * objects/UML/large_package.c:
18362         * objects/UML/lifeline.c:
18363         * objects/UML/message.c:
18364         * objects/UML/note.c:
18365         * objects/UML/object.c:
18366         * objects/UML/realizes.c:
18367         * objects/UML/small_package.c:
18368         * objects/UML/state.c:
18369         * objects/UML/usecase.c:
18370         * objects/network/bus.c:
18371         * objects/standard/arc.c:
18372         * objects/standard/box.c:
18373         * objects/standard/ellipse.c:
18374         * objects/standard/image.c:
18375         * objects/standard/line.c:
18376         * objects/standard/polyline.c:
18377         * objects/standard/textobj.c:
18378         * objects/standard/zigzagline.c:
18379         Changed calls to move_handle to pass the new argument.
18380         
18381         * lib/widgets.c:
18382         * lib/widgets.h:
18383         Default line width, color etc #define'd
18384         
18385         * po/da.po:
18386         Updates of danish menus
18388 1999-05-08  Fredrik Hallenberg  <hallon@lysator.liu.se>
18390         * dia.xpm
18391         * dia_gnome_icon.png
18392         * dia_gnome_menu_icon.png
18393         * dia_logo.png
18394         Graphics by Toussaint Frédéric <ftoussin@club-internet.fr>.
18396         * app/commands.c
18397         About dialog shows dia_logo.png. Removed the GNOME about dialog.
18399         * Makefile.am
18400         Distribute the icons and install logo in pkgdatadir.
18401         
18402         * app/Makefile.am
18403         Added DATADIR-define.
18404         
18405 1999-04-28  Alexander Larsson  <alla@lysator.liu.se>
18406         Patches from Enrico Scholz <enrico.scholz@wirtschaft.tu-chemnitz.de>
18408         * dia.spec:
18409         Updated version number, made setup quiet, can build from cvs,
18410         --enable-gnome, now using automake 1.4 DESTDIR feature, install-strip
18412         * lib/Makefile.am
18413         * objects/ER/Makefile.am
18414         * objects/UML/Makefile.am
18415         * objects/network/Makefile.am
18416         * objects/standard/Makefile.am
18417         now builds better with gnome
18419         * objects/UML/class_dialog.c
18420         Fixed typo -> po files must be updated too!!
18421         
18422 1999-04-28  Alexander Larsson  <alla@lysator.liu.se>
18424         * lib/dummy_dep.h:
18425         Added reference so that widgets.o gets linked to the app.
18427 1999-04-23  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
18429         * objects/UML/classicon.c: 
18430         Added object mode.
18432         * objects/UML/actor.c: 
18433         Changed position of 'snap-to-grid' so connection points are
18434         in the grid.
18436 1999-04-22  Alexander Larsson  <alla@lysator.liu.se>
18438         * objects/UML/classicon.c:
18439         Changed position of 'snap-to-grid'.
18440         By Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
18441         
18442 1999-04-22  Alexander Larsson  <alla@lysator.liu.se>
18444         * objects/network/antenna.c
18445         * objects/network/flash.c
18446         * objects/network/hub.c
18447         * objects/network/modem.c
18448         * objects/network/modularswitch.c
18449         * objects/network/rj45plug.c
18450         * objects/network/scead-plug.c
18451         * objects/network/network.c
18452         * objects/network/Makefile.am
18453         * objects/network/pixmaps/antenna.xpm
18454         * objects/network/pixmaps/flash.xpm
18455         * objects/network/pixmaps/hub.xpm
18456         * objects/network/pixmaps/modem.xpm
18457         * objects/network/pixmaps/modularswitch.xpm
18458         * objects/network/pixmaps/rj45plug.xpm
18459         * objects/network/pixmaps/sceadplug.xpm
18460         * objects/network/pixmaps/Makefile.am
18461         Lots of new network objects from
18462         Roland Steinbach <roland@support-system.com>.
18464 1999-04-15  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
18466         * objects/UML/classicon.c: 
18467         Fixed connection positions, saved type as int (it has 3 states),
18468         and other small fixes.
18469         
18470 1999-04-14  Alexander Larsson  <alla@lysator.liu.se>
18472         * app/preferences.c:
18473         * app/load_save.c:
18474         Added preference compress_save. It lets dia save uncompressed
18475         xml files.
18477         * objects/UML/class.c:
18478         Fixed bug with size calculation on methods that had class scope.
18479         
18480 1999-04-13  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
18482         * objects/UML/usecase.c: 
18483         Added collaboration mode
18484         Fixed connection points with text > ellipse bug and other 
18485         small things
18487         * objects/UML/state.c:
18488         Fixed bug of bad position of text after being either end
18489         or begin, moved and returned to text
18491 1999-04-12  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
18493         * app/preferences.c: Add prototype declaration for prefs_apply.
18495 1999-04-11  Alexander Larsson  <alla@lysator.liu.se>
18497         * app/preferences.c:
18498         Added 'ok' button.
18499         Apply don't hide window.
18501         * app/properties.c:
18502         Add 'ok' button.
18504         * objects/UML/object.c:
18505         * objdcts/UML/state.c:
18506         Some data was not copied on copy.
18508         This patch is from
18509         Ben Hochstedler <benh@eeyore.moneng.mei.com>
18511 1999-04-09  Alexander Larsson  <alla@lysator.liu.se>
18513         * app/Makefile.am:
18514         Changed link order between X and libxml.
18515         Some people had problems with an old libz in their
18516         x11 directory.  
18518 1999-04-09  Kjartan Maraas  <kmaraas@online.no>
18520         * po/no.po: updated translation.
18521         
18522 1999-04-08  Lars R. Clausen <lrclause@cs.uiuc.edu>
18524         * lib/message.c (message_error):
18525         Fixed small error.
18527         * app/commands.[ch]:
18528         * app/diagram.[ch]:
18529         Added begining of xfig importing
18531 1999-04-08  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
18533         * objects/UML/pixmaps/state.xpm: 
18534         * objects/UML/state.c: 
18535         New UML object state machine.
18537         * objects/UML/uml.c:
18538         * objects/UML/Makefile.am:
18539         * objects/UML/pixmaps/Makefile.am:
18540         Added the state object.
18541         
18542 1999-04-08  Alejandro Aguilar Sierra  <ale@bucefalo>
18544         * objects/UML/usecase.c: 
18545         Added dialog to allow move text outside the ellipse.
18547 1999-04-08  Alexander Larsson  <alla@lysator.liu.se>
18549         * Released Dia 0.41
18550         Tag called DIA_0_41
18552         * NEWS:
18553         Updates for 0.41.
18554         
18555 1999-04-08  Alexander Larsson  <alla@lysator.liu.se>
18557         * configure.in:
18558         Updated version number to 0.41
18560         * po/*.po:
18561         Update po-files
18563 1999-04-04  Fredrik Hallenberg  <hallon@lysator.liu.se>
18565         * app/app_procs.c
18566         Changed errormessage for --export-to-ps. Removed call to 
18567         g_log_set_always_fatal().
18569         * app/diagram.c
18570         * app/disp_callbacks.c
18571         * app/load_save.c
18572         (i18n) Removed gettext from some debugmessages.
18574         * app/menus.c
18575         Small fix in GNOME-menus. Added warning that will help track
18576         problems with translations.
18578         * po/sv.po
18579         (i18n) Updated swedish translation.
18581 1999-04-02  Alexander Larsson  <alla@lysator.liu.se>
18583         * po/da.po:
18584         New updates
18586 1999-04-01  Alexander Larsson  <alla@lysator.liu.se>
18588         * po/da.po:
18589         * po/no.po:
18590         Some fixes.
18591         
18592 1999-04-01  Alexander Larsson  <alla@lysator.liu.se>
18594         * po/da.po:
18595         (i18n) Updated the danish translation.
18596         From Lars R. Clausen.
18598 1999-04-01  Fredrik Hallenberg  <hallon@lysator.liu.se>
18600         * app/menus.c
18601         (i18n) The popup menu is translated now.
18603         * po/sv.po
18604         (i18n) Updated swedish translation.
18606 1999-03-29  Alexander Larsson  <alla@lysator.liu.se>
18608         * Released Dia 0.40
18609         Tag called DIA_0_40
18611         * NEWS:
18612         Updated for new release
18613         
18614 1999-03-29  Alexander Larsson  <alla@lysator.liu.se>
18616         * objects/network/bus.c:
18617         Added initialization of properties dialog to NULL.
18619         * app/commands.c (edit_cut_callback):
18620         Update menu sensitivity when cut object.
18622         * app/modify_tool.c (click_select_object):
18623         * app/modify_tool.c (modify_button_release): 
18624         Call diagram_update_menu_sensitivity() when
18625         selecting objects to update stuff that depends
18626         on selected/not selected.
18628 1999-03-29  Alexander Larsson  <alla@lysator.liu.se>
18630         * Makefile.am:
18631         Change order of subdir so that libintl.a builds.
18632         Now passed make distcheck.
18634 1999-03-28  Alexander Larsson  <alla@lysator.liu.se>
18636         * lib/font.c (init_x11_font):
18637         Stupid bug fixed.
18639 1999-03-28  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
18641         * objects/UML/pixmaps/classicon.xpm: 
18642         * objects/UML/classicon.c:
18643         * objects/UML/uml.c:
18644         Added the class stereotype icon objects.
18646         * app/commands.c:
18647         Changed default ps extension from .ps to .eps.
18648         
18649 1999-03-28  Alexander Larsson  <alla@lysator.liu.se>
18651         * lib/Makefile.am:
18652         Added diamenu.h and intl.h
18654         * lib/font.c:
18655         Stupid typo fix.
18656         
18657         * objects/UML/pixmaps/Makefile.am:
18658         Added message.xpm
18660         * objects/standard/pixmaps/Makefile.am:
18661         Added image.xpm
18663 1999-03-28  Alexander Larsson  <alla@lysator.liu.se>
18665         * lib/font.c:
18666         Use a scalable font before fixed when real font not found.
18668         * app/commands.c:
18669         Removed warning.
18671         * objects/standard/image.c:
18672         Better handling of loading/saving of images.
18674         * INSTALL:
18675         Added some text about cvs, fonts and rewrote some parts.
18677         * TODO:
18678         Updated with new stuff.
18679         
18680         * configure.in:
18681         Bump up version number to 0.40.
18682         
18683 1999-03-28  Alexander Larsson  <alla@lysator.liu.se>
18685         * app/display.c:
18686         Moved diagram_add_ddisplay() call into new_display().
18687         Fixed new_display to not use uninitialized variables
18688         causing loaded files to show up as black (or garbage).
18689         
18690         * app/commands.c:
18691         * app/app_procs.c:
18692         Removed unneeded calls to diagram_add_ddisplay().
18693         
18694 1999-03-28  Alexander Larsson  <alla@lysator.liu.se>
18696         * objects/UML/lifeline.c:
18697         Fixed bug in copy.
18698         Patch from Andreas Jaeger <aj@arthur.rhein-neckar.de>.
18700         * objects/UML/message.c:
18701         Fixed bug loading messages with null-text.
18702         Patch from Andreas Jaeger <aj@arthur.rhein-neckar.de>.
18704 1999-03-27  Fredrik Hallenberg  <hallon@lysator.liu.se>
18706         * po/sv.po
18707         Updated swedish translation.
18709         * app/menus.c
18710         (GNOME) Removed help-browser from help menu. Fixed typo.
18712         * app/interface.c
18713         (GNOME) Accelerators in diagrams should work now. 
18715 1999-03-25  Fredrik Hallenberg  <hallon@lysator.liu.se>
18717         * app/app_procs.c
18718         * app/commands.c
18719         * app/defaults.c
18720         * app/disp_callbacks.c
18721         * app/display.c
18722         * app/interface.c
18723         * app/menus.c
18724         * app/preferences.c
18725         * app/render_eps.c
18726         * lib/diagramdata.c
18727         * lib/font.c
18728         * lib/message.c
18729         * lib/widgets.c
18730         * objects/ER/*.c
18731         * objects/UML/*.c
18732         * objects/network/*.c
18733         * objects/standard/*.c
18734         * po/update_pofiles_in.sh
18735         * po/POFILES.in
18736         More i18n. All strings (expect rare debug messages) can be
18737         translated now. Moved intl.h from app to lib. Updated
18738         update_pofiles_in.sh to check all .c-files.
18740 1999-03-23  Alexander Larsson  <alla@lysator.liu.se>
18742         * app/disp_callbacks.c (ddisplay_canvas_events):
18743         Don't drop keys while num-lock, scroll-lock etc is on.
18745 1999-03-22  Alexander Larsson  <alla@lysator.liu.se>
18747         * app/render_eps.c (draw_image):
18748         Fixed exporting of images.
18749         Still not perfect, but not outright buggy.
18750         
18751 1999-03-22  Alexander Larsson  <alla@lysator.liu.se>
18753         * configure.in:
18754         * po/hu.po:
18755         Added hungarian translation. By Shooby Ban <bansz@szif.hu>.
18757         * app/Makefile.am:
18758         Added $* to the dia call in run_dia.sh
18760 1999-03-22  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
18761         
18762         * lib/color.[ch]:
18763         Added color_equals() call.
18765         * objects/standard/arc.c:
18766         * objects/standard/line.c:
18767         Don't save unneccesary data.
18768         
18769         * objects/standard/box.c:
18770         * objects/standard/ellipse.c:
18771         * objects/standard/image.c:
18772         * objects/standard/polyline.c:
18773         * objects/standard/zigzagline.c:
18774         Share properties dialog.
18775         Don't save unneccesary data.
18776         
18777 1999-03-22  Seth Alves  <alves@hungry.com>
18779         * app/menus.c:
18780         * app/diagram.c:
18781         * app/display.c:
18782         small changes so that gnome menus aren't broken
18783         
18784 1999-03-22  Alexander Larsson  <alla@lysator.liu.se>
18786         * po/da.po:
18787         Added danish translation from lrclause@cs.uiuc.edu.
18789         * po/POFILES.in:
18790         Updated file.
18792         * po/update_pofiles_in.sh:
18793         Added script that updates POFILES.in.
18794         This should probably be run automatically from somewhere.
18796 1999-03-19  Alexander Larsson  <alla@lysator.liu.se>
18798         * app/diagram.[ch]:
18799         Added function diagram_update_menu_sensitivity() which
18800         sets the sensitivity of some menu items. This function
18801         is called at each diagram state change (from diagram_modified()).
18802         This is needed  because otherwise the keyboard accelerators
18803         don't work correctly.
18805         * app/display.[ch]:
18806         Changed display_set_menu_sensitivity() to display_update_menu_state().
18807         Moved lots of code to diagram_update_menu_sensitivity() in
18808         diagram.c. Optimized to only look up menu-items from path:s once.
18809         
18810         * app/disp_callbacks.c:
18811         * app/interface.c:
18812         When we get a GDK_FOCUS_CHANGE, update menu sensitivity.
18813         Need to set GDK_FOCUS_CHANGE_MASK.
18814         
18815         * app/create_object.c:
18816         Call diagram_modified when an object has been created and
18817         selected so that the menu sensitivity is updated. 
18819         * app/menus.[ch]:
18820         removed menus_set_sensitive() and menus_set_state(). Exported
18821         renamed function menus_get_item_from_path().
18823 1999-03-15  Alexander Larsson  <alla@lysator.liu.se>
18825         * app/disp_callbacks.c:
18826         Show (empty) object menus on object that has none.
18827         Show title on object menus.
18829         * app/display.c:
18830         Set zoom factor correctly when opening new displays.
18831         Better setting of scrollbars.
18833         * app/grid.c:
18834         * app/menus.h:
18835         Some reformating cleanup.
18837         * lib/diamenu.h:
18838         Added title to object menus.
18840         * objects/*/*.c:
18841         Added object menu method (NULL-valued) to all objects.
18843         * objects/standard/polyline.c:
18844         Added title to object menu.
18846 1999-03-14  Alexander Larsson  <alla@lysator.liu.se>
18848         * app/preferences.[ch]:
18849         New files. Implements the preferences dialog and
18850         loading/saving of ~/.diarc.
18852         * app/Makefile.am:
18853         Added preferences.[ch].
18855         * app/app_procs.c:
18856         Load preferences on startup.
18858         * app/commands.[ch]:
18859         Added file_preferences_callback to show the preferences dialog.
18861         * app/create_object.c:
18862         Update extents when creating object.
18863         Use the reset_tools_after_create preferences setting.
18865         * app/display.c:
18866         Use preferences when creating new display.
18868         * app/menus.c:
18869         Add preferences to menu.
18871         * app/defaults.c:
18872         * app/layer_dialog.c:
18873         * app/properties.c:
18874         Don't allow shrinking of dialog.
18875         Add i18n of some strings.
18877 1999-03-11  Kjartan Maraas  <kmaraas@fib.hl.no>
18878         * po/no.po:
18879         Norwegian translation added.
18880         
18881 1999-03-11  Alexander Larsson  <alla@lysator.liu.se>
18883         * objects/standard/line.c: 
18884         * objects/standard/arc.c: 
18885         * objects/standard/polyline.c: 
18886         * objects/standard/zigzagline.c:
18887         Loading of arrow data fixed.
18889 1999-03-09  Alexander Larsson  <alla@lysator.liu.se>
18891         * app/commands.c:
18892         Update extents when saving and exporting to postscript.
18893         Fixes a bug with postscript bounding-box being wrong.
18895         * app/defaults.c:
18896         Changed border width from 5 to 2.
18898         * app/group.c:
18899         Move grouped objects by the move-point of the first object.
18900         Fixes bug that made all objects in the group be off-grid
18901         when moving the group, even though all objects was on-grid.
18903         * app/layer_dialog.c:
18904         Update extents when changing layer.
18906 1999-03-08  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
18908        * objects/UML/uml.c: 
18909        * objects/UML/component.c: 
18910        * objects/UML/pixmaps/component.xpm: 
18911        Added the UML component object
18912         
18913 1999-03-04  Seth Alves  <alves@hungry.com>
18915         * objects/UML/generalization.c (generalization_create): avoid
18916         math on uninitialized genlz->text_width (NaN causes sigfpe)
18917         
18918         * objects/UML/realizes.c (realizes_create): same
18920         * objects/UML/dependency.c (dependency_create): same
18922 1999-03-01  Seth Alves  <alves@hungry.com>
18924         * app/display.c (ddisplay_active): don't fly a warning panel
18925         if ddisplay_active is called when no views are open.
18927         * app/commands.c (set_default_file_selection_directory): set
18928         file selector's default directory if there is already
18929         a document open.
18931 1999-02-28  Alexander Larsson  <alla@lysator.liu.se>
18933         * INSTALL:
18934         New info about imlib requirements.
18936         * Configure.in:
18937         Added lib/pixmaps/Makefile to created makefiles.
18939         * app/app_procs.c:
18940         * app/commands.c:
18941         Change from obsoleted to newer gtk calls.
18942         
18943         * load_save.c:
18944         Pass filename of the diagram when loading and saving.
18945         This creates better oportunities to handle filename saving.
18947         * lib/object.h:
18948         Pass filenames to load and save methods.
18949         
18950         * lib/dia_image.[ch]:
18951         Added dia_image_get_broken() call that returns a image which
18952         is used for 'broken' images.
18953         
18954         * lib/pixmaps/.cvsignore:
18955         * lib/pixmaps/Makefile.am:
18956         * lib/pixmaps/broken.xpm:
18957         New files for the broken image bitmap.
18959         * lib/widgets.c:
18960         Fixed bug with double destroyed filedialog.
18962         * objects/*/*.c:
18963         Updated load and save prototypes to use the new filename argument.
18965         * objects/image.c:
18966         Render broken image instead of line when got no image.
18967         Use the new filename in load and save to save (if possible)
18968         relative pathnames and to better try to find loaded images.
18970 1999-02-28  Alexander Larsson  <alla@lysator.liu.se>
18972         * TODO:
18973         Some updates to the todo file.
18974         
18975         * app/menus.c:
18976         * app/display.c:
18977         Place over/place over => sent to back/bring to front.
18978         Added some keyboard shortcuts to menus.
18979         
18980 1999-02-28  Alexander Larsson  <alla@lysator.liu.se>
18982         * lib/dia_xml.c:
18983         Changed string saving/loading to a new method. This should
18984         be much better att handling &,<,> and whitespaces.
18985         Loading strings of the old kind is still supported for backwards
18986         compatibility.
18988         * samples/ER-demo.dia:
18989         * samples/UML-demo.dia:
18990         Updated to use the new strings.
18991         
18992         * app/load_save.c:
18993         statusbar modified update fix.
18995 1999-02-27  Seth Alves  <alves@hungry.com>
18997         * app/app_procs.c (app_init): added a --export-to-ps option
18998         which will cause dia to load a dia file and save it as ps
18999         and then exit.  this is a little bogus, because it still
19000         pops up a window.  this option only shows up if --enable-gnome
19001         is used
19003         * app/display.c (display_set_menu_sensitivity): no Edit/Delete
19004         menu when built with --enable-gnome
19006         * app/interface.c (create_display_shell): build status bar
19007         even if --enable-gnome is used
19009         * app/menus.c: menu fixes for --enable-gnome
19011         * app/commands.c (file_open_dialog_ok_callback): fixed up
19012         menus when --enable-gnome is used
19013         (file_export_to_eps_callback): set a default file name
19014         when dialog is created
19016 1999-02-27  Alexander Larsson  <alex@c125.ryd.student.liu.se>
19018         * objects/UML/association.c (association_create):
19019         Fixed usage of not initialized variable.
19020         Pointed out by Seth Alves <alves@hungry.com>.
19022 1999-02-24  Alexander Larsson  <alex@c125.ryd.student.liu.se>
19024         * configure.in:
19025         Fixed detection of gnome-xml.
19026         From Valtteri Vuorikoski <vuori@k.notcom.org>.
19027         
19028         * app/app_procs.c:
19029         Fixed error detection on dlsym calls. 
19030         From Valtteri Vuorikoski <vuori@k.notcom.org>.
19032 1999-02-23  Alexander Larsson  <alla@lysator.liu.se>
19034         * objects/UML/message.c (fill_in_dialog):
19035         Fixed warnings.
19037 1999-02-22  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
19039         * objects/standard/zigzagline.c:
19040         * objects/standard/polyline.c:
19041         * objects/standard/line.c:
19042         * objects/standard/arc.c:
19043         * lib/widgets.h:
19044         * lib/arrows.h:
19045         * lib/widgets.c:
19046         Support for sizeable arrows. 
19048         * objects/standard/box.c:
19049         * objects/standard/ellipse.c:
19050         * objects/standard/image.c:
19051         Changed creation handle to lower-right.
19052         Transparent box/ellipse.
19053         
19054         * objects/standard/image.c:
19055         Better layout of properties boxes.
19057 1999-02-20  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
19059         * objects/UML/message.c (fill_in_dialog): 
19060         Fixed dialog fill in. Common dialog for all messages.
19062         * objects/UML/object.c: 
19063         Added multiple instance. Dialog related bugs fixed.
19064         Common dialog for all instances. Completed copy and destroy.
19066         * objects/UML/lifeline.c (lifeline_load): 
19067         Conn initialization bug fixed and few bad loading prevention flags.
19068         Common dialog for all lifeline objects.
19069         
19070 1999-02-15  Alexander Larsson  <alla@lysator.liu.se>
19072         * lib/dia_image.[ch]:
19073         More work on the DiaImage abstraction.
19074         
19075         * app/app_procs.c:
19076         * app/render_eps.c:
19077         * app/render_gdk.c:
19078         * objects/standard/image.c:
19079         Use the new DiaImage calls.
19081 1999-02-15  Alexander Larsson  <alla@lysator.liu.se>
19083         * app/menus.c:
19084         * app/display.c:
19085         Reversed the meaning of align horizontal/vertical.
19087 1999-02-15  Alexander Larsson  <alla@lysator.liu.se>
19089         * app/load_save.c (diagram_load):
19090         Statusbar update fix.
19092 1999-02-15  Alexander Larsson  <alla@lysator.liu.se>
19094         * app/interface.c (create_display_shell):
19095         Fixed status bar size.
19096         
19097 1999-02-15  Alexander Larsson  <alla@lysator.liu.se>
19099         * lib/dia_image.[ch]:
19100         Added extern declaration for dia_image_release.
19101         Removed dia_image_draw, as it's not neseccary.
19103 1999-02-14  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
19104         
19105         * app/object_ops.c: 
19106         * app/menus.c: 
19107         Added equal distance alignment both vertical and horizontal.
19108         
19109         * objects/UML/object.c: 
19110         Added a couple of attributes to load/read that were missing.
19112         * objects/UML/lifeline.c: 
19113         Better handling of handles. Fixed another bug I forgot to add
19114         to my last patch.
19115         
19116 1999-02-13  Alexander Larsson  <alla@lysator.liu.se>
19118         Patch from Lars Clausen <lrclause@shasta.cs.uiuc.edu>
19119         
19120         * lib/dia_image.[ch]:
19121         * lib/Makefile.am:
19122         New files. DiaImage wraps the GdkImlibImage.
19124         * lib/render.h:
19125         * app/render_eps.c:
19126         * app/render_gdk.c:
19127         * lib/render_store.[ch]:
19128         * objects/standard/image.c:
19129         Use the new DiaImagetype.
19131         * lib/widgets.c:
19132         Removed unused variable to eliminate  warning.
19134 1999-02-11  Alexander Larsson  <alla@lysator.liu.se>
19136         * objects/standard/box.c:
19137         Added rounded corners on the box object.
19139         * lib/widgets.[ch]:
19140         Updated the DiaFileSelector widget.
19141         
19142 1999-02-09  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
19144         * objects/UML/object.c (objet_draw): 
19145         Completed underlining of all object name lines. 
19147         * objects/UML/message.c (fill_in_dialog): 
19148         Fixed a bug that filled incorrectly the message's dialog.
19150         * objects/UML/lifeline.c (lifeline_load): 
19151         Some cleanning and fixed a couple of bugs that caused
19152         crashes after reading diagrams with lifelines.
19154         * lib/text.c: 
19155         Added flags to prevent crash with void strings
19157 1999-02-07  Matthias Köster <Matthias.Koester@Informatik.Uni-Oldenburg.DE>
19158         * app/display.[ch]:
19159         Added statusbar to the display widget. Currently shows the zoom
19160         factor and modified flag of the viewed diagram. The statusbar is
19161         updated upon calls to ddisplay_zoom and ddisplay_update_statusbar.
19162         This caused the following additions:
19163         
19164         * app/diagram.[ch]:
19165         Added function diagram_set_modified. Calls
19166         ddisplay_update_statusbar for all displays showing the modified diagram.
19167         Changed diagram_modified to call diagram_set_modified.
19168         
19169         * app/interface.c:
19170         Added the creation of the statusbar.
19171         
19172         * app/load_save.c:
19173         diagram_save now calls diagram_set_modified instead of setting
19174         dia->modified. Needed to force call to display_update_statusbar
19175         
19176         * app/commands.c:
19177         Changed the way view_show_all works. Now calls ddisplay_zoom
19178         instead of directly setting the zoom_factor, so the zoom factor is
19179         correctly shown in the statusbar.
19181         * app/magnify.c:
19182         Fixed rubberband zoom to use ddisplay_zoom().
19183         
19184 1999-02-07  Fredrik Hallenberg  <hallon@lysator.liu.se>
19186         * app/app_procs.c
19187         Rudimentary GNOME session management.
19188         
19189         * app/disp_callbacks.c
19190         * app/interface.c
19191         * app/menus.c
19192         * app/menus.h
19193         GNOME menus. Problems: 
19194         Callbacks doesn't get user_data.
19195         Weird warnings when creating popup menus.
19196         menus_set_sensitive(), menus_set_state() doesn't work.
19198 1999-02-05  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
19200         * configure.in:
19201         Add AM_PATH_GDK_IMLIB() call.
19203         * app/Makefile.am:
19204         Add gdk_imlib to linking flags.
19206         * app/app_procs.c:
19207         Init gdk_imlib.
19208         Print library-loading error messages on stdout too.
19210         * app/interface.c:
19211         Add standard image to toolbox.
19212         
19213         * app/render_eps.c: 
19214         Set a more reasonable dot length.  Fixed
19215         missing initialization of dot length.
19216         Added draw_image methods.
19218         * app/render_gdk.c (new_gdk_renderer): 
19219         Dot a bit wider.  Looks good in normal mode now.
19221         * objects/standard/image.c:
19222         * objects/standard/pixmaps/image.xpm:
19223         New files. Standard object for images.
19224         
19225         * app/render_eps.c (set_linestyle):
19226         * app/render_gdk.c (set_linestyle):
19227         * lib/widgets.c (dia_line_style_selector_init): 
19228         * lib/render.h: 
19229         New line style DOTTED.
19231         * lib/render.h:
19232         * lib/render_store.c:
19233         Change DrawImage call to use gdk_imlib.
19235         * lib/widgets.[ch]:
19236         Added widgets for selecting files.
19237         Added dotted to the linestyle selector.
19239 1999-02-06  Alexander Larsson  <alla@lysator.liu.se>
19241         * objects/network/printer.c:
19242         * objects/network/network.c:
19243         * objects/network/pixmaps/printer.xpm:
19244         * objects/network/.cvsignore:
19245         * objects/network/Makefile.am:
19246         * objects/network/pixmaps/Makefile.am:
19247         New printer object in network.
19248         From Martin Hawlisch <hawlisch@roxi.rz.fh-mannheim.de>
19250         * TODO:
19251         Added known XML bug.
19252         
19253 1999-02-06  Alexander Larsson  <alla@lysator.liu.se>
19255         * app/load_save.c:
19256         * lib/dia_xml.c:
19257         Reverted back from #include <gnome-xml/tree.h> to
19258         #include <tree.h> as this is fixed by the xml-config program.
19259         The former way broke for some people.
19260         Reported by blizzard@redhat.com.
19262         * objects/UML/lifeline.c:
19263         * objects/UML/message.c:
19264         * objects/UML/object.c:
19265         Removed some warnings.
19266         
19267 1999-02-04  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
19269         * objects/UML/lifeline.c: 
19270         Fixed connection points over the life line when the focus of
19271         control is not drawn.
19273         * objects/UML/message.c: 
19274         Now a recursive message can be freely resized using the handles.
19276 1999-02-02  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
19278         * objects/UML/lifeline.c:
19279         Added connection points.
19280         Added properties dialog with the option to draw/hide focus of control
19281         box and destruction mark.
19283         * objects/UML/object.c: 
19284         Added properties dialog and stereotype, explicit state and attributes. 
19285         It's also possible to mark the object as active.
19287         * objects/UML/pixmaps/object.xpm: 
19288         Cosmetic change.
19290         * objects/UML/message.c:
19291         Added "recursive" message type (was not necessary to use OrthConn).
19293 1999-02-02  Alexander Larsson  <alla@lysator.liu.se>
19295         * objects/standard/arc.c:
19296         Removed old debug code. Fixes a visual bug. From lrclause@cs.uiuc.edu.
19298 1999-02-01  Alexander Larsson  <alla@lysator.liu.se>
19300         Patch from Lars R. Clausen <lrclause@cs.uiuc.edu>
19301         
19302         * app/load_save.c:
19303         * lib/dia_xml.c:
19304         Update xml includes to gnome-xml/*.h.
19306         * objects/standard/arc.c:
19307         Only one property dialog per type.
19308         Fix arrows directions.
19310         * objects/standard/box.c:
19311         * objects/standard/ellipse.c:
19312         * objects/standard/textobj.c
19313         Added default properties dialog.
19314         
19316 1999-01-31  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
19318         * objects/UML/Makefile.am: 
19319         * objects/UML/uml.c:
19320         * objects/UML/lifeline.c: 
19321         * objects/UML/object.c: 
19322         * objects/UML/message.c:
19323         * objects/UML/pixmaps/lifeline.xpm: 
19324         * objects/UML/pixmaps/object.xpm: 
19325         * objects/UML/pixmaps/message.xpm:
19326         Added 3 new UML objects for dynamic modeling. To avoid internal 
19327         conflicts, the name "objet" is used for object "object".        
19329         * lib/arrows.[ch]: 
19330         Added ARROW_HALF_HEAD arrow type to allow drawing asynchronous
19331         UML messages.
19332         
19333 1999-01-30  Alexander Larsson  <alla@lysator.liu.se>
19335         * app/display.[ch]:
19336         * app/modify_tool.c:
19337         Added autoscrolling while doing rubber-band select.
19338         This patch from Matthias Köster
19339         (Matthias.Koester@Informatik.Uni-Oldenburg.DE)
19340         
19342 1999-01-28  Alexander Larsson  <alla@lysator.liu.se>
19344         * app/defaults.[ch]:
19345         New files, deals with default properties dialog.
19347         * lib/diamenu.h:
19348         New file. Contains definitions for the new object menu.
19350         * lib/poly_conn.[ch]:
19351         New file. Base class for poly-line like objects.
19353         * objects/standard/polyline.c:
19354         * objects/standard/pixmaps/polyline.xpm:
19355         New files. Polyline object.
19357         * app/app_procs.c:
19358         Fixed bug with infinite loop when registering sheets.
19359         
19360         * app/commands.c:
19361         Removed unneccesary stuff.
19363         * app/disp_callbacks.c:
19364         Support for object menus.
19366         * app/interface.c:
19367         Added polyline to toolbox.
19368         Added call to tool_options_dialog_show() when double clicking on
19369         tool.
19371         * app/tool.[ch]:
19372         New function tool_options_dialog_show() for tool properties.
19374         * lib/arrows.[ch]:
19375         Added ARROW_NONE.
19377         * lib/object.h:
19378         Added ObjectType methods for handling object default dialogs.
19379         Added Object method for handling object_menu.
19380         Added unused methods to ObjectTypeOps for future binary
19381         compatibility.
19383         * lib/widgets.[ch]:
19384         Added DiaArrowTypeSelector widget.
19386         * objects/standard/arc.c:
19387         * objects/standard/zigzagline.c:
19388         Added support for default properties.
19390         * objects/standard/line.c:
19391         Added support for default properties.
19392         Just use one properties dialog for all line objects. NOTE: This
19393         seems to have a bug. We're working on it.
19395         * standard/standard.c:
19396         Add the polyline object.
19398 1999-01-27  Alexander Larsson  <alla@lysator.liu.se>
19400         * app/modify_tool.c:
19401         Commented out buggy transitive select function. It wasn't really
19402         meant to go into cvs.
19403         
19405 1999-01-25  Fredrik Hallenberg  <hallon@lysator.liu.se>
19407         * autogen.sh:
19408         * acconfig.h:
19409         * configure.in:
19410         * Makefile.am:
19411         * app/Makefile.am:
19412         * po/POTFILES.in:
19413         * app/intl.h
19414         i18n-support.
19416         * po/sv.po:
19417         Swedish translation. Not completed.
19418         
19419         * configure.in:
19420         * acconfig.h:
19421         Added possibility to enable GNOME specific code with configure.
19423         * configure.in:
19424         Added possibility to set debug level with configure.
19426         * commands.[hc]:
19427         Added about dialog.
19429         * app_procs.c
19430         * commands.c
19431         * interface.c
19432         * menus.c
19433         Added some GNOME specific code. Not ready for use.
19435 1999-01-24  Alexander Larsson  <alla@lysator.liu.se>
19437         * INSTALL:
19438         Added text about needing gtk 1.1.13 and gnome-xml.
19439         
19440         * NEWS:
19441         Described changes since last version (0.20).
19443         Released version 0.30, tagged DIA_0_30.
19445 1999-01-22  Alexander Larsson  <alla@lysator.liu.se>
19447         * app/magnify.c (magnify_button_release):
19448         Fixed a problem when zooming in on a very small box would
19449         not release the grabbed pointer-focus.
19451 1999-01-21  Alexander Larsson  <alla@lysator.liu.se>
19453         * app/load_save.c (diagram_load):
19454         Be somewhat more robust when loading files that
19455         are not diagrams.
19456         
19457 1999-01-21  Alexander Larsson  <alla@lysator.liu.se>
19459         * app/app_procs.c:
19460         * objects/ER/er.c:
19461         * objects/UML/uml.c:
19462         * objects/network/network.c:
19463         * objects/standard/standard.c:
19464         Added versioning of object libraries.
19466         * app/create_object.c:
19467         Don't change tool when an object is created.
19468         
19469         * objects/network/network.c:
19471         * TODO:
19472         Update
19474 1999-01-19  Alexander Larsson  <alla@lysator.liu.se>
19476         * configure.in:
19477         Updated gtk requirement to Gtk+ 1.1.13.
19479         * app/display.c:
19480         Always add one screenful of scrolling space on
19481         each side of a diagram window.
19483 1999-01-19  Jeff Garzik  <jgarzik@pobox.com>
19485         * autogen.sh:
19486         Tell automake to auto-install missing files.
19488         * app/menus.c:
19489         Renamed deprecated Gtk+ function.
19491 1999-01-16  Alexander Larsson  <alla@lysator.liu.se>
19493         * Makefile.am:
19494         * configure.in:
19495         * samples/Makefile.am:
19496         * samples/ER-demo.dia:
19497         * samples/UML-demo.dia:
19498         Added samples directory.
19499         Added samples for ER and UML.
19500         
19501         * app/commands.c:
19502         * app/disp_callbacks.c:
19503         * app/menus.c:
19504         Zoom is done by sqrt(2) instead of 2.
19505         Lots of more zoom options in the menu.
19507         * objects/ER/relationship.c:
19508         Relationships have 8 connectionpoints instead of 4.
19510         * objects/UML/class.c:
19511         UML class name font a bit smaller.
19512         Fixed stupid bug in the copy operation.
19513         
19514         * app/display.c:
19515         Displays are opened at 500x400 instead of 256x256.
19517         * app/load_save.c:
19518         Fixup of internal error message.
19520         * app/color_area.c:
19521         * app/diagram.c:
19522         * app/modify_tool.c:
19523         * lib/object.c:
19524         Removed debug printf's.
19525         
19526         * TODO (BUGS):
19527         Added new known bug.
19529 1999-01-16  Alexander Larsson  <alla@lysator.liu.se>
19531         * app/interface.c:
19532         * app/menus.c:
19533         Fixed so accelerator groups work in all windows.
19534         Updated to new gtk function names.
19536         * TODO (BUGS):
19537         Removed fixed bug.
19539         * app/display.c:
19540         Updated to new gtk function names.
19541         Set sensitivity of the align menu items.        
19543         * objects/ER/pixmaps/Makefile.am:
19544         * objects/UML/pixmaps/Makefile.am:
19545         * objects/network/pixmaps/Makefile.am:
19546         Fix so that make dist works.
19548         * app/app_procs.c:
19549         * app/color_area.c:
19550         * app/commands.c:
19551         * app/diagram.c:
19552         * app/grid.c:
19553         * app/layer_dialog.c:
19554         * app/load_save.c:
19555         * app/object_ops.c:
19556         * app/properties.c:
19557         * lib/diagramdata.[ch]: 
19558         * lib/message.c:
19559         * lib/objects/ER/attribute.c:
19560         * lib/objects/ER/entity.c:
19561         * lib/objects/ER/participation.c:
19562         * lib/objects/ER/relationship.c:
19563         * lib/objects/ER/.c:
19564         * objects/UML/actor.c:
19565         * objects/UML/association.c:
19566         * objects/UML/class_dialog.c:
19567         * objects/UML/dependency.c:
19568         * objects/UML/generalization.c:
19569         * objects/UML/large_package.c:
19570         * objects/UML/realizes.c:
19571         * objects/UML/.c:
19572         * objects/UML/.c:
19573         Updated to new gtk function names.
19574         Removed warnings.
19576 1999-01-15  Alexander Larsson  <alla@lysator.liu.se>
19578         * TODO:
19579         Update TODO.
19581         * app/app_procs.c:
19582         Fixed loading of diagrams specified as arguments.
19584         * objects/ER/attribute.c:
19585         * objects/ER/entity.c:
19586         * objects/ER/er.c:
19587         * objects/ER/participation.c:
19588         * objects/ER/relationship.c:
19589         Updated the ER objects.
19590         
19592 1999-01-14  Alexander Larsson  <alla@lysator.liu.se>
19594         * configure.in:
19595         * app/Makefile.am:
19596         * objects/Makefile.am:
19597         * objects/ER/attribute.c:
19598         * objects/ER/entity.c:
19599         * objects/ER/er.c:
19600         * objects/ER/participation.c:
19601         * objects/ER/relationship.c:
19602         * objects/ER/pixmaps/Makefile.am:
19603         * objects/ER/pixmaps/attribute.xpm:
19604         * objects/ER/pixmaps/entity.xpm:
19605         * objects/ER/pixmaps/participation.xpm:
19606         * objects/ER/pixmaps/relationship.xpm:
19607         * objects/ER/pixmaps/weakentity.xpm:
19608         First commit of entity relationship objects.
19609         These were done by hallon@lysator.liu.se.
19610         There are still stuff to do on these.
19611         
19612 1999-01-14  Alexander Larsson  <alla@lysator.liu.se>
19614         * TODO:
19615         Updates.
19617         * app/diagram.[ch]:
19618         Change diagram_remove_all_selected to take new argument
19619         delete_empty. Empty objects are deleted only if it is TRUE.
19620         Removed call to close_eps_renderer. This is now done in end_render
19621         in the eps renderer.
19623         * app/create_object.c:
19624         * app/layer_dialog.c:
19625         Update calls to diagram_remove_all_selected.
19627         * app/commands.c:
19628         Update calls to diagram_remove_all_selected.
19629         Some code reformating.
19630         Changed order of adding updates i align_h and align_v.
19632         * app/modify_tool.c:
19633         Update calls to diagram_remove_all_selected.
19634         Added pointer grab when doing rubber-band selection, this fixes
19635         the bug when draging the box over to another window.
19637         * app/connectionpoint_ops.[ch]:
19638         diagram_update_connections_object changed to take an argument
19639         update_nonmoved. This lets connections that has not moved, but
19640         the stuff they're connected to has been moved work.
19641         Update calls to the new diagram_update_connections_object.
19643         * app/properties.c:
19644         Update calls to the new diagram_update_connections_object.
19645         Update extents when properties are applied.
19646         
19647         * app/disp_callbacks.c:
19648         Added support for zooming with the '+' and '-' keys.
19650         * app/menus.c:
19651         Removed old keyboard shortcuts for zoom.
19653         * lib/render.h:
19654         Added calls begin_render and end_render to renderer.
19655         These can be used for setup and cleanup.
19657         * lib/diagramdata.c:
19658         Added calls to begin_render and end_render in data_render.
19660         * app/render_gdk.c:
19661         Added begin_render and end_render.
19663         * app/render_eps.[ch]:
19664         Added begin_render and end_render.
19665         Moved close_eps_renderer code to end_render.
19666         Various fixes to the generated eps code. This fixes importing
19667         generated eps into LYX.
19668         
19669 1999-01-12  Alexander Larsson  <alla@lysator.liu.se>
19671         * TODO:
19672         Update of todo.
19673         
19674         * app/menus.c:
19675         Menus for alignment updated.
19677         * app/object_ops.[ch]:
19678         Functions for object alignment updated.
19680         * app/commands.[ch]:
19681         Object alignment callbacks updated.
19682         New diagrams are called Untitled-<nr>.
19684         * app/layer_dialog.c:
19685         Active layer selected when showing layers from new
19686         diagram.
19688         * app/load_save.c:
19689         Compress xml files when saving.
19690         Use xml namespace 'dia'.
19692         * lib/object.h:
19693         Minor comment update.
19695         * objects/UML/class_dialog.c:
19696         Cleanup of the gkt_list_item moving code.
19697         Fixed bug with update of operation when moving parameters.
19699 1999-01-10  Alexander Larsson  <alla@lysator.liu.se>
19701         * app/layer_dialog.[ch]:
19702         Fixed the rest of the layers dialog.
19704         * app/dialog.c:
19705         Added call to redo layer dialogs diagram list when changing
19706         diagram name.
19708         * lib/diagramdata.[ch]:
19709         Added data_raise_layer and data_lower_layer functions for
19710         raising/lowering layers. Added data_add_layer_at for adding a
19711         layer at a specified index.
19713 1999-01-05  Alexander Larsson  <alla@lysator.liu.se>
19715         This is the asierra-990105 patch done by asierra@servidor.unam.mx.
19716                 
19717         * app/app_procs.c:
19718         Added support for reading diagrams from the command line.
19720 1998-12-21  Alexander Larsson  <alla@lysator.liu.se>
19722         This is the asierra-981220 patch done by asierra@servidor.unam.mx.
19723                 
19724         * app/commands.[ch]:
19725         Added objects_align_callback().
19727         * app/menus.c:
19728         Added align objects to menu.
19730         * app/object_ops.[ch]:
19731         Add object_list_align().
19732         
19733 1998-12-17  Alexander Larsson  <alla@lysator.liu.se>
19734         * app/layer_dialog.[ch]:
19735         New files. Handles the layers dialog. Needs a bugfix for glib to
19736         work. Sent patch to gtk-list.
19737         
19738         * app/pixmaps/new.xpm:
19739         * app/pixmaps/eye.xbm:
19740         * app/pixmaps/lower.xpm:
19741         * app/pixmaps/raise.xpm:
19742         * app/pixmaps/delete.xpm:
19743         New files. Images for the layer dialog buttons.
19744         
19745         * lib/diagramdata.h
19746         * lib/diagramdata.c
19747         New files for the DiagramData and Layer structures and functions.
19748         
19749         * app/app_procs.c:
19750         Added call to create_layer_dialog() on startup.
19751         
19752         * app/commands.[ch]:
19753         New callbacks for showing the properties and layout dialog.
19754         Changes for the new DiagramData structure.
19756         * app/connectionpoint_ops.c:
19757         * app/cut_n_paste.c:
19758         * app/diagram.[ch]:
19759         * app/display.[ch]:
19760         * app/group.c:
19761         * app/modify_tool.c:
19762         * app/object_ops.[ch]:
19763         * app/render_eps.c:
19764         * lib/object.[ch]:
19765         Changes for the new DiagramData structure.
19767         * app/interface.c:
19768         * app/properties.c:
19769         Set correct wmclasses.
19771         * app/load_save.c:
19772         Fix load and save of layers.
19774         * diagram.dtd:
19775         Update DTD for layers.
19776         
19777         * app/menus.c:
19778         New menus for dialogs.
19780         
19781         * TODO:
19782         Some updates.
19783         
19784 1998-12-06  Alexander Larsson  <alla@lysator.liu.se>
19786         * TODO:
19787         Removed the gtk 1.1.5 stuff.
19789         * configure.in:
19790         Updated gtk check to version 1.1.5.
19791         Updated version from 0.20 to 0.30
19793         * app/commands.[ch]:
19794         Updated some callbacks to be of type GtkItemFactoryCallback1.
19795         Not all are done yet, but it works anyway.
19797         * app/display.h:
19798         Removed Gtk 1.0.0 GtkAcceleratorTable references.
19799         
19800         * app/interface.c:
19801         * app/menus.[ch]:
19802         Update to Gtk 1.1.x functions.
19803         Use ItemFactory instead of MenuFactory.
19804         
19805         * app/render_gdk.c:
19806         Removed Gtk 1.0.0 references.
19808         * objects/UML/class_dialog.c:
19809         Scrolled window updates for Gtk 1.1.5.
19810         
19811         * lib/dia_xml.c:
19812         Removed ugly fix for gnome-xml bug. Make sure you get the
19813         newest version of gnome-xml from CVS.
19814         
19815 1998-12-05  Alexander Larsson  <alla@lysator.liu.se>
19817         * TODO:
19818         Removed the xml load/save line.
19820         * lib/files.[ch]:
19821         Removed files.
19822         
19823         * lib/Makefile.am:
19824         Removed building of files.c
19826         * app/load_save.c:
19827         * lib/connection.c:
19828         * lib/element.c:
19829         * lib/object.c:
19830         * lib/orth_conn.c:
19831         * lib/render_object.c:
19832         * objects/UML/actor.c:
19833         * objects/UML/association.c:
19834         * objects/UML/class.c:
19835         * objects/UML/constraint.c:
19836         * objects/UML/dependency.c:
19837         * objects/UML/generalization.c:
19838         * objects/UML/implements.c:
19839         * objects/UML/large_package.c:
19840         * objects/UML/note.c:
19841         * objects/UML/realizes.c:
19842         * objects/UML/small_package.c:
19843         * objects/UML/uml.c:
19844         * objects/UML/usecase.c:
19845         * objects/network/bus.c:
19846         * objects/standard/arc.c:
19847         * objects/standard/box.c:
19848         * objects/standard/ellipse.c:
19849         * objects/standard/line.c:
19850         * objects/standard/textobj.c:
19851         * objects/standard/zigzagline.c:
19852         Removed all includes of files.h
19854         
19855 1998-12-05  Alexander Larsson  <alla@lysator.liu.se>
19857         * dialog.dtd:
19858         Made the val property of string be implied.
19859         This makes it possible to save strings that
19860         are NULL. Just leave out val.
19862         * objects/lib/dia_xml.c:
19863         Fixed string so that it is possible to save strings
19864         that are NULL. Also made an ugly workaround of a
19865         bug in gnome-xml which removes empty properties.
19866         
19867         * objects/lib/orth_conn.c:
19868         Fixed a bug in saving. Forgot to step through the
19869         directions.
19870         
19871         * objects/UML/association.c: 
19872         * objects/UML/class.c: 
19873         * objects/UML/constraint.c: 
19874         * objects/UML/dependency.c: 
19875         * objects/UML/generalization.c: 
19876         * objects/UML/implements.c: 
19877         * objects/UML/large_package.c: 
19878         * objects/UML/note.c: 
19879         * objects/UML/small_package.c:
19880         * objects/UML/realizes.c:
19881         * objects/UML/usecase.c: 
19882         * objects/UML/actor.c: 
19883         Fixed UML objects to save as xml.
19884         The last two were done by asierra@servidor.unam.mx (asierra-981204)
19885         
19886         * objects/UML/uml.[ch]:
19887         Updated *_write() and *_read() functions to use xml.
19889         * objects/network/bus.c: 
19890         * objects/network/computer.c: 
19891         * objects/network/disc.c: 
19892         * objects/network/monitor.c:
19893         Updated network diagrams to use xml.
19895 1998-12-02  Alexander Larsson  <alla@lysator.liu.se>
19897         * dialog.dtd:
19898         New file. DTD that describes the xml file format
19899         dia uses.
19901         * lib/dia_xml.[ch]:
19902         New files. Support for saving object to xml files.
19904         * configure.in:
19905         * app/Makefile.am:
19906         * lib/Makefile.am:
19907         Added check for and usage of gnome-xml library.
19909         * app/load_save.c:
19910         Major chages. Now saves/loads diagrams as xml.
19912         * lib/object.[ch]:
19913         * lib/element.[ch]:
19914         * lib/connection.[ch]:
19915         * lib/orth_conn.[ch]:
19916         * lib/render_object.[ch]:
19917         * lib/text.[ch]:
19918         Updated object support load/save functions for xml:
19920         * object/standard/arc.c:
19921         * object/standard/box.c:
19922         * object/standard/ellipse.c:
19923         * object/standard/line.c:
19924         * object/standard/textobj.c:
19925         * object/standard/zigzagline.c:
19926         Updated all standard objects to use xml.
19927         
19928         NOTE NOTE NOTE
19929         Only the standard objects are converted right now, don't
19930         save or load uml or network diagrams yet. Also, since this
19931         is new code it is deemed a bit unstable.
19932         
19933         * TODO
19934         Added a know bug.
19936 1998-12-01  Alexander Larsson  <alla@lysator.liu.se>
19938         * objects/UML/class.c:
19939         Changed classname font to Helvetica.
19940         Added more space above the classname
19942         * objects/UML/usecase.c:
19943         Correct placements of connectionpoints on ellipse.
19944         Better algorithm for deciding aspect ration on
19945         ellipse.
19947         These changes were made by Alejandro Aguilar Sierra
19948         <asierra@servidor.unam.mx>. (asierra-981201)
19950 1998-11-30  Alexander Larsson  <alla@lysator.liu.se>
19952         * objects/UML/actor.c:
19953         Changed the extents and alignment of the element
19954         and the text.
19956         * objects/UML/.cvsignore:
19957         Added usecase.lo and actor.lo.
19959 1998-11-30  Alexander Larsson  <alla@lysator.liu.se>
19961         * objects/UML/actor.c:
19962         * objects/UML/usecase.c:
19963         * objects/UML/pixmaps/actor.xpm:
19964         * objects/UML/pixmaps/case.xpm:
19965         New files. Implements usecase and actor UML objects.
19966         These objects are done by Alejandro Aguilar Sierra
19967         <asierra@servidor.unam.mx>.
19968         
19969         * objects/UML/Makefile.am:
19970         * objects/UML/pixmaps/Makefile.am:
19971         Added usecase and actor to makefile.
19972         
19973         * AUTHORS:
19974         Added Alejandro and Jerome to autors list.
19975         
19976 1998-11-25  Alexander Larsson  <alla@lysator.liu.se>
19978         * objects/UML/class.c (umlclass_load):
19979         Fixed typo. Reported by Jerome.Abela@solsoft.fr
19981 1998-11-24  Alexander Larsson  <alla@lysator.liu.se>
19983         * app/properties.c:
19984         Update connections when doing apply in the properties window.
19986         * objects/UML/uml.[ch]:
19987         * objects/UML/class.[ch]:
19988         * objects/UML/class_dialog.c:
19989         Added connection points on both sides of attributes and
19990         operations in UML classes.
19991         Based on idea from Jerome.Abela@solsoft.fr
19992         
19993 1998-11-24  Alexander Larsson  <alla@lysator.liu.se>
19995         * README:
19996         Some new documentation about handles and connectionpoints.
19997         
19998         * lib/object.[ch]:
19999         Added functions object_add_connectionpoint and
20000         object_remove_connectionpoint for handling a dynamic
20001         number of connectionpoints.
20003         * objects/UML/class.c:
20004         Only reserve space for stereotype when it is shown.
20006         These changes are from Jerome Abela <Jerome.Abela@solsoft.fr>
20008 1998-11-08  Alexander Larsson  <alla@lysator.liu.se>
20010         * app/connectionpoint_ops.c:
20011         * app/commands.c:
20012         * app/disp_callbacks.c:
20013         * app/display.[ch]:
20014         * app/grid.c:
20015         * app/handle_ops.c:
20016         * app/magnify.c:
20017         * app/modify_tool.c:
20018         * app/render_gdk.[ch]:
20019         * lib/render.h:
20020         Huge cleanup of internal rendering system.
20021         Moved a lot of data (pixmap, width, height & gc) into the GdkRenderer.
20022         This gives a few new methods for Interactive Renderers for setting
20023         clipping regions and drawing pixel based lines and rects.
20024         Updated the rest of the code to use the new stuff.
20025         
20026         * app/render_eps.c:
20027         Fixed warning.
20029         * lib/widgets.c:
20030         * objects/standard/zigzagline.c
20031         Fixed unused variable warnings.
20033         * lib/font.c:
20034         Fixedbug with stringwidth where width==0.
20036         * TODO:
20037         Added known bug.
20039 1998-11-02  Alexander Larsson  <alla@lysator.liu.se>
20041         * lib/widgets.[ch]:
20042         Added suppot for setting the font of a
20043         DiaFontSelector widget.
20044         Also fixed some typos in the header.
20046         * lib/object.h: 
20047         Added a comment about the GetPRoperties method call.
20048         You have to make sure to update widget state when
20049         this method is called. (Not all objects do this yet,
20050         to be fixed.)
20052         * TODO:
20053         Some small updates
20055 1998-11-01  Alexander Larsson  <alla@lysator.liu.se>
20057         * lib/font.c
20058         Fixed problem with height of ascent and descent for fonts.
20059         It didn't use the whole height (==ascent+descent) when calculatine
20060         ascent_ratio and descent_ratio.
20062         * objects/standard/textobj.c:
20063         * objects/standard/box.c:
20064         * objects/standard/ellipse.c:
20065         * objects/standard/line.c:
20066         * objects/standard/arc.c:
20067         Updated and added property dialogs for these objects.
20068         Also added line width/color/style to those objects
20069         that didn't have it.
20070         This change breaks fileformat compatibility for these objects.
20071         
20072         * objects/standard/zigzagline.c:
20073         Changed zigzagline to be based on OrthConn, much nicer.
20074         Also added line style and color to properties.
20075         This change breaks fileformat compatibility for zigzagline.
20077         * lib/message.c:
20078         Fixed bug in message(). Forgot a pair of '&'.
20080 1998-10-29  Alexander Larsson  <alla@lysator.liu.se>
20082         * lib/widgets.[ch]:
20083         Added DiaColorSelector widget.
20084         This is a colored button that pops up a color selection
20085         dialog when pressed.
20087 1998-10-28  Alexander Larsson  <alla@lysator.liu.se>
20089         * lib/widgets.[ch]:
20090         * lib/Makefile.am:
20091         New files, added widgets for selecting fonts, alignment
20092         and line-style. Will be used later.
20094 1998-10-12  Alexander Larsson  <alla@lysator.liu.se>
20096         * app/Makefile.am:
20097         * lib/Makefile.am:
20098         * objects/UML/Makefile.am:
20099         * objects/network/Makefile.am:
20100         * objects/standard/Makefile.am:
20101         Changed "CFLAGS = -Wall -g" to "CFLAGS = @CFLAGS@"
20102         in all Makefile.am.
20104 1998-10-03  Alexander Larsson  <alla@lysator.liu.se>
20106         * app/handle_ops.c (handle_draw):
20107         connected HANDLE_MINOR_CONTROL also becomes red.
20109 1998-10-02  Alexander Larsson  <alla@lysator.liu.se>
20111         * Makefile.am:
20112         removed -ldl from linking. This is added if needed by configure.
20114         * app/app_procs.c:
20115         Open dlls with RTLD_LAZY if it is defined.
20116         Some cleanups: char *error -> const char *error
20117         Added fprintf()'s to where we exited because of errors.
20119         * lib/files.c:
20120         Include <sys/types.h>
20122 1998-10-01  Alexander Larsson  <alla@lysator.liu.se>
20124         * acconfig.h:
20125         * configure.in:
20126         * app/app_procs.c:
20127         Detect dlopen better.
20128         Detect wether dlopen needs an underscore in the identifier.
20129         This code was mostly borrowed from guile.
20131         * lib/sheet.[ch]:
20132         * app/app_procs.c:
20133         * objects/standard/standard.c:
20134         * objects/network/network.c:
20135         * objects/UML/uml.c:
20136         * most objects:
20137         Changed the way sheets reference objects to use just the
20138         name. Changed module loading to a two stage model:
20139         First register_objects() is called for all modules.
20140         Then register_sheets() is called. This means that
20141         sheets can safely include objects from other modules.
20142         
20144 1998-09-30  Alexander Larsson  <alla@lysator.liu.se>
20146         * objects/network/bus.c:
20147         * objects/network/network.c:
20148         * objects/network/Makefile.am:
20149         New file bus.c. Added new object: Ethernet bus.
20151         * objects/standard/box.c:
20152         Added call to gtk_spin_button_set_numeric for linewidth spinner
20153         in property dialog.
20155 1998-09-30  Alexander Larsson  <alla@lysator.liu.se>
20157         * app/connectionpoint_ops.c:
20158         * app/create_object.c:
20159         * app/group.c:
20160         * app/handle_ops.c:
20161         * app/modify_tool.c:
20162         * lib/connection.c:
20163         * lib/element.c:
20164         * lib/handle.h:
20165         * lib/object.c:
20166         * lib/orth_conn.c:
20167         * loads of objects:
20168         Changed handle->connectable to handle->connect_type.
20169         Now handles can be HANDLE_CONNECTABLE_NOBREAK, which means
20170         that their connections don't break when moving objects.
20172         * app/diagram.c:
20173         Always select the last handle in an object that has
20174         the closest distance.
20175         
20176         * lib/geometry.[ch]:
20177         Added rectangle_add_point function.
20178         
20180 1998-09-27  Alexander Larsson  <alla@lysator.liu.se>
20182         * app/properties.[ch]: New files. Handles the new properties
20183         dialog.
20185         * app/modify_tool.c: Changed to use new properties dialog.
20187         * app/object_ops.[ch]: Removed object_changed_callback, as it's
20188         not needed anymore. This is now handled differently in
20189         properties.c
20191         * lib/object.[ch]:
20192         Changed the properties ops for objects. Removed typedefs
20193         ChangedObjectTime and ObjectChangedFunc needed for the old way.
20194         Added object_return_null function.
20195         
20196         * app/group.c:
20197         * lib/render_object.c:
20198         * objects/*/*.c:
20199         Changed objects to use the new properties dialog.
20200         
20202 1998-09-14  Nuno Ferreira  <nmrf@rnl.ist.utl.pt>
20204         * */Makefile.am (INCLUDES): Changes to work with srcdir !=
20205         builddir.
20207         * autogen.sh: New file. Copied from gtk and added a call to
20208         libtoolize. Anyone knows why this isn't done in gtk?
20210         * Removed autogenerated files.
20212 1998-09-12  Alexander Larsson  <alla@lysator.liu.se>
20214         * Added call setlocale(LC_NUMERIC, "C") so that formating of
20215           floating-point numbers in postscript output will be correct.
20216         * Did some cleanup of generated postscript files.