1 2006-02-12 Lars Clausen <lars@raeder.dk>
8 * config.h.win32: Updates for version 0.95-pre1.
10 2006-02-12 Hans Breuer <hans@breuer.org>
12 * app/makefile.msc : build three components dia.exe (console
13 application), diaw.exe (windows application) and dia-app.dll
14 containing almost all of Dia's application shared between
16 * app/main.c app/winmain.c app/app_procs.c app/dia.def : some
17 refactoring to accomplish the new dependency layout
18 * objects/makefile.msc plug-ins/python/makefile.msc : need to
19 link dia-app.lib now - if at all depending on app/*
21 2006-02-11 Hans Breuer <hans@breuer.org>
23 * makefile.msc : nmake -f makefile.msc just compiles now
24 * app/makefile.msc lib/makefile.msc : make not using FT2
25 on win32 the default (works around bug #150813 by diabaling it)
26 * objects/makefile.msc plug-ins/makefile.msc : remove -GD from
27 $(CC) command line. It isn't understood by newer versions of cl.
29 * app/authors.h : reflect the recent maintainers change
31 * app/display.c app/load_save.c : removed debug spew
33 * app/winmain.c : improved redirection
35 2006-02-05 Hans Breuer <hans@breuer.org>
37 * app/menus.[ch] app/diagram.c : the GNOME specific menu code is dead
38 since 0.94. Fix somne left-overs, also properly disable the duplicate
41 * po/POTFILES.in : added objects/network/wanlink.c
43 2006-02-05 Hans Breuer <hans@breuer.org>
45 * lib/dialibartrenderer.c(renderer_finalize) : dont unref
46 parent_instance.font here. It will be done in DiaRenderer::finalize()
47 Just another reason for crashing at diagram close with libart
50 2006-02-04 Hans Breuer <hans@breuer.org>
52 * objects/standard/image.c : added mainpoint, patch from
53 Torben H. Nielsen fixing bug #329603
55 * app/layer_widget.c : avoid writing to Layer::connectable for a
56 diagram possibly already gone. Fixes bug #329096.
58 * lib/persitence.c(persistence_load) : dont leak filename
59 in case of not existing file
61 Code review via regex "[^_l>p](malloc|free|realloc)\("
62 * objects/fs/function.c : what's g_strdup() must be g_free()'d
63 * plug-ins/dxf/dxf-import.c : use g_realloc()/g_free()
64 * plug-ins/xfig/xfig-import.c : use g_free() instead of plain free()
66 * app/filedlg.c(file_save_as_response_callback) : before destroying
67 the save as dialog we need to drop the dialogs diagram reference.
68 Fixes behaviour described in bug #123225#c7
70 * app/interface.c(get_sheet_names) : need to sort sheets by their
71 display name to really fix bug #160101.
73 * objects/UML/association.c : dont leak the role_name calculated
74 with visibility attribute, use g_strdup_printf() instead of strcat().
76 * configure.in : fix typo in error message
78 * lib/object.c : remove duplicated prototype
79 * lib/element.c : element_update_connections_rectangle() assumes nine
80 connection points, i.e. requires 'mainpoint'. g_assert() for this.
82 2006-02-03 Hans Breuer <hans@breuer.org>
84 * objects/network/bus.c : allow to tint it. Patch from
85 Torben H. Nielsen, closes bug #328580.
86 * objects/network/wanlink.c : allow to tint this as well.
88 2006-01-29 Hans Breuer <hans@breuer.org>
90 * app/render_libart.c(draw_line) : make setting the pixel side-effect
91 free; account for it in now (less) magic increments. Fixes bug #312147
93 2006-01-28 Hans Breuer <hans@breuer.org>
95 * po/checktrans.py : make it work with recent pyxml (unknown url type)
96 * po/AADL.sheet.in : remove duplicated _description
97 => translation report works again
99 * app/display.c : revert back to "_Discard Changes" to avoid
100 accelerator clash. Also gtk_button_new_with_mnemonic() to
101 'expand' the accelerator.
103 * lib/dia_svg.c(dia_svg_style_init) : need to initialize
104 linecap, linejoin, linestyle to avoid invalid settings.
105 (Nguyen Thai Ngoc Duy, bug #328945)
106 * lib/diagdkrenderer.c : add a place fro breakpoint to
109 * lib/diarenderer.c(setfont) : if we get passed in the
110 same font it must be ref'd before unref.
112 * lib/text.c(set_string) : don't eat the trailing new-line
115 * app/app_procs.c app/display.c app/filedlg.c
116 attempt to provide more HIG compliant dialogs. Patch from
117 Nguyen Thai Ngoc Duy, part of bug #138183
119 * app/recent_files.c(recent_file_history_clear_menu) : instead of
120 messing with GtkMenuShell::children and gtk_widget_destroy() just
121 use gtk_container_remove. Avoids memory corruption causing the
122 most 'random' crashes recently.
124 * objects/UML/message.c : can't use PROP_STD_TEXT_COLOUR_OPTIONAL
125 cause it has PROP_FLAG_DONT_SAVE. It is designed to fill the
126 TextAttributes - not some subset. Fixes bug #327701
127 * objects/UML/implements.c objects/UML/generalization.c
128 objects/UML/constraint.c objects/UML/object.c
129 objects/UML/large_package.c objects/UML/realizes.c : same here.
130 * objects/UML/dependency.c : same here. Also draw the "Name" with the
131 given color, not only the Stereotype.
132 * objects/UML/class.c : same here. But we also need to restore
133 explicit restore "text_color" for the load case.
135 2006-01-27 Hans Breuer <hans@breuer.org>
137 * configure.in : error out if GLib/GTK+ version is lower than required
139 * app/filedlg.c lib/widgets.c : more default responses. Patch
140 from Nguyen Thai Ngoc Duy, part of bug #138183
142 * NEWS : Main point feature correction. The line is supposed to
143 start at the border of the object not the bounding box.
145 * app/commands.c : respect difference between documenters and
146 translators and show both in about dialog. Closes bug #328711.
148 * app/interface.c : instead of g_warning for missing shape icon
149 but use message_warning and show the 'missing' icon
151 * lib/dialibartrenderer.c : with Gtk+ 2.8 gdk_draw_layout() does
152 not match pango_win32_get_context(). Use gdk_pango_get_context ().
153 Also removed my special win32-modified-pango code for draw_string()
154 without the help of gdk.
156 * Makefile.am : include MAINTAINERS file in tarball
158 * lib/conectionpoint.h : removed double include of "geometry.h"
160 2006-01-22 Hans Breuer <hans@breuer.org>
162 * app/splash.c app/commands.c : dont share the logo and finally leak
163 it. Instead both place load and unref the logo themself.
164 Also unbreak GNOME case.
166 * app/commands.c : use GtkAboutDialog instead of homegrown GTK+
167 or GNOME specific one. 120 lines less code and more standard.
168 * configure.in : require GTK+ >= 2.6
170 * app/diapagelayout.c app/diaunitspinner.c app/layer_dialog.c :
171 make GtkTypeInfo static const as usual elsewhere
173 * app/recent_files.c : it almost certainly is an error to ignore
174 the return value of g_list_remove_link()
176 * lib/arrows.c lib/bezier_conn.[ch] lib/beziershape.h
177 lib/boundingbox.[ch] lib/color.[ch] lib/connectionpoint.c
178 lib/create.h lib/dia_svg.c lib/dia_xml.c lib/diaarrowchooser.c
179 lib/diagramdata.[ch] objects/UML/activity.c objects/UML/class.[ch]
180 objects/UML/uml.h : documentation fixes
182 * lib/object.h lib/diagramdata.h : avoid circular inclusion
183 * lib/connectionpoint.h lib/focus.h lib/group.h lib/handle.h
184 lib/properties.h lib/sheet.h lib/diamenu.h
185 : dont include "object.h", "diatypes.h" is enough.
186 Rule of thumb: only headers declaring an inheritant of DiaObject
187 should include "object.h"
188 * lib/diarenderer.h : include "font.h" not strictly needed by
189 this header, but needed in almost any plug-in/
190 * app/diagram_tree_menu.c app/dialogs.[hc] app/display.c
191 app/export_png.c app/interface.c app/load_save.c app/sheets.c
192 app/sheets_dialog.c app/sheets_dialog_callbacks.c
193 lib/diagdkrenderer.c lib/object.c lib/propobject.c
194 lib/text.c plug-ins/gprint/gnomeprint.c plug-ins/pixbuf/pixbuf.c
195 plug-ins/svg/render_svg.c
196 : some .c files now need to include "object.h" or <gtk/gtk.h>
197 or e.g. "intl.h" direct, formerly dargged in indirectly
198 * plug-ins/pgf/render_pgf.c : explicit inclusion of "arrows.h"
200 2006-01-21 Hans Breuer <hans@breuer.org>
202 * lib/connection.c lib/connection.h lib/connectionpoint.h
203 lib/diagramdata.h lib/diarenderer.h lib/diatypes.h
204 lib/element.h lib/geometry.h lib/handle.h lib/objchange.h
205 lib/object.c lib/object.h : documentation tweaking
207 * objects/UML/class_dialog.c(attributes_create_page,
208 operations_create_page) : dont connect
209 to a not exisiting signal. Avoids "GLib-GObject-CRITICAL **:
210 g_signal_connect_closure_by_id: assertion 'signal_id > 0' failed"
211 (This was a leftover of introducing the GtkTextView instead of GtkEntry)
213 * objects/UML/class_dialog.c objects/UML/class.c objects/UML/class.h :
214 Introduce 'comment_tagging' switch which allows to hide the rendering
215 {documentation = } Maybe a choice between ugliness and non-standard.
216 Fixes bug #326214. (Unrelated: started to adapt casing of variables
217 to Dia's common coding style)
219 * lib/object_defaults.c : pass is_default=TRUE to object_copy_props
220 lib/proplist.c : fixed pdtpp_default()
221 lib/propobject.c : correctly reflect is_default
222 * object/UML/class.c : correct setting of PROP_FLAG_NO_DEFAULTS and
223 PROP_FLAG_DONT_MERGE. With the above this fixes bug #320934
225 * lib/propdialogs.c : if PROP_NO_DEFAULTS is set dont try to show a
226 widget in defaults dialog
228 * app/display.c(initialize_display_widgets) : also append the Input
229 Methods menu to the diagram menubar. Now fixes bug #327862.
231 * config.h.win32 : #undef LOCALEDIR
232 * app/app_procs.c : runtime calculation of localedir. It now is
233 $(executable_dir)/../locale. Should help fix bug #309763
235 * sheets/AADL.sheet.in : remove left over xml:lang tag.
236 ( Nguyen Thai Ngoc Duy, bug #327519)
238 * lib/dialibartrenderer.c : make text rendering work without
239 PangoFT2 and PangoWin32
241 2006-01-18 Lars Clausen <lars@raeder.dk>
243 * objects/UML/class.h: Enabling UML class mainpoint after failure
246 * app/grid.c: Fix bug with grid being incorrectly drawn when gap <
249 2006-01-14 Hans Breuer <hans@breuer.org>
251 * app/paginate_psprint.c : ensure we are not producing pages for
252 epsilon. Floating imprecision is fun. Fixes bug #133856.
253 * app/paginate_gdiprint.cpp : same here.
255 * plug-ins/pstricks/render_pstricks.c(draw_string) : now that I've
256 found the nice samples from bug #156171 it was quite simple to
257 confirm that the y value need indeed to be inverted. Fixes bug #304974.
258 Also special case strings starting with \tex - i.e. dont escape them -
259 to keep the use-case of direct tex input.
261 * lib/debug.c : #include <glib/gprintf.h> not just <gprintf.h>
263 2006-01-14 Hans Breuer <hans@breuer.org>
265 * samples/Self/umlclass.dia : (new file) documenting part of the
266 object relations of UMLClass. Also good for testing connections.
268 * lib/debug.c : replace wrong call to vprintf() - missing file
269 descriptor - with the more appropriate g_vprintf(). Thus
270 dia_assert_true() does not smash the stack anymore on win32.
272 * objects/UML/class.c objects/UML/class_dialog.c objects/UML/uml.h
273 objects/UML/umlattribute.c objects/UML/umloperation.c :
274 reverted the memory managment of UMLAttribute/UMLOperation's
275 ConnectionPoint(s) back to how it was up until 0.94. This finally
276 makes the UMLClass work again including undo/redo support. Fixes
277 bug #314153 and en passant bug #326453.
279 2005-01-12 Lars Clausen <lars@raeder.dk>
281 * objects/UML/umlattribute.c:
282 * objects/UML/class_dialog.c: Better way of handling
283 connectionpoints: Don't copy them, just reference them. Finally
284 fixes bug #314153 (not quite the pi bug:)
286 * app/menus.c (display_menu_items):
287 * app/filedlg.c (file_open_response_callback):
288 * app/display.[ch] (copy_display):
289 * app/commands.[ch] (view_clone_view_callback):
290 Added functionality to clone display. Preparation for storing
291 display info in diagram files (not happening this version, though).
293 * INSTALL (NOTE FOR WINDOWS USERS): Added note for non-compiling
294 users pointing at dia-installer.
296 2006-01-08 Hans Breuer <hans@breuer.org>
298 * shapes/Gane_and_Sarson/Makefile.am : correct spelling of filenames.
299 (Narcelio Filho, #326075)
301 * objects/AADL/aadl.h : remove #include "app/display.h". It is not needed,
302 plug-ins should not depend on app/* and it even breaks 'make distcheck'.
303 * objects/AADL/Makefile.am : added edit_port_declaration.h
304 * app/Makefile.am : added diaconv.c to EXTRA_DIST
305 => 'make distcheck' passes again.
307 * configure.in : use some more of gcc's useful warnings
309 * lib/geometry.h : removed unused functions just producing warnings
310 [sometimes it's good to read compiler warnings]
311 * plug-ins/cairo/diacairo.c : somehow a function call got lost
312 (left-hand operand of comma expression has no effect)
\r * plug-ins/metapost/render_metapost.c : dia_message_filename()
\r wants a char* not a FILE* (passing arg 1 of `dia_message_filename'
\r from incompatible pointer type)
\r
314 2006-01-07 Hans Breuer <hans@breuer.org>
316 * objects/custom/shape_info.c(parse_path) : handle the case of
317 invalid path data more gracefully, i.e. show a warning instead
318 of crashing later on.
319 * plug-ins/svg/svg-import.c(read_path_svg) : ditto.
321 * configure.in sheets/Makefile.am shapes/Gane_and_Sarson
322 shapes/Makefile.am : added Gane & Sarson shapes
323 (Nick Moore, #319544)
325 * objects/makefile.msc : building AADL on win32
327 2006-01-06 Hans Breuer <hans@breuer.org>
329 * objects/AADL/aadl.h : avoid redefinition warnings by #undef
330 min, #undef max before local definitions
331 * objects/AADL/aadl.h : more prototypes
332 * objects/AADL/aadltext.c : for C89 declarations must be at the
333 beginning of a block. And Dia *must* be compileable with C89.
335 * objects/AADL/** objects/Makefile.am sheets/Makefile.am
336 configure.in : AADL plug-in from Pierre Duquesne. See
337 http://mail.gnome.org/archives/dia-list/2006-January/msg00005.html
339 * sheets/AADL.sheet.in : from the above patch but modified
340 to become translatable like the other sheet files. That is: the
341 french translation got temporary removed cause it does not belong here.
343 * plug-ins/pgf/render_pgf.c : no C99/C++ comments please
345 * app/app_procs.c app/diaconv.c : get rid of run-on sentences
346 (Adam Weinberger, bug #325567)
348 * app/menus.c : removed some keybindings with <control><shift>[0-9A-F]
349 and change some other to use <control><alt>. They collide with GTK's
350 Unicode input feature. Fixes bug #320495. For rationale see:
351 http://developer.gnome.org/projects/gup/hig/2.0/input-keyboard.html
353 * app/display.c : pay attention to g_warnings() [should always run
354 with --g-fatalwarnings ;)]. Only create the menubar IM menu if there
355 actually is a menu bar.
357 * lib/diarenderer.c : the righthand calculation accidentially broke
358 some arcs direction. Should be fixed again.
360 2006-01-02 Hans Breuer <hans@breuer.org>
362 * app/display.c(new_display) : also append the Input Methods menu to
363 the diagram menubar. Fixes bug #308576.
365 * lib/widgets.c(dia_dynamic_menu_reset) : don't use an already
366 freed string to dia_dynamic_menu_select_entry(). Fixes bug #323592.
368 * lib/sheet.c(dia_sheet_sort_callback) : sort sheets according to
369 their localized name (with g_utf8_collate). Thus not relying on the
370 capabilities of the C libraries strcmp(). Fixes bug #160101.
372 * lib/diarenderer.c(draw_arc_with_arrows) : don't recalculate center
373 point and width from the (arrow-)corrected new points. Otherwise a
374 whole new wrong arc may emerge. Fixes bug #312641.
376 2006-01-01 Hans Breuer <hans@breuer.org>
378 * objects/custom/custom_object.c(cutom_update_data) : depending
379 on the handle moving let one scale (x or y) take precedence.
380 (bug #308515, Eric Deplagne)
382 * objects/UML/class.c : only perform the attributes check with
383 attributes visible to ged rid of false warnings
384 * objects/UML/class_dialog.c : need to setup Connection::object
385 after uml_attribute_new() and uml_operation_new(), again less
386 warnings but bug #314153 still not fixed.
390 * plug-ins/python/diasvg.py : more correct svg by also writing
391 xmlns="http://www.w3.org/200/svg"
393 * plug-ins/python/dot.py : skip unconnected connection lines
394 * plug-ins/python/Makefile.am : added dot.py
396 * plug-ins/python/pydiadoc.py plug-ins/python/codegen.py : fixed
399 2005-12-31 Hans Breuer <hans@breuer.org>
401 * objects/UML/class.[hc] objects/UML/class_dialog.c : removed the
402 caching of UMLClass::attributes_strings, operations_strings,
404 It was broken by the recent code restructuring in bug #303744 and
405 - if necessary at all - nowadays it should be done on the
406 UMLAttribute, UMLOperation, UMLFormalParameter level anyway.
407 A small, much needed simplification of the code.
409 2005-12-30 Hans Breuer <hans@breuer.org>
411 * objects/UML/class.c : Patch from Dave Klotzbach
412 fixes crash bug #325151
414 * app/app_procs.c : add command line parameter --nonew to allow
415 avoiding the empty start-up diagram
416 Also give a hint on where the object-libs were missing.
417 Finally work around a misbehaviour upstreamm :
418 g_option_context_parse() returning FALSE but not setting error.
420 * app/commands.c app/app_diagram_tree.c app/interface.c :
421 Use gdk_pixbuf_render_pixmap_and_mask_for_colormap as suggested by
422 http://www.gtk.org/api/2.6/gdk/gdk-Pixbufs.html#gdk-pixbuf-render-pixmap-and-mask
424 * lib/widgets.c : image file selection finally ported to the new
425 gtk file chooser. Fixes bug #309383
427 2005-12-28 Hans Breuer <hans@breuer.org>
429 * app/commands.c(file_new_callback) : convert to filename encoding before
430 passing to new_diagram(), fixes bug #322400
432 * app/interface.c(create_display_shell) : don't clip width on screen
433 height - now commited. Also lazy creation of tooltips.
435 * objects/UML/actor.c : Actor is finally resizable, fixes bug #66915
437 2005-12-27 Hans Breuer <hans@breuer.org>
439 * app/diapsft2renderer.c(draw_bezier_outline) : only call
440 FT_Outline_Decompose() when FT_GLYPH_FORMAT_OUTLINE.
441 Prefers no text output over crashing for bug #144212
443 * app/interface.c : removed superfluous call to dia_canvas_set_size().
444 Suggested by Roland Stigge, fixes bug #148149.
446 * plug-ins/dxf/dxf-import.c : don't complain too loud on Binary
447 DXF. It is not supported at all. Fixes bug #322101
449 * lib/geometry.c : removed the ifdefed GLIB_CHECK_VERSION(2,7,0)
450 define G_IMPLEMENT_INLINES. It breaks again with glib-2-8
453 2005-12-27 Hans Breuer <hans@breuer.org>
455 * app/navigation.c : protect on_da_button_release_event() against being
456 called twice. Also only popdown the navigation window after the first
457 draw (reusing nav->is_first_expose). Fixes bug #151696
459 * app/interface.c(create_display_shell): don't clip width on screen height,
462 * lib/plug-ins.c : fixed typo in comment
464 * lib/libdia.def : updated externals
465 * lib/makefile.msc : build debug.obj
467 * plug-ins/makefile.msc : building pgf in the right alphabetical order
468 * plug-ins/pgf/render_pgf.c : include <glib/gprintf.h>
470 2005-12-08 Lars Clausen <lars@raeder.dk>
473 * plug-ins/pgf/pgf.c:
474 * plug-ins/pgf/render_pgf.[ch]:
475 * plug-ins/pgf/Makefile.am:
476 * plug-ins/Makefile.msc:
477 * plug-ins/Makefile.am (SUBDIRS):
478 * configure.in: Patch from Moritz Kirmse <momomaniac@gmail.com>: Add
479 support for PGF output for including in (La)TeX documents that
480 allows PDF generation.
482 * samples/render-test.dia: Added samples of text in different
483 sizes, standard fonts and styles with size markers.
485 2005-12-04 Lars Clausen <lars@raeder.dk>
487 * lib/Makefile.am (gen_sources): Mark marshal files as generated.
488 (BUILT_SOURCES): Added marshal files.
490 2005-12-03 Lars Clausen <lars@raeder.dk>
492 * lib/Makefile.am (diamarshal.c): Fix marshal rules to not talk
493 about $(srcdir) and confusing everybody.
498 * lib/diamarshal.list:
499 * plug-ins/python/pydia-diagram.c:
500 * plug-ins/python/pydia-diagramdata.c:
501 * plug-ins/python/python-startup.py: Patch from David Johansson
502 <david.lgj@gmail.com>: Add signals emitted when objects are
505 2005-11-13 Lars Clausen <lars@raeder.dk>
507 * app/display.c (update_zoom_status): Fix of bug #321387: Avoid
508 (small) buffer overflow by using g_strdup_printf instead of sprintf.
510 2005-11-09 Lars Clausen <lars@raeder.dk>
513 * plug-ins/dxf/dxf-import.c (import_dxf): Don't use g_error except
514 when reaching the statement is a bug. Using g_critical and exit() for
515 fatally wrong inputs.
518 * objects/UML/class.c: Patch from dklotzbach@foxvalley.net (dave
519 Klotzbach): Fixes template rendering and converts home-brew inline
520 doc format to javadoc. Doesn't yet fix bug #320934, but turns it
523 2005-11-07 Lars Clausen <lars@raeder.dk>
525 * lib/object.[ch]: Add 'enclosing box' as opposed to 'bounding
526 box' since several objects have problems of using bounding box in
527 different ways (see bug #300055). For now, enclosing box ==
528 bounding box, but over time objects will learn to expand the
529 bounding box to include things only rendered interactively.
531 * app/modify_tool.c (modify_motion): Make sure highlight is reset
532 when moving between overlapping objects.
534 * app/interface.c (interface_toggle_mainpoint_magnetism): Redraw
535 diagram after toggling to make red X's come and go.
537 * lib/font.c: #ifdef'd out layout cache for bug #307320. Define
538 it if you need faster rendering and aren't afraid of crashbugs:)
540 * lib/objchange.c: Bugfix from dklotzbach@foxvalley.net
541 (dave Klotzbach): Fixes null pointer problems in free function.
543 * objects/UML/class.c
544 * objects/UML/class.h
545 * objects/UML/class_dialog.c: Patch from dklotzbach@foxvalley.net
546 (dave Klotzbach): Make UML comments conform to UML 1.0 standard
547 and allow multi-line comments. Ugly as hell, but standard. Time
548 for a 'Strict UML' option? Fixes bug #303744.
550 * objects/UML/state.c: Patch from Peter Allin <peter@peca.dk>: Add
551 entry, exit and do descriptions to a state object. Fixes bug #65434.
553 2005-11-03 Lars Clausen <lars@raeder.dk>
562 * lib/connectionpoint.c:
567 * lib/diaarrowchooser.c:
569 * lib/diagdkrenderer.c:
575 Added documentation java-doc style. Also a few trivial cleanups.
577 2005-10-13 Lars Clausen <lars@raeder.dk>
579 * lib/connectionpoint.h (DIR_ALL): Parentheses around operations
582 * plug-ins/hpgl/hpgl.c (export_data): Correct error message.
587 * objects/UML/class.[ch]:
589 * objects/UML/umlattribute.c:
590 * objects/UML/umloperation.c:
591 * objects/UML/class_dialog.c:
592 Rework of the UML class attribute/operation handling. Now doesn't
593 copy connection points into the dialog data, but only the "flat"
594 data. As part of debugging made sanity check functionality.
595 Currently still dies when deleting an attribute/operation that has
598 2005-10-09 Hans Breuer <hans@breuer.org>
600 * lib/properties.h : prefer american spelling of colo(u)r for
601 user visible strings - i.e. to be translated ones.
602 * objects/UML/uml.c : it is Implementation. Together fixes bug #313929
604 * po/*.po : updated (by 'make distcheck')
606 2005-10-09 Hans Breuer <hans@breuer.org>
608 * app/display.c : allow !"toolbox on top" without restart.
609 (Chris Hellberg, bug #310702)
611 2005-10-09 Hans Breuer <hans@breuer.org>
613 * lib/arrows.c : patch from Radek Krahl fixing the blanking
614 of two arrowheads, bug #310157
616 2005-10-08 Hans Breuer <hans@breuer.org>
618 * plug-ins/python/group_props.py : show a descriptive text instead of an
619 empty table if there are no common properties to change. Fixes bug #314432
621 2005-10-08 Hans Breuer <hans@breuer.org>
623 * objects/UML/transition.c : inverted default direction of
624 the direction. Patch from Peter Allin, fixes bug #318049
625 [You possibly need to 'rm ~/.dia/defaults.dia' to have an effect]
627 2005-10-08 Hans Breuer <hans@breuer.org>
629 * app/Makefile.am objects/standard/Makefile.am : match the
630 referenced icons to the needed. Make 'make distcheck' pass
631 and thus fixes bug #312152
633 * objects/standard/textobj.c : no C++ comments please!
635 2005-10-08 Hans Breuer <hans@breuer.org>
637 * objects/standard/textobj.c : preserve the position set on create
638 [makes e.g. text positioning of diasvg_import.py work]
640 * plug-ins/python/diasvg_import.py : restrict what eval() can do
641 with strings from svg files. Fixes the arbitrary code execution from
644 * app/pixmaps/mainpoints-(on|off).png : new icons to toggle center point
645 magnetism. At least they are distinguishable from grid snapping.
646 * app/makefile.msc app/Makefile.am : use them
648 * lib/focus.c(reset_foci) : also remove_focus(). This fixes bug #172851
649 I also can't reproduce bug #309044 anymore (on win32).
651 2005-10-01 Lars Clausen <lars@raeder.dk>
653 * lib/connectionpoint.h (DIR_ALL): Parentheses around | expressions.
655 * plug-ins/hpgl/hpgl.c (export_data): Listen to warnings and don't
656 pass FILE * as gchar *.
658 * lib/debug.[ch] (dia_assert_true): Debugging aids.
660 2005-09-29 Lars Clausen <lars@raeder.dk>
662 * objects/UML/class.h: Enabling mainpoints for UML.
664 * objects/UML/class.c (umlclass_set_props): Make sure to always
665 realloc connection point list.
667 2005-09-26 Ahmad Riza H Nst <rizahnst@id.gnome.org>
669 * configure.in: Added "id" in ALL_LINGUAS line.
671 2005-09-14 Lars Clausen <lars@raeder.dk>
673 * objects/UML/class.c (umlclass_load): Set mainpoint obj upon
674 loading. Fixes bug #315427.
676 2005-09-11 Hans Breuer <hans@breuer.org>
678 * objects/standard/arc.c objects/standard/textobj.c : fix
679 C99isms, Dia is supposed to compile with C89 like msvc
681 * app/makefile.msc : use the wrong center-point-magnetism
682 icons for the win32 build, too.
684 * plug-ins/python/pydia-error.c : dont crash on C escape
685 sequences in the error string
686 * plug-ins/python/pydia-render.c : dont free filename twice
688 * plug-ins/python/dot.py : start of an exporter to DOT language
689 which can be processed by www.graphviz.org tools
691 2005-09-05 Iñaki Larrañaga <dooteo@euskalgnu.org>
693 * configure.in: Added "doc/eu/Makefile" for Basque documentation.
695 2005-09-04 Iñaki Larrañaga <dooteo@euskalgnu.org>
697 * configure.in: Added "eu" to ALL_LINGUAS.
699 2005-09-04 Lars Clausen <lars@raeder.dk>
701 * lib/element.h (ELEMENT_COMMON_PROPERTIES): Remove object
702 dimensions frame to make ext_attributes work again.
704 * app/grid.c (snap_to_grid): Bugfix from Zhang Lin-bo
705 <zlb@lsec.cc.ac.cn>: Use dynamic grid setting from diagram, not
708 * objects/standard/textobj.c: Applied patch from Grégoire Dooms
709 <dooms info ucl ac be>: Add vertical alignment for standard text
710 object. This should really be moved into lib/text.c and apply to
713 2005-09-03 Lars Clausen <lars@raeder.dk>
715 * app/connectionpoint_ops.c (connectionpoint_draw): Only draw
716 mainpoint when snap-to-objects is not on.
718 * app/Makefile.am (ICON_PNG_PAIRS):
719 Fake icons for snap-to-objects.
722 * app/menus.c (menus_get_image_menubar):
724 * app/interface.c (create_display_shell):
725 * app/create_object.c (create_object_button_release):
726 * app/disp_callbacks.c (ddisplay_drop_object):
727 * app/object_ops.[ch]:
728 * app/connectionpoint_ops.c (ddisplay_connect_selected):
729 * app/modify_tool.c (modify_button_release):
731 Togglable snap-to-objects, also doesn't snap when moving entire
732 object. This should be more reasonable in practical use, and can
733 be turned off when you want to place your arrows more precisely.
735 2005-08-06 Hans Breuer <hans@breuer.org>
737 * plug-ins/cairo/diacairo.c : increased #ifdef MESS:
738 With Gtk+-2.7.x cairo must be available so the HAVE_CAIRO case
739 becomes even more ugly when the user has choosen *not* to build
740 the diacairo plug-in. If noone can come up with a very convincing
741 reason why it has to be done this way I'll probably go back to
742 my original dont-build-at-all approach when this breaks the
745 2005-08-02 Lars Clausen <lars@raeder.dk>
747 * objects/standard/arc.c: Patch from Grégoire Dooms
748 <dooms@info.ucl.ac.be>: An almost perfect arc autogap
749 implementation. "There is still a small bug when the non
750 connected end of the arc is very close to the border of the
751 connected object. I think this is due to rounding errors in the
752 code for SHIFT-move handle which is reused to trim the arc in
753 autogap. Also it is not yet possible to have a startgap and an
754 endgap from/to the same central CP."
756 2005-07-31 Hans Breuer <hans@breuer.org>
758 * plug-ins/cairo/diacairo.c congigure.in : dont wait any
759 longer for distributions official packages - depend
760 on cairo 0.6.0 - fixes bug #307144
762 2005-07-20 Hans Breuer <hans@breuer.org>
764 * lib/element.h : remove stray NULL in ELEMENT_COMMON_PROPERTIES
765 which must match PropDescription, that is make it at least compile.
767 2005-07-19 Hans Breuer <hans@breuer.org>
769 * app/diagram.c(new_diagram) : what comes from g_object_new()
770 MUST NOT be g_free()'d
772 * lib/message.h : added dia_message_filename() here as well.
773 Mainly to not touch all files using. They *all* where using
774 lib/message.h already! Maybe the implemantation should be moved
775 to message.c as well cause the function has *nothing* to do
776 with dynamic filename resolving. It is a wrapper around
777 g_display_filename() mostly (only?) used for messages ...
778 * lib/dia_dirs.c(dia_message_filename) : fix C99ism
780 2005-07-18 Lars Clausen <larsrc@raeder.dk>
782 * objects/EML/instantiation.c (instantiation_load):
783 * objects/EML/interaction-ortho.c (interaction_ortho_type)
784 * objects/ER/participation.c (participation_type):
785 * objects/FS/flow-ortho.c (orthflow_type):
786 * objects/GRAFCET/vector.c (arc_load):
787 * objects/standard/zigzagline.c (zigzagline_type):
788 * objects/UML/transition.c (transition_load):
789 * objects/UML/realizes.c (realizes_load):
790 * objects/UML/dependency.c (dependency_load):
791 * objects/UML/generalization.c (generalization_type):
792 * objects/UML/association.c (association_type):
793 * objects/UML/component_feature.c (compfeat_load):
794 Make autorouting deafult on except for old diagrams.
796 * plug-ins/cairo/diacairo.c (export_data):
797 * plug-ins/cgm/cgm.c (export_cgm):
798 * plug-ins/dxf/dxf-export.c (export_dxf):
799 * plug-ins/dxf/dxf-import.c:
800 * plug-ins/hpgl/hpgl.c (export_data):
801 * plug-ins/metapost/render_metapost.c:
802 * plug-ins/pixbuf/pixbuf.c:
803 * plug-ins/pstricks/render_pstricks.c:
804 * plug-ins/python/pydia-render.c:
805 * plug-ins/shape/shape-export.c:
806 * plug-ins/svg/render_svg.c:
807 * plug-ins/svg/svg-import.c:
809 * plug-ins/xfig/xfig-export.c:
810 * plug-ins/xfig/xfig-import.c:
811 * plug-ins/xslt/xslt.c: Use dia_message_filename to ensure legal
812 UTF-8 in message boxes.
814 2005-07-18 Lars Clausen <lars@raeder.dk>
816 * lib/element.h (ELEMENT_COMMON_PROPERTIES): Allow Element objects
817 to have their dimensions specified in properties. Still needs to
818 have proper update when setting properties cause constraint changes.
820 * app/preferences.c (update_floating_toolbox): Allow
821 toolbox_on_top setting to happen at once.
827 * app/sheets_dialog_callbacks.c
833 * lib/object_defaults.c:
834 Patch from lav@altlinux.ru (Vitaly Lipatov): Make filenames safe
835 for displaying in messages - better than crashing! Mostly fixes
838 * objects/UML/class.c: Save normal_font_height under the same
839 name it gets loaded as. Fixes bug #310515.
842 * doc/en/usage-customization.xml
843 * doc/en/usage-objects-special.xml
844 * doc/en/usage-objects.xml: Some documentation fixes. Fixes bug
847 2005-07-17 Lars Clausen <lars@raeder.dk>
849 * doc/en/usage-customization.xml:
850 * doc/en/usage-objects.xml:
851 * doc/en/authors.xml:
852 * doc/en/usage-objects-special.xml: Applied patch from
853 stigge@antcom.de (Roland Stigge): Diverse typos and
854 misencodings. Fixes bug #308315.
856 * objects/UML/class.c (umlclass_save): Patch from
857 i.pilcher@comcast.net: Save normal font height under correct name
858 to reload it. Fixes bug #310515.
860 2005-07-10 Hans Breuer <hans@breuer.org>
862 * app/connectionpoint_ops.c app/object_ops.c : make the
863 'whole object' connection point only center point again.
864 That is: it is visible and far less magnetic. Only the
865 line gap handling make it special. For me this probably
868 * lib/neworth_conn.c : apply the same as for bug #173031.
869 This OrthConn fork got broken as well. Fixes bug #309381
871 * app/makefile.msc objects/makefile.msc : adapt to icon changes
873 * app/interface.c app/diagram_tree.c : a char** is still not
874 a char* and the win32 build is configured to error on
877 * plug-ins/wmf/wmf.cpp : fix typo in preprocessor condition
879 2005-07-10 Hans Breuer <hans@breuer.org>
882 Take part in the toolbox icon redesign context! If you want to
883 make them really prettier, please keep the following in mind :
884 - the size *must* be 22x22 otherwise button reflow will get broken.
885 Or you need to change about 800 icons at once.
886 - one important part of Dia are control points, so maybe the icons
887 should reflect that. (IMO gathering random icons form other
889 - the icons should at least look consistent in their group
892 * app/Makefile.am : use 22x22 variants mostly lent from The GIMP
893 * app/pixmaps/*.png : added arrow-22.png scroll-22.png zoom-22.png
895 * objects/standard/*.c : get rid of xpm includes to avoid mixing icon sets
896 * objects/standard/pixmap/* : added arc.png beziergon.png
897 bezierline.png box.png ellipse.png image.png line.png polygon.png
898 polyline.png text.png zigzagline.png
899 * objects/standard/Makefile.am : use the new icon set including
902 * app/interface.c : remove the "will probably crash" debug spew
904 2005-07-09 Lars Clausen <lars@raeder.dk>
906 * objects/standard/pixmaps/*.png:
907 * objects/standard/Makefile.am:
908 * objects/standard/*.c:
910 * app/diagram_tree.c (create_object_pixmap): Fix icon loading. use
911 new icons. [Slightly belated entry]
913 2005-07-03 Hans Breuer <hans@breuer.org>
915 * app/diagram_tree.c : dont leak display name
916 * app/app_procs.c : dont leak GOptionContext
917 * app/prop_widgets.c(frame_beginprop_get_widget) :
918 Gtk api still not eating strings ...
920 * objects/UML/class.c() : don't load properties once more
921 which are already loaded by StdProps. In case of strings
922 (data_string) it has even produced leaks.
924 * app/paginate_psprint.c app/diagram.[hc] : the last
925 of the related dialogs is gone and with it the
926 misconception of destroying widgets from
928 * app/display.c : ensure the diagram is still threre
929 when we remove the display from it's list
931 2005-07-01 Hans Breuer <hans@breuer.org>
933 * lib/widgets.c(dia_color_selector_more_callback): dont
936 * plug-ins/wmf/wmf.cpp : finally added enahnced meta file
937 option. Thus linestyles can be preserved on export - at
938 least on NT based systems.
940 * NEWS : clarify the wmf outside of windows issue
942 * app/modify_too.c : fix C99ism
944 * objects/standard/arc.c : debug spew optional at compile time
946 2005-06-26 Hans Breuer <hans@breuer.org>
948 [ Cyrille would call it: warningectomy :-]
950 * lib/font.c app/create_object.c : `...' might be used uninitialized
951 in this function. Yes they were.
952 * app/modify_tool.c : modify_tool.c:610: warning: `obj' might be used
953 uninitialized in this function. Yes it was with textedit_activate_object()
954 Also some static correctness.
955 * lib/diarenderer.c:678: warning: no previous prototype for
956 `calculate_min_radius'. Made static.
957 * lib/dia_svg.c : ptr is a gchar *
958 * dia_xml.c(data_point,data_rectangle) : gchar *str for parsing
959 * lib/prop_text.c(multistringprop_get_widget) : use G_CALLBACK
960 * app/app_procs.c : confirm warning and make dump_dependencies() static
961 * app/autosave.c : #if 0'd old stuff
962 * app/display.c : GTK_CHECK_MENU_ITEM() for snap_to_grid
964 * lib/text.c lib/font.c objects/standard/line.c object/UML/class.c
965 objects/Istar/goal.c objects/standard/bezier.c objects/standard/beziergon.c
966 plug-ins/cgm/cgm.c plug-ins/cairo/diacairo.c plug-ins/hpgl/hpgl.c
967 plug-ins/wpg/wpg.c plug-ins/svg/svg-import.c plug-ins/shape/shape-export.c
968 plug-ins/dxf/dxf-export.c plug-ins/gprint/diagnomeprintrenderer.c
969 plug-ins/gprint/diagnomeprint.c plug-ins/xfig/xfig-export.c
970 app/diagram_tree_menu_callbacks.c app/recent_files.c app/undo.c app/menus.c
971 app/diapsrenderer.c app/diagram.c app/disp_callback.c :
972 removed unused variables and functions
973 * objects/UML/umlattribute.c objects/UML/umloperation.c
974 objects/UML/umlparameter.c objects/UML/umlformalparameter.c :
975 neither 'missing braces around initializer' nor 'initialization from
976 incompatible pointer type'
977 * objects/UML/class_dialog.c : more static
978 * app/interface.c : static and almost const correctness and some
979 less unitialized variables.
980 * app/diapsft2renderer.c : use (int) casts like the original
981 (http://imagic.weizmann.ac.il/~dov/freesw/paps/ v0.4) does
982 * app/render_gdk.c: stop assignment from incompatible pointer type,
983 make member functions match the prototype.
984 * app/render_libart.c : Dito. Also stop caching the copy_gc in
985 a static variable. Otherwise it finally leaks and also may cause
986 BadMatch with changing windows
987 => warning count down from about 250 to about 60, one or two hand full
990 2005-06-26 Hans Breuer <hans@breuer.org>
992 * lib/libdia.def : added dia_font_get_description, missing
995 * app/app_procs.c : use png_get_header_ver(NULL), that is:
996 prefer function call over exported variable to get the
997 runtime version of libpng
999 2005-06-19 Hans Breuer <hans@breuer.org>
1001 * plug-ins/python/Makefile.am : added codegen.py to EXTRA_DIST
1002 as suggested by Roland Stigge, bug #308310
1004 2005-06-19 Hans Breuer <hans@breuer.org>
1006 * app/filedlg.c(file_export_callback) : oops, gtk_widget_show() wasn't
1009 2005-06-18 Hans Breuer <hans@breuer.org>
1011 * NEWS : mention new file dialog
1013 [plugged remaining leaks from bug #142669]
1014 * lib/prop_attr.c(fontprop_free) : not only unref the font
1015 but free the property itself, too.
1016 * app/diagram_tree.c(create_diagram_children): remember the
1017 original list start to not only free the last element
1019 * lib/prop_sdarray.c:64: warning: `arrayprop_free' defined
1020 but not used. Here it meant a potentially huge leak.
1022 2005-06-18 Hans Breuer <hans@breuer.org>
1024 * po/POTFILES.in : removed app/diaconv.c which isn't referenced
1025 by app/Makefile.am anymore either. Should finally fix 'make distcheck'
1026 for others, too. ( Roland Stigge, bug #144527 )
1028 2005-06-18 Hans Breuer <hans@breuer.org>
1030 * plug-ins/wmf/Makefile.am : prevent installation. It
1031 doesn't do anything useful on *NIX and even seems to be
1032 linked wrong by gcc (or me;). Fixes bug #172830
1034 2005-06-18 Hans Breuer <hans@breuer.org>
1036 * app/textedit.[hc] lib/arrows.[hc] plug-ins/xslt/xslt.h
1037 plug-ins/xslt/xsltdialog.c plug-ins/xslt/xslt.c : fix for sloppiness
1038 in function declarations. 'f();' for a function without parameters is
1039 a C++ism. Though I can't get any of my compilers to warn about it.
1040 Finally fixes bug #142663.
1042 2005-06-18 Hans Breuer <hans@breuer.org>
1044 * app/textedit.[hc] lib/arrows.[hc] plug-ins/xslt/xslt.h
1045 plug-ins/xslt/xsltdialog.c plug-ins/xslt/xslt.c : fix for sloppiness
1046 in function declarations. 'f();' for a function without parameters is
1047 a C++ism. Though I can't get any of my compilers to warn about it.
1048 Finally fixes the rest of bug #142663.
1050 2005-06-18 Hans Breuer <hans@breuer.org>
1052 * lib/font.h lib/font.c : _DiaFont is now private to prepare bigger
1053 changes but doesn't hurt anyway. See bug #162034
1054 * app/diapsft2renderer.c app/modify_tool.c
1055 plug-ins/gprint/diagnomeprintrenderer.c : use dia_font_get_description()
1056 instead of messing with internals
1057 * app/display.c : give interactive renderers more begin/end render.
1058 It is guaranteed that the scale wont change between these.
1060 2005-06-18 Hans Breuer <hans@breuer.org>
1062 * app/app_procs.c : const correctness for stderr_message_internal
1063 * app/dia-props.c : gtk_toggle_*() functions want GTK_TOGGLE_BUTTON
1064 not GTK_CHECK_BUTTON, also some G_CALLBACK casts
1065 * app/disp_callbacks.c : don't dereference the to the function call
1066 when the function pointer in meant to be checked against 0
1067 * app/interface.c : warning fixes by using correct types
1068 * app/modify_tool.c : describe_props() members returns const pointer
1069 * app/render_libart.c : removed most of the render function again.
1070 They happily live in lib/dialibartrenderer.c since almost 3 years
1071 http://cvs.gnome.org/viewcvs/dia/app/render_libart.c?r1=1.31&r2=1.32
1072 * lib/dia_dirs.c : dia_get_canonical_path() const correctness
1073 * lib/dia_svg.c lib/dia_xml.c : some char to xmlChar changes
1074 * lib/dialibartrenderer.c(set_line_join): actually set the join_style
1075 instead of the cap_style. Don't initialize Art* enums with GDK_* constants.
1076 Both mentioned in bug #159814 and not warned by most other compilers.
1077 * lib/diagtkfontsel.c : at least the watcom compiler did not like the
1078 trailing colon in the GtkTypeInfo initialization
1079 * lib/properties.c : avoid redefinition of LIBDIA_COMPILATION
1080 * lib/dialinechooser.c lib/diagdkrenderer.c : there may be a difference
1081 between char and gint8
1082 * plug-ins/metapost/render_metapost.c : replace invalid escape \% with %%
1083 * plug-ins/wpg/wpg.c : consitently use guint8
1084 * config.h.win32 : change HAVE_* defines to 1 not empty, avoids
1085 redefinition warnings for python and xslt plug-ins
1087 2005-06-18 Hans Breuer <hans@breuer.org>
1089 * lib/diagramdata.c : really get rid of diagram_data_destroy
1090 and new_diagram_data [ no previous prototype for `...' is either
1091 a sign of missing static or of a function to vanish :-]
1093 * lib/geometry.c : apparently the G_INLINE stuff was working only
1094 with particular GLib version(s), glib-2.6.4 does not. Conditionally
1095 reverting to the old mecanics.
1097 2005-06-17 Hans Breuer <hans@breuer.org>
1099 * plug-ins/python/pydia-*.c : include order tweaking to
1100 get rid of redefinition warnings. Ensure to include <Python.h>
1101 before any 'system' header, some dragged in by glib.h
1102 * plug-ins/python/pydia-diagramdata.c(PyDiaDiagramData_Str)
1103 pydia-properties.c(PyDiaProperties_Str)
1104 plug-ins/python/pydia-property.c(PyDiaProperty_Str) :
1105 use %p to format pointers
1106 * plug-ins/python/pydia-geometry.c(PyDiaArrow_Str) :
1107 dont cast to float for %d
1108 * plug-ins/python/pydia-handle.c(PyDiaHandle_Connect) :
1109 use correct pointer type
1110 * plug-ins/python/pydia-image.c(PyDiaImage_Str) :
1111 dont discard qualifier aka dont free const strings
1112 * plug-ins/python/pydia-properties.c : casts to PyCFunction
1113 * plug-ins/python/pydia-property.c : removed unused function,
1114 make ensure_quarks() static
1115 * plug-ins/python/pydia-render.c : removed unused vars, use
1116 the correct signature for begin_render
1117 (dia_py_renderer_finalize): pluged a leak
1118 => except -fno-strict-aliasing there is no warning left in
1121 2005-06-12 Hans Breuer <hans@breuer.org>
1123 * app/filedlg.c : really fix the file extension mismatch on export dialog
1124 by working around some gtk+-2.6 behaviour (bug #307378). Fixes bug #305850
1126 2005-06-11 Hans Breuer <hans@breuer.org>
1128 * configure.in config.h.win32.h : mark as +cvs (should have been
1129 done directly after the 0.94 release)
1130 * NEWS : attempt to summarize 2/3 year of development
1133 WANT_AUTOMAKE=1.7 ./autogen.sh && ./conifugre --enable-maintatiner-mode && make distcheck
1134 finally passes again
1136 * app/app_procs.c : force use of POPT for the GNOME case, otherwise
1137 app/run_dia.sh --credits > THANKS => Segmentation fault
1138 * app/pixmaps/Makefile.am : added group.png and ungroup.png
1139 * Makefile.am : work around scrollkeeper bug
1140 * doc/en/Makefile.am : explicit list DISTCLEANFILES = dia.1
1142 * po/*.po : 'noise' produced by make dist
1144 2005-06-10 Hans Breuer <hans@breuer.org>
1146 * lib/properties.h : define PROP_STD_SHOW_BACKGROUND_OPTIONAL ...
1147 * objects/custom/custom_object.c : ... and use it to avoid
1148 complains about missing attribute "show_background". It is
1149 safe to leave this uninitialized. Same for flip_* and "text",
1150 the latter with comment cause it usually is *not* safe to do
1151 it for the general case. Fixes remaining issues with bug #169006
1152 which where caused by an incompatible change in the shape file.
1154 * app/commands.c : use "gnome-open" instead of "netscape" as
1155 fallback for $BROWSER not set. Still not optimal but better
1156 to try some common desktop tool than an obsolete browser;)
1157 Fixes bug #307142. Also some whitespace changes.
1159 * app/interface.c(toolbox_delete): avoid random return value.
1160 Patch from Stanislav Brabec, fixes bug #307143
1162 * shapes/Cisco/Makefile.am : added a bunch of new shapes/pngs.
1163 Patch from Torben H. Nielsen (bugzilla is still the preferred way)
1164 http://mail.gnome.org/archives/dia-list/2005-June/msg00015.html
1166 2005-06-06 Lars Clausen <lars@raeder.dk>
1169 * app/modify_tool.c:
1170 * app/textedit.[ch]:
1171 Better support for text edit highlight.
1173 * app/connectionpoint_ops.c (connectionpoint_draw): Stop making
1174 the mainpoint extra visible.
1176 2005-06-02 Lars Clausen <lars@raeder.dk>
1178 * objects/UML/class_dialog.c:
1179 * objects/UML/class.[ch]:
1180 The final fixes for mainpoint on UML Class.
1182 * sheets/cisco*.in, shapes/Cisco/*: New set of Cisco icons from
1183 Ian Redfern, now in color and with mainpoints! Very pretty!
1185 2005-06-02 Hans Breuer <hans@breuer.org>
1187 * objects/UML/class_dialog.c : the memory managment with respect to
1188 attribute/operation connections was/is a mess. But it should work again ;)
1190 * samples/UMLPackages.dia samples/Composite-Action.dia : some diagrams
1191 directly from the UML Specification - to show the power of Dia and
1192 some weakness. Watch the bug reports following ;)
1194 2005-06-01 Hans Breuer <hans@breuer.org>
1196 * app/dia.def : export diagram_update_connections_object
1197 * plug-ins/python/pydia-diagram.c : wrap diagram_update_connections_object
1198 Patch from Paolo Bernardi, together with the property setting closes bug #300572
1200 2005-06-01 Hans Breuer <hans@breuer.org>
1202 * plug-ins/python/pydia-property.c : complete refactoring of property
1203 setting, now also supports setting of property arrays
1204 * plug-ins/python/pydia-*.c plug-ins/python/diamodule.c : adapt to
1205 Python namespacing conventions
1206 * plug-ins/python/pydiadoc.py : use the stuff above to produce more
1207 complete UML Classes with attributes and operations
1208 * plug-ins/python/otypes.py : now also show the properties of the objects
1210 * objects/UML/class.c(umlclass_set_props) : need to update object::connections
1211 (pointers), they might be changed with attributes and opertions changing
1213 * plug-ins/python/pydia-property.c : PointArray and BezPointArray property getters
1214 were broken. Apparently noone used them before.
1216 * plug-ins/python/pydia-diagram.c plug-ins/python/pydia-diagramdata.c : moved methods
1217 which only operate on the DiagramData to the latter file. To get on the DiagramData
1218 object of a Diagram use diagram.data. [In C the Diagram is a subclass of DiagramData,
1219 but I don't know how to reflect that in the bindings. And for backward compatibility
1220 there also is the 'data' member.]
1222 * objects/UML/uml.c objects/UML/umlattribute.c objects/UML/umloperation.c
1223 objects/UML/umlparameter.c : describe enums with PropEnumData
1225 * app/commands.c(view_show_all_callback) : if there is something selected show
1226 that instead of all exisiting objects. If there is noting or all selcted it
1227 "Show all" shows the old behaviour.
1229 * lib/parent.[hc] lib/object.c app/disp_callbacks.c app/diagram.c : plug some memory
1230 leaks and use less allocations caused by misguided API. Also some adaption to common
1233 * objects/UML/class.h : add some comment about the brokeness of UML_MAINPOINT
1235 * app/makefile.msc : added new icons and build as console app while
1236 not releaseing to the general public
1238 * objects/custom/shape_info.c : use g_strdup("") for a field to be g_free()'d
1239 and keep a refernce when storing the a font from style="" in s.font. This should
1240 finally allow to have shapes with fully predefined text (and no 'random' crashes)
1242 * plug-ins/gprint/diagnomeprint.c : disable GNOME_SVG until I've found a program
1243 capable to interpret it's output
1245 2005-05-31 Lars Clausen <lars@raeder.dk>
1247 * sheets/ER.sheet.in: No more xpms referenced in sheets. Fixes bug #151811.
1249 2005-05-30 Pawan Chitrakar <pawan@nplinux.org>
1251 * configure.in: Added ne in ALL_LINGUAS
1253 2005-05-24 Lars Clausen <lars@raeder.dk>
1255 * lib/font.c: Change to make DIA_FONT_ITALIC turn into -Oblique PS
1256 fonts for legacy fonts. They don't have DIA_FONT_OBLIQUE setting
1259 2005-05-23 Lars Clausen <lars@raeder.dk>
1261 * lib/paper.c: Added Ledger size paper. Fixes bug #305254.
1263 2005-05-21 Lars Clausen <lars@raeder.dk>
1265 * lib/diaarrowchooser.c:
1266 * lib/arrows.[ch]: Patch from Radek Krahl <ptasz3k@o2.pl>: Add
1267 'infinite' line (three dots) arrowhead. Fix line length in arrow
1268 preview. And fix typo. Fixes bug #303904.
1270 2005-05-20 Hans Breuer <hans@breuer.org>
1272 * lib/text.c : advice from valgrind and data_string() review:
1273 neither g_free() memory on the stack
1274 * objects/GRAFCET/boolequation.c : ... nor const strings
1275 * objects/UML/association.c:934 : definitely lost. Even g_strdup("")
1278 * app/diagram.c : a g_object_ref() following g_object_new() is almost
1279 always wrong. Why would we need two refernces?
1280 * app/app_procs.c : same here.If it crashes later on someone is dropping
1281 refernces he does not own, and *that* needs to be fixed. This is reverting
1282 "Remember to ref g_object_new'd object" (bug #170972) below, which
1283 causes more harm (leaking, hiding bugs elsewhere) than good.
1285 * app/app_procs.c lib/diagramdata.[ch] lib/libdia.def : get rid of
1286 diagramdata_destroy() which was only a wrapper to g_object_unref()
1288 * app/display.c(selection_changed) : don't g_strdup_printf() without
1289 g_free() later /or/ a C++ comment of me mostly denotes an error
1291 * app/diagram.c : diagram_parent_sort_cb make signature match GCompareFunc
1293 * lib/widget.c : dia_dynamic_menu_select_entry() cleanup. If it takes a
1294 const gchar* entry it must not eat memory, added a lot of g_free() and
1295 some const. Fixed a bunch - i.e. *all* - warnings.
1296 * lib/widget.h : removed unused/deleted functions
1298 * app/layer_dialog.c(dia_layer_widget_connectable_toggled) : trying to
1299 avoid 'Invalid write of size 4', no luck yet
1301 2005-05-19 Lars Clausen <lars@raeder.dk>
1303 * objects/UML/class.c:
1304 * objects/UML/class.h:
1305 * objects/UML/class_dialog.c: Work on getting a proper mainpoint
1306 for uml class object. #ifdef'd out right now.
1308 2005-05-18 Lars Clausen <lars@raeder.dk>
1310 * objects/standard/line.c: Make line adjust its actual endpoints
1311 for autogap -- looks and feels better.
1313 * objects/standard/arc.c:
1315 * app/modify_tool.c: Patch from Grégoire Dooms
1316 <dooms@info.ucl.ac.be>: First stab at autogap for arcs, and
1317 shifted arc angle movement.
1319 2005-05-16 Hans Breuer <hans@breuer.org>
1321 * lib/widget.c : variable declarations need to be at the start of a block,
1322 at least as we are not using C++ or C99
1324 * plug-ins/python/pydia-property.c : implment the read part for Property
1325 arrays - aka. umlclass.properties["operations"], umlclass.properties["attributes"]
1326 They are working quite well as can be seen with export-object.py
1328 * plug-ins/python/codegen.py : prove it once more with the generation of C++
1329 or Python code from an UML Diagram. Simply save as .py or .cxx ...
1330 * plug-ins/python/Makefile.am : install it
1332 2005-05-16 Lars Clausen <lars@raeder.dk>
1334 * app/pixmaps/{un}group.png:
1335 * app/Makefile.am (ICON_PNG_PAIRS):
1336 * app/menus.c (display_menu_items):
1337 New icons for grou/ungroup finally added, closing bug #105519.
1339 * app/Makefile.am: Dependencies for pixmaps.
1341 * app/pixmaps/connectable.png: An icon that actually makes sense
1342 for switching connectability.
1344 2005-05-15 Hans Breuer <hans@breuer.org>
1346 * lib/group.c object/UML/classicon.c : fixed leftovers of
1347 'Adding connectionpoint to _move_handle
1349 * lib/widgets.c : gtk+ *NEVER* eats strings, so gtk_something(widget, g_strdup())
1350 is *ALWAYS* a memory leak. Plug some more.
1353 In preparation to make UML operations/attributes/parameters setable by Python
1354 UML class became more StdProp conformant. A nice experience to be the first
1355 to use the PROP_TYPE_DARRAY stuff about four years after it was written ;-)
1357 * objects/UML/umlattribute.c objects/UML/umloperation.c
1358 objects/UML/umlparameter.c objects/UML/umlformalparameter.c : (new files)
1359 split from objects/UML/uml.c and made StdProp aware
1360 * objects/UML/class.c : finally make "attributes", "operations", "templates"
1361 <template parameters> first class StdProps citizens.
1362 (umlclass_load) : removed hand-written parsing for the above, it is all done
1363 by object_load_props() now. The old write code is still in place, so be very
1364 careful when changing something - at the moment load/save it is 100% compatible
1366 * objects/UML/uml.c : now just type registration here, as it is supposed to be
1367 * objects/UML/Makefile.am objects/makefile.msc : build the new files
1369 * lib/properties.h(PropDescCommonAreaExtra) : need a place to store the
1371 * lib/prop_sdarray.c : made the DARRAY case work, SARRAY still untested
1372 (darray_prop_adjust_object_records) : don't loop forever
1373 (whole file) : use the new (working) way to get on the second level offsets.
1374 Also resolved some abbreviations, it is complicated enough without them ;)
1375 * lib/proplist.c : even complete list contents may be optional
1377 2005-05-15 Hans Breuer <hans@breuer.org>
1379 * lib/bezier_conn.c(remove_handles) : don't try to remove
1380 non-exisitng handles (patch from Radek Krahl, bug #302273)
1382 2005-05-15 Hans Breuer <hans@breuer.org>
1384 * plug-ins/metapost/render_metapost.c : locale independent output
1385 (Radek Krahl, bug #301866)
1387 2005-05-12 Lars Clausen <lars@raeder.dk>
1389 * shapes/Cisco/*.{shape,png}:
1390 * sheets/cisco*.sheet.in:
1391 Updated with color icons from Ian Redfern, closing bug #303889.
1392 Added automatic midpoints, not attempt at adjusting them.
1394 2005-05-11 Lars Clausen <lars@raeder.dk>
1396 * many shapes: Use mid of bounding box for midpoint, better than
1397 mid of connection points generally.
1399 2005-05-10 Lars Clausen <lars@raeder.dk>
1401 * lib/widgets.c: Decided on one way for the ratio thing in arrow
1402 size selector: Fixed ratio is on by default and keeps the sizes
1403 at the given ratio, but doesn't clamp them to be the same. Fixes
1406 * lib/font.c: Fix for bug #303695: Allow more than one entry of
1407 each legacy name, thereby correctly encoding bold and italic of
1408 the three main fonts. Also use | rather than || to combine slant
1409 and weight, so matching works. Had to remove binary search for
1410 new font name, but the list is short enough it's not a problem.
1412 2005-05-09 Lars Clausen <lars@raeder.dk>
1414 * lib/autoroute.c (autoroute_layout_orthconn): Remove debugging info.
1416 2005-05-08 Hans Breuer <hans@breuer.org>
1418 * objects/UML/class.c : Reverted to have no center point.
1419 At first it looked as if there was only the bug to not increase
1420 class.h:UMLCLASS_CONNECTIONPOINTS. But the UMLClass has
1421 potentially much more dynamic connection points (to the left
1422 and right of every attribute/operation). Now simply adding one
1423 between see static and dynamic will screw up any existing diagram
1424 which makes use of the dynamic connection points. The would all
1425 be connected with an off-by-one error. I have no idea how to
1426 code around that. But breaking backward compatibility is no
1427 option here. Does not completely fix bug #303301 ...
1429 * lib/widget.c(dia_font_selector_set_font): actually set the options
1430 menu state. So we are not any longer resetting the font style on Apply.
1431 Use "UML - Class" dialog as stress text example.
1433 * app/command.c : some people insist to close diagrams already
1434 closed using tear-off menus. Maybe we should add a dialog
1435 "Do you want to call Dr. Watson now?". If there is no diagram
1436 to close anymore just do nothing, fixes bug #303221
1437 * app/display.c(ddisplay_close) : use g_return_if_fail(ddisp != NULL);
1438 Calling this with no display to close is a pathological case.
1440 * app/diagram.[hc] : moved object.h and other DiaObject stuff
1441 to the implementation in preparation of Big Things(tm)
1443 * app/interface.c : less warnings and make it compile. strncmp()
1444 does not take a char**, neither does gdk_pixbuf_new_from_inline().
1446 * objects/makefile.msc plug-ins/makefile.msc : less output
1448 2005-05-08 Lars Clausen <lars@raeder.dk>
1450 * lib/orth_conn.c (orthconn_init): The right place to set the
1451 default autorouting value. Fixes bug #303291.
1453 * app/display.c (ddisplay_close): Patch from Radek Krahl
1454 (ptasz3k@o2.pl): Fix crash when using from detached menu
1457 2005-05-07 Lars Clausen <lars@raeder.dk>
1459 * lib/orth_conn.c (orthconn_load): Autorouting should default to
1460 off in diagrams that don't have it explicitly. All diagrams
1461 should be explicit about it.
1463 2005-05-06 Hans Breuer <hans@breuer.org>
1465 * app/samples/Self/*.dia : some UML diagrams describing Dia's
1466 inner working (or it's future;)
1468 2005-04-26 Lars Clausen <lars@raeder.dk>
1470 * app/connectionpoint_ops.c (connectionpoint_draw): Temporary
1471 change to display of mainpoint to be easier to debug autogenerated
1474 2005-04-23 Hans Breuer <hans@breuer.org>
1476 * plug-ins/python/diamodule.c plug-ins/python/pydia-object.h
1477 plug-ins/python/pydia-properties.h : use lib/ prefix for
1478 Dia internal headers with too common names (fixes bug #173061)
1480 * app/display.c : stop special casing the first display of
1481 a diagram. Every display now has it's own refernce. The initial
1482 reference gets dropped when there is no display anymore. See
1483 diagram_remove_ddisplay(). Fixes bug #300744.
1485 * app/diapsft2renderer.c : locale independent output
1486 (Radek Krahl, bug #300847)
1487 * app/paginate_psprint.c : fixing use of setlocale() calls
1488 (Radek Krahl, bug #300886)
1489 * plug-ins/shape/shape-export.c : fixing use of setlocale() calls
1490 (Radek Krahl, bug #300889)
1492 * objects/UML/class.c : fix another crash with the line
1493 wrapping code (Gabor Simon, bug #160865)
1495 * plug-ins/cairo/diacairo.c : image rendering had an endianess
1496 issue (or is this working around a libpixman bug?;)
1498 2005-04-21 Lars Clausen <lars@raeder.dk>
1500 * lib/polyshape.c (polyshape_update_data): Fixed numpoint off-by-one.
1502 * shapes/**/*.shape: All shapes now have midpoints.
1504 2005-04-20 Lars Clausen <lars@raeder.dk>
1506 * lib/orth_conn.c (orthconn_update_data): Patch from ptasz3k@o2.pl
1507 (Radek Krahl): Make sure there's enough handles for the line.
1510 * objects/UML/node.c (node_draw): Better drawing method avoids
1511 garbage after moving. Fixes bug #301032.
1513 2005-04-17 Hans Breuer <hans@breuer.org>
1515 * plug-ins/cairo/diacairo.c : again adapt to Cairo API
1516 changes (whould compile with current cvs and 0.(3|4).0
1518 2005-04-11 Lars Clausen <lars@raeder.dk>
1520 * xmldocs.make (all): Fix to put installed docs in right place
1521 under disable-gnome.
1523 * doc/en/Makefile.am: Use xml_files var for xml files, EXTRA_DIST
1526 * app/commands.c (help_manual_callback): Patch from p@kapcoweb.com
1527 (Leonardo Boshell): Use standard gnome help if called with Gnome.
1529 * app/diapsrenderer.c: Patch from ptasz3k@o2.pl (Radek Krahl): Fix
1530 locale issues for eps output. Fixes bug #173135.
1532 2005-04-10 Hans Breuer <hans@breuer.org>
1534 * plug-ins/cairo/diacairo.c : adapt to Cairo PNG API
1535 changes (somewhat broken)
1537 * plug-ins/pstricks/render_pstricks.c : still C89 ...
1538 * objects/custom/shape_info.c : ... but with prototypes
1540 2005-04-07 Lars Clausen <lars@raeder.dk>
1543 * plug-ins/svg/render_svg.c:
1544 * lib/diasvgrenderer.c: Patches from ptasz3k@o2.pl (Radek Krahl):
1545 Make decimal separators be correct in save file formats
1546 (non-localized). Fixes bugs #172529 and 172531.
1548 2005-04-06 Lars Clausen <lars@raeder.dk>
1550 * app/create_object.c (create_object_button_release):
1551 * app/modify_tool.c (modify_button_release): Correct activations
1554 2005-04-05 Simon Kågström <ska@bth.se>
1556 * app/app_procs.c: the --show-layers option can now handle numeric
1559 2005-04-05 Lars Clausen <lars@raeder.dk>
1561 * lib/diagdkrenderer.c (draw_string): Patch from tomkast@yahoo.com
1562 (Tom Kast): Avoid blockiness caused by bad updates.
1564 2005-04-03 Lars Clausen <lars@raeder.dk>
1567 * lib/beziershape.c: Main points. A crude solution, having the
1568 center in the middle of the bb. Shows a bug in the distance_from
1569 code for polyshape when a side is horizontal.
1571 2005-04-02 Lars Clausen <lars@raeder.dk>
1573 * plug-ins/pstricks/render_pstricks.c:
1574 * plug-ins/xfig/xfig-export.c: Patch from Radek
1575 Krahl <ptasz3k@o2.pl>: Fix decimal point problems. Fixes bugs
1577 2005-04-02 Hans Breuer <hans@breuer.org>
1579 * lib/dia_image.c(dia_image_filename) : return the path
1580 again. (bug #172416, Radek Krahl)
1582 2005-04-01 Steve Murphy <murf@e-tools.com>
1584 * configure.in: Added "rw" to ALL_LINGUAS.
1586 2005-03-31 Lars Clausen <lars@raeder.dk>
1588 * lib/neworth_conn.c (neworthconn_update_data): Handle autogap.
1590 * lib/orth_conn.c (orthconn_update_data): Handle autogap while not
1593 * objects/network/basestation.c: Main points.
1595 2005-03-27 Hans Breuer <hans@breuer.org>
1597 * app/Makefile.am : removed some pixmap/*.xpm from EXTRA_DIST
1598 * app/pixmaps.h : removed arrow.xpm
1599 * lib/Makefile.am : added diamarshal
1600 * plug-ins/python/Makefile.am : added makefile.msc to EXTRA_DIST
1601 => makes 'make dist' pass and produce a useable package
1603 * po/*.po : 'noise' profuced by make dist
1605 2005-03-24 Lars Clausen <lars@raeder.dk>
1607 * objects/flowchart/parallelogram.c (pgram_update_data):
1608 * objects/flowchart/ellipse.c (ellipse_update_data):
1609 * objects/flowchart/diamond.c (diamond_update_data):
1610 * objects/flowchart/box.c (box_update_data): Main points.
1612 * objects/custom/custom_object.c (custom_create):
1613 * objects/custom/shape_info.h:
1614 * shapes/Assorted/square.shape:
1615 * objects/custom/shape_info.c (load_shape_info):
1616 * doc/shape.dtd: Added main point support to shapes, and an
1617 example of how to use it.
1619 2005-03-21 Lars Clausen <lars@raeder.dk>
1621 * lib/autoroute.c (autoroute_layout_orthconn): Remember to
1622 unnormalize from same point as you normalize, or else!
1624 2005-03-20 Lars Clausen <lars@raeder.dk>
1626 * app/app_procs.c (do_convert): Patch from crux@gorodmasterov.com:
1627 Remember to ref g_object_new'd object.
1629 2005-03-19 Hans Breuer <hans@breuer.org>
1631 * plug-ins/xslt/xslt.c : don't crash if both places ($SHARE, $HOME)
1632 have configurations, fixes bug #170962
1634 * objects/UML/state.c : ("UML - State")::type is PROP_FLAG_OPTIONAL,
1635 or better not used any longer. Fixes bug #169142.
1637 * lib/element.c(element_update_connections_rectangle): don't initialize
1638 the eighth point twice but instead the nineth once
1640 * objects/standard/bezier.c : no C++ comments *please*
1642 * lib/plug-ins.h : increment DIA_PLUGIN_API_VERSION
1644 * lib/dia_image.[ch] : dia_image_filename() returns a string not to be freed ...
1645 * plug-ins/python/pydia-image.c : ... so, don't do it!
1647 * lib/dia_svg.c : refactor color parsing and support the "rgb(127,255,0)" form,
1648 also named colors via pango_color_parse()
1650 * lib/prop_text.c : don't try to g_strdelimit(NULL), fixes bug #169367
1652 * lib/libdia.def : updated externals
1654 * app/object_ops.c : still not C99 everywhere
1656 2005-03-19 Hans Breuer <hans@breuer.org>
1658 * lib/autoroute.c : at least it should compile ;)
1660 2005-03-19 Lars Clausen <lars@raeder.dk>
1662 * lib/autoroute.c: Orthconns now do autogap.
1664 2005-03-17 Lars Clausen <lars@raeder.dk>
1666 * app/authors.h: Added Gregoire Dooms for gap stuff.
1668 * objects/standard/polyline.c: Patch from Grégoire Dooms
1669 <dooms@info.ucl.ac.be>: Autogap and absolute gap for polyline.
1671 * objects/standard/bezier.c: Patch from Grégoire Dooms
1672 <dooms@info.ucl.ac.be>: Fixes two bugs. Also autogap no longer a
1676 * objects/UML/state_term.c:
1677 * objects/UML/large_package.c:
1678 * objects/UML/node.c:
1679 * objects/UML/object.c:
1680 * objects/UML/small_package.c:
1681 * objects/UML/state.c:
1682 * objects/UML/usecase.c:
1683 * objects/UML/note.c:
1684 * objects/UML/actor.c:
1685 * objects/UML/classicon.c:
1686 * objects/UML/component.c:
1687 * objects/Misc/analog_clock.c:
1688 * objects/Jackson/requirement.c:
1689 * objects/Istar/goal.c:
1690 * objects/Istar/actor.c:
1691 * objects/FS/function.c:
1692 * object/standard/box.c:
1693 * objects/ER/entity.c:
1694 * objects/ER/relationship.c:
1695 * objects/ER/attribute.c: Main points added. Distance_from fixed
1696 in attribute, broken in relationship, I* goal, Jackson
1697 requirement, analog_clock, all non-rectangular UML elements,
1700 * lib/element.[ch]: New method to help update connection points.
1702 * app/menus.c: Change Help/Manual to Help/Contents to follow
1705 * objects/standard/line.c:
1706 * lib/geometry.[ch]:
1707 * objects/standard/bezier.c: Patch from Grégoire Dooms
1708 <dooms@info.ucl.ac.be>: Add absolute gap and autogap for line and
1709 bezier objects. Autogap nowchanged to be a function of the
1713 * lib/connectionpoint.[ch]: New function to ask if a connpoint has the
1716 * app/connectionpoint_ops.c (connectionpoint_draw): Don't draw
1717 CP_FLAG_ANYPLACE connpoints.
1719 2005-03-16 Lars Clausen <lars@raeder.dk>
1721 * app/interface.c (create_tools): Removed debug printf.
1723 2005-03-15 Lars Clausen <lars@raeder.dk>
1725 * lib/widgets.[ch]: Constification.
1727 * app/interface.c: Work on using gdk-pixbuf-csource'd data, not
1730 * objects/standard/ellipse.c: Use CP_FLAG_MAIN for central CP.
1732 * lib/connectionpoint.h: Flags for connection points.
1734 * app/create_object.c (create_object_motion):
1735 * app/modify_tool.c (modify_motion): Minor refactoring.
1737 * app/object_ops.c (object_find_connectpoint_display): Extend with
1738 finding connpoints that cover entire objects.
1740 * app/layer_dialog.c (dia_layer_widget_init): Get rid of warnings.
1742 * objects/custom/custom_object.c (custom_setup_properties): Avoid
1745 2005-03-13 Hans Breuer <hans@breuer.org>
1747 * plug-ins/svg/svg-import.c : handle the <circle/> tag as well
1749 2005-03-13 Hans Breuer <hans@breuer.org>
1751 * lib/dia_svg.[hc] objects/custom/shape_info.[hc] plug-ins/svg/svg-import.c :
1752 s/DiaSvgGraphicStyle/DiaSvgStyle/, added and use convenience functions
1753 dia_svg_style_copy(), dia_svg_style_init()
1755 * objects/custom/shape_info.c : use dia_svg_parse_path() from lib/ (it got
1758 * lib/dia_svg.c(dia_svg_parse_path) : also handle style properties which are
1759 not wrapped in the style attribute
1761 * plug-ins/svg/svg-import.c : implement nested group handling and style
1762 'style inheritance'. Still no transformations, no <image/>, no <style/>
1765 * plug-ins/svg/svg-import.c(import_svg) : use message_warning instead of g_warning,
1766 the latter is for programmers.
1767 Also be more tolerant if the document root namespace is not 'svg'. If the svg
1768 namespace is defined in the file search for the top node including svg. This
1769 allows us to re-read the svg part of our own shape format.
1771 * lib/libdia.def : there is no give_focus_to_object
1772 * app/textedit.c : still no C99, aka. error C2275: 'Focus' : illegal use of this
1773 type as an expression
1775 * lib/geometry. c : use G_IMPLEMENT_INLINES
1776 * lib/libdia.def : export point_get_perp (used by xfig plug-in)
1778 * app/textedit.c(textedit_end_edit) : don't crash if the display is already
1779 gone when trying to remove the focus
1781 * plug-ins/cairo/diacairo.c : CAIRO_HAS_WIN32_SURFACE does not any longer mean
1782 it has *my* Cairo Win32 Backend. [The official one isn't useful for the use
1783 case of this plug-in, i.e. producing output files]
1785 2005-03-13 Lars Clausen <lars@raeder.dk>
1787 * lib/Makefile.am (BUILT_SOURCES):
1788 * app/Makefile.am (BUILT_SOURCES): Use the Right Way[tm] to force
1789 the building of the icons header files.
1790 * app/dia-lib-icons.h: Out of CVS now that it's correctly generated.
1792 2005-03-13 Hans Breuer <hans@breuer.org>
1794 * configure.in : require Cairo 0.3.0
1795 plug-ins/cairo/diacairo.c : changed to match ;-)
1797 * app/app_procs.c() : new function dump_dependencies()
1798 which gets called by: dia --version --verbose
1799 and may help to track version dependent problems in
1802 * lib/font.c : reverted to previous version cause using
1803 not implemented Pango API did not improve the issue.
1804 See: http://bugzilla.gnome.org/show_bug.cgi?id=162034
1805 for more information.
1807 * lib/dialinechooser.c : a little shrinking of the
1808 initial size (to work around line wrappjing the right
1811 2005-03-11 Lars Clausen <lars@raeder.dk>
1813 * app/textedit.c: Concentrate start/end editing in single functions.
1815 2005-03-10 Lars Clausen <lars@raeder.dk>
1818 * lib/object.h: Added new object function to allow the object to
1819 be notified when its text is being edited.
1822 * app/modify_tool.c:
1825 * lib/focus.c: Remove sideeffects from focus objects, add getter
1828 2005-03-09 Lars Clausen <lars@raeder.dk>
1830 * lib/Makefile.am (dia-lib-icons.h):
1831 * app/Makefile.am: Minor cleanup.
1833 2005-03-06 Hans Breuer <hans@breuer.org>
1835 * app/app_procs.c : avoid "assignment within conditional expression"
1836 and handle -L for the GOption case as well.
1838 * lib/widget.c : strchr() does not return -1 on not found but NULL;
1839 avoids widgets.c(307) : error C4047: '!=' : 'char *' differs in levels of
1840 indirection from 'const int '
1842 * lib/diasvgenderer.c(draw_arc|fill_arc) : finally correct sweep and
1843 large_arc, thus produce correct arc output (like diasvg.py does;),
1846 * lib/dia_svg.[hc](dia_svg_parse_path) : new function copied and adapted
1847 from objects/custom/shape_info.c to be shared with object/custom and
1848 plug-in/svg -> finally the C based svg-import reads pathes again.
1849 Added arc parsing while I was there, which fixes bug #169191
1850 * objects/custom/shape_info.c(parse_path) :
1851 * plug-ins/svg/svg-import : reuse above function
1852 Also fix the "root element was 'svg' -- expecting 'svg'" bug #108502.
1853 But in general this does only support a small subset of what is
1856 2005-03-06 Lars Clausen <lars@raeder.dk>
1858 * objects/UML/association.c: Patch from Dave Klotzbach applied:
1859 Add visibility to association arrow. Fixes bug #157012.
1861 * app/grid.c: Patch from Lawrence Withers fixes grid messiness,
1862 closing bug #161040.
1864 * app/layer_dialog.c (create_button_box): Use stock icons instead
1865 of homemade onces. Gets us rid of four more XPMs.
1867 2005-03-05 Sampo Kellomaki <sampo@iki.fi>
1869 * app/app_procs.c: Implemented --show-layers=LAYER,LAYER,... option
1870 This option permits command line control of which layers are visible.
1871 Useful when automatically exporting multiple versions of the same
1872 diagram, e.g. slides with overlays. Added-n switch parsing without POPT.
1873 * app/app_procs.h: moved prototype of do_convert() to app/app_procs.c
1874 and made it static since its only used in that file.
1875 * app/authors.h: added myself
1876 * doc/en/dia.1: documented the switch
1877 * doc/en/usage-layers.xml: ditto
1879 2005-03-05 Alan Horkan <horkana@tcd.ie>
1881 * app/interface.c Change Horizontal scroll policy to NEVER for sheets
1882 this restores how Dia behaved before the GTK2 port and seems to help
1883 allow the toolbox to be more easily resized. Bug #108891.
1885 2005-03-05 Lars Clausen <lars@raeder.dk>
1887 * Civil/civil_motor.shape:
1888 * Civil/civil_rotor.shape:
1890 * Logic/buffer.shape:
1891 * Logic/connector.shape:
1892 * Logic/inverter.shape:
1898 * shapes/Assorted/arrow-left-up.shape:
1899 * shapes/Assorted/heptagon.shape:
1900 * shapes/Assorted/star5.shape:
1901 * shapes/Assorted/trapezoid.shape:
1902 * shapes/Assorted/triangle-rightangle.shape: Fixed bad use of
1903 defaults, see bug #169143.
1905 * sheets/Assorted.sheet.in: Fixed typo patch applied, bug #169114.
1908 * doc/en/Makefile.am: Finally figured out the right way to ask for
1909 the manpage xslt. Closes bug #144539.
1911 2005-03-01 Lars Clausen <lars@raeder.dk>
1913 * lib/Makefile.am (nodist_include_HEADERS):
1914 * app/Makefile.am: Correctly generate these files from PNGs with
1919 * lib/widgets.c: Refactor toggle button factory to allow inline
1922 * lib/pixmaps/Makefile.am: Unify lib pixmaps.
1924 * app/makefile.msc (ICON_PNG_PAIRS):
1925 * app/dia-app-icons.h: Updated with more icons.
1928 * app/Makefile.am: Use gdk_pixbuf_csource to create inline data
1931 * app/interface.c (create_display_shell):
1932 * app/layer_dialog.c (dia_layer_widget_init):
1933 * lib/dia_image.c (dia_image_get_broken): Use inlined data
1936 * app/display.c (ddisplay_close): Removed unused includes.
1938 2005-03-01 Lars Clausen <lars@raeder.dk>
1940 * app/sheets.c (create_object_pixmap): Create a placeholder image
1941 for when the real image is missing. Better than crashing:)
1944 2005-02-25 Hans Breuer <hans@breuer.org>
1946 * app/app_procs.c : don't requets to open a default display with
1947 g_option_context_add_group (crux@gorodmasterov.com, bug #168523)
1949 2005-02-22 Lars Clausen <lars@raeder.dk>
1951 * plug-ins/gprint/diagnomeprint.c (export_data): GNOME, not Gome.
1954 2005-02-19 Lars Clausen <lars@raeder.dk>
1956 * app/menus.c (display_menu_items): Applied patch from bug #94019:
1957 Menu cleanup and addition of icons. Also a few additional stock
1960 * app/layer_dialog.c (create_layer_dialog): Bug #159598: Clean up
1963 2005-02-14 Lars Clausen <lars@raeder.dk>
1965 * INSTALL (ftp): Fixed Pango release typo (bug #153007)
1967 2005-02-13 Lars Clausen <lars@raeder.dk>
1969 * lib/font.c: First stab at using Gtk 2.4 functions for fixing
1970 width. Seems to work. Once tested some more, needs old code
1973 * lib/widgets.c (dia_font_selector_create_string_item): Avoid
1974 warning by escaping & properly.
1976 2005-02-06 Lars Clausen <lars@raeder.dk>
1978 * app/filedlg.c (file_export_callback): Set correct extension as
1979 soon every time the dialog is shown. Fixes bug #162535.
1981 * app/display.c (ddisplay_set_origo): Use more standard
1984 * app/modify_tool.c (modify_motion):
1985 * app/create_object.c (create_object_motion): Put coordinates of
1986 handle/object in status bar while moving. Fixes bug #163164.
1988 2005-02-03 Lars Clausen <lars@raeder.dk>
1990 * lib/.cvsignore: Added generated files diamarshal.[ch]
1992 2005-02-02 Lars Clausen <lars@raeder.dk>
1994 * configure.in: Add GLIB_GENMARSHAL def as suggested in
1995 http://ignore-your.tv/software/libgtcpsocket/docs/client-subclassing.html.
1996 Now compiles on Linux.
1998 2005-02-01 Lars Clausen <lars@raeder.dk>
2000 * app/sheets.c (sheet_object_mod_get_type_string): We don't really
2001 need to translate the empty string. Especially not after
2002 g_assert_not_reached(). Fixes bug #165966.
2004 2005-01-07 Tim Olsen <tolsen@alum.mit.edu>
2006 * objects/UML/activity.c : add fill- and line-colour properties
2007 [applied by Hans Breuer, fixes bug #163260]
2009 2004-01-28 Hans Breuer <hans@breuer.org>
2011 * doc/en/*.xml doc/en/dia.dbk app/authors.h : documentation
2012 update provided by Alan Horkan (fixes bug #159592)
2014 2004-01-28 Hans Breuer <hans@breuer.org>
2016 [Extented version for UML to C++ conversion by Dave Klotzbach, bug #155255]
2017 * plug-ins/xslt/dia-uml2cpp.xsl : (new file) ... handles associataions,
2018 generalization, dependancies, parameterized classes ...
2019 * plug-ins/xslt/styleshetts.xml : refernce it
2020 * plug-ins/xslt/dia-uml.xsl : handle more UML types uesd above
2022 2004-01-28 Hans Breuer <hans@breuer.org>
2024 * objects/UML/transition.c : fill out the extra_spacing struct
2025 in the OrtConn member, in order to avoid artifacts when draggin
2026 the transition. (patch by Peter Allin, bug #144956)
2028 2004-01-15 Hans Breuer <hans@breuer.org>
2030 * plug-ins/cairo/diacairo.c : initialized the renderers default dash_length
2031 to something differnt than 0. Apparently there are case where Dia misses
2032 to appropriately set it before requesting a dashed line (simple line with
2033 arrow as described in bug #151716)
2035 * lib/dia_dirs.c : special casing for drive letters which I broke with
2038 2005-01-13 Hans Breuer <hans@breuer.org>
2040 * app/interface.c(create_sheet_page) : remved dead long time code
2042 * lib/propdialogs.c : removed pdtpp_is_visible_no_standard() prototype,
2043 it is availbale via header - which is the better style anyway
2045 2004-12-31 Hans Breuer <hans@breuer.org>
2047 * lib/dia_dirs.c(dia_get_canonical_path) : complete
2048 rewrite to handle something like /mnt/some/where/../else
2049 too. Workaround for bug #162637.
2050 * app/filedlg.c : call gtk_file_chooser_set_current_name()
2051 to workaround gtk_file_chooser_set_filename() not setting
2052 it if the file does not exist
2054 * sheets/Jackson.sheet.in app/menus.c : fixed typos
2055 (Frank Arnold, bug #161676)
2057 2004-12-31 Steffen Macke <sdteffen@gmail.com>
2059 * doc/pl/*.xml: Added XML prolog
2060 * makefile.msc: Added libxslt, fixed libxml, libart
2062 2004-10-29 Alexander Shopov <ash@contact.bg>
2064 * configure.in (ALL_LINGUAS): Added "bg" (Bulgarian)
2066 2004-12-29 Lars Clausen <lars@raeder.dk>
2068 * configure.in: Make gnomeprint be truly off by default (typo) and
2069 show optional compilation correctly.
2070 * plug-ins/gprint/Makefile.am: Exclude gnomeprint if not optioned in.
2072 2004-12-22 Hans Breuer <hans@breuer.org>
2074 * lib/widgets.c : destroy handlers can be called more than once,
2075 see http://developer.gnome.org/doc/API/2.0/gtk/gtk-changes-2-0.html
2077 * app/app_procs.c : #ifdef GLIB(2.6.0) but GTK(2.4.x)
2079 * app/display.c : temporary debug code showing the
2080 timing the rendering
2082 * app/dialibartrenderer.c(draw_string) : removed dead
2083 code loading and leaking font and face
2085 2004-12-15 Hans Breuer <hans@breuer.org>
2087 * app/display.c : actually use the selction-changed signal for something
2088 useful. Show selections representation on statusbar.
2089 * lib/object.h lib/prop_text.c lib/libdia.def : provide objet_get_displayname()
2090 * app/diagram_tree.c : use new function (as in app/display.c) and only
2091 poke into property internals at one place
2092 * app/diagram.c : use g_signal_handlers_block_by_func to avoid has-no-handler-
2095 2004-12-12 Hans Breuer <hans@breuer.org>
2097 * lib/libdia.def app/dia.def : updated externals
2099 * objects/custom/custom_object.c : custom_destroy is called per object.
2100 It _must not_ destroy class stuff (ShapeInfo) cause it does not hold a
2101 reference to it. Fixes e.g. bug #158288, #160550, ...
2103 * objects/UML/association.c(association_draw) : completed porting to
2104 draw_polyline_with_arrows()
2105 (association_update_data_end) : fixed typo in point compare
2106 (association_update_data) : for name placement take degenerated
2107 segements into account. Together this fixes bug #143891
2109 2004-12-11 Hans Breuer <hans@breuer.org>
2111 * lib/widgets.c(set_size_sensitivity) : revert inverted
2112 logic for arrorw size selections, fixes bug #160527
2114 2004-12-11 Hans Breuer <hans@breuer.org>
2116 * lib/widgets.c(dia_font_selector_set_font) : initialize
2117 the font style widget, too. Gets rid of empty font
2118 style and thus default broken font style, e.g. UML::class_name
2120 * lib/widgets.c(dia_color_selector_more_callback) : fill
2121 the color palette from dynamic menu entries and also
2122 preselect the current color to the last select entry
2124 * plug-ins/python/pydia-diagramdata.c : hold a reference
2125 to the underlying GObject
2127 * app/Makefile.am app/diagrid.h : new file containing the
2128 grid 'class' moved from DiagramData to Diagram.
2129 Also moved pagebreak_color and guides cause they are only
2130 used for visual appearance not 'data'.
2131 * lib/diagramdata.[ch] app/diagram.h app/dia-props.c app/grid.c
2132 app/load_save.c plug-ins/python/pydia-diagramdata.c : reflect
2135 * lib/diagramdata.[ch] app/app_procs.c app/diagram.c
2136 lib/libdia.def : get rid of new_diagram_data()
2137 Diagram _is_ DiagramData (and does not have one any longer,
2138 just a compatibility pointer)
2140 * lib/diarenderer.h : a small doc improvement
2142 2004-12-11 Hans Breuer <hans@breuer.org>
2144 * objects/UML/class.c : line wrapping code buffer
2145 overrun fixed by Gabor Simon, bug #160865
2147 2004-12-11 Hans Breuer <hans@breuer.org>
2149 * plug-ins/python/pydia-diagram.c : hold a reference
2150 to the diagram in PyDiaDiagram, avoids bug #159080
2151 [another way to avoid is to detroy the dialog by
2152 clsoing it. But now there is still a diagram to
2153 apply the changes to, even if it's thrwon away just
2156 2004-12-10 Hans Breuer <hans@breuer.org>
2158 * **/*.c : fixed a bunch of warnings, not only for -ansi
2159 (still too many of them, but -ansi works)
2161 prop_geomtypes.h prop_geomtypes.c:306: warning: static
2162 declaration for `fontsizeprop_reset_widget' follows non-static
2163 dia_dirs.c:196: warning: return discards qualifiers from
2167 shape_info.c:121: warning: static declaration for `parse_path'
2171 arrow.c:228: warning: `draw_arrowhead' declared `static' but never defined
2172 arrow.c:244: warning: unused variable `i'
2173 arrow.c:245: warning: unused variable `p'
2174 arrow.c:246: warning: unused variable `zzr'
2176 object/Istar/*.c object/Jackson/*.c object/KAOS/*.c :
2177 finally removed c++ comments
2179 objects/Istar/goal.c : initialize connections::directions
2180 while I was there - helps autorouting
2182 * objects/KAOS/metaandorrel.c objects/Istar/link.c
2183 objects/KAOS/metabinrel.c : removed struct _DiaImage hack
2184 (it would be quite simple to add image-from-memory support
2187 * pydia-*.h : warning: no newline at end of file
2189 * plug-ins/gprint/diagnomeprint.c : allow to unregister
2190 and follow new unique name naming convention
2191 * plug-ins/gprint/diagnomeprintrenderer.c : no c++ comments
2194 2004-12-07 Hans Breuer <hans@breuer.org>
2196 * objects/UML/message.c : better default for initial text placement
2197 a suggested in bug #154306, Henning Mersch
2198 * objects/UML/constraint.c : doing the same
2200 * app/filedlg.c : include persistence.h for persistence_get_integer
2201 * lib/libdia.def export it
2203 2004-12-05 Hans Breuer <hans@breuer.org>
2205 * app/grid.c : respect dynamic grid during snap-to, fixes
2206 bug #135124, Dmitriy Morozov. Added some additional magic
2207 to make the grid size more useable.
2209 2004-12-05 Hans Breuer <hans@breuer.org>
2211 * app/app_procs.c : make it compile for the HAVE_POPT and
2212 G_LIB_CHECK_VERSION(2,5,5) case, minor formating
2214 * lib/plug-ins.c : don't pass non exiting files to xmlDiaParseFile()
2215 * app/app_procs.c : only dia_pluginrc_write() and create_user_dirs()
2216 when interactive. Fixes bug #119329
2218 * plug-ins/cairo/diacairo.c : adapt to new type naming
2219 scheme (introduced by accident;-) for pixbuf-*
2220 * app/app_procs.c : reflect both type name changes
2222 2004-12-04 Hans Breuer <hans@breuer.org>
2224 * objects/standard/image.c : fix the correct warning
2225 `image_file_name' might be used uninitialized
2227 * app/filedlg.c : near complete rewrite
2228 - removed 'related dialog', GtkOptionMenu, most global vars,
2229 also don't hide the dialog but let it go.
2230 - added: filter view by extension, hopefully working diagram
2231 referencing, GtkComboBox usage
2233 * plug-in/pixbuf/pixbuf.c : switched to dynamic generation
2234 of im/export filter entries. So the user interface reflects
2235 the dynamic nature of pixbuf loaders
2237 * lib/filter.[ch] : implement filter_unregister_*port
2238 lib/libdia.def : added new functions
2239 plug-ins/cgm/cgm.c plug-ins/dxf/dxf.c
2240 plug-ins/hpgl/hpgl.c plug-ins/metapost/metapost.c
2241 plug-ins/pstricks/pstricks.c plug-ins/svg/svg.c
2242 plug-ins/wpg/wpg.c plug-ins/xfig/xfig.c
2243 plug-ins/cairo/cairo.c plug-ins/pixbuf/pixbuf.c :
2244 use them in _plugin_unload () thus all these plug-ins
2245 can be loaded used and unloaded during Dia's runtime
2247 2004-12-04 Lars Clausen <lars@raeder.dk>
2249 * lib/diagramdata.h: Access methods for units defined per diagram.
2251 * lib/font.c (dia_font_new_from_style): More proper object creation.
2253 * lib/properties.h: Refactored the PROP_STD_* macros to allow
2256 * app/diagram.c (diagram_init): Force filename to be absolute
2257 path, easing the job for load/save.
2259 2004-12-03 Hans Breuer <hans@breuer.org>
2261 * lib/libdia.def : removed dia_marshal_*, they are implemented as macros.
2262 added dia_font_set_height, dia_font_copy (note to self: don't try to
2263 maintain these from the *NIX side ;)
2265 * lib/widgets.h : removed DiaColorSelector::col, it is not maintained by
2266 the new color selection anymore
2267 * objects/UML/class_dialog.c : with the above change it would have been more
2268 easy to fix the color loss bug #156996 which had nothing to do with 'a pointer
2269 problem' but only was an unfinished usage of dia_color_slector(get|set)_color
2271 * objects/UML/class_dialog.c objects/UML/class.[ch] : uml_apply_properties
2272 (used in object vtable) and make its prototype match
2274 * lib/widgets.c : made all the GtkTypeInfo 'static const'. I can't directly
2275 correlate any of these strange crashing bug with it, but assume bad things to
2276 happen when one passes stack allocated stuff to gtk_type_unique()
2278 * lib/widgets.c(dia_font_selector_get_font) : don't access menuitem if it is
2279 not there. Fixes most of the warnings from bug #156996
2281 * lib/makefile.msc : rules to generate diamarshal.[ch]
2283 2004-11-29 Hans Breuer <hans@breuer.org>
2285 * app/disp_callbacks.c : reenable so-called preedit
2286 as described in bug #158859, Etsushi Kato
2287 Also fixed some compiler warnings while there.
2289 * objects/standard/image.c(get_directory) : make
2290 the documentation match the implementation.
2291 (image_save) : don't write a leading slash on
2294 * plug-ins/gprint/diagnomeprintrenderer.c :
2295 switched to gnome-print-pango usage
2297 * app/app_procs.c configure.in : although Dia
2298 is not threaded it appears as if we have to
2299 g_thread_init() to avoid crashing in some
2300 libraries which are thread enabled
2302 * lib/diamarshal.list lib/Makefile.am : start of
2303 using GSignal to clean up some object relations
2304 * lib/libdia.def : export marshallers
2305 * app/diagram.[ch] : emit signals when REMOVED,
2307 * app/display.c : added a connection to
2308 SELECTION_CHANGED to test the new signal stuff
2310 * app/diagram.c : fixed diagram_finalize while I
2313 2004-11-28 Hans Breuer <hans@breuer.org>
2315 * plug-ins/wmf/wmf.cpp(draw_string) : write the widechar version of
2316 the text if conversion to current locale fails. [This is actually
2317 using code written four years ago;]
2318 * plug-ins/wmf/wmf_gdi.(h|cpp) : added TextOutW (no real implemantation)
2320 * objects/standard/image.c(image_load) : be more robust against
2321 filenames which seem to be absolute
2323 2004-11-27 Hans Breuer <hans@breuer.org>
2325 * app/filedlg.c(file_save_callback) : convert to
2326 filename encoding before passing to diagram_save()
2327 Fixes bug #158381, thanks to Robert Ögren
2329 2004-11-27 Hans Breuer <hans@breuer.org>
2331 * lib/dialibartrenderer.c : sometimes its good to read
2332 compiler warnings. Not only define renderer_finalize
2333 but actually *use* it. Should plug a potential huge
2336 * configure.in plug-ins/Makefile.am
2337 plug-ins/gprint/Makefile.am : build the experimental
2338 gnomeprint plug-in on *NIX, too.
2339 * plug-ins/gprint/diagnomeprint.c : don't include
2340 specific (private) backend headers but instead select
2341 the desired backend via config key setting
2343 * lib/diagdkrenderer.c : add 1 to size of filled arc
2344 to be rendered by gdk. Fixes bug #150896.
2346 * plug-ins/gprint/diagnomeprint.c
2347 plug-ins/gprint/diagnomeprintrenderer.c : added magic
2348 to better match page and dash sizes
2350 2004-11-27 Hans Breuer <hans@breuer.org>
2352 * plug-ins/shape/shape-export.c : it's g_strdup_printf
2354 2004-11-27 Hans Breuer <hans@breuer.org>
2356 * app/app_procs.c : mention eps-builtin aka. "using
2357 latin1", does not fix the eps-pango issues but #150571
2359 2004-11-27 Hans Breuer <hans@breuer.org>
2361 * sheets/Cybernetics.sheet.in : changed encoding to
2362 utf-8, patch from Takeshi AIHANA, fixes #149580
2364 2004-11-27 Hans Breuer <hans@breuer.org>
2366 * objects/custom/custom_object.c : many existing shapes
2367 rely on a square default size, revert to it although
2368 it originally was by a typo. Fixes bug #148527.
2370 2004-11-27 Hans Breuer <hans@breuer.org>
2372 * app/load_save.c(dia_cleanup_autosave)
2373 app/diagram.c : don't use dia->filename if already
2374 freed and dont use printf at all.
2376 * app/paginate_psprint.c : not only set the renderer::paper
2377 but also renderer::is_portrait. Should fix bug #142524
2379 2004-11-26 Hans Breuer <hans@breuer.org>
2381 * dia.desktop.in : added Bug Buddy headers (as seen
2382 in planner). Hopefully the automatically filling of
2383 bugs is more meaningful by this.
2385 * objects/custom/custom_util.c objects/standard/image.c
2386 lib/plug-ins.c : getting rid of deprecated g_dirname,
2387 fixes some more memory bugs : AddrAddress 0x3586C010 is 24
2388 bytes inside a block of size 44 free'd
2390 * lib/persistence.c(persistence_load_list) : don't
2393 * lib/diaerror.[ch] : (new file) start of better error handling
2394 * lib/Makefile.am lib/makefile.msc lib/libdia.def:
2395 added new files/funcs
2396 * lib/proplist.c lib/propinternals.h (prop_list_load) :
2397 allow to propagate error to caller. Also set PXP_NOTSET
2398 to avoid applying unset properties, fixes bug #155255
2399 * lib/propobject.c lib/prop_sdarray.c : still spewing
2400 g_warnings but now with context information
2402 * app/filedlg.c : more absolute filenames where required
2403 and strip them where we need the filename only
2404 Also explicit DONT choose gnome-vfs backend cause its
2405 threading appears to crash Dia - at least in GNOME build,
2408 2004-11-26 Hans Breuer <hans@breuer.org>
2410 * app/filedlg.c : don't use relative filenames for
2411 gtk_file_chooser_set_filename(), GtkFileChooserDialog is very
2413 (export_set_extension) : if we don't have a filename don't
2414 use it in strrchr() to avoid crashing
2416 2004-11-23 Hans Breuer <hans@breuer.org>
2418 * app/app_procs.c : fixed build for the GNOME case
2419 (let's rip out POPT and depend on glib-2.6, please ;-)
2421 2004-11-23 Hans Breuer <hans@breuer.org>
2423 * app/app_procs.c : fixed typo which broke the
2424 build for HAVE_POPT case
2426 2004-11-21 Hans Breuer <hans@breuer.org>
2428 * app/app_procs.c : some more #if-mess, but one day
2429 we should rely on GLib's 2.6 Option Parser alone
2431 * plug-ins/wmf/wmf.cpp : use SC() when scaling width
2432 and height for RoundRect() - otherwise size depends on offset,
2433 shorten the unique name
2435 * plug-ins/python/diamodule.c : provide a unique name
2436 for python filters as well
2438 * lib/dialibartrenderer.c : fix the drawing of Gdk based text
2439 by using the right colors (need black background cause we
2440 are tinitng it with the real color later)
2442 * lib/dia_dirs.c(dia_get_canonical_path) : use G_DIR_SEPARATOR_S
2443 instead of hardcoded slahes, improved portability
2445 * app/paginate_gdiprint.cpp : use the right filter name to find wmf
2446 plug-in. Also added some more error reporting (e.g. no printer driver)
2448 * plug-ins/gprint/diagnomeprintrenderer.[hc] plug-ins/gprint/diagnomeprint.c
2449 plug-ins/makefile.msc : resurrection of the gnome print renderer.
2450 Kinda works (alpha quality) for export but does not print yet.
2451 With bug #158972 resolved this does even work on win32 :-)
2453 2004-11-07 Hans Breuer <hans@breuer.org>
2455 * doc/diagram.dtd : <composite> can have <composite/>,
2456 <font/> has two 'optional' atributes 'style' and 'family',
2457 these are used to store new (since 0.91) font info.
2458 With this changes non of the issues in bug #147431 remains.
2460 * plug-ins/python/otypes.py : starting to implement an
2461 'create all known object' file as ne stress test source
2462 for the dtd and Dia in general.
2464 2004-11-06 Hans Breuer <hans@breuer.org>
2466 * app/diapsrenderer.c : don't convert to locale but to
2467 "LATIN1", fixes bug #146641
2469 2004-11-06 Hans Breuer <hans@breuer.org>
2471 * app/diagram_tree.c : still no C99 everwhere ...
2472 * lib/libdia.def : update externals
2473 * plug-ins/pstricks/render_pstricks.c : #include <locale.h>
2475 * app/app_procs.[hc] : declare, use ...
2476 app/winmain.c : ... and implement dia_redirect_console().
2477 Even though newer Gtk version don't popup a console window
2478 anymore redirecting the error messages to a file in $TEMP appears
2479 to be much more reasonable than just ignoring it. Fixes bug #150777
2480 based on a patch from Steffen Macke
2482 2004-11-06 Hans Breuer <hans@breuer.org>
2484 * plug-ins/wmf/wmf.cpp plug-ins/wmf/wmf_gdi.* : added/used
2485 RoundRect() for high level renderer api implementation thus
2486 fixing bug #138744 reported by Lars Clausen
2488 2004-11-06 Hans Breuer <hans@breuer.org>
2490 * app/prefernces.c : applied patch to make showing the diagram
2491 menubar the default (advanced users know how to switch it off)
2492 Fixes bug #150706, Steffen Macke
2494 2004-11-06 Hans Breuer <hans@breuer.org>
2496 * app/commands.c app/commands.h : added view_fullscreen_callback()
2498 app/menus.c : use it (/View/Fullscreen) thus fixing bug #94090
2499 * app/disp_callbacks.c : use view_unfullscreen() for GDK_Escape
2500 ALso modified to allow handling of unmodified keys again (aren't
2501 there plenty of bug reports for this?
2503 2004-11-06 Hans Breuer <hans@breuer.org>
2505 * objects/UML/class_dialog.c : fixed casts for usage
2506 of dia_color_selector_set_color()
2508 * app/filedlg.c : pass a valid filenames to
2509 gtk_file_chooser_set_filename(), if we don't have a name
2510 don't call it at all. Gets rid of "libgnomevfs-CRITICAL **:
2511 file gnome-vfs-utils.c: line 749 (gnome_vfs_get_uri_from_local_path):
2512 assertion `local_full_path[0] == '/'' failed"
2514 2004-11-06 Lars Clausen <lars@raeder.dk>
2516 * app/properties.c (create_dialog):
2517 * app/diagram_tree_window.h:
2518 * app/diagram_tree.h (HIDDEN_TYPES_NAME):
2519 * app/diagram_tree_menu_callbacks.c:
2520 * app/diagram_tree_window.c:
2521 * app/diagram_tree_menu.c:
2522 * app/diagram_tree.c: Changed to use persistence instead of
2523 strange hacks in preferences.
2525 * lib/persistence.h:
2526 * lib/persistence.c (persistent_list_get_glist): Don't deref null
2527 pointer. New function persistent_list_remove_all, and
2528 fixed persistent_list_remove to ... work!
2530 2004-11-05 Lars Clausen <lars@raeder.dk>
2532 * app/paginate_psprint.c (diagram_print_ps): Call
2533 diagram_print_destroy on destroy rather than delete_event. That
2534 way the gtk_widget_destroy() calls cleans up properly. Fixes bug
2537 2004-11-02 Lars Clausen <lars@raeder.dk>
2539 * objects/UML/class.c (umlclass_load): Actually load the saved
2540 fonts and font sizes. Fixes bug #157016
2542 * configure.in: Require at least GTK+ 2.4.
2544 * app/filedlg.c: Changed to use 2.4 file dialog! Finally,
2545 finally, finally. Not quite bulletproof yet, and I need to figure
2546 out a minimum version of Gtk that doesn't spew warnings all over.
2548 * app/diagram.[ch]: diagram_set_filename with const filename.
2550 * app/sheets_dialog_callbacks.c
2551 (on_sheets_dialog_button_apply_clicked): Sheet menu now almost
2552 correctly recreated. Still something fishy with the sheet menu in
2553 the dialog after adding a new sheet. Probably the sheet name
2556 2004-11-01 Lars Clausen <lars@raeder.dk>
2558 * lib/widgets.[ch] (dia_dynamic_menu_reset): Harden against memory
2559 stmping. Now requires g_free here and there.
2561 * app/preferences.[ch] (prefs_data): Got rid of hidden prefs value
2562 for remembering last sheet, better off as persistent string. Must
2563 hunt down other things like that.
2565 * app/interface.c (create_sheets): Now remembers last sheet
2566 selected again. Fixes bug #157036.
2568 2004-11-01 Hans Breuer <hans@breuer.org>
2570 * plug-ins(tex_escape_string) : fixed it [g_utf8_next_char
2571 will never become NULL but only point to the next char
2572 which might indeed be \0]
2573 Use tex_escape_string() to avoid writing invalid tex,
2576 * **/* : a bunch of changes caused by trying 'make distcheck'
2577 which still fails, see Bug #144527
2579 2004-10-31 Lars Clausen <lars@raeder.dk>
2581 * plug-ins/pstricks/render_pstricks.c (export_pstricks): Avoid
2582 floating point numbers being printed with commas. Fixes bug
2585 * app/interface.c (create_sheet_dropdown_menu): New function to
2586 create the sheet menu, and also allow recreation. Still buggy and
2587 slightly prone to magic.
2589 * objects/UML/class_dialog.c
2590 (attributes_list_selection_changed_callback): Don't try to update
2591 the widgets after they're destroyed. Fixes bug #156706 (I think).
2593 * lib/widgets.c (dia_unit_spinner_new): Avoid crash on NULL
2594 adjustement. Fixes bug #154637
2596 * sheets/ER/Makefile.am (PIX):
2597 * sheets/GRAFCET/Makefile.am (PIX):
2598 * sheets/Jackson/Makefile.am (PIX):
2599 * sheets/Istar/Makefile.am (PIX):
2600 * sheets/KAOS/Makefile.am (PIX): Actually install PNG instead of
2601 XPM. Why these have their pictures in sheets rather than shapes I
2602 don't know. Fixes bug #152142.
2604 2004-10-31 Hans Breuer <hans@breuer.org>
2606 * plug-ins/pixbuf/pixbuf.c : when running non interactive
2607 Dia won't call color_init() as it assumes no display. If
2608 we have one as tested ourselve we can as well color_init()
2609 to avoid g_warnings() and produce the right collors.
2612 * app/app-procs.c : try to be a little more helpful
2613 and correct with regard to the command line options.
2614 Renamed --export-to-format to --export-filter and some
2615 other string changes
2617 2004-10-31 Hans Breuer <hans@breuer.org>
2619 * plug-ins/wmf/wmf_gdi.cpp plug-ins/wmf/wmf_gdi.h :
2620 added GetDeviceCaps() dummy implementation to make
2621 'wmf' compile on Linux, too.
2623 2004-10-31 Hans Breuer <hans@breuer.org>
2625 * plug-ins/wmf/wmf.cpp : patch from Robert Ögren <gtk@roboros.com>
2626 to finally fix the long lasting clipping issue, bug #85831
2627 Also fixed the line style issue for printing on XP and don't
2630 * plug-ins/wmf/wmf_gdi.[hc] : added ReleaseDC()
2632 * plug-ins/python/diasvg.py : filter illegal characters from <text/> section
2633 (e.g. < instead of <), fixes bug #155697 (Duncan Palmer)
2635 * plug-ins/python/pydia-error.[hc] : improvede exception handling to transfer
2636 some info from the console (soon gone on windoze) to message_error()
2637 * plug-ins/python/pydia-render.c plug-ins/python/diamodule.c : use it.
2638 Also some setlocale() hack to let Python behave as expected for LC_NUMERIC
2640 plug-ins/python/diasvg_import.py : re.compile() only once per expression
2641 and some more playing with scaling
2643 * plug-ins/python/makefile.msc : updated
2645 2004-10-30 Hans Breuer <hans@breuer.org>
2647 * shapes/Civil/civil_arrow_right.shape : removed
2648 <aspectratio type="fixed" /> thus allowing to change
2649 width and height independently, fixes #154897
2650 (Serge Robinson) by making it consistent with the
2653 2004-10-30 Hans Breuer <hans@breuer.org>
2655 * plug-ins/xfig-xfig-export.c(hasArrow) : don't crash
2656 on arrow being NULL, fixes bug #143063
2658 2004-10-30 Hans Breuer <hans@breuer.org>
2660 * lib/diagramdata.c app/diagram.c app/disp_callbacks.c
2661 plug-ins/python/pydia-diagram.c plug-ins/python/pydia-diagramdata.c :
2662 removed use of chached variable DiagramData::selected_count
2663 * lib/diagramdata.h : renamed to selected_count_private
2664 (kept for binary compatibility and sanity checks)
2665 * lib/diagramdata.c : more checks on a screwed up selection list
2667 * app/diagram.c(diagram_group_selected) : don't screw up the
2668 DiagramData::selected list, was assignment of parent_list_affected(),
2669 * lib/diagramdata.c (data_select, data_unselect) : protect against
2670 multiple selections of the same object and removement of a not selected
2671 object (apparently caused by the recently added group undo stuff)
2672 together with the above this finally fixes bug #153525
2674 * app/Makefile.am : fix ./autogen.sh ->
2675 app/Makefile.am:171: blank line following trailing backslash
2677 * app/commands.c(objects_group_callback,objects_ungroup_callback) :
2678 ddisplay_do_update_menu_sensitivity() here as well
2680 * configure.in : make the experimental state of the cairo plug-in
2683 * app/dia-props.c(diagram_properties_update_sensitivity) : don't
2684 try to update anything if we can't find an active diagram
2685 Additionally set static dialog pointer to NULL by gtk_widget_destroyed
2687 * configure.in : another attempt to fix bug #156116. If there is
2688 anyone with autotools knowledge reading this - help appreciated ;-)
2690 2004-10-30 Hans Breuer <hans@breuer.org>
2692 * objects/makefile.msc objects/UML/Makefile.am
2693 objects/UML/uml.c objects/UML/transition.c
2694 objects/UML/pixmaps/transition.xpm sheets/uml.sheet.in :
2695 Patch from Peter Allin adds statechart transitions to the UML sheet -
2696 bug #144956 - modified to not print("%s", NULL) which crashes on
2697 newer glib versions. Also added pixmap/transition.xpm to Makefile.am
2699 2004-10-30 Hans Breuer <hans@breuer.org>
2701 * doc/sheet.dtd doc/diagram.dtd : the namespace does *not*
2702 match the website anymore, i.e. sould remain unchanged.
2703 See below and lib/dia_xml.h for the reasoning
2705 * lib/libdia.def : removed dia_color_selector_get_type
2707 * lib/dia_image.c(dia_image_load) : check for pixbuf warnings
2708 (like broken PNG) and g_warning if appropriate
2710 * app/interface.c : #include "message.h"
2712 * app/diaunitspinner.hc : replaced the superfluous #if-0-juggling,
2713 used #error "Moved to lib/widgets.[hc]" instead (IMO it would be
2714 better to just move diaunitspinner to lib/ instead of polluting
2715 widgets.[hc] even more ;)
2716 * app/makefile.msc lib/libdia.def : updated
2718 * app/filedlg.c : patch from gtk@roboros.com, fixes #156224
2719 * app/app_procs.c : patch from gtk@roboros.com, fixes #156088
2721 * config.h.win32 : #define HAVE_CAIRO to let the Cairo plug-in
2722 do something useful when compiled
2724 * plug-ins/cairo/diacairo.c : added 'PNG with alpha' rendering.
2725 Also some more #ifdefed backends usage.
2727 2004-10-10 Lars Clausen <lars@raeder.dk>
2729 * lib/widgets.c: Better labels for color selector menu.
2731 * app/dia-props.c (diagram_properties_respond):
2732 * app/preferences.c (prefs_get_value_from_widget): Don't assume
2733 that a dia color selector is of type DiaColorSelector:)
2735 * lib/widgets.[ch]: Color selector changed to dynamic menu.
2737 * lib/prop_attr.c (colorprop_set_from_widget): Don't assume
2740 2004-10-09 Lars Clausen <lars@raeder.dk>
2742 * lib/diaarrowchooser.c (dia_arrow_preview_init): Slightly wider
2743 arrow preview to avoid long arrow heads flipping.
2745 * lib/arrows.[ch]: Support for getting from name to arrow type,
2746 and for listing all arrow names.
2748 * lib/widgets.[ch]: Changed arrow selector to use dynamic menu.
2750 * lib/libdia.def: Added new global functions.
2752 * lib/persistence.[ch]: Two of the persistent_list functions to
2753 return whether the item was found in the list.
2755 * app/interface.c (create_sheets): Use DiaDynamicMenu to handle
2756 the growing number of sheets.
2758 * lib/widgets.[ch]: Add DiaDynamicMenu as a generalization of the
2761 2004-10-05 Lars Clausen <lars@raeder.dk>
2763 * objects/UML/association.c: Patch from Harvey Thompson
2764 <harveyandsu@yahoo.com>: Better placement of association texts.
2766 2004-10-03 Lars Clausen <lars@raeder.dk>
2768 * lib/widgets.c (dia_font_selector_add_menu_item): Make font menu
2769 use the fonts in question. Can't set tooltips with the name since
2770 lib objects don't know the tool_tips thing, which is rather
2773 2004-09-19 Hans Breuer <hans@breuer.org>
2775 * plug-ins/xslt/*.xsl : s/apply-templates match/apply-templates select/
2776 fixes bug #148278, carlosrp@idea.com.py (Carlos Ra�l Perasso)
2778 2004-09-19 Hans Breuer <hans@breuer.org>
2780 * dia.desktop.in : string changes as proposed in bug #151822
2782 * lib/Makefile.am : remove -module from libdia_la_LDFLAGS,
2783 appearts not to be needed on Linux and breaks the build
2784 on OSX. Fixes bug #152970
2786 2004-09-18 Lars Clausen <lars@raeder.dk>
2788 * app/commands.c (view_show_all_callback): Add a bit of border
2789 around Ctrl-E'd diagram, for easier select and better view of edges.
2791 2004-09-19 Hans Breuer <hans@breuer.org>
2793 * app/Makefile.am : trying to fix the fix from 2004-02-15
2794 Overwriting AM_LDFLAGS still gave a automake warning and it
2795 also appeard to break linking against gtklibs in a differnt
2796 prefix. Use dia_LDFLAGS instead.
2798 * plug-ins/svg/svg-import.c : initialize 'end' before usage
2799 patch from dcbw@redhat.com (Dan Williams), fixes bug #150548
2801 * lib/diarenderer.c : don't try to draw lines which are so much
2802 degenerated that their point count became negative, fixes bug #148139
2804 * lib/font.c(layout_cache_equals) : don't crash on nonexisting
2805 strings (NULL from g_strdup())
2807 2004-09-10 Steffen Macke <sdteffen@web.de>
2809 * lib/libdia.def: added color_new_rgb(), focus_previous(),focus_next(),
2810 give_focus(),give_focus_to_object(),remove_focus(),reset_foci()
2811 * app/create_object.c:
2812 * app/diaunitspinner.c:
2813 * app/disp_callbacks.c:
2815 * app/modify_tool.c:
2816 * lib/prop_geomtypes.c:
2817 * lib/prop_geomtypes.h: made compile with msvc
2819 2004-09-10 Lars Clausen <lars@raeder.dk>
2821 * lib/widgets.c: Insulate conversion from outside API by adding
2822 internal function to set value. Adjustment not appropriate for
2825 * lib/prop_geomtypes.c (lengthprop_get_widget): Remove debug info
2827 2004-09-07 Lars Clausen <lars@raeder.dk>
2829 * app/diapagelayout.c: Include from widgets.c rather than
2832 2004-09-03 Lars Clausen <lars@raeder.dk>
2834 * objects/standard/box.c: Use PROP_TYPE_LENGTH for corner_radius
2835 as unit-based property testbed.
2837 * lib/prop_geomtypes.c (lengthprop_reset_widget): Implement length
2838 and fontsize widgets.
2840 * app/Makefile.am (dia_core_files):
2841 * app/diaunitspinner.h:
2842 * app/diaunitspinner.c:
2844 * lib/widgets.c (dia_unit_spinner_update): Move diaunitspinner to
2845 lib/widgets.[ch], as it's used in the properties code now.
2847 2004-08-31 Steffen Macke <sdteffen@web.de>
2849 * doc/en/usage-objects-basic.xml: Mentioning supported image formats.
2851 2004-08-30 Lars Clausen <lars@raeder.dk>
2854 * app/diagram.c (diagram_remove_all_selected): Remove debugging
2859 * app/disp_callbacks.c:
2861 * app/create_object.c:
2862 * app/textedit.[ch]:
2863 * app/modify_tool.c:
2866 * lib/focus.[ch]: Change in focus mechanism to allow highlight of
2867 current input object, multiple inputs per object, and tabbing
2870 2004-08-28 Steffen Macke <sdteffen@web.de>
2872 * makefile.msc: added bs to ALL_LINGUAS; adjusted .mo file creation to
2873 allow separate installer component "Translations"
2875 2004-08-27 Akagic Amila <bono@linux.org.ba>
2877 * configure.in: Added 'bs' to ALL_LINGUAS.
2879 2004-08-26 Steffen Macke <sdteffen@web.de>
2881 * app/makefile.msc: using /subsystem:windows again
2882 * makefile.msc: updated ALL_LINGUAS
2884 2004-08-21 Kjartan Maraas <kmaraas@gnome.org>
2886 * configure.in: Add «nb» to ALL_LINGUAS.
2888 2004-08-21 Steffen Macke <sdteffen@web.de>
2890 * plug-ins/dxf/dxf-export.c: Patch from
2891 Takeshi Hamasaki <hma@syd.odn.ne.jp>, fixes text alignment
2893 2004-08-17 Lars Clausen <lars@raeder.dk>
2896 * dia.spec (Release):
2902 2004-08-13 Ankit Patel <ankit@redhat.com>
2904 * configure.in: Added "gu" in ALL_LINGUAS.
2906 2004-08-07 Lars Clausen <lars@raeder.dk>
2912 * dia.spec (Release):
2913 * NEWS: New release 0.94-pre6
2915 2004-08-07 Lars Clausen <lars@raeder.dk>
2917 * app/highlight.c (highlight_reset_objects): Unhighlight inside
2921 * plug-ins/shape/shape-export.c: String capitalization fix from
2922 Alan Horkan <horkana@tcd.ie>
2924 * objects/UML/class.c (umlclass_show_comments_callback): Make UML
2925 Class object menu kinda work, rather than blow up. Doesn't do a
2926 proper undoable change yet.
2928 2004-08-06 Lars Clausen <lars@raeder.dk>
2930 * app/filedlg.c (file_save_as_callback): Don't remove related
2931 dialogs from the NULL diagram.
2933 2004-08-02 Lars Clausen <lars@raeder.dk>
2938 * dia.spec (Release):
2939 * NEWS: Pre5 with leak fix.
2941 * lib/font.c (dia_font_build_layout): Don't try to save an
2942 allocation of LayoutCacheItem if it breaks layout cache hash.
2943 Also make hash function correct, remove explicit height entry
2944 (it's in pfd), and make sure things are correctly unreffed.
2945 Finally fixes #148141.
2947 * lib/text.c (text_set_attributes, text_set_font): Safely unref
2948 when changing font, and actually set the new font in
2950 (text_get_attributes): Ref copied font.
2952 2004-08-01 Lars Clausen <lars@raeder.dk>
2956 * dia.spec (Release):
2959 * doc/en/dia.xml: Prerelease 4.
2961 * lib/font.c (dia_font_build_layout): Better comparision and
2962 freeing of font cache.
2964 2004-07-31 Lars Clausen <lars@raeder.dk>
2966 * lib/font.c (dia_font_build_layout): Faster update to avoid
2969 * app/app_procs.c: Fix from Tom Parker <palfrey@bits.bris.ac.uk>:
2970 Correctly initialize export filter variable.
2972 2004-07-25 Lars Clausen <lars@raeder.dk>
2974 * dia.spec (Release):
2979 * doc/pl/dia.xml: Pre3 coming out.
2981 * lib/diarenderer.c (draw_polygon):
2982 * plug-ins/dxf/dxf-export.c (export_dxf): Two fixes by Takeshi
2983 Hamasaki <hma@syd.odn.ne.jp>: Correct header to be a 0 (zero)
2984 rather than O (letter), and assert num_points > 1 rather than the
2987 * app/recent_files.c:
2990 * app/app_procs.c: Patch from Vitaly Lipatov <lav@altlinux.ru>:
2991 Make filenames conform to filesystem encoding.
2993 * RDP/.cvsignore: Added standard ignore.
2995 * shapes/network/Makefile.am (SHAPES): Use PNG instead of XPM for
2996 last entry patch-panel, too.
2999 * shapes/Circuit/*.png:
3000 * shapes/Civil/*.png:
3001 * shapes/Contact/*.png:
3002 * shapes/Electric/*.png:
3004 * shapes/Pneumatic/*.png:
3006 * shapes/flowchart/*.png:
3007 * shapes/jigsaw/*.png:
3008 * shapes/network/*.png:
3009 * shapes/sybase/*.png:
3011 * dia_gnome_icon_large.png:
3012 * doc/pl/graphics/*.png: Set -kb for PNGs.
3014 * sheets/{ER,GRAFCET,Istar,Jackson,KAOS}: Added .png files.
3016 2004-07-22 Lars Clausen <lars@raeder.dk>
3022 * dia.spec (Release):
3023 * configure.in: Update to version 0.94-pre2.
3025 * app/load_save.c (diagram_data_write_doc): Use new namespace
3028 * lib/object.h (OBJECT_COMMON_PROPERTIES): Remove 'Dia' from
3029 hidden objects properties.
3031 * objects/standard/line.c: Remove halffinished line gap box from
3034 * app/paginate_psprint.c:
3035 * app/filedlg.c: Patch from kimmidi@novell.com (Kiran Kumar
3036 Immidi): Close export and print dialog with diagram as well.
3039 * lib/diaarrowchooser.[ch]: Patch from pborelli@katamail.com (paolo
3040 borelli): Remove deprecated stuff (#137693)
3042 * app/dia-props.c (create_diagram_properties_dialog): Patch from
3043 kimmidi@novell.com (Kiran Kumar Immidi): Close properties dialog
3046 2004-07-21 Ray Strode <rstrode@redhat.com>
3048 * dia/dia.desktop.in: Add MimeType line to desktop file
3051 2004-07-18 Hans Breuer <hans@breuer.org>
3053 * shapes/(Circuit|Contatct|MSE|network|Pneumatic|SDL|sybase)/Makefile.am
3054 sheets/UML/*.png : icons in png format
3055 Partial fixup of stuff broken with the following comment:
3056 "7 days : xpm->png, namespace fix, first rotation bits."
3058 * app/load_save.c(read_objects) : don't add objects to the layer.
3059 This function is called recursively and only the topmost objects
3060 belong in the layers object list. Fixes bug #145417 and is the
3061 the real fix for bug #142480
3063 * app/app_procs.c : make the --size hack even uglier, but work again
3065 * lib/dia_dirs.c(dia_get_absolute_filename) : must not free()
3066 but g_free() what is returned by g_build_filename()
3068 * objects/custom/custom_object.c(custom_destroy) : handle all enum
3069 values in switch to get rid of the warning
3071 * objects/custom/shape_info.c : use g_ascii_strtod(), get rid
3072 of setlocale()/strtod()
3073 * lib/dia_svg.c : dito
3074 * lib/dia_xml.c : almost
3076 * plug-ins/python/group_props.py : use the string representation of
3077 value to ensure "unique values". If the strings would not be different
3078 the user cann't see the difference either
3080 2004-07-17 Lars Clausen <lars@raeder.dk>
3082 * lib/persistence.h: Have "void" in prototypes (#142663)
3084 * lib/widgets.c (dia_font_selector_init): Better string handling
3087 * lib/persistence.c (persistence_save_type): Small fixes (#142663)
3089 * objects/standard/image.c (image_load): Use path of diagram
3090 rather than running directory as base for image file place.
3092 * doc/{diagram,sheet}.dtd: Move DTD namespace to new site, and
3095 * app/disp_callbacks.c (ddisplay_canvas_events): Patch from
3096 Ambrose Li <a.c.li@ieee.org>: Better IM context handling.
3098 * Re-added new sample diagrams binarily.
3100 2004-07-17 Sagar Rastogi <rastogi@students.iiit.net>
3102 * app/disp_callbacks.c: Fixed #144962 (also in KNOWN_BUGS),
3103 Disabled keyboard accels when dragging an object.
3105 2004-07-14 Lars Clausen <lars@raeder.dk>
3107 * app/grid.c (snap_to_grid): Use diagrams grid setting to
3108 determine hex grid snap.
3110 * doc/pl/Makefile.am: Avoid error based on backslash in comment.
3112 * app/interface.h: Avoid multiply defined symbols (#147396)
3114 2004-07-10 Lars Clausen <lars@raeder.dk>
3116 * app/sheets_dialog_callbacks.c (write_user_sheet):
3117 * lib/sheet.c (load_register_sheet): Don't introduce double
3118 slashes in namespace.
3120 * lib/dia_xml.h (DIA_XML_NAME_SPACE_BASE): Keep consistent with
3121 old diagrams, or XSLT will barf all over.
3123 * shapes/RDP/place.shape:
3124 * shapes/RDP/transition.shape:
3125 * shapes/RDP/Makefile.am: Added .png entries to SHAPES and changed
3126 shapes to use those.
3128 2004-07-07 Lars Clausen <lars@raeder.dk>
3131 * doc/{en,pl}/dia.xml:
3134 * NEWS: First prerelease of version 0.94. Now with release
3135 versions in a branch and main devel in the trunk.
3137 2004-07-05 Hans Breuer <hans@breuer.org>
3139 * */*.[hc] */*/*.c : a bunch of changes to make Dia compile with
3140 -std=c89. Mostly //-comments and M_PI -> G_PI
3141 [Istar, Jackson, KAOS were removed from build cause they
3142 simply have *too* much C++ comments ;]
3143 * object/UML/association.c : use g_strdup() not plain strdup()
3144 * app/paginate_psprint.c : avoid storage size of `pipe_action'
3145 isn't known with more portable signal code
3147 * app/app_procs.c : don't call gtk_init() if just --version
3148 is requested (bug #144321, Vladimir Kondratiev)
3150 * lib/prop_attr.c(fontprop_set_from_offset) : only unref
3151 DiaFont* if not NULL
3152 * objects/UML/class.c : moved fill_in_fontdata() to
3153 umlclass_load() to avoid such trouble, though unsure if
3154 this really is an improvement...
3156 * shapes/network/makefile.am : patch-panel added here too
3158 2004-07-04 Hans Breuer <hans@breuer.org>
3160 * sheets/network.sheet.in shapes/network/patch-panel.xpm
3161 shapes/network/patch-panel.xpm : added 24-Port-Patch-Panel
3162 fixes bug #136629, James McDonald
3164 2004-07-04 Hans Breuer <hans@breuer.org>
3166 * lib/persistence.c app/load_save.c app/sheet_dialog_callbacks.c
3167 lib/object_defaults.c : revert changing of Dia's XML namespace
3168 * lib/dia_xml.h : #define DIA_XML_NAME_SPACE_BASE with a comment
3169 about its purpose and relation to real world urls.
3171 * lib/plug-ins.h : increment DIA_PLUGIN_API_VERSION and
3172 added comment about when to do so
3173 [Should have been long time ago and probably multiple times
3174 to avoid crashing on older plug-ins]
3175 * RELEASE-PROCESS : mention DIA_PLUGIN_API_VERSION
3176 * plug-ins/xslt/xslt.c : use DIA_PLUGIN_CHECK_INIT
3178 * lib/object.c objects/UML/class.c : there are still compilers not
3179 supporting C99 and other GCCISMs like allocating dynamic sized arrays
3181 * objects/UML/class.h : there is a differnce between a list pointer
3182 and a list pointer pointer. We and GLib want the former.
3184 * plug-ins/pixbuf/pixbuf.c : don't use app_is_interactive () to detect
3185 if Gtk is initialized. Using gdk_display_get_default () avoids the
3186 app/* dependency and is also closer to the requirements of the
3189 * plug-ins/cairo/diacairo.c : initialize "unique name" field. Also
3190 some #ifdefed support for Cairo backends not public available yet.
3192 * plug-ins/wmf/wmf.cpp : finally do extended linestyles if the
3193 windoze platform supports them. This should fix bug #109818, at
3194 least for the majority running NT or above ...
3195 * plug-ins/wmf/wmf_gdi.[hc] : portability stuff for the above
3197 * objects/makefile.msc : build Istar, Jackson and Kaos
3199 * objects/UML/class.c(umlclass_load) : don't wrap by default to
3200 keep old diagrams as they were - instead of this nice new effect ;-)
3201 Also make "wrap_operations" PROP_TYPE_BOOL in PropDescriptions
3203 * objects/UML/class.c : mark for translation _("Wrap ...
3205 * objects/UML/class.c : more correct types, also some default properties
3206 dialog pages adjustment (triggering a bug in lib/prop_widgets.c ?;)
3208 * objects/UML/activity.c : removed a leftover from the
3209 use-localization-for-font-substitution-hack
3211 * shapes/ChemEng shapes/Cybernetic shapes/Map/Isometric :
3212 'cvs admin -kb *.png' PNG files should already be *added* as binary,
3213 otherwise they are not readable on line-end-converting-platforms
3215 * plug-ins/python/use g_new0(Dia<Im|Ex>portFiler), avoids crashing
3216 filter_get_by_name()
3218 * plug-ins/python/pydia-property.c : some more g_warnings for
3219 not implemented conversions
3221 * plug-ins/python/group_props.py : ensure unique property values
3222 at the right place. Now something like :
3223 - load an old UML class diagram
3224 - change one of the classes to wrap operations
3225 - select all classes (/Select/Same Type)
3226 - /Dialogs/Group Properties : check wrap_operations, select '1'
3227 - Ok, works like a charm :-)
3229 2004-07-04 Lars Clausen <lars@raeder.dk>
3231 * lib/diagdkrenderer.c (draw_string): Don't unref NULL
3234 2004-07-03 Lars Clausen <lars@raeder.dk>
3236 * app/app_procs.c (do_convert): Two patches from Vitaly Lipatov
3237 <LAV@VL3143.spb.edu>: Fixes console output problems and some
3238 interactiveness problems.
3240 2004-07-02 Lars Clausen <lars@reader.dk>
3242 * plug-ins/pixbuf/pixbuf.c (dia_plugin_init): Don't load if the
3243 app isn't interactive.
3245 2004-07-01 Lars Clausen <lars@raeder.dk>
3247 * plug-ins/cairo/diacairo.c: Add init of last field of filter
3248 struct to remove crash.
3250 * sheets/Makefile.am (sheet_in_files):
3251 * shapes/Makefile.am:
3252 * sheets/ChemEng.sheet.in:
3253 * shapes/ChemEng/Makefile.am:
3255 New sheet from "Federico Zenith" <zenith@chemeng.ntnu.no>:
3256 Chemical engineering shapes.
3258 * app/Makefile.am (run_dia.sh$(EXEEXT)): Changed $* to $@ to allow
3259 multiple arguments when using devel script.
3261 * app/display.c (new_display):
3263 * lib/diagramdata.c (new_diagram_data):
3264 * lib/diagramdata.h:
3265 * app/preferences.h:
3266 * app/preferences.c:
3269 * lib/diagramdata.c (new_diagram_data): Patch from Peter Poulsen
3270 <peter_poulsen@stofanet.dk>: Add hexagonal grid!
3273 * doc/pl/authors.xml:
3274 * doc/en/authors.xml:
3275 * lib/object_defaults.c (dia_object_defaults_save):
3276 * readme.win32 (BTW):
3277 * lib/persistence.c (persistence_save):
3278 * app/load_save.c (diagram_data_write_doc):
3279 * app/commands.c (help_about_callback):
3280 * README: Fix links to home page.
3283 * app/load_save.c (diagram_data_load):
3284 * lib/prop_text.c (stringprop_load): Avoid NULL strings when
3285 loading, and guard against them when fonting.
3287 * lib/diarenderer.c (draw_rounded_polyline): Patch from
3288 anthonym@overture.com: Make limited rounding a corner-specific
3289 rendering-only thing.
3291 2004-06-30 Lars Clausen <lars@raeder.dk>
3293 * lib/font.c (dia_font_build_layout): Return to 0.93.1 font size
3294 adjustment: If you can't fix it, at least don't change it.
3296 * objects/SADT/arrow.c (sadtarrow_draw): Use new rounded arrow
3297 code instead of individual code in here.
3299 2004-06-29 Lars Clausen <lars@raeder.dk>
3301 * objects/UML/association.c: Patch from Kiran
3302 Kumar Immidi <kimmidi@novell.com>: Fix bounding box for line end
3307 * lib/diarenderer.c (draw_rounded_polyline):
3308 * objects/standard/polyline.c (polyline_draw):
3309 * objects/standard/zigzagline.c (zigzagline_draw):
3310 Patch from anthonym@overture.com: Add rounded polylines.
3312 2004-06-27 Lars Clausen <lars@raeder.dk>
3314 * lib/font.c (dia_font_new_from_style): Initialize legacy name.
3316 * lib/widgets.c (dia_font_selector_get_family_from_name): Don't
3317 free family list before taking out the pointer we need. Also set
3318 the entry_nr correctly so we get the menu set up right.
3320 2004-06-23 Lars Clausen <lars@raeder.dk>
3322 * lib/widgets.c (dia_toggle_button_new_with_images): Sink the
3323 images at the right place.
3325 * objects/Istar/actor.c
3326 * objects/Istar/goal.c
3327 * objects/Istar/istar.c
3328 * objects/Istar/istar.h
3329 * objects/Istar/link.c
3330 * objects/Istar/other.c
3331 * objects/Jackson/domain.c
3332 * objects/Jackson/jackson.c
3333 * objects/Jackson/jackson.h
3334 * objects/Jackson/phenomenon.c
3335 * objects/Jackson/requirement.c
3336 * objects/KAOS/goal.c
3337 * objects/KAOS/kaos.c
3338 * objects/KAOS/kaos.h
3339 * objects/KAOS/metaandorrel.c
3340 * objects/KAOS/metabinrel.c
3341 * objects/KAOS/other.c: Patch from Patch from Christophe Ponsard
3342 <cp@cetic.be>: Fix instability issues caused by not returning NULL
3343 in *_move_handle and *_move. Also improved the headers with
3344 correct (c) information.
3346 2004-06-22 Lars Clausen <lars@raeder.dk>
3348 * objects/KAOS/goal.c:
3349 * objects/KAOS/other.c:
3350 * objects/Istar/actor.c:
3351 * objects/Istar/goal.c:
3352 * objects/Istar/other.c:
3353 * objects/Jackson/domain.c:
3354 * objects/Jackson/phenomenon.c: Patch from Christophe Ponsard
3355 <cp@cetic.be>: Fix resize issues.
3357 * app/filedlg.c (file_dialog_hide): Patch from Kiran
3358 Kumar Immidi <kimmidi@novell.com>: Check for null when removing
3359 related dialog. #129520.
3361 * app/dia-props.c (diagram_properties_show): Patch from Kiran
3362 Kumar Immidi <kimmidi@novell.com>: Make sure properties dialog is
3363 a child of its diagram. #129520.
3365 * objects/UML/association.c (association_load): Patch from Kiran
3366 Kumar Immidi <kimmidi@novell.com>: Update positions properly for
3367 text placement. #118313.
3369 2004-06-17 Lars Clausen <lars@raeder.dk>
3371 * objects/KAOS/Makefile.am: Add pixmaps/goal.xpm to EXTRA_DIST
3373 * Makefile.am: Make THANKS only be generated by maintainers.
3375 * doc/pl/Makefile.am: Removed usage+objects+basic.xml from
3378 * configure.in: Added three missing Makefiles.
3382 Patch from shuveb@yahoo.com (Shuveb Hussain): Remove
3383 diagram-related (save) dialog when closing diagram. To be
3384 extended to other dialogs.
3386 * doc/pl/dia.xml: Removed reference to objects-basic. (#144527)
3388 * samples/Istar.dia:
3389 * samples/Jackson.dia:
3391 * sheets/Istar.sheet.in:
3392 * sheets/Jackson.sheet.in:
3393 * sheets/KAOS.sheet.in:
3398 * objects/Jackson/*:
3401 * objects/Makefile.am (SUBDIRS):
3402 * sheets/Makefile.am (SUBDIRS):
3403 * samples/Makefile.am: Additions from Christophe Ponsard
3404 <cp@cetic.be>: Jackson, I* and KAOS diagram support. Needs a bit
3407 2004-06-12 Lars Clausen <lars@raeder.dk>
3410 * lib/prop_geomtypes.[ch]: Preparation for selectable units.
3412 * lib/font.h: Toning down comments a bit:)
3414 * lib/font.c (dia_font_build_layout): Playing around with DPI
3416 * objects/UML/association.c (association_load): Avoid crashes on
3419 * objects/UML/association.c: Patch from kimmidi@novell.com:
3420 Improve placement of labels when vertical. Part fix of #118313
3422 * lib/object.c (dia_object_is_selected): Grouped objects are not
3423 selected, only the group itself. Thus, don't crash when grouping
3426 * objects/UML/association.c: Patch from kimmidi@novell.com: Agree
3427 on how to represent empty strings. Fixes #143639.
3429 * lib/object.c (dia_object_is_selected): Added comment answer.
3431 2004-06-12 Hans Breuer <hans@breuer.org>
3433 * lib/diagramdata.c lib/object.c : deal with grouped objects
3434 not knowing their parent_layer, i.e. avoid crashing in
3435 dia_object_is_selected() via group_draw() [ Triggered by
3436 playing with the Visio generated svg from bug #143455 ]
3438 * plug-ins/python/diasvg_import.py : started to implement
3439 transformation="translate(...)" and <style/> handling. Also
3440 use some other completely bogus values for em/ex scaling
3442 2004-06-08 Lars Clausen <lars@raeder.dk>
3444 * plug-ins/cairo/.cvsignore: CVS-ignore generated makefiles.
3446 2004-06-07 Lars Clausen <lars@raeder.dk>
3448 * app/layer_dialog.c (layer_dialog_set_diagram):
3449 * app/display.c: Layer widget crash more properly dealt with in
3452 * app/display.c (ddisplay_flush): Fixed crash when closing: Layer
3453 widget deselect was called during destroy, but called
3454 ddisplay_flush, leading to a new display timeout after renderer
3457 * lib/widgets.c (dia_toggle_button_destroy):
3458 * app/recent_files.c (recent_file_menuitem_create):
3459 * lib/persistence.c (persistence_save_list):
3460 * app/commands.c (edit_delete_callback):
3461 * lib/object_defaults.c (dia_object_defaults_save):
3462 * lib/parent.c (parent_list_affected_hierarchy): Killed leaks
3465 * lib/widgets.c (dia_toggle_button_new_with_images): Remove
3468 * lib/diagramdata.c (new_layer): Initialize connectibility.
3470 * app/display.c (ddisplay_obj_render):
3471 * app/diagram.c (diagram_find_closest_connectionpoint): Take
3472 connectibility into account.
3474 * app/layer_dialog.h (struct _DiaLayerWidget):
3475 * app/layer_dialog.c:
3476 Connectible toggle updates, now works fairly well.
3478 * app/select.c (select_transitive_callback): Make sure we're only
3479 selecting in the same layer.
3481 2004-06-04 Lars Clausen <lars@raeder.dk>
3483 * app/pixmaps/Makefile.am: Also install connectable images.
3485 * app/layer_dialog.c (dia_layer_update_from_layer): Initially set
3486 layer toggles from layer itself. Also update diagram correctly
3487 for visibility. Still need updates for connectivity behaviour.
3489 2004-06-03 Hans Breuer <hans@breuer.org>
3491 * plug-ins/wpg/wpg.c(draw_image) : take rowstride into account
3493 * lib/diagdkrenderer.c(set_linejoin) : actually set
3494 join_style not cap_style
3495 (set_dashes): with the correct number of dashes
3497 2004-06-03 Lars Clausen <lars@raeder.dk>
3499 * app/modify_tool.c (click_select_object):
3500 * lib/text.c (text_set_cursor):
3501 * app/disp_callbacks.c (ddisplay_canvas_events): Turn off text stuff.
3503 2004-05-31 Hans Breuer <hans@breuer.org>
3505 * lib/object_defaults.c : don't 'failed to load external
3506 entity "NULL"' when the defaults file does not exist,
3507 bug #108764 [again: somehow this got lost]
3509 * app/paginate_gdiprint.cpp : don guess the WMF export
3510 filter used for printing but find it by unique name.
3511 Also update for export_func renaming
3512 * plug-ins/wmf/wmf.cpp plug-ins/cairo/diacairo.c
3513 provide some unique names
3515 * app/commands.c app/disp_callbacks.c app/paginate_psprint.c
3516 app/select.c : fix bug #140789 by always checking if there
3517 still is an active diagram before accessing it
3519 * app/defaults.c app/properties.c : user visible string should
3520 not read DiaObject but stay as "Object defaults/properties"
3522 * app/app_procs.c : reduce the hack to pass --size to the
3523 export via user_data to the only filter supporting it. Other
3524 filters would crash on it or do worse ;(
3526 * plug-ins/wpg/wpg.c : not every 'Object' is a DiaObject ...
3528 2004-05-31 Lars Clausen <lars@raeder.dk>
3531 * lib/widgets.c: Use GtkType rather than guint for
3532 dia_size_selector_get_type.
3534 2004-05-29 Lars Clausen <lars@raeder.dk>
3536 * app/diapsrenderer.c (fill_bezier): Use even-odd winding rule so
3537 that it matches the screen output for selfoverlapping polygons and
3540 2004-05-28 Hans Breuer <hans@breuer.org>
3542 * app/load_save.c : ignore empty groups on load and don't
3543 write empty groups while saving
3544 * lib/group.h (group_update_data): there is no first object
3545 in empty groups and they probably don't need an update at
3546 all. Maybe the shold just not exist ?
3548 * plug-ins/cairo/diacairo.c : fixed arc drawing, right aligned
3549 text positioning as well as drawing of images with alpha
3551 * plug-ins/wmf/wmf.cpp : include windows.h if eiher
3552 HAVE_WINDOWS_H or G_OS_WIN32 is defined
3554 2004-05-28 Lars Clausen <lars@raeder.dk>
3556 * app/pixmaps/Makefile.am (imagedir):
3557 * app/pixmaps/visible.png:
3558 * app/pixmaps/visible-empty.png: New images for the visibility
3559 button in the layer dialog.
3561 * lib/widgets.c (dia_toggle_button_new_with_images): Remove even
3562 more border around the button. Still some left when hovering the
3563 mouse or selecting, and the grey background is annoying.
3565 * app/layer_dialog.c (dia_layer_widget_init): Use real buttons for
3566 visibility connector.
3568 2004-05-26 Lars Clausen <lars@raeder.dk>
3570 * configure.in (DB2MAN): Better check for db2man docbook place.
3571 Need something even better.
3573 * doc/en/Makefile.am (dia.1): Conditional on having DB2MAN.
3575 * lib/widgets.c (dia_toggle_button_new_with_images): Remove
3576 extraeneous borders.
3579 * dia_gnome_icon.png:
3580 * samples/render-test.dia: Rendering test from Hans.
3582 2004-05-24 Hans Breuer <hans@breuer.org>
3584 * lib/filter.h : renamed DiaExportFilter::export to
3585 _DiaExportFilter::export_func (should not use c++
3586 keywords (g++ specifc ?) in headers. Same for import
3587 out of pure symmetry reasons
3588 * plug-ins/shape/shape-export.c plug-ins/python/diamodule.c
3589 app/diagram.c app/filedlg.c : reflect functions renaming
3591 * plug-ins/wmf/Makefile.am : finally compile the wmf plug-in
3592 under *NIX, too. [If you want something done, do it yourself ;-]
3593 * plug-ins/wmf/wmf_gdi.[hc] : some more stuff to catch up
3594 with wmf.cpp's GDI usage
3595 * plug-ins/wmf/wmf.cpp : compile even without HAVE_WINDOWS_H,
3596 [For the moment it does not much more than compiling, i.e.
3597 the produced WMF files are invalid, if not created on windoze.]
3599 * configure.in : check for C++ to compile plug-in/wmf
3601 * objects/GRAFCET/boolequation.c : looks like fixing
3602 another leak (untested)
3604 2004-05-23 Hans Breuer <hans@breuer.org>
3606 * acinclude.m4 : another attempt to fix
3607 bug #142032 (still not sure it's the right one,
3608 but works for me(tm), which the other does not ;)
3610 * plug-ins/cairo/Makefile.am
3611 plug-ins/Makefile.am
3612 configure.in : support building the new cairo
3613 plug-in, if given --with-cairo and the cairo
3614 packages are found, see http://cairographics.org
3615 and also http://hans.breuer.org/dia/dia-cairo.htm
3617 * plug-ins/cairo/diacairo.c : make it compile
3618 with DEBUG_CAIRO defined, too.
3620 2004-05-23 Hans Breuer <hans@breuer.org>
3622 * plug-ins/cairo/Makefile.am : initial attempt
3624 * plug-ins/cairo/diacairo.c : a new exporter based on
3625 Cairo http://cairographics.org rendering api. Currently
3626 it just can export PNG and PS but one day it might get
3627 PDF and more almost for free. [It is not yet included
3628 in the *NIX build system due to lack of auto* magic.]
3630 * plug-ins/pixbuf/pixbuf.c : always register the export
3631 filter part. If the user does not want it it can be
3632 disabled by File/Plugins or explicit selected the other
3633 one in the Export Formats List
3635 2004-05-23 Hans Breuer <hans@breuer.org>
3637 * lib/dia_dirs.c : #include "message.h"
3638 lib/widgets.c : #include "persistence.h"
3639 lib/widgets.c(dia_font_selector_init) : still not C99
3640 lib/persitence.h : removed unimplemented prototype
3641 lib/persitence.c(persistence_load_list) : still not C99
3642 app/create_object.c : #include "highlight.h"
3643 app/layer_dialog.c : #include "widgets.h"
3644 app/modify_tool.c : prototype functions before usage
3645 lib/object.c : if there is G_END_DECLS there _must_ be G_BEGIN_DECLS
3646 [otherwise one will have a hard time to make C++ compile ;]
3647 lib/dia_dirs.c : #include "message.h"
3648 lib/font.c : #include <gtk/gtk.h> /* just for gtk_get_default_language() */
3651 * plug-ins/xfig/xfig-import.c : dont initialize an int with
3654 * lib/dia_image.[hc](dia_image_rgba_data) : make it work
3655 as documented, i.e. _not_ copying. Plugs a memory leak in
3656 lib/dialibartrenderer.c
3658 * lib/diarenderer.c(*_rounded_rect) : renamed parameter rounding
3659 to radius to more of a clue what it is representing
3661 * */makefile.msc lib/libdia.def : updated
3663 ChangeLog : fixed some date copy&paste bug
3665 2004-05-21 Lars Clausen <lars@raeder.dk>
3667 * NEWS: Release tag.
3669 * config.h.win32: Now 0.93+cvs
3671 * RELEASE-PROCESS: Update with new info about release branches.
3673 * Many files: Moved devel branch back into main trunk. Should
3674 have been done in the opposite way, with release in a branch.
3676 2004-05-20 Hans Breuer <hans@breuer.org>
3678 * acinclude.m4 : disable setting of PYTHON_PREFIX
3679 and PYTHON_EXEC_PREFIX from prefix and exec_prefix
3680 as workaround for bug #142032 (the real fix would
3681 involve some auto* knowledge which I don't have
3684 * plug-ins/python/Makefile.am : more python
3685 plug-ins to be installed (especially svg import,
3686 but also 'simple scale' should be useable
3689 * plug-ins/python/scascale.py : update display
3690 after modifying selected objects
3692 * plug-ins/python/diasvg_import.py : initialize
3695 2004-05-18 Lars Clausen <lars@raeder.dk>
3697 * app/diagram_tree.c (select_node): Use
3698 diagram_remove_all_selected to kill selected list.
3700 * lib/font.c: Set language when using a different context.
3702 * plug-ins/svg/svg-import.c: Changed isdigit to g_ascii_isdigit
3703 and removed ctype include (#142661).
3705 * lib/paper.c (get_default_paper): Changed isalnum to
3706 g_ascii_isalnum and removed ctype include. (#142661)
3708 * objects/custom/shape_info.c:
3710 * app/diaunitspinner.c: Removed unrequired ctype.h include. (#142661)
3712 2004-05-17 Hans Breuer <hans@breuer.org>
3714 * lib/object_defaults.c : don't 'failed to load external
3715 entity "NULL"' when the defaults file does not exist,
3718 * lib/widgets.c : fixed possible menu leak
3719 * lib/dialinechooser.c lib/diaarrowchooser.c : finally
3720 avoid finalization of floating references, bug #142307
3722 2004-05-15 Lars Clausen <lars@raeder.dk>
3724 * plug-ins/xfig/xfig-import.c: Handle default fonts and illegal
3725 fonts better (#138655)
3727 * doc/pl/Makefile.am (EXTRA_DIST): Also include all xml files here.
3729 * doc/en/Makefile.am (EXTRA_DIST): Including all required files in
3730 dist, xml, dbk and man. Also the sub-xml files. (#142098)
3732 * Makefile.am (CLEANFILES):
3733 * sheets/Makefile.am (EXTRA_DIST): Not distributing the
3734 translation-reports, they are generated automagically. THANKS
3735 file not considered locally generated, so is not locally
3738 * lib/widgets.[ch]: Changing dia_arrow_selector to be a gobject.
3740 * lib/diaarrowchooser.c:
3741 * lib/prop_attr.c: Fixing naming for arrowselector.
3743 * objects/UML/object.c (objet_type): Oops, little too aggressive
3744 with the DiaObject thing here:)
3746 * objects/custom/shape_info.c (parse_svg_node): Use
3747 g_ascii_isdigit instead of isdigit.
3749 * app/diaunitspinner.c (dia_unit_spinner_update):
3750 * lib/dia_svg.c (dia_svg_parse_style): Using g_ascii_isspace
3751 instead of isspace avoids char subscript issues (#142467).
3753 * lib/persistence.c (persistence_get_string): Fixed 0/NULL/FALSE
3754 return value conflict.
3756 * app/display.c (ddisplay_update_handler): Fixed 0/FALSE return
3757 value conflict. Also improved signature. (#142466)
3759 * app/load_save.c (diagram_data_load): Don't overwrite the list in
3760 the layer, but instead free the returned list (#142480)
3762 * app/pixmaps/Makefile.am (IMAGES): Added png's to be installed
3763 for the grid widget.
3765 * doc/en/Makefile.am (dia.1): Make proper rule for making dia.1
3767 * configure.in (DB2MAN): Currently just check for two known
3768 positions for the docbook xsl. Don't know a generic way to find
3769 this info. Ought to add an option for it, but then it's really
3770 only required for maintainers, I think. Maybe.
3772 * app/display.c (update_snap_grid_status): Remove nasty image
3773 toggling code not require for grid toggle button anymore. (#142475)
3775 * app/interface.c (create_display_shell): Use
3776 dia_toggle_button_new_with_images to create grid toggle button.
3777 Much nicer. (#142475)
3779 * app/menus.c (menus_initialize_updatable_items): Free the string
3780 along with the GString. (#142475)
3782 * lib/intl.c (free_alias_table): Free hash table entries in a
3783 proper way, avoiding duplicate frees. (#142475)
3785 * lib/object_defaults.c (_obj_store): Only free layer_name if it's
3786 not put in the hash (avoid reading freed memory). (#142476)
3788 * lib/widgets.c (dia_font_selector_set_styles): Stop leaking
3790 (dia_font_selector_get_family_from_name): Stop leaking
3793 2004-05-14 Lars Clausen <lars@raeder.dk>
3795 * Transfer of fixes from release branch. Not the prettiest way to
3796 do it, this should be done during release, not afterwards.
3798 Tomasz KÅ‚oczko <kloczek@pld.org.pl>:
3800 * acinclude.m4: minor fixes (added missing [] quotation).
3802 Lars Clausen <lars@raeder.dk>:
3804 * app/interface.c (toolbox_delete):
3805 * app/app_procs.[ch] (app_exit): Stop the delete event if the user
3806 cancels quit due to modified diagrams.
3808 Samúel Jón Gunnarsson <sammi@techattack.nu>:
3810 * is.po: Added "is" to ALL_LINGUAS.
3812 Lars Clausen <lars@raeder.dk>:
3814 * dia.spec: Updated as per mail from Zhang Lin-bo <zlb@lsec.cc.ac.cn>
3816 Hans Breuer <hans@breuer.org>:
3818 * lib/makefile.msc : removed -DGTK_DISABLE_DEPRECATED; the
3819 burden should be shared and not be win32 only ;) [this time
3820 build was broken by adding GtkType to widget.h]
3822 * objects/standard/box.c objects/standard/ellipse.c :
3823 for code clarification compare (obj->aspect != FREE_ASPECT)
3824 and not (obj->aspect); no binary effect.
3826 * app/paginate_psprint.c : don't leak printcmd
3828 * objects/standard/box.c objects/standard/ellipse.c : fix gccisms :
3829 standard C requires variables to be declared at the beginning of
3830 a block, also there is no fabsf() with msvc
3832 * app/win32print.[ch] : make win32_printer_close() return an
3833 error code, it's used as pclose replacement
3835 Lars Clausen <lars@raeder.dk>:
3837 * RELEASE-PROCESS: Mention PATCH keyword in release process.
3839 2004-05-06 Lars Clausen <lars@raeder.dk>
3841 * lib/widgets.[ch]: Utility function to make a widget with two
3842 images (selected and non-selected).
3844 * lib/diagramdata.h: Renamed selectable to connectable.
3845 Selectable will come later.
3848 * app/pixmaps/Makefile.am (imagedir):
3849 * app/pixmaps/connectable.png:
3850 * app/pixmaps/connectable-empty.png: New images for the
3851 selectability widget. Proper installation, too.
3853 * app/layer_dialog.[ch]: Adding new button showing connectability
3854 status. Much cleaner way of doing the button, but some problems
3855 with the item getting selected
3857 * lib/widgets.h: Reminder of how to install images for use by
3858 dia_get_image_from_file.
3860 2004-05-05 Lars Clausen <lars@raeder.dk>
3862 * objects/network/Makefile.am:
3863 * objects/network/pixmaps/radiocell.xpm:
3864 * objects/network/pixmaps/basestation.xpm:
3865 * objects/network/network.c:
3866 * objects/network/basestation.c:
3867 * objects/network/radiocell.c:
3868 Patch from W. Borgert <debacle@debian.org>: Radio cell and base
3871 * lib/arrows.[ch]: Patch from Anthony <anthonym@overture.com>:
3872 Backslash arrow head.
3874 * app/pagesetup.c (pagesetup_respond): Do not free ps twice.
3875 Notify takes care. Should maybe use that more.
3877 * lib/diagramdata.[ch]:
3878 * app/filedlg.c (file_export_ok_callback):
3879 * app/diagram.c (diagram_finalize): DiagramData now a GObject.
3881 * app/dia-props.c (diagram_properties_respond):
3882 * app/diagram.c (diagram_set_modified):
3884 * app/disp_callbacks.c:
3886 * app/load_save.c (diagram_save):
3887 Better handling of undo and modified status -- only diagram
3888 properties and page setup explicitly set modified status, all
3889 other important changes should be done through the undo stack
3892 2004-05-04 Lars Clausen <lars@raeder.dk>
3894 * app/app_procs.c (app_init): Consistently open a new diagram if
3895 none specified, with standard name Diagram1.dia.
3897 * app/layer_dialog.c:
3898 * app/diagram.c (diagram_finalize):
3899 * app/commands.c (dialogs_layers_callback):
3900 * app/filedlg.c (file_export_ok_callback):
3901 * app/app_procs.c (app_exit):
3902 * app/display.c (display_set_active):
3903 * app/interface.c (dia_dnd_file_drag_data_received):
3904 * app/recent_files.c:
3905 Undone attempt at unifying the multi-diagram windows (like
3906 layers). It broke the layers and didn't make much sense for the
3907 diagram properties dialog anyway.
3911 * lib/diagramdata.c:
3913 * lib/object.c: Undone attempts at GObject'ifying DiaObject -- too
3914 many subclasses have to be fixed. Fixed remaining
3915 Object/ObjectType renaming issues.
3917 2004-05-02 Lars Clausen <lars@raeder.dk>
3919 * lib/object.[ch]: Making DiaObject a GObject. Now can I avoid
3920 having to make all the children objects conform to
3921 GObject style at once? Warning! Does not compile right now.
3923 * many, many files: Rename Object to DiaObject in preparation for
3924 making it a GObject.
3926 * app/diagram.[ch]: Turn diagram into a real GObject.
3929 * app/filedlg.c: Correctly ref and unref diagram.
3931 * lib/diagramdata.h: Starting to turn it into a GObject as well.
3933 2004-05-02 Lars Clausen <lars@raeder.dk>
3935 * lib/object.[ch]: Starting to convert Object to DiaObject, son of
3938 * app/dia-props.c: Undo the attempt at making it really
3939 multi-diagram, now going for a one-diagram dialog.
3941 2004-04-30 Lars Clausen <lars@raeder.dk>
3943 * app/undo.c: Undoing broken undo stuff for diagram properties and
3944 page setup. Shouldn't be mixed into undo at all.
3946 * app/render_gdk.c (draw_pixel_line): Use the dash-setting
3947 function to avoid in particular the grid crawling.
3949 * lib/diagdkrenderer.[ch] (dia_gdk_renderer_set_dashes): Function
3950 to allow aligning dashes, so they don't crawl.
3952 2004-04-28 Lars Clausen <lars@raeder.dk>
3954 * app/Makefile.am: New files diacanvas.[ch]
3956 * app/interface.c (create_display_shell): Use new diacanvas that
3957 allows placing widgets on canvas, for text edit.
3960 Early work towards rotation. No implementation yet.
3962 * app/layer_dialog.c (undo_layer):
3963 * objects/network/bus.c (bus_create_change):
3964 * objects/standard/box.c (aspect_create_change):
3965 * objects/standard/ellipse.c (aspect_create_change):
3966 Use g_new0 for change struct.
3968 * app/undo.c (diagram_change_apply_or_revert):
3969 Support for undo of diagram properties and page setup.
3971 * app/disp_callbacks.c (ddisplay_canvas_events):
3973 * lib/diagramdata.h:
3974 * app/modify_tool.c (click_select_object):
3975 * lib/text.c (text_register_editable):
3976 Starting work on new text editing model. Guarded by #ifdef so
3979 2004-04-07 Lars Clausen <lars@raeder.dk>
3981 * app/recent_files.c (open_recent_file_callback):
3982 * app/interface.c (origin_button_press):
3983 * app/filedlg.c (file_open_ok_callback):
3986 * app/commands.c (dialogs_layers_callback): Using new
3987 diagram_set_current() function to ensure auxilliary windows are
3990 * app/layer_dialog.c: Trying to unify with dia-props. Diagram
3991 menu now borken. *sniff*
3993 * app/dia-props.c: Diagram properties window attempted
3994 persistentified. Trying to make more like layer dialog (since it
3995 already changes when the diagram changes), but some things still
3998 2004-04-06 Lars Clausen <lars@raeder.dk>
4000 * lib/dialinechooser.[ch] (dia_line_chooser_set_line_style):
4001 * lib/attributes.c (attributes_set_default_line_style):
4002 * app/interface.c (create_lineprops_area):
4003 Make line style persistent as well. Added function to directly
4004 set the style and dashlength of a dialinechooser.
4006 2004-04-03 Lars Clausen <lars@raeder.dk>
4008 * objects/standard/ellipse.c (ellipse_move_handle, ellipse_copy):
4009 Copy the ellipse extra handle correctly.
4011 * objects/standard/box.c (box_move_handle): Move definitions
4012 according to bug #138925.
4014 2004-04-02 Lars Clausen <lars@raeder.dk>
4016 * app/recent_files.c: Use absolute name for recent files list.
4018 * lib/attributes.c: Set start and end arrow types, correctly.
4020 * lib/widgets.c (dia_arrow_selector_set_arrow): Use new function
4023 * lib/diaarrowchooser.[ch]: Support for setting arrow info.
4025 * app/interface.c (create_lineprops_area): Set persistently stored
4028 * lib/arrows.[ch]: New function to get arrow index (in arrow_types)
4031 * lib/dia_dirs.c: dia_get_absolute_path now creates a canonical
4032 path (i.e. without '.' or '..'). Not tuned for Win32 yet.
4034 * plug-ins/xfig/xfig-import.c: Redone ordering of import to comply
4035 with what xfig does. Text now converted from latin-1 to utf-8
4036 (latin-1, since that's what xfig seems to use. Would like to see
4037 examples of non-latin-1 figs). String case problems fixed.
4039 2004-04-01 Lars Clausen <lars@raeder.dk>
4042 * app/interface.c: Default arrows now stored persistently, too.
4044 * lib/arrows.[ch]: New function to get arrow type from name.
4046 * app/color_area.c (color_area_create):
4048 * app/linewidth_area.c: Also persistent colors and line width.
4049 That was easy. Arrows and line style will take a bit more work,
4052 2004-04-01 Lars Clausen <lars@raeder.dk>
4054 * app/preferences.c: All preferences are now
4055 handled by persistence, old prefs load and store code is gone.
4057 * lib/persistence.[ch]: Added string and color persistents. This is
4058 a different string from the one used in the printer dialog, that
4059 one has a GtkEntry attached -- may want to make that one an
4060 encapsulation of this one or something.
4062 2004-03-31 Lars Clausen <lars@raeder.dk>
4064 * app/app_procs.c: Do persistence before prefs. Prefs are to be
4067 * lib/persistence.[ch]:
4068 * app/preferences.c: Adding persistence for integers, reals,
4069 booleans. Fixed stupid list bug. Test persistence for prefs.
4071 2004-03-30 Lars Clausen <lars@raeder.dk>
4073 * app/recent_files.c:
4074 Debugging of deallocation.
4077 Font menu now uses persistence. Ordering needs fixing, or it must
4081 * lib/Makefile.am (libdia_la_SOURCES):
4082 * app/Makefile.am (dia_core_files):
4083 * app/persistence.[ch]:
4084 * lib/persistence.[ch]: Moved to lib as widgets need it. Also a
4085 number of fixes, including multiple entries now being read
4086 properly. Still some oddity about the persistent list having the
4087 role as first entry (which makes the font menu crash after a few
4090 2004-03-26 Lars Clausen <lars@raeder.dk>
4092 * app/persistence.c:
4093 * app/recent_files.[ch]: Redoing the recent-files list using
4094 persistence, reducing code by about 50%. Still a problem when
4095 selecting an item from the menu -- possibly it doesn't like the
4096 menu being destroyed while in the callback?
4098 2004-03-25 Lars Clausen <lars@raeder.dk>
4100 * app/persistence.c (persistence_load_string): Missing semicolon?!?
4102 2004-03-24 Lars Clausen <lars@raeder.dk>
4106 * app/persistence.[ch]:
4107 * app/paginate_psprint.c (diagram_print_ps): New type of data can
4108 be stored persistently: Strings. Only the printer command/file
4109 go in here now, but things like creator, organization, diagram
4110 comments etc could also be handled this way.
4112 * objects/standard/beziergon.c (beziergon_draw): Avoid control
4113 lines when the object is not selected.
4115 2004-03-23 Lars Clausen <lars@raeder.dk>
4117 * lib/connectionpoint.h:
4118 * app/load_save.c: Allow connection points to have names, and
4119 handle that in load/store.
4121 * lib/dialibartrenderer.c: Better highlighting for text.
4123 * lib/diagdkrenderer.h (struct _DiaGdkRenderer):
4124 * lib/diagdkrenderer.c: Better highlighting for all, using same
4125 principles as libart highlighter.
4127 2004-03-22 Lars Clausen <lars@raeder.dk>
4129 * lib/dialibartrenderer.[ch]:
4130 * lib/diagdkrenderer.c:
4136 * app/modify_tool.c:
4137 * app/create_object.c:
4138 * app/highlight.[ch]:
4139 Added simple object highlighting. In GDK rendering, highlights
4140 the bbox, in libart highlights the outline of the object (except
4143 2004-03-22 Lars Clausen <lars@raeder.dk>
4145 * RELEASE-PROCESS: Added info on how to do a branch for
4146 development during release process.
4148 2004-03-20 Lars Clausen <lars@raeder.dk>
4150 * RELEASE-PROCESS: Mention PATCH keyword in release process.
4152 2004-03-19 Lars Clausen <lars@raeder.dk>
4154 * xmldocs.make: Fixed apparent uninstall error.
4157 * doc/en/dia-manual.xml:
4158 * doc/pl/dia-manual.xml:
4161 * NEWS: Version 0.93-pre1.
4163 * lib/dialinechooser.[ch]: Patch from pborelli@katamail.com (paolo
4164 borelli): Remove some deprecated stuff.
4166 2004-03-18 Lars Clausen <lars@raeder.dk>
4168 * Makefile.am: Try better uninstall thing for scrollkeeper.
4170 * objects/ER/entity.c:
4171 * lib/arrows.[ch]: Patch from Georg Lothar Thimm
4172 <MGEORG@ntu.edu.sg>: Adds new ER arrows 1 or many, 0 or many, 0 or
4173 1, 1 exactly, as well as associative ER entities.
4175 2004-03-17 Lars Clausen <lars@raeder.dk>
4177 * Makefile.am: Make distcheck not complain about scrollkeeper
4178 problems (as per advice from James Henstridge).
4180 * doc/pl/*.{xml,sgml}: Converted SGML manuals to XML to get better
4181 standard installation.
4183 * objects/standard/ellipse.c: Better strings for object menu.
4185 * app/sheets_dialog_callbacks.c: Fixed crashes from broken caching
4186 of dialogs (shame on you, glade!)
4188 * objects/custom/custom_object.c (custom_setup_properties):
4189 Removed debugging output
4191 * app/paginate_psprint.c (diagram_print_ps): Slightly more
4192 readable printer error messages.
4196 * doc/en/Makefile.am:
4197 * doc/pl/Makefile.am:
4198 New more standard way to install the XML-based manuals.
4200 2004-03-15 Lars Clausen <lars@raeder.dk>
4202 * objects/standard/box.c (box_move_handle): More intuitive fixed
4205 * objects/standard/ellipse.c:
4206 * objects/standard/box.c:
4209 * app/layer_dialog.[ch]:
4210 Patch from Steve Langasek <vorlon@debian.org>:
4211 Fixes startup crash on Alpha (bug #137169)
4213 * objects/standard/box.c: Aspect fixing like ellipses.
4215 * app/Makefile.am (dia_core_files): Include dia-app-icons.h
4217 * lib/pixmaps/Makefile.am (imagedir): Better Makefile.am for
4218 pixmaps, now can uninstall properly.
4220 * objects/standard/ellipse.c: Patch from dooms@info.ucl.ac.be:
4221 Fixed and circle aspect ratios for ellipses. Bug #137156, #87966,
4223 Added object menu access.
4225 2004-03-07 Hans Breuer <hans@breuer.org>
4227 * lib/diaarrowchooser.c lib/dialinechooser.c : #undef
4228 GTK_DISABLE_DEPRECATED (I'd rather like if these widgets
4229 would not use deprecated apis, but it's much simpler this way)
4231 * lib/makefile.msc : build the above new widgets and render_pixmap
4232 * lib/libdia.def app/dia.def app/makefile.msc : updated
4234 * app/disp_callbacks.c : fix gccisms (without being able to make much sense of
4235 what I saw, i.e. how big is an empty array supposed to be ? ;-).
4236 Previously it gave :
4237 disp_callbacks.c(188) : error C2059: syntax error : '}'
4238 disp_callbacks.c(191) : warning C4034: sizeof returns 0
4240 * app/interface.c : #include "dialinechooser.h"
4242 * lib/diagdkrender.c : make the !HAVE_FREETYPE case compile again
4243 [one more reason not to use it here : it's quite slow compared to
4244 the native win32 font renderer ;]
4246 * app/app_procs.c app/filedlg.c : gtk_widget_destroy does not take
4247 a GtkDialog*, removed unneeded cast
4249 * app/render_eps.c : avoid assignment warning for void* user_data
4252 2004-03-06 Steffen Macke sdteffen@web.de>
4254 * shapes/Map/Isometric/Makefile.am: added Makfile for Isometric
4257 2004-03-06 Lars Clausen <lars@raeder.dk>
4259 * lib/arrows.h (DEFAULT_ARROW_SIZE): Downed default arrow size to
4262 * lib/font.c: Simple cleanup system for layout cache removes any
4263 layout that hasn't been used for 10 minutes, but only during idle
4266 2004-03-05 Lars Clausen <lars@raeder.dk>
4268 * sheets/Electric.sheet.in: Added patch from padro@lsi.upc.es
4269 (lluis padro) (#130887): Extended Electric shapes with vertical
4272 * sheets/Cybernetics.sheet.in: Normalize shape descriptions (never
4273 start with "Create a" or "A", always capitalize first word).
4275 * objects/standard/ellipse.c: Patch from Grégoire Dooms
4276 <dooms@info.ucl.ac.be>: Add extra connection point in center of
4277 ellipse. Additionally added a handle in the center, and resize is
4278 now around the center.
4281 * sheets/Makefile.am (SUBDIRS):
4282 * sheets/IsometricMap.sheet.in:
4283 * shapes/Map/Isometric/*
4284 * shapes/Makefile.am (SUBDIRS): Added Isometric shapes.
4286 2004-03-04 Lars Clausen <lars@raeder.dk>
4289 * lib/pixmaps/Makefile.am:
4291 Better installation handling of pixmaps.
4293 * lib/diagdkrenderer.c:
4294 * lib/diagtkfontsel.h (struct _DiaGtkFontSelectionClass):
4295 * lib/diagtkfontsel.c (dia_gtk_font_selection_show_available_fonts):
4298 2004-03-03 Lars Clausen <lars@raeder.dk>
4300 * lib/diagtkfontsel.h (struct _DiaGtkFontSelection):
4301 * lib/diagdkrenderer.c:
4302 * lib/diasvgrenderer.c:
4303 * lib/dialibartrenderer.c:
4304 * lib/diainteractiverenderer.c:
4305 * lib/prop_text.c (multistringprop_handle_key):
4307 * lib/dia_image.c (dia_image_rgba_data):
4309 * lib/diagramdata.c (layer_set_object_list):
4312 Getting rid of compile warnings.
4314 * lib/widgets.c: Handle destroy properly, i.e. unref the two extra
4315 images. Also remove unused decls.
4317 2004-03-02 Lars Clausen <lars@raeder.dk>
4320 * lib/widgets.c (dia_size_selector_init): Add images to the size
4321 selector chain widget. Also new function to load installed images
4322 from files (better than from included XPM, IMHO).
4324 2004-03-02 Lars Clausen <lars@raeder.dk>
4327 * lib/pixmaps/[un]broken-chain.xpm: Icons stolen from GIMP for the
4331 * lib/widgets.c (dia_size_selector_init): Work
4332 on getting proper icon onto the size selector. Need simple image
4333 load mechanism in utils.
4337 * app/disp_callbacks.c: Patch from kou@cozmixng.org: Show preedit
4338 strings, handle utf8 strlen properly. Bug #135930.
4340 2004-03-01 Lars Clausen <lars@raeder.dk>
4342 * shapes/Cybernetics/*:
4343 * sheets/Cybernetics.sheet.in:
4344 * sheets/Makefile.am:
4345 * shapes/Makefile.am:
4346 * configure.in: Patch from charly.meyer@t-online.de (Thorsten
4347 Roggendorf): Cybernetic shapes (#95553).
4349 2004-03-01 Lars Clausen <lars@raeder.dk>
4351 * app/Makefile.am: Fixed $(EXEEXT) warning from automake.
4353 * lib/diatypes.h: New type DiaSizeSelector.
4355 * lib/widgets.[ch]: New size selector widgets that selects two
4356 values (width and height, nominally) optionally linked to keep
4359 2004-03-01 Hubert Figuiere <hfiguiere@teaser.fr>
4361 * plug-ins/svg/render_svg.c (new_svg_renderer): Add DTD declaration
4362 in front of file. Bug #128600.
4366 * app/lineprops_area.[ch]:
4368 * lib/dialinechooser.[ch]:
4369 * lib/widgets.c (dia_line_style_selector_init): use line preview
4370 instead of text labels. This involve moving away line_chooser to lib
4373 * lib/diaarrowchooser.[ch] (close_and_hide): Make static to avoid
4376 * app/Makefile.am (dia_core_files):
4377 * app/interface.c (create_lineprops_area):
4378 * app/render_pixmap.[ch]:
4380 * lib/diaarrowchooser.[ch]:
4383 * lib/propdialogs.c:
4384 * lib/render_pixmap.[ch]:
4385 * lib/widgets.c (dia_arrow_fill_menu): Use arrow preview instead
4386 of text labels. This involve moving away arrow_chooser to lib from
4389 2004-02-29 Lars Clausen <lars@raeder.dk>
4391 * objects/UML/class.[ch]: Puny kludge to avoid GtkList objects
4392 being updated half-way through destruction. To be removed when
4393 the lists are replaced by something better.
4395 * objects/UML/class_dialog.c: Patch from luc@handhelds.org:
4396 Accelerators for class dialog. Bug #130995.
4397 Patch from luc@handhelds.org: Better aligning of widgets. Bug #130994.
4400 * app/preferences.c:
4402 * objects/GRAFCET/step.c:
4403 * objects/Misc/analog_clock.c:
4404 * objects/chronogram/chronoline.c:
4405 * objects/chronogram/chronoref.c:
4406 Change to american spelling (color, not colour) to ease
4407 translators job. Note that a number of translations may need an
4408 update now. Bug #120466.
4410 2004-02-29 Lars Clausen <lars@raeder.dk>
4412 * plug-ins/xfig/xfig-export.c: Patch from solworth@cs.uic.edu:
4413 Better arrow handling for missing arrows.
4415 * plug-ins/metapost/render_metapost.[ch]: Patch from
4416 phred@cs.berkeley.edu (Fred Reiss): Add font faces and font
4417 size. See bug #135363.
4419 * app/app_procs.c (app_init): If non-interactive, or if
4420 --log-to-stderr used, send all messages to stderr. This should
4421 mean that old diaconv == dia --export-to-format=FOO BAR
4423 2004-02-29 Hubert Figuiere <hfiguiere@teaser.fr>
4425 * app/menus.c: Get rid of GNOME menus. Deprecated APIs in GNOME 2.
4427 2004-02-28 Lars Clausen <lars@raeder.dk>
4429 * lib/text.c (text_key_event): Patch from Kouhei Sutou
4430 <kou@cozmixng.org>: Fix wrong utf8 strlen handling.
4432 2004-02-27 Lars Clausen <lars@raeder.dk>
4434 * KNOWN_BUGS: Added info on most commonly reported bugs, with
4437 * app/disp_callbacks.c (popup_object_menu): Unified properties
4438 entry, fixes bug #105080.
4440 * app/diagram.c (diagram_update_menu_sensitivity):
4441 * app/menus.h (struct _UpdatableMenuItems):
4442 * app/menus.c (menus_initialize_updatable_items): Menu items
4443 changed around, align menus flattened, properties entry ghosted,
4444 dialogs menu removed, more shortcuts added. Closing bugs #94018,
4446 Also taking out Gnome menus for now. They don't allow shortcuts,
4447 so what are they good for?
4449 2004-02-27 Lars Clausen <lars@raeder.dk>
4451 * app/menus.c (display_menu_items):
4452 * app/commands.[ch]: Added duplicate menu item from Alan Horkan
4455 2004-02-24 Adam Weinberger <adamw@FreeBSD.org>
4457 * configure.in: Added 'en_CA' (Canadian English) to ALL_LINGUAS.
4459 2004-02-23 Lars Clausen <lars@raeder.dk>
4461 * app/app_procs.c (app_init): Comments for translators.
4463 2004-02-22 Hubert Figuiere <hfiguiere@teaser.fr>
4465 * app/preferences.c (prefs_create_dialog): Change packing policy
4466 for widget to expand.
4468 * app/Makefile.am (run_dia.sh): Fixed a typo in wrapper that prevented
4469 running with a debugger.
4471 2004-02-19 Lars Clausen <lars@raeder.dk>
4473 * app/undo.[ch]: Adding last-saved information to undo to allow a
4474 diagram with all changes since last save undo to be marked as
4475 nonmodified. Still needs integration with actual undo
4479 * app/diagram_tree.c (diagram_tree_update):
4481 * app/display.c (update_modified_status):
4482 * plug-ins/python/pydia-diagram.c (PyDiaDiagram_GetAttr):
4483 * app/autosave.c (autosave_check_autosave): Encapsulate modifed
4486 * app/render_eps.[c]: Restructure to better handle PS vs. EPS
4487 vs. EPSI, comment out EPSI until preview is in there.
4490 * lib/diarenderer.c: Removing debugging printfs.
4492 * app/diapsrenderer.[ch]: Preparations for proper EPSI rendering
4495 * objects/standard/arc.c (arc_update_handles): Check to avoid
4496 crash when start and end points are the same.
4498 2004-02-19 Lars Clausen <lars@raeder.dk>
4500 * objects/standard/bezier.c:
4501 * objects/standard/line.c (line_load):
4502 * objects/standard/polyline.c (polyline_load):
4503 * objects/standard/zigzagline.c (zigzagline_load):
4504 * objects/standard/arc.c (arc_load):
4505 * lib/widgets.h (DEFAULT_ARROW_WIDTH): Use DEFAULT_ARROW_SIZE
4506 instead of hardcoding.
4508 2004-02-18 Hubert Figuiere <hfiguiere@teaser.fr>
4510 * app/disp_callbacks.c (popup_object_menu): append a menu item to
4513 2004-02-17 Hubert Figuiere <hfiguiere@teaser.fr>
4515 * app/app_procs.c: declare rc properly with the proper #ifdef
4517 2004-02-17 Lars Clausen <lars@raeder.dk>
4519 * plug-ins/xfig/xfig-import.c: Correct ordering of imported FIG
4520 objects (which seemingly FIG itself breaks, or else there is no
4523 2004-02-16 Lars Clausen <lrclause@cs.uiuc.edu>
4525 * plug-ins/xfig/xfig-export.c (figLineWidth): Check for minimum
4526 width renderable in xfig. Helps on bug #133637, but does not
4527 quite fix it -- something about depth is wrong.
4529 * plug-ins/xslt/xslt.[ch]: Patch #133913 from phenning@lanl.gov:
4530 Extern definitions for Mac compilation.
4532 * app/app_procs.c: Patch #131159 from J. H. M. Dassen
4533 (jdassen@debian.org): Include fix.
4535 * app/interface.c: Patch #130100 from luc@handhelds.org: Make
4536 sure the initial diagram size is correct.
4538 2004-02-15 Lars Clausen <lrclause@cs.uiuc.edu>
4540 * lib/Makefile.am (AM_CPPFLAGS): Override AM_CPPFLAGS instead of
4541 CPPFLAGS, as per automake warning.
4542 * app/Makefile.am (AM_LDFLAGS): Override AM_LDFLAGS instead of
4543 LDFLAGS, as per automake warning.
4544 (run_dia.sh): More robust creation, and more easily moved.
4546 * app/undo.c (group_objects_revert): Don't double-free the objects
4547 list. (#129221) Call object_add_updates on grouped objects.
4548 (ungroup_objects_revert): Call object_add_updates on grouped objects.
4550 * lib/diagramdata.c: Internal
4553 * lib/polyshape.c (polyshape_update_data): Correctly calculate
4554 directions for polyshape corners (thanks, Valgrind!)
4557 * lib/prop_attr.c (arrowprop_load): Use default arrow size.
4559 * lib/arrows.h: Default arrow size defined. After all are using
4560 this, may lower to 0.4 or so.
4562 * app/lineprops_area.[ch]: New function to set the arrow type for an
4565 * app/interface.c (create_lineprops_area): Set default line to
4566 have an arrow (fairly likely to be what's wanted, plus it shows
4567 the user where arrows are set).
4569 * app/app_procs.c: #ifdef HAVE_POPT popt args to process_opt
4571 2004-02-14 Lars Clausen <lrclause@cs.uiuc.edu>
4573 * plug-ins/metapost/render_metapost.c (draw_with_linestyle):
4574 Dotted lines should use dot_length, not dash_length.
4576 2004-02-06 Hans Breuer <hans@breuer.org>
4578 * app/interface.c : don't use gtk_drawing_area_size() to avoid
4579 the defaut size being also the minimum size. Instead use
4580 gtk_window_set_default_size() on the display shell. Fixes #130982.
4582 [fixing #131210, but umlauts in the 'main' filename still not really
4583 supported on systems where filesystem encoding != utf8
4584 (Problems with recent file menu and window title)]
4585 * lib/dia_xml.[hc] : add data_filename() and data_add_filename()
4586 to deal with possible differnces in filename encodings, see
4587 g_filename_<to|from>_utf8()
4588 * objects/standard/image.c : use them.
4590 * lib/widgets.c : handle possible encoding difference here, too.
4591 Also get rid of most warnings by using const and GTK casts where
4592 appropriate; one wrong cast (probably causing a crash) was found/fixed
4593 by this - the remaining give a hint on finally leaking FontSelectorEntry.
4595 * lib/widgets.[hc] : hide _DiaFileSelector and *Class in .c. Modified
4596 dia_file_selector_<get|set>_file to behave like the respective Gtk
4597 functions do : encoding- and const-wise ;-)
4599 2004-02-01 Robert Sedak <robert.sedak@sk.htnet.hr>
4601 * configure.in: Added "hr" (Croatian) to ALL_LINGUAS.
4603 2004-01-19 Hans Breuer <hans@breuer.org>
4605 * app/app_procs.c app/diaconv :
4606 only call bind_textdomain_codeset when available, what's good
4607 for The Gimp (bug #131215) can't be wrong for Dia : bug #125926
4608 * config.h.win32 : define HAVE_BIND_TEXTDOMAIN_CODESET
4610 2004-01-19 Steffen Macke <sdteffen@web.de>
4612 * makefile.msc: updated for new GAIM-like installer build; sync'ed
4613 ALL_LINGUAS with configure.in
4615 2004-01-18 Hans Breuer <hans@breuer.org>
4617 * app/app_procs.c (myXmlErrorReporting) : avoid possible crash
4618 by not passing NULL to g_print()
4620 * app/interface.c (create_toolbox) : actually use
4621 persitence_register_window() to restore toolbox window size
4623 * app/makefile.msc lib/makefile.msc : allow to deselect
4624 building with Freetype by command line to nmake like :
4625 nmake -f makefile.msc "NOFT2=1"
4627 * plug-ins/python/diasvg_import.py : handle 'stroke-array' as
4628 far as possible with Dia's limited line style
4629 * plug-ins/python/pydia-property.c : allow to get and set
4630 Linestyle, style and dash(length)
4632 * lib/object.h : removed typedef for ObjectId not use anywhere
4634 2004-01-17 Hans Breuer <hans@breuer.org>
4636 * objects/custom/shape_info.[hc] objects/custom/custom_object.c
4637 doc/shape.dtd doc/custom-shapes :
4638 support for images in custom shapes, also removed some long-time
4641 * doc/en/*.xml : fixed crippled line ends which get created
4642 when windoze line ends are checkin from the unix side
4644 2004-01-13 Laurent Dhima <laurenti@alblinux.net>
4646 * configure.in: Added "sq" to ALL_LINGUAS.
4648 2004-01-11 Hans Breuer <hans@breuer.org>
4650 [more less leaks ;-]
4652 * objects/SADT/annotation.c : use text_destroy() not g_free()
4654 * objects/chronogram/chronoline.c : neither leak chronoline::events
4655 nor chronoline::name
4657 * objects/wpg/wpg.c : don't g_free() but g_object_unref(renderer);
4659 2004-01-11 Hans Breuer <hans@breuer.org>
4661 * lib/properties.h :
4662 * objects/custom/custom_object.c : more properties optional
4663 to be backward compatible for older diagrams not having them
4664 set. (Try to load samples/all_objects.dia)
4666 [less memory leaks thanks valgrind ;-]
4668 * app/recent_files.c (recent_file_history_write) :
4669 g_free(history_filename);
4670 (recent_file_menu_item) : use g_path_get_basename()
4671 which already strdups, free result of g_strescape()
4673 * app/filedlg.c (create_export_menu) : return of
4674 filter_get_export_filter_label() must be g_free()'d
4675 (create_open_menu) : same for import
4677 * app/export_png.c (export_png_ok) : destroy info ptr
4678 with png_destroy_write_struct()
4680 * app/app_procs.c (app_init) : g_free(export_format_string);
4682 * lib/font.c (dia_font_finalize) : finalize parent_class, too
4683 (dia_font_new_from_style) : stop leaking almost all DiaFont by not
4684 refing it a second time, g_type_create_from_instance() is enough
4686 * lib/object_defaults.c (_obj_store) : don't mess with names
4687 len 0 (should avoid 'Invalid read of size 1, but doesn't ;)
4689 2004-01-11 Steffen Macke <sdteffen@web.de>
4691 * app/diapsftrenderer.c: including ftoutln.h
4692 * app/makefile.msc: updated for freetype build
4693 * lib/libdia.def: added dia_font_get_context()
4694 * lib/dialibartrenderer.c (draw_string): added cast
4696 2004-01-10 Hans Breuer <hans@breuer.org>
4698 * lib/diagdkrenderer.c (draw_string) : gdk_draw_line with
4699 transformed coordinates, fixes bug 130804
4701 2004-01-10 Hans Breuer <hans@breuer.org>
4703 * app/filedlg.c app/app_procs.c : don't try to destroy
4704 'gtk_dialog_run'-dialogs dialogs by connecting to the "response"
4705 signal but simply by gtk_widget_destroy() after gtk_dialog_run()
4706 returns. Fixes 'has no handler' bugs like #121019
4708 2004-01-10 Hans Breuer <hans@breuer.org>
4710 * objects/UML/class.c objects/UML/class_dialog.c :
4711 handle umlclass->name being empty to avoid, i.e. fix #127968
4713 [plugging memleaks, thanks valgrind :-]
4715 * lib/dia_xml.c (data_string) : don't leak return value
4716 of xmlNodeListGetString()
4718 * lib/dia_xml.c (xml_file_check_encoding) : g_free(buf)
4719 before returning, maybe alloca() would be the better
4720 choice but anyway ;)
4722 * objects/custom/custom_object.c:306 : adde xmlFree(str) below
4724 * lib/font.c (dia_font_build_layout) : don't leak result
4727 * lib/diagdkrenderer.c (draw_string) : don't leak rgba
4728 (this is the one which got me started using valgrind, see #130816)
4730 2004-01-07 Sanlig Badral <badral@openmn.org>
4732 * configure.in: Added "mn" to ALL_LINGUAS.
4734 2004-01-04 Hans Breuer <hans@breuer.org>
4736 * lib/diagdkrenderer.c : replace rendering of really small (height
4737 less than 2 pixels) with a simple dashed line, you wont notice the
4738 differnce beside it being much faster. This allows ...
4739 * lib/diagdkrenderer.h : ... to remove gboolean rendertext ...
4740 * app/navigation.c : ... and lets you see an read rendered text even
4741 in the nice navigation popup.
4743 * lib/dialibartrenderer.c : FONT_SCALE defined as 1.0 for G_OS_WIN32, too.
4744 (draw_string) : don't leak temporary image
4746 2004-01-04 Hans Breuer <hans@breuer.org>
4748 * app/dia-app-icons.h : TODO : to be removed when autogenerated on *NIX, too.
4749 * app/interface.c : use dia-app-icons.h to give Dia window icons
4751 * lib/dia_image.c lib/color.c : _never_ call functions implemented
4752 in app/ from lib/. It is not portable and broken from design
4753 * app/app_procs.c : call color_init() and dia_image_init() conditional,
4754 i.e. only if running interactive.
4756 * lib/font.h : #include <time.h>
4758 * lib/libdia.def : updated externals
4760 * objects/UML/actor.c
4761 objects/UML/association.c (todo)
4762 objects/UML/branch.c
4763 objects/UML/class.[hc] objects/UML/class_dialog.c
4764 objects/UML/classicon.c
4765 objects/UML/component.c
4766 objects/UML/constraint.c
4767 objects/UML/dependency.c
4768 objects/UML/generalization.c
4769 objects/UML/implements.c
4770 objects/UML/large_package.c
4771 objects/UML/lifeline.c
4772 objects/UML/message.c
4774 objects/UML/object.c
4775 objects/UML/realizes.c
4776 objects/UML/small_package.c
4778 objects/UML/usecase.c
4780 : ported coloring of most UML objects (bug #97517, orginal
4781 work Mathias Hasselmann)
4783 * lib/properties.h : add _OPTIONAL variants for
4784 PROP_STD_(LINE|FILL|TEXT)_COLOUR which allows to load old -
4785 i.e. default colored - UML diagrams without complaining
4786 * lib/proplist.c lib/propoffsets.c : avoid setting _OPTIONAL,
4787 not set properties with the help of PXP_NOTSET. Otherwise
4788 optional attributes would lead to wrong initialization.
4790 * lib/widgets.[hc] : moved _DiaFontSelector from .h to .c
4791 to hide details and restict #undef GTK_DISABLE_DEPRECATED to .c
4792 Same for most other selectors which probably should be rewritten
4793 to the combo box with tree model from Gtk+ 2.4
4795 2004-01-04 Lars Clausen <lrclause@cs.uiuc.edu>
4797 * INSTALL (PLATFORM NOTES): Mention the Gnu gettext and iconv as
4798 being the Right Thing(tm) to use on Solaris.
4800 * objects/standard/bezier.c (bezierline_draw): Don't draw
4801 guidelines if not selected.
4803 * lib/object.[ch] (dia_object_is_selected): Function to check whether
4804 a given object is selected. O(n), where n is # selected objects.
4807 2004-01-03 Lars Clausen <lrclause@cs.uiuc.edu>
4809 * lib/widgets.[ch]: Make sure old font is re-chosen when the Other
4810 Fonts dialog is closed without pressing Ok (bug #128646).
4812 2004-01-02 Lars Clausen <lrclause@cs.uiuc.edu>
4814 * app/Makefile.am: Quote arguments correctly for run_dia.sh (bug
4817 2004-01-01 Lars Clausen <lrclause@cs.uiuc.edu>
4819 * INSTALL: Updated list of requirements (bug #129653)
4821 * doc/en/dia.dia: Beginning class diagram for Dia from Luc
4822 Pionchon <luc@handhelds.org>.
4824 2003-12-31 Lars Clausen <lrclause@cs.uiuc.edu>
4826 * lib/diagdkrenderer.c (draw_string): Don't attempt to render
4827 empty or NULL strings (bug #130097).
4829 2003-12-31 Chris Sperandio <sperandi@eng.usf.edu>
4831 * plug-ins/metapost/render_metapost.c: Fixed string colorization.
4832 Added checks against color_black.
4834 2003-12-31 Lars Clausen <lrclause@cs.uiuc.edu>
4836 * plug-ins/xfig/xfig-export.c (figArrow): Output nothing for
4837 ARROW_TYPE_NONE. Thanks to Jon A. Solworth for showing that this
4840 * objects/UML/component_feature.c: Patch from W. Borgert
4841 <debacle@debian.org>: Add handle to component feature text.
4843 * lib/diagdkrenderer.c (draw_string): Remove poorly placed caching.
4845 * lib/font.c: Caching PangoLayout for better rendering speed.
4847 2003-12-30 Lars Clausen <lars@raeder.dk>
4849 * lib/dia_dirs.[ch] (dia_get_absolute_filename): New function to
4850 get absolute file name from relative.
4851 * app/recent_files.c (recent_file_history_add): Use absolute
4852 filenames for recent files menu so that files can be found when
4853 Dia is invoked from other places.
4855 * app/app_procs.c (handle_all_diagrams): Fix for 1/3 of 130098:
4856 Actually load different diagrams if such are requested on command
4859 * objects/UML/class_dialog.c (class_create_page): Fix from Luc
4860 Pionchon <luc@handhelds.org>: Correctly align labels for colors.
4862 * lib/diagdkrenderer.[ch]: From Luc: New option to GdkRenderer to
4863 remove text rendering. May be turned into greeking at some later
4867 * app/Makefile.am (dia_core_files):
4868 * app/navigation.[ch]: Patch from Luc Pionchon <luc@handhelds.org>:
4869 Adds navigation window a la Gimp, though without text being
4872 2003-12-27 Luc Pionchon <luc@handhelds.org>
4874 * app/navigation.h: (new file)
4875 * app/navigation.c: (new file) creates a navigation window with a
4876 thumbnail view of the whole diagram.
4877 * app/Makefile.am (dia_core_files): added new files.
4879 * app/interface.c (create_display_shell): added a button between
4880 the scrollbars to popup a navigation window.
4882 * lib/diagdkrenderer.h (struct_DiaGdkRenderer): added rendertext
4884 * lib/diagdkrenderer.c (renderer_init): set rendertext TRUE by default
4885 * lib/diagdkrenderer.c (draw_string): returns if the renderer do
4886 not want text rendering.
4888 2003-12-14 Lars Clausen <lrclause@cs.uiuc.edu>
4890 * shapes/Circuit/hresistor.shape: Uses new extra attribute thing.
4892 * objects/custom/shape_info.[ch]: Cleanup.
4894 * objects/custom/custom_object.[ch]: Changed to use new props
4899 * lib/prop_inttypes.c:
4900 * lib/prop_geomtypes.c: Added *prop_get_data_size.
4902 * lib/libdia.def: Added object_load_props.
4904 * configure.in: Better FT2 version test, from bug #129225.
4906 * dia.spec (BuildRequires): Changed to match makefile (bug #129131)
4908 * plug-ins/xslt/dia-uml2python.xsl: Added Python sheet from Holger
4909 Lehmann <holger.lehmann@catworkx.de>.
4911 * plug-ins/xslt/Makefile.am:
4912 * plug-ins/xslt/stylesheets.xml: Added Python, Component List,
4913 and OWL XSLT sheets.
4915 2003-12-13 Lars Clausen <lrclause@cs.uiuc.edu>
4917 * lib/diagdkrenderer.c: Add implementation so text is still
4918 rendered. May be improved later.
4924 * app/app_procs.c: Patch from W. Borgert <debacle@debian.org>:
4925 Allow running without a $DISPLAY!
4927 * lib/color.c: Remove warnings for non-interactive run.
4932 * app/app_procs.[ch]:
4933 Patch from W. Borgert <debacle@debian.org>: Allow a --size argument
4934 to specify size for PNG output.
4936 * app/lineprops_area.c (dia_arrow_preview_expose): Make arrows
4937 render a little smaller, so as to fit the big ones.
4939 * lib/arrows.[ch]: New arrow type from W. Borgert
4940 <debacle@debian.org>: Filled Dot and Triangle.
4942 2003-12-02 Lars Clausen <lrclause@cs.uiuc.edu>
4944 * doc/pl/Makefile.am (install-data-hook): Fixed installation bug
4947 * plug-ins/xslt/dia-uml2owl.xsl: Added OWL XSLT from Dan Connolly.
4949 * acinclude.m4: Better Python configure code patch (can't find
4950 author, author please speak up!)
4952 2003-12-01 Lars Clausen <lrclause@cs.uiuc.edu>
4954 * lib/diagdkrenderer.c (get_cached_text): Stupid bugs replaced by
4957 2003-11-30 Hans Breuer <hans@breuer.org>
4959 * plug-ins/python/diasvg.py : initialize self.dash_length
4960 in constructor to avoid crashing if the renderer user
4961 does not set it before first usage.
4963 2003-11-30 Lars Clausen <lrclause@cs.uiuc.edu>
4965 * lib/diagdkrenderer.c: Start of cache GDK text renderer -- not
4969 * config.h.win32: Set version number to 0.92.2+cvs to distinguish
4970 development and stable versions.
4972 * lib/text.c (text_draw): Use new renderer function to draw the
4975 * lib/diarenderer.h:
4976 * lib/diarenderer.c: New renderer function "draw_text" with
4977 default implementation. This function should eventually be the
4978 main interface, as it will be able to handle width and caching of
4979 rendering internally. All users of draw_string should convert to
4980 use Text objects and call either renderer->draw_text or text_draw,
4981 the latter if the text can be edited in-place (as should be the
4984 2003-11-29 Lars Clausen <lrclause@cs.uiuc.edu>
4986 * shapes/Circuit/hresistor.shape: First example of extra
4989 2003-11-28 Lars Clausen <lrclause@cs.uiuc.edu>
4991 * plug-ins/shape/shape-export.c:
4992 * lib/diasvgrenderer.h:
4993 * lib/diasvgrenderer.c:
4994 * plug-ins/svg/render_svg.c (new_svg_renderer):
4995 Actually store the font size, using DiaRenderer's font fields.
4997 2003-11-27 Lars Clausen <lrclause@cs.uiuc.edu>
4999 * objects/custom/shape_info.[ch]:
5000 * objects/custom/custom_object.[ch]:
5001 Support for extra attributes in custom objects.
5003 2003-11-23 Lars Clausen <lrclause@cs.uiuc.edu>
5005 * app/diagram.c (diagram_update_menu_sensitivity): More
5006 intelligent checks for menu sensitivity. Might be slow on huge
5007 diagrams, but I think other things outweigh it by a lot.
5009 * app/menus.[ch]: Make "Bring Forwards"
5010 and "Send Backwards" updateable.
5012 2003-11-22 Steffen Macke <sdteffen@web.de>
5014 * shapes/Assorted/arrow-turn-up.shape:
5015 * shapes/Assorted/arrow-turn-up.png:
5016 * sheets/Assorted/Makefile.am:
5017 * sheets/Assorted.sheet.in: Added new arrow
5019 2003-11-17 Lars Clausen <lrclause@cs.uiuc.edu>
5027 * app/diagram_tree.c
5028 * app/diagram_tree_menu.c
5029 * app/diagram_tree_window.c
5030 * app/diapagelayout.c
5031 * app/diaunitspinner.c
5035 * app/layer_dialog.c
5036 * app/lineprops_area.c
5037 * app/linewidth_area.c
5040 * app/paginate_psprint.c
5042 * app/plugin-manager.c
5045 * app/recent_files.c
5047 * app/sheets_dialog.c
5048 * app/sheets_dialog_callbacks.c
5049 * app/tool.c: Patch from Sebastien Tricaud <toady@gscore.org>:
5050 GTK-2 compatibility update, mostly gtk_foo -> g_foo.
5052 * TODO: Updated, note on EPS transparency.
5054 2003-11-07 Lars Clausen <lrclause@cs.uiuc.edu>
5056 * objects/UML/class.c (umlclass_draw): Allow classes with no name
5059 2003-11-01 Lars Clausen <lrclause@cs.uiuc.edu>
5062 * doc/en/dia-manual.xml:
5065 * NEWS: Another Brown Bag release for parenting problems,
5066 including a crash bug fix.
5068 * app/connectionpoint_ops.c (diagram_update_connections_object):
5069 Also update connections when moving children. This can cause
5070 move_handle to be called twice, so it must be idempotent.
5072 * app/load_save.c: Loading and saving of children totally redone.
5073 Now doesn't violate assumption that all objects in a layer are
5074 placed in order in XML file.
5076 * objects/UML/branch.c (branch_create): Don't lie about being
5079 * objects/UML/node.c (node_create):
5080 * objects/UML/large_package.c (largepackage_create): Drag with
5081 lower right-hand handle at creation like all other objects.
5083 2003-10-28 Lars Clausen <lrclause@cs.uiuc.edu>
5085 * app/disp_callbacks.c (ddisplay_drop_object): Change initial
5086 parenting drop to behave like a move inside, i.e. constrain place
5087 instead of trying to resize. 'Cause, resizing cannot be done for
5088 all objects (e.g. UML Class). Also simplified the algorithm a lot
5091 * app/load_save.c: Saving and loading of connection points for
5092 children added. Prototypes for static functions added.
5094 * lib/dynamic_obj.c: Removed debugging output.
5096 2003-10-26 Lars Clausen <lrclause@cs.uiuc.edu>
5098 * doc/en/dia-manual.xml:
5099 * doc/pl/dia-manual.sgml:
5103 * NEWS: Brown Bag release 0.92.1
5105 * lib/dynamic_obj.c: Fixed embarassing dynamic object removal bug.
5107 2003-10-25 Lars Clausen <lrclause@cs.uiuc.edu>
5109 * app/app_procs.c (app_init): Rearrangement for translators.
5111 2003-10-24 Steffen Macke <sdteffen@web.de>
5113 * lib/text.c(text_key_event): enforcing the inserted text length now,
5116 2003-10-22 Lars Clausen <lrclause@cs.uiuc.edu>
5118 * MAINTAINERS: Change Debian maintainer to be the default address.
5120 * objects/Misc/analog_clock.c (analog_clock_move_handle): Reorder
5121 args to match prototype, thus removing crashbug #125159.
5123 * RELEASE-PROCESS: Note to self.
5125 2003-10-22 Steffen Macke <sdteffen@web.de>
5127 * doc/en/dia-manual.xml: removed superfluous external references
5129 2003-10-21 Steffen Macke <sdteffen@web.de>
5131 * lib/libdia.def: added filter_get_by_name
5132 * app/render_eps.c: moved extensions definition outside #ifdef
5134 2003-10-19 Lars Clausen <lrclause@cs.uiuc.edu>
5138 Removed old Dia manual, put new one in doc/en/. Translations
5139 should go in doc/??/.
5141 * doc/en/dia-manual.xml:
5142 * doc/pl/dia-manual.sgml:
5143 * dia.spec (Release):
5146 * NEWS: 0.92 is here!
5150 * doc/en/Makefile.am (man_MANS): Added man page, thanks to Fredrik
5151 HallenBerg, W. Borgert. Not currently autogenerated from dia.dbk,
5154 * doc/en/usage-objects.xml: Fixed lower-case PNG tags.
5156 * doc/en/usage-objects-selecting.xml: Commented out empty note.
5158 2003-10-14 Lars Clausen <lrclause@cs.uiuc.edu>
5160 * doc/pl/dia-manual.sgml:
5161 * doc/en/dia-manual.xml:
5165 * dia.spec (Release): Pre7.
5167 * app/diapsrenderer.c (draw_string): Convert string to print based
5168 on current locale. If conversion fails, fall back to UTF-8 (which
5169 is almost certain to be messy).
5171 2003-10-13 Lars Clausen <lrclause@cs.uiuc.edu>
5173 * doc/pl/dia-manual.sgml:
5174 * dia.spec (Release):
5178 * doc/en/dia-manual.xml: Pre6.
5180 * plug-ins/pstricks/render_pstricks.c (draw_string): Don't escape
5181 TeX chars in strings -- must be possible to use TeX text in there.
5182 Also avoids infinite loop bug (#124464) Will get option for this
5185 2003-10-11 Lars Clausen <lrclause@cs.uiuc.edu>
5187 * shapes/Cisco/Makefile.am: Cisco shapes now install correctly.
5189 * doc/en/dia-manual.xml:
5190 * doc/pl/dia-manual.sgml:
5191 * dia.spec (Release):
5196 * app/authors.h: Removed duplicate of M. C. Nelson.
5198 * plug-ins/pixbuf/pixbuf.c: Unique name for pixbuf export: gdkpixbuf.
5200 * app/export_png.c: Unique name for libart PNG export: png-libart.
5202 * app/render_eps.c: Unique names for the two eps export methods:
5203 eps-builtin, eps-pango.
5205 * lib/filter.h: Binary compatibility change:
5206 Added unique name to export filters. Can be NULL.
5207 * lib/filter.c (filter_get_by_name): Finding a filter by
5210 * app/app_procs.h: Changed prototype for do_convert.
5211 * app/app_procs.c (app_init): Support for non-extension file
5212 format selection for export. Also allow extension to differ from
5213 that specified by the filters. A bit of refactoring, too.
5215 2003-09-28 Steffen Macke <sdteffen@web.de>
5217 * makefile.msc: added target po to update the translations
5219 2003-09-27 Lars Clausen <lrclause@cs.uiuc.edu>
5222 * dia.spec (Release):
5224 * doc/pl/dia-manual.sgml:
5225 * doc/en/dia-manual.xml:
5226 Pre4 is given a short try.
5228 * configure.in: Give all necessary libs to PNG test.
5230 * lib/font.c: Added legacy entries for sans, serif and monospace.
5232 * app/app_procs.c (internal_plugin_init):
5235 Added PS fonts output for Unix.
5237 * app/diapsrenderer.c (set_font): Adjusted height by the magic .7
5238 factor to make PS fonts stay in boxes.
5240 2003-08-03 Hans Breuer <hans@breuer.org>
5242 * config.h.win32 : close the version string
5244 * lib/libdia.def : with color_white, color_black being static
5245 on win32 they can not be exported anymore either
5247 * lib/dialibartrenderer.c : text rendering is back on win32,
5248 only by Gdk though; almost a year seems to be enough to
5249 wait for my patch at bug #94791 to be accepted ...
5251 2003-09-23 Lars Clausen <lrclause@cs.uiuc.edu>
5253 * shapes/network/{digitizing_board.png,plotter.png,
5254 laptop.png,telephone.png}: 22x22 icons.
5256 2003-09-22 Lars Clausen <lrclause@cs.uiuc.edu>
5258 * doc/pl/dia-manual.sgml:
5259 * doc/en/dia-manual.xml:
5260 * dia.spec (Release):
5264 pre3 improves font rendering speed.
5266 * app/app_procs.c (app_init): Don't do pango init here, it's done
5267 on demand in font.c now.
5269 * lib/font.c: Load pango context on demand rather than during
5270 init/all the time strikes a better balance between working font
5271 size and speed. Still need to cache width calculations.
5273 2003-09-18 Lars Clausen <lrclause@cs.uiuc.edu>
5275 * lib/dia_xml.c: Enable pretty printing. Should have been added
5278 2003-09-11 Lars Clausen <lrclause@cs.uiuc.edu>
5280 * lib/arrows.c (calculate_arrow_point): Adjust arrow line
5281 adjustment a bit for half diamond and open round.
5283 * RELEASE-PROCESS: Added note about notifying translators and
5286 * doc/pl/dia-manual.sgml:
5287 * doc/en/dia-manual.xml:
5288 * dia.spec (Release):
5292 Update to 0.92-pre2.
5294 2003-09-10 Lars Clausen <lrclause@cs.uiuc.edu>
5296 * lib/arrows.c (calculate_arrow_point): Some fixing-up of arrow
5297 calculation for half diamond and open round.
5300 * objects/UML/component_feature.c:
5301 * lib/arrows.h: Patch from W. Borgert <debacle@debian.org>: Use
5302 arrows instead of specific little hacks. Much nicer, but damn
5303 there's a lot of arrows.
5305 * lib/dialibartrenderer.c (begin_render):
5306 * app/render_libart.c (begin_render): Use correct DPI for screen
5307 (well, actually the default DPI of 75 for now).
5309 * app/display.h: Informative notes on the DDISPLAY_*_ZOOM macros.
5311 * lib/diagdkrenderer.c (draw_string): Some reformatting.
5313 * app/app_procs.c (app_init): Note on what should be done for the
5314 pango context now, only it doesn't work:(
5316 * lib/font.c (dia_font_new): Make sure to load fonts that are
5317 used, using a reasonable pango_context. Also a comment on the
5320 2003-09-09 Lars Clausen <lrclause@cs.uiuc.edu>
5322 * doc/pl/graphics/*.png:
5323 * doc/pl/Makefile.am: Added graphics to distro, avoiding empty
5324 loop (bug #121817). PL translator may want to change the
5325 home_network png to be in Polish. If the docs get translated into
5326 more languages, we'll want to find out how to share these things.
5328 2003-09-08 Lars Clausen <lrclause@cs.uiuc.edu>
5330 * app/splash.c (app_splash_init): Patch from Sébastien Tricaud
5331 <stricaud@mwsp.net>: Use g_signal_* instead of gtk_signal_* in
5334 * app/filedlg.c (file_save_as_callback): Put filename setting
5335 together. (Preparation for allowing default save dir.)
5337 * app/paginate_psprint.c (diagram_print_ps): Use $PRINTER
5338 correctly this time:)
5340 * app/dia-props.c (diagram_properties_show):
5341 * app/properties.c (properties_show): Make sure the
5342 dialogs are transient for the correct diagram.
5344 2003-09-07 Lars Clausen <lrclause@cs.uiuc.edu>
5346 * configure.in: Make sure -lz -lm is passed into second png test
5347 as well (stupid AC_LINK_IFELSE can't take it as an argument).
5349 * plug-ins/xfig/xfig-import.c: Skip XFig comments to make certain
5350 comment-filled files readable. Once we have a 'generic data'
5351 system, we can put comments in there.
5353 2003-09-06 Steffen Macke <sdteffen@web.de>
5355 * plug-ins/pstricks/render_pstricks.c(tex_escape_string): using
5356 g_string_sized_new() instead of g_string_new() to make it compile
5357 * app/Makefile.am: including dia.ico and dia.rc in the tarball
5358 * plug-ins/wmf/wmf.cpp (set_linestyle): In WMF maximum linewidth is 1
5359 for non-solid linestyles - otherwise custom linestyles have to be used.
5361 2003-09-02 Steffen Macke <sdteffen@web.de>
5363 * app/commands.c(help_manual_callback): using dia-manual.chm instead of
5366 2003-09-02 Christian Neumair <chris@gnome-de.org>
5368 * sheets/Pneumatic.sheet.in: Slight unification fix.
5370 2003-09-02 Lars Clausen <lrclause@cs.uiuc.edu>
5374 * dia.spec (Release):
5375 * doc/en/dia-manual.xml:
5376 * doc/pl/dia-manual.sgml:
5377 * NEWS: Update to 0.92-pre1.
5379 * app/properties.c (properties_key_event): Removing Esc/Enter
5380 handling for now, interferes to much with regular dialog usage.
5382 * plug-ins/pstricks/render_pstricks.c (tex_escape_string):
5383 Function to escape special TeX characters. Not in use yet, as
5384 PSTricks output by default is TeX strings. Should get a save-time
5387 2008-09-01 Steffen Macke <sdteffen@web.de>
5389 * lib/paper.h: explanatory comment on width and height
5391 2003-08-30 Steffen Macke <sdteffen@web.de>
5394 * lib/color.h: made color_white, color_black static on win32
5396 2003-08-28 Lars Clausen <lrclause@cs.uiuc.edu>
5398 * configure.in (PNG_LIBS): Something in the png tests added an
5399 extra -lpng to $LIBS. Saving old $LIBS to avoid that.
5401 2003-08-27 Lars Clausen <lrclause@cs.uiuc.edu>
5403 * configure.in: Quote correctly for temporarily adding freetype
5406 * app/preferences.c (prefs_save): Remove debugging g_print.
5408 2003-08-26 Lars Clausen <lrclause@cs.uiuc.edu>
5410 * objects/flowchart/parallelogram.c (pgram_update_data):
5411 Directions for connections, better system for placing
5414 2003-08-25 Lars Clausen <lrclause@cs.uiuc.edu>
5416 * lib/diagramdata.c (layer_find_closest_object_except): Look all
5417 the way through the object list, so the foremost object is selected.
5419 * lib/diagramdata.h: Removing dynamic_obj.h, it should only be
5420 included for diagramdata.c.
5422 * lib/prop_text.c (multistringprop_handle_key): Attempt at making
5423 newline in multistringprop not close the dialog. Failed so far.
5425 2003-08-25 Steffen Macke <sdteffen@web.de>
5427 * app/commands.c: using CHM instead of HTML on win32 if available
5428 * lib/diagramdata.h: including dynamic_obj.h
5430 2003-08-25 Lars Clausen <lrclause@cs.uiuc.edu>
5432 * app/properties.c (properties_key_event): Make Enter = Ok for
5433 properties dialogs. Still some problems with this and Esc for
5434 Cancel, for instances escaping out of a menu closes the dialog.
5436 * objects/UML/association.c (association_get_properties):
5437 * objects/UML/class_dialog.c (class_create_page): Grab appropriate
5440 * app/diapsft2renderer.c (draw_string): Use
5441 dia_font_scaled_build_layout to ensure similarity of text.
5443 * lib/diagramdata.c: Remove obj from dynobj list when removing
5444 from layer to avoid nasty race conditions.
5446 * app/undo.c (group_objects_revert): Make sure to unparent and
5447 remove from dynobj list when changing layers objects.
5449 2003-08-23 Steffen Macke <sdteffen@web.de>
5451 * plug-ins/wmf/wmf.cpp (draw_image): replaced BitBlt() with
5452 StretchBlt(); fixes #92249
5454 2003-08-23 Lars Clausen <lrclause@cs.uiuc.edu>
5456 * app/filedlg.c (file_save_as_callback):
5457 * app/preferences.h:
5458 * app/preferences.c (prefs_data):
5459 * lib/diagramdata.h:
5460 * lib/diagramdata.c (new_diagram_data):
5461 * app/load_save.c (diagram_data_load):
5462 Let the document remember whether it was compressed. The user can
5463 still override this in the Save As... dialog, and that will still
5464 be remembered as the default for new diagrams.
5466 2003-08-23 Steffen Macke <sdteffen@web.de>
5468 * plug-ins/xslt/Makefile.am: added dia-uml2componentlist.xsl
5470 2003-08-22 Steffen Macke <sdteffen@web.de>
5472 * plug-ins/xslt/dia-uml.xsl:
5473 * plug-ins/xslt/dia-uml2componentlist.xsl: generate a HTML file with a
5474 table containing a list of components grouped by stereotype
5476 2003-08-21 Steffen Macke <sdteffen@web.de>
5478 * lib/makefile.msc: added connectionpoint.obj
5479 * lib/libdia.def: added connpoint_update, find_slope_directions
5480 * app/disp_callbacks.c: including scroll_tool.h
5481 * obj/makefile.msc: added component_feature.obj
5482 * app/paginate_gdiprint.c: fixed loop initialization in
5483 paginate_gdiprint(); partial fix for bug #85831 - the scaling is still
5486 2003-08-21 Lars Clausen <lrclause@cs.uiuc.edu>
5488 * plug-ins/python/pydia-object.c (PyDiaObject_MoveHandle): Fix
5491 * lib/diagramdata.h: Colors added to prefs.
5492 * lib/diagramdata.c (new_diagram_data): Set diagram colors from prefs.
5493 New field for pagebreak color, which should
5494 behave the same as grid color and be settable for a diagram.
5496 * app/diagram.c (diagram_init): Update diagram pagebreak color
5499 * app/grid.c (pagebreak_draw): Draw using diagrams pagebreak
5502 * app/preferences.[ch]: Default diagram colors now #defines, so
5503 loading can use it. Also, colors are now in NewDiagramData, so
5504 are passed nicely into new diagrams directly from prefs. Yum.
5506 * app/load_save.c (diagram_data_write_doc, diagram_data_load):
5507 Support for loading and saving grid and pagebreak colors with the
5508 diagram. I'm inclined to make all the three Colors in diagram
5509 Color*s instead, so we can tell if they're specified for the
5510 diagram or merely the default setting. There'd be no way for the
5511 user to tell if the color of a diagram is default, though, unless
5512 we add a 'reset to default' button to prefs.
5514 * app/dia-props.c: Adding widgets for dynamic grid, grid colour,
5515 pagebreak color. Unsensitizing grid size when dynamic.
5517 * objects/UML/component.c: Patch from Krzysztof Foltman
5518 <kfoltman@onet.pl>: Add two new connectionpoints and adjust a
5519 third. Makes the left side connections actually be on the line
5522 2003-08-20 Steffen Macke <sdteffen@web.de>
5524 * lib/libdia.def: added layer_find_closest_object_except
5525 * lib/diagramdata.c: added ; after GOTO to make MSVC compile
5527 2003-08-20 Lars Clausen <lrclause@cs.uiuc.edu>
5531 * app/scroll_tool.c:
5533 * app/disp_callbacks.c:
5534 * app/create_object.h:
5535 * app/create_object.c: Patch from Krzysztof Foltman
5536 <kfoltman@onet.pl>: Middle button can scroll transiently when
5537 menu-bar-mode is on, and mouse wheels (hopefully) can scroll in
5541 * sheets/UML.sheet.in:
5542 * sheets/UML/receptacle.xpm:
5543 * sheets/UML/Makefile.am:
5544 * sheets/UML/eventsource.xpm:
5545 * sheets/UML/eventsink.xpm:
5546 * objects/UML/pixmaps/facet.xpm:
5547 * objects/UML/uml.c (dia_plugin_init):
5548 * objects/UML/Makefile.am (libuml_objects_la_SOURCES):
5549 * objects/UML/component_feature.c:
5550 Patch from W. Borgert <debacle@debian.org>: Add event sources and
5553 2003-08-19 Lars Clausen <lrclause@cs.uiuc.edu>
5555 * lib/object.h: Turning some comments into doxygen style.
5557 * lib/object_defaults.c (dia_object_defaults_load)
5558 (dia_object_default_get, dia_object_default_create):
5559 Fixing up existing documentation.
5561 * lib/object.h: Doxygen style documentation begun.
5563 * app/create_object.c:
5565 * app/connectionpoint_ops.c:
5566 * app/disp_callbacks.c:
5567 * app/modify_tool.c:
5569 * objects/network/wanlink.c (wanlink_move_handle):
5570 * objects/network/bus.c (bus_move_handle):
5572 * objects/flowchart/parallelogram.c (pgram_move_handle):
5573 * objects/flowchart/ellipse.c (ellipse_move_handle):
5574 * objects/flowchart/diamond.c (diamond_move_handle):
5575 * objects/flowchart/box.c (box_move_handle):
5577 * objects/custom/custom_object.c (custom_move_handle):
5579 * objects/chronogram/chronoref.c (chronoref_move_handle):
5580 * objects/chronogram/chronoline.c (chronoline_move_handle):
5582 * objects/SADT/box.c (sadtbox_move_handle):
5583 * objects/SADT/arrow.c (sadtarrow_move_handle):
5584 * objects/SADT/annotation.c (annotation_move_handle):
5586 * objects/Misc/analog_clock.c (analog_clock_move_handle):
5588 * objects/GRAFCET/vergent.c (vergent_move_handle):
5589 * objects/GRAFCET/vector.c (arc_move_handle):
5590 * objects/GRAFCET/transition.c (transition_move_handle):
5591 * objects/GRAFCET/step.c (step_move_handle):
5592 * objects/GRAFCET/condition.c (condition_move_handle):
5593 * objects/GRAFCET/action.c (action_move_handle):
5595 * objects/FS/function.c:
5596 * objects/FS/flow.c:
5597 * objects/FS/flow-ortho.c (orthflow_move_handle):
5598 * objects/FS/flow-poly.c (flow_move_handle):
5600 * objects/UML/usecase.c (usecase_move_handle):
5601 * objects/UML/state_term.c (state_move_handle):
5602 * objects/UML/state.c (state_move_handle):
5603 * objects/UML/small_package.c (smallpackage_move_handle):
5604 * objects/UML/realizes.c (realizes_move_handle):
5605 * objects/UML/object.c (objet_move_handle):
5606 * objects/UML/note.c (note_move_handle):
5607 * objects/UML/node.c (node_move_handle):
5608 * objects/UML/message.c (message_move_handle):
5609 * objects/UML/lifeline.c (lifeline_move_handle):
5610 * objects/UML/large_package.c (largepackage_move_handle):
5611 * objects/UML/implements.c (implements_move_handle):
5612 * objects/UML/generalization.c (generalization_move_handle):
5613 * objects/UML/fork.c (fork_move_handle):
5614 * objects/UML/dependency.c (dependency_move_handle):
5615 * objects/UML/constraint.c (constraint_move_handle):
5616 * objects/UML/compprop.c (compprop_move_handle):
5617 * objects/UML/component.c (component_move_handle):
5618 * objects/UML/branch.c (branch_move_handle):
5619 * objects/UML/association.c (association_move_handle):
5620 * objects/UML/actor.c (actor_move_handle):
5621 * objects/UML/activity.c (state_move_handle):
5622 * objects/UML/class.c (umlclass_move_handle):
5624 * objects/standard/ellipse.c (ellipse_move_handle):
5625 * objects/standard/zigzagline.c (zigzagline_move_handle):
5626 * objects/standard/textobj.c (textobj_move_handle):
5627 * objects/standard/polyline.c (polyline_move_handle):
5628 * objects/standard/polygon.c (polygon_move_handle):
5629 * objects/standard/line.c (line_move_handle):
5630 * objects/standard/image.c (image_move_handle):
5631 * objects/standard/bezier.c (bezierline_move_handle):
5632 * objects/standard/arc.c (arc_move_handle):
5633 * objects/standard/beziergon.c (beziergon_move_handle):
5634 * objects/standard/box.c (box_move_handle):
5636 * objects/ER/relationship.c (relationship_move_handle):
5637 * objects/ER/participation.c (participation_move_handle):
5638 * objects/ER/entity.c (entity_move_handle):
5639 * objects/ER/attribute.c (attribute_move_handle):
5641 * lib/polyshape.c (polyshape_move_handle):
5643 * lib/orth_conn.c (orthconn_move_handle):
5645 * lib/neworth_conn.c (neworthconn_move_handle):
5646 * lib/neworth_conn.h:
5647 * lib/element.c (element_move_handle):
5649 * lib/connection.c (connection_move_handle):
5651 * lib/beziershape.c (beziershape_move_handle):
5652 * lib/beziershape.h:
5653 * lib/bezier_conn.c (bezierconn_move_handle):
5654 * lib/bezier_conn.h:
5655 *BINARY COMPATIBILITY CHANGE*
5656 Update prototype for *_move_handle() to include connectionpoint,
5657 and also pass on modifiers. Pass in connectionpoint where
5660 * lib/dummy_dep.h (dummy_dep): Adding dummy dependencies for new
5661 file connectionpoint.c.
5663 2003-08-17 Danilo Å egan <dsegan@gmx.net>
5665 * configure.in: Added "sr" and "sr@Latn" to ALL_LINGUAS.
5667 2003-08-15 Lars Clausen <lrclause@cs.uiuc.edu>
5669 * lib/object.c (object_copy): Use g_malloc0 instead of g_malloc.
5671 * lib/beziershape.c (beziershape_update_data): Autoroute
5672 directions for beziershapes!
5674 * lib/connectionpoint.c (find_slope_directions):
5675 * lib/connectionpoint.h: Function for finding the available
5676 directions on a slope.
5678 * lib/polyshape.c: Reasonable directions for
5681 2003-08-14 Lars Clausen <lrclause@cs.uiuc.edu>
5683 * objects/Misc/analog_clock.c (analog_clock_update_arrow_tips):
5684 * objects/GRAFCET/vergent.c (vergent_update_data):
5685 * objects/GRAFCET/transition.c (transition_update_data):
5686 * objects/GRAFCET/action.c (action_update_data):
5687 * objects/GRAFCET/step.c (step_update_data):
5688 * objects/FS/function.c (function_update_data):
5689 * lib/connpoint_line.c (connpointline_putonaline):
5690 * objects/ER/attribute.c (attribute_update_data):
5691 * objects/ER/entity.c (entity_update_data):
5692 * objects/ER/relationship.c (relationship_update_data):
5693 * objects/chronogram/chronoline.c (chronoline_update_data): Set
5694 directions for connection points.
5696 * objects/UML/component.c (component_create): Set to allow
5699 * app/create_object.c (create_object_button_press):
5700 * app/diagram.[ch] (diagram_find_clicked_object_except):
5701 * lib/diagramdata.[ch] (layer_find_closest_object_except):
5702 Avoid parenting to objects you're connecting to (otherwise you
5703 couldn't make a connection out of a parenting object). To do
5704 this, added functions to find the nearest object except a given
5707 * app/render_libart.c: Rearrange libart include to avoid multiple
5708 include program (and put libart includes inside #ifdef!)
5710 2003-08-13 Lars Clausen <lrclause@cs.uiuc.edu>
5712 * lib/dialibartrenderer.c: Don't include art_config.h if others
5713 also do, as it isn't #ifdef'd.
5715 * objects/flowchart/ellipse.c (ellipse_update_data): Add
5716 directions for connection points.
5718 2003-08-12 Lars Clausen <lrclause@cs.uiuc.edu>
5720 * objects/flowchart/box.c (box_update_data): Add directions, use
5722 (box_load): Use g_malloc0.
5724 * lib/Makefile.am (libdia_la_SOURCES):
5725 * lib/connectionpoint.c (connpoint_update):
5726 Function to call to update a connection point info in _update_data().
5728 * lib/connectionpoint.h: Convenience DIR_ macros.
5730 * app/preferences.c (prefs_data): Make pretty formatted XML the
5733 * lib/dialibartrenderer.c:
5734 * app/render_libart.c: Make sure art_config.h is included, cause
5735 some libart headers are broken.
5737 * configure.in (HAVE_FREETYPE): Restore CPPFLAGS to old value
5738 after test. Add freetype-config cflags to cflags variable.
5740 2003-08-11 Lars Clausen <lrclause@cs.uiuc.edu>
5742 * app/authors.h: Credits for Krzysztof.
5744 * sheets/Flowchart.sheet.in: Updated descriptions from Krzysztof
5745 Foltman <kfoltman@onet.pl>. It occurs to me that the name (rather
5746 than the description) is visible in the title of the properties
5747 dialog. That ought to be a short description (translatable),
5748 though we still want long descriptions for the tooltips. Hmmm...
5750 * configure.in: Updated to use AC_LINK_IFELSE instead of
5751 AC_TRY_COMPILE, also force to link to check libs on Solaris.
5753 * objects/ER/entity.c (entity_load):
5754 * objects/ER/attribute.c (attribute_load):
5755 * lib/attributes.c (attributes_set_default_font):
5756 Check if font is non-null before unreffing.
5758 2003-08-08 Lars Clausen <lrclause@cs.uiuc.edu>
5760 * app/diagram.c (diagram_ungroup_selected)
5761 (diagram_group_selected): Use the undo apply to make sure grouping
5762 and ungrouping is done in consistent manners. This removes a fair
5763 amount of duplicated code from diagram.c.
5765 * app/undo.c (ungroup_objects_revert, ungroup_objects_apply)
5766 (group_objects_revert, group_objects_apply): Working undo/redo for
5767 diagram tree updates. The initial actions still don't quite work.
5769 2003-08-07 Lars Clausen <lrclause@cs.uiuc.edu>
5771 * app/create_object.c (create_object_button_press):
5773 * app/diagram.c: Undo support for parenting. Uses apply/revert in
5774 undo only for manipulating the parent/child relationships. Things
5775 like removing an object doesn't use the undo functions for
5776 parenting, so any updates to come (like to diagramtree) should be
5779 2003-08-03 Hans Breuer <hans@breuer.org>
5781 * app/create_object.c : minor formating and g_new0 for
5784 * lib/bezier_conn.[hc] lib/beziershape.[hc]
5785 lib/prop_geomtypes.c (prop_geomtypes_register)
5786 objects/standard/bezier.c objects/standard/beziergon.c :
5787 ability to set bezpoints via StdProp api
5789 * plug-ins/python/pydia-property.c : convert list of tuples
5792 * plug-ins/python/diasvg_import.py : use it to
5793 implement part of path parsing. Also minor improvements
5794 like inheritance of group attributes to members,
5795 whitespace, title and style:text/css ignoring ;-)
5797 2003-08-02 Hans Breuer <hans@breuer.org>
5799 * lib/connections.c (connection_move_handle): return
5800 something to make it compile
5801 * lib/object.c(190) : error C4033: 'object_list_move_delta_r'
5802 must return a value -> dito
5803 [Is there a warnings-as-errors switch we could use with gcc
5804 to avoid such in future ?]
5806 * plug-ins/python/pydia-object.h : define *_Check macros
5807 * plug-ins/python/diamodule.c : provide dia.group_create()
5808 * plug-ins/python/pydia-diagramdata.c : add
5809 DiaDiagramData.add_layer()
5810 * plug-ins/python/pydia-property.c : allow to set color by
5813 * plug-ins/python/diasvg_import.py : based on the above
5814 implement a) group support, b) rgb(1,2,3) color handling,
5815 and somewhat fishy data:image/png;base64 support (create
5816 temporary files from inline image data)
5817 d) dump the import errors as text into an 'Error' layer
5819 * plug-ins/python/diasvg.py : add xmlns:xlink, removed a
5820 stray " in draw_rect and corrected error message formating
5822 * plug-ins/pydia/pydia-geometry.c : removed ## to make it
5823 compile with gcc 3.3, fixes bug #117204. Thanks to Daniel
5826 2003-08-01 Hubert Figuiere <hfiguiere@teaser.fr>
5828 * app/magnify.c (create_magnify_tool): allocate with g_new0()
5830 * app/preferences.c (prefs_create_dialog): use checkboxes for boolean
5831 preferences values (see bug 118570). Also group items into a GtkFrame.
5833 2003-07-31 Lars Clausen <lrclause@cs.uiuc.edu>
5838 * app/commands.c (objects_unparent_children_callback):
5840 * app/diagram.c (diagram_unparent_selected,
5841 (diagram_update_menu_sensitivity):
5842 Added unparenting of single children.
5844 * lib/bezier_conn.c:
5845 * lib/bezier_conn.h:
5846 * lib/beziershape.c:
5847 * lib/beziershape.h:
5853 * lib/neworth_conn.c:
5854 * lib/neworth_conn.h:
5861 * objects/EML/instantiation.c:
5862 * objects/EML/interaction-ortho.c:
5863 * objects/EML/interaction.c:
5864 * objects/EML/process.c:
5865 * objects/ER/attribute.c:
5866 * objects/ER/entity.c:
5867 * objects/ER/participation.c:
5868 * objects/ER/relationship.c:
5869 * objects/FS/flow-ortho.c:
5870 * objects/FS/flow-poly.c:
5871 * objects/FS/flow.c:
5872 * objects/FS/function.c:
5873 * objects/GRAFCET/action.c:
5874 * objects/GRAFCET/condition.c:
5875 * objects/GRAFCET/step.c:
5876 * objects/GRAFCET/transition.c:
5877 * objects/GRAFCET/vector.c:
5878 * objects/GRAFCET/vergent.c:
5879 * objects/Misc/analog_clock.c:
5880 * objects/SADT/annotation.c:
5881 * objects/SADT/arrow.c:
5882 * objects/SADT/box.c:
5883 * objects/UML/activity.c:
5884 * objects/UML/actor.c:
5885 * objects/UML/association.c:
5886 * objects/UML/branch.c:
5887 * objects/UML/class.c:
5888 * objects/UML/classicon.c:
5889 * objects/UML/component.c:
5890 * objects/UML/constraint.c:
5891 * objects/UML/dependency.c:
5892 * objects/UML/fork.c:
5893 * objects/UML/generalization.c:
5894 * objects/UML/implements.c:
5895 * objects/UML/large_package.c:
5896 * objects/UML/lifeline.c:
5897 * objects/UML/message.c:
5898 * objects/UML/node.c:
5899 * objects/UML/note.c:
5900 * objects/UML/object.c:
5901 * objects/UML/realizes.c:
5902 * objects/UML/small_package.c:
5903 * objects/UML/state.c:
5904 * objects/UML/state_term.c:
5905 * objects/UML/usecase.c:
5906 * objects/chronogram/chronoline.c:
5907 * objects/chronogram/chronoref.c:
5908 * objects/custom/custom_object.c:
5909 * objects/flowchart/box.c:
5910 * objects/flowchart/diamond.c:
5911 * objects/flowchart/ellipse.c:
5912 * objects/flowchart/parallelogram.c:
5913 * objects/network/bus.c:
5914 * objects/network/wanlink.c:
5915 * objects/standard/arc.c:
5916 * objects/standard/bezier.c:
5917 * objects/standard/beziergon.c:
5918 * objects/standard/box.c:
5919 * objects/standard/ellipse.c:
5920 * objects/standard/image.c:
5921 * objects/standard/line.c:
5922 * objects/standard/polygon.c:
5923 * objects/standard/polyline.c:
5924 * objects/standard/textobj.c:
5925 * objects/standard/zigzagline.c:
5926 Binary compatibility update: Added return value for foo_move() and
5927 foo_move_handle(). Orthconn derivatives also returns change from
5928 orthconn_move_handle().
5930 * lib/orth_conn.c: Undo support for autorouting. Neworthconn
5931 doesn't support it yet.
5933 * lib/object.c (object_list_move_delta_r, object_list_move_delta):
5934 Add returning ObjectChange from object moves. Needs to handle
5935 multiple object moves.
5937 * app/modify_tool.c (modify_motion, modify_release): Add
5938 ObjectChange from move & move_handle to undo stack.
5940 * objects/EML/instantiation.c (instantiation_move): Removing
5941 duplicate move & update.
5943 2003-07-30 Lars Clausen <lrclause@cs.uiuc.edu>
5945 * plug-ins/xfig/xfig-export.c: Added support for arrow head
5946 export. Many arrow types not supported by XFig, replacing those
5947 with standard arrows. Not sure whether it'd be better to render
5948 them as a group of lines instead. You'd lose the arrow-ness for
5949 further editing, but preserve the actual shape of it. Also added
5950 support for dash length.
5952 * plug-ins/xfig/xfig-import.c: Added support for dash length settings.
5954 * plug-ins/xfig/fig-format-3.2: Added copy of Fig format
5955 description for version 3.2, for reference.
5957 * plug-ins/xfig/xfig-import.c: Added import of arrows.
5959 * app/menus.c: Removed prefs item from Gnome diagram menu. Made
5960 Align Vertical Adjacent call _v rather than _h.
5962 2003-07-29 Hubert Figuiere <hfiguiere@teaser.fr>
5964 * app/scroll_tool.c (create_scroll_tool):
5965 * app/modify_tool.c (create_modify_tool): use g_new0() to
5968 2003-07-29 Lars Clausen <lrclause@cs.uiuc.edu>
5970 * configure.in: Added proper settings for XSLT_LIBS and XSLT_CFLAGS.
5972 2003-07-24 Pablo Saratxaga <pablo@mandrakesoft.com>
5974 * configure.in: Added Macedonian (mk) to ALL_LINGUAS
5976 2003-07-23 Dmitry G. Mastrukov <dmitry@taurussoft.org>
5978 * configure.in: Added Belarusian to ALL_LINGUAS.
5980 2003-07-19 Hans Breuer <hans@breuer.org>
5983 Make the xslt plug-in work on win32, too. It appears
5984 to require a quite recent version of libxml and libxslt,
5985 otherwise windoze pathes aren't translated correctly
5986 during file processing
5989 * plug-ins/xslt/xslt.h : #include <glib.h> before
5992 * plug-ins/xslt/xslt.c : plugged some memory leaks and do
5993 the 'script' file finding similar to how it is done
5994 with the python scripts (no need for hardcoded pathes,
5995 removed the 'plugin' part from the path)
5997 * plug-ins/xslt/stylesheets.xml : added again. It does
5998 not have any path but only the pure filename again
6000 * plug-ins/xslt/stylesheets.xml.in : removed
6002 * plug-ins/xslt/Makefile.am : removed 'plugin' and the
6003 rule to process stylesheets.xml.in
6005 * plug-ins/makefile.msc : added xslt
6007 2003-07-19 Hans Breuer <hans@breuer.org>
6009 Finally Dia learned to remember the recent selected sheet
6011 * app/preferences.[hc] : added prefs.recent_sheet
6012 * app/interface.c : restore and remember the sheet-option-menu
6013 history, but only if the respective number is stiil available.
6014 This additional adds robustness against running Dia without
6015 any sheet (e.g. installation problems)
6016 * app/app_procs.c : call prefs_safe() in app_exit() to remember
6017 changes which are not done by the prefernces dialog
6019 * app/diagram_tree_menu.c app/diagram_tree_menu_callbacks.c :
6020 removed every call (especially the conditional ones) to prefs_safe().
6021 Before prefs_safe() was called _many_ times during Dia startup
6023 2003-07-18 Hans Breuer <hans@breuer.org>
6025 * app/makefile.msc lib/makefile.msc lib/libdia.def :
6028 * lib/color.c : use gtk_widget_get_default_visual();
6029 as suggested in #114536
6031 * app/interface.c app/disp_callbacks.c :
6032 moved round_up () to the latter file where it is used
6034 * app/linewidth_area.c : #include "interface.h" for
6035 interface_get_toolbox_shell()
6037 2003-07-18 Hubert Figuiere <hfiguiere@teaser.fr>
6039 * plug-ins/pixbuf/.cvsignore
6040 * shapes/Cisco/.cvsignore:
6043 2003-07-17 Lars Clausen <lrclause@cs.uiuc.edu>
6045 * app/dia-props.c (diagram_properties_retrieve): Use
6046 diagram_get_name() to add the diagram name to the diagram
6050 * app/diagram.c (diagram_get_name): New function to get a
6051 reasonable diagram name.
6053 * lib/diagramdata.h: Added major_lines, dynamic and colour to grid
6054 info. Still need to be able to set dynamic grid. Also ought to
6055 follow Gnome style and have instant apply.
6057 * app/preferences.h:
6058 * app/preferences.c (prefs_data): Remove option to use stippled
6059 grid, add option for major line offset. Default to 5 minor lines
6061 Add option for dynamically sized grid.
6063 * app/display.c (ddisplay_render_pixmap): Call pagebreak_draw as well.
6065 * app/grid.c: Pagebreak drawing separated out. Grid drawing using
6066 stippled/solid to display minor/major grid lines. Line drawing in
6067 separate functions away from calculating line distance.
6069 * app/grid.h: Split page break drawing out of grid_draw.
6071 * app/layer_dialog.c (layer_dialog_show): Patch from Hubert
6072 Figuiere <hfiguiere@teaser.fr>: Layer dialog show go to front
6073 when menu item is selected.
6075 2003-07-15 Lars Clausen <lrclause@cs.uiuc.edu>
6077 * configure.in: Removed -Winline flag to make way for important
6080 * samples/UML-demo.dia: Adjusted for 0.91 font size, saved as
6081 non-compressed. Should fix bug #117381, also look prettier.
6084 * dia.desktop.in: Patch from Mark McLoughlin <mark@skynet.ie>:
6085 Set up desktop info more properly.
6087 2003-07-13 Lars Clausen <lrclause@cs.uiuc.edu>
6104 Autorouting directions patch from Krzysztof Foltman
6107 * app/menus.c: Wrong GNOME paren fixed. Correct callbacks for
6108 GNOME parent menu items.
6110 * app/authors.h: Added Vadim to contributors list.
6112 2003-07-12 Lars Clausen <lrclause@cs.uiuc.edu>
6114 * app/commands.[ch]:
6115 * app/create_object.c:
6116 * app/disp_callbacks.[ch]:
6127 * objects/UML/large_package.c: Patch from Vadim Berezniker
6128 <vadim@berezniker.com>:
6129 Objects may "parent" other objects, i.e. contain them within
6130 themselves, restrain them and move them along. Some more stuff is
6131 needed, such as selection and individual unparenting. This adds
6132 parenting to UML - Large Package rather than Box.
6134 2003-07-11 Lars Clausen <lrclause@cs.uiuc.edu>
6136 * app/linewidth_area.c: Patch from Krzysztof Foltman
6137 <kfoltman@onet.pl>: Make linewidth dialog conform to HIG (well,
6138 conform more, at least:).
6140 * plug-ins/metapost/render_metapost.[ch] : Applied patch from
6141 Chris Sperandio <sperandi@eng.usf.edu>: Fixed linewidths and
6142 arcs. Implemented images (though there is some pixelization and
6143 banding in the output). Changed output file format to be a little
6146 * app/app_procs.c (app_exit): Added message for double exit, which
6147 shouldn't happen any more. Also preventing strange g_object_unref
6148 messages by having a printf after gtk_main_quit. This is really
6151 * app/interface.c (toolbox_delete): Avoid double app_exit call by
6152 removing handler for destroy when delete is called.
6154 2003-07-07 Lars Clausen <lrclause@cs.uiuc.edu>
6157 * app/display.c (ddisplay_scroll_to_object,
6158 ddisplay_scroll_center_point): New function for easy scrolling to
6161 2003-07-06 Lars Clausen <lrclause@cs.uiuc.edu>
6163 * plug-ins/xslt/Makefile.am: Patch from Hubert Figuiere: Add
6164 $(srcdir) on stylesheets.xml.
6166 * app/menus.c: Patch from Hubert Figuiere: Adds help menu to
6167 diagram menus (since they're at the top by default now). Also
6168 move the Properties... menu item from Dialogs to Objects. Dialogs
6169 menu should disappear at some point.
6171 * autogen.sh: Patch from Hubert Figuiere: Don't automatically call
6172 ./configure from ./autogen.sh, as configure may need to be run
6173 from a different directory. (Also more standard this way.)
6175 * app/app_procs.c (app_init):
6176 * app/Makefile.am (INCLUDES): Gnome standardization patch from
6179 2003-07-03 Lars Clausen <lrclause@cs.uiuc.edu>
6181 * objects/flowchart/parallelogram.c (pgram_update_data):
6182 Left/right alignment for parallelograms. Doesn't use all
6183 available space, but then pgrams also ignore their shear value.
6184 This thing needs a loving hand.
6186 2003-07-01 Hans Breuer <hans@breuer.org>
6188 * lib/properties.h : introduce PROP_FLAG_OPTIONAL
6189 * lib/proplist.c : don't complain if optional attr is missing
6190 * lib/orth_conn.h : make "orth_autoroute" optional to
6191 stop complaining with older files.
6193 2003-06-13 Guntupalli Karunakar <karunakar@freedomink.org>
6195 * configure.in: Added "ml" for Malayalam in ALL_LINGUAS.
6197 2003-06-05 Andrew Halper <ashalper@cox.net>
6199 * app/diagram_tree.c : add scrolling of drawing area
6200 to desired object on "Locate". Patch modified to use new ddisplay
6201 function ddisplay_scroll_to_object().
6203 2003-06-11 Lars Clausen <lars@raeder.dk>
6205 * lib/diagramdata.h: Added major_lines, dynamic and colour to grid
6206 info. Before next version, the grid dialog (view dialog, really)
6207 must be redone to allow a) instant apply, b) apply to all
6208 diagrams, and c) setting colour, dynamic, major lines.
6210 * app/preferences.h:
6211 * app/preferences.c (prefs_data): Remove option to use stippled
6212 grid, add option for major line offset. Default to 5 minor lines
6214 Add option for dynamically sized grid.
6216 * app/display.c (ddisplay_render_pixmap): Call pagebreak_draw as well.
6218 * app/grid.c: Pagebreak drawing separated out. Grid drawing using
6219 stippled/solid to display minor/major grid lines. Line drawing in
6220 separate function away from calculating line distance.
6222 * app/grid.h: Split page break drawing out of grid_draw.
6224 2003-05-15 Hans Breuer <hans@breuer.org>
6226 * plug-ins/python/diasvg.py : add xlink definition,
6227 also avoid to put spaces into attribute values. At least
6228 Sodipodi doesn't like them in width/height attributes
6230 * plug-ins/python/diasvg_import.py : add simple scaling.
6231 Some (more) handling for <svg>, <desc>, <circle>
6233 * plug-ins/python/scascale.py : (new file) which does
6234 some experimental scaling via StdProp api
6236 * plug-ins/python/pydia-cpoint.c
6237 plug-ins/python/pydia-handle.c : return PyDiaPoint for
6238 obj.pos not simple tuples. PyDiaPoint has a tuple interface
6239 so this may even be api compatible ...
6241 2003-05-11 Hans Breuer <hans@breuer.org>
6243 * app/line_area.c : add window position persitence
6245 * lib/poly_conn.[hc] lib/polyshape.[hc] : allow to set
6246 'poly_points' via StdProp api
6247 * lib/neworth_conn.h : don't rely on OrthConn and
6248 NewOrtConn having the same struct offsets
6250 * lib/properties.h : introduce PROP_FLAG_WIDGET_ONLY
6251 to help separating 'useful' properies - in terms of
6254 * objects/custom/custom_object.c
6256 add the missing prop_desc_list_calculate_quarks to
6257 all the *_describe_props()
6259 * objects/standard/beziergon.c objects/standard/bezier.c :
6260 explicit initializtion of default_user_data
6261 * objects/standard/polygon.c objects/standard/polyline.c :
6262 Same here. Also use POLY<CONN|SHAPE>_COMMON_PROPERTIES
6264 * plug-ins/python/diamodule.c : implement dia.register_import
6266 * plug-ins/python/makefile.msc : need to link with Pango
6267 for pango_color_parse()
6269 * plug-ins/python/pydia-property.c : add a bunch of type
6270 conversions to PyDiaProperty_ApllyToObject()
6272 * plug-ins/python/diasvg_import.py : (new file) which currently
6273 is mainly a stress test for PyDia but for some files already
6274 produces better results than svg-import.c
6276 2003-05-06 Lars Clausen <lrclause@cs.uiuc.edu>
6278 * objects/UML/uml.c (uml_get_operation_string): Avoid ':' on
6279 type-less operations.
6281 003-05-03 Hasbullah Bin Pit <sebol@ikhlas.com>
6283 * configure.in(ALL_LINGUAS): Added "ms".
6285 2003-05-01 Lars Clausen <lrclause@cs.uiuc.edu>
6287 * plug-ins/xslt/xslt.c (xslt_ok):
6288 * plug-ins/shape/shape-export.c (new_shape_renderer):
6289 * plug-ins/svg/render_svg.c (new_svg_renderer):
6290 * plug-ins/hpgl/hpgl.c (export_data):
6291 * plug-ins/dxf/dxf-export.c (export_dxf):
6292 * plug-ins/metapost/render_metapost.c (export_metapost):
6293 * plug-ins/pstricks/render_pstricks.c (export_pstricks):
6294 * plug-ins/xfig/xfig-export.c (export_fig):
6295 * plug-ins/wpg/wpg.c (export_data):
6296 * plug-ins/cgm/cgm.c (export_cgm):
6297 * app/render_eps.c (export_eps):
6298 * app/export_png.c (export_png_ok):
6299 * app/load_save.c (diagram_data_save): Adding and standardizing
6300 output file error messages to include fopen error message.
6302 2003-05-01 Steffen Macke <sdteffen@web.de>
6304 * app/persistence.c: do not use unistd.h for MSVC build
6306 2003-04-30 Lars Clausen <lrclause@cs.uiuc.edu>
6308 * sheets/Assorted.sheet.in
6309 * sheets/Circuit.sheet.in
6310 * sheets/Contact.sheet.in
6311 * sheets/EML.sheet.in
6312 * sheets/ER.sheet.in
6313 * sheets/Electric.sheet.in
6314 * sheets/FS.sheet.in
6315 * sheets/Flowchart.sheet.in
6316 * sheets/GRAFCET.sheet.in
6317 * sheets/Logic.sheet.in
6318 * sheets/MSE.sheet.in
6319 * sheets/Misc.sheet.in
6320 * sheets/Pneumatic.sheet.in
6321 * sheets/SADT.sheet.in
6322 * sheets/SDL.sheet.in
6323 * sheets/UML.sheet.in
6324 * sheets/chronogram.sheet.in
6325 * sheets/ciscohub.sheet.in
6326 * sheets/ciscomisc.sheet.in
6327 * sheets/cisconetwork.sheet.in
6328 * sheets/ciscorouter.sheet.in
6329 * sheets/civil.sheet.in
6330 * sheets/network.sheet.in
6331 * sheets/sybase.sheet.in:
6332 Patch from Jan-Willem Harmanny <jwharmanny@zeelandnet.nl>
6333 standardizes shape descriptions to use no articles, no 'create
6336 * app/interface.c (tool_data): Standard objects follow same
6339 2003-04-29 Lars Clausen <lrclause@cs.uiuc.edu>
6341 * app/color_area.c (color_area_edit): More informative title on
6342 color selection dialog.
6344 * app/disp_callbacks.c (ddisplay_drop_object): Update menu
6345 sensitivity when dropping object in. Also reset tool to pointer.
6347 * objects/flowchart/diamond.c (diamond_update_data):
6348 * objects/flowchart/parallelogram.c (pgram_update_data): Added
6349 left and right alignment options.
6351 2003-04-28 Lars Clausen <lrclause@cs.uiuc.edu>
6353 * objects/flowchart/box.c: Added left and right alignment options.
6355 2003-04-26 Lars Clausen <lrclause@cs.uiuc.edu>
6357 * app/persistence.c (persistence_load): Test existence of
6358 persistence file before trying to open it.
6360 2003-04-25 Lars Clausen <lrclause@cs.uiuc.edu>
6362 * app/properties.c: Escape now closes properties dialogs.
6364 2003-04-25 Hans Breuer <hans@breuer.org>
6366 * app/config.h.win32 : bump version to 0.91+cvs
6368 * app/makefile.msc lib/makefile.msc lib/libdia.def : updated
6370 * lib/dia_dirs.c : G_OS_WIN32: #define mkdir(s,a) _mkdir(s)
6372 * app/commands.c : don't leak "netscape" if getenv("BROWSER")
6375 * app/presistence.c : need to #include "dia_xml_libxml.h"
6378 * app/layer_dialog.c : make delayed creation work by protecting
6379 all non static layer_dialog_*() with :
6380 if (layer_dialog == NULL || layer_dialog->dialog == NULL)
6381 create_layer_dialog();
6382 * app/app_procs.c : removed /* create_layer_dialog(); */
6384 * objects/uml/association.c : give it a minimal StdProp
6385 implementation to fix bug #108896
6386 * lib/object_defaults.c : don't try to copy props if there
6387 is no obj->ops->describe_props
6389 2003-04-24 Lars Clausen <lrclause@cs.uiuc.edu>
6391 * objects/standard/image.c (image_create):
6392 * objects/standard/ellipse.c (ellipse_create):
6393 * objects/standard/box.c (box_create):
6394 * objects/flowchart/ellipse.c (ellipse_create):
6395 * objects/flowchart/diamond.c (diamond_create):
6396 * objects/flowchart/box.c (box_create):
6397 * objects/custom/custom_object.c (custom_create):
6398 * objects/ER/relationship.c (relationship_create):
6399 * objects/ER/entity.c (entity_create):
6400 * objects/ER/attribute.c (attribute_create): Initialize
6401 elem->height to DEFAULT_HEIGHT instead of DEFAULT_WIDTH.
6403 * lib/dia_svg.c (dia_svg_parse_style): Added case to set center
6407 * plug-ins/Makefile.am:
6408 * plug-ins/xslt/Makefile.am:
6409 * plug-ins/xslt/xslt.c (dia_plugin_init):
6410 Patch from Götz Waschk <waschk@informatik.uni-rostock.de> uses
6411 automake-style if to only include xslt dir when needed. Works
6412 with automake 1.4 and up, at least.
6414 2003-04-22 Lars Clausen <lrclause@cs.uiuc.edu>
6416 * lib/diasvgrenderer.c (draw_string):
6417 * lib/dia_svg.c (dia_svg_parse_style): Use
6418 text-anchor:(start|middle|end).
6420 * lib/diasvgrenderer.c (draw_polygon, fill_polygon): Use svg
6421 polygon rather than polyline & avoid missing line pieces.
6422 (get_draw_style): Set fill-opacity to 0 on draw_style to avoid
6423 black-filled things.
6425 2003-04-21 Lars Clausen <lrclause@cs.uiuc.edu>
6427 * app/persistence.c (persistence_load): Check that persistence
6428 file exists before trying to read it.
6429 (persistence_update_window): Removed printf.
6431 * objects/GRAFCET/step.c: Don't copy defaults for name and id.
6433 * lib/autoroute.c: Take badness into the layouters again, as some
6434 of them know they can do things that are pretty but would be
6435 counted as ugly by the default calculation.
6437 * objects/UML/large_package.c: Shrink package name box when no
6438 stereotype is present.
6440 * lib/orth_conn.h (ORTHCONN_COMMON_MENUS):
6441 * lib/orth_conn.c: Added object menu item for autorouting.
6443 * objects/FS/flow-ortho.c (orthflow_get_object_menu):
6444 Autorouting, plus set initial dragging handle to be the end, not
6446 (orthflow_draw): Flipped arrow place to be at the end, as
6447 originally intended (got lost in arrow update).
6449 * objects/standard/zigzagline.c (zigzagline_get_object_menu):
6450 * objects/UML/dependency.c (dependency_get_object_menu):
6451 * objects/UML/association.c (association_get_object_menu):
6452 * objects/UML/realizes.c (realizes_get_object_menu):
6453 * objects/SADT/arrow.c (sadtarrow_get_object_menu):
6454 * objects/GRAFCET/vector.c (arc_get_object_menu):
6455 * objects/ER/participation.c (participation_get_object_menu):
6456 * objects/EML/instantiation.c (instantiation_get_object_menu):
6457 * objects/UML/generalization.c (generalization_get_object_menu):
6458 * objects/EML/interaction-ortho.c (interaction_ortho_get_object_menu):
6459 Autorouting setup (currently disabled for SADT/arrow).
6461 2003-04-19 Lars Clausen <lrclause@cs.uiuc.edu>
6463 * lib/autoroute.c: Removed printfs.
6466 * lib/autoroute.[ch] (autoroute_layout_orthconn): Handle
6467 non-connected orthconns too.
6469 2003-04-18 Lars Clausen <lrclause@cs.uiuc.edu>
6472 * lib/orth_conn.c: Function to set autorouting on/off, use
6473 autorouting in move_handle (turns off when a middle handle is
6474 moved), added to standard orthconn props.
6476 * app/disp_callbacks.c (create_object_menu, popup_object_menu):
6477 Stopped signal emission for check menu items being set to on/off.
6479 * objects/standard/zigzagline.c: Added autorouting object menu item.
6481 * lib/autoroute.c: Added last cases of autoroute layout, fixed
6482 floating point comparison bug, cleaned up layouters, tweaked
6483 badness to allow kinks.
6485 2003-04-17 Lars Clausen <lrclause@cs.uiuc.edu>
6487 * lib/connectionpoint.h: Changed DIR_* macros to go around the
6490 * lib/orth_conn.[ch] (orthconn_set_points): New function to set all
6492 * objects/standard/zigzagline.c (zigzagline_move_handle): Removed
6493 old cruft, added call to autoroute (currently cannot be turned
6494 off). Need to check what undo thinks about this.
6495 * lib/autoroute.[ch]: Fairly working simple layout.
6497 * lib/Makefile.am (libdia_la_SOURCES): Added autoroute files.
6498 * lib/autoroute.[ch]: Start of proper autorouting functionality.
6500 2003-04-10 Lars Clausen <lrclause@cs.uiuc.edu>
6502 * lib/prop_widgets.c: Show labels on ListProp.
6504 2003-04-11 Steffen Macke <sdteffen@web.de>
6506 * doc/en/dia-manual.xml: removed reference of non-existing authors
6508 * doc/en/usage-objects-selecting: commented out misleading section
6511 2003-04-10 Lars Clausen <lrclause@cs.uiuc.edu>
6513 * app/app_procs.c (app_init): Layer window now opened at startup
6516 * lib/prop_widgets.c: Show labels on ListProp.
6518 2003-04-09 Steffen Macke <sdteffen@web.de>
6520 * doc/en/*.sgml: removed files
6521 * doc/en/*.xml: added files
6522 * doc/en/Makefile.am: switched to XML DocBook
6524 2003-04-09 Lars Clausen <lrclause@cs.uiuc.edu>
6526 * plug-ins/xslt/xslt.c (dia_plugin_init):
6527 * configure.in: Added --with-xslt-prefix to allow other XSLT
6528 placements than /usr/lib.
6530 2003-04-09 Steffen Macke <sdteffen@web.de>
6532 * lib/makefile.mingw: updated to include latest files, including
6534 * lib/geometry.h: don't define isinf and finite for mingw gcc build
6536 2003-04-08 Lars Clausen <lrclause@cs.uiuc.edu>
6538 * app/persistence.h:
6539 * app/persistence.c (persistence_register_window_create):
6540 * app/app_procs.c (app_init):
6541 Register window function that doesn't create the window unless it
6542 should be open. Other windows should move to this, so startup
6543 speed can be reduced.
6545 * app/persistence.h: Removed call prototype for update_window, now
6547 * app/persistence.c (persistence_register_window): A number of
6548 fixes. Doesn't forget position when window is closed. Now
6549 actually loads prefs.
6551 * app/layer_dialog.c (create_layer_dialog): Removed extraneous
6554 * app/preferences.c (prefs_data):
6555 * app/diagram_tree_window.h:
6556 * app/diagram_tree_window.c: Added persistence registering.
6557 Removed prefs items storing size and openness.
6559 * app/sheets_dialog.c (create_sheets_main_dialog): Added
6560 persistence registering.
6562 * app/Makefile.am (dia_core_files): Added persistence files.
6565 * lib/dia_dirs.c (dia_config_ensure_dir): New function to ensure
6566 that dirs are present.
6568 * app/app_procs.c (app_init): Loads persistent values on startup.
6569 (app_exit): Saves persistent values on exit.
6571 * app/layer_dialog.c (create_layer_dialog): Registers the layer
6572 window for persistence.
6574 * app/persistence.[ch]: New files handling various kinds of
6577 2003-04-04 Lars Clausen <lrclause@cs.uiuc.edu>
6579 * lib/arrows.c: Adjusted arrow head spacing, more systematic arrow
6580 head spacing calculations. Added half-circle arrow from Matthieu
6581 Sozeau <mattam@netcourrier.com>
6583 2003-04-03 Lars Clausen <lrclause@cs.uiuc.edu>
6585 * app/app_procs.c (app_init): Moved layer dialog init to allow
6586 tooltips to be initialized.
6588 * app/interface.c (create_display_shell): More tooltips.
6590 * app/linewidth_area.c (linewidth_area_create)
6591 (linewidth_area_events):
6592 * app/color_area.c (color_area_events, color_area_create):
6593 Made tooltips work by embedding drawing_area in event_box.
6595 * app/interface.c (create_display_shell,
6596 (create_lineprops_area, create_color_area): Added a few tooltips.
6598 2003-04-01 Lars Clausen <lrclause@cs.uiuc.edu>
6600 * app/pixmaps/off-grid.xpm:
6601 * app/pixmaps/on-grid.xpm:
6602 * app/Makefile.am (EXTRA_DIST): Added snap to grid icons.
6605 * app/commands.c (view_snap_to_grid_callback):
6606 * app/display.c (ddisplay_set_snap_to_grid)
6607 (update_snap_grid_status):
6608 * app/interface.c (create_display_shell, grid_toggle_snap):
6609 Added snap-to-grid status button.
6611 2003-03-31 Lars Clausen <lrclause@cs.uiuc.edu>
6613 * app/app_procs.c (app_init): Create a new diagram if a file on
6614 the command line isn't found.
6616 2003-03-17 Lars Clausen <lrclause@cs.uiuc.edu>
6618 * lib/dialibartrenderer.c (draw_string): Correct color handling
6621 2003-03-14 Lars Clausen <lrclause@cs.uiuc.edu>
6624 * doc/en/dia-manual.sgml:
6625 * doc/pl/dia-manual.sgml:
6627 * dia.spec (Release):
6628 Version 0.91 is here!
6630 2003-02-10 Steffen Macke <sdteffen@web.de>
6632 * plug-ins/wmf/wmf.cpp: patch from Ken Tsukahara
6633 <ken.tsukahara@tmt-d.co.jp>, fixes windows printing and WMF export of
6634 non-ANSI characters, closes #107980
6636 2003-03-04 Lars Clausen <lrclause@cs.uiuc.edu>
6640 * dia.spec (Release):
6641 * doc/en/dia-manual.sgml: Upping to pre6.
6643 * configure.in: Missing comma broke HAVE_IEEEFP_H test.
6645 * app/lineprops_area.c (dia_arrow_chooser_new): Fixing bug
6646 #107511: Make arrow selector for correct arrow type.
6648 2003-03-03 Lars Clausen <lrclause@cs.uiuc.edu>
6650 * shapes/Circuit/Makefile.am (SHAPES): Added hjumper.png to
6653 2003-03-02 Lars Clausen <lrclause@cs.uiuc.edu>
6655 * doc/en/dia-manual.sgml:
6658 * dia.spec (Release): Upping to pre5.
6660 * configure.in: Add freetype-config derived libs to the
6661 AC_CHECK_LIB statement for freetype.
6663 2003-02-28 Hans Breuer <hans@breuer.org>
6665 [fix for bug #107203]
6667 * lib/diarenderer.c : add warning 'implementation'
6668 for fill_rect to avoid crashing with a renderer
6669 which does not implement this required function.
6671 * plug-ins/dxf/dxf-export.c : provide - still empty -
6672 'implementations' for fill_rect and fill_polygon
6673 to suppress the above warnings. Now it works like
6676 2003-02-28 Steffen Macke <sdteffen@web.de>
6678 * samples/all_objects.dia: New sheet containing all dia shapes
6679 and objects; one layer per sheet
6681 2003-02-28 Lars Clausen <lrclause@cs.uiuc.edu>
6683 * lib/prop_text.c (multistringprop_get_widget,
6684 multistringprop_reset_widget, multistringprop_set_from_widget):
6685 Now uses GtkTextView instead of deprecated stuff, and also works:)
6687 * configure.in: Slightly more informative error message for isinf.
6689 * dia.spec (Requires): Require libxml2 rather than libxml.
6691 2003-02-28 Steffen Macke <sdteffen@web.de>
6693 * shapes/Circuit/hjumper.png:
6694 * shapes/Circuit/hjumper.shape: added missing icon for horizontal
6697 2003-02-26 Lars Clausen <lrclause@cs.uiuc.edu>
6699 * doc/en/dia-manual.sgml:
6701 * dia.spec (Release):
6702 * NEWS: New prerelease 0.91pre4, two important fixes.
6704 2003-02-25 Lars Clausen <lrclause@cs.uiuc.edu>
6706 * plug-ins/xslt/Makefile.am (EXTRA_DIST): Also dist
6709 * app/commands.c (help_manual_callback): More correct URL for help
6710 page (include file://, was broken on Dillo without it).
6712 2003-02-24 Lars Clausen <lrclause@cs.uiuc.edu>
6714 * app/disp_callbacks.c: Set modifed when text is changed.
6716 * app/modify_tool.c (modify_button_release): Allow undo for moving
6719 2003-02-16 Lars Clausen <lrclause@cs.uiuc.edu>
6722 * doc/en/dia-manual.sgml:
6724 * configure.in: New prerelease with important bugfix.
6725 * shapes/network/digitizing_board.png:
6726 * shapes/network/plotter.png: Re-adding with -kb.
6728 2003-02-17 Abel Cheung <maddog@linux.org.hk>
6730 * app/app_procs.c (app_init): Add comment for translators.
6732 2003-02-16 Lars Clausen <lrclause@cs.uiuc.edu>
6734 * lib/filter.c (filter_register_import, filter_register_export):
6735 Don't accept filters with NULL description.
6737 * lib/plug-ins.c (dia_plugin_load): Fail if there's no description
6738 (as we assume the description is available in other places).
6740 2003-02-15 Lars Clausen <lrclause@cs.uiuc.edu>
6742 * app/disp_callbacks.c (ddisplay_vsb_update, ddisplay_hsb_update):
6743 * app/display.c (ddisplay_resize_canvas): Use
6744 ddisplay_add_update_all().
6745 (ddisplay_add_update_all): Free display and update lists when
6746 doing update_all, as they'll be regenerated immediately to cover
6747 all visible area. Fixes bug #106165, crash when resizing. This
6748 appears to be the original AA crash bug, believed long extinct.
6750 2003-02-13 Lars Clausen <lrclause@cs.uiuc.edu>
6752 * app/commands.c (help_manual_callback): Use file: protocol for
6755 * plug-ins/xslt/.cvsignore: Ignore .o files, please.
6757 * plug-ins/xslt/stylesheets: Removed old-style config file.
6759 * plug-ins/xslt/stylesheets.xml.in: New XML-based config file.
6761 * plug-ins/xslt/Makefile.am:
6762 * plug-ins/xslt/xslt.c: Applied patch from Matthieu, improved path
6763 handling (no more DIA_PLUGIN_PATH).
6765 2003-02-11 Lars Clausen <lrclause@cs.uiuc.edu>
6767 * plug-ins/svg/render_svg.c:
6768 * lib/diasvgrenderer.c: Fixed numeric localized output issues.
6770 2003-02-10 Lars Clausen <lrclause@cs.uiuc.edu>
6772 * objects/SADT/arrow.c (sadtarrow_draw): Clamp cosa, cosb to
6773 [-1.0, 1.0]. Shouldn't be necessary, but in some cases the
6774 side of the triangle is longer than the hypotenuse. Rounding
6777 2003-02-09 Lars Clausen <lrclause@cs.uiuc.edu>
6781 * doc/en/dia-manual.sgml: Update for pre2.
6783 * app/menus.c (display_menu_items): Fixed wrongly place separators.
6785 * objects/flowchart/box.c (box_update_data): Applied patch from
6786 Eivind Tagseth <eivind-gnome@multinet.no> to allow resize (with
6789 * app/paginate_psprint.c (print_page): Set paper name, so it
6790 convinces ps printers to use to right size.
6792 2003-02-07 Lars Clausen <lrclause@cs.uiuc.edu>
6794 * app/properties.c (properties_show): Hide the dialog if the
6795 object is NULL (get rid of 'no properties' randomly popping up).
6797 2003-02-06 Lars Clausen <lrclause@cs.uiuc.edu>
6799 * plug-ins/pixbuf/pixbuf.c (export_data): Adjust width and height
6800 for diagrams not starting at origo.
6802 2003-02-05 Lars Clausen <lrclause@cs.uiuc.edu>
6804 * dia.spec (BuildRequires): Use libxml2-devel.
6806 * plug-ins/pixbuf/Makefile.am: Added to CVS.
6808 * RELEASE-PROCESS: Note on RPM version numbers.
6810 * app/interface.c (create_display_shell): Don't set as toolbar
6811 under Unix, either. Especially not the diagram shell. It removes
6812 it from the taskbar and makes it unresizable, always-on-top with
6813 OpenBox. TOOLBAR != TOOLBOX. Setting toolbox to the only
6814 appropriate thing, UTILITY, is not good either, you lose resizing
6815 and minimizing/maximizing under OpenBox.
6817 * app/menus.c (display_menu_items): Set delete item to use Delete.
6819 2003-02-04 Lars Clausen <lrclause@cs.uiuc.edu>
6821 * dia.spec (BuildRequires, Requires): Updated for Gtk2
6824 * app/disp_callbacks.c (ddisplay_canvas_events): Only add a
6825 display flush when getting focus in, or we may get an update after
6826 the diagram has been destroyed in some cases. Fixes bug #105221.
6828 * plug-ins/xfig/xfig-import.c: Notes on the splines used by XFig.
6830 * lib/diarenderer.c: Notes on the basis matrix for our beziers.
6832 * app/app_procs.c (app_init): Fixed missing popt context for Gnome
6833 - gnome-compiled Dia will now read files specified on the command line.
6835 2003-02-03 Lars Clausen <lrclause@cs.uiuc.edu>
6837 * INSTALL (REQUIREMENTS): Updated requirements section.
6839 * configure.in: Better finite() check from MÃ¥rten Svantesson
6840 <f95-msv@nada.kth.se>. Doesn't seem to generate strange dangly
6843 2003-02-03 Lars Clausen <lrclause@cs.uiuc.edu>
6845 * plug-ins/xfig/xfig-import.c: Notes on spline conversions.
6847 * app/app_procs.c (debug_break): Added some code to avoid
6848 over-eager optimizations removing the call. Surely there's a
6849 nicer way, but I'm not sure how.
6851 * app/diapsft2renderer.c (draw_bezier_outline): Removed paps relic
6852 that set text to black.
6854 2003-02-02 Lars Clausen <lrclause@cs.uiuc.edu>
6856 * NEWS: Mention of Twiki as doc source for Python.
6858 * plug-ins/pixbuf/pixbuf.c: Export with pixbuf if
6859 libart/libpng is not available. Later when we have a way of
6860 letting the user pick options in the file select dialog we shall
6861 allow the choice when applicable.
6863 2003-02-02 Steffen Macke <sdteffen@web.de>
6865 * doc/en/usage-loadsave.sgml:
6866 * doc/en/usage-objects.sgml: patch from
6867 James K. Lowden <jklowden@schemamania.org> to fix
6870 2003-02-01 Lars Clausen <lrclause@cs.uiuc.edu>
6872 * plug-ins/Makefile.am (SUBDIRS):
6873 * plug-ins/pixbuf/pixbuf.c:
6874 * plug-ins/pixbuf/Makefile.am:
6876 Added pixbuf plugin to Makefile.am, but for import only. PNG
6877 export handled by libart, which is better. JPG export is
6878 discouraged. BMP is not much used on Unix. Next release will
6879 integrate libart to allow all outputs.
6881 2003-02-01 Hans Breuer <hans@breuer.org>
6883 * app/preferences.c :
6885 the last two dialogs with 'old' button order finally
6886 are converted to gtk2, no GnomeDialog in all of Dia
6889 2003-02-01 Hans Breuer <hans@breuer.org>
6891 * app/filedlg.c : don't try to use a button as
6892 'overwrite-file-dialog'-parent, use the FileSelDialog
6895 * plug-ins/pixbuf/pixbuf.c : make it work with
6896 system-visual-depth < 24. Remove 'bmp' from output
6897 format extensions, it just was wishful thinking.
6899 * plug-ins/python/Makefile.am : added the four new python
6900 plug-ins mentioned below to pyplugin_DATA and EXTRA_DIST
6902 2003-02-01 Hans Breuer <hans@breuer.org>
6904 * NEWS : updated content beside dependencies
6906 2003-02-01 Hans Breuer <hans@breuer.org>
6908 * lib/arrow.h : arrow_types needs to be declared as DIAVAR
6909 to make it useable across DLL boundaries
6910 * app/lineprops_area.c : same code to access arrow_types
6913 * objects/UML/class.c : the non empty string is e.g.
6914 comment != NULL && comment[0] != '\0'
6915 * objects/UML/uml.c : same here, don't bother with
6916 empty operation stereotypes
6918 2003-02-01 Steffen Macke <sdteffen@web.de>
6920 * app/lineprops_area.c: latest changes do not work on
6921 windows, using old code without tooltips
6922 * makefile.msc: fixed copying of wmf.dll
6923 * plug-ins/makefile.msc:
6925 * lib/makefile.msc: now linking libintl
6926 * config.h.win32: enabling native language support
6928 2003-01-31 Lars Clausen <lrclause@cs.uiuc.edu>
6930 * plug-ins/xslt/Makefile.am (libxslt_filter_la_LDFLAGS): Removed
6931 -ldl and -lglib. May or may not work on windows...awaiting verdict.
6933 2003-01-31 Daniel Yacob <locales@geez.org>
6935 * configure.in: Added am (Amharic) to ALL_LINGUAS.
6937 2003-01-31 Steffen Macke <sdteffen@web.de>
6939 * objects/UML/class.c (umlclass_calculate_data): fixed crash
6940 when comments were visible, no class comment available and
6943 2003-01-31 Lars Clausen <lrclause@cs.uiuc.edu>
6945 * RELEASE-PROCESS: Updated to fit new install-module syntax.
6946 * Prerelease 0.91-pre1 released on a suspecting public. Tagging
6949 2003-01-30 Lars Clausen <lrclause@cs.uiuc.edu>
6955 Prerelease version changes, version 0.91-pre1.
6957 * app/sheets_dialog_callbacks.h:
6958 * app/sheets_dialog_callbacks.c:
6959 * app/sheets_dialog.c (create_sheets_main_dialog):
6960 * app/sheets.c (sheets_dialog_create): More destroy stuff. Trying
6961 to handle destruction of main dialog cleanly, but it's a mess.
6963 * configure.in: Downgraded ieeefp test to make it not produce
6966 * lib/widgets.c (dia_arrow_selector_set_arrow):
6967 (dia_line_style_selector_set_linestyle): Select menu dot
6970 * lib/arrows.c (calculate_arrow_point): Fix of wrong arrow
6971 adjustment for diamondheads.
6973 * lib/plug-ins.c (dia_plugin_load): Fixed typo.
6975 * app/properties.c (create_dialog): Destroy properties dialog and
6978 * app/sheets_dialog_callbacks.c
6979 (on_sheets_dialog_button_edit_clicked): Only create a new dialog
6980 if the old one is destroyed.
6982 2003-01-29 Lars Clausen <lrclause@cs.uiuc.edu>
6984 * app/export_png.c (export_png_ok): Added info on resolution.
6985 Should (next release) improve export dialog to allow setting
6986 resolution instead of pixels.
6988 * app/lineprops_area.c (dia_arrow_chooser_new): Use menudesc list
6989 to generate arrowheads as well as tooltips.
6991 * lib/arrows.c: Added hollow diamond to menudesc list.
6994 * lib/widgets.[ch]: Moved arrow name list into arrows.[ch] to
6995 unify with rendered menu.
6997 * lib/diarenderer.c (draw_line_with_arrows)
6998 (draw_polyline_with_arrows, draw_arc_with_arrows)
6999 (draw_bezier_with_arrows): Fixed linestyle change bug (#104488)
7000 without changing renderer API. Thanks to David Scherba for
7001 providing inspiration.
7003 2003-01-28 Lars Clausen <lrclause@cs.uiuc.edu>
7005 * app/interface.c (create_display_shell):
7006 * app/display.h: Patching from Hubert Figuiere
7007 <hfiguiere@teaser.fr>: Better types for menu bar widgets, and
7010 2003-01-26 Lars Clausen <lrclause@cs.uiuc.edu>
7012 * app/defaults.c (defaults_show): Fixed defaults closing bug.
7013 Thanks to Hans for pointing it out.
7015 2003-01-25 Hans Breuer <hans@breuer.org>
7017 * app/commands.c : don't warn about crashing libart renderer
7018 on win32. It simply doesn't render text anymore :-(
7020 * app/filedlg.c : use GtkMessageDialog for 'file overwrite'
7022 * objects/UML/class.c : don't access umlclass->properties_dialog
7023 after calling gtk_widget_destroy(umlclass->properties_dialog->dialog)
7024 which sets the former to NULL by destroy_properties_dialog() callback.
7026 * plug-ins/wmf/wmf.cpp : use dia_image_rowstride()
7028 * plug-ins/python/pydia-font.c : fix PyDiaFont_GetAttr()
7030 * plug-ins/python/pydia-image.c : add image.uri member
7031 not only useful for SVG rendering
7033 * plug-ins/python/diasvg.py : (new file) a more advanced
7034 example. A full blown SVG Renderer, currently only
7035 registered for .svgz
7037 * plug-ins/python/export-object.py : write text props
7039 * plug-ins/python/debug_objects.py : write prop.type and
7042 2003-01-25 Lars Clausen <lrclause@cs.uiuc.edu>
7044 * objects/UML/association.c (association_update_data): Better
7045 bounding box for assoc with arrows.
7047 * lib/properties.h: New flag for properties with multiple values
7050 * app/lineprops_area.c (dia_arrow_chooser_dialog_show): Correct
7051 arrow updating in dialog. Was broken due to changes from destroy
7054 * app/commands.c (view_aa_callback): AA warning only for Windows
7055 -- I trust the Unix side well enough.
7057 * app/render_libart.c (get_text_width):
7058 * lib/dialibartrenderer.h (struct _DiaLibartRenderer): Font and
7059 font height can be taken from parent instance.
7061 * lib/dialibartrenderer.c (dia_libart_renderer_class_init)
7062 (get_text_width): Proper cursor positioning for libart renderer.
7063 Ought to have a DiaInteractiveRenderer that these two can inherit
7064 from, that knows about transform.
7066 2003-01-25 Steffen Macke <sdteffen@web.de>
7068 * plug-ins/xslt/xslt.h: don't use dlfcn.h on win32. XSLT
7069 plug-in still not working on win32
7071 2003-01-24 Lars Clausen <lrclause@cs.uiuc.edu>
7073 * app/disp_callbacks.c (ddisplay_canvas_events): Moved
7074 gdk_window_get_pointer to avoid destroy crash. Simpler than I
7077 2003-01-23 Lars Clausen <lrclause@cs.uiuc.edu>
7079 * app/app_procs.c (app_init): Run gtk_init before popt so we don't
7080 bail out on gtk options.
7082 * lib/message.c (gtk_message_internal): Better handling of destroy
7085 2003-01-22 Lars Clausen <lrclause@cs.uiuc.edu>
7087 * app/color_area.c (color_area_edit):
7088 * lib/widgets.c (dia_file_selector_browse_pressed)
7089 (dia_color_selector_pressed):
7090 * app/plugin-manager.c (get_plugin_manager):
7091 * app/filedlg.c (file_open_callback, file_save_as_callback)
7092 (file_export_callback):
7093 * app/diagram_tree_window.c (diagram_tree_window_new): Correct
7094 handling of destroy event.
7096 2003-01-22 Alan Horkan <horkana@tcd.ie>
7098 * app/commands.c (file_new_callback): Changed Untitled to Diagram
7101 2003-01-21 Lars Clausen <lrclause@cs.uiuc.edu>
7103 * app/preferences.c (prefs_create_dialog):
7104 * app/linewidth_area.c (linewidth_create_dialog):
7105 * app/lineprops_area.c (dia_arrow_chooser_dialog_show):
7106 * app/layer_dialog.c (create_layer_dialog)
7107 (layer_dialog_edit_layer): Correct handling of destroy signal.
7109 * app/diapsft2renderer.c (set_font): Adjust silly random factor
7110 for change in font.c
7112 * lib/widgets.c: Avoid warning when font menu file doesn't exist.
7114 * lib/font.c (dia_font_build_layout): Let's all use the same weird
7117 * app/lineprops_area.c (dia_arrow_chooser_dialog_show):
7118 * app/layer_dialog.c (create_layer_dialog)
7119 (layer_dialog_edit_layer):
7120 * app/filedlg.c (file_open_callback, file_save_as_callback)
7121 (file_export_callback):
7122 * app/dia-props.c (create_diagram_properties_dialog):
7123 * app/defaults.c (defaults_dialog_destroyed):
7124 * app/color_area.c (color_area_edit): Dialog destroy event handling.
7126 2003-01-19 Lars Clausen <lrclause@cs.uiuc.edu>
7128 * app/defaults.c (defaults_dialog_destroyed): Reset cache when
7129 defaults dialog destroyed.
7131 2003-01-19 Steffen Macke <sdteffen@web.de>
7133 * objects/makefile.msc: added bondgraph
7134 * plug-ins/makefile.msc: added GDK_PIXBUF_LIBS in order
7135 to compile pixbuf.dll
7136 * makefile.msc: copying all objects and dlls now
7138 2003-01-19 Hans Breuer <hans@breuer.org>
7140 * app/diagram.[hc] : provide dia_open_diagrams(), make
7141 open_diagrams variable static
7142 * app/dia.def : export it (to be used by PyDia)
7143 * app/app_procs.c app/autosave.c app/diagram_tree_window.c
7144 app/display.c app/dynamic_refresh.c app/layer_dialog.c
7145 app/load_save.c : make use of dia_open_diagrams()
7147 * app/interface.c : don't set GDK_WINDOW_TYPE_HINT_TOOLBAR
7148 on win32. It removes the diagram window from the taskbar and
7149 shrinks it's window title to toolbar style (newest gtk2.2 cvs)
7151 * app/menus.c : add '...' to menu entries where a dialog
7153 * app/recent_files.c app/dia_embedd.c : reflect the above in
7154 menus_get_item_from_path() calls
7156 * lib/libdia.def : add dia_image_rgba_data
7158 * lib/properties.h lib/prop_text.[hc] : add new property
7160 * objects/UML/class.[hc] object/UML/class_dialog.c : use
7161 StringList for attributes_strings and operations_strings to
7162 make this calculated data accessible via the Property API
7164 * plug-ins/python/diamodule.c : use dia_open_diagrams() and
7165 provide dia.new() to create a new diagram, dia.registered_types()
7166 to get on Dia's type registry, dia.message() for simple dialogs
7168 * plug-ins/python/pydia-diagram.c : implement DiaDiagram.display()
7169 to create a new display from a diagram. Let diagram.extents and
7170 diagram.bg_color return the same types as in diagramdata.*
7172 * plug-ins/python/pydia-geometry.c : add a read-only
7173 'sequence interface' to DiaPoint and DiaRectangle
7175 * plug-ins/python/pydia-property.c : allow to get on StringList
7178 * plug-ins/python/pydia-render.c : fix typo to make it compile
7180 * plug-ins/python/python-startup.py : removed 'import pygtk'
7181 again. This file does not need any gtk UI, and some python
7182 plug-ins don't do either
7184 * plug-ins/python/gtkcons.py : ported to GTK2 interface, now
7185 it should actually work as intended again
7187 * plug-ins/python/group_props.py : (new file) a prototype for
7188 one the most requested features: Change properties of selected
7189 objects in one step. Requires pygtk.
7191 * plug-ins/python/select_by.py : (new file) select objects by
7192 common properties. Requires pygtk.
7194 [Start of 'PyDia Self Documentation Series']
7196 * plug-ins/python/pydiadoc.py : (new file) generates a new
7197 diagram which contains all objects of dir(dia)
7199 * plug-ins/python/otypes.py : (new file) generates a new diagram
7200 which contains all the currently registered object types sorted
7201 by their containing package
7203 2003-01-18 Lars Clausen <lrclause@cs.uiuc.edu>
7205 * configure.in: Added check for Pango >= 1.1.5, which appears to
7206 be enough to have text work.
7207 (INTLOBJS): Added dummy subst cause gettext doesn't always seem to
7208 do it. AC_SUBST should be idempotent, though.
7210 2003-01-17 Lars Clausen <lrclause@cs.uiuc.edu>
7212 * configure.in (HAVE_FREETYPE): Better test for freetype version
7214 Now actually sets HAVE_IEEEFP_H, needed for Solaris.
7216 * lib/font.c: Renamed global_size_one to global_zoom_factor to
7217 avoid confusion, and added comment. Set scale factor in
7218 dia_font_build_layout to 1.0 for Unix side. This fixes at least
7219 my weird scaling problems. Fonts are now of the expectable size,
7220 i.e. the space between lines at size 1.0 is 1.0. If we want a
7221 compatibility fix, we should scale fonts by about 1/0.75 from 0.90
7222 diagrams, though there will always be differences.
7224 2003-01-15 Lars Clausen <lrclause@cs.uiuc.edu>
7226 * plug-ins/python/python-startup.py:
7227 * plug-ins/python/gtkcons.py: Require gtk 2.0 for pygtk
7229 * plug-ins/python/python.c (dia_plugin_init): Added warning
7230 message for missing startup file.
7232 * lib/dialibartrenderer.c (draw_image): Alpha rendering! Yay!
7234 * lib/dia_image.c (dia_image_rgb_data):
7235 * app/diapsrenderer.c (draw_image): Fixed rowstride problems
7236 involving EPS. Can't do transparency in EPS yet.
7239 * lib/dia_image.c (dia_image_rgba_data): New function to get RGBA
7240 data as one chunk. Documentation for the RGB data getting funcs.
7241 (dia_image_rgb_data): Added comment.
7243 * lib/dialibartrenderer.c (draw_image): Correct rowstride handling
7246 2003-01-13 Steffen Macke <sdteffen@web.de>
7248 * lib/dia_image.c: dia_image_rgb_data() is working for
7249 non-alpha images now. Fixes #93762
7250 * Makefile.am: added makefile.msc to EXTRA_DIST
7252 2003-01-10 Steffen Macke <sdteffen@web.de>
7254 * app/paginate_psprint.c: Closing print dialog when file
7255 could not be written. Fixes #84746
7257 2003-01-04 Steffen Macke <sdteffen@web.de>
7259 * doc/custom-shapes: incomplete description of <svg:text>
7261 2003-01-03 Steffen Macke <sdteffen@web.de>
7263 * makefile.msc(new): new makefile to create file
7264 structure suitable for running dia win32 under
7265 $(TOP)/dia/build/win32
7267 2003-01-02 Steffen Macke <sdteffen@web.de>
7269 * lib/dia_svg.c: including stdlib.h
7270 * lib/makefile.msc: added gdk_pixbuf libs to linker
7271 * app/makefile.msc: added gdk_pixbuf libs, made libart
7272 libs compatible with gnuwin32 package
7274 2003-01-01 Hans Breuer <hans@breuer.org>
7276 * lib/font.c : more comment about global_size_one
7278 * app/menus.c : <control>[<shift>]A for plain gtk build too.
7280 * plug-ins/wmf/wmf.cpp : some type juggling to make
7283 2002-12-31 Steffen Macke <sdteffen@web.de>
7285 * app/makefile.msc: added hint on how to enable console output
7287 2002-12-17 Lars Clausen <lrclause@cs.uiuc.edu>
7289 * objects/standard/textobj.c (textobj_load): Get the handle type
7290 right, at least to be the same as when created.
7292 2002-12-12 Lars Clausen <lrclause@cs.uiuc.edu>
7294 * lib/dialibartrenderer.c (draw_string): Removed extra 'is'.
7296 2002-12-08 Hans Breuer <hans@breuer.org>
7298 * app/commands.c : fixed bug #85315 'give diagram properties,
7299 instead of no object selected error' almost a one-liner
7301 * app/splash.c : don't make having the logo pixmap
7302 mandatory. Fixes bug #96068.
7304 * app/defaults.c : avoid crashing from open-dialog,esc,open-dialog
7305 sequence by connecting to the "delete_event"
7306 * app/objects/uml/class_dialog.c : handle "destroy" for
7309 * lib/libdia.def : remove diaXmlNewChild again
7311 * app/paginate_gdiprint.cpp : reflect Dia's page setting
7312 portrait/landscape in the windoze print dialog
7314 * objects/makefile.msc : only UML needs to link against
7315 $(GTK2_LIBS) and only custom against $(LIBXML2_LIBS)
7317 2002-12-08 Lars Clausen <lrclause@cs.uiuc.edu>
7319 * objects/standard/ellipse.c (ellipse_distance_from):
7320 * lib/geometry.c (distance_ellipse_point): Ellipse now uses the
7321 correct distance function. Could be faster, but it's not really
7324 2002-12-07 Lars Clausen <lrclause@cs.uiuc.edu>
7326 * lib/font.c: Changed global_size_one to more correct 28.35.
7331 * lib/dia_xml.c: Removed pretty print hack, the libxml thing works
7334 2002-12-07 Hans Breuer <hans@breuer.org>
7336 * lib/widgets.c : g_file_get_contents() silently assumes
7337 a binary file. Reflect when creating the font_menu file
7338 to get rid of junk in font menus
7340 2002-12-06 Hans Breuer <hans@breuer.org>
7342 * app/diapsrenderer.[hc] app/diapsft2renderer.[hc] :
7343 removed 0xD 0xD 0xA line ends which get created by
7344 cvs if windoze line ends 0xD 0xA are checked in from
7345 *nix and checked out on win32.
7347 * app/preferences.c : changed toolbox_on_top default to
7348 false. It is currently not possible to change the behaviour
7349 at runtime, at least not on win32.
7351 * lib/dialibartrenderer.c : bug #94791 'rendering to
7352 bitmap without PangoFt2' got delayed to milestone future
7353 so wrap libart text rendering into PANGO_WIN32_FUTURE.
7354 It is not available without my Pango patch in bugzilla.
7356 * lib/font.c : added comment to global_size_one and adapt
7357 the arbitrary size scaling in dia_font_build_layout() for
7358 win32, too. This is needed to get an acceptable font size
7359 approximation for Dia 0.90 and earlier files.
7360 Also #include "message.h".
7362 * app/makfile.msc app/dia.def lib/makefile.msc lib/libdia.def :
7363 reflect movement of group.[hc]
7364 * lib/group.h : export group_type which gets used by app/*
7366 * lib/diagtkfontsel.c : added #undef GTK_DISABLE_DEPRECATED
7367 to get the GtkTypeInfo definition
7369 * plug-ins/makefile.msc : dxf and xfig don't need to link
7370 against app/ anymore now that group is moved to lib/
7372 * plug-ins/python/pydia-render.c : remove massive leaking
7373 of self, i.e. PyDiaRenderer
7375 * plug-ins/python/makefile.msc : remove linking against
7378 2002-12-06 Lars Clausen <lrclause@cs.uiuc.edu>
7380 * objects/standard/line.c: Removed properties options for gaps,
7381 until release is done.
7383 * configure.in: Check for freetype version.
7385 * lib/text.c (text_insert_char): Fixed small buffer overflow for
7388 * lib/dialibartrenderer.c (draw_string): Removed debugging printf.
7390 * app/diapsft2renderer.h:
7391 * app/diapsft2renderer.c:
7392 * app/diapsrenderer.h:
7393 * app/diapsrenderer.c: Split ps rendering into standard and freetype.
7395 * app/render_eps.c (export_eps, new_psprint_renderer): Using
7396 PS_FT2 renderer when available. Old render stuff killed. Yay!
7398 * lib/properties.h: Fixed bad frame end def.
7400 * app/Makefile.am (dia_core_files): Added diapsft2renderer.[ch].
7402 * lib/dia_xml.c (data_add_string): Avoid #-less strings.
7404 * objects/bondgraph/Makefile.am: Removed unneeded EXTRA_DIST.
7406 2002-12-05 Lars Clausen <lrclause@cs.uiuc.edu>
7408 * lib/font.c: Now checking for the proper dia-style standard fonts.
7411 * app/Makefile.am: Moving group.[ch]
7413 * plug-ins/dxf/dxf-import.c:
7414 * plug-ins/xfig/xfig-import.c:
7415 * plug-ins/xfig/xfig-export.c: Now can refer directly to group.h.
7419 * lib/object.c (object_list_move_delta, object_copy_list):
7420 * lib/object.h: Moved some object-related functions from
7421 object_ops to object to assist moving group.c.
7423 * lib/diatypes.h: Added Group typedef.
7426 * lib/group.c: Moved from app to lib to a) resolve plug-ins
7427 references, and b) make groups more "real" objects.
7429 * lib/Makefile.am (libdia_la_SOURCES): Added diatyps.h
7431 2002-12-03 Lars Clausen <lrclause@cs.uiuc.edu>
7433 * lib/font.c (dia_font_init): Added check that the three standard
7436 2002-12-02 Lars Clausen <lrclause@cs.uiuc.edu>
7439 * app/load_save.c: Linebreaks in dia files, no indentation.
7440 Should help text tools. xmlNewChild wrapped in diaXmlNewChild for
7443 * objects/standard/line.c: Small but important fixes to the line
7447 * lib/dia_xml.c (diaXmlNewChild):
7448 * app/load_save.c (diagram_data_write_doc, write_objects): Simple
7449 XML prettyprinting wrapper.
7451 2002-12-03 Steffen Macke <sdteffen@web.de>
7453 * shapes/Cisco/Makefile.am:
7454 * shapes/Cisco/*.shape: finished conversion of Cisco icons
7457 2002-12-02 Steffen Macke <sdteffen@web.de>
7459 * doc/en/Makefile.am:
7460 * doc/en/usage-objects.sgml:
7461 * doc/en/graphics/line_icon.png: (new) added line icon
7463 2002-12-02 Lars Clausen <lrclause@cs.uiuc.edu>
7465 * objects/standard/line.c: Binary search object edge line gap.
7467 2002-12-01 Lars Clausen <lrclause@cs.uiuc.edu>
7469 * configure.in: Added Cisco makefile, sorted Makefiles list.
7471 * shapes/Makefile.am (SUBDIRS): Added Cisco dir
7473 * configure.in: Now checks for availability of PangoFT2 and
7474 FreeType, raising an error if not found.
7476 * app/Makefile.am (dia_core_files): Adding diapsft2renderer from
7479 2002-12-01 Steffen Macke <sdteffen@web.de>
7481 * doc/en/usage-loadsave.sgml: updated information on import
7484 2002-11-28 Lars Clausen <lrclause@cs.uiuc.edu>
7486 * app/commands.c (edit_copy_callback): Freeing copy_list.
7488 2002-11-28 Steffen Macke <sdteffen@web.de>
7490 * app/render_libart.c: art_config.h was included twice
7492 2002-11-27 Lars Clausen <lrclause@cs.uiuc.edu>
7494 * sheets/.cvsignore: More ignorance.
7496 * lib/diagdkrenderer.c (draw_string): Removed silly #ifdef 1.
7498 * lib/prop_widgets.h: Two (currently unused) settings for frame
7501 * lib/prop_widgets.c (frame_beginprop_get_widget): Frames are now
7502 (by default) foldable.
7504 * lib/propinternals.h:
7505 * lib/propdialogs.c (prop_dialog_add_raw_with_flags): Way to add
7506 widgets in a more controlled manner.
7508 * objects/standard/line.c (line_update_data): Line gap things
7509 inserted. Can do xeyes now:)
7511 2002-11-26 Christian Neumair <chris@gnome-de.org>
7513 * .cvsignore: Changed.
7514 * objects/bondgraph/.cvsignore, plug-ins/metapost/.cvsignore,
7515 plug-ins/xslt/.cvsignore, shapes/Assorted/.cvsignore, shapes/Misc/.cvsignore:
7518 2002-11-26 Lars Clausen <lrclause@cs.uiuc.edu>
7520 * app/pixmaps/delete.xpm: Trashcan stolen from Gimp.
7522 * lib/widgets.c (dia_font_selector_get_font): Fixed wrong name
7523 passing to font hash.
7525 * app/filedlg.c (file_save_as_ok_callback): Check that filename is
7526 utf-8 or locale-convertible before adding to dialog text. This
7527 probably needs done in a number of places where we get text from
7528 the environment and send it to GTK to display.
7530 * lib/widgets.c: Fixed case problems for font menu entries.
7532 * objects/SADT/annotation.c: Don't run the event test (but leave
7533 it here for inspiration).
7536 * lib/widgets.h: Allowing setting preview text for fonts.
7538 2002-11-26 Lars Clausen <lrclause@cs.uiuc.edu>
7540 * objects/bondgraph/Makefile.am:
7541 * objects/bondgraph/bondgraph.c:
7543 * objects/Makefile.am: Added bond graph dir.
7545 2002-11-26 Lars Clausen <lrclause@cs.uiuc.edu>
7547 * lib/text.c (text_calc_boundingbox, text_draw): Better cursor size.
7549 2002-11-25 Lars Clausen <lrclause@cs.uiuc.edu>
7551 * lib/text.c (text_calc_boundingbox, text_draw): Better cursor
7554 * app/diapsrenderer.c: Freetype rendering is back in force.
7556 * app/disp_callbacks.c: Added missing updates for pre-text-change.
7558 2002-11-25 David Hoover <jazzdaq@yahoo.com>
7560 * app/render_libart.c: Added missing #include line for libart.
7563 * lib/geometry.c: Added point_convex function. This computes
7564 points inside a line segment (0 <= alpha <= 1) or outside the
7565 line segment (alpha < 0 | alpha > 1).
7567 * objects/standard/line.c: Line now has additional code/attributes
7568 which permit the line to extend past the line anchors (gap < 0) or
7569 leave a gap without reaching the anchor (gap > 0). If no gap is
7570 specified, the default gap of 0 will result in identical line
7571 behavior as before. If the 'fractional' attributes are TRUE, the
7572 gap length is not fixed, but a percentage of the line length. I
7573 did not know how create the GTK widgets so the gap code currently
7574 cannot be used without adding XML attributes by hand.
7576 2002-11-25 Lars Clausen <lrclause@cs.uiuc.edu>
7578 * lib/diagdkrenderer.c (draw_string): Removed timing bits.
7580 * lib/Makefile.am (libdia_la_SOURCES): Added fontsel files to SOURCES.
7582 2002-11-24 Lars Clausen <lrclause@cs.uiuc.edu>
7584 * lib/font.c: Debugging functionality in separate functions.
7586 * lib/widgets.c: Using fontsel with context.
7588 * lib/diagtkfontsel.[ch]: Context-aware copy of the GTK fontsel.
7590 * objects/custom/custom_object.c: Orientation handling for shapes,
7591 patch thanks to Martin Hans <opfinder@gmx.net>.
7593 * objects/standard/zigzagline.c (zigzagline_move_handle): Starting
7594 work on even better orientation handling.
7596 * app/menus.c (menus_get_item_from_path): Fixed sily warnings from
7597 casting NULL pointers. Should be unnecessary in an upcoming GTK
7600 2002-11-18 Lars Clausen <lrclause@cs.uiuc.edu>
7604 * lib/widgets.c: Now uses correct context to get font families.
7606 * lib/diagdkrenderer.c (get_text_width, draw_string):
7607 * lib/dialibartrenderer.c (draw_string):
7609 * lib/font.c (dia_font_init): Removed old kludgy font name compare.
7610 (dia_font_build_layout): Unified the twiddle factors into a use of
7611 global_size_one. But I deeply distrust Pango for seeming to
7612 change size of fonts every time I turn my back.
7617 * app/menus.h: Updated some more methods to also be more specific
7621 * app/recent_files.c:
7622 Changed to return most specific type, to avoid run-time type errors.
7624 * app/menus.c (menus_get_item_from_path): Non-gnome version now
7625 gets menu_item rather than widget, which works better.
7627 2002-11-17 Cyrille Chépélov <cyrille@chepelov.org>
7629 * app/display.c: (new_display):
7630 * app/menus.c: (menus_get_item_from_path):
7631 Relying on the tearoff to locate the input methods menu wasn't a
7632 good idea: tearoffs seem to be an endangered species nowadays.
7633 Anyway, the IM menu seems to be working now.
7635 * app/interface.c: hinted the window manager that the toolbox window
7636 is a toolbox window. Not that my (fairly default configuration)
7637 sawfish cares, but other NETWM compliant WMs may.
7644 * app/layer_dialog.c:
7645 * app/linewidth_area.c:
7647 * app/sheets_dialog.c:
7650 The GTK doc says to avoir gtk_window_set_wmclass() and
7651 gtk_window_set_policy(), and use gtk_window_set_role() and
7652 gtk_window_set_resizable(), respectively.
7654 * app/preferences.c: (prefs_create_dialog):
7655 * app/preferences.h:
7656 * app/display.c: (display_set_active):
7657 Added a preference to have the toolbox hover over diagram windows.
7659 2002-11-12 Lars Clausen <lrclause@cs.uiuc.edu>
7661 * lib/diagdkrenderer.c (get_text_width, draw_string):
7662 Freetype-based string drawing now works. Not very fast, though.
7663 I wish I could use the graphics card for this:( I'm doing three
7664 bitmap loops where I should be doing one. The size is not correct
7665 either, despite having get_text_width give the right thing.
7667 2002-10-21 Lars Clausen <lrclause@cs.uiuc.edu>
7669 * app/connectionpoint_ops.c (diagram_update_connections_object):
7670 Allows more than one connectionpoint on an object to be moved at a
7673 2002-10-18 Stanislav Brabec <sbrabec@suse.cz>
7675 * configure.in: Added cs to ALL_LINGUAS.
7677 2002-10-17 Lars Clausen <lrclause@cs.uiuc.edu>
7679 * app/paginate_psprint.c: Removed unnecessary decl of autosave
7682 * app/display.c (ddisplay_set_renderer): Calls to begin/end render.
7684 * app/export_png.c (export_png_ok): Saving more variables from the
7687 2002-10-16 Lars Clausen <lrclause@cs.uiuc.edu>
7689 * lib/dialibartrenderer.c (begin_render):
7690 (end_render): Correct pushing and popping of font contexts.
7691 (draw_string): Double zooming eliminated, strange twiddle factor
7692 introduced (grumble). Close to working now, but there are still
7693 strange differences from font to font. In particular, some fonts
7694 really mess with the cursor and extents.
7696 * app/render_eps.c (export_eps):
7697 * app/diapsrenderer.c (dia_ps_renderer_finalize):
7698 Fixed file closing confusion, no longer dependent on PS/EPS.
7700 * app/diagram.c (diagram_place_down_selected)
7701 (diagram_place_up_selected): Now implemented.
7703 * lib/font.c (dia_font_init):
7705 Redesigned the font init/context pushing code. Start of fix for
7706 font name differences.
7708 2002-10-15 Kjartan Maraas <kmaraas@gnome.org>
7710 * app/sheets_dialog_callbacks.c: Fix a typo.
7712 2002-10-15 Hans Breuer <hans@breuer.org>
7714 * app/diapsrenderer.[hc] : (new files, old content :-)
7715 simple base class for post script rendering. Does neither
7716 use Pango/FT2 nor does it handle non latin1 characters.
7717 The fancy stuff which nowadays appears to be needed should
7718 probably be done in derived class(es)
7720 * app/makefile.msc app/Makefile.am : added new files
7722 * app/paginate_psrint.c : re-enabled and used as test
7723 for the simple ps renderer above.
7725 * app/render_eps.[hc] : ripped out common ps code and
7726 moved to DiaPsRenderer. The rest of the file is mostly
7727 disabled. And I don't understand enough of it to
7730 * app/diaepsrenderer.h : short lived, removed.
7732 2002-10-15 Lars Clausen <lrclause@cs.uiuc.edu>
7734 * lib/plug-ins.c (dia_register_plugin): Don't try to load libdia
7735 as a plugin (thanks to Torben Nielsen).
7737 2002-10-14 Lars Clausen <lrclause@cs.uiuc.edu>
7739 * app/diaepsrenderer.h:
7741 * app/paginate_psprint.c:
7742 #ifdef'd out enough ps stuff to allow compile. Now we just need
7745 2002-10-12 Hans Breuer <hans@breuer.org>
7747 [last plug-in ported]
7749 * plug-ins/xfig/xfig-export.c : ported to new renderer api
7751 * plug-ins/xfig/xfig-import.c(fig_create_object) : need to
7752 scale color values to [0..1.0] to properly reconstruct
7755 * plug-ins/xfig/xfig-common.c : some cleaning
7757 2002-10-12 Hans Breuer <hans@breuer.org>
7759 [decrease inter-plug-in-dependencies]
7761 * objects/custom/shape_info.[hc] : move parse_style()
7762 to lib/dia_svg.[hc] as dia_svg_parse_style(); Namespace
7763 the related structs and constants.
7764 * objects/custom/custom_object.c : reflect namespace
7767 * lib/dia_svg.[hc] : new files
7768 * lib/makefile.msc lib/Makefile.am : add new files
7769 * lib/libdia.def : updated externals
7771 * plug-ins/svg/svg-import.c : use dia_svg_parse_style()
7773 * plug-ins/svg/svg.c : enable svg import for win32 (and
7774 probably for other non ELF builds)
7776 * plug-ins/makefile.msc : enable svg import
7778 2002-10-11 Hans Breuer <hans@breuer.org>
7780 * plug-ins/metapost/render_metapost.[hc] : ported
7782 * plug-ins/pstricks/render_pstricks.[hc] : dito
7784 2002-10-11 Hans Breuer <hans@breuer.org>
7786 * plug-ins/cgm/cgm.c : ported, appears to work as before,
7787 but graphic apps available to me can't import the generated
7788 files (the could not with Dia-0.90 cgm as well) ...
7790 * plug-ins/dxf/dxf-export.c : Ported to new renderer api.
7791 Removed all those function which did emulate 'complex'
7792 drawing ops with basic ones (e.g. rect by line) cause this
7793 stuff is already provided by the base class
7794 * plug-ins/dxf/dxf-import.c : removed render.h include
7796 * plug-ins/python/pydia-font.[hc]
7797 plug-ins/python/pydia-text.c : finally ported to new font api
7799 * plug-ins/python/pydia-layer.c : add extra parameter
7800 to layer_find_closest_connectionpoint()
7802 * plug-ins/python/pydia-render.c : ported to DiaRenderer api
7804 * plug-ins/python/python.c : added missing copyright notice
7806 * plug-ins/hpg/hpgl.c plug-ins/wpg/wpg.c plug-ins/wmf/wmf.cpp :
7807 actually use the renderers set_font implementation
7809 * plug-ins/renderer.inc : unused now, removed
7810 * plug-ins/Makefile.am : reflect it
7812 2002-10-08 Hans Breuer <hans@breuer.org>
7814 * app/render_gdk.c : don't add the InteractiveRenderer
7815 interface multiple times (it's added to the type, not
7817 * app/render_libart.c : dito. It's currently added
7818 unconditional cause eport_png uses it, but claims
7819 to be non-interactive. Probably set_size should be moved
7820 to the DiaRenderer interface.
7822 * lib/dialibartrenderer.c : add implementations for
7823 get_<width|height>_pixels. Libart rendering works again.
7824 DiaLibartRenderer::draw_image : use dia_image_rowstride()
7827 * lib/diatransform.c(dia_transform_coords_double) :
7828 don't ROUND() the returned values
7830 * plug-ins/pixbuf/pixbuf.c : added import function. It
7831 simply creates a wrapping "Standard - Image" object.
7833 * plug-ins/shape/shape-export.c : use the more direct
7834 method to call base class methods
7836 2002-10-07 Lars Clausen <lrclause@cs.uiuc.edu>
7838 * lib/font.c (dia_font_init): Changed dia_font_init to return old
7839 pango context, to allow stacked contexts (for printing while
7848 * lib/connectionpoint.h
7851 * lib/diagdkrenderer.h
7853 * lib/dialibartrenderer.h
7856 * lib/diasvgrenderer.h
7857 * lib/diatransform.h
7864 * lib/neworth_conn.h
7879 Moved all externally visible struct typedefs into diatypes.h, as
7880 per Hans' suggestions.
7882 2002-10-07 Steffen Macke <sdteffen@web.de>
7884 * lib/Makefile.am: removed a '\' causing problems
7886 2002-10-07 Hans Breuer <hans@breuer.org>
7888 [Libart Renderer resurrected; almost it's compiling but
7889 almost instantly crashing :-]
7891 * lib/dialibartrenderer.[hc] : new files, ported to DiaRenderer
7892 * app/render_libart.[hc] : ported to DiaInteractiveRenderer
7893 * lib/diatransform.[hc] : added dia_transform_coords_double()
7895 * app/display.c : the right parameters for new_renderer_libart()
7896 * app/export_png.c : ported, removed the blind Display hack
7898 * app/makefile.msc lib/makefile.msc
7899 lib/Makefile.am : updated
7901 * lib/dia<|gdk|interactive>renderer.c : properly copyrighted
7903 2002-10-06 Hans Breuer <hans@breuer.org>
7905 * plug-ins/pixbuf/pixbuf.c : (new file)
7906 there is a new export plug-in called 'Pixbuf' which uses
7907 DiaGdkRenderer to export to gdk-pixbuf supported bitmap
7908 formats (currently only PNG and JPEG).
7910 2002-10-06 Hans Breuer <hans@breuer.org>
7913 http://mail.gnome.org/archives/dia-list/2002-October/msg00027.html
7915 * lib/dia-enums.h lib/diatransform.[hc]
7916 lib/diarenderer.[hc] lib/diainteractiverenderer.c
7917 lib/diagdkrenderer.[hc] lib/diasvgrenderer.[hc]
7920 * lib/makefile.msc lib/makefile.am : added new files
7922 * lib/plug-ins.c : g_module_error() returns a locale
7923 string, convert to utf8 before further usage
7925 * lib/render.h : #error out. Everything including this
7927 * lib/*.[hc] : ported to new renderer api
7929 * app/diaepsrenderer.h : unfinished DiaEpsRenderer interface
7930 just to make the rest compile
7931 * app/render_eps.c : temporary disabled all of this
7932 * app/render_eps.h : removed RendererEPS
7934 * app/render_gdk.[hc] : a small wrapper around the new
7935 DiaGdkRenderer form lib/*
7937 * app/render_libart.h : removed RenderLibart definition
7938 * app/render_libart.c : not yet ported to new DiaRenderer
7939 but having an implementation to untie form FT2 dependency
7940 at least on win32. It is using new Pango api form bug #94791
7942 * app/render_pixmap.[hc] : a small wrapper around the new
7943 DiaGdkRenderer form lib/*
7945 * app/display.h : removed render_*.h includes
7946 * app/display.c : the only place where specific
7947 renderers need to be known
7949 * app/connectionpoint_ops.c app/grid.c app/handle_ops.c
7950 use new DiaInteractiveRenderer interface
7952 * app/*.c : ported to new renderer api
7953 * object/*/*.c : ported to new renderer api
7954 s/render.h/diarenderer.h/
7955 s/Renderer/DiaRenderer/
7956 s/renderer->ops/renderer_ops/
7957 add in every draw method:
7958 DiaRendererClass *renderer_ops = DIA_RENDERER_GET_CLASS (renderer);
7960 * plug-ins/hpgl/hpgl.c :
7961 plug-ins/wmf/wmf.cpp
7962 plug-ins/wpg/wpg.c : ported to be DiaRenderer based
7963 * plug-ins/shape/shape-export.c
7964 plug-ins/svg/render_svg.c : ported to be DiaSvgRenderer based
7965 (nice how small these files became :-)
7967 2002-09-28 Hans Breuer <hans@breuer.org>
7969 * */makefile.msc : updated
7971 * app/defaults.c : don't gdk_invalidate_rect(NULL)
7972 * app/disp_callbacks.c :
7973 can't cast GtkWindow to GdkWindow, use shell->window
7974 (ddisplay_unrealize) don't use already unrefed im_context
7976 can't cast from GtkMenu to GtkMenuItem
7977 (ddisp_destroy) : mark im_context as unrefed
7979 * lib/dia_xml (data_font) : prefer new font format over old one
7980 (data_add_font) : write the legacy name to allow file exchange
7981 with pre Pango versions of Dia, which would otherwise crash
7982 on missing font 'name' attribute.
7983 * lib/font.c (dia_font_get_legacy_name) : improved implementation
7984 to get a better match.
7986 * lib/libdia.def : updated
7988 * lib/messages.c : don't gdk_widget_show(NULL)
7990 * lib/prop_text.c : don't gtk_entry_set_text() with NULL string
7992 [make Dia compile, link _and_ work with mingw/gcc3.2]
7994 * config.h.win32 : #define LIBXML, this gets defined from libxml
7995 header but only for _MSC_VER. The mingw build did access an
7996 unitialized function pointer for xmlFree.
7998 * */makefile.mingw : updated (some plug-ins have build issues)
8000 * lib/handle.h lib/object.h : there appears to be no
8001 forward declaration of the form
8002 typedef enum _HandleId HandleId
8003 (at least not with GCC 3.2 for C++) ../lib/handle.h:22:
8004 use of enum `_HandleId' without previous declaration
8006 * app/paginate_gdiprint.cpp : added a hack to avoid g++
8007 naming conflict on 'export'
8009 * app/paginate_gdiprint.h : forward declare Diagram
8011 * objects/SADT/annotaion.c : use g_random_double()
8013 2002-09-26 Lars Clausen <lrclause@cs.uiuc.edu>
8015 * app/modify_tool.c: Made motion not happen until sufficiently
8016 large or past double-click interval, to avoid accidental moving
8017 when doubleclicking. Got the double-click time right, and fixed
8018 some issues with release. There are some corner cases that may
8019 exhibit strange behaviour, will look at those later. Nah, let's
8020 not care about those, they are rare and not dangerous.
8022 2002-09-26 Cyrille Chépélov <cyrille@chepelov.org>
8024 * app/layer_dialog.c:
8026 * plug-ins/dxf/dxf-import.c:
8027 * plug-ins/python/pydia-diagram.c:
8028 * lib/diagramdata.c:
8029 * lib/diagramdata.h:
8030 Improved the consistency of the obj->parent_layer backlinks (esp.
8035 * lib/dynamic_obj.[ch] (NEW):
8038 * app/dynamic_refresh.[ch] (NEW):
8039 * objects/Misc/analog_clock.c:
8040 Added support for dynamic refresh (animated objects).
8042 2002-09-25 Cyrille Chépélov <cyrille@chepelov.org>
8044 Patch from Owen Taylor <otaylor@redhat.com>:
8045 * doc/en/Makefile.am:
8046 * doc/en/dia-manual.sgml:
8047 * doc/en/usage-objects.sgml:
8048 * doc/en/usage-quickstart.sgml:
8049 * doc/pl/Makefile.am:
8050 * doc/pl/dia-manual.sgml:
8051 * doc/pl/usage-objects.sgml:
8052 * doc/pl/usage-quickstart.sgml:
8054 - Change the DTD declration from an outdated GNOME one to a
8057 - Remove close tags for <graphics> which aren't allowed for
8060 - A hacky fix for a problem where some versions of db2html don't
8061 create *.css files. (If *.css doesn't match anything, then you get
8062 the global explicitely.)
8066 2002-09-24 Cyrille Chépélov <cyrille@chepelov.org>
8068 * objects/custom/custom_object.c:
8069 * objects/custom/shape_info.[ch]: GE_TEXT display lists elements
8070 were never properly prepared for use when reloading a shape with
8071 <svg:text> elements. Thanks to Scott Frazer <frazer@nc.rr.com> for
8072 reporting the problem and coming up with a fix! (Closes: #93974)
8074 * app/menus.c: patch from Alan Horkan <horkana@tcd.ie>: review
8075 the menu shortcuts towards better GNOME HIG compliance (Closes: #87157)
8078 * app/display.c: updated menu item paths Alan's patch had moved.
8080 * app/interface.c: Fixed a crash when gdk-pixbuf doesn't want to
8081 load the sheet-provided icon (libpng versions mismatch, grrr.).
8084 * objects/Makefile.am:
8085 * objects/Misc/Makefile.am (NEW):
8086 * objects/Misc/libmisc.c (NEW):
8087 * objects/Misc/analog_clock.c (NEW):
8088 * objects/Misc/pixmaps/analog_clock.xpm (NEW):
8089 * sheets/Misc.sheet.in: just a little experiment...
8091 2002-09-23 Cyrille Chepelov <cyrille@chepelov.org>
8093 * plug-ins/xlst/Makefile.am: found a way to silence automake while
8094 not forcing everyone to build using libxslt.
8098 * lib/object_defaults.c:
8101 * lib/properties.[ch]:
8103 * objects/standard/box.c:
8104 * objects/UML/state_term.c:
8106 * objects/FS/flow-ortho.c:
8110 * app/diagram_tree.c:
8112 * app/disp_callbacks.c:
8115 * app/lineprops_area.c:
8117 * app/preferences.c:
8120 * app/sheets_dialog_callbacks.c:
8121 * plug-ins/xslt/xslt.c:
8122 * plug-ins/metapost/render_metapost.c:
8123 * plug-ins/xfig/xfig-export.c:
8124 * plug-ins/shape/shape-export.c:
8126 Killed most gcc-3.2 warnings (const-correctness and derived warnings,
8127 unused variables, mostly)
8130 * app/menus.c: enabled GTK Input Methods (thanks Lars!)
8132 * app/Makefile.am: modified run_dia.sh so that we recover the
8133 ability to run a debugger despite libtool's hacks.
8135 * plug-ins/dxf/Makefile.am:
8137 "make distcheck" fixes.
8139 2002-09-19 Lars Clausen <lrclause@cs.uiuc.edu>
8141 * objects/UML/uml.c (uml_get_operation_string): Patch from Mauf
8142 <mfranzoni@madd.it>: Check for the type being NULL.
8144 2002-09-16 Lars Clausen <lrclause@cs.uiuc.edu>
8146 * app/render_eps.c (set_font): Re-tweaked font size for printing.
8148 2002-09-12 Cyrille Chepelov <cyrille@chepelov.org>
8150 Patch from Angus Ainslie <angusa@deltatee.com>:
8151 * plug-ins/dxf/dxf-import.c:
8152 * plug-ins/dxf/autocad_pal.h: Import from visio 2002 improvements.
8154 (plus a couple extra fixes by me, such as the removal of printf's,
8155 adapting for recent changes, and killed a couple warnings)
8157 * app/authors.h: a 60K patch isn't insignificant, is it?
8159 2002-09-09 Tor Lillqvist <tml@iki.fi>
8161 * configure.in: Check for both pangoft2 (using PKG_CHECK_MODULES,
8162 as before) and -lfreetype (using AC_CHECK_LIB). At least on
8163 Solaris with Sun's compiler (Forte C), you need to link also the
8164 dia application with -lfreetype, even if it is implicitly linked
8165 to by -lpangoft2. Rename FREETYPE_CFLAGS and _LIBS to PANGOFT2_*,
8166 which is what they actually mean. Use FREETYPE_LIBS for
8169 Don't look for libsunmath if isinf() is not found in math.h (as on
8170 Solaris). The sunmath library is part of Forte C and not present
8171 on all machines. Besides, even if isinf was found in libsunmath,
8172 we didn't use it in the Makefile.am.
8174 Fix a couple of bashisms.
8176 AC_SUBST also Z_LIBS, need to link the dia application to -lz,
8177 too, on Solaris with Forte C.
8179 Don't try to use the gcc flags with other compilers.
8180 DIA_CHECK_CFLAG gives a false indication that Forte C understands
8181 the gcc -f switches, but in fact they get interpreted meaning
8182 something completely different.
8184 Define the automake conditional HAVE_CGC.
8186 * app/Makefile.am (dia_LDADD): Add Z_LIBS and FREETYPE_LIBS.
8188 Use -export-dynamic only with gcc.
8191 * */*/Makefile.am: Modify according to the FREETYPE_CFLAGS ->
8192 PANGOFT2_CFLAGS rename.
8194 * lib/geometry.h: Drop HAVE_SUNMATH_H and <sunmath.h> per above.
8196 * lib/dia_xml.c: Include geometry.h for the isinf() stuff on
8199 * lib/paper.c: Workaround for gccism: Can't use inline this way with
8202 2002-09-08 Cyrille Chepelov <cyrille@chepelov.org>
8204 * lib/text.c(set_string): fixed a memory leak (char* ain't no
8205 std::auto_ptr<char> !).
8208 * app/interface.[ch]:
8209 * app/ddisp_callbacks.[ch]: Added some basic support for input
8210 methods (GtkIMContext-based)
8213 * app/Makefile.am: made libdia a shared object (per Tor
8214 Lillqvist's suggestion/request), to cope for platforms with a less
8215 than par dynamic library loader.
8217 * app/display.c: disabled the input method menu (I really don't
8218 see where and how to put them. Blame Frozen Bubble )
8220 2002-09-06 Lars Clausen <lrclause@cs.uiuc.edu>
8222 * objects/flowchart/box.c (box_update_data): Made resizing
8223 possible again (only set width & height when resized too small).
8225 Patch from Soeren Sandmann <sandmann@daimi.au.dk>:
8227 * app/disp_callbacks.c (ddisplay_canvas_events): Handle
8230 2002-09-05 Cyrille Chepelov <cyrille@chepelov.org>
8232 * app/authors.h: now showing Akira TAGOH's name in the native script.
8234 2002-09-01 Lars Clausen <lrclause@cs.uiuc.edu>
8236 * plug-ins/xslt/xslt.c: Removed glib warning for unset
8239 2002-09-01 Cyrille Chepelov <cyrille@chepelov.org>
8241 * plug-ins/svg/render_svg.c: Applied (reversed...) patch from
8242 Mike Sowka <msowka@rogers.com>. This fixes a problem with the
8245 2002-08-31 Lars Clausen <lrclause@cs.uiuc.edu>
8247 * objects/UML/class.c: Fixed showing of empty stereotypes and got
8248 the string placed correctly.
8250 2002-08-30 Hans Breuer <hans@breuer.org>
8252 * lib/font.c (dia_font_get_style) : don't shift already
8253 shifted DIA_FONT values.
8255 * lib/libdia.def : updated externals
8257 * app/disp_callbacks.c : on win32 GdkEventKey::string already
8258 is in UTF-8. (Longterm this probably should be handled on the
8261 * app/command.[hc] app/display.[hc] app/menus.c : add code to
8262 switch display renderers again. The libart renderer is very
8263 useful for win9x with it's limited GDI.
8265 * app/render_gdk.c : use g_warning instead of printf which gets
8266 nowhere on win32 (non console apps)
8268 * app/render_libart.c : make it compile without FREETYPE
8270 * objects/makefile.msc plug-ins/makefile.msc : added clean target
8272 2002-08-29 Lars Clausen <lrclause@cs.uiuc.edu>
8274 * app/render_eps.c (postscript_draw_contour): Debugging statement
8275 that allowed me to figure out font problems.
8277 * lib/widgets.c (dia_font_selector_set_styles): Use radio menu
8278 items for font styles.
8280 * objects/FS/flow-poly.c:
8281 * objects/FS/flow-ortho.c:
8282 * objects/FS/flow.c: Further conversion away from GTK dialogs.
8283 Can't set a default label right now:(
8285 * app/interface.c (fill_sheet_wbox): Added initialization for mask.
8287 2002-08-27 Cyrille Chepelov <cyrille@chepelov.org>
8288 Patch from Andrew Ferrier <andrew@new-destiny.co.uk>:
8290 * Makefile.am: rules relating to AUTHORS and THANKS
8292 * AUTHORS: file content changed to more accurately
8293 reflect guideline requirements.
8294 * TODO: warning added about Gnome BTS.
8295 * KNOWN_BUGS: warning added about Gnome BTS.
8299 * AUTHORS: added full copyright info.
8300 * mkauthors-placeholder: (removed)
8302 2002-08-27 Lars Clausen <lrclause@cs.uiuc.edu>
8304 * app/paginate_psprint.c (print_page): Fixed text printing after
8305 tip from Dov Grobgeld.
8307 2002-08-26 Lars Clausen <lrclause@cs.uiuc.edu>
8309 * app/paginate_psprint.c (print_page): Fixed color of clip
8312 2002-08-26 Cyrille Chepelov <cyrille@chepelov.org>
8314 * sheets/Makefile.am: enabled intltool-merge translation cache for
8318 * mkauthors-placeholder:
8319 * AUTHORS: revived that file (in a placeholder form) so that
8320 automake stops yelling.
8321 (derived from a patch by Andrew Ferrier <andrew@new-destiny.co.uk>)
8324 Heh, by the way, thanks Christophe. I feel better now.
8326 2002-08-25 Christophe Merlet <christophe@merlet.net>
8328 * app/command.c: Removed invalid multibyte sequence in Chepelov.
8330 2002-08-24 Lars Clausen <lrclause@cs.uiuc.edu>
8332 * lib/dia_image.c (dia_image_rgb_data):
8333 Bugfixes in image data retrieval.
8335 * app/render_eps.c: Refactoring of new_*_renderer.
8337 2002-08-23 Lars Clausen <lrclause@cs.uiuc.edu>
8341 * lib/dia_image.c: Support for rowstride != width (odd width images)
8343 2002-08-20 Lars Clausen <lrclause@cs.uiuc.edu>
8345 * lib/paper.c (get_paper_info): Fixed NULL prefs problem.
8346 * plug-ins/xfig/xfig-import.c: Removed assertion.
8348 2002-08-18 Lars Clausen <lrclause@cs.uiuc.edu>
8350 * lib/paper.c: Removed app/preferences.h reference.
8352 2002-08-14 Lars Clausen <lrclause@cs.uiuc.edu>
8354 * plug-ins/svg/svg-import.c:
8355 * plug-ins/xfig/xfig-import.c:
8356 * lib/Makefile.am (libdia_a_SOURCES):
8357 * objects/standard/Makefile.am (libstandard_objects_la_SOURCES):
8359 * objects/standard/create.h:
8360 * objects/standard/polygon.c (polygon_create):
8361 * objects/standard/polyline.c (polyline_create):
8362 * objects/standard/beziergon.c (beziergon_create):
8363 * objects/standard/bezier.c (bezierline_create):
8364 Moving create.h into lib.
8366 2002-08-13 Lars Clausen <lrclause@cs.uiuc.edu>
8368 * app/render_libart.[ch]: Work on PNG font export. Something's
8369 still fishy with the scaling, I don't get it.
8372 * app/interface.c: Replaced broken zoom combo with entry+menu.
8373 Now works beautifully. Removed WITHOUT_ZOOM_COMBO stuff.
8375 * app/render_gdk.c (get_text_width): Checks for validity of text.
8376 Temporary help while debugging input -- should only activate on
8379 * objects/SADT/annotation.c:
8380 * objects/GRAFCET/transition.c:
8381 * objects/FS/function.c: Removal of gtk.h include.
8383 * objects/UML/state.c (state_load): Warnings about using State
8384 object for initial/final states.
8386 * plug-ins/cgm/cgm.c (init_fonts): Proper Pango interfacing.
8388 2002-08-12 Lars Clausen <lrclause@cs.uiuc.edu>
8390 * app/render_eps.c: Text rendering that scales correctly. Too bad
8391 the standard fonts don't get selected right.
8393 2002-08-09 Lars Clausen <lrclause@cs.uiuc.edu>
8395 * lib/diagramdata.h:
8396 * lib/paper.c (get_paper_info):
8398 * plug-ins/xfig/xfig-import.c:
8399 Committed before testing. I am so embarrased. This compiles, now
8400 that the includes are in the right order.
8402 * app/diagram.c (diagram_init):
8403 * app/app_procs.c (do_convert):
8404 * app/preferences.h:
8405 * lib/diagramdata.h:
8406 * lib/diagramdata.c (new_diagram_data):
8408 * lib/paper.c (get_paper_info):
8409 Moved new_diagram part of prefs into lib/diagramdata.h. More
8410 could be done in new_diagram_data() now.
8412 2002-08-08 Lars Clausen <lrclause@cs.uiuc.edu>
8414 * app/render_eps.c: Better scaling of fonts at non-normal zoom.
8416 2002-08-07 Cyrille Chepelov <cyrille@chepelov.org>
8418 * configure.in: removed silly user-visible comment
8420 (actually, this is a dummy entry before I manually run nemo; for
8421 some dist-upgrade related reason, this morning's run aborted before
8422 the snapshots were created)
8424 2002-08-06 Lars Clausen <lrclause@cs.uiuc.edu>
8426 * objects/network/wanlink.c:
8427 * objects/network/bus.c:
8430 * objects/custom/custom_object.c:
8431 * objects/network/wanlink.c:
8432 * objects/flowchart/parallelogram.c:
8433 * objects/flowchart/ellipse.c:
8434 * objects/flowchart/diamond.c:
8435 * objects/flowchart/box.c:
8436 Removed GTK defaults stuff.
8438 * objects/UML/fork.c:
8439 * objects/UML/object.c:
8440 * objects/UML/lifeline.c:
8441 * objects/UML/branch.c:
8442 * objects/GRAFCET/transition.c:
8443 * objects/FS/function.c: Removed GTK include.
8445 * objects/FS/flow-ortho.c:
8446 * objects/FS/flow.c: Made the label behave again.
8447 Also removed GTK defaults stuff.
8449 2002-08-06 Hans Breuer <hans@breuer.org>
8451 * app/autosave.c : ported to GDir which is the improved
8452 cross platform replacement for <dirent.h>
8454 * app/makefile.msc : build autosave.obj
8456 * app/font.c : some (bad?) code calls
8457 dia_font_scaled_decent() not only with empty string but
8458 with NULL. Handle it gracefully.
8460 * lib/paper.c : don't depend on ../app. Although IMO
8461 this shouldn't be allowed on any platform it is only
8462 disabled for win32, where it simply doesn't work
8465 * lib/widget.c (strcase_equal) : pass char* to g_strcasecmp()
8467 * objects/fs/flow.c : conditionalize debug spew, disabled
8468 and 'ported' to use g_print. Simple printf won't work with
8469 standard win32 gui apps, may even crash them.
8471 * plug-ins/makefile.msc : DISABLED svg-import cause it
8472 depends on ../objects/custom. This not only break the
8473 build for all non ELF systems but IMO also isn't acceptable
8474 from a design point of view. See dia-list mail on subject.
8476 * plug-ins/python/makefile.msc :
8477 plug-ins/python/python.c : remove all references to dirent
8479 2002-08-05 Cyrille Chepelov <cyrille@chepelov.org>
8481 * configure.in: added ro to ALL_LINGUAS
8485 * ../translation-graphs/transgraph.py: added support for fuzzy
8486 translations. Enlarged the graphs.
8488 2002-08-05 Lars Clausen <lrclause@cs.uiuc.edu>
8490 * app/disp_callbacks.c (ddisplay_canvas_events): Now translates
8491 key events according to locale. No clue if this works for
8494 2002-08-04 Lars Clausen <lrclause@cs.uiuc.edu>
8496 * lib/text.c: Various UTF8 related fixes, in particular in
8497 deleting. Text_insert_char is fine, far as I can tell.
8499 * app/interface.c (create_display_shell):
8500 * app/commands.c: Now uses gtk_clipboard functions, for they are
8501 much simpler. Also handles Win32 clipboard. Non-ascii chars
8502 don't seem to get handled correctly by text_insert_char in
8505 * app/commands.c (received_selection_handler): Got utf8 handling
8506 on paste, and individual char handling out of commands.c. Pasting
8507 non-ASCII is still broken, somehow. It's all lib/text.c's fault.
8509 * lib/message.c (gtk_message_internal): Message dialog re-shown
8510 when new message appears. Maybe it should even move to top?
8514 * app/render_eps.c (create_eps_renderer): Fonts now lowercase
8515 (again) and case-insensitive.
8517 * objects/GRAFCET/condition.c (CONDITION_FONT): Changed to
8520 2002-08-02 Lars Clausen <lrclause@cs.uiuc.edu>
8522 * app/commands.c (edit_cut_text_callback):
8523 * lib/text.c (text_delete_all): Now functioning undo for text cut.
8525 * app/commands.c (edit_cut_text_callback): Now removes text.
8526 Undo is broken, though.
8528 2002-08-01 Lars Clausen <lrclause@cs.uiuc.edu>
8530 * app/diagram.c (diagram_update_menu_sensitivity):
8531 Making cut_text active.
8534 * app/commands.c: Using PROP_TYPE_TEXT to find text to copy to
8535 clipboard. Also removed AA callback.
8537 2002-08-01 Lars Clausen <lrclause@cs.uiuc.edu>
8539 * objects/chronogram/chronoref.c:
8540 * objects/chronogram/chronoline.c:
8541 * objects/SADT/annotation.c:
8542 * objects/SADT/arrow.c:
8543 * objects/SADT/box.c:
8544 * objects/GRAFCET/vergent.c:
8545 * objects/GRAFCET/vector.c:
8546 * objects/GRAFCET/step.c:
8547 * objects/GRAFCET/condition.c:
8548 * objects/GRAFCET/action.c:
8549 * objects/ER/participation.c:
8550 * objects/ER/relationship.c:
8551 * objects/ER/entity.c:
8552 * objects/ER/attribute.c:
8553 Removing unnecessary GTK references.
8555 2002-07-31 Lars Clausen <lrclause@cs.uiuc.edu>
8557 * objects/standard/image.c:
8558 * objects/standard/textobj.c:
8559 * objects/standard/ellipse.c:
8560 * objects/standard/polygon.c:
8561 * objects/standard/beziergon.c:
8562 * objects/standard/box.c:
8563 Making default default properties.
8565 * objects/standard/image.c:
8566 * objects/standard/arc.c:
8567 * objects/standard/box.c:
8568 * objects/standard/zigzagline.c:
8569 * objects/standard/polyline.c:
8570 * objects/standard/line.c:
8571 * objects/standard/ellipse.c:
8572 * objects/standard/polygon.c:
8573 * objects/standard/beziergon.c: Removing vestigal GTK stuff.
8575 * lib/object_defaults.c (dia_object_default_create):
8578 * lib/object.c (object_copy_using_properties):
8579 * lib/propdialogs.c:
8580 * lib/propinternals.h:
8581 * lib/propobject.c (object_create_props_dialog)
8582 (object_copy_props):
8583 Removing the standard (toolbox) properties from defaults dialogs.
8585 2002-07-30 Lars Clausen <lrclause@cs.uiuc.edu>
8587 * lib/font.c (dia_font_scaled_string_width)
8588 (dia_font_scaled_ascent, dia_font_scaled_descent): Account for
8590 * lib/text.c (text_calc_boundingbox): Take descent into account.
8592 * objects/standard/bezier.c (bezierline_draw):
8593 * lib/render.c (draw_bezier_with_arrows):
8594 Better arrow drawing for beziers. Doesn't change the mouse-click
8597 * lib/arrows.h: Some const-ness.
8599 * lib/arrows.c (calculate_arrow_point): Initialize zero-length moves.
8601 * lib/render.c (draw_arc_with_arrows):
8602 * objects/standard/arc.c (arc_draw): Better arrow drawing for
8603 arcs. Doesn't change the mouse-click area yet.
8605 * app/menus.c: Forgotten fix: Redraw menu item for non-Gnome.
8611 2002-07-29 Lars Clausen <lrclause@cs.uiuc.edu>
8613 * app/group.c (group_draw): Forgotten commit: Groups to draw as
8614 objects (using default routines).
8618 * lib/diagramdata.h:
8619 * lib/diagramdata.c (layer_find_closest_connectionpoint):
8620 * objects/standard/zigzagline.c (zigzagline_move_handle):
8621 * app/diagram.c (diagram_find_closest_connectionpoint):
8622 * plug-ins/python/pydia-diagram.c
8623 (PyDiaDiagram_FindClosestConnectionPoint):
8624 * app/object_ops.c (object_connect_display)
8625 (object_find_connectpoint_display)
8626 * app/create_object.c (create_object_button_press)
8627 (create_object_motion):
8628 * app/modify_tool.c (modify_motion):
8629 Adding object param to allow connectionpoint and handle coinciding.
8631 * objects/standard/zigzagline.c (zigzagline_check_orientation):
8632 Fixing minor problems.
8634 * objects/standard/ellipse.c (ellipse_update_data):
8635 Added direction hints.
8637 * lib/diagramdata.c:
8640 * lib/diagramdata.h:
8641 * objects/standard/zigzagline.c:
8642 First working example of zigzagline hints, currently only between
8645 2002-07-27 Steffen Macke <sdteffen@web.de>
8647 * plug-ins/svg/render_svg.c: added support for rounded
8648 rectangles (fixes #69053 if compile with
8650 * object/custom/shape_info.[c|h]: made parse_style and
8651 parse_path accessible for svg plug-in
8652 * plug-ins/svg/Makefile.am:
8653 * plug-ins/svg/svg.c:
8654 * plug-ins/svg/svg-import.c(new): added SVG import filter
8656 2002-07-27 Lars Clausen <lrclause@cs.uiuc.edu>
8658 * objects/standard/box.c:
8659 * objects/standard/zigzagline.c (zigzagline_move):
8660 More work on zigzagline hints.
8662 2002-07-26 Lars Clausen <lrclause@cs.uiuc.edu>
8663 * lib/connectionpoint.h:
8664 Hints for zigzaglines.
8666 * app/properties.c (properties_show):
8667 * app/defaults.c (defaults_show):
8669 * lib/propobject.c (object_create_props_dialog):
8671 * objects/FS/flow-poly.c:
8672 * objects/network/wanlink.c:
8673 * objects/network/bus.c:
8674 * objects/UML/class.h:
8675 * objects/UML/class_dialog.c:
8676 * objects/UML/association.c:
8677 Start of removing toolbox props from props dialogs.
8681 * app/lineprops_area.c (dia_arrow_chooser_new):
8682 * lib/arrows.c: Two new arrows: Concave, filled and blanked.
8684 * app/create_object.c:
8685 * app/modify_tool.c:
8690 2002-07-25 Lars Clausen <lrclause@cs.uiuc.edu>
8692 * app/preferences.c:
8694 * app/diapagelayout.c:
8695 New prefs selector kind PREF_CHOICE chooses between a list of
8696 strings. Used for picking default paper.
8698 * app/preferences.c (prefs_data):
8699 * lib/paper.c (get_paper_info): Added prefs setting for
8702 * lib/render.c (draw_polyline_with_arrows): Handles degenerate
8703 line segments at the ends (bug #86603).
8705 2002-07-25 Lars Clausen <lrclause@cs.uiuc.edu>
8707 * objects/standard/zigzagline.c (zigzagline_copy): Fix for bug
8708 #60324: Now calls update_data after copy.
8710 * app/interface.c (fill_sheet_wbox): Better fix for bug #88601:
8711 Now doesn't steal selection from non-object tools.
8713 2002-07-24 Lars Clausen <lrclause@cs.uiuc.edu>
8715 * app/commands.c (help_manual_callback): Uses BROWSER environment
8716 variable when available.
8718 2002-07-23 Lars Clausen <lrclause@cs.uiuc.edu>
8720 * app/interface.c (fill_sheet_wbox): Fix for bug #88601: Select an
8721 object from the new sheet when changing.
8723 * app/app_procs.c (app_init): Uses more standard size icon, from
8724 patch #56433. Keeping old icon as dia_gnome_icon_large.png.
8726 2002-07-22 Lars Clausen <lrclause@cs.uiuc.edu>
8728 * objects/UML/implements.c (implements_update_data):
8729 * objects/UML/realizes.c (realizes_update_data):
8730 * objects/UML/dependency.c (dependency_update_data):
8731 Test for null strings before calling on ascent.
8733 * objects/UML/realizes.c (realizes_draw):
8734 * objects/UML/message.c (message_draw):
8735 * objects/UML/generalization.c (generalization_draw):
8736 * objects/UML/dependency.c (dependency_draw)
8737 * objects/UML/constraint.c (constraint_draw):
8738 * objects/GRAFCET/condition.c (condition_draw):
8739 * objects/UML/association.c (association_draw):
8740 * objects/FS/flow-ortho.c (orthflow_draw):
8741 * objects/FS/flow.c (flow_draw): Change to use
8742 draw_foo_with_arrows. Pretty pretty arrows. Yay me!
8745 * lib/arrows.c (calculate_arrow_point):
8748 * objects/standard/zigzagline.c:
8749 * objects/standard/polyline.c:
8750 * objects/standard/line.c: Work towards better arrow drawing.
8752 2002-07-21 Lars Clausen <lrclause@cs.uiuc.edu>
8754 * objects/UML/state.c: Starting phase-out of State object as
8755 initial/final state (which never worked right).
8757 * app/app_procs.c (app_init): --version command line option for
8760 * configure.in: Slight improvement in GETTEXT_PACKAGE handling.
8762 2002-07-19 Lars Clausen <lrclause@cs.uiuc.edu>
8764 * app/render_eps.c: Removed debugging info.
8766 * lib/font.c (dia_font_scaled_ascent, dia_font_scaled_descent):
8767 Kludge to make ascent and descent work for empty strings. Won't
8768 work when using non-ASCII fonts. Better would be to get a
8769 PangoFont and ask directly.
8771 * configure.in: Simple define of GETTEXT_PACKAGE, and some updates
8774 * app/render_gdk.c (get_text_width): Fixed use of wrong string.
8777 2002-07-18 Lars Clausen <lrclause@cs.uiuc.edu>
8779 * plug-ins/xfig/xfig-export.c: First use of draw_object render
8780 function: All shapes are now groups in XFig export.
8782 * lib/diagramdata.c (normal_render):
8785 * app/display.c (ddisplay_obj_render):
8786 New render function for drawing objects, allows renderers to group
8787 or otherwise specially handle objects. We may want to reconsider
8788 calling it in app/display.c, as we 'know' the object draw function
8789 is the default one there.
8791 * lib/Makefile.am: Removed extra \ that broke stuff.
8793 * plug-ins/xfig/xfig-import.c:
8794 Spline import for xfig. Not perfect.
8796 * objects/standard/create.h:
8797 * objects/standard/bezier.c (bezierline_create):
8798 * lib/bezier_conn.c:
8799 * lib/beziershape.c (beziershape_set_points):
8800 * lib/bezier_conn.h:
8801 * lib/beziershape.h:
8802 Support for creating beziers non-interactively.
8804 2002-07-17 Lars Clausen <lrclause@cs.uiuc.edu>
8806 * plug-ins/xfig/xfig-import.c: Support for polygons and
8807 polylines. Special warning handling system removed.
8809 * lib/message.c (gtk_message_internal): Fixed bug involving
8810 closing message window and then getting repeated message.
8814 * configure.in (GETTEXT_PACKAGE):
8815 Update based on bug #88199. Hopefully this doesn't break too much
8818 * dia.desktop.in (_Comment): Changed after suggestion from
8819 calum.benson@ireland.sun.com (bug 88345)
8821 * app/sheets_dialog_callbacks.c: Fix from Dolores Alia de Saravia
8822 <loli@unsa.edu.ar> that makes user/system distinction better.
8824 2002-07-16 Lars Clausen <lrclause@cs.uiuc.edu>
8826 * app/render_libart.c: Got the context right, removed crashes.
8836 Remove libart #defines from most places (still around for png export).
8838 * app/render_libart.h:
8839 * app/render_libart.c:
8840 * configure.in (HAVE_LIBART):
8841 Starting on update of libart stuff for png export (without X).
8843 * app/autosave.h (autosave_check_autosave):
8846 * app/Makefile.am (dia_core_files):
8848 * app/diagram.c (diagram_set_modified):
8850 * app/app_procs.c (app_init):
8851 Autosave support. No automatic restore yet.
8853 2002-07-16 Lars Clausen <lrclause@cs.uiuc.edu>
8855 * app/render_eps.c (create_eps_renderer): #ifdef'd a scale
8858 2002-07-15 Lars Clausen <lrclause@cs.uiuc.edu>
8860 * app/interface.c (fill_sheet_menu): Tear-off for sheets menu.
8862 2002-07-15 Andrew Ferrier <andrew@new-destiny.co.uk>
8864 * Fix for 'make dist' etc. --- problem caused by
8865 previous AUTHORS patch.
8867 2002-07-14 Lars Clausen <lrclause@cs.uiuc.edu>
8869 * plug-ins/cgm/cgm.c (init_fonts): Changed pango_font_map to
8871 (set_font): NULL check.
8873 2002-07-12 Lars Clausen <lrclause@cs.uiuc.edu>
8875 * app/disp_callbacks.c:
8877 Addition to the object menus allows check menu items.
8879 2002-07-11 Andrew Ferrier <andrew@new-destiny.co.uk>
8881 * HACKING: completely changed to bring up-to-date.
8882 * AUTHORS: file needs REMOVING from CVS as now
8883 dynamically generated.
8884 * app/authors.h: split into subcategories for original
8885 authors, maintainers, etc.
8886 * app/app_procs.c: --credits rewritten to support new
8888 * app/commands.c: no changes to about box code, comment
8890 * Makefile.am: added rule for AUTHORS. I'm still
8891 inexperienced with automake, it seems to work, but
8892 for AUTHORS-related bugs, look at this change first.
8894 2002-07-10 Lars Clausen <lrclause@cs.uiuc.edu>
8896 * plug-ins/Makefile.am (SUBDIRS): Just realized why my hack didn't
8897 work. Back to including xslt dir always.
8899 * objects/UML/uml.c:
8900 * objects/UML/class.h:
8901 * objects/UML/class_dialog.c:
8902 * objects/UML/class.c: Patch from
8903 <mattam@netcourrier.com>: Adds comment visibility switch, also
8906 Big patch from Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
8907 for state/fork/activity stuff.
8908 * objects/UML/state.c: Removed old draw_rounded_rectangle code.
8909 * objects/UML/Makefile.am:
8910 * objects/UML/uml.c:
8911 * sheets/UML.sheet.in: Added new objects activity, fork,
8913 * objects/UML/pixmaps/state_term.xpm:
8914 * objects/UML/state_term.c: New, only initial/final states.
8915 * objects/UML/pixmaps/activity.xpm:
8916 * objects/UML/activity.c: New, activity state.
8917 * objects/UML/pixmaps/fork.xpm:
8918 * objects/UML/fork.c: New, fork/join bar.
8919 * objects/UML/pixmaps/state.xpm: state icon.
8923 * doc/shape.dtd: Patch from "Dolores Alia de Saravia"
8924 <loli@unsa.edu.ar> to add dia: to diagram.dtd elements and add
8927 2002-07-07 Lars Clausen <lrclause@cs.uiuc.edu>
8929 * plug-ins/Makefile.am (SUBDIRS): Made the XSLT dir depend on
8932 * app/Makefile.am: Commented out the diaconv parts while it's not
8933 used anyway. To come back later.
8935 * configure.in (HAVE_FREETYPE):
8938 * app/render_eps.c: Support for printing with freetype, better
8939 encapsulated now. Renders the text nicely, but ignores font
8940 setting. Requires pangoft2 to get the font outline, but non-text
8941 objects can still be rendered without it.
8944 * app/commands.c (objects_place_up_callback)
8945 (objects_place_down_callback):
8947 * app/diagram.c (diagram_place_down_selected)
8948 (diagram_place_up_selected): Starting support for moving objects
8951 * app/menus.c: Removed character/numeral shortcuts.
8953 2002-07-06 Hans Breuer <hans@breuer.org>
8955 * makefile.am app/makefile.am lib/makefile.am
8956 objects/makefile.am plug-ins/makefile.am
8957 plug-ins/python/makefile.am :
8958 added required files for win32 build to EXTRA_DIST
8960 * app/paginate_psprint.c app/render_eps.c
8962 wrap (E)PS Renderer into HAVE_FREETYPE, no FreeType
8963 on Pango as currently is on win32 => no PostScript
8966 * lib/widgets.c : undef GTK_DISABLE_DEPRECATED;
8967 use '/* noop */;' for empty case labels; replace
8968 debug spew printf with g_print which is guaranteed
8969 to work on win32, too.
8971 * lib/font.c (dia_pfd_set_weight) : set 'intermediate' values
8972 for DIA_FONT_MEDIUM and DIA_FONT_DEMIBOLD as explicit allowed
8973 in the pango_font_description_set_weight() api documentation
8974 Take care for them in dia_font_get_style() too.
8976 * lib/font.[hc] lib/widget.c objects/custom/shape_info.c
8977 plug-ins/shape/shape-export.c plug-ins/svg/render_svg.c :
8978 rename Obliquity to Slant which appears to be the usual name,
8979 also rename dia_font_get_style_string -> dia_font_get_slant_string
8981 * plug-ins/wmf/wmf.cpp : finally ported to new font api
8983 * lib/prop_attr.c app/render_gdk.c : dont *_unref if NULL
8985 * objects/uml/association.c class.c large_package.c message.c
8986 if g_free() is used g_strdup needs to be used.
8987 * objects/custom/shape_info.c
8988 objects/ER/attribute.c entity.c
8989 objects/standard/image.c
8990 app/sheets_dialog_callbacks.c : more strdup cleaning
8992 2002-07-05 Lars Clausen <lrclause@cs.uiuc.edu>
8994 * app/render_eps.c: Non-crashing printing (made the right
8995 context). Font output still fscked up.
8997 2002-07-05 Andrew Ferrier <andrew@new-destiny.co.uk>
8999 * app/authors.h: Added file --- now master
9000 location for contributors data.
9001 * app/app_procs.c: Added --credits option.
9002 * app/commands.c: Modified about box to use
9005 2002-07-05 Lars Clausen <lrclause@cs.uiuc.edu>
9007 * app/render_eps.c: First stab at EPS rendering using the contour
9008 code from PAPS. Crashes.
9010 2002-06-30 Lars Clausen <lrclause@cs.uiuc.edu>
9012 * app/recent_files.c (recent_file_history_remove):
9013 Fixed call to g_list_delete_link discarding return value.
9015 * lib/widgets.c (dia_font_selector_set_styles):
9016 * lib/font.h (DiaFontWeight):
9017 * lib/font.c (dia_font_get_style): Revert to DIA_FONT_NORMAL==0
9019 2002-06-30 Cyrille Chepelov <cyrille@chepelov.org>
9021 Contribution from Alan Horkan <horkana@tcd.ie>:
9024 * sheets/Assorted.sheet:
9025 A set of 40 assorted geometric shapes.
9027 * sheets/Assorted.sheet.in:
9028 * sheets/Makefile.am
9029 * shapes/Assorted/Makefile.am:
9030 * shapes/Makefile.am:
9033 Done the integration job of Alan's shapes. (Translators: have fun!)
9035 * po/dia.pot: refreshed the main potfile.
9037 2002-06-28 Cyrille Chepelov <cyrille@chepelov.org>
9039 Patch from Tim Ellis <Tim.Ellis@gamet.com>:
9041 * objects/UML/class.[ch]:
9042 * objects/UML/class_dialog.c:
9043 changed the number of connection points from a hardcoded value of
9044 8 to a #defined constant
9046 (I changed the constant back from 20 to 8, until we better know
9047 how we'll handle more connection points on the UML class in the
9048 future -- but Tim's patch is a welcome clean-up).
9050 2002-06-26 Cyrille Chepelov <cyrille@chepelov.org>
9052 * shapes/MSE/demultiplexer.xpm:
9053 * shapes/MSE/node_center.xpm:
9054 * shapes/MSE/multiplexer.xpm:
9055 * shapes/MSE/tacsat.xpm: updated MSE icons (transparency) by Alan
9056 Horkan <horkana@tcd.ie>
9058 2002-06-25 Lars Clausen <lrclause@cs.uiuc.edu>
9060 * lib/widgets.c: Total rehash of font selector, with font dialog
9061 option, expanding list (not LRU yet), and stuff.
9063 2002-06-25 Cyrille Chépélov <cyrille@chepelov.org>
9067 Added a set of new setter/getters, some of them more specially for
9070 * plug-ins/shape/shape-export.c: (new_shape_renderer),
9071 (destroy_shape_renderer), (set_font), (draw_string):
9072 * plug-ins/svg/render_svg.c: (new_svg_renderer),
9073 (destroy_svg_renderer), (set_font), (draw_string):
9075 Actually exported the font face, style, weight and size (sodipodi
9076 agrees with dia on how a small sample should look like (a sample
9077 0.90 would not even display anyways). Yay !)
9079 Patch from Matthieu Sozeau <mattam@netcourrier.com>:
9081 * plug-ins/xslt/Makefile.am: repaired the mess Cyrille put there.
9083 (end of ChangeLog-less patch)
9085 * objects/custom/shape_info.c (parse_style): now understands the
9086 font-style and font-weight attributes as well. Does not use
9087 anymore dia_font_new_from_legacy_name().
9089 2002-06-24 Lars Clausen <lrclause@cs.uiuc.edu>
9091 * objects/standard/textobj.c: Now uses stdprops for defaults.
9093 * lib/font.h: Changed order of DiaFontWeight entries. Sorry.
9094 * lib/font.c (dia_font_get_style): Style now linear and conversion
9097 * lib/widgets.c (dia_font_selector_set_styles): Fixed the style
9100 2002-06-24 Cyrille Chepelov <cyrille@chepelov.org>
9102 * plug-ins/dxf/dxf-import.c:
9103 using dia_font_new_from_style()
9105 Patch from Matthieu Sozeau <mattam@netcourrier.com>:
9107 * objects/UML/class.[ch]: Added a comment field to class
9108 * objects/UML/uml.[ch]: Added a comment field to attributes,
9109 operations and parameters.
9110 * objects/UML/class_dialog.c: Added code for the new comment
9112 * plug-ins/xslt/*.xsl: Added some code to handle comments.
9113 * plug-ins/xslt/xslt*.c: Clean up based on Cyrille comments.
9114 Added a $directory parameter for stylesheets so the output is
9115 in the good place (not in the $PWD).
9119 * AUTHORS: added contributors, updated maintainers. Removed the
9120 specific areas of action.
9122 * Patch from Andrew Ferrier <andrew@new-destiny.co.uk>, derived
9123 from a patch by Xing Wang <quixon@gnuchina.org>:
9125 * app/commands.c: help_about_callback now supports
9126 new-style GNOME about box as well as old GTK style.
9127 code also tidied (Closes: #85726)
9131 * app/commands.c: fixed the copyright (it's not all FSF), and
9132 maintainers. Synced contributors list with AUTHORS.
9134 2002-06-24 Lars Clausen <lrclause@cs.uiuc.edu>
9136 * lib/message.c: More work on repeating messages, now with
9139 2002-06-24 Hans Breuer <hans@breuer.org>
9141 * lib/widget.c : some more bits in place, at least
9142 it does something useful instead of crashing. Much
9143 better - but not all ok :-)
9145 2002-06-23 Lars Clausen <lrclause@cs.uiuc.edu>
9147 * lib/message.c (gtk_message_internal): First stab at repeating
9150 2002-06-23 Cyrille Chepelov <cyrille@chepelov.org>
9153 * objects/GRAFCET/*.c:
9155 * objects/UML/association.c: (one instance forgotten)
9156 * objects/UML/large_package.c:
9157 * objects/standard/textobj.c:
9160 using dia_font_new_from_style()
9162 2002-06-23 Hans Breuer <hans@breuer.org>
9164 * lib/font.c : giving some love to
9165 dia_font_new_from_legacy_name() that is making
9166 import of old files as painless as possible and
9167 provide an almost exact match where possible.
9168 It does not yet fully work because it interfers
9169 with the Style to DiaStyle conversion which comes
9172 [Changing these files is only allowed with Dia-0.90]
9173 * broken-files/fonts-0.90.dia : including the
9174 common hard-coded fonts from Dia-0.90. It also
9175 has drawn bounding-boxes for win32 as they were calculated
9176 from the former version (they were all too big).
9177 * broken-files/fonts-0.90-full.dia : all hardcoded
9178 fonts including the asian versions. On my machine
9179 this gives _a lot_ complaining about missing fonts
9180 and a finally a broken file display. Anyone having
9183 2002-06-23 Cyrille Chepelov <cyrille@chepelov.org>
9185 * objects/chronogram/*.c:
9186 * objects/custom/custom_object.c:
9188 using dia_font_new_from_style()
9190 2002-06-23 Lars Clausen <lrclause@cs.uiuc.edu>
9192 * lib/widgets.c (dia_font_selector_set_styles): Improvements to
9193 font selector (stability, insensitivity).
9195 * lib/font.c (dia_font_scaled_build_layout): Removed unworkable
9196 stretching scheme for tweaking, and made scaling scheme faster
9198 (dia_font_dia_style_to_pango): Oops, % != /.
9200 2002-06-23 Cyrille Chepelov <cyrille@chepelov.org>
9203 * patch from Matthieu Sozeau <mattam@netcourrier.com>:
9205 * plug-ins/xslt : Added an XSLT plugin to export dia files using
9206 XML Stylesheets. The plug-in requires DIA_PLUGIN_PATH to be set.
9207 It includes a small config file to tell it what stylesheets to use.
9211 * plug-ins/xslt/xsltdialog.c: modified the dialog to be more
9212 GTK2.0/HIG compliant (the labels could be slightly more verbose,
9213 perhaps). Added back a couple forgotten _(). Removed //-style
9216 2002-06-23 Hans Breuer <hans@breuer.org>
9219 (dia_plugin_get_name) : don't crash plugin_manager
9221 (dia_plugin_load) : reuse the description field to
9222 store the error string if loading fails.
9224 * lib/font.[hc] : starting to beautify the new
9225 font api: proper namespacing, adding convenience
9226 functions like dia_font_new_from_style(), ...
9228 * objects/uml/*.c : use the new convenience functions.
9230 [Next thing I plan to do is changing the other font
9231 functions to take DiaStyle and make Style and
9232 BASIC_*_FONT vanish. As well as giving some love to
9233 dia_font_new_from_legacy_name().
9234 If anyone want's to help on converting the other
9235 objects to the new api during that, I would highly
9238 2002-06-23 Hans Breuer <hans@breuer.org>
9240 * lib/font.c : made it compile and small indent fixes.
9241 Is there a code-has-no-effect-so-needs-not-be-valid
9244 * lib/widgets.c : use g_strcasecmp
9246 2002-06-22 Lars Clausen <lrclause@cs.uiuc.edu>
9250 * lib/widgets.c: Font names sorted, style selector widget
9251 reappeared. Doesn't select the old style yet.
9253 2002-06-22 Cyrille Chepelov <cyrille@chepelov.org>
9255 * lib/font.c: one who expects a text's font to be changed shall
9256 actually request the attributes to apply to the whole range of the
9259 * lib/font.c: extents computation was wrong.
9261 * lib/font.c: dia_font_get_legacy_name(); g_strconcat works better
9262 if a last NULL parameter is added...
9264 * lib/font.c: extents computation was completely wrong. This looks
9265 much better this time.
9267 * objects/UML/class.c: fixed the various strings positions.
9269 * lib/font.h, and **/*.[ch] (all callers of dia_font_new): used
9270 macros to get the hardcoded base fonts.
9272 * objects/ER/relationship.c: wasn't converted to DiaFont*
9274 2002-06-22 Hans Breuer <hans@breuer.org>
9276 * lib/widget.c : dont use backend specific functions
9277 to get on the font_families. Including it would mean
9278 including <windows.h> which breaks due to namespace
9281 * lib/libdia.def : updated externals
9283 * app/makefile.msc : temporary disabled: -DHAVE_LIBART
9285 * lib/font.c : added empty dia_font_init_instance function,
9286 reformatting of dia_fon_unref to allow to set breakpoint,
9287 dia_fon_build_layout() : dont crash on string==NULL
9289 * lib/text.c (text_set_attributes) : don't unref the wrong font
9291 * lib/widgets.c (dia_fon_selector_set_font) : our hashtable
9292 stores lowercased font names, but dia_font_get_family()
9295 2002-06-22 Lars Clausen <lrclause@cs.uiuc.edu>
9298 * app/render_gdk.c: Patch from Hans Breuer.
9300 * app/Makefile.am (dia_core_files): diaconv commented out for now.
9302 2002-06-22 Cyrille Chepelov <cyrille@chepelov.org>
9304 * lib/all files touched yesterday: took into account some of Hans
9306 http://mail.gnome.org/archives/dia-list/2002-June/msg00257.html
9308 * objects/chronogram/*:
9311 * objects/flowchart/*:
9313 * objects/GRAFCET/*:
9315 * objects/standard/textobj.?:
9317 converted to the new DiaFonts.
9320 * plug-ins/pstricks/*:
9324 Made minimalistic conversions so that they'd at least compile.
9327 * app/render_pixmap.c:
9328 Converted to the new DiaFonts.
9333 made the minimal changes so that it would at least build.
9335 *** At this point, the thing builds on my machine, but segfaults
9338 2002-06-21 Cyrille Chepelov <cyrille@chepelov.org>
9340 * configure.in: removed the backend-specific pango pkg_modules
9341 (trivial to add back if needed, when actually needed)
9344 * app/*gnomeprint.[ch]: (removed): removed the GNOME-print
9345 renderer. The APIs will have completely changed when we get around
9346 to redo a renderer for it, anyways.
9348 * font.[ch]: rewrote everything from scratch, with a Pango
9349 implementation. Normally, only backend-neutral things should go in
9352 **WARNING**: new rules for managing DiaFont* pointers: these are
9353 reference-counted GObjects. One >must< diafont_ref() and
9354 diafont_unref() as appropriate. I wish I could overload operator=()...
9356 lib/plug-ins.h: bumped up the plug-in API.
9361 lib/object_defaults:
9362 lib/prop_attr.c: Adapted to the new DiaFont API. This'll change
9363 again tomorrow with GObject.
9365 lib/widgets.c: Adapted to the new DiaFont API and to Pango.
9367 **** The rest of the tree should be updated as well ****
9369 2002-06-21 Lars Clausen <lrclause@cs.uiuc.edu>
9373 * app/render_pixmap.c:
9374 * app/render_pixmap.h:
9375 * app/render_libart.h:
9376 * app/render_libart.c:
9378 * lib/font.c: Removed freetype stuff (still around in
9379 lib/widgets.c 'cause we might want the font selector widget).
9381 2002-06-20 Cyrille Chepelov <cyrille@chepelov.org>
9383 * shapes/network/laptop.(xml|shape):
9384 * sheets/network.sheet.in: added Laptop (notebook) PC shape,
9385 contributed by Alan Horkan <horkana@tcd.ie>. (Closes: #82643)
9387 2002-06-17 Hans Breuer <hans@breuer.org>
9389 * lib/object_defaults.c : #include <libxml/tree.h> not
9390 <tree.h> pointed out by Xing Wang
9392 2002-06-17 Lars Clausen <lrclause@cs.uiuc.edu>
9394 * lib/color.h (GDK_COLOR_TO_DIA, DIA_COLOR_TO_GDK):
9396 * app/color_area.c: Update to
9397 gtk_color_selection_*_current_color() fixed bad crash issues, plus
9398 updated color conversions.
9400 * sheets/ER/weakentity.xpm: Accepted patch from
9401 quixon@gnuchina.org to make icon match actual appearance.
9403 * app/recent_files.c: Fixed GNOME recent file problem, thanks to
9404 quixon@gnuchina.org.
9406 2002-06-16 Hans Breuer <hans@breuer.org>
9408 * lib/plug-in.[hc] : make PlugInInfo opaque again in the
9409 good tradition of information hiding. Add new function
9410 dia_plugin_get_symbol()
9411 * app/sheets.c app/sheets_dialog_callbacks.c : use it
9413 * app/sheets.c : stop complaining about object_get_type()
9414 returning NULL. This is a consequence of e.g. disabling
9415 plug-ins at runtime _and_ it was and is gracefully handled.
9416 Spitting out g_warning for it isn't appropriate.
9418 * lib/object.[ch] : removed dead code
9420 * app/plugin-mangager.c : almost complete rewrite for gtk2
9421 using GtkListStore/GtkTreeView
9423 * lib/libdia.def : updated externals
9425 * todo.gtk2 : updated, that is removed already done steps
9427 2002-06-15 Hans Breuer <hans@breuer.org>
9429 * objects/uml/class_dialog.c : clean some left-over
9430 utf8-mess, return 0 from "focus_out_event" handlers
9431 to avoid asserting in gtk (#78305). Reconstruct
9432 stereotype/NULL behaviour to avoid rendering empty
9433 stereotypes on classes and member functions
9435 [#56109 - Provide object defaults for StdProp objects,
9436 some remaining issues are discussed in bugzilla]
9438 * lib/object_defaults.c : (new file) manage default properties
9439 of dia objects. The serialization is done with standard
9440 object methods in a diagram compatible format.
9442 * lib/object.c : add object_registry_foreach() which allows
9443 to iterate over all registered object types
9445 * lib/object.h : added prototypes object_default*() and
9446 object_registry_foreach()
9448 * lib/makefile.am lib/makefile.msc : add new file to build
9450 * lib/libdia.def : export new functions
9452 * app/defaults.c : provide StdProp based defaults if the
9453 ObjectType doesn't implement it's own default functions
9455 * app/create_object.c : through dia_object_default_create()
9456 * app/disp_callbacks.c : same here
9458 2002-06-12 Lars Clausen <lrclause@cs.uiuc.edu>
9460 * objects/FS/flow-ortho.c (orthflow_get_object_menu): Menu
9461 sensitivity for deleting segments.
9463 2002-06-12 Cyrille Chépélov <cyrille@chepelov.org>
9465 * app/color_area.c: (color_area_events):
9466 * app/diagram.c: (diagram_destroy):
9467 * app/interface.c: (zoom_activate_callback), (fill_sheet_wbox),
9469 * app/load_save.c: (diagram_data_load):
9470 * app/menus.c: (menus_get_item_from_path):
9471 * app/preferences.c: (prefs_load):
9472 * app/render_gdk.c: (get_text_width):
9474 * lib/color.c: (color_convert):
9475 * lib/dia_dirs.c: (dia_config_filename):
9476 * lib/dia_xml.c: (xmlDiaParseFile), (data_type):
9477 * lib/intl.c: (intl_get_language_list):
9478 * lib/message.c: (message):
9480 * lib/paper.c: (get_default_paper):
9481 * lib/plug-ins.c: (this_is_a_plugin), (dia_register_plugins):
9482 * lib/widgets.c: (dia_file_selector_get_file):
9484 * objects/standard/image.c: (get_directory):
9488 2002-06-12 Lars Clausen <lrclause@cs.uiuc.edu>
9490 * ChangeLog: Fixed bad UTF-8 mess. Apologies.
9492 2002-06-11 Lars Clausen <lrclause@cs.uiuc.edu>
9494 * app/interface.c: sscanf now returns EOF on empty string, so
9495 handle no match for zoom factor better => correct zoom at start.
9497 * app/sheets.c (create_object_pixmap): Tried to display empty error.
9498 (sheets_optionmenu_create): Died when not finding specified
9499 sheet. Don't think it should.
9501 * objects/UML/association.c: Added patch from osamyn@ulb.ac.be
9502 (bug #84367) to place the text better.
9504 2002-06-11 Cyrille Chepelov <cyrille@chepelov.org>
9506 * configure.in: Added forgotten libgnomeui-2.0 when --enable-gnome
9508 * app/commands.c: Removed unnecessary gnome include. Removed
9509 GNOME-Print support.
9511 * app/menus.h: Removed now unnecessary gnome include.
9513 * app/sheets_dialog.c: Used Gtk 2.0 stock buttons instead of
9514 GNOME-specific stock buttons
9516 2002-06-09 Hans Breuer <hans@breuer.org>
9518 * app/app_procs.c : convert 'Modified diagrams exits'
9519 dialog to use GtkMessageDialog. That gives us:
9520 - icons without Gnome dependency
9521 - much less code, also cross platform
9522 - improved useability ?
9524 * app/color_area.c : the Color Selection Widget looked
9525 quite wrong (alpha problems). Fix it by merging in required
9526 changes stolen from The Gimp cvs
9527 * app/color_area.h : to get the right appearance the maskes
9528 needed to be taken into account
9529 * app/interface.c : adapt to color_area_create changes.
9530 Also remove some dead code and finally remove cvs autexpansion,
9531 I was bothered enough by irrelevant differences :-)
9533 * app/defaults.c app/properties.c app/dia-props.c : use improved GtkDialog
9534 api, i.e stocks and response to make the GnomeDialog usage
9535 obsolete. Also fixed the issue with closing the 'parent'
9536 before closing the dialog
9538 * app/display.[ch] : removed some dead code and conversion
9539 to new GtkDialog api. Also trying to conform to new HIG
9540 standard http://developer.gnome.org/projects/gup/hig/
9542 2002-06-09 Hans Breuer <hans@breuer.org>
9544 * lib/makefile.msc : define GTK_DISABLE_DEPRECATED,
9547 * lib/dia_image.c : gtk_widget_set_default_visual()
9548 remove. It does nothing with Gtk2.
9550 * lib/libdia.def : added ps_unicoder exports
9552 * lib/message.c : remove #GNOME use GtkMessageDialog.
9553 Yeah, Dia gets dialogs wit icons cross-platform.
9555 * lib/prop_geomtypes.c : gtk_spin_button_get_value_as_float()
9556 to gtk_spin_button_get_value()
9558 * lib/prop_inttypes.c : gtk_label_set() -> gtk_label_set_text()
9560 add #undef GTK_DISABLE_DEPRECATED to still use ...
9561 * lib/prop_text.c : ... GtkText
9562 * lib/prop_widgets.c : ... GtkList
9563 * lib/prop_dialogs.c : ... gtk_signal_connect and more
9564 * lib/widgets.c : ... (too much to list here)
9566 * lib/ps-utf8.c : #include <string.h>
9568 2002-06-08 Cyrille Chepelov <cyrille@chepelov.org>
9571 * Makefile.am: Adapted for gtk2.
9572 Removed dependencies on libunicode, on iconv(), on langinfo().
9574 * acconfig.h: removed (now obsolete)
9576 * lib/charconv.[ch]: removed (superceded by glib)
9577 * lib/ps-utf8.[ch]: removed dependency on charconv.[ch]
9579 * **/*.[ch]: removed (utfchar *), (unichar) and other charconv or
9580 libunicode types for their glib counterparts. Fixed the include
9581 paths for libxml2. Removed all traces of libxml1 or non-UTF8
9582 support (there were remains in objects/uml).
9585 2002-06-08 Hans Breuer <hans@breuer.org>
9587 */*.c */*/*.c : remove all the #ifdef *_UTF8_* hell,
9588 only keep the utf-8 clean code cause Dia+Gtk2 now talk it.
9589 Also use g_strdup()'s handling of NULL by returning NULL
9590 again at all places I found (remove unnecessary if's)
9592 * todo.gtk2 : new file to keep notes about gtk2 porting,
9593 further issues and thoughts and some status information.
9594 Also sent to dia-list ('Dia goes Gtk2 ...').
9596 [make it compile with GTK+ 2.0]
9598 * config.h.win32 : #undef GTK_TALKS_UTF8_WE_DONT,
9599 removed definition of S_ISDIR, S_ISREG and getlogin
9601 * */makefile.msc : Use GTK2 and libxml2
9602 BEWARE: makefile.am, configure.in not yet ported !
9604 * app/app_procs.c app/diagram.c : remove
9605 gtk_item_factory_dump_rc code, (it wasn't read in again anyway)
9606 but set use gtk_menu_set_accel_path() on menu creation
9608 * app/color_area.c lib/widgets.c :
9609 make use of gtk_color_selection_set_has_palette ()
9611 * app/commands.c : gdk_pixbuf_new_from_file wants an
9612 extra argument. Convert from DIR to GDir usage.
9614 * app/diagram_tree.c(button_press_callback) : need to return
9615 FALSE in the signal handler to let gtk process it further.
9616 (get_object_name) : don't leak 'prop'
9618 * app/diapagelayout.c : adapt to GtkTypeInfo changes and handle
9619 dia_page_layout_destroy() getting called more than once
9621 * app/diaunitspinner.c : GtkEditable -> GtkEntry,
9624 * app/disp_callbacks.c : gtk_menu_append() -> gtk_menu_shell_append()
9626 * app/display.h : wrap input contexts declarations into #ifdef USE_XIM.
9627 IIRC this code will not compile unchanged when USE_XIM is defined ...
9629 * app/gtk[hv]wrapbox.[hc] : use already ported version from The GIMP 1.3.x
9631 * app/interface.c : there is no widget->klass anymore in Gtk,
9632 use GTK_WIDGET_GET_CLASS instead. gdk_pixbuf_new_from_file() extra
9633 parameter. Some tweaking of GtkWrapBox usage to get four tools in
9635 switch off GTK's double buffering on Dia's canvas. Otherwise we would
9636 get triple buffering and flicker.
9637 Replace call to GTK private function _gtk_accel_group_attach()
9638 with public gtk_window_add_accel_group()
9640 * app/layer_dialog.c : adapt to GtkTypeInfo changes
9642 * app/load_save.c lib/plug-ins.c lib/sheet.c
9643 objects/custom/custom.c :
9644 simplified by using g_file_test()
9646 * app/menus.c : convert from gtk_item_factory_<dump|parse>_rc
9647 to gtk_accel_map_<save|load>. Also added common stock-icons
9650 * app/preferences.c : use gtk_button_set_label() instead
9651 of button->child which is gone. Also removed GLIB_CHECK_VERSION.
9653 * app/preferences.c lib/dia_xml.c lib/plug-ins.c :
9654 #ifdef G_OS_WIN32 #include <io.h>, this was formerly done
9657 * app/recent_files.c : removed GLIB_CHECK_VERSION
9660 plug-ins/metapost/render_metapost.c
9661 plug-ins/pstricks/render_pstricks.c
9662 plug-ins/svg/render_svg.c :
9663 replace getlogin() with g_get_user_name() which always
9666 * app/render_gdk.c : gdk_region_union_with_rect() modifies
9667 inplace now and returns nothing, also less #hell
9669 * app/render_libart.c : some initial #hell cleaning, SuckFont
9670 still needs to vanish
9672 * app/splash.c : gdk_pixbuf_new_from_file() second arg and
9673 GTK_WINDOW_DIALOG -> GTK_WINDOW_TOPLEVEL
9675 * app/render_pixbuf.c app/sheets.c : plain #hell cleaning
9676 * app/sheets_dialog_callbacks.c : some #hell and adaptions
9677 needed to GtkWrapBox api changes
9680 * lib/charconv.[hc] : removed from build
9681 [changed appropriate]
9682 * lib/prop_inttypes.c lib/prop_text.c :
9684 * lib/text.c : ported from HEAD but keep original indent
9685 intact. Original was done by Akira TAGOH.
9687 * lib/color.c : GdkColorContext is gone, use GdkColormap instead.
9689 * lib/dia_image.c : gdk_pixbuf_new_from_file() second arg
9691 * lib/dia_xml.c : remove #ifdef GLIB_CHECK_VERSION, it's the
9692 same on all platforms now!
9694 * lib/font.c : still using SuckFont which was an IMPERATIVE FIXME!
9696 * lib/message.c : remove "charconv.h"
9698 * lib/prop_text.c : #define GTK_ENABLE_BROKEN to use GtkText
9701 * lib/sheet.c : convert from DIR to GDir usage
9703 * lib/widgets.c : gtk_menu_(shell_)append and GtkTypeInfo
9705 * lib/widgets.h : include gtk<label|colorseldialog>.h
9708 * objects/fs/flow.c :
9709 * objects/fs/flow-ortho.c : GTK_ENABLE_BROKEN to use GtkText
9711 * objects/custom/custom.c : convert from DIR to GDir usage
9714 * plug-ins/python/makefile.msc : updated for GTK2/Python2.2
9717 2002-05-03 Hans Breuer <hans@breuer.org>
9719 * lib/dia_xml.c : make the well formed utf8 check
9720 actually work for û (non 7-bit ascii encoding)
9721 and fixed the file re-writing if the check fails.
9722 Thanks to Vitaly Lipatov for noticing the misbehaviour.
9724 * lib/font.c : synchronize #ifdef G_OS_WIN32 with
9725 comment on last ressort font. Thanks to Maxim Sobolev.
9727 2002-06-03 Cyrille Chepelov <cyrille@chepelov.org>
9729 * sheets/network.sheet.in: corrected a typo in plotter invocation.
9731 2002-06-03 Steffen Macke <sdteffen@web.de>
9733 * shapes/network/digitizing_board.png:
9734 * shapes/network/digitizing_board.shape:
9735 * shapes/network/plotter.png:
9736 * shapes/network/plotter.shape:
9737 * shapes/network/Makefile.am
9738 * sheets/network.sheet.in: added new plotter and digitizing
9741 2002-06-02 Cyrille Chepelov <cyrille@chepelov.org>
9743 * lib/font.c: made a symptomatic fix to a segfault reported by
9744 Jan Keirse <jan.keirse@pandora.be> on a SuSE 7.3 system. This
9745 won't prevent dia from terminating, but should give more
9746 user-friendly information about why did it terminate.
9748 Two patches from <robert.young@dsto.defence.gov.au>:
9750 * app/display.c: fix the size of the canvas area which gets
9751 redrawn. There was an off-by one error (Closes #83659)
9753 * app/display.c: make sure we redraw all screen only when we
9754 really have to (some update_areas were mistakenly ignored) (Closes
9757 * NEWS: added a new entry for the future. Put there a reminder to
9758 update the dependencies.
9760 * configure.in: put in notes about what will change shortly.
9761 upped the version to 0.90+cvs (did also in config.h.win32)
9762 upped the minimum version for intltools (now 0.21)
9764 2002-06-01 Cyrille Chepelov <cyrille@chepelov.org>
9770 bumped up version number to 0.90. Yay!
9772 2002-05-30 Cyrille Chepelov <cyrille@chepelov.org>
9774 * doc/pl/Makefile.am:
9775 * doc/en/Makefile.am: fixed a "make install" problem when db2html
9776 is not present (Reported by Andrew Ferrier
9777 <andrew.junk@new-destiny.co.uk>). Fixed another "make distclean"
9778 problem which prevented me from ever seeing the problem in doc/en...
9780 * Makefile.am: added autogen.sh to the EXTRA_DIST clause.
9782 * lib/font.c: patch from <robert.young@dsto.defence.gov.au>; add a
9783 way to read the font path from the XFS configuration files in
9784 order to enable FreeType (fixes #83098).
9786 * POTFILES.(in,skip): now skips objects/sybase/sybase.c, which is not
9793 bumped up version number to 0.90.RC3
9795 2002-05-29 Zbigniew Chyla <cyba@gnome.pl>
9797 * configure.in, doc/Makefile.am, doc/pl/Makefile.am,
9798 doc/pl/authors.sgml, doc/pl/dia-manual.sgml, doc/pl/dia-pl.omf,
9799 doc/pl/intro.sgml, doc/pl/license.sgml, doc/pl/topic.dat
9800 doc/pl/usage-canvas.sgml, doc/pl/usage-customization.sgml,
9801 doc/pl/usage-layers.sgml, doc/pl/usage-loadsave.sgml
9802 doc/pl/usage-objects-selecting.sgml, doc/pl/usage-objects-special.sgml,
9803 doc/pl/usage-objects.sgml, doc/pl/usage-quickstart.sgml:
9804 Added Polish documentation.
9806 2002-05-27 Cyrille Cheeplov <cyrille@chepelov.org>
9808 * objects/UML/state.c: there was a (gratuitous?) change of on-XML
9809 format for the UML State object. Now there's a hack to reload
9810 older files, and get them converted on the fly.
9811 Justyna BiaÃ…?a <nell@poczta.gazeta.pl> reported this. Thanks!
9815 * lib/proplist.c: Added a new property flag, PROP_FLAG_LOAD_ONLY,
9816 and adapter the proplist predicates. A LOAD_ONLY property is for
9817 when you have legacy to support but can't resist moving your
9818 fields around... (was needed to support the above state.c fix).
9820 If the in-core of your object changes and you need a LOAD_ONLY
9821 property for the old format, you must keep some spare room in your
9822 object's struct to accomodate for the potential old-style
9823 attributes. Then in foo_load(), after having called
9824 object_load_using_properties(), you must inspect the old-style
9825 fields and act accordingly. Don't ever change the on-disk formats...
9827 * objects/UML/object.c:
9828 * objects/UML/small_package.c: added a check against empty
9829 stereotypes still consuming space. Reported by Dolores Alia de
9830 Saravia <loli@unsa.edu.ar>. Thanks!
9832 2002-05-26 Cyrille Chepelov <cyrille@chepelov.org>
9834 * INSTALL: added platform notes from MÃ¥rten Svantesson, for when
9835 using libtool on an AFS partition.
9837 * po/update_potfiles_in.sh: now simply calls the recent intltools
9838 features; they work better than hand-crafted half-ignorant
9839 scripts. Thanks to Kenneth Rohde Christiansen <kenneth@gnu.org>
9842 * po/POTFILES.in: added back two files update_potfiles_in.sh
9843 didn't take into account. Now this file is not automatically
9845 * po/POTFILES.skip: told `intltool-update -m` what files to ignore
9846 (the usual suspects, in fact).
9848 * configure.in: improved the isinf() / isfinite() detection on
9849 Solaris (MÃ¥rten Svantesson)
9851 2002-05-25 Cyrille Chepelov <cyrille@chepelov.org>
9853 * configure.in: one expression was replacing $CFLAGS, removing
9854 whatever was previously in.
9855 Added more checks for isinf() and finite() on Solaris.
9857 * lib/geometry.h: added a macro defintion for isinf() if not
9858 HAVE_ISINF. (Hans, you may want to #define HAVE_ISINF if relevant
9861 * app/commands.c: "cut" did not set the 'modified' bit (paste has
9862 been for a little while). Fixes #82994.
9864 * Makefile.am: added more stuff to distclean-local. This should make
9865 "make distcheck" pass! Thanks to the author of
9866 http://mail.gnome.org/archives/gnome-2-0-list/2001-August/msg00212.html
9867 ... I wonder who this Henstridge guy is ... ;-)
9868 Darn. Still doesn't pass. I give up for tonight.
9870 * po/update_potfiles_in.sh: updated to take care of sheet files,
9871 and to filter out the EML plug-in.
9872 * po/POTFILES.in: updated with all .c and all .sheet.in files
9874 * po/dia.pot, po/*.po: again updated all .po files with all
9875 strings (with the updated POTFILES). Now with the up-to-date
9876 POTFILES, just all languages have some fuzzy or untranslated
9877 strings (not that the 100% team was that large beforehand...)
9879 * po-checktrans: removed the comment about .po files not holding
9880 all translatable stuff, since now they do.
9882 2002-05-24 Cyrille Chepelov <cyrille@chepelov.org>
9888 bumped up version number to 0.90.RC2
9890 2002-05-20 Hans Breuer <hans@breuer.org>
9892 * app/load_save.c : starting to increase
9893 Dias tolerance on incomplete/broken files. The
9894 corresponding bug is #56233. But the patch there does
9895 neither apply anymore nor does it really fix the problem
9896 but only delays it, e.g. even if it would be allowed
9897 to read a file without any layers, the later code can't
9899 * lib/dia_xml.c : attribute_<num|first>_data(), data_type()
9900 handle passing in NULL for the node gracefully.
9902 * shapes/network/printer.shape : added two more connection
9903 points - one at each side - to fix bug #60359
9905 * app/commands.c (edit_copy_callback) :
9906 add ddisplay_do_update_menu_sensitivity() to make
9907 sequence select-copy-paste work.
9909 2002-05-20 Hans Breuer <hans@breuer.org>
9911 * app/create_object.c (create_object_button_press) :
9912 added a call to ddisplay_do_update_menu_sensitivity()
9913 to make Ctrl^D etc work after object creation.
9916 2002-05-18 Lars Clausen <lrclause@cs.uiuc.edu>
9918 * objects/ER/entity.c:
9919 * objects/ER/attribute.c:
9920 * objects/ER/relationship.c: Patch to allow text size change from
9921 Celso Tetsuo Nagase Suzuki.
9923 2002-05-18 Steffen Macke <sdteffen@web.de>
9925 * app/app_procs.c: #ifdef'd xmlerror.h (comes with
9927 * doc/en/graphics/greendots.png:
9928 * doc/en/home_network.png:
9929 * doc/en/line_props.png:
9931 * dia_gnome_icon.png:
9932 * dia_gnome_menu_icon.png:
9934 * shapes/network/telephone.png:
9935 * shapes/Logic/and.png:
9936 * shapes/Logic/buffer.png:
9937 * shapes/Logic/connector.png:
9938 * shapes/Logic/inverter.png:
9939 * shapes/Logic/nand.png:
9940 * shapes/Logic/nor.png:
9941 * shapes/Logic/not.png:
9942 * shapes/Logic/or.png:
9943 * shapes/logic/xor.png:
9944 * samples/ER-demo.dia:
9946 * samples/UML-demo.dia:
9947 * samples/chronograms.dia:
9948 * samples/grafcet.dia: re-added as binary files
9950 2002-05-17 Hans Breuer <hans@breuer.org>
9952 * lib/libdia.def : reflect removing of render_store.[ch]
9954 * */makefile.mingw : remove VERSION definition it's
9955 done in config.h.win32. Dia still doesn't work if
9956 build with mingw ...
9958 * RELEASE-PROCESS : removed */makefile.mingw
9960 * app/sheets_dialog_callbacks.c : if we use those
9961 ugly charconv_gtk_* functions lib/charconv.h needs to
9963 * lib/charconv.h : ... and needs to contain the
9964 necesseray prototypes _and_ #defines
9966 * plug-ins/shape/shape-export.c : with libxml2 xmlNewGlobalNs
9967 is deprecated and does nothing but spit a warning. This broke
9968 the shape format writing. Fixed.
9969 Also with libxml2 pretty formatted xml isn't the default
9970 anymore, but needs to be enabled explicit: It is done now
9971 for shape files, which almost always needed to be edited by
9974 * app/app_procs.c : #if G_OS_WIN32 redirect xmlErrorReporting
9975 from stderr - which is invalid on Dia/win32 - to g_print -
9976 which opens up a console window if necessary. This way
9977 a xml-deprecation-error shouldn't stay unnoticed next time
9979 2002-05-17 Steffen Macke <sdteffen@web.de>
9981 * shapes/Misc/folder.png:
9982 * shapes/Misc/file.png: re-added as binary files
9984 2002-05-16 Lars Clausen <lrclause@cs.uiuc.edu>
9986 * lib/font.c: Fixed segfault for fonts without family_name.
9988 2002-05-17 Cyrille Chepelov <cyrille@chepelov.org>
9990 * po/POTFILES.in: added app/sheets_dialog_callbacks.c
9992 * app/sheets_dialog_callbacks.c: While reviewing UTF-8isation upon
9993 Lars' request, minor cosmetic stuff (mostly _() of human-readable
9994 XML comments in .sheet files; one translator booby-trap disarmed).
9996 * lib/charconv.c: moved #hell inside the body of the new
9997 charconv_*gtk* functions (otherwise the Win32 or gtk2.0 linker
10000 2002-05-16 Lars Clausen <lrclause@cs.uiuc.edu>
10002 * plug-ins/wpg/Makefile.am (INCLUDES):
10003 * plug-ins/shape/Makefile.am (INCLUDES):
10004 * plug-ins/svg/Makefile.am (INCLUDES):
10005 * plug-ins/pstricks/Makefile.am (INCLUDES):
10006 * plug-ins/metapost/Makefile.am (INCLUDES): Added UNICODE_CFLAGS
10007 and DEBUG_CFLAGS in some missing places.
10009 * MAINTAINERS: New file containing list of known package
10013 * lib/charconv.c: Charconv versions of some common gtk calls.
10015 * app/sheets_dialog_callbacks.c
10016 (on_sheets_new_dialog_button_ok_clicked),
10017 (on_sheets_dialog_button_edit_clicked),
10018 (on_sheets_dialog_button_remove_clicked),
10019 (on_sheets_edit_dialog_button_ok_clicked):
10020 * app/sheets.c (sheets_optionmenu_create),
10021 (sheets_optionmenu_create): Added utf8 translations.
10023 * app/sheets_dialog.c:
10025 * app/sheets_dialog_callbacks.c: Added some missing _()'s.
10027 2002-05-16 Cyrille Chepelov <cyrille@chepelov.org>
10029 * po/POTFILES.in: added app/sheets_dialog.c
10031 2002-05-15 Cyrille Chépélov <cyrille@chepelov.org>
10033 * lib/charconv.c: (charconv_local8_to_utf8),
10034 (charconv_utf8_to_local8): tweaked the warnings to get more
10036 * lib/font.c: (font_get_suckfont): handled a potential case of
10037 uninitialised data being used (just paranoid)
10039 * objects/GRAFCET/boolequation.c: (opstring),
10040 (opblock_get_boundingbox), (opblock_draw),
10041 (boolequation_calc_boundingbox): some extra hoops needed now dia
10042 talks UTF8 (but gtk doesn't). More #hell. Beeek. Basically, the
10043 symbols can't yet be used with their proper Unicode cells, since
10044 gtk will demand them in the Symbol font, expressed in the local
10047 * samples/grafcet.dia: re-saved, now with a fixed bounding box (by
10048 the fix just above).
10050 2002-05-14 Lars Clausen <lrclause@cs.uiuc.edu>
10052 * app/diagram_tree.c (get_object_name): Check that name property
10053 doesn't have null string.
10055 2002-05-13 Lars Clausen <lrclause@cs.uiuc.edu>
10057 * autogen.sh (DIE): Added conditional --force to gettextize.
10059 * app/pagesetup.c (pagesetup_ok): Commented out missing Gnome
10062 2002-05-13 Cyrille Chepelov <cyrille@chepelov.org>
10064 * RELEASE-PROCESS: added James' notes on how to properly make the
10067 * configure.in: removed macro nesting related to libpng.h, which
10068 was causing some problems on some systems (like mine, which made
10069 the snapshots bad).
10071 Made --enable-unicode, previously an option, the mandatory case.
10073 * app/Makefile.am: updated EXTRA_DIST
10076 * app/makefile.mingw:
10078 * doc/en/dia-manual.sgml:
10079 * plug-ins/makefile.mingw:
10080 * configure.in: bumped up the version number to 0.90.RC1
10082 * lib/render_objects.[ch]:
10083 * po/POTFILES.in: removed render_objects from the build.
10085 * plug-ins/Makefile.am:
10086 * plug-ins/wmf/Makefile.am (new): EXTRA_DIST'ed the WMF plug-in,
10087 so we keep its source in the tarball.
10089 * objects/network/*.c, Makefile.am:
10090 * objects/sybase/*.c, Makefile.am:
10091 * po/POTFILES.in: cleaned up the non-existent files from the po
10094 * plug-ins/Makefile.am: re-enabled metapost plug-in.
10096 2002-05-13 Steffen Macke <sdteffen@web.de>
10099 * app/command.c: added M. C. Nelson to the Authors
10100 * sheets/Circuit/Makefile.am: added firewall shape to build
10101 * sheets/network/Makefile.am: added telephone and microphone
10104 2002-05-13 Lars Clausen <lrclause@cs.uiuc.edu>
10106 * RELEASE-PROCESS: Added list of files that contain the release
10107 number or should otherwise be changed at each release.
10109 2002-05-12 Lars Clausen <lrclause@cs.uiuc.edu>
10111 * objects/UML/uml.c (uml_operation_read): Forgot to commit this
10112 (reported fixed) bug: POLYMORPHIC -> LEAF for default.
10114 2002-05-12 Hans Breuer <hans@breuer.org>
10116 * config.h.win32 : changed VERSION to 0.90.RC1
10118 * app/makefile.msc lib/makefile.msc : use renamed
10119 gdk-pixbuf version (same content but renamed because
10120 all the other gtk+ dlls are renamed) to avoid trouble
10121 mixing gtk versions (of which one would not
10124 * app/app_procs.c : removed recently unneeded
10125 inclusion of "sheets.h"
10127 * app/render_gdk.c : removed my own debug spew
10128 which should never made it to cvs
10130 * lib/render_object.[hc] : added
10131 #error "File not used anymore."
10133 * lib/libdia.def : updated externals
10135 * app/interface.c : dropped filenames need to be
10136 converted from uri with Gtk+2.0
10138 2002-05-12 Cyrille Chepelov <cyrille@chepelov.org>
10140 * RELEASE-PROCESS (new): a draft document about how to release. To
10141 be discussed. (already with some input from Hans Breuer)
10143 2002-05-12 Steffen Macke <sdteffen@web.de>
10145 * sheets/Makefile.am: re-added Misc sheet to make process
10147 2002-05-12 Lars Clausen <lrclause@cs.uiuc.edu>
10149 * objects/FS/function.c: Added comments to humungous list of menu
10150 items, to aid translators.
10152 2002-05-11 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
10154 * app/menus.c (display_menu_items): Added a few shortcuts for zooms.
10156 * app/menus.c (display_menu_items): Added a few shortcuts for zooms.
10158 * app/interface.c (create_toolbox): Disallow shrinking beyond
10159 requested size. Fixes bug #59439, and confirms to GTK guidelines
10160 (see gtk_window_set_policy).
10161 (create_sheets): Removed now unnecessary set_usize call.
10163 2002-05-10 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
10165 * lib/beziershape.c (remove_handles): Fixing removal of last
10166 segment. Undo of removal still hokey.
10168 2002-05-10 Lars Clausen <lrclause@cs.uiuc.edu>
10170 * lib/bezier_conn.c (remove_handles): Proper offset for fixing
10172 * lib/beziershape.c (beziershape_init): Removed early call to
10173 beziershape_update_data where points aren't set yet.
10174 (beziershape_add_segment): Use segment 0 instead of overflowing
10175 points array with segment+1.
10176 (beziershape_remove_segment): Proper offset for fixing
10178 (remove_handles): Proper offset.
10180 2002-05-08 Lars Clausen <lrclause@cs.uiuc.edu>
10182 * objects/GRAFCET/action.c (action_update_data): Init x value of
10183 click point for call to connpointlist_adjust_count.
10185 * app/modify_tool.c (create_modify_tool): Init tool->auto_scrolled
10187 * app/render_pixmap.c (new_pixmap_renderer): Moved first linestyle
10188 setting to where values are inited.
10190 * lib/polyshape.c (polyshape_init): Removed call to
10191 polyshape_update_data that tried to use uninitialized data.
10193 2002-05-06 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
10195 * app/sheets_dialog.c: Mass removal of //-style comments. The
10196 Irix compiler doesn't like them:( I do...
10198 2002-05-06 Lars Clausen <lrclause@cs.uiuc.edu>
10200 * app/render_libart.c (draw_string): Bail out when no GDK font is
10202 (set_font): Give error when font not found.
10203 (set_fillstyle): Intlized error msg.
10205 * app/pagesetup.c (pagesetup_ok, pagesetup_apply): Sets diagram
10206 modified when applied (and ok only does apply if apply is set
10207 sensitive). Fixes bug #75623.
10209 2002-05-06 Pablo Saratxaga <pablo@mandrakesoft.com>
10211 * configure.in: Added Vietnamese (vi) to ALL_LINGUAS
10213 2002-05-05 Steffen Macke <sdteffen@web.de>
10215 * app/Makefile.am: added $(UNICODE_CFLAGS)
10217 2002-05-02 Lars Clausen <lrclause@cs.uiuc.edu>
10219 * app/commands.c (help_manual_callback): Check return value of
10222 * plug-ins/xfig/Makefile.am (INCLUDES): Added DEBUG_FLAGS
10224 * plug-ins/xfig/xfig-import.c: Fixed misspelled Poly_L_ine, added
10227 2002-04-30 Lars Clausen <lrclause@cs.uiuc.edu>
10229 * app/render_gdk.c (draw_string): Extra free killed. Thanks valgrind!
10231 * objects/UML/uml.c (uml_operation_read): Fix of UML default
10234 2002-04-30 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
10236 * app/filedlg.c (file_save_as_callback, file_save_as_ok_callback):
10237 Added button to toggle diagram compression.
10239 2002-04-29 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
10241 * lib/font.c: Support for loading extra kerning files, plus got
10242 rid of rounding errors. Bounding box mostly perfect for freetype
10244 (font_string_width): Fudge factor to get around nonlinearity of
10247 2002-04-29 Lars Clausen <lrclause@cs.uiuc.edu>
10249 * lib/font.c (font_string_width): YA font calculation scheme, with
10252 * objects/UML/class.c (umlclass_calculate_data): Uses the same
10253 font for drawing and calculating now.
10255 * configure.in: Added utime.h check.
10257 * app/render_gdk.c (draw_string): Uses gdk_draw_text_wc when in
10258 GTK_DOESNT_TALK_UTF8_WE_DO. Thus it matches the string width calc.
10260 2002-04-26 Hans Breuer <hans@breuer.org>
10262 [ Instead of fixing about 70 occurances in 20 files
10263 where GTK_TALKS_UTF8_WE_DONT needed to be handled
10264 Dia on win32 from now on uses glib-2.0 and not
10265 only talks utf-8 with gtk-1.3 but also internally.
10266 GTK_TALKS_UTF8_WE_DONT isn't supported/needed
10269 * config.h.win32 : #define UNICODE_WORK_IN_PROGRESS
10270 #undef GTK_TALKS_UTF8_WE_DONT
10272 * */makefile.msc : changes to use glib-2.0 (still
10273 using gtk+1.3(win32-production)
10275 * app/disp_callbacks.c : remove GTK_TALKS_UTF8_WE_DONT,
10276 adapt kevent->string handling, add <string.h>
10277 * app/render_gdk.c (get_text_width) : the length given
10278 is in chars, gdk_text_width() needs bytes
10280 * app/render_libart.c :
10281 * app/render_pixmap.c : remove GTK_TALKS_UTF8_WE_DONT
10282 (could simplify the same way as done in render_gdk.c)
10284 * app/diagram_tree.c app/paginate_gdiprint.cpp
10286 * lib/prop_basic.c lib/prop_geomtypes.c
10287 lib/propdialgs.c lib/propobject.c :
10288 added <string.h> which is now removed from charconv.h
10290 * lib/charconv.h : optional use infrastructure from
10291 glib-2.0 -> only five direct function mapping left
10293 * lib/charconv.c : avoid to build this with glib-2.0
10295 * lib/font.c : no string conversion needed anymore
10296 when Dia and Gtk talk utf-8, also code adaptions
10297 for GLIB_CHECK_VERSION(2,0,0)
10299 * lib/libdia.def : removed charconv functions
10301 * lib/prop_inttypes.c : removed GTK_TALKS_UTF8_WE_DONT,
10302 replace charconv_unichar_to_utf8() with g_unichar_to_utf8()
10304 * lib/prop_text.c lib/prop_widgets.c lib/font.c :
10305 removed GTK_TALKS_UTF8_WE_DONT
10307 * lib/text.c : finally(?) fixed cursor <place|move>ment
10308 for Umlauts. Also fixed char insertion, still wondering
10309 how this could ever work. Does realloc on Linux
10310 initialize the memory with zeros ?
10312 * objects/chronogram/chronoline_event.c
10313 objects/grafcet/boolequation.c :
10314 there is no uni_get_utf8 when building for glib-2.0.
10315 Replace with g_utf8_get_char() and g_utf8_next_char().
10317 * objects/uml/stereotype.c (bracketted_to_string) :
10318 simplify while adding code for glib-2.0 build
10320 2002-04-27 Lars Clausen <lrclause@cs.uiuc.edu>
10322 * app/diagram.h: Autosave field
10323 * app/diagram.c (diagram_set_modified): Sets autosave field.
10325 * objects/UML/usecase.c (usecase_update_data):
10326 * objects/flowchart/ellipse.c (ellipse_update_data):
10327 * objects/flowchart/parallelogram.c (pgram_update_data):
10328 * objects/flowchart/diamond.c (diamond_update_data):
10329 * objects/custom/custom_object.c (custom_update_data):
10330 * objects/UML/state.c (state_update_data):
10331 * objects/UML/small_package.c (smallpackage_update_data):
10332 * objects/UML/object.c (objet_update_data):
10333 * objects/UML/note.c (note_update_data):
10334 * objects/UML/node.c (node_update_data):
10335 * objects/UML/component.c (component_update_data):
10336 * objects/UML/classicon.c (classicon_update_data):
10337 * objects/UML/actor.c (actor_update_data):
10338 * objects/SADT/box.c (sadtbox_update_data):
10339 * objects/FS/function.c (function_update_data):
10340 All now update text boundaries from update_data.
10342 * lib/widgets.c (dia_font_selector_set_styles): Made the style set
10345 2002-04-26 Hans Breuer <hans@breuer.org>
10347 * config.h.win32 : added VERSION definition here
10348 (and removed from makefile.msc's)
10350 * app/makefile.msc : added new files
10352 * app/app_procs.c (app_init): remove sheets_dialog_create()
10353 from start-up and ...
10355 * app/sheet.c (sheets_dialog_show_callback) : ... lazy create
10356 sheet_dialog here when it is really needed.
10357 #include "../lib/message.h", make sheets_dialog_create()
10358 return it's success or failing on (!custom_type_symbol).
10359 Although editing shapes is nice IMHO it isn't crucial enough
10360 to abort() Dia if it isn't possible.
10362 * app/sheet.h : adapt create_sheet_dialog() prototype
10364 * app/sheets_dialog.c : add #ifdef HAVE_UNISTD_H
10366 * app/sheets_dialog_callbacks.c : #ifdef HAVE_UNISTD_H and
10367 #ifdef HAVE_UTIME_H. Otherwise #include <sys/utime.h> and
10368 name space corrections for utime() and utim_buf #ifdef
10371 * lib/libdia.def : export new sheet functions
10373 * lib/makefile.msc : added new files
10375 * lib/render.c : don't put draw_bezier_with_arrows() in
10376 the DrawLineWithArrowsFunc slot
10378 * objects/custom/custom_object.c : #include <gmodule.h>
10379 and export 'custom_type' via G_MODULE_EXPORT
10381 * objects/uml/class_dialog.c : removed 'incompatible
10382 types' warnings. Some refactoring while making it fit
10383 on screen with 800x600 again.
10385 * plug-ins/python/pydia-cpoint.h : add PyDiaConnectionPoint_Check
10387 * plug-ins/python/pydia-handle.h : extra parameter to
10388 PyDiaHandle_New to store the owner of the handle
10389 * plug-ins/python/pydia-handle.c : store handle owner
10390 on construction and use it in new method .connect()
10391 * plug-ins/python/pydia-object.c plug-ins/python/pydia-diagram.c :
10392 adapt to changed prototype
10394 2002-04-24 Lars Clausen <lrclause@cs.uiuc.edu>
10396 * lib/text.c (text_calc_boundingbox): Will now return early if box
10399 * objects/flowchart/box.c (box_update_data): Now updates text
10400 width info from update_data.
10402 2002-04-23 Steffen Macke <sdteffen@web.de>
10404 * plug-ins/xfig/xfig-import.c: fixed text import
10406 2002-04-22 Lars Clausen <lrclause@cs.uiuc.edu>
10408 * app/export_png.c: Moved dialog functions to their own file.
10409 * app/dialogs.[ch]: New files with standard functions for creating
10410 small, transient dialogs (e.g. export options).
10411 * app/Makefile.am: Added dialogs.[ch]
10413 2002-04-19 Steffen Macke <sdteffen@web.de>
10415 * shapes/Misc/folder.*:
10416 * shapes/Misc/file.*:
10417 * shapes/Misc/Makefile.am:
10418 * shapes/Makefile.am:
10419 * sheets/Misc.sheet.in:
10420 * sheets/Makefile.am:
10421 * configure.in: added new Misc sheet containing filesystem shapes
10423 2002-04-18 Lars Clausen <lrclause@cs.uiuc.edu>
10425 * app/lineprops_area.c: Arrow selector in toolbox changed to use
10426 standard arrowdraw code. Line is thinner to make some arrowheads
10429 2002-04-18 Steffen Macke <sdteffen@web.de>
10431 * sheets/network.sheet.in:
10432 * shapes/network/telephone.shape:
10433 * shapes/network/Makefile.am: added telephone shape
10435 2002-04-16 Steffen Macke <sdteffen@web.de>
10437 * sheets/EML.sheet.in: commented out unavailable shapes
10439 2002-04-15 M.C. Nelson <mcn@kobayashimaru.org>
10441 * app/sheets_dialog_callbacks.c: Fixed segfault caused by mis-ordered
10442 variable assignment.
10444 2002-04-15 Steffen Macke <sdteffen@web.de>
10446 * plug-ins/dxf/dxf-import.c: text import works again
10447 * shapes/Pneumatic/Makefile.am: added compush shape
10448 * sheets/Pneumatic.sheet.in: commented out unavailable shapes dist33
10451 2002-04-11 M.C. Nelson <mcn@kobayashimaru.org>
10453 * All these modifications are for the 'Sheets and Objects' dialog
10456 * app/pixmaps/line_break.xpm: new icon representing a line break.
10458 * app/pixmaps/n_a.xpm: new empty icon representing not available.
10460 * app/Makefile.am: added sheets_*.[ch] files to compile list.
10462 * app/menus.c: added GNOME and gtk menu items for 'Sheets and Objects'
10464 * app/sheets_dialog.c: [new file] definition of 'Sheets & Objects' dlgs
10466 * app/sheets_dialog.h: [new file] support for Sheets & Objects dlgs
10468 * app/app_procs.c: added call to sheets_dialog_create() in app_init()
10470 * app/sheets_dialog_callbacks.c: [new file] callbacks for S & O dialogs
10472 * app/sheets_dialog_callbacks.h: [new file] support for " " "
10474 * app/interface.c: added 'interface_current_sheet_name' global to
10475 fill_sheet_wbox(); made fill_sheet_menu() non-static
10477 * app/interface.h: added extern declaration for aboves.
10479 * app/sheets.c: [new file] instantiation and other funcs for S & O dlgs
10481 * app/sheets.h: [new file] declarations for backing store structures
10483 * lib/sheet.c: modification of new_sheet() parameters; introduction
10484 of USER and SYSTEM scope for sheets; procedure for sorting sheets;
10485 changes to load_register_sheet().
10487 * lib/sheet.h: added 'user_data_type' field to SheetObject structure;
10488 added 'has_icon_on_sheet' flag to SheetObject structure; added
10489 'filename', 'scope', 'shadowing' fields to Sheet structure.
10491 * lib/plug-ins.c: moved _PluginInfo declaration to header file where
10494 * lib/plug-isn.h: see above.
10496 * lib/object.c: added 'sheet.h' to include list; added several
10498 to detect objects which are not found on any sheet (for future use)
10499 object_type_detect_nosheet_callback(), object_types_detect_nosheet(),
10500 object_type_get_sheet_name(), object_type_strip_sheet_from_name().
10502 * lib/object.h: added public declarations for above functions where
10505 * objects/custom/custom.c: made custom_object_load() non-static so we
10506 can load and interpret .shape files from the Sheets & Objects dialog
10508 * objects/custom/custom_object.c: made 'custom_type' non-static so
10509 we can differentiate between SVG shapes and other types.a
10511 2002-04-07 Hans Breuer <hans@breuer.org>
10513 * app/object_ops.c (object_list_align_v): Fix the 'Leak fix'
10514 from 2002-01-22 to not destroy diagram->data->selected.
10515 Avoids to crash on Objects/Align/Vertical/Top
10517 * app/render_eps.c (draw_string) : un-const buffer
10518 It isn't at all const (g_malloc(), assignment, g_free()).
10519 Doesn't gcc catch such ?
10521 * lib/arrows.h : prototype calculate_arrow_point()
10523 * lib/font.c (font_get_suckfont) : no need to
10524 special case gdk_draw_string() with GTK_TALKS_UTF8,
10525 cause all the parameter differences are handled above
10527 * lib/libdia.def : updated externals
10529 * lib/makefile.msc : removed string_prerenderer, added render
10531 * lib/render.c (draw_rect) : don't pass a Point** if a Point*
10532 is expected. [Sometimes it's good to read compiler warnings.]
10534 * objects/standard/image.c : simplified by use of g_strconcat()
10536 * plug-ins/python/makefile.msc : updated for Python 2.2
10538 2002-04-03 Lars Clausen <lrclause@cs.uiuc.edu>
10540 * objects/standard/zigzagline.c (zigzagline_draw): Fixed
10541 directionality problem for zero-length line segments.
10543 2002-03-28 Lars Clausen <lrclause@cs.uiuc.edu>
10545 * app/diagram.c (diagram_ungroup_selected)
10546 (diagram_update_menu_sensitivity): Now allows ungrouping of
10547 several groups at once.
10549 2002-03-15 Lars Clausen <lrclause@cs.uiuc.edu>
10551 * lib/render.c, all renderers: Binary incompatibility, change to
10552 expandable renderops structure.
10554 2002-03-15 Steffen Macke <sdteffen@yahoo.com>
10556 * objects/standard/Makefile.am:
10557 * objects/network/Makefile.am:
10558 * objects/UML/Makefile.am:
10559 * objects/ER/Makefile.am:
10560 * objects/FS/Makefile.am:
10561 * objects/flowchart/Makefile.am:
10562 * objects/custom/Makefile.am:
10563 * objects/GRAFCET/Makefile.am:
10564 * objects/chronogram/Makefile.am:
10565 * objects/SADT/Makefile.am:
10566 * plug-ins/cgm/Makefile.am:
10567 * plug-ins/pstricks/Makefile.am:
10568 * plug-ins/hpgl/Makefile.am:
10569 * plug-ins/wpg/Makefile.am:
10570 * plug-ins/svg/Makefile.am:
10571 * plug-ins/shape/Makefile.am: added $(UNICODE_CFLAGS)
10573 2002-03-13 Lars Clausen <lrclause@cs.uiuc.edu>
10575 * app/render_eps.c: Support for dumping TrueType fonts (taken from
10578 2002-03-12 Lars Clausen <lrclause@cs.uiuc.edu>
10580 * lib/render.c: New abstract super class for renderers.
10582 2002-03-07 Akira TAGOH <tagoh@redhat.com>
10584 * objects/ER/attribute.c (attribute_save): save a font property.
10585 (attribute_load): load a font property, and if can't load it, it's
10588 * objects/ER/entity.c (entity_save): save a font property.
10589 (entity_load): load a font property, and if can't load it, it's
10592 * objects/ER/relationship.c (relationship_save): save a font property.
10593 (relationship_load): load a font property, and if can't load it, it's
10596 * objects/UML/class.c (fill_in_fontdata): don't replace if it already
10598 (umlclass_save): save the font and the font size properties.
10599 (umlclass_load): load the font and the font size properties.
10601 2002-03-05 Cyrille Chepelov <cyrille@chepelov.org>
10603 * lib/string_prerenderer.[ch] (REMOVED):
10605 * lib/diagramdata.c:
10607 * app/render_eps.c: got rid of the string-specific string
10608 prerenderer, transitioned its functionality towards Lars'
10609 two-phase rendering
10611 2002-03-05 Lars Clausen <lrclause@cs.uiuc.edu>
10613 * configure.in: Using Freetypes own check for ver >= 1.0.5. You
10614 may need to rerun aclocal.
10616 2002-03-04 Lars Clausen <lrclause@cs.uiuc.edu>
10618 * lib/font.c: First attempt at Unicodeness for Freetype.
10620 2002-03-02 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
10622 * lib/font.c (font_string_width): Fixed font_string_width for
10623 freetype. BB is now almost right.
10625 2002-03-01 Lars Clausen <lrclause@cs.uiuc.edu>
10627 * app/render_eps.h:
10628 * app/paginate_psprint.c (paginate_psprint):
10630 * app/render_eps.c: Support for dumping postscript fonts into
10631 postscript files with freetype. Fairly primitive, but works.
10632 Unicode version may have problems.
10634 2002-02-28 Akira TAGOH <tagoh@redhat.com>
10636 * objects/UML/class_dialog.c (class_read_from_dialog)
10637 (class_fill_in_dialog), (class_create_page): add the font selector and
10638 the font size selector.
10640 * objects/UML/class.c (umlclass_draw): uses each font_height.
10641 (umlclass_calculate_data): ditto.
10642 (fill_in_fontdata): add initial value of new font_height.
10643 (umlclass_copy): add new font_height.
10645 2002-02-27 Cyrille Chepelov <chepelov@calixo.net>
10647 Patch from Geoff Gerrietts <ggerrietts@yahoo.com>:
10649 * lib/font.c: calculate font metrics properly and stop guessing at
10652 2002-02-28 Akira TAGOH <tagoh@redhat.com>
10654 * configure.in: changed gtk_advancement value to dia_talks_utf8.
10655 right now Dia is working with UTF-8 internally. it means Dia probably
10656 support most languages also including the languages which heretofore
10657 didn't work correctly.
10659 2002-02-26 Akira TAGOH <tagoh@redhat.com>
10661 * objects/FS/function.c: add related text properties.
10662 (function_get_props), (function_set_props): add handling attribute.
10664 * objects/FS/flow.c: add related text properties.
10665 (flow_get_props), (flow_set_props): add handling attribute.
10667 * objects/FS/flow-ortho.c: add related text properties.
10668 (orthflow_set_props), (orthflow_get_props): add handling attribute.
10670 * objects/ER/relationship.c: add PROP_STD_TEXT_FONT to property.
10672 * objects/ER/entity.c: ditto.
10674 * objects/ER/attribute.c: ditto.
10676 2002-02-26 Cyrille Chepelov <cyrille@chepelov.org>
10678 Patch contributed by Geoff Gerrietts <ggerrietts@yahoo.com>:
10680 * autogen.sh: add a check for missing intltoolize.
10682 2002-02-20 Akira TAGOH <tagoh@redhat.com>
10684 * lib/ps-utf8.c (unicode_to_ps_name): if this function calls with same
10685 charcode, it was registered the duplicate item to HashTable. fix.
10687 * app/render_gnomeprint.c (get_width_string): add new function.
10688 (draw_string): fix non-multibyte specific code.
10690 2002-02-19 Cyrille Chepelov <cyrille@chepelov.org>
10692 Patch contributed by Matthieu Sozeau <mattam@netcourrier.com>:
10694 * lib/font.c: do not try to search paths that do not begin with
10695 '/', like X Font Server addresses.
10697 * objects/UML/message.c (message_draw): free mname when not
10698 message->text but CREATE or DESTROY.
10700 * objects/UML/uml.h:
10701 * objects/UML/uml.c:
10702 * objects/UML/class_dialog.c: added code to handle a stereotype
10703 attribute for operations.
10705 2002-02-19 Akira TAGOH <tagoh@redhat.com>
10707 * lib/Makefile.am: add LIBART_CFLAGS.
10709 2002-02-15 Hans Breuer <hans@breuer.org>
10711 * lib/font.c (font_get_suck_font): the black and white pixel values
10712 need to be taken from a 1 bit colormap rather than the default colormap.
10713 (fixed again, last time was 2000-05-26)
10715 Also handle the case where GTK_TALKS_UTF8 and expects all strings
10716 passed in to be in this encoding.
10718 * lib/libdia.def : export suck_font_free()
10720 * lib/text.c (text_draw) : avoid circular dependency to ../app
10721 at least for the !USE_XIM case, where it is unnecessary.
10723 2002-02-15 Cyrille Chepelov <cyrille@chepelov.org>
10725 Changes contributed by Matts Kivik <kivik@firstlinux.net>:
10727 * shapes/Circuit/microphone_de.(shape|xpm) (NEW):
10728 * sheets/Circuit.sheet.in: added new shape microphone
10729 * shapes/Circuit/speaker_de.shape: Added a connection point.
10731 2002-02-13 Akira TAGOH <tagoh@redhat.com>
10733 * app/render_libart.c (draw_string): fixed build issue for Win32.
10735 * lib/font.c (font_get_suckfont): fixed typo. it could't build under
10738 * configure.in: fixed testing gtk_advancement.
10740 * app/render_gnomeprint.c (draw_string): uses utfchar instead of char.
10742 2002-02-12 Akira TAGOH <tagoh@redhat.com>
10744 * lib/text.c (text_draw): fixed XIM position, when menubar is shown for
10747 2002-02-11 Lars Clausen <lrclause@cs.uiuc.edu>
10749 * app/group.c (group_copy): Made new object properly initialized
10752 2002-02-11 Steffen Macke <sdteffen@yahoo.com>
10754 * app/Makefile.am: added plug-ins to DIA_LIB_PATH in run_dia.sh
10756 2002-02-10 Akira TAGOH <tagoh@redhat.com>
10758 * lib/text.c (text_draw): fixed XIM transaction.
10760 * app/interface.c (create_display_shell): add signal for
10763 * app/disp_callbacks.c (ddisplay_size_allocate): add new function for
10765 (set_input_dialog): remove.
10766 (ddisplay_canvas_events): remove XIM transaction. it can't transact
10767 correctly on this function.
10769 2002-02-10 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
10772 * app/export_png.c: Added checks for interactivity (maybe this
10773 should be a hook after all?).
10775 * app/filedlg.c (file_export_callback): Made export dialog add
10776 suffix when reopened.
10778 * app/export_png.c: Added dialog asking for export size.
10780 2002-02-09 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
10782 * lib/widgets.c: Fixed font reselection problem and first font
10785 * objects/UML/actor.c (actor_update_data): Changed to have
10786 connection points below text.
10788 2002-02-08 Akira TAGOH <tagoh@redhat.com>
10790 * lib/text.c (text_split_line): use g_strndup() instead of g_malloc()
10793 2002-02-07 Akira TAGOH <tagoh@redhat.com>
10795 * lib/font.c (font_get_suckfont): rewrited. generating suckfont from
10796 strings which is given.
10797 (suck_font): remove. it's any longer needed.
10799 * app/render_libart.c (set_font): don't get suckfont.
10800 (draw_string): get suckfont only which is needed for now.
10802 2002-02-05 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
10804 * lib/text.c: Fixes for misunderstood width functions.
10806 2002-02-05 Hans Breuer <hans@breuer.org>
10808 * lib/dia_xml.c : use g_strconcat() instead of
10809 malloc, strcpy, strcat dance
10810 * app/properties.c : same here and plug memory leak
10811 (gtk functions don't eat strings)
10813 * objects/UML/message.c : there is no g_sprintf()
10814 use g_strdup_printf() instead ...
10816 2002-02-05 Akira TAGOH <tagoh@redhat.com>
10818 * lib/message.c (gtk_message_internal): doesn't need to convert to
10821 * app/render_libart.c (draw_string): fixed transaction for UTF-8
10823 (get_text_width): ditto.
10825 * app/Makefile.am (EXTRA_DIST):
10826 s/paginate_gdiprint.c/paginate_gdiprint.cpp/
10828 * app/render_gdk.c (gdk_freetype_copy_glyph): fixed build issue.
10829 This function needs ifdef HAVE_FREETYPE because don't use it for
10832 2002-02-04 Cyrille Chepelov <cyrille@chepelov.org>
10834 * NEWS: updated with the new dependencies.
10836 Patch from Matthieu Sozeau <mattam@netcourrier.com>:
10838 * objects/UML/class.h:
10839 * objects/UML/class.c:
10840 * objects/UML/class_dialog.c: added code to handle the UMLParameterKind
10841 property using a GtkMenu. Options are Undefined, In, Out, In & Out
10843 2002-02-04 Lars Clausen <lrclause@cs.uiuc.edu>
10845 * app/render_libart.c: Slow but working libart freetype renderer,
10848 2002-02-03 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
10850 * app/render_gdk.c (draw_string): Fixed gc_function bug.
10852 * lib/widgets.c (dia_font_selector_init): Sorts the font list.
10854 * lib/font.c (freetype_render_string):
10856 * app/render_gdk.c:
10857 * app/render_gdk.h: Changed freetype_render_string to use
10858 callback. Rendering is broken.
10860 2002-02-03 Cyrille Chepelov <cyrille@chepelov.org>
10862 Patch from Matthieu Sozeau <mattam@netcourrier.com>:
10864 * objects/UML/uml.h:
10865 * objects/UML/uml.c: added UMLInheritanceType and isQuery
10866 (constant) UML Operation attributes. UMLInheritanceType is either
10867 UML_ABSTRACT or UML_POLYMORPHIC or UML_LEAF.
10869 * objects/UML/class.h:
10870 * objects/UML/class.c:
10871 * objetcs/UML/class_dialog.c: added code to handle new
10872 UMLOperation attributes via a GtkMenu and a checkbox.
10874 2002-02-03 Akira TAGOH <tagoh@redhat.com>
10876 * app/disp_callbacks.c (ddisplay_realize): fixed XIM issue.
10877 several client doesn't work with previous codes.
10879 2002-02-01 Lars Clausen <lrclause@cs.uiuc.edu>
10881 * lib/font.c (freetype_render_string): Kerning. Very few fonts
10884 2002-02-02 Akira TAGOH <tagoh@redhat.com>
10886 * app/disp_callbacks.c (ddisplay_canvas_events): fixed crashes,
10887 when doing the operation like invert the objects after active view is
10888 destroyed. when changes focus, it needs to set active_display.
10890 * app/layer_dialog.c (dia_layer_update_from_layer):
10891 (layer_dialog_edit_layer): need to convert to locale encoding
10892 if GTK_DOESNT_TALK_UTF8_WE_DO is defined.
10893 (edit_layer_ok_callback):
10894 need to convert to UTF8 if GTK_DOESNT_TALK_UTF8_WE_DO is defined.
10896 * lib/diagramdata.c (new_diagram_data): ditto.
10898 * app/layer_dialog.c (layer_dialog_new_callback): ditto.
10900 * lib/diagramdata.c (new_layer): use utfchar instead of char for
10903 * lib/widgets.c: if HAVE_FREETYPE isn't defined, it can't build. fixed.
10904 (dia_font_selector_set_styles): when HAVE_FREETYPE is defined only,
10905 it's needed for now. also this function needs prototype declaration.
10907 2002-01-31 Lars Clausen <lrclause@cs.uiuc.edu>
10909 * lib/widgets.c: Style now functional on font selector. Some leak
10910 possible, but doesn't show up under stress test.
10912 2002-01-31 Akira TAGOH <tagoh@redhat.com>
10914 * app/plugin-manager.c (clist_select_row): name and description needs to
10915 convert to locale encoding, when GTK_DOESNT_TALK_UTF8_WE_DO is defined.
10916 (get_plugin_manager): ditto.
10918 * lib/plug-ins.c (dia_plugin_info_init): name needs to convert to UTF-8.
10920 * app/diagram_tree.c (get_object_name): fixed transaction for UTF-8
10923 * lib/prop_text.c (stringprop_reset_widget): fixed crashes,
10924 when prop->string_data is NULL.
10926 2002-01-30 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
10929 * lib/widgets.h: New font selector separating font and style.
10930 Style not functional yet.
10932 2002-01-30 Lars Clausen <lrclause@cs.uiuc.edu>
10935 * app/render_gdk.c (draw_string): More freetype support, now
10936 renders text. Still broken is font selection and exporting.
10938 2002-01-30 Akira TAGOH <tagoh@redhat.com>
10940 * objects/chronogram/chronoref.c (chronoref_create): missing gettextize
10943 * objects/chronogram/chronoline.c (chronoline_create): ditto.
10945 * objects/UML/usecase.c (usecase_create): ditto.
10947 * objects/UML/state.c (state_create): ditto.
10949 * objects/UML/object.c (objet_create): ditto.
10951 * objects/UML/node.c (node_create): ditto.
10953 * objects/UML/message.c (message_create): ditto.
10955 * objects/UML/component.c (component_create): ditto.
10957 * objects/UML/classicon.c (classicon_create): ditto.
10959 * objects/UML/actor.c (actor_create): ditto.
10961 * objects/SADT/box.c (sadtbox_create): ditto.
10963 * objects/SADT/annotation.c (annotation_create): ditto.
10965 * objects/GRAFCET/transition.c (TRANSITION_FONT): ditto.
10967 * objects/GRAFCET/step.c (STEP_FONT):
10968 * (step_create): ditto.
10970 * objects/GRAFCET/condition.c (CONDITION_FONT): ditto.
10972 * objects/GRAFCET/action.c (ACTION_FONT):
10973 (action_create): ditto.
10975 * objects/FS/function.c (function_create): ditto.
10977 * objects/FS/flow.c (flow_create):
10979 (flow_apply_defaults): ditto.
10981 * objects/FS/flow-poly.c (flow_create):
10983 (flow_apply_defaults): ditto.
10985 * objects/FS/flow-ortho.c (orthflow_create):
10987 (orthflow_apply_defaults): ditto.
10989 * objects/ER/relationship.c: use utfchar instead of char for structure.
10990 (relationship_create): name needs to convert to UTF-8.
10992 * objects/ER/attribute.c: use utfchar instead of char for structure.
10993 (attribute_create): name needs to convert to UTF-8.
10995 * objects/ER/entity.c: use utfchar instead of char for structure.
10996 (entity_create): name needs to convert to UTF-8.
10998 * app/interface.c (fill_sheet_wbox): needs to convert UTF-8 to locale
10999 encoding for tooltips, if GTK_TALKS_UTF8 isn't defined.
11000 (fill_sheet_menu): needs to convert UTF-8 to locale encoding for menu
11001 items. if GTK_TALKS_UTF8 isn't defined.
11003 2002-01-29 Akira TAGOH <tagoh@redhat.com>
11005 * objects/UML/class.c (umlclass_calculate_data): fixed malloc size.
11006 it was my careless mistake...
11008 * lib/attributes.c (attributes_set_default_font): temporarily gettextize
11009 a font name, because there are strings which isn't shown by "Courier".
11010 We need to consider a way to feel free to choose a font at runtime.
11012 * lib/render_object.c (render_object_load): ditto.
11014 * lib/text.c (data_text): ditto.
11016 * objects/EML/instantiation.c (instantiation_create): ditto.
11018 * objects/EML/interaction-ortho.c (interaction_ortho_create):
11019 (interaction_ortho_load): ditto.
11021 * objects/EML/interaction.c (interaction_create):
11022 (interaction_load): ditto.
11024 * objects/EML/process.c (fill_in_fontdata): ditto.
11026 * objects/ER/attribute.c (attribute_create):
11027 (attribute_load): ditto.
11029 * objects/ER/entity.c (entity_create):
11030 (entity_load): ditto.
11032 * objects/ER/relationship.c (relationship_create):
11033 (relationship_load): ditto.
11035 * objects/UML/association.c (association_create):
11036 (association_load): ditto.
11038 * objects/UML/class.c (fill_in_fontdata): ditto.
11040 * objects/UML/constraint.c (constraint_create): ditto.
11042 * objects/UML/dependency.c (dependency_create): ditto.
11044 * objects/UML/generalization.c (generalization_create): ditto.
11046 * objects/UML/implements.c (implements_create): ditto.
11048 * objects/UML/large_package.c (largepackage_create): ditto.
11050 * objects/UML/note.c (note_create): ditto.
11052 * objects/UML/realizes.c (realizes_create): ditto.
11054 * objects/UML/small_package.c (smallpackage_create): ditto.
11056 * objects/custom/shape_info.h (FONT_DEFAULT): ditto.
11058 * objects/custom/custom_object.c (custom_create): ditto.
11060 * objects/network/antenna.c (render_to_store): ditto.
11062 * objects/network/computer.c (render_to_store): ditto.
11064 * objects/network/disc.c (render_to_store): ditto.
11066 * objects/network/flash.c (render_to_store): ditto.
11068 * objects/network/hub.c (render_to_store): ditto.
11070 * objects/network/modem.c (render_to_store): ditto.
11072 * objects/network/modularswitch.c (render_to_store): ditto.
11074 * objects/network/monitor.c (render_to_store): ditto.
11076 * objects/network/printer.c (render_to_store): ditto.
11078 * objects/network/rj45plug.c (render_to_store): ditto.
11080 * objects/network/scead-plug.c (render_to_store): ditto.
11082 * objects/standard/textobj.c (textobj_load): ditto.
11084 * objects/sybase/client.c (render_to_store): ditto.
11086 * objects/sybase/dataserver.c (render_to_store): ditto.
11088 * objects/sybase/ltm.c (render_to_store): ditto.
11090 * objects/sybase/repserver.c (render_to_store): ditto.
11092 * objects/sybase/rsm.c (render_to_store): ditto.
11094 * objects/sybase/stableq.c (render_to_store): ditto.
11096 * plug-ins/dxf/dxf-import.c (read_entity_text_dxf): ditto.
11098 * objects/UML/uml.h (UML_STEREOTYPE_START):
11099 (UML_STEREOTYPE_END): changes default strings.
11101 2002-01-28 Akira TAGOH <tagoh@redhat.com>
11103 * objects/UML/stereotype.c (string_to_bracketted): fixed transaction
11104 for UTF-8 support. if GTK+ and Dia don't handle UTF-8, all of characters
11105 which is given to arguments isn't UTF-8. so don't need to convert it.
11106 if GTK+ handle UTF-8, also don't need to convert it.
11108 (bracketted_to_string): fixed transaction for UTF-8 support.
11109 also start/end bracket is not necessarily 1 character. so that when use
11110 strend(), it doesn't work correctly.
11111 (string_to_stereotype): use utfchar instead of char.
11112 (remove_stereotype_from_string): ditto.
11113 (stereotype_to_string): ditto.
11115 * objects/UML/stereotype.h: ditto.
11117 * objects/UML/message.c: use utfchar instead of char for structure.
11118 (MESSAGE_CREATE_LABEL, MESSAGE_DESTROY_LABEL): remove.
11120 * objects/UML/small_package.c: use utfchar instead of char for structure.
11122 * objects/UML/realizes.c: ditto.
11124 * objects/UML/object.c: ditto.
11126 * objects/UML/large_package.c: ditto.
11128 * objects/UML/implements.c: ditto.
11130 * objects/UML/generalization.c: ditto.
11132 * objects/UML/dependency.c: ditto.
11134 * objects/UML/constraint.c: ditto.
11136 * objects/UML/component.c: ditto.
11138 * objects/UML/class_dialog.c (attributes_get_current_values):
11139 (attributes_list_new_callback, attributes_fill_in_dialog):
11140 (parameters_set_values, parameters_get_values):
11141 (parameters_get_current_values, parameters_list_new_callback):
11142 (operations_set_values, operations_get_values):
11143 (operations_get_current_values, operations_list_new_callback):
11144 (operations_fill_in_dialog, templates_set_values):
11145 (templates_get_values, templates_get_current_values):
11146 (templates_list_new_callback, templates_fill_in_dialog):
11147 fixed transaction for UTF-8 support.
11149 2002-01-27 Akira TAGOH <tagoh@redhat.com>
11151 * objects/UML/message.c (message_draw): fixed transaction for UTF-8 support.
11153 * objects/UML/class_dialog.c (class_read_from_dialog):
11154 (class_fill_in_dialog):
11155 (attributes_get_values): ditto.
11157 * objects/UML/actor.c (actor_create): ditto.
11159 * objects/UML/class.c (umlclass_calculate_data): ditto.
11161 * objects/UML/association.c (association_apply_properties):
11162 (fill_in_dialog): ditto.
11164 * objects/UML/uml.c (uml_get_attribute_string):
11165 (uml_get_operation_string):
11166 (uml_get_parameter_string):
11167 (uml_get_formalparameter_string): use utfchar instead of char.
11169 * objects/UML/uml.h: gettextize UML_STEREOTYPE_START and
11170 UML_STEREOTYPE_END.
11172 * objects/UML/class.h: use utfchar instead of char.
11174 * lib/dia_xml.c (data_add_string): ditto.
11176 * lib/text.c (text_insert_char): fixed characters# calculation
11177 when includes multibytes character in strings.
11179 2002-01-26 Steffen Macke <sdteffen@yahoo.com>
11181 Patch from Richard Rowell <rwrowell@bellsouth.net>:
11183 * app/lineprops_area.c:
11186 * lib/widgets.c: added crow foot arrow and cross arrow
11188 Patch from Frank Gevaerts <frank.gevaerts@fks.be>:
11190 * plug-ins/svg/render_svg.c: fixed arcs, fill and text alignment
11192 2002-01-26 Cyrille Chepelov <cyrille@chepelov.org>
11194 * po/update.pl (REMOVED):
11195 * po/update.sh (REMOVED):
11196 * xml-i18n-merge.in.kg (REMOVED):
11197 * xml-i18n-update.in.kg (REMOVED):
11198 * sheets/Makefile.am:
11201 * configure.in: converted from xml-i18n-tools to intltools
11203 This looks like it fixes the build bugs of the snapshot tarballs,
11204 and it supersedes #69611.
11206 2002-01-25 Akira TAGOH <tagoh@redhat.com>
11208 * lib/text.c (text_insert_char): fixed characters# calculation.
11209 it's not string length.
11211 * lib/plug-ins.c (dia_plugin_info_init): when GTK_DOESNT_TALK_UTF8_WE_DO
11212 is defined, needs to convert a description to UTF-8.
11214 * app/render_gdk.c (get_text_width): fixed transaction for
11215 UTF-8 support. also should uses gdk_text_width_wc() instead
11216 of gdk_text_width().
11218 * app/render_gdk.c (draw_string): when GTK_DOESNT_TALK_UTF8_WE_DO
11219 is defined, needs to convert to locale encoding for display.
11220 Also use utfchar instead of char for argument.
11222 2002-01-24 Hans Breuer <hans@breuer.org>
11224 * app/commands.c(edit_paste_callback and more) :
11225 call diagram_modified(ddisp->diagram) to fix #68083
11226 (help_menu_callback) : plug a DIR leak
11228 * app/disp_callbacks.c(ddisplay_canvas_events) : handle
11229 GTK_TALKS_UTF8_WE_DONT
11231 * app/render_gdk.c(get_text_with) : it's a bad idea to use
11232 gdk_string_with() when GTK_TALKS_UTF8_WE_DONT instead of
11233 gdk_text_width(). The length value is still questionable ...
11235 * lib/charconv.c : use functions already available in early
11236 GLIB-1.3 days whiches API hasn't changed since, to avoid
11237 version problems with the win32 build
11239 * lib/font.c : finally fix #58045 and #68208
11241 * lib/dia_xml.c (xmlDiaSaveFile) : gzdopen in binary mode
11243 2002-01-24 Akira TAGOH <tagoh@redhat.com>
11245 * app/disp_callbacks.c (ddisplay_canvas_events): when event returned
11246 no strings, fixed transaction.
11248 * lib/charconv.h: fixed typo.
11250 * app/menus.c: fixed typo.
11252 * lib/charconv.c (charconv_utf8_strchr): remove. use uni_strchr instead.
11254 * objects/UML/object.c: attrib's type uses utfchar instead of char.
11256 * app/disp_callbacks.c (ddisplay_canvas_events): forget g_free()
11258 * lib/text.c (text_create_change): use unichar instead of char.
11260 * lib/text.c (data_add_text, data_text, apply_textstr_properties):
11261 use utfchar instead of char.
11263 * lib/text.c (text_insert_char, text_key_event): fixed transaction for
11266 * lib/charconv.c (charconv_utf8_get_char): add new function.
11268 2002-01-23 Akira TAGOH <tagoh@redhat.com>
11270 * lib/text.c (text_delete_forward, text_delete_backward,
11271 text_split_line): fixed transaction for UTF-8 support.
11273 * lib/text.c (text_copy): when UNICODE_WORK_IN_PROGRESS is defined,
11274 strlen[] has string length for UTF-8, so has to use alloclen[].
11278 * .cvsignore: add dia.pot.
11280 2002-01-24 Stanislav Visnovsky <visnovsky@nenya.ms.mff.cuni.cz>
11282 * configure.in: Added "sk" to ALL_LINGUAS.
11284 2002-01-22 Akira TAGOH <tagoh@redhat.com>
11286 * lib/text.c (text_set_string, new_text, text_copy,
11287 text_get_string_copy, text_join_lines): use utfchar instead of gchar
11290 * lib/text.c (set_string): use charconv_utf8_strchr() instead of
11293 * lib/charconv.c (charconv_utf8_strchr): add new function.
11295 * lib/charconv.c (charconv_keyval_to_unicode): ditto.
11297 * lib/charconv.c (charconv_utf8_from_gtk_event_key): ditto.
11299 * app/disp_callbacks.c (ddisplay_canvas_events): needs to convert
11300 strings to the appropriate encoding.
11302 2002-01-22 Lars Clausen <lrclause@cs.uiuc.edu>
11304 * app/object_ops.c (object_list_align_[hv]): Leak fix.
11306 * lib/Makefile.am (INCLUDES): Added debug flags.
11308 * app/object_ops.c: Fixed ordering problem of align equi-distant &
11311 2002-01-21 Akira TAGOH <tagoh@redhat.com>
11313 * lib/font.c (font_string_width): use gdk_text_width_wc() instead of
11314 gdk_string_width().
11316 * objects/GRAFCET/boolequation.c: fixed invalid comment.
11318 * objects/UML/stereotype.c (string_to_bracketted): fixed build problem
11319 when defined UNICODE_WORK_IN_PROGRESS.
11321 * lib/dia_xml.c (data_add_string): fixed typo.
11323 2002-01-20 Akira TAGOH <tagoh@redhat.com>
11325 * configure.in: fixed test gtk_advancement.
11327 2002-01-019 Steffen Macke <sdteffen@yahoo.com>
11329 * plug-ins/svg/render_svg.c: fix for #69053, alignment of text
11332 Patch from M.C. Nelson <mcn@mani.kobayashimaru.org>:
11334 * app/recent_files.[ch]: reworked to support GNOME, accelerators,
11335 tool tips, preferences, and arbitrarily long ~/.dia/history
11337 * app/menus.c: made 'Plugins' consistantly spelled and accelerated;
11338 removed 'Open Recent'; added new separators for recent documents on
11341 * app/interface.[ch] (interface_get_toolbox_shell): new function
11343 * app/diagram.c: added new parameter to recent_file_history_add() call
11345 * app/preferences.[ch]: added new 'Recent documents list size'
11348 2002-01-18 Akira TAGOH <tagoh@redhat.com>
11350 * lib/font.c (font_get_gdkfont_helper): use gdk_fontset_load ().
11351 if it failed, should be used gdk_font_load ().
11353 * lib/font.c (font_data): added the font entries for CJK.
11355 2002-01-17 Steffen Macke <sdteffen@yahoo.com>
11357 Patch from M.C. Nelson <mcn@mani.kobayashimaru.org>:
11359 * app/menus.c: replaced GDK_F1 with "F1" to fix segfault on startup
11361 2002-01-04 Cyrille Chepelov <cyrille@chepelov.org>
11363 Patch from Martin Cracauer <cracauer@cons.org>:
11365 * app/menus.c: add missing #include <gdk/gdkkeysyms.h> (useful in the
11368 2002-01-01 Hans Breuer <hans@breuer.org>
11370 * app/command.c : optional use GDI printing on windoze
11372 * app/preferences.[hc] : add option 'prefer_psprint' to
11373 select the print engine to use (could be used for Dia/Gnome
11376 * app/paginate_gdiprint.(h|cpp) : new files, which interlink the
11377 wmf plug-in with the common win32 print api. Now printing
11378 should work almost as expected from a windows program :-)
11380 * app/diagram.c app/menus.[hc] : rename _UpdatableMenuItems.delete
11381 to .edit_delete to avoid clashes with C++
11383 * app/makefile.msc : updated for GDI printing
11385 * plug-ins/wmf/wmf.cpp : some small modifications to support
11386 GDI printing. Also swap R and B channel in draw_image()
11388 * app/makefile.am : added windows only files to EXTRA_DIST
11390 * objects/uml/class.c(umlclass_set_props) : force recalculation
11391 when applying properties
11393 * lib/charconv.c lib/dia_xml.c : temporary back-ported to
11394 glib-1.3.2 (for win32) IMHO causes recent cvs introduces too
11395 many incompatible changes (and would force a gtk update)
11397 * objects/makefile.msc : don't build C-Objects which are
11398 already available as 'pure shape'
11400 * plug-ins/makefile.msc : remove diaimport from build. It was
11401 only available via mailing-list and is broken since the
11405 Patch from Jose A Ortega Ruiz <jaortega@acm.org>
11407 * app/preferences.[hc] : tweaked preferences.c to make
11408 PREF_STRING work. Use it for 'diagram_tree_hidden'. Also
11409 added some more DiagramTree prefererences and their own
11412 * app/diagram_tree.[hc] : allow to sort by object type or name
11413 and hide by type ...
11414 * app/diagram_tree_menu.[hc] : ... add respective menu entries ...
11415 * app/diagram_tree_menu_callbacks.[hc] : ... and callbacks.
11417 * app/diagram_tree_window.c : handle hidden types and window
11420 2001-12-20 Hans Breuer <hans@breuer.org>
11422 * plug-ins/python/Makefile.am : patch from Peter Moulder
11423 <pmoulder@csse.monash.edu.au> to make the python plug-in
11424 compile on *nix too.
11426 2001-12-03 Cyrille Chepelov <chepelov@calixo.net>
11428 Patch from Alan <horkana@tcd.ie>:
11430 * app/menus.c: bind the F1 shortcut to the Help/_Manual function.
11432 2001-11-20 Hans Breuer <hans@breuer.org>
11434 * app/makefile.msc : add new diagram_tree_menu(_callbacks).obj
11436 2001-11-18 Jose A Ortega Ruiz <jaortega@acm.org>
11438 * app/diagram_tree.[hc] : Added new functions and types for
11439 sorting diagram and objects, and attaching the popup menus.
11441 * app/preferences.h: Added more diagram tree preferences, using a
11442 DiagramTreeConfig struct in DiaPreferences. The new prefs are the
11443 height and width of the diagram tree window and the default sort
11444 orders for diagrams and objects.
11446 * app/preferences.c (prefs_data): Added new entries for the new
11447 diagram tree preferences.
11449 * app/preferences.c (prefs_tabs): New tab for diagram tree
11452 * app/diagram_tree_window.[hc] (create_diagram_tree_window):
11453 * app/diagram_tree_window.c (diagram_tree_window_new):
11454 * app/interface.c (create_tree_window): The diagram tree window is
11455 initialised using the DiagramTreeConfig part of prefs.
11458 2001-11-14 Jose A Ortega Ruiz <jaortega@acm.org>
11460 * app/diagram_tree_menu.[hc]: New files. Functions to create the
11461 diagram tree popup menus.
11463 * app/diagram_tree_menu_callbacks.[hc]: New files. Callbacks for
11464 the diagram tree popup menus.
11466 * app/Makefile.am (dia_core_files): diagram_tree_menu* files
11469 2001-11-13 Jose A Ortega Ruiz <jaortega@acm.org>
11471 * app/diagram_tree.c (double_click_callback, diagram_tree_new):
11472 double-clicking a diagram tree node raises the diagram window
11473 to the foreground (and, if a object node was clicked, selects the
11474 object in the diagram).
11476 * app/diagram_tree.c (select_tree_widget): selecting an object
11477 node with single click simply updates it (no raise).
11479 2001-11-08 Jose A Ortega Ruiz <jaortega@acm.org>
11480 These changes make the diagram tree lazy: it is not created unless
11481 the diagram tree window is requested.
11483 * app/diagram_tree_window.[hc] (create_diagram_tree_window): new
11484 function for creating the tree window.
11486 * app/interface.c (create_tree_window): call
11487 create_diagram_tree_window() instead of diagram_window().
11489 * app/diagram_tree.c (diagram_tree_add, diagram_tree_remove)
11490 (diagram_tree_update, diagram_tree_update_name)
11491 (diagram_tree_add_object, diagram_tree_add_objects)
11492 (diagram_tree_remove_object, diagram_tree_remove_objects)
11493 (diagram_tree_update_object): accept a NULL tree as a nominal
11494 argument (and do nothing in this case!), so that the diagram tree
11495 is not initialised if not used.
11497 * app/diagram_tree_window.c (diagram_tree): do not create the
11498 diagram tree until diagram_window() or diagtree_show_callback()
11501 2001-10-31 Jose A Ortega Ruiz <jaortega@acm.org>
11502 [slightly modified and applied from Hans Breuer <hans@breuer.org>]
11504 * app/diagram_tree_window.[hc] : (new files) implementation of
11505 the diagram tree window, a container for a diagram tree. [Removed
11506 the horizontal scroll bar glitch by disableing it]
11508 * app/diagram_tree.[hc] : (new files) implementation of the
11509 diagram tree widget. [Don't rely on the layers GPtrArray to be
11510 NULL terminated, but use its ->len field]
11512 * app/Makefile.am (dia_core_files): added new files
11513 diagram_tree.[hc] and diagram_tree_window.[hc]
11515 * app/interface.[hc] : (create_tree_window): this function
11516 creates the new diagram tree window widget
11518 * app/undo.c (delete_objects_apply) (delete_objects_revert)
11519 (insert_objects_apply) (insert_objects_revert) (group_objects_apply)
11520 (ungroup_objects_apply) (ungroup_objects_revert):
11521 every time that an undoable command modifies a diagram
11522 adding/removing/(un)grouping objects, a diagram_tree_something() is
11523 invoked to keep the diagram tree window in sync
11525 * app/properties.c (properties_apply): call to
11526 diagram_object_modified(), which updates the diagram tree window
11527 when the properties of an object are modified
11529 * app/preferences.[hc] : new "show_diagram_tree" configuration option
11530 (whether the diagram tree window should be shown on dia startup)
11532 * app/menus.c : added '<Toolbox>/File/Diagram Tree' entry
11534 * app/diagram.h (diagram_object_modified): callback notifying of a
11535 diagram object modification
11537 * app/diagram.c (diagram_load_into): added call to
11538 diagram_tree_add() to add newly loaded diagrams to the diagram
11540 (diagram_destroy): call to diagram_tree_remove() to remove a
11541 destroyed diagram from the diagram tree window
11542 (diagram_add_object): call to diagram_tree_add_object() to add an
11543 object to the diagram tree window
11544 (diagram_add_object_list): as above, but with an object list
11545 (diagram_selected_break_external): deletion of objects from the
11546 diagram is detected here, and diagram_tree_remove_object() is
11547 invoked to remove the object from the diagram tree window (it
11548 would be nice to have a diagram_remove_object() in the Diagram
11550 (diagram_set_filename): update the diagram tree window when a
11551 diagram's filename changes
11553 * app/commands.c (file_new_callback): added call to
11554 diagram_tree_add() to add newly created diagrams to the diagram
11557 * app/app_procs.c (app_init): added call to create_tree_window()
11559 * app/makefile.msc : updated
11561 2001-10-28 Hans Breuer <hans@breuer.org>
11563 * app/preferences.h (DiaPreferences):
11564 * app/preferences.c (prefs_data): new "show_diagram_tree"
11565 configuration option (whether the diagram tree window should be
11566 shown on dia startup)
11568 * app/menus.c: added the new "<Toolbox>/View/Diagram tree" menu
11569 entry (both for GNOME and gtk)
11571 * app/diagram.h (diagram_object_modified): callback notifying of a
11572 diagram object modification
11574 * app/diagram.c (diagram_load_into): added call to
11575 diagram_tree_add() to add newly loaded diagrams to the diagram
11577 (diagram_destroy): call to diagram_tree_remove() to remove a
11578 destroyed diagram from the diagram tree window
11579 (diagram_add_object): call to diagram_tree_add_object() to add an
11580 object to the diagram tree window
11581 (diagram_add_object_list): as above, but with an object list
11582 (diagram_selected_break_external): deletion of objects from the
11583 diagram is detected here, and diagram_tree_remove_object() is
11584 invoked to remove the object from the diagram tree window (it
11585 would be nice to have a diagram_remove_object() in the Diagram
11587 (diagram_set_filename): update the diagram tree window when a
11588 diagram's filename changes
11590 * app/commands.c (file_new_callback): added call to
11591 diagram_tree_add() to add newly created diagrams to the diagram
11594 * app/app_procs.c (app_init): added call to create_tree_window()
11596 2001-10-28 Hans Breuer <hans@breuer.org>
11598 * plug-ins/python/pydia-property.c : apparently I missed
11599 to commit this last time. Now it has some more SetAttr
11600 support (apply from property)
11602 * plug-ins/python/pydia-properties.h : added PyDiaProperty_Check
11604 * plug-ins/python/pydia-text.[ch] : new files
11606 2001-10-14 Hans Breuer <hans@breuer.org>
11608 * lib/charconv.c : g_locale_to_utf8() does not handle NULL
11609 strings. Use g_strdup() for these.
11611 libxml2 does not produce 'any extra indentation when saving a tree'
11612 [libxml2-2.4.2/doc/upgrade.html] anymore, which was the default with
11613 libxml(1). To get human readable XML some extra tweaking is required.
11614 It is enabled by setting 'pretty_formated_xml' to 'true' in 'diarc'.
11615 * lib/dia_xml.[hc] : provide and use 'DIAVAR pretty_formated_xml'
11616 * app/preferences.[ch] : initialize 'pretty_formated_xml'
11618 * lib/libdia.def : updated externals
11620 * lib/properties.h : add prototype for prop_list_from_single ()
11622 * plug-ins/makefile.msc : build metapost plug-in
11624 * plug-ins/metapost/render_metapost.c : msvc does not like
11625 switch labels without operation 'default: }'. Added a noop.
11627 * plug-ins/python/pydia-text.[hc] : (new files) wrap DiaText
11628 * plug-ins/python/diamodule.c : added PyDiaText
11629 * plug-ins/python/makefile.msc : dito. Also added LIBXML_CFLAGS.
11630 Although the python plug-in does not use libxml at all, the
11631 headers are required to use the lib/prop*.h headers
11633 * plug-ins/python/pydia-diagramdata.c : added wrappers for
11634 update_extents and get_sorted_selected (should I duplicate
11635 more functions from PyDiaDiagram or should they be moved?)
11637 * plug-ins/python/pydia-properties.c : allow to set (some) properties
11638 through the dictionary api
11639 * plug-ins/python/pydia-property.h : declare PyDiaProperty_ApplyToObject
11640 * plug-ins/python/pydia-property.c : implement it (currently only
11641 string properties can be set)
11643 Reimplement PyDiaProperty_GetAttr by means of the new StdProp api.
11644 Quoting myself: 'Still not convinced that this is better than an
11645 integral property->type and some casting ...
11646 It is trading a straightforward 40 lines switch statement to
11647 this nice 'type safe' function mapping (about 125 lines)'
11648 (But now it works again, better than changing the News file :)
11650 2001-10-14 Cyrille Chepelov <chepelov@calixo.net>
11652 patch from <robert.young@dsto.defence.gov.au>:
11653 * objects/UML/component.c: remember to set font in UML component
11654 object (fixes #62132)
11656 2001-10-02 Lars Clausen <lrclause@cs.uiuc.edu>
11658 * plug-ins/metapost/metapost.c:
11659 * plug-ins/metapost/Makefile.am:
11660 * plug-ins/metapost/render_metapost.c:
11661 * plug-ins/metapost/render_metapost.h:
11662 Metapost renderer from Chris Sperandio
11664 2001-09-14 Hans Breuer <hans@breuer.org>
11666 * app/render_gdk.c : reflect the fact, that GTK already talks
11667 UTF8 on win32, fixes #59982, #56100, (#55992 ?) ...
11670 * app/render_libart.c : trying to fix #58045 but it appears
11671 to be an Gdk/win32, too.
11673 * lib/charconv.c : handle utf8 conversion with the help of
11674 glib-1.3 even in the !HAVE_UNICODE case.
11676 * lib/dia_xml.c : reduce complaing about missing encoding, by
11677 detecting if the default (utf8) would break the file.
11679 2001-09-13 Cyrille Chepelov <chepelov@calixo.net>
11681 * lib/charconv.c: (get_local_charset): at least please try to not
11682 silently change the logic, while avoiding crashes.
11684 * lib/font.c: (suck_font): put a #error, we have a nasty something
11685 to fix there before we switch to Gtk 2.0.
11687 2001-09-09 Hans Breuer <hans@breuer.org>
11689 * **/makefile.mingw : Approach to compile Dia with mingw.
11690 Compiling mostly works but running does not (yet) ...
11693 - use G_OS_WIN32 instead of _MSC_VER to drag in isinf, etc. definitions.
11694 Apparently mingw needs it too.
11695 - enable 'normalization' of a null verctor. Otherwise the beziergon
11696 bounding box calculation would be broken at least with msvc. What's
11697 the mathematical correct result of 0.0/0.0 ?
11699 * lib/dia_xml.c : isinf() for mingw too.
11701 * lib/dia_dirs.c : use MAX_PATH instead of _MAX_PATH (works for mingw
11704 * lib/charconv.c : still crashes if strcmp(NULL, "UTF-8").
11705 Please don't do it.
11707 * lib/font.c : Trying to reflect that GTK_TALKS_UTF8_WE_DONT
11709 * lib/libdia.def : updated externals. Apparently mingw needs
11710 them to produce the right mangling.
11712 * plug-ins/shape/shape-exports.c : get prototypes for xmlStrdup
11715 2001-09-08 Wang Jian <lark@linux.net.cn>
11717 * configure.in(ALL_LINGUAS): Renamed zh_CN.GB2312 to zh_CN
11719 2001-09-07 Cyrille Chepelov <chepelov@calixo.net>
11721 * lib/dia_xml_libxml.h:
11722 * lib/dia_xml.c: (data_add_string), (xmlDiaSaveFile): Duplicated
11723 libxml1's code, to rework the output file before it gets committed
11724 to disk. This is rubbish, and will be removed when libxml2
11725 switches from discouraged to mandatory.
11726 All in all, this fixes #60152.
11729 * lib/charconv.c: (charconv_unichar_to_utf8):
11730 made the type of the input parameter explicitly an unsigned long.
11732 * configure.in: Added a check for libz (we must now include it
11733 explicitly, for xmlDiaSaveFile).
11735 * app/load_save.c: (diagram_data_save):
11736 * lib/plug-ins.c: (ensure_pluginrc), (info_fill_from_pluginrc),
11737 (dia_pluginrc_write):
11738 * plug-ins/shape/shape-export.c: (new_shape_renderer),
11739 (end_render), (draw_string):
11740 * plug-ins/svg/render_svg.c: (new_svg_renderer), (end_render),
11743 Made sure we always write UTF-8 XML files, and through
11746 * NEWS: documented that fact.
11748 2001-09-07 James Henstridge <james@daa.com.au>
11750 * configure.in (found_libxml): refactor the check for libxml a
11751 little so that it handles finding both libxml1 and 2 better.
11753 2001-09-03 Cyrille Chepelov <chepelov@calixo.net>
11755 * app/app_procs.c: removed a spurious } which caused a compilation
11756 error in the (!HAVE_GNOME && HAVE_POPT_H) case
11758 * lib/charconv.c: (get_local_charset): some versions of iconv(1)
11759 don't know what ANSI X3.4-1968 is. I didn't know until this day,
11760 but it's just plain old ASCII. Added a check to shield the poor
11763 Patches from <robert.young@dsto.defence.gov.au>:
11765 * lib/text.c: (text_calc_boundingbox) Bounding box now calculates the
11766 width and height of text before calculating bounds. Fixes #59928
11768 * app/preferences.c: Moved grid related items into Grid Tab.
11770 2001-09-02 Cyrille Chepelov <chepelov@calixo.net>
11772 * app/interface.c: (create_zoom_widget): connected one more signal
11773 to the Zoom selector combo's list. Fixes #59879.
11775 * app/app_procs.[ch]: (app_init) (do_convert)
11776 (build_output_file_name): brought back into the main executable
11777 the rare useful bits of the ill-fated diaconv. This means we have
11778 one new feature : --export-to-format (-t), which should make
11779 writing conversion scripts easier, and a crude implementation of
11780 -t and -e for the poptless argument parsing, which means the Win32
11781 port should be able to take advantage of it (that should make
11782 resolving #58197 possible).
11784 * app/diaconv.c: kept the poor duck compiling (but that's about
11787 * plug-ins/svg/render_svg.c: updated the SVG DTD header (I hope
11788 I've got it right).
11790 * NEWS: updated about the new feature above, and documented the
11791 "missing encoding specification" complaint.
11793 2001-09-01 Abel Cheung <maddog@linux.org.hk>
11795 * configure.in: Rename zh_TW.Big5 -> zh_TW in ALL_LINGUAS.
11797 2001-09-01 Cyrille Chepelov <chepelov@calixo.net>
11799 * objects/standard/bezier.c: used g_new0 instead of g_new, to take
11802 2001-09-01 James Henstridge <james@daa.com.au>
11804 * */Makefile.am: various changes to include missing files, and fix
11805 sheets dir to handle building with builddir != srcdir.
11807 * autogen.sh: unconditionally pass the --enable-maintainer-mode
11808 and --enable-db2html flags so that builds from CVS work correctly.
11810 * configure.in: increment version number. Also add an
11811 --enable-db2html flag. Without the flag, db2html won't be run (if
11812 the flag is passed and db2html is not present, do nothing).
11814 2001-08-30 Cyrille Chepelov <chepelov@calixo.net>
11816 * lib/poly_conn.c: (polyconn_copy): it's a wonder this routine
11817 even compiled. It's really too bad there is no lint tool easily
11818 available (or a more cautious, pedandic, paranoid and verbose
11819 compiler). Anyway, this fixes #59662. (this didn't affect 0.88.x)
11821 2001-08-27 Cyrille Chepelov <chepelov@calixo.net>
11824 * dia/lib/plug-ins.c: use g_strdup() instead of strdup(). Patch
11825 from <robert.young@dsto.defence.gov.au>. Fixes #59591.
11827 * app/menu.c: added ellipsis(...) to diagram properties menu item.
11828 * app/dia-props.c: diagram properties dialog contents did not
11829 represent current diagram settings.
11830 * app/dia-props.[ch]:
11831 * app/display.c: diagram properties contents now follows currently
11833 Patch also from <robert.young@dsto.defence.gov.au>, fixes #59409.
11835 * AUTHORS: added Robert Young.
11837 2001-08-27 Cyrille Chepelov <chepelov@calixo.net>
11839 * app/modify_tool.c: (modify_button_release): Patch from
11840 <robert.young@dsto.defence.gov.au>. Fixes the remaining bit from
11841 #59090: if selection dragging was released outside of the window,
11842 artifacts of the selection box remained.
11844 2001-08-25 Cyrille Chepelov <chepelov@calixo.net>
11846 * Objects/custom/shape_info.c: added missing #include <xmlmemory.h>
11848 2001-08-19 Cyrille Chepelov <chepelov@calixo.net>
11851 * sheets/Makefile.am: prepared the terrain for the Version of
11852 xml-i18n-tools Which Comes After 0.9 (and which will feature at
11853 last a sane behaviour with XML files). Some reasonible delay
11854 before enforcing that version *will* be given.
11856 * xml-i18n-merge.in.kg: included the current CVS xml-i18n-merge.in
11858 * lib/plug-ins.c: <xmlmemory.h> defines xmlFree(), otherwise it
11859 becomes a nonexistent symbol.
11861 2001-08-18 Hans Breuer <hans@breuer.org>
11863 * app/app_procs.c : made it compile without ENABLE_NLS
11865 * app/diap_callbacks.c : strcmp isn't guaranteed to work
11868 * app/load_save.c :
11870 * objects/custom/shape_info.c : avoid mixing allocators and dealocators.
11872 xmlGetProp, ... -> xmlFree
11873 malloc, strdup -> free
11874 g_new, g_malloc, g_strdup - > g_free
11876 * app/win32print.c : some more error checking, still not
11879 * lib/charconv.c : get_local_charset is used even with !HAVE_UNICODE
11881 * lib/dia_xml.c : msvc still has no unistd.h
11884 * lib/sheets.c : temporary resolved libxml include brokeness
11886 * plug-ins/python/pydia-*.c : reflect Font and StdProp api
11887 changes. Compiles again, but doesn't do anything useful anymore.
11888 (see THE_PROP_TYPE_IS_INTEGRAL)
11890 * **/makefile.msc : updated to use LIBXML2
11892 * lib/libdia.def : reflect api changes
11894 2001-08-17 Cyrille Chepelov <chepelov@calixo.net>
11896 * config.h.win32: added defines telling that gtk speaks UTF8.
11897 Hans, I believe this reflects what GTK on Win32 does.
11899 * app/app_procs.c: if GTK talks UTF8, we'll feed it UTF8 localised
11901 * lib/prop_inttypes.c:
11903 * lib/prop_widgets.c: fixed typos in the GTK_TALKS_UTF8_WE_DONT
11906 * lib/plug-ins.c: (dia_register_plugins_in_dir): If there is a
11907 trailing // (or whatever (G_DIR_SEPARATOR * 2) is), a recursive
11908 search for plug-ins is done.
11909 * app/Makefile.am: made app/run_dia.sh use the // capability. No
11910 need to update this anymore if we get a new plug-in library (or
11913 * lib/dia_xml.c: #include <unistd.h> was missing.
11915 * lib/properties.h:
11916 * lib/proplist.c: (pdtpp_defaults): Added a new flag,
11917 PROP_FLAG_NO_DEFAULTS. Will be used in the "automatic defaults"
11920 2001-08-16 Cyrille Chepelov <chepelov@calixo.net>
11922 * sheets/civil.sheet: removed duplicate "Danish" entries.
11927 * sheets/Makefile.am:
11929 * Makefile.am: applied the xml-i18n-tools README's instructions.
11931 * po/(da de fr hu nl nn no sl).po: merged the translations from
11932 the sheet files into the .po files. I hope I haven't mixed
11934 * sheets/*.sheet (REMOVED):
11935 * sheets/*.sheet.in (NEW): moved the sheet files sans
11936 translations into .sheet.in files.
11938 * sheets/xml-i18n-unicodify: (NEW) included from xml-i18n-tools,
11939 because we don't yet want to force all translators to work using
11940 UTF-8 editors. We'll want to do that sometime (sooner rather than
11941 later). Okay, I sing a slightly different tune in po/ChangeLog...
11943 * dia.desktop (REMOVED):
11944 * dia.desktop.in (NEW): used also the x18t infrastructure for
11947 * xml-i18n-update.in.kg (NEW): This one will stay in CVS until an
11948 "official" version of x18t with support for .sheet files is available.
11949 * xml-i18n-merge.in.kg (NEW): This one will stay in CVS until an
11950 "official" version of x18t which doesn't corrupt UTF-8 data in XML
11953 ** yes, we are now using xml-i18n-tools to manage the sheet
11954 translations. For the Win32 build, Nemo stores snapshots of
11955 translated strings next to the CVS snapshots. **
11957 * sheets/checktrans.py: suddenly, some sheets have lots of
11958 translations (objects which existed before sheets, mostly).
11959 Adapted the formatting.
11961 * po/README (REMOVED): this is obsolete ! It was ignored, anyway.
11963 * app/display.[ch]: (ddisplay_autoscroll), (ddisplay_scroll):
11964 * app/modify_tool.[ch]: (modify_motion): A (modified) patch from
11965 <robert.young@dsto.defence.gov.au>, to fix #59090.
11967 * app/display.c: (ddisplay_scroll): While at it, added some
11968 margin, so that autoscrolling can happen within a margin outside
11969 the diagram's extents.
11973 * app/disp_callbacks.c: Robert "forced" me to go when I usually
11974 don't, namely the app/ directory. So while I was there, I
11975 scratched a long-time itch. If no object has focus, pressing the
11976 space bar will select back the tool which was selected before the
11977 current one (I find this especially useful with "reset after create" !)
11979 * lib/proplist.c: (prop_list_from_single): Renamed
11980 prop_list_singleton() to avoid confusion with the Singleton
11981 pattern (which it definitely is not).
11983 * lib/propobject.c: (object_prop_by_name_type),
11984 (object_prop_by_name): The "flags" parameter was not necessary.
11985 These don't return synthetic properties, but properties built from
11986 a real property description list; therefore, we don't call
11987 make_new_prop() but use the existing property descriptor, which
11988 has perfectly valid (and meaningful) flags.
11990 * lib/proplist.c: (pdtpp_synthetic), (pdtpp_from_object): These
11991 new predicates better reflect the reason why properties exist when
11992 they're created by make_new_prop() or object_prop_by_name().
11994 * lib/propobject.c: (object_prop_by_name_type), (object_prop_by_name):
11995 * lib/prop_basic.c: (make_new_prop): used the new reasons instead
11998 * lib/properties.h: reflects all the above changes.
12000 * objects/SADT/arrow.c:
12001 * objects/SADT/annotation.c:
12002 * sheets/SADT.sheet: minor renamings to better match FIPS 183's
12005 2001-08-15 Cyrille Chepelov <chepelov@calixo.net>
12007 * lib/properties.h:
12008 * lib/proplist.c: (prop_list_singleton):
12009 * lib/propobject.c: (object_prop_by_name_type), (object_prop_by_name):
12010 Added these, to simplify interactions of plug-ins with the StdProp
12015 * lib/dia_xml_libxml.h (NEW):
12020 * objects/custom/shape_info.c: A few prototypes were causing
12021 #include hell, because we generally attempt to not pull the whole
12022 libxml header set when we include dia_xml.h. Moved those
12023 prototypes away for the rare cases they're necessary.
12025 2001-08-15 Hans Breuer <hans@breuer.org>
12027 * lib/font.c : made LARS_TRACE_MESSAGES Standard C conform
12030 * lib/makefile.msc : updated
12032 * lib/prop_basic.c : __FUNCTION__ is a gcc extension. Please
12033 use G_GNUC_FUNCTION instead.
12035 * lib/prop_inttypes.c : include <stdlib.h> for strtol()
12037 * objects/sadt/annotation.c : disable TEMPORARY_EVENT_TEST for
12038 msvc instead of cleaning missing includes
12040 * plug-ins/wmf/wmf.cpp :
12041 * plug-ins/wmf/wmf_gdi.h : fixed for Font to DiaFont renaming
12043 2001-08-15 Cyrille Chepelov <chepelov@calixo.net>
12050 * objects/custom/shape_info.c:
12051 * plug-ins/shape/shape-export.c:
12052 * plug-ins/svg/render_svg.c: used the libxml1/libxml2
12053 compatibility macros as taught by http://xmlsoft.org/upgrade.html;
12054 removed xmlKeepBlanksDefault(0) in favour for proper
12055 xmlIsBlankNode() testing. Lots of other fixups to use the
12056 "libxml1.5" (libxml2 parser embedded in recent libxml1), and to
12057 make libxml1 output correct files.
12059 * configure.in: use libxml2 (>= 2.3.9) if it's found, or
12060 libxml1 (>= 1.8.14). Exactly one of these must be installed (devel
12061 packages). If both devel packages are found, the build will stop
12062 (Fredrik: please add a Build-Conflicts: on libxml2-dev for the moment)
12064 * lib/bezier_conn.c: (bezierconn_init): Lars, you forgot to
12065 allocate the first handle :-)
12067 * lib/object.c: (object_init): <gratuitous>g_new() used instead of
12068 a cast and a sizeof.</gratuitous>
12070 * objects/custom/custom_object.c: (custom_copy): don't call
12071 text_get_attrbutes if the shape has no text...
12072 (custom_update_data): The info->resize_with_text code was a bit
12073 directive; basically, the shape's bounding box was forced to be
12074 proportional to the text's bounding box.... This fixes #57187.
12076 * objects/custom/shape_info.c: (load_shape_info): Set an obvious
12077 default for info->aspect_ratio; unobfuscated a line about
12078 info->resize_with_text;
12080 2001-08-15 Cyrille Chepelov <chepelov@calixo.net>
12082 * lib/properties.h: added comments next to the PROP_TYPEs to tell
12083 which C Property subclass to use.
12085 * plug-ins/dxf/dxf-import.c: (read_entity_line_dxf): Removed the
12086 cast-ridden form of setting properties in a list, in favour for
12087 the "local pointers" form. I'll take any better offer...
12089 2001-08-14 Cyrille Chepelov <chepelov@calixo.net>
12091 * lib/font.c: fprintf(...) --> fprintf(format...)
12093 * configure.in: added a disabled versioned test for glib.
12094 * lib/prop_geomtypes.c: (bezpointprop_load), (bezpointprop_save),
12095 (bezpointarrayprop_load), (bezpointarrayprop_save): replaced
12096 g_critical() with a simple g_error(). Proper fix is to implement
12099 * lib/properties.h: PROP_STD_TEXT is a PROP_TYPE_TEXT, not a
12102 * lib/properties.h:
12103 * lib/propdesc.c: (prop_desc_list_calculate_quarks):
12104 * lib/proplist.c: (find_prop_by_name_and_type):
12105 * lib/prop_basic.c: (make_new_prop), (initialize_property):
12106 * lib/propoffsets.c: (do_set_props_from_offsets),
12107 (do_get_props_from_offsets), (prop_offset_list_calculate_quarks):
12108 Added a type_quark member to PropDescription, Property and
12109 PropOffset. Used it to implement a safety in
12110 do_[sg]et_props_from_offsets().
12112 * objects/flowchart/diamond.c: the diamond's text was not saved,
12113 and thus not even copied (c&p).
12114 * objects/standard/textobj.c: ditto.
12116 Most of the above changes thanks to Robert Young's testing. Thanks !
12118 2001-08-14 Kjartan Maraas <kmaraas@gnome.org>
12120 * sheets/*.sheet: Added some Norwegian translations (both nynorsk
12123 2001-08-13 Cyrille Chepelov <chepelov@calixo.net>
12125 * lib/proplist.c (prop_list_from_descs): added a call to
12126 prop_desc_list_calculate_quarks(). (find_prop_by_name_and_type):
12127 too embarrassing to tell.
12129 * lib/propdesc.c (prop_desc_list_calculate_quarks): converted the
12130 while loop to a for loop, for symmetry with
12131 prop_offset_list_calculate_quarks().
12133 * lib/geometry.h: new inline function, rectangle_equals.
12135 * lib/diagramdata.[ch]: refactored a bit the diagram extents
12136 computation logic, and changed it to always be the union of the
12137 visible layers' extents. This should close #58882 (Debian
12138 #107167), and fixes #55498.
12140 * app/display.c: made the initial visible box more coherent with
12141 the diagram being loaded's extents.
12143 * app/prop_attr.c: don't set the font (from offset) if font_data
12144 is NULL. Two brainos in colorprop_load() and fontprop_load().
12146 2001-08-13 Cyrille Chepelov <chepelov@calixo.net>
12148 * lib/properties.[ch]: split in a lot of pieces:
12150 * lib/prop_*.[ch] (NEW): all property types are now first-class
12151 objects, inheriting from the original abstract Property type.
12152 * lib/propdesc.c (NEW): property description handling routines
12153 * lib/propoffsets.c (NEW): property offset handling routines
12154 * lib/proplist.c (NEW): property list handling routines
12155 * lib/propobject.c (NEW): property list <-> object routines
12156 * lib/propregistry.c (NEW): holds the PropertyType-->PropertyOps
12158 * lib/propinternals.h: prototypes for stuff not usually needed by
12159 the outside of StdProps.
12160 * lib/Makefile.am: a lot of new files have been added...
12162 THE ABOVE CHANGES ARE MAJOR CHANGES AND AFFECT THE WHOLE TREE, IN
12163 BOTH INTERFACES AND RUN-TIME STABILITY.
12165 * lib/plug-ins.h: bumped up DIA_PLUGIN_API_VERSION
12167 * lib/object.h: removed the incestuous relationship with
12168 properties.h' contents. Now a Property list is a GPtrArray -->
12169 object interface change !
12171 * app/app_procs.c/app_init(): removed a disabled call to a
12172 non-existent routine. Added a call to stdprops_init().
12174 * objects/Makefile.am: disabled the construction of EML. I'm not
12175 touching these until a certain issue is solved (or this module
12178 * objects/**/*.c except objects/EML/*: adapted all stdprop-using
12179 objects to the interface changes.
12181 * app/disp_callbacks.c: killed a warning.
12182 * lib/dia_xml.[ch]: sprinkled "const" modifiers.
12185 The macros PROP_VALUE_* have disappeared. Adapted to using the new
12188 * plug-ins/dxf/dxf-import.c:
12189 * plug-ins/xfig/xfig-import.c:
12190 PROP_VALUE_* macros have been removed. Converted to the new API.
12192 * plug-ins/python/**/*: I gave up converting this; I can't
12193 compile --with-python (problems with object.h defined both by us
12194 and by Python). I'll gladly help whomever cares to fix it !
12195 (or, fix it myself if someone tells me how to compile it).
12197 * configure.in: added the UNICODE-related progress defines.
12200 * lib/geometry.h: On Solaris and perhaps other systems, finite()
12201 is defined in ieeefp.h rather than in math.h. Patch from Andrew
12202 Halper <ashalper@acm.org> with further modifications, isinf() is
12203 provided by -lsunmath (sunmath.h).
12205 * lib/font.c: conditionally disabled Lars' debugging messages.
12206 Bracketed the definition of DiaFontFamily with #ifdef HAVE_FREETYPE.
12208 2001-08-11 Lars Clausen <lrclause@cs.uiuc.edu>
12210 * lib/bezier_conn.h:
12211 * objects/standard/bezier.c (bezierline_create):
12212 * lib/bezier_conn.c (bezierconn_init):
12213 Preparations for use of userdata for bezier lines.
12215 * objects/standard/polygon.c:
12216 * objects/standard/create.h:
12219 * plug-ins/xfig/xfig-import.c:
12220 Use of user_data for polygon as well, including adding
12221 polyshape_set_points. Include file for non-interactive
12222 creation of standard objects, objects/standard/create.h
12224 2001-08-10 Lars Clausen <lrclause@cs.uiuc.edu>
12226 * app/render_gdk.c:
12227 * app/render_gdk.h:
12231 More preliminary freetype support. Not at all functional, crashes
12236 * objects/standard/polyline.c:
12237 Support for creating polyline objects with more than two points.
12238 This includes an extra function and a prototype change in the
12239 poly_conn lib object.
12241 * lib/object.c (object_copy): Fixed memory leak of handles and
12244 2001-08-08 Abel Cheung <maddog@linux.org.hk>
12246 * dia.desktop: added traditional Chinese strings
12248 2001-08-04 Cyrille Chepelov <chepelov@calixo.net>
12250 * NEWS: updated to reflect build-time dependencies.
12252 * lib/properties.[ch]: wrote get_prop_descriptions() as a wrapper
12253 around obj->ops->describe_props(obj). Quarks are none of an
12254 object's business in the general case...
12255 * lib/text.c: Added an apply_textattr_properties() function to
12256 factor out some common code related to applying a dialog's text
12257 attribute properties to a (Text *) which wasn't edited there.
12258 Ditto for textstr, for the string part of an objet.
12260 * objects/GRAFCET/action.c:
12261 * objects/SADT/annotation.c:
12262 * objects/SADT/box.c: used apply_textattr_properties().
12264 * objects/UML/actor.c:
12265 * objects/UML/branch.c:
12266 * objects/UML/component.c:
12267 * objects/UML/constraint.c:
12268 * objects/UML/small_package.c:
12269 * objects/UML/state.c:
12270 * objects/UML/usecase.c:
12271 * objects/UML/large_package.c:
12272 * objects/UML/note.c:
12273 * objects/UML/node.c:
12274 * objects/UML/message.c:
12275 * objects/UML/classicon.c:
12276 * objects/UML/object.c:
12277 * objects/UML/realizes.c:
12278 * objects/UML/dependency.c:
12279 * objects/UML/implements.c:
12280 slim-fast(tm) cure using more StdProps, and UTF-8 audit.
12281 (most objects were already using StdProps to some extent ; this
12282 systematises usage and removes some dead wood).
12284 * objects/UML/stereotype.[ch]: use UTF-8 internally. const police work.
12285 * objects/UML/uml.[ch]: audited for UTF-8.
12287 * objects/UML/class.c: the UML_STEREOTYPE_* strings defined by
12288 uml.h can be in UTF-8... this code isn't yet ready. Duplicating a
12289 private (ISO-8859-1) definition.
12291 * lib/charconv.c: Added a warning if we didn't run
12292 nl_langinfo(CODESET) but rely instead on a hardcoded default.
12294 2001-08-02 Cyrille Chepelov <chepelov@calixo.net>
12297 * app/disp_callbacks.c: added a way for an object to cause an
12298 already realised menu to be destroyed (for instance if it changes
12301 * objects/custom/custom_object.c: used the above to fix #55073.
12303 2001-08-01 Lars Clausen <lrclause@cs.uiuc.edu>
12305 * configure.in: Remove 2.50 prereq.
12307 2001-07-30 Cyrille Chepelov <chepelov@calixo.net>
12309 * po-checktrans.py: under some circumstances, there was one column
12310 more than what was supposed to be, thus breaking the formatting.
12312 2001-07-29 Cyrille Chepelov <chepelov@calixo.net>
12314 * objects/SADT/annotation.c: forgot to add a #include <stdlib.h>
12316 * NEWS: updated with new stuff since 0.88
12318 * shapes/network/antenna.shape: the text was misplaced ; fixed.
12320 * shapes/network/firewall.(shape|xpm) (NEW): a brick-wall looking
12321 firewall router (upon request from Cyril Lacoux
12322 <clacoux@easter-eggs.com>)
12324 * configure.in (didn't rename to configure.ac): autoconf 2.50
12325 constructs were used ; added an AC_PREREQ call to guard against
12328 2001-07-27 Cyrille Chepelov <chepelov@calixo.net>
12330 * lib/properties.c: minor clean-ups with the event delivery code.
12332 * EML/instantiation.c: brought this object back from stone and ice
12335 * app/diaconv.c(NEW): added a command-line conversion tool. Still
12336 lacks a man page and correctness. In fact, it doesn't work. Please
12337 see #58196 if you want to finish it.
12339 * lib/message.[ch]: redefined things a little so that a different
12340 message_internal routine could be passed.
12341 applications can use that to fit themselves to the display model.
12343 2001-07-26 Cyrille Chepelov <chepelov@calixo.net>
12345 * objects/SADT/box.c:
12346 * objects/GRAFCET/action.c: spelling in property descriptors (name
12348 * objects/SADT/annotation.c: ditto, plus a temporary test of the
12349 event delivery code (try to click on the "click me !" button !).
12352 * lib/properties.[ch]: improved (fixed) support for group event
12353 handlers. Fixed various things from yesterday's code to make it
12354 not too obviously crash.
12356 2001-07-26 Cyrille Chepelov <chepelov@calixo.net>
12358 * app/group.c: added delivery of events to the first member of the
12359 group which is able to process it.
12361 * lib/properties.c(prop_desc_lists_intersection): properties
12362 don't match if they don't have identical event handler.
12363 * lib/properties.h: simplified the PropEventHandler signature.
12365 Event delivery code is still untested so far, but should be
12368 2001-07-25 Cyrille Chepelov <chepelov@calixo.net>
12370 * lib/properties.[ch]: Added (untested !) property event handler
12371 capability. Added a new PROP_TYPE_BUTTON, for the purpose of
12372 generating such events. This stuff compiles, and should lurk
12373 around silently as long as you don't declare property descriptors
12374 with events (AFAICT).
12375 In object_create_props_dialog() and friends:
12376 attached a single structure with lots of data instead of lots of
12377 little attachments of data to the dialog widget.
12379 * lib/object.h: fixed mild typedef breakage introduced by the above.
12381 2001-07-17 Lars Clausen <lrclause@cs.uiuc.edu>
12383 * lots of files: Changed Font to DiaFont
12384 * */Makefile.am: Added FREETYPE_LIBS
12385 * plug-ins/xfig/xfig-export.c: Improved (working:) color handling
12387 2001-07-13 Kjartan Maraas <kmaraas@gnome.org>
12389 * configure.in: Added "nn" to ALL_LINGUAS.
12391 2001-07-09 Alex Larsson <alexl@redhat.com>
12393 * app/disp_callbacks.c:
12394 Add gdk_im_ready() calls to XIM code.
12396 2001-07-04 Cyrille Chepelov <chepelov@calixo.net>
12398 * lib/properties.[ch]: splitted prop_get_widget() into
12399 prop_get_widget() (gives a widget but doesn't fill it) and
12400 prop_reset_widget() (fills an existing widget with a property's value).
12402 * lib/widgets.[ch]: const enforcement police work.
12404 * shapes/network/antenna.shape: added a connection point at top,
12405 upon request from <Emmanuel.Quemener@cri.ens-cachan.fr>.
12407 2001-06-25 Cyrille Chepelov <chepelov@calixo.net>
12409 * intl/*: tested with gettext-0.10.38
12410 * configure.in: moved a macro call around (AM_PROG_CC) to keep
12411 some of autogen.sh from complaining.
12412 * INSTALL: added a warning against gettext older than at least 0.10.36
12414 2001-06-19 Cyrille Chepelov <chepelov@calixo.net>
12416 * configure.in: added explicit calls to AM_LANGINFO_CODESET and
12417 AM_ICONV (both provided by gettext)
12419 2001-06-14 Cyrille Chepelov <chepelov@calixo.net>
12421 * lib/charconv.c: corrected the degraded mode for when
12422 !HAVE_UNICODE. Thanks to Ben A. Hetland for reporting this.
12424 * objects/chronoline/chronoline_events.c: UTF8 compliance.
12426 2001-06-13 Cyrille Chepelov <chepelov@calixo.net>
12428 * lib/properties.[ch]: convenience macros around PROP_NOTEBOOKS ;
12429 new "eye candy" properties: PROP_MULTICOL_(BEGIN|PAGE|END) to lay
12430 widgets on several columns, PROP_FRAME_(BEGIN|END) to put widgets
12433 * objects/chronogram/chronoline.c:
12434 * objects/chronogram/chronoref.c: took advantage of the above to
12435 make nicer looking dialogs.
12437 * lib/charconv.[ch]: added charconv_unichar_to_utf8 ("inspired"
12438 from libunicode's internals).
12439 * lib/message.c: convert strings to local encoding prior to
12440 display (UNICODE_WORK_IN_PROGRESS)
12441 * lib/properties.[ch]: convert strings to local encoding prior to
12442 display, and back to UTF8 (UNICODE_WORK_IN_PROGRESS).
12443 * lib/render.h: tagged strings as (utfchar *) instead of (char *)
12444 * lib/stringprerenderer.[ch]: ditto
12446 (lib/text.c has been audited for UTF8, but the size of the changes
12447 make them inappropriate for commit before 0.89)
12449 2001-06-12 Cyrille Chepelov <chepelov@calixo.net>
12451 * objects/boolequation.h (<save|load>_boolequation): made the
12452 prototypes for match the .c file.
12454 * samples/grafcet.dia: minor non-conformance with IEC-848
12455 fixed (in the transition from step 100 to step 101).
12457 * lib/properties.[ch]: added a flag (PROP_FLAG_DONT_MERGE) to
12458 disallow editing of properties if the object is part of a group.
12460 * objects/chronogram/chronoline.c:
12461 * objects/SADT/annotation.c:
12462 * objects/SADT/box.c:
12463 * objects/GRAFCET/step.c:
12464 * objects/GRAFCET/transition.c:
12465 * objects/GRAFCET/condition.c: took advantage of PROP_FLAG_DONT_MERGE.
12467 2001-06-12 Hans Breuer <hans@breuer.org>
12469 * lib/libdia.def : removed lazyprop exports
12470 * lib/makefile.msc : removed lazyprop.obj
12472 * objects/custom/custom_objects.c : use HAVE_UNISTD_H
12473 and avoid crashes by always creating a custom->text,
12474 when (custom->info->has_text)
12476 * objects/makefile.msc : removed sybase from build
12478 * objects/GRAFCET/boolequation.c (<save|load>_boolequation) :
12479 ObjectNode is a pointer already, which is what we want
12480 instead of a pointer pointer.
12482 * plug-ins/wmf/wmf.cpp : fixed problem with arc scaling
12483 and implemented working export for images
12485 * shapes/network/zip-disk.shape : added connection points
12487 2001-06-12 Cyrille Chepelov <chepelov@calixo.net>
12489 * objects/SADT/box.c: removed lazyprops for standard props.
12490 * objects/chronograms/chronoline.c: removed lazyprops (phew !)
12491 * objects/chronograms/chronoref.c: ditto
12495 * lib/connpoint_line.c:
12496 * lib/lazyprops.[ch] (DELETED): good riddance (closes #55895)
12497 * lib/properties.[ch]: new property types:
12498 - PROP_TYPE_STATIC: static text to be displayed in the dialog.
12499 - PROP_TYPE_MULTISTRING: same as string, but renders as a
12500 multi-line entry box.
12501 - PROP_TYPE_NOTEBOOK_BEGIN,_PAGE,_END: stuff to make dialogs
12502 in a tabbed-notebook style (this is a bit complicated to use;
12503 see objects/chronograms/chronoline.c for an example).
12505 2001-06-11 Cyrille Chepelov <chepelov@calixo.net>
12507 * objects/GRAFCET/boolequation.[ch]: zap lazyprops. Add standard props.
12508 * objects/GRAFCET/step.c: ditto.
12509 * objects/GRAFCET/vector.c: ditto.
12510 * objects/SADT/annotation.c: ditto.
12511 * objects/SADT/arrow.c: ditto (plus bounding box fixes).
12513 * lib/properties.[ch]: two more non-visible types
12514 (PROP_TYPE_ENUMARRAY and PROP_TYPE_INTARRAY).
12516 * lib/neworthconn.[ch]:
12517 * lib/orthconn.[ch]: added support for manipulation through
12518 standard properties.
12520 * configure.in: removed -fomit-frame-pointer, this seems to
12521 confuse recent gcc/gdb's, maybe we'll get better stack dumps in
12524 * charconv.[ch]: more functions from unicode.h.
12525 get_local_charset() wasn't working properly, fixed now.
12526 A subtle crashbug in charconv_utf8_to_local8() nailed (thanks to
12529 * objects/EML/process.h: pulled the bits of lazyprops.h it uses.
12530 * lib/lazyprops.[ch]: put a big fat warning in.
12532 * app/render_eps.c: one line mysteriously went away, causing a
12533 variable to be used uninitialised....
12535 2001-06-10 Cyrille Chepelov <chepelov@calixo.net>
12537 * app/app_procs.c: commented out the call to
12538 bind_textdomain_codeset(): it's premature.
12540 * lib/connpoint_line.c: a NULL point can be given to
12541 connpointline_adjust_count(), in case there's not really a clicked
12544 * lib/textattr.h(NEW): moved the definition of TextAttributes to sort
12545 #include order troubles. #included by lib/text.h, so there is no
12546 impact outside lib/.
12547 * lib/properties.[ch]: added support for CONNPOINT_LINE and
12548 (nonvisible) TEXT properties.
12550 * objects/GRAFCET/action.c:
12551 * objects/GRAFCET/vergent.c: dropped lazyprops for standard
12554 * objects/UML/lifeline.c: pruned some legacy stuff (now pure
12555 standard properties code). Grafted a dynamic number of connection
12556 points (heavily inspired from what Vergent does). This is the real
12559 * objects/GRAFCET/boolequation.[ch]: audited for UTF-8
12561 * lib/fonts.c: some hardening (mostly g_assert())
12562 2001-06-09 Cyrille Chepelov <chepelov@calixo.net>
12564 * app/app_procs.c (app_init): added a call to
12565 bind_textdomain_codeset() so that gettext gives us UTF-8 strings
12566 (UNICODE_WORK_IN_PROGRESS).
12568 2001-06-08 Cyrille Chepelov <chepelov@calixo.net>
12570 * plug-ins/xfig/xfig-import.c: corrected a typo (fixes #55910)
12572 * objects/UML/lifeline.c: patch from Marc <mrw@siemens.ch>
12573 (fixes #55863) : some clean-ups in the handling of connection
12574 points. Now the total number of connection points is just a
12575 #define (the proper solution is to retrofit the GRAFCET Vergent's
12576 dynamic behaviour wrt connection points).
12578 2001-06-07 Cyrille Chepelov <chepelov@calixo.net>
12580 * app/app_procs.c (app_init): added a call to unicode_init() (only
12581 if HAVE_UNICODE, of course).
12583 * lib/charconv.c: simplified the code which detects the local
12584 charset. No need to use <langinfo.h>, libunicode already takes the
12585 burden of figuring that out. Also, if local charset is utf8, no
12586 conversion will take place.
12587 Exposed a way to get the current charset (similar to
12588 unicode_get_charset() but actually working, hopefully).
12590 * lib/charconv.h: Added a partial non-UTF8 implementation of
12591 unicode.h if !HAVE_UNICODE (actually, all the time for the
12592 moment). The UTF8 implementation is just macros on libunicode (use
12593 the functions prefixed by uni_, as defined by charconv.h, not
12594 unicode_, unless that code is to be compiled only if HAVE_UNICODE).
12595 From now on, all strings which don't *need* to be ASCII should be
12596 utfchar *, not gchar *. Just include charconv.h, let it sort out
12597 the details (such as: "is libunicode available and enabled?")
12599 * lib/ps-utf8.c: fixed a few name clashes. Used the charconv.h
12600 "API" instead of directly libunicode. Removed the now unnecessary
12601 speculative clustering of characters in encoding pages.
12603 * app/render_eps.c: made the local8->utf8 conversions dependent of
12604 !UNICODE_WORK_IN_PROGRESS (this is not where the local8/utf8
12605 boundary will be when this WIP is done).
12607 * lib/dia_xml.c (data_point): fixed a format string typo.
12609 * po/POTFILES.in: added all C files from lib/
12611 2001-06-06 Cyrille Chepelov <chepelov@calixo.net>
12613 * app/disp_callbacks.c: make sure the objects' connected objects
12614 are updated when the objects' size changes after a keypress event
12617 * configure.in: added a big warning about the possible future
12618 non-optionality of --enable-unicode.
12620 * TODO: removed entries which look like done ; added a few ones
12621 (Bugzilla "enhancement" bugs may be a better way to keep track of
12624 2001-06-05 Cyrille Chepelov <chepelov@calixo.net>
12626 * objects/UML/message.c: got rid of #55564 and of message_copy()
12627 by using more standard properties (are the message_state_*()
12628 functions still necessary ?)
12630 2001-06-04 Fredrik Hallenberg <hallon@lysator.liu.se>
12633 * objecs/custom/shape_info.c:
12634 * plug-ins/shape/shape-export.c:
12635 * plug-ins/svg/render_svg.c: patch from obecian <obecian@openbsd.org>
12636 use xmlChar instead of obsolete CHAR.
12638 2001-06-03 Hans Breuer <hans@breuer.org>
12640 * app/diagram.h : added prototype for diagram_update_menu_sensitivity()
12641 * app/commands.c : give the right number of parameters
12642 to diagram_update_menu_sensitivity ()
12644 * app/preferences.c : do proper initialization for DiaPrefsData:
12645 render_bounding_boxes. It would be a real surprise if 'hidden'
12646 properties would have ever worked before.
12647 Don't try to access the widgets of hidden property, it does not
12650 * lib/diagramdata.h : make render_bounding_boxes a DIAVAR, cause
12651 it is defined in libdia, but initialized from dia app, which
12652 otherwise gave nice start-up crashes.
12654 * lib/diagramdata.c : initialize the color for rendering bounding
12655 boxes in the Dia range (0 .. 1.0)
12657 * lib/libdia.def : added *_bbox functions for export
12659 * lib/makefile.msc : added new sources
12661 * objects/custom/custom_object.c : use HAVE_UNISTD_H
12663 2001-05-30 Cyrille Chepelov <chepelov@calixo.net>
12666 * app/menus.c: patch from Hubert Figuiere <hfiguiere@teaser.fr> ;
12667 removes a translation of menus (in a place where there shouldn't
12668 have been), which gets rid of a waterfall of warnings if LANG!=C,
12669 and a fix to #55047.
12671 2001-05-29 Steffen Macke <sdteffen@yahoo.com>
12673 * lib/charconv.c : added #include <errno.h>
12675 * app/dia_embedd.c : updated menus_get_item_from_path usage
12677 2001-05-27 Cyrille Chepelov <chepelov@calixo.net>
12679 * lib/ps-utf8.c: Strings in Symbol fonts were incorrectly rendered.
12680 Added a special case for Symbol strings, so that they're not
12681 re-encoded using the LN encoding (we use the bare Adobe encoding
12684 * objects/custom/custom_object.c: Now that #52912 is fixed,
12685 I could remove the ugly hack I wrote to squash the shape bounding box
12686 problem shown by Ben A. Hetland a few months ago, and fix it
12687 properly this time.
12689 * lib/text.c: enlarged a little the bounding box to account for
12690 the cursor in rightmost position.
12692 * lib/diagramdata.c: draw bounding boxes only if the relevant
12693 variable is set (as before), but also only if the rendere is
12694 interactive (ie, don't bother rendering bounding boxes on
12696 Made the bounding box's line width a fixed value, 0.01
12698 * lib/boundingbox.c: fixed the "pointy corners" code for polylines
12699 and assymmetric control beziers. Implemented ellipse_bbox().
12701 * Makefile.am: incantations to get po/dia.pot build, as suggested
12702 by Hubert in #55075.
12704 * shapes/network/computer.shape: typo fixed.
12705 * shapes/network/antenna.shape: fixed #55074 (antenna is now
12706 properly translucent, except for its base where it makes sense. It
12707 doesn't look that ugly anymore if transparent mode is on).
12709 * configure.in: --enable-unicode is now the default. This
12710 still currently affects only printing.
12712 2001-05-26 Cyrille Chepelov <chepelov@calixo.net>
12714 * lib/boundingbox.c: fixed a minor logic error wrt closed shapes.
12715 The overshoot code is buggy, and the bounding boxes for polyshapes
12716 looks a bit cheezy. To be done ASAP.
12718 2001-05-26 James Henstridge <james@daa.com.au>
12720 * configure.in: call AM_PATH_PYTHON rather than AM_PATH_PYTHON_JH.
12721 This should clear up some of the build problems people have been
12724 * acinclude.m4: call AM_PATH_PYTHON_JH AM_PATH_PYTHON
12726 2001-05-26 Cyrille Chepelov <chepelov@calixo.net>
12729 * lib/boundingbox.[ch] (NEW): (some) refactoring of the bounding
12730 box code (beginning with lines, polylines and polybeziers), into a
12731 more generic facility. While at it, a better shot at correctly
12732 computing the bounding box of a Bezieroid (should take care of
12733 #53424, #51233 and of course is part 1 of #52912).
12735 * lib/diagramdata.c: turned the RENDER_BOUNDING_BOXES conditional
12736 into a hidden preference (set render_bounding_boxes in diarc).
12737 * app/preferences.[ch]: Added support for hidden preferences.
12739 * lib/geometry.[ch]: sprinkled with "const" modifiers.
12741 * lib/bezier_conn.[ch]:
12742 * lib/beziershape.[ch]:
12743 * lib/connection.[ch]:
12744 * lib/element.[ch]:
12745 * lib/poly_conn.[ch]:
12746 * lib/orth_conn.[ch]:
12747 * lib/neworth_conn.[ch]:
12748 * lib/polyshape.[ch]: adapted to take advantage of
12749 boundingbox.[ch] instead of relying on private (duplicate) code.
12751 * object/FS/flow.c:
12752 * object/GRAFCET/action.c:
12753 * objects/GRAFCET/condition.c:
12754 * objects/GRAFCET/vergent.c:
12755 * objects/GRAFCET/vector.c:
12756 * objects/SADT/annotation.c:
12757 * objects/SADT/arrow.c:
12758 * objects/ER/participation.c:
12759 * objects/UML/constraint.c:
12760 * objects/UML/implements.c:
12761 * objects/UML/lifeline.c:
12762 * objects/UML/message.c:
12763 * objects/UML/realizes.c:
12764 * objects/UML/generalization.c:
12765 * objects/UML/association.c:
12766 * objects/UML/dependency.c:
12767 * objects/FS/flow-ortho.c:
12768 * objects/network/bus.c:
12769 * objects/standard/arc.c:
12770 * objects/standard/bezier.c:
12771 * objects/standard/beziergon.c:
12772 * objects/standard/line.c:
12773 * objects/standard/polygon.c:
12774 * objects/standard/zigzagline.c:
12776 * objects/standard/polyline.c: Some *BBExtras structures changed
12777 names while moving to boundingbox.[ch]. A trivial mass-renaming.
12779 2001-05-20 Cyrille Chepelov <chepelov@calixo.net>
12781 * app/disp_callbacks.c (ddisplay_canvas_events): Take into account
12782 wheel mouses for scrolling (from Patrick Sung <phsung@ualberta.ca>)
12784 * app/display.c (ddisplay_update_scrollbars): from Patrick's
12785 suggestion, remove the extra scrollable area (it was only visible
12786 to the scrollbars). This is experimental.
12788 * objects/custom/custom_object.c: If a shape's icon file doesn't
12789 exist, warn and substitute a default icon, instead of crashing.
12792 * objects/network/network.c:
12793 * shapes/network/modularswitch.(shape|xpm) (NEW):
12794 * shapes/network/printer.(shape|xpm) (NEW):
12795 * shapes/network/genmonitor.(shape|xpm) (NEW):
12796 * shapes/network/computer.(shape|xpm) (NEW):
12797 * shapes/network/Makefile.am: four less objects, four more shapes.
12798 These were the last known RenderObjects. (phew !)
12802 * objects/sybase/Makefile.am:
12803 * objects/network/Makefile.am: Removed the older Renderobjects
12804 from the build, and their infrastructure (not yet deleted,
12807 * shapes/network/sceadplug.shape:
12808 * shapes/network/antenna.shape:
12809 * shapes/network/modem.shape:
12810 * shapes/network/hub.shape:
12811 * shapes/network/rj45plug.shape:
12812 * shapes/sybase/client.shape:
12813 * shapes/sybase/dataserver.shape:
12814 * shapes/sybase/ltm.shape:
12815 * shapes/sybase/repserver.shape:
12816 * shapes/sybase/rsm.shape:
12817 * shapes/sybase/stableq.shape: Minor corrections (line widths were
12818 ten times too narrow).
12820 2001-05-19 Cyrille Chepelov <chepelov@calixo.net>
12822 * objects/network/network.c:
12823 * shapes/network/sceadplug.(shape|xpm) (NEW):
12824 * shapes/network/antenna.(shape|xpm) (NEW):
12825 * shapes/network/modem.(shape|xpm) (NEW):
12826 * shapes/network/Makefile.am: four less objects, four more shapes.
12829 * lib/diagramdata.c:
12831 * lib/string_prerenderer.[ch] (NEW):
12832 Add a new renderer primitive, predraw_string() (does nothing, to be
12833 used as a hook to optimise the character encodings if needed).
12834 Added a string pre-renderer, which can be viewed as a filter
12835 renderer (to route draw_string() to predraw_string() and ignore
12836 the rest, in a first rendering pass)
12838 * app/render_eps.c: Took advantage of the above to make wholly
12839 optimised Postscript encoding page(s), even (especially) with
12840 non-latin1 code (HAVE_UNICODE must be true).
12842 (#53512 in fact is wholly resolved).
12844 2001-05-18 Cyrille Chepelov <chepelov@calixo.net>
12846 * lib/charconv.c: steps towards resolution of #53512 (inspired by
12847 Alexey Novodvorsky <aen@logic.ru>'s patch).
12849 * app/menus.c (dia_menu_signal_proxy): checked that the signal
12850 handler is not NULL before transferring control to it... (fixes #52836)
12852 * app/app_procs.c (app_init): removed non-constant initialiser
12855 * objects/custom/custom_object.c:
12856 * objects/custom/shape_info.[ch]:
12857 * objects/custom/test.xml: merged patch #53476 from Steven Hawkins
12858 <skh@mathstar.com>. This add support for a <svg:text> shape
12859 element, and some related style properties (font, font height,
12862 * doc/custom_shapes: a precision about the meaning of case in a
12863 SVG path (closes #52364)
12865 * lib/dummy_dep.h: fix for SGI IRIX 6.2 (#53053, reported and
12866 fixed by <drk@sgi.com>)
12868 2001-05-17 Cyrille Chepelov <chepelov@calixo.net>
12870 * objects/network/network.c:
12871 * shapes/network/Makefile.am:
12872 * shapes/network/hub.(shape|xpm) (NEW):
12873 * shapes/network/flash.(shape|xpm) (NEW):
12874 * shapes/network/rj45plug.(shape|xpm) (NEW):
12875 More shapes, less renderobjects.
12877 2001-05-16 Cyrille Chepelov <chepelov@calixo.net>
12879 * plug-ins/svg/render_svg.c: typo made exported ellipses
12880 corrupted (zero Y pseudo-radius).
12882 * objects/network/network.c:
12883 * objects/network/disc.c:
12884 * shapes/network/disc.(shape|xpm): Converted the first
12885 Renderobject into a shape. Normally, old diagrams should reload
12886 without problems (please check this against your diagrams). More
12887 flexibility should be gained that way. I intend to hunt and
12888 eradicate all renderobjects as I can commit cycles to that.
12890 * objects/Makefile.am:
12893 * objects/sybase/sybase.c:
12894 * shapes/sybase/Makefile.am(NEW):
12895 * shapes/sybase/client.(xpm|shape) (NEW):
12896 * shapes/sybase/dataserver.(xpm|shape) (NEW):
12897 * shapes/sybase/ltm.(xpm|shape) (NEW):
12898 * shapes/sybase/repserver.(xpm|shape) (NEW):
12899 * shapes/sybase/rsm.(xpm|shape) (NEW):
12900 * shapes/sybase/stableq.(xpm|shape) (NEW): converted Sybase
12901 renderobjects into shapes. The Sybase objects are now not compiled
12902 anymore, and ready to be nuked if nobody objects in the next few weeks.
12905 * app/diagram.[ch]:
12906 * app/disp_callbacks.c:
12907 * app/display.[ch]:
12908 * app/interface.[ch]:
12910 * app/modify_tool.c:
12911 * app/preferences.[ch]:
12912 * app/recent_files.c:
12913 * app/select.c: Added patch #52364 from Hubert Figuiere. This adds
12914 a menu bar reflecting the popup menu, to each display window. This
12915 is optional (changing the preference currently doesn't affect
12916 already opened windows; a few other rough edges to cut).
12918 * plug-ins/wpg/wpg.c:
12919 * plug-ins/xfig/xfig-import.c:
12920 * plug-ins/python/pydia-property.c:
12921 * plug-ins/python/pydia-properties.c:
12922 * plug-ins/python/pydia-geometry.c:
12923 * plug-ins/pstricks/render_pstricks.c:
12925 * objects/EML/dbox.c:
12926 * lib/ps-utf8.c: paleolithic C compilers choke on //. Should fix
12929 * lib/ps-utf8.c: improved the clustering of alphabetic character
12930 definitions in custom encodings pages.
12932 2001-05-02 Hans Breuer <hans@breuer.org>
12934 * lib/object.h : OBJECT_COMMON_PROPERTIES_OFFSETS correct type
12935 of 'obj_bb' to PROP_TYPE_RECT
12937 * objects/custom/custom_object.c : take all quarks into account,
12938 not only 4 as copy&paste suggests
12940 * objects/uml/objects.c : completed the implementation of the
12941 property api to avoid reading of totally bogus data. Removed
12942 the PROBABLY_DEAD_CODE. It actually was dead code, but not because
12943 there was too much but too less ...
12945 The above changes removed all known crashes (mentioned below)
12946 from the Property API. Property access is still incomplete though.
12948 * objects/flowchart/box.c :
12949 * objects/flowchart/diamond.c :
12950 * objects/flowchart/ellipse.c :
12951 * objects/flowchart/parallelogram.c :
12952 * objects/uml/classicon.c :
12953 * objects/uml/state.c : calculate number of quarks from quark array
12954 size instead of using hardcoded values for consistence and to avoid
12955 future bugs like the above
12957 * objects/eml/nlist.c : include <string.h> for strcmp()
12959 * lib/dia_xml.c : relax g_warning for values, which
12960 appear to be too small. There is nothing which prevents
12963 * plug-ins/python/pydia-geometry.c : changed stringifying of
12964 geometry objects accept BezPoint back to %f, which does not
12965 crash anymore, because all the data is intialized now and it
12966 simply is more readable than %e ...
12968 * plug-ins/python/python-startup.py : removed dependency
12969 to PyGtk, because it isn't required here and probably won't
12970 in i.e.: export filters.
12972 * plug-ins/python/gtkcons.py : create the gtkoutfile even
12973 if sys.stderr.fileno() isn't supported
12975 * app/makefile.msc : make version 0.88
12976 * plug-ins/makefile.msc : make version 0.88 an added new
12977 xfig files to build
12979 2001-05-11 James Henstridge <james@daa.com.au>
12981 * NEWS: remember to add news items this time.
12983 * dia.spec: update spec file for 0.88 release.
12985 * configure.in: up version number to 0.88
12987 * plug-ins/python/Makefile.am (EXTRA_DIST): fix up typo that was
12988 preventing any of the useful python scripts from being
12991 * sheets/Makefile.am (sheet-translation-report): fix bustage I
12992 introduced in my fixups for the 0.87 release :(
12994 2001-05-10 Lars Clausen <lrclause@cs.uiuc.edu>
12996 * plug-ins/xfig/xfig-import.c: Finally got groups working.
12998 2001-05-09 Lars Clausen <lrclause@cs.uiuc.edu>
13000 * plug-ins/xfig/xfig-import.c: Improvements to error handling and
13001 group manipulation.
13003 2001-05-09 Cyrille Chepelov <chepelov@calixo.net>
13005 * lib/ps-utf8.[ch]:
13006 * lib/Makefile.am: fix makefile breakage which led to not
13007 including ps-utf8.[ch] in the released tarballs.
13009 2001-05-09 James Henstridge <james@daa.com.au>
13011 * Makefile.am (core-translation-report): dist scripts needed for
13012 this target, and change to $(srcdir) before running.
13014 * sheets/Makefile.am (EXTRA_DIST): actually dist the sheets. DATA
13015 files aren't automatically included in the tarball by automake
13016 because they could be generated files.
13018 * objects/EML/Makefile.am (EXTRA_DIST): fix directory names.
13020 * doc/en/Makefile.am (install-data-hook): fix up where graphics
13023 * configure.in: up version number to 0.87
13025 * plug-ins/python/*.py: no longer necessary to explicitly set
13026 sys.argv, as python.c does it for us now (like it should).
13028 * plug-ins/python/gtkcons.py: fix up so it plays nicely as a dia
13031 * plug-ins/python/python-startup.py: startup script that imports
13032 all modules in $(datadir)/dia/python and ~/.dia/python.
13034 * plug-ins/python/python.c (dia_plugin_init): change so that it
13035 only runs the $(datadir)/dia/python-startup.py script. Make sure
13036 that sys.argv and __main__.__file__ are set when calling the
13039 * plug-ins/python/Makefile.am: update makefile. Make it install
13040 gtkcons.py plugin. I haven't set any other plugins to install, as
13041 they look like they are mainly for debugging purposes.
13043 * configure.in: add tests to detect if python is available, so we
13044 can build the python plugin. Only run if --with-python passed to
13047 2001-05-08 James Henstridge <james@daa.com.au>
13049 * acinclude.m4: add macros for detecting python.
13051 * app/menus.c (dia_gnome_menu_get_widget): handle paths that point
13052 at GNOME_APP_UI_SUBTREE entries.
13053 (menus_add_path): function to add a menu item to the menubars.
13054 Uses a hash table to keep track of extra menu items it adds. Also
13055 notifies the item factory about the entries so that accels can be
13057 (menus_add_path): implement gtk only version.
13058 (menus_init): use menus_add_path() to add the menu.
13059 (plugin_callback): simplify.
13061 2001-05-08 Steffen Macke <sdteffen@yahoo.com>
13063 * app/menu.c: removed #ifndef GNOME; GNOME build was broken
13065 2001-05-08 Lars Clausen <lrclause@cs.uiuc.edu>
13067 * plug-ins/xfig/xfig-export.c:
13068 * plug-ins/xfig/xfig-common.c:
13069 * plug-ins/xfig/xfig-import.c:
13070 * plug-ins/xfig/xfig.c:
13071 * plug-ins/xfig/xfig.h:
13072 * app/Makefile.am: Added support for exporting to Fig format
13073 (except splits, which are less powerful in Fig). Some refactoring
13076 2001-05-02 Hans Breuer <hans@breuer.org>
13078 * plug-ins/python/debug_objects.py : added another
13079 test to get massive crashes from the Property API due
13080 to unintialized data.
13082 * app/menu.c : the callback_action wasn't incremented
13083 (should have checked my last optimization). Now more
13084 than one plug-in callback is supported again.
13086 * plug-ins/python/pydia-geometry.c : avoid crashes from
13087 glib, when trying to g_strdup_printf unintialized floats.
13089 * plug-ins/python/pydia-property.c : avoid crashes from
13090 because of string_data == NULL (PROP_TYPE_FILE, PROP_TYPE_STRING)
13092 2001-05-01 Hans Breuer <hans@breuer.org>
13094 * objects/makefile.msc : added eml
13095 * objects/eml/instantiation.c : initialize 'inst' pointer
13096 before using, zero initialization for objects
13097 * objects/eml/interaction-ortho.c :
13098 * objects/eml/interaction.c : zero initialization for objects
13100 * app/menus.c : removed Gimp mru stuff which slipped in at
13101 2000-08-15, was never activated and will never be needed,
13102 because of Steffens recent file list patch added at 2001-01-05.
13104 * objects/eml/*.c : some more zero initialization of objects
13105 to avoid infinite (uninitialized) bounding boxes
13107 Implemented a callback api which allows plug-ins to register
13108 menu call backs. Dia for Gnome should compile, but will need
13109 some extra tweaking to make it work because I can't test it.
13111 * plug-ins/python/pydia-error.h :
13112 * plug-ins/python/pydia-render.c : moved Pxthon function return
13113 value handling from pydia-render.c to pydia-error.h, to make it
13115 * plug-ins/python/diamodule.c : implement callback function
13116 registration from and relaying to Python code
13118 * app/menus.c : register and use plug-in menu callbacks
13120 * lib/filter.[hc] : implement filter_register_callback() and
13121 filter_get_callbacks() for the above
13122 * lib/libdia.def : export them
13124 * plug-ins/python/debug_objects.py (new file):
13125 sample using the above
13127 2001-04-27 Lars Clausen <lrclause@cs.uiuc.edu>
13129 * plug-ins/shape/shape-export.c (new_shape_renderer):
13130 The name of a shape is now taken from the dir, to conform with
13133 2001-04-25 Lars Clausen <lrclause@cs.uiuc.edu>
13135 * app/properties.c (properties_show): Added title containing
13136 object type, plus (hopefully) fix of the ghost properties dialog.
13138 2001-04-16 Cyrille Chepelov <chepelov@calixo.net>
13140 * app/display.c: remove the display idle handler in case we
13141 destroy the ddisplay (caused crashes in ddd, probably random
13142 crashes elsewhere).
13146 * Makefile.am: hack around gettext-0.10.36's new "features".
13148 * lib/properties.[ch]: added new function object_copy_props().
13149 Added new property type PROP_TYPE_ENDPOINTS
13151 * lib/connection.h: added support for load/saving through the
13152 properties interface.
13154 * lib/object.[ch]: object_load/save/copy_using_properties()
13155 support functions (code factorisations).
13157 * objects/GRAFCET/boolequation.c: check against null values in
13158 boolequation_set_value() and boolequation_destroy().
13160 * objects/GRAFCET/transition.c: Converted from lazyprops to
13161 standard properties. 31% less (x86) code !
13163 * objects/GRAFCET/condition.c: also converted from lazyprops to
13164 standard properties. Also killed lots of code.
13166 2001-04-13 Hans Breuer <hans@breuer.org>
13168 * plug-ins/wmf/wmf.cpp : changed text conversion from
13169 g_utf8_utf16 to g_convert usage. The latter function is already
13170 available in tml's last "official" Gtk+ version (2000-12-26).
13171 This change allows to use recent Dia with either the official
13172 version or the latest cvs "gtk-1-3-win32-production"-branch.
13174 2001-04-14 Lars Clausen <lrclause@cs.uiuc.edu>
13176 * Patch from David S. Thompson <dcthomp@mail.utexas.edu>:
13177 * app/disp_callbacks.c:
13178 - Allow submenus in DiaMenus.
13179 - Don't require DiaMenu.title to be non-null (so that
13180 submenus aren't required to have titles)
13182 * objects/FS/function.c:
13183 - object menu now has submenus, an almost complete list of
13184 standard-basis verbs, and a start on nouns.
13185 - box padding, dash length, and other visual attributes are
13186 scaled by the font size... eventually font height will be
13187 a function property.
13188 - draw functions with smaller font to make initial view hold
13189 a reasonable number of functions.
13191 2001-04-13 Cyrille Chepelov <chepelov@calixo.net>
13194 * sheets/chronogram.sheet:
13195 * sheets/jigsaw.sheet:
13196 * sheets/sybase.sheet: Updated Dutch sheet translations from Dag
13197 Wieers <dag@wieers.com>
13199 2001-04-13 Hans Breuer <hans@breuer.org>
13201 * app/app_procs.c (app_exit) : added g_return_if_fail (!app_exit_once)
13202 to ensure that all the deinitialization is only done once. Fixes
13203 recent app exit crash on win32
13205 * lib/dia_xml.c : provide isinf() replacement for msc which does only
13208 * lib/libdia.def : updated
13210 * objects/makefile.msc : added wanlink.c
13212 * objects/network/wanlink.c : added M_PI_2 definition for poor
13213 platforms which don't have one
13215 * objects/standard/arc.c :
13216 * objects/standard/zigzagline. c: part of ConectionBBExtras wasn't
13217 initialized which led to rather huge bounding boxes (try Ctrl^A on
13218 diagrams with Arcs or ZigZagLines).
13219 * objects/*/*.c : to avoid further bugs like the above changed all
13220 object initializations to g_malloc0 or g_new0
13223 2001-04-09 Cyrille Chepelov <chepelov@calixo.net>
13225 * lib/paper.[ch]: get rid of "no previous prototype fo `foo'" by
13226 doing a s/T foo()/T foo(void)/ for all possible values of T and foo.
13228 * objects/UML/class.c:
13229 * objects/UML/usecase.c:
13230 * objects/UML/large_package.c:
13231 * objects/UML/message.c:
13232 * objects/UML/object.c:
13233 * objects/UML/lifeline.c:
13234 * objects/FS/flow.c:
13235 * objects/FS/flow-ortho.c:
13236 * objects/FS/function.c:
13237 * objects/custom/custom_object.c:
13238 * objects/GRAFCET/vergent.c:
13239 * objects/chronogram/chronoref.c:
13240 * objects/SADT/box.c:
13241 * objects/SADT/annotation.c:
13242 * plug-ins/dxf/dxf-import.c:
13243 * plug-ins/xfig/xfig-import.c:
13244 * plug-ins/wpg/wpg.c:
13247 * app/display.c: /* certainly more WIP than dead code there */
13248 Unused variables, unused static function definitions, forgotten or
13249 incomplete prototypes added or fixed, lack of const or unwanted const,
13250 etc. (mostly clean-ups of leftovers of the pre-properties era).
13251 Non-obvious cases bracketed by #define THIS_IS_PROBABLY_DEAD_CODE,
13252 please check these.
13254 * app/lineprops_area.c: More of the same. Missing prototypes
13255 added, and functions unused outside made static.
13257 * app/recent_files.c:
13258 * app/properties.c:
13259 * app/defaults.c: some variables are used only when doing a GNOME
13262 * app/magnify.c: missing #include <stdlib.h>.
13264 * app/paginate_gnomeprint.c: Unused variable; missing "message.h".
13266 These are a lot of clean-ups (by the way, this compiles and runs
13267 cleanly with "gcc-3.0 -O2 -Wall --std=gnu99" too !); please grep
13268 for DEAD_CODE, and if it's yours, judge it.
13270 2001-04-07 Cyrille Chepelov <chepelov@calixo.net>
13272 * plug-ins/dxf-import.c: some progress with the arcs; still some
13273 clean-ups to do and line width scaling issues to figure out.
13275 * objects/standard/arc.c: start_point and end_point properties
13276 (duplicated from standard/line.c)
13278 * plug-ins/xfig/xfig-import.c: zip ! zap ! no more dead DXF import
13281 2001-04-06 Cyrille Chepelov <chepelov@calixo.net>
13283 * plug-ins/dxf-import.c: setlocale-related clean-ups and fixes ;
13284 preliminary support for arcs (doesn't work). Circles and ellipses are
13285 now transparent. Coordinate and width scaling are now a common
13286 static constant (probably before morphing into a preference).
13288 * sheet/checktrans.py: improved error reporting. Made checktrans
13289 count lack of <name xml:lang="code"> as a lack of translation for
13290 language "code" (no, it's not a plot to bring down other
13291 language's scores !)
13293 * sheet/*.sheet: Ensured all sheets have an encoding="iso-8859-1"
13294 in the header, and have <name xml:lang="fr"> components.
13296 2001-04-05 Cyrille Chepelov <chepelov@calixo.net>
13298 * objects/custom/custom_object.c: temporary hack to fix the shape
13299 bounding box reported by Ben A. Hetland. Proper fix isn't .87
13300 material, see bugzilla #52912.
13302 2001-04-05 Lars Clausen <lrclause@cs.uiuc.edu>
13304 * objects/standard/image.c (get_directory): Now uses
13305 G_SEPARATOR_CHAR_S instead of "/"
13307 * sheets/network.sheet:
13308 * sheets/Logic.sheet:
13309 * sheets/Flowchart.sheet:
13310 * sheets/Electric.sheet:
13311 * sheets/Circuit.sheet:
13313 * sheets/Pneumatic.sheet:
13314 * sheets/SDL.sheet:
13315 * sheets/UML.sheet:
13316 * sheets/GRAFCET.sheet:
13317 * sheets/MSE.sheet:
13318 * sheets/chronogram.sheet:
13319 * sheets/civil.sheet:
13320 * sheets/network.sheet:
13321 Danish translations.
13323 * objects/standard/image.c (get_directory): Changed get_directory
13324 to use g_dirname to find the directory part.
13326 2001-04-05 Cyrille Chepelov <chepelov@calixo.net>
13329 * sheets/Electric.sheet:
13330 * sheets/Flowchart.sheet:
13331 * sheets/Logic.sheet:
13332 * sheets/network.sheet: More Dutch translations from Dag Wieers.
13334 2001-04-04 Cyrille Chepelov <chepelov@calixo.net>
13336 * sheets/checktrans.py: now emits a warning when two descriptions
13337 for a single language code are found.
13340 * sheets/Makefile.am: -translation-reports now also depend on their
13343 2001-04-04 Cyrille Chepelov <chepelov@calixo.net>
13345 * sheets/Circuit.sheet:
13346 * sheets/Contact.sheet:
13347 * sheets/Logic.sheet:
13348 * sheets/chronogram.sheet:
13349 * sheets/sybase.sheet:
13350 Dutch translations from Dag Wieers <dag@wieers.com>
13352 2001-04-04 Cyrille Chepelov <chepelov@calixo.net>
13354 * po-checktrans.py: Now shows the detailed counts alongside the
13355 percentage of translations.
13357 2001-04-03 Cyrille Chepelov <chepelov@calixo.net>
13360 * po-checktrans (NEW):
13361 * po-checktrans.py (NEW): builds core-translation-report:
13362 percentages of core (gettext) translations done [Not placed into
13363 po/ where that should belong, because of integration fear^Wissues
13366 TO THE KIND ATTENTION OF PACKAGERS: core-translation-report and
13367 sheets/sheet-translation-report probably ought to be copied on the
13368 user's /usr/share/doc/dia (or equivalent) directory.
13370 * sheets/Makefile.am: sheet-translation-report now a simple
13371 EXTRA_DIST; make install won't install it by default.
13373 2001-04-03 Cyrille Chepelov <chepelov@calixo.net>
13375 * app/preferences.c: changed the default grid colour to something
13378 * shapes/SDL/*.shape:
13379 * sheets/SDL.sheet: renamed all SDL shapes to conform to the
13380 "$LIBRARY - $NAME" convention. THIS REQUIRES FIXING THE EXISTING
13381 DIA FILES (well, for files using SDL), see the mailing list
13382 archive "SDL (ab)using the global shape namespace" for a script to
13383 do this conversion.
13385 * sheets/SDL.sheet: translated into French
13386 * sheets/network.sheet: fixed XML typos. Yay ! 100% :-)
13388 2001-04-02 Cyrille Chepelov <chepelov@calixo.net>
13390 * lib/dia_xml.c: made data_point() more paranoid
13392 * sheets/Makefile.am:
13393 * sheets/checktrans (NEW):
13394 * sheets/checktrans.py: Made checktrans handle more gracefully the
13395 absence of python and python-xml packages, and made the error
13396 message more helpful.
13398 2001-04-01 Lars Clausen <lrclause@cs.uiuc.edu>
13400 * lib/render_object.c (new_render_object): Made initial handles
13401 behave like on most other objects.
13403 * app/load_save.c (read_objects): Fixed premature free'ing ofr
13404 typestr causing garbage.
13406 2001-04-01 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
13408 * objects/FS/flow-ortho.c: Fixed a crashbug causes by not
13409 accouting for handle ordering through copy and save. (#51479)
13411 2001-03-31 Cyrille Chepelov <chepelov@calixo.net>
13413 * sheets/Circuit.sheet: Norwegian translation mistagged to German.
13415 2001-03-31 Steffen Macke <sdteffen@yahoo.com>
13417 * sheets/Circuit.sheet
13419 * sheets/network.sheet: Updated German translations
13421 2001-03-30 Cyrille Chepelov <chepelov@calixo.net>
13424 * app/lineprops_area.c: The return of the revenge of the arrow
13425 heads. Now all types covered by ISO 10303-201 should be covered.
13427 2001-03-30 Cyrille Chepelov <chepelov@calixo.net>
13429 * sheets/Flowchart.sheet: translations in probably Hungarian were
13430 a victim of cut-n-paste from the German one. Fixed (hopefully).
13431 * sheet/UML.sheet: translation in probably Norwegian was a victim
13432 of cut-n-paste from the French one. Fixed (hopefully).
13433 * sheets/Logic.sheet: French translation not tagged with
13436 * sheets/checktrans.py:
13437 * sheets/Makefile.am: new file, sheet-translation-report, to be
13438 installed along the sheets, show how much of them has been
13439 translated into which language (I wish the result was prettier...)
13441 * po/README: most translators don't read this file, but anyway...
13443 * sheets/.cvsignore:
13444 * objects/network/.cvsignore: the usual negotiation with CVS.
13446 2001-03-30 Cyrille Chepelov <chepelov@calixo.net>
13448 * sheets/*.sheet: French translations
13450 2001-03-28 Cyrille Chepelov <chepelov@calixo.net>
13452 Added patch #52363 from Hubert Figuiere <hfiguiere@teaser.fr>:
13454 ** objects/network/network.c:
13455 ** objects/network/wanlink.c:
13456 ** objects/network/pixmaps/wanlink.c:
13457 ** sheets/network.sheet:
13458 ** objects/network/Makefile.am: a better object to use instead of
13459 the older WAN Connection.
13461 ** lib/geometry.[ch]: rotation matrix functions in geometry.c (derived from gimp)
13463 ** objects/GRAFCET/vector.c: renamed Vector to GRAFCETVector to avoid a
13466 * objects/GRAFCET/vector.c: Re-renamed GRAFCETVector into
13467 Arc; kept the C file name (because CVS wouldn't like it), and
13468 still registering the older object name (but advertising the newer
13469 one in sheets/GRAFCET.sheet).
13471 2001-03-24 Hans Breuer <hans@breuer.org>
13473 * app/dia.def : some plug-ins (currently only python, xfig) are using
13474 functions from the dia executable. To get them working these functions
13475 need to be explicit exported on win32. IMO the much cleaner way would
13476 be to move these functions to libdia, but that would require some
13477 long term restructuring ...
13479 * lib/libdia.def : updated
13481 * plug-ins/makefile.msc : build xfig plug-in
13483 2001-03-24 Hans Breuer <hans@breuer.org>
13485 * app/diagram.c : g_strdup (dia->filename) because it will be
13488 * app/display.c : set ddisp->renderer to NULL after destruction.
13489 This may solve or help to identify erroneous access to it after
13492 * plug-ins/wmf/wmf.cpp : convert string from utf8 to wchar to
13493 get 'umlauts' working
13495 2001-03-22 Cyrille Chepelov <chepelov@calixo.net>
13497 * object/chronogram/chronoline_event.c: stupid bug ; rises and falls
13498 were reversed... (look for the patch, and drink a beer to my
13501 2001-03-23 Hans Breuer <hans@breuer.org>
13503 * app/app_procs.c : don't g_error () if the config directory
13504 can't be created (at least not on windoze) because it's quite
13505 common that the user don't read or understand the FAQ ...
13507 * app/cursor.c : use ddisplay_active () instead of active_display
13510 * app/display.[hc] : made active_display var static and provide
13511 an accessor funtion ddisplay_active_diagram ()
13513 * app/dia-props.c : don't store the active_diagram, but ask
13514 for it everytime it needed.
13516 * lib/properties.h : #include "intl.h"
13518 * lib/makefile.msc : need to take care of inclusion order to
13519 avoid clashes with gtk+2.0's gdk-pixbuf
13521 * objects/makefile.msc : added uml/stereotype.c to build
13523 2001-03-23 Lars Clausen <lrclause@cs.uiuc.edu>
13525 * **/*.c: Added config.h to the remaining .c files, and changed
13526 all to be <config.h>.
13528 2001-03-22 Steffen Macke <sdteffen@yahoo.com>
13533 * app/lineprops_area.c: added new arrow types with double
13536 2001-03-20 Steffen Macke <sdteffen@yahoo.com>
13538 * shapes/Civil/civil_gas_bottle.xpm
13539 * shapes/Civil/civil_gas_bottle.shape
13540 * sheets/civil.sheet
13541 * shapes/Civil/Makefile.am: Added gas bottle shape by Arne
13544 2001-03-20 Lars Clausen <lrclause@cs.uiuc.edu>
13546 * objects/custom/shape_info.c (load_shape_info):
13547 * objects/custom/shape_info.h:
13548 * objects/custom/custom_object.c (custom_update_data):
13549 Better support for text outside the box -- new attributes 'resize'
13550 and 'align' for text entity. Align not fully supported yet.
13552 * lib/text.c (text_calc_boundingbox): Adding BB for cursor width.
13554 2001-03-20 James Henstridge <james@daa.com.au>
13556 * app/interface.c (display_data_received_callback): comment out
13559 2001-03-19 James Henstridge <james@daa.com.au>
13561 * app/GNOME_Dia.oaf: rename from GNOME_Dia.oafinfo.
13563 * objects/UML/realizes.c: similar here.
13565 * objects/UML/implements.c: similar here.
13567 * objects/UML/component.c: similar here.
13569 * objects/UML/generalization.c: same here.
13571 * objects/UML/dependency.c: allow NULL for ->name and
13572 ->stereotype. This fixes a number of problems in loading saved
13575 * lib/properties.c: various changes so that NULL string properties
13578 * objects/standard/line.c (line_update_data):
13579 line->extra.start_long and line->extra.end_long were not being
13580 initialised. This fixes potential problems with the bounding box
13581 of "Standard - Line" objects.
13583 2001-03-19 Hans Breuer <hans@breuer.org>
13585 * app/commands.c : added win32 specific code to display a html
13586 file. #include "text.h" for text_delete_all prototype.
13589 * app/dia.rc : (new) to give Dia win32 an icon
13591 * app/win32print.[ch] : new files to support direct postscript
13592 file printing on win32. Beware: it *requires* a ps-printer!
13594 * app/paginate_psprint.c : disable the signal code for win32 build
13595 and added small specific changes to support win32print.
13597 * app/makefile.msc : added win32print and linking shell32.lib
13599 * lib/libdia.def : updated
13601 2001-03-18 Kevin Breit <battery841@mediaone.net>
13603 * doc/en/dia-C.omf: Added file. Dia should now list in the Nautilus
13606 2001-03-17 James Henstridge <james@daa.com.au>
13608 * app/paginate_psprint.c (diagram_print_ps): add code that traps
13609 SIGPIPEs during printing. This gets rid of a number of crashes
13610 caused by printing (eg. typing an incorrect print command).
13612 * dia.spec (%install): gzip the manpage.
13614 * lib/beziershape.c (beziershape_save): fix off by one error in
13615 beziershape save code, which was adding an extra segment to the
13618 * app/menus.c: add a separator in the gnome version of the help
13621 * app/app_procs.c (app_init): add a --nosplash argument which
13622 disables the splash screen.
13624 * app/dia_embedd.c (main): don't leave the splash screen open for
13625 embeddable component.
13627 * app/splash.c (app_splash_init): the gtk_widget_show_now() call
13628 didn't seem to be showing the splash screen like expected, so I
13629 have replaced it with some code that calls gtk_main() until the
13630 first exposure of the window.
13632 2001-03-16 James Henstridge <james@daa.com.au>
13634 * app/Makefile.am (EXTRA_DIST): add extra pixmaps.
13636 * objects/UML/Makefile.am (libuml_objects_la_SOURCES): add
13639 * lib/Makefile.am (libdia_a_SOURCES): add diavar.h here.
13641 * app/Makefile.am (dia_core_files): remove splash.h from file
13642 list, as it doesn't exist.
13644 * doc/en/Makefile.am (uninstall-local): remove the docdir on
13647 * doc/Makefile.am (uninstall-local): target to remove the C
13650 * dia.spec (%files): include the documentation in the package.
13652 * app/menus.c (toolbox_menu_items): add menu item for manual,
13653 which calls help_manual_callback.
13655 * app/commands.c (help_manual_callback): find help file and load
13656 netscape to view it.
13658 * app/commands.h: add prototype for help_manual_callback()
13660 * doc/Makefile.am (helpdir): similar here.
13662 * doc/en/Makefile.am (helpdir): make the helpdir
13663 $(pkgdatadir)/help/en in the non gnome case.
13665 * configure.in (HAVE_GNOME): add conditional.
13667 * doc/en/Makefile.am: handle the graphics in a more general way,
13668 so it is easier for Kevin to add them to the build (just add them
13669 to the GRAPHICS var).
13671 * app/Makefile.am (embed_extra_print_files): make the case of
13672 building without gnome-print support but with bonobo support work.
13673 dia-embedd needs to be include the gnome-print
13675 2001-03-09 Cyrille Chepelov <chepelov@calixo.net>
13677 * samples/Makefile.am: included all samples in the distribution....
13679 2001-03-09 Cyrille Chepelov <chepelov@calixo.net>
13681 * configure.in: removed premature test for DPS. Added -*- m4 -*-
13682 at the beginning. Made HAVE_UNICODE non-default. po/es_ES.po has
13683 vanished, removed it from ALL_LINGUAS.
13685 * lib/charconv.[ch] (NEW): a very small wrapper around
13686 unicode_iconv to convert strings between utf8 and local charset
13687 (actually, ISO-8859-1, though one can do
13688 CFLAGS="-DEFAULT_8BIT_CHARSET=\"ISO-8859-2\"" and the like).
13690 * lib/ps-utf8.[ch] (NEW): A PostScript Unicoder ; a smallish
13691 library to help build Postscript streams which use as many custom
13692 font encodings as necessary to correctly represent all characters
13693 used (testing from users with non-latin1 and/or more than 256
13694 characters in routine use *very* welcome).
13696 * app/Makefile.am, lib/Makefile.am: integrated these into the
13699 * shapes/Logic/.cvsignore (NEW): .cvsignore
13701 * app/render_eps.h: forwarded some changes Lars forgot to include.
13702 * app/render_eps.c: turned off ASCII85 and FILTERS, as this
13705 2001-03-08 Kevin Breit <battery841@mediaone.net>
13707 * doc/en/home_network.png: Added file.
13708 * doc/en/line_props.png: Added file.
13709 * doc/en/usage-objects.sgml: Added two graphics to file.
13710 * doc/en/usage-quickstart.sgml: Added one graphic to file.
13712 2001-03-06 Kjartan Maraas <kmaraas@gnome.org>
13714 * app/grid.h: Place comment around text after #endif.
13715 * lib/bezier_conn.c: #include <string.h>.
13716 * lib/beziershape.c: #include <string.h>.
13717 * lib/connpoint_line.h: Comment after #endif.
13718 * lib/dia_dirs.c: #include <string.h>.
13719 * lib/element.c: Same.
13720 * lib/lazyprops.c: #include <config.h> and "intl.h".
13721 * lib/lazyprops.h: Comment out text after #endif.
13722 * lib/neworth_conn.c: #include <string.h>
13723 * lib/orth_conn.c: Same here.
13724 * lib/poly_conn.c: Here too.
13725 * lib/polyshape.c: And here.
13726 * lib/properties.c: Remove #include "intl.h" from here and add
13727 an array of static strings to work around bug in gettext that
13728 makes it miss strings in a #define body.
13729 * objects/GRAFCET/action_text_draw.h: Comment out text after #endif.
13730 * objects/GRAFCET/boolequation.h: Same here.
13731 * objects/chronogram/chronoline_event.h: Add prototype for
13734 2001-03-05 Lars Clausen <Lars R. Clausen <lrclause@cs.uiuc.edu>
13736 * objects/FS/function.c:
13737 * objects/FS/flow.c:
13738 * objects/FS/flow-ortho.c:
13739 Updated to use properties.
13741 2001-03-03 James Henstridge <james@daa.com.au>
13743 * lib/lazyprops.c (__propdlg_build_enum): translate the radio
13744 button labels when creating them.
13746 2001-02-28 Lars Clausen <Lars R. Clausen <lrclause@cs.uiuc.edu>
13748 * objects/UML/actor.c
13749 * objects/UML/realizes.c
13750 * objects/UML/implements.c
13751 * objects/UML/generalization.c
13752 * objects/UML/dependency.c
13753 * objects/UML/constraint.c
13754 Updated to use properties.
13756 * objects/UML/stereotype.c
13757 * objects/UML/stereotype.h
13758 Generalized to any kind of bracketting.
13760 2001-02-28 James Henstridge <james@daa.com.au>
13762 * app/menus.c: add help entry to the help menu. Need to get this
13763 working for the non GNOME case as well (maybe put help under
13764 $(datadir)/dia/help for non GNOME?)
13766 * doc/en/topic.dat: add a topic.dat file for GNOME menus.
13768 * doc/en/dia-manual.sgml (legalnotice): add an id attribute to
13769 this element so that we get a meaningful filename in the html
13772 * doc/Makefile.am, doc/en/Makefile.am: new makefiles to handle the
13775 * configure.in (DB2HTML): add a check for the db2html program, and
13776 set an automake conditional if it is found.
13778 * Makefile.am: remove EXTRA_DIST rules that cover doc/ directory,
13779 and descend into doc/ directory while building.
13781 * configure.in (AC_OUTPUT): add doc/ makefiles to output list, now
13782 we need more complex rules for building the docs.
13784 2001-02-25 Hans Breuer <hans@breuer.org>
13786 * config.h.win32 : some cleanup
13788 * app/prefererences.c : g_scanner_(freeze|thaw)_symbol_table
13789 are deprecated since glib-1.3.2. Sorry needing to use them
13790 contionally, but there is no glib-1.2 for win32
13792 * app/recent_files.c : use g_strescape (params) conditionally
13794 * lib/connection.c : include string.h for memcpy
13796 * lib/geometry.h : added some stuff for compatibility with
13797 msvc, which previously came from included config.h
13799 * lib/libdia.def : updated
13801 * objects/makefile.msc : updated
13803 * objects/GRAFCET/action.c(490) : fixed warning C4700: local variable
13804 'extra' used without having been initialized
13806 * objects/network/bus.c(658) : initialize 'extra'
13808 * plug-ins/makefile.msc : updated
13810 * plug-ins/cgm/cgm.c :
13811 * plug-ins/pstricks/render_pstricks.c :
13812 g_free() memory allocated by dia_image_rgb_data(). Plugs possibly
13815 * plug-ins/python/python.c : use HAVE_DIRENT_H
13817 2001-02-23 Lars Clausen <Lars R. Clausen <lrclause@cs.uiuc.edu>
13819 * lib/connection.c (connection_update_boundingbox):
13820 Made the BB shrink on right and lower sides, too.
13822 2001-02-23 Kjartan Maraas <kmaraas@gnome.org>
13824 * */*.c: #incude <config.h> at the top.
13825 * */*.h: Remove include of "config.h" since it should only
13826 be included in .c files and at the very top for things to
13828 * sheets/*.sheet: Updated Norwegian translations.
13830 2001-02-22 Lars Clausen <Lars R. Clausen <lrclause@cs.uiuc.edu>
13832 * objects/UML/small_package.c:
13833 * objects/UML/class.c:
13834 * objects/UML/node.c:
13835 * objects/UML/usecase.c:
13836 * objects/UML/lifeline.c:
13837 * objects/UML/message.c:
13838 Various cleanup of properties in particular. Now much more use of
13839 standard properties.
13841 * lib/diagramdata.c (layer_render): Visualization of bounding
13842 boxes, for debugging purpoises.
13844 2001-02-22 Cyrille Chepelov <chepelov@calixo.net>
13847 * lib/connection.[ch]:
13848 * lib/poly_conn.[ch]:
13849 * lib/polyshape.[ch]:
13850 * lib/bezier_conn.[ch]:
13851 * lib/beziershape.[ch]:
13852 * lib/orth_conn.[ch]:
13853 * lib/neworth_conn.[ch]:
13854 * lib/element.[ch]: Changed a bit the _update_boundingbox()
13855 interface. Now the parent elements have an extra_spacing
13856 structure, which child objects just need to fill, to take care of
13857 most arrow & line width extra space needs.
13859 * objects/**/*.c: updated all objects to the new interface.
13860 While at it, killed all instances of (Object *) downcasts (phew !)
13862 * objects/GRAFCET/condition.c: removed the arrowhead, which IEC848
13863 doesn't speak about.
13865 2001-02-21 Lars Clausen <Lars R. Clausen <lrclause@cs.uiuc.edu>
13867 * sheets/Logic.sheet: New sheet for Logic symbols.
13869 2001-02-21 James Henstridge <james@daa.com.au>
13871 * app/menus.c (dia_gnome_menu_get_widget): new function to find a
13872 widget by its path name. Walks the GnomeUIInfo heirachy rather
13873 than widget tree, compares untranslated label names and ignores
13874 underscores in the labels.
13875 (menus_get_item_from_path): use dia_gnome_menu_get_widget so that
13876 lookups are not dependent on the current locale, as with
13877 gnome_app_find_menu_pos.
13879 * acconfig.h: guard against multiple inclusion of config.h.
13881 * app/select.c (select_style_callback): simply set the selection
13882 style to the value of action.
13884 * app/menus.c (menus_init): simplify the item factory based menu
13885 code a bit. It looks like it was using some code cut and pasted
13886 from the gimp, which looked a bit unnecessary. Things work fine
13888 (selectmenu): set the action to the type of selection mode
13890 (display_menu_items): use the symbolic enumeration values for the
13893 * app/plugin-manager.c:
13894 * app/plugin-manager.h:
13898 * app/select.h: change prototypes.
13900 * app/commands.c: update all callback prototypes, and get rid of
13901 some #ifdef GNOME's.
13903 * app/commands.h: change function prototypes.
13905 * app/dia_embedd.c (save_fn):
13906 s/ex_Bonobo_IOError/ex_BonoboStorage_IOError/
13908 * app/menus.c (menus_init): for gnome menus, use
13909 gnome_app_fill_menu_custom and pass in a GnomeUIBuilderData
13910 structure that proxies the callbacks to have the same signature as
13911 GtkItemFactory type 1 callbacks.
13912 (menus_init): for GTK menus, change from callback type 2 to type
13914 (display_menu_items): add back tearoffs. I don't know who removed
13915 these for the gtk menu case.
13917 2001-02-20 Kevin Breit <battery841@mediaone.net>
13919 * doc/en/usage-objects-special.sgml: Fixed a few of the special
13920 object descriptions. More to come in the next few days.
13922 2001-02-20 Lars Clausen <lrclause@cs.uiuc.edu>
13924 * app/render_eps.c: Fixed for internationalized floating point
13927 * objects/UML/note.c: Fixed properties -- was missing
13928 Get/ApplyPropertiesFunc. Also improved update to recalculate text
13931 2001-02-19 Lars Clausen <lrclause@cs.uiuc.edu>
13933 * plug-ins/xfig/xfig-import.c:
13934 File added importing xfig files. Still very rough, but good
13935 enough to let others hack on it.
13937 2001-02-07 Cyrille Chepelov <chepelov@calixo.net>
13940 * app/linewidth_area.c:
13942 * lib/properties.c:
13944 * objects/ER/attribute.c:
13945 * objects/ER/entity.c:
13946 * objects/ER/relationship.c:
13947 * objects/custom/custom_object.c:
13948 * objects/flowchart/box.c:
13949 * objects/flowchart/diamond.c:
13950 * objects/flowchart/ellipse.c:
13951 * objects/flowchart/parallelogram.c:
13952 * objects/standard/box.c:
13953 * objects/standard/textobj.c: per Vlad Harchev's request, made
13954 page sizes of gtk_adjustments different than their step sizes.
13955 When sensible values of page size weren't found (overwhelming
13956 majority of cases), page sizes were set to 10.0 * respective step
13959 2001-02-07 Lars Clausen <lrclause@cs.uiuc.edu>
13961 * objects/network/hub.c:
13962 Patch from Hubert Figuiere applied, adding connection points.
13964 2001-02-02 James Henstridge <james@daa.com.au>
13966 * app/display.c (new_display): set update id to 0 here.
13967 (ddisplay_update_handler): rename from ddisplay_flush, and set
13968 update_id to 0 at end of processing.
13969 (ddisplay_flush): new implementation that simply sets an idle
13970 handler to perform the actual drawing.
13972 * app/display.h: add structure member to hold the redraw idle
13975 2001-01-31 Lars Clausen <lrclause@cs.uiuc.edu>
13977 * objects/standard/ellipse.c (ellipse_copy):
13978 * objects/standard/zigzagline.c (zigzagline_copy):
13979 Fix of copying provided by Martin Hawlisch.
13981 2001-01-23 Kevin Breit <battery841@mediaone.net>
13983 * doc/en/graphics/: added directory
13985 * doc/en/graphics/greendots.png: added file
13987 * doc/en/*sgml: made minor and some major changes to prepare for 1.4
13990 2001-01-23 Kevin Breit <battery841@mediaone.net>
13992 * doc/en/*sgml: made some grammar changes and fixed a few markup bugs.
13993 thanks to John Fleck!
13995 2001-01-21 Kevin Breit <battery841@mediaone.net>
13997 * doc/en/*sgml: made just minor changes to a few lines; nothing major.
13999 2001-01-12 Michael Meeks <michael@helixcode.com>
14001 * app/dia_embedd.c (init_server_factory): do a bonobo_activate
14002 so our POA gets setup properly.
14004 * app/paginate_gnomeprint.c (paginate_gnomeprint): g_free
14005 things we g_malloc.
14007 * configure.in: Use bonobox_print.
14009 * app/dia_embedd.c (embeddable_factory): add print interface.
14010 (object_print): impl.
14012 2001-01-11 Michael Meeks <michael@helixcode.com>
14014 * app/dia_embedd.c (embeddable_factory): aggregate PersistFile.
14015 (load_fn, save_fn): impl.
14016 (view_factory): hide modified status bar, & use activate fn.
14017 (refresh_view): force redraws of the views.
14018 (view_show_hide): split from
14019 (dia_view_activate): here.
14021 * app/diagram.c (diagram_load_into): split from diagram_load.
14022 (new_diagram): simplify bu splittin stuff into
14023 (diagram_init): here.
14025 2001-01-10 Steffen Macke <sdteffen@yahoo.com>
14027 * shapes/jigsaw/*.shape: replaced #000000 with foreground
14028 and #ffffff with background
14030 2001-01-08 Steffen Macke <sdteffen@yahoo.com>
14032 *configure.in: GTK+-build was broken due to missing
14035 2001-01-06 Michael Meeks <michael@helixcode.com>
14037 * app/dia_embedd.c (main): add running context support.
14038 (dia_embeddable_destroy): remove old running object counting.
14039 (embeddable_factory): ditto.
14040 (view_factory): comment out menu path hiding.
14042 * lib/sheet.c (load_register_sheet): use free to free
14043 stuff from libxml not g_free.
14045 * acconfig.h: kill cover for USE_BONOBOX and USE_OAF
14047 * configure.in: remove USE_OAF checks, check for a precice
14048 Bonobo version >= 0.31, revamp bits.
14050 * app/dia_embedd.c (init_server_factory): upd.
14051 (init_dia_factory): remove OAF conditionals, everything uses
14054 * app/GNOME_Dia.oafinfo: rename OAFIIDs
14056 * app/Makefile.am: remove ancient gnorba code.
14057 rename dia.oafinfo to GNOME_Dia.oafinfo
14059 2001-01-07 Hans Breuer <Hans@Breuer.Org>
14063 * readme.win32 : some more files required or useful to build
14066 * plug-ins/wmf/wmf.cpp : fixed open issues like fill_arc and
14067 fill_bezier implementation, boundary drawing in fill mode, etc.
14068 Next one complaining gets the source, uncommented ...
14070 * shapes/network/router-symbol.xpm
14071 * shapes/network/switch-atm-symbol.xpm
14072 * shapes/network/switch-symbol.xpm : removed "-*- picture -*- "
14073 from /* XPM */ header, cause it stopped Dia/gdk_pixbuf to detect
14074 the files as XPMs. Maybe the X versions of these functions are more
14077 2001-01-06 Steffen Macke <sdteffen@yahoo.com>
14079 * plug-ins/python/Makefile.am: added libart path
14081 * plug-ins/python/python.c: added dirent.h
14083 * configure.in: added es_ES and pt_BR to ALL_LINGUAS
14085 2001-01-06 Hans Breuer <Hans@Breuer.Org>
14087 * objects/uml/actor.c
14088 * objects/uml/branch.c
14089 * objects/uml/class.c
14090 * objects/uml/classicon.c
14091 * objects/uml/component.c
14092 * objects/uml/large_package.c
14093 * objects/uml/node.c
14094 * objects/uml/note.c
14095 * objects/uml/object.c
14096 * objects/uml/small_package.c
14097 * objects/uml/state.c
14098 * objects/uml/usecase.c : started to implement the generic property
14099 interface for the uml objects. Would appreciate some help on how
14100 to implement properties which are list of properties themselves,
14101 e.g. member functions and their parameters of UMLClass.
14103 2001-01-06 Hans Breuer <Hans@Breuer.Org>
14105 * plug-ins/python/diamodule.c : finally ported to win32.
14106 Added new objects and implemented register_export function.
14108 * plug-ins/python/pydia-object.h
14109 * plug-ins/python/pydia-display.c
14110 * plug-ins/python/pydia-handle.c
14111 PyObject_HEAD_INIT needs some tweakink on win32. Done in
14112 pydia-object.h; others files simply using it.
14114 * plug-ins/python/pydia-layer.c : reflect
14115 layer_find_closest_connection(_)point renaming
14117 * plug-ins/python/pydia-object.c : add property properties.
14118 Also change bounding_box to DiaRectangle.
14120 * plug-ins/python/python.c : extended error reporting; use
14121 all *.py files from Dia's plug-in dir instead of hardcoded
14122 test.py. This sollution should be fine with Win32, but on
14123 Unix it may need some tweaking (dunno) ...
14125 * plug-ins/python/export-object.py
14126 * plug-ins/python/export-render.py : test and documentation
14127 implementations for export filter implementations in Python
14129 * plug-ins/python/pydia-color.[hc]
14130 * plug-ins/python/pydia-diagramdata.[hc]
14131 * plug-ins/python/pydia-error.[hc]
14132 * plug-ins/python/pydia-export.[hc]
14133 * plug-ins/python/pydia-font.[hc]
14134 * plug-ins/python/pydia-geometry.[hc]
14135 * plug-ins/python/pydia-image.[hc]
14136 * plug-ins/python/pydia-properties.[hc]
14137 * plug-ins/python/pydia-property.c
14138 * plug-ins/python/pydia-render.c : new objects in new files
14140 * plug-ins/python/makefile.am : added new files but can't test it
14142 * plug-ins/python/pydia.def
14143 * plug-ins/python/makefile.msc : for win32 build
14145 * plug-ins/cgm/cgm.c
14146 * plug-ins/dxf/dxf-import.c
14147 * plug-ins/dxf/dxf-export.c
14148 * plug-ins/hpgl/hpgl.c : reflect export API change
14150 * plug-ins/shape/shape-export.c : reflect export API change
14151 and check for libart (better the availibility of a png exporter)
14152 at run-time instead of compile-time.
14154 2001-01-06 Steffen Macke <sdteffen@yahoo.com>
14156 * app/recent_files.h was missing from Hans's commit
14158 * plug-ins/shape/shape_export.c: shape export was broken
14159 due to interface changes
14161 2001-01-05 Hans Breuer <Hans@Breuer.Org>
14163 Applied Steffen's recent file list patch :
14164 * app/Makefile.am : added recent_files.[hc]
14165 * app/diagram.c : add files to recent file list
14166 * app/menus.c : add recent file menu
14167 * app/app_procs.c : changed initialization order to
14168 make recent file list work with command line processing.
14170 The Filter export()/import() functions have got an additional
14171 parameter to allow multiple filters via one C callback (required
14172 for Python bindings)
14174 * app/commands.[hc] : corrected the signature for gtk menu callback
14175 functions, which actually use the second or third parameter. This
14176 is the absolute minimum change to make these functions/menu entries
14177 work again. Using the other possible gtk menu callback signature
14178 would have required one more function to change. (see mailing list
14179 thread "Objects/Align/Equal Distance" for more information.
14181 * app/disp_callbacks.c : applied Gustavo J.A.M. Carneiro's
14182 zoom-combo focus patch
14185 * app/interface.c : wrapped the Zoom Combo code into
14186 #ifndef WITHOUT_ZOOM_COMBO because IHMO it isn't an useabilty
14187 improvement but cluttering the user interface. Also it wasn't
14188 compiling on Win32 anyway. The win32 version does define
14189 WITHOUT_ZOOM_COMBO to keep the old look.
14190 There are plans to use the statusbar to display size and placement
14191 of selected objects, whereas the Zoom Combo would need to get out
14192 of the way as well.
14194 Added "Save Changes?" to diagram close dialog. Hopefuly the
14195 Yes/No/Cancel option isn't too much windoze like. IHMO this is
14196 an useability improvement.
14201 * app/layer_dialog.c
14202 * app/paginate_psprint.c
14204 - reflect signature changing of filter->export function
14205 - replaced '/' with G_DIR_SEPARARTOR where appropriate
14207 * app/diaunitspinner.c
14208 * app/render_libart.c
14209 added misssing headers like <string.h>
14211 * app/object_ops.c : fixed copy&paste bug in dialog string
14213 * app/splash.c : gdk_widget_show_now () does not ensure actual
14214 drawing of the splash screen, at least not on win32. Reuse the
14215 previous implementation with gtk_main_iteration() again.
14217 * */makefile.msc : make use of the build module (available in
14218 gnome-cvs/build. Updated for other source changes
14220 * lib/filter.h : added an user_data pointer to <ex/im>port()
14221 function signature and Dia<Im/Ex>portFilter to allow different
14222 filters to reuse the same callback function
14224 * lib/font.c : #include <string.h>
14229 * lib/neworth_conn.c
14230 * lib/text.c : don't mix allocator functions (g_)realloc, free, ...
14232 * */*.def : export function definition files required by win32 build
14234 * objects/custom/custom.c : #include <string.h>
14236 * plug-ins/pstricks/render_pstricks.c
14237 * plug-ins/shape/shape_export.c
14238 * plug-ins/svg/render_svg.c
14239 reflect changes to filter export function signature
14241 * plug-ins/wmf/wmf.cpp : fixed indent and scaling. It now should
14242 mostly work as expected
14243 * plug-ins/wmf/wmf_gdi.[hc] : Updated comment. Still not used
14244 to build the wmf plug-in because on the one hand the GDI emulation
14245 isn't finished and on the other hand it isn't required when building
14246 for win32. Is there anybody out there, who wants to save WMF on non
14247 windoze platforms ?
14249 * plug-ins/wpg/wpg.cpp : fixed scaling to take axis dependent
14250 offset into account.
14252 2001-01-02 Steffen Macke <sdteffen@yahoo.com>
14254 * app/Makefile.am: added missing plug-ins to run_dia.sh
14256 * lib/paper.c: added paper sizes A0, A1, A2
14258 * objects/UML/class.c
14259 objects/UML/class.h
14260 objects/UML/class_dialog.c: added support for colored UML
14263 2000-12-30 Kevin Breit <battery841@mediaone.net>
14265 * doc/en/usage-customization.sgml: added more content
14267 2000-12-24 Kevin Breit <battery841@mediaone.net>
14269 * doc/en/usage-layers.sgml: added file, contributed by Remypsb
14270 <remy.viard@laposte.net>
14272 2000-12-24 Steffen Macke <sdteffen@yahoo.com>
14274 * added limiting lines to Civil Engineering sheet,
14275 fixed vertical pump icon
14277 2000-12-20 Steffen Macke <sdteffen@yahoo.com>
14279 * updated/additional Civil Engineering shapes: better icons,
14280 shapes use foreground/background colors now and are filled
14282 2000-12-03 Kevin Breit <battery841@mediaone.net>
14284 * doc/en/dia-manual.sgml Integrated a few diffs. New section should be
14285 the selection <sect1>
14287 2000-11-29 Fredrik Hallenberg <hallon@lysator.liu.se>
14289 * app/load_save.c (diagram_data_save): avoid using obsoleted
14290 libxml calls (only matters when compiling with libxml2)
14292 2000-11-25 James Henstridge <james@daa.com.au>
14294 * app/disp_callbacks.c (ddisplay_drop_object): add a function to
14295 handle the tool drops on the canvas.
14297 * app/interface.c (display_data_received_callback): do the check
14298 to make sure that the drag is from a local toolbox here as well.
14300 * app/interface.c (create_tools): unref the pixmap/mask after
14301 creating the GtkPixmap.
14302 (tool_setup_drag_source): function to set up a drag source for
14303 create object tool buttons.
14304 (create_tools): setup drag source for CREATE_OBJECT_TOOL's.
14305 (fill_sheet_wbox): same here.
14306 (create_display_shell): set up the display canvas as a drag
14308 (display_drop_callback, display_data_received_callback): functions
14309 to handle drops of tool buttons.
14311 * app/menus.c (menus_init): don't use gnome_popup_menu_new(). It
14312 does weird shit to the user_data pointer for a menu item. Object
14313 alignment should work again now.
14315 * app/splash.c (get_logo_pixmap): don't unref the bitmap if it is
14316 NULL, and mark this function static.
14317 (app_splash_init): use gtk_widget_show_now() instead of the
14318 gtk_main_iteration loop.
14319 (app_splash_init): connecting gtk_widget_destroy to the destroy
14320 signal of a widget seems pretty useless.
14322 2000-11-23 Kevin Breit <battery841@users.sourceforge.net>
14324 * doc/en/dia-manual.sgml:
14325 Added sect1 for advanced object types. Starting development
14328 2000-11-18 Kevin Breit <battery841@mediaone.net>
14330 * doc/en/dia-manual.sgml:
14331 Stupid spelling fixes.
14333 2000-11-18 Kevin Breit <battery841@mediaone.net>
14335 * doc/en/dia-manual.sgml:
14336 Just some small changes I made. Props to Greg LeBlanc on the
14339 2000-11-17 Alexander Larsson <alla@lysator.liu.se>
14342 (ddisplay_add_display_area): Clip input rectangle to
14343 the visible part of the display.
14344 (ddisplay_scroll): Optimization, don't scroll and
14345 redraw if moving to the same position as before.
14347 * app/render_libart.c (renderer_libart_copy_to_window):
14348 Removed sanity check. Now moved to ddisplay_add_display_area().
14351 Added return at end of file.
14353 2000-11-13 Kevin Breit <battery841@mypad.com>
14354 * doc/en/dia-manual.sgml
14355 Commited manual changes from Henry House <hajhouse@houseag.com>
14357 2000-10-21 Hans Breuer <Hans@Breuer.Org>
14358 * lib/beziershape.c :
14359 The previous code was accessing unowned memory due to IHMO
14360 wrong index calculation. Now it appears to be fixed.
14364 * plug-ins/makefile.msc
14365 * objects/makefile.msc
14366 * app/makefile.msc: (new files)
14367 Makefiles for Dia on Win32, Micro$oft VC only.
14369 * plug-ins/pstricks/render_pstricks.c
14370 * plug-ins/dxf/dxf-import.c
14371 * plug-ins/shape/shape-export.c
14372 * plug-ins/svg/render_svg.c
14375 * app/preferences.c
14379 * objects/custom/custom.c
14380 * objects/standard/image.c
14381 portability (not only win32): use HAVE_UNISTD_H, HAVE_DIRENT_H
14382 where appropriate, add missing prototypes like <string.h>
14384 * plug-ins/wmf/wmf_gdi.cpp
14385 * plug-ins/wmf/wmf_gdi.h:
14386 start of wmf write functions for non Win32 platform. Not
14387 finished yet. The other way to get it working maybe to
14388 link the plug-in against wine libs.
14390 * plug-ins/wpg/wpg.c : add missing brace
14392 * app/load_save.c :
14393 Handling for unknown objects at load time. Previously Dia
14394 was crashing, if you try to load a file referencing objects
14395 whiches plug-ins aren't installed/available. Now it spits out
14396 a warning and ignores the unknown objects.
14399 toolbox DND support for files like The Gimp does it.
14403 Simple splash screen support and usage.
14406 Splash screen, portability fixes, dont' g_error if there is
14407 g_get_homedir return NULL. This may remove the one and only
14411 Make it compile without ENABLE_NLS
14413 * app/render_libart.c :
14414 Sanity check to avoid calling libart with wrong window coordinates.
14415 They come from the update handler. Direct Gdk is dealing nicely
14416 with coordinates out of range, libart does access un-owned memory
14417 in this case, mostly causing crashes.
14419 * app/winmain.c: (new file) Export the Win32 Gui version of the
14420 main function. This file is only required for Windoze.
14422 * app/splash.c: (new file) splash screen implementation
14426 * lib/diavar.h: (new file)
14427 moved special variable export code to diavar.h, because it is
14428 needed in color.h and font.h
14431 M$VC cann't export inlined functions. Quick hack to let it
14432 link again. Probably the glib mechanics should be used here?
14434 * objects/UML/lifeline.c : initialize var before usage
14436 * objects/GRAFCET/step.c : removed unused var
14438 2000-10-14 James Henstridge <james@daa.com.au>
14440 * app/render_gnomeprint.c (draw_image): change code so images
14441 don't get flipped when printing.
14443 * app/paginate_gnomeprint.c (diagram_print_gnome): check to make
14444 sure that the return value of
14445 gnome_print_context_new_with_paper_size is not NULL.
14447 * app/render_gnomeprint.c (draw_arc): add code to convert arcs
14448 into a series of bezier segments.
14449 (fill_arc): similar code to handle filled arc segments.
14451 2000-10-12 Fredrik Hallenberg <hallon@lysator.liu.se>
14458 * app/disp_callbacks.c
14460 * app/linewidth_area.c
14461 * app/paginate_psprint.c
14462 * app/preferences.c
14466 * app/neworth_conn.c
14468 * objects/standard/box.c: various small changes to get rid of
14469 annoying warnings (eg faulty prototypes and unused variables)
14471 * app/disp_callbacks.c
14474 * app/magnify.h: update magnify tool icon when pressing/releasing
14475 shift. I will try to make something more general so that similar
14476 things can be used by other tools.
14478 * shapes/SDL/inout.shape
14479 * shapes/SDL/return.shape: fixed some typos
14481 2000-10-09 James Henstridge <james@daa.com.au>
14483 * objects/custom/shape_info.c (parse_path): apply patch from
14484 Robert Young <robertdotyoung@dsto.defence.gov.au> to fix bug
14487 2000-10-08 James Henstridge <james@daa.com.au>
14489 * objects/standard/image.c (image_set_props): if the file could not
14490 be loaded, show the broken image icon.
14492 * plug-ins/Makefile.am (SUBDIRS): add shape to the subdirs list.
14494 * plug-ins/shape/*: the shape export plugin by Steffen Macke.
14496 * app/interface.c (fill_sheet_wbox): use gdk-pixbuf to load the
14497 object icon when loading from a file. This allows you to have PNG
14498 icon files for shapes.
14500 2000-10-07 James Henstridge <james@daa.com.au>
14502 * app/Makefile.am (dia_LDADD): remove GDK_IMLIB_LIBS reference.
14504 * lib/Makefile.am, app/Makefile.am (INCLUDES): remove
14505 GDK_IMLIB_CFLAGS reference.
14507 * app/commands.c (help_about_callback): remove imlib code.
14509 * lib/dia_image.c: only include the pixbuf version of the image
14512 * acconfig.h: remove the HAVE_GDK_PIXBUF flag from here.
14514 * configure.in (CPPFLAGS): remove the check for imlib, as we now
14515 require gdk-pixbuf.
14517 * plug-ins/pstricks/render_pstricks.c (new_pstricks_renderer):
14518 conditionally define \setfont as well.
14520 2000-10-05 James Henstridge <james@daa.com.au>
14522 * plug-ins/pstricks/render_pstricks.c (new_pstricks_renderer): fix
14523 preamble so that we define \setlinejoinmode and \setlinecaps
14524 commands conditionally on them being undefined. This way, the
14525 pstricks output files should work without modification, and will
14526 support the commands when they are implemented in pstricks.
14528 2000-10-05 Szabolcs Ban <shooby@gnome.hu>
14530 * dia.desktop: added hungarian translations to dia.desktop
14532 2000-10-04 James Henstridge <james@daa.com.au>
14534 * sheets/UML.sheet: fix typo.
14536 * objects/custom/shape_info.c: use strtod instead of g_strtod.
14537 (parse_path): actually call setlocale around strtod calls.
14539 * lib/dia_xml.c: use strtod rather than g_strtod. We wrap each
14540 call in setlocale(LC_NUMERIC, "C"), so there is no reason to call
14541 the g_strtod wrapper.
14543 * shapes/SDL/: add SDL shapes from Rubens Ramos
14544 <rubens_ramos@yahoo.com>
14546 * acinclude.m4 (DIA_CHECK_CFLAG): fix up macro.
14548 * sheets/Makefile.am (SHEETS): add SDL.sheet to list.
14550 * shapes/MSE/: add Mobile Subscriber Equipment shapes from
14551 W. Michael Petullo <mike@flyn.org>.
14553 * sheets/Makefile.am (SHEETS): add civil.sheet (which got missed
14554 from the 0.86 tarball) and jigsaw.sheet.
14556 * configure.in: add shapes/jigsaw/Makefile to list of generated files.
14558 * shapes/jigsaw/: jigsaw shapes from Martin Hawlisch.
14560 * shapes/network/: add network-additional shapes here.
14562 * sheets/network.sheet: add the network-additional shapes from
14563 Martin Hawlisch <Martin.Hawlisch@bflow.com> to the main network
14566 2000-09-30 Fredrik Hallenberg <hallon@lysator.liu.se>
14568 * configure.in: Updated ALL_LINGUAS
14570 * po/nl.po: Removed newline from translation
14572 2000-09-17 Asbjorn Pettersen <asbjornP@dualog.no>
14574 * app/commands.c (help_about_callback): Use G_DIR_SEPARATOR_S in
14575 logo filename generation.
14577 * lib/dia_dirs.c (dia_get_data_directory): Handle empty subdir better.
14578 Avoiding "//dia_logo.png".
14580 2000-09-16 Asbjorn Pettersen <asbjornP@dualog.no>
14582 * app/filedlg.c: add include <sys/types.h> to
14583 remove warning. (OS/2)
14585 2000-09-13 Cyrille Chepelov <chepelov@calixo.net>
14587 * objects/chronogram/chronoline_event.c (reparse_clevent):
14588 the __checksum routine was simply bogus. Redone it in a slightly
14589 saner way (reported by Michael Farr <mfarr@cs.latrobe.edu.au>).
14591 2000-09-10 Asbjorn Pettersen <asbjornP@dualog.no>
14593 * app/create_object.c (create_object_button_press):
14594 * app/modify_tool.c (click_select_object):
14595 * lib/object.h: select renamed to selectf to prevent
14596 compiler problems with function select(). OS/2 version.
14598 2000-09-08 Karsten Weiss <knweiss@gmx.de>
14600 * po/de.po: Updated.
14602 2000-09-07 Karsten Weiss <knweiss@gmx.de>
14604 * dia.desktop: Added German translation
14605 * app/menus.c: "Diagram Propeties..." -> "Diagram Properties..."
14607 2000-08-29 Manuel de Vega Barreiro <barreiro@arrakis.es>
14609 * configure.in (ALL_LINGUAS): added "es"
14611 2000-08-28 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
14616 * app/scroll_tool.c:
14617 Standardized cursor function get_cursor(). Magnify now has
14618 looking-glass cursor with + and -.
14620 * app/create_object.c (create_object_button_press):
14621 Newly created connections now snap to connection points even when
14624 2000-08-17 Daniel Egger <egger@suse.de>
14626 * app/menus.c: #ifdef'ed some code for the none GNOME
14628 * app/dia_embedd.c: Changed obvious hackery. Can anyone
14629 please have a look at the GNOME UI menu creation? The
14630 gnome-app-helper code is ages old and plainly broken!
14632 2000-08-15 Daniel Egger <egger@suse.de>
14639 * app/select.c: First big patch to get the menus
14640 working again in the international version. Copied
14641 some code written by Sven and me from GIMP and
14642 thus implemented automatic tearoffmenu creation and
14643 proper translation. I also removed that pseudo
14644 radiomenu hack and cleaned up several translation
14645 hacks which have never really worked. All in all
14646 this is part I of the big menu patch. Enjoy and tell
14647 me if you detect any problems.
14649 2000-08-14 Daniel Egger <egger@suse.de>
14651 * sheets/UML.sheet: Changed one German translation as
14652 suggested by Heribert Schuetz <hs@heribert-schuetz.de>.
14654 2000-08-10 Fredrik Hallenberg <hallon@lysator.liu.se>
14656 * app/diapagelayout.c:
14657 * lib/diagramdata.c:
14658 * lib/diagramdata.h:
14661 * lib/paper.h: honour PAPERCONF env variable and /etc/papersize when
14662 selecting paper size for a new diagram. TODO: Use libpaper if
14663 available and use gnome_paper-stuff if using GNOME.
14665 * sheets/Electric.sheet: fixed typo.
14667 2000-08-08 James Henstridge <james@daa.com.au>
14669 * po/README: added a readme file to tell translators to translate
14670 the .sheet files as well.
14672 * app/commands.c (help_about_callback): fix small bug where we tried
14673 to gdk_bitmap_unref() the mask for the about box image, even though
14674 it was NULL. Now check for a NULL mask.
14676 2000-08-07 Daniel Egger <egger@suse.de>
14678 * sheets/*.sheet: Added translations for the name
14679 in the toolbar tab. Brushed up some descriptions
14680 and some translations a bit.
14682 2000-08-06 James Henstridge <james@daa.com.au>
14684 * plug-ins/svg/render_svg.c (new_svg_renderer): update public
14685 identifier and dtd url for SVG output.
14686 (new_svg_renderer): fix the output of the viewBox output. The
14687 second two numbers are the width and height -- not the right
14688 and bottom sides of the box.
14690 * shapes/*/*.shape: update svg namespace URI.
14692 * objects/custom/shape_info.c (load_shape_info): change the
14693 namespace URI for custom shapes yet again to match the Candidate
14694 Recommedation. It looks like this one will probably be the final
14697 * app/display.c (new_display): remove the code that sets ic and
14698 ic_attr members to NULL, as one of the previous function calls
14699 causes the display to be realised. This means that the ic gets
14700 lost. Thanks to Yukihiro Nakai <ynakai@redhat.com> for finding
14703 2000-08-06 James Henstridge <james@daa.com.au>
14705 * shapes/Makefile.am (SUBDIRS): add Civil back to list.
14707 * NEWS: fixed date in NEWS file, as I will release today.
14709 * README: updated the README a little. Added note that Dia is now
14712 * dia.spec: fix up spec file.
14714 * plug-ins/wpg/wpg.c: changed DIAG_NOTE stuff here as well.
14716 * plug-ins/hpgl/hpgl.c: change Hans's DIAG_NOTE stuff so that we don't
14717 get heaps of warnings when you turn off debugging.
14718 Also made a few other warning fixes.
14720 2000-08-02 James Henstridge <james@daa.com.au>
14722 * plug-ins/svg/Makefile.am (INCLUDES): add XML_CFLAGS to INCLUDES.
14724 * configure.in: update version number.
14726 2000-08-01 James Henstridge <james@daa.com.au>
14728 * app/commands.c (help_about_callback): add Hans to about dialog.
14730 * doc/shape.dtd: dtd for shape file format.
14732 * doc/custom-shapes: update doc file about creating custom shapes.
14734 * shapes/*/*.shape: change namespace URI for the SVG portion to the
14735 one for the latest draft.
14737 * shapes/*/*.shape: fix up rect definitions.
14739 * objects/custom/shape_info.c (load_shape_info): recognise newer
14740 namespace tag for SVG.
14741 (parse_svg_node): the rect element should take attributes x, y, width
14742 and height -- not x1,y1,x2,y2.
14744 * plug-ins/svg/render_svg.c (new_svg_renderer): updated doctype
14745 output to use the newest draft DTD.
14747 * plug-ins/svg/svg.c: initialisation code for plugin.
14749 * plug-ins/svg/render_svg.c: move svg export code to a plugin.
14751 * plug-ins/svg/Makefile.am: makefile for svg plugin.
14753 * app/app_procs.c (internal_plugin_init): don't register the svg
14754 export filter here.
14756 * app/Makefile.am (dia_core_files): don't compile in render_svg.[ch]
14758 2000-07-31 James Henstridge <james@daa.com.au>
14760 * objects/standard/textobj.c (textobj_get_defaults):
14761 * objects/standard/polygon.c (polygon_get_defaults):
14762 * objects/standard/image.c (image_get_defaults):
14763 * objects/standard/ellipse.c (ellipse_get_defaults):
14764 * objects/standard/box.c (box_get_defaults):
14765 * objects/standard/beziergon.c (beziergon_get_defaults):
14766 * objects/flowchart/parallelogram.c (pgram_get_defaults):
14767 * objects/flowchart/ellipse.c (ellipse_get_defaults):
14768 * objects/flowchart/diamond.c (diamond_get_defaults):
14769 * objects/flowchart/box.c (box_get_defaults):
14770 * objects/custom/custom_object.c (custom_get_defaults):
14771 * objects/FS/flow.c (flow_get_defaults):
14772 * objects/FS/flow-poly.c (flow_get_defaults):
14773 * objects/FS/flow-ortho.c (orthflow_get_defaults): ref and sink the
14776 * app/defaults.c (defaults_show): don't keep on ref'ing the defaults
14777 widgets for various object types.
14778 (create_dialog): ref and sink the no_defaults_dialog.
14780 * app/preferences.c (prefs_create_dialog): change
14781 gtk_container_border_width call to gtk_container_set_border_width.
14783 2000-07-29 James Henstridge <james@daa.com.au>
14785 * app/commands.c (view_aa_callback): show a warning dialog if
14788 * app/interface.c (fill_sheet_menu): don't add a menu item for
14791 2000-07-26 James Henstridge <james@daa.com.au>
14793 * plug-ins/dxf/dxf-export.c: updates from Steffen to fix bug #18677
14795 * app/menus.c: remove edit grid menu item.
14797 * app/commands.[ch] (view_edit_grid_callback): removed.
14799 * app/display.c (new_display): don't initialise removed Grid members.
14801 * app/grid.c: remove unused functions.
14803 * app/grid.h: remove dialog related stuff from Grid structure.
14804 Remove prototypes for dialog functions.
14806 * app/menus.c: add to menus
14808 * app/commands.[ch] (view_diagram_properties_callback): new command
14809 for showing the diagram properties dialog.
14811 * app/dia-props.[ch]: a new diagram properties dialog. To replace
14812 the edit grid dialog.
14814 2000-07-25 James Henstridge <james@daa.com.au>
14816 * app/grid.c (grid_x_update):
14817 (grid_y_update): as the grid setting is stored with the diagram,
14818 update all displays when a change is made.
14820 * app/modify_tool.c (modify_motion): use new snap_to_grid sig.
14822 * app/create_object.c (create_object_button_press):
14823 (create_object_motion): use new snap_to_grid signature.
14825 * app/grid.c (grid_draw): use the grid settings in the DiagramData,
14826 and handle invisible grid lines.
14827 (snap_to_grid): use new grid settings. Also changed signature to
14828 take a DDisplay rather than Grid pointer.
14829 (grid_show_dialog): get the defaults from the correct place.
14831 * app/display.c (new_display): do not set ddisp->grid.width_[xy].
14833 * app/diagram.c (new_diagram): set the grid size defaults from the
14836 * app/load_save.c (diagram_data_save): save grid and guide info to
14838 (diagram_data_load): add guide and grid load support.
14840 * lib/diagramdata.c (new_diagram_data): set the new DiagramData
14843 * lib/diagramdata.h: add members to DiagramData for grid and guide
14846 * configure.in (BONOBO_LIBS): update configure scripts
14848 * app/dia.oafinfo: oafinfo file for dia embeddables.
14850 * app/dia_embedd.c: add OAF support.
14852 2000-07-24 James Henstridge <james@daa.com.au>
14854 * plug-ins/wpg/Makefile.am:
14855 * plug-ins/pstricks/Makefile.am:
14856 * plug-ins/hpgl/Makefile.am:
14857 * plug-ins/dxf/Makefile.am: same here.
14859 * plug-ins/cgm/Makefile.am: remove LIBADD. Dia already links with
14860 the required libraries, and the link line was causing libtool not
14861 to build a shared library on some systems :(
14863 * plug-ins/cgm/cgm.c (write_real): the initial if statement should
14864 be checking x, not n.
14866 2000-07-23 James Henstridge <james@daa.com.au>
14868 * app/preferences.c (prefs_data): set the "reset tools after
14869 create" preference to true by default. That seems to be what most
14872 * app/interface.c (create_sheets): instead of a notebook, use an
14873 option menu that updates the sheet tools. The notebook tabs were
14874 getting a bit unwieldly, so the option menu should fix that. This
14875 also reduces the number of widgets in the tools radio button
14876 group, which should make the UI a little more responsive.
14878 2000-07-19 Fatih Demir <kabalak@gmx.net>
14880 * configure.in: Added tr to ALL_LINGUAS.
14881 [ Yeah, we're now having a Turkish translation,
14884 * dia.desktop: Added the Turkish entries.
14886 2000-07-02 Fredrik Hallenberg <hallon@lysator.liu.se>
14888 * doc/diagram.dtd: changed string-element so it conforms to the
14891 2000-06-30 Fredrik Hallenberg <hallon@lysator.liu.se>
14893 * configure.in: added chinese.
14894 Use AM_PROG_LIBTOOL instead of AC_PROG_LIBTOOL.
14902 objects/custom/shape_info.c:
14903 shapes/Circuit/npn.shape:
14904 shapes/Circuit/pnp.shape:
14905 sheets/*.sheet: dia now works with libxml2.
14906 Libxml2 is a bit more picky when parsing xml and reported errors on all
14907 sheet files because they use non ascii characters (added
14908 encoding="iso-8859-1"). Also "xml:lang=en@layman" is not proper xml so
14909 I commented out these.
14911 2000-06-30 Christopher R. Gabriel <cgabriel@linux.it>
14913 * configure.in (ALL_LINGUAS): added Italian
14915 2000-06-27 Sung-Hyun Nam <namsh@lgic.co.kr>
14917 * configure.in (ALL_LINGUAS): added Korean
14919 2000-06-25 James Henstridge <james@daa.com.au>
14921 * objects/flowchart/parallelogram.c (pgram_create): use default font
14922 and add properties interface support.
14924 * objects/flowchart/ellipse.c (ellipse_create): use default font and
14925 add properties interface support.
14927 * objects/flowchart/diamond.c (diamond_create): use default font and
14928 add properties interface code.
14930 * objects/flowchart/box.c (box_create): use default font.
14932 * objects/custom/custom_object.c (custom_create): use default font
14935 * objects/standard/textobj.c (textobj_create): update to use default
14938 * lib/attributes.c: add implementations.
14940 * lib/attributes.h (attributes_[gs]et_default_font): add function
14941 prototypes for setting/getting a default font.
14943 2000-06-24 James Henstridge <james@daa.com.au>
14945 * app/paginate_gnomeprint.h: updated prototype.
14947 * app/paginate_gnomeprint.c (paginate_gnomeprint): update to use
14948 diagram page settings.
14950 * objects/standard/beziergon.c (beziergon_copy): same here.
14952 * objects/standard/polygon.c (polygon_copy): copy the fill colour
14956 * app/tool.h (tool_options_dialog_show):
14957 * app/scroll_tool.h (free_scroll_tool):
14958 * app/render_svg.h:
14959 * app/render_libart.h (renderer_libart_copy_to_window):
14960 * app/render_gdk.h (renderer_gdk_copy_to_window):
14961 * app/properties.h (properties_hide_if_shown):
14962 * app/preferences.h (prefs_load):
14963 * app/object_ops.h:
14964 * app/modify_tool.h (free_modify_tool):
14965 * app/magnify.h (free_magnify_tool):
14966 * app/linewidth_area.h (linewidth_area_create):
14967 * app/layer_dialog.h:
14968 * app/handle_ops.h (handle_is_clicked):
14970 * app/grid.h (grid_destroy_dialog):
14971 * app/defaults.h (defaults_show):
14972 * app/cut_n_paste.h (cnp_exist_stored_objects):
14973 * app/create_object.h (free_create_object_tool):
14974 * app/connectionpoint_ops.h (diagram_unconnect_selected):
14976 * app/color_area.h (color_area_create):
14977 * app/app_procs.h (app_is_embedded): remove extern keyword from
14978 function prototypes.
14981 * lib/sheet.h (load_all_sheets):
14982 * lib/render_store.h:
14983 * lib/render_object.h (render_object_load):
14984 * lib/polyshape.h (polyshape_closest_segment):
14985 * lib/poly_conn.h (polyconn_closest_segment):
14988 * lib/objchange.h (new_object_state_change):
14989 * lib/neworth_conn.h (neworthconn_add_segment):
14990 * lib/message.h (message_error):
14993 * lib/font.h (font_descent):
14994 * lib/focus.h (remove_focus):
14996 * lib/diagramdata.h:
14997 * lib/dia_xml.h (data_add_composite):
14999 * lib/connpoint_line.h:
15000 * lib/connection.h (connection_move_handle):
15002 * lib/attributes.h (attributes_set_default_line_style):
15003 * lib/arrows.h (arrow_draw): remove extern keyword from function
15004 definitions. It is not required for functions.
15006 * plug-ins/dxf/Makefile.am (INCLUDES):
15007 * plug-ins/pstricks/Makefile.am (INCLUDES):
15008 * plug-ins/cgm/Makefile.am (INCLUDES):
15009 * objects/SADT/Makefile.am (INCLUDES):
15010 * objects/chronogram/Makefile.am (INCLUDES):
15011 * objects/GRAFCET/Makefile.am (INCLUDES):
15012 * objects/flowchart/Makefile.am (INCLUDES):
15013 * objects/sybase/Makefile.am (INCLUDES):
15014 * objects/FS/Makefile.am (INCLUDES):
15015 * objects/standard/Makefile.am (INCLUDES):
15016 * objects/network/Makefile.am (INCLUDES):
15017 * objects/UML/Makefile.am (INCLUDES): same here.
15019 * objects/ER/Makefile.am: changed inclusion of some macros to
15022 * lib/plug-ins.c (dia_register_plugins_in_dir): use a few defines to
15023 handle the plug in extension, rather than have all the #ifdef's in
15026 * plug-ins/Makefile.am: add renderer.inc to dist.
15028 * plug-ins/dxf/dxf-import.c: Updates from Steffen Macke.
15030 2000-06-11 Asbjorn Pettersen <asbjornP@dualog.no>
15032 * lib/plug-ins.c: Handle OS/2 dll's too.
15034 2000-06-07 James Henstridge <james@daa.com.au>
15036 * app/plugin-manager.c (get_plugin_manager): set some table
15037 packing options to make it look a little nicer.
15039 * plug-ins/hpgl/Makefile.am, plug-ins/wpg/Makefile.am: added
15040 makefiles for these plug-ins.
15042 * plug-ins/{hpgl,wmf,wpg}/*: removed dos style cariage returns.
15044 * configure.in: added hpgl and wpg directories to build. Added
15045 note about whether gnome-print support was enabled, and noted that
15046 it is not recommended.
15048 2000-06-06 James Henstridge <james@daa.com.au>
15050 * plug-ins/{hpgl,wmf,wpg}/*: Hans Breuer's plug-ins. They still need
15051 a little work, but I am checking them in so I don't lose them.
15053 2000-06-01 James Henstridge <james@daa.com.au>
15055 * objects/standard/arc.c: added extra properties.
15057 * lib/beziershape.c (beziershape_closest_handle): fix a bug where I
15058 was using the wrong index into the handles array. This gets corner
15059 type changing working correctly.
15061 * lib/properties.[ch]: add support for BezPoint's and BezPoint arrays
15062 to properties code (no editing or loading yet though). Also added
15063 support for point array manipulation through the offsets interfaces.
15065 * lib/Makefile.am (INCLUDES): added include of gdk-pixbuf
15067 * app/interface.c (origin_button_press): changes so the origin
15068 button doesn't grab the pointer when we pop up the menu.
15070 * app/commands.c (help_about_callback): fix small memory leak in
15073 * app/menus.c (menus_init): fixed breakage I introduced in the non
15074 gnome menus when I was doing the menu changes. The tearoffs work
15075 really nicely in plain gtk mode as well.
15077 * objects/standard/beziergon.c (beziergon_create): changed the
15078 returned handles to match the handle numbering changes. Now
15079 segment addition and removal works correctly with undo!
15081 * lib/beziershape.c: various changes to the code. Changed the
15082 numbering of handles, and fixed the segment removal code.
15084 2000-05-31 James Henstridge <james@daa.com.au>
15086 * objects/standard/beziergon.c: remove connection point handling.
15087 There is still a bit of work to be done to get adding and removing
15088 of segments working correctly.
15090 * lib/beziershape.c: add connection point handling to beziershape.
15091 I set it for two connection points per segment.
15093 2000-05-30 James Henstridge <james@daa.com.au>
15095 * objects/standard/polygon.c: don't do connectionpoint handling.
15097 * lib/polyshape.c: changed to handle connection points internally.
15098 Also, don't worry about connections to handles on polyshape, as
15099 all handles are non connectable.
15101 2000-05-30 Ville Hautamaki <villeh@cs.joensuu.fi>
15103 * configure.in: Added finnish
15105 2000-05-30 James Henstridge <james@daa.com.au>
15107 * sheets/*.sheet: translation updates to the .sheet files.
15109 * po/fr.po: updated po file from Christophe Merlet.
15111 * menus.h: removed prototypes for functions which have been removed.
15113 2000-05-29 James Henstridge <james@daa.com.au>
15115 * app/layer_dialog.c (layer_dialog_set_diagram): set the selected
15116 item in the option menu when changing selected diagram.
15118 * app/dia_embedd.c (view_factory): fix up function to work with new
15121 * app/disp_callbacks.c (ddisplay_realize): remove call to
15122 display_set_active from here.
15123 (ddisplay_canvas_events): move call here. This gets rid of all the
15124 warnings, as the renderer has been fully set up correctly at this
15127 * app/menus.c (menus_init): add the tearoff item to the start of the
15130 * app/app_procs.c (create_user_dirs): we don't need to create the
15131 menus directory anymore.
15133 * app/disp_callbacks.c (ddisplay_popup_menu): it should not be
15134 necessary to update the menu state here, as it was done when the
15135 active display was set.
15137 * app/display.c (display_set_active): update the menu state when
15138 changing active displays.
15140 * app/interface.c (origin_button_press): set the display as active
15141 when a click is made on the menu button.
15143 * app/menus.c (menus_init): set up a quit function to save the accels
15145 Add tearoff items for the non GNOME menus, add accelerators for
15146 several GNOME menus.
15148 * app/disp_callbacks.c (ddisplay_popup_menu): get the menu with
15149 menus_get_image_menu().
15151 * app/menus.c (menus_get_item_from_path): use display_menus here
15152 rather than ddisp->popup.
15154 * app/display.h: remove the popup member in the DDisplay structure.
15156 * app/interface.c: remove option of not using wrap box.
15157 (create_toolbox): change to always use menus_get_toolbox_menubar
15158 even when using gnome menus.
15159 (create_display_shell): use menus_get_image_menu to load accelerators
15160 only -- not the actual popup menu.
15162 * app/menus.c (menus_init): new function to create the menus.
15163 (menus_get_toolbox_menubar): use this function whether gnome is
15164 in use or not. Changed to use menus_init.
15165 (menus_get_image_menu): same here. Also, now this function always
15166 returns the same menu, rather than a new one each time.
15167 (menus_init): read a menurc file to load accelerators here.
15169 2000-05-28 James Henstridge <james@daa.com.au>
15171 * app/display.c (ddisplay_really_destroy): unset active display if
15172 active display is destroyed.
15173 (ddisplay_active): simplify function to return active_display as set
15174 by display_set_active. This allows using a pinned menu with any
15175 display -- not just the one it was popped up from.
15176 (display_set_active): notify the layer dialog of change of diagrams
15177 when active diagram changes.
15179 * app/disp_callbacks.c (ddisplay_canvas_events): set active display
15180 on button and key presses.
15181 (ddisplay_realize): set active display on realize.
15183 * app/display.c (display_set_active): simple implementation of this
15186 * app/display.h (display_set_active): add prototype for setting
15187 the active display.
15189 * app/interface.c (create_display_shell): don't give focus to the
15192 * app/menus.c: fix up menus for Beziergon.
15194 * app/interface.c (create_display_shell): make the widget in the
15195 top left corner a button that can be used to pop up the right click
15196 menu, like in gimp and sketch.
15198 * app/disp_callbacks.c (ddisplay_popup_menu): new function to popup
15201 * objects/standard/beziergon.c (beziergon_set_corner_type_callback):
15202 add code to set corner types for beziergon.
15204 * lib/beziershape.c (beziershape_set_corner_type): fix up corner type
15206 (beziershape_move_handle): use the previous corner type for right
15209 * app/interface.c (tool_data): add beziergon to toolbox.
15211 * objects/standard/standard.c (dia_plugin_init): initialise the new
15212 Beziergon object type.
15214 * objects/standard/beziergon.c: an object based on BezierShape.
15216 * lib/dummy_dep.h (dummy_dep): added to dummy_dep.
15218 * lib/beziershape.[ch]: new files implementing a bezier shape.
15220 2000-05-26 James Henstridge <james@daa.com.au>
15222 * lib/text.c (text_key_event): handle multibyte inserts.
15223 (text_key_event): also add home and end keybindings.
15225 * app/interface.c (create_display_shell): connect handlers for
15226 focus_in_event, focus_out_event, realize and unrealize signals.
15228 * app/display.[ch] (new_display): initialise input context members.
15230 * app/disp_callbacks.[ch]: added XIM support here.
15232 * lib/font.c (suck_font): the black and white pixel values should be
15233 taken from a 1 bit colormap rather than the default colormap.
15235 Hans Breuer's Windows patches ...
15237 * lib/font.c: use Courier New for fixed width font on windows
15240 * lib/dia_image.h: change to "struct _DiaImage".
15242 * lib/dia_image.c: change "struct DiaImage" to "struct _DiaImage"
15244 * app/disp_callbacks.c (ddisplay_canvas_events): allow ctrl+right
15245 mouse button for object menu. This will make two button mouse owners
15248 2000-05-25 James Henstridge <james@daa.com.au>
15250 * app/filedlg.c (file_open_ok_callback): use diagram_load here.
15252 * app/app_procs.c (app_init): add extra NULL argument to call of
15255 * app/load_save.h: remove prototype.
15257 * app/load_save.c: remove diagram_data function here.
15259 * app/diagram.h: added prototype.
15261 * app/diagram.c (diagram_load): new function here, which uses import
15264 * plug-ins/dxf/dxf.c: register the import filter as well.
15266 * plug-ins/dxf/dxf-import.c: added (unfinished) DXF import filter from
15267 Steffen Macke <macke@heini.fbbwu.fh-lueneburg.de>
15269 * objects/standard/line.c: add start_point and end_point properties
15270 to standard line object.
15272 2000-05-21 James Henstridge <james@daa.com.au>
15274 * app/paginate_psprint.c: added missing include of locale.h.
15276 * objects/custom/custom_object.c (custom_draw): use fabs rather than
15277 abs for scaling factors.
15278 (custom_distance_from): same here.
15280 * dia.spec: make sure rpm doesn't bomb out when LINGUAS isn't set.
15282 2000-05-18 James Henstridge <james@daa.com.au>
15284 * po/POTFILES.in: updated POTFILES.in.
15286 * dia.spec: incremented version number in spec file.
15288 * NEWS: added (lots of) news items for the 0.85 release.
15290 * app/preferences.c (prefs_save): set LC_NUMERIC to C while writing
15293 * configure.in: updated version number here.
15295 * app/Makefile.am (run_dia.sh): include plug-ins in the lib path.
15297 2000-05-17 James Henstridge <james@daa.com.au>
15299 * app/app_procs.c (internal_plugin_init): register the native import
15302 * app/load_save.c (diagram_data_load, diagram_load): split this
15303 function into two -- one that does all the work on the DiagramData
15304 structure, and the other that provides compatibility with the old
15306 (dia_import_filter): use diagram_data_load to define an import
15309 * app/diagram.h (new_diagram): added const to prototype.
15311 * app/filedlg.c (file_open_callback): change to use new import filter
15314 * lib/filter.c: added import filter management functions.
15316 * lib/filter.h: added prototypes for import filter interface.
15318 * app/commands.c (help_about_callback): updated about dialog to
15319 contain a few more names.
15321 2000-05-16 James Henstridge <james@daa.com.au>
15323 * configure.in (Configuration): added a status message to the end of
15324 the configure script to give the user some idea of what was
15327 * plug-ins/dxf/Makefile.am: Makefile for new plugin.
15329 * plug-ins/dxf/dxf.c (dia_plugin_init): added file to initialise the
15332 * plug-ins/dxf/dxf-export.c: new file -- Steffen Macke's DXF export
15335 * configure.in (AM_PATH_LIBART): use the check function provided
15336 with libart rather than our own code. It is more reliable, and
15337 it only requires that people who build out of CVS have libart.m4
15338 installed (not necessarily all of libart).
15339 (AM_PATH_GDK_PIXBUF): same here for gdk-pixbuf.
15341 2000-05-12 Andreas Hyden <a.hyden@cyberpoint.se>
15343 * dia.desktop: Added Swedish translation.
15345 2000-05-09 James Henstridge <james@daa.com.au>
15347 * lib/dia_xml.c: you can't free a const pointer, so remove const
15348 from variable definitions.
15350 Explicitely set LC_NUMERIC where needed, as sometimes it isn't
15351 initialised correctly.
15353 * app/render_svg.c (export_svg): set locale to C.
15355 * app/paginate_psprint.c (paginate_psprint): set locale to C.
15357 * app/render_eps.c (export_eps): set locale to C for EPS export.
15359 * lib/dia_xml.c (data_add_real): change to C locale for snprintf call.
15360 (data_add_point): same here.
15361 (data_add_rectangle): same here.
15362 (data_real): use g_strtod to convert strings to real numbers, so that
15363 locales are taken into account.
15364 (data_point): same here.
15365 (data_rectangle): same here.
15367 * AUTHORS: added Henk and Jacek to authors file.
15369 Daniel Egger's code cleanups.
15371 * app/select.c (select_invert_callback): remove unused variable.
15373 * app/plugin-manager.c (get_plugin_manager): fix typo.
15375 * app/load_save.c (read_connections, write_objects):
15376 (write_connections): made some functions static.
15378 * app/interface.c (toolbox_delete, toolbox_destroy): made some
15381 * app/filedlg.c (file_export_callback): remove unused variable.
15383 * app/app_procs.c: various warning fixes.
15385 Integrating Jacek Pliszka's pstricks export filter.
15387 * plug-ins/pstricks/pstricks.c: code to initialise the plugin.
15389 * plug-ins/pstricks/render_pstricks.[ch]: Jacek Pliszka's pstricks
15390 renderer (with a few small modifications by me).
15392 * plug-ins/pstricks/Makefile.am: new makefile for pstricks plug-in.
15394 * plug-ins/Makefile.am (SUBDIRS): add pstricks subdirectory.
15396 2000-05-07 Alexander Larsson <alla@lysator.liu.se>
15399 * sheets/Makefile.am:
15400 * shapes/Makefile.am:
15401 * shapes/Civil/Makefile.am:
15402 * sheets/civil.sheet:
15404 Added civil/hydraulic/structural engineering objects from
15405 sdteffen <macke@heini.fbbwu.fh-lueneburg.de>.
15407 2000-05-07 Alexander Larsson <alla@lysator.liu.se>
15409 * objects/FS/flow-poly.c:
15410 * objects/FS/flow.c:
15411 Fix division by zero in point_normalize().
15412 Patch by David Thompson <dcthomp@mail.utexas.edu>
15414 2000-04-27 Lars Clausen <lrclause@cs.uiuc.edu>
15417 * lib/bezier_conn.c:
15418 * lib/connpoint_line.c:
15419 Added checks for zero-length lines before calls to point_normalize.
15421 2000-04-24 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
15423 * app/preferences.c (prefs_data): Changed
15424 reversed_dragging_intersects to not make the dialog ridiculously
15427 2000-04-22 James Henstridge <james@daa.com.au>
15429 Hans's win32 patches:
15431 * app/export_png.c: include message.h
15432 * app/interface.c: include dia_dirs.h
15433 * app/linewidth_area.c: check for rint
15434 * app/main.c: include interface.h
15435 * app/paginate_psprint.c: remove unused variable.
15436 * app/preferences.c: include message.h
15437 * app/render_svg.c: include stdlib.h
15438 * app/select.c: include object_ops.h
15439 * lib/dia_dirs.c: miscelaneous fixes for win32.
15440 * lib/dia_image.c: include string.h
15441 * lib/plug-ins.c: look for .dll files rather than .la files on win32.
15442 * lib/properties.c: include stdlib.h
15443 * lib/properties.h: define extra data for standard properties as
15444 static variables on win32 (to get around dynamic linker problems).
15445 * objects/standard/polygon.c: polygon_create_change missing return
15448 2000-04-18 Pablo Saratxaga <pablo@mandrakesoft.com>
15450 * configure.in (ALL_LINGUAS): added Catalan
15452 2000-04-18 James Henstridge <james@daa.com.au>
15454 * objects/standard/bezier.c (bezierline_get_object_menu): add a
15455 separator to the object menu between the add/remove segment items
15456 and the corner type items.
15457 (bezierline_get_object_menu): add code to disable the menu item for
15458 the current corner type. Really just a cosmetic change.
15460 * app/disp_callbacks.c (create_object_menu): handle DiaMenuItems with
15461 a NULL for the label or with no associated callback.
15463 * objects/standard/bezier.c (bezierline_menu_items): use the
15464 enumeration values rather than numeric values for the corner types.
15466 * lib/bezier_conn.[ch]: added a corner_types member to the BezierConn
15467 structure, and add code to handle it. Also, don't save the corner
15468 types inline in the bez_points node. The way it is conditionally
15469 including the element just feels like it will break.
15471 * lib/geometry.h (BezPoint): removed the corner_type stuff from
15472 BezPoint. The corner type stuff is a user interface level idea rather
15473 than something required by the renderer, so should be taken care of
15474 at the object level.
15476 2000-04-17 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
15478 * configure.in: Fixed some problems with the gdk-pixbuf/imlib
15479 checks. Weren't able to reproduce original bug, tough.
15481 2000-04-16 Cyrille Chepelov <chepelov@calixo.net>
15483 * sheets/Electric.sheet:
15484 * sheets/Contact.sheet:
15485 * sheets/Pneumatic.sheet:
15486 * sheets/Circuit.sheet: sprayed some <br/>'s around.
15487 (added a few French translations in the last file)
15489 2000-04-16 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
15492 * lib/bezier_conn.h:
15493 * objects/standard/bezier.c:
15494 * lib/bezier_conn.c: Support for cuspy, smooth and symmetric
15495 bezier points. Only one minor problem known: Menus are active
15496 for endpoints minor handles.
15497 11:28: Save and load now works, too.
15498 (bezierconn_closest_major_handle): 12:03: New function to get the
15499 non-control point handle associated with the nearest control
15501 Also fixed the menu activation problem, and made remove_segment
15502 not remove the endpoint.
15504 2000-04-15 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
15506 * configure.in: Added check for gdk-pixbuf being >= 0.7.0 since
15509 2000-04-15 Asbjorn Pettersen <asbjornP@dualog.no>
15511 * lib/plug-ins.c: Added <sys/types.h> and moved <fcntl.h> below
15512 <sys/stat.h>. OS/2 patch.
15514 2000-04-15 James Henstridge <james@daa.com.au>
15516 * objects/FS/flow-ortho.c, objects/FS/function.c: Applied David
15517 Thompson's patch that adds undo support to the function structure
15520 2000-04-14 James Henstridge <james@daa.com.au>
15522 * objects/custom/custom_object.c (custom_distance_from): new
15523 implementation of distance algorithm that actually takes the
15524 display list into account when calculating the distance. Much nicer
15525 than a simple bounding box.
15527 2000-04-13 Lars Clausen <lrclause@cs.uiuc.edu>>
15529 * lib/geometry.c (line_crosses_ray): Fixed division by zero bug
15531 2000-04-12 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
15533 * objects/standard/polygon.c: Start of polygons own changes (for
15534 connectionpoints). Need to do seperate changes in polyshape, too,
15535 rather than reuse the bezier changes.
15537 2000-04-13 James Henstridge <james@daa.com.au>
15539 * lib/dia_image.c (dia_image_draw): use the new enumeration values
15540 from after the gdk-pixbuf cleanup.
15542 * lib/geometry.c (bez_point_distance_and_ray_crosses): fix up limit
15543 on for loop. Last set of coefficients were not beeing calculated,
15544 which caused a bit of breakage.
15546 * lib/bezier_conn.c (bezierconn_closest_segment): use the new
15547 functions in geometry.c for calculating the closest segment.
15548 (bezierconn_distance_from): use distance_bez_line_point to calculate
15551 * lib/geometry.c (distance_bez_line_point): new function to calculate
15552 the distance from an open bezier line to a point.
15553 (distance_bez_shape_point): new function to calculate the distance
15554 from a closed bezier shape.
15555 (distance_ellipse_point): new function to calculate the distance from
15556 a filled ellipse to a point.
15558 * lib/geometry.h (BezPoint): moved this structure here from render.h
15560 2000-04-12 James Henstridge <james@daa.com.au>
15562 * lib/geometry.c (distance_bez_seg_point): new function to calculate
15563 the distance from a bezier segment.
15565 * lib/polyshape.c (polyshape_distance_from): use distance_polygon_point
15566 to calculate the distance from the object.
15568 * lib/geometry.c (distance_polygon_point): function for calculating
15569 the distance from a polygon to a point.
15571 2000-04-12 Cyrille Chepelov <chepelov@calixo.net>
15574 * lib/sheet.[ch]: added a <br/> tag in sheet files, so that line
15575 breaks can be inserted in the tool box.
15577 * doc/sheet.dtd: updated the DTD
15578 * sheets/GRAFCET.sheet: tried <br/> on that sheet (more to come).
15580 2000-04-12 James Henstridge <james@daa.com.au>
15582 * app/plugin-manager.c (get_plugin_manager): use the GTK_DIALOG
15583 macro if the dialog is a GtkDialog :(
15585 2000-04-11 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
15587 * objects/standard/polygon.c: Connectionpoints now properly
15588 managed in a GList. As far as I can tell, this will not dieturb
15589 the order (but I have the nagging doubt...)
15591 * lib/polyshape.c: No longer knows about connectionpoints.
15593 2000-04-11 James Henstridge <james@daa.com.au>
15595 * app/Makefile.am: fix makefile for bonobo build.
15597 * configure.in: fix checks for bonobo.
15599 * app/menus.c: added entries for the plugin manager.
15601 * app/Makefile.am (dia_core_files): added plugin manager to files
15604 * app/plugin-manager.[ch]: the plugin manager dialog.
15606 * app/display.c (display_update_menu_state): set the antialiased
15607 menu entry to the correct value.
15609 2000-04-11 Cyrille Chepelov <chepelov@calixo.net>
15611 * objects/custom/custom_object.c: not all renderers like ellipses with
15612 negative dimensions. This could cause ellipses to disappear when using
15613 the flip_h and flip_v functions.
15615 * samples/grafcet.dia: fixed speling and correctness.
15617 2000-04-11 James Henstridge <james@daa.com.au>
15619 * lib/plug-ins.[ch]: added more accessors for use by a plugins dialog.
15620 exposed the dia_plugin_load and dia_plugin_unload functions.
15622 * lib/plug-ins.c (plugin_load): change plugin_load to work on an
15623 already created PluginInfo structure.
15625 * app/app_procs.c (app_exit): call dia_pluginrc_write() to write
15628 * lib/sheet.c: fix up call to dia_config_filename.
15630 * lib/plug-ins.[ch]: started writing code for handling a pluginrc
15631 file. This would save information such as which plugins not to
15632 load during startup.
15634 2000-04-09 James Henstridge <james@daa.com.au>
15636 * lib/sheet.c: use dia_config_filename to resolve file in ~/.dia.
15638 2000-04-10 Alexander Larsson <alla@lysator.liu.se>
15640 * lib/plug-ins.c (dia_register_plugins):
15641 Don't free the value returned from g_getenv.
15643 2000-04-09 Anders Carlsson <andersca@gnu.org>
15645 * app/preferences.h: Add reverse_rubberbanding_intersects preference variable.
15647 * app/preferences.c (prefs_data): Add reverse_rubberbanding_intersects preference data.
15649 * app/modify_tool.c (modify_button_release): If rubberbanding is done from
15650 right to left, select objects that intersect the rubberbanding rectangle
15651 instead of selecting objects that are in the rectangle.
15653 * lib/diagramdata.c (layer_find_objects_intersecting_rectangle): Add function.
15655 * lib/diagramdata.h: Likewise.
15658 2000-04-09 James Henstridge <james@daa.com.au>
15660 * lib/plug-ins.[ch]: add copyright messages to files.
15662 * plug-ins/cgm/cgm.c (dia_plugin_init): convert plugin over to new
15665 * objects/sybase/sybase.c (dia_plugin_init):
15666 * objects/network/network.c (dia_plugin_init):
15667 * objects/flowchart/flowchart.c (dia_plugin_init):
15668 * objects/custom/custom.c (dia_plugin_init):
15669 * objects/chronogram/chronogram.c (dia_plugin_init):
15670 * objects/UML/uml.c (dia_plugin_init):
15671 * objects/SADT/sadt.c (dia_plugin_init):
15672 * objects/GRAFCET/grafcet.c (dia_plugin_init):
15673 * objects/FS/fs.c (dia_plugin_init):
15674 * objects/ER/er.c (dia_plugin_init): updated plugin load code for
15677 * objects/standard/standard.c (dia_plugin_init): change over to new
15680 * lib/plug-ins.h (DIA_PLUGIN_CHECK_INIT): added a macro to define
15681 the version checker for plugins.
15683 * app/app_procs.c: remove plugin loading code from here, and use
15684 code from plug-ins.[ch]. Also move registration of internal
15685 objects/filters to a `builtin' plugin.
15687 * lib/Makefile.am (libdia_a_SOURCES): added plug-ins.[ch] to library.
15689 * configure.in: use AC_PROG_LIBTOOL rather than AM_PROG_LIBTOOL.
15691 * app/Makefile.am (EXTRA_DIST): you can't include a conditionally
15692 defined variable in EXTRA_DIST.
15694 * app/preferences.h: removed dia_config_filename from header.
15696 * app/preferences.c: removed dia_config_filename function.
15698 * lib/dia_dirs.c (dia_config_filename): moved function over to this
15699 file. Also changed implementation slightly so that it should work
15700 on the win32 port correctly (and use NT home directories).
15702 * lib/dia_dirs.h (dia_config_filename): move dia_config_filename where
15703 it should have been.
15705 * lib/plug-ins.[ch]: new plugin loading code.
15707 2000-04-08 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
15709 * objects/standard/polygon.c: Fixed startup crash bug (do'h!).
15711 * lib/polyshape.c: Fix closest segment finding, exposes deeper
15712 bugs in adding corners to 'wraparound' segment.
15714 * objects/standard/polygon.c: Added connection points (fixed so
15715 far), set menu sensitivity.
15717 * lib/polyshape.c: Changed to box-style handles, fixed for start
15718 and ends not being special, added initial connections,
15720 * lib/dummy_dep.h: Added polyshape (gotcha!)
15722 * objects/standard/pixmaps/ellipse.xpm:
15723 * objects/standard/pixmaps/box.xpm:
15724 Filled element pixmaps with white.
15727 * objects/standard/polygon.c:
15729 * objects/standard/standard.c:
15730 * objects/standard/Makefile.am (libstandard_objects_la_SOURCES):
15731 * lib/Makefile.am (libdia_a_SOURCES):
15733 * app/interface.c (tool_data):
15734 Added Standard/Polygon object and PolyShape lib object. Still
15735 needs inside grab and connection points.
15737 * app/commands.c (help_about_callback): Now uses gdk-pixbuf if
15740 * configure.in: Made imlib a fallback if gdk-pixbuf is absent or
15743 * app/app_procs.c (app_init): Moved gtk_init outside #ifdef, moved
15744 if (argv) outside ifdefs.
15746 2000-04-04 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
15748 * objects/standard/image.c (image_set_props):
15749 Aspect ratio is back in town.
15751 * app/Makefile.am (dia_LDADD):
15754 Check for gdk_pixbuf (by default disabled, for now)
15756 * app/render_eps.c (draw_image):
15757 * app/render_libart.c (draw_image):
15758 * app/render_gnomeprint.c (draw_image):
15759 Support for alpha mask in rendering. Color postscript, too.
15763 Support for gdk_pixbuf and proper masking for exports.
15765 2000-04-01 Kjartan Maraas <kmaraas@online.no>
15767 * sheets/*.sheets: Updated Norwegian translations.
15769 2000-03-30 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
15771 * lib/text.c (text_insert_char):
15772 * lib/render_store.c (add_data):
15773 Made realloc double the alloced space rather than add
15774 a fixed amount, to reduce memory stress.
15776 * app/select.c: Added new select method 'Transitive'
15777 that select every reachable (by connections) object.
15779 2000-03-27 Kjartan Maraas <kmaraas@online.no>
15781 * dia.desktop: Added Norwegian translation.
15783 2000-03-26 Alexander Larsson <alla@lysator.liu.se>
15785 * app/render_eps.c:
15786 * app/render_svg.c:
15787 Don't dereference NULL pointer if the renderer
15788 couldn't open the file. Fix by Lars Clausen.
15789 Bug reported by Martin Chisholm <b1mt@unb.ca>
15791 2000-03-26 Alexander Larsson <alla@lysator.liu.se>
15795 Updated pt translation from Pedro Morais <pmmm@rnl.ist.utl.pt>
15797 2000-03-25 Alexander Larsson <alla@lysator.liu.se>
15799 * app/dia.gnorba (location_info):
15800 Changed to correct executable name.
15802 2000-03-25 Alexander Larsson <alla@lysator.liu.se>
15805 Don't do any argument parsing or initialization
15808 * app/dia_embedd.c:
15809 Call init_server_factroy before app_init.
15810 Call app_init with argv==NULL
15811 Now we don't get any critical error on startup.
15814 Add Electric and Pneumatic to makefile list.
15816 2000-03-24 Cyrille Chepelov <chepelov@calixo.net>
15818 * shapes/Electric/*:
15819 * sheets/Electric.sheet:
15820 Add some Electric circuit shapes.
15822 * shapes/Pneumatic/*:
15823 * sheets/Pneumatic.sheet:
15824 Add some Pneumatic & Hydraulic circuit shapes
15825 (both sheets are still incomplete, though feature enough
15826 things for basic circuits).
15828 * shapes/Contact/l_*.(xpm|shape):
15829 * sheets/Contact.sheet
15830 * shapes/Contact/Makefile.am
15831 made the older electric circuit shapes in Contact obsolete (disabled
15832 them in the sheet, made that sheet Ladder only). Fixed the makefile
15833 for forgotten items.
15835 2000-03-24 Alexander Larsson <alla@lysator.liu.se>
15838 Add support for Dia bonobo component.
15839 Currently a bit raw, so it's commented out.
15841 * app/dia_embedd.c:
15843 New files for embedding dia.
15844 The menu disabling hack is a bit gross. Esp. for GNOME.
15847 Add new function app_is_embedded();
15850 Don't destroy diagram when last display is destroyed if embedded.
15853 Change initialization of display so it works with embedding.
15856 Clarify comment about display destruction.
15858 * app/interface.[ch]:
15859 Added top_level_window argument to create_display_shell.
15860 Don't open a top-level window if embedding.
15861 Don't quit app if trying to close toolbox window when embedding.
15862 Add toolbox_show() and toolbox_hide().
15865 Added app_is_embedded() function (just returns false).
15866 Added toolbox_show() call in main().
15869 Added code for getting toolbox menus. This is used to
15870 hide some menu items when running embedded.
15873 Include sheet.h to remove warning.
15875 * objects/UML/association.c:
15876 Clarify association direction text.
15878 2000-03-16 Fredrik Hallenberg <hallon@lysator.liu.se>
15881 Fixed man page so whatis parsing works.
15883 2000-03-12 Alexander Larsson <alla@lysator.liu.se>
15885 * app/render_libart.c (new_libart_renderer):
15886 Fix from segg <segg@infonet.ca> to compile without libart.
15887 I forgot to change the stub for new_libart_renderer when doing
15888 the interactive renderer stuff for libart.
15890 2000-03-11 Alastair McKinstry <mckinstry@computer.org>
15892 * dia.desktop: Added Irish translation.
15894 * configure.in (ALL_LINGUAS): Added Irish (ga) translation.
15896 2000-03-07 Asbjorn Pettersen <asbjornP@dualog.no>
15898 * app/load_save.c (fchmod): OS/2 defines only.
15900 2000-03-07 James Henstridge <james@daa.com.au>
15902 * lib/properties.c (prop_get_widget): set the position in the option
15905 2000-03-06 Alexander Larsson <alla@lysator.liu.se>
15908 * app/export_png.c:
15909 * app/render_libart.[ch]:
15910 Don't export png:s with an interactive libart renderer.
15912 2000-03-03 Asbjorn Pettersen <asbjornP@dualog.no>
15914 * lib/arrows.c (finite): define finite(d) isfinite(d) for OS/2
15916 2000-03-02 James Henstridge <james@daa.com.au>
15918 * dia.spec (%build): unset LINGUAS before running configure. This
15919 ensures that all translations get included in the RPM.
15921 * lib/properties.c (object_create_props_dialog): put in a check for
15922 a NULL return from the describe_props() object method.
15923 (prop_desc_lists_union): make sure that the returned array is not
15925 (prop_desc_lists_intersection): same here.
15927 2000-02-29 Alexander Larsson <alla@lysator.liu.se>
15929 * objects/ER/Makefile.am:
15930 * objects/FS/Makefile.am:
15931 * objects/UML/Makefile.am:
15932 Don't link object libs with gtk.
15934 2000-02-29 James Henstridge <james@daa.com.au>
15936 * app/preferences.c (prefs_save): check to see if the file could
15937 be opened before writing the prefs.
15939 * app/disp_callbacks.c (popup_object_menu): pass the button event
15940 to gtk_menu_popup. This allows you to click and release to open
15942 (ddisplay_canvas_events): same here.
15943 (create_object_menu): set the object type menu item in the object
15944 menu to be insensitive.
15946 * app/render_svg.c (draw_string): call xmlEncodeEntitiesReentrant,
15947 as we are now requiring a new version of libxml.
15949 * dia.spec: updated version number. Added requirement for
15952 * configure.in: incremented version number to 0.84.
15953 Added check for libxml >= 1.8.5. This will prevent some of the
15954 problems people have had with broken libxml versions.
15956 * NEWS: added news items.
15958 * app/interface.c (create_color_area): removed call to realize parent
15959 widget. Segg <segg@infonet.ca> reported that it caused a warning,
15960 but I haven't seen it on my copy of dia.
15962 2000-02-28 James Henstridge <james@daa.com.au>
15964 * app/export_png.c: added copyright notice, and made the band height
15967 2000-02-27 Alexander Larsson <alla@lysator.liu.se>
15969 * lib/font.c (suck_font):
15970 Fixed off-by one bug in font pixmap height.
15971 Fixes the problem with garbage at the bottom of some text in aa mode
15972 and in png exported files.
15974 2000-02-27 James Henstridge <james@daa.com.au>
15976 * app/app_procs.c: add the png export filter if it was compiled in.
15978 * app/export_png.c (export_png): new PNG export filter. This requires
15979 the libart renderer to work as it needs a renderer that renders to a
15982 * configure.in: add check for libpng.
15984 * lib/message.c (message_internal): use a GNOME dialog here as well.
15986 * app/display.c (ddisplay_close): use a GNOME dialog here.
15988 * app/render_eps.c (create_eps_renderer): use diagram scaling factor
15989 when exporting to EPS. This is because some people said the EPS
15990 output was too large
15992 2000-02-26 James Henstridge <james@daa.com.au>
15994 * app/defaults.c (create_dialog): use a GNOME dialog for the defaults
15997 * app/app_procs.c (app_exit): use a GNOME dialog here.
15999 * app/preferences.c (prefs_create_dialog): if GNOME support is
16000 enabled, show a GNOME dialog.
16002 * app/grid.c (grid_draw): use preferences when drawing page break
16005 * app/preferences.c: add page break preferences to dialog.
16007 * app/preferences.h: added page break preferences.
16009 2000-02-25 James Henstridge <james@daa.com.au>
16011 * sheets/UML.sheet: added new objects.
16013 * objects/UML/uml.c: link in the two new objects.
16015 * objects/UML/node.c:
16016 * objects/UML/branch.c: new UML objects from Stfan Seefeld
16017 <seefelds@magellan.umontreal.ca>.
16019 2000-02-24 James Henstridge <james@daa.com.au>
16021 * objects/custom/custom_object.c: converted to use the properties
16022 interface. In the future, it would be nice to add support for
16023 defining custom properties for custom objects, but that can wait.
16025 2000-02-22 James Henstridge <james@daa.com.au>
16027 * sheets/Circuit.sheet: added new circuit shapes to sheet.
16029 * plug-ins/cgm/cgm.c: cgm plugin updates from Henk Jan Priester
16030 <hj@justcroft.com>. Fixes number encoding, colour encoding, fonts
16031 and adds a few new features.
16033 2000-02-21 Daniel Egger <egger@suse.de>
16035 * sheets/*.sheets: Added German translations and made some
16036 corrections to the others.
16038 2000-02-21 James Henstridge <james@daa.com.au>
16040 * shapes/Circuit/Makefile.am (SHAPES): added new shapes to list.
16042 * shapes/Circuit/...: added new shapes from Erik Janssens.
16044 2000-02-20 James Henstridge <james@daa.com.au>
16046 * app/interface.c (create_color_area): realize the parent window
16049 * objects/standard/image.c: properties patch for standard image
16050 object, from Lars Clausen.
16052 * lib/properties.c: support for PROP_TYPE_FILE from Lars Clausen.
16054 * lib/properties.h (PropType): added file property type.
16056 * shapes/Circuit/speaker_de.xpm: changed size of pixmap to match
16059 * app/interface.c: use wrap box for toolbox.
16061 * app/Makefile.am: added new files.
16063 * app/gtk*wrapbox.[ch]: added wrap box widget.
16065 2000-02-19 James Henstridge <james@daa.com.au>
16067 * sheets/network.sheet: added extra shapes to networks sheet.
16069 * configure.in (AC_OUTPUT): added shapes/network/Makefile
16071 * shapes/network/*: added shapes that were posted to the list a while
16074 * shapes/Makefile.am (SUBDIRS): added network subdirectory
16076 * app/menus.c (toolbox_menu_items): don't right justify help menu for
16077 gtk+ version of menus.
16079 * app/properties.c (create_dialog): use a GnomeDialog if we happen
16082 2000-02-18 James Henstridge <james@daa.com.au>
16084 * objects/flowchart/box.c: set extra data for corner radius and text
16085 padding properties.
16087 * objects/standard/box.c: set extra data for corner radius property.
16089 * lib/properties.h: set extra data in some standard properties.
16091 * lib/properties.c (prop_get_widget): look at the extra data for
16092 int, real and enum property types. They now use GtkSpinButton and
16093 GtkOptionMenu respectively.
16095 * lib/properties.h: extra data members for creating property setting
16098 2000-02-17 James Henstridge <james@daa.com.au>
16100 * objects/flowchart/box.c: reverted load/save functions back to
16101 previous implementations. Made box use standard property names.
16103 * plug-ins/cgm/cgm.c (set_linestyle): was missing a */
16105 * app/grid.c: add more digits to the grid edit dialog. This patch
16106 was also from Lars Clausen.
16108 * objects/standard/zigzagline.c:
16109 * objects/standard/textobj.c:
16110 * objects/standard/polyline.c:
16111 * objects/standard/line.c:
16112 * objects/standard/ellipse.c:
16113 * objects/standard/box.c:
16114 * objects/standard/bezier.c:
16115 * objects/standard/arc.c: patches to add properties code to standard
16116 objects. Based on patches from Lars Clausen. I have also removed
16117 some dead code from the files.
16119 * lib/properties.h (PROP_STD_*): define a number of standard
16120 properties. Where appropriate, objects should include these
16121 properties in their PropDescription list. This way, the intersection
16122 of properties of two different shapes will be greater.
16124 2000-02-14 James Henstridge <james@daa.com.au>
16126 * objects/flowchart/box.c (box_load, box_save): use property save
16127 routines. Make sure that any props not handled by object_load_props
16128 are loaded before calling object_load_props, or we get errors because
16129 update_data is called.
16131 * lib/properties.c (object_get_props_from_offsets): fixed an indexing
16132 error that could cause properties to be loaded incorrectly.
16133 (object_set_props_from_offsets): similar here.
16135 * lib/properties.[ch] (prop_{load,save}): functions for loading
16136 or saving a property in Dia's XML file format.
16137 (object_{load,save}_props): load or save some properties of an
16138 object. These functions should help simplify the load/save methods
16139 of objects that implement the properties interface.
16141 2000-02-13 James Henstridge <james@daa.com.au>
16143 * objects/flowchart/box.c: use offset code to simplify property
16146 * lib/element.h (ELEMENT_COMMON_PROPERTIES): standard element
16148 (ELEMENT_COMMON_PROPERTIES_OFFSETS): offsets.
16150 * lib/object.h (OBJECT_COMMON_PROPERTIES): list of standard object
16152 (OBJECT_COMMON_PROPERTIES_OFFSETS): the offsets of the properties.
16154 * lib/properties.[ch] (object_{get,set}_props_from_offsets): new
16157 2000-02-12 Alexander Larsson <alla@lysator.liu.se>
16160 Add the custom object to DIA_LIB_PATH in run_dia.sh
16162 2000-02-10 Cyrille Chepelov <chepelov@calixo.net>
16164 * sheets/Circuit.sheet:
16165 * shapes/l_sout* (NEW):
16166 * shapes/l_outj.* (NEW): added new outputs : jump, and the power-saved
16167 variants of simple, inverted, set and reset outputs.
16168 Still to do: all Schneider/Telemecanique TSX *7 function blocks ;
16169 probably a split of Contact and Ladder sheets. And then a major
16170 revamping of the Contact sheet.
16172 2000-02-10 James Henstridge <james@daa.com.au>
16174 * app/Makefile.am (dia_LDADD): don't link with libcustom_objects.
16176 * app/app_procs.c (register_all_objects): don't explicitely
16177 register the custom objects library -- let it be loaded by the
16178 normal plugin loading methods.
16180 * lib/Makefile.am (libdia_a_SOURCES): don't include custom.h here.
16182 * objects/custom/Makefile.am: build libcustom_objects as a shared
16185 * objects/custom/shape_info.[ch]: don't read the description field
16186 of custom shapes. It makes more sense to have these in the sheet
16187 file to localise the parts of dia that translators have to deal
16190 * objects/custom/custom_object.c (custom_object_new): do not
16191 create the sheet object for the new custom shape -- this is
16192 handled by the custom sheet code.
16194 * objects/custom/custom.c: change over to being a normal plug-in
16195 rather than being linked with the main dia executable.
16197 2000-02-09 James Henstridge <james@daa.com.au>
16199 * sheets/Circuit.sheet:
16200 * sheets/Flowchart.sheet:
16201 * sheets/Contact.sheet: fixed up sheets.
16203 * objects/custom/custom_object.c (custom_object_new): set the
16204 extra ObjectType fields.
16206 * lib/sheet.c: use extra ObjectType fields when creating sheet
16207 objects. Give a warning if <shape> tags are found in a sheet
16208 file. Now the custom sheet code does not know about custom
16209 shapes -- they look like any other object type.
16211 * lib/object.h (ObjectType): added extra members
16213 2000-02-08 Alexander Larsson <alla@lysator.liu.se>
16215 * app/linewidth_area.c:
16216 Added code to set arbitrary line width.
16217 Patch by Lars Clausen <lrclause@cs.uiuc.edu>
16219 2000-02-08 Alexander Larsson <alla@lysator.liu.se>
16221 * app/linewidth_area.c:
16223 Add support for font-sucking.
16224 Implementation borrowed from gnome-canvas.
16226 * app/render_libart.[ch]:
16227 Implement text rendering.
16229 2000-02-07 Alexander Larsson <alla@lysator.liu.se>
16231 * app/properties.c (create_dialog):
16232 ref and sink no_properties_dialog.
16234 2000-02-07 James Henstridge <james@daa.com.au>
16236 * app/group.c (group_describe_props): new function. Return the
16237 intersection of the properties of the contained objects that
16238 implement the describe_props interface.
16239 (group_get_props): implement by iterating through contained objects
16240 and calling their get_props method until all properties have been
16241 set. Maybe this should go through all objects all the time??
16242 (group_set_props): implement by calling set_props method on all
16244 (group_ops): use standard props dialog creation routines.
16246 * lib/properties.c (prop_desc_lists_intersection): fix implementation
16247 of intersection -- I was using i++ instead of i-- in a for loop :(
16249 * objects/custom/custom.c (custom_register_objects): fix usage
16250 of dia_get_data_directory again.
16252 * lib/sheet.c: fix up use of dia_get_data_directory, so that we
16253 actually read the sheets.
16255 2000-02-06 Alexander Larsson <alla@lysator.liu.se>
16257 Win32 port by Hans Breuer <Hans@Breuer.org>
16260 Remove DATADIR and LIBDIR defines.
16263 Add dia_dirs.c and dia_dirs.h
16264 Added DATADIR and LIBDIR defines.
16266 * lib/dia_dirs.[ch]:
16267 New files for handling special directories.
16272 * objects/custom/custom.c:
16273 Fix warnings. Use directory functions.
16276 Add prototype for diagram_redraw_all.
16278 * app/diaunitspinner.c:
16281 * app/preferences.c:
16285 Win32 doesn't have mkstemp and fchmod.
16287 * app/paginate_psprint.c:
16288 Win32 calls popen _popen and pclose _pclose.
16291 Win32 calls finite _finite.
16294 Win32 needs to dllexport the color vars.
16296 * objects/GRAFCET/step.c:
16297 * objects/chronogram/chronoref.c:
16298 snprintf -> g_snprintf
16300 2000-02-05 James Henstridge <james@daa.com.au>
16302 * lib/properties.c: more fixes so that it doesn't crash when using
16303 properties. The undo/redo stuff also works!!
16305 * objects/flowchart/box.c (box_{describe, get, set}_props): test
16306 object where I have implemented the new properties interface
16307 complete with automatic properties dialog generation.
16309 * lib/properties.c (object_apply_props): fixed stupid error when
16310 creating the old_props array. Also, it no longer frees the props
16311 array -- you will have to do that yourself.
16313 2000-02-04 James Henstridge <james@daa.com.au>
16315 * app/properties.c (properties_apply): pass object_part to
16318 * lib/object.h (ApplyPropertiesFunc): added widget argument.
16320 * lib/lazyprops.h (PROPDLG_CREATE): ref and sink properties dialogs
16321 created this way as well.
16323 * objects/*/*.c: ref and sink the properties dialog window for each
16324 widget. It can't rely on ref count being incremented by
16325 properties_show anymore.
16327 * app/properties.c (properties_show): don't ref the widget before
16328 removing it, or its ref count will increase each time you open the
16329 properties dialog. Don't unparent the widget, as container_remove
16332 * lib/object.h: fixed up prototypes for new object methods.
16334 * lib/properties.[ch]: added functions for automatically creating
16335 a properties dialog from the output of describe_props, get_props and
16337 (object_apply_props): apply properties and return an ObjectChange
16338 structure that can be used for undo.
16340 2000-02-03 Cyrille Chepelov <chepelov@calixo.net>
16342 * objects/GRAFCET/transition.c: minor leak plugged.
16344 * sheets/GRAFCET.sheet:
16345 * objects/GRAFCET/pixmaps/condition.xpm: (NEW)
16346 * objects/GRAFCET/condition.c: (NEW) added a new object type, action
16348 * objects/GRAFCET/Makefile.am: fixed incorrect dependencies, added
16349 new ones (for condition.c).
16350 * objects/GRAFCET/action.c: added connection points for the conditions.
16351 * samples/grafcet.dia: updated the sample to improve conformance to
16352 IEC 848 and take advantage of dia's new features.
16354 * lib/geometry.h: (point_get_normed) fixed a typo.
16356 2000-02-02 James Henstridge <james@daa.com.au>
16358 * lib/object.h: added object functions describe_props, get_props and
16359 set_props. Do type definitions so that object.h doesn't need to
16360 include properties.h, since properties.h includes object.h.
16362 * lib/properties.[ch]: more hacking.
16364 * po/de.po: updated po file.
16366 2000-01-30 James Henstridge <james@daa.com.au>
16368 * configure.in: don't add flags to CFLAGS unconditionally. Instead,
16369 check to see if the C compiler accepts the flag beforehand.
16371 * lib/properties.[ch]: start of properties code.
16373 * shapes/Contact/Makefile.am (SHAPES): fix up makefile.
16375 2000-01-30 Cyrille Chepelov <chepelov@calixo.net>
16377 * sheets/GRAFCET.sheet:
16378 * sheets/GRAFCET/etapemc.xpm: (NEW)
16379 * sheets/GRAFCET/etapesp.xpm: (NEW)
16380 * objects/GRAFCET/step.c: Added the macro and
16381 sub-program call step types.
16383 * objects/GRAFCET/receptivity.[ch]: renamed to
16384 objects/GRAFCET/boolequation.[ch].
16385 * objects/GRAFCET/transition.c: changed (Receptivity *) to
16388 * lib/connpoint_line.[ch]:
16389 * objects/chronogram/chronoline.c:
16390 * objects/chronogram/chronoref.c:
16391 * objects/GRAFCET/vergent.c:
16392 * objects/standard/line.c:
16393 * objects/SADT/box.c: Minor CPL interface changes, factored out the
16394 point count adjustment code into the CPL object.
16396 2000-01-29 Alexander Larsson <alla@lysator.liu.se>
16398 * app/render_libart.c:
16399 Added support for images and bezier curves.
16400 Only text/fonts missing now.
16402 * app/render_gdk.c:
16403 Removed old erronous comment.
16405 2000-01-29 Cyrille Chepelov <chepelov@calixo.net>
16407 * objects/chronogram/chronoline_event.c: removed references to
16408 lround(). Please don't insist, I'm already red of shame.
16410 2000-01-29 Alexander Larsson <alla@lysator.liu.se>
16412 * app/render_libart.[ch]:
16414 Non-finished libart renderer.
16417 Added HAVE_LIBART flag
16423 Call gdk_rbg_init().
16425 * app/connectionpoint_ops.c:
16426 * app/disp_callbacks.c:
16428 * app/handle_ops.c:
16430 * app/modify_tool.c:
16431 Change ddisp->renderer type from RendererGdk * to Renderer *
16432 Draw zoom and select rects in ddisp->canvas->window instead
16433 of ddisp->renderer->renderer->pixmap.
16435 * app/display.[ch]:
16436 Add aa_renderer to DDisplay, and support for it.
16437 New function ddisplay_set_renderer() for changing renderer.
16438 Add ddisplay_transform_coords_double() function, used by aa renderer.
16439 Change ddisp->renderer type from RendererGdk * to Renderer *
16442 Add antialias to menu.
16444 * app/commands.[ch]:
16445 add view_aa_callback function
16446 Change ddisp->renderer type from RendererGdk * to Renderer *
16448 * lib/geometry.[ch]:
16449 Added IntRectangle and int_rectangle_union.
16451 2000-01-28 James Henstridge <james@daa.com.au>
16453 * app/commands.h: removed prototypes.
16455 * app/commands.c: removed the functions that have been moved to
16458 * app/filedlg.h: added new prototypes.
16460 * app/filedlg.c (file_open_callback): move open dialog to this
16461 file. This implementation should remember the current directory
16462 between file loads.
16463 (file_save_as_callback): moved this dialog as well.
16464 (file_save_callback): moved this function here.
16466 * app/paginate_psprint.c (paginate_psprint): if not in fit to mode,
16467 align page boundaries to the origin.
16469 * app/diagram.c (diagram_update_extents): redraw the diagram if the
16470 scaling factor changes while updating the extents. This is so the
16471 page breaks get redrawn correctly.
16473 * app/pagesetup.c (pagesetup_apply): added diagram_flush call when
16476 * app/grid.c (grid_draw): draw page breaks as well as grid lines.
16477 For normal mode, use (0,0) as the origin. For `fit to' mode, use
16478 the corner of the bounding box.
16480 * app/pagesetup.c (create_page_setup_dlg): load new paper attributes
16481 into page setup dialog.
16482 (pagesetup_apply): apply new `fit to' attributes to the diagram.
16484 * app/load_save.c (diagram_load): load new paper `fit to' attributes.
16485 (diagram_data_save): save `fit to' data.
16487 * lib/diagramdata.c (new_diagram_data): initialise `fit to' members.
16488 (data_update_extents): when in `fit to' mode, update scale factor
16489 when we update the extents.
16491 * lib/diagramdata.h (PaperInfo): added `fit to' members to PaperInfo
16494 * .../.cvsignore: added some cvsignore files to quieten cvs.
16496 * app/pagesetup.c (pagesetup_changed): added code to change the
16497 scaling/fit to values as you change the options in the page setup
16498 dialog. I haven't added code so that the fit to options are saved
16501 * app/diapagelayout.[ch]: changed the scaling portion of the widget
16502 to make it easier to set a `fit to' style scaling factor.
16504 2000-01-27 Cyrille Chepelov <chepelov@calixo.net>
16505 * lib/neworth_conn.[ch]: (NEW) Temporary (hopefully) fork of orth_conn,
16506 but connpoint_line-based, so that there's a connection point at the
16507 middle of each segment. Currently only the SADT arrow uses this.
16509 * objects/SADT/* (NEW): SADT (both idf0 and idf1) support.
16511 2000-01-26 Cyrille Chepelov <chepelov@calixo.net>
16512 * lib/lazyprops.[ch]:(NEW) Added a bunch of macros for loading,
16513 saving and editing of properties (and default properties).
16514 See the new objects (GRAFCET, SADT, chonograms) for examples.
16515 For already too hairy stuff, see objects/chronogram/chronoline.c.
16517 * lib/connpoint_line.[ch] (NEW): This subobject manages a line of
16518 evenly spaced connection points, which the user can add or remove at
16519 will. An object can own several connection point lines. See the SADT
16520 Box, or the GRAFCET vergents for examples.
16522 * lib/dummy_dep.h: added dependencies to new files. Told gcc to keep
16523 quiet about unused stuff.
16525 * objects/GRAFCET (NEW):
16526 * samples/grafcet.dia (NEW):
16527 Added support for GRAFCET charts.
16529 * objects/chronogram (NEW):
16530 * samples/chronograms.dia (NEW):
16531 Added support for chronograms (feature requested by Ronald L. Chichest;
16532 I found I'd use it often, too).
16534 * objects/standard/line.c: Replace the middle connectionpoint by
16535 a whole connection point line, which defaults to one point (hint,
16536 hint). New Line object menu to take advantage of this.
16537 "Bothwards" compatibility is preserved (although you may loose
16538 connections if you load a newer file in a older dia).
16540 * app/lineprops_area.c:
16542 * lib/widgets.c: Added hollow and filled ellipse arrow head type.
16543 (feature requested by Benjamin Kahn).
16544 Merged in Steffen Macke's slashed arrow head type.
16546 * app/Makefile.am (app/run_dia.sh actually):
16547 Added $DEBUGGER in front of dia's invocation, so that
16548 you can call "DEBUGGER=ddd app/run_dia.sh" (maybe naive, but useful).
16549 Added $(EFENCE) to app/dia's LDFLAGS, so that you can do
16550 "EFENCE=-lefence" to link with Electric Fence.
16552 * configure.in: Made gcc do more aggressive optimisations on i386, and
16555 2000-01-24 James Henstridge <james@daa.com.au>
16557 * lib/geometry.[ch]: added inline versions of functions. Used
16558 glib's G_INLINE_FUNC stuff, so it should still work on systems
16559 without inline funcs.
16561 * plug-ins/cgm/cgm.c (draw_ellipse, fill_ellipse): fixed up so that
16562 it outputs the correct element id for the ellipse objects.
16564 2000-01-24 Cyrille Chepelov <chepelov@calixo.net>
16566 * lib/object.[ch]: added object_add_connectionpoint_at, similar to
16567 object_add_handle_at. Message typo fixed.
16569 * lib/sheet.c (load_register_sheet):
16570 potential bug fixed (warning hunt).
16572 * objects/custom/custom.c (custom_object_load): disabled an assertion
16573 which made dia abort upon failure to load a shape file. Fixed a
16576 * objects/custom/shape_info.c (load_shape_info): Made the custom
16577 shape load code ignore XML comments between <?xml ...?> and the
16578 root object (mostly useful to put the emacs magic comments).
16580 * app/load_save.c: Made dia do backup copies of files when saving,
16581 and complain in case of failure.
16583 2000-01-24 Cyrille Chepelov <chepelov@calixo.net>
16585 * AUTHORS: fixed my address (ISP thought it was a great idea to change
16590 * shapes/Contact/*:
16591 * sheets/Contact.sheet:
16592 * sheets/Makefile.am:
16593 Added support for Contact and LADDER charts.
16595 * dia.desktop: Added a French translation.
16597 2000-01-23 James Henstridge <james@daa.com.au>
16599 * app/commands.c (help_about_callback): don't die if can't load
16602 * app/render_gdk.c (bezier_add_lines): sanity check to try to weed
16603 out NaN's when performing bezier curve subdivision.
16605 * objects/custom/custom_object.c: initialise memory of Custom structs
16608 * app/render_svg.c (draw_image): added image support to the XML
16609 output filter. The image is just referenced, rather than being
16610 included inline, so if you copy the SVG file somewhere else, you
16611 may need to move the images or fix up the links.
16613 * plug-ins/cgm/cgm.c (draw_string): output a text colour element,
16614 so the text is not just displayed in black all the time.
16616 2000-01-15 Fredrik Hallenberg <hallon@lysator.liu.se>
16618 * configure.in: fixed libpopt test so we wont try to build with
16621 1999-12-18 Yuri Syrota <rasta@renome.rovno.ua>
16623 * configure.in: Added "uk" to ALL_LINGUAS.
16625 1999-12-24 James Henstridge <james@daa.com.au>
16627 * po/ru.po: updated russian translation from Valek Filippov.
16629 * app/render_svg.c (new_svg_renderer): make output use 19991203
16630 version of SVG DTD. Use viewBox to set the extents of the view.
16632 * INSTALL (FONTS): updated locations of gnome-xml and imlib. List
16633 ftp.gnome.org as the download.
16635 * TODO (TODO): weeded out completed todo items and added a few extra.
16637 * Makefile.am (EXTRA_DIST): added documentation to EXTRA_DIST.
16639 * doc/sheet.dtd: first stab at a DTD for the sheet files. It would
16640 be good to get rid of the object/shape distinction and separate
16641 the custom shape code out from the main application.
16643 * objects/custom/README, diagram.dtd: moved to new doc directory.
16644 Renamed the custom shapes README to custom-shapes. Also updated
16645 custom shape docs a bit and removed the section on sheet files, as
16646 that has changed a bit.
16648 * plug-ins/cgm/cgm.c (draw_image): give an error if the row length
16649 of the image data is larger than the maximum cell array. I should
16650 add code to break scan lines down further in this case, but for now
16651 an error message is better than an infinite loop.
16653 * app/filedlg.c (file_export_ok_callback): show a dialog if we
16654 couldn't determine the export filter to use.
16656 * app/commands.c (help_about_callback): fixed up about box logo
16657 expose bug. Now just use a GtkPixmap widget rather than a
16658 GtkDrawingArea and calling gdk_imlib_paste_image.
16660 * app/Makefile.am (EXTRA_DIST): added print stuff to extra dist,
16661 because automake does not always get things right.
16663 * configure.in: updated version number to 0.83.
16665 * app/preferences.c (prefs_save):
16666 * app/render_svg.c (new_svg_renderer): "wt" is not a valid flag string
16667 for fopen. Text is the default file mode anyway.
16669 * app/commands.c (file_save_as_dialog_ok_callback, file_new_callback):
16670 * app/grid.c (grid_x_update, grid_y_update, grid_show_dialog):
16671 * app/load_save.c (write_objects, write_connections):
16672 * app/filedlg.c (file_export_ok_callback):
16673 * lib/dia_xml.c (data_add_int, data_add_enum, data_add_real):
16674 * lib/dia_xml.c (data_add_point, data_add_rectangle):
16675 * lib/font.c (init_x11_font, font_get_gdkfont): changed calls to
16676 snprintf to calls to g_snprintf.
16678 * plug-ins/cgm/cgm.c (export_cgm): write the original dia file name
16679 as the picture name.
16681 1999-12-23 James Henstridge <james@daa.com.au>
16683 * plug-ins/cgm/cgm.c (write_int32, write_int16): fixed up output of
16684 negative numbers. This fixes the upside down text problem I was
16686 (draw_image): implemented the image code. It will try to split the
16687 image data up into bands if it is too big to fit into a single
16688 cgm cell array element. It will have problems if you try to insert
16689 an image wider than about 10,000 pixels though.
16691 * Makefile.am: use gnomedatadir for the files that need to be
16692 installed in gnome's datadir. This is mainly to help people doing
16693 packages for weird setups.
16695 1999-12-22 James Henstridge <james@daa.com.au>
16697 * plug-ins/cgm/cgm.c: added support for text. Now only images and
16698 beziers are left to do. The text seems to be the wrong way up
16699 still. This is probably a problem with character orientation
16700 element, but I have used what the settings given in the standard.
16701 Other than this, the CGMs dia produces are readable (and displayable)
16702 by ralcgm and corel draw.
16703 (draw_string): subtract from the X coord rather than the Y coord for
16704 center and right aligned text.
16706 * plug-ins/cgm/cgm.c: a few fixups for the output. Use REALSIZE as
16707 the size of a real number, and changed name of write_double to
16708 write_real. Consider changing to fixed real encoding. Also, now
16709 all element headers are correct. Once the real number encoding is
16710 fixed, only text, beziers and images are left to do.
16712 1999-12-21 James Henstridge <james@daa.com.au>
16714 * Makefile.am (SUBDIRS): recurse into plug-ins.
16716 * configure.in: add plug-ins directory makefiles to list.
16718 * plug-ins/cgm/cgm.c: start of cgm export filter. Beziers and text
16719 not done yet. Also, the output files are not quite correct.
16721 * app/render_eps.c (print_reencode_font): don't reencode the Symbol
16722 font. It doesn't work if you do.
16724 1999-12-20 James Henstridge <james@daa.com.au>
16726 * app/app_procs.c (app_init): don't use diagram_export_to_eps to
16727 export the files. Instead, use filter_guess_export_filter to
16728 guess the correct format to save in and use the appropriate filter.
16729 It defaults to postscript for compatibility.
16731 * app/diagram.[ch] (diagram_export_to_eps): removed export to eps
16734 * app/commands.[ch]: removed export to eps functions.
16736 * app/menus.c: removed export to eps menu items.
16738 * app/app_procs.c: register new export filters.
16740 * app/load_save.[ch]: define dia native export filter.
16742 * app/render_eps.[ch]: define eps export filter.
16744 * lib/filter.h: added diafilename argument to the DiaExportFunc
16745 prototype. This is useful for putting the source of the diagram
16746 into the output file for instance.
16748 * app/app_procs.c (app_init): register the SVG export filter. Have
16749 to get EPS code converted to this API, and maybe also allow saving in
16750 DIA's native format from the export dialog. In fact, it is now
16751 possible to load an export filter from a shared library and it will
16752 integrate into the interface correctly.
16754 * app/menus.c: removed references to the SVG renderer.
16756 * app/commands.[ch]: removed svg stuff.
16758 * app/diagram.[ch]: removed diagram_export_to_svg function.
16760 * app/render_svg.[ch]: added a DiaExportFilter structure for this
16763 * app/filedlg.[ch]: code for the new export diagram dialog. Will
16764 probably move the open/save dialogs to this file as well.
16766 1999-12-19 James Henstridge <james@daa.com.au>
16768 * lib/filter.[ch]: start of interface for generalised handling of
16769 filters. I have only done code for export filters so far. I still
16770 need to do the gui for this, and convert the current SVG and EPS
16771 filters to the new API.
16773 * lib/bezier_conn.c (bezierconn_copy): fix up copy operation. We
16774 weren't setting the last handle correctly. It was actually assigning
16775 to the wrong position in the handles array, so the last handle was
16776 left as NULL, which caused the segfault.
16778 * objects/standard/image.c (image_copy): modified routine so that
16779 it just adds a reference to the DiaImage structure in the new image
16780 object. This seems to have cleared up the problems with copying
16783 * dia.spec: spec file additions from John Gotts.
16785 1999-12-12 James Henstridge <james@daa.com.au>
16787 * configure.in (GNOME_LIBS): updated version number to 0.82. 0.82
16788 has not been released yet though.
16790 * Makefile.am (EXTRA_DIST): distribute diagram.dtd.
16793 The following based on a patch from Lars Clausen:
16795 * objects/standard/bezier.c (bezierline_move_handle): when performing
16796 the initial drag of the bezierline, move the control points to keep
16799 * lib/bezier_conn.c (bezierconn_add_segment): when adding a segment,
16800 make the new control points a bit closer to the major point.
16802 * app/create_object.c (create_object_motion): use HANDLE_MOVE_CREATE
16803 as the reason for the move.
16804 (create_object_button_release): use HANDLE_MOVE_CREATE_FINAL as the
16807 * lib/handle.h: new handle move reasons.
16809 1999-12-09 James Henstridge <james@daa.com.au>
16811 * dia.spec: include the new files in RPMs.
16813 * Makefile.am: install these new files.
16815 * dia.keys.in: file describing actions and icon for dia diagrams for
16816 use in the gnome file manager.
16818 * dia.mime: a file defining the application/x-dia-diagram mime type.
16820 * dia-diagram.png: an icon for dia diagrams.
16822 1999-12-08 James Henstridge <james@daa.com.au>
16824 * plug-ins/python/pydia-diagram.c: added heaps of new methods.
16826 * plug-ins/python/pydia-display.[ch]: wrapper for display.
16828 * objects/standard/ellipse.c: applied Lars's patch to optionally not
16829 draw the background of the ellipse.
16831 * app/load_save.c (read_connections): do some sanity checking on the
16832 handle and connection point numbers before performing the object
16835 * lib/bezier_conn.c (bezierconn_load): give the correct number of
16836 handles when loading a BezierConn.
16838 1999-12-07 Kjartan Maraas <kmaraas@online.no>
16840 * sheets/*.sheet: Finished Norwegian translations.
16842 1999-12-07 James Henstridge <james@daa.com.au>
16844 * plug-ins/python/diamodule.c (PyDia_Load): load diagram function.
16845 (PyDia_GetObjectType): find object type function.
16847 * plug-ins/python/pydia-diagram.c (PyDiaDiagram_Save): added a save
16848 method for diagrams.
16850 * plug-ins/python/pydia-object.c: added methods for DiaObject and
16853 * AUTHORS: added Lars and Cyrille to the authors file.
16855 * objects/standard/bezier.c (bezierline_add_segment_callback): place
16856 new point correctly.
16858 * lib/bezier_conn.h (bezierconn_closest_segment): fixed prototype.
16860 * lib/bezier_conn.c: applied Lars's patch for placement of the new
16861 point when adding a segment to a BezierConn.
16863 1999-12-06 James Henstridge <james@daa.com.au>
16865 * plug-ins/python/test.py: test script for the python plug-in.
16867 * plug-ins/python/python.c: this file contains the plug-in startup
16868 code for the python plugin. Right now, it just initialises the
16869 dia module and executes a script.
16871 * objects/standard/polyline.c (polyline_draw): fix start arrow size.
16873 * objects/standard/bezier.c (bezierline_draw): draw control lines for
16874 bezier curve if we are using an interactive renderer (ie. only if
16875 displaying to the screen).
16877 * lib/bezier_conn.[ch] (bezierconn_draw_control_lines): function
16878 to draw control lines on to a bezier curve. Based on implementation
16881 * objects/standard/bezier.c (bezierline_delete_segment_callback):
16882 calculate segment number using closest_segment rather than
16883 closest_handle. Sometimes the closest handle is part of a different
16885 (bezierline_draw): use correct size for start arrow.
16887 The next few entries are from Peter Moulder <reiter@netspace.net.au>:
16888 * lib/geometry.c (distance_line_point): added notes to documentation
16890 * app/object_ops.c (object_list_align_v):
16891 (object_list_align_h): fix of by one error when calculating free space
16892 for equal distance alignment.
16893 * app/menus.c (objects_align_h, objects_align_v): include align
16894 adjacent menu items in the gnome version of the menus.
16895 * app/diagram.c (diagram_update_menu_sensitivity): set sensitivity on
16896 align adjacent menu items correctly.
16899 * lib/dummy_dep.h (dummy_dep): added bezierconn to dummy dependency
16902 * objects/standard/bezier.c: converted bezierline to use BezierConn.
16903 Still a few bugs. It crashes on deleting line segments.
16905 * lib/Makefile.am (libdia_a_SOURCES): added BezierConn to libdia.
16907 1999-12-05 James Henstridge <james@daa.com.au>
16909 * lib/bezier_conn.[ch]: start of BezierConn object
16911 * app/interface.c: add bezierline to toolbox.
16913 * objects/standard/standard.c: initialise bezierline.
16915 * objects/standard/bezier.c: new object from Lars R. Clausen. I have
16916 made a few modifications to get it working nicely. It still needs
16917 a bit of work though. Maybe create a BezierConn object in lib.
16919 1999-12-02 James Henstridge <james@daa.com.au>
16921 * plug-ins/python/pydia-*.c: fixed compile errors in these files.
16923 * plug-ins/python/Makefile.am: tried building everything. It is
16924 building as a library at the moment. I will have to convert it
16925 to a libtool library and add some initialisation code.
16927 * plug-ins/python/diamodule.c: start of the dia module, using the
16928 other object wrappers. Not complete.
16930 1999-12-01 James Henstridge <james@daa.com.au>
16932 * plug-ins/python/pydia-object.c (PyDiaObject_GetAttr): implement
16933 the handles and connections attributes.
16935 * plug-ins/python/pydia-layer.c: added functions that use
16938 * plug-ins/python/pydia-handle.[ch]: wrapper for Handle's.
16940 * plug-ins/python/pydia-cpoint.[ch]: wrapper for ConnectionPoint's.
16942 * plug-ins/python/pydia-*.[ch]: starts of python scripting plug-in.
16943 I am currently wrapping the basic elements in the diagram in python
16944 objects -- nothing to see or play with yet.
16946 1999-11-30 Alexander Larsson <alla@lysator.liu.se>
16950 James Henstridge <james@daa.com.au> is now the maintainer of Dia.
16952 1999-11-29 Alexander Larsson <alla@lysator.liu.se>
16956 Added russian translation from Valek Filippov <frob@df.ru>
16958 1999-11-24 James Henstridge <james@daa.com.au>
16961 * sheet/ER/*: moved extra sheet pixmaps back to separate dirs as
16962 discussed with Alex. Also added extra makefiles so that make install
16965 1999-11-23 Alexander Larsson <alla@lysator.liu.se>
16967 * app/preferences.[ch]:
16969 Added snap to grid preference.
16970 Patch from Michael Leslie <mles@springboardwireless.com>
16972 1999-11-21 Alexander Larsson <alla@lysator.liu.se>
16978 * objects/custom/shape_info.c:
16979 All strings returned by libxml must be freed with free, not
16980 g_free, or there will be problems if you use memory debugging
16983 1999-11-21 Alexander Larsson <alla@lysator.liu.se>
16985 * app/create_object.[ch]:
16988 * app/commands.[ch]:
16990 * app/interface.[ch]:
16991 Reverted the tool menu patch. It has some 'issues'.
16992 I liked it though, so it'll probably return.
16994 1999-11-21 Alexander Larsson <alla@lysator.liu.se>
16996 Fixed a lot of memory leaks. Thanks to Bruce Mitchener
16997 <bruce@cybersight.com> for some purify runs and analysis.
16998 Also a great thank you to Owen Taylor for creating MemProf, a
16999 free memory leak detector that was used to find and verify a
17000 lot of these fixes.
17003 * app/paginate_psprint.c:
17004 * app/render_eps.[ch]:
17005 * app/render_svg.[ch]:
17009 Don't add a reference to ddisp->shell. Why was this done in
17016 Free all strings returned from xmlGetProp
17018 * app/modify_tool.c:
17021 * objects/custom/custom.c:
17022 Use closedir() after opendir().
17024 * objects/custom/shape_info.c:
17025 User g_free() instead of "if (tmp) free(tmp)".
17028 Add newline at end of file.
17031 1999-11-20 Alexander Larsson <alla@lysator.liu.se>
17033 Based on patch from Patrick Reynolds <reynolds@cs.duke.edu>
17034 Adds tool menu and keyboard shortcuts.
17036 * app/create_object.[ch]:
17037 Use tool_set() instead of tool_reset().
17038 create_create_object_tool() takes extra type argument
17044 Moved tool_data here, export it.
17045 Add separate tool type for all create objects tools.
17046 new functions tool_set().
17049 New callback tool_set_callback.
17052 Moved some pixmaps to interface.c.
17055 Remove tool_data array (moved to tool.c).
17056 Use the tool_data from tool.c.
17057 Remove modify_tool_button global var.
17059 1999-11-20 Alexander Larsson <alla@lysator.liu.se>
17061 Patch from Patrick Reynolds <reynolds@cs.duke.edu>
17064 Interprets command-line arguments as files to open even when
17065 HAVE_POPT is not defined.
17068 Shift-clicking when zooming zooms out, like the Gimp.
17071 Has hotkeys for zoom-100% and snap-to-grid.
17073 1999-11-17 James Henstridge <james@daa.com.au>
17075 * app/scroll_tool.c (scroll_motion): fixed shift style scrolling so
17076 that it is not jumpy.
17078 * app/Makefile.am (EXTRA_DIST): added extra files to extra dist list.
17080 * app/scroll_tool.c (scroll_motion): added `grabbing hand' type
17081 scrolling by pressing the shift key when using the scroll tool.
17083 * sheets/Makefile.am: fixed makefile so that install actually works
17084 if the directories $(pkgdatadir)/sheets/UML and $(pkgdatadir)/sheets/ER
17086 (SHEETS): install Circuit.sheet
17088 1999-11-15 Alexander Larsson <alla@lysator.liu.se>
17089 Patch from Cyrille Chepelov <chepelov@rmcnet.fr>
17091 * sheets/Circuit.sheet:
17094 * sheets/Flowchart.sheet:
17095 * sheets/UML.sheet:
17096 * sheets/network.sheet:
17097 * sheets/sybase.sheet:
17100 * sheets/Circuit.sheet:
17101 added some missing French translations
17104 killed the temporary sheet namespace
17106 * objects/custom/custom.c:
17107 obsolete comment cleaned up
17109 1999-11-12 Alexander Larsson <alla@lysator.liu.se>
17113 Added portugese translation from Pedro Morais
17114 <pmmm@rnl.ist.utl.pt>
17116 1999-11-11 Alexander Larsson <alla@lysator.liu.se>
17118 Changed all sheets to be specified in xml.
17119 All sheet objects removed from the C code.
17120 Patch from Cyrille Chepelov <chepelov@rmcnet.fr>
17125 Updated version to 0.81cvs.
17128 Update run_dia.sh with sheet-dir.
17131 Load all sheets on startup.
17132 Create sheet directory first time.
17133 Don't call custom_register_sheets().
17136 Add sheetdir define
17139 Remove custom_register_sheets().
17142 Add sheet loading code.
17144 * sheet/Circuit.sheet:
17147 * sheet/Flowchart.sheet:
17149 * sheet/network.sheet:
17150 * sheet/sybase.sheet:
17153 * sheet/ER/weakentity.xpm:
17154 * sheet/UML/aggregation.xpm
17155 * sheet/UML/umlclass_template.xpm
17156 Added sheet pixmaps.
17157 These are moved from their old places.
17159 * sheet/.cvsignore:
17163 Removed sheet objects and sheet registration.
17165 * objects/ER/Makefile.am:
17166 * objects/ER/pixmaps/weakentity.xpm:
17167 * objects/UML/Makefile.am:
17168 * objects/UML/pixmaps/aggregation.xpm:
17169 * objects/UML/pixmaps/umlclass_template.xpm:
17170 Removed alternative pixmaps. (Moved to sheet).
17172 * objects/custom/Makefile.am:
17173 * objects/custom/load_sheet.[ch]:
17174 Removed old sheet loading code.
17176 * objects/custom/custom.c:
17177 Load all shapes instead of sheets.
17178 Removed custom_register_sheets().
17180 * objects/custom/custom_object.c:
17183 * objects/custom/shape_info.[ch]:
17184 Added shape_info_getbyname().
17186 * objects/flowchart/Makefile.am:
17187 * objects/flowchart/collate.shape
17188 * objects/flowchart/delay.shape
17189 * objects/flowchart/display.shape
17190 * objects/flowchart/document.shape
17191 * objects/flowchart/extract.shape
17192 * objects/flowchart/flowchart.c
17193 * objects/flowchart/intstorage.shape
17194 * objects/flowchart/magdisk.shape
17195 * objects/flowchart/magdrum.shape
17196 * objects/flowchart/magtape.shape
17197 * objects/flowchart/manualinput.shape
17198 * objects/flowchart/manualop.shape
17199 * objects/flowchart/merge.shape
17200 * objects/flowchart/offlinestore.shape
17201 * objects/flowchart/offpageconn.shape
17202 * objects/flowchart/or.shape
17203 * objects/flowchart/predefdproc.shape
17204 * objects/flowchart/preparation.shape
17205 * objects/flowchart/punchedcard.shape
17206 * objects/flowchart/punchedtape.shape
17207 * objects/flowchart/sort.shape
17208 * objects/flowchart/sumjunction.shape
17209 * objects/flowchart/terminal.shape
17210 * objects/flowchart/transaction.shape
17211 * objects/flowchart/transmittape.shape
17212 * objects/flowchart/pixmaps/collate.xpm
17213 * objects/flowchart/pixmaps/delay.xpm
17214 * objects/flowchart/pixmaps/display.xpm
17215 * objects/flowchart/pixmaps/document.xpm
17216 * objects/flowchart/pixmaps/extract.xpm
17217 * objects/flowchart/pixmaps/intstorage.xpm
17218 * objects/flowchart/pixmaps/magdisk.xpm
17219 * objects/flowchart/pixmaps/magdrum.xpm
17220 * objects/flowchart/pixmaps/magtape.xpm
17221 * objects/flowchart/pixmaps/manualinput.xpm
17222 * objects/flowchart/pixmaps/manualop.xpm
17223 * objects/flowchart/pixmaps/merge.xpm
17224 * objects/flowchart/pixmaps/offlinestore.xpm
17225 * objects/flowchart/pixmaps/offpageconn.xpm
17226 * objects/flowchart/pixmaps/or.xpm
17227 * objects/flowchart/pixmaps/predefdproc.xpm
17228 * objects/flowchart/pixmaps/preparation.xpm
17229 * objects/flowchart/pixmaps/punchedcard.xpm
17230 * objects/flowchart/pixmaps/punchedtape.xpm
17231 * objects/flowchart/pixmaps/sort.xpm
17232 * objects/flowchart/pixmaps/sumjunction.xpm
17233 * objects/flowchart/pixmaps/terminal.xpm
17234 * objects/flowchart/pixmaps/transaction.xpm
17235 * objects/flowchart/pixmaps/transmittape.xpm
17236 Moved shapes and their pixmaps to shapes/flowchart
17238 * shapes/Circuit/Makefile.am:
17239 * shapes/Circuit/index.sheet:
17240 Removed index.sheet.
17242 * shapes/Makefile.am:
17243 * shapes/flowchart/Makefile.am:
17244 * shapes/flowchart/*.shape:
17245 * shapes/flowchart/*.xpm:
17246 Added flowchart shapes. (Moved from objects/flowchart)
17249 1999-11-07 Fredrik Hallenberg <hallon@lysator.liu.se>
17251 * app/app_procs.c: Fixed popt stuff.
17253 1999-11-01 James Henstridge <james@daa.com.au>
17255 * shapes/Circuit/[hv]led_de.{shape,xpm}: new circuit shapes from
17258 1999-10-31 Alexander Larsson <alla@lysator.liu.se>
17262 Update version to 0.81.
17265 Update with news for 0.81.
17267 * shapes/Circuit/*:
17268 * shapes/Circuit_eu/*:
17269 Moved european circuit objects to Circuit sheet.
17271 1999-10-31 Alexander Larsson <alla@lysator.liu.se>
17273 * lib/diagramdata.[ch]:
17274 Added layer_set_object_list() function.
17277 Added support for undo of reordered objects.
17278 Fix the undo of delete to keep the right order on undo.
17281 changed loop to object_add_updates_list() calls.
17282 Added undo support to bring to front/back.
17284 * app/disp_callbacks.c:
17285 * app/paginate_psprint.c:
17288 1999-10-30 Alexander Larsson <alla@lysator.liu.se>
17290 This plugs some leaks. Thanks to
17291 Bruce Mitchener <bruce@cybersight.com> for running
17292 Dia through purify for me.
17295 Free displays and diagrams on exit.
17297 * app/modify_tool.c:
17298 Free gc when freeing tool.
17300 * lib/diagramdata.c:
17304 Free update and display lists when destroying display.
17306 * lib/diagramdata.c:
17307 Don't leak layer name.
17309 * objects/custom/load_sheet.c:
17310 * objects/custom/shape_info.c:
17311 Free loaded xml documents.
17313 1999-10-28 Alexander Larsson <alla@lysator.liu.se>
17316 * app/object_ops.[ch]:
17317 Add undo handling to alignment ops.
17318 Based partially on patch by Dan Cohn <dan@internap.com>.
17320 * objects/standard/image.c (image_move_handle):
17321 Don't divide by zero for small images.
17322 Patch by Dan Cohn <dan@internap.com>.
17324 * objects/UML/class.c (umlclass_destroy):
17325 * objects/custom/custom_object.c (custom_destroy):
17326 Don't free connectionpoints before calling element_destroy
17327 which unconnects them.
17329 1999-10-26 Alexander Larsson <alla@lysator.liu.se>
17331 * objects/custom/custom_object.c:
17332 Load and save padding too. Fixes strange load crashes.
17334 * app/group.c (group_destroy):
17335 Don't unconnect already freed connectionpoints when
17336 destroying group. Probably fixes bug reported by
17337 Elliot Lee <sopwith@redhat.com>.
17339 * app/render_gdk.c:
17340 Don't crash on zero-size (broken) bezier curves.
17341 Different sort of fix. This should work on closed bezier curves
17344 * objects/standard/textobj.c:
17345 Activate default properties dialog for Text objects.
17347 * app/render_eps.c:
17349 * app/preferences.c:
17350 * app/render_svg.c:
17351 fopen files in binary or text mode.
17353 1999-10-26 Alexander Larsson <alex@cendio.se>
17355 * app/render_gdk.c (bezier_add_lines):
17356 Don't crash on zero-size (broken) bezier curves.
17357 Fixes a crashing bug.
17359 1999-10-25 James Henstridge <james@daa.com.au>
17361 * app/Makefile.am (run_dia.sh): allow dia to find internal shape files
17362 before it is installed.
17364 * objects/flowchart/flowchart.c: use relative paths to find shapes.
17366 * objects/custom/custom.c (custom_object_load): take file names
17367 relative to $(pkgdatadir)/shape-internal, and check an environment
17368 variable for an alternative directory.
17370 * app/...: added copyright messages to the top of my new code.
17372 * app/paginate_psprint.c: some general clean ups. Also, give an error
17373 dialog if we can't open the command or output file for writing.
17375 * app/diapagelayout.c (dia_page_layout_set_orientation): fixed
17376 function so it would set orientation to landscape correctly.
17378 * app/paginate_psprint.c: use the paper settings that come with
17379 the diagram. Also implemented landscape printing.
17381 * app/render_eps.c (new_psprint_renderer): use diagram paper metrics
17384 * app/commands.[ch] (file_pagesetup_callback): added callback for
17385 the page setup dialog.
17387 * app/menus.c: added page setup menu item.
17389 * app/pagesetup.[ch]: implementation of the page setup dialog.
17391 * app/diapagelayout.[ch]: added accessors for the scaling factor.
17393 * app/load_save.c (diagram_load): load paper information from save
17395 (diagram_save): save the paper info.
17397 * lib/diagramdata.c (new_diagram_data): initialise paper info section
17398 of DiagramData structure.
17399 (diagram_data_destroy): free the paper name.
17401 * lib/diagramdata.h: added a paper member to the DiagramData structure
17402 that holds the page layout info for a diagram.
17404 1999-10-21 Alexander Larsson <alla@lysator.liu.se>
17406 * objects/flowchart/box.c:
17407 * objects/flowchart/ellipse.c:
17408 * objects/flowchart/diamond.c:
17409 * objects/flowchart/parallelogram.c:
17410 Load and save padding too. Fixes strange load crashes.
17412 1999-10-21 Alexander Larsson <alla@lysator.liu.se>
17414 * app/app_procs.c (name_is_lib):
17415 .dll, .sl and .so.0.0.0 are also libraries.
17417 1999-10-20 James Henstridge <james@daa.com.au>
17419 * configure.in: added extra makefile.
17421 * shapes/Circuit_eu/*: a new set of european circuit shapes from
17422 Andreas Scherf <scherfa@fh-trier.de>. Made a few small modifications
17423 (added fuses to makefile, fill the area of some of the components).
17425 1999-10-19 Alexander Larsson <alla@lysator.liu.se>
17429 Add GDK_IMLIB_CFLAGS to includes.
17430 Changed --export-dynamic to -export-dynamic
17433 * objects/UML/message.c:
17434 Removed c++ comment.
17436 * lib/render_store.[ch]:
17437 Don't use empty structure. That is not Ansi C.
17439 1999-10-19 James Henstridge <james@daa.com.au>
17441 * app/diapagelayout.c (dia_page_layout_init): use DiaUnitSpinner's for
17442 the margin entries, as they allow interpretation of units.
17443 (paper_size_change): display the current page dimensions.
17445 * app/diaunitspinner.[ch]: a widget derived from the standard
17446 GtkSpinButton that tries to take units into account. So if you enter
17447 "1in" into the entry, it will convert it to 2.54cm.
17449 1999-10-18 Alexander Larsson <alla@lysator.liu.se>
17452 Removed include of dlfcn.h
17454 1999-10-18 James Henstridge <james@daa.com.au>
17456 * app/diapagelayout.c (paper_size_change, orient_changed): set upper
17457 bound on margin widths. It is set to the paper width/height.
17459 * objects/flowchart/diamond.c (diamond_distance_from): fixed distance
17460 routine for the diamond. This bug was found and fixed by Daniel Wang
17461 <danwang@CS.Princeton.EDU>
17463 Sun Oct 17 19:46:36 1999 ape@gandalf.spacetec.no (Asbjorn Pettersen)
17465 * app/commands.c: Add <sys/types.h> before <sys/stat.h> to
17466 remove warning (OS/2 version).
17468 1999-10-17 Alexander Larsson <alla@lysator.liu.se>
17471 Put a pointer to objects/custom/README.
17473 1999-10-17 Alexander Larsson <alla@lysator.liu.se>
17476 Updated version to 0.80
17479 Updated version to 0.80cvs
17481 1999-04-08 Alexander Larsson <alla@lysator.liu.se>
17483 * Released Dia 0.80
17484 Tag called DIA_0_80
17486 1999-10-17 Fredrik Hallenberg <hallon@lysator.liu.se>
17490 * objects/UML/Makefile.am
17491 * objects/ER/Makefile.am
17492 * objects/network/Makefile.am
17493 * objects/standard/Makefile.am
17494 * objects/FS/Makefile.am
17495 * objects/sybase/Makefile.am
17496 * objects/flowchart/Makefile.am
17497 * objects/custom/Makefile.am
17498 Added -I$(top_srcdir)/intl which is needed for
17499 --with-included-gettext.
17505 Updated swedish translation.
17507 1999-10-16 Alexander Larsson <alla@lysator.liu.se>
17510 Updated version number to 0.80.
17516 Updated. Moved bugs to KNOWN_BUGS.
17519 Updated with 0.80 release notes.
17521 1999-10-16 Alexander Larsson <alla@lysator.liu.se>
17524 For backwards compatibility, make sure handle 0 and 1 are the
17525 first and last handle. Fixes compatibility with 0.41, breaks
17526 compatibility with cvs version.
17527 Fixed bug in undo/redo of adding deleting endpoint segments
17528 when the endpoint was connected.
17529 Start OrthConn objects with three segments.
17531 1999-10-16 James Henstridge <james@daa.com.au>
17533 * objects/custom/custom_object.c (custom_update_data): changed
17534 resizing behaviour a bit so that shapes don't grow huge when you try
17535 to resize them to smaller than the size required by the text box.
17536 Also, now shapes will not grow with fixed aspect ratio when you enter
17537 text into them unless the shape has the fixed aspect ratio flag set.
17539 1999-10-15 James Henstridge <james@daa.com.au>
17541 * objects/flowchart/flowchart.c: add new shapes to flowchart sheet.
17543 * object/flowchart/pixmaps/...: corresponding pixmaps for new shapes.
17545 * objects/flowchart/magdrum.shape:
17546 * objects/flowchart/offlinestore.shape:
17547 * objects/flowchart/punchedtape.shape:
17548 * objects/flowchart/transmittape.shape:
17549 * objects/flowchart/punchedcard.shape: new shapes.
17551 * objects/flowchart/flowchart.c: add new shapes to flowchart sheet.
17553 * object/flowchart/pixmaps/...: corresponding pixmaps for new shapes.
17555 * objects/flowchart/collate.shape:
17556 * objects/flowchart/delay.shape:
17557 * objects/flowchart/extract.shape:
17558 * objects/flowchart/intstorage.shape:
17559 * objects/flowchart/magdisk.shape:
17560 * objects/flowchart/magtape.shape:
17561 * objects/flowchart/merge.shape:
17562 * objects/flowchart/or.shape:
17563 * objects/flowchart/sort.shape:
17564 * objects/flowchart/sumjunction.shape: new shapes.
17566 1999-10-15 Alexander Larsson <alla@lysator.liu.se>
17570 Entering an erronous command as print command
17573 * app/paginate_psprint.c:
17574 Save all print dialog values for next time.
17577 Remove custom lib from DIA_LIB_PATH.
17579 1999-10-14 James Henstridge <james@daa.com.au>
17581 * objects/flowchart/flowchart.c: add new shapes to flowchart sheet.
17583 * object/flowchart/pixmaps/...: corresponding pixmaps for new shapes.
17585 * objects/flowchart/offpageconn.shape:
17586 * objects/flowchart/manualop.shape:
17587 * objects/flowchart/preparation.shape:
17588 * objects/flowchart/manualinput.shape:
17589 * objects/flowchart/predefdproc.shape:
17590 * objects/flowchart/terminal.shape: new shapes in the flowchart sheet.
17592 1999-10-13 James Henstridge <james@daa.com.au>
17594 * app/diapagelayout.[ch]: added accessors to paper information. The
17595 widget should be just about complete now.
17597 * app/diapagelayout.[ch]: fleshed out the page setup widget a bit more.
17598 It actually does something now.
17600 1999-10-12 James Henstridge <james@daa.com.au>
17602 * app/pixmaps/portrait.xpm, app/pixmaps/landscape.xpm: support pixmaps
17603 for the page layout widget.
17605 * app/diapagelayout.[ch]: start of page layout widget. Not actually
17606 built yet as it is not complete.
17608 * objects/flowchart/flowchart.c: added new shapes to sheet.
17610 * objects/flowchart/display.shape:
17611 * objects/flowchart/transaction.shape: new shapes.
17613 * AUTHORS: added my name to the spec file.
17615 * dia.spec: include the dia desktop entry to the spec file.
17617 * Makefile.am: install the dia.desktop file.
17619 * dia.desktop: added a gnome desktop entry so you can start dia
17620 from the gnome panel menu.
17622 1999-10-11 James Henstridge <james@daa.com.au>
17624 * objects/custom/custom_object.c:
17625 * objects/custom/shape_info.c: warning fixes.
17627 * objects/flowchart/document.shape: a shape file for the `document'
17630 * lib/custom.h: new header with the custom shape prototypes.
17632 * app/app_procs.c: register custom objects as well.
17633 (register_objects_in): close shared libraries if they don't load
17634 correctly, and call g_module_make_resident on libraries that load
17637 * app/Makefile.am (dia_LDADD): added libcustom_objects.a to link list.
17639 * objects/custom/custom.c: removed get_version, added custom_ prefix
17640 to register_objects and register_sheets.
17642 * objects/custom/Makefile.am: converted to a normal library.
17644 1999-10-10 Alexander Larsson <alla@lysator.liu.se>
17646 * app/lineprops_area.c:
17647 * app/render_svg.c:
17649 * objects/custom/shape_info.c:
17650 * objects/flowchart/box.c:
17651 * objects/flowchart/diamond.c:
17652 * objects/flowchart/ellipse.c:
17653 * objects/flowchart/parallelogram.c:
17654 * objects/network/flash.c:
17655 * objects/network/scead-plug.c:
17656 * objects/sybase/client.c:
17657 Removed -Wall warnings.
17659 * objects/network/bus.c:
17660 Removed unused functions.
17662 * objects/FS/flow-ortho.c:
17663 * objects/FS/flow-poly.c:
17664 * objects/FS/flow.c:
17665 * objects/FS/function.c:
17667 Implemented "non-implemented" undo for FS objects.
17668 Now at least it won't crash.
17670 1999-10-10 Alexander Larsson <alla@lysator.liu.se>
17672 * objects/network/bus.c:
17674 Handles are now added and removed using the object menu.
17675 Default to 6 handles instead of 10.
17676 Changed name from "Standard - Bus" to "Network - Bus". Kept old
17677 name for backwards compatibility.
17679 * objects/network/network.c:
17680 Changed name from "Standard - Bus" to "Network - Bus". Kept old
17681 name for backwards compatibility.
17683 * app/properties.[ch]:
17685 Update properties in properties dialog if the shown object
17686 is part of and ObjectChange (undo or redo).
17689 Remove old known bugs list.
17691 * objects/UML/class_dialog.c:
17692 Removed debug printf's.
17694 1999-10-10 James Henstridge <james@daa.com.au>
17696 * objects/custom/custom.c (custom_object_load): new function that
17697 provides a nice entry point to the custom shape code for when it
17698 gets used by other libraries.
17700 * configure.in: removed 11 makefiles from AC_OUTPUT list. This
17701 speeds builds up a bit.
17703 * */Makefile.am (EXTRA_DIST): include pixmaps in distribution.
17704 (SUBDIRS): do not descend into pixmaps subdirs.
17706 * */pixmaps/Makefile.am: removed -- incorporate into parent makefiles.
17707 This speeds up build process.
17709 * objects/custom/custom.c (sheets): made variable static.
17711 * objects/custom/custom_util.[ch] (custom_get_relative_filename):
17714 * objects/custom/load_sheet.[ch] (custom_sheet_load): renamed function.
17716 * objects/custom/custom.c: look in ~/.shapes instead of
17717 ~/.dia_shapes as the per-user shapes directory.
17719 * app/preferences.c (prefs_save): save config to ~/.diarc.
17720 (prefs_load): load configuration from ~/.diarc. If the file
17721 does not exist, fallback on the old ~/.diarc location.
17723 * app/app_procs.c (create_user_dirs): create the ~/.dia directory
17725 (register_all_objects): look for user specific objects in
17726 ~/.objects rather than ~/.dia_libs.
17728 1999-10-10 Fredrik Hallenberg <hallon@lysator.liu.se>
17732 * objects/flowchart/box.c
17733 * objects/flowchart/ellipse.c
17734 * objects/flowchart/flowchart.c
17735 Use gmodule for dynamic linking. As gmodule is using
17736 RTLD_GLOBAL i had to change flowchart box and ellipse
17737 so the typenames doesn't conflict with the standard
17742 Use button box to make dialogs look better.
17744 1999-10-09 Alexander Larsson <alla@lysator.liu.se>
17746 * objects/UML/class_dialog.c:
17747 * objects/UML/class.h:
17748 Implemented undo for "UML - Class" objects.
17749 Not 100% tested yet.
17751 * objects/UML/classicon.c:
17752 * objects/UML/constraint.c:
17753 * objects/UML/dependency.c:
17754 * objects/UML/generalization.c:
17755 * objects/UML/implements.c:
17756 * objects/UML/large_package.c:
17757 * objects/UML/lifeline.c:
17758 * objects/UML/message.c:
17759 * objects/UML/object.c:
17760 * objects/UML/realizes.c:
17761 * objects/UML/state.c:
17762 * objects/UML/usecase.c:
17765 * lib/connectionpoint.h:
17768 1999-10-09 James Henstridge <james@daa.com.au>
17770 * objects/custom/*.[ch]: added copyright notices to custom object
17773 * shapes/Circuit/hdiode.shape:
17774 * shapes/Circuit/hzener.shape:
17775 * shapes/Circuit/opamp.shape:
17776 * shapes/Circuit/vdiode.shape:
17777 * shapes/Circuit/vzener.shape: made adjustments to make the circuit
17778 shapes look nice after the custom shape code changes.
17780 * objects/custom/README: updated docs to cover changes to drawing
17783 * objects/custom/custom_object.c (custom_draw): honour the line
17784 properties when drawing the shape.
17786 * objects/custom/shape_info.[ch]: added support for setting line
17787 properties for individual drawing elements in a custom shape. You
17788 can set the dash style, dash length, cap style and join style.
17790 1999-10-07 James Henstridge <james@daa.com.au>
17792 * objects/custom/shape_info.c (parse_style): added a few extra synonyms
17793 for foreground and background.
17795 * objects/custom/custom_object.c (custom_draw): use the new style
17796 information when drawing the object.
17798 * objects/custom/shape_info.[ch]: store all shape style info in the
17799 GraphicStyle structure. This makes adding support for extra CSS
17800 attributes easier -- we don't have to keep adding extra arguments to
17801 a lot of functions.
17803 1999-10-05 James Henstridge <james@daa.com.au>
17805 * lib/intl.c (unalias_lang): merged in changes from the i18n code
17806 swiped from gnome-libs.
17808 1999-10-03 Alexander Larsson <alla@lysator.liu.se>
17810 * objects/standard/image.c (get_directory):
17811 Fix memleak. Found by Kjartan Maraas <kmaraas@online.no>
17813 1999-09-28 Alexander Larsson <alla@lysator.liu.se>
17815 * lib/poly_conn.c (polyconn_destroy):
17816 Fix bug. Access of freed memory.
17817 Rememeber, you can't free the handles of an object
17818 before calling object_destroy(), as it unconnects the handles
17819 therefore referencing them.
17821 1999-09-28 Alexander Larsson <alla@lysator.liu.se>
17824 undo_clear() didn't set stack->depth to zero.
17825 This made other undo functions crash after this had been called
17829 Slightly modified by Chris Love <clove@exactis.com>
17831 1999-09-19 Alexander Larsson <alla@lysator.liu.se>
17833 * objects/UML/class.h:
17834 * objects/UML/class_dialog.c:
17835 Retrun NULL ObjectChange on class property change.
17836 This means no crashes, but "UML - Class" doesn't support undo yet.
17838 1999-09-19 Alexander Larsson <alla@lysator.liu.se>
17843 * objects/UML/classicon.c:
17844 * objects/UML/dependency.c:
17845 * objects/UML/generalization.c:
17846 * objects/UML/implements.c:
17847 * objects/UML/large_package.c:
17848 * objects/UML/lifeline.c:
17849 * objects/UML/message.c:
17850 * objects/UML/object.c:
17851 * objects/UML/realizes.c:
17852 * objects/UML/state.c:
17853 * objects/UML/usecase.c:
17854 Update to new undo (w. get/set_state).
17855 Add object menu to add/delete segments.
17857 1999-09-17 Alexander Larsson <alla@lysator.liu.se>
17860 Add equal distance alignment.
17862 * app/object_ops.c:
17863 Add equal distance alignment.
17864 Fix bug in adjacent alignment.
17866 1999-09-16 Alexander Larsson <alla@lysator.liu.se>
17868 * objects/UML/constraint.c:
17869 Update to new undo (w. get/set_state).
17871 1999-09-15 Alexander Larsson <alla@lysator.liu.se>
17873 * app/paginate_psprint.c:
17874 Save (parts, more todo) of the info in the print dialog to the
17875 next time it's opened.
17876 Patch from Yo Ric Dude <ricdude@toad.net>
17878 1999-09-14 Alexander Larsson <alla@lysator.liu.se>
17881 Updated version string to 0.41cvs.
17883 * objects/UML/assocition.c:
17884 Update to new undo (w. get/set_state).
17885 Add object menu to add/delete segments.
17888 Added function debug_break() and called it after all
17889 objects and sheets are loaded. Place a breakpoint here if you
17890 want to debug objects. All symbols should be loaded.
17892 1999-09-12 James Henstridge <james@daa.com.au>
17894 * app/menus.c (display_menu_items): added print menu item.
17895 (filemenu): always add print menu item -- even if gnome-print is
17898 * app/commands.h, app/commands.c (file_print_callback): the print
17899 menu item is now available for both gnome-print and non gnome-print
17902 * app/paginate_psprint.c (diagram_print_ps): show a dialog to let you
17903 print with the non gnome-print driver.
17905 1999-09-11 James Henstridge <james@daa.com.au>
17907 * app/paginate_gnomeprint.c (diagram_print_gnome): moved the gnome
17908 printer dialog code out of commands.c.
17910 * app/paginate_psprint.c: new file containing the pagination code for
17913 * app/render_eps.c: made a few modifications so as well as producing
17914 EPS files, this renderer can be set up to do postscript printing.
17915 This basically entailed adding an extra function to create a RenderEPS
17916 renderer which did not bother setting the viewport for the document.
17917 That was left for the pagination code.
17919 1999-09-10 James Henstridge <james@daa.com.au>
17921 * app/render_gnomeprint.c (draw_ellipse, fill_ellipse): since
17922 gnome-print does not support elliptic arcs at the moment, approximate
17923 the ellipse with eight bezier curves. This gives a pretty good
17924 match to a true ellipse.
17926 1999-09-09 James Henstridge <james@daa.com.au>
17928 * app/commands.c (file_gnome_print_callback): added support for
17929 scaling the diagram. Also fixed a few other bugs.
17931 * app/paginate_gnomeprint.c (print_page): added ability to scale
17932 document. Fixed up test to see if the page has no objects on it.
17933 This should prevent some blank pages being printed. Non square
17934 objects such as lines could still cause problems.
17936 1999-09-08 James Henstridge <james@daa.com.au>
17938 * app/commands.c (file_gnome_print_callback): changed from using the
17939 standard printer selection dialog to one that also has a paper size
17942 * commands.[ch]: added callbacks for the print menu item. Currently
17943 it only does A4 output. I will make it configurable soon.
17945 * app/menus.c: add a print diagram menu item if gnome-print support
17948 * app/paginate_gnomeprint.c, app/paginate_gnomeprint.h: this is a
17949 bit higher level than the gnome-print renderer. It splits the
17950 diagram into page size chunks and then renders them. For each
17951 page, it only renders the objects whose bounding box intersects
17952 the page, and it sets the clip mask so that the diagram does not
17953 overlap the margins.
17955 * app/render_gnomeprint.c, app/render_gnomeprint.h: added a renderer
17956 that uses gnome-print as its back end.
17958 * configure.in: added a check for gnome-print. It is disabled by
17959 default because the code is not really working correctly yet.
17961 * app/menus.c: the delete object menu item was missing from the
17962 GnomeUIInfo style menus.
17964 1999-09-07 Fredrik Hallenberg <hallon@lysator.liu.se>
17967 Added japanese to ALL_LINGUAS.
17968 Fix for Linux on Alpha.
17970 1999-09-07 Alexander Larsson <alla@lysator.liu.se>
17972 * app/create_object.c (create_object_button_press):
17973 Always initialize tool->obj. Otherwise we store a null
17974 in the undo Change.
17977 Set linestyle before drawing cursor.
17978 Fix undo of backwards delete.
17980 1999-09-05 James Henstridge <james@daa.com.au>
17982 * dia.spec: updated spec file to distribute $(prefix)/share/dia.
17984 * app/render_svg.c (draw_image): some fixes so that the appropriate
17985 style attributes are set. Before it was setting line styles on
17986 fill_* functions. Now it only does this for the draw_* variants.
17988 * app/Makefile.am (run_dia.sh): set the DIA_SHAPE_PATH environment
17989 variable so that custom shapes can be loaded.
17991 * shapes/: new directory for custom shapes. The Circuit sheet has
17994 1999-09-02 James Henstridge <james@daa.com.au>
17996 * TODO: removed a few todo items that have been implemented.
17998 * app/interface.c (create_sheets): enabled the popup page menu to the
17999 notebook. This can make it easier to select different sheets.
18001 * object/custom/Circuit/: added diode, zener diode, ground point and
18002 operational amplifier shapes.
18004 * objects/custom/Makefile.am: added a note about adding DEBUG_CUSTOM
18005 if you want the output.
18007 * objects/custom/shape_info.c (parse_path): same here.
18009 * objects/custom/load_sheet.c (load_with_readdir): don't print so
18010 much debugging output. To get the previous level of output, define
18013 * objects/custom/shape_info.c (parse_svg_node): polygons were being
18014 recorded as polylines in the ShapeInfo structure.
18016 * objects/custom/README: some notes on writing new custom shapes.
18018 1999-09-01 James Henstridge <james@daa.com.au>
18020 * objects/custom/Circuit/hinductor.*:
18021 * objects/custom/Circuit/vinductor.*: added inductor shapes that
18022 also test out the bezier curve and SVG path support.
18024 * objects/custom/custom_object.c (custom_draw): added support for
18025 drawing bezier paths and filled shapes.
18027 * objects/custom/shape_info.c (parse_path): new function to parse
18028 SVG path elements. It does not do quadratic beziers or elliptic
18029 arcs though. Only moves, lines and cubic beziers.
18030 (*): added support for paths.
18032 1999-08-31 James Henstridge <james@daa.com.au>
18034 * objects/sybase/ltm.c (render_to_store): use the newer bezier API.
18036 * app/render_svg.c (draw_bezier, fill_bezier): updated renderer
18039 * app/render_eps.c (draw_bezier, fill_bezier): updated renderer
18042 * app/render_gdk.c (draw_bezier, fill_bezier): updated renderer
18045 * lib/render_store.[ch]: use newer bezier functions.
18047 * lib/render.h: changed the bezier drawing functions to use an array
18048 of BezPoint structures instead of normal Point structures to allow
18049 lineto's mixed in with the curveto's.
18051 * objects/custom/Circuit/pnp.*: added pnp transistor shape.
18053 * objects/custom/Circuit/Makefile.am (SHAPES): added index.sheet and
18054 xpm images for different shapes to Makefile.
18056 * objects/custom/custom_object.c (custom_object_new): set the icon
18057 for the sheet button if there is one. Otherwise fall back on the
18058 default custom object icon.
18060 * objects/custom/shape_info.c (load_shape_info): read the sheet
18061 icon name from the shape file.
18063 * app/interface.c (create_sheet_page): if sheet_obj->pixmap == NULL,
18064 check the pixmap_file field for the name of a pixmap file to load
18067 * lib/sheet.h (SheetObj): added pixmap_file field to structure. It is
18068 at the end of the structure, and it isn't used if the pixmap field
18069 is non NULL, so it should not break binary compatibility.
18071 * objects/custom/load_sheet.[ch]: moved sheet loading code here. Also
18072 added support for the use of an index.sheet file so you can specify
18073 the ordering of the shapes in the sheet, and also internationalise
18074 the sheet name and actually be able to give a description. The old
18075 readdir based sheet loading code acts as a fallback if an index.sheet
18076 file can not be found.
18078 * objects/custom/custom_util.[ch]: new file containing useful routines
18079 needed by the custom object code. Currently only contains a simple
18080 routine for resolving relative paths.
18082 * objects/custom/custom_object.c (custom_draw): fixed problem with
18083 drawing rectangles if the shape has been flipped.
18085 1999-08-30 James Henstridge <james@daa.com.au>
18087 * objects/custom/custom_object.c (custom_get_object_menu): allow
18088 flipping of custom shapes. This uses the miggle click object
18091 * objects/custom/Circuit/npn.shape: fix aspect ratio.
18093 * objects/custom/custom_object.c (custom_update_data): honour the
18094 aspect ratio constraints.
18096 * objects/custom/shape_info.c (load_shape_info): updated aspect ratio
18097 tag parsing, so you can specify a free, fixed or a range for aspect
18098 ratios for the shape.
18100 1999-08-29 James Henstridge <james@daa.com.au>
18102 * objects/custom/test.xml, objects/custom/Circuit/*.shape: fixed
18103 up shape namespace tag.
18105 * objects/custom/shape_info.c (load_shape_info): check xml:lang
18106 attribute on <description> elements to support i18n for custom
18107 shape descriptions.
18108 Also changed the shape namespace for custom shapes to something
18109 a little more sensible.
18111 * lib/dummy_dep.h (dummy_dep): added extra dummy dependency.
18113 * lib/intl.c: new file containing some functions for i18n stuff.
18115 * app/layer_dialog.c (create_button_box): fixed a warning.
18117 * objects/custom/custom_object.c: use current line style. Save dash
18120 * objects/flowchart/diamond.c: use current line style. Save dash
18123 * objects/flowchart/parallelogram.c: use current line style. Save
18126 * objects/flowchart/ellipse.c: use current line style. Save dash
18129 * objects/flowchart/box.c: use current line style. Save dash length.
18131 * objects/standard/ellipse.c: make ellipse use current line style.
18133 * objects/standard/box.c: use the line style set in the toolbox for
18134 new boxes, and remember the dash length.
18136 * app/commands.c (view_toggle_rulers_callback): fix reshowing of
18139 1999-08-24 James Henstridge <james@daa.com.au>
18141 * objects/flowchart/ellipse.c (ellipse_update_data): made some changes
18142 to try to stop ellipse to get infinite width/height when we resize,
18143 while trying to keep the text inside the ellipse.
18145 * objects/flowchart/box.c, objects/flowchart/parallelogram.c,
18146 * objects/flowchart/diamond.c, objects/flowchart/ellipse.c: fixed
18147 resizing behaviour, so that you can't push objects round the screen
18148 with the resize handles.
18150 * app/lineprops_area.c (dia_arrow_chooser_init, dia_line_chooser_init):
18151 get the OK buttons in the dialogs to take default clicks.
18153 * objects/custom/custom_object.c: added code so that resizing the
18154 shape does not end up pushing it round the screen.
18156 1999-08-23 Alexander Larsson <alla@lysator.liu.se>
18158 * app/display.[ch]:
18159 Generate rectangle with the union of the damaged regions.
18160 This is used to optimize the grid paint and the object rendering.
18161 display_render_pixmap passes this info to grid_draw() and data_render().
18164 grid_draw doesn't draw grid lines outside of damaged rectangle.
18165 Sets dashlength when drawing non-solid grid.
18167 * lib/diagramdata.[ch]:
18168 data_render() and layer_render() takes an optional damaged rectangle
18169 argument. No objects not intersecting this are drawn.
18173 Call data_render with NULL update rectangle.
18175 1999-08-23 James Henstridge <james@daa.com.au>
18177 * objects/custom/custom_object.c (custom_update_data): if the aspect
18178 ratio is fixed, make sure the shape is not distorted.
18180 * object/custom/shape_info.h, objects/custom/shape_info.c: notice if
18181 a <fixaspectratio/> tag is given in the shape file.
18183 * objects/custom/shape_info.[ch], objects/custom/custom_object.c:
18184 added support for stroke-width, stroke and fill CSS attributes
18185 specified in style attributes of the SVG elements. The line width
18186 is relative to the user specified line width. The stroke and fill
18187 attributes can only be used to swap the foreground/background
18190 * lib/widgets.c (dia_line_style_selector_set_linestyle): set the
18191 sensitivity on the dash length selector when this function is called.
18193 * objects/standard/arc.c: same. Also handle dash length.
18194 * objects/standard/zigzagline.c: same.
18195 * objects/standard/polyline.c: same. Also handle dash length.
18196 * objects/standard/line.c: use default arrow/line styles.
18198 * app/interface.c: added callbacks to set the default attributes.
18200 * lib/attributes.c: added implementations of these functions.
18202 * lib/attributes.h: added extra prototypes for the new line properties
18203 area in the toolbox.
18205 * app/interface.c (create_lineprops_area): added line properties
18206 area to bottom of toolbox.
18208 * app/lineprops_area.h: a header exporting a few routines of the
18209 line properties area widgets.
18211 * app/lineprops_area.c: new file containing a selector for arrows
18212 and line styles to go in the main toolbox.
18214 1999-08-22 Alexander Larsson <alla@lysator.liu.se>
18217 Update Gtk+ 1.0.5 comment to 1.2.0.
18226 Make sure we don't propagate -ldl and -lpopt to all LIBS
18227 by adding new var APP_LIBS that only app/dia links with.
18230 Update run_dia.sh to load custom and flowchart objects.
18232 * objects/ER/Makefile.am:
18233 * objects/FS/Makefile.am:
18234 * objects/UML/Makefile.am:
18235 * objects/network/Makefile.am:
18236 * objects/standard/Makefile.am:
18237 * objects/sybase/Makefile.am:
18238 Don't build versioned libs.
18240 1999-08-22 James Henstridge <james@daa.com.au>
18242 * configure.in: added objects/custom/Circuit/Makefile to AC_OUTPUT
18245 * objects/Makefile.am (SUBDIRS): added custom to subdir list -- it
18246 should actually work a bit now.
18248 * objects/custom/Circuit/*: a test sheet for the custom shape code.
18249 It is a small collection of circuit elements.
18251 * objects/custom/shape_info.c: fixed up loading of polylines and
18252 polygons. Before it was removing negative signs :(
18254 * objects/custom/pixmaps/custom.xpm: drew the custom shape icon. A
18255 placeholder was here before. I still need to work out how to set
18256 icons for individual custom shapes.
18258 * objects/custom/custom.c: added code to load the shapes into sheets
18259 properly. The shape files should be arranged into directories, and
18260 each directory represents a different sheet in the toolbox. This
18261 will make it very easy to distribute a collection of dia shapes as
18262 a tarball. I still need to work out internationalisation, and maybe
18263 also shape ordering in the sheet.
18265 * objects/custom/custom_object.c: fixed up dialogs for these objects.
18266 (custom_create): fix for objects without text areas.
18268 * objects/custom/shape_info.h, objects/custom/custom_object.c: loading
18269 and saving of custom object works correctly now.
18271 1999-08-21 James Henstridge <james@daa.com.au>
18273 * objects/flowchart/ellipse.c:
18274 * objects/flowchart/diamond.c:
18275 * objects/flowchart/parallelogram.c:
18276 * objects/flowchart/box.c: Fixed up a few bugs in these objects when
18277 copying or loading these object types. Not all the connection
18278 points would be initialised correctly.
18280 * objects/flowchart/Makefile.am (libflowchart_objects_la_LDFLAGS):
18283 * objects/custom/Makefile.am (libcustom_objects_la_LDFLAGS): do not
18284 build a versioned library. It will only ever be dlopen'd, so this
18287 * objects/custom/custom_object.c (custom_distance_from): allow
18288 selecting the object by clicking on the text. This fixes problems
18289 where the text box is outside the graphic.
18291 * objects/custom/shape_info.c (load_shape_info): fixed up reading
18292 of connections points. It should be possible to add connections
18293 to custom objects now.
18295 * objects/custom/custom_object.c (custom_update_data): fixed resizing
18296 due to changes to text.
18298 * configure.in: added extra makefiles.
18300 * objects/custom/shape_info.[ch]:
18301 * objects/custom/custom_object.c:
18302 * objects/custom/custom.c: the starts of custom shape support in dia.
18303 This is not built by default at the moment, since it is not quite
18304 complete. When it is, it will let you create more shapes for dia
18305 without writing a line of C. Its implementation includes buzzwords
18306 such as XML and SVG, so it must be good :)
18308 1999-08-19 Karsten Weiss <karsten@addx.au.s.shuttle.de>
18310 * app/app_procs.c (app_exit): Use button labels "Quit" and
18311 "Cancel" instead of "Yes" and "No".
18312 Set default action to "Cancel" instead of "Quit".
18314 1999-08-19 James Henstridge <james@daa.com.au>
18316 * objects/flowchart/flowchart.c: added ellipse object.
18318 * objects/flowchart/ellipse.c: a new shape for the flowchart toolbox.
18320 1999-08-18 James Henstridge <james@daa.com.au>d
18322 * app/color_area.c (color_area_edit): small fix to prevent dia from
18323 segfaulting when you try to change the default foreground/background.
18325 1999-08-17 Alexander Larsson <alla@lysator.liu.se>
18327 * app/diagram.[ch] (diagram_redraw_all):
18328 Added function that redraws all diagrams.
18330 * app/preferences.c (prefs_apply):
18331 Call diagram_redraw_all when prefs are changed.
18333 * app/render_svg.c:
18334 Don't use xmlEncodeEntitiesReentrant(). It doesn't exist on
18335 older libxml's, and the old version works good enought here.
18337 1999-08-17 James Henstridge <james@daa.com.au>
18339 * lib/widgets.c: changed handlers that were connected to the GtkButton
18340 "pressed" signal to connect to the "clicked" signal. This removes the
18341 problem where dialogs are inactive until you click a mouse button
18342 after using a colour selector.
18344 * configure.in: added extra makefiles to AC_OUTPUT list.
18346 * objects/Makefile.am (SUBDIRS): added flowchart module
18348 * objects/flowchart/*: a collection of shapes for use in flowcharts.
18350 * app/color_area.c (color_area_events): similar here.
18352 * app/linewidth_area.c (linewidth_area_events): sometimes a configure
18353 event is recieved with event->width == 0, which causes a warning if we
18354 try to create a pixmap of that width.
18356 * app/preferences.c, app/preferences.h, app/grid.c: added code to
18357 allow you to configure the colour of the grid, and also lets you
18358 set the grid to use dotted lines instead of solid ones.
18360 * app/commands.c, app/commands.h, app/diagram.c, app/diagram.h,
18361 app/menus.c, app/Makefile.am: added menu entry for exporting SVG files.
18363 * app/render_svg.h, app/render_svg.c: an SVG (Scalable Vector Graphics)
18364 export filter. It is not quite complete, but for most shapes it
18365 works as expected. Fonts still need a bit of work.
18367 1999-08-11 Robert Brady <rwb197@ecs.soton.ac.uk>
18369 * configure.in: Added "en_GB" to ALL_LINGUAS.
18371 1999-08-04 Fredrik Hallenberg <hallon@lysator.liu.se>
18374 Added Undo and Redo to GNOME menus.
18376 * objects/ER/attribute.c:
18377 * objects/ER/entity.c:
18378 * objects/ER/participation.c:
18379 * objects/ER/relationship.c:
18380 Added get/set_state functions.
18382 * objects/ER/participation.c:
18383 Added add/delete segment.
18386 Updated Swedish translation.
18388 1999-07-25 Alexander Larsson <alla@lysator.liu.se>
18390 * app/preferences.[hc]:
18391 Added undo_depth pref.
18394 Never grow stack larger than pref.undo_depth.
18395 undo_depth == 0 means unlimited.
18396 Converted printfs to conditionally compiled DEBUG_PRINTFs.
18398 1999-07-25 Alexander Larsson <alla@lysator.liu.se>
18403 * lib/render_object.c:
18404 * objects/ER/attribute.c:
18405 * objects/ER/entity.c:
18406 * objects/ER/participation.c:
18407 * objects/ER/relationship.c:
18408 * objects/FS/flow-ortho.c:
18409 * objects/FS/flow-poly.c:
18410 * objects/FS/flow.c:
18411 * objects/FS/function.c:
18412 * objects/UML/actor.c:
18413 * objects/UML/association.c:
18414 * objects/UML/class.c:
18415 * objects/UML/classicon.c:
18416 * objects/UML/component.c:
18417 * objects/UML/constraint.c:
18418 * objects/UML/dependency.c:
18419 * objects/UML/generalization.c:
18420 * objects/UML/implements.c:
18421 * objects/UML/large_package.c:
18422 * objects/UML/lifeline.c:
18423 * objects/UML/message.c:
18424 * objects/UML/note.c:
18425 * objects/UML/object.c:
18426 * objects/UML/realizes.c:
18427 * objects/UML/small_package.c:
18428 * objects/UML/state.c:
18429 * objects/UML/usecase.c:
18430 * objects/network/bus.c:
18431 * objects/standard/arc.c:
18432 * objects/standard/box.c:
18433 * objects/standard/ellipse.c:
18434 * objects/standard/image.c:
18435 * objects/standard/line.c:
18436 * objects/standard/polyline.c:
18437 * objects/standard/textobj.c:
18438 * objects/standard/zigzagline.c:
18439 Removed all traces of is_empty(). It doesn't work in an
18442 1999-07-25 Alexander Larsson <alla@lysator.liu.se>
18447 Undoable grouping and ungrouping.
18449 * app/layer_dialog.c:
18450 * lib/diagramdata.[ch]:
18451 Undoable layer ops.
18453 * app/modify_tool.c:
18454 Undoable unconnect on handle move.
18456 * lib/orth_conn.[ch]:
18457 Working undoable add/remove segment.
18458 Removed endpoint_handles from OrthConn, renamed
18459 midpoint_handles to handles and put the endpoint
18462 * objects/standard/zigzagline.c:
18463 * objects/ER/participation.c:
18464 * objects/UML/association.c:
18465 * objects/UML/dependency.c:
18466 * objects/UML/generalization.c:
18467 * objects/UML/realizes.c:
18468 Update for the changes in OrthConn
18470 1999-07-23 Karsten Weiss <karsten@addx.au.s.shuttle.de>
18472 * configure.in: Added "de" to ALL_LINGUAS.
18474 1999-07-17 Alexander Larsson <alla@lysator.liu.se>
18486 Don't have the <Display> etc part of the menu strings
18487 i18n:ed. Patch from Fabrice.Bellet@imag.fr.
18490 Don't have the <Display> etc part of the menu strings
18491 i18n:ed. Patch from Fabrice.Bellet@imag.fr.
18492 Don't remove is_empty() objects, that don't work with undo.
18494 * lib/objchange.[ch]:
18496 Definition of ObjectChange. This is essentially an Change
18497 exported to the object libs. It encapsulates a change made
18498 to an objects internals. It can be applied, reverted and freed.
18499 There are also utility functions for doing ObjectChanges that
18500 only get/set the whole state of an object to store the change.
18501 This cannot be used when the object change deletes or adds a
18502 object which has references from other objects, eg. Handles which
18503 might be connected.
18506 Added objchange.c and objchange.h.
18509 Return NULL when loading fails.
18512 Menu callbacks return an ObjectChange.
18515 Reference objchange.o
18518 Key events return ObjectChange if they modify the object.
18522 Added object_add_handle_at() function.
18523 Apply properties returns an ObjectChange.
18524 Remove ObjectState and the get/set state functions, these
18525 don't always work. Use the new ObjectChange instead.
18528 Added object_add_handle_at() function implementation.
18530 * lib/orth_conn.[ch]:
18531 Use ObjectChange. Not finished yet.
18532 Removed get/set/free state functions
18534 * lib/poly_conn.[ch]:
18536 Don't remove segments that are small.
18537 Removed get/set/free state functions
18541 Added functions to get/set all text attributes.
18543 * objects/standard/arc.c:
18544 * objects/standard/box.c:
18545 * objects/standard/ellipse.c:
18546 * objects/standard/image.c:
18547 * objects/standard/line.c:
18548 * objects/standard/polyline.c:
18549 * objects/standard/textobj.c:
18550 * objects/standard/zigzagline.c:
18552 fixed bug in image_set_state.
18553 zigzagline.c not finished yet.
18555 * app/disp_callbacks.c:
18556 Use ObjectChange that are returned from menu callbacks and
18557 key_events for undo.
18559 * app/properties.c:
18560 Use ObjectChange that are returned from properties apply
18565 New undo type: ObjectChangeChange. This wraps a change to the
18566 internals of an object (and ObjectChange) in code that does
18567 app specific stuff (object_add_updates etc.)
18569 1999-07-11 Alexander Larsson <alla@lysator.liu.se>
18571 * lib/orth_conn.[ch]:
18572 Added code for add/delete segment.
18574 * objects/standard/zigzagline.c:
18575 Use the new orth_conn code.
18578 1999-07-08 Fredrik Hallenberg <hallon@lysator.liu.se>
18580 * objects/FS/Makefile.am
18581 Removed fs.h from sources.
18587 1999-07-07 Alexander Larsson <alla@lysator.liu.se>
18589 * app/disp_callbacks.c (ddisplay_canvas_events):
18590 Fix for bug. Every other arrow-key press got lost.
18591 patch from Mr. Data Esq. <data@r47h102.res.gatech.edu>
18594 change automake.sh to autogen.sh
18596 1999-06-24 Alexander Larsson <alla@lysator.liu.se>
18599 Don't remove 'empty' objects.
18600 This violent destruction of objects won't work
18601 with the new undo framework.
18603 * app/disp_callbacks.c:
18604 Save undo info for object menu calls and key_events.
18606 * app/properties.c:
18607 Save undo info on properties apply.
18609 * lib/dia_image.[ch]:
18610 Add refcounting for images.
18612 * app/render_eps.c:
18613 * app/render_gdk.c:
18615 DiaImage * -> DiaImage
18618 Add undo functions for object state changes.
18622 change of semntics for focus->key_event.
18623 Now returns TRUE if the object recieving the event
18629 * lib/orth_conn.[ch]:
18630 Don't automatically create and delete segments when
18631 handles are moved. This is incompatible with undo.
18632 Added state get, set and free functions.
18634 * lib/orth_conn.[ch]:
18635 Added state get, set and free functions.
18637 * objects/UML/object.c:
18638 * objects/UML/uml.c:
18639 Fixed typo "UML - Objet" -> "UML - Object".
18640 Saved old for backwards compatibility.
18642 * objects/standard/arc.c:
18643 * objects/standard/box.c:
18644 * objects/standard/ellipse.c:
18645 * objects/standard/image.c:
18646 * objects/standard/line.c:
18647 * objects/standard/polyline.c:
18648 * objects/standard/textobj.c:
18649 * objects/standard/zigzagline.c:
18650 Added get/set state functions.
18651 Textobj has a redo crash-bug.
18652 Zigzagline needs object menus to add segments.
18655 1999-06-20 Alexander Larsson <alla@lysator.liu.se>
18657 * app/render_eps.c (set_dashlength):
18658 Don't generate eps files with zero dash-length.
18660 1999-06-16 Alexander Larsson <alla@lysator.liu.se>
18663 * app/create_object.c:
18665 Finished undo for create and paste.
18668 Started properties undo.
18670 1999-06-14 Alexander Larsson <alla@lysator.liu.se>
18673 Added resizeable groups.
18676 Removed unused variable.
18680 Undo/redo for cut/delete done.
18682 * app/create_object.c:
18683 * app/modify_tool.c:
18684 * lib/diagramdata.[ch]:
18685 * app/diagram.[ch]:
18686 renamed diagram_add_selected -> diagram_select
18687 renamed diagram_remove_selected -> diagram_unselect
18689 * app/properties.[ch]:
18690 Added properties_hide_if_shown() function.
18692 1999-06-13 Alexander Larsson <alla@lysator.liu.se>
18698 * app/commands.[ch]
18699 * app/modify_tool.[ch]
18700 * app/object_ops.[ch]
18701 * app/connectionpoint_ops.c
18703 Use undo functions.
18704 WARNING: Not finished. Will break.
18705 Finished: move object, move handle.
18708 Added diagram_selected_break_external() function.
18709 It removes all connections between selected objects
18711 Add undo stack to Diagram.
18713 * lib/diagramdata.[ch]
18714 Added layer_remove_objects() function
18716 1999-06-11 Fredrik Hallenberg <hallon@lysator.liu.se>
18718 * objects/FS/Makefile.am
18719 * objects/sybase/Makefile.am
18720 Now uses GNOME_CFLAGS.
18723 Now compiles with GNOME even if popt.h isn't available.
18725 1999-06-10 Alexander Larsson <alla@lysator.liu.se>
18728 * objects/Makefile.am
18730 First version of sybase objects from
18731 Brian Bruns <camber@umcc.ais.org>
18733 1999-06-10 Fredrik Hallenberg <hallon@lysator.liu.se>
18736 Added fr to ALL_LINGUAS
18738 1999-06-09 Fredrik Hallenberg <hallon@lysator.liu.se>
18742 Popt-code is activated if popt is available.
18744 1999-06-08 Alexander Larsson <alla@lysator.liu.se>
18746 This is a patch from David Thompson <dcthomp@mail.utexas.edu>
18748 * lib/orth_conn.[ch]:
18749 Added orthconn_get_middle_handle()
18752 Added text_set_cursor_at_end()
18755 Added first version of functions structure diagrams.
18757 1999-05-24 Alexander Larsson <alla@lysator.liu.se>
18759 * app/modify_tool.c:
18760 Include math.h to remove warning.
18762 * app/commands.c (dialogs_properties_callback):
18763 Bring up correct properties dialog when selected
18765 From Dan Cohn <dan@internap.com>
18767 1999-05-20 Alexander Larsson <alla@lysator.liu.se>
18769 Patch from Lars R. Clausen
18771 * app/modify_tool.c:
18772 Changed abs to fabs.
18774 1999-05-19 Alexander Larsson <alla@lysator.liu.se>
18780 1999-05-18 Alexander Larsson <alla@lysator.liu.se>
18782 Patches from Dan Cohn <dan@internap.com>
18784 * app/commands.[ch]:
18785 * app/display.[ch]:
18787 * app/preferences.[ch]:
18788 Implements ability to turn on/off connection points in
18789 current drawing and in global prefs.
18791 1999-05-18 Alexander Larsson <alla@lysator.liu.se>
18793 * lib/widgets.c (dia_line_style_selector_init):
18796 * lib/diagramdata.c (layer_update_extents):
18797 Fixed uninitialized variable error.
18799 1999-05-17 Alexander Larsson <alla@lysator.liu.se>
18802 Made some changes to the gdk_imlib visual+colormap setup.
18804 1999-05-17 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
18806 * objects/UML/usecase.c:
18807 * objects/UML/lifeline.c
18810 * objects/UML/object.c:
18811 * objects/UML/message.c:
18812 Changed font from Courier to Helvetica.
18816 Added dash lenth to the LineStyle widget.
18818 * objects/standard/ellipse.c :
18819 * objects/standard/zigzagline.c:
18820 * objects/standard/line.c:
18821 Added dash lenght property.
18823 1999-05-16 Alexander Larsson <alla@lysator.liu.se>
18825 * app/render_eps.c:
18826 First shot at latin1 encoded eps files.
18827 Works, but the eps files get a bit large.
18829 1999-05-16 Alexander Larsson <alla@lysator.liu.se>
18831 * objects/UML/class.[ch]:
18832 * objects/UML/uml.[ch]:
18833 Reverted the line wrap changes.
18834 Some day this might return, but it has to be selectable and
18835 default to off for loaded objects, otherwise it breaks file
18836 format compatibility.
18837 There was also some complains about how it looked, so a making it
18838 selectable is good for this too.
18840 1999-05-15 Alexander Larsson <alla@lysator.liu.se>
18842 * objects/UML/class.[ch]:
18843 Some indentation cleanup.
18844 Added wrap_lines variable to class.
18845 I'll fix the line break stuff tomorrow.
18847 1999-05-13 Alexander Larsson <alla@lysator.liu.se>
18850 Added ref to poly_conn.o.
18852 * objects/standard/polyline.c (polyline_draw):
18853 * objects/standard/zigzagline.c (zigzagline_draw):
18854 * objects/standard/arc.c (arc_draw):
18855 * objects/standard/line.c (line_draw):
18856 Draw lines before arrows. This makes hollow arrows not
18859 1999-05-13 Alexander Larsson <alla@lysator.liu.se>
18861 Changes from Kim Peasley <kpeasley@ior.com>
18863 * objects/UML/class.c:
18864 Break lines with long operations so classes won't be
18867 * objects/UML/uml.[ch]:
18868 Helperfunctions for the above.
18870 * objects/UML/objects.c:
18871 Fix bug that duplicated the text in the attributes
18872 textwidget each time the object was selected.
18874 1999-05-12 Alexander Larsson <alla@lysator.liu.se>
18876 Changes from Lars R. Clausen <lrclause@cs.uiuc.edu>
18878 * app/modify_tool.c:
18879 * app/modify_tool.h:
18880 Control-drag is restricted to vertical/horizontal movement
18883 ModifierKeys argument added to object_move_handle
18885 * app/connectionpoint_ops.c:
18886 * app/create_object.c:
18887 * app/object_ops.c:
18888 * objects/ER/attribute.c:
18889 * objects/ER/entity.c:
18890 * objects/ER/participation.c:
18891 * objects/ER/relationship.c:
18892 * objects/UML/actor.c:
18893 * objects/UML/association.c:
18894 * objects/UML/class.c:
18895 * objects/UML/classicon.c:
18896 * objects/UML/component.c:
18897 * objects/UML/constraint.c:
18898 * objects/UML/dependency.c:
18899 * objects/UML/generalization.c:
18900 * objects/UML/implements.c:
18901 * objects/UML/large_package.c:
18902 * objects/UML/lifeline.c:
18903 * objects/UML/message.c:
18904 * objects/UML/note.c:
18905 * objects/UML/object.c:
18906 * objects/UML/realizes.c:
18907 * objects/UML/small_package.c:
18908 * objects/UML/state.c:
18909 * objects/UML/usecase.c:
18910 * objects/network/bus.c:
18911 * objects/standard/arc.c:
18912 * objects/standard/box.c:
18913 * objects/standard/ellipse.c:
18914 * objects/standard/image.c:
18915 * objects/standard/line.c:
18916 * objects/standard/polyline.c:
18917 * objects/standard/textobj.c:
18918 * objects/standard/zigzagline.c:
18919 Changed calls to move_handle to pass the new argument.
18923 Default line width, color etc #define'd
18926 Updates of danish menus
18928 1999-05-08 Fredrik Hallenberg <hallon@lysator.liu.se>
18931 * dia_gnome_icon.png
18932 * dia_gnome_menu_icon.png
18934 Graphics by Toussaint Frédéric <ftoussin@club-internet.fr>.
18937 About dialog shows dia_logo.png. Removed the GNOME about dialog.
18940 Distribute the icons and install logo in pkgdatadir.
18943 Added DATADIR-define.
18945 1999-04-28 Alexander Larsson <alla@lysator.liu.se>
18946 Patches from Enrico Scholz <enrico.scholz@wirtschaft.tu-chemnitz.de>
18949 Updated version number, made setup quiet, can build from cvs,
18950 --enable-gnome, now using automake 1.4 DESTDIR feature, install-strip
18953 * objects/ER/Makefile.am
18954 * objects/UML/Makefile.am
18955 * objects/network/Makefile.am
18956 * objects/standard/Makefile.am
18957 now builds better with gnome
18959 * objects/UML/class_dialog.c
18960 Fixed typo -> po files must be updated too!!
18962 1999-04-28 Alexander Larsson <alla@lysator.liu.se>
18965 Added reference so that widgets.o gets linked to the app.
18967 1999-04-23 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
18969 * objects/UML/classicon.c:
18972 * objects/UML/actor.c:
18973 Changed position of 'snap-to-grid' so connection points are
18976 1999-04-22 Alexander Larsson <alla@lysator.liu.se>
18978 * objects/UML/classicon.c:
18979 Changed position of 'snap-to-grid'.
18980 By Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
18982 1999-04-22 Alexander Larsson <alla@lysator.liu.se>
18984 * objects/network/antenna.c
18985 * objects/network/flash.c
18986 * objects/network/hub.c
18987 * objects/network/modem.c
18988 * objects/network/modularswitch.c
18989 * objects/network/rj45plug.c
18990 * objects/network/scead-plug.c
18991 * objects/network/network.c
18992 * objects/network/Makefile.am
18993 * objects/network/pixmaps/antenna.xpm
18994 * objects/network/pixmaps/flash.xpm
18995 * objects/network/pixmaps/hub.xpm
18996 * objects/network/pixmaps/modem.xpm
18997 * objects/network/pixmaps/modularswitch.xpm
18998 * objects/network/pixmaps/rj45plug.xpm
18999 * objects/network/pixmaps/sceadplug.xpm
19000 * objects/network/pixmaps/Makefile.am
19001 Lots of new network objects from
19002 Roland Steinbach <roland@support-system.com>.
19004 1999-04-15 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
19006 * objects/UML/classicon.c:
19007 Fixed connection positions, saved type as int (it has 3 states),
19008 and other small fixes.
19010 1999-04-14 Alexander Larsson <alla@lysator.liu.se>
19012 * app/preferences.c:
19014 Added preference compress_save. It lets dia save uncompressed
19017 * objects/UML/class.c:
19018 Fixed bug with size calculation on methods that had class scope.
19020 1999-04-13 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
19022 * objects/UML/usecase.c:
19023 Added collaboration mode
19024 Fixed connection points with text > ellipse bug and other
19027 * objects/UML/state.c:
19028 Fixed bug of bad position of text after being either end
19029 or begin, moved and returned to text
19031 1999-04-12 Andreas Jaeger <aj@arthur.rhein-neckar.de>
19033 * app/preferences.c: Add prototype declaration for prefs_apply.
19035 1999-04-11 Alexander Larsson <alla@lysator.liu.se>
19037 * app/preferences.c:
19039 Apply don't hide window.
19041 * app/properties.c:
19044 * objects/UML/object.c:
19045 * objdcts/UML/state.c:
19046 Some data was not copied on copy.
19049 Ben Hochstedler <benh@eeyore.moneng.mei.com>
19051 1999-04-09 Alexander Larsson <alla@lysator.liu.se>
19054 Changed link order between X and libxml.
19055 Some people had problems with an old libz in their
19058 1999-04-09 Kjartan Maraas <kmaraas@online.no>
19060 * po/no.po: updated translation.
19062 1999-04-08 Lars R. Clausen <lrclause@cs.uiuc.edu>
19064 * lib/message.c (message_error):
19067 * app/commands.[ch]:
19068 * app/diagram.[ch]:
19069 Added begining of xfig importing
19071 1999-04-08 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
19073 * objects/UML/pixmaps/state.xpm:
19074 * objects/UML/state.c:
19075 New UML object state machine.
19077 * objects/UML/uml.c:
19078 * objects/UML/Makefile.am:
19079 * objects/UML/pixmaps/Makefile.am:
19080 Added the state object.
19082 1999-04-08 Alejandro Aguilar Sierra <ale@bucefalo>
19084 * objects/UML/usecase.c:
19085 Added dialog to allow move text outside the ellipse.
19087 1999-04-08 Alexander Larsson <alla@lysator.liu.se>
19089 * Released Dia 0.41
19090 Tag called DIA_0_41
19095 1999-04-08 Alexander Larsson <alla@lysator.liu.se>
19098 Updated version number to 0.41
19103 1999-04-04 Fredrik Hallenberg <hallon@lysator.liu.se>
19106 Changed errormessage for --export-to-ps. Removed call to
19107 g_log_set_always_fatal().
19110 * app/disp_callbacks.c
19112 (i18n) Removed gettext from some debugmessages.
19115 Small fix in GNOME-menus. Added warning that will help track
19116 problems with translations.
19119 (i18n) Updated swedish translation.
19121 1999-04-02 Alexander Larsson <alla@lysator.liu.se>
19126 1999-04-01 Alexander Larsson <alla@lysator.liu.se>
19132 1999-04-01 Alexander Larsson <alla@lysator.liu.se>
19135 (i18n) Updated the danish translation.
19136 From Lars R. Clausen.
19138 1999-04-01 Fredrik Hallenberg <hallon@lysator.liu.se>
19141 (i18n) The popup menu is translated now.
19144 (i18n) Updated swedish translation.
19146 1999-03-29 Alexander Larsson <alla@lysator.liu.se>
19148 * Released Dia 0.40
19149 Tag called DIA_0_40
19152 Updated for new release
19154 1999-03-29 Alexander Larsson <alla@lysator.liu.se>
19156 * objects/network/bus.c:
19157 Added initialization of properties dialog to NULL.
19159 * app/commands.c (edit_cut_callback):
19160 Update menu sensitivity when cut object.
19162 * app/modify_tool.c (click_select_object):
19163 * app/modify_tool.c (modify_button_release):
19164 Call diagram_update_menu_sensitivity() when
19165 selecting objects to update stuff that depends
19166 on selected/not selected.
19168 1999-03-29 Alexander Larsson <alla@lysator.liu.se>
19171 Change order of subdir so that libintl.a builds.
19172 Now passed make distcheck.
19174 1999-03-28 Alexander Larsson <alla@lysator.liu.se>
19176 * lib/font.c (init_x11_font):
19179 1999-03-28 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
19181 * objects/UML/pixmaps/classicon.xpm:
19182 * objects/UML/classicon.c:
19183 * objects/UML/uml.c:
19184 Added the class stereotype icon objects.
19187 Changed default ps extension from .ps to .eps.
19189 1999-03-28 Alexander Larsson <alla@lysator.liu.se>
19192 Added diamenu.h and intl.h
19197 * objects/UML/pixmaps/Makefile.am:
19200 * objects/standard/pixmaps/Makefile.am:
19203 1999-03-28 Alexander Larsson <alla@lysator.liu.se>
19206 Use a scalable font before fixed when real font not found.
19211 * objects/standard/image.c:
19212 Better handling of loading/saving of images.
19215 Added some text about cvs, fonts and rewrote some parts.
19218 Updated with new stuff.
19221 Bump up version number to 0.40.
19223 1999-03-28 Alexander Larsson <alla@lysator.liu.se>
19226 Moved diagram_add_ddisplay() call into new_display().
19227 Fixed new_display to not use uninitialized variables
19228 causing loaded files to show up as black (or garbage).
19232 Removed unneeded calls to diagram_add_ddisplay().
19234 1999-03-28 Alexander Larsson <alla@lysator.liu.se>
19236 * objects/UML/lifeline.c:
19238 Patch from Andreas Jaeger <aj@arthur.rhein-neckar.de>.
19240 * objects/UML/message.c:
19241 Fixed bug loading messages with null-text.
19242 Patch from Andreas Jaeger <aj@arthur.rhein-neckar.de>.
19244 1999-03-27 Fredrik Hallenberg <hallon@lysator.liu.se>
19247 Updated swedish translation.
19250 (GNOME) Removed help-browser from help menu. Fixed typo.
19253 (GNOME) Accelerators in diagrams should work now.
19255 1999-03-25 Fredrik Hallenberg <hallon@lysator.liu.se>
19260 * app/disp_callbacks.c
19264 * app/preferences.c
19266 * lib/diagramdata.c
19272 * objects/network/*.c
19273 * objects/standard/*.c
19274 * po/update_pofiles_in.sh
19276 More i18n. All strings (expect rare debug messages) can be
19277 translated now. Moved intl.h from app to lib. Updated
19278 update_pofiles_in.sh to check all .c-files.
19280 1999-03-23 Alexander Larsson <alla@lysator.liu.se>
19282 * app/disp_callbacks.c (ddisplay_canvas_events):
19283 Don't drop keys while num-lock, scroll-lock etc is on.
19285 1999-03-22 Alexander Larsson <alla@lysator.liu.se>
19287 * app/render_eps.c (draw_image):
19288 Fixed exporting of images.
19289 Still not perfect, but not outright buggy.
19291 1999-03-22 Alexander Larsson <alla@lysator.liu.se>
19295 Added hungarian translation. By Shooby Ban <bansz@szif.hu>.
19298 Added $* to the dia call in run_dia.sh
19300 1999-03-22 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
19303 Added color_equals() call.
19305 * objects/standard/arc.c:
19306 * objects/standard/line.c:
19307 Don't save unneccesary data.
19309 * objects/standard/box.c:
19310 * objects/standard/ellipse.c:
19311 * objects/standard/image.c:
19312 * objects/standard/polyline.c:
19313 * objects/standard/zigzagline.c:
19314 Share properties dialog.
19315 Don't save unneccesary data.
19317 1999-03-22 Seth Alves <alves@hungry.com>
19322 small changes so that gnome menus aren't broken
19324 1999-03-22 Alexander Larsson <alla@lysator.liu.se>
19327 Added danish translation from lrclause@cs.uiuc.edu.
19332 * po/update_pofiles_in.sh:
19333 Added script that updates POFILES.in.
19334 This should probably be run automatically from somewhere.
19336 1999-03-19 Alexander Larsson <alla@lysator.liu.se>
19338 * app/diagram.[ch]:
19339 Added function diagram_update_menu_sensitivity() which
19340 sets the sensitivity of some menu items. This function
19341 is called at each diagram state change (from diagram_modified()).
19342 This is needed because otherwise the keyboard accelerators
19343 don't work correctly.
19345 * app/display.[ch]:
19346 Changed display_set_menu_sensitivity() to display_update_menu_state().
19347 Moved lots of code to diagram_update_menu_sensitivity() in
19348 diagram.c. Optimized to only look up menu-items from path:s once.
19350 * app/disp_callbacks.c:
19352 When we get a GDK_FOCUS_CHANGE, update menu sensitivity.
19353 Need to set GDK_FOCUS_CHANGE_MASK.
19355 * app/create_object.c:
19356 Call diagram_modified when an object has been created and
19357 selected so that the menu sensitivity is updated.
19360 removed menus_set_sensitive() and menus_set_state(). Exported
19361 renamed function menus_get_item_from_path().
19363 1999-03-15 Alexander Larsson <alla@lysator.liu.se>
19365 * app/disp_callbacks.c:
19366 Show (empty) object menus on object that has none.
19367 Show title on object menus.
19370 Set zoom factor correctly when opening new displays.
19371 Better setting of scrollbars.
19375 Some reformating cleanup.
19378 Added title to object menus.
19381 Added object menu method (NULL-valued) to all objects.
19383 * objects/standard/polyline.c:
19384 Added title to object menu.
19386 1999-03-14 Alexander Larsson <alla@lysator.liu.se>
19388 * app/preferences.[ch]:
19389 New files. Implements the preferences dialog and
19390 loading/saving of ~/.diarc.
19393 Added preferences.[ch].
19396 Load preferences on startup.
19398 * app/commands.[ch]:
19399 Added file_preferences_callback to show the preferences dialog.
19401 * app/create_object.c:
19402 Update extents when creating object.
19403 Use the reset_tools_after_create preferences setting.
19406 Use preferences when creating new display.
19409 Add preferences to menu.
19412 * app/layer_dialog.c:
19413 * app/properties.c:
19414 Don't allow shrinking of dialog.
19415 Add i18n of some strings.
19417 1999-03-11 Kjartan Maraas <kmaraas@fib.hl.no>
19419 Norwegian translation added.
19421 1999-03-11 Alexander Larsson <alla@lysator.liu.se>
19423 * objects/standard/line.c:
19424 * objects/standard/arc.c:
19425 * objects/standard/polyline.c:
19426 * objects/standard/zigzagline.c:
19427 Loading of arrow data fixed.
19429 1999-03-09 Alexander Larsson <alla@lysator.liu.se>
19432 Update extents when saving and exporting to postscript.
19433 Fixes a bug with postscript bounding-box being wrong.
19436 Changed border width from 5 to 2.
19439 Move grouped objects by the move-point of the first object.
19440 Fixes bug that made all objects in the group be off-grid
19441 when moving the group, even though all objects was on-grid.
19443 * app/layer_dialog.c:
19444 Update extents when changing layer.
19446 1999-03-08 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
19448 * objects/UML/uml.c:
19449 * objects/UML/component.c:
19450 * objects/UML/pixmaps/component.xpm:
19451 Added the UML component object
19453 1999-03-04 Seth Alves <alves@hungry.com>
19455 * objects/UML/generalization.c (generalization_create): avoid
19456 math on uninitialized genlz->text_width (NaN causes sigfpe)
19458 * objects/UML/realizes.c (realizes_create): same
19460 * objects/UML/dependency.c (dependency_create): same
19462 1999-03-01 Seth Alves <alves@hungry.com>
19464 * app/display.c (ddisplay_active): don't fly a warning panel
19465 if ddisplay_active is called when no views are open.
19467 * app/commands.c (set_default_file_selection_directory): set
19468 file selector's default directory if there is already
19471 1999-02-28 Alexander Larsson <alla@lysator.liu.se>
19474 New info about imlib requirements.
19477 Added lib/pixmaps/Makefile to created makefiles.
19481 Change from obsoleted to newer gtk calls.
19484 Pass filename of the diagram when loading and saving.
19485 This creates better oportunities to handle filename saving.
19488 Pass filenames to load and save methods.
19490 * lib/dia_image.[ch]:
19491 Added dia_image_get_broken() call that returns a image which
19492 is used for 'broken' images.
19494 * lib/pixmaps/.cvsignore:
19495 * lib/pixmaps/Makefile.am:
19496 * lib/pixmaps/broken.xpm:
19497 New files for the broken image bitmap.
19500 Fixed bug with double destroyed filedialog.
19503 Updated load and save prototypes to use the new filename argument.
19506 Render broken image instead of line when got no image.
19507 Use the new filename in load and save to save (if possible)
19508 relative pathnames and to better try to find loaded images.
19510 1999-02-28 Alexander Larsson <alla@lysator.liu.se>
19513 Some updates to the todo file.
19517 Place over/place over => sent to back/bring to front.
19518 Added some keyboard shortcuts to menus.
19520 1999-02-28 Alexander Larsson <alla@lysator.liu.se>
19523 Changed string saving/loading to a new method. This should
19524 be much better att handling &,<,> and whitespaces.
19525 Loading strings of the old kind is still supported for backwards
19528 * samples/ER-demo.dia:
19529 * samples/UML-demo.dia:
19530 Updated to use the new strings.
19533 statusbar modified update fix.
19535 1999-02-27 Seth Alves <alves@hungry.com>
19537 * app/app_procs.c (app_init): added a --export-to-ps option
19538 which will cause dia to load a dia file and save it as ps
19539 and then exit. this is a little bogus, because it still
19540 pops up a window. this option only shows up if --enable-gnome
19543 * app/display.c (display_set_menu_sensitivity): no Edit/Delete
19544 menu when built with --enable-gnome
19546 * app/interface.c (create_display_shell): build status bar
19547 even if --enable-gnome is used
19549 * app/menus.c: menu fixes for --enable-gnome
19551 * app/commands.c (file_open_dialog_ok_callback): fixed up
19552 menus when --enable-gnome is used
19553 (file_export_to_eps_callback): set a default file name
19554 when dialog is created
19556 1999-02-27 Alexander Larsson <alex@c125.ryd.student.liu.se>
19558 * objects/UML/association.c (association_create):
19559 Fixed usage of not initialized variable.
19560 Pointed out by Seth Alves <alves@hungry.com>.
19562 1999-02-24 Alexander Larsson <alex@c125.ryd.student.liu.se>
19565 Fixed detection of gnome-xml.
19566 From Valtteri Vuorikoski <vuori@k.notcom.org>.
19569 Fixed error detection on dlsym calls.
19570 From Valtteri Vuorikoski <vuori@k.notcom.org>.
19572 1999-02-23 Alexander Larsson <alla@lysator.liu.se>
19574 * objects/UML/message.c (fill_in_dialog):
19577 1999-02-22 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
19579 * objects/standard/zigzagline.c:
19580 * objects/standard/polyline.c:
19581 * objects/standard/line.c:
19582 * objects/standard/arc.c:
19586 Support for sizeable arrows.
19588 * objects/standard/box.c:
19589 * objects/standard/ellipse.c:
19590 * objects/standard/image.c:
19591 Changed creation handle to lower-right.
19592 Transparent box/ellipse.
19594 * objects/standard/image.c:
19595 Better layout of properties boxes.
19597 1999-02-20 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
19599 * objects/UML/message.c (fill_in_dialog):
19600 Fixed dialog fill in. Common dialog for all messages.
19602 * objects/UML/object.c:
19603 Added multiple instance. Dialog related bugs fixed.
19604 Common dialog for all instances. Completed copy and destroy.
19606 * objects/UML/lifeline.c (lifeline_load):
19607 Conn initialization bug fixed and few bad loading prevention flags.
19608 Common dialog for all lifeline objects.
19610 1999-02-15 Alexander Larsson <alla@lysator.liu.se>
19612 * lib/dia_image.[ch]:
19613 More work on the DiaImage abstraction.
19616 * app/render_eps.c:
19617 * app/render_gdk.c:
19618 * objects/standard/image.c:
19619 Use the new DiaImage calls.
19621 1999-02-15 Alexander Larsson <alla@lysator.liu.se>
19625 Reversed the meaning of align horizontal/vertical.
19627 1999-02-15 Alexander Larsson <alla@lysator.liu.se>
19629 * app/load_save.c (diagram_load):
19630 Statusbar update fix.
19632 1999-02-15 Alexander Larsson <alla@lysator.liu.se>
19634 * app/interface.c (create_display_shell):
19635 Fixed status bar size.
19637 1999-02-15 Alexander Larsson <alla@lysator.liu.se>
19639 * lib/dia_image.[ch]:
19640 Added extern declaration for dia_image_release.
19641 Removed dia_image_draw, as it's not neseccary.
19643 1999-02-14 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
19645 * app/object_ops.c:
19647 Added equal distance alignment both vertical and horizontal.
19649 * objects/UML/object.c:
19650 Added a couple of attributes to load/read that were missing.
19652 * objects/UML/lifeline.c:
19653 Better handling of handles. Fixed another bug I forgot to add
19656 1999-02-13 Alexander Larsson <alla@lysator.liu.se>
19658 Patch from Lars Clausen <lrclause@shasta.cs.uiuc.edu>
19660 * lib/dia_image.[ch]:
19662 New files. DiaImage wraps the GdkImlibImage.
19665 * app/render_eps.c:
19666 * app/render_gdk.c:
19667 * lib/render_store.[ch]:
19668 * objects/standard/image.c:
19669 Use the new DiaImagetype.
19672 Removed unused variable to eliminate warning.
19674 1999-02-11 Alexander Larsson <alla@lysator.liu.se>
19676 * objects/standard/box.c:
19677 Added rounded corners on the box object.
19679 * lib/widgets.[ch]:
19680 Updated the DiaFileSelector widget.
19682 1999-02-09 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
19684 * objects/UML/object.c (objet_draw):
19685 Completed underlining of all object name lines.
19687 * objects/UML/message.c (fill_in_dialog):
19688 Fixed a bug that filled incorrectly the message's dialog.
19690 * objects/UML/lifeline.c (lifeline_load):
19691 Some cleanning and fixed a couple of bugs that caused
19692 crashes after reading diagrams with lifelines.
19695 Added flags to prevent crash with void strings
19697 1999-02-07 Matthias Köster <Matthias.Koester@Informatik.Uni-Oldenburg.DE>
19698 * app/display.[ch]:
19699 Added statusbar to the display widget. Currently shows the zoom
19700 factor and modified flag of the viewed diagram. The statusbar is
19701 updated upon calls to ddisplay_zoom and ddisplay_update_statusbar.
19702 This caused the following additions:
19704 * app/diagram.[ch]:
19705 Added function diagram_set_modified. Calls
19706 ddisplay_update_statusbar for all displays showing the modified diagram.
19707 Changed diagram_modified to call diagram_set_modified.
19710 Added the creation of the statusbar.
19713 diagram_save now calls diagram_set_modified instead of setting
19714 dia->modified. Needed to force call to display_update_statusbar
19717 Changed the way view_show_all works. Now calls ddisplay_zoom
19718 instead of directly setting the zoom_factor, so the zoom factor is
19719 correctly shown in the statusbar.
19722 Fixed rubberband zoom to use ddisplay_zoom().
19724 1999-02-07 Fredrik Hallenberg <hallon@lysator.liu.se>
19727 Rudimentary GNOME session management.
19729 * app/disp_callbacks.c
19733 GNOME menus. Problems:
19734 Callbacks doesn't get user_data.
19735 Weird warnings when creating popup menus.
19736 menus_set_sensitive(), menus_set_state() doesn't work.
19738 1999-02-05 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
19741 Add AM_PATH_GDK_IMLIB() call.
19744 Add gdk_imlib to linking flags.
19748 Print library-loading error messages on stdout too.
19751 Add standard image to toolbox.
19753 * app/render_eps.c:
19754 Set a more reasonable dot length. Fixed
19755 missing initialization of dot length.
19756 Added draw_image methods.
19758 * app/render_gdk.c (new_gdk_renderer):
19759 Dot a bit wider. Looks good in normal mode now.
19761 * objects/standard/image.c:
19762 * objects/standard/pixmaps/image.xpm:
19763 New files. Standard object for images.
19765 * app/render_eps.c (set_linestyle):
19766 * app/render_gdk.c (set_linestyle):
19767 * lib/widgets.c (dia_line_style_selector_init):
19769 New line style DOTTED.
19772 * lib/render_store.c:
19773 Change DrawImage call to use gdk_imlib.
19775 * lib/widgets.[ch]:
19776 Added widgets for selecting files.
19777 Added dotted to the linestyle selector.
19779 1999-02-06 Alexander Larsson <alla@lysator.liu.se>
19781 * objects/network/printer.c:
19782 * objects/network/network.c:
19783 * objects/network/pixmaps/printer.xpm:
19784 * objects/network/.cvsignore:
19785 * objects/network/Makefile.am:
19786 * objects/network/pixmaps/Makefile.am:
19787 New printer object in network.
19788 From Martin Hawlisch <hawlisch@roxi.rz.fh-mannheim.de>
19791 Added known XML bug.
19793 1999-02-06 Alexander Larsson <alla@lysator.liu.se>
19797 Reverted back from #include <gnome-xml/tree.h> to
19798 #include <tree.h> as this is fixed by the xml-config program.
19799 The former way broke for some people.
19800 Reported by blizzard@redhat.com.
19802 * objects/UML/lifeline.c:
19803 * objects/UML/message.c:
19804 * objects/UML/object.c:
19805 Removed some warnings.
19807 1999-02-04 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
19809 * objects/UML/lifeline.c:
19810 Fixed connection points over the life line when the focus of
19811 control is not drawn.
19813 * objects/UML/message.c:
19814 Now a recursive message can be freely resized using the handles.
19816 1999-02-02 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
19818 * objects/UML/lifeline.c:
19819 Added connection points.
19820 Added properties dialog with the option to draw/hide focus of control
19821 box and destruction mark.
19823 * objects/UML/object.c:
19824 Added properties dialog and stereotype, explicit state and attributes.
19825 It's also possible to mark the object as active.
19827 * objects/UML/pixmaps/object.xpm:
19830 * objects/UML/message.c:
19831 Added "recursive" message type (was not necessary to use OrthConn).
19833 1999-02-02 Alexander Larsson <alla@lysator.liu.se>
19835 * objects/standard/arc.c:
19836 Removed old debug code. Fixes a visual bug. From lrclause@cs.uiuc.edu.
19838 1999-02-01 Alexander Larsson <alla@lysator.liu.se>
19840 Patch from Lars R. Clausen <lrclause@cs.uiuc.edu>
19844 Update xml includes to gnome-xml/*.h.
19846 * objects/standard/arc.c:
19847 Only one property dialog per type.
19848 Fix arrows directions.
19850 * objects/standard/box.c:
19851 * objects/standard/ellipse.c:
19852 * objects/standard/textobj.c
19853 Added default properties dialog.
19856 1999-01-31 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
19858 * objects/UML/Makefile.am:
19859 * objects/UML/uml.c:
19860 * objects/UML/lifeline.c:
19861 * objects/UML/object.c:
19862 * objects/UML/message.c:
19863 * objects/UML/pixmaps/lifeline.xpm:
19864 * objects/UML/pixmaps/object.xpm:
19865 * objects/UML/pixmaps/message.xpm:
19866 Added 3 new UML objects for dynamic modeling. To avoid internal
19867 conflicts, the name "objet" is used for object "object".
19870 Added ARROW_HALF_HEAD arrow type to allow drawing asynchronous
19873 1999-01-30 Alexander Larsson <alla@lysator.liu.se>
19875 * app/display.[ch]:
19876 * app/modify_tool.c:
19877 Added autoscrolling while doing rubber-band select.
19878 This patch from Matthias Köster
19879 (Matthias.Koester@Informatik.Uni-Oldenburg.DE)
19882 1999-01-28 Alexander Larsson <alla@lysator.liu.se>
19884 * app/defaults.[ch]:
19885 New files, deals with default properties dialog.
19888 New file. Contains definitions for the new object menu.
19890 * lib/poly_conn.[ch]:
19891 New file. Base class for poly-line like objects.
19893 * objects/standard/polyline.c:
19894 * objects/standard/pixmaps/polyline.xpm:
19895 New files. Polyline object.
19898 Fixed bug with infinite loop when registering sheets.
19901 Removed unneccesary stuff.
19903 * app/disp_callbacks.c:
19904 Support for object menus.
19907 Added polyline to toolbox.
19908 Added call to tool_options_dialog_show() when double clicking on
19912 New function tool_options_dialog_show() for tool properties.
19918 Added ObjectType methods for handling object default dialogs.
19919 Added Object method for handling object_menu.
19920 Added unused methods to ObjectTypeOps for future binary
19923 * lib/widgets.[ch]:
19924 Added DiaArrowTypeSelector widget.
19926 * objects/standard/arc.c:
19927 * objects/standard/zigzagline.c:
19928 Added support for default properties.
19930 * objects/standard/line.c:
19931 Added support for default properties.
19932 Just use one properties dialog for all line objects. NOTE: This
19933 seems to have a bug. We're working on it.
19935 * standard/standard.c:
19936 Add the polyline object.
19938 1999-01-27 Alexander Larsson <alla@lysator.liu.se>
19940 * app/modify_tool.c:
19941 Commented out buggy transitive select function. It wasn't really
19942 meant to go into cvs.
19945 1999-01-25 Fredrik Hallenberg <hallon@lysator.liu.se>
19957 Swedish translation. Not completed.
19961 Added possibility to enable GNOME specific code with configure.
19964 Added possibility to set debug level with configure.
19967 Added about dialog.
19973 Added some GNOME specific code. Not ready for use.
19975 1999-01-24 Alexander Larsson <alla@lysator.liu.se>
19978 Added text about needing gtk 1.1.13 and gnome-xml.
19981 Described changes since last version (0.20).
19983 Released version 0.30, tagged DIA_0_30.
19985 1999-01-22 Alexander Larsson <alla@lysator.liu.se>
19987 * app/magnify.c (magnify_button_release):
19988 Fixed a problem when zooming in on a very small box would
19989 not release the grabbed pointer-focus.
19991 1999-01-21 Alexander Larsson <alla@lysator.liu.se>
19993 * app/load_save.c (diagram_load):
19994 Be somewhat more robust when loading files that
19997 1999-01-21 Alexander Larsson <alla@lysator.liu.se>
20001 * objects/UML/uml.c:
20002 * objects/network/network.c:
20003 * objects/standard/standard.c:
20004 Added versioning of object libraries.
20006 * app/create_object.c:
20007 Don't change tool when an object is created.
20009 * objects/network/network.c:
20014 1999-01-19 Alexander Larsson <alla@lysator.liu.se>
20017 Updated gtk requirement to Gtk+ 1.1.13.
20020 Always add one screenful of scrolling space on
20021 each side of a diagram window.
20023 1999-01-19 Jeff Garzik <jgarzik@pobox.com>
20026 Tell automake to auto-install missing files.
20029 Renamed deprecated Gtk+ function.
20031 1999-01-16 Alexander Larsson <alla@lysator.liu.se>
20035 * samples/Makefile.am:
20036 * samples/ER-demo.dia:
20037 * samples/UML-demo.dia:
20038 Added samples directory.
20039 Added samples for ER and UML.
20042 * app/disp_callbacks.c:
20044 Zoom is done by sqrt(2) instead of 2.
20045 Lots of more zoom options in the menu.
20047 * objects/ER/relationship.c:
20048 Relationships have 8 connectionpoints instead of 4.
20050 * objects/UML/class.c:
20051 UML class name font a bit smaller.
20052 Fixed stupid bug in the copy operation.
20055 Displays are opened at 500x400 instead of 256x256.
20058 Fixup of internal error message.
20060 * app/color_area.c:
20062 * app/modify_tool.c:
20064 Removed debug printf's.
20067 Added new known bug.
20069 1999-01-16 Alexander Larsson <alla@lysator.liu.se>
20073 Fixed so accelerator groups work in all windows.
20074 Updated to new gtk function names.
20080 Updated to new gtk function names.
20081 Set sensitivity of the align menu items.
20083 * objects/ER/pixmaps/Makefile.am:
20084 * objects/UML/pixmaps/Makefile.am:
20085 * objects/network/pixmaps/Makefile.am:
20086 Fix so that make dist works.
20089 * app/color_area.c:
20093 * app/layer_dialog.c:
20095 * app/object_ops.c:
20096 * app/properties.c:
20097 * lib/diagramdata.[ch]:
20099 * lib/objects/ER/attribute.c:
20100 * lib/objects/ER/entity.c:
20101 * lib/objects/ER/participation.c:
20102 * lib/objects/ER/relationship.c:
20103 * lib/objects/ER/.c:
20104 * objects/UML/actor.c:
20105 * objects/UML/association.c:
20106 * objects/UML/class_dialog.c:
20107 * objects/UML/dependency.c:
20108 * objects/UML/generalization.c:
20109 * objects/UML/large_package.c:
20110 * objects/UML/realizes.c:
20113 Updated to new gtk function names.
20116 1999-01-15 Alexander Larsson <alla@lysator.liu.se>
20122 Fixed loading of diagrams specified as arguments.
20124 * objects/ER/attribute.c:
20125 * objects/ER/entity.c:
20127 * objects/ER/participation.c:
20128 * objects/ER/relationship.c:
20129 Updated the ER objects.
20132 1999-01-14 Alexander Larsson <alla@lysator.liu.se>
20136 * objects/Makefile.am:
20137 * objects/ER/attribute.c:
20138 * objects/ER/entity.c:
20140 * objects/ER/participation.c:
20141 * objects/ER/relationship.c:
20142 * objects/ER/pixmaps/Makefile.am:
20143 * objects/ER/pixmaps/attribute.xpm:
20144 * objects/ER/pixmaps/entity.xpm:
20145 * objects/ER/pixmaps/participation.xpm:
20146 * objects/ER/pixmaps/relationship.xpm:
20147 * objects/ER/pixmaps/weakentity.xpm:
20148 First commit of entity relationship objects.
20149 These were done by hallon@lysator.liu.se.
20150 There are still stuff to do on these.
20152 1999-01-14 Alexander Larsson <alla@lysator.liu.se>
20157 * app/diagram.[ch]:
20158 Change diagram_remove_all_selected to take new argument
20159 delete_empty. Empty objects are deleted only if it is TRUE.
20160 Removed call to close_eps_renderer. This is now done in end_render
20161 in the eps renderer.
20163 * app/create_object.c:
20164 * app/layer_dialog.c:
20165 Update calls to diagram_remove_all_selected.
20168 Update calls to diagram_remove_all_selected.
20169 Some code reformating.
20170 Changed order of adding updates i align_h and align_v.
20172 * app/modify_tool.c:
20173 Update calls to diagram_remove_all_selected.
20174 Added pointer grab when doing rubber-band selection, this fixes
20175 the bug when draging the box over to another window.
20177 * app/connectionpoint_ops.[ch]:
20178 diagram_update_connections_object changed to take an argument
20179 update_nonmoved. This lets connections that has not moved, but
20180 the stuff they're connected to has been moved work.
20181 Update calls to the new diagram_update_connections_object.
20183 * app/properties.c:
20184 Update calls to the new diagram_update_connections_object.
20185 Update extents when properties are applied.
20187 * app/disp_callbacks.c:
20188 Added support for zooming with the '+' and '-' keys.
20191 Removed old keyboard shortcuts for zoom.
20194 Added calls begin_render and end_render to renderer.
20195 These can be used for setup and cleanup.
20197 * lib/diagramdata.c:
20198 Added calls to begin_render and end_render in data_render.
20200 * app/render_gdk.c:
20201 Added begin_render and end_render.
20203 * app/render_eps.[ch]:
20204 Added begin_render and end_render.
20205 Moved close_eps_renderer code to end_render.
20206 Various fixes to the generated eps code. This fixes importing
20207 generated eps into LYX.
20209 1999-01-12 Alexander Larsson <alla@lysator.liu.se>
20215 Menus for alignment updated.
20217 * app/object_ops.[ch]:
20218 Functions for object alignment updated.
20220 * app/commands.[ch]:
20221 Object alignment callbacks updated.
20222 New diagrams are called Untitled-<nr>.
20224 * app/layer_dialog.c:
20225 Active layer selected when showing layers from new
20229 Compress xml files when saving.
20230 Use xml namespace 'dia'.
20233 Minor comment update.
20235 * objects/UML/class_dialog.c:
20236 Cleanup of the gkt_list_item moving code.
20237 Fixed bug with update of operation when moving parameters.
20239 1999-01-10 Alexander Larsson <alla@lysator.liu.se>
20241 * app/layer_dialog.[ch]:
20242 Fixed the rest of the layers dialog.
20245 Added call to redo layer dialogs diagram list when changing
20248 * lib/diagramdata.[ch]:
20249 Added data_raise_layer and data_lower_layer functions for
20250 raising/lowering layers. Added data_add_layer_at for adding a
20251 layer at a specified index.
20253 1999-01-05 Alexander Larsson <alla@lysator.liu.se>
20255 This is the asierra-990105 patch done by asierra@servidor.unam.mx.
20258 Added support for reading diagrams from the command line.
20260 1998-12-21 Alexander Larsson <alla@lysator.liu.se>
20262 This is the asierra-981220 patch done by asierra@servidor.unam.mx.
20264 * app/commands.[ch]:
20265 Added objects_align_callback().
20268 Added align objects to menu.
20270 * app/object_ops.[ch]:
20271 Add object_list_align().
20273 1998-12-17 Alexander Larsson <alla@lysator.liu.se>
20274 * app/layer_dialog.[ch]:
20275 New files. Handles the layers dialog. Needs a bugfix for glib to
20276 work. Sent patch to gtk-list.
20278 * app/pixmaps/new.xpm:
20279 * app/pixmaps/eye.xbm:
20280 * app/pixmaps/lower.xpm:
20281 * app/pixmaps/raise.xpm:
20282 * app/pixmaps/delete.xpm:
20283 New files. Images for the layer dialog buttons.
20285 * lib/diagramdata.h
20286 * lib/diagramdata.c
20287 New files for the DiagramData and Layer structures and functions.
20290 Added call to create_layer_dialog() on startup.
20292 * app/commands.[ch]:
20293 New callbacks for showing the properties and layout dialog.
20294 Changes for the new DiagramData structure.
20296 * app/connectionpoint_ops.c:
20297 * app/cut_n_paste.c:
20298 * app/diagram.[ch]:
20299 * app/display.[ch]:
20301 * app/modify_tool.c:
20302 * app/object_ops.[ch]:
20303 * app/render_eps.c:
20305 Changes for the new DiagramData structure.
20308 * app/properties.c:
20309 Set correct wmclasses.
20312 Fix load and save of layers.
20315 Update DTD for layers.
20318 New menus for dialogs.
20324 1998-12-06 Alexander Larsson <alla@lysator.liu.se>
20327 Removed the gtk 1.1.5 stuff.
20330 Updated gtk check to version 1.1.5.
20331 Updated version from 0.20 to 0.30
20333 * app/commands.[ch]:
20334 Updated some callbacks to be of type GtkItemFactoryCallback1.
20335 Not all are done yet, but it works anyway.
20338 Removed Gtk 1.0.0 GtkAcceleratorTable references.
20342 Update to Gtk 1.1.x functions.
20343 Use ItemFactory instead of MenuFactory.
20345 * app/render_gdk.c:
20346 Removed Gtk 1.0.0 references.
20348 * objects/UML/class_dialog.c:
20349 Scrolled window updates for Gtk 1.1.5.
20352 Removed ugly fix for gnome-xml bug. Make sure you get the
20353 newest version of gnome-xml from CVS.
20355 1998-12-05 Alexander Larsson <alla@lysator.liu.se>
20358 Removed the xml load/save line.
20364 Removed building of files.c
20367 * lib/connection.c:
20371 * lib/render_object.c:
20372 * objects/UML/actor.c:
20373 * objects/UML/association.c:
20374 * objects/UML/class.c:
20375 * objects/UML/constraint.c:
20376 * objects/UML/dependency.c:
20377 * objects/UML/generalization.c:
20378 * objects/UML/implements.c:
20379 * objects/UML/large_package.c:
20380 * objects/UML/note.c:
20381 * objects/UML/realizes.c:
20382 * objects/UML/small_package.c:
20383 * objects/UML/uml.c:
20384 * objects/UML/usecase.c:
20385 * objects/network/bus.c:
20386 * objects/standard/arc.c:
20387 * objects/standard/box.c:
20388 * objects/standard/ellipse.c:
20389 * objects/standard/line.c:
20390 * objects/standard/textobj.c:
20391 * objects/standard/zigzagline.c:
20392 Removed all includes of files.h
20395 1998-12-05 Alexander Larsson <alla@lysator.liu.se>
20398 Made the val property of string be implied.
20399 This makes it possible to save strings that
20400 are NULL. Just leave out val.
20402 * objects/lib/dia_xml.c:
20403 Fixed string so that it is possible to save strings
20404 that are NULL. Also made an ugly workaround of a
20405 bug in gnome-xml which removes empty properties.
20407 * objects/lib/orth_conn.c:
20408 Fixed a bug in saving. Forgot to step through the
20411 * objects/UML/association.c:
20412 * objects/UML/class.c:
20413 * objects/UML/constraint.c:
20414 * objects/UML/dependency.c:
20415 * objects/UML/generalization.c:
20416 * objects/UML/implements.c:
20417 * objects/UML/large_package.c:
20418 * objects/UML/note.c:
20419 * objects/UML/small_package.c:
20420 * objects/UML/realizes.c:
20421 * objects/UML/usecase.c:
20422 * objects/UML/actor.c:
20423 Fixed UML objects to save as xml.
20424 The last two were done by asierra@servidor.unam.mx (asierra-981204)
20426 * objects/UML/uml.[ch]:
20427 Updated *_write() and *_read() functions to use xml.
20429 * objects/network/bus.c:
20430 * objects/network/computer.c:
20431 * objects/network/disc.c:
20432 * objects/network/monitor.c:
20433 Updated network diagrams to use xml.
20435 1998-12-02 Alexander Larsson <alla@lysator.liu.se>
20438 New file. DTD that describes the xml file format
20441 * lib/dia_xml.[ch]:
20442 New files. Support for saving object to xml files.
20447 Added check for and usage of gnome-xml library.
20450 Major chages. Now saves/loads diagrams as xml.
20453 * lib/element.[ch]:
20454 * lib/connection.[ch]:
20455 * lib/orth_conn.[ch]:
20456 * lib/render_object.[ch]:
20458 Updated object support load/save functions for xml:
20460 * object/standard/arc.c:
20461 * object/standard/box.c:
20462 * object/standard/ellipse.c:
20463 * object/standard/line.c:
20464 * object/standard/textobj.c:
20465 * object/standard/zigzagline.c:
20466 Updated all standard objects to use xml.
20469 Only the standard objects are converted right now, don't
20470 save or load uml or network diagrams yet. Also, since this
20471 is new code it is deemed a bit unstable.
20476 1998-12-01 Alexander Larsson <alla@lysator.liu.se>
20478 * objects/UML/class.c:
20479 Changed classname font to Helvetica.
20480 Added more space above the classname
20482 * objects/UML/usecase.c:
20483 Correct placements of connectionpoints on ellipse.
20484 Better algorithm for deciding aspect ration on
20487 These changes were made by Alejandro Aguilar Sierra
20488 <asierra@servidor.unam.mx>. (asierra-981201)
20490 1998-11-30 Alexander Larsson <alla@lysator.liu.se>
20492 * objects/UML/actor.c:
20493 Changed the extents and alignment of the element
20496 * objects/UML/.cvsignore:
20497 Added usecase.lo and actor.lo.
20499 1998-11-30 Alexander Larsson <alla@lysator.liu.se>
20501 * objects/UML/actor.c:
20502 * objects/UML/usecase.c:
20503 * objects/UML/pixmaps/actor.xpm:
20504 * objects/UML/pixmaps/case.xpm:
20505 New files. Implements usecase and actor UML objects.
20506 These objects are done by Alejandro Aguilar Sierra
20507 <asierra@servidor.unam.mx>.
20509 * objects/UML/Makefile.am:
20510 * objects/UML/pixmaps/Makefile.am:
20511 Added usecase and actor to makefile.
20514 Added Alejandro and Jerome to autors list.
20516 1998-11-25 Alexander Larsson <alla@lysator.liu.se>
20518 * objects/UML/class.c (umlclass_load):
20519 Fixed typo. Reported by Jerome.Abela@solsoft.fr
20521 1998-11-24 Alexander Larsson <alla@lysator.liu.se>
20523 * app/properties.c:
20524 Update connections when doing apply in the properties window.
20526 * objects/UML/uml.[ch]:
20527 * objects/UML/class.[ch]:
20528 * objects/UML/class_dialog.c:
20529 Added connection points on both sides of attributes and
20530 operations in UML classes.
20531 Based on idea from Jerome.Abela@solsoft.fr
20533 1998-11-24 Alexander Larsson <alla@lysator.liu.se>
20536 Some new documentation about handles and connectionpoints.
20539 Added functions object_add_connectionpoint and
20540 object_remove_connectionpoint for handling a dynamic
20541 number of connectionpoints.
20543 * objects/UML/class.c:
20544 Only reserve space for stereotype when it is shown.
20546 These changes are from Jerome Abela <Jerome.Abela@solsoft.fr>
20548 1998-11-08 Alexander Larsson <alla@lysator.liu.se>
20550 * app/connectionpoint_ops.c:
20552 * app/disp_callbacks.c:
20553 * app/display.[ch]:
20555 * app/handle_ops.c:
20557 * app/modify_tool.c:
20558 * app/render_gdk.[ch]:
20560 Huge cleanup of internal rendering system.
20561 Moved a lot of data (pixmap, width, height & gc) into the GdkRenderer.
20562 This gives a few new methods for Interactive Renderers for setting
20563 clipping regions and drawing pixel based lines and rects.
20564 Updated the rest of the code to use the new stuff.
20566 * app/render_eps.c:
20570 * objects/standard/zigzagline.c
20571 Fixed unused variable warnings.
20574 Fixedbug with stringwidth where width==0.
20579 1998-11-02 Alexander Larsson <alla@lysator.liu.se>
20581 * lib/widgets.[ch]:
20582 Added suppot for setting the font of a
20583 DiaFontSelector widget.
20584 Also fixed some typos in the header.
20587 Added a comment about the GetPRoperties method call.
20588 You have to make sure to update widget state when
20589 this method is called. (Not all objects do this yet,
20595 1998-11-01 Alexander Larsson <alla@lysator.liu.se>
20598 Fixed problem with height of ascent and descent for fonts.
20599 It didn't use the whole height (==ascent+descent) when calculatine
20600 ascent_ratio and descent_ratio.
20602 * objects/standard/textobj.c:
20603 * objects/standard/box.c:
20604 * objects/standard/ellipse.c:
20605 * objects/standard/line.c:
20606 * objects/standard/arc.c:
20607 Updated and added property dialogs for these objects.
20608 Also added line width/color/style to those objects
20609 that didn't have it.
20610 This change breaks fileformat compatibility for these objects.
20612 * objects/standard/zigzagline.c:
20613 Changed zigzagline to be based on OrthConn, much nicer.
20614 Also added line style and color to properties.
20615 This change breaks fileformat compatibility for zigzagline.
20618 Fixed bug in message(). Forgot a pair of '&'.
20620 1998-10-29 Alexander Larsson <alla@lysator.liu.se>
20622 * lib/widgets.[ch]:
20623 Added DiaColorSelector widget.
20624 This is a colored button that pops up a color selection
20625 dialog when pressed.
20627 1998-10-28 Alexander Larsson <alla@lysator.liu.se>
20629 * lib/widgets.[ch]:
20631 New files, added widgets for selecting fonts, alignment
20632 and line-style. Will be used later.
20634 1998-10-12 Alexander Larsson <alla@lysator.liu.se>
20638 * objects/UML/Makefile.am:
20639 * objects/network/Makefile.am:
20640 * objects/standard/Makefile.am:
20641 Changed "CFLAGS = -Wall -g" to "CFLAGS = @CFLAGS@"
20642 in all Makefile.am.
20644 1998-10-03 Alexander Larsson <alla@lysator.liu.se>
20646 * app/handle_ops.c (handle_draw):
20647 connected HANDLE_MINOR_CONTROL also becomes red.
20649 1998-10-02 Alexander Larsson <alla@lysator.liu.se>
20652 removed -ldl from linking. This is added if needed by configure.
20655 Open dlls with RTLD_LAZY if it is defined.
20656 Some cleanups: char *error -> const char *error
20657 Added fprintf()'s to where we exited because of errors.
20660 Include <sys/types.h>
20662 1998-10-01 Alexander Larsson <alla@lysator.liu.se>
20667 Detect dlopen better.
20668 Detect wether dlopen needs an underscore in the identifier.
20669 This code was mostly borrowed from guile.
20673 * objects/standard/standard.c:
20674 * objects/network/network.c:
20675 * objects/UML/uml.c:
20677 Changed the way sheets reference objects to use just the
20678 name. Changed module loading to a two stage model:
20679 First register_objects() is called for all modules.
20680 Then register_sheets() is called. This means that
20681 sheets can safely include objects from other modules.
20684 1998-09-30 Alexander Larsson <alla@lysator.liu.se>
20686 * objects/network/bus.c:
20687 * objects/network/network.c:
20688 * objects/network/Makefile.am:
20689 New file bus.c. Added new object: Ethernet bus.
20691 * objects/standard/box.c:
20692 Added call to gtk_spin_button_set_numeric for linewidth spinner
20693 in property dialog.
20695 1998-09-30 Alexander Larsson <alla@lysator.liu.se>
20697 * app/connectionpoint_ops.c:
20698 * app/create_object.c:
20700 * app/handle_ops.c:
20701 * app/modify_tool.c:
20702 * lib/connection.c:
20707 * loads of objects:
20708 Changed handle->connectable to handle->connect_type.
20709 Now handles can be HANDLE_CONNECTABLE_NOBREAK, which means
20710 that their connections don't break when moving objects.
20713 Always select the last handle in an object that has
20714 the closest distance.
20716 * lib/geometry.[ch]:
20717 Added rectangle_add_point function.
20720 1998-09-27 Alexander Larsson <alla@lysator.liu.se>
20722 * app/properties.[ch]: New files. Handles the new properties
20725 * app/modify_tool.c: Changed to use new properties dialog.
20727 * app/object_ops.[ch]: Removed object_changed_callback, as it's
20728 not needed anymore. This is now handled differently in
20732 Changed the properties ops for objects. Removed typedefs
20733 ChangedObjectTime and ObjectChangedFunc needed for the old way.
20734 Added object_return_null function.
20737 * lib/render_object.c:
20739 Changed objects to use the new properties dialog.
20742 1998-09-14 Nuno Ferreira <nmrf@rnl.ist.utl.pt>
20744 * */Makefile.am (INCLUDES): Changes to work with srcdir !=
20747 * autogen.sh: New file. Copied from gtk and added a call to
20748 libtoolize. Anyone knows why this isn't done in gtk?
20750 * Removed autogenerated files.
20752 1998-09-12 Alexander Larsson <alla@lysator.liu.se>
20754 * Added call setlocale(LC_NUMERIC, "C") so that formating of
20755 floating-point numbers in postscript output will be correct.
20756 * Did some cleanup of generated postscript files.