1 2006-11-13 Lars Clausen <lars@raeder.dk>
3 * lib/font.c: Internally calculate glyph offsets at *20 font size
4 to avoid rounding problems.
6 * app/layer_dialog.c: Revamped the visibility toggling system to
7 make visibility change a properly undoable operation, making the
8 page borders resize in the process.
10 * objects/standard/line.c (line_load, line_save):
11 * objects/standard/arc.c (arc_load, arc_save):
12 * objects/standard/polyline.c (polyline_load, polyline_save):
13 * objects/standard/bezier.c (bezierline_load, bezierline_save):
14 * objects/standard/zigzagline.c (zigzagline_load, zigzagline_save):
15 Use generic load/save functions.
18 * lib/arrows.[ch]: Generic functions for loading and saving
19 arrows, including sanitizing on load (inspired by bug #144394).
21 * objects/FS/flow-ortho.c (orthflow_draw):
22 * objects/FS/flow-poly.c (orthflow_draw): Update to use modern
25 * app/modify_tool.c (modify_start_text_edit)
26 (modify_make_text_edit): Don't use dia_font_scaled_* when
29 2006-10-29 Steffen Macke <sdteffen@gmail.com>
31 * app/paginate_psprint.c: Made compile with MSVC again
33 2006-10-26 Lars Clausen <lars@raeder.dk>
35 * app/interface.[ch]: Patch from jan@uos.de: Write the accelerator
36 keys in tooltips for standard tools.
38 * app/paginate_psprint.c: Patch for better printing: Reasonable
39 file name, check before overwriting, re-popup if file write
40 failed. Thanks to Leon Stringer <leon.stringer@ntlworld.com> for
43 2006-10-26 Hans Breuer <hans@breuer.org>
45 * plug-ins/shape/shape-export.c : the icon export facility dependens
46 on the libart-size-hack; use filter_get_by_name("png-libart") instead
47 of filter_guess_export_filter(). Fixes bug #364491.
49 2006-10-19 Ignacio Casal Quinteiro <nacho.resa@gmail.com>
51 * configure.in: Added 'gl' to ALL_LINGUAS
53 2006-10-16 Hans Breuer <hans@breuer.org>
55 * objects/UML/class.c : the comment wrapping was only working for
56 plain ASCII, now it deals with UTF-8 (Vadim Zelenin, bug #349765)
58 2006-10-16 Theppitak Karoonboonyanan <thep@linux.thai.net>
60 * configure.in : Add 'th' (Thai) to ALL_LINGUAS.
62 2006-10-14 Hans Breuer <hans@breuer.org>
64 * plug-ins/vdx/vdx-import.c : don't try to print("%s", NULL). It is
65 not generally supported and crashes on win32. Fixes bug #349883
67 * lib/arrows.[hc] : draw hollow arrow heads with linewidth 0.0
68 correctly. Patch from Michael Duelli fixing bug #358176
70 * objects/standard/arc.c : don't rely on the result of atan2(inf,inf),
71 it is C-runtime dependent. Fixes infinitesimal burning of CPU cycles,
72 bug #360013 and duplicates.
74 * app/load_save.c : protect gstdio.h by GLIB_CHECK_VERSION
75 and use the <glib/ form for installed version
77 2006-10-13 Hans Breuer <hans@breuer.org>
79 * objects/UML/(actor|large_package|node|note).c : use
80 element_update_connections_rectangle() instead of about 25 lines
81 of copy and pasted code
83 * app/load_save.c : make it compile by defining W_OK if it is
84 not there and also use '#if GLIB_CHECK_VERSION(2,8,0)' instead
85 of '#ifdef GLIB_CHECK_VERSION(2,8,0)'. Strange that gcc
86 apparently compiled this
88 * lib/parent.[ch] : parent_handle_move_in_check() was moving
89 the checked point about twice as much as needed, bug #342773.
91 2006-10-12 Lars Clausen <lars@raeder.dk>
93 * app/load_save.c (diagram_data_save): If we have GTK 2.8, check
94 that we are allowed to write to the file in question (if it
95 exists) and to the directory (for backup/temp/newly created file).
97 * lib/dia_dirs.c (dia_get_lib_directory, dia_get_data_directory):
98 * lib/Makefile.am (AM_CPPFLAGS):
99 * app/Makefile.am (INCLUDES): Rename DATADIR and LIBDIR to
100 DIA_DATADIR and DIA_LIBDIR to avoid conflicts with libtool and the
101 like. Thanks to lode leroy <lode_leroy@hotmail.com> for pointing
104 * plug-ins/pstricks/render_pstricks.c (export_pstricks)
105 (draw_string): Use \psscalebox instead of \scalebox, courtesy of
106 Dan Bolser <dmb@mrc-dunn.cam.ac.uk> and the pstricks mailing list.
108 * shapes/Makefile.am (SUBDIRS):
111 * sheets/BPMN.sheet.in:
112 * sheets/Makefile.am (sheet_in_files): New shape set BPMN for
113 Business Process Modelling from anthonym@overture.com.
115 * doc/en/dia.dbk: Correctly describing connections.
117 * objects/standard/box.c: Patch from Michael Duelli
118 <m.duelli@web.de>: Set line attributes before drawing anything.
120 2006-10-08 Lars Clausen <lars@raeder.dk>
122 * configure.in: Allow compiling without freetype on Unix systems.
123 The effect of changes to non-freetype parts of the code can now be
124 tested, and I have no excuse to not fix them anymore:(
126 2006-10-01 Lars Clausen <lars@raeder.dk>
128 * app/modify_tool.c (modify_motion): Don't use null-ness of
129 connectionpoint to skip snap-to-grid for non-connectable handles.
132 * shapes/flowchart/predefdproc.shape: Fixed midpoint.
134 2006-09-27 Steffen Macke <sdteffen@gmail.com>
136 * shapes/flowchart/datasource.png:
137 * shapes/flowchart/datasource.shape:
138 * shapes/flowchart/Makefile.am:
139 * sheets/Flowchart.sheet.in:
140 * installer/win32/dia.nsi: Added new "Data source" shape
142 2006-09-24 Hans Breuer <hans@breuer.org>
144 * lib/diagdkrenderer.c : I'm going to rip out all the Freetype
145 code the next time the GDK only compile breaks
147 2006-09-23 Hans Breuer <hans@breuer.org>
149 * app/commands.c app/create_object.c app/disp_callbacks.c : add
150 missing #include "lib/parent.h"
152 * lib/makefile.msc : build textline.obj
154 * objects/makefile.msc : don't build newgroup.obj
155 * objects/misc/libmisc.c : with newgroup gone to app/ newgroup_type can
156 not be registered from the module any longer - at least not on win32
158 * plug-ins/python/makefile.msc : removed obsolete references to
159 Python 1.5, also removed misleading link to Python 2.2 debug build
161 * app/diagram.[ch] app/app_procs.c : don't use C++ keyword 'virtual'
162 as variable name: s/virtual/is_default/
164 * plug-ins/python/*.c : don't mix PyObject_NEW() with PyMem_DEL()
165 Newer versions of Python (2.5) are not tolerant about this anymore.
167 2006-09-11 Lars Clausen <lars@raeder.dk>
169 * lib/diasvgrenderer.c (draw_text_line): First stab at making svg
170 text line renderer, doesn't work yet.
172 * lib/textline.c (text_line_draw): Removed #define.
174 * lib/diagdkrenderer.c (draw_text_line): Slight cleanups.
176 2006-09-11 Steffen Macke <sdteffen@gmail.com>
178 * plug-ins/vdx/vdx-export.c:
179 * plug-ins/vdx/vdx-import.c:
180 * plug-ins/vdx/vdx-xml.c:
181 * plug-ins/vdx/vdx.h:
182 * plug-ins/vdx/visio-types.h: Update to version 0.5 (from 0.4) of
183 Visio import, thanks to Ian Redfern, who states:
185 This is the first version to support export to VDX - for now, just
186 straight lines and text, but I'm working on the more complex bits.
187 It currently writes Visio 2002 VDX as a lowest common denominator,
188 but that won't handle Beziers, so when I get round to converting them
189 to NURBS, only Visio 2003 users will be able to import them.
191 There are also several improvements to import, both to fix the layout
192 and clean up the code, and it can now import embedded bitmaps - as Dia
193 needs them to be separate files, it puts them in /tmp (or wherever
194 tempnam() goes to on your system). Alternative suggestions are welcome.
195 NURBS import still doesn't work, but everything else seems pretty
198 In addition, two small adjustments to compile on Windows
200 2006-09-08 Steffen Macke <sdteffen@gmail.com>
204 * app/dia-win-remote.c:
205 * installer/win32/dia.nsi: From Windows Explorer, open .dia files in the
206 running Dia instance (if possible). Fixes bug #70718
208 2006-09-05 Lars Clausen <lars@raeder.dk>
211 * lib/Makefile.am (libdia_la_SOURCES):
212 * lib/diarenderer.[ch]:
214 * lib/diagdkrenderer.c:
215 * lib/textline.[ch]: TextLine now ready for commit. Rendering
216 with it is much faster and significantly more precise than
217 without. All renderers should implement a good definitions for
218 this (though there is a default one that uses draw_string), as it
219 can tell the expected width of a string.
221 * lib/libdia.def: Newly defined functions.
223 2006-08-29 Lars Clausen <lars@raeder.dk>
225 * lib/textline.[ch]: New text rendering level: A self-contained
226 single-line text object that allows safer caching and hopefully
227 more accurate rendering at various zooms. Using a PangoMatrix
230 * lib/font.c: Removing out-deffed layout cache code, it'll never
231 work. Also a couple support functions for my quest of good zoom.
233 2006-08-20 Hans Breuer <hans@breuer.org>
235 * plug-ins/cairo/diacairo.c : get rid of c++ coment
236 * app/diagram.h app/diagram.c app/modify_tool.c app/select.c
237 app/undo.c : reverted 'Shortened diagram_unselect'. It broke
238 plug-ins/python, but more iomportant made one function fromm
239 app/diagram.h asymmetric with all the others. We should not leave
240 the common C OO-pattern of passing an explicit "this pointer" just
241 because that can also be deduced from the other object.
243 2006-08-18 Lars Clausen <lars@raeder.dk>
245 * lib/render.[ch]: Finally removed unused render files now known
248 2006-08-17 Steffen Macke <sdteffen@gmail.com>
250 * installer/win32/dia-diagram.ico:
251 * installer/win32/dia.nsi: Assign icon to *.dia files
253 2006-08-16 Lars Clausen <lars@raeder.dk>
255 * app/diagram.c (diagram_load):
256 * lib/object.c (dia_object_is_selectable): Two silly null-pointer
257 errors detected by Michael Duelli <m.duelli@web.de>
259 2006-08-16 Steffen Macke <sdteffen@gmail.com>
262 * app/undo.c: Include parent.h
263 * lib/libdia.def: Include dia_object_is_selectable()
265 2006-08-13 Lars Clausen <lars@raeder.dk>
267 * objects/Misc/libmisc.c:
268 * {app,objects/Misc}/Makefile.am:
269 * objects/Misc/newgroup.c:
270 * app/newgroup.c: Moved newgroup.
275 * app/select.c: Trim diagram_unselect_object() to the one required
279 * app/interface.c (dia_dnd_file_drag_data_received):
280 * app/recent_files.c (open_recent_file_callback):
281 * app/filedlg.c (file_open_response_callback):
282 * app/diagram.c (diagram_load):
283 Make the diagram created at start-up be a virtual diagram that
284 if unchanged is filled in by the first opened diagram, like Gnumeric.
286 2006-08-11 Lars Clausen <lars@raeder.dk>
288 * app/properties.c (properties_give_focus): Give focus to first
289 thing in a properties dialog. Still need our own compound widgets
292 2006-08-06 Lars Clausen <lars@raeder.dk>
294 * objects/Misc/newgroup.c:
299 * lib/object.[ch]: Work towards a more reasonable definition of
302 2006-08-06 Steffen Macke <sdteffen@gmail.com>
304 * installer/win32/dia.nsi: Save diagrams by default in "My Pictures";
307 2006-08-04 Steffen Macke <sdteffen@gmail.com>
309 * installer/win32/dia.nsi: Added vdx.dll, analog_clock.xpm
310 newgroup.xpm , *ui.xml files
312 2006-08-03 Lars Clausen <lars@raeder.dk>
314 * sheets/Makefile.am: EML sheet taken out since it's been empty
315 for five years anyway. Fixes bug #347894.
319 * doc/en/usage-layers.xml: Fixed obsolete references to
320 export-to-format. Fixes bug #346510.
322 2006-08-02 Lars Clausen <lars@raeder.dk>
324 * plug-ins/vdx/visio-types.h:
325 * plug-ins/vdx/vdx.h:
326 * plug-ins/vdx/vdx-xml.c:
327 * plug-ins/vdx/vdx-import.c:
328 * plug-ins/vdx/vdx-common.c: Update to version 0.4 (from 0.2) of
329 Visio import, thanks to Ian Redfern, who states:
331 Version 0.4 does a passable job with curves, and has the first
332 implementation of Masters. It also handles XForm1D, and fixes a
333 potential crash. It gets some layers in the wrong order and still
334 has some major positioning and sizing issues.
336 Version 0.3 gets object layout correct, and does a better job of
337 text, lines, arrows, layers etc. Some diagrams (that don't contain
338 curves) now render pretty much correctly.
340 2006-07-16 Hans Breuer <hans@breuer.org>
342 * app/cut_n_paste.[hc] : maintain a generation counter to count
343 how many times the stored object list is used
344 * app/commands.c : use the generation for paste placement. The
345 first one after cut is not moved at all: a nice way to move objects
346 between layers without changing their lateral position.
347 Also sprinkled some diagram_update_extents()
349 * shapes/Civil/civil_rotor.shape : had inverted fg/bg colors, bug #347080
351 * app/recent_files.c : don't g_return_if_fail() on common use case,
352 here an empty recent file list
354 * lib/dia_image.c(dia_image_draw) : don't try to draw anything if
355 width or height is smaller than 1 pixel
357 * plug-ins/cairo/diacairo.c : allow to export to svg if available
358 with cairo. Some tweaking of surface sizes.
360 2006-07-12 Lars Clausen <lars@raeder.dk>
362 * {tests,test/exports,data,plug-ins/vdx}/.cvsignore: Added.
364 2006-06-28 Lars Clausen <lars@raeder.dk>
366 * plug-ins/vdx/vdx-import.c: Removed create_standard_group which
369 2006-06-25 Hans Breuer <hans@breuer.org>
371 * app/display.c : avoid to call gettext on parameters for ngettext()
372 Should finally really fix bug #344896
374 * data/ui/display-ui.xml data/ui/popup-ui.xml data/ui/toolbox-ui.xml :
375 removed expand="yes" because otherwise the files can't be read with
376 gtk+-2.6.x which follows Dia can't start. Fixes bug #344895
377 * app/menus.c app/Makefile.am : also find the ui files when run from
380 2006-06-17 Gintautas Miliauskas <gintas@akl.lt>
382 * configure.in: Added lt to ALL_LINGUAS.
384 2006-06-15 Hans Breuer <hans@breuer.org>
386 * app/display.c : use ngettext() for possible plural variations.
387 (Bug #344896, tokul@users.sourceforge.net)
389 * objects/UML/class.c : use g_list_append() rather than prepend
390 when copying attributes, operations, formalparams. Fixes bug #342902
391 Also removed some superfluous outcommented code and fixed a warning.
393 * objects/UML/class.c : dont break reading comment_line_length
394 by misguide compatibility code. Fixes bug #341887
396 * plug-ins/vdx/vdx-xml.c : added file missing from 0.3
397 version commit. Fixes bug #344804
399 * lib/create.h : add create_standard_group() prototype
400 * lib/libdia.def lib/makefile.msc objects/makefile.msc
401 plug-ins/makefile.msc : added missing (files|exports)
403 2006-06-13 Lars Clausen <lars@raeder.dk>
405 * plug-ins/vdx/*: Version 0.3 of Visio import filters, thanks
406 again to Ian Redfern.
408 2006-06-12 Elijah Newren <newren gmail com>
410 * autogen.sh: Run configure by default, allow it to be skipped if
411 NOCONFIGURE is set in the environment. #344574.
413 2006-06-12 Elijah Newren <newren gmail com>
415 Pair of build fixes. #344357
417 * Makefile.am: avoid cp errors when $(srcdir) == .
419 * objects/Misc/newgroup.c: include pixmaps/newgroup.xpm instead of
420 pixmaps/group.xpm as the latter doesn't exist.
422 2006-06-12 Hans Breuer <hans@breuer.org>
424 * plug-ins/python/codegen.py : applied patch from Thomas D Ahle
425 which adds support for Java and inheritance. Closes bug #344187
427 2006-05-28 Lars Clausen <lars@raeder.dk>
429 * sheets/Misc.sheet.in:
430 * objects/Misc/Makefile.am (EXTRA_DIST):
431 * objects/Misc/pixmaps/newgroup.xpm:
432 * objects/Misc/newgroup.c:
433 * objects/Misc/libmisc.c: Start of new group model, with "visible"
434 object to test with. This object will later become the default
435 group object and thus (mostly) invisible.
437 * lib/parent.c (parent_handle_move_in_check):
438 * app/create_object.c (create_object_button_press):
439 * app/diagram.c (diagram_unparent_children_selected):
440 * app/disp_callbacks.c (ddisplay_drop_object):
441 * app/load_save.c (write_objects):
442 * objects/network/radiocell.c (radiocell_create):
443 * objects/AADL/aadlbox.c (aadlbox_create):
444 * objects/UML/large_package.c (largepackage_create):
445 * objects/UML/component.c (component_create):
446 * lib/object.[ch]: DiaObject API change: DiaObject now has gint
447 flags rather than gboolean can_parent, and utility function
448 object_flags_set. Uses of can_parent changed to call to function.
450 * doc/en/dia.dbk: Removal of obsolete epsi references.
452 2006-05-27 Hans Breuer <hans@breuer.org>
454 * app/menus.c : listen to Gtk-WARNING **: Unable to parse accelerator
455 '<control>+': it wants '<control>plus', same for minus.
457 * tests/exports/cgm/* : cvs admin -kb *.cgm
458 tests/exports/png/* tests/exports/png-libart/*
459 tests/exports/shape/* : cvs admin -kb *.png
460 tests/exports/wpg/* : cvs admin -kb *.wpg
461 mark binary files as such to not get them broken on platforms which
462 insist on replacing line-ends.
464 * app/app_procs.c app/display.c app/filedlg.c app/interface.c
465 app/load_save.c app/sheets.c lib/dia_image.c lib/message.c
466 plug-ins/python/diamodule.c plug-ins/python/pydia-error.c
467 plug-ins/wmf/wmf.cpp : fixed format string vulnerability on HEAD
468 as well. Patch from Hans de Goede, bug #342111
470 2006-05-27 Rob Staudinger <robert.staudinger@gmail.com>
476 * objects/standard/Makefile.am:
477 * plug-ins/python/Makefile.am:
478 Fix out of tree build (#340115).
480 2006-05-25 Hans Breuer <hans@breuer.org>
482 * app/interface.[hc] app/menus.c : rename ToolButton::menu_item
483 to action_name. Don't mark action names for translation. It is not
484 needed and some languages don't support CamelCase. Fixes bug #342895
486 * app/menus.c : re-added a bunch of accelerators lost in translation
487 to the GtkAction framework. Use GTK_STOCK_FULLSCREEN conditionally
488 it was not available with gtk+-2-6-x.
489 Use dia_get_data_directory() instead of hardcoded UIDATADIR.
490 * app/dia_embedd.c : explain instead of out-comment
492 * app/menu.c lib/autoroute.c lib/color.c lib/diagramdata.c
493 lib/properties.h dia_xml.c : warningectomy
495 * lib/create.h : create_standard_group()
496 * lib/libdia.def lib/makefile.msc : reflect moved stuff
498 2006-05-25 Lars Clausen <lars@raeder.dk>
500 * tests/exports/*.dia: A set of test diagrams for export
501 plug-ins. The intention is to use these for regression tests by
502 ensuring that they don't change when code is altered, or if they
503 change that a manual inspection proves them ok. The fact that an
504 export plug-in passes these tests doesn't mean it's perfect, just
505 that is hasn't degraded.
507 * plug-ins/xfig/xfig-import.c:
508 * plug-ins/vdx/vdx-import.c:
509 * lib/create.[ch]: Functions taken from xfig to create some
510 standard objects easily. Uses of them updated, no longer need to
513 * plug-ins/vdx/*: First draft of VDX (Visio XML) plug-in from Ian
514 Redfern <Ian Redfern <Ian.Redfern@LogicaCMG.com>. Also a bunch of
515 samples for the purpose from the vdxtosvg project.
517 2006-05-21 Hans Breuer <hans@breuer.org>
519 * app/interface.[hc] app/disp_callbacks.c : removed unused
520 global variable popup_shell
522 * app/pagesetup.c app/diapagelayout.c : restrict every page margin
523 to a little less than half of the page. This guarantees margins
524 leaving some useable page area and thus avoids crashing on negative
525 page sizes. Fixes bug #339562 (also applied to dia-0-95 branch)
527 2006-05-20 Hans Breuer <hans@breuer.org>
529 Patch from Robert Staudinger to base dia menus on GtkAction framework
530 instead on deprecated GtkItemFactory. Tracked in bug #340352.
531 En passant fixes bug #171397
532 * configure.in : placementof ui files added data/Makefile to AC_OUTPUT
533 * Makefile.am : added data dir
534 * app/Makefile.am : added $(uidatadir)
535 * app/commands.c app/commands.h app/dia_embedd.c app/diagram.c
536 app/diagram_tree_window.c app/diagram_tree_window.h
537 app/disp_callbacks.c app/display.c app/display.h
538 app/interface.c app/menus.c app/menus.h app/recent_files.c :
539 changed a bunch of callback signatures to take GtkAction
540 * app/pixmaps/Makefile.am
541 * data/Makefile.am data/display-ui.xml data/toolbox-ui.xml
542 data/popup-ui.xml : new files containing the menu structure
543 * lib/filter.c lib/filter.h lib/plug-ins.h : callback filter
544 registration change to be more appropriate for actions
545 * lib/libdia.def : updated externals
546 * plug-ins/python/debug_objects.py plug-ins/python/diamodule.c
547 plug-ins/python/group_props.py plug-ins/python/gtkcons.py
548 plug-ins/python/otypes.py plug-ins/python/pydiadoc.py
549 plug-ins/python/scascale.py plug-ins/python/select_by.py :
550 adapted to API change dia.register_callback to dia.register.action
552 * app/authors.h : added Robert to the authors
553 * app/commands.c : got rid of compiler warnings
555 2006-05-14 Hans Breuer <hans@breuer.org>
557 * plug-ins/python/python.c : protect the plug-in against
558 initializing if Python already is initialized. This PyDia extensions
559 is designed for embedding Python.
561 * plug-ins/python/pydia-property.c : LineStyle.dash may be either
564 * plug-ins/python/diasvg_import.py : remove FontSize debug spew
566 * lib/font.c : GDK_WINDOWING_WIN32: if called with a display already
567 setup use the pango context matching the display. Otherwise fallback
568 to a context from PangoWin32 (matches only for gtk+-2-6, not the one
569 used since gtk+-2-8 using cairo.
571 2006-05-13 Hans Breuer <hans@breuer.org>
573 [ also applied to branch dia-0-95 ]
574 * objects/UML/umloperationc: add "query" to umloperation_offsets.
575 Patch from Peter Allin, fixes bug #338336
577 [ also applied to branch dia-0-95 ]
578 * app/diagram.c(diagram_ungroup_selected) : operate on a copy
579 of data-Selected cause the original is modified during use.
580 Patch from Victor Stinner, fixes bug #334771
582 * configure.in config.h.win32 : development started again so 095+cvs.
583 Critical bugfixes may go on the dia-0-95 branch (may lead to 0.95.1
586 * app/diagram.c : removed long-time outcommented code
588 * lib/diagramdata.h lib/filter.h lib/geometry.h lib/plug-ins.h
589 lib/properties.h : C++ aware by G_BEGIN_DECLS, G_END_DECLS
591 * objects/UML/class.c : don't dia_assert_true(attr->comment != NULL)
592 it is handled everywhere else just fine.
594 2006-04-19 Lars Clausen <lars@raeder.dk>
596 * installer/win32/dia.nsi:
604 * shapes/Gane_and_Sarson/process.shape: Connectionpoint update
605 from Nick Moore <shiny.nickel@gmail.com>.
607 2006-04-17 Kjartan Maraas <kmaraas@gnome.org>
609 * configure.in: Remove obsolete entry for no_NO
610 * po/no.po: And the translation.
612 2006-04-12 Lars Clausen <lars@raeder.dk>
614 * installer/win32/dia.nsi:
622 * configure.in: Check for xgettext. Apparently
623 AM_GLIB_GNU_GETTEXT notices it's missing but doesn't abort.
625 2006-04-04 Steffen Macke <sdteffen@gmail.com>
627 * installer/win32/dia.nsi:
628 * installer/win32/langmacros.nsh:
629 * installer/win32/locale/*.nsh: Added check for outdated libgtk dll;
632 2006-04-03 Lars Clausen <lars@raeder.dk>
634 * installer/win32/dia.nsi:
642 * plug-ins/xfig/xfig-import.c: Initially place text in the right
645 2006-04-03 Steffen Macke <sdteffen@gmail.com>
647 * installer/win32/dia.nsi:
648 * installer/win32/locale/french.nsh: Added french installer
649 locale. Patch from Yannick Le Ny <y.le.ny@ifrance.com>
651 2006-04-02 Hans Breuer <hans@breuer.org>
653 * doc/pl/dia.xml : "DOCTYPE book" closes bug #142098, Roland Stigge
655 2006-03-29 Daniel Drake <dsd@gentoo.org>
657 * configure.in: Use standard pkg-config expressions to check for
658 GTK+/Glib, the GTK-supplied macro's conflict with our usage of
659 $GTK_MODULES (#335422)
661 2006-03-28 Lars Clausen <lars@raeder.dk>
663 * app/Makefile.am (dia_LDADD): Patch from Peter for bug #336377:
664 Include libs and cflags in proper places.
666 * installer/win32/dia.nsi:
674 * shapes/network/mobile_phone.{png,xpm,shape}:
675 * shapes/network/telephone.shape:
676 * shapes/network/disc.shape:
677 Updates from W. Borgert <debacle@debian.org> improving looks and
680 2006-03-26 Lars Clausen <lars@raeder.dk>
682 * objects/network/radiocell.c: Patch from W. Borgert
683 <debacle@debian.org> for extra midpoint, flicker, extraneous
686 * objects/network/basestation.c: Patch for BB from W. Borgert
687 <debacle@debian.org>.
689 2006-03-23 Hans Breuer <hans@breuer.org>
691 * lib/widgets.c : use original fontname and fallback 'sans' to
692 render the font menu. Thus crashing (in Pango) is delayed until
693 the point where one chooses a font, which can't be rendered by
694 Pango. Fixes bug #335096 as far as Dia can.
696 2006-03-21 Lars Clausen <lars@raeder.dk>
698 * installer/win32/dia.nsi:
706 * plug-ins/xfig/xfig-import.c: Last missing stack underflow check.
708 2006-03-19 Hans Breuer <hans@breuer.org>
710 * app/display.c app/preferences.c : unset transient, still issues
711 with transient handling, see bug #332828
713 * app/makefile.msc lib/makefile.msc objects/makefile.msc
714 plug-ins/makefile.msc : removed stuff supposed to be used from
715 $(TOP)/glib/build/win32/make.msc
717 * plug-ins/xfig/xfig-import.c : make it compile with strict type
718 checking [these were real errors, freeing stack passed values instead
719 of the intended local variable] :
720 xfig-import.c(580) : error C4047: 'function' : 'struct _GArray *'
721 differs in levels of indirection from 'struct _Point ** '
722 xfig-import.c(580) : warning C4024: 'g_array_free' : different types
723 for formal and actual parameter 1
725 * lib/libdia.def : export connection_adjust_for_autogap
727 * plug-ins/hpgl/hpgl.c : there is one floating point value in the
728 whole HPGL output - and it was locale dependent.
730 2006-03-12 Lars Clausen <lars@raeder.dk>
732 * installer/win32/dia.nsi:
740 * objects/UML/constraint.c (constraint_update_data):
741 * objects/UML/message.c (message_update_data):
742 * objects/UML/implements.c (implements_update_data):
743 * objects/SADT/annotation.c (annotation_update_data):
744 * objects/Jackson/phenomenon.c (message_update_data):
745 * objects/network/wanlink.c (wanlink_update_data):
746 * objects/FS/flow.c (flow_update_data): Added autogap adjustment.
748 * objects/standard/line.c:
749 * lib/connection.[ch] (connection_adjust_for_autogap): Moved autogap
750 functionality for connections.
752 2006-03-11 Lars Clausen <lars@raeder.dk>
754 * lib/diagdkrenderer.c (draw_object):
755 * lib/dialibartrenderer.c (draw_object): Don't draw highlighting
756 in the non-interactive rendering.
759 * installer/rpm/dia.spec:
760 * installer/rpm/README:
761 Moving dia.spec to installer directory, where distribution
762 maintainers can keep their own copies.
765 * objects/UML/class.h:
766 * objects/UML/umloperation.c:
767 * objects/UML/class.c:
768 Preparations to fix bug #334037: Clean away the Lisp-like
769 constructs confusing the issue.
771 2006-03-10 Lars Clausen <lars@raeder.dk>
773 * lib/object.c: Don't compare floats with ==, even in sanity checks.
775 2006-03-09 Lars Clausen <lars@raeder.dk>
777 * plug-ins/xfig/xfig-import.c: Fix three buffer overflows in color
778 reading, depth reading, and points reading. Thanks to
780 * COPYING: Added copyright info again.
782 2006-03-09 Steffen Macke <sdteffen@gmail.com>
784 * installer/win32/dia.nsi: don't uninstall old version; overwrite
787 2006-03-08 Steffen Macke <sdteffen@gmail.com>
789 * installer/Makefile.am:
790 * installer/win32/Makefile.am:
791 * installer/win32/locale/Makefile.am: Making sure that the installer
792 sources are included in the dia source distribution
793 * installer/win32/dia.nsi: Don't include makefiles in installer;
794 Add uninstaller link to start menu (bug #332650); added commandline
795 option GTKBIN to specify GTK installation directory (fixes bug #332595)
796 * installer/win32/dia-diagram.ico:
797 * installer/win32/dia-header.bmp:
798 * installer/win32/dia-install.ico:
799 * installer/win32/dia-intro.bmp:
800 * installer/win32/dia-uninstall.ico:
801 * installer/win32/dia.nsi:
802 * installer/win32/langmacros.nsh:
803 * installer/win32/locale/english.nsh:
804 * installer/win32/locale/german.nsh: Added files to build the win32
805 installer using NSIS (http://nsis.sourceforge.net)
807 2006-03-06 Lars Clausen <larsrc@raeder.dk>
815 * samples/TexChars.dia: Added sample of the escaped chars for TeX.
817 * plug-ins/pstricks/render_pstricks.c (tex_escape_string):
818 Changing escape of \, [, and ] to something that works. $ is
819 fine. Fixes parts of 333193.
821 2006-03-05 Lars Clausen <larsrc@raeder.dk>
823 * plug-ins/xfig/xfig-import.c: Fixed locale issues with FIG import.
825 * lib/orth_conn.c (orthconn_update_data):
826 * app/diagram.c: Removing debug info.
828 * app/object_ops.c (object_find_connectpoint_display): Don't
831 2006-02-26 Hans Breuer <hans@breuer.org>
833 * app/Makefile.am : define DIA_PYTHON_PATH in app/run_dia.sh
834 * plug-ins/python/python.c : if set use it to find python-startup.py
835 (bug #332599, Torben H. Nielsen)
837 * app/app_procs.c : removed // from gtk_init() [shouldn't have commited
838 my test code]. Really closes #332177, thanks Mateus César Gröess.
840 2006-02-26 Lars Clausen <lars@raeder.dk>
848 * lib/element.h (ELEMENT_COMMON_PROPERTIES): Turning off setting
849 of element_width and element_height until constraints can be
850 properly checked. Bug #328200
852 * dia.spec (Requires): Updated GTK requirements.
854 2006-02-25 Lars Clausen <lars@raeder.dk>
856 * lib/diaarrowchooser.c (dia_arrow_chooser_new): Also making sure
857 other dynamic menus have proper translation.
859 * lib/widgets.c (dia_dynamic_menu_create_string_item):
860 * app/interface.c (cmp_names):
861 * app/sheets.c (sheets_optionmenu_create):
862 * lib/sheet.c (load_register_sheet): Using C locale for sheet
863 names internally, translating on display instead. Also sorting
864 by gettext order explicitly. Bug #328570.
866 2006-02-25 Hans Breuer <hans@breuer.org>
868 * app/interface.c(get_sheet_by_name) : be more tolerant about
869 localization of the sheet name. ( Steffen Macke, #332070 )
871 * app/app_procs.c(app_init) : if GDK_WINDOWING_WIN32 call gtk_init()
872 in any case. In contrast to X11/*nix displays are not optional on
873 windoze. And we need some help of gtk to render text to bitmaps.
874 ( Rob McDonald, bug #332177 )
876 2006-02-21 Lars Clausen <lars@raeder.dk>
882 * config.h.win32: Update to -pre2.
884 * lib/beziershape.c (add_handles): Fixing CP pos calculation for
885 adding new CP's. Fixes bug #331557.
887 2006-02-20 Lars Clausen <lars@raeder.dk>
889 * lib/diarenderer.c (find_center_point): Better handling of some
891 (draw_arc_with_arrows): Draw line in all cases. Doesn't handle
892 the truly degenerate cases well enough yet, but at least doesn't
893 break on common cases. Probably need to do something special for
894 arcs with start and end point the same. Improves but does not
895 entirely fix bug #331372.
897 2006-02-20 Hans Breuer <hans@breuer.org>
899 * plug-ins/python/Makefile.am : dot.py was missing from EXTRA_DIST
901 2006-02-18 Hans Breuer <hans@breuer.org>
903 * plug-ins/metapost/render_metapost.c : text position gives the
904 baseline neither top nor bottom. ( Rob McDonald, #331491 )
906 * plug-ins/wmf/wmf.cpp : finally respecting the print margins
907 ( Rob McDonald, #331371 )
908 * plug-ins/wmf/wmf_gdi.h : some more constants not useful
909 without a GDI printer (driver)
911 2006-02-17 Hans Breuer <hans@breuer.org>
913 * plug-ins/metapost/render_metapost.c(draw_string) : dont query
914 the font for it's height but use the 'height' parameter passed
915 in. Close enough to the desired size - and independent of zoom -
916 to close bug #331489 (Rob McDonald)
918 2006-02-12 Lars Clausen <lars@raeder.dk>
925 * config.h.win32: Updates for version 0.95-pre1.
927 2006-02-12 Hans Breuer <hans@breuer.org>
929 * app/makefile.msc : build three components dia.exe (console
930 application), diaw.exe (windows application) and dia-app.dll
931 containing almost all of Dia's application shared between
933 * app/main.c app/winmain.c app/app_procs.c app/dia.def : some
934 refactoring to accomplish the new dependency layout
935 * objects/makefile.msc plug-ins/python/makefile.msc : need to
936 link dia-app.lib now - if at all depending on app/*
938 2006-02-11 Hans Breuer <hans@breuer.org>
940 * makefile.msc : nmake -f makefile.msc just compiles now
941 * app/makefile.msc lib/makefile.msc : make not using FT2
942 on win32 the default (works around bug #150813 by diabaling it)
943 * objects/makefile.msc plug-ins/makefile.msc : remove -GD from
944 $(CC) command line. It isn't understood by newer versions of cl.
946 * app/authors.h : reflect the recent maintainers change
948 * app/display.c app/load_save.c : removed debug spew
950 * app/winmain.c : improved redirection
952 2006-02-05 Hans Breuer <hans@breuer.org>
954 * app/menus.[ch] app/diagram.c : the GNOME specific menu code is dead
955 since 0.94. Fix somne left-overs, also properly disable the duplicate
958 * po/POTFILES.in : added objects/network/wanlink.c
960 2006-02-05 Hans Breuer <hans@breuer.org>
962 * lib/dialibartrenderer.c(renderer_finalize) : dont unref
963 parent_instance.font here. It will be done in DiaRenderer::finalize()
964 Just another reason for crashing at diagram close with libart
965 renderer involved ...
967 2006-02-04 Hans Breuer <hans@breuer.org>
969 * objects/standard/image.c : added mainpoint, patch from
970 Torben H. Nielsen fixing bug #329603
972 * app/layer_widget.c : avoid writing to Layer::connectable for a
973 diagram possibly already gone. Fixes bug #329096.
975 * lib/persitence.c(persistence_load) : dont leak filename
976 in case of not existing file
978 Code review via regex "[^_l>p](malloc|free|realloc)\("
979 * objects/fs/function.c : what's g_strdup() must be g_free()'d
980 * plug-ins/dxf/dxf-import.c : use g_realloc()/g_free()
981 * plug-ins/xfig/xfig-import.c : use g_free() instead of plain free()
983 * app/filedlg.c(file_save_as_response_callback) : before destroying
984 the save as dialog we need to drop the dialogs diagram reference.
985 Fixes behaviour described in bug #123225#c7
987 * app/interface.c(get_sheet_names) : need to sort sheets by their
988 display name to really fix bug #160101.
990 * objects/UML/association.c : dont leak the role_name calculated
991 with visibility attribute, use g_strdup_printf() instead of strcat().
993 * configure.in : fix typo in error message
995 * lib/object.c : remove duplicated prototype
996 * lib/element.c : element_update_connections_rectangle() assumes nine
997 connection points, i.e. requires 'mainpoint'. g_assert() for this.
999 2006-02-03 Hans Breuer <hans@breuer.org>
1001 * objects/network/bus.c : allow to tint it. Patch from
1002 Torben H. Nielsen, closes bug #328580.
1003 * objects/network/wanlink.c : allow to tint this as well.
1005 2006-01-29 Hans Breuer <hans@breuer.org>
1007 * app/render_libart.c(draw_line) : make setting the pixel side-effect
1008 free; account for it in now (less) magic increments. Fixes bug #312147
1010 2006-01-28 Hans Breuer <hans@breuer.org>
1012 * po/checktrans.py : make it work with recent pyxml (unknown url type)
1013 * po/AADL.sheet.in : remove duplicated _description
1014 => translation report works again
1016 * app/display.c : revert back to "_Discard Changes" to avoid
1017 accelerator clash. Also gtk_button_new_with_mnemonic() to
1018 'expand' the accelerator.
1020 * lib/dia_svg.c(dia_svg_style_init) : need to initialize
1021 linecap, linejoin, linestyle to avoid invalid settings.
1022 (Nguyen Thai Ngoc Duy, bug #328945)
1023 * lib/diagdkrenderer.c : add a place fro breakpoint to
1026 * lib/diarenderer.c(setfont) : if we get passed in the
1027 same font it must be ref'd before unref.
1029 * lib/text.c(set_string) : don't eat the trailing new-line
1032 * app/app_procs.c app/display.c app/filedlg.c
1033 attempt to provide more HIG compliant dialogs. Patch from
1034 Nguyen Thai Ngoc Duy, part of bug #138183
1036 * app/recent_files.c(recent_file_history_clear_menu) : instead of
1037 messing with GtkMenuShell::children and gtk_widget_destroy() just
1038 use gtk_container_remove. Avoids memory corruption causing the
1039 most 'random' crashes recently.
1041 * objects/UML/message.c : can't use PROP_STD_TEXT_COLOUR_OPTIONAL
1042 cause it has PROP_FLAG_DONT_SAVE. It is designed to fill the
1043 TextAttributes - not some subset. Fixes bug #327701
1044 * objects/UML/implements.c objects/UML/generalization.c
1045 objects/UML/constraint.c objects/UML/object.c
1046 objects/UML/large_package.c objects/UML/realizes.c : same here.
1047 * objects/UML/dependency.c : same here. Also draw the "Name" with the
1048 given color, not only the Stereotype.
1049 * objects/UML/class.c : same here. But we also need to restore
1050 explicit restore "text_color" for the load case.
1052 2006-01-27 Hans Breuer <hans@breuer.org>
1054 * configure.in : error out if GLib/GTK+ version is lower than required
1056 * app/filedlg.c lib/widgets.c : more default responses. Patch
1057 from Nguyen Thai Ngoc Duy, part of bug #138183
1059 * NEWS : Main point feature correction. The line is supposed to
1060 start at the border of the object not the bounding box.
1062 * app/commands.c : respect difference between documenters and
1063 translators and show both in about dialog. Closes bug #328711.
1065 * app/interface.c : instead of g_warning for missing shape icon
1066 but use message_warning and show the 'missing' icon
1068 * lib/dialibartrenderer.c : with Gtk+ 2.8 gdk_draw_layout() does
1069 not match pango_win32_get_context(). Use gdk_pango_get_context ().
1070 Also removed my special win32-modified-pango code for draw_string()
1071 without the help of gdk.
1073 * Makefile.am : include MAINTAINERS file in tarball
1075 * lib/conectionpoint.h : removed double include of "geometry.h"
1077 2006-01-22 Hans Breuer <hans@breuer.org>
1079 * app/splash.c app/commands.c : dont share the logo and finally leak
1080 it. Instead both place load and unref the logo themself.
1081 Also unbreak GNOME case.
1083 * app/commands.c : use GtkAboutDialog instead of homegrown GTK+
1084 or GNOME specific one. 120 lines less code and more standard.
1085 * configure.in : require GTK+ >= 2.6
1087 * app/diapagelayout.c app/diaunitspinner.c app/layer_dialog.c :
1088 make GtkTypeInfo static const as usual elsewhere
1090 * app/recent_files.c : it almost certainly is an error to ignore
1091 the return value of g_list_remove_link()
1093 * lib/arrows.c lib/bezier_conn.[ch] lib/beziershape.h
1094 lib/boundingbox.[ch] lib/color.[ch] lib/connectionpoint.c
1095 lib/create.h lib/dia_svg.c lib/dia_xml.c lib/diaarrowchooser.c
1096 lib/diagramdata.[ch] objects/UML/activity.c objects/UML/class.[ch]
1097 objects/UML/uml.h : documentation fixes
1099 * lib/object.h lib/diagramdata.h : avoid circular inclusion
1100 * lib/connectionpoint.h lib/focus.h lib/group.h lib/handle.h
1101 lib/properties.h lib/sheet.h lib/diamenu.h
1102 : dont include "object.h", "diatypes.h" is enough.
1103 Rule of thumb: only headers declaring an inheritant of DiaObject
1104 should include "object.h"
1105 * lib/diarenderer.h : include "font.h" not strictly needed by
1106 this header, but needed in almost any plug-in/
1107 * app/diagram_tree_menu.c app/dialogs.[hc] app/display.c
1108 app/export_png.c app/interface.c app/load_save.c app/sheets.c
1109 app/sheets_dialog.c app/sheets_dialog_callbacks.c
1110 lib/diagdkrenderer.c lib/object.c lib/propobject.c
1111 lib/text.c plug-ins/gprint/gnomeprint.c plug-ins/pixbuf/pixbuf.c
1112 plug-ins/svg/render_svg.c
1113 : some .c files now need to include "object.h" or <gtk/gtk.h>
1114 or e.g. "intl.h" direct, formerly dargged in indirectly
1115 * plug-ins/pgf/render_pgf.c : explicit inclusion of "arrows.h"
1117 2006-01-21 Hans Breuer <hans@breuer.org>
1119 * lib/connection.c lib/connection.h lib/connectionpoint.h
1120 lib/diagramdata.h lib/diarenderer.h lib/diatypes.h
1121 lib/element.h lib/geometry.h lib/handle.h lib/objchange.h
1122 lib/object.c lib/object.h : documentation tweaking
1124 * objects/UML/class_dialog.c(attributes_create_page,
1125 operations_create_page) : dont connect
1126 to a not exisiting signal. Avoids "GLib-GObject-CRITICAL **:
1127 g_signal_connect_closure_by_id: assertion 'signal_id > 0' failed"
1128 (This was a leftover of introducing the GtkTextView instead of GtkEntry)
1130 * objects/UML/class_dialog.c objects/UML/class.c objects/UML/class.h :
1131 Introduce 'comment_tagging' switch which allows to hide the rendering
1132 {documentation = } Maybe a choice between ugliness and non-standard.
1133 Fixes bug #326214. (Unrelated: started to adapt casing of variables
1134 to Dia's common coding style)
1136 * lib/object_defaults.c : pass is_default=TRUE to object_copy_props
1137 lib/proplist.c : fixed pdtpp_default()
1138 lib/propobject.c : correctly reflect is_default
1139 * object/UML/class.c : correct setting of PROP_FLAG_NO_DEFAULTS and
1140 PROP_FLAG_DONT_MERGE. With the above this fixes bug #320934
1142 * lib/propdialogs.c : if PROP_NO_DEFAULTS is set dont try to show a
1143 widget in defaults dialog
1145 * app/display.c(initialize_display_widgets) : also append the Input
1146 Methods menu to the diagram menubar. Now fixes bug #327862.
1148 * config.h.win32 : #undef LOCALEDIR
1149 * app/app_procs.c : runtime calculation of localedir. It now is
1150 $(executable_dir)/../locale. Should help fix bug #309763
1152 * sheets/AADL.sheet.in : remove left over xml:lang tag.
1153 ( Nguyen Thai Ngoc Duy, bug #327519)
1155 * lib/dialibartrenderer.c : make text rendering work without
1156 PangoFT2 and PangoWin32
1159 2006-01-18 Lars Clausen <lars@raeder.dk>
1161 * objects/UML/class.h: Enabling UML class mainpoint after failure
1164 * app/grid.c: Fix bug with grid being incorrectly drawn when gap <
1167 2006-01-14 Hans Breuer <hans@breuer.org>
1169 * app/paginate_psprint.c : ensure we are not producing pages for
1170 epsilon. Floating imprecision is fun. Fixes bug #133856.
1171 * app/paginate_gdiprint.cpp : same here.
1173 * plug-ins/pstricks/render_pstricks.c(draw_string) : now that I've
1174 found the nice samples from bug #156171 it was quite simple to
1175 confirm that the y value need indeed to be inverted. Fixes bug #304974.
1176 Also special case strings starting with \tex - i.e. dont escape them -
1177 to keep the use-case of direct tex input.
1179 * lib/debug.c : #include <glib/gprintf.h> not just <gprintf.h>
1182 2006-01-14 Hans Breuer <hans@breuer.org>
1184 * samples/Self/umlclass.dia : (new file) documenting part of the
1185 object relations of UMLClass. Also good for testing connections.
1187 * lib/debug.c : replace wrong call to vprintf() - missing file
1188 descriptor - with the more appropriate g_vprintf(). Thus
1189 dia_assert_true() does not smash the stack anymore on win32.
1191 * objects/UML/class.c objects/UML/class_dialog.c objects/UML/uml.h
1192 objects/UML/umlattribute.c objects/UML/umloperation.c :
1193 reverted the memory managment of UMLAttribute/UMLOperation's
1194 ConnectionPoint(s) back to how it was up until 0.94. This finally
1195 makes the UMLClass work again including undo/redo support. Fixes
1196 bug #314153 and en passant bug #326453.
1198 2005-01-12 Lars Clausen <lars@raeder.dk>
1200 * objects/UML/umlattribute.c:
1201 * objects/UML/class_dialog.c: Better way of handling
1202 connectionpoints: Don't copy them, just reference them. Finally
1203 fixes bug #314153 (not quite the pi bug:)
1205 * app/menus.c (display_menu_items):
1206 * app/filedlg.c (file_open_response_callback):
1207 * app/display.[ch] (copy_display):
1208 * app/commands.[ch] (view_clone_view_callback):
1209 Added functionality to clone display. Preparation for storing
1210 display info in diagram files (not happening this version, though).
1212 * INSTALL (NOTE FOR WINDOWS USERS): Added note for non-compiling
1213 users pointing at dia-installer.
1215 2006-01-08 Hans Breuer <hans@breuer.org>
1217 * shapes/Gane_and_Sarson/Makefile.am : correct spelling of filenames.
1218 (Narcelio Filho, #326075)
1220 * objects/AADL/aadl.h : remove #include "app/display.h". It is not needed,
1221 plug-ins should not depend on app/* and it even breaks 'make distcheck'.
1222 * objects/AADL/Makefile.am : added edit_port_declaration.h
1223 * app/Makefile.am : added diaconv.c to EXTRA_DIST
1224 => 'make distcheck' passes again.
1226 * configure.in : use some more of gcc's useful warnings
1228 * lib/geometry.h : removed unused functions just producing warnings
1229 [sometimes it's good to read compiler warnings]
1230 * plug-ins/cairo/diacairo.c : somehow a function call got lost
1231 (left-hand operand of comma expression has no effect)
1232 * plug-ins/metapost/render_metapost.c : dia_message_filename()
1233 wants a char* not a FILE* (passing arg 1 of `dia_message_filename'
1234 from incompatible pointer type)
1237 2006-01-07 Hans Breuer <hans@breuer.org>
1239 * objects/custom/shape_info.c(parse_path) : handle the case of
1240 invalid path data more gracefully, i.e. show a warning instead
1241 of crashing later on.
1242 * plug-ins/svg/svg-import.c(read_path_svg) : ditto.
1244 * configure.in sheets/Makefile.am shapes/Gane_and_Sarson
1245 shapes/Makefile.am : added Gane & Sarson shapes
1246 (Nick Moore, #319544)
1248 * objects/makefile.msc : building AADL on win32
1250 2006-01-06 Hans Breuer <hans@breuer.org>
1252 * objects/AADL/aadl.h : avoid redefinition warnings by #undef
1253 min, #undef max before local definitions
1254 * objects/AADL/aadl.h : more prototypes
1255 * objects/AADL/aadltext.c : for C89 declarations must be at the
1256 beginning of a block. And Dia *must* be compileable with C89.
1258 * objects/AADL/** objects/Makefile.am sheets/Makefile.am
1259 configure.in : AADL plug-in from Pierre Duquesne. See
1260 http://mail.gnome.org/archives/dia-list/2006-January/msg00005.html
1261 for more information
1262 * sheets/AADL.sheet.in : from the above patch but modified
1263 to become translatable like the other sheet files. That is: the
1264 french translation got temporary removed cause it does not belong here.
1266 * plug-ins/pgf/render_pgf.c : no C99/C++ comments please
1268 * app/app_procs.c app/diaconv.c : get rid of run-on sentences
1269 (Adam Weinberger, bug #325567)
1271 * app/menus.c : removed some keybindings with <control><shift>[0-9A-F]
1272 and change some other to use <control><alt>. They collide with GTK's
1273 Unicode input feature. Fixes bug #320495. For rationale see:
1274 http://developer.gnome.org/projects/gup/hig/2.0/input-keyboard.html
1276 * app/display.c : pay attention to g_warnings() [should always run
1277 with --g-fatalwarnings ;)]. Only create the menubar IM menu if there
1278 actually is a menu bar.
1280 * lib/diarenderer.c : the righthand calculation accidentially broke
1281 some arcs direction. Should be fixed again.
1283 2006-01-02 Hans Breuer <hans@breuer.org>
1285 * app/display.c(new_display) : also append the Input Methods menu to
1286 the diagram menubar. Fixes bug #308576.
1288 * lib/widgets.c(dia_dynamic_menu_reset) : don't use an already
1289 freed string to dia_dynamic_menu_select_entry(). Fixes bug #323592.
1291 * lib/sheet.c(dia_sheet_sort_callback) : sort sheets according to
1292 their localized name (with g_utf8_collate). Thus not relying on the
1293 capabilities of the C libraries strcmp(). Fixes bug #160101.
1295 * lib/diarenderer.c(draw_arc_with_arrows) : don't recalculate center
1296 point and width from the (arrow-)corrected new points. Otherwise a
1297 whole new wrong arc may emerge. Fixes bug #312641.
1299 2006-01-01 Hans Breuer <hans@breuer.org>
1301 * objects/custom/custom_object.c(cutom_update_data) : depending
1302 on the handle moving let one scale (x or y) take precedence.
1303 (bug #308515, Eric Deplagne)
1305 * objects/UML/class.c : only perform the attributes check with
1306 attributes visible to ged rid of false warnings
1307 * objects/UML/class_dialog.c : need to setup Connection::object
1308 after uml_attribute_new() and uml_operation_new(), again less
1309 warnings but bug #314153 still not fixed.
1313 * plug-ins/python/diasvg.py : more correct svg by also writing
1314 xmlns="http://www.w3.org/200/svg"
1316 * plug-ins/python/dot.py : skip unconnected connection lines
1317 * plug-ins/python/Makefile.am : added dot.py
1319 * plug-ins/python/pydiadoc.py plug-ins/python/codegen.py : fixed
1322 2005-12-31 Hans Breuer <hans@breuer.org>
1324 * objects/UML/class.[hc] objects/UML/class_dialog.c : removed the
1325 caching of UMLClass::attributes_strings, operations_strings,
1327 It was broken by the recent code restructuring in bug #303744 and
1328 - if necessary at all - nowadays it should be done on the
1329 UMLAttribute, UMLOperation, UMLFormalParameter level anyway.
1330 A small, much needed simplification of the code.
1332 2005-12-30 Hans Breuer <hans@breuer.org>
1334 * objects/UML/class.c : Patch from Dave Klotzbach
1335 fixes crash bug #325151
1337 * app/app_procs.c : add command line parameter --nonew to allow
1338 avoiding the empty start-up diagram
1339 Also give a hint on where the object-libs were missing.
1340 Finally work around a misbehaviour upstreamm :
1341 g_option_context_parse() returning FALSE but not setting error.
1343 * app/commands.c app/app_diagram_tree.c app/interface.c :
1344 Use gdk_pixbuf_render_pixmap_and_mask_for_colormap as suggested by
1345 http://www.gtk.org/api/2.6/gdk/gdk-Pixbufs.html#gdk-pixbuf-render-pixmap-and-mask
1347 * lib/widgets.c : image file selection finally ported to the new
1348 gtk file chooser. Fixes bug #309383
1350 2005-12-28 Hans Breuer <hans@breuer.org>
1352 * app/commands.c(file_new_callback) : convert to filename encoding before
1353 passing to new_diagram(), fixes bug #322400
1355 * app/interface.c(create_display_shell) : don't clip width on screen
1356 height - now commited. Also lazy creation of tooltips.
1358 * objects/UML/actor.c : Actor is finally resizable, fixes bug #66915
1360 2005-12-27 Hans Breuer <hans@breuer.org>
1362 * app/diapsft2renderer.c(draw_bezier_outline) : only call
1363 FT_Outline_Decompose() when FT_GLYPH_FORMAT_OUTLINE.
1364 Prefers no text output over crashing for bug #144212
1366 * app/interface.c : removed superfluous call to dia_canvas_set_size().
1367 Suggested by Roland Stigge, fixes bug #148149.
1369 * plug-ins/dxf/dxf-import.c : don't complain too loud on Binary
1370 DXF. It is not supported at all. Fixes bug #322101
1372 * lib/geometry.c : removed the ifdefed GLIB_CHECK_VERSION(2,7,0)
1373 define G_IMPLEMENT_INLINES. It breaks again with glib-2-8
1376 2005-12-27 Hans Breuer <hans@breuer.org>
1378 * app/navigation.c : protect on_da_button_release_event() against being
1379 called twice. Also only popdown the navigation window after the first
1380 draw (reusing nav->is_first_expose). Fixes bug #151696
1382 * app/interface.c(create_display_shell): don't clip width on screen height,
1385 * lib/plug-ins.c : fixed typo in comment
1387 * lib/libdia.def : updated externals
1388 * lib/makefile.msc : build debug.obj
1390 * plug-ins/makefile.msc : building pgf in the right alphabetical order
1391 * plug-ins/pgf/render_pgf.c : include <glib/gprintf.h>
1393 2005-12-08 Lars Clausen <lars@raeder.dk>
1396 * plug-ins/pgf/pgf.c:
1397 * plug-ins/pgf/render_pgf.[ch]:
1398 * plug-ins/pgf/Makefile.am:
1399 * plug-ins/Makefile.msc:
1400 * plug-ins/Makefile.am (SUBDIRS):
1401 * configure.in: Patch from Moritz Kirmse <momomaniac@gmail.com>: Add
1402 support for PGF output for including in (La)TeX documents that
1403 allows PDF generation.
1405 * samples/render-test.dia: Added samples of text in different
1406 sizes, standard fonts and styles with size markers.
1408 2005-12-04 Lars Clausen <lars@raeder.dk>
1410 * lib/Makefile.am (gen_sources): Mark marshal files as generated.
1411 (BUILT_SOURCES): Added marshal files.
1413 2005-12-03 Lars Clausen <lars@raeder.dk>
1415 * lib/Makefile.am (diamarshal.c): Fix marshal rules to not talk
1416 about $(srcdir) and confusing everybody.
1419 * lib/diagramdata.c:
1420 * lib/diagramdata.h:
1421 * lib/diamarshal.list:
1422 * plug-ins/python/pydia-diagram.c:
1423 * plug-ins/python/pydia-diagramdata.c:
1424 * plug-ins/python/python-startup.py: Patch from David Johansson
1425 <david.lgj@gmail.com>: Add signals emitted when objects are
1426 inserted or removed.
1428 2005-11-13 Lars Clausen <lars@raeder.dk>
1430 * app/display.c (update_zoom_status): Fix of bug #321387: Avoid
1431 (small) buffer overflow by using g_strdup_printf instead of sprintf.
1433 2005-11-09 Lars Clausen <lars@raeder.dk>
1436 * plug-ins/dxf/dxf-import.c (import_dxf): Don't use g_error except
1437 when reaching the statement is a bug. Using g_critical and exit() for
1438 fatally wrong inputs.
1440 * objects/UML/uml.c:
1441 * objects/UML/class.c: Patch from dklotzbach@foxvalley.net (dave
1442 Klotzbach): Fixes template rendering and converts home-brew inline
1443 doc format to javadoc. Doesn't yet fix bug #320934, but turns it
1446 2005-11-07 Lars Clausen <lars@raeder.dk>
1448 * lib/object.[ch]: Add 'enclosing box' as opposed to 'bounding
1449 box' since several objects have problems of using bounding box in
1450 different ways (see bug #300055). For now, enclosing box ==
1451 bounding box, but over time objects will learn to expand the
1452 bounding box to include things only rendered interactively.
1454 * app/modify_tool.c (modify_motion): Make sure highlight is reset
1455 when moving between overlapping objects.
1457 * app/interface.c (interface_toggle_mainpoint_magnetism): Redraw
1458 diagram after toggling to make red X's come and go.
1460 * lib/font.c: #ifdef'd out layout cache for bug #307320. Define
1461 it if you need faster rendering and aren't afraid of crashbugs:)
1463 * lib/objchange.c: Bugfix from dklotzbach@foxvalley.net
1464 (dave Klotzbach): Fixes null pointer problems in free function.
1466 * objects/UML/class.c
1467 * objects/UML/class.h
1468 * objects/UML/class_dialog.c: Patch from dklotzbach@foxvalley.net
1469 (dave Klotzbach): Make UML comments conform to UML 1.0 standard
1470 and allow multi-line comments. Ugly as hell, but standard. Time
1471 for a 'Strict UML' option? Fixes bug #303744.
1473 * objects/UML/state.c: Patch from Peter Allin <peter@peca.dk>: Add
1474 entry, exit and do descriptions to a state object. Fixes bug #65434.
1476 2005-11-03 Lars Clausen <lars@raeder.dk>
1481 * lib/bezier_conn.c:
1482 * lib/boundingbox.c:
1485 * lib/connectionpoint.c:
1490 * lib/diaarrowchooser.c:
1492 * lib/diagdkrenderer.c:
1493 * lib/diagramdata.c:
1498 Added documentation java-doc style. Also a few trivial cleanups.
1500 2005-10-13 Lars Clausen <lars@raeder.dk>
1502 * lib/connectionpoint.h (DIR_ALL): Parentheses around operations
1505 * plug-ins/hpgl/hpgl.c (export_data): Correct error message.
1510 * objects/UML/class.[ch]:
1511 * objects/UML/uml.h:
1512 * objects/UML/umlattribute.c:
1513 * objects/UML/umloperation.c:
1514 * objects/UML/class_dialog.c:
1515 Rework of the UML class attribute/operation handling. Now doesn't
1516 copy connection points into the dialog data, but only the "flat"
1517 data. As part of debugging made sanity check functionality.
1518 Currently still dies when deleting an attribute/operation that has
1521 2005-10-09 Hans Breuer <hans@breuer.org>
1523 * lib/properties.h : prefer american spelling of colo(u)r for
1524 user visible strings - i.e. to be translated ones.
1525 * objects/UML/uml.c : it is Implementation. Together fixes bug #313929
1527 * po/*.po : updated (by 'make distcheck')
1529 2005-10-09 Hans Breuer <hans@breuer.org>
1531 * app/display.c : allow !"toolbox on top" without restart.
1532 (Chris Hellberg, bug #310702)
1534 2005-10-09 Hans Breuer <hans@breuer.org>
1536 * lib/arrows.c : patch from Radek Krahl fixing the blanking
1537 of two arrowheads, bug #310157
1539 2005-10-08 Hans Breuer <hans@breuer.org>
1541 * plug-ins/python/group_props.py : show a descriptive text instead of an
1542 empty table if there are no common properties to change. Fixes bug #314432
1544 2005-10-08 Hans Breuer <hans@breuer.org>
1546 * objects/UML/transition.c : inverted default direction of
1547 the direction. Patch from Peter Allin, fixes bug #318049
1548 [You possibly need to 'rm ~/.dia/defaults.dia' to have an effect]
1550 2005-10-08 Hans Breuer <hans@breuer.org>
1552 * app/Makefile.am objects/standard/Makefile.am : match the
1553 referenced icons to the needed. Make 'make distcheck' pass
1554 and thus fixes bug #312152
1556 * objects/standard/textobj.c : no C++ comments please!
1558 2005-10-08 Hans Breuer <hans@breuer.org>
1560 * objects/standard/textobj.c : preserve the position set on create
1561 [makes e.g. text positioning of diasvg_import.py work]
1563 * plug-ins/python/diasvg_import.py : restrict what eval() can do
1564 with strings from svg files. Fixes the arbitrary code execution from
1567 * app/pixmaps/mainpoints-(on|off).png : new icons to toggle center point
1568 magnetism. At least they are distinguishable from grid snapping.
1569 * app/makefile.msc app/Makefile.am : use them
1571 * lib/focus.c(reset_foci) : also remove_focus(). This fixes bug #172851
1572 I also can't reproduce bug #309044 anymore (on win32).
1574 2005-10-01 Lars Clausen <lars@raeder.dk>
1576 * lib/connectionpoint.h (DIR_ALL): Parentheses around | expressions.
1578 * plug-ins/hpgl/hpgl.c (export_data): Listen to warnings and don't
1579 pass FILE * as gchar *.
1581 * lib/debug.[ch] (dia_assert_true): Debugging aids.
1583 2005-09-29 Lars Clausen <lars@raeder.dk>
1585 * objects/UML/class.h: Enabling mainpoints for UML.
1587 * objects/UML/class.c (umlclass_set_props): Make sure to always
1588 realloc connection point list.
1590 2005-09-26 Ahmad Riza H Nst <rizahnst@id.gnome.org>
1592 * configure.in: Added "id" in ALL_LINGUAS line.
1594 2005-09-14 Lars Clausen <lars@raeder.dk>
1596 * objects/UML/class.c (umlclass_load): Set mainpoint obj upon
1597 loading. Fixes bug #315427.
1599 2005-09-11 Hans Breuer <hans@breuer.org>
1601 * objects/standard/arc.c objects/standard/textobj.c : fix
1602 C99isms, Dia is supposed to compile with C89 like msvc
1604 * app/makefile.msc : use the wrong center-point-magnetism
1605 icons for the win32 build, too.
1607 * plug-ins/python/pydia-error.c : dont crash on C escape
1608 sequences in the error string
1609 * plug-ins/python/pydia-render.c : dont free filename twice
1611 * plug-ins/python/dot.py : start of an exporter to DOT language
1612 which can be processed by www.graphviz.org tools
1614 2005-09-05 Iñaki Larrañaga <dooteo@euskalgnu.org>
1616 * configure.in: Added "doc/eu/Makefile" for Basque documentation.
1618 2005-09-04 Iñaki Larrañaga <dooteo@euskalgnu.org>
1620 * configure.in: Added "eu" to ALL_LINGUAS.
1622 2005-09-04 Lars Clausen <lars@raeder.dk>
1624 * lib/element.h (ELEMENT_COMMON_PROPERTIES): Remove object
1625 dimensions frame to make ext_attributes work again.
1627 * app/grid.c (snap_to_grid): Bugfix from Zhang Lin-bo
1628 <zlb@lsec.cc.ac.cn>: Use dynamic grid setting from diagram, not
1631 * objects/standard/textobj.c: Applied patch from Grégoire Dooms
1632 <dooms info ucl ac be>: Add vertical alignment for standard text
1633 object. This should really be moved into lib/text.c and apply to
1636 2005-09-03 Lars Clausen <lars@raeder.dk>
1638 * app/connectionpoint_ops.c (connectionpoint_draw): Only draw
1639 mainpoint when snap-to-objects is not on.
1641 * app/Makefile.am (ICON_PNG_PAIRS):
1642 Fake icons for snap-to-objects.
1644 * app/commands.[ch]:
1645 * app/menus.c (menus_get_image_menubar):
1647 * app/interface.c (create_display_shell):
1648 * app/create_object.c (create_object_button_release):
1649 * app/disp_callbacks.c (ddisplay_drop_object):
1650 * app/object_ops.[ch]:
1651 * app/connectionpoint_ops.c (ddisplay_connect_selected):
1652 * app/modify_tool.c (modify_button_release):
1654 Togglable snap-to-objects, also doesn't snap when moving entire
1655 object. This should be more reasonable in practical use, and can
1656 be turned off when you want to place your arrows more precisely.
1658 2005-08-06 Hans Breuer <hans@breuer.org>
1660 * plug-ins/cairo/diacairo.c : increased #ifdef MESS:
1661 With Gtk+-2.7.x cairo must be available so the HAVE_CAIRO case
1662 becomes even more ugly when the user has choosen *not* to build
1663 the diacairo plug-in. If noone can come up with a very convincing
1664 reason why it has to be done this way I'll probably go back to
1665 my original dont-build-at-all approach when this breaks the
1668 2005-08-02 Lars Clausen <lars@raeder.dk>
1670 * objects/standard/arc.c: Patch from Grégoire Dooms
1671 <dooms@info.ucl.ac.be>: An almost perfect arc autogap
1672 implementation. "There is still a small bug when the non
1673 connected end of the arc is very close to the border of the
1674 connected object. I think this is due to rounding errors in the
1675 code for SHIFT-move handle which is reused to trim the arc in
1676 autogap. Also it is not yet possible to have a startgap and an
1677 endgap from/to the same central CP."
1679 2005-07-31 Hans Breuer <hans@breuer.org>
1681 * plug-ins/cairo/diacairo.c congigure.in : dont wait any
1682 longer for distributions official packages - depend
1683 on cairo 0.6.0 - fixes bug #307144
1685 2005-07-20 Hans Breuer <hans@breuer.org>
1687 * lib/element.h : remove stray NULL in ELEMENT_COMMON_PROPERTIES
1688 which must match PropDescription, that is make it at least compile.
1690 2005-07-19 Hans Breuer <hans@breuer.org>
1692 * app/diagram.c(new_diagram) : what comes from g_object_new()
1693 MUST NOT be g_free()'d
1695 * lib/message.h : added dia_message_filename() here as well.
1696 Mainly to not touch all files using. They *all* where using
1697 lib/message.h already! Maybe the implemantation should be moved
1698 to message.c as well cause the function has *nothing* to do
1699 with dynamic filename resolving. It is a wrapper around
1700 g_display_filename() mostly (only?) used for messages ...
1701 * lib/dia_dirs.c(dia_message_filename) : fix C99ism
1703 2005-07-18 Lars Clausen <larsrc@raeder.dk>
1705 * objects/EML/instantiation.c (instantiation_load):
1706 * objects/EML/interaction-ortho.c (interaction_ortho_type)
1707 * objects/ER/participation.c (participation_type):
1708 * objects/FS/flow-ortho.c (orthflow_type):
1709 * objects/GRAFCET/vector.c (arc_load):
1710 * objects/standard/zigzagline.c (zigzagline_type):
1711 * objects/UML/transition.c (transition_load):
1712 * objects/UML/realizes.c (realizes_load):
1713 * objects/UML/dependency.c (dependency_load):
1714 * objects/UML/generalization.c (generalization_type):
1715 * objects/UML/association.c (association_type):
1716 * objects/UML/component_feature.c (compfeat_load):
1717 Make autorouting deafult on except for old diagrams.
1719 * plug-ins/cairo/diacairo.c (export_data):
1720 * plug-ins/cgm/cgm.c (export_cgm):
1721 * plug-ins/dxf/dxf-export.c (export_dxf):
1722 * plug-ins/dxf/dxf-import.c:
1723 * plug-ins/hpgl/hpgl.c (export_data):
1724 * plug-ins/metapost/render_metapost.c:
1725 * plug-ins/pixbuf/pixbuf.c:
1726 * plug-ins/pstricks/render_pstricks.c:
1727 * plug-ins/python/pydia-render.c:
1728 * plug-ins/shape/shape-export.c:
1729 * plug-ins/svg/render_svg.c:
1730 * plug-ins/svg/svg-import.c:
1731 * plug-ins/wpg/wpg.c
1732 * plug-ins/xfig/xfig-export.c:
1733 * plug-ins/xfig/xfig-import.c:
1734 * plug-ins/xslt/xslt.c: Use dia_message_filename to ensure legal
1735 UTF-8 in message boxes.
1737 2005-07-18 Lars Clausen <lars@raeder.dk>
1739 * lib/element.h (ELEMENT_COMMON_PROPERTIES): Allow Element objects
1740 to have their dimensions specified in properties. Still needs to
1741 have proper update when setting properties cause constraint changes.
1743 * app/preferences.c (update_floating_toolbox): Allow
1744 toolbox_on_top setting to happen at once.
1750 * app/sheets_dialog_callbacks.c
1756 * lib/object_defaults.c:
1757 Patch from lav@altlinux.ru (Vitaly Lipatov): Make filenames safe
1758 for displaying in messages - better than crashing! Mostly fixes
1761 * objects/UML/class.c: Save normal_font_height under the same
1762 name it gets loaded as. Fixes bug #310515.
1764 * doc/en/authors.xml
1765 * doc/en/usage-customization.xml
1766 * doc/en/usage-objects-special.xml
1767 * doc/en/usage-objects.xml: Some documentation fixes. Fixes bug
1770 2005-07-17 Lars Clausen <lars@raeder.dk>
1772 * doc/en/usage-customization.xml:
1773 * doc/en/usage-objects.xml:
1774 * doc/en/authors.xml:
1775 * doc/en/usage-objects-special.xml: Applied patch from
1776 stigge@antcom.de (Roland Stigge): Diverse typos and
1777 misencodings. Fixes bug #308315.
1779 * objects/UML/class.c (umlclass_save): Patch from
1780 i.pilcher@comcast.net: Save normal font height under correct name
1781 to reload it. Fixes bug #310515.
1783 2005-07-10 Hans Breuer <hans@breuer.org>
1785 * app/connectionpoint_ops.c app/object_ops.c : make the
1786 'whole object' connection point only center point again.
1787 That is: it is visible and far less magnetic. Only the
1788 line gap handling make it special. For me this probably
1791 * lib/neworth_conn.c : apply the same as for bug #173031.
1792 This OrthConn fork got broken as well. Fixes bug #309381
1794 * app/makefile.msc objects/makefile.msc : adapt to icon changes
1796 * app/interface.c app/diagram_tree.c : a char** is still not
1797 a char* and the win32 build is configured to error on
1798 sloppiness like this
1800 * plug-ins/wmf/wmf.cpp : fix typo in preprocessor condition
1802 2005-07-10 Hans Breuer <hans@breuer.org>
1805 Take part in the toolbox icon redesign context! If you want to
1806 make them really prettier, please keep the following in mind :
1807 - the size *must* be 22x22 otherwise button reflow will get broken.
1808 Or you need to change about 800 icons at once.
1809 - one important part of Dia are control points, so maybe the icons
1810 should reflect that. (IMO gathering random icons form other
1812 - the icons should at least look consistent in their group
1815 * app/Makefile.am : use 22x22 variants mostly lent from The GIMP
1816 * app/pixmaps/*.png : added arrow-22.png scroll-22.png zoom-22.png
1818 * objects/standard/*.c : get rid of xpm includes to avoid mixing icon sets
1819 * objects/standard/pixmap/* : added arc.png beziergon.png
1820 bezierline.png box.png ellipse.png image.png line.png polygon.png
1821 polyline.png text.png zigzagline.png
1822 * objects/standard/Makefile.am : use the new icon set including
1825 * app/interface.c : remove the "will probably crash" debug spew
1827 2005-07-09 Lars Clausen <lars@raeder.dk>
1829 * objects/standard/pixmaps/*.png:
1830 * objects/standard/Makefile.am:
1831 * objects/standard/*.c:
1833 * app/diagram_tree.c (create_object_pixmap): Fix icon loading. use
1834 new icons. [Slightly belated entry]
1836 2005-07-03 Hans Breuer <hans@breuer.org>
1838 * app/diagram_tree.c : dont leak display name
1839 * app/app_procs.c : dont leak GOptionContext
1840 * app/prop_widgets.c(frame_beginprop_get_widget) :
1841 Gtk api still not eating strings ...
1843 * objects/UML/class.c() : don't load properties once more
1844 which are already loaded by StdProps. In case of strings
1845 (data_string) it has even produced leaks.
1847 * app/paginate_psprint.c app/diagram.[hc] : the last
1848 of the related dialogs is gone and with it the
1849 misconception of destroying widgets from
1851 * app/display.c : ensure the diagram is still threre
1852 when we remove the display from it's list
1854 2005-07-01 Hans Breuer <hans@breuer.org>
1856 * lib/widgets.c(dia_color_selector_more_callback): dont
1857 free old_color twice
1859 * plug-ins/wmf/wmf.cpp : finally added enahnced meta file
1860 option. Thus linestyles can be preserved on export - at
1861 least on NT based systems.
1863 * NEWS : clarify the wmf outside of windows issue
1865 * app/modify_too.c : fix C99ism
1867 * objects/standard/arc.c : debug spew optional at compile time
1869 2005-06-26 Hans Breuer <hans@breuer.org>
1871 [ Cyrille would call it: warningectomy :-]
1873 * lib/font.c app/create_object.c : `...' might be used uninitialized
1874 in this function. Yes they were.
1875 * app/modify_tool.c : modify_tool.c:610: warning: `obj' might be used
1876 uninitialized in this function. Yes it was with textedit_activate_object()
1877 Also some static correctness.
1878 * lib/diarenderer.c:678: warning: no previous prototype for
1879 `calculate_min_radius'. Made static.
1880 * lib/dia_svg.c : ptr is a gchar *
1881 * dia_xml.c(data_point,data_rectangle) : gchar *str for parsing
1882 * lib/prop_text.c(multistringprop_get_widget) : use G_CALLBACK
1883 * app/app_procs.c : confirm warning and make dump_dependencies() static
1884 * app/autosave.c : #if 0'd old stuff
1885 * app/display.c : GTK_CHECK_MENU_ITEM() for snap_to_grid
1887 * lib/text.c lib/font.c objects/standard/line.c object/UML/class.c
1888 objects/Istar/goal.c objects/standard/bezier.c objects/standard/beziergon.c
1889 plug-ins/cgm/cgm.c plug-ins/cairo/diacairo.c plug-ins/hpgl/hpgl.c
1890 plug-ins/wpg/wpg.c plug-ins/svg/svg-import.c plug-ins/shape/shape-export.c
1891 plug-ins/dxf/dxf-export.c plug-ins/gprint/diagnomeprintrenderer.c
1892 plug-ins/gprint/diagnomeprint.c plug-ins/xfig/xfig-export.c
1893 app/diagram_tree_menu_callbacks.c app/recent_files.c app/undo.c app/menus.c
1894 app/diapsrenderer.c app/diagram.c app/disp_callback.c :
1895 removed unused variables and functions
1896 * objects/UML/umlattribute.c objects/UML/umloperation.c
1897 objects/UML/umlparameter.c objects/UML/umlformalparameter.c :
1898 neither 'missing braces around initializer' nor 'initialization from
1899 incompatible pointer type'
1900 * objects/UML/class_dialog.c : more static
1901 * app/interface.c : static and almost const correctness and some
1902 less unitialized variables.
1903 * app/diapsft2renderer.c : use (int) casts like the original
1904 (http://imagic.weizmann.ac.il/~dov/freesw/paps/ v0.4) does
1905 * app/render_gdk.c: stop assignment from incompatible pointer type,
1906 make member functions match the prototype.
1907 * app/render_libart.c : Dito. Also stop caching the copy_gc in
1908 a static variable. Otherwise it finally leaks and also may cause
1909 BadMatch with changing windows
1910 => warning count down from about 250 to about 60, one or two hand full
1913 2005-06-26 Hans Breuer <hans@breuer.org>
1915 * lib/libdia.def : added dia_font_get_description, missing
1918 * app/app_procs.c : use png_get_header_ver(NULL), that is:
1919 prefer function call over exported variable to get the
1920 runtime version of libpng
1922 2005-06-19 Hans Breuer <hans@breuer.org>
1924 * plug-ins/python/Makefile.am : added codegen.py to EXTRA_DIST
1925 as suggested by Roland Stigge, bug #308310
1927 2005-06-19 Hans Breuer <hans@breuer.org>
1929 * app/filedlg.c(file_export_callback) : oops, gtk_widget_show() wasn't
1932 2005-06-18 Hans Breuer <hans@breuer.org>
1934 * NEWS : mention new file dialog
1936 [plugged remaining leaks from bug #142669]
1937 * lib/prop_attr.c(fontprop_free) : not only unref the font
1938 but free the property itself, too.
1939 * app/diagram_tree.c(create_diagram_children): remember the
1940 original list start to not only free the last element
1942 * lib/prop_sdarray.c:64: warning: `arrayprop_free' defined
1943 but not used. Here it meant a potentially huge leak.
1945 2005-06-18 Hans Breuer <hans@breuer.org>
1947 * po/POTFILES.in : removed app/diaconv.c which isn't referenced
1948 by app/Makefile.am anymore either. Should finally fix 'make distcheck'
1949 for others, too. ( Roland Stigge, bug #144527 )
1951 2005-06-18 Hans Breuer <hans@breuer.org>
1953 * plug-ins/wmf/Makefile.am : prevent installation. It
1954 doesn't do anything useful on *NIX and even seems to be
1955 linked wrong by gcc (or me;). Fixes bug #172830
1957 2005-06-18 Hans Breuer <hans@breuer.org>
1959 * app/textedit.[hc] lib/arrows.[hc] plug-ins/xslt/xslt.h
1960 plug-ins/xslt/xsltdialog.c plug-ins/xslt/xslt.c : fix for sloppiness
1961 in function declarations. 'f();' for a function without parameters is
1962 a C++ism. Though I can't get any of my compilers to warn about it.
1963 Finally fixes bug #142663.
1965 2005-06-18 Hans Breuer <hans@breuer.org>
1967 * app/textedit.[hc] lib/arrows.[hc] plug-ins/xslt/xslt.h
1968 plug-ins/xslt/xsltdialog.c plug-ins/xslt/xslt.c : fix for sloppiness
1969 in function declarations. 'f();' for a function without parameters is
1970 a C++ism. Though I can't get any of my compilers to warn about it.
1971 Finally fixes the rest of bug #142663.
1973 2005-06-18 Hans Breuer <hans@breuer.org>
1975 * lib/font.h lib/font.c : _DiaFont is now private to prepare bigger
1976 changes but doesn't hurt anyway. See bug #162034
1977 * app/diapsft2renderer.c app/modify_tool.c
1978 plug-ins/gprint/diagnomeprintrenderer.c : use dia_font_get_description()
1979 instead of messing with internals
1980 * app/display.c : give interactive renderers more begin/end render.
1981 It is guaranteed that the scale wont change between these.
1983 2005-06-18 Hans Breuer <hans@breuer.org>
1985 * app/app_procs.c : const correctness for stderr_message_internal
1986 * app/dia-props.c : gtk_toggle_*() functions want GTK_TOGGLE_BUTTON
1987 not GTK_CHECK_BUTTON, also some G_CALLBACK casts
1988 * app/disp_callbacks.c : don't dereference the to the function call
1989 when the function pointer in meant to be checked against 0
1990 * app/interface.c : warning fixes by using correct types
1991 * app/modify_tool.c : describe_props() members returns const pointer
1992 * app/render_libart.c : removed most of the render function again.
1993 They happily live in lib/dialibartrenderer.c since almost 3 years
1994 http://cvs.gnome.org/viewcvs/dia/app/render_libart.c?r1=1.31&r2=1.32
1995 * lib/dia_dirs.c : dia_get_canonical_path() const correctness
1996 * lib/dia_svg.c lib/dia_xml.c : some char to xmlChar changes
1997 * lib/dialibartrenderer.c(set_line_join): actually set the join_style
1998 instead of the cap_style. Don't initialize Art* enums with GDK_* constants.
1999 Both mentioned in bug #159814 and not warned by most other compilers.
2000 * lib/diagtkfontsel.c : at least the watcom compiler did not like the
2001 trailing colon in the GtkTypeInfo initialization
2002 * lib/properties.c : avoid redefinition of LIBDIA_COMPILATION
2003 * lib/dialinechooser.c lib/diagdkrenderer.c : there may be a difference
2004 between char and gint8
2005 * plug-ins/metapost/render_metapost.c : replace invalid escape \% with %%
2006 * plug-ins/wpg/wpg.c : consitently use guint8
2007 * config.h.win32 : change HAVE_* defines to 1 not empty, avoids
2008 redefinition warnings for python and xslt plug-ins
2010 2005-06-18 Hans Breuer <hans@breuer.org>
2012 * lib/diagramdata.c : really get rid of diagram_data_destroy
2013 and new_diagram_data [ no previous prototype for `...' is either
2014 a sign of missing static or of a function to vanish :-]
2016 * lib/geometry.c : apparently the G_INLINE stuff was working only
2017 with particular GLib version(s), glib-2.6.4 does not. Conditionally
2018 reverting to the old mecanics.
2020 2005-06-17 Hans Breuer <hans@breuer.org>
2022 * plug-ins/python/pydia-*.c : include order tweaking to
2023 get rid of redefinition warnings. Ensure to include <Python.h>
2024 before any 'system' header, some dragged in by glib.h
2025 * plug-ins/python/pydia-diagramdata.c(PyDiaDiagramData_Str)
2026 pydia-properties.c(PyDiaProperties_Str)
2027 plug-ins/python/pydia-property.c(PyDiaProperty_Str) :
2028 use %p to format pointers
2029 * plug-ins/python/pydia-geometry.c(PyDiaArrow_Str) :
2030 dont cast to float for %d
2031 * plug-ins/python/pydia-handle.c(PyDiaHandle_Connect) :
2032 use correct pointer type
2033 * plug-ins/python/pydia-image.c(PyDiaImage_Str) :
2034 dont discard qualifier aka dont free const strings
2035 * plug-ins/python/pydia-properties.c : casts to PyCFunction
2036 * plug-ins/python/pydia-property.c : removed unused function,
2037 make ensure_quarks() static
2038 * plug-ins/python/pydia-render.c : removed unused vars, use
2039 the correct signature for begin_render
2040 (dia_py_renderer_finalize): pluged a leak
2041 => except -fno-strict-aliasing there is no warning left in
2044 2005-06-12 Hans Breuer <hans@breuer.org>
2046 * app/filedlg.c : really fix the file extension mismatch on export dialog
2047 by working around some gtk+-2.6 behaviour (bug #307378). Fixes bug #305850
2049 2005-06-11 Hans Breuer <hans@breuer.org>
2051 * configure.in config.h.win32.h : mark as +cvs (should have been
2052 done directly after the 0.94 release)
2053 * NEWS : attempt to summarize 2/3 year of development
2056 WANT_AUTOMAKE=1.7 ./autogen.sh && ./conifugre --enable-maintatiner-mode && make distcheck
2057 finally passes again
2059 * app/app_procs.c : force use of POPT for the GNOME case, otherwise
2060 app/run_dia.sh --credits > THANKS => Segmentation fault
2061 * app/pixmaps/Makefile.am : added group.png and ungroup.png
2062 * Makefile.am : work around scrollkeeper bug
2063 * doc/en/Makefile.am : explicit list DISTCLEANFILES = dia.1
2065 * po/*.po : 'noise' produced by make dist
2067 2005-06-10 Hans Breuer <hans@breuer.org>
2069 * lib/properties.h : define PROP_STD_SHOW_BACKGROUND_OPTIONAL ...
2070 * objects/custom/custom_object.c : ... and use it to avoid
2071 complains about missing attribute "show_background". It is
2072 safe to leave this uninitialized. Same for flip_* and "text",
2073 the latter with comment cause it usually is *not* safe to do
2074 it for the general case. Fixes remaining issues with bug #169006
2075 which where caused by an incompatible change in the shape file.
2077 * app/commands.c : use "gnome-open" instead of "netscape" as
2078 fallback for $BROWSER not set. Still not optimal but better
2079 to try some common desktop tool than an obsolete browser;)
2080 Fixes bug #307142. Also some whitespace changes.
2082 * app/interface.c(toolbox_delete): avoid random return value.
2083 Patch from Stanislav Brabec, fixes bug #307143
2085 * shapes/Cisco/Makefile.am : added a bunch of new shapes/pngs.
2086 Patch from Torben H. Nielsen (bugzilla is still the preferred way)
2087 http://mail.gnome.org/archives/dia-list/2005-June/msg00015.html
2089 2005-06-06 Lars Clausen <lars@raeder.dk>
2092 * app/modify_tool.c:
2093 * app/textedit.[ch]:
2094 Better support for text edit highlight.
2096 * app/connectionpoint_ops.c (connectionpoint_draw): Stop making
2097 the mainpoint extra visible.
2099 2005-06-02 Lars Clausen <lars@raeder.dk>
2101 * objects/UML/class_dialog.c:
2102 * objects/UML/class.[ch]:
2103 The final fixes for mainpoint on UML Class.
2105 * sheets/cisco*.in, shapes/Cisco/*: New set of Cisco icons from
2106 Ian Redfern, now in color and with mainpoints! Very pretty!
2108 2005-06-02 Hans Breuer <hans@breuer.org>
2110 * objects/UML/class_dialog.c : the memory managment with respect to
2111 attribute/operation connections was/is a mess. But it should work again ;)
2113 * samples/UMLPackages.dia samples/Composite-Action.dia : some diagrams
2114 directly from the UML Specification - to show the power of Dia and
2115 some weakness. Watch the bug reports following ;)
2117 2005-06-01 Hans Breuer <hans@breuer.org>
2119 * app/dia.def : export diagram_update_connections_object
2120 * plug-ins/python/pydia-diagram.c : wrap diagram_update_connections_object
2121 Patch from Paolo Bernardi, together with the property setting closes bug #300572
2123 2005-06-01 Hans Breuer <hans@breuer.org>
2125 * plug-ins/python/pydia-property.c : complete refactoring of property
2126 setting, now also supports setting of property arrays
2127 * plug-ins/python/pydia-*.c plug-ins/python/diamodule.c : adapt to
2128 Python namespacing conventions
2129 * plug-ins/python/pydiadoc.py : use the stuff above to produce more
2130 complete UML Classes with attributes and operations
2131 * plug-ins/python/otypes.py : now also show the properties of the objects
2133 * objects/UML/class.c(umlclass_set_props) : need to update object::connections
2134 (pointers), they might be changed with attributes and opertions changing
2136 * plug-ins/python/pydia-property.c : PointArray and BezPointArray property getters
2137 were broken. Apparently noone used them before.
2139 * plug-ins/python/pydia-diagram.c plug-ins/python/pydia-diagramdata.c : moved methods
2140 which only operate on the DiagramData to the latter file. To get on the DiagramData
2141 object of a Diagram use diagram.data. [In C the Diagram is a subclass of DiagramData,
2142 but I don't know how to reflect that in the bindings. And for backward compatibility
2143 there also is the 'data' member.]
2145 * objects/UML/uml.c objects/UML/umlattribute.c objects/UML/umloperation.c
2146 objects/UML/umlparameter.c : describe enums with PropEnumData
2148 * app/commands.c(view_show_all_callback) : if there is something selected show
2149 that instead of all exisiting objects. If there is noting or all selcted it
2150 "Show all" shows the old behaviour.
2152 * lib/parent.[hc] lib/object.c app/disp_callbacks.c app/diagram.c : plug some memory
2153 leaks and use less allocations caused by misguided API. Also some adaption to common
2156 * objects/UML/class.h : add some comment about the brokeness of UML_MAINPOINT
2158 * app/makefile.msc : added new icons and build as console app while
2159 not releaseing to the general public
2161 * objects/custom/shape_info.c : use g_strdup("") for a field to be g_free()'d
2162 and keep a refernce when storing the a font from style="" in s.font. This should
2163 finally allow to have shapes with fully predefined text (and no 'random' crashes)
2165 * plug-ins/gprint/diagnomeprint.c : disable GNOME_SVG until I've found a program
2166 capable to interpret it's output
2168 2005-05-31 Lars Clausen <lars@raeder.dk>
2170 * sheets/ER.sheet.in: No more xpms referenced in sheets. Fixes bug #151811.
2172 2005-05-30 Pawan Chitrakar <pawan@nplinux.org>
2174 * configure.in: Added ne in ALL_LINGUAS
2176 2005-05-24 Lars Clausen <lars@raeder.dk>
2178 * lib/font.c: Change to make DIA_FONT_ITALIC turn into -Oblique PS
2179 fonts for legacy fonts. They don't have DIA_FONT_OBLIQUE setting
2182 2005-05-23 Lars Clausen <lars@raeder.dk>
2184 * lib/paper.c: Added Ledger size paper. Fixes bug #305254.
2186 2005-05-21 Lars Clausen <lars@raeder.dk>
2188 * lib/diaarrowchooser.c:
2189 * lib/arrows.[ch]: Patch from Radek Krahl <ptasz3k@o2.pl>: Add
2190 'infinite' line (three dots) arrowhead. Fix line length in arrow
2191 preview. And fix typo. Fixes bug #303904.
2193 2005-05-20 Hans Breuer <hans@breuer.org>
2195 * lib/text.c : advice from valgrind and data_string() review:
2196 neither g_free() memory on the stack
2197 * objects/GRAFCET/boolequation.c : ... nor const strings
2198 * objects/UML/association.c:934 : definitely lost. Even g_strdup("")
2201 * app/diagram.c : a g_object_ref() following g_object_new() is almost
2202 always wrong. Why would we need two refernces?
2203 * app/app_procs.c : same here.If it crashes later on someone is dropping
2204 refernces he does not own, and *that* needs to be fixed. This is reverting
2205 "Remember to ref g_object_new'd object" (bug #170972) below, which
2206 causes more harm (leaking, hiding bugs elsewhere) than good.
2208 * app/app_procs.c lib/diagramdata.[ch] lib/libdia.def : get rid of
2209 diagramdata_destroy() which was only a wrapper to g_object_unref()
2211 * app/display.c(selection_changed) : don't g_strdup_printf() without
2212 g_free() later /or/ a C++ comment of me mostly denotes an error
2214 * app/diagram.c : diagram_parent_sort_cb make signature match GCompareFunc
2216 * lib/widget.c : dia_dynamic_menu_select_entry() cleanup. If it takes a
2217 const gchar* entry it must not eat memory, added a lot of g_free() and
2218 some const. Fixed a bunch - i.e. *all* - warnings.
2219 * lib/widget.h : removed unused/deleted functions
2221 * app/layer_dialog.c(dia_layer_widget_connectable_toggled) : trying to
2222 avoid 'Invalid write of size 4', no luck yet
2224 2005-05-19 Lars Clausen <lars@raeder.dk>
2226 * objects/UML/class.c:
2227 * objects/UML/class.h:
2228 * objects/UML/class_dialog.c: Work on getting a proper mainpoint
2229 for uml class object. #ifdef'd out right now.
2231 2005-05-18 Lars Clausen <lars@raeder.dk>
2233 * objects/standard/line.c: Make line adjust its actual endpoints
2234 for autogap -- looks and feels better.
2236 * objects/standard/arc.c:
2238 * app/modify_tool.c: Patch from Grégoire Dooms
2239 <dooms@info.ucl.ac.be>: First stab at autogap for arcs, and
2240 shifted arc angle movement.
2242 2005-05-16 Hans Breuer <hans@breuer.org>
2244 * lib/widget.c : variable declarations need to be at the start of a block,
2245 at least as we are not using C++ or C99
2247 * plug-ins/python/pydia-property.c : implment the read part for Property
2248 arrays - aka. umlclass.properties["operations"], umlclass.properties["attributes"]
2249 They are working quite well as can be seen with export-object.py
2251 * plug-ins/python/codegen.py : prove it once more with the generation of C++
2252 or Python code from an UML Diagram. Simply save as .py or .cxx ...
2253 * plug-ins/python/Makefile.am : install it
2255 2005-05-16 Lars Clausen <lars@raeder.dk>
2257 * app/pixmaps/{un}group.png:
2258 * app/Makefile.am (ICON_PNG_PAIRS):
2259 * app/menus.c (display_menu_items):
2260 New icons for grou/ungroup finally added, closing bug #105519.
2262 * app/Makefile.am: Dependencies for pixmaps.
2264 * app/pixmaps/connectable.png: An icon that actually makes sense
2265 for switching connectability.
2267 2005-05-15 Hans Breuer <hans@breuer.org>
2269 * lib/group.c object/UML/classicon.c : fixed leftovers of
2270 'Adding connectionpoint to _move_handle
2272 * lib/widgets.c : gtk+ *NEVER* eats strings, so gtk_something(widget, g_strdup())
2273 is *ALWAYS* a memory leak. Plug some more.
2276 In preparation to make UML operations/attributes/parameters setable by Python
2277 UML class became more StdProp conformant. A nice experience to be the first
2278 to use the PROP_TYPE_DARRAY stuff about four years after it was written ;-)
2280 * objects/UML/umlattribute.c objects/UML/umloperation.c
2281 objects/UML/umlparameter.c objects/UML/umlformalparameter.c : (new files)
2282 split from objects/UML/uml.c and made StdProp aware
2283 * objects/UML/class.c : finally make "attributes", "operations", "templates"
2284 <template parameters> first class StdProps citizens.
2285 (umlclass_load) : removed hand-written parsing for the above, it is all done
2286 by object_load_props() now. The old write code is still in place, so be very
2287 careful when changing something - at the moment load/save it is 100% compatible
2289 * objects/UML/uml.c : now just type registration here, as it is supposed to be
2290 * objects/UML/Makefile.am objects/makefile.msc : build the new files
2292 * lib/properties.h(PropDescCommonAreaExtra) : need a place to store the
2294 * lib/prop_sdarray.c : made the DARRAY case work, SARRAY still untested
2295 (darray_prop_adjust_object_records) : don't loop forever
2296 (whole file) : use the new (working) way to get on the second level offsets.
2297 Also resolved some abbreviations, it is complicated enough without them ;)
2298 * lib/proplist.c : even complete list contents may be optional
2300 2005-05-15 Hans Breuer <hans@breuer.org>
2302 * lib/bezier_conn.c(remove_handles) : don't try to remove
2303 non-exisitng handles (patch from Radek Krahl, bug #302273)
2305 2005-05-15 Hans Breuer <hans@breuer.org>
2307 * plug-ins/metapost/render_metapost.c : locale independent output
2308 (Radek Krahl, bug #301866)
2310 2005-05-12 Lars Clausen <lars@raeder.dk>
2312 * shapes/Cisco/*.{shape,png}:
2313 * sheets/cisco*.sheet.in:
2314 Updated with color icons from Ian Redfern, closing bug #303889.
2315 Added automatic midpoints, not attempt at adjusting them.
2317 2005-05-11 Lars Clausen <lars@raeder.dk>
2319 * many shapes: Use mid of bounding box for midpoint, better than
2320 mid of connection points generally.
2322 2005-05-10 Lars Clausen <lars@raeder.dk>
2324 * lib/widgets.c: Decided on one way for the ratio thing in arrow
2325 size selector: Fixed ratio is on by default and keeps the sizes
2326 at the given ratio, but doesn't clamp them to be the same. Fixes
2329 * lib/font.c: Fix for bug #303695: Allow more than one entry of
2330 each legacy name, thereby correctly encoding bold and italic of
2331 the three main fonts. Also use | rather than || to combine slant
2332 and weight, so matching works. Had to remove binary search for
2333 new font name, but the list is short enough it's not a problem.
2335 2005-05-09 Lars Clausen <lars@raeder.dk>
2337 * lib/autoroute.c (autoroute_layout_orthconn): Remove debugging info.
2339 2005-05-08 Hans Breuer <hans@breuer.org>
2341 * objects/UML/class.c : Reverted to have no center point.
2342 At first it looked as if there was only the bug to not increase
2343 class.h:UMLCLASS_CONNECTIONPOINTS. But the UMLClass has
2344 potentially much more dynamic connection points (to the left
2345 and right of every attribute/operation). Now simply adding one
2346 between see static and dynamic will screw up any existing diagram
2347 which makes use of the dynamic connection points. The would all
2348 be connected with an off-by-one error. I have no idea how to
2349 code around that. But breaking backward compatibility is no
2350 option here. Does not completely fix bug #303301 ...
2352 * lib/widget.c(dia_font_selector_set_font): actually set the options
2353 menu state. So we are not any longer resetting the font style on Apply.
2354 Use "UML - Class" dialog as stress text example.
2356 * app/command.c : some people insist to close diagrams already
2357 closed using tear-off menus. Maybe we should add a dialog
2358 "Do you want to call Dr. Watson now?". If there is no diagram
2359 to close anymore just do nothing, fixes bug #303221
2360 * app/display.c(ddisplay_close) : use g_return_if_fail(ddisp != NULL);
2361 Calling this with no display to close is a pathological case.
2363 * app/diagram.[hc] : moved object.h and other DiaObject stuff
2364 to the implementation in preparation of Big Things(tm)
2366 * app/interface.c : less warnings and make it compile. strncmp()
2367 does not take a char**, neither does gdk_pixbuf_new_from_inline().
2369 * objects/makefile.msc plug-ins/makefile.msc : less output
2371 2005-05-08 Lars Clausen <lars@raeder.dk>
2373 * lib/orth_conn.c (orthconn_init): The right place to set the
2374 default autorouting value. Fixes bug #303291.
2376 * app/display.c (ddisplay_close): Patch from Radek Krahl
2377 (ptasz3k@o2.pl): Fix crash when using from detached menu
2380 2005-05-07 Lars Clausen <lars@raeder.dk>
2382 * lib/orth_conn.c (orthconn_load): Autorouting should default to
2383 off in diagrams that don't have it explicitly. All diagrams
2384 should be explicit about it.
2386 2005-05-06 Hans Breuer <hans@breuer.org>
2388 * app/samples/Self/*.dia : some UML diagrams describing Dia's
2389 inner working (or it's future;)
2391 2005-04-26 Lars Clausen <lars@raeder.dk>
2393 * app/connectionpoint_ops.c (connectionpoint_draw): Temporary
2394 change to display of mainpoint to be easier to debug autogenerated
2397 2005-04-23 Hans Breuer <hans@breuer.org>
2399 * plug-ins/python/diamodule.c plug-ins/python/pydia-object.h
2400 plug-ins/python/pydia-properties.h : use lib/ prefix for
2401 Dia internal headers with too common names (fixes bug #173061)
2403 * app/display.c : stop special casing the first display of
2404 a diagram. Every display now has it's own refernce. The initial
2405 reference gets dropped when there is no display anymore. See
2406 diagram_remove_ddisplay(). Fixes bug #300744.
2408 * app/diapsft2renderer.c : locale independent output
2409 (Radek Krahl, bug #300847)
2410 * app/paginate_psprint.c : fixing use of setlocale() calls
2411 (Radek Krahl, bug #300886)
2412 * plug-ins/shape/shape-export.c : fixing use of setlocale() calls
2413 (Radek Krahl, bug #300889)
2415 * objects/UML/class.c : fix another crash with the line
2416 wrapping code (Gabor Simon, bug #160865)
2418 * plug-ins/cairo/diacairo.c : image rendering had an endianess
2419 issue (or is this working around a libpixman bug?;)
2421 2005-04-21 Lars Clausen <lars@raeder.dk>
2423 * lib/polyshape.c (polyshape_update_data): Fixed numpoint off-by-one.
2425 * shapes/**/*.shape: All shapes now have midpoints.
2427 2005-04-20 Lars Clausen <lars@raeder.dk>
2429 * lib/orth_conn.c (orthconn_update_data): Patch from ptasz3k@o2.pl
2430 (Radek Krahl): Make sure there's enough handles for the line.
2433 * objects/UML/node.c (node_draw): Better drawing method avoids
2434 garbage after moving. Fixes bug #301032.
2436 2005-04-17 Hans Breuer <hans@breuer.org>
2438 * plug-ins/cairo/diacairo.c : again adapt to Cairo API
2439 changes (whould compile with current cvs and 0.(3|4).0
2441 2005-04-11 Lars Clausen <lars@raeder.dk>
2443 * xmldocs.make (all): Fix to put installed docs in right place
2444 under disable-gnome.
2446 * doc/en/Makefile.am: Use xml_files var for xml files, EXTRA_DIST
2449 * app/commands.c (help_manual_callback): Patch from p@kapcoweb.com
2450 (Leonardo Boshell): Use standard gnome help if called with Gnome.
2452 * app/diapsrenderer.c: Patch from ptasz3k@o2.pl (Radek Krahl): Fix
2453 locale issues for eps output. Fixes bug #173135.
2455 2005-04-10 Hans Breuer <hans@breuer.org>
2457 * plug-ins/cairo/diacairo.c : adapt to Cairo PNG API
2458 changes (somewhat broken)
2460 * plug-ins/pstricks/render_pstricks.c : still C89 ...
2461 * objects/custom/shape_info.c : ... but with prototypes
2463 2005-04-07 Lars Clausen <lars@raeder.dk>
2466 * plug-ins/svg/render_svg.c:
2467 * lib/diasvgrenderer.c: Patches from ptasz3k@o2.pl (Radek Krahl):
2468 Make decimal separators be correct in save file formats
2469 (non-localized). Fixes bugs #172529 and 172531.
2471 2005-04-06 Lars Clausen <lars@raeder.dk>
2473 * app/create_object.c (create_object_button_release):
2474 * app/modify_tool.c (modify_button_release): Correct activations
2477 2005-04-05 Simon Kågström <ska@bth.se>
2479 * app/app_procs.c: the --show-layers option can now handle numeric
2482 2005-04-05 Lars Clausen <lars@raeder.dk>
2484 * lib/diagdkrenderer.c (draw_string): Patch from tomkast@yahoo.com
2485 (Tom Kast): Avoid blockiness caused by bad updates.
2487 2005-04-03 Lars Clausen <lars@raeder.dk>
2490 * lib/beziershape.c: Main points. A crude solution, having the
2491 center in the middle of the bb. Shows a bug in the distance_from
2492 code for polyshape when a side is horizontal.
2494 2005-04-02 Lars Clausen <lars@raeder.dk>
2496 * plug-ins/pstricks/render_pstricks.c:
2497 * plug-ins/xfig/xfig-export.c: Patch from Radek
2498 Krahl <ptasz3k@o2.pl>: Fix decimal point problems. Fixes bugs
2500 2005-04-02 Hans Breuer <hans@breuer.org>
2502 * lib/dia_image.c(dia_image_filename) : return the path
2503 again. (bug #172416, Radek Krahl)
2505 2005-04-01 Steve Murphy <murf@e-tools.com>
2507 * configure.in: Added "rw" to ALL_LINGUAS.
2509 2005-03-31 Lars Clausen <lars@raeder.dk>
2511 * lib/neworth_conn.c (neworthconn_update_data): Handle autogap.
2513 * lib/orth_conn.c (orthconn_update_data): Handle autogap while not
2516 * objects/network/basestation.c: Main points.
2518 2005-03-27 Hans Breuer <hans@breuer.org>
2520 * app/Makefile.am : removed some pixmap/*.xpm from EXTRA_DIST
2521 * app/pixmaps.h : removed arrow.xpm
2522 * lib/Makefile.am : added diamarshal
2523 * plug-ins/python/Makefile.am : added makefile.msc to EXTRA_DIST
2524 => makes 'make dist' pass and produce a useable package
2526 * po/*.po : 'noise' profuced by make dist
2528 2005-03-24 Lars Clausen <lars@raeder.dk>
2530 * objects/flowchart/parallelogram.c (pgram_update_data):
2531 * objects/flowchart/ellipse.c (ellipse_update_data):
2532 * objects/flowchart/diamond.c (diamond_update_data):
2533 * objects/flowchart/box.c (box_update_data): Main points.
2535 * objects/custom/custom_object.c (custom_create):
2536 * objects/custom/shape_info.h:
2537 * shapes/Assorted/square.shape:
2538 * objects/custom/shape_info.c (load_shape_info):
2539 * doc/shape.dtd: Added main point support to shapes, and an
2540 example of how to use it.
2542 2005-03-21 Lars Clausen <lars@raeder.dk>
2544 * lib/autoroute.c (autoroute_layout_orthconn): Remember to
2545 unnormalize from same point as you normalize, or else!
2547 2005-03-20 Lars Clausen <lars@raeder.dk>
2549 * app/app_procs.c (do_convert): Patch from crux@gorodmasterov.com:
2550 Remember to ref g_object_new'd object.
2552 2005-03-19 Hans Breuer <hans@breuer.org>
2554 * plug-ins/xslt/xslt.c : don't crash if both places ($SHARE, $HOME)
2555 have configurations, fixes bug #170962
2557 * objects/UML/state.c : ("UML - State")::type is PROP_FLAG_OPTIONAL,
2558 or better not used any longer. Fixes bug #169142.
2560 * lib/element.c(element_update_connections_rectangle): don't initialize
2561 the eighth point twice but instead the nineth once
2563 * objects/standard/bezier.c : no C++ comments *please*
2565 * lib/plug-ins.h : increment DIA_PLUGIN_API_VERSION
2567 * lib/dia_image.[ch] : dia_image_filename() returns a string not to be freed ...
2568 * plug-ins/python/pydia-image.c : ... so, don't do it!
2570 * lib/dia_svg.c : refactor color parsing and support the "rgb(127,255,0)" form,
2571 also named colors via pango_color_parse()
2573 * lib/prop_text.c : don't try to g_strdelimit(NULL), fixes bug #169367
2575 * lib/libdia.def : updated externals
2577 * app/object_ops.c : still not C99 everywhere
2579 2005-03-19 Hans Breuer <hans@breuer.org>
2581 * lib/autoroute.c : at least it should compile ;)
2583 2005-03-19 Lars Clausen <lars@raeder.dk>
2585 * lib/autoroute.c: Orthconns now do autogap.
2587 2005-03-17 Lars Clausen <lars@raeder.dk>
2589 * app/authors.h: Added Gregoire Dooms for gap stuff.
2591 * objects/standard/polyline.c: Patch from Grégoire Dooms
2592 <dooms@info.ucl.ac.be>: Autogap and absolute gap for polyline.
2594 * objects/standard/bezier.c: Patch from Grégoire Dooms
2595 <dooms@info.ucl.ac.be>: Fixes two bugs. Also autogap no longer a
2599 * objects/UML/state_term.c:
2600 * objects/UML/large_package.c:
2601 * objects/UML/node.c:
2602 * objects/UML/object.c:
2603 * objects/UML/small_package.c:
2604 * objects/UML/state.c:
2605 * objects/UML/usecase.c:
2606 * objects/UML/note.c:
2607 * objects/UML/actor.c:
2608 * objects/UML/classicon.c:
2609 * objects/UML/component.c:
2610 * objects/Misc/analog_clock.c:
2611 * objects/Jackson/requirement.c:
2612 * objects/Istar/goal.c:
2613 * objects/Istar/actor.c:
2614 * objects/FS/function.c:
2615 * object/standard/box.c:
2616 * objects/ER/entity.c:
2617 * objects/ER/relationship.c:
2618 * objects/ER/attribute.c: Main points added. Distance_from fixed
2619 in attribute, broken in relationship, I* goal, Jackson
2620 requirement, analog_clock, all non-rectangular UML elements,
2623 * lib/element.[ch]: New method to help update connection points.
2625 * app/menus.c: Change Help/Manual to Help/Contents to follow
2628 * objects/standard/line.c:
2629 * lib/geometry.[ch]:
2630 * objects/standard/bezier.c: Patch from Grégoire Dooms
2631 <dooms@info.ucl.ac.be>: Add absolute gap and autogap for line and
2632 bezier objects. Autogap nowchanged to be a function of the
2636 * lib/connectionpoint.[ch]: New function to ask if a connpoint has the
2639 * app/connectionpoint_ops.c (connectionpoint_draw): Don't draw
2640 CP_FLAG_ANYPLACE connpoints.
2642 2005-03-16 Lars Clausen <lars@raeder.dk>
2644 * app/interface.c (create_tools): Removed debug printf.
2646 2005-03-15 Lars Clausen <lars@raeder.dk>
2648 * lib/widgets.[ch]: Constification.
2650 * app/interface.c: Work on using gdk-pixbuf-csource'd data, not
2653 * objects/standard/ellipse.c: Use CP_FLAG_MAIN for central CP.
2655 * lib/connectionpoint.h: Flags for connection points.
2657 * app/create_object.c (create_object_motion):
2658 * app/modify_tool.c (modify_motion): Minor refactoring.
2660 * app/object_ops.c (object_find_connectpoint_display): Extend with
2661 finding connpoints that cover entire objects.
2663 * app/layer_dialog.c (dia_layer_widget_init): Get rid of warnings.
2665 * objects/custom/custom_object.c (custom_setup_properties): Avoid
2668 2005-03-13 Hans Breuer <hans@breuer.org>
2670 * plug-ins/svg/svg-import.c : handle the <circle/> tag as well
2672 2005-03-13 Hans Breuer <hans@breuer.org>
2674 * lib/dia_svg.[hc] objects/custom/shape_info.[hc] plug-ins/svg/svg-import.c :
2675 s/DiaSvgGraphicStyle/DiaSvgStyle/, added and use convenience functions
2676 dia_svg_style_copy(), dia_svg_style_init()
2678 * objects/custom/shape_info.c : use dia_svg_parse_path() from lib/ (it got
2681 * lib/dia_svg.c(dia_svg_parse_path) : also handle style properties which are
2682 not wrapped in the style attribute
2684 * plug-ins/svg/svg-import.c : implement nested group handling and style
2685 'style inheritance'. Still no transformations, no <image/>, no <style/>
2688 * plug-ins/svg/svg-import.c(import_svg) : use message_warning instead of g_warning,
2689 the latter is for programmers.
2690 Also be more tolerant if the document root namespace is not 'svg'. If the svg
2691 namespace is defined in the file search for the top node including svg. This
2692 allows us to re-read the svg part of our own shape format.
2694 * lib/libdia.def : there is no give_focus_to_object
2695 * app/textedit.c : still no C99, aka. error C2275: 'Focus' : illegal use of this
2696 type as an expression
2698 * lib/geometry. c : use G_IMPLEMENT_INLINES
2699 * lib/libdia.def : export point_get_perp (used by xfig plug-in)
2701 * app/textedit.c(textedit_end_edit) : don't crash if the display is already
2702 gone when trying to remove the focus
2704 * plug-ins/cairo/diacairo.c : CAIRO_HAS_WIN32_SURFACE does not any longer mean
2705 it has *my* Cairo Win32 Backend. [The official one isn't useful for the use
2706 case of this plug-in, i.e. producing output files]
2708 2005-03-13 Lars Clausen <lars@raeder.dk>
2710 * lib/Makefile.am (BUILT_SOURCES):
2711 * app/Makefile.am (BUILT_SOURCES): Use the Right Way[tm] to force
2712 the building of the icons header files.
2713 * app/dia-lib-icons.h: Out of CVS now that it's correctly generated.
2715 2005-03-13 Hans Breuer <hans@breuer.org>
2717 * configure.in : require Cairo 0.3.0
2718 plug-ins/cairo/diacairo.c : changed to match ;-)
2720 * app/app_procs.c() : new function dump_dependencies()
2721 which gets called by: dia --version --verbose
2722 and may help to track version dependent problems in
2725 * lib/font.c : reverted to previous version cause using
2726 not implemented Pango API did not improve the issue.
2727 See: http://bugzilla.gnome.org/show_bug.cgi?id=162034
2728 for more information.
2730 * lib/dialinechooser.c : a little shrinking of the
2731 initial size (to work around line wrappjing the right
2734 2005-03-11 Lars Clausen <lars@raeder.dk>
2736 * app/textedit.c: Concentrate start/end editing in single functions.
2738 2005-03-10 Lars Clausen <lars@raeder.dk>
2741 * lib/object.h: Added new object function to allow the object to
2742 be notified when its text is being edited.
2745 * app/modify_tool.c:
2748 * lib/focus.c: Remove sideeffects from focus objects, add getter
2751 2005-03-09 Lars Clausen <lars@raeder.dk>
2753 * lib/Makefile.am (dia-lib-icons.h):
2754 * app/Makefile.am: Minor cleanup.
2756 2005-03-06 Hans Breuer <hans@breuer.org>
2758 * app/app_procs.c : avoid "assignment within conditional expression"
2759 and handle -L for the GOption case as well.
2761 * lib/widget.c : strchr() does not return -1 on not found but NULL;
2762 avoids widgets.c(307) : error C4047: '!=' : 'char *' differs in levels of
2763 indirection from 'const int '
2765 * lib/diasvgenderer.c(draw_arc|fill_arc) : finally correct sweep and
2766 large_arc, thus produce correct arc output (like diasvg.py does;),
2769 * lib/dia_svg.[hc](dia_svg_parse_path) : new function copied and adapted
2770 from objects/custom/shape_info.c to be shared with object/custom and
2771 plug-in/svg -> finally the C based svg-import reads pathes again.
2772 Added arc parsing while I was there, which fixes bug #169191
2773 * objects/custom/shape_info.c(parse_path) :
2774 * plug-ins/svg/svg-import : reuse above function
2775 Also fix the "root element was 'svg' -- expecting 'svg'" bug #108502.
2776 But in general this does only support a small subset of what is
2779 2005-03-06 Lars Clausen <lars@raeder.dk>
2781 * objects/UML/association.c: Patch from Dave Klotzbach applied:
2782 Add visibility to association arrow. Fixes bug #157012.
2784 * app/grid.c: Patch from Lawrence Withers fixes grid messiness,
2785 closing bug #161040.
2787 * app/layer_dialog.c (create_button_box): Use stock icons instead
2788 of homemade onces. Gets us rid of four more XPMs.
2790 2005-03-05 Sampo Kellomaki <sampo@iki.fi>
2792 * app/app_procs.c: Implemented --show-layers=LAYER,LAYER,... option
2793 This option permits command line control of which layers are visible.
2794 Useful when automatically exporting multiple versions of the same
2795 diagram, e.g. slides with overlays. Added-n switch parsing without POPT.
2796 * app/app_procs.h: moved prototype of do_convert() to app/app_procs.c
2797 and made it static since its only used in that file.
2798 * app/authors.h: added myself
2799 * doc/en/dia.1: documented the switch
2800 * doc/en/usage-layers.xml: ditto
2802 2005-03-05 Alan Horkan <horkana@tcd.ie>
2804 * app/interface.c Change Horizontal scroll policy to NEVER for sheets
2805 this restores how Dia behaved before the GTK2 port and seems to help
2806 allow the toolbox to be more easily resized. Bug #108891.
2808 2005-03-05 Lars Clausen <lars@raeder.dk>
2810 * Civil/civil_motor.shape:
2811 * Civil/civil_rotor.shape:
2813 * Logic/buffer.shape:
2814 * Logic/connector.shape:
2815 * Logic/inverter.shape:
2821 * shapes/Assorted/arrow-left-up.shape:
2822 * shapes/Assorted/heptagon.shape:
2823 * shapes/Assorted/star5.shape:
2824 * shapes/Assorted/trapezoid.shape:
2825 * shapes/Assorted/triangle-rightangle.shape: Fixed bad use of
2826 defaults, see bug #169143.
2828 * sheets/Assorted.sheet.in: Fixed typo patch applied, bug #169114.
2831 * doc/en/Makefile.am: Finally figured out the right way to ask for
2832 the manpage xslt. Closes bug #144539.
2834 2005-03-01 Lars Clausen <lars@raeder.dk>
2836 * lib/Makefile.am (nodist_include_HEADERS):
2837 * app/Makefile.am: Correctly generate these files from PNGs with
2842 * lib/widgets.c: Refactor toggle button factory to allow inline
2845 * lib/pixmaps/Makefile.am: Unify lib pixmaps.
2847 * app/makefile.msc (ICON_PNG_PAIRS):
2848 * app/dia-app-icons.h: Updated with more icons.
2851 * app/Makefile.am: Use gdk_pixbuf_csource to create inline data
2854 * app/interface.c (create_display_shell):
2855 * app/layer_dialog.c (dia_layer_widget_init):
2856 * lib/dia_image.c (dia_image_get_broken): Use inlined data
2859 * app/display.c (ddisplay_close): Removed unused includes.
2861 2005-03-01 Lars Clausen <lars@raeder.dk>
2863 * app/sheets.c (create_object_pixmap): Create a placeholder image
2864 for when the real image is missing. Better than crashing:)
2867 2005-02-25 Hans Breuer <hans@breuer.org>
2869 * app/app_procs.c : don't requets to open a default display with
2870 g_option_context_add_group (crux@gorodmasterov.com, bug #168523)
2872 2005-02-22 Lars Clausen <lars@raeder.dk>
2874 * plug-ins/gprint/diagnomeprint.c (export_data): GNOME, not Gome.
2877 2005-02-19 Lars Clausen <lars@raeder.dk>
2879 * app/menus.c (display_menu_items): Applied patch from bug #94019:
2880 Menu cleanup and addition of icons. Also a few additional stock
2883 * app/layer_dialog.c (create_layer_dialog): Bug #159598: Clean up
2886 2005-02-14 Lars Clausen <lars@raeder.dk>
2888 * INSTALL (ftp): Fixed Pango release typo (bug #153007)
2890 2005-02-13 Lars Clausen <lars@raeder.dk>
2892 * lib/font.c: First stab at using Gtk 2.4 functions for fixing
2893 width. Seems to work. Once tested some more, needs old code
2896 * lib/widgets.c (dia_font_selector_create_string_item): Avoid
2897 warning by escaping & properly.
2899 2005-02-06 Lars Clausen <lars@raeder.dk>
2901 * app/filedlg.c (file_export_callback): Set correct extension as
2902 soon every time the dialog is shown. Fixes bug #162535.
2904 * app/display.c (ddisplay_set_origo): Use more standard
2907 * app/modify_tool.c (modify_motion):
2908 * app/create_object.c (create_object_motion): Put coordinates of
2909 handle/object in status bar while moving. Fixes bug #163164.
2911 2005-02-03 Lars Clausen <lars@raeder.dk>
2913 * lib/.cvsignore: Added generated files diamarshal.[ch]
2915 2005-02-02 Lars Clausen <lars@raeder.dk>
2917 * configure.in: Add GLIB_GENMARSHAL def as suggested in
2918 http://ignore-your.tv/software/libgtcpsocket/docs/client-subclassing.html.
2919 Now compiles on Linux.
2921 2005-02-01 Lars Clausen <lars@raeder.dk>
2923 * app/sheets.c (sheet_object_mod_get_type_string): We don't really
2924 need to translate the empty string. Especially not after
2925 g_assert_not_reached(). Fixes bug #165966.
2927 2005-01-07 Tim Olsen <tolsen@alum.mit.edu>
2929 * objects/UML/activity.c : add fill- and line-colour properties
2930 [applied by Hans Breuer, fixes bug #163260]
2932 2004-01-28 Hans Breuer <hans@breuer.org>
2934 * doc/en/*.xml doc/en/dia.dbk app/authors.h : documentation
2935 update provided by Alan Horkan (fixes bug #159592)
2937 2004-01-28 Hans Breuer <hans@breuer.org>
2939 [Extented version for UML to C++ conversion by Dave Klotzbach, bug #155255]
2940 * plug-ins/xslt/dia-uml2cpp.xsl : (new file) ... handles associataions,
2941 generalization, dependancies, parameterized classes ...
2942 * plug-ins/xslt/styleshetts.xml : refernce it
2943 * plug-ins/xslt/dia-uml.xsl : handle more UML types uesd above
2945 2004-01-28 Hans Breuer <hans@breuer.org>
2947 * objects/UML/transition.c : fill out the extra_spacing struct
2948 in the OrtConn member, in order to avoid artifacts when draggin
2949 the transition. (patch by Peter Allin, bug #144956)
2951 2004-01-15 Hans Breuer <hans@breuer.org>
2953 * plug-ins/cairo/diacairo.c : initialized the renderers default dash_length
2954 to something differnt than 0. Apparently there are case where Dia misses
2955 to appropriately set it before requesting a dashed line (simple line with
2956 arrow as described in bug #151716)
2958 * lib/dia_dirs.c : special casing for drive letters which I broke with
2961 2005-01-13 Hans Breuer <hans@breuer.org>
2963 * app/interface.c(create_sheet_page) : remved dead long time code
2965 * lib/propdialogs.c : removed pdtpp_is_visible_no_standard() prototype,
2966 it is availbale via header - which is the better style anyway
2968 2004-12-31 Hans Breuer <hans@breuer.org>
2970 * lib/dia_dirs.c(dia_get_canonical_path) : complete
2971 rewrite to handle something like /mnt/some/where/../else
2972 too. Workaround for bug #162637.
2973 * app/filedlg.c : call gtk_file_chooser_set_current_name()
2974 to workaround gtk_file_chooser_set_filename() not setting
2975 it if the file does not exist
2977 * sheets/Jackson.sheet.in app/menus.c : fixed typos
2978 (Frank Arnold, bug #161676)
2980 2004-12-31 Steffen Macke <sdteffen@gmail.com>
2982 * doc/pl/*.xml: Added XML prolog
2983 * makefile.msc: Added libxslt, fixed libxml, libart
2985 2004-10-29 Alexander Shopov <ash@contact.bg>
2987 * configure.in (ALL_LINGUAS): Added "bg" (Bulgarian)
2989 2004-12-29 Lars Clausen <lars@raeder.dk>
2991 * configure.in: Make gnomeprint be truly off by default (typo) and
2992 show optional compilation correctly.
2993 * plug-ins/gprint/Makefile.am: Exclude gnomeprint if not optioned in.
2995 2004-12-22 Hans Breuer <hans@breuer.org>
2997 * lib/widgets.c : destroy handlers can be called more than once,
2998 see http://developer.gnome.org/doc/API/2.0/gtk/gtk-changes-2-0.html
3000 * app/app_procs.c : #ifdef GLIB(2.6.0) but GTK(2.4.x)
3002 * app/display.c : temporary debug code showing the
3003 timing the rendering
3005 * app/dialibartrenderer.c(draw_string) : removed dead
3006 code loading and leaking font and face
3008 2004-12-15 Hans Breuer <hans@breuer.org>
3010 * app/display.c : actually use the selction-changed signal for something
3011 useful. Show selections representation on statusbar.
3012 * lib/object.h lib/prop_text.c lib/libdia.def : provide objet_get_displayname()
3013 * app/diagram_tree.c : use new function (as in app/display.c) and only
3014 poke into property internals at one place
3015 * app/diagram.c : use g_signal_handlers_block_by_func to avoid has-no-handler-
3018 2004-12-12 Hans Breuer <hans@breuer.org>
3020 * lib/libdia.def app/dia.def : updated externals
3022 * objects/custom/custom_object.c : custom_destroy is called per object.
3023 It _must not_ destroy class stuff (ShapeInfo) cause it does not hold a
3024 reference to it. Fixes e.g. bug #158288, #160550, ...
3026 * objects/UML/association.c(association_draw) : completed porting to
3027 draw_polyline_with_arrows()
3028 (association_update_data_end) : fixed typo in point compare
3029 (association_update_data) : for name placement take degenerated
3030 segements into account. Together this fixes bug #143891
3032 2004-12-11 Hans Breuer <hans@breuer.org>
3034 * lib/widgets.c(set_size_sensitivity) : revert inverted
3035 logic for arrorw size selections, fixes bug #160527
3037 2004-12-11 Hans Breuer <hans@breuer.org>
3039 * lib/widgets.c(dia_font_selector_set_font) : initialize
3040 the font style widget, too. Gets rid of empty font
3041 style and thus default broken font style, e.g. UML::class_name
3043 * lib/widgets.c(dia_color_selector_more_callback) : fill
3044 the color palette from dynamic menu entries and also
3045 preselect the current color to the last select entry
3047 * plug-ins/python/pydia-diagramdata.c : hold a reference
3048 to the underlying GObject
3050 * app/Makefile.am app/diagrid.h : new file containing the
3051 grid 'class' moved from DiagramData to Diagram.
3052 Also moved pagebreak_color and guides cause they are only
3053 used for visual appearance not 'data'.
3054 * lib/diagramdata.[ch] app/diagram.h app/dia-props.c app/grid.c
3055 app/load_save.c plug-ins/python/pydia-diagramdata.c : reflect
3058 * lib/diagramdata.[ch] app/app_procs.c app/diagram.c
3059 lib/libdia.def : get rid of new_diagram_data()
3060 Diagram _is_ DiagramData (and does not have one any longer,
3061 just a compatibility pointer)
3063 * lib/diarenderer.h : a small doc improvement
3065 2004-12-11 Hans Breuer <hans@breuer.org>
3067 * objects/UML/class.c : line wrapping code buffer
3068 overrun fixed by Gabor Simon, bug #160865
3070 2004-12-11 Hans Breuer <hans@breuer.org>
3072 * plug-ins/python/pydia-diagram.c : hold a reference
3073 to the diagram in PyDiaDiagram, avoids bug #159080
3074 [another way to avoid is to detroy the dialog by
3075 clsoing it. But now there is still a diagram to
3076 apply the changes to, even if it's thrwon away just
3079 2004-12-10 Hans Breuer <hans@breuer.org>
3081 * **/*.c : fixed a bunch of warnings, not only for -ansi
3082 (still too many of them, but -ansi works)
3084 prop_geomtypes.h prop_geomtypes.c:306: warning: static
3085 declaration for `fontsizeprop_reset_widget' follows non-static
3086 dia_dirs.c:196: warning: return discards qualifiers from
3090 shape_info.c:121: warning: static declaration for `parse_path'
3094 arrow.c:228: warning: `draw_arrowhead' declared `static' but never defined
3095 arrow.c:244: warning: unused variable `i'
3096 arrow.c:245: warning: unused variable `p'
3097 arrow.c:246: warning: unused variable `zzr'
3099 object/Istar/*.c object/Jackson/*.c object/KAOS/*.c :
3100 finally removed c++ comments
3102 objects/Istar/goal.c : initialize connections::directions
3103 while I was there - helps autorouting
3105 * objects/KAOS/metaandorrel.c objects/Istar/link.c
3106 objects/KAOS/metabinrel.c : removed struct _DiaImage hack
3107 (it would be quite simple to add image-from-memory support
3110 * pydia-*.h : warning: no newline at end of file
3112 * plug-ins/gprint/diagnomeprint.c : allow to unregister
3113 and follow new unique name naming convention
3114 * plug-ins/gprint/diagnomeprintrenderer.c : no c++ comments
3117 2004-12-07 Hans Breuer <hans@breuer.org>
3119 * objects/UML/message.c : better default for initial text placement
3120 a suggested in bug #154306, Henning Mersch
3121 * objects/UML/constraint.c : doing the same
3123 * app/filedlg.c : include persistence.h for persistence_get_integer
3124 * lib/libdia.def export it
3126 2004-12-05 Hans Breuer <hans@breuer.org>
3128 * app/grid.c : respect dynamic grid during snap-to, fixes
3129 bug #135124, Dmitriy Morozov. Added some additional magic
3130 to make the grid size more useable.
3132 2004-12-05 Hans Breuer <hans@breuer.org>
3134 * app/app_procs.c : make it compile for the HAVE_POPT and
3135 G_LIB_CHECK_VERSION(2,5,5) case, minor formating
3137 * lib/plug-ins.c : don't pass non exiting files to xmlDiaParseFile()
3138 * app/app_procs.c : only dia_pluginrc_write() and create_user_dirs()
3139 when interactive. Fixes bug #119329
3141 * plug-ins/cairo/diacairo.c : adapt to new type naming
3142 scheme (introduced by accident;-) for pixbuf-*
3143 * app/app_procs.c : reflect both type name changes
3145 2004-12-04 Hans Breuer <hans@breuer.org>
3147 * objects/standard/image.c : fix the correct warning
3148 `image_file_name' might be used uninitialized
3150 * app/filedlg.c : near complete rewrite
3151 - removed 'related dialog', GtkOptionMenu, most global vars,
3152 also don't hide the dialog but let it go.
3153 - added: filter view by extension, hopefully working diagram
3154 referencing, GtkComboBox usage
3156 * plug-in/pixbuf/pixbuf.c : switched to dynamic generation
3157 of im/export filter entries. So the user interface reflects
3158 the dynamic nature of pixbuf loaders
3160 * lib/filter.[ch] : implement filter_unregister_*port
3161 lib/libdia.def : added new functions
3162 plug-ins/cgm/cgm.c plug-ins/dxf/dxf.c
3163 plug-ins/hpgl/hpgl.c plug-ins/metapost/metapost.c
3164 plug-ins/pstricks/pstricks.c plug-ins/svg/svg.c
3165 plug-ins/wpg/wpg.c plug-ins/xfig/xfig.c
3166 plug-ins/cairo/cairo.c plug-ins/pixbuf/pixbuf.c :
3167 use them in _plugin_unload () thus all these plug-ins
3168 can be loaded used and unloaded during Dia's runtime
3170 2004-12-04 Lars Clausen <lars@raeder.dk>
3172 * lib/diagramdata.h: Access methods for units defined per diagram.
3174 * lib/font.c (dia_font_new_from_style): More proper object creation.
3176 * lib/properties.h: Refactored the PROP_STD_* macros to allow
3179 * app/diagram.c (diagram_init): Force filename to be absolute
3180 path, easing the job for load/save.
3182 2004-12-03 Hans Breuer <hans@breuer.org>
3184 * lib/libdia.def : removed dia_marshal_*, they are implemented as macros.
3185 added dia_font_set_height, dia_font_copy (note to self: don't try to
3186 maintain these from the *NIX side ;)
3188 * lib/widgets.h : removed DiaColorSelector::col, it is not maintained by
3189 the new color selection anymore
3190 * objects/UML/class_dialog.c : with the above change it would have been more
3191 easy to fix the color loss bug #156996 which had nothing to do with 'a pointer
3192 problem' but only was an unfinished usage of dia_color_slector(get|set)_color
3194 * objects/UML/class_dialog.c objects/UML/class.[ch] : uml_apply_properties
3195 (used in object vtable) and make its prototype match
3197 * lib/widgets.c : made all the GtkTypeInfo 'static const'. I can't directly
3198 correlate any of these strange crashing bug with it, but assume bad things to
3199 happen when one passes stack allocated stuff to gtk_type_unique()
3201 * lib/widgets.c(dia_font_selector_get_font) : don't access menuitem if it is
3202 not there. Fixes most of the warnings from bug #156996
3204 * lib/makefile.msc : rules to generate diamarshal.[ch]
3206 2004-11-29 Hans Breuer <hans@breuer.org>
3208 * app/disp_callbacks.c : reenable so-called preedit
3209 as described in bug #158859, Etsushi Kato
3210 Also fixed some compiler warnings while there.
3212 * objects/standard/image.c(get_directory) : make
3213 the documentation match the implementation.
3214 (image_save) : don't write a leading slash on
3217 * plug-ins/gprint/diagnomeprintrenderer.c :
3218 switched to gnome-print-pango usage
3220 * app/app_procs.c configure.in : although Dia
3221 is not threaded it appears as if we have to
3222 g_thread_init() to avoid crashing in some
3223 libraries which are thread enabled
3225 * lib/diamarshal.list lib/Makefile.am : start of
3226 using GSignal to clean up some object relations
3227 * lib/libdia.def : export marshallers
3228 * app/diagram.[ch] : emit signals when REMOVED,
3230 * app/display.c : added a connection to
3231 SELECTION_CHANGED to test the new signal stuff
3233 * app/diagram.c : fixed diagram_finalize while I
3236 2004-11-28 Hans Breuer <hans@breuer.org>
3238 * plug-ins/wmf/wmf.cpp(draw_string) : write the widechar version of
3239 the text if conversion to current locale fails. [This is actually
3240 using code written four years ago;]
3241 * plug-ins/wmf/wmf_gdi.(h|cpp) : added TextOutW (no real implemantation)
3243 * objects/standard/image.c(image_load) : be more robust against
3244 filenames which seem to be absolute
3246 2004-11-27 Hans Breuer <hans@breuer.org>
3248 * app/filedlg.c(file_save_callback) : convert to
3249 filename encoding before passing to diagram_save()
3250 Fixes bug #158381, thanks to Robert Ögren
3252 2004-11-27 Hans Breuer <hans@breuer.org>
3254 * lib/dialibartrenderer.c : sometimes its good to read
3255 compiler warnings. Not only define renderer_finalize
3256 but actually *use* it. Should plug a potential huge
3259 * configure.in plug-ins/Makefile.am
3260 plug-ins/gprint/Makefile.am : build the experimental
3261 gnomeprint plug-in on *NIX, too.
3262 * plug-ins/gprint/diagnomeprint.c : don't include
3263 specific (private) backend headers but instead select
3264 the desired backend via config key setting
3266 * lib/diagdkrenderer.c : add 1 to size of filled arc
3267 to be rendered by gdk. Fixes bug #150896.
3269 * plug-ins/gprint/diagnomeprint.c
3270 plug-ins/gprint/diagnomeprintrenderer.c : added magic
3271 to better match page and dash sizes
3273 2004-11-27 Hans Breuer <hans@breuer.org>
3275 * plug-ins/shape/shape-export.c : it's g_strdup_printf
3277 2004-11-27 Hans Breuer <hans@breuer.org>
3279 * app/app_procs.c : mention eps-builtin aka. "using
3280 latin1", does not fix the eps-pango issues but #150571
3282 2004-11-27 Hans Breuer <hans@breuer.org>
3284 * sheets/Cybernetics.sheet.in : changed encoding to
3285 utf-8, patch from Takeshi AIHANA, fixes #149580
3287 2004-11-27 Hans Breuer <hans@breuer.org>
3289 * objects/custom/custom_object.c : many existing shapes
3290 rely on a square default size, revert to it although
3291 it originally was by a typo. Fixes bug #148527.
3293 2004-11-27 Hans Breuer <hans@breuer.org>
3295 * app/load_save.c(dia_cleanup_autosave)
3296 app/diagram.c : don't use dia->filename if already
3297 freed and dont use printf at all.
3299 * app/paginate_psprint.c : not only set the renderer::paper
3300 but also renderer::is_portrait. Should fix bug #142524
3302 2004-11-26 Hans Breuer <hans@breuer.org>
3304 * dia.desktop.in : added Bug Buddy headers (as seen
3305 in planner). Hopefully the automatically filling of
3306 bugs is more meaningful by this.
3308 * objects/custom/custom_util.c objects/standard/image.c
3309 lib/plug-ins.c : getting rid of deprecated g_dirname,
3310 fixes some more memory bugs : AddrAddress 0x3586C010 is 24
3311 bytes inside a block of size 44 free'd
3313 * lib/persistence.c(persistence_load_list) : don't
3316 * lib/diaerror.[ch] : (new file) start of better error handling
3317 * lib/Makefile.am lib/makefile.msc lib/libdia.def:
3318 added new files/funcs
3319 * lib/proplist.c lib/propinternals.h (prop_list_load) :
3320 allow to propagate error to caller. Also set PXP_NOTSET
3321 to avoid applying unset properties, fixes bug #155255
3322 * lib/propobject.c lib/prop_sdarray.c : still spewing
3323 g_warnings but now with context information
3325 * app/filedlg.c : more absolute filenames where required
3326 and strip them where we need the filename only
3327 Also explicit DONT choose gnome-vfs backend cause its
3328 threading appears to crash Dia - at least in GNOME build,
3331 2004-11-26 Hans Breuer <hans@breuer.org>
3333 * app/filedlg.c : don't use relative filenames for
3334 gtk_file_chooser_set_filename(), GtkFileChooserDialog is very
3336 (export_set_extension) : if we don't have a filename don't
3337 use it in strrchr() to avoid crashing
3339 2004-11-23 Hans Breuer <hans@breuer.org>
3341 * app/app_procs.c : fixed build for the GNOME case
3342 (let's rip out POPT and depend on glib-2.6, please ;-)
3344 2004-11-23 Hans Breuer <hans@breuer.org>
3346 * app/app_procs.c : fixed typo which broke the
3347 build for HAVE_POPT case
3349 2004-11-21 Hans Breuer <hans@breuer.org>
3351 * app/app_procs.c : some more #if-mess, but one day
3352 we should rely on GLib's 2.6 Option Parser alone
3354 * plug-ins/wmf/wmf.cpp : use SC() when scaling width
3355 and height for RoundRect() - otherwise size depends on offset,
3356 shorten the unique name
3358 * plug-ins/python/diamodule.c : provide a unique name
3359 for python filters as well
3361 * lib/dialibartrenderer.c : fix the drawing of Gdk based text
3362 by using the right colors (need black background cause we
3363 are tinitng it with the real color later)
3365 * lib/dia_dirs.c(dia_get_canonical_path) : use G_DIR_SEPARATOR_S
3366 instead of hardcoded slahes, improved portability
3368 * app/paginate_gdiprint.cpp : use the right filter name to find wmf
3369 plug-in. Also added some more error reporting (e.g. no printer driver)
3371 * plug-ins/gprint/diagnomeprintrenderer.[hc] plug-ins/gprint/diagnomeprint.c
3372 plug-ins/makefile.msc : resurrection of the gnome print renderer.
3373 Kinda works (alpha quality) for export but does not print yet.
3374 With bug #158972 resolved this does even work on win32 :-)
3376 2004-11-07 Hans Breuer <hans@breuer.org>
3378 * doc/diagram.dtd : <composite> can have <composite/>,
3379 <font/> has two 'optional' atributes 'style' and 'family',
3380 these are used to store new (since 0.91) font info.
3381 With this changes non of the issues in bug #147431 remains.
3383 * plug-ins/python/otypes.py : starting to implement an
3384 'create all known object' file as ne stress test source
3385 for the dtd and Dia in general.
3387 2004-11-06 Hans Breuer <hans@breuer.org>
3389 * app/diapsrenderer.c : don't convert to locale but to
3390 "LATIN1", fixes bug #146641
3392 2004-11-06 Hans Breuer <hans@breuer.org>
3394 * app/diagram_tree.c : still no C99 everwhere ...
3395 * lib/libdia.def : update externals
3396 * plug-ins/pstricks/render_pstricks.c : #include <locale.h>
3398 * app/app_procs.[hc] : declare, use ...
3399 app/winmain.c : ... and implement dia_redirect_console().
3400 Even though newer Gtk version don't popup a console window
3401 anymore redirecting the error messages to a file in $TEMP appears
3402 to be much more reasonable than just ignoring it. Fixes bug #150777
3403 based on a patch from Steffen Macke
3405 2004-11-06 Hans Breuer <hans@breuer.org>
3407 * plug-ins/wmf/wmf.cpp plug-ins/wmf/wmf_gdi.* : added/used
3408 RoundRect() for high level renderer api implementation thus
3409 fixing bug #138744 reported by Lars Clausen
3411 2004-11-06 Hans Breuer <hans@breuer.org>
3413 * app/prefernces.c : applied patch to make showing the diagram
3414 menubar the default (advanced users know how to switch it off)
3415 Fixes bug #150706, Steffen Macke
3417 2004-11-06 Hans Breuer <hans@breuer.org>
3419 * app/commands.c app/commands.h : added view_fullscreen_callback()
3421 app/menus.c : use it (/View/Fullscreen) thus fixing bug #94090
3422 * app/disp_callbacks.c : use view_unfullscreen() for GDK_Escape
3423 ALso modified to allow handling of unmodified keys again (aren't
3424 there plenty of bug reports for this?
3426 2004-11-06 Hans Breuer <hans@breuer.org>
3428 * objects/UML/class_dialog.c : fixed casts for usage
3429 of dia_color_selector_set_color()
3431 * app/filedlg.c : pass a valid filenames to
3432 gtk_file_chooser_set_filename(), if we don't have a name
3433 don't call it at all. Gets rid of "libgnomevfs-CRITICAL **:
3434 file gnome-vfs-utils.c: line 749 (gnome_vfs_get_uri_from_local_path):
3435 assertion `local_full_path[0] == '/'' failed"
3437 2004-11-06 Lars Clausen <lars@raeder.dk>
3439 * app/properties.c (create_dialog):
3440 * app/diagram_tree_window.h:
3441 * app/diagram_tree.h (HIDDEN_TYPES_NAME):
3442 * app/diagram_tree_menu_callbacks.c:
3443 * app/diagram_tree_window.c:
3444 * app/diagram_tree_menu.c:
3445 * app/diagram_tree.c: Changed to use persistence instead of
3446 strange hacks in preferences.
3448 * lib/persistence.h:
3449 * lib/persistence.c (persistent_list_get_glist): Don't deref null
3450 pointer. New function persistent_list_remove_all, and
3451 fixed persistent_list_remove to ... work!
3453 2004-11-05 Lars Clausen <lars@raeder.dk>
3455 * app/paginate_psprint.c (diagram_print_ps): Call
3456 diagram_print_destroy on destroy rather than delete_event. That
3457 way the gtk_widget_destroy() calls cleans up properly. Fixes bug
3460 2004-11-02 Lars Clausen <lars@raeder.dk>
3462 * objects/UML/class.c (umlclass_load): Actually load the saved
3463 fonts and font sizes. Fixes bug #157016
3465 * configure.in: Require at least GTK+ 2.4.
3467 * app/filedlg.c: Changed to use 2.4 file dialog! Finally,
3468 finally, finally. Not quite bulletproof yet, and I need to figure
3469 out a minimum version of Gtk that doesn't spew warnings all over.
3471 * app/diagram.[ch]: diagram_set_filename with const filename.
3473 * app/sheets_dialog_callbacks.c
3474 (on_sheets_dialog_button_apply_clicked): Sheet menu now almost
3475 correctly recreated. Still something fishy with the sheet menu in
3476 the dialog after adding a new sheet. Probably the sheet name
3479 2004-11-01 Lars Clausen <lars@raeder.dk>
3481 * lib/widgets.[ch] (dia_dynamic_menu_reset): Harden against memory
3482 stmping. Now requires g_free here and there.
3484 * app/preferences.[ch] (prefs_data): Got rid of hidden prefs value
3485 for remembering last sheet, better off as persistent string. Must
3486 hunt down other things like that.
3488 * app/interface.c (create_sheets): Now remembers last sheet
3489 selected again. Fixes bug #157036.
3491 2004-11-01 Hans Breuer <hans@breuer.org>
3493 * plug-ins(tex_escape_string) : fixed it [g_utf8_next_char
3494 will never become NULL but only point to the next char
3495 which might indeed be \0]
3496 Use tex_escape_string() to avoid writing invalid tex,
3499 * **/* : a bunch of changes caused by trying 'make distcheck'
3500 which still fails, see Bug #144527
3502 2004-10-31 Lars Clausen <lars@raeder.dk>
3504 * plug-ins/pstricks/render_pstricks.c (export_pstricks): Avoid
3505 floating point numbers being printed with commas. Fixes bug
3508 * app/interface.c (create_sheet_dropdown_menu): New function to
3509 create the sheet menu, and also allow recreation. Still buggy and
3510 slightly prone to magic.
3512 * objects/UML/class_dialog.c
3513 (attributes_list_selection_changed_callback): Don't try to update
3514 the widgets after they're destroyed. Fixes bug #156706 (I think).
3516 * lib/widgets.c (dia_unit_spinner_new): Avoid crash on NULL
3517 adjustement. Fixes bug #154637
3519 * sheets/ER/Makefile.am (PIX):
3520 * sheets/GRAFCET/Makefile.am (PIX):
3521 * sheets/Jackson/Makefile.am (PIX):
3522 * sheets/Istar/Makefile.am (PIX):
3523 * sheets/KAOS/Makefile.am (PIX): Actually install PNG instead of
3524 XPM. Why these have their pictures in sheets rather than shapes I
3525 don't know. Fixes bug #152142.
3527 2004-10-31 Hans Breuer <hans@breuer.org>
3529 * plug-ins/pixbuf/pixbuf.c : when running non interactive
3530 Dia won't call color_init() as it assumes no display. If
3531 we have one as tested ourselve we can as well color_init()
3532 to avoid g_warnings() and produce the right collors.
3535 * app/app-procs.c : try to be a little more helpful
3536 and correct with regard to the command line options.
3537 Renamed --export-to-format to --export-filter and some
3538 other string changes
3540 2004-10-31 Hans Breuer <hans@breuer.org>
3542 * plug-ins/wmf/wmf_gdi.cpp plug-ins/wmf/wmf_gdi.h :
3543 added GetDeviceCaps() dummy implementation to make
3544 'wmf' compile on Linux, too.
3546 2004-10-31 Hans Breuer <hans@breuer.org>
3548 * plug-ins/wmf/wmf.cpp : patch from Robert Ögren <gtk@roboros.com>
3549 to finally fix the long lasting clipping issue, bug #85831
3550 Also fixed the line style issue for printing on XP and don't
3553 * plug-ins/wmf/wmf_gdi.[hc] : added ReleaseDC()
3555 * plug-ins/python/diasvg.py : filter illegal characters from <text/> section
3556 (e.g. < instead of <), fixes bug #155697 (Duncan Palmer)
3558 * plug-ins/python/pydia-error.[hc] : improvede exception handling to transfer
3559 some info from the console (soon gone on windoze) to message_error()
3560 * plug-ins/python/pydia-render.c plug-ins/python/diamodule.c : use it.
3561 Also some setlocale() hack to let Python behave as expected for LC_NUMERIC
3563 plug-ins/python/diasvg_import.py : re.compile() only once per expression
3564 and some more playing with scaling
3566 * plug-ins/python/makefile.msc : updated
3568 2004-10-30 Hans Breuer <hans@breuer.org>
3570 * shapes/Civil/civil_arrow_right.shape : removed
3571 <aspectratio type="fixed" /> thus allowing to change
3572 width and height independently, fixes #154897
3573 (Serge Robinson) by making it consistent with the
3576 2004-10-30 Hans Breuer <hans@breuer.org>
3578 * plug-ins/xfig-xfig-export.c(hasArrow) : don't crash
3579 on arrow being NULL, fixes bug #143063
3581 2004-10-30 Hans Breuer <hans@breuer.org>
3583 * lib/diagramdata.c app/diagram.c app/disp_callbacks.c
3584 plug-ins/python/pydia-diagram.c plug-ins/python/pydia-diagramdata.c :
3585 removed use of chached variable DiagramData::selected_count
3586 * lib/diagramdata.h : renamed to selected_count_private
3587 (kept for binary compatibility and sanity checks)
3588 * lib/diagramdata.c : more checks on a screwed up selection list
3590 * app/diagram.c(diagram_group_selected) : don't screw up the
3591 DiagramData::selected list, was assignment of parent_list_affected(),
3592 * lib/diagramdata.c (data_select, data_unselect) : protect against
3593 multiple selections of the same object and removement of a not selected
3594 object (apparently caused by the recently added group undo stuff)
3595 together with the above this finally fixes bug #153525
3597 * app/Makefile.am : fix ./autogen.sh ->
3598 app/Makefile.am:171: blank line following trailing backslash
3600 * app/commands.c(objects_group_callback,objects_ungroup_callback) :
3601 ddisplay_do_update_menu_sensitivity() here as well
3603 * configure.in : make the experimental state of the cairo plug-in
3606 * app/dia-props.c(diagram_properties_update_sensitivity) : don't
3607 try to update anything if we can't find an active diagram
3608 Additionally set static dialog pointer to NULL by gtk_widget_destroyed
3610 * configure.in : another attempt to fix bug #156116. If there is
3611 anyone with autotools knowledge reading this - help appreciated ;-)
3613 2004-10-30 Hans Breuer <hans@breuer.org>
3615 * objects/makefile.msc objects/UML/Makefile.am
3616 objects/UML/uml.c objects/UML/transition.c
3617 objects/UML/pixmaps/transition.xpm sheets/uml.sheet.in :
3618 Patch from Peter Allin adds statechart transitions to the UML sheet -
3619 bug #144956 - modified to not print("%s", NULL) which crashes on
3620 newer glib versions. Also added pixmap/transition.xpm to Makefile.am
3622 2004-10-30 Hans Breuer <hans@breuer.org>
3624 * doc/sheet.dtd doc/diagram.dtd : the namespace does *not*
3625 match the website anymore, i.e. sould remain unchanged.
3626 See below and lib/dia_xml.h for the reasoning
3628 * lib/libdia.def : removed dia_color_selector_get_type
3630 * lib/dia_image.c(dia_image_load) : check for pixbuf warnings
3631 (like broken PNG) and g_warning if appropriate
3633 * app/interface.c : #include "message.h"
3635 * app/diaunitspinner.hc : replaced the superfluous #if-0-juggling,
3636 used #error "Moved to lib/widgets.[hc]" instead (IMO it would be
3637 better to just move diaunitspinner to lib/ instead of polluting
3638 widgets.[hc] even more ;)
3639 * app/makefile.msc lib/libdia.def : updated
3641 * app/filedlg.c : patch from gtk@roboros.com, fixes #156224
3642 * app/app_procs.c : patch from gtk@roboros.com, fixes #156088
3644 * config.h.win32 : #define HAVE_CAIRO to let the Cairo plug-in
3645 do something useful when compiled
3647 * plug-ins/cairo/diacairo.c : added 'PNG with alpha' rendering.
3648 Also some more #ifdefed backends usage.
3650 2004-10-10 Lars Clausen <lars@raeder.dk>
3652 * lib/widgets.c: Better labels for color selector menu.
3654 * app/dia-props.c (diagram_properties_respond):
3655 * app/preferences.c (prefs_get_value_from_widget): Don't assume
3656 that a dia color selector is of type DiaColorSelector:)
3658 * lib/widgets.[ch]: Color selector changed to dynamic menu.
3660 * lib/prop_attr.c (colorprop_set_from_widget): Don't assume
3663 2004-10-09 Lars Clausen <lars@raeder.dk>
3665 * lib/diaarrowchooser.c (dia_arrow_preview_init): Slightly wider
3666 arrow preview to avoid long arrow heads flipping.
3668 * lib/arrows.[ch]: Support for getting from name to arrow type,
3669 and for listing all arrow names.
3671 * lib/widgets.[ch]: Changed arrow selector to use dynamic menu.
3673 * lib/libdia.def: Added new global functions.
3675 * lib/persistence.[ch]: Two of the persistent_list functions to
3676 return whether the item was found in the list.
3678 * app/interface.c (create_sheets): Use DiaDynamicMenu to handle
3679 the growing number of sheets.
3681 * lib/widgets.[ch]: Add DiaDynamicMenu as a generalization of the
3684 2004-10-05 Lars Clausen <lars@raeder.dk>
3686 * objects/UML/association.c: Patch from Harvey Thompson
3687 <harveyandsu@yahoo.com>: Better placement of association texts.
3689 2004-10-03 Lars Clausen <lars@raeder.dk>
3691 * lib/widgets.c (dia_font_selector_add_menu_item): Make font menu
3692 use the fonts in question. Can't set tooltips with the name since
3693 lib objects don't know the tool_tips thing, which is rather
3696 2004-09-19 Hans Breuer <hans@breuer.org>
3698 * plug-ins/xslt/*.xsl : s/apply-templates match/apply-templates select/
3699 fixes bug #148278, carlosrp@idea.com.py (Carlos Ra�l Perasso)
3701 2004-09-19 Hans Breuer <hans@breuer.org>
3703 * dia.desktop.in : string changes as proposed in bug #151822
3705 * lib/Makefile.am : remove -module from libdia_la_LDFLAGS,
3706 appearts not to be needed on Linux and breaks the build
3707 on OSX. Fixes bug #152970
3709 2004-09-18 Lars Clausen <lars@raeder.dk>
3711 * app/commands.c (view_show_all_callback): Add a bit of border
3712 around Ctrl-E'd diagram, for easier select and better view of edges.
3714 2004-09-19 Hans Breuer <hans@breuer.org>
3716 * app/Makefile.am : trying to fix the fix from 2004-02-15
3717 Overwriting AM_LDFLAGS still gave a automake warning and it
3718 also appeard to break linking against gtklibs in a differnt
3719 prefix. Use dia_LDFLAGS instead.
3721 * plug-ins/svg/svg-import.c : initialize 'end' before usage
3722 patch from dcbw@redhat.com (Dan Williams), fixes bug #150548
3724 * lib/diarenderer.c : don't try to draw lines which are so much
3725 degenerated that their point count became negative, fixes bug #148139
3727 * lib/font.c(layout_cache_equals) : don't crash on nonexisting
3728 strings (NULL from g_strdup())
3730 2004-09-10 Steffen Macke <sdteffen@web.de>
3732 * lib/libdia.def: added color_new_rgb(), focus_previous(),focus_next(),
3733 give_focus(),give_focus_to_object(),remove_focus(),reset_foci()
3734 * app/create_object.c:
3735 * app/diaunitspinner.c:
3736 * app/disp_callbacks.c:
3738 * app/modify_tool.c:
3739 * lib/prop_geomtypes.c:
3740 * lib/prop_geomtypes.h: made compile with msvc
3742 2004-09-10 Lars Clausen <lars@raeder.dk>
3744 * lib/widgets.c: Insulate conversion from outside API by adding
3745 internal function to set value. Adjustment not appropriate for
3748 * lib/prop_geomtypes.c (lengthprop_get_widget): Remove debug info
3750 2004-09-07 Lars Clausen <lars@raeder.dk>
3752 * app/diapagelayout.c: Include from widgets.c rather than
3755 2004-09-03 Lars Clausen <lars@raeder.dk>
3757 * objects/standard/box.c: Use PROP_TYPE_LENGTH for corner_radius
3758 as unit-based property testbed.
3760 * lib/prop_geomtypes.c (lengthprop_reset_widget): Implement length
3761 and fontsize widgets.
3763 * app/Makefile.am (dia_core_files):
3764 * app/diaunitspinner.h:
3765 * app/diaunitspinner.c:
3767 * lib/widgets.c (dia_unit_spinner_update): Move diaunitspinner to
3768 lib/widgets.[ch], as it's used in the properties code now.
3770 2004-08-31 Steffen Macke <sdteffen@web.de>
3772 * doc/en/usage-objects-basic.xml: Mentioning supported image formats.
3774 2004-08-30 Lars Clausen <lars@raeder.dk>
3777 * app/diagram.c (diagram_remove_all_selected): Remove debugging
3782 * app/disp_callbacks.c:
3784 * app/create_object.c:
3785 * app/textedit.[ch]:
3786 * app/modify_tool.c:
3789 * lib/focus.[ch]: Change in focus mechanism to allow highlight of
3790 current input object, multiple inputs per object, and tabbing
3793 2004-08-28 Steffen Macke <sdteffen@web.de>
3795 * makefile.msc: added bs to ALL_LINGUAS; adjusted .mo file creation to
3796 allow separate installer component "Translations"
3798 2004-08-27 Akagic Amila <bono@linux.org.ba>
3800 * configure.in: Added 'bs' to ALL_LINGUAS.
3802 2004-08-26 Steffen Macke <sdteffen@web.de>
3804 * app/makefile.msc: using /subsystem:windows again
3805 * makefile.msc: updated ALL_LINGUAS
3807 2004-08-21 Kjartan Maraas <kmaraas@gnome.org>
3809 * configure.in: Add «nb» to ALL_LINGUAS.
3811 2004-08-21 Steffen Macke <sdteffen@web.de>
3813 * plug-ins/dxf/dxf-export.c: Patch from
3814 Takeshi Hamasaki <hma@syd.odn.ne.jp>, fixes text alignment
3816 2004-08-17 Lars Clausen <lars@raeder.dk>
3819 * dia.spec (Release):
3825 2004-08-13 Ankit Patel <ankit@redhat.com>
3827 * configure.in: Added "gu" in ALL_LINGUAS.
3829 2004-08-07 Lars Clausen <lars@raeder.dk>
3835 * dia.spec (Release):
3836 * NEWS: New release 0.94-pre6
3838 2004-08-07 Lars Clausen <lars@raeder.dk>
3840 * app/highlight.c (highlight_reset_objects): Unhighlight inside
3844 * plug-ins/shape/shape-export.c: String capitalization fix from
3845 Alan Horkan <horkana@tcd.ie>
3847 * objects/UML/class.c (umlclass_show_comments_callback): Make UML
3848 Class object menu kinda work, rather than blow up. Doesn't do a
3849 proper undoable change yet.
3851 2004-08-06 Lars Clausen <lars@raeder.dk>
3853 * app/filedlg.c (file_save_as_callback): Don't remove related
3854 dialogs from the NULL diagram.
3856 2004-08-02 Lars Clausen <lars@raeder.dk>
3861 * dia.spec (Release):
3862 * NEWS: Pre5 with leak fix.
3864 * lib/font.c (dia_font_build_layout): Don't try to save an
3865 allocation of LayoutCacheItem if it breaks layout cache hash.
3866 Also make hash function correct, remove explicit height entry
3867 (it's in pfd), and make sure things are correctly unreffed.
3868 Finally fixes #148141.
3870 * lib/text.c (text_set_attributes, text_set_font): Safely unref
3871 when changing font, and actually set the new font in
3873 (text_get_attributes): Ref copied font.
3875 2004-08-01 Lars Clausen <lars@raeder.dk>
3879 * dia.spec (Release):
3882 * doc/en/dia.xml: Prerelease 4.
3884 * lib/font.c (dia_font_build_layout): Better comparision and
3885 freeing of font cache.
3887 2004-07-31 Lars Clausen <lars@raeder.dk>
3889 * lib/font.c (dia_font_build_layout): Faster update to avoid
3892 * app/app_procs.c: Fix from Tom Parker <palfrey@bits.bris.ac.uk>:
3893 Correctly initialize export filter variable.
3895 2004-07-25 Lars Clausen <lars@raeder.dk>
3897 * dia.spec (Release):
3902 * doc/pl/dia.xml: Pre3 coming out.
3904 * lib/diarenderer.c (draw_polygon):
3905 * plug-ins/dxf/dxf-export.c (export_dxf): Two fixes by Takeshi
3906 Hamasaki <hma@syd.odn.ne.jp>: Correct header to be a 0 (zero)
3907 rather than O (letter), and assert num_points > 1 rather than the
3910 * app/recent_files.c:
3913 * app/app_procs.c: Patch from Vitaly Lipatov <lav@altlinux.ru>:
3914 Make filenames conform to filesystem encoding.
3916 * RDP/.cvsignore: Added standard ignore.
3918 * shapes/network/Makefile.am (SHAPES): Use PNG instead of XPM for
3919 last entry patch-panel, too.
3922 * shapes/Circuit/*.png:
3923 * shapes/Civil/*.png:
3924 * shapes/Contact/*.png:
3925 * shapes/Electric/*.png:
3927 * shapes/Pneumatic/*.png:
3929 * shapes/flowchart/*.png:
3930 * shapes/jigsaw/*.png:
3931 * shapes/network/*.png:
3932 * shapes/sybase/*.png:
3934 * dia_gnome_icon_large.png:
3935 * doc/pl/graphics/*.png: Set -kb for PNGs.
3937 * sheets/{ER,GRAFCET,Istar,Jackson,KAOS}: Added .png files.
3939 2004-07-22 Lars Clausen <lars@raeder.dk>
3945 * dia.spec (Release):
3946 * configure.in: Update to version 0.94-pre2.
3948 * app/load_save.c (diagram_data_write_doc): Use new namespace
3951 * lib/object.h (OBJECT_COMMON_PROPERTIES): Remove 'Dia' from
3952 hidden objects properties.
3954 * objects/standard/line.c: Remove halffinished line gap box from
3957 * app/paginate_psprint.c:
3958 * app/filedlg.c: Patch from kimmidi@novell.com (Kiran Kumar
3959 Immidi): Close export and print dialog with diagram as well.
3962 * lib/diaarrowchooser.[ch]: Patch from pborelli@katamail.com (paolo
3963 borelli): Remove deprecated stuff (#137693)
3965 * app/dia-props.c (create_diagram_properties_dialog): Patch from
3966 kimmidi@novell.com (Kiran Kumar Immidi): Close properties dialog
3969 2004-07-21 Ray Strode <rstrode@redhat.com>
3971 * dia/dia.desktop.in: Add MimeType line to desktop file
3974 2004-07-18 Hans Breuer <hans@breuer.org>
3976 * shapes/(Circuit|Contatct|MSE|network|Pneumatic|SDL|sybase)/Makefile.am
3977 sheets/UML/*.png : icons in png format
3978 Partial fixup of stuff broken with the following comment:
3979 "7 days : xpm->png, namespace fix, first rotation bits."
3981 * app/load_save.c(read_objects) : don't add objects to the layer.
3982 This function is called recursively and only the topmost objects
3983 belong in the layers object list. Fixes bug #145417 and is the
3984 the real fix for bug #142480
3986 * app/app_procs.c : make the --size hack even uglier, but work again
3988 * lib/dia_dirs.c(dia_get_absolute_filename) : must not free()
3989 but g_free() what is returned by g_build_filename()
3991 * objects/custom/custom_object.c(custom_destroy) : handle all enum
3992 values in switch to get rid of the warning
3994 * objects/custom/shape_info.c : use g_ascii_strtod(), get rid
3995 of setlocale()/strtod()
3996 * lib/dia_svg.c : dito
3997 * lib/dia_xml.c : almost
3999 * plug-ins/python/group_props.py : use the string representation of
4000 value to ensure "unique values". If the strings would not be different
4001 the user cann't see the difference either
4003 2004-07-17 Lars Clausen <lars@raeder.dk>
4005 * lib/persistence.h: Have "void" in prototypes (#142663)
4007 * lib/widgets.c (dia_font_selector_init): Better string handling
4010 * lib/persistence.c (persistence_save_type): Small fixes (#142663)
4012 * objects/standard/image.c (image_load): Use path of diagram
4013 rather than running directory as base for image file place.
4015 * doc/{diagram,sheet}.dtd: Move DTD namespace to new site, and
4018 * app/disp_callbacks.c (ddisplay_canvas_events): Patch from
4019 Ambrose Li <a.c.li@ieee.org>: Better IM context handling.
4021 * Re-added new sample diagrams binarily.
4023 2004-07-17 Sagar Rastogi <rastogi@students.iiit.net>
4025 * app/disp_callbacks.c: Fixed #144962 (also in KNOWN_BUGS),
4026 Disabled keyboard accels when dragging an object.
4028 2004-07-14 Lars Clausen <lars@raeder.dk>
4030 * app/grid.c (snap_to_grid): Use diagrams grid setting to
4031 determine hex grid snap.
4033 * doc/pl/Makefile.am: Avoid error based on backslash in comment.
4035 * app/interface.h: Avoid multiply defined symbols (#147396)
4037 2004-07-10 Lars Clausen <lars@raeder.dk>
4039 * app/sheets_dialog_callbacks.c (write_user_sheet):
4040 * lib/sheet.c (load_register_sheet): Don't introduce double
4041 slashes in namespace.
4043 * lib/dia_xml.h (DIA_XML_NAME_SPACE_BASE): Keep consistent with
4044 old diagrams, or XSLT will barf all over.
4046 * shapes/RDP/place.shape:
4047 * shapes/RDP/transition.shape:
4048 * shapes/RDP/Makefile.am: Added .png entries to SHAPES and changed
4049 shapes to use those.
4051 2004-07-07 Lars Clausen <lars@raeder.dk>
4054 * doc/{en,pl}/dia.xml:
4057 * NEWS: First prerelease of version 0.94. Now with release
4058 versions in a branch and main devel in the trunk.
4060 2004-07-05 Hans Breuer <hans@breuer.org>
4062 * */*.[hc] */*/*.c : a bunch of changes to make Dia compile with
4063 -std=c89. Mostly //-comments and M_PI -> G_PI
4064 [Istar, Jackson, KAOS were removed from build cause they
4065 simply have *too* much C++ comments ;]
4066 * object/UML/association.c : use g_strdup() not plain strdup()
4067 * app/paginate_psprint.c : avoid storage size of `pipe_action'
4068 isn't known with more portable signal code
4070 * app/app_procs.c : don't call gtk_init() if just --version
4071 is requested (bug #144321, Vladimir Kondratiev)
4073 * lib/prop_attr.c(fontprop_set_from_offset) : only unref
4074 DiaFont* if not NULL
4075 * objects/UML/class.c : moved fill_in_fontdata() to
4076 umlclass_load() to avoid such trouble, though unsure if
4077 this really is an improvement...
4079 * shapes/network/makefile.am : patch-panel added here too
4081 2004-07-04 Hans Breuer <hans@breuer.org>
4083 * sheets/network.sheet.in shapes/network/patch-panel.xpm
4084 shapes/network/patch-panel.xpm : added 24-Port-Patch-Panel
4085 fixes bug #136629, James McDonald
4087 2004-07-04 Hans Breuer <hans@breuer.org>
4089 * lib/persistence.c app/load_save.c app/sheet_dialog_callbacks.c
4090 lib/object_defaults.c : revert changing of Dia's XML namespace
4091 * lib/dia_xml.h : #define DIA_XML_NAME_SPACE_BASE with a comment
4092 about its purpose and relation to real world urls.
4094 * lib/plug-ins.h : increment DIA_PLUGIN_API_VERSION and
4095 added comment about when to do so
4096 [Should have been long time ago and probably multiple times
4097 to avoid crashing on older plug-ins]
4098 * RELEASE-PROCESS : mention DIA_PLUGIN_API_VERSION
4099 * plug-ins/xslt/xslt.c : use DIA_PLUGIN_CHECK_INIT
4101 * lib/object.c objects/UML/class.c : there are still compilers not
4102 supporting C99 and other GCCISMs like allocating dynamic sized arrays
4104 * objects/UML/class.h : there is a differnce between a list pointer
4105 and a list pointer pointer. We and GLib want the former.
4107 * plug-ins/pixbuf/pixbuf.c : don't use app_is_interactive () to detect
4108 if Gtk is initialized. Using gdk_display_get_default () avoids the
4109 app/* dependency and is also closer to the requirements of the
4112 * plug-ins/cairo/diacairo.c : initialize "unique name" field. Also
4113 some #ifdefed support for Cairo backends not public available yet.
4115 * plug-ins/wmf/wmf.cpp : finally do extended linestyles if the
4116 windoze platform supports them. This should fix bug #109818, at
4117 least for the majority running NT or above ...
4118 * plug-ins/wmf/wmf_gdi.[hc] : portability stuff for the above
4120 * objects/makefile.msc : build Istar, Jackson and Kaos
4122 * objects/UML/class.c(umlclass_load) : don't wrap by default to
4123 keep old diagrams as they were - instead of this nice new effect ;-)
4124 Also make "wrap_operations" PROP_TYPE_BOOL in PropDescriptions
4126 * objects/UML/class.c : mark for translation _("Wrap ...
4128 * objects/UML/class.c : more correct types, also some default properties
4129 dialog pages adjustment (triggering a bug in lib/prop_widgets.c ?;)
4131 * objects/UML/activity.c : removed a leftover from the
4132 use-localization-for-font-substitution-hack
4134 * shapes/ChemEng shapes/Cybernetic shapes/Map/Isometric :
4135 'cvs admin -kb *.png' PNG files should already be *added* as binary,
4136 otherwise they are not readable on line-end-converting-platforms
4138 * plug-ins/python/use g_new0(Dia<Im|Ex>portFiler), avoids crashing
4139 filter_get_by_name()
4141 * plug-ins/python/pydia-property.c : some more g_warnings for
4142 not implemented conversions
4144 * plug-ins/python/group_props.py : ensure unique property values
4145 at the right place. Now something like :
4146 - load an old UML class diagram
4147 - change one of the classes to wrap operations
4148 - select all classes (/Select/Same Type)
4149 - /Dialogs/Group Properties : check wrap_operations, select '1'
4150 - Ok, works like a charm :-)
4152 2004-07-04 Lars Clausen <lars@raeder.dk>
4154 * lib/diagdkrenderer.c (draw_string): Don't unref NULL
4157 2004-07-03 Lars Clausen <lars@raeder.dk>
4159 * app/app_procs.c (do_convert): Two patches from Vitaly Lipatov
4160 <LAV@VL3143.spb.edu>: Fixes console output problems and some
4161 interactiveness problems.
4163 2004-07-02 Lars Clausen <lars@reader.dk>
4165 * plug-ins/pixbuf/pixbuf.c (dia_plugin_init): Don't load if the
4166 app isn't interactive.
4168 2004-07-01 Lars Clausen <lars@raeder.dk>
4170 * plug-ins/cairo/diacairo.c: Add init of last field of filter
4171 struct to remove crash.
4173 * sheets/Makefile.am (sheet_in_files):
4174 * shapes/Makefile.am:
4175 * sheets/ChemEng.sheet.in:
4176 * shapes/ChemEng/Makefile.am:
4178 New sheet from "Federico Zenith" <zenith@chemeng.ntnu.no>:
4179 Chemical engineering shapes.
4181 * app/Makefile.am (run_dia.sh$(EXEEXT)): Changed $* to $@ to allow
4182 multiple arguments when using devel script.
4184 * app/display.c (new_display):
4186 * lib/diagramdata.c (new_diagram_data):
4187 * lib/diagramdata.h:
4188 * app/preferences.h:
4189 * app/preferences.c:
4192 * lib/diagramdata.c (new_diagram_data): Patch from Peter Poulsen
4193 <peter_poulsen@stofanet.dk>: Add hexagonal grid!
4196 * doc/pl/authors.xml:
4197 * doc/en/authors.xml:
4198 * lib/object_defaults.c (dia_object_defaults_save):
4199 * readme.win32 (BTW):
4200 * lib/persistence.c (persistence_save):
4201 * app/load_save.c (diagram_data_write_doc):
4202 * app/commands.c (help_about_callback):
4203 * README: Fix links to home page.
4206 * app/load_save.c (diagram_data_load):
4207 * lib/prop_text.c (stringprop_load): Avoid NULL strings when
4208 loading, and guard against them when fonting.
4210 * lib/diarenderer.c (draw_rounded_polyline): Patch from
4211 anthonym@overture.com: Make limited rounding a corner-specific
4212 rendering-only thing.
4214 2004-06-30 Lars Clausen <lars@raeder.dk>
4216 * lib/font.c (dia_font_build_layout): Return to 0.93.1 font size
4217 adjustment: If you can't fix it, at least don't change it.
4219 * objects/SADT/arrow.c (sadtarrow_draw): Use new rounded arrow
4220 code instead of individual code in here.
4222 2004-06-29 Lars Clausen <lars@raeder.dk>
4224 * objects/UML/association.c: Patch from Kiran
4225 Kumar Immidi <kimmidi@novell.com>: Fix bounding box for line end
4230 * lib/diarenderer.c (draw_rounded_polyline):
4231 * objects/standard/polyline.c (polyline_draw):
4232 * objects/standard/zigzagline.c (zigzagline_draw):
4233 Patch from anthonym@overture.com: Add rounded polylines.
4235 2004-06-27 Lars Clausen <lars@raeder.dk>
4237 * lib/font.c (dia_font_new_from_style): Initialize legacy name.
4239 * lib/widgets.c (dia_font_selector_get_family_from_name): Don't
4240 free family list before taking out the pointer we need. Also set
4241 the entry_nr correctly so we get the menu set up right.
4243 2004-06-23 Lars Clausen <lars@raeder.dk>
4245 * lib/widgets.c (dia_toggle_button_new_with_images): Sink the
4246 images at the right place.
4248 * objects/Istar/actor.c
4249 * objects/Istar/goal.c
4250 * objects/Istar/istar.c
4251 * objects/Istar/istar.h
4252 * objects/Istar/link.c
4253 * objects/Istar/other.c
4254 * objects/Jackson/domain.c
4255 * objects/Jackson/jackson.c
4256 * objects/Jackson/jackson.h
4257 * objects/Jackson/phenomenon.c
4258 * objects/Jackson/requirement.c
4259 * objects/KAOS/goal.c
4260 * objects/KAOS/kaos.c
4261 * objects/KAOS/kaos.h
4262 * objects/KAOS/metaandorrel.c
4263 * objects/KAOS/metabinrel.c
4264 * objects/KAOS/other.c: Patch from Patch from Christophe Ponsard
4265 <cp@cetic.be>: Fix instability issues caused by not returning NULL
4266 in *_move_handle and *_move. Also improved the headers with
4267 correct (c) information.
4269 2004-06-22 Lars Clausen <lars@raeder.dk>
4271 * objects/KAOS/goal.c:
4272 * objects/KAOS/other.c:
4273 * objects/Istar/actor.c:
4274 * objects/Istar/goal.c:
4275 * objects/Istar/other.c:
4276 * objects/Jackson/domain.c:
4277 * objects/Jackson/phenomenon.c: Patch from Christophe Ponsard
4278 <cp@cetic.be>: Fix resize issues.
4280 * app/filedlg.c (file_dialog_hide): Patch from Kiran
4281 Kumar Immidi <kimmidi@novell.com>: Check for null when removing
4282 related dialog. #129520.
4284 * app/dia-props.c (diagram_properties_show): Patch from Kiran
4285 Kumar Immidi <kimmidi@novell.com>: Make sure properties dialog is
4286 a child of its diagram. #129520.
4288 * objects/UML/association.c (association_load): Patch from Kiran
4289 Kumar Immidi <kimmidi@novell.com>: Update positions properly for
4290 text placement. #118313.
4292 2004-06-17 Lars Clausen <lars@raeder.dk>
4294 * objects/KAOS/Makefile.am: Add pixmaps/goal.xpm to EXTRA_DIST
4296 * Makefile.am: Make THANKS only be generated by maintainers.
4298 * doc/pl/Makefile.am: Removed usage+objects+basic.xml from
4301 * configure.in: Added three missing Makefiles.
4305 Patch from shuveb@yahoo.com (Shuveb Hussain): Remove
4306 diagram-related (save) dialog when closing diagram. To be
4307 extended to other dialogs.
4309 * doc/pl/dia.xml: Removed reference to objects-basic. (#144527)
4311 * samples/Istar.dia:
4312 * samples/Jackson.dia:
4314 * sheets/Istar.sheet.in:
4315 * sheets/Jackson.sheet.in:
4316 * sheets/KAOS.sheet.in:
4321 * objects/Jackson/*:
4324 * objects/Makefile.am (SUBDIRS):
4325 * sheets/Makefile.am (SUBDIRS):
4326 * samples/Makefile.am: Additions from Christophe Ponsard
4327 <cp@cetic.be>: Jackson, I* and KAOS diagram support. Needs a bit
4330 2004-06-12 Lars Clausen <lars@raeder.dk>
4333 * lib/prop_geomtypes.[ch]: Preparation for selectable units.
4335 * lib/font.h: Toning down comments a bit:)
4337 * lib/font.c (dia_font_build_layout): Playing around with DPI
4339 * objects/UML/association.c (association_load): Avoid crashes on
4342 * objects/UML/association.c: Patch from kimmidi@novell.com:
4343 Improve placement of labels when vertical. Part fix of #118313
4345 * lib/object.c (dia_object_is_selected): Grouped objects are not
4346 selected, only the group itself. Thus, don't crash when grouping
4349 * objects/UML/association.c: Patch from kimmidi@novell.com: Agree
4350 on how to represent empty strings. Fixes #143639.
4352 * lib/object.c (dia_object_is_selected): Added comment answer.
4354 2004-06-12 Hans Breuer <hans@breuer.org>
4356 * lib/diagramdata.c lib/object.c : deal with grouped objects
4357 not knowing their parent_layer, i.e. avoid crashing in
4358 dia_object_is_selected() via group_draw() [ Triggered by
4359 playing with the Visio generated svg from bug #143455 ]
4361 * plug-ins/python/diasvg_import.py : started to implement
4362 transformation="translate(...)" and <style/> handling. Also
4363 use some other completely bogus values for em/ex scaling
4365 2004-06-08 Lars Clausen <lars@raeder.dk>
4367 * plug-ins/cairo/.cvsignore: CVS-ignore generated makefiles.
4369 2004-06-07 Lars Clausen <lars@raeder.dk>
4371 * app/layer_dialog.c (layer_dialog_set_diagram):
4372 * app/display.c: Layer widget crash more properly dealt with in
4375 * app/display.c (ddisplay_flush): Fixed crash when closing: Layer
4376 widget deselect was called during destroy, but called
4377 ddisplay_flush, leading to a new display timeout after renderer
4380 * lib/widgets.c (dia_toggle_button_destroy):
4381 * app/recent_files.c (recent_file_menuitem_create):
4382 * lib/persistence.c (persistence_save_list):
4383 * app/commands.c (edit_delete_callback):
4384 * lib/object_defaults.c (dia_object_defaults_save):
4385 * lib/parent.c (parent_list_affected_hierarchy): Killed leaks
4388 * lib/widgets.c (dia_toggle_button_new_with_images): Remove
4391 * lib/diagramdata.c (new_layer): Initialize connectibility.
4393 * app/display.c (ddisplay_obj_render):
4394 * app/diagram.c (diagram_find_closest_connectionpoint): Take
4395 connectibility into account.
4397 * app/layer_dialog.h (struct _DiaLayerWidget):
4398 * app/layer_dialog.c:
4399 Connectible toggle updates, now works fairly well.
4401 * app/select.c (select_transitive_callback): Make sure we're only
4402 selecting in the same layer.
4404 2004-06-04 Lars Clausen <lars@raeder.dk>
4406 * app/pixmaps/Makefile.am: Also install connectable images.
4408 * app/layer_dialog.c (dia_layer_update_from_layer): Initially set
4409 layer toggles from layer itself. Also update diagram correctly
4410 for visibility. Still need updates for connectivity behaviour.
4412 2004-06-03 Hans Breuer <hans@breuer.org>
4414 * plug-ins/wpg/wpg.c(draw_image) : take rowstride into account
4416 * lib/diagdkrenderer.c(set_linejoin) : actually set
4417 join_style not cap_style
4418 (set_dashes): with the correct number of dashes
4420 2004-06-03 Lars Clausen <lars@raeder.dk>
4422 * app/modify_tool.c (click_select_object):
4423 * lib/text.c (text_set_cursor):
4424 * app/disp_callbacks.c (ddisplay_canvas_events): Turn off text stuff.
4426 2004-05-31 Hans Breuer <hans@breuer.org>
4428 * lib/object_defaults.c : don't 'failed to load external
4429 entity "NULL"' when the defaults file does not exist,
4430 bug #108764 [again: somehow this got lost]
4432 * app/paginate_gdiprint.cpp : don guess the WMF export
4433 filter used for printing but find it by unique name.
4434 Also update for export_func renaming
4435 * plug-ins/wmf/wmf.cpp plug-ins/cairo/diacairo.c
4436 provide some unique names
4438 * app/commands.c app/disp_callbacks.c app/paginate_psprint.c
4439 app/select.c : fix bug #140789 by always checking if there
4440 still is an active diagram before accessing it
4442 * app/defaults.c app/properties.c : user visible string should
4443 not read DiaObject but stay as "Object defaults/properties"
4445 * app/app_procs.c : reduce the hack to pass --size to the
4446 export via user_data to the only filter supporting it. Other
4447 filters would crash on it or do worse ;(
4449 * plug-ins/wpg/wpg.c : not every 'Object' is a DiaObject ...
4451 2004-05-31 Lars Clausen <lars@raeder.dk>
4454 * lib/widgets.c: Use GtkType rather than guint for
4455 dia_size_selector_get_type.
4457 2004-05-29 Lars Clausen <lars@raeder.dk>
4459 * app/diapsrenderer.c (fill_bezier): Use even-odd winding rule so
4460 that it matches the screen output for selfoverlapping polygons and
4463 2004-05-28 Hans Breuer <hans@breuer.org>
4465 * app/load_save.c : ignore empty groups on load and don't
4466 write empty groups while saving
4467 * lib/group.h (group_update_data): there is no first object
4468 in empty groups and they probably don't need an update at
4469 all. Maybe the shold just not exist ?
4471 * plug-ins/cairo/diacairo.c : fixed arc drawing, right aligned
4472 text positioning as well as drawing of images with alpha
4474 * plug-ins/wmf/wmf.cpp : include windows.h if eiher
4475 HAVE_WINDOWS_H or G_OS_WIN32 is defined
4477 2004-05-28 Lars Clausen <lars@raeder.dk>
4479 * app/pixmaps/Makefile.am (imagedir):
4480 * app/pixmaps/visible.png:
4481 * app/pixmaps/visible-empty.png: New images for the visibility
4482 button in the layer dialog.
4484 * lib/widgets.c (dia_toggle_button_new_with_images): Remove even
4485 more border around the button. Still some left when hovering the
4486 mouse or selecting, and the grey background is annoying.
4488 * app/layer_dialog.c (dia_layer_widget_init): Use real buttons for
4489 visibility connector.
4491 2004-05-26 Lars Clausen <lars@raeder.dk>
4493 * configure.in (DB2MAN): Better check for db2man docbook place.
4494 Need something even better.
4496 * doc/en/Makefile.am (dia.1): Conditional on having DB2MAN.
4498 * lib/widgets.c (dia_toggle_button_new_with_images): Remove
4499 extraeneous borders.
4502 * dia_gnome_icon.png:
4503 * samples/render-test.dia: Rendering test from Hans.
4505 2004-05-24 Hans Breuer <hans@breuer.org>
4507 * lib/filter.h : renamed DiaExportFilter::export to
4508 _DiaExportFilter::export_func (should not use c++
4509 keywords (g++ specifc ?) in headers. Same for import
4510 out of pure symmetry reasons
4511 * plug-ins/shape/shape-export.c plug-ins/python/diamodule.c
4512 app/diagram.c app/filedlg.c : reflect functions renaming
4514 * plug-ins/wmf/Makefile.am : finally compile the wmf plug-in
4515 under *NIX, too. [If you want something done, do it yourself ;-]
4516 * plug-ins/wmf/wmf_gdi.[hc] : some more stuff to catch up
4517 with wmf.cpp's GDI usage
4518 * plug-ins/wmf/wmf.cpp : compile even without HAVE_WINDOWS_H,
4519 [For the moment it does not much more than compiling, i.e.
4520 the produced WMF files are invalid, if not created on windoze.]
4522 * configure.in : check for C++ to compile plug-in/wmf
4524 * objects/GRAFCET/boolequation.c : looks like fixing
4525 another leak (untested)
4527 2004-05-23 Hans Breuer <hans@breuer.org>
4529 * acinclude.m4 : another attempt to fix
4530 bug #142032 (still not sure it's the right one,
4531 but works for me(tm), which the other does not ;)
4533 * plug-ins/cairo/Makefile.am
4534 plug-ins/Makefile.am
4535 configure.in : support building the new cairo
4536 plug-in, if given --with-cairo and the cairo
4537 packages are found, see http://cairographics.org
4538 and also http://hans.breuer.org/dia/dia-cairo.htm
4540 * plug-ins/cairo/diacairo.c : make it compile
4541 with DEBUG_CAIRO defined, too.
4543 2004-05-23 Hans Breuer <hans@breuer.org>
4545 * plug-ins/cairo/Makefile.am : initial attempt
4547 * plug-ins/cairo/diacairo.c : a new exporter based on
4548 Cairo http://cairographics.org rendering api. Currently
4549 it just can export PNG and PS but one day it might get
4550 PDF and more almost for free. [It is not yet included
4551 in the *NIX build system due to lack of auto* magic.]
4553 * plug-ins/pixbuf/pixbuf.c : always register the export
4554 filter part. If the user does not want it it can be
4555 disabled by File/Plugins or explicit selected the other
4556 one in the Export Formats List
4558 2004-05-23 Hans Breuer <hans@breuer.org>
4560 * lib/dia_dirs.c : #include "message.h"
4561 lib/widgets.c : #include "persistence.h"
4562 lib/widgets.c(dia_font_selector_init) : still not C99
4563 lib/persitence.h : removed unimplemented prototype
4564 lib/persitence.c(persistence_load_list) : still not C99
4565 app/create_object.c : #include "highlight.h"
4566 app/layer_dialog.c : #include "widgets.h"
4567 app/modify_tool.c : prototype functions before usage
4568 lib/object.c : if there is G_END_DECLS there _must_ be G_BEGIN_DECLS
4569 [otherwise one will have a hard time to make C++ compile ;]
4570 lib/dia_dirs.c : #include "message.h"
4571 lib/font.c : #include <gtk/gtk.h> /* just for gtk_get_default_language() */
4574 * plug-ins/xfig/xfig-import.c : dont initialize an int with
4577 * lib/dia_image.[hc](dia_image_rgba_data) : make it work
4578 as documented, i.e. _not_ copying. Plugs a memory leak in
4579 lib/dialibartrenderer.c
4581 * lib/diarenderer.c(*_rounded_rect) : renamed parameter rounding
4582 to radius to more of a clue what it is representing
4584 * */makefile.msc lib/libdia.def : updated
4586 ChangeLog : fixed some date copy&paste bug
4588 2004-05-21 Lars Clausen <lars@raeder.dk>
4590 * NEWS: Release tag.
4592 * config.h.win32: Now 0.93+cvs
4594 * RELEASE-PROCESS: Update with new info about release branches.
4596 * Many files: Moved devel branch back into main trunk. Should
4597 have been done in the opposite way, with release in a branch.
4599 2004-05-20 Hans Breuer <hans@breuer.org>
4601 * acinclude.m4 : disable setting of PYTHON_PREFIX
4602 and PYTHON_EXEC_PREFIX from prefix and exec_prefix
4603 as workaround for bug #142032 (the real fix would
4604 involve some auto* knowledge which I don't have
4607 * plug-ins/python/Makefile.am : more python
4608 plug-ins to be installed (especially svg import,
4609 but also 'simple scale' should be useable
4612 * plug-ins/python/scascale.py : update display
4613 after modifying selected objects
4615 * plug-ins/python/diasvg_import.py : initialize
4618 2004-05-18 Lars Clausen <lars@raeder.dk>
4620 * app/diagram_tree.c (select_node): Use
4621 diagram_remove_all_selected to kill selected list.
4623 * lib/font.c: Set language when using a different context.
4625 * plug-ins/svg/svg-import.c: Changed isdigit to g_ascii_isdigit
4626 and removed ctype include (#142661).
4628 * lib/paper.c (get_default_paper): Changed isalnum to
4629 g_ascii_isalnum and removed ctype include. (#142661)
4631 * objects/custom/shape_info.c:
4633 * app/diaunitspinner.c: Removed unrequired ctype.h include. (#142661)
4635 2004-05-17 Hans Breuer <hans@breuer.org>
4637 * lib/object_defaults.c : don't 'failed to load external
4638 entity "NULL"' when the defaults file does not exist,
4641 * lib/widgets.c : fixed possible menu leak
4642 * lib/dialinechooser.c lib/diaarrowchooser.c : finally
4643 avoid finalization of floating references, bug #142307
4645 2004-05-15 Lars Clausen <lars@raeder.dk>
4647 * plug-ins/xfig/xfig-import.c: Handle default fonts and illegal
4648 fonts better (#138655)
4650 * doc/pl/Makefile.am (EXTRA_DIST): Also include all xml files here.
4652 * doc/en/Makefile.am (EXTRA_DIST): Including all required files in
4653 dist, xml, dbk and man. Also the sub-xml files. (#142098)
4655 * Makefile.am (CLEANFILES):
4656 * sheets/Makefile.am (EXTRA_DIST): Not distributing the
4657 translation-reports, they are generated automagically. THANKS
4658 file not considered locally generated, so is not locally
4661 * lib/widgets.[ch]: Changing dia_arrow_selector to be a gobject.
4663 * lib/diaarrowchooser.c:
4664 * lib/prop_attr.c: Fixing naming for arrowselector.
4666 * objects/UML/object.c (objet_type): Oops, little too aggressive
4667 with the DiaObject thing here:)
4669 * objects/custom/shape_info.c (parse_svg_node): Use
4670 g_ascii_isdigit instead of isdigit.
4672 * app/diaunitspinner.c (dia_unit_spinner_update):
4673 * lib/dia_svg.c (dia_svg_parse_style): Using g_ascii_isspace
4674 instead of isspace avoids char subscript issues (#142467).
4676 * lib/persistence.c (persistence_get_string): Fixed 0/NULL/FALSE
4677 return value conflict.
4679 * app/display.c (ddisplay_update_handler): Fixed 0/FALSE return
4680 value conflict. Also improved signature. (#142466)
4682 * app/load_save.c (diagram_data_load): Don't overwrite the list in
4683 the layer, but instead free the returned list (#142480)
4685 * app/pixmaps/Makefile.am (IMAGES): Added png's to be installed
4686 for the grid widget.
4688 * doc/en/Makefile.am (dia.1): Make proper rule for making dia.1
4690 * configure.in (DB2MAN): Currently just check for two known
4691 positions for the docbook xsl. Don't know a generic way to find
4692 this info. Ought to add an option for it, but then it's really
4693 only required for maintainers, I think. Maybe.
4695 * app/display.c (update_snap_grid_status): Remove nasty image
4696 toggling code not require for grid toggle button anymore. (#142475)
4698 * app/interface.c (create_display_shell): Use
4699 dia_toggle_button_new_with_images to create grid toggle button.
4700 Much nicer. (#142475)
4702 * app/menus.c (menus_initialize_updatable_items): Free the string
4703 along with the GString. (#142475)
4705 * lib/intl.c (free_alias_table): Free hash table entries in a
4706 proper way, avoiding duplicate frees. (#142475)
4708 * lib/object_defaults.c (_obj_store): Only free layer_name if it's
4709 not put in the hash (avoid reading freed memory). (#142476)
4711 * lib/widgets.c (dia_font_selector_set_styles): Stop leaking
4713 (dia_font_selector_get_family_from_name): Stop leaking
4716 2004-05-14 Lars Clausen <lars@raeder.dk>
4718 * Transfer of fixes from release branch. Not the prettiest way to
4719 do it, this should be done during release, not afterwards.
4721 Tomasz KÅ‚oczko <kloczek@pld.org.pl>:
4723 * acinclude.m4: minor fixes (added missing [] quotation).
4725 Lars Clausen <lars@raeder.dk>:
4727 * app/interface.c (toolbox_delete):
4728 * app/app_procs.[ch] (app_exit): Stop the delete event if the user
4729 cancels quit due to modified diagrams.
4731 Samúel Jón Gunnarsson <sammi@techattack.nu>:
4733 * is.po: Added "is" to ALL_LINGUAS.
4735 Lars Clausen <lars@raeder.dk>:
4737 * dia.spec: Updated as per mail from Zhang Lin-bo <zlb@lsec.cc.ac.cn>
4739 Hans Breuer <hans@breuer.org>:
4741 * lib/makefile.msc : removed -DGTK_DISABLE_DEPRECATED; the
4742 burden should be shared and not be win32 only ;) [this time
4743 build was broken by adding GtkType to widget.h]
4745 * objects/standard/box.c objects/standard/ellipse.c :
4746 for code clarification compare (obj->aspect != FREE_ASPECT)
4747 and not (obj->aspect); no binary effect.
4749 * app/paginate_psprint.c : don't leak printcmd
4751 * objects/standard/box.c objects/standard/ellipse.c : fix gccisms :
4752 standard C requires variables to be declared at the beginning of
4753 a block, also there is no fabsf() with msvc
4755 * app/win32print.[ch] : make win32_printer_close() return an
4756 error code, it's used as pclose replacement
4758 Lars Clausen <lars@raeder.dk>:
4760 * RELEASE-PROCESS: Mention PATCH keyword in release process.
4762 2004-05-06 Lars Clausen <lars@raeder.dk>
4764 * lib/widgets.[ch]: Utility function to make a widget with two
4765 images (selected and non-selected).
4767 * lib/diagramdata.h: Renamed selectable to connectable.
4768 Selectable will come later.
4771 * app/pixmaps/Makefile.am (imagedir):
4772 * app/pixmaps/connectable.png:
4773 * app/pixmaps/connectable-empty.png: New images for the
4774 selectability widget. Proper installation, too.
4776 * app/layer_dialog.[ch]: Adding new button showing connectability
4777 status. Much cleaner way of doing the button, but some problems
4778 with the item getting selected
4780 * lib/widgets.h: Reminder of how to install images for use by
4781 dia_get_image_from_file.
4783 2004-05-05 Lars Clausen <lars@raeder.dk>
4785 * objects/network/Makefile.am:
4786 * objects/network/pixmaps/radiocell.xpm:
4787 * objects/network/pixmaps/basestation.xpm:
4788 * objects/network/network.c:
4789 * objects/network/basestation.c:
4790 * objects/network/radiocell.c:
4791 Patch from W. Borgert <debacle@debian.org>: Radio cell and base
4794 * lib/arrows.[ch]: Patch from Anthony <anthonym@overture.com>:
4795 Backslash arrow head.
4797 * app/pagesetup.c (pagesetup_respond): Do not free ps twice.
4798 Notify takes care. Should maybe use that more.
4800 * lib/diagramdata.[ch]:
4801 * app/filedlg.c (file_export_ok_callback):
4802 * app/diagram.c (diagram_finalize): DiagramData now a GObject.
4804 * app/dia-props.c (diagram_properties_respond):
4805 * app/diagram.c (diagram_set_modified):
4807 * app/disp_callbacks.c:
4809 * app/load_save.c (diagram_save):
4810 Better handling of undo and modified status -- only diagram
4811 properties and page setup explicitly set modified status, all
4812 other important changes should be done through the undo stack
4815 2004-05-04 Lars Clausen <lars@raeder.dk>
4817 * app/app_procs.c (app_init): Consistently open a new diagram if
4818 none specified, with standard name Diagram1.dia.
4820 * app/layer_dialog.c:
4821 * app/diagram.c (diagram_finalize):
4822 * app/commands.c (dialogs_layers_callback):
4823 * app/filedlg.c (file_export_ok_callback):
4824 * app/app_procs.c (app_exit):
4825 * app/display.c (display_set_active):
4826 * app/interface.c (dia_dnd_file_drag_data_received):
4827 * app/recent_files.c:
4828 Undone attempt at unifying the multi-diagram windows (like
4829 layers). It broke the layers and didn't make much sense for the
4830 diagram properties dialog anyway.
4834 * lib/diagramdata.c:
4836 * lib/object.c: Undone attempts at GObject'ifying DiaObject -- too
4837 many subclasses have to be fixed. Fixed remaining
4838 Object/ObjectType renaming issues.
4840 2004-05-02 Lars Clausen <lars@raeder.dk>
4842 * lib/object.[ch]: Making DiaObject a GObject. Now can I avoid
4843 having to make all the children objects conform to
4844 GObject style at once? Warning! Does not compile right now.
4846 * many, many files: Rename Object to DiaObject in preparation for
4847 making it a GObject.
4849 * app/diagram.[ch]: Turn diagram into a real GObject.
4852 * app/filedlg.c: Correctly ref and unref diagram.
4854 * lib/diagramdata.h: Starting to turn it into a GObject as well.
4856 2004-05-02 Lars Clausen <lars@raeder.dk>
4858 * lib/object.[ch]: Starting to convert Object to DiaObject, son of
4861 * app/dia-props.c: Undo the attempt at making it really
4862 multi-diagram, now going for a one-diagram dialog.
4864 2004-04-30 Lars Clausen <lars@raeder.dk>
4866 * app/undo.c: Undoing broken undo stuff for diagram properties and
4867 page setup. Shouldn't be mixed into undo at all.
4869 * app/render_gdk.c (draw_pixel_line): Use the dash-setting
4870 function to avoid in particular the grid crawling.
4872 * lib/diagdkrenderer.[ch] (dia_gdk_renderer_set_dashes): Function
4873 to allow aligning dashes, so they don't crawl.
4875 2004-04-28 Lars Clausen <lars@raeder.dk>
4877 * app/Makefile.am: New files diacanvas.[ch]
4879 * app/interface.c (create_display_shell): Use new diacanvas that
4880 allows placing widgets on canvas, for text edit.
4883 Early work towards rotation. No implementation yet.
4885 * app/layer_dialog.c (undo_layer):
4886 * objects/network/bus.c (bus_create_change):
4887 * objects/standard/box.c (aspect_create_change):
4888 * objects/standard/ellipse.c (aspect_create_change):
4889 Use g_new0 for change struct.
4891 * app/undo.c (diagram_change_apply_or_revert):
4892 Support for undo of diagram properties and page setup.
4894 * app/disp_callbacks.c (ddisplay_canvas_events):
4896 * lib/diagramdata.h:
4897 * app/modify_tool.c (click_select_object):
4898 * lib/text.c (text_register_editable):
4899 Starting work on new text editing model. Guarded by #ifdef so
4902 2004-04-07 Lars Clausen <lars@raeder.dk>
4904 * app/recent_files.c (open_recent_file_callback):
4905 * app/interface.c (origin_button_press):
4906 * app/filedlg.c (file_open_ok_callback):
4909 * app/commands.c (dialogs_layers_callback): Using new
4910 diagram_set_current() function to ensure auxilliary windows are
4913 * app/layer_dialog.c: Trying to unify with dia-props. Diagram
4914 menu now borken. *sniff*
4916 * app/dia-props.c: Diagram properties window attempted
4917 persistentified. Trying to make more like layer dialog (since it
4918 already changes when the diagram changes), but some things still
4921 2004-04-06 Lars Clausen <lars@raeder.dk>
4923 * lib/dialinechooser.[ch] (dia_line_chooser_set_line_style):
4924 * lib/attributes.c (attributes_set_default_line_style):
4925 * app/interface.c (create_lineprops_area):
4926 Make line style persistent as well. Added function to directly
4927 set the style and dashlength of a dialinechooser.
4929 2004-04-03 Lars Clausen <lars@raeder.dk>
4931 * objects/standard/ellipse.c (ellipse_move_handle, ellipse_copy):
4932 Copy the ellipse extra handle correctly.
4934 * objects/standard/box.c (box_move_handle): Move definitions
4935 according to bug #138925.
4937 2004-04-02 Lars Clausen <lars@raeder.dk>
4939 * app/recent_files.c: Use absolute name for recent files list.
4941 * lib/attributes.c: Set start and end arrow types, correctly.
4943 * lib/widgets.c (dia_arrow_selector_set_arrow): Use new function
4946 * lib/diaarrowchooser.[ch]: Support for setting arrow info.
4948 * app/interface.c (create_lineprops_area): Set persistently stored
4951 * lib/arrows.[ch]: New function to get arrow index (in arrow_types)
4954 * lib/dia_dirs.c: dia_get_absolute_path now creates a canonical
4955 path (i.e. without '.' or '..'). Not tuned for Win32 yet.
4957 * plug-ins/xfig/xfig-import.c: Redone ordering of import to comply
4958 with what xfig does. Text now converted from latin-1 to utf-8
4959 (latin-1, since that's what xfig seems to use. Would like to see
4960 examples of non-latin-1 figs). String case problems fixed.
4962 2004-04-01 Lars Clausen <lars@raeder.dk>
4965 * app/interface.c: Default arrows now stored persistently, too.
4967 * lib/arrows.[ch]: New function to get arrow type from name.
4969 * app/color_area.c (color_area_create):
4971 * app/linewidth_area.c: Also persistent colors and line width.
4972 That was easy. Arrows and line style will take a bit more work,
4975 2004-04-01 Lars Clausen <lars@raeder.dk>
4977 * app/preferences.c: All preferences are now
4978 handled by persistence, old prefs load and store code is gone.
4980 * lib/persistence.[ch]: Added string and color persistents. This is
4981 a different string from the one used in the printer dialog, that
4982 one has a GtkEntry attached -- may want to make that one an
4983 encapsulation of this one or something.
4985 2004-03-31 Lars Clausen <lars@raeder.dk>
4987 * app/app_procs.c: Do persistence before prefs. Prefs are to be
4990 * lib/persistence.[ch]:
4991 * app/preferences.c: Adding persistence for integers, reals,
4992 booleans. Fixed stupid list bug. Test persistence for prefs.
4994 2004-03-30 Lars Clausen <lars@raeder.dk>
4996 * app/recent_files.c:
4997 Debugging of deallocation.
5000 Font menu now uses persistence. Ordering needs fixing, or it must
5004 * lib/Makefile.am (libdia_la_SOURCES):
5005 * app/Makefile.am (dia_core_files):
5006 * app/persistence.[ch]:
5007 * lib/persistence.[ch]: Moved to lib as widgets need it. Also a
5008 number of fixes, including multiple entries now being read
5009 properly. Still some oddity about the persistent list having the
5010 role as first entry (which makes the font menu crash after a few
5013 2004-03-26 Lars Clausen <lars@raeder.dk>
5015 * app/persistence.c:
5016 * app/recent_files.[ch]: Redoing the recent-files list using
5017 persistence, reducing code by about 50%. Still a problem when
5018 selecting an item from the menu -- possibly it doesn't like the
5019 menu being destroyed while in the callback?
5021 2004-03-25 Lars Clausen <lars@raeder.dk>
5023 * app/persistence.c (persistence_load_string): Missing semicolon?!?
5025 2004-03-24 Lars Clausen <lars@raeder.dk>
5029 * app/persistence.[ch]:
5030 * app/paginate_psprint.c (diagram_print_ps): New type of data can
5031 be stored persistently: Strings. Only the printer command/file
5032 go in here now, but things like creator, organization, diagram
5033 comments etc could also be handled this way.
5035 * objects/standard/beziergon.c (beziergon_draw): Avoid control
5036 lines when the object is not selected.
5038 2004-03-23 Lars Clausen <lars@raeder.dk>
5040 * lib/connectionpoint.h:
5041 * app/load_save.c: Allow connection points to have names, and
5042 handle that in load/store.
5044 * lib/dialibartrenderer.c: Better highlighting for text.
5046 * lib/diagdkrenderer.h (struct _DiaGdkRenderer):
5047 * lib/diagdkrenderer.c: Better highlighting for all, using same
5048 principles as libart highlighter.
5050 2004-03-22 Lars Clausen <lars@raeder.dk>
5052 * lib/dialibartrenderer.[ch]:
5053 * lib/diagdkrenderer.c:
5059 * app/modify_tool.c:
5060 * app/create_object.c:
5061 * app/highlight.[ch]:
5062 Added simple object highlighting. In GDK rendering, highlights
5063 the bbox, in libart highlights the outline of the object (except
5066 2004-03-22 Lars Clausen <lars@raeder.dk>
5068 * RELEASE-PROCESS: Added info on how to do a branch for
5069 development during release process.
5071 2004-03-20 Lars Clausen <lars@raeder.dk>
5073 * RELEASE-PROCESS: Mention PATCH keyword in release process.
5075 2004-03-19 Lars Clausen <lars@raeder.dk>
5077 * xmldocs.make: Fixed apparent uninstall error.
5080 * doc/en/dia-manual.xml:
5081 * doc/pl/dia-manual.xml:
5084 * NEWS: Version 0.93-pre1.
5086 * lib/dialinechooser.[ch]: Patch from pborelli@katamail.com (paolo
5087 borelli): Remove some deprecated stuff.
5089 2004-03-18 Lars Clausen <lars@raeder.dk>
5091 * Makefile.am: Try better uninstall thing for scrollkeeper.
5093 * objects/ER/entity.c:
5094 * lib/arrows.[ch]: Patch from Georg Lothar Thimm
5095 <MGEORG@ntu.edu.sg>: Adds new ER arrows 1 or many, 0 or many, 0 or
5096 1, 1 exactly, as well as associative ER entities.
5098 2004-03-17 Lars Clausen <lars@raeder.dk>
5100 * Makefile.am: Make distcheck not complain about scrollkeeper
5101 problems (as per advice from James Henstridge).
5103 * doc/pl/*.{xml,sgml}: Converted SGML manuals to XML to get better
5104 standard installation.
5106 * objects/standard/ellipse.c: Better strings for object menu.
5108 * app/sheets_dialog_callbacks.c: Fixed crashes from broken caching
5109 of dialogs (shame on you, glade!)
5111 * objects/custom/custom_object.c (custom_setup_properties):
5112 Removed debugging output
5114 * app/paginate_psprint.c (diagram_print_ps): Slightly more
5115 readable printer error messages.
5119 * doc/en/Makefile.am:
5120 * doc/pl/Makefile.am:
5121 New more standard way to install the XML-based manuals.
5123 2004-03-15 Lars Clausen <lars@raeder.dk>
5125 * objects/standard/box.c (box_move_handle): More intuitive fixed
5128 * objects/standard/ellipse.c:
5129 * objects/standard/box.c:
5132 * app/layer_dialog.[ch]:
5133 Patch from Steve Langasek <vorlon@debian.org>:
5134 Fixes startup crash on Alpha (bug #137169)
5136 * objects/standard/box.c: Aspect fixing like ellipses.
5138 * app/Makefile.am (dia_core_files): Include dia-app-icons.h
5140 * lib/pixmaps/Makefile.am (imagedir): Better Makefile.am for
5141 pixmaps, now can uninstall properly.
5143 * objects/standard/ellipse.c: Patch from dooms@info.ucl.ac.be:
5144 Fixed and circle aspect ratios for ellipses. Bug #137156, #87966,
5146 Added object menu access.
5148 2004-03-07 Hans Breuer <hans@breuer.org>
5150 * lib/diaarrowchooser.c lib/dialinechooser.c : #undef
5151 GTK_DISABLE_DEPRECATED (I'd rather like if these widgets
5152 would not use deprecated apis, but it's much simpler this way)
5154 * lib/makefile.msc : build the above new widgets and render_pixmap
5155 * lib/libdia.def app/dia.def app/makefile.msc : updated
5157 * app/disp_callbacks.c : fix gccisms (without being able to make much sense of
5158 what I saw, i.e. how big is an empty array supposed to be ? ;-).
5159 Previously it gave :
5160 disp_callbacks.c(188) : error C2059: syntax error : '}'
5161 disp_callbacks.c(191) : warning C4034: sizeof returns 0
5163 * app/interface.c : #include "dialinechooser.h"
5165 * lib/diagdkrender.c : make the !HAVE_FREETYPE case compile again
5166 [one more reason not to use it here : it's quite slow compared to
5167 the native win32 font renderer ;]
5169 * app/app_procs.c app/filedlg.c : gtk_widget_destroy does not take
5170 a GtkDialog*, removed unneeded cast
5172 * app/render_eps.c : avoid assignment warning for void* user_data
5175 2004-03-06 Steffen Macke sdteffen@web.de>
5177 * shapes/Map/Isometric/Makefile.am: added Makfile for Isometric
5180 2004-03-06 Lars Clausen <lars@raeder.dk>
5182 * lib/arrows.h (DEFAULT_ARROW_SIZE): Downed default arrow size to
5185 * lib/font.c: Simple cleanup system for layout cache removes any
5186 layout that hasn't been used for 10 minutes, but only during idle
5189 2004-03-05 Lars Clausen <lars@raeder.dk>
5191 * sheets/Electric.sheet.in: Added patch from padro@lsi.upc.es
5192 (lluis padro) (#130887): Extended Electric shapes with vertical
5195 * sheets/Cybernetics.sheet.in: Normalize shape descriptions (never
5196 start with "Create a" or "A", always capitalize first word).
5198 * objects/standard/ellipse.c: Patch from Grégoire Dooms
5199 <dooms@info.ucl.ac.be>: Add extra connection point in center of
5200 ellipse. Additionally added a handle in the center, and resize is
5201 now around the center.
5204 * sheets/Makefile.am (SUBDIRS):
5205 * sheets/IsometricMap.sheet.in:
5206 * shapes/Map/Isometric/*
5207 * shapes/Makefile.am (SUBDIRS): Added Isometric shapes.
5209 2004-03-04 Lars Clausen <lars@raeder.dk>
5212 * lib/pixmaps/Makefile.am:
5214 Better installation handling of pixmaps.
5216 * lib/diagdkrenderer.c:
5217 * lib/diagtkfontsel.h (struct _DiaGtkFontSelectionClass):
5218 * lib/diagtkfontsel.c (dia_gtk_font_selection_show_available_fonts):
5221 2004-03-03 Lars Clausen <lars@raeder.dk>
5223 * lib/diagtkfontsel.h (struct _DiaGtkFontSelection):
5224 * lib/diagdkrenderer.c:
5225 * lib/diasvgrenderer.c:
5226 * lib/dialibartrenderer.c:
5227 * lib/diainteractiverenderer.c:
5228 * lib/prop_text.c (multistringprop_handle_key):
5230 * lib/dia_image.c (dia_image_rgba_data):
5232 * lib/diagramdata.c (layer_set_object_list):
5235 Getting rid of compile warnings.
5237 * lib/widgets.c: Handle destroy properly, i.e. unref the two extra
5238 images. Also remove unused decls.
5240 2004-03-02 Lars Clausen <lars@raeder.dk>
5243 * lib/widgets.c (dia_size_selector_init): Add images to the size
5244 selector chain widget. Also new function to load installed images
5245 from files (better than from included XPM, IMHO).
5247 2004-03-02 Lars Clausen <lars@raeder.dk>
5250 * lib/pixmaps/[un]broken-chain.xpm: Icons stolen from GIMP for the
5254 * lib/widgets.c (dia_size_selector_init): Work
5255 on getting proper icon onto the size selector. Need simple image
5256 load mechanism in utils.
5260 * app/disp_callbacks.c: Patch from kou@cozmixng.org: Show preedit
5261 strings, handle utf8 strlen properly. Bug #135930.
5263 2004-03-01 Lars Clausen <lars@raeder.dk>
5265 * shapes/Cybernetics/*:
5266 * sheets/Cybernetics.sheet.in:
5267 * sheets/Makefile.am:
5268 * shapes/Makefile.am:
5269 * configure.in: Patch from charly.meyer@t-online.de (Thorsten
5270 Roggendorf): Cybernetic shapes (#95553).
5272 2004-03-01 Lars Clausen <lars@raeder.dk>
5274 * app/Makefile.am: Fixed $(EXEEXT) warning from automake.
5276 * lib/diatypes.h: New type DiaSizeSelector.
5278 * lib/widgets.[ch]: New size selector widgets that selects two
5279 values (width and height, nominally) optionally linked to keep
5282 2004-03-01 Hubert Figuiere <hfiguiere@teaser.fr>
5284 * plug-ins/svg/render_svg.c (new_svg_renderer): Add DTD declaration
5285 in front of file. Bug #128600.
5289 * app/lineprops_area.[ch]:
5291 * lib/dialinechooser.[ch]:
5292 * lib/widgets.c (dia_line_style_selector_init): use line preview
5293 instead of text labels. This involve moving away line_chooser to lib
5296 * lib/diaarrowchooser.[ch] (close_and_hide): Make static to avoid
5299 * app/Makefile.am (dia_core_files):
5300 * app/interface.c (create_lineprops_area):
5301 * app/render_pixmap.[ch]:
5303 * lib/diaarrowchooser.[ch]:
5306 * lib/propdialogs.c:
5307 * lib/render_pixmap.[ch]:
5308 * lib/widgets.c (dia_arrow_fill_menu): Use arrow preview instead
5309 of text labels. This involve moving away arrow_chooser to lib from
5312 2004-02-29 Lars Clausen <lars@raeder.dk>
5314 * objects/UML/class.[ch]: Puny kludge to avoid GtkList objects
5315 being updated half-way through destruction. To be removed when
5316 the lists are replaced by something better.
5318 * objects/UML/class_dialog.c: Patch from luc@handhelds.org:
5319 Accelerators for class dialog. Bug #130995.
5320 Patch from luc@handhelds.org: Better aligning of widgets. Bug #130994.
5323 * app/preferences.c:
5325 * objects/GRAFCET/step.c:
5326 * objects/Misc/analog_clock.c:
5327 * objects/chronogram/chronoline.c:
5328 * objects/chronogram/chronoref.c:
5329 Change to american spelling (color, not colour) to ease
5330 translators job. Note that a number of translations may need an
5331 update now. Bug #120466.
5333 2004-02-29 Lars Clausen <lars@raeder.dk>
5335 * plug-ins/xfig/xfig-export.c: Patch from solworth@cs.uic.edu:
5336 Better arrow handling for missing arrows.
5338 * plug-ins/metapost/render_metapost.[ch]: Patch from
5339 phred@cs.berkeley.edu (Fred Reiss): Add font faces and font
5340 size. See bug #135363.
5342 * app/app_procs.c (app_init): If non-interactive, or if
5343 --log-to-stderr used, send all messages to stderr. This should
5344 mean that old diaconv == dia --export-to-format=FOO BAR
5346 2004-02-29 Hubert Figuiere <hfiguiere@teaser.fr>
5348 * app/menus.c: Get rid of GNOME menus. Deprecated APIs in GNOME 2.
5350 2004-02-28 Lars Clausen <lars@raeder.dk>
5352 * lib/text.c (text_key_event): Patch from Kouhei Sutou
5353 <kou@cozmixng.org>: Fix wrong utf8 strlen handling.
5355 2004-02-27 Lars Clausen <lars@raeder.dk>
5357 * KNOWN_BUGS: Added info on most commonly reported bugs, with
5360 * app/disp_callbacks.c (popup_object_menu): Unified properties
5361 entry, fixes bug #105080.
5363 * app/diagram.c (diagram_update_menu_sensitivity):
5364 * app/menus.h (struct _UpdatableMenuItems):
5365 * app/menus.c (menus_initialize_updatable_items): Menu items
5366 changed around, align menus flattened, properties entry ghosted,
5367 dialogs menu removed, more shortcuts added. Closing bugs #94018,
5369 Also taking out Gnome menus for now. They don't allow shortcuts,
5370 so what are they good for?
5372 2004-02-27 Lars Clausen <lars@raeder.dk>
5374 * app/menus.c (display_menu_items):
5375 * app/commands.[ch]: Added duplicate menu item from Alan Horkan
5378 2004-02-24 Adam Weinberger <adamw@FreeBSD.org>
5380 * configure.in: Added 'en_CA' (Canadian English) to ALL_LINGUAS.
5382 2004-02-23 Lars Clausen <lars@raeder.dk>
5384 * app/app_procs.c (app_init): Comments for translators.
5386 2004-02-22 Hubert Figuiere <hfiguiere@teaser.fr>
5388 * app/preferences.c (prefs_create_dialog): Change packing policy
5389 for widget to expand.
5391 * app/Makefile.am (run_dia.sh): Fixed a typo in wrapper that prevented
5392 running with a debugger.
5394 2004-02-19 Lars Clausen <lars@raeder.dk>
5396 * app/undo.[ch]: Adding last-saved information to undo to allow a
5397 diagram with all changes since last save undo to be marked as
5398 nonmodified. Still needs integration with actual undo
5402 * app/diagram_tree.c (diagram_tree_update):
5404 * app/display.c (update_modified_status):
5405 * plug-ins/python/pydia-diagram.c (PyDiaDiagram_GetAttr):
5406 * app/autosave.c (autosave_check_autosave): Encapsulate modifed
5409 * app/render_eps.[c]: Restructure to better handle PS vs. EPS
5410 vs. EPSI, comment out EPSI until preview is in there.
5413 * lib/diarenderer.c: Removing debugging printfs.
5415 * app/diapsrenderer.[ch]: Preparations for proper EPSI rendering
5418 * objects/standard/arc.c (arc_update_handles): Check to avoid
5419 crash when start and end points are the same.
5421 2004-02-19 Lars Clausen <lars@raeder.dk>
5423 * objects/standard/bezier.c:
5424 * objects/standard/line.c (line_load):
5425 * objects/standard/polyline.c (polyline_load):
5426 * objects/standard/zigzagline.c (zigzagline_load):
5427 * objects/standard/arc.c (arc_load):
5428 * lib/widgets.h (DEFAULT_ARROW_WIDTH): Use DEFAULT_ARROW_SIZE
5429 instead of hardcoding.
5431 2004-02-18 Hubert Figuiere <hfiguiere@teaser.fr>
5433 * app/disp_callbacks.c (popup_object_menu): append a menu item to
5436 2004-02-17 Hubert Figuiere <hfiguiere@teaser.fr>
5438 * app/app_procs.c: declare rc properly with the proper #ifdef
5440 2004-02-17 Lars Clausen <lars@raeder.dk>
5442 * plug-ins/xfig/xfig-import.c: Correct ordering of imported FIG
5443 objects (which seemingly FIG itself breaks, or else there is no
5446 2004-02-16 Lars Clausen <lrclause@cs.uiuc.edu>
5448 * plug-ins/xfig/xfig-export.c (figLineWidth): Check for minimum
5449 width renderable in xfig. Helps on bug #133637, but does not
5450 quite fix it -- something about depth is wrong.
5452 * plug-ins/xslt/xslt.[ch]: Patch #133913 from phenning@lanl.gov:
5453 Extern definitions for Mac compilation.
5455 * app/app_procs.c: Patch #131159 from J. H. M. Dassen
5456 (jdassen@debian.org): Include fix.
5458 * app/interface.c: Patch #130100 from luc@handhelds.org: Make
5459 sure the initial diagram size is correct.
5461 2004-02-15 Lars Clausen <lrclause@cs.uiuc.edu>
5463 * lib/Makefile.am (AM_CPPFLAGS): Override AM_CPPFLAGS instead of
5464 CPPFLAGS, as per automake warning.
5465 * app/Makefile.am (AM_LDFLAGS): Override AM_LDFLAGS instead of
5466 LDFLAGS, as per automake warning.
5467 (run_dia.sh): More robust creation, and more easily moved.
5469 * app/undo.c (group_objects_revert): Don't double-free the objects
5470 list. (#129221) Call object_add_updates on grouped objects.
5471 (ungroup_objects_revert): Call object_add_updates on grouped objects.
5473 * lib/diagramdata.c: Internal
5476 * lib/polyshape.c (polyshape_update_data): Correctly calculate
5477 directions for polyshape corners (thanks, Valgrind!)
5480 * lib/prop_attr.c (arrowprop_load): Use default arrow size.
5482 * lib/arrows.h: Default arrow size defined. After all are using
5483 this, may lower to 0.4 or so.
5485 * app/lineprops_area.[ch]: New function to set the arrow type for an
5488 * app/interface.c (create_lineprops_area): Set default line to
5489 have an arrow (fairly likely to be what's wanted, plus it shows
5490 the user where arrows are set).
5492 * app/app_procs.c: #ifdef HAVE_POPT popt args to process_opt
5494 2004-02-14 Lars Clausen <lrclause@cs.uiuc.edu>
5496 * plug-ins/metapost/render_metapost.c (draw_with_linestyle):
5497 Dotted lines should use dot_length, not dash_length.
5499 2004-02-06 Hans Breuer <hans@breuer.org>
5501 * app/interface.c : don't use gtk_drawing_area_size() to avoid
5502 the defaut size being also the minimum size. Instead use
5503 gtk_window_set_default_size() on the display shell. Fixes #130982.
5505 [fixing #131210, but umlauts in the 'main' filename still not really
5506 supported on systems where filesystem encoding != utf8
5507 (Problems with recent file menu and window title)]
5508 * lib/dia_xml.[hc] : add data_filename() and data_add_filename()
5509 to deal with possible differnces in filename encodings, see
5510 g_filename_<to|from>_utf8()
5511 * objects/standard/image.c : use them.
5513 * lib/widgets.c : handle possible encoding difference here, too.
5514 Also get rid of most warnings by using const and GTK casts where
5515 appropriate; one wrong cast (probably causing a crash) was found/fixed
5516 by this - the remaining give a hint on finally leaking FontSelectorEntry.
5518 * lib/widgets.[hc] : hide _DiaFileSelector and *Class in .c. Modified
5519 dia_file_selector_<get|set>_file to behave like the respective Gtk
5520 functions do : encoding- and const-wise ;-)
5522 2004-02-01 Robert Sedak <robert.sedak@sk.htnet.hr>
5524 * configure.in: Added "hr" (Croatian) to ALL_LINGUAS.
5526 2004-01-19 Hans Breuer <hans@breuer.org>
5528 * app/app_procs.c app/diaconv :
5529 only call bind_textdomain_codeset when available, what's good
5530 for The Gimp (bug #131215) can't be wrong for Dia : bug #125926
5531 * config.h.win32 : define HAVE_BIND_TEXTDOMAIN_CODESET
5533 2004-01-19 Steffen Macke <sdteffen@web.de>
5535 * makefile.msc: updated for new GAIM-like installer build; sync'ed
5536 ALL_LINGUAS with configure.in
5538 2004-01-18 Hans Breuer <hans@breuer.org>
5540 * app/app_procs.c (myXmlErrorReporting) : avoid possible crash
5541 by not passing NULL to g_print()
5543 * app/interface.c (create_toolbox) : actually use
5544 persitence_register_window() to restore toolbox window size
5546 * app/makefile.msc lib/makefile.msc : allow to deselect
5547 building with Freetype by command line to nmake like :
5548 nmake -f makefile.msc "NOFT2=1"
5550 * plug-ins/python/diasvg_import.py : handle 'stroke-array' as
5551 far as possible with Dia's limited line style
5552 * plug-ins/python/pydia-property.c : allow to get and set
5553 Linestyle, style and dash(length)
5555 * lib/object.h : removed typedef for ObjectId not use anywhere
5557 2004-01-17 Hans Breuer <hans@breuer.org>
5559 * objects/custom/shape_info.[hc] objects/custom/custom_object.c
5560 doc/shape.dtd doc/custom-shapes :
5561 support for images in custom shapes, also removed some long-time
5564 * doc/en/*.xml : fixed crippled line ends which get created
5565 when windoze line ends are checkin from the unix side
5567 2004-01-13 Laurent Dhima <laurenti@alblinux.net>
5569 * configure.in: Added "sq" to ALL_LINGUAS.
5571 2004-01-11 Hans Breuer <hans@breuer.org>
5573 [more less leaks ;-]
5575 * objects/SADT/annotation.c : use text_destroy() not g_free()
5577 * objects/chronogram/chronoline.c : neither leak chronoline::events
5578 nor chronoline::name
5580 * objects/wpg/wpg.c : don't g_free() but g_object_unref(renderer);
5582 2004-01-11 Hans Breuer <hans@breuer.org>
5584 * lib/properties.h :
5585 * objects/custom/custom_object.c : more properties optional
5586 to be backward compatible for older diagrams not having them
5587 set. (Try to load samples/all_objects.dia)
5589 [less memory leaks thanks valgrind ;-]
5591 * app/recent_files.c (recent_file_history_write) :
5592 g_free(history_filename);
5593 (recent_file_menu_item) : use g_path_get_basename()
5594 which already strdups, free result of g_strescape()
5596 * app/filedlg.c (create_export_menu) : return of
5597 filter_get_export_filter_label() must be g_free()'d
5598 (create_open_menu) : same for import
5600 * app/export_png.c (export_png_ok) : destroy info ptr
5601 with png_destroy_write_struct()
5603 * app/app_procs.c (app_init) : g_free(export_format_string);
5605 * lib/font.c (dia_font_finalize) : finalize parent_class, too
5606 (dia_font_new_from_style) : stop leaking almost all DiaFont by not
5607 refing it a second time, g_type_create_from_instance() is enough
5609 * lib/object_defaults.c (_obj_store) : don't mess with names
5610 len 0 (should avoid 'Invalid read of size 1, but doesn't ;)
5612 2004-01-11 Steffen Macke <sdteffen@web.de>
5614 * app/diapsftrenderer.c: including ftoutln.h
5615 * app/makefile.msc: updated for freetype build
5616 * lib/libdia.def: added dia_font_get_context()
5617 * lib/dialibartrenderer.c (draw_string): added cast
5619 2004-01-10 Hans Breuer <hans@breuer.org>
5621 * lib/diagdkrenderer.c (draw_string) : gdk_draw_line with
5622 transformed coordinates, fixes bug 130804
5624 2004-01-10 Hans Breuer <hans@breuer.org>
5626 * app/filedlg.c app/app_procs.c : don't try to destroy
5627 'gtk_dialog_run'-dialogs dialogs by connecting to the "response"
5628 signal but simply by gtk_widget_destroy() after gtk_dialog_run()
5629 returns. Fixes 'has no handler' bugs like #121019
5631 2004-01-10 Hans Breuer <hans@breuer.org>
5633 * objects/UML/class.c objects/UML/class_dialog.c :
5634 handle umlclass->name being empty to avoid, i.e. fix #127968
5636 [plugging memleaks, thanks valgrind :-]
5638 * lib/dia_xml.c (data_string) : don't leak return value
5639 of xmlNodeListGetString()
5641 * lib/dia_xml.c (xml_file_check_encoding) : g_free(buf)
5642 before returning, maybe alloca() would be the better
5643 choice but anyway ;)
5645 * objects/custom/custom_object.c:306 : adde xmlFree(str) below
5647 * lib/font.c (dia_font_build_layout) : don't leak result
5650 * lib/diagdkrenderer.c (draw_string) : don't leak rgba
5651 (this is the one which got me started using valgrind, see #130816)
5653 2004-01-07 Sanlig Badral <badral@openmn.org>
5655 * configure.in: Added "mn" to ALL_LINGUAS.
5657 2004-01-04 Hans Breuer <hans@breuer.org>
5659 * lib/diagdkrenderer.c : replace rendering of really small (height
5660 less than 2 pixels) with a simple dashed line, you wont notice the
5661 differnce beside it being much faster. This allows ...
5662 * lib/diagdkrenderer.h : ... to remove gboolean rendertext ...
5663 * app/navigation.c : ... and lets you see an read rendered text even
5664 in the nice navigation popup.
5666 * lib/dialibartrenderer.c : FONT_SCALE defined as 1.0 for G_OS_WIN32, too.
5667 (draw_string) : don't leak temporary image
5669 2004-01-04 Hans Breuer <hans@breuer.org>
5671 * app/dia-app-icons.h : TODO : to be removed when autogenerated on *NIX, too.
5672 * app/interface.c : use dia-app-icons.h to give Dia window icons
5674 * lib/dia_image.c lib/color.c : _never_ call functions implemented
5675 in app/ from lib/. It is not portable and broken from design
5676 * app/app_procs.c : call color_init() and dia_image_init() conditional,
5677 i.e. only if running interactive.
5679 * lib/font.h : #include <time.h>
5681 * lib/libdia.def : updated externals
5683 * objects/UML/actor.c
5684 objects/UML/association.c (todo)
5685 objects/UML/branch.c
5686 objects/UML/class.[hc] objects/UML/class_dialog.c
5687 objects/UML/classicon.c
5688 objects/UML/component.c
5689 objects/UML/constraint.c
5690 objects/UML/dependency.c
5691 objects/UML/generalization.c
5692 objects/UML/implements.c
5693 objects/UML/large_package.c
5694 objects/UML/lifeline.c
5695 objects/UML/message.c
5697 objects/UML/object.c
5698 objects/UML/realizes.c
5699 objects/UML/small_package.c
5701 objects/UML/usecase.c
5703 : ported coloring of most UML objects (bug #97517, orginal
5704 work Mathias Hasselmann)
5706 * lib/properties.h : add _OPTIONAL variants for
5707 PROP_STD_(LINE|FILL|TEXT)_COLOUR which allows to load old -
5708 i.e. default colored - UML diagrams without complaining
5709 * lib/proplist.c lib/propoffsets.c : avoid setting _OPTIONAL,
5710 not set properties with the help of PXP_NOTSET. Otherwise
5711 optional attributes would lead to wrong initialization.
5713 * lib/widgets.[hc] : moved _DiaFontSelector from .h to .c
5714 to hide details and restict #undef GTK_DISABLE_DEPRECATED to .c
5715 Same for most other selectors which probably should be rewritten
5716 to the combo box with tree model from Gtk+ 2.4
5718 2004-01-04 Lars Clausen <lrclause@cs.uiuc.edu>
5720 * INSTALL (PLATFORM NOTES): Mention the Gnu gettext and iconv as
5721 being the Right Thing(tm) to use on Solaris.
5723 * objects/standard/bezier.c (bezierline_draw): Don't draw
5724 guidelines if not selected.
5726 * lib/object.[ch] (dia_object_is_selected): Function to check whether
5727 a given object is selected. O(n), where n is # selected objects.
5730 2004-01-03 Lars Clausen <lrclause@cs.uiuc.edu>
5732 * lib/widgets.[ch]: Make sure old font is re-chosen when the Other
5733 Fonts dialog is closed without pressing Ok (bug #128646).
5735 2004-01-02 Lars Clausen <lrclause@cs.uiuc.edu>
5737 * app/Makefile.am: Quote arguments correctly for run_dia.sh (bug
5740 2004-01-01 Lars Clausen <lrclause@cs.uiuc.edu>
5742 * INSTALL: Updated list of requirements (bug #129653)
5744 * doc/en/dia.dia: Beginning class diagram for Dia from Luc
5745 Pionchon <luc@handhelds.org>.
5747 2003-12-31 Lars Clausen <lrclause@cs.uiuc.edu>
5749 * lib/diagdkrenderer.c (draw_string): Don't attempt to render
5750 empty or NULL strings (bug #130097).
5752 2003-12-31 Chris Sperandio <sperandi@eng.usf.edu>
5754 * plug-ins/metapost/render_metapost.c: Fixed string colorization.
5755 Added checks against color_black.
5757 2003-12-31 Lars Clausen <lrclause@cs.uiuc.edu>
5759 * plug-ins/xfig/xfig-export.c (figArrow): Output nothing for
5760 ARROW_TYPE_NONE. Thanks to Jon A. Solworth for showing that this
5763 * objects/UML/component_feature.c: Patch from W. Borgert
5764 <debacle@debian.org>: Add handle to component feature text.
5766 * lib/diagdkrenderer.c (draw_string): Remove poorly placed caching.
5768 * lib/font.c: Caching PangoLayout for better rendering speed.
5770 2003-12-30 Lars Clausen <lars@raeder.dk>
5772 * lib/dia_dirs.[ch] (dia_get_absolute_filename): New function to
5773 get absolute file name from relative.
5774 * app/recent_files.c (recent_file_history_add): Use absolute
5775 filenames for recent files menu so that files can be found when
5776 Dia is invoked from other places.
5778 * app/app_procs.c (handle_all_diagrams): Fix for 1/3 of 130098:
5779 Actually load different diagrams if such are requested on command
5782 * objects/UML/class_dialog.c (class_create_page): Fix from Luc
5783 Pionchon <luc@handhelds.org>: Correctly align labels for colors.
5785 * lib/diagdkrenderer.[ch]: From Luc: New option to GdkRenderer to
5786 remove text rendering. May be turned into greeking at some later
5790 * app/Makefile.am (dia_core_files):
5791 * app/navigation.[ch]: Patch from Luc Pionchon <luc@handhelds.org>:
5792 Adds navigation window a la Gimp, though without text being
5795 2003-12-27 Luc Pionchon <luc@handhelds.org>
5797 * app/navigation.h: (new file)
5798 * app/navigation.c: (new file) creates a navigation window with a
5799 thumbnail view of the whole diagram.
5800 * app/Makefile.am (dia_core_files): added new files.
5802 * app/interface.c (create_display_shell): added a button between
5803 the scrollbars to popup a navigation window.
5805 * lib/diagdkrenderer.h (struct_DiaGdkRenderer): added rendertext
5807 * lib/diagdkrenderer.c (renderer_init): set rendertext TRUE by default
5808 * lib/diagdkrenderer.c (draw_string): returns if the renderer do
5809 not want text rendering.
5811 2003-12-14 Lars Clausen <lrclause@cs.uiuc.edu>
5813 * shapes/Circuit/hresistor.shape: Uses new extra attribute thing.
5815 * objects/custom/shape_info.[ch]: Cleanup.
5817 * objects/custom/custom_object.[ch]: Changed to use new props
5822 * lib/prop_inttypes.c:
5823 * lib/prop_geomtypes.c: Added *prop_get_data_size.
5825 * lib/libdia.def: Added object_load_props.
5827 * configure.in: Better FT2 version test, from bug #129225.
5829 * dia.spec (BuildRequires): Changed to match makefile (bug #129131)
5831 * plug-ins/xslt/dia-uml2python.xsl: Added Python sheet from Holger
5832 Lehmann <holger.lehmann@catworkx.de>.
5834 * plug-ins/xslt/Makefile.am:
5835 * plug-ins/xslt/stylesheets.xml: Added Python, Component List,
5836 and OWL XSLT sheets.
5838 2003-12-13 Lars Clausen <lrclause@cs.uiuc.edu>
5840 * lib/diagdkrenderer.c: Add implementation so text is still
5841 rendered. May be improved later.
5847 * app/app_procs.c: Patch from W. Borgert <debacle@debian.org>:
5848 Allow running without a $DISPLAY!
5850 * lib/color.c: Remove warnings for non-interactive run.
5855 * app/app_procs.[ch]:
5856 Patch from W. Borgert <debacle@debian.org>: Allow a --size argument
5857 to specify size for PNG output.
5859 * app/lineprops_area.c (dia_arrow_preview_expose): Make arrows
5860 render a little smaller, so as to fit the big ones.
5862 * lib/arrows.[ch]: New arrow type from W. Borgert
5863 <debacle@debian.org>: Filled Dot and Triangle.
5865 2003-12-02 Lars Clausen <lrclause@cs.uiuc.edu>
5867 * doc/pl/Makefile.am (install-data-hook): Fixed installation bug
5870 * plug-ins/xslt/dia-uml2owl.xsl: Added OWL XSLT from Dan Connolly.
5872 * acinclude.m4: Better Python configure code patch (can't find
5873 author, author please speak up!)
5875 2003-12-01 Lars Clausen <lrclause@cs.uiuc.edu>
5877 * lib/diagdkrenderer.c (get_cached_text): Stupid bugs replaced by
5880 2003-11-30 Hans Breuer <hans@breuer.org>
5882 * plug-ins/python/diasvg.py : initialize self.dash_length
5883 in constructor to avoid crashing if the renderer user
5884 does not set it before first usage.
5886 2003-11-30 Lars Clausen <lrclause@cs.uiuc.edu>
5888 * lib/diagdkrenderer.c: Start of cache GDK text renderer -- not
5892 * config.h.win32: Set version number to 0.92.2+cvs to distinguish
5893 development and stable versions.
5895 * lib/text.c (text_draw): Use new renderer function to draw the
5898 * lib/diarenderer.h:
5899 * lib/diarenderer.c: New renderer function "draw_text" with
5900 default implementation. This function should eventually be the
5901 main interface, as it will be able to handle width and caching of
5902 rendering internally. All users of draw_string should convert to
5903 use Text objects and call either renderer->draw_text or text_draw,
5904 the latter if the text can be edited in-place (as should be the
5907 2003-11-29 Lars Clausen <lrclause@cs.uiuc.edu>
5909 * shapes/Circuit/hresistor.shape: First example of extra
5912 2003-11-28 Lars Clausen <lrclause@cs.uiuc.edu>
5914 * plug-ins/shape/shape-export.c:
5915 * lib/diasvgrenderer.h:
5916 * lib/diasvgrenderer.c:
5917 * plug-ins/svg/render_svg.c (new_svg_renderer):
5918 Actually store the font size, using DiaRenderer's font fields.
5920 2003-11-27 Lars Clausen <lrclause@cs.uiuc.edu>
5922 * objects/custom/shape_info.[ch]:
5923 * objects/custom/custom_object.[ch]:
5924 Support for extra attributes in custom objects.
5926 2003-11-23 Lars Clausen <lrclause@cs.uiuc.edu>
5928 * app/diagram.c (diagram_update_menu_sensitivity): More
5929 intelligent checks for menu sensitivity. Might be slow on huge
5930 diagrams, but I think other things outweigh it by a lot.
5932 * app/menus.[ch]: Make "Bring Forwards"
5933 and "Send Backwards" updateable.
5935 2003-11-22 Steffen Macke <sdteffen@web.de>
5937 * shapes/Assorted/arrow-turn-up.shape:
5938 * shapes/Assorted/arrow-turn-up.png:
5939 * sheets/Assorted/Makefile.am:
5940 * sheets/Assorted.sheet.in: Added new arrow
5942 2003-11-17 Lars Clausen <lrclause@cs.uiuc.edu>
5950 * app/diagram_tree.c
5951 * app/diagram_tree_menu.c
5952 * app/diagram_tree_window.c
5953 * app/diapagelayout.c
5954 * app/diaunitspinner.c
5958 * app/layer_dialog.c
5959 * app/lineprops_area.c
5960 * app/linewidth_area.c
5963 * app/paginate_psprint.c
5965 * app/plugin-manager.c
5968 * app/recent_files.c
5970 * app/sheets_dialog.c
5971 * app/sheets_dialog_callbacks.c
5972 * app/tool.c: Patch from Sebastien Tricaud <toady@gscore.org>:
5973 GTK-2 compatibility update, mostly gtk_foo -> g_foo.
5975 * TODO: Updated, note on EPS transparency.
5977 2003-11-07 Lars Clausen <lrclause@cs.uiuc.edu>
5979 * objects/UML/class.c (umlclass_draw): Allow classes with no name
5982 2003-11-01 Lars Clausen <lrclause@cs.uiuc.edu>
5985 * doc/en/dia-manual.xml:
5988 * NEWS: Another Brown Bag release for parenting problems,
5989 including a crash bug fix.
5991 * app/connectionpoint_ops.c (diagram_update_connections_object):
5992 Also update connections when moving children. This can cause
5993 move_handle to be called twice, so it must be idempotent.
5995 * app/load_save.c: Loading and saving of children totally redone.
5996 Now doesn't violate assumption that all objects in a layer are
5997 placed in order in XML file.
5999 * objects/UML/branch.c (branch_create): Don't lie about being
6002 * objects/UML/node.c (node_create):
6003 * objects/UML/large_package.c (largepackage_create): Drag with
6004 lower right-hand handle at creation like all other objects.
6006 2003-10-28 Lars Clausen <lrclause@cs.uiuc.edu>
6008 * app/disp_callbacks.c (ddisplay_drop_object): Change initial
6009 parenting drop to behave like a move inside, i.e. constrain place
6010 instead of trying to resize. 'Cause, resizing cannot be done for
6011 all objects (e.g. UML Class). Also simplified the algorithm a lot
6014 * app/load_save.c: Saving and loading of connection points for
6015 children added. Prototypes for static functions added.
6017 * lib/dynamic_obj.c: Removed debugging output.
6019 2003-10-26 Lars Clausen <lrclause@cs.uiuc.edu>
6021 * doc/en/dia-manual.xml:
6022 * doc/pl/dia-manual.sgml:
6026 * NEWS: Brown Bag release 0.92.1
6028 * lib/dynamic_obj.c: Fixed embarassing dynamic object removal bug.
6030 2003-10-25 Lars Clausen <lrclause@cs.uiuc.edu>
6032 * app/app_procs.c (app_init): Rearrangement for translators.
6034 2003-10-24 Steffen Macke <sdteffen@web.de>
6036 * lib/text.c(text_key_event): enforcing the inserted text length now,
6039 2003-10-22 Lars Clausen <lrclause@cs.uiuc.edu>
6041 * MAINTAINERS: Change Debian maintainer to be the default address.
6043 * objects/Misc/analog_clock.c (analog_clock_move_handle): Reorder
6044 args to match prototype, thus removing crashbug #125159.
6046 * RELEASE-PROCESS: Note to self.
6048 2003-10-22 Steffen Macke <sdteffen@web.de>
6050 * doc/en/dia-manual.xml: removed superfluous external references
6052 2003-10-21 Steffen Macke <sdteffen@web.de>
6054 * lib/libdia.def: added filter_get_by_name
6055 * app/render_eps.c: moved extensions definition outside #ifdef
6057 2003-10-19 Lars Clausen <lrclause@cs.uiuc.edu>
6061 Removed old Dia manual, put new one in doc/en/. Translations
6062 should go in doc/??/.
6064 * doc/en/dia-manual.xml:
6065 * doc/pl/dia-manual.sgml:
6066 * dia.spec (Release):
6069 * NEWS: 0.92 is here!
6073 * doc/en/Makefile.am (man_MANS): Added man page, thanks to Fredrik
6074 HallenBerg, W. Borgert. Not currently autogenerated from dia.dbk,
6077 * doc/en/usage-objects.xml: Fixed lower-case PNG tags.
6079 * doc/en/usage-objects-selecting.xml: Commented out empty note.
6081 2003-10-14 Lars Clausen <lrclause@cs.uiuc.edu>
6083 * doc/pl/dia-manual.sgml:
6084 * doc/en/dia-manual.xml:
6088 * dia.spec (Release): Pre7.
6090 * app/diapsrenderer.c (draw_string): Convert string to print based
6091 on current locale. If conversion fails, fall back to UTF-8 (which
6092 is almost certain to be messy).
6094 2003-10-13 Lars Clausen <lrclause@cs.uiuc.edu>
6096 * doc/pl/dia-manual.sgml:
6097 * dia.spec (Release):
6101 * doc/en/dia-manual.xml: Pre6.
6103 * plug-ins/pstricks/render_pstricks.c (draw_string): Don't escape
6104 TeX chars in strings -- must be possible to use TeX text in there.
6105 Also avoids infinite loop bug (#124464) Will get option for this
6108 2003-10-11 Lars Clausen <lrclause@cs.uiuc.edu>
6110 * shapes/Cisco/Makefile.am: Cisco shapes now install correctly.
6112 * doc/en/dia-manual.xml:
6113 * doc/pl/dia-manual.sgml:
6114 * dia.spec (Release):
6119 * app/authors.h: Removed duplicate of M. C. Nelson.
6121 * plug-ins/pixbuf/pixbuf.c: Unique name for pixbuf export: gdkpixbuf.
6123 * app/export_png.c: Unique name for libart PNG export: png-libart.
6125 * app/render_eps.c: Unique names for the two eps export methods:
6126 eps-builtin, eps-pango.
6128 * lib/filter.h: Binary compatibility change:
6129 Added unique name to export filters. Can be NULL.
6130 * lib/filter.c (filter_get_by_name): Finding a filter by
6133 * app/app_procs.h: Changed prototype for do_convert.
6134 * app/app_procs.c (app_init): Support for non-extension file
6135 format selection for export. Also allow extension to differ from
6136 that specified by the filters. A bit of refactoring, too.
6138 2003-09-28 Steffen Macke <sdteffen@web.de>
6140 * makefile.msc: added target po to update the translations
6142 2003-09-27 Lars Clausen <lrclause@cs.uiuc.edu>
6145 * dia.spec (Release):
6147 * doc/pl/dia-manual.sgml:
6148 * doc/en/dia-manual.xml:
6149 Pre4 is given a short try.
6151 * configure.in: Give all necessary libs to PNG test.
6153 * lib/font.c: Added legacy entries for sans, serif and monospace.
6155 * app/app_procs.c (internal_plugin_init):
6158 Added PS fonts output for Unix.
6160 * app/diapsrenderer.c (set_font): Adjusted height by the magic .7
6161 factor to make PS fonts stay in boxes.
6163 2003-08-03 Hans Breuer <hans@breuer.org>
6165 * config.h.win32 : close the version string
6167 * lib/libdia.def : with color_white, color_black being static
6168 on win32 they can not be exported anymore either
6170 * lib/dialibartrenderer.c : text rendering is back on win32,
6171 only by Gdk though; almost a year seems to be enough to
6172 wait for my patch at bug #94791 to be accepted ...
6174 2003-09-23 Lars Clausen <lrclause@cs.uiuc.edu>
6176 * shapes/network/{digitizing_board.png,plotter.png,
6177 laptop.png,telephone.png}: 22x22 icons.
6179 2003-09-22 Lars Clausen <lrclause@cs.uiuc.edu>
6181 * doc/pl/dia-manual.sgml:
6182 * doc/en/dia-manual.xml:
6183 * dia.spec (Release):
6187 pre3 improves font rendering speed.
6189 * app/app_procs.c (app_init): Don't do pango init here, it's done
6190 on demand in font.c now.
6192 * lib/font.c: Load pango context on demand rather than during
6193 init/all the time strikes a better balance between working font
6194 size and speed. Still need to cache width calculations.
6196 2003-09-18 Lars Clausen <lrclause@cs.uiuc.edu>
6198 * lib/dia_xml.c: Enable pretty printing. Should have been added
6201 2003-09-11 Lars Clausen <lrclause@cs.uiuc.edu>
6203 * lib/arrows.c (calculate_arrow_point): Adjust arrow line
6204 adjustment a bit for half diamond and open round.
6206 * RELEASE-PROCESS: Added note about notifying translators and
6209 * doc/pl/dia-manual.sgml:
6210 * doc/en/dia-manual.xml:
6211 * dia.spec (Release):
6215 Update to 0.92-pre2.
6217 2003-09-10 Lars Clausen <lrclause@cs.uiuc.edu>
6219 * lib/arrows.c (calculate_arrow_point): Some fixing-up of arrow
6220 calculation for half diamond and open round.
6223 * objects/UML/component_feature.c:
6224 * lib/arrows.h: Patch from W. Borgert <debacle@debian.org>: Use
6225 arrows instead of specific little hacks. Much nicer, but damn
6226 there's a lot of arrows.
6228 * lib/dialibartrenderer.c (begin_render):
6229 * app/render_libart.c (begin_render): Use correct DPI for screen
6230 (well, actually the default DPI of 75 for now).
6232 * app/display.h: Informative notes on the DDISPLAY_*_ZOOM macros.
6234 * lib/diagdkrenderer.c (draw_string): Some reformatting.
6236 * app/app_procs.c (app_init): Note on what should be done for the
6237 pango context now, only it doesn't work:(
6239 * lib/font.c (dia_font_new): Make sure to load fonts that are
6240 used, using a reasonable pango_context. Also a comment on the
6243 2003-09-09 Lars Clausen <lrclause@cs.uiuc.edu>
6245 * doc/pl/graphics/*.png:
6246 * doc/pl/Makefile.am: Added graphics to distro, avoiding empty
6247 loop (bug #121817). PL translator may want to change the
6248 home_network png to be in Polish. If the docs get translated into
6249 more languages, we'll want to find out how to share these things.
6251 2003-09-08 Lars Clausen <lrclause@cs.uiuc.edu>
6253 * app/splash.c (app_splash_init): Patch from Sébastien Tricaud
6254 <stricaud@mwsp.net>: Use g_signal_* instead of gtk_signal_* in
6257 * app/filedlg.c (file_save_as_callback): Put filename setting
6258 together. (Preparation for allowing default save dir.)
6260 * app/paginate_psprint.c (diagram_print_ps): Use $PRINTER
6261 correctly this time:)
6263 * app/dia-props.c (diagram_properties_show):
6264 * app/properties.c (properties_show): Make sure the
6265 dialogs are transient for the correct diagram.
6267 2003-09-07 Lars Clausen <lrclause@cs.uiuc.edu>
6269 * configure.in: Make sure -lz -lm is passed into second png test
6270 as well (stupid AC_LINK_IFELSE can't take it as an argument).
6272 * plug-ins/xfig/xfig-import.c: Skip XFig comments to make certain
6273 comment-filled files readable. Once we have a 'generic data'
6274 system, we can put comments in there.
6276 2003-09-06 Steffen Macke <sdteffen@web.de>
6278 * plug-ins/pstricks/render_pstricks.c(tex_escape_string): using
6279 g_string_sized_new() instead of g_string_new() to make it compile
6280 * app/Makefile.am: including dia.ico and dia.rc in the tarball
6281 * plug-ins/wmf/wmf.cpp (set_linestyle): In WMF maximum linewidth is 1
6282 for non-solid linestyles - otherwise custom linestyles have to be used.
6284 2003-09-02 Steffen Macke <sdteffen@web.de>
6286 * app/commands.c(help_manual_callback): using dia-manual.chm instead of
6289 2003-09-02 Christian Neumair <chris@gnome-de.org>
6291 * sheets/Pneumatic.sheet.in: Slight unification fix.
6293 2003-09-02 Lars Clausen <lrclause@cs.uiuc.edu>
6297 * dia.spec (Release):
6298 * doc/en/dia-manual.xml:
6299 * doc/pl/dia-manual.sgml:
6300 * NEWS: Update to 0.92-pre1.
6302 * app/properties.c (properties_key_event): Removing Esc/Enter
6303 handling for now, interferes to much with regular dialog usage.
6305 * plug-ins/pstricks/render_pstricks.c (tex_escape_string):
6306 Function to escape special TeX characters. Not in use yet, as
6307 PSTricks output by default is TeX strings. Should get a save-time
6310 2008-09-01 Steffen Macke <sdteffen@web.de>
6312 * lib/paper.h: explanatory comment on width and height
6314 2003-08-30 Steffen Macke <sdteffen@web.de>
6317 * lib/color.h: made color_white, color_black static on win32
6319 2003-08-28 Lars Clausen <lrclause@cs.uiuc.edu>
6321 * configure.in (PNG_LIBS): Something in the png tests added an
6322 extra -lpng to $LIBS. Saving old $LIBS to avoid that.
6324 2003-08-27 Lars Clausen <lrclause@cs.uiuc.edu>
6326 * configure.in: Quote correctly for temporarily adding freetype
6329 * app/preferences.c (prefs_save): Remove debugging g_print.
6331 2003-08-26 Lars Clausen <lrclause@cs.uiuc.edu>
6333 * objects/flowchart/parallelogram.c (pgram_update_data):
6334 Directions for connections, better system for placing
6337 2003-08-25 Lars Clausen <lrclause@cs.uiuc.edu>
6339 * lib/diagramdata.c (layer_find_closest_object_except): Look all
6340 the way through the object list, so the foremost object is selected.
6342 * lib/diagramdata.h: Removing dynamic_obj.h, it should only be
6343 included for diagramdata.c.
6345 * lib/prop_text.c (multistringprop_handle_key): Attempt at making
6346 newline in multistringprop not close the dialog. Failed so far.
6348 2003-08-25 Steffen Macke <sdteffen@web.de>
6350 * app/commands.c: using CHM instead of HTML on win32 if available
6351 * lib/diagramdata.h: including dynamic_obj.h
6353 2003-08-25 Lars Clausen <lrclause@cs.uiuc.edu>
6355 * app/properties.c (properties_key_event): Make Enter = Ok for
6356 properties dialogs. Still some problems with this and Esc for
6357 Cancel, for instances escaping out of a menu closes the dialog.
6359 * objects/UML/association.c (association_get_properties):
6360 * objects/UML/class_dialog.c (class_create_page): Grab appropriate
6363 * app/diapsft2renderer.c (draw_string): Use
6364 dia_font_scaled_build_layout to ensure similarity of text.
6366 * lib/diagramdata.c: Remove obj from dynobj list when removing
6367 from layer to avoid nasty race conditions.
6369 * app/undo.c (group_objects_revert): Make sure to unparent and
6370 remove from dynobj list when changing layers objects.
6372 2003-08-23 Steffen Macke <sdteffen@web.de>
6374 * plug-ins/wmf/wmf.cpp (draw_image): replaced BitBlt() with
6375 StretchBlt(); fixes #92249
6377 2003-08-23 Lars Clausen <lrclause@cs.uiuc.edu>
6379 * app/filedlg.c (file_save_as_callback):
6380 * app/preferences.h:
6381 * app/preferences.c (prefs_data):
6382 * lib/diagramdata.h:
6383 * lib/diagramdata.c (new_diagram_data):
6384 * app/load_save.c (diagram_data_load):
6385 Let the document remember whether it was compressed. The user can
6386 still override this in the Save As... dialog, and that will still
6387 be remembered as the default for new diagrams.
6389 2003-08-23 Steffen Macke <sdteffen@web.de>
6391 * plug-ins/xslt/Makefile.am: added dia-uml2componentlist.xsl
6393 2003-08-22 Steffen Macke <sdteffen@web.de>
6395 * plug-ins/xslt/dia-uml.xsl:
6396 * plug-ins/xslt/dia-uml2componentlist.xsl: generate a HTML file with a
6397 table containing a list of components grouped by stereotype
6399 2003-08-21 Steffen Macke <sdteffen@web.de>
6401 * lib/makefile.msc: added connectionpoint.obj
6402 * lib/libdia.def: added connpoint_update, find_slope_directions
6403 * app/disp_callbacks.c: including scroll_tool.h
6404 * obj/makefile.msc: added component_feature.obj
6405 * app/paginate_gdiprint.c: fixed loop initialization in
6406 paginate_gdiprint(); partial fix for bug #85831 - the scaling is still
6409 2003-08-21 Lars Clausen <lrclause@cs.uiuc.edu>
6411 * plug-ins/python/pydia-object.c (PyDiaObject_MoveHandle): Fix
6414 * lib/diagramdata.h: Colors added to prefs.
6415 * lib/diagramdata.c (new_diagram_data): Set diagram colors from prefs.
6416 New field for pagebreak color, which should
6417 behave the same as grid color and be settable for a diagram.
6419 * app/diagram.c (diagram_init): Update diagram pagebreak color
6422 * app/grid.c (pagebreak_draw): Draw using diagrams pagebreak
6425 * app/preferences.[ch]: Default diagram colors now #defines, so
6426 loading can use it. Also, colors are now in NewDiagramData, so
6427 are passed nicely into new diagrams directly from prefs. Yum.
6429 * app/load_save.c (diagram_data_write_doc, diagram_data_load):
6430 Support for loading and saving grid and pagebreak colors with the
6431 diagram. I'm inclined to make all the three Colors in diagram
6432 Color*s instead, so we can tell if they're specified for the
6433 diagram or merely the default setting. There'd be no way for the
6434 user to tell if the color of a diagram is default, though, unless
6435 we add a 'reset to default' button to prefs.
6437 * app/dia-props.c: Adding widgets for dynamic grid, grid colour,
6438 pagebreak color. Unsensitizing grid size when dynamic.
6440 * objects/UML/component.c: Patch from Krzysztof Foltman
6441 <kfoltman@onet.pl>: Add two new connectionpoints and adjust a
6442 third. Makes the left side connections actually be on the line
6445 2003-08-20 Steffen Macke <sdteffen@web.de>
6447 * lib/libdia.def: added layer_find_closest_object_except
6448 * lib/diagramdata.c: added ; after GOTO to make MSVC compile
6450 2003-08-20 Lars Clausen <lrclause@cs.uiuc.edu>
6454 * app/scroll_tool.c:
6456 * app/disp_callbacks.c:
6457 * app/create_object.h:
6458 * app/create_object.c: Patch from Krzysztof Foltman
6459 <kfoltman@onet.pl>: Middle button can scroll transiently when
6460 menu-bar-mode is on, and mouse wheels (hopefully) can scroll in
6464 * sheets/UML.sheet.in:
6465 * sheets/UML/receptacle.xpm:
6466 * sheets/UML/Makefile.am:
6467 * sheets/UML/eventsource.xpm:
6468 * sheets/UML/eventsink.xpm:
6469 * objects/UML/pixmaps/facet.xpm:
6470 * objects/UML/uml.c (dia_plugin_init):
6471 * objects/UML/Makefile.am (libuml_objects_la_SOURCES):
6472 * objects/UML/component_feature.c:
6473 Patch from W. Borgert <debacle@debian.org>: Add event sources and
6476 2003-08-19 Lars Clausen <lrclause@cs.uiuc.edu>
6478 * lib/object.h: Turning some comments into doxygen style.
6480 * lib/object_defaults.c (dia_object_defaults_load)
6481 (dia_object_default_get, dia_object_default_create):
6482 Fixing up existing documentation.
6484 * lib/object.h: Doxygen style documentation begun.
6486 * app/create_object.c:
6488 * app/connectionpoint_ops.c:
6489 * app/disp_callbacks.c:
6490 * app/modify_tool.c:
6492 * objects/network/wanlink.c (wanlink_move_handle):
6493 * objects/network/bus.c (bus_move_handle):
6495 * objects/flowchart/parallelogram.c (pgram_move_handle):
6496 * objects/flowchart/ellipse.c (ellipse_move_handle):
6497 * objects/flowchart/diamond.c (diamond_move_handle):
6498 * objects/flowchart/box.c (box_move_handle):
6500 * objects/custom/custom_object.c (custom_move_handle):
6502 * objects/chronogram/chronoref.c (chronoref_move_handle):
6503 * objects/chronogram/chronoline.c (chronoline_move_handle):
6505 * objects/SADT/box.c (sadtbox_move_handle):
6506 * objects/SADT/arrow.c (sadtarrow_move_handle):
6507 * objects/SADT/annotation.c (annotation_move_handle):
6509 * objects/Misc/analog_clock.c (analog_clock_move_handle):
6511 * objects/GRAFCET/vergent.c (vergent_move_handle):
6512 * objects/GRAFCET/vector.c (arc_move_handle):
6513 * objects/GRAFCET/transition.c (transition_move_handle):
6514 * objects/GRAFCET/step.c (step_move_handle):
6515 * objects/GRAFCET/condition.c (condition_move_handle):
6516 * objects/GRAFCET/action.c (action_move_handle):
6518 * objects/FS/function.c:
6519 * objects/FS/flow.c:
6520 * objects/FS/flow-ortho.c (orthflow_move_handle):
6521 * objects/FS/flow-poly.c (flow_move_handle):
6523 * objects/UML/usecase.c (usecase_move_handle):
6524 * objects/UML/state_term.c (state_move_handle):
6525 * objects/UML/state.c (state_move_handle):
6526 * objects/UML/small_package.c (smallpackage_move_handle):
6527 * objects/UML/realizes.c (realizes_move_handle):
6528 * objects/UML/object.c (objet_move_handle):
6529 * objects/UML/note.c (note_move_handle):
6530 * objects/UML/node.c (node_move_handle):
6531 * objects/UML/message.c (message_move_handle):
6532 * objects/UML/lifeline.c (lifeline_move_handle):
6533 * objects/UML/large_package.c (largepackage_move_handle):
6534 * objects/UML/implements.c (implements_move_handle):
6535 * objects/UML/generalization.c (generalization_move_handle):
6536 * objects/UML/fork.c (fork_move_handle):
6537 * objects/UML/dependency.c (dependency_move_handle):
6538 * objects/UML/constraint.c (constraint_move_handle):
6539 * objects/UML/compprop.c (compprop_move_handle):
6540 * objects/UML/component.c (component_move_handle):
6541 * objects/UML/branch.c (branch_move_handle):
6542 * objects/UML/association.c (association_move_handle):
6543 * objects/UML/actor.c (actor_move_handle):
6544 * objects/UML/activity.c (state_move_handle):
6545 * objects/UML/class.c (umlclass_move_handle):
6547 * objects/standard/ellipse.c (ellipse_move_handle):
6548 * objects/standard/zigzagline.c (zigzagline_move_handle):
6549 * objects/standard/textobj.c (textobj_move_handle):
6550 * objects/standard/polyline.c (polyline_move_handle):
6551 * objects/standard/polygon.c (polygon_move_handle):
6552 * objects/standard/line.c (line_move_handle):
6553 * objects/standard/image.c (image_move_handle):
6554 * objects/standard/bezier.c (bezierline_move_handle):
6555 * objects/standard/arc.c (arc_move_handle):
6556 * objects/standard/beziergon.c (beziergon_move_handle):
6557 * objects/standard/box.c (box_move_handle):
6559 * objects/ER/relationship.c (relationship_move_handle):
6560 * objects/ER/participation.c (participation_move_handle):
6561 * objects/ER/entity.c (entity_move_handle):
6562 * objects/ER/attribute.c (attribute_move_handle):
6564 * lib/polyshape.c (polyshape_move_handle):
6566 * lib/orth_conn.c (orthconn_move_handle):
6568 * lib/neworth_conn.c (neworthconn_move_handle):
6569 * lib/neworth_conn.h:
6570 * lib/element.c (element_move_handle):
6572 * lib/connection.c (connection_move_handle):
6574 * lib/beziershape.c (beziershape_move_handle):
6575 * lib/beziershape.h:
6576 * lib/bezier_conn.c (bezierconn_move_handle):
6577 * lib/bezier_conn.h:
6578 *BINARY COMPATIBILITY CHANGE*
6579 Update prototype for *_move_handle() to include connectionpoint,
6580 and also pass on modifiers. Pass in connectionpoint where
6583 * lib/dummy_dep.h (dummy_dep): Adding dummy dependencies for new
6584 file connectionpoint.c.
6586 2003-08-17 Danilo Å egan <dsegan@gmx.net>
6588 * configure.in: Added "sr" and "sr@Latn" to ALL_LINGUAS.
6590 2003-08-15 Lars Clausen <lrclause@cs.uiuc.edu>
6592 * lib/object.c (object_copy): Use g_malloc0 instead of g_malloc.
6594 * lib/beziershape.c (beziershape_update_data): Autoroute
6595 directions for beziershapes!
6597 * lib/connectionpoint.c (find_slope_directions):
6598 * lib/connectionpoint.h: Function for finding the available
6599 directions on a slope.
6601 * lib/polyshape.c: Reasonable directions for
6604 2003-08-14 Lars Clausen <lrclause@cs.uiuc.edu>
6606 * objects/Misc/analog_clock.c (analog_clock_update_arrow_tips):
6607 * objects/GRAFCET/vergent.c (vergent_update_data):
6608 * objects/GRAFCET/transition.c (transition_update_data):
6609 * objects/GRAFCET/action.c (action_update_data):
6610 * objects/GRAFCET/step.c (step_update_data):
6611 * objects/FS/function.c (function_update_data):
6612 * lib/connpoint_line.c (connpointline_putonaline):
6613 * objects/ER/attribute.c (attribute_update_data):
6614 * objects/ER/entity.c (entity_update_data):
6615 * objects/ER/relationship.c (relationship_update_data):
6616 * objects/chronogram/chronoline.c (chronoline_update_data): Set
6617 directions for connection points.
6619 * objects/UML/component.c (component_create): Set to allow
6622 * app/create_object.c (create_object_button_press):
6623 * app/diagram.[ch] (diagram_find_clicked_object_except):
6624 * lib/diagramdata.[ch] (layer_find_closest_object_except):
6625 Avoid parenting to objects you're connecting to (otherwise you
6626 couldn't make a connection out of a parenting object). To do
6627 this, added functions to find the nearest object except a given
6630 * app/render_libart.c: Rearrange libart include to avoid multiple
6631 include program (and put libart includes inside #ifdef!)
6633 2003-08-13 Lars Clausen <lrclause@cs.uiuc.edu>
6635 * lib/dialibartrenderer.c: Don't include art_config.h if others
6636 also do, as it isn't #ifdef'd.
6638 * objects/flowchart/ellipse.c (ellipse_update_data): Add
6639 directions for connection points.
6641 2003-08-12 Lars Clausen <lrclause@cs.uiuc.edu>
6643 * objects/flowchart/box.c (box_update_data): Add directions, use
6645 (box_load): Use g_malloc0.
6647 * lib/Makefile.am (libdia_la_SOURCES):
6648 * lib/connectionpoint.c (connpoint_update):
6649 Function to call to update a connection point info in _update_data().
6651 * lib/connectionpoint.h: Convenience DIR_ macros.
6653 * app/preferences.c (prefs_data): Make pretty formatted XML the
6656 * lib/dialibartrenderer.c:
6657 * app/render_libart.c: Make sure art_config.h is included, cause
6658 some libart headers are broken.
6660 * configure.in (HAVE_FREETYPE): Restore CPPFLAGS to old value
6661 after test. Add freetype-config cflags to cflags variable.
6663 2003-08-11 Lars Clausen <lrclause@cs.uiuc.edu>
6665 * app/authors.h: Credits for Krzysztof.
6667 * sheets/Flowchart.sheet.in: Updated descriptions from Krzysztof
6668 Foltman <kfoltman@onet.pl>. It occurs to me that the name (rather
6669 than the description) is visible in the title of the properties
6670 dialog. That ought to be a short description (translatable),
6671 though we still want long descriptions for the tooltips. Hmmm...
6673 * configure.in: Updated to use AC_LINK_IFELSE instead of
6674 AC_TRY_COMPILE, also force to link to check libs on Solaris.
6676 * objects/ER/entity.c (entity_load):
6677 * objects/ER/attribute.c (attribute_load):
6678 * lib/attributes.c (attributes_set_default_font):
6679 Check if font is non-null before unreffing.
6681 2003-08-08 Lars Clausen <lrclause@cs.uiuc.edu>
6683 * app/diagram.c (diagram_ungroup_selected)
6684 (diagram_group_selected): Use the undo apply to make sure grouping
6685 and ungrouping is done in consistent manners. This removes a fair
6686 amount of duplicated code from diagram.c.
6688 * app/undo.c (ungroup_objects_revert, ungroup_objects_apply)
6689 (group_objects_revert, group_objects_apply): Working undo/redo for
6690 diagram tree updates. The initial actions still don't quite work.
6692 2003-08-07 Lars Clausen <lrclause@cs.uiuc.edu>
6694 * app/create_object.c (create_object_button_press):
6696 * app/diagram.c: Undo support for parenting. Uses apply/revert in
6697 undo only for manipulating the parent/child relationships. Things
6698 like removing an object doesn't use the undo functions for
6699 parenting, so any updates to come (like to diagramtree) should be
6702 2003-08-03 Hans Breuer <hans@breuer.org>
6704 * app/create_object.c : minor formating and g_new0 for
6707 * lib/bezier_conn.[hc] lib/beziershape.[hc]
6708 lib/prop_geomtypes.c (prop_geomtypes_register)
6709 objects/standard/bezier.c objects/standard/beziergon.c :
6710 ability to set bezpoints via StdProp api
6712 * plug-ins/python/pydia-property.c : convert list of tuples
6715 * plug-ins/python/diasvg_import.py : use it to
6716 implement part of path parsing. Also minor improvements
6717 like inheritance of group attributes to members,
6718 whitespace, title and style:text/css ignoring ;-)
6720 2003-08-02 Hans Breuer <hans@breuer.org>
6722 * lib/connections.c (connection_move_handle): return
6723 something to make it compile
6724 * lib/object.c(190) : error C4033: 'object_list_move_delta_r'
6725 must return a value -> dito
6726 [Is there a warnings-as-errors switch we could use with gcc
6727 to avoid such in future ?]
6729 * plug-ins/python/pydia-object.h : define *_Check macros
6730 * plug-ins/python/diamodule.c : provide dia.group_create()
6731 * plug-ins/python/pydia-diagramdata.c : add
6732 DiaDiagramData.add_layer()
6733 * plug-ins/python/pydia-property.c : allow to set color by
6736 * plug-ins/python/diasvg_import.py : based on the above
6737 implement a) group support, b) rgb(1,2,3) color handling,
6738 and somewhat fishy data:image/png;base64 support (create
6739 temporary files from inline image data)
6740 d) dump the import errors as text into an 'Error' layer
6742 * plug-ins/python/diasvg.py : add xmlns:xlink, removed a
6743 stray " in draw_rect and corrected error message formating
6745 * plug-ins/pydia/pydia-geometry.c : removed ## to make it
6746 compile with gcc 3.3, fixes bug #117204. Thanks to Daniel
6749 2003-08-01 Hubert Figuiere <hfiguiere@teaser.fr>
6751 * app/magnify.c (create_magnify_tool): allocate with g_new0()
6753 * app/preferences.c (prefs_create_dialog): use checkboxes for boolean
6754 preferences values (see bug 118570). Also group items into a GtkFrame.
6756 2003-07-31 Lars Clausen <lrclause@cs.uiuc.edu>
6761 * app/commands.c (objects_unparent_children_callback):
6763 * app/diagram.c (diagram_unparent_selected,
6764 (diagram_update_menu_sensitivity):
6765 Added unparenting of single children.
6767 * lib/bezier_conn.c:
6768 * lib/bezier_conn.h:
6769 * lib/beziershape.c:
6770 * lib/beziershape.h:
6776 * lib/neworth_conn.c:
6777 * lib/neworth_conn.h:
6784 * objects/EML/instantiation.c:
6785 * objects/EML/interaction-ortho.c:
6786 * objects/EML/interaction.c:
6787 * objects/EML/process.c:
6788 * objects/ER/attribute.c:
6789 * objects/ER/entity.c:
6790 * objects/ER/participation.c:
6791 * objects/ER/relationship.c:
6792 * objects/FS/flow-ortho.c:
6793 * objects/FS/flow-poly.c:
6794 * objects/FS/flow.c:
6795 * objects/FS/function.c:
6796 * objects/GRAFCET/action.c:
6797 * objects/GRAFCET/condition.c:
6798 * objects/GRAFCET/step.c:
6799 * objects/GRAFCET/transition.c:
6800 * objects/GRAFCET/vector.c:
6801 * objects/GRAFCET/vergent.c:
6802 * objects/Misc/analog_clock.c:
6803 * objects/SADT/annotation.c:
6804 * objects/SADT/arrow.c:
6805 * objects/SADT/box.c:
6806 * objects/UML/activity.c:
6807 * objects/UML/actor.c:
6808 * objects/UML/association.c:
6809 * objects/UML/branch.c:
6810 * objects/UML/class.c:
6811 * objects/UML/classicon.c:
6812 * objects/UML/component.c:
6813 * objects/UML/constraint.c:
6814 * objects/UML/dependency.c:
6815 * objects/UML/fork.c:
6816 * objects/UML/generalization.c:
6817 * objects/UML/implements.c:
6818 * objects/UML/large_package.c:
6819 * objects/UML/lifeline.c:
6820 * objects/UML/message.c:
6821 * objects/UML/node.c:
6822 * objects/UML/note.c:
6823 * objects/UML/object.c:
6824 * objects/UML/realizes.c:
6825 * objects/UML/small_package.c:
6826 * objects/UML/state.c:
6827 * objects/UML/state_term.c:
6828 * objects/UML/usecase.c:
6829 * objects/chronogram/chronoline.c:
6830 * objects/chronogram/chronoref.c:
6831 * objects/custom/custom_object.c:
6832 * objects/flowchart/box.c:
6833 * objects/flowchart/diamond.c:
6834 * objects/flowchart/ellipse.c:
6835 * objects/flowchart/parallelogram.c:
6836 * objects/network/bus.c:
6837 * objects/network/wanlink.c:
6838 * objects/standard/arc.c:
6839 * objects/standard/bezier.c:
6840 * objects/standard/beziergon.c:
6841 * objects/standard/box.c:
6842 * objects/standard/ellipse.c:
6843 * objects/standard/image.c:
6844 * objects/standard/line.c:
6845 * objects/standard/polygon.c:
6846 * objects/standard/polyline.c:
6847 * objects/standard/textobj.c:
6848 * objects/standard/zigzagline.c:
6849 Binary compatibility update: Added return value for foo_move() and
6850 foo_move_handle(). Orthconn derivatives also returns change from
6851 orthconn_move_handle().
6853 * lib/orth_conn.c: Undo support for autorouting. Neworthconn
6854 doesn't support it yet.
6856 * lib/object.c (object_list_move_delta_r, object_list_move_delta):
6857 Add returning ObjectChange from object moves. Needs to handle
6858 multiple object moves.
6860 * app/modify_tool.c (modify_motion, modify_release): Add
6861 ObjectChange from move & move_handle to undo stack.
6863 * objects/EML/instantiation.c (instantiation_move): Removing
6864 duplicate move & update.
6866 2003-07-30 Lars Clausen <lrclause@cs.uiuc.edu>
6868 * plug-ins/xfig/xfig-export.c: Added support for arrow head
6869 export. Many arrow types not supported by XFig, replacing those
6870 with standard arrows. Not sure whether it'd be better to render
6871 them as a group of lines instead. You'd lose the arrow-ness for
6872 further editing, but preserve the actual shape of it. Also added
6873 support for dash length.
6875 * plug-ins/xfig/xfig-import.c: Added support for dash length settings.
6877 * plug-ins/xfig/fig-format-3.2: Added copy of Fig format
6878 description for version 3.2, for reference.
6880 * plug-ins/xfig/xfig-import.c: Added import of arrows.
6882 * app/menus.c: Removed prefs item from Gnome diagram menu. Made
6883 Align Vertical Adjacent call _v rather than _h.
6885 2003-07-29 Hubert Figuiere <hfiguiere@teaser.fr>
6887 * app/scroll_tool.c (create_scroll_tool):
6888 * app/modify_tool.c (create_modify_tool): use g_new0() to
6891 2003-07-29 Lars Clausen <lrclause@cs.uiuc.edu>
6893 * configure.in: Added proper settings for XSLT_LIBS and XSLT_CFLAGS.
6895 2003-07-24 Pablo Saratxaga <pablo@mandrakesoft.com>
6897 * configure.in: Added Macedonian (mk) to ALL_LINGUAS
6899 2003-07-23 Dmitry G. Mastrukov <dmitry@taurussoft.org>
6901 * configure.in: Added Belarusian to ALL_LINGUAS.
6903 2003-07-19 Hans Breuer <hans@breuer.org>
6906 Make the xslt plug-in work on win32, too. It appears
6907 to require a quite recent version of libxml and libxslt,
6908 otherwise windoze pathes aren't translated correctly
6909 during file processing
6912 * plug-ins/xslt/xslt.h : #include <glib.h> before
6915 * plug-ins/xslt/xslt.c : plugged some memory leaks and do
6916 the 'script' file finding similar to how it is done
6917 with the python scripts (no need for hardcoded pathes,
6918 removed the 'plugin' part from the path)
6920 * plug-ins/xslt/stylesheets.xml : added again. It does
6921 not have any path but only the pure filename again
6923 * plug-ins/xslt/stylesheets.xml.in : removed
6925 * plug-ins/xslt/Makefile.am : removed 'plugin' and the
6926 rule to process stylesheets.xml.in
6928 * plug-ins/makefile.msc : added xslt
6930 2003-07-19 Hans Breuer <hans@breuer.org>
6932 Finally Dia learned to remember the recent selected sheet
6934 * app/preferences.[hc] : added prefs.recent_sheet
6935 * app/interface.c : restore and remember the sheet-option-menu
6936 history, but only if the respective number is stiil available.
6937 This additional adds robustness against running Dia without
6938 any sheet (e.g. installation problems)
6939 * app/app_procs.c : call prefs_safe() in app_exit() to remember
6940 changes which are not done by the prefernces dialog
6942 * app/diagram_tree_menu.c app/diagram_tree_menu_callbacks.c :
6943 removed every call (especially the conditional ones) to prefs_safe().
6944 Before prefs_safe() was called _many_ times during Dia startup
6946 2003-07-18 Hans Breuer <hans@breuer.org>
6948 * app/makefile.msc lib/makefile.msc lib/libdia.def :
6951 * lib/color.c : use gtk_widget_get_default_visual();
6952 as suggested in #114536
6954 * app/interface.c app/disp_callbacks.c :
6955 moved round_up () to the latter file where it is used
6957 * app/linewidth_area.c : #include "interface.h" for
6958 interface_get_toolbox_shell()
6960 2003-07-18 Hubert Figuiere <hfiguiere@teaser.fr>
6962 * plug-ins/pixbuf/.cvsignore
6963 * shapes/Cisco/.cvsignore:
6966 2003-07-17 Lars Clausen <lrclause@cs.uiuc.edu>
6968 * app/dia-props.c (diagram_properties_retrieve): Use
6969 diagram_get_name() to add the diagram name to the diagram
6973 * app/diagram.c (diagram_get_name): New function to get a
6974 reasonable diagram name.
6976 * lib/diagramdata.h: Added major_lines, dynamic and colour to grid
6977 info. Still need to be able to set dynamic grid. Also ought to
6978 follow Gnome style and have instant apply.
6980 * app/preferences.h:
6981 * app/preferences.c (prefs_data): Remove option to use stippled
6982 grid, add option for major line offset. Default to 5 minor lines
6984 Add option for dynamically sized grid.
6986 * app/display.c (ddisplay_render_pixmap): Call pagebreak_draw as well.
6988 * app/grid.c: Pagebreak drawing separated out. Grid drawing using
6989 stippled/solid to display minor/major grid lines. Line drawing in
6990 separate functions away from calculating line distance.
6992 * app/grid.h: Split page break drawing out of grid_draw.
6994 * app/layer_dialog.c (layer_dialog_show): Patch from Hubert
6995 Figuiere <hfiguiere@teaser.fr>: Layer dialog show go to front
6996 when menu item is selected.
6998 2003-07-15 Lars Clausen <lrclause@cs.uiuc.edu>
7000 * configure.in: Removed -Winline flag to make way for important
7003 * samples/UML-demo.dia: Adjusted for 0.91 font size, saved as
7004 non-compressed. Should fix bug #117381, also look prettier.
7007 * dia.desktop.in: Patch from Mark McLoughlin <mark@skynet.ie>:
7008 Set up desktop info more properly.
7010 2003-07-13 Lars Clausen <lrclause@cs.uiuc.edu>
7027 Autorouting directions patch from Krzysztof Foltman
7030 * app/menus.c: Wrong GNOME paren fixed. Correct callbacks for
7031 GNOME parent menu items.
7033 * app/authors.h: Added Vadim to contributors list.
7035 2003-07-12 Lars Clausen <lrclause@cs.uiuc.edu>
7037 * app/commands.[ch]:
7038 * app/create_object.c:
7039 * app/disp_callbacks.[ch]:
7050 * objects/UML/large_package.c: Patch from Vadim Berezniker
7051 <vadim@berezniker.com>:
7052 Objects may "parent" other objects, i.e. contain them within
7053 themselves, restrain them and move them along. Some more stuff is
7054 needed, such as selection and individual unparenting. This adds
7055 parenting to UML - Large Package rather than Box.
7057 2003-07-11 Lars Clausen <lrclause@cs.uiuc.edu>
7059 * app/linewidth_area.c: Patch from Krzysztof Foltman
7060 <kfoltman@onet.pl>: Make linewidth dialog conform to HIG (well,
7061 conform more, at least:).
7063 * plug-ins/metapost/render_metapost.[ch] : Applied patch from
7064 Chris Sperandio <sperandi@eng.usf.edu>: Fixed linewidths and
7065 arcs. Implemented images (though there is some pixelization and
7066 banding in the output). Changed output file format to be a little
7069 * app/app_procs.c (app_exit): Added message for double exit, which
7070 shouldn't happen any more. Also preventing strange g_object_unref
7071 messages by having a printf after gtk_main_quit. This is really
7074 * app/interface.c (toolbox_delete): Avoid double app_exit call by
7075 removing handler for destroy when delete is called.
7077 2003-07-07 Lars Clausen <lrclause@cs.uiuc.edu>
7080 * app/display.c (ddisplay_scroll_to_object,
7081 ddisplay_scroll_center_point): New function for easy scrolling to
7084 2003-07-06 Lars Clausen <lrclause@cs.uiuc.edu>
7086 * plug-ins/xslt/Makefile.am: Patch from Hubert Figuiere: Add
7087 $(srcdir) on stylesheets.xml.
7089 * app/menus.c: Patch from Hubert Figuiere: Adds help menu to
7090 diagram menus (since they're at the top by default now). Also
7091 move the Properties... menu item from Dialogs to Objects. Dialogs
7092 menu should disappear at some point.
7094 * autogen.sh: Patch from Hubert Figuiere: Don't automatically call
7095 ./configure from ./autogen.sh, as configure may need to be run
7096 from a different directory. (Also more standard this way.)
7098 * app/app_procs.c (app_init):
7099 * app/Makefile.am (INCLUDES): Gnome standardization patch from
7102 2003-07-03 Lars Clausen <lrclause@cs.uiuc.edu>
7104 * objects/flowchart/parallelogram.c (pgram_update_data):
7105 Left/right alignment for parallelograms. Doesn't use all
7106 available space, but then pgrams also ignore their shear value.
7107 This thing needs a loving hand.
7109 2003-07-01 Hans Breuer <hans@breuer.org>
7111 * lib/properties.h : introduce PROP_FLAG_OPTIONAL
7112 * lib/proplist.c : don't complain if optional attr is missing
7113 * lib/orth_conn.h : make "orth_autoroute" optional to
7114 stop complaining with older files.
7116 2003-06-13 Guntupalli Karunakar <karunakar@freedomink.org>
7118 * configure.in: Added "ml" for Malayalam in ALL_LINGUAS.
7120 2003-06-05 Andrew Halper <ashalper@cox.net>
7122 * app/diagram_tree.c : add scrolling of drawing area
7123 to desired object on "Locate". Patch modified to use new ddisplay
7124 function ddisplay_scroll_to_object().
7126 2003-06-11 Lars Clausen <lars@raeder.dk>
7128 * lib/diagramdata.h: Added major_lines, dynamic and colour to grid
7129 info. Before next version, the grid dialog (view dialog, really)
7130 must be redone to allow a) instant apply, b) apply to all
7131 diagrams, and c) setting colour, dynamic, major lines.
7133 * app/preferences.h:
7134 * app/preferences.c (prefs_data): Remove option to use stippled
7135 grid, add option for major line offset. Default to 5 minor lines
7137 Add option for dynamically sized grid.
7139 * app/display.c (ddisplay_render_pixmap): Call pagebreak_draw as well.
7141 * app/grid.c: Pagebreak drawing separated out. Grid drawing using
7142 stippled/solid to display minor/major grid lines. Line drawing in
7143 separate function away from calculating line distance.
7145 * app/grid.h: Split page break drawing out of grid_draw.
7147 2003-05-15 Hans Breuer <hans@breuer.org>
7149 * plug-ins/python/diasvg.py : add xlink definition,
7150 also avoid to put spaces into attribute values. At least
7151 Sodipodi doesn't like them in width/height attributes
7153 * plug-ins/python/diasvg_import.py : add simple scaling.
7154 Some (more) handling for <svg>, <desc>, <circle>
7156 * plug-ins/python/scascale.py : (new file) which does
7157 some experimental scaling via StdProp api
7159 * plug-ins/python/pydia-cpoint.c
7160 plug-ins/python/pydia-handle.c : return PyDiaPoint for
7161 obj.pos not simple tuples. PyDiaPoint has a tuple interface
7162 so this may even be api compatible ...
7164 2003-05-11 Hans Breuer <hans@breuer.org>
7166 * app/line_area.c : add window position persitence
7168 * lib/poly_conn.[hc] lib/polyshape.[hc] : allow to set
7169 'poly_points' via StdProp api
7170 * lib/neworth_conn.h : don't rely on OrthConn and
7171 NewOrtConn having the same struct offsets
7173 * lib/properties.h : introduce PROP_FLAG_WIDGET_ONLY
7174 to help separating 'useful' properies - in terms of
7177 * objects/custom/custom_object.c
7179 add the missing prop_desc_list_calculate_quarks to
7180 all the *_describe_props()
7182 * objects/standard/beziergon.c objects/standard/bezier.c :
7183 explicit initializtion of default_user_data
7184 * objects/standard/polygon.c objects/standard/polyline.c :
7185 Same here. Also use POLY<CONN|SHAPE>_COMMON_PROPERTIES
7187 * plug-ins/python/diamodule.c : implement dia.register_import
7189 * plug-ins/python/makefile.msc : need to link with Pango
7190 for pango_color_parse()
7192 * plug-ins/python/pydia-property.c : add a bunch of type
7193 conversions to PyDiaProperty_ApllyToObject()
7195 * plug-ins/python/diasvg_import.py : (new file) which currently
7196 is mainly a stress test for PyDia but for some files already
7197 produces better results than svg-import.c
7199 2003-05-06 Lars Clausen <lrclause@cs.uiuc.edu>
7201 * objects/UML/uml.c (uml_get_operation_string): Avoid ':' on
7202 type-less operations.
7204 003-05-03 Hasbullah Bin Pit <sebol@ikhlas.com>
7206 * configure.in(ALL_LINGUAS): Added "ms".
7208 2003-05-01 Lars Clausen <lrclause@cs.uiuc.edu>
7210 * plug-ins/xslt/xslt.c (xslt_ok):
7211 * plug-ins/shape/shape-export.c (new_shape_renderer):
7212 * plug-ins/svg/render_svg.c (new_svg_renderer):
7213 * plug-ins/hpgl/hpgl.c (export_data):
7214 * plug-ins/dxf/dxf-export.c (export_dxf):
7215 * plug-ins/metapost/render_metapost.c (export_metapost):
7216 * plug-ins/pstricks/render_pstricks.c (export_pstricks):
7217 * plug-ins/xfig/xfig-export.c (export_fig):
7218 * plug-ins/wpg/wpg.c (export_data):
7219 * plug-ins/cgm/cgm.c (export_cgm):
7220 * app/render_eps.c (export_eps):
7221 * app/export_png.c (export_png_ok):
7222 * app/load_save.c (diagram_data_save): Adding and standardizing
7223 output file error messages to include fopen error message.
7225 2003-05-01 Steffen Macke <sdteffen@web.de>
7227 * app/persistence.c: do not use unistd.h for MSVC build
7229 2003-04-30 Lars Clausen <lrclause@cs.uiuc.edu>
7231 * sheets/Assorted.sheet.in
7232 * sheets/Circuit.sheet.in
7233 * sheets/Contact.sheet.in
7234 * sheets/EML.sheet.in
7235 * sheets/ER.sheet.in
7236 * sheets/Electric.sheet.in
7237 * sheets/FS.sheet.in
7238 * sheets/Flowchart.sheet.in
7239 * sheets/GRAFCET.sheet.in
7240 * sheets/Logic.sheet.in
7241 * sheets/MSE.sheet.in
7242 * sheets/Misc.sheet.in
7243 * sheets/Pneumatic.sheet.in
7244 * sheets/SADT.sheet.in
7245 * sheets/SDL.sheet.in
7246 * sheets/UML.sheet.in
7247 * sheets/chronogram.sheet.in
7248 * sheets/ciscohub.sheet.in
7249 * sheets/ciscomisc.sheet.in
7250 * sheets/cisconetwork.sheet.in
7251 * sheets/ciscorouter.sheet.in
7252 * sheets/civil.sheet.in
7253 * sheets/network.sheet.in
7254 * sheets/sybase.sheet.in:
7255 Patch from Jan-Willem Harmanny <jwharmanny@zeelandnet.nl>
7256 standardizes shape descriptions to use no articles, no 'create
7259 * app/interface.c (tool_data): Standard objects follow same
7262 2003-04-29 Lars Clausen <lrclause@cs.uiuc.edu>
7264 * app/color_area.c (color_area_edit): More informative title on
7265 color selection dialog.
7267 * app/disp_callbacks.c (ddisplay_drop_object): Update menu
7268 sensitivity when dropping object in. Also reset tool to pointer.
7270 * objects/flowchart/diamond.c (diamond_update_data):
7271 * objects/flowchart/parallelogram.c (pgram_update_data): Added
7272 left and right alignment options.
7274 2003-04-28 Lars Clausen <lrclause@cs.uiuc.edu>
7276 * objects/flowchart/box.c: Added left and right alignment options.
7278 2003-04-26 Lars Clausen <lrclause@cs.uiuc.edu>
7280 * app/persistence.c (persistence_load): Test existence of
7281 persistence file before trying to open it.
7283 2003-04-25 Lars Clausen <lrclause@cs.uiuc.edu>
7285 * app/properties.c: Escape now closes properties dialogs.
7287 2003-04-25 Hans Breuer <hans@breuer.org>
7289 * app/config.h.win32 : bump version to 0.91+cvs
7291 * app/makefile.msc lib/makefile.msc lib/libdia.def : updated
7293 * lib/dia_dirs.c : G_OS_WIN32: #define mkdir(s,a) _mkdir(s)
7295 * app/commands.c : don't leak "netscape" if getenv("BROWSER")
7298 * app/presistence.c : need to #include "dia_xml_libxml.h"
7301 * app/layer_dialog.c : make delayed creation work by protecting
7302 all non static layer_dialog_*() with :
7303 if (layer_dialog == NULL || layer_dialog->dialog == NULL)
7304 create_layer_dialog();
7305 * app/app_procs.c : removed /* create_layer_dialog(); */
7307 * objects/uml/association.c : give it a minimal StdProp
7308 implementation to fix bug #108896
7309 * lib/object_defaults.c : don't try to copy props if there
7310 is no obj->ops->describe_props
7312 2003-04-24 Lars Clausen <lrclause@cs.uiuc.edu>
7314 * objects/standard/image.c (image_create):
7315 * objects/standard/ellipse.c (ellipse_create):
7316 * objects/standard/box.c (box_create):
7317 * objects/flowchart/ellipse.c (ellipse_create):
7318 * objects/flowchart/diamond.c (diamond_create):
7319 * objects/flowchart/box.c (box_create):
7320 * objects/custom/custom_object.c (custom_create):
7321 * objects/ER/relationship.c (relationship_create):
7322 * objects/ER/entity.c (entity_create):
7323 * objects/ER/attribute.c (attribute_create): Initialize
7324 elem->height to DEFAULT_HEIGHT instead of DEFAULT_WIDTH.
7326 * lib/dia_svg.c (dia_svg_parse_style): Added case to set center
7330 * plug-ins/Makefile.am:
7331 * plug-ins/xslt/Makefile.am:
7332 * plug-ins/xslt/xslt.c (dia_plugin_init):
7333 Patch from Götz Waschk <waschk@informatik.uni-rostock.de> uses
7334 automake-style if to only include xslt dir when needed. Works
7335 with automake 1.4 and up, at least.
7337 2003-04-22 Lars Clausen <lrclause@cs.uiuc.edu>
7339 * lib/diasvgrenderer.c (draw_string):
7340 * lib/dia_svg.c (dia_svg_parse_style): Use
7341 text-anchor:(start|middle|end).
7343 * lib/diasvgrenderer.c (draw_polygon, fill_polygon): Use svg
7344 polygon rather than polyline & avoid missing line pieces.
7345 (get_draw_style): Set fill-opacity to 0 on draw_style to avoid
7346 black-filled things.
7348 2003-04-21 Lars Clausen <lrclause@cs.uiuc.edu>
7350 * app/persistence.c (persistence_load): Check that persistence
7351 file exists before trying to read it.
7352 (persistence_update_window): Removed printf.
7354 * objects/GRAFCET/step.c: Don't copy defaults for name and id.
7356 * lib/autoroute.c: Take badness into the layouters again, as some
7357 of them know they can do things that are pretty but would be
7358 counted as ugly by the default calculation.
7360 * objects/UML/large_package.c: Shrink package name box when no
7361 stereotype is present.
7363 * lib/orth_conn.h (ORTHCONN_COMMON_MENUS):
7364 * lib/orth_conn.c: Added object menu item for autorouting.
7366 * objects/FS/flow-ortho.c (orthflow_get_object_menu):
7367 Autorouting, plus set initial dragging handle to be the end, not
7369 (orthflow_draw): Flipped arrow place to be at the end, as
7370 originally intended (got lost in arrow update).
7372 * objects/standard/zigzagline.c (zigzagline_get_object_menu):
7373 * objects/UML/dependency.c (dependency_get_object_menu):
7374 * objects/UML/association.c (association_get_object_menu):
7375 * objects/UML/realizes.c (realizes_get_object_menu):
7376 * objects/SADT/arrow.c (sadtarrow_get_object_menu):
7377 * objects/GRAFCET/vector.c (arc_get_object_menu):
7378 * objects/ER/participation.c (participation_get_object_menu):
7379 * objects/EML/instantiation.c (instantiation_get_object_menu):
7380 * objects/UML/generalization.c (generalization_get_object_menu):
7381 * objects/EML/interaction-ortho.c (interaction_ortho_get_object_menu):
7382 Autorouting setup (currently disabled for SADT/arrow).
7384 2003-04-19 Lars Clausen <lrclause@cs.uiuc.edu>
7386 * lib/autoroute.c: Removed printfs.
7389 * lib/autoroute.[ch] (autoroute_layout_orthconn): Handle
7390 non-connected orthconns too.
7392 2003-04-18 Lars Clausen <lrclause@cs.uiuc.edu>
7395 * lib/orth_conn.c: Function to set autorouting on/off, use
7396 autorouting in move_handle (turns off when a middle handle is
7397 moved), added to standard orthconn props.
7399 * app/disp_callbacks.c (create_object_menu, popup_object_menu):
7400 Stopped signal emission for check menu items being set to on/off.
7402 * objects/standard/zigzagline.c: Added autorouting object menu item.
7404 * lib/autoroute.c: Added last cases of autoroute layout, fixed
7405 floating point comparison bug, cleaned up layouters, tweaked
7406 badness to allow kinks.
7408 2003-04-17 Lars Clausen <lrclause@cs.uiuc.edu>
7410 * lib/connectionpoint.h: Changed DIR_* macros to go around the
7413 * lib/orth_conn.[ch] (orthconn_set_points): New function to set all
7415 * objects/standard/zigzagline.c (zigzagline_move_handle): Removed
7416 old cruft, added call to autoroute (currently cannot be turned
7417 off). Need to check what undo thinks about this.
7418 * lib/autoroute.[ch]: Fairly working simple layout.
7420 * lib/Makefile.am (libdia_la_SOURCES): Added autoroute files.
7421 * lib/autoroute.[ch]: Start of proper autorouting functionality.
7423 2003-04-10 Lars Clausen <lrclause@cs.uiuc.edu>
7425 * lib/prop_widgets.c: Show labels on ListProp.
7427 2003-04-11 Steffen Macke <sdteffen@web.de>
7429 * doc/en/dia-manual.xml: removed reference of non-existing authors
7431 * doc/en/usage-objects-selecting: commented out misleading section
7434 2003-04-10 Lars Clausen <lrclause@cs.uiuc.edu>
7436 * app/app_procs.c (app_init): Layer window now opened at startup
7439 * lib/prop_widgets.c: Show labels on ListProp.
7441 2003-04-09 Steffen Macke <sdteffen@web.de>
7443 * doc/en/*.sgml: removed files
7444 * doc/en/*.xml: added files
7445 * doc/en/Makefile.am: switched to XML DocBook
7447 2003-04-09 Lars Clausen <lrclause@cs.uiuc.edu>
7449 * plug-ins/xslt/xslt.c (dia_plugin_init):
7450 * configure.in: Added --with-xslt-prefix to allow other XSLT
7451 placements than /usr/lib.
7453 2003-04-09 Steffen Macke <sdteffen@web.de>
7455 * lib/makefile.mingw: updated to include latest files, including
7457 * lib/geometry.h: don't define isinf and finite for mingw gcc build
7459 2003-04-08 Lars Clausen <lrclause@cs.uiuc.edu>
7461 * app/persistence.h:
7462 * app/persistence.c (persistence_register_window_create):
7463 * app/app_procs.c (app_init):
7464 Register window function that doesn't create the window unless it
7465 should be open. Other windows should move to this, so startup
7466 speed can be reduced.
7468 * app/persistence.h: Removed call prototype for update_window, now
7470 * app/persistence.c (persistence_register_window): A number of
7471 fixes. Doesn't forget position when window is closed. Now
7472 actually loads prefs.
7474 * app/layer_dialog.c (create_layer_dialog): Removed extraneous
7477 * app/preferences.c (prefs_data):
7478 * app/diagram_tree_window.h:
7479 * app/diagram_tree_window.c: Added persistence registering.
7480 Removed prefs items storing size and openness.
7482 * app/sheets_dialog.c (create_sheets_main_dialog): Added
7483 persistence registering.
7485 * app/Makefile.am (dia_core_files): Added persistence files.
7488 * lib/dia_dirs.c (dia_config_ensure_dir): New function to ensure
7489 that dirs are present.
7491 * app/app_procs.c (app_init): Loads persistent values on startup.
7492 (app_exit): Saves persistent values on exit.
7494 * app/layer_dialog.c (create_layer_dialog): Registers the layer
7495 window for persistence.
7497 * app/persistence.[ch]: New files handling various kinds of
7500 2003-04-04 Lars Clausen <lrclause@cs.uiuc.edu>
7502 * lib/arrows.c: Adjusted arrow head spacing, more systematic arrow
7503 head spacing calculations. Added half-circle arrow from Matthieu
7504 Sozeau <mattam@netcourrier.com>
7506 2003-04-03 Lars Clausen <lrclause@cs.uiuc.edu>
7508 * app/app_procs.c (app_init): Moved layer dialog init to allow
7509 tooltips to be initialized.
7511 * app/interface.c (create_display_shell): More tooltips.
7513 * app/linewidth_area.c (linewidth_area_create)
7514 (linewidth_area_events):
7515 * app/color_area.c (color_area_events, color_area_create):
7516 Made tooltips work by embedding drawing_area in event_box.
7518 * app/interface.c (create_display_shell,
7519 (create_lineprops_area, create_color_area): Added a few tooltips.
7521 2003-04-01 Lars Clausen <lrclause@cs.uiuc.edu>
7523 * app/pixmaps/off-grid.xpm:
7524 * app/pixmaps/on-grid.xpm:
7525 * app/Makefile.am (EXTRA_DIST): Added snap to grid icons.
7528 * app/commands.c (view_snap_to_grid_callback):
7529 * app/display.c (ddisplay_set_snap_to_grid)
7530 (update_snap_grid_status):
7531 * app/interface.c (create_display_shell, grid_toggle_snap):
7532 Added snap-to-grid status button.
7534 2003-03-31 Lars Clausen <lrclause@cs.uiuc.edu>
7536 * app/app_procs.c (app_init): Create a new diagram if a file on
7537 the command line isn't found.
7539 2003-03-17 Lars Clausen <lrclause@cs.uiuc.edu>
7541 * lib/dialibartrenderer.c (draw_string): Correct color handling
7544 2003-03-14 Lars Clausen <lrclause@cs.uiuc.edu>
7547 * doc/en/dia-manual.sgml:
7548 * doc/pl/dia-manual.sgml:
7550 * dia.spec (Release):
7551 Version 0.91 is here!
7553 2003-02-10 Steffen Macke <sdteffen@web.de>
7555 * plug-ins/wmf/wmf.cpp: patch from Ken Tsukahara
7556 <ken.tsukahara@tmt-d.co.jp>, fixes windows printing and WMF export of
7557 non-ANSI characters, closes #107980
7559 2003-03-04 Lars Clausen <lrclause@cs.uiuc.edu>
7563 * dia.spec (Release):
7564 * doc/en/dia-manual.sgml: Upping to pre6.
7566 * configure.in: Missing comma broke HAVE_IEEEFP_H test.
7568 * app/lineprops_area.c (dia_arrow_chooser_new): Fixing bug
7569 #107511: Make arrow selector for correct arrow type.
7571 2003-03-03 Lars Clausen <lrclause@cs.uiuc.edu>
7573 * shapes/Circuit/Makefile.am (SHAPES): Added hjumper.png to
7576 2003-03-02 Lars Clausen <lrclause@cs.uiuc.edu>
7578 * doc/en/dia-manual.sgml:
7581 * dia.spec (Release): Upping to pre5.
7583 * configure.in: Add freetype-config derived libs to the
7584 AC_CHECK_LIB statement for freetype.
7586 2003-02-28 Hans Breuer <hans@breuer.org>
7588 [fix for bug #107203]
7590 * lib/diarenderer.c : add warning 'implementation'
7591 for fill_rect to avoid crashing with a renderer
7592 which does not implement this required function.
7594 * plug-ins/dxf/dxf-export.c : provide - still empty -
7595 'implementations' for fill_rect and fill_polygon
7596 to suppress the above warnings. Now it works like
7599 2003-02-28 Steffen Macke <sdteffen@web.de>
7601 * samples/all_objects.dia: New sheet containing all dia shapes
7602 and objects; one layer per sheet
7604 2003-02-28 Lars Clausen <lrclause@cs.uiuc.edu>
7606 * lib/prop_text.c (multistringprop_get_widget,
7607 multistringprop_reset_widget, multistringprop_set_from_widget):
7608 Now uses GtkTextView instead of deprecated stuff, and also works:)
7610 * configure.in: Slightly more informative error message for isinf.
7612 * dia.spec (Requires): Require libxml2 rather than libxml.
7614 2003-02-28 Steffen Macke <sdteffen@web.de>
7616 * shapes/Circuit/hjumper.png:
7617 * shapes/Circuit/hjumper.shape: added missing icon for horizontal
7620 2003-02-26 Lars Clausen <lrclause@cs.uiuc.edu>
7622 * doc/en/dia-manual.sgml:
7624 * dia.spec (Release):
7625 * NEWS: New prerelease 0.91pre4, two important fixes.
7627 2003-02-25 Lars Clausen <lrclause@cs.uiuc.edu>
7629 * plug-ins/xslt/Makefile.am (EXTRA_DIST): Also dist
7632 * app/commands.c (help_manual_callback): More correct URL for help
7633 page (include file://, was broken on Dillo without it).
7635 2003-02-24 Lars Clausen <lrclause@cs.uiuc.edu>
7637 * app/disp_callbacks.c: Set modifed when text is changed.
7639 * app/modify_tool.c (modify_button_release): Allow undo for moving
7642 2003-02-16 Lars Clausen <lrclause@cs.uiuc.edu>
7645 * doc/en/dia-manual.sgml:
7647 * configure.in: New prerelease with important bugfix.
7648 * shapes/network/digitizing_board.png:
7649 * shapes/network/plotter.png: Re-adding with -kb.
7651 2003-02-17 Abel Cheung <maddog@linux.org.hk>
7653 * app/app_procs.c (app_init): Add comment for translators.
7655 2003-02-16 Lars Clausen <lrclause@cs.uiuc.edu>
7657 * lib/filter.c (filter_register_import, filter_register_export):
7658 Don't accept filters with NULL description.
7660 * lib/plug-ins.c (dia_plugin_load): Fail if there's no description
7661 (as we assume the description is available in other places).
7663 2003-02-15 Lars Clausen <lrclause@cs.uiuc.edu>
7665 * app/disp_callbacks.c (ddisplay_vsb_update, ddisplay_hsb_update):
7666 * app/display.c (ddisplay_resize_canvas): Use
7667 ddisplay_add_update_all().
7668 (ddisplay_add_update_all): Free display and update lists when
7669 doing update_all, as they'll be regenerated immediately to cover
7670 all visible area. Fixes bug #106165, crash when resizing. This
7671 appears to be the original AA crash bug, believed long extinct.
7673 2003-02-13 Lars Clausen <lrclause@cs.uiuc.edu>
7675 * app/commands.c (help_manual_callback): Use file: protocol for
7678 * plug-ins/xslt/.cvsignore: Ignore .o files, please.
7680 * plug-ins/xslt/stylesheets: Removed old-style config file.
7682 * plug-ins/xslt/stylesheets.xml.in: New XML-based config file.
7684 * plug-ins/xslt/Makefile.am:
7685 * plug-ins/xslt/xslt.c: Applied patch from Matthieu, improved path
7686 handling (no more DIA_PLUGIN_PATH).
7688 2003-02-11 Lars Clausen <lrclause@cs.uiuc.edu>
7690 * plug-ins/svg/render_svg.c:
7691 * lib/diasvgrenderer.c: Fixed numeric localized output issues.
7693 2003-02-10 Lars Clausen <lrclause@cs.uiuc.edu>
7695 * objects/SADT/arrow.c (sadtarrow_draw): Clamp cosa, cosb to
7696 [-1.0, 1.0]. Shouldn't be necessary, but in some cases the
7697 side of the triangle is longer than the hypotenuse. Rounding
7700 2003-02-09 Lars Clausen <lrclause@cs.uiuc.edu>
7704 * doc/en/dia-manual.sgml: Update for pre2.
7706 * app/menus.c (display_menu_items): Fixed wrongly place separators.
7708 * objects/flowchart/box.c (box_update_data): Applied patch from
7709 Eivind Tagseth <eivind-gnome@multinet.no> to allow resize (with
7712 * app/paginate_psprint.c (print_page): Set paper name, so it
7713 convinces ps printers to use to right size.
7715 2003-02-07 Lars Clausen <lrclause@cs.uiuc.edu>
7717 * app/properties.c (properties_show): Hide the dialog if the
7718 object is NULL (get rid of 'no properties' randomly popping up).
7720 2003-02-06 Lars Clausen <lrclause@cs.uiuc.edu>
7722 * plug-ins/pixbuf/pixbuf.c (export_data): Adjust width and height
7723 for diagrams not starting at origo.
7725 2003-02-05 Lars Clausen <lrclause@cs.uiuc.edu>
7727 * dia.spec (BuildRequires): Use libxml2-devel.
7729 * plug-ins/pixbuf/Makefile.am: Added to CVS.
7731 * RELEASE-PROCESS: Note on RPM version numbers.
7733 * app/interface.c (create_display_shell): Don't set as toolbar
7734 under Unix, either. Especially not the diagram shell. It removes
7735 it from the taskbar and makes it unresizable, always-on-top with
7736 OpenBox. TOOLBAR != TOOLBOX. Setting toolbox to the only
7737 appropriate thing, UTILITY, is not good either, you lose resizing
7738 and minimizing/maximizing under OpenBox.
7740 * app/menus.c (display_menu_items): Set delete item to use Delete.
7742 2003-02-04 Lars Clausen <lrclause@cs.uiuc.edu>
7744 * dia.spec (BuildRequires, Requires): Updated for Gtk2
7747 * app/disp_callbacks.c (ddisplay_canvas_events): Only add a
7748 display flush when getting focus in, or we may get an update after
7749 the diagram has been destroyed in some cases. Fixes bug #105221.
7751 * plug-ins/xfig/xfig-import.c: Notes on the splines used by XFig.
7753 * lib/diarenderer.c: Notes on the basis matrix for our beziers.
7755 * app/app_procs.c (app_init): Fixed missing popt context for Gnome
7756 - gnome-compiled Dia will now read files specified on the command line.
7758 2003-02-03 Lars Clausen <lrclause@cs.uiuc.edu>
7760 * INSTALL (REQUIREMENTS): Updated requirements section.
7762 * configure.in: Better finite() check from MÃ¥rten Svantesson
7763 <f95-msv@nada.kth.se>. Doesn't seem to generate strange dangly
7766 2003-02-03 Lars Clausen <lrclause@cs.uiuc.edu>
7768 * plug-ins/xfig/xfig-import.c: Notes on spline conversions.
7770 * app/app_procs.c (debug_break): Added some code to avoid
7771 over-eager optimizations removing the call. Surely there's a
7772 nicer way, but I'm not sure how.
7774 * app/diapsft2renderer.c (draw_bezier_outline): Removed paps relic
7775 that set text to black.
7777 2003-02-02 Lars Clausen <lrclause@cs.uiuc.edu>
7779 * NEWS: Mention of Twiki as doc source for Python.
7781 * plug-ins/pixbuf/pixbuf.c: Export with pixbuf if
7782 libart/libpng is not available. Later when we have a way of
7783 letting the user pick options in the file select dialog we shall
7784 allow the choice when applicable.
7786 2003-02-02 Steffen Macke <sdteffen@web.de>
7788 * doc/en/usage-loadsave.sgml:
7789 * doc/en/usage-objects.sgml: patch from
7790 James K. Lowden <jklowden@schemamania.org> to fix
7793 2003-02-01 Lars Clausen <lrclause@cs.uiuc.edu>
7795 * plug-ins/Makefile.am (SUBDIRS):
7796 * plug-ins/pixbuf/pixbuf.c:
7797 * plug-ins/pixbuf/Makefile.am:
7799 Added pixbuf plugin to Makefile.am, but for import only. PNG
7800 export handled by libart, which is better. JPG export is
7801 discouraged. BMP is not much used on Unix. Next release will
7802 integrate libart to allow all outputs.
7804 2003-02-01 Hans Breuer <hans@breuer.org>
7806 * app/preferences.c :
7808 the last two dialogs with 'old' button order finally
7809 are converted to gtk2, no GnomeDialog in all of Dia
7812 2003-02-01 Hans Breuer <hans@breuer.org>
7814 * app/filedlg.c : don't try to use a button as
7815 'overwrite-file-dialog'-parent, use the FileSelDialog
7818 * plug-ins/pixbuf/pixbuf.c : make it work with
7819 system-visual-depth < 24. Remove 'bmp' from output
7820 format extensions, it just was wishful thinking.
7822 * plug-ins/python/Makefile.am : added the four new python
7823 plug-ins mentioned below to pyplugin_DATA and EXTRA_DIST
7825 2003-02-01 Hans Breuer <hans@breuer.org>
7827 * NEWS : updated content beside dependencies
7829 2003-02-01 Hans Breuer <hans@breuer.org>
7831 * lib/arrow.h : arrow_types needs to be declared as DIAVAR
7832 to make it useable across DLL boundaries
7833 * app/lineprops_area.c : same code to access arrow_types
7836 * objects/UML/class.c : the non empty string is e.g.
7837 comment != NULL && comment[0] != '\0'
7838 * objects/UML/uml.c : same here, don't bother with
7839 empty operation stereotypes
7841 2003-02-01 Steffen Macke <sdteffen@web.de>
7843 * app/lineprops_area.c: latest changes do not work on
7844 windows, using old code without tooltips
7845 * makefile.msc: fixed copying of wmf.dll
7846 * plug-ins/makefile.msc:
7848 * lib/makefile.msc: now linking libintl
7849 * config.h.win32: enabling native language support
7851 2003-01-31 Lars Clausen <lrclause@cs.uiuc.edu>
7853 * plug-ins/xslt/Makefile.am (libxslt_filter_la_LDFLAGS): Removed
7854 -ldl and -lglib. May or may not work on windows...awaiting verdict.
7856 2003-01-31 Daniel Yacob <locales@geez.org>
7858 * configure.in: Added am (Amharic) to ALL_LINGUAS.
7860 2003-01-31 Steffen Macke <sdteffen@web.de>
7862 * objects/UML/class.c (umlclass_calculate_data): fixed crash
7863 when comments were visible, no class comment available and
7866 2003-01-31 Lars Clausen <lrclause@cs.uiuc.edu>
7868 * RELEASE-PROCESS: Updated to fit new install-module syntax.
7869 * Prerelease 0.91-pre1 released on a suspecting public. Tagging
7872 2003-01-30 Lars Clausen <lrclause@cs.uiuc.edu>
7878 Prerelease version changes, version 0.91-pre1.
7880 * app/sheets_dialog_callbacks.h:
7881 * app/sheets_dialog_callbacks.c:
7882 * app/sheets_dialog.c (create_sheets_main_dialog):
7883 * app/sheets.c (sheets_dialog_create): More destroy stuff. Trying
7884 to handle destruction of main dialog cleanly, but it's a mess.
7886 * configure.in: Downgraded ieeefp test to make it not produce
7889 * lib/widgets.c (dia_arrow_selector_set_arrow):
7890 (dia_line_style_selector_set_linestyle): Select menu dot
7893 * lib/arrows.c (calculate_arrow_point): Fix of wrong arrow
7894 adjustment for diamondheads.
7896 * lib/plug-ins.c (dia_plugin_load): Fixed typo.
7898 * app/properties.c (create_dialog): Destroy properties dialog and
7901 * app/sheets_dialog_callbacks.c
7902 (on_sheets_dialog_button_edit_clicked): Only create a new dialog
7903 if the old one is destroyed.
7905 2003-01-29 Lars Clausen <lrclause@cs.uiuc.edu>
7907 * app/export_png.c (export_png_ok): Added info on resolution.
7908 Should (next release) improve export dialog to allow setting
7909 resolution instead of pixels.
7911 * app/lineprops_area.c (dia_arrow_chooser_new): Use menudesc list
7912 to generate arrowheads as well as tooltips.
7914 * lib/arrows.c: Added hollow diamond to menudesc list.
7917 * lib/widgets.[ch]: Moved arrow name list into arrows.[ch] to
7918 unify with rendered menu.
7920 * lib/diarenderer.c (draw_line_with_arrows)
7921 (draw_polyline_with_arrows, draw_arc_with_arrows)
7922 (draw_bezier_with_arrows): Fixed linestyle change bug (#104488)
7923 without changing renderer API. Thanks to David Scherba for
7924 providing inspiration.
7926 2003-01-28 Lars Clausen <lrclause@cs.uiuc.edu>
7928 * app/interface.c (create_display_shell):
7929 * app/display.h: Patching from Hubert Figuiere
7930 <hfiguiere@teaser.fr>: Better types for menu bar widgets, and
7933 2003-01-26 Lars Clausen <lrclause@cs.uiuc.edu>
7935 * app/defaults.c (defaults_show): Fixed defaults closing bug.
7936 Thanks to Hans for pointing it out.
7938 2003-01-25 Hans Breuer <hans@breuer.org>
7940 * app/commands.c : don't warn about crashing libart renderer
7941 on win32. It simply doesn't render text anymore :-(
7943 * app/filedlg.c : use GtkMessageDialog for 'file overwrite'
7945 * objects/UML/class.c : don't access umlclass->properties_dialog
7946 after calling gtk_widget_destroy(umlclass->properties_dialog->dialog)
7947 which sets the former to NULL by destroy_properties_dialog() callback.
7949 * plug-ins/wmf/wmf.cpp : use dia_image_rowstride()
7951 * plug-ins/python/pydia-font.c : fix PyDiaFont_GetAttr()
7953 * plug-ins/python/pydia-image.c : add image.uri member
7954 not only useful for SVG rendering
7956 * plug-ins/python/diasvg.py : (new file) a more advanced
7957 example. A full blown SVG Renderer, currently only
7958 registered for .svgz
7960 * plug-ins/python/export-object.py : write text props
7962 * plug-ins/python/debug_objects.py : write prop.type and
7965 2003-01-25 Lars Clausen <lrclause@cs.uiuc.edu>
7967 * objects/UML/association.c (association_update_data): Better
7968 bounding box for assoc with arrows.
7970 * lib/properties.h: New flag for properties with multiple values
7973 * app/lineprops_area.c (dia_arrow_chooser_dialog_show): Correct
7974 arrow updating in dialog. Was broken due to changes from destroy
7977 * app/commands.c (view_aa_callback): AA warning only for Windows
7978 -- I trust the Unix side well enough.
7980 * app/render_libart.c (get_text_width):
7981 * lib/dialibartrenderer.h (struct _DiaLibartRenderer): Font and
7982 font height can be taken from parent instance.
7984 * lib/dialibartrenderer.c (dia_libart_renderer_class_init)
7985 (get_text_width): Proper cursor positioning for libart renderer.
7986 Ought to have a DiaInteractiveRenderer that these two can inherit
7987 from, that knows about transform.
7989 2003-01-25 Steffen Macke <sdteffen@web.de>
7991 * plug-ins/xslt/xslt.h: don't use dlfcn.h on win32. XSLT
7992 plug-in still not working on win32
7994 2003-01-24 Lars Clausen <lrclause@cs.uiuc.edu>
7996 * app/disp_callbacks.c (ddisplay_canvas_events): Moved
7997 gdk_window_get_pointer to avoid destroy crash. Simpler than I
8000 2003-01-23 Lars Clausen <lrclause@cs.uiuc.edu>
8002 * app/app_procs.c (app_init): Run gtk_init before popt so we don't
8003 bail out on gtk options.
8005 * lib/message.c (gtk_message_internal): Better handling of destroy
8008 2003-01-22 Lars Clausen <lrclause@cs.uiuc.edu>
8010 * app/color_area.c (color_area_edit):
8011 * lib/widgets.c (dia_file_selector_browse_pressed)
8012 (dia_color_selector_pressed):
8013 * app/plugin-manager.c (get_plugin_manager):
8014 * app/filedlg.c (file_open_callback, file_save_as_callback)
8015 (file_export_callback):
8016 * app/diagram_tree_window.c (diagram_tree_window_new): Correct
8017 handling of destroy event.
8019 2003-01-22 Alan Horkan <horkana@tcd.ie>
8021 * app/commands.c (file_new_callback): Changed Untitled to Diagram
8024 2003-01-21 Lars Clausen <lrclause@cs.uiuc.edu>
8026 * app/preferences.c (prefs_create_dialog):
8027 * app/linewidth_area.c (linewidth_create_dialog):
8028 * app/lineprops_area.c (dia_arrow_chooser_dialog_show):
8029 * app/layer_dialog.c (create_layer_dialog)
8030 (layer_dialog_edit_layer): Correct handling of destroy signal.
8032 * app/diapsft2renderer.c (set_font): Adjust silly random factor
8033 for change in font.c
8035 * lib/widgets.c: Avoid warning when font menu file doesn't exist.
8037 * lib/font.c (dia_font_build_layout): Let's all use the same weird
8040 * app/lineprops_area.c (dia_arrow_chooser_dialog_show):
8041 * app/layer_dialog.c (create_layer_dialog)
8042 (layer_dialog_edit_layer):
8043 * app/filedlg.c (file_open_callback, file_save_as_callback)
8044 (file_export_callback):
8045 * app/dia-props.c (create_diagram_properties_dialog):
8046 * app/defaults.c (defaults_dialog_destroyed):
8047 * app/color_area.c (color_area_edit): Dialog destroy event handling.
8049 2003-01-19 Lars Clausen <lrclause@cs.uiuc.edu>
8051 * app/defaults.c (defaults_dialog_destroyed): Reset cache when
8052 defaults dialog destroyed.
8054 2003-01-19 Steffen Macke <sdteffen@web.de>
8056 * objects/makefile.msc: added bondgraph
8057 * plug-ins/makefile.msc: added GDK_PIXBUF_LIBS in order
8058 to compile pixbuf.dll
8059 * makefile.msc: copying all objects and dlls now
8061 2003-01-19 Hans Breuer <hans@breuer.org>
8063 * app/diagram.[hc] : provide dia_open_diagrams(), make
8064 open_diagrams variable static
8065 * app/dia.def : export it (to be used by PyDia)
8066 * app/app_procs.c app/autosave.c app/diagram_tree_window.c
8067 app/display.c app/dynamic_refresh.c app/layer_dialog.c
8068 app/load_save.c : make use of dia_open_diagrams()
8070 * app/interface.c : don't set GDK_WINDOW_TYPE_HINT_TOOLBAR
8071 on win32. It removes the diagram window from the taskbar and
8072 shrinks it's window title to toolbar style (newest gtk2.2 cvs)
8074 * app/menus.c : add '...' to menu entries where a dialog
8076 * app/recent_files.c app/dia_embedd.c : reflect the above in
8077 menus_get_item_from_path() calls
8079 * lib/libdia.def : add dia_image_rgba_data
8081 * lib/properties.h lib/prop_text.[hc] : add new property
8083 * objects/UML/class.[hc] object/UML/class_dialog.c : use
8084 StringList for attributes_strings and operations_strings to
8085 make this calculated data accessible via the Property API
8087 * plug-ins/python/diamodule.c : use dia_open_diagrams() and
8088 provide dia.new() to create a new diagram, dia.registered_types()
8089 to get on Dia's type registry, dia.message() for simple dialogs
8091 * plug-ins/python/pydia-diagram.c : implement DiaDiagram.display()
8092 to create a new display from a diagram. Let diagram.extents and
8093 diagram.bg_color return the same types as in diagramdata.*
8095 * plug-ins/python/pydia-geometry.c : add a read-only
8096 'sequence interface' to DiaPoint and DiaRectangle
8098 * plug-ins/python/pydia-property.c : allow to get on StringList
8101 * plug-ins/python/pydia-render.c : fix typo to make it compile
8103 * plug-ins/python/python-startup.py : removed 'import pygtk'
8104 again. This file does not need any gtk UI, and some python
8105 plug-ins don't do either
8107 * plug-ins/python/gtkcons.py : ported to GTK2 interface, now
8108 it should actually work as intended again
8110 * plug-ins/python/group_props.py : (new file) a prototype for
8111 one the most requested features: Change properties of selected
8112 objects in one step. Requires pygtk.
8114 * plug-ins/python/select_by.py : (new file) select objects by
8115 common properties. Requires pygtk.
8117 [Start of 'PyDia Self Documentation Series']
8119 * plug-ins/python/pydiadoc.py : (new file) generates a new
8120 diagram which contains all objects of dir(dia)
8122 * plug-ins/python/otypes.py : (new file) generates a new diagram
8123 which contains all the currently registered object types sorted
8124 by their containing package
8126 2003-01-18 Lars Clausen <lrclause@cs.uiuc.edu>
8128 * configure.in: Added check for Pango >= 1.1.5, which appears to
8129 be enough to have text work.
8130 (INTLOBJS): Added dummy subst cause gettext doesn't always seem to
8131 do it. AC_SUBST should be idempotent, though.
8133 2003-01-17 Lars Clausen <lrclause@cs.uiuc.edu>
8135 * configure.in (HAVE_FREETYPE): Better test for freetype version
8137 Now actually sets HAVE_IEEEFP_H, needed for Solaris.
8139 * lib/font.c: Renamed global_size_one to global_zoom_factor to
8140 avoid confusion, and added comment. Set scale factor in
8141 dia_font_build_layout to 1.0 for Unix side. This fixes at least
8142 my weird scaling problems. Fonts are now of the expectable size,
8143 i.e. the space between lines at size 1.0 is 1.0. If we want a
8144 compatibility fix, we should scale fonts by about 1/0.75 from 0.90
8145 diagrams, though there will always be differences.
8147 2003-01-15 Lars Clausen <lrclause@cs.uiuc.edu>
8149 * plug-ins/python/python-startup.py:
8150 * plug-ins/python/gtkcons.py: Require gtk 2.0 for pygtk
8152 * plug-ins/python/python.c (dia_plugin_init): Added warning
8153 message for missing startup file.
8155 * lib/dialibartrenderer.c (draw_image): Alpha rendering! Yay!
8157 * lib/dia_image.c (dia_image_rgb_data):
8158 * app/diapsrenderer.c (draw_image): Fixed rowstride problems
8159 involving EPS. Can't do transparency in EPS yet.
8162 * lib/dia_image.c (dia_image_rgba_data): New function to get RGBA
8163 data as one chunk. Documentation for the RGB data getting funcs.
8164 (dia_image_rgb_data): Added comment.
8166 * lib/dialibartrenderer.c (draw_image): Correct rowstride handling
8169 2003-01-13 Steffen Macke <sdteffen@web.de>
8171 * lib/dia_image.c: dia_image_rgb_data() is working for
8172 non-alpha images now. Fixes #93762
8173 * Makefile.am: added makefile.msc to EXTRA_DIST
8175 2003-01-10 Steffen Macke <sdteffen@web.de>
8177 * app/paginate_psprint.c: Closing print dialog when file
8178 could not be written. Fixes #84746
8180 2003-01-04 Steffen Macke <sdteffen@web.de>
8182 * doc/custom-shapes: incomplete description of <svg:text>
8184 2003-01-03 Steffen Macke <sdteffen@web.de>
8186 * makefile.msc(new): new makefile to create file
8187 structure suitable for running dia win32 under
8188 $(TOP)/dia/build/win32
8190 2003-01-02 Steffen Macke <sdteffen@web.de>
8192 * lib/dia_svg.c: including stdlib.h
8193 * lib/makefile.msc: added gdk_pixbuf libs to linker
8194 * app/makefile.msc: added gdk_pixbuf libs, made libart
8195 libs compatible with gnuwin32 package
8197 2003-01-01 Hans Breuer <hans@breuer.org>
8199 * lib/font.c : more comment about global_size_one
8201 * app/menus.c : <control>[<shift>]A for plain gtk build too.
8203 * plug-ins/wmf/wmf.cpp : some type juggling to make
8206 2002-12-31 Steffen Macke <sdteffen@web.de>
8208 * app/makefile.msc: added hint on how to enable console output
8210 2002-12-17 Lars Clausen <lrclause@cs.uiuc.edu>
8212 * objects/standard/textobj.c (textobj_load): Get the handle type
8213 right, at least to be the same as when created.
8215 2002-12-12 Lars Clausen <lrclause@cs.uiuc.edu>
8217 * lib/dialibartrenderer.c (draw_string): Removed extra 'is'.
8219 2002-12-08 Hans Breuer <hans@breuer.org>
8221 * app/commands.c : fixed bug #85315 'give diagram properties,
8222 instead of no object selected error' almost a one-liner
8224 * app/splash.c : don't make having the logo pixmap
8225 mandatory. Fixes bug #96068.
8227 * app/defaults.c : avoid crashing from open-dialog,esc,open-dialog
8228 sequence by connecting to the "delete_event"
8229 * app/objects/uml/class_dialog.c : handle "destroy" for
8232 * lib/libdia.def : remove diaXmlNewChild again
8234 * app/paginate_gdiprint.cpp : reflect Dia's page setting
8235 portrait/landscape in the windoze print dialog
8237 * objects/makefile.msc : only UML needs to link against
8238 $(GTK2_LIBS) and only custom against $(LIBXML2_LIBS)
8240 2002-12-08 Lars Clausen <lrclause@cs.uiuc.edu>
8242 * objects/standard/ellipse.c (ellipse_distance_from):
8243 * lib/geometry.c (distance_ellipse_point): Ellipse now uses the
8244 correct distance function. Could be faster, but it's not really
8247 2002-12-07 Lars Clausen <lrclause@cs.uiuc.edu>
8249 * lib/font.c: Changed global_size_one to more correct 28.35.
8254 * lib/dia_xml.c: Removed pretty print hack, the libxml thing works
8257 2002-12-07 Hans Breuer <hans@breuer.org>
8259 * lib/widgets.c : g_file_get_contents() silently assumes
8260 a binary file. Reflect when creating the font_menu file
8261 to get rid of junk in font menus
8263 2002-12-06 Hans Breuer <hans@breuer.org>
8265 * app/diapsrenderer.[hc] app/diapsft2renderer.[hc] :
8266 removed 0xD 0xD 0xA line ends which get created by
8267 cvs if windoze line ends 0xD 0xA are checked in from
8268 *nix and checked out on win32.
8270 * app/preferences.c : changed toolbox_on_top default to
8271 false. It is currently not possible to change the behaviour
8272 at runtime, at least not on win32.
8274 * lib/dialibartrenderer.c : bug #94791 'rendering to
8275 bitmap without PangoFt2' got delayed to milestone future
8276 so wrap libart text rendering into PANGO_WIN32_FUTURE.
8277 It is not available without my Pango patch in bugzilla.
8279 * lib/font.c : added comment to global_size_one and adapt
8280 the arbitrary size scaling in dia_font_build_layout() for
8281 win32, too. This is needed to get an acceptable font size
8282 approximation for Dia 0.90 and earlier files.
8283 Also #include "message.h".
8285 * app/makfile.msc app/dia.def lib/makefile.msc lib/libdia.def :
8286 reflect movement of group.[hc]
8287 * lib/group.h : export group_type which gets used by app/*
8289 * lib/diagtkfontsel.c : added #undef GTK_DISABLE_DEPRECATED
8290 to get the GtkTypeInfo definition
8292 * plug-ins/makefile.msc : dxf and xfig don't need to link
8293 against app/ anymore now that group is moved to lib/
8295 * plug-ins/python/pydia-render.c : remove massive leaking
8296 of self, i.e. PyDiaRenderer
8298 * plug-ins/python/makefile.msc : remove linking against
8301 2002-12-06 Lars Clausen <lrclause@cs.uiuc.edu>
8303 * objects/standard/line.c: Removed properties options for gaps,
8304 until release is done.
8306 * configure.in: Check for freetype version.
8308 * lib/text.c (text_insert_char): Fixed small buffer overflow for
8311 * lib/dialibartrenderer.c (draw_string): Removed debugging printf.
8313 * app/diapsft2renderer.h:
8314 * app/diapsft2renderer.c:
8315 * app/diapsrenderer.h:
8316 * app/diapsrenderer.c: Split ps rendering into standard and freetype.
8318 * app/render_eps.c (export_eps, new_psprint_renderer): Using
8319 PS_FT2 renderer when available. Old render stuff killed. Yay!
8321 * lib/properties.h: Fixed bad frame end def.
8323 * app/Makefile.am (dia_core_files): Added diapsft2renderer.[ch].
8325 * lib/dia_xml.c (data_add_string): Avoid #-less strings.
8327 * objects/bondgraph/Makefile.am: Removed unneeded EXTRA_DIST.
8329 2002-12-05 Lars Clausen <lrclause@cs.uiuc.edu>
8331 * lib/font.c: Now checking for the proper dia-style standard fonts.
8334 * app/Makefile.am: Moving group.[ch]
8336 * plug-ins/dxf/dxf-import.c:
8337 * plug-ins/xfig/xfig-import.c:
8338 * plug-ins/xfig/xfig-export.c: Now can refer directly to group.h.
8342 * lib/object.c (object_list_move_delta, object_copy_list):
8343 * lib/object.h: Moved some object-related functions from
8344 object_ops to object to assist moving group.c.
8346 * lib/diatypes.h: Added Group typedef.
8349 * lib/group.c: Moved from app to lib to a) resolve plug-ins
8350 references, and b) make groups more "real" objects.
8352 * lib/Makefile.am (libdia_la_SOURCES): Added diatyps.h
8354 2002-12-03 Lars Clausen <lrclause@cs.uiuc.edu>
8356 * lib/font.c (dia_font_init): Added check that the three standard
8359 2002-12-02 Lars Clausen <lrclause@cs.uiuc.edu>
8362 * app/load_save.c: Linebreaks in dia files, no indentation.
8363 Should help text tools. xmlNewChild wrapped in diaXmlNewChild for
8366 * objects/standard/line.c: Small but important fixes to the line
8370 * lib/dia_xml.c (diaXmlNewChild):
8371 * app/load_save.c (diagram_data_write_doc, write_objects): Simple
8372 XML prettyprinting wrapper.
8374 2002-12-03 Steffen Macke <sdteffen@web.de>
8376 * shapes/Cisco/Makefile.am:
8377 * shapes/Cisco/*.shape: finished conversion of Cisco icons
8380 2002-12-02 Steffen Macke <sdteffen@web.de>
8382 * doc/en/Makefile.am:
8383 * doc/en/usage-objects.sgml:
8384 * doc/en/graphics/line_icon.png: (new) added line icon
8386 2002-12-02 Lars Clausen <lrclause@cs.uiuc.edu>
8388 * objects/standard/line.c: Binary search object edge line gap.
8390 2002-12-01 Lars Clausen <lrclause@cs.uiuc.edu>
8392 * configure.in: Added Cisco makefile, sorted Makefiles list.
8394 * shapes/Makefile.am (SUBDIRS): Added Cisco dir
8396 * configure.in: Now checks for availability of PangoFT2 and
8397 FreeType, raising an error if not found.
8399 * app/Makefile.am (dia_core_files): Adding diapsft2renderer from
8402 2002-12-01 Steffen Macke <sdteffen@web.de>
8404 * doc/en/usage-loadsave.sgml: updated information on import
8407 2002-11-28 Lars Clausen <lrclause@cs.uiuc.edu>
8409 * app/commands.c (edit_copy_callback): Freeing copy_list.
8411 2002-11-28 Steffen Macke <sdteffen@web.de>
8413 * app/render_libart.c: art_config.h was included twice
8415 2002-11-27 Lars Clausen <lrclause@cs.uiuc.edu>
8417 * sheets/.cvsignore: More ignorance.
8419 * lib/diagdkrenderer.c (draw_string): Removed silly #ifdef 1.
8421 * lib/prop_widgets.h: Two (currently unused) settings for frame
8424 * lib/prop_widgets.c (frame_beginprop_get_widget): Frames are now
8425 (by default) foldable.
8427 * lib/propinternals.h:
8428 * lib/propdialogs.c (prop_dialog_add_raw_with_flags): Way to add
8429 widgets in a more controlled manner.
8431 * objects/standard/line.c (line_update_data): Line gap things
8432 inserted. Can do xeyes now:)
8434 2002-11-26 Christian Neumair <chris@gnome-de.org>
8436 * .cvsignore: Changed.
8437 * objects/bondgraph/.cvsignore, plug-ins/metapost/.cvsignore,
8438 plug-ins/xslt/.cvsignore, shapes/Assorted/.cvsignore, shapes/Misc/.cvsignore:
8441 2002-11-26 Lars Clausen <lrclause@cs.uiuc.edu>
8443 * app/pixmaps/delete.xpm: Trashcan stolen from Gimp.
8445 * lib/widgets.c (dia_font_selector_get_font): Fixed wrong name
8446 passing to font hash.
8448 * app/filedlg.c (file_save_as_ok_callback): Check that filename is
8449 utf-8 or locale-convertible before adding to dialog text. This
8450 probably needs done in a number of places where we get text from
8451 the environment and send it to GTK to display.
8453 * lib/widgets.c: Fixed case problems for font menu entries.
8455 * objects/SADT/annotation.c: Don't run the event test (but leave
8456 it here for inspiration).
8459 * lib/widgets.h: Allowing setting preview text for fonts.
8461 2002-11-26 Lars Clausen <lrclause@cs.uiuc.edu>
8463 * objects/bondgraph/Makefile.am:
8464 * objects/bondgraph/bondgraph.c:
8466 * objects/Makefile.am: Added bond graph dir.
8468 2002-11-26 Lars Clausen <lrclause@cs.uiuc.edu>
8470 * lib/text.c (text_calc_boundingbox, text_draw): Better cursor size.
8472 2002-11-25 Lars Clausen <lrclause@cs.uiuc.edu>
8474 * lib/text.c (text_calc_boundingbox, text_draw): Better cursor
8477 * app/diapsrenderer.c: Freetype rendering is back in force.
8479 * app/disp_callbacks.c: Added missing updates for pre-text-change.
8481 2002-11-25 David Hoover <jazzdaq@yahoo.com>
8483 * app/render_libart.c: Added missing #include line for libart.
8486 * lib/geometry.c: Added point_convex function. This computes
8487 points inside a line segment (0 <= alpha <= 1) or outside the
8488 line segment (alpha < 0 | alpha > 1).
8490 * objects/standard/line.c: Line now has additional code/attributes
8491 which permit the line to extend past the line anchors (gap < 0) or
8492 leave a gap without reaching the anchor (gap > 0). If no gap is
8493 specified, the default gap of 0 will result in identical line
8494 behavior as before. If the 'fractional' attributes are TRUE, the
8495 gap length is not fixed, but a percentage of the line length. I
8496 did not know how create the GTK widgets so the gap code currently
8497 cannot be used without adding XML attributes by hand.
8499 2002-11-25 Lars Clausen <lrclause@cs.uiuc.edu>
8501 * lib/diagdkrenderer.c (draw_string): Removed timing bits.
8503 * lib/Makefile.am (libdia_la_SOURCES): Added fontsel files to SOURCES.
8505 2002-11-24 Lars Clausen <lrclause@cs.uiuc.edu>
8507 * lib/font.c: Debugging functionality in separate functions.
8509 * lib/widgets.c: Using fontsel with context.
8511 * lib/diagtkfontsel.[ch]: Context-aware copy of the GTK fontsel.
8513 * objects/custom/custom_object.c: Orientation handling for shapes,
8514 patch thanks to Martin Hans <opfinder@gmx.net>.
8516 * objects/standard/zigzagline.c (zigzagline_move_handle): Starting
8517 work on even better orientation handling.
8519 * app/menus.c (menus_get_item_from_path): Fixed sily warnings from
8520 casting NULL pointers. Should be unnecessary in an upcoming GTK
8523 2002-11-18 Lars Clausen <lrclause@cs.uiuc.edu>
8527 * lib/widgets.c: Now uses correct context to get font families.
8529 * lib/diagdkrenderer.c (get_text_width, draw_string):
8530 * lib/dialibartrenderer.c (draw_string):
8532 * lib/font.c (dia_font_init): Removed old kludgy font name compare.
8533 (dia_font_build_layout): Unified the twiddle factors into a use of
8534 global_size_one. But I deeply distrust Pango for seeming to
8535 change size of fonts every time I turn my back.
8540 * app/menus.h: Updated some more methods to also be more specific
8544 * app/recent_files.c:
8545 Changed to return most specific type, to avoid run-time type errors.
8547 * app/menus.c (menus_get_item_from_path): Non-gnome version now
8548 gets menu_item rather than widget, which works better.
8550 2002-11-17 Cyrille Chépélov <cyrille@chepelov.org>
8552 * app/display.c: (new_display):
8553 * app/menus.c: (menus_get_item_from_path):
8554 Relying on the tearoff to locate the input methods menu wasn't a
8555 good idea: tearoffs seem to be an endangered species nowadays.
8556 Anyway, the IM menu seems to be working now.
8558 * app/interface.c: hinted the window manager that the toolbox window
8559 is a toolbox window. Not that my (fairly default configuration)
8560 sawfish cares, but other NETWM compliant WMs may.
8567 * app/layer_dialog.c:
8568 * app/linewidth_area.c:
8570 * app/sheets_dialog.c:
8573 The GTK doc says to avoir gtk_window_set_wmclass() and
8574 gtk_window_set_policy(), and use gtk_window_set_role() and
8575 gtk_window_set_resizable(), respectively.
8577 * app/preferences.c: (prefs_create_dialog):
8578 * app/preferences.h:
8579 * app/display.c: (display_set_active):
8580 Added a preference to have the toolbox hover over diagram windows.
8582 2002-11-12 Lars Clausen <lrclause@cs.uiuc.edu>
8584 * lib/diagdkrenderer.c (get_text_width, draw_string):
8585 Freetype-based string drawing now works. Not very fast, though.
8586 I wish I could use the graphics card for this:( I'm doing three
8587 bitmap loops where I should be doing one. The size is not correct
8588 either, despite having get_text_width give the right thing.
8590 2002-10-21 Lars Clausen <lrclause@cs.uiuc.edu>
8592 * app/connectionpoint_ops.c (diagram_update_connections_object):
8593 Allows more than one connectionpoint on an object to be moved at a
8596 2002-10-18 Stanislav Brabec <sbrabec@suse.cz>
8598 * configure.in: Added cs to ALL_LINGUAS.
8600 2002-10-17 Lars Clausen <lrclause@cs.uiuc.edu>
8602 * app/paginate_psprint.c: Removed unnecessary decl of autosave
8605 * app/display.c (ddisplay_set_renderer): Calls to begin/end render.
8607 * app/export_png.c (export_png_ok): Saving more variables from the
8610 2002-10-16 Lars Clausen <lrclause@cs.uiuc.edu>
8612 * lib/dialibartrenderer.c (begin_render):
8613 (end_render): Correct pushing and popping of font contexts.
8614 (draw_string): Double zooming eliminated, strange twiddle factor
8615 introduced (grumble). Close to working now, but there are still
8616 strange differences from font to font. In particular, some fonts
8617 really mess with the cursor and extents.
8619 * app/render_eps.c (export_eps):
8620 * app/diapsrenderer.c (dia_ps_renderer_finalize):
8621 Fixed file closing confusion, no longer dependent on PS/EPS.
8623 * app/diagram.c (diagram_place_down_selected)
8624 (diagram_place_up_selected): Now implemented.
8626 * lib/font.c (dia_font_init):
8628 Redesigned the font init/context pushing code. Start of fix for
8629 font name differences.
8631 2002-10-15 Kjartan Maraas <kmaraas@gnome.org>
8633 * app/sheets_dialog_callbacks.c: Fix a typo.
8635 2002-10-15 Hans Breuer <hans@breuer.org>
8637 * app/diapsrenderer.[hc] : (new files, old content :-)
8638 simple base class for post script rendering. Does neither
8639 use Pango/FT2 nor does it handle non latin1 characters.
8640 The fancy stuff which nowadays appears to be needed should
8641 probably be done in derived class(es)
8643 * app/makefile.msc app/Makefile.am : added new files
8645 * app/paginate_psrint.c : re-enabled and used as test
8646 for the simple ps renderer above.
8648 * app/render_eps.[hc] : ripped out common ps code and
8649 moved to DiaPsRenderer. The rest of the file is mostly
8650 disabled. And I don't understand enough of it to
8653 * app/diaepsrenderer.h : short lived, removed.
8655 2002-10-15 Lars Clausen <lrclause@cs.uiuc.edu>
8657 * lib/plug-ins.c (dia_register_plugin): Don't try to load libdia
8658 as a plugin (thanks to Torben Nielsen).
8660 2002-10-14 Lars Clausen <lrclause@cs.uiuc.edu>
8662 * app/diaepsrenderer.h:
8664 * app/paginate_psprint.c:
8665 #ifdef'd out enough ps stuff to allow compile. Now we just need
8668 2002-10-12 Hans Breuer <hans@breuer.org>
8670 [last plug-in ported]
8672 * plug-ins/xfig/xfig-export.c : ported to new renderer api
8674 * plug-ins/xfig/xfig-import.c(fig_create_object) : need to
8675 scale color values to [0..1.0] to properly reconstruct
8678 * plug-ins/xfig/xfig-common.c : some cleaning
8680 2002-10-12 Hans Breuer <hans@breuer.org>
8682 [decrease inter-plug-in-dependencies]
8684 * objects/custom/shape_info.[hc] : move parse_style()
8685 to lib/dia_svg.[hc] as dia_svg_parse_style(); Namespace
8686 the related structs and constants.
8687 * objects/custom/custom_object.c : reflect namespace
8690 * lib/dia_svg.[hc] : new files
8691 * lib/makefile.msc lib/Makefile.am : add new files
8692 * lib/libdia.def : updated externals
8694 * plug-ins/svg/svg-import.c : use dia_svg_parse_style()
8696 * plug-ins/svg/svg.c : enable svg import for win32 (and
8697 probably for other non ELF builds)
8699 * plug-ins/makefile.msc : enable svg import
8701 2002-10-11 Hans Breuer <hans@breuer.org>
8703 * plug-ins/metapost/render_metapost.[hc] : ported
8705 * plug-ins/pstricks/render_pstricks.[hc] : dito
8707 2002-10-11 Hans Breuer <hans@breuer.org>
8709 * plug-ins/cgm/cgm.c : ported, appears to work as before,
8710 but graphic apps available to me can't import the generated
8711 files (the could not with Dia-0.90 cgm as well) ...
8713 * plug-ins/dxf/dxf-export.c : Ported to new renderer api.
8714 Removed all those function which did emulate 'complex'
8715 drawing ops with basic ones (e.g. rect by line) cause this
8716 stuff is already provided by the base class
8717 * plug-ins/dxf/dxf-import.c : removed render.h include
8719 * plug-ins/python/pydia-font.[hc]
8720 plug-ins/python/pydia-text.c : finally ported to new font api
8722 * plug-ins/python/pydia-layer.c : add extra parameter
8723 to layer_find_closest_connectionpoint()
8725 * plug-ins/python/pydia-render.c : ported to DiaRenderer api
8727 * plug-ins/python/python.c : added missing copyright notice
8729 * plug-ins/hpg/hpgl.c plug-ins/wpg/wpg.c plug-ins/wmf/wmf.cpp :
8730 actually use the renderers set_font implementation
8732 * plug-ins/renderer.inc : unused now, removed
8733 * plug-ins/Makefile.am : reflect it
8735 2002-10-08 Hans Breuer <hans@breuer.org>
8737 * app/render_gdk.c : don't add the InteractiveRenderer
8738 interface multiple times (it's added to the type, not
8740 * app/render_libart.c : dito. It's currently added
8741 unconditional cause eport_png uses it, but claims
8742 to be non-interactive. Probably set_size should be moved
8743 to the DiaRenderer interface.
8745 * lib/dialibartrenderer.c : add implementations for
8746 get_<width|height>_pixels. Libart rendering works again.
8747 DiaLibartRenderer::draw_image : use dia_image_rowstride()
8750 * lib/diatransform.c(dia_transform_coords_double) :
8751 don't ROUND() the returned values
8753 * plug-ins/pixbuf/pixbuf.c : added import function. It
8754 simply creates a wrapping "Standard - Image" object.
8756 * plug-ins/shape/shape-export.c : use the more direct
8757 method to call base class methods
8759 2002-10-07 Lars Clausen <lrclause@cs.uiuc.edu>
8761 * lib/font.c (dia_font_init): Changed dia_font_init to return old
8762 pango context, to allow stacked contexts (for printing while
8771 * lib/connectionpoint.h
8774 * lib/diagdkrenderer.h
8776 * lib/dialibartrenderer.h
8779 * lib/diasvgrenderer.h
8780 * lib/diatransform.h
8787 * lib/neworth_conn.h
8802 Moved all externally visible struct typedefs into diatypes.h, as
8803 per Hans' suggestions.
8805 2002-10-07 Steffen Macke <sdteffen@web.de>
8807 * lib/Makefile.am: removed a '\' causing problems
8809 2002-10-07 Hans Breuer <hans@breuer.org>
8811 [Libart Renderer resurrected; almost it's compiling but
8812 almost instantly crashing :-]
8814 * lib/dialibartrenderer.[hc] : new files, ported to DiaRenderer
8815 * app/render_libart.[hc] : ported to DiaInteractiveRenderer
8816 * lib/diatransform.[hc] : added dia_transform_coords_double()
8818 * app/display.c : the right parameters for new_renderer_libart()
8819 * app/export_png.c : ported, removed the blind Display hack
8821 * app/makefile.msc lib/makefile.msc
8822 lib/Makefile.am : updated
8824 * lib/dia<|gdk|interactive>renderer.c : properly copyrighted
8826 2002-10-06 Hans Breuer <hans@breuer.org>
8828 * plug-ins/pixbuf/pixbuf.c : (new file)
8829 there is a new export plug-in called 'Pixbuf' which uses
8830 DiaGdkRenderer to export to gdk-pixbuf supported bitmap
8831 formats (currently only PNG and JPEG).
8833 2002-10-06 Hans Breuer <hans@breuer.org>
8836 http://mail.gnome.org/archives/dia-list/2002-October/msg00027.html
8838 * lib/dia-enums.h lib/diatransform.[hc]
8839 lib/diarenderer.[hc] lib/diainteractiverenderer.c
8840 lib/diagdkrenderer.[hc] lib/diasvgrenderer.[hc]
8843 * lib/makefile.msc lib/makefile.am : added new files
8845 * lib/plug-ins.c : g_module_error() returns a locale
8846 string, convert to utf8 before further usage
8848 * lib/render.h : #error out. Everything including this
8850 * lib/*.[hc] : ported to new renderer api
8852 * app/diaepsrenderer.h : unfinished DiaEpsRenderer interface
8853 just to make the rest compile
8854 * app/render_eps.c : temporary disabled all of this
8855 * app/render_eps.h : removed RendererEPS
8857 * app/render_gdk.[hc] : a small wrapper around the new
8858 DiaGdkRenderer form lib/*
8860 * app/render_libart.h : removed RenderLibart definition
8861 * app/render_libart.c : not yet ported to new DiaRenderer
8862 but having an implementation to untie form FT2 dependency
8863 at least on win32. It is using new Pango api form bug #94791
8865 * app/render_pixmap.[hc] : a small wrapper around the new
8866 DiaGdkRenderer form lib/*
8868 * app/display.h : removed render_*.h includes
8869 * app/display.c : the only place where specific
8870 renderers need to be known
8872 * app/connectionpoint_ops.c app/grid.c app/handle_ops.c
8873 use new DiaInteractiveRenderer interface
8875 * app/*.c : ported to new renderer api
8876 * object/*/*.c : ported to new renderer api
8877 s/render.h/diarenderer.h/
8878 s/Renderer/DiaRenderer/
8879 s/renderer->ops/renderer_ops/
8880 add in every draw method:
8881 DiaRendererClass *renderer_ops = DIA_RENDERER_GET_CLASS (renderer);
8883 * plug-ins/hpgl/hpgl.c :
8884 plug-ins/wmf/wmf.cpp
8885 plug-ins/wpg/wpg.c : ported to be DiaRenderer based
8886 * plug-ins/shape/shape-export.c
8887 plug-ins/svg/render_svg.c : ported to be DiaSvgRenderer based
8888 (nice how small these files became :-)
8890 2002-09-28 Hans Breuer <hans@breuer.org>
8892 * */makefile.msc : updated
8894 * app/defaults.c : don't gdk_invalidate_rect(NULL)
8895 * app/disp_callbacks.c :
8896 can't cast GtkWindow to GdkWindow, use shell->window
8897 (ddisplay_unrealize) don't use already unrefed im_context
8899 can't cast from GtkMenu to GtkMenuItem
8900 (ddisp_destroy) : mark im_context as unrefed
8902 * lib/dia_xml (data_font) : prefer new font format over old one
8903 (data_add_font) : write the legacy name to allow file exchange
8904 with pre Pango versions of Dia, which would otherwise crash
8905 on missing font 'name' attribute.
8906 * lib/font.c (dia_font_get_legacy_name) : improved implementation
8907 to get a better match.
8909 * lib/libdia.def : updated
8911 * lib/messages.c : don't gdk_widget_show(NULL)
8913 * lib/prop_text.c : don't gtk_entry_set_text() with NULL string
8915 [make Dia compile, link _and_ work with mingw/gcc3.2]
8917 * config.h.win32 : #define LIBXML, this gets defined from libxml
8918 header but only for _MSC_VER. The mingw build did access an
8919 unitialized function pointer for xmlFree.
8921 * */makefile.mingw : updated (some plug-ins have build issues)
8923 * lib/handle.h lib/object.h : there appears to be no
8924 forward declaration of the form
8925 typedef enum _HandleId HandleId
8926 (at least not with GCC 3.2 for C++) ../lib/handle.h:22:
8927 use of enum `_HandleId' without previous declaration
8929 * app/paginate_gdiprint.cpp : added a hack to avoid g++
8930 naming conflict on 'export'
8932 * app/paginate_gdiprint.h : forward declare Diagram
8934 * objects/SADT/annotaion.c : use g_random_double()
8936 2002-09-26 Lars Clausen <lrclause@cs.uiuc.edu>
8938 * app/modify_tool.c: Made motion not happen until sufficiently
8939 large or past double-click interval, to avoid accidental moving
8940 when doubleclicking. Got the double-click time right, and fixed
8941 some issues with release. There are some corner cases that may
8942 exhibit strange behaviour, will look at those later. Nah, let's
8943 not care about those, they are rare and not dangerous.
8945 2002-09-26 Cyrille Chépélov <cyrille@chepelov.org>
8947 * app/layer_dialog.c:
8949 * plug-ins/dxf/dxf-import.c:
8950 * plug-ins/python/pydia-diagram.c:
8951 * lib/diagramdata.c:
8952 * lib/diagramdata.h:
8953 Improved the consistency of the obj->parent_layer backlinks (esp.
8958 * lib/dynamic_obj.[ch] (NEW):
8961 * app/dynamic_refresh.[ch] (NEW):
8962 * objects/Misc/analog_clock.c:
8963 Added support for dynamic refresh (animated objects).
8965 2002-09-25 Cyrille Chépélov <cyrille@chepelov.org>
8967 Patch from Owen Taylor <otaylor@redhat.com>:
8968 * doc/en/Makefile.am:
8969 * doc/en/dia-manual.sgml:
8970 * doc/en/usage-objects.sgml:
8971 * doc/en/usage-quickstart.sgml:
8972 * doc/pl/Makefile.am:
8973 * doc/pl/dia-manual.sgml:
8974 * doc/pl/usage-objects.sgml:
8975 * doc/pl/usage-quickstart.sgml:
8977 - Change the DTD declration from an outdated GNOME one to a
8980 - Remove close tags for <graphics> which aren't allowed for
8983 - A hacky fix for a problem where some versions of db2html don't
8984 create *.css files. (If *.css doesn't match anything, then you get
8985 the global explicitely.)
8989 2002-09-24 Cyrille Chépélov <cyrille@chepelov.org>
8991 * objects/custom/custom_object.c:
8992 * objects/custom/shape_info.[ch]: GE_TEXT display lists elements
8993 were never properly prepared for use when reloading a shape with
8994 <svg:text> elements. Thanks to Scott Frazer <frazer@nc.rr.com> for
8995 reporting the problem and coming up with a fix! (Closes: #93974)
8997 * app/menus.c: patch from Alan Horkan <horkana@tcd.ie>: review
8998 the menu shortcuts towards better GNOME HIG compliance (Closes: #87157)
9001 * app/display.c: updated menu item paths Alan's patch had moved.
9003 * app/interface.c: Fixed a crash when gdk-pixbuf doesn't want to
9004 load the sheet-provided icon (libpng versions mismatch, grrr.).
9007 * objects/Makefile.am:
9008 * objects/Misc/Makefile.am (NEW):
9009 * objects/Misc/libmisc.c (NEW):
9010 * objects/Misc/analog_clock.c (NEW):
9011 * objects/Misc/pixmaps/analog_clock.xpm (NEW):
9012 * sheets/Misc.sheet.in: just a little experiment...
9014 2002-09-23 Cyrille Chepelov <cyrille@chepelov.org>
9016 * plug-ins/xlst/Makefile.am: found a way to silence automake while
9017 not forcing everyone to build using libxslt.
9021 * lib/object_defaults.c:
9024 * lib/properties.[ch]:
9026 * objects/standard/box.c:
9027 * objects/UML/state_term.c:
9029 * objects/FS/flow-ortho.c:
9033 * app/diagram_tree.c:
9035 * app/disp_callbacks.c:
9038 * app/lineprops_area.c:
9040 * app/preferences.c:
9043 * app/sheets_dialog_callbacks.c:
9044 * plug-ins/xslt/xslt.c:
9045 * plug-ins/metapost/render_metapost.c:
9046 * plug-ins/xfig/xfig-export.c:
9047 * plug-ins/shape/shape-export.c:
9049 Killed most gcc-3.2 warnings (const-correctness and derived warnings,
9050 unused variables, mostly)
9053 * app/menus.c: enabled GTK Input Methods (thanks Lars!)
9055 * app/Makefile.am: modified run_dia.sh so that we recover the
9056 ability to run a debugger despite libtool's hacks.
9058 * plug-ins/dxf/Makefile.am:
9060 "make distcheck" fixes.
9062 2002-09-19 Lars Clausen <lrclause@cs.uiuc.edu>
9064 * objects/UML/uml.c (uml_get_operation_string): Patch from Mauf
9065 <mfranzoni@madd.it>: Check for the type being NULL.
9067 2002-09-16 Lars Clausen <lrclause@cs.uiuc.edu>
9069 * app/render_eps.c (set_font): Re-tweaked font size for printing.
9071 2002-09-12 Cyrille Chepelov <cyrille@chepelov.org>
9073 Patch from Angus Ainslie <angusa@deltatee.com>:
9074 * plug-ins/dxf/dxf-import.c:
9075 * plug-ins/dxf/autocad_pal.h: Import from visio 2002 improvements.
9077 (plus a couple extra fixes by me, such as the removal of printf's,
9078 adapting for recent changes, and killed a couple warnings)
9080 * app/authors.h: a 60K patch isn't insignificant, is it?
9082 2002-09-09 Tor Lillqvist <tml@iki.fi>
9084 * configure.in: Check for both pangoft2 (using PKG_CHECK_MODULES,
9085 as before) and -lfreetype (using AC_CHECK_LIB). At least on
9086 Solaris with Sun's compiler (Forte C), you need to link also the
9087 dia application with -lfreetype, even if it is implicitly linked
9088 to by -lpangoft2. Rename FREETYPE_CFLAGS and _LIBS to PANGOFT2_*,
9089 which is what they actually mean. Use FREETYPE_LIBS for
9092 Don't look for libsunmath if isinf() is not found in math.h (as on
9093 Solaris). The sunmath library is part of Forte C and not present
9094 on all machines. Besides, even if isinf was found in libsunmath,
9095 we didn't use it in the Makefile.am.
9097 Fix a couple of bashisms.
9099 AC_SUBST also Z_LIBS, need to link the dia application to -lz,
9100 too, on Solaris with Forte C.
9102 Don't try to use the gcc flags with other compilers.
9103 DIA_CHECK_CFLAG gives a false indication that Forte C understands
9104 the gcc -f switches, but in fact they get interpreted meaning
9105 something completely different.
9107 Define the automake conditional HAVE_CGC.
9109 * app/Makefile.am (dia_LDADD): Add Z_LIBS and FREETYPE_LIBS.
9111 Use -export-dynamic only with gcc.
9114 * */*/Makefile.am: Modify according to the FREETYPE_CFLAGS ->
9115 PANGOFT2_CFLAGS rename.
9117 * lib/geometry.h: Drop HAVE_SUNMATH_H and <sunmath.h> per above.
9119 * lib/dia_xml.c: Include geometry.h for the isinf() stuff on
9122 * lib/paper.c: Workaround for gccism: Can't use inline this way with
9125 2002-09-08 Cyrille Chepelov <cyrille@chepelov.org>
9127 * lib/text.c(set_string): fixed a memory leak (char* ain't no
9128 std::auto_ptr<char> !).
9131 * app/interface.[ch]:
9132 * app/ddisp_callbacks.[ch]: Added some basic support for input
9133 methods (GtkIMContext-based)
9136 * app/Makefile.am: made libdia a shared object (per Tor
9137 Lillqvist's suggestion/request), to cope for platforms with a less
9138 than par dynamic library loader.
9140 * app/display.c: disabled the input method menu (I really don't
9141 see where and how to put them. Blame Frozen Bubble )
9143 2002-09-06 Lars Clausen <lrclause@cs.uiuc.edu>
9145 * objects/flowchart/box.c (box_update_data): Made resizing
9146 possible again (only set width & height when resized too small).
9148 Patch from Soeren Sandmann <sandmann@daimi.au.dk>:
9150 * app/disp_callbacks.c (ddisplay_canvas_events): Handle
9153 2002-09-05 Cyrille Chepelov <cyrille@chepelov.org>
9155 * app/authors.h: now showing Akira TAGOH's name in the native script.
9157 2002-09-01 Lars Clausen <lrclause@cs.uiuc.edu>
9159 * plug-ins/xslt/xslt.c: Removed glib warning for unset
9162 2002-09-01 Cyrille Chepelov <cyrille@chepelov.org>
9164 * plug-ins/svg/render_svg.c: Applied (reversed...) patch from
9165 Mike Sowka <msowka@rogers.com>. This fixes a problem with the
9168 2002-08-31 Lars Clausen <lrclause@cs.uiuc.edu>
9170 * objects/UML/class.c: Fixed showing of empty stereotypes and got
9171 the string placed correctly.
9173 2002-08-30 Hans Breuer <hans@breuer.org>
9175 * lib/font.c (dia_font_get_style) : don't shift already
9176 shifted DIA_FONT values.
9178 * lib/libdia.def : updated externals
9180 * app/disp_callbacks.c : on win32 GdkEventKey::string already
9181 is in UTF-8. (Longterm this probably should be handled on the
9184 * app/command.[hc] app/display.[hc] app/menus.c : add code to
9185 switch display renderers again. The libart renderer is very
9186 useful for win9x with it's limited GDI.
9188 * app/render_gdk.c : use g_warning instead of printf which gets
9189 nowhere on win32 (non console apps)
9191 * app/render_libart.c : make it compile without FREETYPE
9193 * objects/makefile.msc plug-ins/makefile.msc : added clean target
9195 2002-08-29 Lars Clausen <lrclause@cs.uiuc.edu>
9197 * app/render_eps.c (postscript_draw_contour): Debugging statement
9198 that allowed me to figure out font problems.
9200 * lib/widgets.c (dia_font_selector_set_styles): Use radio menu
9201 items for font styles.
9203 * objects/FS/flow-poly.c:
9204 * objects/FS/flow-ortho.c:
9205 * objects/FS/flow.c: Further conversion away from GTK dialogs.
9206 Can't set a default label right now:(
9208 * app/interface.c (fill_sheet_wbox): Added initialization for mask.
9210 2002-08-27 Cyrille Chepelov <cyrille@chepelov.org>
9211 Patch from Andrew Ferrier <andrew@new-destiny.co.uk>:
9213 * Makefile.am: rules relating to AUTHORS and THANKS
9215 * AUTHORS: file content changed to more accurately
9216 reflect guideline requirements.
9217 * TODO: warning added about Gnome BTS.
9218 * KNOWN_BUGS: warning added about Gnome BTS.
9222 * AUTHORS: added full copyright info.
9223 * mkauthors-placeholder: (removed)
9225 2002-08-27 Lars Clausen <lrclause@cs.uiuc.edu>
9227 * app/paginate_psprint.c (print_page): Fixed text printing after
9228 tip from Dov Grobgeld.
9230 2002-08-26 Lars Clausen <lrclause@cs.uiuc.edu>
9232 * app/paginate_psprint.c (print_page): Fixed color of clip
9235 2002-08-26 Cyrille Chepelov <cyrille@chepelov.org>
9237 * sheets/Makefile.am: enabled intltool-merge translation cache for
9241 * mkauthors-placeholder:
9242 * AUTHORS: revived that file (in a placeholder form) so that
9243 automake stops yelling.
9244 (derived from a patch by Andrew Ferrier <andrew@new-destiny.co.uk>)
9247 Heh, by the way, thanks Christophe. I feel better now.
9249 2002-08-25 Christophe Merlet <christophe@merlet.net>
9251 * app/command.c: Removed invalid multibyte sequence in Chepelov.
9253 2002-08-24 Lars Clausen <lrclause@cs.uiuc.edu>
9255 * lib/dia_image.c (dia_image_rgb_data):
9256 Bugfixes in image data retrieval.
9258 * app/render_eps.c: Refactoring of new_*_renderer.
9260 2002-08-23 Lars Clausen <lrclause@cs.uiuc.edu>
9264 * lib/dia_image.c: Support for rowstride != width (odd width images)
9266 2002-08-20 Lars Clausen <lrclause@cs.uiuc.edu>
9268 * lib/paper.c (get_paper_info): Fixed NULL prefs problem.
9269 * plug-ins/xfig/xfig-import.c: Removed assertion.
9271 2002-08-18 Lars Clausen <lrclause@cs.uiuc.edu>
9273 * lib/paper.c: Removed app/preferences.h reference.
9275 2002-08-14 Lars Clausen <lrclause@cs.uiuc.edu>
9277 * plug-ins/svg/svg-import.c:
9278 * plug-ins/xfig/xfig-import.c:
9279 * lib/Makefile.am (libdia_a_SOURCES):
9280 * objects/standard/Makefile.am (libstandard_objects_la_SOURCES):
9282 * objects/standard/create.h:
9283 * objects/standard/polygon.c (polygon_create):
9284 * objects/standard/polyline.c (polyline_create):
9285 * objects/standard/beziergon.c (beziergon_create):
9286 * objects/standard/bezier.c (bezierline_create):
9287 Moving create.h into lib.
9289 2002-08-13 Lars Clausen <lrclause@cs.uiuc.edu>
9291 * app/render_libart.[ch]: Work on PNG font export. Something's
9292 still fishy with the scaling, I don't get it.
9295 * app/interface.c: Replaced broken zoom combo with entry+menu.
9296 Now works beautifully. Removed WITHOUT_ZOOM_COMBO stuff.
9298 * app/render_gdk.c (get_text_width): Checks for validity of text.
9299 Temporary help while debugging input -- should only activate on
9302 * objects/SADT/annotation.c:
9303 * objects/GRAFCET/transition.c:
9304 * objects/FS/function.c: Removal of gtk.h include.
9306 * objects/UML/state.c (state_load): Warnings about using State
9307 object for initial/final states.
9309 * plug-ins/cgm/cgm.c (init_fonts): Proper Pango interfacing.
9311 2002-08-12 Lars Clausen <lrclause@cs.uiuc.edu>
9313 * app/render_eps.c: Text rendering that scales correctly. Too bad
9314 the standard fonts don't get selected right.
9316 2002-08-09 Lars Clausen <lrclause@cs.uiuc.edu>
9318 * lib/diagramdata.h:
9319 * lib/paper.c (get_paper_info):
9321 * plug-ins/xfig/xfig-import.c:
9322 Committed before testing. I am so embarrased. This compiles, now
9323 that the includes are in the right order.
9325 * app/diagram.c (diagram_init):
9326 * app/app_procs.c (do_convert):
9327 * app/preferences.h:
9328 * lib/diagramdata.h:
9329 * lib/diagramdata.c (new_diagram_data):
9331 * lib/paper.c (get_paper_info):
9332 Moved new_diagram part of prefs into lib/diagramdata.h. More
9333 could be done in new_diagram_data() now.
9335 2002-08-08 Lars Clausen <lrclause@cs.uiuc.edu>
9337 * app/render_eps.c: Better scaling of fonts at non-normal zoom.
9339 2002-08-07 Cyrille Chepelov <cyrille@chepelov.org>
9341 * configure.in: removed silly user-visible comment
9343 (actually, this is a dummy entry before I manually run nemo; for
9344 some dist-upgrade related reason, this morning's run aborted before
9345 the snapshots were created)
9347 2002-08-06 Lars Clausen <lrclause@cs.uiuc.edu>
9349 * objects/network/wanlink.c:
9350 * objects/network/bus.c:
9353 * objects/custom/custom_object.c:
9354 * objects/network/wanlink.c:
9355 * objects/flowchart/parallelogram.c:
9356 * objects/flowchart/ellipse.c:
9357 * objects/flowchart/diamond.c:
9358 * objects/flowchart/box.c:
9359 Removed GTK defaults stuff.
9361 * objects/UML/fork.c:
9362 * objects/UML/object.c:
9363 * objects/UML/lifeline.c:
9364 * objects/UML/branch.c:
9365 * objects/GRAFCET/transition.c:
9366 * objects/FS/function.c: Removed GTK include.
9368 * objects/FS/flow-ortho.c:
9369 * objects/FS/flow.c: Made the label behave again.
9370 Also removed GTK defaults stuff.
9372 2002-08-06 Hans Breuer <hans@breuer.org>
9374 * app/autosave.c : ported to GDir which is the improved
9375 cross platform replacement for <dirent.h>
9377 * app/makefile.msc : build autosave.obj
9379 * app/font.c : some (bad?) code calls
9380 dia_font_scaled_decent() not only with empty string but
9381 with NULL. Handle it gracefully.
9383 * lib/paper.c : don't depend on ../app. Although IMO
9384 this shouldn't be allowed on any platform it is only
9385 disabled for win32, where it simply doesn't work
9388 * lib/widget.c (strcase_equal) : pass char* to g_strcasecmp()
9390 * objects/fs/flow.c : conditionalize debug spew, disabled
9391 and 'ported' to use g_print. Simple printf won't work with
9392 standard win32 gui apps, may even crash them.
9394 * plug-ins/makefile.msc : DISABLED svg-import cause it
9395 depends on ../objects/custom. This not only break the
9396 build for all non ELF systems but IMO also isn't acceptable
9397 from a design point of view. See dia-list mail on subject.
9399 * plug-ins/python/makefile.msc :
9400 plug-ins/python/python.c : remove all references to dirent
9402 2002-08-05 Cyrille Chepelov <cyrille@chepelov.org>
9404 * configure.in: added ro to ALL_LINGUAS
9408 * ../translation-graphs/transgraph.py: added support for fuzzy
9409 translations. Enlarged the graphs.
9411 2002-08-05 Lars Clausen <lrclause@cs.uiuc.edu>
9413 * app/disp_callbacks.c (ddisplay_canvas_events): Now translates
9414 key events according to locale. No clue if this works for
9417 2002-08-04 Lars Clausen <lrclause@cs.uiuc.edu>
9419 * lib/text.c: Various UTF8 related fixes, in particular in
9420 deleting. Text_insert_char is fine, far as I can tell.
9422 * app/interface.c (create_display_shell):
9423 * app/commands.c: Now uses gtk_clipboard functions, for they are
9424 much simpler. Also handles Win32 clipboard. Non-ascii chars
9425 don't seem to get handled correctly by text_insert_char in
9428 * app/commands.c (received_selection_handler): Got utf8 handling
9429 on paste, and individual char handling out of commands.c. Pasting
9430 non-ASCII is still broken, somehow. It's all lib/text.c's fault.
9432 * lib/message.c (gtk_message_internal): Message dialog re-shown
9433 when new message appears. Maybe it should even move to top?
9437 * app/render_eps.c (create_eps_renderer): Fonts now lowercase
9438 (again) and case-insensitive.
9440 * objects/GRAFCET/condition.c (CONDITION_FONT): Changed to
9443 2002-08-02 Lars Clausen <lrclause@cs.uiuc.edu>
9445 * app/commands.c (edit_cut_text_callback):
9446 * lib/text.c (text_delete_all): Now functioning undo for text cut.
9448 * app/commands.c (edit_cut_text_callback): Now removes text.
9449 Undo is broken, though.
9451 2002-08-01 Lars Clausen <lrclause@cs.uiuc.edu>
9453 * app/diagram.c (diagram_update_menu_sensitivity):
9454 Making cut_text active.
9457 * app/commands.c: Using PROP_TYPE_TEXT to find text to copy to
9458 clipboard. Also removed AA callback.
9460 2002-08-01 Lars Clausen <lrclause@cs.uiuc.edu>
9462 * objects/chronogram/chronoref.c:
9463 * objects/chronogram/chronoline.c:
9464 * objects/SADT/annotation.c:
9465 * objects/SADT/arrow.c:
9466 * objects/SADT/box.c:
9467 * objects/GRAFCET/vergent.c:
9468 * objects/GRAFCET/vector.c:
9469 * objects/GRAFCET/step.c:
9470 * objects/GRAFCET/condition.c:
9471 * objects/GRAFCET/action.c:
9472 * objects/ER/participation.c:
9473 * objects/ER/relationship.c:
9474 * objects/ER/entity.c:
9475 * objects/ER/attribute.c:
9476 Removing unnecessary GTK references.
9478 2002-07-31 Lars Clausen <lrclause@cs.uiuc.edu>
9480 * objects/standard/image.c:
9481 * objects/standard/textobj.c:
9482 * objects/standard/ellipse.c:
9483 * objects/standard/polygon.c:
9484 * objects/standard/beziergon.c:
9485 * objects/standard/box.c:
9486 Making default default properties.
9488 * objects/standard/image.c:
9489 * objects/standard/arc.c:
9490 * objects/standard/box.c:
9491 * objects/standard/zigzagline.c:
9492 * objects/standard/polyline.c:
9493 * objects/standard/line.c:
9494 * objects/standard/ellipse.c:
9495 * objects/standard/polygon.c:
9496 * objects/standard/beziergon.c: Removing vestigal GTK stuff.
9498 * lib/object_defaults.c (dia_object_default_create):
9501 * lib/object.c (object_copy_using_properties):
9502 * lib/propdialogs.c:
9503 * lib/propinternals.h:
9504 * lib/propobject.c (object_create_props_dialog)
9505 (object_copy_props):
9506 Removing the standard (toolbox) properties from defaults dialogs.
9508 2002-07-30 Lars Clausen <lrclause@cs.uiuc.edu>
9510 * lib/font.c (dia_font_scaled_string_width)
9511 (dia_font_scaled_ascent, dia_font_scaled_descent): Account for
9513 * lib/text.c (text_calc_boundingbox): Take descent into account.
9515 * objects/standard/bezier.c (bezierline_draw):
9516 * lib/render.c (draw_bezier_with_arrows):
9517 Better arrow drawing for beziers. Doesn't change the mouse-click
9520 * lib/arrows.h: Some const-ness.
9522 * lib/arrows.c (calculate_arrow_point): Initialize zero-length moves.
9524 * lib/render.c (draw_arc_with_arrows):
9525 * objects/standard/arc.c (arc_draw): Better arrow drawing for
9526 arcs. Doesn't change the mouse-click area yet.
9528 * app/menus.c: Forgotten fix: Redraw menu item for non-Gnome.
9534 2002-07-29 Lars Clausen <lrclause@cs.uiuc.edu>
9536 * app/group.c (group_draw): Forgotten commit: Groups to draw as
9537 objects (using default routines).
9541 * lib/diagramdata.h:
9542 * lib/diagramdata.c (layer_find_closest_connectionpoint):
9543 * objects/standard/zigzagline.c (zigzagline_move_handle):
9544 * app/diagram.c (diagram_find_closest_connectionpoint):
9545 * plug-ins/python/pydia-diagram.c
9546 (PyDiaDiagram_FindClosestConnectionPoint):
9547 * app/object_ops.c (object_connect_display)
9548 (object_find_connectpoint_display)
9549 * app/create_object.c (create_object_button_press)
9550 (create_object_motion):
9551 * app/modify_tool.c (modify_motion):
9552 Adding object param to allow connectionpoint and handle coinciding.
9554 * objects/standard/zigzagline.c (zigzagline_check_orientation):
9555 Fixing minor problems.
9557 * objects/standard/ellipse.c (ellipse_update_data):
9558 Added direction hints.
9560 * lib/diagramdata.c:
9563 * lib/diagramdata.h:
9564 * objects/standard/zigzagline.c:
9565 First working example of zigzagline hints, currently only between
9568 2002-07-27 Steffen Macke <sdteffen@web.de>
9570 * plug-ins/svg/render_svg.c: added support for rounded
9571 rectangles (fixes #69053 if compile with
9573 * object/custom/shape_info.[c|h]: made parse_style and
9574 parse_path accessible for svg plug-in
9575 * plug-ins/svg/Makefile.am:
9576 * plug-ins/svg/svg.c:
9577 * plug-ins/svg/svg-import.c(new): added SVG import filter
9579 2002-07-27 Lars Clausen <lrclause@cs.uiuc.edu>
9581 * objects/standard/box.c:
9582 * objects/standard/zigzagline.c (zigzagline_move):
9583 More work on zigzagline hints.
9585 2002-07-26 Lars Clausen <lrclause@cs.uiuc.edu>
9586 * lib/connectionpoint.h:
9587 Hints for zigzaglines.
9589 * app/properties.c (properties_show):
9590 * app/defaults.c (defaults_show):
9592 * lib/propobject.c (object_create_props_dialog):
9594 * objects/FS/flow-poly.c:
9595 * objects/network/wanlink.c:
9596 * objects/network/bus.c:
9597 * objects/UML/class.h:
9598 * objects/UML/class_dialog.c:
9599 * objects/UML/association.c:
9600 Start of removing toolbox props from props dialogs.
9604 * app/lineprops_area.c (dia_arrow_chooser_new):
9605 * lib/arrows.c: Two new arrows: Concave, filled and blanked.
9607 * app/create_object.c:
9608 * app/modify_tool.c:
9613 2002-07-25 Lars Clausen <lrclause@cs.uiuc.edu>
9615 * app/preferences.c:
9617 * app/diapagelayout.c:
9618 New prefs selector kind PREF_CHOICE chooses between a list of
9619 strings. Used for picking default paper.
9621 * app/preferences.c (prefs_data):
9622 * lib/paper.c (get_paper_info): Added prefs setting for
9625 * lib/render.c (draw_polyline_with_arrows): Handles degenerate
9626 line segments at the ends (bug #86603).
9628 2002-07-25 Lars Clausen <lrclause@cs.uiuc.edu>
9630 * objects/standard/zigzagline.c (zigzagline_copy): Fix for bug
9631 #60324: Now calls update_data after copy.
9633 * app/interface.c (fill_sheet_wbox): Better fix for bug #88601:
9634 Now doesn't steal selection from non-object tools.
9636 2002-07-24 Lars Clausen <lrclause@cs.uiuc.edu>
9638 * app/commands.c (help_manual_callback): Uses BROWSER environment
9639 variable when available.
9641 2002-07-23 Lars Clausen <lrclause@cs.uiuc.edu>
9643 * app/interface.c (fill_sheet_wbox): Fix for bug #88601: Select an
9644 object from the new sheet when changing.
9646 * app/app_procs.c (app_init): Uses more standard size icon, from
9647 patch #56433. Keeping old icon as dia_gnome_icon_large.png.
9649 2002-07-22 Lars Clausen <lrclause@cs.uiuc.edu>
9651 * objects/UML/implements.c (implements_update_data):
9652 * objects/UML/realizes.c (realizes_update_data):
9653 * objects/UML/dependency.c (dependency_update_data):
9654 Test for null strings before calling on ascent.
9656 * objects/UML/realizes.c (realizes_draw):
9657 * objects/UML/message.c (message_draw):
9658 * objects/UML/generalization.c (generalization_draw):
9659 * objects/UML/dependency.c (dependency_draw)
9660 * objects/UML/constraint.c (constraint_draw):
9661 * objects/GRAFCET/condition.c (condition_draw):
9662 * objects/UML/association.c (association_draw):
9663 * objects/FS/flow-ortho.c (orthflow_draw):
9664 * objects/FS/flow.c (flow_draw): Change to use
9665 draw_foo_with_arrows. Pretty pretty arrows. Yay me!
9668 * lib/arrows.c (calculate_arrow_point):
9671 * objects/standard/zigzagline.c:
9672 * objects/standard/polyline.c:
9673 * objects/standard/line.c: Work towards better arrow drawing.
9675 2002-07-21 Lars Clausen <lrclause@cs.uiuc.edu>
9677 * objects/UML/state.c: Starting phase-out of State object as
9678 initial/final state (which never worked right).
9680 * app/app_procs.c (app_init): --version command line option for
9683 * configure.in: Slight improvement in GETTEXT_PACKAGE handling.
9685 2002-07-19 Lars Clausen <lrclause@cs.uiuc.edu>
9687 * app/render_eps.c: Removed debugging info.
9689 * lib/font.c (dia_font_scaled_ascent, dia_font_scaled_descent):
9690 Kludge to make ascent and descent work for empty strings. Won't
9691 work when using non-ASCII fonts. Better would be to get a
9692 PangoFont and ask directly.
9694 * configure.in: Simple define of GETTEXT_PACKAGE, and some updates
9697 * app/render_gdk.c (get_text_width): Fixed use of wrong string.
9700 2002-07-18 Lars Clausen <lrclause@cs.uiuc.edu>
9702 * plug-ins/xfig/xfig-export.c: First use of draw_object render
9703 function: All shapes are now groups in XFig export.
9705 * lib/diagramdata.c (normal_render):
9708 * app/display.c (ddisplay_obj_render):
9709 New render function for drawing objects, allows renderers to group
9710 or otherwise specially handle objects. We may want to reconsider
9711 calling it in app/display.c, as we 'know' the object draw function
9712 is the default one there.
9714 * lib/Makefile.am: Removed extra \ that broke stuff.
9716 * plug-ins/xfig/xfig-import.c:
9717 Spline import for xfig. Not perfect.
9719 * objects/standard/create.h:
9720 * objects/standard/bezier.c (bezierline_create):
9721 * lib/bezier_conn.c:
9722 * lib/beziershape.c (beziershape_set_points):
9723 * lib/bezier_conn.h:
9724 * lib/beziershape.h:
9725 Support for creating beziers non-interactively.
9727 2002-07-17 Lars Clausen <lrclause@cs.uiuc.edu>
9729 * plug-ins/xfig/xfig-import.c: Support for polygons and
9730 polylines. Special warning handling system removed.
9732 * lib/message.c (gtk_message_internal): Fixed bug involving
9733 closing message window and then getting repeated message.
9737 * configure.in (GETTEXT_PACKAGE):
9738 Update based on bug #88199. Hopefully this doesn't break too much
9741 * dia.desktop.in (_Comment): Changed after suggestion from
9742 calum.benson@ireland.sun.com (bug 88345)
9744 * app/sheets_dialog_callbacks.c: Fix from Dolores Alia de Saravia
9745 <loli@unsa.edu.ar> that makes user/system distinction better.
9747 2002-07-16 Lars Clausen <lrclause@cs.uiuc.edu>
9749 * app/render_libart.c: Got the context right, removed crashes.
9759 Remove libart #defines from most places (still around for png export).
9761 * app/render_libart.h:
9762 * app/render_libart.c:
9763 * configure.in (HAVE_LIBART):
9764 Starting on update of libart stuff for png export (without X).
9766 * app/autosave.h (autosave_check_autosave):
9769 * app/Makefile.am (dia_core_files):
9771 * app/diagram.c (diagram_set_modified):
9773 * app/app_procs.c (app_init):
9774 Autosave support. No automatic restore yet.
9776 2002-07-16 Lars Clausen <lrclause@cs.uiuc.edu>
9778 * app/render_eps.c (create_eps_renderer): #ifdef'd a scale
9781 2002-07-15 Lars Clausen <lrclause@cs.uiuc.edu>
9783 * app/interface.c (fill_sheet_menu): Tear-off for sheets menu.
9785 2002-07-15 Andrew Ferrier <andrew@new-destiny.co.uk>
9787 * Fix for 'make dist' etc. --- problem caused by
9788 previous AUTHORS patch.
9790 2002-07-14 Lars Clausen <lrclause@cs.uiuc.edu>
9792 * plug-ins/cgm/cgm.c (init_fonts): Changed pango_font_map to
9794 (set_font): NULL check.
9796 2002-07-12 Lars Clausen <lrclause@cs.uiuc.edu>
9798 * app/disp_callbacks.c:
9800 Addition to the object menus allows check menu items.
9802 2002-07-11 Andrew Ferrier <andrew@new-destiny.co.uk>
9804 * HACKING: completely changed to bring up-to-date.
9805 * AUTHORS: file needs REMOVING from CVS as now
9806 dynamically generated.
9807 * app/authors.h: split into subcategories for original
9808 authors, maintainers, etc.
9809 * app/app_procs.c: --credits rewritten to support new
9811 * app/commands.c: no changes to about box code, comment
9813 * Makefile.am: added rule for AUTHORS. I'm still
9814 inexperienced with automake, it seems to work, but
9815 for AUTHORS-related bugs, look at this change first.
9817 2002-07-10 Lars Clausen <lrclause@cs.uiuc.edu>
9819 * plug-ins/Makefile.am (SUBDIRS): Just realized why my hack didn't
9820 work. Back to including xslt dir always.
9822 * objects/UML/uml.c:
9823 * objects/UML/class.h:
9824 * objects/UML/class_dialog.c:
9825 * objects/UML/class.c: Patch from
9826 <mattam@netcourrier.com>: Adds comment visibility switch, also
9829 Big patch from Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
9830 for state/fork/activity stuff.
9831 * objects/UML/state.c: Removed old draw_rounded_rectangle code.
9832 * objects/UML/Makefile.am:
9833 * objects/UML/uml.c:
9834 * sheets/UML.sheet.in: Added new objects activity, fork,
9836 * objects/UML/pixmaps/state_term.xpm:
9837 * objects/UML/state_term.c: New, only initial/final states.
9838 * objects/UML/pixmaps/activity.xpm:
9839 * objects/UML/activity.c: New, activity state.
9840 * objects/UML/pixmaps/fork.xpm:
9841 * objects/UML/fork.c: New, fork/join bar.
9842 * objects/UML/pixmaps/state.xpm: state icon.
9846 * doc/shape.dtd: Patch from "Dolores Alia de Saravia"
9847 <loli@unsa.edu.ar> to add dia: to diagram.dtd elements and add
9850 2002-07-07 Lars Clausen <lrclause@cs.uiuc.edu>
9852 * plug-ins/Makefile.am (SUBDIRS): Made the XSLT dir depend on
9855 * app/Makefile.am: Commented out the diaconv parts while it's not
9856 used anyway. To come back later.
9858 * configure.in (HAVE_FREETYPE):
9861 * app/render_eps.c: Support for printing with freetype, better
9862 encapsulated now. Renders the text nicely, but ignores font
9863 setting. Requires pangoft2 to get the font outline, but non-text
9864 objects can still be rendered without it.
9867 * app/commands.c (objects_place_up_callback)
9868 (objects_place_down_callback):
9870 * app/diagram.c (diagram_place_down_selected)
9871 (diagram_place_up_selected): Starting support for moving objects
9874 * app/menus.c: Removed character/numeral shortcuts.
9876 2002-07-06 Hans Breuer <hans@breuer.org>
9878 * makefile.am app/makefile.am lib/makefile.am
9879 objects/makefile.am plug-ins/makefile.am
9880 plug-ins/python/makefile.am :
9881 added required files for win32 build to EXTRA_DIST
9883 * app/paginate_psprint.c app/render_eps.c
9885 wrap (E)PS Renderer into HAVE_FREETYPE, no FreeType
9886 on Pango as currently is on win32 => no PostScript
9889 * lib/widgets.c : undef GTK_DISABLE_DEPRECATED;
9890 use '/* noop */;' for empty case labels; replace
9891 debug spew printf with g_print which is guaranteed
9892 to work on win32, too.
9894 * lib/font.c (dia_pfd_set_weight) : set 'intermediate' values
9895 for DIA_FONT_MEDIUM and DIA_FONT_DEMIBOLD as explicit allowed
9896 in the pango_font_description_set_weight() api documentation
9897 Take care for them in dia_font_get_style() too.
9899 * lib/font.[hc] lib/widget.c objects/custom/shape_info.c
9900 plug-ins/shape/shape-export.c plug-ins/svg/render_svg.c :
9901 rename Obliquity to Slant which appears to be the usual name,
9902 also rename dia_font_get_style_string -> dia_font_get_slant_string
9904 * plug-ins/wmf/wmf.cpp : finally ported to new font api
9906 * lib/prop_attr.c app/render_gdk.c : dont *_unref if NULL
9908 * objects/uml/association.c class.c large_package.c message.c
9909 if g_free() is used g_strdup needs to be used.
9910 * objects/custom/shape_info.c
9911 objects/ER/attribute.c entity.c
9912 objects/standard/image.c
9913 app/sheets_dialog_callbacks.c : more strdup cleaning
9915 2002-07-05 Lars Clausen <lrclause@cs.uiuc.edu>
9917 * app/render_eps.c: Non-crashing printing (made the right
9918 context). Font output still fscked up.
9920 2002-07-05 Andrew Ferrier <andrew@new-destiny.co.uk>
9922 * app/authors.h: Added file --- now master
9923 location for contributors data.
9924 * app/app_procs.c: Added --credits option.
9925 * app/commands.c: Modified about box to use
9928 2002-07-05 Lars Clausen <lrclause@cs.uiuc.edu>
9930 * app/render_eps.c: First stab at EPS rendering using the contour
9931 code from PAPS. Crashes.
9933 2002-06-30 Lars Clausen <lrclause@cs.uiuc.edu>
9935 * app/recent_files.c (recent_file_history_remove):
9936 Fixed call to g_list_delete_link discarding return value.
9938 * lib/widgets.c (dia_font_selector_set_styles):
9939 * lib/font.h (DiaFontWeight):
9940 * lib/font.c (dia_font_get_style): Revert to DIA_FONT_NORMAL==0
9942 2002-06-30 Cyrille Chepelov <cyrille@chepelov.org>
9944 Contribution from Alan Horkan <horkana@tcd.ie>:
9947 * sheets/Assorted.sheet:
9948 A set of 40 assorted geometric shapes.
9950 * sheets/Assorted.sheet.in:
9951 * sheets/Makefile.am
9952 * shapes/Assorted/Makefile.am:
9953 * shapes/Makefile.am:
9956 Done the integration job of Alan's shapes. (Translators: have fun!)
9958 * po/dia.pot: refreshed the main potfile.
9960 2002-06-28 Cyrille Chepelov <cyrille@chepelov.org>
9962 Patch from Tim Ellis <Tim.Ellis@gamet.com>:
9964 * objects/UML/class.[ch]:
9965 * objects/UML/class_dialog.c:
9966 changed the number of connection points from a hardcoded value of
9967 8 to a #defined constant
9969 (I changed the constant back from 20 to 8, until we better know
9970 how we'll handle more connection points on the UML class in the
9971 future -- but Tim's patch is a welcome clean-up).
9973 2002-06-26 Cyrille Chepelov <cyrille@chepelov.org>
9975 * shapes/MSE/demultiplexer.xpm:
9976 * shapes/MSE/node_center.xpm:
9977 * shapes/MSE/multiplexer.xpm:
9978 * shapes/MSE/tacsat.xpm: updated MSE icons (transparency) by Alan
9979 Horkan <horkana@tcd.ie>
9981 2002-06-25 Lars Clausen <lrclause@cs.uiuc.edu>
9983 * lib/widgets.c: Total rehash of font selector, with font dialog
9984 option, expanding list (not LRU yet), and stuff.
9986 2002-06-25 Cyrille Chépélov <cyrille@chepelov.org>
9990 Added a set of new setter/getters, some of them more specially for
9993 * plug-ins/shape/shape-export.c: (new_shape_renderer),
9994 (destroy_shape_renderer), (set_font), (draw_string):
9995 * plug-ins/svg/render_svg.c: (new_svg_renderer),
9996 (destroy_svg_renderer), (set_font), (draw_string):
9998 Actually exported the font face, style, weight and size (sodipodi
9999 agrees with dia on how a small sample should look like (a sample
10000 0.90 would not even display anyways). Yay !)
10002 Patch from Matthieu Sozeau <mattam@netcourrier.com>:
10004 * plug-ins/xslt/Makefile.am: repaired the mess Cyrille put there.
10006 (end of ChangeLog-less patch)
10008 * objects/custom/shape_info.c (parse_style): now understands the
10009 font-style and font-weight attributes as well. Does not use
10010 anymore dia_font_new_from_legacy_name().
10012 2002-06-24 Lars Clausen <lrclause@cs.uiuc.edu>
10014 * objects/standard/textobj.c: Now uses stdprops for defaults.
10016 * lib/font.h: Changed order of DiaFontWeight entries. Sorry.
10017 * lib/font.c (dia_font_get_style): Style now linear and conversion
10020 * lib/widgets.c (dia_font_selector_set_styles): Fixed the style
10023 2002-06-24 Cyrille Chepelov <cyrille@chepelov.org>
10025 * plug-ins/dxf/dxf-import.c:
10026 using dia_font_new_from_style()
10028 Patch from Matthieu Sozeau <mattam@netcourrier.com>:
10030 * objects/UML/class.[ch]: Added a comment field to class
10031 * objects/UML/uml.[ch]: Added a comment field to attributes,
10032 operations and parameters.
10033 * objects/UML/class_dialog.c: Added code for the new comment
10035 * plug-ins/xslt/*.xsl: Added some code to handle comments.
10036 * plug-ins/xslt/xslt*.c: Clean up based on Cyrille comments.
10037 Added a $directory parameter for stylesheets so the output is
10038 in the good place (not in the $PWD).
10042 * AUTHORS: added contributors, updated maintainers. Removed the
10043 specific areas of action.
10045 * Patch from Andrew Ferrier <andrew@new-destiny.co.uk>, derived
10046 from a patch by Xing Wang <quixon@gnuchina.org>:
10048 * app/commands.c: help_about_callback now supports
10049 new-style GNOME about box as well as old GTK style.
10050 code also tidied (Closes: #85726)
10054 * app/commands.c: fixed the copyright (it's not all FSF), and
10055 maintainers. Synced contributors list with AUTHORS.
10057 2002-06-24 Lars Clausen <lrclause@cs.uiuc.edu>
10059 * lib/message.c: More work on repeating messages, now with
10062 2002-06-24 Hans Breuer <hans@breuer.org>
10064 * lib/widget.c : some more bits in place, at least
10065 it does something useful instead of crashing. Much
10066 better - but not all ok :-)
10068 2002-06-23 Lars Clausen <lrclause@cs.uiuc.edu>
10070 * lib/message.c (gtk_message_internal): First stab at repeating
10073 2002-06-23 Cyrille Chepelov <cyrille@chepelov.org>
10076 * objects/GRAFCET/*.c:
10077 * objects/SADT/*.c:
10078 * objects/UML/association.c: (one instance forgotten)
10079 * objects/UML/large_package.c:
10080 * objects/standard/textobj.c:
10081 * lib/attributes.c:
10083 using dia_font_new_from_style()
10085 2002-06-23 Hans Breuer <hans@breuer.org>
10087 * lib/font.c : giving some love to
10088 dia_font_new_from_legacy_name() that is making
10089 import of old files as painless as possible and
10090 provide an almost exact match where possible.
10091 It does not yet fully work because it interfers
10092 with the Style to DiaStyle conversion which comes
10095 [Changing these files is only allowed with Dia-0.90]
10096 * broken-files/fonts-0.90.dia : including the
10097 common hard-coded fonts from Dia-0.90. It also
10098 has drawn bounding-boxes for win32 as they were calculated
10099 from the former version (they were all too big).
10100 * broken-files/fonts-0.90-full.dia : all hardcoded
10101 fonts including the asian versions. On my machine
10102 this gives _a lot_ complaining about missing fonts
10103 and a finally a broken file display. Anyone having
10106 2002-06-23 Cyrille Chepelov <cyrille@chepelov.org>
10108 * objects/chronogram/*.c:
10109 * objects/custom/custom_object.c:
10111 using dia_font_new_from_style()
10113 2002-06-23 Lars Clausen <lrclause@cs.uiuc.edu>
10115 * lib/widgets.c (dia_font_selector_set_styles): Improvements to
10116 font selector (stability, insensitivity).
10118 * lib/font.c (dia_font_scaled_build_layout): Removed unworkable
10119 stretching scheme for tweaking, and made scaling scheme faster
10120 (but less precise).
10121 (dia_font_dia_style_to_pango): Oops, % != /.
10123 2002-06-23 Cyrille Chepelov <cyrille@chepelov.org>
10126 * patch from Matthieu Sozeau <mattam@netcourrier.com>:
10128 * plug-ins/xslt : Added an XSLT plugin to export dia files using
10129 XML Stylesheets. The plug-in requires DIA_PLUGIN_PATH to be set.
10130 It includes a small config file to tell it what stylesheets to use.
10134 * plug-ins/xslt/xsltdialog.c: modified the dialog to be more
10135 GTK2.0/HIG compliant (the labels could be slightly more verbose,
10136 perhaps). Added back a couple forgotten _(). Removed //-style
10139 2002-06-23 Hans Breuer <hans@breuer.org>
10142 (dia_plugin_get_name) : don't crash plugin_manager
10144 (dia_plugin_load) : reuse the description field to
10145 store the error string if loading fails.
10147 * lib/font.[hc] : starting to beautify the new
10148 font api: proper namespacing, adding convenience
10149 functions like dia_font_new_from_style(), ...
10151 * objects/uml/*.c : use the new convenience functions.
10153 [Next thing I plan to do is changing the other font
10154 functions to take DiaStyle and make Style and
10155 BASIC_*_FONT vanish. As well as giving some love to
10156 dia_font_new_from_legacy_name().
10157 If anyone want's to help on converting the other
10158 objects to the new api during that, I would highly
10161 2002-06-23 Hans Breuer <hans@breuer.org>
10163 * lib/font.c : made it compile and small indent fixes.
10164 Is there a code-has-no-effect-so-needs-not-be-valid
10167 * lib/widgets.c : use g_strcasecmp
10169 2002-06-22 Lars Clausen <lrclause@cs.uiuc.edu>
10173 * lib/widgets.c: Font names sorted, style selector widget
10174 reappeared. Doesn't select the old style yet.
10176 2002-06-22 Cyrille Chepelov <cyrille@chepelov.org>
10178 * lib/font.c: one who expects a text's font to be changed shall
10179 actually request the attributes to apply to the whole range of the
10182 * lib/font.c: extents computation was wrong.
10184 * lib/font.c: dia_font_get_legacy_name(); g_strconcat works better
10185 if a last NULL parameter is added...
10187 * lib/font.c: extents computation was completely wrong. This looks
10188 much better this time.
10190 * objects/UML/class.c: fixed the various strings positions.
10192 * lib/font.h, and **/*.[ch] (all callers of dia_font_new): used
10193 macros to get the hardcoded base fonts.
10195 * objects/ER/relationship.c: wasn't converted to DiaFont*
10197 2002-06-22 Hans Breuer <hans@breuer.org>
10199 * lib/widget.c : dont use backend specific functions
10200 to get on the font_families. Including it would mean
10201 including <windows.h> which breaks due to namespace
10204 * lib/libdia.def : updated externals
10206 * app/makefile.msc : temporary disabled: -DHAVE_LIBART
10208 * lib/font.c : added empty dia_font_init_instance function,
10209 reformatting of dia_fon_unref to allow to set breakpoint,
10210 dia_fon_build_layout() : dont crash on string==NULL
10212 * lib/text.c (text_set_attributes) : don't unref the wrong font
10214 * lib/widgets.c (dia_fon_selector_set_font) : our hashtable
10215 stores lowercased font names, but dia_font_get_family()
10218 2002-06-22 Lars Clausen <lrclause@cs.uiuc.edu>
10221 * app/render_gdk.c: Patch from Hans Breuer.
10223 * app/Makefile.am (dia_core_files): diaconv commented out for now.
10225 2002-06-22 Cyrille Chepelov <cyrille@chepelov.org>
10227 * lib/all files touched yesterday: took into account some of Hans
10228 Breuer's remarks in
10229 http://mail.gnome.org/archives/dia-list/2002-June/msg00257.html
10231 * objects/chronogram/*:
10232 * objects/custom/*:
10234 * objects/flowchart/*:
10236 * objects/GRAFCET/*:
10238 * objects/standard/textobj.?:
10240 converted to the new DiaFonts.
10243 * plug-ins/pstricks/*:
10247 Made minimalistic conversions so that they'd at least compile.
10249 * app/render_gdk.c:
10250 * app/render_pixmap.c:
10251 Converted to the new DiaFonts.
10255 * app/render_eps.c:
10256 made the minimal changes so that it would at least build.
10258 *** At this point, the thing builds on my machine, but segfaults
10261 2002-06-21 Cyrille Chepelov <cyrille@chepelov.org>
10263 * configure.in: removed the backend-specific pango pkg_modules
10264 (trivial to add back if needed, when actually needed)
10267 * app/*gnomeprint.[ch]: (removed): removed the GNOME-print
10268 renderer. The APIs will have completely changed when we get around
10269 to redo a renderer for it, anyways.
10271 * font.[ch]: rewrote everything from scratch, with a Pango
10272 implementation. Normally, only backend-neutral things should go in
10275 **WARNING**: new rules for managing DiaFont* pointers: these are
10276 reference-counted GObjects. One >must< diafont_ref() and
10277 diafont_unref() as appropriate. I wish I could overload operator=()...
10279 lib/plug-ins.h: bumped up the plug-in API.
10284 lib/object_defaults:
10285 lib/prop_attr.c: Adapted to the new DiaFont API. This'll change
10286 again tomorrow with GObject.
10288 lib/widgets.c: Adapted to the new DiaFont API and to Pango.
10290 **** The rest of the tree should be updated as well ****
10292 2002-06-21 Lars Clausen <lrclause@cs.uiuc.edu>
10294 * app/render_gdk.h:
10295 * app/render_gdk.c:
10296 * app/render_pixmap.c:
10297 * app/render_pixmap.h:
10298 * app/render_libart.h:
10299 * app/render_libart.c:
10301 * lib/font.c: Removed freetype stuff (still around in
10302 lib/widgets.c 'cause we might want the font selector widget).
10304 2002-06-20 Cyrille Chepelov <cyrille@chepelov.org>
10306 * shapes/network/laptop.(xml|shape):
10307 * sheets/network.sheet.in: added Laptop (notebook) PC shape,
10308 contributed by Alan Horkan <horkana@tcd.ie>. (Closes: #82643)
10310 2002-06-17 Hans Breuer <hans@breuer.org>
10312 * lib/object_defaults.c : #include <libxml/tree.h> not
10313 <tree.h> pointed out by Xing Wang
10315 2002-06-17 Lars Clausen <lrclause@cs.uiuc.edu>
10317 * lib/color.h (GDK_COLOR_TO_DIA, DIA_COLOR_TO_GDK):
10319 * app/color_area.c: Update to
10320 gtk_color_selection_*_current_color() fixed bad crash issues, plus
10321 updated color conversions.
10323 * sheets/ER/weakentity.xpm: Accepted patch from
10324 quixon@gnuchina.org to make icon match actual appearance.
10326 * app/recent_files.c: Fixed GNOME recent file problem, thanks to
10327 quixon@gnuchina.org.
10329 2002-06-16 Hans Breuer <hans@breuer.org>
10331 * lib/plug-in.[hc] : make PlugInInfo opaque again in the
10332 good tradition of information hiding. Add new function
10333 dia_plugin_get_symbol()
10334 * app/sheets.c app/sheets_dialog_callbacks.c : use it
10336 * app/sheets.c : stop complaining about object_get_type()
10337 returning NULL. This is a consequence of e.g. disabling
10338 plug-ins at runtime _and_ it was and is gracefully handled.
10339 Spitting out g_warning for it isn't appropriate.
10341 * lib/object.[ch] : removed dead code
10343 * app/plugin-mangager.c : almost complete rewrite for gtk2
10344 using GtkListStore/GtkTreeView
10346 * lib/libdia.def : updated externals
10348 * todo.gtk2 : updated, that is removed already done steps
10350 2002-06-15 Hans Breuer <hans@breuer.org>
10352 * objects/uml/class_dialog.c : clean some left-over
10353 utf8-mess, return 0 from "focus_out_event" handlers
10354 to avoid asserting in gtk (#78305). Reconstruct
10355 stereotype/NULL behaviour to avoid rendering empty
10356 stereotypes on classes and member functions
10358 [#56109 - Provide object defaults for StdProp objects,
10359 some remaining issues are discussed in bugzilla]
10361 * lib/object_defaults.c : (new file) manage default properties
10362 of dia objects. The serialization is done with standard
10363 object methods in a diagram compatible format.
10365 * lib/object.c : add object_registry_foreach() which allows
10366 to iterate over all registered object types
10368 * lib/object.h : added prototypes object_default*() and
10369 object_registry_foreach()
10371 * lib/makefile.am lib/makefile.msc : add new file to build
10373 * lib/libdia.def : export new functions
10375 * app/defaults.c : provide StdProp based defaults if the
10376 ObjectType doesn't implement it's own default functions
10378 * app/create_object.c : through dia_object_default_create()
10379 * app/disp_callbacks.c : same here
10381 2002-06-12 Lars Clausen <lrclause@cs.uiuc.edu>
10383 * objects/FS/flow-ortho.c (orthflow_get_object_menu): Menu
10384 sensitivity for deleting segments.
10386 2002-06-12 Cyrille Chépélov <cyrille@chepelov.org>
10388 * app/color_area.c: (color_area_events):
10389 * app/diagram.c: (diagram_destroy):
10390 * app/interface.c: (zoom_activate_callback), (fill_sheet_wbox),
10392 * app/load_save.c: (diagram_data_load):
10393 * app/menus.c: (menus_get_item_from_path):
10394 * app/preferences.c: (prefs_load):
10395 * app/render_gdk.c: (get_text_width):
10397 * lib/color.c: (color_convert):
10398 * lib/dia_dirs.c: (dia_config_filename):
10399 * lib/dia_xml.c: (xmlDiaParseFile), (data_type):
10400 * lib/intl.c: (intl_get_language_list):
10401 * lib/message.c: (message):
10403 * lib/paper.c: (get_default_paper):
10404 * lib/plug-ins.c: (this_is_a_plugin), (dia_register_plugins):
10405 * lib/widgets.c: (dia_file_selector_get_file):
10407 * objects/standard/image.c: (get_directory):
10411 2002-06-12 Lars Clausen <lrclause@cs.uiuc.edu>
10413 * ChangeLog: Fixed bad UTF-8 mess. Apologies.
10415 2002-06-11 Lars Clausen <lrclause@cs.uiuc.edu>
10417 * app/interface.c: sscanf now returns EOF on empty string, so
10418 handle no match for zoom factor better => correct zoom at start.
10420 * app/sheets.c (create_object_pixmap): Tried to display empty error.
10421 (sheets_optionmenu_create): Died when not finding specified
10422 sheet. Don't think it should.
10424 * objects/UML/association.c: Added patch from osamyn@ulb.ac.be
10425 (bug #84367) to place the text better.
10427 2002-06-11 Cyrille Chepelov <cyrille@chepelov.org>
10429 * configure.in: Added forgotten libgnomeui-2.0 when --enable-gnome
10431 * app/commands.c: Removed unnecessary gnome include. Removed
10432 GNOME-Print support.
10434 * app/menus.h: Removed now unnecessary gnome include.
10436 * app/sheets_dialog.c: Used Gtk 2.0 stock buttons instead of
10437 GNOME-specific stock buttons
10439 2002-06-09 Hans Breuer <hans@breuer.org>
10441 * app/app_procs.c : convert 'Modified diagrams exits'
10442 dialog to use GtkMessageDialog. That gives us:
10443 - icons without Gnome dependency
10444 - much less code, also cross platform
10445 - improved useability ?
10447 * app/color_area.c : the Color Selection Widget looked
10448 quite wrong (alpha problems). Fix it by merging in required
10449 changes stolen from The Gimp cvs
10450 * app/color_area.h : to get the right appearance the maskes
10451 needed to be taken into account
10452 * app/interface.c : adapt to color_area_create changes.
10453 Also remove some dead code and finally remove cvs autexpansion,
10454 I was bothered enough by irrelevant differences :-)
10456 * app/defaults.c app/properties.c app/dia-props.c : use improved GtkDialog
10457 api, i.e stocks and response to make the GnomeDialog usage
10458 obsolete. Also fixed the issue with closing the 'parent'
10459 before closing the dialog
10461 * app/display.[ch] : removed some dead code and conversion
10462 to new GtkDialog api. Also trying to conform to new HIG
10463 standard http://developer.gnome.org/projects/gup/hig/
10465 2002-06-09 Hans Breuer <hans@breuer.org>
10467 * lib/makefile.msc : define GTK_DISABLE_DEPRECATED,
10470 * lib/dia_image.c : gtk_widget_set_default_visual()
10471 remove. It does nothing with Gtk2.
10473 * lib/libdia.def : added ps_unicoder exports
10475 * lib/message.c : remove #GNOME use GtkMessageDialog.
10476 Yeah, Dia gets dialogs wit icons cross-platform.
10478 * lib/prop_geomtypes.c : gtk_spin_button_get_value_as_float()
10479 to gtk_spin_button_get_value()
10481 * lib/prop_inttypes.c : gtk_label_set() -> gtk_label_set_text()
10483 add #undef GTK_DISABLE_DEPRECATED to still use ...
10484 * lib/prop_text.c : ... GtkText
10485 * lib/prop_widgets.c : ... GtkList
10486 * lib/prop_dialogs.c : ... gtk_signal_connect and more
10487 * lib/widgets.c : ... (too much to list here)
10489 * lib/ps-utf8.c : #include <string.h>
10491 2002-06-08 Cyrille Chepelov <cyrille@chepelov.org>
10494 * Makefile.am: Adapted for gtk2.
10495 Removed dependencies on libunicode, on iconv(), on langinfo().
10497 * acconfig.h: removed (now obsolete)
10499 * lib/charconv.[ch]: removed (superceded by glib)
10500 * lib/ps-utf8.[ch]: removed dependency on charconv.[ch]
10502 * **/*.[ch]: removed (utfchar *), (unichar) and other charconv or
10503 libunicode types for their glib counterparts. Fixed the include
10504 paths for libxml2. Removed all traces of libxml1 or non-UTF8
10505 support (there were remains in objects/uml).
10508 2002-06-08 Hans Breuer <hans@breuer.org>
10510 */*.c */*/*.c : remove all the #ifdef *_UTF8_* hell,
10511 only keep the utf-8 clean code cause Dia+Gtk2 now talk it.
10512 Also use g_strdup()'s handling of NULL by returning NULL
10513 again at all places I found (remove unnecessary if's)
10515 * todo.gtk2 : new file to keep notes about gtk2 porting,
10516 further issues and thoughts and some status information.
10517 Also sent to dia-list ('Dia goes Gtk2 ...').
10519 [make it compile with GTK+ 2.0]
10521 * config.h.win32 : #undef GTK_TALKS_UTF8_WE_DONT,
10522 removed definition of S_ISDIR, S_ISREG and getlogin
10524 * */makefile.msc : Use GTK2 and libxml2
10525 BEWARE: makefile.am, configure.in not yet ported !
10527 * app/app_procs.c app/diagram.c : remove
10528 gtk_item_factory_dump_rc code, (it wasn't read in again anyway)
10529 but set use gtk_menu_set_accel_path() on menu creation
10531 * app/color_area.c lib/widgets.c :
10532 make use of gtk_color_selection_set_has_palette ()
10534 * app/commands.c : gdk_pixbuf_new_from_file wants an
10535 extra argument. Convert from DIR to GDir usage.
10537 * app/diagram_tree.c(button_press_callback) : need to return
10538 FALSE in the signal handler to let gtk process it further.
10539 (get_object_name) : don't leak 'prop'
10541 * app/diapagelayout.c : adapt to GtkTypeInfo changes and handle
10542 dia_page_layout_destroy() getting called more than once
10544 * app/diaunitspinner.c : GtkEditable -> GtkEntry,
10545 GtkTypeInfo changes
10547 * app/disp_callbacks.c : gtk_menu_append() -> gtk_menu_shell_append()
10549 * app/display.h : wrap input contexts declarations into #ifdef USE_XIM.
10550 IIRC this code will not compile unchanged when USE_XIM is defined ...
10552 * app/gtk[hv]wrapbox.[hc] : use already ported version from The GIMP 1.3.x
10554 * app/interface.c : there is no widget->klass anymore in Gtk,
10555 use GTK_WIDGET_GET_CLASS instead. gdk_pixbuf_new_from_file() extra
10556 parameter. Some tweaking of GtkWrapBox usage to get four tools in
10558 switch off GTK's double buffering on Dia's canvas. Otherwise we would
10559 get triple buffering and flicker.
10560 Replace call to GTK private function _gtk_accel_group_attach()
10561 with public gtk_window_add_accel_group()
10563 * app/layer_dialog.c : adapt to GtkTypeInfo changes
10565 * app/load_save.c lib/plug-ins.c lib/sheet.c
10566 objects/custom/custom.c :
10567 simplified by using g_file_test()
10569 * app/menus.c : convert from gtk_item_factory_<dump|parse>_rc
10570 to gtk_accel_map_<save|load>. Also added common stock-icons
10573 * app/preferences.c : use gtk_button_set_label() instead
10574 of button->child which is gone. Also removed GLIB_CHECK_VERSION.
10576 * app/preferences.c lib/dia_xml.c lib/plug-ins.c :
10577 #ifdef G_OS_WIN32 #include <io.h>, this was formerly done
10580 * app/recent_files.c : removed GLIB_CHECK_VERSION
10583 plug-ins/metapost/render_metapost.c
10584 plug-ins/pstricks/render_pstricks.c
10585 plug-ins/svg/render_svg.c :
10586 replace getlogin() with g_get_user_name() which always
10589 * app/render_gdk.c : gdk_region_union_with_rect() modifies
10590 inplace now and returns nothing, also less #hell
10592 * app/render_libart.c : some initial #hell cleaning, SuckFont
10593 still needs to vanish
10595 * app/splash.c : gdk_pixbuf_new_from_file() second arg and
10596 GTK_WINDOW_DIALOG -> GTK_WINDOW_TOPLEVEL
10598 * app/render_pixbuf.c app/sheets.c : plain #hell cleaning
10599 * app/sheets_dialog_callbacks.c : some #hell and adaptions
10600 needed to GtkWrapBox api changes
10603 * lib/charconv.[hc] : removed from build
10604 [changed appropriate]
10605 * lib/prop_inttypes.c lib/prop_text.c :
10607 * lib/text.c : ported from HEAD but keep original indent
10608 intact. Original was done by Akira TAGOH.
10610 * lib/color.c : GdkColorContext is gone, use GdkColormap instead.
10612 * lib/dia_image.c : gdk_pixbuf_new_from_file() second arg
10614 * lib/dia_xml.c : remove #ifdef GLIB_CHECK_VERSION, it's the
10615 same on all platforms now!
10617 * lib/font.c : still using SuckFont which was an IMPERATIVE FIXME!
10619 * lib/message.c : remove "charconv.h"
10621 * lib/prop_text.c : #define GTK_ENABLE_BROKEN to use GtkText
10624 * lib/sheet.c : convert from DIR to GDir usage
10626 * lib/widgets.c : gtk_menu_(shell_)append and GtkTypeInfo
10628 * lib/widgets.h : include gtk<label|colorseldialog>.h
10631 * objects/fs/flow.c :
10632 * objects/fs/flow-ortho.c : GTK_ENABLE_BROKEN to use GtkText
10634 * objects/custom/custom.c : convert from DIR to GDir usage
10637 * plug-ins/python/makefile.msc : updated for GTK2/Python2.2
10640 2002-05-03 Hans Breuer <hans@breuer.org>
10642 * lib/dia_xml.c : make the well formed utf8 check
10643 actually work for û (non 7-bit ascii encoding)
10644 and fixed the file re-writing if the check fails.
10645 Thanks to Vitaly Lipatov for noticing the misbehaviour.
10647 * lib/font.c : synchronize #ifdef G_OS_WIN32 with
10648 comment on last ressort font. Thanks to Maxim Sobolev.
10650 2002-06-03 Cyrille Chepelov <cyrille@chepelov.org>
10652 * sheets/network.sheet.in: corrected a typo in plotter invocation.
10654 2002-06-03 Steffen Macke <sdteffen@web.de>
10656 * shapes/network/digitizing_board.png:
10657 * shapes/network/digitizing_board.shape:
10658 * shapes/network/plotter.png:
10659 * shapes/network/plotter.shape:
10660 * shapes/network/Makefile.am
10661 * sheets/network.sheet.in: added new plotter and digitizing
10664 2002-06-02 Cyrille Chepelov <cyrille@chepelov.org>
10666 * lib/font.c: made a symptomatic fix to a segfault reported by
10667 Jan Keirse <jan.keirse@pandora.be> on a SuSE 7.3 system. This
10668 won't prevent dia from terminating, but should give more
10669 user-friendly information about why did it terminate.
10671 Two patches from <robert.young@dsto.defence.gov.au>:
10673 * app/display.c: fix the size of the canvas area which gets
10674 redrawn. There was an off-by one error (Closes #83659)
10676 * app/display.c: make sure we redraw all screen only when we
10677 really have to (some update_areas were mistakenly ignored) (Closes
10680 * NEWS: added a new entry for the future. Put there a reminder to
10681 update the dependencies.
10683 * configure.in: put in notes about what will change shortly.
10684 upped the version to 0.90+cvs (did also in config.h.win32)
10685 upped the minimum version for intltools (now 0.21)
10687 2002-06-01 Cyrille Chepelov <cyrille@chepelov.org>
10693 bumped up version number to 0.90. Yay!
10695 2002-05-30 Cyrille Chepelov <cyrille@chepelov.org>
10697 * doc/pl/Makefile.am:
10698 * doc/en/Makefile.am: fixed a "make install" problem when db2html
10699 is not present (Reported by Andrew Ferrier
10700 <andrew.junk@new-destiny.co.uk>). Fixed another "make distclean"
10701 problem which prevented me from ever seeing the problem in doc/en...
10703 * Makefile.am: added autogen.sh to the EXTRA_DIST clause.
10705 * lib/font.c: patch from <robert.young@dsto.defence.gov.au>; add a
10706 way to read the font path from the XFS configuration files in
10707 order to enable FreeType (fixes #83098).
10709 * POTFILES.(in,skip): now skips objects/sybase/sybase.c, which is not
10716 bumped up version number to 0.90.RC3
10718 2002-05-29 Zbigniew Chyla <cyba@gnome.pl>
10720 * configure.in, doc/Makefile.am, doc/pl/Makefile.am,
10721 doc/pl/authors.sgml, doc/pl/dia-manual.sgml, doc/pl/dia-pl.omf,
10722 doc/pl/intro.sgml, doc/pl/license.sgml, doc/pl/topic.dat
10723 doc/pl/usage-canvas.sgml, doc/pl/usage-customization.sgml,
10724 doc/pl/usage-layers.sgml, doc/pl/usage-loadsave.sgml
10725 doc/pl/usage-objects-selecting.sgml, doc/pl/usage-objects-special.sgml,
10726 doc/pl/usage-objects.sgml, doc/pl/usage-quickstart.sgml:
10727 Added Polish documentation.
10729 2002-05-27 Cyrille Cheeplov <cyrille@chepelov.org>
10731 * objects/UML/state.c: there was a (gratuitous?) change of on-XML
10732 format for the UML State object. Now there's a hack to reload
10733 older files, and get them converted on the fly.
10734 Justyna BiaÃ…?a <nell@poczta.gazeta.pl> reported this. Thanks!
10736 * lib/properties.h:
10737 * lib/propobject.c:
10738 * lib/proplist.c: Added a new property flag, PROP_FLAG_LOAD_ONLY,
10739 and adapter the proplist predicates. A LOAD_ONLY property is for
10740 when you have legacy to support but can't resist moving your
10741 fields around... (was needed to support the above state.c fix).
10743 If the in-core of your object changes and you need a LOAD_ONLY
10744 property for the old format, you must keep some spare room in your
10745 object's struct to accomodate for the potential old-style
10746 attributes. Then in foo_load(), after having called
10747 object_load_using_properties(), you must inspect the old-style
10748 fields and act accordingly. Don't ever change the on-disk formats...
10750 * objects/UML/object.c:
10751 * objects/UML/small_package.c: added a check against empty
10752 stereotypes still consuming space. Reported by Dolores Alia de
10753 Saravia <loli@unsa.edu.ar>. Thanks!
10755 2002-05-26 Cyrille Chepelov <cyrille@chepelov.org>
10757 * INSTALL: added platform notes from MÃ¥rten Svantesson, for when
10758 using libtool on an AFS partition.
10760 * po/update_potfiles_in.sh: now simply calls the recent intltools
10761 features; they work better than hand-crafted half-ignorant
10762 scripts. Thanks to Kenneth Rohde Christiansen <kenneth@gnu.org>
10765 * po/POTFILES.in: added back two files update_potfiles_in.sh
10766 didn't take into account. Now this file is not automatically
10768 * po/POTFILES.skip: told `intltool-update -m` what files to ignore
10769 (the usual suspects, in fact).
10771 * configure.in: improved the isinf() / isfinite() detection on
10772 Solaris (MÃ¥rten Svantesson)
10774 2002-05-25 Cyrille Chepelov <cyrille@chepelov.org>
10776 * configure.in: one expression was replacing $CFLAGS, removing
10777 whatever was previously in.
10778 Added more checks for isinf() and finite() on Solaris.
10780 * lib/geometry.h: added a macro defintion for isinf() if not
10781 HAVE_ISINF. (Hans, you may want to #define HAVE_ISINF if relevant
10784 * app/commands.c: "cut" did not set the 'modified' bit (paste has
10785 been for a little while). Fixes #82994.
10787 * Makefile.am: added more stuff to distclean-local. This should make
10788 "make distcheck" pass! Thanks to the author of
10789 http://mail.gnome.org/archives/gnome-2-0-list/2001-August/msg00212.html
10790 ... I wonder who this Henstridge guy is ... ;-)
10791 Darn. Still doesn't pass. I give up for tonight.
10793 * po/update_potfiles_in.sh: updated to take care of sheet files,
10794 and to filter out the EML plug-in.
10795 * po/POTFILES.in: updated with all .c and all .sheet.in files
10797 * po/dia.pot, po/*.po: again updated all .po files with all
10798 strings (with the updated POTFILES). Now with the up-to-date
10799 POTFILES, just all languages have some fuzzy or untranslated
10800 strings (not that the 100% team was that large beforehand...)
10802 * po-checktrans: removed the comment about .po files not holding
10803 all translatable stuff, since now they do.
10805 2002-05-24 Cyrille Chepelov <cyrille@chepelov.org>
10811 bumped up version number to 0.90.RC2
10813 2002-05-20 Hans Breuer <hans@breuer.org>
10815 * app/load_save.c : starting to increase
10816 Dias tolerance on incomplete/broken files. The
10817 corresponding bug is #56233. But the patch there does
10818 neither apply anymore nor does it really fix the problem
10819 but only delays it, e.g. even if it would be allowed
10820 to read a file without any layers, the later code can't
10822 * lib/dia_xml.c : attribute_<num|first>_data(), data_type()
10823 handle passing in NULL for the node gracefully.
10825 * shapes/network/printer.shape : added two more connection
10826 points - one at each side - to fix bug #60359
10828 * app/commands.c (edit_copy_callback) :
10829 add ddisplay_do_update_menu_sensitivity() to make
10830 sequence select-copy-paste work.
10832 2002-05-20 Hans Breuer <hans@breuer.org>
10834 * app/create_object.c (create_object_button_press) :
10835 added a call to ddisplay_do_update_menu_sensitivity()
10836 to make Ctrl^D etc work after object creation.
10839 2002-05-18 Lars Clausen <lrclause@cs.uiuc.edu>
10841 * objects/ER/entity.c:
10842 * objects/ER/attribute.c:
10843 * objects/ER/relationship.c: Patch to allow text size change from
10844 Celso Tetsuo Nagase Suzuki.
10846 2002-05-18 Steffen Macke <sdteffen@web.de>
10848 * app/app_procs.c: #ifdef'd xmlerror.h (comes with
10850 * doc/en/graphics/greendots.png:
10851 * doc/en/home_network.png:
10852 * doc/en/line_props.png:
10854 * dia_gnome_icon.png:
10855 * dia_gnome_menu_icon.png:
10857 * shapes/network/telephone.png:
10858 * shapes/Logic/and.png:
10859 * shapes/Logic/buffer.png:
10860 * shapes/Logic/connector.png:
10861 * shapes/Logic/inverter.png:
10862 * shapes/Logic/nand.png:
10863 * shapes/Logic/nor.png:
10864 * shapes/Logic/not.png:
10865 * shapes/Logic/or.png:
10866 * shapes/logic/xor.png:
10867 * samples/ER-demo.dia:
10868 * samples/SADT.dia:
10869 * samples/UML-demo.dia:
10870 * samples/chronograms.dia:
10871 * samples/grafcet.dia: re-added as binary files
10873 2002-05-17 Hans Breuer <hans@breuer.org>
10875 * lib/libdia.def : reflect removing of render_store.[ch]
10877 * */makefile.mingw : remove VERSION definition it's
10878 done in config.h.win32. Dia still doesn't work if
10879 build with mingw ...
10881 * RELEASE-PROCESS : removed */makefile.mingw
10883 * app/sheets_dialog_callbacks.c : if we use those
10884 ugly charconv_gtk_* functions lib/charconv.h needs to
10886 * lib/charconv.h : ... and needs to contain the
10887 necesseray prototypes _and_ #defines
10889 * plug-ins/shape/shape-export.c : with libxml2 xmlNewGlobalNs
10890 is deprecated and does nothing but spit a warning. This broke
10891 the shape format writing. Fixed.
10892 Also with libxml2 pretty formatted xml isn't the default
10893 anymore, but needs to be enabled explicit: It is done now
10894 for shape files, which almost always needed to be edited by
10897 * app/app_procs.c : #if G_OS_WIN32 redirect xmlErrorReporting
10898 from stderr - which is invalid on Dia/win32 - to g_print -
10899 which opens up a console window if necessary. This way
10900 a xml-deprecation-error shouldn't stay unnoticed next time
10902 2002-05-17 Steffen Macke <sdteffen@web.de>
10904 * shapes/Misc/folder.png:
10905 * shapes/Misc/file.png: re-added as binary files
10907 2002-05-16 Lars Clausen <lrclause@cs.uiuc.edu>
10909 * lib/font.c: Fixed segfault for fonts without family_name.
10911 2002-05-17 Cyrille Chepelov <cyrille@chepelov.org>
10913 * po/POTFILES.in: added app/sheets_dialog_callbacks.c
10915 * app/sheets_dialog_callbacks.c: While reviewing UTF-8isation upon
10916 Lars' request, minor cosmetic stuff (mostly _() of human-readable
10917 XML comments in .sheet files; one translator booby-trap disarmed).
10919 * lib/charconv.c: moved #hell inside the body of the new
10920 charconv_*gtk* functions (otherwise the Win32 or gtk2.0 linker
10923 2002-05-16 Lars Clausen <lrclause@cs.uiuc.edu>
10925 * plug-ins/wpg/Makefile.am (INCLUDES):
10926 * plug-ins/shape/Makefile.am (INCLUDES):
10927 * plug-ins/svg/Makefile.am (INCLUDES):
10928 * plug-ins/pstricks/Makefile.am (INCLUDES):
10929 * plug-ins/metapost/Makefile.am (INCLUDES): Added UNICODE_CFLAGS
10930 and DEBUG_CFLAGS in some missing places.
10932 * MAINTAINERS: New file containing list of known package
10936 * lib/charconv.c: Charconv versions of some common gtk calls.
10938 * app/sheets_dialog_callbacks.c
10939 (on_sheets_new_dialog_button_ok_clicked),
10940 (on_sheets_dialog_button_edit_clicked),
10941 (on_sheets_dialog_button_remove_clicked),
10942 (on_sheets_edit_dialog_button_ok_clicked):
10943 * app/sheets.c (sheets_optionmenu_create),
10944 (sheets_optionmenu_create): Added utf8 translations.
10946 * app/sheets_dialog.c:
10948 * app/sheets_dialog_callbacks.c: Added some missing _()'s.
10950 2002-05-16 Cyrille Chepelov <cyrille@chepelov.org>
10952 * po/POTFILES.in: added app/sheets_dialog.c
10954 2002-05-15 Cyrille Chépélov <cyrille@chepelov.org>
10956 * lib/charconv.c: (charconv_local8_to_utf8),
10957 (charconv_utf8_to_local8): tweaked the warnings to get more
10959 * lib/font.c: (font_get_suckfont): handled a potential case of
10960 uninitialised data being used (just paranoid)
10962 * objects/GRAFCET/boolequation.c: (opstring),
10963 (opblock_get_boundingbox), (opblock_draw),
10964 (boolequation_calc_boundingbox): some extra hoops needed now dia
10965 talks UTF8 (but gtk doesn't). More #hell. Beeek. Basically, the
10966 symbols can't yet be used with their proper Unicode cells, since
10967 gtk will demand them in the Symbol font, expressed in the local
10970 * samples/grafcet.dia: re-saved, now with a fixed bounding box (by
10971 the fix just above).
10973 2002-05-14 Lars Clausen <lrclause@cs.uiuc.edu>
10975 * app/diagram_tree.c (get_object_name): Check that name property
10976 doesn't have null string.
10978 2002-05-13 Lars Clausen <lrclause@cs.uiuc.edu>
10980 * autogen.sh (DIE): Added conditional --force to gettextize.
10982 * app/pagesetup.c (pagesetup_ok): Commented out missing Gnome
10985 2002-05-13 Cyrille Chepelov <cyrille@chepelov.org>
10987 * RELEASE-PROCESS: added James' notes on how to properly make the
10990 * configure.in: removed macro nesting related to libpng.h, which
10991 was causing some problems on some systems (like mine, which made
10992 the snapshots bad).
10994 Made --enable-unicode, previously an option, the mandatory case.
10996 * app/Makefile.am: updated EXTRA_DIST
10999 * app/makefile.mingw:
11001 * doc/en/dia-manual.sgml:
11002 * plug-ins/makefile.mingw:
11003 * configure.in: bumped up the version number to 0.90.RC1
11005 * lib/render_objects.[ch]:
11006 * po/POTFILES.in: removed render_objects from the build.
11008 * plug-ins/Makefile.am:
11009 * plug-ins/wmf/Makefile.am (new): EXTRA_DIST'ed the WMF plug-in,
11010 so we keep its source in the tarball.
11012 * objects/network/*.c, Makefile.am:
11013 * objects/sybase/*.c, Makefile.am:
11014 * po/POTFILES.in: cleaned up the non-existent files from the po
11017 * plug-ins/Makefile.am: re-enabled metapost plug-in.
11019 2002-05-13 Steffen Macke <sdteffen@web.de>
11022 * app/command.c: added M. C. Nelson to the Authors
11023 * sheets/Circuit/Makefile.am: added firewall shape to build
11024 * sheets/network/Makefile.am: added telephone and microphone
11027 2002-05-13 Lars Clausen <lrclause@cs.uiuc.edu>
11029 * RELEASE-PROCESS: Added list of files that contain the release
11030 number or should otherwise be changed at each release.
11032 2002-05-12 Lars Clausen <lrclause@cs.uiuc.edu>
11034 * objects/UML/uml.c (uml_operation_read): Forgot to commit this
11035 (reported fixed) bug: POLYMORPHIC -> LEAF for default.
11037 2002-05-12 Hans Breuer <hans@breuer.org>
11039 * config.h.win32 : changed VERSION to 0.90.RC1
11041 * app/makefile.msc lib/makefile.msc : use renamed
11042 gdk-pixbuf version (same content but renamed because
11043 all the other gtk+ dlls are renamed) to avoid trouble
11044 mixing gtk versions (of which one would not
11047 * app/app_procs.c : removed recently unneeded
11048 inclusion of "sheets.h"
11050 * app/render_gdk.c : removed my own debug spew
11051 which should never made it to cvs
11053 * lib/render_object.[hc] : added
11054 #error "File not used anymore."
11056 * lib/libdia.def : updated externals
11058 * app/interface.c : dropped filenames need to be
11059 converted from uri with Gtk+2.0
11061 2002-05-12 Cyrille Chepelov <cyrille@chepelov.org>
11063 * RELEASE-PROCESS (new): a draft document about how to release. To
11064 be discussed. (already with some input from Hans Breuer)
11066 2002-05-12 Steffen Macke <sdteffen@web.de>
11068 * sheets/Makefile.am: re-added Misc sheet to make process
11070 2002-05-12 Lars Clausen <lrclause@cs.uiuc.edu>
11072 * objects/FS/function.c: Added comments to humungous list of menu
11073 items, to aid translators.
11075 2002-05-11 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
11077 * app/menus.c (display_menu_items): Added a few shortcuts for zooms.
11079 * app/menus.c (display_menu_items): Added a few shortcuts for zooms.
11081 * app/interface.c (create_toolbox): Disallow shrinking beyond
11082 requested size. Fixes bug #59439, and confirms to GTK guidelines
11083 (see gtk_window_set_policy).
11084 (create_sheets): Removed now unnecessary set_usize call.
11086 2002-05-10 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
11088 * lib/beziershape.c (remove_handles): Fixing removal of last
11089 segment. Undo of removal still hokey.
11091 2002-05-10 Lars Clausen <lrclause@cs.uiuc.edu>
11093 * lib/bezier_conn.c (remove_handles): Proper offset for fixing
11095 * lib/beziershape.c (beziershape_init): Removed early call to
11096 beziershape_update_data where points aren't set yet.
11097 (beziershape_add_segment): Use segment 0 instead of overflowing
11098 points array with segment+1.
11099 (beziershape_remove_segment): Proper offset for fixing
11101 (remove_handles): Proper offset.
11103 2002-05-08 Lars Clausen <lrclause@cs.uiuc.edu>
11105 * objects/GRAFCET/action.c (action_update_data): Init x value of
11106 click point for call to connpointlist_adjust_count.
11108 * app/modify_tool.c (create_modify_tool): Init tool->auto_scrolled
11110 * app/render_pixmap.c (new_pixmap_renderer): Moved first linestyle
11111 setting to where values are inited.
11113 * lib/polyshape.c (polyshape_init): Removed call to
11114 polyshape_update_data that tried to use uninitialized data.
11116 2002-05-06 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
11118 * app/sheets_dialog.c: Mass removal of //-style comments. The
11119 Irix compiler doesn't like them:( I do...
11121 2002-05-06 Lars Clausen <lrclause@cs.uiuc.edu>
11123 * app/render_libart.c (draw_string): Bail out when no GDK font is
11125 (set_font): Give error when font not found.
11126 (set_fillstyle): Intlized error msg.
11128 * app/pagesetup.c (pagesetup_ok, pagesetup_apply): Sets diagram
11129 modified when applied (and ok only does apply if apply is set
11130 sensitive). Fixes bug #75623.
11132 2002-05-06 Pablo Saratxaga <pablo@mandrakesoft.com>
11134 * configure.in: Added Vietnamese (vi) to ALL_LINGUAS
11136 2002-05-05 Steffen Macke <sdteffen@web.de>
11138 * app/Makefile.am: added $(UNICODE_CFLAGS)
11140 2002-05-02 Lars Clausen <lrclause@cs.uiuc.edu>
11142 * app/commands.c (help_manual_callback): Check return value of
11145 * plug-ins/xfig/Makefile.am (INCLUDES): Added DEBUG_FLAGS
11147 * plug-ins/xfig/xfig-import.c: Fixed misspelled Poly_L_ine, added
11150 2002-04-30 Lars Clausen <lrclause@cs.uiuc.edu>
11152 * app/render_gdk.c (draw_string): Extra free killed. Thanks valgrind!
11154 * objects/UML/uml.c (uml_operation_read): Fix of UML default
11157 2002-04-30 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
11159 * app/filedlg.c (file_save_as_callback, file_save_as_ok_callback):
11160 Added button to toggle diagram compression.
11162 2002-04-29 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
11164 * lib/font.c: Support for loading extra kerning files, plus got
11165 rid of rounding errors. Bounding box mostly perfect for freetype
11167 (font_string_width): Fudge factor to get around nonlinearity of
11170 2002-04-29 Lars Clausen <lrclause@cs.uiuc.edu>
11172 * lib/font.c (font_string_width): YA font calculation scheme, with
11175 * objects/UML/class.c (umlclass_calculate_data): Uses the same
11176 font for drawing and calculating now.
11178 * configure.in: Added utime.h check.
11180 * app/render_gdk.c (draw_string): Uses gdk_draw_text_wc when in
11181 GTK_DOESNT_TALK_UTF8_WE_DO. Thus it matches the string width calc.
11183 2002-04-26 Hans Breuer <hans@breuer.org>
11185 [ Instead of fixing about 70 occurances in 20 files
11186 where GTK_TALKS_UTF8_WE_DONT needed to be handled
11187 Dia on win32 from now on uses glib-2.0 and not
11188 only talks utf-8 with gtk-1.3 but also internally.
11189 GTK_TALKS_UTF8_WE_DONT isn't supported/needed
11192 * config.h.win32 : #define UNICODE_WORK_IN_PROGRESS
11193 #undef GTK_TALKS_UTF8_WE_DONT
11195 * */makefile.msc : changes to use glib-2.0 (still
11196 using gtk+1.3(win32-production)
11198 * app/disp_callbacks.c : remove GTK_TALKS_UTF8_WE_DONT,
11199 adapt kevent->string handling, add <string.h>
11200 * app/render_gdk.c (get_text_width) : the length given
11201 is in chars, gdk_text_width() needs bytes
11203 * app/render_libart.c :
11204 * app/render_pixmap.c : remove GTK_TALKS_UTF8_WE_DONT
11205 (could simplify the same way as done in render_gdk.c)
11207 * app/diagram_tree.c app/paginate_gdiprint.cpp
11209 * lib/prop_basic.c lib/prop_geomtypes.c
11210 lib/propdialgs.c lib/propobject.c :
11211 added <string.h> which is now removed from charconv.h
11213 * lib/charconv.h : optional use infrastructure from
11214 glib-2.0 -> only five direct function mapping left
11216 * lib/charconv.c : avoid to build this with glib-2.0
11218 * lib/font.c : no string conversion needed anymore
11219 when Dia and Gtk talk utf-8, also code adaptions
11220 for GLIB_CHECK_VERSION(2,0,0)
11222 * lib/libdia.def : removed charconv functions
11224 * lib/prop_inttypes.c : removed GTK_TALKS_UTF8_WE_DONT,
11225 replace charconv_unichar_to_utf8() with g_unichar_to_utf8()
11227 * lib/prop_text.c lib/prop_widgets.c lib/font.c :
11228 removed GTK_TALKS_UTF8_WE_DONT
11230 * lib/text.c : finally(?) fixed cursor <place|move>ment
11231 for Umlauts. Also fixed char insertion, still wondering
11232 how this could ever work. Does realloc on Linux
11233 initialize the memory with zeros ?
11235 * objects/chronogram/chronoline_event.c
11236 objects/grafcet/boolequation.c :
11237 there is no uni_get_utf8 when building for glib-2.0.
11238 Replace with g_utf8_get_char() and g_utf8_next_char().
11240 * objects/uml/stereotype.c (bracketted_to_string) :
11241 simplify while adding code for glib-2.0 build
11243 2002-04-27 Lars Clausen <lrclause@cs.uiuc.edu>
11245 * app/diagram.h: Autosave field
11246 * app/diagram.c (diagram_set_modified): Sets autosave field.
11248 * objects/UML/usecase.c (usecase_update_data):
11249 * objects/flowchart/ellipse.c (ellipse_update_data):
11250 * objects/flowchart/parallelogram.c (pgram_update_data):
11251 * objects/flowchart/diamond.c (diamond_update_data):
11252 * objects/custom/custom_object.c (custom_update_data):
11253 * objects/UML/state.c (state_update_data):
11254 * objects/UML/small_package.c (smallpackage_update_data):
11255 * objects/UML/object.c (objet_update_data):
11256 * objects/UML/note.c (note_update_data):
11257 * objects/UML/node.c (node_update_data):
11258 * objects/UML/component.c (component_update_data):
11259 * objects/UML/classicon.c (classicon_update_data):
11260 * objects/UML/actor.c (actor_update_data):
11261 * objects/SADT/box.c (sadtbox_update_data):
11262 * objects/FS/function.c (function_update_data):
11263 All now update text boundaries from update_data.
11265 * lib/widgets.c (dia_font_selector_set_styles): Made the style set
11268 2002-04-26 Hans Breuer <hans@breuer.org>
11270 * config.h.win32 : added VERSION definition here
11271 (and removed from makefile.msc's)
11273 * app/makefile.msc : added new files
11275 * app/app_procs.c (app_init): remove sheets_dialog_create()
11276 from start-up and ...
11278 * app/sheet.c (sheets_dialog_show_callback) : ... lazy create
11279 sheet_dialog here when it is really needed.
11280 #include "../lib/message.h", make sheets_dialog_create()
11281 return it's success or failing on (!custom_type_symbol).
11282 Although editing shapes is nice IMHO it isn't crucial enough
11283 to abort() Dia if it isn't possible.
11285 * app/sheet.h : adapt create_sheet_dialog() prototype
11287 * app/sheets_dialog.c : add #ifdef HAVE_UNISTD_H
11289 * app/sheets_dialog_callbacks.c : #ifdef HAVE_UNISTD_H and
11290 #ifdef HAVE_UTIME_H. Otherwise #include <sys/utime.h> and
11291 name space corrections for utime() and utim_buf #ifdef
11294 * lib/libdia.def : export new sheet functions
11296 * lib/makefile.msc : added new files
11298 * lib/render.c : don't put draw_bezier_with_arrows() in
11299 the DrawLineWithArrowsFunc slot
11301 * objects/custom/custom_object.c : #include <gmodule.h>
11302 and export 'custom_type' via G_MODULE_EXPORT
11304 * objects/uml/class_dialog.c : removed 'incompatible
11305 types' warnings. Some refactoring while making it fit
11306 on screen with 800x600 again.
11308 * plug-ins/python/pydia-cpoint.h : add PyDiaConnectionPoint_Check
11310 * plug-ins/python/pydia-handle.h : extra parameter to
11311 PyDiaHandle_New to store the owner of the handle
11312 * plug-ins/python/pydia-handle.c : store handle owner
11313 on construction and use it in new method .connect()
11314 * plug-ins/python/pydia-object.c plug-ins/python/pydia-diagram.c :
11315 adapt to changed prototype
11317 2002-04-24 Lars Clausen <lrclause@cs.uiuc.edu>
11319 * lib/text.c (text_calc_boundingbox): Will now return early if box
11322 * objects/flowchart/box.c (box_update_data): Now updates text
11323 width info from update_data.
11325 2002-04-23 Steffen Macke <sdteffen@web.de>
11327 * plug-ins/xfig/xfig-import.c: fixed text import
11329 2002-04-22 Lars Clausen <lrclause@cs.uiuc.edu>
11331 * app/export_png.c: Moved dialog functions to their own file.
11332 * app/dialogs.[ch]: New files with standard functions for creating
11333 small, transient dialogs (e.g. export options).
11334 * app/Makefile.am: Added dialogs.[ch]
11336 2002-04-19 Steffen Macke <sdteffen@web.de>
11338 * shapes/Misc/folder.*:
11339 * shapes/Misc/file.*:
11340 * shapes/Misc/Makefile.am:
11341 * shapes/Makefile.am:
11342 * sheets/Misc.sheet.in:
11343 * sheets/Makefile.am:
11344 * configure.in: added new Misc sheet containing filesystem shapes
11346 2002-04-18 Lars Clausen <lrclause@cs.uiuc.edu>
11348 * app/lineprops_area.c: Arrow selector in toolbox changed to use
11349 standard arrowdraw code. Line is thinner to make some arrowheads
11352 2002-04-18 Steffen Macke <sdteffen@web.de>
11354 * sheets/network.sheet.in:
11355 * shapes/network/telephone.shape:
11356 * shapes/network/Makefile.am: added telephone shape
11358 2002-04-16 Steffen Macke <sdteffen@web.de>
11360 * sheets/EML.sheet.in: commented out unavailable shapes
11362 2002-04-15 M.C. Nelson <mcn@kobayashimaru.org>
11364 * app/sheets_dialog_callbacks.c: Fixed segfault caused by mis-ordered
11365 variable assignment.
11367 2002-04-15 Steffen Macke <sdteffen@web.de>
11369 * plug-ins/dxf/dxf-import.c: text import works again
11370 * shapes/Pneumatic/Makefile.am: added compush shape
11371 * sheets/Pneumatic.sheet.in: commented out unavailable shapes dist33
11374 2002-04-11 M.C. Nelson <mcn@kobayashimaru.org>
11376 * All these modifications are for the 'Sheets and Objects' dialog
11379 * app/pixmaps/line_break.xpm: new icon representing a line break.
11381 * app/pixmaps/n_a.xpm: new empty icon representing not available.
11383 * app/Makefile.am: added sheets_*.[ch] files to compile list.
11385 * app/menus.c: added GNOME and gtk menu items for 'Sheets and Objects'
11387 * app/sheets_dialog.c: [new file] definition of 'Sheets & Objects' dlgs
11389 * app/sheets_dialog.h: [new file] support for Sheets & Objects dlgs
11391 * app/app_procs.c: added call to sheets_dialog_create() in app_init()
11393 * app/sheets_dialog_callbacks.c: [new file] callbacks for S & O dialogs
11395 * app/sheets_dialog_callbacks.h: [new file] support for " " "
11397 * app/interface.c: added 'interface_current_sheet_name' global to
11398 fill_sheet_wbox(); made fill_sheet_menu() non-static
11400 * app/interface.h: added extern declaration for aboves.
11402 * app/sheets.c: [new file] instantiation and other funcs for S & O dlgs
11404 * app/sheets.h: [new file] declarations for backing store structures
11406 * lib/sheet.c: modification of new_sheet() parameters; introduction
11407 of USER and SYSTEM scope for sheets; procedure for sorting sheets;
11408 changes to load_register_sheet().
11410 * lib/sheet.h: added 'user_data_type' field to SheetObject structure;
11411 added 'has_icon_on_sheet' flag to SheetObject structure; added
11412 'filename', 'scope', 'shadowing' fields to Sheet structure.
11414 * lib/plug-ins.c: moved _PluginInfo declaration to header file where
11417 * lib/plug-isn.h: see above.
11419 * lib/object.c: added 'sheet.h' to include list; added several
11421 to detect objects which are not found on any sheet (for future use)
11422 object_type_detect_nosheet_callback(), object_types_detect_nosheet(),
11423 object_type_get_sheet_name(), object_type_strip_sheet_from_name().
11425 * lib/object.h: added public declarations for above functions where
11428 * objects/custom/custom.c: made custom_object_load() non-static so we
11429 can load and interpret .shape files from the Sheets & Objects dialog
11431 * objects/custom/custom_object.c: made 'custom_type' non-static so
11432 we can differentiate between SVG shapes and other types.a
11434 2002-04-07 Hans Breuer <hans@breuer.org>
11436 * app/object_ops.c (object_list_align_v): Fix the 'Leak fix'
11437 from 2002-01-22 to not destroy diagram->data->selected.
11438 Avoids to crash on Objects/Align/Vertical/Top
11440 * app/render_eps.c (draw_string) : un-const buffer
11441 It isn't at all const (g_malloc(), assignment, g_free()).
11442 Doesn't gcc catch such ?
11444 * lib/arrows.h : prototype calculate_arrow_point()
11446 * lib/font.c (font_get_suckfont) : no need to
11447 special case gdk_draw_string() with GTK_TALKS_UTF8,
11448 cause all the parameter differences are handled above
11450 * lib/libdia.def : updated externals
11452 * lib/makefile.msc : removed string_prerenderer, added render
11454 * lib/render.c (draw_rect) : don't pass a Point** if a Point*
11455 is expected. [Sometimes it's good to read compiler warnings.]
11457 * objects/standard/image.c : simplified by use of g_strconcat()
11459 * plug-ins/python/makefile.msc : updated for Python 2.2
11461 2002-04-03 Lars Clausen <lrclause@cs.uiuc.edu>
11463 * objects/standard/zigzagline.c (zigzagline_draw): Fixed
11464 directionality problem for zero-length line segments.
11466 2002-03-28 Lars Clausen <lrclause@cs.uiuc.edu>
11468 * app/diagram.c (diagram_ungroup_selected)
11469 (diagram_update_menu_sensitivity): Now allows ungrouping of
11470 several groups at once.
11472 2002-03-15 Lars Clausen <lrclause@cs.uiuc.edu>
11474 * lib/render.c, all renderers: Binary incompatibility, change to
11475 expandable renderops structure.
11477 2002-03-15 Steffen Macke <sdteffen@yahoo.com>
11479 * objects/standard/Makefile.am:
11480 * objects/network/Makefile.am:
11481 * objects/UML/Makefile.am:
11482 * objects/ER/Makefile.am:
11483 * objects/FS/Makefile.am:
11484 * objects/flowchart/Makefile.am:
11485 * objects/custom/Makefile.am:
11486 * objects/GRAFCET/Makefile.am:
11487 * objects/chronogram/Makefile.am:
11488 * objects/SADT/Makefile.am:
11489 * plug-ins/cgm/Makefile.am:
11490 * plug-ins/pstricks/Makefile.am:
11491 * plug-ins/hpgl/Makefile.am:
11492 * plug-ins/wpg/Makefile.am:
11493 * plug-ins/svg/Makefile.am:
11494 * plug-ins/shape/Makefile.am: added $(UNICODE_CFLAGS)
11496 2002-03-13 Lars Clausen <lrclause@cs.uiuc.edu>
11498 * app/render_eps.c: Support for dumping TrueType fonts (taken from
11501 2002-03-12 Lars Clausen <lrclause@cs.uiuc.edu>
11503 * lib/render.c: New abstract super class for renderers.
11505 2002-03-07 Akira TAGOH <tagoh@redhat.com>
11507 * objects/ER/attribute.c (attribute_save): save a font property.
11508 (attribute_load): load a font property, and if can't load it, it's
11511 * objects/ER/entity.c (entity_save): save a font property.
11512 (entity_load): load a font property, and if can't load it, it's
11515 * objects/ER/relationship.c (relationship_save): save a font property.
11516 (relationship_load): load a font property, and if can't load it, it's
11519 * objects/UML/class.c (fill_in_fontdata): don't replace if it already
11521 (umlclass_save): save the font and the font size properties.
11522 (umlclass_load): load the font and the font size properties.
11524 2002-03-05 Cyrille Chepelov <cyrille@chepelov.org>
11526 * lib/string_prerenderer.[ch] (REMOVED):
11528 * lib/diagramdata.c:
11530 * app/render_eps.c: got rid of the string-specific string
11531 prerenderer, transitioned its functionality towards Lars'
11532 two-phase rendering
11534 2002-03-05 Lars Clausen <lrclause@cs.uiuc.edu>
11536 * configure.in: Using Freetypes own check for ver >= 1.0.5. You
11537 may need to rerun aclocal.
11539 2002-03-04 Lars Clausen <lrclause@cs.uiuc.edu>
11541 * lib/font.c: First attempt at Unicodeness for Freetype.
11543 2002-03-02 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
11545 * lib/font.c (font_string_width): Fixed font_string_width for
11546 freetype. BB is now almost right.
11548 2002-03-01 Lars Clausen <lrclause@cs.uiuc.edu>
11550 * app/render_eps.h:
11551 * app/paginate_psprint.c (paginate_psprint):
11553 * app/render_eps.c: Support for dumping postscript fonts into
11554 postscript files with freetype. Fairly primitive, but works.
11555 Unicode version may have problems.
11557 2002-02-28 Akira TAGOH <tagoh@redhat.com>
11559 * objects/UML/class_dialog.c (class_read_from_dialog)
11560 (class_fill_in_dialog), (class_create_page): add the font selector and
11561 the font size selector.
11563 * objects/UML/class.c (umlclass_draw): uses each font_height.
11564 (umlclass_calculate_data): ditto.
11565 (fill_in_fontdata): add initial value of new font_height.
11566 (umlclass_copy): add new font_height.
11568 2002-02-27 Cyrille Chepelov <chepelov@calixo.net>
11570 Patch from Geoff Gerrietts <ggerrietts@yahoo.com>:
11572 * lib/font.c: calculate font metrics properly and stop guessing at
11575 2002-02-28 Akira TAGOH <tagoh@redhat.com>
11577 * configure.in: changed gtk_advancement value to dia_talks_utf8.
11578 right now Dia is working with UTF-8 internally. it means Dia probably
11579 support most languages also including the languages which heretofore
11580 didn't work correctly.
11582 2002-02-26 Akira TAGOH <tagoh@redhat.com>
11584 * objects/FS/function.c: add related text properties.
11585 (function_get_props), (function_set_props): add handling attribute.
11587 * objects/FS/flow.c: add related text properties.
11588 (flow_get_props), (flow_set_props): add handling attribute.
11590 * objects/FS/flow-ortho.c: add related text properties.
11591 (orthflow_set_props), (orthflow_get_props): add handling attribute.
11593 * objects/ER/relationship.c: add PROP_STD_TEXT_FONT to property.
11595 * objects/ER/entity.c: ditto.
11597 * objects/ER/attribute.c: ditto.
11599 2002-02-26 Cyrille Chepelov <cyrille@chepelov.org>
11601 Patch contributed by Geoff Gerrietts <ggerrietts@yahoo.com>:
11603 * autogen.sh: add a check for missing intltoolize.
11605 2002-02-20 Akira TAGOH <tagoh@redhat.com>
11607 * lib/ps-utf8.c (unicode_to_ps_name): if this function calls with same
11608 charcode, it was registered the duplicate item to HashTable. fix.
11610 * app/render_gnomeprint.c (get_width_string): add new function.
11611 (draw_string): fix non-multibyte specific code.
11613 2002-02-19 Cyrille Chepelov <cyrille@chepelov.org>
11615 Patch contributed by Matthieu Sozeau <mattam@netcourrier.com>:
11617 * lib/font.c: do not try to search paths that do not begin with
11618 '/', like X Font Server addresses.
11620 * objects/UML/message.c (message_draw): free mname when not
11621 message->text but CREATE or DESTROY.
11623 * objects/UML/uml.h:
11624 * objects/UML/uml.c:
11625 * objects/UML/class_dialog.c: added code to handle a stereotype
11626 attribute for operations.
11628 2002-02-19 Akira TAGOH <tagoh@redhat.com>
11630 * lib/Makefile.am: add LIBART_CFLAGS.
11632 2002-02-15 Hans Breuer <hans@breuer.org>
11634 * lib/font.c (font_get_suck_font): the black and white pixel values
11635 need to be taken from a 1 bit colormap rather than the default colormap.
11636 (fixed again, last time was 2000-05-26)
11638 Also handle the case where GTK_TALKS_UTF8 and expects all strings
11639 passed in to be in this encoding.
11641 * lib/libdia.def : export suck_font_free()
11643 * lib/text.c (text_draw) : avoid circular dependency to ../app
11644 at least for the !USE_XIM case, where it is unnecessary.
11646 2002-02-15 Cyrille Chepelov <cyrille@chepelov.org>
11648 Changes contributed by Matts Kivik <kivik@firstlinux.net>:
11650 * shapes/Circuit/microphone_de.(shape|xpm) (NEW):
11651 * sheets/Circuit.sheet.in: added new shape microphone
11652 * shapes/Circuit/speaker_de.shape: Added a connection point.
11654 2002-02-13 Akira TAGOH <tagoh@redhat.com>
11656 * app/render_libart.c (draw_string): fixed build issue for Win32.
11658 * lib/font.c (font_get_suckfont): fixed typo. it could't build under
11661 * configure.in: fixed testing gtk_advancement.
11663 * app/render_gnomeprint.c (draw_string): uses utfchar instead of char.
11665 2002-02-12 Akira TAGOH <tagoh@redhat.com>
11667 * lib/text.c (text_draw): fixed XIM position, when menubar is shown for
11670 2002-02-11 Lars Clausen <lrclause@cs.uiuc.edu>
11672 * app/group.c (group_copy): Made new object properly initialized
11675 2002-02-11 Steffen Macke <sdteffen@yahoo.com>
11677 * app/Makefile.am: added plug-ins to DIA_LIB_PATH in run_dia.sh
11679 2002-02-10 Akira TAGOH <tagoh@redhat.com>
11681 * lib/text.c (text_draw): fixed XIM transaction.
11683 * app/interface.c (create_display_shell): add signal for
11686 * app/disp_callbacks.c (ddisplay_size_allocate): add new function for
11688 (set_input_dialog): remove.
11689 (ddisplay_canvas_events): remove XIM transaction. it can't transact
11690 correctly on this function.
11692 2002-02-10 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
11695 * app/export_png.c: Added checks for interactivity (maybe this
11696 should be a hook after all?).
11698 * app/filedlg.c (file_export_callback): Made export dialog add
11699 suffix when reopened.
11701 * app/export_png.c: Added dialog asking for export size.
11703 2002-02-09 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
11705 * lib/widgets.c: Fixed font reselection problem and first font
11708 * objects/UML/actor.c (actor_update_data): Changed to have
11709 connection points below text.
11711 2002-02-08 Akira TAGOH <tagoh@redhat.com>
11713 * lib/text.c (text_split_line): use g_strndup() instead of g_malloc()
11716 2002-02-07 Akira TAGOH <tagoh@redhat.com>
11718 * lib/font.c (font_get_suckfont): rewrited. generating suckfont from
11719 strings which is given.
11720 (suck_font): remove. it's any longer needed.
11722 * app/render_libart.c (set_font): don't get suckfont.
11723 (draw_string): get suckfont only which is needed for now.
11725 2002-02-05 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
11727 * lib/text.c: Fixes for misunderstood width functions.
11729 2002-02-05 Hans Breuer <hans@breuer.org>
11731 * lib/dia_xml.c : use g_strconcat() instead of
11732 malloc, strcpy, strcat dance
11733 * app/properties.c : same here and plug memory leak
11734 (gtk functions don't eat strings)
11736 * objects/UML/message.c : there is no g_sprintf()
11737 use g_strdup_printf() instead ...
11739 2002-02-05 Akira TAGOH <tagoh@redhat.com>
11741 * lib/message.c (gtk_message_internal): doesn't need to convert to
11744 * app/render_libart.c (draw_string): fixed transaction for UTF-8
11746 (get_text_width): ditto.
11748 * app/Makefile.am (EXTRA_DIST):
11749 s/paginate_gdiprint.c/paginate_gdiprint.cpp/
11751 * app/render_gdk.c (gdk_freetype_copy_glyph): fixed build issue.
11752 This function needs ifdef HAVE_FREETYPE because don't use it for
11755 2002-02-04 Cyrille Chepelov <cyrille@chepelov.org>
11757 * NEWS: updated with the new dependencies.
11759 Patch from Matthieu Sozeau <mattam@netcourrier.com>:
11761 * objects/UML/class.h:
11762 * objects/UML/class.c:
11763 * objects/UML/class_dialog.c: added code to handle the UMLParameterKind
11764 property using a GtkMenu. Options are Undefined, In, Out, In & Out
11766 2002-02-04 Lars Clausen <lrclause@cs.uiuc.edu>
11768 * app/render_libart.c: Slow but working libart freetype renderer,
11771 2002-02-03 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
11773 * app/render_gdk.c (draw_string): Fixed gc_function bug.
11775 * lib/widgets.c (dia_font_selector_init): Sorts the font list.
11777 * lib/font.c (freetype_render_string):
11779 * app/render_gdk.c:
11780 * app/render_gdk.h: Changed freetype_render_string to use
11781 callback. Rendering is broken.
11783 2002-02-03 Cyrille Chepelov <cyrille@chepelov.org>
11785 Patch from Matthieu Sozeau <mattam@netcourrier.com>:
11787 * objects/UML/uml.h:
11788 * objects/UML/uml.c: added UMLInheritanceType and isQuery
11789 (constant) UML Operation attributes. UMLInheritanceType is either
11790 UML_ABSTRACT or UML_POLYMORPHIC or UML_LEAF.
11792 * objects/UML/class.h:
11793 * objects/UML/class.c:
11794 * objetcs/UML/class_dialog.c: added code to handle new
11795 UMLOperation attributes via a GtkMenu and a checkbox.
11797 2002-02-03 Akira TAGOH <tagoh@redhat.com>
11799 * app/disp_callbacks.c (ddisplay_realize): fixed XIM issue.
11800 several client doesn't work with previous codes.
11802 2002-02-01 Lars Clausen <lrclause@cs.uiuc.edu>
11804 * lib/font.c (freetype_render_string): Kerning. Very few fonts
11807 2002-02-02 Akira TAGOH <tagoh@redhat.com>
11809 * app/disp_callbacks.c (ddisplay_canvas_events): fixed crashes,
11810 when doing the operation like invert the objects after active view is
11811 destroyed. when changes focus, it needs to set active_display.
11813 * app/layer_dialog.c (dia_layer_update_from_layer):
11814 (layer_dialog_edit_layer): need to convert to locale encoding
11815 if GTK_DOESNT_TALK_UTF8_WE_DO is defined.
11816 (edit_layer_ok_callback):
11817 need to convert to UTF8 if GTK_DOESNT_TALK_UTF8_WE_DO is defined.
11819 * lib/diagramdata.c (new_diagram_data): ditto.
11821 * app/layer_dialog.c (layer_dialog_new_callback): ditto.
11823 * lib/diagramdata.c (new_layer): use utfchar instead of char for
11826 * lib/widgets.c: if HAVE_FREETYPE isn't defined, it can't build. fixed.
11827 (dia_font_selector_set_styles): when HAVE_FREETYPE is defined only,
11828 it's needed for now. also this function needs prototype declaration.
11830 2002-01-31 Lars Clausen <lrclause@cs.uiuc.edu>
11832 * lib/widgets.c: Style now functional on font selector. Some leak
11833 possible, but doesn't show up under stress test.
11835 2002-01-31 Akira TAGOH <tagoh@redhat.com>
11837 * app/plugin-manager.c (clist_select_row): name and description needs to
11838 convert to locale encoding, when GTK_DOESNT_TALK_UTF8_WE_DO is defined.
11839 (get_plugin_manager): ditto.
11841 * lib/plug-ins.c (dia_plugin_info_init): name needs to convert to UTF-8.
11843 * app/diagram_tree.c (get_object_name): fixed transaction for UTF-8
11846 * lib/prop_text.c (stringprop_reset_widget): fixed crashes,
11847 when prop->string_data is NULL.
11849 2002-01-30 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
11852 * lib/widgets.h: New font selector separating font and style.
11853 Style not functional yet.
11855 2002-01-30 Lars Clausen <lrclause@cs.uiuc.edu>
11858 * app/render_gdk.c (draw_string): More freetype support, now
11859 renders text. Still broken is font selection and exporting.
11861 2002-01-30 Akira TAGOH <tagoh@redhat.com>
11863 * objects/chronogram/chronoref.c (chronoref_create): missing gettextize
11866 * objects/chronogram/chronoline.c (chronoline_create): ditto.
11868 * objects/UML/usecase.c (usecase_create): ditto.
11870 * objects/UML/state.c (state_create): ditto.
11872 * objects/UML/object.c (objet_create): ditto.
11874 * objects/UML/node.c (node_create): ditto.
11876 * objects/UML/message.c (message_create): ditto.
11878 * objects/UML/component.c (component_create): ditto.
11880 * objects/UML/classicon.c (classicon_create): ditto.
11882 * objects/UML/actor.c (actor_create): ditto.
11884 * objects/SADT/box.c (sadtbox_create): ditto.
11886 * objects/SADT/annotation.c (annotation_create): ditto.
11888 * objects/GRAFCET/transition.c (TRANSITION_FONT): ditto.
11890 * objects/GRAFCET/step.c (STEP_FONT):
11891 * (step_create): ditto.
11893 * objects/GRAFCET/condition.c (CONDITION_FONT): ditto.
11895 * objects/GRAFCET/action.c (ACTION_FONT):
11896 (action_create): ditto.
11898 * objects/FS/function.c (function_create): ditto.
11900 * objects/FS/flow.c (flow_create):
11902 (flow_apply_defaults): ditto.
11904 * objects/FS/flow-poly.c (flow_create):
11906 (flow_apply_defaults): ditto.
11908 * objects/FS/flow-ortho.c (orthflow_create):
11910 (orthflow_apply_defaults): ditto.
11912 * objects/ER/relationship.c: use utfchar instead of char for structure.
11913 (relationship_create): name needs to convert to UTF-8.
11915 * objects/ER/attribute.c: use utfchar instead of char for structure.
11916 (attribute_create): name needs to convert to UTF-8.
11918 * objects/ER/entity.c: use utfchar instead of char for structure.
11919 (entity_create): name needs to convert to UTF-8.
11921 * app/interface.c (fill_sheet_wbox): needs to convert UTF-8 to locale
11922 encoding for tooltips, if GTK_TALKS_UTF8 isn't defined.
11923 (fill_sheet_menu): needs to convert UTF-8 to locale encoding for menu
11924 items. if GTK_TALKS_UTF8 isn't defined.
11926 2002-01-29 Akira TAGOH <tagoh@redhat.com>
11928 * objects/UML/class.c (umlclass_calculate_data): fixed malloc size.
11929 it was my careless mistake...
11931 * lib/attributes.c (attributes_set_default_font): temporarily gettextize
11932 a font name, because there are strings which isn't shown by "Courier".
11933 We need to consider a way to feel free to choose a font at runtime.
11935 * lib/render_object.c (render_object_load): ditto.
11937 * lib/text.c (data_text): ditto.
11939 * objects/EML/instantiation.c (instantiation_create): ditto.
11941 * objects/EML/interaction-ortho.c (interaction_ortho_create):
11942 (interaction_ortho_load): ditto.
11944 * objects/EML/interaction.c (interaction_create):
11945 (interaction_load): ditto.
11947 * objects/EML/process.c (fill_in_fontdata): ditto.
11949 * objects/ER/attribute.c (attribute_create):
11950 (attribute_load): ditto.
11952 * objects/ER/entity.c (entity_create):
11953 (entity_load): ditto.
11955 * objects/ER/relationship.c (relationship_create):
11956 (relationship_load): ditto.
11958 * objects/UML/association.c (association_create):
11959 (association_load): ditto.
11961 * objects/UML/class.c (fill_in_fontdata): ditto.
11963 * objects/UML/constraint.c (constraint_create): ditto.
11965 * objects/UML/dependency.c (dependency_create): ditto.
11967 * objects/UML/generalization.c (generalization_create): ditto.
11969 * objects/UML/implements.c (implements_create): ditto.
11971 * objects/UML/large_package.c (largepackage_create): ditto.
11973 * objects/UML/note.c (note_create): ditto.
11975 * objects/UML/realizes.c (realizes_create): ditto.
11977 * objects/UML/small_package.c (smallpackage_create): ditto.
11979 * objects/custom/shape_info.h (FONT_DEFAULT): ditto.
11981 * objects/custom/custom_object.c (custom_create): ditto.
11983 * objects/network/antenna.c (render_to_store): ditto.
11985 * objects/network/computer.c (render_to_store): ditto.
11987 * objects/network/disc.c (render_to_store): ditto.
11989 * objects/network/flash.c (render_to_store): ditto.
11991 * objects/network/hub.c (render_to_store): ditto.
11993 * objects/network/modem.c (render_to_store): ditto.
11995 * objects/network/modularswitch.c (render_to_store): ditto.
11997 * objects/network/monitor.c (render_to_store): ditto.
11999 * objects/network/printer.c (render_to_store): ditto.
12001 * objects/network/rj45plug.c (render_to_store): ditto.
12003 * objects/network/scead-plug.c (render_to_store): ditto.
12005 * objects/standard/textobj.c (textobj_load): ditto.
12007 * objects/sybase/client.c (render_to_store): ditto.
12009 * objects/sybase/dataserver.c (render_to_store): ditto.
12011 * objects/sybase/ltm.c (render_to_store): ditto.
12013 * objects/sybase/repserver.c (render_to_store): ditto.
12015 * objects/sybase/rsm.c (render_to_store): ditto.
12017 * objects/sybase/stableq.c (render_to_store): ditto.
12019 * plug-ins/dxf/dxf-import.c (read_entity_text_dxf): ditto.
12021 * objects/UML/uml.h (UML_STEREOTYPE_START):
12022 (UML_STEREOTYPE_END): changes default strings.
12024 2002-01-28 Akira TAGOH <tagoh@redhat.com>
12026 * objects/UML/stereotype.c (string_to_bracketted): fixed transaction
12027 for UTF-8 support. if GTK+ and Dia don't handle UTF-8, all of characters
12028 which is given to arguments isn't UTF-8. so don't need to convert it.
12029 if GTK+ handle UTF-8, also don't need to convert it.
12031 (bracketted_to_string): fixed transaction for UTF-8 support.
12032 also start/end bracket is not necessarily 1 character. so that when use
12033 strend(), it doesn't work correctly.
12034 (string_to_stereotype): use utfchar instead of char.
12035 (remove_stereotype_from_string): ditto.
12036 (stereotype_to_string): ditto.
12038 * objects/UML/stereotype.h: ditto.
12040 * objects/UML/message.c: use utfchar instead of char for structure.
12041 (MESSAGE_CREATE_LABEL, MESSAGE_DESTROY_LABEL): remove.
12043 * objects/UML/small_package.c: use utfchar instead of char for structure.
12045 * objects/UML/realizes.c: ditto.
12047 * objects/UML/object.c: ditto.
12049 * objects/UML/large_package.c: ditto.
12051 * objects/UML/implements.c: ditto.
12053 * objects/UML/generalization.c: ditto.
12055 * objects/UML/dependency.c: ditto.
12057 * objects/UML/constraint.c: ditto.
12059 * objects/UML/component.c: ditto.
12061 * objects/UML/class_dialog.c (attributes_get_current_values):
12062 (attributes_list_new_callback, attributes_fill_in_dialog):
12063 (parameters_set_values, parameters_get_values):
12064 (parameters_get_current_values, parameters_list_new_callback):
12065 (operations_set_values, operations_get_values):
12066 (operations_get_current_values, operations_list_new_callback):
12067 (operations_fill_in_dialog, templates_set_values):
12068 (templates_get_values, templates_get_current_values):
12069 (templates_list_new_callback, templates_fill_in_dialog):
12070 fixed transaction for UTF-8 support.
12072 2002-01-27 Akira TAGOH <tagoh@redhat.com>
12074 * objects/UML/message.c (message_draw): fixed transaction for UTF-8 support.
12076 * objects/UML/class_dialog.c (class_read_from_dialog):
12077 (class_fill_in_dialog):
12078 (attributes_get_values): ditto.
12080 * objects/UML/actor.c (actor_create): ditto.
12082 * objects/UML/class.c (umlclass_calculate_data): ditto.
12084 * objects/UML/association.c (association_apply_properties):
12085 (fill_in_dialog): ditto.
12087 * objects/UML/uml.c (uml_get_attribute_string):
12088 (uml_get_operation_string):
12089 (uml_get_parameter_string):
12090 (uml_get_formalparameter_string): use utfchar instead of char.
12092 * objects/UML/uml.h: gettextize UML_STEREOTYPE_START and
12093 UML_STEREOTYPE_END.
12095 * objects/UML/class.h: use utfchar instead of char.
12097 * lib/dia_xml.c (data_add_string): ditto.
12099 * lib/text.c (text_insert_char): fixed characters# calculation
12100 when includes multibytes character in strings.
12102 2002-01-26 Steffen Macke <sdteffen@yahoo.com>
12104 Patch from Richard Rowell <rwrowell@bellsouth.net>:
12106 * app/lineprops_area.c:
12109 * lib/widgets.c: added crow foot arrow and cross arrow
12111 Patch from Frank Gevaerts <frank.gevaerts@fks.be>:
12113 * plug-ins/svg/render_svg.c: fixed arcs, fill and text alignment
12115 2002-01-26 Cyrille Chepelov <cyrille@chepelov.org>
12117 * po/update.pl (REMOVED):
12118 * po/update.sh (REMOVED):
12119 * xml-i18n-merge.in.kg (REMOVED):
12120 * xml-i18n-update.in.kg (REMOVED):
12121 * sheets/Makefile.am:
12124 * configure.in: converted from xml-i18n-tools to intltools
12126 This looks like it fixes the build bugs of the snapshot tarballs,
12127 and it supersedes #69611.
12129 2002-01-25 Akira TAGOH <tagoh@redhat.com>
12131 * lib/text.c (text_insert_char): fixed characters# calculation.
12132 it's not string length.
12134 * lib/plug-ins.c (dia_plugin_info_init): when GTK_DOESNT_TALK_UTF8_WE_DO
12135 is defined, needs to convert a description to UTF-8.
12137 * app/render_gdk.c (get_text_width): fixed transaction for
12138 UTF-8 support. also should uses gdk_text_width_wc() instead
12139 of gdk_text_width().
12141 * app/render_gdk.c (draw_string): when GTK_DOESNT_TALK_UTF8_WE_DO
12142 is defined, needs to convert to locale encoding for display.
12143 Also use utfchar instead of char for argument.
12145 2002-01-24 Hans Breuer <hans@breuer.org>
12147 * app/commands.c(edit_paste_callback and more) :
12148 call diagram_modified(ddisp->diagram) to fix #68083
12149 (help_menu_callback) : plug a DIR leak
12151 * app/disp_callbacks.c(ddisplay_canvas_events) : handle
12152 GTK_TALKS_UTF8_WE_DONT
12154 * app/render_gdk.c(get_text_with) : it's a bad idea to use
12155 gdk_string_with() when GTK_TALKS_UTF8_WE_DONT instead of
12156 gdk_text_width(). The length value is still questionable ...
12158 * lib/charconv.c : use functions already available in early
12159 GLIB-1.3 days whiches API hasn't changed since, to avoid
12160 version problems with the win32 build
12162 * lib/font.c : finally fix #58045 and #68208
12164 * lib/dia_xml.c (xmlDiaSaveFile) : gzdopen in binary mode
12166 2002-01-24 Akira TAGOH <tagoh@redhat.com>
12168 * app/disp_callbacks.c (ddisplay_canvas_events): when event returned
12169 no strings, fixed transaction.
12171 * lib/charconv.h: fixed typo.
12173 * app/menus.c: fixed typo.
12175 * lib/charconv.c (charconv_utf8_strchr): remove. use uni_strchr instead.
12177 * objects/UML/object.c: attrib's type uses utfchar instead of char.
12179 * app/disp_callbacks.c (ddisplay_canvas_events): forget g_free()
12181 * lib/text.c (text_create_change): use unichar instead of char.
12183 * lib/text.c (data_add_text, data_text, apply_textstr_properties):
12184 use utfchar instead of char.
12186 * lib/text.c (text_insert_char, text_key_event): fixed transaction for
12189 * lib/charconv.c (charconv_utf8_get_char): add new function.
12191 2002-01-23 Akira TAGOH <tagoh@redhat.com>
12193 * lib/text.c (text_delete_forward, text_delete_backward,
12194 text_split_line): fixed transaction for UTF-8 support.
12196 * lib/text.c (text_copy): when UNICODE_WORK_IN_PROGRESS is defined,
12197 strlen[] has string length for UTF-8, so has to use alloclen[].
12201 * .cvsignore: add dia.pot.
12203 2002-01-24 Stanislav Visnovsky <visnovsky@nenya.ms.mff.cuni.cz>
12205 * configure.in: Added "sk" to ALL_LINGUAS.
12207 2002-01-22 Akira TAGOH <tagoh@redhat.com>
12209 * lib/text.c (text_set_string, new_text, text_copy,
12210 text_get_string_copy, text_join_lines): use utfchar instead of gchar
12213 * lib/text.c (set_string): use charconv_utf8_strchr() instead of
12216 * lib/charconv.c (charconv_utf8_strchr): add new function.
12218 * lib/charconv.c (charconv_keyval_to_unicode): ditto.
12220 * lib/charconv.c (charconv_utf8_from_gtk_event_key): ditto.
12222 * app/disp_callbacks.c (ddisplay_canvas_events): needs to convert
12223 strings to the appropriate encoding.
12225 2002-01-22 Lars Clausen <lrclause@cs.uiuc.edu>
12227 * app/object_ops.c (object_list_align_[hv]): Leak fix.
12229 * lib/Makefile.am (INCLUDES): Added debug flags.
12231 * app/object_ops.c: Fixed ordering problem of align equi-distant &
12234 2002-01-21 Akira TAGOH <tagoh@redhat.com>
12236 * lib/font.c (font_string_width): use gdk_text_width_wc() instead of
12237 gdk_string_width().
12239 * objects/GRAFCET/boolequation.c: fixed invalid comment.
12241 * objects/UML/stereotype.c (string_to_bracketted): fixed build problem
12242 when defined UNICODE_WORK_IN_PROGRESS.
12244 * lib/dia_xml.c (data_add_string): fixed typo.
12246 2002-01-20 Akira TAGOH <tagoh@redhat.com>
12248 * configure.in: fixed test gtk_advancement.
12250 2002-01-019 Steffen Macke <sdteffen@yahoo.com>
12252 * plug-ins/svg/render_svg.c: fix for #69053, alignment of text
12255 Patch from M.C. Nelson <mcn@mani.kobayashimaru.org>:
12257 * app/recent_files.[ch]: reworked to support GNOME, accelerators,
12258 tool tips, preferences, and arbitrarily long ~/.dia/history
12260 * app/menus.c: made 'Plugins' consistantly spelled and accelerated;
12261 removed 'Open Recent'; added new separators for recent documents on
12264 * app/interface.[ch] (interface_get_toolbox_shell): new function
12266 * app/diagram.c: added new parameter to recent_file_history_add() call
12268 * app/preferences.[ch]: added new 'Recent documents list size'
12271 2002-01-18 Akira TAGOH <tagoh@redhat.com>
12273 * lib/font.c (font_get_gdkfont_helper): use gdk_fontset_load ().
12274 if it failed, should be used gdk_font_load ().
12276 * lib/font.c (font_data): added the font entries for CJK.
12278 2002-01-17 Steffen Macke <sdteffen@yahoo.com>
12280 Patch from M.C. Nelson <mcn@mani.kobayashimaru.org>:
12282 * app/menus.c: replaced GDK_F1 with "F1" to fix segfault on startup
12284 2002-01-04 Cyrille Chepelov <cyrille@chepelov.org>
12286 Patch from Martin Cracauer <cracauer@cons.org>:
12288 * app/menus.c: add missing #include <gdk/gdkkeysyms.h> (useful in the
12291 2002-01-01 Hans Breuer <hans@breuer.org>
12293 * app/command.c : optional use GDI printing on windoze
12295 * app/preferences.[hc] : add option 'prefer_psprint' to
12296 select the print engine to use (could be used for Dia/Gnome
12299 * app/paginate_gdiprint.(h|cpp) : new files, which interlink the
12300 wmf plug-in with the common win32 print api. Now printing
12301 should work almost as expected from a windows program :-)
12303 * app/diagram.c app/menus.[hc] : rename _UpdatableMenuItems.delete
12304 to .edit_delete to avoid clashes with C++
12306 * app/makefile.msc : updated for GDI printing
12308 * plug-ins/wmf/wmf.cpp : some small modifications to support
12309 GDI printing. Also swap R and B channel in draw_image()
12311 * app/makefile.am : added windows only files to EXTRA_DIST
12313 * objects/uml/class.c(umlclass_set_props) : force recalculation
12314 when applying properties
12316 * lib/charconv.c lib/dia_xml.c : temporary back-ported to
12317 glib-1.3.2 (for win32) IMHO causes recent cvs introduces too
12318 many incompatible changes (and would force a gtk update)
12320 * objects/makefile.msc : don't build C-Objects which are
12321 already available as 'pure shape'
12323 * plug-ins/makefile.msc : remove diaimport from build. It was
12324 only available via mailing-list and is broken since the
12328 Patch from Jose A Ortega Ruiz <jaortega@acm.org>
12330 * app/preferences.[hc] : tweaked preferences.c to make
12331 PREF_STRING work. Use it for 'diagram_tree_hidden'. Also
12332 added some more DiagramTree prefererences and their own
12335 * app/diagram_tree.[hc] : allow to sort by object type or name
12336 and hide by type ...
12337 * app/diagram_tree_menu.[hc] : ... add respective menu entries ...
12338 * app/diagram_tree_menu_callbacks.[hc] : ... and callbacks.
12340 * app/diagram_tree_window.c : handle hidden types and window
12343 2001-12-20 Hans Breuer <hans@breuer.org>
12345 * plug-ins/python/Makefile.am : patch from Peter Moulder
12346 <pmoulder@csse.monash.edu.au> to make the python plug-in
12347 compile on *nix too.
12349 2001-12-03 Cyrille Chepelov <chepelov@calixo.net>
12351 Patch from Alan <horkana@tcd.ie>:
12353 * app/menus.c: bind the F1 shortcut to the Help/_Manual function.
12355 2001-11-20 Hans Breuer <hans@breuer.org>
12357 * app/makefile.msc : add new diagram_tree_menu(_callbacks).obj
12359 2001-11-18 Jose A Ortega Ruiz <jaortega@acm.org>
12361 * app/diagram_tree.[hc] : Added new functions and types for
12362 sorting diagram and objects, and attaching the popup menus.
12364 * app/preferences.h: Added more diagram tree preferences, using a
12365 DiagramTreeConfig struct in DiaPreferences. The new prefs are the
12366 height and width of the diagram tree window and the default sort
12367 orders for diagrams and objects.
12369 * app/preferences.c (prefs_data): Added new entries for the new
12370 diagram tree preferences.
12372 * app/preferences.c (prefs_tabs): New tab for diagram tree
12375 * app/diagram_tree_window.[hc] (create_diagram_tree_window):
12376 * app/diagram_tree_window.c (diagram_tree_window_new):
12377 * app/interface.c (create_tree_window): The diagram tree window is
12378 initialised using the DiagramTreeConfig part of prefs.
12381 2001-11-14 Jose A Ortega Ruiz <jaortega@acm.org>
12383 * app/diagram_tree_menu.[hc]: New files. Functions to create the
12384 diagram tree popup menus.
12386 * app/diagram_tree_menu_callbacks.[hc]: New files. Callbacks for
12387 the diagram tree popup menus.
12389 * app/Makefile.am (dia_core_files): diagram_tree_menu* files
12392 2001-11-13 Jose A Ortega Ruiz <jaortega@acm.org>
12394 * app/diagram_tree.c (double_click_callback, diagram_tree_new):
12395 double-clicking a diagram tree node raises the diagram window
12396 to the foreground (and, if a object node was clicked, selects the
12397 object in the diagram).
12399 * app/diagram_tree.c (select_tree_widget): selecting an object
12400 node with single click simply updates it (no raise).
12402 2001-11-08 Jose A Ortega Ruiz <jaortega@acm.org>
12403 These changes make the diagram tree lazy: it is not created unless
12404 the diagram tree window is requested.
12406 * app/diagram_tree_window.[hc] (create_diagram_tree_window): new
12407 function for creating the tree window.
12409 * app/interface.c (create_tree_window): call
12410 create_diagram_tree_window() instead of diagram_window().
12412 * app/diagram_tree.c (diagram_tree_add, diagram_tree_remove)
12413 (diagram_tree_update, diagram_tree_update_name)
12414 (diagram_tree_add_object, diagram_tree_add_objects)
12415 (diagram_tree_remove_object, diagram_tree_remove_objects)
12416 (diagram_tree_update_object): accept a NULL tree as a nominal
12417 argument (and do nothing in this case!), so that the diagram tree
12418 is not initialised if not used.
12420 * app/diagram_tree_window.c (diagram_tree): do not create the
12421 diagram tree until diagram_window() or diagtree_show_callback()
12424 2001-10-31 Jose A Ortega Ruiz <jaortega@acm.org>
12425 [slightly modified and applied from Hans Breuer <hans@breuer.org>]
12427 * app/diagram_tree_window.[hc] : (new files) implementation of
12428 the diagram tree window, a container for a diagram tree. [Removed
12429 the horizontal scroll bar glitch by disableing it]
12431 * app/diagram_tree.[hc] : (new files) implementation of the
12432 diagram tree widget. [Don't rely on the layers GPtrArray to be
12433 NULL terminated, but use its ->len field]
12435 * app/Makefile.am (dia_core_files): added new files
12436 diagram_tree.[hc] and diagram_tree_window.[hc]
12438 * app/interface.[hc] : (create_tree_window): this function
12439 creates the new diagram tree window widget
12441 * app/undo.c (delete_objects_apply) (delete_objects_revert)
12442 (insert_objects_apply) (insert_objects_revert) (group_objects_apply)
12443 (ungroup_objects_apply) (ungroup_objects_revert):
12444 every time that an undoable command modifies a diagram
12445 adding/removing/(un)grouping objects, a diagram_tree_something() is
12446 invoked to keep the diagram tree window in sync
12448 * app/properties.c (properties_apply): call to
12449 diagram_object_modified(), which updates the diagram tree window
12450 when the properties of an object are modified
12452 * app/preferences.[hc] : new "show_diagram_tree" configuration option
12453 (whether the diagram tree window should be shown on dia startup)
12455 * app/menus.c : added '<Toolbox>/File/Diagram Tree' entry
12457 * app/diagram.h (diagram_object_modified): callback notifying of a
12458 diagram object modification
12460 * app/diagram.c (diagram_load_into): added call to
12461 diagram_tree_add() to add newly loaded diagrams to the diagram
12463 (diagram_destroy): call to diagram_tree_remove() to remove a
12464 destroyed diagram from the diagram tree window
12465 (diagram_add_object): call to diagram_tree_add_object() to add an
12466 object to the diagram tree window
12467 (diagram_add_object_list): as above, but with an object list
12468 (diagram_selected_break_external): deletion of objects from the
12469 diagram is detected here, and diagram_tree_remove_object() is
12470 invoked to remove the object from the diagram tree window (it
12471 would be nice to have a diagram_remove_object() in the Diagram
12473 (diagram_set_filename): update the diagram tree window when a
12474 diagram's filename changes
12476 * app/commands.c (file_new_callback): added call to
12477 diagram_tree_add() to add newly created diagrams to the diagram
12480 * app/app_procs.c (app_init): added call to create_tree_window()
12482 * app/makefile.msc : updated
12484 2001-10-28 Hans Breuer <hans@breuer.org>
12486 * app/preferences.h (DiaPreferences):
12487 * app/preferences.c (prefs_data): new "show_diagram_tree"
12488 configuration option (whether the diagram tree window should be
12489 shown on dia startup)
12491 * app/menus.c: added the new "<Toolbox>/View/Diagram tree" menu
12492 entry (both for GNOME and gtk)
12494 * app/diagram.h (diagram_object_modified): callback notifying of a
12495 diagram object modification
12497 * app/diagram.c (diagram_load_into): added call to
12498 diagram_tree_add() to add newly loaded diagrams to the diagram
12500 (diagram_destroy): call to diagram_tree_remove() to remove a
12501 destroyed diagram from the diagram tree window
12502 (diagram_add_object): call to diagram_tree_add_object() to add an
12503 object to the diagram tree window
12504 (diagram_add_object_list): as above, but with an object list
12505 (diagram_selected_break_external): deletion of objects from the
12506 diagram is detected here, and diagram_tree_remove_object() is
12507 invoked to remove the object from the diagram tree window (it
12508 would be nice to have a diagram_remove_object() in the Diagram
12510 (diagram_set_filename): update the diagram tree window when a
12511 diagram's filename changes
12513 * app/commands.c (file_new_callback): added call to
12514 diagram_tree_add() to add newly created diagrams to the diagram
12517 * app/app_procs.c (app_init): added call to create_tree_window()
12519 2001-10-28 Hans Breuer <hans@breuer.org>
12521 * plug-ins/python/pydia-property.c : apparently I missed
12522 to commit this last time. Now it has some more SetAttr
12523 support (apply from property)
12525 * plug-ins/python/pydia-properties.h : added PyDiaProperty_Check
12527 * plug-ins/python/pydia-text.[ch] : new files
12529 2001-10-14 Hans Breuer <hans@breuer.org>
12531 * lib/charconv.c : g_locale_to_utf8() does not handle NULL
12532 strings. Use g_strdup() for these.
12534 libxml2 does not produce 'any extra indentation when saving a tree'
12535 [libxml2-2.4.2/doc/upgrade.html] anymore, which was the default with
12536 libxml(1). To get human readable XML some extra tweaking is required.
12537 It is enabled by setting 'pretty_formated_xml' to 'true' in 'diarc'.
12538 * lib/dia_xml.[hc] : provide and use 'DIAVAR pretty_formated_xml'
12539 * app/preferences.[ch] : initialize 'pretty_formated_xml'
12541 * lib/libdia.def : updated externals
12543 * lib/properties.h : add prototype for prop_list_from_single ()
12545 * plug-ins/makefile.msc : build metapost plug-in
12547 * plug-ins/metapost/render_metapost.c : msvc does not like
12548 switch labels without operation 'default: }'. Added a noop.
12550 * plug-ins/python/pydia-text.[hc] : (new files) wrap DiaText
12551 * plug-ins/python/diamodule.c : added PyDiaText
12552 * plug-ins/python/makefile.msc : dito. Also added LIBXML_CFLAGS.
12553 Although the python plug-in does not use libxml at all, the
12554 headers are required to use the lib/prop*.h headers
12556 * plug-ins/python/pydia-diagramdata.c : added wrappers for
12557 update_extents and get_sorted_selected (should I duplicate
12558 more functions from PyDiaDiagram or should they be moved?)
12560 * plug-ins/python/pydia-properties.c : allow to set (some) properties
12561 through the dictionary api
12562 * plug-ins/python/pydia-property.h : declare PyDiaProperty_ApplyToObject
12563 * plug-ins/python/pydia-property.c : implement it (currently only
12564 string properties can be set)
12566 Reimplement PyDiaProperty_GetAttr by means of the new StdProp api.
12567 Quoting myself: 'Still not convinced that this is better than an
12568 integral property->type and some casting ...
12569 It is trading a straightforward 40 lines switch statement to
12570 this nice 'type safe' function mapping (about 125 lines)'
12571 (But now it works again, better than changing the News file :)
12573 2001-10-14 Cyrille Chepelov <chepelov@calixo.net>
12575 patch from <robert.young@dsto.defence.gov.au>:
12576 * objects/UML/component.c: remember to set font in UML component
12577 object (fixes #62132)
12579 2001-10-02 Lars Clausen <lrclause@cs.uiuc.edu>
12581 * plug-ins/metapost/metapost.c:
12582 * plug-ins/metapost/Makefile.am:
12583 * plug-ins/metapost/render_metapost.c:
12584 * plug-ins/metapost/render_metapost.h:
12585 Metapost renderer from Chris Sperandio
12587 2001-09-14 Hans Breuer <hans@breuer.org>
12589 * app/render_gdk.c : reflect the fact, that GTK already talks
12590 UTF8 on win32, fixes #59982, #56100, (#55992 ?) ...
12593 * app/render_libart.c : trying to fix #58045 but it appears
12594 to be an Gdk/win32, too.
12596 * lib/charconv.c : handle utf8 conversion with the help of
12597 glib-1.3 even in the !HAVE_UNICODE case.
12599 * lib/dia_xml.c : reduce complaing about missing encoding, by
12600 detecting if the default (utf8) would break the file.
12602 2001-09-13 Cyrille Chepelov <chepelov@calixo.net>
12604 * lib/charconv.c: (get_local_charset): at least please try to not
12605 silently change the logic, while avoiding crashes.
12607 * lib/font.c: (suck_font): put a #error, we have a nasty something
12608 to fix there before we switch to Gtk 2.0.
12610 2001-09-09 Hans Breuer <hans@breuer.org>
12612 * **/makefile.mingw : Approach to compile Dia with mingw.
12613 Compiling mostly works but running does not (yet) ...
12616 - use G_OS_WIN32 instead of _MSC_VER to drag in isinf, etc. definitions.
12617 Apparently mingw needs it too.
12618 - enable 'normalization' of a null verctor. Otherwise the beziergon
12619 bounding box calculation would be broken at least with msvc. What's
12620 the mathematical correct result of 0.0/0.0 ?
12622 * lib/dia_xml.c : isinf() for mingw too.
12624 * lib/dia_dirs.c : use MAX_PATH instead of _MAX_PATH (works for mingw
12627 * lib/charconv.c : still crashes if strcmp(NULL, "UTF-8").
12628 Please don't do it.
12630 * lib/font.c : Trying to reflect that GTK_TALKS_UTF8_WE_DONT
12632 * lib/libdia.def : updated externals. Apparently mingw needs
12633 them to produce the right mangling.
12635 * plug-ins/shape/shape-exports.c : get prototypes for xmlStrdup
12638 2001-09-08 Wang Jian <lark@linux.net.cn>
12640 * configure.in(ALL_LINGUAS): Renamed zh_CN.GB2312 to zh_CN
12642 2001-09-07 Cyrille Chepelov <chepelov@calixo.net>
12644 * lib/dia_xml_libxml.h:
12645 * lib/dia_xml.c: (data_add_string), (xmlDiaSaveFile): Duplicated
12646 libxml1's code, to rework the output file before it gets committed
12647 to disk. This is rubbish, and will be removed when libxml2
12648 switches from discouraged to mandatory.
12649 All in all, this fixes #60152.
12652 * lib/charconv.c: (charconv_unichar_to_utf8):
12653 made the type of the input parameter explicitly an unsigned long.
12655 * configure.in: Added a check for libz (we must now include it
12656 explicitly, for xmlDiaSaveFile).
12658 * app/load_save.c: (diagram_data_save):
12659 * lib/plug-ins.c: (ensure_pluginrc), (info_fill_from_pluginrc),
12660 (dia_pluginrc_write):
12661 * plug-ins/shape/shape-export.c: (new_shape_renderer),
12662 (end_render), (draw_string):
12663 * plug-ins/svg/render_svg.c: (new_svg_renderer), (end_render),
12666 Made sure we always write UTF-8 XML files, and through
12669 * NEWS: documented that fact.
12671 2001-09-07 James Henstridge <james@daa.com.au>
12673 * configure.in (found_libxml): refactor the check for libxml a
12674 little so that it handles finding both libxml1 and 2 better.
12676 2001-09-03 Cyrille Chepelov <chepelov@calixo.net>
12678 * app/app_procs.c: removed a spurious } which caused a compilation
12679 error in the (!HAVE_GNOME && HAVE_POPT_H) case
12681 * lib/charconv.c: (get_local_charset): some versions of iconv(1)
12682 don't know what ANSI X3.4-1968 is. I didn't know until this day,
12683 but it's just plain old ASCII. Added a check to shield the poor
12686 Patches from <robert.young@dsto.defence.gov.au>:
12688 * lib/text.c: (text_calc_boundingbox) Bounding box now calculates the
12689 width and height of text before calculating bounds. Fixes #59928
12691 * app/preferences.c: Moved grid related items into Grid Tab.
12693 2001-09-02 Cyrille Chepelov <chepelov@calixo.net>
12695 * app/interface.c: (create_zoom_widget): connected one more signal
12696 to the Zoom selector combo's list. Fixes #59879.
12698 * app/app_procs.[ch]: (app_init) (do_convert)
12699 (build_output_file_name): brought back into the main executable
12700 the rare useful bits of the ill-fated diaconv. This means we have
12701 one new feature : --export-to-format (-t), which should make
12702 writing conversion scripts easier, and a crude implementation of
12703 -t and -e for the poptless argument parsing, which means the Win32
12704 port should be able to take advantage of it (that should make
12705 resolving #58197 possible).
12707 * app/diaconv.c: kept the poor duck compiling (but that's about
12710 * plug-ins/svg/render_svg.c: updated the SVG DTD header (I hope
12711 I've got it right).
12713 * NEWS: updated about the new feature above, and documented the
12714 "missing encoding specification" complaint.
12716 2001-09-01 Abel Cheung <maddog@linux.org.hk>
12718 * configure.in: Rename zh_TW.Big5 -> zh_TW in ALL_LINGUAS.
12720 2001-09-01 Cyrille Chepelov <chepelov@calixo.net>
12722 * objects/standard/bezier.c: used g_new0 instead of g_new, to take
12725 2001-09-01 James Henstridge <james@daa.com.au>
12727 * */Makefile.am: various changes to include missing files, and fix
12728 sheets dir to handle building with builddir != srcdir.
12730 * autogen.sh: unconditionally pass the --enable-maintainer-mode
12731 and --enable-db2html flags so that builds from CVS work correctly.
12733 * configure.in: increment version number. Also add an
12734 --enable-db2html flag. Without the flag, db2html won't be run (if
12735 the flag is passed and db2html is not present, do nothing).
12737 2001-08-30 Cyrille Chepelov <chepelov@calixo.net>
12739 * lib/poly_conn.c: (polyconn_copy): it's a wonder this routine
12740 even compiled. It's really too bad there is no lint tool easily
12741 available (or a more cautious, pedandic, paranoid and verbose
12742 compiler). Anyway, this fixes #59662. (this didn't affect 0.88.x)
12744 2001-08-27 Cyrille Chepelov <chepelov@calixo.net>
12747 * dia/lib/plug-ins.c: use g_strdup() instead of strdup(). Patch
12748 from <robert.young@dsto.defence.gov.au>. Fixes #59591.
12750 * app/menu.c: added ellipsis(...) to diagram properties menu item.
12751 * app/dia-props.c: diagram properties dialog contents did not
12752 represent current diagram settings.
12753 * app/dia-props.[ch]:
12754 * app/display.c: diagram properties contents now follows currently
12756 Patch also from <robert.young@dsto.defence.gov.au>, fixes #59409.
12758 * AUTHORS: added Robert Young.
12760 2001-08-27 Cyrille Chepelov <chepelov@calixo.net>
12762 * app/modify_tool.c: (modify_button_release): Patch from
12763 <robert.young@dsto.defence.gov.au>. Fixes the remaining bit from
12764 #59090: if selection dragging was released outside of the window,
12765 artifacts of the selection box remained.
12767 2001-08-25 Cyrille Chepelov <chepelov@calixo.net>
12769 * Objects/custom/shape_info.c: added missing #include <xmlmemory.h>
12771 2001-08-19 Cyrille Chepelov <chepelov@calixo.net>
12774 * sheets/Makefile.am: prepared the terrain for the Version of
12775 xml-i18n-tools Which Comes After 0.9 (and which will feature at
12776 last a sane behaviour with XML files). Some reasonible delay
12777 before enforcing that version *will* be given.
12779 * xml-i18n-merge.in.kg: included the current CVS xml-i18n-merge.in
12781 * lib/plug-ins.c: <xmlmemory.h> defines xmlFree(), otherwise it
12782 becomes a nonexistent symbol.
12784 2001-08-18 Hans Breuer <hans@breuer.org>
12786 * app/app_procs.c : made it compile without ENABLE_NLS
12788 * app/diap_callbacks.c : strcmp isn't guaranteed to work
12791 * app/load_save.c :
12793 * objects/custom/shape_info.c : avoid mixing allocators and dealocators.
12795 xmlGetProp, ... -> xmlFree
12796 malloc, strdup -> free
12797 g_new, g_malloc, g_strdup - > g_free
12799 * app/win32print.c : some more error checking, still not
12802 * lib/charconv.c : get_local_charset is used even with !HAVE_UNICODE
12804 * lib/dia_xml.c : msvc still has no unistd.h
12807 * lib/sheets.c : temporary resolved libxml include brokeness
12809 * plug-ins/python/pydia-*.c : reflect Font and StdProp api
12810 changes. Compiles again, but doesn't do anything useful anymore.
12811 (see THE_PROP_TYPE_IS_INTEGRAL)
12813 * **/makefile.msc : updated to use LIBXML2
12815 * lib/libdia.def : reflect api changes
12817 2001-08-17 Cyrille Chepelov <chepelov@calixo.net>
12819 * config.h.win32: added defines telling that gtk speaks UTF8.
12820 Hans, I believe this reflects what GTK on Win32 does.
12822 * app/app_procs.c: if GTK talks UTF8, we'll feed it UTF8 localised
12824 * lib/prop_inttypes.c:
12826 * lib/prop_widgets.c: fixed typos in the GTK_TALKS_UTF8_WE_DONT
12829 * lib/plug-ins.c: (dia_register_plugins_in_dir): If there is a
12830 trailing // (or whatever (G_DIR_SEPARATOR * 2) is), a recursive
12831 search for plug-ins is done.
12832 * app/Makefile.am: made app/run_dia.sh use the // capability. No
12833 need to update this anymore if we get a new plug-in library (or
12836 * lib/dia_xml.c: #include <unistd.h> was missing.
12838 * lib/properties.h:
12839 * lib/proplist.c: (pdtpp_defaults): Added a new flag,
12840 PROP_FLAG_NO_DEFAULTS. Will be used in the "automatic defaults"
12843 2001-08-16 Cyrille Chepelov <chepelov@calixo.net>
12845 * sheets/civil.sheet: removed duplicate "Danish" entries.
12850 * sheets/Makefile.am:
12852 * Makefile.am: applied the xml-i18n-tools README's instructions.
12854 * po/(da de fr hu nl nn no sl).po: merged the translations from
12855 the sheet files into the .po files. I hope I haven't mixed
12857 * sheets/*.sheet (REMOVED):
12858 * sheets/*.sheet.in (NEW): moved the sheet files sans
12859 translations into .sheet.in files.
12861 * sheets/xml-i18n-unicodify: (NEW) included from xml-i18n-tools,
12862 because we don't yet want to force all translators to work using
12863 UTF-8 editors. We'll want to do that sometime (sooner rather than
12864 later). Okay, I sing a slightly different tune in po/ChangeLog...
12866 * dia.desktop (REMOVED):
12867 * dia.desktop.in (NEW): used also the x18t infrastructure for
12870 * xml-i18n-update.in.kg (NEW): This one will stay in CVS until an
12871 "official" version of x18t with support for .sheet files is available.
12872 * xml-i18n-merge.in.kg (NEW): This one will stay in CVS until an
12873 "official" version of x18t which doesn't corrupt UTF-8 data in XML
12876 ** yes, we are now using xml-i18n-tools to manage the sheet
12877 translations. For the Win32 build, Nemo stores snapshots of
12878 translated strings next to the CVS snapshots. **
12880 * sheets/checktrans.py: suddenly, some sheets have lots of
12881 translations (objects which existed before sheets, mostly).
12882 Adapted the formatting.
12884 * po/README (REMOVED): this is obsolete ! It was ignored, anyway.
12886 * app/display.[ch]: (ddisplay_autoscroll), (ddisplay_scroll):
12887 * app/modify_tool.[ch]: (modify_motion): A (modified) patch from
12888 <robert.young@dsto.defence.gov.au>, to fix #59090.
12890 * app/display.c: (ddisplay_scroll): While at it, added some
12891 margin, so that autoscrolling can happen within a margin outside
12892 the diagram's extents.
12896 * app/disp_callbacks.c: Robert "forced" me to go when I usually
12897 don't, namely the app/ directory. So while I was there, I
12898 scratched a long-time itch. If no object has focus, pressing the
12899 space bar will select back the tool which was selected before the
12900 current one (I find this especially useful with "reset after create" !)
12902 * lib/proplist.c: (prop_list_from_single): Renamed
12903 prop_list_singleton() to avoid confusion with the Singleton
12904 pattern (which it definitely is not).
12906 * lib/propobject.c: (object_prop_by_name_type),
12907 (object_prop_by_name): The "flags" parameter was not necessary.
12908 These don't return synthetic properties, but properties built from
12909 a real property description list; therefore, we don't call
12910 make_new_prop() but use the existing property descriptor, which
12911 has perfectly valid (and meaningful) flags.
12913 * lib/proplist.c: (pdtpp_synthetic), (pdtpp_from_object): These
12914 new predicates better reflect the reason why properties exist when
12915 they're created by make_new_prop() or object_prop_by_name().
12917 * lib/propobject.c: (object_prop_by_name_type), (object_prop_by_name):
12918 * lib/prop_basic.c: (make_new_prop): used the new reasons instead
12921 * lib/properties.h: reflects all the above changes.
12923 * objects/SADT/arrow.c:
12924 * objects/SADT/annotation.c:
12925 * sheets/SADT.sheet: minor renamings to better match FIPS 183's
12928 2001-08-15 Cyrille Chepelov <chepelov@calixo.net>
12930 * lib/properties.h:
12931 * lib/proplist.c: (prop_list_singleton):
12932 * lib/propobject.c: (object_prop_by_name_type), (object_prop_by_name):
12933 Added these, to simplify interactions of plug-ins with the StdProp
12938 * lib/dia_xml_libxml.h (NEW):
12943 * objects/custom/shape_info.c: A few prototypes were causing
12944 #include hell, because we generally attempt to not pull the whole
12945 libxml header set when we include dia_xml.h. Moved those
12946 prototypes away for the rare cases they're necessary.
12948 2001-08-15 Hans Breuer <hans@breuer.org>
12950 * lib/font.c : made LARS_TRACE_MESSAGES Standard C conform
12953 * lib/makefile.msc : updated
12955 * lib/prop_basic.c : __FUNCTION__ is a gcc extension. Please
12956 use G_GNUC_FUNCTION instead.
12958 * lib/prop_inttypes.c : include <stdlib.h> for strtol()
12960 * objects/sadt/annotation.c : disable TEMPORARY_EVENT_TEST for
12961 msvc instead of cleaning missing includes
12963 * plug-ins/wmf/wmf.cpp :
12964 * plug-ins/wmf/wmf_gdi.h : fixed for Font to DiaFont renaming
12966 2001-08-15 Cyrille Chepelov <chepelov@calixo.net>
12973 * objects/custom/shape_info.c:
12974 * plug-ins/shape/shape-export.c:
12975 * plug-ins/svg/render_svg.c: used the libxml1/libxml2
12976 compatibility macros as taught by http://xmlsoft.org/upgrade.html;
12977 removed xmlKeepBlanksDefault(0) in favour for proper
12978 xmlIsBlankNode() testing. Lots of other fixups to use the
12979 "libxml1.5" (libxml2 parser embedded in recent libxml1), and to
12980 make libxml1 output correct files.
12982 * configure.in: use libxml2 (>= 2.3.9) if it's found, or
12983 libxml1 (>= 1.8.14). Exactly one of these must be installed (devel
12984 packages). If both devel packages are found, the build will stop
12985 (Fredrik: please add a Build-Conflicts: on libxml2-dev for the moment)
12987 * lib/bezier_conn.c: (bezierconn_init): Lars, you forgot to
12988 allocate the first handle :-)
12990 * lib/object.c: (object_init): <gratuitous>g_new() used instead of
12991 a cast and a sizeof.</gratuitous>
12993 * objects/custom/custom_object.c: (custom_copy): don't call
12994 text_get_attrbutes if the shape has no text...
12995 (custom_update_data): The info->resize_with_text code was a bit
12996 directive; basically, the shape's bounding box was forced to be
12997 proportional to the text's bounding box.... This fixes #57187.
12999 * objects/custom/shape_info.c: (load_shape_info): Set an obvious
13000 default for info->aspect_ratio; unobfuscated a line about
13001 info->resize_with_text;
13003 2001-08-15 Cyrille Chepelov <chepelov@calixo.net>
13005 * lib/properties.h: added comments next to the PROP_TYPEs to tell
13006 which C Property subclass to use.
13008 * plug-ins/dxf/dxf-import.c: (read_entity_line_dxf): Removed the
13009 cast-ridden form of setting properties in a list, in favour for
13010 the "local pointers" form. I'll take any better offer...
13012 2001-08-14 Cyrille Chepelov <chepelov@calixo.net>
13014 * lib/font.c: fprintf(...) --> fprintf(format...)
13016 * configure.in: added a disabled versioned test for glib.
13017 * lib/prop_geomtypes.c: (bezpointprop_load), (bezpointprop_save),
13018 (bezpointarrayprop_load), (bezpointarrayprop_save): replaced
13019 g_critical() with a simple g_error(). Proper fix is to implement
13022 * lib/properties.h: PROP_STD_TEXT is a PROP_TYPE_TEXT, not a
13025 * lib/properties.h:
13026 * lib/propdesc.c: (prop_desc_list_calculate_quarks):
13027 * lib/proplist.c: (find_prop_by_name_and_type):
13028 * lib/prop_basic.c: (make_new_prop), (initialize_property):
13029 * lib/propoffsets.c: (do_set_props_from_offsets),
13030 (do_get_props_from_offsets), (prop_offset_list_calculate_quarks):
13031 Added a type_quark member to PropDescription, Property and
13032 PropOffset. Used it to implement a safety in
13033 do_[sg]et_props_from_offsets().
13035 * objects/flowchart/diamond.c: the diamond's text was not saved,
13036 and thus not even copied (c&p).
13037 * objects/standard/textobj.c: ditto.
13039 Most of the above changes thanks to Robert Young's testing. Thanks !
13041 2001-08-14 Kjartan Maraas <kmaraas@gnome.org>
13043 * sheets/*.sheet: Added some Norwegian translations (both nynorsk
13046 2001-08-13 Cyrille Chepelov <chepelov@calixo.net>
13048 * lib/proplist.c (prop_list_from_descs): added a call to
13049 prop_desc_list_calculate_quarks(). (find_prop_by_name_and_type):
13050 too embarrassing to tell.
13052 * lib/propdesc.c (prop_desc_list_calculate_quarks): converted the
13053 while loop to a for loop, for symmetry with
13054 prop_offset_list_calculate_quarks().
13056 * lib/geometry.h: new inline function, rectangle_equals.
13058 * lib/diagramdata.[ch]: refactored a bit the diagram extents
13059 computation logic, and changed it to always be the union of the
13060 visible layers' extents. This should close #58882 (Debian
13061 #107167), and fixes #55498.
13063 * app/display.c: made the initial visible box more coherent with
13064 the diagram being loaded's extents.
13066 * app/prop_attr.c: don't set the font (from offset) if font_data
13067 is NULL. Two brainos in colorprop_load() and fontprop_load().
13069 2001-08-13 Cyrille Chepelov <chepelov@calixo.net>
13071 * lib/properties.[ch]: split in a lot of pieces:
13073 * lib/prop_*.[ch] (NEW): all property types are now first-class
13074 objects, inheriting from the original abstract Property type.
13075 * lib/propdesc.c (NEW): property description handling routines
13076 * lib/propoffsets.c (NEW): property offset handling routines
13077 * lib/proplist.c (NEW): property list handling routines
13078 * lib/propobject.c (NEW): property list <-> object routines
13079 * lib/propregistry.c (NEW): holds the PropertyType-->PropertyOps
13081 * lib/propinternals.h: prototypes for stuff not usually needed by
13082 the outside of StdProps.
13083 * lib/Makefile.am: a lot of new files have been added...
13085 THE ABOVE CHANGES ARE MAJOR CHANGES AND AFFECT THE WHOLE TREE, IN
13086 BOTH INTERFACES AND RUN-TIME STABILITY.
13088 * lib/plug-ins.h: bumped up DIA_PLUGIN_API_VERSION
13090 * lib/object.h: removed the incestuous relationship with
13091 properties.h' contents. Now a Property list is a GPtrArray -->
13092 object interface change !
13094 * app/app_procs.c/app_init(): removed a disabled call to a
13095 non-existent routine. Added a call to stdprops_init().
13097 * objects/Makefile.am: disabled the construction of EML. I'm not
13098 touching these until a certain issue is solved (or this module
13101 * objects/**/*.c except objects/EML/*: adapted all stdprop-using
13102 objects to the interface changes.
13104 * app/disp_callbacks.c: killed a warning.
13105 * lib/dia_xml.[ch]: sprinkled "const" modifiers.
13108 The macros PROP_VALUE_* have disappeared. Adapted to using the new
13111 * plug-ins/dxf/dxf-import.c:
13112 * plug-ins/xfig/xfig-import.c:
13113 PROP_VALUE_* macros have been removed. Converted to the new API.
13115 * plug-ins/python/**/*: I gave up converting this; I can't
13116 compile --with-python (problems with object.h defined both by us
13117 and by Python). I'll gladly help whomever cares to fix it !
13118 (or, fix it myself if someone tells me how to compile it).
13120 * configure.in: added the UNICODE-related progress defines.
13123 * lib/geometry.h: On Solaris and perhaps other systems, finite()
13124 is defined in ieeefp.h rather than in math.h. Patch from Andrew
13125 Halper <ashalper@acm.org> with further modifications, isinf() is
13126 provided by -lsunmath (sunmath.h).
13128 * lib/font.c: conditionally disabled Lars' debugging messages.
13129 Bracketed the definition of DiaFontFamily with #ifdef HAVE_FREETYPE.
13131 2001-08-11 Lars Clausen <lrclause@cs.uiuc.edu>
13133 * lib/bezier_conn.h:
13134 * objects/standard/bezier.c (bezierline_create):
13135 * lib/bezier_conn.c (bezierconn_init):
13136 Preparations for use of userdata for bezier lines.
13138 * objects/standard/polygon.c:
13139 * objects/standard/create.h:
13142 * plug-ins/xfig/xfig-import.c:
13143 Use of user_data for polygon as well, including adding
13144 polyshape_set_points. Include file for non-interactive
13145 creation of standard objects, objects/standard/create.h
13147 2001-08-10 Lars Clausen <lrclause@cs.uiuc.edu>
13149 * app/render_gdk.c:
13150 * app/render_gdk.h:
13154 More preliminary freetype support. Not at all functional, crashes
13159 * objects/standard/polyline.c:
13160 Support for creating polyline objects with more than two points.
13161 This includes an extra function and a prototype change in the
13162 poly_conn lib object.
13164 * lib/object.c (object_copy): Fixed memory leak of handles and
13167 2001-08-08 Abel Cheung <maddog@linux.org.hk>
13169 * dia.desktop: added traditional Chinese strings
13171 2001-08-04 Cyrille Chepelov <chepelov@calixo.net>
13173 * NEWS: updated to reflect build-time dependencies.
13175 * lib/properties.[ch]: wrote get_prop_descriptions() as a wrapper
13176 around obj->ops->describe_props(obj). Quarks are none of an
13177 object's business in the general case...
13178 * lib/text.c: Added an apply_textattr_properties() function to
13179 factor out some common code related to applying a dialog's text
13180 attribute properties to a (Text *) which wasn't edited there.
13181 Ditto for textstr, for the string part of an objet.
13183 * objects/GRAFCET/action.c:
13184 * objects/SADT/annotation.c:
13185 * objects/SADT/box.c: used apply_textattr_properties().
13187 * objects/UML/actor.c:
13188 * objects/UML/branch.c:
13189 * objects/UML/component.c:
13190 * objects/UML/constraint.c:
13191 * objects/UML/small_package.c:
13192 * objects/UML/state.c:
13193 * objects/UML/usecase.c:
13194 * objects/UML/large_package.c:
13195 * objects/UML/note.c:
13196 * objects/UML/node.c:
13197 * objects/UML/message.c:
13198 * objects/UML/classicon.c:
13199 * objects/UML/object.c:
13200 * objects/UML/realizes.c:
13201 * objects/UML/dependency.c:
13202 * objects/UML/implements.c:
13203 slim-fast(tm) cure using more StdProps, and UTF-8 audit.
13204 (most objects were already using StdProps to some extent ; this
13205 systematises usage and removes some dead wood).
13207 * objects/UML/stereotype.[ch]: use UTF-8 internally. const police work.
13208 * objects/UML/uml.[ch]: audited for UTF-8.
13210 * objects/UML/class.c: the UML_STEREOTYPE_* strings defined by
13211 uml.h can be in UTF-8... this code isn't yet ready. Duplicating a
13212 private (ISO-8859-1) definition.
13214 * lib/charconv.c: Added a warning if we didn't run
13215 nl_langinfo(CODESET) but rely instead on a hardcoded default.
13217 2001-08-02 Cyrille Chepelov <chepelov@calixo.net>
13220 * app/disp_callbacks.c: added a way for an object to cause an
13221 already realised menu to be destroyed (for instance if it changes
13224 * objects/custom/custom_object.c: used the above to fix #55073.
13226 2001-08-01 Lars Clausen <lrclause@cs.uiuc.edu>
13228 * configure.in: Remove 2.50 prereq.
13230 2001-07-30 Cyrille Chepelov <chepelov@calixo.net>
13232 * po-checktrans.py: under some circumstances, there was one column
13233 more than what was supposed to be, thus breaking the formatting.
13235 2001-07-29 Cyrille Chepelov <chepelov@calixo.net>
13237 * objects/SADT/annotation.c: forgot to add a #include <stdlib.h>
13239 * NEWS: updated with new stuff since 0.88
13241 * shapes/network/antenna.shape: the text was misplaced ; fixed.
13243 * shapes/network/firewall.(shape|xpm) (NEW): a brick-wall looking
13244 firewall router (upon request from Cyril Lacoux
13245 <clacoux@easter-eggs.com>)
13247 * configure.in (didn't rename to configure.ac): autoconf 2.50
13248 constructs were used ; added an AC_PREREQ call to guard against
13251 2001-07-27 Cyrille Chepelov <chepelov@calixo.net>
13253 * lib/properties.c: minor clean-ups with the event delivery code.
13255 * EML/instantiation.c: brought this object back from stone and ice
13258 * app/diaconv.c(NEW): added a command-line conversion tool. Still
13259 lacks a man page and correctness. In fact, it doesn't work. Please
13260 see #58196 if you want to finish it.
13262 * lib/message.[ch]: redefined things a little so that a different
13263 message_internal routine could be passed.
13264 applications can use that to fit themselves to the display model.
13266 2001-07-26 Cyrille Chepelov <chepelov@calixo.net>
13268 * objects/SADT/box.c:
13269 * objects/GRAFCET/action.c: spelling in property descriptors (name
13271 * objects/SADT/annotation.c: ditto, plus a temporary test of the
13272 event delivery code (try to click on the "click me !" button !).
13275 * lib/properties.[ch]: improved (fixed) support for group event
13276 handlers. Fixed various things from yesterday's code to make it
13277 not too obviously crash.
13279 2001-07-26 Cyrille Chepelov <chepelov@calixo.net>
13281 * app/group.c: added delivery of events to the first member of the
13282 group which is able to process it.
13284 * lib/properties.c(prop_desc_lists_intersection): properties
13285 don't match if they don't have identical event handler.
13286 * lib/properties.h: simplified the PropEventHandler signature.
13288 Event delivery code is still untested so far, but should be
13291 2001-07-25 Cyrille Chepelov <chepelov@calixo.net>
13293 * lib/properties.[ch]: Added (untested !) property event handler
13294 capability. Added a new PROP_TYPE_BUTTON, for the purpose of
13295 generating such events. This stuff compiles, and should lurk
13296 around silently as long as you don't declare property descriptors
13297 with events (AFAICT).
13298 In object_create_props_dialog() and friends:
13299 attached a single structure with lots of data instead of lots of
13300 little attachments of data to the dialog widget.
13302 * lib/object.h: fixed mild typedef breakage introduced by the above.
13304 2001-07-17 Lars Clausen <lrclause@cs.uiuc.edu>
13306 * lots of files: Changed Font to DiaFont
13307 * */Makefile.am: Added FREETYPE_LIBS
13308 * plug-ins/xfig/xfig-export.c: Improved (working:) color handling
13310 2001-07-13 Kjartan Maraas <kmaraas@gnome.org>
13312 * configure.in: Added "nn" to ALL_LINGUAS.
13314 2001-07-09 Alex Larsson <alexl@redhat.com>
13316 * app/disp_callbacks.c:
13317 Add gdk_im_ready() calls to XIM code.
13319 2001-07-04 Cyrille Chepelov <chepelov@calixo.net>
13321 * lib/properties.[ch]: splitted prop_get_widget() into
13322 prop_get_widget() (gives a widget but doesn't fill it) and
13323 prop_reset_widget() (fills an existing widget with a property's value).
13325 * lib/widgets.[ch]: const enforcement police work.
13327 * shapes/network/antenna.shape: added a connection point at top,
13328 upon request from <Emmanuel.Quemener@cri.ens-cachan.fr>.
13330 2001-06-25 Cyrille Chepelov <chepelov@calixo.net>
13332 * intl/*: tested with gettext-0.10.38
13333 * configure.in: moved a macro call around (AM_PROG_CC) to keep
13334 some of autogen.sh from complaining.
13335 * INSTALL: added a warning against gettext older than at least 0.10.36
13337 2001-06-19 Cyrille Chepelov <chepelov@calixo.net>
13339 * configure.in: added explicit calls to AM_LANGINFO_CODESET and
13340 AM_ICONV (both provided by gettext)
13342 2001-06-14 Cyrille Chepelov <chepelov@calixo.net>
13344 * lib/charconv.c: corrected the degraded mode for when
13345 !HAVE_UNICODE. Thanks to Ben A. Hetland for reporting this.
13347 * objects/chronoline/chronoline_events.c: UTF8 compliance.
13349 2001-06-13 Cyrille Chepelov <chepelov@calixo.net>
13351 * lib/properties.[ch]: convenience macros around PROP_NOTEBOOKS ;
13352 new "eye candy" properties: PROP_MULTICOL_(BEGIN|PAGE|END) to lay
13353 widgets on several columns, PROP_FRAME_(BEGIN|END) to put widgets
13356 * objects/chronogram/chronoline.c:
13357 * objects/chronogram/chronoref.c: took advantage of the above to
13358 make nicer looking dialogs.
13360 * lib/charconv.[ch]: added charconv_unichar_to_utf8 ("inspired"
13361 from libunicode's internals).
13362 * lib/message.c: convert strings to local encoding prior to
13363 display (UNICODE_WORK_IN_PROGRESS)
13364 * lib/properties.[ch]: convert strings to local encoding prior to
13365 display, and back to UTF8 (UNICODE_WORK_IN_PROGRESS).
13366 * lib/render.h: tagged strings as (utfchar *) instead of (char *)
13367 * lib/stringprerenderer.[ch]: ditto
13369 (lib/text.c has been audited for UTF8, but the size of the changes
13370 make them inappropriate for commit before 0.89)
13372 2001-06-12 Cyrille Chepelov <chepelov@calixo.net>
13374 * objects/boolequation.h (<save|load>_boolequation): made the
13375 prototypes for match the .c file.
13377 * samples/grafcet.dia: minor non-conformance with IEC-848
13378 fixed (in the transition from step 100 to step 101).
13380 * lib/properties.[ch]: added a flag (PROP_FLAG_DONT_MERGE) to
13381 disallow editing of properties if the object is part of a group.
13383 * objects/chronogram/chronoline.c:
13384 * objects/SADT/annotation.c:
13385 * objects/SADT/box.c:
13386 * objects/GRAFCET/step.c:
13387 * objects/GRAFCET/transition.c:
13388 * objects/GRAFCET/condition.c: took advantage of PROP_FLAG_DONT_MERGE.
13390 2001-06-12 Hans Breuer <hans@breuer.org>
13392 * lib/libdia.def : removed lazyprop exports
13393 * lib/makefile.msc : removed lazyprop.obj
13395 * objects/custom/custom_objects.c : use HAVE_UNISTD_H
13396 and avoid crashes by always creating a custom->text,
13397 when (custom->info->has_text)
13399 * objects/makefile.msc : removed sybase from build
13401 * objects/GRAFCET/boolequation.c (<save|load>_boolequation) :
13402 ObjectNode is a pointer already, which is what we want
13403 instead of a pointer pointer.
13405 * plug-ins/wmf/wmf.cpp : fixed problem with arc scaling
13406 and implemented working export for images
13408 * shapes/network/zip-disk.shape : added connection points
13410 2001-06-12 Cyrille Chepelov <chepelov@calixo.net>
13412 * objects/SADT/box.c: removed lazyprops for standard props.
13413 * objects/chronograms/chronoline.c: removed lazyprops (phew !)
13414 * objects/chronograms/chronoref.c: ditto
13418 * lib/connpoint_line.c:
13419 * lib/lazyprops.[ch] (DELETED): good riddance (closes #55895)
13420 * lib/properties.[ch]: new property types:
13421 - PROP_TYPE_STATIC: static text to be displayed in the dialog.
13422 - PROP_TYPE_MULTISTRING: same as string, but renders as a
13423 multi-line entry box.
13424 - PROP_TYPE_NOTEBOOK_BEGIN,_PAGE,_END: stuff to make dialogs
13425 in a tabbed-notebook style (this is a bit complicated to use;
13426 see objects/chronograms/chronoline.c for an example).
13428 2001-06-11 Cyrille Chepelov <chepelov@calixo.net>
13430 * objects/GRAFCET/boolequation.[ch]: zap lazyprops. Add standard props.
13431 * objects/GRAFCET/step.c: ditto.
13432 * objects/GRAFCET/vector.c: ditto.
13433 * objects/SADT/annotation.c: ditto.
13434 * objects/SADT/arrow.c: ditto (plus bounding box fixes).
13436 * lib/properties.[ch]: two more non-visible types
13437 (PROP_TYPE_ENUMARRAY and PROP_TYPE_INTARRAY).
13439 * lib/neworthconn.[ch]:
13440 * lib/orthconn.[ch]: added support for manipulation through
13441 standard properties.
13443 * configure.in: removed -fomit-frame-pointer, this seems to
13444 confuse recent gcc/gdb's, maybe we'll get better stack dumps in
13447 * charconv.[ch]: more functions from unicode.h.
13448 get_local_charset() wasn't working properly, fixed now.
13449 A subtle crashbug in charconv_utf8_to_local8() nailed (thanks to
13452 * objects/EML/process.h: pulled the bits of lazyprops.h it uses.
13453 * lib/lazyprops.[ch]: put a big fat warning in.
13455 * app/render_eps.c: one line mysteriously went away, causing a
13456 variable to be used uninitialised....
13458 2001-06-10 Cyrille Chepelov <chepelov@calixo.net>
13460 * app/app_procs.c: commented out the call to
13461 bind_textdomain_codeset(): it's premature.
13463 * lib/connpoint_line.c: a NULL point can be given to
13464 connpointline_adjust_count(), in case there's not really a clicked
13467 * lib/textattr.h(NEW): moved the definition of TextAttributes to sort
13468 #include order troubles. #included by lib/text.h, so there is no
13469 impact outside lib/.
13470 * lib/properties.[ch]: added support for CONNPOINT_LINE and
13471 (nonvisible) TEXT properties.
13473 * objects/GRAFCET/action.c:
13474 * objects/GRAFCET/vergent.c: dropped lazyprops for standard
13477 * objects/UML/lifeline.c: pruned some legacy stuff (now pure
13478 standard properties code). Grafted a dynamic number of connection
13479 points (heavily inspired from what Vergent does). This is the real
13482 * objects/GRAFCET/boolequation.[ch]: audited for UTF-8
13484 * lib/fonts.c: some hardening (mostly g_assert())
13485 2001-06-09 Cyrille Chepelov <chepelov@calixo.net>
13487 * app/app_procs.c (app_init): added a call to
13488 bind_textdomain_codeset() so that gettext gives us UTF-8 strings
13489 (UNICODE_WORK_IN_PROGRESS).
13491 2001-06-08 Cyrille Chepelov <chepelov@calixo.net>
13493 * plug-ins/xfig/xfig-import.c: corrected a typo (fixes #55910)
13495 * objects/UML/lifeline.c: patch from Marc <mrw@siemens.ch>
13496 (fixes #55863) : some clean-ups in the handling of connection
13497 points. Now the total number of connection points is just a
13498 #define (the proper solution is to retrofit the GRAFCET Vergent's
13499 dynamic behaviour wrt connection points).
13501 2001-06-07 Cyrille Chepelov <chepelov@calixo.net>
13503 * app/app_procs.c (app_init): added a call to unicode_init() (only
13504 if HAVE_UNICODE, of course).
13506 * lib/charconv.c: simplified the code which detects the local
13507 charset. No need to use <langinfo.h>, libunicode already takes the
13508 burden of figuring that out. Also, if local charset is utf8, no
13509 conversion will take place.
13510 Exposed a way to get the current charset (similar to
13511 unicode_get_charset() but actually working, hopefully).
13513 * lib/charconv.h: Added a partial non-UTF8 implementation of
13514 unicode.h if !HAVE_UNICODE (actually, all the time for the
13515 moment). The UTF8 implementation is just macros on libunicode (use
13516 the functions prefixed by uni_, as defined by charconv.h, not
13517 unicode_, unless that code is to be compiled only if HAVE_UNICODE).
13518 From now on, all strings which don't *need* to be ASCII should be
13519 utfchar *, not gchar *. Just include charconv.h, let it sort out
13520 the details (such as: "is libunicode available and enabled?")
13522 * lib/ps-utf8.c: fixed a few name clashes. Used the charconv.h
13523 "API" instead of directly libunicode. Removed the now unnecessary
13524 speculative clustering of characters in encoding pages.
13526 * app/render_eps.c: made the local8->utf8 conversions dependent of
13527 !UNICODE_WORK_IN_PROGRESS (this is not where the local8/utf8
13528 boundary will be when this WIP is done).
13530 * lib/dia_xml.c (data_point): fixed a format string typo.
13532 * po/POTFILES.in: added all C files from lib/
13534 2001-06-06 Cyrille Chepelov <chepelov@calixo.net>
13536 * app/disp_callbacks.c: make sure the objects' connected objects
13537 are updated when the objects' size changes after a keypress event
13540 * configure.in: added a big warning about the possible future
13541 non-optionality of --enable-unicode.
13543 * TODO: removed entries which look like done ; added a few ones
13544 (Bugzilla "enhancement" bugs may be a better way to keep track of
13547 2001-06-05 Cyrille Chepelov <chepelov@calixo.net>
13549 * objects/UML/message.c: got rid of #55564 and of message_copy()
13550 by using more standard properties (are the message_state_*()
13551 functions still necessary ?)
13553 2001-06-04 Fredrik Hallenberg <hallon@lysator.liu.se>
13556 * objecs/custom/shape_info.c:
13557 * plug-ins/shape/shape-export.c:
13558 * plug-ins/svg/render_svg.c: patch from obecian <obecian@openbsd.org>
13559 use xmlChar instead of obsolete CHAR.
13561 2001-06-03 Hans Breuer <hans@breuer.org>
13563 * app/diagram.h : added prototype for diagram_update_menu_sensitivity()
13564 * app/commands.c : give the right number of parameters
13565 to diagram_update_menu_sensitivity ()
13567 * app/preferences.c : do proper initialization for DiaPrefsData:
13568 render_bounding_boxes. It would be a real surprise if 'hidden'
13569 properties would have ever worked before.
13570 Don't try to access the widgets of hidden property, it does not
13573 * lib/diagramdata.h : make render_bounding_boxes a DIAVAR, cause
13574 it is defined in libdia, but initialized from dia app, which
13575 otherwise gave nice start-up crashes.
13577 * lib/diagramdata.c : initialize the color for rendering bounding
13578 boxes in the Dia range (0 .. 1.0)
13580 * lib/libdia.def : added *_bbox functions for export
13582 * lib/makefile.msc : added new sources
13584 * objects/custom/custom_object.c : use HAVE_UNISTD_H
13586 2001-05-30 Cyrille Chepelov <chepelov@calixo.net>
13589 * app/menus.c: patch from Hubert Figuiere <hfiguiere@teaser.fr> ;
13590 removes a translation of menus (in a place where there shouldn't
13591 have been), which gets rid of a waterfall of warnings if LANG!=C,
13592 and a fix to #55047.
13594 2001-05-29 Steffen Macke <sdteffen@yahoo.com>
13596 * lib/charconv.c : added #include <errno.h>
13598 * app/dia_embedd.c : updated menus_get_item_from_path usage
13600 2001-05-27 Cyrille Chepelov <chepelov@calixo.net>
13602 * lib/ps-utf8.c: Strings in Symbol fonts were incorrectly rendered.
13603 Added a special case for Symbol strings, so that they're not
13604 re-encoded using the LN encoding (we use the bare Adobe encoding
13607 * objects/custom/custom_object.c: Now that #52912 is fixed,
13608 I could remove the ugly hack I wrote to squash the shape bounding box
13609 problem shown by Ben A. Hetland a few months ago, and fix it
13610 properly this time.
13612 * lib/text.c: enlarged a little the bounding box to account for
13613 the cursor in rightmost position.
13615 * lib/diagramdata.c: draw bounding boxes only if the relevant
13616 variable is set (as before), but also only if the rendere is
13617 interactive (ie, don't bother rendering bounding boxes on
13619 Made the bounding box's line width a fixed value, 0.01
13621 * lib/boundingbox.c: fixed the "pointy corners" code for polylines
13622 and assymmetric control beziers. Implemented ellipse_bbox().
13624 * Makefile.am: incantations to get po/dia.pot build, as suggested
13625 by Hubert in #55075.
13627 * shapes/network/computer.shape: typo fixed.
13628 * shapes/network/antenna.shape: fixed #55074 (antenna is now
13629 properly translucent, except for its base where it makes sense. It
13630 doesn't look that ugly anymore if transparent mode is on).
13632 * configure.in: --enable-unicode is now the default. This
13633 still currently affects only printing.
13635 2001-05-26 Cyrille Chepelov <chepelov@calixo.net>
13637 * lib/boundingbox.c: fixed a minor logic error wrt closed shapes.
13638 The overshoot code is buggy, and the bounding boxes for polyshapes
13639 looks a bit cheezy. To be done ASAP.
13641 2001-05-26 James Henstridge <james@daa.com.au>
13643 * configure.in: call AM_PATH_PYTHON rather than AM_PATH_PYTHON_JH.
13644 This should clear up some of the build problems people have been
13647 * acinclude.m4: call AM_PATH_PYTHON_JH AM_PATH_PYTHON
13649 2001-05-26 Cyrille Chepelov <chepelov@calixo.net>
13652 * lib/boundingbox.[ch] (NEW): (some) refactoring of the bounding
13653 box code (beginning with lines, polylines and polybeziers), into a
13654 more generic facility. While at it, a better shot at correctly
13655 computing the bounding box of a Bezieroid (should take care of
13656 #53424, #51233 and of course is part 1 of #52912).
13658 * lib/diagramdata.c: turned the RENDER_BOUNDING_BOXES conditional
13659 into a hidden preference (set render_bounding_boxes in diarc).
13660 * app/preferences.[ch]: Added support for hidden preferences.
13662 * lib/geometry.[ch]: sprinkled with "const" modifiers.
13664 * lib/bezier_conn.[ch]:
13665 * lib/beziershape.[ch]:
13666 * lib/connection.[ch]:
13667 * lib/element.[ch]:
13668 * lib/poly_conn.[ch]:
13669 * lib/orth_conn.[ch]:
13670 * lib/neworth_conn.[ch]:
13671 * lib/polyshape.[ch]: adapted to take advantage of
13672 boundingbox.[ch] instead of relying on private (duplicate) code.
13674 * object/FS/flow.c:
13675 * object/GRAFCET/action.c:
13676 * objects/GRAFCET/condition.c:
13677 * objects/GRAFCET/vergent.c:
13678 * objects/GRAFCET/vector.c:
13679 * objects/SADT/annotation.c:
13680 * objects/SADT/arrow.c:
13681 * objects/ER/participation.c:
13682 * objects/UML/constraint.c:
13683 * objects/UML/implements.c:
13684 * objects/UML/lifeline.c:
13685 * objects/UML/message.c:
13686 * objects/UML/realizes.c:
13687 * objects/UML/generalization.c:
13688 * objects/UML/association.c:
13689 * objects/UML/dependency.c:
13690 * objects/FS/flow-ortho.c:
13691 * objects/network/bus.c:
13692 * objects/standard/arc.c:
13693 * objects/standard/bezier.c:
13694 * objects/standard/beziergon.c:
13695 * objects/standard/line.c:
13696 * objects/standard/polygon.c:
13697 * objects/standard/zigzagline.c:
13699 * objects/standard/polyline.c: Some *BBExtras structures changed
13700 names while moving to boundingbox.[ch]. A trivial mass-renaming.
13702 2001-05-20 Cyrille Chepelov <chepelov@calixo.net>
13704 * app/disp_callbacks.c (ddisplay_canvas_events): Take into account
13705 wheel mouses for scrolling (from Patrick Sung <phsung@ualberta.ca>)
13707 * app/display.c (ddisplay_update_scrollbars): from Patrick's
13708 suggestion, remove the extra scrollable area (it was only visible
13709 to the scrollbars). This is experimental.
13711 * objects/custom/custom_object.c: If a shape's icon file doesn't
13712 exist, warn and substitute a default icon, instead of crashing.
13715 * objects/network/network.c:
13716 * shapes/network/modularswitch.(shape|xpm) (NEW):
13717 * shapes/network/printer.(shape|xpm) (NEW):
13718 * shapes/network/genmonitor.(shape|xpm) (NEW):
13719 * shapes/network/computer.(shape|xpm) (NEW):
13720 * shapes/network/Makefile.am: four less objects, four more shapes.
13721 These were the last known RenderObjects. (phew !)
13725 * objects/sybase/Makefile.am:
13726 * objects/network/Makefile.am: Removed the older Renderobjects
13727 from the build, and their infrastructure (not yet deleted,
13730 * shapes/network/sceadplug.shape:
13731 * shapes/network/antenna.shape:
13732 * shapes/network/modem.shape:
13733 * shapes/network/hub.shape:
13734 * shapes/network/rj45plug.shape:
13735 * shapes/sybase/client.shape:
13736 * shapes/sybase/dataserver.shape:
13737 * shapes/sybase/ltm.shape:
13738 * shapes/sybase/repserver.shape:
13739 * shapes/sybase/rsm.shape:
13740 * shapes/sybase/stableq.shape: Minor corrections (line widths were
13741 ten times too narrow).
13743 2001-05-19 Cyrille Chepelov <chepelov@calixo.net>
13745 * objects/network/network.c:
13746 * shapes/network/sceadplug.(shape|xpm) (NEW):
13747 * shapes/network/antenna.(shape|xpm) (NEW):
13748 * shapes/network/modem.(shape|xpm) (NEW):
13749 * shapes/network/Makefile.am: four less objects, four more shapes.
13752 * lib/diagramdata.c:
13754 * lib/string_prerenderer.[ch] (NEW):
13755 Add a new renderer primitive, predraw_string() (does nothing, to be
13756 used as a hook to optimise the character encodings if needed).
13757 Added a string pre-renderer, which can be viewed as a filter
13758 renderer (to route draw_string() to predraw_string() and ignore
13759 the rest, in a first rendering pass)
13761 * app/render_eps.c: Took advantage of the above to make wholly
13762 optimised Postscript encoding page(s), even (especially) with
13763 non-latin1 code (HAVE_UNICODE must be true).
13765 (#53512 in fact is wholly resolved).
13767 2001-05-18 Cyrille Chepelov <chepelov@calixo.net>
13769 * lib/charconv.c: steps towards resolution of #53512 (inspired by
13770 Alexey Novodvorsky <aen@logic.ru>'s patch).
13772 * app/menus.c (dia_menu_signal_proxy): checked that the signal
13773 handler is not NULL before transferring control to it... (fixes #52836)
13775 * app/app_procs.c (app_init): removed non-constant initialiser
13778 * objects/custom/custom_object.c:
13779 * objects/custom/shape_info.[ch]:
13780 * objects/custom/test.xml: merged patch #53476 from Steven Hawkins
13781 <skh@mathstar.com>. This add support for a <svg:text> shape
13782 element, and some related style properties (font, font height,
13785 * doc/custom_shapes: a precision about the meaning of case in a
13786 SVG path (closes #52364)
13788 * lib/dummy_dep.h: fix for SGI IRIX 6.2 (#53053, reported and
13789 fixed by <drk@sgi.com>)
13791 2001-05-17 Cyrille Chepelov <chepelov@calixo.net>
13793 * objects/network/network.c:
13794 * shapes/network/Makefile.am:
13795 * shapes/network/hub.(shape|xpm) (NEW):
13796 * shapes/network/flash.(shape|xpm) (NEW):
13797 * shapes/network/rj45plug.(shape|xpm) (NEW):
13798 More shapes, less renderobjects.
13800 2001-05-16 Cyrille Chepelov <chepelov@calixo.net>
13802 * plug-ins/svg/render_svg.c: typo made exported ellipses
13803 corrupted (zero Y pseudo-radius).
13805 * objects/network/network.c:
13806 * objects/network/disc.c:
13807 * shapes/network/disc.(shape|xpm): Converted the first
13808 Renderobject into a shape. Normally, old diagrams should reload
13809 without problems (please check this against your diagrams). More
13810 flexibility should be gained that way. I intend to hunt and
13811 eradicate all renderobjects as I can commit cycles to that.
13813 * objects/Makefile.am:
13816 * objects/sybase/sybase.c:
13817 * shapes/sybase/Makefile.am(NEW):
13818 * shapes/sybase/client.(xpm|shape) (NEW):
13819 * shapes/sybase/dataserver.(xpm|shape) (NEW):
13820 * shapes/sybase/ltm.(xpm|shape) (NEW):
13821 * shapes/sybase/repserver.(xpm|shape) (NEW):
13822 * shapes/sybase/rsm.(xpm|shape) (NEW):
13823 * shapes/sybase/stableq.(xpm|shape) (NEW): converted Sybase
13824 renderobjects into shapes. The Sybase objects are now not compiled
13825 anymore, and ready to be nuked if nobody objects in the next few weeks.
13828 * app/diagram.[ch]:
13829 * app/disp_callbacks.c:
13830 * app/display.[ch]:
13831 * app/interface.[ch]:
13833 * app/modify_tool.c:
13834 * app/preferences.[ch]:
13835 * app/recent_files.c:
13836 * app/select.c: Added patch #52364 from Hubert Figuiere. This adds
13837 a menu bar reflecting the popup menu, to each display window. This
13838 is optional (changing the preference currently doesn't affect
13839 already opened windows; a few other rough edges to cut).
13841 * plug-ins/wpg/wpg.c:
13842 * plug-ins/xfig/xfig-import.c:
13843 * plug-ins/python/pydia-property.c:
13844 * plug-ins/python/pydia-properties.c:
13845 * plug-ins/python/pydia-geometry.c:
13846 * plug-ins/pstricks/render_pstricks.c:
13848 * objects/EML/dbox.c:
13849 * lib/ps-utf8.c: paleolithic C compilers choke on //. Should fix
13852 * lib/ps-utf8.c: improved the clustering of alphabetic character
13853 definitions in custom encodings pages.
13855 2001-05-02 Hans Breuer <hans@breuer.org>
13857 * lib/object.h : OBJECT_COMMON_PROPERTIES_OFFSETS correct type
13858 of 'obj_bb' to PROP_TYPE_RECT
13860 * objects/custom/custom_object.c : take all quarks into account,
13861 not only 4 as copy&paste suggests
13863 * objects/uml/objects.c : completed the implementation of the
13864 property api to avoid reading of totally bogus data. Removed
13865 the PROBABLY_DEAD_CODE. It actually was dead code, but not because
13866 there was too much but too less ...
13868 The above changes removed all known crashes (mentioned below)
13869 from the Property API. Property access is still incomplete though.
13871 * objects/flowchart/box.c :
13872 * objects/flowchart/diamond.c :
13873 * objects/flowchart/ellipse.c :
13874 * objects/flowchart/parallelogram.c :
13875 * objects/uml/classicon.c :
13876 * objects/uml/state.c : calculate number of quarks from quark array
13877 size instead of using hardcoded values for consistence and to avoid
13878 future bugs like the above
13880 * objects/eml/nlist.c : include <string.h> for strcmp()
13882 * lib/dia_xml.c : relax g_warning for values, which
13883 appear to be too small. There is nothing which prevents
13886 * plug-ins/python/pydia-geometry.c : changed stringifying of
13887 geometry objects accept BezPoint back to %f, which does not
13888 crash anymore, because all the data is intialized now and it
13889 simply is more readable than %e ...
13891 * plug-ins/python/python-startup.py : removed dependency
13892 to PyGtk, because it isn't required here and probably won't
13893 in i.e.: export filters.
13895 * plug-ins/python/gtkcons.py : create the gtkoutfile even
13896 if sys.stderr.fileno() isn't supported
13898 * app/makefile.msc : make version 0.88
13899 * plug-ins/makefile.msc : make version 0.88 an added new
13900 xfig files to build
13902 2001-05-11 James Henstridge <james@daa.com.au>
13904 * NEWS: remember to add news items this time.
13906 * dia.spec: update spec file for 0.88 release.
13908 * configure.in: up version number to 0.88
13910 * plug-ins/python/Makefile.am (EXTRA_DIST): fix up typo that was
13911 preventing any of the useful python scripts from being
13914 * sheets/Makefile.am (sheet-translation-report): fix bustage I
13915 introduced in my fixups for the 0.87 release :(
13917 2001-05-10 Lars Clausen <lrclause@cs.uiuc.edu>
13919 * plug-ins/xfig/xfig-import.c: Finally got groups working.
13921 2001-05-09 Lars Clausen <lrclause@cs.uiuc.edu>
13923 * plug-ins/xfig/xfig-import.c: Improvements to error handling and
13924 group manipulation.
13926 2001-05-09 Cyrille Chepelov <chepelov@calixo.net>
13928 * lib/ps-utf8.[ch]:
13929 * lib/Makefile.am: fix makefile breakage which led to not
13930 including ps-utf8.[ch] in the released tarballs.
13932 2001-05-09 James Henstridge <james@daa.com.au>
13934 * Makefile.am (core-translation-report): dist scripts needed for
13935 this target, and change to $(srcdir) before running.
13937 * sheets/Makefile.am (EXTRA_DIST): actually dist the sheets. DATA
13938 files aren't automatically included in the tarball by automake
13939 because they could be generated files.
13941 * objects/EML/Makefile.am (EXTRA_DIST): fix directory names.
13943 * doc/en/Makefile.am (install-data-hook): fix up where graphics
13946 * configure.in: up version number to 0.87
13948 * plug-ins/python/*.py: no longer necessary to explicitly set
13949 sys.argv, as python.c does it for us now (like it should).
13951 * plug-ins/python/gtkcons.py: fix up so it plays nicely as a dia
13954 * plug-ins/python/python-startup.py: startup script that imports
13955 all modules in $(datadir)/dia/python and ~/.dia/python.
13957 * plug-ins/python/python.c (dia_plugin_init): change so that it
13958 only runs the $(datadir)/dia/python-startup.py script. Make sure
13959 that sys.argv and __main__.__file__ are set when calling the
13962 * plug-ins/python/Makefile.am: update makefile. Make it install
13963 gtkcons.py plugin. I haven't set any other plugins to install, as
13964 they look like they are mainly for debugging purposes.
13966 * configure.in: add tests to detect if python is available, so we
13967 can build the python plugin. Only run if --with-python passed to
13970 2001-05-08 James Henstridge <james@daa.com.au>
13972 * acinclude.m4: add macros for detecting python.
13974 * app/menus.c (dia_gnome_menu_get_widget): handle paths that point
13975 at GNOME_APP_UI_SUBTREE entries.
13976 (menus_add_path): function to add a menu item to the menubars.
13977 Uses a hash table to keep track of extra menu items it adds. Also
13978 notifies the item factory about the entries so that accels can be
13980 (menus_add_path): implement gtk only version.
13981 (menus_init): use menus_add_path() to add the menu.
13982 (plugin_callback): simplify.
13984 2001-05-08 Steffen Macke <sdteffen@yahoo.com>
13986 * app/menu.c: removed #ifndef GNOME; GNOME build was broken
13988 2001-05-08 Lars Clausen <lrclause@cs.uiuc.edu>
13990 * plug-ins/xfig/xfig-export.c:
13991 * plug-ins/xfig/xfig-common.c:
13992 * plug-ins/xfig/xfig-import.c:
13993 * plug-ins/xfig/xfig.c:
13994 * plug-ins/xfig/xfig.h:
13995 * app/Makefile.am: Added support for exporting to Fig format
13996 (except splits, which are less powerful in Fig). Some refactoring
13999 2001-05-02 Hans Breuer <hans@breuer.org>
14001 * plug-ins/python/debug_objects.py : added another
14002 test to get massive crashes from the Property API due
14003 to unintialized data.
14005 * app/menu.c : the callback_action wasn't incremented
14006 (should have checked my last optimization). Now more
14007 than one plug-in callback is supported again.
14009 * plug-ins/python/pydia-geometry.c : avoid crashes from
14010 glib, when trying to g_strdup_printf unintialized floats.
14012 * plug-ins/python/pydia-property.c : avoid crashes from
14013 because of string_data == NULL (PROP_TYPE_FILE, PROP_TYPE_STRING)
14015 2001-05-01 Hans Breuer <hans@breuer.org>
14017 * objects/makefile.msc : added eml
14018 * objects/eml/instantiation.c : initialize 'inst' pointer
14019 before using, zero initialization for objects
14020 * objects/eml/interaction-ortho.c :
14021 * objects/eml/interaction.c : zero initialization for objects
14023 * app/menus.c : removed Gimp mru stuff which slipped in at
14024 2000-08-15, was never activated and will never be needed,
14025 because of Steffens recent file list patch added at 2001-01-05.
14027 * objects/eml/*.c : some more zero initialization of objects
14028 to avoid infinite (uninitialized) bounding boxes
14030 Implemented a callback api which allows plug-ins to register
14031 menu call backs. Dia for Gnome should compile, but will need
14032 some extra tweaking to make it work because I can't test it.
14034 * plug-ins/python/pydia-error.h :
14035 * plug-ins/python/pydia-render.c : moved Pxthon function return
14036 value handling from pydia-render.c to pydia-error.h, to make it
14038 * plug-ins/python/diamodule.c : implement callback function
14039 registration from and relaying to Python code
14041 * app/menus.c : register and use plug-in menu callbacks
14043 * lib/filter.[hc] : implement filter_register_callback() and
14044 filter_get_callbacks() for the above
14045 * lib/libdia.def : export them
14047 * plug-ins/python/debug_objects.py (new file):
14048 sample using the above
14050 2001-04-27 Lars Clausen <lrclause@cs.uiuc.edu>
14052 * plug-ins/shape/shape-export.c (new_shape_renderer):
14053 The name of a shape is now taken from the dir, to conform with
14056 2001-04-25 Lars Clausen <lrclause@cs.uiuc.edu>
14058 * app/properties.c (properties_show): Added title containing
14059 object type, plus (hopefully) fix of the ghost properties dialog.
14061 2001-04-16 Cyrille Chepelov <chepelov@calixo.net>
14063 * app/display.c: remove the display idle handler in case we
14064 destroy the ddisplay (caused crashes in ddd, probably random
14065 crashes elsewhere).
14069 * Makefile.am: hack around gettext-0.10.36's new "features".
14071 * lib/properties.[ch]: added new function object_copy_props().
14072 Added new property type PROP_TYPE_ENDPOINTS
14074 * lib/connection.h: added support for load/saving through the
14075 properties interface.
14077 * lib/object.[ch]: object_load/save/copy_using_properties()
14078 support functions (code factorisations).
14080 * objects/GRAFCET/boolequation.c: check against null values in
14081 boolequation_set_value() and boolequation_destroy().
14083 * objects/GRAFCET/transition.c: Converted from lazyprops to
14084 standard properties. 31% less (x86) code !
14086 * objects/GRAFCET/condition.c: also converted from lazyprops to
14087 standard properties. Also killed lots of code.
14089 2001-04-13 Hans Breuer <hans@breuer.org>
14091 * plug-ins/wmf/wmf.cpp : changed text conversion from
14092 g_utf8_utf16 to g_convert usage. The latter function is already
14093 available in tml's last "official" Gtk+ version (2000-12-26).
14094 This change allows to use recent Dia with either the official
14095 version or the latest cvs "gtk-1-3-win32-production"-branch.
14097 2001-04-14 Lars Clausen <lrclause@cs.uiuc.edu>
14099 * Patch from David S. Thompson <dcthomp@mail.utexas.edu>:
14100 * app/disp_callbacks.c:
14101 - Allow submenus in DiaMenus.
14102 - Don't require DiaMenu.title to be non-null (so that
14103 submenus aren't required to have titles)
14105 * objects/FS/function.c:
14106 - object menu now has submenus, an almost complete list of
14107 standard-basis verbs, and a start on nouns.
14108 - box padding, dash length, and other visual attributes are
14109 scaled by the font size... eventually font height will be
14110 a function property.
14111 - draw functions with smaller font to make initial view hold
14112 a reasonable number of functions.
14114 2001-04-13 Cyrille Chepelov <chepelov@calixo.net>
14117 * sheets/chronogram.sheet:
14118 * sheets/jigsaw.sheet:
14119 * sheets/sybase.sheet: Updated Dutch sheet translations from Dag
14120 Wieers <dag@wieers.com>
14122 2001-04-13 Hans Breuer <hans@breuer.org>
14124 * app/app_procs.c (app_exit) : added g_return_if_fail (!app_exit_once)
14125 to ensure that all the deinitialization is only done once. Fixes
14126 recent app exit crash on win32
14128 * lib/dia_xml.c : provide isinf() replacement for msc which does only
14131 * lib/libdia.def : updated
14133 * objects/makefile.msc : added wanlink.c
14135 * objects/network/wanlink.c : added M_PI_2 definition for poor
14136 platforms which don't have one
14138 * objects/standard/arc.c :
14139 * objects/standard/zigzagline. c: part of ConectionBBExtras wasn't
14140 initialized which led to rather huge bounding boxes (try Ctrl^A on
14141 diagrams with Arcs or ZigZagLines).
14142 * objects/*/*.c : to avoid further bugs like the above changed all
14143 object initializations to g_malloc0 or g_new0
14146 2001-04-09 Cyrille Chepelov <chepelov@calixo.net>
14148 * lib/paper.[ch]: get rid of "no previous prototype fo `foo'" by
14149 doing a s/T foo()/T foo(void)/ for all possible values of T and foo.
14151 * objects/UML/class.c:
14152 * objects/UML/usecase.c:
14153 * objects/UML/large_package.c:
14154 * objects/UML/message.c:
14155 * objects/UML/object.c:
14156 * objects/UML/lifeline.c:
14157 * objects/FS/flow.c:
14158 * objects/FS/flow-ortho.c:
14159 * objects/FS/function.c:
14160 * objects/custom/custom_object.c:
14161 * objects/GRAFCET/vergent.c:
14162 * objects/chronogram/chronoref.c:
14163 * objects/SADT/box.c:
14164 * objects/SADT/annotation.c:
14165 * plug-ins/dxf/dxf-import.c:
14166 * plug-ins/xfig/xfig-import.c:
14167 * plug-ins/wpg/wpg.c:
14170 * app/display.c: /* certainly more WIP than dead code there */
14171 Unused variables, unused static function definitions, forgotten or
14172 incomplete prototypes added or fixed, lack of const or unwanted const,
14173 etc. (mostly clean-ups of leftovers of the pre-properties era).
14174 Non-obvious cases bracketed by #define THIS_IS_PROBABLY_DEAD_CODE,
14175 please check these.
14177 * app/lineprops_area.c: More of the same. Missing prototypes
14178 added, and functions unused outside made static.
14180 * app/recent_files.c:
14181 * app/properties.c:
14182 * app/defaults.c: some variables are used only when doing a GNOME
14185 * app/magnify.c: missing #include <stdlib.h>.
14187 * app/paginate_gnomeprint.c: Unused variable; missing "message.h".
14189 These are a lot of clean-ups (by the way, this compiles and runs
14190 cleanly with "gcc-3.0 -O2 -Wall --std=gnu99" too !); please grep
14191 for DEAD_CODE, and if it's yours, judge it.
14193 2001-04-07 Cyrille Chepelov <chepelov@calixo.net>
14195 * plug-ins/dxf-import.c: some progress with the arcs; still some
14196 clean-ups to do and line width scaling issues to figure out.
14198 * objects/standard/arc.c: start_point and end_point properties
14199 (duplicated from standard/line.c)
14201 * plug-ins/xfig/xfig-import.c: zip ! zap ! no more dead DXF import
14204 2001-04-06 Cyrille Chepelov <chepelov@calixo.net>
14206 * plug-ins/dxf-import.c: setlocale-related clean-ups and fixes ;
14207 preliminary support for arcs (doesn't work). Circles and ellipses are
14208 now transparent. Coordinate and width scaling are now a common
14209 static constant (probably before morphing into a preference).
14211 * sheet/checktrans.py: improved error reporting. Made checktrans
14212 count lack of <name xml:lang="code"> as a lack of translation for
14213 language "code" (no, it's not a plot to bring down other
14214 language's scores !)
14216 * sheet/*.sheet: Ensured all sheets have an encoding="iso-8859-1"
14217 in the header, and have <name xml:lang="fr"> components.
14219 2001-04-05 Cyrille Chepelov <chepelov@calixo.net>
14221 * objects/custom/custom_object.c: temporary hack to fix the shape
14222 bounding box reported by Ben A. Hetland. Proper fix isn't .87
14223 material, see bugzilla #52912.
14225 2001-04-05 Lars Clausen <lrclause@cs.uiuc.edu>
14227 * objects/standard/image.c (get_directory): Now uses
14228 G_SEPARATOR_CHAR_S instead of "/"
14230 * sheets/network.sheet:
14231 * sheets/Logic.sheet:
14232 * sheets/Flowchart.sheet:
14233 * sheets/Electric.sheet:
14234 * sheets/Circuit.sheet:
14236 * sheets/Pneumatic.sheet:
14237 * sheets/SDL.sheet:
14238 * sheets/UML.sheet:
14239 * sheets/GRAFCET.sheet:
14240 * sheets/MSE.sheet:
14241 * sheets/chronogram.sheet:
14242 * sheets/civil.sheet:
14243 * sheets/network.sheet:
14244 Danish translations.
14246 * objects/standard/image.c (get_directory): Changed get_directory
14247 to use g_dirname to find the directory part.
14249 2001-04-05 Cyrille Chepelov <chepelov@calixo.net>
14252 * sheets/Electric.sheet:
14253 * sheets/Flowchart.sheet:
14254 * sheets/Logic.sheet:
14255 * sheets/network.sheet: More Dutch translations from Dag Wieers.
14257 2001-04-04 Cyrille Chepelov <chepelov@calixo.net>
14259 * sheets/checktrans.py: now emits a warning when two descriptions
14260 for a single language code are found.
14263 * sheets/Makefile.am: -translation-reports now also depend on their
14266 2001-04-04 Cyrille Chepelov <chepelov@calixo.net>
14268 * sheets/Circuit.sheet:
14269 * sheets/Contact.sheet:
14270 * sheets/Logic.sheet:
14271 * sheets/chronogram.sheet:
14272 * sheets/sybase.sheet:
14273 Dutch translations from Dag Wieers <dag@wieers.com>
14275 2001-04-04 Cyrille Chepelov <chepelov@calixo.net>
14277 * po-checktrans.py: Now shows the detailed counts alongside the
14278 percentage of translations.
14280 2001-04-03 Cyrille Chepelov <chepelov@calixo.net>
14283 * po-checktrans (NEW):
14284 * po-checktrans.py (NEW): builds core-translation-report:
14285 percentages of core (gettext) translations done [Not placed into
14286 po/ where that should belong, because of integration fear^Wissues
14289 TO THE KIND ATTENTION OF PACKAGERS: core-translation-report and
14290 sheets/sheet-translation-report probably ought to be copied on the
14291 user's /usr/share/doc/dia (or equivalent) directory.
14293 * sheets/Makefile.am: sheet-translation-report now a simple
14294 EXTRA_DIST; make install won't install it by default.
14296 2001-04-03 Cyrille Chepelov <chepelov@calixo.net>
14298 * app/preferences.c: changed the default grid colour to something
14301 * shapes/SDL/*.shape:
14302 * sheets/SDL.sheet: renamed all SDL shapes to conform to the
14303 "$LIBRARY - $NAME" convention. THIS REQUIRES FIXING THE EXISTING
14304 DIA FILES (well, for files using SDL), see the mailing list
14305 archive "SDL (ab)using the global shape namespace" for a script to
14306 do this conversion.
14308 * sheets/SDL.sheet: translated into French
14309 * sheets/network.sheet: fixed XML typos. Yay ! 100% :-)
14311 2001-04-02 Cyrille Chepelov <chepelov@calixo.net>
14313 * lib/dia_xml.c: made data_point() more paranoid
14315 * sheets/Makefile.am:
14316 * sheets/checktrans (NEW):
14317 * sheets/checktrans.py: Made checktrans handle more gracefully the
14318 absence of python and python-xml packages, and made the error
14319 message more helpful.
14321 2001-04-01 Lars Clausen <lrclause@cs.uiuc.edu>
14323 * lib/render_object.c (new_render_object): Made initial handles
14324 behave like on most other objects.
14326 * app/load_save.c (read_objects): Fixed premature free'ing ofr
14327 typestr causing garbage.
14329 2001-04-01 Lars Clausen <lrclause@C194282.chmpgn1.il.home.com>
14331 * objects/FS/flow-ortho.c: Fixed a crashbug causes by not
14332 accouting for handle ordering through copy and save. (#51479)
14334 2001-03-31 Cyrille Chepelov <chepelov@calixo.net>
14336 * sheets/Circuit.sheet: Norwegian translation mistagged to German.
14338 2001-03-31 Steffen Macke <sdteffen@yahoo.com>
14340 * sheets/Circuit.sheet
14342 * sheets/network.sheet: Updated German translations
14344 2001-03-30 Cyrille Chepelov <chepelov@calixo.net>
14347 * app/lineprops_area.c: The return of the revenge of the arrow
14348 heads. Now all types covered by ISO 10303-201 should be covered.
14350 2001-03-30 Cyrille Chepelov <chepelov@calixo.net>
14352 * sheets/Flowchart.sheet: translations in probably Hungarian were
14353 a victim of cut-n-paste from the German one. Fixed (hopefully).
14354 * sheet/UML.sheet: translation in probably Norwegian was a victim
14355 of cut-n-paste from the French one. Fixed (hopefully).
14356 * sheets/Logic.sheet: French translation not tagged with
14359 * sheets/checktrans.py:
14360 * sheets/Makefile.am: new file, sheet-translation-report, to be
14361 installed along the sheets, show how much of them has been
14362 translated into which language (I wish the result was prettier...)
14364 * po/README: most translators don't read this file, but anyway...
14366 * sheets/.cvsignore:
14367 * objects/network/.cvsignore: the usual negotiation with CVS.
14369 2001-03-30 Cyrille Chepelov <chepelov@calixo.net>
14371 * sheets/*.sheet: French translations
14373 2001-03-28 Cyrille Chepelov <chepelov@calixo.net>
14375 Added patch #52363 from Hubert Figuiere <hfiguiere@teaser.fr>:
14377 ** objects/network/network.c:
14378 ** objects/network/wanlink.c:
14379 ** objects/network/pixmaps/wanlink.c:
14380 ** sheets/network.sheet:
14381 ** objects/network/Makefile.am: a better object to use instead of
14382 the older WAN Connection.
14384 ** lib/geometry.[ch]: rotation matrix functions in geometry.c (derived from gimp)
14386 ** objects/GRAFCET/vector.c: renamed Vector to GRAFCETVector to avoid a
14389 * objects/GRAFCET/vector.c: Re-renamed GRAFCETVector into
14390 Arc; kept the C file name (because CVS wouldn't like it), and
14391 still registering the older object name (but advertising the newer
14392 one in sheets/GRAFCET.sheet).
14394 2001-03-24 Hans Breuer <hans@breuer.org>
14396 * app/dia.def : some plug-ins (currently only python, xfig) are using
14397 functions from the dia executable. To get them working these functions
14398 need to be explicit exported on win32. IMO the much cleaner way would
14399 be to move these functions to libdia, but that would require some
14400 long term restructuring ...
14402 * lib/libdia.def : updated
14404 * plug-ins/makefile.msc : build xfig plug-in
14406 2001-03-24 Hans Breuer <hans@breuer.org>
14408 * app/diagram.c : g_strdup (dia->filename) because it will be
14411 * app/display.c : set ddisp->renderer to NULL after destruction.
14412 This may solve or help to identify erroneous access to it after
14415 * plug-ins/wmf/wmf.cpp : convert string from utf8 to wchar to
14416 get 'umlauts' working
14418 2001-03-22 Cyrille Chepelov <chepelov@calixo.net>
14420 * object/chronogram/chronoline_event.c: stupid bug ; rises and falls
14421 were reversed... (look for the patch, and drink a beer to my
14424 2001-03-23 Hans Breuer <hans@breuer.org>
14426 * app/app_procs.c : don't g_error () if the config directory
14427 can't be created (at least not on windoze) because it's quite
14428 common that the user don't read or understand the FAQ ...
14430 * app/cursor.c : use ddisplay_active () instead of active_display
14433 * app/display.[hc] : made active_display var static and provide
14434 an accessor funtion ddisplay_active_diagram ()
14436 * app/dia-props.c : don't store the active_diagram, but ask
14437 for it everytime it needed.
14439 * lib/properties.h : #include "intl.h"
14441 * lib/makefile.msc : need to take care of inclusion order to
14442 avoid clashes with gtk+2.0's gdk-pixbuf
14444 * objects/makefile.msc : added uml/stereotype.c to build
14446 2001-03-23 Lars Clausen <lrclause@cs.uiuc.edu>
14448 * **/*.c: Added config.h to the remaining .c files, and changed
14449 all to be <config.h>.
14451 2001-03-22 Steffen Macke <sdteffen@yahoo.com>
14456 * app/lineprops_area.c: added new arrow types with double
14459 2001-03-20 Steffen Macke <sdteffen@yahoo.com>
14461 * shapes/Civil/civil_gas_bottle.xpm
14462 * shapes/Civil/civil_gas_bottle.shape
14463 * sheets/civil.sheet
14464 * shapes/Civil/Makefile.am: Added gas bottle shape by Arne
14467 2001-03-20 Lars Clausen <lrclause@cs.uiuc.edu>
14469 * objects/custom/shape_info.c (load_shape_info):
14470 * objects/custom/shape_info.h:
14471 * objects/custom/custom_object.c (custom_update_data):
14472 Better support for text outside the box -- new attributes 'resize'
14473 and 'align' for text entity. Align not fully supported yet.
14475 * lib/text.c (text_calc_boundingbox): Adding BB for cursor width.
14477 2001-03-20 James Henstridge <james@daa.com.au>
14479 * app/interface.c (display_data_received_callback): comment out
14482 2001-03-19 James Henstridge <james@daa.com.au>
14484 * app/GNOME_Dia.oaf: rename from GNOME_Dia.oafinfo.
14486 * objects/UML/realizes.c: similar here.
14488 * objects/UML/implements.c: similar here.
14490 * objects/UML/component.c: similar here.
14492 * objects/UML/generalization.c: same here.
14494 * objects/UML/dependency.c: allow NULL for ->name and
14495 ->stereotype. This fixes a number of problems in loading saved
14498 * lib/properties.c: various changes so that NULL string properties
14501 * objects/standard/line.c (line_update_data):
14502 line->extra.start_long and line->extra.end_long were not being
14503 initialised. This fixes potential problems with the bounding box
14504 of "Standard - Line" objects.
14506 2001-03-19 Hans Breuer <hans@breuer.org>
14508 * app/commands.c : added win32 specific code to display a html
14509 file. #include "text.h" for text_delete_all prototype.
14512 * app/dia.rc : (new) to give Dia win32 an icon
14514 * app/win32print.[ch] : new files to support direct postscript
14515 file printing on win32. Beware: it *requires* a ps-printer!
14517 * app/paginate_psprint.c : disable the signal code for win32 build
14518 and added small specific changes to support win32print.
14520 * app/makefile.msc : added win32print and linking shell32.lib
14522 * lib/libdia.def : updated
14524 2001-03-18 Kevin Breit <battery841@mediaone.net>
14526 * doc/en/dia-C.omf: Added file. Dia should now list in the Nautilus
14529 2001-03-17 James Henstridge <james@daa.com.au>
14531 * app/paginate_psprint.c (diagram_print_ps): add code that traps
14532 SIGPIPEs during printing. This gets rid of a number of crashes
14533 caused by printing (eg. typing an incorrect print command).
14535 * dia.spec (%install): gzip the manpage.
14537 * lib/beziershape.c (beziershape_save): fix off by one error in
14538 beziershape save code, which was adding an extra segment to the
14541 * app/menus.c: add a separator in the gnome version of the help
14544 * app/app_procs.c (app_init): add a --nosplash argument which
14545 disables the splash screen.
14547 * app/dia_embedd.c (main): don't leave the splash screen open for
14548 embeddable component.
14550 * app/splash.c (app_splash_init): the gtk_widget_show_now() call
14551 didn't seem to be showing the splash screen like expected, so I
14552 have replaced it with some code that calls gtk_main() until the
14553 first exposure of the window.
14555 2001-03-16 James Henstridge <james@daa.com.au>
14557 * app/Makefile.am (EXTRA_DIST): add extra pixmaps.
14559 * objects/UML/Makefile.am (libuml_objects_la_SOURCES): add
14562 * lib/Makefile.am (libdia_a_SOURCES): add diavar.h here.
14564 * app/Makefile.am (dia_core_files): remove splash.h from file
14565 list, as it doesn't exist.
14567 * doc/en/Makefile.am (uninstall-local): remove the docdir on
14570 * doc/Makefile.am (uninstall-local): target to remove the C
14573 * dia.spec (%files): include the documentation in the package.
14575 * app/menus.c (toolbox_menu_items): add menu item for manual,
14576 which calls help_manual_callback.
14578 * app/commands.c (help_manual_callback): find help file and load
14579 netscape to view it.
14581 * app/commands.h: add prototype for help_manual_callback()
14583 * doc/Makefile.am (helpdir): similar here.
14585 * doc/en/Makefile.am (helpdir): make the helpdir
14586 $(pkgdatadir)/help/en in the non gnome case.
14588 * configure.in (HAVE_GNOME): add conditional.
14590 * doc/en/Makefile.am: handle the graphics in a more general way,
14591 so it is easier for Kevin to add them to the build (just add them
14592 to the GRAPHICS var).
14594 * app/Makefile.am (embed_extra_print_files): make the case of
14595 building without gnome-print support but with bonobo support work.
14596 dia-embedd needs to be include the gnome-print
14598 2001-03-09 Cyrille Chepelov <chepelov@calixo.net>
14600 * samples/Makefile.am: included all samples in the distribution....
14602 2001-03-09 Cyrille Chepelov <chepelov@calixo.net>
14604 * configure.in: removed premature test for DPS. Added -*- m4 -*-
14605 at the beginning. Made HAVE_UNICODE non-default. po/es_ES.po has
14606 vanished, removed it from ALL_LINGUAS.
14608 * lib/charconv.[ch] (NEW): a very small wrapper around
14609 unicode_iconv to convert strings between utf8 and local charset
14610 (actually, ISO-8859-1, though one can do
14611 CFLAGS="-DEFAULT_8BIT_CHARSET=\"ISO-8859-2\"" and the like).
14613 * lib/ps-utf8.[ch] (NEW): A PostScript Unicoder ; a smallish
14614 library to help build Postscript streams which use as many custom
14615 font encodings as necessary to correctly represent all characters
14616 used (testing from users with non-latin1 and/or more than 256
14617 characters in routine use *very* welcome).
14619 * app/Makefile.am, lib/Makefile.am: integrated these into the
14622 * shapes/Logic/.cvsignore (NEW): .cvsignore
14624 * app/render_eps.h: forwarded some changes Lars forgot to include.
14625 * app/render_eps.c: turned off ASCII85 and FILTERS, as this
14628 2001-03-08 Kevin Breit <battery841@mediaone.net>
14630 * doc/en/home_network.png: Added file.
14631 * doc/en/line_props.png: Added file.
14632 * doc/en/usage-objects.sgml: Added two graphics to file.
14633 * doc/en/usage-quickstart.sgml: Added one graphic to file.
14635 2001-03-06 Kjartan Maraas <kmaraas@gnome.org>
14637 * app/grid.h: Place comment around text after #endif.
14638 * lib/bezier_conn.c: #include <string.h>.
14639 * lib/beziershape.c: #include <string.h>.
14640 * lib/connpoint_line.h: Comment after #endif.
14641 * lib/dia_dirs.c: #include <string.h>.
14642 * lib/element.c: Same.
14643 * lib/lazyprops.c: #include <config.h> and "intl.h".
14644 * lib/lazyprops.h: Comment out text after #endif.
14645 * lib/neworth_conn.c: #include <string.h>
14646 * lib/orth_conn.c: Same here.
14647 * lib/poly_conn.c: Here too.
14648 * lib/polyshape.c: And here.
14649 * lib/properties.c: Remove #include "intl.h" from here and add
14650 an array of static strings to work around bug in gettext that
14651 makes it miss strings in a #define body.
14652 * objects/GRAFCET/action_text_draw.h: Comment out text after #endif.
14653 * objects/GRAFCET/boolequation.h: Same here.
14654 * objects/chronogram/chronoline_event.h: Add prototype for
14657 2001-03-05 Lars Clausen <Lars R. Clausen <lrclause@cs.uiuc.edu>
14659 * objects/FS/function.c:
14660 * objects/FS/flow.c:
14661 * objects/FS/flow-ortho.c:
14662 Updated to use properties.
14664 2001-03-03 James Henstridge <james@daa.com.au>
14666 * lib/lazyprops.c (__propdlg_build_enum): translate the radio
14667 button labels when creating them.
14669 2001-02-28 Lars Clausen <Lars R. Clausen <lrclause@cs.uiuc.edu>
14671 * objects/UML/actor.c
14672 * objects/UML/realizes.c
14673 * objects/UML/implements.c
14674 * objects/UML/generalization.c
14675 * objects/UML/dependency.c
14676 * objects/UML/constraint.c
14677 Updated to use properties.
14679 * objects/UML/stereotype.c
14680 * objects/UML/stereotype.h
14681 Generalized to any kind of bracketting.
14683 2001-02-28 James Henstridge <james@daa.com.au>
14685 * app/menus.c: add help entry to the help menu. Need to get this
14686 working for the non GNOME case as well (maybe put help under
14687 $(datadir)/dia/help for non GNOME?)
14689 * doc/en/topic.dat: add a topic.dat file for GNOME menus.
14691 * doc/en/dia-manual.sgml (legalnotice): add an id attribute to
14692 this element so that we get a meaningful filename in the html
14695 * doc/Makefile.am, doc/en/Makefile.am: new makefiles to handle the
14698 * configure.in (DB2HTML): add a check for the db2html program, and
14699 set an automake conditional if it is found.
14701 * Makefile.am: remove EXTRA_DIST rules that cover doc/ directory,
14702 and descend into doc/ directory while building.
14704 * configure.in (AC_OUTPUT): add doc/ makefiles to output list, now
14705 we need more complex rules for building the docs.
14707 2001-02-25 Hans Breuer <hans@breuer.org>
14709 * config.h.win32 : some cleanup
14711 * app/prefererences.c : g_scanner_(freeze|thaw)_symbol_table
14712 are deprecated since glib-1.3.2. Sorry needing to use them
14713 contionally, but there is no glib-1.2 for win32
14715 * app/recent_files.c : use g_strescape (params) conditionally
14717 * lib/connection.c : include string.h for memcpy
14719 * lib/geometry.h : added some stuff for compatibility with
14720 msvc, which previously came from included config.h
14722 * lib/libdia.def : updated
14724 * objects/makefile.msc : updated
14726 * objects/GRAFCET/action.c(490) : fixed warning C4700: local variable
14727 'extra' used without having been initialized
14729 * objects/network/bus.c(658) : initialize 'extra'
14731 * plug-ins/makefile.msc : updated
14733 * plug-ins/cgm/cgm.c :
14734 * plug-ins/pstricks/render_pstricks.c :
14735 g_free() memory allocated by dia_image_rgb_data(). Plugs possibly
14738 * plug-ins/python/python.c : use HAVE_DIRENT_H
14740 2001-02-23 Lars Clausen <Lars R. Clausen <lrclause@cs.uiuc.edu>
14742 * lib/connection.c (connection_update_boundingbox):
14743 Made the BB shrink on right and lower sides, too.
14745 2001-02-23 Kjartan Maraas <kmaraas@gnome.org>
14747 * */*.c: #incude <config.h> at the top.
14748 * */*.h: Remove include of "config.h" since it should only
14749 be included in .c files and at the very top for things to
14751 * sheets/*.sheet: Updated Norwegian translations.
14753 2001-02-22 Lars Clausen <Lars R. Clausen <lrclause@cs.uiuc.edu>
14755 * objects/UML/small_package.c:
14756 * objects/UML/class.c:
14757 * objects/UML/node.c:
14758 * objects/UML/usecase.c:
14759 * objects/UML/lifeline.c:
14760 * objects/UML/message.c:
14761 Various cleanup of properties in particular. Now much more use of
14762 standard properties.
14764 * lib/diagramdata.c (layer_render): Visualization of bounding
14765 boxes, for debugging purpoises.
14767 2001-02-22 Cyrille Chepelov <chepelov@calixo.net>
14770 * lib/connection.[ch]:
14771 * lib/poly_conn.[ch]:
14772 * lib/polyshape.[ch]:
14773 * lib/bezier_conn.[ch]:
14774 * lib/beziershape.[ch]:
14775 * lib/orth_conn.[ch]:
14776 * lib/neworth_conn.[ch]:
14777 * lib/element.[ch]: Changed a bit the _update_boundingbox()
14778 interface. Now the parent elements have an extra_spacing
14779 structure, which child objects just need to fill, to take care of
14780 most arrow & line width extra space needs.
14782 * objects/**/*.c: updated all objects to the new interface.
14783 While at it, killed all instances of (Object *) downcasts (phew !)
14785 * objects/GRAFCET/condition.c: removed the arrowhead, which IEC848
14786 doesn't speak about.
14788 2001-02-21 Lars Clausen <Lars R. Clausen <lrclause@cs.uiuc.edu>
14790 * sheets/Logic.sheet: New sheet for Logic symbols.
14792 2001-02-21 James Henstridge <james@daa.com.au>
14794 * app/menus.c (dia_gnome_menu_get_widget): new function to find a
14795 widget by its path name. Walks the GnomeUIInfo heirachy rather
14796 than widget tree, compares untranslated label names and ignores
14797 underscores in the labels.
14798 (menus_get_item_from_path): use dia_gnome_menu_get_widget so that
14799 lookups are not dependent on the current locale, as with
14800 gnome_app_find_menu_pos.
14802 * acconfig.h: guard against multiple inclusion of config.h.
14804 * app/select.c (select_style_callback): simply set the selection
14805 style to the value of action.
14807 * app/menus.c (menus_init): simplify the item factory based menu
14808 code a bit. It looks like it was using some code cut and pasted
14809 from the gimp, which looked a bit unnecessary. Things work fine
14811 (selectmenu): set the action to the type of selection mode
14813 (display_menu_items): use the symbolic enumeration values for the
14816 * app/plugin-manager.c:
14817 * app/plugin-manager.h:
14821 * app/select.h: change prototypes.
14823 * app/commands.c: update all callback prototypes, and get rid of
14824 some #ifdef GNOME's.
14826 * app/commands.h: change function prototypes.
14828 * app/dia_embedd.c (save_fn):
14829 s/ex_Bonobo_IOError/ex_BonoboStorage_IOError/
14831 * app/menus.c (menus_init): for gnome menus, use
14832 gnome_app_fill_menu_custom and pass in a GnomeUIBuilderData
14833 structure that proxies the callbacks to have the same signature as
14834 GtkItemFactory type 1 callbacks.
14835 (menus_init): for GTK menus, change from callback type 2 to type
14837 (display_menu_items): add back tearoffs. I don't know who removed
14838 these for the gtk menu case.
14840 2001-02-20 Kevin Breit <battery841@mediaone.net>
14842 * doc/en/usage-objects-special.sgml: Fixed a few of the special
14843 object descriptions. More to come in the next few days.
14845 2001-02-20 Lars Clausen <lrclause@cs.uiuc.edu>
14847 * app/render_eps.c: Fixed for internationalized floating point
14850 * objects/UML/note.c: Fixed properties -- was missing
14851 Get/ApplyPropertiesFunc. Also improved update to recalculate text
14854 2001-02-19 Lars Clausen <lrclause@cs.uiuc.edu>
14856 * plug-ins/xfig/xfig-import.c:
14857 File added importing xfig files. Still very rough, but good
14858 enough to let others hack on it.
14860 2001-02-07 Cyrille Chepelov <chepelov@calixo.net>
14863 * app/linewidth_area.c:
14865 * lib/properties.c:
14867 * objects/ER/attribute.c:
14868 * objects/ER/entity.c:
14869 * objects/ER/relationship.c:
14870 * objects/custom/custom_object.c:
14871 * objects/flowchart/box.c:
14872 * objects/flowchart/diamond.c:
14873 * objects/flowchart/ellipse.c:
14874 * objects/flowchart/parallelogram.c:
14875 * objects/standard/box.c:
14876 * objects/standard/textobj.c: per Vlad Harchev's request, made
14877 page sizes of gtk_adjustments different than their step sizes.
14878 When sensible values of page size weren't found (overwhelming
14879 majority of cases), page sizes were set to 10.0 * respective step
14882 2001-02-07 Lars Clausen <lrclause@cs.uiuc.edu>
14884 * objects/network/hub.c:
14885 Patch from Hubert Figuiere applied, adding connection points.
14887 2001-02-02 James Henstridge <james@daa.com.au>
14889 * app/display.c (new_display): set update id to 0 here.
14890 (ddisplay_update_handler): rename from ddisplay_flush, and set
14891 update_id to 0 at end of processing.
14892 (ddisplay_flush): new implementation that simply sets an idle
14893 handler to perform the actual drawing.
14895 * app/display.h: add structure member to hold the redraw idle
14898 2001-01-31 Lars Clausen <lrclause@cs.uiuc.edu>
14900 * objects/standard/ellipse.c (ellipse_copy):
14901 * objects/standard/zigzagline.c (zigzagline_copy):
14902 Fix of copying provided by Martin Hawlisch.
14904 2001-01-23 Kevin Breit <battery841@mediaone.net>
14906 * doc/en/graphics/: added directory
14908 * doc/en/graphics/greendots.png: added file
14910 * doc/en/*sgml: made minor and some major changes to prepare for 1.4
14913 2001-01-23 Kevin Breit <battery841@mediaone.net>
14915 * doc/en/*sgml: made some grammar changes and fixed a few markup bugs.
14916 thanks to John Fleck!
14918 2001-01-21 Kevin Breit <battery841@mediaone.net>
14920 * doc/en/*sgml: made just minor changes to a few lines; nothing major.
14922 2001-01-12 Michael Meeks <michael@helixcode.com>
14924 * app/dia_embedd.c (init_server_factory): do a bonobo_activate
14925 so our POA gets setup properly.
14927 * app/paginate_gnomeprint.c (paginate_gnomeprint): g_free
14928 things we g_malloc.
14930 * configure.in: Use bonobox_print.
14932 * app/dia_embedd.c (embeddable_factory): add print interface.
14933 (object_print): impl.
14935 2001-01-11 Michael Meeks <michael@helixcode.com>
14937 * app/dia_embedd.c (embeddable_factory): aggregate PersistFile.
14938 (load_fn, save_fn): impl.
14939 (view_factory): hide modified status bar, & use activate fn.
14940 (refresh_view): force redraws of the views.
14941 (view_show_hide): split from
14942 (dia_view_activate): here.
14944 * app/diagram.c (diagram_load_into): split from diagram_load.
14945 (new_diagram): simplify bu splittin stuff into
14946 (diagram_init): here.
14948 2001-01-10 Steffen Macke <sdteffen@yahoo.com>
14950 * shapes/jigsaw/*.shape: replaced #000000 with foreground
14951 and #ffffff with background
14953 2001-01-08 Steffen Macke <sdteffen@yahoo.com>
14955 *configure.in: GTK+-build was broken due to missing
14958 2001-01-06 Michael Meeks <michael@helixcode.com>
14960 * app/dia_embedd.c (main): add running context support.
14961 (dia_embeddable_destroy): remove old running object counting.
14962 (embeddable_factory): ditto.
14963 (view_factory): comment out menu path hiding.
14965 * lib/sheet.c (load_register_sheet): use free to free
14966 stuff from libxml not g_free.
14968 * acconfig.h: kill cover for USE_BONOBOX and USE_OAF
14970 * configure.in: remove USE_OAF checks, check for a precice
14971 Bonobo version >= 0.31, revamp bits.
14973 * app/dia_embedd.c (init_server_factory): upd.
14974 (init_dia_factory): remove OAF conditionals, everything uses
14977 * app/GNOME_Dia.oafinfo: rename OAFIIDs
14979 * app/Makefile.am: remove ancient gnorba code.
14980 rename dia.oafinfo to GNOME_Dia.oafinfo
14982 2001-01-07 Hans Breuer <Hans@Breuer.Org>
14986 * readme.win32 : some more files required or useful to build
14989 * plug-ins/wmf/wmf.cpp : fixed open issues like fill_arc and
14990 fill_bezier implementation, boundary drawing in fill mode, etc.
14991 Next one complaining gets the source, uncommented ...
14993 * shapes/network/router-symbol.xpm
14994 * shapes/network/switch-atm-symbol.xpm
14995 * shapes/network/switch-symbol.xpm : removed "-*- picture -*- "
14996 from /* XPM */ header, cause it stopped Dia/gdk_pixbuf to detect
14997 the files as XPMs. Maybe the X versions of these functions are more
15000 2001-01-06 Steffen Macke <sdteffen@yahoo.com>
15002 * plug-ins/python/Makefile.am: added libart path
15004 * plug-ins/python/python.c: added dirent.h
15006 * configure.in: added es_ES and pt_BR to ALL_LINGUAS
15008 2001-01-06 Hans Breuer <Hans@Breuer.Org>
15010 * objects/uml/actor.c
15011 * objects/uml/branch.c
15012 * objects/uml/class.c
15013 * objects/uml/classicon.c
15014 * objects/uml/component.c
15015 * objects/uml/large_package.c
15016 * objects/uml/node.c
15017 * objects/uml/note.c
15018 * objects/uml/object.c
15019 * objects/uml/small_package.c
15020 * objects/uml/state.c
15021 * objects/uml/usecase.c : started to implement the generic property
15022 interface for the uml objects. Would appreciate some help on how
15023 to implement properties which are list of properties themselves,
15024 e.g. member functions and their parameters of UMLClass.
15026 2001-01-06 Hans Breuer <Hans@Breuer.Org>
15028 * plug-ins/python/diamodule.c : finally ported to win32.
15029 Added new objects and implemented register_export function.
15031 * plug-ins/python/pydia-object.h
15032 * plug-ins/python/pydia-display.c
15033 * plug-ins/python/pydia-handle.c
15034 PyObject_HEAD_INIT needs some tweakink on win32. Done in
15035 pydia-object.h; others files simply using it.
15037 * plug-ins/python/pydia-layer.c : reflect
15038 layer_find_closest_connection(_)point renaming
15040 * plug-ins/python/pydia-object.c : add property properties.
15041 Also change bounding_box to DiaRectangle.
15043 * plug-ins/python/python.c : extended error reporting; use
15044 all *.py files from Dia's plug-in dir instead of hardcoded
15045 test.py. This sollution should be fine with Win32, but on
15046 Unix it may need some tweaking (dunno) ...
15048 * plug-ins/python/export-object.py
15049 * plug-ins/python/export-render.py : test and documentation
15050 implementations for export filter implementations in Python
15052 * plug-ins/python/pydia-color.[hc]
15053 * plug-ins/python/pydia-diagramdata.[hc]
15054 * plug-ins/python/pydia-error.[hc]
15055 * plug-ins/python/pydia-export.[hc]
15056 * plug-ins/python/pydia-font.[hc]
15057 * plug-ins/python/pydia-geometry.[hc]
15058 * plug-ins/python/pydia-image.[hc]
15059 * plug-ins/python/pydia-properties.[hc]
15060 * plug-ins/python/pydia-property.c
15061 * plug-ins/python/pydia-render.c : new objects in new files
15063 * plug-ins/python/makefile.am : added new files but can't test it
15065 * plug-ins/python/pydia.def
15066 * plug-ins/python/makefile.msc : for win32 build
15068 * plug-ins/cgm/cgm.c
15069 * plug-ins/dxf/dxf-import.c
15070 * plug-ins/dxf/dxf-export.c
15071 * plug-ins/hpgl/hpgl.c : reflect export API change
15073 * plug-ins/shape/shape-export.c : reflect export API change
15074 and check for libart (better the availibility of a png exporter)
15075 at run-time instead of compile-time.
15077 2001-01-06 Steffen Macke <sdteffen@yahoo.com>
15079 * app/recent_files.h was missing from Hans's commit
15081 * plug-ins/shape/shape_export.c: shape export was broken
15082 due to interface changes
15084 2001-01-05 Hans Breuer <Hans@Breuer.Org>
15086 Applied Steffen's recent file list patch :
15087 * app/Makefile.am : added recent_files.[hc]
15088 * app/diagram.c : add files to recent file list
15089 * app/menus.c : add recent file menu
15090 * app/app_procs.c : changed initialization order to
15091 make recent file list work with command line processing.
15093 The Filter export()/import() functions have got an additional
15094 parameter to allow multiple filters via one C callback (required
15095 for Python bindings)
15097 * app/commands.[hc] : corrected the signature for gtk menu callback
15098 functions, which actually use the second or third parameter. This
15099 is the absolute minimum change to make these functions/menu entries
15100 work again. Using the other possible gtk menu callback signature
15101 would have required one more function to change. (see mailing list
15102 thread "Objects/Align/Equal Distance" for more information.
15104 * app/disp_callbacks.c : applied Gustavo J.A.M. Carneiro's
15105 zoom-combo focus patch
15108 * app/interface.c : wrapped the Zoom Combo code into
15109 #ifndef WITHOUT_ZOOM_COMBO because IHMO it isn't an useabilty
15110 improvement but cluttering the user interface. Also it wasn't
15111 compiling on Win32 anyway. The win32 version does define
15112 WITHOUT_ZOOM_COMBO to keep the old look.
15113 There are plans to use the statusbar to display size and placement
15114 of selected objects, whereas the Zoom Combo would need to get out
15115 of the way as well.
15117 Added "Save Changes?" to diagram close dialog. Hopefuly the
15118 Yes/No/Cancel option isn't too much windoze like. IHMO this is
15119 an useability improvement.
15124 * app/layer_dialog.c
15125 * app/paginate_psprint.c
15127 - reflect signature changing of filter->export function
15128 - replaced '/' with G_DIR_SEPARARTOR where appropriate
15130 * app/diaunitspinner.c
15131 * app/render_libart.c
15132 added misssing headers like <string.h>
15134 * app/object_ops.c : fixed copy&paste bug in dialog string
15136 * app/splash.c : gdk_widget_show_now () does not ensure actual
15137 drawing of the splash screen, at least not on win32. Reuse the
15138 previous implementation with gtk_main_iteration() again.
15140 * */makefile.msc : make use of the build module (available in
15141 gnome-cvs/build. Updated for other source changes
15143 * lib/filter.h : added an user_data pointer to <ex/im>port()
15144 function signature and Dia<Im/Ex>portFilter to allow different
15145 filters to reuse the same callback function
15147 * lib/font.c : #include <string.h>
15152 * lib/neworth_conn.c
15153 * lib/text.c : don't mix allocator functions (g_)realloc, free, ...
15155 * */*.def : export function definition files required by win32 build
15157 * objects/custom/custom.c : #include <string.h>
15159 * plug-ins/pstricks/render_pstricks.c
15160 * plug-ins/shape/shape_export.c
15161 * plug-ins/svg/render_svg.c
15162 reflect changes to filter export function signature
15164 * plug-ins/wmf/wmf.cpp : fixed indent and scaling. It now should
15165 mostly work as expected
15166 * plug-ins/wmf/wmf_gdi.[hc] : Updated comment. Still not used
15167 to build the wmf plug-in because on the one hand the GDI emulation
15168 isn't finished and on the other hand it isn't required when building
15169 for win32. Is there anybody out there, who wants to save WMF on non
15170 windoze platforms ?
15172 * plug-ins/wpg/wpg.cpp : fixed scaling to take axis dependent
15173 offset into account.
15175 2001-01-02 Steffen Macke <sdteffen@yahoo.com>
15177 * app/Makefile.am: added missing plug-ins to run_dia.sh
15179 * lib/paper.c: added paper sizes A0, A1, A2
15181 * objects/UML/class.c
15182 objects/UML/class.h
15183 objects/UML/class_dialog.c: added support for colored UML
15186 2000-12-30 Kevin Breit <battery841@mediaone.net>
15188 * doc/en/usage-customization.sgml: added more content
15190 2000-12-24 Kevin Breit <battery841@mediaone.net>
15192 * doc/en/usage-layers.sgml: added file, contributed by Remypsb
15193 <remy.viard@laposte.net>
15195 2000-12-24 Steffen Macke <sdteffen@yahoo.com>
15197 * added limiting lines to Civil Engineering sheet,
15198 fixed vertical pump icon
15200 2000-12-20 Steffen Macke <sdteffen@yahoo.com>
15202 * updated/additional Civil Engineering shapes: better icons,
15203 shapes use foreground/background colors now and are filled
15205 2000-12-03 Kevin Breit <battery841@mediaone.net>
15207 * doc/en/dia-manual.sgml Integrated a few diffs. New section should be
15208 the selection <sect1>
15210 2000-11-29 Fredrik Hallenberg <hallon@lysator.liu.se>
15212 * app/load_save.c (diagram_data_save): avoid using obsoleted
15213 libxml calls (only matters when compiling with libxml2)
15215 2000-11-25 James Henstridge <james@daa.com.au>
15217 * app/disp_callbacks.c (ddisplay_drop_object): add a function to
15218 handle the tool drops on the canvas.
15220 * app/interface.c (display_data_received_callback): do the check
15221 to make sure that the drag is from a local toolbox here as well.
15223 * app/interface.c (create_tools): unref the pixmap/mask after
15224 creating the GtkPixmap.
15225 (tool_setup_drag_source): function to set up a drag source for
15226 create object tool buttons.
15227 (create_tools): setup drag source for CREATE_OBJECT_TOOL's.
15228 (fill_sheet_wbox): same here.
15229 (create_display_shell): set up the display canvas as a drag
15231 (display_drop_callback, display_data_received_callback): functions
15232 to handle drops of tool buttons.
15234 * app/menus.c (menus_init): don't use gnome_popup_menu_new(). It
15235 does weird shit to the user_data pointer for a menu item. Object
15236 alignment should work again now.
15238 * app/splash.c (get_logo_pixmap): don't unref the bitmap if it is
15239 NULL, and mark this function static.
15240 (app_splash_init): use gtk_widget_show_now() instead of the
15241 gtk_main_iteration loop.
15242 (app_splash_init): connecting gtk_widget_destroy to the destroy
15243 signal of a widget seems pretty useless.
15245 2000-11-23 Kevin Breit <battery841@users.sourceforge.net>
15247 * doc/en/dia-manual.sgml:
15248 Added sect1 for advanced object types. Starting development
15251 2000-11-18 Kevin Breit <battery841@mediaone.net>
15253 * doc/en/dia-manual.sgml:
15254 Stupid spelling fixes.
15256 2000-11-18 Kevin Breit <battery841@mediaone.net>
15258 * doc/en/dia-manual.sgml:
15259 Just some small changes I made. Props to Greg LeBlanc on the
15262 2000-11-17 Alexander Larsson <alla@lysator.liu.se>
15265 (ddisplay_add_display_area): Clip input rectangle to
15266 the visible part of the display.
15267 (ddisplay_scroll): Optimization, don't scroll and
15268 redraw if moving to the same position as before.
15270 * app/render_libart.c (renderer_libart_copy_to_window):
15271 Removed sanity check. Now moved to ddisplay_add_display_area().
15274 Added return at end of file.
15276 2000-11-13 Kevin Breit <battery841@mypad.com>
15277 * doc/en/dia-manual.sgml
15278 Commited manual changes from Henry House <hajhouse@houseag.com>
15280 2000-10-21 Hans Breuer <Hans@Breuer.Org>
15281 * lib/beziershape.c :
15282 The previous code was accessing unowned memory due to IHMO
15283 wrong index calculation. Now it appears to be fixed.
15287 * plug-ins/makefile.msc
15288 * objects/makefile.msc
15289 * app/makefile.msc: (new files)
15290 Makefiles for Dia on Win32, Micro$oft VC only.
15292 * plug-ins/pstricks/render_pstricks.c
15293 * plug-ins/dxf/dxf-import.c
15294 * plug-ins/shape/shape-export.c
15295 * plug-ins/svg/render_svg.c
15298 * app/preferences.c
15302 * objects/custom/custom.c
15303 * objects/standard/image.c
15304 portability (not only win32): use HAVE_UNISTD_H, HAVE_DIRENT_H
15305 where appropriate, add missing prototypes like <string.h>
15307 * plug-ins/wmf/wmf_gdi.cpp
15308 * plug-ins/wmf/wmf_gdi.h:
15309 start of wmf write functions for non Win32 platform. Not
15310 finished yet. The other way to get it working maybe to
15311 link the plug-in against wine libs.
15313 * plug-ins/wpg/wpg.c : add missing brace
15315 * app/load_save.c :
15316 Handling for unknown objects at load time. Previously Dia
15317 was crashing, if you try to load a file referencing objects
15318 whiches plug-ins aren't installed/available. Now it spits out
15319 a warning and ignores the unknown objects.
15322 toolbox DND support for files like The Gimp does it.
15326 Simple splash screen support and usage.
15329 Splash screen, portability fixes, dont' g_error if there is
15330 g_get_homedir return NULL. This may remove the one and only
15334 Make it compile without ENABLE_NLS
15336 * app/render_libart.c :
15337 Sanity check to avoid calling libart with wrong window coordinates.
15338 They come from the update handler. Direct Gdk is dealing nicely
15339 with coordinates out of range, libart does access un-owned memory
15340 in this case, mostly causing crashes.
15342 * app/winmain.c: (new file) Export the Win32 Gui version of the
15343 main function. This file is only required for Windoze.
15345 * app/splash.c: (new file) splash screen implementation
15349 * lib/diavar.h: (new file)
15350 moved special variable export code to diavar.h, because it is
15351 needed in color.h and font.h
15354 M$VC cann't export inlined functions. Quick hack to let it
15355 link again. Probably the glib mechanics should be used here?
15357 * objects/UML/lifeline.c : initialize var before usage
15359 * objects/GRAFCET/step.c : removed unused var
15361 2000-10-14 James Henstridge <james@daa.com.au>
15363 * app/render_gnomeprint.c (draw_image): change code so images
15364 don't get flipped when printing.
15366 * app/paginate_gnomeprint.c (diagram_print_gnome): check to make
15367 sure that the return value of
15368 gnome_print_context_new_with_paper_size is not NULL.
15370 * app/render_gnomeprint.c (draw_arc): add code to convert arcs
15371 into a series of bezier segments.
15372 (fill_arc): similar code to handle filled arc segments.
15374 2000-10-12 Fredrik Hallenberg <hallon@lysator.liu.se>
15381 * app/disp_callbacks.c
15383 * app/linewidth_area.c
15384 * app/paginate_psprint.c
15385 * app/preferences.c
15389 * app/neworth_conn.c
15391 * objects/standard/box.c: various small changes to get rid of
15392 annoying warnings (eg faulty prototypes and unused variables)
15394 * app/disp_callbacks.c
15397 * app/magnify.h: update magnify tool icon when pressing/releasing
15398 shift. I will try to make something more general so that similar
15399 things can be used by other tools.
15401 * shapes/SDL/inout.shape
15402 * shapes/SDL/return.shape: fixed some typos
15404 2000-10-09 James Henstridge <james@daa.com.au>
15406 * objects/custom/shape_info.c (parse_path): apply patch from
15407 Robert Young <robertdotyoung@dsto.defence.gov.au> to fix bug
15410 2000-10-08 James Henstridge <james@daa.com.au>
15412 * objects/standard/image.c (image_set_props): if the file could not
15413 be loaded, show the broken image icon.
15415 * plug-ins/Makefile.am (SUBDIRS): add shape to the subdirs list.
15417 * plug-ins/shape/*: the shape export plugin by Steffen Macke.
15419 * app/interface.c (fill_sheet_wbox): use gdk-pixbuf to load the
15420 object icon when loading from a file. This allows you to have PNG
15421 icon files for shapes.
15423 2000-10-07 James Henstridge <james@daa.com.au>
15425 * app/Makefile.am (dia_LDADD): remove GDK_IMLIB_LIBS reference.
15427 * lib/Makefile.am, app/Makefile.am (INCLUDES): remove
15428 GDK_IMLIB_CFLAGS reference.
15430 * app/commands.c (help_about_callback): remove imlib code.
15432 * lib/dia_image.c: only include the pixbuf version of the image
15435 * acconfig.h: remove the HAVE_GDK_PIXBUF flag from here.
15437 * configure.in (CPPFLAGS): remove the check for imlib, as we now
15438 require gdk-pixbuf.
15440 * plug-ins/pstricks/render_pstricks.c (new_pstricks_renderer):
15441 conditionally define \setfont as well.
15443 2000-10-05 James Henstridge <james@daa.com.au>
15445 * plug-ins/pstricks/render_pstricks.c (new_pstricks_renderer): fix
15446 preamble so that we define \setlinejoinmode and \setlinecaps
15447 commands conditionally on them being undefined. This way, the
15448 pstricks output files should work without modification, and will
15449 support the commands when they are implemented in pstricks.
15451 2000-10-05 Szabolcs Ban <shooby@gnome.hu>
15453 * dia.desktop: added hungarian translations to dia.desktop
15455 2000-10-04 James Henstridge <james@daa.com.au>
15457 * sheets/UML.sheet: fix typo.
15459 * objects/custom/shape_info.c: use strtod instead of g_strtod.
15460 (parse_path): actually call setlocale around strtod calls.
15462 * lib/dia_xml.c: use strtod rather than g_strtod. We wrap each
15463 call in setlocale(LC_NUMERIC, "C"), so there is no reason to call
15464 the g_strtod wrapper.
15466 * shapes/SDL/: add SDL shapes from Rubens Ramos
15467 <rubens_ramos@yahoo.com>
15469 * acinclude.m4 (DIA_CHECK_CFLAG): fix up macro.
15471 * sheets/Makefile.am (SHEETS): add SDL.sheet to list.
15473 * shapes/MSE/: add Mobile Subscriber Equipment shapes from
15474 W. Michael Petullo <mike@flyn.org>.
15476 * sheets/Makefile.am (SHEETS): add civil.sheet (which got missed
15477 from the 0.86 tarball) and jigsaw.sheet.
15479 * configure.in: add shapes/jigsaw/Makefile to list of generated files.
15481 * shapes/jigsaw/: jigsaw shapes from Martin Hawlisch.
15483 * shapes/network/: add network-additional shapes here.
15485 * sheets/network.sheet: add the network-additional shapes from
15486 Martin Hawlisch <Martin.Hawlisch@bflow.com> to the main network
15489 2000-09-30 Fredrik Hallenberg <hallon@lysator.liu.se>
15491 * configure.in: Updated ALL_LINGUAS
15493 * po/nl.po: Removed newline from translation
15495 2000-09-17 Asbjorn Pettersen <asbjornP@dualog.no>
15497 * app/commands.c (help_about_callback): Use G_DIR_SEPARATOR_S in
15498 logo filename generation.
15500 * lib/dia_dirs.c (dia_get_data_directory): Handle empty subdir better.
15501 Avoiding "//dia_logo.png".
15503 2000-09-16 Asbjorn Pettersen <asbjornP@dualog.no>
15505 * app/filedlg.c: add include <sys/types.h> to
15506 remove warning. (OS/2)
15508 2000-09-13 Cyrille Chepelov <chepelov@calixo.net>
15510 * objects/chronogram/chronoline_event.c (reparse_clevent):
15511 the __checksum routine was simply bogus. Redone it in a slightly
15512 saner way (reported by Michael Farr <mfarr@cs.latrobe.edu.au>).
15514 2000-09-10 Asbjorn Pettersen <asbjornP@dualog.no>
15516 * app/create_object.c (create_object_button_press):
15517 * app/modify_tool.c (click_select_object):
15518 * lib/object.h: select renamed to selectf to prevent
15519 compiler problems with function select(). OS/2 version.
15521 2000-09-08 Karsten Weiss <knweiss@gmx.de>
15523 * po/de.po: Updated.
15525 2000-09-07 Karsten Weiss <knweiss@gmx.de>
15527 * dia.desktop: Added German translation
15528 * app/menus.c: "Diagram Propeties..." -> "Diagram Properties..."
15530 2000-08-29 Manuel de Vega Barreiro <barreiro@arrakis.es>
15532 * configure.in (ALL_LINGUAS): added "es"
15534 2000-08-28 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
15539 * app/scroll_tool.c:
15540 Standardized cursor function get_cursor(). Magnify now has
15541 looking-glass cursor with + and -.
15543 * app/create_object.c (create_object_button_press):
15544 Newly created connections now snap to connection points even when
15547 2000-08-17 Daniel Egger <egger@suse.de>
15549 * app/menus.c: #ifdef'ed some code for the none GNOME
15551 * app/dia_embedd.c: Changed obvious hackery. Can anyone
15552 please have a look at the GNOME UI menu creation? The
15553 gnome-app-helper code is ages old and plainly broken!
15555 2000-08-15 Daniel Egger <egger@suse.de>
15562 * app/select.c: First big patch to get the menus
15563 working again in the international version. Copied
15564 some code written by Sven and me from GIMP and
15565 thus implemented automatic tearoffmenu creation and
15566 proper translation. I also removed that pseudo
15567 radiomenu hack and cleaned up several translation
15568 hacks which have never really worked. All in all
15569 this is part I of the big menu patch. Enjoy and tell
15570 me if you detect any problems.
15572 2000-08-14 Daniel Egger <egger@suse.de>
15574 * sheets/UML.sheet: Changed one German translation as
15575 suggested by Heribert Schuetz <hs@heribert-schuetz.de>.
15577 2000-08-10 Fredrik Hallenberg <hallon@lysator.liu.se>
15579 * app/diapagelayout.c:
15580 * lib/diagramdata.c:
15581 * lib/diagramdata.h:
15584 * lib/paper.h: honour PAPERCONF env variable and /etc/papersize when
15585 selecting paper size for a new diagram. TODO: Use libpaper if
15586 available and use gnome_paper-stuff if using GNOME.
15588 * sheets/Electric.sheet: fixed typo.
15590 2000-08-08 James Henstridge <james@daa.com.au>
15592 * po/README: added a readme file to tell translators to translate
15593 the .sheet files as well.
15595 * app/commands.c (help_about_callback): fix small bug where we tried
15596 to gdk_bitmap_unref() the mask for the about box image, even though
15597 it was NULL. Now check for a NULL mask.
15599 2000-08-07 Daniel Egger <egger@suse.de>
15601 * sheets/*.sheet: Added translations for the name
15602 in the toolbar tab. Brushed up some descriptions
15603 and some translations a bit.
15605 2000-08-06 James Henstridge <james@daa.com.au>
15607 * plug-ins/svg/render_svg.c (new_svg_renderer): update public
15608 identifier and dtd url for SVG output.
15609 (new_svg_renderer): fix the output of the viewBox output. The
15610 second two numbers are the width and height -- not the right
15611 and bottom sides of the box.
15613 * shapes/*/*.shape: update svg namespace URI.
15615 * objects/custom/shape_info.c (load_shape_info): change the
15616 namespace URI for custom shapes yet again to match the Candidate
15617 Recommedation. It looks like this one will probably be the final
15620 * app/display.c (new_display): remove the code that sets ic and
15621 ic_attr members to NULL, as one of the previous function calls
15622 causes the display to be realised. This means that the ic gets
15623 lost. Thanks to Yukihiro Nakai <ynakai@redhat.com> for finding
15626 2000-08-06 James Henstridge <james@daa.com.au>
15628 * shapes/Makefile.am (SUBDIRS): add Civil back to list.
15630 * NEWS: fixed date in NEWS file, as I will release today.
15632 * README: updated the README a little. Added note that Dia is now
15635 * dia.spec: fix up spec file.
15637 * plug-ins/wpg/wpg.c: changed DIAG_NOTE stuff here as well.
15639 * plug-ins/hpgl/hpgl.c: change Hans's DIAG_NOTE stuff so that we don't
15640 get heaps of warnings when you turn off debugging.
15641 Also made a few other warning fixes.
15643 2000-08-02 James Henstridge <james@daa.com.au>
15645 * plug-ins/svg/Makefile.am (INCLUDES): add XML_CFLAGS to INCLUDES.
15647 * configure.in: update version number.
15649 2000-08-01 James Henstridge <james@daa.com.au>
15651 * app/commands.c (help_about_callback): add Hans to about dialog.
15653 * doc/shape.dtd: dtd for shape file format.
15655 * doc/custom-shapes: update doc file about creating custom shapes.
15657 * shapes/*/*.shape: change namespace URI for the SVG portion to the
15658 one for the latest draft.
15660 * shapes/*/*.shape: fix up rect definitions.
15662 * objects/custom/shape_info.c (load_shape_info): recognise newer
15663 namespace tag for SVG.
15664 (parse_svg_node): the rect element should take attributes x, y, width
15665 and height -- not x1,y1,x2,y2.
15667 * plug-ins/svg/render_svg.c (new_svg_renderer): updated doctype
15668 output to use the newest draft DTD.
15670 * plug-ins/svg/svg.c: initialisation code for plugin.
15672 * plug-ins/svg/render_svg.c: move svg export code to a plugin.
15674 * plug-ins/svg/Makefile.am: makefile for svg plugin.
15676 * app/app_procs.c (internal_plugin_init): don't register the svg
15677 export filter here.
15679 * app/Makefile.am (dia_core_files): don't compile in render_svg.[ch]
15681 2000-07-31 James Henstridge <james@daa.com.au>
15683 * objects/standard/textobj.c (textobj_get_defaults):
15684 * objects/standard/polygon.c (polygon_get_defaults):
15685 * objects/standard/image.c (image_get_defaults):
15686 * objects/standard/ellipse.c (ellipse_get_defaults):
15687 * objects/standard/box.c (box_get_defaults):
15688 * objects/standard/beziergon.c (beziergon_get_defaults):
15689 * objects/flowchart/parallelogram.c (pgram_get_defaults):
15690 * objects/flowchart/ellipse.c (ellipse_get_defaults):
15691 * objects/flowchart/diamond.c (diamond_get_defaults):
15692 * objects/flowchart/box.c (box_get_defaults):
15693 * objects/custom/custom_object.c (custom_get_defaults):
15694 * objects/FS/flow.c (flow_get_defaults):
15695 * objects/FS/flow-poly.c (flow_get_defaults):
15696 * objects/FS/flow-ortho.c (orthflow_get_defaults): ref and sink the
15699 * app/defaults.c (defaults_show): don't keep on ref'ing the defaults
15700 widgets for various object types.
15701 (create_dialog): ref and sink the no_defaults_dialog.
15703 * app/preferences.c (prefs_create_dialog): change
15704 gtk_container_border_width call to gtk_container_set_border_width.
15706 2000-07-29 James Henstridge <james@daa.com.au>
15708 * app/commands.c (view_aa_callback): show a warning dialog if
15711 * app/interface.c (fill_sheet_menu): don't add a menu item for
15714 2000-07-26 James Henstridge <james@daa.com.au>
15716 * plug-ins/dxf/dxf-export.c: updates from Steffen to fix bug #18677
15718 * app/menus.c: remove edit grid menu item.
15720 * app/commands.[ch] (view_edit_grid_callback): removed.
15722 * app/display.c (new_display): don't initialise removed Grid members.
15724 * app/grid.c: remove unused functions.
15726 * app/grid.h: remove dialog related stuff from Grid structure.
15727 Remove prototypes for dialog functions.
15729 * app/menus.c: add to menus
15731 * app/commands.[ch] (view_diagram_properties_callback): new command
15732 for showing the diagram properties dialog.
15734 * app/dia-props.[ch]: a new diagram properties dialog. To replace
15735 the edit grid dialog.
15737 2000-07-25 James Henstridge <james@daa.com.au>
15739 * app/grid.c (grid_x_update):
15740 (grid_y_update): as the grid setting is stored with the diagram,
15741 update all displays when a change is made.
15743 * app/modify_tool.c (modify_motion): use new snap_to_grid sig.
15745 * app/create_object.c (create_object_button_press):
15746 (create_object_motion): use new snap_to_grid signature.
15748 * app/grid.c (grid_draw): use the grid settings in the DiagramData,
15749 and handle invisible grid lines.
15750 (snap_to_grid): use new grid settings. Also changed signature to
15751 take a DDisplay rather than Grid pointer.
15752 (grid_show_dialog): get the defaults from the correct place.
15754 * app/display.c (new_display): do not set ddisp->grid.width_[xy].
15756 * app/diagram.c (new_diagram): set the grid size defaults from the
15759 * app/load_save.c (diagram_data_save): save grid and guide info to
15761 (diagram_data_load): add guide and grid load support.
15763 * lib/diagramdata.c (new_diagram_data): set the new DiagramData
15766 * lib/diagramdata.h: add members to DiagramData for grid and guide
15769 * configure.in (BONOBO_LIBS): update configure scripts
15771 * app/dia.oafinfo: oafinfo file for dia embeddables.
15773 * app/dia_embedd.c: add OAF support.
15775 2000-07-24 James Henstridge <james@daa.com.au>
15777 * plug-ins/wpg/Makefile.am:
15778 * plug-ins/pstricks/Makefile.am:
15779 * plug-ins/hpgl/Makefile.am:
15780 * plug-ins/dxf/Makefile.am: same here.
15782 * plug-ins/cgm/Makefile.am: remove LIBADD. Dia already links with
15783 the required libraries, and the link line was causing libtool not
15784 to build a shared library on some systems :(
15786 * plug-ins/cgm/cgm.c (write_real): the initial if statement should
15787 be checking x, not n.
15789 2000-07-23 James Henstridge <james@daa.com.au>
15791 * app/preferences.c (prefs_data): set the "reset tools after
15792 create" preference to true by default. That seems to be what most
15795 * app/interface.c (create_sheets): instead of a notebook, use an
15796 option menu that updates the sheet tools. The notebook tabs were
15797 getting a bit unwieldly, so the option menu should fix that. This
15798 also reduces the number of widgets in the tools radio button
15799 group, which should make the UI a little more responsive.
15801 2000-07-19 Fatih Demir <kabalak@gmx.net>
15803 * configure.in: Added tr to ALL_LINGUAS.
15804 [ Yeah, we're now having a Turkish translation,
15807 * dia.desktop: Added the Turkish entries.
15809 2000-07-02 Fredrik Hallenberg <hallon@lysator.liu.se>
15811 * doc/diagram.dtd: changed string-element so it conforms to the
15814 2000-06-30 Fredrik Hallenberg <hallon@lysator.liu.se>
15816 * configure.in: added chinese.
15817 Use AM_PROG_LIBTOOL instead of AC_PROG_LIBTOOL.
15825 objects/custom/shape_info.c:
15826 shapes/Circuit/npn.shape:
15827 shapes/Circuit/pnp.shape:
15828 sheets/*.sheet: dia now works with libxml2.
15829 Libxml2 is a bit more picky when parsing xml and reported errors on all
15830 sheet files because they use non ascii characters (added
15831 encoding="iso-8859-1"). Also "xml:lang=en@layman" is not proper xml so
15832 I commented out these.
15834 2000-06-30 Christopher R. Gabriel <cgabriel@linux.it>
15836 * configure.in (ALL_LINGUAS): added Italian
15838 2000-06-27 Sung-Hyun Nam <namsh@lgic.co.kr>
15840 * configure.in (ALL_LINGUAS): added Korean
15842 2000-06-25 James Henstridge <james@daa.com.au>
15844 * objects/flowchart/parallelogram.c (pgram_create): use default font
15845 and add properties interface support.
15847 * objects/flowchart/ellipse.c (ellipse_create): use default font and
15848 add properties interface support.
15850 * objects/flowchart/diamond.c (diamond_create): use default font and
15851 add properties interface code.
15853 * objects/flowchart/box.c (box_create): use default font.
15855 * objects/custom/custom_object.c (custom_create): use default font
15858 * objects/standard/textobj.c (textobj_create): update to use default
15861 * lib/attributes.c: add implementations.
15863 * lib/attributes.h (attributes_[gs]et_default_font): add function
15864 prototypes for setting/getting a default font.
15866 2000-06-24 James Henstridge <james@daa.com.au>
15868 * app/paginate_gnomeprint.h: updated prototype.
15870 * app/paginate_gnomeprint.c (paginate_gnomeprint): update to use
15871 diagram page settings.
15873 * objects/standard/beziergon.c (beziergon_copy): same here.
15875 * objects/standard/polygon.c (polygon_copy): copy the fill colour
15879 * app/tool.h (tool_options_dialog_show):
15880 * app/scroll_tool.h (free_scroll_tool):
15881 * app/render_svg.h:
15882 * app/render_libart.h (renderer_libart_copy_to_window):
15883 * app/render_gdk.h (renderer_gdk_copy_to_window):
15884 * app/properties.h (properties_hide_if_shown):
15885 * app/preferences.h (prefs_load):
15886 * app/object_ops.h:
15887 * app/modify_tool.h (free_modify_tool):
15888 * app/magnify.h (free_magnify_tool):
15889 * app/linewidth_area.h (linewidth_area_create):
15890 * app/layer_dialog.h:
15891 * app/handle_ops.h (handle_is_clicked):
15893 * app/grid.h (grid_destroy_dialog):
15894 * app/defaults.h (defaults_show):
15895 * app/cut_n_paste.h (cnp_exist_stored_objects):
15896 * app/create_object.h (free_create_object_tool):
15897 * app/connectionpoint_ops.h (diagram_unconnect_selected):
15899 * app/color_area.h (color_area_create):
15900 * app/app_procs.h (app_is_embedded): remove extern keyword from
15901 function prototypes.
15904 * lib/sheet.h (load_all_sheets):
15905 * lib/render_store.h:
15906 * lib/render_object.h (render_object_load):
15907 * lib/polyshape.h (polyshape_closest_segment):
15908 * lib/poly_conn.h (polyconn_closest_segment):
15911 * lib/objchange.h (new_object_state_change):
15912 * lib/neworth_conn.h (neworthconn_add_segment):
15913 * lib/message.h (message_error):
15916 * lib/font.h (font_descent):
15917 * lib/focus.h (remove_focus):
15919 * lib/diagramdata.h:
15920 * lib/dia_xml.h (data_add_composite):
15922 * lib/connpoint_line.h:
15923 * lib/connection.h (connection_move_handle):
15925 * lib/attributes.h (attributes_set_default_line_style):
15926 * lib/arrows.h (arrow_draw): remove extern keyword from function
15927 definitions. It is not required for functions.
15929 * plug-ins/dxf/Makefile.am (INCLUDES):
15930 * plug-ins/pstricks/Makefile.am (INCLUDES):
15931 * plug-ins/cgm/Makefile.am (INCLUDES):
15932 * objects/SADT/Makefile.am (INCLUDES):
15933 * objects/chronogram/Makefile.am (INCLUDES):
15934 * objects/GRAFCET/Makefile.am (INCLUDES):
15935 * objects/flowchart/Makefile.am (INCLUDES):
15936 * objects/sybase/Makefile.am (INCLUDES):
15937 * objects/FS/Makefile.am (INCLUDES):
15938 * objects/standard/Makefile.am (INCLUDES):
15939 * objects/network/Makefile.am (INCLUDES):
15940 * objects/UML/Makefile.am (INCLUDES): same here.
15942 * objects/ER/Makefile.am: changed inclusion of some macros to
15945 * lib/plug-ins.c (dia_register_plugins_in_dir): use a few defines to
15946 handle the plug in extension, rather than have all the #ifdef's in
15949 * plug-ins/Makefile.am: add renderer.inc to dist.
15951 * plug-ins/dxf/dxf-import.c: Updates from Steffen Macke.
15953 2000-06-11 Asbjorn Pettersen <asbjornP@dualog.no>
15955 * lib/plug-ins.c: Handle OS/2 dll's too.
15957 2000-06-07 James Henstridge <james@daa.com.au>
15959 * app/plugin-manager.c (get_plugin_manager): set some table
15960 packing options to make it look a little nicer.
15962 * plug-ins/hpgl/Makefile.am, plug-ins/wpg/Makefile.am: added
15963 makefiles for these plug-ins.
15965 * plug-ins/{hpgl,wmf,wpg}/*: removed dos style cariage returns.
15967 * configure.in: added hpgl and wpg directories to build. Added
15968 note about whether gnome-print support was enabled, and noted that
15969 it is not recommended.
15971 2000-06-06 James Henstridge <james@daa.com.au>
15973 * plug-ins/{hpgl,wmf,wpg}/*: Hans Breuer's plug-ins. They still need
15974 a little work, but I am checking them in so I don't lose them.
15976 2000-06-01 James Henstridge <james@daa.com.au>
15978 * objects/standard/arc.c: added extra properties.
15980 * lib/beziershape.c (beziershape_closest_handle): fix a bug where I
15981 was using the wrong index into the handles array. This gets corner
15982 type changing working correctly.
15984 * lib/properties.[ch]: add support for BezPoint's and BezPoint arrays
15985 to properties code (no editing or loading yet though). Also added
15986 support for point array manipulation through the offsets interfaces.
15988 * lib/Makefile.am (INCLUDES): added include of gdk-pixbuf
15990 * app/interface.c (origin_button_press): changes so the origin
15991 button doesn't grab the pointer when we pop up the menu.
15993 * app/commands.c (help_about_callback): fix small memory leak in
15996 * app/menus.c (menus_init): fixed breakage I introduced in the non
15997 gnome menus when I was doing the menu changes. The tearoffs work
15998 really nicely in plain gtk mode as well.
16000 * objects/standard/beziergon.c (beziergon_create): changed the
16001 returned handles to match the handle numbering changes. Now
16002 segment addition and removal works correctly with undo!
16004 * lib/beziershape.c: various changes to the code. Changed the
16005 numbering of handles, and fixed the segment removal code.
16007 2000-05-31 James Henstridge <james@daa.com.au>
16009 * objects/standard/beziergon.c: remove connection point handling.
16010 There is still a bit of work to be done to get adding and removing
16011 of segments working correctly.
16013 * lib/beziershape.c: add connection point handling to beziershape.
16014 I set it for two connection points per segment.
16016 2000-05-30 James Henstridge <james@daa.com.au>
16018 * objects/standard/polygon.c: don't do connectionpoint handling.
16020 * lib/polyshape.c: changed to handle connection points internally.
16021 Also, don't worry about connections to handles on polyshape, as
16022 all handles are non connectable.
16024 2000-05-30 Ville Hautamaki <villeh@cs.joensuu.fi>
16026 * configure.in: Added finnish
16028 2000-05-30 James Henstridge <james@daa.com.au>
16030 * sheets/*.sheet: translation updates to the .sheet files.
16032 * po/fr.po: updated po file from Christophe Merlet.
16034 * menus.h: removed prototypes for functions which have been removed.
16036 2000-05-29 James Henstridge <james@daa.com.au>
16038 * app/layer_dialog.c (layer_dialog_set_diagram): set the selected
16039 item in the option menu when changing selected diagram.
16041 * app/dia_embedd.c (view_factory): fix up function to work with new
16044 * app/disp_callbacks.c (ddisplay_realize): remove call to
16045 display_set_active from here.
16046 (ddisplay_canvas_events): move call here. This gets rid of all the
16047 warnings, as the renderer has been fully set up correctly at this
16050 * app/menus.c (menus_init): add the tearoff item to the start of the
16053 * app/app_procs.c (create_user_dirs): we don't need to create the
16054 menus directory anymore.
16056 * app/disp_callbacks.c (ddisplay_popup_menu): it should not be
16057 necessary to update the menu state here, as it was done when the
16058 active display was set.
16060 * app/display.c (display_set_active): update the menu state when
16061 changing active displays.
16063 * app/interface.c (origin_button_press): set the display as active
16064 when a click is made on the menu button.
16066 * app/menus.c (menus_init): set up a quit function to save the accels
16068 Add tearoff items for the non GNOME menus, add accelerators for
16069 several GNOME menus.
16071 * app/disp_callbacks.c (ddisplay_popup_menu): get the menu with
16072 menus_get_image_menu().
16074 * app/menus.c (menus_get_item_from_path): use display_menus here
16075 rather than ddisp->popup.
16077 * app/display.h: remove the popup member in the DDisplay structure.
16079 * app/interface.c: remove option of not using wrap box.
16080 (create_toolbox): change to always use menus_get_toolbox_menubar
16081 even when using gnome menus.
16082 (create_display_shell): use menus_get_image_menu to load accelerators
16083 only -- not the actual popup menu.
16085 * app/menus.c (menus_init): new function to create the menus.
16086 (menus_get_toolbox_menubar): use this function whether gnome is
16087 in use or not. Changed to use menus_init.
16088 (menus_get_image_menu): same here. Also, now this function always
16089 returns the same menu, rather than a new one each time.
16090 (menus_init): read a menurc file to load accelerators here.
16092 2000-05-28 James Henstridge <james@daa.com.au>
16094 * app/display.c (ddisplay_really_destroy): unset active display if
16095 active display is destroyed.
16096 (ddisplay_active): simplify function to return active_display as set
16097 by display_set_active. This allows using a pinned menu with any
16098 display -- not just the one it was popped up from.
16099 (display_set_active): notify the layer dialog of change of diagrams
16100 when active diagram changes.
16102 * app/disp_callbacks.c (ddisplay_canvas_events): set active display
16103 on button and key presses.
16104 (ddisplay_realize): set active display on realize.
16106 * app/display.c (display_set_active): simple implementation of this
16109 * app/display.h (display_set_active): add prototype for setting
16110 the active display.
16112 * app/interface.c (create_display_shell): don't give focus to the
16115 * app/menus.c: fix up menus for Beziergon.
16117 * app/interface.c (create_display_shell): make the widget in the
16118 top left corner a button that can be used to pop up the right click
16119 menu, like in gimp and sketch.
16121 * app/disp_callbacks.c (ddisplay_popup_menu): new function to popup
16124 * objects/standard/beziergon.c (beziergon_set_corner_type_callback):
16125 add code to set corner types for beziergon.
16127 * lib/beziershape.c (beziershape_set_corner_type): fix up corner type
16129 (beziershape_move_handle): use the previous corner type for right
16132 * app/interface.c (tool_data): add beziergon to toolbox.
16134 * objects/standard/standard.c (dia_plugin_init): initialise the new
16135 Beziergon object type.
16137 * objects/standard/beziergon.c: an object based on BezierShape.
16139 * lib/dummy_dep.h (dummy_dep): added to dummy_dep.
16141 * lib/beziershape.[ch]: new files implementing a bezier shape.
16143 2000-05-26 James Henstridge <james@daa.com.au>
16145 * lib/text.c (text_key_event): handle multibyte inserts.
16146 (text_key_event): also add home and end keybindings.
16148 * app/interface.c (create_display_shell): connect handlers for
16149 focus_in_event, focus_out_event, realize and unrealize signals.
16151 * app/display.[ch] (new_display): initialise input context members.
16153 * app/disp_callbacks.[ch]: added XIM support here.
16155 * lib/font.c (suck_font): the black and white pixel values should be
16156 taken from a 1 bit colormap rather than the default colormap.
16158 Hans Breuer's Windows patches ...
16160 * lib/font.c: use Courier New for fixed width font on windows
16163 * lib/dia_image.h: change to "struct _DiaImage".
16165 * lib/dia_image.c: change "struct DiaImage" to "struct _DiaImage"
16167 * app/disp_callbacks.c (ddisplay_canvas_events): allow ctrl+right
16168 mouse button for object menu. This will make two button mouse owners
16171 2000-05-25 James Henstridge <james@daa.com.au>
16173 * app/filedlg.c (file_open_ok_callback): use diagram_load here.
16175 * app/app_procs.c (app_init): add extra NULL argument to call of
16178 * app/load_save.h: remove prototype.
16180 * app/load_save.c: remove diagram_data function here.
16182 * app/diagram.h: added prototype.
16184 * app/diagram.c (diagram_load): new function here, which uses import
16187 * plug-ins/dxf/dxf.c: register the import filter as well.
16189 * plug-ins/dxf/dxf-import.c: added (unfinished) DXF import filter from
16190 Steffen Macke <macke@heini.fbbwu.fh-lueneburg.de>
16192 * objects/standard/line.c: add start_point and end_point properties
16193 to standard line object.
16195 2000-05-21 James Henstridge <james@daa.com.au>
16197 * app/paginate_psprint.c: added missing include of locale.h.
16199 * objects/custom/custom_object.c (custom_draw): use fabs rather than
16200 abs for scaling factors.
16201 (custom_distance_from): same here.
16203 * dia.spec: make sure rpm doesn't bomb out when LINGUAS isn't set.
16205 2000-05-18 James Henstridge <james@daa.com.au>
16207 * po/POTFILES.in: updated POTFILES.in.
16209 * dia.spec: incremented version number in spec file.
16211 * NEWS: added (lots of) news items for the 0.85 release.
16213 * app/preferences.c (prefs_save): set LC_NUMERIC to C while writing
16216 * configure.in: updated version number here.
16218 * app/Makefile.am (run_dia.sh): include plug-ins in the lib path.
16220 2000-05-17 James Henstridge <james@daa.com.au>
16222 * app/app_procs.c (internal_plugin_init): register the native import
16225 * app/load_save.c (diagram_data_load, diagram_load): split this
16226 function into two -- one that does all the work on the DiagramData
16227 structure, and the other that provides compatibility with the old
16229 (dia_import_filter): use diagram_data_load to define an import
16232 * app/diagram.h (new_diagram): added const to prototype.
16234 * app/filedlg.c (file_open_callback): change to use new import filter
16237 * lib/filter.c: added import filter management functions.
16239 * lib/filter.h: added prototypes for import filter interface.
16241 * app/commands.c (help_about_callback): updated about dialog to
16242 contain a few more names.
16244 2000-05-16 James Henstridge <james@daa.com.au>
16246 * configure.in (Configuration): added a status message to the end of
16247 the configure script to give the user some idea of what was
16250 * plug-ins/dxf/Makefile.am: Makefile for new plugin.
16252 * plug-ins/dxf/dxf.c (dia_plugin_init): added file to initialise the
16255 * plug-ins/dxf/dxf-export.c: new file -- Steffen Macke's DXF export
16258 * configure.in (AM_PATH_LIBART): use the check function provided
16259 with libart rather than our own code. It is more reliable, and
16260 it only requires that people who build out of CVS have libart.m4
16261 installed (not necessarily all of libart).
16262 (AM_PATH_GDK_PIXBUF): same here for gdk-pixbuf.
16264 2000-05-12 Andreas Hyden <a.hyden@cyberpoint.se>
16266 * dia.desktop: Added Swedish translation.
16268 2000-05-09 James Henstridge <james@daa.com.au>
16270 * lib/dia_xml.c: you can't free a const pointer, so remove const
16271 from variable definitions.
16273 Explicitely set LC_NUMERIC where needed, as sometimes it isn't
16274 initialised correctly.
16276 * app/render_svg.c (export_svg): set locale to C.
16278 * app/paginate_psprint.c (paginate_psprint): set locale to C.
16280 * app/render_eps.c (export_eps): set locale to C for EPS export.
16282 * lib/dia_xml.c (data_add_real): change to C locale for snprintf call.
16283 (data_add_point): same here.
16284 (data_add_rectangle): same here.
16285 (data_real): use g_strtod to convert strings to real numbers, so that
16286 locales are taken into account.
16287 (data_point): same here.
16288 (data_rectangle): same here.
16290 * AUTHORS: added Henk and Jacek to authors file.
16292 Daniel Egger's code cleanups.
16294 * app/select.c (select_invert_callback): remove unused variable.
16296 * app/plugin-manager.c (get_plugin_manager): fix typo.
16298 * app/load_save.c (read_connections, write_objects):
16299 (write_connections): made some functions static.
16301 * app/interface.c (toolbox_delete, toolbox_destroy): made some
16304 * app/filedlg.c (file_export_callback): remove unused variable.
16306 * app/app_procs.c: various warning fixes.
16308 Integrating Jacek Pliszka's pstricks export filter.
16310 * plug-ins/pstricks/pstricks.c: code to initialise the plugin.
16312 * plug-ins/pstricks/render_pstricks.[ch]: Jacek Pliszka's pstricks
16313 renderer (with a few small modifications by me).
16315 * plug-ins/pstricks/Makefile.am: new makefile for pstricks plug-in.
16317 * plug-ins/Makefile.am (SUBDIRS): add pstricks subdirectory.
16319 2000-05-07 Alexander Larsson <alla@lysator.liu.se>
16322 * sheets/Makefile.am:
16323 * shapes/Makefile.am:
16324 * shapes/Civil/Makefile.am:
16325 * sheets/civil.sheet:
16327 Added civil/hydraulic/structural engineering objects from
16328 sdteffen <macke@heini.fbbwu.fh-lueneburg.de>.
16330 2000-05-07 Alexander Larsson <alla@lysator.liu.se>
16332 * objects/FS/flow-poly.c:
16333 * objects/FS/flow.c:
16334 Fix division by zero in point_normalize().
16335 Patch by David Thompson <dcthomp@mail.utexas.edu>
16337 2000-04-27 Lars Clausen <lrclause@cs.uiuc.edu>
16340 * lib/bezier_conn.c:
16341 * lib/connpoint_line.c:
16342 Added checks for zero-length lines before calls to point_normalize.
16344 2000-04-24 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
16346 * app/preferences.c (prefs_data): Changed
16347 reversed_dragging_intersects to not make the dialog ridiculously
16350 2000-04-22 James Henstridge <james@daa.com.au>
16352 Hans's win32 patches:
16354 * app/export_png.c: include message.h
16355 * app/interface.c: include dia_dirs.h
16356 * app/linewidth_area.c: check for rint
16357 * app/main.c: include interface.h
16358 * app/paginate_psprint.c: remove unused variable.
16359 * app/preferences.c: include message.h
16360 * app/render_svg.c: include stdlib.h
16361 * app/select.c: include object_ops.h
16362 * lib/dia_dirs.c: miscelaneous fixes for win32.
16363 * lib/dia_image.c: include string.h
16364 * lib/plug-ins.c: look for .dll files rather than .la files on win32.
16365 * lib/properties.c: include stdlib.h
16366 * lib/properties.h: define extra data for standard properties as
16367 static variables on win32 (to get around dynamic linker problems).
16368 * objects/standard/polygon.c: polygon_create_change missing return
16371 2000-04-18 Pablo Saratxaga <pablo@mandrakesoft.com>
16373 * configure.in (ALL_LINGUAS): added Catalan
16375 2000-04-18 James Henstridge <james@daa.com.au>
16377 * objects/standard/bezier.c (bezierline_get_object_menu): add a
16378 separator to the object menu between the add/remove segment items
16379 and the corner type items.
16380 (bezierline_get_object_menu): add code to disable the menu item for
16381 the current corner type. Really just a cosmetic change.
16383 * app/disp_callbacks.c (create_object_menu): handle DiaMenuItems with
16384 a NULL for the label or with no associated callback.
16386 * objects/standard/bezier.c (bezierline_menu_items): use the
16387 enumeration values rather than numeric values for the corner types.
16389 * lib/bezier_conn.[ch]: added a corner_types member to the BezierConn
16390 structure, and add code to handle it. Also, don't save the corner
16391 types inline in the bez_points node. The way it is conditionally
16392 including the element just feels like it will break.
16394 * lib/geometry.h (BezPoint): removed the corner_type stuff from
16395 BezPoint. The corner type stuff is a user interface level idea rather
16396 than something required by the renderer, so should be taken care of
16397 at the object level.
16399 2000-04-17 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
16401 * configure.in: Fixed some problems with the gdk-pixbuf/imlib
16402 checks. Weren't able to reproduce original bug, tough.
16404 2000-04-16 Cyrille Chepelov <chepelov@calixo.net>
16406 * sheets/Electric.sheet:
16407 * sheets/Contact.sheet:
16408 * sheets/Pneumatic.sheet:
16409 * sheets/Circuit.sheet: sprayed some <br/>'s around.
16410 (added a few French translations in the last file)
16412 2000-04-16 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
16415 * lib/bezier_conn.h:
16416 * objects/standard/bezier.c:
16417 * lib/bezier_conn.c: Support for cuspy, smooth and symmetric
16418 bezier points. Only one minor problem known: Menus are active
16419 for endpoints minor handles.
16420 11:28: Save and load now works, too.
16421 (bezierconn_closest_major_handle): 12:03: New function to get the
16422 non-control point handle associated with the nearest control
16424 Also fixed the menu activation problem, and made remove_segment
16425 not remove the endpoint.
16427 2000-04-15 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
16429 * configure.in: Added check for gdk-pixbuf being >= 0.7.0 since
16432 2000-04-15 Asbjorn Pettersen <asbjornP@dualog.no>
16434 * lib/plug-ins.c: Added <sys/types.h> and moved <fcntl.h> below
16435 <sys/stat.h>. OS/2 patch.
16437 2000-04-15 James Henstridge <james@daa.com.au>
16439 * objects/FS/flow-ortho.c, objects/FS/function.c: Applied David
16440 Thompson's patch that adds undo support to the function structure
16443 2000-04-14 James Henstridge <james@daa.com.au>
16445 * objects/custom/custom_object.c (custom_distance_from): new
16446 implementation of distance algorithm that actually takes the
16447 display list into account when calculating the distance. Much nicer
16448 than a simple bounding box.
16450 2000-04-13 Lars Clausen <lrclause@cs.uiuc.edu>>
16452 * lib/geometry.c (line_crosses_ray): Fixed division by zero bug
16454 2000-04-12 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
16456 * objects/standard/polygon.c: Start of polygons own changes (for
16457 connectionpoints). Need to do seperate changes in polyshape, too,
16458 rather than reuse the bezier changes.
16460 2000-04-13 James Henstridge <james@daa.com.au>
16462 * lib/dia_image.c (dia_image_draw): use the new enumeration values
16463 from after the gdk-pixbuf cleanup.
16465 * lib/geometry.c (bez_point_distance_and_ray_crosses): fix up limit
16466 on for loop. Last set of coefficients were not beeing calculated,
16467 which caused a bit of breakage.
16469 * lib/bezier_conn.c (bezierconn_closest_segment): use the new
16470 functions in geometry.c for calculating the closest segment.
16471 (bezierconn_distance_from): use distance_bez_line_point to calculate
16474 * lib/geometry.c (distance_bez_line_point): new function to calculate
16475 the distance from an open bezier line to a point.
16476 (distance_bez_shape_point): new function to calculate the distance
16477 from a closed bezier shape.
16478 (distance_ellipse_point): new function to calculate the distance from
16479 a filled ellipse to a point.
16481 * lib/geometry.h (BezPoint): moved this structure here from render.h
16483 2000-04-12 James Henstridge <james@daa.com.au>
16485 * lib/geometry.c (distance_bez_seg_point): new function to calculate
16486 the distance from a bezier segment.
16488 * lib/polyshape.c (polyshape_distance_from): use distance_polygon_point
16489 to calculate the distance from the object.
16491 * lib/geometry.c (distance_polygon_point): function for calculating
16492 the distance from a polygon to a point.
16494 2000-04-12 Cyrille Chepelov <chepelov@calixo.net>
16497 * lib/sheet.[ch]: added a <br/> tag in sheet files, so that line
16498 breaks can be inserted in the tool box.
16500 * doc/sheet.dtd: updated the DTD
16501 * sheets/GRAFCET.sheet: tried <br/> on that sheet (more to come).
16503 2000-04-12 James Henstridge <james@daa.com.au>
16505 * app/plugin-manager.c (get_plugin_manager): use the GTK_DIALOG
16506 macro if the dialog is a GtkDialog :(
16508 2000-04-11 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
16510 * objects/standard/polygon.c: Connectionpoints now properly
16511 managed in a GList. As far as I can tell, this will not dieturb
16512 the order (but I have the nagging doubt...)
16514 * lib/polyshape.c: No longer knows about connectionpoints.
16516 2000-04-11 James Henstridge <james@daa.com.au>
16518 * app/Makefile.am: fix makefile for bonobo build.
16520 * configure.in: fix checks for bonobo.
16522 * app/menus.c: added entries for the plugin manager.
16524 * app/Makefile.am (dia_core_files): added plugin manager to files
16527 * app/plugin-manager.[ch]: the plugin manager dialog.
16529 * app/display.c (display_update_menu_state): set the antialiased
16530 menu entry to the correct value.
16532 2000-04-11 Cyrille Chepelov <chepelov@calixo.net>
16534 * objects/custom/custom_object.c: not all renderers like ellipses with
16535 negative dimensions. This could cause ellipses to disappear when using
16536 the flip_h and flip_v functions.
16538 * samples/grafcet.dia: fixed speling and correctness.
16540 2000-04-11 James Henstridge <james@daa.com.au>
16542 * lib/plug-ins.[ch]: added more accessors for use by a plugins dialog.
16543 exposed the dia_plugin_load and dia_plugin_unload functions.
16545 * lib/plug-ins.c (plugin_load): change plugin_load to work on an
16546 already created PluginInfo structure.
16548 * app/app_procs.c (app_exit): call dia_pluginrc_write() to write
16551 * lib/sheet.c: fix up call to dia_config_filename.
16553 * lib/plug-ins.[ch]: started writing code for handling a pluginrc
16554 file. This would save information such as which plugins not to
16555 load during startup.
16557 2000-04-09 James Henstridge <james@daa.com.au>
16559 * lib/sheet.c: use dia_config_filename to resolve file in ~/.dia.
16561 2000-04-10 Alexander Larsson <alla@lysator.liu.se>
16563 * lib/plug-ins.c (dia_register_plugins):
16564 Don't free the value returned from g_getenv.
16566 2000-04-09 Anders Carlsson <andersca@gnu.org>
16568 * app/preferences.h: Add reverse_rubberbanding_intersects preference variable.
16570 * app/preferences.c (prefs_data): Add reverse_rubberbanding_intersects preference data.
16572 * app/modify_tool.c (modify_button_release): If rubberbanding is done from
16573 right to left, select objects that intersect the rubberbanding rectangle
16574 instead of selecting objects that are in the rectangle.
16576 * lib/diagramdata.c (layer_find_objects_intersecting_rectangle): Add function.
16578 * lib/diagramdata.h: Likewise.
16581 2000-04-09 James Henstridge <james@daa.com.au>
16583 * lib/plug-ins.[ch]: add copyright messages to files.
16585 * plug-ins/cgm/cgm.c (dia_plugin_init): convert plugin over to new
16588 * objects/sybase/sybase.c (dia_plugin_init):
16589 * objects/network/network.c (dia_plugin_init):
16590 * objects/flowchart/flowchart.c (dia_plugin_init):
16591 * objects/custom/custom.c (dia_plugin_init):
16592 * objects/chronogram/chronogram.c (dia_plugin_init):
16593 * objects/UML/uml.c (dia_plugin_init):
16594 * objects/SADT/sadt.c (dia_plugin_init):
16595 * objects/GRAFCET/grafcet.c (dia_plugin_init):
16596 * objects/FS/fs.c (dia_plugin_init):
16597 * objects/ER/er.c (dia_plugin_init): updated plugin load code for
16600 * objects/standard/standard.c (dia_plugin_init): change over to new
16603 * lib/plug-ins.h (DIA_PLUGIN_CHECK_INIT): added a macro to define
16604 the version checker for plugins.
16606 * app/app_procs.c: remove plugin loading code from here, and use
16607 code from plug-ins.[ch]. Also move registration of internal
16608 objects/filters to a `builtin' plugin.
16610 * lib/Makefile.am (libdia_a_SOURCES): added plug-ins.[ch] to library.
16612 * configure.in: use AC_PROG_LIBTOOL rather than AM_PROG_LIBTOOL.
16614 * app/Makefile.am (EXTRA_DIST): you can't include a conditionally
16615 defined variable in EXTRA_DIST.
16617 * app/preferences.h: removed dia_config_filename from header.
16619 * app/preferences.c: removed dia_config_filename function.
16621 * lib/dia_dirs.c (dia_config_filename): moved function over to this
16622 file. Also changed implementation slightly so that it should work
16623 on the win32 port correctly (and use NT home directories).
16625 * lib/dia_dirs.h (dia_config_filename): move dia_config_filename where
16626 it should have been.
16628 * lib/plug-ins.[ch]: new plugin loading code.
16630 2000-04-08 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
16632 * objects/standard/polygon.c: Fixed startup crash bug (do'h!).
16634 * lib/polyshape.c: Fix closest segment finding, exposes deeper
16635 bugs in adding corners to 'wraparound' segment.
16637 * objects/standard/polygon.c: Added connection points (fixed so
16638 far), set menu sensitivity.
16640 * lib/polyshape.c: Changed to box-style handles, fixed for start
16641 and ends not being special, added initial connections,
16643 * lib/dummy_dep.h: Added polyshape (gotcha!)
16645 * objects/standard/pixmaps/ellipse.xpm:
16646 * objects/standard/pixmaps/box.xpm:
16647 Filled element pixmaps with white.
16650 * objects/standard/polygon.c:
16652 * objects/standard/standard.c:
16653 * objects/standard/Makefile.am (libstandard_objects_la_SOURCES):
16654 * lib/Makefile.am (libdia_a_SOURCES):
16656 * app/interface.c (tool_data):
16657 Added Standard/Polygon object and PolyShape lib object. Still
16658 needs inside grab and connection points.
16660 * app/commands.c (help_about_callback): Now uses gdk-pixbuf if
16663 * configure.in: Made imlib a fallback if gdk-pixbuf is absent or
16666 * app/app_procs.c (app_init): Moved gtk_init outside #ifdef, moved
16667 if (argv) outside ifdefs.
16669 2000-04-04 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
16671 * objects/standard/image.c (image_set_props):
16672 Aspect ratio is back in town.
16674 * app/Makefile.am (dia_LDADD):
16677 Check for gdk_pixbuf (by default disabled, for now)
16679 * app/render_eps.c (draw_image):
16680 * app/render_libart.c (draw_image):
16681 * app/render_gnomeprint.c (draw_image):
16682 Support for alpha mask in rendering. Color postscript, too.
16686 Support for gdk_pixbuf and proper masking for exports.
16688 2000-04-01 Kjartan Maraas <kmaraas@online.no>
16690 * sheets/*.sheets: Updated Norwegian translations.
16692 2000-03-30 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
16694 * lib/text.c (text_insert_char):
16695 * lib/render_store.c (add_data):
16696 Made realloc double the alloced space rather than add
16697 a fixed amount, to reduce memory stress.
16699 * app/select.c: Added new select method 'Transitive'
16700 that select every reachable (by connections) object.
16702 2000-03-27 Kjartan Maraas <kmaraas@online.no>
16704 * dia.desktop: Added Norwegian translation.
16706 2000-03-26 Alexander Larsson <alla@lysator.liu.se>
16708 * app/render_eps.c:
16709 * app/render_svg.c:
16710 Don't dereference NULL pointer if the renderer
16711 couldn't open the file. Fix by Lars Clausen.
16712 Bug reported by Martin Chisholm <b1mt@unb.ca>
16714 2000-03-26 Alexander Larsson <alla@lysator.liu.se>
16718 Updated pt translation from Pedro Morais <pmmm@rnl.ist.utl.pt>
16720 2000-03-25 Alexander Larsson <alla@lysator.liu.se>
16722 * app/dia.gnorba (location_info):
16723 Changed to correct executable name.
16725 2000-03-25 Alexander Larsson <alla@lysator.liu.se>
16728 Don't do any argument parsing or initialization
16731 * app/dia_embedd.c:
16732 Call init_server_factroy before app_init.
16733 Call app_init with argv==NULL
16734 Now we don't get any critical error on startup.
16737 Add Electric and Pneumatic to makefile list.
16739 2000-03-24 Cyrille Chepelov <chepelov@calixo.net>
16741 * shapes/Electric/*:
16742 * sheets/Electric.sheet:
16743 Add some Electric circuit shapes.
16745 * shapes/Pneumatic/*:
16746 * sheets/Pneumatic.sheet:
16747 Add some Pneumatic & Hydraulic circuit shapes
16748 (both sheets are still incomplete, though feature enough
16749 things for basic circuits).
16751 * shapes/Contact/l_*.(xpm|shape):
16752 * sheets/Contact.sheet
16753 * shapes/Contact/Makefile.am
16754 made the older electric circuit shapes in Contact obsolete (disabled
16755 them in the sheet, made that sheet Ladder only). Fixed the makefile
16756 for forgotten items.
16758 2000-03-24 Alexander Larsson <alla@lysator.liu.se>
16761 Add support for Dia bonobo component.
16762 Currently a bit raw, so it's commented out.
16764 * app/dia_embedd.c:
16766 New files for embedding dia.
16767 The menu disabling hack is a bit gross. Esp. for GNOME.
16770 Add new function app_is_embedded();
16773 Don't destroy diagram when last display is destroyed if embedded.
16776 Change initialization of display so it works with embedding.
16779 Clarify comment about display destruction.
16781 * app/interface.[ch]:
16782 Added top_level_window argument to create_display_shell.
16783 Don't open a top-level window if embedding.
16784 Don't quit app if trying to close toolbox window when embedding.
16785 Add toolbox_show() and toolbox_hide().
16788 Added app_is_embedded() function (just returns false).
16789 Added toolbox_show() call in main().
16792 Added code for getting toolbox menus. This is used to
16793 hide some menu items when running embedded.
16796 Include sheet.h to remove warning.
16798 * objects/UML/association.c:
16799 Clarify association direction text.
16801 2000-03-16 Fredrik Hallenberg <hallon@lysator.liu.se>
16804 Fixed man page so whatis parsing works.
16806 2000-03-12 Alexander Larsson <alla@lysator.liu.se>
16808 * app/render_libart.c (new_libart_renderer):
16809 Fix from segg <segg@infonet.ca> to compile without libart.
16810 I forgot to change the stub for new_libart_renderer when doing
16811 the interactive renderer stuff for libart.
16813 2000-03-11 Alastair McKinstry <mckinstry@computer.org>
16815 * dia.desktop: Added Irish translation.
16817 * configure.in (ALL_LINGUAS): Added Irish (ga) translation.
16819 2000-03-07 Asbjorn Pettersen <asbjornP@dualog.no>
16821 * app/load_save.c (fchmod): OS/2 defines only.
16823 2000-03-07 James Henstridge <james@daa.com.au>
16825 * lib/properties.c (prop_get_widget): set the position in the option
16828 2000-03-06 Alexander Larsson <alla@lysator.liu.se>
16831 * app/export_png.c:
16832 * app/render_libart.[ch]:
16833 Don't export png:s with an interactive libart renderer.
16835 2000-03-03 Asbjorn Pettersen <asbjornP@dualog.no>
16837 * lib/arrows.c (finite): define finite(d) isfinite(d) for OS/2
16839 2000-03-02 James Henstridge <james@daa.com.au>
16841 * dia.spec (%build): unset LINGUAS before running configure. This
16842 ensures that all translations get included in the RPM.
16844 * lib/properties.c (object_create_props_dialog): put in a check for
16845 a NULL return from the describe_props() object method.
16846 (prop_desc_lists_union): make sure that the returned array is not
16848 (prop_desc_lists_intersection): same here.
16850 2000-02-29 Alexander Larsson <alla@lysator.liu.se>
16852 * objects/ER/Makefile.am:
16853 * objects/FS/Makefile.am:
16854 * objects/UML/Makefile.am:
16855 Don't link object libs with gtk.
16857 2000-02-29 James Henstridge <james@daa.com.au>
16859 * app/preferences.c (prefs_save): check to see if the file could
16860 be opened before writing the prefs.
16862 * app/disp_callbacks.c (popup_object_menu): pass the button event
16863 to gtk_menu_popup. This allows you to click and release to open
16865 (ddisplay_canvas_events): same here.
16866 (create_object_menu): set the object type menu item in the object
16867 menu to be insensitive.
16869 * app/render_svg.c (draw_string): call xmlEncodeEntitiesReentrant,
16870 as we are now requiring a new version of libxml.
16872 * dia.spec: updated version number. Added requirement for
16875 * configure.in: incremented version number to 0.84.
16876 Added check for libxml >= 1.8.5. This will prevent some of the
16877 problems people have had with broken libxml versions.
16879 * NEWS: added news items.
16881 * app/interface.c (create_color_area): removed call to realize parent
16882 widget. Segg <segg@infonet.ca> reported that it caused a warning,
16883 but I haven't seen it on my copy of dia.
16885 2000-02-28 James Henstridge <james@daa.com.au>
16887 * app/export_png.c: added copyright notice, and made the band height
16890 2000-02-27 Alexander Larsson <alla@lysator.liu.se>
16892 * lib/font.c (suck_font):
16893 Fixed off-by one bug in font pixmap height.
16894 Fixes the problem with garbage at the bottom of some text in aa mode
16895 and in png exported files.
16897 2000-02-27 James Henstridge <james@daa.com.au>
16899 * app/app_procs.c: add the png export filter if it was compiled in.
16901 * app/export_png.c (export_png): new PNG export filter. This requires
16902 the libart renderer to work as it needs a renderer that renders to a
16905 * configure.in: add check for libpng.
16907 * lib/message.c (message_internal): use a GNOME dialog here as well.
16909 * app/display.c (ddisplay_close): use a GNOME dialog here.
16911 * app/render_eps.c (create_eps_renderer): use diagram scaling factor
16912 when exporting to EPS. This is because some people said the EPS
16913 output was too large
16915 2000-02-26 James Henstridge <james@daa.com.au>
16917 * app/defaults.c (create_dialog): use a GNOME dialog for the defaults
16920 * app/app_procs.c (app_exit): use a GNOME dialog here.
16922 * app/preferences.c (prefs_create_dialog): if GNOME support is
16923 enabled, show a GNOME dialog.
16925 * app/grid.c (grid_draw): use preferences when drawing page break
16928 * app/preferences.c: add page break preferences to dialog.
16930 * app/preferences.h: added page break preferences.
16932 2000-02-25 James Henstridge <james@daa.com.au>
16934 * sheets/UML.sheet: added new objects.
16936 * objects/UML/uml.c: link in the two new objects.
16938 * objects/UML/node.c:
16939 * objects/UML/branch.c: new UML objects from Stfan Seefeld
16940 <seefelds@magellan.umontreal.ca>.
16942 2000-02-24 James Henstridge <james@daa.com.au>
16944 * objects/custom/custom_object.c: converted to use the properties
16945 interface. In the future, it would be nice to add support for
16946 defining custom properties for custom objects, but that can wait.
16948 2000-02-22 James Henstridge <james@daa.com.au>
16950 * sheets/Circuit.sheet: added new circuit shapes to sheet.
16952 * plug-ins/cgm/cgm.c: cgm plugin updates from Henk Jan Priester
16953 <hj@justcroft.com>. Fixes number encoding, colour encoding, fonts
16954 and adds a few new features.
16956 2000-02-21 Daniel Egger <egger@suse.de>
16958 * sheets/*.sheets: Added German translations and made some
16959 corrections to the others.
16961 2000-02-21 James Henstridge <james@daa.com.au>
16963 * shapes/Circuit/Makefile.am (SHAPES): added new shapes to list.
16965 * shapes/Circuit/...: added new shapes from Erik Janssens.
16967 2000-02-20 James Henstridge <james@daa.com.au>
16969 * app/interface.c (create_color_area): realize the parent window
16972 * objects/standard/image.c: properties patch for standard image
16973 object, from Lars Clausen.
16975 * lib/properties.c: support for PROP_TYPE_FILE from Lars Clausen.
16977 * lib/properties.h (PropType): added file property type.
16979 * shapes/Circuit/speaker_de.xpm: changed size of pixmap to match
16982 * app/interface.c: use wrap box for toolbox.
16984 * app/Makefile.am: added new files.
16986 * app/gtk*wrapbox.[ch]: added wrap box widget.
16988 2000-02-19 James Henstridge <james@daa.com.au>
16990 * sheets/network.sheet: added extra shapes to networks sheet.
16992 * configure.in (AC_OUTPUT): added shapes/network/Makefile
16994 * shapes/network/*: added shapes that were posted to the list a while
16997 * shapes/Makefile.am (SUBDIRS): added network subdirectory
16999 * app/menus.c (toolbox_menu_items): don't right justify help menu for
17000 gtk+ version of menus.
17002 * app/properties.c (create_dialog): use a GnomeDialog if we happen
17005 2000-02-18 James Henstridge <james@daa.com.au>
17007 * objects/flowchart/box.c: set extra data for corner radius and text
17008 padding properties.
17010 * objects/standard/box.c: set extra data for corner radius property.
17012 * lib/properties.h: set extra data in some standard properties.
17014 * lib/properties.c (prop_get_widget): look at the extra data for
17015 int, real and enum property types. They now use GtkSpinButton and
17016 GtkOptionMenu respectively.
17018 * lib/properties.h: extra data members for creating property setting
17021 2000-02-17 James Henstridge <james@daa.com.au>
17023 * objects/flowchart/box.c: reverted load/save functions back to
17024 previous implementations. Made box use standard property names.
17026 * plug-ins/cgm/cgm.c (set_linestyle): was missing a */
17028 * app/grid.c: add more digits to the grid edit dialog. This patch
17029 was also from Lars Clausen.
17031 * objects/standard/zigzagline.c:
17032 * objects/standard/textobj.c:
17033 * objects/standard/polyline.c:
17034 * objects/standard/line.c:
17035 * objects/standard/ellipse.c:
17036 * objects/standard/box.c:
17037 * objects/standard/bezier.c:
17038 * objects/standard/arc.c: patches to add properties code to standard
17039 objects. Based on patches from Lars Clausen. I have also removed
17040 some dead code from the files.
17042 * lib/properties.h (PROP_STD_*): define a number of standard
17043 properties. Where appropriate, objects should include these
17044 properties in their PropDescription list. This way, the intersection
17045 of properties of two different shapes will be greater.
17047 2000-02-14 James Henstridge <james@daa.com.au>
17049 * objects/flowchart/box.c (box_load, box_save): use property save
17050 routines. Make sure that any props not handled by object_load_props
17051 are loaded before calling object_load_props, or we get errors because
17052 update_data is called.
17054 * lib/properties.c (object_get_props_from_offsets): fixed an indexing
17055 error that could cause properties to be loaded incorrectly.
17056 (object_set_props_from_offsets): similar here.
17058 * lib/properties.[ch] (prop_{load,save}): functions for loading
17059 or saving a property in Dia's XML file format.
17060 (object_{load,save}_props): load or save some properties of an
17061 object. These functions should help simplify the load/save methods
17062 of objects that implement the properties interface.
17064 2000-02-13 James Henstridge <james@daa.com.au>
17066 * objects/flowchart/box.c: use offset code to simplify property
17069 * lib/element.h (ELEMENT_COMMON_PROPERTIES): standard element
17071 (ELEMENT_COMMON_PROPERTIES_OFFSETS): offsets.
17073 * lib/object.h (OBJECT_COMMON_PROPERTIES): list of standard object
17075 (OBJECT_COMMON_PROPERTIES_OFFSETS): the offsets of the properties.
17077 * lib/properties.[ch] (object_{get,set}_props_from_offsets): new
17080 2000-02-12 Alexander Larsson <alla@lysator.liu.se>
17083 Add the custom object to DIA_LIB_PATH in run_dia.sh
17085 2000-02-10 Cyrille Chepelov <chepelov@calixo.net>
17087 * sheets/Circuit.sheet:
17088 * shapes/l_sout* (NEW):
17089 * shapes/l_outj.* (NEW): added new outputs : jump, and the power-saved
17090 variants of simple, inverted, set and reset outputs.
17091 Still to do: all Schneider/Telemecanique TSX *7 function blocks ;
17092 probably a split of Contact and Ladder sheets. And then a major
17093 revamping of the Contact sheet.
17095 2000-02-10 James Henstridge <james@daa.com.au>
17097 * app/Makefile.am (dia_LDADD): don't link with libcustom_objects.
17099 * app/app_procs.c (register_all_objects): don't explicitely
17100 register the custom objects library -- let it be loaded by the
17101 normal plugin loading methods.
17103 * lib/Makefile.am (libdia_a_SOURCES): don't include custom.h here.
17105 * objects/custom/Makefile.am: build libcustom_objects as a shared
17108 * objects/custom/shape_info.[ch]: don't read the description field
17109 of custom shapes. It makes more sense to have these in the sheet
17110 file to localise the parts of dia that translators have to deal
17113 * objects/custom/custom_object.c (custom_object_new): do not
17114 create the sheet object for the new custom shape -- this is
17115 handled by the custom sheet code.
17117 * objects/custom/custom.c: change over to being a normal plug-in
17118 rather than being linked with the main dia executable.
17120 2000-02-09 James Henstridge <james@daa.com.au>
17122 * sheets/Circuit.sheet:
17123 * sheets/Flowchart.sheet:
17124 * sheets/Contact.sheet: fixed up sheets.
17126 * objects/custom/custom_object.c (custom_object_new): set the
17127 extra ObjectType fields.
17129 * lib/sheet.c: use extra ObjectType fields when creating sheet
17130 objects. Give a warning if <shape> tags are found in a sheet
17131 file. Now the custom sheet code does not know about custom
17132 shapes -- they look like any other object type.
17134 * lib/object.h (ObjectType): added extra members
17136 2000-02-08 Alexander Larsson <alla@lysator.liu.se>
17138 * app/linewidth_area.c:
17139 Added code to set arbitrary line width.
17140 Patch by Lars Clausen <lrclause@cs.uiuc.edu>
17142 2000-02-08 Alexander Larsson <alla@lysator.liu.se>
17144 * app/linewidth_area.c:
17146 Add support for font-sucking.
17147 Implementation borrowed from gnome-canvas.
17149 * app/render_libart.[ch]:
17150 Implement text rendering.
17152 2000-02-07 Alexander Larsson <alla@lysator.liu.se>
17154 * app/properties.c (create_dialog):
17155 ref and sink no_properties_dialog.
17157 2000-02-07 James Henstridge <james@daa.com.au>
17159 * app/group.c (group_describe_props): new function. Return the
17160 intersection of the properties of the contained objects that
17161 implement the describe_props interface.
17162 (group_get_props): implement by iterating through contained objects
17163 and calling their get_props method until all properties have been
17164 set. Maybe this should go through all objects all the time??
17165 (group_set_props): implement by calling set_props method on all
17167 (group_ops): use standard props dialog creation routines.
17169 * lib/properties.c (prop_desc_lists_intersection): fix implementation
17170 of intersection -- I was using i++ instead of i-- in a for loop :(
17172 * objects/custom/custom.c (custom_register_objects): fix usage
17173 of dia_get_data_directory again.
17175 * lib/sheet.c: fix up use of dia_get_data_directory, so that we
17176 actually read the sheets.
17178 2000-02-06 Alexander Larsson <alla@lysator.liu.se>
17180 Win32 port by Hans Breuer <Hans@Breuer.org>
17183 Remove DATADIR and LIBDIR defines.
17186 Add dia_dirs.c and dia_dirs.h
17187 Added DATADIR and LIBDIR defines.
17189 * lib/dia_dirs.[ch]:
17190 New files for handling special directories.
17195 * objects/custom/custom.c:
17196 Fix warnings. Use directory functions.
17199 Add prototype for diagram_redraw_all.
17201 * app/diaunitspinner.c:
17204 * app/preferences.c:
17208 Win32 doesn't have mkstemp and fchmod.
17210 * app/paginate_psprint.c:
17211 Win32 calls popen _popen and pclose _pclose.
17214 Win32 calls finite _finite.
17217 Win32 needs to dllexport the color vars.
17219 * objects/GRAFCET/step.c:
17220 * objects/chronogram/chronoref.c:
17221 snprintf -> g_snprintf
17223 2000-02-05 James Henstridge <james@daa.com.au>
17225 * lib/properties.c: more fixes so that it doesn't crash when using
17226 properties. The undo/redo stuff also works!!
17228 * objects/flowchart/box.c (box_{describe, get, set}_props): test
17229 object where I have implemented the new properties interface
17230 complete with automatic properties dialog generation.
17232 * lib/properties.c (object_apply_props): fixed stupid error when
17233 creating the old_props array. Also, it no longer frees the props
17234 array -- you will have to do that yourself.
17236 2000-02-04 James Henstridge <james@daa.com.au>
17238 * app/properties.c (properties_apply): pass object_part to
17241 * lib/object.h (ApplyPropertiesFunc): added widget argument.
17243 * lib/lazyprops.h (PROPDLG_CREATE): ref and sink properties dialogs
17244 created this way as well.
17246 * objects/*/*.c: ref and sink the properties dialog window for each
17247 widget. It can't rely on ref count being incremented by
17248 properties_show anymore.
17250 * app/properties.c (properties_show): don't ref the widget before
17251 removing it, or its ref count will increase each time you open the
17252 properties dialog. Don't unparent the widget, as container_remove
17255 * lib/object.h: fixed up prototypes for new object methods.
17257 * lib/properties.[ch]: added functions for automatically creating
17258 a properties dialog from the output of describe_props, get_props and
17260 (object_apply_props): apply properties and return an ObjectChange
17261 structure that can be used for undo.
17263 2000-02-03 Cyrille Chepelov <chepelov@calixo.net>
17265 * objects/GRAFCET/transition.c: minor leak plugged.
17267 * sheets/GRAFCET.sheet:
17268 * objects/GRAFCET/pixmaps/condition.xpm: (NEW)
17269 * objects/GRAFCET/condition.c: (NEW) added a new object type, action
17271 * objects/GRAFCET/Makefile.am: fixed incorrect dependencies, added
17272 new ones (for condition.c).
17273 * objects/GRAFCET/action.c: added connection points for the conditions.
17274 * samples/grafcet.dia: updated the sample to improve conformance to
17275 IEC 848 and take advantage of dia's new features.
17277 * lib/geometry.h: (point_get_normed) fixed a typo.
17279 2000-02-02 James Henstridge <james@daa.com.au>
17281 * lib/object.h: added object functions describe_props, get_props and
17282 set_props. Do type definitions so that object.h doesn't need to
17283 include properties.h, since properties.h includes object.h.
17285 * lib/properties.[ch]: more hacking.
17287 * po/de.po: updated po file.
17289 2000-01-30 James Henstridge <james@daa.com.au>
17291 * configure.in: don't add flags to CFLAGS unconditionally. Instead,
17292 check to see if the C compiler accepts the flag beforehand.
17294 * lib/properties.[ch]: start of properties code.
17296 * shapes/Contact/Makefile.am (SHAPES): fix up makefile.
17298 2000-01-30 Cyrille Chepelov <chepelov@calixo.net>
17300 * sheets/GRAFCET.sheet:
17301 * sheets/GRAFCET/etapemc.xpm: (NEW)
17302 * sheets/GRAFCET/etapesp.xpm: (NEW)
17303 * objects/GRAFCET/step.c: Added the macro and
17304 sub-program call step types.
17306 * objects/GRAFCET/receptivity.[ch]: renamed to
17307 objects/GRAFCET/boolequation.[ch].
17308 * objects/GRAFCET/transition.c: changed (Receptivity *) to
17311 * lib/connpoint_line.[ch]:
17312 * objects/chronogram/chronoline.c:
17313 * objects/chronogram/chronoref.c:
17314 * objects/GRAFCET/vergent.c:
17315 * objects/standard/line.c:
17316 * objects/SADT/box.c: Minor CPL interface changes, factored out the
17317 point count adjustment code into the CPL object.
17319 2000-01-29 Alexander Larsson <alla@lysator.liu.se>
17321 * app/render_libart.c:
17322 Added support for images and bezier curves.
17323 Only text/fonts missing now.
17325 * app/render_gdk.c:
17326 Removed old erronous comment.
17328 2000-01-29 Cyrille Chepelov <chepelov@calixo.net>
17330 * objects/chronogram/chronoline_event.c: removed references to
17331 lround(). Please don't insist, I'm already red of shame.
17333 2000-01-29 Alexander Larsson <alla@lysator.liu.se>
17335 * app/render_libart.[ch]:
17337 Non-finished libart renderer.
17340 Added HAVE_LIBART flag
17346 Call gdk_rbg_init().
17348 * app/connectionpoint_ops.c:
17349 * app/disp_callbacks.c:
17351 * app/handle_ops.c:
17353 * app/modify_tool.c:
17354 Change ddisp->renderer type from RendererGdk * to Renderer *
17355 Draw zoom and select rects in ddisp->canvas->window instead
17356 of ddisp->renderer->renderer->pixmap.
17358 * app/display.[ch]:
17359 Add aa_renderer to DDisplay, and support for it.
17360 New function ddisplay_set_renderer() for changing renderer.
17361 Add ddisplay_transform_coords_double() function, used by aa renderer.
17362 Change ddisp->renderer type from RendererGdk * to Renderer *
17365 Add antialias to menu.
17367 * app/commands.[ch]:
17368 add view_aa_callback function
17369 Change ddisp->renderer type from RendererGdk * to Renderer *
17371 * lib/geometry.[ch]:
17372 Added IntRectangle and int_rectangle_union.
17374 2000-01-28 James Henstridge <james@daa.com.au>
17376 * app/commands.h: removed prototypes.
17378 * app/commands.c: removed the functions that have been moved to
17381 * app/filedlg.h: added new prototypes.
17383 * app/filedlg.c (file_open_callback): move open dialog to this
17384 file. This implementation should remember the current directory
17385 between file loads.
17386 (file_save_as_callback): moved this dialog as well.
17387 (file_save_callback): moved this function here.
17389 * app/paginate_psprint.c (paginate_psprint): if not in fit to mode,
17390 align page boundaries to the origin.
17392 * app/diagram.c (diagram_update_extents): redraw the diagram if the
17393 scaling factor changes while updating the extents. This is so the
17394 page breaks get redrawn correctly.
17396 * app/pagesetup.c (pagesetup_apply): added diagram_flush call when
17399 * app/grid.c (grid_draw): draw page breaks as well as grid lines.
17400 For normal mode, use (0,0) as the origin. For `fit to' mode, use
17401 the corner of the bounding box.
17403 * app/pagesetup.c (create_page_setup_dlg): load new paper attributes
17404 into page setup dialog.
17405 (pagesetup_apply): apply new `fit to' attributes to the diagram.
17407 * app/load_save.c (diagram_load): load new paper `fit to' attributes.
17408 (diagram_data_save): save `fit to' data.
17410 * lib/diagramdata.c (new_diagram_data): initialise `fit to' members.
17411 (data_update_extents): when in `fit to' mode, update scale factor
17412 when we update the extents.
17414 * lib/diagramdata.h (PaperInfo): added `fit to' members to PaperInfo
17417 * .../.cvsignore: added some cvsignore files to quieten cvs.
17419 * app/pagesetup.c (pagesetup_changed): added code to change the
17420 scaling/fit to values as you change the options in the page setup
17421 dialog. I haven't added code so that the fit to options are saved
17424 * app/diapagelayout.[ch]: changed the scaling portion of the widget
17425 to make it easier to set a `fit to' style scaling factor.
17427 2000-01-27 Cyrille Chepelov <chepelov@calixo.net>
17428 * lib/neworth_conn.[ch]: (NEW) Temporary (hopefully) fork of orth_conn,
17429 but connpoint_line-based, so that there's a connection point at the
17430 middle of each segment. Currently only the SADT arrow uses this.
17432 * objects/SADT/* (NEW): SADT (both idf0 and idf1) support.
17434 2000-01-26 Cyrille Chepelov <chepelov@calixo.net>
17435 * lib/lazyprops.[ch]:(NEW) Added a bunch of macros for loading,
17436 saving and editing of properties (and default properties).
17437 See the new objects (GRAFCET, SADT, chonograms) for examples.
17438 For already too hairy stuff, see objects/chronogram/chronoline.c.
17440 * lib/connpoint_line.[ch] (NEW): This subobject manages a line of
17441 evenly spaced connection points, which the user can add or remove at
17442 will. An object can own several connection point lines. See the SADT
17443 Box, or the GRAFCET vergents for examples.
17445 * lib/dummy_dep.h: added dependencies to new files. Told gcc to keep
17446 quiet about unused stuff.
17448 * objects/GRAFCET (NEW):
17449 * samples/grafcet.dia (NEW):
17450 Added support for GRAFCET charts.
17452 * objects/chronogram (NEW):
17453 * samples/chronograms.dia (NEW):
17454 Added support for chronograms (feature requested by Ronald L. Chichest;
17455 I found I'd use it often, too).
17457 * objects/standard/line.c: Replace the middle connectionpoint by
17458 a whole connection point line, which defaults to one point (hint,
17459 hint). New Line object menu to take advantage of this.
17460 "Bothwards" compatibility is preserved (although you may loose
17461 connections if you load a newer file in a older dia).
17463 * app/lineprops_area.c:
17465 * lib/widgets.c: Added hollow and filled ellipse arrow head type.
17466 (feature requested by Benjamin Kahn).
17467 Merged in Steffen Macke's slashed arrow head type.
17469 * app/Makefile.am (app/run_dia.sh actually):
17470 Added $DEBUGGER in front of dia's invocation, so that
17471 you can call "DEBUGGER=ddd app/run_dia.sh" (maybe naive, but useful).
17472 Added $(EFENCE) to app/dia's LDFLAGS, so that you can do
17473 "EFENCE=-lefence" to link with Electric Fence.
17475 * configure.in: Made gcc do more aggressive optimisations on i386, and
17478 2000-01-24 James Henstridge <james@daa.com.au>
17480 * lib/geometry.[ch]: added inline versions of functions. Used
17481 glib's G_INLINE_FUNC stuff, so it should still work on systems
17482 without inline funcs.
17484 * plug-ins/cgm/cgm.c (draw_ellipse, fill_ellipse): fixed up so that
17485 it outputs the correct element id for the ellipse objects.
17487 2000-01-24 Cyrille Chepelov <chepelov@calixo.net>
17489 * lib/object.[ch]: added object_add_connectionpoint_at, similar to
17490 object_add_handle_at. Message typo fixed.
17492 * lib/sheet.c (load_register_sheet):
17493 potential bug fixed (warning hunt).
17495 * objects/custom/custom.c (custom_object_load): disabled an assertion
17496 which made dia abort upon failure to load a shape file. Fixed a
17499 * objects/custom/shape_info.c (load_shape_info): Made the custom
17500 shape load code ignore XML comments between <?xml ...?> and the
17501 root object (mostly useful to put the emacs magic comments).
17503 * app/load_save.c: Made dia do backup copies of files when saving,
17504 and complain in case of failure.
17506 2000-01-24 Cyrille Chepelov <chepelov@calixo.net>
17508 * AUTHORS: fixed my address (ISP thought it was a great idea to change
17513 * shapes/Contact/*:
17514 * sheets/Contact.sheet:
17515 * sheets/Makefile.am:
17516 Added support for Contact and LADDER charts.
17518 * dia.desktop: Added a French translation.
17520 2000-01-23 James Henstridge <james@daa.com.au>
17522 * app/commands.c (help_about_callback): don't die if can't load
17525 * app/render_gdk.c (bezier_add_lines): sanity check to try to weed
17526 out NaN's when performing bezier curve subdivision.
17528 * objects/custom/custom_object.c: initialise memory of Custom structs
17531 * app/render_svg.c (draw_image): added image support to the XML
17532 output filter. The image is just referenced, rather than being
17533 included inline, so if you copy the SVG file somewhere else, you
17534 may need to move the images or fix up the links.
17536 * plug-ins/cgm/cgm.c (draw_string): output a text colour element,
17537 so the text is not just displayed in black all the time.
17539 2000-01-15 Fredrik Hallenberg <hallon@lysator.liu.se>
17541 * configure.in: fixed libpopt test so we wont try to build with
17544 1999-12-18 Yuri Syrota <rasta@renome.rovno.ua>
17546 * configure.in: Added "uk" to ALL_LINGUAS.
17548 1999-12-24 James Henstridge <james@daa.com.au>
17550 * po/ru.po: updated russian translation from Valek Filippov.
17552 * app/render_svg.c (new_svg_renderer): make output use 19991203
17553 version of SVG DTD. Use viewBox to set the extents of the view.
17555 * INSTALL (FONTS): updated locations of gnome-xml and imlib. List
17556 ftp.gnome.org as the download.
17558 * TODO (TODO): weeded out completed todo items and added a few extra.
17560 * Makefile.am (EXTRA_DIST): added documentation to EXTRA_DIST.
17562 * doc/sheet.dtd: first stab at a DTD for the sheet files. It would
17563 be good to get rid of the object/shape distinction and separate
17564 the custom shape code out from the main application.
17566 * objects/custom/README, diagram.dtd: moved to new doc directory.
17567 Renamed the custom shapes README to custom-shapes. Also updated
17568 custom shape docs a bit and removed the section on sheet files, as
17569 that has changed a bit.
17571 * plug-ins/cgm/cgm.c (draw_image): give an error if the row length
17572 of the image data is larger than the maximum cell array. I should
17573 add code to break scan lines down further in this case, but for now
17574 an error message is better than an infinite loop.
17576 * app/filedlg.c (file_export_ok_callback): show a dialog if we
17577 couldn't determine the export filter to use.
17579 * app/commands.c (help_about_callback): fixed up about box logo
17580 expose bug. Now just use a GtkPixmap widget rather than a
17581 GtkDrawingArea and calling gdk_imlib_paste_image.
17583 * app/Makefile.am (EXTRA_DIST): added print stuff to extra dist,
17584 because automake does not always get things right.
17586 * configure.in: updated version number to 0.83.
17588 * app/preferences.c (prefs_save):
17589 * app/render_svg.c (new_svg_renderer): "wt" is not a valid flag string
17590 for fopen. Text is the default file mode anyway.
17592 * app/commands.c (file_save_as_dialog_ok_callback, file_new_callback):
17593 * app/grid.c (grid_x_update, grid_y_update, grid_show_dialog):
17594 * app/load_save.c (write_objects, write_connections):
17595 * app/filedlg.c (file_export_ok_callback):
17596 * lib/dia_xml.c (data_add_int, data_add_enum, data_add_real):
17597 * lib/dia_xml.c (data_add_point, data_add_rectangle):
17598 * lib/font.c (init_x11_font, font_get_gdkfont): changed calls to
17599 snprintf to calls to g_snprintf.
17601 * plug-ins/cgm/cgm.c (export_cgm): write the original dia file name
17602 as the picture name.
17604 1999-12-23 James Henstridge <james@daa.com.au>
17606 * plug-ins/cgm/cgm.c (write_int32, write_int16): fixed up output of
17607 negative numbers. This fixes the upside down text problem I was
17609 (draw_image): implemented the image code. It will try to split the
17610 image data up into bands if it is too big to fit into a single
17611 cgm cell array element. It will have problems if you try to insert
17612 an image wider than about 10,000 pixels though.
17614 * Makefile.am: use gnomedatadir for the files that need to be
17615 installed in gnome's datadir. This is mainly to help people doing
17616 packages for weird setups.
17618 1999-12-22 James Henstridge <james@daa.com.au>
17620 * plug-ins/cgm/cgm.c: added support for text. Now only images and
17621 beziers are left to do. The text seems to be the wrong way up
17622 still. This is probably a problem with character orientation
17623 element, but I have used what the settings given in the standard.
17624 Other than this, the CGMs dia produces are readable (and displayable)
17625 by ralcgm and corel draw.
17626 (draw_string): subtract from the X coord rather than the Y coord for
17627 center and right aligned text.
17629 * plug-ins/cgm/cgm.c: a few fixups for the output. Use REALSIZE as
17630 the size of a real number, and changed name of write_double to
17631 write_real. Consider changing to fixed real encoding. Also, now
17632 all element headers are correct. Once the real number encoding is
17633 fixed, only text, beziers and images are left to do.
17635 1999-12-21 James Henstridge <james@daa.com.au>
17637 * Makefile.am (SUBDIRS): recurse into plug-ins.
17639 * configure.in: add plug-ins directory makefiles to list.
17641 * plug-ins/cgm/cgm.c: start of cgm export filter. Beziers and text
17642 not done yet. Also, the output files are not quite correct.
17644 * app/render_eps.c (print_reencode_font): don't reencode the Symbol
17645 font. It doesn't work if you do.
17647 1999-12-20 James Henstridge <james@daa.com.au>
17649 * app/app_procs.c (app_init): don't use diagram_export_to_eps to
17650 export the files. Instead, use filter_guess_export_filter to
17651 guess the correct format to save in and use the appropriate filter.
17652 It defaults to postscript for compatibility.
17654 * app/diagram.[ch] (diagram_export_to_eps): removed export to eps
17657 * app/commands.[ch]: removed export to eps functions.
17659 * app/menus.c: removed export to eps menu items.
17661 * app/app_procs.c: register new export filters.
17663 * app/load_save.[ch]: define dia native export filter.
17665 * app/render_eps.[ch]: define eps export filter.
17667 * lib/filter.h: added diafilename argument to the DiaExportFunc
17668 prototype. This is useful for putting the source of the diagram
17669 into the output file for instance.
17671 * app/app_procs.c (app_init): register the SVG export filter. Have
17672 to get EPS code converted to this API, and maybe also allow saving in
17673 DIA's native format from the export dialog. In fact, it is now
17674 possible to load an export filter from a shared library and it will
17675 integrate into the interface correctly.
17677 * app/menus.c: removed references to the SVG renderer.
17679 * app/commands.[ch]: removed svg stuff.
17681 * app/diagram.[ch]: removed diagram_export_to_svg function.
17683 * app/render_svg.[ch]: added a DiaExportFilter structure for this
17686 * app/filedlg.[ch]: code for the new export diagram dialog. Will
17687 probably move the open/save dialogs to this file as well.
17689 1999-12-19 James Henstridge <james@daa.com.au>
17691 * lib/filter.[ch]: start of interface for generalised handling of
17692 filters. I have only done code for export filters so far. I still
17693 need to do the gui for this, and convert the current SVG and EPS
17694 filters to the new API.
17696 * lib/bezier_conn.c (bezierconn_copy): fix up copy operation. We
17697 weren't setting the last handle correctly. It was actually assigning
17698 to the wrong position in the handles array, so the last handle was
17699 left as NULL, which caused the segfault.
17701 * objects/standard/image.c (image_copy): modified routine so that
17702 it just adds a reference to the DiaImage structure in the new image
17703 object. This seems to have cleared up the problems with copying
17706 * dia.spec: spec file additions from John Gotts.
17708 1999-12-12 James Henstridge <james@daa.com.au>
17710 * configure.in (GNOME_LIBS): updated version number to 0.82. 0.82
17711 has not been released yet though.
17713 * Makefile.am (EXTRA_DIST): distribute diagram.dtd.
17716 The following based on a patch from Lars Clausen:
17718 * objects/standard/bezier.c (bezierline_move_handle): when performing
17719 the initial drag of the bezierline, move the control points to keep
17722 * lib/bezier_conn.c (bezierconn_add_segment): when adding a segment,
17723 make the new control points a bit closer to the major point.
17725 * app/create_object.c (create_object_motion): use HANDLE_MOVE_CREATE
17726 as the reason for the move.
17727 (create_object_button_release): use HANDLE_MOVE_CREATE_FINAL as the
17730 * lib/handle.h: new handle move reasons.
17732 1999-12-09 James Henstridge <james@daa.com.au>
17734 * dia.spec: include the new files in RPMs.
17736 * Makefile.am: install these new files.
17738 * dia.keys.in: file describing actions and icon for dia diagrams for
17739 use in the gnome file manager.
17741 * dia.mime: a file defining the application/x-dia-diagram mime type.
17743 * dia-diagram.png: an icon for dia diagrams.
17745 1999-12-08 James Henstridge <james@daa.com.au>
17747 * plug-ins/python/pydia-diagram.c: added heaps of new methods.
17749 * plug-ins/python/pydia-display.[ch]: wrapper for display.
17751 * objects/standard/ellipse.c: applied Lars's patch to optionally not
17752 draw the background of the ellipse.
17754 * app/load_save.c (read_connections): do some sanity checking on the
17755 handle and connection point numbers before performing the object
17758 * lib/bezier_conn.c (bezierconn_load): give the correct number of
17759 handles when loading a BezierConn.
17761 1999-12-07 Kjartan Maraas <kmaraas@online.no>
17763 * sheets/*.sheet: Finished Norwegian translations.
17765 1999-12-07 James Henstridge <james@daa.com.au>
17767 * plug-ins/python/diamodule.c (PyDia_Load): load diagram function.
17768 (PyDia_GetObjectType): find object type function.
17770 * plug-ins/python/pydia-diagram.c (PyDiaDiagram_Save): added a save
17771 method for diagrams.
17773 * plug-ins/python/pydia-object.c: added methods for DiaObject and
17776 * AUTHORS: added Lars and Cyrille to the authors file.
17778 * objects/standard/bezier.c (bezierline_add_segment_callback): place
17779 new point correctly.
17781 * lib/bezier_conn.h (bezierconn_closest_segment): fixed prototype.
17783 * lib/bezier_conn.c: applied Lars's patch for placement of the new
17784 point when adding a segment to a BezierConn.
17786 1999-12-06 James Henstridge <james@daa.com.au>
17788 * plug-ins/python/test.py: test script for the python plug-in.
17790 * plug-ins/python/python.c: this file contains the plug-in startup
17791 code for the python plugin. Right now, it just initialises the
17792 dia module and executes a script.
17794 * objects/standard/polyline.c (polyline_draw): fix start arrow size.
17796 * objects/standard/bezier.c (bezierline_draw): draw control lines for
17797 bezier curve if we are using an interactive renderer (ie. only if
17798 displaying to the screen).
17800 * lib/bezier_conn.[ch] (bezierconn_draw_control_lines): function
17801 to draw control lines on to a bezier curve. Based on implementation
17804 * objects/standard/bezier.c (bezierline_delete_segment_callback):
17805 calculate segment number using closest_segment rather than
17806 closest_handle. Sometimes the closest handle is part of a different
17808 (bezierline_draw): use correct size for start arrow.
17810 The next few entries are from Peter Moulder <reiter@netspace.net.au>:
17811 * lib/geometry.c (distance_line_point): added notes to documentation
17813 * app/object_ops.c (object_list_align_v):
17814 (object_list_align_h): fix of by one error when calculating free space
17815 for equal distance alignment.
17816 * app/menus.c (objects_align_h, objects_align_v): include align
17817 adjacent menu items in the gnome version of the menus.
17818 * app/diagram.c (diagram_update_menu_sensitivity): set sensitivity on
17819 align adjacent menu items correctly.
17822 * lib/dummy_dep.h (dummy_dep): added bezierconn to dummy dependency
17825 * objects/standard/bezier.c: converted bezierline to use BezierConn.
17826 Still a few bugs. It crashes on deleting line segments.
17828 * lib/Makefile.am (libdia_a_SOURCES): added BezierConn to libdia.
17830 1999-12-05 James Henstridge <james@daa.com.au>
17832 * lib/bezier_conn.[ch]: start of BezierConn object
17834 * app/interface.c: add bezierline to toolbox.
17836 * objects/standard/standard.c: initialise bezierline.
17838 * objects/standard/bezier.c: new object from Lars R. Clausen. I have
17839 made a few modifications to get it working nicely. It still needs
17840 a bit of work though. Maybe create a BezierConn object in lib.
17842 1999-12-02 James Henstridge <james@daa.com.au>
17844 * plug-ins/python/pydia-*.c: fixed compile errors in these files.
17846 * plug-ins/python/Makefile.am: tried building everything. It is
17847 building as a library at the moment. I will have to convert it
17848 to a libtool library and add some initialisation code.
17850 * plug-ins/python/diamodule.c: start of the dia module, using the
17851 other object wrappers. Not complete.
17853 1999-12-01 James Henstridge <james@daa.com.au>
17855 * plug-ins/python/pydia-object.c (PyDiaObject_GetAttr): implement
17856 the handles and connections attributes.
17858 * plug-ins/python/pydia-layer.c: added functions that use
17861 * plug-ins/python/pydia-handle.[ch]: wrapper for Handle's.
17863 * plug-ins/python/pydia-cpoint.[ch]: wrapper for ConnectionPoint's.
17865 * plug-ins/python/pydia-*.[ch]: starts of python scripting plug-in.
17866 I am currently wrapping the basic elements in the diagram in python
17867 objects -- nothing to see or play with yet.
17869 1999-11-30 Alexander Larsson <alla@lysator.liu.se>
17873 James Henstridge <james@daa.com.au> is now the maintainer of Dia.
17875 1999-11-29 Alexander Larsson <alla@lysator.liu.se>
17879 Added russian translation from Valek Filippov <frob@df.ru>
17881 1999-11-24 James Henstridge <james@daa.com.au>
17884 * sheet/ER/*: moved extra sheet pixmaps back to separate dirs as
17885 discussed with Alex. Also added extra makefiles so that make install
17888 1999-11-23 Alexander Larsson <alla@lysator.liu.se>
17890 * app/preferences.[ch]:
17892 Added snap to grid preference.
17893 Patch from Michael Leslie <mles@springboardwireless.com>
17895 1999-11-21 Alexander Larsson <alla@lysator.liu.se>
17901 * objects/custom/shape_info.c:
17902 All strings returned by libxml must be freed with free, not
17903 g_free, or there will be problems if you use memory debugging
17906 1999-11-21 Alexander Larsson <alla@lysator.liu.se>
17908 * app/create_object.[ch]:
17911 * app/commands.[ch]:
17913 * app/interface.[ch]:
17914 Reverted the tool menu patch. It has some 'issues'.
17915 I liked it though, so it'll probably return.
17917 1999-11-21 Alexander Larsson <alla@lysator.liu.se>
17919 Fixed a lot of memory leaks. Thanks to Bruce Mitchener
17920 <bruce@cybersight.com> for some purify runs and analysis.
17921 Also a great thank you to Owen Taylor for creating MemProf, a
17922 free memory leak detector that was used to find and verify a
17923 lot of these fixes.
17926 * app/paginate_psprint.c:
17927 * app/render_eps.[ch]:
17928 * app/render_svg.[ch]:
17932 Don't add a reference to ddisp->shell. Why was this done in
17939 Free all strings returned from xmlGetProp
17941 * app/modify_tool.c:
17944 * objects/custom/custom.c:
17945 Use closedir() after opendir().
17947 * objects/custom/shape_info.c:
17948 User g_free() instead of "if (tmp) free(tmp)".
17951 Add newline at end of file.
17954 1999-11-20 Alexander Larsson <alla@lysator.liu.se>
17956 Based on patch from Patrick Reynolds <reynolds@cs.duke.edu>
17957 Adds tool menu and keyboard shortcuts.
17959 * app/create_object.[ch]:
17960 Use tool_set() instead of tool_reset().
17961 create_create_object_tool() takes extra type argument
17967 Moved tool_data here, export it.
17968 Add separate tool type for all create objects tools.
17969 new functions tool_set().
17972 New callback tool_set_callback.
17975 Moved some pixmaps to interface.c.
17978 Remove tool_data array (moved to tool.c).
17979 Use the tool_data from tool.c.
17980 Remove modify_tool_button global var.
17982 1999-11-20 Alexander Larsson <alla@lysator.liu.se>
17984 Patch from Patrick Reynolds <reynolds@cs.duke.edu>
17987 Interprets command-line arguments as files to open even when
17988 HAVE_POPT is not defined.
17991 Shift-clicking when zooming zooms out, like the Gimp.
17994 Has hotkeys for zoom-100% and snap-to-grid.
17996 1999-11-17 James Henstridge <james@daa.com.au>
17998 * app/scroll_tool.c (scroll_motion): fixed shift style scrolling so
17999 that it is not jumpy.
18001 * app/Makefile.am (EXTRA_DIST): added extra files to extra dist list.
18003 * app/scroll_tool.c (scroll_motion): added `grabbing hand' type
18004 scrolling by pressing the shift key when using the scroll tool.
18006 * sheets/Makefile.am: fixed makefile so that install actually works
18007 if the directories $(pkgdatadir)/sheets/UML and $(pkgdatadir)/sheets/ER
18009 (SHEETS): install Circuit.sheet
18011 1999-11-15 Alexander Larsson <alla@lysator.liu.se>
18012 Patch from Cyrille Chepelov <chepelov@rmcnet.fr>
18014 * sheets/Circuit.sheet:
18017 * sheets/Flowchart.sheet:
18018 * sheets/UML.sheet:
18019 * sheets/network.sheet:
18020 * sheets/sybase.sheet:
18023 * sheets/Circuit.sheet:
18024 added some missing French translations
18027 killed the temporary sheet namespace
18029 * objects/custom/custom.c:
18030 obsolete comment cleaned up
18032 1999-11-12 Alexander Larsson <alla@lysator.liu.se>
18036 Added portugese translation from Pedro Morais
18037 <pmmm@rnl.ist.utl.pt>
18039 1999-11-11 Alexander Larsson <alla@lysator.liu.se>
18041 Changed all sheets to be specified in xml.
18042 All sheet objects removed from the C code.
18043 Patch from Cyrille Chepelov <chepelov@rmcnet.fr>
18048 Updated version to 0.81cvs.
18051 Update run_dia.sh with sheet-dir.
18054 Load all sheets on startup.
18055 Create sheet directory first time.
18056 Don't call custom_register_sheets().
18059 Add sheetdir define
18062 Remove custom_register_sheets().
18065 Add sheet loading code.
18067 * sheet/Circuit.sheet:
18070 * sheet/Flowchart.sheet:
18072 * sheet/network.sheet:
18073 * sheet/sybase.sheet:
18076 * sheet/ER/weakentity.xpm:
18077 * sheet/UML/aggregation.xpm
18078 * sheet/UML/umlclass_template.xpm
18079 Added sheet pixmaps.
18080 These are moved from their old places.
18082 * sheet/.cvsignore:
18086 Removed sheet objects and sheet registration.
18088 * objects/ER/Makefile.am:
18089 * objects/ER/pixmaps/weakentity.xpm:
18090 * objects/UML/Makefile.am:
18091 * objects/UML/pixmaps/aggregation.xpm:
18092 * objects/UML/pixmaps/umlclass_template.xpm:
18093 Removed alternative pixmaps. (Moved to sheet).
18095 * objects/custom/Makefile.am:
18096 * objects/custom/load_sheet.[ch]:
18097 Removed old sheet loading code.
18099 * objects/custom/custom.c:
18100 Load all shapes instead of sheets.
18101 Removed custom_register_sheets().
18103 * objects/custom/custom_object.c:
18106 * objects/custom/shape_info.[ch]:
18107 Added shape_info_getbyname().
18109 * objects/flowchart/Makefile.am:
18110 * objects/flowchart/collate.shape
18111 * objects/flowchart/delay.shape
18112 * objects/flowchart/display.shape
18113 * objects/flowchart/document.shape
18114 * objects/flowchart/extract.shape
18115 * objects/flowchart/flowchart.c
18116 * objects/flowchart/intstorage.shape
18117 * objects/flowchart/magdisk.shape
18118 * objects/flowchart/magdrum.shape
18119 * objects/flowchart/magtape.shape
18120 * objects/flowchart/manualinput.shape
18121 * objects/flowchart/manualop.shape
18122 * objects/flowchart/merge.shape
18123 * objects/flowchart/offlinestore.shape
18124 * objects/flowchart/offpageconn.shape
18125 * objects/flowchart/or.shape
18126 * objects/flowchart/predefdproc.shape
18127 * objects/flowchart/preparation.shape
18128 * objects/flowchart/punchedcard.shape
18129 * objects/flowchart/punchedtape.shape
18130 * objects/flowchart/sort.shape
18131 * objects/flowchart/sumjunction.shape
18132 * objects/flowchart/terminal.shape
18133 * objects/flowchart/transaction.shape
18134 * objects/flowchart/transmittape.shape
18135 * objects/flowchart/pixmaps/collate.xpm
18136 * objects/flowchart/pixmaps/delay.xpm
18137 * objects/flowchart/pixmaps/display.xpm
18138 * objects/flowchart/pixmaps/document.xpm
18139 * objects/flowchart/pixmaps/extract.xpm
18140 * objects/flowchart/pixmaps/intstorage.xpm
18141 * objects/flowchart/pixmaps/magdisk.xpm
18142 * objects/flowchart/pixmaps/magdrum.xpm
18143 * objects/flowchart/pixmaps/magtape.xpm
18144 * objects/flowchart/pixmaps/manualinput.xpm
18145 * objects/flowchart/pixmaps/manualop.xpm
18146 * objects/flowchart/pixmaps/merge.xpm
18147 * objects/flowchart/pixmaps/offlinestore.xpm
18148 * objects/flowchart/pixmaps/offpageconn.xpm
18149 * objects/flowchart/pixmaps/or.xpm
18150 * objects/flowchart/pixmaps/predefdproc.xpm
18151 * objects/flowchart/pixmaps/preparation.xpm
18152 * objects/flowchart/pixmaps/punchedcard.xpm
18153 * objects/flowchart/pixmaps/punchedtape.xpm
18154 * objects/flowchart/pixmaps/sort.xpm
18155 * objects/flowchart/pixmaps/sumjunction.xpm
18156 * objects/flowchart/pixmaps/terminal.xpm
18157 * objects/flowchart/pixmaps/transaction.xpm
18158 * objects/flowchart/pixmaps/transmittape.xpm
18159 Moved shapes and their pixmaps to shapes/flowchart
18161 * shapes/Circuit/Makefile.am:
18162 * shapes/Circuit/index.sheet:
18163 Removed index.sheet.
18165 * shapes/Makefile.am:
18166 * shapes/flowchart/Makefile.am:
18167 * shapes/flowchart/*.shape:
18168 * shapes/flowchart/*.xpm:
18169 Added flowchart shapes. (Moved from objects/flowchart)
18172 1999-11-07 Fredrik Hallenberg <hallon@lysator.liu.se>
18174 * app/app_procs.c: Fixed popt stuff.
18176 1999-11-01 James Henstridge <james@daa.com.au>
18178 * shapes/Circuit/[hv]led_de.{shape,xpm}: new circuit shapes from
18181 1999-10-31 Alexander Larsson <alla@lysator.liu.se>
18185 Update version to 0.81.
18188 Update with news for 0.81.
18190 * shapes/Circuit/*:
18191 * shapes/Circuit_eu/*:
18192 Moved european circuit objects to Circuit sheet.
18194 1999-10-31 Alexander Larsson <alla@lysator.liu.se>
18196 * lib/diagramdata.[ch]:
18197 Added layer_set_object_list() function.
18200 Added support for undo of reordered objects.
18201 Fix the undo of delete to keep the right order on undo.
18204 changed loop to object_add_updates_list() calls.
18205 Added undo support to bring to front/back.
18207 * app/disp_callbacks.c:
18208 * app/paginate_psprint.c:
18211 1999-10-30 Alexander Larsson <alla@lysator.liu.se>
18213 This plugs some leaks. Thanks to
18214 Bruce Mitchener <bruce@cybersight.com> for running
18215 Dia through purify for me.
18218 Free displays and diagrams on exit.
18220 * app/modify_tool.c:
18221 Free gc when freeing tool.
18223 * lib/diagramdata.c:
18227 Free update and display lists when destroying display.
18229 * lib/diagramdata.c:
18230 Don't leak layer name.
18232 * objects/custom/load_sheet.c:
18233 * objects/custom/shape_info.c:
18234 Free loaded xml documents.
18236 1999-10-28 Alexander Larsson <alla@lysator.liu.se>
18239 * app/object_ops.[ch]:
18240 Add undo handling to alignment ops.
18241 Based partially on patch by Dan Cohn <dan@internap.com>.
18243 * objects/standard/image.c (image_move_handle):
18244 Don't divide by zero for small images.
18245 Patch by Dan Cohn <dan@internap.com>.
18247 * objects/UML/class.c (umlclass_destroy):
18248 * objects/custom/custom_object.c (custom_destroy):
18249 Don't free connectionpoints before calling element_destroy
18250 which unconnects them.
18252 1999-10-26 Alexander Larsson <alla@lysator.liu.se>
18254 * objects/custom/custom_object.c:
18255 Load and save padding too. Fixes strange load crashes.
18257 * app/group.c (group_destroy):
18258 Don't unconnect already freed connectionpoints when
18259 destroying group. Probably fixes bug reported by
18260 Elliot Lee <sopwith@redhat.com>.
18262 * app/render_gdk.c:
18263 Don't crash on zero-size (broken) bezier curves.
18264 Different sort of fix. This should work on closed bezier curves
18267 * objects/standard/textobj.c:
18268 Activate default properties dialog for Text objects.
18270 * app/render_eps.c:
18272 * app/preferences.c:
18273 * app/render_svg.c:
18274 fopen files in binary or text mode.
18276 1999-10-26 Alexander Larsson <alex@cendio.se>
18278 * app/render_gdk.c (bezier_add_lines):
18279 Don't crash on zero-size (broken) bezier curves.
18280 Fixes a crashing bug.
18282 1999-10-25 James Henstridge <james@daa.com.au>
18284 * app/Makefile.am (run_dia.sh): allow dia to find internal shape files
18285 before it is installed.
18287 * objects/flowchart/flowchart.c: use relative paths to find shapes.
18289 * objects/custom/custom.c (custom_object_load): take file names
18290 relative to $(pkgdatadir)/shape-internal, and check an environment
18291 variable for an alternative directory.
18293 * app/...: added copyright messages to the top of my new code.
18295 * app/paginate_psprint.c: some general clean ups. Also, give an error
18296 dialog if we can't open the command or output file for writing.
18298 * app/diapagelayout.c (dia_page_layout_set_orientation): fixed
18299 function so it would set orientation to landscape correctly.
18301 * app/paginate_psprint.c: use the paper settings that come with
18302 the diagram. Also implemented landscape printing.
18304 * app/render_eps.c (new_psprint_renderer): use diagram paper metrics
18307 * app/commands.[ch] (file_pagesetup_callback): added callback for
18308 the page setup dialog.
18310 * app/menus.c: added page setup menu item.
18312 * app/pagesetup.[ch]: implementation of the page setup dialog.
18314 * app/diapagelayout.[ch]: added accessors for the scaling factor.
18316 * app/load_save.c (diagram_load): load paper information from save
18318 (diagram_save): save the paper info.
18320 * lib/diagramdata.c (new_diagram_data): initialise paper info section
18321 of DiagramData structure.
18322 (diagram_data_destroy): free the paper name.
18324 * lib/diagramdata.h: added a paper member to the DiagramData structure
18325 that holds the page layout info for a diagram.
18327 1999-10-21 Alexander Larsson <alla@lysator.liu.se>
18329 * objects/flowchart/box.c:
18330 * objects/flowchart/ellipse.c:
18331 * objects/flowchart/diamond.c:
18332 * objects/flowchart/parallelogram.c:
18333 Load and save padding too. Fixes strange load crashes.
18335 1999-10-21 Alexander Larsson <alla@lysator.liu.se>
18337 * app/app_procs.c (name_is_lib):
18338 .dll, .sl and .so.0.0.0 are also libraries.
18340 1999-10-20 James Henstridge <james@daa.com.au>
18342 * configure.in: added extra makefile.
18344 * shapes/Circuit_eu/*: a new set of european circuit shapes from
18345 Andreas Scherf <scherfa@fh-trier.de>. Made a few small modifications
18346 (added fuses to makefile, fill the area of some of the components).
18348 1999-10-19 Alexander Larsson <alla@lysator.liu.se>
18352 Add GDK_IMLIB_CFLAGS to includes.
18353 Changed --export-dynamic to -export-dynamic
18356 * objects/UML/message.c:
18357 Removed c++ comment.
18359 * lib/render_store.[ch]:
18360 Don't use empty structure. That is not Ansi C.
18362 1999-10-19 James Henstridge <james@daa.com.au>
18364 * app/diapagelayout.c (dia_page_layout_init): use DiaUnitSpinner's for
18365 the margin entries, as they allow interpretation of units.
18366 (paper_size_change): display the current page dimensions.
18368 * app/diaunitspinner.[ch]: a widget derived from the standard
18369 GtkSpinButton that tries to take units into account. So if you enter
18370 "1in" into the entry, it will convert it to 2.54cm.
18372 1999-10-18 Alexander Larsson <alla@lysator.liu.se>
18375 Removed include of dlfcn.h
18377 1999-10-18 James Henstridge <james@daa.com.au>
18379 * app/diapagelayout.c (paper_size_change, orient_changed): set upper
18380 bound on margin widths. It is set to the paper width/height.
18382 * objects/flowchart/diamond.c (diamond_distance_from): fixed distance
18383 routine for the diamond. This bug was found and fixed by Daniel Wang
18384 <danwang@CS.Princeton.EDU>
18386 Sun Oct 17 19:46:36 1999 ape@gandalf.spacetec.no (Asbjorn Pettersen)
18388 * app/commands.c: Add <sys/types.h> before <sys/stat.h> to
18389 remove warning (OS/2 version).
18391 1999-10-17 Alexander Larsson <alla@lysator.liu.se>
18394 Put a pointer to objects/custom/README.
18396 1999-10-17 Alexander Larsson <alla@lysator.liu.se>
18399 Updated version to 0.80
18402 Updated version to 0.80cvs
18404 1999-04-08 Alexander Larsson <alla@lysator.liu.se>
18406 * Released Dia 0.80
18407 Tag called DIA_0_80
18409 1999-10-17 Fredrik Hallenberg <hallon@lysator.liu.se>
18413 * objects/UML/Makefile.am
18414 * objects/ER/Makefile.am
18415 * objects/network/Makefile.am
18416 * objects/standard/Makefile.am
18417 * objects/FS/Makefile.am
18418 * objects/sybase/Makefile.am
18419 * objects/flowchart/Makefile.am
18420 * objects/custom/Makefile.am
18421 Added -I$(top_srcdir)/intl which is needed for
18422 --with-included-gettext.
18428 Updated swedish translation.
18430 1999-10-16 Alexander Larsson <alla@lysator.liu.se>
18433 Updated version number to 0.80.
18439 Updated. Moved bugs to KNOWN_BUGS.
18442 Updated with 0.80 release notes.
18444 1999-10-16 Alexander Larsson <alla@lysator.liu.se>
18447 For backwards compatibility, make sure handle 0 and 1 are the
18448 first and last handle. Fixes compatibility with 0.41, breaks
18449 compatibility with cvs version.
18450 Fixed bug in undo/redo of adding deleting endpoint segments
18451 when the endpoint was connected.
18452 Start OrthConn objects with three segments.
18454 1999-10-16 James Henstridge <james@daa.com.au>
18456 * objects/custom/custom_object.c (custom_update_data): changed
18457 resizing behaviour a bit so that shapes don't grow huge when you try
18458 to resize them to smaller than the size required by the text box.
18459 Also, now shapes will not grow with fixed aspect ratio when you enter
18460 text into them unless the shape has the fixed aspect ratio flag set.
18462 1999-10-15 James Henstridge <james@daa.com.au>
18464 * objects/flowchart/flowchart.c: add new shapes to flowchart sheet.
18466 * object/flowchart/pixmaps/...: corresponding pixmaps for new shapes.
18468 * objects/flowchart/magdrum.shape:
18469 * objects/flowchart/offlinestore.shape:
18470 * objects/flowchart/punchedtape.shape:
18471 * objects/flowchart/transmittape.shape:
18472 * objects/flowchart/punchedcard.shape: new shapes.
18474 * objects/flowchart/flowchart.c: add new shapes to flowchart sheet.
18476 * object/flowchart/pixmaps/...: corresponding pixmaps for new shapes.
18478 * objects/flowchart/collate.shape:
18479 * objects/flowchart/delay.shape:
18480 * objects/flowchart/extract.shape:
18481 * objects/flowchart/intstorage.shape:
18482 * objects/flowchart/magdisk.shape:
18483 * objects/flowchart/magtape.shape:
18484 * objects/flowchart/merge.shape:
18485 * objects/flowchart/or.shape:
18486 * objects/flowchart/sort.shape:
18487 * objects/flowchart/sumjunction.shape: new shapes.
18489 1999-10-15 Alexander Larsson <alla@lysator.liu.se>
18493 Entering an erronous command as print command
18496 * app/paginate_psprint.c:
18497 Save all print dialog values for next time.
18500 Remove custom lib from DIA_LIB_PATH.
18502 1999-10-14 James Henstridge <james@daa.com.au>
18504 * objects/flowchart/flowchart.c: add new shapes to flowchart sheet.
18506 * object/flowchart/pixmaps/...: corresponding pixmaps for new shapes.
18508 * objects/flowchart/offpageconn.shape:
18509 * objects/flowchart/manualop.shape:
18510 * objects/flowchart/preparation.shape:
18511 * objects/flowchart/manualinput.shape:
18512 * objects/flowchart/predefdproc.shape:
18513 * objects/flowchart/terminal.shape: new shapes in the flowchart sheet.
18515 1999-10-13 James Henstridge <james@daa.com.au>
18517 * app/diapagelayout.[ch]: added accessors to paper information. The
18518 widget should be just about complete now.
18520 * app/diapagelayout.[ch]: fleshed out the page setup widget a bit more.
18521 It actually does something now.
18523 1999-10-12 James Henstridge <james@daa.com.au>
18525 * app/pixmaps/portrait.xpm, app/pixmaps/landscape.xpm: support pixmaps
18526 for the page layout widget.
18528 * app/diapagelayout.[ch]: start of page layout widget. Not actually
18529 built yet as it is not complete.
18531 * objects/flowchart/flowchart.c: added new shapes to sheet.
18533 * objects/flowchart/display.shape:
18534 * objects/flowchart/transaction.shape: new shapes.
18536 * AUTHORS: added my name to the spec file.
18538 * dia.spec: include the dia desktop entry to the spec file.
18540 * Makefile.am: install the dia.desktop file.
18542 * dia.desktop: added a gnome desktop entry so you can start dia
18543 from the gnome panel menu.
18545 1999-10-11 James Henstridge <james@daa.com.au>
18547 * objects/custom/custom_object.c:
18548 * objects/custom/shape_info.c: warning fixes.
18550 * objects/flowchart/document.shape: a shape file for the `document'
18553 * lib/custom.h: new header with the custom shape prototypes.
18555 * app/app_procs.c: register custom objects as well.
18556 (register_objects_in): close shared libraries if they don't load
18557 correctly, and call g_module_make_resident on libraries that load
18560 * app/Makefile.am (dia_LDADD): added libcustom_objects.a to link list.
18562 * objects/custom/custom.c: removed get_version, added custom_ prefix
18563 to register_objects and register_sheets.
18565 * objects/custom/Makefile.am: converted to a normal library.
18567 1999-10-10 Alexander Larsson <alla@lysator.liu.se>
18569 * app/lineprops_area.c:
18570 * app/render_svg.c:
18572 * objects/custom/shape_info.c:
18573 * objects/flowchart/box.c:
18574 * objects/flowchart/diamond.c:
18575 * objects/flowchart/ellipse.c:
18576 * objects/flowchart/parallelogram.c:
18577 * objects/network/flash.c:
18578 * objects/network/scead-plug.c:
18579 * objects/sybase/client.c:
18580 Removed -Wall warnings.
18582 * objects/network/bus.c:
18583 Removed unused functions.
18585 * objects/FS/flow-ortho.c:
18586 * objects/FS/flow-poly.c:
18587 * objects/FS/flow.c:
18588 * objects/FS/function.c:
18590 Implemented "non-implemented" undo for FS objects.
18591 Now at least it won't crash.
18593 1999-10-10 Alexander Larsson <alla@lysator.liu.se>
18595 * objects/network/bus.c:
18597 Handles are now added and removed using the object menu.
18598 Default to 6 handles instead of 10.
18599 Changed name from "Standard - Bus" to "Network - Bus". Kept old
18600 name for backwards compatibility.
18602 * objects/network/network.c:
18603 Changed name from "Standard - Bus" to "Network - Bus". Kept old
18604 name for backwards compatibility.
18606 * app/properties.[ch]:
18608 Update properties in properties dialog if the shown object
18609 is part of and ObjectChange (undo or redo).
18612 Remove old known bugs list.
18614 * objects/UML/class_dialog.c:
18615 Removed debug printf's.
18617 1999-10-10 James Henstridge <james@daa.com.au>
18619 * objects/custom/custom.c (custom_object_load): new function that
18620 provides a nice entry point to the custom shape code for when it
18621 gets used by other libraries.
18623 * configure.in: removed 11 makefiles from AC_OUTPUT list. This
18624 speeds builds up a bit.
18626 * */Makefile.am (EXTRA_DIST): include pixmaps in distribution.
18627 (SUBDIRS): do not descend into pixmaps subdirs.
18629 * */pixmaps/Makefile.am: removed -- incorporate into parent makefiles.
18630 This speeds up build process.
18632 * objects/custom/custom.c (sheets): made variable static.
18634 * objects/custom/custom_util.[ch] (custom_get_relative_filename):
18637 * objects/custom/load_sheet.[ch] (custom_sheet_load): renamed function.
18639 * objects/custom/custom.c: look in ~/.shapes instead of
18640 ~/.dia_shapes as the per-user shapes directory.
18642 * app/preferences.c (prefs_save): save config to ~/.diarc.
18643 (prefs_load): load configuration from ~/.diarc. If the file
18644 does not exist, fallback on the old ~/.diarc location.
18646 * app/app_procs.c (create_user_dirs): create the ~/.dia directory
18648 (register_all_objects): look for user specific objects in
18649 ~/.objects rather than ~/.dia_libs.
18651 1999-10-10 Fredrik Hallenberg <hallon@lysator.liu.se>
18655 * objects/flowchart/box.c
18656 * objects/flowchart/ellipse.c
18657 * objects/flowchart/flowchart.c
18658 Use gmodule for dynamic linking. As gmodule is using
18659 RTLD_GLOBAL i had to change flowchart box and ellipse
18660 so the typenames doesn't conflict with the standard
18665 Use button box to make dialogs look better.
18667 1999-10-09 Alexander Larsson <alla@lysator.liu.se>
18669 * objects/UML/class_dialog.c:
18670 * objects/UML/class.h:
18671 Implemented undo for "UML - Class" objects.
18672 Not 100% tested yet.
18674 * objects/UML/classicon.c:
18675 * objects/UML/constraint.c:
18676 * objects/UML/dependency.c:
18677 * objects/UML/generalization.c:
18678 * objects/UML/implements.c:
18679 * objects/UML/large_package.c:
18680 * objects/UML/lifeline.c:
18681 * objects/UML/message.c:
18682 * objects/UML/object.c:
18683 * objects/UML/realizes.c:
18684 * objects/UML/state.c:
18685 * objects/UML/usecase.c:
18688 * lib/connectionpoint.h:
18691 1999-10-09 James Henstridge <james@daa.com.au>
18693 * objects/custom/*.[ch]: added copyright notices to custom object
18696 * shapes/Circuit/hdiode.shape:
18697 * shapes/Circuit/hzener.shape:
18698 * shapes/Circuit/opamp.shape:
18699 * shapes/Circuit/vdiode.shape:
18700 * shapes/Circuit/vzener.shape: made adjustments to make the circuit
18701 shapes look nice after the custom shape code changes.
18703 * objects/custom/README: updated docs to cover changes to drawing
18706 * objects/custom/custom_object.c (custom_draw): honour the line
18707 properties when drawing the shape.
18709 * objects/custom/shape_info.[ch]: added support for setting line
18710 properties for individual drawing elements in a custom shape. You
18711 can set the dash style, dash length, cap style and join style.
18713 1999-10-07 James Henstridge <james@daa.com.au>
18715 * objects/custom/shape_info.c (parse_style): added a few extra synonyms
18716 for foreground and background.
18718 * objects/custom/custom_object.c (custom_draw): use the new style
18719 information when drawing the object.
18721 * objects/custom/shape_info.[ch]: store all shape style info in the
18722 GraphicStyle structure. This makes adding support for extra CSS
18723 attributes easier -- we don't have to keep adding extra arguments to
18724 a lot of functions.
18726 1999-10-05 James Henstridge <james@daa.com.au>
18728 * lib/intl.c (unalias_lang): merged in changes from the i18n code
18729 swiped from gnome-libs.
18731 1999-10-03 Alexander Larsson <alla@lysator.liu.se>
18733 * objects/standard/image.c (get_directory):
18734 Fix memleak. Found by Kjartan Maraas <kmaraas@online.no>
18736 1999-09-28 Alexander Larsson <alla@lysator.liu.se>
18738 * lib/poly_conn.c (polyconn_destroy):
18739 Fix bug. Access of freed memory.
18740 Rememeber, you can't free the handles of an object
18741 before calling object_destroy(), as it unconnects the handles
18742 therefore referencing them.
18744 1999-09-28 Alexander Larsson <alla@lysator.liu.se>
18747 undo_clear() didn't set stack->depth to zero.
18748 This made other undo functions crash after this had been called
18752 Slightly modified by Chris Love <clove@exactis.com>
18754 1999-09-19 Alexander Larsson <alla@lysator.liu.se>
18756 * objects/UML/class.h:
18757 * objects/UML/class_dialog.c:
18758 Retrun NULL ObjectChange on class property change.
18759 This means no crashes, but "UML - Class" doesn't support undo yet.
18761 1999-09-19 Alexander Larsson <alla@lysator.liu.se>
18766 * objects/UML/classicon.c:
18767 * objects/UML/dependency.c:
18768 * objects/UML/generalization.c:
18769 * objects/UML/implements.c:
18770 * objects/UML/large_package.c:
18771 * objects/UML/lifeline.c:
18772 * objects/UML/message.c:
18773 * objects/UML/object.c:
18774 * objects/UML/realizes.c:
18775 * objects/UML/state.c:
18776 * objects/UML/usecase.c:
18777 Update to new undo (w. get/set_state).
18778 Add object menu to add/delete segments.
18780 1999-09-17 Alexander Larsson <alla@lysator.liu.se>
18783 Add equal distance alignment.
18785 * app/object_ops.c:
18786 Add equal distance alignment.
18787 Fix bug in adjacent alignment.
18789 1999-09-16 Alexander Larsson <alla@lysator.liu.se>
18791 * objects/UML/constraint.c:
18792 Update to new undo (w. get/set_state).
18794 1999-09-15 Alexander Larsson <alla@lysator.liu.se>
18796 * app/paginate_psprint.c:
18797 Save (parts, more todo) of the info in the print dialog to the
18798 next time it's opened.
18799 Patch from Yo Ric Dude <ricdude@toad.net>
18801 1999-09-14 Alexander Larsson <alla@lysator.liu.se>
18804 Updated version string to 0.41cvs.
18806 * objects/UML/assocition.c:
18807 Update to new undo (w. get/set_state).
18808 Add object menu to add/delete segments.
18811 Added function debug_break() and called it after all
18812 objects and sheets are loaded. Place a breakpoint here if you
18813 want to debug objects. All symbols should be loaded.
18815 1999-09-12 James Henstridge <james@daa.com.au>
18817 * app/menus.c (display_menu_items): added print menu item.
18818 (filemenu): always add print menu item -- even if gnome-print is
18821 * app/commands.h, app/commands.c (file_print_callback): the print
18822 menu item is now available for both gnome-print and non gnome-print
18825 * app/paginate_psprint.c (diagram_print_ps): show a dialog to let you
18826 print with the non gnome-print driver.
18828 1999-09-11 James Henstridge <james@daa.com.au>
18830 * app/paginate_gnomeprint.c (diagram_print_gnome): moved the gnome
18831 printer dialog code out of commands.c.
18833 * app/paginate_psprint.c: new file containing the pagination code for
18836 * app/render_eps.c: made a few modifications so as well as producing
18837 EPS files, this renderer can be set up to do postscript printing.
18838 This basically entailed adding an extra function to create a RenderEPS
18839 renderer which did not bother setting the viewport for the document.
18840 That was left for the pagination code.
18842 1999-09-10 James Henstridge <james@daa.com.au>
18844 * app/render_gnomeprint.c (draw_ellipse, fill_ellipse): since
18845 gnome-print does not support elliptic arcs at the moment, approximate
18846 the ellipse with eight bezier curves. This gives a pretty good
18847 match to a true ellipse.
18849 1999-09-09 James Henstridge <james@daa.com.au>
18851 * app/commands.c (file_gnome_print_callback): added support for
18852 scaling the diagram. Also fixed a few other bugs.
18854 * app/paginate_gnomeprint.c (print_page): added ability to scale
18855 document. Fixed up test to see if the page has no objects on it.
18856 This should prevent some blank pages being printed. Non square
18857 objects such as lines could still cause problems.
18859 1999-09-08 James Henstridge <james@daa.com.au>
18861 * app/commands.c (file_gnome_print_callback): changed from using the
18862 standard printer selection dialog to one that also has a paper size
18865 * commands.[ch]: added callbacks for the print menu item. Currently
18866 it only does A4 output. I will make it configurable soon.
18868 * app/menus.c: add a print diagram menu item if gnome-print support
18871 * app/paginate_gnomeprint.c, app/paginate_gnomeprint.h: this is a
18872 bit higher level than the gnome-print renderer. It splits the
18873 diagram into page size chunks and then renders them. For each
18874 page, it only renders the objects whose bounding box intersects
18875 the page, and it sets the clip mask so that the diagram does not
18876 overlap the margins.
18878 * app/render_gnomeprint.c, app/render_gnomeprint.h: added a renderer
18879 that uses gnome-print as its back end.
18881 * configure.in: added a check for gnome-print. It is disabled by
18882 default because the code is not really working correctly yet.
18884 * app/menus.c: the delete object menu item was missing from the
18885 GnomeUIInfo style menus.
18887 1999-09-07 Fredrik Hallenberg <hallon@lysator.liu.se>
18890 Added japanese to ALL_LINGUAS.
18891 Fix for Linux on Alpha.
18893 1999-09-07 Alexander Larsson <alla@lysator.liu.se>
18895 * app/create_object.c (create_object_button_press):
18896 Always initialize tool->obj. Otherwise we store a null
18897 in the undo Change.
18900 Set linestyle before drawing cursor.
18901 Fix undo of backwards delete.
18903 1999-09-05 James Henstridge <james@daa.com.au>
18905 * dia.spec: updated spec file to distribute $(prefix)/share/dia.
18907 * app/render_svg.c (draw_image): some fixes so that the appropriate
18908 style attributes are set. Before it was setting line styles on
18909 fill_* functions. Now it only does this for the draw_* variants.
18911 * app/Makefile.am (run_dia.sh): set the DIA_SHAPE_PATH environment
18912 variable so that custom shapes can be loaded.
18914 * shapes/: new directory for custom shapes. The Circuit sheet has
18917 1999-09-02 James Henstridge <james@daa.com.au>
18919 * TODO: removed a few todo items that have been implemented.
18921 * app/interface.c (create_sheets): enabled the popup page menu to the
18922 notebook. This can make it easier to select different sheets.
18924 * object/custom/Circuit/: added diode, zener diode, ground point and
18925 operational amplifier shapes.
18927 * objects/custom/Makefile.am: added a note about adding DEBUG_CUSTOM
18928 if you want the output.
18930 * objects/custom/shape_info.c (parse_path): same here.
18932 * objects/custom/load_sheet.c (load_with_readdir): don't print so
18933 much debugging output. To get the previous level of output, define
18936 * objects/custom/shape_info.c (parse_svg_node): polygons were being
18937 recorded as polylines in the ShapeInfo structure.
18939 * objects/custom/README: some notes on writing new custom shapes.
18941 1999-09-01 James Henstridge <james@daa.com.au>
18943 * objects/custom/Circuit/hinductor.*:
18944 * objects/custom/Circuit/vinductor.*: added inductor shapes that
18945 also test out the bezier curve and SVG path support.
18947 * objects/custom/custom_object.c (custom_draw): added support for
18948 drawing bezier paths and filled shapes.
18950 * objects/custom/shape_info.c (parse_path): new function to parse
18951 SVG path elements. It does not do quadratic beziers or elliptic
18952 arcs though. Only moves, lines and cubic beziers.
18953 (*): added support for paths.
18955 1999-08-31 James Henstridge <james@daa.com.au>
18957 * objects/sybase/ltm.c (render_to_store): use the newer bezier API.
18959 * app/render_svg.c (draw_bezier, fill_bezier): updated renderer
18962 * app/render_eps.c (draw_bezier, fill_bezier): updated renderer
18965 * app/render_gdk.c (draw_bezier, fill_bezier): updated renderer
18968 * lib/render_store.[ch]: use newer bezier functions.
18970 * lib/render.h: changed the bezier drawing functions to use an array
18971 of BezPoint structures instead of normal Point structures to allow
18972 lineto's mixed in with the curveto's.
18974 * objects/custom/Circuit/pnp.*: added pnp transistor shape.
18976 * objects/custom/Circuit/Makefile.am (SHAPES): added index.sheet and
18977 xpm images for different shapes to Makefile.
18979 * objects/custom/custom_object.c (custom_object_new): set the icon
18980 for the sheet button if there is one. Otherwise fall back on the
18981 default custom object icon.
18983 * objects/custom/shape_info.c (load_shape_info): read the sheet
18984 icon name from the shape file.
18986 * app/interface.c (create_sheet_page): if sheet_obj->pixmap == NULL,
18987 check the pixmap_file field for the name of a pixmap file to load
18990 * lib/sheet.h (SheetObj): added pixmap_file field to structure. It is
18991 at the end of the structure, and it isn't used if the pixmap field
18992 is non NULL, so it should not break binary compatibility.
18994 * objects/custom/load_sheet.[ch]: moved sheet loading code here. Also
18995 added support for the use of an index.sheet file so you can specify
18996 the ordering of the shapes in the sheet, and also internationalise
18997 the sheet name and actually be able to give a description. The old
18998 readdir based sheet loading code acts as a fallback if an index.sheet
18999 file can not be found.
19001 * objects/custom/custom_util.[ch]: new file containing useful routines
19002 needed by the custom object code. Currently only contains a simple
19003 routine for resolving relative paths.
19005 * objects/custom/custom_object.c (custom_draw): fixed problem with
19006 drawing rectangles if the shape has been flipped.
19008 1999-08-30 James Henstridge <james@daa.com.au>
19010 * objects/custom/custom_object.c (custom_get_object_menu): allow
19011 flipping of custom shapes. This uses the miggle click object
19014 * objects/custom/Circuit/npn.shape: fix aspect ratio.
19016 * objects/custom/custom_object.c (custom_update_data): honour the
19017 aspect ratio constraints.
19019 * objects/custom/shape_info.c (load_shape_info): updated aspect ratio
19020 tag parsing, so you can specify a free, fixed or a range for aspect
19021 ratios for the shape.
19023 1999-08-29 James Henstridge <james@daa.com.au>
19025 * objects/custom/test.xml, objects/custom/Circuit/*.shape: fixed
19026 up shape namespace tag.
19028 * objects/custom/shape_info.c (load_shape_info): check xml:lang
19029 attribute on <description> elements to support i18n for custom
19030 shape descriptions.
19031 Also changed the shape namespace for custom shapes to something
19032 a little more sensible.
19034 * lib/dummy_dep.h (dummy_dep): added extra dummy dependency.
19036 * lib/intl.c: new file containing some functions for i18n stuff.
19038 * app/layer_dialog.c (create_button_box): fixed a warning.
19040 * objects/custom/custom_object.c: use current line style. Save dash
19043 * objects/flowchart/diamond.c: use current line style. Save dash
19046 * objects/flowchart/parallelogram.c: use current line style. Save
19049 * objects/flowchart/ellipse.c: use current line style. Save dash
19052 * objects/flowchart/box.c: use current line style. Save dash length.
19054 * objects/standard/ellipse.c: make ellipse use current line style.
19056 * objects/standard/box.c: use the line style set in the toolbox for
19057 new boxes, and remember the dash length.
19059 * app/commands.c (view_toggle_rulers_callback): fix reshowing of
19062 1999-08-24 James Henstridge <james@daa.com.au>
19064 * objects/flowchart/ellipse.c (ellipse_update_data): made some changes
19065 to try to stop ellipse to get infinite width/height when we resize,
19066 while trying to keep the text inside the ellipse.
19068 * objects/flowchart/box.c, objects/flowchart/parallelogram.c,
19069 * objects/flowchart/diamond.c, objects/flowchart/ellipse.c: fixed
19070 resizing behaviour, so that you can't push objects round the screen
19071 with the resize handles.
19073 * app/lineprops_area.c (dia_arrow_chooser_init, dia_line_chooser_init):
19074 get the OK buttons in the dialogs to take default clicks.
19076 * objects/custom/custom_object.c: added code so that resizing the
19077 shape does not end up pushing it round the screen.
19079 1999-08-23 Alexander Larsson <alla@lysator.liu.se>
19081 * app/display.[ch]:
19082 Generate rectangle with the union of the damaged regions.
19083 This is used to optimize the grid paint and the object rendering.
19084 display_render_pixmap passes this info to grid_draw() and data_render().
19087 grid_draw doesn't draw grid lines outside of damaged rectangle.
19088 Sets dashlength when drawing non-solid grid.
19090 * lib/diagramdata.[ch]:
19091 data_render() and layer_render() takes an optional damaged rectangle
19092 argument. No objects not intersecting this are drawn.
19096 Call data_render with NULL update rectangle.
19098 1999-08-23 James Henstridge <james@daa.com.au>
19100 * objects/custom/custom_object.c (custom_update_data): if the aspect
19101 ratio is fixed, make sure the shape is not distorted.
19103 * object/custom/shape_info.h, objects/custom/shape_info.c: notice if
19104 a <fixaspectratio/> tag is given in the shape file.
19106 * objects/custom/shape_info.[ch], objects/custom/custom_object.c:
19107 added support for stroke-width, stroke and fill CSS attributes
19108 specified in style attributes of the SVG elements. The line width
19109 is relative to the user specified line width. The stroke and fill
19110 attributes can only be used to swap the foreground/background
19113 * lib/widgets.c (dia_line_style_selector_set_linestyle): set the
19114 sensitivity on the dash length selector when this function is called.
19116 * objects/standard/arc.c: same. Also handle dash length.
19117 * objects/standard/zigzagline.c: same.
19118 * objects/standard/polyline.c: same. Also handle dash length.
19119 * objects/standard/line.c: use default arrow/line styles.
19121 * app/interface.c: added callbacks to set the default attributes.
19123 * lib/attributes.c: added implementations of these functions.
19125 * lib/attributes.h: added extra prototypes for the new line properties
19126 area in the toolbox.
19128 * app/interface.c (create_lineprops_area): added line properties
19129 area to bottom of toolbox.
19131 * app/lineprops_area.h: a header exporting a few routines of the
19132 line properties area widgets.
19134 * app/lineprops_area.c: new file containing a selector for arrows
19135 and line styles to go in the main toolbox.
19137 1999-08-22 Alexander Larsson <alla@lysator.liu.se>
19140 Update Gtk+ 1.0.5 comment to 1.2.0.
19149 Make sure we don't propagate -ldl and -lpopt to all LIBS
19150 by adding new var APP_LIBS that only app/dia links with.
19153 Update run_dia.sh to load custom and flowchart objects.
19155 * objects/ER/Makefile.am:
19156 * objects/FS/Makefile.am:
19157 * objects/UML/Makefile.am:
19158 * objects/network/Makefile.am:
19159 * objects/standard/Makefile.am:
19160 * objects/sybase/Makefile.am:
19161 Don't build versioned libs.
19163 1999-08-22 James Henstridge <james@daa.com.au>
19165 * configure.in: added objects/custom/Circuit/Makefile to AC_OUTPUT
19168 * objects/Makefile.am (SUBDIRS): added custom to subdir list -- it
19169 should actually work a bit now.
19171 * objects/custom/Circuit/*: a test sheet for the custom shape code.
19172 It is a small collection of circuit elements.
19174 * objects/custom/shape_info.c: fixed up loading of polylines and
19175 polygons. Before it was removing negative signs :(
19177 * objects/custom/pixmaps/custom.xpm: drew the custom shape icon. A
19178 placeholder was here before. I still need to work out how to set
19179 icons for individual custom shapes.
19181 * objects/custom/custom.c: added code to load the shapes into sheets
19182 properly. The shape files should be arranged into directories, and
19183 each directory represents a different sheet in the toolbox. This
19184 will make it very easy to distribute a collection of dia shapes as
19185 a tarball. I still need to work out internationalisation, and maybe
19186 also shape ordering in the sheet.
19188 * objects/custom/custom_object.c: fixed up dialogs for these objects.
19189 (custom_create): fix for objects without text areas.
19191 * objects/custom/shape_info.h, objects/custom/custom_object.c: loading
19192 and saving of custom object works correctly now.
19194 1999-08-21 James Henstridge <james@daa.com.au>
19196 * objects/flowchart/ellipse.c:
19197 * objects/flowchart/diamond.c:
19198 * objects/flowchart/parallelogram.c:
19199 * objects/flowchart/box.c: Fixed up a few bugs in these objects when
19200 copying or loading these object types. Not all the connection
19201 points would be initialised correctly.
19203 * objects/flowchart/Makefile.am (libflowchart_objects_la_LDFLAGS):
19206 * objects/custom/Makefile.am (libcustom_objects_la_LDFLAGS): do not
19207 build a versioned library. It will only ever be dlopen'd, so this
19210 * objects/custom/custom_object.c (custom_distance_from): allow
19211 selecting the object by clicking on the text. This fixes problems
19212 where the text box is outside the graphic.
19214 * objects/custom/shape_info.c (load_shape_info): fixed up reading
19215 of connections points. It should be possible to add connections
19216 to custom objects now.
19218 * objects/custom/custom_object.c (custom_update_data): fixed resizing
19219 due to changes to text.
19221 * configure.in: added extra makefiles.
19223 * objects/custom/shape_info.[ch]:
19224 * objects/custom/custom_object.c:
19225 * objects/custom/custom.c: the starts of custom shape support in dia.
19226 This is not built by default at the moment, since it is not quite
19227 complete. When it is, it will let you create more shapes for dia
19228 without writing a line of C. Its implementation includes buzzwords
19229 such as XML and SVG, so it must be good :)
19231 1999-08-19 Karsten Weiss <karsten@addx.au.s.shuttle.de>
19233 * app/app_procs.c (app_exit): Use button labels "Quit" and
19234 "Cancel" instead of "Yes" and "No".
19235 Set default action to "Cancel" instead of "Quit".
19237 1999-08-19 James Henstridge <james@daa.com.au>
19239 * objects/flowchart/flowchart.c: added ellipse object.
19241 * objects/flowchart/ellipse.c: a new shape for the flowchart toolbox.
19243 1999-08-18 James Henstridge <james@daa.com.au>d
19245 * app/color_area.c (color_area_edit): small fix to prevent dia from
19246 segfaulting when you try to change the default foreground/background.
19248 1999-08-17 Alexander Larsson <alla@lysator.liu.se>
19250 * app/diagram.[ch] (diagram_redraw_all):
19251 Added function that redraws all diagrams.
19253 * app/preferences.c (prefs_apply):
19254 Call diagram_redraw_all when prefs are changed.
19256 * app/render_svg.c:
19257 Don't use xmlEncodeEntitiesReentrant(). It doesn't exist on
19258 older libxml's, and the old version works good enought here.
19260 1999-08-17 James Henstridge <james@daa.com.au>
19262 * lib/widgets.c: changed handlers that were connected to the GtkButton
19263 "pressed" signal to connect to the "clicked" signal. This removes the
19264 problem where dialogs are inactive until you click a mouse button
19265 after using a colour selector.
19267 * configure.in: added extra makefiles to AC_OUTPUT list.
19269 * objects/Makefile.am (SUBDIRS): added flowchart module
19271 * objects/flowchart/*: a collection of shapes for use in flowcharts.
19273 * app/color_area.c (color_area_events): similar here.
19275 * app/linewidth_area.c (linewidth_area_events): sometimes a configure
19276 event is recieved with event->width == 0, which causes a warning if we
19277 try to create a pixmap of that width.
19279 * app/preferences.c, app/preferences.h, app/grid.c: added code to
19280 allow you to configure the colour of the grid, and also lets you
19281 set the grid to use dotted lines instead of solid ones.
19283 * app/commands.c, app/commands.h, app/diagram.c, app/diagram.h,
19284 app/menus.c, app/Makefile.am: added menu entry for exporting SVG files.
19286 * app/render_svg.h, app/render_svg.c: an SVG (Scalable Vector Graphics)
19287 export filter. It is not quite complete, but for most shapes it
19288 works as expected. Fonts still need a bit of work.
19290 1999-08-11 Robert Brady <rwb197@ecs.soton.ac.uk>
19292 * configure.in: Added "en_GB" to ALL_LINGUAS.
19294 1999-08-04 Fredrik Hallenberg <hallon@lysator.liu.se>
19297 Added Undo and Redo to GNOME menus.
19299 * objects/ER/attribute.c:
19300 * objects/ER/entity.c:
19301 * objects/ER/participation.c:
19302 * objects/ER/relationship.c:
19303 Added get/set_state functions.
19305 * objects/ER/participation.c:
19306 Added add/delete segment.
19309 Updated Swedish translation.
19311 1999-07-25 Alexander Larsson <alla@lysator.liu.se>
19313 * app/preferences.[hc]:
19314 Added undo_depth pref.
19317 Never grow stack larger than pref.undo_depth.
19318 undo_depth == 0 means unlimited.
19319 Converted printfs to conditionally compiled DEBUG_PRINTFs.
19321 1999-07-25 Alexander Larsson <alla@lysator.liu.se>
19326 * lib/render_object.c:
19327 * objects/ER/attribute.c:
19328 * objects/ER/entity.c:
19329 * objects/ER/participation.c:
19330 * objects/ER/relationship.c:
19331 * objects/FS/flow-ortho.c:
19332 * objects/FS/flow-poly.c:
19333 * objects/FS/flow.c:
19334 * objects/FS/function.c:
19335 * objects/UML/actor.c:
19336 * objects/UML/association.c:
19337 * objects/UML/class.c:
19338 * objects/UML/classicon.c:
19339 * objects/UML/component.c:
19340 * objects/UML/constraint.c:
19341 * objects/UML/dependency.c:
19342 * objects/UML/generalization.c:
19343 * objects/UML/implements.c:
19344 * objects/UML/large_package.c:
19345 * objects/UML/lifeline.c:
19346 * objects/UML/message.c:
19347 * objects/UML/note.c:
19348 * objects/UML/object.c:
19349 * objects/UML/realizes.c:
19350 * objects/UML/small_package.c:
19351 * objects/UML/state.c:
19352 * objects/UML/usecase.c:
19353 * objects/network/bus.c:
19354 * objects/standard/arc.c:
19355 * objects/standard/box.c:
19356 * objects/standard/ellipse.c:
19357 * objects/standard/image.c:
19358 * objects/standard/line.c:
19359 * objects/standard/polyline.c:
19360 * objects/standard/textobj.c:
19361 * objects/standard/zigzagline.c:
19362 Removed all traces of is_empty(). It doesn't work in an
19365 1999-07-25 Alexander Larsson <alla@lysator.liu.se>
19370 Undoable grouping and ungrouping.
19372 * app/layer_dialog.c:
19373 * lib/diagramdata.[ch]:
19374 Undoable layer ops.
19376 * app/modify_tool.c:
19377 Undoable unconnect on handle move.
19379 * lib/orth_conn.[ch]:
19380 Working undoable add/remove segment.
19381 Removed endpoint_handles from OrthConn, renamed
19382 midpoint_handles to handles and put the endpoint
19385 * objects/standard/zigzagline.c:
19386 * objects/ER/participation.c:
19387 * objects/UML/association.c:
19388 * objects/UML/dependency.c:
19389 * objects/UML/generalization.c:
19390 * objects/UML/realizes.c:
19391 Update for the changes in OrthConn
19393 1999-07-23 Karsten Weiss <karsten@addx.au.s.shuttle.de>
19395 * configure.in: Added "de" to ALL_LINGUAS.
19397 1999-07-17 Alexander Larsson <alla@lysator.liu.se>
19409 Don't have the <Display> etc part of the menu strings
19410 i18n:ed. Patch from Fabrice.Bellet@imag.fr.
19413 Don't have the <Display> etc part of the menu strings
19414 i18n:ed. Patch from Fabrice.Bellet@imag.fr.
19415 Don't remove is_empty() objects, that don't work with undo.
19417 * lib/objchange.[ch]:
19419 Definition of ObjectChange. This is essentially an Change
19420 exported to the object libs. It encapsulates a change made
19421 to an objects internals. It can be applied, reverted and freed.
19422 There are also utility functions for doing ObjectChanges that
19423 only get/set the whole state of an object to store the change.
19424 This cannot be used when the object change deletes or adds a
19425 object which has references from other objects, eg. Handles which
19426 might be connected.
19429 Added objchange.c and objchange.h.
19432 Return NULL when loading fails.
19435 Menu callbacks return an ObjectChange.
19438 Reference objchange.o
19441 Key events return ObjectChange if they modify the object.
19445 Added object_add_handle_at() function.
19446 Apply properties returns an ObjectChange.
19447 Remove ObjectState and the get/set state functions, these
19448 don't always work. Use the new ObjectChange instead.
19451 Added object_add_handle_at() function implementation.
19453 * lib/orth_conn.[ch]:
19454 Use ObjectChange. Not finished yet.
19455 Removed get/set/free state functions
19457 * lib/poly_conn.[ch]:
19459 Don't remove segments that are small.
19460 Removed get/set/free state functions
19464 Added functions to get/set all text attributes.
19466 * objects/standard/arc.c:
19467 * objects/standard/box.c:
19468 * objects/standard/ellipse.c:
19469 * objects/standard/image.c:
19470 * objects/standard/line.c:
19471 * objects/standard/polyline.c:
19472 * objects/standard/textobj.c:
19473 * objects/standard/zigzagline.c:
19475 fixed bug in image_set_state.
19476 zigzagline.c not finished yet.
19478 * app/disp_callbacks.c:
19479 Use ObjectChange that are returned from menu callbacks and
19480 key_events for undo.
19482 * app/properties.c:
19483 Use ObjectChange that are returned from properties apply
19488 New undo type: ObjectChangeChange. This wraps a change to the
19489 internals of an object (and ObjectChange) in code that does
19490 app specific stuff (object_add_updates etc.)
19492 1999-07-11 Alexander Larsson <alla@lysator.liu.se>
19494 * lib/orth_conn.[ch]:
19495 Added code for add/delete segment.
19497 * objects/standard/zigzagline.c:
19498 Use the new orth_conn code.
19501 1999-07-08 Fredrik Hallenberg <hallon@lysator.liu.se>
19503 * objects/FS/Makefile.am
19504 Removed fs.h from sources.
19510 1999-07-07 Alexander Larsson <alla@lysator.liu.se>
19512 * app/disp_callbacks.c (ddisplay_canvas_events):
19513 Fix for bug. Every other arrow-key press got lost.
19514 patch from Mr. Data Esq. <data@r47h102.res.gatech.edu>
19517 change automake.sh to autogen.sh
19519 1999-06-24 Alexander Larsson <alla@lysator.liu.se>
19522 Don't remove 'empty' objects.
19523 This violent destruction of objects won't work
19524 with the new undo framework.
19526 * app/disp_callbacks.c:
19527 Save undo info for object menu calls and key_events.
19529 * app/properties.c:
19530 Save undo info on properties apply.
19532 * lib/dia_image.[ch]:
19533 Add refcounting for images.
19535 * app/render_eps.c:
19536 * app/render_gdk.c:
19538 DiaImage * -> DiaImage
19541 Add undo functions for object state changes.
19545 change of semntics for focus->key_event.
19546 Now returns TRUE if the object recieving the event
19552 * lib/orth_conn.[ch]:
19553 Don't automatically create and delete segments when
19554 handles are moved. This is incompatible with undo.
19555 Added state get, set and free functions.
19557 * lib/orth_conn.[ch]:
19558 Added state get, set and free functions.
19560 * objects/UML/object.c:
19561 * objects/UML/uml.c:
19562 Fixed typo "UML - Objet" -> "UML - Object".
19563 Saved old for backwards compatibility.
19565 * objects/standard/arc.c:
19566 * objects/standard/box.c:
19567 * objects/standard/ellipse.c:
19568 * objects/standard/image.c:
19569 * objects/standard/line.c:
19570 * objects/standard/polyline.c:
19571 * objects/standard/textobj.c:
19572 * objects/standard/zigzagline.c:
19573 Added get/set state functions.
19574 Textobj has a redo crash-bug.
19575 Zigzagline needs object menus to add segments.
19578 1999-06-20 Alexander Larsson <alla@lysator.liu.se>
19580 * app/render_eps.c (set_dashlength):
19581 Don't generate eps files with zero dash-length.
19583 1999-06-16 Alexander Larsson <alla@lysator.liu.se>
19586 * app/create_object.c:
19588 Finished undo for create and paste.
19591 Started properties undo.
19593 1999-06-14 Alexander Larsson <alla@lysator.liu.se>
19596 Added resizeable groups.
19599 Removed unused variable.
19603 Undo/redo for cut/delete done.
19605 * app/create_object.c:
19606 * app/modify_tool.c:
19607 * lib/diagramdata.[ch]:
19608 * app/diagram.[ch]:
19609 renamed diagram_add_selected -> diagram_select
19610 renamed diagram_remove_selected -> diagram_unselect
19612 * app/properties.[ch]:
19613 Added properties_hide_if_shown() function.
19615 1999-06-13 Alexander Larsson <alla@lysator.liu.se>
19621 * app/commands.[ch]
19622 * app/modify_tool.[ch]
19623 * app/object_ops.[ch]
19624 * app/connectionpoint_ops.c
19626 Use undo functions.
19627 WARNING: Not finished. Will break.
19628 Finished: move object, move handle.
19631 Added diagram_selected_break_external() function.
19632 It removes all connections between selected objects
19634 Add undo stack to Diagram.
19636 * lib/diagramdata.[ch]
19637 Added layer_remove_objects() function
19639 1999-06-11 Fredrik Hallenberg <hallon@lysator.liu.se>
19641 * objects/FS/Makefile.am
19642 * objects/sybase/Makefile.am
19643 Now uses GNOME_CFLAGS.
19646 Now compiles with GNOME even if popt.h isn't available.
19648 1999-06-10 Alexander Larsson <alla@lysator.liu.se>
19651 * objects/Makefile.am
19653 First version of sybase objects from
19654 Brian Bruns <camber@umcc.ais.org>
19656 1999-06-10 Fredrik Hallenberg <hallon@lysator.liu.se>
19659 Added fr to ALL_LINGUAS
19661 1999-06-09 Fredrik Hallenberg <hallon@lysator.liu.se>
19665 Popt-code is activated if popt is available.
19667 1999-06-08 Alexander Larsson <alla@lysator.liu.se>
19669 This is a patch from David Thompson <dcthomp@mail.utexas.edu>
19671 * lib/orth_conn.[ch]:
19672 Added orthconn_get_middle_handle()
19675 Added text_set_cursor_at_end()
19678 Added first version of functions structure diagrams.
19680 1999-05-24 Alexander Larsson <alla@lysator.liu.se>
19682 * app/modify_tool.c:
19683 Include math.h to remove warning.
19685 * app/commands.c (dialogs_properties_callback):
19686 Bring up correct properties dialog when selected
19688 From Dan Cohn <dan@internap.com>
19690 1999-05-20 Alexander Larsson <alla@lysator.liu.se>
19692 Patch from Lars R. Clausen
19694 * app/modify_tool.c:
19695 Changed abs to fabs.
19697 1999-05-19 Alexander Larsson <alla@lysator.liu.se>
19703 1999-05-18 Alexander Larsson <alla@lysator.liu.se>
19705 Patches from Dan Cohn <dan@internap.com>
19707 * app/commands.[ch]:
19708 * app/display.[ch]:
19710 * app/preferences.[ch]:
19711 Implements ability to turn on/off connection points in
19712 current drawing and in global prefs.
19714 1999-05-18 Alexander Larsson <alla@lysator.liu.se>
19716 * lib/widgets.c (dia_line_style_selector_init):
19719 * lib/diagramdata.c (layer_update_extents):
19720 Fixed uninitialized variable error.
19722 1999-05-17 Alexander Larsson <alla@lysator.liu.se>
19725 Made some changes to the gdk_imlib visual+colormap setup.
19727 1999-05-17 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
19729 * objects/UML/usecase.c:
19730 * objects/UML/lifeline.c
19733 * objects/UML/object.c:
19734 * objects/UML/message.c:
19735 Changed font from Courier to Helvetica.
19739 Added dash lenth to the LineStyle widget.
19741 * objects/standard/ellipse.c :
19742 * objects/standard/zigzagline.c:
19743 * objects/standard/line.c:
19744 Added dash lenght property.
19746 1999-05-16 Alexander Larsson <alla@lysator.liu.se>
19748 * app/render_eps.c:
19749 First shot at latin1 encoded eps files.
19750 Works, but the eps files get a bit large.
19752 1999-05-16 Alexander Larsson <alla@lysator.liu.se>
19754 * objects/UML/class.[ch]:
19755 * objects/UML/uml.[ch]:
19756 Reverted the line wrap changes.
19757 Some day this might return, but it has to be selectable and
19758 default to off for loaded objects, otherwise it breaks file
19759 format compatibility.
19760 There was also some complains about how it looked, so a making it
19761 selectable is good for this too.
19763 1999-05-15 Alexander Larsson <alla@lysator.liu.se>
19765 * objects/UML/class.[ch]:
19766 Some indentation cleanup.
19767 Added wrap_lines variable to class.
19768 I'll fix the line break stuff tomorrow.
19770 1999-05-13 Alexander Larsson <alla@lysator.liu.se>
19773 Added ref to poly_conn.o.
19775 * objects/standard/polyline.c (polyline_draw):
19776 * objects/standard/zigzagline.c (zigzagline_draw):
19777 * objects/standard/arc.c (arc_draw):
19778 * objects/standard/line.c (line_draw):
19779 Draw lines before arrows. This makes hollow arrows not
19782 1999-05-13 Alexander Larsson <alla@lysator.liu.se>
19784 Changes from Kim Peasley <kpeasley@ior.com>
19786 * objects/UML/class.c:
19787 Break lines with long operations so classes won't be
19790 * objects/UML/uml.[ch]:
19791 Helperfunctions for the above.
19793 * objects/UML/objects.c:
19794 Fix bug that duplicated the text in the attributes
19795 textwidget each time the object was selected.
19797 1999-05-12 Alexander Larsson <alla@lysator.liu.se>
19799 Changes from Lars R. Clausen <lrclause@cs.uiuc.edu>
19801 * app/modify_tool.c:
19802 * app/modify_tool.h:
19803 Control-drag is restricted to vertical/horizontal movement
19806 ModifierKeys argument added to object_move_handle
19808 * app/connectionpoint_ops.c:
19809 * app/create_object.c:
19810 * app/object_ops.c:
19811 * objects/ER/attribute.c:
19812 * objects/ER/entity.c:
19813 * objects/ER/participation.c:
19814 * objects/ER/relationship.c:
19815 * objects/UML/actor.c:
19816 * objects/UML/association.c:
19817 * objects/UML/class.c:
19818 * objects/UML/classicon.c:
19819 * objects/UML/component.c:
19820 * objects/UML/constraint.c:
19821 * objects/UML/dependency.c:
19822 * objects/UML/generalization.c:
19823 * objects/UML/implements.c:
19824 * objects/UML/large_package.c:
19825 * objects/UML/lifeline.c:
19826 * objects/UML/message.c:
19827 * objects/UML/note.c:
19828 * objects/UML/object.c:
19829 * objects/UML/realizes.c:
19830 * objects/UML/small_package.c:
19831 * objects/UML/state.c:
19832 * objects/UML/usecase.c:
19833 * objects/network/bus.c:
19834 * objects/standard/arc.c:
19835 * objects/standard/box.c:
19836 * objects/standard/ellipse.c:
19837 * objects/standard/image.c:
19838 * objects/standard/line.c:
19839 * objects/standard/polyline.c:
19840 * objects/standard/textobj.c:
19841 * objects/standard/zigzagline.c:
19842 Changed calls to move_handle to pass the new argument.
19846 Default line width, color etc #define'd
19849 Updates of danish menus
19851 1999-05-08 Fredrik Hallenberg <hallon@lysator.liu.se>
19854 * dia_gnome_icon.png
19855 * dia_gnome_menu_icon.png
19857 Graphics by Toussaint Frédéric <ftoussin@club-internet.fr>.
19860 About dialog shows dia_logo.png. Removed the GNOME about dialog.
19863 Distribute the icons and install logo in pkgdatadir.
19866 Added DATADIR-define.
19868 1999-04-28 Alexander Larsson <alla@lysator.liu.se>
19869 Patches from Enrico Scholz <enrico.scholz@wirtschaft.tu-chemnitz.de>
19872 Updated version number, made setup quiet, can build from cvs,
19873 --enable-gnome, now using automake 1.4 DESTDIR feature, install-strip
19876 * objects/ER/Makefile.am
19877 * objects/UML/Makefile.am
19878 * objects/network/Makefile.am
19879 * objects/standard/Makefile.am
19880 now builds better with gnome
19882 * objects/UML/class_dialog.c
19883 Fixed typo -> po files must be updated too!!
19885 1999-04-28 Alexander Larsson <alla@lysator.liu.se>
19888 Added reference so that widgets.o gets linked to the app.
19890 1999-04-23 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
19892 * objects/UML/classicon.c:
19895 * objects/UML/actor.c:
19896 Changed position of 'snap-to-grid' so connection points are
19899 1999-04-22 Alexander Larsson <alla@lysator.liu.se>
19901 * objects/UML/classicon.c:
19902 Changed position of 'snap-to-grid'.
19903 By Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
19905 1999-04-22 Alexander Larsson <alla@lysator.liu.se>
19907 * objects/network/antenna.c
19908 * objects/network/flash.c
19909 * objects/network/hub.c
19910 * objects/network/modem.c
19911 * objects/network/modularswitch.c
19912 * objects/network/rj45plug.c
19913 * objects/network/scead-plug.c
19914 * objects/network/network.c
19915 * objects/network/Makefile.am
19916 * objects/network/pixmaps/antenna.xpm
19917 * objects/network/pixmaps/flash.xpm
19918 * objects/network/pixmaps/hub.xpm
19919 * objects/network/pixmaps/modem.xpm
19920 * objects/network/pixmaps/modularswitch.xpm
19921 * objects/network/pixmaps/rj45plug.xpm
19922 * objects/network/pixmaps/sceadplug.xpm
19923 * objects/network/pixmaps/Makefile.am
19924 Lots of new network objects from
19925 Roland Steinbach <roland@support-system.com>.
19927 1999-04-15 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
19929 * objects/UML/classicon.c:
19930 Fixed connection positions, saved type as int (it has 3 states),
19931 and other small fixes.
19933 1999-04-14 Alexander Larsson <alla@lysator.liu.se>
19935 * app/preferences.c:
19937 Added preference compress_save. It lets dia save uncompressed
19940 * objects/UML/class.c:
19941 Fixed bug with size calculation on methods that had class scope.
19943 1999-04-13 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
19945 * objects/UML/usecase.c:
19946 Added collaboration mode
19947 Fixed connection points with text > ellipse bug and other
19950 * objects/UML/state.c:
19951 Fixed bug of bad position of text after being either end
19952 or begin, moved and returned to text
19954 1999-04-12 Andreas Jaeger <aj@arthur.rhein-neckar.de>
19956 * app/preferences.c: Add prototype declaration for prefs_apply.
19958 1999-04-11 Alexander Larsson <alla@lysator.liu.se>
19960 * app/preferences.c:
19962 Apply don't hide window.
19964 * app/properties.c:
19967 * objects/UML/object.c:
19968 * objdcts/UML/state.c:
19969 Some data was not copied on copy.
19972 Ben Hochstedler <benh@eeyore.moneng.mei.com>
19974 1999-04-09 Alexander Larsson <alla@lysator.liu.se>
19977 Changed link order between X and libxml.
19978 Some people had problems with an old libz in their
19981 1999-04-09 Kjartan Maraas <kmaraas@online.no>
19983 * po/no.po: updated translation.
19985 1999-04-08 Lars R. Clausen <lrclause@cs.uiuc.edu>
19987 * lib/message.c (message_error):
19990 * app/commands.[ch]:
19991 * app/diagram.[ch]:
19992 Added begining of xfig importing
19994 1999-04-08 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
19996 * objects/UML/pixmaps/state.xpm:
19997 * objects/UML/state.c:
19998 New UML object state machine.
20000 * objects/UML/uml.c:
20001 * objects/UML/Makefile.am:
20002 * objects/UML/pixmaps/Makefile.am:
20003 Added the state object.
20005 1999-04-08 Alejandro Aguilar Sierra <ale@bucefalo>
20007 * objects/UML/usecase.c:
20008 Added dialog to allow move text outside the ellipse.
20010 1999-04-08 Alexander Larsson <alla@lysator.liu.se>
20012 * Released Dia 0.41
20013 Tag called DIA_0_41
20018 1999-04-08 Alexander Larsson <alla@lysator.liu.se>
20021 Updated version number to 0.41
20026 1999-04-04 Fredrik Hallenberg <hallon@lysator.liu.se>
20029 Changed errormessage for --export-to-ps. Removed call to
20030 g_log_set_always_fatal().
20033 * app/disp_callbacks.c
20035 (i18n) Removed gettext from some debugmessages.
20038 Small fix in GNOME-menus. Added warning that will help track
20039 problems with translations.
20042 (i18n) Updated swedish translation.
20044 1999-04-02 Alexander Larsson <alla@lysator.liu.se>
20049 1999-04-01 Alexander Larsson <alla@lysator.liu.se>
20055 1999-04-01 Alexander Larsson <alla@lysator.liu.se>
20058 (i18n) Updated the danish translation.
20059 From Lars R. Clausen.
20061 1999-04-01 Fredrik Hallenberg <hallon@lysator.liu.se>
20064 (i18n) The popup menu is translated now.
20067 (i18n) Updated swedish translation.
20069 1999-03-29 Alexander Larsson <alla@lysator.liu.se>
20071 * Released Dia 0.40
20072 Tag called DIA_0_40
20075 Updated for new release
20077 1999-03-29 Alexander Larsson <alla@lysator.liu.se>
20079 * objects/network/bus.c:
20080 Added initialization of properties dialog to NULL.
20082 * app/commands.c (edit_cut_callback):
20083 Update menu sensitivity when cut object.
20085 * app/modify_tool.c (click_select_object):
20086 * app/modify_tool.c (modify_button_release):
20087 Call diagram_update_menu_sensitivity() when
20088 selecting objects to update stuff that depends
20089 on selected/not selected.
20091 1999-03-29 Alexander Larsson <alla@lysator.liu.se>
20094 Change order of subdir so that libintl.a builds.
20095 Now passed make distcheck.
20097 1999-03-28 Alexander Larsson <alla@lysator.liu.se>
20099 * lib/font.c (init_x11_font):
20102 1999-03-28 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
20104 * objects/UML/pixmaps/classicon.xpm:
20105 * objects/UML/classicon.c:
20106 * objects/UML/uml.c:
20107 Added the class stereotype icon objects.
20110 Changed default ps extension from .ps to .eps.
20112 1999-03-28 Alexander Larsson <alla@lysator.liu.se>
20115 Added diamenu.h and intl.h
20120 * objects/UML/pixmaps/Makefile.am:
20123 * objects/standard/pixmaps/Makefile.am:
20126 1999-03-28 Alexander Larsson <alla@lysator.liu.se>
20129 Use a scalable font before fixed when real font not found.
20134 * objects/standard/image.c:
20135 Better handling of loading/saving of images.
20138 Added some text about cvs, fonts and rewrote some parts.
20141 Updated with new stuff.
20144 Bump up version number to 0.40.
20146 1999-03-28 Alexander Larsson <alla@lysator.liu.se>
20149 Moved diagram_add_ddisplay() call into new_display().
20150 Fixed new_display to not use uninitialized variables
20151 causing loaded files to show up as black (or garbage).
20155 Removed unneeded calls to diagram_add_ddisplay().
20157 1999-03-28 Alexander Larsson <alla@lysator.liu.se>
20159 * objects/UML/lifeline.c:
20161 Patch from Andreas Jaeger <aj@arthur.rhein-neckar.de>.
20163 * objects/UML/message.c:
20164 Fixed bug loading messages with null-text.
20165 Patch from Andreas Jaeger <aj@arthur.rhein-neckar.de>.
20167 1999-03-27 Fredrik Hallenberg <hallon@lysator.liu.se>
20170 Updated swedish translation.
20173 (GNOME) Removed help-browser from help menu. Fixed typo.
20176 (GNOME) Accelerators in diagrams should work now.
20178 1999-03-25 Fredrik Hallenberg <hallon@lysator.liu.se>
20183 * app/disp_callbacks.c
20187 * app/preferences.c
20189 * lib/diagramdata.c
20195 * objects/network/*.c
20196 * objects/standard/*.c
20197 * po/update_pofiles_in.sh
20199 More i18n. All strings (expect rare debug messages) can be
20200 translated now. Moved intl.h from app to lib. Updated
20201 update_pofiles_in.sh to check all .c-files.
20203 1999-03-23 Alexander Larsson <alla@lysator.liu.se>
20205 * app/disp_callbacks.c (ddisplay_canvas_events):
20206 Don't drop keys while num-lock, scroll-lock etc is on.
20208 1999-03-22 Alexander Larsson <alla@lysator.liu.se>
20210 * app/render_eps.c (draw_image):
20211 Fixed exporting of images.
20212 Still not perfect, but not outright buggy.
20214 1999-03-22 Alexander Larsson <alla@lysator.liu.se>
20218 Added hungarian translation. By Shooby Ban <bansz@szif.hu>.
20221 Added $* to the dia call in run_dia.sh
20223 1999-03-22 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
20226 Added color_equals() call.
20228 * objects/standard/arc.c:
20229 * objects/standard/line.c:
20230 Don't save unneccesary data.
20232 * objects/standard/box.c:
20233 * objects/standard/ellipse.c:
20234 * objects/standard/image.c:
20235 * objects/standard/polyline.c:
20236 * objects/standard/zigzagline.c:
20237 Share properties dialog.
20238 Don't save unneccesary data.
20240 1999-03-22 Seth Alves <alves@hungry.com>
20245 small changes so that gnome menus aren't broken
20247 1999-03-22 Alexander Larsson <alla@lysator.liu.se>
20250 Added danish translation from lrclause@cs.uiuc.edu.
20255 * po/update_pofiles_in.sh:
20256 Added script that updates POFILES.in.
20257 This should probably be run automatically from somewhere.
20259 1999-03-19 Alexander Larsson <alla@lysator.liu.se>
20261 * app/diagram.[ch]:
20262 Added function diagram_update_menu_sensitivity() which
20263 sets the sensitivity of some menu items. This function
20264 is called at each diagram state change (from diagram_modified()).
20265 This is needed because otherwise the keyboard accelerators
20266 don't work correctly.
20268 * app/display.[ch]:
20269 Changed display_set_menu_sensitivity() to display_update_menu_state().
20270 Moved lots of code to diagram_update_menu_sensitivity() in
20271 diagram.c. Optimized to only look up menu-items from path:s once.
20273 * app/disp_callbacks.c:
20275 When we get a GDK_FOCUS_CHANGE, update menu sensitivity.
20276 Need to set GDK_FOCUS_CHANGE_MASK.
20278 * app/create_object.c:
20279 Call diagram_modified when an object has been created and
20280 selected so that the menu sensitivity is updated.
20283 removed menus_set_sensitive() and menus_set_state(). Exported
20284 renamed function menus_get_item_from_path().
20286 1999-03-15 Alexander Larsson <alla@lysator.liu.se>
20288 * app/disp_callbacks.c:
20289 Show (empty) object menus on object that has none.
20290 Show title on object menus.
20293 Set zoom factor correctly when opening new displays.
20294 Better setting of scrollbars.
20298 Some reformating cleanup.
20301 Added title to object menus.
20304 Added object menu method (NULL-valued) to all objects.
20306 * objects/standard/polyline.c:
20307 Added title to object menu.
20309 1999-03-14 Alexander Larsson <alla@lysator.liu.se>
20311 * app/preferences.[ch]:
20312 New files. Implements the preferences dialog and
20313 loading/saving of ~/.diarc.
20316 Added preferences.[ch].
20319 Load preferences on startup.
20321 * app/commands.[ch]:
20322 Added file_preferences_callback to show the preferences dialog.
20324 * app/create_object.c:
20325 Update extents when creating object.
20326 Use the reset_tools_after_create preferences setting.
20329 Use preferences when creating new display.
20332 Add preferences to menu.
20335 * app/layer_dialog.c:
20336 * app/properties.c:
20337 Don't allow shrinking of dialog.
20338 Add i18n of some strings.
20340 1999-03-11 Kjartan Maraas <kmaraas@fib.hl.no>
20342 Norwegian translation added.
20344 1999-03-11 Alexander Larsson <alla@lysator.liu.se>
20346 * objects/standard/line.c:
20347 * objects/standard/arc.c:
20348 * objects/standard/polyline.c:
20349 * objects/standard/zigzagline.c:
20350 Loading of arrow data fixed.
20352 1999-03-09 Alexander Larsson <alla@lysator.liu.se>
20355 Update extents when saving and exporting to postscript.
20356 Fixes a bug with postscript bounding-box being wrong.
20359 Changed border width from 5 to 2.
20362 Move grouped objects by the move-point of the first object.
20363 Fixes bug that made all objects in the group be off-grid
20364 when moving the group, even though all objects was on-grid.
20366 * app/layer_dialog.c:
20367 Update extents when changing layer.
20369 1999-03-08 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
20371 * objects/UML/uml.c:
20372 * objects/UML/component.c:
20373 * objects/UML/pixmaps/component.xpm:
20374 Added the UML component object
20376 1999-03-04 Seth Alves <alves@hungry.com>
20378 * objects/UML/generalization.c (generalization_create): avoid
20379 math on uninitialized genlz->text_width (NaN causes sigfpe)
20381 * objects/UML/realizes.c (realizes_create): same
20383 * objects/UML/dependency.c (dependency_create): same
20385 1999-03-01 Seth Alves <alves@hungry.com>
20387 * app/display.c (ddisplay_active): don't fly a warning panel
20388 if ddisplay_active is called when no views are open.
20390 * app/commands.c (set_default_file_selection_directory): set
20391 file selector's default directory if there is already
20394 1999-02-28 Alexander Larsson <alla@lysator.liu.se>
20397 New info about imlib requirements.
20400 Added lib/pixmaps/Makefile to created makefiles.
20404 Change from obsoleted to newer gtk calls.
20407 Pass filename of the diagram when loading and saving.
20408 This creates better oportunities to handle filename saving.
20411 Pass filenames to load and save methods.
20413 * lib/dia_image.[ch]:
20414 Added dia_image_get_broken() call that returns a image which
20415 is used for 'broken' images.
20417 * lib/pixmaps/.cvsignore:
20418 * lib/pixmaps/Makefile.am:
20419 * lib/pixmaps/broken.xpm:
20420 New files for the broken image bitmap.
20423 Fixed bug with double destroyed filedialog.
20426 Updated load and save prototypes to use the new filename argument.
20429 Render broken image instead of line when got no image.
20430 Use the new filename in load and save to save (if possible)
20431 relative pathnames and to better try to find loaded images.
20433 1999-02-28 Alexander Larsson <alla@lysator.liu.se>
20436 Some updates to the todo file.
20440 Place over/place over => sent to back/bring to front.
20441 Added some keyboard shortcuts to menus.
20443 1999-02-28 Alexander Larsson <alla@lysator.liu.se>
20446 Changed string saving/loading to a new method. This should
20447 be much better att handling &,<,> and whitespaces.
20448 Loading strings of the old kind is still supported for backwards
20451 * samples/ER-demo.dia:
20452 * samples/UML-demo.dia:
20453 Updated to use the new strings.
20456 statusbar modified update fix.
20458 1999-02-27 Seth Alves <alves@hungry.com>
20460 * app/app_procs.c (app_init): added a --export-to-ps option
20461 which will cause dia to load a dia file and save it as ps
20462 and then exit. this is a little bogus, because it still
20463 pops up a window. this option only shows up if --enable-gnome
20466 * app/display.c (display_set_menu_sensitivity): no Edit/Delete
20467 menu when built with --enable-gnome
20469 * app/interface.c (create_display_shell): build status bar
20470 even if --enable-gnome is used
20472 * app/menus.c: menu fixes for --enable-gnome
20474 * app/commands.c (file_open_dialog_ok_callback): fixed up
20475 menus when --enable-gnome is used
20476 (file_export_to_eps_callback): set a default file name
20477 when dialog is created
20479 1999-02-27 Alexander Larsson <alex@c125.ryd.student.liu.se>
20481 * objects/UML/association.c (association_create):
20482 Fixed usage of not initialized variable.
20483 Pointed out by Seth Alves <alves@hungry.com>.
20485 1999-02-24 Alexander Larsson <alex@c125.ryd.student.liu.se>
20488 Fixed detection of gnome-xml.
20489 From Valtteri Vuorikoski <vuori@k.notcom.org>.
20492 Fixed error detection on dlsym calls.
20493 From Valtteri Vuorikoski <vuori@k.notcom.org>.
20495 1999-02-23 Alexander Larsson <alla@lysator.liu.se>
20497 * objects/UML/message.c (fill_in_dialog):
20500 1999-02-22 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
20502 * objects/standard/zigzagline.c:
20503 * objects/standard/polyline.c:
20504 * objects/standard/line.c:
20505 * objects/standard/arc.c:
20509 Support for sizeable arrows.
20511 * objects/standard/box.c:
20512 * objects/standard/ellipse.c:
20513 * objects/standard/image.c:
20514 Changed creation handle to lower-right.
20515 Transparent box/ellipse.
20517 * objects/standard/image.c:
20518 Better layout of properties boxes.
20520 1999-02-20 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
20522 * objects/UML/message.c (fill_in_dialog):
20523 Fixed dialog fill in. Common dialog for all messages.
20525 * objects/UML/object.c:
20526 Added multiple instance. Dialog related bugs fixed.
20527 Common dialog for all instances. Completed copy and destroy.
20529 * objects/UML/lifeline.c (lifeline_load):
20530 Conn initialization bug fixed and few bad loading prevention flags.
20531 Common dialog for all lifeline objects.
20533 1999-02-15 Alexander Larsson <alla@lysator.liu.se>
20535 * lib/dia_image.[ch]:
20536 More work on the DiaImage abstraction.
20539 * app/render_eps.c:
20540 * app/render_gdk.c:
20541 * objects/standard/image.c:
20542 Use the new DiaImage calls.
20544 1999-02-15 Alexander Larsson <alla@lysator.liu.se>
20548 Reversed the meaning of align horizontal/vertical.
20550 1999-02-15 Alexander Larsson <alla@lysator.liu.se>
20552 * app/load_save.c (diagram_load):
20553 Statusbar update fix.
20555 1999-02-15 Alexander Larsson <alla@lysator.liu.se>
20557 * app/interface.c (create_display_shell):
20558 Fixed status bar size.
20560 1999-02-15 Alexander Larsson <alla@lysator.liu.se>
20562 * lib/dia_image.[ch]:
20563 Added extern declaration for dia_image_release.
20564 Removed dia_image_draw, as it's not neseccary.
20566 1999-02-14 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
20568 * app/object_ops.c:
20570 Added equal distance alignment both vertical and horizontal.
20572 * objects/UML/object.c:
20573 Added a couple of attributes to load/read that were missing.
20575 * objects/UML/lifeline.c:
20576 Better handling of handles. Fixed another bug I forgot to add
20579 1999-02-13 Alexander Larsson <alla@lysator.liu.se>
20581 Patch from Lars Clausen <lrclause@shasta.cs.uiuc.edu>
20583 * lib/dia_image.[ch]:
20585 New files. DiaImage wraps the GdkImlibImage.
20588 * app/render_eps.c:
20589 * app/render_gdk.c:
20590 * lib/render_store.[ch]:
20591 * objects/standard/image.c:
20592 Use the new DiaImagetype.
20595 Removed unused variable to eliminate warning.
20597 1999-02-11 Alexander Larsson <alla@lysator.liu.se>
20599 * objects/standard/box.c:
20600 Added rounded corners on the box object.
20602 * lib/widgets.[ch]:
20603 Updated the DiaFileSelector widget.
20605 1999-02-09 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
20607 * objects/UML/object.c (objet_draw):
20608 Completed underlining of all object name lines.
20610 * objects/UML/message.c (fill_in_dialog):
20611 Fixed a bug that filled incorrectly the message's dialog.
20613 * objects/UML/lifeline.c (lifeline_load):
20614 Some cleanning and fixed a couple of bugs that caused
20615 crashes after reading diagrams with lifelines.
20618 Added flags to prevent crash with void strings
20620 1999-02-07 Matthias Köster <Matthias.Koester@Informatik.Uni-Oldenburg.DE>
20621 * app/display.[ch]:
20622 Added statusbar to the display widget. Currently shows the zoom
20623 factor and modified flag of the viewed diagram. The statusbar is
20624 updated upon calls to ddisplay_zoom and ddisplay_update_statusbar.
20625 This caused the following additions:
20627 * app/diagram.[ch]:
20628 Added function diagram_set_modified. Calls
20629 ddisplay_update_statusbar for all displays showing the modified diagram.
20630 Changed diagram_modified to call diagram_set_modified.
20633 Added the creation of the statusbar.
20636 diagram_save now calls diagram_set_modified instead of setting
20637 dia->modified. Needed to force call to display_update_statusbar
20640 Changed the way view_show_all works. Now calls ddisplay_zoom
20641 instead of directly setting the zoom_factor, so the zoom factor is
20642 correctly shown in the statusbar.
20645 Fixed rubberband zoom to use ddisplay_zoom().
20647 1999-02-07 Fredrik Hallenberg <hallon@lysator.liu.se>
20650 Rudimentary GNOME session management.
20652 * app/disp_callbacks.c
20656 GNOME menus. Problems:
20657 Callbacks doesn't get user_data.
20658 Weird warnings when creating popup menus.
20659 menus_set_sensitive(), menus_set_state() doesn't work.
20661 1999-02-05 Lars Clausen <lrclause@shasta.cs.uiuc.edu>
20664 Add AM_PATH_GDK_IMLIB() call.
20667 Add gdk_imlib to linking flags.
20671 Print library-loading error messages on stdout too.
20674 Add standard image to toolbox.
20676 * app/render_eps.c:
20677 Set a more reasonable dot length. Fixed
20678 missing initialization of dot length.
20679 Added draw_image methods.
20681 * app/render_gdk.c (new_gdk_renderer):
20682 Dot a bit wider. Looks good in normal mode now.
20684 * objects/standard/image.c:
20685 * objects/standard/pixmaps/image.xpm:
20686 New files. Standard object for images.
20688 * app/render_eps.c (set_linestyle):
20689 * app/render_gdk.c (set_linestyle):
20690 * lib/widgets.c (dia_line_style_selector_init):
20692 New line style DOTTED.
20695 * lib/render_store.c:
20696 Change DrawImage call to use gdk_imlib.
20698 * lib/widgets.[ch]:
20699 Added widgets for selecting files.
20700 Added dotted to the linestyle selector.
20702 1999-02-06 Alexander Larsson <alla@lysator.liu.se>
20704 * objects/network/printer.c:
20705 * objects/network/network.c:
20706 * objects/network/pixmaps/printer.xpm:
20707 * objects/network/.cvsignore:
20708 * objects/network/Makefile.am:
20709 * objects/network/pixmaps/Makefile.am:
20710 New printer object in network.
20711 From Martin Hawlisch <hawlisch@roxi.rz.fh-mannheim.de>
20714 Added known XML bug.
20716 1999-02-06 Alexander Larsson <alla@lysator.liu.se>
20720 Reverted back from #include <gnome-xml/tree.h> to
20721 #include <tree.h> as this is fixed by the xml-config program.
20722 The former way broke for some people.
20723 Reported by blizzard@redhat.com.
20725 * objects/UML/lifeline.c:
20726 * objects/UML/message.c:
20727 * objects/UML/object.c:
20728 Removed some warnings.
20730 1999-02-04 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
20732 * objects/UML/lifeline.c:
20733 Fixed connection points over the life line when the focus of
20734 control is not drawn.
20736 * objects/UML/message.c:
20737 Now a recursive message can be freely resized using the handles.
20739 1999-02-02 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
20741 * objects/UML/lifeline.c:
20742 Added connection points.
20743 Added properties dialog with the option to draw/hide focus of control
20744 box and destruction mark.
20746 * objects/UML/object.c:
20747 Added properties dialog and stereotype, explicit state and attributes.
20748 It's also possible to mark the object as active.
20750 * objects/UML/pixmaps/object.xpm:
20753 * objects/UML/message.c:
20754 Added "recursive" message type (was not necessary to use OrthConn).
20756 1999-02-02 Alexander Larsson <alla@lysator.liu.se>
20758 * objects/standard/arc.c:
20759 Removed old debug code. Fixes a visual bug. From lrclause@cs.uiuc.edu.
20761 1999-02-01 Alexander Larsson <alla@lysator.liu.se>
20763 Patch from Lars R. Clausen <lrclause@cs.uiuc.edu>
20767 Update xml includes to gnome-xml/*.h.
20769 * objects/standard/arc.c:
20770 Only one property dialog per type.
20771 Fix arrows directions.
20773 * objects/standard/box.c:
20774 * objects/standard/ellipse.c:
20775 * objects/standard/textobj.c
20776 Added default properties dialog.
20779 1999-01-31 Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
20781 * objects/UML/Makefile.am:
20782 * objects/UML/uml.c:
20783 * objects/UML/lifeline.c:
20784 * objects/UML/object.c:
20785 * objects/UML/message.c:
20786 * objects/UML/pixmaps/lifeline.xpm:
20787 * objects/UML/pixmaps/object.xpm:
20788 * objects/UML/pixmaps/message.xpm:
20789 Added 3 new UML objects for dynamic modeling. To avoid internal
20790 conflicts, the name "objet" is used for object "object".
20793 Added ARROW_HALF_HEAD arrow type to allow drawing asynchronous
20796 1999-01-30 Alexander Larsson <alla@lysator.liu.se>
20798 * app/display.[ch]:
20799 * app/modify_tool.c:
20800 Added autoscrolling while doing rubber-band select.
20801 This patch from Matthias Köster
20802 (Matthias.Koester@Informatik.Uni-Oldenburg.DE)
20805 1999-01-28 Alexander Larsson <alla@lysator.liu.se>
20807 * app/defaults.[ch]:
20808 New files, deals with default properties dialog.
20811 New file. Contains definitions for the new object menu.
20813 * lib/poly_conn.[ch]:
20814 New file. Base class for poly-line like objects.
20816 * objects/standard/polyline.c:
20817 * objects/standard/pixmaps/polyline.xpm:
20818 New files. Polyline object.
20821 Fixed bug with infinite loop when registering sheets.
20824 Removed unneccesary stuff.
20826 * app/disp_callbacks.c:
20827 Support for object menus.
20830 Added polyline to toolbox.
20831 Added call to tool_options_dialog_show() when double clicking on
20835 New function tool_options_dialog_show() for tool properties.
20841 Added ObjectType methods for handling object default dialogs.
20842 Added Object method for handling object_menu.
20843 Added unused methods to ObjectTypeOps for future binary
20846 * lib/widgets.[ch]:
20847 Added DiaArrowTypeSelector widget.
20849 * objects/standard/arc.c:
20850 * objects/standard/zigzagline.c:
20851 Added support for default properties.
20853 * objects/standard/line.c:
20854 Added support for default properties.
20855 Just use one properties dialog for all line objects. NOTE: This
20856 seems to have a bug. We're working on it.
20858 * standard/standard.c:
20859 Add the polyline object.
20861 1999-01-27 Alexander Larsson <alla@lysator.liu.se>
20863 * app/modify_tool.c:
20864 Commented out buggy transitive select function. It wasn't really
20865 meant to go into cvs.
20868 1999-01-25 Fredrik Hallenberg <hallon@lysator.liu.se>
20880 Swedish translation. Not completed.
20884 Added possibility to enable GNOME specific code with configure.
20887 Added possibility to set debug level with configure.
20890 Added about dialog.
20896 Added some GNOME specific code. Not ready for use.
20898 1999-01-24 Alexander Larsson <alla@lysator.liu.se>
20901 Added text about needing gtk 1.1.13 and gnome-xml.
20904 Described changes since last version (0.20).
20906 Released version 0.30, tagged DIA_0_30.
20908 1999-01-22 Alexander Larsson <alla@lysator.liu.se>
20910 * app/magnify.c (magnify_button_release):
20911 Fixed a problem when zooming in on a very small box would
20912 not release the grabbed pointer-focus.
20914 1999-01-21 Alexander Larsson <alla@lysator.liu.se>
20916 * app/load_save.c (diagram_load):
20917 Be somewhat more robust when loading files that
20920 1999-01-21 Alexander Larsson <alla@lysator.liu.se>
20924 * objects/UML/uml.c:
20925 * objects/network/network.c:
20926 * objects/standard/standard.c:
20927 Added versioning of object libraries.
20929 * app/create_object.c:
20930 Don't change tool when an object is created.
20932 * objects/network/network.c:
20937 1999-01-19 Alexander Larsson <alla@lysator.liu.se>
20940 Updated gtk requirement to Gtk+ 1.1.13.
20943 Always add one screenful of scrolling space on
20944 each side of a diagram window.
20946 1999-01-19 Jeff Garzik <jgarzik@pobox.com>
20949 Tell automake to auto-install missing files.
20952 Renamed deprecated Gtk+ function.
20954 1999-01-16 Alexander Larsson <alla@lysator.liu.se>
20958 * samples/Makefile.am:
20959 * samples/ER-demo.dia:
20960 * samples/UML-demo.dia:
20961 Added samples directory.
20962 Added samples for ER and UML.
20965 * app/disp_callbacks.c:
20967 Zoom is done by sqrt(2) instead of 2.
20968 Lots of more zoom options in the menu.
20970 * objects/ER/relationship.c:
20971 Relationships have 8 connectionpoints instead of 4.
20973 * objects/UML/class.c:
20974 UML class name font a bit smaller.
20975 Fixed stupid bug in the copy operation.
20978 Displays are opened at 500x400 instead of 256x256.
20981 Fixup of internal error message.
20983 * app/color_area.c:
20985 * app/modify_tool.c:
20987 Removed debug printf's.
20990 Added new known bug.
20992 1999-01-16 Alexander Larsson <alla@lysator.liu.se>
20996 Fixed so accelerator groups work in all windows.
20997 Updated to new gtk function names.
21003 Updated to new gtk function names.
21004 Set sensitivity of the align menu items.
21006 * objects/ER/pixmaps/Makefile.am:
21007 * objects/UML/pixmaps/Makefile.am:
21008 * objects/network/pixmaps/Makefile.am:
21009 Fix so that make dist works.
21012 * app/color_area.c:
21016 * app/layer_dialog.c:
21018 * app/object_ops.c:
21019 * app/properties.c:
21020 * lib/diagramdata.[ch]:
21022 * lib/objects/ER/attribute.c:
21023 * lib/objects/ER/entity.c:
21024 * lib/objects/ER/participation.c:
21025 * lib/objects/ER/relationship.c:
21026 * lib/objects/ER/.c:
21027 * objects/UML/actor.c:
21028 * objects/UML/association.c:
21029 * objects/UML/class_dialog.c:
21030 * objects/UML/dependency.c:
21031 * objects/UML/generalization.c:
21032 * objects/UML/large_package.c:
21033 * objects/UML/realizes.c:
21036 Updated to new gtk function names.
21039 1999-01-15 Alexander Larsson <alla@lysator.liu.se>
21045 Fixed loading of diagrams specified as arguments.
21047 * objects/ER/attribute.c:
21048 * objects/ER/entity.c:
21050 * objects/ER/participation.c:
21051 * objects/ER/relationship.c:
21052 Updated the ER objects.
21055 1999-01-14 Alexander Larsson <alla@lysator.liu.se>
21059 * objects/Makefile.am:
21060 * objects/ER/attribute.c:
21061 * objects/ER/entity.c:
21063 * objects/ER/participation.c:
21064 * objects/ER/relationship.c:
21065 * objects/ER/pixmaps/Makefile.am:
21066 * objects/ER/pixmaps/attribute.xpm:
21067 * objects/ER/pixmaps/entity.xpm:
21068 * objects/ER/pixmaps/participation.xpm:
21069 * objects/ER/pixmaps/relationship.xpm:
21070 * objects/ER/pixmaps/weakentity.xpm:
21071 First commit of entity relationship objects.
21072 These were done by hallon@lysator.liu.se.
21073 There are still stuff to do on these.
21075 1999-01-14 Alexander Larsson <alla@lysator.liu.se>
21080 * app/diagram.[ch]:
21081 Change diagram_remove_all_selected to take new argument
21082 delete_empty. Empty objects are deleted only if it is TRUE.
21083 Removed call to close_eps_renderer. This is now done in end_render
21084 in the eps renderer.
21086 * app/create_object.c:
21087 * app/layer_dialog.c:
21088 Update calls to diagram_remove_all_selected.
21091 Update calls to diagram_remove_all_selected.
21092 Some code reformating.
21093 Changed order of adding updates i align_h and align_v.
21095 * app/modify_tool.c:
21096 Update calls to diagram_remove_all_selected.
21097 Added pointer grab when doing rubber-band selection, this fixes
21098 the bug when draging the box over to another window.
21100 * app/connectionpoint_ops.[ch]:
21101 diagram_update_connections_object changed to take an argument
21102 update_nonmoved. This lets connections that has not moved, but
21103 the stuff they're connected to has been moved work.
21104 Update calls to the new diagram_update_connections_object.
21106 * app/properties.c:
21107 Update calls to the new diagram_update_connections_object.
21108 Update extents when properties are applied.
21110 * app/disp_callbacks.c:
21111 Added support for zooming with the '+' and '-' keys.
21114 Removed old keyboard shortcuts for zoom.
21117 Added calls begin_render and end_render to renderer.
21118 These can be used for setup and cleanup.
21120 * lib/diagramdata.c:
21121 Added calls to begin_render and end_render in data_render.
21123 * app/render_gdk.c:
21124 Added begin_render and end_render.
21126 * app/render_eps.[ch]:
21127 Added begin_render and end_render.
21128 Moved close_eps_renderer code to end_render.
21129 Various fixes to the generated eps code. This fixes importing
21130 generated eps into LYX.
21132 1999-01-12 Alexander Larsson <alla@lysator.liu.se>
21138 Menus for alignment updated.
21140 * app/object_ops.[ch]:
21141 Functions for object alignment updated.
21143 * app/commands.[ch]:
21144 Object alignment callbacks updated.
21145 New diagrams are called Untitled-<nr>.
21147 * app/layer_dialog.c:
21148 Active layer selected when showing layers from new
21152 Compress xml files when saving.
21153 Use xml namespace 'dia'.
21156 Minor comment update.
21158 * objects/UML/class_dialog.c:
21159 Cleanup of the gkt_list_item moving code.
21160 Fixed bug with update of operation when moving parameters.
21162 1999-01-10 Alexander Larsson <alla@lysator.liu.se>
21164 * app/layer_dialog.[ch]:
21165 Fixed the rest of the layers dialog.
21168 Added call to redo layer dialogs diagram list when changing
21171 * lib/diagramdata.[ch]:
21172 Added data_raise_layer and data_lower_layer functions for
21173 raising/lowering layers. Added data_add_layer_at for adding a
21174 layer at a specified index.
21176 1999-01-05 Alexander Larsson <alla@lysator.liu.se>
21178 This is the asierra-990105 patch done by asierra@servidor.unam.mx.
21181 Added support for reading diagrams from the command line.
21183 1998-12-21 Alexander Larsson <alla@lysator.liu.se>
21185 This is the asierra-981220 patch done by asierra@servidor.unam.mx.
21187 * app/commands.[ch]:
21188 Added objects_align_callback().
21191 Added align objects to menu.
21193 * app/object_ops.[ch]:
21194 Add object_list_align().
21196 1998-12-17 Alexander Larsson <alla@lysator.liu.se>
21197 * app/layer_dialog.[ch]:
21198 New files. Handles the layers dialog. Needs a bugfix for glib to
21199 work. Sent patch to gtk-list.
21201 * app/pixmaps/new.xpm:
21202 * app/pixmaps/eye.xbm:
21203 * app/pixmaps/lower.xpm:
21204 * app/pixmaps/raise.xpm:
21205 * app/pixmaps/delete.xpm:
21206 New files. Images for the layer dialog buttons.
21208 * lib/diagramdata.h
21209 * lib/diagramdata.c
21210 New files for the DiagramData and Layer structures and functions.
21213 Added call to create_layer_dialog() on startup.
21215 * app/commands.[ch]:
21216 New callbacks for showing the properties and layout dialog.
21217 Changes for the new DiagramData structure.
21219 * app/connectionpoint_ops.c:
21220 * app/cut_n_paste.c:
21221 * app/diagram.[ch]:
21222 * app/display.[ch]:
21224 * app/modify_tool.c:
21225 * app/object_ops.[ch]:
21226 * app/render_eps.c:
21228 Changes for the new DiagramData structure.
21231 * app/properties.c:
21232 Set correct wmclasses.
21235 Fix load and save of layers.
21238 Update DTD for layers.
21241 New menus for dialogs.
21247 1998-12-06 Alexander Larsson <alla@lysator.liu.se>
21250 Removed the gtk 1.1.5 stuff.
21253 Updated gtk check to version 1.1.5.
21254 Updated version from 0.20 to 0.30
21256 * app/commands.[ch]:
21257 Updated some callbacks to be of type GtkItemFactoryCallback1.
21258 Not all are done yet, but it works anyway.
21261 Removed Gtk 1.0.0 GtkAcceleratorTable references.
21265 Update to Gtk 1.1.x functions.
21266 Use ItemFactory instead of MenuFactory.
21268 * app/render_gdk.c:
21269 Removed Gtk 1.0.0 references.
21271 * objects/UML/class_dialog.c:
21272 Scrolled window updates for Gtk 1.1.5.
21275 Removed ugly fix for gnome-xml bug. Make sure you get the
21276 newest version of gnome-xml from CVS.
21278 1998-12-05 Alexander Larsson <alla@lysator.liu.se>
21281 Removed the xml load/save line.
21287 Removed building of files.c
21290 * lib/connection.c:
21294 * lib/render_object.c:
21295 * objects/UML/actor.c:
21296 * objects/UML/association.c:
21297 * objects/UML/class.c:
21298 * objects/UML/constraint.c:
21299 * objects/UML/dependency.c:
21300 * objects/UML/generalization.c:
21301 * objects/UML/implements.c:
21302 * objects/UML/large_package.c:
21303 * objects/UML/note.c:
21304 * objects/UML/realizes.c:
21305 * objects/UML/small_package.c:
21306 * objects/UML/uml.c:
21307 * objects/UML/usecase.c:
21308 * objects/network/bus.c:
21309 * objects/standard/arc.c:
21310 * objects/standard/box.c:
21311 * objects/standard/ellipse.c:
21312 * objects/standard/line.c:
21313 * objects/standard/textobj.c:
21314 * objects/standard/zigzagline.c:
21315 Removed all includes of files.h
21318 1998-12-05 Alexander Larsson <alla@lysator.liu.se>
21321 Made the val property of string be implied.
21322 This makes it possible to save strings that
21323 are NULL. Just leave out val.
21325 * objects/lib/dia_xml.c:
21326 Fixed string so that it is possible to save strings
21327 that are NULL. Also made an ugly workaround of a
21328 bug in gnome-xml which removes empty properties.
21330 * objects/lib/orth_conn.c:
21331 Fixed a bug in saving. Forgot to step through the
21334 * objects/UML/association.c:
21335 * objects/UML/class.c:
21336 * objects/UML/constraint.c:
21337 * objects/UML/dependency.c:
21338 * objects/UML/generalization.c:
21339 * objects/UML/implements.c:
21340 * objects/UML/large_package.c:
21341 * objects/UML/note.c:
21342 * objects/UML/small_package.c:
21343 * objects/UML/realizes.c:
21344 * objects/UML/usecase.c:
21345 * objects/UML/actor.c:
21346 Fixed UML objects to save as xml.
21347 The last two were done by asierra@servidor.unam.mx (asierra-981204)
21349 * objects/UML/uml.[ch]:
21350 Updated *_write() and *_read() functions to use xml.
21352 * objects/network/bus.c:
21353 * objects/network/computer.c:
21354 * objects/network/disc.c:
21355 * objects/network/monitor.c:
21356 Updated network diagrams to use xml.
21358 1998-12-02 Alexander Larsson <alla@lysator.liu.se>
21361 New file. DTD that describes the xml file format
21364 * lib/dia_xml.[ch]:
21365 New files. Support for saving object to xml files.
21370 Added check for and usage of gnome-xml library.
21373 Major chages. Now saves/loads diagrams as xml.
21376 * lib/element.[ch]:
21377 * lib/connection.[ch]:
21378 * lib/orth_conn.[ch]:
21379 * lib/render_object.[ch]:
21381 Updated object support load/save functions for xml:
21383 * object/standard/arc.c:
21384 * object/standard/box.c:
21385 * object/standard/ellipse.c:
21386 * object/standard/line.c:
21387 * object/standard/textobj.c:
21388 * object/standard/zigzagline.c:
21389 Updated all standard objects to use xml.
21392 Only the standard objects are converted right now, don't
21393 save or load uml or network diagrams yet. Also, since this
21394 is new code it is deemed a bit unstable.
21399 1998-12-01 Alexander Larsson <alla@lysator.liu.se>
21401 * objects/UML/class.c:
21402 Changed classname font to Helvetica.
21403 Added more space above the classname
21405 * objects/UML/usecase.c:
21406 Correct placements of connectionpoints on ellipse.
21407 Better algorithm for deciding aspect ration on
21410 These changes were made by Alejandro Aguilar Sierra
21411 <asierra@servidor.unam.mx>. (asierra-981201)
21413 1998-11-30 Alexander Larsson <alla@lysator.liu.se>
21415 * objects/UML/actor.c:
21416 Changed the extents and alignment of the element
21419 * objects/UML/.cvsignore:
21420 Added usecase.lo and actor.lo.
21422 1998-11-30 Alexander Larsson <alla@lysator.liu.se>
21424 * objects/UML/actor.c:
21425 * objects/UML/usecase.c:
21426 * objects/UML/pixmaps/actor.xpm:
21427 * objects/UML/pixmaps/case.xpm:
21428 New files. Implements usecase and actor UML objects.
21429 These objects are done by Alejandro Aguilar Sierra
21430 <asierra@servidor.unam.mx>.
21432 * objects/UML/Makefile.am:
21433 * objects/UML/pixmaps/Makefile.am:
21434 Added usecase and actor to makefile.
21437 Added Alejandro and Jerome to autors list.
21439 1998-11-25 Alexander Larsson <alla@lysator.liu.se>
21441 * objects/UML/class.c (umlclass_load):
21442 Fixed typo. Reported by Jerome.Abela@solsoft.fr
21444 1998-11-24 Alexander Larsson <alla@lysator.liu.se>
21446 * app/properties.c:
21447 Update connections when doing apply in the properties window.
21449 * objects/UML/uml.[ch]:
21450 * objects/UML/class.[ch]:
21451 * objects/UML/class_dialog.c:
21452 Added connection points on both sides of attributes and
21453 operations in UML classes.
21454 Based on idea from Jerome.Abela@solsoft.fr
21456 1998-11-24 Alexander Larsson <alla@lysator.liu.se>
21459 Some new documentation about handles and connectionpoints.
21462 Added functions object_add_connectionpoint and
21463 object_remove_connectionpoint for handling a dynamic
21464 number of connectionpoints.
21466 * objects/UML/class.c:
21467 Only reserve space for stereotype when it is shown.
21469 These changes are from Jerome Abela <Jerome.Abela@solsoft.fr>
21471 1998-11-08 Alexander Larsson <alla@lysator.liu.se>
21473 * app/connectionpoint_ops.c:
21475 * app/disp_callbacks.c:
21476 * app/display.[ch]:
21478 * app/handle_ops.c:
21480 * app/modify_tool.c:
21481 * app/render_gdk.[ch]:
21483 Huge cleanup of internal rendering system.
21484 Moved a lot of data (pixmap, width, height & gc) into the GdkRenderer.
21485 This gives a few new methods for Interactive Renderers for setting
21486 clipping regions and drawing pixel based lines and rects.
21487 Updated the rest of the code to use the new stuff.
21489 * app/render_eps.c:
21493 * objects/standard/zigzagline.c
21494 Fixed unused variable warnings.
21497 Fixedbug with stringwidth where width==0.
21502 1998-11-02 Alexander Larsson <alla@lysator.liu.se>
21504 * lib/widgets.[ch]:
21505 Added suppot for setting the font of a
21506 DiaFontSelector widget.
21507 Also fixed some typos in the header.
21510 Added a comment about the GetPRoperties method call.
21511 You have to make sure to update widget state when
21512 this method is called. (Not all objects do this yet,
21518 1998-11-01 Alexander Larsson <alla@lysator.liu.se>
21521 Fixed problem with height of ascent and descent for fonts.
21522 It didn't use the whole height (==ascent+descent) when calculatine
21523 ascent_ratio and descent_ratio.
21525 * objects/standard/textobj.c:
21526 * objects/standard/box.c:
21527 * objects/standard/ellipse.c:
21528 * objects/standard/line.c:
21529 * objects/standard/arc.c:
21530 Updated and added property dialogs for these objects.
21531 Also added line width/color/style to those objects
21532 that didn't have it.
21533 This change breaks fileformat compatibility for these objects.
21535 * objects/standard/zigzagline.c:
21536 Changed zigzagline to be based on OrthConn, much nicer.
21537 Also added line style and color to properties.
21538 This change breaks fileformat compatibility for zigzagline.
21541 Fixed bug in message(). Forgot a pair of '&'.
21543 1998-10-29 Alexander Larsson <alla@lysator.liu.se>
21545 * lib/widgets.[ch]:
21546 Added DiaColorSelector widget.
21547 This is a colored button that pops up a color selection
21548 dialog when pressed.
21550 1998-10-28 Alexander Larsson <alla@lysator.liu.se>
21552 * lib/widgets.[ch]:
21554 New files, added widgets for selecting fonts, alignment
21555 and line-style. Will be used later.
21557 1998-10-12 Alexander Larsson <alla@lysator.liu.se>
21561 * objects/UML/Makefile.am:
21562 * objects/network/Makefile.am:
21563 * objects/standard/Makefile.am:
21564 Changed "CFLAGS = -Wall -g" to "CFLAGS = @CFLAGS@"
21565 in all Makefile.am.
21567 1998-10-03 Alexander Larsson <alla@lysator.liu.se>
21569 * app/handle_ops.c (handle_draw):
21570 connected HANDLE_MINOR_CONTROL also becomes red.
21572 1998-10-02 Alexander Larsson <alla@lysator.liu.se>
21575 removed -ldl from linking. This is added if needed by configure.
21578 Open dlls with RTLD_LAZY if it is defined.
21579 Some cleanups: char *error -> const char *error
21580 Added fprintf()'s to where we exited because of errors.
21583 Include <sys/types.h>
21585 1998-10-01 Alexander Larsson <alla@lysator.liu.se>
21590 Detect dlopen better.
21591 Detect wether dlopen needs an underscore in the identifier.
21592 This code was mostly borrowed from guile.
21596 * objects/standard/standard.c:
21597 * objects/network/network.c:
21598 * objects/UML/uml.c:
21600 Changed the way sheets reference objects to use just the
21601 name. Changed module loading to a two stage model:
21602 First register_objects() is called for all modules.
21603 Then register_sheets() is called. This means that
21604 sheets can safely include objects from other modules.
21607 1998-09-30 Alexander Larsson <alla@lysator.liu.se>
21609 * objects/network/bus.c:
21610 * objects/network/network.c:
21611 * objects/network/Makefile.am:
21612 New file bus.c. Added new object: Ethernet bus.
21614 * objects/standard/box.c:
21615 Added call to gtk_spin_button_set_numeric for linewidth spinner
21616 in property dialog.
21618 1998-09-30 Alexander Larsson <alla@lysator.liu.se>
21620 * app/connectionpoint_ops.c:
21621 * app/create_object.c:
21623 * app/handle_ops.c:
21624 * app/modify_tool.c:
21625 * lib/connection.c:
21630 * loads of objects:
21631 Changed handle->connectable to handle->connect_type.
21632 Now handles can be HANDLE_CONNECTABLE_NOBREAK, which means
21633 that their connections don't break when moving objects.
21636 Always select the last handle in an object that has
21637 the closest distance.
21639 * lib/geometry.[ch]:
21640 Added rectangle_add_point function.
21643 1998-09-27 Alexander Larsson <alla@lysator.liu.se>
21645 * app/properties.[ch]: New files. Handles the new properties
21648 * app/modify_tool.c: Changed to use new properties dialog.
21650 * app/object_ops.[ch]: Removed object_changed_callback, as it's
21651 not needed anymore. This is now handled differently in
21655 Changed the properties ops for objects. Removed typedefs
21656 ChangedObjectTime and ObjectChangedFunc needed for the old way.
21657 Added object_return_null function.
21660 * lib/render_object.c:
21662 Changed objects to use the new properties dialog.
21665 1998-09-14 Nuno Ferreira <nmrf@rnl.ist.utl.pt>
21667 * */Makefile.am (INCLUDES): Changes to work with srcdir !=
21670 * autogen.sh: New file. Copied from gtk and added a call to
21671 libtoolize. Anyone knows why this isn't done in gtk?
21673 * Removed autogenerated files.
21675 1998-09-12 Alexander Larsson <alla@lysator.liu.se>
21677 * Added call setlocale(LC_NUMERIC, "C") so that formating of
21678 floating-point numbers in postscript output will be correct.
21679 * Did some cleanup of generated postscript files.