2005-10-08 Hans Breuer <hans@breuer.org>
[dia.git] / ChangeLog
blob181e1438084d00e60aa44d97f2a138b85b9e12be
1 2005-10-08  Hans Breuer  <hans@breuer.org>
3         * app/Makefile.am objects/standard/Makefile.am : match the
4         referenced icons to the needed. Make 'make distcheck' pass
5         and thus fixes bug #312152
7         * objects/standard/textobj.c : no C++ comments please!
9 2005-10-08  Hans Breuer  <hans@breuer.org>
11         * objects/standard/textobj.c : preserve the position set on create
12         [makes e.g. text positioning of diasvg_import.py work]
14         * plug-ins/python/diasvg_import.py : restrict what eval() can do
15         with strings from svg files. Fixes the arbitrary code execution from 
16         bug #317637
17         
18         * app/pixmaps/mainpoints-(on|off).png : new icons to toggle center point
19         magnetism. At least they are distinguishable from grid snapping.
20         * app/makefile.msc app/Makefile.am : use them
21         
22         * lib/focus.c(reset_foci) : also remove_focus(). This fixes bug #172851
23         I also can't reproduce bug #309044 anymore (on win32).
24         
25 2005-09-29  Lars Clausen  <lars@raeder.dk>
27         * objects/UML/class.h: Enabling mainpoints for UML.
29         * objects/UML/class.c (umlclass_set_props): Make sure to always
30         realloc connection point list.
32 2005-09-26  Ahmad Riza H Nst  <rizahnst@id.gnome.org>
34         * configure.in: Added "id" in ALL_LINGUAS line.
36 2005-09-14  Lars Clausen  <lars@raeder.dk>
38         * objects/UML/class.c (umlclass_load): Set mainpoint obj upon
39         loading.  Fixes bug #315427.
41 2005-09-11  Hans Breuer  <hans@breuer.org>
43         * objects/standard/arc.c objects/standard/textobj.c : fix
44         C99isms, Dia is supposed to compile with C89 like msvc
46         * app/makefile.msc : use the wrong center-point-magnetism
47         icons for the win32 build, too.
49         * plug-ins/python/pydia-error.c : dont crash on C escape
50         sequences in the error string
51         * plug-ins/python/pydia-render.c : dont free filename twice
53         * plug-ins/python/dot.py : start of an exporter to DOT language
54         which can be processed by www.graphviz.org tools
56 2005-09-05  Iñaki Larrañaga  <dooteo@euskalgnu.org>
58         * configure.in: Added "doc/eu/Makefile" for Basque documentation.
60 2005-09-04  Iñaki Larrañaga  <dooteo@euskalgnu.org>
62         * configure.in: Added "eu" to ALL_LINGUAS.
64 2005-09-04  Lars Clausen  <lars@raeder.dk>
66         * lib/element.h (ELEMENT_COMMON_PROPERTIES): Remove object
67         dimensions frame to make ext_attributes work again.
69         * app/grid.c (snap_to_grid): Bugfix from Zhang Lin-bo
70         <zlb@lsec.cc.ac.cn>: Use dynamic grid setting from diagram, not
71         global prefs.
73         * objects/standard/textobj.c: Applied patch from Grégoire Dooms
74         <dooms info ucl ac be>: Add vertical alignment for standard text
75         object.  This should really be moved into lib/text.c and apply to
76         all text objects.
78 2005-09-03  Lars Clausen  <lars@raeder.dk>
80         * app/connectionpoint_ops.c (connectionpoint_draw): Only draw
81         mainpoint when snap-to-objects is not on.
83         * app/Makefile.am (ICON_PNG_PAIRS): 
84         Fake icons for snap-to-objects.
86         * app/commands.[ch]: 
87         * app/menus.c (menus_get_image_menubar): 
88         * app/display.[ch]: 
89         * app/interface.c (create_display_shell): 
90         * app/create_object.c (create_object_button_release): 
91         * app/disp_callbacks.c (ddisplay_drop_object): 
92         * app/object_ops.[ch]: 
93         * app/connectionpoint_ops.c (ddisplay_connect_selected): 
94         * app/modify_tool.c (modify_button_release): 
95         * app/display.[ch]: 
96         Togglable snap-to-objects, also doesn't snap when moving entire
97         object.  This should be more reasonable in practical use, and can
98         be turned off when you want to place your arrows more precisely.
100 2005-08-06  Hans Breuer  <hans@breuer.org>
102         * plug-ins/cairo/diacairo.c : increased #ifdef MESS:
103         With Gtk+-2.7.x cairo must be available so the HAVE_CAIRO case
104         becomes even more ugly when the user has choosen *not* to build 
105         the diacairo plug-in. If noone can come up with a very convincing 
106         reason why it has to be done this way I'll probably go back to 
107         my original dont-build-at-all approach when this breaks the 
108         next time.
110 2005-08-02  Lars Clausen  <lars@raeder.dk>
112         * objects/standard/arc.c: Patch from Grégoire Dooms
113         <dooms@info.ucl.ac.be>: An almost perfect arc autogap
114         implementation.  "There is still a small bug when the non
115         connected end of the arc is very close to the border of the
116         connected object. I think this is due to rounding errors in the
117         code for SHIFT-move handle which is reused to trim the arc in
118         autogap. Also it is not yet possible to have a startgap and an
119         endgap from/to the same central CP."
121 2005-07-31  Hans Breuer  <hans@breuer.org>
123         * plug-ins/cairo/diacairo.c congigure.in : dont wait any 
124         longer for distributions official packages - depend 
125         on cairo 0.6.0 - fixes bug #307144
127 2005-07-20  Hans Breuer  <hans@breuer.org>
129         * lib/element.h : remove stray NULL in ELEMENT_COMMON_PROPERTIES
130         which must match PropDescription, that is make it at least compile.
132 2005-07-19  Hans Breuer  <hans@breuer.org>
134         * app/diagram.c(new_diagram) : what comes from g_object_new()
135         MUST NOT be g_free()'d 
137         * lib/message.h : added dia_message_filename() here as well.
138         Mainly to not touch all files using. They *all* where using
139         lib/message.h already! Maybe the implemantation should be moved
140         to message.c as well cause the function has *nothing* to do
141         with dynamic filename resolving. It is a wrapper around
142         g_display_filename() mostly (only?) used for messages ...
143         * lib/dia_dirs.c(dia_message_filename) : fix C99ism
145 2005-07-18  Lars Clausen  <larsrc@raeder.dk>
147         * objects/EML/instantiation.c (instantiation_load): 
148         * objects/EML/interaction-ortho.c (interaction_ortho_type) 
149         * objects/ER/participation.c (participation_type): 
150         * objects/FS/flow-ortho.c (orthflow_type): 
151         * objects/GRAFCET/vector.c (arc_load): 
152         * objects/standard/zigzagline.c (zigzagline_type): 
153         * objects/UML/transition.c (transition_load): 
154         * objects/UML/realizes.c (realizes_load): 
155         * objects/UML/dependency.c (dependency_load): 
156         * objects/UML/generalization.c (generalization_type): 
157         * objects/UML/association.c (association_type): 
158         * objects/UML/component_feature.c (compfeat_load): 
159         Make autorouting deafult on except for old diagrams.
161         * plug-ins/cairo/diacairo.c (export_data): 
162         * plug-ins/cgm/cgm.c (export_cgm): 
163         * plug-ins/dxf/dxf-export.c (export_dxf): 
164         * plug-ins/dxf/dxf-import.c: 
165         * plug-ins/hpgl/hpgl.c (export_data): 
166         * plug-ins/metapost/render_metapost.c: 
167         * plug-ins/pixbuf/pixbuf.c: 
168         * plug-ins/pstricks/render_pstricks.c: 
169         * plug-ins/python/pydia-render.c: 
170         * plug-ins/shape/shape-export.c: 
171         * plug-ins/svg/render_svg.c: 
172         * plug-ins/svg/svg-import.c: 
173         * plug-ins/wpg/wpg.c 
174         * plug-ins/xfig/xfig-export.c: 
175         * plug-ins/xfig/xfig-import.c: 
176         * plug-ins/xslt/xslt.c: Use dia_message_filename to ensure legal
177         UTF-8 in message boxes.
179 2005-07-18  Lars Clausen  <lars@raeder.dk>
181         * lib/element.h (ELEMENT_COMMON_PROPERTIES): Allow Element objects
182         to have their dimensions specified in properties.  Still needs to
183         have proper update when setting properties cause constraint changes.
185         * app/preferences.c (update_floating_toolbox): Allow
186         toolbox_on_top setting to happen at once.
188         * app/diagram.c
189         * app/filedlg.c
190         * app/load_save.c
191         * app/render_eps.c
192         * app/sheets_dialog_callbacks.c
193         * lib/dia_dirs.c
194         * lib/dia_dirs.h
195         * lib/dia_xml.c
196         * lib/diarenderer.c
197         * lib/element.h
198         * lib/object_defaults.c:
199         Patch from lav@altlinux.ru (Vitaly Lipatov): Make filenames safe
200         for displaying in messages - better than crashing!  Mostly fixes
201         #310087.
202         
203         * objects/UML/class.c:  Save normal_font_height under the same
204         name it gets loaded as.  Fixes bug #310515.
206         * doc/en/authors.xml
207         * doc/en/usage-customization.xml
208         * doc/en/usage-objects-special.xml
209         * doc/en/usage-objects.xml: Some documentation fixes.  Fixes bug
210         #308315.
212 2005-07-17  Lars Clausen  <lars@raeder.dk>
214         * doc/en/usage-customization.xml: 
215         * doc/en/usage-objects.xml: 
216         * doc/en/authors.xml: 
217         * doc/en/usage-objects-special.xml: Applied patch from
218         stigge@antcom.de (Roland Stigge):  Diverse typos and
219         misencodings.  Fixes bug #308315.
221         * objects/UML/class.c (umlclass_save): Patch from
222         i.pilcher@comcast.net: Save normal font height under correct name
223         to reload it.  Fixes bug #310515.
225 2005-07-10  Hans Breuer  <hans@breuer.org>
227         * app/connectionpoint_ops.c app/object_ops.c : make the
228         'whole object' connection point only center point again. 
229         That is: it is visible and far less magnetic. Only the
230         line gap handling make it special. For me this probably
231         fixes bug #303301
233         * lib/neworth_conn.c : apply the same as for bug #173031.
234         This OrthConn fork got broken as well. Fixes bug #309381
236         * app/makefile.msc objects/makefile.msc : adapt to icon changes
238         * app/interface.c app/diagram_tree.c : a char** is still not 
239         a char* and the win32 build is configured to error on 
240         sloppiness like this
242         * plug-ins/wmf/wmf.cpp : fix typo in preprocessor condition
244 2005-07-10  Hans Breuer  <hans@breuer.org>
246         [
247           Take part in the toolbox icon redesign context! If you want to 
248           make them really prettier, please keep the following in mind :
249           - the size *must* be 22x22 otherwise button reflow will get broken.
250             Or you need to change about 800 icons at once.
251           - one important part of Dia are control points, so maybe the icons
252             should reflect that. (IMO gathering random icons form other 
253             apps wont work)
254           - the icons should at least look consistent in their group
255         ]
257         * app/Makefile.am : use 22x22 variants mostly lent from The GIMP
258         * app/pixmaps/*.png : added arrow-22.png scroll-22.png zoom-22.png
260         * objects/standard/*.c : get rid of xpm includes to avoid mixing icon sets
261         * objects/standard/pixmap/* : added arc.png beziergon.png 
262         bezierline.png box.png ellipse.png image.png line.png polygon.png 
263         polyline.png text.png zigzagline.png
264         * objects/standard/Makefile.am : use the new icon set including
265         text and arc ...
267         * app/interface.c : remove the "will probably crash" debug spew
269 2005-07-09  Lars Clausen  <lars@raeder.dk>
271         * objects/standard/pixmaps/*.png:
272         * objects/standard/Makefile.am:
273         * objects/standard/*.c:
274         * app/interface.c: 
275         * app/diagram_tree.c (create_object_pixmap): Fix icon loading. use
276         new icons. [Slightly belated entry]
278 2005-07-03  Hans Breuer  <hans@breuer.org>
280         * app/diagram_tree.c : dont leak display name
281         * app/app_procs.c : dont leak GOptionContext
282         * app/prop_widgets.c(frame_beginprop_get_widget) : 
283         Gtk api still not eating strings ...
285         * objects/UML/class.c() : don't load properties once more 
286         which are already loaded by StdProps. In case of strings 
287         (data_string) it has even produced leaks.
289         * app/paginate_psprint.c app/diagram.[hc] : the last
290         of the related dialogs is gone and with it the 
291         misconception of destroying widgets from 
292         diagram::finalize()
293         * app/display.c : ensure the diagram is still threre
294         when we remove the display from it's list
296 2005-07-01  Hans Breuer  <hans@breuer.org>
298         * lib/widgets.c(dia_color_selector_more_callback): dont 
299         free old_color twice
301         * plug-ins/wmf/wmf.cpp : finally added enahnced meta file
302         option. Thus linestyles can be preserved on export - at 
303         least on NT based systems.
305         * NEWS : clarify the wmf outside of windows issue
307         * app/modify_too.c : fix C99ism
309         * objects/standard/arc.c : debug spew optional at compile time
311 2005-06-26  Hans Breuer  <hans@breuer.org>
313         [ Cyrille would call it: warningectomy :-]
315         * lib/font.c app/create_object.c : `...' might be used uninitialized
316         in this function. Yes they were.
317         * app/modify_tool.c : modify_tool.c:610: warning: `obj' might be used 
318         uninitialized in this function. Yes it was with textedit_activate_object()
319         Also some static correctness.
320         * lib/diarenderer.c:678: warning: no previous prototype for 
321         `calculate_min_radius'. Made static.
322         * lib/dia_svg.c : ptr is a gchar *
323         * dia_xml.c(data_point,data_rectangle) : gchar *str for parsing
324         * lib/prop_text.c(multistringprop_get_widget) : use G_CALLBACK
325         * app/app_procs.c : confirm warning and make dump_dependencies() static
326         * app/autosave.c : #if 0'd old stuff
327         * app/display.c : GTK_CHECK_MENU_ITEM() for snap_to_grid
328         * 
329         * lib/text.c lib/font.c objects/standard/line.c object/UML/class.c
330           objects/Istar/goal.c objects/standard/bezier.c objects/standard/beziergon.c
331           plug-ins/cgm/cgm.c plug-ins/cairo/diacairo.c plug-ins/hpgl/hpgl.c
332           plug-ins/wpg/wpg.c plug-ins/svg/svg-import.c plug-ins/shape/shape-export.c
333           plug-ins/dxf/dxf-export.c plug-ins/gprint/diagnomeprintrenderer.c
334           plug-ins/gprint/diagnomeprint.c  plug-ins/xfig/xfig-export.c
335           app/diagram_tree_menu_callbacks.c app/recent_files.c app/undo.c app/menus.c
336           app/diapsrenderer.c app/diagram.c app/disp_callback.c : 
337         removed unused variables and functions
338         * objects/UML/umlattribute.c objects/UML/umloperation.c 
339           objects/UML/umlparameter.c objects/UML/umlformalparameter.c : 
340         neither 'missing braces around initializer' nor 'initialization from 
341         incompatible pointer type'
342         * objects/UML/class_dialog.c : more static
343         * app/interface.c : static and almost const correctness and some
344         less unitialized variables.
345         * app/diapsft2renderer.c : use (int) casts like the original 
346         (http://imagic.weizmann.ac.il/~dov/freesw/paps/ v0.4) does
347         * app/render_gdk.c: stop assignment from incompatible pointer type,
348         make member functions match the prototype.
349         * app/render_libart.c : Dito. Also stop caching the copy_gc in
350         a static variable. Otherwise it finally leaks and also may cause 
351         BadMatch with changing windows
352         => warning count down from about 250 to about 60, one or two hand full 
353            crash bugs less.
355 2005-06-26  Hans Breuer  <hans@breuer.org>
357         * lib/libdia.def : added dia_font_get_description, missing
358         from my last commit
360         * app/app_procs.c : use png_get_header_ver(NULL), that is:
361         prefer function call over exported variable to get the 
362         runtime version of libpng
364 2005-06-19  Hans Breuer  <hans@breuer.org>
366         * plug-ins/python/Makefile.am : added codegen.py to EXTRA_DIST
367         as suggested by Roland Stigge, bug #308310
369 2005-06-19  Hans Breuer  <hans@breuer.org>
371         * app/filedlg.c(file_export_callback) : oops, gtk_widget_show() wasn't 
372         called anymore
374 2005-06-18  Hans Breuer  <hans@breuer.org>
376         * NEWS : mention new file dialog
378         [plugged remaining leaks from bug #142669]
379         * lib/prop_attr.c(fontprop_free) : not only unref the font
380         but free the property itself, too. 
381         * app/diagram_tree.c(create_diagram_children): remember the
382         original list start to not only free the last element 
384         * lib/prop_sdarray.c:64: warning: `arrayprop_free' defined 
385         but not used. Here it meant a potentially huge leak.
387 2005-06-18  Hans Breuer  <hans@breuer.org>
389         * po/POTFILES.in : removed app/diaconv.c which isn't referenced 
390         by app/Makefile.am anymore either. Should finally fix 'make distcheck' 
391         for others, too. ( Roland Stigge, bug #144527 )
393 2005-06-18  Hans Breuer  <hans@breuer.org>
395         * plug-ins/wmf/Makefile.am : prevent installation. It 
396         doesn't do anything useful on *NIX and even seems to be
397         linked wrong by gcc (or me;). Fixes bug #172830 
399 2005-06-18  Hans Breuer  <hans@breuer.org>
401         * app/textedit.[hc] lib/arrows.[hc] plug-ins/xslt/xslt.h
402           plug-ins/xslt/xsltdialog.c plug-ins/xslt/xslt.c : fix for sloppiness
403         in function declarations. 'f();' for a function without parameters is
404         a C++ism. Though I can't get any of my compilers to warn about it.
405         Finally fixes bug #142663.
407 2005-06-18  Hans Breuer  <hans@breuer.org>
409         * app/textedit.[hc] lib/arrows.[hc] plug-ins/xslt/xslt.h
410           plug-ins/xslt/xsltdialog.c plug-ins/xslt/xslt.c : fix for sloppiness
411         in function declarations. 'f();' for a function without parameters is
412         a C++ism. Though I can't get any of my compilers to warn about it.
413         Finally fixes the rest of bug #142663.
415 2005-06-18  Hans Breuer  <hans@breuer.org>
417         * lib/font.h lib/font.c : _DiaFont is now private to prepare bigger 
418         changes but doesn't hurt anyway. See bug #162034 
419         * app/diapsft2renderer.c app/modify_tool.c 
420           plug-ins/gprint/diagnomeprintrenderer.c : use dia_font_get_description() 
421         instead of messing with internals
422         * app/display.c : give interactive renderers more begin/end render. 
423         It is guaranteed that the scale wont change between these.
425 2005-06-18  Hans Breuer  <hans@breuer.org>
427         * app/app_procs.c : const correctness for stderr_message_internal
428         * app/dia-props.c : gtk_toggle_*() functions want GTK_TOGGLE_BUTTON 
429         not GTK_CHECK_BUTTON, also some G_CALLBACK casts
430         * app/disp_callbacks.c : don't dereference the to the function call
431         when the function pointer in meant to be checked against 0
432         * app/interface.c : warning fixes by using correct types
433         * app/modify_tool.c : describe_props() members returns const pointer
434         * app/render_libart.c : removed most of the render function again.
435         They happily live in lib/dialibartrenderer.c since almost 3 years
436         http://cvs.gnome.org/viewcvs/dia/app/render_libart.c?r1=1.31&r2=1.32
437         * lib/dia_dirs.c : dia_get_canonical_path() const correctness
438         * lib/dia_svg.c lib/dia_xml.c : some char to xmlChar changes
439         * lib/dialibartrenderer.c(set_line_join): actually set the join_style
440         instead of the cap_style. Don't initialize Art* enums with GDK_* constants.
441         Both mentioned in bug #159814 and not warned by most other compilers.
442         * lib/diagtkfontsel.c : at least the watcom compiler did not like the
443         trailing colon in the GtkTypeInfo initialization
444         * lib/properties.c : avoid redefinition of LIBDIA_COMPILATION
445         * lib/dialinechooser.c lib/diagdkrenderer.c : there may be a difference 
446         between char and gint8
447         * plug-ins/metapost/render_metapost.c : replace invalid escape \% with %%
448         * plug-ins/wpg/wpg.c : consitently use guint8
449         * config.h.win32 : change HAVE_* defines to 1 not empty, avoids 
450         redefinition warnings for python and xslt plug-ins
452 2005-06-18  Hans Breuer  <hans@breuer.org>
454         * lib/diagramdata.c : really get rid of diagram_data_destroy 
455         and new_diagram_data [ no previous prototype for `...' is either
456         a sign of missing static or of a function to vanish :-]
458         * lib/geometry.c : apparently the G_INLINE stuff was working only
459         with particular GLib version(s), glib-2.6.4 does not. Conditionally
460         reverting to the old mecanics.
462 2005-06-17  Hans Breuer  <hans@breuer.org>
464         * plug-ins/python/pydia-*.c : include order tweaking to 
465         get rid of redefinition warnings. Ensure to include <Python.h> 
466         before any 'system' header, some dragged in by glib.h
467         * plug-ins/python/pydia-diagramdata.c(PyDiaDiagramData_Str)
468           pydia-properties.c(PyDiaProperties_Str)
469           plug-ins/python/pydia-property.c(PyDiaProperty_Str) : 
470         use %p to format pointers
471         * plug-ins/python/pydia-geometry.c(PyDiaArrow_Str) : 
472         dont cast to float for %d
473         * plug-ins/python/pydia-handle.c(PyDiaHandle_Connect) : 
474         use correct pointer type
475         * plug-ins/python/pydia-image.c(PyDiaImage_Str) :
476         dont discard qualifier aka dont free const strings
477         * plug-ins/python/pydia-properties.c : casts to PyCFunction
478         * plug-ins/python/pydia-property.c : removed unused function,
479         make ensure_quarks() static
480         * plug-ins/python/pydia-render.c : removed unused vars, use
481         the correct signature for begin_render
482         (dia_py_renderer_finalize): pluged a leak
483         => except -fno-strict-aliasing there is no warning left in 
484            all of PyDia
486 2005-06-12  Hans Breuer  <hans@breuer.org>
488         * app/filedlg.c : really fix the file extension mismatch on export dialog
489         by working around some gtk+-2.6 behaviour (bug #307378). Fixes bug #305850
491 2005-06-11  Hans Breuer  <hans@breuer.org>
493         * configure.in config.h.win32.h : mark as +cvs (should have been 
494         done directly after the 0.94 release)
495         * NEWS : attempt to summarize 2/3 year of development
497         [ 
498           WANT_AUTOMAKE=1.7 ./autogen.sh && ./conifugre  --enable-maintatiner-mode && make distcheck
499           finally passes again
500         ]
501         * app/app_procs.c : force use of POPT for the GNOME case, otherwise
502         app/run_dia.sh --credits > THANKS => Segmentation fault
503         * app/pixmaps/Makefile.am : added group.png and ungroup.png
504         * Makefile.am : work around scrollkeeper bug
505         * doc/en/Makefile.am : explicit list DISTCLEANFILES = dia.1
507         * po/*.po : 'noise' produced by make dist
509 2005-06-10  Hans Breuer  <hans@breuer.org>
511         * lib/properties.h : define PROP_STD_SHOW_BACKGROUND_OPTIONAL ...
512         * objects/custom/custom_object.c : ... and use it to avoid 
513         complains about missing attribute "show_background". It is 
514         safe to leave this uninitialized. Same for flip_* and "text",
515         the latter with comment cause it usually is *not* safe to do 
516         it for the general case. Fixes remaining issues with bug #169006
517         which where caused by an incompatible change in the shape file.
519         * app/commands.c : use "gnome-open" instead of "netscape" as
520         fallback for $BROWSER not set. Still not optimal but better
521         to try some common desktop tool than an obsolete browser;)
522         Fixes bug #307142. Also some whitespace changes.
524         * app/interface.c(toolbox_delete): avoid random return value.
525         Patch from Stanislav Brabec, fixes bug #307143
527         * shapes/Cisco/Makefile.am : added a bunch of new shapes/pngs.
528         Patch from Torben H. Nielsen (bugzilla is still the preferred way)
529         http://mail.gnome.org/archives/dia-list/2005-June/msg00015.html
531 2005-06-06  Lars Clausen  <lars@raeder.dk>
533         * app/diagram.c: 
534         * app/modify_tool.c:
535         * app/textedit.[ch]:
536         Better support for text edit highlight.
538         * app/connectionpoint_ops.c (connectionpoint_draw): Stop making
539         the mainpoint extra visible.
541 2005-06-02  Lars Clausen  <lars@raeder.dk>
543         * objects/UML/class_dialog.c:
544         * objects/UML/class.[ch]:
545         The final fixes for mainpoint on UML Class.
547         * sheets/cisco*.in, shapes/Cisco/*: New set of Cisco icons from
548         Ian Redfern, now in color and with mainpoints!  Very pretty!
550 2005-06-02  Hans Breuer  <hans@breuer.org>
552         * objects/UML/class_dialog.c : the memory managment with respect to
553         attribute/operation connections was/is a mess. But it should work again ;)
555         * samples/UMLPackages.dia samples/Composite-Action.dia : some diagrams
556         directly from the UML Specification - to show the power of Dia and 
557         some weakness. Watch the bug reports following ;)
559 2005-06-01  Hans Breuer  <hans@breuer.org>
561         * app/dia.def : export diagram_update_connections_object
562         * plug-ins/python/pydia-diagram.c : wrap diagram_update_connections_object
563         Patch from Paolo Bernardi, together with the property setting closes bug #300572
565 2005-06-01  Hans Breuer  <hans@breuer.org>
567         * plug-ins/python/pydia-property.c : complete refactoring of property 
568         setting, now also supports setting of property arrays
569         * plug-ins/python/pydia-*.c plug-ins/python/diamodule.c : adapt to 
570         Python namespacing conventions
571         * plug-ins/python/pydiadoc.py : use the stuff above to produce more 
572         complete UML Classes with attributes and operations
573         * plug-ins/python/otypes.py : now also show the properties of the objects
575         * objects/UML/class.c(umlclass_set_props) : need to update object::connections
576         (pointers), they might be changed with attributes and opertions changing
578         * plug-ins/python/pydia-property.c : PointArray and BezPointArray property getters
579         were broken. Apparently noone used them before.
581         * plug-ins/python/pydia-diagram.c plug-ins/python/pydia-diagramdata.c : moved methods
582         which only operate on the DiagramData to the latter file. To get on the DiagramData
583         object of a Diagram use diagram.data. [In C the Diagram is a subclass of DiagramData, 
584         but I don't know how to reflect that in the bindings. And for backward compatibility 
585         there also is the 'data' member.]
587         * objects/UML/uml.c objects/UML/umlattribute.c objects/UML/umloperation.c 
588           objects/UML/umlparameter.c : describe enums with PropEnumData
590         * app/commands.c(view_show_all_callback) : if there is something selected show 
591         that instead of all exisiting objects. If there is noting or all selcted it 
592         "Show all" shows the old behaviour.
594         * lib/parent.[hc] lib/object.c app/disp_callbacks.c app/diagram.c : plug some memory 
595         leaks and use less allocations caused by misguided API. Also some adaption to common 
596         coding style
598         * objects/UML/class.h : add some comment about the brokeness of UML_MAINPOINT
600         * app/makefile.msc : added new icons and build as console app while 
601         not releaseing to the general public
603         * objects/custom/shape_info.c : use g_strdup("") for a field to be g_free()'d
604         and keep a refernce when storing the a font from style="" in s.font. This should
605         finally allow to have shapes with fully predefined text (and no 'random' crashes)
607         * plug-ins/gprint/diagnomeprint.c : disable GNOME_SVG until I've found a program
608         capable to interpret it's output
610 2005-05-31  Lars Clausen  <lars@raeder.dk>
612         * sheets/ER.sheet.in: No more xpms referenced in sheets. Fixes bug #151811.
614 2005-05-30  Pawan Chitrakar  <pawan@nplinux.org>
616         * configure.in: Added ne in ALL_LINGUAS
618 2005-05-24  Lars Clausen  <lars@raeder.dk>
620         * lib/font.c: Change to make DIA_FONT_ITALIC turn into -Oblique PS
621         fonts for legacy fonts.  They don't have DIA_FONT_OBLIQUE setting
622         anyway. 
624 2005-05-23  Lars Clausen  <lars@raeder.dk>
626         * lib/paper.c: Added Ledger size paper.  Fixes bug #305254.
628 2005-05-21  Lars Clausen  <lars@raeder.dk>
630         * lib/diaarrowchooser.c: 
631         * lib/arrows.[ch]: Patch from Radek Krahl <ptasz3k@o2.pl>: Add
632         'infinite' line (three dots) arrowhead.  Fix line length in arrow
633         preview.  And fix typo.  Fixes bug #303904. 
635 2005-05-20  Hans Breuer  <hans@breuer.org>
637         * lib/text.c : advice from valgrind and data_string() review:
638         neither g_free() memory on the stack
639         * objects/GRAFCET/boolequation.c : ... nor const strings 
640         * objects/UML/association.c:934 : definitely lost. Even g_strdup("")
641         wants to be freed
643         * app/diagram.c : a g_object_ref() following g_object_new() is almost
644         always wrong. Why would we need two refernces?
645         * app/app_procs.c : same here.If it crashes later on someone is dropping
646         refernces he does not own, and *that* needs to be fixed. This is reverting
647         "Remember to ref g_object_new'd object" (bug #170972) below, which 
648         causes more harm (leaking, hiding bugs elsewhere) than good.
650         * app/app_procs.c lib/diagramdata.[ch] lib/libdia.def : get rid of
651         diagramdata_destroy() which was only a wrapper to g_object_unref()
653         * app/display.c(selection_changed) : don't g_strdup_printf() without
654         g_free() later /or/ a C++ comment of me mostly denotes an error
656         * app/diagram.c : diagram_parent_sort_cb make signature match GCompareFunc
658         * lib/widget.c : dia_dynamic_menu_select_entry() cleanup. If it takes a
659         const gchar* entry it must not eat memory, added a lot of g_free() and
660         some const. Fixed a bunch - i.e. *all* - warnings.
661         * lib/widget.h : removed unused/deleted functions
663         * app/layer_dialog.c(dia_layer_widget_connectable_toggled) : trying to
664         avoid 'Invalid write of size 4', no luck yet
666 2005-05-19  Lars Clausen  <lars@raeder.dk>
668         * objects/UML/class.c: 
669         * objects/UML/class.h: 
670         * objects/UML/class_dialog.c: Work on getting a proper mainpoint
671         for uml class object.  #ifdef'd out right now.
673 2005-05-18  Lars Clausen  <lars@raeder.dk>
675         * objects/standard/line.c: Make line adjust its actual endpoints
676         for autogap -- looks and feels better.
678         * objects/standard/arc.c: 
679         * lib/geometry.h: 
680         * app/modify_tool.c: Patch from Grégoire Dooms
681         <dooms@info.ucl.ac.be>:  First stab at autogap for arcs, and
682         shifted arc angle movement.
684 2005-05-16  Hans Breuer  <hans@breuer.org>
686         * lib/widget.c : variable declarations need to be at the start of a block,
687         at least as we are not using C++ or C99
689         * plug-ins/python/pydia-property.c : implment the read part for Property
690         arrays - aka. umlclass.properties["operations"], umlclass.properties["attributes"]
691         They are working quite well as can be seen with export-object.py
693         * plug-ins/python/codegen.py : prove it once more with the generation of C++
694         or Python code from an UML Diagram. Simply save as .py or .cxx ...
695         * plug-ins/python/Makefile.am : install it
697 2005-05-16  Lars Clausen  <lars@raeder.dk>
699         * app/pixmaps/{un}group.png: 
700         * app/Makefile.am (ICON_PNG_PAIRS): 
701         * app/menus.c (display_menu_items): 
702         New icons for grou/ungroup finally added, closing bug #105519.
704         * app/Makefile.am: Dependencies for pixmaps.
706         * app/pixmaps/connectable.png: An icon that actually makes sense
707         for switching connectability.
709 2005-05-15  Hans Breuer  <hans@breuer.org>
711         * lib/group.c object/UML/classicon.c : fixed leftovers of
712         'Adding connectionpoint to _move_handle
714         * lib/widgets.c : gtk+ *NEVER* eats strings, so gtk_something(widget, g_strdup())
715         is *ALWAYS* a memory leak. Plug some more.
717         [
718          In preparation to make UML operations/attributes/parameters setable by Python
719          UML class became more StdProp conformant. A nice experience to be the first 
720          to use the PROP_TYPE_DARRAY stuff about four years after it was written ;-)  
721         ]
722         * objects/UML/umlattribute.c objects/UML/umloperation.c 
723           objects/UML/umlparameter.c objects/UML/umlformalparameter.c : (new files) 
724         split from objects/UML/uml.c and made StdProp aware
725         * objects/UML/class.c : finally make "attributes", "operations", "templates"
726         <template parameters> first class StdProps citizens.
727         (umlclass_load) : removed hand-written parsing for the above, it is all done
728         by object_load_props() now. The old write code is still in place, so be very
729         careful when changing something - at the moment load/save it is 100% compatible 
730         as it needs to be.
731         * objects/UML/uml.c : now just type registration here, as it is supposed to be
732         * objects/UML/Makefile.am objects/makefile.msc : build the new files
734         * lib/properties.h(PropDescCommonAreaExtra) : need a place to store the 
735         in-record offsets
736         * lib/prop_sdarray.c : made the DARRAY case work, SARRAY still untested
737         (darray_prop_adjust_object_records) : don't loop forever
738         (whole file) : use the new (working) way to get on the second level offsets.
739         Also resolved some abbreviations, it is complicated enough without them ;)
740         * lib/proplist.c : even complete list contents may be optional
742 2005-05-15  Hans Breuer  <hans@breuer.org>
744         * lib/bezier_conn.c(remove_handles) : don't try to remove 
745         non-exisitng handles (patch from Radek Krahl, bug #302273)
747 2005-05-15  Hans Breuer  <hans@breuer.org>
749         * plug-ins/metapost/render_metapost.c : locale independent output
750         (Radek Krahl, bug #301866)
752 2005-05-12  Lars Clausen  <lars@raeder.dk>
754         * shapes/Cisco/*.{shape,png}:
755         * sheets/cisco*.sheet.in:
756         Updated with color icons from Ian Redfern, closing bug #303889.
757         Added automatic midpoints, not attempt at adjusting them.
759 2005-05-11  Lars Clausen  <lars@raeder.dk>
761         * many shapes:  Use mid of bounding box for midpoint, better than
762         mid of connection points generally.
764 2005-05-10  Lars Clausen  <lars@raeder.dk>
766         * lib/widgets.c: Decided on one way for the ratio thing in arrow
767         size selector:  Fixed ratio is on by default and keeps the sizes
768         at the given ratio, but doesn't clamp them to be the same.  Fixes
769         bug #302861.
771         * lib/font.c: Fix for bug #303695: Allow more than one entry of
772         each legacy name, thereby correctly encoding bold and italic of
773         the three main fonts.  Also use | rather than || to combine slant
774         and weight, so matching works.  Had to remove binary search for
775         new font name, but the list is short enough it's not a problem.
777 2005-05-09  Lars Clausen  <lars@raeder.dk>
779         * lib/autoroute.c (autoroute_layout_orthconn): Remove debugging info.
781 2005-05-08  Hans Breuer  <hans@breuer.org>
783         * objects/UML/class.c : Reverted to have no center point.
784         At first it looked as if there was only the bug to not increase
785         class.h:UMLCLASS_CONNECTIONPOINTS. But the UMLClass has 
786         potentially much more dynamic connection points (to the left
787         and right of every attribute/operation). Now simply adding one
788         between see static and dynamic will screw up any existing diagram
789         which makes use of the dynamic connection points. The would all
790         be connected with an off-by-one error. I have no idea how to
791         code around that. But breaking backward compatibility is no 
792         option here. Does not completely fix bug #303301 ...
793         
794         * lib/widget.c(dia_font_selector_set_font): actually set the options 
795         menu state. So we are not any longer resetting the font style on Apply.
796         Use "UML - Class" dialog as stress text example.
798         * app/command.c : some people insist to close diagrams already
799         closed using tear-off menus. Maybe we should add a dialog 
800         "Do you want to call Dr. Watson now?". If there is no diagram
801         to close anymore just do nothing, fixes bug #303221
802         * app/display.c(ddisplay_close) : use g_return_if_fail(ddisp != NULL);
803         Calling this with no display to close is a pathological case.
805         * app/diagram.[hc] : moved object.h and other DiaObject stuff
806         to the implementation in preparation of Big Things(tm)
808         * app/interface.c : less warnings and make it compile. strncmp()
809         does not take a char**, neither does gdk_pixbuf_new_from_inline().
811         * objects/makefile.msc plug-ins/makefile.msc : less output
813 2005-05-08  Lars Clausen  <lars@raeder.dk>
815         * lib/orth_conn.c (orthconn_init): The right place to set the
816         default autorouting value.  Fixes bug #303291.
818         * app/display.c (ddisplay_close): Patch from Radek Krahl
819         (ptasz3k@o2.pl):  Fix crash when using from detached menu
820         (#303221)
821         
822 2005-05-07  Lars Clausen  <lars@raeder.dk>
824         * lib/orth_conn.c (orthconn_load): Autorouting should default to
825         off in diagrams that don't have it explicitly.  All diagrams
826         should be explicit about it.
828 2005-05-06  Hans Breuer  <hans@breuer.org>
830         * app/samples/Self/*.dia : some UML diagrams describing Dia's
831         inner working (or it's future;)
833 2005-04-26  Lars Clausen  <lars@raeder.dk>
835         * app/connectionpoint_ops.c (connectionpoint_draw): Temporary
836         change to display of mainpoint to be easier to debug autogenerated
837         ones. 
839 2005-04-23  Hans Breuer  <hans@breuer.org>
841         * plug-ins/python/diamodule.c plug-ins/python/pydia-object.h
842           plug-ins/python/pydia-properties.h : use lib/ prefix for
843         Dia internal headers with too common names (fixes bug #173061)
845         * app/display.c : stop special casing the first display of
846         a diagram. Every display now has it's own refernce. The initial
847         reference gets dropped when there is no display anymore. See
848         diagram_remove_ddisplay(). Fixes bug #300744.
850         * app/diapsft2renderer.c : locale independent output
851         (Radek Krahl, bug #300847)
852         * app/paginate_psprint.c :  fixing use of setlocale() calls
853         (Radek Krahl, bug #300886)
854         * plug-ins/shape/shape-export.c : fixing use of setlocale() calls
855         (Radek Krahl, bug #300889)
857         * objects/UML/class.c : fix another crash with the line 
858         wrapping code (Gabor Simon, bug #160865)
860         * plug-ins/cairo/diacairo.c : image rendering had an endianess 
861         issue (or is this working around a libpixman bug?;)
863 2005-04-21  Lars Clausen  <lars@raeder.dk>
865         * lib/polyshape.c (polyshape_update_data): Fixed numpoint off-by-one.
867         * shapes/**/*.shape: All shapes now have midpoints.
869 2005-04-20  Lars Clausen  <lars@raeder.dk>
871         * lib/orth_conn.c (orthconn_update_data): Patch from ptasz3k@o2.pl
872         (Radek Krahl): Make sure there's enough handles for the line.
873         Fixes bug #173031.
875         * objects/UML/node.c (node_draw): Better drawing method avoids
876         garbage after moving.  Fixes bug #301032.
878 2005-04-17  Hans Breuer  <hans@breuer.org>
880         * plug-ins/cairo/diacairo.c : again adapt to Cairo API 
881         changes (whould compile with current cvs and 0.(3|4).0
883 2005-04-11  Lars Clausen  <lars@raeder.dk>
885         * xmldocs.make (all): Fix to put installed docs in right place
886         under disable-gnome.
888         * doc/en/Makefile.am: Use xml_files var for xml files, EXTRA_DIST
889         only for dia.dbk.
891         * app/commands.c (help_manual_callback): Patch from p@kapcoweb.com
892         (Leonardo Boshell): Use standard gnome help if called with Gnome.
894         * app/diapsrenderer.c: Patch from ptasz3k@o2.pl (Radek Krahl): Fix
895         locale issues for eps output.  Fixes bug #173135.
897 2005-04-10  Hans Breuer  <hans@breuer.org>
899         * plug-ins/cairo/diacairo.c : adapt to Cairo PNG API 
900         changes (somewhat broken)
901         
902         * plug-ins/pstricks/render_pstricks.c : still C89 ...
903         * objects/custom/shape_info.c : ... but with prototypes
904         
905 2005-04-07  Lars Clausen  <lars@raeder.dk>
907         * lib/dia_xml.c: 
908         * plug-ins/svg/render_svg.c: 
909         * lib/diasvgrenderer.c: Patches from ptasz3k@o2.pl (Radek Krahl):
910         Make decimal separators be correct in save file formats
911         (non-localized).  Fixes bugs #172529 and 172531.
913 2005-04-06  Lars Clausen  <lars@raeder.dk>
915         * app/create_object.c (create_object_button_release): 
916         * app/modify_tool.c (modify_button_release): Correct activations
917         of text edits.
919 2005-04-05  Simon Kågström  <ska@bth.se>
921         * app/app_procs.c: the --show-layers option can now handle numeric
922         ranges of layers.
924 2005-04-05  Lars Clausen  <lars@raeder.dk>
926         * lib/diagdkrenderer.c (draw_string): Patch from tomkast@yahoo.com
927         (Tom Kast): Avoid blockiness caused by bad updates.
929 2005-04-03  Lars Clausen  <lars@raeder.dk>
931         * lib/polyshape.c: 
932         * lib/beziershape.c: Main points.  A crude solution, having the
933         center in the middle of the bb.  Shows a bug in the distance_from
934         code for polyshape when a side is horizontal.
936 2005-04-02  Lars Clausen  <lars@raeder.dk>
938         * plug-ins/pstricks/render_pstricks.c: 
939         * plug-ins/xfig/xfig-export.c: Patch from Radek
940         Krahl <ptasz3k@o2.pl>: Fix decimal point problems. Fixes bugs 
942 2005-04-02  Hans Breuer  <hans@breuer.org>
944         * lib/dia_image.c(dia_image_filename) : return the path 
945         again. (bug #172416, Radek Krahl)
946         
947 2005-04-01  Steve Murphy  <murf@e-tools.com>
949         * configure.in: Added "rw" to ALL_LINGUAS.
951 2005-03-31  Lars Clausen  <lars@raeder.dk>
953         * lib/neworth_conn.c (neworthconn_update_data): Handle autogap.
955         * lib/orth_conn.c (orthconn_update_data): Handle autogap while not
956         autorouting.  
958         * objects/network/basestation.c: Main points.
960 2005-03-27  Hans Breuer  <hans@breuer.org>
962         * app/Makefile.am : removed some pixmap/*.xpm from EXTRA_DIST
963         * app/pixmaps.h : removed arrow.xpm
964         * lib/Makefile.am : added diamarshal
965         * plug-ins/python/Makefile.am : added makefile.msc to EXTRA_DIST
966         => makes 'make dist' pass and produce a useable package
968         * po/*.po : 'noise' profuced by make dist
970 2005-03-24  Lars Clausen  <lars@raeder.dk>
972         * objects/flowchart/parallelogram.c (pgram_update_data): 
973         * objects/flowchart/ellipse.c (ellipse_update_data): 
974         * objects/flowchart/diamond.c (diamond_update_data): 
975         * objects/flowchart/box.c (box_update_data): Main points.
977         * objects/custom/custom_object.c (custom_create): 
978         * objects/custom/shape_info.h: 
979         * shapes/Assorted/square.shape: 
980         * objects/custom/shape_info.c (load_shape_info): 
981         * doc/shape.dtd: Added main point support to shapes, and an
982         example of how to use it.
984 2005-03-21  Lars Clausen  <lars@raeder.dk>
986         * lib/autoroute.c (autoroute_layout_orthconn): Remember to
987         unnormalize from same point as you normalize, or else!
989 2005-03-20  Lars Clausen  <lars@raeder.dk>
991         * app/app_procs.c (do_convert): Patch from crux@gorodmasterov.com:
992         Remember to ref g_object_new'd object.
994 2005-03-19  Hans Breuer  <hans@breuer.org>
996         * plug-ins/xslt/xslt.c : don't crash if both places ($SHARE, $HOME)
997         have configurations, fixes bug #170962
999         * objects/UML/state.c : ("UML - State")::type is PROP_FLAG_OPTIONAL,
1000         or better not used any longer. Fixes bug #169142.
1002         * lib/element.c(element_update_connections_rectangle): don't initialize 
1003         the eighth point twice but instead the nineth once
1005         * objects/standard/bezier.c : no C++ comments *please*
1007         * lib/plug-ins.h : increment DIA_PLUGIN_API_VERSION
1009         * lib/dia_image.[ch] : dia_image_filename() returns a string not to be freed ...
1010         * plug-ins/python/pydia-image.c : ... so, don't do it!
1012         * lib/dia_svg.c : refactor color parsing and support the "rgb(127,255,0)" form,
1013         also named colors via pango_color_parse()
1015         * lib/prop_text.c : don't try to g_strdelimit(NULL), fixes bug #169367
1017         * lib/libdia.def : updated externals
1019         * app/object_ops.c : still not C99 everywhere
1021 2005-03-19  Hans Breuer  <hans@breuer.org>
1023         * lib/autoroute.c : at least it should compile ;)
1024         
1025 2005-03-19  Lars Clausen  <lars@raeder.dk>
1027         * lib/autoroute.c: Orthconns now do autogap.
1029 2005-03-17  Lars Clausen  <lars@raeder.dk>
1031         * app/authors.h: Added Gregoire Dooms for gap stuff.
1033         * objects/standard/polyline.c: Patch from Grégoire Dooms
1034         <dooms@info.ucl.ac.be>: Autogap and absolute gap for polyline.
1035         
1036         * objects/standard/bezier.c: Patch from Grégoire Dooms
1037         <dooms@info.ucl.ac.be>: Fixes two bugs.  Also autogap no longer a
1038         property. 
1039         
1041         * objects/UML/state_term.c: 
1042         * objects/UML/large_package.c: 
1043         * objects/UML/node.c: 
1044         * objects/UML/object.c: 
1045         * objects/UML/small_package.c: 
1046         * objects/UML/state.c: 
1047         * objects/UML/usecase.c: 
1048         * objects/UML/note.c: 
1049         * objects/UML/actor.c: 
1050         * objects/UML/classicon.c: 
1051         * objects/UML/component.c: 
1052         * objects/Misc/analog_clock.c: 
1053         * objects/Jackson/requirement.c: 
1054         * objects/Istar/goal.c: 
1055         * objects/Istar/actor.c: 
1056         * objects/FS/function.c: 
1057         * object/standard/box.c:
1058         * objects/ER/entity.c: 
1059         * objects/ER/relationship.c: 
1060         * objects/ER/attribute.c: Main points added.   Distance_from fixed
1061         in attribute, broken in relationship, I* goal, Jackson
1062         requirement, analog_clock, all non-rectangular UML elements, 
1064         * lib/libdia.def: 
1065         * lib/element.[ch]: New method to help update connection points.
1067         * app/menus.c: Change Help/Manual to Help/Contents to follow
1068         standard.
1069         
1070         * objects/standard/line.c:
1071         * lib/geometry.[ch]: 
1072         * objects/standard/bezier.c: Patch from Grégoire Dooms
1073         <dooms@info.ucl.ac.be>: Add absolute gap and autogap for line and
1074         bezier objects.   Autogap nowchanged to be a function of the
1075         connpoints.
1077         * lib/libdia.def: 
1078         * lib/connectionpoint.[ch]: New function to ask if a connpoint has the
1079         autogap flag.
1081         * app/connectionpoint_ops.c (connectionpoint_draw): Don't draw
1082         CP_FLAG_ANYPLACE connpoints.
1084 2005-03-16  Lars Clausen  <lars@raeder.dk>
1086         * app/interface.c (create_tools): Removed debug printf.
1088 2005-03-15  Lars Clausen  <lars@raeder.dk>
1090         * lib/widgets.[ch]: Constification.
1092         * app/interface.c: Work on using gdk-pixbuf-csource'd data, not
1093         working yet.
1095         * objects/standard/ellipse.c: Use CP_FLAG_MAIN for central CP.
1097         * lib/connectionpoint.h: Flags for connection points.
1099         * app/create_object.c (create_object_motion): 
1100         * app/modify_tool.c (modify_motion): Minor refactoring.
1102         * app/object_ops.c (object_find_connectpoint_display): Extend with
1103         finding connpoints that cover entire objects.
1105         * app/layer_dialog.c (dia_layer_widget_init): Get rid of warnings.
1107         * objects/custom/custom_object.c (custom_setup_properties): Avoid
1108         uninitialized use.
1110 2005-03-13  Hans Breuer  <hans@breuer.org>
1112         * plug-ins/svg/svg-import.c : handle the <circle/> tag as well
1114 2005-03-13  Hans Breuer  <hans@breuer.org>
1116         * lib/dia_svg.[hc] objects/custom/shape_info.[hc] plug-ins/svg/svg-import.c :
1117         s/DiaSvgGraphicStyle/DiaSvgStyle/, added and use convenience functions 
1118         dia_svg_style_copy(), dia_svg_style_init()
1120         * objects/custom/shape_info.c : use dia_svg_parse_path() from lib/ (it got
1121         moved out of this)
1123         * lib/dia_svg.c(dia_svg_parse_path) : also handle style properties which are
1124         not wrapped in the style attribute
1126         * plug-ins/svg/svg-import.c : implement nested group handling and style
1127         'style inheritance'. Still no transformations, no <image/>, no <style/> 
1128         <defs/>...
1130         * plug-ins/svg/svg-import.c(import_svg) : use message_warning instead of g_warning,
1131         the latter is for programmers.
1132         Also be more tolerant if the document root namespace is not 'svg'. If the svg 
1133         namespace is defined in the file search for the top node including svg. This
1134         allows us to re-read the svg part of our own shape format.
1136         * lib/libdia.def : there is no give_focus_to_object
1137         * app/textedit.c : still no C99,  aka. error C2275: 'Focus' : illegal use of this 
1138         type as an expression
1140         * lib/geometry. c : use G_IMPLEMENT_INLINES
1141         * lib/libdia.def : export point_get_perp (used by xfig plug-in)
1143         * app/textedit.c(textedit_end_edit) : don't crash if the display is already
1144         gone when trying to remove the focus
1146         * plug-ins/cairo/diacairo.c : CAIRO_HAS_WIN32_SURFACE does not any longer mean
1147         it has *my* Cairo Win32 Backend. [The official one isn't useful for the use
1148         case of this plug-in, i.e. producing output files]
1150 2005-03-13  Lars Clausen  <lars@raeder.dk>
1152         * lib/Makefile.am (BUILT_SOURCES): 
1153         * app/Makefile.am (BUILT_SOURCES): Use the Right Way[tm] to force
1154         the building of the icons header files.
1155         * app/dia-lib-icons.h: Out of CVS now that it's correctly generated.
1157 2005-03-13  Hans Breuer  <hans@breuer.org>
1159         * configure.in : require Cairo 0.3.0
1160           plug-ins/cairo/diacairo.c : changed to match ;-)
1162         * app/app_procs.c() : new function dump_dependencies()
1163         which gets called by: dia --version --verbose
1164         and may help to track version dependent problems in
1165         our dependencies
1167         * lib/font.c : reverted to previous version cause using
1168         not implemented Pango API did not improve the issue.
1169         See: http://bugzilla.gnome.org/show_bug.cgi?id=162034
1170         for more information.
1172         * lib/dialinechooser.c : a little shrinking of the 
1173         initial size (to work around line wrappjing the right 
1174         arrow control)
1176 2005-03-11  Lars Clausen  <lars@raeder.dk>
1178         * app/textedit.c: Concentrate start/end editing in single functions.
1180 2005-03-10  Lars Clausen  <lars@raeder.dk>
1182         * lib/text.h: 
1183         * lib/object.h: Added new object function to allow the object to
1184         be notified when its text is being edited.
1186         * lib/libdia.def: 
1187         * app/modify_tool.c: 
1188         * app/commands.c: 
1189         * app/textedit.c: 
1190         * lib/focus.c: Remove sideeffects from focus objects, add getter
1191         for focus->obj.
1193 2005-03-09  Lars Clausen  <lars@raeder.dk>
1195         * lib/Makefile.am (dia-lib-icons.h): 
1196         * app/Makefile.am: Minor cleanup.
1198 2005-03-06  Hans Breuer  <hans@breuer.org>
1200         * app/app_procs.c : avoid "assignment within conditional expression"
1201         and handle -L for the GOption case as well.
1203         * lib/widget.c : strchr() does not return -1 on not found but NULL;
1204         avoids widgets.c(307) : error C4047: '!=' : 'char *' differs in levels of 
1205         indirection from 'const int '
1207         * lib/diasvgenderer.c(draw_arc|fill_arc) : finally correct sweep and 
1208         large_arc, thus produce correct arc output (like diasvg.py does;),
1209         fixes bug #144401
1211         * lib/dia_svg.[hc](dia_svg_parse_path) : new function copied and adapted 
1212         from objects/custom/shape_info.c to be shared with object/custom and
1213         plug-in/svg -> finally the C based svg-import reads pathes again.
1214         Added arc parsing while I was there, which fixes bug #169191
1215         * objects/custom/shape_info.c(parse_path) : 
1216         * plug-ins/svg/svg-import : reuse above function
1217         Also fix the "root element was 'svg' -- expecting 'svg'" bug #108502.
1218         But in general this does only support a small subset of what is 
1219         possible in SVG.
1221 2005-03-06  Lars Clausen  <lars@raeder.dk>
1223         * objects/UML/association.c: Patch from Dave Klotzbach applied:
1224         Add visibility to association arrow.  Fixes bug #157012.
1226         * app/grid.c: Patch from Lawrence Withers fixes grid messiness,
1227         closing bug #161040.
1229         * app/layer_dialog.c (create_button_box): Use stock icons instead
1230         of homemade onces.  Gets us rid of four more XPMs.
1232 2005-03-05  Sampo Kellomaki <sampo@iki.fi>
1234         * app/app_procs.c: Implemented --show-layers=LAYER,LAYER,... option
1235         This option permits command line control of which layers are visible.
1236         Useful when automatically exporting multiple versions of the same
1237         diagram, e.g. slides with overlays. Added-n switch parsing without POPT.
1238       * app/app_procs.h: moved prototype of do_convert() to app/app_procs.c
1239         and made it static since its only used in that file.
1240         * app/authors.h: added myself
1241         * doc/en/dia.1: documented the switch
1242         * doc/en/usage-layers.xml: ditto
1243         
1244 2005-03-05  Alan Horkan <horkana@tcd.ie>
1246         * app/interface.c Change Horizontal scroll policy to NEVER for sheets
1247         this restores how Dia behaved before the GTK2 port and seems to help 
1248         allow the toolbox to be more easily resized.  Bug #108891.
1250 2005-03-05  Lars Clausen  <lars@raeder.dk>
1252         * Civil/civil_motor.shape:
1253         * Civil/civil_rotor.shape:
1254         * Logic/and.shape:
1255         * Logic/buffer.shape:
1256         * Logic/connector.shape:
1257         * Logic/inverter.shape:
1258         * Logic/nand.shape:
1259         * Logic/nor.shape:
1260         * Logic/not.shape:
1261         * Logic/or.shape:
1262         * Logic/xor.shape:
1263         * shapes/Assorted/arrow-left-up.shape: 
1264         * shapes/Assorted/heptagon.shape: 
1265         * shapes/Assorted/star5.shape: 
1266         * shapes/Assorted/trapezoid.shape: 
1267         * shapes/Assorted/triangle-rightangle.shape: Fixed bad use of
1268         defaults, see bug #169143.
1270         * sheets/Assorted.sheet.in: Fixed typo patch applied, bug #169114.
1272         * configure.in: 
1273         * doc/en/Makefile.am: Finally figured out the right way to ask for
1274         the manpage xslt.  Closes bug #144539.
1276 2005-03-01  Lars Clausen  <lars@raeder.dk>
1278         * lib/Makefile.am (nodist_include_HEADERS): 
1279         * app/Makefile.am: Correctly generate these files from PNGs with
1280         automake.
1282         * lib/widgets.h: 
1283         * lib/libdia.def:
1284         * lib/widgets.c: Refactor toggle button factory to allow inline
1285         data.
1287         * lib/pixmaps/Makefile.am: Unify lib pixmaps.
1289         * app/makefile.msc (ICON_PNG_PAIRS): 
1290         * app/dia-app-icons.h: Updated with more icons.
1292         * lib/Makefile.am: 
1293         * app/Makefile.am: Use gdk_pixbuf_csource to create inline data
1294         from pngs.
1296         * app/interface.c (create_display_shell): 
1297         * app/layer_dialog.c (dia_layer_widget_init): 
1298         * lib/dia_image.c (dia_image_get_broken): Use inlined data
1299         generated from png.
1301         * app/display.c (ddisplay_close): Removed unused includes.
1303 2005-03-01  Lars Clausen  <lars@raeder.dk>
1305         * app/sheets.c (create_object_pixmap): Create a placeholder image
1306         for when the real image is missing.  Better than crashing:)
1307         Closes bug #166786.
1309 2005-02-25  Hans Breuer  <hans@breuer.org>
1311         * app/app_procs.c : don't requets to open a default display with
1312         g_option_context_add_group (crux@gorodmasterov.com, bug #168523)
1314 2005-02-22  Lars Clausen  <lars@raeder.dk>
1316         * plug-ins/gprint/diagnomeprint.c (export_data): GNOME, not Gome.
1317         Fixes bug #168125.
1319 2005-02-19  Lars Clausen  <lars@raeder.dk>
1321         * app/menus.c (display_menu_items): Applied patch from bug #94019:
1322         Menu cleanup and addition of icons.  Also a few additional stock
1323         icons. 
1325         * app/layer_dialog.c (create_layer_dialog): Bug #159598: Clean up
1326         the layers dialog.
1328 2005-02-14  Lars Clausen  <lars@raeder.dk>
1330         * INSTALL (ftp): Fixed Pango release typo (bug #153007)
1332 2005-02-13  Lars Clausen  <lars@raeder.dk>
1334         * lib/font.c: First stab at using Gtk 2.4 functions for fixing
1335         width.  Seems to work.  Once tested some more, needs old code
1336         removed. 
1338         * lib/widgets.c (dia_font_selector_create_string_item): Avoid
1339         warning by escaping & properly.
1341 2005-02-06  Lars Clausen  <lars@raeder.dk>
1343         * app/filedlg.c (file_export_callback): Set correct extension as
1344         soon every time the dialog is shown.  Fixes bug #162535.
1346         * app/display.c (ddisplay_set_origo): Use more standard
1347         transformations.
1349         * app/modify_tool.c (modify_motion): 
1350         * app/create_object.c (create_object_motion): Put coordinates of
1351         handle/object in status bar while moving. Fixes bug #163164.
1353 2005-02-03  Lars Clausen  <lars@raeder.dk>
1355         * lib/.cvsignore: Added generated files diamarshal.[ch]
1357 2005-02-02  Lars Clausen  <lars@raeder.dk>
1359         * configure.in: Add GLIB_GENMARSHAL def as suggested in
1360         http://ignore-your.tv/software/libgtcpsocket/docs/client-subclassing.html.
1361         Now compiles on Linux.
1363 2005-02-01  Lars Clausen  <lars@raeder.dk>
1365         * app/sheets.c (sheet_object_mod_get_type_string): We don't really
1366         need to translate the empty string.  Especially not after
1367         g_assert_not_reached().  Fixes bug #165966.
1369 2005-01-07  Tim Olsen  <tolsen@alum.mit.edu>
1371         * objects/UML/activity.c : add fill- and line-colour properties
1372         [applied by Hans Breuer, fixes bug #163260]
1374 2004-01-28  Hans Breuer  <hans@breuer.org>
1376         * doc/en/*.xml doc/en/dia.dbk app/authors.h : documentation
1377         update provided by Alan Horkan (fixes bug #159592)
1379 2004-01-28  Hans Breuer  <hans@breuer.org>
1381         [Extented version for UML to C++ conversion by Dave Klotzbach, bug #155255]
1382         * plug-ins/xslt/dia-uml2cpp.xsl : (new file) ... handles associataions,
1383         generalization, dependancies, parameterized classes ...
1384         * plug-ins/xslt/styleshetts.xml : refernce it
1385         * plug-ins/xslt/dia-uml.xsl : handle more UML types uesd above
1387 2004-01-28  Hans Breuer  <hans@breuer.org>
1389         * objects/UML/transition.c : fill out the extra_spacing struct 
1390         in the OrtConn member, in order to avoid artifacts when draggin 
1391         the transition. (patch by Peter Allin, bug #144956)
1393 2004-01-15  Hans Breuer  <hans@breuer.org>
1395         * plug-ins/cairo/diacairo.c : initialized the renderers default dash_length
1396         to something differnt than 0. Apparently there are case where Dia misses
1397         to appropriately set it before requesting a dashed line (simple line with
1398         arrow as described in bug #151716)
1400         * lib/dia_dirs.c : special casing for drive letters which I broke with
1401         the previous change
1403 2005-01-13  Hans Breuer  <hans@breuer.org>
1405         * app/interface.c(create_sheet_page) : remved dead long time code
1407         * lib/propdialogs.c : removed pdtpp_is_visible_no_standard() prototype,
1408         it is availbale via header - which is the better style anyway
1410 2004-12-31  Hans Breuer  <hans@breuer.org>
1412         * lib/dia_dirs.c(dia_get_canonical_path) : complete
1413         rewrite to handle something like /mnt/some/where/../else
1414         too. Workaround for bug #162637.
1415         * app/filedlg.c : call gtk_file_chooser_set_current_name()
1416         to workaround gtk_file_chooser_set_filename() not setting
1417         it if the file does not exist
1419         * sheets/Jackson.sheet.in app/menus.c : fixed typos
1420         (Frank Arnold, bug #161676)
1422 2004-12-31  Steffen Macke <sdteffen@gmail.com>
1424         * doc/pl/*.xml: Added XML prolog
1425         * makefile.msc: Added libxslt, fixed libxml, libart
1427 2004-10-29  Alexander Shopov  <ash@contact.bg>
1429         * configure.in (ALL_LINGUAS): Added "bg" (Bulgarian)
1431 2004-12-29  Lars Clausen  <lars@raeder.dk>
1433         * configure.in: Make gnomeprint be truly off by default (typo) and
1434         show optional compilation correctly.
1435         * plug-ins/gprint/Makefile.am: Exclude gnomeprint if not optioned in.
1437 2004-12-22  Hans Breuer  <hans@breuer.org>
1439         * lib/widgets.c : destroy handlers can be called more than once, 
1440         see http://developer.gnome.org/doc/API/2.0/gtk/gtk-changes-2-0.html
1442         * app/app_procs.c : #ifdef GLIB(2.6.0) but GTK(2.4.x)
1443         
1444         * app/display.c : temporary debug code showing the
1445         timing the rendering
1447         * app/dialibartrenderer.c(draw_string) : removed dead
1448         code loading and leaking font and face
1450 2004-12-15  Hans Breuer  <hans@breuer.org>
1452         * app/display.c : actually use the selction-changed signal for something
1453         useful. Show selections representation on statusbar.
1454         * lib/object.h lib/prop_text.c lib/libdia.def : provide objet_get_displayname() 
1455         * app/diagram_tree.c : use new function (as in app/display.c) and only
1456         poke into property internals at one place
1457         * app/diagram.c : use g_signal_handlers_block_by_func to avoid has-no-handler-
1458         complains
1460 2004-12-12  Hans Breuer  <hans@breuer.org>
1462         * lib/libdia.def app/dia.def : updated externals
1464         * objects/custom/custom_object.c : custom_destroy is called per object. 
1465         It _must not_ destroy class stuff (ShapeInfo) cause it does not hold a 
1466         reference to it. Fixes e.g. bug #158288, #160550, ...
1468         * objects/UML/association.c(association_draw) : completed porting to
1469         draw_polyline_with_arrows()
1470         (association_update_data_end) : fixed typo in point compare
1471         (association_update_data) : for name placement take degenerated 
1472         segements into account. Together this fixes bug #143891
1474 2004-12-11  Hans Breuer  <hans@breuer.org>
1476         * lib/widgets.c(set_size_sensitivity) : revert inverted
1477         logic for arrorw size selections, fixes bug #160527
1479 2004-12-11  Hans Breuer  <hans@breuer.org>
1481         * lib/widgets.c(dia_font_selector_set_font) : initialize
1482         the font style widget, too. Gets rid of empty font
1483         style and thus default broken font style, e.g. UML::class_name
1485         * lib/widgets.c(dia_color_selector_more_callback) : fill
1486         the color palette from dynamic menu entries and also
1487         preselect the current color to the last select entry
1488         
1489         * plug-ins/python/pydia-diagramdata.c : hold a reference
1490         to the underlying GObject
1491         
1492         * app/Makefile.am app/diagrid.h : new file containing the 
1493         grid 'class' moved from DiagramData to Diagram. 
1494         Also moved pagebreak_color and guides cause they are only 
1495         used for visual appearance not 'data'.
1496         * lib/diagramdata.[ch] app/diagram.h app/dia-props.c app/grid.c
1497           app/load_save.c plug-ins/python/pydia-diagramdata.c : reflect 
1498         the above change
1500         * lib/diagramdata.[ch] app/app_procs.c app/diagram.c 
1501           lib/libdia.def : get rid of new_diagram_data() 
1502         Diagram _is_ DiagramData (and does not have one any longer,
1503         just a compatibility pointer)
1504         
1505         * lib/diarenderer.h : a small doc improvement
1507 2004-12-11  Hans Breuer  <hans@breuer.org>
1509         * objects/UML/class.c : line wrapping code buffer
1510         overrun fixed by Gabor Simon, bug #160865
1512 2004-12-11  Hans Breuer  <hans@breuer.org>
1514         * plug-ins/python/pydia-diagram.c : hold a reference
1515         to the diagram in PyDiaDiagram, avoids bug #159080
1516         [another way to avoid is to detroy the dialog by
1517         clsoing it. But now there is still a diagram to
1518         apply the changes to, even if it's thrwon away just
1519         afterwards]
1521 2004-12-10  Hans Breuer  <hans@breuer.org>
1523         * **/*.c : fixed a bunch of warnings, not only for -ansi
1524         (still too many of them, but -ansi works)
1525         lib/
1526         prop_geomtypes.h prop_geomtypes.c:306: warning: static 
1527         declaration for `fontsizeprop_reset_widget' follows non-static
1528         dia_dirs.c:196: warning: return discards qualifiers from 
1529         pointer target type
1531         objects/custom/
1532         shape_info.c:121: warning: static declaration for `parse_path' 
1533         follows non-static
1535         objects/SADT/
1536         arrow.c:228: warning: `draw_arrowhead' declared `static' but never defined
1537         arrow.c:244: warning: unused variable `i'
1538         arrow.c:245: warning: unused variable `p'
1539         arrow.c:246: warning: unused variable `zzr'
1540         
1541         object/Istar/*.c object/Jackson/*.c  object/KAOS/*.c : 
1542         finally removed c++ comments
1543         
1544         objects/Istar/goal.c : initialize connections::directions
1545         while I was there - helps autorouting
1547         * objects/KAOS/metaandorrel.c objects/Istar/link.c 
1548           objects/KAOS/metabinrel.c : removed struct _DiaImage hack
1549         (it would be quite simple to add image-from-memory support
1550         to lib/ if needed)
1552         * pydia-*.h : warning: no newline at end of file
1553         
1554         * plug-ins/gprint/diagnomeprint.c : allow to unregister
1555         and follow new unique name naming convention
1556         * plug-ins/gprint/diagnomeprintrenderer.c : no c++ comments
1557         here either
1559 2004-12-07  Hans Breuer  <hans@breuer.org>
1561         * objects/UML/message.c : better default for initial text placement
1562         a suggested in bug #154306, Henning Mersch
1563         * objects/UML/constraint.c : doing the same
1565         * app/filedlg.c : include persistence.h for persistence_get_integer
1566         * lib/libdia.def export it
1568 2004-12-05  Hans Breuer  <hans@breuer.org>
1570         * app/grid.c : respect dynamic grid during snap-to, fixes 
1571         bug #135124, Dmitriy Morozov. Added some additional magic
1572         to make the grid size more useable.
1574 2004-12-05  Hans Breuer  <hans@breuer.org>
1576         * app/app_procs.c : make it compile for the HAVE_POPT and
1577         G_LIB_CHECK_VERSION(2,5,5) case, minor formating
1578         
1579         * lib/plug-ins.c : don't pass non exiting files to xmlDiaParseFile()
1580         * app/app_procs.c : only dia_pluginrc_write() and create_user_dirs()
1581         when interactive. Fixes bug #119329
1582           
1583         * plug-ins/cairo/diacairo.c : adapt to new type naming
1584         scheme (introduced by accident;-) for pixbuf-*
1585         * app/app_procs.c : reflect both type name changes
1587 2004-12-04  Hans Breuer  <hans@breuer.org>
1589         * objects/standard/image.c : fix the correct warning
1590         `image_file_name' might be used uninitialized
1591         
1592         * app/filedlg.c : near complete rewrite
1593         - removed 'related dialog', GtkOptionMenu, most global vars,
1594         also don't hide the dialog but let it go.
1595         - added: filter view by extension, hopefully working diagram
1596         referencing, GtkComboBox usage
1597         
1598         * plug-in/pixbuf/pixbuf.c : switched to dynamic generation
1599         of im/export filter entries. So the user interface reflects
1600         the dynamic nature of pixbuf loaders
1602         * lib/filter.[ch] : implement filter_unregister_*port
1603           lib/libdia.def : added new functions
1604           plug-ins/cgm/cgm.c plug-ins/dxf/dxf.c
1605           plug-ins/hpgl/hpgl.c plug-ins/metapost/metapost.c
1606           plug-ins/pstricks/pstricks.c plug-ins/svg/svg.c
1607           plug-ins/wpg/wpg.c plug-ins/xfig/xfig.c
1608           plug-ins/cairo/cairo.c plug-ins/pixbuf/pixbuf.c :
1609         use them in _plugin_unload () thus all these plug-ins
1610         can be loaded used and unloaded during Dia's runtime
1612 2004-12-04  Lars Clausen  <lars@raeder.dk>
1614         * lib/diagramdata.h: Access methods for units defined per diagram.
1616         * lib/font.c (dia_font_new_from_style): More proper object creation.
1618         * lib/properties.h: Refactored the PROP_STD_* macros to allow
1619         different options.
1621         * app/diagram.c (diagram_init): Force filename to be absolute
1622         path, easing the job for load/save.
1624 2004-12-03  Hans Breuer  <hans@breuer.org>
1626         * lib/libdia.def : removed dia_marshal_*, they are implemented as macros.
1627         added dia_font_set_height, dia_font_copy (note to self: don't try to
1628         maintain these from the *NIX side ;)
1630         * lib/widgets.h : removed DiaColorSelector::col, it is not maintained by
1631         the new color selection anymore
1632         * objects/UML/class_dialog.c : with the above change it would have been more 
1633         easy to fix the color loss bug #156996 which had nothing to do with 'a pointer
1634         problem' but only was an unfinished usage of dia_color_slector(get|set)_color
1636         *  objects/UML/class_dialog.c  objects/UML/class.[ch] : uml_apply_properties
1637         (used in object vtable) and make its prototype match
1639         * lib/widgets.c : made all the GtkTypeInfo 'static const'. I can't directly
1640         correlate any of these strange crashing bug with it, but assume bad things to 
1641         happen when one passes stack allocated stuff to gtk_type_unique()
1643         * lib/widgets.c(dia_font_selector_get_font) : don't access menuitem if it is
1644         not there. Fixes most of the warnings from bug #156996
1646         * lib/makefile.msc : rules to generate diamarshal.[ch]
1648 2004-11-29  Hans Breuer  <hans@breuer.org>
1650         * app/disp_callbacks.c : reenable so-called preedit
1651         as described in bug #158859, Etsushi Kato
1652         Also fixed some compiler warnings while there.
1653         
1654         * objects/standard/image.c(get_directory) : make
1655         the documentation match the implementation.
1656         (image_save) : don't write a leading slash on 
1657         relative filenames 
1659         * plug-ins/gprint/diagnomeprintrenderer.c :
1660         switched to gnome-print-pango usage
1661         
1662         * app/app_procs.c configure.in : although Dia
1663         is not threaded it appears as if we have to
1664         g_thread_init() to avoid crashing in some
1665         libraries which are thread enabled
1667         * lib/diamarshal.list lib/Makefile.am : start of
1668         using GSignal to clean up some object relations
1669         * lib/libdia.def : export marshallers
1670         * app/diagram.[ch] : emit signals when REMOVED,
1671         SELECTION_CHANGED
1672         * app/display.c : added a connection to 
1673         SELECTION_CHANGED to test the new signal stuff
1674         
1675         * app/diagram.c : fixed diagram_finalize while I
1676         was there.
1678 2004-11-28  Hans Breuer  <hans@breuer.org>
1680         * plug-ins/wmf/wmf.cpp(draw_string) : write the widechar version of 
1681         the text if conversion to current locale fails. [This is actually
1682         using code written four years ago;]
1683         * plug-ins/wmf/wmf_gdi.(h|cpp) : added TextOutW (no real implemantation)
1685         * objects/standard/image.c(image_load) : be more robust against 
1686         filenames which seem to be absolute
1688 2004-11-27  Hans Breuer  <hans@breuer.org>
1690         * app/filedlg.c(file_save_callback) : convert to
1691         filename encoding before passing to diagram_save()
1692         Fixes bug #158381, thanks to Robert Ögren
1694 2004-11-27  Hans Breuer  <hans@breuer.org>
1696         * lib/dialibartrenderer.c : sometimes its good to read
1697         compiler warnings. Not only define renderer_finalize
1698         but actually *use* it. Should plug a potential huge
1699         memory leak.
1701         * configure.in plug-ins/Makefile.am 
1702           plug-ins/gprint/Makefile.am : build the experimental
1703         gnomeprint plug-in on *NIX, too.
1704         * plug-ins/gprint/diagnomeprint.c : don't include
1705         specific (private) backend headers but instead select
1706         the desired backend via config key setting
1708         * lib/diagdkrenderer.c : add 1 to size of filled arc 
1709         to be rendered by gdk. Fixes bug #150896.
1711         * plug-ins/gprint/diagnomeprint.c 
1712           plug-ins/gprint/diagnomeprintrenderer.c : added magic
1713         to better match page and dash sizes
1715 2004-11-27  Hans Breuer  <hans@breuer.org>
1717         * plug-ins/shape/shape-export.c : it's g_strdup_printf
1719 2004-11-27  Hans Breuer  <hans@breuer.org>
1721         * app/app_procs.c : mention eps-builtin aka. "using
1722         latin1", does not fix the eps-pango issues but #150571
1724 2004-11-27  Hans Breuer  <hans@breuer.org>
1726         * sheets/Cybernetics.sheet.in : changed encoding to 
1727         utf-8, patch from Takeshi AIHANA, fixes #149580
1729 2004-11-27  Hans Breuer  <hans@breuer.org>
1731         * objects/custom/custom_object.c : many existing shapes
1732         rely on a square default size, revert to it although
1733         it originally was by a typo. Fixes bug #148527.
1735 2004-11-27  Hans Breuer  <hans@breuer.org>
1737         * app/load_save.c(dia_cleanup_autosave) 
1738           app/diagram.c : don't use dia->filename if already 
1739         freed and dont use printf at all.
1741         * app/paginate_psprint.c : not only set the renderer::paper
1742         but also renderer::is_portrait. Should fix bug #142524
1744 2004-11-26  Hans Breuer  <hans@breuer.org>
1746         * dia.desktop.in : added Bug Buddy headers (as seen
1747         in planner). Hopefully the automatically filling of
1748         bugs is more meaningful by this.
1749         
1750         * objects/custom/custom_util.c objects/standard/image.c
1751           lib/plug-ins.c : getting rid of deprecated g_dirname,
1752         fixes some more memory bugs : AddrAddress 0x3586C010 is 24 
1753         bytes inside a block of size 44 free'd
1754         
1755         * lib/persistence.c(persistence_load_list) : don't
1756         leak string
1757         
1758         * lib/diaerror.[ch] : (new file) start of better error handling
1759         * lib/Makefile.am lib/makefile.msc lib/libdia.def: 
1760         added new files/funcs
1761         * lib/proplist.c lib/propinternals.h (prop_list_load) : 
1762         allow to propagate error to caller. Also set PXP_NOTSET
1763         to avoid applying unset properties, fixes bug #155255
1764         * lib/propobject.c lib/prop_sdarray.c : still spewing
1765         g_warnings but now with context information
1766         
1767         * app/filedlg.c : more absolute filenames where required
1768         and strip them where we need the filename only
1769         Also explicit DONT choose gnome-vfs backend cause its
1770         threading appears to crash Dia - at least in GNOME build,
1771         see bug #159558
1773 2004-11-26  Hans Breuer  <hans@breuer.org>
1775         * app/filedlg.c : don't use relative filenames for
1776         gtk_file_chooser_set_filename(), GtkFileChooserDialog is very
1777         pedantic about it.
1778         (export_set_extension) : if we don't have a filename don't
1779         use it in strrchr() to avoid crashing
1780         
1781 2004-11-23  Hans Breuer  <hans@breuer.org>
1783         * app/app_procs.c : fixed build for the GNOME case
1784         (let's rip out POPT and depend on glib-2.6, please ;-)
1786 2004-11-23  Hans Breuer  <hans@breuer.org>
1788         * app/app_procs.c : fixed typo which broke the
1789         build for HAVE_POPT case
1790         
1791 2004-11-21  Hans Breuer  <hans@breuer.org>
1793         * app/app_procs.c : some more #if-mess, but one day
1794         we should rely on GLib's 2.6 Option Parser alone
1795         
1796         * plug-ins/wmf/wmf.cpp : use SC() when scaling width
1797         and height for RoundRect() - otherwise size depends on offset,
1798         shorten the unique name
1799         
1800         * plug-ins/python/diamodule.c : provide a unique name
1801         for python filters as well
1803         * lib/dialibartrenderer.c : fix the drawing of Gdk based text
1804         by using the right colors (need black background cause we
1805         are tinitng it with the real color later)
1807         * lib/dia_dirs.c(dia_get_canonical_path) : use G_DIR_SEPARATOR_S
1808         instead of hardcoded slahes, improved portability 
1810         * app/paginate_gdiprint.cpp : use the right filter name to find wmf
1811         plug-in. Also added some more error reporting (e.g. no printer driver)
1813         * plug-ins/gprint/diagnomeprintrenderer.[hc] plug-ins/gprint/diagnomeprint.c
1814           plug-ins/makefile.msc : resurrection of the gnome print renderer. 
1815         Kinda works (alpha quality) for export but does not print yet. 
1816         With bug #158972 resolved this does even work on win32 :-)
1818 2004-11-07  Hans Breuer  <hans@breuer.org>
1820         * doc/diagram.dtd : <composite> can have <composite/>,
1821         <font/> has two 'optional' atributes 'style' and 'family',
1822         these are used to store new (since 0.91) font info.
1823         With this changes non of the issues in bug #147431 remains.
1825         * plug-ins/python/otypes.py : starting to implement an
1826         'create all known object' file as ne stress test source
1827         for the dtd and Dia in general.
1829 2004-11-06  Hans Breuer  <hans@breuer.org>
1831         * app/diapsrenderer.c : don't convert to locale but to 
1832         "LATIN1", fixes bug #146641
1834 2004-11-06  Hans Breuer  <hans@breuer.org>
1836         * app/diagram_tree.c : still no C99 everwhere ...
1837         * lib/libdia.def : update externals
1838         * plug-ins/pstricks/render_pstricks.c : #include <locale.h>
1840         * app/app_procs.[hc] : declare, use ...
1841            app/winmain.c : ... and implement dia_redirect_console().
1842         Even though newer Gtk version don't popup a console window
1843         anymore redirecting the error messages to a file in $TEMP appears
1844         to be much more reasonable than just ignoring it. Fixes bug #150777
1845         based on a patch from Steffen Macke
1847 2004-11-06  Hans Breuer  <hans@breuer.org>
1849         * plug-ins/wmf/wmf.cpp plug-ins/wmf/wmf_gdi.* : added/used
1850         RoundRect() for high level renderer api implementation thus
1851         fixing bug #138744 reported by Lars Clausen
1853 2004-11-06  Hans Breuer  <hans@breuer.org>
1855         * app/prefernces.c : applied patch to make showing the diagram 
1856         menubar the default (advanced users know how to switch it off)
1857         Fixes bug #150706, Steffen Macke
1859 2004-11-06  Hans Breuer  <hans@breuer.org>
1861         * app/commands.c app/commands.h : added view_fullscreen_callback()
1862           view_unfullscreen()
1863           app/menus.c : use it (/View/Fullscreen) thus fixing bug #94090
1864         * app/disp_callbacks.c : use view_unfullscreen() for GDK_Escape
1865         ALso modified to allow handling of unmodified keys again (aren't
1866         there plenty of bug reports for this?
1868 2004-11-06  Hans Breuer  <hans@breuer.org>
1870         * objects/UML/class_dialog.c : fixed casts for usage
1871         of dia_color_selector_set_color()
1872         
1873         * app/filedlg.c : pass a valid filenames to 
1874         gtk_file_chooser_set_filename(), if we don't have a name
1875         don't call it at all. Gets rid of "libgnomevfs-CRITICAL **: 
1876         file gnome-vfs-utils.c: line 749 (gnome_vfs_get_uri_from_local_path): 
1877         assertion `local_full_path[0] == '/'' failed"
1878         
1879 2004-11-06  Lars Clausen  <lars@raeder.dk>
1881         * app/properties.c (create_dialog): 
1882         * app/diagram_tree_window.h: 
1883         * app/diagram_tree.h (HIDDEN_TYPES_NAME): 
1884         * app/diagram_tree_menu_callbacks.c: 
1885         * app/diagram_tree_window.c: 
1886         * app/diagram_tree_menu.c: 
1887         * app/diagram_tree.c: Changed to use persistence instead of
1888         strange hacks in preferences.
1890         * lib/persistence.h:
1891         * lib/persistence.c (persistent_list_get_glist): Don't deref null
1892         pointer.  New function persistent_list_remove_all, and
1893         fixed persistent_list_remove to ... work!
1895 2004-11-05  Lars Clausen  <lars@raeder.dk>
1897         * app/paginate_psprint.c (diagram_print_ps): Call
1898         diagram_print_destroy on destroy rather than delete_event.  That
1899         way the gtk_widget_destroy() calls cleans up properly.  Fixes bug
1900         #154898. 
1902 2004-11-02  Lars Clausen  <lars@raeder.dk>
1904         * objects/UML/class.c (umlclass_load): Actually load the saved
1905         fonts and font sizes. Fixes bug #157016
1907         * configure.in: Require at least GTK+ 2.4.
1909         * app/filedlg.c: Changed to use 2.4 file dialog!  Finally,
1910         finally, finally.  Not quite bulletproof yet, and I need to figure
1911         out a minimum version of Gtk that doesn't spew warnings all over.
1913         * app/diagram.[ch]: diagram_set_filename with const filename.
1915         * app/sheets_dialog_callbacks.c
1916         (on_sheets_dialog_button_apply_clicked): Sheet menu now almost
1917         correctly recreated.  Still something fishy with the sheet menu in
1918         the dialog after adding a new sheet.  Probably the sheet name
1919         being stomped.
1921 2004-11-01  Lars Clausen  <lars@raeder.dk>
1923         * lib/widgets.[ch] (dia_dynamic_menu_reset): Harden against memory
1924         stmping.  Now requires g_free here and there.
1926         * app/preferences.[ch] (prefs_data): Got rid of hidden prefs value
1927         for remembering last sheet, better off as persistent string.  Must
1928         hunt down other things like that.
1930         * app/interface.c (create_sheets): Now remembers last sheet
1931         selected again. Fixes bug #157036.
1933 2004-11-01  Hans Breuer  <hans@breuer.org>
1935         * plug-ins(tex_escape_string) : fixed it [g_utf8_next_char
1936         will never become NULL but only point to the next char
1937         which might indeed be \0]
1938         Use tex_escape_string() to avoid writing invalid tex,
1939         fixes bug #112377
1941         * **/* : a bunch of changes caused by trying 'make distcheck'
1942         which still fails, see Bug #144527
1944 2004-10-31  Lars Clausen  <lars@raeder.dk>
1946         * plug-ins/pstricks/render_pstricks.c (export_pstricks): Avoid
1947         floating point numbers being printed with commas.  Fixes bug
1948         #156148.
1949         
1950         * app/interface.c (create_sheet_dropdown_menu): New function to
1951         create the sheet menu, and also allow recreation.  Still buggy and
1952         slightly prone to magic.
1954         * objects/UML/class_dialog.c
1955         (attributes_list_selection_changed_callback): Don't try to update
1956         the widgets after they're destroyed.  Fixes bug #156706 (I think).
1958         * lib/widgets.c (dia_unit_spinner_new): Avoid crash on NULL
1959         adjustement.  Fixes bug #154637
1961         * sheets/ER/Makefile.am (PIX): 
1962         * sheets/GRAFCET/Makefile.am (PIX): 
1963         * sheets/Jackson/Makefile.am (PIX): 
1964         * sheets/Istar/Makefile.am (PIX): 
1965         * sheets/KAOS/Makefile.am (PIX): Actually install PNG instead of
1966         XPM.  Why these have their pictures in sheets rather than shapes I
1967         don't know.  Fixes bug #152142.
1969 2004-10-31  Hans Breuer  <hans@breuer.org>
1971         * plug-ins/pixbuf/pixbuf.c : when running non interactive
1972         Dia won't call color_init() as it assumes no display. If
1973         we have one as tested ourselve we can as well color_init()
1974         to avoid g_warnings() and produce the right collors.
1975         Fixes bug #155495.
1976     
1977         * app/app-procs.c : try to be a little more helpful
1978         and correct with regard to the command line options.
1979         Renamed --export-to-format to --export-filter and some
1980         other string changes
1982 2004-10-31  Hans Breuer  <hans@breuer.org>
1984         * plug-ins/wmf/wmf_gdi.cpp plug-ins/wmf/wmf_gdi.h :
1985         added GetDeviceCaps() dummy implementation to make 
1986        'wmf' compile on Linux, too.
1988 2004-10-31  Hans Breuer  <hans@breuer.org>
1990         * plug-ins/wmf/wmf.cpp : patch from Robert Ögren <gtk@roboros.com>
1991         to finally fix the long lasting clipping issue, bug #85831
1992         Also fixed the line style issue for printing on XP and don't 
1993         miss to ReleaseDC()
1995         * plug-ins/wmf/wmf_gdi.[hc] : added ReleaseDC()
1997         * plug-ins/python/diasvg.py : filter illegal characters from <text/> section
1998         (e.g. &lt; instead of <), fixes bug #155697 (Duncan Palmer)
2000         * plug-ins/python/pydia-error.[hc] : improvede exception handling to transfer 
2001         some info from the console (soon gone on windoze) to message_error()
2002         * plug-ins/python/pydia-render.c plug-ins/python/diamodule.c : use it.
2003         Also some setlocale() hack to let Python behave as expected for LC_NUMERIC
2005         plug-ins/python/diasvg_import.py : re.compile() only once per expression
2006         and some more playing with scaling
2008         * plug-ins/python/makefile.msc : updated
2010 2004-10-30  Hans Breuer  <hans@breuer.org>
2012         * shapes/Civil/civil_arrow_right.shape : removed
2013         <aspectratio type="fixed" /> thus allowing to change
2014         width and height independently, fixes #154897 
2015         (Serge Robinson) by making it consistent with the
2016         up arrow
2018 2004-10-30  Hans Breuer  <hans@breuer.org>
2020         * plug-ins/xfig-xfig-export.c(hasArrow) : don't crash
2021         on arrow being NULL, fixes bug #143063
2023 2004-10-30  Hans Breuer  <hans@breuer.org>
2025         * lib/diagramdata.c app/diagram.c app/disp_callbacks.c
2026           plug-ins/python/pydia-diagram.c plug-ins/python/pydia-diagramdata.c :
2027         removed use of chached variable DiagramData::selected_count
2028         * lib/diagramdata.h : renamed to selected_count_private
2029         (kept for binary compatibility and sanity checks)
2030         * lib/diagramdata.c : more checks on a screwed up selection list
2032         * app/diagram.c(diagram_group_selected) : don't screw up the
2033         DiagramData::selected list, was assignment of parent_list_affected(),
2034         * lib/diagramdata.c (data_select, data_unselect) : protect against
2035         multiple selections of the same object and removement of a not selected
2036         object (apparently caused by the recently added group undo stuff)
2037         together with the above this finally fixes bug #153525
2039         * app/Makefile.am : fix ./autogen.sh ->
2040         app/Makefile.am:171: blank line following trailing backslash
2042         * app/commands.c(objects_group_callback,objects_ungroup_callback) :
2043         ddisplay_do_update_menu_sensitivity() here as well
2045         * configure.in : make the experimental state of the cairo plug-in
2046         more visible
2047         
2048         * app/dia-props.c(diagram_properties_update_sensitivity) : don't
2049         try to update anything if we can't find an active diagram
2050         Additionally set static dialog pointer to NULL by gtk_widget_destroyed
2051         
2052         * configure.in : another attempt to fix bug #156116. If there is
2053         anyone with autotools knowledge reading this - help appreciated ;-)
2055 2004-10-30  Hans Breuer  <hans@breuer.org>
2057         * objects/makefile.msc objects/UML/Makefile.am
2058           objects/UML/uml.c objects/UML/transition.c 
2059           objects/UML/pixmaps/transition.xpm sheets/uml.sheet.in : 
2060         Patch from Peter Allin adds statechart transitions to the UML sheet -
2061         bug #144956 - modified to not print("%s", NULL) which crashes on
2062         newer glib versions. Also added pixmap/transition.xpm to Makefile.am
2064 2004-10-30  Hans Breuer  <hans@breuer.org>
2066         * doc/sheet.dtd doc/diagram.dtd : the namespace does *not* 
2067         match the website anymore, i.e. sould remain unchanged. 
2068         See below and lib/dia_xml.h for the reasoning
2070         * lib/libdia.def : removed dia_color_selector_get_type
2072         * lib/dia_image.c(dia_image_load) : check for pixbuf warnings
2073         (like broken PNG) and g_warning if appropriate
2075         * app/interface.c : #include "message.h"
2077         * app/diaunitspinner.hc : replaced the superfluous #if-0-juggling,
2078         used #error "Moved to lib/widgets.[hc]" instead (IMO it would be
2079         better to just move diaunitspinner to lib/ instead of polluting
2080         widgets.[hc] even more ;)
2081         * app/makefile.msc lib/libdia.def : updated
2083         * app/filedlg.c : patch from gtk@roboros.com, fixes #156224
2084         * app/app_procs.c : patch from gtk@roboros.com, fixes #156088
2086         * config.h.win32 : #define HAVE_CAIRO to let the Cairo plug-in
2087         do something useful when compiled
2089         * plug-ins/cairo/diacairo.c : added 'PNG with alpha' rendering.
2090         Also some more #ifdefed backends usage.
2092 2004-10-10  Lars Clausen  <lars@raeder.dk>
2094         * lib/widgets.c: Better labels for color selector menu.
2096         * app/dia-props.c (diagram_properties_respond): 
2097         * app/preferences.c (prefs_get_value_from_widget): Don't assume
2098         that a dia color selector is of type DiaColorSelector:)
2100         * lib/widgets.[ch]: Color selector changed to dynamic menu.
2102         * lib/prop_attr.c (colorprop_set_from_widget): Don't assume
2103         DiaColorSelector. 
2105 2004-10-09  Lars Clausen  <lars@raeder.dk>
2107         * lib/diaarrowchooser.c (dia_arrow_preview_init): Slightly wider
2108         arrow preview to avoid long arrow heads flipping.
2110         * lib/arrows.[ch]: Support for getting from name to arrow type,
2111         and for listing all arrow names.
2112         
2113         * lib/widgets.[ch]: Changed arrow selector to use dynamic menu.
2115         * lib/libdia.def: Added new global functions.
2117         * lib/persistence.[ch]: Two of the persistent_list functions to
2118         return whether the item was found in the list.
2120         * app/interface.c (create_sheets): Use DiaDynamicMenu to handle
2121         the growing number of sheets.
2123         * lib/widgets.[ch]: Add DiaDynamicMenu as a generalization of the
2124         font menu.
2126 2004-10-05  Lars Clausen  <lars@raeder.dk>
2128         * objects/UML/association.c: Patch from Harvey Thompson
2129         <harveyandsu@yahoo.com>:  Better placement of association texts.
2131 2004-10-03  Lars Clausen  <lars@raeder.dk>
2133         * lib/widgets.c (dia_font_selector_add_menu_item): Make font menu
2134         use the fonts in question.  Can't set tooltips with the name since
2135         lib objects don't know the tool_tips thing, which is rather
2136         app-related.
2138 2004-09-19  Hans Breuer  <hans@breuer.org>
2140         * plug-ins/xslt/*.xsl : s/apply-templates match/apply-templates select/
2141         fixes bug #148278, carlosrp@idea.com.py (Carlos Ra�l Perasso)
2143 2004-09-19  Hans Breuer  <hans@breuer.org>
2145         * dia.desktop.in : string changes as proposed in bug #151822
2146         
2147         * lib/Makefile.am : remove -module from libdia_la_LDFLAGS,
2148         appearts not to be needed on Linux and breaks the build 
2149         on OSX. Fixes bug #152970
2150         
2151 2004-09-18  Lars Clausen  <lars@raeder.dk>
2153         * app/commands.c (view_show_all_callback): Add a bit of border
2154         around Ctrl-E'd diagram, for easier select and better view of edges.
2156 2004-09-19  Hans Breuer  <hans@breuer.org>
2158         * app/Makefile.am : trying to fix the fix from 2004-02-15
2159         Overwriting AM_LDFLAGS still gave a automake warning and it 
2160         also appeard to break linking against gtklibs in a differnt 
2161         prefix. Use dia_LDFLAGS instead.
2163         * plug-ins/svg/svg-import.c : initialize 'end' before usage
2164         patch from dcbw@redhat.com (Dan Williams), fixes bug #150548
2165         
2166         * lib/diarenderer.c : don't try to draw lines which are so much 
2167         degenerated that their point count became negative, fixes bug #148139
2168         
2169         * lib/font.c(layout_cache_equals) : don't crash on nonexisting 
2170         strings (NULL from g_strdup()) 
2172 2004-09-10  Steffen Macke <sdteffen@web.de>
2174         * lib/libdia.def: added color_new_rgb(), focus_previous(),focus_next(),
2175         give_focus(),give_focus_to_object(),remove_focus(),reset_foci()
2176         * app/create_object.c:
2177         * app/diaunitspinner.c:
2178         * app/disp_callbacks.c:
2179         * app/makefile.msc:
2180         * app/modify_tool.c:
2181         * lib/prop_geomtypes.c:
2182         * lib/prop_geomtypes.h: made compile with msvc
2184 2004-09-10  Lars Clausen  <lars@raeder.dk>
2186         * lib/widgets.c: Insulate conversion from outside API by adding
2187         internal function to set value.  Adjustment not appropriate for
2188         units yet.
2190         * lib/prop_geomtypes.c (lengthprop_get_widget): Remove debug info
2192 2004-09-07  Lars Clausen  <lars@raeder.dk>
2194         * app/diapagelayout.c: Include from widgets.c rather than
2195         diaunitspinner.
2197 2004-09-03  Lars Clausen  <lars@raeder.dk>
2199         * objects/standard/box.c: Use PROP_TYPE_LENGTH for corner_radius
2200         as unit-based property testbed.
2202         * lib/prop_geomtypes.c (lengthprop_reset_widget): Implement length
2203         and fontsize widgets. 
2205         * app/Makefile.am (dia_core_files):
2206         * app/diaunitspinner.h: 
2207         * app/diaunitspinner.c: 
2208         * lib/widgets.h: 
2209         * lib/widgets.c (dia_unit_spinner_update): Move diaunitspinner to
2210         lib/widgets.[ch], as it's used in the properties code now.
2212 2004-08-31  Steffen Macke <sdteffen@web.de>
2214         * doc/en/usage-objects-basic.xml: Mentioning supported image formats.
2216 2004-08-30  Lars Clausen  <lars@raeder.dk>
2218         * app/textedit.c: 
2219         * app/diagram.c (diagram_remove_all_selected): Remove debugging
2220         information. 
2222         * lib/color.[ch]: 
2223         * app/undo.c: 
2224         * app/disp_callbacks.c: 
2225         * app/Makefile.am: 
2226         * app/create_object.c: 
2227         * app/textedit.[ch]: 
2228         * app/modify_tool.c: 
2229         * app/diagram.c: 
2230         * lib/text.c: 
2231         * lib/focus.[ch]: Change in focus mechanism to allow highlight of
2232         current input object, multiple inputs per object, and tabbing
2233         between objects.
2235 2004-08-28  Steffen Macke <sdteffen@web.de>
2237         * makefile.msc: added bs to ALL_LINGUAS; adjusted .mo file creation to
2238         allow separate installer component "Translations"
2240 2004-08-27  Akagic Amila  <bono@linux.org.ba>
2242         * configure.in: Added 'bs' to ALL_LINGUAS.
2244 2004-08-26  Steffen Macke <sdteffen@web.de>
2246         * app/makefile.msc: using /subsystem:windows again
2247         * makefile.msc: updated ALL_LINGUAS
2249 2004-08-21  Kjartan Maraas  <kmaraas@gnome.org>
2251         * configure.in: Add «nb» to ALL_LINGUAS.
2253 2004-08-21  Steffen Macke <sdteffen@web.de>
2255         * plug-ins/dxf/dxf-export.c: Patch from 
2256         Takeshi Hamasaki <hma@syd.odn.ne.jp>, fixes text alignment
2258 2004-08-17  Lars Clausen  <lars@raeder.dk>
2260         * config.h.win32: 
2261         * dia.spec (Release): 
2262         * doc/pl/dia.xml: 
2263         * doc/en/dia.xml: 
2264         * NEWS: 
2265         * configure.in: 
2267 2004-08-13  Ankit Patel <ankit@redhat.com>
2269         * configure.in: Added "gu" in ALL_LINGUAS.
2271 2004-08-07  Lars Clausen  <lars@raeder.dk>
2273         * configure.in:
2274         * config.h.win32: 
2275         * doc/pl/dia.xml: 
2276         * doc/en/dia.xml: 
2277         * dia.spec (Release): 
2278         * NEWS: New release 0.94-pre6
2280 2004-08-07  Lars Clausen  <lars@raeder.dk>
2282         * app/highlight.c (highlight_reset_objects): Unhighlight inside
2283         groups as well.
2285         * app/load_save.c: 
2286         * plug-ins/shape/shape-export.c: String capitalization fix from
2287         Alan Horkan <horkana@tcd.ie>
2289         * objects/UML/class.c (umlclass_show_comments_callback): Make UML
2290         Class object menu kinda work, rather than blow up.  Doesn't do a
2291         proper undoable change yet.
2293 2004-08-06  Lars Clausen  <lars@raeder.dk>
2295         * app/filedlg.c (file_save_as_callback): Don't remove related
2296         dialogs from the NULL diagram.
2298 2004-08-02  Lars Clausen  <lars@raeder.dk>
2300         * config.h.win32: 
2301         * doc/pl/dia.xml: 
2302         * doc/en/dia.xml: 
2303         * dia.spec (Release): 
2304         * NEWS: Pre5 with leak fix.
2306         * lib/font.c (dia_font_build_layout): Don't try to save an
2307         allocation of LayoutCacheItem if it breaks layout cache hash.
2308         Also make hash function correct, remove explicit height entry
2309         (it's in pfd), and make sure things are correctly unreffed.
2310         Finally fixes #148141.
2312         * lib/text.c (text_set_attributes, text_set_font): Safely unref
2313         when changing font, and actually set the new font in
2314         text_set_font(!).
2315         (text_get_attributes): Ref copied font.
2317 2004-08-01  Lars Clausen  <lars@raeder.dk>
2319         * NEWS: 
2320         * configure.in: 
2321         * dia.spec (Release): 
2322         * config.h.win32: 
2323         * doc/pl/dia.xml: 
2324         * doc/en/dia.xml: Prerelease 4.
2326         * lib/font.c (dia_font_build_layout): Better comparision and
2327         freeing of font cache.
2329 2004-07-31  Lars Clausen  <lars@raeder.dk>
2331         * lib/font.c (dia_font_build_layout): Faster update to avoid
2332         memory leaks.
2334         * app/app_procs.c: Fix from Tom Parker <palfrey@bits.bris.ac.uk>:
2335         Correctly initialize export filter variable.
2337 2004-07-25  Lars Clausen  <lars@raeder.dk>
2339         * dia.spec (Release): 
2340         * configure.in: 
2341         * NEWS: 
2342         * config.h.win32: 
2343         * doc/en/dia.xml: 
2344         * doc/pl/dia.xml: Pre3 coming out.
2346         * lib/diarenderer.c (draw_polygon): 
2347         * plug-ins/dxf/dxf-export.c (export_dxf): Two fixes by Takeshi
2348         Hamasaki <hma@syd.odn.ne.jp>: Correct header to be a 0 (zero)
2349         rather than O (letter), and assert num_points > 1 rather than the
2350         other way around.
2352         * app/recent_files.c: 
2353         * app/filedlg.c: 
2354         * app/diagram.c: 
2355         * app/app_procs.c: Patch from Vitaly Lipatov <lav@altlinux.ru>:
2356         Make filenames conform to filesystem encoding.
2358         * RDP/.cvsignore: Added standard ignore.
2359         
2360         * shapes/network/Makefile.am (SHAPES): Use PNG instead of XPM for
2361         last entry patch-panel, too.
2363         * app/*.png:
2364         * shapes/Circuit/*.png:
2365         * shapes/Civil/*.png:
2366         * shapes/Contact/*.png:
2367         * shapes/Electric/*.png:
2368         * shapes/MSE/*.png:
2369         * shapes/Pneumatic/*.png:
2370         * shapes/SDL/*.png:
2371         * shapes/flowchart/*.png:
2372         * shapes/jigsaw/*.png:
2373         * shapes/network/*.png:
2374         * shapes/sybase/*.png:
2375         * samples/dia*.png:
2376         * dia_gnome_icon_large.png:
2377         * doc/pl/graphics/*.png: Set -kb for PNGs.
2378         
2379         * sheets/{ER,GRAFCET,Istar,Jackson,KAOS}: Added .png files.
2381 2004-07-22  Lars Clausen  <lars@raeder.dk>
2383         * NEWS: 
2384         * config.h.win32: 
2385         * doc/en/dia.xml: 
2386         * doc/pl/dia.xml: 
2387         * dia.spec (Release): 
2388         * configure.in: Update to version 0.94-pre2.
2390         * app/load_save.c (diagram_data_write_doc): Use new namespace
2391         here, too.
2393         * lib/object.h (OBJECT_COMMON_PROPERTIES): Remove 'Dia' from
2394         hidden objects properties.
2396         * objects/standard/line.c: Remove halffinished line gap box from
2397         properties list.
2399         * app/paginate_psprint.c: 
2400         * app/filedlg.c: Patch from kimmidi@novell.com (Kiran Kumar
2401         Immidi): Close export and print dialog with diagram as well.
2402         (#129520)
2403         
2404         * lib/diaarrowchooser.[ch]: Patch from pborelli@katamail.com (paolo
2405         borelli):  Remove deprecated stuff (#137693)
2407         * app/dia-props.c (create_diagram_properties_dialog): Patch from
2408         kimmidi@novell.com (Kiran Kumar Immidi):  Close properties dialog
2409         on destroy.
2411 2004-07-21  Ray Strode  <rstrode@redhat.com>
2413         * dia/dia.desktop.in: Add MimeType line to desktop file
2414         new mime sytem.
2416 2004-07-18  Hans Breuer  <hans@breuer.org>
2418         * shapes/(Circuit|Contatct|MSE|network|Pneumatic|SDL|sybase)/Makefile.am 
2419           sheets/UML/*.png : icons in png format
2420         Partial fixup of stuff broken with the following comment:
2421         "7 days : xpm->png, namespace fix, first rotation bits."
2423         * app/load_save.c(read_objects) : don't add objects to the layer.
2424         This function is called recursively and only the topmost objects
2425         belong in the layers object list. Fixes bug #145417 and is the
2426         the real fix for bug #142480
2427         
2428         * app/app_procs.c : make the --size hack even uglier, but work again
2429         
2430         * lib/dia_dirs.c(dia_get_absolute_filename) : must not free()
2431         but g_free() what is returned by g_build_filename()
2432         
2433         * objects/custom/custom_object.c(custom_destroy) : handle all enum
2434         values in switch to get rid of the warning
2435         
2436         * objects/custom/shape_info.c : use g_ascii_strtod(), get rid 
2437         of setlocale()/strtod()
2438         * lib/dia_svg.c : dito
2439         * lib/dia_xml.c : almost
2441         * plug-ins/python/group_props.py : use the string representation of 
2442         value to ensure "unique values". If the strings would not be different
2443         the user cann't see the difference either
2445 2004-07-17  Lars Clausen  <lars@raeder.dk>
2447         * lib/persistence.h: Have "void" in prototypes (#142663)
2449         * lib/widgets.c (dia_font_selector_init): Better string handling
2450         (#142663) 
2452         * lib/persistence.c (persistence_save_type): Small fixes (#142663)
2454         * objects/standard/image.c (image_load): Use path of diagram
2455         rather than running directory as base for image file place.
2457         * doc/{diagram,sheet}.dtd: Move DTD namespace to new site, and
2458         syntactic fixes. 
2459         
2460         * app/disp_callbacks.c (ddisplay_canvas_events): Patch from
2461         Ambrose Li <a.c.li@ieee.org>:  Better IM context handling.
2463         * Re-added new sample diagrams binarily.
2465 2004-07-17 Sagar Rastogi <rastogi@students.iiit.net>
2467         * app/disp_callbacks.c: Fixed #144962 (also in KNOWN_BUGS),
2468         Disabled keyboard accels when dragging an object.       
2470 2004-07-14  Lars Clausen  <lars@raeder.dk>
2472         * app/grid.c (snap_to_grid): Use diagrams grid setting to
2473         determine hex grid snap.
2475         * doc/pl/Makefile.am: Avoid error based on backslash in comment.
2476         
2477         * app/interface.h: Avoid multiply defined symbols (#147396)
2479 2004-07-10  Lars Clausen  <lars@raeder.dk>
2481         * app/sheets_dialog_callbacks.c (write_user_sheet): 
2482         * lib/sheet.c (load_register_sheet): Don't introduce double
2483         slashes in namespace.
2485         * lib/dia_xml.h (DIA_XML_NAME_SPACE_BASE): Keep consistent with
2486         old diagrams, or XSLT will barf all over.
2487         
2488         * shapes/RDP/place.shape: 
2489         * shapes/RDP/transition.shape: 
2490         * shapes/RDP/Makefile.am: Added .png entries to SHAPES and changed
2491         shapes to use those.
2493 2004-07-07  Lars Clausen <lars@raeder.dk>
2495         * config.h.win32: 
2496         * doc/{en,pl}/dia.xml: 
2497         * dia.spec: 
2498         * configure.in: 
2499         * NEWS: First prerelease of version 0.94.  Now with release
2500         versions in a branch and main devel in the trunk.
2502 2004-07-05  Hans Breuer  <hans@breuer.org>
2504         * */*.[hc] */*/*.c : a bunch of changes to make Dia compile with
2505         -std=c89. Mostly //-comments and M_PI -> G_PI
2506         [Istar, Jackson, KAOS were removed from build cause they
2507         simply have *too* much C++ comments ;]
2508         * object/UML/association.c : use g_strdup() not plain strdup()
2509         * app/paginate_psprint.c : avoid storage size of `pipe_action' 
2510         isn't known with more portable signal code
2511         
2512         * app/app_procs.c : don't call gtk_init() if just --version
2513         is requested (bug #144321, Vladimir Kondratiev)
2514         
2515         * lib/prop_attr.c(fontprop_set_from_offset) : only unref 
2516         DiaFont* if not NULL
2517         * objects/UML/class.c : moved fill_in_fontdata() to 
2518         umlclass_load() to avoid such trouble, though unsure if
2519         this really is an improvement...
2520         
2521         * shapes/network/makefile.am : patch-panel added here too
2523 2004-07-04  Hans Breuer  <hans@breuer.org>
2525         * sheets/network.sheet.in shapes/network/patch-panel.xpm
2526           shapes/network/patch-panel.xpm : added 24-Port-Patch-Panel
2527         fixes bug #136629, James McDonald
2529 2004-07-04  Hans Breuer  <hans@breuer.org>
2531         * lib/persistence.c app/load_save.c app/sheet_dialog_callbacks.c
2532           lib/object_defaults.c : revert changing of Dia's XML namespace
2533         * lib/dia_xml.h : #define DIA_XML_NAME_SPACE_BASE with a comment
2534         about its purpose and relation to real world urls.
2536         * lib/plug-ins.h : increment DIA_PLUGIN_API_VERSION and 
2537         added comment about when to do so
2538         [Should have been long time ago and probably multiple times
2539         to avoid crashing on older plug-ins]
2540         * RELEASE-PROCESS : mention DIA_PLUGIN_API_VERSION
2541         * plug-ins/xslt/xslt.c : use DIA_PLUGIN_CHECK_INIT
2543         * lib/object.c objects/UML/class.c : there are still compilers not 
2544         supporting C99 and other GCCISMs like allocating dynamic sized arrays 
2545         on the stack
2546         * objects/UML/class.h : there is a differnce between a list pointer
2547         and a list pointer pointer. We and GLib want the former.
2549         * plug-ins/pixbuf/pixbuf.c : don't use app_is_interactive () to detect
2550         if Gtk is initialized. Using gdk_display_get_default () avoids the
2551         app/* dependency and is also closer to the requirements of the
2552         plug-ins working.
2554         * plug-ins/cairo/diacairo.c : initialize "unique name" field. Also
2555         some #ifdefed support for Cairo backends not public available yet.
2557         * plug-ins/wmf/wmf.cpp : finally do extended linestyles if the
2558         windoze platform supports them. This should fix bug #109818, at
2559         least for the majority running NT or above ...
2560         * plug-ins/wmf/wmf_gdi.[hc] : portability stuff for the above
2562         * objects/makefile.msc : build Istar, Jackson and Kaos
2564         * objects/UML/class.c(umlclass_load) : don't wrap by default to 
2565         keep old diagrams as they were - instead of this nice new effect ;-)
2566         Also make "wrap_operations" PROP_TYPE_BOOL in PropDescriptions
2568         * objects/UML/class.c : mark for translation _("Wrap ...
2570         * objects/UML/class.c : more correct types, also some default properties
2571         dialog pages adjustment (triggering a bug in lib/prop_widgets.c ?;)
2573         * objects/UML/activity.c : removed a leftover from the 
2574         use-localization-for-font-substitution-hack
2576         * shapes/ChemEng shapes/Cybernetic shapes/Map/Isometric :
2577         'cvs admin -kb *.png' PNG files should already be *added* as binary,
2578         otherwise they are not readable on line-end-converting-platforms
2580         * plug-ins/python/use g_new0(Dia<Im|Ex>portFiler), avoids crashing 
2581         filter_get_by_name()
2583         * plug-ins/python/pydia-property.c : some more g_warnings for
2584         not implemented conversions
2586         * plug-ins/python/group_props.py : ensure unique property values
2587         at the right place. Now something like :
2588         - load an old UML class diagram
2589         - change one of the classes to wrap operations
2590         - select all classes (/Select/Same Type)
2591         - /Dialogs/Group Properties : check wrap_operations, select '1'
2592         - Ok, works like a charm :-)
2594 2004-07-04  Lars Clausen  <lars@raeder.dk>
2596         * lib/diagdkrenderer.c (draw_string): Don't unref NULL
2597         pixbuf. (#145362)
2598         
2599 2004-07-03  Lars Clausen  <lars@raeder.dk>
2601         * app/app_procs.c (do_convert): Two patches from Vitaly Lipatov
2602         <LAV@VL3143.spb.edu>: Fixes console output problems and some
2603         interactiveness problems.
2605 2004-07-02  Lars Clausen  <lars@reader.dk>
2607         * plug-ins/pixbuf/pixbuf.c (dia_plugin_init): Don't load if the
2608         app isn't interactive.
2610 2004-07-01  Lars Clausen  <lars@raeder.dk>
2612         * plug-ins/cairo/diacairo.c: Add init of last field of filter
2613         struct to remove crash.
2615         * sheets/Makefile.am (sheet_in_files): 
2616         * shapes/Makefile.am: 
2617         * sheets/ChemEng.sheet.in: 
2618         * shapes/ChemEng/Makefile.am: 
2619         * configure.in: 
2620         New sheet from "Federico Zenith" <zenith@chemeng.ntnu.no>:
2621         Chemical engineering shapes.
2622         
2623         * app/Makefile.am (run_dia.sh$(EXEEXT)): Changed $* to $@ to allow
2624         multiple arguments when using devel script.
2626         * app/display.c (new_display): 
2627         * app/dia-props.c: 
2628         * lib/diagramdata.c (new_diagram_data): 
2629         * lib/diagramdata.h: 
2630         * app/preferences.h: 
2631         * app/preferences.c: 
2632         * app/grid.c: 
2633         * app/diagram.c: 
2634         * lib/diagramdata.c (new_diagram_data): Patch from Peter Poulsen
2635         <peter_poulsen@stofanet.dk>: Add hexagonal grid!
2637         * HACKING: 
2638         * doc/pl/authors.xml: 
2639         * doc/en/authors.xml: 
2640         * lib/object_defaults.c (dia_object_defaults_save): 
2641         * readme.win32 (BTW): 
2642         * lib/persistence.c (persistence_save): 
2643         * app/load_save.c (diagram_data_write_doc): 
2644         * app/commands.c (help_about_callback): 
2645         * README: Fix links to home page.
2647         * lib/font.c: 
2648         * app/load_save.c (diagram_data_load): 
2649         * lib/prop_text.c (stringprop_load): Avoid NULL strings when
2650         loading, and guard against them when fonting.
2652         * lib/diarenderer.c (draw_rounded_polyline): Patch from
2653         anthonym@overture.com:  Make limited rounding a corner-specific
2654         rendering-only thing.
2656 2004-06-30  Lars Clausen  <lars@raeder.dk>
2658         * lib/font.c (dia_font_build_layout): Return to 0.93.1 font size
2659         adjustment: If you can't fix it, at least don't change it.
2661         * objects/SADT/arrow.c (sadtarrow_draw): Use new rounded arrow
2662         code instead of individual code in here.
2664 2004-06-29  Lars Clausen  <lars@raeder.dk>
2666         * objects/UML/association.c: Patch from Kiran
2667         Kumar Immidi <kimmidi@novell.com>:  Fix bounding box for line end
2668         text. 
2670         * lib/geometry.c: 
2671         * lib/geometry.h: 
2672         * lib/diarenderer.c (draw_rounded_polyline): 
2673         * objects/standard/polyline.c (polyline_draw): 
2674         * objects/standard/zigzagline.c (zigzagline_draw): 
2675         Patch from anthonym@overture.com:  Add rounded polylines.
2677 2004-06-27  Lars Clausen  <lars@raeder.dk>
2679         * lib/font.c (dia_font_new_from_style): Initialize legacy name.
2681         * lib/widgets.c (dia_font_selector_get_family_from_name): Don't
2682         free family list before taking out the pointer we need. Also set
2683         the entry_nr correctly so we get the menu set up right.
2685 2004-06-23  Lars Clausen  <lars@raeder.dk>
2687         * lib/widgets.c (dia_toggle_button_new_with_images): Sink the
2688         images at the right place.
2690         * objects/Istar/actor.c
2691         * objects/Istar/goal.c
2692         * objects/Istar/istar.c
2693         * objects/Istar/istar.h
2694         * objects/Istar/link.c
2695         * objects/Istar/other.c
2696         * objects/Jackson/domain.c
2697         * objects/Jackson/jackson.c
2698         * objects/Jackson/jackson.h
2699         * objects/Jackson/phenomenon.c
2700         * objects/Jackson/requirement.c
2701         * objects/KAOS/goal.c
2702         * objects/KAOS/kaos.c
2703         * objects/KAOS/kaos.h
2704         * objects/KAOS/metaandorrel.c
2705         * objects/KAOS/metabinrel.c
2706         * objects/KAOS/other.c: Patch from Patch from Christophe Ponsard
2707         <cp@cetic.be>: Fix instability issues caused by not returning NULL
2708         in *_move_handle and *_move.  Also improved the headers with
2709         correct (c) information.
2711 2004-06-22  Lars Clausen  <lars@raeder.dk>
2713         * objects/KAOS/goal.c:
2714         * objects/KAOS/other.c:
2715         * objects/Istar/actor.c:
2716         * objects/Istar/goal.c:
2717         * objects/Istar/other.c:
2718         * objects/Jackson/domain.c:
2719         * objects/Jackson/phenomenon.c: Patch from Christophe Ponsard
2720         <cp@cetic.be>: Fix resize issues.
2722         * app/filedlg.c (file_dialog_hide): Patch from Kiran
2723         Kumar Immidi <kimmidi@novell.com>: Check for null when removing
2724         related dialog. #129520.
2726         * app/dia-props.c (diagram_properties_show): Patch from Kiran
2727         Kumar Immidi <kimmidi@novell.com>: Make sure properties dialog is
2728         a child of its diagram. #129520.
2730         * objects/UML/association.c (association_load): Patch from Kiran
2731         Kumar Immidi <kimmidi@novell.com>: Update positions properly for
2732         text placement. #118313.
2734 2004-06-17  Lars Clausen  <lars@raeder.dk>
2736         * objects/KAOS/Makefile.am: Add pixmaps/goal.xpm to EXTRA_DIST
2738         * Makefile.am: Make THANKS only be generated by maintainers.
2740         * doc/pl/Makefile.am: Removed usage+objects+basic.xml from
2741         Makefile, too.
2743         * configure.in: Added three missing Makefiles.
2745         * app/diagram.[ch]: 
2746         * app/filedlg.c:
2747         Patch from shuveb@yahoo.com (Shuveb Hussain): Remove
2748         diagram-related (save) dialog when closing diagram.  To be
2749         extended to other dialogs.
2751         * doc/pl/dia.xml: Removed reference to objects-basic. (#144527)
2753         * samples/Istar.dia:
2754         * samples/Jackson.dia:
2755         * samples/KAOS.dia:
2756         * sheets/Istar.sheet.in:
2757         * sheets/Jackson.sheet.in:
2758         * sheets/KAOS.sheet.in:
2759         * sheets/Istar/*:
2760         * sheets/Jackson/*:
2761         * sheets/KAOS/*:
2762         * objects/Istar/*:
2763         * objects/Jackson/*:
2764         * objects/KAOS/*:
2765         * configure.in: 
2766         * objects/Makefile.am (SUBDIRS): 
2767         * sheets/Makefile.am (SUBDIRS): 
2768         * samples/Makefile.am: Additions from Christophe Ponsard
2769         <cp@cetic.be>: Jackson, I* and KAOS diagram support.  Needs a bit
2770         of hacking still.
2772 2004-06-12  Lars Clausen  <lars@raeder.dk>
2774         * lib/properties.h: 
2775         * lib/prop_geomtypes.[ch]: Preparation for selectable units.
2777         * lib/font.h: Toning down comments a bit:)
2779         * lib/font.c (dia_font_build_layout): Playing around with DPI 
2781         * objects/UML/association.c (association_load): Avoid crashes on
2782         strcmp with NULL.
2784         * objects/UML/association.c: Patch from kimmidi@novell.com:
2785         Improve placement of labels when vertical.  Part fix of #118313
2787         * lib/object.c (dia_object_is_selected): Grouped objects are not
2788         selected, only the group itself.  Thus, don't crash when grouping
2789         beziers. #143681
2791         * objects/UML/association.c: Patch from kimmidi@novell.com:  Agree
2792         on how to represent empty strings.  Fixes #143639.
2794         * lib/object.c (dia_object_is_selected): Added comment answer.
2796 2004-06-12  Hans Breuer  <hans@breuer.org>
2798         * lib/diagramdata.c lib/object.c : deal with grouped objects
2799         not knowing their parent_layer, i.e. avoid crashing in 
2800         dia_object_is_selected() via group_draw() [ Triggered by
2801         playing with the Visio generated svg from bug #143455 ]
2803         * plug-ins/python/diasvg_import.py : started to implement
2804         transformation="translate(...)" and <style/> handling. Also
2805         use some other completely bogus values for em/ex scaling
2806         
2807 2004-06-08  Lars Clausen  <lars@raeder.dk>
2809         * plug-ins/cairo/.cvsignore: CVS-ignore generated makefiles.
2811 2004-06-07  Lars Clausen  <lars@raeder.dk>
2813         * app/layer_dialog.c (layer_dialog_set_diagram): 
2814         * app/display.c: Layer widget crash more properly dealt with in
2815         layer dialog code.
2816         
2817         * app/display.c (ddisplay_flush): Fixed crash when closing:  Layer
2818         widget deselect was called during destroy, but called
2819         ddisplay_flush, leading to a new display timeout after renderer
2820         was dead.
2822         * lib/widgets.c (dia_toggle_button_destroy): 
2823         * app/recent_files.c (recent_file_menuitem_create): 
2824         * lib/persistence.c (persistence_save_list): 
2825         * app/commands.c (edit_delete_callback): 
2826         * lib/object_defaults.c (dia_object_defaults_save): 
2827         * lib/parent.c (parent_list_affected_hierarchy): Killed leaks
2828         (#142669)
2829         
2830         * lib/widgets.c (dia_toggle_button_new_with_images): Remove
2831         debugging info.
2833         * lib/diagramdata.c (new_layer): Initialize connectibility.
2835         * app/display.c (ddisplay_obj_render): 
2836         * app/diagram.c (diagram_find_closest_connectionpoint): Take
2837         connectibility into account.
2839         * app/layer_dialog.h (struct _DiaLayerWidget): 
2840         * app/layer_dialog.c:
2841         Connectible toggle updates, now works fairly well.
2843         * app/select.c (select_transitive_callback): Make sure we're only
2844         selecting in the same layer.
2846 2004-06-04  Lars Clausen  <lars@raeder.dk>
2848         * app/pixmaps/Makefile.am: Also install connectable images.
2849         
2850         * app/layer_dialog.c (dia_layer_update_from_layer): Initially set
2851         layer toggles from layer itself.  Also update diagram correctly
2852         for visibility.  Still need updates for connectivity behaviour.
2854 2004-06-03  Hans Breuer  <hans@breuer.org>
2856         * plug-ins/wpg/wpg.c(draw_image) : take rowstride into account
2858         * lib/diagdkrenderer.c(set_linejoin) : actually set
2859         join_style not cap_style
2860         (set_dashes): with the correct number of dashes
2862 2004-06-03  Lars Clausen  <lars@raeder.dk>
2864         * app/modify_tool.c (click_select_object): 
2865         * lib/text.c (text_set_cursor): 
2866         * app/disp_callbacks.c (ddisplay_canvas_events): Turn off text stuff.
2868 2004-05-31  Hans Breuer  <hans@breuer.org>
2870         * lib/object_defaults.c : don't 'failed to load external 
2871         entity "NULL"' when the defaults file does not exist, 
2872         bug #108764 [again: somehow this got lost]
2874         * app/paginate_gdiprint.cpp : don guess the WMF export 
2875         filter used for printing but find it by unique name.
2876         Also update for export_func renaming
2877         * plug-ins/wmf/wmf.cpp plug-ins/cairo/diacairo.c
2878         provide some unique names
2880         * app/commands.c app/disp_callbacks.c app/paginate_psprint.c 
2881           app/select.c : fix bug #140789 by always checking if there
2882         still is an active diagram before accessing it
2884         * app/defaults.c app/properties.c : user visible string should 
2885         not read DiaObject but stay as "Object defaults/properties"
2887         * app/app_procs.c : reduce the hack to pass --size to the
2888         export via user_data to the only filter supporting it. Other
2889         filters would crash on it or do worse ;(
2891         * plug-ins/wpg/wpg.c : not every 'Object' is a DiaObject ...
2893 2004-05-31  Lars Clausen  <lars@raeder.dk>
2895         * lib/widgets.h: 
2896         * lib/widgets.c: Use GtkType rather than guint for
2897         dia_size_selector_get_type. 
2899 2004-05-29  Lars Clausen  <lars@raeder.dk>
2901         * app/diapsrenderer.c (fill_bezier): Use even-odd winding rule so
2902         that it matches the screen output for selfoverlapping polygons and
2903         beziers. 
2905 2004-05-28  Hans Breuer  <hans@breuer.org>
2907         * app/load_save.c : ignore empty groups on load and don't
2908         write empty groups while saving
2909         * lib/group.h (group_update_data): there is no first object
2910         in empty groups and they probably don't need an update at 
2911         all. Maybe the shold just not exist ?
2913         * plug-ins/cairo/diacairo.c : fixed arc drawing, right aligned
2914         text positioning as well as drawing of images with alpha
2916         * plug-ins/wmf/wmf.cpp : include windows.h if eiher
2917         HAVE_WINDOWS_H or G_OS_WIN32 is defined
2919 2004-05-28  Lars Clausen  <lars@raeder.dk>
2921         * app/pixmaps/Makefile.am (imagedir): 
2922         * app/pixmaps/visible.png:
2923         * app/pixmaps/visible-empty.png: New images for the visibility
2924         button in the layer dialog.
2926         * lib/widgets.c (dia_toggle_button_new_with_images): Remove even
2927         more border around the button.  Still some left when hovering the
2928         mouse or selecting, and the grey background is annoying.
2930         * app/layer_dialog.c (dia_layer_widget_init): Use real buttons for
2931         visibility connector.
2933 2004-05-26  Lars Clausen  <lars@raeder.dk>
2935         * configure.in (DB2MAN): Better check for db2man docbook place.
2936         Need something even better.
2938         * doc/en/Makefile.am (dia.1): Conditional on having DB2MAN.
2940         * lib/widgets.c (dia_toggle_button_new_with_images): Remove
2941         extraeneous borders.
2943         * dia_logo.png:
2944         * dia_gnome_icon.png:
2945         * samples/render-test.dia: Rendering test from Hans.
2947 2004-05-24  Hans Breuer  <hans@breuer.org>
2949         * lib/filter.h : renamed DiaExportFilter::export to
2950         _DiaExportFilter::export_func (should not use c++ 
2951         keywords (g++ specifc ?) in headers. Same for import
2952         out of pure symmetry reasons
2953         * plug-ins/shape/shape-export.c plug-ins/python/diamodule.c
2954           app/diagram.c app/filedlg.c : reflect functions renaming
2956         * plug-ins/wmf/Makefile.am : finally compile the wmf plug-in
2957         under *NIX, too. [If you want something done, do it yourself ;-]
2958         * plug-ins/wmf/wmf_gdi.[hc] : some more stuff to catch up
2959         with wmf.cpp's GDI usage
2960         * plug-ins/wmf/wmf.cpp : compile even without HAVE_WINDOWS_H,
2961         [For the moment it does not much more than compiling, i.e. 
2962         the produced WMF files are invalid, if not created on windoze.]
2964         * configure.in : check for C++ to compile plug-in/wmf
2965         
2966         * objects/GRAFCET/boolequation.c : looks like fixing 
2967         another leak (untested)
2969 2004-05-23  Hans Breuer  <hans@breuer.org>
2971         * acinclude.m4 : another attempt to fix 
2972         bug #142032 (still not sure it's the right one,
2973         but works for me(tm), which the other does not ;)
2974         
2975         * plug-ins/cairo/Makefile.am
2976           plug-ins/Makefile.am 
2977           configure.in : support building the new cairo
2978         plug-in, if given --with-cairo and the cairo
2979         packages are found, see http://cairographics.org
2980         and also http://hans.breuer.org/dia/dia-cairo.htm
2982         * plug-ins/cairo/diacairo.c : make it compile
2983         with DEBUG_CAIRO defined, too.
2985 2004-05-23  Hans Breuer  <hans@breuer.org>
2987         * plug-ins/cairo/Makefile.am : initial attempt
2989         * plug-ins/cairo/diacairo.c : a new exporter based on
2990         Cairo http://cairographics.org rendering api. Currently
2991         it just can export PNG and PS but one day it might get
2992         PDF and more almost for free. [It is not yet included
2993         in the *NIX build system due to lack of auto* magic.]
2995         * plug-ins/pixbuf/pixbuf.c : always register the export
2996         filter part. If the user does not want it it can be 
2997         disabled by File/Plugins or explicit selected the other
2998         one in the Export Formats List
3000 2004-05-23  Hans Breuer  <hans@breuer.org>
3002         * lib/dia_dirs.c : #include "message.h"
3003           lib/widgets.c : #include "persistence.h"
3004           lib/widgets.c(dia_font_selector_init) : still not C99
3005           lib/persitence.h : removed unimplemented prototype
3006           lib/persitence.c(persistence_load_list) : still not C99
3007           app/create_object.c : #include "highlight.h"
3008           app/layer_dialog.c : #include "widgets.h"
3009           app/modify_tool.c : prototype functions before usage
3010           lib/object.c : if there is G_END_DECLS there _must_ be G_BEGIN_DECLS
3011         [otherwise one will have a hard time to make C++ compile ;]
3012           lib/dia_dirs.c : #include "message.h"
3013           lib/font.c : #include <gtk/gtk.h> /* just for gtk_get_default_language() */
3014           lib/
3016         * plug-ins/xfig/xfig-import.c : dont initialize an int with
3017         a string pointer
3019         * lib/dia_image.[hc](dia_image_rgba_data) : make it work
3020         as documented, i.e. _not_ copying. Plugs a memory leak in
3021         lib/dialibartrenderer.c
3023         * lib/diarenderer.c(*_rounded_rect) : renamed parameter rounding
3024         to radius to more of a clue what it is representing
3026         * */makefile.msc lib/libdia.def : updated
3028         ChangeLog : fixed some date copy&paste bug
3030 2004-05-21  Lars Clausen <lars@raeder.dk>
3032         * NEWS: Release tag.
3034         * config.h.win32: Now 0.93+cvs
3036         * RELEASE-PROCESS: Update with new info about release branches.
3037         
3038         * Many files:  Moved devel branch back into main trunk.  Should
3039         have been done in the opposite way, with release in a branch.  
3040         
3041 2004-05-20  Hans Breuer  <hans@breuer.org>
3043         * acinclude.m4 : disable setting of PYTHON_PREFIX
3044         and PYTHON_EXEC_PREFIX from prefix and exec_prefix
3045         as workaround for bug #142032 (the real fix would 
3046         involve some auto* knowledge which I don't have
3047         either;)
3048         
3049         * plug-ins/python/Makefile.am : more python 
3050         plug-ins to be installed (especially svg import,
3051         but also 'simple scale' should be useable 
3052         sometimes)
3053         
3054         * plug-ins/python/scascale.py : update display
3055         after modifying selected objects
3056         
3057         * plug-ins/python/diasvg_import.py : initialize
3058         stroke to none
3059         
3060 2004-05-18  Lars Clausen  <lars@raeder.dk>
3062         * app/diagram_tree.c (select_node): Use
3063         diagram_remove_all_selected to kill selected list.
3065         * lib/font.c: Set language when using a different context.
3067         * plug-ins/svg/svg-import.c: Changed isdigit to g_ascii_isdigit
3068         and removed ctype include (#142661).
3070         * lib/paper.c (get_default_paper): Changed isalnum to
3071         g_ascii_isalnum and removed ctype include. (#142661)
3073         * objects/custom/shape_info.c: 
3074         * lib/dia_svg.c: 
3075         * app/diaunitspinner.c: Removed unrequired ctype.h include. (#142661)
3077 2004-05-17  Hans Breuer  <hans@breuer.org>
3079         * lib/object_defaults.c : don't 'failed to load external 
3080         entity "NULL"' when the defaults file does not exist, 
3081         bug #108764
3083         * lib/widgets.c : fixed possible menu leak
3084         * lib/dialinechooser.c lib/diaarrowchooser.c : finally
3085         avoid finalization of floating references, bug #142307
3087 2004-05-15  Lars Clausen  <lars@raeder.dk>
3089         * plug-ins/xfig/xfig-import.c: Handle default fonts and illegal
3090         fonts better (#138655)
3091         
3092         * doc/pl/Makefile.am (EXTRA_DIST): Also include all xml files here.
3094         * doc/en/Makefile.am (EXTRA_DIST): Including all required files in
3095         dist, xml, dbk and man.  Also the sub-xml files. (#142098)
3097         * Makefile.am (CLEANFILES): 
3098         * sheets/Makefile.am (EXTRA_DIST): Not distributing the
3099         translation-reports, they are generated automagically.  THANKS
3100         file not considered locally generated, so is not locally
3101         cleaned. (#133735) 
3103         * lib/widgets.[ch]: Changing dia_arrow_selector to be a gobject.
3105         * lib/diaarrowchooser.c: 
3106         * lib/prop_attr.c: Fixing naming for arrowselector.
3108         * objects/UML/object.c (objet_type): Oops, little too aggressive
3109         with the DiaObject thing here:)
3111         * objects/custom/shape_info.c (parse_svg_node): Use
3112         g_ascii_isdigit instead of isdigit.
3114         * app/diaunitspinner.c (dia_unit_spinner_update): 
3115         * lib/dia_svg.c (dia_svg_parse_style): Using g_ascii_isspace
3116         instead of isspace avoids char subscript issues (#142467).
3118         * lib/persistence.c (persistence_get_string): Fixed 0/NULL/FALSE
3119         return value conflict.
3121         * app/display.c (ddisplay_update_handler): Fixed 0/FALSE return
3122         value conflict.  Also improved signature. (#142466)
3124         * app/load_save.c (diagram_data_load): Don't overwrite the list in
3125         the layer, but instead free the returned list (#142480)
3127         * app/pixmaps/Makefile.am (IMAGES): Added png's to be installed
3128         for the grid widget.
3130         * doc/en/Makefile.am (dia.1): Make proper rule for making dia.1
3132         * configure.in (DB2MAN): Currently just check for two known
3133         positions for the docbook xsl.  Don't know a generic way to find
3134         this info.  Ought to add an option for it, but then it's really
3135         only required for maintainers, I think.  Maybe.
3137         * app/display.c (update_snap_grid_status): Remove nasty image
3138         toggling code not require for grid toggle button anymore. (#142475)
3140         * app/interface.c (create_display_shell): Use
3141         dia_toggle_button_new_with_images to create grid toggle button.
3142         Much nicer. (#142475)
3144         * app/menus.c (menus_initialize_updatable_items): Free the string
3145         along with the GString. (#142475)
3147         * lib/intl.c (free_alias_table): Free hash table entries in a
3148         proper way, avoiding duplicate frees. (#142475)
3150         * lib/object_defaults.c (_obj_store): Only free layer_name if it's
3151         not put in the hash (avoid reading freed memory). (#142476)
3153         * lib/widgets.c (dia_font_selector_set_styles): Stop leaking
3154         faces. (#142484)
3155         (dia_font_selector_get_family_from_name): Stop leaking
3156         families. (#142482) 
3158 2004-05-14  Lars Clausen  <lars@raeder.dk>
3160         * Transfer of fixes from release branch.  Not the prettiest way to
3161         do it, this should be done during release, not afterwards.
3163         Tomasz Kłoczko <kloczek@pld.org.pl>:
3165         * acinclude.m4: minor fixes (added missing [] quotation).
3167         Lars Clausen  <lars@raeder.dk>:
3169         * app/interface.c (toolbox_delete): 
3170         * app/app_procs.[ch] (app_exit): Stop the delete event if the user
3171         cancels quit due to modified diagrams.
3173         Samúel Jón Gunnarsson  <sammi@techattack.nu>:
3175         * is.po: Added "is" to ALL_LINGUAS.
3177         Lars Clausen  <lars@raeder.dk>:
3179         * dia.spec: Updated as per mail from Zhang Lin-bo <zlb@lsec.cc.ac.cn>
3181         Hans Breuer  <hans@breuer.org>:
3183         * lib/makefile.msc : removed -DGTK_DISABLE_DEPRECATED; the 
3184         burden should be shared and not be win32 only ;) [this time 
3185         build was broken by adding GtkType to widget.h]
3187         * objects/standard/box.c objects/standard/ellipse.c :
3188         for code clarification compare (obj->aspect != FREE_ASPECT)
3189         and not (obj->aspect); no binary effect.
3191         * app/paginate_psprint.c : don't leak printcmd
3193         * objects/standard/box.c objects/standard/ellipse.c : fix gccisms :
3194         standard C requires variables to be declared at the beginning of 
3195         a block, also there is no fabsf() with msvc
3196         
3197         * app/win32print.[ch] : make win32_printer_close() return an
3198         error code, it's used as pclose replacement
3200         Lars Clausen  <lars@raeder.dk>:
3202         * RELEASE-PROCESS: Mention PATCH keyword in release process.
3204 2004-05-06  Lars Clausen  <lars@raeder.dk>
3206         * lib/widgets.[ch]: Utility function to make a widget with two
3207         images (selected and non-selected).
3209         * lib/diagramdata.h: Renamed selectable to connectable.
3210         Selectable will come later.
3212         * configure.in: 
3213         * app/pixmaps/Makefile.am (imagedir): 
3214         * app/pixmaps/connectable.png:
3215         * app/pixmaps/connectable-empty.png: New images for the
3216         selectability widget.  Proper installation, too.
3218         * app/layer_dialog.[ch]: Adding new button showing connectability
3219         status.  Much cleaner way of doing the button, but some problems
3220         with the item getting selected
3222         * lib/widgets.h: Reminder of how to install images for use by
3223         dia_get_image_from_file.
3225 2004-05-05  Lars Clausen  <lars@raeder.dk>
3227         * objects/network/Makefile.am: 
3228         * objects/network/pixmaps/radiocell.xpm: 
3229         * objects/network/pixmaps/basestation.xpm: 
3230         * objects/network/network.c: 
3231         * objects/network/basestation.c: 
3232         * objects/network/radiocell.c: 
3233         Patch from W. Borgert <debacle@debian.org>: Radio cell and base
3234         station objects.
3236         * lib/arrows.[ch]: Patch from Anthony <anthonym@overture.com>:
3237         Backslash arrow head. 
3239         * app/pagesetup.c (pagesetup_respond): Do not free ps twice.
3240         Notify takes care.  Should maybe use that more.
3242         * lib/diagramdata.[ch]: 
3243         * app/filedlg.c (file_export_ok_callback): 
3244         * app/diagram.c (diagram_finalize): DiagramData now a GObject.
3246         * app/dia-props.c (diagram_properties_respond): 
3247         * app/diagram.c (diagram_set_modified): 
3248         * app/undo.c: 
3249         * app/disp_callbacks.c: 
3250         * app/commands.c: 
3251         * app/load_save.c (diagram_save): 
3252         Better handling of undo and modified status -- only diagram
3253         properties and page setup explicitly set modified status, all
3254         other important changes should be done through the undo stack
3255         now.
3257 2004-05-04  Lars Clausen  <lars@raeder.dk>
3259         * app/app_procs.c (app_init): Consistently open a new diagram if
3260         none specified, with standard name Diagram1.dia.
3262         * app/layer_dialog.c: 
3263         * app/diagram.c (diagram_finalize): 
3264         * app/commands.c (dialogs_layers_callback): 
3265         * app/filedlg.c (file_export_ok_callback): 
3266         * app/app_procs.c (app_exit): 
3267         * app/display.c (display_set_active): 
3268         * app/interface.c (dia_dnd_file_drag_data_received): 
3269         * app/recent_files.c: 
3270         Undone attempt at unifying the multi-diagram windows (like
3271         layers).  It broke the layers and didn't make much sense for the
3272         diagram properties dialog anyway.
3274         * lib/group.c: 
3275         * lib/diatypes.h: 
3276         * lib/diagramdata.c: 
3277         * lib/object.h: 
3278         * lib/object.c: Undone attempts at GObject'ifying DiaObject -- too
3279         many subclasses have to be fixed.  Fixed remaining
3280         Object/ObjectType renaming issues.
3282 2004-05-02  Lars Clausen  <lars@raeder.dk>
3284         * lib/object.[ch]: Making DiaObject a GObject.  Now can I avoid
3285           having to make all the children objects conform to
3286           GObject style at once?  Warning!  Does not compile right now.
3288         * many, many files: Rename Object to DiaObject in preparation for
3289           making it a GObject.
3290         
3291         * app/diagram.[ch]: Turn diagram into a real GObject.
3293         * app/pagesetup.c: 
3294         * app/filedlg.c: Correctly ref and unref diagram. 
3296         * lib/diagramdata.h: Starting to turn it into a GObject as well.
3298 2004-05-02  Lars Clausen  <lars@raeder.dk>
3300         * lib/object.[ch]: Starting to convert Object to DiaObject, son of
3301         GObject. 
3303         * app/dia-props.c: Undo the attempt at making it really
3304         multi-diagram, now going for a one-diagram dialog.
3306 2004-04-30  Lars Clausen  <lars@raeder.dk>
3308         * app/undo.c: Undoing broken undo stuff for diagram properties and
3309         page setup.  Shouldn't be mixed into undo at all.
3311         * app/render_gdk.c (draw_pixel_line): Use the dash-setting
3312         function to avoid in particular the grid crawling.
3314         * lib/diagdkrenderer.[ch] (dia_gdk_renderer_set_dashes): Function
3315         to allow aligning dashes, so they don't crawl.
3317 2004-04-28  Lars Clausen  <lars@raeder.dk>
3319         * app/Makefile.am: New files diacanvas.[ch]
3321         * app/interface.c (create_display_shell): Use new diacanvas that
3322         allows placing widgets on canvas, for text edit.
3324         * lib/object.h: 
3325         Early work towards rotation.  No implementation yet.
3327         * app/layer_dialog.c (undo_layer): 
3328         * objects/network/bus.c (bus_create_change): 
3329         * objects/standard/box.c (aspect_create_change): 
3330         * objects/standard/ellipse.c (aspect_create_change): 
3331         Use g_new0 for change struct.
3333         * app/undo.c (diagram_change_apply_or_revert): 
3334         Support for undo of diagram properties and page setup.
3336         * app/disp_callbacks.c (ddisplay_canvas_events): 
3337         * lib/text.h: 
3338         * lib/diagramdata.h: 
3339         * app/modify_tool.c (click_select_object): 
3340         * lib/text.c (text_register_editable): 
3341         Starting work on new text editing model.  Guarded by #ifdef so
3342         far. 
3344 2004-04-07  Lars Clausen  <lars@raeder.dk>
3346         * app/recent_files.c (open_recent_file_callback): 
3347         * app/interface.c (origin_button_press): 
3348         * app/filedlg.c (file_open_ok_callback): 
3349         * app/display.c: 
3350         * app/diagram.[ch]: 
3351         * app/commands.c (dialogs_layers_callback): Using new
3352         diagram_set_current() function to ensure auxilliary windows are
3353         updated. 
3355         * app/layer_dialog.c: Trying to unify with dia-props.  Diagram
3356         menu now borken.  *sniff*
3358         * app/dia-props.c: Diagram properties window attempted
3359         persistentified.  Trying to make more like layer dialog (since it
3360         already changes when the diagram changes), but some things still
3361         borken. 
3363 2004-04-06  Lars Clausen  <lars@raeder.dk>
3365         * lib/dialinechooser.[ch] (dia_line_chooser_set_line_style): 
3366         * lib/attributes.c (attributes_set_default_line_style): 
3367         * app/interface.c (create_lineprops_area): 
3368         Make line style persistent as well.  Added function to directly
3369         set the style and dashlength of a dialinechooser. 
3371 2004-04-03  Lars Clausen  <lars@raeder.dk>
3373         * objects/standard/ellipse.c (ellipse_move_handle, ellipse_copy):
3374         Copy the ellipse extra handle correctly.
3376         * objects/standard/box.c (box_move_handle): Move definitions
3377         according to bug #138925.
3379 2004-04-02  Lars Clausen  <lars@raeder.dk>
3381         * app/recent_files.c: Use absolute name for recent files list.
3383         * lib/attributes.c: Set start and end arrow types, correctly.
3385         * lib/widgets.c (dia_arrow_selector_set_arrow): Use new function
3386         to get arrow index.
3388         * lib/diaarrowchooser.[ch]: Support for setting arrow info.
3390         * app/interface.c (create_lineprops_area): Set persistently stored
3391         arrow info.
3393         * lib/arrows.[ch]: New function to get arrow index (in arrow_types)
3394         from arrow type.
3396         * lib/dia_dirs.c: dia_get_absolute_path now creates a canonical
3397         path (i.e. without '.' or '..').  Not tuned for Win32 yet.
3399         * plug-ins/xfig/xfig-import.c: Redone ordering of import to comply
3400         with what xfig does.  Text now converted from latin-1 to utf-8
3401         (latin-1, since that's what xfig seems to use.  Would like to see
3402         examples of non-latin-1 figs).  String case problems fixed.
3404 2004-04-01  Lars Clausen  <lars@raeder.dk>
3406         * lib/attributes.c: 
3407         * app/interface.c: Default arrows now stored persistently, too.
3409         * lib/arrows.[ch]: New function to get arrow type from name.
3411         * app/color_area.c (color_area_create): 
3412         * lib/attributes.c: 
3413         * app/linewidth_area.c: Also persistent colors and line width.
3414         That was easy.  Arrows and line style will take a bit more work,
3415         but not much.
3417 2004-04-01  Lars Clausen  <lars@raeder.dk>
3419         * app/preferences.c:   All preferences are now
3420         handled by persistence, old prefs load and store code is gone.
3422         * lib/persistence.[ch]: Added string and color persistents.  This is
3423         a different string from the one used in the printer dialog, that
3424         one has a GtkEntry attached -- may want to make that one an
3425         encapsulation of this one or something.
3427 2004-03-31  Lars Clausen  <lars@raeder.dk>
3429         * app/app_procs.c: Do persistence before prefs.  Prefs are to be
3430         phased out anyway.
3431         
3432         * lib/persistence.[ch]: 
3433         * app/preferences.c: Adding persistence for integers, reals,
3434         booleans.  Fixed stupid list bug.  Test persistence for prefs.
3436 2004-03-30  Lars Clausen  <lars@raeder.dk>
3438         * app/recent_files.c: 
3439         Debugging of deallocation.
3440         
3441         * lib/widgets.c: 
3442         Font menu now uses persistence.  Ordering needs fixing, or it must
3443         be sorted.
3445         * lib/libdia.def: 
3446         * lib/Makefile.am (libdia_la_SOURCES): 
3447         * app/Makefile.am (dia_core_files): 
3448         * app/persistence.[ch]: 
3449         * lib/persistence.[ch]: Moved to lib as widgets need it.  Also a
3450         number of fixes, including multiple entries now being read
3451         properly.  Still some oddity about the persistent list having the
3452         role as first entry (which makes the font menu crash after a few
3453         iterations). 
3455 2004-03-26  Lars Clausen  <lars@raeder.dk>
3457         * app/persistence.c:
3458         * app/recent_files.[ch]: Redoing the recent-files list using
3459         persistence, reducing code by about 50%.  Still a problem when
3460         selecting an item from the menu -- possibly it doesn't like the
3461         menu being destroyed while in the callback?
3463 2004-03-25  Lars Clausen  <lars@raeder.dk>
3465         * app/persistence.c (persistence_load_string): Missing semicolon?!?
3467 2004-03-24  Lars Clausen  <lars@raeder.dk>
3469         * RELEASE-PROCESS: 
3471         * app/persistence.[ch]: 
3472         * app/paginate_psprint.c (diagram_print_ps): New type of data can
3473         be stored persistently:  Strings.  Only the printer command/file
3474         go in here now, but things like creator, organization, diagram
3475         comments etc could also be handled this way.
3477         * objects/standard/beziergon.c (beziergon_draw): Avoid control
3478         lines when the object is not selected.
3480 2004-03-23  Lars Clausen  <lars@raeder.dk>
3482         * lib/connectionpoint.h: 
3483         * app/load_save.c: Allow connection points to have names, and
3484         handle that in load/store.
3486         * lib/dialibartrenderer.c: Better highlighting for text.
3488         * lib/diagdkrenderer.h (struct _DiaGdkRenderer): 
3489         * lib/diagdkrenderer.c: Better highlighting for all, using same
3490         principles as libart highlighter.
3492 2004-03-22  Lars Clausen  <lars@raeder.dk>
3494         * lib/dialibartrenderer.[ch]: 
3495         * lib/diagdkrenderer.c: 
3496         * lib/object.h: 
3497         * app/object_ops.c:
3498         * app/diagram.[ch]:
3499         * app/display.[ch]:
3500         * app/Makefile.am: 
3501         * app/modify_tool.c: 
3502         * app/create_object.c: 
3503         * app/highlight.[ch]: 
3504         Added simple object highlighting.  In GDK rendering, highlights
3505         the bbox, in libart highlights the outline of the object (except
3506         for texts).
3508 2004-03-22  Lars Clausen  <lars@raeder.dk>
3510         * RELEASE-PROCESS: Added info on how to do a branch for
3511         development during release process.
3513 2004-03-20  Lars Clausen  <lars@raeder.dk>
3515         * RELEASE-PROCESS: Mention PATCH keyword in release process.
3517 2004-03-19  Lars Clausen  <lars@raeder.dk>
3519         * xmldocs.make: Fixed apparent uninstall error.
3521         * config.h.win32: 
3522         * doc/en/dia-manual.xml: 
3523         * doc/pl/dia-manual.xml: 
3524         * dia.spec: 
3525         * configure.in: 
3526         * NEWS: Version 0.93-pre1.
3528         * lib/dialinechooser.[ch]: Patch from pborelli@katamail.com (paolo
3529         borelli):  Remove some deprecated stuff.
3531 2004-03-18  Lars Clausen  <lars@raeder.dk>
3533         * Makefile.am: Try better uninstall thing for scrollkeeper.
3535         * objects/ER/entity.c: 
3536         * lib/arrows.[ch]: Patch from Georg Lothar Thimm
3537         <MGEORG@ntu.edu.sg>: Adds new ER arrows 1 or many, 0 or many, 0 or
3538         1, 1 exactly, as well as associative ER entities.
3540 2004-03-17  Lars Clausen  <lars@raeder.dk>
3542         * Makefile.am: Make distcheck not complain about scrollkeeper
3543         problems (as per advice from James Henstridge).
3545         * doc/pl/*.{xml,sgml}: Converted SGML manuals to XML to get better
3546         standard installation.
3548         * objects/standard/ellipse.c: Better strings for object menu.
3550         * app/sheets_dialog_callbacks.c: Fixed crashes from broken caching
3551         of dialogs (shame on you, glade!)
3553         * objects/custom/custom_object.c (custom_setup_properties):
3554         Removed debugging output
3556         * app/paginate_psprint.c (diagram_print_ps): Slightly more
3557         readable printer error messages.
3559         * xmldocs.make: 
3560         * omf.make: 
3561         * doc/en/Makefile.am: 
3562         * doc/pl/Makefile.am: 
3563         New more standard way to install the XML-based manuals.  
3565 2004-03-15  Lars Clausen  <lars@raeder.dk>
3567         * objects/standard/box.c (box_move_handle): More intuitive fixed
3568         aspect behaviour.
3570         * objects/standard/ellipse.c: 
3571         * objects/standard/box.c: 
3573         * lib/widgets.[ch]:
3574         * app/layer_dialog.[ch]:
3575         Patch from Steve Langasek <vorlon@debian.org>:
3576         Fixes startup crash on Alpha (bug #137169)
3577         
3578         * objects/standard/box.c: Aspect fixing like ellipses.
3580         * app/Makefile.am (dia_core_files): Include dia-app-icons.h
3582         * lib/pixmaps/Makefile.am (imagedir): Better Makefile.am for
3583         pixmaps, now can uninstall properly.
3585         * objects/standard/ellipse.c: Patch from dooms@info.ucl.ac.be:
3586         Fixed and circle aspect ratios for ellipses.  Bug #137156, #87966,
3587         #93940. 
3588         Added object menu access.
3590 2004-03-07  Hans Breuer  <hans@breuer.org>
3592         * lib/diaarrowchooser.c lib/dialinechooser.c : #undef
3593         GTK_DISABLE_DEPRECATED (I'd rather like if these widgets
3594         would not use deprecated apis, but it's much simpler this way)
3596         * lib/makefile.msc : build the above new widgets and render_pixmap
3597         * lib/libdia.def app/dia.def app/makefile.msc : updated
3599         * app/disp_callbacks.c : fix gccisms (without being able to make much sense of 
3600         what I saw, i.e. how big is an empty array supposed to be ? ;-). 
3601         Previously it gave :
3602         disp_callbacks.c(188) : error C2059: syntax error : '}'
3603         disp_callbacks.c(191) : warning C4034: sizeof returns 0
3605         * app/interface.c : #include "dialinechooser.h"
3607         * lib/diagdkrender.c : make the !HAVE_FREETYPE case compile again
3608         [one more reason not to use it here : it's quite slow compared to
3609          the native win32 font renderer ;]
3611         * app/app_procs.c app/filedlg.c : gtk_widget_destroy does not take
3612         a GtkDialog*, removed unneeded cast
3614         * app/render_eps.c : avoid assignment warning for void* user_data
3615         not being an int 
3617 2004-03-06  Steffen Macke sdteffen@web.de>
3619         * shapes/Map/Isometric/Makefile.am: added Makfile for Isometric
3620         shapes
3622 2004-03-06  Lars Clausen  <lars@raeder.dk>
3624         * lib/arrows.h (DEFAULT_ARROW_SIZE): Downed default arrow size to
3625         0.5, as per poll.
3627         * lib/font.c: Simple cleanup system for layout cache removes any
3628         layout that hasn't been used for 10 minutes, but only during idle
3629         time. 
3631 2004-03-05  Lars Clausen  <lars@raeder.dk>
3633         * sheets/Electric.sheet.in: Added patch from padro@lsi.upc.es
3634         (lluis padro) (#130887): Extended Electric shapes with vertical
3635         versions. 
3637         * sheets/Cybernetics.sheet.in: Normalize shape descriptions (never
3638         start with "Create a" or "A", always capitalize first word).
3640         * objects/standard/ellipse.c: Patch from Grégoire Dooms
3641         <dooms@info.ucl.ac.be>: Add extra connection point in center of
3642         ellipse.  Additionally added a handle in the center, and resize is
3643         now around the center.
3645         * configure.in: 
3646         * sheets/Makefile.am (SUBDIRS): 
3647         * sheets/IsometricMap.sheet.in: 
3648         * shapes/Map/Isometric/*
3649         * shapes/Makefile.am (SUBDIRS): Added Isometric shapes.
3651 2004-03-04  Lars Clausen  <lars@raeder.dk>
3653         * lib/Makefile.am: 
3654         * lib/pixmaps/Makefile.am: 
3655         * configure.in: 
3656         Better installation handling of pixmaps.
3657         
3658         * lib/diagdkrenderer.c: 
3659         * lib/diagtkfontsel.h (struct _DiaGtkFontSelectionClass): 
3660         * lib/diagtkfontsel.c (dia_gtk_font_selection_show_available_fonts): 
3661         Constness fixes.
3663 2004-03-03  Lars Clausen  <lars@raeder.dk>
3665         * lib/diagtkfontsel.h (struct _DiaGtkFontSelection): 
3666         * lib/diagdkrenderer.c: 
3667         * lib/diasvgrenderer.c:
3668         * lib/dialibartrenderer.c:
3669         * lib/diainteractiverenderer.c: 
3670         * lib/prop_text.c (multistringprop_handle_key): 
3671         * lib/dia_dirs.c: 
3672         * lib/dia_image.c (dia_image_rgba_data): 
3673         * lib/widgets.c: 
3674         * lib/diagramdata.c (layer_set_object_list): 
3675         * lib/font.h: 
3676         * lib/font.c: 
3677         Getting rid of compile warnings.
3679         * lib/widgets.c: Handle destroy properly, i.e. unref the two extra
3680         images.  Also remove unused decls.
3682 2004-03-02  Lars Clausen  <lars@raeder.dk>
3684         * lib/widgets.h: 
3685         * lib/widgets.c (dia_size_selector_init): Add images to the size
3686         selector chain widget.  Also new function to load installed images
3687         from files (better than from included XPM, IMHO).
3689 2004-03-02  Lars Clausen  <lars@raeder.dk>
3691         * lib/libdia.def: 
3692         * lib/pixmaps/[un]broken-chain.xpm: Icons stolen from GIMP for the
3693         size selector.
3695         * lib/Makefile.am: 
3696         * lib/widgets.c (dia_size_selector_init): Work
3697         on getting proper icon onto the size selector.  Need simple image
3698         load mechanism in utils.
3700         * lib/text.c: 
3701         * app/display.[ch]:
3702         * app/disp_callbacks.c: Patch from kou@cozmixng.org: Show preedit
3703         strings, handle utf8 strlen properly.  Bug #135930.
3705 2004-03-01  Lars Clausen  <lars@raeder.dk>
3707         * shapes/Cybernetics/*:
3708         * sheets/Cybernetics.sheet.in:
3709         * sheets/Makefile.am:
3710         * shapes/Makefile.am: 
3711         * configure.in: Patch from charly.meyer@t-online.de (Thorsten
3712         Roggendorf): Cybernetic shapes (#95553).
3714 2004-03-01  Lars Clausen  <lars@raeder.dk>
3716         * app/Makefile.am: Fixed $(EXEEXT) warning from automake.
3718         * lib/diatypes.h: New type DiaSizeSelector.
3720         * lib/widgets.[ch]: New size selector widgets that selects two
3721         values (width and height, nominally) optionally linked to keep
3722         aspect ratio.
3724 2004-03-01  Hubert Figuiere  <hfiguiere@teaser.fr>
3726         * plug-ins/svg/render_svg.c (new_svg_renderer): Add DTD declaration
3727         in front of file. Bug #128600.
3729         * app/Makefile.am:
3730         * app/interface.h:
3731         * app/lineprops_area.[ch]:
3732         * lib/Makefile.am:
3733         * lib/dialinechooser.[ch]:
3734         * lib/widgets.c (dia_line_style_selector_init): use line preview 
3735         instead of text labels. This involve moving away line_chooser to lib
3736         from app.
3738         * lib/diaarrowchooser.[ch] (close_and_hide): Make static to avoid
3739         symbol conflicts.
3741         * app/Makefile.am (dia_core_files): 
3742         * app/interface.c (create_lineprops_area):
3743         * app/render_pixmap.[ch]:
3744         * lib/Makefile.am:
3745         * lib/diaarrowchooser.[ch]:
3746         * lib/libdia.def:
3747         * lib/prop_attr.c:
3748         * lib/propdialogs.c:
3749         * lib/render_pixmap.[ch]:
3750         * lib/widgets.c (dia_arrow_fill_menu): Use arrow preview instead
3751         of text labels. This involve moving away arrow_chooser to lib from
3752         app.
3754 2004-02-29  Lars Clausen  <lars@raeder.dk>
3756         * objects/UML/class.[ch]: Puny kludge to avoid GtkList objects
3757         being updated half-way through destruction.  To be removed when
3758         the lists are replaced by something better.
3760         * objects/UML/class_dialog.c: Patch from luc@handhelds.org:
3761         Accelerators for class dialog.  Bug #130995.
3762         Patch from luc@handhelds.org: Better aligning of widgets.  Bug #130994.
3764         * app/dia-props.c:
3765         * app/preferences.c:
3766         * lib/properties.c:
3767         * objects/GRAFCET/step.c:
3768         * objects/Misc/analog_clock.c:
3769         * objects/chronogram/chronoline.c:
3770         * objects/chronogram/chronoref.c:
3771         Change to american spelling (color, not colour) to ease
3772         translators job.  Note that a number of translations may need an
3773         update now.  Bug #120466.
3775 2004-02-29  Lars Clausen  <lars@raeder.dk>
3777         * plug-ins/xfig/xfig-export.c: Patch from solworth@cs.uic.edu:
3778         Better arrow handling for missing arrows.
3780         * plug-ins/metapost/render_metapost.[ch]: Patch from
3781         phred@cs.berkeley.edu (Fred Reiss): Add font faces and font
3782         size. See bug #135363.
3784         * app/app_procs.c (app_init): If non-interactive, or if
3785         --log-to-stderr used, send all messages to stderr.  This should
3786         mean that old diaconv == dia --export-to-format=FOO BAR
3788 2004-02-29  Hubert Figuiere  <hfiguiere@teaser.fr>
3790         * app/menus.c: Get rid of GNOME menus. Deprecated APIs in GNOME 2.
3792 2004-02-28  Lars Clausen  <lars@raeder.dk>
3794         * lib/text.c (text_key_event): Patch from Kouhei Sutou
3795         <kou@cozmixng.org>: Fix wrong utf8 strlen handling.
3797 2004-02-27  Lars Clausen  <lars@raeder.dk>
3799         * KNOWN_BUGS: Added info on most commonly reported bugs, with
3800         BugZilla numbers.
3801         
3802         * app/disp_callbacks.c (popup_object_menu): Unified properties
3803         entry, fixes bug #105080.
3805         * app/diagram.c (diagram_update_menu_sensitivity): 
3806         * app/menus.h (struct _UpdatableMenuItems): 
3807         * app/menus.c (menus_initialize_updatable_items): Menu items
3808         changed around, align menus flattened, properties entry ghosted,
3809         dialogs menu removed, more shortcuts added.  Closing bugs #94018,
3810         #117495, #135125.
3811         Also taking out Gnome menus for now.  They don't allow shortcuts,
3812         so what are they good for?
3814 2004-02-27  Lars Clausen  <lars@raeder.dk>
3816         * app/menus.c (display_menu_items): 
3817         * app/commands.[ch]: Added duplicate menu item from Alan Horkan
3818         (bug #95546).
3820 2004-02-24  Adam Weinberger  <adamw@FreeBSD.org>
3822         * configure.in: Added 'en_CA' (Canadian English) to ALL_LINGUAS.
3824 2004-02-23  Lars Clausen  <lars@raeder.dk>
3826         * app/app_procs.c (app_init): Comments for translators.
3828 2004-02-22  Hubert Figuiere  <hfiguiere@teaser.fr>
3830         * app/preferences.c (prefs_create_dialog): Change packing policy
3831         for widget to expand.
3833         * app/Makefile.am (run_dia.sh): Fixed a typo in wrapper that prevented
3834         running with a debugger.
3836 2004-02-19  Lars Clausen  <lars@raeder.dk>
3838         * app/undo.[ch]: Adding last-saved information to undo to allow a
3839         diagram with all changes since last save undo to be marked as
3840         nonmodified.  Still needs integration with actual undo
3841         apply/revert calls.
3843         * app/diagram.h: 
3844         * app/diagram_tree.c (diagram_tree_update): 
3845         * app/diagram.c: 
3846         * app/display.c (update_modified_status): 
3847         * plug-ins/python/pydia-diagram.c (PyDiaDiagram_GetAttr): 
3848         * app/autosave.c (autosave_check_autosave): Encapsulate modifed
3849         test. 
3851         * app/render_eps.[c]: Restructure to better handle PS vs. EPS
3852         vs. EPSI, comment out EPSI until preview is in there.
3854         * lib/render.c: 
3855         * lib/diarenderer.c: Removing debugging printfs.
3857         * app/diapsrenderer.[ch]: Preparations for proper EPSI rendering
3858         (with preview)
3860         * objects/standard/arc.c (arc_update_handles): Check to avoid
3861         crash when start and end points are the same.
3863 2004-02-19  Lars Clausen  <lars@raeder.dk>
3865         * objects/standard/bezier.c: 
3866         * objects/standard/line.c (line_load): 
3867         * objects/standard/polyline.c (polyline_load): 
3868         * objects/standard/zigzagline.c (zigzagline_load): 
3869         * objects/standard/arc.c (arc_load): 
3870         * lib/widgets.h (DEFAULT_ARROW_WIDTH): Use DEFAULT_ARROW_SIZE
3871         instead of hardcoding.
3873 2004-02-18  Hubert Figuiere  <hfiguiere@teaser.fr>
3875         * app/disp_callbacks.c (popup_object_menu): append a menu item to 
3876         display properties.
3878 2004-02-17  Hubert Figuiere  <hfiguiere@teaser.fr>
3880         * app/app_procs.c: declare rc properly with the proper #ifdef
3882 2004-02-17  Lars Clausen  <lars@raeder.dk>
3884         * plug-ins/xfig/xfig-import.c: Correct ordering of imported FIG
3885         objects (which seemingly FIG itself breaks, or else there is no
3886         ordering).
3888 2004-02-16  Lars Clausen  <lrclause@cs.uiuc.edu>
3890         * plug-ins/xfig/xfig-export.c (figLineWidth): Check for minimum
3891         width renderable in xfig.  Helps on bug #133637, but does not
3892         quite fix it -- something about depth is wrong.
3894         * plug-ins/xslt/xslt.[ch]: Patch #133913 from phenning@lanl.gov:
3895         Extern definitions for Mac compilation.
3897         * app/app_procs.c: Patch #131159 from J. H. M. Dassen
3898         (jdassen@debian.org): Include fix.
3900         * app/interface.c: Patch #130100 from luc@handhelds.org:  Make
3901         sure the initial diagram size is correct.
3903 2004-02-15  Lars Clausen  <lrclause@cs.uiuc.edu>
3905         * lib/Makefile.am (AM_CPPFLAGS): Override AM_CPPFLAGS instead of
3906         CPPFLAGS, as per automake warning.
3907         * app/Makefile.am (AM_LDFLAGS): Override AM_LDFLAGS instead of
3908         LDFLAGS, as per automake warning.
3909         (run_dia.sh): More robust creation, and more easily moved.
3911         * app/undo.c (group_objects_revert): Don't double-free the objects
3912         list.  (#129221) Call object_add_updates on grouped objects.
3913         (ungroup_objects_revert): Call object_add_updates on grouped objects.
3915         * lib/diagramdata.c: Internal
3916         documentation. 
3918         * lib/polyshape.c (polyshape_update_data): Correctly calculate
3919         directions for polyshape corners (thanks, Valgrind!)
3921         * lib/attributes.c: 
3922         * lib/prop_attr.c (arrowprop_load): Use default arrow size.
3924         * lib/arrows.h: Default arrow size defined.  After all are using
3925         this, may lower to 0.4 or so.
3927         * app/lineprops_area.[ch]: New function to set the arrow type for an
3928         arrow chooser.
3930         * app/interface.c (create_lineprops_area): Set default line to
3931         have an arrow (fairly likely to be what's wanted, plus it shows
3932         the user where arrows are set).
3934         * app/app_procs.c: #ifdef HAVE_POPT popt args to process_opt
3936 2004-02-14  Lars Clausen  <lrclause@cs.uiuc.edu>
3938         * plug-ins/metapost/render_metapost.c (draw_with_linestyle):
3939         Dotted lines should use dot_length, not dash_length.
3941 2004-02-06  Hans Breuer  <hans@breuer.org>
3943         * app/interface.c : don't use gtk_drawing_area_size() to avoid
3944         the defaut size being also the minimum size. Instead use
3945         gtk_window_set_default_size() on the display shell. Fixes #130982.
3947         [fixing #131210, but umlauts in the 'main' filename still not really 
3948          supported on systems where filesystem encoding != utf8
3949         (Problems with recent file menu and window title)]
3950         * lib/dia_xml.[hc] : add data_filename() and data_add_filename()
3951         to deal with possible differnces in filename encodings, see
3952         g_filename_<to|from>_utf8()
3953         * objects/standard/image.c : use them.
3955         * lib/widgets.c : handle possible encoding difference here, too.
3956         Also get rid of most warnings by using const and GTK casts where 
3957         appropriate; one wrong cast (probably causing a crash) was found/fixed 
3958         by this - the remaining give a hint on finally leaking FontSelectorEntry.
3960         * lib/widgets.[hc] : hide _DiaFileSelector and *Class in .c. Modified
3961         dia_file_selector_<get|set>_file to behave like the respective Gtk 
3962         functions do : encoding- and const-wise ;-)
3964 2004-02-01  Robert Sedak  <robert.sedak@sk.htnet.hr>
3966         * configure.in: Added "hr" (Croatian) to ALL_LINGUAS.
3968 2004-01-19  Hans Breuer  <hans@breuer.org>
3970         * app/app_procs.c app/diaconv : 
3971         only call bind_textdomain_codeset when available, what's good 
3972         for The Gimp (bug #131215) can't be wrong for Dia : bug #125926
3973         * config.h.win32 : define HAVE_BIND_TEXTDOMAIN_CODESET
3975 2004-01-19  Steffen Macke <sdteffen@web.de>
3977         * makefile.msc: updated for new GAIM-like installer build; sync'ed
3978         ALL_LINGUAS with configure.in
3980 2004-01-18  Hans Breuer  <hans@breuer.org>
3982         * app/app_procs.c (myXmlErrorReporting) : avoid possible crash 
3983         by not passing NULL to g_print()
3985         * app/interface.c (create_toolbox) : actually use
3986         persitence_register_window() to restore toolbox window size
3988         * app/makefile.msc lib/makefile.msc : allow to deselect
3989         building with Freetype by command line to nmake like :
3990                 nmake -f makefile.msc "NOFT2=1"
3992         * plug-ins/python/diasvg_import.py : handle 'stroke-array' as
3993         far as possible with Dia's limited line style
3994         * plug-ins/python/pydia-property.c : allow to get and set
3995         Linestyle, style and dash(length)
3997         * lib/object.h : removed typedef for ObjectId not use anywhere
3999 2004-01-17  Hans Breuer  <hans@breuer.org>
4001         * objects/custom/shape_info.[hc] objects/custom/custom_object.c
4002           doc/shape.dtd doc/custom-shapes : 
4003         support for images in custom shapes, also removed some long-time
4004         dead code
4006         * doc/en/*.xml : fixed crippled line ends which get created
4007         when windoze line ends are checkin from the unix side
4009 2004-01-13  Laurent Dhima  <laurenti@alblinux.net>
4011         * configure.in: Added "sq" to ALL_LINGUAS.
4013 2004-01-11  Hans Breuer  <hans@breuer.org>
4015         [more less leaks ;-]
4016         
4017         * objects/SADT/annotation.c : use text_destroy() not g_free()
4018         
4019         * objects/chronogram/chronoline.c : neither leak chronoline::events
4020         nor chronoline::name
4022         * objects/wpg/wpg.c : don't g_free() but g_object_unref(renderer);
4024 2004-01-11  Hans Breuer  <hans@breuer.org>
4026         * lib/properties.h :
4027         * objects/custom/custom_object.c : more properties optional
4028         to be backward compatible for older diagrams not having them 
4029         set. (Try to load samples/all_objects.dia)
4030         
4031         [less memory leaks thanks valgrind ;-]
4032         
4033         * app/recent_files.c (recent_file_history_write) : 
4034         g_free(history_filename);
4035         (recent_file_menu_item) : use g_path_get_basename() 
4036         which already strdups, free result of g_strescape()
4037         
4038         * app/filedlg.c (create_export_menu) : return of
4039         filter_get_export_filter_label() must be g_free()'d
4040         (create_open_menu) : same for import
4041         
4042         * app/export_png.c (export_png_ok) : destroy info ptr
4043         with png_destroy_write_struct()
4044         
4045         * app/app_procs.c (app_init) : g_free(export_format_string);
4046         
4047         * lib/font.c (dia_font_finalize) : finalize parent_class, too
4048         (dia_font_new_from_style) : stop leaking almost all DiaFont by not
4049         refing it a second time, g_type_create_from_instance() is enough
4050         
4051         * lib/object_defaults.c (_obj_store) : don't mess with names
4052         len 0 (should avoid 'Invalid read of size 1, but doesn't ;)
4053         
4054 2004-01-11  Steffen Macke <sdteffen@web.de>
4056         * app/diapsftrenderer.c: including ftoutln.h
4057         * app/makefile.msc: updated for freetype build
4058         * lib/libdia.def: added dia_font_get_context()
4059         * lib/dialibartrenderer.c (draw_string): added cast
4060         
4061 2004-01-10  Hans Breuer  <hans@breuer.org>
4063         * lib/diagdkrenderer.c (draw_string) : gdk_draw_line with
4064         transformed coordinates, fixes bug 130804
4066 2004-01-10  Hans Breuer  <hans@breuer.org>
4068         * app/filedlg.c app/app_procs.c : don't try to destroy 
4069         'gtk_dialog_run'-dialogs dialogs by connecting to the "response"
4070         signal but simply by gtk_widget_destroy() after gtk_dialog_run()
4071         returns. Fixes 'has no handler' bugs like #121019
4073 2004-01-10  Hans Breuer  <hans@breuer.org>
4075         * objects/UML/class.c objects/UML/class_dialog.c : 
4076         handle umlclass->name being empty to avoid, i.e. fix #127968
4078         [plugging memleaks, thanks valgrind :-]
4079         
4080         * lib/dia_xml.c (data_string) : don't leak return value
4081         of xmlNodeListGetString()
4082         
4083         * lib/dia_xml.c (xml_file_check_encoding) : g_free(buf)
4084         before returning, maybe alloca() would be the better 
4085         choice but anyway ;)
4087         * objects/custom/custom_object.c:306 : adde xmlFree(str) below
4088         
4089         * lib/font.c (dia_font_build_layout) : don't leak result
4090         of g_utf8_strdown()
4091         
4092         * lib/diagdkrenderer.c (draw_string) : don't leak rgba
4093         (this is the one which got me started using valgrind, see #130816)
4094         
4095 2004-01-07  Sanlig Badral  <badral@openmn.org>
4097         * configure.in: Added "mn" to ALL_LINGUAS.
4099 2004-01-04  Hans Breuer  <hans@breuer.org>
4101         * lib/diagdkrenderer.c : replace rendering of really small (height
4102         less than 2 pixels) with a simple dashed line, you wont notice the 
4103         differnce beside it being much faster. This allows ...
4104         * lib/diagdkrenderer.h : ... to remove gboolean rendertext ...
4105         * app/navigation.c : ... and lets you see an read rendered text even 
4106         in the nice navigation popup.
4108         * lib/dialibartrenderer.c : FONT_SCALE defined as 1.0 for G_OS_WIN32, too. 
4109         (draw_string) : don't leak temporary image
4111 2004-01-04  Hans Breuer  <hans@breuer.org>
4113         * app/dia-app-icons.h : TODO : to be removed when autogenerated on *NIX, too.
4114         * app/interface.c : use dia-app-icons.h to give Dia window icons
4116         * lib/dia_image.c lib/color.c : _never_ call functions implemented
4117         in app/ from lib/. It is not portable and broken from design
4118         * app/app_procs.c : call color_init() and dia_image_init() conditional,
4119         i.e. only if running interactive.
4121         * lib/font.h : #include <time.h>
4123         * lib/libdia.def : updated externals
4125         * objects/UML/actor.c 
4126             objects/UML/association.c (todo)
4127           objects/UML/branch.c
4128           objects/UML/class.[hc] objects/UML/class_dialog.c
4129           objects/UML/classicon.c
4130           objects/UML/component.c 
4131           objects/UML/constraint.c
4132           objects/UML/dependency.c
4133           objects/UML/generalization.c
4134           objects/UML/implements.c
4135           objects/UML/large_package.c
4136           objects/UML/lifeline.c
4137           objects/UML/message.c
4138           objects/UML/node.c
4139           objects/UML/object.c
4140           objects/UML/realizes.c
4141           objects/UML/small_package.c
4142           objects/UML/state.c
4143           objects/UML/usecase.c
4144           objects/UML/
4145         : ported coloring of most UML objects (bug #97517, orginal
4146           work Mathias Hasselmann)
4148         * lib/properties.h : add _OPTIONAL variants for 
4149         PROP_STD_(LINE|FILL|TEXT)_COLOUR which allows to load old -
4150         i.e. default colored - UML diagrams without complaining
4151         * lib/proplist.c lib/propoffsets.c : avoid setting _OPTIONAL,
4152         not set properties with the help of PXP_NOTSET. Otherwise 
4153         optional attributes would lead to wrong initialization. 
4155         * lib/widgets.[hc] : moved _DiaFontSelector from .h to .c
4156         to hide details and restict #undef GTK_DISABLE_DEPRECATED to .c
4157         Same for most other selectors which probably should be rewritten
4158         to the combo box with tree model from Gtk+ 2.4
4160 2004-01-04  Lars Clausen  <lrclause@cs.uiuc.edu>
4162         * INSTALL (PLATFORM NOTES): Mention the Gnu gettext and iconv as
4163         being the Right Thing(tm) to use on Solaris.
4165         * objects/standard/bezier.c (bezierline_draw): Don't draw
4166         guidelines if not selected.
4168         * lib/object.[ch] (dia_object_is_selected): Function to check whether
4169         a given object is selected. O(n), where n is # selected objects.
4170         
4172 2004-01-03  Lars Clausen  <lrclause@cs.uiuc.edu>
4174         * lib/widgets.[ch]: Make sure old font is re-chosen when the Other
4175         Fonts dialog is closed without pressing Ok (bug #128646).
4177 2004-01-02  Lars Clausen  <lrclause@cs.uiuc.edu>
4179         * app/Makefile.am: Quote arguments correctly for run_dia.sh (bug
4180         #130099). 
4182 2004-01-01  Lars Clausen  <lrclause@cs.uiuc.edu>
4184         * INSTALL: Updated list of requirements (bug #129653)
4186         * doc/en/dia.dia: Beginning class diagram for Dia from Luc
4187         Pionchon <luc@handhelds.org>.
4189 2003-12-31  Lars Clausen  <lrclause@cs.uiuc.edu>
4191         * lib/diagdkrenderer.c (draw_string): Don't attempt to render
4192         empty or NULL strings (bug #130097).
4194 2003-12-31  Chris Sperandio <sperandi@eng.usf.edu>
4195         
4196         * plug-ins/metapost/render_metapost.c: Fixed string colorization.
4197         Added checks against color_black.
4199 2003-12-31  Lars Clausen  <lrclause@cs.uiuc.edu>
4201         * plug-ins/xfig/xfig-export.c (figArrow): Output nothing for
4202         ARROW_TYPE_NONE.  Thanks to Jon A. Solworth for showing that this
4203         can happen.
4205         * objects/UML/component_feature.c: Patch from W. Borgert
4206         <debacle@debian.org>:  Add handle to component feature text.
4208         * lib/diagdkrenderer.c (draw_string): Remove poorly placed caching.
4210         * lib/font.c: Caching PangoLayout for better rendering speed.
4212 2003-12-30  Lars Clausen  <lars@raeder.dk>
4214         * lib/dia_dirs.[ch] (dia_get_absolute_filename): New function to
4215         get absolute file name from relative.
4216         * app/recent_files.c (recent_file_history_add): Use absolute
4217         filenames for recent files menu so that files can be found when
4218         Dia is invoked from other places.  
4220         * app/app_procs.c (handle_all_diagrams): Fix for 1/3 of 130098:
4221         Actually load different diagrams if such are requested on command
4222         line.  
4224         * objects/UML/class_dialog.c (class_create_page): Fix from Luc
4225         Pionchon <luc@handhelds.org>: Correctly align labels for colors.
4227         * lib/diagdkrenderer.[ch]: From Luc: New option to GdkRenderer to
4228         remove text rendering.  May be turned into greeking at some later
4229         stage.
4231         * app/interface.c: 
4232         * app/Makefile.am (dia_core_files): 
4233         * app/navigation.[ch]: Patch from Luc Pionchon <luc@handhelds.org>:
4234         Adds navigation window a la Gimp, though without text being
4235         rendered at all.
4237 2003-12-27  Luc Pionchon <luc@handhelds.org>
4239         * app/navigation.h: (new file)
4240         * app/navigation.c: (new file) creates a navigation window with a
4241         thumbnail view of the whole diagram.
4242         * app/Makefile.am (dia_core_files): added new files.
4244         * app/interface.c (create_display_shell): added a button between
4245         the scrollbars to popup a navigation window.
4247         * lib/diagdkrenderer.h (struct_DiaGdkRenderer): added rendertext
4248         boolean
4249         * lib/diagdkrenderer.c (renderer_init): set rendertext TRUE by default
4250         * lib/diagdkrenderer.c (draw_string): returns if the renderer do
4251         not want text rendering.        
4253 2003-12-14  Lars Clausen  <lrclause@cs.uiuc.edu>
4255         * shapes/Circuit/hresistor.shape: Uses new extra attribute thing.
4257         * objects/custom/shape_info.[ch]: Cleanup.
4259         * objects/custom/custom_object.[ch]: Changed to use new props
4260         interface.
4262         * lib/properties.h: 
4263         * lib/prop_text.c: 
4264         * lib/prop_inttypes.c: 
4265         * lib/prop_geomtypes.c: Added *prop_get_data_size.
4267         * lib/libdia.def: Added object_load_props.
4269         * configure.in: Better FT2 version test, from bug #129225.
4271         * dia.spec (BuildRequires): Changed to match makefile (bug #129131)
4273         * plug-ins/xslt/dia-uml2python.xsl: Added Python sheet from Holger
4274         Lehmann <holger.lehmann@catworkx.de>.
4276         * plug-ins/xslt/Makefile.am: 
4277         * plug-ins/xslt/stylesheets.xml: Added Python, Component List,
4278         and OWL XSLT sheets.
4280 2003-12-13  Lars Clausen  <lrclause@cs.uiuc.edu>
4282         * lib/diagdkrenderer.c: Add implementation so text is still
4283         rendered.  May be improved later.
4285         * lib/dia_image.c: 
4286         * app/main.c: 
4287         * app/export_png.c: 
4288         * app/diagram.c: 
4289         * app/app_procs.c: Patch from W. Borgert <debacle@debian.org>:
4290         Allow running without a $DISPLAY!
4292         * lib/color.c: Remove warnings for non-interactive run.
4294         * doc/en/dia.dbk: 
4295         * app/export_png.c: 
4296         * app/diaconv.c: 
4297         * app/app_procs.[ch]: 
4298         Patch from W. Borgert <debacle@debian.org>: Allow a --size argument
4299         to specify size for PNG output.
4301         * app/lineprops_area.c (dia_arrow_preview_expose): Make arrows
4302         render a little smaller, so as to fit the big ones.
4304         * lib/arrows.[ch]: New arrow type from W. Borgert
4305         <debacle@debian.org>: Filled Dot and Triangle.
4307 2003-12-02  Lars Clausen  <lrclause@cs.uiuc.edu>
4309         * doc/pl/Makefile.am (install-data-hook): Fixed installation bug
4310         for gif images.
4312         * plug-ins/xslt/dia-uml2owl.xsl: Added OWL XSLT from Dan Connolly.
4314         * acinclude.m4: Better Python configure code patch (can't find
4315         author, author please speak up!)
4317 2003-12-01  Lars Clausen  <lrclause@cs.uiuc.edu>
4319         * lib/diagdkrenderer.c (get_cached_text): Stupid bugs replaced by
4320         smarter ones.
4322 2003-11-30  Hans Breuer  <hans@breuer.org>
4324         * plug-ins/python/diasvg.py : initialize self.dash_length
4325         in constructor to avoid crashing if the renderer user
4326         does not set it before first usage.
4328 2003-11-30  Lars Clausen  <lrclause@cs.uiuc.edu>
4330         * lib/diagdkrenderer.c: Start of cache GDK text renderer -- not
4331         active yet.
4333         * configure.in: 
4334         * config.h.win32: Set version number to 0.92.2+cvs to distinguish
4335         development and stable versions.
4337         * lib/text.c (text_draw): Use new renderer function to draw the
4338         text.
4340         * lib/diarenderer.h: 
4341         * lib/diarenderer.c: New renderer function "draw_text" with
4342         default implementation.  This function should eventually be the
4343         main interface, as it will be able to handle width and caching of
4344         rendering internally.  All users of draw_string should convert to
4345         use Text objects and call either renderer->draw_text or text_draw,
4346         the latter if the text can be edited in-place (as should be the
4347         goal, eventually).
4349 2003-11-29  Lars Clausen  <lrclause@cs.uiuc.edu>
4351         * shapes/Circuit/hresistor.shape: First example of extra
4352         attributes. 
4354 2003-11-28  Lars Clausen  <lrclause@cs.uiuc.edu>
4356         * plug-ins/shape/shape-export.c: 
4357         * lib/diasvgrenderer.h: 
4358         * lib/diasvgrenderer.c: 
4359         * plug-ins/svg/render_svg.c (new_svg_renderer): 
4360         Actually store the font size, using DiaRenderer's font fields.
4362 2003-11-27  Lars Clausen  <lrclause@cs.uiuc.edu>
4364         * objects/custom/shape_info.[ch]: 
4365         * objects/custom/custom_object.[ch]: 
4366         Support for extra attributes in custom objects.
4367         
4368 2003-11-23  Lars Clausen  <lrclause@cs.uiuc.edu>
4370         * app/diagram.c (diagram_update_menu_sensitivity): More
4371         intelligent checks for menu sensitivity.  Might be slow on huge
4372         diagrams, but I think other things outweigh it by a lot.
4374         * app/menus.[ch]: Make "Bring Forwards"
4375         and "Send Backwards" updateable.
4377 2003-11-22  Steffen Macke <sdteffen@web.de>
4379         * shapes/Assorted/arrow-turn-up.shape:
4380         * shapes/Assorted/arrow-turn-up.png:
4381         * sheets/Assorted/Makefile.am:
4382         * sheets/Assorted.sheet.in: Added new arrow
4384 2003-11-17  Lars Clausen  <lrclause@cs.uiuc.edu>
4386         * app/app_procs.c
4387         * app/color_area.c
4388         * app/commands.c
4389         * app/defaults.c
4390         * app/dia_embedd.c
4391         * app/diagram.c
4392         * app/diagram_tree.c
4393         * app/diagram_tree_menu.c
4394         * app/diagram_tree_window.c
4395         * app/diapagelayout.c
4396         * app/diaunitspinner.c
4397         * app/export_png.c
4398         * app/filedlg.c
4399         * app/interface.c
4400         * app/layer_dialog.c
4401         * app/lineprops_area.c
4402         * app/linewidth_area.c
4403         * app/menus.c
4404         * app/pagesetup.c
4405         * app/paginate_psprint.c
4406         * app/persistence.c
4407         * app/plugin-manager.c
4408         * app/preferences.c
4409         * app/properties.c
4410         * app/recent_files.c
4411         * app/sheets.c
4412         * app/sheets_dialog.c
4413         * app/sheets_dialog_callbacks.c
4414         * app/tool.c: Patch from Sebastien Tricaud <toady@gscore.org>:
4415         GTK-2 compatibility update, mostly gtk_foo -> g_foo.
4417         * TODO: Updated, note on EPS transparency.
4419 2003-11-07  Lars Clausen  <lrclause@cs.uiuc.edu>
4421         * objects/UML/class.c (umlclass_draw): Allow classes with no name
4422         without crashing.
4424 2003-11-01  Lars Clausen  <lrclause@cs.uiuc.edu>
4426         * config.h.win32: 
4427         * doc/en/dia-manual.xml: 
4428         * dia.spec: 
4429         * configure.in: 
4430         * NEWS: Another Brown Bag release for parenting problems,
4431         including a crash bug fix.
4433         * app/connectionpoint_ops.c (diagram_update_connections_object):
4434         Also update connections when moving children.  This can cause
4435         move_handle to be called twice, so it must be idempotent.
4437         * app/load_save.c: Loading and saving of children totally redone.
4438         Now doesn't violate assumption that all objects in a layer are
4439         placed in order in XML file.
4441         * objects/UML/branch.c (branch_create): Don't lie about being
4442         resizable. 
4444         * objects/UML/node.c (node_create): 
4445         * objects/UML/large_package.c (largepackage_create): Drag with
4446         lower right-hand handle at creation like all other objects.
4448 2003-10-28  Lars Clausen  <lrclause@cs.uiuc.edu>
4450         * app/disp_callbacks.c (ddisplay_drop_object): Change initial
4451         parenting drop to behave like a move inside, i.e. constrain place
4452         instead of trying to resize.  'Cause, resizing cannot be done for
4453         all objects (e.g. UML Class). Also simplified the algorithm a lot
4454         at the same time.
4456         * app/load_save.c: Saving and loading of connection points for
4457         children added.  Prototypes for static functions added.
4459         * lib/dynamic_obj.c: Removed debugging output.
4461 2003-10-26  Lars Clausen  <lrclause@cs.uiuc.edu>
4463         * doc/en/dia-manual.xml: 
4464         * doc/pl/dia-manual.sgml: 
4465         * dia.spec: 
4466         * config.h.win32: 
4467         * configure.in: 
4468         * NEWS: Brown Bag release 0.92.1
4470         * lib/dynamic_obj.c: Fixed embarassing dynamic object removal bug.
4472 2003-10-25  Lars Clausen  <lrclause@cs.uiuc.edu>
4474         * app/app_procs.c (app_init): Rearrangement for translators.
4476 2003-10-24  Steffen Macke <sdteffen@web.de>
4478         * lib/text.c(text_key_event): enforcing the inserted text length now,
4479         fix for bug #125348
4481 2003-10-22  Lars Clausen  <lrclause@cs.uiuc.edu>
4483         * MAINTAINERS: Change Debian maintainer to be the default address.
4485         * objects/Misc/analog_clock.c (analog_clock_move_handle): Reorder
4486         args to match prototype, thus removing crashbug #125159.
4488         * RELEASE-PROCESS: Note to self.
4490 2003-10-22  Steffen Macke <sdteffen@web.de>
4492         * doc/en/dia-manual.xml: removed superfluous external references
4493         
4494 2003-10-21  Steffen Macke <sdteffen@web.de>
4496         * lib/libdia.def: added filter_get_by_name
4497         * app/render_eps.c: moved extensions definition outside #ifdef
4499 2003-10-19  Lars Clausen  <lrclause@cs.uiuc.edu>
4501         * Makefile.am: 
4502         * dia.1:
4503         Removed old Dia manual, put new one in doc/en/.  Translations
4504         should go in doc/??/.
4506         * doc/en/dia-manual.xml: 
4507         * doc/pl/dia-manual.sgml: 
4508         * dia.spec (Release): 
4509         * config.h.win32: 
4510         * configure.in: 
4511         * NEWS: 0.92 is here!
4513         * doc/en/dia.dbk: 
4514         * doc/en/dia.1: 
4515         * doc/en/Makefile.am (man_MANS): Added man page, thanks to Fredrik
4516         HallenBerg, W. Borgert.  Not currently autogenerated from dia.dbk,
4517         but it shall be.
4519         * doc/en/usage-objects.xml: Fixed lower-case PNG tags.
4521         * doc/en/usage-objects-selecting.xml: Commented out empty note.
4523 2003-10-14  Lars Clausen  <lrclause@cs.uiuc.edu>
4525         * doc/pl/dia-manual.sgml: 
4526         * doc/en/dia-manual.xml: 
4527         * config.h.win32: 
4528         * NEWS: 
4529         * configure.in: 
4530         * dia.spec (Release): Pre7.
4532         * app/diapsrenderer.c (draw_string): Convert string to print based
4533         on current locale.  If conversion fails, fall back to UTF-8 (which
4534         is almost certain to be messy).
4536 2003-10-13  Lars Clausen  <lrclause@cs.uiuc.edu>
4538         * doc/pl/dia-manual.sgml: 
4539         * dia.spec (Release): 
4540         * configure.in: 
4541         * NEWS: 
4542         * config.h.win32: 
4543         * doc/en/dia-manual.xml: Pre6.
4545         * plug-ins/pstricks/render_pstricks.c (draw_string): Don't escape
4546         TeX chars in strings -- must be possible to use TeX text in there.
4547         Also avoids infinite loop bug (#124464) Will get option for this
4548         later.
4550 2003-10-11  Lars Clausen  <lrclause@cs.uiuc.edu>
4552         * shapes/Cisco/Makefile.am: Cisco shapes now install correctly.
4554         * doc/en/dia-manual.xml: 
4555         * doc/pl/dia-manual.sgml: 
4556         * dia.spec (Release): 
4557         * configure.in: 
4558         * config.h.win32: 
4559         * NEWS: pre5.
4561         * app/authors.h: Removed duplicate of M. C. Nelson.
4563         * plug-ins/pixbuf/pixbuf.c: Unique name for pixbuf export: gdkpixbuf.
4565         * app/export_png.c: Unique name for libart PNG export: png-libart.
4567         * app/render_eps.c: Unique names for the two eps export methods:
4568         eps-builtin, eps-pango.
4570         * lib/filter.h: Binary compatibility change: 
4571         Added unique name to export filters.  Can be NULL.
4572         * lib/filter.c (filter_get_by_name): Finding a filter by
4573         non-extension name.
4575         * app/app_procs.h: Changed prototype for do_convert.
4576         * app/app_procs.c (app_init): Support for non-extension file
4577         format selection for export.  Also allow extension to differ from
4578         that specified by the filters.  A bit of refactoring, too.
4580 2003-09-28  Steffen Macke <sdteffen@web.de>
4582         * makefile.msc: added target po to update the translations
4584 2003-09-27  Lars Clausen  <lrclause@cs.uiuc.edu>
4586         * config.h.win32: 
4587         * dia.spec (Release): 
4588         * NEWS: 
4589         * doc/pl/dia-manual.sgml: 
4590         * doc/en/dia-manual.xml: 
4591         Pre4 is given a short try.
4592         
4593         * configure.in: Give all necessary libs to PNG test.
4595         * lib/font.c: Added legacy entries for sans, serif and monospace.
4597         * app/app_procs.c (internal_plugin_init): 
4598         * app/render_eps.h: 
4599         * app/render_eps.c: 
4600         Added PS fonts output for Unix.
4602         * app/diapsrenderer.c (set_font): Adjusted height by the magic .7
4603         factor to make PS fonts stay in boxes.
4604         
4605 2003-08-03  Hans Breuer  <hans@breuer.org>
4607         * config.h.win32 : close the version string
4609         * lib/libdia.def : with color_white, color_black being static
4610         on win32 they can not be exported anymore either
4612         * lib/dialibartrenderer.c : text rendering is back on win32,
4613         only by Gdk though; almost a year seems to be enough to
4614         wait for my patch at bug #94791 to be accepted ...
4616 2003-09-23  Lars Clausen  <lrclause@cs.uiuc.edu>
4618         * shapes/network/{digitizing_board.png,plotter.png,
4619         laptop.png,telephone.png}: 22x22 icons.
4621 2003-09-22  Lars Clausen  <lrclause@cs.uiuc.edu>
4623         * doc/pl/dia-manual.sgml: 
4624         * doc/en/dia-manual.xml: 
4625         * dia.spec (Release): 
4626         * configure.in: 
4627         * config.h.win32: 
4628         * NEWS: 
4629         pre3 improves font rendering speed.
4631         * app/app_procs.c (app_init): Don't do pango init here, it's done
4632         on demand in font.c now.
4634         * lib/font.c: Load pango context on demand rather than during
4635         init/all the time strikes a better balance between working font
4636         size and speed.  Still need to cache width calculations.
4638 2003-09-18  Lars Clausen  <lrclause@cs.uiuc.edu>
4640         * lib/dia_xml.c: Enable pretty printing.  Should have been added
4641         on 8/12. 
4643 2003-09-11  Lars Clausen  <lrclause@cs.uiuc.edu>
4645         * lib/arrows.c (calculate_arrow_point): Adjust arrow line
4646         adjustment a bit for half diamond and open round.
4648         * RELEASE-PROCESS: Added note about notifying translators and
4649         maintainers. 
4651         * doc/pl/dia-manual.sgml: 
4652         * doc/en/dia-manual.xml: 
4653         * dia.spec (Release): 
4654         * configure.in: 
4655         * config.h.win32: 
4656         * NEWS:
4657         Update to 0.92-pre2.
4658         
4659 2003-09-10  Lars Clausen  <lrclause@cs.uiuc.edu>
4661         * lib/arrows.c (calculate_arrow_point): Some fixing-up of arrow
4662         calculation for half diamond and open round.
4664         * lib/arrows.c: 
4665         * objects/UML/component_feature.c: 
4666         * lib/arrows.h: Patch from W. Borgert <debacle@debian.org>: Use
4667         arrows instead of specific little hacks.  Much nicer, but damn
4668         there's a lot of arrows.
4670         * lib/dialibartrenderer.c (begin_render): 
4671         * app/render_libart.c (begin_render): Use correct DPI for screen
4672         (well, actually the default DPI of 75 for now).
4674         * app/display.h: Informative notes on the DDISPLAY_*_ZOOM macros.
4676         * lib/diagdkrenderer.c (draw_string): Some reformatting.
4678         * app/app_procs.c (app_init): Note on what should be done for the
4679         pango context now, only it doesn't work:(
4681         * lib/font.c (dia_font_new): Make sure to load fonts that are
4682         used, using a reasonable pango_context.  Also a comment on the
4683         global_zoom_factor, 
4685 2003-09-09  Lars Clausen  <lrclause@cs.uiuc.edu>
4687         * doc/pl/graphics/*.png:
4688         * doc/pl/Makefile.am: Added graphics to distro, avoiding empty
4689         loop (bug #121817).  PL translator may want to change the
4690         home_network png to be in Polish.  If the docs get translated into
4691         more languages, we'll want to find out how to share these things.
4693 2003-09-08  Lars Clausen  <lrclause@cs.uiuc.edu>
4695         * app/splash.c (app_splash_init): Patch from Sébastien Tricaud
4696         <stricaud@mwsp.net>: Use g_signal_* instead of gtk_signal_* in
4697         splash.
4699         * app/filedlg.c (file_save_as_callback): Put filename setting
4700         together.  (Preparation for allowing default save dir.)
4702         * app/paginate_psprint.c (diagram_print_ps): Use $PRINTER
4703         correctly this time:)
4705         * app/dia-props.c (diagram_properties_show): 
4706         * app/properties.c (properties_show): Make sure the
4707         dialogs are transient for the correct diagram.
4709 2003-09-07  Lars Clausen  <lrclause@cs.uiuc.edu>
4711         * configure.in: Make sure -lz -lm is passed into second png test
4712         as well (stupid AC_LINK_IFELSE can't take it as an argument).
4714         * plug-ins/xfig/xfig-import.c: Skip XFig comments to make certain
4715         comment-filled files readable.  Once we have a 'generic data'
4716         system, we can put comments in there.
4718 2003-09-06  Steffen Macke <sdteffen@web.de>
4720         * plug-ins/pstricks/render_pstricks.c(tex_escape_string): using
4721         g_string_sized_new() instead of g_string_new() to make it compile
4722         * app/Makefile.am: including dia.ico and dia.rc in the tarball
4723         * plug-ins/wmf/wmf.cpp (set_linestyle): In WMF maximum linewidth is 1 
4724         for non-solid linestyles - otherwise custom linestyles have to be used.
4726 2003-09-02  Steffen Macke <sdteffen@web.de>
4728         * app/commands.c(help_manual_callback): using dia-manual.chm instead of 
4729         dia.chm
4731 2003-09-02  Christian Neumair  <chris@gnome-de.org>
4733         * sheets/Pneumatic.sheet.in: Slight unification fix.
4735 2003-09-02  Lars Clausen  <lrclause@cs.uiuc.edu>
4737         * config.h.win32: 
4738         * configure.in: 
4739         * dia.spec (Release): 
4740         * doc/en/dia-manual.xml: 
4741         * doc/pl/dia-manual.sgml: 
4742         * NEWS: Update to 0.92-pre1.
4744         * app/properties.c (properties_key_event): Removing Esc/Enter
4745         handling for now, interferes to much with regular dialog usage.
4747         * plug-ins/pstricks/render_pstricks.c (tex_escape_string):
4748         Function to escape special TeX characters.  Not in use yet, as
4749         PSTricks output by default is TeX strings.  Should get a save-time
4750         selector. 
4752 2008-09-01  Steffen Macke <sdteffen@web.de>
4754         * lib/paper.h: explanatory comment on width and height
4756 2003-08-30  Steffen Macke <sdteffen@web.de>
4758         * lib/color.c:
4759         * lib/color.h: made color_white, color_black static on win32
4761 2003-08-28  Lars Clausen  <lrclause@cs.uiuc.edu>
4763         * configure.in (PNG_LIBS): Something in the png tests added an
4764         extra -lpng to $LIBS.  Saving old $LIBS to avoid that.
4766 2003-08-27  Lars Clausen  <lrclause@cs.uiuc.edu>
4768         * configure.in: Quote correctly for temporarily adding freetype
4769         cflags to CPPFLAGS.
4771         * app/preferences.c (prefs_save): Remove debugging g_print.
4773 2003-08-26  Lars Clausen  <lrclause@cs.uiuc.edu>
4775         * objects/flowchart/parallelogram.c (pgram_update_data):
4776         Directions for connections, better system for placing
4777         connectionpoints. 
4779 2003-08-25  Lars Clausen  <lrclause@cs.uiuc.edu>
4781         * lib/diagramdata.c (layer_find_closest_object_except): Look all
4782         the way through the object list, so the foremost object is selected.
4784         * lib/diagramdata.h: Removing dynamic_obj.h, it should only be
4785         included for diagramdata.c.
4787         * lib/prop_text.c (multistringprop_handle_key): Attempt at making
4788         newline in multistringprop not close the dialog.  Failed so far.
4790 2003-08-25  Steffen Macke <sdteffen@web.de>
4792         * app/commands.c: using CHM instead of HTML on win32 if available
4793         * lib/diagramdata.h: including dynamic_obj.h
4795 2003-08-25  Lars Clausen  <lrclause@cs.uiuc.edu>
4797         * app/properties.c (properties_key_event): Make Enter = Ok for
4798         properties dialogs.  Still some problems with this and Esc for
4799         Cancel, for instances escaping out of a menu closes the dialog.
4801         * objects/UML/association.c (association_get_properties): 
4802         * objects/UML/class_dialog.c (class_create_page): Grab appropriate
4803         focus. 
4805         * app/diapsft2renderer.c (draw_string): Use
4806         dia_font_scaled_build_layout to ensure similarity of text.
4808         * lib/diagramdata.c: Remove obj from dynobj list when removing
4809         from layer to avoid nasty race conditions.
4811         * app/undo.c (group_objects_revert): Make sure to unparent and
4812         remove from dynobj list when changing layers objects.
4814 2003-08-23  Steffen Macke <sdteffen@web.de>
4816         * plug-ins/wmf/wmf.cpp (draw_image): replaced BitBlt() with 
4817         StretchBlt(); fixes #92249
4818         
4819 2003-08-23  Lars Clausen  <lrclause@cs.uiuc.edu>
4821         * app/filedlg.c (file_save_as_callback): 
4822         * app/preferences.h: 
4823         * app/preferences.c (prefs_data): 
4824         * lib/diagramdata.h: 
4825         * lib/diagramdata.c (new_diagram_data): 
4826         * app/load_save.c (diagram_data_load): 
4827         Let the document remember whether it was compressed.  The user can
4828         still override this in the Save As... dialog, and that will still
4829         be remembered as the default for new diagrams.
4831 2003-08-23  Steffen Macke <sdteffen@web.de>
4833         * plug-ins/xslt/Makefile.am: added dia-uml2componentlist.xsl
4835 2003-08-22  Steffen Macke <sdteffen@web.de>
4837         * plug-ins/xslt/dia-uml.xsl:
4838         * plug-ins/xslt/dia-uml2componentlist.xsl: generate a HTML file with a
4839         table containing a list of components grouped by stereotype
4841 2003-08-21  Steffen Macke <sdteffen@web.de>
4843         * lib/makefile.msc: added connectionpoint.obj
4844         * lib/libdia.def: added connpoint_update, find_slope_directions
4845         * app/disp_callbacks.c: including scroll_tool.h
4846         * obj/makefile.msc: added component_feature.obj
4847         * app/paginate_gdiprint.c: fixed loop initialization in 
4848         paginate_gdiprint(); partial fix for bug #85831 - the scaling is still
4849         wrong
4851 2003-08-21  Lars Clausen  <lrclause@cs.uiuc.edu>
4853         * plug-ins/python/pydia-object.c (PyDiaObject_MoveHandle): Fix
4854         move_handle call.
4856         * lib/diagramdata.h: Colors added to prefs.
4857         * lib/diagramdata.c (new_diagram_data): Set diagram colors from prefs.
4858         New field for pagebreak color, which should
4859         behave the same as grid color and be settable for a diagram.
4861         * app/diagram.c (diagram_init): Update diagram pagebreak color
4862         from prefs. 
4864         * app/grid.c (pagebreak_draw): Draw using diagrams pagebreak
4865         colors. 
4867         * app/preferences.[ch]: Default diagram colors now #defines, so
4868         loading can use it.  Also, colors are now in NewDiagramData, so
4869         are passed nicely into new diagrams directly from prefs.  Yum.
4871         * app/load_save.c (diagram_data_write_doc, diagram_data_load): 
4872         Support for loading and saving grid and pagebreak colors with the
4873         diagram.  I'm inclined to make all the three Colors in diagram
4874         Color*s instead, so we can tell if they're specified for the
4875         diagram or merely the default setting.  There'd be no way for the
4876         user to tell if the color of a diagram is default, though, unless
4877         we add a 'reset to default' button to prefs.
4879         * app/dia-props.c: Adding widgets for dynamic grid, grid colour,
4880         pagebreak color.  Unsensitizing grid size when dynamic.
4882         * objects/UML/component.c: Patch from Krzysztof Foltman
4883         <kfoltman@onet.pl>: Add two new connectionpoints and adjust a
4884         third.  Makes the left side connections actually be on the line
4885         (gasp!). 
4887 2003-08-20  Steffen Macke <sdteffen@web.de>
4889         * lib/libdia.def: added layer_find_closest_object_except
4890         * lib/diagramdata.c: added ; after GOTO to make MSVC compile 
4892 2003-08-20  Lars Clausen  <lrclause@cs.uiuc.edu>
4894         * app/tool.h: 
4895         * app/tool.c: 
4896         * app/scroll_tool.c: 
4897         * app/interface.c: 
4898         * app/disp_callbacks.c: 
4899         * app/create_object.h: 
4900         * app/create_object.c: Patch from Krzysztof Foltman
4901         <kfoltman@onet.pl>: Middle button can scroll transiently when
4902         menu-bar-mode is on, and mouse wheels (hopefully) can scroll in
4903         various ways.
4905         * app/authors.h: 
4906         * sheets/UML.sheet.in: 
4907         * sheets/UML/receptacle.xpm: 
4908         * sheets/UML/Makefile.am: 
4909         * sheets/UML/eventsource.xpm: 
4910         * sheets/UML/eventsink.xpm: 
4911         * objects/UML/pixmaps/facet.xpm: 
4912         * objects/UML/uml.c (dia_plugin_init): 
4913         * objects/UML/Makefile.am (libuml_objects_la_SOURCES): 
4914         * objects/UML/component_feature.c: 
4915         Patch from W. Borgert <debacle@debian.org>:  Add event sources and
4916         event sinks.
4917         
4918 2003-08-19  Lars Clausen  <lrclause@cs.uiuc.edu>
4920         * lib/object.h: Turning some comments into doxygen style.
4922         * lib/object_defaults.c (dia_object_defaults_load)
4923         (dia_object_default_get, dia_object_default_create): 
4924         Fixing up existing documentation.
4926         * lib/object.h: Doxygen style documentation begun.
4928         * app/create_object.c: 
4929         * app/undo.c: 
4930         * app/connectionpoint_ops.c: 
4931         * app/disp_callbacks.c: 
4932         * app/modify_tool.c: 
4934         * objects/network/wanlink.c (wanlink_move_handle): 
4935         * objects/network/bus.c (bus_move_handle): 
4937         * objects/flowchart/parallelogram.c (pgram_move_handle): 
4938         * objects/flowchart/ellipse.c (ellipse_move_handle): 
4939         * objects/flowchart/diamond.c (diamond_move_handle): 
4940         * objects/flowchart/box.c (box_move_handle): 
4942         * objects/custom/custom_object.c (custom_move_handle): 
4944         * objects/chronogram/chronoref.c (chronoref_move_handle): 
4945         * objects/chronogram/chronoline.c (chronoline_move_handle): 
4947         * objects/SADT/box.c (sadtbox_move_handle): 
4948         * objects/SADT/arrow.c (sadtarrow_move_handle): 
4949         * objects/SADT/annotation.c (annotation_move_handle): 
4951         * objects/Misc/analog_clock.c (analog_clock_move_handle): 
4953         * objects/GRAFCET/vergent.c (vergent_move_handle): 
4954         * objects/GRAFCET/vector.c (arc_move_handle): 
4955         * objects/GRAFCET/transition.c (transition_move_handle): 
4956         * objects/GRAFCET/step.c (step_move_handle): 
4957         * objects/GRAFCET/condition.c (condition_move_handle): 
4958         * objects/GRAFCET/action.c (action_move_handle): 
4960         * objects/FS/function.c: 
4961         * objects/FS/flow.c: 
4962         * objects/FS/flow-ortho.c (orthflow_move_handle): 
4963         * objects/FS/flow-poly.c (flow_move_handle): 
4965         * objects/UML/usecase.c (usecase_move_handle): 
4966         * objects/UML/state_term.c (state_move_handle): 
4967         * objects/UML/state.c (state_move_handle): 
4968         * objects/UML/small_package.c (smallpackage_move_handle): 
4969         * objects/UML/realizes.c (realizes_move_handle): 
4970         * objects/UML/object.c (objet_move_handle): 
4971         * objects/UML/note.c (note_move_handle): 
4972         * objects/UML/node.c (node_move_handle): 
4973         * objects/UML/message.c (message_move_handle): 
4974         * objects/UML/lifeline.c (lifeline_move_handle): 
4975         * objects/UML/large_package.c (largepackage_move_handle): 
4976         * objects/UML/implements.c (implements_move_handle): 
4977         * objects/UML/generalization.c (generalization_move_handle): 
4978         * objects/UML/fork.c (fork_move_handle): 
4979         * objects/UML/dependency.c (dependency_move_handle): 
4980         * objects/UML/constraint.c (constraint_move_handle): 
4981         * objects/UML/compprop.c (compprop_move_handle): 
4982         * objects/UML/component.c (component_move_handle): 
4983         * objects/UML/branch.c (branch_move_handle): 
4984         * objects/UML/association.c (association_move_handle): 
4985         * objects/UML/actor.c (actor_move_handle): 
4986         * objects/UML/activity.c (state_move_handle): 
4987         * objects/UML/class.c (umlclass_move_handle): 
4989         * objects/standard/ellipse.c (ellipse_move_handle): 
4990         * objects/standard/zigzagline.c (zigzagline_move_handle): 
4991         * objects/standard/textobj.c (textobj_move_handle): 
4992         * objects/standard/polyline.c (polyline_move_handle): 
4993         * objects/standard/polygon.c (polygon_move_handle): 
4994         * objects/standard/line.c (line_move_handle): 
4995         * objects/standard/image.c (image_move_handle): 
4996         * objects/standard/bezier.c (bezierline_move_handle): 
4997         * objects/standard/arc.c (arc_move_handle): 
4998         * objects/standard/beziergon.c (beziergon_move_handle): 
4999         * objects/standard/box.c (box_move_handle): 
5000         
5001         * objects/ER/relationship.c (relationship_move_handle): 
5002         * objects/ER/participation.c (participation_move_handle): 
5003         * objects/ER/entity.c (entity_move_handle): 
5004         * objects/ER/attribute.c (attribute_move_handle): 
5005         
5006         * lib/polyshape.c (polyshape_move_handle): 
5007         * lib/polyshape.h: 
5008         * lib/orth_conn.c (orthconn_move_handle): 
5009         * lib/orth_conn.h: 
5010         * lib/neworth_conn.c (neworthconn_move_handle): 
5011         * lib/neworth_conn.h: 
5012         * lib/element.c (element_move_handle): 
5013         * lib/element.h: 
5014         * lib/connection.c (connection_move_handle): 
5015         * lib/connection.h: 
5016         * lib/beziershape.c (beziershape_move_handle): 
5017         * lib/beziershape.h: 
5018         * lib/bezier_conn.c (bezierconn_move_handle): 
5019         * lib/bezier_conn.h: 
5020         *BINARY COMPATIBILITY CHANGE*
5021         Update prototype for *_move_handle() to include connectionpoint,
5022         and also pass on modifiers.  Pass in connectionpoint where
5023         applicable. 
5024         
5025         * lib/dummy_dep.h (dummy_dep): Adding dummy dependencies for new
5026         file connectionpoint.c.
5028 2003-08-17  Danilo Šegan  <dsegan@gmx.net>
5030         * configure.in: Added "sr" and "sr@Latn" to ALL_LINGUAS.
5032 2003-08-15  Lars Clausen  <lrclause@cs.uiuc.edu>
5034         * lib/object.c (object_copy): Use g_malloc0 instead of g_malloc.
5036         * lib/beziershape.c (beziershape_update_data): Autoroute
5037         directions for beziershapes!
5039         * lib/connectionpoint.c (find_slope_directions): 
5040         * lib/connectionpoint.h: Function for finding the available
5041         directions on a slope.
5043         * lib/polyshape.c: Reasonable directions for
5044         connectionpoints.       
5046 2003-08-14  Lars Clausen  <lrclause@cs.uiuc.edu>
5048         * objects/Misc/analog_clock.c (analog_clock_update_arrow_tips): 
5049         * objects/GRAFCET/vergent.c (vergent_update_data): 
5050         * objects/GRAFCET/transition.c (transition_update_data): 
5051         * objects/GRAFCET/action.c (action_update_data): 
5052         * objects/GRAFCET/step.c (step_update_data): 
5053         * objects/FS/function.c (function_update_data): 
5054         * lib/connpoint_line.c (connpointline_putonaline): 
5055         * objects/ER/attribute.c (attribute_update_data): 
5056         * objects/ER/entity.c (entity_update_data): 
5057         * objects/ER/relationship.c (relationship_update_data): 
5058         * objects/chronogram/chronoline.c (chronoline_update_data): Set
5059         directions for connection points.
5061         * objects/UML/component.c (component_create): Set to allow
5062         parenting. 
5064         * app/create_object.c (create_object_button_press): 
5065         * app/diagram.[ch] (diagram_find_clicked_object_except): 
5066         * lib/diagramdata.[ch] (layer_find_closest_object_except): 
5067         Avoid parenting to objects you're connecting to (otherwise you
5068         couldn't make a connection out of a parenting object).  To do
5069         this, added functions to find the nearest object except a given
5070         list of objects.
5071         
5072         * app/render_libart.c: Rearrange libart include to avoid multiple
5073         include program (and put libart includes inside #ifdef!)
5075 2003-08-13  Lars Clausen  <lrclause@cs.uiuc.edu>
5077         * lib/dialibartrenderer.c: Don't include art_config.h if others
5078         also do, as it isn't #ifdef'd.
5080         * objects/flowchart/ellipse.c (ellipse_update_data): Add
5081         directions for connection points.
5083 2003-08-12  Lars Clausen  <lrclause@cs.uiuc.edu>
5085         * objects/flowchart/box.c (box_update_data): Add directions, use
5086         connpoint_update. 
5087         (box_load): Use g_malloc0.
5089         * lib/Makefile.am (libdia_la_SOURCES):
5090         * lib/connectionpoint.c (connpoint_update): 
5091         Function to call to update a connection point info in _update_data().
5092         
5093         * lib/connectionpoint.h: Convenience DIR_ macros.
5095         * app/preferences.c (prefs_data): Make pretty formatted XML the
5096         default.
5098         * lib/dialibartrenderer.c: 
5099         * app/render_libart.c: Make sure art_config.h is included, cause
5100         some libart headers are broken.
5102         * configure.in (HAVE_FREETYPE): Restore CPPFLAGS to old value
5103         after test.  Add freetype-config cflags to cflags variable.
5105 2003-08-11  Lars Clausen  <lrclause@cs.uiuc.edu>
5107         * app/authors.h: Credits for Krzysztof.
5109         * sheets/Flowchart.sheet.in: Updated descriptions from Krzysztof
5110         Foltman <kfoltman@onet.pl>.  It occurs to me that the name (rather
5111         than the description) is visible in the title of the properties
5112         dialog.  That ought to be a short description (translatable),
5113         though we still want long descriptions for the tooltips.  Hmmm...
5115         * configure.in: Updated to use AC_LINK_IFELSE instead of
5116         AC_TRY_COMPILE, also force to link to check libs on Solaris.
5118         * objects/ER/entity.c (entity_load): 
5119         * objects/ER/attribute.c (attribute_load): 
5120         * lib/attributes.c (attributes_set_default_font): 
5121         Check if font is non-null before unreffing.
5122         
5123 2003-08-08  Lars Clausen  <lrclause@cs.uiuc.edu>
5125         * app/diagram.c (diagram_ungroup_selected) 
5126         (diagram_group_selected): Use the undo apply to make sure grouping
5127         and ungrouping is done in consistent manners.  This removes a fair
5128         amount of duplicated code from diagram.c.
5130         * app/undo.c (ungroup_objects_revert, ungroup_objects_apply) 
5131         (group_objects_revert, group_objects_apply): Working undo/redo for
5132         diagram tree updates.  The initial actions still don't quite work.
5134 2003-08-07  Lars Clausen  <lrclause@cs.uiuc.edu>
5136         * app/create_object.c (create_object_button_press): 
5137         * app/undo.[ch]: 
5138         * app/diagram.c: Undo support for parenting.  Uses apply/revert in
5139         undo only for manipulating the parent/child relationships.  Things
5140         like removing an object doesn't use the undo functions for
5141         parenting, so any updates to come (like to diagramtree) should be
5142         done in those, too.
5144 2003-08-03  Hans Breuer  <hans@breuer.org>
5146         * app/create_object.c : minor formating and g_new0 for
5147         tool creation
5149         * lib/bezier_conn.[hc] lib/beziershape.[hc]
5150           lib/prop_geomtypes.c (prop_geomtypes_register)
5151           objects/standard/bezier.c objects/standard/beziergon.c :
5152         ability to set bezpoints via StdProp api
5154         * plug-ins/python/pydia-property.c : convert list of tuples
5155         to BEZPOINTARRAY
5157         *  plug-ins/python/diasvg_import.py : use it to
5158         implement part of path parsing. Also minor improvements
5159         like inheritance of group attributes to members,
5160         whitespace, title and style:text/css ignoring ;-)
5162 2003-08-02  Hans Breuer  <hans@breuer.org>
5164         * lib/connections.c (connection_move_handle): return
5165         something to make it compile
5166         * lib/object.c(190) : error C4033: 'object_list_move_delta_r' 
5167         must return a value -> dito
5168         [Is there a warnings-as-errors switch we could use with gcc 
5169          to avoid such in future ?]
5171         * plug-ins/python/pydia-object.h : define *_Check macros
5172         * plug-ins/python/diamodule.c : provide dia.group_create()
5173         * plug-ins/python/pydia-diagramdata.c : add 
5174         DiaDiagramData.add_layer()
5175         * plug-ins/python/pydia-property.c : allow to set color by
5176         tuple of doubles
5178         *  plug-ins/python/diasvg_import.py : based on the above
5179         implement a) group support, b) rgb(1,2,3) color handling,
5180         and somewhat fishy data:image/png;base64 support (create
5181         temporary files from inline image data)
5182         d) dump the import errors as text into an 'Error' layer
5184         *  plug-ins/python/diasvg.py : add xmlns:xlink, removed a
5185         stray " in draw_rect and corrected error message formating 
5187         * plug-ins/pydia/pydia-geometry.c : removed ## to make it
5188         compile with gcc 3.3, fixes bug #117204. Thanks to Daniel 
5189         Jacobowitz.
5190         
5191 2003-08-01  Hubert Figuiere  <hfiguiere@teaser.fr>
5193         * app/magnify.c (create_magnify_tool): allocate with g_new0()
5195         * app/preferences.c (prefs_create_dialog): use checkboxes for boolean 
5196         preferences values (see bug 118570). Also group items into a GtkFrame.
5198 2003-07-31  Lars Clausen  <lrclause@cs.uiuc.edu>
5200         * app/menus.c:
5201         * app/menus.h:
5202         * app/commands.h: 
5203         * app/commands.c (objects_unparent_children_callback): 
5204         * app/diagram.h: 
5205         * app/diagram.c (diagram_unparent_selected,
5206         (diagram_update_menu_sensitivity): 
5207         Added unparenting of single children.
5209         * lib/bezier_conn.c:
5210         * lib/bezier_conn.h:
5211         * lib/beziershape.c:
5212         * lib/beziershape.h:
5213         * lib/connection.c:
5214         * lib/connection.h:
5215         * lib/element.c:
5216         * lib/element.h:
5217         * lib/group.c:
5218         * lib/neworth_conn.c:
5219         * lib/neworth_conn.h:
5220         * lib/object.h:
5221         * lib/orth_conn.h:
5222         * lib/poly_conn.c:
5223         * lib/poly_conn.h:
5224         * lib/polyshape.c:
5225         * lib/polyshape.h:
5226         * objects/EML/instantiation.c:
5227         * objects/EML/interaction-ortho.c:
5228         * objects/EML/interaction.c:
5229         * objects/EML/process.c:
5230         * objects/ER/attribute.c:
5231         * objects/ER/entity.c:
5232         * objects/ER/participation.c:
5233         * objects/ER/relationship.c:
5234         * objects/FS/flow-ortho.c:
5235         * objects/FS/flow-poly.c:
5236         * objects/FS/flow.c:
5237         * objects/FS/function.c:
5238         * objects/GRAFCET/action.c:
5239         * objects/GRAFCET/condition.c:
5240         * objects/GRAFCET/step.c:
5241         * objects/GRAFCET/transition.c:
5242         * objects/GRAFCET/vector.c:
5243         * objects/GRAFCET/vergent.c:
5244         * objects/Misc/analog_clock.c:
5245         * objects/SADT/annotation.c:
5246         * objects/SADT/arrow.c:
5247         * objects/SADT/box.c:
5248         * objects/UML/activity.c:
5249         * objects/UML/actor.c:
5250         * objects/UML/association.c:
5251         * objects/UML/branch.c:
5252         * objects/UML/class.c:
5253         * objects/UML/classicon.c:
5254         * objects/UML/component.c:
5255         * objects/UML/constraint.c:
5256         * objects/UML/dependency.c:
5257         * objects/UML/fork.c:
5258         * objects/UML/generalization.c:
5259         * objects/UML/implements.c:
5260         * objects/UML/large_package.c:
5261         * objects/UML/lifeline.c:
5262         * objects/UML/message.c:
5263         * objects/UML/node.c:
5264         * objects/UML/note.c:
5265         * objects/UML/object.c:
5266         * objects/UML/realizes.c:
5267         * objects/UML/small_package.c:
5268         * objects/UML/state.c:
5269         * objects/UML/state_term.c:
5270         * objects/UML/usecase.c:
5271         * objects/chronogram/chronoline.c:
5272         * objects/chronogram/chronoref.c:
5273         * objects/custom/custom_object.c:
5274         * objects/flowchart/box.c:
5275         * objects/flowchart/diamond.c:
5276         * objects/flowchart/ellipse.c:
5277         * objects/flowchart/parallelogram.c:
5278         * objects/network/bus.c:
5279         * objects/network/wanlink.c:
5280         * objects/standard/arc.c:
5281         * objects/standard/bezier.c:
5282         * objects/standard/beziergon.c:
5283         * objects/standard/box.c:
5284         * objects/standard/ellipse.c:
5285         * objects/standard/image.c:
5286         * objects/standard/line.c:
5287         * objects/standard/polygon.c:
5288         * objects/standard/polyline.c:
5289         * objects/standard/textobj.c:
5290         * objects/standard/zigzagline.c:
5291         Binary compatibility update:  Added return value for foo_move() and
5292         foo_move_handle().  Orthconn derivatives also returns change from
5293         orthconn_move_handle().
5294         
5295         * lib/orth_conn.c: Undo support for autorouting.  Neworthconn
5296         doesn't support it yet.
5298         * lib/object.c (object_list_move_delta_r, object_list_move_delta):
5299         Add returning ObjectChange from object moves.  Needs to handle
5300         multiple object moves.
5302         * app/modify_tool.c (modify_motion, modify_release): Add
5303         ObjectChange from move & move_handle to undo stack.
5305         * objects/EML/instantiation.c (instantiation_move): Removing
5306         duplicate move & update.
5308 2003-07-30  Lars Clausen  <lrclause@cs.uiuc.edu>
5310         * plug-ins/xfig/xfig-export.c: Added support for arrow head
5311         export.  Many arrow types not supported by XFig, replacing those
5312         with standard arrows.  Not sure whether it'd be better to render
5313         them as a group of lines instead.  You'd lose the arrow-ness for
5314         further editing, but preserve the actual shape of it.  Also added
5315         support for dash length.
5317         * plug-ins/xfig/xfig-import.c: Added support for dash length settings.
5319         * plug-ins/xfig/fig-format-3.2: Added copy of Fig format
5320         description for version 3.2, for reference.
5322         * plug-ins/xfig/xfig-import.c: Added import of arrows.
5324         * app/menus.c: Removed prefs item from Gnome diagram menu.  Made
5325         Align Vertical Adjacent call _v rather than _h.
5327 2003-07-29  Hubert Figuiere  <hfiguiere@teaser.fr>
5329         * app/scroll_tool.c (create_scroll_tool): 
5330         * app/modify_tool.c (create_modify_tool): use g_new0() to
5331         initialize the tool
5333 2003-07-29  Lars Clausen  <lrclause@cs.uiuc.edu>
5335         * configure.in: Added proper settings for XSLT_LIBS and XSLT_CFLAGS.
5337 2003-07-24  Pablo Saratxaga  <pablo@mandrakesoft.com>
5339         * configure.in: Added Macedonian (mk) to ALL_LINGUAS
5341 2003-07-23  Dmitry G. Mastrukov  <dmitry@taurussoft.org>
5343         * configure.in: Added Belarusian to ALL_LINGUAS.
5345 2003-07-19  Hans Breuer  <hans@breuer.org>
5347         [
5348          Make the xslt plug-in work on win32, too. It appears
5349          to require a quite recent version of libxml and libxslt,
5350          otherwise windoze pathes aren't translated correctly
5351          during file processing
5352         ]
5354         * plug-ins/xslt/xslt.h : #include <glib.h> before 
5355         using G_OS_WIN32
5357         * plug-ins/xslt/xslt.c : plugged some memory leaks and do
5358         the 'script' file finding similar to how it is done
5359         with the python scripts (no need for hardcoded pathes,
5360         removed the 'plugin' part from the path)
5362         * plug-ins/xslt/stylesheets.xml : added again. It does
5363         not have any path but only the pure filename again
5365         * plug-ins/xslt/stylesheets.xml.in : removed
5367         * plug-ins/xslt/Makefile.am : removed 'plugin' and the
5368         rule to process stylesheets.xml.in
5370         * plug-ins/makefile.msc : added xslt
5372 2003-07-19  Hans Breuer  <hans@breuer.org>
5374         Finally Dia learned to remember the recent selected sheet
5376         * app/preferences.[hc] : added prefs.recent_sheet
5377         * app/interface.c : restore and remember the sheet-option-menu
5378         history, but only if the respective number is stiil available.
5379         This additional adds robustness against running Dia without
5380         any sheet (e.g. installation problems)
5381         * app/app_procs.c : call prefs_safe() in app_exit() to remember
5382         changes which are not done by the prefernces dialog
5384         * app/diagram_tree_menu.c app/diagram_tree_menu_callbacks.c :
5385         removed every call (especially the conditional ones) to prefs_safe().
5386         Before prefs_safe() was called _many_ times during Dia startup
5388 2003-07-18  Hans Breuer  <hans@breuer.org>
5390         * app/makefile.msc lib/makefile.msc lib/libdia.def :
5391         updated win32 build
5393         * lib/color.c : use gtk_widget_get_default_visual();
5394         as suggested in #114536
5396         * app/interface.c app/disp_callbacks.c :
5397         moved round_up () to the latter file where it is used
5399         * app/linewidth_area.c : #include "interface.h" for
5400         interface_get_toolbox_shell()
5402 2003-07-18  Hubert Figuiere  <hfiguiere@teaser.fr>
5404         * plug-ins/pixbuf/.cvsignore
5405         * shapes/Cisco/.cvsignore: 
5406         added cvsignore
5408 2003-07-17  Lars Clausen  <lrclause@cs.uiuc.edu>
5410         * app/dia-props.c (diagram_properties_retrieve): Use
5411         diagram_get_name() to add the diagram name to the diagram
5412         properties dialog.
5414         * app/diagram.h: 
5415         * app/diagram.c (diagram_get_name): New function to get a
5416         reasonable diagram name.
5418         * lib/diagramdata.h: Added major_lines, dynamic and colour to grid
5419         info.  Still need to be able to set dynamic grid.  Also ought to
5420         follow Gnome style and have instant apply.
5422         * app/preferences.h: 
5423         * app/preferences.c (prefs_data): Remove option to use stippled
5424         grid, add option for major line offset.  Default to 5 minor lines
5425         per major line.
5426         Add option for dynamically sized grid.
5428         * app/display.c (ddisplay_render_pixmap): Call pagebreak_draw as well.
5430         * app/grid.c: Pagebreak drawing separated out.  Grid drawing using
5431         stippled/solid to display minor/major grid lines.  Line drawing in
5432         separate functions away from calculating line distance.
5434         * app/grid.h: Split page break drawing out of grid_draw.
5436         * app/layer_dialog.c (layer_dialog_show): Patch from Hubert
5437         Figuiere <hfiguiere@teaser.fr>:  Layer dialog show go to front
5438         when menu item is selected.
5440 2003-07-15  Lars Clausen  <lrclause@cs.uiuc.edu>
5442         * configure.in: Removed -Winline flag to make way for important
5443         warnings. 
5445         * samples/UML-demo.dia: Adjusted for 0.91 font size, saved as
5446         non-compressed.  Should fix bug #117381, also look prettier.
5447         
5448         * Makefile.am: 
5449         * dia.desktop.in: Patch from Mark McLoughlin <mark@skynet.ie>:
5450         Set up desktop info more properly.
5452 2003-07-13  Lars Clausen  <lrclause@cs.uiuc.edu>
5454         * activity.c:
5455         * actor.c:
5456         * branch.c:
5457         * class.c:
5458         * classicon.c:
5459         * component.c:
5460         * large_package.c:
5461         * lifeline.c:
5462         * node.c:
5463         * note.c:
5464         * object.c:
5465         * small_package.c:
5466         * state.c:
5467         * state_term.c:
5468         * usecase.c: 
5469         Autorouting directions patch from Krzysztof Foltman
5470         <kfoltman@onet.pl>.
5472         * app/menus.c: Wrong GNOME paren fixed.  Correct callbacks for
5473         GNOME parent menu items.
5474         
5475         * app/authors.h: Added Vadim to contributors list.
5477 2003-07-12  Lars Clausen  <lrclause@cs.uiuc.edu>
5479         * app/commands.[ch]: 
5480         * app/create_object.c: 
5481         * app/disp_callbacks.[ch]: 
5482         * app/diagram.[ch]: 
5483         * app/interface.c: 
5484         * app/load_save.c: 
5485         * app/menus.[ch]:
5486         * app/modify_tool.c
5487         * app/undo.[ch]:
5488         * lib/Makefile.am:
5489         * lib/group.c: 
5490         * lib/object.[ch]: 
5491         * lib/parent.[ch]:
5492         * objects/UML/large_package.c: Patch from Vadim Berezniker
5493         <vadim@berezniker.com>: 
5494         Objects may "parent" other objects, i.e. contain them within
5495         themselves, restrain them and move them along.  Some more stuff is
5496         needed, such as selection and individual unparenting.  This adds
5497         parenting to UML - Large Package rather than Box.
5499 2003-07-11  Lars Clausen  <lrclause@cs.uiuc.edu>
5501         * app/linewidth_area.c: Patch from Krzysztof Foltman
5502         <kfoltman@onet.pl>: Make linewidth dialog conform to HIG (well,
5503         conform more, at least:).
5505         * plug-ins/metapost/render_metapost.[ch] : Applied patch from
5506         Chris Sperandio <sperandi@eng.usf.edu>:  Fixed linewidths and
5507         arcs.  Implemented images (though there is some pixelization and
5508         banding in the output).  Changed output file format to be a little
5509         more readable.  
5511         * app/app_procs.c (app_exit): Added message for double exit, which
5512         shouldn't happen any more.  Also preventing strange g_object_unref
5513         messages by having a printf after gtk_main_quit.  This is really
5514         weird.
5516         * app/interface.c (toolbox_delete): Avoid double app_exit call by
5517         removing handler for destroy when delete is called.
5519 2003-07-07  Lars Clausen  <lrclause@cs.uiuc.edu>
5521         * app/display.h: 
5522         * app/display.c (ddisplay_scroll_to_object,
5523         ddisplay_scroll_center_point):  New function for easy scrolling to
5524         object or point.
5526 2003-07-06  Lars Clausen  <lrclause@cs.uiuc.edu>
5528         * plug-ins/xslt/Makefile.am: Patch from Hubert Figuiere:  Add
5529         $(srcdir) on stylesheets.xml.
5531         * app/menus.c: Patch from Hubert Figuiere: Adds help menu to
5532         diagram menus (since they're at the top by default now).  Also
5533         move the Properties... menu item from Dialogs to Objects.  Dialogs
5534         menu should disappear at some point.
5536         * autogen.sh: Patch from Hubert Figuiere: Don't automatically call
5537         ./configure from ./autogen.sh, as configure may need to be run
5538         from a different directory.  (Also more standard this way.)
5540         * app/app_procs.c (app_init): 
5541         * app/Makefile.am (INCLUDES): Gnome standardization patch from
5542         Alex. 
5544 2003-07-03  Lars Clausen  <lrclause@cs.uiuc.edu>
5546         * objects/flowchart/parallelogram.c (pgram_update_data):
5547         Left/right alignment for parallelograms.  Doesn't use all
5548         available space, but then pgrams also ignore their shear value.
5549         This thing needs a loving hand.
5551 2003-07-01  Hans Breuer  <hans@breuer.org>
5553         * lib/properties.h : introduce PROP_FLAG_OPTIONAL
5554         * lib/proplist.c : don't complain if optional attr is missing
5555         * lib/orth_conn.h : make "orth_autoroute" optional to
5556         stop complaining with older files.
5558 2003-06-13  Guntupalli Karunakar  <karunakar@freedomink.org>
5560         * configure.in: Added "ml" for Malayalam in ALL_LINGUAS.
5562 2003-06-05  Andrew Halper  <ashalper@cox.net>
5564         * app/diagram_tree.c : add scrolling of drawing area
5565         to desired object on "Locate".  Patch modified to use new ddisplay
5566         function ddisplay_scroll_to_object().
5568 2003-06-11  Lars Clausen  <lars@raeder.dk>
5570         * lib/diagramdata.h: Added major_lines, dynamic and colour to grid
5571         info.  Before next version, the grid dialog (view dialog, really)
5572         must be redone to allow a) instant apply, b) apply to all
5573         diagrams, and c) setting colour, dynamic, major lines.
5575         * app/preferences.h: 
5576         * app/preferences.c (prefs_data): Remove option to use stippled
5577         grid, add option for major line offset.  Default to 5 minor lines
5578         per major line.
5579         Add option for dynamically sized grid.
5581         * app/display.c (ddisplay_render_pixmap): Call pagebreak_draw as well.
5583         * app/grid.c: Pagebreak drawing separated out.  Grid drawing using
5584         stippled/solid to display minor/major grid lines.  Line drawing in
5585         separate function away from calculating line distance.
5587         * app/grid.h: Split page break drawing out of grid_draw.
5589 2003-05-15  Hans Breuer  <hans@breuer.org>
5591         * plug-ins/python/diasvg.py : add xlink definition,
5592         also avoid to put spaces into attribute values. At least
5593         Sodipodi doesn't like them in width/height attributes
5595         * plug-ins/python/diasvg_import.py : add simple scaling.
5596         Some (more) handling for <svg>, <desc>, <circle>        
5598         * plug-ins/python/scascale.py : (new file) which does
5599         some experimental scaling via StdProp api
5601         * plug-ins/python/pydia-cpoint.c 
5602           plug-ins/python/pydia-handle.c : return PyDiaPoint for
5603         obj.pos not simple tuples. PyDiaPoint has a tuple interface
5604         so this may even be api compatible ...
5606 2003-05-11  Hans Breuer  <hans@breuer.org>
5608         * app/line_area.c : add window position persitence
5610         * lib/poly_conn.[hc] lib/polyshape.[hc] : allow to set 
5611         'poly_points' via StdProp api
5612         * lib/neworth_conn.h : don't rely on OrthConn and 
5613         NewOrtConn having the same struct offsets
5615         * lib/properties.h : introduce PROP_FLAG_WIDGET_ONLY
5616         to help separating 'useful' properies - in terms of
5617         the PyDia access
5619         * objects/custom/custom_object.c
5620           objects/UML/*.c
5621         add the missing prop_desc_list_calculate_quarks to
5622         all the *_describe_props()
5624         * objects/standard/beziergon.c objects/standard/bezier.c :
5625         explicit initializtion of default_user_data
5626         * objects/standard/polygon.c objects/standard/polyline.c :
5627         Same here. Also use POLY<CONN|SHAPE>_COMMON_PROPERTIES
5629         * plug-ins/python/diamodule.c : implement dia.register_import
5631         * plug-ins/python/makefile.msc : need to link with Pango
5632         for pango_color_parse()
5634         * plug-ins/python/pydia-property.c : add a bunch of type
5635         conversions to PyDiaProperty_ApllyToObject()
5637         * plug-ins/python/diasvg_import.py : (new file) which currently
5638         is mainly a stress test for PyDia but for some files already
5639         produces better results than svg-import.c
5641 2003-05-06  Lars Clausen  <lrclause@cs.uiuc.edu>
5643         * objects/UML/uml.c (uml_get_operation_string): Avoid ':' on
5644         type-less operations.
5646 003-05-03  Hasbullah Bin Pit  <sebol@ikhlas.com>
5648         * configure.in(ALL_LINGUAS): Added "ms".
5650 2003-05-01  Lars Clausen  <lrclause@cs.uiuc.edu>
5652         * plug-ins/xslt/xslt.c (xslt_ok): 
5653         * plug-ins/shape/shape-export.c (new_shape_renderer): 
5654         * plug-ins/svg/render_svg.c (new_svg_renderer): 
5655         * plug-ins/hpgl/hpgl.c (export_data): 
5656         * plug-ins/dxf/dxf-export.c (export_dxf): 
5657         * plug-ins/metapost/render_metapost.c (export_metapost): 
5658         * plug-ins/pstricks/render_pstricks.c (export_pstricks): 
5659         * plug-ins/xfig/xfig-export.c (export_fig): 
5660         * plug-ins/wpg/wpg.c (export_data): 
5661         * plug-ins/cgm/cgm.c (export_cgm): 
5662         * app/render_eps.c (export_eps): 
5663         * app/export_png.c (export_png_ok): 
5664         * app/load_save.c (diagram_data_save): Adding and standardizing
5665         output file error messages to include fopen error message.
5667 2003-05-01  Steffen Macke <sdteffen@web.de>
5669         * app/persistence.c: do not use unistd.h for MSVC build
5671 2003-04-30  Lars Clausen  <lrclause@cs.uiuc.edu>
5673         * sheets/Assorted.sheet.in
5674         * sheets/Circuit.sheet.in
5675         * sheets/Contact.sheet.in
5676         * sheets/EML.sheet.in
5677         * sheets/ER.sheet.in
5678         * sheets/Electric.sheet.in
5679         * sheets/FS.sheet.in
5680         * sheets/Flowchart.sheet.in
5681         * sheets/GRAFCET.sheet.in
5682         * sheets/Logic.sheet.in
5683         * sheets/MSE.sheet.in
5684         * sheets/Misc.sheet.in
5685         * sheets/Pneumatic.sheet.in
5686         * sheets/SADT.sheet.in
5687         * sheets/SDL.sheet.in
5688         * sheets/UML.sheet.in
5689         * sheets/chronogram.sheet.in
5690         * sheets/ciscohub.sheet.in
5691         * sheets/ciscomisc.sheet.in
5692         * sheets/cisconetwork.sheet.in
5693         * sheets/ciscorouter.sheet.in
5694         * sheets/civil.sheet.in
5695         * sheets/network.sheet.in
5696         * sheets/sybase.sheet.in:
5697         Patch from Jan-Willem Harmanny <jwharmanny@zeelandnet.nl>
5698         standardizes shape descriptions to use no articles, no 'create
5699         ...'.
5700         
5701         * app/interface.c (tool_data): Standard objects follow same
5702         standard as sheets.
5704 2003-04-29  Lars Clausen  <lrclause@cs.uiuc.edu>
5706         * app/color_area.c (color_area_edit): More informative title on
5707         color selection dialog.
5709         * app/disp_callbacks.c (ddisplay_drop_object): Update menu
5710         sensitivity when dropping object in.  Also reset tool to pointer.
5712         * objects/flowchart/diamond.c (diamond_update_data): 
5713         * objects/flowchart/parallelogram.c (pgram_update_data): Added
5714         left and right alignment options.
5716 2003-04-28  Lars Clausen  <lrclause@cs.uiuc.edu>
5718         * objects/flowchart/box.c: Added left and right alignment options.
5720 2003-04-26  Lars Clausen  <lrclause@cs.uiuc.edu>
5722         * app/persistence.c (persistence_load): Test existence of
5723         persistence file before trying to open it.
5725 2003-04-25  Lars Clausen  <lrclause@cs.uiuc.edu>
5727         * app/properties.c: Escape now closes properties dialogs.
5729 2003-04-25  Hans Breuer  <hans@breuer.org>
5731         * app/config.h.win32 : bump version to 0.91+cvs
5733         * app/makefile.msc lib/makefile.msc lib/libdia.def : updated
5735         * lib/dia_dirs.c : G_OS_WIN32: #define mkdir(s,a) _mkdir(s)
5737         * app/commands.c : don't leak "netscape" if getenv("BROWSER")
5738         returns NULL
5740         * app/presistence.c : need to #include "dia_xml_libxml.h"
5741         for xmlDiaParseFile
5743         * app/layer_dialog.c : make delayed creation work by protecting
5744         all non static layer_dialog_*() with :
5745            if (layer_dialog == NULL || layer_dialog->dialog == NULL)
5746              create_layer_dialog();
5747         * app/app_procs.c : removed /* create_layer_dialog(); */
5749         * objects/uml/association.c : give it a minimal StdProp
5750         implementation to fix bug #108896
5751         * lib/object_defaults.c : don't try to copy props if there
5752         is no obj->ops->describe_props
5754 2003-04-24  Lars Clausen  <lrclause@cs.uiuc.edu>
5756         * objects/standard/image.c (image_create): 
5757         * objects/standard/ellipse.c (ellipse_create): 
5758         * objects/standard/box.c (box_create): 
5759         * objects/flowchart/ellipse.c (ellipse_create): 
5760         * objects/flowchart/diamond.c (diamond_create): 
5761         * objects/flowchart/box.c (box_create): 
5762         * objects/custom/custom_object.c (custom_create): 
5763         * objects/ER/relationship.c (relationship_create): 
5764         * objects/ER/entity.c (entity_create): 
5765         * objects/ER/attribute.c (attribute_create): Initialize
5766         elem->height to DEFAULT_HEIGHT instead of DEFAULT_WIDTH.
5768         * lib/dia_svg.c (dia_svg_parse_style): Added case to set center
5769         alignment. 
5771         * configure.in: 
5772         * plug-ins/Makefile.am: 
5773         * plug-ins/xslt/Makefile.am: 
5774         * plug-ins/xslt/xslt.c (dia_plugin_init): 
5775         Patch from Götz Waschk <waschk@informatik.uni-rostock.de> uses
5776         automake-style if to only include xslt dir when needed.  Works
5777         with automake 1.4 and up, at least.
5779 2003-04-22  Lars Clausen  <lrclause@cs.uiuc.edu>
5781         * lib/diasvgrenderer.c (draw_string): 
5782         * lib/dia_svg.c (dia_svg_parse_style): Use
5783         text-anchor:(start|middle|end).
5785         * lib/diasvgrenderer.c (draw_polygon, fill_polygon): Use svg
5786         polygon rather than polyline & avoid missing line pieces.
5787         (get_draw_style): Set fill-opacity to 0 on draw_style to avoid
5788         black-filled things.
5790 2003-04-21  Lars Clausen  <lrclause@cs.uiuc.edu>
5792         * app/persistence.c (persistence_load): Check that persistence
5793         file exists before trying to read it.
5794         (persistence_update_window): Removed printf.
5796         * objects/GRAFCET/step.c: Don't copy defaults for name and id.
5798         * lib/autoroute.c: Take badness into the layouters again, as some
5799         of them know they can do things that are pretty but would be
5800         counted as ugly by the default calculation.
5802         * objects/UML/large_package.c: Shrink package name box when no
5803         stereotype is present.
5805         * lib/orth_conn.h (ORTHCONN_COMMON_MENUS): 
5806         * lib/orth_conn.c: Added object menu item for autorouting.
5808         * objects/FS/flow-ortho.c (orthflow_get_object_menu): 
5809         Autorouting, plus set initial dragging handle to be the end, not
5810         the middle.
5811         (orthflow_draw): Flipped arrow place to be at the end, as
5812         originally intended (got lost in arrow update).
5814         * objects/standard/zigzagline.c (zigzagline_get_object_menu): 
5815         * objects/UML/dependency.c (dependency_get_object_menu): 
5816         * objects/UML/association.c (association_get_object_menu): 
5817         * objects/UML/realizes.c (realizes_get_object_menu): 
5818         * objects/SADT/arrow.c (sadtarrow_get_object_menu): 
5819         * objects/GRAFCET/vector.c (arc_get_object_menu): 
5820         * objects/ER/participation.c (participation_get_object_menu): 
5821         * objects/EML/instantiation.c (instantiation_get_object_menu): 
5822         * objects/UML/generalization.c (generalization_get_object_menu): 
5823         * objects/EML/interaction-ortho.c (interaction_ortho_get_object_menu): 
5824         Autorouting setup (currently disabled for SADT/arrow).
5825         
5826 2003-04-19  Lars Clausen  <lrclause@cs.uiuc.edu>
5828         * lib/autoroute.c: Removed printfs.
5830         * lib/orth_conn.c: 
5831         * lib/autoroute.[ch] (autoroute_layout_orthconn): Handle
5832         non-connected orthconns too.
5834 2003-04-18  Lars Clausen  <lrclause@cs.uiuc.edu>
5836         * lib/orth_conn.h: 
5837         * lib/orth_conn.c: Function to set autorouting on/off, use
5838         autorouting in move_handle (turns off when a middle handle is
5839         moved), added to standard orthconn props. 
5841         * app/disp_callbacks.c (create_object_menu, popup_object_menu):
5842         Stopped signal emission for check menu items being set to on/off.
5844         * objects/standard/zigzagline.c: Added autorouting object menu item.
5846         * lib/autoroute.c: Added last cases of autoroute layout, fixed
5847         floating point comparison bug, cleaned up layouters, tweaked
5848         badness to allow kinks. 
5850 2003-04-17  Lars Clausen  <lrclause@cs.uiuc.edu>
5852         * lib/connectionpoint.h: Changed DIR_* macros to go around the
5853         clock. 
5855         * lib/orth_conn.[ch] (orthconn_set_points): New function to set all
5856         points at once.
5857         * objects/standard/zigzagline.c (zigzagline_move_handle): Removed
5858         old cruft, added call to autoroute (currently cannot be turned
5859         off).  Need to check what undo thinks about this.
5860         * lib/autoroute.[ch]: Fairly working simple layout.
5862         * lib/Makefile.am (libdia_la_SOURCES): Added autoroute files.
5863         * lib/autoroute.[ch]: Start of proper autorouting functionality.
5865 2003-04-10  Lars Clausen  <lrclause@cs.uiuc.edu>
5867         * lib/prop_widgets.c: Show labels on ListProp.
5869 2003-04-11  Steffen Macke <sdteffen@web.de>
5871         * doc/en/dia-manual.xml: removed reference of non-existing authors 
5872         note.
5873         * doc/en/usage-objects-selecting: commented out misleading section
5874         references.
5876 2003-04-10  Lars Clausen  <lrclause@cs.uiuc.edu>
5878         * app/app_procs.c (app_init): Layer window now opened at startup
5879         only if needed.
5881         * lib/prop_widgets.c: Show labels on ListProp.
5883 2003-04-09  Steffen Macke <sdteffen@web.de>
5885         * doc/en/*.sgml: removed files
5886         * doc/en/*.xml: added files
5887         * doc/en/Makefile.am: switched to XML DocBook
5889 2003-04-09  Lars Clausen  <lrclause@cs.uiuc.edu>
5891         * plug-ins/xslt/xslt.c (dia_plugin_init): 
5892         * configure.in: Added --with-xslt-prefix to allow other XSLT
5893         placements than /usr/lib.
5895 2003-04-09  Steffen Macke <sdteffen@web.de>
5897         * lib/makefile.mingw: updated to include latest files, including 
5898         and linking libintl
5899         * lib/geometry.h: don't define isinf and finite for mingw gcc build
5901 2003-04-08  Lars Clausen  <lrclause@cs.uiuc.edu>
5903         * app/persistence.h:
5904         * app/persistence.c (persistence_register_window_create): 
5905         * app/app_procs.c (app_init): 
5906         Register window function that doesn't create the window unless it
5907         should be open.  Other windows should move to this, so startup
5908         speed can be reduced.
5909         
5910         * app/persistence.h: Removed call prototype for update_window, now
5911         done internally.
5912         * app/persistence.c (persistence_register_window): A number of
5913         fixes.  Doesn't forget position when window is closed.  Now
5914         actually loads prefs.
5916         * app/layer_dialog.c (create_layer_dialog): Removed extraneous
5917         event connect.
5919         * app/preferences.c (prefs_data): 
5920         * app/diagram_tree_window.h: 
5921         * app/diagram_tree_window.c: Added persistence registering.
5922         Removed prefs items storing size and openness. 
5924         * app/sheets_dialog.c (create_sheets_main_dialog): Added
5925         persistence registering.  
5927         * app/Makefile.am (dia_core_files): Added persistence files.
5929         * lib/dia_dirs.h: 
5930         * lib/dia_dirs.c (dia_config_ensure_dir): New function to ensure
5931         that dirs are present.
5933         * app/app_procs.c (app_init): Loads persistent values on startup.
5934         (app_exit): Saves persistent values on exit.
5936         * app/layer_dialog.c (create_layer_dialog): Registers the layer
5937         window for persistence.
5939         * app/persistence.[ch]: New files handling various kinds of
5940         persistence.
5942 2003-04-04  Lars Clausen  <lrclause@cs.uiuc.edu>
5944         * lib/arrows.c: Adjusted arrow head spacing, more systematic arrow
5945         head spacing calculations.  Added half-circle arrow from Matthieu
5946         Sozeau <mattam@netcourrier.com> 
5948 2003-04-03  Lars Clausen  <lrclause@cs.uiuc.edu>
5950         * app/app_procs.c (app_init): Moved layer dialog init to allow
5951         tooltips to be initialized.
5953         * app/interface.c (create_display_shell): More tooltips.
5955         * app/linewidth_area.c (linewidth_area_create) 
5956         (linewidth_area_events): 
5957         * app/color_area.c (color_area_events, color_area_create): 
5958         Made tooltips work by embedding drawing_area in event_box.
5960         * app/interface.c (create_display_shell,
5961         (create_lineprops_area, create_color_area): Added a few tooltips.
5963 2003-04-01  Lars Clausen  <lrclause@cs.uiuc.edu>
5965         * app/pixmaps/off-grid.xpm: 
5966         * app/pixmaps/on-grid.xpm: 
5967         * app/Makefile.am (EXTRA_DIST): Added snap to grid icons.
5969         * app/display.h: 
5970         * app/commands.c (view_snap_to_grid_callback): 
5971         * app/display.c (ddisplay_set_snap_to_grid) 
5972         (update_snap_grid_status): 
5973         * app/interface.c (create_display_shell, grid_toggle_snap): 
5974         Added snap-to-grid status button.
5976 2003-03-31  Lars Clausen  <lrclause@cs.uiuc.edu>
5978         * app/app_procs.c (app_init): Create a new diagram if a file on
5979         the command line isn't found.
5981 2003-03-17  Lars Clausen  <lrclause@cs.uiuc.edu>
5983         * lib/dialibartrenderer.c (draw_string): Correct color handling
5984         for AA.
5986 2003-03-14  Lars Clausen  <lrclause@cs.uiuc.edu>
5988         * NEWS: 
5989         * doc/en/dia-manual.sgml: 
5990         * doc/pl/dia-manual.sgml: 
5991         * configure.in: 
5992         * dia.spec (Release): 
5993         Version 0.91 is here!
5995 2003-02-10  Steffen Macke <sdteffen@web.de>
5997         * plug-ins/wmf/wmf.cpp: patch from Ken Tsukahara 
5998         <ken.tsukahara@tmt-d.co.jp>, fixes windows printing and WMF export of
5999         non-ANSI characters, closes #107980
6001 2003-03-04  Lars Clausen  <lrclause@cs.uiuc.edu>
6003         * configure.in: 
6004         * NEWS: 
6005         * dia.spec (Release): 
6006         * doc/en/dia-manual.sgml: Upping to pre6.
6008         * configure.in: Missing comma broke HAVE_IEEEFP_H test.
6010         * app/lineprops_area.c (dia_arrow_chooser_new): Fixing bug
6011         #107511:  Make arrow selector for correct arrow type.
6013 2003-03-03  Lars Clausen  <lrclause@cs.uiuc.edu>
6015         * shapes/Circuit/Makefile.am (SHAPES): Added hjumper.png to
6016         EXTRA_DIST.
6018 2003-03-02  Lars Clausen  <lrclause@cs.uiuc.edu>
6020         * doc/en/dia-manual.sgml: 
6021         * configure.in: 
6022         * NEWS: 
6023         * dia.spec (Release): Upping to pre5.
6025         * configure.in: Add freetype-config derived libs to the
6026         AC_CHECK_LIB statement for freetype.
6028 2003-02-28  Hans Breuer  <hans@breuer.org>
6030         [fix for bug #107203]
6032         * lib/diarenderer.c : add warning 'implementation'
6033         for fill_rect to avoid crashing with a renderer
6034         which does not implement this required function.
6036         * plug-ins/dxf/dxf-export.c : provide - still empty -
6037         'implementations' for fill_rect and fill_polygon 
6038         to suppress the above warnings. Now it works like
6039         in version 0.90 
6041 2003-02-28  Steffen Macke <sdteffen@web.de>
6043         * samples/all_objects.dia: New sheet containing all dia shapes
6044         and objects; one layer per sheet
6045         
6046 2003-02-28  Lars Clausen  <lrclause@cs.uiuc.edu>
6048         * lib/prop_text.c (multistringprop_get_widget,
6049         multistringprop_reset_widget, multistringprop_set_from_widget): 
6050         Now uses GtkTextView instead of deprecated stuff, and also works:)
6052         * configure.in: Slightly more informative error message for isinf.
6054         * dia.spec (Requires): Require libxml2 rather than libxml.
6056 2003-02-28  Steffen Macke <sdteffen@web.de>
6058         * shapes/Circuit/hjumper.png:
6059         * shapes/Circuit/hjumper.shape: added missing icon for horizontal
6060         jumper shape
6061         
6062 2003-02-26  Lars Clausen  <lrclause@cs.uiuc.edu>
6064         * doc/en/dia-manual.sgml: 
6065         * configure.in: 
6066         * dia.spec (Release):
6067         * NEWS: New prerelease 0.91pre4, two important fixes.
6069 2003-02-25  Lars Clausen  <lrclause@cs.uiuc.edu>
6071         * plug-ins/xslt/Makefile.am (EXTRA_DIST): Also dist
6072         stylesheets.xml.in 
6074         * app/commands.c (help_manual_callback): More correct URL for help
6075         page (include file://, was broken on Dillo without it).
6077 2003-02-24  Lars Clausen  <lrclause@cs.uiuc.edu>
6079         * app/disp_callbacks.c: Set modifed when text is changed.
6081         * app/modify_tool.c (modify_button_release): Allow undo for moving
6082         objects.
6084 2003-02-16  Lars Clausen  <lrclause@cs.uiuc.edu>
6086         * dia.spec: 
6087         * doc/en/dia-manual.sgml: 
6088         * NEWS: 
6089         * configure.in: New prerelease with important bugfix.
6090         * shapes/network/digitizing_board.png:
6091         * shapes/network/plotter.png: Re-adding with -kb.
6092         
6093 2003-02-17  Abel Cheung  <maddog@linux.org.hk>
6095         * app/app_procs.c (app_init): Add comment for translators.
6097 2003-02-16  Lars Clausen  <lrclause@cs.uiuc.edu>
6099         * lib/filter.c (filter_register_import, filter_register_export):
6100         Don't accept filters with NULL description.
6102         * lib/plug-ins.c (dia_plugin_load): Fail if there's no description
6103         (as we assume the description is available in other places).
6105 2003-02-15  Lars Clausen  <lrclause@cs.uiuc.edu>
6106         
6107         * app/disp_callbacks.c (ddisplay_vsb_update, ddisplay_hsb_update): 
6108         * app/display.c (ddisplay_resize_canvas): Use
6109         ddisplay_add_update_all().
6110         (ddisplay_add_update_all): Free display and update lists when
6111         doing update_all, as they'll be regenerated immediately to cover
6112         all visible area.  Fixes bug #106165, crash when resizing.  This
6113         appears to be the original AA crash bug, believed long extinct.
6115 2003-02-13  Lars Clausen  <lrclause@cs.uiuc.edu>
6117         * app/commands.c (help_manual_callback): Use file: protocol for
6118         help. 
6120         * plug-ins/xslt/.cvsignore: Ignore .o files, please.
6122         * plug-ins/xslt/stylesheets: Removed old-style config file.
6123         
6124         * plug-ins/xslt/stylesheets.xml.in: New XML-based config file.
6126         * plug-ins/xslt/Makefile.am: 
6127         * plug-ins/xslt/xslt.c: Applied patch from Matthieu, improved path
6128         handling (no more DIA_PLUGIN_PATH).
6130 2003-02-11  Lars Clausen  <lrclause@cs.uiuc.edu>
6132         * plug-ins/svg/render_svg.c: 
6133         * lib/diasvgrenderer.c: Fixed numeric localized output issues.
6135 2003-02-10  Lars Clausen  <lrclause@cs.uiuc.edu>
6137         * objects/SADT/arrow.c (sadtarrow_draw): Clamp cosa, cosb to 
6138         [-1.0, 1.0].  Shouldn't be necessary, but in some cases the
6139         side of the triangle is longer than the hypotenuse.  Rounding
6140         error suspected.
6142 2003-02-09  Lars Clausen  <lrclause@cs.uiuc.edu>
6144         * NEWS: 
6145         * configure.in: 
6146         * doc/en/dia-manual.sgml: Update for pre2.
6148         * app/menus.c (display_menu_items): Fixed wrongly place separators.
6150         * objects/flowchart/box.c (box_update_data): Applied patch from
6151         Eivind Tagseth <eivind-gnome@multinet.no> to allow resize (with
6152         comment). 
6154         * app/paginate_psprint.c (print_page): Set paper name, so it
6155         convinces ps printers to use to right size.
6157 2003-02-07  Lars Clausen  <lrclause@cs.uiuc.edu>
6159         * app/properties.c (properties_show): Hide the dialog if the
6160         object is NULL (get rid of 'no properties' randomly popping up).
6162 2003-02-06  Lars Clausen  <lrclause@cs.uiuc.edu>
6164         * plug-ins/pixbuf/pixbuf.c (export_data): Adjust width and height
6165         for diagrams not starting at origo.
6167 2003-02-05  Lars Clausen  <lrclause@cs.uiuc.edu>
6169         * dia.spec (BuildRequires): Use libxml2-devel.
6171         * plug-ins/pixbuf/Makefile.am: Added to CVS.
6173         * RELEASE-PROCESS: Note on RPM version numbers.
6175         * app/interface.c (create_display_shell): Don't set as toolbar
6176         under Unix, either.  Especially not the diagram shell.  It removes
6177         it from the taskbar and makes it unresizable, always-on-top with
6178         OpenBox.  TOOLBAR != TOOLBOX.  Setting toolbox to the only
6179         appropriate thing, UTILITY, is not good either, you lose resizing
6180         and minimizing/maximizing under OpenBox.
6182         * app/menus.c (display_menu_items): Set delete item to use Delete.
6184 2003-02-04  Lars Clausen  <lrclause@cs.uiuc.edu>
6186         * dia.spec (BuildRequires, Requires): Updated for Gtk2
6187         requirements.
6189         * app/disp_callbacks.c (ddisplay_canvas_events): Only add a
6190         display flush when getting focus in, or we may get an update after
6191         the diagram has been destroyed in some cases.  Fixes bug #105221.
6193         * plug-ins/xfig/xfig-import.c: Notes on the splines used by XFig.
6195         * lib/diarenderer.c: Notes on the basis matrix for our beziers.
6197         * app/app_procs.c (app_init): Fixed missing popt context for Gnome
6198         - gnome-compiled Dia will now read files specified on the command line.
6200 2003-02-03  Lars Clausen  <lrclause@cs.uiuc.edu>
6202         * INSTALL (REQUIREMENTS): Updated requirements section.
6204         * configure.in: Better finite() check from Mårten Svantesson
6205         <f95-msv@nada.kth.se>.  Doesn't seem to generate strange dangly
6206         if's. 
6207         
6208 2003-02-03  Lars Clausen  <lrclause@cs.uiuc.edu>
6210         * plug-ins/xfig/xfig-import.c: Notes on spline conversions.
6212         * app/app_procs.c (debug_break): Added some code to avoid
6213         over-eager optimizations removing the call.  Surely there's a
6214         nicer way, but I'm not sure how.
6216         * app/diapsft2renderer.c (draw_bezier_outline): Removed paps relic
6217         that set text to black.
6219 2003-02-02  Lars Clausen  <lrclause@cs.uiuc.edu>
6221         * NEWS: Mention of Twiki as doc source for Python.
6223         * plug-ins/pixbuf/pixbuf.c: Export with pixbuf if
6224         libart/libpng is not available.  Later when we have a way of
6225         letting the user pick options in the file select dialog we shall
6226         allow the choice when applicable.
6228 2003-02-02  Steffen Macke <sdteffen@web.de>
6230         * doc/en/usage-loadsave.sgml:
6231         * doc/en/usage-objects.sgml: patch from
6232         James K. Lowden <jklowden@schemamania.org> to fix
6233         some docbook errors
6234         
6235 2003-02-01  Lars Clausen  <lrclause@cs.uiuc.edu>
6237         * plug-ins/Makefile.am (SUBDIRS): 
6238         * plug-ins/pixbuf/pixbuf.c: 
6239         * plug-ins/pixbuf/Makefile.am: 
6240         * configure.in: 
6241         Added pixbuf plugin to Makefile.am, but for import only.  PNG
6242         export handled by libart, which is better. JPG export is
6243         discouraged.  BMP is not much used on Unix.  Next release will
6244         integrate libart to allow all outputs.
6246 2003-02-01  Hans Breuer  <hans@breuer.org>
6248         * app/preferences.c :
6249         * app/pagesetup.c :
6250         the last two dialogs with 'old' button order finally
6251         are converted to gtk2, no GnomeDialog in all of Dia 
6252         anymore :-) 
6254 2003-02-01  Hans Breuer  <hans@breuer.org>
6256         * app/filedlg.c : don't try to use a button as
6257         'overwrite-file-dialog'-parent, use the FileSelDialog
6258         instead
6260         * plug-ins/pixbuf/pixbuf.c : make it work with 
6261         system-visual-depth < 24. Remove 'bmp' from output
6262         format extensions, it just was wishful thinking.
6264         * plug-ins/python/Makefile.am : added the four new python 
6265         plug-ins mentioned below to pyplugin_DATA and EXTRA_DIST
6267 2003-02-01  Hans Breuer  <hans@breuer.org>
6269         * NEWS : updated content beside dependencies
6271 2003-02-01  Hans Breuer  <hans@breuer.org>
6273         * lib/arrow.h : arrow_types needs to be declared as DIAVAR
6274         to make it useable across DLL boundaries
6275         * app/lineprops_area.c : same code to access arrow_types
6276         on all platforms
6278         * objects/UML/class.c : the non empty string is e.g.
6279         comment != NULL && comment[0] != '\0'
6280         * objects/UML/uml.c : same here, don't bother with
6281         empty operation stereotypes
6283 2003-02-01  Steffen Macke <sdteffen@web.de>
6285         * app/lineprops_area.c: latest changes do not work on
6286         windows, using old code without tooltips
6287         * makefile.msc: fixed copying of wmf.dll
6288         * plug-ins/makefile.msc: 
6289         * app/makefile.msc:
6290         * lib/makefile.msc: now linking libintl
6291         * config.h.win32: enabling native language support
6293 2003-01-31  Lars Clausen  <lrclause@cs.uiuc.edu>
6295         * plug-ins/xslt/Makefile.am (libxslt_filter_la_LDFLAGS): Removed
6296         -ldl and -lglib.  May or may not work on windows...awaiting verdict.
6298 2003-01-31  Daniel Yacob  <locales@geez.org>
6300         * configure.in: Added am (Amharic) to ALL_LINGUAS.
6302 2003-01-31  Steffen Macke <sdteffen@web.de>
6304         * objects/UML/class.c (umlclass_calculate_data): fixed crash
6305         when comments were visible, no class comment available and
6306         a attribute comment
6307          
6308 2003-01-31  Lars Clausen  <lrclause@cs.uiuc.edu>
6310         * RELEASE-PROCESS: Updated to fit new install-module syntax.
6311         * Prerelease 0.91-pre1 released on a suspecting public.  Tagging
6312         with DIA_0_91_PRE1.
6314 2003-01-30  Lars Clausen  <lrclause@cs.uiuc.edu>
6316         * config.h.win32: 
6317         * NEWS: 
6318         * configure.in:
6319         * dia.spec:
6320         Prerelease version changes, version 0.91-pre1.
6322         * app/sheets_dialog_callbacks.h: 
6323         * app/sheets_dialog_callbacks.c: 
6324         * app/sheets_dialog.c (create_sheets_main_dialog): 
6325         * app/sheets.c (sheets_dialog_create): More destroy stuff.  Trying
6326         to handle destruction of main dialog cleanly, but it's a mess.
6328         * configure.in: Downgraded ieeefp test to make it not produce
6329         illegal shell code.
6331         * lib/widgets.c (dia_arrow_selector_set_arrow): 
6332         (dia_line_style_selector_set_linestyle): Select menu dot
6333         correctly set.
6335         * lib/arrows.c (calculate_arrow_point): Fix of wrong arrow
6336         adjustment for diamondheads.
6338         * lib/plug-ins.c (dia_plugin_load): Fixed typo.
6340         * app/properties.c (create_dialog): Destroy properties dialog and
6341         box correctly.
6343         * app/sheets_dialog_callbacks.c
6344         (on_sheets_dialog_button_edit_clicked): Only create a new dialog
6345         if the old one is destroyed.
6347 2003-01-29  Lars Clausen  <lrclause@cs.uiuc.edu>
6349         * app/export_png.c (export_png_ok): Added info on resolution.
6350         Should (next release) improve export dialog to allow setting
6351         resolution instead of pixels.
6353         * app/lineprops_area.c (dia_arrow_chooser_new): Use menudesc list
6354         to generate arrowheads as well as tooltips.
6356         * lib/arrows.c: Added hollow diamond to menudesc list.
6358         * lib/arrows.[ch]: 
6359         * lib/widgets.[ch]: Moved arrow name list into arrows.[ch] to
6360         unify with rendered menu.
6362         * lib/diarenderer.c (draw_line_with_arrows)
6363         (draw_polyline_with_arrows, draw_arc_with_arrows)
6364         (draw_bezier_with_arrows): Fixed linestyle change bug (#104488)
6365         without changing renderer API.  Thanks to David Scherba for
6366         providing inspiration.
6368 2003-01-28  Lars Clausen  <lrclause@cs.uiuc.edu>
6370         * app/interface.c (create_display_shell):
6371         * app/display.h: Patching from Hubert Figuiere
6372         <hfiguiere@teaser.fr>:  Better types for menu bar widgets, and
6373         correct menu items.
6375 2003-01-26  Lars Clausen  <lrclause@cs.uiuc.edu>
6377         * app/defaults.c (defaults_show): Fixed defaults closing bug.
6378         Thanks to Hans for pointing it out.
6380 2003-01-25  Hans Breuer  <hans@breuer.org>
6382         * app/commands.c : don't warn about crashing libart renderer
6383         on win32. It simply doesn't render text anymore :-(
6385         * app/filedlg.c : use GtkMessageDialog for 'file overwrite'
6387         * objects/UML/class.c : don't access umlclass->properties_dialog
6388         after calling gtk_widget_destroy(umlclass->properties_dialog->dialog)
6389         which sets the former to NULL by destroy_properties_dialog() callback.
6391         * plug-ins/wmf/wmf.cpp : use dia_image_rowstride()
6393         * plug-ins/python/pydia-font.c : fix PyDiaFont_GetAttr()
6395         * plug-ins/python/pydia-image.c : add image.uri member
6396         not only useful for SVG rendering
6398         * plug-ins/python/diasvg.py : (new file) a more advanced
6399         example. A full blown SVG Renderer, currently only
6400         registered for .svgz
6402         * plug-ins/python/export-object.py : write text props
6404         * plug-ins/python/debug_objects.py : write prop.type and
6405         prop.visible 
6407 2003-01-25  Lars Clausen  <lrclause@cs.uiuc.edu>
6409         * objects/UML/association.c (association_update_data): Better
6410         bounding box for assoc with arrows.
6412         * lib/properties.h: New flag for properties with multiple values
6413         in groups.
6415         * app/lineprops_area.c (dia_arrow_chooser_dialog_show): Correct
6416         arrow updating in dialog.  Was broken due to changes from destroy
6417         fix:(
6419         * app/commands.c (view_aa_callback): AA warning only for Windows
6420         -- I trust the Unix side well enough.
6422         * app/render_libart.c (get_text_width): 
6423         * lib/dialibartrenderer.h (struct _DiaLibartRenderer): Font and
6424         font height can be taken from parent instance.
6426         * lib/dialibartrenderer.c (dia_libart_renderer_class_init) 
6427         (get_text_width): Proper cursor positioning for libart renderer.
6428         Ought to have a DiaInteractiveRenderer that these two can inherit
6429         from, that knows about transform.
6431 2003-01-25  Steffen Macke <sdteffen@web.de>
6433         * plug-ins/xslt/xslt.h: don't use dlfcn.h on win32. XSLT
6434         plug-in still not working on win32
6435         
6436 2003-01-24  Lars Clausen  <lrclause@cs.uiuc.edu>
6438         * app/disp_callbacks.c (ddisplay_canvas_events): Moved
6439         gdk_window_get_pointer to avoid destroy crash.  Simpler than I
6440         thought.
6442 2003-01-23  Lars Clausen  <lrclause@cs.uiuc.edu>
6444         * app/app_procs.c (app_init): Run gtk_init before popt so we don't
6445         bail out on gtk options.
6447         * lib/message.c (gtk_message_internal): Better handling of destroy
6448         event.
6450 2003-01-22  Lars Clausen  <lrclause@cs.uiuc.edu>
6452         * app/color_area.c (color_area_edit): 
6453         * lib/widgets.c (dia_file_selector_browse_pressed) 
6454         (dia_color_selector_pressed): 
6455         * app/plugin-manager.c (get_plugin_manager): 
6456         * app/filedlg.c (file_open_callback, file_save_as_callback) 
6457         (file_export_callback):
6458         * app/diagram_tree_window.c (diagram_tree_window_new): Correct
6459         handling of destroy event.
6461 2003-01-22  Alan Horkan <horkana@tcd.ie>
6463         * app/commands.c (file_new_callback): Changed Untitled to Diagram
6464         for default name.
6466 2003-01-21  Lars Clausen  <lrclause@cs.uiuc.edu>
6468         * app/preferences.c (prefs_create_dialog): 
6469         * app/linewidth_area.c (linewidth_create_dialog): 
6470         * app/lineprops_area.c (dia_arrow_chooser_dialog_show): 
6471         * app/layer_dialog.c (create_layer_dialog)
6472         (layer_dialog_edit_layer): Correct handling of destroy signal. 
6474         * app/diapsft2renderer.c (set_font): Adjust silly random factor
6475         for change in font.c
6477         * lib/widgets.c: Avoid warning when font menu file doesn't exist.
6479         * lib/font.c (dia_font_build_layout): Let's all use the same weird
6480         factor here.
6482         * app/lineprops_area.c (dia_arrow_chooser_dialog_show): 
6483         * app/layer_dialog.c (create_layer_dialog) 
6484         (layer_dialog_edit_layer): 
6485         * app/filedlg.c (file_open_callback, file_save_as_callback) 
6486         (file_export_callback): 
6487         * app/dia-props.c (create_diagram_properties_dialog): 
6488         * app/defaults.c (defaults_dialog_destroyed): 
6489         * app/color_area.c (color_area_edit): Dialog destroy event handling.
6491 2003-01-19  Lars Clausen  <lrclause@cs.uiuc.edu>
6493         * app/defaults.c (defaults_dialog_destroyed): Reset cache when
6494         defaults dialog destroyed.
6496 2003-01-19  Steffen Macke <sdteffen@web.de>
6498         * objects/makefile.msc: added bondgraph
6499         * plug-ins/makefile.msc: added GDK_PIXBUF_LIBS in order
6500         to compile pixbuf.dll
6501         * makefile.msc: copying all objects and dlls now
6502         
6503 2003-01-19  Hans Breuer  <hans@breuer.org>
6505         * app/diagram.[hc] : provide dia_open_diagrams(), make
6506         open_diagrams variable static
6507         * app/dia.def : export it (to be used by PyDia)
6508         * app/app_procs.c app/autosave.c app/diagram_tree_window.c
6509           app/display.c app/dynamic_refresh.c app/layer_dialog.c
6510           app/load_save.c : make use of dia_open_diagrams()
6512         * app/interface.c : don't set GDK_WINDOW_TYPE_HINT_TOOLBAR
6513         on win32. It removes the diagram window from the taskbar and
6514         shrinks it's window title to toolbar style (newest gtk2.2 cvs)
6516         * app/menus.c : add '...' to menu entries where a dialog 
6517         gets invoked
6518         * app/recent_files.c app/dia_embedd.c : reflect the above in 
6519         menus_get_item_from_path() calls
6521         * lib/libdia.def : add dia_image_rgba_data
6523         * lib/properties.h lib/prop_text.[hc] : add new property
6524         type StringList
6525         * objects/UML/class.[hc] object/UML/class_dialog.c : use
6526         StringList for attributes_strings and operations_strings to
6527         make this calculated data accessible via the Property API
6529         * plug-ins/python/diamodule.c : use dia_open_diagrams() and
6530         provide dia.new() to create a new diagram, dia.registered_types()
6531         to get on Dia's type registry, dia.message() for simple dialogs
6533         * plug-ins/python/pydia-diagram.c : implement DiaDiagram.display()
6534         to create a new display from a diagram. Let diagram.extents and
6535         diagram.bg_color return the same types as in diagramdata.*
6537         * plug-ins/python/pydia-geometry.c : add a read-only 
6538         'sequence interface' to DiaPoint and DiaRectangle
6540         * plug-ins/python/pydia-property.c : allow to get on StringList
6541         from Python
6543         * plug-ins/python/pydia-render.c : fix typo to make it compile
6545         * plug-ins/python/python-startup.py : removed 'import pygtk'
6546         again. This file does not need any gtk UI, and some python
6547         plug-ins don't do either
6549         * plug-ins/python/gtkcons.py : ported to GTK2 interface, now
6550         it should actually work as intended again
6552         * plug-ins/python/group_props.py : (new file) a prototype for
6553         one the most requested features: Change properties of selected
6554         objects in one step. Requires pygtk.
6556         * plug-ins/python/select_by.py : (new file) select objects by 
6557         common properties. Requires pygtk.
6559         [Start of 'PyDia Self Documentation Series']
6561         * plug-ins/python/pydiadoc.py : (new file) generates a new 
6562         diagram which contains all objects of dir(dia)
6563         
6564         * plug-ins/python/otypes.py : (new file) generates a new diagram 
6565         which contains all the currently registered object types sorted 
6566         by their containing package
6568 2003-01-18  Lars Clausen  <lrclause@cs.uiuc.edu>
6570         * configure.in: Added check for Pango >= 1.1.5, which appears to
6571         be enough to have text work.
6572         (INTLOBJS): Added dummy subst cause gettext doesn't always seem to
6573         do it.  AC_SUBST should be idempotent, though.
6575 2003-01-17  Lars Clausen  <lrclause@cs.uiuc.edu>
6577         * configure.in (HAVE_FREETYPE): Better test for freetype version
6578         using neat macro.
6579         Now actually sets HAVE_IEEEFP_H, needed for Solaris.
6581         * lib/font.c: Renamed global_size_one to global_zoom_factor to
6582         avoid confusion, and added comment.  Set scale factor in
6583         dia_font_build_layout to 1.0 for Unix side.  This fixes at least
6584         my weird scaling problems.  Fonts are now of the expectable size,
6585         i.e. the space between lines at size 1.0 is 1.0.  If we want a
6586         compatibility fix, we should scale fonts by about 1/0.75 from 0.90
6587         diagrams, though there will always be differences.
6589 2003-01-15  Lars Clausen  <lrclause@cs.uiuc.edu>
6591         * plug-ins/python/python-startup.py: 
6592         * plug-ins/python/gtkcons.py: Require gtk 2.0 for pygtk
6594         * plug-ins/python/python.c (dia_plugin_init): Added warning
6595         message for missing startup file.
6597         * lib/dialibartrenderer.c (draw_image): Alpha rendering!  Yay!
6598         
6599         * lib/dia_image.c (dia_image_rgb_data): 
6600         * app/diapsrenderer.c (draw_image): Fixed rowstride problems
6601         involving EPS.  Can't do transparency in EPS yet.
6603         * lib/dia_image.h: 
6604         * lib/dia_image.c (dia_image_rgba_data): New function to get RGBA
6605         data as one chunk.  Documentation for the RGB data getting funcs.
6606         (dia_image_rgb_data): Added comment.
6608         * lib/dialibartrenderer.c (draw_image): Correct rowstride handling
6609         (bug #103565)
6611 2003-01-13  Steffen Macke <sdteffen@web.de>
6613         * lib/dia_image.c: dia_image_rgb_data() is working for
6614         non-alpha images now. Fixes #93762
6615         * Makefile.am: added makefile.msc to EXTRA_DIST
6616         
6617 2003-01-10  Steffen Macke <sdteffen@web.de>
6619         * app/paginate_psprint.c: Closing print dialog when file
6620         could not be written. Fixes #84746
6621         
6622 2003-01-04  Steffen Macke <sdteffen@web.de>
6624         * doc/custom-shapes: incomplete description of <svg:text>
6626 2003-01-03  Steffen Macke <sdteffen@web.de>
6628         * makefile.msc(new): new makefile to create file
6629         structure suitable for running dia win32 under
6630         $(TOP)/dia/build/win32
6631         
6632 2003-01-02  Steffen Macke <sdteffen@web.de>
6633         
6634         * lib/dia_svg.c: including stdlib.h
6635         * lib/makefile.msc: added gdk_pixbuf libs to linker
6636         * app/makefile.msc: added gdk_pixbuf libs, made libart
6637         libs compatible with gnuwin32 package
6638         
6639 2003-01-01  Hans Breuer  <hans@breuer.org>
6641         * lib/font.c : more comment about global_size_one
6643         * app/menus.c : <control>[<shift>]A for plain gtk build too.
6645         * plug-ins/wmf/wmf.cpp : some type juggling to make 
6646         msvc7 happy
6648 2002-12-31  Steffen Macke <sdteffen@web.de>
6650         * app/makefile.msc: added hint on how to enable console output
6651         
6652 2002-12-17  Lars Clausen  <lrclause@cs.uiuc.edu>
6654         * objects/standard/textobj.c (textobj_load): Get the handle type
6655         right, at least to be the same as when created.
6657 2002-12-12  Lars Clausen  <lrclause@cs.uiuc.edu>
6659         * lib/dialibartrenderer.c (draw_string): Removed extra 'is'.
6661 2002-12-08  Hans Breuer  <hans@breuer.org>
6663         * app/commands.c : fixed bug #85315 'give diagram properties, 
6664         instead of no object selected error' almost a one-liner
6666         * app/splash.c : don't make having the logo pixmap
6667         mandatory. Fixes bug #96068. 
6669         * app/defaults.c : avoid crashing from open-dialog,esc,open-dialog
6670         sequence by connecting to the "delete_event"
6671         * app/objects/uml/class_dialog.c : handle "destroy" for 
6672         the same reason.
6674         * lib/libdia.def : remove diaXmlNewChild again
6676         * app/paginate_gdiprint.cpp : reflect Dia's page setting
6677         portrait/landscape in the windoze print dialog
6679         * objects/makefile.msc : only UML needs to link against
6680         $(GTK2_LIBS) and only custom against $(LIBXML2_LIBS)
6682 2002-12-08  Lars Clausen  <lrclause@cs.uiuc.edu>
6684         * objects/standard/ellipse.c (ellipse_distance_from): 
6685         * lib/geometry.c (distance_ellipse_point): Ellipse now uses the
6686         correct distance function.  Could be faster, but it's not really
6687         essential. 
6689 2002-12-07  Lars Clausen <lrclause@cs.uiuc.edu>
6691         * lib/font.c: Changed global_size_one to more correct 28.35.
6692         Looks better, too.
6694         * app/load_save.c:
6695         * lib/dia_xml.h: 
6696         * lib/dia_xml.c: Removed pretty print hack, the libxml thing works
6697         after all.
6699 2002-12-07  Hans Breuer  <hans@breuer.org>
6701         * lib/widgets.c : g_file_get_contents() silently assumes
6702         a binary file. Reflect when creating the font_menu file
6703         to get rid of junk in font menus
6705 2002-12-06  Hans Breuer  <hans@breuer.org>
6707         * app/diapsrenderer.[hc] app/diapsft2renderer.[hc] :
6708         removed 0xD 0xD 0xA line ends which get created by
6709         cvs if windoze line ends 0xD 0xA are checked in from
6710         *nix and checked out on win32.
6712         * app/preferences.c : changed toolbox_on_top default to
6713         false. It is currently not possible to change the behaviour
6714         at runtime, at least not on win32.
6716         * lib/dialibartrenderer.c : bug #94791 'rendering to 
6717         bitmap without PangoFt2' got delayed to milestone future 
6718         so wrap libart text rendering into PANGO_WIN32_FUTURE. 
6719         It is not available without my Pango patch in bugzilla.
6721         * lib/font.c : added comment to global_size_one and adapt
6722         the arbitrary size scaling in dia_font_build_layout() for
6723         win32, too. This is needed to get an acceptable font size 
6724         approximation for Dia 0.90 and earlier files.
6725         Also #include "message.h".
6727         * app/makfile.msc app/dia.def lib/makefile.msc lib/libdia.def :
6728         reflect movement of group.[hc]
6729         * lib/group.h : export group_type which gets used by app/*
6731         * lib/diagtkfontsel.c : added #undef GTK_DISABLE_DEPRECATED
6732         to get the GtkTypeInfo definition
6734         * plug-ins/makefile.msc : dxf and xfig don't need to link
6735         against app/ anymore now that group is moved to lib/
6737         * plug-ins/python/pydia-render.c : remove massive leaking
6738         of self, i.e. PyDiaRenderer
6740         *  plug-ins/python/makefile.msc : remove linking against
6741         GTK libs
6743 2002-12-06  Lars Clausen  <lrclause@cs.uiuc.edu>
6745         * objects/standard/line.c: Removed properties options for gaps,
6746         until release is done.
6748         * configure.in: Check for freetype version.
6750         * lib/text.c (text_insert_char): Fixed small buffer overflow for
6751         length = 0.
6753         * lib/dialibartrenderer.c (draw_string): Removed debugging printf.
6755         * app/diapsft2renderer.h: 
6756         * app/diapsft2renderer.c: 
6757         * app/diapsrenderer.h: 
6758         * app/diapsrenderer.c: Split ps rendering into standard and freetype.
6760         * app/render_eps.c (export_eps, new_psprint_renderer): Using
6761         PS_FT2 renderer when available.  Old render stuff killed.  Yay!
6763         * lib/properties.h: Fixed bad frame end def.
6765         * app/Makefile.am (dia_core_files): Added diapsft2renderer.[ch].
6767         * lib/dia_xml.c (data_add_string): Avoid #-less strings.
6768         
6769         * objects/bondgraph/Makefile.am: Removed unneeded EXTRA_DIST.
6771 2002-12-05  Lars Clausen  <lrclause@cs.uiuc.edu>
6773         * lib/font.c: Now checking for the proper dia-style standard fonts.
6775         * lib/Makefile.am: 
6776         * app/Makefile.am: Moving group.[ch]
6778         * plug-ins/dxf/dxf-import.c: 
6779         * plug-ins/xfig/xfig-import.c: 
6780         * plug-ins/xfig/xfig-export.c: Now can refer directly to group.h.
6782         * app/object_ops.c: 
6783         * app/object_ops.h: 
6784         * lib/object.c (object_list_move_delta, object_copy_list): 
6785         * lib/object.h: Moved some object-related functions from
6786         object_ops to object to assist moving group.c.
6788         * lib/diatypes.h: Added Group typedef.
6790         * lib/group.h: 
6791         * lib/group.c: Moved from app to lib to a) resolve plug-ins
6792         references, and b) make groups more "real" objects.
6794         * lib/Makefile.am (libdia_la_SOURCES): Added diatyps.h
6796 2002-12-03  Lars Clausen <lrclause@cs.uiuc.edu>
6798         * lib/font.c (dia_font_init): Added check that the three standard
6799         fonts exist.
6801 2002-12-02  Lars Clausen  <lrclause@cs.uiuc.edu>
6803         * lib/dia_xml.[ch]:
6804         * app/load_save.c: Linebreaks in dia files, no indentation.
6805         Should help text tools.  xmlNewChild wrapped in diaXmlNewChild for
6806         this. 
6807         
6808         * objects/standard/line.c: Small but important fixes to the line
6809         gap code.
6811         * lib/dia_xml.h: 
6812         * lib/dia_xml.c (diaXmlNewChild): 
6813         * app/load_save.c (diagram_data_write_doc, write_objects): Simple
6814         XML prettyprinting wrapper.
6816 2002-12-03  Steffen Macke <sdteffen@web.de>
6818         * shapes/Cisco/Makefile.am:
6819         * shapes/Cisco/*.shape: finished conversion of Cisco icons
6820         to *.png
6821         
6822 2002-12-02  Steffen Macke <sdteffen@web.de>
6824         * doc/en/Makefile.am:
6825         * doc/en/usage-objects.sgml:
6826         * doc/en/graphics/line_icon.png: (new) added line icon
6827         
6828 2002-12-02  Lars Clausen  <lrclause@cs.uiuc.edu>
6830         * objects/standard/line.c: Binary search object edge line gap.
6832 2002-12-01  Lars Clausen  <lrclause@cs.uiuc.edu>
6834         * configure.in: Added Cisco makefile, sorted Makefiles list.
6836         * shapes/Makefile.am (SUBDIRS): Added Cisco dir
6838         * configure.in: Now checks for availability of PangoFT2 and
6839         FreeType, raising an error if not found.
6841         * app/Makefile.am (dia_core_files): Adding diapsft2renderer from
6842         Hans.
6844 2002-12-01  Steffen Macke <sdteffen@web.de>
6845         
6846         * doc/en/usage-loadsave.sgml: updated information on import
6847         and export formats
6848         
6849 2002-11-28  Lars Clausen  <lrclause@cs.uiuc.edu>
6851         * app/commands.c (edit_copy_callback): Freeing copy_list.
6853 2002-11-28  Steffen Macke <sdteffen@web.de>
6854         
6855         * app/render_libart.c: art_config.h was included twice
6857 2002-11-27  Lars Clausen  <lrclause@cs.uiuc.edu>
6859         * sheets/.cvsignore: More ignorance.
6861         * lib/diagdkrenderer.c (draw_string): Removed silly #ifdef 1.
6863         * lib/prop_widgets.h: Two (currently unused) settings for frame
6864         foldability.
6866         * lib/prop_widgets.c (frame_beginprop_get_widget): Frames are now
6867         (by default) foldable. 
6869         * lib/propinternals.h: 
6870         * lib/propdialogs.c (prop_dialog_add_raw_with_flags): Way to add
6871         widgets in a more controlled manner.
6873         * objects/standard/line.c (line_update_data): Line gap things
6874         inserted.  Can do xeyes now:)
6876 2002-11-26  Christian Neumair  <chris@gnome-de.org>
6878         * .cvsignore: Changed.
6879         * objects/bondgraph/.cvsignore, plug-ins/metapost/.cvsignore,
6880         plug-ins/xslt/.cvsignore, shapes/Assorted/.cvsignore, shapes/Misc/.cvsignore:
6881         Added.
6883 2002-11-26  Lars Clausen  <lrclause@cs.uiuc.edu>
6885         * app/pixmaps/delete.xpm: Trashcan stolen from Gimp.
6887         * lib/widgets.c (dia_font_selector_get_font): Fixed wrong name
6888         passing to font hash.
6890         * app/filedlg.c (file_save_as_ok_callback): Check that filename is
6891         utf-8 or locale-convertible before adding to dialog text.  This
6892         probably needs done in a number of places where we get text from
6893         the environment and send it to GTK to display.
6895         * lib/widgets.c: Fixed case problems for font menu entries.
6897         * objects/SADT/annotation.c: Don't run the event test (but leave
6898         it here for inspiration).
6900         * lib/widgets.c: 
6901         * lib/widgets.h: Allowing setting preview text for fonts.
6903 2002-11-26  Lars Clausen  <lrclause@cs.uiuc.edu>
6905         * objects/bondgraph/Makefile.am: 
6906         * objects/bondgraph/bondgraph.c: 
6907         * configure.in: 
6908         * objects/Makefile.am: Added bond graph dir.
6910 2002-11-26  Lars Clausen  <lrclause@cs.uiuc.edu>
6912         * lib/text.c (text_calc_boundingbox, text_draw): Better cursor size.
6914 2002-11-25  Lars Clausen  <lrclause@cs.uiuc.edu>
6916         * lib/text.c (text_calc_boundingbox, text_draw): Better cursor
6917         positioning. 
6919         * app/diapsrenderer.c: Freetype rendering is back in force.
6921         * app/disp_callbacks.c: Added missing updates for pre-text-change.
6923 2002-11-25  David Hoover <jazzdaq@yahoo.com>
6925         * app/render_libart.c: Added missing #include line for libart.
6927         * lib/geometry.h:
6928         * lib/geometry.c: Added point_convex function.  This computes
6929         points inside a line segment (0 <= alpha <= 1) or outside the
6930         line segment (alpha < 0 | alpha > 1).
6932         * objects/standard/line.c: Line now has additional code/attributes
6933         which permit the line to extend past the line anchors (gap < 0) or
6934         leave a gap without reaching the anchor (gap > 0).  If no gap is
6935         specified, the default gap of 0 will result in identical line
6936         behavior as before.  If the 'fractional' attributes are TRUE, the
6937         gap length is not fixed, but a percentage of the line length.  I
6938         did not know how create the GTK widgets so the gap code currently
6939         cannot be used without adding XML attributes by hand.
6941 2002-11-25  Lars Clausen  <lrclause@cs.uiuc.edu>
6943         * lib/diagdkrenderer.c (draw_string): Removed timing bits.
6945         * lib/Makefile.am (libdia_la_SOURCES): Added fontsel files to SOURCES.
6947 2002-11-24  Lars Clausen  <lrclause@cs.uiuc.edu>
6949         * lib/font.c: Debugging functionality in separate functions.
6951         * lib/widgets.c: Using fontsel with context.
6953         * lib/diagtkfontsel.[ch]: Context-aware copy of the GTK fontsel.
6955         * objects/custom/custom_object.c: Orientation handling for shapes,
6956         patch thanks to Martin Hans <opfinder@gmx.net>.
6958         * objects/standard/zigzagline.c (zigzagline_move_handle): Starting
6959         work on even better orientation handling.
6961         * app/menus.c (menus_get_item_from_path): Fixed sily warnings from
6962         casting NULL pointers.  Should be unnecessary in an upcoming GTK
6963         release. 
6965 2002-11-18  Lars Clausen  <lrclause@cs.uiuc.edu>
6967         * lib/font.h:
6968         * lib/font.c:
6969         * lib/widgets.c: Now uses correct context to get font families.
6971         * lib/diagdkrenderer.c (get_text_width, draw_string): 
6972         * lib/dialibartrenderer.c (draw_string): 
6973         * lib/font.h: 
6974         * lib/font.c (dia_font_init): Removed old kludgy font name compare.
6975         (dia_font_build_layout): Unified the twiddle factors into a use of
6976         global_size_one.  But I deeply distrust Pango for seeming to
6977         change size of fonts every time I turn my back.
6979         * app/display.c: 
6980         * app/diagram.c: 
6981         * app/menus.c:
6982         * app/menus.h: Updated some more methods to also be more specific
6983         on the types.
6985         * app/menus.h:
6986         * app/recent_files.c: 
6987         Changed to return most specific type, to avoid run-time type errors.
6989         * app/menus.c (menus_get_item_from_path): Non-gnome version now
6990         gets menu_item rather than widget, which works better.
6992 2002-11-17  Cyrille Chépélov  <cyrille@chepelov.org>
6994         * app/display.c: (new_display):
6995         * app/menus.c: (menus_get_item_from_path):
6996         Relying on the tearoff to locate the input methods menu wasn't a
6997         good idea: tearoffs seem to be an endangered species nowadays.
6998         Anyway, the IM menu seems to be working now.
7000         * app/interface.c: hinted the window manager that the toolbox window
7001         is a toolbox window. Not that my (fairly default configuration)
7002         sawfish cares, but other NETWM compliant WMs may.
7004         * app/commands.c: 
7005         * app/defaults.c: 
7006         * app/dia-props.c:
7007         * app/filedlg.c: 
7008         * app/interface.c: 
7009         * app/layer_dialog.c: 
7010         * app/linewidth_area.c: 
7011         * app/properties.c: 
7012         * app/sheets_dialog.c: 
7013         * app/splash.c: 
7015         The GTK doc says to avoir gtk_window_set_wmclass() and 
7016         gtk_window_set_policy(), and use gtk_window_set_role() and
7017         gtk_window_set_resizable(), respectively.
7018         
7019         * app/preferences.c: (prefs_create_dialog):
7020         * app/preferences.h:
7021         * app/display.c: (display_set_active):
7022         Added a preference to have the toolbox hover over diagram windows.
7023                 
7024 2002-11-12  Lars Clausen  <lrclause@cs.uiuc.edu>
7026         * lib/diagdkrenderer.c (get_text_width, draw_string):
7027         Freetype-based string drawing now works.  Not very fast, though.
7028         I wish I could use the graphics card for this:(  I'm doing three
7029         bitmap loops where I should be doing one.  The size is not correct
7030         either, despite having get_text_width give the right thing.
7032 2002-10-21  Lars Clausen  <lrclause@cs.uiuc.edu>
7034         * app/connectionpoint_ops.c (diagram_update_connections_object):
7035         Allows more than one connectionpoint on an object to be moved at a
7036         time (bug #96306).
7038 2002-10-18  Stanislav Brabec  <sbrabec@suse.cz>
7040         * configure.in: Added cs to ALL_LINGUAS.
7042 2002-10-17  Lars Clausen  <lrclause@cs.uiuc.edu>
7044         * app/paginate_psprint.c: Removed unnecessary decl of autosave
7045         stuff.
7047         * app/display.c (ddisplay_set_renderer): Calls to begin/end render.
7049         * app/export_png.c (export_png_ok): Saving more variables from the
7050         evil setjmp.
7052 2002-10-16  Lars Clausen  <lrclause@cs.uiuc.edu>
7054         * lib/dialibartrenderer.c (begin_render):
7055         (end_render): Correct pushing and popping of font contexts.
7056         (draw_string): Double zooming eliminated, strange twiddle factor
7057         introduced (grumble).  Close to working now, but there are still
7058         strange differences from font to font.  In particular, some fonts
7059         really mess with the cursor and extents.
7061         * app/render_eps.c (export_eps): 
7062         * app/diapsrenderer.c (dia_ps_renderer_finalize): 
7063         Fixed file closing confusion, no longer dependent on PS/EPS.
7065         * app/diagram.c (diagram_place_down_selected) 
7066         (diagram_place_up_selected): Now implemented.
7068         * lib/font.c (dia_font_init): 
7069         * lib/font.h: 
7070         Redesigned the font init/context pushing code.  Start of fix for
7071         font name differences.
7072         
7073 2002-10-15  Kjartan Maraas  <kmaraas@gnome.org>
7075         * app/sheets_dialog_callbacks.c: Fix a typo.
7076         
7077 2002-10-15  Hans Breuer  <hans@breuer.org>
7079         * app/diapsrenderer.[hc] : (new files, old content :-)
7080         simple base class for post script rendering. Does neither 
7081         use Pango/FT2 nor does it handle non latin1 characters. 
7082         The fancy stuff which nowadays appears to be needed should 
7083         probably be done in derived class(es)
7085         * app/makefile.msc app/Makefile.am : added new files
7087         * app/paginate_psrint.c : re-enabled and used as test
7088         for the simple ps renderer above.
7090         * app/render_eps.[hc] : ripped out common ps code and
7091         moved to DiaPsRenderer. The rest of the file is mostly
7092         disabled. And I don't understand enough of it to 
7093         change port it.
7095         * app/diaepsrenderer.h : short lived, removed.
7097 2002-10-15  Lars Clausen  <lrclause@cs.uiuc.edu>
7099         * lib/plug-ins.c (dia_register_plugin): Don't try to load libdia
7100         as a plugin (thanks to Torben Nielsen).
7102 2002-10-14  Lars Clausen  <lrclause@cs.uiuc.edu>
7104         * app/diaepsrenderer.h: 
7105         * app/render_eps.h: 
7106         * app/paginate_psprint.c: 
7107         #ifdef'd out enough ps stuff to allow compile.  Now we just need
7108         to convert it.
7109         
7110 2002-10-12  Hans Breuer  <hans@breuer.org>
7112         [last plug-in ported]
7114         * plug-ins/xfig/xfig-export.c : ported to new renderer api
7116         * plug-ins/xfig/xfig-import.c(fig_create_object) : need to
7117         scale color values to [0..1.0] to properly reconstruct
7118         user colors
7120         * plug-ins/xfig/xfig-common.c : some cleaning
7122 2002-10-12  Hans Breuer  <hans@breuer.org>
7124         [decrease inter-plug-in-dependencies]
7126         * objects/custom/shape_info.[hc] : move parse_style()
7127         to lib/dia_svg.[hc] as dia_svg_parse_style(); Namespace
7128         the related structs and constants.
7129         * objects/custom/custom_object.c : reflect namespace
7130         changes
7132         * lib/dia_svg.[hc] : new files
7133         * lib/makefile.msc lib/Makefile.am : add new files
7134         * lib/libdia.def : updated externals
7136         * plug-ins/svg/svg-import.c : use dia_svg_parse_style()
7138         * plug-ins/svg/svg.c : enable svg import for win32 (and
7139         probably for other non ELF builds)
7141         * plug-ins/makefile.msc : enable svg import
7143 2002-10-11  Hans Breuer  <hans@breuer.org>
7145         * plug-ins/metapost/render_metapost.[hc] : ported
7147         * plug-ins/pstricks/render_pstricks.[hc] : dito
7149 2002-10-11  Hans Breuer  <hans@breuer.org>
7151         * plug-ins/cgm/cgm.c : ported, appears to work as before,
7152         but graphic apps available to me can't import the generated 
7153         files (the could not with Dia-0.90 cgm as well) ...
7155         * plug-ins/dxf/dxf-export.c : Ported to new renderer api.
7156         Removed all those function which did emulate 'complex' 
7157         drawing ops with basic ones (e.g. rect by line) cause this
7158         stuff is already provided by the base class
7159         * plug-ins/dxf/dxf-import.c : removed render.h include
7161         * plug-ins/python/pydia-font.[hc]
7162           plug-ins/python/pydia-text.c : finally ported to new font api
7164         * plug-ins/python/pydia-layer.c : add extra parameter
7165         to layer_find_closest_connectionpoint()
7167         * plug-ins/python/pydia-render.c : ported to DiaRenderer api
7169         * plug-ins/python/python.c : added missing copyright notice
7171         * plug-ins/hpg/hpgl.c plug-ins/wpg/wpg.c plug-ins/wmf/wmf.cpp : 
7172         actually use the renderers set_font implementation
7174         * plug-ins/renderer.inc : unused now, removed
7175         * plug-ins/Makefile.am : reflect it
7177 2002-10-08  Hans Breuer  <hans@breuer.org>
7179         * app/render_gdk.c : don't add the InteractiveRenderer
7180         interface multiple times (it's added to the type, not
7181         the object)
7182         * app/render_libart.c : dito. It's currently added
7183         unconditional cause eport_png uses it, but claims
7184         to be non-interactive. Probably set_size should be moved
7185         to the DiaRenderer interface.
7187         * lib/dialibartrenderer.c : add implementations for
7188         get_<width|height>_pixels. Libart rendering works again.
7189         DiaLibartRenderer::draw_image : use dia_image_rowstride()
7190         instead of width*3
7192         * lib/diatransform.c(dia_transform_coords_double) :
7193         don't ROUND() the returned values
7195         * plug-ins/pixbuf/pixbuf.c : added import function. It
7196         simply creates a wrapping "Standard - Image" object.
7198         * plug-ins/shape/shape-export.c : use the more direct
7199         method to call base class methods
7201 2002-10-07  Lars Clausen  <lrclause@cs.uiuc.edu>
7203         * lib/font.c (dia_font_init): Changed dia_font_init to return old
7204         pango context, to allow stacked contexts (for printing while
7205         antialiased).
7206         
7207         * lib/arrows.h
7208         * lib/bezier_conn.h
7209         * lib/beziershape.h
7210         * lib/boundingbox.h
7211         * lib/color.h
7212         * lib/connection.h
7213         * lib/connectionpoint.h
7214         * lib/create.h
7215         * lib/dia_image.h
7216         * lib/diagdkrenderer.h
7217         * lib/diagramdata.h
7218         * lib/dialibartrenderer.h
7219         * lib/diamenu.h
7220         * lib/diarenderer.h
7221         * lib/diasvgrenderer.h
7222         * lib/diatransform.h
7223         * lib/element.h
7224         * lib/filter.h
7225         * lib/focus.h
7226         * lib/font.h
7227         * lib/geometry.h
7228         * lib/handle.h
7229         * lib/neworth_conn.h
7230         * lib/objchange.h
7231         * lib/object.h
7232         * lib/orth_conn.h
7233         * lib/paper.h
7234         * lib/plug-ins.h
7235         * lib/poly_conn.h
7236         * lib/polyshape.h
7237         * lib/properties.h
7238         * lib/ps-utf8.h
7239         * lib/sheet.h
7240         * lib/text.h
7241         * lib/textattr.h
7242         * lib/widgets.h
7243         * lib/diatypes.h
7244         Moved all externally visible struct typedefs into diatypes.h, as
7245         per Hans' suggestions.
7247 2002-10-07  Steffen Macke <sdteffen@web.de>
7249         * lib/Makefile.am: removed a '\' causing problems
7251 2002-10-07  Hans Breuer  <hans@breuer.org>
7253         [Libart Renderer resurrected; almost it's compiling but
7254          almost instantly crashing :-]
7256         * lib/dialibartrenderer.[hc] : new files, ported to DiaRenderer
7257         * app/render_libart.[hc] : ported to DiaInteractiveRenderer
7258         * lib/diatransform.[hc] : added dia_transform_coords_double()
7260         * app/display.c : the right parameters for new_renderer_libart()
7261         * app/export_png.c : ported, removed the blind Display hack
7263         * app/makefile.msc lib/makefile.msc 
7264           lib/Makefile.am : updated
7266         * lib/dia<|gdk|interactive>renderer.c : properly copyrighted
7268 2002-10-06  Hans Breuer  <hans@breuer.org>
7270         * plug-ins/pixbuf/pixbuf.c : (new file)
7271         there is a new export plug-in called 'Pixbuf' which uses 
7272         DiaGdkRenderer to export to gdk-pixbuf supported bitmap
7273         formats (currently only PNG and JPEG).
7275 2002-10-06  Hans Breuer  <hans@breuer.org>
7277         See also: 
7278         http://mail.gnome.org/archives/dia-list/2002-October/msg00027.html
7280         * lib/dia-enums.h lib/diatransform.[hc]
7281           lib/diarenderer.[hc] lib/diainteractiverenderer.c
7282           lib/diagdkrenderer.[hc] lib/diasvgrenderer.[hc]
7283         : new files 
7285         * lib/makefile.msc lib/makefile.am : added new files
7287         * lib/plug-ins.c : g_module_error() returns a locale
7288         string, convert to utf8 before further usage 
7290         * lib/render.h : #error out. Everything including this
7291         needs porting
7292         * lib/*.[hc] : ported to new renderer api
7294         * app/diaepsrenderer.h : unfinished DiaEpsRenderer interface
7295         just to make the rest compile
7296         * app/render_eps.c : temporary disabled all of this
7297         * app/render_eps.h : removed RendererEPS
7299         * app/render_gdk.[hc] : a small wrapper around the new
7300         DiaGdkRenderer form lib/*
7302         * app/render_libart.h : removed RenderLibart definition
7303         * app/render_libart.c : not yet ported to new DiaRenderer
7304         but having an implementation to untie form FT2 dependency
7305         at least on win32. It is using new Pango api form bug #94791
7307         * app/render_pixmap.[hc] : a small wrapper around the new
7308         DiaGdkRenderer form lib/*
7310         * app/display.h : removed render_*.h includes
7311         * app/display.c : the only place where specific 
7312         renderers need to be known
7314         * app/connectionpoint_ops.c app/grid.c app/handle_ops.c
7315         use new DiaInteractiveRenderer interface
7317         * app/*.c : ported to new renderer api
7318         * object/*/*.c : ported to new renderer api
7319         s/render.h/diarenderer.h/
7320         s/Renderer/DiaRenderer/
7321         s/renderer->ops/renderer_ops/
7322         add in every draw method:
7323         DiaRendererClass *renderer_ops = DIA_RENDERER_GET_CLASS (renderer);
7325         * plug-ins/hpgl/hpgl.c : 
7326           plug-ins/wmf/wmf.cpp 
7327           plug-ins/wpg/wpg.c : ported to be DiaRenderer based
7328         * plug-ins/shape/shape-export.c
7329           plug-ins/svg/render_svg.c : ported to be DiaSvgRenderer based
7330           (nice how small these files became :-)
7332 2002-09-28  Hans Breuer  <hans@breuer.org>
7334         * */makefile.msc : updated
7336         * app/defaults.c : don't gdk_invalidate_rect(NULL)
7337         * app/disp_callbacks.c : 
7338         can't cast GtkWindow to GdkWindow, use shell->window
7339         (ddisplay_unrealize) don't use already unrefed im_context
7340         * app/display.c :
7341         can't cast from GtkMenu to GtkMenuItem
7342         (ddisp_destroy) : mark im_context as unrefed
7344         * lib/dia_xml (data_font) : prefer new font format over old one
7345         (data_add_font) : write the legacy name to allow file exchange
7346         with pre Pango versions of Dia, which would otherwise crash 
7347         on missing font 'name' attribute.
7348         * lib/font.c (dia_font_get_legacy_name) : improved implementation
7349         to get a better match.
7351         * lib/libdia.def : updated
7353         * lib/messages.c : don't gdk_widget_show(NULL)
7355         * lib/prop_text.c : don't gtk_entry_set_text() with NULL string 
7357         [make Dia compile, link _and_ work with mingw/gcc3.2]
7359         * config.h.win32 : #define LIBXML, this gets defined from libxml
7360         header but only for _MSC_VER. The mingw build did access an 
7361         unitialized function pointer for xmlFree.
7363         * */makefile.mingw : updated (some plug-ins have build issues)
7364         
7365         * lib/handle.h lib/object.h :   there appears to be no 
7366         forward declaration of the form 
7367                 typedef enum _HandleId HandleId 
7368         (at least not with GCC 3.2 for C++) ../lib/handle.h:22: 
7369         use of enum `_HandleId' without previous declaration
7371         * app/paginate_gdiprint.cpp : added a hack to avoid g++
7372         naming conflict on 'export'
7374         * app/paginate_gdiprint.h : forward declare Diagram
7376         * objects/SADT/annotaion.c : use g_random_double()
7378 2002-09-26  Lars Clausen  <lrclause@cs.uiuc.edu>
7380         * app/modify_tool.c: Made motion not happen until sufficiently
7381         large or past double-click interval, to avoid accidental moving
7382         when doubleclicking.  Got the double-click time right, and fixed
7383         some issues with release.  There are some corner cases that may
7384         exhibit strange behaviour, will look at those later.  Nah, let's
7385         not care about those, they are rare and not dangerous.
7387 2002-09-26  Cyrille Chépélov  <cyrille@chepelov.org>
7389         * app/layer_dialog.c: 
7390         * app/load_save.c: 
7391         * plug-ins/dxf/dxf-import.c: 
7392         * plug-ins/python/pydia-diagram.c: 
7393         * lib/diagramdata.c:
7394         * lib/diagramdata.h:
7395         Improved the consistency of the obj->parent_layer backlinks (esp.
7396         during reloads)
7398         * lib/Makefile.am:
7399         * lib/dummy_dep.h:
7400         * lib/dynamic_obj.[ch] (NEW):
7401         * app/Makefile.am:
7402         * app/app_procs.c: 
7403         * app/dynamic_refresh.[ch] (NEW):
7404         * objects/Misc/analog_clock.c: 
7405         Added support for dynamic refresh (animated objects).
7406                 
7407 2002-09-25  Cyrille Chépélov  <cyrille@chepelov.org>
7409         Patch from Owen Taylor <otaylor@redhat.com>:    
7410         * doc/en/Makefile.am:
7411         * doc/en/dia-manual.sgml:
7412         * doc/en/usage-objects.sgml:
7413         * doc/en/usage-quickstart.sgml:
7414         * doc/pl/Makefile.am:
7415         * doc/pl/dia-manual.sgml:
7416         * doc/pl/usage-objects.sgml:
7417         * doc/pl/usage-quickstart.sgml:
7419         - Change the DTD declration from an outdated GNOME one to a
7420         standard DTD.
7421         
7422         - Remove close tags for <graphics> which aren't allowed for
7423         docbook SGML
7424         
7425         - A hacky fix for a problem where some versions of db2html don't
7426         create *.css files. (If *.css doesn't match anything, then you get
7427         the global explicitely.)
7429         (Closes: #92061)
7430         
7431 2002-09-24  Cyrille Chépélov  <cyrille@chepelov.org>
7433         * objects/custom/custom_object.c: 
7434         * objects/custom/shape_info.[ch]: GE_TEXT display lists elements 
7435         were never properly prepared for use when reloading a shape with
7436         <svg:text> elements. Thanks to Scott Frazer <frazer@nc.rr.com> for
7437         reporting the problem and coming up with a fix! (Closes: #93974)
7439         * app/menus.c: patch from Alan Horkan <horkana@tcd.ie>: review
7440         the menu shortcuts towards better GNOME HIG compliance (Closes: #87157)
7442         * app/menus.c:
7443         * app/display.c: updated menu item paths Alan's patch had moved.
7444         
7445         * app/interface.c: Fixed a crash when gdk-pixbuf doesn't want to
7446         load the sheet-provided icon (libpng versions mismatch, grrr.).
7447         
7448         * configure.in:
7449         * objects/Makefile.am:
7450         * objects/Misc/Makefile.am (NEW):
7451         * objects/Misc/libmisc.c (NEW):
7452         * objects/Misc/analog_clock.c (NEW):
7453         * objects/Misc/pixmaps/analog_clock.xpm (NEW):
7454         * sheets/Misc.sheet.in: just a little experiment...
7456 2002-09-23  Cyrille Chepelov  <cyrille@chepelov.org>
7458         * plug-ins/xlst/Makefile.am: found a way to silence automake while
7459         not forcing everyone to build using libxslt.
7461         * lib/font.c: 
7462         * lib/message.c:
7463         * lib/object_defaults.c:
7464         * lib/intl.[ch]:
7465         * lib/render.c:
7466         * lib/properties.[ch]:
7467         * lib/propobject.c:
7468         * objects/standard/box.c: 
7469         * objects/UML/state_term.c:
7470         * objects/FS/box.c:
7471         * objects/FS/flow-ortho.c:
7472         * app/app_procs.c:
7473         * app/autosave.c:       
7474         * app/commands.c:
7475         * app/diagram_tree.c:
7476         * app/display.c:
7477         * app/disp_callbacks.c:
7478         * app/export_png.c:
7479         * app/filedlg.c:
7480         * app/lineprops_area.c:
7481         * app/menus.c:  
7482         * app/preferences.c:
7483         * app/render_eps.c:     
7484         * app/sheets.c:
7485         * app/sheets_dialog_callbacks.c:
7486         * plug-ins/xslt/xslt.c:
7487         * plug-ins/metapost/render_metapost.c:
7488         * plug-ins/xfig/xfig-export.c:
7489         * plug-ins/shape/shape-export.c:
7490         
7491         Killed most gcc-3.2 warnings (const-correctness and derived warnings, 
7492         unused variables, mostly)
7494         * app/display.c:
7495         * app/menus.c: enabled GTK Input Methods (thanks Lars!)
7497         * app/Makefile.am: modified run_dia.sh so that we recover the
7498         ability to run a debugger despite libtool's hacks.
7500         * plug-ins/dxf/Makefile.am: 
7501         * app/Makefile.am
7502         "make distcheck" fixes.
7503         
7504 2002-09-19  Lars Clausen  <lrclause@cs.uiuc.edu>
7506         * objects/UML/uml.c (uml_get_operation_string): Patch from Mauf
7507         <mfranzoni@madd.it>:  Check for the type being NULL.
7509 2002-09-16  Lars Clausen  <lrclause@cs.uiuc.edu>
7511         * app/render_eps.c (set_font): Re-tweaked font size for printing.
7513 2002-09-12  Cyrille Chepelov  <cyrille@chepelov.org>
7515         Patch from Angus Ainslie <angusa@deltatee.com>:
7516         * plug-ins/dxf/dxf-import.c:
7517         * plug-ins/dxf/autocad_pal.h: Import from visio 2002 improvements.
7519         (plus a couple extra fixes by me, such as the removal of printf's,
7520         adapting for recent changes, and killed a couple warnings) 
7522         * app/authors.h: a 60K patch isn't insignificant, is it?
7523         
7524 2002-09-09  Tor Lillqvist  <tml@iki.fi>
7526         * configure.in: Check for both pangoft2 (using PKG_CHECK_MODULES,
7527         as before) and -lfreetype (using AC_CHECK_LIB). At least on
7528         Solaris with Sun's compiler (Forte C), you need to link also the
7529         dia application with -lfreetype, even if it is implicitly linked
7530         to by -lpangoft2. Rename FREETYPE_CFLAGS and _LIBS to PANGOFT2_*,
7531         which is what they actually mean. Use FREETYPE_LIBS for
7532         -lfreetype.
7534         Don't look for libsunmath if isinf() is not found in math.h (as on
7535         Solaris). The sunmath library is part of Forte C and not present
7536         on all machines. Besides, even if isinf was found in libsunmath,
7537         we didn't use it in the Makefile.am.
7538         
7539         Fix a couple of bashisms.
7541         AC_SUBST also Z_LIBS, need to link the dia application to -lz,
7542         too, on Solaris with Forte C.
7544         Don't try to use the gcc flags with other compilers.
7545         DIA_CHECK_CFLAG gives a false indication that Forte C understands
7546         the gcc -f switches, but in fact they get interpreted meaning
7547         something completely different.
7549         Define the automake conditional HAVE_CGC.
7550         
7551         * app/Makefile.am (dia_LDADD): Add Z_LIBS and FREETYPE_LIBS.
7553         Use -export-dynamic only with gcc.
7555         * */Makefile.am
7556         * */*/Makefile.am: Modify according to the FREETYPE_CFLAGS -> 
7557         PANGOFT2_CFLAGS rename.
7559         * lib/geometry.h: Drop HAVE_SUNMATH_H and <sunmath.h> per above.
7560         
7561         * lib/dia_xml.c: Include geometry.h for the isinf() stuff on
7562         Solaris.
7564         * lib/paper.c: Workaround for gccism: Can't use inline this way with
7565         Forte C, either.
7567 2002-09-08  Cyrille Chepelov  <cyrille@chepelov.org>
7569         * lib/text.c(set_string): fixed a memory leak (char* ain't no
7570         std::auto_ptr<char> !).
7572         * app/display.[ch]:
7573         * app/interface.[ch]:
7574         * app/ddisp_callbacks.[ch]: Added some basic support for input 
7575         methods (GtkIMContext-based)
7577         * lib/Makefile.am:
7578         * app/Makefile.am: made libdia a shared object (per Tor
7579         Lillqvist's suggestion/request), to cope for platforms with a less
7580         than par dynamic library loader.
7582         * app/display.c: disabled the input method menu (I really don't
7583         see where and how to put them. Blame Frozen Bubble )
7584         
7585 2002-09-06  Lars Clausen  <lrclause@cs.uiuc.edu>
7587         * objects/flowchart/box.c (box_update_data): Made resizing
7588         possible again (only set width & height when resized too small).
7590         Patch from Soeren Sandmann <sandmann@daimi.au.dk>:
7592         * app/disp_callbacks.c (ddisplay_canvas_events): Handle
7593         GdkScrollEvents.
7594         
7595 2002-09-05  Cyrille Chepelov  <cyrille@chepelov.org>
7597         * app/authors.h: now showing Akira TAGOH's name in the native script.
7599 2002-09-01  Lars Clausen  <lrclause@cs.uiuc.edu>
7601         * plug-ins/xslt/xslt.c: Removed glib warning for unset
7602         DIA_PLUGIN_PATH.
7604 2002-09-01  Cyrille Chepelov  <cyrille@chepelov.org>
7606         * plug-ins/svg/render_svg.c: Applied (reversed...) patch from
7607         Mike Sowka <msowka@rogers.com>. This fixes a problem with the
7608         sweep flag in arcs.
7610 2002-08-31  Lars Clausen  <lrclause@cs.uiuc.edu>
7612         * objects/UML/class.c: Fixed showing of empty stereotypes and got
7613         the string placed correctly.
7615 2002-08-30  Hans Breuer  <hans@breuer.org>
7617         * lib/font.c (dia_font_get_style) : don't shift already
7618         shifted DIA_FONT values.
7620         * lib/libdia.def : updated externals
7622         * app/disp_callbacks.c : on win32 GdkEventKey::string already
7623         is in UTF-8. (Longterm this probably should be handled on the
7624         gtk api level)
7626         * app/command.[hc] app/display.[hc] app/menus.c : add code to 
7627         switch display renderers again. The libart renderer is very 
7628         useful for win9x with it's limited GDI.
7630         * app/render_gdk.c : use g_warning instead of printf which gets
7631         nowhere on win32 (non console apps)
7633         * app/render_libart.c : make it compile without FREETYPE
7635         * objects/makefile.msc plug-ins/makefile.msc : added clean target
7637 2002-08-29  Lars Clausen  <lrclause@cs.uiuc.edu>
7639         * app/render_eps.c (postscript_draw_contour): Debugging statement
7640         that allowed me to figure out font problems.
7642         * lib/widgets.c (dia_font_selector_set_styles): Use radio menu
7643         items for font styles.
7645         * objects/FS/flow-poly.c: 
7646         * objects/FS/flow-ortho.c: 
7647         * objects/FS/flow.c: Further conversion away from GTK dialogs.
7648         Can't set a default label right now:(
7650         * app/interface.c (fill_sheet_wbox): Added initialization for mask.
7652 2002-08-27  Cyrille Chepelov  <cyrille@chepelov.org>
7653         Patch from Andrew Ferrier  <andrew@new-destiny.co.uk>:
7655         * Makefile.am: rules relating to AUTHORS and THANKS
7656         altered.
7657         * AUTHORS: file content changed to more accurately
7658         reflect guideline requirements.
7659         * TODO: warning added about Gnome BTS.
7660         * KNOWN_BUGS: warning added about Gnome BTS.
7662         ---
7664         * AUTHORS: added full copyright info.
7665         * mkauthors-placeholder: (removed) 
7666         
7667 2002-08-27  Lars Clausen  <lrclause@cs.uiuc.edu>
7669         * app/paginate_psprint.c (print_page): Fixed text printing after
7670         tip from Dov Grobgeld.
7672 2002-08-26  Lars Clausen  <lrclause@cs.uiuc.edu>
7674         * app/paginate_psprint.c (print_page): Fixed color of clip
7675         region.
7677 2002-08-26  Cyrille Chepelov  <cyrille@chepelov.org>
7679         * sheets/Makefile.am: enabled intltool-merge translation cache for
7680         sheets.
7682         * Makefile.am:
7683         * mkauthors-placeholder:
7684         * AUTHORS: revived that file (in a placeholder form) so that
7685         automake stops yelling.
7686         (derived from a patch by Andrew Ferrier <andrew@new-destiny.co.uk>) 
7687         (Closes: #91144)
7689         Heh, by the way, thanks Christophe. I feel better now.
7690         
7691 2002-08-25  Christophe Merlet  <christophe@merlet.net>
7693         * app/command.c: Removed invalid multibyte sequence in Chepelov.
7695 2002-08-24  Lars Clausen  <lrclause@cs.uiuc.edu>
7697         * lib/dia_image.c (dia_image_rgb_data): 
7698         Bugfixes in image data retrieval.
7699         
7700         * app/render_eps.c: Refactoring of new_*_renderer.
7702 2002-08-23  Lars Clausen  <lrclause@cs.uiuc.edu>
7704         * app/render_eps.c: 
7705         * lib/dia_image.h: 
7706         * lib/dia_image.c: Support for rowstride != width (odd width images)
7708 2002-08-20  Lars Clausen  <lrclause@cs.uiuc.edu>
7710         * lib/paper.c (get_paper_info): Fixed NULL prefs problem.
7711         * plug-ins/xfig/xfig-import.c: Removed assertion.
7713 2002-08-18  Lars Clausen  <lrclause@cs.uiuc.edu>
7715         * lib/paper.c: Removed app/preferences.h reference.
7717 2002-08-14  Lars Clausen  <lrclause@cs.uiuc.edu>
7719         * plug-ins/svg/svg-import.c: 
7720         * plug-ins/xfig/xfig-import.c: 
7721         * lib/Makefile.am (libdia_a_SOURCES): 
7722         * objects/standard/Makefile.am (libstandard_objects_la_SOURCES): 
7723         * lib/create.h:
7724         * objects/standard/create.h:
7725         * objects/standard/polygon.c (polygon_create): 
7726         * objects/standard/polyline.c (polyline_create): 
7727         * objects/standard/beziergon.c (beziergon_create): 
7728         * objects/standard/bezier.c (bezierline_create): 
7729         Moving create.h into lib.
7731 2002-08-13  Lars Clausen  <lrclause@cs.uiuc.edu>
7733         * app/render_libart.[ch]: Work on PNG font export.  Something's
7734         still fishy with the scaling, I don't get it.
7736         * app/display.c: 
7737         * app/interface.c: Replaced broken zoom combo with entry+menu.
7738         Now works beautifully.  Removed WITHOUT_ZOOM_COMBO stuff.
7740         * app/render_gdk.c (get_text_width): Checks for validity of text.
7741         Temporary help while debugging input -- should only activate on
7742         invalid input.
7744         * objects/SADT/annotation.c: 
7745         * objects/GRAFCET/transition.c: 
7746         * objects/FS/function.c: Removal of gtk.h include.
7748         * objects/UML/state.c (state_load): Warnings about using State
7749         object for initial/final states.
7751         * plug-ins/cgm/cgm.c (init_fonts): Proper Pango interfacing.
7753 2002-08-12  Lars Clausen  <lrclause@cs.uiuc.edu>
7755         * app/render_eps.c: Text rendering that scales correctly.  Too bad
7756         the standard fonts don't get selected right.
7758 2002-08-09  Lars Clausen  <lrclause@cs.uiuc.edu>
7760         * lib/diagramdata.h: 
7761         * lib/paper.c (get_paper_info): 
7762         * lib/paper.h: 
7763         * plug-ins/xfig/xfig-import.c: 
7764         Committed before testing.  I am so embarrased.  This compiles, now
7765         that the includes are in the right order.
7766         
7767         * app/diagram.c (diagram_init): 
7768         * app/app_procs.c (do_convert): 
7769         * app/preferences.h: 
7770         * lib/diagramdata.h: 
7771         * lib/diagramdata.c (new_diagram_data): 
7772         * lib/paper.h: 
7773         * lib/paper.c (get_paper_info): 
7774         Moved new_diagram part of prefs into lib/diagramdata.h.  More
7775         could be done in new_diagram_data() now.
7777 2002-08-08  Lars Clausen  <lrclause@cs.uiuc.edu>
7779         * app/render_eps.c: Better scaling of fonts at non-normal zoom.
7781 2002-08-07  Cyrille Chepelov <cyrille@chepelov.org>
7783         * configure.in: removed silly user-visible comment
7785         (actually, this is a dummy entry before I manually run nemo; for
7786         some dist-upgrade related reason, this morning's run aborted before
7787         the snapshots were created)
7788         
7789 2002-08-06  Lars Clausen  <lrclause@cs.uiuc.edu>
7791         * objects/network/wanlink.c: 
7792         * objects/network/bus.c: 
7793         stdprop compliance!
7795         * objects/custom/custom_object.c: 
7796         * objects/network/wanlink.c: 
7797         * objects/flowchart/parallelogram.c: 
7798         * objects/flowchart/ellipse.c: 
7799         * objects/flowchart/diamond.c: 
7800         * objects/flowchart/box.c: 
7801         Removed GTK defaults stuff.
7802         
7803         * objects/UML/fork.c: 
7804         * objects/UML/object.c: 
7805         * objects/UML/lifeline.c: 
7806         * objects/UML/branch.c: 
7807         * objects/GRAFCET/transition.c: 
7808         * objects/FS/function.c: Removed GTK include.
7810         * objects/FS/flow-ortho.c: 
7811         * objects/FS/flow.c: Made the label behave again.
7812         Also removed GTK defaults stuff.
7814 2002-08-06  Hans Breuer  <hans@breuer.org>
7816         * app/autosave.c : ported to GDir which is the improved
7817         cross platform replacement for <dirent.h>
7819         * app/makefile.msc : build autosave.obj
7821         * app/font.c : some (bad?) code calls 
7822         dia_font_scaled_decent() not only with empty string but 
7823         with NULL. Handle it gracefully.
7825         * lib/paper.c : don't depend on ../app. Although IMO
7826         this shouldn't be allowed on any platform it is only
7827         disabled for win32, where it simply doesn't work
7828         this way
7830         * lib/widget.c (strcase_equal) : pass char* to g_strcasecmp()
7832         * objects/fs/flow.c : conditionalize debug spew, disabled
7833         and 'ported' to use g_print. Simple printf won't work with
7834         standard win32 gui apps, may even crash them.
7836         * plug-ins/makefile.msc : DISABLED svg-import cause it
7837         depends on ../objects/custom. This not only break the
7838         build for all non ELF systems but IMO also isn't acceptable
7839         from a design point of view. See dia-list mail on subject.
7841         * plug-ins/python/makefile.msc :
7842           plug-ins/python/python.c : remove all references to dirent    
7844 2002-08-05  Cyrille Chepelov  <cyrille@chepelov.org>
7846         * configure.in: added ro to ALL_LINGUAS
7848         * po-checktrans:
7849         * po-checktrans.py:
7850         * ../translation-graphs/transgraph.py: added support for fuzzy
7851         translations. Enlarged the graphs.
7853 2002-08-05  Lars Clausen  <lrclause@cs.uiuc.edu>
7855         * app/disp_callbacks.c (ddisplay_canvas_events): Now translates
7856         key events according to locale.  No clue if this works for
7857         advanced stuff.
7859 2002-08-04  Lars Clausen  <lrclause@cs.uiuc.edu>
7861         * lib/text.c: Various UTF8 related fixes, in particular in
7862         deleting.  Text_insert_char is fine, far as I can tell.
7864         * app/interface.c (create_display_shell): 
7865         * app/commands.c: Now uses gtk_clipboard functions, for they are
7866         much simpler.  Also handles Win32 clipboard.  Non-ascii chars
7867         don't seem to get handled correctly by text_insert_char in
7868         lib/text.c.
7869         
7870         * app/commands.c (received_selection_handler): Got utf8 handling
7871         on paste, and individual char handling out of commands.c.  Pasting
7872         non-ASCII is still broken, somehow.  It's all lib/text.c's fault.
7874         * lib/message.c (gtk_message_internal): Message dialog re-shown
7875         when new message appears.  Maybe it should even move to top?
7877         * lib/font.c: 
7878         * lib/widgets.c: 
7879         * app/render_eps.c (create_eps_renderer): Fonts now lowercase
7880         (again) and case-insensitive.
7882         * objects/GRAFCET/condition.c (CONDITION_FONT): Changed to
7883         BASIC_SANS_FONT. 
7885 2002-08-02  Lars Clausen  <lrclause@cs.uiuc.edu>
7887         * app/commands.c (edit_cut_text_callback): 
7888         * lib/text.c (text_delete_all): Now functioning undo for text cut.
7889         
7890         * app/commands.c (edit_cut_text_callback): Now removes text.
7891         Undo is broken, though.
7893 2002-08-01  Lars Clausen  <lrclause@cs.uiuc.edu>
7895         * app/diagram.c (diagram_update_menu_sensitivity): 
7896         Making cut_text active.
7897         
7898         * app/commands.h: 
7899         * app/commands.c: Using PROP_TYPE_TEXT to find text to copy to
7900         clipboard.  Also removed AA callback.   
7902 2002-08-01  Lars Clausen  <lrclause@cs.uiuc.edu>
7904         * objects/chronogram/chronoref.c: 
7905         * objects/chronogram/chronoline.c: 
7906         * objects/SADT/annotation.c: 
7907         * objects/SADT/arrow.c: 
7908         * objects/SADT/box.c: 
7909         * objects/GRAFCET/vergent.c: 
7910         * objects/GRAFCET/vector.c: 
7911         * objects/GRAFCET/step.c: 
7912         * objects/GRAFCET/condition.c: 
7913         * objects/GRAFCET/action.c: 
7914         * objects/ER/participation.c: 
7915         * objects/ER/relationship.c: 
7916         * objects/ER/entity.c: 
7917         * objects/ER/attribute.c: 
7918         Removing unnecessary GTK references.
7920 2002-07-31  Lars Clausen  <lrclause@cs.uiuc.edu>
7922         * objects/standard/image.c: 
7923         * objects/standard/textobj.c: 
7924         * objects/standard/ellipse.c: 
7925         * objects/standard/polygon.c: 
7926         * objects/standard/beziergon.c:
7927         * objects/standard/box.c: 
7928         Making default default properties.
7929         
7930         * objects/standard/image.c: 
7931         * objects/standard/arc.c: 
7932         * objects/standard/box.c: 
7933         * objects/standard/zigzagline.c: 
7934         * objects/standard/polyline.c: 
7935         * objects/standard/line.c: 
7936         * objects/standard/ellipse.c: 
7937         * objects/standard/polygon.c: 
7938         * objects/standard/beziergon.c: Removing vestigal GTK stuff.
7940         * lib/object_defaults.c (dia_object_default_create): 
7941         * lib/proplist.c: 
7942         * lib/properties.h: 
7943         * lib/object.c (object_copy_using_properties): 
7944         * lib/propdialogs.c: 
7945         * lib/propinternals.h: 
7946         * lib/propobject.c (object_create_props_dialog)
7947         (object_copy_props): 
7948         Removing the standard (toolbox) properties from defaults dialogs.
7950 2002-07-30  Lars Clausen  <lrclause@cs.uiuc.edu>
7952         * lib/font.c (dia_font_scaled_string_width) 
7953         (dia_font_scaled_ascent, dia_font_scaled_descent): Account for
7954         zoom factor.
7955         * lib/text.c (text_calc_boundingbox): Take descent into account.
7957         * objects/standard/bezier.c (bezierline_draw): 
7958         * lib/render.c (draw_bezier_with_arrows): 
7959         Better arrow drawing for beziers.  Doesn't change the mouse-click
7960         area either.
7962         * lib/arrows.h: Some const-ness.
7964         * lib/arrows.c (calculate_arrow_point): Initialize zero-length moves.
7966         * lib/render.c (draw_arc_with_arrows): 
7967         * objects/standard/arc.c (arc_draw): Better arrow drawing for
7968         arcs.  Doesn't change the mouse-click area yet.
7970         * app/menus.c: Forgotten fix:  Redraw menu item for non-Gnome.
7972         * lib/render.h: 
7973         * lib/render.c: 
7974         Arc arrow prework.
7976 2002-07-29  Lars Clausen  <lrclause@cs.uiuc.edu>
7978         * app/group.c (group_draw): Forgotten commit: Groups to draw as
7979         objects (using default routines).
7981         * app/object_ops.h: 
7982         * app/diagram.h: 
7983         * lib/diagramdata.h: 
7984         * lib/diagramdata.c (layer_find_closest_connectionpoint): 
7985         * objects/standard/zigzagline.c (zigzagline_move_handle): 
7986         * app/diagram.c (diagram_find_closest_connectionpoint): 
7987         * plug-ins/python/pydia-diagram.c
7988         (PyDiaDiagram_FindClosestConnectionPoint):
7989         * app/object_ops.c (object_connect_display) 
7990         (object_find_connectpoint_display) 
7991         * app/create_object.c (create_object_button_press) 
7992         (create_object_motion): 
7993         * app/modify_tool.c (modify_motion): 
7994         Adding object param to allow connectionpoint and handle coinciding.
7996         * objects/standard/zigzagline.c (zigzagline_check_orientation): 
7997         Fixing minor problems.
7999         * objects/standard/ellipse.c (ellipse_update_data): 
8000         Added direction hints.
8002         * lib/diagramdata.c: 
8003         * lib/object.c: 
8004         * lib/object.h: 
8005         * lib/diagramdata.h: 
8006         * objects/standard/zigzagline.c: 
8007         First working example of zigzagline hints, currently only between
8008         Box and Zigzagline.
8010 2002-07-27  Steffen Macke <sdteffen@web.de>
8012         * plug-ins/svg/render_svg.c: added support for rounded
8013         rectangles (fixes #69053 if compile with
8014         -DNEW_RENDER_OPS)
8015         * object/custom/shape_info.[c|h]: made parse_style and
8016         parse_path accessible for svg plug-in
8017         * plug-ins/svg/Makefile.am:
8018         * plug-ins/svg/svg.c:
8019         * plug-ins/svg/svg-import.c(new): added SVG import filter
8021 2002-07-27  Lars Clausen  <lrclause@cs.uiuc.edu>
8023         * objects/standard/box.c: 
8024         * objects/standard/zigzagline.c (zigzagline_move): 
8025         More work on zigzagline hints.
8027 2002-07-26  Lars Clausen  <lrclause@cs.uiuc.edu>
8028         * lib/connectionpoint.h: 
8029         Hints for zigzaglines.
8031         * app/properties.c (properties_show): 
8032         * app/defaults.c (defaults_show): 
8033         * lib/properties.h: 
8034         * lib/propobject.c (object_create_props_dialog): 
8035         * lib/object.h: 
8036         * objects/FS/flow-poly.c: 
8037         * objects/network/wanlink.c: 
8038         * objects/network/bus.c: 
8039         * objects/UML/class.h: 
8040         * objects/UML/class_dialog.c: 
8041         * objects/UML/association.c: 
8042         Start of removing toolbox props from props dialogs.
8043         
8044         * lib/widgets.c: 
8045         * lib/arrows.h: 
8046         * app/lineprops_area.c (dia_arrow_chooser_new): 
8047         * lib/arrows.c: Two new arrows: Concave, filled and blanked.
8049         * app/create_object.c: 
8050         * app/modify_tool.c: 
8051         * app/cursor.h: 
8052         * app/cursor.c: 
8053         More cursor change.
8055 2002-07-25  Lars Clausen  <lrclause@cs.uiuc.edu>
8057         * app/preferences.c: 
8058         * lib/paper.c: 
8059         * app/diapagelayout.c: 
8060         New prefs selector kind PREF_CHOICE chooses between a list of
8061         strings.  Used for picking default paper.
8062         
8063         * app/preferences.c (prefs_data): 
8064         * lib/paper.c (get_paper_info): Added prefs setting for
8065         is_portrait.
8067         * lib/render.c (draw_polyline_with_arrows): Handles degenerate
8068         line segments at the ends (bug #86603).
8070 2002-07-25  Lars Clausen  <lrclause@cs.uiuc.edu>
8072         * objects/standard/zigzagline.c (zigzagline_copy): Fix for bug
8073         #60324: Now calls update_data after copy.
8075         * app/interface.c (fill_sheet_wbox): Better fix for bug #88601:
8076         Now doesn't steal selection from non-object tools.
8078 2002-07-24  Lars Clausen  <lrclause@cs.uiuc.edu>
8080         * app/commands.c (help_manual_callback): Uses BROWSER environment
8081         variable when available.
8083 2002-07-23  Lars Clausen  <lrclause@cs.uiuc.edu>
8085         * app/interface.c (fill_sheet_wbox): Fix for bug #88601: Select an
8086         object from the new sheet when changing.
8088         * app/app_procs.c (app_init): Uses more standard size icon, from
8089         patch #56433.  Keeping old icon as dia_gnome_icon_large.png.
8091 2002-07-22  Lars Clausen  <lrclause@cs.uiuc.edu>
8093         * objects/UML/implements.c (implements_update_data): 
8094         * objects/UML/realizes.c (realizes_update_data): 
8095         * objects/UML/dependency.c (dependency_update_data): 
8096         Test for null strings before calling on ascent.
8098         * objects/UML/realizes.c (realizes_draw): 
8099         * objects/UML/message.c (message_draw): 
8100         * objects/UML/generalization.c (generalization_draw): 
8101         * objects/UML/dependency.c (dependency_draw) 
8102         * objects/UML/constraint.c (constraint_draw): 
8103         * objects/GRAFCET/condition.c (condition_draw): 
8104         * objects/UML/association.c (association_draw): 
8105         * objects/FS/flow-ortho.c (orthflow_draw): 
8106         * objects/FS/flow.c (flow_draw): Change to use
8107         draw_foo_with_arrows.  Pretty pretty arrows.  Yay me!
8109         * lib/render.h: 
8110         * lib/arrows.c (calculate_arrow_point): 
8111         * lib/arrows.h: 
8112         * lib/render.c: 
8113         * objects/standard/zigzagline.c:
8114         * objects/standard/polyline.c:
8115         * objects/standard/line.c: Work towards better arrow drawing.
8117 2002-07-21  Lars Clausen  <lrclause@cs.uiuc.edu>
8119         * objects/UML/state.c: Starting phase-out of State object as
8120         initial/final state (which never worked right).
8122         * app/app_procs.c (app_init): --version command line option for
8123         non-Gnome.
8125         * configure.in: Slight improvement in GETTEXT_PACKAGE handling.
8127 2002-07-19  Lars Clausen  <lrclause@cs.uiuc.edu>
8129         * app/render_eps.c: Removed debugging info.
8131         * lib/font.c (dia_font_scaled_ascent, dia_font_scaled_descent):
8132         Kludge to make ascent and descent work for empty strings.  Won't
8133         work when using non-ASCII fonts.  Better would be to get a
8134         PangoFont and ask directly.
8136         * configure.in: Simple define of GETTEXT_PACKAGE, and some updates
8137         of the init stuff.
8139         * app/render_gdk.c (get_text_width): Fixed use of wrong string.
8140         Cursor now better.
8142 2002-07-18  Lars Clausen  <lrclause@cs.uiuc.edu>
8144         * plug-ins/xfig/xfig-export.c: First use of draw_object render
8145         function: All shapes are now groups in XFig export.
8147         * lib/diagramdata.c (normal_render): 
8148         * lib/render.c: 
8149         * lib/render.h: 
8150         * app/display.c (ddisplay_obj_render): 
8151         New render function for drawing objects, allows renderers to group
8152         or otherwise specially handle objects.  We may want to reconsider
8153         calling it in app/display.c, as we 'know' the object draw function
8154         is the default one there.
8156         * lib/Makefile.am: Removed extra \ that broke stuff.
8158         * plug-ins/xfig/xfig-import.c: 
8159         Spline import for xfig.  Not perfect.
8161         * objects/standard/create.h: 
8162         * objects/standard/bezier.c (bezierline_create): 
8163         * lib/bezier_conn.c: 
8164         * lib/beziershape.c (beziershape_set_points): 
8165         * lib/bezier_conn.h: 
8166         * lib/beziershape.h: 
8167         Support for creating beziers non-interactively.
8169 2002-07-17  Lars Clausen  <lrclause@cs.uiuc.edu>
8171         * plug-ins/xfig/xfig-import.c: Support for polygons and
8172         polylines.  Special warning handling system removed.
8174         * lib/message.c (gtk_message_internal): Fixed bug involving
8175         closing message window and then getting repeated message.
8177         * Makefile.am: 
8178         * autogen.sh: 
8179         * configure.in (GETTEXT_PACKAGE): 
8180         Update based on bug #88199.  Hopefully this doesn't break too much
8181         intl stuff.
8183         * dia.desktop.in (_Comment): Changed after suggestion from
8184         calum.benson@ireland.sun.com (bug 88345)
8186         * app/sheets_dialog_callbacks.c: Fix from Dolores Alia de Saravia
8187         <loli@unsa.edu.ar> that makes user/system distinction better.
8189 2002-07-16  Lars Clausen  <lrclause@cs.uiuc.edu>
8191         * app/render_libart.c: Got the context right, removed crashes.
8193         * app/commands.c: 
8194         * app/commands.h: 
8195         Redraw menu item.
8197         * app/display.c: 
8198         * app/display.h: 
8199         * app/interface.c: 
8200         * app/menus.c: 
8201         Remove libart #defines from most places (still around for png export).
8203         * app/render_libart.h: 
8204         * app/render_libart.c: 
8205         * configure.in (HAVE_LIBART): 
8206         Starting on update of libart stuff for png export (without X).
8208         * app/autosave.h (autosave_check_autosave): 
8209         * app/load_save.h: 
8210         * app/diagram.h: 
8211         * app/Makefile.am (dia_core_files): 
8212         * app/load_save.c: 
8213         * app/diagram.c (diagram_set_modified): 
8214         * app/autosave.c: 
8215         * app/app_procs.c (app_init): 
8216         Autosave support.  No automatic restore yet.
8218 2002-07-16  Lars Clausen  <lrclause@cs.uiuc.edu>
8220         * app/render_eps.c (create_eps_renderer): #ifdef'd a scale
8221         assignment. 
8222         
8223 2002-07-15  Lars Clausen  <lrclause@cs.uiuc.edu>
8225         * app/interface.c (fill_sheet_menu): Tear-off for sheets menu.
8227 2002-07-15  Andrew Ferrier  <andrew@new-destiny.co.uk>
8229         * Fix for 'make dist' etc. --- problem caused by
8230         previous AUTHORS patch.
8232 2002-07-14  Lars Clausen  <lrclause@cs.uiuc.edu>
8234         * plug-ins/cgm/cgm.c (init_fonts): Changed pango_font_map to
8235         pango_context. 
8236         (set_font): NULL check.
8237         
8238 2002-07-12  Lars Clausen  <lrclause@cs.uiuc.edu>
8240         * app/disp_callbacks.c: 
8241         * lib/diamenu.h: 
8242         Addition to the object menus allows check menu items.
8244 2002-07-11  Andrew Ferrier  <andrew@new-destiny.co.uk>
8246         * HACKING: completely changed to bring up-to-date.
8247         * AUTHORS: file needs REMOVING from CVS as now
8248           dynamically generated.
8249         * app/authors.h: split into subcategories for original
8250           authors, maintainers, etc.
8251         * app/app_procs.c: --credits rewritten to support new
8252           app/authors.h
8253         * app/commands.c: no changes to about box code, comment
8254           added though.
8255         * Makefile.am: added rule for AUTHORS. I'm still
8256           inexperienced with automake, it seems to work, but
8257           for AUTHORS-related bugs, look at this change first.
8259 2002-07-10  Lars Clausen  <lrclause@cs.uiuc.edu>
8261         * plug-ins/Makefile.am (SUBDIRS): Just realized why my hack didn't
8262         work.  Back to including xslt dir always.
8264         * objects/UML/uml.c: 
8265         * objects/UML/class.h: 
8266         * objects/UML/class_dialog.c: 
8267         * objects/UML/class.c: Patch from
8268         <mattam@netcourrier.com>:  Adds comment visibility switch, also
8269         fixes various bugs.
8271         Big patch from Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
8272         for state/fork/activity stuff.
8273         * objects/UML/state.c: Removed old draw_rounded_rectangle code.
8274         * objects/UML/Makefile.am:
8275         * objects/UML/uml.c:
8276         * sheets/UML.sheet.in: Added new objects activity, fork,
8277           state_term.
8278         * objects/UML/pixmaps/state_term.xpm:
8279         * objects/UML/state_term.c: New, only initial/final states.
8280         * objects/UML/pixmaps/activity.xpm:
8281         * objects/UML/activity.c: New, activity state.
8282         * objects/UML/pixmaps/fork.xpm:
8283         * objects/UML/fork.c: New, fork/join bar.
8284         * objects/UML/pixmaps/state.xpm: state icon.
8286         
8287         * doc/diagram.dtd: 
8288         * doc/shape.dtd: Patch from "Dolores Alia de Saravia"
8289         <loli@unsa.edu.ar> to add dia: to diagram.dtd elements and add
8290         svg:text to shape.
8292 2002-07-07  Lars Clausen  <lrclause@cs.uiuc.edu>
8294         * plug-ins/Makefile.am (SUBDIRS): Made the XSLT dir depend on
8295         detecting XSLT
8297         * app/Makefile.am: Commented out the diaconv parts while it's not
8298         used anyway.  To come back later.
8300         * configure.in (HAVE_FREETYPE): 
8301         * app/app_procs.c: 
8302         * app/render_eps.h: 
8303         * app/render_eps.c: Support for printing with freetype, better
8304         encapsulated now.  Renders the text nicely, but ignores font
8305         setting.  Requires pangoft2 to get the font outline, but non-text
8306         objects can still be rendered without it.
8308         * app/commands.h: 
8309         * app/commands.c (objects_place_up_callback) 
8310         (objects_place_down_callback): 
8311         * app/diagram.h: 
8312         * app/diagram.c (diagram_place_down_selected) 
8313         (diagram_place_up_selected): Starting support for moving objects
8314         one level up/down.
8316         * app/menus.c: Removed character/numeral shortcuts.
8318 2002-07-06  Hans Breuer  <hans@breuer.org>
8320         * makefile.am app/makefile.am lib/makefile.am
8321           objects/makefile.am plug-ins/makefile.am 
8322           plug-ins/python/makefile.am :
8323         added required files for win32 build to EXTRA_DIST
8325         * app/paginate_psprint.c app/render_eps.c 
8326           app/app_procs.c :
8327         wrap (E)PS Renderer into HAVE_FREETYPE, no FreeType
8328         on Pango as currently is on win32 => no PostScript 
8329         anymore.
8331         * lib/widgets.c : undef GTK_DISABLE_DEPRECATED;
8332         use '/* noop */;' for empty case labels; replace
8333         debug spew printf with g_print which is guaranteed 
8334         to work on win32, too.
8336         * lib/font.c (dia_pfd_set_weight) : set 'intermediate' values 
8337         for DIA_FONT_MEDIUM and DIA_FONT_DEMIBOLD as explicit allowed 
8338         in the pango_font_description_set_weight() api documentation
8339         Take care for them in dia_font_get_style() too.
8341         * lib/font.[hc] lib/widget.c objects/custom/shape_info.c
8342           plug-ins/shape/shape-export.c plug-ins/svg/render_svg.c :
8343         rename Obliquity to Slant which appears to be the usual name,
8344         also rename dia_font_get_style_string -> dia_font_get_slant_string
8346         * plug-ins/wmf/wmf.cpp : finally ported to new font api
8348         * lib/prop_attr.c app/render_gdk.c : dont *_unref if NULL
8350         * objects/uml/association.c class.c large_package.c message.c
8351         if g_free() is used g_strdup needs to be used.
8352         * objects/custom/shape_info.c
8353           objects/ER/attribute.c entity.c
8354           objects/standard/image.c 
8355           app/sheets_dialog_callbacks.c : more strdup cleaning
8357 2002-07-05  Lars Clausen  <lrclause@cs.uiuc.edu>
8359         * app/render_eps.c: Non-crashing printing (made the right
8360         context).  Font output still fscked up.
8362 2002-07-05  Andrew Ferrier  <andrew@new-destiny.co.uk>
8364         * app/authors.h: Added file --- now master
8365         location for contributors data.
8366         * app/app_procs.c: Added --credits option.
8367         * app/commands.c: Modified about box to use
8368         app/authors.h.
8370 2002-07-05  Lars Clausen  <lrclause@cs.uiuc.edu>
8372         * app/render_eps.c: First stab at EPS rendering using the contour
8373         code from PAPS.  Crashes.
8375 2002-06-30  Lars Clausen  <lrclause@cs.uiuc.edu>
8377         * app/recent_files.c (recent_file_history_remove): 
8378         Fixed call to g_list_delete_link discarding return value.
8379         
8380         * lib/widgets.c (dia_font_selector_set_styles): 
8381         * lib/font.h (DiaFontWeight): 
8382         * lib/font.c (dia_font_get_style): Revert to DIA_FONT_NORMAL==0
8384 2002-06-30  Cyrille Chepelov  <cyrille@chepelov.org>
8386         Contribution from Alan Horkan <horkana@tcd.ie>: 
8387         
8388         * shapes/Assorted/*
8389         * sheets/Assorted.sheet:
8390         A set of 40 assorted geometric shapes.
8392         * sheets/Assorted.sheet.in:
8393         * sheets/Makefile.am
8394         * shapes/Assorted/Makefile.am:
8395         * shapes/Makefile.am:
8396         * po/POTFILES.in:
8397         * configure.in:
8398         Done the integration job of Alan's shapes. (Translators: have fun!)
8400         * po/dia.pot: refreshed the main potfile.
8401         
8402 2002-06-28  Cyrille Chepelov  <cyrille@chepelov.org>
8404         Patch from Tim Ellis <Tim.Ellis@gamet.com>:
8405         
8406         * objects/UML/class.[ch]:
8407         * objects/UML/class_dialog.c:
8408         changed the number of connection points from a hardcoded value of
8409         8 to a #defined constant
8411         (I changed the constant back from 20 to 8, until we better know
8412         how we'll handle more connection points on the UML class in the
8413         future -- but Tim's patch is a welcome clean-up).
8415 2002-06-26  Cyrille Chepelov  <cyrille@chepelov.org>
8417         * shapes/MSE/demultiplexer.xpm:
8418         * shapes/MSE/node_center.xpm:
8419         * shapes/MSE/multiplexer.xpm:
8420         * shapes/MSE/tacsat.xpm: updated MSE icons (transparency) by Alan
8421         Horkan <horkana@tcd.ie>
8423 2002-06-25  Lars Clausen  <lrclause@cs.uiuc.edu>
8425         * lib/widgets.c: Total rehash of font selector, with font dialog
8426         option, expanding list (not LRU yet), and stuff.
8428 2002-06-25  Cyrille Chépélov  <cyrille@chepelov.org>
8430         * lib/font.h:
8431         * lib/font.c: 
8432         Added a set of new setter/getters, some of them more specially for
8433         the SVG-ish I/O.
8434         
8435         * plug-ins/shape/shape-export.c: (new_shape_renderer),
8436         (destroy_shape_renderer), (set_font), (draw_string):
8437         * plug-ins/svg/render_svg.c: (new_svg_renderer),
8438         (destroy_svg_renderer), (set_font), (draw_string):
8440         Actually exported the font face, style, weight and size (sodipodi
8441         agrees with dia on how a small sample should look like (a sample
8442         0.90 would not even display anyways). Yay !)
8444         Patch from Matthieu Sozeau <mattam@netcourrier.com>:
8446         * plug-ins/xslt/Makefile.am: repaired the mess Cyrille put there.
8448         (end of ChangeLog-less patch)
8450         * objects/custom/shape_info.c (parse_style): now understands the
8451         font-style and font-weight attributes as well. Does not use
8452         anymore dia_font_new_from_legacy_name().
8453         
8454 2002-06-24  Lars Clausen  <lrclause@cs.uiuc.edu>
8456         * objects/standard/textobj.c: Now uses stdprops for defaults.
8458         * lib/font.h: Changed order of DiaFontWeight entries.  Sorry.
8459         * lib/font.c (dia_font_get_style): Style now linear and conversion
8460         simple. 
8462         * lib/widgets.c (dia_font_selector_set_styles): Fixed the style
8463         selector. 
8465 2002-06-24  Cyrille Chepelov  <cyrille@chepelov.org>
8467         * plug-ins/dxf/dxf-import.c:
8468         using dia_font_new_from_style()
8470         Patch from Matthieu Sozeau  <mattam@netcourrier.com>:
8472         * objects/UML/class.[ch]: Added a comment field to class
8473         * objects/UML/uml.[ch]: Added a comment field to attributes,
8474         operations and parameters.
8475         * objects/UML/class_dialog.c: Added code for the new comment
8476         fields.
8477         * plug-ins/xslt/*.xsl: Added some code to handle comments.
8478         * plug-ins/xslt/xslt*.c: Clean up based on Cyrille comments.
8479         Added a $directory parameter for stylesheets so the output is 
8480         in the good place (not in the $PWD).
8482         (end of Patch)
8484         * AUTHORS: added contributors, updated maintainers. Removed the
8485         specific areas of action.
8487         * Patch from Andrew Ferrier <andrew@new-destiny.co.uk>, derived
8488         from a patch by Xing Wang <quixon@gnuchina.org>:
8490         * app/commands.c: help_about_callback now supports
8491         new-style GNOME about box as well as old GTK style. 
8492         code also tidied (Closes: #85726)
8494         (end of Patch)
8496         * app/commands.c: fixed the copyright (it's not all FSF), and
8497         maintainers. Synced contributors list with AUTHORS.
8498                 
8499 2002-06-24  Lars Clausen  <lrclause@cs.uiuc.edu>
8501         * lib/message.c: More work on repeating messages, now with
8502         togglable view.
8504 2002-06-24  Hans Breuer  <hans@breuer.org>
8506         * lib/widget.c : some more bits in place, at least
8507         it does something useful instead of crashing. Much
8508         better - but not all ok :-)
8510 2002-06-23  Lars Clausen  <lrclause@cs.uiuc.edu>
8512         * lib/message.c (gtk_message_internal): First stab at repeating
8513         message dialog.
8515 2002-06-23  Cyrille Chepelov  <cyrille@chepelov.org>
8517         * objects/FS/*.c:
8518         * objects/GRAFCET/*.c:
8519         * objects/SADT/*.c:
8520         * objects/UML/association.c: (one instance forgotten)
8521         * objects/UML/large_package.c: 
8522         * objects/standard/textobj.c:
8523         * lib/attributes.c:
8524         * lib/text.c:
8525         using dia_font_new_from_style()
8527 2002-06-23  Hans Breuer  <hans@breuer.org>
8529         * lib/font.c : giving some love to
8530         dia_font_new_from_legacy_name() that is making
8531         import of old files as painless as possible and
8532         provide an almost exact match where possible.
8533         It does not yet fully work because it interfers
8534         with the Style to DiaStyle conversion which comes
8535         next ...
8537         [Changing these files is only allowed with Dia-0.90]
8538         * broken-files/fonts-0.90.dia : including the
8539         common hard-coded fonts from Dia-0.90. It also
8540         has drawn bounding-boxes for win32 as they were calculated
8541         from the former version (they were all too big).
8542         * broken-files/fonts-0.90-full.dia : all hardcoded
8543         fonts including the asian versions. On my machine
8544         this gives _a lot_ complaining about missing fonts
8545         and a finally a broken file display. Anyone having
8546         all these fonts ?
8547         
8548 2002-06-23  Cyrille Chepelov  <cyrille@chepelov.org>
8550         * objects/chronogram/*.c: 
8551         * objects/custom/custom_object.c:
8552         * objects/ER/*.c:
8553         using dia_font_new_from_style()
8555 2002-06-23  Lars Clausen  <lrclause@cs.uiuc.edu>
8557         * lib/widgets.c (dia_font_selector_set_styles): Improvements to
8558         font selector (stability, insensitivity).
8560         * lib/font.c (dia_font_scaled_build_layout): Removed unworkable
8561         stretching scheme for tweaking, and made scaling scheme faster
8562         (but less precise).
8563         (dia_font_dia_style_to_pango): Oops, % != /.
8565 2002-06-23  Cyrille Chepelov  <cyrille@chepelov.org>
8567         
8568         * patch from Matthieu Sozeau  <mattam@netcourrier.com>:
8570         * plug-ins/xslt : Added an XSLT plugin to export dia files using
8571         XML Stylesheets. The plug-in requires DIA_PLUGIN_PATH to be set.
8572         It includes a small config file to tell it what stylesheets to use.
8574         (end of patch)
8575         
8576         * plug-ins/xslt/xsltdialog.c: modified the dialog to be more 
8577         GTK2.0/HIG compliant (the labels could be slightly more verbose,
8578         perhaps). Added back a couple forgotten _(). Removed //-style
8579         comments.
8580         
8581 2002-06-23  Hans Breuer  <hans@breuer.org>
8583         * lib/plug-ins.c
8584         (dia_plugin_get_name) : don't crash plugin_manager
8585         on name being NULL 
8586         (dia_plugin_load) : reuse the description field to
8587         store the error string if loading fails.
8589         * lib/font.[hc] : starting to beautify the new
8590         font api: proper namespacing, adding convenience
8591         functions like dia_font_new_from_style(), ...
8593         * objects/uml/*.c : use the new convenience functions.
8595         [Next thing I plan to do is changing the other font
8596          functions to take DiaStyle and make Style and 
8597          BASIC_*_FONT vanish. As well as giving some love to
8598          dia_font_new_from_legacy_name().
8599          If anyone want's to help on converting the other
8600          objects to the new api during that, I would highly 
8601          appreciate it.]
8603 2002-06-23  Hans Breuer  <hans@breuer.org>
8605         * lib/font.c : made it compile and small indent fixes.
8606         Is there a code-has-no-effect-so-needs-not-be-valid
8607         with GCC?       
8609         * lib/widgets.c : use g_strcasecmp
8611 2002-06-22  Lars Clausen  <lrclause@cs.uiuc.edu>
8613         * lib/font.c: 
8614         * lib/font.h: 
8615         * lib/widgets.c: Font names sorted, style selector widget
8616         reappeared.  Doesn't select the old style yet.
8618 2002-06-22  Cyrille Chepelov  <cyrille@chepelov.org>
8620         * lib/font.c: one who expects a text's font to be changed shall 
8621         actually request the attributes to apply to the whole range of the
8622         said text... D'oh! 
8624         * lib/font.c: extents computation was wrong.
8626         * lib/font.c: dia_font_get_legacy_name(); g_strconcat works better
8627         if a last NULL parameter is added...
8629         * lib/font.c: extents computation was completely wrong. This looks
8630         much better this time.
8632         * objects/UML/class.c: fixed the various strings positions.
8634         * lib/font.h, and **/*.[ch] (all callers of dia_font_new): used
8635         macros to get the hardcoded base fonts.
8637         * objects/ER/relationship.c: wasn't converted to DiaFont*
8638         
8639 2002-06-22  Hans Breuer  <hans@breuer.org>
8641         * lib/widget.c : dont use backend specific functions
8642         to get on the font_families. Including it would mean
8643         including <windows.h> which breaks due to namespace
8644         pollutions ...
8646         * lib/libdia.def : updated externals
8648         * app/makefile.msc : temporary disabled: -DHAVE_LIBART
8650         * lib/font.c : added empty dia_font_init_instance function,
8651         reformatting of dia_fon_unref to allow to set breakpoint,
8652         dia_fon_build_layout() : dont crash on string==NULL
8654         * lib/text.c (text_set_attributes) : don't unref the wrong font
8656         * lib/widgets.c (dia_fon_selector_set_font) : our hashtable
8657         stores lowercased font names, but dia_font_get_family()
8658         returns mixed case      
8660 2002-06-22  Lars Clausen  <lrclause@cs.uiuc.edu>
8662         * lib/widgets.c: 
8663         * app/render_gdk.c: Patch from Hans Breuer.
8665         * app/Makefile.am (dia_core_files): diaconv commented out for now.
8666         
8667 2002-06-22  Cyrille Chepelov  <cyrille@chepelov.org>
8669         * lib/all files touched yesterday: took into account some of Hans
8670         Breuer's remarks in
8671         http://mail.gnome.org/archives/dia-list/2002-June/msg00257.html
8673         * objects/chronogram/*: 
8674         * objects/custom/*:
8675         * objects/ER/*:
8676         * objects/flowchart/*:
8677         * objects/FS/*:
8678         * objects/GRAFCET/*:
8679         * objects/SADT/*:
8680         * objects/standard/textobj.?:
8681         * objects/UML/*:
8682         converted to the new DiaFonts.
8684         * plug-ins/cgm/*:
8685         * plug-ins/pstricks/*:
8686         * plug-ins/wpg/*:
8687         * plug-ins/dxf/*:
8688         * plug-ins/xfig/*:
8689         Made minimalistic conversions so that they'd at least compile.
8691         * app/render_gdk.c:
8692         * app/render_pixmap.c:
8693         Converted to the new DiaFonts.
8695         * app/app_procs.c
8696         * app/diaconv.c:
8697         * app/render_eps.c:
8698         made the minimal changes so that it would at least build.       
8700         *** At this point, the thing builds on my machine, but segfaults
8701         right away. ***
8702         
8703 2002-06-21  Cyrille Chepelov  <cyrille@chepelov.org>
8705         * configure.in: removed the backend-specific pango pkg_modules
8706         (trivial to add back if needed, when actually needed)
8708         * app/Makefile.am:
8709         * app/*gnomeprint.[ch]: (removed): removed the GNOME-print
8710         renderer. The APIs will have completely changed when we get around
8711         to redo a renderer for it, anyways.
8713         * font.[ch]: rewrote everything from scratch, with a Pango
8714         implementation. Normally, only backend-neutral things should go in
8715         there.
8717         **WARNING**: new rules for managing DiaFont* pointers: these are
8718         reference-counted GObjects. One >must< diafont_ref() and
8719         diafont_unref() as appropriate. I wish I could overload operator=()...
8721         lib/plug-ins.h: bumped up the plug-in API.
8722         
8723         lib/attributes.c: 
8724         lib/dia_xml.c: 
8725         lib/dummy_dep.h
8726         lib/object_defaults:
8727         lib/prop_attr.c: Adapted to the new DiaFont API. This'll change
8728         again tomorrow with GObject.
8729         
8730         lib/widgets.c: Adapted to the new DiaFont API and to Pango.
8732         **** The rest of the tree should be updated as well ****
8733         
8734 2002-06-21  Lars Clausen  <lrclause@cs.uiuc.edu>
8736         * app/render_gdk.h: 
8737         * app/render_gdk.c: 
8738         * app/render_pixmap.c: 
8739         * app/render_pixmap.h: 
8740         * app/render_libart.h: 
8741         * app/render_libart.c: 
8742         * lib/font.h: 
8743         * lib/font.c: Removed freetype stuff (still around in
8744         lib/widgets.c 'cause we might want the font selector widget).
8746 2002-06-20  Cyrille Chepelov  <cyrille@chepelov.org>
8748         * shapes/network/laptop.(xml|shape):
8749         * sheets/network.sheet.in: added Laptop (notebook) PC shape,
8750         contributed by Alan Horkan <horkana@tcd.ie>. (Closes: #82643)
8752 2002-06-17  Hans Breuer  <hans@breuer.org>
8754         * lib/object_defaults.c : #include <libxml/tree.h> not
8755         <tree.h> pointed out by Xing Wang
8757 2002-06-17  Lars Clausen  <lrclause@cs.uiuc.edu>
8759         * lib/color.h (GDK_COLOR_TO_DIA, DIA_COLOR_TO_GDK): 
8760         * lib/widgets.c: 
8761         * app/color_area.c: Update to
8762         gtk_color_selection_*_current_color() fixed bad crash issues, plus
8763         updated color conversions.
8765         * sheets/ER/weakentity.xpm: Accepted patch from
8766         quixon@gnuchina.org to make icon match actual appearance.
8768         * app/recent_files.c: Fixed GNOME recent file problem, thanks to
8769         quixon@gnuchina.org.
8771 2002-06-16  Hans Breuer  <hans@breuer.org>
8773         * lib/plug-in.[hc] : make PlugInInfo opaque again in the 
8774         good tradition of information hiding. Add new function
8775         dia_plugin_get_symbol()
8776         * app/sheets.c app/sheets_dialog_callbacks.c : use it
8778         * app/sheets.c : stop complaining about object_get_type() 
8779         returning NULL. This is a consequence of e.g. disabling 
8780         plug-ins at runtime _and_ it was and is gracefully handled. 
8781         Spitting out g_warning for it isn't appropriate. 
8783         * lib/object.[ch] : removed dead code
8785         * app/plugin-mangager.c : almost complete rewrite for gtk2
8786         using GtkListStore/GtkTreeView
8788         * lib/libdia.def : updated externals
8790         * todo.gtk2 : updated, that is removed already done steps
8792 2002-06-15  Hans Breuer  <hans@breuer.org>
8794         * objects/uml/class_dialog.c : clean some left-over
8795         utf8-mess, return 0 from "focus_out_event" handlers
8796         to avoid asserting in gtk (#78305). Reconstruct 
8797         stereotype/NULL behaviour to avoid rendering empty
8798         stereotypes on classes and member functions
8800         [#56109 - Provide object defaults for StdProp objects,
8801          some remaining issues are discussed in bugzilla]
8803         * lib/object_defaults.c : (new file) manage default properties 
8804         of dia objects. The serialization is done with standard
8805         object methods in a diagram compatible format.
8807         * lib/object.c : add object_registry_foreach() which allows
8808         to iterate over all registered object types
8810         * lib/object.h : added prototypes object_default*() and
8811         object_registry_foreach()
8813         * lib/makefile.am lib/makefile.msc : add new file to build
8815         * lib/libdia.def : export new functions
8817         * app/defaults.c : provide StdProp based defaults if the
8818         ObjectType doesn't implement it's own default functions
8820         * app/create_object.c : through dia_object_default_create()
8821         * app/disp_callbacks.c : same here
8823 2002-06-12  Lars Clausen  <lrclause@cs.uiuc.edu>
8825         * objects/FS/flow-ortho.c (orthflow_get_object_menu): Menu
8826         sensitivity for deleting segments.
8828 2002-06-12  Cyrille Chépélov  <cyrille@chepelov.org>
8830         * app/color_area.c: (color_area_events):
8831         * app/diagram.c: (diagram_destroy):
8832         * app/interface.c: (zoom_activate_callback), (fill_sheet_wbox),
8833         (fill_sheet_menu):
8834         * app/load_save.c: (diagram_data_load):
8835         * app/menus.c: (menus_get_item_from_path):
8836         * app/preferences.c: (prefs_load):
8837         * app/render_gdk.c: (get_text_width):
8838         * lib/arrows.h:
8839         * lib/color.c: (color_convert):
8840         * lib/dia_dirs.c: (dia_config_filename):
8841         * lib/dia_xml.c: (xmlDiaParseFile), (data_type):
8842         * lib/intl.c: (intl_get_language_list):
8843         * lib/message.c: (message):
8844         * lib/message.h:
8845         * lib/paper.c: (get_default_paper):
8846         * lib/plug-ins.c: (this_is_a_plugin), (dia_register_plugins):
8847         * lib/widgets.c: (dia_file_selector_get_file):
8848         * lib/widgets.h:
8849         * objects/standard/image.c: (get_directory):
8851         warningectomy.
8852         
8853 2002-06-12  Lars Clausen  <lrclause@cs.uiuc.edu>
8855         * ChangeLog: Fixed bad UTF-8 mess.  Apologies.
8857 2002-06-11  Lars Clausen  <lrclause@cs.uiuc.edu>
8859         * app/interface.c: sscanf now returns EOF on empty string, so
8860         handle no match for zoom factor better => correct zoom at start.
8862         * app/sheets.c (create_object_pixmap): Tried to display empty error.
8863         (sheets_optionmenu_create): Died when not finding specified
8864         sheet.  Don't think it should.
8866         * objects/UML/association.c: Added patch from osamyn@ulb.ac.be
8867         (bug #84367) to place the text better.
8869 2002-06-11  Cyrille Chepelov  <cyrille@chepelov.org>
8871         * configure.in: Added forgotten libgnomeui-2.0 when --enable-gnome
8872                         
8873         * app/commands.c: Removed unnecessary gnome include. Removed
8874         GNOME-Print support.
8876         * app/menus.h: Removed now unnecessary gnome include.
8877         
8878         * app/sheets_dialog.c: Used Gtk 2.0 stock buttons instead of
8879         GNOME-specific stock buttons
8880         
8881 2002-06-09  Hans Breuer  <hans@breuer.org>
8883         * app/app_procs.c : convert 'Modified diagrams exits'
8884         dialog to use GtkMessageDialog. That gives us:
8885         - icons without Gnome dependency
8886         - much less code, also cross platform
8887         - improved useability ?
8889         * app/color_area.c : the Color Selection Widget looked
8890         quite wrong (alpha problems). Fix it by merging in required
8891         changes stolen from The Gimp cvs
8892         * app/color_area.h : to get the right appearance the maskes
8893         needed to be taken into account
8894         * app/interface.c : adapt to color_area_create changes.
8895         Also remove some dead code and finally remove cvs autexpansion, 
8896         I was bothered enough by irrelevant differences :-)
8898         * app/defaults.c app/properties.c app/dia-props.c : use improved GtkDialog
8899         api, i.e stocks and response to make the GnomeDialog usage
8900         obsolete. Also fixed the issue with closing the 'parent'
8901         before closing the dialog
8903         * app/display.[ch] : removed some dead code and conversion
8904         to new GtkDialog api. Also trying to conform to new HIG
8905         standard http://developer.gnome.org/projects/gup/hig/
8907 2002-06-09  Hans Breuer  <hans@breuer.org>
8909         * lib/makefile.msc : define GTK_DISABLE_DEPRECATED,
8910         build ps-utf8.c
8912         * lib/dia_image.c : gtk_widget_set_default_visual()
8913         remove. It does nothing with Gtk2.
8915         * lib/libdia.def : added ps_unicoder exports
8917         * lib/message.c : remove #GNOME use GtkMessageDialog.
8918         Yeah, Dia gets dialogs wit icons cross-platform.
8920         * lib/prop_geomtypes.c : gtk_spin_button_get_value_as_float()
8921         to gtk_spin_button_get_value()
8923         * lib/prop_inttypes.c : gtk_label_set() -> gtk_label_set_text()
8925         add #undef GTK_DISABLE_DEPRECATED to still use ...
8926         * lib/prop_text.c :  ... GtkText
8927         * lib/prop_widgets.c : ... GtkList
8928         * lib/prop_dialogs.c : ... gtk_signal_connect and more
8929         * lib/widgets.c : ... (too much to list here)
8931         * lib/ps-utf8.c : #include <string.h>
8933 2002-06-08  Cyrille Chepelov  <cyrille@chepelov.org>
8935         * configure.in:
8936         * Makefile.am:  Adapted for gtk2.
8937         Removed dependencies on libunicode, on iconv(), on langinfo().
8939         * acconfig.h: removed (now obsolete)
8941         * lib/charconv.[ch]: removed (superceded by glib)
8942         * lib/ps-utf8.[ch]: removed dependency on charconv.[ch]
8944         * **/*.[ch]: removed (utfchar *), (unichar) and other charconv or
8945         libunicode types for their glib counterparts. Fixed the include
8946         paths for libxml2. Removed all traces of libxml1 or non-UTF8
8947         support (there were remains in objects/uml).
8949         
8950 2002-06-08  Hans Breuer  <hans@breuer.org>
8952         */*.c */*/*.c : remove all the #ifdef *_UTF8_* hell,
8953         only keep the utf-8 clean code cause Dia+Gtk2 now talk it.
8954         Also use g_strdup()'s handling of NULL by returning NULL
8955         again at all places I found (remove unnecessary if's)
8957         * todo.gtk2 : new file to keep notes about gtk2 porting,
8958         further issues and thoughts and some status information.
8959         Also sent to dia-list ('Dia goes Gtk2 ...').
8960         
8961         [make it compile with GTK+ 2.0]
8963         * config.h.win32 : #undef GTK_TALKS_UTF8_WE_DONT,
8964         removed definition of S_ISDIR, S_ISREG and getlogin
8966         * */makefile.msc : Use GTK2 and libxml2
8967         BEWARE: makefile.am, configure.in not yet ported !
8969         * app/app_procs.c app/diagram.c : remove 
8970         gtk_item_factory_dump_rc code, (it wasn't read in again anyway) 
8971         but set use gtk_menu_set_accel_path() on menu creation
8973         * app/color_area.c lib/widgets.c : 
8974         make use of gtk_color_selection_set_has_palette ()
8976         * app/commands.c : gdk_pixbuf_new_from_file wants an 
8977         extra argument. Convert from DIR to GDir usage.
8979         * app/diagram_tree.c(button_press_callback) : need to return 
8980         FALSE in the signal handler to let gtk process it further.
8981         (get_object_name) : don't leak 'prop'
8982         
8983         * app/diapagelayout.c : adapt to GtkTypeInfo changes and handle 
8984         dia_page_layout_destroy() getting called more than once
8986         * app/diaunitspinner.c : GtkEditable -> GtkEntry, 
8987         GtkTypeInfo changes
8989         * app/disp_callbacks.c : gtk_menu_append() -> gtk_menu_shell_append()
8991         * app/display.h : wrap input contexts declarations into #ifdef USE_XIM.
8992         IIRC this code will not compile unchanged when USE_XIM is defined ...
8994         * app/gtk[hv]wrapbox.[hc] : use already ported version from The GIMP 1.3.x
8996         * app/interface.c : there is no widget->klass anymore in Gtk, 
8997         use GTK_WIDGET_GET_CLASS instead. gdk_pixbuf_new_from_file() extra
8998         parameter. Some tweaking of GtkWrapBox usage to get four tools in
8999         a row again.
9000         switch off GTK's double buffering on Dia's canvas. Otherwise we would 
9001         get triple buffering and flicker.
9002         Replace call to GTK private function _gtk_accel_group_attach()
9003         with public gtk_window_add_accel_group()
9005         * app/layer_dialog.c : adapt to GtkTypeInfo changes
9007         * app/load_save.c lib/plug-ins.c lib/sheet.c 
9008           objects/custom/custom.c : 
9009         simplified by using g_file_test()
9011         * app/menus.c : convert from gtk_item_factory_<dump|parse>_rc 
9012         to gtk_accel_map_<save|load>. Also added common stock-icons
9013         to the menu.
9014         
9015         * app/preferences.c : use gtk_button_set_label() instead
9016         of button->child which is gone. Also removed GLIB_CHECK_VERSION.
9018         * app/preferences.c lib/dia_xml.c lib/plug-ins.c :
9019         #ifdef G_OS_WIN32 #include <io.h>, this was formerly done
9020         in config.h.win32
9022         * app/recent_files.c : removed GLIB_CHECK_VERSION
9024         * app/render_eps.c 
9025           plug-ins/metapost/render_metapost.c
9026           plug-ins/pstricks/render_pstricks.c
9027           plug-ins/svg/render_svg.c :
9028         replace getlogin() with g_get_user_name() which always
9029         returns non NULL
9031         * app/render_gdk.c : gdk_region_union_with_rect() modifies
9032         inplace now and returns nothing, also less #hell
9034         * app/render_libart.c : some initial #hell cleaning, SuckFont
9035         still needs to vanish
9037         * app/splash.c : gdk_pixbuf_new_from_file() second arg and
9038         GTK_WINDOW_DIALOG -> GTK_WINDOW_TOPLEVEL
9040         * app/render_pixbuf.c app/sheets.c : plain #hell cleaning
9041         * app/sheets_dialog_callbacks.c : some #hell and adaptions
9042         needed to GtkWrapBox api changes
9045         * lib/charconv.[hc] : removed from build
9046         [changed appropriate]
9047         * lib/prop_inttypes.c lib/prop_text.c : 
9048         all utf-8 cleaning 
9049         * lib/text.c : ported from HEAD but keep original indent
9050         intact. Original was done by Akira TAGOH.
9052         * lib/color.c : GdkColorContext is gone, use GdkColormap instead.
9054         * lib/dia_image.c : gdk_pixbuf_new_from_file() second arg
9056         * lib/dia_xml.c : remove #ifdef GLIB_CHECK_VERSION, it's the
9057         same on all platforms now!
9059         * lib/font.c : still using SuckFont which was an IMPERATIVE FIXME!
9061         * lib/message.c : remove "charconv.h"
9063         * lib/prop_text.c : #define GTK_ENABLE_BROKEN to use GtkText
9065         * lib/plug-in.c :
9066         * lib/sheet.c : convert from DIR to GDir usage
9068         * lib/widgets.c : gtk_menu_(shell_)append and GtkTypeInfo
9070         * lib/widgets.h : include gtk<label|colorseldialog>.h
9073         * objects/fs/flow.c :
9074         * objects/fs/flow-ortho.c : GTK_ENABLE_BROKEN to use GtkText
9076         * objects/custom/custom.c : convert from DIR to GDir usage
9079         * plug-ins/python/makefile.msc : updated for GTK2/Python2.2
9082 2002-05-03  Hans Breuer  <hans@breuer.org>
9084         * lib/dia_xml.c : make the well formed utf8 check
9085         actually work for &#251; (non 7-bit ascii encoding)
9086         and fixed the file re-writing if the check fails.
9087         Thanks to Vitaly Lipatov for noticing the misbehaviour.
9089         * lib/font.c : synchronize #ifdef G_OS_WIN32 with
9090         comment on last ressort font. Thanks to Maxim Sobolev.
9092 2002-06-03  Cyrille Chepelov  <cyrille@chepelov.org>
9094         * sheets/network.sheet.in: corrected a typo in plotter invocation.
9096 2002-06-03  Steffen Macke  <sdteffen@web.de>
9098         * shapes/network/digitizing_board.png:
9099         * shapes/network/digitizing_board.shape:
9100         * shapes/network/plotter.png:
9101         * shapes/network/plotter.shape:
9102         * shapes/network/Makefile.am
9103         * sheets/network.sheet.in: added new plotter and digitizing
9104         board shapes
9105         
9106 2002-06-02  Cyrille Chepelov  <cyrille@chepelov.org>
9108         * lib/font.c: made a symptomatic fix to a segfault reported by 
9109         Jan Keirse <jan.keirse@pandora.be> on a SuSE 7.3 system. This
9110         won't prevent dia from terminating, but should give more
9111         user-friendly information about why did it terminate.
9113         Two patches from <robert.young@dsto.defence.gov.au>:
9114         
9115         * app/display.c: fix the size of the canvas area which gets
9116         redrawn. There was an off-by one error (Closes #83659)
9118         * app/display.c: make sure we redraw all screen only when we
9119         really have to (some update_areas were mistakenly ignored) (Closes
9120         #83496). 
9122         * NEWS: added a new entry for the future. Put there a reminder to
9123         update the dependencies.
9125         * configure.in: put in notes about what will change shortly.
9126         upped the version to 0.90+cvs (did also in config.h.win32)
9127         upped the minimum version for intltools (now 0.21)
9128         
9129 2002-06-01  Cyrille Chepelov  <cyrille@chepelov.org>
9131         * dia.spec:
9132         * configure.in:
9133         * NEWS:
9134         * config.h.win32:
9135         bumped up version number to 0.90. Yay!
9137 2002-05-30  Cyrille Chepelov  <cyrille@chepelov.org>
9139         * doc/pl/Makefile.am:
9140         * doc/en/Makefile.am: fixed a "make install" problem when db2html
9141         is not present (Reported by Andrew Ferrier
9142         <andrew.junk@new-destiny.co.uk>). Fixed another "make distclean"
9143         problem which prevented me from ever seeing the problem in doc/en...
9144         
9145         * Makefile.am: added autogen.sh to the EXTRA_DIST clause.
9146         
9147         * lib/font.c: patch from <robert.young@dsto.defence.gov.au>; add a
9148         way to read the font path from the XFS configuration files in
9149         order to enable FreeType (fixes #83098).
9151         * POTFILES.(in,skip): now skips objects/sybase/sybase.c, which is not
9152         shipped nowadays.
9153                 
9154         * dia.spec:
9155         * configure.in:
9156         * NEWS:
9157         * config.h.win32:
9158         bumped up version number to 0.90.RC3
9160 2002-05-29  Zbigniew Chyla  <cyba@gnome.pl>
9162         * configure.in, doc/Makefile.am, doc/pl/Makefile.am,
9163         doc/pl/authors.sgml, doc/pl/dia-manual.sgml, doc/pl/dia-pl.omf,
9164         doc/pl/intro.sgml, doc/pl/license.sgml, doc/pl/topic.dat
9165         doc/pl/usage-canvas.sgml, doc/pl/usage-customization.sgml,
9166         doc/pl/usage-layers.sgml, doc/pl/usage-loadsave.sgml
9167         doc/pl/usage-objects-selecting.sgml, doc/pl/usage-objects-special.sgml,
9168         doc/pl/usage-objects.sgml, doc/pl/usage-quickstart.sgml:
9169         Added Polish documentation.
9171 2002-05-27  Cyrille Cheeplov  <cyrille@chepelov.org>
9173         * objects/UML/state.c: there was a (gratuitous?) change of on-XML
9174         format for the UML State object. Now there's a hack to reload
9175         older files, and get them converted on the fly. 
9176         Justyna BiaÅ?a <nell@poczta.gazeta.pl> reported this. Thanks!
9178         * lib/properties.h:
9179         * lib/propobject.c:
9180         * lib/proplist.c: Added a new property flag, PROP_FLAG_LOAD_ONLY,
9181         and adapter the proplist predicates. A LOAD_ONLY property is for
9182         when you have legacy to support but can't resist moving your
9183         fields around... (was needed to support the above state.c fix).
9185         If the in-core of your object changes and you need a LOAD_ONLY
9186         property for the old format, you must keep some spare room in your
9187         object's struct to accomodate for the potential old-style
9188         attributes. Then in foo_load(), after having called
9189         object_load_using_properties(), you must inspect the old-style
9190         fields and act accordingly. Don't ever change the on-disk formats...
9192         * objects/UML/object.c:
9193         * objects/UML/small_package.c: added a check against empty
9194         stereotypes still consuming space. Reported by Dolores Alia de
9195         Saravia <loli@unsa.edu.ar>. Thanks!     
9196         
9197 2002-05-26  Cyrille Chepelov  <cyrille@chepelov.org>
9199         * INSTALL: added platform notes from MÃ¥rten Svantesson, for when
9200         using libtool on an AFS partition.
9202         * po/update_potfiles_in.sh: now simply calls the recent intltools 
9203         features; they work better than hand-crafted half-ignorant
9204         scripts. Thanks to Kenneth Rohde Christiansen <kenneth@gnu.org>
9205         for the tip.
9207         * po/POTFILES.in: added back two files update_potfiles_in.sh
9208         didn't take into account. Now this file is not automatically
9209         generated anymore!      
9210         * po/POTFILES.skip: told `intltool-update -m` what files to ignore
9211         (the usual suspects, in fact).
9213         * configure.in: improved the isinf() / isfinite() detection on
9214         Solaris (MÃ¥rten Svantesson)
9215         
9216 2002-05-25  Cyrille Chepelov  <cyrille@chepelov.org>
9218         * configure.in: one expression was replacing $CFLAGS, removing
9219         whatever was previously in.
9220         Added more checks for isinf() and finite() on Solaris.
9222         * lib/geometry.h: added a macro defintion for isinf() if not
9223         HAVE_ISINF. (Hans, you may want to #define HAVE_ISINF if relevant
9224         on Win32)
9226         * app/commands.c: "cut" did not set the 'modified' bit (paste has
9227         been for a little while). Fixes #82994.
9229         * Makefile.am: added more stuff to distclean-local. This should make
9230         "make distcheck" pass! Thanks to the author of
9231         http://mail.gnome.org/archives/gnome-2-0-list/2001-August/msg00212.html
9232         ... I wonder who this Henstridge guy is ... ;-)
9233         Darn. Still doesn't pass. I give up for tonight.
9234         
9235         * po/update_potfiles_in.sh: updated to take care of sheet files,
9236         and to filter out the EML plug-in.
9237         * po/POTFILES.in: updated with all .c and all .sheet.in files 
9239         * po/dia.pot, po/*.po: again updated all .po files with all
9240         strings (with the updated POTFILES). Now with the up-to-date
9241         POTFILES, just all languages have some fuzzy or untranslated
9242         strings (not that the 100% team was that large beforehand...)
9244         * po-checktrans: removed the comment about .po files not holding
9245         all translatable stuff, since now they do.
9246         
9247 2002-05-24  Cyrille Chepelov  <cyrille@chepelov.org>
9249         * dia.spec:
9250         * configure.in:
9251         * NEWS:
9252         * config.h.win32:
9253         bumped up version number to 0.90.RC2
9255 2002-05-20  Hans Breuer  <hans@breuer.org>
9257         * app/load_save.c : starting to increase
9258         Dias tolerance on incomplete/broken files. The 
9259         corresponding bug is #56233. But the patch there does
9260         neither apply anymore nor does it really fix the problem
9261         but only delays it, e.g. even if it would be allowed
9262         to read a file without any layers, the later code can't
9263         handle it.
9264         * lib/dia_xml.c : attribute_<num|first>_data(), data_type()
9265         handle passing in NULL for the node gracefully.
9267         * shapes/network/printer.shape : added two more connection
9268         points - one at each side - to fix bug #60359
9270         * app/commands.c (edit_copy_callback) : 
9271         add ddisplay_do_update_menu_sensitivity() to make 
9272         sequence select-copy-paste work.
9274 2002-05-20  Hans Breuer  <hans@breuer.org>
9276         * app/create_object.c (create_object_button_press) :
9277         added a call to ddisplay_do_update_menu_sensitivity()
9278         to make Ctrl^D etc work after object creation. 
9279         Fixes #80983.
9281 2002-05-18  Lars Clausen  <lrclause@cs.uiuc.edu>
9283         * objects/ER/entity.c: 
9284         * objects/ER/attribute.c: 
9285         * objects/ER/relationship.c: Patch to allow text size change from
9286         Celso Tetsuo Nagase Suzuki.
9288 2002-05-18  Steffen Macke <sdteffen@web.de>
9290         * app/app_procs.c: #ifdef'd xmlerror.h (comes with 
9291         libxml2)
9292         * doc/en/graphics/greendots.png:
9293         * doc/en/home_network.png:
9294         * doc/en/line_props.png: 
9295         * dia-diagram.png:
9296         * dia_gnome_icon.png:
9297         * dia_gnome_menu_icon.png:
9298         * dia_logo.png:
9299         * shapes/network/telephone.png:
9300         * shapes/Logic/and.png:
9301         * shapes/Logic/buffer.png:
9302         * shapes/Logic/connector.png:
9303         * shapes/Logic/inverter.png:
9304         * shapes/Logic/nand.png:
9305         * shapes/Logic/nor.png:
9306         * shapes/Logic/not.png:
9307         * shapes/Logic/or.png:
9308         * shapes/logic/xor.png:
9309         * samples/ER-demo.dia:
9310         * samples/SADT.dia:
9311         * samples/UML-demo.dia:
9312         * samples/chronograms.dia:
9313         * samples/grafcet.dia: re-added as binary files
9315 2002-05-17  Hans Breuer  <hans@breuer.org>
9317         * lib/libdia.def : reflect removing of render_store.[ch]
9319         * */makefile.mingw : remove VERSION definition it's
9320         done in config.h.win32. Dia still doesn't work if
9321         build with mingw ...
9323         * RELEASE-PROCESS : removed */makefile.mingw
9325         * app/sheets_dialog_callbacks.c : if we use those
9326         ugly charconv_gtk_* functions lib/charconv.h needs to
9327         be #included ...
9328         * lib/charconv.h : ... and needs to contain the 
9329         necesseray prototypes _and_ #defines
9331         * plug-ins/shape/shape-export.c : with libxml2 xmlNewGlobalNs
9332         is deprecated and does nothing but spit a warning. This broke
9333         the shape format writing. Fixed.
9334         Also with libxml2 pretty formatted xml isn't the default
9335         anymore, but needs to be enabled explicit: It is done now 
9336         for shape files, which almost always needed to be edited by
9337         hand ... 
9339         * app/app_procs.c : #if G_OS_WIN32 redirect xmlErrorReporting
9340         from stderr - which is invalid on Dia/win32 - to g_print -
9341         which opens up a console window if necessary. This way
9342         a xml-deprecation-error shouldn't stay unnoticed next time
9344 2002-05-17  Steffen Macke <sdteffen@web.de>
9346         * shapes/Misc/folder.png:
9347         * shapes/Misc/file.png: re-added as binary files
9348         
9349 2002-05-16  Lars Clausen  <lrclause@cs.uiuc.edu>
9351         * lib/font.c: Fixed segfault for fonts without family_name.
9353 2002-05-17  Cyrille Chepelov  <cyrille@chepelov.org>
9355         * po/POTFILES.in: added app/sheets_dialog_callbacks.c
9357         * app/sheets_dialog_callbacks.c: While reviewing UTF-8isation upon
9358         Lars' request, minor cosmetic stuff (mostly _() of human-readable
9359         XML comments in .sheet files; one translator booby-trap disarmed).
9361         * lib/charconv.c: moved #hell inside the body of the new
9362         charconv_*gtk* functions (otherwise the Win32 or gtk2.0 linker
9363         will yell)
9364         
9365 2002-05-16  Lars Clausen  <lrclause@cs.uiuc.edu>
9367         * plug-ins/wpg/Makefile.am (INCLUDES): 
9368         * plug-ins/shape/Makefile.am (INCLUDES): 
9369         * plug-ins/svg/Makefile.am (INCLUDES): 
9370         * plug-ins/pstricks/Makefile.am (INCLUDES): 
9371         * plug-ins/metapost/Makefile.am (INCLUDES): Added UNICODE_CFLAGS
9372         and DEBUG_CFLAGS in some missing places.
9374         * MAINTAINERS: New file containing list of known package
9375         maintainers. 
9377         * lib/charconv.h: 
9378         * lib/charconv.c: Charconv versions of some common gtk calls.
9380         * app/sheets_dialog_callbacks.c
9381         (on_sheets_new_dialog_button_ok_clicked),
9382         (on_sheets_dialog_button_edit_clicked),
9383         (on_sheets_dialog_button_remove_clicked),
9384         (on_sheets_edit_dialog_button_ok_clicked):
9385         * app/sheets.c (sheets_optionmenu_create),
9386         (sheets_optionmenu_create): Added utf8 translations.
9388         * app/sheets_dialog.c: 
9389         * app/sheets.c: 
9390         * app/sheets_dialog_callbacks.c: Added some missing _()'s.
9392 2002-05-16  Cyrille Chepelov  <cyrille@chepelov.org>
9394         * po/POTFILES.in: added app/sheets_dialog.c
9396 2002-05-15  Cyrille Chépélov  <cyrille@chepelov.org>
9398         * lib/charconv.c: (charconv_local8_to_utf8),
9399         (charconv_utf8_to_local8): tweaked the warnings to get more 
9400         informations
9401         * lib/font.c: (font_get_suckfont): handled a potential case of
9402         uninitialised data being used (just paranoid)
9403         
9404         * objects/GRAFCET/boolequation.c: (opstring),
9405         (opblock_get_boundingbox), (opblock_draw),
9406         (boolequation_calc_boundingbox): some extra hoops needed now dia
9407         talks UTF8 (but gtk doesn't). More #hell. Beeek. Basically, the
9408         symbols can't yet be used with their proper Unicode cells, since
9409         gtk will demand them in the Symbol font, expressed in the local
9410         8-bit encoding.
9411         
9412         * samples/grafcet.dia: re-saved, now with a fixed bounding box (by
9413         the fix just above).
9415 2002-05-14  Lars Clausen  <lrclause@cs.uiuc.edu>
9417         * app/diagram_tree.c (get_object_name): Check that name property
9418         doesn't have null string.
9420 2002-05-13  Lars Clausen  <lrclause@cs.uiuc.edu>
9422         * autogen.sh (DIE): Added conditional --force to gettextize.
9424         * app/pagesetup.c (pagesetup_ok): Commented out missing Gnome
9425         function call.
9427 2002-05-13  Cyrille Chepelov  <cyrille@chepelov.org>
9429         * RELEASE-PROCESS: added James' notes on how to properly make the
9430         tarball.
9432         * configure.in: removed macro nesting related to libpng.h, which
9433         was causing some problems on some systems (like mine, which made
9434         the snapshots bad).
9436         Made --enable-unicode, previously an option, the mandatory case.
9438         * app/Makefile.am: updated EXTRA_DIST
9439         
9440         * NEWS:
9441         * app/makefile.mingw:
9442         * dia.spec:
9443         * doc/en/dia-manual.sgml:
9444         * plug-ins/makefile.mingw:
9445         * configure.in: bumped up the version number to 0.90.RC1
9447         * lib/render_objects.[ch]:
9448         * po/POTFILES.in: removed render_objects from the build.
9450         * plug-ins/Makefile.am:
9451         * plug-ins/wmf/Makefile.am (new): EXTRA_DIST'ed the WMF plug-in,
9452         so we keep its source in the tarball.
9454         * objects/network/*.c, Makefile.am:
9455         * objects/sybase/*.c, Makefile.am:
9456         * po/POTFILES.in: cleaned up the non-existent files from the po
9457         build process.
9459         * plug-ins/Makefile.am: re-enabled metapost plug-in.
9460         
9461 2002-05-13  Steffen Macke <sdteffen@web.de>
9463         * AUTHORS:
9464         * app/command.c: added M. C. Nelson to the Authors
9465         * sheets/Circuit/Makefile.am: added firewall shape to build
9466         * sheets/network/Makefile.am: added telephone and microphone
9467           shapes to build
9469 2002-05-13  Lars Clausen  <lrclause@cs.uiuc.edu>
9471         * RELEASE-PROCESS: Added list of files that contain the release
9472         number or should otherwise be changed at each release.
9474 2002-05-12  Lars Clausen  <lrclause@cs.uiuc.edu>
9476         * objects/UML/uml.c (uml_operation_read): Forgot to commit this
9477         (reported fixed) bug: POLYMORPHIC -> LEAF for default.
9479 2002-05-12  Hans Breuer  <hans@breuer.org>
9481         * config.h.win32 : changed VERSION to 0.90.RC1
9483         * app/makefile.msc lib/makefile.msc : use renamed
9484         gdk-pixbuf version (same content but renamed because
9485         all the other gtk+ dlls are renamed) to avoid trouble
9486         mixing gtk versions (of which one would not 
9487         be initialized ...
9489         * app/app_procs.c : removed recently unneeded
9490         inclusion of "sheets.h"
9492         * app/render_gdk.c : removed my own debug spew
9493         which should never made it to cvs
9495         * lib/render_object.[hc] : added
9496         #error "File not used anymore."
9498         * lib/libdia.def : updated externals
9500         * app/interface.c : dropped filenames need to be
9501         converted from uri with Gtk+2.0
9503 2002-05-12  Cyrille Chepelov  <cyrille@chepelov.org>
9505         * RELEASE-PROCESS (new): a draft document about how to release. To
9506         be discussed. (already with some input from Hans Breuer)
9508 2002-05-12  Steffen Macke <sdteffen@web.de>
9510         * sheets/Makefile.am: re-added Misc sheet to make process
9511         
9512 2002-05-12  Lars Clausen  <lrclause@cs.uiuc.edu>
9514         * objects/FS/function.c: Added comments to humungous list of menu
9515         items, to aid translators.
9517 2002-05-11  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
9519         * app/menus.c (display_menu_items): Added a few shortcuts for zooms.
9521         * app/menus.c (display_menu_items): Added a few shortcuts for zooms.
9523         * app/interface.c (create_toolbox): Disallow shrinking beyond
9524         requested size.  Fixes bug #59439, and confirms to GTK guidelines
9525         (see gtk_window_set_policy).
9526         (create_sheets): Removed now unnecessary set_usize call.
9528 2002-05-10  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
9530         * lib/beziershape.c (remove_handles): Fixing removal of last
9531         segment.  Undo of removal still hokey.
9533 2002-05-10  Lars Clausen  <lrclause@cs.uiuc.edu>
9535         * lib/bezier_conn.c (remove_handles): Proper offset for fixing
9536         handles. 
9537         * lib/beziershape.c (beziershape_init): Removed early call to
9538         beziershape_update_data where points aren't set yet.
9539         (beziershape_add_segment): Use segment 0 instead of overflowing
9540         points array with segment+1.
9541         (beziershape_remove_segment): Proper offset for fixing
9542         connectionpoints. 
9543         (remove_handles): Proper offset.
9545 2002-05-08  Lars Clausen  <lrclause@cs.uiuc.edu>
9547         * objects/GRAFCET/action.c (action_update_data): Init x value of
9548         click point for call to connpointlist_adjust_count.
9550         * app/modify_tool.c (create_modify_tool): Init tool->auto_scrolled
9552         * app/render_pixmap.c (new_pixmap_renderer): Moved first linestyle
9553         setting to where values are inited.
9555         * lib/polyshape.c (polyshape_init): Removed call to
9556         polyshape_update_data that tried to use uninitialized data.
9558 2002-05-06  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
9560         * app/sheets_dialog.c: Mass removal of //-style comments.  The
9561         Irix compiler doesn't like them:(  I do...
9563 2002-05-06  Lars Clausen  <lrclause@cs.uiuc.edu>
9565         * app/render_libart.c (draw_string): Bail out when no GDK font is
9566         found.
9567         (set_font): Give error when font not found.
9568         (set_fillstyle): Intlized error msg.
9570         * app/pagesetup.c (pagesetup_ok, pagesetup_apply): Sets diagram
9571         modified when applied (and ok only does apply if apply is set
9572         sensitive).  Fixes bug #75623.
9574 2002-05-06  Pablo Saratxaga  <pablo@mandrakesoft.com>
9576         * configure.in: Added Vietnamese (vi) to ALL_LINGUAS
9578 2002-05-05  Steffen Macke <sdteffen@web.de>
9580         * app/Makefile.am: added $(UNICODE_CFLAGS)
9581         
9582 2002-05-02  Lars Clausen  <lrclause@cs.uiuc.edu>
9584         * app/commands.c (help_manual_callback): Check return value of
9585         opendir.
9587         * plug-ins/xfig/Makefile.am (INCLUDES): Added DEBUG_FLAGS
9589         * plug-ins/xfig/xfig-import.c: Fixed misspelled Poly_L_ine, added
9590         checks for errors.
9592 2002-04-30  Lars Clausen  <lrclause@cs.uiuc.edu>
9594         * app/render_gdk.c (draw_string): Extra free killed.  Thanks valgrind!
9596         * objects/UML/uml.c (uml_operation_read): Fix of UML default
9597         inheritance. 
9599 2002-04-30  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
9601         * app/filedlg.c (file_save_as_callback, file_save_as_ok_callback):
9602         Added button to toggle diagram compression.
9604 2002-04-29  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
9606         * lib/font.c: Support for loading extra kerning files, plus got
9607         rid of rounding errors.  Bounding box mostly perfect for freetype
9608         fonts.
9609         (font_string_width): Fudge factor to get around nonlinearity of
9610         font scaling.
9612 2002-04-29  Lars Clausen  <lrclause@cs.uiuc.edu>
9614         * lib/font.c (font_string_width): YA font calculation scheme, with
9615         comments.
9617         * objects/UML/class.c (umlclass_calculate_data): Uses the same
9618         font for drawing and calculating now.
9620         * configure.in: Added utime.h check.
9622         * app/render_gdk.c (draw_string): Uses gdk_draw_text_wc when in
9623         GTK_DOESNT_TALK_UTF8_WE_DO.  Thus it matches the string width calc.
9625 2002-04-26  Hans Breuer  <hans@breuer.org>
9627         [ Instead of fixing about 70 occurances in 20 files
9628           where GTK_TALKS_UTF8_WE_DONT needed to be handled
9629           Dia on win32 from now on uses glib-2.0 and not 
9630           only talks utf-8 with gtk-1.3 but also internally.
9631           GTK_TALKS_UTF8_WE_DONT isn't supported/needed
9632           anymore. ]
9634         * config.h.win32 : #define UNICODE_WORK_IN_PROGRESS
9635         #undef GTK_TALKS_UTF8_WE_DONT
9637         * */makefile.msc : changes to use glib-2.0 (still
9638         using gtk+1.3(win32-production)
9640         * app/disp_callbacks.c : remove GTK_TALKS_UTF8_WE_DONT,
9641         adapt kevent->string handling, add <string.h>
9642         * app/render_gdk.c (get_text_width) : the length given
9643         is in chars, gdk_text_width() needs bytes
9645         * app/render_libart.c : 
9646         * app/render_pixmap.c : remove GTK_TALKS_UTF8_WE_DONT
9647         (could simplify the same way as done in render_gdk.c)
9649         * app/diagram_tree.c app/paginate_gdiprint.cpp
9650           app/sheets.c :
9651         * lib/prop_basic.c lib/prop_geomtypes.c 
9652           lib/propdialgs.c lib/propobject.c :
9653         added <string.h> which is now removed from charconv.h
9655         * lib/charconv.h : optional use infrastructure from
9656         glib-2.0 -> only five direct function mapping left
9658         * lib/charconv.c : avoid to build this with glib-2.0
9660         * lib/font.c : no string conversion needed anymore      
9661         when Dia and Gtk talk utf-8, also code adaptions
9662         for GLIB_CHECK_VERSION(2,0,0)
9664         * lib/libdia.def : removed charconv functions
9666         * lib/prop_inttypes.c : removed GTK_TALKS_UTF8_WE_DONT,
9667         replace charconv_unichar_to_utf8() with g_unichar_to_utf8()
9669         * lib/prop_text.c lib/prop_widgets.c lib/font.c : 
9670         removed GTK_TALKS_UTF8_WE_DONT
9672         * lib/text.c : finally(?) fixed cursor <place|move>ment 
9673         for Umlauts. Also fixed char insertion, still wondering
9674         how this could ever work. Does realloc on Linux 
9675         initialize the memory with zeros ?
9677         * objects/chronogram/chronoline_event.c
9678           objects/grafcet/boolequation.c :
9679         there is no uni_get_utf8 when building for glib-2.0.
9680         Replace with g_utf8_get_char() and g_utf8_next_char().
9682         * objects/uml/stereotype.c (bracketted_to_string) : 
9683         simplify while adding code for glib-2.0 build
9685 2002-04-27  Lars Clausen  <lrclause@cs.uiuc.edu>
9687         * app/diagram.h: Autosave field
9688         * app/diagram.c (diagram_set_modified): Sets autosave field.
9689         
9690         * objects/UML/usecase.c (usecase_update_data): 
9691         * objects/flowchart/ellipse.c (ellipse_update_data): 
9692         * objects/flowchart/parallelogram.c (pgram_update_data): 
9693         * objects/flowchart/diamond.c (diamond_update_data): 
9694         * objects/custom/custom_object.c (custom_update_data): 
9695         * objects/UML/state.c (state_update_data): 
9696         * objects/UML/small_package.c (smallpackage_update_data): 
9697         * objects/UML/object.c (objet_update_data): 
9698         * objects/UML/note.c (note_update_data): 
9699         * objects/UML/node.c (node_update_data): 
9700         * objects/UML/component.c (component_update_data): 
9701         * objects/UML/classicon.c (classicon_update_data): 
9702         * objects/UML/actor.c (actor_update_data): 
9703         * objects/SADT/box.c (sadtbox_update_data): 
9704         * objects/FS/function.c (function_update_data): 
9705         All now update text boundaries from update_data.
9706         
9707         * lib/widgets.c (dia_font_selector_set_styles): Made the style set
9708         correctly. 
9710 2002-04-26  Hans Breuer  <hans@breuer.org>
9712         * config.h.win32 : added VERSION definition here
9713         (and removed from makefile.msc's)
9715         * app/makefile.msc : added new files
9717         * app/app_procs.c (app_init): remove sheets_dialog_create()
9718         from start-up and ... 
9720         * app/sheet.c (sheets_dialog_show_callback) : ... lazy create
9721         sheet_dialog here when it is really needed.
9722         #include "../lib/message.h", make sheets_dialog_create() 
9723         return it's success or failing on (!custom_type_symbol). 
9724         Although editing shapes is nice IMHO it isn't crucial enough 
9725         to abort() Dia if       it isn't possible.
9727         * app/sheet.h : adapt create_sheet_dialog() prototype
9729         * app/sheets_dialog.c : add #ifdef HAVE_UNISTD_H
9731         * app/sheets_dialog_callbacks.c : #ifdef HAVE_UNISTD_H and
9732         #ifdef HAVE_UTIME_H. Otherwise #include <sys/utime.h> and
9733         name space corrections for utime() and utim_buf #ifdef
9734         G_OS_WIN32
9736         * lib/libdia.def : export new sheet functions
9738         * lib/makefile.msc : added new files
9740         * lib/render.c : don't put draw_bezier_with_arrows() in
9741         the DrawLineWithArrowsFunc slot
9743         * objects/custom/custom_object.c : #include <gmodule.h>
9744         and export 'custom_type' via G_MODULE_EXPORT
9746         * objects/uml/class_dialog.c : removed 'incompatible 
9747         types' warnings. Some refactoring while making it fit
9748         on screen with 800x600 again.
9750         * plug-ins/python/pydia-cpoint.h : add PyDiaConnectionPoint_Check
9752         * plug-ins/python/pydia-handle.h : extra parameter to
9753         PyDiaHandle_New to store the owner of the handle
9754         * plug-ins/python/pydia-handle.c : store handle owner
9755         on construction and use it in new method .connect()
9756         * plug-ins/python/pydia-object.c plug-ins/python/pydia-diagram.c : 
9757         adapt to changed prototype
9759 2002-04-24  Lars Clausen  <lrclause@cs.uiuc.edu>
9761         * lib/text.c (text_calc_boundingbox): Will now return early if box
9762         passed is NULL.
9764         * objects/flowchart/box.c (box_update_data): Now updates text
9765         width info from update_data.
9767 2002-04-23  Steffen Macke <sdteffen@web.de>
9769         * plug-ins/xfig/xfig-import.c: fixed text import
9770         
9771 2002-04-22  Lars Clausen  <lrclause@cs.uiuc.edu>
9773         * app/export_png.c: Moved dialog functions to their own file.
9774         * app/dialogs.[ch]: New files with standard functions for creating
9775         small, transient dialogs (e.g. export options).
9776         * app/Makefile.am: Added dialogs.[ch]
9778 2002-04-19  Steffen Macke <sdteffen@web.de>
9780         * shapes/Misc/folder.*:
9781         * shapes/Misc/file.*:
9782         * shapes/Misc/Makefile.am:
9783         * shapes/Makefile.am:
9784         * sheets/Misc.sheet.in:
9785         * sheets/Makefile.am:
9786         * configure.in: added new Misc sheet containing filesystem shapes
9787         
9788 2002-04-18  Lars Clausen  <lrclause@cs.uiuc.edu>
9790         * app/lineprops_area.c: Arrow selector in toolbox changed to use
9791         standard arrowdraw code.  Line is thinner to make some arrowheads
9792         distinguishable. 
9794 2002-04-18  Steffen Macke <sdteffen@web.de>
9796         * sheets/network.sheet.in:
9797         * shapes/network/telephone.shape:
9798         * shapes/network/Makefile.am: added telephone shape
9799         
9800 2002-04-16  Steffen Macke <sdteffen@web.de>
9802         * sheets/EML.sheet.in: commented out unavailable shapes
9803         
9804 2002-04-15  M.C. Nelson <mcn@kobayashimaru.org>
9806         * app/sheets_dialog_callbacks.c:  Fixed segfault caused by mis-ordered
9807           variable assignment.
9808         
9809 2002-04-15  Steffen Macke <sdteffen@web.de>
9811         * plug-ins/dxf/dxf-import.c: text import works again
9812         * shapes/Pneumatic/Makefile.am: added compush shape
9813         * sheets/Pneumatic.sheet.in: commented out unavailable shapes dist33
9814         and dist53
9815         
9816 2002-04-11  M.C. Nelson <mcn@kobayashimaru.org>
9818         * All these modifications are for the 'Sheets and Objects' dialog
9819           (new feature):
9821         * app/pixmaps/line_break.xpm: new icon representing a line break.
9822         
9823         * app/pixmaps/n_a.xpm: new empty icon representing not available.
9825         * app/Makefile.am: added sheets_*.[ch] files to compile list.
9826         
9827         * app/menus.c: added GNOME and gtk menu items for 'Sheets and Objects'
9828         
9829         * app/sheets_dialog.c: [new file] definition of 'Sheets & Objects' dlgs
9831         * app/sheets_dialog.h: [new file] support for Sheets & Objects dlgs 
9832         
9833         * app/app_procs.c: added call to sheets_dialog_create() in app_init()
9834         
9835         * app/sheets_dialog_callbacks.c: [new file] callbacks for S & O dialogs
9837         * app/sheets_dialog_callbacks.h: [new file] support for " " "
9839         * app/interface.c: added 'interface_current_sheet_name' global to 
9840           fill_sheet_wbox(); made fill_sheet_menu() non-static
9842         * app/interface.h: added extern declaration for aboves.
9844         * app/sheets.c: [new file] instantiation and other funcs for S & O dlgs
9846         * app/sheets.h: [new file] declarations for backing store structures
9848         * lib/sheet.c: modification of new_sheet() parameters; introduction
9849           of USER and SYSTEM scope for sheets; procedure for sorting sheets;
9850           changes to load_register_sheet().
9852         * lib/sheet.h: added 'user_data_type' field to SheetObject structure;
9853           added 'has_icon_on_sheet' flag to SheetObject structure; added 
9854           'filename', 'scope', 'shadowing' fields to Sheet structure.
9856         * lib/plug-ins.c: moved _PluginInfo declaration to header file where
9857           it belongs.
9859         * lib/plug-isn.h: see above.
9861         * lib/object.c: added 'sheet.h' to include list; added several 
9862           functions
9863           to detect objects which are not found on any sheet (for future use)
9864           object_type_detect_nosheet_callback(), object_types_detect_nosheet(),
9865           object_type_get_sheet_name(), object_type_strip_sheet_from_name().
9867         * lib/object.h: added public declarations for above functions where
9868           necessary.
9870         * objects/custom/custom.c: made custom_object_load() non-static so we
9871           can load and interpret .shape files from the Sheets & Objects dialog
9873         * objects/custom/custom_object.c: made 'custom_type' non-static so 
9874           we can differentiate between SVG shapes and other types.a
9876 2002-04-07  Hans Breuer  <hans@breuer.org>
9878         * app/object_ops.c (object_list_align_v): Fix the 'Leak fix'
9879         from 2002-01-22 to not destroy diagram->data->selected. 
9880         Avoids to crash on Objects/Align/Vertical/Top
9882         * app/render_eps.c (draw_string) : un-const buffer
9883         It isn't at all const (g_malloc(), assignment, g_free()).
9884         Doesn't gcc catch such ?
9886         * lib/arrows.h : prototype calculate_arrow_point()
9888         * lib/font.c (font_get_suckfont) : no need to
9889         special case gdk_draw_string() with GTK_TALKS_UTF8,
9890         cause all the parameter differences are handled above
9892         * lib/libdia.def : updated externals
9894         * lib/makefile.msc : removed string_prerenderer, added render
9896         * lib/render.c (draw_rect) : don't pass a Point** if a Point*
9897         is expected. [Sometimes it's good to read compiler warnings.]
9899         * objects/standard/image.c : simplified by use of g_strconcat()
9901         * plug-ins/python/makefile.msc : updated for Python 2.2
9903 2002-04-03  Lars Clausen  <lrclause@cs.uiuc.edu>
9905         * objects/standard/zigzagline.c (zigzagline_draw): Fixed
9906         directionality problem for zero-length line segments.
9908 2002-03-28  Lars Clausen  <lrclause@cs.uiuc.edu>
9910         * app/diagram.c (diagram_ungroup_selected) 
9911         (diagram_update_menu_sensitivity): Now allows ungrouping of
9912         several groups at once.
9914 2002-03-15  Lars Clausen  <lrclause@cs.uiuc.edu>
9916         * lib/render.c, all renderers: Binary incompatibility, change to
9917         expandable renderops structure.
9919 2002-03-15  Steffen Macke <sdteffen@yahoo.com>
9921         * objects/standard/Makefile.am:
9922         * objects/network/Makefile.am:
9923         * objects/UML/Makefile.am:
9924         * objects/ER/Makefile.am:
9925         * objects/FS/Makefile.am:
9926         * objects/flowchart/Makefile.am:
9927         * objects/custom/Makefile.am:
9928         * objects/GRAFCET/Makefile.am:
9929         * objects/chronogram/Makefile.am:
9930         * objects/SADT/Makefile.am:
9931         * plug-ins/cgm/Makefile.am:
9932         * plug-ins/pstricks/Makefile.am:
9933         * plug-ins/hpgl/Makefile.am:
9934         * plug-ins/wpg/Makefile.am:
9935         * plug-ins/svg/Makefile.am:
9936         * plug-ins/shape/Makefile.am: added $(UNICODE_CFLAGS)
9937         
9938 2002-03-13  Lars Clausen  <lrclause@cs.uiuc.edu>
9940         * app/render_eps.c: Support for dumping TrueType fonts (taken from
9941         ttfps).
9943 2002-03-12  Lars Clausen  <lrclause@cs.uiuc.edu>
9945         * lib/render.c: New abstract super class for renderers.
9947 2002-03-07  Akira TAGOH  <tagoh@redhat.com>
9949         * objects/ER/attribute.c (attribute_save): save a font property.
9950         (attribute_load): load a font property, and if can't load it, it's
9951         initialized.
9953         * objects/ER/entity.c (entity_save): save a font property.
9954         (entity_load): load a font property, and if can't load it, it's
9955         initialized.
9957         * objects/ER/relationship.c (relationship_save): save a font property.
9958         (relationship_load): load a font property, and if can't load it, it's
9959         initialized.
9961         * objects/UML/class.c (fill_in_fontdata): don't replace if it already
9962         has a vaule.
9963         (umlclass_save): save the font and the font size properties.
9964         (umlclass_load): load the font and the font size properties.
9966 2002-03-05  Cyrille Chepelov  <cyrille@chepelov.org>
9968         * lib/string_prerenderer.[ch] (REMOVED):
9969         * lib/render.h:
9970         * lib/diagramdata.c:
9971         * lib/Makefile.am:
9972         * app/render_eps.c: got rid of the string-specific string
9973         prerenderer, transitioned its functionality towards Lars'
9974         two-phase rendering
9976 2002-03-05  Lars Clausen  <lrclause@cs.uiuc.edu>
9978         * configure.in: Using Freetypes own check for ver >= 1.0.5.  You
9979         may need to rerun aclocal.
9981 2002-03-04  Lars Clausen  <lrclause@cs.uiuc.edu>
9983         * lib/font.c: First attempt at Unicodeness for Freetype.
9985 2002-03-02  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
9987         * lib/font.c (font_string_width): Fixed font_string_width for
9988         freetype.  BB is now almost right.
9990 2002-03-01  Lars Clausen  <lrclause@cs.uiuc.edu>
9992         * app/render_eps.h: 
9993         * app/paginate_psprint.c (paginate_psprint): 
9994         * lib/font.c: 
9995         * app/render_eps.c: Support for dumping postscript fonts into
9996         postscript files with freetype.  Fairly primitive, but works.
9997         Unicode version may have problems.
9999 2002-02-28  Akira TAGOH  <tagoh@redhat.com>
10001         * objects/UML/class_dialog.c (class_read_from_dialog)
10002         (class_fill_in_dialog), (class_create_page): add the font selector and
10003         the font size selector.
10005         * objects/UML/class.c (umlclass_draw): uses each font_height.
10006         (umlclass_calculate_data): ditto.
10007         (fill_in_fontdata): add initial value of new font_height.
10008         (umlclass_copy): add new font_height.
10010 2002-02-27  Cyrille Chepelov  <chepelov@calixo.net>
10012         Patch from Geoff Gerrietts <ggerrietts@yahoo.com>:
10013         
10014         * lib/font.c: calculate font metrics properly and stop guessing at
10015         string widths.
10017 2002-02-28  Akira TAGOH  <tagoh@redhat.com>
10019         * configure.in: changed gtk_advancement value to dia_talks_utf8.
10020         right now Dia is working with UTF-8 internally. it means Dia probably
10021         support most languages also including the languages which heretofore
10022         didn't work correctly.
10024 2002-02-26  Akira TAGOH  <tagoh@redhat.com>
10026         * objects/FS/function.c: add related text properties.
10027         (function_get_props), (function_set_props): add handling attribute.
10029         * objects/FS/flow.c: add related text properties.
10030         (flow_get_props), (flow_set_props): add handling attribute.
10032         * objects/FS/flow-ortho.c: add related text properties.
10033         (orthflow_set_props), (orthflow_get_props): add handling attribute.
10035         * objects/ER/relationship.c: add PROP_STD_TEXT_FONT to property.
10037         * objects/ER/entity.c: ditto.
10039         * objects/ER/attribute.c: ditto.
10041 2002-02-26  Cyrille Chepelov  <cyrille@chepelov.org>
10043         Patch contributed by Geoff Gerrietts <ggerrietts@yahoo.com>:
10044         
10045         * autogen.sh: add a check for missing intltoolize.
10047 2002-02-20  Akira TAGOH  <tagoh@redhat.com>
10049         * lib/ps-utf8.c (unicode_to_ps_name): if this function calls with same
10050         charcode, it was registered the duplicate item to HashTable. fix.
10052         * app/render_gnomeprint.c (get_width_string): add new function.
10053         (draw_string): fix non-multibyte specific code.
10055 2002-02-19  Cyrille Chepelov  <cyrille@chepelov.org>
10057         Patch contributed by Matthieu Sozeau <mattam@netcourrier.com>:
10058         
10059         * lib/font.c: do not try to search paths that do not begin with
10060         '/', like X Font Server addresses.
10061         
10062         * objects/UML/message.c (message_draw): free mname when not 
10063         message->text but CREATE or DESTROY.
10064         
10065         * objects/UML/uml.h:
10066         * objects/UML/uml.c:
10067         * objects/UML/class_dialog.c: added code to handle a stereotype 
10068         attribute for operations.
10070 2002-02-19  Akira TAGOH  <tagoh@redhat.com>
10072         * lib/Makefile.am: add LIBART_CFLAGS.
10074 2002-02-15  Hans Breuer  <hans@breuer.org>
10076         * lib/font.c (font_get_suck_font): the black and white pixel values 
10077         need to be taken from a 1 bit colormap rather than the default colormap.
10078         (fixed again, last time was 2000-05-26)
10080         Also handle the case where GTK_TALKS_UTF8 and expects all strings
10081         passed in to be in this encoding.
10083         * lib/libdia.def : export suck_font_free()
10085         * lib/text.c (text_draw) : avoid circular dependency to ../app
10086         at least for the !USE_XIM case, where it is unnecessary.
10088 2002-02-15  Cyrille Chepelov  <cyrille@chepelov.org>
10090         Changes contributed by Matts Kivik <kivik@firstlinux.net>:
10091         
10092         * shapes/Circuit/microphone_de.(shape|xpm) (NEW):
10093         * sheets/Circuit.sheet.in: added new shape microphone
10094         * shapes/Circuit/speaker_de.shape: Added a connection point.
10095         
10096 2002-02-13  Akira TAGOH  <tagoh@redhat.com>
10098         * app/render_libart.c (draw_string): fixed build issue for Win32.
10100         * lib/font.c (font_get_suckfont): fixed typo. it could't build under
10101         Win32.
10103         * configure.in: fixed testing gtk_advancement.
10105         * app/render_gnomeprint.c (draw_string): uses utfchar instead of char.
10107 2002-02-12  Akira TAGOH  <tagoh@redhat.com>
10109         * lib/text.c (text_draw): fixed XIM position, when menubar is shown for
10110         diagram window.
10112 2002-02-11  Lars Clausen  <lrclause@cs.uiuc.edu>
10114         * app/group.c (group_copy): Made new object properly initialized
10115         before copy.
10117 2002-02-11  Steffen Macke <sdteffen@yahoo.com>
10119         * app/Makefile.am: added plug-ins to DIA_LIB_PATH in run_dia.sh
10120         
10121 2002-02-10  Akira TAGOH  <tagoh@redhat.com>
10123         * lib/text.c (text_draw): fixed XIM transaction.
10125         * app/interface.c (create_display_shell): add signal for
10126         size_allocate.
10128         * app/disp_callbacks.c (ddisplay_size_allocate): add new function for
10129         XIM transaction.
10130         (set_input_dialog): remove.
10131         (ddisplay_canvas_events): remove XIM transaction. it can't transact
10132         correctly on this function.
10134 2002-02-10  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
10136         * app/app_procs.c:
10137         * app/export_png.c: Added checks for interactivity (maybe this
10138         should be a hook after all?).
10140         * app/filedlg.c (file_export_callback): Made export dialog add
10141         suffix when reopened.
10143         * app/export_png.c: Added dialog asking for export size.
10145 2002-02-09  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
10147         * lib/widgets.c: Fixed font reselection problem and first font
10148         bogus warning.
10150         * objects/UML/actor.c (actor_update_data): Changed to have
10151         connection points below text.
10153 2002-02-08  Akira TAGOH  <tagoh@redhat.com>
10155         * lib/text.c (text_split_line): use g_strndup() instead of g_malloc()
10156         and memcpy().
10158 2002-02-07  Akira TAGOH  <tagoh@redhat.com>
10160         * lib/font.c (font_get_suckfont): rewrited. generating suckfont from
10161         strings which is given.
10162         (suck_font): remove. it's any longer needed.
10164         * app/render_libart.c (set_font): don't get suckfont.
10165         (draw_string): get suckfont only which is needed for now.
10167 2002-02-05  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
10169         * lib/text.c: Fixes for misunderstood width functions.
10171 2002-02-05  Hans Breuer  <hans@breuer.org>
10173         * lib/dia_xml.c : use g_strconcat() instead of 
10174         malloc, strcpy, strcat dance
10175         * app/properties.c : same here and plug memory leak
10176         (gtk functions don't eat strings)
10178         * objects/UML/message.c : there is no g_sprintf()
10179         use g_strdup_printf() instead ...
10181 2002-02-05  Akira TAGOH  <tagoh@redhat.com>
10183         * lib/message.c (gtk_message_internal): doesn't need to convert to
10184         UTF-8.
10186         * app/render_libart.c (draw_string): fixed transaction for UTF-8
10187         support.
10188         (get_text_width): ditto.
10190         * app/Makefile.am (EXTRA_DIST):
10191         s/paginate_gdiprint.c/paginate_gdiprint.cpp/
10193         * app/render_gdk.c (gdk_freetype_copy_glyph): fixed build issue.
10194         This function needs ifdef HAVE_FREETYPE because don't use it for
10195         --disable-freetype
10197 2002-02-04  Cyrille Chepelov  <cyrille@chepelov.org>
10199         * NEWS: updated with the new dependencies.
10200         
10201         Patch from Matthieu Sozeau <mattam@netcourrier.com>:
10203         * objects/UML/class.h:
10204         * objects/UML/class.c:  
10205         * objects/UML/class_dialog.c: added code to handle the UMLParameterKind
10206         property using a GtkMenu. Options are Undefined, In, Out, In & Out
10208 2002-02-04  Lars Clausen  <lrclause@cs.uiuc.edu>
10210         * app/render_libart.c: Slow but working libart freetype renderer,
10211         with color!
10213 2002-02-03  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
10215         * app/render_gdk.c (draw_string): Fixed gc_function bug.
10217         * lib/widgets.c (dia_font_selector_init): Sorts the font list.
10219         * lib/font.c (freetype_render_string): 
10220         * lib/font.h:
10221         * app/render_gdk.c:
10222         * app/render_gdk.h: Changed freetype_render_string to use
10223         callback.  Rendering is broken.
10225 2002-02-03  Cyrille Chepelov  <cyrille@chepelov.org>
10227         Patch from Matthieu Sozeau <mattam@netcourrier.com>:
10229         * objects/UML/uml.h:    
10230         * objects/UML/uml.c: added UMLInheritanceType and isQuery
10231         (constant) UML Operation attributes. UMLInheritanceType is either
10232         UML_ABSTRACT or UML_POLYMORPHIC  or UML_LEAF.
10234         * objects/UML/class.h:
10235         * objects/UML/class.c:  
10236         * objetcs/UML/class_dialog.c: added code to handle new
10237         UMLOperation attributes via a GtkMenu and a checkbox.
10239 2002-02-03  Akira TAGOH  <tagoh@redhat.com>
10241         * app/disp_callbacks.c (ddisplay_realize): fixed XIM issue.
10242         several client doesn't work with previous codes.
10244 2002-02-01  Lars Clausen  <lrclause@cs.uiuc.edu>
10246         * lib/font.c (freetype_render_string): Kerning.  Very few fonts
10247         seem to use it.
10249 2002-02-02  Akira TAGOH  <tagoh@redhat.com>
10251         * app/disp_callbacks.c (ddisplay_canvas_events): fixed crashes,
10252         when doing the operation like invert the objects after active view is
10253         destroyed. when changes focus, it needs to set active_display.
10255         * app/layer_dialog.c (dia_layer_update_from_layer):
10256         (layer_dialog_edit_layer): need to convert to locale encoding
10257         if GTK_DOESNT_TALK_UTF8_WE_DO is defined.
10258         (edit_layer_ok_callback):
10259         need to convert to UTF8 if GTK_DOESNT_TALK_UTF8_WE_DO is defined.
10261         * lib/diagramdata.c (new_diagram_data): ditto.
10263         * app/layer_dialog.c (layer_dialog_new_callback): ditto.
10265         * lib/diagramdata.c (new_layer): use utfchar instead of char for
10266         argument.
10268         * lib/widgets.c: if HAVE_FREETYPE isn't defined, it can't build. fixed.
10269         (dia_font_selector_set_styles): when HAVE_FREETYPE is defined only,
10270         it's needed for now. also this function needs prototype declaration.
10272 2002-01-31  Lars Clausen  <lrclause@cs.uiuc.edu>
10274         * lib/widgets.c: Style now functional on font selector.  Some leak
10275         possible, but doesn't show up under stress test.
10277 2002-01-31  Akira TAGOH  <tagoh@redhat.com>
10279         * app/plugin-manager.c (clist_select_row): name and description needs to
10280         convert to locale encoding, when GTK_DOESNT_TALK_UTF8_WE_DO is defined.
10281         (get_plugin_manager): ditto.
10283         * lib/plug-ins.c (dia_plugin_info_init): name needs to convert to UTF-8.
10285         * app/diagram_tree.c (get_object_name): fixed transaction for UTF-8
10286         support.
10288         * lib/prop_text.c (stringprop_reset_widget): fixed crashes,
10289         when prop->string_data is NULL.
10291 2002-01-30  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
10293         * lib/widgets.c: 
10294         * lib/widgets.h: New font selector separating font and style.
10295         Style not functional yet.
10297 2002-01-30  Lars Clausen  <lrclause@cs.uiuc.edu>
10299         * lib/text.c: 
10300         * app/render_gdk.c (draw_string): More freetype support, now
10301         renders text.  Still broken is font selection and exporting.
10303 2002-01-30  Akira TAGOH  <tagoh@redhat.com>
10305         * objects/chronogram/chronoref.c (chronoref_create): missing gettextize
10306         for font.
10308         * objects/chronogram/chronoline.c (chronoline_create): ditto.
10310         * objects/UML/usecase.c (usecase_create): ditto.
10312         * objects/UML/state.c (state_create): ditto.
10314         * objects/UML/object.c (objet_create): ditto.
10316         * objects/UML/node.c (node_create): ditto.
10318         * objects/UML/message.c (message_create): ditto.
10320         * objects/UML/component.c (component_create): ditto.
10322         * objects/UML/classicon.c (classicon_create): ditto.
10324         * objects/UML/actor.c (actor_create): ditto.
10326         * objects/SADT/box.c (sadtbox_create): ditto.
10328         * objects/SADT/annotation.c (annotation_create): ditto.
10330         * objects/GRAFCET/transition.c (TRANSITION_FONT): ditto.
10332         * objects/GRAFCET/step.c (STEP_FONT):
10333         * (step_create): ditto.
10335         * objects/GRAFCET/condition.c (CONDITION_FONT): ditto.
10337         * objects/GRAFCET/action.c (ACTION_FONT):
10338         (action_create): ditto.
10340         * objects/FS/function.c (function_create): ditto.
10342         * objects/FS/flow.c (flow_create):
10343         (flow_load): 
10344         (flow_apply_defaults): ditto.
10346         * objects/FS/flow-poly.c (flow_create):
10347         (flow_load):
10348         (flow_apply_defaults): ditto.
10350         * objects/FS/flow-ortho.c (orthflow_create):
10351         (orthflow_load):
10352         (orthflow_apply_defaults): ditto.
10354         * objects/ER/relationship.c: use utfchar instead of char for structure.
10355         (relationship_create): name needs to convert to UTF-8.
10357         * objects/ER/attribute.c: use utfchar instead of char for structure.
10358         (attribute_create): name needs to convert to UTF-8.
10360         * objects/ER/entity.c: use utfchar instead of char for structure.
10361         (entity_create): name needs to convert to UTF-8.
10363         * app/interface.c (fill_sheet_wbox): needs to convert UTF-8 to locale
10364         encoding for tooltips, if GTK_TALKS_UTF8 isn't defined.
10365         (fill_sheet_menu): needs to convert UTF-8 to locale encoding for menu
10366         items. if GTK_TALKS_UTF8 isn't defined.
10368 2002-01-29  Akira TAGOH  <tagoh@redhat.com>
10370         * objects/UML/class.c (umlclass_calculate_data): fixed malloc size.
10371         it was my careless mistake...
10373         * lib/attributes.c (attributes_set_default_font): temporarily gettextize
10374         a font name, because there are strings which isn't shown by "Courier".
10375         We need to consider a way to feel free to choose a font at runtime.
10377         * lib/render_object.c (render_object_load): ditto.
10379         * lib/text.c (data_text): ditto.
10381         * objects/EML/instantiation.c (instantiation_create): ditto.
10383         * objects/EML/interaction-ortho.c (interaction_ortho_create):
10384         (interaction_ortho_load): ditto.
10386         * objects/EML/interaction.c (interaction_create):
10387         (interaction_load): ditto.
10389         * objects/EML/process.c (fill_in_fontdata): ditto.
10391         * objects/ER/attribute.c (attribute_create): 
10392         (attribute_load): ditto.
10394         * objects/ER/entity.c (entity_create): 
10395         (entity_load): ditto.
10397         * objects/ER/relationship.c (relationship_create): 
10398         (relationship_load): ditto.
10400         * objects/UML/association.c (association_create): 
10401         (association_load): ditto.
10403         * objects/UML/class.c (fill_in_fontdata): ditto.
10405         * objects/UML/constraint.c (constraint_create): ditto.
10407         * objects/UML/dependency.c (dependency_create): ditto.
10409         * objects/UML/generalization.c (generalization_create): ditto.
10411         * objects/UML/implements.c (implements_create): ditto.
10413         * objects/UML/large_package.c (largepackage_create): ditto.
10415         * objects/UML/note.c (note_create): ditto.
10417         * objects/UML/realizes.c (realizes_create): ditto.
10419         * objects/UML/small_package.c (smallpackage_create): ditto.
10421         * objects/custom/shape_info.h (FONT_DEFAULT): ditto.
10423         * objects/custom/custom_object.c (custom_create): ditto.
10425         * objects/network/antenna.c (render_to_store): ditto.
10427         * objects/network/computer.c (render_to_store): ditto.
10429         * objects/network/disc.c (render_to_store): ditto.
10431         * objects/network/flash.c (render_to_store): ditto.
10433         * objects/network/hub.c (render_to_store): ditto.
10435         * objects/network/modem.c (render_to_store): ditto.
10437         * objects/network/modularswitch.c (render_to_store): ditto.
10439         * objects/network/monitor.c (render_to_store): ditto.
10441         * objects/network/printer.c (render_to_store): ditto.
10443         * objects/network/rj45plug.c (render_to_store): ditto.
10445         * objects/network/scead-plug.c (render_to_store): ditto.
10447         * objects/standard/textobj.c (textobj_load): ditto.
10449         * objects/sybase/client.c (render_to_store): ditto.
10451         * objects/sybase/dataserver.c (render_to_store): ditto.
10453         * objects/sybase/ltm.c (render_to_store): ditto.
10455         * objects/sybase/repserver.c (render_to_store): ditto.
10457         * objects/sybase/rsm.c (render_to_store): ditto.
10459         * objects/sybase/stableq.c (render_to_store): ditto.
10461         * plug-ins/dxf/dxf-import.c (read_entity_text_dxf): ditto.
10463         * objects/UML/uml.h (UML_STEREOTYPE_START):
10464         (UML_STEREOTYPE_END): changes default strings.
10466 2002-01-28  Akira TAGOH  <tagoh@redhat.com>
10468         * objects/UML/stereotype.c (string_to_bracketted): fixed transaction
10469         for UTF-8 support. if GTK+ and Dia don't handle UTF-8, all of characters
10470         which is given to arguments isn't UTF-8. so don't need to convert it.
10471         if GTK+ handle UTF-8, also don't need to convert it.
10472         (strend): remove.
10473         (bracketted_to_string): fixed transaction for UTF-8 support.
10474         also start/end bracket is not necessarily 1 character. so that when use
10475         strend(), it doesn't work correctly.
10476         (string_to_stereotype): use utfchar instead of char.
10477         (remove_stereotype_from_string): ditto.
10478         (stereotype_to_string): ditto.
10480         * objects/UML/stereotype.h: ditto.
10482         * objects/UML/message.c: use utfchar instead of char for structure.
10483         (MESSAGE_CREATE_LABEL, MESSAGE_DESTROY_LABEL): remove.
10485         * objects/UML/small_package.c: use utfchar instead of char for structure.
10487         * objects/UML/realizes.c: ditto.
10489         * objects/UML/object.c: ditto.
10491         * objects/UML/large_package.c: ditto.
10493         * objects/UML/implements.c: ditto.
10495         * objects/UML/generalization.c: ditto.
10497         * objects/UML/dependency.c: ditto.
10499         * objects/UML/constraint.c: ditto.
10501         * objects/UML/component.c: ditto.
10503         * objects/UML/class_dialog.c (attributes_get_current_values):
10504         (attributes_list_new_callback, attributes_fill_in_dialog):
10505         (parameters_set_values, parameters_get_values):
10506         (parameters_get_current_values, parameters_list_new_callback):
10507         (operations_set_values, operations_get_values):
10508         (operations_get_current_values, operations_list_new_callback):
10509         (operations_fill_in_dialog, templates_set_values):
10510         (templates_get_values, templates_get_current_values):
10511         (templates_list_new_callback, templates_fill_in_dialog):
10512         fixed transaction for UTF-8 support.
10514 2002-01-27  Akira TAGOH  <tagoh@redhat.com>
10516         * objects/UML/message.c (message_draw): fixed transaction for UTF-8 support.
10518         * objects/UML/class_dialog.c (class_read_from_dialog):
10519         (class_fill_in_dialog):
10520         (attributes_get_values): ditto.
10522         * objects/UML/actor.c (actor_create): ditto.
10524         * objects/UML/class.c (umlclass_calculate_data): ditto.
10526         * objects/UML/association.c (association_apply_properties):
10527         (fill_in_dialog): ditto.
10529         * objects/UML/uml.c (uml_get_attribute_string):
10530         (uml_get_operation_string):
10531         (uml_get_parameter_string):
10532         (uml_get_formalparameter_string): use utfchar instead of char.
10534         * objects/UML/uml.h: gettextize UML_STEREOTYPE_START and
10535         UML_STEREOTYPE_END.
10537         * objects/UML/class.h: use utfchar instead of char.
10539         * lib/dia_xml.c (data_add_string): ditto.
10541         * lib/text.c (text_insert_char): fixed characters# calculation
10542         when includes multibytes character in strings.
10544 2002-01-26  Steffen Macke  <sdteffen@yahoo.com>
10546         Patch from Richard Rowell <rwrowell@bellsouth.net>:
10548         * app/lineprops_area.c:
10549         * lib/arrows.h:
10550         * lib/arrows.c: 
10551         * lib/widgets.c: added crow foot arrow and cross arrow
10552         
10553         Patch from Frank Gevaerts <frank.gevaerts@fks.be>:
10554         
10555         * plug-ins/svg/render_svg.c: fixed arcs, fill and text alignment
10557 2002-01-26  Cyrille Chepelov  <cyrille@chepelov.org>
10559         * po/update.pl (REMOVED):
10560         * po/update.sh (REMOVED):
10561         * xml-i18n-merge.in.kg (REMOVED):
10562         * xml-i18n-update.in.kg (REMOVED):
10563         * sheets/Makefile.am:
10564         * Makefile.am:
10565         * autogen.sh:
10566         * configure.in: converted from xml-i18n-tools to intltools
10568         This looks like it fixes the build bugs of the snapshot tarballs, 
10569         and it supersedes #69611.       
10571 2002-01-25  Akira TAGOH  <tagoh@redhat.com>
10573         * lib/text.c (text_insert_char): fixed characters# calculation.
10574         it's not string length.
10576         * lib/plug-ins.c (dia_plugin_info_init): when GTK_DOESNT_TALK_UTF8_WE_DO
10577         is defined, needs to convert a description to UTF-8.
10579         * app/render_gdk.c (get_text_width): fixed transaction for
10580         UTF-8 support. also should uses gdk_text_width_wc() instead
10581         of gdk_text_width().
10583         * app/render_gdk.c (draw_string): when GTK_DOESNT_TALK_UTF8_WE_DO
10584         is defined, needs to convert to locale encoding for display.
10585         Also use utfchar instead of char for argument.
10587 2002-01-24  Hans Breuer  <hans@breuer.org>
10589         * app/commands.c(edit_paste_callback and more) : 
10590         call diagram_modified(ddisp->diagram) to fix #68083
10591         (help_menu_callback) : plug a DIR leak
10593         * app/disp_callbacks.c(ddisplay_canvas_events) : handle 
10594         GTK_TALKS_UTF8_WE_DONT
10596         * app/render_gdk.c(get_text_with) : it's a bad idea to use
10597         gdk_string_with() when GTK_TALKS_UTF8_WE_DONT instead of
10598         gdk_text_width(). The length value is still questionable ...
10600         * lib/charconv.c : use functions already available in early
10601         GLIB-1.3 days whiches API hasn't changed since, to avoid
10602         version problems with the win32 build
10604         * lib/font.c : finally fix #58045 and #68208
10606         * lib/dia_xml.c (xmlDiaSaveFile) : gzdopen in binary mode
10608 2002-01-24  Akira TAGOH  <tagoh@redhat.com>
10610         * app/disp_callbacks.c (ddisplay_canvas_events): when event returned
10611         no strings, fixed transaction.
10613         * lib/charconv.h: fixed typo.
10615         * app/menus.c: fixed typo.
10617         * lib/charconv.c (charconv_utf8_strchr): remove. use uni_strchr instead.
10619         * objects/UML/object.c: attrib's type uses utfchar instead of char.
10621         * app/disp_callbacks.c (ddisplay_canvas_events): forget g_free()
10623         * lib/text.c (text_create_change): use unichar instead of char.
10625         * lib/text.c (data_add_text, data_text, apply_textstr_properties):
10626         use utfchar instead of char.
10628         * lib/text.c (text_insert_char, text_key_event): fixed transaction for
10629         UTF-8 support.
10631         * lib/charconv.c (charconv_utf8_get_char): add new function.
10633 2002-01-23  Akira TAGOH  <tagoh@redhat.com>
10635         * lib/text.c (text_delete_forward, text_delete_backward,
10636         text_split_line): fixed transaction for UTF-8 support.
10638         * lib/text.c (text_copy): when UNICODE_WORK_IN_PROGRESS is defined,
10639         strlen[] has string length for UTF-8, so has to use alloclen[].
10641         * dia.pot: remove.
10643         * .cvsignore: add dia.pot.
10645 2002-01-24  Stanislav Visnovsky  <visnovsky@nenya.ms.mff.cuni.cz>
10647         * configure.in: Added "sk" to ALL_LINGUAS.
10649 2002-01-22  Akira TAGOH  <tagoh@redhat.com>
10651         * lib/text.c (text_set_string, new_text, text_copy,
10652         text_get_string_copy, text_join_lines): use utfchar instead of gchar
10653         for strings.
10655         * lib/text.c (set_string): use charconv_utf8_strchr() instead of
10656         strchr().
10658         * lib/charconv.c (charconv_utf8_strchr): add new function.
10660         * lib/charconv.c (charconv_keyval_to_unicode): ditto.
10662         * lib/charconv.c (charconv_utf8_from_gtk_event_key): ditto.
10664         * app/disp_callbacks.c (ddisplay_canvas_events): needs to convert
10665         strings to the appropriate encoding.
10667 2002-01-22  Lars Clausen  <lrclause@cs.uiuc.edu>
10669         * app/object_ops.c (object_list_align_[hv]): Leak fix.
10671         * lib/Makefile.am (INCLUDES): Added debug flags.
10673         * app/object_ops.c: Fixed ordering problem of align equi-distant &
10674         adjacent. 
10676 2002-01-21  Akira TAGOH  <tagoh@redhat.com>
10678         * lib/font.c (font_string_width): use gdk_text_width_wc() instead of
10679         gdk_string_width().
10681         * objects/GRAFCET/boolequation.c: fixed invalid comment.
10683         * objects/UML/stereotype.c (string_to_bracketted): fixed build problem
10684         when defined UNICODE_WORK_IN_PROGRESS.
10686         * lib/dia_xml.c (data_add_string): fixed typo.
10688 2002-01-20  Akira TAGOH  <tagoh@redhat.com>
10690         * configure.in: fixed test gtk_advancement.
10692 2002-01-019  Steffen Macke  <sdteffen@yahoo.com>
10694         * plug-ins/svg/render_svg.c: fix for #69053, alignment of text
10695         exported to SVG
10697         Patch from M.C. Nelson <mcn@mani.kobayashimaru.org>: 
10699         * app/recent_files.[ch]: reworked to support GNOME, accelerators,
10700         tool tips, preferences, and arbitrarily long ~/.dia/history
10702         * app/menus.c: made 'Plugins' consistantly spelled and accelerated;
10703         removed 'Open Recent'; added new separators for recent documents on
10704         File menu.
10706         * app/interface.[ch] (interface_get_toolbox_shell): new function
10708         * app/diagram.c: added new parameter to recent_file_history_add() call
10710         * app/preferences.[ch]: added new 'Recent documents list size'
10711         preferences item
10712         
10713 2002-01-18  Akira TAGOH  <tagoh@redhat.com>
10715         * lib/font.c (font_get_gdkfont_helper): use gdk_fontset_load ().
10716         if it failed, should be used gdk_font_load ().
10718         * lib/font.c (font_data): added the font entries for CJK.
10720 2002-01-17  Steffen Macke  <sdteffen@yahoo.com>
10722         Patch from M.C. Nelson <mcn@mani.kobayashimaru.org>:
10724         * app/menus.c: replaced GDK_F1 with "F1" to fix segfault on startup
10725         
10726 2002-01-04  Cyrille Chepelov  <cyrille@chepelov.org>
10728         Patch from Martin Cracauer <cracauer@cons.org>:
10729         
10730         * app/menus.c: add missing #include <gdk/gdkkeysyms.h> (useful in the
10731         non-GNOME case ?)
10733 2002-01-01  Hans Breuer  <hans@breuer.org>
10735         * app/command.c : optional use GDI printing on windoze
10737         * app/preferences.[hc] : add option 'prefer_psprint' to 
10738         select the print engine to use (could be used for Dia/Gnome
10739         as well)
10741         * app/paginate_gdiprint.(h|cpp) : new files, which interlink the
10742         wmf plug-in with the common win32 print api. Now printing
10743         should work almost as expected from a windows program :-)
10745         * app/diagram.c app/menus.[hc] : rename _UpdatableMenuItems.delete
10746         to .edit_delete to avoid clashes with C++
10748         * app/makefile.msc : updated for GDI printing
10750         * plug-ins/wmf/wmf.cpp : some small modifications to support
10751         GDI printing. Also swap R and B channel in draw_image()
10753         * app/makefile.am : added windows only files to EXTRA_DIST
10755         * objects/uml/class.c(umlclass_set_props) : force recalculation
10756         when applying properties
10758         * lib/charconv.c lib/dia_xml.c : temporary back-ported to
10759         glib-1.3.2 (for win32) IMHO causes recent cvs introduces too
10760         many incompatible changes (and would force a gtk update)
10762         * objects/makefile.msc : don't build C-Objects which are
10763         already available as 'pure shape'
10765         * plug-ins/makefile.msc : remove diaimport from build. It was
10766         only available via mailing-list and is broken since the
10767         StdProp overhaul.
10770         Patch from Jose A Ortega Ruiz  <jaortega@acm.org>
10772         * app/preferences.[hc] : tweaked preferences.c to make 
10773         PREF_STRING work. Use it for 'diagram_tree_hidden'. Also
10774         added some more DiagramTree prefererences and their own
10775         notebook page.
10777         * app/diagram_tree.[hc] : allow to sort by object type or name
10778         and hide by type ...
10779         * app/diagram_tree_menu.[hc] : ... add respective menu entries ...
10780         * app/diagram_tree_menu_callbacks.[hc] : ... and callbacks.
10782         * app/diagram_tree_window.c : handle hidden types and window
10783         size restoring.
10785 2001-12-20  Hans Breuer  <hans@breuer.org>
10787         * plug-ins/python/Makefile.am : patch from Peter Moulder 
10788         <pmoulder@csse.monash.edu.au> to make the python plug-in
10789         compile on *nix too.
10791 2001-12-03  Cyrille Chepelov  <chepelov@calixo.net>
10793         Patch from Alan <horkana@tcd.ie>:
10795         * app/menus.c: bind the F1 shortcut to the Help/_Manual function.
10797 2001-11-20  Hans Breuer  <hans@breuer.org>
10799         * app/makefile.msc : add new diagram_tree_menu(_callbacks).obj
10801 2001-11-18  Jose A Ortega Ruiz  <jaortega@acm.org>
10803         * app/diagram_tree.[hc] : Added new functions and types for
10804         sorting diagram and objects, and attaching the popup menus.
10806         * app/preferences.h: Added more diagram tree preferences, using a
10807         DiagramTreeConfig struct in DiaPreferences. The new prefs are the
10808         height and width of the diagram tree window and the default sort
10809         orders for diagrams and objects.
10811         * app/preferences.c (prefs_data): Added new entries for the new
10812         diagram tree preferences.
10814         * app/preferences.c (prefs_tabs): New tab for diagram tree
10815         preferences.
10817         * app/diagram_tree_window.[hc] (create_diagram_tree_window): 
10818         * app/diagram_tree_window.c (diagram_tree_window_new): 
10819         * app/interface.c (create_tree_window): The diagram tree window is
10820         initialised using the DiagramTreeConfig part of prefs.
10823 2001-11-14  Jose A Ortega Ruiz  <jaortega@acm.org>
10825         * app/diagram_tree_menu.[hc]: New files. Functions to create the
10826         diagram tree popup menus.
10828         * app/diagram_tree_menu_callbacks.[hc]: New files. Callbacks for
10829         the diagram tree popup menus.
10831         * app/Makefile.am (dia_core_files): diagram_tree_menu* files
10832         added.
10834 2001-11-13  Jose A Ortega Ruiz  <jaortega@acm.org>
10836         * app/diagram_tree.c (double_click_callback, diagram_tree_new):
10837         double-clicking a diagram tree node raises the diagram window
10838         to the foreground (and, if a object node was clicked, selects the
10839         object in the diagram).
10841         * app/diagram_tree.c (select_tree_widget): selecting an object
10842         node with single click simply updates it (no raise).
10844 2001-11-08  Jose A Ortega Ruiz  <jaortega@acm.org>
10845         These changes make the diagram tree lazy: it is not created unless
10846         the diagram tree window is requested.
10847         
10848         * app/diagram_tree_window.[hc] (create_diagram_tree_window): new
10849         function for creating the tree window.
10851         * app/interface.c (create_tree_window): call
10852         create_diagram_tree_window() instead of diagram_window().
10854         * app/diagram_tree.c (diagram_tree_add, diagram_tree_remove) 
10855         (diagram_tree_update, diagram_tree_update_name) 
10856         (diagram_tree_add_object, diagram_tree_add_objects) 
10857         (diagram_tree_remove_object, diagram_tree_remove_objects) 
10858         (diagram_tree_update_object): accept a NULL tree as a nominal
10859         argument (and do nothing in this case!), so that the diagram tree
10860         is not initialised if not used.
10862         * app/diagram_tree_window.c (diagram_tree): do not create the
10863         diagram tree until diagram_window() or diagtree_show_callback()
10864         are invoked.
10866 2001-10-31  Jose A Ortega Ruiz  <jaortega@acm.org>
10867         [slightly modified and applied from Hans Breuer <hans@breuer.org>]
10869         * app/diagram_tree_window.[hc] : (new files) implementation of 
10870         the diagram tree window, a container for a diagram tree. [Removed
10871         the horizontal scroll bar glitch by disableing it]
10873         * app/diagram_tree.[hc] : (new files) implementation of the 
10874         diagram tree widget. [Don't rely on the layers GPtrArray to be
10875         NULL terminated, but use its ->len field] 
10877         * app/Makefile.am (dia_core_files): added new files
10878         diagram_tree.[hc] and diagram_tree_window.[hc]
10880         * app/interface.[hc] : (create_tree_window): this function 
10881         creates the new diagram tree window widget
10883         * app/undo.c (delete_objects_apply) (delete_objects_revert) 
10884         (insert_objects_apply) (insert_objects_revert) (group_objects_apply) 
10885         (ungroup_objects_apply) (ungroup_objects_revert): 
10886         every time that an undoable command modifies a diagram 
10887         adding/removing/(un)grouping objects, a diagram_tree_something() is 
10888         invoked to keep the diagram tree window in sync
10890         * app/properties.c (properties_apply): call to
10891         diagram_object_modified(), which updates the diagram tree window
10892         when the properties of an object are modified
10894         * app/preferences.[hc] : new "show_diagram_tree" configuration option 
10895         (whether the diagram tree window should be shown on dia startup)
10897         * app/menus.c : added '<Toolbox>/File/Diagram Tree' entry
10899         * app/diagram.h (diagram_object_modified): callback notifying of a
10900         diagram object modification
10902         * app/diagram.c (diagram_load_into): added call to
10903         diagram_tree_add() to add newly loaded diagrams to the diagram
10904         tree window
10905         (diagram_destroy): call to diagram_tree_remove() to remove a
10906         destroyed diagram from the diagram tree window
10907         (diagram_add_object): call to diagram_tree_add_object() to add an
10908         object to the diagram tree window
10909         (diagram_add_object_list): as above, but with an object list
10910         (diagram_selected_break_external): deletion of objects from the
10911         diagram is detected here, and diagram_tree_remove_object() is
10912         invoked to remove the object from the diagram tree window (it
10913         would be nice to have a diagram_remove_object() in the Diagram
10914         interface)
10915         (diagram_set_filename): update the diagram tree window when a
10916         diagram's filename changes
10918         * app/commands.c (file_new_callback): added call to
10919         diagram_tree_add() to add newly created diagrams to the diagram
10920         tree window
10922         * app/app_procs.c (app_init): added call to create_tree_window()
10924         * app/makefile.msc : updated
10926 2001-10-28  Hans Breuer  <hans@breuer.org>
10928         * app/preferences.h (DiaPreferences): 
10929         * app/preferences.c (prefs_data): new "show_diagram_tree"
10930         configuration option (whether the diagram tree window should be
10931         shown on dia startup)
10933         * app/menus.c: added the new "<Toolbox>/View/Diagram tree" menu
10934         entry (both for GNOME and gtk)
10936         * app/diagram.h (diagram_object_modified): callback notifying of a
10937         diagram object modification
10939         * app/diagram.c (diagram_load_into): added call to
10940         diagram_tree_add() to add newly loaded diagrams to the diagram
10941         tree window
10942         (diagram_destroy): call to diagram_tree_remove() to remove a
10943         destroyed diagram from the diagram tree window
10944         (diagram_add_object): call to diagram_tree_add_object() to add an
10945         object to the diagram tree window
10946         (diagram_add_object_list): as above, but with an object list
10947         (diagram_selected_break_external): deletion of objects from the
10948         diagram is detected here, and diagram_tree_remove_object() is
10949         invoked to remove the object from the diagram tree window (it
10950         would be nice to have a diagram_remove_object() in the Diagram
10951         interface)
10952         (diagram_set_filename): update the diagram tree window when a
10953         diagram's filename changes
10955         * app/commands.c (file_new_callback): added call to
10956         diagram_tree_add() to add newly created diagrams to the diagram
10957         tree window
10959         * app/app_procs.c (app_init): added call to create_tree_window()
10961 2001-10-28  Hans Breuer  <hans@breuer.org>
10963         * plug-ins/python/pydia-property.c : apparently I missed
10964         to commit this last time. Now it has some more SetAttr
10965         support (apply from property)
10967         * plug-ins/python/pydia-properties.h : added PyDiaProperty_Check
10969         * plug-ins/python/pydia-text.[ch] : new files
10971 2001-10-14  Hans Breuer  <hans@breuer.org>
10973         * lib/charconv.c : g_locale_to_utf8() does not handle NULL
10974         strings. Use g_strdup() for these.
10976         libxml2 does not produce 'any extra indentation when saving a tree'
10977         [libxml2-2.4.2/doc/upgrade.html] anymore, which was the default with
10978         libxml(1). To get human readable XML some extra tweaking is required.
10979         It is enabled by setting 'pretty_formated_xml' to 'true' in 'diarc'.
10980         * lib/dia_xml.[hc] : provide and use 'DIAVAR pretty_formated_xml'
10981         * app/preferences.[ch] : initialize 'pretty_formated_xml'
10983         * lib/libdia.def : updated externals
10985         * lib/properties.h : add prototype for prop_list_from_single ()
10987         * plug-ins/makefile.msc : build metapost plug-in
10989         * plug-ins/metapost/render_metapost.c : msvc does not like
10990         switch labels without operation 'default: }'. Added a noop.
10992         * plug-ins/python/pydia-text.[hc] : (new files) wrap DiaText
10993         * plug-ins/python/diamodule.c : added PyDiaText 
10994         * plug-ins/python/makefile.msc : dito. Also added LIBXML_CFLAGS.
10995         Although the python plug-in does not use libxml at all, the
10996         headers are required to use the lib/prop*.h headers
10998         * plug-ins/python/pydia-diagramdata.c : added wrappers for
10999         update_extents and get_sorted_selected (should I duplicate
11000         more functions from PyDiaDiagram or should they be moved?)
11002         * plug-ins/python/pydia-properties.c : allow to set (some) properties
11003         through the dictionary api
11004         * plug-ins/python/pydia-property.h : declare PyDiaProperty_ApplyToObject
11005         * plug-ins/python/pydia-property.c : implement it (currently only
11006         string properties can be set)
11008         Reimplement PyDiaProperty_GetAttr by means of the new StdProp api.
11009         Quoting myself: 'Still not convinced that this is better than an 
11010          integral property->type and some casting ...
11011          It is trading a straightforward 40 lines switch statement to
11012          this nice 'type safe' function mapping (about 125 lines)'
11013         (But now it works again, better than changing the News file :)
11014         
11015 2001-10-14  Cyrille Chepelov  <chepelov@calixo.net>
11017         patch from <robert.young@dsto.defence.gov.au>: 
11018         * objects/UML/component.c: remember to set font in UML component
11019         object (fixes #62132)   
11021 2001-10-02  Lars Clausen  <lrclause@cs.uiuc.edu>
11023         * plug-ins/metapost/metapost.c: 
11024         * plug-ins/metapost/Makefile.am:
11025         * plug-ins/metapost/render_metapost.c:
11026         * plug-ins/metapost/render_metapost.h:
11027         Metapost renderer from Chris Sperandio
11029 2001-09-14  Hans Breuer  <hans@breuer.org>
11031         * app/render_gdk.c : reflect the fact, that GTK already talks
11032         UTF8 on win32, fixes #59982, #56100, (#55992 ?) ...
11034         * lib/font.c : 
11035         * app/render_libart.c : trying to fix #58045 but it appears
11036         to be an Gdk/win32, too. 
11038         * lib/charconv.c : handle utf8 conversion with the help of
11039         glib-1.3 even in the !HAVE_UNICODE case.
11041         * lib/dia_xml.c : reduce complaing about missing encoding, by
11042         detecting if the default (utf8) would break the file.
11044 2001-09-13  Cyrille Chepelov  <chepelov@calixo.net>
11046         * lib/charconv.c: (get_local_charset): at least please try to not 
11047         silently change the logic, while avoiding crashes. 
11049         * lib/font.c: (suck_font): put a #error, we have a nasty something
11050         to fix there before we switch to Gtk 2.0.
11051         
11052 2001-09-09  Hans Breuer  <hans@breuer.org>
11054         * **/makefile.mingw : Approach to compile Dia with mingw.
11055         Compiling mostly works but running does not (yet) ... 
11057         * lib/geometry.h : 
11058         - use G_OS_WIN32 instead of _MSC_VER to drag in isinf, etc. definitions. 
11059           Apparently mingw needs it too.
11060         - enable 'normalization' of a null verctor. Otherwise the beziergon
11061           bounding box calculation would be broken at least with msvc. What's
11062           the mathematical correct result of 0.0/0.0 ?
11064         * lib/dia_xml.c : isinf() for mingw too.
11066         * lib/dia_dirs.c : use MAX_PATH instead of _MAX_PATH (works for mingw 
11067         and msvc)
11069         * lib/charconv.c : still crashes if strcmp(NULL, "UTF-8"). 
11070         Please don't do it.
11072         * lib/font.c : Trying to reflect that GTK_TALKS_UTF8_WE_DONT
11074         * lib/libdia.def : updated externals. Apparently mingw needs
11075         them to produce the right mangling.
11077         * plug-ins/shape/shape-exports.c : get prototypes for xmlStrdup
11078         and xmlDiaSaveFile
11080 2001-09-08  Wang Jian  <lark@linux.net.cn>
11082         * configure.in(ALL_LINGUAS): Renamed zh_CN.GB2312 to zh_CN
11084 2001-09-07  Cyrille Chepelov  <chepelov@calixo.net>
11086         * lib/dia_xml_libxml.h:
11087         * lib/dia_xml.c: (data_add_string), (xmlDiaSaveFile): Duplicated
11088         libxml1's code, to rework the output file before it gets committed
11089         to disk. This is rubbish, and will be removed when libxml2
11090         switches from discouraged to mandatory. 
11091         All in all, this fixes #60152. 
11092         
11093         * lib/charconv.h: 
11094         * lib/charconv.c: (charconv_unichar_to_utf8):
11095         made the type of the input parameter explicitly an unsigned long.
11097         * configure.in: Added a check for libz (we must now include it
11098         explicitly, for xmlDiaSaveFile).
11099         
11100         * app/load_save.c: (diagram_data_save):
11101         * lib/plug-ins.c: (ensure_pluginrc), (info_fill_from_pluginrc),
11102         (dia_pluginrc_write):
11103         * plug-ins/shape/shape-export.c: (new_shape_renderer),
11104         (end_render), (draw_string):
11105         * plug-ins/svg/render_svg.c: (new_svg_renderer), (end_render),
11106         (draw_string):
11108         Made sure we always write UTF-8 XML files, and through
11109         xmlDiaSaveFile().
11111         * NEWS: documented that fact.
11112         
11113 2001-09-07  James Henstridge  <james@daa.com.au>
11115         * configure.in (found_libxml): refactor the check for libxml a
11116         little so that it handles finding both libxml1 and 2 better.
11118 2001-09-03  Cyrille Chepelov  <chepelov@calixo.net>
11120         * app/app_procs.c: removed a spurious } which caused a compilation
11121         error in the (!HAVE_GNOME && HAVE_POPT_H) case
11123         * lib/charconv.c: (get_local_charset): some versions of iconv(1)
11124         don't know what ANSI X3.4-1968 is. I didn't know until this day,
11125         but it's just plain old ASCII. Added a check to shield the poor
11126         XML library.
11128         Patches from <robert.young@dsto.defence.gov.au>:
11130         * lib/text.c: (text_calc_boundingbox) Bounding box now calculates the
11131         width and height of text before calculating bounds. Fixes #59928
11133         * app/preferences.c: Moved grid related items into Grid Tab.
11134         
11135 2001-09-02  Cyrille Chepelov  <chepelov@calixo.net>
11137         * app/interface.c: (create_zoom_widget): connected one more signal
11138         to the Zoom selector combo's list. Fixes #59879.
11140         * app/app_procs.[ch]: (app_init) (do_convert)
11141         (build_output_file_name): brought back into the main executable
11142         the rare useful bits of the ill-fated diaconv. This means we have
11143         one new feature : --export-to-format (-t), which should make
11144         writing conversion scripts easier, and a crude implementation of
11145         -t and -e for the poptless argument parsing, which means the Win32
11146         port should be able to take advantage of it (that should make
11147         resolving #58197 possible).
11149         * app/diaconv.c: kept the poor duck compiling (but that's about
11150         it).
11152         * plug-ins/svg/render_svg.c: updated the SVG DTD header (I hope
11153         I've got it right).
11155         * NEWS: updated about the new feature above, and documented the 
11156         "missing encoding specification" complaint. 
11157         
11158 2001-09-01  Abel Cheung  <maddog@linux.org.hk>
11160         * configure.in: Rename zh_TW.Big5 -> zh_TW in ALL_LINGUAS.
11162 2001-09-01  Cyrille Chepelov  <chepelov@calixo.net>
11164         * objects/standard/bezier.c: used g_new0 instead of g_new, to take
11165         care of #59837.
11167 2001-09-01  James Henstridge  <james@daa.com.au>
11169         * */Makefile.am: various changes to include missing files, and fix
11170         sheets dir to handle building with builddir != srcdir.
11172         * autogen.sh: unconditionally pass the --enable-maintainer-mode
11173         and --enable-db2html flags so that builds from CVS work correctly.
11175         * configure.in: increment version number.  Also add an
11176         --enable-db2html flag.  Without the flag, db2html won't be run (if
11177         the flag is passed and db2html is not present, do nothing).
11179 2001-08-30  Cyrille Chepelov  <chepelov@calixo.net>
11181         * lib/poly_conn.c: (polyconn_copy): it's a wonder this routine
11182         even compiled. It's really too bad there is no lint tool easily
11183         available (or a more cautious, pedandic, paranoid and verbose
11184         compiler). Anyway, this fixes #59662. (this didn't affect 0.88.x)
11186 2001-08-27  Cyrille Chepelov  <chepelov@calixo.net>
11188         * app/load_save.c:
11189         * dia/lib/plug-ins.c: use g_strdup() instead of strdup(). Patch
11190         from <robert.young@dsto.defence.gov.au>. Fixes #59591.
11192         * app/menu.c: added ellipsis(...) to diagram properties menu item.
11193         * app/dia-props.c: diagram properties dialog contents did not
11194         represent current diagram settings.
11195         * app/dia-props.[ch]:
11196         * app/display.c: diagram properties contents now follows currently
11197         selected diagram.
11198         Patch also from <robert.young@dsto.defence.gov.au>, fixes #59409.
11200         * AUTHORS: added Robert Young.
11201         
11202 2001-08-27  Cyrille Chepelov  <chepelov@calixo.net>
11204         * app/modify_tool.c: (modify_button_release): Patch from
11205         <robert.young@dsto.defence.gov.au>. Fixes the remaining bit from
11206         #59090: if selection dragging was released outside of the window, 
11207         artifacts of the selection box remained.
11209 2001-08-25  Cyrille Chepelov  <chepelov@calixo.net>
11211         * Objects/custom/shape_info.c: added missing #include <xmlmemory.h>
11213 2001-08-19  Cyrille Chepelov  <chepelov@calixo.net>
11215         * configure.in:
11216         * sheets/Makefile.am: prepared the terrain for the Version of
11217         xml-i18n-tools Which Comes After 0.9 (and which will feature at
11218         last a sane behaviour with XML files). Some reasonible delay
11219         before enforcing that version *will* be given.
11221         * xml-i18n-merge.in.kg: included the current CVS xml-i18n-merge.in
11222         
11223         * lib/plug-ins.c: <xmlmemory.h> defines xmlFree(), otherwise it
11224         becomes a nonexistent symbol.
11225         
11226 2001-08-18  Hans Breuer  <hans@breuer.org>
11228         * app/app_procs.c : made it compile without ENABLE_NLS
11230         * app/diap_callbacks.c : strcmp isn't guaranteed to work
11231         with NULL pointers
11233         * app/load_save.c :
11234         * lib/plug-ins.c : 
11235         * objects/custom/shape_info.c : avoid mixing allocators and dealocators. 
11236         It has to be :
11237                 xmlGetProp, ... -> xmlFree
11238                 malloc, strdup -> free
11239                 g_new, g_malloc, g_strdup - > g_free
11241         * app/win32print.c : some more error checking, still not
11242         working on Win9x
11244         * lib/charconv.c : get_local_charset is used even with !HAVE_UNICODE
11246         * lib/dia_xml.c : msvc still has no unistd.h
11248         * lib/dia_xml.c :
11249         * lib/sheets.c : temporary resolved libxml include brokeness
11251         * plug-ins/python/pydia-*.c : reflect Font and StdProp api
11252         changes. Compiles again, but doesn't do anything useful anymore.
11253         (see THE_PROP_TYPE_IS_INTEGRAL)
11255         * **/makefile.msc : updated to use LIBXML2
11257         * lib/libdia.def : reflect api changes
11259 2001-08-17  Cyrille Chepelov  <chepelov@calixo.net>
11261         * config.h.win32: added defines telling that gtk speaks UTF8.
11262         Hans, I believe this reflects what GTK on Win32 does.
11264         * app/app_procs.c: if GTK talks UTF8, we'll feed it UTF8 localised
11265         strings.        
11266         * lib/prop_inttypes.c: 
11267         * lib/prop_text.c:
11268         * lib/prop_widgets.c: fixed typos in the GTK_TALKS_UTF8_WE_DONT
11269         code path.
11270         
11271         * lib/plug-ins.c: (dia_register_plugins_in_dir): If there is a
11272         trailing // (or whatever (G_DIR_SEPARATOR * 2) is), a recursive
11273         search for plug-ins is done.
11274         * app/Makefile.am: made app/run_dia.sh use the // capability. No
11275         need to update this anymore if we get a new plug-in library (or
11276         remove one).
11278         * lib/dia_xml.c: #include <unistd.h> was missing.
11279         
11280         * lib/properties.h: 
11281         * lib/proplist.c: (pdtpp_defaults): Added a new flag,
11282         PROP_FLAG_NO_DEFAULTS. Will be used in the "automatic defaults"
11283         support.        
11285 2001-08-16  Cyrille Chepelov  <chepelov@calixo.net>
11287         * sheets/civil.sheet: removed duplicate "Danish" entries.
11289         * autogen.sh:
11290         * configure.in: 
11291         * .cvsignore:
11292         * sheets/Makefile.am: 
11293         * po/POTFILES.in:
11294         * Makefile.am: applied the xml-i18n-tools README's instructions.
11296         * po/(da de fr hu nl nn no sl).po: merged the translations from
11297         the sheet files into the .po files. I hope I haven't mixed
11298         languages...
11299         * sheets/*.sheet (REMOVED):
11300         * sheets/*.sheet.in (NEW): moved the sheet files sans
11301         translations into .sheet.in files. 
11302         
11303         * sheets/xml-i18n-unicodify: (NEW) included from xml-i18n-tools,
11304         because we don't yet want to force all translators to work using
11305         UTF-8 editors. We'll want to do that sometime (sooner rather than
11306         later). Okay, I sing a slightly different tune in po/ChangeLog...
11308         * dia.desktop (REMOVED):
11309         * dia.desktop.in (NEW): used also the x18t infrastructure for
11310         this too.
11312         * xml-i18n-update.in.kg (NEW): This one will stay in CVS until an
11313         "official" version of x18t with support for .sheet files is available.
11314         * xml-i18n-merge.in.kg (NEW): This one will stay in CVS until an
11315         "official" version of x18t which doesn't corrupt UTF-8 data in XML
11316         is available.
11317         
11318         ** yes, we are now using xml-i18n-tools to manage the sheet
11319         translations. For the Win32 build, Nemo stores snapshots of
11320         translated strings next to the CVS snapshots. **
11322         * sheets/checktrans.py: suddenly, some sheets have lots of
11323         translations (objects which existed before sheets, mostly).
11324         Adapted the formatting.
11326         * po/README (REMOVED): this is obsolete ! It was ignored, anyway.
11328         * app/display.[ch]: (ddisplay_autoscroll), (ddisplay_scroll):
11329         * app/modify_tool.[ch]: (modify_motion): A (modified) patch from
11330         <robert.young@dsto.defence.gov.au>, to fix #59090.
11332         * app/display.c: (ddisplay_scroll): While at it, added some
11333         margin, so that autoscrolling can happen within a margin outside
11334         the diagram's extents.
11336         * app/tool.[ch]: 
11337         * app/interface.c:
11338         * app/disp_callbacks.c: Robert "forced" me to go when I usually
11339         don't, namely the app/ directory. So while I was there, I
11340         scratched a long-time itch. If no object has focus, pressing the
11341         space bar will select back the tool which was selected before the 
11342         current one (I find this especially useful with "reset after create" !)
11343         
11344         * lib/proplist.c: (prop_list_from_single): Renamed
11345         prop_list_singleton() to avoid confusion with the Singleton
11346         pattern (which it definitely is not).
11347         
11348         * lib/propobject.c: (object_prop_by_name_type),
11349         (object_prop_by_name): The "flags" parameter was not necessary.
11350         These don't return synthetic properties, but properties built from
11351         a real property description list; therefore, we don't call
11352         make_new_prop() but use the existing property descriptor, which
11353         has perfectly valid (and meaningful) flags.
11355         * lib/proplist.c: (pdtpp_synthetic), (pdtpp_from_object): These
11356         new predicates better reflect the reason why properties exist when
11357         they're created by make_new_prop() or object_prop_by_name().    
11359         * lib/propobject.c: (object_prop_by_name_type), (object_prop_by_name):
11360         * lib/prop_basic.c: (make_new_prop): used the new reasons instead
11361         of pdtpp_true().
11363         * lib/properties.h: reflects all the above changes.
11365         * objects/SADT/arrow.c:
11366         * objects/SADT/annotation.c:
11367         * sheets/SADT.sheet: minor renamings to better match FIPS 183's
11368         IDEF0 terminology.
11369         
11370 2001-08-15  Cyrille Chepelov  <chepelov@calixo.net>
11372         * lib/properties.h:
11373         * lib/proplist.c: (prop_list_singleton):
11374         * lib/propobject.c: (object_prop_by_name_type), (object_prop_by_name):
11375         Added these, to simplify interactions of plug-ins with the StdProp
11376         core.
11378         * lib/Makefile.am:
11379         * lib/dia_xml.h:
11380         * lib/dia_xml_libxml.h (NEW): 
11381         * app/load_save.c:
11382         * lib/dia_xml.c:
11383         * lib/plug-ins.c:
11384         * lib/sheet.c:
11385         * objects/custom/shape_info.c: A few prototypes were causing
11386         #include hell, because we generally attempt to not pull the whole
11387         libxml header set when we include dia_xml.h. Moved those
11388         prototypes away for the rare cases they're necessary.
11389         
11390 2001-08-15  Hans Breuer  <hans@breuer.org>
11392         * lib/font.c : made LARS_TRACE_MESSAGES Standard C conform
11394         * lib/libdia.def : 
11395         * lib/makefile.msc : updated
11397         * lib/prop_basic.c : __FUNCTION__ is a gcc extension. Please
11398         use G_GNUC_FUNCTION instead.
11400         * lib/prop_inttypes.c : include <stdlib.h> for strtol()
11402         * objects/sadt/annotation.c : disable TEMPORARY_EVENT_TEST for
11403         msvc instead of cleaning missing includes
11405         * plug-ins/wmf/wmf.cpp :
11406         * plug-ins/wmf/wmf_gdi.h : fixed for Font to DiaFont renaming
11408 2001-08-15  Cyrille Chepelov <chepelov@calixo.net>
11410         * app/app_procs.c:
11411         * app/load_save.c:
11412         * lib/dia_xml.c:
11413         * lib/plug-ins.c:
11414         * lib/sheet.c:
11415         * objects/custom/shape_info.c:
11416         * plug-ins/shape/shape-export.c:
11417         * plug-ins/svg/render_svg.c: used the libxml1/libxml2
11418         compatibility macros as taught by http://xmlsoft.org/upgrade.html;
11419         removed xmlKeepBlanksDefault(0) in favour for proper
11420         xmlIsBlankNode() testing. Lots of other fixups to use the
11421         "libxml1.5" (libxml2 parser embedded in recent libxml1), and to
11422         make libxml1 output correct files.
11424         * configure.in: use libxml2 (>= 2.3.9) if it's found, or
11425         libxml1 (>= 1.8.14). Exactly one of these must be installed (devel
11426         packages). If both devel packages are found, the build will stop 
11427         (Fredrik: please add a Build-Conflicts: on libxml2-dev for the moment) 
11429         * lib/bezier_conn.c: (bezierconn_init): Lars, you forgot to
11430         allocate the first handle :-)
11431         
11432         * lib/object.c: (object_init): <gratuitous>g_new() used instead of
11433         a cast and a sizeof.</gratuitous>
11435         * objects/custom/custom_object.c: (custom_copy): don't call
11436         text_get_attrbutes if the shape has no text...
11437         (custom_update_data): The info->resize_with_text code was a bit
11438         directive; basically, the shape's bounding box was forced to be 
11439         proportional to the text's bounding box.... This fixes #57187.
11440         
11441         * objects/custom/shape_info.c: (load_shape_info): Set an obvious
11442         default for info->aspect_ratio; unobfuscated a line about
11443         info->resize_with_text;
11444         
11445 2001-08-15  Cyrille Chepelov <chepelov@calixo.net>
11447         * lib/properties.h: added comments next to the PROP_TYPEs to tell
11448         which C Property subclass to use.
11449         
11450         * plug-ins/dxf/dxf-import.c: (read_entity_line_dxf): Removed the
11451         cast-ridden form of setting properties in a list, in favour for
11452         the "local pointers" form. I'll take any better offer...
11454 2001-08-14  Cyrille Chepelov <chepelov@calixo.net>
11455         
11456         * lib/font.c: fprintf(...) --> fprintf(format...)
11458         * configure.in: added a disabled versioned test for glib.
11459         * lib/prop_geomtypes.c: (bezpointprop_load), (bezpointprop_save),
11460         (bezpointarrayprop_load), (bezpointarrayprop_save): replaced
11461         g_critical() with a simple g_error(). Proper fix is to implement
11462         that stuff. 
11464         * lib/properties.h: PROP_STD_TEXT is a PROP_TYPE_TEXT, not a
11465         PROP_TYPE_STRING.
11466         
11467         * lib/properties.h:     
11468         * lib/propdesc.c: (prop_desc_list_calculate_quarks):
11469         * lib/proplist.c: (find_prop_by_name_and_type):
11470         * lib/prop_basic.c: (make_new_prop), (initialize_property):
11471         * lib/propoffsets.c: (do_set_props_from_offsets),
11472         (do_get_props_from_offsets), (prop_offset_list_calculate_quarks):
11473         Added a type_quark member to PropDescription, Property and
11474         PropOffset. Used it to implement a safety in
11475         do_[sg]et_props_from_offsets().
11476                 
11477         * objects/flowchart/diamond.c: the diamond's text was not saved,
11478         and thus not even copied (c&p).
11479         * objects/standard/textobj.c: ditto.
11481         Most of the above changes thanks to Robert Young's testing. Thanks !
11482         
11483 2001-08-14  Kjartan Maraas  <kmaraas@gnome.org>
11485         * sheets/*.sheet: Added some Norwegian translations (both nynorsk
11486         and bokmÃ¥l).
11487         
11488 2001-08-13  Cyrille Chepelov  <chepelov@calixo.net>
11490         * lib/proplist.c (prop_list_from_descs): added a call to
11491         prop_desc_list_calculate_quarks(). (find_prop_by_name_and_type):
11492         too embarrassing to tell.
11493         
11494         * lib/propdesc.c (prop_desc_list_calculate_quarks): converted the
11495         while loop to a for loop, for symmetry with
11496         prop_offset_list_calculate_quarks().
11498         * lib/geometry.h: new inline function, rectangle_equals.
11500         * lib/diagramdata.[ch]: refactored a bit the diagram extents
11501         computation logic, and changed it to always be the union of the
11502         visible layers' extents. This should close #58882 (Debian
11503         #107167), and fixes #55498.
11505         * app/display.c: made the initial visible box more coherent with
11506         the diagram being loaded's extents.
11508         * app/prop_attr.c: don't set the font (from offset) if font_data
11509         is NULL. Two brainos in colorprop_load() and fontprop_load().
11510         
11511 2001-08-13  Cyrille Chepelov  <chepelov@calixo.net>
11513         * lib/properties.[ch]: split in a lot of pieces: 
11515         * lib/prop_*.[ch] (NEW): all property types are now first-class
11516         objects, inheriting from the original abstract Property type.
11517         * lib/propdesc.c (NEW): property description handling routines
11518         * lib/propoffsets.c (NEW): property offset handling routines
11519         * lib/proplist.c (NEW): property list handling routines
11520         * lib/propobject.c (NEW): property list <-> object routines
11521         * lib/propregistry.c (NEW): holds the PropertyType-->PropertyOps
11522         relations.
11523         * lib/propinternals.h: prototypes for stuff not usually needed by 
11524         the outside of StdProps.
11525         * lib/Makefile.am: a lot of new files have been added...
11527         THE ABOVE CHANGES ARE MAJOR CHANGES AND AFFECT THE WHOLE TREE, IN
11528         BOTH INTERFACES AND RUN-TIME STABILITY.
11530         * lib/plug-ins.h: bumped up DIA_PLUGIN_API_VERSION
11531         
11532         * lib/object.h: removed the incestuous relationship with
11533         properties.h' contents. Now a Property list is a GPtrArray -->
11534         object interface change !
11536         * app/app_procs.c/app_init(): removed a disabled call to a
11537         non-existent routine. Added a call to stdprops_init().
11538         
11539         * objects/Makefile.am: disabled the construction of EML. I'm not
11540         touching these until a certain issue is solved (or this module
11541         removed).
11542         * app/group.c:  
11543         * objects/**/*.c except objects/EML/*: adapted all stdprop-using 
11544         objects to the interface changes.
11545         
11546         * app/disp_callbacks.c: killed a warning.
11547         * lib/dia_xml.[ch]: sprinkled "const" modifiers. 
11549         * app/commands.c: 
11550         The macros PROP_VALUE_* have disappeared. Adapted to using the new 
11551         interface.
11553         * plug-ins/dxf/dxf-import.c: 
11554         * plug-ins/xfig/xfig-import.c: 
11555         PROP_VALUE_* macros have been removed. Converted to the new API.
11557         * plug-ins/python/**/*: I gave up converting this; I can't
11558         compile --with-python (problems with object.h defined both by us
11559         and by Python). I'll gladly help whomever cares to fix it !
11560         (or, fix it myself if someone tells me how to compile it).
11561         
11562         * configure.in: added the UNICODE-related progress defines.
11563                 
11564         * configure.in:
11565         * lib/geometry.h: On Solaris and perhaps other systems, finite()
11566         is defined in ieeefp.h rather than in math.h. Patch from Andrew
11567         Halper <ashalper@acm.org> with further modifications, isinf() is
11568         provided by -lsunmath (sunmath.h).
11569         
11570         * lib/font.c: conditionally disabled Lars' debugging messages.
11571         Bracketed the definition of DiaFontFamily with #ifdef HAVE_FREETYPE.
11572         
11573 2001-08-11  Lars Clausen  <lrclause@cs.uiuc.edu>
11575         * lib/bezier_conn.h: 
11576         * objects/standard/bezier.c (bezierline_create): 
11577         * lib/bezier_conn.c (bezierconn_init): 
11578         Preparations for use of userdata for bezier lines.
11579         
11580         * objects/standard/polygon.c: 
11581         * objects/standard/create.h:
11582         * lib/polyshape.c:
11583         * lib/polyshape.h:
11584         * plug-ins/xfig/xfig-import.c:
11585         Use of user_data for polygon as well, including adding
11586         polyshape_set_points.  Include file for non-interactive 
11587         creation of standard objects, objects/standard/create.h
11589 2001-08-10  Lars Clausen  <lrclause@cs.uiuc.edu>
11591         * app/render_gdk.c: 
11592         * app/render_gdk.h: 
11593         * lib/font.c:
11594         * lib/font.h:
11595         * lib/widgets.c:
11596         More preliminary freetype support.  Not at all functional, crashes
11597         when rendering.
11599         * lib/poly_conn.h: 
11600         * lib/poly_conn.c: 
11601         * objects/standard/polyline.c: 
11602         Support for creating polyline objects with more than two points.
11603         This includes an extra function and a prototype change in the
11604         poly_conn lib object.
11606         * lib/object.c (object_copy): Fixed memory leak of handles and
11607         connections.
11609 2001-08-08  Abel Cheung  <maddog@linux.org.hk>
11611         * dia.desktop: added traditional Chinese strings
11613 2001-08-04  Cyrille Chepelov  <chepelov@calixo.net>
11615         * NEWS: updated to reflect build-time dependencies.
11617         * lib/properties.[ch]: wrote get_prop_descriptions() as a wrapper
11618         around obj->ops->describe_props(obj). Quarks are none of an
11619         object's business in the general case... 
11620         * lib/text.c: Added an apply_textattr_properties() function to
11621         factor out some common code related to applying a dialog's text
11622         attribute properties to a (Text *) which wasn't edited there. 
11623         Ditto for textstr, for the string part of an objet.
11625         * objects/GRAFCET/action.c:
11626         * objects/SADT/annotation.c:
11627         * objects/SADT/box.c: used apply_textattr_properties().
11628         
11629         * objects/UML/actor.c: 
11630         * objects/UML/branch.c:
11631         * objects/UML/component.c:
11632         * objects/UML/constraint.c:
11633         * objects/UML/small_package.c:
11634         * objects/UML/state.c:
11635         * objects/UML/usecase.c:
11636         * objects/UML/large_package.c:
11637         * objects/UML/note.c:
11638         * objects/UML/node.c:
11639         * objects/UML/message.c:
11640         * objects/UML/classicon.c:
11641         * objects/UML/object.c:
11642         * objects/UML/realizes.c:
11643         * objects/UML/dependency.c:
11644         * objects/UML/implements.c:
11645         slim-fast(tm) cure using more StdProps, and UTF-8 audit.
11646         (most objects were already using StdProps to some extent ; this
11647         systematises usage and removes some dead wood). 
11648         
11649         * objects/UML/stereotype.[ch]: use UTF-8 internally. const police work.
11650         * objects/UML/uml.[ch]: audited for UTF-8.
11652         * objects/UML/class.c: the UML_STEREOTYPE_* strings defined by
11653         uml.h can be in UTF-8... this code isn't yet ready. Duplicating a
11654         private (ISO-8859-1) definition.
11655         
11656         * lib/charconv.c: Added a warning if we didn't run
11657         nl_langinfo(CODESET) but rely instead on a hardcoded default.
11658         
11659 2001-08-02  Cyrille Chepelov  <chepelov@calixo.net>
11661         * lib/diamenu.h:
11662         * app/disp_callbacks.c: added a way for an object to cause an
11663         already realised menu to be destroyed (for instance if it changes
11664         too much).
11666         * objects/custom/custom_object.c: used the above to fix #55073.
11668 2001-08-01  Lars Clausen  <lrclause@cs.uiuc.edu>
11670         * configure.in: Remove 2.50 prereq.
11672 2001-07-30  Cyrille Chepelov  <chepelov@calixo.net>
11674         * po-checktrans.py: under some circumstances, there was one column 
11675         more than what was supposed to be, thus breaking the formatting.
11676         
11677 2001-07-29  Cyrille Chepelov  <chepelov@calixo.net>
11678         
11679         * objects/SADT/annotation.c: forgot to add a #include <stdlib.h>
11681         * NEWS: updated with new stuff since 0.88
11683         * shapes/network/antenna.shape: the text was misplaced ; fixed.
11685         * shapes/network/firewall.(shape|xpm) (NEW): a brick-wall looking
11686         firewall router (upon request from Cyril Lacoux
11687         <clacoux@easter-eggs.com>)
11689         * configure.in (didn't rename to configure.ac): autoconf 2.50
11690         constructs were used ; added an AC_PREREQ call to guard against
11691         older autoconfs.
11692         
11693 2001-07-27  Cyrille Chepelov  <chepelov@calixo.net>
11695         * lib/properties.c: minor clean-ups with the event delivery code.
11697         * EML/instantiation.c: brought this object back from stone and ice
11698         age.    
11700         * app/diaconv.c(NEW): added a command-line conversion tool. Still
11701         lacks a man page and correctness. In fact, it doesn't work. Please
11702         see #58196 if you want to finish it.
11703         
11704         * lib/message.[ch]: redefined things a little so that a different
11705         message_internal routine could be passed.
11706         applications can use that to fit themselves to the display model.
11708 2001-07-26  Cyrille Chepelov  <chepelov@calixo.net>
11710         * objects/SADT/box.c: 
11711         * objects/GRAFCET/action.c: spelling in property descriptors (name
11712         field...)
11713         * objects/SADT/annotation.c: ditto, plus a temporary test of the
11714         event delivery code (try to click on the "click me !" button !).
11716         * app/group.c: 
11717         * lib/properties.[ch]: improved (fixed) support for group event 
11718         handlers. Fixed various things from yesterday's code to make it
11719         not too obviously crash.
11721 2001-07-26  Cyrille Chepelov  <chepelov@calixo.net>
11723         * app/group.c: added delivery of events to the first member of the
11724         group which is able to process it.
11726         * lib/properties.c(prop_desc_lists_intersection): properties
11727         don't match if they don't have identical event handler.
11728         * lib/properties.h: simplified the PropEventHandler signature.
11730         Event delivery code is still untested so far, but should be
11731         lurking harmless.
11732         
11733 2001-07-25  Cyrille Chepelov  <chepelov@calixo.net>
11735         * lib/properties.[ch]: Added (untested !) property event handler
11736         capability. Added a new PROP_TYPE_BUTTON, for the purpose of
11737         generating such events. This stuff compiles, and should lurk
11738         around silently as long as you don't declare property descriptors
11739         with events (AFAICT).
11740         In object_create_props_dialog() and friends:
11741         attached a single structure with lots of data instead of lots of
11742         little attachments of data to the dialog widget.
11743         
11744         * lib/object.h: fixed mild typedef breakage introduced by the above.
11746 2001-07-17  Lars Clausen  <lrclause@cs.uiuc.edu>
11748         * lots of files: Changed Font to DiaFont
11749         * */Makefile.am: Added FREETYPE_LIBS
11750         * plug-ins/xfig/xfig-export.c: Improved (working:) color handling
11752 2001-07-13  Kjartan Maraas  <kmaraas@gnome.org>
11754         * configure.in: Added "nn" to ALL_LINGUAS.
11755         
11756 2001-07-09  Alex Larsson  <alexl@redhat.com>
11758         * app/disp_callbacks.c:
11759         Add gdk_im_ready() calls to XIM code.
11761 2001-07-04  Cyrille Chepelov  <chepelov@calixo.net>
11763         * lib/properties.[ch]: splitted prop_get_widget() into
11764         prop_get_widget() (gives a widget but doesn't fill it) and 
11765         prop_reset_widget() (fills an existing widget with a property's value).
11767         * lib/widgets.[ch]: const enforcement police work.
11769         * shapes/network/antenna.shape: added a connection point at top,
11770         upon request from <Emmanuel.Quemener@cri.ens-cachan.fr>.
11771         
11772 2001-06-25  Cyrille Chepelov  <chepelov@calixo.net>
11774         * intl/*: tested with gettext-0.10.38
11775         * configure.in: moved a macro call around (AM_PROG_CC) to keep
11776         some of autogen.sh from complaining.
11777         * INSTALL: added a warning against gettext older than at least 0.10.36
11778         
11779 2001-06-19  Cyrille Chepelov  <chepelov@calixo.net>
11781         * configure.in: added explicit calls to AM_LANGINFO_CODESET and
11782         AM_ICONV (both provided by gettext)
11784 2001-06-14  Cyrille Chepelov  <chepelov@calixo.net>
11786         * lib/charconv.c: corrected the degraded mode for when
11787         !HAVE_UNICODE. Thanks to Ben A. Hetland for reporting this.     
11789         * objects/chronoline/chronoline_events.c: UTF8 compliance.
11790         
11791 2001-06-13  Cyrille Chepelov  <chepelov@calixo.net>
11793         * lib/properties.[ch]: convenience macros around PROP_NOTEBOOKS ;
11794         new "eye candy" properties: PROP_MULTICOL_(BEGIN|PAGE|END) to lay 
11795         widgets on several columns, PROP_FRAME_(BEGIN|END) to put widgets
11796         into a frame box.
11798         * objects/chronogram/chronoline.c:
11799         * objects/chronogram/chronoref.c: took advantage of the above to
11800         make nicer looking dialogs.
11802         * lib/charconv.[ch]: added charconv_unichar_to_utf8 ("inspired"
11803         from libunicode's internals).
11804         * lib/message.c: convert strings to local encoding prior to
11805         display (UNICODE_WORK_IN_PROGRESS)
11806         * lib/properties.[ch]: convert strings to local encoding prior to
11807         display, and back to UTF8 (UNICODE_WORK_IN_PROGRESS).
11808         * lib/render.h: tagged strings as (utfchar *) instead of (char *)
11809         * lib/stringprerenderer.[ch]: ditto
11811         (lib/text.c has been audited for UTF8, but the size of the changes
11812         make them inappropriate for commit before 0.89)
11813         
11814 2001-06-12  Cyrille Chepelov  <chepelov@calixo.net>
11816         * objects/boolequation.h (<save|load>_boolequation): made the 
11817         prototypes for match the .c file.
11818         
11819         * samples/grafcet.dia: minor non-conformance with IEC-848
11820         fixed (in the transition from step 100 to step 101).
11822         * lib/properties.[ch]: added a flag (PROP_FLAG_DONT_MERGE) to
11823         disallow editing of properties if the object is part of a group.
11825         * objects/chronogram/chronoline.c: 
11826         * objects/SADT/annotation.c:
11827         * objects/SADT/box.c:
11828         * objects/GRAFCET/step.c:
11829         * objects/GRAFCET/transition.c:
11830         * objects/GRAFCET/condition.c: took advantage of PROP_FLAG_DONT_MERGE.
11831         
11832 2001-06-12  Hans Breuer  <hans@breuer.org>
11834         * lib/libdia.def : removed lazyprop exports
11835         * lib/makefile.msc : removed lazyprop.obj
11837         * objects/custom/custom_objects.c : use HAVE_UNISTD_H
11838         and avoid crashes by always creating a custom->text,
11839         when (custom->info->has_text) 
11841         * objects/makefile.msc : removed sybase from build
11843         * objects/GRAFCET/boolequation.c (<save|load>_boolequation) :
11844         ObjectNode is a pointer already, which is what we want
11845         instead of a pointer pointer.
11847         * plug-ins/wmf/wmf.cpp : fixed problem with arc scaling
11848         and implemented working export for images
11850         * shapes/network/zip-disk.shape : added connection points 
11852 2001-06-12  Cyrille Chepelov  <chepelov@calixo.net>
11854         * objects/SADT/box.c: removed lazyprops for standard props.
11855         * objects/chronograms/chronoline.c: removed lazyprops (phew !)
11856         * objects/chronograms/chronoref.c: ditto 
11858         * lib/Makefile.am:
11859         * lib/dummy_dep.h:
11860         * lib/connpoint_line.c:
11861         * lib/lazyprops.[ch] (DELETED): good riddance (closes #55895)
11862         * lib/properties.[ch]: new property types:
11863             - PROP_TYPE_STATIC: static text to be displayed in the dialog.
11864             - PROP_TYPE_MULTISTRING: same as string, but renders as a
11865             multi-line entry box.
11866             - PROP_TYPE_NOTEBOOK_BEGIN,_PAGE,_END: stuff to make dialogs
11867             in a tabbed-notebook style (this is a bit complicated to use; 
11868             see objects/chronograms/chronoline.c for an example).
11869                
11870 2001-06-11  Cyrille Chepelov  <chepelov@calixo.net>
11872         * objects/GRAFCET/boolequation.[ch]: zap lazyprops. Add standard props.
11873         * objects/GRAFCET/step.c: ditto.
11874         * objects/GRAFCET/vector.c: ditto.
11875         * objects/SADT/annotation.c: ditto.
11876         * objects/SADT/arrow.c: ditto (plus bounding box fixes).
11877         
11878         * lib/properties.[ch]: two more non-visible types
11879         (PROP_TYPE_ENUMARRAY and PROP_TYPE_INTARRAY).
11881         * lib/neworthconn.[ch]:
11882         * lib/orthconn.[ch]: added support for manipulation through
11883         standard properties.
11885         * configure.in: removed -fomit-frame-pointer, this seems to
11886         confuse recent gcc/gdb's, maybe we'll get better stack dumps in 
11887         bugzilla.
11889         * charconv.[ch]: more functions from unicode.h.
11890         get_local_charset() wasn't working properly, fixed now.
11891         A subtle crashbug in charconv_utf8_to_local8() nailed (thanks to 
11892         ElectricFence !)
11893         
11894         * objects/EML/process.h: pulled the bits of lazyprops.h it uses.
11895         * lib/lazyprops.[ch]: put a big fat warning in.
11897         * app/render_eps.c: one line mysteriously went away, causing a
11898         variable to be used uninitialised....
11900 2001-06-10  Cyrille Chepelov  <chepelov@calixo.net>
11902         * app/app_procs.c: commented out the call to
11903         bind_textdomain_codeset(): it's premature.
11904         
11905         * lib/connpoint_line.c: a NULL point can be given to
11906         connpointline_adjust_count(), in case there's not really a clicked
11907         point.
11909         * lib/textattr.h(NEW): moved the definition of TextAttributes to sort
11910         #include order troubles. #included by lib/text.h, so there is no 
11911         impact outside lib/.
11912         * lib/properties.[ch]: added support for CONNPOINT_LINE and
11913         (nonvisible) TEXT properties.
11915         * objects/GRAFCET/action.c:
11916         * objects/GRAFCET/vergent.c: dropped lazyprops for standard
11917         properties.
11918         
11919         * objects/UML/lifeline.c: pruned some legacy stuff (now pure
11920         standard properties code). Grafted a dynamic number of connection
11921         points (heavily inspired from what Vergent does). This is the real
11922         fix for #55863.
11924         * objects/GRAFCET/boolequation.[ch]: audited for UTF-8
11926         * lib/fonts.c: some hardening (mostly g_assert())
11927 2001-06-09  Cyrille Chepelov  <chepelov@calixo.net>
11929         * app/app_procs.c (app_init): added a call to
11930         bind_textdomain_codeset() so that gettext gives us UTF-8 strings
11931         (UNICODE_WORK_IN_PROGRESS).
11932         
11933 2001-06-08  Cyrille Chepelov  <chepelov@calixo.net>
11935         * plug-ins/xfig/xfig-import.c: corrected a typo (fixes #55910)
11937         * objects/UML/lifeline.c: patch from Marc <mrw@siemens.ch> 
11938         (fixes #55863) : some clean-ups in the handling of connection
11939         points. Now the total number of connection points is just a
11940         #define (the proper solution is to retrofit the GRAFCET Vergent's
11941         dynamic behaviour wrt connection points).
11942         
11943 2001-06-07  Cyrille Chepelov  <chepelov@calixo.net>
11945         * app/app_procs.c (app_init): added a call to unicode_init() (only
11946         if HAVE_UNICODE, of course).
11948         * lib/charconv.c: simplified the code which detects the local
11949         charset. No need to use <langinfo.h>, libunicode already takes the
11950         burden of figuring that out. Also, if local charset is utf8, no
11951         conversion will take place.
11952         Exposed a way to get the current charset (similar to
11953         unicode_get_charset() but actually working, hopefully).
11955         * lib/charconv.h: Added a partial non-UTF8 implementation of
11956         unicode.h if !HAVE_UNICODE (actually, all the time for the
11957         moment). The UTF8 implementation is just macros on libunicode (use
11958         the functions prefixed by uni_, as defined by charconv.h, not
11959         unicode_, unless that code is to be compiled only if HAVE_UNICODE).
11960         From now on, all strings which don't *need* to be ASCII should be
11961         utfchar *, not gchar *. Just include charconv.h, let it sort out
11962         the details (such as: "is libunicode available and enabled?") 
11964         * lib/ps-utf8.c: fixed a few name clashes. Used the charconv.h
11965         "API" instead of directly libunicode. Removed the now unnecessary
11966         speculative clustering of characters in encoding pages.
11968         * app/render_eps.c: made the local8->utf8 conversions dependent of
11969         !UNICODE_WORK_IN_PROGRESS (this is not where the local8/utf8
11970         boundary will be when this WIP is done).
11972         * lib/dia_xml.c (data_point): fixed a format string typo.
11974         * po/POTFILES.in: added all C files from lib/ 
11975         
11976 2001-06-06  Cyrille Chepelov  <chepelov@calixo.net>
11978         * app/disp_callbacks.c: make sure the objects' connected objects
11979         are updated when the objects' size changes after a keypress event
11980         (fixes #51222)
11982         * configure.in: added a big warning about the possible future
11983         non-optionality of --enable-unicode. 
11985         * TODO: removed entries which look like done ; added a few ones
11986         (Bugzilla "enhancement" bugs may be a better way to keep track of
11987         this)
11988         
11989 2001-06-05  Cyrille Chepelov  <chepelov@calixo.net>
11991         * objects/UML/message.c: got rid of #55564 and of message_copy()
11992         by using more standard properties (are the message_state_*()
11993         functions still necessary ?)
11995 2001-06-04  Fredrik Hallenberg  <hallon@lysator.liu.se>
11997         * lib/plug-ins.c: 
11998         * objecs/custom/shape_info.c:
11999         * plug-ins/shape/shape-export.c:
12000         * plug-ins/svg/render_svg.c: patch from obecian <obecian@openbsd.org>
12001         use xmlChar instead of obsolete CHAR.
12003 2001-06-03  Hans Breuer  <hans@breuer.org>
12005         * app/diagram.h : added prototype for diagram_update_menu_sensitivity()
12006         * app/commands.c : give the right number of parameters
12007         to diagram_update_menu_sensitivity ()
12009         * app/preferences.c : do proper initialization for DiaPrefsData:
12010         render_bounding_boxes. It would be a real surprise if 'hidden'
12011         properties would have ever worked before.
12012         Don't try to access the widgets of hidden property, it does not
12013         have one.
12015         * lib/diagramdata.h : make render_bounding_boxes a DIAVAR, cause
12016         it is defined in libdia, but initialized from dia app, which 
12017         otherwise gave nice start-up crashes.
12019         * lib/diagramdata.c : initialize the color for rendering bounding 
12020         boxes in the Dia range (0 .. 1.0)
12022         * lib/libdia.def : added *_bbox functions for export
12024         * lib/makefile.msc : added new sources
12026         * objects/custom/custom_object.c : use HAVE_UNISTD_H
12028 2001-05-30  Cyrille Chepelov  <chepelov@calixo.net>
12030         * app/interface.c:
12031         * app/menus.c: patch from Hubert Figuiere <hfiguiere@teaser.fr> ;
12032         removes a translation of menus (in a place where there shouldn't
12033         have been), which gets rid of a waterfall of warnings if LANG!=C,
12034         and a fix to #55047.
12036 2001-05-29  Steffen Macke     <sdteffen@yahoo.com>
12038         * lib/charconv.c : added #include <errno.h>
12040         * app/dia_embedd.c : updated menus_get_item_from_path usage
12041         
12042 2001-05-27  Cyrille Chepelov  <chepelov@calixo.net>
12044         * lib/ps-utf8.c: Strings in Symbol fonts were incorrectly rendered.
12045         Added a special case for Symbol strings, so that they're not
12046         re-encoded using the LN encoding (we use the bare Adobe encoding
12047         instead).
12049         * objects/custom/custom_object.c: Now that #52912 is fixed,
12050         I could remove the ugly hack I wrote to squash the shape bounding box
12051         problem shown by Ben A. Hetland a few months ago, and fix it
12052         properly this time.
12053         
12054         * lib/text.c: enlarged a little the bounding box to account for
12055         the cursor in rightmost position.
12056         
12057         * lib/diagramdata.c: draw bounding boxes only if the relevant
12058         variable is set (as before), but also only if the rendere is
12059         interactive (ie, don't bother rendering bounding boxes on 
12060         Postscript...)
12061         Made the bounding box's line width a fixed value, 0.01
12062         
12063         * lib/boundingbox.c: fixed the "pointy corners" code for polylines
12064         and assymmetric control beziers. Implemented ellipse_bbox().
12065         
12066         * Makefile.am: incantations to get po/dia.pot build, as suggested
12067         by Hubert in #55075.
12068         
12069         * shapes/network/computer.shape: typo fixed.
12070         * shapes/network/antenna.shape: fixed #55074 (antenna is now
12071         properly translucent, except for its base where it makes sense. It
12072         doesn't look that ugly anymore if transparent mode is on).
12074         * configure.in: --enable-unicode is now the default. This
12075         still currently affects only printing.
12076         
12077 2001-05-26  Cyrille Chepelov  <chepelov@calixo.net>
12079         * lib/boundingbox.c: fixed a minor logic error wrt closed shapes. 
12080         The overshoot code is buggy, and the bounding boxes for polyshapes
12081         looks a bit cheezy. To be done ASAP.
12083 2001-05-26  James Henstridge  <james@daa.com.au>
12085         * configure.in: call AM_PATH_PYTHON rather than AM_PATH_PYTHON_JH.
12086         This should clear up some of the build problems people have been
12087         having.
12089         * acinclude.m4: call AM_PATH_PYTHON_JH AM_PATH_PYTHON
12091 2001-05-26  Cyrille Chepelov  <chepelov@calixo.net>
12093         * lib/Makefile.am:
12094         * lib/boundingbox.[ch] (NEW): (some) refactoring of the bounding
12095         box code (beginning with lines, polylines and polybeziers), into a
12096         more generic facility. While at it, a better shot at correctly
12097         computing the bounding box of a Bezieroid (should take care of
12098         #53424, #51233 and of course is part 1 of #52912).
12100         * lib/diagramdata.c: turned the RENDER_BOUNDING_BOXES conditional
12101         into a hidden preference (set render_bounding_boxes in diarc).
12102         * app/preferences.[ch]: Added support for hidden preferences.
12104         * lib/geometry.[ch]: sprinkled with "const" modifiers.
12105         
12106         * lib/bezier_conn.[ch]:
12107         * lib/beziershape.[ch]:
12108         * lib/connection.[ch]:
12109         * lib/element.[ch]:
12110         * lib/poly_conn.[ch]:
12111         * lib/orth_conn.[ch]:
12112         * lib/neworth_conn.[ch]:
12113         * lib/polyshape.[ch]: adapted to take advantage of
12114         boundingbox.[ch] instead of relying on private (duplicate) code.
12116         * object/FS/flow.c:
12117         * object/GRAFCET/action.c:
12118         * objects/GRAFCET/condition.c:
12119         * objects/GRAFCET/vergent.c:
12120         * objects/GRAFCET/vector.c:
12121         * objects/SADT/annotation.c:
12122         * objects/SADT/arrow.c:
12123         * objects/ER/participation.c:
12124         * objects/UML/constraint.c:
12125         * objects/UML/implements.c:
12126         * objects/UML/lifeline.c:
12127         * objects/UML/message.c:
12128         * objects/UML/realizes.c:
12129         * objects/UML/generalization.c:
12130         * objects/UML/association.c:
12131         * objects/UML/dependency.c:
12132         * objects/FS/flow-ortho.c:
12133         * objects/network/bus.c:
12134         * objects/standard/arc.c:
12135         * objects/standard/bezier.c:
12136         * objects/standard/beziergon.c:
12137         * objects/standard/line.c:
12138         * objects/standard/polygon.c:
12139         * objects/standard/zigzagline.c:
12140         
12141         * objects/standard/polyline.c: Some *BBExtras structures changed
12142         names while moving to boundingbox.[ch]. A trivial mass-renaming.
12143         
12144 2001-05-20  Cyrille Chepelov  <chepelov@calixo.net>
12146         * app/disp_callbacks.c (ddisplay_canvas_events): Take into account
12147         wheel mouses for scrolling (from Patrick Sung <phsung@ualberta.ca>)
12149         * app/display.c (ddisplay_update_scrollbars): from Patrick's
12150         suggestion, remove the extra scrollable area (it was only visible
12151         to the scrollbars). This is experimental.
12152         
12153         * objects/custom/custom_object.c: If a shape's icon file doesn't 
12154         exist, warn and substitute a default icon, instead of crashing.
12155         (fixes #52913)
12156         
12157         * objects/network/network.c:
12158         * shapes/network/modularswitch.(shape|xpm) (NEW):
12159         * shapes/network/printer.(shape|xpm) (NEW):
12160         * shapes/network/genmonitor.(shape|xpm) (NEW):
12161         * shapes/network/computer.(shape|xpm) (NEW):
12162         * shapes/network/Makefile.am: four less objects, four more shapes.
12163         These were the last known RenderObjects. (phew !)
12165         * lib/Makefile.am:
12166         * lib/dummy_dep.h:
12167         * objects/sybase/Makefile.am: 
12168         * objects/network/Makefile.am: Removed the older Renderobjects
12169         from the build, and their infrastructure (not yet deleted,
12170         though).
12172         * shapes/network/sceadplug.shape:
12173         * shapes/network/antenna.shape:
12174         * shapes/network/modem.shape:
12175         * shapes/network/hub.shape:
12176         * shapes/network/rj45plug.shape:
12177         * shapes/sybase/client.shape:
12178         * shapes/sybase/dataserver.shape:
12179         * shapes/sybase/ltm.shape:
12180         * shapes/sybase/repserver.shape:
12181         * shapes/sybase/rsm.shape:
12182         * shapes/sybase/stableq.shape: Minor corrections (line widths were
12183         ten times too narrow).
12184         
12185 2001-05-19  Cyrille Chepelov  <chepelov@calixo.net>
12187         * objects/network/network.c:
12188         * shapes/network/sceadplug.(shape|xpm) (NEW):
12189         * shapes/network/antenna.(shape|xpm) (NEW):
12190         * shapes/network/modem.(shape|xpm) (NEW):
12191         * shapes/network/Makefile.am: four less objects, four more shapes.
12192         
12193         * lib/Makefile.am:
12194         * lib/diagramdata.c:
12195         * lib/render.h:
12196         * lib/string_prerenderer.[ch] (NEW):
12197         Add a new renderer primitive, predraw_string() (does nothing, to be
12198         used as a hook to optimise the character encodings if needed). 
12199         Added a string pre-renderer, which can be viewed as a filter
12200         renderer (to route draw_string() to predraw_string() and ignore
12201         the rest, in a first rendering pass)
12202         
12203         * app/render_eps.c: Took advantage of the above to make wholly
12204         optimised Postscript encoding page(s), even (especially) with 
12205         non-latin1 code (HAVE_UNICODE must be true).
12207         (#53512 in fact is wholly resolved).
12208         
12209 2001-05-18  Cyrille Chepelov  <chepelov@calixo.net>
12211         * lib/charconv.c: steps towards resolution of #53512 (inspired by
12212         Alexey Novodvorsky <aen@logic.ru>'s patch).
12214         * app/menus.c (dia_menu_signal_proxy): checked that the signal
12215         handler is not NULL before transferring control to it... (fixes #52836)
12217         * app/app_procs.c (app_init): removed non-constant initialiser
12218         (fixes #52950)
12220         * objects/custom/custom_object.c:
12221         * objects/custom/shape_info.[ch]:
12222         * objects/custom/test.xml: merged patch #53476 from Steven Hawkins 
12223         <skh@mathstar.com>. This add support for a <svg:text> shape
12224         element, and some related style properties (font, font height, 
12225         alignment)
12227         * doc/custom_shapes: a precision about the meaning of case in a
12228         SVG path (closes #52364)
12230         * lib/dummy_dep.h: fix for SGI IRIX 6.2 (#53053, reported and
12231         fixed by <drk@sgi.com>)
12232         
12233 2001-05-17  Cyrille Chepelov  <chepelov@calixo.net>
12235         * objects/network/network.c:
12236         * shapes/network/Makefile.am:
12237         * shapes/network/hub.(shape|xpm) (NEW):
12238         * shapes/network/flash.(shape|xpm) (NEW):
12239         * shapes/network/rj45plug.(shape|xpm) (NEW):
12240         More shapes, less renderobjects.
12242 2001-05-16  Cyrille Chepelov  <chepelov@calixo.net>
12243         
12244         * plug-ins/svg/render_svg.c: typo made exported ellipses
12245         corrupted (zero Y pseudo-radius).
12247         * objects/network/network.c:
12248         * objects/network/disc.c:
12249         * shapes/network/disc.(shape|xpm): Converted the first
12250         Renderobject into a shape. Normally, old diagrams should reload
12251         without problems (please check this against your diagrams). More
12252         flexibility should be gained that way. I intend to hunt and
12253         eradicate all renderobjects as I can commit cycles to that. 
12255         * objects/Makefile.am:
12256         * configure.in:
12257         * app/Makefile.am:
12258         * objects/sybase/sybase.c:
12259         * shapes/sybase/Makefile.am(NEW):
12260         * shapes/sybase/client.(xpm|shape) (NEW):
12261         * shapes/sybase/dataserver.(xpm|shape) (NEW):
12262         * shapes/sybase/ltm.(xpm|shape) (NEW):
12263         * shapes/sybase/repserver.(xpm|shape) (NEW):
12264         * shapes/sybase/rsm.(xpm|shape) (NEW):
12265         * shapes/sybase/stableq.(xpm|shape) (NEW): converted Sybase
12266         renderobjects into shapes. The Sybase objects are now not compiled
12267         anymore, and ready to be nuked if nobody objects in the next few weeks.
12268         
12269         * app/commands.c:
12270         * app/diagram.[ch]:
12271         * app/disp_callbacks.c:
12272         * app/display.[ch]:
12273         * app/interface.[ch]:
12274         * app/menus.[ch]:
12275         * app/modify_tool.c:
12276         * app/preferences.[ch]:
12277         * app/recent_files.c:
12278         * app/select.c: Added patch #52364 from Hubert Figuiere. This adds
12279         a menu bar reflecting the popup menu, to each display window. This
12280         is optional (changing the preference currently doesn't affect
12281         already opened windows; a few other rough edges to cut).
12283         * plug-ins/wpg/wpg.c:
12284         * plug-ins/xfig/xfig-import.c:
12285         * plug-ins/python/pydia-property.c:
12286         * plug-ins/python/pydia-properties.c:
12287         * plug-ins/python/pydia-geometry.c:
12288         * plug-ins/pstricks/render_pstricks.c:
12289         * lib/arrows.c:
12290         * objects/EML/dbox.c:
12291         * lib/ps-utf8.c: paleolithic C compilers choke on //. Should fix 
12292         #53054.
12294         * lib/ps-utf8.c: improved the clustering of alphabetic character
12295         definitions in custom encodings pages.
12296         
12297 2001-05-02  Hans Breuer  <hans@breuer.org>
12299         * lib/object.h : OBJECT_COMMON_PROPERTIES_OFFSETS correct type 
12300         of 'obj_bb' to PROP_TYPE_RECT
12302         * objects/custom/custom_object.c : take all quarks into account, 
12303         not only 4 as copy&paste suggests
12305         * objects/uml/objects.c : completed the implementation of the
12306         property api to avoid reading of totally bogus data. Removed
12307         the PROBABLY_DEAD_CODE. It actually was dead code, but not because
12308         there was too much but too less ...
12309   
12310         The above changes removed all known crashes (mentioned below) 
12311         from the Property API. Property access is still incomplete though.
12313         * objects/flowchart/box.c :
12314         * objects/flowchart/diamond.c :
12315         * objects/flowchart/ellipse.c :
12316         * objects/flowchart/parallelogram.c :
12317         * objects/uml/classicon.c :
12318         * objects/uml/state.c : calculate number of quarks from quark array 
12319         size instead of using hardcoded values for consistence and to avoid 
12320         future bugs like the above
12321         
12322         * objects/eml/nlist.c : include <string.h> for strcmp()
12324         * lib/dia_xml.c : relax g_warning for values, which
12325         appear to be too small. There is nothing which prevents
12326         them while saving
12328         * plug-ins/python/pydia-geometry.c : changed stringifying of
12329         geometry objects accept BezPoint back to %f, which does not
12330         crash anymore, because all the data is intialized now and it
12331         simply is more readable than %e ...
12333         * plug-ins/python/python-startup.py : removed dependency
12334         to PyGtk, because it isn't required here and probably won't
12335         in i.e.: export filters.
12337         * plug-ins/python/gtkcons.py : create the gtkoutfile even
12338         if sys.stderr.fileno() isn't supported
12340         * app/makefile.msc : make version 0.88
12341         * plug-ins/makefile.msc : make version 0.88 an added new
12342         xfig files to build
12344 2001-05-11  James Henstridge  <james@daa.com.au>
12346         * NEWS: remember to add news items this time.
12348         * dia.spec: update spec file for 0.88 release.
12350         * configure.in: up version number to 0.88
12352         * plug-ins/python/Makefile.am (EXTRA_DIST): fix up typo that was
12353         preventing any of the useful python scripts from being
12354         distributed.
12356         * sheets/Makefile.am (sheet-translation-report): fix bustage I
12357         introduced in my fixups for the 0.87 release :(
12359 2001-05-10  Lars Clausen  <lrclause@cs.uiuc.edu>
12361         * plug-ins/xfig/xfig-import.c: Finally got groups working.
12363 2001-05-09  Lars Clausen  <lrclause@cs.uiuc.edu>
12365         * plug-ins/xfig/xfig-import.c: Improvements to error handling and
12366         group manipulation.
12368 2001-05-09  Cyrille Chepelov  <chepelov@calixo.net>
12370         * lib/ps-utf8.[ch]:
12371         * lib/Makefile.am: fix makefile breakage which led to not
12372         including ps-utf8.[ch] in the released tarballs. 
12374 2001-05-09  James Henstridge  <james@daa.com.au>
12376         * Makefile.am (core-translation-report): dist scripts needed for
12377         this target, and change to $(srcdir) before running.
12379         * sheets/Makefile.am (EXTRA_DIST): actually dist the sheets.  DATA
12380         files aren't automatically included in the tarball by automake
12381         because they could be generated files.
12383         * objects/EML/Makefile.am (EXTRA_DIST): fix directory names.
12385         * doc/en/Makefile.am (install-data-hook): fix up where graphics
12386         are installed.
12388         * configure.in: up version number to 0.87
12390         * plug-ins/python/*.py: no longer necessary to explicitly set
12391         sys.argv, as python.c does it for us now (like it should).
12393         * plug-ins/python/gtkcons.py: fix up so it plays nicely as a dia
12394         python plugin.
12396         * plug-ins/python/python-startup.py: startup script that imports
12397         all modules in $(datadir)/dia/python and ~/.dia/python.
12399         * plug-ins/python/python.c (dia_plugin_init): change so that it
12400         only runs the $(datadir)/dia/python-startup.py script.  Make sure
12401         that sys.argv and __main__.__file__ are set when calling the
12402         startup script.
12404         * plug-ins/python/Makefile.am: update makefile.  Make it install
12405         gtkcons.py plugin.  I haven't set any other plugins to install, as
12406         they look like they are mainly for debugging purposes.
12408         * configure.in: add tests to detect if python is available, so we
12409         can build the python plugin.  Only run if --with-python passed to
12410         configure.
12412 2001-05-08  James Henstridge  <james@daa.com.au>
12414         * acinclude.m4: add macros for detecting python.
12416         * app/menus.c (dia_gnome_menu_get_widget): handle paths that point
12417         at GNOME_APP_UI_SUBTREE entries.
12418         (menus_add_path): function to add a menu item to the menubars.
12419         Uses a hash table to keep track of extra menu items it adds.  Also
12420         notifies the item factory about the entries so that accels can be
12421         saved for them.
12422         (menus_add_path): implement gtk only version.
12423         (menus_init): use menus_add_path() to add the menu.
12424         (plugin_callback): simplify.
12426 2001-05-08  Steffen Macke <sdteffen@yahoo.com>
12428         * app/menu.c: removed #ifndef GNOME; GNOME build was broken
12429         
12430 2001-05-08  Lars Clausen  <lrclause@cs.uiuc.edu>
12432         * plug-ins/xfig/xfig-export.c: 
12433         * plug-ins/xfig/xfig-common.c: 
12434         * plug-ins/xfig/xfig-import.c: 
12435         * plug-ins/xfig/xfig.c: 
12436         * plug-ins/xfig/xfig.h: 
12437         * app/Makefile.am: Added support for exporting to Fig format
12438         (except splits, which are less powerful in Fig).  Some refactoring
12439         along the way.
12441 2001-05-02  Hans Breuer  <hans@breuer.org>
12443         * plug-ins/python/debug_objects.py : added another
12444         test to get massive crashes from the Property API due
12445         to unintialized data.
12447         * app/menu.c : the callback_action wasn't incremented
12448         (should have checked my last optimization). Now more
12449         than one plug-in callback is supported again.
12451         * plug-ins/python/pydia-geometry.c : avoid crashes from
12452         glib, when trying to g_strdup_printf unintialized floats.
12454         * plug-ins/python/pydia-property.c : avoid crashes from
12455         because of string_data == NULL (PROP_TYPE_FILE, PROP_TYPE_STRING)
12457 2001-05-01  Hans Breuer  <hans@breuer.org>
12459         * objects/makefile.msc : added eml
12460         * objects/eml/instantiation.c : initialize 'inst' pointer
12461         before using, zero initialization for objects
12462         * objects/eml/interaction-ortho.c :
12463         * objects/eml/interaction.c : zero initialization for objects
12465         * app/menus.c : removed Gimp mru stuff which slipped in at
12466         2000-08-15, was never activated and will never be needed, 
12467         because of Steffens recent file list patch added at 2001-01-05.
12469         * objects/eml/*.c : some more zero initialization of objects
12470         to avoid infinite (uninitialized) bounding boxes
12472         Implemented a callback api which allows plug-ins to register
12473         menu call backs. Dia for Gnome should compile, but will need 
12474         some extra tweaking to make it work because I can't test it.
12476         * plug-ins/python/pydia-error.h :
12477         * plug-ins/python/pydia-render.c : moved Pxthon function return 
12478         value handling from pydia-render.c to pydia-error.h, to make it
12479         usable for
12480         * plug-ins/python/diamodule.c : implement callback function
12481         registration from and relaying to Python code
12483         * app/menus.c : register and use plug-in menu callbacks
12485         * lib/filter.[hc] : implement filter_register_callback() and
12486         filter_get_callbacks() for the above
12487         * lib/libdia.def : export them
12489         * plug-ins/python/debug_objects.py (new file): 
12490         sample using the above
12492 2001-04-27  Lars Clausen  <lrclause@cs.uiuc.edu>
12494         * plug-ins/shape/shape-export.c (new_shape_renderer): 
12495         The name of a shape is now taken from the dir, to conform with
12496         standard naming.
12498 2001-04-25  Lars Clausen  <lrclause@cs.uiuc.edu>
12500         * app/properties.c (properties_show): Added title containing
12501         object type, plus (hopefully) fix of the ghost properties dialog.
12503 2001-04-16  Cyrille Chepelov  <chepelov@calixo.net>
12505         * app/display.c: remove the display idle handler in case we
12506         destroy the ddisplay (caused crashes in ddd, probably random
12507         crashes elsewhere).
12509         * autogen.sh: 
12510         * configure.in:
12511         * Makefile.am: hack around gettext-0.10.36's new "features".
12512         
12513         * lib/properties.[ch]: added new function object_copy_props().
12514         Added new property type PROP_TYPE_ENDPOINTS
12516         * lib/connection.h: added support for load/saving through the
12517         properties interface.
12519         * lib/object.[ch]: object_load/save/copy_using_properties()
12520         support functions (code factorisations).
12521         
12522         * objects/GRAFCET/boolequation.c: check against null values in
12523         boolequation_set_value() and boolequation_destroy().
12525         * objects/GRAFCET/transition.c: Converted from lazyprops to
12526         standard properties. 31% less (x86) code !
12528         * objects/GRAFCET/condition.c: also converted from lazyprops to
12529         standard properties. Also killed lots of code.
12530         
12531 2001-04-13  Hans Breuer  <hans@breuer.org>
12533         * plug-ins/wmf/wmf.cpp : changed text conversion from
12534         g_utf8_utf16 to g_convert usage. The latter function is already
12535         available in tml's last "official" Gtk+ version (2000-12-26).
12536         This change allows to use recent Dia with either the official
12537         version or the latest cvs "gtk-1-3-win32-production"-branch.
12539 2001-04-14  Lars Clausen  <lrclause@cs.uiuc.edu>
12541         * Patch from David S. Thompson <dcthomp@mail.utexas.edu>:
12542         * app/disp_callbacks.c:
12543         - Allow submenus in DiaMenus.
12544         - Don't require DiaMenu.title to be non-null (so that
12545           submenus aren't required to have titles)
12547         * objects/FS/function.c:
12548         - object menu now has submenus, an almost complete list of
12549           standard-basis verbs, and a start on nouns.
12550         - box padding, dash length, and other visual attributes are
12551           scaled by the font size... eventually font height will be
12552           a function property.
12553         - draw functions with smaller font to make initial view hold
12554           a reasonable number of functions.
12555         
12556 2001-04-13  Cyrille Chepelov  <chepelov@calixo.net>
12558         * sheets/ER.sheet:
12559         * sheets/chronogram.sheet:
12560         * sheets/jigsaw.sheet:
12561         * sheets/sybase.sheet: Updated Dutch sheet translations from Dag
12562         Wieers <dag@wieers.com>
12564 2001-04-13  Hans Breuer  <hans@breuer.org>
12566         * app/app_procs.c (app_exit) : added g_return_if_fail (!app_exit_once)
12567         to ensure that all the deinitialization is only done once. Fixes
12568         recent app exit crash on win32
12570         * lib/dia_xml.c : provide isinf() replacement for msc which does only
12571         have _finite()
12573         * lib/libdia.def : updated
12575         * objects/makefile.msc : added wanlink.c 
12577         * objects/network/wanlink.c : added M_PI_2 definition for poor
12578         platforms which don't have one
12580         * objects/standard/arc.c :
12581         * objects/standard/zigzagline. c: part of ConectionBBExtras wasn't
12582         initialized which led to rather huge bounding boxes (try Ctrl^A on
12583         diagrams with Arcs or ZigZagLines).
12584         * objects/*/*.c : to avoid further bugs like the above changed all
12585         object initializations to g_malloc0 or g_new0
12588 2001-04-09  Cyrille Chepelov  <chepelov@calixo.net>
12590         * lib/paper.[ch]: get rid of "no previous prototype fo `foo'" by
12591         doing a s/T foo()/T foo(void)/ for all possible values of T and foo.
12593         * objects/UML/class.c: 
12594         * objects/UML/usecase.c:
12595         * objects/UML/large_package.c:
12596         * objects/UML/message.c:
12597         * objects/UML/object.c:
12598         * objects/UML/lifeline.c:
12599         * objects/FS/flow.c:
12600         * objects/FS/flow-ortho.c:
12601         * objects/FS/function.c:
12602         * objects/custom/custom_object.c:
12603         * objects/GRAFCET/vergent.c:
12604         * objects/chronogram/chronoref.c:
12605         * objects/SADT/box.c:
12606         * objects/SADT/annotation.c:
12607         * plug-ins/dxf/dxf-import.c:
12608         * plug-ins/xfig/xfig-import.c:
12609         * plug-ins/wpg/wpg.c:
12610         * app/command.c:
12611         * app/app_procs.c:
12612         * app/display.c: /* certainly more WIP than dead code there */
12613         Unused variables, unused static function definitions, forgotten or
12614         incomplete prototypes added or fixed, lack of const or unwanted const,
12615         etc. (mostly clean-ups of leftovers of the pre-properties era).
12616         Non-obvious cases bracketed by #define THIS_IS_PROBABLY_DEAD_CODE,
12617         please check these.
12619         * app/lineprops_area.c: More of the same. Missing prototypes
12620         added, and functions unused outside made static.
12622         * app/recent_files.c:
12623         * app/properties.c:
12624         * app/defaults.c: some variables are used only when doing a GNOME
12625         build.
12626         
12627         * app/magnify.c: missing #include <stdlib.h>.
12629         * app/paginate_gnomeprint.c: Unused variable; missing "message.h".
12631         These are a lot of clean-ups (by the way, this compiles and runs
12632         cleanly with "gcc-3.0 -O2 -Wall --std=gnu99" too !); please grep
12633         for DEAD_CODE, and if it's yours, judge it.
12634         
12635 2001-04-07  Cyrille Chepelov  <chepelov@calixo.net>
12637         * plug-ins/dxf-import.c: some progress with the arcs; still some
12638         clean-ups to do and line width scaling issues to figure out.
12640         * objects/standard/arc.c: start_point and end_point properties
12641         (duplicated from standard/line.c)
12643         * plug-ins/xfig/xfig-import.c: zip ! zap ! no more dead DXF import
12644         code there.
12645         
12646 2001-04-06  Cyrille Chepelov  <chepelov@calixo.net>
12648         * plug-ins/dxf-import.c: setlocale-related clean-ups and fixes ;
12649         preliminary support for arcs (doesn't work). Circles and ellipses are
12650         now transparent. Coordinate and width scaling are now a common 
12651         static constant (probably before morphing into a preference).
12652         
12653         * sheet/checktrans.py: improved error reporting. Made checktrans
12654         count lack of <name xml:lang="code"> as a lack of translation for
12655         language "code" (no, it's not a plot to bring down other
12656         language's scores !)
12657         
12658         * sheet/*.sheet: Ensured all sheets have an encoding="iso-8859-1"
12659         in the header, and have <name xml:lang="fr"> components.
12660         
12661 2001-04-05  Cyrille Chepelov  <chepelov@calixo.net>
12663         * objects/custom/custom_object.c: temporary hack to fix the shape
12664         bounding box reported by Ben A. Hetland. Proper fix isn't .87
12665         material, see bugzilla #52912.
12667 2001-04-05  Lars Clausen  <lrclause@cs.uiuc.edu>
12669         * objects/standard/image.c (get_directory): Now uses
12670         G_SEPARATOR_CHAR_S instead of "/"
12672         * sheets/network.sheet: 
12673         * sheets/Logic.sheet:
12674         * sheets/Flowchart.sheet:
12675         * sheets/Electric.sheet:
12676         * sheets/Circuit.sheet:
12677         * sheets/ER.sheet:
12678         * sheets/Pneumatic.sheet:
12679         * sheets/SDL.sheet:
12680         * sheets/UML.sheet:
12681         * sheets/GRAFCET.sheet:
12682         * sheets/MSE.sheet:
12683         * sheets/chronogram.sheet:
12684         * sheets/civil.sheet:
12685         * sheets/network.sheet:
12686         Danish translations.
12687         
12688         * objects/standard/image.c (get_directory): Changed get_directory
12689         to use g_dirname to find the directory part.
12691 2001-04-05  Cyrille Chepelov  <chepelov@calixo.net>
12693         * sheets/ER.sheet:
12694         * sheets/Electric.sheet:
12695         * sheets/Flowchart.sheet:
12696         * sheets/Logic.sheet:
12697         * sheets/network.sheet: More Dutch translations from Dag Wieers.
12699 2001-04-04  Cyrille Chepelov  <chepelov@calixo.net>
12701         * sheets/checktrans.py: now emits a warning when two descriptions
12702         for a single language code are found.
12704         * Makefile.am:
12705         * sheets/Makefile.am: -translation-reports now also depend on their
12706         checktrans.py
12707         
12708 2001-04-04  Cyrille Chepelov  <chepelov@calixo.net>
12710         * sheets/Circuit.sheet:
12711         * sheets/Contact.sheet:
12712         * sheets/Logic.sheet:
12713         * sheets/chronogram.sheet:
12714         * sheets/sybase.sheet: 
12715         Dutch translations from Dag Wieers <dag@wieers.com>
12717 2001-04-04  Cyrille Chepelov  <chepelov@calixo.net>
12719         * po-checktrans.py: Now shows the detailed counts alongside the
12720         percentage of translations.
12721         
12722 2001-04-03  Cyrille Chepelov  <chepelov@calixo.net>
12724         * Makefile.am:
12725         * po-checktrans (NEW):
12726         * po-checktrans.py (NEW): builds core-translation-report:
12727         percentages of core (gettext) translations done [Not placed into
12728         po/ where that should belong, because of integration fear^Wissues
12729         with gettextize]. 
12731         TO THE KIND ATTENTION OF PACKAGERS: core-translation-report and 
12732         sheets/sheet-translation-report probably ought to be copied on the 
12733         user's /usr/share/doc/dia (or equivalent) directory.
12735         * sheets/Makefile.am: sheet-translation-report now a simple
12736         EXTRA_DIST; make install won't install it by default. 
12737         
12738 2001-04-03  Cyrille Chepelov  <chepelov@calixo.net>
12740         * app/preferences.c: changed the default grid colour to something
12741         less intrusive. 
12743         * shapes/SDL/*.shape:
12744         * sheets/SDL.sheet: renamed all SDL shapes to conform to the
12745         "$LIBRARY - $NAME" convention. THIS REQUIRES FIXING THE EXISTING
12746         DIA FILES (well, for files using SDL), see the mailing list
12747         archive "SDL (ab)using the global shape namespace" for a script to
12748         do this conversion.
12750         * sheets/SDL.sheet: translated into French
12751         * sheets/network.sheet: fixed XML typos. Yay ! 100% :-)
12752         
12753 2001-04-02  Cyrille Chepelov  <chepelov@calixo.net>
12755         * lib/dia_xml.c: made data_point() more paranoid
12757         * sheets/Makefile.am:
12758         * sheets/checktrans (NEW):
12759         * sheets/checktrans.py: Made checktrans handle more gracefully the
12760         absence of python and python-xml packages, and made the error
12761         message more helpful.
12762         
12763 2001-04-01  Lars Clausen  <lrclause@cs.uiuc.edu>
12765         * lib/render_object.c (new_render_object): Made initial handles
12766         behave like on most other objects.
12768         * app/load_save.c (read_objects): Fixed premature free'ing ofr
12769         typestr causing garbage.
12771 2001-04-01  Lars Clausen  <lrclause@C194282.chmpgn1.il.home.com>
12773         * objects/FS/flow-ortho.c: Fixed a crashbug causes by not
12774         accouting for handle ordering through copy and save. (#51479)
12776 2001-03-31  Cyrille Chepelov  <chepelov@calixo.net>
12778         * sheets/Circuit.sheet: Norwegian translation mistagged to German.
12780 2001-03-31  Steffen Macke  <sdteffen@yahoo.com>
12782         * sheets/Circuit.sheet
12783         * sheets/UML.sheet
12784         * sheets/network.sheet: Updated German translations
12785         
12786 2001-03-30  Cyrille Chepelov  <chepelov@calixo.net>
12787         * lib/arrows.[ch]:
12788         * lib/widgets.c:
12789         * app/lineprops_area.c: The return of the revenge of the arrow
12790         heads. Now all types covered by ISO 10303-201 should be covered.
12791         
12792 2001-03-30  Cyrille Chepelov  <chepelov@calixo.net>
12794         * sheets/Flowchart.sheet: translations in probably Hungarian were
12795         a victim of cut-n-paste from the German one. Fixed (hopefully).
12796         * sheet/UML.sheet: translation in probably Norwegian was a victim
12797         of cut-n-paste from the French one. Fixed (hopefully).
12798         * sheets/Logic.sheet: French translation not tagged with
12799         xml:lang="fr".
12800         
12801         * sheets/checktrans.py:
12802         * sheets/Makefile.am: new file, sheet-translation-report, to be
12803         installed along the sheets, show how much of them has been
12804         translated into which language (I wish the result was prettier...)
12806         * po/README: most translators don't read this file, but anyway...
12808         * sheets/.cvsignore:
12809         * objects/network/.cvsignore: the usual negotiation with CVS.
12811 2001-03-30  Cyrille Chepelov  <chepelov@calixo.net>
12813         * sheets/*.sheet: French translations
12815 2001-03-28  Cyrille Chepelov  <chepelov@calixo.net>
12817         Added patch #52363 from Hubert Figuiere <hfiguiere@teaser.fr>:
12819         ** objects/network/network.c:
12820         ** objects/network/wanlink.c:
12821         ** objects/network/pixmaps/wanlink.c:
12822         ** sheets/network.sheet:
12823         ** objects/network/Makefile.am: a better object to use instead of
12824         the older WAN Connection.
12825         
12826         ** lib/geometry.[ch]: rotation matrix functions in geometry.c (derived from gimp)
12828         ** objects/GRAFCET/vector.c: renamed Vector to GRAFCETVector to avoid a
12829         name clash 
12831         * objects/GRAFCET/vector.c: Re-renamed GRAFCETVector into
12832         Arc; kept the C file name (because CVS wouldn't like it), and
12833         still registering the older object name (but advertising the newer
12834         one in sheets/GRAFCET.sheet).   
12836 2001-03-24  Hans Breuer  <hans@breuer.org>
12838         * app/dia.def : some plug-ins (currently only python, xfig) are using 
12839         functions from the dia executable. To get them working these functions 
12840         need to be explicit exported on win32. IMO the much cleaner way would
12841         be to move these functions to libdia, but that would require some
12842         long term restructuring ...
12844         * lib/libdia.def : updated
12846         * plug-ins/makefile.msc : build xfig plug-in
12848 2001-03-24  Hans Breuer  <hans@breuer.org>
12850         * app/diagram.c : g_strdup (dia->filename) because it will be
12851         g_free ()d
12853         * app/display.c : set ddisp->renderer to NULL after destruction.
12854         This may solve or help to identify erroneous access to it after
12855         destruction.
12857         * plug-ins/wmf/wmf.cpp : convert string from utf8 to wchar to
12858         get 'umlauts' working
12860 2001-03-22  Cyrille Chepelov  <chepelov@calixo.net>
12862         * object/chronogram/chronoline_event.c: stupid bug ; rises and falls
12863         were reversed... (look for the patch, and drink a beer to my
12864         stupidity)      
12865         
12866 2001-03-23  Hans Breuer  <hans@breuer.org>
12868         * app/app_procs.c : don't g_error () if the config directory
12869         can't be created (at least not on windoze) because it's quite
12870         common that the user don't read or understand the FAQ ...
12872         * app/cursor.c : use ddisplay_active () instead of active_display
12873         from app/display.c
12875         * app/display.[hc] : made active_display var static and provide
12876         an accessor funtion ddisplay_active_diagram ()
12878         * app/dia-props.c : don't store the active_diagram, but ask
12879         for it everytime it needed.
12881         * lib/properties.h : #include "intl.h"
12883         * lib/makefile.msc : need to take care of inclusion order to
12884         avoid clashes with gtk+2.0's gdk-pixbuf
12886         * objects/makefile.msc : added uml/stereotype.c to build
12888 2001-03-23  Lars Clausen  <lrclause@cs.uiuc.edu>
12890         * **/*.c: Added config.h to the remaining .c files, and changed
12891         all to be <config.h>.
12893 2001-03-22  Steffen Macke <sdteffen@yahoo.com>
12895         * lib/arrows.c
12896         * lib/arrows.h
12897         * lib/widgets.c
12898         * app/lineprops_area.c: added new arrow types with double
12899         heads
12900         
12901 2001-03-20  Steffen Macke <sdteffen@yahoo.com>
12903         * shapes/Civil/civil_gas_bottle.xpm
12904         * shapes/Civil/civil_gas_bottle.shape
12905         * sheets/civil.sheet
12906         * shapes/Civil/Makefile.am: Added gas bottle shape by Arne
12907         Battermann
12908         
12909 2001-03-20  Lars Clausen  <lrclause@cs.uiuc.edu>
12911         * objects/custom/shape_info.c (load_shape_info): 
12912         * objects/custom/shape_info.h: 
12913         * objects/custom/custom_object.c (custom_update_data): 
12914         Better support for text outside the box -- new attributes 'resize'
12915         and 'align' for text entity.  Align not fully supported yet.
12917         * lib/text.c (text_calc_boundingbox): Adding BB for cursor width.
12919 2001-03-20  James Henstridge  <james@daa.com.au>
12921         * app/interface.c (display_data_received_callback): comment out
12922         status message.
12924 2001-03-19  James Henstridge  <james@daa.com.au>
12926         * app/GNOME_Dia.oaf: rename from GNOME_Dia.oafinfo.
12928         * objects/UML/realizes.c: similar here.
12930         * objects/UML/implements.c: similar here.
12932         * objects/UML/component.c: similar here.
12934         * objects/UML/generalization.c: same here.
12936         * objects/UML/dependency.c: allow NULL for ->name and
12937         ->stereotype.  This fixes a number of problems in loading saved
12938         files.
12940         * lib/properties.c: various changes so that NULL string properties
12941         should work.
12943         * objects/standard/line.c (line_update_data):
12944         line->extra.start_long and line->extra.end_long were not being
12945         initialised.  This fixes potential problems with the bounding box
12946         of "Standard - Line" objects.
12948 2001-03-19  Hans Breuer  <hans@breuer.org>
12950         * app/commands.c : added win32 specific code to display a html
12951         file. #include "text.h" for text_delete_all prototype.
12953         * app/dia.ico :
12954         * app/dia.rc : (new) to give Dia win32 an icon
12956         * app/win32print.[ch] : new files to support direct postscript
12957         file printing on win32. Beware: it *requires* a ps-printer!
12959         * app/paginate_psprint.c : disable the signal code for win32 build
12960         and added small specific changes to support win32print.
12962         * app/makefile.msc : added win32print and linking shell32.lib
12964         * lib/libdia.def : updated
12966 2001-03-18  Kevin Breit <battery841@mediaone.net>
12968         * doc/en/dia-C.omf: Added file.  Dia should now list in the Nautilus
12969           Help tabs.
12971 2001-03-17  James Henstridge  <james@daa.com.au>
12973         * app/paginate_psprint.c (diagram_print_ps): add code that traps
12974         SIGPIPEs during printing.  This gets rid of a number of crashes
12975         caused by printing (eg. typing an incorrect print command).
12977         * dia.spec (%install): gzip the manpage.
12979         * lib/beziershape.c (beziershape_save): fix off by one error in
12980         beziershape save code, which was adding an extra segment to the
12981         object on save.
12983         * app/menus.c: add a separator in the gnome version of the help
12984         menu.
12986         * app/app_procs.c (app_init): add a --nosplash argument which
12987         disables the splash screen.
12989         * app/dia_embedd.c (main): don't leave the splash screen open for
12990         embeddable component.
12992         * app/splash.c (app_splash_init): the gtk_widget_show_now() call
12993         didn't seem to be showing the splash screen like expected, so I
12994         have replaced it with some code that calls gtk_main() until the
12995         first exposure of the window.
12997 2001-03-16  James Henstridge  <james@daa.com.au>
12999         * app/Makefile.am (EXTRA_DIST): add extra pixmaps.
13001         * objects/UML/Makefile.am (libuml_objects_la_SOURCES): add
13002         stereotype.h
13004         * lib/Makefile.am (libdia_a_SOURCES): add diavar.h here.
13006         * app/Makefile.am (dia_core_files): remove splash.h from file
13007         list, as it doesn't exist.
13009         * doc/en/Makefile.am (uninstall-local): remove the docdir on
13010         uninstall.
13012         * doc/Makefile.am (uninstall-local): target to remove the C
13013         symlink.
13015         * dia.spec (%files): include the documentation in the package.
13017         * app/menus.c (toolbox_menu_items): add menu item for manual,
13018         which calls help_manual_callback.
13020         * app/commands.c (help_manual_callback): find help file and load
13021         netscape to view it.
13023         * app/commands.h: add prototype for help_manual_callback()
13025         * doc/Makefile.am (helpdir): similar here.
13027         * doc/en/Makefile.am (helpdir): make the helpdir
13028         $(pkgdatadir)/help/en in the non gnome case.
13030         * configure.in (HAVE_GNOME): add conditional.
13032         * doc/en/Makefile.am: handle the graphics in a more general way,
13033         so it is easier for Kevin to add them to the build (just add them
13034         to the GRAPHICS var).
13036         * app/Makefile.am (embed_extra_print_files): make the case of
13037         building without gnome-print support but with bonobo support work.
13038         dia-embedd needs to be include the gnome-print
13040 2001-03-09  Cyrille Chepelov  <chepelov@calixo.net>
13042         * samples/Makefile.am: included all samples in the distribution....
13043         
13044 2001-03-09  Cyrille Chepelov  <chepelov@calixo.net>
13046         * configure.in: removed premature test for DPS. Added -*- m4 -*-
13047         at the beginning. Made HAVE_UNICODE non-default. po/es_ES.po has
13048         vanished, removed it from ALL_LINGUAS.
13050         * lib/charconv.[ch] (NEW): a very small wrapper around
13051         unicode_iconv to convert strings between utf8 and local charset
13052         (actually, ISO-8859-1, though one can do
13053         CFLAGS="-DEFAULT_8BIT_CHARSET=\"ISO-8859-2\"" and the like).
13055         * lib/ps-utf8.[ch] (NEW): A PostScript Unicoder ; a smallish
13056         library to help build Postscript streams which use as many custom
13057         font encodings as necessary to correctly represent all characters
13058         used (testing from users with non-latin1 and/or more than 256
13059         characters in routine use *very* welcome).
13061         * app/Makefile.am, lib/Makefile.am: integrated these into the
13062         build process.
13064         * shapes/Logic/.cvsignore (NEW): .cvsignore
13065         
13066         * app/render_eps.h: forwarded some changes Lars forgot to include.
13067         * app/render_eps.c: turned off ASCII85 and FILTERS, as this
13068         doesn't yet build.
13070 2001-03-08  Kevin Breit <battery841@mediaone.net>
13072         * doc/en/home_network.png: Added file.
13073         * doc/en/line_props.png: Added file.
13074         * doc/en/usage-objects.sgml: Added two graphics to file.
13075         * doc/en/usage-quickstart.sgml: Added one graphic to file.
13077 2001-03-06  Kjartan Maraas  <kmaraas@gnome.org>
13079         * app/grid.h: Place comment around text after #endif.
13080         * lib/bezier_conn.c: #include <string.h>.
13081         * lib/beziershape.c: #include <string.h>.
13082         * lib/connpoint_line.h: Comment after #endif.
13083         * lib/dia_dirs.c: #include <string.h>.
13084         * lib/element.c: Same.
13085         * lib/lazyprops.c: #include <config.h> and "intl.h".
13086         * lib/lazyprops.h: Comment out text after #endif.
13087         * lib/neworth_conn.c: #include <string.h>
13088         * lib/orth_conn.c: Same here.
13089         * lib/poly_conn.c: Here too.
13090         * lib/polyshape.c: And here.
13091         * lib/properties.c: Remove #include "intl.h" from here and add
13092         an array of static strings to work around bug in gettext that
13093         makes it miss strings in a #define body.
13094         * objects/GRAFCET/action_text_draw.h: Comment out text after #endif.
13095         * objects/GRAFCET/boolequation.h: Same here.
13096         * objects/chronogram/chronoline_event.h: Add prototype for
13097         destroy_cle().
13098         
13099 2001-03-05  Lars Clausen  <Lars R. Clausen <lrclause@cs.uiuc.edu>
13101         * objects/FS/function.c: 
13102         * objects/FS/flow.c: 
13103         * objects/FS/flow-ortho.c: 
13104         Updated to use properties.
13106 2001-03-03  James Henstridge  <james@daa.com.au>
13108         * lib/lazyprops.c (__propdlg_build_enum): translate the radio
13109         button labels when creating them.
13111 2001-02-28  Lars Clausen  <Lars R. Clausen <lrclause@cs.uiuc.edu>
13113         * objects/UML/actor.c
13114         * objects/UML/realizes.c 
13115         * objects/UML/implements.c 
13116         * objects/UML/generalization.c 
13117         * objects/UML/dependency.c 
13118         * objects/UML/constraint.c
13119         Updated to use properties.
13120         
13121         * objects/UML/stereotype.c 
13122         * objects/UML/stereotype.h
13123         Generalized to any kind of bracketting.
13124         
13125 2001-02-28  James Henstridge  <james@daa.com.au>
13127         * app/menus.c: add help entry to the help menu.  Need to get this
13128         working for the non GNOME case as well (maybe put help under
13129         $(datadir)/dia/help for non GNOME?)
13131         * doc/en/topic.dat: add a topic.dat file for GNOME menus.
13133         * doc/en/dia-manual.sgml (legalnotice): add an id attribute to
13134         this element so that we get a meaningful filename in the html
13135         translation.
13137         * doc/Makefile.am, doc/en/Makefile.am: new makefiles to handle the
13138         documentation.
13140         * configure.in (DB2HTML): add a check for the db2html program, and
13141         set an automake conditional if it is found.
13143         * Makefile.am: remove EXTRA_DIST rules that cover doc/ directory,
13144         and descend into doc/ directory while building.
13146         * configure.in (AC_OUTPUT): add doc/ makefiles to output list, now
13147         we need more complex rules for building the docs.
13149 2001-02-25  Hans Breuer  <hans@breuer.org>
13151         * config.h.win32 : some cleanup
13153         * app/prefererences.c : g_scanner_(freeze|thaw)_symbol_table
13154         are deprecated since glib-1.3.2. Sorry needing to use them
13155         contionally, but there is no glib-1.2 for win32
13157         * app/recent_files.c : use g_strescape (params) conditionally
13159         * lib/connection.c : include string.h for memcpy
13161         * lib/geometry.h : added some stuff for compatibility with
13162         msvc, which previously came from included config.h
13164         * lib/libdia.def : updated
13166         * objects/makefile.msc : updated
13168         * objects/GRAFCET/action.c(490) : fixed warning C4700: local variable 
13169         'extra' used without having been initialized
13171         * objects/network/bus.c(658) : initialize 'extra'
13173         * plug-ins/makefile.msc : updated
13175         * plug-ins/cgm/cgm.c :
13176         * plug-ins/pstricks/render_pstricks.c : 
13177         g_free() memory allocated by dia_image_rgb_data(). Plugs possibly 
13178         huge memory leaks.
13180         * plug-ins/python/python.c : use HAVE_DIRENT_H
13182 2001-02-23  Lars Clausen  <Lars R. Clausen <lrclause@cs.uiuc.edu>
13184         * lib/connection.c (connection_update_boundingbox): 
13185         Made the BB shrink on right and lower sides, too.
13187 2001-02-23  Kjartan Maraas  <kmaraas@gnome.org>
13189         * */*.c: #incude <config.h> at the top.
13190         * */*.h: Remove include of "config.h" since it should only
13191         be included in .c files and at the very top for things to
13192         work.
13193         * sheets/*.sheet: Updated Norwegian translations.
13194         
13195 2001-02-22  Lars Clausen  <Lars R. Clausen <lrclause@cs.uiuc.edu>
13197         * objects/UML/small_package.c: 
13198         * objects/UML/class.c: 
13199         * objects/UML/node.c: 
13200         * objects/UML/usecase.c:
13201         * objects/UML/lifeline.c: 
13202         * objects/UML/message.c:
13203         Various cleanup of properties in particular.  Now much more use of
13204         standard properties.
13206         * lib/diagramdata.c (layer_render): Visualization of bounding
13207         boxes, for debugging purpoises.
13209 2001-02-22  Cyrille Chepelov  <chepelov@calixo.net>
13211         * lib/geometry.h:
13212         * lib/connection.[ch]:
13213         * lib/poly_conn.[ch]:
13214         * lib/polyshape.[ch]:
13215         * lib/bezier_conn.[ch]:
13216         * lib/beziershape.[ch]:
13217         * lib/orth_conn.[ch]:
13218         * lib/neworth_conn.[ch]:
13219         * lib/element.[ch]: Changed a bit the _update_boundingbox()
13220         interface. Now the parent elements have an extra_spacing
13221         structure, which child objects just need to fill, to take care of
13222         most arrow & line width extra space needs.
13224         * objects/**/*.c: updated all objects to the new interface.
13225         While at it, killed all instances of (Object *) downcasts (phew !)
13227         * objects/GRAFCET/condition.c: removed the arrowhead, which IEC848
13228         doesn't speak about.
13229         
13230 2001-02-21  Lars Clausen  <Lars R. Clausen <lrclause@cs.uiuc.edu>
13232         * sheets/Logic.sheet: New sheet for Logic symbols.
13234 2001-02-21  James Henstridge  <james@daa.com.au>
13236         * app/menus.c (dia_gnome_menu_get_widget): new function to find a
13237         widget by its path name.  Walks the GnomeUIInfo heirachy rather
13238         than widget tree, compares untranslated label names and ignores
13239         underscores in the labels.
13240         (menus_get_item_from_path): use dia_gnome_menu_get_widget so that
13241         lookups are not dependent on the current locale, as with
13242         gnome_app_find_menu_pos.
13244         * acconfig.h: guard against multiple inclusion of config.h.
13246         * app/select.c (select_style_callback): simply set the selection
13247         style to the value of action.
13249         * app/menus.c (menus_init): simplify the item factory based menu
13250         code a bit.  It looks like it was using some code cut and pasted
13251         from the gimp, which looked a bit unnecessary.  Things work fine
13252         without it.
13253         (selectmenu): set the action to the type of selection mode
13254         requested.
13255         (display_menu_items): use the symbolic enumeration values for the
13256         action field.
13258         * app/plugin-manager.c: 
13259         * app/plugin-manager.h: 
13260         * app/filedlg.c:
13261         * app/filedlg.h: 
13262         * app/select.c:
13263         * app/select.h: change prototypes.
13265         * app/commands.c: update all callback prototypes, and get rid of
13266         some #ifdef GNOME's.
13268         * app/commands.h: change function prototypes.
13270         * app/dia_embedd.c (save_fn):
13271         s/ex_Bonobo_IOError/ex_BonoboStorage_IOError/
13273         * app/menus.c (menus_init): for gnome menus, use
13274         gnome_app_fill_menu_custom and pass in a GnomeUIBuilderData
13275         structure that proxies the callbacks to have the same signature as
13276         GtkItemFactory type 1 callbacks.
13277         (menus_init): for GTK menus, change from callback type 2 to type
13278         1.
13279         (display_menu_items): add back tearoffs.  I don't know who removed
13280         these for the gtk menu case.
13282 2001-02-20  Kevin Breit <battery841@mediaone.net>
13284         * doc/en/usage-objects-special.sgml: Fixed a few of the special
13285         object descriptions.  More to come in the next few days.
13287 2001-02-20  Lars Clausen  <lrclause@cs.uiuc.edu>
13289         * app/render_eps.c: Fixed for internationalized floating point
13290         output. 
13292         * objects/UML/note.c: Fixed properties -- was missing
13293         Get/ApplyPropertiesFunc.  Also improved update to recalculate text
13294         position. 
13296 2001-02-19  Lars Clausen  <lrclause@cs.uiuc.edu>
13298         * plug-ins/xfig/xfig-import.c: 
13299         File added importing xfig files.  Still very rough, but good
13300         enough to let others hack on it.
13302 2001-02-07  Cyrille Chepelov  <chepelov@calixo.net>
13304         * app/interface.c:
13305         * app/linewidth_area.c:
13306         * lib/lazyprops.c:
13307         * lib/properties.c:
13308         * lib/widgets.c:
13309         * objects/ER/attribute.c:
13310         * objects/ER/entity.c:
13311         * objects/ER/relationship.c:
13312         * objects/custom/custom_object.c:
13313         * objects/flowchart/box.c:
13314         * objects/flowchart/diamond.c:
13315         * objects/flowchart/ellipse.c:
13316         * objects/flowchart/parallelogram.c:
13317         * objects/standard/box.c:
13318         * objects/standard/textobj.c: per Vlad Harchev's request, made
13319         page sizes of gtk_adjustments different than their step sizes.
13320         When sensible values of page size weren't found (overwhelming
13321         majority of cases), page sizes were set to 10.0 * respective step
13322         size.   
13324 2001-02-07  Lars Clausen  <lrclause@cs.uiuc.edu>
13326         * objects/network/hub.c: 
13327         Patch from Hubert Figuiere applied, adding connection points.
13329 2001-02-02  James Henstridge  <james@daa.com.au>
13331         * app/display.c (new_display): set update id to 0 here.
13332         (ddisplay_update_handler): rename from ddisplay_flush, and set
13333         update_id to 0 at end of processing.
13334         (ddisplay_flush): new implementation that simply sets an idle
13335         handler to perform the actual drawing.
13337         * app/display.h: add structure member to hold the redraw idle
13338         handler id.
13340 2001-01-31  Lars Clausen  <lrclause@cs.uiuc.edu>
13342         * objects/standard/ellipse.c (ellipse_copy): 
13343         * objects/standard/zigzagline.c (zigzagline_copy): 
13344         Fix of copying provided by Martin Hawlisch.
13346 2001-01-23  Kevin Breit <battery841@mediaone.net>
13348         * doc/en/graphics/: added directory
13350         * doc/en/graphics/greendots.png: added file
13352         * doc/en/*sgml: made minor and some major changes to prepare for 1.4
13353         release.
13355 2001-01-23  Kevin Breit <battery841@mediaone.net>
13357         * doc/en/*sgml: made some grammar changes and fixed a few markup bugs.
13358                         thanks to John Fleck!
13360 2001-01-21  Kevin Breit <battery841@mediaone.net>
13362         * doc/en/*sgml: made just minor changes to a few lines; nothing major.
13364 2001-01-12  Michael Meeks  <michael@helixcode.com>
13366         * app/dia_embedd.c (init_server_factory): do a bonobo_activate
13367         so our POA gets setup properly.
13369         * app/paginate_gnomeprint.c (paginate_gnomeprint): g_free
13370         things we g_malloc.
13372         * configure.in: Use bonobox_print.
13374         * app/dia_embedd.c (embeddable_factory): add print interface.
13375         (object_print): impl.
13377 2001-01-11  Michael Meeks  <michael@helixcode.com>
13379         * app/dia_embedd.c (embeddable_factory): aggregate PersistFile.
13380         (load_fn, save_fn): impl.
13381         (view_factory): hide modified status bar, & use activate fn.
13382         (refresh_view): force redraws of the views.
13383         (view_show_hide): split from
13384         (dia_view_activate): here.
13386         * app/diagram.c (diagram_load_into): split from diagram_load.
13387         (new_diagram): simplify bu splittin stuff into
13388         (diagram_init): here.
13390 2001-01-10  Steffen Macke <sdteffen@yahoo.com>
13392         * shapes/jigsaw/*.shape: replaced #000000 with foreground
13393         and #ffffff with background
13394         
13395 2001-01-08  Steffen Macke <sdteffen@yahoo.com>
13397         *configure.in: GTK+-build was broken due to missing
13398         have_bonobo=no
13399         
13400 2001-01-06  Michael Meeks  <michael@helixcode.com>
13402         * app/dia_embedd.c (main): add running context support.
13403         (dia_embeddable_destroy): remove old running object counting.
13404         (embeddable_factory): ditto.
13405         (view_factory): comment out menu path hiding.
13407         * lib/sheet.c (load_register_sheet): use free to free
13408         stuff from libxml not g_free.
13410         * acconfig.h: kill cover for USE_BONOBOX and USE_OAF
13412         * configure.in: remove USE_OAF checks, check for a precice
13413         Bonobo version >= 0.31, revamp bits.
13415         * app/dia_embedd.c (init_server_factory): upd.
13416         (init_dia_factory): remove OAF conditionals, everything uses
13417         oaf now.
13419         * app/GNOME_Dia.oafinfo: rename OAFIIDs
13421         * app/Makefile.am: remove ancient gnorba code.
13422         rename dia.oafinfo to GNOME_Dia.oafinfo
13424 2001-01-07  Hans Breuer <Hans@Breuer.Org>
13426         * config.h.win32
13427         * install.win32
13428         * readme.win32 : some more files required or useful to build 
13429         Dia on win32
13431         * plug-ins/wmf/wmf.cpp : fixed open issues like fill_arc and
13432         fill_bezier implementation, boundary drawing in fill mode, etc.
13433         Next one complaining gets the source, uncommented ...
13435         * shapes/network/router-symbol.xpm 
13436         * shapes/network/switch-atm-symbol.xpm 
13437         * shapes/network/switch-symbol.xpm : removed "-*- picture -*- "
13438         from /* XPM */ header, cause it stopped Dia/gdk_pixbuf to detect 
13439         the files as XPMs. Maybe the X versions of these functions are more
13440         tolerant ...
13442 2001-01-06  Steffen Macke <sdteffen@yahoo.com>
13444         * plug-ins/python/Makefile.am: added libart path
13446         * plug-ins/python/python.c: added dirent.h
13448         * configure.in: added es_ES and pt_BR to ALL_LINGUAS
13449         
13450 2001-01-06  Hans Breuer <Hans@Breuer.Org>
13452         * objects/uml/actor.c
13453         * objects/uml/branch.c
13454         * objects/uml/class.c
13455         * objects/uml/classicon.c
13456         * objects/uml/component.c
13457         * objects/uml/large_package.c
13458         * objects/uml/node.c
13459         * objects/uml/note.c
13460         * objects/uml/object.c
13461         * objects/uml/small_package.c
13462         * objects/uml/state.c
13463         * objects/uml/usecase.c : started to implement the generic property
13464         interface for the uml objects. Would appreciate some help on how
13465         to implement properties which are list of properties themselves,
13466         e.g. member functions and their parameters of UMLClass.
13468 2001-01-06  Hans Breuer <Hans@Breuer.Org>
13470         * plug-ins/python/diamodule.c : finally ported to win32.
13471         Added new objects and implemented register_export function.
13473         * plug-ins/python/pydia-object.h
13474         * plug-ins/python/pydia-display.c
13475         * plug-ins/python/pydia-handle.c
13476         PyObject_HEAD_INIT needs some tweakink on win32. Done in
13477         pydia-object.h; others files simply using it.
13479         * plug-ins/python/pydia-layer.c : reflect 
13480         layer_find_closest_connection(_)point renaming
13482         * plug-ins/python/pydia-object.c : add property properties.
13483         Also change bounding_box to DiaRectangle.
13485         * plug-ins/python/python.c : extended error reporting; use
13486         all *.py files from Dia's plug-in dir instead of hardcoded
13487         test.py. This sollution should be fine with Win32, but on
13488         Unix it may need some tweaking (dunno) ...
13490         * plug-ins/python/export-object.py
13491         * plug-ins/python/export-render.py : test and documentation 
13492         implementations for export filter implementations in Python
13494         * plug-ins/python/pydia-color.[hc]
13495         * plug-ins/python/pydia-diagramdata.[hc]
13496         * plug-ins/python/pydia-error.[hc]
13497         * plug-ins/python/pydia-export.[hc]
13498         * plug-ins/python/pydia-font.[hc]
13499         * plug-ins/python/pydia-geometry.[hc]
13500         * plug-ins/python/pydia-image.[hc]
13501         * plug-ins/python/pydia-properties.[hc]
13502         * plug-ins/python/pydia-property.c
13503         * plug-ins/python/pydia-render.c : new objects in new files 
13505         * plug-ins/python/makefile.am : added new files but can't test it
13507         * plug-ins/python/pydia.def
13508         * plug-ins/python/makefile.msc : for win32 build
13510         * plug-ins/cgm/cgm.c
13511         * plug-ins/dxf/dxf-import.c
13512         * plug-ins/dxf/dxf-export.c
13513         * plug-ins/hpgl/hpgl.c : reflect export API change
13515         * plug-ins/shape/shape-export.c : reflect export API change
13516         and check for libart (better the availibility of a png exporter) 
13517         at run-time instead of compile-time. 
13519 2001-01-06  Steffen Macke <sdteffen@yahoo.com>
13521         * app/recent_files.h was missing from Hans's commit
13523         * plug-ins/shape/shape_export.c: shape export was broken
13524         due to interface changes
13525         
13526 2001-01-05  Hans Breuer <Hans@Breuer.Org>
13528         Applied Steffen's recent file list patch :
13529         * app/Makefile.am : added recent_files.[hc]
13530         * app/diagram.c : add files to recent file list
13531         * app/menus.c : add recent file menu
13532         * app/app_procs.c : changed initialization order to
13533         make recent file list work with command line processing.
13535         The Filter export()/import() functions have got an additional 
13536         parameter to allow multiple filters via one C callback (required
13537         for Python bindings)
13539         * app/commands.[hc] : corrected the signature for gtk menu callback
13540         functions, which actually use the second or third parameter. This
13541         is the absolute minimum change to make these functions/menu entries
13542         work again. Using the other possible gtk menu callback signature
13543         would have required one more function to change. (see mailing list
13544         thread "Objects/Align/Equal Distance" for more information.
13546         * app/disp_callbacks.c : applied Gustavo J.A.M. Carneiro's
13547         zoom-combo focus patch
13549         * app/display.c
13550         * app/interface.c : wrapped the Zoom Combo code into 
13551         #ifndef WITHOUT_ZOOM_COMBO because IHMO it isn't an useabilty
13552         improvement but cluttering the user interface. Also it wasn't
13553         compiling on Win32 anyway. The win32 version does define 
13554         WITHOUT_ZOOM_COMBO to keep the old look. 
13555         There are plans to use the statusbar to display size and placement
13556         of selected objects, whereas the Zoom Combo would need to get out
13557         of the way as well.
13559         Added "Save Changes?" to diagram close dialog. Hopefuly the
13560         Yes/No/Cancel option isn't too much windoze like. IHMO this is
13561         an useability improvement.
13563         * app/export_png.c
13564         * app/filedlg.c
13565         * app/load_save.c
13566         * app/layer_dialog.c
13567         * app/paginate_psprint.c
13568         * app/render_eps.c
13569         - reflect signature changing of filter->export function
13570         - replaced '/' with G_DIR_SEPARARTOR where appropriate
13572         * app/diaunitspinner.c
13573         * app/render_libart.c
13574         added misssing headers like <string.h>
13576         * app/object_ops.c : fixed copy&paste bug in dialog string
13578         * app/splash.c : gdk_widget_show_now () does not ensure actual
13579         drawing of the splash screen, at least not on win32. Reuse the
13580         previous implementation with gtk_main_iteration() again.
13582         * */makefile.msc : make use of the build module (available in
13583         gnome-cvs/build. Updated for other source changes
13585         * lib/filter.h : added an user_data pointer to <ex/im>port()
13586         function signature and Dia<Im/Ex>portFilter to allow different
13587         filters to reuse the same callback function
13589         * lib/font.c : #include <string.h>
13591         * lib/orth_conn.c 
13592         * lib/poly_conn.c 
13593         * lib/poly_shape.c 
13594         * lib/neworth_conn.c
13595         * lib/text.c : don't mix allocator functions (g_)realloc, free, ...
13597         * */*.def : export function definition files required by win32 build
13599         * objects/custom/custom.c : #include <string.h>
13601         * plug-ins/pstricks/render_pstricks.c
13602         * plug-ins/shape/shape_export.c
13603         * plug-ins/svg/render_svg.c
13604         reflect changes to filter export function signature
13606         * plug-ins/wmf/wmf.cpp : fixed indent and scaling. It now should
13607         mostly work as expected
13608         * plug-ins/wmf/wmf_gdi.[hc] : Updated comment. Still not used
13609         to build the wmf plug-in because on the one hand the GDI emulation 
13610         isn't finished and on the other hand it isn't required when building
13611         for win32. Is there anybody out there, who wants to save WMF on non
13612         windoze platforms ?
13614         * plug-ins/wpg/wpg.cpp : fixed scaling to take axis dependent
13615         offset into account.
13617 2001-01-02  Steffen Macke <sdteffen@yahoo.com>
13619         * app/Makefile.am: added missing plug-ins to run_dia.sh
13621         * lib/paper.c: added paper sizes A0, A1, A2
13623         * objects/UML/class.c
13624         objects/UML/class.h
13625         objects/UML/class_dialog.c: added support for colored UML
13626         classes
13627         
13628 2000-12-30  Kevin Breit <battery841@mediaone.net>
13630         * doc/en/usage-customization.sgml: added more content
13632 2000-12-24  Kevin Breit <battery841@mediaone.net>
13634         * doc/en/usage-layers.sgml: added file, contributed by Remypsb
13635         <remy.viard@laposte.net>
13637 2000-12-24  Steffen Macke <sdteffen@yahoo.com>
13639         * added limiting lines to Civil Engineering sheet,
13640         fixed vertical pump icon
13641         
13642 2000-12-20  Steffen Macke <sdteffen@yahoo.com>
13644         * updated/additional Civil Engineering shapes: better icons,
13645         shapes use foreground/background colors now and are filled
13646         
13647 2000-12-03  Kevin Breit  <battery841@mediaone.net>
13649         * doc/en/dia-manual.sgml Integrated a few diffs.  New section should be
13650         the selection <sect1>
13652 2000-11-29  Fredrik Hallenberg  <hallon@lysator.liu.se>
13654         * app/load_save.c (diagram_data_save): avoid using obsoleted
13655         libxml calls (only matters when compiling with libxml2)
13657 2000-11-25  James Henstridge  <james@daa.com.au>
13659         * app/disp_callbacks.c (ddisplay_drop_object): add a function to
13660         handle the tool drops on the canvas.
13662         * app/interface.c (display_data_received_callback): do the check
13663         to make sure that the drag is from a local toolbox here as well.
13665         * app/interface.c (create_tools): unref the pixmap/mask after
13666         creating the GtkPixmap.
13667         (tool_setup_drag_source): function to set up a drag source for
13668         create object tool buttons.
13669         (create_tools): setup drag source for CREATE_OBJECT_TOOL's.
13670         (fill_sheet_wbox): same here.
13671         (create_display_shell): set up the display canvas as a drag
13672         destination.
13673         (display_drop_callback, display_data_received_callback): functions
13674         to handle drops of tool buttons.
13676         * app/menus.c (menus_init): don't use gnome_popup_menu_new().  It
13677         does weird shit to the user_data pointer for a menu item.  Object
13678         alignment should work again now.
13680         * app/splash.c (get_logo_pixmap): don't unref the bitmap if it is
13681         NULL, and mark this function static.
13682         (app_splash_init): use gtk_widget_show_now() instead of the
13683         gtk_main_iteration loop.
13684         (app_splash_init): connecting gtk_widget_destroy to the destroy
13685         signal of a widget seems pretty useless.
13687 2000-11-23  Kevin Breit <battery841@users.sourceforge.net>
13689         * doc/en/dia-manual.sgml:
13690                 Added sect1 for advanced object types.  Starting development
13691                 on that part.
13693 2000-11-18  Kevin Breit <battery841@mediaone.net>
13695         * doc/en/dia-manual.sgml:
13696                 Stupid spelling fixes.
13698 2000-11-18  Kevin Breit <battery841@mediaone.net>
13700         * doc/en/dia-manual.sgml:
13701                 Just some small changes I made.  Props to Greg LeBlanc on the
13702                 recommendations.
13704 2000-11-17  Alexander Larsson  <alla@lysator.liu.se>
13706         * app/display.c:
13707         (ddisplay_add_display_area): Clip input rectangle to
13708         the visible part of the display.
13709         (ddisplay_scroll): Optimization, don't scroll and
13710         redraw if moving to the same position as before.
13712         * app/render_libart.c (renderer_libart_copy_to_window):
13713         Removed sanity check. Now moved to ddisplay_add_display_area().
13715         * lib/diavar.h:
13716         Added return at end of file.
13717         
13718 2000-11-13 Kevin Breit <battery841@mypad.com>
13719         * doc/en/dia-manual.sgml
13720                 Commited manual changes from Henry House <hajhouse@houseag.com>
13722 2000-10-21 Hans Breuer <Hans@Breuer.Org>
13723         * lib/beziershape.c :
13724                 The previous code was accessing unowned memory due to IHMO
13725                 wrong index calculation. Now it appears to be fixed.
13726                 *Please Review!*
13728         * lib/makefile.msc
13729         * plug-ins/makefile.msc
13730         * objects/makefile.msc
13731         * app/makefile.msc: (new files)
13732                 Makefiles for Dia on Win32, Micro$oft VC only.
13734         * plug-ins/pstricks/render_pstricks.c
13735         * plug-ins/dxf/dxf-import.c
13736         * plug-ins/shape/shape-export.c
13737         * plug-ins/svg/render_svg.c
13738         * app/commands.c
13739         * app/filedlg.c
13740         * app/preferences.c
13741         * app/render_eps.c
13742         * lib/sheet.c
13743         * lib/plug-ins.c
13744         * objects/custom/custom.c
13745         * objects/standard/image.c
13746                 portability (not only win32): use HAVE_UNISTD_H, HAVE_DIRENT_H 
13747                 where   appropriate, add missing prototypes like <string.h>
13749         * plug-ins/wmf/wmf_gdi.cpp
13750         * plug-ins/wmf/wmf_gdi.h:
13751                 start of wmf write functions for non Win32 platform. Not 
13752                 finished yet. The other way to get it working maybe to
13753                 link the plug-in against wine libs.
13754                 
13755         * plug-ins/wpg/wpg.c : add missing brace
13757         * app/load_save.c :
13758                 Handling for unknown objects at load time. Previously Dia
13759                 was crashing, if you try to load a file referencing objects
13760                 whiches plug-ins aren't installed/available. Now it spits out 
13761                 a warning and ignores the unknown objects.
13763         * app/interface.c
13764                 toolbox DND support for files like The Gimp does it.
13766         * app/main.c
13767         * app/app_procs.h
13768                 Simple splash screen support and usage.
13770         * app/app_procs.c
13771                 Splash screen, portability fixes, dont' g_error if there is
13772                 g_get_homedir return NULL. This may remove the one and only
13773                 FAQ for Win32.
13775         * app/menus.c :
13776                 Make it compile without ENABLE_NLS
13778         * app/render_libart.c :
13779                 Sanity check to avoid calling libart with wrong window coordinates.
13780                 They come from the update handler. Direct Gdk is dealing nicely
13781                 with coordinates out of range, libart does access un-owned memory
13782                 in this case, mostly causing crashes.
13784         * app/winmain.c: (new file) Export the Win32 Gui version of the
13785                 main function. This file is only required for Windoze.
13787         * app/splash.c: (new file) splash screen implementation
13789         * lib/color.h
13790         * lib/font.h
13791         * lib/diavar.h: (new file)
13792                 moved special variable export code to diavar.h, because it is
13793                 needed in color.h and font.h
13795         * lib/paper.c :
13796                 M$VC cann't export inlined functions. Quick hack to let it
13797                 link again. Probably the glib mechanics should be used here?
13799         * objects/UML/lifeline.c : initialize var before usage
13801         * objects/GRAFCET/step.c : removed unused var
13803 2000-10-14  James Henstridge  <james@daa.com.au>
13805         * app/render_gnomeprint.c (draw_image): change code so images
13806         don't get flipped when printing.
13808         * app/paginate_gnomeprint.c (diagram_print_gnome): check to make
13809         sure that the return value of
13810         gnome_print_context_new_with_paper_size is not NULL.
13812         * app/render_gnomeprint.c (draw_arc): add code to convert arcs
13813         into a series of bezier segments.
13814         (fill_arc): similar code to handle filled arc segments.
13816 2000-10-12  Fredrik Hallenberg  <hallon@lysator.liu.se>
13818         * app/app_procs.c
13819         * app/commands.c
13820         * app/dia-props.c
13821         * app/diagram.c
13822         * app/diagram.h
13823         * app/disp_callbacks.c
13824         * app/display.c
13825         * app/linewidth_area.c
13826         * app/paginate_psprint.c
13827         * app/preferences.c
13828         * app/undo.c
13829         * app/font.c
13830         * app/message.c
13831         * app/neworth_conn.c
13832         * app/orth_conn.c
13833         * objects/standard/box.c: various small changes to get rid of 
13834         annoying warnings (eg faulty prototypes and unused variables)
13836         * app/disp_callbacks.c
13837         * app/cursor.h
13838         * app/magnify.c
13839         * app/magnify.h: update magnify tool icon when pressing/releasing
13840         shift. I will try to make something more general so that similar
13841         things can be used by other tools.
13843         * shapes/SDL/inout.shape
13844         * shapes/SDL/return.shape: fixed some typos
13846 2000-10-09  James Henstridge  <james@daa.com.au>
13848         * objects/custom/shape_info.c (parse_path): apply patch from
13849         Robert Young <robertdotyoung@dsto.defence.gov.au> to fix bug
13850         #25221
13852 2000-10-08  James Henstridge  <james@daa.com.au>
13854         * objects/standard/image.c (image_set_props): if the file could not
13855         be loaded, show the broken image icon.
13857         * plug-ins/Makefile.am (SUBDIRS): add shape to the subdirs list.
13859         * plug-ins/shape/*: the shape export plugin by Steffen Macke.
13861         * app/interface.c (fill_sheet_wbox): use gdk-pixbuf to load the
13862         object icon when loading from a file.  This allows you to have PNG
13863         icon files for shapes.
13865 2000-10-07  James Henstridge  <james@daa.com.au>
13867         * app/Makefile.am (dia_LDADD): remove GDK_IMLIB_LIBS reference.
13869         * lib/Makefile.am, app/Makefile.am (INCLUDES): remove
13870         GDK_IMLIB_CFLAGS reference.
13872         * app/commands.c (help_about_callback): remove imlib code.
13874         * lib/dia_image.c: only include the pixbuf version of the image
13875         routines.
13877         * acconfig.h: remove the HAVE_GDK_PIXBUF flag from here.
13879         * configure.in (CPPFLAGS): remove the check for imlib, as we now
13880         require gdk-pixbuf.
13882         * plug-ins/pstricks/render_pstricks.c (new_pstricks_renderer):
13883         conditionally define \setfont as well.
13885 2000-10-05  James Henstridge  <james@daa.com.au>
13887         * plug-ins/pstricks/render_pstricks.c (new_pstricks_renderer): fix
13888         preamble so that we define \setlinejoinmode and \setlinecaps
13889         commands conditionally on them being undefined.  This way, the
13890         pstricks output files should work without modification, and will
13891         support the commands when they are implemented in pstricks.
13893 2000-10-05  Szabolcs Ban  <shooby@gnome.hu>
13895         * dia.desktop: added hungarian translations to dia.desktop
13897 2000-10-04  James Henstridge  <james@daa.com.au>
13899         * sheets/UML.sheet: fix typo.
13901         * objects/custom/shape_info.c: use strtod instead of g_strtod.
13902         (parse_path): actually call setlocale around strtod calls.
13904         * lib/dia_xml.c: use strtod rather than g_strtod.  We wrap each
13905         call in setlocale(LC_NUMERIC, "C"), so there is no reason to call
13906         the g_strtod wrapper.
13908         * shapes/SDL/: add SDL shapes from Rubens Ramos
13909         <rubens_ramos@yahoo.com>
13911         * acinclude.m4 (DIA_CHECK_CFLAG): fix up macro.
13913         * sheets/Makefile.am (SHEETS): add SDL.sheet to list.
13915         * shapes/MSE/: add Mobile Subscriber Equipment shapes from
13916         W. Michael Petullo <mike@flyn.org>.
13918         * sheets/Makefile.am (SHEETS): add civil.sheet (which got missed
13919         from the 0.86 tarball) and jigsaw.sheet.
13921         * configure.in: add shapes/jigsaw/Makefile to list of generated files.
13923         * shapes/jigsaw/: jigsaw shapes from Martin Hawlisch.
13925         * shapes/network/: add network-additional shapes here.
13927         * sheets/network.sheet: add the network-additional shapes from
13928         Martin Hawlisch <Martin.Hawlisch@bflow.com> to the main network
13929         sheet.
13931 2000-09-30  Fredrik Hallenberg  <hallon@lysator.liu.se>
13933         * configure.in: Updated ALL_LINGUAS
13935         * po/nl.po: Removed newline from translation
13937 2000-09-17  Asbjorn Pettersen  <asbjornP@dualog.no>
13939         * app/commands.c (help_about_callback): Use G_DIR_SEPARATOR_S in 
13940         logo filename generation. 
13942         * lib/dia_dirs.c (dia_get_data_directory): Handle empty subdir better.
13943         Avoiding "//dia_logo.png".
13945 2000-09-16  Asbjorn Pettersen  <asbjornP@dualog.no>
13947         * app/filedlg.c: add include <sys/types.h> to
13948         remove warning. (OS/2)
13950 2000-09-13  Cyrille Chepelov <chepelov@calixo.net>
13952         * objects/chronogram/chronoline_event.c (reparse_clevent):
13953         the __checksum routine was simply bogus. Redone it in a slightly
13954         saner way (reported by Michael Farr <mfarr@cs.latrobe.edu.au>).
13956 2000-09-10  Asbjorn Pettersen  <asbjornP@dualog.no>
13958         * app/create_object.c (create_object_button_press): 
13959         * app/modify_tool.c (click_select_object): 
13960         * lib/object.h: select renamed to selectf to prevent
13961         compiler problems with function select().  OS/2 version.
13963 2000-09-08  Karsten Weiss  <knweiss@gmx.de>
13965         * po/de.po: Updated.
13967 2000-09-07  Karsten Weiss  <knweiss@gmx.de>
13969         * dia.desktop: Added German translation
13970         * app/menus.c: "Diagram Propeties..." -> "Diagram Properties..."
13972 2000-08-29  Manuel de Vega Barreiro <barreiro@arrakis.es>
13974         * configure.in (ALL_LINGUAS): added "es"
13976 2000-08-28  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
13978         * app/magnify.c:
13979         * app/cursor.h:
13980         * app/cursor.c:
13981         * app/scroll_tool.c:
13982         Standardized cursor function get_cursor().  Magnify now has
13983         looking-glass cursor with + and -.
13985         * app/create_object.c (create_object_button_press): 
13986         Newly created connections now snap to connection points even when
13987         off the grid. 
13989 2000-08-17  Daniel Egger  <egger@suse.de>
13991         * app/menus.c: #ifdef'ed some code for the none GNOME
13992         case.
13993         * app/dia_embedd.c: Changed obvious hackery. Can anyone
13994         please have a look at the GNOME UI menu creation? The
13995         gnome-app-helper code is ages old and plainly broken!
13997 2000-08-15  Daniel Egger  <egger@suse.de>
13999         * app/commands.c:
14000         * app/commands.h:
14001         * app/diagram.c:
14002         * app/display.c:
14003         * app/menus.c:
14004         * app/select.c: First big patch to get the menus
14005         working again in the international version. Copied
14006         some code written by Sven and me from GIMP and
14007         thus implemented automatic tearoffmenu creation and
14008         proper translation. I also removed that pseudo
14009         radiomenu hack and cleaned up several translation
14010         hacks which have never really worked. All in all
14011         this is part I of the big menu patch. Enjoy and tell
14012         me if you detect any problems.
14014 2000-08-14  Daniel Egger  <egger@suse.de>
14016         * sheets/UML.sheet: Changed one German translation as
14017         suggested by Heribert Schuetz <hs@heribert-schuetz.de>.
14019 2000-08-10  Fredrik Hallenberg  <hallon@lysator.liu.se>
14021         * app/diapagelayout.c:
14022         * lib/diagramdata.c:
14023         * lib/diagramdata.h:
14024         * lib/Makefile.am:
14025         * lib/paper.c:
14026         * lib/paper.h: honour PAPERCONF env variable and /etc/papersize when
14027         selecting paper size for a new diagram. TODO: Use libpaper if 
14028         available and use gnome_paper-stuff if using GNOME.
14030         * sheets/Electric.sheet: fixed typo.
14031         
14032 2000-08-08  James Henstridge  <james@daa.com.au>
14034         * po/README: added a readme file to tell translators to translate
14035         the .sheet files as well.
14037         * app/commands.c (help_about_callback): fix small bug where we tried
14038         to gdk_bitmap_unref() the mask for the about box image, even though
14039         it was NULL.  Now check for a NULL mask.
14041 2000-08-07  Daniel Egger  <egger@suse.de>
14043         * sheets/*.sheet: Added translations for the name
14044         in the toolbar tab. Brushed up some descriptions 
14045         and some translations a bit.
14047 2000-08-06  James Henstridge  <james@daa.com.au>
14049         * plug-ins/svg/render_svg.c (new_svg_renderer): update public
14050         identifier and dtd url for SVG output.
14051         (new_svg_renderer): fix the output of the viewBox output.  The
14052         second two numbers are the width and height -- not the right
14053         and bottom sides of the box.
14055         * shapes/*/*.shape: update svg namespace URI.
14057         * objects/custom/shape_info.c (load_shape_info): change the
14058         namespace URI for custom shapes yet again to match the Candidate
14059         Recommedation.  It looks like this one will probably be the final
14060         one.
14062         * app/display.c (new_display): remove the code that sets ic and
14063         ic_attr members to NULL, as one of the previous function calls
14064         causes the display to be realised.  This means that the ic gets
14065         lost.  Thanks to Yukihiro Nakai <ynakai@redhat.com> for finding
14066         this one.
14068 2000-08-06  James Henstridge  <james@daa.com.au>
14070         * shapes/Makefile.am (SUBDIRS): add Civil back to list.
14072         * NEWS: fixed date in NEWS file, as I will release today.
14074         * README: updated the README a little.  Added note that Dia is now
14075         a GNU program.
14077         * dia.spec: fix up spec file.
14079         * plug-ins/wpg/wpg.c: changed DIAG_NOTE stuff here as well.
14081         * plug-ins/hpgl/hpgl.c: change Hans's DIAG_NOTE stuff so that we don't
14082         get heaps of warnings when you turn off debugging.
14083         Also made a few other warning fixes.
14085 2000-08-02  James Henstridge  <james@daa.com.au>
14087         * plug-ins/svg/Makefile.am (INCLUDES): add XML_CFLAGS to INCLUDES.
14089         * configure.in: update version number.
14091 2000-08-01  James Henstridge  <james@daa.com.au>
14093         * app/commands.c (help_about_callback): add Hans to about dialog.
14095         * doc/shape.dtd: dtd for shape file format.
14097         * doc/custom-shapes: update doc file about creating custom shapes.
14099         * shapes/*/*.shape: change namespace URI for the SVG portion to the
14100         one for the latest draft.
14102         * shapes/*/*.shape: fix up rect definitions.
14104         * objects/custom/shape_info.c (load_shape_info): recognise newer
14105         namespace tag for SVG.
14106         (parse_svg_node): the rect element should take attributes x, y, width
14107         and height -- not x1,y1,x2,y2.
14109         * plug-ins/svg/render_svg.c (new_svg_renderer): updated doctype
14110         output to use the newest draft DTD.
14112         * plug-ins/svg/svg.c: initialisation code for plugin.
14114         * plug-ins/svg/render_svg.c: move svg export code to a plugin.
14116         * plug-ins/svg/Makefile.am: makefile for svg plugin.
14118         * app/app_procs.c (internal_plugin_init): don't register the svg
14119         export filter here.
14121         * app/Makefile.am (dia_core_files): don't compile in render_svg.[ch]
14123 2000-07-31  James Henstridge  <james@daa.com.au>
14125         * objects/standard/textobj.c (textobj_get_defaults): 
14126         * objects/standard/polygon.c (polygon_get_defaults): 
14127         * objects/standard/image.c (image_get_defaults): 
14128         * objects/standard/ellipse.c (ellipse_get_defaults): 
14129         * objects/standard/box.c (box_get_defaults): 
14130         * objects/standard/beziergon.c (beziergon_get_defaults): 
14131         * objects/flowchart/parallelogram.c (pgram_get_defaults): 
14132         * objects/flowchart/ellipse.c (ellipse_get_defaults): 
14133         * objects/flowchart/diamond.c (diamond_get_defaults): 
14134         * objects/flowchart/box.c (box_get_defaults): 
14135         * objects/custom/custom_object.c (custom_get_defaults): 
14136         * objects/FS/flow.c (flow_get_defaults): 
14137         * objects/FS/flow-poly.c (flow_get_defaults): 
14138         * objects/FS/flow-ortho.c (orthflow_get_defaults): ref and sink the
14139         defaults widget.
14141         * app/defaults.c (defaults_show): don't keep on ref'ing the defaults
14142         widgets for various object types.
14143         (create_dialog): ref and sink the no_defaults_dialog.
14145         * app/preferences.c (prefs_create_dialog): change
14146         gtk_container_border_width call to gtk_container_set_border_width.
14148 2000-07-29  James Henstridge  <james@daa.com.au>
14150         * app/commands.c (view_aa_callback): show a warning dialog if
14151         you start AA mode.
14153         * app/interface.c (fill_sheet_menu): don't add a menu item for
14154         empty sheets.
14156 2000-07-26  James Henstridge  <james@daa.com.au>
14158         * plug-ins/dxf/dxf-export.c: updates from Steffen to fix bug #18677
14160         * app/menus.c: remove edit grid menu item.
14162         * app/commands.[ch] (view_edit_grid_callback): removed.
14164         * app/display.c (new_display): don't initialise removed Grid members.
14166         * app/grid.c: remove unused functions.
14168         * app/grid.h: remove dialog related stuff from Grid structure.
14169         Remove prototypes for dialog functions.
14171         * app/menus.c: add to menus
14172         
14173         * app/commands.[ch] (view_diagram_properties_callback): new command
14174         for showing the diagram properties dialog.
14176         * app/dia-props.[ch]: a new diagram properties dialog.  To replace
14177         the edit grid dialog.
14179 2000-07-25  James Henstridge  <james@daa.com.au>
14181         * app/grid.c (grid_x_update): 
14182         (grid_y_update): as the grid setting is stored with the diagram,
14183         update all displays when a change is made.
14185         * app/modify_tool.c (modify_motion): use new snap_to_grid sig.
14187         * app/create_object.c (create_object_button_press): 
14188         (create_object_motion): use new snap_to_grid signature.
14190         * app/grid.c (grid_draw): use the grid settings in the DiagramData,
14191         and handle invisible grid lines.
14192         (snap_to_grid): use new grid settings.  Also changed signature to
14193         take a DDisplay rather than Grid pointer.
14194         (grid_show_dialog): get the defaults from the correct place.
14196         * app/display.c (new_display): do not set ddisp->grid.width_[xy].
14198         * app/diagram.c (new_diagram): set the grid size defaults from the
14199         user preferences.
14201         * app/load_save.c (diagram_data_save): save grid and guide info to
14202         diagram file.
14203         (diagram_data_load): add guide and grid load support.
14205         * lib/diagramdata.c (new_diagram_data): set the new DiagramData
14206         members.
14208         * lib/diagramdata.h: add members to DiagramData for grid and guide
14209         settings.
14211         * configure.in (BONOBO_LIBS): update configure scripts
14213         * app/dia.oafinfo: oafinfo file for dia embeddables.
14215         * app/dia_embedd.c: add OAF support.
14217 2000-07-24  James Henstridge  <james@daa.com.au>
14219         * plug-ins/wpg/Makefile.am: 
14220         * plug-ins/pstricks/Makefile.am: 
14221         * plug-ins/hpgl/Makefile.am: 
14222         * plug-ins/dxf/Makefile.am: same here.
14224         * plug-ins/cgm/Makefile.am: remove LIBADD.  Dia already links with
14225         the required libraries, and the link line was causing libtool not
14226         to build a shared library on some systems :(
14228         * plug-ins/cgm/cgm.c (write_real): the initial if statement should
14229         be checking x, not n.
14231 2000-07-23  James Henstridge  <james@daa.com.au>
14233         * app/preferences.c (prefs_data): set the "reset tools after
14234         create" preference to true by default.  That seems to be what most
14235         people expect.
14237         * app/interface.c (create_sheets): instead of a notebook, use an
14238         option menu that updates the sheet tools.  The notebook tabs were
14239         getting a bit unwieldly, so the option menu should fix that.  This
14240         also reduces the number of widgets in the tools radio button
14241         group, which should make the UI a little more responsive.
14243 2000-07-19  Fatih Demir <kabalak@gmx.net>
14244         
14245         * configure.in: Added tr to ALL_LINGUAS.
14246                 [ Yeah, we're now having a Turkish translation,
14247                    too. ]
14248         
14249         * dia.desktop: Added the Turkish entries.
14251 2000-07-02  Fredrik Hallenberg  <hallon@lysator.liu.se>
14253         * doc/diagram.dtd: changed string-element so it conforms to the
14254         output from dia.
14256 2000-06-30  Fredrik Hallenberg  <hallon@lysator.liu.se>
14258         * configure.in: added chinese. 
14259         Use AM_PROG_LIBTOOL instead of AC_PROG_LIBTOOL.
14261         * app/app_procs.c:
14262           app/load_save.c:
14263           app/render_svg.c:
14264           lib/dia_xml.c:
14265           lib/plug-ins.c:
14266           lib/sheet.c:
14267           objects/custom/shape_info.c: 
14268           shapes/Circuit/npn.shape:
14269           shapes/Circuit/pnp.shape:
14270           sheets/*.sheet: dia now works with libxml2.
14271         Libxml2 is a bit more picky when parsing xml and reported errors on all 
14272         sheet files because they use non ascii characters (added 
14273         encoding="iso-8859-1"). Also "xml:lang=en@layman" is not proper xml so 
14274         I commented out these.
14276 2000-06-30  Christopher R. Gabriel  <cgabriel@linux.it>
14278         * configure.in (ALL_LINGUAS): added Italian
14280 2000-06-27  Sung-Hyun Nam  <namsh@lgic.co.kr>
14282         * configure.in (ALL_LINGUAS): added Korean
14284 2000-06-25  James Henstridge  <james@daa.com.au>
14286         * objects/flowchart/parallelogram.c (pgram_create): use default font
14287         and add properties interface support.
14289         * objects/flowchart/ellipse.c (ellipse_create): use default font and
14290         add properties interface support.
14292         * objects/flowchart/diamond.c (diamond_create): use default font and
14293         add properties interface code.
14295         * objects/flowchart/box.c (box_create): use default font.
14297         * objects/custom/custom_object.c (custom_create): use default font
14298         here too.
14300         * objects/standard/textobj.c (textobj_create): update to use default
14301         font.
14303         * lib/attributes.c: add implementations.
14305         * lib/attributes.h (attributes_[gs]et_default_font): add function
14306         prototypes for setting/getting a default font.
14308 2000-06-24  James Henstridge  <james@daa.com.au>
14310         * app/paginate_gnomeprint.h: updated prototype.
14312         * app/paginate_gnomeprint.c (paginate_gnomeprint): update to use
14313         diagram page settings.
14315         * objects/standard/beziergon.c (beziergon_copy): same here.
14317         * objects/standard/polygon.c (polygon_copy): copy the fill colour
14318         as well.
14320         * app/undo.h: 
14321         * app/tool.h (tool_options_dialog_show): 
14322         * app/scroll_tool.h (free_scroll_tool): 
14323         * app/render_svg.h: 
14324         * app/render_libart.h (renderer_libart_copy_to_window): 
14325         * app/render_gdk.h (renderer_gdk_copy_to_window): 
14326         * app/properties.h (properties_hide_if_shown): 
14327         * app/preferences.h (prefs_load): 
14328         * app/object_ops.h: 
14329         * app/modify_tool.h (free_modify_tool): 
14330         * app/magnify.h (free_magnify_tool): 
14331         * app/linewidth_area.h (linewidth_area_create): 
14332         * app/layer_dialog.h: 
14333         * app/handle_ops.h (handle_is_clicked): 
14334         * app/group.h: 
14335         * app/grid.h (grid_destroy_dialog): 
14336         * app/defaults.h (defaults_show): 
14337         * app/cut_n_paste.h (cnp_exist_stored_objects): 
14338         * app/create_object.h (free_create_object_tool): 
14339         * app/connectionpoint_ops.h (diagram_unconnect_selected): 
14340         * app/commands.h: 
14341         * app/color_area.h (color_area_create): 
14342         * app/app_procs.h (app_is_embedded): remove extern keyword from
14343         function prototypes.
14345         * lib/text.h: 
14346         * lib/sheet.h (load_all_sheets): 
14347         * lib/render_store.h: 
14348         * lib/render_object.h (render_object_load): 
14349         * lib/polyshape.h (polyshape_closest_segment): 
14350         * lib/poly_conn.h (polyconn_closest_segment): 
14351         * lib/orth_conn.h: 
14352         * lib/object.h: 
14353         * lib/objchange.h (new_object_state_change): 
14354         * lib/neworth_conn.h (neworthconn_add_segment): 
14355         * lib/message.h (message_error): 
14356         * lib/lazyprops.h: 
14357         * lib/geometry.h: 
14358         * lib/font.h (font_descent): 
14359         * lib/focus.h (remove_focus): 
14360         * lib/element.h: 
14361         * lib/diagramdata.h: 
14362         * lib/dia_xml.h (data_add_composite): 
14363         * lib/dia_image.h: 
14364         * lib/connpoint_line.h: 
14365         * lib/connection.h (connection_move_handle): 
14366         * lib/color.h: 
14367         * lib/attributes.h (attributes_set_default_line_style): 
14368         * lib/arrows.h (arrow_draw): remove extern keyword from function
14369         definitions.  It is not required for functions.
14371         * plug-ins/dxf/Makefile.am (INCLUDES): 
14372         * plug-ins/pstricks/Makefile.am (INCLUDES): 
14373         * plug-ins/cgm/Makefile.am (INCLUDES): 
14374         * objects/SADT/Makefile.am (INCLUDES): 
14375         * objects/chronogram/Makefile.am (INCLUDES): 
14376         * objects/GRAFCET/Makefile.am (INCLUDES): 
14377         * objects/flowchart/Makefile.am (INCLUDES): 
14378         * objects/sybase/Makefile.am (INCLUDES): 
14379         * objects/FS/Makefile.am (INCLUDES): 
14380         * objects/standard/Makefile.am (INCLUDES): 
14381         * objects/network/Makefile.am (INCLUDES):
14382         * objects/UML/Makefile.am (INCLUDES): same here.
14384         * objects/ER/Makefile.am: changed inclusion of some macros to
14385         variables.
14387         * lib/plug-ins.c (dia_register_plugins_in_dir): use a few defines to
14388         handle the plug in extension, rather than have all the #ifdef's in
14389         the code.
14391         * plug-ins/Makefile.am: add renderer.inc to dist.
14393         * plug-ins/dxf/dxf-import.c: Updates from Steffen Macke.
14395 2000-06-11  Asbjorn Pettersen  <asbjornP@dualog.no>
14397         * lib/plug-ins.c: Handle OS/2 dll's too.
14399 2000-06-07  James Henstridge  <james@daa.com.au>
14401         * app/plugin-manager.c (get_plugin_manager): set some table
14402         packing options to make it look a little nicer.
14404         * plug-ins/hpgl/Makefile.am, plug-ins/wpg/Makefile.am: added
14405         makefiles for these plug-ins.
14407         * plug-ins/{hpgl,wmf,wpg}/*: removed dos style cariage returns.
14409         * configure.in: added hpgl and wpg directories to build.  Added
14410         note about whether gnome-print support was enabled, and noted that
14411         it is not recommended.
14413 2000-06-06  James Henstridge  <james@daa.com.au>
14415         * plug-ins/{hpgl,wmf,wpg}/*: Hans Breuer's plug-ins.  They still need
14416         a little work, but I am checking them in so I don't lose them.
14418 2000-06-01  James Henstridge  <james@daa.com.au>
14420         * objects/standard/arc.c: added extra properties.
14422         * lib/beziershape.c (beziershape_closest_handle): fix a bug where I
14423         was using the wrong index into the handles array.  This gets corner
14424         type changing working correctly.
14426         * lib/properties.[ch]: add support for BezPoint's and BezPoint arrays
14427         to properties code (no editing or loading yet though).  Also added
14428         support for point array manipulation through the offsets interfaces.
14430         * lib/Makefile.am (INCLUDES): added include of gdk-pixbuf 
14432         * app/interface.c (origin_button_press): changes so the origin
14433         button doesn't grab the pointer when we pop up the menu.
14435         * app/commands.c (help_about_callback): fix small memory leak in
14436         about box code.
14438         * app/menus.c (menus_init): fixed breakage I introduced in the non
14439         gnome menus when I was doing the menu changes.  The tearoffs work
14440         really nicely in plain gtk mode as well.
14442         * objects/standard/beziergon.c (beziergon_create): changed the
14443         returned handles to match the handle numbering changes.  Now
14444         segment addition and removal works correctly with undo!
14446         * lib/beziershape.c: various changes to the code.  Changed the
14447         numbering of handles, and fixed the segment removal code.
14449 2000-05-31  James Henstridge  <james@daa.com.au>
14451         * objects/standard/beziergon.c: remove connection point handling.
14452         There is still a bit of work to be done to get adding and removing
14453         of segments working correctly.
14455         * lib/beziershape.c: add connection point handling to beziershape.
14456         I set it for two connection points per segment.
14458 2000-05-30  James Henstridge  <james@daa.com.au>
14460         * objects/standard/polygon.c: don't do connectionpoint handling.
14462         * lib/polyshape.c: changed to handle connection points internally.
14463         Also, don't worry about connections to handles on polyshape, as
14464         all handles are non connectable.
14466 2000-05-30 Ville Hautamaki <villeh@cs.joensuu.fi>
14468         * configure.in: Added finnish
14469         
14470 2000-05-30  James Henstridge  <james@daa.com.au>
14472         * sheets/*.sheet: translation updates to the .sheet files.
14474         * po/fr.po: updated po file from Christophe Merlet.
14476         * menus.h: removed prototypes for functions which have been removed.
14478 2000-05-29  James Henstridge  <james@daa.com.au>
14480         * app/layer_dialog.c (layer_dialog_set_diagram): set the selected
14481         item in the option menu when changing selected diagram.
14483         * app/dia_embedd.c (view_factory): fix up function to work with new
14484         menus API.
14486         * app/disp_callbacks.c (ddisplay_realize): remove call to
14487         display_set_active from here.
14488         (ddisplay_canvas_events): move call here.  This gets rid of all the
14489         warnings, as the renderer has been fully set up correctly at this
14490         point.
14492         * app/menus.c (menus_init): add the tearoff item to the start of the
14493         right click menu.
14495         * app/app_procs.c (create_user_dirs): we don't need to create the
14496         menus directory anymore.
14498         * app/disp_callbacks.c (ddisplay_popup_menu): it should not be
14499         necessary to update the menu state here, as it was done when the
14500         active display was set.
14502         * app/display.c (display_set_active): update the menu state when
14503         changing active displays.
14505         * app/interface.c (origin_button_press): set the display as active
14506         when a click is made on the menu button.
14508         * app/menus.c (menus_init): set up a quit function to save the accels
14509         at exit.
14510         Add tearoff items for the non GNOME menus, add accelerators for
14511         several GNOME menus.
14513         * app/disp_callbacks.c (ddisplay_popup_menu): get the menu with
14514         menus_get_image_menu().
14516         * app/menus.c (menus_get_item_from_path): use display_menus here
14517         rather than ddisp->popup.
14519         * app/display.h: remove the popup member in the DDisplay structure.
14521         * app/interface.c: remove option of not using wrap box.
14522         (create_toolbox): change to always use menus_get_toolbox_menubar
14523         even when using gnome menus.
14524         (create_display_shell): use menus_get_image_menu to load accelerators
14525         only -- not the actual popup menu.
14527         * app/menus.c (menus_init): new function to create the menus.
14528         (menus_get_toolbox_menubar): use this function whether gnome is
14529         in use or not.  Changed to use menus_init.
14530         (menus_get_image_menu): same here.  Also, now this function always
14531         returns the same menu, rather than a new one each time.
14532         (menus_init): read a menurc file to load accelerators here.
14534 2000-05-28  James Henstridge  <james@daa.com.au>
14536         * app/display.c (ddisplay_really_destroy): unset active display if
14537         active display is destroyed.
14538         (ddisplay_active): simplify function to return active_display as set
14539         by display_set_active.  This allows using a pinned menu with any
14540         display -- not just the one it was popped up from.
14541         (display_set_active): notify the layer dialog of change of diagrams
14542         when active diagram changes.
14544         * app/disp_callbacks.c (ddisplay_canvas_events): set active display
14545         on button and key presses.
14546         (ddisplay_realize): set active display on realize.
14548         * app/display.c (display_set_active): simple implementation of this
14549         function.
14551         * app/display.h (display_set_active): add prototype for setting
14552         the active display.
14554         * app/interface.c (create_display_shell): don't give focus to the
14555         menu button.
14557         * app/menus.c: fix up menus for Beziergon.
14559         * app/interface.c (create_display_shell): make the widget in the
14560         top left corner a button that can be used to pop up the right click
14561         menu, like in gimp and sketch.
14563         * app/disp_callbacks.c (ddisplay_popup_menu): new function to popup
14564         the display menu.
14566         * objects/standard/beziergon.c (beziergon_set_corner_type_callback):
14567         add code to set corner types for beziergon.
14569         * lib/beziershape.c (beziershape_set_corner_type): fix up corner type
14570         setting code.
14571         (beziershape_move_handle): use the previous corner type for right
14572         controls.
14574         * app/interface.c (tool_data): add beziergon to toolbox.
14576         * objects/standard/standard.c (dia_plugin_init): initialise the new
14577         Beziergon object type.
14579         * objects/standard/beziergon.c: an object based on BezierShape.
14581         * lib/dummy_dep.h (dummy_dep): added to dummy_dep.
14583         * lib/beziershape.[ch]: new files implementing a bezier shape.
14585 2000-05-26  James Henstridge  <james@daa.com.au>
14587         * lib/text.c (text_key_event): handle multibyte inserts.
14588         (text_key_event): also add home and end keybindings.
14590         * app/interface.c (create_display_shell): connect handlers for
14591         focus_in_event, focus_out_event, realize and unrealize signals.
14593         * app/display.[ch] (new_display): initialise input context members.
14595         * app/disp_callbacks.[ch]: added XIM support here.
14597         * lib/font.c (suck_font): the black and white pixel values should be
14598         taken from a 1 bit colormap rather than the default colormap.
14600         Hans Breuer's Windows patches ...
14602         * lib/font.c: use Courier New for fixed width font on windows
14603         machines.
14605         * lib/dia_image.h: change to "struct _DiaImage".
14607         * lib/dia_image.c: change "struct DiaImage" to "struct _DiaImage"
14609         * app/disp_callbacks.c (ddisplay_canvas_events): allow ctrl+right
14610         mouse button for object menu.  This will make two button mouse owners
14611         happier.
14613 2000-05-25  James Henstridge  <james@daa.com.au>
14615         * app/filedlg.c (file_open_ok_callback): use diagram_load here.
14617         * app/app_procs.c (app_init): add extra NULL argument to call of
14618         diagram_load.
14620         * app/load_save.h: remove prototype.
14622         * app/load_save.c: remove diagram_data function here.
14624         * app/diagram.h: added prototype.
14626         * app/diagram.c (diagram_load): new function here, which uses import
14627         filters.
14629         * plug-ins/dxf/dxf.c: register the import filter as well.
14631         * plug-ins/dxf/dxf-import.c: added (unfinished) DXF import filter from
14632         Steffen Macke <macke@heini.fbbwu.fh-lueneburg.de>
14634         * objects/standard/line.c: add start_point and end_point properties
14635         to standard line object.
14637 2000-05-21  James Henstridge  <james@daa.com.au>
14639         * app/paginate_psprint.c: added missing include of locale.h.
14641         * objects/custom/custom_object.c (custom_draw): use fabs rather than
14642         abs for scaling factors.
14643         (custom_distance_from): same here.
14645         * dia.spec: make sure rpm doesn't bomb out when LINGUAS isn't set.
14647 2000-05-18  James Henstridge  <james@daa.com.au>
14649         * po/POTFILES.in: updated POTFILES.in.
14651         * dia.spec: incremented version number in spec file.
14653         * NEWS: added (lots of) news items for the 0.85 release.
14655         * app/preferences.c (prefs_save): set LC_NUMERIC to C while writing
14656         the config file.
14658         * configure.in: updated version number here.
14660         * app/Makefile.am (run_dia.sh): include plug-ins in the lib path.
14662 2000-05-17  James Henstridge  <james@daa.com.au>
14664         * app/app_procs.c (internal_plugin_init): register the native import
14665         filter.
14667         * app/load_save.c (diagram_data_load, diagram_load): split this
14668         function into two -- one that does all the work on the DiagramData
14669         structure, and the other that provides compatibility with the old
14670         function.
14671         (dia_import_filter): use diagram_data_load to define an import
14672         filter.
14674         * app/diagram.h (new_diagram): added const to prototype.
14676         * app/filedlg.c (file_open_callback): change to use new import filter
14677         code.
14679         * lib/filter.c: added import filter management functions.
14681         * lib/filter.h: added prototypes for import filter interface.
14683         * app/commands.c (help_about_callback): updated about dialog to
14684         contain a few more names.
14686 2000-05-16  James Henstridge  <james@daa.com.au>
14688         * configure.in (Configuration): added a status message to the end of
14689         the configure script to give the user some idea of what was
14690         configured.
14692         * plug-ins/dxf/Makefile.am: Makefile for new plugin.
14694         * plug-ins/dxf/dxf.c (dia_plugin_init): added file to initialise the
14695         plugin.
14697         * plug-ins/dxf/dxf-export.c: new file -- Steffen Macke's DXF export
14698         filter for dia.
14700         * configure.in (AM_PATH_LIBART): use the check function provided
14701         with libart rather than our own code.  It is more reliable, and
14702         it only requires that people who build out of CVS have libart.m4
14703         installed (not necessarily all of libart).
14704         (AM_PATH_GDK_PIXBUF): same here for gdk-pixbuf.
14706 2000-05-12  Andreas Hyden  <a.hyden@cyberpoint.se>
14708         * dia.desktop: Added Swedish translation.
14710 2000-05-09  James Henstridge  <james@daa.com.au>
14712         * lib/dia_xml.c: you can't free a const pointer, so remove const
14713         from variable definitions.
14715         Explicitely set LC_NUMERIC where needed, as sometimes it isn't
14716         initialised correctly.
14718         * app/render_svg.c (export_svg): set locale to C.
14720         * app/paginate_psprint.c (paginate_psprint): set locale to C.
14722         * app/render_eps.c (export_eps): set locale to C for EPS export.
14724         * lib/dia_xml.c (data_add_real): change to C locale for snprintf call.
14725         (data_add_point): same here.
14726         (data_add_rectangle): same here.
14727         (data_real): use g_strtod to convert strings to real numbers, so that
14728         locales are taken into account.
14729         (data_point): same here.
14730         (data_rectangle): same here.
14732         * AUTHORS: added Henk and Jacek to authors file.
14734         Daniel Egger's code cleanups.
14736         * app/select.c (select_invert_callback): remove unused variable.
14738         * app/plugin-manager.c (get_plugin_manager): fix typo.
14740         * app/load_save.c (read_connections, write_objects): 
14741         (write_connections): made some functions static.
14743         * app/interface.c (toolbox_delete, toolbox_destroy): made some
14744         functions static.
14746         * app/filedlg.c (file_export_callback): remove unused variable.
14748         * app/app_procs.c: various warning fixes.
14750         Integrating Jacek Pliszka's pstricks export filter.
14752         * plug-ins/pstricks/pstricks.c: code to initialise the plugin.
14754         * plug-ins/pstricks/render_pstricks.[ch]: Jacek Pliszka's pstricks
14755         renderer (with a few small modifications by me).
14757         * plug-ins/pstricks/Makefile.am: new makefile for pstricks plug-in.
14759         * plug-ins/Makefile.am (SUBDIRS): add pstricks subdirectory.
14761 2000-05-07  Alexander Larsson  <alla@lysator.liu.se>
14763         * configure.in:
14764         * sheets/Makefile.am:
14765         * shapes/Makefile.am:
14766         * shapes/Civil/Makefile.am:
14767         * sheets/civil.sheet:
14768         * shapes/Civil/*:
14769         Added civil/hydraulic/structural engineering objects from
14770         sdteffen <macke@heini.fbbwu.fh-lueneburg.de>.
14771         
14772 2000-05-07  Alexander Larsson  <alla@lysator.liu.se>
14774         * objects/FS/flow-poly.c:
14775         * objects/FS/flow.c:
14776         Fix division by zero in point_normalize().
14777         Patch by David Thompson <dcthomp@mail.utexas.edu>
14779 2000-04-27  Lars Clausen  <lrclause@cs.uiuc.edu>
14781         * lib/arrows.c:
14782         * lib/bezier_conn.c:
14783         * lib/connpoint_line.c:
14784         Added checks for zero-length lines before calls to point_normalize.
14786 2000-04-24  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
14788         * app/preferences.c (prefs_data): Changed
14789         reversed_dragging_intersects to not make the dialog ridiculously
14790         wide.
14791         
14792 2000-04-22  James Henstridge  <james@daa.com.au>
14794         Hans's win32 patches:
14796         * app/export_png.c: include message.h
14797         * app/interface.c: include dia_dirs.h
14798         * app/linewidth_area.c: check for rint
14799         * app/main.c: include interface.h
14800         * app/paginate_psprint.c: remove unused variable.
14801         * app/preferences.c: include message.h
14802         * app/render_svg.c: include stdlib.h
14803         * app/select.c: include object_ops.h
14804         * lib/dia_dirs.c: miscelaneous fixes for win32.
14805         * lib/dia_image.c: include string.h
14806         * lib/plug-ins.c: look for .dll files rather than .la files on win32.
14807         * lib/properties.c: include stdlib.h
14808         * lib/properties.h: define extra data for standard properties as
14809         static variables on win32 (to get around dynamic linker problems).
14810         * objects/standard/polygon.c: polygon_create_change missing return
14811         statement.
14813 2000-04-18  Pablo Saratxaga <pablo@mandrakesoft.com>
14815         * configure.in (ALL_LINGUAS): added Catalan
14817 2000-04-18  James Henstridge  <james@daa.com.au>
14819         * objects/standard/bezier.c (bezierline_get_object_menu): add a
14820         separator to the object menu between the add/remove segment items
14821         and the corner type items.
14822         (bezierline_get_object_menu): add code to disable the menu item for
14823         the current corner type.  Really just a cosmetic change.
14825         * app/disp_callbacks.c (create_object_menu): handle DiaMenuItems with
14826         a NULL for the label or with no associated callback.
14828         * objects/standard/bezier.c (bezierline_menu_items): use the
14829         enumeration values rather than numeric values for the corner types.
14831         * lib/bezier_conn.[ch]: added a corner_types member to the BezierConn
14832         structure, and add code to handle it.  Also, don't save the corner
14833         types inline in the bez_points node.  The way it is conditionally
14834         including the element just feels like it will break.
14836         * lib/geometry.h (BezPoint): removed the corner_type stuff from
14837         BezPoint.  The corner type stuff is a user interface level idea rather
14838         than something required by the renderer, so should be taken care of
14839         at the object level.
14841 2000-04-17  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
14843         * configure.in: Fixed some problems with the gdk-pixbuf/imlib
14844         checks.  Weren't able to reproduce original bug, tough.
14846 2000-04-16  Cyrille Chepelov  <chepelov@calixo.net>
14848         * sheets/Electric.sheet:
14849         * sheets/Contact.sheet:
14850         * sheets/Pneumatic.sheet:
14851         * sheets/Circuit.sheet: sprayed some <br/>'s around.
14852         (added a few French translations in the last file)
14853         
14854 2000-04-16  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
14856         * lib/geometry.h: 
14857         * lib/bezier_conn.h: 
14858         * objects/standard/bezier.c: 
14859         * lib/bezier_conn.c: Support for cuspy, smooth and symmetric
14860         bezier points.  Only one minor problem known:  Menus are active
14861         for endpoints minor handles.
14862         11:28: Save and load now works, too.
14863         (bezierconn_closest_major_handle): 12:03: New function to get the
14864         non-control point handle associated with the nearest control
14865         point.  
14866         Also fixed the menu activation problem, and made remove_segment
14867         not remove the endpoint.
14869 2000-04-15  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
14871         * configure.in: Added check for gdk-pixbuf being >= 0.7.0 since
14872         new API is in use.
14874 2000-04-15  Asbjorn Pettersen  <asbjornP@dualog.no>
14876         * lib/plug-ins.c: Added <sys/types.h> and moved <fcntl.h> below
14877         <sys/stat.h>.   OS/2 patch.
14879 2000-04-15  James Henstridge  <james@daa.com.au>
14881         * objects/FS/flow-ortho.c, objects/FS/function.c: Applied David
14882         Thompson's patch that adds undo support to the function structure
14883         diagram objects.
14885 2000-04-14  James Henstridge  <james@daa.com.au>
14887         * objects/custom/custom_object.c (custom_distance_from): new
14888         implementation of distance algorithm that actually takes the
14889         display list into account when calculating the distance.  Much nicer
14890         than a simple bounding box.
14892 2000-04-13  Lars Clausen  <lrclause@cs.uiuc.edu>>
14894         * lib/geometry.c (line_crosses_ray): Fixed division by zero bug
14896 2000-04-12  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
14898         * objects/standard/polygon.c: Start of polygons own changes (for
14899         connectionpoints).  Need to do seperate changes in polyshape, too,
14900         rather than reuse the bezier changes.
14902 2000-04-13  James Henstridge  <james@daa.com.au>
14904         * lib/dia_image.c (dia_image_draw): use the new enumeration values
14905         from after the gdk-pixbuf cleanup.
14907         * lib/geometry.c (bez_point_distance_and_ray_crosses): fix up limit
14908         on for loop.  Last set of coefficients were not beeing calculated,
14909         which caused a bit of breakage.
14911         * lib/bezier_conn.c (bezierconn_closest_segment): use the new
14912         functions in geometry.c for calculating the closest segment.
14913         (bezierconn_distance_from): use distance_bez_line_point to calculate
14914         the distance.
14916         * lib/geometry.c (distance_bez_line_point): new function to calculate
14917         the distance from an open bezier line to a point.
14918         (distance_bez_shape_point): new function to calculate the distance
14919         from a closed bezier shape.
14920         (distance_ellipse_point): new function to calculate the distance from
14921         a filled ellipse to a point.
14923         * lib/geometry.h (BezPoint): moved this structure here from render.h
14925 2000-04-12  James Henstridge  <james@daa.com.au>
14927         * lib/geometry.c (distance_bez_seg_point): new function to calculate
14928         the distance from a bezier segment.
14930         * lib/polyshape.c (polyshape_distance_from): use distance_polygon_point
14931         to calculate the distance from the object.
14933         * lib/geometry.c (distance_polygon_point): function for calculating
14934         the distance from a polygon to a point.
14936 2000-04-12  Cyrille Chepelov  <chepelov@calixo.net>
14938         * app/interface.c:
14939         * lib/sheet.[ch]: added a <br/> tag in sheet files, so that line 
14940         breaks can be inserted in the tool box. 
14942         * doc/sheet.dtd: updated the DTD
14943         * sheets/GRAFCET.sheet: tried <br/> on that sheet (more to come).
14944         
14945 2000-04-12  James Henstridge  <james@daa.com.au>
14947         * app/plugin-manager.c (get_plugin_manager): use the GTK_DIALOG
14948         macro if the dialog is a GtkDialog :(
14950 2000-04-11  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
14952         * objects/standard/polygon.c: Connectionpoints now properly
14953         managed in a GList.  As far as I can tell, this will not dieturb
14954         the order (but I have the nagging doubt...)
14956         * lib/polyshape.c: No longer knows about connectionpoints.
14958 2000-04-11  James Henstridge  <james@daa.com.au>
14960         * app/Makefile.am: fix makefile for bonobo build.
14962         * configure.in: fix checks for bonobo.
14964         * app/menus.c: added entries for the plugin manager.
14966         * app/Makefile.am (dia_core_files): added plugin manager to files
14967         list.
14969         * app/plugin-manager.[ch]: the plugin manager dialog.
14971         * app/display.c (display_update_menu_state): set the antialiased
14972         menu entry to the correct value.
14974 2000-04-11  Cyrille Chepelov  <chepelov@calixo.net>
14976         * objects/custom/custom_object.c: not all renderers like ellipses with
14977         negative dimensions. This could cause ellipses to disappear when using
14978         the flip_h and flip_v functions.
14980         * samples/grafcet.dia: fixed speling and correctness.
14981         
14982 2000-04-11  James Henstridge  <james@daa.com.au>
14984         * lib/plug-ins.[ch]: added more accessors for use by a plugins dialog.
14985         exposed the dia_plugin_load and dia_plugin_unload functions.
14987         * lib/plug-ins.c (plugin_load): change plugin_load to work on an
14988         already created PluginInfo structure.
14990         * app/app_procs.c (app_exit): call dia_pluginrc_write() to write
14991         the pluginrc file.
14993         * lib/sheet.c: fix up call to dia_config_filename.
14995         * lib/plug-ins.[ch]: started writing code for handling a pluginrc
14996         file.  This would save information such as which plugins not to
14997         load during startup.
14999 2000-04-09  James Henstridge  <james@daa.com.au>
15001         * lib/sheet.c: use dia_config_filename to resolve file in ~/.dia.
15003 2000-04-10  Alexander Larsson  <alla@lysator.liu.se>
15005         * lib/plug-ins.c (dia_register_plugins):
15006         Don't free the value returned from g_getenv.
15008 2000-04-09  Anders Carlsson  <andersca@gnu.org>
15010         * app/preferences.h: Add reverse_rubberbanding_intersects preference variable.
15012         * app/preferences.c (prefs_data): Add reverse_rubberbanding_intersects preference data.
15014         * app/modify_tool.c (modify_button_release): If rubberbanding is done from 
15015         right to left, select objects that intersect the rubberbanding rectangle
15016         instead of selecting objects that are in the rectangle.
15018         * lib/diagramdata.c (layer_find_objects_intersecting_rectangle): Add function.
15020         * lib/diagramdata.h: Likewise.
15023 2000-04-09  James Henstridge  <james@daa.com.au>
15025         * lib/plug-ins.[ch]: add copyright messages to files.
15027         * plug-ins/cgm/cgm.c (dia_plugin_init): convert plugin over to new
15028         plugin interface.
15030         * objects/sybase/sybase.c (dia_plugin_init): 
15031         * objects/network/network.c (dia_plugin_init): 
15032         * objects/flowchart/flowchart.c (dia_plugin_init): 
15033         * objects/custom/custom.c (dia_plugin_init): 
15034         * objects/chronogram/chronogram.c (dia_plugin_init): 
15035         * objects/UML/uml.c (dia_plugin_init): 
15036         * objects/SADT/sadt.c (dia_plugin_init): 
15037         * objects/GRAFCET/grafcet.c (dia_plugin_init): 
15038         * objects/FS/fs.c (dia_plugin_init): 
15039         * objects/ER/er.c (dia_plugin_init): updated plugin load code for
15040         object libraries.
15042         * objects/standard/standard.c (dia_plugin_init): change over to new
15043         plugin interface.
15045         * lib/plug-ins.h (DIA_PLUGIN_CHECK_INIT): added a macro to define
15046         the version checker for plugins.
15048         * app/app_procs.c: remove plugin loading code from here, and use
15049         code from plug-ins.[ch].  Also move registration of internal
15050         objects/filters to a `builtin' plugin.
15052         * lib/Makefile.am (libdia_a_SOURCES): added plug-ins.[ch] to library.
15054         * configure.in: use AC_PROG_LIBTOOL rather than AM_PROG_LIBTOOL.
15056         * app/Makefile.am (EXTRA_DIST): you can't include a conditionally
15057         defined variable in EXTRA_DIST.
15059         * app/preferences.h: removed dia_config_filename from header.
15061         * app/preferences.c: removed dia_config_filename function.
15063         * lib/dia_dirs.c (dia_config_filename): moved function over to this
15064         file.  Also changed implementation slightly so that it should work
15065         on the win32 port correctly (and use NT home directories).
15067         * lib/dia_dirs.h (dia_config_filename): move dia_config_filename where
15068         it should have been.
15070         * lib/plug-ins.[ch]: new plugin loading code.
15072 2000-04-08  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
15074         * objects/standard/polygon.c: Fixed startup crash bug (do'h!).
15076         * lib/polyshape.c: Fix closest segment finding, exposes deeper
15077         bugs in adding corners to 'wraparound' segment.
15079         * objects/standard/polygon.c: Added connection points (fixed so
15080         far), set menu sensitivity.
15082         * lib/polyshape.c: Changed to box-style handles, fixed for start
15083         and ends not being special, added initial connections,
15085         * lib/dummy_dep.h: Added polyshape (gotcha!)
15087         * objects/standard/pixmaps/ellipse.xpm: 
15088         * objects/standard/pixmaps/box.xpm: 
15089         Filled element pixmaps with white.
15091         * lib/polyshape.c: 
15092         * objects/standard/polygon.c: 
15093         * lib/polyshape.h: 
15094         * objects/standard/standard.c: 
15095         * objects/standard/Makefile.am (libstandard_objects_la_SOURCES): 
15096         * lib/Makefile.am (libdia_a_SOURCES): 
15097         * app/menus.c: 
15098         * app/interface.c (tool_data): 
15099         Added Standard/Polygon object and PolyShape lib object.  Still
15100         needs inside grab and connection points.
15102         * app/commands.c (help_about_callback): Now uses gdk-pixbuf if
15103         available. 
15105         * configure.in: Made imlib a fallback if gdk-pixbuf is absent or
15106         not wanted.
15108         * app/app_procs.c (app_init): Moved gtk_init outside #ifdef, moved
15109         if (argv) outside ifdefs.
15111 2000-04-04  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
15113         * objects/standard/image.c (image_set_props): 
15114         Aspect ratio is back in town.
15116         * app/Makefile.am (dia_LDADD): 
15117         * acconfig.h: 
15118         * configure.in: 
15119         Check for gdk_pixbuf (by default disabled, for now)
15121         * app/render_eps.c (draw_image): 
15122         * app/render_libart.c (draw_image): 
15123         * app/render_gnomeprint.c (draw_image): 
15124         Support for alpha mask in rendering.  Color postscript, too.
15126         * lib/dia_image.c: 
15127         * lib/dia_image.h: 
15128         Support for gdk_pixbuf and proper masking for exports.
15130 2000-04-01  Kjartan Maraas  <kmaraas@online.no>
15132         * sheets/*.sheets: Updated Norwegian translations.
15133         
15134 2000-03-30  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
15136         * lib/text.c (text_insert_char): 
15137         * lib/render_store.c (add_data): 
15138         Made realloc double the alloced space rather than add
15139         a fixed amount, to reduce memory stress.
15141         * app/select.c: Added new select method 'Transitive'
15142         that select every reachable (by connections) object.
15144 2000-03-27  Kjartan Maraas  <kmaraas@online.no>
15146         * dia.desktop: Added Norwegian translation.
15147         
15148 2000-03-26  Alexander Larsson  <alla@lysator.liu.se>
15150         * app/render_eps.c:
15151         * app/render_svg.c:
15152         Don't dereference NULL pointer if the renderer
15153         couldn't open the file. Fix by Lars Clausen.
15154         Bug reported by Martin Chisholm <b1mt@unb.ca>
15155         
15156 2000-03-26  Alexander Larsson  <alla@lysator.liu.se>
15158         * dia.desktop:
15159         * po/pt.po:
15160         Updated pt translation from Pedro Morais <pmmm@rnl.ist.utl.pt>
15162 2000-03-25  Alexander Larsson  <alla@lysator.liu.se>
15164         * app/dia.gnorba (location_info):
15165         Changed to correct executable name.
15167 2000-03-25  Alexander Larsson  <alla@lysator.liu.se>
15169         * app/app_procs.c:
15170         Don't do any argument parsing or initialization
15171         if argv==NULL.
15173         * app/dia_embedd.c:
15174         Call init_server_factroy before app_init.
15175         Call app_init with argv==NULL
15176         Now we don't get any critical error on startup.
15178         * configure.in:
15179         Add Electric and Pneumatic to makefile list.
15180         
15181 2000-03-24  Cyrille Chepelov <chepelov@calixo.net>
15183         * shapes/Electric/*:
15184         * sheets/Electric.sheet:
15185         Add some Electric circuit shapes.
15187         * shapes/Pneumatic/*:
15188         * sheets/Pneumatic.sheet:
15189         Add some Pneumatic & Hydraulic circuit shapes
15190         (both sheets are still incomplete, though feature enough 
15191         things for basic circuits).
15193         * shapes/Contact/l_*.(xpm|shape):
15194         * sheets/Contact.sheet
15195         * shapes/Contact/Makefile.am
15196         made the older electric circuit shapes in Contact obsolete (disabled
15197         them in the sheet, made that sheet Ladder only). Fixed the makefile
15198         for forgotten items.
15199         
15200 2000-03-24  Alexander Larsson  <alla@lysator.liu.se>
15202         * app/Makefile.am:
15203         Add support for Dia bonobo component.
15204         Currently a bit raw, so it's commented out.
15205         
15206         * app/dia_embedd.c:
15207         * app/dia.gnorba:
15208         New files for embedding dia.
15209         The menu disabling hack is a bit gross. Esp. for GNOME.
15211         * app/app_procs.h:
15212         Add new function app_is_embedded();
15214         * app/diagram.c:
15215         Don't destroy diagram when last display is destroyed if embedded.
15216         
15217         * app/display.c:
15218         Change initialization of display so it works with embedding.
15220         * app/display.h:
15221         Clarify comment about display destruction.
15223         * app/interface.[ch]:
15224         Added top_level_window argument to create_display_shell.
15225         Don't open a top-level window if embedding.
15226         Don't quit app if trying to close toolbox window when embedding.
15227         Add toolbox_show() and toolbox_hide().
15229         * app/main.c:
15230         Added app_is_embedded() function (just returns false).
15231         Added toolbox_show() call in main().
15233         * app/menus.c:
15234         Added code for getting toolbox menus. This is used to
15235         hide some menu items when running embedded.
15236         
15237         * app/app_procs.c:
15238         Include sheet.h to remove warning.
15240         * objects/UML/association.c:
15241         Clarify association direction text.
15242         
15243 2000-03-16  Fredrik Hallenberg  <hallon@lysator.liu.se>
15245         * dia.1
15246         Fixed man page so whatis parsing works.
15248 2000-03-12  Alexander Larsson  <alla@lysator.liu.se>
15250         * app/render_libart.c (new_libart_renderer):
15251         Fix from segg <segg@infonet.ca> to compile without libart.
15252         I forgot to change the stub for new_libart_renderer when doing
15253         the interactive renderer stuff for libart.
15255 2000-03-11  Alastair McKinstry  <mckinstry@computer.org>
15257         * dia.desktop: Added Irish translation.
15258         
15259         * configure.in (ALL_LINGUAS): Added Irish (ga) translation.
15261 2000-03-07  Asbjorn Pettersen  <asbjornP@dualog.no>
15263         * app/load_save.c (fchmod): OS/2 defines only.
15265 2000-03-07  James Henstridge  <james@daa.com.au>
15267         * lib/properties.c (prop_get_widget): set the position in the option
15268         menu correctly.
15270 2000-03-06  Alexander Larsson  <alla@lysator.liu.se>
15272         * app/display.c:
15273         * app/export_png.c:
15274         * app/render_libart.[ch]:
15275         Don't export png:s with an interactive libart renderer.
15277 2000-03-03  Asbjorn Pettersen  <asbjornP@dualog.no>
15279         * lib/arrows.c (finite): define finite(d) isfinite(d)  for OS/2
15281 2000-03-02  James Henstridge  <james@daa.com.au>
15283         * dia.spec (%build): unset LINGUAS before running configure.  This
15284         ensures that all translations get included in the RPM.
15286         * lib/properties.c (object_create_props_dialog): put in a check for
15287         a NULL return from the describe_props() object method.
15288         (prop_desc_lists_union): make sure that the returned array is not
15289         NULL.
15290         (prop_desc_lists_intersection): same here.
15292 2000-02-29  Alexander Larsson  <alla@lysator.liu.se>
15294         * objects/ER/Makefile.am:
15295         * objects/FS/Makefile.am:
15296         * objects/UML/Makefile.am:
15297         Don't link object libs with gtk.
15299 2000-02-29  James Henstridge  <james@daa.com.au>
15301         * app/preferences.c (prefs_save): check to see if the file could
15302         be opened before writing the prefs.
15304         * app/disp_callbacks.c (popup_object_menu): pass the button event
15305         to gtk_menu_popup.  This allows you to click and release to open
15306         the object menu.
15307         (ddisplay_canvas_events): same here.
15308         (create_object_menu): set the object type menu item in the object
15309         menu to be insensitive.
15311         * app/render_svg.c (draw_string): call xmlEncodeEntitiesReentrant,
15312         as we are now requiring a new version of libxml.
15314         * dia.spec: updated version number.  Added requirement for
15315         libxml >= 1.8.5
15317         * configure.in: incremented version number to 0.84.
15318         Added check for libxml >= 1.8.5.  This will prevent some of the
15319         problems people have had with broken libxml versions.
15321         * NEWS: added news items.
15323         * app/interface.c (create_color_area): removed call to realize parent
15324         widget.  Segg <segg@infonet.ca> reported that it caused a warning,
15325         but I haven't seen it on my copy of dia.
15327 2000-02-28  James Henstridge  <james@daa.com.au>
15329         * app/export_png.c: added copyright notice, and made the band height
15330         a constant.
15332 2000-02-27  Alexander Larsson  <alla@lysator.liu.se>
15334         * lib/font.c (suck_font):
15335         Fixed off-by one bug in font pixmap height.
15336         Fixes the problem with garbage at the bottom of some text in aa mode
15337         and in png exported files.
15339 2000-02-27  James Henstridge  <james@daa.com.au>
15341         * app/app_procs.c: add the png export filter if it was compiled in.
15343         * app/export_png.c (export_png): new PNG export filter.  This requires
15344         the libart renderer to work as it needs a renderer that renders to a
15345         pixel buffer.
15347         * configure.in: add check for libpng.
15349         * lib/message.c (message_internal): use a GNOME dialog here as well.
15351         * app/display.c (ddisplay_close): use a GNOME dialog here.
15353         * app/render_eps.c (create_eps_renderer): use diagram scaling factor
15354         when exporting to EPS.  This is because some people said the EPS
15355         output was too large
15357 2000-02-26  James Henstridge  <james@daa.com.au>
15359         * app/defaults.c (create_dialog): use a GNOME dialog for the defaults
15360         window.
15362         * app/app_procs.c (app_exit): use a GNOME dialog here.
15364         * app/preferences.c (prefs_create_dialog): if GNOME support is
15365         enabled, show a GNOME dialog.
15367         * app/grid.c (grid_draw): use preferences when drawing page break
15368         lines.
15370         * app/preferences.c: add page break preferences to dialog.
15372         * app/preferences.h: added page break preferences.
15374 2000-02-25  James Henstridge  <james@daa.com.au>
15376         * sheets/UML.sheet: added new objects.
15378         * objects/UML/uml.c: link in the two new objects.
15380         * objects/UML/node.c: 
15381         * objects/UML/branch.c: new UML objects from Stfan Seefeld
15382         <seefelds@magellan.umontreal.ca>.
15384 2000-02-24  James Henstridge  <james@daa.com.au>
15386         * objects/custom/custom_object.c: converted to use the properties
15387         interface.  In the future, it would be nice to add support for
15388         defining custom properties for custom objects, but that can wait.
15390 2000-02-22  James Henstridge  <james@daa.com.au>
15392         * sheets/Circuit.sheet: added new circuit shapes to sheet.
15394         * plug-ins/cgm/cgm.c: cgm plugin updates from Henk Jan Priester
15395         <hj@justcroft.com>.  Fixes number encoding, colour encoding, fonts
15396         and adds a few new features.
15398 2000-02-21  Daniel Egger  <egger@suse.de>
15400         * sheets/*.sheets: Added German translations and made some
15401         corrections to the others.
15402         
15403 2000-02-21  James Henstridge  <james@daa.com.au>
15405         * shapes/Circuit/Makefile.am (SHAPES): added new shapes to list.
15407         * shapes/Circuit/...: added new shapes from Erik Janssens.
15409 2000-02-20  James Henstridge  <james@daa.com.au>
15411         * app/interface.c (create_color_area): realize the parent window
15412         first.
15414         * objects/standard/image.c: properties patch for standard image
15415         object, from Lars Clausen.
15417         * lib/properties.c: support for PROP_TYPE_FILE from Lars Clausen.
15419         * lib/properties.h (PropType): added file property type.
15421         * shapes/Circuit/speaker_de.xpm: changed size of pixmap to match
15422         other shapes.
15424         * app/interface.c: use wrap box for toolbox.
15426         * app/Makefile.am: added new files.
15428         * app/gtk*wrapbox.[ch]: added wrap box widget.
15430 2000-02-19  James Henstridge  <james@daa.com.au>
15432         * sheets/network.sheet: added extra shapes to networks sheet.
15434         * configure.in (AC_OUTPUT): added shapes/network/Makefile
15436         * shapes/network/*: added shapes that were posted to the list a while
15437         back.
15438         
15439         * shapes/Makefile.am (SUBDIRS): added network subdirectory
15441         * app/menus.c (toolbox_menu_items): don't right justify help menu for
15442         gtk+ version of menus.
15444         * app/properties.c (create_dialog): use a GnomeDialog if we happen
15445         to be using gnome.
15447 2000-02-18  James Henstridge  <james@daa.com.au>
15449         * objects/flowchart/box.c: set extra data for corner radius and text
15450         padding properties.
15452         * objects/standard/box.c: set extra data for corner radius property.
15454         * lib/properties.h: set extra data in some standard properties.
15456         * lib/properties.c (prop_get_widget): look at the extra data for
15457         int, real and enum property types.  They now use GtkSpinButton and
15458         GtkOptionMenu respectively.
15460         * lib/properties.h: extra data members for creating property setting
15461         widgets.
15463 2000-02-17  James Henstridge  <james@daa.com.au>
15465         * objects/flowchart/box.c: reverted load/save functions back to
15466         previous implementations.  Made box use standard property names.
15468         * plug-ins/cgm/cgm.c (set_linestyle): was missing a */
15470         * app/grid.c: add more digits to the grid edit dialog.  This patch
15471         was also from Lars Clausen.
15473         * objects/standard/zigzagline.c: 
15474         * objects/standard/textobj.c:
15475         * objects/standard/polyline.c:
15476         * objects/standard/line.c:
15477         * objects/standard/ellipse.c:
15478         * objects/standard/box.c: 
15479         * objects/standard/bezier.c: 
15480         * objects/standard/arc.c: patches to add properties code to standard
15481         objects.  Based on patches from Lars Clausen.  I have also removed
15482         some dead code from the files.
15484         * lib/properties.h (PROP_STD_*): define a number of standard
15485         properties.  Where appropriate, objects should include these
15486         properties in their PropDescription list.  This way, the intersection
15487         of properties of two different shapes will be greater.
15489 2000-02-14  James Henstridge  <james@daa.com.au>
15491         * objects/flowchart/box.c (box_load, box_save): use property save
15492         routines.  Make sure that any props not handled by object_load_props
15493         are loaded before calling object_load_props, or we get errors because
15494         update_data is called.
15496         * lib/properties.c (object_get_props_from_offsets): fixed an indexing
15497         error that could cause properties to be loaded incorrectly.
15498         (object_set_props_from_offsets): similar here.
15500         * lib/properties.[ch] (prop_{load,save}): functions for loading
15501         or saving a property in Dia's XML file format.
15502         (object_{load,save}_props): load or save some properties of an
15503         object.  These functions should help simplify the load/save methods
15504         of objects that implement the properties interface.
15506 2000-02-13  James Henstridge  <james@daa.com.au>
15508         * objects/flowchart/box.c: use offset code to simplify property
15509         get/set routines.
15511         * lib/element.h (ELEMENT_COMMON_PROPERTIES): standard element
15512         properties.
15513         (ELEMENT_COMMON_PROPERTIES_OFFSETS): offsets.
15515         * lib/object.h (OBJECT_COMMON_PROPERTIES): list of standard object
15516         properties.
15517         (OBJECT_COMMON_PROPERTIES_OFFSETS): the offsets of the properties.
15519         * lib/properties.[ch] (object_{get,set}_props_from_offsets): new
15520         functions 
15522 2000-02-12  Alexander Larsson  <alla@lysator.liu.se>
15524         * app/Makefile.am:
15525         Add the custom object to DIA_LIB_PATH in run_dia.sh
15527 2000-02-10  Cyrille Chepelov  <chepelov@calixo.net>
15529         * sheets/Circuit.sheet:
15530         * shapes/l_sout* (NEW):
15531         * shapes/l_outj.* (NEW): added new outputs : jump, and the power-saved
15532         variants of simple, inverted, set and reset outputs.
15533         Still to do: all Schneider/Telemecanique TSX *7 function blocks ; 
15534         probably a split of Contact and Ladder sheets. And then a major 
15535         revamping of the Contact sheet.
15537 2000-02-10  James Henstridge  <james@daa.com.au>
15539         * app/Makefile.am (dia_LDADD): don't link with libcustom_objects.
15541         * app/app_procs.c (register_all_objects): don't explicitely
15542         register the custom objects library -- let it be loaded by the
15543         normal plugin loading methods.
15545         * lib/Makefile.am (libdia_a_SOURCES): don't include custom.h here.
15547         * objects/custom/Makefile.am: build libcustom_objects as a shared
15548         library again.
15550         * objects/custom/shape_info.[ch]: don't read the description field
15551         of custom shapes.  It makes more sense to have these in the sheet
15552         file to localise the parts of dia that translators have to deal
15553         with.
15555         * objects/custom/custom_object.c (custom_object_new): do not
15556         create the sheet object for the new custom shape -- this is
15557         handled by the custom sheet code.
15559         * objects/custom/custom.c: change over to being a normal plug-in
15560         rather than being linked with the main dia executable.
15562 2000-02-09  James Henstridge  <james@daa.com.au>
15564         * sheets/Circuit.sheet: 
15565         * sheets/Flowchart.sheet: 
15566         * sheets/Contact.sheet: fixed up sheets.
15568         * objects/custom/custom_object.c (custom_object_new): set the
15569         extra ObjectType fields.
15571         * lib/sheet.c: use extra ObjectType fields when creating sheet
15572         objects.  Give a warning if <shape> tags are found in a sheet
15573         file.  Now the custom sheet code does not know about custom
15574         shapes -- they look like any other object type.
15576         * lib/object.h (ObjectType): added extra members
15578 2000-02-08  Alexander Larsson  <alla@lysator.liu.se>
15580         * app/linewidth_area.c:
15581         Added code to set arbitrary line width.
15582         Patch by Lars Clausen <lrclause@cs.uiuc.edu>
15584 2000-02-08  Alexander Larsson  <alla@lysator.liu.se>
15586         * app/linewidth_area.c: 
15587         * lib/font.[ch]:
15588         Add support for font-sucking.
15589         Implementation borrowed from gnome-canvas.
15590         
15591         * app/render_libart.[ch]:
15592         Implement text rendering.
15594 2000-02-07  Alexander Larsson  <alla@lysator.liu.se>
15596         * app/properties.c (create_dialog):
15597         ref and sink no_properties_dialog.
15599 2000-02-07  James Henstridge  <james@daa.com.au>
15601         * app/group.c (group_describe_props): new function.  Return the
15602         intersection of the properties of the contained objects that
15603         implement the describe_props interface.
15604         (group_get_props): implement by iterating through contained objects
15605         and calling their get_props method until all properties have been
15606         set.  Maybe this should go through all objects all the time??
15607         (group_set_props): implement by calling set_props method on all
15608         contained objects.
15609         (group_ops): use standard props dialog creation routines.
15611         * lib/properties.c (prop_desc_lists_intersection): fix implementation
15612         of intersection -- I was using i++ instead of i-- in a for loop :(
15614         * objects/custom/custom.c (custom_register_objects): fix usage
15615         of dia_get_data_directory again.
15617         * lib/sheet.c: fix up use of dia_get_data_directory, so that we
15618         actually read the sheets.
15620 2000-02-06  Alexander Larsson  <alla@lysator.liu.se>
15622         Win32 port by Hans Breuer <Hans@Breuer.org>
15624         * app/Makefile.am:
15625         Remove DATADIR and LIBDIR defines.
15627         * lib/Makefile.am:
15628         Add dia_dirs.c and dia_dirs.h
15629         Added DATADIR and LIBDIR defines.
15631         * lib/dia_dirs.[ch]:
15632         New files for handling special directories.
15634         * app/app_procs.c:
15635         * app/commands.c:
15636         * lib/sheet.c:
15637         * objects/custom/custom.c:
15638         Fix warnings.  Use directory functions.
15640         * app/diagram.h:
15641         Add prototype for diagram_redraw_all.
15643         * app/diaunitspinner.c:
15644         * app/filedlg.c:
15645         * app/interface.c:
15646         * app/preferences.c:
15647         Fix warning.
15649         * app/load_save.c:
15650         Win32 doesn't have mkstemp and fchmod.
15652         * app/paginate_psprint.c:
15653         Win32 calls popen _popen and pclose _pclose.
15654         
15655         * app/arrow.c:
15656         Win32 calls finite _finite.
15658         * lib/color.h:
15659         Win32 needs to dllexport the color vars.
15661         * objects/GRAFCET/step.c:
15662         * objects/chronogram/chronoref.c:
15663         snprintf -> g_snprintf
15665 2000-02-05  James Henstridge  <james@daa.com.au>
15667         * lib/properties.c: more fixes so that it doesn't crash when using
15668         properties.  The undo/redo stuff also works!!
15670         * objects/flowchart/box.c (box_{describe, get, set}_props): test
15671         object where I have implemented the new properties interface
15672         complete with automatic properties dialog generation.
15674         * lib/properties.c (object_apply_props): fixed stupid error when
15675         creating the old_props array.  Also, it no longer frees the props
15676         array -- you will have to do that yourself.
15678 2000-02-04  James Henstridge  <james@daa.com.au>
15680         * app/properties.c (properties_apply): pass object_part to
15681         apply_properties.
15683         * lib/object.h (ApplyPropertiesFunc): added widget argument.
15685         * lib/lazyprops.h (PROPDLG_CREATE): ref and sink properties dialogs
15686         created this way as well.
15688         * objects/*/*.c: ref and sink the properties dialog window for each
15689         widget.  It can't rely on ref count being incremented by
15690         properties_show anymore.
15692         * app/properties.c (properties_show): don't ref the widget before
15693         removing it, or its ref count will increase each time you open the
15694         properties dialog.  Don't unparent the widget, as container_remove
15695         does that for us.
15697         * lib/object.h: fixed up prototypes for new object methods.
15699         * lib/properties.[ch]: added functions for automatically creating
15700         a properties dialog from the output of describe_props, get_props and
15701         set_props.
15702         (object_apply_props): apply properties and return an ObjectChange
15703         structure that can be used for undo.
15705 2000-02-03  Cyrille Chepelov  <chepelov@calixo.net>
15707         * objects/GRAFCET/transition.c: minor leak plugged.
15709         * sheets/GRAFCET.sheet:
15710         * objects/GRAFCET/pixmaps/condition.xpm: (NEW)
15711         * objects/GRAFCET/condition.c: (NEW) added a new object type, action 
15712         conditions.
15713         * objects/GRAFCET/Makefile.am: fixed incorrect dependencies, added
15714         new ones (for condition.c).
15715         * objects/GRAFCET/action.c: added connection points for the conditions.
15716         * samples/grafcet.dia: updated the sample to improve conformance to
15717         IEC 848 and take advantage of dia's new features.
15718         
15719         * lib/geometry.h: (point_get_normed) fixed a typo.
15721 2000-02-02  James Henstridge  <james@daa.com.au>
15723         * lib/object.h: added object functions describe_props, get_props and
15724         set_props.  Do type definitions so that object.h doesn't need to
15725         include properties.h, since properties.h includes object.h.
15727         * lib/properties.[ch]: more hacking.
15729         * po/de.po: updated po file.
15731 2000-01-30  James Henstridge  <james@daa.com.au>
15733         * configure.in: don't add flags to CFLAGS unconditionally.  Instead,
15734         check to see if the C compiler accepts the flag beforehand.
15736         * lib/properties.[ch]: start of properties code.
15738         * shapes/Contact/Makefile.am (SHAPES): fix up makefile.
15740 2000-01-30  Cyrille Chepelov  <chepelov@calixo.net>
15741         
15742         * sheets/GRAFCET.sheet:
15743         * sheets/GRAFCET/etapemc.xpm: (NEW)
15744         * sheets/GRAFCET/etapesp.xpm: (NEW)
15745         * objects/GRAFCET/step.c: Added the macro and
15746         sub-program call step types.
15748         * objects/GRAFCET/receptivity.[ch]: renamed to 
15749         objects/GRAFCET/boolequation.[ch]. 
15750         * objects/GRAFCET/transition.c: changed (Receptivity *) to 
15751         (BoolEquation *)
15753         * lib/connpoint_line.[ch]: 
15754         * objects/chronogram/chronoline.c:
15755         * objects/chronogram/chronoref.c:
15756         * objects/GRAFCET/vergent.c:
15757         * objects/standard/line.c:
15758         * objects/SADT/box.c: Minor CPL interface changes, factored out the
15759         point count adjustment code into the CPL object.
15760         
15761 2000-01-29  Alexander Larsson  <alla@lysator.liu.se>
15763         * app/render_libart.c:
15764         Added support for images and bezier curves.
15765         Only text/fonts missing now.
15767         * app/render_gdk.c:
15768         Removed old erronous comment.
15770 2000-01-29  Cyrille Chepelov <chepelov@calixo.net>
15772         * objects/chronogram/chronoline_event.c: removed references to
15773         lround(). Please don't insist, I'm already red of shame.
15774         
15775 2000-01-29  Alexander Larsson  <alla@lysator.liu.se>
15777         * app/render_libart.[ch]:
15778         * app/Makefile.am:
15779         Non-finished libart renderer.
15781         * acconfig.h:
15782         Added HAVE_LIBART flag
15784         * configure.in:
15785         Added libart probe
15787         * app/app_procs.c:
15788         Call gdk_rbg_init().
15790         * app/connectionpoint_ops.c:
15791         * app/disp_callbacks.c:
15792         * app/grid.c:
15793         * app/handle_ops.c:
15794         * app/magnify.c:
15795         * app/modify_tool.c:
15796         Change ddisp->renderer type from RendererGdk * to Renderer *
15797         Draw zoom and select rects in ddisp->canvas->window instead
15798         of ddisp->renderer->renderer->pixmap.
15800         * app/display.[ch]:
15801         Add aa_renderer to DDisplay, and  support for it.
15802         New function ddisplay_set_renderer() for changing renderer.
15803         Add ddisplay_transform_coords_double() function, used by aa renderer.
15804         Change ddisp->renderer type from RendererGdk * to Renderer *
15806         * app/menus.c:
15807         Add antialias to menu.
15808         
15809         * app/commands.[ch]:
15810         add view_aa_callback function
15811         Change ddisp->renderer type from RendererGdk * to Renderer *
15813         * lib/geometry.[ch]:
15814         Added IntRectangle and int_rectangle_union.
15816 2000-01-28  James Henstridge  <james@daa.com.au>
15818         * app/commands.h: removed prototypes.
15820         * app/commands.c: removed the functions that have been moved to
15821         filedlg.c.
15823         * app/filedlg.h: added new prototypes.
15825         * app/filedlg.c (file_open_callback): move open dialog to this
15826         file.  This implementation should remember the current directory
15827         between file loads.
15828         (file_save_as_callback): moved this dialog as well.
15829         (file_save_callback): moved this function here.
15831         * app/paginate_psprint.c (paginate_psprint): if not in fit to mode,
15832         align page boundaries to the origin.
15834         * app/diagram.c (diagram_update_extents): redraw the diagram if the
15835         scaling factor changes while updating the extents.  This is so the
15836         page breaks get redrawn correctly.
15838         * app/pagesetup.c (pagesetup_apply): added diagram_flush call when
15839         applying changes.
15841         * app/grid.c (grid_draw): draw page breaks as well as grid lines.
15842         For normal mode, use (0,0) as the origin.  For `fit to' mode, use
15843         the corner of the bounding box.
15845         * app/pagesetup.c (create_page_setup_dlg): load new paper attributes
15846         into page setup dialog.
15847         (pagesetup_apply): apply new `fit to' attributes to the diagram.
15849         * app/load_save.c (diagram_load): load new paper `fit to' attributes.
15850         (diagram_data_save): save `fit to' data.
15852         * lib/diagramdata.c (new_diagram_data): initialise `fit to' members.
15853         (data_update_extents): when in `fit to' mode, update scale factor
15854         when we update the extents.
15856         * lib/diagramdata.h (PaperInfo): added `fit to' members to PaperInfo
15857         structure.
15859         * .../.cvsignore: added some cvsignore files to quieten cvs.
15860         
15861         * app/pagesetup.c (pagesetup_changed): added code to change the
15862         scaling/fit to values as you change the options in the page setup
15863         dialog.  I haven't added code so that the fit to options are saved
15864         though.
15866         * app/diapagelayout.[ch]: changed the scaling portion of the widget
15867         to make it easier to set a `fit to' style scaling factor.
15869 2000-01-27 Cyrille Chepelov <chepelov@calixo.net>
15870         * lib/neworth_conn.[ch]: (NEW) Temporary (hopefully) fork of orth_conn,
15871         but connpoint_line-based, so that there's a connection point at the 
15872         middle of each segment. Currently only the SADT arrow uses this.
15874         * objects/SADT/* (NEW): SADT (both idf0 and idf1) support.
15875         
15876 2000-01-26 Cyrille Chepelov <chepelov@calixo.net>
15877         * lib/lazyprops.[ch]:(NEW) Added a bunch of macros for loading, 
15878         saving and editing of properties (and default properties). 
15879         See the new objects (GRAFCET, SADT, chonograms) for examples.
15880         For already too hairy stuff, see objects/chronogram/chronoline.c.
15882         * lib/connpoint_line.[ch] (NEW): This subobject manages a line of 
15883         evenly spaced connection points, which the user can add or remove at
15884         will. An object can own several connection point lines. See the SADT
15885         Box, or the GRAFCET vergents for examples.
15887         * lib/dummy_dep.h: added dependencies to new files. Told gcc to keep 
15888         quiet about unused stuff.
15890         * objects/GRAFCET (NEW):
15891         * samples/grafcet.dia (NEW):
15892         Added support for GRAFCET charts. 
15894         * objects/chronogram (NEW):
15895         * samples/chronograms.dia (NEW):
15896         Added support for chronograms (feature requested by Ronald L. Chichest;
15897         I found I'd use it often, too).
15899         * objects/standard/line.c: Replace the middle connectionpoint by 
15900         a whole connection point line, which defaults to one point (hint, 
15901         hint). New Line object menu to take advantage of this. 
15902         "Bothwards" compatibility is preserved (although you may loose 
15903         connections if you load a newer file in a older dia).
15905         * app/lineprops_area.c:
15906         * lib/arrows.[ch]:
15907         * lib/widgets.c: Added hollow and filled ellipse arrow head type. 
15908         (feature requested by Benjamin Kahn).
15909         Merged in Steffen Macke's slashed arrow head type.
15911         * app/Makefile.am (app/run_dia.sh actually):
15912         Added $DEBUGGER in front of dia's invocation, so that
15913         you can call "DEBUGGER=ddd app/run_dia.sh" (maybe naive, but useful).
15914         Added $(EFENCE) to app/dia's LDFLAGS, so that you can do 
15915         "EFENCE=-lefence" to link with Electric Fence.
15917         * configure.in: Made gcc do more aggressive optimisations on i386, and
15918         enabled warnings.
15919         
15920 2000-01-24  James Henstridge  <james@daa.com.au>
15922         * lib/geometry.[ch]: added inline versions of functions.  Used
15923         glib's G_INLINE_FUNC stuff, so it should still work on systems
15924         without inline funcs.
15926         * plug-ins/cgm/cgm.c (draw_ellipse, fill_ellipse): fixed up so that
15927         it outputs the correct element id for the ellipse objects.
15929 2000-01-24 Cyrille Chepelov <chepelov@calixo.net>
15931         * lib/object.[ch]: added object_add_connectionpoint_at, similar to
15932         object_add_handle_at. Message typo fixed.
15933         
15934         * lib/sheet.c (load_register_sheet):
15935         potential bug fixed (warning hunt).
15937         * objects/custom/custom.c (custom_object_load): disabled an assertion
15938         which made dia abort upon failure to load a shape file. Fixed a
15939         subsequent crash. 
15941         * objects/custom/shape_info.c (load_shape_info): Made the custom 
15942         shape load code ignore XML comments between <?xml ...?> and the 
15943         root object (mostly useful to put the emacs magic comments).
15944         
15945         * app/load_save.c: Made dia do backup copies of files when saving,
15946         and complain in case of failure.
15948 2000-01-24  Cyrille Chepelov  <chepelov@calixo.net>
15950         * AUTHORS: fixed my address (ISP thought it was a great idea to change
15951         the domain name)
15952         
15953         * configure.in:
15954         * shapes/Contact:
15955         * shapes/Contact/*:
15956         * sheets/Contact.sheet:
15957         * sheets/Makefile.am:
15958         Added support for Contact and LADDER charts.
15960         * dia.desktop: Added a French translation.
15961         
15962 2000-01-23  James Henstridge  <james@daa.com.au>
15964         * app/commands.c (help_about_callback): don't die if can't load
15965         logo image.
15967         * app/render_gdk.c (bezier_add_lines): sanity check to try to weed
15968         out NaN's when performing bezier curve subdivision.
15970         * objects/custom/custom_object.c: initialise memory of Custom structs
15971         to zero.
15973         * app/render_svg.c (draw_image): added image support to the XML
15974         output filter.  The image is just referenced, rather than being
15975         included inline, so if you copy the SVG file somewhere else, you
15976         may need to move the images or fix up the links.
15978         * plug-ins/cgm/cgm.c (draw_string): output a text colour element,
15979         so the text is not just displayed in black all the time.
15981 2000-01-15  Fredrik Hallenberg  <hallon@lysator.liu.se>
15983         * configure.in: fixed libpopt test so we wont try to build with
15984         too old libpopt.
15986 1999-12-18  Yuri Syrota  <rasta@renome.rovno.ua>
15988         * configure.in: Added "uk" to ALL_LINGUAS.
15990 1999-12-24  James Henstridge  <james@daa.com.au>
15992         * po/ru.po: updated russian translation from Valek Filippov.
15993         
15994         * app/render_svg.c (new_svg_renderer): make output use 19991203
15995         version of SVG DTD.  Use viewBox to set the extents of the view.
15997         * INSTALL (FONTS): updated locations of gnome-xml and imlib.  List
15998         ftp.gnome.org as the download.
16000         * TODO (TODO): weeded out completed todo items and added a few extra.
16002         * Makefile.am (EXTRA_DIST): added documentation to EXTRA_DIST.
16004         * doc/sheet.dtd: first stab at a DTD for the sheet files.  It would
16005         be good to get rid of the object/shape distinction and separate
16006         the custom shape code out from the main application.
16008         * objects/custom/README, diagram.dtd: moved to new doc directory.
16009         Renamed the custom shapes README to custom-shapes.  Also updated
16010         custom shape docs a bit and removed the section on sheet files, as
16011         that has changed a bit.
16013         * plug-ins/cgm/cgm.c (draw_image): give an error if the row length
16014         of the image data is larger than the maximum cell array.  I should
16015         add code to break scan lines down further in this case, but for now
16016         an error message is better than an infinite loop.
16018         * app/filedlg.c (file_export_ok_callback): show a dialog if we
16019         couldn't determine the export filter to use.
16021         * app/commands.c (help_about_callback): fixed up about box logo
16022         expose bug.  Now just use a GtkPixmap widget rather than a
16023         GtkDrawingArea and calling gdk_imlib_paste_image.
16025         * app/Makefile.am (EXTRA_DIST): added print stuff to extra dist,
16026         because automake does not always get things right.
16028         * configure.in: updated version number to 0.83.
16030         * app/preferences.c (prefs_save): 
16031         * app/render_svg.c (new_svg_renderer): "wt" is not a valid flag string
16032         for fopen.  Text is the default file mode anyway.
16034         * app/commands.c (file_save_as_dialog_ok_callback, file_new_callback): 
16035         * app/grid.c (grid_x_update, grid_y_update, grid_show_dialog): 
16036         * app/load_save.c (write_objects, write_connections): 
16037         * app/filedlg.c (file_export_ok_callback): 
16038         * lib/dia_xml.c (data_add_int, data_add_enum, data_add_real): 
16039         * lib/dia_xml.c (data_add_point, data_add_rectangle): 
16040         * lib/font.c (init_x11_font, font_get_gdkfont): changed calls to
16041         snprintf to calls to g_snprintf.
16043         * plug-ins/cgm/cgm.c (export_cgm): write the original dia file name
16044         as the picture name.
16046 1999-12-23  James Henstridge  <james@daa.com.au>
16048         * plug-ins/cgm/cgm.c (write_int32, write_int16): fixed up output of
16049         negative numbers.  This fixes the upside down text problem I was
16050         having previously.
16051         (draw_image): implemented the image code.  It will try to split the
16052         image data up into bands if it is too big to fit into a single
16053         cgm cell array element.  It will have problems if you try to insert
16054         an image wider than about 10,000 pixels though.
16056         * Makefile.am: use gnomedatadir for the files that need to be
16057         installed in gnome's datadir.  This is mainly to help people doing
16058         packages for weird setups.
16060 1999-12-22  James Henstridge  <james@daa.com.au>
16062         * plug-ins/cgm/cgm.c: added support for text.  Now only images and
16063         beziers are left to do.  The text seems to be the wrong way up
16064         still.  This is probably a problem with character orientation
16065         element, but I have used what the settings given in the standard.
16066         Other than this, the CGMs dia produces are readable (and displayable)
16067         by ralcgm and corel draw.
16068         (draw_string): subtract from the X coord rather than the Y coord for
16069         center and right aligned text.
16071         * plug-ins/cgm/cgm.c: a few fixups for the output.  Use REALSIZE as
16072         the size of a real number, and changed name of write_double to
16073         write_real.  Consider changing to fixed real encoding.  Also, now
16074         all element headers are correct.  Once the real number encoding is
16075         fixed, only text, beziers and images are left to do.
16077 1999-12-21  James Henstridge  <james@daa.com.au>
16079         * Makefile.am (SUBDIRS): recurse into plug-ins.
16081         * configure.in: add plug-ins directory makefiles to list.
16083         * plug-ins/cgm/cgm.c: start of cgm export filter.  Beziers and text
16084         not done yet.  Also, the output files are not quite correct.
16086         * app/render_eps.c (print_reencode_font): don't reencode the Symbol
16087         font.  It doesn't work if you do.
16089 1999-12-20  James Henstridge  <james@daa.com.au>
16091         * app/app_procs.c (app_init): don't use diagram_export_to_eps to
16092         export the files.  Instead, use filter_guess_export_filter to
16093         guess the correct format to save in and use the appropriate filter.
16094         It defaults to postscript for compatibility.
16096         * app/diagram.[ch] (diagram_export_to_eps): removed export to eps
16097         function.
16099         * app/commands.[ch]: removed export to eps functions.
16101         * app/menus.c: removed export to eps menu items.
16103         * app/app_procs.c: register new export filters.
16105         * app/load_save.[ch]: define dia native export filter.
16107         * app/render_eps.[ch]: define eps export filter.
16109         * lib/filter.h: added diafilename argument to the DiaExportFunc
16110         prototype.  This is useful for putting the source of the diagram
16111         into the output file for instance.
16113         * app/app_procs.c (app_init): register the SVG export filter.  Have
16114         to get EPS code converted to this API, and maybe also allow saving in
16115         DIA's native format from the export dialog.  In fact, it is now
16116         possible to load an export filter from a shared library and it will
16117         integrate into the interface correctly.
16119         * app/menus.c: removed references to the SVG renderer.
16121         * app/commands.[ch]: removed svg stuff.
16123         * app/diagram.[ch]: removed diagram_export_to_svg function.
16125         * app/render_svg.[ch]: added a DiaExportFilter structure for this
16126         renderer.
16128         * app/filedlg.[ch]: code for the new export diagram dialog.  Will
16129         probably move the open/save dialogs to this file as well.
16131 1999-12-19  James Henstridge  <james@daa.com.au>
16133         * lib/filter.[ch]: start of interface for generalised handling of
16134         filters.  I have only done code for export filters so far.  I still
16135         need to do the gui for this, and convert the current SVG and EPS
16136         filters to the new API.
16138         * lib/bezier_conn.c (bezierconn_copy): fix up copy operation.  We
16139         weren't setting the last handle correctly.  It was actually assigning
16140         to the wrong position in the handles array, so the last handle was
16141         left as NULL, which caused the segfault.
16143         * objects/standard/image.c (image_copy): modified routine so that
16144         it just adds a reference to the DiaImage structure in the new image
16145         object.  This seems to have cleared up the problems with copying
16146         image objects.
16148         * dia.spec: spec file additions from John Gotts.
16150 1999-12-12  James Henstridge  <james@daa.com.au>
16152         * configure.in (GNOME_LIBS): updated version number to 0.82.  0.82
16153         has not been released yet though.
16155         * Makefile.am (EXTRA_DIST): distribute diagram.dtd.
16157         
16158         The following based on a patch from Lars Clausen:
16159         
16160         * objects/standard/bezier.c (bezierline_move_handle): when performing
16161         the initial drag of the bezierline, move the control points to keep
16162         the line straight.
16164         * lib/bezier_conn.c (bezierconn_add_segment): when adding a segment,
16165         make the new control points a bit closer to the major point.
16167         * app/create_object.c (create_object_motion): use HANDLE_MOVE_CREATE
16168         as the reason for the move.
16169         (create_object_button_release): use HANDLE_MOVE_CREATE_FINAL as the
16170         move reason.
16172         * lib/handle.h: new handle move reasons.
16174 1999-12-09  James Henstridge  <james@daa.com.au>
16176         * dia.spec: include the new files in RPMs.
16178         * Makefile.am: install these new files.
16180         * dia.keys.in: file describing actions and icon for dia diagrams for
16181         use in the gnome file manager.
16182         
16183         * dia.mime: a file defining the application/x-dia-diagram mime type.
16184         
16185         * dia-diagram.png: an icon for dia diagrams.
16187 1999-12-08  James Henstridge  <james@daa.com.au>
16189         * plug-ins/python/pydia-diagram.c: added heaps of new methods.
16191         * plug-ins/python/pydia-display.[ch]: wrapper for display.
16193         * objects/standard/ellipse.c: applied Lars's patch to optionally not
16194         draw the background of the ellipse.
16196         * app/load_save.c (read_connections): do some sanity checking on the
16197         handle and connection point numbers before performing the object
16198         connection.
16200         * lib/bezier_conn.c (bezierconn_load): give the correct number of
16201         handles when loading a BezierConn.
16203 1999-12-07  Kjartan Maraas  <kmaraas@online.no>
16205         * sheets/*.sheet: Finished Norwegian translations.
16206         
16207 1999-12-07  James Henstridge  <james@daa.com.au>
16209         * plug-ins/python/diamodule.c (PyDia_Load): load diagram function.
16210         (PyDia_GetObjectType): find object type function.
16212         * plug-ins/python/pydia-diagram.c (PyDiaDiagram_Save): added a save
16213         method for diagrams.
16215         * plug-ins/python/pydia-object.c: added methods for DiaObject and
16216         DiaObjectType.
16218         * AUTHORS: added Lars and Cyrille to the authors file.
16220         * objects/standard/bezier.c (bezierline_add_segment_callback): place
16221         new point correctly.
16223         * lib/bezier_conn.h (bezierconn_closest_segment): fixed prototype.
16225         * lib/bezier_conn.c: applied Lars's patch for placement of the new
16226         point when adding a segment to a BezierConn.
16228 1999-12-06  James Henstridge  <james@daa.com.au>
16230         * plug-ins/python/test.py: test script for the python plug-in.
16232         * plug-ins/python/python.c: this file contains the plug-in startup
16233         code for the python plugin.  Right now, it just initialises the
16234         dia module and executes a script.
16236         * objects/standard/polyline.c (polyline_draw): fix start arrow size.
16238         * objects/standard/bezier.c (bezierline_draw): draw control lines for
16239         bezier curve if we are using an interactive renderer (ie. only if
16240         displaying to the screen).
16242         * lib/bezier_conn.[ch] (bezierconn_draw_control_lines): function
16243         to draw control lines on to a bezier curve.  Based on implementation
16244         from Lars.
16246         * objects/standard/bezier.c (bezierline_delete_segment_callback):
16247         calculate segment number using closest_segment rather than
16248         closest_handle.  Sometimes the closest handle is part of a different
16249         segment.
16250         (bezierline_draw): use correct size for start arrow.
16252         The next few entries are from Peter Moulder <reiter@netspace.net.au>:
16253         * lib/geometry.c (distance_line_point): added notes to documentation
16254         in comment.
16255         * app/object_ops.c (object_list_align_v): 
16256         (object_list_align_h): fix of by one error when calculating free space
16257         for equal distance alignment.
16258         * app/menus.c (objects_align_h, objects_align_v): include align
16259         adjacent menu items in the gnome version of the menus.
16260         * app/diagram.c (diagram_update_menu_sensitivity): set sensitivity on
16261         align adjacent menu items correctly.
16264         * lib/dummy_dep.h (dummy_dep): added bezierconn to dummy dependency
16265         table.
16267         * objects/standard/bezier.c: converted bezierline to use BezierConn.
16268         Still a few bugs.  It crashes on deleting line segments.
16270         * lib/Makefile.am (libdia_a_SOURCES): added BezierConn to libdia.
16272 1999-12-05  James Henstridge  <james@daa.com.au>
16274         * lib/bezier_conn.[ch]: start of BezierConn object
16276         * app/interface.c: add bezierline to toolbox.
16278         * objects/standard/standard.c: initialise bezierline.
16280         * objects/standard/bezier.c: new object from Lars R. Clausen.  I have
16281         made a few modifications to get it working nicely.  It still needs
16282         a bit of work though.  Maybe create a BezierConn object in lib.
16284 1999-12-02  James Henstridge  <james@daa.com.au>
16286         * plug-ins/python/pydia-*.c: fixed compile errors in these files.
16287         
16288         * plug-ins/python/Makefile.am: tried building everything.  It is
16289         building as a library at the moment.  I will have to convert it
16290         to a libtool library and add some initialisation code.
16291         
16292         * plug-ins/python/diamodule.c: start of the dia module, using the
16293         other object wrappers.  Not complete.
16295 1999-12-01  James Henstridge  <james@daa.com.au>
16297         * plug-ins/python/pydia-object.c (PyDiaObject_GetAttr): implement
16298         the handles and connections attributes.
16300         * plug-ins/python/pydia-layer.c: added functions that use
16301         ConnectionPoint's.
16303         * plug-ins/python/pydia-handle.[ch]: wrapper for Handle's.
16305         * plug-ins/python/pydia-cpoint.[ch]: wrapper for ConnectionPoint's.
16307         * plug-ins/python/pydia-*.[ch]: starts of python scripting plug-in.
16308         I am currently wrapping the basic elements in the diagram in python
16309         objects -- nothing to see or play with yet.
16311 1999-11-30  Alexander Larsson  <alla@lysator.liu.se>
16313         * AUTHORS:
16314         * HACKING:
16315         James Henstridge <james@daa.com.au> is now the maintainer of Dia.
16317 1999-11-29  Alexander Larsson  <alla@lysator.liu.se>
16319         * configure.in:
16320         * po/ru.po:
16321         Added russian translation from Valek Filippov <frob@df.ru>
16323 1999-11-24  James Henstridge  <james@daa.com.au>
16325         * sheets/UML/*: 
16326         * sheet/ER/*: moved extra sheet pixmaps back to separate dirs as
16327         discussed with Alex.  Also added extra makefiles so that make install
16328         works correctly.
16330 1999-11-23  Alexander Larsson  <alla@lysator.liu.se>
16332         * app/preferences.[ch]:
16333         * app/display.c:
16334         Added snap to grid preference.
16335         Patch from Michael Leslie <mles@springboardwireless.com>
16337 1999-11-21  Alexander Larsson  <alla@lysator.liu.se>
16339         * app/load_save.c:
16340         * lib/dia_xml.c:
16341         * lib/sheet.c:
16342         * lib/text.c:
16343         * objects/custom/shape_info.c:
16344         All strings returned by libxml must be freed with free, not
16345         g_free, or there will be problems if you use memory debugging
16346         in glib.
16347         
16348 1999-11-21  Alexander Larsson  <alla@lysator.liu.se>
16350         * app/create_object.[ch]:
16351         * app/menus.c:
16352         * app/tool.[ch]:
16353         * app/commands.[ch]:
16354         * app/pixmaps.h:
16355         * app/interface.[ch]:
16356         Reverted the tool menu patch. It has some 'issues'.
16357         I liked it though, so it'll probably return.
16359 1999-11-21  Alexander Larsson  <alla@lysator.liu.se>
16361         Fixed a lot of memory leaks. Thanks to Bruce Mitchener
16362         <bruce@cybersight.com> for some purify runs and analysis.
16363         Also a great thank you to Owen Taylor for creating MemProf, a
16364         free memory leak detector that was used to find and verify a
16365         lot of these fixes.
16366         
16367         * app/diagram.c:
16368         * app/paginate_psprint.c:
16369         * app/render_eps.[ch]:
16370         * app/render_svg.[ch]:
16371         Free renderers.
16373         * app/interface.c:
16374         Don't add a reference to ddisp->shell. Why was this done in
16375         the first place?
16377         * app/load_save.c:
16378         * lib/dia_xml.c:
16379         * lib/sheet.c:
16380         * lib/text.c:
16381         Free all strings returned from xmlGetProp
16383         * app/modify_tool.c:
16384         Plug leak.
16386         * objects/custom/custom.c:
16387         Use closedir() after opendir().
16389         * objects/custom/shape_info.c:
16390         User g_free() instead of "if (tmp) free(tmp)".
16392         * sheets/ER.sheet:
16393         Add newline at end of file.
16394         
16396 1999-11-20  Alexander Larsson  <alla@lysator.liu.se>
16398         Based on patch from Patrick Reynolds <reynolds@cs.duke.edu>
16399         Adds tool menu and keyboard shortcuts.
16401         * app/create_object.[ch]:
16402         Use tool_set() instead of tool_reset().
16403         create_create_object_tool() takes extra type argument
16405         * menus.c:
16406         Add tools menu.
16407         
16408         * tool.[ch]:
16409         Moved tool_data here, export it.
16410         Add separate tool type for all create objects tools.
16411         new functions tool_set().
16413         * commands.[ch]:
16414         New callback tool_set_callback.
16416         * pixmaps.h:
16417         Moved some pixmaps to interface.c.
16418         
16419         * interface.[ch]:
16420         Remove tool_data array (moved to tool.c).
16421         Use the tool_data from tool.c.
16422         Remove modify_tool_button global var.
16423         
16424 1999-11-20  Alexander Larsson  <alla@lysator.liu.se>
16426         Patch from Patrick Reynolds <reynolds@cs.duke.edu>
16427         
16428         * app/app_procs.c:
16429         Interprets command-line arguments as files to open even when
16430         HAVE_POPT is not defined.
16432         * app/magnify.c:        
16433         Shift-clicking when zooming zooms out, like the Gimp.
16435         * app/menus.c:
16436         Has hotkeys for zoom-100% and snap-to-grid.
16438 1999-11-17  James Henstridge  <james@daa.com.au>
16440         * app/scroll_tool.c (scroll_motion): fixed shift style scrolling so
16441         that it is not jumpy.
16443         * app/Makefile.am (EXTRA_DIST): added extra files to extra dist list.
16445         * app/scroll_tool.c (scroll_motion): added `grabbing hand' type
16446         scrolling by pressing the shift key when using the scroll tool.
16448         * sheets/Makefile.am: fixed makefile so that install actually works
16449         if the directories $(pkgdatadir)/sheets/UML and $(pkgdatadir)/sheets/ER
16450         don't exist.
16451         (SHEETS): install Circuit.sheet
16453 1999-11-15  Alexander Larsson  <alla@lysator.liu.se>
16454         Patch from Cyrille Chepelov <chepelov@rmcnet.fr>
16456         * sheets/Circuit.sheet:
16457         * sheets/ER.sheet:
16458         * sheets/FS.sheet:
16459         * sheets/Flowchart.sheet:
16460         * sheets/UML.sheet:
16461         * sheets/network.sheet:
16462         * sheets/sybase.sheet:
16463         Changed name space
16465         * sheets/Circuit.sheet:
16466         added some missing French translations
16468         * lib/sheet.c:
16469         killed the temporary sheet namespace
16471         * objects/custom/custom.c:
16472         obsolete comment cleaned up
16474 1999-11-12  Alexander Larsson  <alla@lysator.liu.se>
16476         * configure.in:
16477         * po/pt.po:
16478         Added portugese translation from Pedro Morais
16479         <pmmm@rnl.ist.utl.pt>
16481 1999-11-11  Alexander Larsson  <alla@lysator.liu.se>
16483         Changed all sheets to be specified in xml.
16484         All sheet objects removed from the C code.
16485         Patch from Cyrille Chepelov <chepelov@rmcnet.fr>
16486         
16487         * Makefile.am:
16488         * configure.in:
16489         Adding shapes dir.
16490         Updated version to 0.81cvs.
16491         
16492         * app/Makefile.am:
16493         Update run_dia.sh with sheet-dir.
16494         
16495         * app/app_procs.c:
16496         Load all sheets on startup.
16497         Create sheet directory first time.
16498         Don't call custom_register_sheets().
16500         * lib/Makefile.am:
16501         Add sheetdir define
16503         * lib/custom.h:
16504         Remove custom_register_sheets().
16506         * lib/sheet.[ch]:
16507         Add sheet loading code.
16509         * sheet/Circuit.sheet:
16510         * sheet/ER.sheet:
16511         * sheet/FS.sheet:
16512         * sheet/Flowchart.sheet:
16513         * sheet/UML.sheet:
16514         * sheet/network.sheet:
16515         * sheet/sybase.sheet:
16516         Added sheet files.
16518         * sheet/ER/weakentity.xpm:
16519         * sheet/UML/aggregation.xpm
16520         * sheet/UML/umlclass_template.xpm
16521         Added sheet pixmaps.
16522         These are moved from their old places.
16524         * sheet/.cvsignore:
16525         Shut up cvs.
16527         * objects/*/*.c:
16528         Removed sheet objects and sheet registration.
16529         
16530         * objects/ER/Makefile.am:
16531         * objects/ER/pixmaps/weakentity.xpm:
16532         * objects/UML/Makefile.am:
16533         * objects/UML/pixmaps/aggregation.xpm:
16534         * objects/UML/pixmaps/umlclass_template.xpm:
16535         Removed alternative pixmaps. (Moved to sheet).
16537         * objects/custom/Makefile.am:
16538         * objects/custom/load_sheet.[ch]:
16539         Removed old sheet loading code.
16540         
16541         * objects/custom/custom.c:
16542         Load all shapes instead of sheets.
16543         Removed custom_register_sheets().
16545         * objects/custom/custom_object.c:
16546         Added debug code.
16548         * objects/custom/shape_info.[ch]:
16549         Added shape_info_getbyname().
16551         * objects/flowchart/Makefile.am:
16552         * objects/flowchart/collate.shape            
16553         * objects/flowchart/delay.shape              
16554         * objects/flowchart/display.shape            
16555         * objects/flowchart/document.shape           
16556         * objects/flowchart/extract.shape            
16557         * objects/flowchart/flowchart.c              
16558         * objects/flowchart/intstorage.shape         
16559         * objects/flowchart/magdisk.shape            
16560         * objects/flowchart/magdrum.shape            
16561         * objects/flowchart/magtape.shape            
16562         * objects/flowchart/manualinput.shape        
16563         * objects/flowchart/manualop.shape           
16564         * objects/flowchart/merge.shape              
16565         * objects/flowchart/offlinestore.shape       
16566         * objects/flowchart/offpageconn.shape        
16567         * objects/flowchart/or.shape                 
16568         * objects/flowchart/predefdproc.shape        
16569         * objects/flowchart/preparation.shape        
16570         * objects/flowchart/punchedcard.shape        
16571         * objects/flowchart/punchedtape.shape        
16572         * objects/flowchart/sort.shape               
16573         * objects/flowchart/sumjunction.shape        
16574         * objects/flowchart/terminal.shape           
16575         * objects/flowchart/transaction.shape        
16576         * objects/flowchart/transmittape.shape       
16577         * objects/flowchart/pixmaps/collate.xpm      
16578         * objects/flowchart/pixmaps/delay.xpm        
16579         * objects/flowchart/pixmaps/display.xpm      
16580         * objects/flowchart/pixmaps/document.xpm     
16581         * objects/flowchart/pixmaps/extract.xpm      
16582         * objects/flowchart/pixmaps/intstorage.xpm   
16583         * objects/flowchart/pixmaps/magdisk.xpm      
16584         * objects/flowchart/pixmaps/magdrum.xpm      
16585         * objects/flowchart/pixmaps/magtape.xpm      
16586         * objects/flowchart/pixmaps/manualinput.xpm  
16587         * objects/flowchart/pixmaps/manualop.xpm     
16588         * objects/flowchart/pixmaps/merge.xpm        
16589         * objects/flowchart/pixmaps/offlinestore.xpm 
16590         * objects/flowchart/pixmaps/offpageconn.xpm  
16591         * objects/flowchart/pixmaps/or.xpm           
16592         * objects/flowchart/pixmaps/predefdproc.xpm  
16593         * objects/flowchart/pixmaps/preparation.xpm  
16594         * objects/flowchart/pixmaps/punchedcard.xpm  
16595         * objects/flowchart/pixmaps/punchedtape.xpm  
16596         * objects/flowchart/pixmaps/sort.xpm         
16597         * objects/flowchart/pixmaps/sumjunction.xpm  
16598         * objects/flowchart/pixmaps/terminal.xpm     
16599         * objects/flowchart/pixmaps/transaction.xpm  
16600         * objects/flowchart/pixmaps/transmittape.xpm 
16601         Moved shapes and their pixmaps to shapes/flowchart
16603         * shapes/Circuit/Makefile.am:
16604         * shapes/Circuit/index.sheet:
16605         Removed index.sheet.
16606         
16607         * shapes/Makefile.am:
16608         * shapes/flowchart/Makefile.am:
16609         * shapes/flowchart/*.shape:
16610         * shapes/flowchart/*.xpm:
16611         Added flowchart shapes. (Moved from objects/flowchart)
16612         
16614 1999-11-07  Fredrik Hallenberg  <hallon@lysator.liu.se>
16616         * app/app_procs.c: Fixed popt stuff.
16618 1999-11-01  James Henstridge  <james@daa.com.au>
16620         * shapes/Circuit/[hv]led_de.{shape,xpm}: new circuit shapes from
16621         Andreas Scherf.
16623 1999-10-31  Alexander Larsson  <alla@lysator.liu.se>
16625         * dia.spec:
16626         * configure.in:
16627         Update version to 0.81.
16628         
16629         * NEWS:
16630         Update with news for 0.81.
16631         
16632         * shapes/Circuit/*:
16633         * shapes/Circuit_eu/*:
16634         Moved european circuit objects to Circuit sheet.
16636 1999-10-31  Alexander Larsson  <alla@lysator.liu.se>
16637         
16638         * lib/diagramdata.[ch]:
16639         Added layer_set_object_list() function.
16641         * app/undo.[ch]:
16642         Added support for undo of reordered objects.
16643         Fix the undo of delete to keep the right order on undo.
16644         
16645         * app/diagram.c:
16646         changed loop to object_add_updates_list() calls.
16647         Added undo support to bring to front/back.
16649         * app/disp_callbacks.c:
16650         * app/paginate_psprint.c:
16651         Remove warnings.
16653 1999-10-30  Alexander Larsson  <alla@lysator.liu.se>
16655         This plugs some leaks. Thanks to
16656         Bruce Mitchener <bruce@cybersight.com> for running
16657         Dia through purify for me.
16658         
16659         * app/app_procs.c:
16660         Free displays and diagrams on exit.
16662         * app/modify_tool.c:
16663         Free gc when freeing tool.
16665         * lib/diagramdata.c:
16666         Free layer name.
16667         
16668         * app/display.c:
16669         Free update and display lists when destroying display.
16670         
16671         * lib/diagramdata.c:
16672         Don't leak layer name.
16674         * objects/custom/load_sheet.c: 
16675         * objects/custom/shape_info.c:
16676         Free loaded xml documents.
16678 1999-10-28  Alexander Larsson  <alla@lysator.liu.se>
16680         * app/commands.c:
16681         * app/object_ops.[ch]:
16682         Add undo handling to alignment ops.
16683         Based partially on patch by Dan Cohn <dan@internap.com>.
16685         * objects/standard/image.c (image_move_handle):
16686         Don't divide by zero for small images.
16687         Patch by Dan Cohn <dan@internap.com>.
16689         * objects/UML/class.c (umlclass_destroy): 
16690         * objects/custom/custom_object.c (custom_destroy):
16691         Don't free connectionpoints before calling element_destroy
16692         which unconnects them.
16694 1999-10-26  Alexander Larsson  <alla@lysator.liu.se>
16696         * objects/custom/custom_object.c: 
16697         Load and save padding too. Fixes strange load crashes.
16699         * app/group.c (group_destroy):
16700         Don't unconnect already freed connectionpoints when
16701         destroying group. Probably fixes bug reported by
16702         Elliot Lee <sopwith@redhat.com>.
16704         * app/render_gdk.c:
16705         Don't crash on zero-size (broken) bezier curves.
16706         Different sort of fix. This should work on closed bezier curves
16707         too.
16709         * objects/standard/textobj.c:
16710         Activate default properties dialog for Text objects.
16712         * app/render_eps.c: 
16713         * app/load_save.c:
16714         * app/preferences.c:
16715         * app/render_svg.c:
16716         fopen files in binary or text mode.
16718 1999-10-26  Alexander Larsson  <alex@cendio.se>
16720         * app/render_gdk.c (bezier_add_lines):
16721         Don't crash on zero-size (broken) bezier curves.
16722         Fixes a crashing bug.
16724 1999-10-25  James Henstridge  <james@daa.com.au>
16726         * app/Makefile.am (run_dia.sh): allow dia to find internal shape files
16727         before it is installed.
16729         * objects/flowchart/flowchart.c: use relative paths to find shapes.
16731         * objects/custom/custom.c (custom_object_load): take file names
16732         relative to $(pkgdatadir)/shape-internal, and check an environment
16733         variable for an alternative directory.
16735         * app/...: added copyright messages to the top of my new code.
16737         * app/paginate_psprint.c: some general clean ups.  Also, give an error
16738         dialog if we can't open the command or output file for writing.
16740         * app/diapagelayout.c (dia_page_layout_set_orientation): fixed
16741         function so it would set orientation to landscape correctly.
16743         * app/paginate_psprint.c: use the paper settings that come with
16744         the diagram.  Also implemented landscape printing.
16746         * app/render_eps.c (new_psprint_renderer): use diagram paper metrics
16747         in PS header.
16749         * app/commands.[ch] (file_pagesetup_callback): added callback for
16750         the page setup dialog.
16752         * app/menus.c: added page setup menu item.
16754         * app/pagesetup.[ch]: implementation of the page setup dialog.
16756         * app/diapagelayout.[ch]: added accessors for the scaling factor.
16757         
16758         * app/load_save.c (diagram_load): load paper information from save
16759         file.
16760         (diagram_save): save the paper info.
16762         * lib/diagramdata.c (new_diagram_data): initialise paper info section
16763         of DiagramData structure.
16764         (diagram_data_destroy): free the paper name.
16766         * lib/diagramdata.h: added a paper member to the DiagramData structure
16767         that holds the page layout info for a diagram.
16769 1999-10-21  Alexander Larsson  <alla@lysator.liu.se>
16771         * objects/flowchart/box.c:
16772         * objects/flowchart/ellipse.c:
16773         * objects/flowchart/diamond.c:
16774         * objects/flowchart/parallelogram.c:
16775         Load and save padding too. Fixes strange load crashes.
16777 1999-10-21  Alexander Larsson  <alla@lysator.liu.se>
16779         * app/app_procs.c (name_is_lib):
16780         .dll, .sl and .so.0.0.0 are also libraries.
16782 1999-10-20  James Henstridge  <james@daa.com.au>
16784         * configure.in: added extra makefile.
16785         
16786         * shapes/Circuit_eu/*: a new set of european circuit shapes from
16787         Andreas Scherf <scherfa@fh-trier.de>.  Made a few small modifications
16788         (added fuses to makefile, fill the area of some of the components).
16790 1999-10-19  Alexander Larsson  <alla@lysator.liu.se>
16792         * lib/Makefile.am:
16793         * app/Makefile.am: 
16794         Add GDK_IMLIB_CFLAGS to includes.
16795         Changed --export-dynamic to -export-dynamic
16797         * lib/widgets.c:
16798         * objects/UML/message.c:
16799         Removed c++ comment.
16801         * lib/render_store.[ch]:
16802         Don't use empty structure. That is not Ansi C.
16804 1999-10-19  James Henstridge  <james@daa.com.au>
16806         * app/diapagelayout.c (dia_page_layout_init): use DiaUnitSpinner's for
16807         the margin entries, as they allow interpretation of units.
16808         (paper_size_change): display the current page dimensions.
16810         * app/diaunitspinner.[ch]: a widget derived from the standard
16811         GtkSpinButton that tries to take units into account.  So if you enter
16812         "1in" into the entry, it will convert it to 2.54cm.
16814 1999-10-18  Alexander Larsson  <alla@lysator.liu.se>
16816         * app/app_procs.c:
16817         Removed include of dlfcn.h
16819 1999-10-18  James Henstridge  <james@daa.com.au>
16821         * app/diapagelayout.c (paper_size_change, orient_changed): set upper
16822         bound on margin widths.  It is set to the paper width/height.
16824         * objects/flowchart/diamond.c (diamond_distance_from): fixed distance
16825         routine for the diamond.  This bug was found and fixed by Daniel Wang
16826         <danwang@CS.Princeton.EDU>
16828 Sun Oct 17 19:46:36 1999  ape@gandalf.spacetec.no  (Asbjorn Pettersen)
16830         * app/commands.c: Add <sys/types.h> before <sys/stat.h> to
16831         remove warning (OS/2 version).
16833 1999-10-17  Alexander Larsson  <alla@lysator.liu.se>
16835         * README:
16836         Put a pointer to objects/custom/README.
16837         
16838 1999-10-17  Alexander Larsson  <alla@lysator.liu.se>
16840         * dia.spec:
16841         Updated version to 0.80
16843         * configure.in:
16844         Updated version to 0.80cvs
16846 1999-04-08  Alexander Larsson  <alla@lysator.liu.se>
16848         * Released Dia 0.80
16849         Tag called DIA_0_80
16850         
16851 1999-10-17  Fredrik Hallenberg  <hallon@lysator.liu.se>
16853         * app/Makefile.am
16854         * lib/Makefile.am
16855         * objects/UML/Makefile.am
16856         * objects/ER/Makefile.am
16857         * objects/network/Makefile.am
16858         * objects/standard/Makefile.am
16859         * objects/FS/Makefile.am
16860         * objects/sybase/Makefile.am
16861         * objects/flowchart/Makefile.am
16862         * objects/custom/Makefile.am
16863         Added -I$(top_srcdir)/intl which is needed for
16864         --with-included-gettext.
16866         * POTFILES.in
16867         Updated.
16868         
16869         * po/sv.po
16870         Updated swedish translation.
16872 1999-10-16  Alexander Larsson  <alla@lysator.liu.se>
16874         * configure.in:
16875         Updated version number to 0.80.
16877         * KNOWN_BUGS:
16878         New file.
16880         * TODO:
16881         Updated. Moved bugs to KNOWN_BUGS.
16883         * NEWS:
16884         Updated with 0.80 release notes.
16885         
16886 1999-10-16  Alexander Larsson  <alla@lysator.liu.se>
16887         
16888         * lib/orth_conn.c:
16889         For backwards compatibility, make sure handle 0 and 1 are the
16890         first and last handle. Fixes compatibility with 0.41, breaks
16891         compatibility with cvs version.
16892         Fixed bug in undo/redo of adding deleting endpoint segments
16893         when the endpoint was connected.
16894         Start OrthConn objects with three segments.
16896 1999-10-16  James Henstridge  <james@daa.com.au>
16898         * objects/custom/custom_object.c (custom_update_data): changed
16899         resizing behaviour a bit so that shapes don't grow huge when you try
16900         to resize them to smaller than the size required by the text box.
16901         Also, now shapes will not grow with fixed aspect ratio when you enter
16902         text into them unless the shape has the fixed aspect ratio flag set.
16904 1999-10-15  James Henstridge  <james@daa.com.au>
16906         * objects/flowchart/flowchart.c: add new shapes to flowchart sheet.
16908         * object/flowchart/pixmaps/...: corresponding pixmaps for new shapes.
16910         * objects/flowchart/magdrum.shape: 
16911         * objects/flowchart/offlinestore.shape: 
16912         * objects/flowchart/punchedtape.shape: 
16913         * objects/flowchart/transmittape.shape: 
16914         * objects/flowchart/punchedcard.shape: new shapes.
16916         * objects/flowchart/flowchart.c: add new shapes to flowchart sheet.
16918         * object/flowchart/pixmaps/...: corresponding pixmaps for new shapes.
16920         * objects/flowchart/collate.shape:
16921         * objects/flowchart/delay.shape:
16922         * objects/flowchart/extract.shape:
16923         * objects/flowchart/intstorage.shape:
16924         * objects/flowchart/magdisk.shape:
16925         * objects/flowchart/magtape.shape:
16926         * objects/flowchart/merge.shape:
16927         * objects/flowchart/or.shape:
16928         * objects/flowchart/sort.shape:
16929         * objects/flowchart/sumjunction.shape: new shapes.
16931 1999-10-15  Alexander Larsson  <alla@lysator.liu.se>
16933         * TODO (BUGS):
16934         Added bug:
16935         Entering an erronous command as print command
16936         crashes dia.
16938         * app/paginate_psprint.c:
16939         Save all print dialog values for next time.
16940         
16941         * app/Makefile.am:
16942         Remove custom lib from DIA_LIB_PATH.
16944 1999-10-14  James Henstridge  <james@daa.com.au>
16946         * objects/flowchart/flowchart.c: add new shapes to flowchart sheet.
16948         * object/flowchart/pixmaps/...: corresponding pixmaps for new shapes.
16949         
16950         * objects/flowchart/offpageconn.shape: 
16951         * objects/flowchart/manualop.shape: 
16952         * objects/flowchart/preparation.shape: 
16953         * objects/flowchart/manualinput.shape: 
16954         * objects/flowchart/predefdproc.shape: 
16955         * objects/flowchart/terminal.shape: new shapes in the flowchart sheet.
16957 1999-10-13  James Henstridge  <james@daa.com.au>
16959         * app/diapagelayout.[ch]: added accessors to paper information.  The
16960         widget should be just about complete now.
16962         * app/diapagelayout.[ch]: fleshed out the page setup widget a bit more.
16963         It actually does something now.
16965 1999-10-12  James Henstridge  <james@daa.com.au>
16967         * app/pixmaps/portrait.xpm, app/pixmaps/landscape.xpm: support pixmaps
16968         for the page layout widget.
16970         * app/diapagelayout.[ch]: start of page layout widget.  Not actually
16971         built yet as it is not complete.
16973         * objects/flowchart/flowchart.c: added new shapes to sheet.
16975         * objects/flowchart/display.shape:
16976         * objects/flowchart/transaction.shape: new shapes.
16978         * AUTHORS: added my name to the spec file.
16980         * dia.spec: include the dia desktop entry to the spec file.
16982         * Makefile.am: install the dia.desktop file.
16984         * dia.desktop: added a gnome desktop entry so you can start dia
16985         from the gnome panel menu.
16987 1999-10-11  James Henstridge  <james@daa.com.au>
16989         * objects/custom/custom_object.c:
16990         * objects/custom/shape_info.c: warning fixes.
16992         * objects/flowchart/document.shape: a shape file for the `document'
16993         flowchart shape.
16995         * lib/custom.h: new header with the custom shape prototypes.
16997         * app/app_procs.c: register custom objects as well.
16998         (register_objects_in): close shared libraries if they don't load
16999         correctly, and call g_module_make_resident on libraries that load
17000         correctly.
17002         * app/Makefile.am (dia_LDADD): added libcustom_objects.a to link list.
17004         * objects/custom/custom.c: removed get_version, added custom_ prefix
17005         to register_objects and register_sheets.
17007         * objects/custom/Makefile.am: converted to a normal library.
17009 1999-10-10  Alexander Larsson  <alla@lysator.liu.se>
17011         * app/lineprops_area.c:
17012         * app/render_svg.c:
17013         * lib/objchange.c:
17014         * objects/custom/shape_info.c:
17015         * objects/flowchart/box.c:
17016         * objects/flowchart/diamond.c:
17017         * objects/flowchart/ellipse.c:
17018         * objects/flowchart/parallelogram.c:
17019         * objects/network/flash.c:
17020         * objects/network/scead-plug.c:
17021         * objects/sybase/client.c:
17022         Removed -Wall warnings.
17023         
17024         * objects/network/bus.c:
17025         Removed unused functions.
17027         * objects/FS/flow-ortho.c:
17028         * objects/FS/flow-poly.c:
17029         * objects/FS/flow.c:
17030         * objects/FS/function.c:
17031         
17032         Implemented "non-implemented" undo for FS objects.
17033         Now at least it won't crash.
17034         
17035 1999-10-10  Alexander Larsson  <alla@lysator.liu.se>
17037         * objects/network/bus.c:
17038         Implemented undo.
17039         Handles are now added and removed using the object menu.
17040         Default to 6 handles instead of 10.
17041         Changed name from "Standard - Bus" to "Network - Bus". Kept old
17042         name for backwards compatibility.
17044         * objects/network/network.c:
17045         Changed name from "Standard - Bus" to "Network - Bus". Kept old
17046         name for backwards compatibility.
17048         * app/properties.[ch]:
17049         * app/undo.c:
17050         Update properties in properties dialog if the shown object
17051         is part of and ObjectChange (undo or redo).
17053         * lib/poly_conn.c:
17054         Remove old known bugs list.
17056         * objects/UML/class_dialog.c:
17057         Removed debug printf's.
17059 1999-10-10  James Henstridge  <james@daa.com.au>
17061         * objects/custom/custom.c (custom_object_load): new function that
17062         provides a nice entry point to the custom shape code for when it
17063         gets used by other libraries.
17065         * configure.in: removed 11 makefiles from AC_OUTPUT list.  This
17066         speeds builds up a bit.
17068         * */Makefile.am (EXTRA_DIST): include pixmaps in distribution.
17069         (SUBDIRS): do not descend into pixmaps subdirs.
17071         * */pixmaps/Makefile.am: removed -- incorporate into parent makefiles.
17072         This speeds up build process.
17074         * objects/custom/custom.c (sheets): made variable static.
17076         * objects/custom/custom_util.[ch] (custom_get_relative_filename):
17077         renamed function.
17079         * objects/custom/load_sheet.[ch] (custom_sheet_load): renamed function.
17081         * objects/custom/custom.c: look in ~/.shapes instead of
17082         ~/.dia_shapes as the per-user shapes directory.
17084         * app/preferences.c (prefs_save): save config to ~/.diarc.
17085         (prefs_load): load configuration from ~/.diarc.  If the file
17086         does not exist, fallback on the old ~/.diarc location.
17088         * app/app_procs.c (create_user_dirs): create the ~/.dia directory
17089         on startup.
17090         (register_all_objects): look for user specific objects in
17091         ~/.objects rather than ~/.dia_libs.
17093 1999-10-10  Fredrik Hallenberg  <hallon@lysator.liu.se>
17095         * configure.in:
17096         * app_procs.c:
17097         * objects/flowchart/box.c
17098         * objects/flowchart/ellipse.c
17099         * objects/flowchart/flowchart.c 
17100         Use gmodule for dynamic linking. As gmodule is using
17101         RTLD_GLOBAL i had to change flowchart box and ellipse
17102         so the typenames doesn't conflict with the standard
17103         box and ellipse.
17105         * message.c
17106         * commands.c
17107         Use button box to make dialogs look better.
17109 1999-10-09  Alexander Larsson  <alla@lysator.liu.se>
17111         * objects/UML/class_dialog.c:
17112         * objects/UML/class.h:
17113         Implemented undo for "UML - Class" objects.
17114         Not 100% tested yet.
17116         * objects/UML/classicon.c:
17117         * objects/UML/constraint.c:
17118         * objects/UML/dependency.c:
17119         * objects/UML/generalization.c:
17120         * objects/UML/implements.c:
17121         * objects/UML/large_package.c:
17122         * objects/UML/lifeline.c:
17123         * objects/UML/message.c:
17124         * objects/UML/object.c:
17125         * objects/UML/realizes.c:
17126         * objects/UML/state.c:
17127         * objects/UML/usecase.c:
17128         Removed warnings.
17129         
17130         * lib/connectionpoint.h:
17131         Fixed typo.
17132         
17133 1999-10-09  James Henstridge  <james@daa.com.au>
17135         * objects/custom/*.[ch]: added copyright notices to custom object
17136         files.
17138         * shapes/Circuit/hdiode.shape:
17139         * shapes/Circuit/hzener.shape: 
17140         * shapes/Circuit/opamp.shape:
17141         * shapes/Circuit/vdiode.shape:
17142         * shapes/Circuit/vzener.shape: made adjustments to make the circuit
17143         shapes look nice after the custom shape code changes.
17145         * objects/custom/README: updated docs to cover changes to drawing
17146         code.
17148         * objects/custom/custom_object.c (custom_draw): honour the line
17149         properties when drawing the shape.
17151         * objects/custom/shape_info.[ch]: added support for setting line
17152         properties for individual drawing elements in a custom shape.  You
17153         can set the dash style, dash length, cap style and join style.
17155 1999-10-07  James Henstridge  <james@daa.com.au>
17157         * objects/custom/shape_info.c (parse_style): added a few extra synonyms
17158         for foreground and background.
17160         * objects/custom/custom_object.c (custom_draw): use the new style
17161         information when drawing the object.
17163         * objects/custom/shape_info.[ch]: store all shape style info in the
17164         GraphicStyle structure.  This makes adding support for extra CSS
17165         attributes easier -- we don't have to keep adding extra arguments to
17166         a lot of functions.
17168 1999-10-05  James Henstridge  <james@daa.com.au>
17170         * lib/intl.c (unalias_lang): merged in changes from the i18n code
17171         swiped from gnome-libs.
17173 1999-10-03  Alexander Larsson  <alla@lysator.liu.se>
17175         * objects/standard/image.c (get_directory):
17176         Fix memleak. Found by Kjartan Maraas <kmaraas@online.no>
17178 1999-09-28  Alexander Larsson  <alla@lysator.liu.se>
17180         * lib/poly_conn.c (polyconn_destroy):
17181         Fix bug. Access of freed memory.
17182         Rememeber, you can't free the handles of an object
17183         before calling object_destroy(), as it unconnects the handles
17184         therefore referencing them.
17186 1999-09-28  Alexander Larsson  <alla@lysator.liu.se>
17188         * app/undo.c:
17189         undo_clear() didn't set stack->depth to zero.
17190         This made other undo functions crash after this had been called
17191         on a "full" stack.
17192         
17193         * dia.xpm:
17194         Slightly modified by Chris Love <clove@exactis.com>
17196 1999-09-19  Alexander Larsson  <alla@lysator.liu.se>
17198         * objects/UML/class.h: 
17199         * objects/UML/class_dialog.c:
17200         Retrun NULL ObjectChange on class property change.
17201         This means no crashes, but "UML - Class" doesn't support undo yet.
17202         
17203 1999-09-19  Alexander Larsson  <alla@lysator.liu.se>
17204         
17205         * lib/text.c:
17206         Indentation fix.
17208         * objects/UML/classicon.c:
17209         * objects/UML/dependency.c:
17210         * objects/UML/generalization.c:
17211         * objects/UML/implements.c:
17212         * objects/UML/large_package.c:
17213         * objects/UML/lifeline.c:
17214         * objects/UML/message.c:
17215         * objects/UML/object.c:
17216         * objects/UML/realizes.c:
17217         * objects/UML/state.c:
17218         * objects/UML/usecase.c:
17219         Update to new undo (w. get/set_state).
17220         Add object menu to add/delete segments.
17222 1999-09-17  Alexander Larsson  <alla@lysator.liu.se>
17224         * app/menus.c:
17225         Add equal distance alignment.
17227         * app/object_ops.c:
17228         Add equal distance alignment.
17229         Fix bug in adjacent alignment.
17231 1999-09-16  Alexander Larsson  <alla@lysator.liu.se>
17233         * objects/UML/constraint.c: 
17234         Update to new undo (w. get/set_state).
17236 1999-09-15  Alexander Larsson  <alla@lysator.liu.se>
17238         * app/paginate_psprint.c:
17239         Save (parts, more todo) of the info in the print dialog to the
17240         next time it's opened.
17241         Patch from Yo Ric Dude <ricdude@toad.net>
17243 1999-09-14  Alexander Larsson  <alla@lysator.liu.se>
17245         * configure.in:
17246         Updated version string to 0.41cvs.
17248         * objects/UML/assocition.c:
17249         Update to new undo (w. get/set_state).
17250         Add object menu to add/delete segments.
17252         * app/app_procs.c:
17253         Added function debug_break() and called it after all
17254         objects and sheets are loaded. Place a breakpoint here if you
17255         want to debug objects. All symbols should be loaded.
17257 1999-09-12  James Henstridge  <james@daa.com.au>
17259         * app/menus.c (display_menu_items): added print menu item.
17260         (filemenu): always add print menu item -- even if gnome-print is
17261         not installed.
17263         * app/commands.h, app/commands.c (file_print_callback): the print
17264         menu item is now available for both gnome-print and non gnome-print
17265         setups.
17267         * app/paginate_psprint.c (diagram_print_ps): show a dialog to let you
17268         print with the non gnome-print driver.
17270 1999-09-11  James Henstridge  <james@daa.com.au>
17272         * app/paginate_gnomeprint.c (diagram_print_gnome): moved the gnome
17273         printer dialog code out of commands.c.
17275         * app/paginate_psprint.c: new file containing the pagination code for
17276         psprint.
17278         * app/render_eps.c: made a few modifications so as well as producing
17279         EPS files, this renderer can be set up to do postscript printing.
17280         This basically entailed adding an extra function to create a RenderEPS
17281         renderer which did not bother setting the viewport for the document.
17282         That was left for the pagination code.
17284 1999-09-10  James Henstridge  <james@daa.com.au>
17286         * app/render_gnomeprint.c (draw_ellipse, fill_ellipse): since
17287         gnome-print does not support elliptic arcs at the moment, approximate
17288         the ellipse with eight bezier curves.  This gives a pretty good
17289         match to a true ellipse.
17291 1999-09-09  James Henstridge  <james@daa.com.au>
17293         * app/commands.c (file_gnome_print_callback): added support for
17294         scaling the diagram.  Also fixed a few other bugs.
17296         * app/paginate_gnomeprint.c (print_page): added ability to scale
17297         document.  Fixed up test to see if the page has no objects on it.
17298         This should prevent some blank pages being printed.  Non square
17299         objects such as lines could still cause problems.
17301 1999-09-08  James Henstridge  <james@daa.com.au>
17303         * app/commands.c (file_gnome_print_callback): changed from using the
17304         standard printer selection dialog to one that also has a paper size
17305         selector as well.
17307         * commands.[ch]: added callbacks for the print menu item.  Currently
17308         it only does A4 output.  I will make it configurable soon.
17309         
17310         * app/menus.c: add a print diagram menu item if gnome-print support
17311         is enabled.
17312         
17313         * app/paginate_gnomeprint.c, app/paginate_gnomeprint.h: this is a
17314         bit higher level than the gnome-print renderer.  It splits the
17315         diagram into page size chunks and then renders them.  For each
17316         page, it only renders the objects whose bounding box intersects
17317         the page, and it sets the clip mask so that the diagram does not
17318         overlap the margins.
17319         
17320         * app/render_gnomeprint.c, app/render_gnomeprint.h: added a renderer
17321         that uses gnome-print as its back end.
17322         
17323         * configure.in: added a check for gnome-print.  It is disabled by
17324         default because the code is not really working correctly yet.
17326         * app/menus.c: the delete object menu item was missing from the
17327         GnomeUIInfo style menus.
17329 1999-09-07  Fredrik Hallenberg  <hallon@lysator.liu.se>
17331         * configure.in
17332         Added japanese to ALL_LINGUAS.
17333         Fix for Linux on Alpha.
17335 1999-09-07  Alexander Larsson  <alla@lysator.liu.se>
17337         * app/create_object.c (create_object_button_press):
17338         Always initialize tool->obj. Otherwise we store a null
17339         in the undo Change.
17341         * lib/text.c:
17342         Set linestyle before drawing cursor.
17343         Fix undo of backwards delete.
17345 1999-09-05  James Henstridge  <james@daa.com.au>
17347         * dia.spec: updated spec file to distribute $(prefix)/share/dia.
17349         * app/render_svg.c (draw_image): some fixes so that the appropriate
17350         style attributes are set.  Before it was setting line styles on
17351         fill_* functions.  Now it only does this for the draw_* variants.
17353         * app/Makefile.am (run_dia.sh): set the DIA_SHAPE_PATH environment
17354         variable so that custom shapes can be loaded.
17356         * shapes/: new directory for custom shapes.  The Circuit sheet has
17357         been moved here.
17359 1999-09-02  James Henstridge  <james@daa.com.au>
17361         * TODO: removed a few todo items that have been implemented.
17363         * app/interface.c (create_sheets): enabled the popup page menu to the
17364         notebook.  This can make it easier to select different sheets.
17366         * object/custom/Circuit/: added diode, zener diode, ground point and
17367         operational amplifier shapes.
17368         
17369         * objects/custom/Makefile.am: added a note about adding DEBUG_CUSTOM
17370         if you want the output.
17372         * objects/custom/shape_info.c (parse_path): same here.
17374         * objects/custom/load_sheet.c (load_with_readdir): don't print so
17375         much debugging output.  To get the previous level of output, define
17376         DEBUG_CUSTOM.
17378         * objects/custom/shape_info.c (parse_svg_node): polygons were being
17379         recorded as polylines in the ShapeInfo structure.
17381         * objects/custom/README: some notes on writing new custom shapes.
17382         
17383 1999-09-01  James Henstridge  <james@daa.com.au>
17385         * objects/custom/Circuit/hinductor.*:
17386         * objects/custom/Circuit/vinductor.*: added inductor shapes that
17387         also test out the bezier curve and SVG path support.
17388         
17389         * objects/custom/custom_object.c (custom_draw): added support for
17390         drawing bezier paths and filled shapes.
17392         * objects/custom/shape_info.c (parse_path): new function to parse
17393         SVG path elements.  It does not do quadratic beziers or elliptic
17394         arcs though.  Only moves, lines and cubic beziers.
17395         (*): added support for paths.
17397 1999-08-31  James Henstridge  <james@daa.com.au>
17399         * objects/sybase/ltm.c (render_to_store): use the newer bezier API.
17401         * app/render_svg.c (draw_bezier, fill_bezier): updated renderer
17402         interface
17404         * app/render_eps.c (draw_bezier, fill_bezier): updated renderer
17405         interface
17407         * app/render_gdk.c (draw_bezier, fill_bezier): updated renderer
17408         interface.
17410         * lib/render_store.[ch]: use newer bezier functions.
17412         * lib/render.h: changed the bezier drawing functions to use an array
17413         of BezPoint structures instead of normal Point structures to allow
17414         lineto's mixed in with the curveto's.
17415         
17416         * objects/custom/Circuit/pnp.*: added pnp transistor shape.
17417         
17418         * objects/custom/Circuit/Makefile.am (SHAPES): added index.sheet and
17419         xpm images for different shapes to Makefile.
17421         * objects/custom/custom_object.c (custom_object_new): set the icon
17422         for the sheet button if there is one.  Otherwise fall back on the
17423         default custom object icon.
17425         * objects/custom/shape_info.c (load_shape_info): read the sheet
17426         icon name from the shape file.
17428         * app/interface.c (create_sheet_page): if sheet_obj->pixmap == NULL,
17429         check the pixmap_file field for the name of a pixmap file to load
17430         for the tool.
17432         * lib/sheet.h (SheetObj): added pixmap_file field to structure.  It is
17433         at the end of the structure, and it isn't used if the pixmap field
17434         is non NULL, so it should not break binary compatibility.
17436         * objects/custom/load_sheet.[ch]: moved sheet loading code here.  Also
17437         added support for the use of an index.sheet file so you can specify
17438         the ordering of the shapes in the sheet, and also internationalise
17439         the sheet name and actually be able to give a description.  The old
17440         readdir based sheet loading code acts as a fallback if an index.sheet
17441         file can not be found.
17443         * objects/custom/custom_util.[ch]: new file containing useful routines
17444         needed by the custom object code.  Currently only contains a simple
17445         routine for resolving relative paths.
17447         * objects/custom/custom_object.c (custom_draw): fixed problem with
17448         drawing rectangles if the shape has been flipped.
17450 1999-08-30  James Henstridge  <james@daa.com.au>
17452         * objects/custom/custom_object.c (custom_get_object_menu): allow
17453         flipping of custom shapes.  This uses the miggle click object
17454         menu.
17456         * objects/custom/Circuit/npn.shape: fix aspect ratio.
17458         * objects/custom/custom_object.c (custom_update_data): honour the
17459         aspect ratio constraints.
17461         * objects/custom/shape_info.c (load_shape_info): updated aspect ratio
17462         tag parsing, so you can specify a free, fixed or a range for aspect
17463         ratios for the shape.
17465 1999-08-29  James Henstridge  <james@daa.com.au>
17467         * objects/custom/test.xml, objects/custom/Circuit/*.shape: fixed
17468         up shape namespace tag.
17470         * objects/custom/shape_info.c (load_shape_info): check xml:lang
17471         attribute on <description> elements to support i18n for custom
17472         shape descriptions.
17473         Also changed the shape namespace for custom shapes to something
17474         a little more sensible.
17476         * lib/dummy_dep.h (dummy_dep): added extra dummy dependency.
17478         * lib/intl.c: new file containing some functions for i18n stuff.
17480         * app/layer_dialog.c (create_button_box): fixed a warning.
17482         * objects/custom/custom_object.c: use current line style.  Save dash
17483         length.
17485         * objects/flowchart/diamond.c: use current line style.  Save dash
17486         length.
17488         * objects/flowchart/parallelogram.c: use current line style.  Save
17489         dash length.
17491         * objects/flowchart/ellipse.c: use current line style.  Save dash
17492         length.
17494         * objects/flowchart/box.c: use current line style.  Save dash length.
17496         * objects/standard/ellipse.c: make ellipse use current line style.
17498         * objects/standard/box.c: use the line style set in the toolbox for
17499         new boxes, and remember the dash length.
17501         * app/commands.c (view_toggle_rulers_callback): fix reshowing of
17502         rulers.
17504 1999-08-24  James Henstridge  <james@daa.com.au>
17506         * objects/flowchart/ellipse.c (ellipse_update_data): made some changes
17507         to try to stop ellipse to get infinite width/height when we resize,
17508         while trying to keep the text inside the ellipse.
17510         * objects/flowchart/box.c, objects/flowchart/parallelogram.c,
17511         * objects/flowchart/diamond.c, objects/flowchart/ellipse.c: fixed
17512         resizing behaviour, so that you can't push objects round the screen
17513         with the resize handles.
17515         * app/lineprops_area.c (dia_arrow_chooser_init, dia_line_chooser_init):
17516         get the OK buttons in the dialogs to take default clicks.
17518         * objects/custom/custom_object.c: added code so that resizing the
17519         shape does not end up pushing it round the screen.
17521 1999-08-23  Alexander Larsson  <alla@lysator.liu.se>
17523         * app/display.[ch]:
17524         Generate rectangle with the union of the damaged regions.
17525         This is used to optimize the grid paint and the object rendering.
17526         display_render_pixmap passes this info to grid_draw() and data_render().
17528         * app/grid.[ch]:
17529         grid_draw doesn't draw grid lines outside of damaged rectangle.
17530         Sets dashlength when drawing non-solid grid.
17531         
17532         * lib/diagramdata.[ch]:
17533         data_render() and layer_render() takes an optional damaged rectangle
17534         argument. No objects not intersecting this are drawn.
17536         * app/diagram.c:
17537         Fix warning.
17538         Call data_render with NULL update rectangle.
17539         
17540 1999-08-23  James Henstridge  <james@daa.com.au>
17542         * objects/custom/custom_object.c (custom_update_data): if the aspect
17543         ratio is fixed, make sure the shape is not distorted.
17545         * object/custom/shape_info.h, objects/custom/shape_info.c: notice if
17546         a <fixaspectratio/> tag is given in the shape file.
17548         * objects/custom/shape_info.[ch], objects/custom/custom_object.c:
17549         added support for stroke-width, stroke and fill CSS attributes
17550         specified in style attributes of the SVG elements.  The line width
17551         is relative to the user specified line width.  The stroke and fill
17552         attributes can only be used to swap the foreground/background
17553         colours.
17555         * lib/widgets.c (dia_line_style_selector_set_linestyle): set the
17556         sensitivity on the dash length selector when this function is called.
17558         * objects/standard/arc.c: same.  Also handle dash length.
17559         * objects/standard/zigzagline.c: same.
17560         * objects/standard/polyline.c: same.  Also handle dash length.
17561         * objects/standard/line.c: use default arrow/line styles.
17563         * app/interface.c: added callbacks to set the default attributes.
17565         * lib/attributes.c: added implementations of these functions.
17567         * lib/attributes.h: added extra prototypes for the new line properties
17568         area in the toolbox.
17570         * app/interface.c (create_lineprops_area): added line properties
17571         area to bottom of toolbox.
17573         * app/lineprops_area.h: a header exporting a few routines of the
17574         line properties area widgets.
17576         * app/lineprops_area.c: new file containing a selector for arrows
17577         and line styles to go in the main toolbox.
17579 1999-08-22  Alexander Larsson  <alla@lysator.liu.se>
17581         * HACKING:
17582         Update Gtk+ 1.0.5 comment to 1.2.0.
17584         * INSTALL:
17585         Demand libtool 1.3
17587         * acconfig.h:
17588         Add HAVE_LIBPOPT
17590         * configure.in:
17591         Make sure we don't propagate -ldl and -lpopt to all LIBS
17592         by adding new var APP_LIBS that only app/dia links with.
17593                 
17594         * app/Makefile.am:
17595         Update run_dia.sh to load custom and flowchart objects.
17597         * objects/ER/Makefile.am:
17598         * objects/FS/Makefile.am:
17599         * objects/UML/Makefile.am:
17600         * objects/network/Makefile.am:
17601         * objects/standard/Makefile.am:
17602         * objects/sybase/Makefile.am:
17603         Don't build versioned libs.     
17604         
17605 1999-08-22  James Henstridge  <james@daa.com.au>
17607         * configure.in: added objects/custom/Circuit/Makefile to AC_OUTPUT
17608         list.
17610         * objects/Makefile.am (SUBDIRS): added custom to subdir list -- it
17611         should actually work a bit now.
17613         * objects/custom/Circuit/*: a test sheet for the custom shape code.
17614         It is a small collection of circuit elements.
17616         * objects/custom/shape_info.c: fixed up loading of polylines and
17617         polygons.  Before it was removing negative signs :(
17619         * objects/custom/pixmaps/custom.xpm: drew the custom shape icon.  A
17620         placeholder was here before.  I still need to work out how to set
17621         icons for individual custom shapes.
17622         
17623         * objects/custom/custom.c: added code to load the shapes into sheets
17624         properly.  The shape files should be arranged into directories, and
17625         each directory represents a different sheet in the toolbox.  This
17626         will make it very easy to distribute a collection of dia shapes as
17627         a tarball.  I still need to work out internationalisation, and maybe
17628         also shape ordering in the sheet.
17630         * objects/custom/custom_object.c: fixed up dialogs for these objects.
17631         (custom_create): fix for objects without text areas.
17633         * objects/custom/shape_info.h, objects/custom/custom_object.c: loading
17634         and saving of custom object works correctly now.
17636 1999-08-21  James Henstridge  <james@daa.com.au>
17638         * objects/flowchart/ellipse.c: 
17639         * objects/flowchart/diamond.c: 
17640         * objects/flowchart/parallelogram.c: 
17641         * objects/flowchart/box.c: Fixed up a few bugs in these objects when
17642         copying or loading these object types.  Not all the connection
17643         points would be initialised correctly.
17645         * objects/flowchart/Makefile.am (libflowchart_objects_la_LDFLAGS):
17646         similar here.
17648         * objects/custom/Makefile.am (libcustom_objects_la_LDFLAGS): do not
17649         build a versioned library.  It will only ever be dlopen'd, so this
17650         is not a problem.
17652         * objects/custom/custom_object.c (custom_distance_from): allow
17653         selecting the object by clicking on the text.  This fixes problems
17654         where the text box is outside the graphic.
17656         * objects/custom/shape_info.c (load_shape_info): fixed up reading
17657         of connections points.  It should be possible to add connections
17658         to custom objects now.
17660         * objects/custom/custom_object.c (custom_update_data): fixed resizing
17661         due to changes to text.
17663         * configure.in: added extra makefiles.
17664         
17665         * objects/custom/shape_info.[ch]:
17666         * objects/custom/custom_object.c:
17667         * objects/custom/custom.c: the starts of custom shape support in dia.
17668         This is not built by default at the moment, since it is not quite
17669         complete.  When it is, it will let you create more shapes for dia
17670         without writing a line of C.  Its implementation includes buzzwords
17671         such as XML and SVG, so it must be good :)
17673 1999-08-19  Karsten Weiss  <karsten@addx.au.s.shuttle.de>
17675         * app/app_procs.c (app_exit): Use button labels "Quit" and
17676         "Cancel" instead of "Yes" and "No".
17677         Set default action to "Cancel" instead of "Quit".
17679 1999-08-19  James Henstridge  <james@daa.com.au>
17681         * objects/flowchart/flowchart.c: added ellipse object.
17682         
17683         * objects/flowchart/ellipse.c: a new shape for the flowchart toolbox.
17685 1999-08-18  James Henstridge  <james@daa.com.au>d
17687         * app/color_area.c (color_area_edit): small fix to prevent dia from
17688         segfaulting when you try to change the default foreground/background.
17690 1999-08-17  Alexander Larsson  <alla@lysator.liu.se>
17692         * app/diagram.[ch] (diagram_redraw_all):
17693         Added function that redraws all diagrams.
17695         * app/preferences.c (prefs_apply):
17696         Call diagram_redraw_all when prefs are changed.
17698         * app/render_svg.c:
17699         Don't use xmlEncodeEntitiesReentrant(). It doesn't exist on
17700         older libxml's, and the old version works good enought here.
17701         
17702 1999-08-17  James Henstridge  <james@daa.com.au>
17704         * lib/widgets.c: changed handlers that were connected to the GtkButton
17705         "pressed" signal to connect to the "clicked" signal.  This removes the
17706         problem where dialogs are inactive until you click a mouse button
17707         after using a colour selector.
17709         * configure.in: added extra makefiles to AC_OUTPUT list.
17710         
17711         * objects/Makefile.am (SUBDIRS): added flowchart module
17713         * objects/flowchart/*: a collection of shapes for use in flowcharts.
17715         * app/color_area.c (color_area_events): similar here.
17717         * app/linewidth_area.c (linewidth_area_events): sometimes a configure
17718         event is recieved with event->width == 0, which causes a warning if we
17719         try to create a pixmap of that width.
17721         * app/preferences.c, app/preferences.h, app/grid.c: added code to
17722         allow you to configure the colour of the grid, and also lets you
17723         set the grid to use dotted lines instead of solid ones.
17724         
17725         * app/commands.c, app/commands.h, app/diagram.c, app/diagram.h,
17726         app/menus.c, app/Makefile.am: added menu entry for exporting SVG files.
17727         
17728         * app/render_svg.h, app/render_svg.c: an SVG (Scalable Vector Graphics)
17729         export filter.  It is not quite complete, but for most shapes it
17730         works as expected.  Fonts still need a bit of work.
17732 1999-08-11  Robert Brady  <rwb197@ecs.soton.ac.uk>
17734         * configure.in: Added "en_GB" to ALL_LINGUAS.
17736 1999-08-04  Fredrik Hallenberg  <hallon@lysator.liu.se>
17738         * menus.c
17739         Added Undo and Redo to GNOME menus.
17740         
17741         * objects/ER/attribute.c:
17742         * objects/ER/entity.c:
17743         * objects/ER/participation.c:
17744         * objects/ER/relationship.c:
17745         Added get/set_state functions.
17747         * objects/ER/participation.c:
17748         Added add/delete segment.
17750         * po/sv.po
17751         Updated Swedish translation.
17753 1999-07-25  Alexander Larsson  <alla@lysator.liu.se>
17755         * app/preferences.[hc]:
17756         Added undo_depth pref.
17757         
17758         * app/undo.[ch]:
17759         Never grow stack larger than pref.undo_depth.
17760         undo_depth == 0 means unlimited.
17761         Converted printfs to conditionally compiled DEBUG_PRINTFs.
17762         
17763 1999-07-25  Alexander Larsson  <alla@lysator.liu.se>
17765         * app/diagram.c:
17766         * app/group.c:
17767         * lib/object.h:
17768         * lib/render_object.c:
17769         * objects/ER/attribute.c:
17770         * objects/ER/entity.c:
17771         * objects/ER/participation.c:
17772         * objects/ER/relationship.c:
17773         * objects/FS/flow-ortho.c:
17774         * objects/FS/flow-poly.c:
17775         * objects/FS/flow.c:
17776         * objects/FS/function.c:
17777         * objects/UML/actor.c:
17778         * objects/UML/association.c:
17779         * objects/UML/class.c:
17780         * objects/UML/classicon.c:
17781         * objects/UML/component.c:
17782         * objects/UML/constraint.c:
17783         * objects/UML/dependency.c:
17784         * objects/UML/generalization.c:
17785         * objects/UML/implements.c:
17786         * objects/UML/large_package.c:
17787         * objects/UML/lifeline.c:
17788         * objects/UML/message.c:
17789         * objects/UML/note.c:
17790         * objects/UML/object.c:
17791         * objects/UML/realizes.c:
17792         * objects/UML/small_package.c:
17793         * objects/UML/state.c:
17794         * objects/UML/usecase.c:
17795         * objects/network/bus.c:
17796         * objects/standard/arc.c:
17797         * objects/standard/box.c:
17798         * objects/standard/ellipse.c:
17799         * objects/standard/image.c:
17800         * objects/standard/line.c:
17801         * objects/standard/polyline.c:
17802         * objects/standard/textobj.c:
17803         * objects/standard/zigzagline.c:
17804         Removed all traces of is_empty(). It doesn't work in an
17805         Undo/Redo world.
17807 1999-07-25  Alexander Larsson  <alla@lysator.liu.se>
17809         * app/diagram.c:
17810         * app/group.[ch]:
17811         * app/undo.[ch]:
17812         Undoable grouping and ungrouping.
17814         * app/layer_dialog.c:
17815         * lib/diagramdata.[ch]:
17816         Undoable layer ops.
17818         * app/modify_tool.c:
17819         Undoable unconnect on handle move.
17821         * lib/orth_conn.[ch]:
17822         Working undoable add/remove segment.
17823         Removed endpoint_handles from OrthConn, renamed
17824         midpoint_handles to handles and put the endpoint
17825         handles there.
17827         * objects/standard/zigzagline.c:
17828         * objects/ER/participation.c:
17829         * objects/UML/association.c:
17830         * objects/UML/dependency.c:
17831         * objects/UML/generalization.c:
17832         * objects/UML/realizes.c:
17833         Update for the changes in OrthConn
17834         
17835 1999-07-23  Karsten Weiss  <karsten@addx.au.s.shuttle.de>
17837         * configure.in: Added "de" to ALL_LINGUAS.
17839 1999-07-17  Alexander Larsson  <alla@lysator.liu.se>
17841         * dia.1:
17842         Fixed typo.
17844         * app/display.c:
17845         * po/da.po:
17846         * po/fr.po:
17847         * po/hu.po:
17848         * po/no.po:
17849         * po/pl.po:
17850         * po/sv.po:
17851         Don't have the <Display> etc part of the menu strings
17852         i18n:ed. Patch from Fabrice.Bellet@imag.fr.
17854         * app/diagram.c:
17855         Don't have the <Display> etc part of the menu strings
17856         i18n:ed. Patch from Fabrice.Bellet@imag.fr.
17857         Don't remove is_empty() objects, that don't work with undo.
17859         * lib/objchange.[ch]:
17860         New files.
17861         Definition of ObjectChange. This is essentially an Change
17862         exported to the object libs. It encapsulates a change made
17863         to an objects internals. It can be applied, reverted and freed.
17864         There are also utility functions for doing ObjectChanges that
17865         only get/set the whole state of an object to store the change.
17866         This cannot be used when the object change deletes or adds a
17867         object which has references from other objects, eg. Handles which
17868         might be connected.
17870         * lib/Makefile.am:
17871         Added objchange.c and objchange.h.
17873         * lib/dia_image.c:
17874         Return NULL when loading fails.
17876         * lib/diamenu.h:
17877         Menu callbacks return an ObjectChange.
17879         * lib/dummy_dep.h:
17880         Reference objchange.o
17882         * lib/focus.h:
17883         Key events return ObjectChange if they modify the object.
17885         
17886         * lib/object.h:
17887         Added object_add_handle_at() function.
17888         Apply properties returns an ObjectChange.
17889         Remove ObjectState and the get/set state functions, these
17890         don't always work. Use the new ObjectChange instead.
17891         
17892         * lib/object.c:
17893         Added object_add_handle_at() function implementation.
17894         
17895         * lib/orth_conn.[ch]:
17896         Use ObjectChange. Not finished yet.
17897         Removed get/set/free state functions
17899         * lib/poly_conn.[ch]:
17900         Use ObjectChange.
17901         Don't remove segments that are small.
17902         Removed get/set/free state functions
17904         * lib/text.[ch]:
17905         Use ObjectChange.
17906         Added functions to get/set all text attributes.
17908         * objects/standard/arc.c:
17909         * objects/standard/box.c:
17910         * objects/standard/ellipse.c:
17911         * objects/standard/image.c:
17912         * objects/standard/line.c:
17913         * objects/standard/polyline.c:
17914         * objects/standard/textobj.c:
17915         * objects/standard/zigzagline.c:
17916         Use ObjectChange.
17917         fixed bug in image_set_state.
17918         zigzagline.c not finished yet.
17920         * app/disp_callbacks.c:
17921         Use ObjectChange that are returned from menu callbacks and
17922         key_events for undo.
17924         * app/properties.c:
17925         Use ObjectChange that are returned from properties apply
17926         for undo.
17928         * app/undo.c:
17929         * app/undo.h:
17930         New undo type: ObjectChangeChange. This wraps a change to the
17931         internals of an object (and ObjectChange) in code that does
17932         app specific stuff (object_add_updates etc.)
17934 1999-07-11  Alexander Larsson  <alla@lysator.liu.se>
17936         * lib/orth_conn.[ch]:
17937         Added code for add/delete segment.
17939         * objects/standard/zigzagline.c:
17940         Use the new orth_conn code.
17941         
17943 1999-07-08  Fredrik Hallenberg  <hallon@lysator.liu.se>
17945         * objects/FS/Makefile.am
17946         Removed fs.h from sources.
17948         * Makefile.am
17949         * dia.1
17950         Added man page.
17952 1999-07-07  Alexander Larsson  <alla@lysator.liu.se>
17954         * app/disp_callbacks.c (ddisplay_canvas_events):
17955         Fix for bug. Every other arrow-key press got lost.
17956         patch from Mr. Data Esq. <data@r47h102.res.gatech.edu>
17958         * INSTALL:
17959         change automake.sh to autogen.sh
17960         
17961 1999-06-24  Alexander Larsson  <alla@lysator.liu.se>
17963         * app/diagram.c:
17964         Don't remove 'empty' objects.
17965         This violent destruction of objects won't work
17966         with the new undo framework.
17968         * app/disp_callbacks.c:
17969         Save undo info for object menu calls and key_events.
17971         * app/properties.c:
17972         Save undo info on properties apply.
17974         * lib/dia_image.[ch]:
17975         Add refcounting for images.
17977         * app/render_eps.c:
17978         * app/render_gdk.c:
17979         * lib/render.h:
17980         DiaImage * -> DiaImage
17982         * app/undo.[ch]:
17983         Add undo functions for object state changes.
17985         * lib/focus.h:
17986         * lib/text.c:
17987         change of semntics for focus->key_event.
17988         Now returns TRUE if the object recieving the event
17989         was changed.
17991         * lib/object.h:
17992         Comment changes.
17994         * lib/orth_conn.[ch]:
17995         Don't automatically create and delete segments when
17996         handles are moved. This is incompatible with undo.
17997         Added state get, set and free functions.
17999         * lib/orth_conn.[ch]:
18000         Added state get, set and free functions.
18002         * objects/UML/object.c:
18003         * objects/UML/uml.c:
18004         Fixed typo "UML - Objet" -> "UML - Object".
18005         Saved old for backwards compatibility.
18007         * objects/standard/arc.c:
18008         * objects/standard/box.c:
18009         * objects/standard/ellipse.c:
18010         * objects/standard/image.c:
18011         * objects/standard/line.c:
18012         * objects/standard/polyline.c:
18013         * objects/standard/textobj.c:
18014         * objects/standard/zigzagline.c:
18015         Added get/set state functions.
18016         Textobj has a redo crash-bug.
18017         Zigzagline needs object menus to add segments.
18018         
18020 1999-06-20  Alexander Larsson  <alla@lysator.liu.se>
18022         * app/render_eps.c (set_dashlength):
18023         Don't generate eps files with zero dash-length.
18025 1999-06-16  Alexander Larsson  <alla@lysator.liu.se>
18027         * app/commands.c:
18028         * app/create_object.c:
18029         * app/undo.[ch]:
18030         Finished undo for create and paste.
18031         
18032         * lib/object.h:
18033         Started properties undo.
18035 1999-06-14  Alexander Larsson  <alla@lysator.liu.se>
18037         * TODO:
18038         Added resizeable groups.
18040         * app/app_procs.c:
18041         Removed unused variable.
18043         * app/commands.c:
18044         * app/undo.[ch]:
18045         Undo/redo for cut/delete done.
18047         * app/create_object.c:
18048         * app/modify_tool.c:
18049         * lib/diagramdata.[ch]:
18050         * app/diagram.[ch]:
18051         renamed diagram_add_selected -> diagram_select
18052         renamed diagram_remove_selected -> diagram_unselect
18053         
18054         * app/properties.[ch]:
18055         Added properties_hide_if_shown() function.
18057 1999-06-13  Alexander Larsson  <alla@lysator.liu.se>
18059         * app/undo.[ch]:
18060         * app/Makefile.am:
18061         Undo functions.
18062         
18063         * app/commands.[ch]
18064         * app/modify_tool.[ch]
18065         * app/object_ops.[ch]
18066         * app/connectionpoint_ops.c
18067         * app/menus.c
18068         Use undo functions.
18069         WARNING: Not finished. Will break.
18070         Finished: move object, move handle.
18072         * app/diagram.[ch]
18073         Added diagram_selected_break_external() function.
18074         It removes all connections between selected objects
18075         and non-selected.
18076         Add undo stack to Diagram.
18077         
18078         * lib/diagramdata.[ch]
18079         Added layer_remove_objects() function
18080         
18081 1999-06-11  Fredrik Hallenberg  <hallon@lysator.liu.se>
18083         * objects/FS/Makefile.am
18084         * objects/sybase/Makefile.am
18085         Now uses GNOME_CFLAGS.
18087         * app/app_procs.c
18088         Now compiles with GNOME even if popt.h isn't available.
18090 1999-06-10  Alexander Larsson  <alla@lysator.liu.se>
18092         * configure.in
18093         * objects/Makefile.am
18094         * objects/sybase/*
18095         First version of sybase objects from
18096         Brian Bruns <camber@umcc.ais.org>
18098 1999-06-10  Fredrik Hallenberg  <hallon@lysator.liu.se>
18100         * configure.in
18101         Added fr to ALL_LINGUAS
18103 1999-06-09  Fredrik Hallenberg  <hallon@lysator.liu.se>
18105         * configure.in
18106         * app/app_procs.c
18107         Popt-code is activated if popt is available.
18109 1999-06-08  Alexander Larsson  <alla@lysator.liu.se>
18111         This is a patch from David Thompson <dcthomp@mail.utexas.edu>
18112         
18113         * lib/orth_conn.[ch]:
18114         Added orthconn_get_middle_handle()
18116         * lib/text.[ch]:
18117         Added text_set_cursor_at_end()
18118         
18119         * objects/FS/*
18120         Added first version of functions structure diagrams.
18121         
18122 1999-05-24  Alexander Larsson  <alla@lysator.liu.se>
18124         * app/modify_tool.c:
18125         Include math.h to remove warning.
18127         * app/commands.c (dialogs_properties_callback):
18128         Bring up correct properties dialog when selected
18129         from menu.
18130         From Dan Cohn <dan@internap.com>
18132 1999-05-20  Alexander Larsson  <alla@lysator.liu.se>
18134         Patch from Lars R. Clausen 
18135         
18136         * app/modify_tool.c:
18137         Changed abs to fabs.
18139 1999-05-19  Alexander Larsson  <alla@lysator.liu.se>
18141         * INSTALL: 
18142         * configure.in:
18143         Require Gtk+ 1.2.0
18145 1999-05-18  Alexander Larsson  <alla@lysator.liu.se>
18147         Patches from Dan Cohn <dan@internap.com>
18148         
18149         * app/commands.[ch]: 
18150         * app/display.[ch]: 
18151         * app/menus.c:
18152         * app/preferences.[ch]:
18153         Implements ability to turn on/off connection points in
18154         current drawing and in global prefs.
18156 1999-05-18  Alexander Larsson  <alla@lysator.liu.se>
18158         * lib/widgets.c (dia_line_style_selector_init): 
18159         Fixed warnings.
18160         
18161         * lib/diagramdata.c (layer_update_extents):
18162         Fixed uninitialized variable error.
18164 1999-05-17  Alexander Larsson  <alla@lysator.liu.se>
18166         * lib/dia_image.c:
18167         Made some changes to the gdk_imlib visual+colormap setup.
18169 1999-05-17  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
18171         * objects/UML/usecase.c: 
18172        * objects/UML/lifeline.c
18173         Fine tunning.
18175         * objects/UML/object.c: 
18176         * objects/UML/message.c: 
18177         Changed font from Courier to Helvetica.
18179         * lib/widgets.c: 
18180         * lib/widgets.h:
18181         Added dash lenth to the LineStyle widget.
18182         
18183         * objects/standard/ellipse.c :
18184         * objects/standard/zigzagline.c: 
18185         * objects/standard/line.c: 
18186         Added dash lenght property.
18188 1999-05-16  Alexander Larsson  <alla@lysator.liu.se>
18190         * app/render_eps.c:
18191         First shot at latin1 encoded eps files.
18192         Works, but the eps files get a bit large.
18193         
18194 1999-05-16  Alexander Larsson  <alla@lysator.liu.se>
18196         * objects/UML/class.[ch]: 
18197         * objects/UML/uml.[ch]:
18198         Reverted the line wrap changes.
18199         Some day this might return, but it has to be selectable and
18200         default to off for loaded objects, otherwise it breaks file
18201         format compatibility.
18202         There was also some complains about how it looked, so a making it
18203         selectable is good for this too.
18205 1999-05-15  Alexander Larsson  <alla@lysator.liu.se>
18207         * objects/UML/class.[ch]:
18208         Some indentation cleanup.
18209         Added wrap_lines variable to class.
18210         I'll fix the line break stuff tomorrow.
18212 1999-05-13  Alexander Larsson  <alla@lysator.liu.se>
18214         * lib/dummy_dep.h:
18215         Added ref to poly_conn.o.
18217         * objects/standard/polyline.c (polyline_draw): 
18218         * objects/standard/zigzagline.c (zigzagline_draw): 
18219         * objects/standard/arc.c (arc_draw): 
18220         * objects/standard/line.c (line_draw):
18221         Draw lines before arrows. This makes hollow arrows not
18222         show the line.
18224 1999-05-13  Alexander Larsson  <alla@lysator.liu.se>
18226         Changes from Kim Peasley <kpeasley@ior.com> 
18227                 
18228         * objects/UML/class.c:
18229         Break lines with long operations so classes won't be
18230         so wide.
18232         * objects/UML/uml.[ch]:
18233         Helperfunctions for the above.
18234         
18235         * objects/UML/objects.c:
18236         Fix bug that duplicated the text in the attributes
18237         textwidget each time the object was selected.
18238         
18239 1999-05-12  Alexander Larsson  <alla@lysator.liu.se>
18241         Changes from Lars R. Clausen <lrclause@cs.uiuc.edu>
18242         
18243         * app/modify_tool.c:
18244         * app/modify_tool.h:
18245         Control-drag is restricted to vertical/horizontal movement
18246         
18247         * lib/object.h:
18248         ModifierKeys argument added to object_move_handle
18250         * app/connectionpoint_ops.c:
18251         * app/create_object.c:
18252         * app/object_ops.c:
18253         * objects/ER/attribute.c:
18254         * objects/ER/entity.c:
18255         * objects/ER/participation.c:
18256         * objects/ER/relationship.c:
18257         * objects/UML/actor.c:
18258         * objects/UML/association.c:
18259         * objects/UML/class.c:
18260         * objects/UML/classicon.c:
18261         * objects/UML/component.c:
18262         * objects/UML/constraint.c:
18263         * objects/UML/dependency.c:
18264         * objects/UML/generalization.c:
18265         * objects/UML/implements.c:
18266         * objects/UML/large_package.c:
18267         * objects/UML/lifeline.c:
18268         * objects/UML/message.c:
18269         * objects/UML/note.c:
18270         * objects/UML/object.c:
18271         * objects/UML/realizes.c:
18272         * objects/UML/small_package.c:
18273         * objects/UML/state.c:
18274         * objects/UML/usecase.c:
18275         * objects/network/bus.c:
18276         * objects/standard/arc.c:
18277         * objects/standard/box.c:
18278         * objects/standard/ellipse.c:
18279         * objects/standard/image.c:
18280         * objects/standard/line.c:
18281         * objects/standard/polyline.c:
18282         * objects/standard/textobj.c:
18283         * objects/standard/zigzagline.c:
18284         Changed calls to move_handle to pass the new argument.
18285         
18286         * lib/widgets.c:
18287         * lib/widgets.h:
18288         Default line width, color etc #define'd
18289         
18290         * po/da.po:
18291         Updates of danish menus
18293 1999-05-08  Fredrik Hallenberg  <hallon@lysator.liu.se>
18295         * dia.xpm
18296         * dia_gnome_icon.png
18297         * dia_gnome_menu_icon.png
18298         * dia_logo.png
18299         Graphics by Toussaint Frédéric <ftoussin@club-internet.fr>.
18301         * app/commands.c
18302         About dialog shows dia_logo.png. Removed the GNOME about dialog.
18304         * Makefile.am
18305         Distribute the icons and install logo in pkgdatadir.
18306         
18307         * app/Makefile.am
18308         Added DATADIR-define.
18309         
18310 1999-04-28  Alexander Larsson  <alla@lysator.liu.se>
18311         Patches from Enrico Scholz <enrico.scholz@wirtschaft.tu-chemnitz.de>
18313         * dia.spec:
18314         Updated version number, made setup quiet, can build from cvs,
18315         --enable-gnome, now using automake 1.4 DESTDIR feature, install-strip
18317         * lib/Makefile.am
18318         * objects/ER/Makefile.am
18319         * objects/UML/Makefile.am
18320         * objects/network/Makefile.am
18321         * objects/standard/Makefile.am
18322         now builds better with gnome
18324         * objects/UML/class_dialog.c
18325         Fixed typo -> po files must be updated too!!
18326         
18327 1999-04-28  Alexander Larsson  <alla@lysator.liu.se>
18329         * lib/dummy_dep.h:
18330         Added reference so that widgets.o gets linked to the app.
18332 1999-04-23  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
18334         * objects/UML/classicon.c: 
18335         Added object mode.
18337         * objects/UML/actor.c: 
18338         Changed position of 'snap-to-grid' so connection points are
18339         in the grid.
18341 1999-04-22  Alexander Larsson  <alla@lysator.liu.se>
18343         * objects/UML/classicon.c:
18344         Changed position of 'snap-to-grid'.
18345         By Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
18346         
18347 1999-04-22  Alexander Larsson  <alla@lysator.liu.se>
18349         * objects/network/antenna.c
18350         * objects/network/flash.c
18351         * objects/network/hub.c
18352         * objects/network/modem.c
18353         * objects/network/modularswitch.c
18354         * objects/network/rj45plug.c
18355         * objects/network/scead-plug.c
18356         * objects/network/network.c
18357         * objects/network/Makefile.am
18358         * objects/network/pixmaps/antenna.xpm
18359         * objects/network/pixmaps/flash.xpm
18360         * objects/network/pixmaps/hub.xpm
18361         * objects/network/pixmaps/modem.xpm
18362         * objects/network/pixmaps/modularswitch.xpm
18363         * objects/network/pixmaps/rj45plug.xpm
18364         * objects/network/pixmaps/sceadplug.xpm
18365         * objects/network/pixmaps/Makefile.am
18366         Lots of new network objects from
18367         Roland Steinbach <roland@support-system.com>.
18369 1999-04-15  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
18371         * objects/UML/classicon.c: 
18372         Fixed connection positions, saved type as int (it has 3 states),
18373         and other small fixes.
18374         
18375 1999-04-14  Alexander Larsson  <alla@lysator.liu.se>
18377         * app/preferences.c:
18378         * app/load_save.c:
18379         Added preference compress_save. It lets dia save uncompressed
18380         xml files.
18382         * objects/UML/class.c:
18383         Fixed bug with size calculation on methods that had class scope.
18384         
18385 1999-04-13  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
18387         * objects/UML/usecase.c: 
18388         Added collaboration mode
18389         Fixed connection points with text > ellipse bug and other 
18390         small things
18392         * objects/UML/state.c:
18393         Fixed bug of bad position of text after being either end
18394         or begin, moved and returned to text
18396 1999-04-12  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
18398         * app/preferences.c: Add prototype declaration for prefs_apply.
18400 1999-04-11  Alexander Larsson  <alla@lysator.liu.se>
18402         * app/preferences.c:
18403         Added 'ok' button.
18404         Apply don't hide window.
18406         * app/properties.c:
18407         Add 'ok' button.
18409         * objects/UML/object.c:
18410         * objdcts/UML/state.c:
18411         Some data was not copied on copy.
18413         This patch is from
18414         Ben Hochstedler <benh@eeyore.moneng.mei.com>
18416 1999-04-09  Alexander Larsson  <alla@lysator.liu.se>
18418         * app/Makefile.am:
18419         Changed link order between X and libxml.
18420         Some people had problems with an old libz in their
18421         x11 directory.  
18423 1999-04-09  Kjartan Maraas  <kmaraas@online.no>
18425         * po/no.po: updated translation.
18426         
18427 1999-04-08  Lars R. Clausen <lrclause@cs.uiuc.edu>
18429         * lib/message.c (message_error):
18430         Fixed small error.
18432         * app/commands.[ch]:
18433         * app/diagram.[ch]:
18434         Added begining of xfig importing
18436 1999-04-08  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
18438         * objects/UML/pixmaps/state.xpm: 
18439         * objects/UML/state.c: 
18440         New UML object state machine.
18442         * objects/UML/uml.c:
18443         * objects/UML/Makefile.am:
18444         * objects/UML/pixmaps/Makefile.am:
18445         Added the state object.
18446         
18447 1999-04-08  Alejandro Aguilar Sierra  <ale@bucefalo>
18449         * objects/UML/usecase.c: 
18450         Added dialog to allow move text outside the ellipse.
18452 1999-04-08  Alexander Larsson  <alla@lysator.liu.se>
18454         * Released Dia 0.41
18455         Tag called DIA_0_41
18457         * NEWS:
18458         Updates for 0.41.
18459         
18460 1999-04-08  Alexander Larsson  <alla@lysator.liu.se>
18462         * configure.in:
18463         Updated version number to 0.41
18465         * po/*.po:
18466         Update po-files
18468 1999-04-04  Fredrik Hallenberg  <hallon@lysator.liu.se>
18470         * app/app_procs.c
18471         Changed errormessage for --export-to-ps. Removed call to 
18472         g_log_set_always_fatal().
18474         * app/diagram.c
18475         * app/disp_callbacks.c
18476         * app/load_save.c
18477         (i18n) Removed gettext from some debugmessages.
18479         * app/menus.c
18480         Small fix in GNOME-menus. Added warning that will help track
18481         problems with translations.
18483         * po/sv.po
18484         (i18n) Updated swedish translation.
18486 1999-04-02  Alexander Larsson  <alla@lysator.liu.se>
18488         * po/da.po:
18489         New updates
18491 1999-04-01  Alexander Larsson  <alla@lysator.liu.se>
18493         * po/da.po:
18494         * po/no.po:
18495         Some fixes.
18496         
18497 1999-04-01  Alexander Larsson  <alla@lysator.liu.se>
18499         * po/da.po:
18500         (i18n) Updated the danish translation.
18501         From Lars R. Clausen.
18503 1999-04-01  Fredrik Hallenberg  <hallon@lysator.liu.se>
18505         * app/menus.c
18506         (i18n) The popup menu is translated now.
18508         * po/sv.po
18509         (i18n) Updated swedish translation.
18511 1999-03-29  Alexander Larsson  <alla@lysator.liu.se>
18513         * Released Dia 0.40
18514         Tag called DIA_0_40
18516         * NEWS:
18517         Updated for new release
18518         
18519 1999-03-29  Alexander Larsson  <alla@lysator.liu.se>
18521         * objects/network/bus.c:
18522         Added initialization of properties dialog to NULL.
18524         * app/commands.c (edit_cut_callback):
18525         Update menu sensitivity when cut object.
18527         * app/modify_tool.c (click_select_object):
18528         * app/modify_tool.c (modify_button_release): 
18529         Call diagram_update_menu_sensitivity() when
18530         selecting objects to update stuff that depends
18531         on selected/not selected.
18533 1999-03-29  Alexander Larsson  <alla@lysator.liu.se>
18535         * Makefile.am:
18536         Change order of subdir so that libintl.a builds.
18537         Now passed make distcheck.
18539 1999-03-28  Alexander Larsson  <alla@lysator.liu.se>
18541         * lib/font.c (init_x11_font):
18542         Stupid bug fixed.
18544 1999-03-28  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
18546         * objects/UML/pixmaps/classicon.xpm: 
18547         * objects/UML/classicon.c:
18548         * objects/UML/uml.c:
18549         Added the class stereotype icon objects.
18551         * app/commands.c:
18552         Changed default ps extension from .ps to .eps.
18553         
18554 1999-03-28  Alexander Larsson  <alla@lysator.liu.se>
18556         * lib/Makefile.am:
18557         Added diamenu.h and intl.h
18559         * lib/font.c:
18560         Stupid typo fix.
18561         
18562         * objects/UML/pixmaps/Makefile.am:
18563         Added message.xpm
18565         * objects/standard/pixmaps/Makefile.am:
18566         Added image.xpm
18568 1999-03-28  Alexander Larsson  <alla@lysator.liu.se>
18570         * lib/font.c:
18571         Use a scalable font before fixed when real font not found.
18573         * app/commands.c:
18574         Removed warning.
18576         * objects/standard/image.c:
18577         Better handling of loading/saving of images.
18579         * INSTALL:
18580         Added some text about cvs, fonts and rewrote some parts.
18582         * TODO:
18583         Updated with new stuff.
18584         
18585         * configure.in:
18586         Bump up version number to 0.40.
18587         
18588 1999-03-28  Alexander Larsson  <alla@lysator.liu.se>
18590         * app/display.c:
18591         Moved diagram_add_ddisplay() call into new_display().
18592         Fixed new_display to not use uninitialized variables
18593         causing loaded files to show up as black (or garbage).
18594         
18595         * app/commands.c:
18596         * app/app_procs.c:
18597         Removed unneeded calls to diagram_add_ddisplay().
18598         
18599 1999-03-28  Alexander Larsson  <alla@lysator.liu.se>
18601         * objects/UML/lifeline.c:
18602         Fixed bug in copy.
18603         Patch from Andreas Jaeger <aj@arthur.rhein-neckar.de>.
18605         * objects/UML/message.c:
18606         Fixed bug loading messages with null-text.
18607         Patch from Andreas Jaeger <aj@arthur.rhein-neckar.de>.
18609 1999-03-27  Fredrik Hallenberg  <hallon@lysator.liu.se>
18611         * po/sv.po
18612         Updated swedish translation.
18614         * app/menus.c
18615         (GNOME) Removed help-browser from help menu. Fixed typo.
18617         * app/interface.c
18618         (GNOME) Accelerators in diagrams should work now. 
18620 1999-03-25  Fredrik Hallenberg  <hallon@lysator.liu.se>
18622         * app/app_procs.c
18623         * app/commands.c
18624         * app/defaults.c
18625         * app/disp_callbacks.c
18626         * app/display.c
18627         * app/interface.c
18628         * app/menus.c
18629         * app/preferences.c
18630         * app/render_eps.c
18631         * lib/diagramdata.c
18632         * lib/font.c
18633         * lib/message.c
18634         * lib/widgets.c
18635         * objects/ER/*.c
18636         * objects/UML/*.c
18637         * objects/network/*.c
18638         * objects/standard/*.c
18639         * po/update_pofiles_in.sh
18640         * po/POFILES.in
18641         More i18n. All strings (expect rare debug messages) can be
18642         translated now. Moved intl.h from app to lib. Updated
18643         update_pofiles_in.sh to check all .c-files.
18645 1999-03-23  Alexander Larsson  <alla@lysator.liu.se>
18647         * app/disp_callbacks.c (ddisplay_canvas_events):
18648         Don't drop keys while num-lock, scroll-lock etc is on.
18650 1999-03-22  Alexander Larsson  <alla@lysator.liu.se>
18652         * app/render_eps.c (draw_image):
18653         Fixed exporting of images.
18654         Still not perfect, but not outright buggy.
18655         
18656 1999-03-22  Alexander Larsson  <alla@lysator.liu.se>
18658         * configure.in:
18659         * po/hu.po:
18660         Added hungarian translation. By Shooby Ban <bansz@szif.hu>.
18662         * app/Makefile.am:
18663         Added $* to the dia call in run_dia.sh
18665 1999-03-22  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
18666         
18667         * lib/color.[ch]:
18668         Added color_equals() call.
18670         * objects/standard/arc.c:
18671         * objects/standard/line.c:
18672         Don't save unneccesary data.
18673         
18674         * objects/standard/box.c:
18675         * objects/standard/ellipse.c:
18676         * objects/standard/image.c:
18677         * objects/standard/polyline.c:
18678         * objects/standard/zigzagline.c:
18679         Share properties dialog.
18680         Don't save unneccesary data.
18681         
18682 1999-03-22  Seth Alves  <alves@hungry.com>
18684         * app/menus.c:
18685         * app/diagram.c:
18686         * app/display.c:
18687         small changes so that gnome menus aren't broken
18688         
18689 1999-03-22  Alexander Larsson  <alla@lysator.liu.se>
18691         * po/da.po:
18692         Added danish translation from lrclause@cs.uiuc.edu.
18694         * po/POFILES.in:
18695         Updated file.
18697         * po/update_pofiles_in.sh:
18698         Added script that updates POFILES.in.
18699         This should probably be run automatically from somewhere.
18701 1999-03-19  Alexander Larsson  <alla@lysator.liu.se>
18703         * app/diagram.[ch]:
18704         Added function diagram_update_menu_sensitivity() which
18705         sets the sensitivity of some menu items. This function
18706         is called at each diagram state change (from diagram_modified()).
18707         This is needed  because otherwise the keyboard accelerators
18708         don't work correctly.
18710         * app/display.[ch]:
18711         Changed display_set_menu_sensitivity() to display_update_menu_state().
18712         Moved lots of code to diagram_update_menu_sensitivity() in
18713         diagram.c. Optimized to only look up menu-items from path:s once.
18714         
18715         * app/disp_callbacks.c:
18716         * app/interface.c:
18717         When we get a GDK_FOCUS_CHANGE, update menu sensitivity.
18718         Need to set GDK_FOCUS_CHANGE_MASK.
18719         
18720         * app/create_object.c:
18721         Call diagram_modified when an object has been created and
18722         selected so that the menu sensitivity is updated. 
18724         * app/menus.[ch]:
18725         removed menus_set_sensitive() and menus_set_state(). Exported
18726         renamed function menus_get_item_from_path().
18728 1999-03-15  Alexander Larsson  <alla@lysator.liu.se>
18730         * app/disp_callbacks.c:
18731         Show (empty) object menus on object that has none.
18732         Show title on object menus.
18734         * app/display.c:
18735         Set zoom factor correctly when opening new displays.
18736         Better setting of scrollbars.
18738         * app/grid.c:
18739         * app/menus.h:
18740         Some reformating cleanup.
18742         * lib/diamenu.h:
18743         Added title to object menus.
18745         * objects/*/*.c:
18746         Added object menu method (NULL-valued) to all objects.
18748         * objects/standard/polyline.c:
18749         Added title to object menu.
18751 1999-03-14  Alexander Larsson  <alla@lysator.liu.se>
18753         * app/preferences.[ch]:
18754         New files. Implements the preferences dialog and
18755         loading/saving of ~/.diarc.
18757         * app/Makefile.am:
18758         Added preferences.[ch].
18760         * app/app_procs.c:
18761         Load preferences on startup.
18763         * app/commands.[ch]:
18764         Added file_preferences_callback to show the preferences dialog.
18766         * app/create_object.c:
18767         Update extents when creating object.
18768         Use the reset_tools_after_create preferences setting.
18770         * app/display.c:
18771         Use preferences when creating new display.
18773         * app/menus.c:
18774         Add preferences to menu.
18776         * app/defaults.c:
18777         * app/layer_dialog.c:
18778         * app/properties.c:
18779         Don't allow shrinking of dialog.
18780         Add i18n of some strings.
18782 1999-03-11  Kjartan Maraas  <kmaraas@fib.hl.no>
18783         * po/no.po:
18784         Norwegian translation added.
18785         
18786 1999-03-11  Alexander Larsson  <alla@lysator.liu.se>
18788         * objects/standard/line.c: 
18789         * objects/standard/arc.c: 
18790         * objects/standard/polyline.c: 
18791         * objects/standard/zigzagline.c:
18792         Loading of arrow data fixed.
18794 1999-03-09  Alexander Larsson  <alla@lysator.liu.se>
18796         * app/commands.c:
18797         Update extents when saving and exporting to postscript.
18798         Fixes a bug with postscript bounding-box being wrong.
18800         * app/defaults.c:
18801         Changed border width from 5 to 2.
18803         * app/group.c:
18804         Move grouped objects by the move-point of the first object.
18805         Fixes bug that made all objects in the group be off-grid
18806         when moving the group, even though all objects was on-grid.
18808         * app/layer_dialog.c:
18809         Update extents when changing layer.
18811 1999-03-08  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
18813        * objects/UML/uml.c: 
18814        * objects/UML/component.c: 
18815        * objects/UML/pixmaps/component.xpm: 
18816        Added the UML component object
18817         
18818 1999-03-04  Seth Alves  <alves@hungry.com>
18820         * objects/UML/generalization.c (generalization_create): avoid
18821         math on uninitialized genlz->text_width (NaN causes sigfpe)
18822         
18823         * objects/UML/realizes.c (realizes_create): same
18825         * objects/UML/dependency.c (dependency_create): same
18827 1999-03-01  Seth Alves  <alves@hungry.com>
18829         * app/display.c (ddisplay_active): don't fly a warning panel
18830         if ddisplay_active is called when no views are open.
18832         * app/commands.c (set_default_file_selection_directory): set
18833         file selector's default directory if there is already
18834         a document open.
18836 1999-02-28  Alexander Larsson  <alla@lysator.liu.se>
18838         * INSTALL:
18839         New info about imlib requirements.
18841         * Configure.in:
18842         Added lib/pixmaps/Makefile to created makefiles.
18844         * app/app_procs.c:
18845         * app/commands.c:
18846         Change from obsoleted to newer gtk calls.
18847         
18848         * load_save.c:
18849         Pass filename of the diagram when loading and saving.
18850         This creates better oportunities to handle filename saving.
18852         * lib/object.h:
18853         Pass filenames to load and save methods.
18854         
18855         * lib/dia_image.[ch]:
18856         Added dia_image_get_broken() call that returns a image which
18857         is used for 'broken' images.
18858         
18859         * lib/pixmaps/.cvsignore:
18860         * lib/pixmaps/Makefile.am:
18861         * lib/pixmaps/broken.xpm:
18862         New files for the broken image bitmap.
18864         * lib/widgets.c:
18865         Fixed bug with double destroyed filedialog.
18867         * objects/*/*.c:
18868         Updated load and save prototypes to use the new filename argument.
18870         * objects/image.c:
18871         Render broken image instead of line when got no image.
18872         Use the new filename in load and save to save (if possible)
18873         relative pathnames and to better try to find loaded images.
18875 1999-02-28  Alexander Larsson  <alla@lysator.liu.se>
18877         * TODO:
18878         Some updates to the todo file.
18879         
18880         * app/menus.c:
18881         * app/display.c:
18882         Place over/place over => sent to back/bring to front.
18883         Added some keyboard shortcuts to menus.
18884         
18885 1999-02-28  Alexander Larsson  <alla@lysator.liu.se>
18887         * lib/dia_xml.c:
18888         Changed string saving/loading to a new method. This should
18889         be much better att handling &,<,> and whitespaces.
18890         Loading strings of the old kind is still supported for backwards
18891         compatibility.
18893         * samples/ER-demo.dia:
18894         * samples/UML-demo.dia:
18895         Updated to use the new strings.
18896         
18897         * app/load_save.c:
18898         statusbar modified update fix.
18900 1999-02-27  Seth Alves  <alves@hungry.com>
18902         * app/app_procs.c (app_init): added a --export-to-ps option
18903         which will cause dia to load a dia file and save it as ps
18904         and then exit.  this is a little bogus, because it still
18905         pops up a window.  this option only shows up if --enable-gnome
18906         is used
18908         * app/display.c (display_set_menu_sensitivity): no Edit/Delete
18909         menu when built with --enable-gnome
18911         * app/interface.c (create_display_shell): build status bar
18912         even if --enable-gnome is used
18914         * app/menus.c: menu fixes for --enable-gnome
18916         * app/commands.c (file_open_dialog_ok_callback): fixed up
18917         menus when --enable-gnome is used
18918         (file_export_to_eps_callback): set a default file name
18919         when dialog is created
18921 1999-02-27  Alexander Larsson  <alex@c125.ryd.student.liu.se>
18923         * objects/UML/association.c (association_create):
18924         Fixed usage of not initialized variable.
18925         Pointed out by Seth Alves <alves@hungry.com>.
18927 1999-02-24  Alexander Larsson  <alex@c125.ryd.student.liu.se>
18929         * configure.in:
18930         Fixed detection of gnome-xml.
18931         From Valtteri Vuorikoski <vuori@k.notcom.org>.
18932         
18933         * app/app_procs.c:
18934         Fixed error detection on dlsym calls. 
18935         From Valtteri Vuorikoski <vuori@k.notcom.org>.
18937 1999-02-23  Alexander Larsson  <alla@lysator.liu.se>
18939         * objects/UML/message.c (fill_in_dialog):
18940         Fixed warnings.
18942 1999-02-22  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
18944         * objects/standard/zigzagline.c:
18945         * objects/standard/polyline.c:
18946         * objects/standard/line.c:
18947         * objects/standard/arc.c:
18948         * lib/widgets.h:
18949         * lib/arrows.h:
18950         * lib/widgets.c:
18951         Support for sizeable arrows. 
18953         * objects/standard/box.c:
18954         * objects/standard/ellipse.c:
18955         * objects/standard/image.c:
18956         Changed creation handle to lower-right.
18957         Transparent box/ellipse.
18958         
18959         * objects/standard/image.c:
18960         Better layout of properties boxes.
18962 1999-02-20  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
18964         * objects/UML/message.c (fill_in_dialog): 
18965         Fixed dialog fill in. Common dialog for all messages.
18967         * objects/UML/object.c: 
18968         Added multiple instance. Dialog related bugs fixed.
18969         Common dialog for all instances. Completed copy and destroy.
18971         * objects/UML/lifeline.c (lifeline_load): 
18972         Conn initialization bug fixed and few bad loading prevention flags.
18973         Common dialog for all lifeline objects.
18974         
18975 1999-02-15  Alexander Larsson  <alla@lysator.liu.se>
18977         * lib/dia_image.[ch]:
18978         More work on the DiaImage abstraction.
18979         
18980         * app/app_procs.c:
18981         * app/render_eps.c:
18982         * app/render_gdk.c:
18983         * objects/standard/image.c:
18984         Use the new DiaImage calls.
18986 1999-02-15  Alexander Larsson  <alla@lysator.liu.se>
18988         * app/menus.c:
18989         * app/display.c:
18990         Reversed the meaning of align horizontal/vertical.
18992 1999-02-15  Alexander Larsson  <alla@lysator.liu.se>
18994         * app/load_save.c (diagram_load):
18995         Statusbar update fix.
18997 1999-02-15  Alexander Larsson  <alla@lysator.liu.se>
18999         * app/interface.c (create_display_shell):
19000         Fixed status bar size.
19001         
19002 1999-02-15  Alexander Larsson  <alla@lysator.liu.se>
19004         * lib/dia_image.[ch]:
19005         Added extern declaration for dia_image_release.
19006         Removed dia_image_draw, as it's not neseccary.
19008 1999-02-14  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
19009         
19010         * app/object_ops.c: 
19011         * app/menus.c: 
19012         Added equal distance alignment both vertical and horizontal.
19013         
19014         * objects/UML/object.c: 
19015         Added a couple of attributes to load/read that were missing.
19017         * objects/UML/lifeline.c: 
19018         Better handling of handles. Fixed another bug I forgot to add
19019         to my last patch.
19020         
19021 1999-02-13  Alexander Larsson  <alla@lysator.liu.se>
19023         Patch from Lars Clausen <lrclause@shasta.cs.uiuc.edu>
19024         
19025         * lib/dia_image.[ch]:
19026         * lib/Makefile.am:
19027         New files. DiaImage wraps the GdkImlibImage.
19029         * lib/render.h:
19030         * app/render_eps.c:
19031         * app/render_gdk.c:
19032         * lib/render_store.[ch]:
19033         * objects/standard/image.c:
19034         Use the new DiaImagetype.
19036         * lib/widgets.c:
19037         Removed unused variable to eliminate  warning.
19039 1999-02-11  Alexander Larsson  <alla@lysator.liu.se>
19041         * objects/standard/box.c:
19042         Added rounded corners on the box object.
19044         * lib/widgets.[ch]:
19045         Updated the DiaFileSelector widget.
19046         
19047 1999-02-09  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
19049         * objects/UML/object.c (objet_draw): 
19050         Completed underlining of all object name lines. 
19052         * objects/UML/message.c (fill_in_dialog): 
19053         Fixed a bug that filled incorrectly the message's dialog.
19055         * objects/UML/lifeline.c (lifeline_load): 
19056         Some cleanning and fixed a couple of bugs that caused
19057         crashes after reading diagrams with lifelines.
19059         * lib/text.c: 
19060         Added flags to prevent crash with void strings
19062 1999-02-07  Matthias Köster <Matthias.Koester@Informatik.Uni-Oldenburg.DE>
19063         * app/display.[ch]:
19064         Added statusbar to the display widget. Currently shows the zoom
19065         factor and modified flag of the viewed diagram. The statusbar is
19066         updated upon calls to ddisplay_zoom and ddisplay_update_statusbar.
19067         This caused the following additions:
19068         
19069         * app/diagram.[ch]:
19070         Added function diagram_set_modified. Calls
19071         ddisplay_update_statusbar for all displays showing the modified diagram.
19072         Changed diagram_modified to call diagram_set_modified.
19073         
19074         * app/interface.c:
19075         Added the creation of the statusbar.
19076         
19077         * app/load_save.c:
19078         diagram_save now calls diagram_set_modified instead of setting
19079         dia->modified. Needed to force call to display_update_statusbar
19080         
19081         * app/commands.c:
19082         Changed the way view_show_all works. Now calls ddisplay_zoom
19083         instead of directly setting the zoom_factor, so the zoom factor is
19084         correctly shown in the statusbar.
19086         * app/magnify.c:
19087         Fixed rubberband zoom to use ddisplay_zoom().
19088         
19089 1999-02-07  Fredrik Hallenberg  <hallon@lysator.liu.se>
19091         * app/app_procs.c
19092         Rudimentary GNOME session management.
19093         
19094         * app/disp_callbacks.c
19095         * app/interface.c
19096         * app/menus.c
19097         * app/menus.h
19098         GNOME menus. Problems: 
19099         Callbacks doesn't get user_data.
19100         Weird warnings when creating popup menus.
19101         menus_set_sensitive(), menus_set_state() doesn't work.
19103 1999-02-05  Lars Clausen  <lrclause@shasta.cs.uiuc.edu>
19105         * configure.in:
19106         Add AM_PATH_GDK_IMLIB() call.
19108         * app/Makefile.am:
19109         Add gdk_imlib to linking flags.
19111         * app/app_procs.c:
19112         Init gdk_imlib.
19113         Print library-loading error messages on stdout too.
19115         * app/interface.c:
19116         Add standard image to toolbox.
19117         
19118         * app/render_eps.c: 
19119         Set a more reasonable dot length.  Fixed
19120         missing initialization of dot length.
19121         Added draw_image methods.
19123         * app/render_gdk.c (new_gdk_renderer): 
19124         Dot a bit wider.  Looks good in normal mode now.
19126         * objects/standard/image.c:
19127         * objects/standard/pixmaps/image.xpm:
19128         New files. Standard object for images.
19129         
19130         * app/render_eps.c (set_linestyle):
19131         * app/render_gdk.c (set_linestyle):
19132         * lib/widgets.c (dia_line_style_selector_init): 
19133         * lib/render.h: 
19134         New line style DOTTED.
19136         * lib/render.h:
19137         * lib/render_store.c:
19138         Change DrawImage call to use gdk_imlib.
19140         * lib/widgets.[ch]:
19141         Added widgets for selecting files.
19142         Added dotted to the linestyle selector.
19144 1999-02-06  Alexander Larsson  <alla@lysator.liu.se>
19146         * objects/network/printer.c:
19147         * objects/network/network.c:
19148         * objects/network/pixmaps/printer.xpm:
19149         * objects/network/.cvsignore:
19150         * objects/network/Makefile.am:
19151         * objects/network/pixmaps/Makefile.am:
19152         New printer object in network.
19153         From Martin Hawlisch <hawlisch@roxi.rz.fh-mannheim.de>
19155         * TODO:
19156         Added known XML bug.
19157         
19158 1999-02-06  Alexander Larsson  <alla@lysator.liu.se>
19160         * app/load_save.c:
19161         * lib/dia_xml.c:
19162         Reverted back from #include <gnome-xml/tree.h> to
19163         #include <tree.h> as this is fixed by the xml-config program.
19164         The former way broke for some people.
19165         Reported by blizzard@redhat.com.
19167         * objects/UML/lifeline.c:
19168         * objects/UML/message.c:
19169         * objects/UML/object.c:
19170         Removed some warnings.
19171         
19172 1999-02-04  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
19174         * objects/UML/lifeline.c: 
19175         Fixed connection points over the life line when the focus of
19176         control is not drawn.
19178         * objects/UML/message.c: 
19179         Now a recursive message can be freely resized using the handles.
19181 1999-02-02  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
19183         * objects/UML/lifeline.c:
19184         Added connection points.
19185         Added properties dialog with the option to draw/hide focus of control
19186         box and destruction mark.
19188         * objects/UML/object.c: 
19189         Added properties dialog and stereotype, explicit state and attributes. 
19190         It's also possible to mark the object as active.
19192         * objects/UML/pixmaps/object.xpm: 
19193         Cosmetic change.
19195         * objects/UML/message.c:
19196         Added "recursive" message type (was not necessary to use OrthConn).
19198 1999-02-02  Alexander Larsson  <alla@lysator.liu.se>
19200         * objects/standard/arc.c:
19201         Removed old debug code. Fixes a visual bug. From lrclause@cs.uiuc.edu.
19203 1999-02-01  Alexander Larsson  <alla@lysator.liu.se>
19205         Patch from Lars R. Clausen <lrclause@cs.uiuc.edu>
19206         
19207         * app/load_save.c:
19208         * lib/dia_xml.c:
19209         Update xml includes to gnome-xml/*.h.
19211         * objects/standard/arc.c:
19212         Only one property dialog per type.
19213         Fix arrows directions.
19215         * objects/standard/box.c:
19216         * objects/standard/ellipse.c:
19217         * objects/standard/textobj.c
19218         Added default properties dialog.
19219         
19221 1999-01-31  Alejandro Aguilar Sierra  <asierra@servidor.unam.mx>
19223         * objects/UML/Makefile.am: 
19224         * objects/UML/uml.c:
19225         * objects/UML/lifeline.c: 
19226         * objects/UML/object.c: 
19227         * objects/UML/message.c:
19228         * objects/UML/pixmaps/lifeline.xpm: 
19229         * objects/UML/pixmaps/object.xpm: 
19230         * objects/UML/pixmaps/message.xpm:
19231         Added 3 new UML objects for dynamic modeling. To avoid internal 
19232         conflicts, the name "objet" is used for object "object".        
19234         * lib/arrows.[ch]: 
19235         Added ARROW_HALF_HEAD arrow type to allow drawing asynchronous
19236         UML messages.
19237         
19238 1999-01-30  Alexander Larsson  <alla@lysator.liu.se>
19240         * app/display.[ch]:
19241         * app/modify_tool.c:
19242         Added autoscrolling while doing rubber-band select.
19243         This patch from Matthias Köster
19244         (Matthias.Koester@Informatik.Uni-Oldenburg.DE)
19245         
19247 1999-01-28  Alexander Larsson  <alla@lysator.liu.se>
19249         * app/defaults.[ch]:
19250         New files, deals with default properties dialog.
19252         * lib/diamenu.h:
19253         New file. Contains definitions for the new object menu.
19255         * lib/poly_conn.[ch]:
19256         New file. Base class for poly-line like objects.
19258         * objects/standard/polyline.c:
19259         * objects/standard/pixmaps/polyline.xpm:
19260         New files. Polyline object.
19262         * app/app_procs.c:
19263         Fixed bug with infinite loop when registering sheets.
19264         
19265         * app/commands.c:
19266         Removed unneccesary stuff.
19268         * app/disp_callbacks.c:
19269         Support for object menus.
19271         * app/interface.c:
19272         Added polyline to toolbox.
19273         Added call to tool_options_dialog_show() when double clicking on
19274         tool.
19276         * app/tool.[ch]:
19277         New function tool_options_dialog_show() for tool properties.
19279         * lib/arrows.[ch]:
19280         Added ARROW_NONE.
19282         * lib/object.h:
19283         Added ObjectType methods for handling object default dialogs.
19284         Added Object method for handling object_menu.
19285         Added unused methods to ObjectTypeOps for future binary
19286         compatibility.
19288         * lib/widgets.[ch]:
19289         Added DiaArrowTypeSelector widget.
19291         * objects/standard/arc.c:
19292         * objects/standard/zigzagline.c:
19293         Added support for default properties.
19295         * objects/standard/line.c:
19296         Added support for default properties.
19297         Just use one properties dialog for all line objects. NOTE: This
19298         seems to have a bug. We're working on it.
19300         * standard/standard.c:
19301         Add the polyline object.
19303 1999-01-27  Alexander Larsson  <alla@lysator.liu.se>
19305         * app/modify_tool.c:
19306         Commented out buggy transitive select function. It wasn't really
19307         meant to go into cvs.
19308         
19310 1999-01-25  Fredrik Hallenberg  <hallon@lysator.liu.se>
19312         * autogen.sh:
19313         * acconfig.h:
19314         * configure.in:
19315         * Makefile.am:
19316         * app/Makefile.am:
19317         * po/POTFILES.in:
19318         * app/intl.h
19319         i18n-support.
19321         * po/sv.po:
19322         Swedish translation. Not completed.
19323         
19324         * configure.in:
19325         * acconfig.h:
19326         Added possibility to enable GNOME specific code with configure.
19328         * configure.in:
19329         Added possibility to set debug level with configure.
19331         * commands.[hc]:
19332         Added about dialog.
19334         * app_procs.c
19335         * commands.c
19336         * interface.c
19337         * menus.c
19338         Added some GNOME specific code. Not ready for use.
19340 1999-01-24  Alexander Larsson  <alla@lysator.liu.se>
19342         * INSTALL:
19343         Added text about needing gtk 1.1.13 and gnome-xml.
19344         
19345         * NEWS:
19346         Described changes since last version (0.20).
19348         Released version 0.30, tagged DIA_0_30.
19350 1999-01-22  Alexander Larsson  <alla@lysator.liu.se>
19352         * app/magnify.c (magnify_button_release):
19353         Fixed a problem when zooming in on a very small box would
19354         not release the grabbed pointer-focus.
19356 1999-01-21  Alexander Larsson  <alla@lysator.liu.se>
19358         * app/load_save.c (diagram_load):
19359         Be somewhat more robust when loading files that
19360         are not diagrams.
19361         
19362 1999-01-21  Alexander Larsson  <alla@lysator.liu.se>
19364         * app/app_procs.c:
19365         * objects/ER/er.c:
19366         * objects/UML/uml.c:
19367         * objects/network/network.c:
19368         * objects/standard/standard.c:
19369         Added versioning of object libraries.
19371         * app/create_object.c:
19372         Don't change tool when an object is created.
19373         
19374         * objects/network/network.c:
19376         * TODO:
19377         Update
19379 1999-01-19  Alexander Larsson  <alla@lysator.liu.se>
19381         * configure.in:
19382         Updated gtk requirement to Gtk+ 1.1.13.
19384         * app/display.c:
19385         Always add one screenful of scrolling space on
19386         each side of a diagram window.
19388 1999-01-19  Jeff Garzik  <jgarzik@pobox.com>
19390         * autogen.sh:
19391         Tell automake to auto-install missing files.
19393         * app/menus.c:
19394         Renamed deprecated Gtk+ function.
19396 1999-01-16  Alexander Larsson  <alla@lysator.liu.se>
19398         * Makefile.am:
19399         * configure.in:
19400         * samples/Makefile.am:
19401         * samples/ER-demo.dia:
19402         * samples/UML-demo.dia:
19403         Added samples directory.
19404         Added samples for ER and UML.
19405         
19406         * app/commands.c:
19407         * app/disp_callbacks.c:
19408         * app/menus.c:
19409         Zoom is done by sqrt(2) instead of 2.
19410         Lots of more zoom options in the menu.
19412         * objects/ER/relationship.c:
19413         Relationships have 8 connectionpoints instead of 4.
19415         * objects/UML/class.c:
19416         UML class name font a bit smaller.
19417         Fixed stupid bug in the copy operation.
19418         
19419         * app/display.c:
19420         Displays are opened at 500x400 instead of 256x256.
19422         * app/load_save.c:
19423         Fixup of internal error message.
19425         * app/color_area.c:
19426         * app/diagram.c:
19427         * app/modify_tool.c:
19428         * lib/object.c:
19429         Removed debug printf's.
19430         
19431         * TODO (BUGS):
19432         Added new known bug.
19434 1999-01-16  Alexander Larsson  <alla@lysator.liu.se>
19436         * app/interface.c:
19437         * app/menus.c:
19438         Fixed so accelerator groups work in all windows.
19439         Updated to new gtk function names.
19441         * TODO (BUGS):
19442         Removed fixed bug.
19444         * app/display.c:
19445         Updated to new gtk function names.
19446         Set sensitivity of the align menu items.        
19448         * objects/ER/pixmaps/Makefile.am:
19449         * objects/UML/pixmaps/Makefile.am:
19450         * objects/network/pixmaps/Makefile.am:
19451         Fix so that make dist works.
19453         * app/app_procs.c:
19454         * app/color_area.c:
19455         * app/commands.c:
19456         * app/diagram.c:
19457         * app/grid.c:
19458         * app/layer_dialog.c:
19459         * app/load_save.c:
19460         * app/object_ops.c:
19461         * app/properties.c:
19462         * lib/diagramdata.[ch]: 
19463         * lib/message.c:
19464         * lib/objects/ER/attribute.c:
19465         * lib/objects/ER/entity.c:
19466         * lib/objects/ER/participation.c:
19467         * lib/objects/ER/relationship.c:
19468         * lib/objects/ER/.c:
19469         * objects/UML/actor.c:
19470         * objects/UML/association.c:
19471         * objects/UML/class_dialog.c:
19472         * objects/UML/dependency.c:
19473         * objects/UML/generalization.c:
19474         * objects/UML/large_package.c:
19475         * objects/UML/realizes.c:
19476         * objects/UML/.c:
19477         * objects/UML/.c:
19478         Updated to new gtk function names.
19479         Removed warnings.
19481 1999-01-15  Alexander Larsson  <alla@lysator.liu.se>
19483         * TODO:
19484         Update TODO.
19486         * app/app_procs.c:
19487         Fixed loading of diagrams specified as arguments.
19489         * objects/ER/attribute.c:
19490         * objects/ER/entity.c:
19491         * objects/ER/er.c:
19492         * objects/ER/participation.c:
19493         * objects/ER/relationship.c:
19494         Updated the ER objects.
19495         
19497 1999-01-14  Alexander Larsson  <alla@lysator.liu.se>
19499         * configure.in:
19500         * app/Makefile.am:
19501         * objects/Makefile.am:
19502         * objects/ER/attribute.c:
19503         * objects/ER/entity.c:
19504         * objects/ER/er.c:
19505         * objects/ER/participation.c:
19506         * objects/ER/relationship.c:
19507         * objects/ER/pixmaps/Makefile.am:
19508         * objects/ER/pixmaps/attribute.xpm:
19509         * objects/ER/pixmaps/entity.xpm:
19510         * objects/ER/pixmaps/participation.xpm:
19511         * objects/ER/pixmaps/relationship.xpm:
19512         * objects/ER/pixmaps/weakentity.xpm:
19513         First commit of entity relationship objects.
19514         These were done by hallon@lysator.liu.se.
19515         There are still stuff to do on these.
19516         
19517 1999-01-14  Alexander Larsson  <alla@lysator.liu.se>
19519         * TODO:
19520         Updates.
19522         * app/diagram.[ch]:
19523         Change diagram_remove_all_selected to take new argument
19524         delete_empty. Empty objects are deleted only if it is TRUE.
19525         Removed call to close_eps_renderer. This is now done in end_render
19526         in the eps renderer.
19528         * app/create_object.c:
19529         * app/layer_dialog.c:
19530         Update calls to diagram_remove_all_selected.
19532         * app/commands.c:
19533         Update calls to diagram_remove_all_selected.
19534         Some code reformating.
19535         Changed order of adding updates i align_h and align_v.
19537         * app/modify_tool.c:
19538         Update calls to diagram_remove_all_selected.
19539         Added pointer grab when doing rubber-band selection, this fixes
19540         the bug when draging the box over to another window.
19542         * app/connectionpoint_ops.[ch]:
19543         diagram_update_connections_object changed to take an argument
19544         update_nonmoved. This lets connections that has not moved, but
19545         the stuff they're connected to has been moved work.
19546         Update calls to the new diagram_update_connections_object.
19548         * app/properties.c:
19549         Update calls to the new diagram_update_connections_object.
19550         Update extents when properties are applied.
19551         
19552         * app/disp_callbacks.c:
19553         Added support for zooming with the '+' and '-' keys.
19555         * app/menus.c:
19556         Removed old keyboard shortcuts for zoom.
19558         * lib/render.h:
19559         Added calls begin_render and end_render to renderer.
19560         These can be used for setup and cleanup.
19562         * lib/diagramdata.c:
19563         Added calls to begin_render and end_render in data_render.
19565         * app/render_gdk.c:
19566         Added begin_render and end_render.
19568         * app/render_eps.[ch]:
19569         Added begin_render and end_render.
19570         Moved close_eps_renderer code to end_render.
19571         Various fixes to the generated eps code. This fixes importing
19572         generated eps into LYX.
19573         
19574 1999-01-12  Alexander Larsson  <alla@lysator.liu.se>
19576         * TODO:
19577         Update of todo.
19578         
19579         * app/menus.c:
19580         Menus for alignment updated.
19582         * app/object_ops.[ch]:
19583         Functions for object alignment updated.
19585         * app/commands.[ch]:
19586         Object alignment callbacks updated.
19587         New diagrams are called Untitled-<nr>.
19589         * app/layer_dialog.c:
19590         Active layer selected when showing layers from new
19591         diagram.
19593         * app/load_save.c:
19594         Compress xml files when saving.
19595         Use xml namespace 'dia'.
19597         * lib/object.h:
19598         Minor comment update.
19600         * objects/UML/class_dialog.c:
19601         Cleanup of the gkt_list_item moving code.
19602         Fixed bug with update of operation when moving parameters.
19604 1999-01-10  Alexander Larsson  <alla@lysator.liu.se>
19606         * app/layer_dialog.[ch]:
19607         Fixed the rest of the layers dialog.
19609         * app/dialog.c:
19610         Added call to redo layer dialogs diagram list when changing
19611         diagram name.
19613         * lib/diagramdata.[ch]:
19614         Added data_raise_layer and data_lower_layer functions for
19615         raising/lowering layers. Added data_add_layer_at for adding a
19616         layer at a specified index.
19618 1999-01-05  Alexander Larsson  <alla@lysator.liu.se>
19620         This is the asierra-990105 patch done by asierra@servidor.unam.mx.
19621                 
19622         * app/app_procs.c:
19623         Added support for reading diagrams from the command line.
19625 1998-12-21  Alexander Larsson  <alla@lysator.liu.se>
19627         This is the asierra-981220 patch done by asierra@servidor.unam.mx.
19628                 
19629         * app/commands.[ch]:
19630         Added objects_align_callback().
19632         * app/menus.c:
19633         Added align objects to menu.
19635         * app/object_ops.[ch]:
19636         Add object_list_align().
19637         
19638 1998-12-17  Alexander Larsson  <alla@lysator.liu.se>
19639         * app/layer_dialog.[ch]:
19640         New files. Handles the layers dialog. Needs a bugfix for glib to
19641         work. Sent patch to gtk-list.
19642         
19643         * app/pixmaps/new.xpm:
19644         * app/pixmaps/eye.xbm:
19645         * app/pixmaps/lower.xpm:
19646         * app/pixmaps/raise.xpm:
19647         * app/pixmaps/delete.xpm:
19648         New files. Images for the layer dialog buttons.
19649         
19650         * lib/diagramdata.h
19651         * lib/diagramdata.c
19652         New files for the DiagramData and Layer structures and functions.
19653         
19654         * app/app_procs.c:
19655         Added call to create_layer_dialog() on startup.
19656         
19657         * app/commands.[ch]:
19658         New callbacks for showing the properties and layout dialog.
19659         Changes for the new DiagramData structure.
19661         * app/connectionpoint_ops.c:
19662         * app/cut_n_paste.c:
19663         * app/diagram.[ch]:
19664         * app/display.[ch]:
19665         * app/group.c:
19666         * app/modify_tool.c:
19667         * app/object_ops.[ch]:
19668         * app/render_eps.c:
19669         * lib/object.[ch]:
19670         Changes for the new DiagramData structure.
19672         * app/interface.c:
19673         * app/properties.c:
19674         Set correct wmclasses.
19676         * app/load_save.c:
19677         Fix load and save of layers.
19679         * diagram.dtd:
19680         Update DTD for layers.
19681         
19682         * app/menus.c:
19683         New menus for dialogs.
19685         
19686         * TODO:
19687         Some updates.
19688         
19689 1998-12-06  Alexander Larsson  <alla@lysator.liu.se>
19691         * TODO:
19692         Removed the gtk 1.1.5 stuff.
19694         * configure.in:
19695         Updated gtk check to version 1.1.5.
19696         Updated version from 0.20 to 0.30
19698         * app/commands.[ch]:
19699         Updated some callbacks to be of type GtkItemFactoryCallback1.
19700         Not all are done yet, but it works anyway.
19702         * app/display.h:
19703         Removed Gtk 1.0.0 GtkAcceleratorTable references.
19704         
19705         * app/interface.c:
19706         * app/menus.[ch]:
19707         Update to Gtk 1.1.x functions.
19708         Use ItemFactory instead of MenuFactory.
19709         
19710         * app/render_gdk.c:
19711         Removed Gtk 1.0.0 references.
19713         * objects/UML/class_dialog.c:
19714         Scrolled window updates for Gtk 1.1.5.
19715         
19716         * lib/dia_xml.c:
19717         Removed ugly fix for gnome-xml bug. Make sure you get the
19718         newest version of gnome-xml from CVS.
19719         
19720 1998-12-05  Alexander Larsson  <alla@lysator.liu.se>
19722         * TODO:
19723         Removed the xml load/save line.
19725         * lib/files.[ch]:
19726         Removed files.
19727         
19728         * lib/Makefile.am:
19729         Removed building of files.c
19731         * app/load_save.c:
19732         * lib/connection.c:
19733         * lib/element.c:
19734         * lib/object.c:
19735         * lib/orth_conn.c:
19736         * lib/render_object.c:
19737         * objects/UML/actor.c:
19738         * objects/UML/association.c:
19739         * objects/UML/class.c:
19740         * objects/UML/constraint.c:
19741         * objects/UML/dependency.c:
19742         * objects/UML/generalization.c:
19743         * objects/UML/implements.c:
19744         * objects/UML/large_package.c:
19745         * objects/UML/note.c:
19746         * objects/UML/realizes.c:
19747         * objects/UML/small_package.c:
19748         * objects/UML/uml.c:
19749         * objects/UML/usecase.c:
19750         * objects/network/bus.c:
19751         * objects/standard/arc.c:
19752         * objects/standard/box.c:
19753         * objects/standard/ellipse.c:
19754         * objects/standard/line.c:
19755         * objects/standard/textobj.c:
19756         * objects/standard/zigzagline.c:
19757         Removed all includes of files.h
19759         
19760 1998-12-05  Alexander Larsson  <alla@lysator.liu.se>
19762         * dialog.dtd:
19763         Made the val property of string be implied.
19764         This makes it possible to save strings that
19765         are NULL. Just leave out val.
19767         * objects/lib/dia_xml.c:
19768         Fixed string so that it is possible to save strings
19769         that are NULL. Also made an ugly workaround of a
19770         bug in gnome-xml which removes empty properties.
19771         
19772         * objects/lib/orth_conn.c:
19773         Fixed a bug in saving. Forgot to step through the
19774         directions.
19775         
19776         * objects/UML/association.c: 
19777         * objects/UML/class.c: 
19778         * objects/UML/constraint.c: 
19779         * objects/UML/dependency.c: 
19780         * objects/UML/generalization.c: 
19781         * objects/UML/implements.c: 
19782         * objects/UML/large_package.c: 
19783         * objects/UML/note.c: 
19784         * objects/UML/small_package.c:
19785         * objects/UML/realizes.c:
19786         * objects/UML/usecase.c: 
19787         * objects/UML/actor.c: 
19788         Fixed UML objects to save as xml.
19789         The last two were done by asierra@servidor.unam.mx (asierra-981204)
19790         
19791         * objects/UML/uml.[ch]:
19792         Updated *_write() and *_read() functions to use xml.
19794         * objects/network/bus.c: 
19795         * objects/network/computer.c: 
19796         * objects/network/disc.c: 
19797         * objects/network/monitor.c:
19798         Updated network diagrams to use xml.
19800 1998-12-02  Alexander Larsson  <alla@lysator.liu.se>
19802         * dialog.dtd:
19803         New file. DTD that describes the xml file format
19804         dia uses.
19806         * lib/dia_xml.[ch]:
19807         New files. Support for saving object to xml files.
19809         * configure.in:
19810         * app/Makefile.am:
19811         * lib/Makefile.am:
19812         Added check for and usage of gnome-xml library.
19814         * app/load_save.c:
19815         Major chages. Now saves/loads diagrams as xml.
19817         * lib/object.[ch]:
19818         * lib/element.[ch]:
19819         * lib/connection.[ch]:
19820         * lib/orth_conn.[ch]:
19821         * lib/render_object.[ch]:
19822         * lib/text.[ch]:
19823         Updated object support load/save functions for xml:
19825         * object/standard/arc.c:
19826         * object/standard/box.c:
19827         * object/standard/ellipse.c:
19828         * object/standard/line.c:
19829         * object/standard/textobj.c:
19830         * object/standard/zigzagline.c:
19831         Updated all standard objects to use xml.
19832         
19833         NOTE NOTE NOTE
19834         Only the standard objects are converted right now, don't
19835         save or load uml or network diagrams yet. Also, since this
19836         is new code it is deemed a bit unstable.
19837         
19838         * TODO
19839         Added a know bug.
19841 1998-12-01  Alexander Larsson  <alla@lysator.liu.se>
19843         * objects/UML/class.c:
19844         Changed classname font to Helvetica.
19845         Added more space above the classname
19847         * objects/UML/usecase.c:
19848         Correct placements of connectionpoints on ellipse.
19849         Better algorithm for deciding aspect ration on
19850         ellipse.
19852         These changes were made by Alejandro Aguilar Sierra
19853         <asierra@servidor.unam.mx>. (asierra-981201)
19855 1998-11-30  Alexander Larsson  <alla@lysator.liu.se>
19857         * objects/UML/actor.c:
19858         Changed the extents and alignment of the element
19859         and the text.
19861         * objects/UML/.cvsignore:
19862         Added usecase.lo and actor.lo.
19864 1998-11-30  Alexander Larsson  <alla@lysator.liu.se>
19866         * objects/UML/actor.c:
19867         * objects/UML/usecase.c:
19868         * objects/UML/pixmaps/actor.xpm:
19869         * objects/UML/pixmaps/case.xpm:
19870         New files. Implements usecase and actor UML objects.
19871         These objects are done by Alejandro Aguilar Sierra
19872         <asierra@servidor.unam.mx>.
19873         
19874         * objects/UML/Makefile.am:
19875         * objects/UML/pixmaps/Makefile.am:
19876         Added usecase and actor to makefile.
19877         
19878         * AUTHORS:
19879         Added Alejandro and Jerome to autors list.
19880         
19881 1998-11-25  Alexander Larsson  <alla@lysator.liu.se>
19883         * objects/UML/class.c (umlclass_load):
19884         Fixed typo. Reported by Jerome.Abela@solsoft.fr
19886 1998-11-24  Alexander Larsson  <alla@lysator.liu.se>
19888         * app/properties.c:
19889         Update connections when doing apply in the properties window.
19891         * objects/UML/uml.[ch]:
19892         * objects/UML/class.[ch]:
19893         * objects/UML/class_dialog.c:
19894         Added connection points on both sides of attributes and
19895         operations in UML classes.
19896         Based on idea from Jerome.Abela@solsoft.fr
19897         
19898 1998-11-24  Alexander Larsson  <alla@lysator.liu.se>
19900         * README:
19901         Some new documentation about handles and connectionpoints.
19902         
19903         * lib/object.[ch]:
19904         Added functions object_add_connectionpoint and
19905         object_remove_connectionpoint for handling a dynamic
19906         number of connectionpoints.
19908         * objects/UML/class.c:
19909         Only reserve space for stereotype when it is shown.
19911         These changes are from Jerome Abela <Jerome.Abela@solsoft.fr>
19913 1998-11-08  Alexander Larsson  <alla@lysator.liu.se>
19915         * app/connectionpoint_ops.c:
19916         * app/commands.c:
19917         * app/disp_callbacks.c:
19918         * app/display.[ch]:
19919         * app/grid.c:
19920         * app/handle_ops.c:
19921         * app/magnify.c:
19922         * app/modify_tool.c:
19923         * app/render_gdk.[ch]:
19924         * lib/render.h:
19925         Huge cleanup of internal rendering system.
19926         Moved a lot of data (pixmap, width, height & gc) into the GdkRenderer.
19927         This gives a few new methods for Interactive Renderers for setting
19928         clipping regions and drawing pixel based lines and rects.
19929         Updated the rest of the code to use the new stuff.
19930         
19931         * app/render_eps.c:
19932         Fixed warning.
19934         * lib/widgets.c:
19935         * objects/standard/zigzagline.c
19936         Fixed unused variable warnings.
19938         * lib/font.c:
19939         Fixedbug with stringwidth where width==0.
19941         * TODO:
19942         Added known bug.
19944 1998-11-02  Alexander Larsson  <alla@lysator.liu.se>
19946         * lib/widgets.[ch]:
19947         Added suppot for setting the font of a
19948         DiaFontSelector widget.
19949         Also fixed some typos in the header.
19951         * lib/object.h: 
19952         Added a comment about the GetPRoperties method call.
19953         You have to make sure to update widget state when
19954         this method is called. (Not all objects do this yet,
19955         to be fixed.)
19957         * TODO:
19958         Some small updates
19960 1998-11-01  Alexander Larsson  <alla@lysator.liu.se>
19962         * lib/font.c
19963         Fixed problem with height of ascent and descent for fonts.
19964         It didn't use the whole height (==ascent+descent) when calculatine
19965         ascent_ratio and descent_ratio.
19967         * objects/standard/textobj.c:
19968         * objects/standard/box.c:
19969         * objects/standard/ellipse.c:
19970         * objects/standard/line.c:
19971         * objects/standard/arc.c:
19972         Updated and added property dialogs for these objects.
19973         Also added line width/color/style to those objects
19974         that didn't have it.
19975         This change breaks fileformat compatibility for these objects.
19976         
19977         * objects/standard/zigzagline.c:
19978         Changed zigzagline to be based on OrthConn, much nicer.
19979         Also added line style and color to properties.
19980         This change breaks fileformat compatibility for zigzagline.
19982         * lib/message.c:
19983         Fixed bug in message(). Forgot a pair of '&'.
19985 1998-10-29  Alexander Larsson  <alla@lysator.liu.se>
19987         * lib/widgets.[ch]:
19988         Added DiaColorSelector widget.
19989         This is a colored button that pops up a color selection
19990         dialog when pressed.
19992 1998-10-28  Alexander Larsson  <alla@lysator.liu.se>
19994         * lib/widgets.[ch]:
19995         * lib/Makefile.am:
19996         New files, added widgets for selecting fonts, alignment
19997         and line-style. Will be used later.
19999 1998-10-12  Alexander Larsson  <alla@lysator.liu.se>
20001         * app/Makefile.am:
20002         * lib/Makefile.am:
20003         * objects/UML/Makefile.am:
20004         * objects/network/Makefile.am:
20005         * objects/standard/Makefile.am:
20006         Changed "CFLAGS = -Wall -g" to "CFLAGS = @CFLAGS@"
20007         in all Makefile.am.
20009 1998-10-03  Alexander Larsson  <alla@lysator.liu.se>
20011         * app/handle_ops.c (handle_draw):
20012         connected HANDLE_MINOR_CONTROL also becomes red.
20014 1998-10-02  Alexander Larsson  <alla@lysator.liu.se>
20016         * Makefile.am:
20017         removed -ldl from linking. This is added if needed by configure.
20019         * app/app_procs.c:
20020         Open dlls with RTLD_LAZY if it is defined.
20021         Some cleanups: char *error -> const char *error
20022         Added fprintf()'s to where we exited because of errors.
20024         * lib/files.c:
20025         Include <sys/types.h>
20027 1998-10-01  Alexander Larsson  <alla@lysator.liu.se>
20029         * acconfig.h:
20030         * configure.in:
20031         * app/app_procs.c:
20032         Detect dlopen better.
20033         Detect wether dlopen needs an underscore in the identifier.
20034         This code was mostly borrowed from guile.
20036         * lib/sheet.[ch]:
20037         * app/app_procs.c:
20038         * objects/standard/standard.c:
20039         * objects/network/network.c:
20040         * objects/UML/uml.c:
20041         * most objects:
20042         Changed the way sheets reference objects to use just the
20043         name. Changed module loading to a two stage model:
20044         First register_objects() is called for all modules.
20045         Then register_sheets() is called. This means that
20046         sheets can safely include objects from other modules.
20047         
20049 1998-09-30  Alexander Larsson  <alla@lysator.liu.se>
20051         * objects/network/bus.c:
20052         * objects/network/network.c:
20053         * objects/network/Makefile.am:
20054         New file bus.c. Added new object: Ethernet bus.
20056         * objects/standard/box.c:
20057         Added call to gtk_spin_button_set_numeric for linewidth spinner
20058         in property dialog.
20060 1998-09-30  Alexander Larsson  <alla@lysator.liu.se>
20062         * app/connectionpoint_ops.c:
20063         * app/create_object.c:
20064         * app/group.c:
20065         * app/handle_ops.c:
20066         * app/modify_tool.c:
20067         * lib/connection.c:
20068         * lib/element.c:
20069         * lib/handle.h:
20070         * lib/object.c:
20071         * lib/orth_conn.c:
20072         * loads of objects:
20073         Changed handle->connectable to handle->connect_type.
20074         Now handles can be HANDLE_CONNECTABLE_NOBREAK, which means
20075         that their connections don't break when moving objects.
20077         * app/diagram.c:
20078         Always select the last handle in an object that has
20079         the closest distance.
20080         
20081         * lib/geometry.[ch]:
20082         Added rectangle_add_point function.
20083         
20085 1998-09-27  Alexander Larsson  <alla@lysator.liu.se>
20087         * app/properties.[ch]: New files. Handles the new properties
20088         dialog.
20090         * app/modify_tool.c: Changed to use new properties dialog.
20092         * app/object_ops.[ch]: Removed object_changed_callback, as it's
20093         not needed anymore. This is now handled differently in
20094         properties.c
20096         * lib/object.[ch]:
20097         Changed the properties ops for objects. Removed typedefs
20098         ChangedObjectTime and ObjectChangedFunc needed for the old way.
20099         Added object_return_null function.
20100         
20101         * app/group.c:
20102         * lib/render_object.c:
20103         * objects/*/*.c:
20104         Changed objects to use the new properties dialog.
20105         
20107 1998-09-14  Nuno Ferreira  <nmrf@rnl.ist.utl.pt>
20109         * */Makefile.am (INCLUDES): Changes to work with srcdir !=
20110         builddir.
20112         * autogen.sh: New file. Copied from gtk and added a call to
20113         libtoolize. Anyone knows why this isn't done in gtk?
20115         * Removed autogenerated files.
20117 1998-09-12  Alexander Larsson  <alla@lysator.liu.se>
20119         * Added call setlocale(LC_NUMERIC, "C") so that formating of
20120           floating-point numbers in postscript output will be correct.
20121         * Did some cleanup of generated postscript files.